gt
stringclasses
1 value
context
stringlengths
2.49k
119k
# Copyright 2018 SAS Project 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 requ...
# -*- test-case-name: twisted.conch.test.test_ckeygen -*- # Copyright (c) Twisted Matrix Laboratories. # See LICENSE for details. """ Implementation module for the `ckeygen` command. """ from __future__ import print_function import sys, os, getpass, socket from functools import wraps if getpass.getpass == getpass.un...
#!/usr/bin/env python # vim: tabstop=4 shiftwidth=4 softtabstop=4 # Copyright 2011 OpenStack, LLC # 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 # # ...
# coding=utf-8 # Copyright 2014 Pants project contributors (see CONTRIBUTORS.md). # Licensed under the Apache License, Version 2.0 (see LICENSE). from __future__ import (absolute_import, division, generators, nested_scopes, print_function, unicode_literals, with_statement) import collections i...
from __future__ import with_statement import os import sys import json import getpass import configparser from keyring.util import properties from .escape import escape as escape_for_ini from keyrings.cryptfile.file_base import Keyring, decodebytes, encodebytes class PlaintextKeyring(Keyring): """Simple File K...
import threading import unittest import time from nose.tools import assert_raises, assert_equal, assert_true from pycassa import ColumnFamily, ConnectionPool, InvalidRequestError,\ NoConnectionAvailable, MaximumRetryException, AllServersUnavailable from pycassa.logging.pool_stats_logger import Stat...
# Author: Chao Zhang import requests import json import time import sys class Retrieve: ''' upper-level python class of Metadata and files. ''' def __init__(self, session, sessionId): self.metadata = Metadata(session, sessionId) self.files = Files(session, sessionId) # The assembly cl...
from __future__ import print_function import subprocess import os from .vimgdbexception import VimgdbError from .settings import settings def IsTextfile(filename): """Check if a file is a text file.""" import mimetypes import os if os.path.isfile(filename): mtype = mimetypes.guess_type(filenam...
# -*- coding: utf-8 -*- import copy import pickle from datetime import datetime, timedelta from pymongo import MongoClient, ReadPreference from bson.objectid import ObjectId from bson.timestamp import Timestamp from werkzeug.contrib.sessions import SessionStore, Session import db_util SES_EXP = 14 * 24 * 60 * 60 #...
# 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 ...
from functools import wraps from mock import Mock, call from oauth2.datatype import AccessToken, AuthorizationCode, Client from oauth2.error import AccessTokenNotFound, ClientNotFoundError, \ AuthCodeNotFound from oauth2.store.dbapi.mysql import MysqlAccessTokenStore, MysqlAuthCodeStore, \ MysqlClientStore from...
from twisted.internet.error import ConnectionAborted from twisted.internet import defer from twisted.python.failure import Failure from twisted.test import proto_helpers from twisted.trial.unittest import TestCase from txyam import client class FakeEndpoint(object): def __init__(self, failure=None): self...
# 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...
# 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 ...
""" Control Widgets. Presently comprises a Vertical Slider Demo. Copyright (C) 2008, 2009 - Luke Kenneth Casson Leighton <lkcl@lkcl.net> Copyright (C) 2010 - Cedric Gestes <gestes@aldebaran-robotics.com> """ from pyjamas import Factory import math from pyjamas import DOM from pyjamas import Window from Focu...
# Copyright 2013 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. """Parses the command line, discovers the appropriate benchmarks, and runs them. Handles benchmark configuration, but all the logic for actually running the...
from sympy.core import (Rational, Symbol, S, Float, Integer, Number, Pow, Basic, I, nan) from sympy.functions.elementary.miscellaneous import sqrt from sympy.functions.elementary.exponential import exp from sympy.utilities.pytest import XFAIL def test_rational(): a = Rational(1, 5) r = sqrt(5)/5 assert sq...
# -*- coding: utf-8 -*- # # 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 ...
#!/usr/bin/env python # # Copyright 2007 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 o...
# Copyright 2017 The TensorFlow Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applica...
#!/usr/bin/env python3 # Copyright (c) 2016-2017 The Bitcoin Core developers # Distributed under the MIT software license, see the accompanying # file COPYING or http://www.opensource.org/licenses/mit-license.php. # This script will locally construct a merge commit for a pull request on a # github repository, inspect ...
# Copyright 2018 Telstra Open Source # # 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 gym import numpy as np import glob import pickle from random import randint def downsample(image): # Take only alternate pixels - basically halves the resolution of the image (which is fine for us) return image[::2, ::2, :] def remove_color(image): """Convert all color (RGB is the third dimension i...
""" Fetchartist plugin for beets. """ import os import shutil import pylast import requests from beets import config from beets import plugins from beets import ui from beets import util as beetsutil from beetsplug import util CONTENT_TYPES = ["image/png", "image/jpeg"] FILE_TYPES = ['png', 'jpg'] CONTENT_TYPE_TO_E...
# -*- coding: utf-8 -*- # snapshottest: v1 - https://goo.gl/zC4yUc from __future__ import unicode_literals from snapshottest import Snapshot snapshots = Snapshot() snapshots[ "test_atomic_diagnostic_observed_value_expect_column_kl_divergence_to_be_less_than 1" ] = { "name": "atomic.diagnostic.observed_value"...
from decimal import Decimal as MyDecimal, ROUND_HALF_EVEN import six try: from urlparse import urlparse, urlunparse except ImportError: # python3 from urllib.parse import urlparse, urlunparse from flask_restful import inputs, marshal from flask import url_for __all__ = ["String", "FormattedString", "Url",...
# Copyright (c) 2010-2012 OpenStack, 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 ...
""" Tests for the blaze interface to the pipeline api. """ from __future__ import division from collections import OrderedDict from datetime import timedelta, time from itertools import product, chain from unittest import TestCase import warnings import blaze as bz from datashape import dshape, var, Record from nose_...
#!/usr/bin/env python # -*- coding: utf-8 -*- """Script to manage code reviews.""" from __future__ import print_function from __future__ import unicode_literals import argparse import os import sys from l2tdevtools.review_helpers import review def Main(): """The main program function. Returns: bool: True ...
# Copyright (c) 2015, Frappe Technologies Pvt. Ltd. and Contributors # MIT License. See license.txt from __future__ import unicode_literals import frappe, json from frappe import _dict import frappe.share from frappe.utils import cint from frappe.boot import get_allowed_reports from frappe.permissions import get_role...
# IDLSave - a python module to read IDL 'save' files # Copyright (c) 2010 Thomas P. Robitaille # Many thanks to Craig Markwardt for publishing the Unofficial Format # Specification for IDL .sav files, without which this Python module would not # exist (http://cow.physics.wisc.edu/~craigm/idl/savefmt). # This code was...
"""Support for MQTT JSON lights.""" from contextlib import suppress import json import logging import voluptuous as vol from homeassistant.components.light import ( ATTR_BRIGHTNESS, ATTR_COLOR_MODE, ATTR_COLOR_TEMP, ATTR_EFFECT, ATTR_FLASH, ATTR_HS_COLOR, ATTR_RGB_COLOR, ATTR_RGBW_COLO...
import warnings import numpy import six import chainer from chainer import backend from chainer.backends import cuda from chainer.backends import intel64 from chainer import configuration from chainer import function_node from chainer.utils import argument from chainer.utils import collections_abc from chainer.utils ...
# -*- coding: utf-8 -*- # Author: Florian Mayer <florian.mayer@bitsrc.org> """ Offer a callable object that dispatches based on arbitrary conditions and function signature. That means, whenever it is called, it finds the registered methods that match the input's signature and then checks for user-defined conditions an...
# -*- coding: utf-8 -*- from flexmock import flexmock, flexmock_teardown from .. import EloquentTestCase, mock from ..utils import MockModel, MockQueryBuilder, MockConnection, MockProcessor from eloquent.query.grammars.grammar import QueryGrammar from eloquent.query.builder import QueryBuilder from eloquent.orm.build...
# Copyright 2010 United States Government as represented by the # Administrator of the National Aeronautics and Space Administration. # Copyright 2011 Justin Santa Barbara # All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance wi...
# 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 # # https://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, ...
# ============================================================================== # Copyright 2019 - Philip Paquette # # NOTICE: 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 rest...
from __future__ import absolute_import, division, print_function, \ unicode_literals import six import warnings import types import numpy as np from sklearn.model_selection import StratifiedKFold from sklearn.base import clone from sklearn.utils import deprecated from scikitplot import plotters from scikitplot.p...
from grafanalib.core import * dashboard = Dashboard( title='Pods', version=1, graphTooltip=1, refresh=False, schemaVersion=14, time=Time(start='now-6h'), timezone='browser', inputs=[ { 'name': 'DS_PROMETHEUS', 'label': 'prometheus', 'descript...
#!/usr/bin/env python from __future__ import print_function # Generate test HDF files using different compression configurations, # and validate each resulting file to make sure its contents is OK. # Adapted from example: # "https://support.hdfgroup.org/doc_resource/SZIP/h4_examples/szip32.c". # A bigger dataset is d...
# encoding: utf-8 import datetime from south.db import db from south.v2 import SchemaMigration from django.db import models class Migration(SchemaMigration): def forwards(self, orm): # Adding model 'FilerImage' db.create_table('cmsplugin_filerimage', ( ('cmsplugin_ptr', self.g...
# # 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 us...
# coding: utf8 from __future__ import unicode_literals _exc = { # Slang and abbreviations "cos": "because", "cuz": "because", "fav": "favorite", "fave": "favorite", "misc": "miscellaneous", "plz": "please", "pls": "please", "thx": "thanks", # US vs. UK spelling "accessoris...
from Tkinter import * import tkMessageBox alert = tkMessageBox.showinfo import tkFont SHOW_TOPBAR = True class CowsAndBulls: def __init__(self): self.window = Tk() self.window.title('Notes') self.initFrameAndButtons() self.initMenu() self.initBindings() #s...
import warnings import numpy as np from .base import _fit_liblinear, BaseSVC, BaseLibSVM from ..base import BaseEstimator, RegressorMixin from ..linear_model.base import LinearClassifierMixin, SparseCoefMixin, \ LinearModel from ..feature_selection.from_model import _LearntSelectorMixin from ..utils import check_X...
from django.contrib.contenttypes.generic import GenericForeignKey from django.contrib.contenttypes.models import ContentType from django.core.cache import cache from django.core.exceptions import FieldError from django.db import models from django.dispatch import receiver from django.utils.translation import ugettext_l...
""" CommandLine - Get and parse command line options NOTE: This still is very much work in progress !!! Different version are likely to be incompatible. TODO: * Incorporate the changes made by (see Inbox) * Add number range option using srange() """ from __future__ import print_function __cop...
# # xTAPP.py # # Interface to xTAPP (http://xtapp.cp.is.s.u-tokyo.ac.jp) # # Copyright (c) 2014-2020 Terumasa Tadano # # This file is distributed under the terms of the MIT license. # Please see the file 'LICENCE.txt' in the root directory # or http://opensource.org/licenses/mit-license.php for information. # import n...
# -*- coding: utf-8 -*- # Copyright 2022 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...
# 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 ...
#!/usr/bin/python # -*- coding: utf-8 -*- from django.conf import settings from django.contrib.sites.models import Site from django.core.mail import send_mail from django.db import models from django.template.loader import render_to_string from django.utils.translation import ugettext_lazy as _ from easy_thumbnails.fie...
from __future__ import absolute_import from copy import copy import numpy as nm from sfepy.base.base import output, get_default, OneTypeList, Struct, basestr from sfepy.discrete import Equations, Variables, Region, Integral, Integrals from sfepy.discrete.common.fields import setup_extra_data import six def apply_ebc...
# Copyright 2013-2015 DataStax, 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 writi...
"""Django signal handlers for admin.""" from django.core.urlresolvers import reverse from django.db.models import signals from django.dispatch import receiver from django.utils.translation import ugettext as _ from django.contrib.contenttypes.models import ContentType from modoboa.core import models as core_models f...
"""Provide functionality to interact with Cast devices on the network.""" from __future__ import annotations import asyncio from contextlib import suppress from datetime import datetime, timedelta import functools as ft import json import logging from urllib.parse import quote import pychromecast from pychromecast.co...
# (c) 2012-2014, Michael DeHaan <michael.dehaan@gmail.com> # # This file is part of Ansible # # Ansible 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) an...
import itertools import heapq import collections import operator from functools import partial from random import Random from toolz.compatibility import (map, filterfalse, zip, zip_longest, iteritems, filter) from toolz.utils import no_default __all__ = ('remove', 'accumulate', 'group...
import os from collections import defaultdict from copy import copy from typing import TYPE_CHECKING, Dict, Optional, Set, Tuple from voluptuous import Required from .base import Dependency if TYPE_CHECKING: from dvc.hash_info import HashInfo from dvc.objects.db.base import ObjectDB from dvc.objects.file...
# TODO # # @author Oktay Acikalin <oktay.acikalin@gmail.com> # @copyright Oktay Acikalin # @license MIT (LICENSE.txt) # TODO Try to split display list into chunks so that we have drawable groups. # Next try to find out which list and group has changed and rebuilt it. # This should give us some reduced o...
"""Main entry point for distributed next-gen sequencing pipelines. Handles running the full pipeline based on instructions """ from __future__ import print_function from collections import defaultdict import copy import os import sys import resource import tempfile import toolz as tz from bcbio import log, heterogen...
""" Meta mutual information estimators. """ from numpy.random import rand from numpy import ones from ite.cost.x_initialization import InitX, InitAlpha from ite.cost.x_verification import VerCompSubspaceDims, VerOneDSubspaces,\ VerSubspaceNumberIsK from ite.cost.x_factory import co...
# -*- test-case-name: twisted.trial.test.test_util -*- # Copyright (c) 2001-2004 Twisted Matrix Laboratories. # See LICENSE for details. # """A collection of utility functions and classes, used internally by Trial. API Stability: Unstable This code is for Trial's internal use. Do NOT use this code if you are writin...
from guardian.core import ObjectPermissionChecker from django.contrib.contenttypes.models import ContentType from django.db.models import Q from rest_framework import generics, permissions as drf_permissions from rest_framework.exceptions import ValidationError, PermissionDenied from framework.auth.oauth_scopes import...
#!/usr/bin/python # # Copyright (c) SAS Institute 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...
import datetime import threading import Queue import json import os import thread from server_config import * import database_handler import hashlib import time def read_log_file(filename): content = "Couldn't load log file" try: with open(filename, 'r') as thefile: content = thefile.read(...
############################################################################### # # Copyright 2010 Locomatix, 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.or...
# 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...
# Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed under the Li...
# -*- coding: utf-8 -*- """ struct tests ~~~~~~~~~~~~ tests for canteen's data structures utilities. :author: Sam Gammon <sg@samgammon.com> :copyright: (c) Sam Gammon, 2014 :license: This software makes use of the MIT Open Source License. A copy of this license is included as ``LICENSE.md`` ...
# Copyright (c) Twisted Matrix Laboratories. # See LICENSE for details. """ Tests for L{twisted.application.app} and L{twisted.scripts.twistd}. """ import signal, inspect, errno import os, sys, StringIO try: import pwd, grp except ImportError: pwd = grp = None try: import cPickle as pickle except Impor...
# Copyright IBM Corp. 2013 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 ag...
# Copyright 2016 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 2013 - 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 writ...
# Copyright 2008-2012 Nokia Siemens Networks Oyj # # 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...
# Copyright (C) 2012 - 2014 EMC 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 # # Unle...
# Copyright (C) 2016 Google Inc. # Licensed under http://www.apache.org/licenses/LICENSE-2.0 <see LICENSE file> """Integration test for Clonable mixin""" from ggrc import db from ggrc import models from ggrc.snapshotter.rules import Types from integration.ggrc import generator from integration.ggrc.models import fac...
"""Release data for NetworkX. When NetworkX is imported a number of steps are followed to determine the version information. 1) If the release is not a development release (dev=False), then version information is read from version.py, a file containing statically defined version information. This file...
import sys from argparse import ArgumentParser import os import numpy import worldengine.generation as geo from worldengine.common import set_verbose, print_verbose from worldengine.draw import draw_ancientmap_on_file, draw_biome_on_file, draw_ocean_on_file, \ draw_precipitation_on_file, draw_grayscale_heightmap_on...
""" .. module:: djstripe.admin. :synopsis: dj-stripe - Django Administration interface definitions .. moduleauthor:: Daniel Greenfeld (@pydanny) .. moduleauthor:: Alex Kavanaugh (@kavdev) .. moduleauthor:: Lee Skillen (@lskillen) """ from __future__ import absolute_import, division, print_function, unicode_litera...
""" #;+ #; NAME: #; fN.model #; Version 1.0 #; #; PURPOSE: #; Module for calculating fN models #; 07-Nov-2014 by JXP #;- #;------------------------------------------------------------------------------ """ from __future__ import print_function, absolute_import, division, unicode_literals import numpy as np im...
# GUI Application automation and testing library # Copyright (C) 2006-2017 Mark Mc Mahon and Contributors # https://github.com/pywinauto/pywinauto/graphs/contributors # http://pywinauto.readthedocs.io/en/latest/credits.html # All rights reserved. # # Redistribution and use in source and binary forms, with or without # ...
""" Parsers are used to parse the content of incoming HTTP requests. They give us a generic way of being able to handle various media types on the request, such as form content or json encoded data. """ from __future__ import unicode_literals from django.conf import settings from django.core.files.uploadhandler import...
# -*- coding: utf-8 -*- from operator import attrgetter from pyangbind.lib.yangtypes import RestrictedPrecisionDecimalType from pyangbind.lib.yangtypes import RestrictedClassType from pyangbind.lib.yangtypes import TypedListType from pyangbind.lib.yangtypes import YANGBool from pyangbind.lib.yangtypes import YANGListTy...
import uuid # This isn't named well. It's really a flag that # tells us we're talking about a branch node rather # than a leaf. # Q: Is this really more efficient than just setting # a boolean? _root_index = uuid.uuid4() class LookupTreeNode(object): def __init__(self, index=_root_index, value=None): sel...
# 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...
# Copyright (c) 2021, Manfred Moitzi # License: MIT License """ UserRecord(): store user data in a XRECORD entity. The group code 302 is used as a structure tag. All supported data types have a fixed group code: - str: 1 - int: 90 - 32-bit values - float: 40 - doubles - Vec3, Vec2: 10, 20, 30 - Vec2...
#!/usr/bin/env python import sys import string import os from Tkinter import * import tkFileDialog import tkSimpleDialog import tkMessageBox from PftScan.Fasta import Fasta from PftScan.core import scan # Constants NAME = "p53scan" VERSION = "1.05" DESCRIPTION = """%s - Version %s p53scan (http://www.ncmls.nl/bioinfo/...
# -*- coding: utf-8 -*- # # Copyright (C) 2007-2011 Edgewall Software # All rights reserved. # # This software is licensed as described in the file COPYING, which # you should have received as part of this distribution. The terms # are also available at http://babel.edgewall.org/wiki/License. # # This software consists...
from __future__ import division, print_function import logging import pyvips from pyvips import ffi, vips_lib, Error, _to_bytes, _to_string, GValue, \ type_map, type_from_name, nickname_find logger = logging.getLogger(__name__) ffi.cdef(''' typedef struct _VipsOperation { VipsObject parent_instance;...
# ---------------------------------------------------------------------------- # Copyright (c) 2013--, scikit-bio development team. # # Distributed under the terms of the Modified BSD License. # # The full license is in the file COPYING.txt, distributed with this software. # --------------------------------------------...
from mystruct import * import glob import operator from operator import itemgetter from itertools import * def check_node(node): if not node.children and node.value in glob._attributes: return True else: result = True for child in node.children: if (node.value, child.value)...
# Copyright (c) 2018 PaddlePaddle 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 app...
# Copyright 2019 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, s...
COUNTRIES = [ ("AF", "Afghanistan"), ("AL", "Albania"), ("DZ", "Algeria"), ("AS", "American Samoa"), ("AD", "Andorra"), ("AO", "Angola"), ("AI", "Anguilla"), ("AQ", "Antarctica"), ("AG", "Antigua and Barbuda"), ("AR", "Argentina"), ("AM", "Armenia"), ("AW", "Aruba"), ...
#!/usr/bin/env python2 # Copyright (c) 2014-2015 The Bitcoin Core developers # Distributed under the MIT software license, see the accompanying # file COPYING or http://www.opensource.org/licenses/mit-license.php. # # Test pruning code # ******** # WARNING: # This test uses 4GB of disk space. # This test takes 30 mins...
# Copyright (c) 2015, BROCADE COMMUNICATIONS SYSTEMS, 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 list...
# file namedropper-py/namedropper/util.py # # Copyright 2012 Emory University Library # # 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-...
# coding=utf-8 # Copyright 2019 The Google AI Language Team 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 ...
#!/usr/bin/env python """ Copyright (c) 2006-2017 sqlmap developers (http://sqlmap.org/) See the file 'doc/COPYING' for copying permission """ import codecs import gzip import logging import re import StringIO import struct import zlib from lib.core.common import Backend from lib.core.common import extractErrorMessa...