gt
stringclasses
1 value
context
stringlengths
2.49k
119k
import getopt import os, glob, shutil, logging import pexpect as p import time from pyraf import iraf from pyraf import iraffunctions import astropy.io.fits from nifsUtils import datefmt, writeList, listit def start(obsDirList, use_pq_offsets, im3dtran, over=""): """MERGE This module contains all the functio...
# vim: tabstop=4 shiftwidth=4 softtabstop=4 # # Copyright 2012, Nachi Ueno, NTT MCL, 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://ww...
# -*- coding: utf-8 -*- """ File search utilities. --- type: python_module validation_level: v00_minimum protection: k00_public copyright: "Copyright 2016 High Integrity Artificial Intelligence Systems" license: "Licensed under the Apache License, Version 2.0 (the License); you may not use ...
from collections import Iterable from numbers import Number from types import FunctionType import random import numpy as np from skimage.transform import warp, resize, AffineTransform from skimage.exposure import equalize_hist def chain_augmentations(*augmentations, augment_x=True, augment_y=False): """ Chai...
import html.entities import re import unicodedata from gzip import GzipFile from io import BytesIO from django.utils.encoding import force_text from django.utils.functional import ( SimpleLazyObject, keep_lazy, keep_lazy_text, lazy, ) from django.utils.safestring import SafeText, mark_safe from django.utils.transl...
# Copyright 2012 Locaweb. # 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...
# encoding=utf-8 from __future__ import unicode_literals, division import os import re from django.core.files.base import File, ContentFile from django.core.files.storage import Storage # , default_storage from django.utils.functional import LazyObject, empty from sorl.thumbnail import default from sorl.thumbnail.co...
# Copyright (c) 2016-present, Facebook, 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...
#!/usr/bin/env python3 # Copyright (c) 2014-2018 The Bitcoin Core developers # Distributed under the MIT software license, see the accompanying # file COPYING or http://www.opensource.org/licenses/mit-license.php. """Test the listtransactions API.""" from decimal import Decimal from io import BytesIO from test_framewo...
#!/usr/bin/env python # -*- coding: utf-8 -*- import struct PROTOCOL_VERSION = [ 1, 12, 0x01, 0x00] APPENDIX_RELEASE = [0x00, 0x00, ord('H'), 0x00] EHD1 = 0x10 EHD2_FMT1 = 0x81 EHD2_FMT2 = 0x82 def _code_to_desc(code_dict): desc_dict = {} for key in code_dict: desc_dict[code_dict[key]] = key ret...
# Copyright 2021 DeepMind Technologies 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 # # https://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agr...
# 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 ...
# (C) Fractal Industries, Inc. 2016 # (C) Datadog, Inc. 2010-2016 # All rights reserved # Licensed under Simplified BSD License (see LICENSE) # stdlib from datetime import datetime import glob from itertools import groupby import os import re import sys import time import traceback # project from checks import Laconi...
# 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 ...
#! /usr/bin/env python # coding=utf-8 # Copyright (c) 2019 Uber Technologies, 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 # # Unles...
""" Testing for Multi-layer Perceptron module (sklearn.neural_network) """ # Author: Issam H. Laradji # License: BSD 3 clause import sys import warnings import numpy as np from numpy.testing import assert_almost_equal, assert_array_equal from sklearn.datasets import load_digits, load_boston from sklearn.datasets i...
# $Id$ # # Copyright (C) 2003-2008 greg Landrum and Rational Discovery LLC # # @@ All Rights Reserved @@ # This file is part of the RDKit. # The contents are covered by the terms of the BSD license # which is included in the file license.txt, found at the root # of the RDKit source tree. # """unit testing code ...
# -*- coding: 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 field 'StoryTemplate.slug' db.add_column('storybase_story_storytemplate', 'slug', ...
# Copyright 2015-2017 ProfitBricks GmbH # # 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 i...
# Copyright 2019 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, ...
# Copyright (c) 2014-2016, NVIDIA CORPORATION. All rights reserved. from __future__ import absolute_import from collections import OrderedDict, namedtuple import os.path import time import flask import gevent from digits import device_query from digits.task import Task from digits.utils import subclass, override #...
# # Copyright (c) 2015 nexB Inc. and others. All rights reserved. # http://nexb.com and https://github.com/nexB/scancode-toolkit/ # The ScanCode software is licensed under the Apache License version 2.0. # Data generated with ScanCode require an acknowledgment. # ScanCode is a trademark of nexB Inc. # # You may not use...
# Copyright 2017 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 -*- from flaskApp import celery from flask import jsonify import dcs.load import dcs.view import dcs.analyze import dcs.clean import os import requests import pandas as pd import numpy as np import json import datetime import traceback @celery.task() def userUploadedCSVToDataFrame(uploadID, initi...
# -*- coding: utf-8 -*- """ sync_openstreetmap.py superlachaise_api Created by Maxime Le Moine on 26/05/2015. Copyright (c) 2015 Maxime Le Moine. 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 ...
from gosubl import about from gosubl import ev from gosubl import gs from gosubl import gsq from gosubl import sh import atexit import base64 import hashlib import json import os import re import sublime import subprocess import threading import time import uuid DOMAIN = 'MarGo' REQUEST_PREFIX = '%s.rqst.' % DOMAIN PR...
# 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...
# :[diStorm64}: Python binding # Copyright (c) 2009, Mario Vilas # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are met: # # * Redistributions of source code must retain the above copyright notice, # ...
""" Deuce Valere - Tests - Client - Valere - Validate Storage """ import functools import json import mock from deuceclient.tests import * import httpretty from deucevalere.tests import * from deucevalere.tests.client_base import TestValereClientBase from deucevalere.tests.client_base import calculate_ref_modified ...
""" Darwin Platform Module """ # Copyright (C) 2007 Invisigoth - See LICENSE file for details import os import struct import ctypes import signal import ctypes.util as c_util import envi.memory as e_mem import vtrace import vtrace.archs.i386 as v_i386 import vtrace.archs.amd64 as v_amd64 import vtrace.platforms.base ...
# 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...
""" ietf_diffserv_policy This module contains a collection of YANG definitions for configuring diffserv specification implementations. Copyright (c) 2014 IETF Trust and the persons identified as authors of the code. All rights reserved. Redistribution and use in source and binary forms, with or without modificatio...
# vim: tabstop=4 shiftwidth=4 softtabstop=4 # # Copyright 2013 vArmour Networks 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.apa...
import os import json import pytest from datetime import datetime, timedelta from unittest.mock import patch, MagicMock from awsume.awsumepy.lib import cache, constants @patch('os.chmod') @patch('os.makedirs') @patch('os.path.exists') def test_ensure_cache_dir(exists: MagicMock, makedirs: MagicMock, chmod: MagicMock...
# Copyright (c) 2012 Rackspace Hosting # All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless req...
from functools import partial from io import BytesIO from os import path from django.core.exceptions import ImproperlyConfigured from django.core.files.uploadedfile import SimpleUploadedFile from django.db import models from django.db.models import signals from django.forms import Textarea, ValidationError from django...
import pytest from plenum.common.signer_did import DidSigner from plenum.common.signer_simple import SimpleSigner from sovrin_client.client.wallet.wallet import Wallet from sovrin_client.test.cli.helper import prompt_is, addNym, ensureConnectedToTestEnv, createUuidIdentifier, \ createHalfKeyIdentifierAndAbbrevVerke...
"""prettyunit - prettysite views.py Andrew Scott 10/21/2016""" #pylint: disable=line-too-long, invalid-name, bare-except, broad-except import json import datetime import logging from flask import render_template, request from prettysite import app, config from prettysite.models import Suite, TestCase, Test, Project, P...
from __future__ import unicode_literals import json import six from moto.core.responses import BaseResponse from moto.core.utils import camelcase_to_underscores from .models import dynamodb_backend2, dynamo_json_dump GET_SESSION_TOKEN_RESULT = """ <GetSessionTokenResponse xmlns="https://sts.amazonaws.com/doc/2011-06...
from __future__ import absolute_import, division, print_function import os import re import sys from os.path import isdir, isfile, join from conda.compat import iteritems, PY3, text_type from conda.utils import memoized, md5_file import conda.config as cc from conda.resolve import MatchSpec from conda.cli.common impo...
import numpy as np from numpy.testing import (assert_allclose, assert_equal, assert_almost_equal, assert_array_equal, assert_array_almost_equal) from scipy.ndimage import convolve1d from scipy.signal import savgol_coeffs, savgol_filter from scipy.signal._savitzky_...
#!/usr/bin/env python # -*- coding: utf-8 -*- from __future__ import absolute_import, division, print_function __metaclass__ = type # Copyright 2017 Palo Alto 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 ...
from django.core import mail from django.core.urlresolvers import reverse from django.test import TestCase from tinyblog.models import EmailSubscriber from .utils import EmailSubscriberFactory, is_before_django_1_5 class TestSubscribeViews(TestCase): def test_subscribe_get(self): url = reverse('tinyblog_...
#!/usr/bin/env python # encoding: utf-8 """ cmsketch.py An implementation of count-min sketching from the paper due to Cormode and Muthukrishnan 2005 """ import sys import random import numpy as np import heapq import json import time import operator import collections BIG_PRIME = 9223372036854775783 def random_p...
#!/usr/bin/env python3 from __future__ import print_function import argparse import base64 import hashlib import json import os import requests import sys import time class Error(Exception): pass def sleep_time(attempt): if attempt <= 0: raise Exception('Unexpected') if attempt == 1: return 0 if atte...
import os import struct import portalocker import pickle class Storage(object): """Class to manage writing to file in consecutive blocks with locking""" SUPERBLOCK_SIZE = 4096 INTEGER_FORMAT = "!Q" INTEGER_LENGTH = 8 def __init__(self, f): """Initialize Storage block, Set Lock to False"""...
# Copyright (c) 2018 PaddlePaddle Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by app...
# -*- coding: utf-8 -*- """ Handle most tasks related to DynamoDB interaction """ import re import sys import time import datetime from boto import dynamodb2 from boto.dynamodb2.table import Table from boto.exception import DynamoDBResponseError, JSONResponseError from dynamic_dynamodb.log_handler import LOGGER as lo...
#!/usr/bin/env python3 # Copyright 2019 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or...
''' Earth2012: Shape and topography (with respect to mean sea level) of Earth expanded to degree and order 2160. shape_air : Earth's shape (with water) shape_bathy : Earth's shape (without water) shape_bathy_bed : Earth's shape (without water and ice) shape_ret : Earth's rock-equivalent topography ...
###################################################################### # # Copyright (C) 2013 # Associated Universities, Inc. Washington DC, USA, # # This library is free software; you can redistribute it and/or modify it # under the terms of the GNU Library General Public License as published by # the Free Software Fo...
"""Test Cases Resource functions.""" # 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 # # https://www.apache.org/licenses/LICENSE-2.0 # # Unless required by ap...
# Copyright 2016-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 ...
# 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...
import pytest import pip.wheel import pip.pep425tags from pkg_resources import parse_version, Distribution from pip.req import InstallRequirement from pip.index import ( InstallationCandidate, PackageFinder, Link, FormatControl, fmt_ctl_formats) from pip.exceptions import ( BestVersionAlreadyInstalled, Di...
import functools import logging import unittest from unittest import mock import pytest from socketio import base_manager from socketio import pubsub_manager class TestPubSubManager(unittest.TestCase): def setUp(self): id = 0 def generate_id(): nonlocal id id += 1 ...
#!/usr/bin/env python # Copyright (c) 2016, HLP-R # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are met: # # * Redistributions of source code must retain the above copyright notice, this # list of c...
# See readme.md for instructions on running this code. import re import os class VirtualFsHandler(object): def usage(self): return get_help() def handle_message(self, message, client, state_handler): command = message['content'] stream = message['display_recipient'] topic = me...
"""Helpers for polyphemus. Utilities API ============= """ from __future__ import print_function import os import io import re import sys import glob import tempfile import functools import subprocess from copy import deepcopy from pprint import pformat from collections import Mapping, Iterable, Hashable, Sequence, na...
# -*- coding: utf-8 -*- import numpy as np class Kernel(object): """ Definition the kernels and its properties, that includes sum and multiplication of kernels. """ def __init__(self, *args): """ puts all Kernel arguments in an array pars """ self.pars = np.array(args) ...
#!/usr/bin/env python # -*- coding: ascii -*- u""" :Copyright: Copyright 2011 - 2021 Andr\xe9 Malo or his licensors, as applicable :License: 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 ...
"""Routines related to PyPI, indexes""" from __future__ import absolute_import import logging import cgi import sys import os import re import mimetypes import posixpath import warnings from pip._vendor.six.moves.urllib import parse as urllib_parse from pip._vendor.six.moves.urllib import request as urllib_request f...
from __future__ import print_function, division from sympy.core import Basic from sympy.core.compatibility import iterable, as_int, range from sympy.utilities.iterables import flatten from collections import defaultdict class Prufer(Basic): """ The Prufer correspondence is an algorithm that describes the ...
from maya import OpenMaya, OpenMayaUI, cmds from . import utils # import pyside, do qt version check for maya 2017 > qtVersion = cmds.about(qtVersion=True) if qtVersion.startswith("4") or type(qtVersion) not in [str, unicode]: from PySide.QtGui import * from PySide.QtCore import * import shiboken else: ...
#!/usr/bin/env python # Copyright (c) 2011 Google Inc. All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are # met: # # * Redistributions of source code must retain the above copyright # notice, this list ...
from __future__ import unicode_literals import collections import datetime import decimal import inspect import math import os import re import sys import types from importlib import import_module from django.apps import apps from django.db import migrations, models from django.db.migrations.loader import MigrationLo...
# Copyright 2014 Open vStorage 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 law or agreed to in writ...
# 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...
from datetime import datetime, timedelta import logging from django.contrib.auth.models import AnonymousUser, User from django.utils import timezone from djblets.testing.decorators import add_fixtures from djblets.util.dates import get_tz_aware_utcnow from kgb import SpyAgency, spy_on from reviewboard.reviews.errors ...
import json from contextlib import closing, contextmanager from io import BytesIO from django.conf import settings from django.contrib import messages from django.http import ( Http404, HttpRequest, HttpResponse, HttpResponseBadRequest, HttpResponseRedirect, ) from django.http.response import HttpR...
# coding=utf-8 # Copyright 2020 The HuggingFace Inc. 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...
import os import shutil import tempfile import unittest from subprocess import call, check_output, PIPE, Popen, STDOUT class TestGitSnapshot(unittest.TestCase): def _status(self): return check_output(('git', '-c', 'color.ui=never', 'status', '--short')) def _stashes(self): return check_outpu...
# Copyright 2010 United States Government as represented by the # Administrator of the National Aeronautics and Space Administration. # 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 ...
# Code borrowed from 'Cuckoo Sandbox' # https://github.com/cuckoosandbox/cuckoo # Credits go to @jbremer (Jurriaan Bremer) and the Cuckoo team import binascii import configparser as ConfigParser import click import os import logging import re from findex_common.exceptions import ConfigError from findex_gui.bin.misc...
""" periodically pull the Kenya medical practitioners' database Cron entry: @weekly source /alephdata/srv/env_scrapengine/bin/activate && cd /alephdata/srv/Scrapengine && make scrape scraper=starhealth-register-doctors && curl -fsS --retry 3 https://hchk.io/<ID> > /dev/null @weekly source /alephdata/srv/env_sc...
# urllib3/connectionpool.py # Copyright 2008-2013 Andrey Petrov and contributors (see CONTRIBUTORS.txt) # # This module is part of urllib3 and is released under # the MIT License: http://www.opensource.org/licenses/mit-license.php import logging import socket import errno from socket import error as SocketError, time...
# -*- coding: utf-8 -*- from nose.tools import assert_equals, assert_raises_regexp, \ assert_raises, assert_true, assert_is_instance from diylisp.ast import is_list from diylisp.evaluator import evaluate from diylisp.parser import parse from diylisp.types import Closure, LispError, Environment """ This part is a...
from functools import update_wrapper from django.http import Http404, HttpResponseRedirect from django.contrib.admin import ModelAdmin, actions from django.contrib.auth import REDIRECT_FIELD_NAME from django.views.decorators.csrf import csrf_protect from django.db.models.base import ModelBase from django.apps import ap...
from dns.resolver import Resolver import socket import ipaddress import os DEBUG = os.environ.get("EEHDEBUG_SPF") __version__ = "0.0.1" PASS = "pass" FAIL = "fail" SOFTFAIL = "softfail" NEUTRAL = "neutral" PERMERROR = "permerror" TEMPERROR = "temperror" NONE = "none" SMTP_PERM_FAIL = 550 statusmap = { PASS: (2...
#! /usr/bin/env python # # Provide some simple capabilities from number theory. # # Version of 2008.11.14. # # Written in 2005 and 2006 by Peter Pearson and placed in the public domain. # Revision history: # 2008.11.14: Use pow( base, exponent, modulus ) for modular_exp. # Make gcd and lcm accept arbitr...
from ..docgen.doc import Doc from ..elements import registry from .. import bbcode from .. import pilot from .. import namespaces from ..compat import text_type from fs.path import join, splitext from collections import defaultdict from operator import itemgetter class Extracter(object): """Extract documentati...
#!/usr/bin/python import sys import itertools import signal from time import sleep from threading import Thread from mininet.net import Mininet from mininet.log import setLogLevel from mininet.node import RemoteController, Node from mininet.log import info, debug, output, error from mininet.link import TCLink from mi...
# 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...
import matplotlib.pyplot as plt import matplotlib as mpl import itertools import palettable import pandas as pd import statsmodels.api as sm import numpy as np from myfisher import * from objhist import * from custom_legends import * try: import networkx as nx from networkx.drawing.layout import spring_lay...
"""=========================== Variant annotation pipeline =========================== :Author: Andreas Heger & David Sims :Release: $Id$ :Date: |today| :Tags: Python The Variants pipeline attempts to annotate variants in a :term:`vcf` formatted file. It computes 1. The effects of SNPs on transcripts and genes ...
# Copyright 2010 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 l...
# -*- coding: utf-8 -*- """ Simple folder synchronization using FTP. (c) 2012-2021 Martin Wendt; see https://github.com/mar10/pyftpsync Licensed under the MIT license: https://www.opensource.org/licenses/mit-license.php Usage examples: > pyftpsync.py --help > pyftpsync.py upload . ftps://example.com/myfolder """ ...
# 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...
# Copyright 2012 United States Government as represented by the # Administrator of the National Aeronautics and Space Administration. # All Rights Reserved. # # Copyright 2012 OpenStack Foundation # Copyright 2012 Nebula, Inc. # Copyright (c) 2012 X.commerce, a business unit of eBay Inc. # # Licensed under the Apach...
#!/usr/bin/env python # # Copyright 2012 the V8 project authors. All rights reserved. # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are # met: # # * Redistributions of source code must retain the above copyright # noti...
# -*- coding: utf-8 -*- # Copyright (c) 2019, Frappe Technologies Pvt. Ltd. and Contributors # MIT License. See license.txt import frappe from frappe.model import ( display_fieldtypes, no_value_fields, table_fields as table_fieldtypes, ) from frappe.utils.csvutils import build_csv_response from frappe.utils.xlsxuti...
# 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 # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, ...
# Copyright (c) 2014 Hitachi Data 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 # # U...
########################################################################## # # Copyright (c) 2010-2011, Image Engine Design Inc. All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are # met: # # * Redis...
# -*- coding: utf-8 -*- # 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 # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or...
import mock from tests.compat import unittest from tests.utils import APITestCase import evelink.eve as evelink_eve class EVETestCase(APITestCase): def setUp(self): super(EVETestCase, self).setUp() self.eve = evelink_eve.EVE(api=self.api) def test_character_names_from_ids(self): sel...
from argparse import ArgumentParser import datetime import os.path import requests from config import EcobeeConfig VERBOSE = False # First values here are Ecobee's request column names, second are readable names used for the CSV file header COLUMNS = ( ("auxHeat1", "Aux Heat (sec)"), ("auxHeat2", "Aux Heat Stage...
#!/usr/bin/python #################################################### ## Run this file before doing a simics sync_char run. ## It produces the sync_char.map file that is read by ## The simics sync_char module. import sys, os, re, sets, shutil, getopt, sync_common, fsm as fsm_mod # Make sure . is in the path - common ...
from __future__ import absolute_import from itertools import izip_longest import Queue import MySQLdb as mysql from MySQLdb.cursors import DictCursor from dejavu.database import Database class SQLDatabase(Database): """ Queries: 1) Find duplicates (shouldn't be any, though): select `hash`, `so...
# 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...