gt
stringclasses
1 value
context
stringlengths
2.49k
119k
from math import * from cmath import rect as from_polar from itertools import * from frostsynth import * from frostsynth.fft import * from frostsynth.polytable import * four_pi = 4 * pi def sineping_gen(amplitude, frequency, decay, phi=0, srate=None): """Generates amplitude * sin(2 * pi * t * frequency + phi) ...
""" Base view """ import uuid import base64 from ..views import DEFAULT_LIBRARY_NAME_PREFIX, DEFAULT_LIBRARY_DESCRIPTION, \ USER_ID_KEYWORD from flask import request, current_app from flask.ext.restful import Resource from ..models import db, User, Library, Permissions from ..client import client from sqlalchemy.e...
""" mbed SDK Copyright (c) 2011-2015 ARM Limited 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...
# -*- coding: utf-8 -*- """ Module that creates wrapper around llvm functions. The wrapper is callable from Python. """ from __future__ import print_function, division, absolute_import import logging logger = logging.getLogger(__name__) import ast import ctypes import llvm.core from numba import * from numba import...
# =============================================================================== # Copyright 2019 Jan Hendrickx and Gabriel Parrish # # 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:/...
#!/usr/bin/env python3 r""" BMC redfish utility functions. """ import json import re from robot.libraries.BuiltIn import BuiltIn import gen_print as gp MTLS_ENABLED = BuiltIn().get_variable_value("${MTLS_ENABLED}") class bmc_redfish_utils(object): ROBOT_LIBRARY_SCOPE = 'TEST SUITE' def __init__(self): ...
# Generated from java-escape by ANTLR 4.5 # encoding: utf-8 from __future__ import print_function from antlr4 import * from io import StringIO package = globals().get("__package__", None) ischild = len(package)>0 if package is not None else False if ischild: from .QueryListener import QueryListener from .QueryV...
from __future__ import unicode_literals import napalm_yang import pytest import json import os import sys import logging logger = logging.getLogger("napalm-yang") def config_logging(): logger.setLevel(logging.DEBUG) ch = logging.StreamHandler(sys.stdout) formatter = logging.Formatter("%(name)s - %(...
import random import pytest import nlp from nlp import loadPageHTML, stripRawHTML, findOutlinks, onlyWikipediaURLS from nlp import expand_pages, relevant_pages, normalize, ConvergenceDetector, getInLinks from nlp import getOutLinks, Page, determineInlinks, HITS from nlp import Rules, Lexicon, Grammar, ProbRules, Prob...
# -*- coding: utf-8 -*- # Copyright: Damien Elmes <anki@ichi2.net> # License: GNU AGPL, version 3 or later; http://www.gnu.org/licenses/agpl.html import re, sys, threading, time, subprocess, os, atexit import random from anki.hooks import addHook from anki.utils import tmpdir, isWin, isMac # Shared utils ##########...
### readjobsplot_testfede.py #Modified by F.Fanzago ### import sys from ROOT import * import os import math from tdrStyle import * if (len(sys.argv) != 8): print "Usage: python make_stat_plots.py test_files test_duration size_of_time_bins test_start_time RTT site_name target_time" name = sys.argv[1] nn = n...
# Copyright 2018 The TensorFlow Hub 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...
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """Tests for the Less Frequently Used (LFU) Windows Registry plugin.""" from __future__ import unicode_literals import unittest from dfdatetime import filetime as dfdatetime_filetime from dfwinreg import definitions as dfwinreg_definitions from dfwinreg import fake as d...
import os import csv from re import escape from fractions import Fraction from collections import defaultdict import numpy as np from scipy.sparse.linalg import svds from sklearn.metrics.pairwise import manhattan_distances as manhat_dist from sklearn.metrics.pairwise import euclidean_distances as euclid_dist from sklea...
# 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 ...
"""The GeoNet NZ Quakes integration.""" import asyncio from datetime import timedelta import logging from aio_geojson_geonetnz_quakes import GeonetnzQuakesFeedManager import voluptuous as vol from homeassistant.config_entries import SOURCE_IMPORT from homeassistant.const import ( CONF_LATITUDE, CONF_LONGITUDE...
# -*- coding: utf-8 -*- import time import logging import numpy as np from load import load from collections import Counter log = logging.getLogger(__name__) def distance(f, t): return int(np.round(np.sqrt(np.power(np.abs(f.pos[0] - t.pos[0]), 2) + np.power(np.abs(f.pos[1] - t.pos[1]), 2)))) gl_warehouses = {} ...
""" :mod:`dic.dic_io` provides IO operations for DIC and associated files. This includes loading (and possibly modifying) DIC data from ``.MAT`` files and MTS data from ``.CSV`` files. In addition, the ability to find and sort image (or general) filenames is provided. """ from __future__ import absolute_import, divisi...
import os import socket import time from OpenSSL import SSL from netlib.exceptions import HttpReadDisconnect, HttpException from netlib.tcp import Address import netlib.tutils from netlib import tcp, http, socks from netlib.certutils import SSLCert from netlib.http import authentication, CONTENT_MISSING, http1 from ne...
# Copyright (c) 2016 Cisco Systems # All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless require...
#! /usr/bin/env python # -*- mode: python; indent-tabs-mode: nil; -*- # vim:expandtab:shiftwidth=2:tabstop=2:smarttab: # # Copyright (C) 2010,2011 Patrick Crews # # 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 Soft...
from glob import glob import unittest import shutil from irods.exception import CollectionDoesNotExist, DataObjectDoesNotExist import astrogen import os import config import makeflow_gen import pdb from os import path from textwrap import dedent from irods.session import iRODSSession __irods_server_host__ = 'bitol.ipl...
#!/usr/bin/env python import discord from yapsy.PluginManager import PluginManager from plugin import Plugin import os import logging import urllib.request import inspect import commands import botcommands if not discord.opus.is_loaded(): discord.opus.load_opus('opus') # Plugin Command dictionary and decorator pl...
# Copyright (c) 2014, 2015, Oracle and/or its affiliates. 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 ...
# Created by Pearu Peterson, September 2002 from __future__ import division, print_function, absolute_import from numpy.testing import (assert_, assert_equal, assert_array_almost_equal, assert_array_almost_equal_nulp, assert_array_less, assert_allclose) import pyt...
import logging from datetime import datetime from pyramid.view import view_config from pyramid.httpexceptions import HTTPUnauthorized from pyramid.security import forget from pyramid.response import Response from channelstream import total_messages, started_on, total_unique_messages from channelstream.user import Use...
# Copyright (c) 2021 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 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/l...
# 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 ...
# (C) Datadog, Inc. 2012-2016 # All rights reserved # Licensed under Simplified BSD License (see LICENSE) # stdlib from collections import defaultdict import re import time # 3rd party import requests # project from checks import AgentCheck from config import _is_affirmative from util import headers STATS_URL = "/;...
# Copyright (c) 2009, Daniel Krech All rights reserved. # Copyright (C) 2010 Chris Jerdonek (cjerdonek@webkit.org) # # 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 ...
# coding: utf-8 # Copyright (c) Pymatgen Development Team. # Distributed under the terms of the MIT License. from __future__ import division, unicode_literals import logging import numpy as np import time from pymatgen.core.structure import Structure from pymatgen.core.sites import PeriodicSite from monty.json import...
# -*- coding: utf-8 -*- # Copyright 2020 Green Valley Belgium NV # # 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 appl...
from django.contrib.contenttypes.models import ContentType from django.db import models from django.db.utils import DatabaseError from django.utils.encoding import force_unicode from django.utils.translation import ugettext_lazy as _ import bible # python-bible module. See http://github.com/jasford/python-bible from ...
#!/usr/bin/python from __future__ import (absolute_import, division, print_function) # Copyright 2019 Fortinet, Inc. # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation, either version 3 of the Lic...
from unittest import TestCase from unittest.mock import patch from email_parser.model import * from email_parser import renderer, const, config class TestTextRenderer(TestCase): def setUp(self): self.email_locale = 'locale' self.template = Template('dummy', [], '<style>body {}</style>', '<body>{{...
# # 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 # Copyright 2016 The TensorFlow Authors All Rights Reserved. # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicab...
# Copyright 2020 The TensorFlow Quantum 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...
import numpy as np import glob import sys import random class record_fetcher(object): ''' creates feature arrays and labels from raw accelerometer/demographic data no test/train splitting is included methods: - fetch(batch_size,minibatch_size,binary) calculates summary statistics fro...
class SASTask: def __init__(self, variables, init, goal, operators, temp_operators,axioms, num_axioms, comp_axioms): self.variables = variables self.init = init self.goal = goal self.operators = operators self.temp_operators = temp_operators self.axioms = axioms self.num_axioms = ...
# -*- coding: utf-8 -*- import asyncio import os import re import signal import pytest from unittest import mock from strawboss import main @mock.patch('dotenvfile.loadfile') def test_main_procfile_not_found(load_dotenvfile, subprocess_factory, capfd, event_loop): loop = asyncio....
import logging from django.db import models from django.contrib.auth.models import User from django.db import IntegrityError from apps.fbschema.struct_models import * from apps.fbschema.utils import get_fql_from_model from apps.fbschema.utils import compare_keys_with_fields logger = logging.getLogger(__name__) cla...
# Copyright 2011 Rackspace # 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 ...
# coding: utf-8 # # Copyright 2020 The Oppia 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 requi...
#!/usr/bin/env python # # Co-ordinates and utility functions for simulating # Whitelees windfarm near Ayr, Scotland # # Copyright (c) 2017 DevicePilot Ltd. # # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files (the "Software"), to deal # i...
#!/usr/bin/env python3 # -*- coding: utf-8 -*- try: from . import GAuth from . import GCache except: import GAuth import GCache import logging import os import apiclient from apiclient.http import MediaFileUpload from apiclient.http import MediaIoBaseDownload import time DIR_MIME = 'application/vnd.g...
# Copyright 2014 Open Data Science Initiative and other authors. See AUTHORS.txt # Licensed under the BSD 3-clause license (see LICENSE.txt) import os import sys import numpy as np import math class vertex: def __init__(self, name, id, parents=[], children=[], meta={}): self.name = name self.id =...
# -*- coding: utf-8 -*- """ Created on Tue Oct 6 12:33:23 2015 @author: nouamanelaanait """ import warnings, os import numpy as np import h5py import multiprocess as mp from skimage.morphology import dilation, disk from scipy.ndimage import gaussian_filter import cv2 class Corrector(object): ''' This is an Obje...
# (c) 2012-2013, 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...
# (c) 2005 Ian Bicking and contributors; written for Paste (http://pythonpaste.org) # Licensed under the MIT license: http://www.opensource.org/licenses/mit-license.php """ This module implements a class for handling URLs. """ import urllib import cgi from paste import request # Imported lazily from FormEncode: variab...
import chainer from chainer import configuration from chainer import functions from chainer import initializers from chainer import link from chainer.utils import argument from chainer import variable class BatchNormalization(link.Link): """Batch normalization layer on outputs of linear or convolution functions....
# -*- coding: utf-8 -*- ''' Covenant Add-on This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. This prog...
# ------------------------------------------------------------------------------ # @brief: # The nervenet plus! Where we use truncated bp to optimize the weights # @Input: # _input_obs: [num_prop_steps * batch_size, ob_size] # _input_hidden_state: [batch_size, hidden_dim], # ...
# encoding: utf-8 """ Parser for Compact XML Expression Language (CXEL) ('see-ex-ell'), a compact XML specification language I made up that's useful for producing XML element trees suitable for unit testing. """ from __future__ import print_function from pyparsing import ( alphas, alphanums, Combine, dblQuotedSt...
# 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 ...
# Copyright 2014-2019 M. A. Zentile, J. Keaveney, L. Weller, D. Whiting, # C. S. Adams and I. G. Hughes. # 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/L...
# 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...
# coding=utf-8 # Copyright 2015 Foursquare Labs Inc. All Rights Reserved. from __future__ import absolute_import, division, print_function, unicode_literals import os import re import shutil from pants.backend.jvm.targets.scala_library import ScalaLibrary from pants.base.build_environment import get_buildroot from p...
""" Django settings for pinecast project. Generated by 'django-admin startproject' using Django 1.8.2. For more information on this file, see https://docs.djangoproject.com/en/1.8/topics/settings/ For the full list of settings and their values, see https://docs.djangoproject.com/en/1.8/ref/settings/ """ import logg...
# -*- coding: utf-8 -*- # # Copyright (C) 2011-2013 Sebastien Helleu <flashcode@flashtux.org> # Copyright (C) 2011 xt <xt@bash.no> # Copyright (C) 2012 Filip H.F. "FiXato" Slagter <fixato+weechat+urlserver@gmail.com> # Copyright (C) 2012 WillyKaze <willykaze@willykaze.org> # Copyright (C) 2013 Thomas Kindler <mail_weec...
from sqlalchemy import Boolean, Column, Date, DateTime, ForeignKey, func, Integer, String, Text, Index from sqlalchemy.orm import relationship from dataactcore.models.baseModel import Base class _FSRSAttributes: """Attributes shared by all FSRS models""" id = Column(Integer, primary_key=True) duns = Colu...
# vim: tabstop=4 shiftwidth=4 softtabstop=4 # Copyright (c) 2012 Zadara Storage, Inc. # Copyright (c) 2012 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...
# 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...
#!/usr/bin/env python3 # Copyright 2018 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. """Code generator for Vulkan function pointers.""" import filecmp import optparse import os import platform import sys from os import...
"""Dummy module to create ports to occupy low ip addresses""" #!/usr/bin/env python import pyrax from ansible.module_utils.basic import * uri_ports = 'https://dfw.networks.api.rackspacecloud.com/v2.0/ports' uri_networks = 'https://dfw.networks.api.rackspacecloud.com/v2.0/networks' def get_port(cnw, network_id, ip_l...
from collections import defaultdict from django.contrib.auth.decorators import login_required from django.contrib.messages import info from django.core.urlresolvers import get_callable, reverse from django.http import Http404, HttpResponse from django.shortcuts import get_object_or_404, redirect from django.template ...
# # Settings.py -- Simple class to manage stateful user preferences. # # This is open-source software licensed under a BSD license. # Please see the file LICENSE.txt for details. # import os import pprint import ast import numpy from . import Callback from . import Bunch unset_value = ("^^UNSET^^") class SettingErr...
# coding: utf-8 # # Copyright 2014 The Oppia 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 requi...
# -*- coding: utf-8 -*- from ccxt.async.base.exchange import Exchange import base64 import hashlib from ccxt.base.errors import ExchangeError class bithumb (Exchange): def describe(self): return self.deep_extend(super(bithumb, self).describe(), { 'id': 'bithumb', 'name': 'Bithumb...
# # This file is part of the PyMeasure package. # # Copyright (c) 2013-2021 PyMeasure Developers # # 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 limit...
from redis import Redis, StrictRedis, ConnectionPool from leaderboard.leaderboard import Leaderboard import unittest import time import sure class LeaderboardTest(unittest.TestCase): def setUp(self): self.leaderboard = Leaderboard('name', decode_responses=True) def tearDown(self): self.leade...
#!/usr/bin/env python # -*- coding: utf-8 -*- # __BEGIN_LICENSE__ # Copyright (c) 2009-2013, United States Government as represented by the # Administrator of the National Aeronautics and Space Administration. All # rights reserved. # # The NGT platform is licensed under the Apache License, Version 2.0 (the # "Lic...
# 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...
#!/usr/bin/env python # #pylint: disable=line-too-long,invalid-name,missing-docstring,redefined-outer-name,too-many-arguments,too-many-locals,too-many-statements,logging-format-interpolation # import os import sys import time import json import subprocess import logging as log def setup_logging(loglevel=log.INFO): ...
#!/usr/bin/python # -*- coding: utf-8 -*- # Copyright: (c) 2017, Davis Phillips davis.phillips@gmail.com # 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_ver...
from logging import getLogger from numpy import zeros, rollaxis, indices import traceback from os.path import join from collections import defaultdict from pprint import pformat import os NOTEX = (0x1F0, 0x1F0) import yaml log = getLogger(__name__) class Block(object): """ Value object representing an (id...
from models.retinanet.builder import RetinaNet as Detector from models.NASFPN.builder import ResNetV1bFPN as Backbone from models.sepc.builder import RetinaNetNeckWithBNWithSEPC as Neck from models.sepc.builder import RetinaNetHeadWithBNWithSEPC as RpnHead from mxnext.complicate import normalizer_factory def get_conf...
# Copyright (C) 2010, 2011 Sebastian Thiel (byronimo@gmail.com) and contributors # # This module is part of GitDB and is released under # the New BSD License: http://www.opensource.org/licenses/bsd-license.php """Contains basic implementations for the interface building blocks""" from git.db.interface import * from gi...
"""Univariate features selection.""" # Authors: V. Michel, B. Thirion, G. Varoquaux, A. Gramfort, E. Duchesnay. # L. Buitinck, A. Joly # License: BSD 3 clause import numpy as np import warnings from scipy import special, stats from scipy.sparse import issparse from ..base import BaseEstimator from ..prepr...
import os import py.test from tiddlyweb.config import config from tiddlyweb.store import Store, NoBagError, NoUserError, NoRecipeError, NoTiddlerError from tiddlyweb.model.bag import Bag from tiddlyweb.model.recipe import Recipe from tiddlyweb.model.tiddler import Tiddler from tiddlyweb.model.user import User from...
import os import numpy as np import pandas as pd from lingam.base import _BaseLiNGAM from lingam.causal_effect import CausalEffect class DummyLiNGAM(_BaseLiNGAM): def __init__(self, random_state=None, causal_order=None, adjacency_matrix=None): super().__init__(random_state) self._causal_order = c...
#!/usr/bin/env python from __future__ import print_function from indic_transliteration import sanscript from indic_transliteration import detect from sanskrit_parser.util import normalization from contextlib import contextmanager import logging import six # Wrap scheme names defined in sanscript BENGALI = sanscript.B...
# Unit 5: Probability in the game of Darts """ In the game of darts, players throw darts at a board to score points. The circular board has a 'bulls-eye' in the center and 20 slices called sections, numbered 1 to 20, radiating out from the bulls-eye. The board is also divided into concentric rings. The bulls-eye has ...
# 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. """A "Test Server Spawner" that handles killing/stopping per-test test servers. It's used to accept requests from the device to spawn and kill instances of ...
import unittest from pbxproj import XcodeProject, PBXProvisioningTypes from pbxproj.pbxextensions import ProjectFlags LS_LA_COMMAND = u'ls -la' PATH_TO_SEARCH_PATTERN = 'path/to/search/**' class ProjectFlagsTest(unittest.TestCase): def setUp(self): self.obj = { 'objects': { ...
#!/usr/bin/env python # GBX Challenge Reader with some salt from Xymph's PHP class # written 2009 by Markus Ullmann <mail@markus-ullmann.de> # License: as-is # # ChangeLog # --------- # 1.0 Initial release import struct, os from xml.dom.minidom import parseString racetypes = { -1: 'unknown', 0: 'Race', 1: 'Platform'...
#!/usr/bin/python """ fantastic Add-on Copyright (C) 2016 tknorris This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any lat...
# Copyright 2015-2017 Capital One Services, 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 ...
#!/usr/bin/python # # TODO: # - Currently can't specify the history file. # - File "/home/todsah/Development/mcplayeredit/lib/icmd.py", line 97, in _help_getspecifics # help_short, help_desc = doc[0], '\n '.join(doc[1:]) (EMPTY DOC STRING) # """ ICmd is a wrapper library for easily creating interactive commandl...
# -*- coding: utf-8 -*- from sys import hexversion import random from .context import sortedcontainers from sortedcontainers import SortedListWithKey from itertools import chain from nose.tools import raises if hexversion < 0x03000000: from itertools import izip as zip range = xrange def negate(val): re...
########################################################################## # # Copyright (c) 2013-2014, John Haddon. 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 ...
# Copyright 2011 OpenStack Foundation # Copyright 2013 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/lice...
# The contents of this file are subject to the BitTorrent Open Source License # Version 1.1 (the License). You may not copy or use this file, in either # source code or executable form, except in compliance with the License. You # may obtain a copy of the License at http://www.bittorrent.com/license/. # # Software di...
# Copyright 2015-2018 ARM Limited # # 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...
# 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...
"""Compatibility fixes for older version of python, numpy and scipy If you add content to this file, please give the version of the package at which the fixe is no longer needed. # XXX : copied from scikit-learn """ # Authors: Emmanuelle Gouillart <emmanuelle.gouillart@normalesup.org> # Gael Varoquaux <gael...
#!/usr/bin/env python # encoding: utf-8 """ glpk_Test.py Created by Nikolaus Sonnenschein on 2008-02-12. Copyright (c) 2008 Jacobs University of Bremen. All rights reserved. """ from ifba.glpki import glpki import unittest import util import glpk import sys import copy import random import pickle class test_glpk(uni...
# 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...
# -*- coding: utf-8 -*- from __future__ import absolute_import from __future__ import division from affine import Affine from shapely.geometry import shape import numpy as np import numpy.distutils.system_info as sysinfo import warnings from .io import read_features, Raster from .utils import (rasterize_geom, get_per...
from collections import deque import operator import unittest from transducer.eager import transduce from transducer.functional import compose from transducer.infrastructure import Transducer from transducer.reducers import appending, expecting_single, conjoining, adding from transducer.transducers import (mapping, fil...