text
stringlengths
8.04k
46.5k
## \file half_edge_mesh.py # Half edge mesh data structure. # Classes for half edge mesh. # This is an implementation of a half edge mesh. # # \mainpage Half Edge Mesh (Python implementation): # The mesh is stored in HALF_EDGE_MESH_BASE, including lists # of all the vertices, half edges and cells in the mesh. # - Each ...
### Calculates the melt pond fraction from MODIS imagery using the algorithm ### developed by Rosel (and implemented in rosel_alg.py) ## <NAME> # 9/18/17 import pickle import csv import os import sys import datetime import calendar import numpy as np import gdal from sklearn.ensemble import RandomForestRegressor # ...
from kivy.app import App from kivy.uix.button import Button from kivy.uix.anchorlayout import AnchorLayout from kivy.logger import Logger from kivy.lang.builder import Builder from kivy.properties import ( BooleanProperty, ListProperty, NumericProperty, ObjectProperty, OptionProperty, StringProp...
#!/usr/bin/env python # ---------------------------------------------------------------- # ANTUR: PAWs to DAAD Transcompiler # Copyright (C) 2019 <NAME>, Pond Soft. # http://8bitgames.itch.io # # This source code is licensed under the BSD 2-Clause License. # -------------------------------------------------------------...
import sys import os import tempfile from multiprocessing import Pool import datetime import numpy as np import matplotlib.style import matplotlib matplotlib.use('Agg') from matplotlib.figure import Figure # To revert back to matplotlib 1.0 style matplotlib.style.use('classic') from pylinac.core.roi import bbox_cente...
#!/usr/bin/env python3 # # ## CMSSW/DQM/SiStripMonitorClient/scripts/getRunInfo.py # # For a given run, this script collects information useful for SiStrip DQM # from web sources. # Questions and comments to: <EMAIL> from __future__ import print_function import sys import os import string import urllib import ti...
# coding: utf8 from __future__ import division import os, time, numbers, math, io, warnings, sys import pygame import requests import cache from .utils import cached_property, get_resource # colors from http://clrs.cc/ color_map = { 'aqua': (127, 219, 255), 'blue': (0, 116, 217), 'navy': (0, 31, 63), '...
from objectpath import Tree import random from .Context import ContextManager from .utils.exceptions import SchemaException,IndexingError import os import uuid import json import datetime import pickle as p import copy import uuid class Bot(): """ Whenever a new bot is created it will inherit from the Bot cl...
import tensorflow as tf import tensorflow_addons as tfa import numpy as np import math as m from time import time from datetime import datetime from os import path, makedirs from PIL import Image import logging from tqdm import tqdm from models.net import Net from data.dataloader import DataIterator class Metrics: ...
from math import pi, sqrt import itertools import random def isclose(a, b, rel_tol=1e-09, abs_tol=0.0): return abs(a - b) <= max(rel_tol * max(abs(a), abs(b)), abs_tol) """ Simple geometric shape models. >>> Point(1, 1) <Point x: 1, y: 1> >>> p1 = Point(2, 2) >>> p2 = Point(3, 2) >>> p1.distance_to(p2) 1.0 """...
#! /usr/bin/env python #-****************************************************************************** # # Copyright (c) 2012-2014, # Sony Pictures Imageworks Inc. and # Industrial Light & Magic, a division of Lucasfilm Entertainment Company Ltd. # # All rights reserved. # # Redistribution and use in source and bina...
import os from os import system import platform from colorama import Fore import requests import json import math from asyncio import sleep, get_event_loop 'TABLE INFO(APIKey, CriticalWins, WarningWins, CriticalNWLVL, WarningNWLVL)' loop = get_event_loop() client = '' uuids = {} async def recieve_api_key(api_key): ...
# # Pipeline processing using Dask # import logging import socket import time import numpy from astropy import units as u from astropy.coordinates import SkyCoord from data_models.polarisation import PolarisationFrame from workflows.arlexecute.imaging.imaging_arlexecute import invert_list_arlexecute_workflow, \ w...
import os import unittest import sys import signal import time from plumbum import (local, LocalPath, FG, BG, TF, RETCODE, ERROUT, CommandNotFound, ProcessExecutionError, ProcessTimedOut) from plumbum.lib import six, IS_WIN32 from plumbum.fs.atomic import AtomicFile, AtomicCounterFile, PidFile from ...
#!/usr/bin/env python """ pedigree_analysis.py: run the UDP analysis workflow on a pedigree processed by the 'toil-vg pedigree' subcommand workflow. """ import argparse, sys, os, os.path, errno, random, subprocess, shutil, itertools, glob, tarfile import doctest, re, json, collections, time, timeit import logging, lo...
# -*- coding: utf-8 -*- """ .. module:: ETFL :platform: Unix, Windows :synopsis: flux balance models accounting for expression, thermodynamics, and resource allocation constraints .. moduleauthor:: ETFL team ME-related Reaction subclasses and methods definition """ import pandas as pd import numpy as np from...
""" This module implements the search-based refactoring with various search strategy using pymoo framework. ## Changelog ### version 2 1. Crossover function is added. 2. Termination criteria are added. 3. Computation of highly trade-off points is added. 4. Tournament-selection is added. 5. _evaluat...
""" This module is a pared down replacement for databricks-cli functionality. It replicates some of the functionality of the databricks-cli package, including using the same configuration file. However, it interacts solely with the Databricks REST API, without using the databricks-cli package at all. """ from __future_...
from __future__ import print_function import random import math import numpy as np from sklearn.linear_model import LogisticRegression import tensorflow as tf from .classify import Classifier, read_node_label import matplotlib.pyplot as plt from sklearn import manifold, datasets from pandas import DataFrame from sklear...
import numpy as np from collections import defaultdict import os from tqdm import tqdm from ai2io import * import copy import cv2 def save_detections_to_deep_equations_json(output_filename, all_detections, classes): objects = {} json_out = { 'classes': classes } for image_id, bb_by_class in al...
import copy import datetime import hashlib import importlib import inspect import functools import json import logging import os, stat, errno import pickle import shutil from typing import Dict, List, Union, Callable from types import ModuleType import sys import networkx as nx import yaml from networkx.readwrite.json...
from instaloader import Instaloader import getpass import json import lzma import os import platform import re import shutil import string import sys import tempfile from contextlib import contextmanager, suppress from datetime import datetime, timezone from functools import wraps from hashlib import md5 from io impor...
###################### # ADMIN BUS CREATION # ###################### from tkinter import * from tkcalendar import * from tkinter import messagebox from tkinter import ttk import json from systems import system from modules import auth, seatSelection ## Import root from system.py root = system.root #################...
import time import numpy as np import tensorflow as tf from stable_baselines import logger from stable_baselines.common import (ActorCriticRLModel, SetVerbosity, TensorboardWriter, explained_variance, tf_util) from stable_baselines.common.math_u...
import abc from dataclasses import dataclass from io import BytesIO import networkx as nx import pandas as pd import pathlib from datetime import timedelta from typing import Any, Dict, List, Optional, Set, Tuple import yaml import warnings import zipfile import bibtexparser as bp from . import checksum_validator fro...
#!/usr/bin/env python3 import ctypes import os import configparser os.environ['PYGAME_HIDE_SUPPORT_PROMPT'] = "hide" import pygame import i3ipc import copy import signal import sys import traceback import pprint import time import argparse import math import logging import timing from threading import Thread from PIL...
import numpy try: import scipy.sparse _scipy_available = True except ImportError: _scipy_available = False import cupy from cupy.core import _accelerator from cupy.cuda import cub from cupy import cusparse from cupyx.scipy.sparse import base from cupyx.scipy.sparse import compressed from cupyx.scipy.spars...
import pandas as pd import numpy as np import seaborn as sns import matplotlib.pyplot as plt from ast import literal_eval from datetime import datetime train = pd.read_csv('train.csv') test = pd.read_csv('test.csv') sub=test.copy() print (train.shape) print (test.shape) # In[30]: train.isnull().sum() # In[31]: ...
#!/usr/bin/env python3 """btd_sched.py: schedule music for Rivendell. This scheduler is intimately tied to Rivendell. It uses a "Reference" Service (Grid, Clocks, and Events) and an "Implementation" Service (Grid, Clocks, and Events) to generate Log "merge files" (Data Import files). The Reference Service is a "normal...
# -*- coding: utf-8 -*- # # QAPI schema parser # # Copyright IBM, Corp. 2011 # Copyright (c) 2013-2019 Red Hat Inc. # # Authors: # <NAME> <<EMAIL>> # <NAME> <<EMAIL>> # <NAME> <<EMAIL>> # <NAME> <<EMAIL>> # # This work is licensed under the terms of the GNU GPL, version 2. # See the COPYING file in the top-level di...
#<NAME> (lmr) é o único cadastrado como monitor #Senha: 3344 from datetime import * from random import randint import pickle import getpass data_atual = date.today() data_br = '{}/{}/{}'.format(data_atual.day, data_atual.month, data_atual.year) senhas = open('Nome_senha.txt', 'r', encoding='utf8') dias = ('Segunda', ...
import os from typing import List, Optional import albumentations as A import cv2 import numpy as np import pandas as pd import torch from PIL import Image from pytorch_toolbelt.utils import fs from pytorch_toolbelt.utils.catalyst import PseudolabelDatasetMixin from pytorch_toolbelt.utils.torch_utils import tensor_fro...
#!/usr/bin/env python """The various functions that can be used to check results. This module provides all the built-in test assertions of the cleversheep3 test framework. Test assertions tend to follows a common pattern, which is:: failUnless<assertion> (<expect>, <actual>, makeMessage=None, msg=None) But there...
# -*- coding: utf-8 -*- from __future__ import print_function, unicode_literals from escher.quick_server import serve_and_open from escher.urls import get_url from escher.appdirs import user_cache_dir from escher.generate_index import index import os from os.path import dirname, abspath, join, isfile, isdir from wa...
import dexplo as dx import numpy as np from numpy import array, nan import pytest from dexplo.testing import assert_frame_equal, assert_array_equal, assert_dict_list df = dx.DataFrame({'a': [1, 2, 5, 9, 3, 4, 5, 1], 'b': [1.5, 8, 9, 1, 2, 3, 2, 8], 'c': list('abcdefgh'), ...
# Author: <NAME> # Email: <EMAIL> import sklearn.utils as sk import pandas as pd import numpy as np import matplotlib.pyplot as plt import pickle import os from glob import glob from sklearn.ensemble import RandomForestRegressor from sklearn.model_selection import train_test_split, GridSearchCV from collections import...
#!/usr/bin/env python3 import argparse import json import logging import os import re import subprocess import sys import xml.etree.ElementTree as ElementTree class VmDisk: def __init__(self, image=None, size_mb=None): self.image = image self.size_mb = size_mb def __repr__(self): re...
############################################################################ # Copyright (c) 2015-2017 Saint Petersburg State University # Copyright (c) 2011-2015 Saint Petersburg Academic University # All Rights Reserved # See file LICENSE for details. ##################################################################...
import argparse import itertools from tensorboardX import SummaryWriter import torch from torch import nn, optim from torch.optim import lr_scheduler from torch.utils.data import DataLoader from tqdm import tqdm import yaml from bisect import bisect from visdialch.data.dataset import VisDialDataset from visdialch.enc...
""" @author: horta-trc The phenotype_annotations, disease_annotations, gene_annotations, disease_abbreviation_annotations, disease_synonym_annotations and relations_annotations functions were adapted from annotations.py available here: https://github.com/lasigeBioTM/PGR/tree/master/src """ import os ################...
import requests import zipfile import os import io import pandas as pd import googlemaps import json import numpy as np import geojson from polyline.codec import PolylineCodec from datetime import datetime, timedelta from pymongo import MongoClient from pymongo.errors import ServerSelectionTimeoutError import pymongo i...
from __future__ import division import numpy as np from .opencv_ops import load_image from ..messages import Box2D def compute_iou(box, boxes): """Calculates the intersection over union between 'box' and all 'boxes' The variables 'box' and 'boxes' contain the corner coordinates of the left-top corner (...
import pathlib import numpy as np from scipy import stats import random import matplotlib.pyplot as plt from mpi4py import MPI comm = MPI.COMM_WORLD rank = comm.Get_rank() import pybitup.distributions class BayesianPosterior(pybitup.distributions.ProbabilityDistribution): def __init__(self, prior, likeliho...
import numpy as np from maya import cmds from maya.api import OpenMaya, OpenMayaAnim def run(mesh, influences, ids=None, weights_pp=None, falloff_distance=0.5, interp_type='linear', ): """ Generate the weights, and apply them in one step. See generate_weig...
# Copyright (c) 2013 OpenStack Foundation. # 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...
# Copyright 2020-2021 Huawei Technologies Co., Ltd # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agre...
import copy import json import sys import os import random import importlib.resources from game.common.hitbox import Hitbox from game.common.items.consumable import Consumable from game.common.items.upgrade import Upgrade from game.common.wall import Wall from game.common.items.gun import Gun from game.common.items.ite...
""" Views for the app """ from __future__ import absolute_import from __future__ import division import os import uuid from auth import constants from auth.forms import \ CategoryForm, \ CountryForm, \ CurrencyForm, \ GatewayForm, \ LoginVoucherForm, \ MyUserForm, \ NetworkForm, \ Ne...
"""This module provides access to the Vicon and biplane fluoroscopy filesystem-based database.""" from pathlib import Path import itertools import functools import numpy as np import pandas as pd import quaternion from lazy import lazy from typing import Union, Callable, Type, Tuple from biokinepy.cs import ht_r, chan...
"""Universal build utilities.""" import argparse import os import re import shutil import subprocess import sys from typing import Dict, List, Match, Optional, Tuple, Union from universal_build._utilities import DashInsensitiveDict _ALLOWED_BRANCH_TYPES_FOR_RELEASE = ["release", "production"] _MAIN_BRANCH_NAMES = ["...
""" This software was developed by the University of Tennessee as part of the Distributed Data Analysis of Neutron Scattering Experiments (DANSE) project funded by the US National Science Foundation. See the license text in license.txt copyright 2009, University of Tennessee """ import wx import math try: import...
# to run: # python source/plaque_location_pipeline.py -c ~/Desktop/smallp.jpg -d ~/Documents/real_world_images/small_plaques -s ~/Documents/plaque_grab_3-4/simple_roi # python source/plaque_location_pipeline.py -c ~/Desktop/smallp.jpg -d ~/Documents/real_world_images/small_plaques -s ~/Documents/plaque_grab_3-4/east_ro...
# !/usr/bin/env python3 # -*-coding:utf-8-*- # @file: main_GCNet.py # @brief: # @author: <NAME>, <EMAIL>, <EMAIL> # @version: 0.0.1 # @creation date: 07-01-2020 # @last modified: Mon 20 Jan 2020 03:09:30 AM EST from __future__ import print_function from PIL import Image import matplotlib.pyplot as plt import sys impor...
import os import copy import argparse import re import math import numpy as np import cv2 import pytesseract import maskrcnn.mrcnn.model as modellib from maskrcnn.samples.coco import coco from maskrcnn.mrcnn import utils from fuzzywuzzy import process MODEL_DIR = os.path.join('./', "logs") COCO_MODEL_PAT...
# Functions for various plotting features of ACME analyzer # these are called from analyzer.py import os import logging import multiprocessing from functools import partial import numpy as np import pandas as pd import matplotlib.pyplot as plt from PIL import Image from acme_cems.lib.utils imp...
from typing import Iterable import torch import torch.nn as nn import torch.nn.functional as F from kaolin.models.PointNet2 import separate_xyz_and_features, PointNet2GroupingLayer, furthest_point_sampling, fps_gather_by_index, three_nn, three_interpolate import kaolin.cuda as ext import kaolin.cuda.furthest_point_...
"""Manual pipetting export functions.""" import re from genologics.entities import Process import clarity_epp.export.utils def samplesheet_purify(lims, process_id, output_file): """Create manual pipetting samplesheet for purifying samples.""" output_file.write('Fractienummer\tConcentration(ng/ul)\taantal ng...
from collections import OrderedDict from datetime import datetime import logging from past.builtins import basestring try: from urllib.parse import urlparse except ImportError: from urlparse import urlparse import pandas as pd import requests import humanize from io import BytesIO from pandas.api.types import ...
# -*- coding: utf-8 -*- #!/usr/bin/env python3 """ Data processing functions for EEG data @author: <NAME> """ import numpy as np import mne from scipy.io import loadmat, savemat import os import pickle import csv from shutil import copyfile import sys import resampy import shutil import urllib.request as request from c...
#!/usr/bin/env python3 # -*- coding: utf-8 -*- # General imports import numpy as np import pandas as pd import sys, gc, time, warnings, pickle, random, psutil # custom imports from multiprocessing import Pool # Multiprocess Runs import warnings warnings.filterwarnings('ignore') import os os.environ["CUDA_V...
import sys import os import platform import glob import logging import operator import multiprocessing as mp import numpy import time # python 3 compatibility from functools import reduce from past.builtins import map sys.path.append('../../') from config import * sys.path.append(scripts_dir) from utils import * from...
#!/usr/bin/env python3 # -*- coding: utf-8 -*- import argparse import json import os import re import stat import sys import tarfile import traceback import zipfile from typing import Any, Dict, Iterable, IO, List, Optional, Tuple, Union import fuse try: import rarfile except ImportError: pass import ratarmo...
import unittest from cpuinfo import * import helpers class MockDataSource(object): bits = '64bit' cpu_count = 8 is_windows = False arch_string_raw = 'x86_64' uname_string_raw = 'x86_64' can_cpuid = False @staticmethod def has_proc_cpuinfo(): return True @staticmethod def has_lscpu(): return True @...
from __future__ import annotations import os import sys import numpy as np import openpyxl import pandas as pd import printj from ortools.sat.python import cp_model from printj import ColorText as ct # from typing import Union class TimeVar: def __init__(self, hours: int, minutes: int): while minutes >...
# -*- coding: utf-8 -*- """ webapp ====== CHANGELOG ========= 0.1.2 / 2021-12-08 ------------------ - changes for Python 3.8 - use add_extension for jinja extensions 0.1.1 / 2021-05-19 ------------------ - change cors header 0.1.0 / 2021-01-16 ------------------ - First Release """ __author__ = "<NAME>" __cop...
# Copyright (c) Facebook, Inc. and its affiliates. # All rights reserved. # # This source code is licensed under the license found in the # LICENSE file in the root directory of this source tree. # import torch import torch.nn as nn import torch.nn.functional as F import torchvision.models as tmodels import numpy as np...
import asyncio import time import youtube_dl from youtubesearchpython import VideosSearch import discord, os import random import requests from bs4 import BeautifulSoup from discord.ext import commands from bot import channelAllow, get_prefix as P, mod, read, write from Organiser import badArg, randomColour...
# -*- coding: utf-8 -*- # Copyright (c) 2017 - for information on the respective copyright owner # see the NOTICE file and/or the repository https://github.com/boschresearch/statestream # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License....
# -*- coding: UTF-8 -*- """ """ from __future__ import absolute_import, print_function import errno import logging import os import os.path import re import six import shutil import time import yaml import urllib3.exceptions from f3utils.dict_tools import merge_dict from f3utils.service_meta import abstractmethod, _S...
#!/usr/bin/python # # The evaluation script for pixel-level semantic labeling. # We use this script to evaluate your approach on the test set. # You can use the script to evaluate on the validation set. # # Please check the description of the "getPrediction" method below # and set the required environment variables as...
import physicl import pyopencl as cl import pyopencl.array as cl_array import numpy.linalg as np_lin import numpy as np import scipy.stats as st import scipy.integrate import copy """ SI definition for speed of light """ c = physicl.Measurement(np.double(299792458), "m**1 s**-1") # Defined here: https://www.bipm.org/...
################################################################################ # # Description: # # This module implements a simple ray tracer. Its features are: # # - Multiple point (white) light sources. # - Multiple coloured objects (spheres, planes). # - Ambient illumination (simulating scattered light)....
################################################################################# # # author: <NAME> < nkarast .at. cern .dot. ch > # # Read and plot environmental parameters # ################################################################################# #######################################################...
from django.conf import settings from django.contrib import messages from django.contrib.sites.shortcuts import get_current_site from django.core.urlresolvers import reverse from django.db.models import Count, Q from django.http import HttpResponseRedirect, Http404, JsonResponse from django.shortcuts import get_object_...
""" A module containing a ProxyAuthenticator a """ import os import atexit import signal import logging import binascii import threading from datetime import datetime from textwrap import dedent from urllib.parse import urlparse import jupyterhub from jupyterhub.spawner import Spawner from jupyterhub.utils import ...
import os, sys, shutil, click, subprocess, time, Bio, cova, pandas # start clock start = time.time() ### commands ### @click.group(chain=True) @click.version_option() @click.option('--indr', help='Full path to the working directory', default=os.getcwd(), type=click.Path()) @click.option('--ncpu', help='Number of CPUs...
import arn_loops as al import numpy as np import scipy.linalg as sl import scipy.stats as ss import warnings r"""A model based on CAR processes for fitting the properties of noise. Our model is that the measured zero-mean noise, :math:`y_i = y\left( t_i \right) - \mu` obeys the stochastic differential equation .. mat...
#!/usr/bin/env python """ Defines the filesystem class used by the ext2 module. """ __license__ = "BSD" __copyright__ = "Copyright 2013, <NAME>" import inspect from uuid import uuid4 from os import path, remove from collections import deque from struct import pack, unpack from time import time from math import ceil f...
# # This file is part of pysnmp software. # # Copyright (c) 2005-2019, <NAME> <<EMAIL>> # License: http://snmplabs.com/pysnmp/license.html # # ASN.1 source http://mibs.snmplabs.com:80/asn1/SNMP-FRAMEWORK-MIB # Produced by pysmi-0.4.0 at Sat Feb 16 11:48:30 2019 # # Parts of otherwise autogenerated MIB has been updated ...
import collections import datetime import json import socket from typing import Dict, List, Optional from bsddb3.db import * from coincurve import PrivateKey, PublicKey import base58 from .crypto import Crypter, doublesha256, doublesha256_checksum, ripemd160_sha256 from .exceptions import * from .utils import BCDataSt...
""" Copyright (c) 2020 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.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writin...
# Copyright (c) 2019 Graphcore Ltd. All rights reserved. import math import numpy as np import popart import pytest import torch import torch.optim as optim import torch.nn as nn import torch.nn.functional as F from op_tester import op_tester # `import test_util` requires adding to sys.path import sys from pathlib imp...
#!/usr/bin/env python3 import sys import re import socket import codecs import select import struct import logging import errno from binascii import unhexlify from elftools.elf.elffile import ELFFile from bits.bootargs import BootArgumentsELF class GDB(object): SOF = b'$' EOF = b'#' ACK = b'+' NAK = b...
import re import time import random from typing import Optional import discord import asyncio import sqlalchemy from discord.ext import commands from collections import namedtuple from astrobot import __version__ as astrobot_version from astrobot.user_sys.database import BugItem_DB from astrobot.user_sys.database impor...
import re import os, os.path from . import root_dir, database def natural_sort_key(input): return [int(tok) if tok.isdigit() else tok.lower() for tok in re.split(r'(\d+)', input)] def write_header(f, device_name="", category="", *, index=False): if not (device_name or category): f.write(f"<title>Pr...
# -*- coding: utf-8 -*- # Copyright (c) St. Anne's University Hospital in Brno. International Clinical # Research Center, Biomedical Engineering. All Rights Reserved. # Distributed under the (new) BSD License. See LICENSE.txt for more info. # Std imports from multiprocessing import Pool # Third pary imports import nu...
# -*- coding: utf-8 -*- """ .. module: soil.heat :synopsis: APES-model component .. moduleauthor:: <NAME> Note: migrated to python3 - absolute imports Represents soil heat balance. Created on Thu Oct 04 09:04:05 2018 """ import numpy as np import matplotlib.pyplot as plt from .water import wrc from tool...
#https://adventofcode.com/2019 import time class WinException(BaseException): pass input_main="""Z9G)Q7N D1W)7G9 FP7)F5P L8W)55T YZC)1HN 1DQ)QKD 4RD)38D 8V7)DC8 95Q)33Q Y8N)G7L X25)7YN 5QH)JWW ZWL)HGG H4Y)RWG N38)XWR PWP)F6Y 6XB)QX1 G3W)PKM 5G5)439 V1Z)CBZ 8X1)5R5 6LJ)QHD V9Q)N7G WRP)XBW 61Z)7KN FQR)371 KD8)GSS ...
# Copyright 2021 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 applica...
""" Galaxy Metadata """ import copy import json import logging import os import shutil import sys import tempfile import weakref from collections import OrderedDict from collections.abc import Mapping from os.path import abspath from sqlalchemy.orm import object_session import galaxy.model from galaxy.util import ( ...
""" ============================================================= Online Latent Dirichlet Allocation with variational inference ============================================================= This implementation is modified from <NAME>'s onlineldavb code Link: https://github.com/blei-lab/onlineldavb """ # Author: <NAM...
# Copyright (c) 2015, Ecole Polytechnique Federale de Lausanne, Blue Brain Project # All rights reserved. # # This file is part of NeuroM <https://github.com/BlueBrain/NeuroM> # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are ...
# Copyright (c) 2013-2015 <NAME> # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation, either version 2 of the License, or # (at your option) any later version. # # This program is distributed in th...
# Copyright 2018 The Cirq Developers # # 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 # # https://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in ...
"""Contains classes enabling the easy communication with SuperCollider within jupyter notebooks """ import inspect import os import re import subprocess import sys import threading import time from queue import Empty, Queue from pythonosc.parsing import osc_types import numpy as np from IPython import get_ipython fr...
from __future__ import absolute_import from __future__ import print_function import argparse from collections import namedtuple from collections import OrderedDict import copy import os import shutil import string import sys import tempfile from textwrap import TextWrapper import urllib2 import six from six import St...
#!/usr/bin/env python # -*- coding: utf-8 -*- # pylint: disable=no-member # pylint: disable=not-an-iterable """ Functions __author__: <NAME>, <NAME>, <NAME> """ import itertools import numpy as np from pymdp.distributions import Categorical, Dirichlet from pymdp.core.maths import softmax, spm_dot, spm_wnorm, spm_MDP_...
import inspect import os import pkgutil import warnings from collections import defaultdict from importlib import import_module from types import ModuleType from typing import ( Any, Dict, FrozenSet, Generator, Iterable, List, Mapping, Optional, Sequence, Set, Union, ) impor...
# Copyright 2017 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://aws.amazon.com/apache2.0/ # # or in the "license" file acc...
import functools from pytestqt.exceptions import TimeoutError from pytestqt.qt_compat import qt_api class _AbstractSignalBlocker: """ Base class for :class:`SignalBlocker` and :class:`MultiSignalBlocker`. Provides :meth:`wait` and a context manager protocol, but no means to add new signals and to de...