input
stringlengths
2.65k
237k
output
stringclasses
1 value
# coding: utf-8 """ finAPI RESTful Services finAPI RESTful Services # noqa: E501 OpenAPI spec version: v1.42.1 Generated by: https://github.com/swagger-api/swagger-codegen.git """ import pprint import re # noqa: F401 import six from swagger_client.models.single_money_transfer_recipient_data import SingleMo...
import sys import numpy as np import matplotlib import matplotlib.pyplot as plt from matplotlib.patches import Rectangle, PathPatch from scipy.sparse import csr_matrix, coo_matrix from scipy.sparse.csgraph import dijkstra from timeit import default_timer as timer from mpl_toolkits.mplot3d import axes3d import mpl_toolk...
<gh_stars>10-100 # Copy of the mothballed rdflib_sqlite module by gjhiggins, see # https://github.com/RDFLib/rdflib-sqlite/ # # Modified by <NAME> to fix a couple of bugs try: from sqlite3 import dbapi2 as sqlite3 # python 2.5 except ImportError: import warnings warnings.warn( "sqlite3 not found, is it installed?"...
# Mostly based on the code written by <NAME> & <NAME>: # https://github.com/tinghuiz/SfMLearner/blob/master/data_loader.py # https://github.com/mrharicot/monodepth/blob/master/monodepth_dataloader.py from __future__ import division import os import random import tensorflow as tf import numpy as np def read_npy_file(i...
""" The code implementation of the paper: <NAME>, <NAME>, <NAME>, and <NAME>, "PIE: A Large-Scale Dataset and Models for Pedestrian Intention Estimation and Trajectory Prediction", ICCV 2019. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the Licens...
<gh_stars>1-10 #!/usr/bin/env python """ Newton Generate Boot Images Usage: generateBootImage.py <target> <file_name> [--sim][--frontdoor][--seed=<seed_value>][--count=<word_count>][--hsp_fw_0p97] Options: -h --help Shows this help message. Target is one of the following: useq_seq_ram : Microsequencer Sequence RA...
# -*- coding: utf-8 -*- """ Created on 9/15/2020 This is a simple EV federate that models a set of EV terminals in an EV charging garage. Each terminal can support charging at levels 1, 2, and 3 but the EVs that come to charge have a randomly assigned charging level. Managing these terminals is a centralized EV Contr...
<gh_stars>0 """ SUMMARY Reinforcement learning via q-learning on the provided data, using previous data if requested """ import argparse import json import random import sys import matplotlib.pyplot as plt import numpy as np import auxiliary as aux from vehicle import Vehicle # Sets seed for reproducibility rando...
<reponame>mafusuke/InvStat<filename>SQLManager.py import json from typing import Optional, List, Set import asyncpg class SQLManager: def __init__(self, name: str, user: str, password: str, bot_loop): self.loop = bot_loop self.con = None self.database_name = name self.database_user = user self.database_passwor...
if value_unit_dict: sc_link = self.values_to_sc_link(sc_link, value_unit_dict, idx_map, None) general_grounding = [] general_grounding_types = {} if has_schema: general_grounding += preproc_schema.table_names tab_len = len(general_grounding) general_grounding_types['table'] = tab_len if self.compute_sc_link a...
_OUTPUT_FOR_MODEL.initialIntensityReport.filename srwl_bl.SRWLBeamline().calc_int_from_wfr( wfr, _pol=int(frame_args.polarization), _int_type=int(frame_args.characteristic), _fname=data_file, _pr=False, ) if 'beamlineAnimation' not in r: # some reports may be written at the same time as the reader # if the fi...
from utilities import utils from text_processing import text_normalizer import pickle import re import os import pickle from time import time from text_processing import abbreviations_resolver class SearchEngineInsensitiveToSpelling: def __init__(self, abbreviation_folder = "../model/abbreviations_dicts", load_abbr...
<gh_stars>0 # @Mantenedor: <NAME> # Models --> Serializer --> [View] --->Url pattern # El archivo view tiene clases que se encargan # del manejo de cabeceras de peticiones request # y respuestas response con sus respectivas lineas de estado # por ejemplo: 200, 404, 302 entre otros from rest_framework.views import APIV...
2d. Look for templates where the 'width/height' params (or equivalent # in German) refer to latitude/longitude. elif lowertemp in ('infobox ort', 'infobox verwaltungseinheit'): (lat, long) = get_infobox_ort_coord(temptype, paramshash, rawargs) # 2e. Look for Russian координаты param, which has its own format. else...
h, nu) * h ** 2 # # print("uni = {0}".format(simplify(uni))) # print("rni = {0}".format(simplify(rni))) # print("rxni = {0}".format(simplify(rxni))) # print("rxxni = {0}".format(simplify(rxxni))) # # # print("rx = {0}, с2 = {1}, с3 = {2}, с4 = {3}, с5 = {4}".format(simplify(rx), simplify(c2), c3, c4, c5)) # d...
invoke the operation as ``client.create_foo(**kwargs)``, if the ``create_foo`` operation can be paginated, you can use the call ``client.get_paginator(\"create_foo\")``. :raise OperationNotPageableError: Raised if the operation is not pageable. You can use the ``client.can_paginate`` method to check if an operati...
# Copyright (c) 2017 Dell Inc. or its subsidiaries. # 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 b...
about those in numC for constr in self.pointConstr: numCG += constr.nG for constr in self.multiPointConstr: numCG += constr.nG for constr in self.pathConstr: numCG += self.N * constr.nG for constr in self.nonLinConstr: numCG += constr.nG numG = numDynG + numCG self.nG = numG def __getDynSparsity(self, x): ...
in range(k - s, np): ctrlpts_new[i + num] = ctrlpts[i] # Start filling the temporary local array which will be used to update control points during knot insertion for i in range(0, degree - s + 1): temp[i] = deepcopy(ctrlpts[k - degree + i]) # Insert knot "num" times for j in range(1, num + 1): L = k - degree ...
None self.error = None APIADDSIMULATORHOSTMSG_FULL_NAME = 'org.zstack.header.simulator.APIAddSimulatorHostMsg' class APIAddSimulatorHostMsg(object): FULL_NAME='org.zstack.header.simulator.APIAddSimulatorHostMsg' def __init__(self): #mandatory field self.memoryCapacity = NotNoneField() #mandatory field self.cpu...
<reponame>microsoft/msrflute # Copyright (c) Microsoft Corporation. # Licensed under the MIT license. ''' The Client object is short-lived, instantiated inside of worker 0 and moved to workers 1 to N for processing a given client's data. It's main method is the `process_round` function, used to update the model given a...
deleter() and fget.__doc_ copy def __init__(self, fget=None, fset=None, fdel=None, doc=None): self.fget = fget self.fset = fset self.fdel = fdel if not doc is None or not hasattr(fget, '__doc__') : self.__doc__ = doc else: self.__doc__ = fget.__doc__ def __get__(self, obj, objtype=None): if obj is None: ret...
<gh_stars>0 #!/usr/bin/env python # coding: utf-8 # # Intro # Hello! This rather quick and dirty kernel shows how to get started on segmenting nuclei using a neural network in Keras. # # The architecture used is the so-called [U-Net](https://arxiv.org/abs/1505.04597), which is very common for image segmentation prob...
#!/usr/bin/python # -*- coding: utf-8 -*- """ Author: <NAME> Email: <EMAIL> """ import logging import os from math import log import cv2 import numpy as np import numpy.linalg as la from scipy.spatial import distance as spd import pywt import Tyf import tifffile as tiff class Image(object): """ Image class Attrib...
# Copyright (C) to <NAME>, <NAME>, <NAME>. All Rights Reserved. import numpy as np import torch from .util import as_tensor from .util import as_numpy _LINPROG_CENTRAL_PATH = [] def _collect_linprog_central_path(step, c, A_ub, b_ub, A_eq, b_eq, x, dx, t): global _LINPROG_CENTRAL_PATH if step == 0: _LINPROG_CENT...
# coding=utf-8 # *** WARNING: this file was generated by the Pulumi SDK Generator. *** # *** 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, _tables from ...
""" 개발환경 : PyQt5 x64, Python 3.4.3 x64, Windows 8.1 x64 파일 : MainToolGUI_UI.py 내용 : UI의 기본 구성을 위한 파이썬 코드로, 그냥 매우 길어서 분리해놨음...ㅡ,.ㅡ """ from functools import partial from PyQt5.QtCore import * from PyQt5.QtGui import * from PyQt5.QtWidgets import * from _thread import * import sys import urllib.request class MainTool...
"segue", "storefront", "teleporter", "sava", "perpetuity", "shizu", "ita", "spires", "malina", "phallus", "danbury", "emu", "dividend", "hatton", "steppes", "havens", "whoo-whoo", "divination", "'uns", "5k", "glinda", "singhania", "wields", "stratos", "teodoro", "limousines", "assessments", "...
namely :class:`Glucose3`, :class:`Glucose4`, :class:`Gluecard3`, and :class:`Gluecard4` have one more default argument ``incr`` (``False`` by default), which enables incrementality features introduced in Glucose3 [3]_. To summarize, the additional arguments of Glucose are: :param incr: enable the incrementality f...
% iter_save == 0: ut.save_model_by_name_cls(cls, i) # ut.save_model_by_name_cls(model.vae, i) # ut.save_model_by_name_ae(model.relu_loss,i) # ut.sample_image(model.vae, 4, dataset_mean, dataset_std, path_saveimg, str(i)) if i >= iter_max: # if i >= 4: path = "/scratch/users/zucks626/ADNI/IPMI/checkpoints/...
@multi_asset_class_swap.setter def multi_asset_class_swap(self, value: dict): self._property_changed('multi_asset_class_swap') self.__multi_asset_class_swap = value @property def cross(self) -> dict: return self.__cross @cross.setter def cross(self, value: dict): self._property_changed('cross') self.__cros...
use_dropout, norm, pad_type): super(GanillaStyleEncoder, self).__init__() self.layer0 = FirstBlock_Ganilla(input_dim, ganilla_ngf, norm=norm, pad_type=pad_type) # residuals self.layer1 = self._make_layer_ganilla(BasicBlock_Ganilla, ganilla_ngf, ganilla_block_nf[0], ganilla_layer_nb[0], use_dropout, norm, stride=1...
of the star location according to the star catalogue and are for the unit vector representation. A single value is provided for each unit vector representing the sum of the squares of the uncertainty (the trace of the covariance matrix). Each element of the array matches to the corresponding column in the :attr:`q...
# 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 the Li...
default=False, action="store_true", help=( "Instead of using shell globs to evaluate the target " "use one of the predefined nodegroups to identify a " "list of targets." ), ) group.add_option( "-R", "--range", default=False, action="store_true", help=( "Instead of using shell globs to evaluate the target...
The current dataset will not be affected. :param group_name: The name of the transformations group to use. :return: A new dataset with the new transformations. """ dataset_copy = self._fork_dataset() if group_name not in dataset_copy.transform_groups: raise ValueError('Invalid group name ' + str(group_name)) ...
----------------------------------------------------------- if act == 2: next_location = ( round(current_loc[0] + self.action_step), current_loc[1], current_loc[2], ) if next_location[0] >= self._image_dims[0]: # print(' trying to go out the image X+ ',) next_location = current_loc go_out = True # LEFT X- --...
labels. Returns a tuple of the form (transform, valign, halign) """ return self._xaxis_text2_transform, 'center', 'center' def get_yaxis_transform(self, which='grid'): """ Override this method to provide a transformation for the y-axis grid and ticks. """ assert which in ['tick1', 'tick2', 'grid'] return se...
= sorted(self.statement_parser.shortcuts, key=lambda x: self.default_sort_key(x[0])) result = "\n".join('{}: {}'.format(sc[0], sc[1]) for sc in sorted_shortcuts) self.poutput("Shortcuts for other commands:\n{}".format(result)) eof_parser = DEFAULT_ARGUMENT_PARSER(description="Called when <Ctrl>-D is pressed", epilo...
/ 8) # Finish populating payoffs outside of the square matrix # These actions must be dominated if n < 9 and m < 9: multiple = np.random.random() * 0.45 + 1.5 else: multiple = np.random.random() * 0.05 + 1.5 if n > m: for k in range(n_actions_square, n): payoffs[0, k, :] = payoffs[0, k - 1, :] / multiple pay...
"""Common metrics to assess performance on NARX models.""" # Authors: # <NAME> <<EMAIL>> # <NAME> <<EMAIL>> # <NAME> <<EMAIL>> # <NAME> <<EMAIL>> # License: BSD 3 clause import numpy as np __ALL__ = [ "forecast_error", "mean_forecast_error", "mean_squared_error", "root_mean_squared_error", "no...
from __future__ import annotations # TODO: # protocol packet patterns should be protocol fields import collections import enum import functools import random import sys import typing from abc import ABCMeta if typing.TYPE_CHECKING: import asyncio from jj2.game.client import GameClient from construct import ( Byt...
will work as expected since __setitem__ method does not create a new vector for representing the left hand side: >>> v[0:4:2] = v[1:4:2] .. _NumPy Array Indexing: https://docs.scipy.org/doc/numpy-1.13.0/reference/arrays.indexing.html """ ret = self.numpy().__getitem__(index) if isinstance(ret, numpy.float64): ...
""" Evaluation Script Support Two Modes: Pooling based inference and sliding based inference """ import os import logging import sys import argparse import re import queue import threading from math import ceil from datetime import datetime from tqdm import tqdm import cv2 from PIL import Image import PIL from torch.b...
for GXP lazy-loading layer_bbox = layer.bbox bbox = [float(coord) for coord in list(layer_bbox[0:4])] if hasattr(layer, 'srid'): config['crs'] = { 'type': 'name', 'properties': layer.srid } config["srs"] = getattr(settings, 'DEFAULT_MAP_CRS', 'EPSG:3857') config["bbox"] = bbox if config["srs"] != 'EPSG:3857' \...
user has a network association, but they # specifically said that it can not be used on this host if net_assn is not None and net_assn.sea is None: raise excp.IBMPowerVMNetworkNotValidForHost( host=host_display_name) # Set the Shared Ethernet Adapter to the value in the network # association, if it exists...we m...
<reponame>Ohyeon5/SQM_basis # Dataset funcions import numpy as np from numpy.random import RandomState as rng from skimage.draw import circle, ellipse, rectangle, polygon # from skimage.morphology import square, rectangle, diamond, disk, octagon, star from skimage.transform import resize, rotate from tqdm import tqdm ...
1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,...
<reponame>kukosek/pi-timolo #!/usr/bin/python """ pi-timolo - Raspberry Pi Long Duration Timelapse, Motion Tracking, with Low Light Capability written by <NAME> Jul-2017 (release 7.x) This release uses OpenCV to do Motion Tracking. It requires updated config.py """ from __future__ import print_function progVer = "ver 1...
#!/usr/bin/python # Classification (U) """Program: mongo_db_dump.py Description: The mongo_db_dump program runs dumps against a Mongo database and depending on which type of dump is selected can dump individual databases. Usage: mongo_db_dump.py -c file -d path {-M -o dir_path [-z | -b database [-r | -t name] ...
return rowcount def add_netblocks(self, netblock=None, mute=False): '''Adds a netblock to the database and returns the affected row count.''' data = dict( netblock = self.to_unicode(netblock) ) rowcount = self.insert('netblocks', data.copy(), data.keys()) if not mute: self._display(data, rowcount, '[netblock] %...
"""Module containing local database functions.""" import os from pathlib import Path import shutil import math import zipfile from datetime import datetime from typing import List from concurrent.futures import ProcessPoolExecutor, ThreadPoolExecutor import requests import pandas as pd import numpy as np from . import ...
return self._map_edges(lambda e: 0.5 * (e[:-1] + e[1:]), edges=edges) def _len_edges(self, edges=None): return self._map_edges(len, edges=edges) def _min_edges(self, edges=None): return self._map_edges(numpy.min, edges=edges) def _max_edges(self, edges=None): return self._map_edges(numpy.max, edges=edges) de...
""" mspt.loc.peak_fit_hessians.py ~~~~~~~~~~~~~~~~~~~~ Supply analytical Jacobian matrices for MLE to scipy.optimize.minimize """ import numpy as np from numba import jit @jit(nopython=True, fastmath=True, nogil=False, parallel=False, cache=True) def fit_peak_DoG_mle_hessian(parms, X, Y, im, s_fixe...
from flask import render_template, url_for, request, Flask from app import app import pandas as pd from flaskext.mysql import MySQL import matplotlib.pyplot as plt from matplotlib.patches import Patch plt.switch_backend('agg') import numpy as np import operator # sorting dictionary import random import string ########...
import os import struct import subprocess from copy import copy import numpy as np import matplotlib.pyplot as plt from tqdm import tqdm class Chunk: __header_size = 8 header = None data_position = -1 fd = None def __init__(self, file): initial_pos = file.tell() self.header = file.read(self.__header_size) i...
import asyncio import datetime import traceback import random import os import csv import collections import threading import discord import plotly.plotly as py import plotly.graph_objs as go from .. import utils, errors, cmd from ..servermodule import ServerModule, registered from ..enums import PrivilegeLevel @reg...
<gh_stars>10-100 """A module for post-processing operations.""" # *********************************************************************** # # FILE preprocess.py # # AUTHOR Dr. <NAME> # # VERSION 1.0.0-alpha4 # # WEBSITE https://github.com/vxsharma-14/project-NAnPack # # NAnPack Learner's Edition is distribut...
from :attr:`self.supported_magic`, :attr:`self.magic`, and :attr:`self.magic_map`. *filetype* may be the specific filetype class or a string that can be either a filetype.name or filetype.mimetype. """ found = None if isinstance(filetype, basestring): for Type in self.supported_magic: if Type.name == filetype:...
<gh_stars>1-10 from __future__ import print_function, unicode_literals import hashlib import json import logging import os import re from os import path import dill as pickle import dill as pickle import pandas as pd from algorithms.flight_recorder import FlightRecorder, Record from algorithms.oracle.human_oracle im...
<gh_stars>0 # Copyright (C) 2017 <NAME> # https://github.com/jarvist/Julia-Phonons/blob/master/src/JuliaPhonons.jl import numpy as np import matplotlib.pyplot as plt from phonopy import Phonopy from phonopy.interface.vasp import read_vasp from phonopy.file_IO import parse_FORCE_SETS, parse_BORN, parse_FORCE_CONSTANTS ...
#!/usr/bin/env python # This program makes Debian and RPM repositories for MongoDB, by # downloading our tarballs of statically linked executables and # insinuating them into Linux packages. It must be run on a # Debianoid, since Debian provides tools to make RPMs, but RPM-based # systems don't provide debian packagin...
# Modifications Copyright 2018 Anonymous Authors. All Rights Reserved. # Copyright 2017 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:/...
""" Classification evaluation. | Copyright 2017-2021, Voxel51, Inc. | `voxel51.com <https://voxel51.com/>`_ | """ import itertools import warnings import numpy as np import sklearn.metrics as skm import fiftyone.core.evaluation as foe from fiftyone.core.expressions import ViewField as F import fiftyone.core.fields a...
is simply the first part of the content; its exact extent is configured is decided by the repository and is often user-configurable. Anchors in the same database must have unique prefaces. Arguments ========= * a: The contents of the Anchor. * q: the q-value of the Anchor. Both integers and decimal fractions...
self._header @header.setter def header(self, data): """disallowed""" raise RuntimeError("not allowed to set the header") @property def format(self): """the display format""" return self._format @format.setter def format(self, new): """the display format""" # setting the default format for str(self) if n...
qualifier, cycle, type); }, /** * @param {?} opt_attributes * @param {?} value * @return {?} */ contains : function(opt_attributes, value) { var attributes = opt_attributes.pos.getc(true); var actual = opt_attributes.getData("width"); var epsilon = opt_attributes.getData("height"); return this.nodeHelper.rec...
""" FCP API in Python created by <NAME> 2018 For FCP documentation, see https://wiki.freenetproject.org/FCPv2 still under construction """ import logging import os import socket import stat import threading import time from pathlib import Path, PurePosixPath from threading import Timer from time import strftime, loca...
# coding=utf-8 """Some generic utilities""" # Copyright 2012-2014 <NAME> # 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 ap...
[], error_message archive_file_name = None for repository_elem in elem: if repository_elem.tag == 'archive': # <archive>package_lapack_3_4-9e7a45ad3522.tar.gz</archive> archive_file_name = repository_elem.text break if archive_file_name is None: error_message = 'The %s tag set is missing a required <archive> su...
= {"EgressMatrixCell": {'id': emc, 'description': description, 'sourceSgtId': src_sgt["id"], 'destinationSgtId': dst_sgt["id"], 'defaultRule': default_rule, "matrixCellStatus": "ENABLED", 'sgacls': newacls}} resp = self._request(('{0}/config/egressmatrixcell/' + emc).format(self.url_base), method='put', data=jso...
<filename>google/cloud/dialogflowcx_v3beta1/services/versions/async_client.py # -*- coding: utf-8 -*- # Copyright 2020 Google LLC # # 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://w...
<filename>SHAPE/model.py #!/usr/bin/env python3 import numpy as np import scipy as sp from scipy.optimize import minimize import pandas as pd import matplotlib.pyplot as plt import math import emcee import corner import pickle import tkinter as tk import matplotlib.font_manager from tkinter import simpledialog from tki...
import uuid from datetime import timedelta import requests from client import exceptions as ex from client.sources.common import core from client.utils import auth, format, encryption from client.protocols.grading import grade from client.cli.common import messages import client import collections import glob import...
# -*- coding: utf-8 -*- from __future__ import absolute_import from __future__ import division from __future__ import print_function from __future__ import unicode_literals import numpy as np from abel.tools.polar import reproject_image_into_polar from scipy.ndimage import map_coordinates from scipy.ndimage.interpola...
None and no flattened fields passed, work. client = DataMigrationServiceClient( credentials=ga_credentials.AnonymousCredentials(), transport='grpc', ) # Mock the actual call within the gRPC stub, and fake the request. with mock.patch.object( type(client.transport.resume_migration_job), '__call__') as call: cl...
# Subject to the foregoing terms and conditions, Ubiq hereby grants to You, at # no cost, a perpetual, worldwide, non-exclusive, royalty-free, irrevocable # (except as stated herein) license to the Software, including all right to # reproduce, prepare derivative works of, sublicense, and distribute the same. # In the e...
# # Autogenerated by Thrift Compiler (0.13.0) # # DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING # # options string: py # from thrift.Thrift import TType, TMessageType, TFrozenDict, TException, TApplicationException from thrift.protocol.TProtocol import TProtocolException from thrift.TRecursive impor...
"CString" : return _znc_core.CZNC_GetCompileOptionsString() CZNC_GetCompileOptionsString = _znc_core.CZNC_GetCompileOptionsString def CZNC_Get() -> "CZNC &" : return _znc_core.CZNC_Get() CZNC_Get = _znc_core.CZNC_Get def CZNC_DumpConfig(*args) -> "void" : return _znc_core.CZNC_DumpConfig(*args) CZNC_DumpConfig = _...
: u'aj', u'oãi' : u'aj', u'oại' : u'aj', u'oay' : u'ăj', u'oáy' : u'ăj', u'oày' : u'ăj', u'oảy' : u'ăj', u'oãy' : u'ăj', u'oạy' : u'ăj', u'oao' : u'aw', u'oáo' : u'aw', u'oào' : u'aw', u'oảo' : u'aw', u'oão' : u'aw', u'oạo' : u'aw', u'oeo' : u'ew', u'oéo' : u'ew', u'oèo' : u'ew', u'oẻo' : u'ew', u'oẽo' : u'ew', u'oẹ...
# Copyright 2020 Deepmind Technologies Limited. # # 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 ...
countries=Count('project__operating_unit', distinct=True), # budget_sources=Count('organisation', distinct=True)) # aggregate['year'] = year # aggregate['sector'] = sector # aggregate['sector_name'] = sector_name # budget_sources = DonorFundSplitUp.objects.filter(query).values('organisation')\ # .annotate(total_expense...
same # value in every descriptor. But if they are not, log a warning, and # keep processing the event. # Is v2 SupportedProtocolBitfield 0xc (1 << 2 + 1 << 3)? const_bitfield_str = '0xc' const_bitfield_strlen = len(const_bitfield_str) if not is_string_valid("SupportedProtocolBitfield", fields, event_desc, is_m...
<filename>elmo-chainer/bilm/elmo.py<gh_stars>100-1000 import json import logging # from typing import Union, List, Dict, Any import warnings import numpy import h5py import tqdm import chainer from chainer import cuda from chainer import functions as F from chainer import links as L from chainer import Variable from...
import datetime import json import re from collections import OrderedDict from urllib.parse import parse_qs, urlparse import bleach import pytz from django.conf import settings from django.contrib.auth import get_user_model from django.core.exceptions import ValidationError as DjangoValidationError from django.core.va...
# 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 or ag...
<gh_stars>0 """hug/types.py Defines hugs built-in supported types / validators Copyright (C) 2016 <NAME> 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 li...
model.objects.create(**{ f'field_{field.id}_id': None, }) filter = data_fixture.create_view_filter( view=grid_view, field=field, type='single_select_not_equal', value='' ) ids = [r.id for r in handler.apply_filters(grid_view, model.objects.all()).all()] assert len(ids) == 3 filter.value = str(option_a.id) ...
import torch from config import config as cfg import backbones import logging import losses import os import torch import torch.distributed as dist import torch.nn.functional as F import torch.nn as nn import torch.utils.data.distributed from utils.utils_logging import AverageMeter, init_logging from utils.utils_callba...
<gh_stars>0 """ This module provides a Python API for accessing versions (timestamped captures) of a URL. There are existing open-source Python packages for the Internet Archive API (the best-established one seems to be https://internetarchive.readthedocs.io/en/latest/) but none that expose the list of versions of a UR...
<gh_stars>1-10 from rest_framework import serializers from django.contrib.auth.models import User from models import Video, Frame, Region, DVAPQL, QueryResults, TEvent, IndexEntries, Tube, Segment, TrainedModel, \ Retriever, SystemState, QueryRegion, QueryRegionResults, Worker, TrainingSet, RegionRelation, TubeRegionR...
# -*- coding: utf-8 -*- # This file is auto-generated, don't edit it. Thanks. import time from Tea.exceptions import TeaException, UnretryableException from Tea.request import TeaRequest from Tea.core import TeaCore from antchain_alipay_util.antchain_utils import AntchainUtils from typing import Dict from antchain_sd...
L] >>> shaft = [axial_shaft, coaxial_shaft] >>> disk0 = rs.DiskElement.from_geometry(n=1, ... material=steel, ... width=0.07, ... i_d=0.05, ... o_d=0.28) >>> disk1 = rs.DiskElement.from_geometry(n=9, ... material=steel, ... width=0.07, ... i_d=0.05, ... o_d=0.28) >>> disk2 = rs.DiskElement.from_geometry(n=1...
<filename>src/skdh/activity/core.py """ Activity level classification based on accelerometer data <NAME> Copyright (c) 2021. Pfizer Inc. All rights reserved. """ from sys import gettrace # to check if debugging from datetime import datetime, timedelta from warnings import warn from pathlib import Path from numpy impo...
'keys and their description strings.') return parser # Result of a phase. # # These values can be returned by a test phase to control what the framework # does after the phase. PhaseResult = Enum('PhaseResult', [ # Causes the framework to process the phase measurement outcomes and execute # the next phase. 'CONTI...
<gh_stars>0 # pyZIM is a ZIM reader written entirely in Python 3. # PyZIM takes its inspiration from the Internet in a Box project, # which can be seen in some of the main structures used in this project, # yet it has been developed independently and is not considered a fork # of the project. For more information on th...
# by amounra 0214 : http://www.aumhaa.com from _Framework.CompoundComponent import CompoundComponent from _Framework.ControlSurfaceComponent import ControlSurfaceComponent from _Framework.ButtonElement import ButtonElement from _Framework.ButtonMatrixElement import ButtonMatrixElement from _Framework.EncoderElem...
<reponame>awashley/subnetCalculator #!/usr/bin/env python #default defined test subnet subnet = '10.2.3.4/28' # def findSubnetrangeFourth(slashMask, fourthOctet): #function to narrow the details for subnets specifically defined in the fourth octet #the lastDetails dictionary will be return for use in the subnetCalcu...
/usr/local/include/libiec61850/mms_common.h: 135 MMS_FLOAT = 6# /usr/local/include/libiec61850/mms_common.h: 135 MMS_OCTET_STRING = 7# /usr/local/include/libiec61850/mms_common.h: 135 MMS_VISIBLE_STRING = 8# /usr/local/include/libiec61850/mms_common.h: 135 MMS_GENERALIZED_TIME = 9# /usr/local/include/libiec61850/mm...
SomeType() self.assertTrue(Number.is_number(42)) self.assertTrue(Number.is_number(999999999999999999999999999999999)) self.assertTrue(Number.is_number(3.14)) self.assertTrue(Number.is_number(123 + 456j)) self.assertTrue(Number.is_number(Number.NAN)) self.assertTrue(Number.is_number(Number(0))) self.assertTrue(N...