text
stringlengths
8.04k
46.5k
# Copyright 2020 <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, softwa...
import random import sys import time import copy import numpy as np """ TSP """ # Problem representation and holds genetic algorithm parameters class Tsp: def __init__(self, populationSize, distanceMatrix, k, crossOverRate, mutationRate, localSearchRateInit, localSearchOperator, localSearchRate,...
#!/usr/bin/env python # -*- coding: utf-8 -*- # Author: # <NAME> # # Contact # <EMAIL> # # <NAME>, # Biomolecular Sciences Building, # University of St Andrews, # North Haugh Campus, # St Andrews, # KY16 9ST # Scotland, # UK # # The MIT License """Contains function to parse the output from run-dbCAN. Create standarised...
from knowledgerepr import fieldnetwork from modelstore.elasticstore import StoreHandler from DoD.dod import DoD from DoD import data_processing_utils as dpu from DoD import view_4c_analysis_baseline as v4c from tqdm import tqdm import pandas as pd import os import time from collections import defaultdict import pprin...
#!/usr/bin/env python ############################################################################### # Copyright 2019 The Apollo 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 ...
# MIT License # # Copyright (c) [2018] [<NAME> - <EMAIL>] # # 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...
#!/usr/bin/env python # Project : diafuzzer # Copyright (C) 2017 Orange # All rights reserved. # This software is distributed under the terms and conditions of the 'BSD 3-Clause' # license which can be found in the file 'LICENSE' in this package distribution. import sys import re import os from itertools import g...
"""Top level interfaces and definitions for Lakshmi.""" import yaml import lakshmi.utils as utils from lakshmi.assets import from_dict, to_dict from lakshmi.table import Table class Account: """Class representing an account (collection of assets).""" def __init__(self, name, account_type): """ ...
import platform import time import threading from typing import List, Tuple, Union, Optional, Any class __Cache(dict): '''class to cache data with a short shelf life''' def __init__(self): self.enabled = True super().__init__() def __setitem__(self, key, value, *args, expires=1, **kwargs)...
# vim: ft=python fileencoding=utf-8 sts=4 sw=4 et: # Copyright 2014-2021 <NAME> (The Compiler) <<EMAIL>> # # This file is part of qutebrowser. # # qutebrowser 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, e...
# coding=utf-8 # Copyright 2018 The Google AI Language Team Authors and The HugginFace Inc. 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 # # http://www.apache.org/licenses/LICENS...
# coding: utf-8 # # Load trajectories and cluster indices etc # In[1]: from __future__ import absolute_import from __future__ import division from __future__ import print_function import logging import sys import itertools logging.basicConfig( stream=sys.stdout, level=logging.DEBUG, format='%(asctime)...
#!/bin/python # offen.py 5 import pygame import json import time import functools # partial,wraps #import types # FunctionType #import pdb import sys import random #-DOC-------------------------------------------------------------------------# """ # configuration file options (game.json) # self explanatory "fontsize":...
#!/usr/bin/env python # Copyright 2017 <NAME> # # Licensed under the modified BSD (3-clause BSD) License. # # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied...
import os import numpy as np from linescanning import utils import pandas as pd def correct_angle(x, verbose=False, only_angles=True): """correct_angle This function converts the angles obtained with normal2angle to angles that we can use on the scanner. The scanner doesn't like angles >45 degrees. If...
#!/usr/bin/env python """ Python-ported version of julius segmentation-kit This module is a python port of segmentation-kit perl script. Example call: from PySegmentKit import PySegmentKit, PSKError sk = PySegmentKit(args.data_dir, disable_silence_at_ends=args.disable_silence_at_ends, leave_d...
"""https://github.com/facebookresearch/moco""" import torch import torch.nn as nn import torch.nn.functional as F from torch.nn import Parameter import pdb class NormedLinear_Classifier(nn.Module): def __init__(self, num_classes=1000, feat_dim=2048): super(NormedLinear_Classifier, self).__init__() ...
# 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. from typing import Any, Dict, List, Optional, Tuple import torch import torch.nn.functional as F from fairseq import utils from fairseq.iterat...
import abc import json import logging import inspect from http.cookies import SimpleCookie from urllib.parse import urlparse, parse_qsl from itertools import zip_longest from functools import partial from .util import cached_property, marker_object log = logging.getLogger(__name__) _LEAF_METHOD = marker_object('LEA...
# Copyright 2020 Red Hat, 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 agreed to in writin...
#!/usr/bin/env python3 # # Copyright (c) 2021 SAP SE # 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 # #...
# -*- coding: utf-8 -*- # Part of Odoo. See LICENSE file for full copyright and licensing details. from itertools import chain from odoo import api, fields, models, tools, _ from odoo.exceptions import UserError, ValidationError from odoo.tools import float_repr from odoo.tools.misc import get_lang class Pricelist(...
#!/usr/bin/python3 ''' SPDX-License-Identifier: Apache-2.0 Copyright 2017 Massachusetts Institute of Technology. ''' import asyncio import http.server from http.server import HTTPServer, BaseHTTPRequestHandler from socketserver import ThreadingMixIn import threading import base64 import configparser import uuid impor...
from sympy.core.backend import (S, sympify, expand, sqrt, Add, zeros, ImmutableMatrix as Matrix) from sympy import trigsimp from sympy.printing.defaults import Printable from sympy.utilities.misc import filldedent from sympy.core.evalf import EvalfMixin, prec_to_dps __all__ = ['Vector'] class Vector(Printable, E...
# Copyright 2018 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...
# -*- coding: utf-8 -*- """ :author @yyzhou94 cron: 19 5,21 * * * new Env('欢太商城'); """ import json import os import re import time import requests import utils_tmp try: from notify_mtr import send except ModuleNotFoundError: import notify_mtr_json send = notify_mtr_json.send try: from utils import ...
# orm/loading.py # Copyright (C) 2005-2018 the SQLAlchemy authors and contributors # <see AUTHORS file> # # This module is part of SQLAlchemy and is released under # the MIT License: http://www.opensource.org/licenses/mit-license.php """private module containing functions used to convert database rows into object inst...
from t_core.messages import Packet from t_core.iterator import Iterator import time from multiprocessing import Process from core.himesis_utils import expand_graph, shrink_graph, delete_graph, disjoint_model_union, print_graph, graph_to_dot, get_preds_and_succs from copy import deepcopy import numpy.random as npr...
import uuid import copy import itertools import pkg_resources from enum import Enum from dataclasses import dataclass, field, asdict from typing import ( NamedTuple, Union, List, Dict, Optional, Any, Iterator, Callable, Tuple, ) from ..base import BaseConfig from ..util.data import ...
# =============================================================================== # # Copyright (c) 2013-2017 Qualcomm Technologies, Inc. # All Rights Reserved. # Confidential and Proprietary - Qualcomm Technologies, Inc. # # =============================================================================== """ :Author...
#!/usr/bin/env python3 import argparse # Parsing command-line arguments import logging # Logging import signal # Signal managing import socket # TCP and UDP sockets import select # Poll socket for incoming data import threading # Multi-threading ## # Globals ####...
""" Module that creates GUI window """ import io import json import pickle import struct from itertools import cycle import folium from PyQt5 import QtWidgets, QtCore from PyQt5.QtGui import QIcon, QPixmap from PyQt5.QtWebEngineWidgets import QWebEngineView from folium.plugins import MousePosition from db_classes im...
#!/usr/bin/env python # # Copyright 2009 Facebook # # 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 weakref import numpy as np import pytest from conftest import skipif from devito import (Grid, Function, TimeFunction, SparseFunction, SparseTimeFunction, ConditionalDimension, SubDimension, Constant, Operator, Eq, Dimension, DefaultDimension, _SymbolCache, clear_cache, ...
#!/usr/bin/env python3 # -*- coding: utf-8 -*- # SPDX-License-Identifier: Apache-2.0 """Service module.""" import base64 import pathlib as Path import re import string import time from dataclasses import dataclass, field from enum import Enum from io import BytesIO, TextIOWrapper from os import makedirs from typing imp...
# -*- coding: utf-8 -*- # ***************************************************************************** # NICOS, the Networked Instrument Control System of the MLZ # Copyright (c) 2009-2021 by the NICOS contributors (see AUTHORS) # # This program is free software; you can redistribute it and/or modify it under # the t...
# Copyright 2018 The TensorFlow Probability 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 o...
# 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...
import numpy as np import pyqtgraph as pg from qtpy.QtGui import QBrush import src.iBeatles.step1.utilities as utilities from neutronbraggedge.experiment_handler.experiment import Experiment from ..utilities.colors import pen_color, roi_group_color from ..utilities.gui_handler import GuiHandler from ..utilities.pyqrgr...
# the goal of monster is to make sure that no graphs branch. # this is so that our autograd works # I have 80% confidence that this is a problem with 0.3.1 # I implemented it on 0.4 and I have never dealt with this atrocity. import torch from torch import nn import pdb from torch.autograd import Variable from torch.nn....
# Copyright 2015 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...
import os import numpy as np import cv2 # OpenCV from keras.layers import Dense, Dropout from keras.models import model_from_json, Sequential from keras.optimizers import SGD from sklearn.svm import SVC, SVR # SVM klasifikator from sklearn.metrics import accuracy_score from sklearn.model_selection import train_test_s...
#!/usr/bin/env python import pytest import ldtable _emptyList = ldtable._emptyList ldtable=ldtable.ldtable import sys def test_list_val(): items = [ {'first':'John', 'last':'Lennon','born':1940,'role':['guitar','strings']}, # 0 {'first':'Paul', 'last':'McCartney','born':1942,'role':['bass','...
# Copyright 2019 The Matrix.org Foundation CIC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agre...
import configparser import os import os.path import queue import sys import threading import time import traceback import wx from . import core from . import file_io from . import gui from . import main from . import stringconv from . import version class Frame(gui.MainFrame): def __init__(self, parent): ...
import unittest import numpy as np import pandas as pd from io import StringIO import os from dama.data.ds import Data from dama.data.it import Iterator from dama.drivers.core import Zarr from dama.drivers.sqlite import Sqlite from dama.utils.model_selection import CV from dama.utils.files import rm from numcodecs impo...
#!/usr/bin/env python3 # coding: utf-8 # Copyright 2019-2021 Huawei Technologies Co., Ltd # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Un...
""" bioUtils.py A collection of functions for atomic models manipulations Copyright [2013] EMBL - European Bioinformatics Institute 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...
import os import json import requests from shlex import split from subprocess import check_call from subprocess import check_output from subprocess import CalledProcessError from subprocess import Popen, PIPE from charmhelpers.core import host from charmhelpers.core import hookenv from charmhelpers.core.hookenv import...
#! /usr/bin/python2 # # Copyright (c) 2017 Intel Corporation # # SPDX-License-Identifier: Apache-2.0 # """ .. note:: This is now deprecated and replaced by :mod:`ttbl.tt_qemu2`. """ import contextlib import errno import json import logging import os import socket import subprocess import time import commonl import tt...
import discord import sqlib import re import time import json import urllib.request import asyncio client = discord.Client() bot_admins = ['202563982349959168'] spam_protector = {} helpmsg = {} helpmsg['ticket'] = "Syntax:\n" \ "`{prefix}ticket add [info about the problem]` or\n" \ ...
# SPDX-License-Identifier: Apache-2.0 # # http://nexb.com and https://github.com/nexB/scancode.io # The ScanCode.io software is licensed under the Apache License version 2.0. # Data generated with ScanCode.io is provided as-is without warranties. # ScanCode is a trademark of nexB Inc. # # You may not use this software ...
# Copyright 2019 The dm_control 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 i...
""" Title: A Vision Transformer without Attention Author: [<NAME>](https://twitter.com/ariG23498), [<NAME>](https://twitter.com/ritwik_raha) Date created: 2022/02/24 Last modified: 2022/03/01 Description: A minimal implementation of ShiftViT. """ """ ## Introduction [Vision Transformers](https://arxiv.org/abs/2010.119...
from py_wake.wind_farm_models.engineering_models import PropagateDownwind from py_wake.site._site import UniformSite from py_wake.wind_turbines import OneTypeWindTurbines from py_wake.flow_map import XYGrid from matplotlib.pyplot import cm import numpy as np from py_wake.validation.validation_lib import data_path, inte...
#!/usr/bin/python # # Functions for post-processing UCLALES-SALSA outputs from parallel runs. # 1a) Combine 4D outputs (name.########.nc) # 1b) Combine 3D column outputs (name.cs.########.nc) # 2) Average profile (name.ps.########.nc) or temporal (name.ts.########.nc) statistics # # Execution: # One or more files # p...
""" This module contains classes that add grammatical features to NounChunks, VerbChunks and AdjectiveTokens. The grammatical features drive part of the event recognition. """ # TODO: check whether these are used by Slinket, if so move it to common_modules from __future__ import absolute_import from __future__ imp...
### # pySuStaIn: Python translation of Matlab version of SuStaIn algorithm (https://www.nature.com/articles/s41467-018-05892-0) # Authors: <NAME> (<EMAIL>) and <NAME> (<EMAIL>) # Contributors: <NAME> (<EMAIL>), <NAME> (<EMAIL>) # # For questions/comments related to: object orient implementation of pySustain # con...
import random import math import matplotlib.pyplot as plt import os import platform import statistics from statistics import mean from prettytable import PrettyTable # --- Generator lock - uncomment for pseud-random generator # random.seed(0) # --- Loan Caps - unit loans loan_cap = 2500 # Original loan cap # scalar...
from __future__ import absolute_import, division, print_function from datetime import datetime import cftime import dask.array as da import numpy as np import xarray as xr from .common_utils import esmlab_xr_set_options @xr.register_dataset_accessor('esmlab') class EsmlabAccessor(object): def __init__(self, ds...
#!/usr/bin/env python # -*- coding: utf-8 -*- ''' mongo_import.py (c) <NAME> 21 March, 2014 A script to import the GermaNet lexicon into a MongoDB database. ''' from __future__ import absolute_import, division, print_function from . import germanet from builtins import dict, int, str, zip from collections import de...
''' Doc_String ''' from headers.headers import * from headers.animation_engine import Animation_Engine from headers.player import Player from headers.animation_NPC import NPC_Animation from headers.controller import Controller import pickle ############################...
"""update materialized view cases_per_county_and_day Revision ID: f96132b7a0d1 Revises: <PASSWORD> Create Date: 2021-03-14 16:25:36.237889 """ from alembic import op # revision identifiers, used by Alembic. revision = 'f96132b7a0d1' down_revision = '<PASSWORD>' branch_labels = None depends_on = None def upgrade():...
import bpy import math import bmesh def reset_blend(): #bpy.ops.wm.read_factory_settings() for scene in bpy.data.scenes: for obj in scene.objects: scene.objects.unlink(obj) # only worry about data in the startup scene for bpy_data_iter in ( bpy.data.objects, ...
#! /usr/bin/python # -*- coding: utf-8 -*- """ Secretary This project is a document engine which make use of LibreOffice documents as templates and use the semantics of jinja2 to control variable printing and control flow. To render a template: engine = Renderer() result = engine.rend...
""" Layers to construct the VSLNet model. """ import math import torch import torch.nn as nn import torch.nn.functional as F def mask_logits(inputs, mask, mask_value=-1e30): mask = mask.type(torch.float32) return inputs + (1.0 - mask) * mask_value class Conv1D(nn.Module): def __init__(self, in_dim, out...
# # AutoDock | Raccoon2 # # Copyright 2013, <NAME> # Molecular Graphics Lab # # The Scripps Research Institute # _ # (,) T h e # _/ # (.) S c r i p p s # \_ # (,) R e s e a r c h # ./ # ( ) I n s t ...
from __future__ import (absolute_import, division, print_function, unicode_literals) import six import itertools from distutils.version import LooseVersion as V from nose.tools import assert_raises import numpy as np from numpy.testing.utils import assert_array_equal, assert_array_almost_equa...
import os from base64 import b64encode from datetime import datetime, timedelta from stat import S_IREAD, S_IWRITE, S_IEXEC from subprocess import DEVNULL from unittest.mock import Mock, call, mock_open, patch import pytest from github import GithubException, InputGitAuthor, UnknownObjectException from github.Reques...
import pandas as pd import random import numpy as np import matplotlib.pyplot as plt #before starting: exploring datasets '''function that describes the columns of our datas and counts how many null values there are''' def describe_df(df_names): months = ['October','November'] for i in range(len(...
""" For License information see the LICENSE file. Authors: <NAME>, <NAME>, <NAME> """ import csv import email import io import json import re import xml.etree.ElementTree as ET from abc import ABC, abstractmethod from collections import namedtuple from email.message import Message from logging import getLogger from o...
# sudoku.py from __future__ import print_function import random, itertools, string, operator, copy import constraint, networkx, sympy, glpk #################################################################### # Basic parameters #################################################################### def n_rows(boxsize...
import pprint import copy from collections import defaultdict, namedtuple from cStringIO import StringIO from itertools import groupby, chain from operator import itemgetter from numpy import array from six.moves import xrange from scrapely.extraction import (InstanceBasedLearningExtractor, ...
""" Date: Feb 11st 2020 Author: <NAME> Abstract: Training process and functions """ # -*- coding: UTF-8 -*- import os import cv2 import sys import random import datetime import numpy as np import argparse import tensorflow as tf import time import matplotlib.pyplot as plt from task_generator import TaskGen...
import os import re import io as StringIO import tarfile import json try: import cPickle as pickle except ImportError: import pickle import numpy as np import pandas as pd zone_tag = re.compile('Zone_([0-9]+)') ML_to_mm = 100.0 mm_to_ML = 100.0 MILLION = 1000000.0 def get_gz(tar): """Get list of files ...
# # -*- coding: UTF-8 -*- # trial on the : Satomi machine # Created by Ush on 2018/3/30-04/13 for the LU decomposition # Project name : Class06 # Please contact CHIH, HSIN-CHING/D0631008 when expect to refer this source code. # NOTE : no liability on any loss nor damage by using this source code. it is you...
################################################################################# # The Institute for the Design of Advanced Energy Systems Integrated Platform # Framework (IDAES IP) was produced under the DOE Institute for the # Design of Advanced Energy Systems (IDAES), and is copyright (c) 2018-2021 # by the softwar...
# Copyright (c) 2014, Fundacion Dr. <NAME> # All rights reserved. # 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...
import copy import datetime import pprint from dateutil.relativedelta import * import ee import openet.core.interpolate # TODO: import utils from openet.core # import openet.core.utils as utils from . import utils from .image import Image # Importing to get version number, is there a better way? import openet.ssebop ...
"""Support for interface with an Samsung TV.""" import asyncio from datetime import timedelta, datetime import logging import socket import json import voluptuous as vol import os import wakeonlan import websocket import requests import time from .websockets import SamsungTVWS from .smartthings import smartthingstv a...
""" Copyright (C) 2011-2015 Parametric Products Intellectual Holdings, LLC This file is part of CadQuery. CadQuery is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2...
import wf_core_data.utils import pandas as pd import numpy as np import inflection import collections import itertools import copy import os import logging logger = logging.getLogger(__name__) TIME_FRAME_ID_VARIABLES = [ 'school_year', 'term' ] STUDENT_ID_VARIABLES = [ 'legal_entity', 'student_id_nwe...
import numpy as np import copy import logging import numbers from .objective import Objective from .constants import MODE_FUN, MODE_RES, FVAL, GRAD, HESS, RES, SRES, RDATAS try: import amici except ImportError: amici = None logger = logging.getLogger(__name__) class AmiciObjective(Objective): """ Th...
# 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...
# newton-raphson iteration of motion equations import numpy as np import time from bdbd_common.utils import fstr, gstr from bdbd_common.geometry import lr_est, default_lr_model, D_TO_R from bdbd_common.pathPlan2 import PathPlan import math def estr(a): return fstr(a, fmat='8.4g', n_per_line=10) class NewRaph(): ...
""" We're starting with doing monthly metrics. Then we will refactor to provide programmatic timespans Design note: prefer querying metrics models (if the data are available there) over querying edx-platform models with the exception of CourseOverview NOTE: We're starting to grow this module enough that we want to ...
# This file is part of Indico. # Copyright (C) 2002 - 2020 CERN # # Indico is free software; you can redistribute it and/or # modify it under the terms of the MIT License; see the # LICENSE file for more details. from __future__ import unicode_literals import os import uuid from io import BytesIO from flask import f...
# # The MIT License (MIT) # # Copyright (c) 2018-2020 azai/Rgveda/GolemQuant # # 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 # t...
# -*- coding: utf-8 -*- """Windows manages security by granting rights -- such as the ability to read or write an object -- in the form of Access Control Lists (ACLs) of Access Control Entries (ACEs) to specific security principals: users, groups or other entities. In addition, process security is managed by granting e...
# emacs: -*- mode: python; py-indent-offset: 4; indent-tabs-mode: nil -*- # vi: set ft=python sts=4 ts=4 sw=4 et: ### ### ### ### ### ### ### ### ### ### ### ### ### ### ### ### ### ### ### ## # # See COPYING file distributed along with the PyMVPA package for the # copyright and license terms. # ### ### ### ### ###...
""" A Vocabulary maps strings to integers, allowing for strings to be mapped to an out-of-vocabulary token. """ import codecs import gzip import hashlib import logging import os from collections import defaultdict from enum import Enum from pathlib import Path from typing import Callable, Any, List, Dict, Union, Seque...
import copy import re import xmltodict import json import pathlib import time import elasticsearch import data_RDcode import RDcode_classifications import orphadata_classifications import yaml_schema_descriptor import config_orphadata_elastic as config """ Main module to convert xml from JDBOR to elasticsearch json...
from plotly.offline import plot, iplot, init_notebook_mode from pandas.plotting import register_matplotlib_converters import seaborn as sns import matplotlib.pyplot as plt from urllib.request import urlopen from datetime import timedelta import json import numpy as np import pandas as pd import plotly.express as px imp...
"""Parse MCNP output files to generate a material library. Primary purpose of this module is to generate a material library from burnup summary tables within MCNP output files. Each line of output files is given a state according to specific search keys, and corresponding process function is called to retrieve desired...
from abc import ABCMeta, abstractmethod from collections import OrderedDict from collections.abc import Iterable from .._utils import flatten from .. import tracer from .ast import * from .ast import _StatementList from .cd import * from .ir import * from .rec import * __all__ = ["ValueVisitor", "ValueTransformer", ...
# -*- coding: utf-8 -*- # --- # jupyter: # jupytext: # formats: ipynb,py:light # text_representation: # extension: .py # format_name: light # format_version: '1.5' # jupytext_version: 1.4.1 # kernelspec: # display_name: Python 3 # language: python # name: python3 # --- #...
#====================== BEGIN GPL LICENSE BLOCK ============================ # # 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 3 of the License, or # (at your option) any late...
# Copyright (c) 2016-2017 Anki, 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 in the file LICENSE.txt or at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by appli...
# Copyright (c) 2006-2009 The Trustees of Indiana University. # All rights reserved. # # Redistribution and use in source and binary forms, with or without ...
from enum import Enum import concurrent.futures import logging # pylint: disable=C0302 from functools import cmp_to_key from flask import Blueprint, request import sqlalchemy from src import api_helpers, exceptions from src.queries.search_config import search_title_weight, user_name_weight, \ search_similarity_we...