text
stringlengths
3.07k
22.1k
# ----------------------------------------------------------------------------- # Copyright (c) 2005-2021, PyInstaller Development Team. # # Distributed under the terms of the GNU General Public License (version 2 # or later) with exception for distributing the bootloader. # # The full license is in the file COPYING.tx...
#!/usr/bin/env python from uuid import uuid4 from pygrap import freeMatch, getGraphFromFile, graph_free, parcoursGen, graph_save_to_path, match_graph from idagrap.config.General import MAX_THRESHOLD class Match: """Match class. This class is a representation of a match. Attributes: _links (Ma...
import math import numbers import tensorflow as tf from tensorflow.keras.layers import BatchNormalization from tensorflow.keras.layers import Dense from tensorflow.keras.layers import Dropout def _check_input( value, name, center=1, bound=(0, float("inf")), clip_first_on_zero=True ): if isinstance(value, num...
from database.models import MetaDataSource, Experiment, Subject from database.api import MDSource #TODO what I need is a link between datasources and the Controller classes, that should probably be defined... here? or somewhere? or fuck what damn it one class per metadata source???! def mdsAll(channels=4): """used...
# coding : utf-8 import os import typing import re import logging import sys import functools from .exception import NLPIRException __version__ = "0.9.11" PACKAGE_DIR = os.path.abspath(os.path.dirname(__file__)) logger = logging.getLogger("nlpir") def clean_logs(data_path: typing.Optional[str] = None, include_curren...
import asyncio import os import random import traceback import logging import aiohttp import discord from discord.ext import commands, tasks from alttprbot.alttprgen import mystery, preset, spoilers from alttprbot.database import config, srlnick from alttprbot.tournament.league import WEEKDATA, create_league_race_roo...
import torch import numpy as np import torch.nn as nn import torch.nn.functional as F import math from matplotlib import pyplot as plt import pdb class GTN(nn.Module): def __init__(self, num_edge, num_channels, w_in, w_out, num_class,num_layers,norm): super(GTN, self).__init__() self.num_edge...
import numpy as np import randomvars._utils as utils from randomvars.options import config # %% Conversion # There were different other approaches to Cont-Disc conversion, which were # decided to be less appropriate: # - In Cont-Disc construct discrete distribution with the same x-grid to be the # closest to input ...
#!/usr/bin/env python # coding=utf-8 from win32com import client as wc import re, time, sys import codecs import chardet reload(sys) sys.setdefaultencoding('utf8') ''' 参数1:word文档地址 参数2:格式化好的html临时地址 ''' def main(args): docPath = args[1] exportPath = args[2] htmlPath = args[3] html = wordToHtml(docP...
# Copyright (c) 2019, NVIDIA CORPORATION. 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 applic...
#!/usr/bin/env python # Copyright 2021 <NAME>, <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 ...
# This file is Copyright 2019 Volatility Foundation and licensed under the Volatility Software License 1.0 # which is available at https://www.volatilityfoundation.org/license/vsl-v1.0 # import logging from typing import Any, Callable, Dict, Iterable, List, Optional, Tuple, Union from volatility.framework import cons...
"""Model for the WordPress XML format (WXR) WXR is short for WordPress eXtended RSS. """ import logging import phpserialize from urllib.parse import urlparse import lxml.etree from basics import sole, sole_or_none, Delegator import xml __all__ = ('Channel', 'NavMenu', 'NavMenuItem', 'Page') wp_namespaces = xml.XML...
from collections import namedtuple import functools import copy import jax import numpy as np from timemachine.lib import potentials, custom_ops from typing import Tuple, List, Any import dataclasses import jax.numpy as jnp from fe.topology import BaseTopology, SingleTopology from fe.free_energy import BaseFreeEne...
import simplejson as json from flask import Flask, request, Response, redirect, session, flash from flask import render_template from flaskext.mysql import MySQL from pymysql.cursors import DictCursor from werkzeug.security import check_password_hash, generate_password_hash from flask_mail import Mail, Message import o...
import os import posixpath import tempfile from abc import abstractmethod, ABCMeta from collections import namedtuple from concurrent.futures import ThreadPoolExecutor from mlflow.utils.validation import path_not_unique, bad_path_message from mlflow.exceptions import MlflowException from mlflow.protos.databricks_pb2 ...
import os import numpy as np import pandas as pd from pyuplift.utils import download_file def download_hillstrom_email_marketing( data_home=None, url='http://www.minethatdata.com/Kevin_Hillstrom_MineThatData_E-MailAnalytics_DataMiningChallenge_2008.03.20.csv' ): """Downloading the Hillstrom Email Marketin...
from sopnmf.base import WorkFlow from sopnmf.utils import save_components_as_nifti, reconstruction_error, opnmf_solver, save_loading_coefficient, EarlyStopping, \ folder_not_exist_to_create, initialization_W, train, validate, extract_atlas_signal from sopnmf.base import VB_Input import os, shutil import pickle from...
# Copyright (c) 2021, NVIDIA CORPORATION. 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 applic...
import os import re import argparse import math def float2str(number, size=6): number = str(math.ceil(number * 100)) return (size - len(number)) * "0" + number def majorityvote(line): count_pos = line.count("Positive") count_neu = line.count("Neutral") count_neg = line.count("Negative") dic ...
import sys from HSTB.kluster.gui.backends._qt import QtGui, QtCore, QtWidgets, Signal from HSTB.kluster.fqpr_project import FqprProject class KlusterActions(QtWidgets.QTreeView): """ Tree view showing the currently available actions and files generated from fqpr_intelligence """ execute_action = Si...
#****************************************************************************** #* RBS_Model Builder * #* tensorflow (version 2.0 or higher) and kerastuner * #* Author : <NAME> <<EMAIL>> * #* Developed with the help of C2TN ...
import os import time import json import torch import random import numpy as np from data.dataset import Tacodataset, Tacocollate from utils.config import cfg from utils.util import mode, to_arr from data.dataset import create_test_filenames from torch.utils.data import DataLoader from utils.logger import Ta...
'''Compare different estimators on public datasets Code modified from https://github.com/tmadl/sklearn-random-bits-forest ''' import argparse import os import pickle as pkl import time import warnings from collections import defaultdict, OrderedDict from typing import Any, Callable, List, Dict, Tuple import numpy as n...
import time import random import Queue from collections import defaultdict try: from importlib import import_module except ImportError: # python < 2.7 compatibility from django.utils.importlib import import_module from django.conf import settings from graphite.logger import log from graphite.util import is_loca...
'''Author: <NAME>''' import glob import json import math import sys import zipfile import os import matplotlib import matplotlib.pyplot as plt import tellurium as te from prompt_toolkit import prompt from prompt_toolkit.completion import WordCompleter from prompt_toolkit.history import FileHistory from prompt_toolkit.s...
""" .. Necessary to reject for documentation building * Copyright 2019 TIBCO Software 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. * A copy of the License is included in the distribution package with...
"""MySQLdb wrapper for easy usage and encryption""" # TODO in v1: fields alsoAsHash attribute import copy import datetime import logging import warnings import MySQLdb from MySQLdb.cursors import Cursor as MySQLCursor import crypt from .crypt import Id warnings.filterwarnings("ignore", category=MySQLdb.Warning) M...
from PIL import Image import os import argparse import random import pathlib import sys import errno IV_SIZE = 128 # bit SEPARATOR_SIZE = 128 # bit END_SEPARATOR_SIZE = 128 # bit FILE_SEPARATOR_SIZE = 128 # bit METADATA_SIZE = SEPARATOR_SIZE + END_SEPARATOR_SIZE + FILE_SEPARATOR_SIZE def get_image_path_list(dr): ...
from binaryninja import LowLevelILLabel, LowLevelILFlagCondition from binaryninja.architecture import Architecture, ArchitectureHook from capstone import Cs, CS_ARCH_ARM64, CS_MODE_ARM from capstone.arm64 import * # # http://infocenter.arm.com/help/index.jsp?topic=/com.arm.doc.dui0473e/CJAJIHAD.html # # Suffix Fla...
#!/usr/bin/env python # -*- coding: utf-8 -*- # # mayhem/datatypes/common.py # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are # met: # # * Redistributions of source code must retain the above copyright # notice, this ...
def plot_time_series(): plt.figure(figsize=(20, 5)) ax = plt.subplot(111) plt.plot(y_pred_lstm, linewidth=3, color='blue', linestyle='-') plt.plot(y_pred_clstm_1, linewidth=3, color='green', linestyle='-') plt.plot(y_pred_rf, linewidth=3) #plt.plot(sm, linewidth=3, color = 'black', linestyle='...
import queue import uuid from typing import List, Tuple, Dict from clickhouse_driver import connect from dejavu.base_classes.common_database import CommonDatabase from dejavu.config.settings import (FIELD_FILE_SHA1, FIELD_FINGERPRINTED, FIELD_HASH, FIELD_OFFSET, FIELD_SONG_ID, ...
# vim: tabstop=4 shiftwidth=4 softtabstop=4 # Copyright 2012 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.apach...
#!/usr/bin/env python3 """ Will deploy nightly Bitconch chain, codename soros """ import logging import stat import shutil import os, re, argparse, sys,crypt import getpass import click from subprocess import Popen, check_call, PIPE, check_output, CalledProcessError from shutil import copy2, copytree, rmtree from colo...
""" The API for handling geometry. """ import math from ._algebra import ( geometric_product, regressive_product, outer_product, inner_product, sandwich_product, conjugate, reverse, ) # todo: Perfomance of matrix multiplications vs scale/translate/quaternion vs dual quaternions # todo: ...
# Backend base class implementation. Each backend must provide a class deriving # from 'Backend(...)' which implements a set of 'wrap_*' functions that control # code generation. from abc import ABCMeta, abstractmethod from cppbind import Enum, Function, Options, Record, Type, Variable from file import File, Path from...
from mpmath import * from sympy import * import numpy as np q1, q2, q3, q4, q5, q6, q7 = symbols('q1:8') #Theta d1, d2, d3, d4, d5, d6, d7 = symbols('d1:8') #d-offset a0, a1, a2, a3, a4, a5, a6 = symbols('a0:7') # alpha0, alpha1, alpha2, alpha3, alpha4, alpha5, alpha6 = symbols('alpha0:7') # alpha twist angle.. ...
import functools import numpy as np import pybullet as pb MAX_STEP_TIME = 300 class Simulator(object): def __init__( self, use_gui=False, time_step=1/240., gravity=9.8, spawn_position=(0,0,2), spawn_orientation=(0,0,0,1), num_steps=None, velocity_threshold=0.01, ): """ Arg...
# coding: utf-8 # 服务器相关模块 import simplejson as json import pandas as pd from flask import Flask # pip install -U flask-cors from flask_cors import CORS from flask_restful import Resource, Api,reqparse # OCR 相关模块 import time import base64 from PIL import Image import cv2 import numpy as np import pytesseract import os ...
# encoding: utf-8 from collections import Counter import re import numpy as np from numpy.random import choice as random_choice from numpy.random import randint as random_randint from numpy.random import shuffle as random_shuffle from numpy.random import rand from numpy import zeros as np_zeros # pylint:disable=no-na...
#!/usr/bin/env python3 from pathlib import Path import numpy as np import matplotlib.pyplot as plt import matplotlib.ticker as ticker import seaborn as sb import defopt from gp_ppc import load_data from scipy.stats import gaussian_kde def plot_psycho(dset_pred, ax, label): """plot predictive psychometric curve...
# -*- coding: utf-8 -*- ''' Story Config Object =================== ''' from __future__ import annotations __all__ = ('StoryConfig',) import datetime from builder import __PRIORITY_DEFAULT__, __PRIORITY_MAX__, __PRIORITY_MIN__ from builder.datatypes.builderexception import BuilderError from builder.datatypes.format...
import torch from torch.autograd import Function import pointops_cuda import pdb class FurthestSampling(Function): @staticmethod def forward(ctx, xyz, offset, new_offset): """ input: xyz: (n, 3), offset: (b), new_offset: (b) output: idx: (m) """ assert xyz.is_contiguo...
# The MIT License (MIT) # Copyright (c) 2015 <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, merg...
import glob import math import tqdm import torch import random import inspect import os.path as osp import torch.nn as nn from pathlib import Path from itertools import chain from torch.utils.data import random_split from torch_geometric.data import Data, DataLoader, DataListLoader from torch_geometric.nn import EdgeCo...
import os import struct import numpy as np import itertools import re class Ltspice: filepath = '' dsamp = 1 tags = ['Title:', 'Date:', 'Plotname:', 'Flags:', 'No. Variables:', 'No. Points:'] time_raw = [] data_raw = [] time_split_point = [] title = '' date = '' plotname = '' ...
# modify from https://github.com/clovaai/deep-text-recognition-benchmark import numpy as np import torch import torch.nn as nn from torch.nn import functional as F from vedastr.models.bodies import build_feature_extractor from vedastr.models.utils import build_module, build_torch_nn from .registry import RECTIFICATOR...
#!/usr/bin/python # -*- coding: utf-8 -*- # ##################################################################################################################### # Copyright 2020 Amazon.com, Inc. or its affiliates. All Rights Reserved. # # ...
#!/usr/bin/env python import argparse import os import re import sys import gnupg import logging import getpass import boto3 import smtplib import datetime from datetime import timedelta from email.mime.application import MIMEApplication from email.mime.multipart import MIMEMultipart from email.mime.text import MIMETe...
# Copyright 2021 CR.Sparse Development Team # # 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...
# # Copyright (c) 2019 UCT Prague. # # ec5cbec43ec8_initial_layout.py is part of Invenio Explicit ACLs # (see https://github.com/oarepo/invenio-explicit-acls). # # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files (the "Software"), to d...
# encoding: utf-8 __author__ = "<NAME>" # Parts of the code have been taken from https://github.com/facebookresearch/fastMRI import argparse import pathlib from argparse import ArgumentParser from os.path import exists import h5py import numpy as np import pandas as pd import torch from runstats import Statistics fr...
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ Created on Mon Jun 11 13:22:51 2018 @author: branko """ import numpy as np import tensorflow as tf from tensorflow.examples.tutorials.mnist import input_data from utils import tile_raster_images import matplotlib.pyplot as plt import math tf.reset_default_graph() plt...
# ============================================================================== # Copyright (c) Microsoft. All rights reserved. # # Licensed under the MIT license. See LICENSE.md file in the project root # for full license information. # ============================================================================== i...
import os import numpy as np import librosa import tensorflow as tf from musicnn_keras import configuration as config from tf_to_keras import keras_models def batch_data(audio_file, n_frames, overlap): '''For an efficient computation, we split the full music spectrograms in patches of length n_frames with overla...
#!/usr/bin/python import sys import argparse import vambtools as _vambtools import run_RF_modules import collections as _collections import os import numpy as _np parser = argparse.ArgumentParser( description="""Command-line benchmark utility.""", formatter_class=argparse.RawDescriptionHelpFormatter, add_...
import random seasons = ["Printemps", "Eté", "Automne", "Hiver"] weeks = ["Basse", "Haute", "Fuyante"] months = ["placeholder"] * 3 + ["Molosse ailé", "Numismate","Frondeur", "Chat noir", "Faucheur", "Reine barbare", "Guide"] + ["placeholder"] * 5 * 2 weather=[ ("Pluies fines", "Une légère pluie tombe sur...
# -*- coding: utf-8 -*- from argparse import ArgumentParser from pyrice.multi_query import MultiQuery from pyrice import multi_query import time import pickle import gzip import shutil import os import wget # parser = ArgumentParser("build_dictionary", conflict_handler='resolve') # parser.add_argument("--rapdb_url", ...
import pandas as pd from datetime import datetime, timedelta import requests import json import logging import os import matplotlib.pyplot as plt from numpy import array import math import numpy as np logger = logging.getLogger(__name__) url = 'https://graphql.cherre.com/graphql' # Customize these variables. file_dir...
import pandas as pd import streamlit as st import astropy.units as u import plotly.express as px from astroquery.nasa_exoplanet_archive import NasaExoplanetArchive distance_unit_dict = { '秒差距': 'distance_pc', '光年': 'distance_lyr', '天文單位': 'distance_au', '公里': 'distance_km' } @st.cache(allow_output_m...
# -*- coding:utf-8 -*- import tensorflow as tf from tensorflow.contrib import layers def dense_layer(inputs, kernel_size, num_filters, keep_prob, scope, regularizer=None): with tf.variable_scope(scope, reuse=tf.AUTO_REUSE): input_size = inputs.get_shape()[-1] # [batch_size, max_len, input_size] ...
import argparse import math from configuration.path_config import set_paths from data_layer.signal_analysis import estimate_frequency from model_layer import net_pipe from eval_layer.evaluate_sample import eval_sample from eval_layer.evaluate_simulation import eval_simulation from utils import files_operations ...
# Create your views here. from django.shortcuts import render_to_response from django.views.generic import TemplateView, DetailView, ListView, FormView, UpdateView from .models import User from . import auth from django import forms from django.core.urlresolvers import reverse from crispy_forms.helper import FormHelper...
import docker import hashlib import os import os.path as op import slugid import sys CONTAINER_PREFIX = "higlass-manage-container" NETWORK_PREFIX = "higlass-manage-network" REDIS_PREFIX = "higlass-manage-redis" REDIS_CONF = "/usr/local/etc/redis/redis.conf" SQLITEDB = "db.sqlite3" def md5(fname): hash_md5 = hash...
import cma import numpy as np from rlkit.envs.wrappers import SubprocVecEnv from clothmanip.envs.cloth import ClothEnvPickled as ClothEnv from rlkit.envs.wrappers import NormalizedBoxEnv import argparse import json import copy import pandas as pd import mujoco_py from gym.logger import set_level import cv2 set_level(5...
""" Model predictions from checkpoint file Compile all data as .npy array and expand into memory """ import os import numpy as np import pickle import glob import pandas as pd import time pd.set_option('display.max_rows', 500) pd.set_option('display.max_columns', 50) pd.set_option('display.width', 1000) import tenso...
from personal.MaurizioFramework.SLIM_BPR.Cython.SLIM_BPR_Cython import SLIM_BPR_Cython from recommenders.similarity.dot_product import dot_product from utils.datareader import Datareader from utils.evaluator import Evaluator from utils.submitter import Submitter from utils.post_processing import eurm_remove_seed from u...
from __future__ import division, print_function, absolute_import import numpy as np from ipsolver._constraints import (BoxConstraint, LinearConstraint, NonlinearConstraint, _check_kind, ...
#!/usr/bin/python # -*- coding: utf-8 -*- # # Dell EMC OpenManage Ansible Modules # Version 3.0.0 # Copyright (C) 2020-2021 Dell Inc. or its subsidiaries. All Rights Reserved. # GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) # from __future__ import (absolute_import, divi...
import numpy as np import pandas as pd import time from gurobipy import LinExpr, quicksum, GRB def check_columns_match(original_columns, new_data): """ :param original_columns: List of column names from the data set used to fit the model :param new_data: The numpy matrix or pd dataframe new data set for ...
#! /usr/bin/python3 # -*- coding: utf-8 -*- #<EMAIL> # set all the components class NextionApp: # initialization of the components used in device def __init__(self): self.pages = [ {'id': 1, 'name': 'credits', 'components': [ {'id': 1, 'type': 'button', 'name...
class Box: def __init__(self, size: int, box_type: str, uuid=0): self.size = size self.type = box_type self.uuid = uuid class FullBox(Box): def __init__(self, size: int, box_type: str, uuid, v: int, f: int): super().__init__(size, box_type, uuid) # Boxes with ...
import numpy as np from train import make_env from multiagent.rendering import Transform from skvideo.io import FFmpegWriter import pickle import time import argparse import math def draw_arrow(env, agent_pos, landmark_pos, prob): x1, y1 = agent_pos x2, y2 = landmark_pos dx, dy = x2 - x1, y2 - y1 l = m...
# train.py # Training operations. import json from argparse import Namespace from typing import Dict, List, Tuple import numpy as np import optuna import torch import torch.nn as nn from numpyencoder import NumpyEncoder from sklearn.metrics import ( precision_recall_curve, precision_recall_fscore_support, ) ...
import sys import numpy as np import pandas as pd import cv2 import os import argparse from shutil import rmtree import time from tqdm import tqdm import imgaug as ia import imgaug.augmenters as iaa from imgaug.augmentables.bbs import BoundingBox, BoundingBoxesOnImage import warnings warnings.filterwarnings("ignore")...
#!/usr/bin/env python3 # # Copyright (C) [2020] Futurewei Technologies, Inc. # # FORCE-RISCV is 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 ...
from __future__ import absolute_import import os try: # for Python2 import ConfigParser as cp except ImportError: # for Python3 import configparser as cp import utils2to3 class EDRUserConfig(object): def __init__(self, config_file='config/user_config.ini'): self.config = cp.ConfigParser(...
"""Dataset loader and data utilities. Author: <NAME> and <NAME> """ import collections import itertools import torch from torch.utils.data import Dataset from random import shuffle from utils import cuda, load_dataset PAD_TOKEN = '[PAD]' UNK_TOKEN = '[UNK]' class Vocabulary: """ This class creates tw...
__author__ = '<NAME>' from flask import Flask, render_template, request, jsonify, json # System libs import os import argparse from distutils.version import LooseVersion # Numerical libs import numpy as np import torch import torch.nn as nn from scipy.io import loadmat import csv # Our libs from scene_parsing import T...
import tensorflow as tf import numpy as np from sklearn.metrics import f1_score, precision_recall_fscore_support from collections import Counter import evaluation_fns_np import nn_utils import util EPS = 1e-20 class BaseMetric: def __init__(self, task, config, reverse_maps=None, **kwargs): self.task = t...
#! /usr/bin/env python3 # -*- coding: utf-8 -*- """ [2018] vbyk """ ################## vim:fenc=utf-8 tabstop=8 expandtab shiftwidth=4 softtabstop=4 import sys import os import pdb import subprocess PACKAGE_PARENT = '..' SCRIPT_DIR = os.path.dirname(os.path.realpath(os.path.join(os.getcwd(), os.path.expanduser(__file...
# -*- coding: utf-8 -*- """ Created on Thu Aug 31 18:35:47 2017 @author: majid """ import os import sys import numpy as np #import matplotlib.pyplot as plt run_status = "multi_planet" root_path = os.popen("pwd").read() mass = 0.970 # in solar mass unit a = 0.849 # in A.U. unit luminasity = 0.7967 # in solar luminasi...
# Generated Scene Functions # VictoryScreen.py from rom_generator import generator from rom_generator import script_functions as script test_generation_destination_path = "../gbprojects/generated_export_test_VictoryScreen/" import random import time import datetime # Try to grab git revision import sub...
import asyncio import logging import random import time import traceback from pywavez.NodeUpdate import NodeUpdate from pywavez.zwave import getCommandClassVersion from pywavez.zwave.Constants import ( CommandClass, TransmitComplete, TransmitOption, ) from pywavez.util import spawnTask, waitForOne from py...
""" Routines for reading PDML produced from TShark. Copyright (c) 2003, 2013 by <NAME> <<EMAIL>> 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) ...
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ Summarizes existing activities. **Command-line parameters** *source_host* The host name. *source_database_name* The db. *destination_host* The host name. *destination_database_name* ...
#!/usr/bin/env python '''A library of texture methods and utilities for managing textures for openGL rendering <NAME> Jan 2017 - Created www.qenops.com ''' __author__ = ('<NAME>') __version__ = '1.0' import OpenGL.GL as GL from OpenGL.GL import * import numpy as np import os, math import dGraph as dg import dGraph....
# This file is part of the PicoSplit-Keyboard project, http://kaenner.de/PicoSplit.html/ # # The MIT License (MIT) # # Copyright (c) 2021 <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 So...
#!/usr/bin/python #-*- coding: utf-8 -*- #Developer by Bafomet from utils import COLORS import random import shodan import time import sys import os page_8 =f''' ______ ______ ______ __ __ ________ ______ ______ __ __ ______ __ __ / ...
#!/usr/bin/env python """Script used to perform a forward pass using a previously trained model and visualize the corresponding primitives """ import argparse import os import sys import numpy as np import torch from torch.utils.data import DataLoader from arguments import add_voxelizer_parameters, add_nn_parameters,...
""" Base classes for argument matchers. """ import inspect from operator import itemgetter from callee._compat import IS_PY3, metaclass __all__ = [ 'Matcher', 'Eq', 'Is', 'IsNot', 'Not', 'And', 'Or', 'Either', 'OneOf', 'Xor', ] class BaseMatcherMetaclass(type): """Metaclass for :class:`BaseMatcher`...
import attr import contextlib import gc import importlib import inspect import math import sys import threading import traceback import types import warnings from typing import ( Any, Callable, Dict, Iterator, List, Mapping, Optional, Sequence, Tuple, ) from ._frames import ContextIn...
# Copyright 2017 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...
#!/usr/bin/env python3 """ Context objects for managing datasets. """ import numpy as np from . import ic # noqa: F401 from . import _make_logger # Set up ArrayContext logger logger = _make_logger('ArrayContext', 'error') # or 'info' def _exe_axis_moves(array, moves, reverse=False): """ Execute the input ...
import os import random from datetime import datetime from io import StringIO from pathlib import Path import dj_database_url from fabric.api import cd, env, execute, get, local, put, require, run, settings, shell_env, sudo, task from fabric.context_managers import quiet, lcd from fabric.operations import prompt from ...
import logging from typing import Union import numpy as np import tensorflow as tf import tensorflow_probability as tfp from scipy.stats import multivariate_normal from tensorflow import linalg as tfl from models.policy.abstract_policy import AbstractPolicy tfd = tfp.distributions logger = logging.getLogger('gaussi...
#!/usr/bin/python # -*- coding: utf-8 -*-x from __future__ import division from builtins import zip from builtins import range from past.utils import old_div import os import re from collections import OrderedDict import warnings import string import probableparsing import pycrfsuite from doublemetaphone import doub...
import logging import warnings import pandas as pd import pyam import tqdm from silicone.database_crunchers import ConstantRatio, QuantileRollingWindows """ Infills all required data for MAGICC and FAIR emulators with minimal configuration """ def infill_all_required_variables( to_fill, database, vari...
#!/usr/bin/env python # -*- coding: utf-8 -*- """ \example x4m300_print_record_playback_PRESENCE_message.py Latest examples is located at https://github.com/xethru/XeThru_ModuleConnector_Examples or https://dev.azure.com/xethru/XeThruApps/_git/XeThru_ModuleConnector_Examples. # Target module: X4M300 # Introduction: ...