gt
stringclasses
1 value
context
stringlengths
2.49k
119k
import json import os from sqlalchemy import ( Table, Column, Integer, String, UniqueConstraint, MetaData ) from sqlalchemy.types import UserDefinedType from twisted.trial.unittest import TestCase from aludel.database import ( get_engine, make_table, CollectionMissingError, _PrefixedTables, CollectionMeta...
#!/usr/bin/python2.4 # Copyright 2008 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.txt # # Unless required by applicable law or ...
# 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...
""" sentry.web.forms.accounts ~~~~~~~~~~~~~~~~~~~~~~~~~ :copyright: (c) 2010-2014 by the Sentry Team, see AUTHORS for more details. :license: BSD, see LICENSE for more details. """ from __future__ import absolute_import from datetime import datetime import pytz from django import forms from django.conf import settin...
# Copyright 2010-2015 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...
# vim: tabstop=4 shiftwidth=4 softtabstop=4 # 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 with the License. You may obtain # a copy of the License at # # http://www.apach...
"""=========================== Ancestral repeats pipeline =========================== :Author: Andreas Heger :Release: $Id: pipeline_ancestral_repeats.py 2876 2010-03-27 17:42:11Z andreas $ :Date: |today| :Tags: Python The ancestral repeats pipeline defines ancestral repeats for a pair of genomes and computes rates f...
#!/usr/bin/python import urllib import urllib2 from optparse import OptionParser import json import os.path import time import re from datetime import datetime, timedelta import sys BASEurl = "https://api.xforce.ibmcloud.com/" sys.path.append('./') import iprep_conf as IC yesterday = datetime.now() - timedelta(day...
# -*- coding: utf-8 -*- import pytest from thriftpy.thrift import TType from thriftpy.parser import load from thriftpy.parser.exc import ThriftParserError, ThriftGrammerError def test_comments(): load('parser-cases/comments.thrift') def test_constants(): thrift = load('parser-cases/constants.thrift') a...
from __future__ import print_function from collections import defaultdict import datetime import fnmatch import glob import json import os import random import re import shlex import textwrap import networkx as nx from django.conf import settings from django.core.management import call_command as django_call_command...
#!/usr/bin/env python """ search_and_DOI_utilities.py Python utilities for searching for PLOS papers, retrieving them, and obtaining the DOIs cited therein. External dependencies: beautifulsoup4, lxml, requests All of these packages can be easilly installed using pip. """ from bs4 import BeautifulSoup from itertools ...
# Copyright (c) 2020 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 appli...
# -*- test-case-name: twisted.scripts.test.test_tap2deb -*- # Copyright (c) Twisted Matrix Laboratories. # See LICENSE for details. """ tap2deb creates Debian packages which wrap .tap files. """ import os import sys import shutil import subprocess from email.utils import formatdate as now from twisted.python import ...
#!/usr/bin/env python # 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. """ IDLNamespace for PPAPI This file defines the behavior of the AST namespace which allows for resolving a symbol as one or more ...
# This file is part of Indico. # Copyright (C) 2002 - 2019 CERN # # Indico is free software; you can redistribute it and/or # modify it under the terms of the MIT License; see the # LICENSE file for more details. from collections import OrderedDict, defaultdict from datetime import datetime from sqlalchemy import Dat...
import unittest from cartouche.nodes import (Node, Arg, Raises, Except, Returns, Warning, Note, Yields, Attribute, Usage) __author__ = 'Robert Smallshire' class NodeTests(unittest.TestCase): def test_create_default_node(self): node = Node() self.assertEqual(node.inden...
# Copyright 2014 Cloudbase Solutions Srl # # 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 ...
XXXXXXXXX XXXXX XXXX XXXXXXXXX XXX XXXXXXXXXX XXXXXXXX X XXXXXXXXX XXXXXXXX XXX XXXXXX XXXXXXXXX XXX XXXXXXXXXX XXX XXXXXXXXXX XX XXXXXXXXXXXXXXXXXXXXXXXXXXX XXX XXXXXX XXXXXX XXXXX XXXXXXXXXXXXXXXX XXXXXXXXXX XXXXX XXXXXXX XXXXXXXX XXXXXXXXXXXXXX XXXXXXX XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX XXXXX XXXXXXXXXXXXXXXXX XX...
""" This module tests the interaction of Kafka with Zookeeper with authentication enabled """ import logging import uuid import pytest import shakedown import sdk_auth import sdk_cmd import sdk_hosts import sdk_install import sdk_marathon import sdk_repository import sdk_utils from tests import auth from tests impor...
import datetime import json from psycopg2.extras import DateRange, DateTimeTZRange, NumericRange, Range from django.contrib.postgres import forms, lookups from django.db import models from .utils import AttributeSetter __all__ = [ 'RangeField', 'IntegerRangeField', 'BigIntegerRangeField', 'DecimalRangeField...
# 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 csv import json import os import shutil import chrome_cache import common_util import emulation import sandwich_metrics import sandwich_misc import s...
"""The Channel class provides a wrapper for interacting with RabbitMQ implementing the methods and behaviors for an AMQP Channel. """ import collections import logging import warnings import uuid from servicebus.pika import frame from servicebus.pika import exceptions from servicebus.pika import spec from servicebus....
# Copyright 2017-present Kensho Technologies, LLC. """Functions that ensure the IR generated by the front-end satisfies all invariants.""" from typing import Dict, List from funcy import pairwise from .blocks import ( Backtrack, CoerceType, ConstructResult, Filter, Fold, MarkLocation, Outp...
# -*- coding: utf-8 -*- # 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.apache.org/licenses/LICENSE-2.0 # # Unless requi...
from zerver.lib.test_classes import WebhookTestCase TOPIC = "sandbox" TOPIC_BRANCH_EVENTS = "sandbox / {branch}" class Bitbucket3HookTests(WebhookTestCase): STREAM_NAME = "bitbucket3" URL_TEMPLATE = "/api/v1/external/bitbucket3?stream={stream}&api_key={api_key}" FIXTURE_DIR_NAME = "bitbucket3" # Diag...
# file: layers.py # brief: A number of objects to wrap caffe layers for conversion # author: Andrea Vedaldi from collections import OrderedDict from math import floor, ceil from operator import mul import numpy as np from numpy import array import scipy import scipy.io import scipy.misc import copy import collections ...
__author__ = "Fabio Giuseppe Di Benedetto" from rcmp_inter_communication import threading from rcmp_command import logging, RCMP_LOGGER_NAME, CREATE_SERVICE_SPACE, START_SERVICE_LAUNCHER, \ START_SERVICE_NODE, DELETE_SERVICE_SPACE, KILL_SERVICE_LAUNCHER, KILL_SERVICE_NODE, \ DELETE_ALL_L_SERVICE_SPACE, KILL_AL...
# Copyright (c) Jupyter Development Team. # Distributed under the terms of the Modified BSD License. # # # Parts of this code is from IPyVolume (24.05.2017), used here under # this copyright and license with permission from the author # (see https://github.com/jupyter-widgets/ipywidgets/pull/1387) """ Functions for ge...
from jinja2 import FileSystemLoader, Environment from shutil import copyfile import datetime import json import numpy as np import os import pprint import shutil import time import re import vendors.google import vendors.microsoft import vendors.clarifai_ import vendors.ibm import vendors.cloudsight_ import vendors.rek...
# Copyright 2017 The UAI-SDK 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 applicable...
# Copyright 2014 Ahmed El-Hassany # # 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 wri...
from pyglet.gl import * from pyglet.window import mouse from pyglet import media, clock from wydget import element, event, util, data, layouts, anim from wydget.widgets.frame import Frame from wydget.widgets.label import Image, Label from wydget.widgets.button import Button class Movie(Frame): name = 'movie' ...
"""Tests formatting as writer-agnostic ExcelCells ExcelFormatter is tested implicitly in pandas/tests/io/test_excel.py """ import pytest from pandas.io.formats.excel import CSSToExcelConverter @pytest.mark.parametrize('css,expected', [ # FONT # - name ('font-family: foo,bar', {'font': {'name': 'foo'}})...
# Copyright 2017 ProjectQ-Framework (www.projectq.ch) # # 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...
# -*- coding: utf-8 -*- """ CIRpy Python interface for the Chemical Identifier Resolver (CIR) by the CADD Group at the NCI/NIH. https://github.com/mcs07/CIRpy """ from __future__ import print_function from __future__ import unicode_literals from __future__ import division import functools import inspect import loggin...
# coding: utf-8 from __future__ import absolute_import, print_function import json import re import six _url_to_api_object = {} class FromUrl(object): def __init__(self, url, _requests): self.url = url self._requests = _requests or __import__('requests') def __call__(self, **kwargs): ...
# -*- coding: utf-8 -*- # This file is part of beets. # Copyright 2016, Adrian Sampson. # # 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 t...
""" .. module:: resource_config_mock_test :platform: Linux, Windows :synopsis: Unit tests for the config module. :license: BSD, see LICENSE for more details. .. moduleauthor:: Ryan Gard <[email protected]> """ __version__ = 0.1 #==========================================================================...
"""Support for Ecovacs Ecovacs Vaccums.""" import logging import sucks from homeassistant.components.vacuum import ( SUPPORT_BATTERY, SUPPORT_CLEAN_SPOT, SUPPORT_FAN_SPEED, SUPPORT_LOCATE, SUPPORT_RETURN_HOME, SUPPORT_SEND_COMMAND, SUPPORT_STATUS, SUPPORT_STOP, SUPPORT_TURN_OFF, ...
# 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.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or ...
from abc import ABCMeta, abstractmethod import json import requests import eventlet from eventlet.green import zmq, time import hexdump import scapy.all import six from .. import LOG as _LOG from ..signal.signal import ActionBase from ..signal.event import PacketEvent from ..signal.action import AcceptEventAction, No...
# -*- coding: utf-8 -*- import datetime import httplib as http import time import functools import furl import itsdangerous import jwe import jwt import mock from django.utils import timezone from framework.auth import cas, signing from framework.auth.core import Auth from framework.exceptions import HTTPError from n...
# Copyright 2020 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 agreed to in writing, s...
#!/usr/bin/env python2 """Display a string of letters to the subject, then ask them whether a certain letter is at a certain position in the sequence. On some trials, ask them to alphabetize the letters in their head.""" # LetterOrderTask_d1.py # Created 10/05/17 by DJ based on SampleExperiment_d1.py # Updated 10/24/...
# 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 logging import os import time from common import chrome_proxy_metrics from common import network_metrics from common.chrome_proxy_metrics import Chro...
# Copyright (c) 2013 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.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writ...
# 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...
# 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 -*- # # SelfTest/Cipher/ARC4.py: Self-test for the Alleged-RC4 cipher # # Written in 2008 by Dwayne C. Litzenberger <[email protected]> # # =================================================================== # The contents of this file are dedicated to the public domain. To # the extent that dedicat...
import threading from ctypes import POINTER, Structure, byref, c_char, c_char_p, c_int, c_size_t from django.contrib.gis.geos.base import GEOSBase from django.contrib.gis.geos.libgeos import GEOM_PTR, GEOSFuncFactory from django.contrib.gis.geos.prototypes.errcheck import ( check_geom, check_sized_string, check_st...
import logging import os from botocore import model from botocore.compat import OrderedDict from botocore.validate import validate_parameters from botocore.docs.bcdoc import docevents import awscli from awscli.argparser import ArgTableArgParser from awscli.argprocess import unpack_argument, unpack_cli_arg from awscli...
import numpy as np import itertools # This file contains a dictionary that maps an integer n to the # distribution of the Wilcoxon signed rank test statistic. # The dictionary can be generated by the functions # _generate_wilcoxon_exact_table and _generate_wilcoxon_exact_table_fast. # The second function is about 20% ...
import ntplib import cPickle as pickle from threading import Lock from mi.core.driver_scheduler import DriverSchedulerConfigKey, TriggerType from mi.core.exceptions import InstrumentProtocolException, InstrumentParameterException from mi.core.instrument.data_particle import DataParticle, DataParticleKey from mi.core.i...
# Copyright (c) 2016 Yingxin Cheng # # 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...
import collections.abc from datetime import datetime from math import ceil from operator import attrgetter from django.core.exceptions import FieldError from django.db import connection, models from django.db.models import Exists, Max, OuterRef from django.db.models.functions import Substr from django.test import Test...
# Copyright 2015-2016 The Meson development team # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # http://www.apache.org/licenses/LICENSE-2.0 # Unless required by applicable law or agree...
# -*- coding: utf-8 -*- from __future__ import absolute_import, division import ndef import pytest from ndef.record import Record from io import BytesIO valid_record_types = [ ('urn:nfc:wkt:XYZ', 1, b'XYZ'), ('urn:nfc:wkt:xyz', 1, b'xyz'), ('application/octet-stream', 2, b'...
# coding=utf-8 # Copyright 2020 The TF-Agents 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 # # https://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable la...
# 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...
"""distutils.command.build_ext Implements the Distutils 'build_ext' command, for building extension modules (currently limited to C extensions, should accommodate C++ extensions ASAP).""" import contextlib import os import re import sys from distutils.core import Command from distutils.errors import * from distutils....
# -*- coding: utf-8 -*- """\ Adds environment directives: .. environment:: Theorem :title: Grothendick-Galois Theorem Let ... textcolor directive and a role (roles are not recursive, they ony can contain a text, no other nodes, directives are recursive though) .. textcolor:: #00FF00 This text is green ...
from generator.actions import Actions import random import string import struct import ctypes import sys MAX_BOARD_WIDTH = 8192 NUM_RUNNERS = 25 NUM_STEPS = 10000 NUM_BOMBS = 5 NUM_SHOTS = 125 class ConwayPixel(): def __init__(self, x=-1, y=-1, is_alive=0, bomb_set=0): self.x = x self.y = y ...
# 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...
import sublime import sublime_plugin try: import thread st_version = 2 except ImportError: from threading import Thread st_version = 3 import subprocess import os import stat import functools import re sublime_guard_controller = None class GuardController(object): def __init__(self): self...
import os from attacksurfacemeter.environments import Environments from attacksurfacemeter.granularity import Granularity from attacksurfacemeter.loaders.cflow_line_parser import CflowLineParser from attacksurfacemeter.loaders.gprof_line_parser import GprofLineParser from attacksurfacemeter.loaders.javacg_line_parser ...
# Copyright 2020 Google LLC # # Licensed under the Apache License, Version 2.0 (the 'License'); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # https://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, ...
try: from collections import OrderedDict except ImportError: from ordereddict import OrderedDict from functools import partial from inspect import isclass from operator import attrgetter import six import sqlalchemy as sa from sqlalchemy.engine.interfaces import Dialect from sqlalchemy.ext.hybrid import hybri...
# Copyright 2015 The TensorFlow Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applica...
import os import bento.core.node from bento.errors import \ InvalidPackage from bento.core import \ PackageDescription from bento.core.pkg_objects import \ Executable from bento.utils.utils import \ is_string _PKG_TO_DIST = { "ext_modules": lambda pkg: [v for v in \ ...
# Copyright 2014 Cisco 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 requir...
import os,sys,re import copy import random from collections import namedtuple from loguru import logger from uuparser import utils class OptionsManager(object): def __init__(self,options): """ input: parser options object to harmonise the way we deal with the parser """ ...
''' Copyright 2019 Trustees of the University of Pennsylvania 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 ...
import copy import types import sys import os from itertools import izip import django.db.models.manipulators # Imported to register signal handler. import django.db.models.manager # Ditto. from django.core import validators from django.core.exceptions import ObjectDoesNotExist, MultipleObjectsReturned, Fie...
# Copyright 2021 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, ...
import datetime from django.core.cache import cache from django.db import models from django.utils import timezone from django.contrib.auth.hashers import make_password from seahub.base.fields import LowerCaseCharField from seahub.utils import normalize_file_path, normalize_dir_path, gen_token, \ normalize_cache_k...
#!/usr/bin/env python # -*- coding: utf8 -*- """ Copyright (c) 2011 Tyler Kenendy <[email protected]> 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...
#!/usr/bin/python # Purpose: accept table and aguments for run_oozie_workflow.py import sys, os, fileinput, errno, commands, re, string, envvars, time,getpass from datetime import datetime from datetime import timedelta import shutil from optparse import OptionParser import subprocess from subprocess import Popen, P...
#!/usr/bin/env python # Standard packages import os import sys import getpass import argparse import configuration import subprocess as sub from toil.job import Job from toil.job import JobException from cassandra.auth import PlainTextAuthProvider def run_and_log_command(command, logfile): """This function uses...
"""Timeseries plotting functions.""" from __future__ import division import numpy as np import pandas as pd from scipy import stats, interpolate import matplotlib as mpl import matplotlib.pyplot as plt from six import string_types import moss from seaborn.utils import color_palette def tsplot(data, time=None, unit=N...
import networkx as nx import numpy as np from numpy import log, exp import scipy as sp import pymc from scipy import stats import emcee import random import matplotlib as mpl import matplotlib.pyplot as plt from itertools import product from sklearn.metrics import mutual_info_score from scipy.stats import gaussian_kde ...
# Copyright 2020 The TensorFlow 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 # # https://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to i...
#!/usr/bin/env python # # Copyright 2015 Cisco Systems, 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 applicab...
# Copyright (C) 2006-2011, University of Maryland # # 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,...
# 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...
# 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...
#!/usr/bin/env python # -*- coding: utf-8 -*- # Copyright (c) 2012-2021 SoftBank Robotics. All rights reserved. # Use of this source code is governed by a BSD-style license (see the COPYING file). """ QiBuild """ from __future__ import absolute_import from __future__ import unicode_literals from __future__ import print...
''' Technical analysis with popular indicators ''' import numpy as np import pandas as pd import json import time import pandas.io.data as web from datetime import date, datetime, timedelta from collections import defaultdict start = datetime(2010, 1, 1) end = date.today() df1 = pd.read_csv('data/companylist.csv') df...
#!/usr/bin/env python import sys import time import math import numpy import random import scipy.linalg #================= def ellipsePoints(angleinc, center, a, b, alpha): ''' Generate a sequence of x,y points given the parameters of an ellipse, and an angular increment. convention note: ellipse points are crea...
# Copyright (c) 2018, NVIDIA CORPORATION. All rights reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applic...
from celery.task import Task from hellomama_registration import utils from registrations.models import Registration, SubscriptionRequest from .models import Change class ImplementAction(Task): """ Task to apply a Change action. """ name = "hellomama_registration.changes.tasks.implement_action" def c...
"""payu.manifest =============== Provides an manifest class to store manifest data, which uses a subclassed yamanifest PayuManifest class :copyright: Copyright 2019 Aidan Heerdegen, see AUTHORS for details. :license: Apache License, Version 2.0, see LICENSE for details. """ from __future__ import print...
# Copyright (c) 2018 Usabilla.com # # 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, dis- #...
# 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. """Layout tests module that is necessary for the layout analyzer. Layout tests are stored in Webkit SVN and LayoutTestCaseManager collects these layout ...
# # 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...
#!/usr/bin/env python # Copyright 2019 The ANGLE project authors. All Rights Reserved. # # Use of this source code is governed by a BSD-style license # that can be found in the LICENSE file in the root of the source # tree. An additional intellectual property rights grant can be found # in the file PATENTS. All contri...
# Copyright (c) 2013 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...
from __future__ import absolute_import from __future__ import division from __future__ import print_function from __future__ import unicode_literals import math from measurement_stats import angle from measurement_stats import ops from measurement_stats import value class Point2D(object): """A class for...""" ...
# -*- coding: utf-8 -*- # PyKov is Python package for the creation, manipulation and study of Markov # Chains. # Copyright (C) 2014 Riccardo Scalco # # 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 Founda...
"""Test functions for matrix module """ from __future__ import division, absolute_import, print_function from numpy.testing import ( TestCase, run_module_suite, assert_equal, assert_array_equal, assert_array_max_ulp, assert_array_almost_equal, assert_raises, rand, ) from numpy import ( arange, rot90,...
# 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...