text
stringlengths
1
927k
# coding: utf-8 """ Kubernetes No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 The version of the OpenAPI document: v1.19.15 Generated by: https://openapi-generator.tech """ import pprint import re # noqa: F401 import six f...
# # # from __future__ import absolute_import, division, print_function, \ unicode_literals from six import text_type from unittest import TestCase from octodns.record import ARecord, AaaaRecord, AliasRecord, CaaRecord, \ CaaValue, CnameRecord, Create, Delete, GeoValue, MxRecord, MxValue, \ NaptrRecord, N...
""" kombu.common ============ Common Utilities. """ from __future__ import absolute_import import os import socket import threading from collections import deque from contextlib import contextmanager from functools import partial from itertools import count from uuid import uuid4, uuid3, NAMESPACE_OID from amqp im...
X X X X X X X X X XX XX XX XX XX XX BBBBB X X X X X X X X X XX XX XX XX XX XX
import hashlib import re import sys import time from pathlib import Path from random import Random from typing import Generator, Tuple, Dict from contextlib import contextmanager import logging import pytest from docker.client import DockerClient from rchain.crypto import PrivateKey, gen_block_hash_from_block from rcha...
def create_new(numbers): n = len(numbers) keys = [None for i in range(2 * n)] for num in numbers: idx = num % len(keys) while keys[idx] is not None: idx = (idx + 1) % len(keys) keys[idx] = num return keys def create_new_broken(numbers): n = len(numbers) ...
#! /usr/bin/python # -*- coding: utf-8 -*- __author__ = "Osman Baskaya" import sys from bs4 import BeautifulSoup from itertools import izip import re import string files = sys.argv[1:] for filename in files: print >> sys.stderr, "%s processing..." % filename tags = BeautifulSoup(open(filename), 'xml').find_al...
from distutils.core import setup setup(name='pycycle', version='3.0.0', packages=[ 'pycycle', ], )
import numpy as np from PIL import Image import cv2 from model import Net import torch from torchvision import transforms from mtcnn import MTCNN def LoadModel(fpath): ''' function to load saved model ''' c = torch.load(fpath, map_location='cpu') model = c['model'] model.load_state_dict(c['stat...
#----------------------------------------------------------------------------- # Copyright (c) 2012 - 2017, Anaconda, Inc. All rights reserved. # # Powered by the Bokeh Development Team. # # The full license is in the file LICENSE.txt, distributed with this software. #---------------------------------------------------...
from k_thinning.full_knowledge.RL import *
from dataclasses import dataclass from moonleap import Resource @dataclass class ItemType(Resource): name: str
import json import re from functools import partial from traceback import print_tb from typing import List import pytest from elisctl.schema.upload import upload_command from tests.conftest import TOKEN, match_uploaded_json, SCHEMAS_URL, QUEUES_URL DATA = """\ 1;abc 2;cde 3;fgh\ """ SCHEMA_NAME = "schema.json" schem...
# -*- coding: utf-8 -*- # # 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 ...
# coding=utf-8 # Copyright 2019 The Edward2 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 o...
# MIT License # # Copyright (c) 2021 Erick Israel Vazquez Neri # # 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, m...
# Copyright 2017 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 a...
default_app_config = 'blousebrothers.partner.config.PartnerConfig'
import numpy import keras from keras.preprocessing.image import ImageDataGenerator from keras.models import Sequential from keras.layers import Dense, Dropout, Activation, Flatten from keras.layers import Conv2D, MaxPooling2D from keras.callbacks import EarlyStopping import os from ...tools import check_argument as che...
"""Example of a custom gym environment and model. Run this for a demo. This example shows: - using a custom environment - using a custom model - using Tune for grid search You can visualize experiment results in ~/ray_results using TensorBoard. """ import numpy as np import gym from ray.rllib.models import Model...
# -*- coding: utf-8 -*- # Generated by the protocol buffer compiler. DO NOT EDIT! # source: yandex/cloud/vpc/v1/route_table.proto """Generated protocol buffer code.""" from google.protobuf import descriptor as _descriptor from google.protobuf import message as _message from google.protobuf import reflection as _reflec...
import unittest from controllers import * from twizo import Twizo class TwizoTest(unittest.TestCase): def test_init(self): sut = Twizo("apikey", "apiHost") self.assertEqual(type(sut.widget_session_controller), WidgetSessionController) self.assertEqual(type(sut.number_lookup_controller), N...
# base16-qutebrowser (https://github.com/theova/base16-qutebrowser) # Base16 qutebrowser template by theova # Zenburn scheme by elnawe base00 = "#383838" base01 = "#404040" base02 = "#606060" base03 = "#6f6f6f" base04 = "#808080" base05 = "#dcdccc" base06 = "#c0c0c0" base07 = "#ffffff" base08 = "#dca3a3" base09 = "#df...
from . import common as cm class SharedCriterionService(cm.BaseService): def __init__(self, client): super().__init__(client, 'SharedCriterionService')
{ "targets": [ { "target_name": "desktopduplication", "sources": [ "src/getframeasyncworker.cpp", "src/desktopduplication.cpp" ], "include_dirs": [ "<!@(node -p \"require('node-addon-api').include\")" ], "dependencies": [ "<!(node -p \"require('node-addon-api').gyp\")" ], "def...
#!/usr/bin/env python import os import sys if __name__ == "__main__": os.environ.setdefault("DJANGO_SETTINGS_MODULE", "MyFirstSite.settings") from django.core.management import execute_from_command_line execute_from_command_line(sys.argv)
# Copyright (c) 2018 Roland Zimmermann # # 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, d...
# python imports import json import xlsxwriter import pandas as pd from numpy import nan import openpyxl as op from time import sleep from bs4 import BeautifulSoup from selenium import webdriver MAIN_PAGE = 'https://sellercentral.amazon.in/gspn/?ref=spn_rc&sellFrom=IN&sellIn=IN&ref_=sc_gspn_na_hp' CATEGORY_LIST = ...
from cartography.intel.kubernetes.namespaces import load_namespaces from tests.data.kubernetes.namespaces import GET_CLUSTER_DATA from tests.data.kubernetes.namespaces import GET_NAMESPACES_DATA TEST_UPDATE_TAG = 123456789 def test_load_namespaces(neo4j_session): load_namespaces( neo4j_session, ...
from datetime import datetime import pytz from flask import redirect, render_template, request, session, url_for from flask_login import current_user from govuk_bank_holidays.bank_holidays import BankHolidays from notifications_utils.clients.zendesk.zendesk_client import ( NotifySupportTicket, ) from app import c...
import sys import os import datetime import time import zipfile import tempfile import shutil from distutils import dir_util import json import traceback from werkzeug._compat import to_unicode from ..common import consts, file_read, file_write, error_message from ..db.db_modules import SQLITE, FIREBIRD, get_db_module...
from einops import rearrange def copy_bn(mod, vars, path): bn_offset = vars[f'{path}offset:0'] bn_scale = vars[f'{path}scale:0'] ema_path = '/'.join(path.split('/')[:-3]) + '/' bn_running_mean = vars[f'{ema_path}moving_mean/average:0'] bn_running_var = vars[f'{ema_path}moving_variance/average:0'] ...
# -*- coding: utf-8 -*- # Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved import torch from torchvision.ops import boxes as box_ops from torchvision.ops import nms # BC-compat def batched_nms(boxes, scores, idxs, iou_threshold): """ Same as torchvision.ops.boxes.batched_nms, but safer. ...
# Copyright 2019 Extreme Networks, Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to i...
# ##### BEGIN MIT LICENSE BLOCK ##### # # MIT License # # Copyright (c) 2022 Steven Garcia # # 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 ...
import os import sys sys.path.insert(0, os.path.abspath(os.path.join(os.path.dirname(__file__), '..'))) import flows
#!/usr/bin/env python # -*- coding:utf-8 -*- # Author: Donny You(youansheng@gmail.com) from __future__ import absolute_import from __future__ import division from __future__ import print_function from models.backbones.resnet.resnet_backbone import ResNetBackbone from models.backbones.mobilenet.mobilenet_backbone imp...
import pytest from dynaconf import LazySettings from dynaconf.loaders.toml_loader import load settings = LazySettings( ENV_FOR_DYNACONF='PRODUCTION', ) TOML = """ a = "a,b" [default] password = "@int 99999" host = "server.com" port = "@int 8080" alist = [ "item1", "item2", "@int 23" ] [default.service] ...
import torch import torch.nn as nn # custom weights initialization called on netG and netD def weights_init(m): classname = m.__class__.__name__ if classname.find('Conv') != -1: nn.init.normal_(m.weight.data, 0.0, 0.02) elif classname.find('BatchNorm') != -1: nn.init.normal_(m.weight.data,...
from end_view import EndView from end_controller import EndController from end_state import EndState
#/usr/bin/python import urllib.request from time import sleep import traceback import subprocess import http.client test_points = { "helloWorld": [ "/hw/hello", "/hw/test", "/hw/131" ], "advanced": [ "/adv", "/adv/post", ...
# __BEGIN_LICENSE__ # Copyright (C) 2008-2010 United States Government as represented by # the Administrator of the National Aeronautics and Space Administration. # All Rights Reserved. # __END_LICENSE__ # Django settings for example project. DEBUG = True TEMPLATE_DEBUG = DEBUG import os import sys APP = os.path.absp...
#!/usr/bin/env python3 # -*- coding: utf-8 -*- import re import chardet import asyncio import requests class CxExtractor: """cx-extractor implemented in Python""" __text = [] __indexDistribution = [] def __init__(self, threshold=86, blocksWidth=3) -> None: self.__blocksWidth = blocksWidth ...
from .Core import CORE, overrideMethod ##################################################################### # imports import traceback import base64 import constants import debug_utils from account_helpers.CustomFilesCache import CustomFilesCache @overrideMethod(CustomFilesCache, '_CustomFilesCache__onReadLocalFile...
#!/usr/bin/env python import os import sys try: from django.conf import settings settings.configure( DEBUG=True, USE_TZ=True, DATABASES={ "default": { "ENGINE": "django.db.backends.sqlite3", "NAME": "db.sqlite3" } }, ...
from datetime import timedelta import uuid from django.db import models, transaction from django.db.models import Exists, OuterRef, Q from django.utils import timezone from contactboard.models import Classe, Alumne class ImportData(models.Model): class Meta: unique_together = ('importacio', 'nom', 'cognom...
# fmt: off from copy import copy, deepcopy import numpy as np import pandas as pd from plotly import express as px from plotly import graph_objects as go from plotly.subplots import make_subplots from scipy.interpolate import interp1d from scipy.signal import argrelextrema from ross.bearing_seal_element import Bearin...
# This code is part of Qiskit. # # (C) Copyright IBM 2020. # # This code is licensed under the Apache License, Version 2.0. You may # obtain a copy of this license in the LICENSE.txt file in the root directory # of this source tree or at http://www.apache.org/licenses/LICENSE-2.0. # # Any modifications or derivative wo...
# Copyright 2020 The Tekton 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 wr...
#!/usr/bin/python ############################################################################## ### NZBGET POST-PROCESSING SCRIPT ### # Add downloaded NZB files to NZBGet # # # If the current NZB download being processed by this script contains NZB # files they will be pushe...
# -*- coding: utf-8 -*- """ @Time: 2021/7/16 13:58 @Author: zzhang zzhang@cenboomh.com @File: template_tool.py @desc: """ from jinja2 import Environment from collect.collect_service import CollectService # 全局变量缓存模板信息 _cache = {} class TemplateTool(CollectService): filter_config = { "uuid": { ...
# -*- coding: utf-8 -*- try: # python 3 # noinspection PyCompatibility from urllib.parse import urlparse, urlunparse, urljoin except ImportError: # python 2 # noinspection PyCompatibility from urlparse import urlparse, urlunparse, urljoin from itsdangerous import TimedSerializer, SignatureExpir...
""" Randomly select train and validation subsets from training datasets. 80/20 split ratio used for all datasets except TinyImageNet, which will use 90/10. Dimity Miller, 2020 """ import json import random import torchvision import numpy as np random.seed(1000) def save_trainval_split(dataset, train_idxs, val_id...
# -*- coding: utf-8 -*- # Copyright (C) 2016, the Pyzo development team # # Pyzo is distributed under the terms of the 2-Clause BSD License. # The full license can be found in 'license.txt'. """ The pyzokernel package contains the code for the Pyzo kernel process. This kernel is designed to be relatively lightweight; ...
''' File name: readCharacter.py Author: Ya-Liang Chang b03901014@ntu.edu.tw Date created: 5/26/2017 Date last modified: 5/26/2017 Python Version: 3.6 Path planning for 4 DOFs palletizing robot to write Chinese characters. Read characters from graphics.txt (See https://github.com/skishore/m...
import setuptools with open("README.md", "r") as fh: long_description = fh.read() setuptools.setup( name="one_home_sensor", version='0.1.6', author="LeadTheSalt", author_email="leadthesalt.soc@gmail.com", description="My home tempearture sensor for my RaspberryPi", long_description=long_de...
# Copyright 2018, 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 by applicable law o...
###################################################################### # # File: b2sdk/transferer/__init__.py # # Copyright 2019 Backblaze Inc. All Rights Reserved. # # License https://www.backblaze.com/using_b2_code.html # ###################################################################### from .transferer import ...
from ..core import WesternCalendar, ChristianMixin from ..registry_tools import iso_register @iso_register('MT') class Malta(WesternCalendar, ChristianMixin): 'Malta' include_good_friday = True include_assumption = True include_immaculate_conception = True include_christmas = True FIXED_HOLI...
import win32com from win32com.client import Dispatch, DispatchEx from win32com.client import constants #xlApp = win32com.client.Dispatch("Excel.Application") xlApp = win32com.client.gencache.EnsureDispatch("Excel.Application") file_path = "C:\\Users\\Administrator\\Desktop\\haha.xlsx" xlApp.Visible = 0 xlApp.DisplayAl...
import ast as C from .ast import * class CPythonAstTransformer(NodeTransformer): def transform(self, node: AST, *args, **kwargs) -> C.AST: return self.visit(node, *args, **kwargs) def visit_AnnAssign(self, node: AnnAssign, *args, **kwargs) -> C.AnnAssign: target = self.visit(node.target, *arg...
# subprocess - Subprocesses with accessible I/O streams # # For more information about this module, see PEP 324. # # Copyright (c) 2003-2005 by Peter Astrand <astrand@lysator.liu.se> # # Licensed to PSF under a Contributor Agreement. # See http://www.python.org/2.4/license for licensing details. r"""Subprocesses with ...
# 004-RollDice.py # Roll a dice and output its die face # New concept: os, file IO, print(end="") from random import randint import os result = randint(0, 5) diePath = os.path.join(os.path.dirname(__file__), "dieFace.txt") with open(diePath) as die: dieFile = die.readlines() for i in range(result*7, result*7+7):...
import argparse FLAGS = { 'compiler_log': { 'type': 'bool', 'doc': 'Enables logging.' }, 'permissive': { 'type': 'bool', 'doc': 'The compiler will accept some kinds of invalid operations to support older ONNX, etc.' }, 'skip_inference': { 'type': 'bool', ...
## ## Run this script in the main repository directory by typing ## ## python setup.py ## ## If you are getting errors, re-run the script saving the output ## and contact pbradley@fredhutch.org for help trouble-shooting. ## ## from os import popen, system, chdir, mkdir from os.path import exists, isdir, isfile from sys...
#!/usr/bin/env python3 #depthai function profiler import subprocess import sys import numpy as np #this is a debugging tool, that's why it's not added to requirements.txt try: import snakeviz except ImportError: raise ImportError('\033[1;5;31m snakeviz module not found, run: \033[0m python3 -m pip install sna...
import unittest from testcase import TestCase from testcase import find_by_prop from testcase import TEST_PAGE_SIZE class TestProjects(TestCase): def test_project_basic(self): # verify `proj_name` does not yet exist base_cmd = self.get_cli_base_cmd() cmd_env = self.get_cmd_env() p...
"""Plots fig 3. and fig 4. from the paper. You must first create data calling the following scripts: $ python auto_correlate_random_error.py $ python auto_correlate_standard_error.py $ python auto_correlate_fast_error.py $ python cross_correlate_error.py """ from cddm.sim import random_time_count from cddm.mult...
import sqlite3 import server.arcworld import server.arcpurchase import time def int2b(x): # int与布尔值转换 if x is None or x == 0: return False else: return True def get_recent_score(c, user_id): # 得到用户最近一次的成绩,返回列表 c.execute('''select * from user where user_id = :x''', {'x': user_id})...
import numpy as np import torch from rlkit.torch import pytorch_util as ptu def eval_np(module, *args, **kwargs): """ Eval this module with a numpy interface, 返回numpy类型变量 Same as a call to __call__ except all Variable input/outputs are replaced with numpy equivalents. Assumes the output is eith...
from flask import Flask from flask_bootstrap import Bootstrap from flask_mail import Mail from flask_moment import Moment from flask_sqlalchemy import SQLAlchemy from flask_login import LoginManager from flask_pagedown import PageDown from config import config bootstrap = Bootstrap() mail = Mail() moment = Moment() db...
# -*- coding: utf-8 -*- from anima.ui.lib import QtCore, QtWidgets class TaskTimingInfoWidget(QtWidgets.QWidget): """Displays task timing details """ def __init__(self, task=None, parent=None, **kwargs): self._task = None self.parent = parent super(TaskTimingInfoWidget, self).__...
############################################################################## # # Copyright (c) 2002 Zope Foundation and Contributors. # # This software is subject to the provisions of the Zope Public License, # Version 2.1 (ZPL). A copy of the ZPL should accompany this distribution. # THIS SOFTWARE IS PROVIDED "AS I...
# # Opbeans Services # from collections import OrderedDict from .helpers import add_agent_environment, curl_healthcheck, wget_healthcheck from .service import Service, DEFAULT_APM_SERVER_URL, DEFAULT_APM_JS_SERVER_URL class OpbeansService(Service): def __init__(self, **options): super(OpbeansService, se...
import pytest def vprintf_test(vamos): if vamos.flavor == "agcc": pytest.skip("vprintf not supported") vamos.run_prog_check_data("vprintf")
import numpy as np import torch import torch.nn as nn import transformers from decision_transformer.models.model import TrajectoryModel from decision_transformer.models.trajectory_gpt2 import GPT2Model class DecisionTransformer(TrajectoryModel): """ This model uses GPT to model (Return_1, state_1, action_1...
import argparse import glob import pandas as pd import logging import os import json from collections import OrderedDict from eval import eval_tf import numpy as np import torch from seqeval.metrics import f1_score, precision_score, recall_score, accuracy_score from torch.nn import CrossEntropyLoss from torch.utils.da...
# util/__init__.py # Copyright (C) 2005-2020 the SQLAlchemy authors and contributors # <see AUTHORS file> # # This module is part of SQLAlchemy and is released under # the MIT License: http://www.opensource.org/licenses/mit-license.php from collections import defaultdict # noqa from contextlib import contextmanager ...
import os import cv2 import math import pywt import numpy as np from utils import mse import tensorflow as tf from tensorflow import keras from tensorflow.keras import layers from tensorflow.keras.datasets import mnist, cifar10 # os.environ['TF_CPP_MIN_LOG_LEVEL'] = '2' # for tensor flow warning # os.environ['CUDA_VI...
#!/usr/bin/env python3 # -*- coding: utf-8 -*- # */AIPND-revision/intropyproject-classify-pet-images/classify_images.py # # PROGRAMMER: David Jarrin # DATE CREATED: 3/1/19 # REVISED DATE: 3/2/19 # PURPOSE: Create a function classify_images that uses the classifier function # to create the classifier labels and...
""" SE-ResNet for CIFAR/SVHN, implemented in Chainer. Original paper: 'Squeeze-and-Excitation Networks,' https://arxiv.org/abs/1709.01507. """ __all__ = ['CIFARSEResNet', 'seresnet20_cifar10', 'seresnet20_cifar100', 'seresnet20_svhn', 'seresnet56_cifar10', 'seresnet56_cifar100', 'seresnet56_svhn', ...
# -*- coding: utf-8 -*- # Copyright 2013 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 require...
import datetime import locale import logging import os import random import shutil import sys import warnings from typing import Dict, List, Optional import numpy as np import pandas as pd import pytest from freezegun import freeze_time from ruamel.yaml import YAML import great_expectations as ge from great_expectati...
"""This module contains the meta information of ConfigGetXmlFileStr ExternalMethod.""" from ..ucscoremeta import MethodMeta, MethodPropertyMeta method_meta = MethodMeta("ConfigGetXmlFileStr", "configGetXmlFileStr", "Version142b") prop_meta = { "cookie": MethodPropertyMeta("Cookie", "cookie", "Xs:string", "Versio...
# Display Module for Shmup # Import Modules import pygame import consts from os import path # Load Background Graphics background_img = pygame.image.load(path.join(consts.img_dir, 'background.png')).convert() background = pygame.transform.scale(background_img, (consts.GAME_WIDTH, consts.GAME_HEIGHT)) background_rect ...
""" Generic data algorithms. This module is experimental at the moment and not intended for public consumption """ from __future__ import division from warnings import warn import numpy as np import pandas.core.common as com import pandas.algos as algos import pandas.hashtable as htable import pandas.compat as compat ...
# $Filename$ # $Authors$ # Last Changed: $Date$ $Committer$ $Revision-Id$ # # Copyright (c) 2003-2011, German Aerospace Center (DLR) # All rights reserved. # # #Redistribution and use in source and binary forms, with or without #modification, are permitted provided that the following conditions are #met: # # * Redistr...
# Generated by Django 3.1.5 on 2021-03-07 16:32 from django.db import migrations, models class Migration(migrations.Migration): initial = True dependencies = [ ] operations = [ migrations.CreateModel( name='Ftwhl', fields=[ ('ftwhl_ticker', models.Te...
from BayesianBlocks import bayesian_blocks, bayesian_blocks_not_unique
# Copyright (C) 2017 Google Inc. # Licensed under http://www.apache.org/licenses/LICENSE-2.0 <see LICENSE file> from ggrc import db from ggrc.access_control.roleable import Roleable from ggrc.fulltext.mixin import Indexed from ggrc.models.comment import Commentable from .mixins import (BusinessObject, LastDeprecatedTi...
#!/usr/bin/python2.4 # Copyright (c) 2006-2008 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. '''The 'grit resize' tool. ''' import getopt import os import types from grit.tool import interface from grit.tool import bui...
from django.contrib import admin from django.urls import path from .views import * from django.contrib.auth import views as auth_views urlpatterns = [ # PESSOA path("pessoa/registrar/", registrar_pessoa, name="registrar_pessoa"), path("pessoa/listar/", listar_pessoas, name="listar_pessoas"), # Perfil ...
""" hjson renderer for Salt See the hjson_ documentation for more information .. _hjson: http://laktak.github.io/hjson/ """ try: import hjson HAS_LIBS = True except ImportError: HAS_LIBS = False def render(hjson_data, saltenv="base", sls="", **kws): """ Accepts HJSON as a string or as a file ...
from pyogpclient.OGPClient import OGPClient from pyogpclient.OGPClient import FULL_OGP_QUERY
""" CIFAR-100 classification dataset. """ import os from torchvision.datasets import CIFAR100 from .cifar10_cls_dataset import CIFAR10MetaInfo class CIFAR100Fine(CIFAR100): """ CIFAR-100 image classification dataset. Parameters: ---------- root : str, default '~/.torch/datasets/cifar100' ...
import unittest from .recorder import Recorder class TestRecorder(unittest.TestCase): def setUp(self): pass def test_sorts_correctly(self): records = [ {'test_score': 0.8410596026490066, 'params': {'n_estimators': 260, 'subsample': 0.7800000000000002, ...
# Copyright 2016 Google Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, ...
# Generated by Django 2.2.7 on 2019-12-24 20:04 from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ ('shop', '0006_auto_20191224_2048'), ] operations = [ migrations.AlterField( model_name='order', ...
class MainClass: def __init__(self): self.name = "" self.lstAttributes = [] self.lstMethods = []
# # Copyright 2016 Quantopian, Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in wr...