input
stringlengths
2.65k
237k
output
stringclasses
1 value
'66:53:72', '66:53:73', '66:53:74', '66:53:75', '66:53:76', '66:53:77', '66:53:78', '66:53:79', '66:53:80', '66:53:81', '66:53:82', '66:53:83', '66:53:84', '66:53:85', '66:53:86', '66:53:87', '66:53:88', '66:53:89', '66:53:90', '66:53:91', '66:53:92', '66:53:93', '66:53:94', ...
<gh_stars>1-10 import re import time import seaborn as sns import networkx as nx # this module requires networkx version 2.6.3 import matplotlib.pyplot as plt import matplotlib matplotlib.use('Agg') import logging from sklearn.cluster import AgglomerativeClustering from .common_functions import * from .ther...
<gh_stars>1-10 """ The lightning training loop handles everything except the actual computations of your model. To decide what will happen in your training loop, define the `training_step` function. Below are all the things lightning automates for you in the training loop. Accumulated gradients ---------------------...
database.h5. Fe_Foil written to database.h5. Ferrihydrite_20K written to database.h5. Goethite_20K written to database.h5. >>> # write selected group dataset >>> write_collection_hdf5('database.h5', collection, names=['Fe_Foil'], replace=True) Fe_Foil written to database.h5. """ # testing that the group exist...
""" Provides the SpriteLoader class, that handles loading and caching of assets. """ import pathlib import hashlib from math import ceil import os from typing import Optional from typing import Tuple from PIL import Image from PIL import ImageDraw from PIL import ImageFont from sdl2.ext import SpriteFactory from sdl2....
<filename>tpDcc/dccs/maya/dcc.py<gh_stars>1-10 #! /usr/bin/env python # -*- coding: utf-8 -*- """ Module that contains Maya DCC implementation """ from __future__ import print_function, division, absolute_import import os import sys import logging from collections import OrderedDict import numpy as np from Qt.QtWi...
from flask import request, Blueprint from flask_cors import cross_origin from server.apis.api_init import auth, backstageInfo, blockOfBeings, blockOfTimes, blockOfGarbage, mainNodeManager, vote from server.utils.message import HttpMessage from server.config import Allow_Url_List backstage = Blueprint('backstage', __na...
# Copyright 2017-present Open Networking 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 ag...
another_module.data == another_payload # check definition histories new_history = modulestore().get_definition_history_info(new_module.definition_locator) assert new_history['previous_version'] is None assert new_history['original_version'] == new_module.definition_locator.definition_id assert new_history['edited_...
= self.robot_position.copy() robot_new_heading = self.robot_heading heading_diff = heading_difference(self.robot_heading, robot_waypoint_heading) if np.abs(heading_diff) > TURN_STEP_SIZE: # Turn towards next waypoint first robot_new_heading += np.sign(heading_diff) * TURN_STEP_SIZE else: dx = robot_waypoint_posi...
"timerclockbase"), TimerClockDivisor = parser.getint(section, "timerclockdivisor")) # Set Timers / Counters section = "Timers And Counters" if parser.has_section(section): nte = None c0e = None c1e = None cpo = None if parser.has_option(section, "NumberTimersEnabled"): nte = parser.getint(section, "NumberT...
<reponame>jamespltan/sppa from sppa.Utilities import * import copy from collections import OrderedDict, Callable class Expr: def __init__(self): self.singular = False self.nlinexprs = dict() self.lin_vars = dict() self.bounds = None self.var_type = None self.expression_type = None self.const = No...
import numpy as np from .. Error import UnitsError from .utils import is_zero from .parser import eval_expr __all__ = [ 'eval_quantity', 'eval_qty', 'Quantity', 'ArrayQuantity', 'FundamentalUnits'] def eval_quantity(expr): """ Evaluate string expression of physical quantity or units. If `expr` is not a stri...
<filename>boardfarm/devices/axiros_acs.py import ast import ipaddress import os import re import time import warnings import xml.dom.minidom from datetime import datetime from xml.etree import ElementTree import pexpect import xmltodict from boardfarm.exceptions import (ACSFaultCode, CodeError, TR069FaultCode, TR069R...
a Library resource containing any formal logic used by the activity definition. kind: A description of the kind of resource the activity definition is representing. For example, a MedicationRequest, a ServiceRequest, or a CommunicationRequest. Typically, but not always, this is a Request resource. profile: A pro...
<filename>httpx_caching/_policy.py import calendar import dataclasses import logging import time import typing from copy import copy from dataclasses import dataclass from email.utils import parsedate_tz from enum import Enum from typing import Awaitable, Callable, Generator, Iterable, Optional, Tuple, Union import ht...
<reponame>C6SUMMER/allinclusive-kodi-pi ############################################################################# # # Copyright (C) 2013 Navi-X # # This file is part of Navi-X. # # Navi-X is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as publish...
as .user ==) # and functional filters that aren't currently possible using the orm (such as instance calcluated values # or annotations/tags). List splits those two filters and applies limits/offsets # only after functional filters (if any) using python. orm_filters, fn_filters = self._split_filters(filters) if no...
Pin(num='23',name='P4.6/TBOUTH/A15/OA1I3',func=Pin.BIDIR,do_erc=True), Pin(num='33',name='TA1/P1.2',func=Pin.BIDIR,do_erc=True), Pin(num='14',name='P3.3/UCB0CLK/UCA0STE',func=Pin.BIDIR,do_erc=True), Pin(num='24',name='P4.7/TBCLK',func=Pin.BIDIR,do_erc=True), Pin(num='34',name='TA2/P1.3',func=Pin.BIDIR,do_erc=True),...
<gh_stars>1-10 # This file is part of the pyMOR project (http://www.pymor.org). # Copyright 2013-2020 pyMOR developers and contributors. All rights reserved. # License: BSD 2-Clause License (http://opensource.org/licenses/BSD-2-Clause) """Reductors based on H2-norm.""" from numbers import Integral, Real import numpy...
<filename>Lib/_collections_abc.py<gh_stars>1-10 # Copyright 2007 Google, Inc. All Rights Reserved. # Licensed to PSF under a Contributor Agreement. """Abstract Base Classes (ABCs) dla collections, according to PEP 3119. Unit tests are w test_collections. """ z abc zaimportuj ABCMeta, abstractmethod zaimportuj sys _...
<reponame>superarts/superarts.github.io #!/usr/bin/python2.5 # modified from sexp.py, which can be found at http://code.google.com/p/pynarcissus/ import sys import jsparser ################################################################################ # class Scope ##################################################...
<filename>journalism/columns.py #!/usr/bin/env python from collections import Mapping, Sequence, defaultdict import datetime from functools import wraps try: from cdecimal import Decimal, InvalidOperation except ImportError: #pragma: no cover from decimal import Decimal, InvalidOperation try: from collections imp...
import numpy as np from layer import Layer import pickle as cpickle import os, sys import pickle as cpickle import csv, json import datetime, time import torch from tensorboardX import SummaryWriter import torchvision from utils import project_state, save_video, attention, gaussian_attention, multivariate_gaussian_att...
""" return pulumi.get(self, "server_root_ca_certificate") @property @pulumi.getter def site(self) -> Optional[str]: """ The Active Directory site the service will limit Domain Controller discovery to """ return pulumi.get(self, "site") @property @pulumi.getter(name="smbServerName") def smb_server_name(self...
"term": 2, "course_project": False }, { "id": 4177, "name": "Комплексные системы защиты информации", "term": 8, "course_project": False }, { "id": 474, "name": "Комплексный курсовой проект", "term": 8, "course_project": False }, { "id": 474, "name": "Комплексный курсовой проект", "term": 10, "course_...
#!/usr/bin/env python3 # -*- coding: utf-8 -*- # # SPDX-License-Identifier: GPL-3.0 # # GNU Radio Python Flow Graph # Title: Bpsk Mod # Author: <NAME> # Copyright: MIT # GNU Radio version: 3.8.3.1 from distutils.version import StrictVersion if __name__ == '__main__': import ctypes import sys if sys.platform.start...
#1988: Review - Ionosphere layers - always show layers # Feature #1960: ionosphere_layers # Return the anomalous_timeseries as an array to sample and fp_id_matched anomalous_timeseries, fp_id_matched, # @added 20170401 - Task #1988: Review - Ionosphere layers - added fp_details_list # Feature #1960: ionosphere_lay...
"""***************************************************************************** * Copyright (C) 2019 Microchip Technology Inc. and its subsidiaries. * * Subject to your compliance with these terms, you may use Microchip software * and any derivatives exclusively with Microchip products. It is your * responsibility to ...
# # Taranos Cloud Sonification Framework Tutorial #1: Switched-On Taranos # Copyright (C) 2018 <NAME>, Netrogen Blue LLC (<EMAIL>) # # 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...
# Copyright (c) 2009, <NAME>'. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. """Windows platform implementation.""" import contextlib import errno import functools import os import signal import sys import time from collections import namedt...
# -------------------------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. # --------------------------------------------------------------------...
"""Module with base abstraction of common objects.""" import pickle import sys from abc import ABC, abstractmethod from functools import reduce from itertools import islice from typing import List, Iterable, Iterator, Tuple, Union, Type, Any import dill import numpy as np import pandas as pd from pandas.core.tools.da...
jobsTable = "jobs" else: jobsTable = form['username'] + "_userview_jobs" connection.execute( text( "UPDATE " + jobsTable + " SET status=:status WHERE jobid=:jobid"), status=- 1, jobid=id) traceback.print_exc() if connection: connection.close() return -1 def interpolateDataArray(dataArray, minResolution,...
# print(ws) # tmp = ws.compute() # print('min here', tmp.min(), tmp.max()) ws = da.apply_along_axis(adapt_weights, 0, ws, how_many_best_views=how_many_best_views, cumulative_weight_best_views=cumulative_weight_best_views, shape=(len(ws),)) # tmp = ws.compute() # print('min here', tmp.min(), tmp.max()) # d...
auto -> decltype(auto))") elif not force_not_byvalue and any(ret in self.ret["rtype"] for ret in ["*", "&"]): self.func_ret_step_type_react( ref, "prefer return by value if suitable") def func_ret_step_nonconst(self, ref): if "const" in self.ret["rtype"]: self.func_ret_step_type_react( ref, "move semantics coul...
<filename>src/pyinterp/rtree.py # Copyright (c) 2020 CNES # # All rights reserved. Use of this source code is governed by a # BSD-style license that can be found in the LICENSE file. """ RTree spatial index ------------------- """ from typing import Optional, Tuple import numpy as np from . import core from . import ge...
import re import copy from collections import namedtuple import warnings import astropy.time import astropy.coordinates from astropy._erfa import ErfaWarning import galsim import numpy as np import lsst.geom as LsstGeom from lsst.obs.lsstSim import LsstSimMapper from lsst.sims.utils import arcsecFromRadians from . impo...
# Store legend identifiers for the run legend_labels = [] legend_lines = [] legend_labels.append("Individual Runs") legend_lines.append(Line2D([0], [0], color=colour, linestyle="--", alpha=alpha)) # Set up the legend variables for the mean over all runs label = name legend_labels.append(label) legend_lines.ap...
#!/usr/bin/env python # -*- coding: utf-8 -*- """Módulo 'writers' de pydatajson Contiene los métodos para escribir - diccionarios con metadatos de catálogos a formato JSON, así como - listas de diccionarios ("tablas") en formato CSV o XLSX """ import io import json import logging import os import openpyxl as pyxl im...
active_nc_host.mgmt_dns2 = row[13] # 14 - "[separate data network (True|False)]" - separate_data_network if row[14].lower() == 'true': active_nc_host.separate_data_network = True else: active_nc_host.separate_data_network = False # 15 - "[use data DHCP (True|False)]" - allow_data_dhcp if row[15].lower() == 'true...
bordery[sl] = hy # "left" sl = np.s_[2 * nptx + npty:-1] borderx[sl] = lx bordery[sl] = ys[::-1] # close polygon: borderx[-1] = borderx[0] bordery[-1] = bordery[0] ra, dec = self.det_to_world(borderx, bordery) # TODO: for strange reasons, occasionally ra[0] != ra[-1] and/or # dec[0] != dec[-1] (even though ...
1, 0, 1, 0, 1, 1, 1, 1, 1, 0, 0, 1, 0, 1, 1, 1, 0, 1, 1, 0, 0, 0, 1, 1, 0, 1, 1, 0, 1, 0, 0, 0, 1, 1, 0, 1, 1, 0, 0, 1, 1, 1, 0, 1, 0], [1, 0, 0, 1, 0, 1, 0, 1, 0, 0, 1, 0, 1, 0, 0, 0, 1, 0, 1, 0, 0, 1, 1, 1, 0, 0, 0, 0, 0, 1, 0, 0, 1, 1, 0, 1, 0, 1, 1, 0, 0, 0, 1, 1, 0, 1, 1, 1, 1, 1, 1, 0, 1, 0, 1, 0, 1, 0, 0, 1, 0, ...
<reponame>pymango/pymango # The _mango_open_core module is a shared-object library # which exports python functions and classes. import mango.mpi import sys if sys.platform.startswith('linux'): import DLFCN as dl _flags = sys.getdlopenflags() sys.setdlopenflags(dl.RTLD_NOW|dl.RTLD_GLOBAL) from . import _mango_open_...
# -*- coding: utf-8 -*- from __future__ import absolute_import from __future__ import division from __future__ import print_function from __future__ import unicode_literals import logging from collections import defaultdict from dateutil import rrule from django.conf import settings from django.db import connection ...
cwidth = renwidth if self.style.yfill: cheight = renheight width = cwidth * cols + padding * (cols - 1) height = cheight * rows + padding * (rows - 1) rv = renpy.display.render.Render(width, height) offsets = [ ] for y in range(0, rows): for x in range(0, cols): child = children[ x + y * cols ] surf = r...
#!/usr/bin/python import sys import re residueNameMap_3to1 = {'ALA':'A','ARG':'R','ASN':'N','ASP':'D','ASX':'B',\ 'CYS':'C','SCY':'C','GLU':'E','GLN':'Q','GLX':'Z','GLY':'G',\ 'HIS':'H','ILE':'I','LEU':'L','LYS':'K',\ 'MET':'M','PHE':'F','PRO':'P','SER':'S',\ 'THR':'T','TRP':'W','TYR':'Y','VAL':'V',\ 'UNK':'X'} #...
space point was\n" + str(PS_point)) del new_PS_point[R] return new_PS_point, vars @classmethod def map_to_higher_multiplicity( cls, PS_point, singular_structure, momenta_dict, kinematic_variables, compute_jacobian=False ): # Consistency checks assert isinstance(momenta_dict, sub.bidict) if not cls.is_valid_s...
Type="Constant_Zone", File="N1Y.bin", Format=fmt)) mat.append(etree.Element(_tag='Coeff', Index="12", Type="Constant_Zone", File="N1Z.bin", Format=fmt)) mat.append(etree.Element(_tag='Coeff', Index="13", Type="Constant_Zone", File="N2X.bin", Format=fmt)) mat.append(etree.Element(_tag='Coeff', Index="14", Type="Const...
_utils.json_to_proto( _utils.body_to_json(response), Message.Response) artifact = { artifact.key: artifact for artifact in response_msg.artifacts}.get(key) if artifact is None: raise KeyError("no artifact found with key {}".format(key)) if artifact.path_only: return artifact.path, artifact.path_only else: # do...
<filename>pyOCD/target/cortex_m.py """ mbed CMSIS-DAP debugger Copyright (c) 2006-2013 ARM 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 ...
"""Put all the speakers in the network in the same group, a.k.a Party Mode. This blog shows the initial research responsible for this: http://blog.travelmarx.com/2010/06/exploring-sonos-via-upnp.html The trick seems to be (only tested on a two-speaker setup) to tell each speaker which to join. There's probably a...
is not None: raise result.te raise TApplicationException(TApplicationException.MISSING_RESULT, "get failed: unknown result"); def get_slice(self, key, column_parent, predicate, consistency_level): """ Get the group of columns contained by column_parent (either a ColumnFamily name or a ColumnFamily/SuperColumn nam...
return new_dict def set_list(group, name, list_): """ Saves list as a h5py group inside 'group' Args: group (h5py.Group): name (str): Name of list list_ (list): Returns: (None): """ lg = group.require_group(name) lg.attrs['description'] = 'list' for i, v in enumerate(list_): if isinstance(v, (np.ndarray...
from netapp.netapp_object import NetAppObject class SnapmirrorInfo(NetAppObject): """ Information about the SnapMirror Relationship. When returned as part of the output, all elements of this typedef are reported, unless limited by a set of desired attributes specified by the caller. <p> When used as input to sp...
self.id() pi_names = ['%s_phy_intf_%s' % (test_id, i) for i in range(1, 5)] pi_objs = self._create_pi_objects(pr_obj, pi_names) pi1_fq_name, pi2_fq_name, pi3_fq_name, pi4_fq_name = [ pi_objs.get(pi_name).get_fq_name() for pi_name in pi_names] pi1_obj, pi2_obj, pi3_obj, pi4_obj = [ pi_objs.get(pi_name) for pi_nam...
# -*- coding: utf-8 -*- #!/usr/bin/env python import gevent from gevent import monkey, queue from gevent.pool import Pool from greenlet import GreenletExit import os import imp import json import time import logging import traceback import datetime from .utils import merge_cookie, load_module from .mq import build_qu...
""" This module provides the Scan Op Scanning is a general form of recurrence, which can be used for looping. The idea is that you *scan* a function along some input sequence, producing an output at each time-step that can be seen (but not modified) by the function at the next time-step. (Technically, the function can...
== 0: return "0" else: return oct(n)[1:] # << VBFunctions >> (31 of 57) def RGB(r, g, b): """Return a Long whole number representing an RGB color value The value for any argument to RGB that exceeds 255 is assumed to be 255. If any argument is less than zero then this results in a ValueError. """ rm = min(255...
Ruston Beauty School"), ("<NAME>'s Beauty College","<NAME>'s Beauty College"), ("Patrick Henry Community College","Patrick Henry Community College"), ("Paul D Camp Community College","Paul D Camp Community College"), ("Paul Mitchell The School-Charleston","<NAME>chell The School-Charleston"), ("<NAME> The School-C...
optional): If True, crop images. norm_im (bool, optional): If True, normalize images. chunks (int, optional): Size of chunks when using chunked mp4. mono (bool, optional): If True, use grayscale image. predict_flag (bool, optional): If True, use imageio for reading videos, rather than OpenCV """ DataGenerator.__i...
# -*- coding: utf-8 -*- from __future__ import unicode_literals """ Python interface to BioCyc REST API with request caching Implementation of the BioCyc REST API through the same interface as in Pathway Tools. Functions are implemented with remote request with cache <NAME> May 2014 """ import os import errno impo...
import numpy as np import torch from math import sqrt from mvt.cores.ops import nms from mvt.cores.bbox import bbox_mapping_back def bbox_overlaps_np(bboxes1, bboxes2, mode="iou", eps=1e-6, keep_order=False): """Calculate the ious between each bbox of bboxes1 and bboxes2. Args: bboxes1(ndarray): shape (n, 4) bbo...
<reponame>afermanian/signatory # Copyright 2019 <NAME>. 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...
#!/usr/bin/env python # # generate a tester program for the API # import sys import os import string try: import libxml2 except: print("libxml2 python bindings not available, skipping testapi.c generation") sys.exit(0) if len(sys.argv) > 1: srcPref = sys.argv[1] + '/' else: srcPref = '' # # Modules we want to sk...
# coding: utf8 # intente algo como @auth.requires_login() @auth.requires_membership('Student') def index(): assignations = db((db.user_project.assigned_user == auth.user.id)& (db.user_project.assigned_user == db.auth_user.id)& (db.user_project.project == db.project.id)& (db.project.area_level == db.area_level.id)& ...
<filename>qiskit-sdk-py-master/qiskit/mapper/_compiling.py # -*- coding: utf-8 -*- # pylint: disable=invalid-name # Copyright 2017 IBM RESEARCH. 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...
* 60, 'useramount': 100 * COIN, 'reward_to': choice(['user', 'ben']), 'rewardamount': COIN * 60 // 365 + 1, 'fee_total': 'auto', 'fee_user_percent': 'auto', 'refill_moneybox': 'random', 'keys_count_total': randint(1,15), 'keys_count_required': 'random', 'keys_count_used': 'auto', 'more_useramount1': 300 * COI...
<gh_stars>0 # -*- coding: utf-8 -*- import unittest from includes import * from common import getConnectionByEnv, waitForIndex, sortedResults, toSortedFlatList, check_server_version from time import sleep from RLTest import Env string1 = 'For the exchange of decimal floating-point numbers, \ interchange formats of a...
properties ( (properties = modes_of(God)) & (a_infers_b_from_c(Intellect, properties, definition(God))) & infinite(properties) ). % All modes follow from the divine nature. %number(DivineAttributes, Infinity). all m ( is_mode(m) -> follows_from(m, DivineNature) ). """, '1p19': """ % 1p19: God is eternal, o...
# -*- coding: utf-8 -*- # (C) Copyright IBM Corp. 2020. # # 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...
PrintStatement(StringLiteral("Casting Spell temp2")), OutputStatement( output=4, resource=StringLiteral("Playaudio temp2.mp3"), ), SetAttrStatement( obj="__INPUT__", name="temp2", rvalue=IntegerLiteral(1), ), SetAttrStatement( obj="__INPUT__", name="previousCast", rvalue=StringLiteral("Previously cast temp...
import dataclasses from abc import ABC, abstractmethod from typing import Optional, Any, Dict, Union import torch from falkon.sparse import SparseTensor from falkon.mmv_ops.fmm import fmm from falkon.mmv_ops.fmmv import fdmmv, fmmv from falkon.utils.helpers import check_same_dtype, check_sparse, check_same_device fro...
<gh_stars>0 # Copyright 2017 AT&T Intellectual Property. All other 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 r...
Cont = False while Cont == False: index = 0 if DeckorCourse == "Deck": for each in Deck_of_questions.Decknames: if each.upper() == name.upper(): index+=1 else: for each in Course.Coursenames: if each.upper() == name.upper(): index+=1 if index >0: name = input("There is already a "+DeckorCourse+" named that...
at arbitrarily spaced time intervals given by "time" Python conversion of dfourt.pro http://www.arm.ac.uk/~csj/idl/CLEAN/ :param time: numpy array or list, input time(independent) vector :param data: numpy array or list, input dependent vector :param df: float, frequency increment for the FT (default: 1/T) :...
# ##### BEGIN GPL LICENSE BLOCK ##### # # 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 2 # of the License, or (at your option) any later version. # # This program is distributed ...
# coding=utf-8 import logging import os import random import re import time import urllib from datetime import datetime from flask import (abort, flash, g, jsonify, redirect, render_template, request, send_from_directory, session, url_for) from flask_babel import gettext from flask_login import current_user, login_r...
#!/usr/bin/env python3 # # Copyright (c) <NAME> and the University of Texas MD Anderson Cancer Center # Distributed under the terms of the 3-clause BSD License. import copy import lzma import math import os import pickle import struct import time from collections import namedtuple from collections.abc import Sequence f...
or ``False``, then this is equivalent to calling :func:`set_savefig` with that value. :param cell_offset: is a vertical offset for this set of spikes in the spike raster. By default this is ``0``. However, if the spike raster contains stacked cells of different types (i.e. multiple spike sets each with a diffe...
return psi_hat, u_hat, v_hat, w_hat, b_hat, p_hat def __forcing_poly(self, P, Q): """ If background fields are non-uniform, finds a forcing polynomial to transform unforced ODE with inhomogeneous boundary conditions to a forced ODE with homogeneous boundary conditions. Called by __fourier_solve""" F = np.zeros_l...
<filename>sbysrc/sby_core.py # # SymbiYosys (sby) -- Front-end for Yosys-based formal verification flows # # Copyright (C) 2016 <NAME> <<EMAIL>> # # Permission to use, copy, modify, and/or distribute this software for any # purpose with or without fee is hereby granted, provided that the above # copyright notice and th...
string } tags: - table_favorite_color - name: fav_number description: "The user's favorite number" tests: - accepted_values: values: [3.14159265] quote: false tags: # tags can be a list of strings - favorite_number_is_pi - name: table_summary description: "The summary table" columns: - name: favorite_c...
"tree": None, "filename": None, "line": None, "comment": "Pull-Request has been closed by pingou", "parent": None, "date_created": ANY, "user": { "name": "pingou", "fullname": "<NAME>", "url_path": "user/pingou", "full_url": "http://localhost.localdomain/user/pingou", }, "edited_on": None, "editor": None, ...
method is called asynchronously, returns the request thread. """ all_params = [] all_params.append('callback') params = locals() for key, val in iteritems(params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method get_conversations_messaging_facebook_...
from .editor_util import get_def_lines, get_defrange, excise_def_lines, overwrite_import from .import_util import get_import_stmt_str __all__ = [ "nix_surplus_imports", "shorten_imports", "receive_imports", "copy_src_defs_to_dst", "remove_copied_defs", "transfer_mvdefs", ] def nix_surplus_imports(self, record_...
# ! /usr/bin/python # -*- coding: utf-8 -*- # Copyright (c) 2019, NVIDIA 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/...
""" Source: https://modis-land.gsfc.nasa.gov/pdf/sn_bound_10deg.txt """ from typing import Tuple from rio_tiler.errors import RioTilerError class InvalidModlandGridID(RioTilerError): """Invalid MODLAND grid id.""" # Only non-fill tiles (460) # format: # horizontal_grid, vertical_grid, bbox(xmin, ymin, xmax, ym...
c, d) E_phi[i] += alpha[m, n]*GetM_mplus1n_o_plus_phi(eta, ksi, phi, m, n, c, d) M, N = beta.shape for m in range(M): for n in range(m, N): E_eta[i] += beta[m, n]*GetM_mn_o_z_eta(eta, ksi, phi, m, n, c, d) E_ksi[i] += beta[m, n]*GetM_mn_o_z_ksi(eta, ksi, phi, m, n, c, d) E_phi[i] += beta[m, n]*GetM_mn_o_z_phi(e...
np.uint64, np.int8, np.int16, np.int32, np.int64 ], # Only the harnesses with "singularity" will have divide by 0 enabled=("singularity" in harness.name)) ] @classmethod def dot_general(cls, harness: primitive_harness.Harness): return [ missing_tf_kernel(dtypes=[np.bool_],), # TODO(b/189287598) Jax2TfLimita...
set_CloudPercentage(self, CloudPercentage): self.CloudPercentage = CloudPercentage def validate_File_IDType(self, value): # Validate type File_IDType, a restriction on xs:string. if value is not None and Validate_simpletypes_: if not self.gds_validate_simple_patterns( self.validate_File_IDType_patterns_, value): ...
<filename>data_collection/scraper.py ''' Daily data collection... scraped game result data from baseball-reference.com and then upcoming games for next period to create dataframe to feed into model. **NOTE** While the model is in production right now, there is no 2020 baseball season at the moment due to COVID19. Thus...
def GetClickablePointCore(self, *args): #cannot find CLR method """ GetClickablePointCore(self: UIElementAutomationPeer) -> Point Gets a System.Windows.Point that represents the clickable space that is on the System.Windows.UIElement that is associated with this System.Windows.Automation.Peers.UIElem...
in png) or ('g102_'+self.MASTversion+'_2dstack.png' in png)): self.GUIimage = png if (self.inGUIimage == 'G141stack') & \ (('G141_stack.png' in png) or ('g141_'+self.MASTversion+'_2dstack.png' in png)): self.GUIimage = png if self.GUIimage == None: # if requested image not found for object use first png figure ins...
requestupdated_at = str(d["ticket"]["updated_at"]).replace("T", " ").replace("Z", "") requestassignee_id = str(d["ticket"]["assignee_id"]) requestseverity = str(d["ticket"]["tags"]).replace("[']", "") # request_res_field = str(d["ticket"]["custom_fields"]['id': 24598606]) # print(request_res_field) # except: # re...
<reponame>C6SUMMER/allinclusive-kodi-pi<gh_stars>0 # # Copyright (C) 2013 <NAME> # http://tommy.winther.nu # # 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 2, or (at your option)...
= "" classificacao = request.forms.get('classify') atendedor = request.forms.get('atendedor') db_user = Users(where = "login='{user}'".format(user=atendedor)).get() if db_user: from gap_opiniao import GAPOpiniao db_user = db_user[0] import erp_config as ec res = GAPOpiniao().addOpiniao(user=db_user['id'],nome=...
method", "title_templated": False, "title": "Methods should have docstrings.", "solution": "Add a docstring to your method.", "explanation": """ A docstring is a special comment at the top of your method that briefly explains the purpose of the method. It should have 3 sets of quotes to start and finish the comment...
<filename>radio_astro/python/systemp_calibration.py #!/usr/bin/env python # -*- coding: utf-8 -*- # # Copyright 2020 DSPIRA. # # This 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, or (at yo...
underlying socket. :param str url: The AMQP URL to connect to """ # Protect against accidental assignment of an invalid attribute __slots__ = ('_all_url_query_values',) # The name of the private function for parsing and setting a given URL query # arg is constructed by catenating the query arg's name to this...