code
stringlengths
1
199k
import argparse import os import re import sqlite3 from collections import OrderedDict from biocode.utils import read_list_file def main(): """This is the second script I've written in Python. I'm sure it shows.""" parser = argparse.ArgumentParser( description='Reads a BLAST m8 file and taxonomy DB to produce ...
""" Outlier Detection using Tukeys Filter Class """ import sys import itertools from time import time from lib.modules.base_task import BaseTask from lib.modules.helper import extract_service_name, get_closest_datapoint from lib.modules.models import TimeSeriesTuple class TukeysFilter(BaseTask): def __init__(self, ...
""" Mapzen geocoder, contributed by Michal Migurski of Mapzen. """ from geopy.geocoders.base import ( Geocoder, DEFAULT_FORMAT_STRING, DEFAULT_TIMEOUT ) from geopy.compat import urlencode from geopy.location import Location from geopy.util import logger __all__ = ("Mapzen", ) class Mapzen(Geocoder): """...
import sys import os os.environ['DJANGO_SETTINGS_MODULE'] = 'gae.settings.settings' sys.path.append(os.path.join(os.path.dirname(__file__), 'lib')) from django.conf import settings settings._target = None import django.core.handlers.wsgi import django.core.signals import django.db import django.dispatch import logging ...
#------------------------------------------------------------------------------- import urllib2 def decode(param): try: #-- define variables loc_3 = [0,0,0,0] loc_4 = [0,0,0] loc_2 = '' #-- define hash parameters for decoding dec = 'ABCDEF...
""" This module implement a filesystem storage adapter. """ from __future__ import unicode_literals import errno import logging import os from flask import current_app from .interface import ImagineAdapterInterface from PIL import Image LOGGER = logging.getLogger(__name__) class ImagineFilesystemAdapter(ImagineAdapterI...
import os from django.conf.global_settings import TEMPLATE_CONTEXT_PROCESSORS from django.core.urlresolvers import reverse_lazy PROJECT_PATH = os.path.abspath(os.path.join(os.path.dirname(__file__), os.pardir)) PROJECT_ROOT = os.path.abspath(os.path.join(PROJECT_PATH, os.pardir)) DEBUG = True TEMPLATE_DEBUG = DEBUG ADM...
""" Data and methods to retrieve app specific configuration """ import json import requests APP_BACKDROP = "E8C28D3C" APP_YOUTUBE = "233637DE" APP_MEDIA_RECEIVER = "CC1AD845" APP_PLEX = "06ee44ee-e7e3-4249-83b6-f5d0b6f07f34_1" APP_DASHCAST = "84912283" APP_SPOTIFY = "CC32E753" APP_HOME_ASSISTANT = "B12CE3CA" APP_SUPLA ...
from collections import OrderedDict from datetime import date from nose.tools import eq_, assert_true, assert_false from mosql.compat import binary_type, text_type from mosql.util import ( autoparam, build_set, build_where, param, ___, _is_iterable_not_str, ) def test_is_iterable_not_str(): # Iterable objec...
""" Virtual environment (venv) package for Python. Based on PEP 405. Copyright (C) 2011-2014 Vinay Sajip. Licensed to the PSF under a contributor agreement. """ import logging import os import shutil import subprocess import sys import types logger = logging.getLogger(__name__) class EnvBuilder: """ This class ...
__all__ = ["Initiator","Simulator","Evaluator","Modelator","Validator"]
from StringIO import StringIO import textwrap import importer def test_import_csv(): current = StringIO(textwrap.dedent('''\ status,qty,type,transaction_date,posting_date,description,amount A,,,2016/11/02,,This is a test,$4.53 ''')) new = StringIO(textwrap.dedent('''\ ...
from swgpy.object import * def create(kernel): result = Tangible() result.template = "object/tangible/furniture/decorative/shared_radio.iff" result.attribute_template_id = 6 result.stfName("frn_n","radio") #### BEGIN MODIFICATIONS #### #### END MODIFICATIONS #### return result
from mine import * import colors import sys import os from PIL import Image from random import uniform def egg(block=block.GOLD_BLOCK, h=40, a=2.5, b=1, c=0.1, sphere=False): def radius(y): if y < 0 or y >= h: return 0 if sphere: return sqrt((h/2.)**2 - (y-h/2.)**2) l...
""" DGL-based PAGTN for graph property prediction. """ import torch.nn as nn import torch.nn.functional as F from deepchem.models.losses import Loss, L2Loss, SparseSoftmaxCrossEntropy from deepchem.models.torch_models.torch_model import TorchModel class Pagtn(nn.Module): """Model for Graph Property Prediction This ...
import json import dateutil.parser import datetime import numpy as np import calendar import itertools from flask import Flask, request, Response, render_template, redirect, url_for import Uber app = Flask(__name__) ''' The index page has links to the from_file API and the from_stream API. ''' @app.route('/') def index...
import pandas as pd from datetime import date, timedelta import time import numpy as np import re import psycopg2 import ConfigParser import argparse from sqlalchemy import create_engine import random import sql parser = argparse.ArgumentParser() parser.add_argument('-cf','--contract_file',help='Contract data file') pa...
__author__ = 'Xsank' from handlers import IndexHandler from handlers import WSHandler handlers=[ (r"/",IndexHandler), (r"/ws",WSHandler), ]
import numpy as N class Binner(object): """Class to perform averages of arbitary variables over some bin (i.e. range) of a coordinate. An example: r, u = calculateVelocitiesAtPositions() # r is nx X ny X nz X 3 array of positions # v is the same but for velocities at the corresponding position. ...
from __future__ import division, absolute_import, print_function,\ unicode_literals import os import sys try: from setuptools import setup except ImportError: from distutils.core import setup, Extension from distutils.core import Extension from distutils.errors import DistutilsError from distutils.command.buil...
"""Unit tests for the copy module.""" import sys import copy import copy_reg import unittest from test import test_support class TestCopy(unittest.TestCase): # Attempt full line coverage of copy.py from top to bottom def test_exceptions(self): self.assert_(copy.Error is copy.error) self.assert_(...
import logging from django.core.management.base import BaseCommand from waldur_rancher.utils import SyncUser logger = logging.getLogger(__name__) class Command(BaseCommand): help = """Sync users from Waldur to Rancher.""" def handle(self, *args, **options): def print_message(count, action, name='user'):...
import sys import os import shlex import sphinx_rtd_theme import alabaster import subprocess read_the_docs_build = os.environ.get('READTHEDOCS', None) == 'True' print os.getcwd() if read_the_docs_build: subprocess.call('doxygen doxygen.cfg', shell=True) breathe_projects = { "romeo":"xml/", } extensions = ["brea...
from swgpy.object import * def create(kernel): result = Ship() result.template = "object/ship/shared_hutt_heavy_s02_tier4.iff" result.attribute_template_id = -1 result.stfName("","") #### BEGIN MODIFICATIONS #### #### END MODIFICATIONS #### return result
from __future__ import absolute_import import pytest from qtpy import PYQT5, PYSIDE2 @pytest.mark.skipif(not (PYQT5 or PYSIDE2), reason="Only available in Qt5 bindings") def test_qt3dinput(): """Test the qtpy.Qt3DInput namespace""" Qt3DInput = pytest.importorskip("qtpy.Qt3DInput") assert Qt3DInput.QAxisAccu...
from django.shortcuts import render from django.http import HttpResponse,JsonResponse from django.views import generic from django.views.generic.edit import FormView, CreateView from django.core.urlresolvers import reverse_lazy from django.core.mail import send_mail from hacks.models import Hackathon, CodeMania, SendRS...
from swgpy.object import * def create(kernel): result = Tangible() result.template = "object/tangible/ship/components/reactor/shared_rct_sds_imperial_1.iff" result.attribute_template_id = 8 result.stfName("space/space_item","rct_sds_imperial_1_n") #### BEGIN MODIFICATIONS #### #### END MODIFICATIONS #### retur...
"""Test the -alertnotify, -blocknotify and -walletnotify options.""" import os from test_framework.test_framework import StarwelsTestFramework from test_framework.util import assert_equal, wait_until, connect_nodes_bi class NotificationsTest(StarwelsTestFramework): def set_test_params(self): self.num_nodes ...
"""pint_journal_project URL Configuration The `urlpatterns` list routes URLs to views. For more information please see: https://docs.djangoproject.com/en/1.8/topics/http/urls/ Examples: Function views 1. Add an import: from my_app import views 2. Add a URL to urlpatterns: url(r'^$', views.home, name='home...
from openturns import * TESTPREAMBLE() RandomGenerator.SetSeed(0) try: distribution = ClaytonCopula(1.5) size = 1000 sample = distribution.getSample(size) factory = ClaytonCopulaFactory() estimatedDistribution = factory.build(sample) print "distribution=", repr(distribution) print "Estimated...
from swgpy.object import * def create(kernel): result = Creature() result.template = "object/mobile/shared_nightspider.iff" result.attribute_template_id = 9 result.stfName("monster_name","hermit_spider") #### BEGIN MODIFICATIONS #### #### END MODIFICATIONS #### return result
import csv from werkzeug import generate_password_hash from web.models import User from bootstrap import db def create_user(email, name, password): user = User(email=email, name=name, pwdhash=generate_password_hash(password), is_active=True) db.session.add(user) ...
""" Utilities for Caltech BE/Bi 103. Author: Justin Bois """ import collections import random import warnings import numbers import matplotlib.path as path import numpy as np import pandas as pd import scipy.odr import scipy.stats as st import statsmodels.tools.numdiff as smnd import skimage.io import skimage.measure i...
import os, os.path import subprocess import shutil import sys import argparse parser = argparse.ArgumentParser() parser.add_argument("-m", "--make", help="run make clean && make on all files", action="store_true") parser.add_argument("-c", "--check", help="run ./check.sh on all files", ...
import warnings from functools import wraps def deprecated(func): """ Generates a deprecation warning """ @wraps(func) def wrapper(*args, **kwargs): msg = "'{}' is deprecated".format(func.__name__) warnings.warn(msg, category=DeprecationWarning, stacklevel=2) return func(*arg...
""" Custom fields used in InvenTree """ from __future__ import unicode_literals import sys from .validators import allowable_url_schemes from django.utils.translation import ugettext_lazy as _ from django.forms.fields import URLField as FormURLField from django.db import models as models from django.core import validat...
import sys import cellpilot_usart led_no=int(sys.argv[1]) state=int(sys.argv[2]) cellpilot_usart.set_led(led_no,state)
from __future__ import unicode_literals import frappe from frappe.model.document import Document class CotizacionItemRecursosHumanos(Document): pass
"""Record information about how a game finished. Revision ID: 4623531fa2b Revises: 9aec2a74d9 Create Date: 2016-04-16 12:27:45.788322 """ revision = '4623531fa2b' down_revision = '9aec2a74d9' from alembic import op import sqlalchemy as sa import app.go as go gamehelper = sa.Table( 'games', sa.MetaData(), sa...
"""Functional tests for URIEval Plugin""" from __future__ import absolute_import import random import sys import unittest from string import ascii_letters from string import digits import tests.util PRE_CONFIG = """ loadplugin oa.plugins.uri_eval.URIEvalPlugin report _SCORE_ report _TESTS_ """ CONFIG = """ body CHECK_F...
import numpy as np import scipy.stats import nest from scipy.stats import truncexpon try: from mpi4py import MPI haveMPI4Py = True except ImportError: haveMPI4Py = False def gather_data(data_array): ''' Gathers data from all mpi processes by collecting all element in a list if data is a list and...
import datetime from south.db import db from south.v2 import DataMigration from django.db import models class Migration(DataMigration): def forwards(self, orm): "Write your forwards methods here." # Note: Remember to use orm['appname.ModelName'] rather than "from appname.models..." Package =...
""" *************************************************************************** __init__.py --------------------- Date : January 2016 Copyright : (C) 2016 by Victor Olaya Email : volayaf at gmail dot com ******************************************************...
import json class Target: def __init__(self,id,name=None): self.id = id self.name = name def reload(self): """Load target data from JSON interface.""" if self.id is None: name = None return try: data = json.getProxy().loadJson('/api/tbyid',{'id':self.id})['d'][0] self.name = data[1] except Exc...
from runtest import TestBase class TestCase(TestBase): def __init__(self): TestBase.__init__(self, 'longjmp3', """ 1.164 us [ 4107] | __monstartup(); 0.657 us [ 4107] | __cxa_atexit(); [ 4107] | main() { 0.705 us [ 4107] | _setjmp() = 0; 1.823 us [ 4107] | getpid(); 0.182 us [...
from django.urls import path from . import views urlpatterns = [ path('login/', views.OpenIDLoginView.as_view(), name='openid-login'), path('login/complete/', views.OpenIDLoginCompleteView.as_view(), name='openid-login-complete'), ]
from spacewalk.common import rhnFlags from spacewalk.common.rhnLog import log_debug, log_error from spacewalk.common.rhnException import rhnException from spacewalk.server import rhnSQL, rhnAction, rhnLib, rhnChannel def update_kickstart_session(server_id, action_id, action_status, kickstart_state, next_action_...
""" Binary 16 byte is an export plugin to convert gcode into 16 byte binary segments. An export plugin is a script in the export_plugins folder which has the functions getOuput, isArchivable and writeOutput. It is meant to be run from the export tool. To ensure that the plugin works on platforms which do not handle f...
"""This module defines interpolators for the common OSs. Globs and Artifacts may expand interpolations from the KnowledgeBase. This module provides a live, on demand, KnowledgeBase. """ from builtins import object import os import re import platform from rekall import kb from rekall_lib import registry class KnowledgeB...
import json, sys, re def printString(s, begin, end): if not re.match(r'^(\*.*\*|CAM[0-9] .*|Z ?NULL.*)$', s): sys.stdout.write('{}_({}){}'.format(begin, json.dumps(s, ensure_ascii=False), end)) def parse(obj): if isinstance(obj, dict): for k, v in obj.items(): parse(v) if k == 'name' and isinstance(v, str):...
__all__ = ('db', 'format', 'query', 'sync')
import time import logging from autotest.client.shared import error from virttest import utils_test from generic.tests import file_transfer def run(test, params, env): """ live_snapshot test: 1). Create live snapshot during big file creating 2). Create live snapshot when guest reboot 3). Check if li...
import rpm from rpm._rpm import ts as TransactionSetCore import os, tempfile from threading import Thread import logging log = logging.getLogger(__package__+'.upgrade') from . import _ from .util import df, hrsize class TransactionSet(TransactionSetCore): flags = TransactionSetCore._flags vsflags = TransactionS...
import attr from navmazing import NavigateToAttribute from navmazing import NavigateToSibling from widgetastic.widget import NoSuchElementException from widgetastic.widget import Text from widgetastic.widget import View from widgetastic_patternfly import BreadCrumb from widgetastic_patternfly import Button from widgeta...
from urbansim.abstract_variables.abstract_travel_time_variable import abstract_travel_time_variable class travel_time_hbw_am_drive_alone_from_home_to_work_alt(abstract_travel_time_variable): """travel_time_hbw_am_drive_alone_from_home_to_work""" agent_zone_id = "psrc.household.home_zone_id_from_grid_id" loc...
from operator import gt, lt from decimal import Decimal import functools import gi gi.require_version("BlockDev", "1.0") from gi.repository import BlockDev as blockdev import parted from .errors import DeviceError, PartitioningError from .flags import flags from .devices import Device, PartitionDevice, LUKSDevice, devi...
"""Code for more fancy file handles. Classes: UndoHandle File object decorator with support for undo-like operations. StringHandle Wraps a file object around a string. SGMLStripper Object that strips SGML. This is now considered OBSOLETE, and is likely to be deprecated in a future release of Bio...
from PyQt4 import QtCore, QtGui try: _fromUtf8 = QtCore.QString.fromUtf8 except AttributeError: _fromUtf8 = lambda s: s class Ui_frmSelec(object): def setupUi(self, frmSelec): frmSelec.setObjectName(_fromUtf8("frmSelec")) frmSelec.resize(972, 310) frmSelec.setWindowTitle(QtGui.QAppli...
source("../../shared/suites_qtta.py") source("../../shared/qtcreator.py") def main(): # prepare example project sourceExample = os.path.join(Qt5Path.examplesPath(Targets.DESKTOP_5_14_1_DEFAULT), "quick", "animation") proFile = "animation.pro" if not neededFilePresent(os....
import numpy as np import bpy from bpy.props import FloatProperty, EnumProperty, IntProperty, BoolProperty from sverchok.node_tree import SverchCustomTreeNode from sverchok.data_structure import updateNode, zip_long_repeat, ensure_nesting_level from sverchok.utils.curve import SvCurveLengthSolver, SvCurve from sverchok...
import os import platform from twisted.internet import defer from .. import data, helper from p2pool.util import pack P2P_PREFIX = '25174c22'.decode('hex') P2P_PORT = 8698 ADDRESS_VERSION = 0 RPC_PORT = 8697 RPC_CHECK = defer.inlineCallbacks(lambda bitcoind: defer.returnValue( (yield helper.check_genesis_bl...
import datetime from south.db import db from south.v2 import SchemaMigration from django.db import models class Migration(SchemaMigration): def forwards(self, orm): # Adding model 'MessageRecord' db.create_table(u'nuntium_messagerecord', ( (u'id', self.gf('django.db.models.fields.AutoFie...
from __future__ import with_statement __license__ = 'GPL v3' __copyright__ = '2009, Kovid Goyal <kovid@kovidgoyal.net>' __docformat__ = 'restructuredtext en' import sys, os from calibre.customize.conversion import OutputFormatPlugin from calibre.customize.conversion import OptionRecommendation class LRFOptions(object...
"""This will perform basic enrichment on a given IP.""" import csv import json import mmap import os import socket import urllib import dns.resolver import dns.reversename from geoip import geolite2 from IPy import IP from joblib import Parallel, delayed from netaddr import AddrFormatError, IPSet torcsv = 'Tor_ip_list_...
import math def formatAmount(val, prec=3, lowest=0, highest=0, currency=False, forceSign=False): """ Add suffix to value, transform value to match new suffix and round it. Keyword arguments: val -- value to process prec -- precision of final number (number of significant positions to show) lowes...
from django.apps import AppConfig class MetricsConfig(AppConfig): name = "weblate.metrics" label = "metrics" verbose_name = "Metrics"
import matplotlib as mpl from matplotlib import pyplot as plt import argparse def add_adiabatic_map_to_axis(axis, style, energies, color): """ add single set of energies to plot """ # Energy horizontal decks x = style['START'] for energy in energies: axis.plot([x, x+style['WIDTH']], [energy, ene...
from scripts import common from mathutils import Vector logic = common.logic def main(cont): own = cont.owner own.applyForce([0, 0, -10 * own.mass], False) if own["health"] < 1: return own["hit"] = False own.enableRigidBody() v = Vector((own["v_x"], own["v_y"], own["v_z"])) dv = Vect...
__author__ = "Emmanuel Noutahi" from TreeClass import TreeClass import os import numpy as np from StringIO import StringIO import random try: from lxml import etree # should work since etree is used by ete except ImportError: try: import xml.etree.cElementTree as etree except ImporError: ...
from .__version__ import __version__
from __future__ import absolute_import import csv from datetime import datetime import httplib from itertools import count import logging import smtplib from xml.dom.minidom import Document from django.conf import settings from django.core.exceptions import FieldError from django.core.mail import EmailMultiAlternatives...
import collections import os import codecs from .top_block import TopBlockGenerator from .. import Constants from ..io import yaml class HierBlockGenerator(TopBlockGenerator): """Extends the top block generator to also generate a block YML file""" def __init__(self, flow_graph, _): """ Initializ...
"""Allows functions from coot_utils to be imported""" import os, sys from os.path import exists, join from coot import * use_gui_qm = False #coot_utils requires this variable to be defined for curpath in sys.path: abspath = join(curpath, "coot_utils.py") if exists(abspath): #when we find it, exec it ...
import sigrokdecode as srd command = { 0x33: ['Read ROM' , 'GET ROM' ], 0x0f: ['Conditional read ROM' , 'GET ROM' ], 0xcc: ['Skip ROM' , 'TRANSPORT' ], 0x55: ['Match ROM' , 'GET ROM' ], 0xf0: ['Search ROM' , 'SEARCH ROM'], 0xec: ['Condition...
from idtxl.active_information_storage import ActiveInformationStorage from idtxl.data import Data data = Data() data.generate_mute_data(n_samples=1000, n_replications=5) network_analysis = ActiveInformationStorage() settings = {'cmi_estimator': 'JidtGaussianCMI', 'max_lag': 5} results = network_analysis.an...
import traceback import warnings import numpy as np import logging logger_ = logging.getLogger('moose.nml2.hhfit') try: import scipy.optimize as _SO except ImportError: raise RuntimeError("To use this feature/module, please install scipy") def exponential2(x, a, scale, x0, y0=0): res = a * np.exp((x - x0) /...
import pexpect, os, sys, shutil, atexit import optparse, fnmatch, time, glob, traceback, signal sys.path.insert(0, os.path.join(os.path.dirname(os.path.realpath(__file__)), 'pysim')) sys.path.insert(0, os.path.join(os.path.dirname(os.path.realpath(__file__)), '..', '..', '..', 'mavlink', 'pymavlink')) sys.path.insert(0...
import os from textwrap import dedent from testtools.matchers import Contains, FileContains from snapcraft.plugins.v1 import _python from ._basesuite import PythonBaseTestCase def _create_site_py(base_dir): site_py = os.path.join(base_dir, "usr", "lib", "pythontest", "site.py") os.makedirs(os.path.dirname(site_...
../../../../share/pyshared/zeitgeist/datamodel.py
ANSIBLE_METADATA = {'status': ['preview'], 'supported_by': 'community', 'metadata_version': '1.1'} DOCUMENTATION = ''' --- module: aws_codecommit version_added: "2.8" short_description: Manage repositories in AWS CodeCommit description: - Supports creation and deletion of CodeC...
import ez_setup ez_setup.use_setuptools() from setuptools import setup, find_packages import sys import askbot setup( name = "askbot", version = askbot.get_version(),#remember to manually set this correctly description = 'Exercise and Problem forum, like StackOverflow, written in python and Django', pac...
""" Unit tests for nonlinear solvers Author: Ondrej Certik May 2007 """ from numpy.testing import assert_, dec, TestCase, run_module_suite from scipy.optimize import nonlin from numpy import matrix, diag, dot from numpy.linalg import inv import numpy as np SOLVERS = [nonlin.anderson, nonlin.diagbroyden, nonlin.linearmi...
"""News source to send a notification whenever a twitch streamer goes live.""" import datetime import logging import discord from dateutil import parser from .AbstractSources import DataBasedSource DOZER_LOGGER = logging.getLogger('dozer') class TwitchSource(DataBasedSource): """News source to send a notification w...
''' Created on Sep 18, 2009 @author: sgallagh ''' import unittest import os from stat import * import sys srcdir = os.getenv('srcdir') if srcdir: sys.path.insert(0, "./src/config") srcdir = srcdir + "/src/config" else: srcdir = "." import SSSDConfig class SSSDConfigTestValid(unittest.TestCase): def setU...
import sys from PyQt4 import QtCore, QtGui, uic import light qtCreatorFile = "pythonlight.ui" # Enter file here. Ui_MainWindow, QtBaseClass = uic.loadUiType(qtCreatorFile) class LightApp(QtGui.QMainWindow, Ui_MainWindow): def __init__(self): QtGui.QMainWindow.__init__(self) Ui_MainWindow.__init__(se...
import re from core import logger from core import jsunpack from core import scrapertools headers = [['User-Agent', 'Mozilla/5.0']] def test_video_exists(page_url): logger.info("pelisalacarta.servers.flashx test_video_exists(page_url='%s')" % page_url) data = scrapertools.cache_page(page_url, headers=headers) ...
""" Classes and functions to manage arkOS tracked services. arkOS Core (c) 2016 CitizenWeb Written by Jacob Cook Licensed under GPLv3, see LICENSE.md """ import glob import miniupnpc import random from arkos import config, logger, policies, signals, storage, security from arkos.messages import Notification from arkos.u...
import sys from collections import namedtuple from AnyQt.QtWidgets import QSizePolicy, QLayout from AnyQt.QtCore import Slot import Orange.data from Orange.widgets.utils.datacaching import data_hints from Orange.widgets import widget, gui, settings from Orange.widgets.utils import itemmodels from Orange.widgets.utils.c...
from django import forms class DocumentForm(forms.Form): xmlfile = forms.FileField(label='Select the input xml file (scenario.xml)') outputfile = forms.FileField(label='Select the survery output file (output.txt) if available', required=False) ctsoutputfile = forms.FileField(label='Select the continuous fil...
from urllib.parse import urlparse from allauth.socialaccount.providers.google.views import GoogleOAuth2Adapter from allauth.socialaccount.providers.oauth2.views import ( OAuth2CallbackView, OAuth2LoginView, ) from kuma.core.decorators import redirect_in_maintenance_mode from kuma.core.ga_tracking import ACTION_...
from Tkinter import * import tkFileDialog, tkMessageBox import sys, os import pygame from scipy.io.wavfile import read import dftModel_function class DftModel_frame: def __init__(self, parent): self.parent = parent self.initUI() pygame.init() def initUI(self): choose_label = "Input file (.wav, mono and 44100 ...
from anki.syncserver import serve serve()
import time import json import random from flask import Flask, request, current_app, abort from functools import wraps from cloudbrain.utils.metadata_info import (map_metric_name_to_num_channels, get_supported_devices, get_metrics_n...
import os from multiprocessing import cpu_count _cpu_count = cpu_count() if hasattr(os, 'getloadavg'): def load_fair(): return 'load', os.getloadavg()[0] / _cpu_count else: from winperfmon import PerformanceCounter from threading import Thread from collections import deque from time import s...
import travel_accommodation_import
logger.info("Loading 5 objects to table gfks_helptext...") loader.save(create_gfks_helptext(1,contacts_Partner,u'language',u'Die Sprache, in der Dokumente ausgestellt werden sollen.')) loader.save(create_gfks_helptext(2,gfks_HelpText,u'field',u'The name of the field.')) loader.save(create_gfks_helptext(3,pcsw_Client,u'...
from __future__ import absolute_import, print_function, unicode_literals, division from flask import Flask, request from flask.ext.restful import Resource, fields, marshal_with, reqparse, abort from flask.globals import g from jormungandr import i_manager, timezone from jormungandr.interfaces.v1.fields import disruptio...
from django.db import transaction from education_group.ddd import command from education_group.ddd.domain import exception from education_group.ddd.domain.training import TrainingIdentity from ddd.logic.formation_catalogue.builder.training_builder import TrainingBuilder from education_group.ddd.repository import traini...
from .devstack import * from .edraak_common import *
from __future__ import absolute_import from webob import Request from xblock.runtime import DictKeyValueStore, KvsFieldData from xblock.test.tools import TestRuntime def make_request(body, method='POST'): """ Helper method to make request """ request = Request.blank('/') request.body = body.encode('...