gt
stringclasses
1 value
context
stringlengths
2.49k
119k
""" The FilterManager is a convenience class that helps with the creation of render-to-texture buffers for image postprocessing applications. Still need to implement: * Make sure sort-order of buffers is correct. * Matching buffer size to original region instead of original window. * Intermediate layer creation. * H...
# 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/python # -*- coding: utf-8 -*- import locale import os import re import sys # replace with the actual path to the bing-desktop-wallpaper-changer folder path_to_Bing_Wallpapers="/path/to/bing-desktop-wallpaper-changer" # wait computer internet connection os.system("sleep 10") try: # try python 3 import ...
""" Django settings for api project. Generated by 'django-admin startproject' using Django 1.8. 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 os from fut...
from util import manhattanDistance from game import Directions import math import random, util, mazeUtils from game import Agent _a = _b = _c = _d = _e = _f = 0.0 def storeConstants(a, b, c, d, e, f): global _a, _b, _c, _d, _e, _f _a = float(a) _b = float(b) _c = float(c) _d = float(d) _e = float(e) _f ...
#----------------------------------------------------------------------------- # Copyright (c) 2012 - 2022, Anaconda, Inc., and Bokeh Contributors. # All rights reserved. # # The full license is in the file LICENSE.txt, distributed with this software. #-------------------------------------------------------------------...
# -*- coding: utf-8 -*- # Copyright 2017, Digital Reasoning # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applica...
import warnings import numpy as np import pandas as pd import scipy.sparse as sp from scipy.interpolate import interp1d from astropy import units as u from tardis import constants as const from tardis.montecarlo.montecarlo import formal_integral from tardis.montecarlo.spectrum import TARDISSpectrum class Integration...
#!/usr/bin/env python # # Generated Sun Jun 14 13:41:29 2015 by parse_xsd.py version 0.5. # import saml2 from saml2 import SamlBase from saml2.ws import wsaddr as wsa from saml2.ws import wssec as wsse from saml2.ws import wsutil as wsu from saml2.ws import wspol as wsp NAMESPACE = 'http://docs.oasis-open.org/ws-sx...
import sys import numpy as np import json import chainer import chainer.links as L import chainer.functions as F from chainer import cuda from chainer import training, Variable from chainer.training import extensions from chainer.optimizer import WeightDecay, GradientClipping from ccgbank import walk_autodir from japa...
# -*- coding: utf-8 -*- import re from urllib import urlencode from .exceptions import NotFound, MethodNotAllowed from .constants import HTTP_METHODS # this regular expression for matching dynamic routing rule. # Ex: /example/<int:test> # this RE string can match this part: "<int:test>" _rule_re = re.compile(r''' ...
''' Created on 24 Jul 2017 @author: Mathias Bucher ''' from ctr.Log import Log from model.Model import Model from model.ModelEntry import ModelEntry from view.View import View from model.ConfigFile import ConfigFile import os class Controller(): configDataBase = "databasepath" tempFilePath = "tempfilepath" ...
# -*- coding: utf-8 -*- """ Created on Mon Nov 13 20:47:28 2017 @author: Caasar """ from __future__ import division #try: # from PySide import QtCore #except ImportError: # from PyQt4 import QtCore INF_POINT = 1000000000 def crop_image(img, prevImg, thr=50.0, min_lines=25, stop_thr=150): try: impo...
from django.contrib.auth.forms import UserCreationForm from django.contrib.auth import login, authenticate from django.template import RequestContext from django.contrib.auth.decorators import login_required from django.shortcuts import render_to_response from django.http import HttpResponseRedirect from django.contrib...
#!/usr/bin/env python # Copyright (c) 2012, Marco Vito Moscaritolo <[email protected]> # Copyright (c) 2013, Jesse Keating <[email protected]> # Copyright (c) 2015, Hewlett-Packard Development Company, L.P. # Copyright (c) 2016, Rackspace Australia # # This module is free software: you can redistribute it and...
# Licensed to the Apache Software Foundation (ASF) under one # or more contributor license agreements. See the NOTICE file # distributed with this work for additional information # regarding copyright ownership. The ASF licenses this file # to you under the Apache License, Version 2.0 (the # "License"); you may not u...
# coding=utf-8 # Copyright 2022 The Google Research Authors. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicab...
# ---------------------------------------------------------------------------- # pymunk # Copyright (c) 2007-2011 Victor Blomqvist # # 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 re...
""" Classes allowing "generic" relations through ContentType and object-id fields. """ from __future__ import unicode_literals from collections import defaultdict from functools import partial from django.core.exceptions import ObjectDoesNotExist from django.db import connection from django.db import models, router, ...
import logging import docker import pytest from compose import container from compose.cli.errors import UserError from compose.cli.formatter import ConsoleWarningFormatter from compose.cli.main import build_one_off_container_options from compose.cli.main import call_docker from compose.cli.main import convergence_str...
""" JSON serializers for the Order API """ # -*- coding: utf-8 -*- from __future__ import unicode_literals from django.utils.translation import ugettext_lazy as _ from django.core.exceptions import ValidationError as DjangoValidationError from django.db import models, transaction from django.db.models import Case, W...
#!/usr/bin/env python # # Copyright 2007 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 o...
# coding: utf-8 # # Copyright 2018 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...
import socket import ujson as json from urllib import urlencode, unquote FB_READ_TIMEOUT = 180 class Api: def __init__(self, access_token=None, request=None, cookie=None, app_id=None, stack=None, err_handler=None, timeout=FB_READ_TIMEOUT, urllib2=None, httplib=None, ...
from random import randrange from Terrain import terrains from Item import itemtypes from RoguePy.UI import Elements from RoguePy.libtcod import libtcod from cave import Cave from RoguePy.State.GameState import GameState class WorldGenState(GameState): def __init__(self, name, manager, ui): super(WorldGenState...
#!/usr/bin/env python """Cron management classes.""" import random import threading import time import logging from grr.lib import access_control from grr.lib import aff4 from grr.lib import config_lib from grr.lib import data_store from grr.lib import flow from grr.lib import master from grr.lib import rdfvalue fr...
"""This file contains functions to create plots that are nicely formatted for use in publication figures """ from scipy.stats import sem import matplotlib as mpl from matplotlib.patches import Ellipse, Polygon from matplotlib.lines import Line2D from matplotlib.collections import PatchCollection from matplotlib.cbook i...
""" Created on 22 Feb 2019 @author: Bruno Beloff ([email protected]) https://www.w3schools.com/sql/sql_join.asp """ from scs_core.data.datetime import LocalizedDatetime from scs_core.data.path_dict import PathDict # ----------------------------------------------------------------------------------...
import numpy as NP import scipy as sp import scipy.linalg as LA import numpy.linalg as nla import os import sys import glob sys.path.append("./../../pyplink") from fastlmm.pyplink.plink import * from pysnptools.util.pheno import * from fastlmm.util.mingrid import * #import pdb import scipy.stats as ST import fastlmm.ut...
import os import shutil import subprocess import tempfile import time from plone.testing import Layer from pkg_resources import resource_filename from bda.ldap import ( ONELEVEL, SUBTREE, LDAPProps, ) from bda.ldap.users import ( LDAPUsersConfig, LDAPGroupsConfig, ) SCHEMA = os.environ.get('SCHEMA'...
""" Thunder JSON object serialization utility """ import abc import json import os def _isNamedTuple(obj): """ Heuristic check if an object is a namedtuple. """ return hasattr(obj, "_fields") and hasattr(obj, "_asdict") and callable(obj._asdict) def _decode_list(data): # workaround for JSON decoding to...
# coding=utf-8 # Copyright 2022 The Google Research Authors. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicab...
from __future__ import absolute_import from __future__ import division from __future__ import print_function import os.path from distutils.version import LooseVersion from glob import glob from io import BytesIO from numbers import Number import numpy as np from .. import backends, conventions from .common import Ar...
# coding: utf-8 # # Copyright 2019 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/python # -*- coding: utf-8 -*- """Tests for the preg front-end.""" import unittest from dfvfs.helpers import source_scanner from dfvfs.lib import definitions as dfvfs_definitions from dfvfs.path import factory as path_spec_factory from plaso.dfwinreg import definitions as dfwinreg_definitions from plaso.e...
""" This module provides the main Scheduler logic of the program. """ from constraint import Problem from constraints import MachineBreaksConstraint from printer import pprint, BLUE, YELLOW, RED class Scheduler(object): """ This class provides the constraint-based Scheduler. """ def __init__(self, plant, orderList...
# ---------------------------------------------------------------------------- # Copyright 2014 Nervana Systems Inc. # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.o...
# Copyright (c) 2014, Fundacion Dr. Manuel Sadosky # All rights reserved. # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are met: # 1. Redistributions of source code must retain the above copyright notice, this # list of condit...
# 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 agreed to in...
# Copyright 2006 James Tauber and contributors # Copyright 2010 Luke Kenneth Casson Leighton <[email protected]> # # 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...
# 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...
#!/usr/bin/python import sys import time import pickle import os from amr_graph import * from amr_utils import * import logger import argparse from re_utils import * from collections import defaultdict from amr_stats import AMR_stats def build_bimap(tok2frags): frag2map = defaultdict(set) index2frags = defaultd...
#!/usr/bin/env python3 import argparse import sys from struct import * import datetime import csv import math from bstruct_defs import * class Input: def __init__(self, fileName): if args.verbose: print('[INFO] Trying to read data from %s...' % fileName) try: with open(fil...
# 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...
# Copyright 2015 Internap. # # 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 2014 Netflix, 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...
#/usr/bin/python # Ripmaster Tool Tests # Tests for the Ripmaster tools # By Sean Wallitsch, 2014/04/06 """ Tests for all of the classes and functions inside of Ripmaster's tools module. REQUIREMENTS: mock """ #=============================================================================== # IMPORTS #===============...
# Copyright 2018 The AI Safety Gridworlds 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 b...
import argh import os import itertools import subprocess from functools import partial from typing import Iterable from cr8 import aio, clients from cr8.insert_json import to_insert from cr8.bench_spec import load_spec from cr8.engine import Runner, Result, run_and_measure, eval_fail_if from cr8.misc import ( as_b...
""" 1D RootFind class. Bruce Wernick 10 June 2021 """ import sys from math import sqrt, log10 from const import EPS, TINY def MIN(a, b): if a < b: return a return b def SQR(x): t = x return t*t def SIGN(a, b): if b >= 0.0: return abs(a) return -abs(a) def signum(a, b): 'signed number' if b ...
# coding: utf-8 """ Qc API Qc API # noqa: E501 The version of the OpenAPI document: 3.0.0 Contact: [email protected] Generated by: https://openapi-generator.tech """ import pprint import re # noqa: F401 import six from telestream_cloud_qc.configuration import Configuration class...
"""Agent manager to handle plugin to agent RPC and periodic tasks.""" # coding=utf-8 # Copyright (c) 2016-2018, F5 Networks, Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http:/...
# coding: utf-8 #!/usr/bin/python from numpy import log2 from operator import div, add from itertools import izip from types import FunctionType # rr def rr(ss): for i, s in enumerate(ss): i += 1 if s == True: return 1.0 / float(i) else: pass # mrr def mrr(scores): ...
#!/usr/bin/python # # Copyright (C) 2014 eNovance SAS <[email protected]> # # 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 r...
""" Pure-func contains decorators that help writing pure functions in python. In python it is impossible to determine if a function is pure for certain. Even writing a static-analysis that gets the most cases right is very hard. Therefore pure-func checks purity at run-time in the spirit of python. The canonical way ...
#!/usr/bin/env python # Copyright (C) 2015 Wayne Warren # # 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...
# Copyright 2016 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...
""" Group for Tube and Pod components containing the following two sub-groups: Pod and Tube """ from openmdao.api import Component, Group, Problem, IndepVarComp, NLGaussSeidel, ScipyGMRES, ScipyOptimizer from hyperloop.Python.tube.tube_group import TubeGroup from hyperloop.Python.pod.pod_group import PodGroup from hype...
# -*- coding: utf-8 -*- # @COPYRIGHT_begin # # Copyright [2010-2014] Institute of Nuclear Physics PAN, Krakow, Poland # # 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.apac...
# # Copyright 2008 The ndb Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable l...
__author__ = 'Mohammad' import os import numpy as np import tensorflow as tf from tensorflow.contrib import learn, rnn from data_loader import get_related_answers, get_vqa_data, load_image # Parameters embedding_dim = 300 word2vec_file = 'data/GoogleNews-vectors-negative300.bin' learning_rate = 0.001 batch_size = 8 t...
#!/usr/bin/env python """ Binary memcached test client. Copyright (c) 2007 Dustin Sallings <[email protected]> """ import sys import time import hmac import socket import random import struct import exceptions from memcacheConstants import REQ_MAGIC_BYTE, RES_MAGIC_BYTE from memcacheConstants import REQ_PKT_FMT, RES_P...
""" This program serves as a gateway between a client and a hotel reservation server. Communication with the client is done over a TCP socket while communication with the server is done via Java RMI. Some Java classes are needed to run the gateway, edit the 'hotelgw' shell script to your liking. See the Java HotelGat...
from sympy.utilities.pytest import XFAIL, raises from sympy import ( symbols, lambdify, sqrt, sin, cos, pi, atan, Rational, Float, Matrix, Lambda, exp, Integral, oo, I, Abs, Function) from sympy.printing.lambdarepr import LambdaPrinter from sympy import mpmath from sympy.utilities.lambdify import implemented_fu...
# 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...
from django.db import models from django.urls import reverse from .fields import ChoiceArrayField import reversion from reversion.models import Version @reversion.register() class Diabetes(models.Model): # Student Information Fields DIABETES_TYPE_CHOICES = ( ('TYPE_I', 'Type I'), ('TYPE_II', ...
from collections import Iterable import six from pyrsistent._pmap import PMap, pmap from pyrsistent._pset import PSet, pset from pyrsistent._pvector import PythonPVector, python_pvector class CheckedType(object): """ Marker class to enable creation and serialization of checked object graphs. """ __slo...
# -*- coding: utf-8 -*- #!/usr/bin/env python # # Copyright 2015 BigML # # Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required b...
"""Encoder for sentences withou explicit segmentation.""" from typing import Optional, Tuple, List import tensorflow as tf from typeguard import check_argument_types from neuralmonkey.encoders.recurrent import RNNCellTuple from neuralmonkey.model.model_part import ModelPart, FeedDict, InitializerSpecs from neuralmon...
"""Copyright (c) 2015 Red Hat, Inc All rights reserved. This software may be modified and distributed under the terms of the BSD license. See the LICENSE file for details. Sync built image to pulp registry using Docker Registry HTTP API V2 Pulp authentication is via a key and certificate. Docker V2 registry authenti...
# -*- coding: utf-8 -*- import httplib as http import itertools from flask import request from framework import status from framework.exceptions import HTTPError from framework.flask import redirect # VOL-aware redirect from framework.auth.decorators import must_be_signed from website.archiver import ARCHIVER_SUCC...
"""Group TQL Filter""" # standard library from enum import Enum # first-party from tcex.api.tc.v3.api_endpoints import ApiEndpoints from tcex.api.tc.v3.filter_abc import FilterABC from tcex.api.tc.v3.tql.tql import Tql from tcex.api.tc.v3.tql.tql_operator import TqlOperator from tcex.api.tc.v3.tql.tql_type import TqlT...
"""Export to PDF via latex""" # Copyright (c) IPython Development Team. # Distributed under the terms of the Modified BSD License. import subprocess import os import sys from ipython_genutils.py3compat import which, cast_bytes_py2, getcwd from traitlets import Integer, List, Bool, Instance, Unicode, default from tes...
# -------------------------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. # --------------------------------------------------------------------...
#!/usr/bin/env python # # Use the raw transactions API to spend bitcoins received on particular addresses, # and send any change back to that same address. # # Example usage: # spendfrom.py # Lists available funds # spendfrom.py --from=ADDRESS --to=ADDRESS --amount=11.00 # # Assumes it will talk to a bitcoind or Bit...
# Copyright 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 requ...
"""Module to read raw data and produce records with.""" import os import matplotlib.pyplot as plt import numpy as np import sfg2d.core as core import sfg2d.records as rr import sfg2d.models import dpath.util import logging from . import myyaml as yaml import pandas as pd from glob import glob plt.ion() logger = loggin...
""" Author: socHACKi This class is to be used for linear modeling of PLL systems. There are a few architectures available for the pll's that are modeled by this class. """ import numpy as np from socHACKi.socHACKiUtilityPackage import AttrDict from simpyle_systems.synthesizer import PhaseNoise # %% import matplotli...
import sys, os, types import codecs from RemoveDuplicates import removeDuplicateEvents class Document: def __init__(self, id=None, loadFromDir=None, a2Tags=["a2", "rel"], readExtra=False, debug=False): self.id = id self.text = None self.proteins = [] self.triggers = [] self....
""" The SparseL1Descent attack. """ import warnings from distutils.version import LooseVersion import tensorflow as tf from cleverhans.attacks.attack import Attack from cleverhans import utils_tf from cleverhans.utils_tf import clip_eta, random_lp_vector from cleverhans.compat import reduce_max, reduce_sum, softmax_...
from __future__ import absolute_import, unicode_literals import os import pytest from case import Mock, mock, patch from celery.bin.base import Command, Extensions, Option from celery.five import bytes_if_py2 class MyApp(object): user_options = {'preload': None} APP = MyApp() # <-- Used by test_with_custom_...
from test.orm import _fixtures from sqlalchemy import testing from sqlalchemy.orm import mapper, relationship, create_session from sqlalchemy import util import sqlalchemy as sa from sqlalchemy.testing import eq_, assert_raises_message class DefaultStrategyOptionsTest(_fixtures.FixtureTest): def _assert_fully_loa...
from flask import * import time import config import datetime import sys import json import re import math import requests import dateutil.parser from elasticsearch import Elasticsearch import logging app = Flask(__name__, template_folder='templates') app.secret_key = config.secret_key index_name = config.index_nam...
import json from base import BaseAGOLClass import urlparse import urllib import os import json ######################################################################## class TiledService(BaseAGOLClass): """ AGOL Tiled Map Service """ _mapName = None _documentInfo = None _copyrightText = None...
# # Copyright (c) SAS Institute Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in w...
import datetime import json from bson import json_util from django.conf import settings from django.shortcuts import render_to_response from django.template import RequestContext from django.template.loader import render_to_string from django.http import HttpResponse from django.core.urlresolvers import reverse from d...
import unittest import ordereddict from openmdao.main.api import Component, Architecture, set_as_top from openmdao.main.datatypes.api import Float, Int, Enum, Array from openmdao.main.hasconstraints import HasConstraints from openmdao.main.hasobjective import HasObjectives from openmdao.main.problem_formulation import...
import cobble.env import cobble.target import os.path from itertools import chain from cobble.plugin import * DEPS_INCLUDE_SYSTEM = cobble.env.overrideable_bool_key( name = 'c_deps_include_system', default = True, readout = lambda x: '-MD' if x else '-MMD', help = ('Whether to recompile in response to ...
# Copyright 2013 IBM Corp. # # Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agree...
from __future__ import print_function import traceback import os import sys import platform import subprocess import idaapi import contextlib # This is a hack to get zmq to work with the Anaconda distribution and IDA. try: platform.python_implementation() except ValueError: sys.version = '2.7.5 |Anaconda 2.1.0...
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ Class Implementing Gauss Elimination with Pivots. Uses in built list operators. """ class GaussElimination(object): """ Implements the Gaussian Elimination Method to solve the System of Linear Equations. Uses the Scaled Pivoting technique to find the Uppe...
# Author : Martin Luessi [email protected] (2012) # License : BSD 3-clause # Parts of this code were copied from NiTime http://nipy.sourceforge.net/nitime import operator import numpy as np from ..fixes import rfft, irfft, rfftfreq from ..parallel import parallel_func from ..utils import sum_squared, warn,...
# -*- coding: utf-8 -*- """ S3 Synchronization: Peer Repository Adapter for ADASHI @copyright: 2011-2021 (c) Sahana Software Foundation @license: MIT Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), ...
# Copyright 2011 GovData Project. # # 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) 2013, PyInstaller Development Team. # # Distributed under the terms of the GNU General Public License with exception # for distributing bootloader. # # The full license is in the file COPYING.txt, distributed with this softwa...
#!env python # -*- coding: utf-8 -*- import os import stat import sys import re import subprocess VERSION = (0, 0, 3) DATE = (2013, 8, 15) VERBOSE = False def _I(s, *av): if not VERBOSE: return if len(av) > 0: print >> sys.stderr, ' '.join([s] + list(av)) else: print >> sys.stderr...
# Copyright (c) 2002, Daniel Krech, http://eikeon.com/ # 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 ...
"""Upload the contents of your Downloads folder to Dropbox. This is an example app for API v2. """ from __future__ import print_function import argparse import contextlib import datetime import os import six import sys import time import unicodedata if sys.version.startswith('2'): input = raw_input # noqa: E50...
"""Nose plugin for monitoring connections made during test Use ``nosetests --with-connection-report`` to enable the plugin. When enabled, each test is run in a separate process. Copyright 2014 Thomas Stephens <[email protected]> Copyright 2007 John J. Lee <[email protected]> """ import os import pickle import re impor...
bl_info = { "name": "Export Storm Framework Mesh Format (.storm-mesh)", "author": "vanderlokken", "version": (1, 3), "blender": (2, 65, 0), "location": "File > Export > Storm Framework Mesh (.storm-mesh)", "description": "Export mesh in Storm Framework format", "warning": "", "wiki_url":...