text
stringlengths
8.04k
46.5k
import discord from . import commandsDB as bbCommands from .. import lib, bbGlobals from ..bbConfig import bbConfig, bbData from ..bbObjects import bbUser from ..bbObjects.items import bbShip bbCommands.addHelpSection(0, "loadout") async def cmd_hangar(message : discord.Message, args : str, isDM : bool): """re...
#!/usr/bin/env python3 import yaml from pprint import pprint import os import sys import collections import time import copy from . import university_info MAJORS_LOCATION = "../majors/" # relative path to folder containing the major requirements JSONs CERTIFICATES_LOCATION = "../certificates/" # relative path to fold...
import sys sys.path.append("../project_files/robot_drivers/") import numpy as np import cv2 import math from picamera.array import PiRGBArray from picamera import PiCamera import pwm_wrapper as pw import hex_walker_driver_v2 as hwd from hex_walker_constants import * # in_to_pixels function # DESCRIPTION: # Converts...
#!/usr/bin/env python import sys import keyword import os import subprocess import tempfile import shutil import fnmatch import re import hashlib import appdirs import cffi import pycparser import pycparser.c_generator from cffi import FFI from glob import glob from itertools import chain from collections import defau...
# Copyright 2019, <NAME> # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are met: # # 1. Redistributions of source code must retain the above copyright notice, # this list of conditions and the following disclaimer. # # 2. Redis...
#! /usr/bin/env python try: from graphics import grapher_mpl as grapher except ImportError: from graphics import grapher print("Using plain TkInter for plotting. You can obtain better quality graphics") print("using matplotlib (http://matplotlib.sf.net).") import parseB import parseS import parseC impor...
#!/usr/bin/env python3 # # Linux user-space drivers for Huion Graphic Tablets # https://github.com/joseluis/huion-linux-drivers # # updated: 20200429 # import usb.core import usb.util import sys import os.path import platform from evdev import UInput, ecodes, AbsInfo, InputDevice, list_devices import subprocess as sp i...
import torch from torchtext import data import numpy as np import pandas as pd import torch.nn as nn import torch.nn.functional as F import spacy nlp = spacy.load('en') SEED = 1 #torch.manual_seed(SEED) #torch.cuda.manual_seed(SEED) ''' BeautyTEXT = data.Field(tokenize='spacy') BeautyLABEL = data.LabelField(tensor_ty...
#!C:\Users\Admin\Downloads\Compressed\venv\Scripts\python.exe ''' The MIT License (MIT) Copyright (c) 2014 VUIIS 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 wit...
import calendar import hashlib import json import logging from collections import defaultdict from datetime import date, datetime, timedelta from urllib.parse import urljoin import isoweek import pytz from django.conf import settings from django.contrib.staticfiles import finders from django.core.cache import cache fr...
#################################################################### # Implements an extension of the simple model from Vierling-Claassen et al., # J Neurophysiol, 2008 # # This extension has two populations of inhibitory neurons: basket cells # and chandelier cells # # @author: <NAME>, 03/02/2017 ############...
#===----------------------------------------------------------------------===## # # Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. # See https://llvm.org/LICENSE.txt for license information. # SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception # #===----------------------------------...
from datetime import datetime import numpy as np import os import glob from pathlib import Path from vtk.util.numpy_support import numpy_to_vtk, vtk_to_numpy, numpy_to_vtkIdTypeArray import vtk import vedo import math #import trimesh ROOT_FOLDER = Path(__file__).parent.parent ASSETS_FOLDER = ROOT_FOLDER.joinpath('./...
#!/usr/bin/env python3 """ Copyright (c) 2013 Adafruit Original RPi.GPIO Py-Wrapper Author <NAME> Modified for BBIO Py-Wrapper Author <NAME> Authors of Full Python Implementation: <NAME>, <NAME>, and <NAME> This file incorporates work covered by the following copyright and permission notice, all modified code adopts...
# -*- coding: utf-8 -*- """Functions for generating training data and training networks.""" from __future__ import division from __future__ import print_function import collections import copy import itertools import logging import random # for debugging logging.basicConfig(level=logging.DEBUG) import matplotlib a...
from tkinter import * import sqlite3 from tkinter import messagebox root = Tk() root.title("Fantasy Cricket") root.geometry("680x490") root.resizable(width=FALSE, height=FALSE) root.configure(background='#FFFFFF') # -----------Show Root win in center-------------- def center(win): win.update_idletasks...
# pyGestalt Mechanics Module """A set of objects and methods for defining, analyzing, and utilizing mechanisms.""" #---- INCLUDES ---- import math from pygestalt import errors, units, utilities, geometry class transformer(object): """Base class for all types that transform from one state to another. M...
"""convert html json files into TFRecords files.""" import concurrent.futures import nltk from urllib.parse import urlparse import sqlite3 from io import StringIO import time import logging import json import os import math from random import shuffle import numpy as np import tensorflow as tf ########################...
#!/usr/bin/env python3.8 # Released under the MIT License. See LICENSE for details. # """BallisticaCore server manager.""" from __future__ import annotations import json import os import signal import subprocess import sys import time from pathlib import Path from threading import Lock, Thread, current_thread from typ...
import hmac import re from distutils.util import strtobool from string import digits # pylint: disable=deprecated-module import datetime import dateutil import json import requests import arrow from autoslug import AutoSlugField from django.contrib.auth.models import AnonymousUser from django.contrib.postgres.fiel...
# -*- coding: utf-8 -*- # # Copyright (c) 2015 Cisco Systems, Inc. and others. 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...
# This code is part of Qiskit. # # (C) Copyright IBM 2018, 2021. # # This code is licensed under the Apache License, Version 2.0. You may # obtain a copy of this license in the LICENSE.txt file in the root directory # of this source tree or at http://www.apache.org/licenses/LICENSE-2.0. # # Any modifications or derivat...
#!/usr/bin/env python from __future__ import print_function import sys import os import jinja2 import argparse import json import re import random from ssg import yaml, cce, products from ssg.shims import input_func from ssg.utils import read_file_list import ssg import ssg.products import ssg.rules import ssg.rule_...
# Standard library from __future__ import division import re import os from io import StringIO from math import exp from collections import namedtuple import timeit import json import itertools # Conda packages import pandas import scipy.spatial.distance import numpy as np import matplotlib.pyplot as plt # From https...
#!/usr/bin/env python3 """Cyberjunky's 3Commas bot helpers.""" import argparse import configparser import json from math import fabs import os import sqlite3 import sys import time from pathlib import Path from helpers.logging import Logger, NotificationHandler from helpers.misc import check_deal, unix_timestamp_to_st...
# -*- coding: utf-8 -*- from typing import Iterable, Union import numpy as np def retrieve_neighbours(v: int, graph: Iterable) -> np.ndarray: r"""Retrieves the neighbours of `v`. Args: v: graph: """ t = np.nonzero(graph[v] + 1) # + 1 because the indexing of vertices starts from 0...
# -*- coding: utf-8 -*- # Copyright 2014-2022 CERN # # 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 a...
#!/usr/bin/env python3.6 from pyontutils.config import devconfig import sys import csv import json import pickle import socket from pathlib import Path from itertools import chain from collections import Counter, defaultdict from rdflib import Graph, URIRef, Namespace, Literal from sqlalchemy import create_engine, ins...
#!/usr/bin/env python3 import time from tkinter import * from PIL import ImageTk, Image import csv from subprocess import Popen import RPi.GPIO as GPIO from subprocess import call from datetime import datetime from crontab import CronTab GPIO.setmode(GPIO.BCM) GPIO.setwarnings(False) GPIO.setup(22, GPIO...
## ## © Copyright 2021- IBM Inc. All rights reserved # SPDX-License-Identifier: MIT ## import codecs import html.parser import http import inspect import json import logging import lxml.etree as ET import re import time import urllib import requests import tqdm from elmclient import rdfxml logger = logging.getLogg...
# -*- coding: utf-8 -*- """Base module for record linkage.""" from __future__ import division import time import warnings from abc import ABCMeta, abstractmethod import six import pandas import numpy as np from joblib import Parallel, delayed from recordlinkage.utils import (listify, ...
#!/usr/bin/env python3 """Generate test data for PSA cryptographic mechanisms. With no arguments, generate all test data. With non-option arguments, generate only the specified files. """ # Copyright The Mbed TLS Contributors # SPDX-License-Identifier: Apache-2.0 # # Licensed under the Apache License, Version 2.0 (th...
# Copyright 2019 TerraPower, LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writi...
# -*- coding: utf-8 -*- from __future__ import absolute_import import os import threading import time import itertools import codecs import re import traceback from math import ceil from collections import namedtuple from contextlib import contextmanager from inspect import getargspec from io import StringIO from datet...
# -*- coding: utf-8 -*- from dialog_machine.builders.base_builders import * from dialog_machine.dialog_machine_core import * from dialog_machine.session_master import DataItemConnectorBuilder from dialog_machine.project_exceptions import DialogMachineError from dialog_machine.builders.dialog_item_builder import Simpl...
# Code written by: <NAME> (<EMAIL>) # <NAME> (<EMAIL>) """ This class is a collection of functions for showing data with pymol. Note that the limit of pymol is 100k monomers, therefore interpolateData is useful to collapse the 200k-long simulation into a 100k-long conformation. """ import os import te...
""" Copyright 2019 <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 required by applicable law or agreed to in writing, software distribut...
import copy import csv import io import logging import os from argparse import FileType, Namespace, ArgumentTypeError from bs4 import BeautifulSoup from collections import OrderedDict, defaultdict from datetime import datetime from distutils.util import strtobool from os.path import basename, splitext from plastron im...
from __future__ import absolute_import, division, unicode_literals import random from nltk.corpus import wordnet as wn from transformers import PretrainedConfig, Trainer from utils import cuda_setup, plot_pca, get_optimizer import numpy as np import copy import torch from torch import nn import torch.nn.functional as...
import os import sys """ Test 72 transform tf1 model on hits """ PROJECT_PATH = os.path.abspath( os.path.join(os.path.dirname(__file__), '..')) sys.path.append(PROJECT_PATH) from modules import utils import time import transformations import numpy as np from models.wide_residual_network import create_wide_residua...
# <Copyright 2019, Argo AI, LLC. Released under the MIT license.> """Map API unit tests""" import glob import matplotlib.pyplot as plt import numpy as np from argoverse.map_representation.map_api import ArgoverseMap from argoverse.utils.datetime_utils import generate_datetime_string from argoverse.utils.geometry impo...
# Copyright (c) 2016-2017 Adobe Inc. All rights reserved. # # 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, modif...
from autosar.element import Element import autosar.portinterface import autosar.constant import autosar.builder import autosar.port import copy import collections import sys class ComponentType(Element): """ Base class for all software component prototype classes. """ def __init__(self,nam...
import os.path import pickle import numpy as np import scipy.optimize as sciopt from scipy.stats import norm import pytest from numpy.testing import ( assert_, assert_almost_equal, assert_equal, assert_allclose, ) from refnx.analysis import ( CurveFitter, Parameter, Parameters, Model,...
import pandas as pd import os import time from config import Config from data_loader import load_input_data, load_label from models import SentimentModel import numpy as np import nltk from utils import pickle_dump, pickle_load from gensim.models import Word2Vec from gensim.models import KeyedVectors from docopt import...
# notes # ask michael if we can get the locations of the different cells # this thing (LSE) but on the whole brain # compare to the omni one # bic curves for both # compute ARI # slides for tomorrow # when we present (seems like it should be obvious) # then show the result, know whether it is what they would have exp...
#!/usr/bin/env python # coding: utf-8 # In[ ]: import datetime from collections import Counter import pandas as pd import numpy as np import xlsxwriter __all__ = ['Column_format', 'Column_producer', 'Export_to_excel'] # In[ ]: def series_of_tuples_to_data_frame(series, columns): return pd.DataFrame( ...
# Licensed to the Apache Software Foundation (ASF) under one # or more contributor license agreements. See the NOTICE file # distributed with this work for additional information # regarding copyright ownership. The ASF licenses this file # to you under the Apache License, Version 2.0 (the # "License"); you may not u...
from __future__ import absolute_import, division, print_function import argparse import csv import json import logging import os import random import sys import numpy as np import torch import torch.nn.functional as F from pytorch_transformers import (WEIGHTS_NAME, AdamW, BertConfig, ...
""" Copyright 2019 <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 required by applicable law or agreed to in writing, software distribut...
#! /usr/bin/env python import datetime import decimal import unittest from pyslet import iso8601 as iso from pyslet.py2 import ( long2, uempty) from pyslet.odata2 import csdl as edm from pyslet.xml import structures as xml def suite(): loader = unittest.TestLoader() loader.testMethodPrefix = 'test'...
############################################################################### ## ## Copyright (C) 2014-2016, New York University. ## Copyright (C) 2011-2014, NYU-Poly. ## Copyright (C) 2006-2011, University of Utah. ## All rights reserved. ## Contact: <EMAIL> ## ## This file is part of VisTrails. ## ## "Redistributio...
''' TFANN.py This file contains classes implementing ANN using numpy and tensorflow. Presently, multi-layer perceptron (MLP) and convolutional neural networks (CNN) are supported. ''' import tensorflow as tf import numpy as np def _Accuracy(Y, YH): ''' Return the classification accuracy given a vector of...
#Copyright (c) 2017 <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 limitation the rights #to use, copy, modify, merge, publish, distribute, subl...
# -*- coding: utf-8 -*- import io import ssl import sys import copy import base64 import socket import httplib import urlparse import functools import contextlib import collections import h2.errors import h2.events import h2.settings import h2.connection import h2.exceptions from tornado import ( httputil, log, s...
import glob import math import numpy as np import os import os.path as osp import string import pickle import json import h5py import random import argparse #from models.ass_fun import * import random from PIL import Image import multiprocessing import torch from torch.utils.data import Dataset from torch.utils.data i...
# -*- coding: utf-8 -*- """ Created on Wed Apr 7 14:57:55 2021 author: rringuet Satellite Flythrough code to call for any model. All desired model data for the desired model should be in a single directory. Example calls from the command line: Get list of models and function calls possible: python ./Sa...
from __future__ import print_function import argparse import os import random import torch import torch.nn as nn import torch.autograd as autograd import torch.optim as optim import torch.backends.cudnn as cudnn from torch.autograd import Variable import math import util import classifier import classifier2 import sys...
#!/usr/bin/env python # -*- coding: utf-8 -*- """ Network architecture definition for bird classification experiment. Author: <NAME> """ import functools import numpy as np import theano import theano.tensor as T import lasagne from lasagne.layers import (InputLayer, Conv2DLayer, Pool2DLayer, DenseLayer, ...
#!/usr/bin/env python3 # This script manages littlefs tests, which are configured with # .toml files stored in the tests directory. # import toml import glob import re import os import io import itertools as it import collections.abc as abc import subprocess as sp import base64 import sys import copy import shlex imp...
""" Contains functions to estimate aspects of blocks (like area and delay) by either using internal models or by making calls out to external tool chains. """ from __future__ import print_function, unicode_literals import re import os import math import tempfile import subprocess import sys import collections from ...
""" sip.py Computes connectivity (KS-test or percentile scores) between a test similarity gct and a background similarity gct. The default output is signed connectivity, which means that the connectivity score is artifically made negative if the median of the test distribution is less than the median of the background...
from copy import copy from re import findall import sys global_labels = { 'vPC': 0x0016, 'vAC': 0x0018, 'vACH': 0x0019, 'vLR': 0x001a, 'vLRH': 0x001b, 'sysFn': 0x0022, 'r1': 0x0030, 'r2': 0x0032, 'r3': 0x0034, 'r4': 0x0036, 'r5': 0x0038, 'r6': 0x003a, 'r7': 0x003c, ...
import custom_paths import utils import numpy as np from typing import * from pathlib import Path import os class ExperimentResults: def __init__(self, results_dict: dict, exp_name: str): # usually, results_dict[alg_name][task_name][split_idx] = something self.results_dict = results_dict s...
# 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 applicable law or ...
# -*- coding: utf-8 -*- from datetime import datetime from dateutil import relativedelta import json import random from openerp import tools from openerp.exceptions import Warning from openerp.tools.safe_eval import safe_eval as eval from openerp.tools.translate import _ from openerp.tools import ustr from openerp.os...
# Copyright 2013: Mirantis 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 b...
#!/usr/bin/env python3 """backup-btrfs2.py Modified: 2019-04-28 # Don't try running until 0.3+. Rename to 1.0.0-beta-1 when kinda # working as before. Rename to 2.0.0-alpha-1 when implementing the # logical improvements that motivated migrating to Python. Version: 0.2 Purpose: Backup data via incremental btrfs snap...
import discord from discord.ext import commands from discord.ext.commands.cooldowns import BucketType from discord.ext.commands import bot, has_permissions, CheckFailure from discord import Spotify import asyncio import colorsys import random import platform from discord import Game, Embed, Color, Status, Chan...
import atexit import cPickle as pickle import errno import fnmatch import io import os import os.path import pygame import stat import threading import time import sys import pytweening from pygame.locals import * from subprocess import call # UI classes -------------------------------------------------------------...
import os import sys import ctypes import string from math import * from tkinter import * from tkinter import messagebox class Calculator: '''Calculator is a GUI script purely written in Python. This calculator is capable of performing addition, subtraction, multiplication, division, percentage ...
# Copyright 2021 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, ...
# Copyright (c) 2005-2006, <NAME> # Copyright (c) 2007, Linden Research, Inc. # Copyright (c) 2009-2010 <NAME> # Copyright (c) 2010 <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 wi...
import os import logging import datetime import numpy as np import pandas as pd import dask.dataframe as dd import dask.bag as db from psutil import cpu_count from glob import glob from astropy import units as u from astropy.coordinates import SkyCoord from django.conf import settings from django.db import transaction...
#!/usr/bin/env python """ nn_manager for GAN A simple wrapper to run the training / testing process """ from __future__ import print_function import time import datetime import numpy as np import torch import torch.nn as nn import torch.nn.functional as F import core_scripts.data_io.conf as nii_dconf import core_s...
#---------------------------------------------------------------------------- # Name: wx.lib.intctrl.py # Author: <NAME> # Created: 01/16/2003 # Copyright: (c) 2003 by <NAME> # License: wxWindows license # Tags: phoenix-port, py3-port, unittest, documented #------------------------------...
"""Entry point to train the models and evaluate them. This should be called by `python main.py <conf>` where <conf> sets all configs from the cli, see the file `config/main.yaml` for details about the configs. or use `python main.py -h`. """ import copy import csv import logging import math import os import subproces...
import numpy as np from numpy.testing import assert_allclose, assert_equal from statsmodels import datasets from statsmodels.tools.tools import add_constant from statsmodels.tools.testing import Holder from statsmodels.distributions.discrete import ( truncatedpoisson, truncatednegbin, ) from statsmodels....
#!/usr/bin/env python3 # -*- coding: utf-8 -*- import requests import hashlib import transaction import json import os import re import rarfile import mimetypes import numpy import base64 import collections import libarchive import logging log = logging.getLogger(__name__) from datetime import datetime #from .githu...
# Copyright 2014 The LUCI Authors. All rights reserved. # Use of this source code is governed under the Apache License, Version 2.0 # that can be found in the LICENSE file. """Auth management UI handlers.""" import functools import json import os import re import webapp2 from components import template from componen...
#!/usr/bin/env python # -*- encoding: utf-8 -*- # Copyright (c) 2002-2019 "Neo4j," # Neo4j Sweden AB [http://neo4j.com] # # This file is part of Neo4j. # # 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 L...
# -*- coding: utf-8 -*- """ Created on Tue Oct 29 13:58:14 2019 @author: Lieke """ import numpy as np import pandas as pd from .utils import TreeNode def update_tree(y_true1, y_pred1, y_true2, y_pred2, threshold, tree, return_missing = True): ''' Match the labels of two datasets Parameters ----...
from itertools import cycle import random import sys import pygame from pygame.locals import * FPS = 30 SCREENWIDTH = 288 SCREENHEIGHT = 512 # amount by which base can maximum shift to left PIPEGAPSIZE = 100 # gap between upper and lower part of pipe BASEY = SCREENHEIGHT * 0.79 # image, sound and hitmask di...
#! /usr/bin/env python """Basic replication core.""" import sys, os, time import skytools from pgq.cascade.worker import CascadedWorker __all__ = ['Replicator', 'TableState', 'TABLE_MISSING', 'TABLE_IN_COPY', 'TABLE_CATCHING_UP', 'TABLE_WANNA_SYNC', 'TABLE_DO_SYNC', 'TABLE_OK'] # state # ow...
# coding: utf-8 # /*########################################################################## # Copyright (C) 2016-2017 European Synchrotron Radiation Facility # # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files (the "Software"), to dea...
# Copyright (c) 2019-present, Facebook, Inc. # 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 json import random import argparse # our import copy import gc from src.slurm import init_signal_handler, init_distri...
# SPDX-FileCopyrightText: 2017 <NAME> for Adafruit Industries # SPDX-FileCopyrightText: 2018 <NAME> for Adafruit Industries # # SPDX-License-Identifier: MIT """ `adafruit_character_lcd.character_lcd` ==================================================== Module for interfacing with monochromatic character LCDs * Autho...
import turtle import math import random import copy import time t = turtle.Turtle() wn = turtle.Screen() turtle.setup(800,600) player = 0 b = [['0','0','0','0','0','0','0','0'],['0','0','0','0','0','0','0','0'],['0','0','0','0','0','0','0','0'], ['0','0','0','0','0','0','0','0'],['0','0','0','0','0','0','0','0'], ['0'...
# Copyright (c) 2018, Vienna University of Technology (TU Wien), Department # of Geodesy and Geoinformation (GEO). # All rights reserved. # THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" # AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE # IMPLIED WARRANTIES OF MER...
#!/usr/bin/env python3 # 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. """ This is the interface for reading and writing from the database that stores the union of **all** the RPM repos that...
# 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 writing, software # distributed under the...
__author__ = 'hofmann' __version__ = '0.0.6' import os import random import numpy.random as np_random import tempfile from scripts.MetaDataTable.metadatatable import MetadataTable from scripts.StrainSimulationWrapper.strainsimulationwrapper import StrainSimulationWrapper from scripts.StrainSelector.strainselector impo...
import logging import os import re import warnings import xml.etree.ElementTree as etree import cssutils # import diffvg import numpy as np # import svgpathtools # import svgpathtools.parser import torch import pydiffvg cssutils.log.setLevel(logging.ERROR) def remove_namespaces(s): """ {...} ... -> ......
# -*- coding: utf-8 -*- """ This module handles the identification and cleaning of noise in signals. A 'noisy' signal is one that has spikes in it or sudden variations in a continuous looking function. Most of these functions are built to detect and handle sudden spikes in the frequency profile estimates of a sound....
#!/usr/bin/env python3 # LEMP MANAGER v1.1 # Copyright 2017 <NAME> <<EMAIL>> import sys import os import shutil import subprocess import getopt import crypt import pwd from tld import get_tld ######### CONFIGURATION ############ BASE_ROOT='/home' START_USER_NUM=5001 BASE_USER_NAME='web' PHP_FPM_TEMPLATE='/etc/php/7.0...
import json import logging import os import toml import time from playsound import playsound import requests import uuid import random from howlongtobeatpy import HowLongToBeat, HowLongToBeatEntry import events.MoonriseArtifacts.Artifact as Artifact settings_file = os.path.join(os.path.dirname(__file__), "settings.tom...
""" A custom MPI-enabled linear solver. """ #*************************************************************************************************** # Copyright 2015, 2019 National Technology & Engineering Solutions of Sandia, LLC (NTESS). # Under the terms of Contract DE-NA0003525 with NTESS, the U.S. Government retains c...
#!/usr/bin/python -tt # List of token names. This is always required from Number import * from String import * from IntegerSet import * from RealSet import * from SymbolicSet import * from LogicalSet import * from BinarySet import * from EnumSet import * from ParameterSet import * from VariableSet import * from Se...
#!/usr/bin/env python2 # -*- coding: utf-8 -*- """ Common functions that are utilized by neural network models @author: dbasaran """ import numpy as np from keras.optimizers import SGD, Adam from keras.callbacks import EarlyStopping,ModelCheckpoint,ReduceLROnPlateau,Callback import keras as K import logging import h5...
#Author: <NAME>, EMBL Heidelberg, Sachse Group (2018) import numpy as np import time import argparse, os, sys import mrcfile import math from FDRutil import * #************************************************************* #****************** Commandline input ************************ #********************************...