input
stringlengths
2.65k
237k
output
stringclasses
1 value
<filename>config_interface/Config_cli.py # MIT License # # Copyright (c) 2022 <NAME> [srccircumflex] # # 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 l...
users where the re-added role was specified in the configuration of the external user directory.\n' '\n' ), link=None) RQ_SRS_009_LDAP_ExternalUserDirectory_Role_New = Requirement( name='RQ.SRS-009.LDAP.ExternalUserDirectory.Role.New', version='1.0', priority=None, group=None, type=None, uid=None, descriptio...
<reponame>fameshpatel/olfactorybulb<gh_stars>1-10 import os import sys import numpy import numpy.random as rnd from scipy.spatial.distance import euclidean class CreateHyperAndMinicolumns(object): def __init__(self, param_dict): self.params = param_dict self.folder_name = self.params['folder_name'] self.n_hc = s...
function used for this histogram trace. If "count", the histogram values are computed by counting the number of values lying inside each bin. If "sum", "avg", "min", "max", the histogram values are computed using the sum, the average, the minimum or the maximum of the values lying inside each bin respectively. h...
<filename>exp_sr_test06.py # -*- coding: utf-8 -*- """ TODO: Please check readme.txt file first! -- This Python2.7 program is to reproduce Figure-5. In this test, we compare GraphStoIHT with six baseline methods on the real image dataset, which can be found in reference [2]. References: [1] <NAME>, <NAME>, and <NAME>...
program name :return: Tuple of: 1) Argparse Namespace of parsed arguments 2) Dictionary of user-specified arguments """ # Parse the input flags using argparse parser = get_parser(argv[0]) parsed_args = parser.parse_args(argv[1:]) # Break down inputs to keep track of arguments and values specified directly by...
shape: :math:`(C_{out}, C_{in}, H_f, W_f)` - Output: Output shape: :math:`(N, C_{out}, H_{out}, W_{out})` Where .. math:: H_{out}&= \\frac{(H_{in} + 2 * paddings[0] - (dilations[0] * (H_f - 1) + 1))}{strides[0]} + 1 \\\\ W_{out}&= \\frac{(W_{in} + 2 * paddings[1] - (dilations[1] * (W_f - 1) + 1))}{strides[1]...
header_params, body=body_params, post_params=form_params, files=local_var_files, response_type=None, # noqa: E501 auth_settings=auth_settings, async_req=params.get('async_req'), _return_http_data_only=params.get('_return_http_data_only'), _preload_content=params.get('_preload_content', True), _request_timeout=...
from firedrake import op2, assemble, dot, dx, FunctionSpace, Function, sqrt, \ TestFunction, TrialFunction, Constant, grad, inner, \ LinearVariationalProblem, LinearVariationalSolver, FacetNormal, \ ds, ds_b, ds_v, ds_t, dS_v, div, avg, jump, DirichletBC, BrokenElement, \ TensorFunctionSpace, SpatialCoordinate, Vec...
N.cg_prog, ('CGINCLUDE', N.cg_prog_body, 'ENDCG', )), Production("fall_back_cmd -> 'FallBack' String", 'p117', N.fall_back_cmd, ('FallBack', T.String, )), Production("fall_back_cmd -> 'FallBack' 'Off'", 'p118', N.fall_back_cmd, ('FallBack', 'Off', )), Production("custom_editor_cmd -> 'CustomEditor' String", ...
GetMotorTorques(self): """Get the amount of torque the motors are exerting. This function mimicks the noisy sensor reading and adds latency. Returns: Motor torques of all eight motors polluted by noise and latency. """ return self._AddSensorNoise( np.array(self._control_observation[2 * self.num_motors:3 * self...
""" Inference module for PCM toolbox with main functionality for model fitting and evaluation. @author: jdiedrichsen """ import numpy as np from numpy.linalg import solve, eigh, cholesky from numpy import sum, diag, log, eye, exp, trace, einsum import pandas as pd import PcmPy as pcm from PcmPy.model import Independen...
<gh_stars>10-100 # Copyright (c) 2020 PaddlePaddle 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 requ...
<reponame>SwankSwashbucklers/website-template """ Build Nick's prefered default project starting point for new websites. The project will precompile sass files for css, and use bottle as the web framework. It will be geared towards deployment on a cherrypy server using a nginx reverse proxy. Requirements: - Pytho...
#!/usr/bin/env python # # Copyright (c) 2017 10X Genomics, Inc. All rights reserved. # import collections import numpy as np import os import pandas as pd from scipy.misc import logsumexp from scipy.special import gammaln import scipy.stats from sklearn.utils import sparsefuncs import sys import tenkit.stats as tk_sta...
sling_knife() elif response == "C" or response == "c": print("After choosing your two items, you continue down the path.") time.sleep(3) print("You hear the noise of passing cars. Relief washes over you as you run towards the noise in hopes of getting a lift home.") time.sleep(5) print("Suddenly you hear fo...
<gh_stars>1-10 """ Unit tests for ProgramEnrollment views. """ import json from collections import OrderedDict, defaultdict from datetime import datetime, timedelta from unittest import mock from uuid import UUID, uuid4 import ddt from django.conf import settings from django.core.cache import cache from django.test i...
<reponame>apyrgio/ganeti<gh_stars>0 # # # Copyright (C) 2006, 2007, 2008, 2009, 2010, 2011, 2012, 2013, 2014 Google Inc. # 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 o...
self.__demangled_name def set_demangled_name(self, value): self.__demangled_name = value return def get_name(self): return self.__name def set_name(self, value): self.__name = value return def add_member(self, member, off): ''' Add the member, ensuring that the required parameters are specified ''' mem...
AMR_SOURCES = [ "(w / want-01 :ARG0 (b / boy) :ARG1 (g / go-01 :ARG0 b))" ] AMR_TARGETS = [ "The boy wants to go." ] AMR_NOISED = { "convert-to-triples": { "src": "order Graph: ( want :ARG0 ( boy ) :ARG1 ( go :ARG0 boy ) )", "tgt": "<t> want :ARG0 boy <t> want :ARG1 go <t> go :ARG0 boy" }, "generate-from-tripl...
address1 is not FAILURE: elements0.append(address1) address6 = FAILURE address6 = self._read__() if address6 is not FAILURE: elements0.append(address6) address7 = FAILURE address7 = self._read_statement() if address7 is not FAILURE: elements0.append(address7) else: elements0 = None self._offset = index1 el...
% arg.type call.addTemp(temp_arr_type, temp) call.addTemp("int", "i") # Generate the call surrounded by temp array allocation, copies, writebacks, and temp free count = "*%s" % arg.countParam().name call.addCopy("%s = (%s)malloc(sizeof(%s) * %s);" % (temp, temp_arr_type, arg.type, count)) # temp free. This is ...
come into play? @staticmethod def select_action(node, temperature): """ Select action according to the visit count distribution and the temperature. The temperature is changed dynamically with the visit_softmax_temperature function in the config. :param node: We will get all the visit counts for all of this node...
import matplotlib from mpl_toolkits.axes_grid1 import make_axes_locatable from typing import Union from HSTB.kluster.surface_helpers import * class QuadTree: """ Adapted from https://github.com/GliderToolsCommunity/GliderTools/blob/master/glidertools/mapping.py Recursively splits data into quadrants Object ori...
<gh_stars>1-10 # This Python file uses the following encoding: utf-8 ############################# ## # QNX6FS Partition Parser and Automatic file extraction ## ----------------------------------------------------- # ## Author: <NAME> (<EMAIL>) # Revision: 0.2d rev2 (release-candidate) / Dec 2019 ## # updates posted @...
<filename>scicopia/tests/test_flask_db.py<gh_stars>0 import pytest import time from flask import current_app, g, session, request from werkzeug.security import generate_password_hash from scicopia.tests.data.initFlaskData import main as init init()#doc=True,elastic=True,user=True import scicopia.app.db as db from scico...
if customcpunumber: # TODO: This is probably not correct, fix it cmd['details[0]["cpuNumber"]'] = customcpunumber if customcpuspeed: # TODO: This is probably not correct, fix it cmd['details[0]["cpuSpeed"]'] = customcpuspeed if custommemory: # TODO: This is probably not correct, fix it cmd['details[0]["memory...
from dataset import * import transforms import time import os from networks import ResnetGenerator,Discriminator from utils import denorm,tensor2numpy,RGB2BGR,cam,BCEWithLogitsLoss,RhoClipper from paddle.fluid.layers import ones_like,zeros_like import paddle.fluid as fluid from paddle.fluid.dygraph import L1L...
commands . getoutput ( "ifconfig | egrep 'vxlan|vlan4094'" ) if ( ooIi1iiI11I . find ( "vxlan" ) == - 1 ) : lprint ( "No VXLAN interface found, cannot program hardware" ) return if 24 - 24: o0oOOo0O0Ooo * I11i . I1IiiI if ( ooIi1iiI11I . find ( "vlan4094" ) == - 1 ) : lprint ( "No vlan4094 interface found, cannot...
<reponame>leschzinerlab/myami-3.2-freeHand #!/usr/bin/env python # # COPYRIGHT: # The Leginon software is Copyright 2003 # The Scripps Research Institute, La Jolla, CA # For terms of the license agreement # see http://ami.scripps.edu/software/leginon-license # from leginon import leginondata import numpy import scipy...
green]' fb10_b = '[bold red]Incorrect[/bold red]' fb10 = [fb10_a, fb10_b] all_options.append(options10) all_answers.append(ans10) all_feedback.append(fb10) options11 = ['Conda install', 'PIP install', 'APT-get install', 'Easy-install'] ans11 = 'PIP install' fb11_a = '[bold red]Try again[/bold red]. install conda sets...
# Copyright 2020 Stanford University, Los Alamos National Laboratory # # 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 appl...
# Calculate the time difference between two snapshots time1 = self.get_dataset_from_snapshot(snap_idx1) time2 = self.get_dataset_from_snapshot(snap_idx2) return time2 - time1 class FullData(UIOData): def __init__(self, model_path: str, eos_file='') -> None: super().__init__(model_path, eos_file) self.x = self[...
import networkx as nx import numpy as np from copy import deepcopy from collections import defaultdict from ylearn.utils import to_repr from . import prob from .utils import (check_nodes, ancestors_of_iter, descendents_of_iter) class CausalGraph: """ A class for representing DAGs of causal structures. Attributes...
callback once buffer is filled for the first # time if packetCounter == BUFFER: startFlag = 1 # if audioBuffer is getting way too long, chop it back, the # treshold is two times the normal size if len(audioBuffer) > 2*CHUNK*BUFFER*2: del audioBuffer[0:2*CHUNK*BUFFER] overFlowFlag += 1 # display state if pac...
unlock 54423720 0q82_05 """ # print( # step + " " + # str(word.txt.encode('ascii', 'ignore')).replace(" ", "_") + " " + # str(LexSentence.inner) + " " + # str(LexSentence.outer) + " " + # ("LOCKED " if self._global_lock.locked() else "unlock ") + # str(id(self._global_lock)) + " " + # self.max_idn().qstring() ...
""" SALTS XBMC Addon Copyright (C) 2016 tknorris 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 3 of the License, or (at your option) any later version. This program is distri...
units, lines = None, follow = False): result = 0 for unit in self.sortedAfter(units): exitcode = self.log_unit(unit, lines, follow) if exitcode < 0: return exitcode if exitcode > result: result = exitcode return result def log_unit(self, unit, lines = None, follow = False): conf = self.load_unit_conf(unit) i...
kwargs['_return_http_data_only'] = True return self.get_agent_token_with_http_info(owner, uuid, **kwargs) # noqa: E501 def get_agent_token_with_http_info(self, owner, uuid, **kwargs): # noqa: E501 """Get agent token # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTT...
<reponame>threefoldtech/js-sdk<gh_stars>10-100 import base64 import copy import threading # import collections import urllib from gevent import sleep from jumpscale.clients.base import Client from jumpscale.core.base import Base, fields from jumpscale.loader import j from github.GithubException import UnknownObjectE...
@raise PDBParseError: if the stream has no HEADER at byte 0 """ self._stream.seek(0) header = next(self._stream) if not header.startswith('HEADER'): raise PDBParseError('Does not look like a regular PDB file.') structure = csb.bio.structure.Structure(header.split()[-1]) while True: try: line = next(self....
+ dm_name latex_name += "," + dm_latex_name self._name = name + ")" self._latex_name = latex_name + r"\right)" self._vmodule = vector_field_module self._degree = degree # the member self._ring is created for efficiency (to avoid calls to # self.base_ring()): self._ring = domain.scalar_field_algebra() Parent.__...
(0 0, 1 1)> """ if not all(np.isscalar(val) for val in [xmin, ymin, xmax, ymax]): raise TypeError("xmin/ymin/xmax/ymax only accepts scalar values") return lib.clip_by_rect( geometry, np.double(xmin), np.double(ymin), np.double(xmax), np.double(ymax), **kwargs ) @multithreading_enabled def convex_hull(geome...
shoot_opt = { 'steps': self.steps, 'displacement': self.displacement, 'voxel_size': voxel_size, 'absolute': self.absolute, 'membrane': self.membrane, 'bending': self.bending, 'lame': self.lame, 'factor': self.factor, } greens_prm = { 'absolute': self.absolute, 'membrane': self.membrane, 'bending': self.ben...
<reponame>sodicarus/channels # -*- coding: utf-8 -*- # ------------------------------------------------------------ # streamondemand-pureita / XBMC Plugin # <NAME> # http://www.mimediacenter.info/foro/viewtopic.php?f=36&t=7808 # ------------------------------------------------------------ import base64 import re import...
# -*- coding: utf-8 -*- # Copyright (c) 2016-2017, <NAME>, <NAME> and <NAME> # All rights reserved. # This file is part of the PyBioMed. # The contents are covered by the terms of the BSD license # which is included in the file license.txt, found at the root # of the PyBioMed source tree. """ ##########################...
0.25: characteristic_density_local = characteristic_density print('characteristic_density_local spotty {}'.format(characteristic_density_local)) else: characteristic_density_local = float(np.sum(np.in1d(subpix, subpix_annulus_region))) \ / (hp.nside2pixarea(nside_fracdet, degrees=True) * len(subpix_annulus_region)...
None): # noqa: E501 raise ApiValueError("Missing the required parameter `ip` when calling `api_v1_object_device_ip_port_port_active_nodes_get`") # noqa: E501 # verify the required parameter 'port' is set if self.api_client.client_side_validation and ('port' not in local_var_params or # noqa: E501 local_var_params['...
indicatorOfParameter == 184 and indicatorOfTypeOfLevel == 202 and level == 6: return 'DISC_SIG_CODE' if table2Version == 203 and indicatorOfParameter == 184 and indicatorOfTypeOfLevel == 202 and level == 5: return 'DISC_VERT_CODE' if table2Version == 203 and indicatorOfParameter == 184 and indicatorOfTypeOfLevel ...
import random from collections import deque from random import shuffle, randint import gui.constants as c # Uncomment to replicate random _maze generations # random.seed(0) class MazeBuilder: def __init__(self): """ Create a new MazeBuilder instance, which handles maze initialization and random generation. """...
main.log.warn( "Not all intents installed" ) if intentState: break else: #Dumping intent summary main.log.info( "Intents:\n" + str( main.ONOScli1.intents( jsonFormat=False, summary=True ) ) ) utilities.assert_equals( expect=main.TRUE, actual=intentState, onpass="INTENTS INSTALLED", onfail="SOME INTENTS NOT INS...
Byte 4-5 | | TX = Stop X-Axis | Sets which Axis is to be stopped | | | | TY = Stop Y-Axis | | | | | TZ = Stop Z-Axis | | | | | TE = Stop E-Axis | | | | | TA = Stop All | | +--------------+--------------------------+------------------------------------------------------------------------------------------+ | Byte ...
review request. This shows the type of update that was made, the user who made the update, and when the update was made. Clients can use this to inform the user that the review request was updated, or automatically update it in the background. This does not take into account changes to a draft review request, as...
"<KEY>", "<KEY>", "<KEY>", "<KEY>", "<KEY>", "<KEY>", "<KEY>", "<KEY>", "<KEY>", "<KEY>", "<KEY>", "<KEY>", "<KEY>", "<KEY>", "<KEY>", "<KEY>", "<KEY>", "<KEY>", "<KEY>", "<KEY>", "<KEY>", "<KEY>", "<KEY>", "<KEY>", "<KEY>", "<KEY>", "<KEY>", "<KEY>", "<KEY>", "<KEY>", "<KEY>", "<KEY>", ...
import odbpy as odb from enum import Enum import random import math import copy def ErrorQuit(msg): print("ERROR: %s" %(msg)) exit(1) # bookshelf object type class BsType (Enum): MOVABLE_STD_INST = 0 MOVABLE_MACRO_INST = 1 FIXED_INST = 2 PRIMARY = 3 class Instance: def __init__(self, name, lx, ly, width, he...
volume data as training data (Input) training_data = price_volume_df.iloc[:, 1:3].values # Normalize the data from sklearn.preprocessing import MinMaxScaler sc = MinMaxScaler(feature_range = (0, 1)) training_set_scaled = sc.fit_transform(training_data) # Create the training and testing data, training data conta...
# coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. # Code generated by Microsoft (R) AutoRest Code Generator. # Changes may ...
n = {"Bonds": 2, "Angles": 3, "Dihedrals": 4, "Impropers": 4} parse_line = lambda l: {"type": int(l[1]), kw[:-1].lower(): [int(x) for x in l[2:n[kw] + 2]]} elif kw == "Atoms": keys = ATOMS_LINE_FORMAT[atom_style][:] sample_l = single_section_lines[1].split() if len(sample_l) == len(keys) + 1: pass elif len(samp...
elif token in ["vmt", "vdt"]: dy = argList[0] curX += dx curY += dy showX, showY = convertCoords(curX, curY) newPoint = XMLElement( "point", { "x": f"{showX}", "y": f"{showY}", "type": opName}) if opName == "move": if outlineItem is not None: if len(outlineItem) == 1: # Just in case we see 2 moves in a row,...
<reponame>nccreang/pyUSID<filename>examples/beginner/plot_hdf_utils_read.py """ ================================================================================ 05. Utilities for reading h5USID files ================================================================================ **<NAME>** 4/18/2018 **This document...
#!/usr/bin/python # -*- coding: utf-8 -*- # Copyright 2020 Dell Inc. or its subsidiaries. All Rights Reserved # GNU General Public License v3.0+ # (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) ############################################# # WARNING # ############################################# # # This f...
0.0, 0.28870882, 0.0962085, np.nan, 2.09447737], [-1.17001528, 0.0, 0.94512457, 0.92660979, np.nan, -3.59769363], [-0.03628091, 0.0, 0.03747396, 0.42977612, np.nan, -1.40812549], ] ), nan_ok=True, ) assert slice_.pairwise_significance_p_vals(1) == pytest.approx( np.array( [ [0.36932341, 1.0, 0.38975346, 0.186...
schedule_id) except Exception as e: botengine.get_logger().warning("location.py - Error delivering schedule_fired to location microservice (continuing execution): " + str(e)) import traceback botengine.get_logger().error(traceback.format_exc()) return # Device intelligence modules for device_id in self.devices:...
import os import random from datetime import date, timedelta import pytest from rivoli.compute import ( DayHistoricalRankEvent, HistoricalRecordEvent, HistoricalTotalEvent, MonthRecordEvent, MonthSummaryEvent, MonthTotalEvent, YearSummaryEvent, YearTotalEvent, _build_french_ordinal, _capitalize_first_letter...
import csv import tkSimpleDialog import webbrowser from Tkinter import * import ttk import pandas as pd import os import collections import subprocess import tkFileDialog, tkMessageBox import json import requests from camera_handler import API_Camera_Handler from hp_data import exts import data_files """ Contains clas...
<filename>analyzer/darwin/lib/api/process.py """ Copyright (2014) Sandia Corporation. Under the terms of Contract DE-AC04-94AL85000, there is a non-exclusive license for use of this work by or on behalf of the U.S. Government. NOTICE: For five (5) years from the United States Government is granted for itself and othe...
recursive functions that will use add_person to make the tree of people (Descendants) to be included within the report. """ def __init__(self, dbase, canvas): self.database = dbase self.canvas = canvas self.families_seen = set() self.cols = [] self.__last_direct = [] gui = GuiConnect() self.do_parents = gui...
number <= len(smallElements): m1 = MassFunction(*[(x, 1.0/number) for x in random.sample(smallElements, number)]) m2 = MassFunction(*[(x, 1.0/number) for x in random.sample(smallElements, number)]) m3 = MassFunction(*[(x, 1.0/number) for x in random.sample(smallElements, number)]) m4 = MassFunction(*[(x, 1.0/number...
request by default. To make an asynchronous HTTP request, please pass async=True >>> thread = api.delete_test_gateway_by_id_with_http_info(test_gateway_id, async=True) >>> result = thread.get() :param async bool :param str test_gateway_id: ID of testGateway to delete. (required) :return: None If the method is c...
import sdi_utils.gensolution as gs import sdi_utils.set_logging as slog import sdi_utils.textfield_parser as tfp import pandas as pd import numpy as np EXAMPLE_ROWS =5 try: api except NameError: class api: class Message: def __init__(self,body = None,attributes = ""): self.body = body self.attributes = attrib...
<filename>angr/project.py import logging import os import types from io import BytesIO, IOBase import pickle import string from collections import defaultdict from typing import Dict, Any import archinfo from archinfo.arch_soot import SootAddressDescriptor, ArchSoot import cle from .misc.ux import deprecated from .er...
"""Miscellaneous utilities""" # Copyright (c) Jupyter Development Team. # Distributed under the terms of the Modified BSD License. import asyncio from binascii import b2a_hex import concurrent.futures from datetime import datetime, timezone import random import errno import hashlib from hmac import compare_digest imp...
the given dimension, the number of dimensions decreases by one. The dimension properties (name, type, labels, reference system and resolution) for all other dimensions remain unchanged. """ return reduce_dimension(data=self, reducer=reducer, dimension=dimension, context=context) def reduce_dimension_binary(self, ...
<filename>ruledxml/core.py #!/usr/bin/env python3 """ ruledxml.core ------------- Core implementation for application of rules to XML files. It covers the following steps: 1. Read rules file 2. Retrieve source XML file 3. Do required elements exist? 4. Apply rules 5. Write resulting XML to file (C) 2015, ...
<reponame>MagicCameralife/BlueCleaner<gh_stars>0 # Copyright 2014 Swisscom, <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 re...
# VMware vCloud Director Python SDK # Copyright (c) 2017-2018 VMware, Inc. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 ...
"50141", "50149", "50150", "50156", "50162", "50163", "50164", "50169", "50191", "50194", "50204", "50216", "50236", "50238", "50244", "50245", "50254", "50262", "50268", "50275", "50296", "50297", "50302", "50307", "50309", "50311", "50314", "50317", "50319", "50320", "50325", "50330", ...
# -*- coding: utf-8 -*- # # "Tic Tac Toe" Game # # Created by LulzLoL231 on 2/24/20. # from random import choice from os import system from platform import system as OperationSystem from time import sleep class Vars(object): '''Variables class for Tic Tac Toe game\n''' game_rules = '-= RULES =-\n1. The game is playe...
""" interfaces.py `FormsiteInterface` `FormsiteParams` and `FormsiteCredentials` classes are defined here. Author: <NAME> Documentation: https://github.com/strny0/formsite-utility """ from __future__ import annotations import csv import asyncio from datetime import datetime as dt from datetime import timedelta as td f...
# -*- coding: utf-8 -*- """ Transformations from the breakdowns to some surface in 3-space (sometimes 2-space) Attributes: PROJECTIONS: A map of maps. The first map is keyed on the name of a family of projections, and the second is keyed on shape (3 or 4). For instance, PROJECTIONS['nslerp'][3] gives the function t...
ns_prefix def get_RegionRefIndexed(self): return self.RegionRefIndexed def set_RegionRefIndexed(self, RegionRefIndexed): self.RegionRefIndexed = RegionRefIndexed def add_RegionRefIndexed(self, value): self.RegionRefIndexed.append(value) def insert_RegionRefIndexed_at(self, index, value): self.RegionRefIndexed.i...
['Study'], 'DEFORMABLE SPATIAL REGISTRATION IOD': ['Study'], 'VIDEO PHOTOGRAPHIC IMAGE IOD': ['Study'], 'RT IMAGE IOD': ['Study'], 'SC IMAGE IOD': ['Study'], None: ['Study'], 'SEGMENTATION IOD': ['Study'], 'PET IMAGE IOD': ['Study'], 'PSEUDO-COLOR SOFTCOPY PRESENTATION STATE IOD': ['Study'], 'DIGITAL X-RAY IMA...
<filename>fabric_cf/actor/db/psql_database.py #!/usr/bin/env python3 # MIT License # # Copyright (c) 2020 FABRIC Testbed # # 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,...
<reponame>LourencoFernando/SMS-Project<gh_stars>0 import PySimpleGUI as sg import interface, arquivo import webbrowser from fpdf import FPDF janela_boas_vindas, janela_principal, janela_salas, janela_professores, janela_alunos, janela_cursos, janela_mensagem = interface.janela_de_boas_vinda(), None, None, None, None, ...
<gh_stars>0 """Elements reflecting output objects.""" import datetime as dt import functools import os import smtplib import sqlalchemy as sql from email import encoders from email.mime.base import MIMEBase from email.mime.text import MIMEText from email.mime.multipart import MIMEMultipart from .database import Data...
# -*- coding: utf-8 -*- from __future__ import with_statement import collections import glob import json import os import os.path import re import shutil import subprocess import sys import tempfile import unittest import warnings from six import PY3, StringIO, b, text_type from werkzeug.test import Client from werkz...
<reponame>guoyi118/sparqling-queries import os import ast import unittest import time import attr from timeout_decorator import timeout import textwrap from functools import lru_cache from qdmr2sparql.datasets import QdmrInstance, DatasetBreak, DatasetSpider from qdmr2sparql.structures import GroundingIndex, Groundin...
<gh_stars>1-10 #!/usr/bin/env python from bearlibterminal import terminal as blt import os import sys import math from random import choice, randrange, random from collections import defaultdict from textwrap import wrap from time import sleep import string import shelve from copy import copy #, deepcopy from enum impo...
الأساسي', 'Group Title': 'عنوان المجموعة', 'Group Type': 'نوع المجموعة', 'Group Types': 'أنواع المجموعة', 'Group updated': 'تجديد المجموعة', 'Grouped by': 'مجمعة حسب', 'Groups': 'المجموعات', 'Groups removed': 'تمت إزالة المجموعات', 'Hair Color': 'لون الشعر', 'Hair Comments': 'الشعر تعليقات', 'Hair Length': 'ط...
from re import findall from math import sin, cos, tan from colorama import init, Style, Fore from MineScriptVisitor import MineScriptVisitor from MineScriptParser import MineScriptParser import tags approved_attrs = [ "append", "pop", "remove", "sort" ] error = f"{Fore.RED}Traceback:\nFile %s, li...
""" Defines various utilities for BDF parsing including: - to_fields """ from __future__ import annotations import os from io import StringIO from collections import defaultdict from typing import List, Dict, Tuple, Optional, Any, TYPE_CHECKING #import pyNastran from pyNastran.bdf.errors import CardParseSyntaxError ...
############################################################################## # Copyright (c) 2016 Intel Corporation # # 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....
<reponame>pywash/pywash<filename>src/BandB/MissingValues.py ''' MIT License Copyright (c) [2018] [<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...
#!/usr/bin/env python # Classifier using HuggingFace Transformer (by Albert) import importlib import pandas as pd import logging import datetime import numpy as np from sklearn.model_selection import train_test_split from sklearn.metrics import accuracy_score import torch import os import sys import glob from tqdm impo...
import unittest import numpy from typing import Dict, Any, List from qupulse._program.instructions import InstructionBlock, InstructionPointer,\ Trigger, CJMPInstruction, REPJInstruction, GOTOInstruction, EXECInstruction, STOPInstruction,\ InstructionSequence, AbstractInstructionBlock, ImmutableInstructionBlock, Ins...
.validators.v1_3_3.jsd_979688084b7ba60d \ import JSONSchemaValidator979688084B7BA60D \ as JSONSchemaValidator979688084B7BA60D_v1_3_3 from .validators.v1_3_3.jsd_98a39bf4485a9871 \ import JSONSchemaValidator98A39Bf4485A9871 \ as JSONSchemaValidator98A39Bf4485A9871_v1_3_3 from .validators.v1_3_3.jsd_99872a134d0a9fb4 ...
""" Copyright (c) Contributors to the Open 3D Engine Project. For complete copyright and license terms please see the LICENSE at the root of this distribution. SPDX-License-Identifier: Apache-2.0 OR MIT """ import os import shutil import sys from functools import partial import azlmbr.editor import azlmbr.legacy.gen...
<gh_stars>10-100 """ GST contraction algorithms """ #*************************************************************************************************** # Copyright 2015, 2019 National Technology & Engineering Solutions of Sandia, LLC (NTESS). # Under the terms of Contract DE-NA0003525 with NTESS, the U.S. Government r...
from color_trans_gradients_2 import delegator, create_undistorted_hls_image, create_sobel_image import numpy as np import cv2 import glob import matplotlib.pyplot as plt import pickle # Loading camera calibration cameraCalibration = pickle.load(open('serialized_camera_data/camera_calibration.p', 'rb')) mtx, dist = ma...
# -*- coding: utf-8 -*- # This file is auto-generated, don't edit it. Thanks. from Tea.model import TeaModel from typing import Dict, List, Any class GetConferenceDetailHeaders(TeaModel): def __init__( self, common_headers: Dict[str, str] = None, x_acs_dingtalk_access_token: str = None, ): self.common_headers =...