code
stringlengths
1
199k
import time from transitions import Machine class MessageState(object): states = ['initialised', 'waiting response', 'complete', 'timedout'] transitions = [ {'trigger': 'query', 'source': 'initialised', 'dest': 'waiting response', 'before': '_update', 'after': '_send_query'}, {'trigger': 'respon...
from essence3.util import clamp class Align(object): def __init__(self, h, v = None): self.h = h self.v = h if v is None else v def __call__(self, node, edge): if edge in ('top', 'bottom'): return node.width * self.h if edge in ('left', 'right'): return n...
import os import sys import logging as log from glob import glob from laniakea import LkModule from laniakea.dud import Dud from laniakea.utils import get_dir_shorthand_for_uuid, random_string from laniakea.db import session_scope, Job, JobResult, JobKind, SourcePackage from laniakea.msgstream import EventEmitter from ...
from __future__ import unicode_literals from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('web', '0008_contactphone_place_on_header'), ] operations = [ migrations.AddField( model_name='contactemail', name='place_on_heade...
''' Quick Start Guide For Using This Module ======================================= This module implements a Log Manager class which wraps the Python logging module and provides some utility functions for use with logging. All logging operations should be done through the `LogManager` where available. *DO NOT create ob...
""" Created by Emille Ishida in May, 2015. Class to implement calculations on data matrix. """ import os import sys import matplotlib.pylab as plt import numpy as np from multiprocessing import Pool from snclass.treat_lc import LC from snclass.util import read_user_input, read_snana_lc, translate_snid from snclass.func...
__author__ = 'harsha' class ForceReply(object): def __init__(self, force_reply, selective): self.force_reply = force_reply self.selective = selective def get_force_reply(self): return self.force_reply def get_selective(self): return self.selective def __str__(self): ...
import functools @functools.total_ordering class Student: def __init__(self, firstname, lastname): #姓和名 self.firstname = firstname self.lastname = lastname def __eq__(self, other): #判断姓名是否一致 return ((self.lastname.lower(), self.firstname.lower()) == (other.lastname.l...
from flask import Flask, render_template, request, redirect, url_for, flash, jsonify, Response from celery import Celery from werkzeug.utils import secure_filename from VideoPlayer import VideoPlayer from subprocess import Popen import os app = Flask(__name__) local = False if local: UPLOAD_FOLDER = '/home/dabo02/D...
import todsynth import os import numpy import json import pandas class Calibrator( object ): ''' A todsynth.calibrator object is a container that stores coefficients that transform RAW dac units to physical units for a given TOD. ''' # Calibrator description. #00000000000000000000000000000000000...
"""Generic base class for cli hammer commands.""" import logging from robottelo import ssh from robottelo.cli import hammer from robottelo.config import conf class CLIError(Exception): """Indicates that a CLI command could not be run.""" class CLIReturnCodeError(Exception): """Indicates that a CLI command has f...
normIncludes = [ {"fieldName": "field1", "includes": "GOOD,VALUE", "excludes": "BAD,STUFF", "begins": "", "ends": "", "replace": "goodvalue"}, {"fieldName": "field1", "includes": "", "excludes": "", "begins": "ABC", "ends": "", "replace": "goodvalue"}, {"fieldName": "field1", "includes": "", "excludes": "",...
""" Created on Thu Aug 31 16:04:18 2017 @author: adelpret """ import pinocchio as se3 import numpy as np from pinocchio import RobotWrapper from conversion_utils import config_sot_to_urdf, joints_sot_to_urdf, velocity_sot_to_urdf from dynamic_graph.sot.torque_control.inverse_dynamics_balance_controller import InverseDy...
""" YieldFrom astroid node This node represents the Python "yield from" statement, which functions similarly to the "yield" statement except that the generator can delegate some generating work to another generator. Attributes: - value (GeneratorExp) - The generator that this YieldFrom is delegating work t...
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 'GeoNamesMatchingLogMatchedPlaces.remark' db.add_column('united_geonames_geonamesmatchinglogmatchedplaces', 'remark', se...
from django.utils.translation import ugettext_noop as _ from geonode.notifications_helper import NotificationsAppConfigBase class PeopleAppConfig(NotificationsAppConfigBase): name = 'geonode.people' NOTIFICATIONS = (("user_follow", _("User following you"), _("Another user has started following you"),), ...
import sys import math import time from bzrc import BZRC, Command class Agent(object): """Class handles all command and control logic for a teams tanks.""" def __init__(self, bzrc): self.bzrc = bzrc self.constants = self.bzrc.get_constants() self.commands = [] def tick(self, time_dif...
from itertools import * MOD = 10007 fact = [1] * MOD for i in xrange(1, MOD): fact[i] = (fact[i-1] * i) def choose(n, k): if k > n: return 0 elif n < MOD: return (fact[n]/fact[n-k]/fact[k])%MOD else: prod = 1 while n > 0: prod *= choose(n%MOD, k%MOD) ...
""" This module provides functions that generate commonly used Hamiltonian terms. """ __all__ = [ "Annihilator", "Creator", "CPFactory", "HoppingFactory", "PairingFactory", "HubbardFactory", "CoulombFactory", "HeisenbergFactory", "IsingFactory", "TwoSpinTermFactory", ] from Hamil...
""" Copyright 2016 Puffin Software. All rights reserved. """ from com.puffinware.pistat.models import User, Location, Category, Thermostat, Sensor, Reading from com.puffinware.pistat import DB from logging import getLogger log = getLogger(__name__) def setup_db(app): DB.create_tables([User, Location, Category, Thermo...
x = int(input()) y = int(input()) print('In this test case x =', x, 'and y =', y) if x >= y: print('(The maximum is x)') theMax = x else: print('(The maximum is y)') theMax = y print('The maximum is', theMax)
from django.conf.urls import url from django.contrib.auth.views import login, \ logout, \ logout_then_login, \ password_change, \ password_change_done, \ ...
import pygame from Explosion import Explosion class Bullet(object): PLAYER, ENEMY = 1, 0 def __init__(self, manager, parent, init_pos, direction, speed=3): self.manager = manager self.parent = parent self.image = pygame.image.load("res/tanks/bullet.png") self.explosion = pygame.i...
from rest_framework.viewsets import ModelViewSet from rest_framework.generics import RetrieveAPIView, ListAPIView from django.shortcuts import get_object_or_404 from django.db.models import Q from common.utils import get_logger, get_object_or_none from common.mixins.api import SuggestionMixin from users.models import U...
""" Perform song identification by loading up a corpus of harmonic analyses and comparing parse results to all of them, according to some distance metric. """ """ ============================== License ======================================== Copyright (C) 2008, 2010-12 University of Edinburgh, Mark Granroth-Wilding ...
#!/usr/bin/env python from FIDATA import * initArgParser('Importer of predefined data', defLogFilename = 'import.log') initFIDATA() from csv import DictReader from os import path from PIL import Image classes = [] logging.info('Import of predefined data started') # Lang(FIDATA, row = row, write = True, tryGetFromDB =...
""" SleekXMPP: The Sleek XMPP Library Copyright (C) 2011 Nathanael C. Fritz This file is part of SleekXMPP. See the file LICENSE for copying permission. """ import logging from sleekxmpp.xmlstream import JID from sleekxmpp.xmlstream.handler import Callback from sleekxmpp.xmlstream.matcher import Stanza...
import re import sys from argparse import ArgumentParser from gi.repository import Gtk from gi.repository import Gdk from gi.repository import Gio from gi.repository import GLib from gi.repository import Soup from redditisgtk.sublist import SubList from redditisgtk.subentry import SubEntry from redditisgtk.api import R...
"""XBeeModem.py bypasses the XBee's 802.15.4 capabilities and simply uses it modem for communications You don't have to master 802.15.4 and a large set of XBee commands to make a very simple but potentially useful network. At its core, the XBee radio is a modem and you can use it directly for simple serial communi...
from random import random, randint from PIL import Image, ImageDraw, ImageFont import perlin def draw_background(setup) : canvas = setup['canvas'] image = Image.new('RGBA', canvas, tuple(setup['color']['back'])) background = Image.new('RGBA', canvas, (0,0,0,0)) draw = ImageDraw.Draw(background) stars = [[ int(p * ...
#!/usr/bin/python import pygame import math import random import sys import PixelPerfect from pygame.locals import * from water import Water from menu import Menu from game import Game from highscores import Highscores from options import Options import util from locals import * import health import cloud import mine ...
""" Turn pcap into csv file. Extract timestamp, source IP address, and query name of all DNS queries in the given pcap, and turn it into a CSV. """ import sys import scapy.all as scapy MEASUREMENT_HOSTS = frozenset(["92.243.1.186", "198.83.85.34"]) def process_file(pcap_file): packets = scapy.rdpcap(pcap_file) ...
"""State describing the conversion to momentum transfer""" from __future__ import (absolute_import, division, print_function) import json import copy from sans.state.state_base import (StateBase, rename_descriptor_names, BoolParameter, PositiveFloatParameter, ClassTypeParameter, Strin...
""" Viewer for archives packaged by archive.py """ from __future__ import print_function import argparse import os import pprint import sys import tempfile import zlib from PyInstaller.loader import pyimod02_archive from PyInstaller.archive.readers import CArchiveReader, NotAnArchiveError from PyInstaller.compat import...
from .execute import GraphNode from . import preprocess def compile(layout_dict): preprocess.proprocess(layout_dict) # get nodes without any outputs root_nodes = layout_dict["nodes"].keys() - {l[0] for l in layout_dict["links"]} graph_dict = {} out = [GraphNode.from_layout(root_node, layout_dict, gr...
from .google import GoogleSpeaker from .watson import WatsonSpeaker """ alfred ~~~~~~~~~~~~~~~~ Google tts. """ __all__ = [ 'GoogleSpeaker', 'WatsonSpeaker' ]
class Solution(object): def findPaths(self, m, n, N, i, j): """ :type m: int :type n: int :type N: int :type i: int :type j: int :rtype: int """ MOD = 1000000007 paths = 0 cur = {(i, j): 1} for i in xrange(N): ...
import os import unittest from urlparse import urlparse from paegan.utils.asarandom import AsaRandom class AsaRandomTest(unittest.TestCase): def test_create_random_filename(self): temp_filename = AsaRandom.filename(prefix="superduper", suffix=".nc") path = urlparse(temp_filename).path name, ...
""" Contains exception classes specific to this project. """
class Zone: def __init__(self, id_zone, name, region, description): self.id = id_zone self.name = name self.region = region self.description = description
"""Description: SpeedMeter Tries To Reproduce The Behavior Of Some Car Controls (But Not Only), By Creating An "Angular" Control (Actually, Circular). I Remember To Have Seen It Somewhere, And I Decided To Implement It In wxPython. SpeedMeter Starts Its Construction From An Empty Bitmap, And It Uses Some Functions Of T...
"""misc_endpoints.py Classes representing API endpoints that don't subclass JSSObject """ from __future__ import print_function from __future__ import absolute_import import mimetypes import os import sys from xml.etree import ElementTree from .exceptions import MethodNotAllowedError, PostError from .tools import error...
""" Copyright (C) 2015 Louis Dijkstra This file is part of error-model-aligner This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. T...
from selenium.webdriver.common.by import By from pages.base import BasePage class FirefoxWhatsNew73Page(BasePage): URL_TEMPLATE = '/{locale}/firefox/73.0/whatsnew/all/{params}' _set_default_button_locator = (By.ID, 'set-as-default-button') @property def is_default_browser_button_displayed(self): ...
from bedrock.mozorg.templatetags import misc, social_widgets
import os import time import json from contextlib import nested import mock from nose.tools import eq_, ok_, assert_raises from configman import ConfigurationManager from socorro.external.hbase import hbase_client from socorro.external.crashstorage_base import ( CrashIDNotFound, Redactor, MemoryDumpsMapping...
import scrapy class QuotesSpider(scrapy.Spider): name = 'quotes' allowed_domains = ['quotes.topscrape.com/tag/humor/'] start_urls = ['http://quotes.topscrape.com/tag/humor/'] def parse(self, response): for quote in response.css('div.quote'): yield { 'text': quote.css(...
import unittest import tempfile import os from os.path import join import zipfile from git import * from shutil import rmtree from gitbranchhealth.branchhealth import BranchHealthConfig class GitRepoTest(unittest.TestCase): def setUp(self): self.__mOriginTempDir = tempfile.mkdtemp(prefix='gitBranchHealthTest') ...
"""Module copies data module Variable DIRECTIONS""" from data import DIRECTIONS DIRECTIONS = DIRECTIONS[0:3]+('West',)
import bot import config if __name__ == '__main__': bot.init(config) bot.cancel_all()
import os MOZ_OBJDIR = 'obj-firefox' config = { 'default_actions': [ 'clobber', 'clone-tools', 'checkout-sources', #'setup-mock', 'build', #'upload-files', #'sendchange', 'check-test', 'valgrind-test', #'generate-build-stats', #...
from django.db import migrations, models from django.conf import settings import editorsnotes.main.fields class Migration(migrations.Migration): dependencies = [ ('main', '0018_auto_20151019_1331'), ] operations = [ migrations.AlterField( model_name='document', name='...
""" Login and logout views for the browseable API. Add these to your root URLconf if you're using the browseable API and your API requires authentication. The urls must be namespaced as 'rest_framework', and you should make sure your authentication settings include `SessionAuthentication`. urlpatterns = patterns(''...
__author__ = 'marijn' from setuptools import setup setup( name="goal_notifier", version="0.0.0", license="AGPL3", packages=['goal_notifier'], requires=[ "google-api-python-client", "pykka", "pydub", "pyopenssl", ], scripts=["goal_notifier"] )
from django.contrib.auth.models import User, Group from django.test import Client from rest_framework import status from app.models import Project, Task from app.models import Setting from app.models import Theme from webodm import settings from .classes import BootTestCase from django.core.exceptions import Validation...
from jormungandr.interfaces.v1 import Uri from jormungandr.interfaces.v1 import Coverage from jormungandr.interfaces.v1 import Journeys from jormungandr.interfaces.v1 import Schedules from jormungandr.interfaces.v1 import Places from jormungandr.interfaces.v1 import Ptobjects from jormungandr.interfaces.v1 import Coord...
from odoo import _, api, fields, models from odoo.exceptions import ValidationError class EbillPaymentContract(models.Model): _inherit = "ebill.payment.contract" paynet_account_number = fields.Char(string="Paynet ID", size=20) is_paynet_contract = fields.Boolean( compute="_compute_is_paynet_contract...
import pytest from django.conf import settings from shoop.core.pricing import get_pricing_module from shoop.core.pricing.default_pricing import DefaultPricingModule from shoop.testing.factories import ( create_product, create_random_person, get_default_customer_group, get_default_shop ) from shoop.testing.utils...
import deform from pyramid.view import view_config from dace.processinstance.core import DEFAULTMAPPING_ACTIONS_VIEWS from pontus.default_behavior import Cancel from pontus.form import FormView from pontus.view import BasicView from pontus.view_operation import MultipleView from novaideo.content.processes.reports_manag...
from Products.Five.browser.pagetemplatefile import ViewPageTemplateFile from bika.lims.browser.bika_listing import BikaListingTable from bika.lims.browser.worksheet.views.analyses import AnalysesView class AnalysesTransposedView(AnalysesView): """ The view for displaying the table of manage_results transposed. ...
from odoo import api, models, fields class ExceptionRule(models.Model): _inherit = 'exception.rule' rule_group = fields.Selection( selection_add=[('sale', 'Sale')], ) model = fields.Selection( selection_add=[ ('sale.order', 'Sale order'), ('sale.order.line', 'Sale...
from . import stock_procurement_split
from django.contrib import admin from django.utils.translation import ugettext_lazy as _ from open_municipio.locations.models import Location class LocationAdmin(admin.ModelAdmin): list_display = ('name', 'count') admin.site.register(Location, LocationAdmin)
import logging import json from django.test.client import Client, RequestFactory from django.test.utils import override_settings from django.contrib.auth.models import User from django.core.management import call_command from django.core.urlresolvers import reverse from mock import patch, ANY, Mock from nose.tools impo...
""" Key-value store that holds XBlock field data read out of Blockstore """ from collections import namedtuple from weakref import WeakKeyDictionary import logging from xblock.exceptions import InvalidScopeError, NoSuchDefinition from xblock.fields import Field, BlockScope, Scope, UserScope, Sentinel from xblock.field_...
import logging from yithlibraryserver.user.analytics import get_google_analytics from yithlibraryserver.user.gravatar import get_gravatar from yithlibraryserver.user.idp import add_identity_provider from yithlibraryserver.user.models import User, ExternalIdentity from yithlibraryserver.user.security import get_user log...
import models import wizard
from django.core.urlresolvers import reverse, NoReverseMatch from django.forms.utils import flatatt from django.utils.html import escape, format_html from django.utils.safestring import mark_safe from django.utils.translation import ugettext as _ from .html import join_text, merge_new_words, render_tag def render_icon(...
{ 'name': 'Purchase Price List Item', 'version': '7.0.1.0.0', 'category': 'Purchase', 'sequence': 19, 'summary': 'Purchase Price List Item', 'description': """ Improve purchase price managment ================================ * In Purchase List Item, the price is fixe...
from flask import Flask, request from flask_bootstrap import Bootstrap from flask_babel import Babel import agherant from webserver_utils import gevent_run def create_app(conf): app = Flask(__name__) app.config.update(conf) Bootstrap(app) babel = Babel(app) app.register_blueprint(agherant.agherant, ...
import json from decimal import Decimal from django import forms class MoneyField(forms.DecimalField): def __init__(self, **kwargs): kwargs["decimal_places"] = 2 for f in ["min_value", "max_value"]: if f in kwargs: kwargs[f] = Decimal(kwargs[f]) / 100 super().__in...
""" OpenStack - Tests """ import requests from collections import namedtuple from unittest.mock import Mock, call, patch from instance import openstack from instance.tests.base import TestCase class OpenStackTestCase(TestCase): """ Test cases for OpenStack helper functions """ def setUp(self): s...
from UM.Math.Float import Float # For fuzzy comparison of edge cases. class LineSegment(object): ## Creates a new line segment with the specified endpoints. # # \param endpoint_a An endpoint of the line segment. # \param endpoint_b An endpoint of the line segment. def __init__(self, endpoint_a...
import os SITE_TITLE = 'Job Board' SQLALCHEMY_DATABASE_URI = 'postgresql:///hasjob_testing' SERVER_NAME = 'hasjob.travis.local:5000' LASTUSER_SERVER = 'https://hasgeek.com/' LASTUSER_CLIENT_ID = os.environ.get('LASTUSER_CLIENT_ID', '') LASTUSER_CLIENT_SECRET = os.environ.get('LASTUSER_CLIENT_SECRET', '') STATIC_SUBDOMA...
from .pagemodels import * from .catalogmodels import * from .utilmodels import * from .usermodels import * from .dbconnect import Base, engine def init_models(): Base.metadata.create_all(engine)
import configparser import datetime import json import os.path import re import requests import youtube_dl def read_config(section, key): config = configparser.ConfigParser() config.read('config.cfg') return config[section][key] def is_invalid(date): try: datetime.datetime.strptime(date, '%Y-%m-...
from essentia_test import * import numpy as np class TestTriangularBarkBands(TestCase): def InitTriangularBarkBands(self, nbands): return TriangularBarkBands(inputSize=1024, numberBands=nbands, lowFrequencyBound=0, highFrequencyBound=44...
class Location(object): def __init__(self, x, y): self.x = x self.y = y def __add__(self, direction): return Location(self.x + direction.x, self.y + direction.y) def __sub__(self, direction): return Location(self.x - direction.x, self.y - direction.y) def __repr__(self): ...
import sys import os import signal import platform from PyQt5.QtCore import Qt, QObject, QCoreApplication, QEvent, pyqtSlot, QLocale, QTranslator, QLibraryInfo, QT_VERSION_STR, PYQT_VERSION_STR from PyQt5.QtQml import QQmlApplicationEngine, qmlRegisterType, qmlRegisterSingletonType from PyQt5.QtWidgets import QApplicat...
"""Test Workbench Runtime""" from unittest import TestCase import mock from django.conf import settings from xblock.fields import Scope from xblock.runtime import KeyValueStore from xblock.runtime import KvsFieldData from xblock.reference.user_service import UserService from ..runtime import WorkbenchRuntime, ScenarioI...
""" Asset compilation and collection. """ from __future__ import print_function import argparse from paver.easy import sh, path, task, cmdopts, needs, consume_args, call_task from watchdog.observers import Observer from watchdog.events import PatternMatchingEventHandler import glob import traceback from .utils.envs imp...
from . import orderpoint_generator
"""Tests of the oopsreferences core.""" __metaclass__ = type from datetime import ( datetime, timedelta, ) from pytz import utc from lp.registry.model.oopsreferences import referenced_oops from lp.services.database.interfaces import IStore from lp.services.messages.model.message import ( Message, Me...
{ "name": "Mozaik Mass Mailing Access Rights", "summary": """ New group: Mass Mailing Manager. Managers can edit and unlink mass mailings.""", "version": "14.0.1.0.0", "license": "AGPL-3", "author": "ACSONE SA/NV", "website": "https://github.com/OCA/mozaik", "depends": [ ...
import typing import math import contextlib from timeit import default_timer from operator import itemgetter from searx.engines import engines from .models import HistogramStorage, CounterStorage from .error_recorder import count_error, count_exception, errors_per_engines __all__ = ["initialize", "get_engine...
import os import geoip2.database from geoip2.errors import AddressNotFoundError from cortexutils.analyzer import Analyzer class MaxMindAnalyzer(Analyzer): def dump_city(self, city): return { 'confidence': city.confidence, 'geoname_id': city.geoname_id, 'name': city.name, ...
from contextlib import suppress from ereuse_devicehub.resources.account.domain import AccountDomain, UserNotFound from ereuse_devicehub.resources.device.domain import DeviceDomain def materialize_actual_owners_remove(events: list): for event in events: properties = {'$pull': {'owners': event['from']}} ...
import re import sys INFINITY = float('inf') line_to_ints = lambda line: [int(x, 10) for x in re.split(' *', line)] def solver(width, height, grid): prevs = [[0, list()] for _ in range(width)] for (y, line) in enumerate(grid): #print(line) currents = [] for (x,cost) in enumerate(line): ...
""" API definition """ from tastypie import fields from tastypie.resources import ModelResource from tastypie.throttle import BaseThrottle from cotetra.survey.models import Journey, Connection from cotetra.network.api import StationResource class JourneyResource(ModelResource): """ The journeys """ stat...
SECRET_KEY = ''
import json import xml.etree.ElementTree as ET import urllib2 import werkzeug.utils from openerp.addons.web import http from openerp.addons.web.http import request from openerp.addons.website.controllers.main import Website class Website(Website): @http.route(['/<path:seo_url>'], type='http', auth="public", website...
def test_imprint(app, client): app.config["SKYLINES_IMPRINT"] = u"foobar" res = client.get("/imprint") assert res.status_code == 200 assert res.json == {u"content": u"foobar"} def test_team(client): res = client.get("/team") assert res.status_code == 200 content = res.json["content"] ass...
""" Django settings for kore project. For more information on this file, see https://docs.djangoproject.com/en/1.7/topics/settings/ For the full list of settings and their values, see https://docs.djangoproject.com/en/1.7/ref/settings/ """ import os BASE_DIR = os.path.dirname(os.path.dirname(__file__)) SECRET_KEY = '9j...
{ "name": "Mozaik Website Event Track", "summary": """ This module allows to see the event menu configuration even without activated debug mode""", "version": "14.0.1.0.0", "license": "AGPL-3", "author": "ACSONE SA/NV", "website": "https://github.com/OCA/mozaik", "depends": [...
""" Mappers ======= Mappers are the ConnectorUnit classes responsible to transform external records into OpenERP records and conversely. """ import logging from collections import namedtuple from contextlib import contextmanager from ..connector import ConnectorUnit, MetaConnectorUnit, ConnectorEnvironment from ..excep...
from __future__ import unicode_literals from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ ('submission', '0011_auto_20170921_0937'), ('identifiers', '0003_brokendoi_journal'), ] operations = [ migrations....
import json, web from lib.log import Log class Env(object): @staticmethod def get(key): if key and key in web.ctx.env: return web.ctx.env[key] else: return web.ctx.env @staticmethod def set(key, value): web.ctx.env[key] = value @staticmethod def setFromFile(file): fenv = open(file) jenv = json.loa...
from comics.aggregator.crawler import CrawlerBase from comics.core.comic_data import ComicDataBase class ComicData(ComicDataBase): name = 'Billy' language = 'no' url = 'http://www.billy.no/' start_date = '1950-01-01' active = False rights = 'Mort Walker' class Crawler(CrawlerBase): def crawl...
from setuptools import setup, find_packages XMODULES = [ "abtest = xmodule.abtest_module:ABTestDescriptor", "book = xmodule.backcompat_module:TranslateCustomTagDescriptor", "chapter = xmodule.seq_module:SequenceDescriptor", "combinedopenended = xmodule.combined_open_ended_module:CombinedOpenEndedDescrip...
import sys from compmusic.extractors.imagelib.MelSpectrogramImage import create_wave_images from processing import AudioProcessingException ''' parser = optparse.OptionParser("usage: %prog [options] input-filename", conflict_handler="resolve") parser.add_option("-a", "--waveout", action="store", dest="output_filename_w...