gt
stringclasses
1 value
context
stringlengths
2.49k
119k
#!/usr/bin/env python # # Electrum - lightweight Bitcoin client # Copyright (C) 2011 thomasv@gitorious # # 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 witho...
# 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. import json import logging import os from StringIO import StringIO import appengine_blobstore as blobstore from appengine_url_fetcher import AppEngineUr...
# vim: tabstop=4 shiftwidth=4 softtabstop=4 # Copyright 2010 OpenStack Foundation # All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apach...
#!/usr/bin/env python """ See https://edx-wiki.atlassian.net/wiki/display/ENG/PO+File+workflow This task extracts all English strings from all source code and produces three human-readable files: conf/locale/en/LC_MESSAGES/django-partial.po conf/locale/en/LC_MESSAGES/djangojs-partial.po conf/locale/en/LC_MES...
# coding=utf-8 import os import platform import sys from typing import Optional, Dict, Any, List from dbt.logger import GLOBAL_LOGGER as logger import dbt.clients.system import dbt.config import dbt.utils import dbt.exceptions from dbt.links import ProfileConfigDocs from dbt.adapters.factory import get_adapter, regist...
from copy import copy from sympy.tensor.array.dense_ndim_array import MutableDenseNDimArray from sympy import Symbol, Rational, SparseMatrix from sympy.matrices import Matrix from sympy.tensor.array.sparse_ndim_array import MutableSparseNDimArray def test_ndim_array_initiation(): arr_with_one_element = MutableDe...
# Lint as: python3 # 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 ...
#!/usr/bin/env python3 # Copyright (c) 2015-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. from .mininode import * from .blockstore import BlockStore, TxStore from .util import p2p_port ''' This ...
import csv import datetime from .constants import MAX_NUMBER, MIN_NUMBER, \ MAX_YEAR, MIN_YEAR, \ PERIODS_ABBR, \ START_DATE class Params: def __init__(self, year, month): if year >= MIN_YEAR and year <= MAX_YEAR: self.year = year else: raise ValueError('year m...
from rpython.jit.metainterp.walkvirtual import VirtualVisitor from rpython.jit.metainterp.history import ConstInt, ConstPtr, ConstFloat from rpython.jit.metainterp.optimizeopt.info import ArrayPtrInfo,\ ArrayStructInfo, AbstractStructPtrInfo from rpython.jit.metainterp.optimizeopt.intutils import \ MININT, MA...
# Copyright 2008-2015 Nokia Solutions and Networks # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable l...
""" Support for MQTT message handling. For more details about this component, please refer to the documentation at https://home-assistant.io/components/mqtt/ """ import asyncio import logging import os import socket import time import ssl import re import requests.certs import voluptuous as vol from homeassistant.co...
import base64 import calendar import datetime import re import unicodedata import warnings from binascii import Error as BinasciiError from email.utils import formatdate from urllib.parse import ( ParseResult, SplitResult, _coerce_args, _splitnetloc, _splitparams, quote, quote_plus, scheme_chars, unquote, unquo...
# emacs: -*- mode: python; py-indent-offset: 4; indent-tabs-mode: nil -*- # vi: set ft=python sts=4 ts=4 sw=4 et: """Provides interfaces to various longitudinal commands provided by freesurfer Change directory to provide relative paths for doctests >>> import os >>> filepath = os.path.dirname( os.path.realpa...
''' Brute Force Agent Actions. ''' import sys,os import re, random from furl import * from urllib.parse import urlparse import time, signal from multiprocessing import Process import stomp import re from daemonize import Daemonize from os.path import basename current_dir = os.path.basename(os.getcwd()) if current_dir...
from cgitb import small __author__ = 'Shailesh' import copy from collections import defaultdict from nltk.tokenize import wordpunct_tokenize from termcolor import colored from nltk.corpus import stopwords,names import math from Sentiment import Sentiment from PredictionFunctions import PredictionFunctions class Ang...
# vim: tabstop=4 shiftwidth=4 softtabstop=4 # 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 t...
# vim: tabstop=4 shiftwidth=4 softtabstop=4 # Copyright 2012 Grid Dynamics # 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/l...
# Copyright 2016 The TensorFlow Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applica...
# Copyright (c) 2012 OpenStack Foundation # All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless ...
# Copyright 2012 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 ...
# (c) 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...
#!python # -*- coding: utf-8 -*- from __future__ import unicode_literals from __future__ import division from __future__ import print_function __author__ = 'Alexei Ardyakov' __version__ = '0.05' __license__ = 'MIT' import codecs import os import re import sys from functools import partial from pyproj import Proj, tr...
# -*- coding: utf-8 -*- # Copyright 2017 GIG Technology 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 applicable...
"""Utilities shared by tests.""" import cgi import contextlib import gc import email.parser import http.server import json import logging import io import os import re import ssl import sys import threading import traceback import urllib.parse import asyncio import aiohttp from aiohttp import server from aiohttp impo...
#!/usr/bin/env python # -*- coding: utf-8 -*- # # Copyright 2019 The FATE 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/lic...
# Copyright 2016 Splunk, 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,...
#!/usr/bin/env python3 """ Without argument: run all the regression tests. About the tests: * They are stored as python file in the subdirectories. * The firstline must be an explanation about the test. * Errors(must be True) defines an Error that must be corrected * Warning(must be True) defines someth...
# uncompyle6 version 2.9.10 # Python bytecode 2.7 (62211) # Decompiled from: Python 3.6.0b2 (default, Oct 11 2016, 05:27:10) # [GCC 6.2.0 20161005] # Embedded file name: RemoteDebugger.py """Support for remote Python debugging. Some ASCII art to describe the structure: IN PYTHON SUBPROCESS # ...
#!/usr/bin/env python """ATS input converter from 0.87 to 0.88""" import sys, os try: amanzi_xml = os.path.join(os.environ["AMANZI_SRC_DIR"], "tools","amanzi_xml") except KeyError: pass else: if amanzi_xml not in sys.path: sys.path.append(amanzi_xml) from amanzi_xml.utils import search as asearch...
# Copyright 2011 OpenStack Foundation # Copyright 2012 Justin Santa Barbara # # 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 # #...
"""Event loop using a selector and related classes. A selector is a "notify-when-ready" multiplexer. For a subclass which also includes support for signal handling, see the unix_events sub-module. """ __all__ = ['BaseSelectorEventLoop'] import collections import errno import functools import socket import sys try: ...
#!/usr/bin/env python import sys,os,json import shutil from setuptools import setup, find_packages from setuptools.command.develop import develop from setuptools.command.install import install from setuptools.command.sdist import sdist import pyct.build ############### ### autover ### def get_setup_version(repona...
import base64 import os.path from django.conf import settings from django.core import mail import mock from nose import SkipTest from nose.tools import eq_, ok_ import mkt from mkt.comm.models import CommunicationThread, CommunicationThreadToken from mkt.comm.tests.test_views import CommTestMixin from mkt.comm.utils...
# -*- coding: utf-8 -*- # Authors: Eric Larson <larson.eric.d@gmail.com> # # License: BSD (3-clause) from datetime import datetime, timezone, timedelta import json import sys import tempfile from shutil import rmtree from os import path as op import numpy as np # Adapted from six PY3 = sys.version_info[0] == 3 text_...
""" Technical Analysis Factors -------------------------- """ from numbers import Number from numpy import ( abs, arange, average, clip, diff, exp, fmax, full, inf, isnan, log, NINF, sqrt, sum as np_sum, ) from numexpr import evaluate from zipline.pipeline.data i...
# markdown/searializers.py # # Add x/html serialization to Elementree # Taken from ElementTree 1.3 preview with slight modifications # # Copyright (c) 1999-2007 by Fredrik Lundh. All rights reserved. # # fredrik@pythonware.com # http://www.pythonware.com # # ------------------------------------------------------------...
# Copyright 2014 Scalyr 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, so...
# Copyright 2020 The StackStorm Authors. # Copyright 2019 Extreme 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 ...
import sys import getopt import struct from functools import partial import operator import array import copy import time import re sys.path.append("../shell") import swapforth def truth(pred): return [0, -1][pred] def setimmediate(func): func.is_immediate = True return func def ba(x): return array....
# -*- coding: utf-8 -*- """ Check the examples for several combinations of arguments. --- CSV Strucure --- A CSV file for each vCenter will be created as a backup of the information in VCIN. This file will have the following structure. This structure is compatible with the vcin_vdt_configure_from_vsphere.py script i...
r""" One-dimensional IMEX acoustic-advection ========================= Integrate the linear 1D acoustic-advection problem: .. math:: u_t + U u_x + c p_x & = 0 \\ p_t + U p_x + c u_x & = 0. """ import numpy as np import scipy.sparse as sp import scipy.sparse.linalg as LA from pySDC.Problem import ...
#!/usr/bin/env python import os, shutil, subprocess, time, pipes, traceback, xlrd, sys, Timer from subprocess import Popen, PIPE home_dir_list = [] home_dir_list.append(os.getcwd()) print "\n" print "\n" print "\n" print "\n" print "\n" print "\n" print "\n" print "\n" print "\n" print "\n" print "\n" print "\n"...
# Copyright (C) 2017 Google Inc. # Licensed under http://www.apache.org/licenses/LICENSE-2.0 <see LICENSE file> """Tests for snapshot model.""" from ggrc.app import app from ggrc.models import all_models from ggrc.snapshotter.rules import Types from integration.ggrc import TestCase from integration.ggrc.models import...
from __future__ import absolute_import from django.db import connection, transaction, DatabaseError from django.test import TransactionTestCase from django.utils import six from django.utils.unittest import skipIf, skipUnless from .models import Reporter from .signal_testing import ( AtomicBlockReceiver, crea...
import re import socket import time import thread import Queue from ssl import wrap_socket, CERT_NONE, CERT_REQUIRED, SSLError def decode(txt): for codec in ('utf-8', 'iso-8859-1', 'shift_jis', 'cp1252'): try: return txt.decode(codec) except UnicodeDecodeError: continue ...
# -*- 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...
import numbers import numpy as np from pandas._libs import lib from pandas.compat.numpy import function as nv from pandas.util._decorators import Appender from pandas.util._validators import validate_fillna_kwargs from pandas.core.dtypes.dtypes import ExtensionDtype from pandas.core.dtypes.generic import ABCIndexCla...
# coding=utf-8 r""" This code was generated by \ / _ _ _| _ _ | (_)\/(_)(_|\/| |(/_ v1.0.0 / / """ from twilio.base import deserialize from twilio.base import values from twilio.base.instance_context import InstanceContext from twilio.base.instance_resource import InstanceResource from twilio.base...
# encoding: utf-8 import datetime from south.db import db from south.v2 import SchemaMigration from django.db import models class Migration(SchemaMigration): def forwards(self, orm): # Adding model 'BlockObjectAssociation' db.create_table('simple_cms_relatedblock', ( ('id', se...
from Quartz import * from Cocoa import * import Utilities import QuartzTextDrawing import sys import objc def getTextString(): # These unicode values are the characters: Q, u, a, r, t, z, # eighthnote, floral heart, black chess queen, and two CJK characters. # Note: Create an NSString, because we'll use N...
#!/usr/bin/python # # Copyright (C) 2009 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 ...
# Copyright 2008 The RE2 Authors. All Rights Reserved. # Use of this source code is governed by a BSD-style # license that can be found in the LICENSE file. """Parser for Unicode data files (as distributed by unicode.org).""" from __future__ import absolute_import from __future__ import division from __future__ impo...
# Copyright 2013-2021 Aerospike, 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...
import uuid import django_filters import taggit from django import forms from django.conf import settings as django_settings from django.contrib import auth from django.contrib.contenttypes.models import ContentType from django.core import exceptions from django.db.models import Q from django.db.models.functions impor...
# Licensed under a 3-clause BSD style license - see LICENSE.rst from __future__ import absolute_import, division, print_function import os import copy import shutil import logging import yaml import json from collections import OrderedDict from multiprocessing import Pool from functools import partial import sys impo...
# Copyright 2015 OpenStack Foundation # All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless requ...
# # 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 # ...
# coding=utf-8 # Copyright 2014 Pants project contributors (see CONTRIBUTORS.md). # Licensed under the Apache License, Version 2.0 (see LICENSE). from __future__ import (absolute_import, division, generators, nested_scopes, print_function, unicode_literals, with_statement) import os from colle...
#!/usr/bin/env python # Copyright JS Foundation and other contributors, http://js.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....
from __future__ import unicode_literals from __future__ import absolute_import from . import util from . import odict from . import inlinepatterns def build_treeprocessors(md_instance, **kwargs): """ Build the default treeprocessors for Markdown. """ treeprocessors = odict.OrderedDict() treeprocessors["in...
# # WARNING: some of the classes below are manually implemented # import sys import traceback from pysnmp.smi.indices import OidOrderedDict from pysnmp.smi import exval, error from pysnmp.proto import rfc1902 from pysnmp import cache, debug from pyasn1.error import PyAsn1Error ( Integer, ObjectIdentifier ) = mibBuilde...
""" Properties for modeling Chart inputs, constraints, and dependencies. selection spec: [['x'], ['x', 'y']] [{'x': categorical, 'y': numerical}] """ from __future__ import absolute_import import numpy as np import pandas as pd from bokeh.properties import (HasProps, Either, String, Int, List, Bool, ...
''' Python module dependencies: biopython==1.63 fastcluster==1.1.13 numpy==1.7.1 python-Levenshtein==0.11.2 scipy==0.12.0 Under Ubuntu, scipy, numpy and biopython can be installed as: sudo apt-get install python-biopython python-numpy python-scipy fastcluster and python-Levenshtein can be installed using pip: pip ...
from nose.tools import eq_ import hashlib import json import nose from js_helper import _do_real_test_raw as _js_test from validator.testcases.markup.markuptester import MarkupParser import validator.testcases.jetpack as jetpack from validator.errorbundler import ErrorBundle from validator.xpi import XPIManager def...
from __future__ import unicode_literals from collections import defaultdict from django.conf import settings from django.contrib import messages from django.utils.translation import ugettext as _ from django.utils.encoding import force_text from django.contrib.admin.templatetags.admin_urls import add_preserved_filter...
""" Some utility functions. Miscellaneous utilities * list2set * first * uniq * more_than Term characterisation and generation * to_term * from_n3 Date/time utilities * date_time * parse_date_time Statement and component type checkers * check_context * check_subject * check_predicate * check_object * check_stat...
''' Module docstring goes here. ''' from __future__ import print_function import numpy as np import desc.slcosmo c = 3.00e5 class SLCosmo(object): ''' Master class for handling cosmological parameter inference given strong lens time delay and Fermat potential data. In the TDC2 scheme (and perhaps ot...
# 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...
# # 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...
# coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. # Code generated by Microsoft (R) AutoRest Code Generator. # Changes may ...
# Copyright 2011 Denali Systems, Inc. # All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless requ...
import copy import json import multiprocessing import os import random import shutil import string import tempfile from contextlib import contextmanager from os import chdir, getcwd, mkdir from os.path import exists from subprocess import CalledProcessError, check_call, check_output import pkgpanda.build.constants imp...
from .sum import copy from .edge import Edge from .variable import Variable from .constant import Constant from .vstack import split from ..utils.cuda_codegen import CudaSubGraph, gpuarray from .vstack import vstack from proximal.utils.timings_log import TimingsLog import copy as cp from collections import defaultdict ...
# coding=utf-8 # Copyright 2022 The Uncertainty Baselines 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 ap...
import functools import collections import logging import threading from mopidy import audio, backend import spotify logger = logging.getLogger(__name__) # These GStreamer caps matches the audio data provided by libspotify GST_CAPS = "audio/x-raw,format=S16LE,rate=44100,channels=2,layout=interleaved" # Extra log ...
# This file is part of Viper - https://github.com/botherder/viper # See the file 'LICENSE' for copying permission. import argparse import os import time import fnmatch import tempfile import shutil from zipfile import ZipFile from viper.common.out import * from viper.common.objects import File from viper.common.netwo...
# coding=utf-8 # Copyright 2018 The Google AI Language Team Authors and The HuggingFace Inc. team. # 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 cop...
""" In this module, the similarity classes of the item-based approach are defined. The most important classes are the CombinedRecordSimilarity, the CollaborativeRecordSimilarity and the ContentRecordSimilarity. The first one combines the record similarity values of two underlying item based similarity classes. The seco...
# The help text for various thresholding options whose code resides here is in modules/identify.py from __future__ import absolute_import from __future__ import division import inspect import math import numpy as np import scipy.ndimage import scipy.sparse import scipy.interpolate from .otsu import otsu, entropy, ot...
from __future__ import absolute_import import six from sentry.models import ExternalIssue, GroupLink, Integration from sentry.testutils import APITestCase from sentry.utils.http import absolute_uri class GroupIntegrationDetailsTest(APITestCase): def test_simple_get_link(self): self.login_as(user=self.us...
# Copyright (c) 2012 NetApp, Inc. # All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless require...
""" component_cost.py Matthew Woodruff (mjw5407@arl.psu.edu) The Pennsylvania State University Applied Research Laboratory 2013 Compile a list of the components in a design and determine their costs from the manufacturing models. """ # For every part in the design # look up its manufacturing model # extract price and ...
# encoding: utf-8 # Utility functions for api2 import os import time import json import re from collections import defaultdict from functools import wraps from seahub import settings from django.core.paginator import EmptyPage, InvalidPage from django.http import HttpResponse from rest_framework.response import Resp...
# # Copyright 2014 Rackspace, 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 ...
#!/usr/bin/env python """ 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")...
#!/usr/bin/env python import sys import os import numpy from math import log from pyx import canvas, text, path, graph, color, trafo, unit, attr, deco, style unit.set(defaultunit="cm") text.set(mode="latex") text.preamble(r"\usepackage{times}") text.preamble(r"\usepackage{sansmath}") text.preamble(r"\sansmath") tex...
""" Cubes ===== Tools to deal with spectroscopic data cubes. Some features in Cubes require additional packages: * smoothing - requires agpy_\'s smooth and parallel_map routines * `pyregion <git://github.com/astropy/pyregion.git>`_ The 'grunt work' is performed by the :py:mod:`cubes` module """ # import ...
""" sentry.web.views ~~~~~~~~~~~~~~~~ :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, print_function import logging import traceback from datetime import timedelta from django.conf import settings fro...
#!/usr/bin/env python import glob import logging import os import re import simplejson as json import struct import threading import couchstore import couchbaseConstants import pump from cbcollections import defaultdict from cbqueue import PumpQueue SFD_SCHEME = "couchstore-files://" SFD_VBUCKETS = 1024 SFD_REV_MET...
import os from hippy.builtin import (wrap_method, Optional, ThisUnwrapper, handle_as_exception, StreamContextArg, Nullable) from hippy.objects.instanceobject import W_InstanceObject from hippy.objects.intobject import W_IntObject from hippy.objects.resources.file_resource import W_FileResource from hippy.error impo...
from django.test import TestCase from survey.forms.question import * from survey.models import Batch from survey.models.question import Question from survey.models.householdgroups import HouseholdMemberGroup class QuestionFormTest(TestCase): def setUp(self): self.batch = Batch.objects.create(name='Batch A...
# coding=utf-8 # Copyright 2022 The Trax 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 a...
# coding: utf-8 """ Talon.One API The Talon.One API is used to manage applications and campaigns, as well as to integrate with your application. The operations in the _Integration API_ section are used to integrate with our platform, while the other operations are used to manage applications and campaigns. #...
# 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...
# -*- coding: utf-8 -*- import logging import os import shutil import string from future.standard_library import install_aliases install_aliases() from urllib.parse import urlparse, urlencode from urllib.request import urlopen, Request from urllib.error import HTTPError from subprocess import Popen from subprocess ...
#!/usr/bin/env python # Written by John Hoffman # see LICENSE.txt for license information from BitTornado import PSYCO if PSYCO.psyco: try: import psyco assert psyco.__version__ >= 0x010100f0 psyco.full() except: pass from download_bt1 import BT1Download from RawServer import ...
# coding=utf-8 # Copyright 2014 Pants project contributors (see CONTRIBUTORS.md). # Licensed under the Apache License, Version 2.0 (see LICENSE). from __future__ import (absolute_import, division, generators, nested_scopes, print_function, unicode_literals, with_statement) import copy import w...
# -*- coding: utf-8 -*- # Copyright (c) 2019, Frappe Technologies and Contributors # See license.txt from __future__ import unicode_literals import frappe import unittest from .energy_point_log import get_energy_points as _get_energy_points, create_review_points_log, review from frappe.utils.testutils import add_custo...
#!/usr/bin/env python # -*- coding: utf-8 -*- # # Generated Fri Apr 15 16:00:42 2011 by generateDS.py version 2.4c. # import sys import getopt import re as re_ etree_ = None Verbose_import_ = False ( XMLParser_import_none, XMLParser_import_lxml, XMLParser_import_elementtree ) = range(3) XMLParser_import_l...