gt
stringclasses
1 value
context
stringlengths
2.49k
119k
import unittest, logging from pyquante2 import molecule, rhf, uhf, rohf, cuhf, h2, h2o, lih, li, oh, ch4, basisset from pyquante2.ints.integrals import libint_twoe_integrals, twoe_integrals_compressed from pyquante2.geo.molecule import read_xyz from pyquante2.scf.iterators import SCFIterator, AveragingIterator, USCFIte...
""" Web Service protocol for OpenNSA. Author: Henrik Thostrup Jensen <[email protected]> Copyright: NORDUnet (2011) """ import uuid from opennsa.protocols.webservice.ext import twistedsuds WSDL_PROVIDER = 'file://%s/ogf_nsi_connection_provider_v1_0.wsdl' WSDL_REQUESTER = 'file://%s/ogf_nsi_connection_requester_v1_0...
#===----------------------------------------------------------------------===## # # Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. # See https://llvm.org/LICENSE.txt for license information. # SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception # #===----------------------------------...
from django.core.exceptions import ObjectDoesNotExist from django.db import models from django.db.models import Q from django.utils import timezone from django.utils.encoding import python_2_unicode_compatible from django.utils.translation import ugettext_lazy as _ from djblets.db.fields import CounterField, JSONField ...
# Copyright 2019 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...
## #TEMA: MINIMIZATORI #Programski kod koji generira minimizatore iz ulazne datoteke. #Datoteka, kao i velicina miniimzatora(k), broj minimizatora koji se provjeravaju u svakom koraku(w), te velicina podnizova ulaznog niza na kojem zelimo naci minimizatore # zadaju se preko komandne linije. Primjer poziva program...
# Copyright (c) 2013, Web Notes Technologies Pvt. Ltd. and Contributors # MIT License. See license.txt from __future__ import unicode_literals """ Syncs a database table to the `DocType` (metadata) .. note:: This module is only used internally """ import os import frappe from frappe import _ from frappe.utils import...
# # 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...
"""Python version compatibility code.""" import enum import functools import inspect import re import sys from contextlib import contextmanager from inspect import Parameter from inspect import signature from pathlib import Path from typing import Any from typing import Callable from typing import Generic from typing i...
import sublime from ...component_index import component_index from ... import utils from . import cfc_utils projects = {} def build_project_map(project_name): global projects data = {} path_completions, constructor_completions = make_completions(project_name) data["path_completions"] = path_completi...
# -*- coding: utf-8 -*- from lxml.etree import Element from .namespaces import STREAM_NS_URI, STREAM_ERROR_NS_URI, STANZA_ERROR_NS_URI from .stanzas import XML_LANG ''' Concrete :class:StanzaError types. * BadRequestStanzaError * ConflictStanzaError * FeatureNotImplementedStanzaError * ForbiddenStanzaE...
# # # Copyright (C) 2006, 2007, 2010, 2011, 2012 Google Inc. # 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...
# Copyright (c) 2013 Google Inc. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. """Handle version information related to Visual Stuio.""" import errno import os import re import subprocess import sys import gyp import glob class VisualStudi...
from __future__ import unicode_literals import datetime from django.contrib import admin from django.contrib.admin.models import LogEntry from django.contrib.admin.options import IncorrectLookupParameters from django.contrib.admin.templatetags.admin_list import pagination from django.contrib.admin.tests import AdminS...
#!/usr/bin/env python # -*- coding: UTF-8 -*- """ Helper functions for Copy Number Variations (CNV). """ import sys import logging import os.path as op import numpy as np import numpy.ma as ma import pandas as pd import pysam from collections import Counter, defaultdict from itertools import groupby from multiproces...
from typing import Optional import numpy as np from pandas._libs import lib from pandas.core.dtypes.cast import maybe_downcast_numeric from pandas.core.dtypes.common import ( ensure_object, is_datetime_or_timedelta_dtype, is_decimal, is_integer_dtype, is_number, is_numeric_dtype, is_scala...
# Copyright (c) 2007-2009 The PyAMF Project. # See LICENSE.txt for details. """ Google App Engine adapter module. Sets up basic type mapping and class mappings for using the Datastore API in Google App Engine. @see: U{Datastore API on Google App Engine (external) <http://code.google.com/appengine/docs/datastore>} @...
from __future__ import absolute_import from datetime import timedelta import pytest import logging import re import mock from tornado import gen from tornado.ioloop import PeriodicCallback, IOLoop from tornado.httpclient import HTTPError import bokeh.server.server as server from bokeh.application import Applicatio...
### # Copyright (c) 2002-2005, Jeremiah Fincher # Copyright (c) 2008, James McCoy # All rights reserved. # # 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 copyr...
#!/usr/bin/env python # 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 # # Authors: # - Paul Nilsson, [email protected], 2018-2019 import os from...
import pytest from peewee_validates import DEFAULT_MESSAGES from peewee_validates import ModelValidator from peewee_validates import ValidationError from peewee_validates import ManyModelChoiceField from tests.models import BasicFields from tests.models import ComplexPerson from tests.models import Course from tests....
# Copyright Bruno da Silva de Oliveira 2003. Use, modification and # distribution is subject to the Boost Software License, Version 1.0. # (See accompanying file LICENSE_1_0.txt or copy at # http://www.boost.org/LICENSE_1_0.txt) """ Pyste version %s Usage: pyste [options] interface-files where options are: ...
#!/usr/bin/env python3 # Copyright (c) 2010 ArtForz -- public domain half-a-node # Copyright (c) 2012 Jeff Garzik # Copyright (c) 2010-2019 The Bitcoin Core developers # Distributed under the MIT software license, see the accompanying # file COPYING or http://www.opensource.org/licenses/mit-license.php. """Bitcoin test...
#!/usr/bin/env python3 """ Open a shell over MAVLink. @author: Beat Kueng ([email protected]) """ from __future__ import print_function import sys, select import termios from timeit import default_timer as timer from argparse import ArgumentParser try: from pymavlink import mavutil except ImportError as e: ...
import os import os.path as op import logging import shutil import json import subprocess from Bio import SeqIO, AlignIO from Bio.Seq import Seq from Bio.SeqRecord import SeqRecord from Bio.PDB import PDBIO from kmtools.system_tools import switch_paths from . import ( conf, errors, structure_tools, structure_analys...
# Copyright 2013 Hewlett-Packard Development Company, L.P. # 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...
# Copyright 2017,2018,2019,2020,2021 Sony Corporation. # Copyright 2021 Sony Group Corporation. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-...
############################################################################### # EllipsoidalPotential.py: base class for potentials corresponding to # density profiles that are stratified on # ellipsoids: # # \rho(x,y,z) ~ \rho(m) # #...
from __future__ import absolute_import import itertools import operator import os from plumbum.lib import six from abc import abstractmethod, abstractproperty import warnings from functools import reduce class FSUser(int): """A special object that represents a file-system user. It derives from ``int``, so it be...
# Copyright 2016 The LUCI Authors. All rights reserved. # Use of this source code is governed under the Apache License, Version 2.0 # that can be found in the LICENSE file. from __future__ import absolute_import from builtins import object from future.utils import iteritems, with_metaclass from past.builtins import ba...
# Copyright (c) 2013 OpenStack Foundation # All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless ...
import demistomock as demisto from CommonServerPython import * ''' IMPORTS ''' import base64 import json import time import devodsconnector as ds import concurrent.futures import tempfile import urllib.parse import re import os from datetime import datetime from devo.sender import Lookup, SenderConfigSSL, Sender from t...
"""This module implements functions that have to do with number theory.""" import random from operator import mul _stock_primes = [2, 3, 5, 7, 11, 13, 17, 19] def int_pow(x, n): """Raise x to the power n (if n is negative a ValueError is raised). intPow(0, 0) is defined to be 0. """ if n < 0: ...
import string import envi.memory as e_mem import envi.memcanvas as e_canvas import envi.memcanvas.renderers as e_render from PyQt4 import QtGui, QtCore class VQLineEdit(QtGui.QLineEdit): ''' Has an additional signal to emit a signal on release of every keypress. ''' keyReleased = QtCore.pyqtSignal(Qt...
# -*- coding: utf-8 -*- # # Copyright (c) 2020, the cclib development team # # This file is part of cclib (http://cclib.github.io) and is distributed under # the terms of the BSD 3-Clause License. """Calculation of DDEC charges based on data parsed by cclib.""" import copy import random import numpy import logging imp...
########################################################################## # # Copyright (c) 2014-2015, Image Engine Design Inc. All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are # met: # # * Redi...
''' Created on Oct 13, 2014 @author: Abanoub Milad Nassief ''' def build_scoring_matrix(alphabet, diag_score, off_diag_score, dash_score): """ Takes as input a set of characters alphabet and three scores diag_score, off_diag_score, and dash_score. The function returns a dictionary of dictionaries whose e...
# -*- coding: utf-8 -*- import contextlib import hashlib import random import urllib import requests from requests_oauthlib import OAuth1 from .exceptions import LinkedInError from .models import AccessToken, LinkedInInvitation, LinkedInMessage from .utils import enum, to_utf8, raise_for_error, json, StringIO __all...
import os import locale import codecs import nose import numpy as np from numpy import iinfo import pandas as pd from pandas import (date_range, Index, _np_version_under1p9) import pandas.util.testing as tm from pandas.tools.util import cartesian_product, to_numeric CURRENT_LOCALE = locale.getlocale() LOCALE_OVERRID...
# Copyright 2011 Justin Santa Barbara # Copyright 2014 NetApp, Inc. # Copyright 2014 Mirantis, 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.ap...
#!/usr/bin/python # -*- coding: utf-8 -*- import os import sys import csv import shutil import requests import scraperwiki # Below as a helper for namespaces. # Looks like a horrible hack. dir = os.path.split(os.path.split(os.path.realpath(__file__))[0])[0] sys.path.append(dir) from calc_collect import calc from ga_...
# -*- coding: utf-8 -*- import datetime from south.db import db from south.v2 import DataMigration from django.db import models class Migration(DataMigration): def forwards(self, orm): for org in orm.Organization.objects.all(): for user in org.members.all(): orm.OrganizationMem...
''' 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 use this ...
#!/usr/bin/python # -*- coding: utf-8 -*- ################################################################################ # # RMG - Reaction Mechanism Generator # # Copyright (c) 2002-2010 Prof. William H. Green ([email protected]) and the # RMG Team ([email protected]) # # Permission is hereby granted, free of c...
#!/usr/bin/env python # # Copyright 2011 Joseph Rawlings # # 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 l...
# Copyright (c) 2010-2012 OpenStack Foundation # # 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 agree...
# -*- coding: utf-8 -*- import copy import datetime from blist import sortedlist from util import add_raw_postfix from util import dt_to_ts from util import EAException from util import elastalert_logger from util import elasticsearch_client from util import format_index from util import hashable from util import look...
# # SimpleXMLWriter # $Id: SimpleXMLWriter.py 2312 2005-03-02 18:13:39Z fredrik $ # # a simple XML writer # # history: # 2001-12-28 fl created # 2002-11-25 fl fixed attribute encoding # 2002-12-02 fl minor fixes for 1.5.2 # 2004-06-17 fl added pythondoc markup # 2004-07-23 fl added flush method (from Jay Grav...
"""Storage providers backends for Memory caching.""" import re import os import os.path import datetime import json import shutil import warnings import collections import operator import threading from abc import ABCMeta, abstractmethod from .backports import concurrency_safe_rename from .disk import mkdirp, memstr_...
#!/usr/bin/env python # # Copyright 2015 British Broadcasting Corporation # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless require...
from concurrent.futures import ThreadPoolExecutor import importlib import logging from numbers import Number from operator import add import os import psutil import sys from time import sleep import traceback import asyncio import dask from dask import delayed from dask.utils import format_bytes from dask.system impor...
#!/usr/bin/env python3 import socket from util import ip4_range, reassemble4_ether import unittest from framework import VppTestCase, VppTestRunner from template_bd import BridgeDomain from scapy.layers.l2 import Ether from scapy.packet import Raw from scapy.layers.inet import IP, UDP from scapy.layers.vxlan import V...
"""Config flow for HVV integration.""" import logging from pygti.auth import GTI_DEFAULT_HOST from pygti.exceptions import CannotConnect, InvalidAuth import voluptuous as vol from homeassistant import config_entries from homeassistant.const import CONF_HOST, CONF_OFFSET, CONF_PASSWORD, CONF_USERNAME from homeassistan...
#----------------------------------------------------------------------------- # Copyright (c) 2012 - 2020, Anaconda, Inc., and Bokeh Contributors. # All rights reserved. # # The full license is in the file LICENSE.txt, distributed with this software. #-------------------------------------------------------------------...
import flask import flask_login from ..models import Repository, Organization from ..security import permissions #: Manage controller blueprint manage = flask.Blueprint('manage', __name__, url_prefix='/manage') @manage.route('') @flask_login.login_required @permissions.actions.manage_dashboard.require(403) def dash...
# Copyright 2009-2014 MongoDB, 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...
# 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...
# Copyright (c) 2014 Hewlett-Packard Development Company, L.P. # # 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 re...
# coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. # Code generated by Microsoft (R) AutoRest Code Generator. # Changes may ...
# # Copyright 2014 Quantopian, 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 wr...
# coding=utf-8 # Copyright 2022 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...
#!/usr/bin/env python # # Copyright 2018 Google Inc. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless require...
# vim: tabstop=4 shiftwidth=4 softtabstop=4 # Copyright 2013 Metacloud, 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 # ...
# 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...
# -*- coding: utf-8 -*- """ XForm survey question type mapping dictionary module. """ from pyxform.xls2json import QuestionTypesReader, print_pyobj_to_json def generate_new_dict(): """ This is just here incase there is ever any need to generate the question type dictionary from all.xls again. It shoul...
#!/usr/bin/env python3 """ This script compares the interfaces of two versions of Mbed TLS, looking for backward incompatibilities between two different Git revisions within an Mbed TLS repository. It must be run from the root of a Git working tree. For the source (API) and runtime (ABI) interface compatibility, this ...
# vim: tabstop=4 shiftwidth=4 softtabstop=4 # Copyright 2010-2011 OpenStack Foundation # Copyright 2011 Piston Cloud Computing, Inc. # All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a ...
from webapp2_extras.appengine.auth.models import User from google.appengine.ext import ndb from google.appengine.ext.ndb import msgprop from web.alittlecloser_api_messages import MediaJsonFinalResponse import json from alittlecloser_api_messages import ConnectionResponseMessage, SingleConnectionReponseMessage, Comment...
# sqlalchemy/exc.py # Copyright (C) 2005-2015 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 """Exceptions used with SQLAlchemy. The base exception class is :exc:`.SQLAlchemy...
""" IPython/Jupyter Notebook progressbar decorator for iterators. Includes a default `range` iterator printing to `stderr`. Usage: >>> from tqdm.notebook import trange, tqdm >>> for i in trange(10): ... ... """ # future division is important to divide integers and get as # a result precise floating numbers (instea...
from __future__ import unicode_literals from boto.exception import BotoServerError from moto.core import BaseBackend from .utils import random_access_key, random_alphanumeric, random_resource_id from datetime import datetime import base64 class Role(object): def __init__(self, role_id, name, assume_role_policy_...
data = ( ( 2013,1,6), ( 2013,1,11), ( 2013,1,11), ( 2013,1,11), ( 2013,1,12), ( 2013,1,12), ( 2013,1,12), ( 2013,1,12), ( 2013,1,12), ( 2013,1,12), ( 2013,1,12), ( 2013,1,12), ( 2013,1,12), ( 2013,1,12), ( 2013,1,12), ( 2013,1,12), ( 2013,1,13), ( ...
# -*- coding: utf-8 -*- ''' Set up the version of Salt ''' # Import python libs from __future__ import absolute_import, print_function import re import sys import platform # pylint: disable=invalid-name,redefined-builtin # Import 3rd-party libs from salt.ext import six from salt.ext.six.moves import map # Don't rely...
# Copyright 2015 Google Inc. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or a...
# Copyright 2011 Denali Systems, Inc. # All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless requ...
"""Schemas used by insteon component.""" from __future__ import annotations from binascii import Error as HexError, unhexlify from pyinsteon.address import Address from pyinsteon.constants import HC_LOOKUP import voluptuous as vol from homeassistant.const import ( CONF_ADDRESS, CONF_DEVICE, CONF_ENTITY_I...
# -*- coding: utf-8 -*- # PLEASE DO NOT EDIT THIS FILE, IT IS GENERATED AND WILL BE OVERWRITTEN: # https://github.com/ccxt/ccxt/blob/master/CONTRIBUTING.md#how-to-contribute-code from ccxt.base.exchange import Exchange from ccxt.base.errors import ExchangeError from ccxt.base.errors import ArgumentsRequired from ccxt...
#!/usr/bin/python # Copyright 2014 Nervana Systems Inc. All rights reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless req...
from django.conf import settings from django.contrib import messages from django.core.urlresolvers import reverse from django.http import Http404 from django.http import HttpResponseForbidden from django.shortcuts import get_object_or_404 from django.utils.translation import ugettext as _ from django.views.generic impo...
################################# # version 1.0 # Author S.Guieu # History # Todo: # # - Add a possibility of masked_array # from __future__ import print_function, division import numpy as np __all__ = ["islistofaxarray", "isaxarray", "axarrayconcat", "size","size_of_shape", "axarray" ] VERBO...
# coding: utf-8 # Copyright (c) Pymatgen Development Team. # Distributed under the terms of the MIT License. from __future__ import division, unicode_literals, print_function import os import re import json import warnings from io import open from enum import Enum from pymatgen.core.units import Mass, Length, unitiz...
from __future__ import absolute_import from collections import deque import contextlib import errno import locale # we have a submodule named 'logging' which would shadow this if we used the # regular name: import logging as std_logging import re import os import posixpath import shutil import stat import subprocess i...
import os import subprocess import sys import traceback from array import array from collections import deque from shutil import get_terminal_size from threading import Thread import asyncio import audioop from enum import Enum from musicbot.config import static_config from musicbot.entry import RadioSongEntry, Stream...
from datetime import datetime from sqlalchemy import Column, Integer, String, DateTime from sqlalchemy.ext.mutable import MutableDict from sqlalchemy.ext.declarative import declared_attr from sqlalchemy_utils import JSONType from sqlalchemy.orm.exc import NoResultFound from flask_dance.utils import FakeCache, first, g...
# Copyright 2016 The Chromium Authors. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. import os import sys import json from telemetry.internal.browser import browser_options from telemetry.internal.platform import android_device from telemetr...
# # General: # This file is part of .NET Bridge # # Copyright: # 2010 Jonathan Shore # 2017 Jonathan Shore and Contributors # # License: # 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 c...
#!/usr/bin/python # # Copyright 2014 Google 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 a...
# Copyright 2014 The Chromium Authors. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. import collections from collections import defaultdict from telemetry.timeline import model as model_module from telemetry.timeline import tracing_category_f...
## # Copyright (c) 2010-2014 Apple Inc. All rights reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable l...
#!/usr/bin/python # Copyright (c) 2012 The Native Client Authors. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. # # IMPORTANT NOTE: If you make local mods to this file, you must run: # % pnacl/build.sh driver # in order for them to take eff...
# Copyright 2019 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...
from nose.tools import * # noqa from faker import Factory fake = Factory.create() import uuid from scripts.dropbox import migrate_to_external_accounts as migration from framework.mongo import database from tests.base import OsfTestCase from tests.factories import ProjectFactory, UserFactory from website.models im...
# Copyright (C) 2005-2019 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 """ """ from . import util as orm_util from .attributes import QueryableAttribute from .base import ...
#!/usr/bin/env python #-*- coding:utf-8 -*- """ Module containing the logic of the game """ from numpy.core import vstack from numpy.core.numeric import array, zeros, fromiter from numpy.core.numerictypes import int8, int16 from matplotlib.pylab import flatten from itertools import ifilter, product import copy as cp i...
# Copyright 2012 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 agre...
#!/usr/bin/env python import os, time, tempfile, shutil, re, string, pickle, codecs try: from hashlib import md5 except ImportError: from md5 import new as md5 from plasTeX.Logging import getLogger from StringIO import StringIO from plasTeX.Filenames import Filenames from plasTeX.dictutils import ordereddict log = ge...
import datetime import threading from django.utils.html import escape as html_escape from mongoengine import EmbeddedDocument try: from mongoengine.base import ValidationError except ImportError: from mongoengine.errors import ValidationError from mongoengine.base.datastructures import BaseList from mongoengi...
#!/usr/bin/env python # -*- coding: utf-8 -*- # # Generated from FHIR 4.0.0-a53ec6ee1b (http://hl7.org/fhir/StructureDefinition/ImagingStudy) on 2019-05-07. # 2019, SMART Health IT. from . import domainresource class ImagingStudy(domainresource.DomainResource): """ A set of images produced in single study (one...
# -*- coding: utf-8 -*- ### RDH - I'm taking this from Madrona and tweaking it to use extra fields (marked with #[RDH]) ### I'm porting this over to use osgeo ogr instead of the libgdal version 'cause I can't get that to work ### I'm going to use ### to comment out the lines that I'm changing. The replacement will be ...
""" Retrosheet Data Notice: Recipients of Retrosheet data are free to make any desired use of the information, including (but not limited to) selling it, giving it away, or producing a commercial product based upon the data. Retrosheet has one requirement for any such transfer of data or product development, which is...