text
stringlengths
6.04k
39.5k
#!/usr/bin/env python # -*- coding: utf-8 -*- import nltk from nltk.tokenize import WordPunctTokenizer from nltk.text import TextCollection from nltk import ngrams from nltk import FreqDist from nltk.tokenize import word_tokenize import pandas as pd from pandas.core.frame import DataFrame import numpy as np from stati...
import datetime as date import pandas as pd import plotly.express as px import plotly.graph_objects as go from plotly.subplots import make_subplots import dash from dash import Dash, dcc, html, Input, Output, State from flask import Flask from flask_session import Session from flask import Flask, current_app, flash,...
"""Test Routine for assembly""" from unittest import TestCase from scipy.sparse import csr_matrix from numpy.random import randint import numpy as np from scipy import rand from numpy.testing import assert_array_equal import pandas as pd from pandas.testing import assert_frame_equal from amfe.assembly.assembly impor...
# Copyright (c) 2021, <NAME> # See LICENSE file for details: <https://github.com/moble/scri/blob/master/LICENSE> sxs_formats = [ "rotating_paired_xor_multishuffle_bzip2", ] default_shuffle_widths = (8, 8, 4, 4, 4, 2,) + (1,) * 34 def save(w, file_name=None, file_write_mode="w", L2norm_fractional_tolerance=1e-10,...
import functools import functools import inspect import typing from typing import Dict, Callable, Collection, Tuple, Union, Any, Type import typing_inspect import pandas as pd from hamilton import node from hamilton.function_modifiers_base import NodeCreator, NodeResolver, NodeExpander, sanitize_function_name from ha...
""" /*********************************************************************************/ * The MIT License (MIT) * * * * Copyright (c) 2014 EOX IT Services GmbH ...
#!/usr/bin/env python # -------------------------------------------*-python-*------------------------------------------- # # file src/mesh/python/mesh_types.py # date Monday, Jul 19, 2021, 12:14 pm # brief This script provides mesh classes that calculate and contain unstructred mesh data. # note Copyright (C) 2021, ...
import subprocess import sys # # pip install GitPython # subprocess.check_call([sys.executable, '-m', 'pip', 'install', 'GitPython']) # # pip install -U spacy # subprocess.check_call([sys.executable, '-m', 'pip', 'install', '-U', 'spacy']) # # installing pipelines # subprocess.check_call([sys.executable, '-m', 'spacy',...
from __future__ import print_function import os import sys from time import time as etime import inspect import fnmatch import argparse import json import atexit import types from string import Template from collections import OrderedDict from functools import wraps from struct import Struct from ctypes import Structu...
import pickle import librosa from os import path import numpy as np import pickle as pkl from gensim.test.utils import datapath, get_tmpfile from gensim.models import KeyedVectors from gensim.scripts.glove2word2vec import glove2word2vec from sklearn.decomposition import PCA from sklearn.manifold import TSNE # TODO: ...
#Author: <NAME> #Email: <EMAIL>, <EMAIL> #copyright @ 2018: <NAME>. All right reserved. #Info: #main file to solve deterministic equivalent form of CBM model by back-tracking # #Last update: 10/08/2018 #!/usr/bin/python from __future__ import print_function import sys import cplex import itertools import time from sc...
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ Created on Wed Mar 14 14:31:13 2018 @author: malrawi """ """ DCNNs - Semi Supervised Learning """ """ ##### From [torchvision](https://github.com/pytorch/vision/) package: - ResNet (`resnet18`, `resnet34`, `resnet50`, `resnet101`, `resnet152`) - DenseNet (`densen...
# lpjContainer.py # # Copyright (c) 2013 Protectus,LLC. All Rights Reserved. # # Classes to help manage temporary storage of traffic in dictionaries # and writes to mongo import sys, time from trafcap import trafcap from datetime import datetime import traceback import pprint from trafcap.lpjPacket import * class Lp...
import pyglet from pyglet.window import key, FPSDisplay from pyglet.gl import * import numpy as np import time import gc start_Window_width = 1200 start_Window_height = 800 class Attribute: def __init__(self, game): self.game = game # Attribute knows game it's ...
# SiMPull simulation from __future__ import division, print_function, absolute_import import numpy as np from numpy.random import rand, randn import matplotlib.pyplot as plt from scipy.optimize import curve_fit import os import shutil np.random.seed() n_mol = 500 n_frame = 200 n_delay = 50 n_corr = n_...
#! /usr/bin/env python # -*- coding: utf-8 -*- from collections import defaultdict from copy import deepcopy from bg import Multicolor, KBreak, BreakpointGraph, GRIMMReader, NewickReader, BGGenome import itertools from bg.vertices import TaggedInfinityVertex, TaggedBlockVertex import networkx as nx import os __author_...
''' Recurrent Neural Network in Keras for use on the MIMIC-III ''' from pad_sequences import PadSequences from sklearn.metrics import confusion_matrix, accuracy_score, roc_auc_score, classification_report from time import time from models.tf_base_lstm import Mimic3BaseLstm from models.tf_lstm import Mimic3Lstm from m...
from pm4py.visualization.common import gview from pm4py.visualization.common import save as gsave import tempfile from graphviz import Digraph import uuid import math COLORS = ["#A13CCD", "#05B202", "#39F6C0", "#BA0D39", "#E90638", "#07B423", "#306A8A", "#678225", "#2742FE", "#4C9A75", "#4C36E9", "#7DB022",...
############################################################################## # Copyright (c) 2017 Huawei Technologies Co.,Ltd. # # All rights reserved. This program and the accompanying materials # are made available under the terms of the Apache License, Version 2.0 # which accompanies this distribution, and is avai...
import base64 import datetime import glob import hashlib import json import logging import os import pickle import shutil import uuid from copy import deepcopy from functools import wraps from threading import Thread from typing import Union import pika from core_entities.search_space import Hyperparameter from tools....
import numpy as np import math import torch import torch.nn as nn import torch.nn.functional as F # use GPU if available if torch.cuda.is_available(): torch.set_default_tensor_type(torch.cuda.FloatTensor) else: torch.set_default_tensor_type(torch.FloatTensor) class CLUB(nn.Module): # CLUB: Mutual Informatio...
import logging import time import nibabel import h5py import zarr import nibabel as nib import tracemalloc from tqdm import tqdm from pathlib import Path import numpy as np from joblib import Parallel, delayed, parallel_backend from collections import deque, defaultdict import torch import zarr from torch.utils.data im...
import os import sys import argparse import numpy as np import cv2 import tqdm import face_recognition import math import dlib import PIL.Image from PIL import Image, ImageFile from matplotlib import pyplot as plt from PIL import Image, ImageDraw import imutils from gen_landmarks import gen_landmark import math __ve...
import clang_util import util INCLUDE_GUARD = 'include guard' INCLUSION_DIRECTIVE = 'include' ACCESS_SPECIFIER = 'access specifier' ALIAS = 'alias' CLASS = 'class' CLASS_TEMPLATE = 'class template' CONSTRUCTOR = 'constructor' CONSTRUCTOR_TE...
import torch from torch.utils.data.sampler import BatchSampler, SubsetRandomSampler from torch.utils.data import Dataset, DataLoader import numpy as np import time class Results(object): ''' Results Class for storing the results during training. Could/should be combine with vislogger/logger. ''' d...
import torch import torch.nn as nn import torch.nn.functional as F import matplotlib.pyplot as plt import numpy as np import random from scipy.spatial.distance import cdist from sklearn.metrics.pairwise import euclidean_distances from numpy.linalg import inv from sklearn.metrics.pairwise import cosine_similarity de...
import os import re import click from os.path import join # torch stuff from torchsummary import summary import torch import torch.distributed as dist from torch.nn.parallel import DistributedDataParallel as DDP from torch.utils.data import DataLoader, Subset # mpi4py import mpi4py mpi4py.rc.initialize = False from m...
# Copyright 2019 <NAME> <<EMAIL>> # This code is made available under the MIT License # https://opensource.org/licenses/MIT import usb_midi import adafruit_midi from adafruit_midi.control_change import ControlChange from adafruit_midi.note_off import NoteOff from adafruit_midi.note_on ...
# Kinematic Car Class # <NAME> # California Institute of Technology # May 3, 2018 import os import sys sys.path.append("..") import scipy.io import numpy as np from primitives.prim_car import prim_state_dot from components.auxiliary.tire_data import get_tire_data from scipy.integrate import odeint from numpy import co...
# =============================== # = IMPORTS = # =============================== # import os # os.environ['CUDA_VISIBLE_DEVICES'] = '-1' from tkinter import * import tkinter as tk from PIL import Image, ImageTk from tkinter.ttk import * import tkinter as tk from tkinter import file...
""" Unit tests for contentstore.views.library More important high-level tests are in contentstore/tests/test_libraries.py """ from unittest import mock from unittest.mock import patch import ddt from django.conf import settings from django.test.utils import override_settings from django.urls import reverse from opa...
import sys, codecs, json, re, time, os, getopt, traceback #, hashlib import signal, psutil, tldextract from multiprocessing import Process as Task, Queue from subprocess import call, PIPE, STDOUT import multiprocessing as mp from urllib.parse import urlparse def getlocaltime(): return time.strftime("%Y-%m-%d %...
from tests import TestCase, add from mutagen.id3 import Frames, Frames_2_2, ID3 _22 = ID3(); _22.version = (2,2,0) _23 = ID3(); _23.version = (2,3,0) _24 = ID3(); _24.version = (2,4,0) class FrameSanityChecks(TestCase): def test_TF(self): from mutagen.id3 import TextFrame self.assert_(isinstanc...
""" Export a trained model for application use. Example for use with TensorFlow Serving: python export.py \ --checkpoint_path model.ckpt-399739 \ --export_dir export \ --export_version 1 \ --config config_export.yaml \ --serving \ --add_preprocess \ --class_names class-codes.txt Example for use with TensorFlow Mobile...
import glob import xarray as xr from rasterio import features from affine import Affine import geopandas as gpd from shapely import affinity import sqlite3 import pytz import numpy as np import xarray as xr import glob import os import pandas as pd from lib.db_create.ERA5 import transform_from_latlon, rasterize import ...
# satfetcher ''' This script contains functions for loading various types of raster data. This includes fetching satellite from Digital Earth Australia's ODC sandbox instance. Also handles local rasters (geotiffs) and netcdf files. Contacts: <NAME>: <EMAIL> ''' # import required libraries import os, sys import pand...
#!/usr/bin/env python # -*- coding: utf-8 -*- import argparse import re from datetime import date from operator import attrgetter from itertools import groupby from collections import defaultdict, OrderedDict from dateutil.parser import parse from colorama import Fore, init, Style from sqlalchemy import cast, String ...
import requests import os import json import library.migrationlogger as migrationlogger import library.utils as utils import library.localstore as store import re import library.clients.entityclient as ec from library.clients.endpoints import Endpoints logger = migrationlogger.get_logger(os.path.basename(__file__)) P...
import logging from logging.handlers import RotatingFileHandler import re from urllib.request import urlopen from bs4 import BeautifulSoup import datetime import json import time import pymysql import mysql_foreign_property logging.Formatter.converter = time.gmtime logger = logging.getLogger(__name__) fileHandler =...
r""" For training model. Consist of some Trainers. """ import torch import argparse import torch.nn as nn from pathlib import Path from torch.cuda.amp import GradScaler from torch.optim.swa_utils import AveragedModel from warmup_scheduler_pytorch import WarmUpScheduler from visual.utils import WRITER from visual.uti...
# cloud.py from tmps.fio import IO from tmps.atom import Atom from tmps.units import kB, h import sys import numpy as np from scipy.stats import skew from numpy import pi from numpy.linalg import norm import matplotlib.pyplot as plt from fastkde import fastKDE class Cloud(IO): def __init__( self, ...
import json import math import copy import numpy as np import matplotlib.pyplot as plt import torch import torch.distributions as distributions from daphne import daphne # funcprimitives from evaluation_based_sampling import evaluate_program from tests import is_tol, run_prob_test,load_truth # Useful functions from uti...
# create_database.py # Copyright 2020 <NAME> # Licence: See LICENSE.txt (BSD licence) """Create empty database with chosen database engine and segment size.""" import tkinter import tkinter.ttk import tkinter.filedialog import tkinter.messagebox import os import sys _deny_sqlite3 = bool( sys.version_info.major <...
#!/usr/bin/env python # Copyright 2020 Virginia Polytechnic Institute and State University. """ Plotting script for the periodic hill OpenFOAM cases. """ # standard library imports import os import argparse # third party imports import matplotlib as mpl import matplotlib.pyplot as plt from matplotlib.lines import Lin...
##WZN: 01092018: CAREFUL ABOUT AUMENTATION, it main ruin the saved ground truth!! #WZN: difference is by reading two additional variables of lidat birdview import numpy as np import numpy.random as npr import cv2 from fast_rcnn.config import cfg from utils.blob import prep_im_for_blob, im_list_to_blob from utils.tran...
# -*- coding:utf-8 -*- __author__ = 'Gvammer' import datetime from PManager.models import PM_Task, PM_Project, Tags,PM_User, PM_Timer, listManager, ObjectTags, PM_User_PlanTime, \ PM_Milestone, PM_ProjectRoles, PM_Reminder, Release, PM_MilestoneChanges from django.contrib.auth.models import User from PManager.views...
import torch from torch import nn from torch import optim from torch.nn import functional as F from torch.utils.data import TensorDataset, DataLoader from torch import optim import numpy as np from learner import Learner from copy import deepcopy import itertools class Meta(nn.Module): ""...
import tensorflow as tf from tensorflow.contrib.layers import flatten import numpy as np from utility import weight_variable, bias_variable # from tensorflow.python.framework import tensor_util class RetinaSensor(object): def __init__(self, FLAGS, name='RetinaSensor'): self.name = name with tf.vari...
''' DDB_TO_ESS Purpose of this script is to take data for a given DynamoDB Table and add it that into a elasticsearch index It will add the data in an separate index name to add the info once that is complete it will delete the old index and alias the new index with the old index name *** edit INDEX_VERSION arg if inde...
from functools import reduce import netCDF4 import os import sys from .rasterset import Raster from .simpleexpr import SimpleExpr from . import hpd from . import lu from . import lui from . import ui from . import utils from .utils import outfn def rcp(scenario, year, hpd_trend): rasters = {} lus = [SimpleExpr(...
#!/usr/bin/env python # -*- coding: utf-8 -*- """ Tool that allow artists to load assets into DCC scenes """ from __future__ import print_function, division, absolute_import __author__ = "<NAME>" __license__ = "MIT" __maintainer__ = "<NAME>" __email__ = "<EMAIL>" import os import logging import traceback from funct...
import numpy as np import scipy.sparse as sp import tensorflow as tf def filter_singletons(edges, adj): """ Filter edges that, if removed, would turn one or more nodes into singleton nodes. Parameters ---------- edges: np.array, shape [P, 2], dtype int, where P is the number of input edges. ...
# # Import required packages. # from xml.etree import ElementTree from xml.etree.ElementTree import Element from xml.etree.ElementTree import SubElement import logging import re import datetime from xml.dom import minidom import argparse __author__ = 'ahmed' def reader_csv_file(file_name, read_till=99999, skip_heade...
# -*- coding: utf-8 -*- # # This file is part of the SKABaseDevice project # # # """ SKABASE A generic base device for SKA. """ # PyTango imports import PyTango from PyTango import DebugIt from PyTango.server import run from PyTango.server import Device, DeviceMeta from PyTango.server import attribute, command from ...
import os, re def ensure_file(fname): if not os.path.exists(fname): open(fname, "w").close() def ensure_dir(directory): if not os.path.exists(directory): os.makedirs(directory) def get_valid_filename(s): """ Get a valid filename given a string s, and return it. Courtesy of Django'...
"""Implement of beam_search""" from mxnet import nd import numpy as np import mxnet as mx from six.moves import xrange INF = 1. * 1e7 max_iterations = 200 ctx = mx.cpu() class _StateKeys(object): """Keys to dictionary storing the state of the beam search loop.""" # Variable storing the loop index. CUR_I...
from __future__ import absolute_import from __future__ import division from __future__ import print_function import pickle import json import numpy as np import cv2 DATA_PATH = '../../datasets/kitti/' DEBUG = False # VAL_PATH = DATA_PATH + 'training/label_val/' import os, struct SPLITS = ['3dop', 'subcnn'] # import _...
# coding=utf-8 # Filename: daq.py # pylint: disable=R0903 """ Pumps for the DAQ data formats. """ from __future__ import division, absolute_import, print_function from io import BytesIO import math import struct from struct import unpack import pprint import numpy as np from km3pipe import Pump, Module, Blob from k...
""" Regression tests for KITO Author: <NAME> (ZFTurbo), IPPM RAS: https://github.com/ZFTurbo/ """ from kito import * import time try: from keras.layers import Input, Conv2D, BatchNormalization, Activation, Concatenate, GlobalAveragePooling2D, Dense, \ Conv2DTranspose, Conv3D, Conv1D from keras.models i...
import os import pickle import datetime import datasets import tflearn import numpy as np import tensorflow as tf import matplotlib.pyplot as plt import pyqt_fit.nonparam_regression as smooth from pyqt_fit import npr_methods from scipy.stats import pearsonr from sklearn.metrics import mean_squared_error from tensorflo...
import numpy as np import numpy.linalg as la from scipy.constants import elementary_charge def convert_to_GPa(x): """ convert eV/A^3 to GPa """ return x*elementary_charge*(10**10)**3/(10**9) def convert_from_GPa(x): """ convert GPa to eV/A^3 """ return x/(elementary_charge*(10*...
import torch import torch.nn as nn import torch.nn.functional as F from utils.common import spatial_filter, depth_to_points, render_pointcloud from utils.partial_conv import PartialConv2d class Basic(nn.Module): def __init__(self, strType, intChannels): super(Basic, self).__init__() self.strType = strType if...
### ### Multimodal registration with exhaustive search mutual information ### Author: Johan \"{O}fverstedt ### import torch import numpy as np import torch.nn.functional as F import torch.fft import torchvision.transforms.functional as TF import transformations VALUE_TYPE = torch.float32 # Creates a list of random ...
""" dfeines: - read_shabp(shabp_filename, log=None, debug=False) - SHABP(log=None, debug=False) """ from __future__ import print_function from numpy import array, zeros, arange, ones, cross from numpy.linalg import norm # type: ignore from pyNastran.converters.shabp.shabp_results import ShabpOut #from pyNastran.con...
#!/usr/bin/env python import datetime from datetime import timedelta import json import os from flask import Flask, jsonify, request, render_template, Response, make_response from sqlalchemy import and_, func, or_, select, text from pyfiles.common_helpers import ( datetime_range_str, dict_groups, mode_st...
import sys import numpy as np import cv2 from scipy.spatial.transform import Rotation import imutils import itertools import torch from torchvision import transforms from torch.hub import load_state_dict_from_url from rrc_example_package import rearrange_dice_env import trifinger_simulation.tasks.rearrange_...
# Copyright 2020 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, ...
import numpy as np import matplotlib.pyplot as plt import networkx as nx import pickle import torch from torch import autograd from torch.optim import Optimizer import math from torch.utils.data import Dataset import scipy import pandas as pd import os from sklearn.model_selection import train_test_split from sklearn....
# import seatease.spectrometers as s # Emulator to test w/o spectrometer import seabreeze.spectrometers as s from datetime import datetime from tkinter.messagebox import showerror import matplotlib import numpy as np from LogPatient import * from LoginPage import * from ResetPW import * from SignUp import * from m...
#!/usr/bin/env python # coding:utf-8 """crawler.py""" import argparse import os import re import logging import datetime import requests import csv import json import time from bs4 import BeautifulSoup # def set_argparse(): # """Set the args&argv for command line mode""" # parser = argparse.ArgumentParser() # p...
# -*- coding: utf-8 -*- import pandas as pd import matplotlib.pyplot as plt from pylab import mpl from data_source import local_source mpl.rcParams['font.sans-serif'] = ['FangSong'] # 替换sans-serif字体 def get_all_tradedates(start_date, end_date, freq='daily'): if freq=='daily': date_list=local_source.g...
import mock import unittest import numpy import chainer from chainer import cuda import chainer.functions as F from chainer import gradient_check from chainer import testing from chainer.testing import attr from chainer.testing import condition from chainer.testing import parameterize from chainer.utils import conv ...
import base64 import io import os import os.path import json import shlex import tarfile import tempfile import warnings from distutils.version import StrictVersion from datetime import datetime import requests import six from .. import constants from .. import errors from .. import tls if six.PY2: from urllib i...
# Copyright 2020 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 a...
import discord from discord.ext import commands from PIL import Image import re from typing import Optional, List from io import BytesIO from src.utils import send_message_webhook, doc_url from src.architus_emoji import ArchitusEmoji from src.generate.emoji_list import generate from lib.config import logger from lib....
# Copyright 2019 The ASReview 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 applicabl...
# # 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 # ...
"""code to analyze results of psychophysical experiment """ import h5py import numpy as np import pandas as pd import matplotlib.pyplot as plt def summarize_trials(raw_behavioral_path): r"""Summarize trials in order to determine whether subject was correct or not. With this, we create a n_trials by 4 array w...
import collections import functools import itertools import math import os import platform from contextlib import contextmanager import re import numpy as np import torch as th import torch.distributed as dist import torch.distributions as dis import torch.nn.functional as F from . import logger from mpi4py import MPI...
"""This module implements a loader and dumper for the svmlight format This format is a text-based format, with one sample per line. It does not store zero valued features hence is suitable for sparse dataset. The first element of each line can be used to store a target variable to predict. This format is used as the...
''' "EasyFly" Project by <NAME> Contact Developer at <EMAIL> or at http://aadityarengarajan.vercel.app/ Open-Source Software. Documented for all viewers. Aviation Discord Client with multiple features. Open-Source Software under the Boost Software License 1.0. Boost Software License - Version 1.0 - August 17th, 200...
#Imported Functions import tensorflow as tf import numpy as np import cv2 import time import math import os import serial from models.nets import cpm_hand_slim from utils import cpm_utils #Define port for transmitting data serially to Arduino. port = '/dev/ttyACM0' s = serial.Serial(port,115200) #ignoring tf warning...
"""Amazon S3 filesystem abstraction layer (PRIVATE).""" import concurrent.futures import io import itertools import logging import math import socket from contextlib import contextmanager from typing import Any, BinaryIO, Dict, Iterator, List, Optional, Set, Tuple, Union, cast import boto3 from botocore.exceptions im...
######################################################################### # This is a good place to define materials used through-out the geometry. # # This is based on Tyler https://github.com/tyleralion/duneggd, but # it's gone through quite a few changes. This can provide a base that # is copied into other gegede g...
#!/usr/bin/env python """ IP address parsing for humans. Cidrize takes IP address inputs that people tend to use in practice, validates them, and converts them to objects. It will intelligently parse IPv4/IPv6 addresses, CIDRs, ranges, and wildcard matches to attempt return a valid list of IP addresses. It's smart e...
#!/usr/bin/env python3 # Copyright 2022 The BladeDISC 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 require...
# -*- coding: utf-8 -*- ''' .. _module_mc_bind: mc_bind / named/bind functions ============================================ ''' # Import python libs import traceback import logging import mc_states.api from copy import deepcopy import copy import string from pprint import pformat import shutil import tempfile impo...
# Copyright (c) 2017 Hitachi, 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 ...
# Copyright 2021 The Kubeflow Authors # # 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...
# Copyright Notice: # Copyright 2017-2020 DMTF. All rights reserved. # License: BSD 3-Clause License. For full text see link: https://github.com/DMTF/Redfish-Schema-Creator/blob/master/LICENSE.md import re import sys import csv import json import argparse import lxml import xml_convenience import xml.dom.minidom impor...
#!/usr/bin/python3 # Copyright (C) 2021 LEIDOS. # # 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 ...
""" It includes utilities to search the parameter and model space. """ # Author: <NAME> <<EMAIL>> # License: BSD 3 clause from sklearn.base import BaseEstimator, ClassifierMixin, RegressorMixin, clone from sklearn.utils.metaestimators import _BaseComposition from sklearn.utils.validation import check_is_fitted from s...
# 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, ...
# -*- coding: utf-8 -*- # _ __ # | |/ /___ ___ _ __ ___ _ _ ® # | ' </ -_) -_) '_ \/ -_) '_| # |_|\_\___\___| .__/\___|_| # |_| # # Keeper Secrets Manager # Copyright 2021 Keeper Security Inc. # Contact: <EMAIL> # import click from click_help_colors import HelpColorsGroup, HelpColorsCommand from click_...
''' Interface for mi-pi ''' from kivy.app import App from kivy.clock import mainthread from kivy.logger import Logger from kivy.properties import StringProperty, BooleanProperty,\ NumericProperty, DictProperty, ReferenceListProperty from kivy.uix.settings import SettingsWithSidebar from kivy.uix.boxlayout import ...
# Copyright (c) 2017 Sony 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 applicabl...
# Copyright 2019 Xanadu Quantum Technologies Inc. # 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...
# Copyright (c) Facebook, Inc. and its affiliates. # # This source code is licensed under the MIT license found in the # LICENSE file in the root directory of this source tree. import argparse import os import random import sys import torch import torch.nn.functional as F from io import StringIO from fairseq import o...
#!/usr/bin/env python3 #Copyright (C) 2011 by <NAME> # #Released under the MIT license, see LICENSE.txt """Wrapper to run the cactus_workflow progressively, using the input species tree as a guide tree. """ import logging import os import xml.etree.ElementTree as ET import timeit from argparse import ArgumentParser...
# coding=utf-8 # Copyright 2020 The Google Research Authors. # # 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 applicab...