text
stringlengths
6.04k
39.5k
# This script runs a series of basic tests on TranscriptClean to make sure that it is behaving as expected. # It does not address all possible cases, but is intended to test basic functionality. import os import glob def main(): # Files used in the course of testing genome = "/dfs3/bio/dwyman/pacbio_f2016/da...
#!/usr/bin/env python3 # Copyright (c) 2019 FRC Team 1678: Citrus Circuits """Export data from local MongoDB database to CSV file for picklist editor spreadsheet. Timestamps files. Data exports also used for analysts in stands at competition. """ import argparse import csv from datetime import datetime from data_tran...
from django.http import HttpResponse,HttpResponseRedirect,HttpResponseNotFound from django.http import QueryDict import json from django.contrib.auth.models import User, Group from django.contrib import messages from django.core import serializers from sampledbapp.models import * import django_rq from datetime import d...
# vim: set fileencoding=utf8 : """Align, register and fuse frames specified on the command line using the DTCWT fusion algorithm. Usage: fuseimages [options] <frames>... fuseimages (-h | --help) Options: -n, --normalise Re-normalise input frames to lie on the ...
r"""undocumented""" from typing import Union, Tuple import math import torch from torch import nn import torch.nn.functional as F from ..attention import AttentionLayer, MultiHeadAttention from ...embeddings import StaticEmbedding from ...embeddings.utils import get_embeddings from .seq2seq_state import State, LSTMSta...
import copy from typing import ( Callable, List, Tuple, Optional, Union, Iterator, Iterable, TYPE_CHECKING, ) import uuid if TYPE_CHECKING: import pyarrow import ray from ray.data.context import DatasetContext from ray.data.block import Block from ray.data.impl.block_list import Bl...
#!flask/bin/python import json from functools import wraps from flask import Flask, jsonify, redirect, request, render_template, url_for, abort, Response import os import re from collections import OrderedDict os.chdir(os.path.abspath(os.path.dirname(__file__))) import requests try: from requests import HTTPBasicAu...
# Copyright (c) Facebook, Inc. and its affiliates. # # This source code is licensed under the MIT license found in the # LICENSE file in the root directory of this source tree. import os import os.path as osp import gc import logging import numpy as np import json from omegaconf import OmegaConf import torch.nn as nn...
import json import threading import sublime import os import time import random from . import text from . import settings as g_settings from .console_write import console_write from .package_io import package_file_exists, read_package_file from .settings import preferences_filename, pc_settings_filename, load_list_s...
import colorsys import cv2 import numpy as np import os import pickle import logging from PIL import Image import pkg_resources import pytesseract import regex from .simpleocr_utils.segmentation import segments_to_numpy from .simpleocr_utils.feature_extraction import SimpleFeatureExtractor TESSDATA_DIR = os.path.dirn...
#!/usr/bin/python # -*- coding: utf-8 -*- import logging import operator import os import os.path import numpy from PIL import Image logger = logging.getLogger('filehander') class ProcessImg(object): def get_data(self, imgPath): try: img_array = self.process_img(imgPath) ...
# Copyright (c) 2018 The Regents of the University of Michigan # and the University of Pennsylvania # # 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...
########################################### # Project: CMSIS DSP Library # Title: node.py # Description: Node class for description of dataflow graph # # $Date: 29 July 2021 # $Revision: V1.10.0 # # Target Processor: Cortex-M and Cortex-A cores # ------------------------------------------------...
"""Test hook that runs shard splits continuously.""" import copy import random import threading import time import uuid import bson import pymongo.errors from buildscripts.resmokelib import errors from buildscripts.resmokelib.testing.fixtures import interface as fixture_interface from buildscripts.resmokelib.testing...
# -*- coding: utf-8 -*- """ Created on Fri Jan 24 15:41:16 2020 @author: Mark """ import tkinter import tkinter.ttk as tk import matplotlib.pyplot as plt from matplotlib.backends.backend_tkagg import FigureCanvasTkAgg from matplotlib.backend_bases import MouseEvent, LocationEvent from tkinter import filedialog from tk...
''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''' \file genScanNetData.py \brief Code to train a segmentation network on the ScanNet dataset. \copyright Copyright (c) 2018 Visual Computing group of Ulm University, Germany. See the LICENSE file at the top-level...
#!/usr/bin/env python '''Decide what ubxlib testing to do based on a Github pull request.''' import sys # for exit() import argparse from time import sleep import os # For sep and getcwd() and makedirs() from signal import signal, SIGINT, SIG_IGN # for signal_handler from multiprocessing import Manager ...
# pylint: disable=C0302, C1802, C0209, R1705, W0201 import os, resource from typing import Any, List, Optional, Tuple, Union import numpy as np from maddness.util.least_squares import ( # type: ignore[attr-defined] _XW_encoded, encoded_lstsq, sparse_encoded_lstsq, ) from maddness.util.hash_function_helper...
"""Clean up Class types.""" import weakref from itertools import count from ovld import ovld from . import xtype from .abstract import ( ANYTHING, TYPE, VALUE, AbstractArray, AbstractClassBase, AbstractDict, AbstractError, AbstractExternal, AbstractFunctionBase, AbstractHandle...
################################################################################################### # # ComptonTrackIdentification.py # # Copyright (C) by <NAME>, <NAME>, <NAME>, and <NAME>. # All rights reserved. # # Please see the file LICENSE in the main repository for the copyright-notice. # #######################...
#!/usr/bin/env python # Distributed under the MIT License. # See LICENSE.txt for details. import numpy as np import matplotlib.pyplot as plt from mpl_toolkits.mplot3d import Axes3D from mpl_toolkits.mplot3d.art3d import Poly3DCollection plt.rcParams['figure.figsize'] = (4, 4) plt.rcParams['font.size'] = 10 # higher...
from __future__ import absolute_import, division """ Modules for using Caterpillar-GAMMA data """ import numpy as np import itertools from scipy import interpolate, optimize from NuPyCEE import omega, sygma, stellab from JINAPyCEE import gamma, omega_plus from . import plot, calc #### Define some element informat...
# -*- coding: utf-8 -*- import json from beem.instance import shared_blockchain_instance from beemgraphenebase.py23 import bytes_types, integer_types, string_types, text_type from .account import Account from .amount import Amount from .exceptions import WitnessDoesNotExistsException from .blockchainobject import Block...
import numpy as np import lasagne import theano import sys from lasagne import layers from lasagne.nonlinearities import sigmoid, rectify, leaky_rectify, identity from data_aug_necrosis import data_aug sys.path.append('..') from common.batch_norms import batch_norm from common.shape import ReshapeLayer # Parameters...
# Copyright 2019 Uber Technologies, 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 # # Unless required by applica...
''' This repository is used to implement all blocks and tools for Efficient SR @author <NAME> from SIAT <NAME> from SIAT ''' from functools import partial import torch import torch.nn as nn import math import torch.nn.functional as F from distutils.version import LooseVersion # 1*1卷积使用nn.Linear实现 class Dept...
#%% # import needed liraries import numpy as np import pandas as pd import pycountry_convert as pc # %% #read the original csv file import os os. chdir("C:\\Users\\malakm\\Documents\\Gwu\DataVisualization\\Final Project") dirpath = os.getcwd() # print("current directory is : " + dirpath) print(dirpath) #%% #Read th...
#!/usr/bin/env python3 # -*- coding: utf-8 -*- # Copyright © 2016-2017 Stella/AboodXD # Supported formats: # -RGBA8 # -RGB10A2 # -RGB565 # -RGB5A1 # -RGBA4 # -L8/R8 # -L8A8/RG8 # -BC1 # -BC2 # -BC3 # -BC4U # -BC4S # -BC5U # -BC5S # Feel free to include this in your own program if you want, just give cr...
############################################################################## # # Copyright (c) 2001, 2002 Zope Foundation and Contributors. # All Rights Reserved. # # This software is subject to the provisions of the Zope Public License, # Version 2.1 (ZPL). A copy of the ZPL should accompany this distribution. # TH...
from __future__ import print_function from __future__ import unicode_literals from builtins import str import os import sys import subprocess import string import argparse from time import gmtime, strftime version = 'v2.0' print('createImageSeq {}'.format(version)) print('python {}'.format(sys.version)) ...
import json from couchdbkit import ResourceNotFound from collections import OrderedDict from django.contrib import messages from django.core.urlresolvers import reverse from django.http import HttpResponseBadRequest, HttpResponseRedirect, Http404, HttpResponse from django.shortcuts import render from django.utils.deco...
import logging from urllib.parse import parse_qs, urljoin import requests from .matching_rule import (RuleFailed, fold_type, nice_type, rule_matchers_v2, rule_matchers_v3) from .parse_header import parse_header from .paths import format_path log = logging.getLogger(__name__) log.setLevel(...
#!/usr/bin/env python3 # parse the _variables file and write the set of functions that will # define the indices. We write two files with the following functions: # # 1. set_indices.F90: # # * ca_set_auxiliary_indices: the auxiliary state information # # * ca_set_conserved_indices: the conserved state # # * ...
import tld from django.db import models from django.conf import settings from django.db.models import Q from django.utils.translation import ugettext_lazy as _ from django.contrib.auth.models import User from django.urls import reverse from django.core.exceptions import ValidationError from django.contrib.contenttypes...
import numpy as np import scipy.ndimage from astropy.io import fits from astropy.convolution import convolve,convolve_fft from astropy import wcs import warnings from astropy.convolution import Gaussian2DKernel,Gaussian1DKernel import itertools import copy import contextlib import __builtin__ from astropy import log f...
# # Description: The Parser class. # # change history: # date defect# person comments # -------------------------------------------------------------------------------------------------------------------- # 2019-05-20 ******** Huy.Nguyen create file # # @author: Huy.Nguye...
#!/usr/bin/python # -*- coding: UTF-8 -*- import json import numpy as np from IPython import embed import os from collections import OrderedDict import pandas as pd from warnings import warn def sigm_tf(x): return 1./(1 + np.exp(-1 * x)) #def sigm(x): # return 2./(1 + np.exp(-2 * x)) - 1 def flatten(l): re...
import base64 import datetime from email.mime.text import MIMEText import os import pyperclip import requests import selenium.common.exceptions from selenium import webdriver import smtplib import time from tinydb import TinyDB, Query from webdriver_manager.chrome import ChromeDriverManager class _OpenSeaTransactionO...
import os import sys import re import time import yaml import fileinput import distutils.spawn from git import Repo import mysql.connector import colorama from colorama import Fore, Style from mysql.connector import Error, errorcode from migrations import spell_blobs_to_spell_table from migrations import unnamed_flags ...
#!/usr/bin/env python3 # Copyright (c) Facebook, Inc. and its affiliates. # All rights reserved. # # This source code is licensed under the BSD-style license found in the # LICENSE.txt file in the root directory of this source tree. import logging import multiprocessing as mp import queue import time import traceback...
from django.db import models from django.utils import timezone from django.contrib.auth.models import User from django.urls import reverse from taggit.managers import TaggableManager from mptt.models import MPTTModel, TreeForeignKey, TreeManyToManyField,TreeOneToOneField from django.utils.translation import ugettext_la...
import random import numpy as np from sortedcontainers import SortedSet from queue import Queue from constants import NUM_COLS, NUM_ROWS, X, Y, INF, ONE_PROBABILITY, ZERO_PROBABILITY, STARTING_POSITION_OF_AGENT, \ FLAT_FALSE_NEGATIVE_RATE, HILLY_FALSE_NEGATIVE_RATE, FOREST_FALSE_NEGATIVE_RATE def check(current_...
########## İŞ PROBLEMİ ########## # Her bir eve ait özelliklerin ve ev fiyatlarının bulunduğu veriseti kullanılarak, farklı tipteki evlerin fiyatlarına ilişkin bir makine öğrenmesi #projesi gerçekleştirilmek istenmektedir. ########## VERİ SETİ HİKAYESİ ########## # Ames, Lowa’daki konut evlerinden oluşan bu veriseti ...
#!/usr/bin/python # Copyright 2012 Google 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 # # Unless required by appli...
from __future__ import print_function import io import os import ast import sys import warnings import unicodedata __all__ = [ "pprint", "pformat", "isreadable", "isrecursive", "saferepr", "PrettyPrinter", ] # # Py2/Py3 compatibility stuff # try: from collections import OrderedDict, defaultdict, Counte...
""" Provides a sparse representation of volumetric and/or surface data The data can be either defined per voxel/vertex (:class:`DenseCifti`) or per parcel (`class:`ParcelCifti`). The data can be read from NIFTI, GIFTI, or CIFTI files. Non-sparse volumetric or surface representations can be extracte. """ from nibabel....
# -*- coding: utf-8 -*- from flask_wtf import FlaskForm, recaptcha from flask_wtf.recaptcha import RecaptchaField import wtforms from wtforms import RadioField, SelectField, StringField, PasswordField, BooleanField, SubmitField, IntegerField, TextAreaField, SelectMultipleField, FieldList, FileField, MultipleFileField,...
#!/usr/bin/env python3 import gi gi.require_version('Rsvg', '2.0') from gi.repository import Rsvg import cairo import math import subprocess import shutil import os import sys SCALE = 1 WIDTH = 1920 HEIGHT = 1080 HEAD_CENTER = [608, 437] HEAD_ROTATION = 10.0 * math.pi / 180.0 HEAD_ROTATION_TIME = 1.0 FRAME_RATE = ...
""" .. module:: get_data_iue :synopsis: Returns IUE spectral data as a JSON string. .. moduleauthor:: <NAME> <<EMAIL>> """ import collections import math from operator import itemgetter from astropy.io import fits from data_series import DataSeries import numpy from parse_obsid_iue import parse_obsid_iue from sci...
""" estimator.py ================================================================ This module implements the Estimator class. It is used to estimate causal effects from the data and the causal graph. The module contains a wrapper around the core functionality of the DoWhy library and some utiliy methods for tra...
""" Options and configs. """ from itertools import product, islice from collections import OrderedDict from copy import copy, deepcopy import numpy as np from .. import Config, Sampler from ..named_expr import eval_expr class KV: """ Class for value and alias. Is used to create short and clear alias for some Pyt...
import enum import random from attr import attrs, attrib, validators, Factory from automat import MethodicalMachine from multiset import Multiset @attrs(slots=True) class Player: name = attrib() hand = attrib(default=Factory(Multiset)) tokens = attrib(default=Factory(list)) seals = attrib(default=0) ...
import random import torch import torch.nn as nn import torch.nn.functional as F from torch.autograd import Variable import numpy as np import math as m from .box_3d import Box3d import cv2 def sample(calib, scale, f_h, f_w, box_left, poses, borders): ''' Return sample pixel for the left image in the valid RoI regi...
#!/usr/bin/env python # coding=utf-8 # Copyright 2021 The HuggingFace Team 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-...
import copy from enum import Enum import numpy as np import gym from gym import spaces from gym.envs.robotics import hand_env from gym.envs.robotics.hand.reach import FINGERTIP_SITE_NAMES from gym.envs.robotics.hand.move import HandPickAndPlaceEnv, FINGERTIP_BODY_NAMES from gym.envs.robotics.utils import reset_mocap2b...
import random from torch import nn import torch import numpy as np import pickle from pprint import pprint from transformers import BertTokenizer import sys import sqlite3 import numpy as np import json from features.property import build_vocab as build_prop_vocab from features.surface import build_vocab as build_surf...
# Copyright (c) 2021 Qualcomm Technologies, Inc. # All Rights Reserved. import torch import torch.nn as nn import torch.nn.functional as F import numpy as np import gpytorch# import gpytorch.kernels as kernels import matplotlib.pyplot as plt import torchvision.utils as vutils from oil.utils.utils import expor...
#!/usr/bin/env python # Copyright 2014-2018 The PySCF Developers. 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 # # U...
############################################################################## # # Copyright (c) 2003 Zope Foundation and Contributors. # All Rights Reserved. # # This software is subject to the provisions of the Zope Public License, # Version 2.1 (ZPL). A copy of the ZPL should accompany this distribution. # THIS SOF...
import os, sys, hashlib, json, fnmatch from igf_data.illumina.samplesheet import SampleSheet from igf_data.igfdb.baseadaptor import BaseAdaptor from igf_data.igfdb.igfTables import Seqrun from igf_data.igfdb.seqrunadaptor import SeqrunAdaptor from igf_data.igfdb.collectionadaptor import CollectionAdaptor from igf_data....
#!/usr/bin/env python """ Convert remote U.S. Census 2010 data to local tab-separated text files. Run with --help flag for usage instructions. """ from sys import stdout, stderr, argv from os import SEEK_SET, SEEK_CUR, SEEK_END from time import time from csv import reader, DictWriter, DictReader from os.path import b...
#!/usr/bin/env python3 import os import cv2 as cv2 import numpy as np import argparse import logging import sys import json import export import util import logging from rich.logging import RichHandler from pathlib import Path LOG_LEVELS = ["DEBUG", "INFO", "WARNING", "ERROR", "CRITICAL"] DEFAULT_LOG_LEVEL = "INFO" ...
from __future__ import division import logging import os from time import time, sleep import shutil import glob from sys import version_info import traceback from sqlalchemy.sql import (select, desc) import settings from skyline_functions import (mkdir_p, get_memcache_metric_object) from features_profile import calc...
# Copyright (c) 2009 <NAME>. See LICENSE for details. """ Low-level utilities. """ from __future__ import absolute_import, print_function, division import functools import pprint import sys import traceback from greenlet import getcurrent from gevent._compat import perf_counter from gevent._compat import PYPY from ...
# Copyright lowRISC contributors. # Licensed under the Apache License, Version 2.0, see LICENSE for details. # SPDX-License-Identifier: Apache-2.0 from typing import Dict, Optional, Sequence import libcst as cst from libcst._nodes.internal import CodegenState, visit_required def make_aref(name: str, idx: cst.BaseEx...
# # process_species_by_dataset # # We generated a list of all the annotations in our universe; this script is # used to (interactively) map them onto the GBIF and iNat taxonomies. Don't # try to run this script from top to bottom; it's used like a notebook, not like # a script, since manual review steps are required. ...
import numpy as np import time import torch as to import torch.nn as nn from numpy.random import binomial from tabulate import tabulate import pyrado from pyrado.environment_wrappers.action_delay import ActDelayWrapper from pyrado.environments.base import Env from pyrado.environments.quanser.base import RealEnv from p...
""" Module containing base conformal predictor classes, model-type specific conformal predictor classes will inherit from these base classes. """ import pandas as pd import numpy as np import warnings from abc import ABC, abstractmethod from typing import Callable, Union, Any, List, Dict, Optional from ._version im...
import math from .._util import gradient from ..potentialforms import polynomial, exp_spline class Spline_Point(object): """Class for the attachment and detachment points of potential objects and region to be splined""" def __init__(self, potential_function, r): """Create object which evaluates the value a...
import torch import torch.nn as nn import torch.nn.functional as F import copy from functions_utils import * def Kron_BFGS_update(data_, params): i = params['i'] numlayers = params['numlayers'] data_['model_homo_grad_used_torch'] = get_homo_grad(data_['model_grad_used_torch'], params) delta = [...
import os import sys import time import math import torch.nn.functional as F from datetime import datetime import random import logging from collections import OrderedDict import numpy as np import cv2 import torch from torchvision.utils import make_grid from shutil import get_terminal_size import yaml try: from y...
from datetime import datetime from corehq.apps.sms.models import (CallLog, INCOMING, OUTGOING, MessagingSubEvent, MessagingEvent) from corehq.apps.sms.mixin import VerifiedNumber, MobileBackend from corehq.apps.sms.util import strip_plus from corehq.apps.smsforms.app import start_session, _get_responses from corehq...
# test_web.py -- Tests for the git HTTP server # Copyright (C) 2010 Google, Inc. # # Dulwich is dual-licensed under the Apache License, Version 2.0 and the GNU # General Public License as public by the Free Software Foundation; version 2.0 # or (at your option) any later version. You can redistribute it and/or # modify...
# Copyright (c) 2015-2020 Vector 35 Inc # # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files (the "Software"), to # deal in the Software without restriction, including without limitation the # rights to use, copy, modify, merge, publish, ...
from collections import namedtuple import operator import numpy as np import parmed as pmd import mbuild as mb from mbuild.utils.sorting import natural_sort from mbuild.utils.geometry import coord_shift from mbuild.utils.io import import_ hoomd = import_("hoomd") hoomd.data = import_("hoomd.data") __all__ = ["to_ho...
# Converts a Rule of Rose (PS2) I3D model file (.MDL) to OBJ. import argparse import argparse import math import numpy as np import os import sys import struct parser = argparse.ArgumentParser(description=''' Converts a Rule of Rose (PS2) I3D model file (.MDL) to OBJ. ''') def err(msg): print("Error: {}".format(...
# -*- coding: utf-8 -*- import asyncio from .api import ( default_api_dict, API, KINDS, KIND_VALS, KIND_KEYS, OFFIC, CHI, STAR, OFFICS, UNOFFICS, ) from .api_toolkit import rearrange_params, _rearrange_args from .base_classes import AsyncInitObject, AsyncWith, SyncWith from .cache_utils import iscorofunc from...
#!/usr/bin/env python import numpy as np import sys, getopt default_interval = 10. comment_chars = ('#', '*', ';') def usage(): print('Usage: {0:s} [OPTION...]'.format(sys.argv[0])) print('') print('Options:') print(' --interval=n measurement interval in degrees (default: {0:g})'.format(default_inter...
import collections import distutils.version import os import queue import sqlite3 import traceback import time from hydrus.core import HydrusDBBase from hydrus.core import HydrusConstants as HC from hydrus.core import HydrusData from hydrus.core import HydrusEncryption from hydrus.core import HydrusExceptions from hyd...
import pandas as pd import numpy as np import pickle from sklearn.externals import joblib from helpers.analysis.classification_report import calculate_precision_recall from sklearn.metrics import confusion_matrix from sklearn.model_selection import GridSearchCV from gensim import corpora, models, similarities from gens...
import os import os.path as osp import sys import torch import torch.utils.data as data import torchvision.transforms as transforms import cv2 import numpy as np from .config import cfg from pycocotools import mask as maskUtils import contextlib import io import logging import time def get_label_map(): if cfg.dat...
#!/usr/bin/env python3 # coding: utf-8 import inspect import sys import dis import traceback from machaon.core.message import InternalMessageError from machaon.cui import collapse_text, composit_text from machaon.core.symbol import full_qualified_name class ErrorObject(): """ プロセスの実行時に起きたエラー。 """ def...
import re import json import csv import warnings from binascii import unhexlify from mnemonic import Mnemonic from collections import OrderedDict from multiprocessing import Pool as process from functools import partial from .bip32 import BIP32Key from .func import hexlify, MoNscript, hybridmethod from .address impo...
### Authors: <NAME> (CEA Saclay), <NAME> (CEA Saclay) ### Contact: <EMAIL>, <EMAIL> ### ### Note: ### Please see https://desi.lbl.gov/trac/attachment/wiki/TargetSelectionWG/TSTeleconMinutes/DESITS210113/QSO_completeness_Ravoux_13_01_2021_v2.pdf for details about the MgII fitter ### ### the "optimal"/chosen parameters a...
import re import jsonschema import json import copy from anchore_engine.services.policy_engine.engine.policy.exceptions import ( RequiredParameterNotSetError, ValidationError, ParameterValidationError, ) from anchore_engine.subsys import logger class InputValidator(object): __validator_description__ ...
from experience_replay import PrioritizedExperienceReplay import numpy as np from numpy import clip from numpy.random import rand, randint from atari_preprocessing import ProcessedAtariEnv from deep_q_networks import DeepQNetwork import tensorflow as tf from tensorflow import math argmax = math.argmax import time impor...
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ MakeHuman 3D Transformation functions. **Project Name:** MakeHuman **Product Home Page:** http://www.makehumancommunity.org/ **Github Code Home Page:** https://github.com/makehumancommunity/ **Authors:** <NAME>, <NAME>, <NAME> **Copyright(c):** ...
""" @file @brief One class which visits a syntax tree. """ import pprint import numpy class CodeTranslator: """ Class which converts a Python function into something else. It must implements methods *visit* and *depart*. """ def __init__(self, visitor): """ @param visitor...
import networkx as nx from networkx.algorithms import swap from networkx.algorithms.cycles import simple_cycles import numpy as np import time from collections import defaultdict from copy import deepcopy from matplotlib import pyplot as plt from typing import Dict, List, Tuple from arct.permutation.general import Ap...
import inspect import numpy as np from primitives_ubc.regCCFS.src.utils.commonUtils import sVT from primitives_ubc.regCCFS.src.utils.commonUtils import is_numeric from primitives_ubc.regCCFS.src.utils.commonUtils import fastUnique from primitives_ubc.regCCFS.src.utils.commonUtils import queryIfColumnsVary from primitiv...
import copy import pandas as pd import yaml from sqlalchemy import create_engine, text from deprecated import deprecated import data.dataTransform as dataTransform def getEngine(filePath): """ Starts the engine used to query the database. :param filePath: path to .yaml file with database parameters ...
from typing import Any, Optional, Union, Sequence, Callable, Iterator, List from functools import partial, wraps from io import IOBase import copy import hashlib import itertools import json import multiprocessing as mp import os import pickle import shutil import string import subprocess import time import uuid import...
# The MIT License (MIT) # # Copyright (c) 2016 Skorpio # # Permission is hereby granted, free of charge, to any person obtaining a # copy of this software and associated documentation files (the "Software"), # to deal in the Software without restriction, including without limitation # the rights to use, copy, modify, ...
# -*- coding: utf-8 -*- import contextlib import json import os import re import unittest from configparser import ConfigParser from template import Template from template.util import TemplateException from uuid import uuid4 from KBaseReport.KBaseReportImpl import KBaseReport from KBaseReport.utils.TemplateUtil impor...
# -*- coding: utf-8 -*- """ Assessments - Controller """ module = request.controller resourcename = request.function if module not in deployment_settings.modules: raise HTTP(404, body="Module disabled: %s" % module) # ============================================================================= def index():...
""" MongoClient ==================================== Create a MongoClient proxy with command line friendly API calls. """ import pprint import sys from functools import wraps # import pprint import pymongo from pymongoshell.pager import Pager, FileNotOpenError from pymongoshell.version import VERSION from pymongos...
import os import csv import wave import evfuncs import numpy as np import scipy.io from ..koumura import parse_xml # fields that must be present for each syllable that is annotated. # these field names are used below by annot_list_to_csv and csv_to_annot_list # but defined at top-level of the module, since these fie...
import cv2 import torch import torch.backends.cudnn as cudnn import matplotlib.pyplot as plt from collections import defaultdict from yolact_edge.data.config import cfg, set_cfg from yolact_edge.yolact import Yolact from yolact_edge.utils.augmentations import FastBaseTransform, BaseTransform from yolact_edge.utils impo...
# Copyright (c) 2010-2014 Lazy 8 Studios, LLC. # All rights reserved. ''' All URLs used by this sytem should be defined in this module. ''' import urllib, urlparse from front import VERSION from front.lib import utils from user_agents import parse TOOLS_ABSOLUTE_ROOT = None STRIPE_CHARGE_URL = None def init_module(ab...
"""Sensor platform for garbage_collection.""" from homeassistant.helpers.entity import Entity import homeassistant.util.dt as dt_util import holidays import logging import locale from datetime import datetime, date, timedelta from homeassistant.core import HomeAssistant, State from typing import List, Any _LOGGER = lo...