gt
stringclasses
1 value
context
stringlengths
2.49k
119k
"""Tests for dense recursive polynomials' basic tools. """ from sympy.polys.densebasic import ( dup_LC, dmp_LC, dup_TC, dmp_TC, dmp_ground_LC, dmp_ground_TC, dmp_true_LT, dup_degree, dmp_degree, dmp_degree_in, dmp_degree_list, dup_strip, dmp_strip, dmp_validate, dup_reverse, dup...
# coding=utf-8 # Copyright 2017 F5 Networks 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 agr...
# # __COPYRIGHT__ # # 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, merge, publish, # distribute, sublicen...
# Copyright 2020 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...
# Created by Ryan van Huuksloot # Current Version: Version 3 ############################################################ # This section is for imports. ############################################################ import os import json import urllib from pprint import pprint import contextlib import datetime import...
from __future__ import absolute_import import six import warnings import time import logging from sentry import options from django.core.exceptions import SuspiciousOperation from collections import namedtuple from django.conf import settings from requests.exceptions import RequestException, Timeout, ReadTimeout from...
# Python test set -- built-in functions import test.support, unittest import sys import pickle import itertools # pure Python implementations (3 args only), for comparison def pyrange(start, stop, step): if (start - stop) // step < 0: # replace stop with next element in the sequence of integers # ...
from pytest import raises from .env import NInt, get_session, key from .env import session from sider.types import Set from sider.transaction import Transaction from sider.exceptions import CommitError S = frozenset IntSet = Set(NInt) def test_iterate(session): set_ = session.set(key('test_set_iterate'), S('abc...
import theano from theano import tensor as T from theano.sandbox.rng_mrg import MRG_RandomStreams as RandomStreams from theano.tensor.signal import pool from theano.tensor.nnet import conv3d2d from theano.printing import Print try: import theano.sparse as th_sparse_module except ImportError: th_sparse_module = ...
from decimal import Decimal as D import json import base64 from django import test from django.test.client import Client from django.contrib.auth.models import User from django.core.urlresolvers import reverse from accounts import models USERNAME, PASSWORD = 'client', 'password' def get_headers(): # Create a u...
# 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...
# 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...
# pylint:disable=unused-argument from typing import Optional, TYPE_CHECKING import logging from ailment import Block from ailment.expression import Load, Const, BinaryOp, UnaryOp from ailment.statement import Statement, Assignment, Call, ConditionalJump from ... import AnalysesHub from ..ailgraph_walker import AILGra...
# File: TscCommonLib.py ; This file is part of Twister. # version: 3.023 # Copyright (C) 2012-2013 , Luxoft # Authors: # Andrei Costachi <acostachi@luxoft.com> # Cristi Constantin <crconstantin@luxoft.com> # Daniel Cioata <dcioata@luxoft.com> # Mihail Tudoran <mtudoran@luxoft.com> # Licensed under the A...
# ***************************************************************** # Copyright (c) 2013 Massachusetts Institute of Technology # # Developed exclusively at US Government expense under US Air Force contract # FA8721-05-C-002. The rights of the United States Government to use, modify, # reproduce, release, perform, displ...
# -*- coding: utf-8 -*- # # Copyright 2020-2021 BigML # # 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 socket, struct, platform #region Global Variables blocked_ports = [] open_ports = [] #Set the default timeout value to two seconds socket.setdefaulttimeout(2) #endregion def port_check(ports, ip_address, vsphere_object): for element in ports: v_port = int(element) #connect to the ports...
import random import re import math from heltour.tournament.team_rating_utils import variance, \ team_rating_variance, team_rating_range from itertools import combinations from functools import partial from multiprocessing import Pool from django.conf import settings class Player: pref_score = 0 team = ...
# Authors: # Trevor Perrin # Google - handling CertificateRequest.certificate_types # Google (adapted by Sam Rushing and Marcelo Fernandez) - NPN support # Dimitris Moraitis - Anon ciphersuites # Yngve Pettersen (ported by Paul Sokolovsky) - TLS 1.2 # # See the LICENSE file for legal information regarding us...
# -*- coding: utf-8 -*- """The JSON serializer object implementation.""" import binascii import codecs import collections import json from dfdatetime import factory as dfdatetime_factory from dfdatetime import interface as dfdatetime_interface from dfvfs.lib import definitions as dfvfs_definitions from dfvfs.path im...
"""Support for Hass.io.""" from __future__ import annotations from datetime import timedelta import logging import os from typing import Any, NamedTuple import voluptuous as vol from homeassistant.auth.const import GROUP_ID_ADMIN from homeassistant.components.homeassistant import ( SERVICE_CHECK_CONFIG, SHUT...
from datetime import ( datetime, timedelta, ) import operator import numpy as np import pytest import pytz from pandas._libs.tslibs import iNaT from pandas.core.dtypes.common import is_datetime64_any_dtype from pandas import ( DatetimeIndex, DatetimeTZDtype, Index, NaT, Period, Serie...
# -*- 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) 2015, Alcatel-Lucent Inc, 2017 Nokia # 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 copyrigh...
#!/usr/bin/python # Copyright (c) 2009 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. # Notes: # # This is all roughly based on the Makefile system used by the Linux # kernel, but is a non-recursive make -- we put the entire depen...
# # 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 or agreed to in w...
#!/usr/bin/env python import ROOT ROOT.gROOT.SetBatch() import AtlasStyle from ploter import Ploter import os from array import array class Comparison: def __init__(self): self.out_root_name = "histograms.root" self.ps = Ploter() if os.path.exists(self.out_root_name): self.f...
# -*- coding: utf-8 -*- # JN 2016-01-12 from __future__ import print_function, division, absolute_import import os import csv import glob import numpy as np import tables from .man_spikes import SpikeManager from .tools import expandts, debug from .. import make_attrs FNAME_H5META = 'h5meta.txt' class H5Manager(obj...
import Queue import errno import logging import os import random import re import select import socket import time from collections import defaultdict, deque from threading import Lock from lbryum import __version__ as LBRYUM_VERSION from lbryum.constants import COIN, BLOCKS_PER_CHUNK, DEFAULT_PORTS, proxy_modes from ...
from time import sleep, strftime from os import system, remove from subprocess import Popen from traceback import print_exc from msvcrt import getch class AllFunctions(): def load(FileName): #Open text file and return todo list and pri list ToList = [] State = open(FileName, "r") for Line in State: Line = Li...
import argparse from yaml import load, dump from itertools import groupby import features_pb2 from pandas import DataFrame from ckm import * import glob import logging import collections import os import subprocess from tabulate import tabulate import time import re import StringIO import csv from softmax import ...
#!/usr/bin/python # Software License Agreement (BSD License) # # Copyright (c) 2012, Willow Garage, 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: # # * Redistributions of source code mu...
# 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) 2013 Hewlett-Packard Development Company, L.P. # Copyright (c) 2012 VMware, Inc. # Copyright (c) 2011 Citrix Systems, Inc. # Copyright 2011 OpenStack Foundation # # Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. Yo...
import itertools import warnings from mongoengine.base.common import _document_registry from mongoengine.base.fields import ( BaseField, ComplexBaseField, ObjectIdField, ) from mongoengine.common import _import_class from mongoengine.errors import InvalidDocumentError from mongoengine.queryset import ( ...
# Copyright 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 agreed to in...
#!/usr/bin/env python3 # Copyright (c) 2014-2016 The Bitcoin Core developers # Distributed under the MIT software license, see the accompanying # file COPYING or http://www.opensource.org/licenses/mit-license.php. # Exercise the listtransactions API from test_framework.test_framework import BitcoinTestFramework from ...
""" Support for IP Webcam, an Android app that acts as a full-featured webcam. For more details about this component, please refer to the documentation at https://home-assistant.io/components/android_ip_webcam/ """ import asyncio import logging from datetime import timedelta import voluptuous as vol from homeassista...
"""Project constants Default values and other various configuration for projects, including available theme names and repository types. """ import re from django.utils.translation import ugettext_lazy as _ THEME_DEFAULT = 'default' THEME_SPHINX = 'sphinxdoc' THEME_SCROLLS = 'scrolls' THEME_AGOGO = 'agogo' THEME_TRA...
# -*- coding: utf-8 -*- import numpy as np import phdata import logging def Read3ddata(fname): """ Reads the file provided by fname as a 3ddose file with the following format: |nx ny nz |xBoundary |yBoundary |zBoundary |data where nx, ny, nz are integers providing the s...
"""This module contains a LevelDB client.""" import binascii import rlp from mythril.ethereum.interface.leveldb.accountindexing import CountableList from mythril.ethereum.interface.leveldb.accountindexing import ( ReceiptForStorage, AccountIndexer, ) import logging from ethereum import utils from ethereum.block...
########################################################################## # # Copyright (c) 2012, John Haddon. All rights reserved. # Copyright (c) 2013, Image Engine Design Inc. All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that ...
"""A scheme for assigning categories to morphs. To change the number or meaning of categories, only this file should need to be modified. """ from __future__ import unicode_literals import collections import locale import logging import math import sys from . import utils PY3 = sys.version_info.major == 3 # _str is ...
""" Code for deep Q-learning as described in: Playing Atari with Deep Reinforcement Learning NIPS Deep Learning Workshop 2013 and Human-level control through deep reinforcement learning. Nature, 518(7540):529-533, February 2015 Author of Lasagne port: Nissan Pow Modifications: Nathan Sprague """ import lasagne imp...
# 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...
"""Test Z-Wave locks.""" from unittest.mock import MagicMock, patch import pytest from homeassistant import config_entries from homeassistant.components.zwave import const, lock from tests.mock.zwave import MockEntityValues, MockNode, MockValue, value_changed # Integration is disabled pytest.skip("Integration has b...
# -*- coding: utf-8 -*- import json import sys import warnings from django.conf import settings from django.contrib.auth.models import AnonymousUser, Permission from django.contrib.sites.models import Site from django.core.cache import cache from django.core.exceptions import ObjectDoesNotExist from django.core.urlres...
#!/usr/bin/env python # vim: ai ts=4 sts=4 et sw=4 encoding=utf-8 from django.db import models from fields import PickledObjectField from django.utils.dates import MONTHS, WEEKDAYS_ABBR # set timespans (e.g. EventSchedule.hours, EventSchedule.minutes) to # ALL when we want to schedule something for every hour/minute...
# Copyright 2021 The TF-Coder Authors. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in...
# (C) Datadog, Inc. 2010-2016 # All rights reserved # Licensed under Simplified BSD License (see LICENSE) # stdlib import os # 3p # project from tests.checks.common import AgentCheckTest from checks import CheckException import mock FIXTURE_DIR = os.path.join(os.path.dirname(__file__), 'ci') class TestZabbixInval...
"""The tests for the google calendar platform.""" from __future__ import annotations import copy from http import HTTPStatus from typing import Any, Callable from unittest.mock import Mock, patch import httplib2 import pytest from homeassistant.components.google import ( CONF_CAL_ID, CONF_CLIENT_ID, CON...
# 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 # d...
#!/Users/administrator/dev/njode/env/bin/python2.7 """PILdriver, an image-processing calculator using PIL. An instance of class PILDriver is essentially a software stack machine (Polish-notation interpreter) for sequencing PIL image transformations. The state of the instance is the interpreter stack. The only method...
# -*- coding: utf-8 -*- """ requests.models ~~~~~~~~~~~~~~~ This module contains the primary objects that power Requests. """ import collections import datetime from io import BytesIO, UnsupportedOperation from .hooks import default_hooks from .structures import CaseInsensitiveDict from .auth import HTTPBasicAuth ...
""" <Program Name> test_sig.py <Author> Geremy Condra Vladimir Diaz <vladimir.v.diaz@gmail.com> <Started> February 28, 2012. Based on a previous version of this module. <Copyright> See LICENSE for licensing information. <Purpose> Test cases for for sig.py. """ import unittest import tuf.keydb impor...
######################################################################## # Copyright (c) 2001-2006 Ciranova, Inc. All Rights Reserved. # # # # Permission is hereby granted, free of charge, to any person # # obtaining a copy of this s...
# coding=utf-8 # Copyright 2015 Pants project contributors (see CONTRIBUTORS.md). # Licensed under the Apache License, Version 2.0 (see LICENSE). from __future__ import absolute_import, division, print_function, unicode_literals import os from builtins import str from pants.base.build_environment import get_buildroo...
from ..Qt import QtGui, QtCore import os, weakref, re from ..pgcollections import OrderedDict from ..python2_3 import asUnicode, basestring from .ParameterItem import ParameterItem PARAM_TYPES = {} PARAM_NAMES = {} def registerParameterType(name, cls, override=False): global PARAM_TYPES if name in PARAM_TYPES...
#--------------------------------------------------------------------------- # Copyright 2012 The Open Source Electronic Health Record Agent # # 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 # ...
""" Perceptual decision-making with postdecision wagering, based on Representation of confidence associated with a decision by neurons in the parietal cortex. R. Kiani & M. N. Shadlen, Science 2009. http://dx.doi.org/10.1126/science.1169405 """ from __future__ import division import numpy as np from pyrl i...
import cPickle as pickle from hashlib import md5 from datetime import datetime from functools import partial from django.db import models, router from django.db.models.sql import RawQuery from django.db.models import signals as model_signals from django.core.paginator import EmptyPage, InvalidPage from django.contrib....
# 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...
from pprint import pprint from rootpy import asrootpy, log, collection from rootpy.plotting import Hist2D from rootpy.io import root_open from data_extractors import \ get_dNdeta_in_classifier_bin_interval,\ get_identified_vs_mult,\ get_correlation_histogram,\ get_PNch_vs_estmult,\ get_meanpt_vs_e...
# Copyright (c) 2012 Rackspace Hosting # 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 __future__ import absolute_import from __future__ import unicode_literals import collections import contextlib import imp import os import sys import pkg_resources Arguments = collections.namedtuple('Arguments', ('all', 'patches', 'cmd')) class PymonkeySystemExit(SystemExit): pass class PymonkeyError(R...
# -*- coding: utf-8 -*- ''' Rofi is a TraitMenu subclass that was generated by the scripts in dynmen/utils. ''' from dynmen.common import TraitMenu, Flag, Option class Rofi(TraitMenu): _aliases = [('sep', 'entry_sep'), ('p', 'prompt'), ('i', 'case_insensitive')] _base_command = ['rofi'] _version = 'Versio...
#!/usr/bin/env python # Copyright 2015 gRPC 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...
# -*- coding: UTF-8 -*- from django.test import Client, TestCase from django.contrib.auth.models import Group from django.core.cache import cache from django.core.urlresolvers import reverse from django.utils.translation import ugettext as _ from django.utils import simplejson from privilege.core.config import GROUP_...
# TODO: Use the fact that axis can have units to simplify the process import functools import numpy as np from matplotlib import pylab from pandas._libs.tslibs.period import Period from pandas.core.dtypes.generic import ( ABCPeriodIndex, ABCDatetimeIndex, ABCTimedeltaIndex) from pandas.tseries.offsets import D...
#!/usr/bin/python # # GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) from __future__ import absolute_import, division, print_function __metaclass__ = type ANSIBLE_METADATA = {'metadata_version': '1.1', 'status': ['preview'], 'support...
# Alireza.Karimi.67@gmail.com from __future__ import division import urllib import urllib2 from os import walk import os import time from PIL import Image from sklearn.discriminant_analysis import LinearDiscriminantAnalysis from DataBaseHandler import DatabaseHandler from androdd import dump_all_method import json from...
#!/usr/bin/env python # -*- coding: utf-8 -*- # # Copyright 2009 Zuza Software Foundation # # This file is part of the Translate Toolkit. # # 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...
# Copyright (c) 2012 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. # pylint: disable=W0212 import fcntl import logging import os import psutil from pylib import cmd_helper from pylib import constants from pylib import ...
# Lint as: python2, python3 # Copyright 2020 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 # ...
# # Copyright 2016 The BigDL Authors. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in ...
"""Unit tests for the bytes and bytearray types. XXX This is a mess. Common tests should be unified with string_tests.py (and the latter should be modernized). """ import array import os import re import sys import copy import functools import pickle import tempfile import unittest import test.support import test.s...
#!/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. from test_framework.test_framework import BitcoinTestFramework from test_framework.util import * from ppr...
import numpy as np import pytest from sklearn_extra.robust import ( RobustWeightedClassifier, RobustWeightedRegressor, RobustWeightedKMeans, ) from sklearn.datasets import make_blobs from sklearn.linear_model import SGDClassifier, SGDRegressor, HuberRegressor from sklearn.cluster import KMeans from sklearn...
# Copyright 2014 OpenCore 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,...
# Copyright (C) 2015 Google Inc., authors, and contributors <see AUTHORS file> # Licensed under http://www.apache.org/licenses/LICENSE-2.0 <see LICENSE file> # Created By: anze@reciprocitylabs.com # Maintained By: anze@reciprocitylabs.com scope = "System" description = """ This role grants a user basic object creati...
# Copyright 2013 IBM Corp. # # 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...
#*********************************************************************** # This code is part of pyCMPL # # Copyright (C) 2013 - 2016 # Mike Steglich - Technical University of Applied Sciences # Wildau, Germany # # pyCMPL is a project of the Technical University of # Applied Sciences Wildau and the Inst...
from __future__ import absolute_import import hashlib import numpy as np from scipy.ndimage import convolve1d import scipy.stats import unittest import centrosome.threshold as T class TestThreshold(unittest.TestCase): def test_01_00_nothing(self): result = T.get_otsu_threshold(-np.ones((10, 10))) de...
# 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 applicab...
# vim: tabstop=4 shiftwidth=4 softtabstop=4 # Copyright 2010 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 # # http://www.apache.org/...
import os import re import subprocess from django.utils.text import slugify from django.conf import settings from django.core.cache import cache # These options are passed to Fabric as: fab task --abort-on-prompts=True --user=root ... fabric_special_options = ['no_agent', 'forward-agent', 'config', 'disable-known-hos...
from weakref import WeakSet from syn.five import STR, strf from collections import Iterable from random import randrange, choice from syn.base_utils import hasmethod, message, nearest_base, get_typename, \ istr, rand_primitive, collection_equivalent from syn.types import generate, enumeration_value #--------------...
#!/usr/bin/env python from nose.tools import * from nose import SkipTest import networkx as nx import io class TestGEXF(object): @classmethod def setupClass(cls): try: import xml.etree.ElementTree except ImportError: raise SkipTest('xml.etree.ElementTree not available.')...
#!/usr/bin/python ''' Created on December 11, 2012 @author: Sybrand Strauss ''' import wx import settings import panda_menu import sys import os import os.path import subprocess import threading import response_event import version import messages import logging import config from bucket.abstract import ProgressMessag...
#!/usr/bin/env python # # Copyright 2007 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...
#(C) Copyright Syd Logan 2020 #(C) Copyright Thousand Smiles Foundation 2020 # #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 a...
""" Test the fastica algorithm. """ import itertools import warnings import pytest import numpy as np from scipy import stats from sklearn.utils._testing import assert_almost_equal from sklearn.utils._testing import assert_array_almost_equal from sklearn.decomposition import FastICA, fastica, PCA from sklearn.decomp...
# # 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...
# 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 2013: Mirantis 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 b...
# -*- coding: utf-8 -*- # ================================================================= # # Authors: Tom Kralidis <tomkralidis@gmail.com> # # Copyright (c) 2015 Tom Kralidis # # Permission is hereby granted, free of charge, to any person # obtaining a copy of this software and associated documentation # files (the ...
# -*- coding: utf-8 -*- """ kombu.async.timer ================= Timer scheduling Python callbacks. """ from __future__ import absolute_import import heapq import sys from collections import namedtuple from datetime import datetime from functools import wraps from time import time from weakref import proxy as weakre...
#! /usr/bin/env python # # Protocol Buffers - Google's data interchange format # Copyright 2008 Google Inc. All rights reserved. # https://developers.google.com/protocol-buffers/ # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions ...
from django.db import models from django.contrib.auth.models import User import calendar import ipaddress import uuid from django.core.exceptions import ValidationError import string from Crypto.PublicKey import RSA from uwsgi_it_api.config import UWSGI_IT_BASE_UID import random import datetime import os.path from djan...