text
stringlengths
2
999k
from mowgli_etl._pipeline import _Pipeline from mowgli_etl.pipeline.aristo.aristo_extractor import AristoExtractor from mowgli_etl.pipeline.aristo.aristo_transformer import AristoTransformer class AristoPipeline(_Pipeline): def __init__(self, **kwds): _Pipeline.__init__( self, extr...
import os import re import json import math import logging import pickle import random import importlib import functools import itertools from collections import defaultdict from typing import List, Dict, Optional import numpy as np import networkx as nx import matplotlib as mpl mpl.use("Agg") import matplotlib.pyplo...
import tensorflow as tf import keras.backend as K import numpy as np import random from termcolor import colored '''Helper methods for optimizers ''' def warn_str(): return colored('WARNING: ', 'red') def get_weight_decays(model, verbose=1): wd_dict = {} for layer in model.layers: layer_l2regs =...
# coding: utf-8 """ Copyright 2016 SmartBear Software 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 applica...
__version__ = '20200712' __author__ = 'Robert Nikutta <nikutta@noao.edu>' # imports # stdlib import glob import json import os import re import time from getpass import getpass from pprint import PrettyPrinter pp = PrettyPrinter() pprint = pp.pprint # third party import nbformat from nbconvert.preprocessors import E...
from unittest.mock import MagicMock, patch import pytest from hypothesis_auto import auto_pytest_magic import isort.format auto_pytest_magic(isort.format.show_unified_diff, auto_allow_exceptions_=(UnicodeEncodeError,)) def test_ask_whether_to_apply_changes_to_file(): with patch("isort.format.input", MagicMock(...
from keras.layers import Input from keras.layers.merge import concatenate from keras.models import Model,Sequential from layers import InputNormalize,VGGNormalize,ReflectionPadding2D,Denormalize,conv_bn_relu,res_conv,dconv_bn_nolinear from loss import StyleReconstructionRegularizer,FeatureReconstructionRegularizer,TVRe...
#### import modules #### from textblob import TextBlob from wordnik import * import random #### initialize wordnik #### api_url = 'http://api.wordnik.com/v4' api_key = 'a2a73e7b926c924fad7001ca3111acd55af2ffabf50eb4ae5' client = swagger.ApiClient(api_key, api_url) wordApi = WordApi.WordApi(client) #### initialize and...
#!/usr/bin/env python # -*- coding: utf-8 -*- ################################################################################ # # Copyright (c) 2015 Baidu.com, Inc. All Rights Reserved # ################################################################################ """ Description : manage config file $HOME/.b...
from abc import ABCMeta, abstractmethod from _ast import List from future.utils import with_metaclass from selenium.webdriver.common.by import By from selenium.webdriver.remote.webdriver import WebDriver from selenium.webdriver.remote.webelement import WebElement class ISearchContext(with_metaclass(ABCMeta, object))...
import random,time class Simulator: def remap(self,x, in_min, in_max, out_min, out_max): return (x - in_min) * (out_max - out_min) / (in_max - in_min) + out_min def get_new_value(self, isdebug=True, newreading=-1, minvalue = 0, ...
from django.contrib import admin #for importing tables from blog1.models import posts # Register your models here. admin.site.register(posts)
import traceback import types from pydyty.loc import Location class ObjectWrapper(object): """ Wraps an object and gathers type information about the object within a context. For our purose, this means a method call. At each method call, each argument will be wrapped. Then, any calls to that object is ...
kls = [200, 100, 50, 20, 10, 5, 2, 1] s = 200 def coin(n,kls): if len(kls)==1: return 1 s = 0 for i in range(0,n/kls[0]+1): rem = n-i*kls[0] if rem>0: s += coin(n-i*kls[0], kls[1:]) else: s += 1 break return s print 200,coin(200,kls...
from sklearn.feature_extraction.text import TfidfVectorizer from stop_words import get_stop_words from sklearn.cluster import KMeans import pandas as pd import matplotlib.pyplot as plt from sklearn.metrics import adjusted_rand_score from collections import Counter # These are the csv files, we are going to use for our...
# coding: utf-8 import re import six from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization class TollInvoiceRequestBody: """ Attributes: openapi_types (dict): The key is attribute name and the value is attribute type. attribute_map (dict): The...
""" FactSet GeoRev API FactSet Revere Geographic Revenue (\"GeoRev\") Exposure data provides a highly structured and normalized display of companies’ revenues by geography. Using a four level taxonomy structure, understand the companies' Super-Region-->Region-->Area-->Country revenue breakdowns. Quickly unders...
#! /usr/bin/env python -u # coding=utf-8 import csv import os import time import numpy as np from docopt import docopt from genoml import __version__ from genoml.steps import PhenoScale class Options: _options = {} def __init__(self, commandline_args_file=None): self._options = self.parse_args(com...
#author = Pyae Phyo Hein #idea from https://github.com/kokoye2007/wifi-qr #MIT License #https://github.com/lakhanmankani/wifi_qrcode_generator (Some of code copy from this repo) #31.12.2019 import sys import os from . import wifi_qrcode_created from . import wifi_qrcode_gener def wifiqr(): xdgop = "xdg-open '/tmp/k...
from enum import Enum class EnumMadHatterIndicators(Enum): MACD = 0 RSI = 1 BBANDS = 2
import sys from res import ResMgr from work import Work from case import CaseMgr if __name__ == "__main__": ResMgr.ClearSolu() CaseMgr.Init() work = Work()
import falcon class RequireJSONMiddleware(object): """Middleware class that checks for 'application/json' media-type required headers in API requests. """ def process_request(self, req, resp): if not req.client_accepts_json: raise falcon.HTTPNotAcceptable('This API only supports r...
import os import sys import textwrap import warnings import email from stripe import error, util # - Requests is the preferred HTTP library # - Google App Engine has urlfetch # - Use Pycurl if it's there (at least it verifies SSL certs) # - Fall back to urllib2 with a warning if needed try: import urllib2 except ...
# Recommendation Engine from ModelStore import ModelStore import logging class RecEngine(object): logging.basicConfig(level=logging.INFO) def __init__(self, userAnalyzer, modelStore, userActivityTable): self.userAnalyzer = userAnalyzer self.modelStore = modelStore self.userActivityTable = userActivityTable ...
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ Created on Mon Jan 20 12:23:37 2020 @author: fa19 """ import numpy as np import scipy.io as sio def ismember(a_vec, b_vec): """ MATLAB equivalent ismember function """ bool_ind = np.isin(a_vec,b_vec) common = a[bool_ind] common_unique, common_inv = n...
""" Define a class named Rectangle which can be constructed by a length and width. The Rectangle class has a method which can compute the area. """ """Define a class named Rectangle which can be constructed by a length and width. The Rectangle class has a method which can compute the area. Hints: Use def methodName(...
import numpy as np import os import yaml from yass.evaluate.stability import (MeanWaveCalculator, RecordingAugmentation, RecordingBatchIterator, SpikeSortingEvaluation) from yass.evaluate.visualization import...
from tool_shed.base.twilltestcase import ShedTwillTestCase, common, os import logging log = logging.getLogger( __name__ ) category_name = 'Test 1430 Repair installed repository' category_description = 'Test script 1430 for repairing an installed repository.' filter_repository_name = 'filter_1430' column_repository_na...
import logging from pyvisdk.exceptions import InvalidArgumentError ######################################## # Automatically generated, do not edit. ######################################## log = logging.getLogger(__name__) def TimedOutHostOperationEvent(vim, *args, **kwargs): '''This event indicates that an ope...
import pytest from ..pdf_line.utils.operation import OperationRequest def test_can_construct_operation_request(): OperationRequest() assert 1 == 1
import os from thonny.backend import get_vm, Executor, prepare_hooks, return_execution_result def _cmd_Birdseye(cmd): vm = get_vm() vm.switch_env_to_script_mode(cmd) return vm._execute_file(cmd, BirdsEyeRunner) class BirdsEyeRunner(Executor): @return_execution_result @prepare_hooks def execu...
from __future__ import annotations from dataclasses import dataclass from typing import Optional, List, Union from authlib.common.encoding import to_unicode from didcomm.common.algorithms import AnonCryptAlg, AuthCryptAlg, SignAlg from didcomm.common.resolvers import ResolversConfig from didcomm.common.types import ...
""" Kernel-specific ELF functionality """ from __future__ import division class KernelConfig(object): def __init__(self, name, title, requires=[], excludes=[], minver=0, maxver=99): #: Name of the configuration option self.name = name #: Section to which the configuration point belongs ...
""" import backup plugins """ try: import pkg_resources pkg_resources.declare_namespace(__name__) except ImportError: from pkgutil import extend_path __path__ = extend_path(__path__, __name__)
import threading import importlib from app.thirdparty.oneforall.config.log import logger from app.thirdparty.oneforall.config import settings class Collect(object): def __init__(self, domain): self.domain = domain self.modules = [] self.collect_funcs = [] def get_mod(self): "...
# -*- coding: utf-8 -*- from cms.management.commands.subcommands.base import SubcommandsCommand from cms.models import Page from cms.models.pluginmodel import CMSPlugin from cms.plugin_pool import plugin_pool from django.core.management.base import NoArgsCommand class ListApphooksCommand(NoArgsCommand): help = 'L...
from __future__ import annotations from dataclasses import dataclass, field from enum import Enum from typing import Any, Optional import jwt from .exceptions import InvalidPastaportoError from .tokens import decode_pastaporto class Credential(str, Enum): AUTHENTICATED = "authenticated" STAFF = "staff" ...
# 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.package import * class Minitri(MakefilePackage): """A simple, triangle-based data analytics proxy applica...
# Skeleton of a CLI import click import cognito @click.command('cognito') @click.argument('count', type=int, metavar='N') def cli(count): """Echo a value `N` number of times""" for i in range(count): click.echo(cognito.has_legs)
# Copyright (C) 2012 Ion Torrent Systems, Inc. All Rights Reserved # encoding: utf-8 import datetime from south.db import db from south.v2 import DataMigration from django.db import models import json class Migration(DataMigration): def forwards(self, orm): "Search for the plan" print(" Normaliz...
""" Copyright 2020 Nvidia Corporation Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: 1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. 2. Re...
from django import forms from .models import Post class PostForm(forms.ModelForm): class Meta: model = Post fields = ('title', 'text',)
""" Define the Kubernetes health checks, plus health check of the database. """ import logging import time import fastapi import sqlalchemy.orm from starlette import responses, status import models.database import models.edb import models.patroni router = fastapi.APIRouter() logger = logging.getLogger(__name__) S...
import os from shared.appctl import * from shared.serverctl import getcustomlogger class Config: def __init__(this): this.port = 9090 this.app_name = 'gimp' this.server_file = "gimp/gimpctlserver.py" this.signal_command_mappings = {'save':'S', 'export':'E'} this.logger = get...
from typing import List def publicly_available_images(docker_prefix: str) -> List[str]: # the worker cannot import batch_configuration because it does not have all the environment # variables return [f'{docker_prefix}/{name}' for name in ('query', 'hail', 'python-dill', 'batch-worker')]
import itertools import logging #import libmft.api import libmft.api from libmft.flagsandtypes import AttrTypes, FileInfoFlags, MftUsageFlags from libmft.exceptions import EntryError _MOD_LOGGER = logging.getLogger("libmft") sh = logging.StreamHandler() _MOD_LOGGER.addHandler(sh) _MOD_LOGGER.setLevel(logging.WARNING)...
# Licensed to the Apache Software Foundation (ASF) under one # or more contributor license agreements. See the NOTICE file # distributed with this work for additional information # regarding copyright ownership. The ASF licenses this file # to you under the Apache License, Version 2.0 (the # "License"); you may not u...
import FWCore.ParameterSet.Config as cms process = cms.Process('GEN') process.load("FWCore.MessageLogger.MessageLogger_cfi") process.MessageLogger.cerr.FwkReport.reportEvery = cms.untracked.int32(100) process.load("GeneratorInterface.RivetInterface.mergedGenParticles_cfi") process.load("GeneratorInterface.RivetInter...
''' The `Extractor` hierarchy contains Transformer classes that take a `Stim` of any type as input and return extracted feature information (rather than another `Stim` instance). ''' from .base import Extractor, ExtractorResult, merge_results from .api import (IndicoAPITextExtractor, IndicoAPIImageEx...
# pip install pytorch-lightning # pip install neptune-client #%% from __future__ import print_function from utils.hessian_penalty.hessian_penalty_pytorch import hessian_penalty from pytorch_lightning.loggers import WandbLogger from pytorch_lightning.callbacks.progress import ProgressBar from sklearn.model_selection imp...
from django.contrib import admin from .models import Address,Pay,Package admin.site.register(Address) admin.site.register(Pay) admin.site.register(Package)
import functools import random import warnings import numpy as np from audiomentations.core.audio_loading_utils import load_sound_file from audiomentations.core.transforms_interface import BaseWaveformTransform from audiomentations.core.utils import ( calculate_desired_noise_rms, calculate_rms, convert_de...
#!/usr/bin/env python from __future__ import unicode_literals import codecs from io import open import os import re import setuptools from setuptools import setup, find_packages import sys # Borrowed from pip at https://github.com/pypa/pip/blob/62c27dee45625e1b63d1e023b0656310f276e050/setup.py#L11-L15 here = os.path.a...
""" Test some SBModule and SBSection APIs. """ from __future__ import print_function import os import time import re import lldb from lldbsuite.test.decorators import * from lldbsuite.test.lldbtest import * from lldbsuite.test import lldbutil from lldbsuite.test.lldbutil import symbol_type_to_str class ModuleAndSe...
from robo_rugby.gym_env.RR_Robot import Robot from . import RR_TrashyPhysics as TrashyPhysics from robo_rugby.gym_env.RR_EnvBase import GameEnv from . import RR_Constants as const from MyUtils import distance from typing import Set, List, Tuple """ Scoring systems were getting a little messy and I find myself enabli...
from __future__ import annotations from datetime import timedelta import operator from sys import getsizeof from typing import ( TYPE_CHECKING, Any, Callable, Hashable, List, cast, ) import warnings import numpy as np from pandas._libs import index as libindex from pandas._l...
import time import logging import overpass class OverpassApi: def __init__(self): self.overpass = overpass.API(timeout=60) self.logger = logging.getLogger(__name__) def get(self, bbox, tags): query = self._get_query(bbox, tags) return self._try_overpass_download(query) @s...
'''Library applications for the CMS.'''
# Licensed under a 3-clause BSD style license - see LICENSE.rst __all__ = [ 'read_label', 'read_ascii_table', 'read_image', 'read_table' ] import os from warnings import warn from collections import OrderedDict try: from ply import lex, yacc except ImportError: raise ImportError("pds3 require...
from libs.aws.session import get_aws_session def get_eip_list(config): """获取所以的eip""" s = get_aws_session(config) clients = s.client("ec2") resp_dict = clients.describe_addresses() eip_list = resp_dict.get("Addresses") return eip_list if __name__ == '__main__': pass
from flask import Flask, jsonify, render_template from flask_basicauth import BasicAuth app = Flask(__name__,static_url_path='/static') app.config['BASIC_AUTH_USERNAME'] = 'daw' app.config['BASIC_AUTH_PASSWORD'] = 'prova' basic_auth = BasicAuth(app) @app.route('/') @basic_auth.required def access_calc(): return...
from .default.cache import Cache as DefaultCache CACHE = { "default": DefaultCache, }
def __str__(self): return self.cStr() def __len__(self): return self.length() def __getitem__(self, n): return self.cStr().__getitem__(n)
#!/usr/bin/env python # Copyright 2015 The TensorFlow 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 # # Unle...
import voluptuous as vol from pi4home.components import i2c, output import pi4home.config_validation as cv from pi4home.const import CONF_ADDRESS, CONF_FREQUENCY, CONF_ID from pi4home.cpp_generator import Pvariable, add from pi4home.cpp_helpers import setup_component from pi4home.cpp_types import App, Component DEPEN...
import copy import itertools from abc import ABC, abstractmethod from collections import OrderedDict from dataclasses import asdict, dataclass, make_dataclass from typing import Any, Callable, Dict, List, Optional, Set, Tuple, Union, cast import numpy as np import great_expectations.exceptions as ge_exceptions from g...
import datetime import os import time import torch import torch.utils.data from torch import nn import torchvision from torchvision.transforms.functional import InterpolationMode import presets import utils try: from apex import amp except ImportError: amp = None def train_one_epoch(model, criterion, optim...
from pathlib import Path # Statement for enabling the development environment DEBUG = True # Define the application directory import os BASE_DIR = Path(__file__).parent # Define the database - we are working with # SQLite for this example SQLALCHEMY_DATABASE_URI = os.environ.get( "SQLALCHEMY_DATABASE_URI", f"sq...
# Copyright (c) 2006-2007, 2009-2014 LOGILAB S.A. (Paris, FRANCE) <contact@logilab.fr> # Copyright (c) 2012 FELD Boris <lothiraldan@gmail.com> # Copyright (c) 2013-2018 Claudiu Popa <pcmanticore@gmail.com> # Copyright (c) 2014 Google, Inc. # Copyright (c) 2014 Eevee (Alex Munroe) <amunroe@yelp.com> # Copyright (c) 2015...
import wx import datetime import Utils import Model import JChip from ChipImport import ChipImportDialog def parseTagTime( line, lineNo, errors ): try: fields = line.split(';' if ';' in line else ',') msg = fields[0] if msg != '$P': return None, None tag = fields[2] tStr = fields[5] except IndexError: ...
# Generated by Django 2.0.9 on 2019-05-25 03:08 from django.db import migrations class Migration(migrations.Migration): dependencies = [ ('django_chatter', '0001_initial'), ] operations = [ migrations.AlterModelOptions( name='message', options={'ordering': ['-id'...
# Copyright 2018 The TensorFlow Probability 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...
"""Tests for the Roku Media Player platform.""" from datetime import timedelta from unittest.mock import MagicMock, patch import pytest from rokuecp import RokuError from homeassistant.components.media_player import MediaPlayerDeviceClass from homeassistant.components.media_player.const import ( ATTR_APP_ID, ...
# -*- coding: utf-8 -*- #/usr/bin/python3 ''' Feb. 2019 by kyubyong park. kbpark.linguist@gmail.com. https://www.github.com/kyubyong/transformer. Preprocess the iwslt 2016 datasets. ''' import os import wget import tarfile import errno import sentencepiece as spm import re from hparams import Hparams import logging ...
import telebot bot = telebot.TeleBot(1849150185:AAHiJW86MLpittnm0Po5mAfbIsdPmzopuo4) @bot.message_handler(commands=['start', 'help']) def send_welcome(message): bot.reply_to(message, f'Отлично. Теперь отправьте мне любое сообщение. При отправке не допускайте нецензурных выражений, иначе вы будете забанены и п...
#!/usr/bin/env python # -*- coding: utf-8 -*- """ --- This file is part of pygalle.core.env Copyright (c) 2018 SAS 9 Février. Distributed under the MIT License (license terms are at http://opensource.org/licenses/MIT). --- """ import unittest import inspect import os, sys sys.path.insert(0, os.path.abspath(os.path.j...
# -------------------------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. # --------------------------------------------------------------------...
class Solution: def XXX(self, n: int) -> int: if n <= 2: return n a, b = 1, 2 for i in range(2, n): a, b = b, a + b return b
class Solution: def removeDuplicates(self, nums: List[int]) -> int: i = 0 for j in range(1, len(nums)): if nums[j] != nums[i]: i += 1 nums[i] = nums[j] nums[:] = nums[:i + 1] return i + 1
# -*- coding: utf-8 -*- # PREREQUISITES # The pip package management tool # The Google APIs Client Library for Python: # pip install --upgrade google-api-python-client # The google-auth, google-auth-oauthlib, and google-auth-httplib2 for user authorization. # pip install --upgrade google-auth google-auth-oauthlib ...
#copyright (c) 2019 PaddlePaddle Authors. All Rights Reserve. # #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 l...
# -*- coding: utf-8 -*- # @Time : 2020/10/6 # @Author : Changxin Tian # @Email : cx.tian@outlook.com r""" KGCN ################################################ Reference: Hongwei Wang et al. "Knowledge graph convolution networks for recommender systems." in WWW 2019. Reference code: https://github.com/hww...
############################################################################### # # Chart - A class for writing the Excel XLSX Worksheet file. # # Copyright 2013-2020, John McNamara, jmcnamara@cpan.org # import re import copy from warnings import warn from .shape import Shape from . import xmlwriter from .utility impo...
# -*- coding: utf-8 -*- """ MIT License Copyright (c) 2017 Vic Chan 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...
#!/usr/bin/env python # coding=utf-8 import sys import logging import numpy as np import matplotlib.pyplot as plt from pathlib import Path from beyond.propagators.listeners import LightListener, RadialVelocityListener from beyond.errors import UnknownFrameError from beyond.env.solarsystem import get_body from .utils...
#!/usr/bin/env python ############################################################################### # $Id$ # # Project: GDAL/OGR Test Suite # Purpose: Test VRTWarpedDataset support. # Author: Frank Warmerdam <warmerdam@pobox.com> # ############################################################################### # ...
from django.db import models from django.contrib.auth.models import AbstractBaseUser from django.contrib.auth.models import PermissionsMixin from django.contrib.auth.models import BaseUserManager from django.conf import settings # Create your models here. class UserProfileManager(BaseUserManager): """Manager for ...
#!/usr/bin/env python3 """Library of Python tools -- Hugues Hoppe. # pylint: disable=line-too-long Useful commands to test and polish this file: bash -c 'f=__init__.py; true && env python3 $f; env mypy --strict "$f"; autopep8 -a -a -a --max-line-length 80 --indent-size 2 --ignore E265 --diff "$f"; pylint --indent-str...
# -------------------------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. # -----------------------------------------------------------------...
#! /usr/bin/env python # coding=utf-8 # Copyright (c) 2019 Uber Technologies, 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 # # Unles...
import numpy as np import matplotlib.pyplot as plt from matplotlib import rcParams plt.style.use('ggplot') rcParams['font.sans-serif'] = "Segoe UI" rcParams['font.family'] = "sans-serif" plot_size = 10.0 def plot_map_with_points(d2X, d2Y, d2Col, d1Contours, sColMap, d1MapRange, d1XScat, d1YS...
import unittest from app.models import Source class SourceTest(unittest.TestCase): ''' Test Class to test the behaviour of the Source class ''' def setUp(self): ''' Set up method that will run before every Test ''' self.new_source = Source('cnn','CNN.','View the latest...
from __future__ import print_function import glob import os import re import threading from functools import partial import pytest import numpy as np from numpy.random import rand from pandas import (DataFrame, MultiIndex, read_csv, Timestamp, Index, date_range, Series) from pandas.compat impor...
from typing import Any, Dict, List from pandas import DataFrame from weaverbird.backends.pandas_executor.geo_utils import df_to_geodf from weaverbird.backends.pandas_executor.types import DomainRetriever, PipelineExecutor from weaverbird.pipeline.steps.aggregate import Aggregation from weaverbird.pipeline.steps.disso...
import mistune from flask import Flask from pygments import highlight from pygments.formatters import html from pygments.lexers import get_lexer_by_name from api import m_f import http.client http.client._MAXLINE = 655360 m_f.init(is_log=True) app = Flask(__name__) # pagination = Pagination(app) app.config["SECRET...
# -*- coding: utf-8 -*- # Import installed modules # Import installed packages from webargs import fields from flask_apispec import doc, use_kwargs, marshal_with from flask_jwt_extended import jwt_required # Import app code from app.main import app from app.api.api_v1.api_docs import docs, security_params from app.co...
# coding: utf-8 """ Yapily API To access endpoints that require authentication, use your application key and secret created in the Dashboard (https://dashboard.yapily.com) # noqa: E501 The version of the OpenAPI document: 1.154.0 Generated by: https://openapi-generator.tech """ from __future__ imp...
import torch import torch.nn as nn import numpy as np from ...utils import box_utils from .point_head_template import PointHeadTemplate from ...ops.roiaware_pool3d import roiaware_pool3d_utils class SoftmaxFocalClassificationLoss(nn.Module): """ Softmax focal cross entropy loss. """ def __init__(self...
# coding=utf-8 from __future__ import unicode_literals from __future__ import absolute_import from importlib import import_module import locale as pylocale from faker import Generator from faker.config import DEFAULT_LOCALE, PROVIDERS, AVAILABLE_LOCALES from faker.utils.loading import list_module class Factory(obj...
description = 'Trigger (output on connector no 9)' display_order = 100 devices = dict( #Trigger signal trigger = device('nicos.devices.epics.EpicsDigitalMoveable', epicstimeout = 3.0, description = 'Trigger bit', readpv = 'SQ:ICON:b4io3:CamTrig', writepv = 'SQ:ICON:b4io3:CamTri...