input
stringlengths
2.65k
237k
output
stringclasses
1 value
66.765953, 66.794791], [0.2261720687866211, 94.35, 66.739562, 133.534386], [0.21316884002685546, 95.22, 69.30083, 202.835249], [0.23311994018554688, 94.35, 67.680442, 270.51573], [0.21979405059814452, 94.47, 67.75681, 338.272574], [0.17282760467529296, 95.75, 68.048425, 406.321034], [0.16720095138549804, 96.11, 67.9...
cons170, ) rule6620 = ReplacementRule(pattern6620, replacement6620) pattern6621 = Pattern( Integral( x_ ** WC("m", S(1)) * acoth( f_ ** (x_ * WC("d", S(1)) + WC("c", S(0))) * WC("b", S(1)) + WC("a", S(0)) ), x_, ), cons2, cons3, cons8, cons29, cons127, cons20, cons170, ) rule6621 = ReplacementRule(...
# Copyright 2015 <NAME> # # This file is part of Platypus, a Python module for designing and using # evolutionary algorithms (EAs) and multiobjective evolutionary algorithms # (MOEAs). # # Platypus is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as publishe...
<reponame>xzluo97/MvMM-RegNet # -*- coding: utf-8 -*- """ Network architectures for medical image registration. @author: <NAME> """ from __future__ import print_function, division, absolute_import, unicode_literals from core.layers_2d import * from collections import OrderedDict import logging logging.ba...
단축코드) self.ActiveX.SetFieldData(self.INBLOCK, "gubun", 0, 작업구분) self.ActiveX.SetFieldData(self.INBLOCK, "time", 0, 시간) self.ActiveX.SetFieldData(self.INBLOCK, "cnt", 0, 건수) self.ActiveX.Request(0) else: self.ActiveX.SetFieldData(self.INBLOCK, "cts_time", 0, 시간) err_code = self.ActiveX.Request(True) # 연속조회인경우만 T...
""" Common classes for service and gateway transformation, which makes the construction of the expected data map easier. """ from typing import Dict, List, Iterable, Sequence, Literal, Optional, Any, cast from ..log import debug from ..validation import validate_proxy_input class HeaderQueryMatcher: """Matches a h...
(u'More Limits', u'rkeU8_4nzKo', u'more-limits'), (u'Epsilon Delta Limit Definition 1', u'-ejyeII0i5c', u'epsilon-delta-limit-definition-1'), (u'Epsilon Delta Limit Definition 2', u'Fdu5-aNJTzU', u'epsilon-delta-limit-definition-2'), (u'Calculus Derivatives 1 (new HD version)', u'ANyVpMS3HL4', u'calculus--deri...
# 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 # # Unless required by applicable ...
<gh_stars>1-10 from colors import Colors import copy # atributos dos tokens token = 0 linha = 1 coluna = 2 tipo = 3 class Semantico: token = list() tokens = list() linhaToken = 0 pilha = list() escopo = list() pilha_execucao = list() semente = 0 tabela = list() msg = '' sinaliza_tipo = False sinaliza_ins...
import os import sys import warnings import importlib import inspect import os.path as osp import numpy as np import tensorflow as tf from tensorflow.keras.utils import Sequence from tensorflow.python.keras import callbacks as callbacks_module from tensorflow.keras.callbacks import EarlyStopping, ModelCheckpoint from ...
<reponame>msherman64/portal<gh_stars>0 from django.shortcuts import render from django.contrib.auth.decorators import login_required from chameleon.decorators import terms_required from django.contrib import messages from django.http import ( Http404, HttpResponseForbidden, HttpResponse, HttpResponseRedirect, Http...
-1), (assign, "$g_presentation_obj_escape_menu_14", -1), (assign, "$g_presentation_obj_escape_menu_15", -1), (assign, "$g_presentation_obj_escape_menu_16", -1), (assign, "$g_presentation_obj_escape_menu_17", -1), (create_mesh_overlay, reg0, "mesh_mp_ingame_menu"), (position_set_x, pos1, 250), (position_set_y, p...
for ghcnd plot') pass # yearly annotation precip_yr = ser.sum()/(ser.index.date[-1]-ser.index.date[0]).days * 365.25 ax.text(0.22,0.98, f'{precip_yr:.2f} mm/year from {s} ghcnd sites',transform=ax.transAxes, fontsize=7, va='top') ax.set_title(f'{sitename}: cumulative rainfall from nearby GHCND sites') ax.set_xl...
import numpy as np import torch.nn as nn import torch from torch.nn import functional as F from scipy.spatial.transform import Rotation as R from scipy.ndimage import gaussian_filter import scipy.io as sio def OnehotEncoding(arr, val, c): # val = np.repeat(np.array(val).reshape(2, 2).T, 3).reshape(-1, 1) ind = (arr...
# coding: utf-8 """ Emby Server API Explore the Emby Server API # noqa: E501 OpenAPI spec version: 4.1.1.0 Generated by: https://github.com/swagger-api/swagger-codegen.git """ from __future__ import absolute_import import re # noqa: F401 # python 2 and python 3 compatibility library import six from embyapi...
""" Varius microopcodes for different ootypesystem based backends These microopcodes are used to translate from the ootype operations to the operations of a particular backend. For an example, see cli/opcodes.py which maps from ootype opcodes to sets of metavm instructions. See the MicroInstruction class for discuss...
<reponame>RichardLitt/Vesper """Module containing `Schedule` class.""" from collections import namedtuple from threading import Event, Thread import datetime import itertools import re import jsonschema import pytz from vesper.util.notifier import Notifier import vesper.ephem.ephem_utils as ephem_utils import vespe...
<reponame>redhog/ferenda # -*- coding: utf-8 -*- # This fixture does a bunch of real HTTP request against a selected # server (determined by the environment variable FERENDA_TESTURL, # which is http://localhost:8000/ by default) # # When running against a local instance, it's important that this has # been initialized...
float(cv2.getTickCount()) if scale_index > nos: assert scale_index <= nos # TODO: take out rd_start rd_start = 0 rd_end = len(r_harlocs) - 1 j = 1 """ Inspired from https://stackoverflow.com/questions/17559140/matlab-twice-as-fast-as-numpy BUT doesn't help in this case: votes_space = np.asfortranarray(np...
#!/usr/bin/env python """ This module contains the core Composable subclasses that we made to handle SchemaTables and Fields. SchemaTables will always be unquoted and thus directly extend Composable while Fields will always be quoted and thus """ from typing import Union, List, Tuple, Dict, Any from psycopg2 import s...
'Use multi-part upload instead.' % bos.MAX_APPEND_OBJECT_LENGTH) params = {'append': ''} if offset is not None: params['offset'] = offset return self._send_request( http_methods.POST, bucket_name, key, body=data, headers=headers, params=params, config=config) @required(bucket_name=(str, str), key=str, ...
(8,"(/d 1d 2)",None)]: T(f"{n}-gon {l}{'' if s is None else ' slanted '+str(s)}", f""" ({'' if s is None else slant(s)} (loop i {n} (move {l} (/a 1a {n})))) """, needToTrain=True) for n,l,s in [(3,"(*d 1l 2)",None), (4,"(*d 1d 4)",None), (5,"(*d 1d 2)",None), (6,"1l",None), (7,"(*d 1d 3)",None), (8,"1l",3)...
"""Test gates defined in `qibo/core/gates.py`.""" import pytest import numpy as np from qibo import gates, K from qibo.config import raise_error from qibo.tests.utils import random_state, random_density_matrix def apply_gates(gatelist, nqubits=None, initial_state=None): if initial_state is None: state = K.qnp.zeros...
<filename>deepof/data.py # @author lucasmiranda42 # encoding: utf-8 # module deepof """ Data structures for preprocessing and wrangling of DLC output data. Project: initial structure for specifying the characteristics of the project. Coordinates: result of running the project. In charge of calling all relevant compu...
<reponame>ZhuangLab/Chromatin_Analysis_2020_cell import sys import glob import os import time import copy import numpy as np import pickle as pickle import multiprocessing as mp # saving import h5py import ast # plotting import matplotlib import matplotlib.pyplot as plt # import other sub-packages # import package par...
"""Script that visualizes dependencies of Nix packages""" import argparse import configparser import itertools import os import random import shlex import subprocess import sys import tempfile import logging import networkx as nx import pygraphviz as pgv import matplotlib matplotlib.use('Agg') import matplotlib.pyplot...
<filename>mevis/_internal/conversion.py from collections.abc import Callable as _Callable import networkx as _nx from opencog.type_constructors import AtomSpace as _AtomSpace from .args import check_arg as _check_arg def convert(data, graph_annotated=True, graph_directed=True, node_label=None, node_color=None, nod...
<reponame>jrhartog/aqms-ir """ Classes that describe tables """ import datetime from sqlalchemy.ext.declarative import declarative_base from sqlalchemy import text from sqlalchemy import Column, DateTime, Integer, Numeric, String, ForeignKey from sqlalchemy import Sequence # create the base class of all ORM classes ...
<reponame>sharksmhi/ctd_processing<filename>ctd_processing/former_cnv.py import os from pathlib import Path from time import gmtime, strftime from ctd_processing import exceptions from ctd_processing import utils class CNVparameter: def __init__(self, use_cnv_info_format=False, cnv_info_object=None, **data): self.i...
<gh_stars>1-10 from sys import stdout from evaluate_expression import * from operations_and_expressions import * from write import * regs = ["r8", "r9", "r10", "r11", "r12", "r13", "r14", "r15"] relational_ops = [ ">", ">=", "<", "<=", "!=", "=="] allocationTable = {} globalTable = {} stack = [] BYTE_SIZE = 8 IF_NUMB...
<reponame>swansonk14/entry-cli ############################### import argparse import os import sys import csv from functools import partial import openbabel as ob import pybel import numpy as np from rdkit import Chem from rdkit.Chem import AllChem from tqdm import trange from multiprocessing.context import TimeoutErr...
else: self.assertEqual(job["estimatedDiskUsage"], 4) goldenFiles = goldenFilesC currentRun = 0 currentLumi = 0 currentEvent = 0 for fileObj in jobFiles: assert fileObj["lfn"] in goldenFiles, \ "Error: Unknown file in merge jobs." goldenFiles.remove(fileObj["lfn"]) fileRun = list(fileObj["runs"])[0].run fil...
<reponame>jensguballa/andyBee<gh_stars>1-10 from lxml import etree from app import geocache_db from geocache_model_sql import Cache, Cacher, CacheType, CacheContainer, CacheCountry, CacheState, CacheToAttribute, Waypoint, WaypointSym, WaypointType, Log, LogType, Attribute, UserNote from geocache import Geocache from db...
import pandas as pd import sys, os from collections import OrderedDict from viola.core.bedpe import Bedpe from viola.core.vcf import Vcf from typing import ( List, Optional, ) class MultiBedpe(Bedpe): """ A database-like object that contains information of multiple BEDPE files. In this class, main keys in most ta...
range(self.num_base): pos = self.atom_positions[a1] neighbors, distances = tree.query(pos, num_jobs, self.DIST_DECIMALS, include_zero=True, compact=False) neighbor_indices = indices[neighbors] # Store neighbors of certain distance for each atom pair in the unit cell for dist, idx in zip(distances, neighbor_indice...
val == Math.floor(val) ? 0 : Math.round((val-Math.floor(val))*Math.pow(10,r[1].length)); return val < 0 ? "-" + write_num(type, fmt, -val) : commaify(String(Math.floor(val))).replace(/^\\d,\\d{3}$/,"0$&").replace(/^\\d*$/,function($$) { return "00," + ($$.length < 3 ? pad(0,3-$$.length) : "") + $$; }) + "." + pad(rr,...
<reponame>scivision/pysat """ tests the pysat utils area """ import os import tempfile import warnings from nose.tools import assert_raises, raises import numpy as np import pandas as pds import pysat import sys if sys.version_info[0] >= 3: from importlib import reload as re_load else: re_load = reload # -------...
request.POST.get('r8c5').replace('\t', ' ').replace('\n', ' ').replace('\r', ' ') r8c6 = request.POST.get('r8c6').replace('\t', ' ').replace('\n', ' ').replace('\r', ' ') r8c7 = request.POST.get('r8c7').replace('\t', ' ').replace('\n', ' ').replace('\r', ' ') r8c8 = request.POST.get('r8c8').replace('\t', ' ').replac...
not self.canvas._is_idle_drawing # standard and not getattr(self.canvas, '_draw_pending', None) # pyqt5 ): self._subplots_kw.update(width=width, height=height) super().set_size_inches(width, height, forward=forward) def set_alignx(self, value): """ Set the *x* axis label alignment mode. """ self.stale = True ...
import work_wth_data as wd import display_data as dd import os from os import path from datetime import date #------------------------------------------------------------------------------------ def get_yes_or_no(message): """Input a message, returns 'Y' or 'N'""" valid_input = False while not valid_input: answ...
<filename>Chapter-07/collections/ansible_collections/community/aws/plugins/modules/aws_kms_info.py #!/usr/bin/python # # GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) from __future__ import (absolute_import, division, print_function) __metaclass__ = type DOCUMENTATION = '...
from ast import cmpop import os import numpy as np import matplotlib.pyplot as plt import imageio from matplotlib.colors import Normalize import ipywidgets as ipw from mpl_toolkits.axes_grid1 import make_axes_locatable from scipy.interpolate import splev from .. import splineutils out = ipw.Output() def show_geomet...
<gh_stars>1-10 # encoding: utf-8 """ pypcsim implementation of the PyNN API. <NAME> <EMAIL> <NAME> <EMAIL> <NAME> <EMAIL> December 2006- :copyright: Copyright 2006-2013 by the PyNN team, see AUTHORS. :license: CeCILL, see LICENSE for details. $Id: __init__.py 1258 2013-01-31 15:01:25Z apdavison $ """ __versio...
<gh_stars>0 import os import json import requests import functools from copy import copy from .functions.classes import Mode from .functions import exceptions __all__ = ["BaseJai"] def raise_status_error(code): """ Decorator to process responses with unexpected response codes. Args ---- code: int Expected C...
<reponame>Speedy905/Cave-Dweller #Project <NAME> #------------------------------------------------------ #MAKE SURE YOU CHANGE THE VERSION EVERYTIME YOU EDIT IT #Version: 1.0 (FINAL) #------------------------------------------------------ #Adam, Andres, <NAME>, Peter, Seymour #-----------------------------------------...
second slice of the polygon Description ----------- 1) A horizontal/vertical line is drawn from the point. 2) A new vertex is inserted into a polygon at the first intersection of an edge of the polygon with the horizontal/vertical line. 3) The polygon is sliced horizontally/vertically from the inserted vert...
<filename>check-oceanstor.py import paramiko import sys, argparse import re from argparse import RawTextHelpFormatter if __name__ == "__main__": # Exit code for nagios 0 -OK, 1 - Warning, 2 - Critical exit_code = 0 output_info = "" # OceanStor failed Health and Running status failed_health_status = ["Offline", "...
<reponame>ctoth/owyl<filename>examples/boids.py #! /usr/bin/env python # -*- coding: utf-8 -*- """boids -- Boids implementation using Owyl behavior trees. This module provides example code using the L{owyl} library to implement the Boids flocking algorithm. Requirements ============ Note: this demo requires Pyglet,...
# Copyright 2018 Amazon.com, Inc. or its affiliates. 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. # A copy of the License is located at # # http://www.apache.org/licenses/LICENSE-2.0 # # or in the "license" fi...
"""Kea subnet-id sanity-check""" # pylint: disable=invalid-name,line-too-long import pytest import misc import srv_control import srv_msg @pytest.mark.v6 @pytest.mark.kea_only @pytest.mark.subnet_id_sanity_check @pytest.mark.abc def test_v6_sanity_check_subnet_id_fix_able(): misc.test_setup() srv_control.config_...
,'p2':320011}) create_and_post({'t':'line' ,'p1':320011 ,'p2':310011}) create_and_post({'t':'line' ,'p1':310011 ,'p2':300010}) create_and_post({'t':'line' ,'p1':230003 ,'p2':240003}) create_and_post({'t':'line' ,'p1':210005 ,'p2':210006}) create_and_post({'t':'line' ,'p1':260005 ,'p2':260006}) create_and_post({'t':'lin...
import json import logging import os import re from collections import namedtuple from copy import deepcopy from typing import Any, Dict, List, Tuple import numpy as np import pandas as pd import spacy from scirex_utilities.analyse_pwc_entity_results import * from scirex_utilities.entity_utils import * from spacy.toke...
<reponame>sookido/co2meter """ Flask server for CO2meter (c) <NAME>, 2018 E-mail: <EMAIL> """ import optparse import logging import threading import time import glob import os import socket import signal import json try: from StringIO import StringIO except ImportError: from io import StringIO import flask from ...
form text. Raise CardinalityError if description already set. Raise OrderError if no package previously defined. """ self.assert_package_exists() if not self.package_desc_set: self.package_desc_set = True if validations.validate_pkg_desc(text): doc.package.description = str_from_text(text) else: raise SPDXVal...
None, interchange_control_number_prefix: Optional[str] = None, interchange_control_number_suffix: Optional[str] = None, sender_reverse_routing_address: Optional[str] = None, receiver_reverse_routing_address: Optional[str] = None, functional_group_id: Optional[str] = None, group_controlling_agency_code: Optional[s...
# limit memory usage.. import glob import logging import os import cv2 import numpy as np import pandas # limit memory usage.. from keras import backend as K from keras.layers import Input, Convolution3D, MaxPooling3D, Flatten, AveragePooling3D from keras.metrics import binary_accuracy, binary_crossentropy, mean_absol...
= thread.get() :param async_req bool: execute request asynchronously :param str owner: Owner of the namespace (required) :param str name: Component under namesapce (required) :param _return_http_data_only: response data without head status code and headers :param _preload_content: if False, the urllib3.HTTPRespo...
# -*- coding: UTF-8 -*- """ Author:wistn since:2020-09-11 18:44:30 LastEditors:Do not edit LastEditTime:2021-04-13 Description: """ import asyncio import re import traceback from .android_util_Log import Log from .org_noear_sited_Util import Util from .org_noear_sited_SdAttributeList import SdAttributeList from .mytool...
<gh_stars>1-10 import urllib.request as request import json import os import random import hashlib import requests import random from pairio import client as pairio from shutil import copyfile from .steady_download_and_compute_sha1 import steady_download_and_compute_sha1 from datetime import datetime as dt class KBuck...
pulumi.get(self, "fqdn") @fqdn.setter def fqdn(self, value: Optional[pulumi.Input[str]]): pulumi.set(self, "fqdn", value) @property @pulumi.getter(name="shardName") def shard_name(self) -> Optional[pulumi.Input[str]]: """ The name of the shard to which the host belongs. """ return pulumi.get(self, "shard_na...
<filename>sklearn/discriminant_analysis.py """ Linear Discriminant Analysis and Quadratic Discriminant Analysis """ # Authors: <NAME> # <NAME> # <NAME> # <NAME> # License: BSD 3-Clause from __future__ import print_function import warnings import numpy as np from scipy import linalg from .externals.six import string_...
= Sound.multitone_masker() sig = sig.ramp() sig.spectrum() """ if samplerate is None: samplerate = slab.signal._default_samplerate duration = Sound.in_samples(duration, samplerate) erb_freqs, _, _ = Filter._center_freqs( # get center_freqs low_cutoff=low_cutoff, high_cutoff=high_cutoff, bandwidth=bandwidth) fr...
# -*- coding: utf-8 -*- # Copyright 2009-2018, <NAME>, <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://www.apache.org/licenses/LICENSE-2.0 # # Unless required by ...
<gh_stars>0 # # Basic graphics functions for the Kindle HUD # import png import urllib import math import os import datetime import time screenWidth = 800 screenHeight = 600 ScreenNumPixels = screenWidth * screenHeight screenArray = bytearray(b'\xFF' * ScreenNumPixels) # The Font class handles ren...
transformed=False, **kw): """None <- writePDBQS( nodes, filename=None, sort=True, pdbRec=['ATOM', 'HETATM', 'CONECT'], bondOrigin=('File', 'UserDefined'), ssOrigin=None, **kw) \nRequired Argument:\n nodes --- TreeNodeSet holding the current selection \nOptional Arguments:\n filename --- name of the PDB file (d...
= log_wait_for + 1 logger.info('starting %s run' % skyline_app) if os.path.isfile(skyline_app_loglock): logger.error('error :: bin/%s.d log management seems to have failed, continuing' % skyline_app) try: os.remove(skyline_app_loglock) logger.info('log lock file removed') except OSError: logger.error('error ::...
factor.""" if hasattr(self,'stock'): oversupply_factor = DfOper.divi([self.stock.values_energy.loc[:,year].to_frame(), self.throughput], expandable=False, collapsible=True).fillna(1) oversupply_factor.replace(np.inf, 1, inplace=True) oversupply_factor[oversupply_factor<1] = 1 if (oversupply_factor.values>1.0000000...
# coding: utf-8 """ Some photometry tools for stellar spectroscopists """ from __future__ import (division, print_function, absolute_import, unicode_literals) import numpy as np from scipy import interpolate from astropy.io import ascii from .robust_polyfit import polyfit import logging import os, sys, time logger = ...
<gh_stars>0 # Natural Language Toolkit: Recursive Descent Parser # # Copyright (C) 2001-2014 NLTK Project # Author: <NAME> <<EMAIL>> # <NAME> <<EMAIL>> # URL: <http://nltk.org/> # For license information, see LICENSE.TXT from __future__ import print_function, unicode_literals from nltk.grammar import Nonterminal from ...
"""Support for Rflink devices.""" import asyncio from collections import defaultdict import logging import async_timeout from rflink.protocol import create_rflink_connection from serial import SerialException import voluptuous as vol from homeassistant.const import ( ATTR_ENTITY_ID, ATTR_STATE, CONF_COMMAND, CONF...
import bpy import bgl import gpu import blf import bmesh from bpy_extras import view3d_utils from math import floor, ceil, copysign from bgl import * from bpy.props import * from mathutils import Vector, Matrix from . import sprytile_utils, sprytile_modal from gpu_extras.batch import batch_for_shader from sprytile_tool...
# NLP written by GAMS Convert at 04/21/18 13:52:23 # # Equation counts # Total E G L N X C B # 112 41 41 30 0 0 0 0 # # Variable counts # x b i s1s s2s sc si # Total cont binary integer sos1 sos2 scont sint # 78 78 0 0 0 0 0 0 # FX 5 5 0 0 0 0 0 0 # # Nonzero counts # Total const NL DLL # 369 325 44 0 from pyomo.e...
'861847564':{'en': '<NAME>', 'zh': u('\u5e7f\u4e1c\u7701\u8302\u540d\u5e02')}, '861847565':{'en': 'Yangjiang, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u9633\u6c5f\u5e02')}, '861847566':{'en': 'Yangjiang, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u9633\u6c5f\u5e02')}, '861847567':{'en': 'Maoming, Guangdong', 'zh': u('\u...
# STL imports # Package imports import asyncio import json import logging import sys import aiohttp import async_timeout import numpy as np import requests from tqdm import tqdm, trange # Progress bar import fbd.tools from fbd.storage import Storage class Gatherer: # TODO: Move to numpy arrays / DFs? # TODO: Stor...
np.imag(ydata), color='k') elif component == 'both': plt.plot(xdata, np.real(ydata), color='k', label='Re') plt.plot(xdata, np.imag(ydata), color='#808080', label='Im') plt.legend() else: msg = f'{R}component was not given a valid value' \ + f' (should be \'real\', \'imag\' or \'both\').{END}' raise ValueError(...
<gh_stars>1-10 import argparse import logging import os import time import torch import transformers from tensorboardX import SummaryWriter from tqdm import tqdm from model import SpanDomainModel, CRFModel, SoftmaxModel from data_processor import SpanProcessor, CRFProcessor, SoftMaxProcessor from utils import set_seed...
<filename>Policy_Gradient_with_Continuous_action.py ############################################################################### # For more info, see https://hoseinkh.github.io/ ############################################################################### import gym import os import sys import numpy as np """ # if...
# coding: utf-8 """ LUSID API FINBOURNE Technology # noqa: E501 The version of the OpenAPI document: 0.11.2808 Contact: <EMAIL> Generated by: https://openapi-generator.tech """ from __future__ import absolute_import import re # noqa: F401 # python 2 and python 3 compatibility library import six from lusid....
# -*- coding: utf-8 -*- """Redcarpet_up.ipynb Automatically generated by Colaboratory. Original file is located at https://colab.research.google.com/gist/amankumar444/89d0f234d0622ab938acb10cc858b5ba/redcarpet_up.ipynb """ !pip install nsepy import pandas as pd import pandas_datareader as dr import matplotlib.pypl...
<gh_stars>0 #!/usr/bin/env python # -*- coding: utf-8 -*- ############################################################################### # The MIT License (MIT) # # Copyright (c) 2015 NetCharm <<EMAIL>> # # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated d...
:rtype: :param newMasterKey: bytes """ return self.C_.call_getter_raw('setMasterKey', {'newMasterKey': newMasterKey}, expect_ec=ts4_expect_ec) def M_setMasterKey(self, newMasterKey, ts4_private_key=None, ts4_expect_ec=0, ts4_is_debot=False): """ Wrapper for D4Test.setMasterKey method call :param newMasterKey: ...
HOH C 2 . ? 42.015 -9.763 40.020 1.00 28.41 ? 430 HOH A O 1 HETATM 4027 O O . HOH C 2 . ? 34.753 -6.728 26.420 1.00 17.50 ? 431 HOH A O 1 HETATM 4028 O O . HOH C 2 . ? 40.204 -13.387 2.304 1.00 35.05 ? 432 HOH A O 1 HETATM 4029 O O . HOH C 2 . ? 40.326 -13.386 14.564 1.00 35.68 ? 433 HOH A O 1 HETATM 4030 O O . HOH...
<filename>niftynet/engine/application_driver.py<gh_stars>1-10 # -*- coding: utf-8 -*- """ This module defines a general procedure for running applications. Example usage:: app_driver = ApplicationDriver() app_driver.initialise_application(system_param, input_data_param) app_driver.run_application() ``system_param`...
the base jit flags = [ "-c", item, "-v", "q" # only log from the jit. ] flags += altjit_replay_flags # Change the working directory to the core root we will call SuperPMI from. # This is done to allow libcoredistools to be loaded correctly on unix # as the LoadLibrary path will be relative to the current dire...
<filename>code/convLSTM(2).py # Imports import datetime import pickle import matplotlib.pyplot as plt import numpy as np import tensorflow as tf from evaluation import * def load_data(sequenceFile, labelFile): """ 加载数据,将本地持久化的pkl文件加载并划分成训练集,验证集以及测试集 :param sequenceFile: 输入特征的本地持久化pkl文件 :param labelFile: 真实标签的本地持...
import medicationdispense return medicationdispense.MedicationDispense(jsondict) if "MedicationDispenseSubstitution" == resource_type: from . import medicationdispense return medicationdispense.MedicationDispenseSubstitution(jsondict) if "MedicationDispensePerformer" == resource_type: from . import medicationdisp...
#!/usr/bin/env python from binascii import hexlify, unhexlify import time import requests import json from collections import OrderedDict import os import sys import random from pprint import pprint COIN = 1000000000000000000 TX_FEE = 0.01 rpcurl_mainnet = 'http://127.0.0.1:6602' rpcurl_testnet = 'http://127.0.0.1:6...
# Copyright (c) 2020, <NAME>, Honda Research Institute Europe GmbH, and # Technical University of Darmstadt. # All rights reserved. # # 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 mus...
showIndent(outfile, level, pretty_print) outfile.write('<%s%s%s' % (namespace_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() self.exportAttributes(outfile, level, already_processed, namespace_, name_='fimValid') if self.hasContent_(): outfile.write('>%s' % (eol_, )) self.export...
<reponame>JulyKikuAkita/PythonPrac<filename>cs15211/CreateMaximumNumber.py<gh_stars>1-10 __source__ = 'https://leetcode.com/problems/create-maximum-number/#/description' # https://github.com/kamyu104/LeetCode/blob/master/Python/create-maximum-number.py # Time: O(k * (m + n + k)) ~ O(k * (m + n + k^2)) # Space: O(m + n ...
# -*- coding: utf-8 -*- """ Name : grdio.py Created on : 2018/11/24 08:57 Author : <NAME> <<EMAIL>> Affiliation : Institute of Geophysics, CEA. Version : 0.1.0 Copyright : Copyright (C) 2018-2020 GEOIST Development Team. All Rights Reserved. License : Distributed under the MIT License. See LICENSE.txt for more i...
<reponame>nueverest/BlowDryCSS """ Declares string for building blowdrycss - settings.py. **Important:** Only called during initial installation. """ # python 2 from __future__ import absolute_import, print_function, unicode_literals # builtins import os __author__ = '<NAME>' __project__ = 'blowdrycss' blowdrycss...
(InstructionTextTokenType.InstructionToken, 'movs.w'), (InstructionTextTokenType.TextToken, ' '), (InstructionTextTokenType.TextToken, 'Ds'), (InstructionTextTokenType.OperandSeparatorToken, ', '), (InstructionTextTokenType.TextToken, '@'), (InstructionTextTokenType.TextToken, 'As') ], }, { 'opmask': (0xf409, ...
import random import time import math import copy from generator import generator from heuristic import evaluate from rules import is_attacked, check_order # The 'node' and 'cut' variables store, respectively, # the number of nodes visited throughout the program # and the number of times the tree was subjected to # al...
"""REST API view model serializers for the projectroles app""" from email.utils import parseaddr from django.conf import settings from django.contrib.auth import get_user_model from rest_framework import exceptions, serializers from drf_keyed_list import KeyedListSerializer from projectroles.models import ( Projec...
<filename>gfootball/env/wrappers.py # coding=utf-8 # Copyright 2019 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://www.apache.org/licenses/LICENSE-2.0 # # Unless required...
""" Cisco_IOS_XE_ios_events_oper This module contains a collection of YANG definitions for asynchronous events from network element. Copyright (c) 2016\-2018 by Cisco Systems, Inc. All rights reserved. """ from collections import OrderedDict from ydk.types import Entity, EntityPath, Identity, Enum, YType, YLeaf, YL...
import logging from typing import List, Dict, Set, Union, cast, Type import pandas as pd from genomics_data_index.storage.SampleSet import SampleSet from genomics_data_index.storage.model.NucleotideMutationTranslater import NucleotideMutationTranslater from genomics_data_index.storage.model.QueryFeature import QueryF...
import torch from torch import Tensor import torch.nn as nn import torch.nn.functional as F import torchvision.transforms as vtransforms from typing import Type, Any, Callable, Union, List, Optional import blocks from torch.nn import init import functools #################### # Utility Functions #################### ...
import argparse import configparser import ntpath import shutil import time import sys, os, re from context import diana import diana.classes.drug as diana_drug import diana.classes.functional_analysis as functional_analysis import diana.classes.network_analysis as network_analysis import diana.classes.top_scoring as ...