text
stringlengths
12
6.59M
#!/usr/bin/python # invariants.py # Created by Disa Mhembere on 2013-03-21. # Email: dmhembe1@jhu.edu # Copyright (c) 2013. All rights reserved. import os from math import ceil import numpy as np import argparse from time import time import igraph import rpy2.robjects as robjects from rpy2.rinterface import NULL fro...
import os from django.core.management.base import CommandError, AppCommand, _make_writeable from optparse import make_option class Command(AppCommand): option_list = AppCommand.option_list + ( make_option('--name', '-n', action='store', dest='command_name', default='sample', help='The name to u...
import os import pyfits import numpy as np import glob import shutil import matplotlib.pyplot as plt USE_PLOT_GUI=False from matplotlib.figure import Figure from matplotlib.backends.backend_agg import FigureCanvasAgg from pyraf import iraf from iraf import iraf import threedhst import threedhst.eazyPy as eazy impo...
#!/usr/bin/env python # Copyright 2014 The Chromium Authors. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. """Bootstraps gn. It is done by first building it manually in a temporary directory, then building it with its own BUILD.gn to the fin...
from opcodes import * from math import * from z3 import * from z3util import * from vargenerator import * from utils import * from global_params import * # THIS IS TO DEFINE A SKELETON FOR ANALYSIS # FOR NEW TYPE OF ANALYSIS: add necessary details to the skeleton functions def init_analysis(): analysis = { ...
#!/usr/bin/python # Copyright (c) 2009 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. ''' Runs various chrome tests through heapcheck_test.py. Most of this code is copied from ../valgrind/chrome_tests.py. TODO(glider): ...
from enum import Enum from typing import Text, List, Optional, Union, Any, Dict, Tuple, Set import logging import json from rasa.core.actions import action from rasa.core.actions.loops import LoopAction from rasa.core.channels import OutputChannel from rasa.shared.core.domain import Domain from rasa.core.actions.acti...
import itertools import json import logging import pickle # noinspection PyPep8Naming from typing import Text, Optional, List, KeysView from rasa_core.actions.action import ACTION_LISTEN_NAME from rasa_core.broker import EventChannel from rasa_core.domain import Domain from rasa_core.trackers import ( DialogueSta...
from __future__ import absolute_import from __future__ import division from __future__ import print_function from __future__ import unicode_literals import itertools import typing import json import logging # noinspection PyPep8Naming import six.moves.cPickle as pickler from typing import Text, Optional, List from ...
#!/usr/bin/env python # vim: set sw=4 et: import logging import json import time import threading import kombu import socket from brozzler.browser import BrowserPool, BrowsingException import brozzler import urlcanon class AmqpBrowserController: """ Consumes amqp messages representing requests to browse urls,...
############################################################################ # # Copyright (C) 2013 tele <tele@rhizomatica.org> # # Statistics module # This file is part of RCCN # # RCCN is free software: you can redistribute it and/or modify # it under the terms of the GNU Affero Public License as published by # the ...
import logging from allauth.socialaccount.models import SocialToken from django.conf import settings from requests_oauthlib import OAuth1Session, OAuth2Session from .models import GithubProject, GithubOrganization, BitbucketProject, BitbucketTeam from tastyapi import apiv2 log = logging.getLogger(__name__) def ge...
__author__ = 'vivek' ''' Purpose : This file is executed by each of the compute units in the simulation stage. Uses the arguments to create a bash script which is executed on the remote machine to perform the gromacs simulation. Arguments : --mdp = name of the gromacs parameter f...
# Copyright 2013 The Chromium Authors. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. from measurements import memory import page_sets from telemetry import benchmark @benchmark.Enabled('android') class MemoryMobile(benchmark.Benchmark): t...
########################################################################### # (C) Vrije Universiteit, Amsterdam (the Netherlands) # # # # This file is part of AmCAT - The Amsterdam Content Analysis Toolkit # # # # AmCAT is free softw...
#!/usr/bin/env python # Copyright (c) 2009, Willow Garage, 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 # n...
import numpy as np import matplotlib.pyplot as plt from dist_mixtures.base import Struct import dist_mixtures.mixture_von_mises as mvm import analyses.transforms as tr import analyses.ioutils as io import analyses.plots as pl class DataSource(Struct): def __init__(self, get_filenames, spread_data, neg_shift=Tru...
# -*- coding: utf-8 -*- # Copyright (c) 2010 Mark Sandstrom # Copyright (c) 2011 Raphaël Barrois # # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limit...
#!/usr/bin/python2 # This Source Code Form is subject to the terms of the Mozilla Public # License, v. 2.0. If a copy of the MPL was not distributed with this # file, You can obtain one at http://mozilla.org/MPL/2.0/. # Copyright (c) 2015 Mozilla Corporation # Author: ameihm@mozilla.com import sys import os from stri...
from functools import wraps from django.http import HttpResponse from django.core.urlresolvers import reverse from django.core.handlers.wsgi import WSGIRequest from fandjango.views import authorize_application from fandjango.settings import FACEBOOK_APPLICATION_DOMAIN, FACEBOOK_APPLICATION_NAMESPACE from fandjango.ut...
from __future__ import print_function import ephem import os import numpy as np import pandas as pd import astropy.units as u import matplotlib.pyplot as plt from math import copysign from pyOrbfit.Orbit import Orbit from astropy.wcs import WCS from astropy.io import fits from astropy.time import Time from astropy.coo...
# -*- coding: utf-8 -*- ''' fastmat/inspect/test.py -------------------------------------------------- part of the fastmat package Implementations for class testing (quality management). Author : wcw Introduced : 2017-07-10 -----------------------------------------------------------------------------...
from functools import partial from itertools import chain, tee import numpy as np PI2 = 2 * np.pi def pairwise(iterable): one, two = tee(iterable) next(two, None) return zip(one, two) def grouper(iterable, n): return zip(*([iter(iterable)] * n)) def test_split_vertical(): i, j = split_vertic...
"""Provides interface for training the model.""" import os import shutil import tensorflow as tf import constants as c from model import architecture from preprocessing.pipelines import ImageDataPipeline def clear_tensorboard(path): """ Clears the directory for tensorboard, if it exists. Parameters: ...
from six import advance_iterator from django.contrib.auth import get_user_model from factory import ( LazyFunction, PostGenerationMethodCall, lazy_attribute, post_generation, ) from factory.django import DjangoModelFactory from faker.factory import Factory as FakerFactory faker = FakerFactory.create(p...
"""Main Qt application handling OS events and system tray UI""" import os import time import sys import subprocess from nxdrive.synchronizer import SynchronizerThread from nxdrive.protocol_handler import parse_protocol_url from nxdrive.logging_config import get_logger from nxdrive.gui.settings import prompt_settings f...
# Copyright 2013-2021 Lawrence Livermore National Security, LLC and other # Spack Project Developers. See the top-level COPYRIGHT file for details. # # SPDX-License-Identifier: (Apache-2.0 OR MIT) import os import os.path import llnl.util.lang from spack import * class FftwBase(AutotoolsPackage): """Base class...
#!/usr/bin/env python # The MIT License (MIT) # # Copyright (c) 2016 Paul Watkins, National Institutes of Health / NINDS # # 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...
#!/usr/bin/python import os import smtplib import imaplib import email import time import getpass import base64 from subprocess import call from subprocess import check_call ################################ Configuration ################################ classname = "CSPP51087" HW = 4 problems = ["1 - Mandelbrot Red...
# Copyright 2013-2019 Lawrence Livermore National Security, LLC and other # Spack Project Developers. See the top-level COPYRIGHT file for details. # # SPDX-License-Identifier: (Apache-2.0 OR MIT) import os.path import glob from spack import * class Gatk(Package): """ Genome Analysis Toolkit Variant Disc...
# The MIT License (MIT) # # Copyright (c) 2016 Paul Watkins, National Institutes of Health / NINDS # # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without lim...
# Copyright 2013 Joel Dunham # # 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 writi...
# Copyright 2013-2021 Lawrence Livermore National Security, LLC and other # Spack Project Developers. See the top-level COPYRIGHT file for details. # # SPDX-License-Identifier: (Apache-2.0 OR MIT) import re class Gawk(AutotoolsPackage, GNUMirrorPackage): """If you are like many computer users, you would frequentl...
from __future__ import division from __future__ import unicode_literals import sys import pandas import numpy as np from sklearn.feature_extraction.text import CountVectorizer from recordlinkage.utils import _label_or_column, _resample try: import jellyfish except ImportError: pass def _check_jellyfish(ra...
# Copyright 2013-2019 Lawrence Livermore National Security, LLC and other # Spack Project Developers. See the top-level COPYRIGHT file for details. # # SPDX-License-Identifier: (Apache-2.0 OR MIT) import shutil import sys from spack import * class Hdf5(AutotoolsPackage): """HDF5 is a data model, library, and fi...
from __future__ import division import sys import warnings import pandas import numpy as np from sklearn.feature_extraction.text import CountVectorizer try: import jellyfish except ImportError: pass from recordlinkage.utils import _label_or_column, _resample def _check_jellyfish(): if 'jellyfish' not in sys...
from __future__ import print_function import os import uuid from textwrap import TextWrapper import claw from atom.models import AttachmentBase from claw import quotations from django.conf import settings from django.contrib.auth import get_user_model from django.core.files import File from django.core.files.base imp...
# Copyright 2013-2021 Lawrence Livermore National Security, LLC and other # Spack Project Developers. See the top-level COPYRIGHT file for details. # # SPDX-License-Identifier: (Apache-2.0 OR MIT) import os import shutil import sys import llnl.util.tty as tty class Hdf5(CMakePackage): """HDF5 is a data model, l...
import json import random from urllib import quote from pylons import tmpl_context as c from pylons import app_globals as g from pylons import request from r2.config import feature from r2.controllers import add_controller from r2.controllers.reddit_base import ( MinimalController, UnloggedUser, ) from r2.lib...
# -*- coding: utf-8 -*- # # Copyright © 2008 Ricky Zhou, Red Hat, Inc. All rights reserved. # # This copyrighted material is made available to anyone wishing to use, modify, # copy, or redistribute it subject to the terms and conditions of the GNU # General Public License v.2. This program is distributed in the hope ...
# Copyright 2013-2020 Lawrence Livermore National Security, LLC and other # Spack Project Developers. See the top-level COPYRIGHT file for details. # # SPDX-License-Identifier: (Apache-2.0 OR MIT) from spack import * from spack.version import Version class Meme(AutotoolsPackage): """The MEME Suite allows the bio...
#variables.py #written by Jesse Gallarzo #Integer variables are initialized below. #The print statement shows the addition of the two values. x = 5 y = 6 print(x+y) #String variables are initialized below. #The print statement shows the concantenation of the two values. x = '5' y = '6' print(x+y) #The variable 'name...
# Copyright 2015 WebEffects Network, 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...
############################################################################## # Copyright (c) 2013-2017, Lawrence Livermore National Security, LLC. # Produced at the Lawrence Livermore National Laboratory. # # This file is part of Spack. # Created by Todd Gamblin, tgamblin@llnl.gov, All rights reserved. # LLNL-CODE-64...
from django.views.generic import DetailView, TemplateView from wafer.schedule.models import Venue, Slot from wafer.schedule.admin import check_schedule class ScheduleRow(object): """This is a helpful containter for the schedule view to keep sanity""" def __init__(self, slot, venue_list): self.slot = ...
# Copyright 2013-2020 Lawrence Livermore National Security, LLC and other # Spack Project Developers. See the top-level COPYRIGHT file for details. # # SPDX-License-Identifier: (Apache-2.0 OR MIT) from spack import * import os import shutil class Mfem(Package): """Free, lightweight, scalable C++ library for fini...
from decimal import Decimal from django.conf import settings from django.db import transaction from django.utils.translation import ugettext as _ import stripe from dimagi.utils.decorators.memoized import memoized from corehq.apps.accounting.models import ( BillingAccount, CreditLine, Invoice, Payme...
#!/usr/bin/python # -*- coding: utf-8 -*- # Halide code generation tool __author__ = __maintainer__ = "Jérôme Carretero <cJ-waf@zougloub.eu>" __copyright__ = "Jérôme Carretero, 2014" """ Tool to run `Halide <http://halide-lang.org>`_ code generators. Usage:: bld( name='pipeline', # ^ Reference this in ...
import numpy as np import scipy.interpolate as interpolate import scipy.optimize def invert_slip(faultxyz, horizonxyz, alpha=None, guess=(0,0), return_metric=False, verbose=False, overlap_thresh=0.3, **kwargs): """ Given a fault, horizon, and optionally, a shear angle, and sta...
""" This file is currently just documentation as code, but is formatted so as to be friendly to tooling we might write in order to clean up these docs. """ from django.conf import settings MAIN_DB = None # Doc types for classes we've removed from our code # but may still have docs lying around from DELETABLE_COUCH_D...
# Copyright (c) 2011-2013 Rackspace Hosting # All Rights Reserved. # Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless ...
# Copyright 2013-2021 Lawrence Livermore National Security, LLC and other # Spack Project Developers. See the top-level COPYRIGHT file for details. # # SPDX-License-Identifier: (Apache-2.0 OR MIT) from spack import * class Qgis(CMakePackage): """QGIS is a free and open-source cross-platform desktop geographic ...
from __future__ import absolute_import from __future__ import unicode_literals import errno import json import os import os.path from collections import namedtuple from contextlib import contextmanager from datetime import datetime from django.conf import settings from memoized import memoized from sqlalchemy import...
""" TeXcheck.py -- rough syntax checking on Python style LaTeX documents. Written by Raymond D. Hettinger <python at rcn.com> Copyright (c) 2003 Python Software Foundation. All rights reserved. Designed to catch common markup errors including: * Unbalanced or mismatched parenthesis, brackets, and braces. * Unb...
#!/usr/bin/python # -*- coding: utf-8 -*- """The Wallace command-line utility.""" import click import time import uuid from psiturk.psiturk_config import PsiturkConfig import os import subprocess import shutil import pexpect import tempfile import inspect import imp import pkg_resources import re CONTEXT_SETTINGS = ...
# Licensed under a 3-clause BSD style license - see LICENSE.rst __all__ = ['__version__', '__githash__'] # this indicates whether or not we are in the package's setup.py try: _ASTROPY_SETUP_ except NameError: import builtins builtins._ASTROPY_SETUP_ = False try: from .version import version as __vers...
from __future__ import absolute_import from __future__ import division from __future__ import unicode_literals import datetime import math import operator from collections import defaultdict, namedtuple from django.conf import settings from django.utils.translation import ugettext as _, ugettext_lazy, ugettext_noop f...
""" flask_oauthlib.contrib.client ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ An experiment client with requests-oauthlib as backend. """ import os import contextlib import warnings try: from urllib.parse import urljoin except ImportError: from urlparse import urljoin from flask import current_app, redirect, r...
#!/usr/bin/python # -*- coding: utf-8 -*- """The Wallace command-line utility.""" import click import time import uuid from psiturk.psiturk_config import PsiturkConfig import os import subprocess import shutil import pexpect import tempfile import inspect import imp import pkg_resources import re import psycopg2 from...
import datetime from ..core import db import json import hashlib import time from hurry.filesize import size # TODO: Issue with connected_at and datetime in general that makes it not stable in mongodb. # TODO: Add the filemodel to the quota check. class UserModel(db.Document): """CoRR backend user model. The ...
# Copyright Hybrid Logic Ltd. See LICENSE file for details. """ Tests for ``flocker.node.agents.blockdevice``. """ from errno import ENOTDIR from os import getuid, statvfs from uuid import UUID, uuid4 from subprocess import STDOUT, PIPE, Popen, check_output from bitmath import MB import psutil from zope.interface...
""" Standalone Django-like schema model This module allows developers to define standalone (separate from databases) schemas using a syntax similar to Django. The `io` module provides methods to serialize and deserialize schema objects to/from Excel, csv, and tsv file(s). ===================================== Definin...
import logging #-------------------------------------------------------- # Frontier #-------------------------------------------------------- REQUEST_MODEL = 'crawlfrontier.core.models.Request' RESPONSE_MODEL = 'crawlfrontier.core.models.Response' MIDDLEWARES = [ 'crawlfrontier.contrib.middlewares.domain.DomainMid...
import numpy as np import pandas as pd import pyther as pt # properties thermodynamics Solid_Density = "Solid Density", "[kmol/m^3]", "A+B*T+C*T^2+D*T^3+E*T^4", 0 Liquid_Density = "Liquid Density", "[kmol/m^3]", "A/B^(1+(1-T/C)^D)", 1 Vapour_Pressure = "Vapour Pressure", "[Pa]", "exp(A+B/T+C*ln(T)+D*T^E)", 2 Heat_of_...
# -*- coding: utf-8 -*- ########################################################################################## # Developer: Luan,Jingchao Project: HuMaIN (http://humain.acis.ufl.edu) # Description: # Receive OCRopus binarization service requests from user, call binarization function # and get the outpu...
# # 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/licenses/LICENSE-2.0 # # Unless required by appli...
""" Processes for Species distribution Author: Nils Hempelmann (nils.hempelmann@lsce.ipsl.fr) """ from pywps.Process import WPSProcess from flyingpigeon.sdm import _SDMINDICES_ from pywps import Process from pywps import LiteralInput from pywps import ComplexInput, ComplexOutput from pywps import Format, FORMATS from...
import os # TODO: improve DB path selection basedir = os.path.abspath(os.path.dirname(__file__)) # sqlalchemy database config SQLALCHEMY_DATABASE_URI = os.environ.get('WCONTROL_DB', 'sqlite:///' + basedir + '/../db/app.db') SQLALCHEMY_MIGRATE_REPO = os.path.join(basedir, 'db_r...
# -*- coding: utf-8 -*- ############################################################################### # # Copyright (C) 2001-2014 Micronaet SRL (<http://www.micronaet.it>). # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU Affero General Public License a...
#!/usr/bin/env python # -*- coding: UTF-8 -*- # (c) 2013 Chris Betz import logging logging.getLogger(__name__).addHandler(logging.NullHandler()) try: import simplejson as json except ImportError: import json import inspect import math import time try: import urllib.parse as urllib except ImportError: ...
# Copyright 2014 OpenCore 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,...
# coding: utf8 # WeasyPrint converts web documents (HTML, CSS, ...) to PDF. # Copyright (C) 2011 Simon Sapin # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU Affero General Public License as # published by the Free Software Foundation, either version 3 of t...
""" =========================== Analytical energy demand model algorithm =========================== """ from __future__ import division import multiprocessing as mp import pandas as pd import time import cea.globalvar import cea.inputlocator from cea.demand import occupancy_model from cea.demand import thermal_load...
# -*- coding: utf-8 -*- ############################################################################## # # OpenERP, Open Source Management Solution # Copyright (C) 2011 OpenERP SA (<http://www.openerp.com>). # # This program is free software: you can redistribute it and/or modify # it under the terms of the...
# -*- coding: utf-8 -*- """ pumps """ from __future__ import division import os import pandas as pd from scipy.interpolate import interp1d from math import log import numpy as np from cea.optimization.constants import PUMP_ETA from cea.constants import DENSITY_OF_WATER_AT_60_DEGREES_KGPERM3, HEAT_CAPACITY_OF_WATER_JPER...
# Load the required modules import os, sys, subprocess, socket, multiprocessing from random import shuffle from sets import Set # Import the Machine and DmakeRC class from Machine import * from DmakeRC import * from DistccDaemon import * ## Helper function for creating machine objects, this is required to be outside ...
# -*- coding: utf-8 -*- """ ffmpegwrapper.ffmpeg ~~~~~~~~~~~~~~~~~~~~ Your entrypoint for every Task you want to do with FFmpeg :copyright: (c) 2014 by Mathias Koehler. :license: BSD, see LICENSE for more details. """ from subprocess import Popen, PIPE, STDOUT from itertools import chain from th...
import subprocess import time import speaker # #startup dispatcher # class StartUp(object): # def __init__: # self.dispatcher = subprocess.Popen('easyNav-pi-dispatcher > dispatcher.txt 2>&1', shell=True) # print "Started dispatcher" # self.nav = class StartUp(object): def __init__(self): self.speakery...
try: from urllib.error import URLError as url_error except ImportError: # Python 2 from urllib2 import URLError as url_error import logging logger = logging.getLogger(__name__) """ Fields: - version - zone id - customer id - API key - optional tracer """ import cedexis.radar.session.init import cedexis....
import datetime import docker import multiprocessing import os import pkg_resources import platform import subprocess from vent.api.plugins import Plugin from vent.api.templates import Template from vent.helpers.paths import PathDirs def Version(): """ Get Vent version """ version = '' try: versio...
# coding=utf-8 import os from datetime import datetime from logging import Logger from .utils import getLogger from .configparser import Config from .enums import PluginType from .filesystem import FileSystemWatcher from .plugin.manager import PluginManager from .threadmanager import ThreadManager class Core: de...
# Copyright 2016 The Chromium Authors. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. import datetime import os import sys import traceback import uuid from google.appengine.api import datastore_errors from google.appengine.api import taskque...
import heapq import struct import simuvex import rop_utils from errors import RopException from rop_chain import RopChain from rop_gadget import RopGadget import types import logging from collections import defaultdict l = logging.getLogger("angrop.chain_builder") def _str_find_all(a_str, sub): start = 0 ...
import socket def client(host, port): # Talk to server until disconnected. try: s = socket.socket(socket.AF_INET, socket.SOCK_STREAM) s.connect((host, port)) while True: reply = s.recv(256).decode()[:256] if len(reply) == 0: reply = '9' ...
# -*- coding: utf-8 -*- import unittest from trac.ticket.model import Ticket from trac.ticket.roadmap import Milestone from trac.ticket.query import QueryModule from trac.ticket.report import ReportModule from trac.wiki.tests import formatter TICKET_TEST_CASES=u""" ============================== ticket: link resolve...
import unittest2 as unittest from StringIO import StringIO from datetime import datetime, timedelta from celery import task from celery import messaging from celery.utils import gen_unique_id from celery.result import EagerResult from celery.execute import send_task from celery.backends import default_backend from cel...
__author__ = 'calvin' import ftplib import sqlite3 import logging logger = logging.getLogger('AnonymousUsage') logger.setLevel(logging.DEBUG) def create_table(dbcon, name, columns): """ Create a table in the database. :param dbcon: database :return: True if a new table was created """ try: ...
#!/usr/bin/env python2.7 # -*- coding: utf-8 -*- """ This python package provides a wrapper for functions provided by the 4MOST Facility Simulator, 4FS. """ import os from os import path as os_path import numpy as np import astropy.io.fits as fits import logging from fourgp_speclib import Spectrum import config_fil...
# Copyright 2009 - Participatory Culture Foundation # # This file is part of vidscraper. # # 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 # no...
######## # Copyright (c) 2014 GigaSpaces Technologies Ltd. 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 (C) 2018 Satoru SATOH <ssato @ redhat.com> # License: MIT # r"""Abstract processor module. .. versionadded:: 0.9.5 - Add to abstract processors such like Parsers (loaders and dumpers). """ from __future__ import absolute_import import operator import pkg_resources import anyconfig.compat import any...
import logging from PyQt5.QtWidgets import QDialog, QPushButton, QWidget, QDialogButtonBox from PyQt5.QtCore import Qt from typing import Optional, Callable, Dict, Any from sas.system import config from sas.qtgui.Utilities.Preferences.UI.PreferencesUI import Ui_preferencesUI from sas.qtgui.Utilities.Preferences.Prefe...
import json from uuid import uuid4 from twisted.internet.defer import inlineCallbacks, returnValue from zope.interface import implements from vumi.transports.smpp.iprocessors import (IDeliveryReportProcessor, IDeliverShortMessageProcessor) from vumi.transports.smpp.smpp_...
"""Core Vision Egg functionality This module contains the architectural foundations of the Vision Egg. Classes: Screen -- An OpenGL window Viewport -- Connects stimuli to a screen Projection -- Converts stimulus coordinates to viewport coordinates Stimulus -- Base class for a stimulus Presentation -- Handles the tim...
import unittest from django.test import TestCase from django.core.cache import cache from wagtail.wagtailcore.models import Page, Site from wagtail.wagtailcore.utils import resolve_model_string from wagtail.tests.models import SimplePage class TestPageUrlTags(TestCase): fixtures = ['test.json'] def test_pa...
import re import collections from rest_framework.reverse import reverse from rest_framework.fields import SkipField from rest_framework import serializers as ser from framework.guid.model import Guid from website import settings from website.project.model import Node, Comment from website.util.sanitize import strip_h...
#!/usr/bin/env python # -*- coding: utf-8 -*- """ python modules for plot utilities: ImageViewer: main GUI framework for an universal image viewer Author: Tong Zhang Created: Feb. 3rd, 2015 """ #import wxversion #wxversion.ensureMinimal('2.8') from __future__ import division import wx from wx.lib.agw import fl...
"""VisionEgg Core Library """ # This is the python source code for the Core module of the Vision Egg package. # # # Copyright (c) 2001, 2002 Andrew Straw. Distributed under the terms of the # GNU General Public License (GPL). #################################################################### # # Import all ...
import re import collections import furl from rest_framework import exceptions from rest_framework import serializers as ser from django.core.urlresolvers import resolve, reverse from django.http.request import QueryDict from rest_framework.fields import SkipField from api.base.utils import extend_querystring_params ...
# The Vision Egg: Core # # Copyright (C) 2001-2004 Andrew Straw # Copyright (C) 2004 California Institute of Technology # # Author: Andrew Straw <astraw@users.sourceforge.net> # URL: <http://www.visionegg.org/> # # Distributed under the terms of the GNU Lesser General Public License # (LGPL). See LICENSE.TXT that came ...