src stringlengths 721 1.04M |
|---|
##########################################################################
#
# Copyright (c) 2013, Image Engine Design Inc. All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are
# met:
#
# * Redistrib... |
"""Test class for Active Directory Feature
@Requirement: Adusergroup
@CaseAutomation: Automated
@CaseLevel: Acceptance
@CaseComponent: UI
@TestType: Functional
@CaseImportance: High
@Upstream: No
"""
from fauxfactory import gen_string
from nailgun import entities
from robottelo.config import settings
from robott... |
'''
Copyright 2013 Cosnita Radu Viorel
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 limitation
the rights to use, copy, modify, merge, publish, distribu... |
#!/usr/bin/env python
#
# File Name : ptbtokenizer.py
#
# Description : Do the PTB Tokenization and remove punctuations.
#
# Creation Date : 29-12-2014
# Last Modified : Thu Mar 19 09:53:35 2015
# Authors : Hao Fang <hfang@uw.edu> and Tsung-Yi Lin <tl483@cornell.edu>
import os
import subprocess
import tempfile
# pat... |
"""
configuration objects for holmium
"""
import sys
import os
import inspect
import platform
import jinja2
import appium
from selenium import webdriver
from selenium.webdriver import FirefoxProfile
class Config(dict):
"""Dictionary like helper class for maintaining test data configurations
per environment.
... |
#!/usr/bin/python
import threading
import time
#from vt_manager.communication.sfa.util.sfalogging import logger
"""
Callids: a simple mechanism to remember the call ids served so fas
memory-only for now - thread-safe
implemented as a (singleton) hash 'callid'->timestamp
"""
debug=False
class _call_ids_impl (dict):... |
#!/usr/bin/python
# Copyright (c) 2015, BROCADE COMMUNICATIONS SYSTEMS, 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:
# 1. Redistributions of source code must retain the above copyright n... |
'''Grab Visibli hex shortcodes'''
# Copyright 2013 Christopher Foo <chris.foo@gmail.com>
# Licensed under GPLv3. See COPYING.txt for details.
import argparse
import base64
import collections
import gzip
import html.parser
import http.client
import logging
import logging.handlers
import math
import os
import queue
impor... |
#!/usr/bin/env python
# -*- encoding: utf-8; indent-tabs-mode: nil -*-
"""
crawler
~~~~~~~
desc
:copyright: (c) 2015 Menglong TAN.
"""
import os
import sys
import re
import urllib2
import time
import BeautifulSoup
import logging
logger = logging.getLogger(__file__)
logger.setLevel(logging.DEBUG)
ch ... |
# -*- coding: utf-8 -*-
# This file is part of wger Workout Manager.
#
# wger Workout Manager 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 the License, or
# (at your option) any ... |
from __future__ import with_statement
from sympy.core import S, symbols, Add, Mul
from sympy.functions import transpose, sin, cos, sqrt
from sympy.simplify import simplify
from sympy.matrices import (Identity, ImmutableMatrix, Inverse, MatAdd, MatMul,
MatPow, Matrix, MatrixExpr, MatrixSymbol, ShapeError, ZeroM... |
# -*- coding: utf-8 -*-
import datetime
from south.db import db
from south.v2 import SchemaMigration
from django.db import models
class Migration(SchemaMigration):
def forwards(self, orm):
# Adding field 'MailChimpPluginModel.button_type'
db.add_column('cmsplugin_mailchimppluginmodel', 'button_ty... |
# python imports
import hotshot
import hotshot.stats
import sys
import tempfile
from urlparse import urlparse
from cStringIO import StringIO
# django imports
from django import http
from django.conf import settings
from django.contrib.redirects.models import Redirect
from django.http import HttpResponseServerError
c... |
# -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import migrations, models
from django.conf import settings
class Migration(migrations.Migration):
dependencies = [
migrations.swappable_dependency(settings.AUTH_USER_MODEL),
('api', '0001_initial'),
]
operati... |
# coding: utf-8
# Copyright 2014 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 ap... |
#!/usr/bin/env python
import os
import sys
import fnmatch
import subprocess
## prepare to run PyTest as a command
from distutils.core import Command
from setuptools import setup, find_packages
from version import get_git_version
VERSION, SOURCE_LABEL = get_git_version()
PROJECT = 'streamcorpus-filter'
AUTHOR = 'Dif... |
#!/usr/bin/python
# -*- coding:Utf-8 -*-
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License version 3 as
# published by the Free Software Foundation.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WA... |
# -*- coding: utf-8 -*-
############################################################################################
#
# Zoook. OpenERP e-sale, e-commerce Open Source Management Solution
# Copyright (C) 2011 Zikzakmedia S.L. (<http://www.zikzakmedia.com>). All Rights Reserved
#
# Module Created: 03/05/2012
# ... |
#!/usr/bin/env python
# Pyctools-pal - PAL coding and decoding with Pyctools.
# http://github.com/jim-easterbrook/pyctools-pal
# Copyright (C) 2014-20 Jim Easterbrook jim@jim-easterbrook.me.uk
#
# This program is free software: you can redistribute it and/or
# modify it under the terms of the GNU General Public L... |
# -*- coding: utf-8 -*-
# Copyright(C) 2014 Oleg Plakhotniuk
#
# This file is part of weboob.
#
# weboob is free software: you can redistribute it and/or modify
# it under the terms of the GNU Lesser General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your o... |
from south.db import db
from south.v2 import SchemaMigration
from django.db import models
from itertools import chain
def make_query(query_dict):
query_type = 0
if 'result type' in query_dict:
if query_dict['result type'] == 'percent':
query_type = 1
data_set = 0
if 'data set' in ... |
import pytest
import pyxed
def test_decode_invalid_instruction(xed32):
xed32.itext = b"\xff"
with pytest.raises(pyxed.InvalidInstructionError):
xed32.decode()
def test_decode_invalid_offset(xed32):
xed32.itext = b"\xc3"
xed32.itext_offset = 2
with pytest.raises(pyxed.InvalidOffsetError... |
from unittest import TestCase
from nose.tools import assert_equal, assert_true, raises
from mock import patch
from tests.factories import HotspotMetricResultFactory
from tests.helpers import not_raises
class TestHotspotMetricResult(TestCase):
def setUp(self):
self.subject = HotspotMetricResultFactory.bu... |
"""Provide the Reddit class."""
import configparser
import os
from itertools import islice
try:
from update_checker import update_check
UPDATE_CHECKER_MISSING = False
except ImportError: # pragma: no cover
UPDATE_CHECKER_MISSING = True
from prawcore import (
Authorizer,
DeviceIDAuthorizer,
... |
from httputils import post
from utils import ProgressBar
from urlparse import urljoin
class Filemanager:
def __init__(self, url, username, password):
self.headers = {'Accept': 'application/json'}
self.username = username
self.password = password
self.url = url
def list(self):
... |
#!/usr/bin/env python2
import xml.dom.minidom as dom
import cgi
default_styles = {
'Comment' : 'def:comment',
'String' : 'def:string',
'Preprocessor' : 'def:preprocessor',
'Keyword' : 'def:keyword',
'Data Type' : 'def:type',
'Decimal' : 'def:decimal',
'Specials' : 'def:specials',
'Func... |
# -*- coding: utf-8 -*-
"""
This module contains celery task functions for handling the sending of bulk email
to a course.
"""
import json
import logging
import random
import re
from collections import Counter
from smtplib import SMTPConnectError, SMTPDataError, SMTPException, SMTPServerDisconnected
from time import sl... |
import atexit
import numpy
import six
from cupy import cuda
from cupy.cuda import cudnn
_handles = {}
def get_handle():
global _handles
device = cuda.Device()
handle = _handles.get(device.id, None)
if handle is None:
handle = cudnn.create()
_handles[device.id] = handle
return h... |
#!/usr/bin/env python
'''
lattice_propogation
===================
Script which uses the FCIQMC algorithm without annihilation to propogate
positive and negative psips using Hamiltonians defined in both Hartree product
and Slater determinant bases for two spinless fermions on a `4\\times4` lattice
with periodic boundar... |
# Copyright (c) 2011 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... |
"""
Views for the verification flow
"""
import datetime
import decimal
import json
import logging
import urllib
import analytics
from django.conf import settings
from django.contrib.auth.decorators import login_required
from django.contrib.staticfiles.storage import staticfiles_storage
from django.core.mail import se... |
# Copyright (C) 2017 Linaro Limited
# Author: Andy Doan <andy.doan@linaro.org>
import hmac
import os
import mimetypes
import shutil
from flask import Blueprint, request, send_file, url_for
from jobserv.jsend import get_or_404
from jobserv.models import Build, Project, Run
from jobserv.settings import INTERNAL_API_KE... |
"""Follow The Regularized Leader Proximal Online Learning
Author:
"""
from math import exp, sqrt
class model(object):
''' Our main algorithm: Follow the regularized leader - proximal
In short,
this is an adaptive-learning-rate sparse logistic-regression with
efficient L1-L2-regularizati... |
from collections import deque
import os
import numpy as np
import tensorflow as tf
class DQNAgent:
"""
Multi Layer Perceptron with Experience Replay
"""
def __init__(self, enable_actions, environment_name):
# parameters
self.name = os.path.splitext(os.path.basename(__file__))[0]
... |
#!/usr/bin/env python
"""
Setup file for pyhaystack
"""
#from pyhaystack.client.HaystackConnection import HaystackConnection
#from pyhaystack.client.NiagaraAXConnection import NiagaraAXConnection
#from pyhaystack import pyhaystack as ph
import pyhaystack.info as info
#from setuptools import setup
from distutils.core i... |
#!/usr/bin/python
# -*- coding: utf-8 -*-
from lib import pybixlib
import traceback
from p_class import plugins
import redis
class RedisPlugin(plugins.plugin):
def __init__(self, uuid, taskConf, agentType):
plugins.plugin.__init__(
self, uuid, taskConf, agentType)
def data_format_MB(sel... |
# -*- coding: utf-8 -*-
import scrapy
from tencent.items import TencentItem
class TencentpositionSpider(scrapy.Spider):
name = "tencent"
allowed_domains = ["tencent.com"]
url = "http://hr.tencent.com/position.php?&start="
offset = 0
start_urls = [url + str(offset)]
def parse(self, response):... |
from builtins import classmethod
import numpy as np
from datetime import datetime as dt
"""
Inspired by https://repl.it/repls/OrganicVainDoom#main.py
"""
class NeuralNet(object):
train_cnt = 0
epoch = 0
eta = 0.5
# TODO make constructor-only param
h_layers = [3]
X = None
Y = None
X... |
import csv
import json
# configuration
DATA_FILE = 'WDI_Data.csv'
INDICATORS_FILE = 'indicators.config'
OUTPUT_FILE = 'population-data.csv.csv'
def make_country_dict():
country = {}
for i in range(0,57):
country[i] = {}
return country
# extract selected indicators and write time series entries o... |
# -*- encoding: utf-8 -*-
from flask import make_response, request
from flask_restful import Api, Resource
from .. import blueprint_superusers
from ...lib.encrypt import encrypt_sha512
from ...lib.errors import error_410, error_422, error_500
from ...lib.regex_validators import validate_password
from .models import Su... |
# Copyright 2017 Massachusetts Open Cloud
#
# 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... |
# -*- Mode:python; coding: utf-8; c-file-style:"gnu"; indent-tabs-mode:nil -*- */
#
# Copyright (C) 2016 Endless Mobile, Inc.
# Author: Niv Sardi <xaiki@endlessm.com>
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU Lesser General Public License as published by
# ... |
# -*- coding: utf-8 -*-
import sys
aliases = {}
def init(config):
dbCursor.execute("SELECT alias, command FROM ALIASES")
for alias, command in dbCursor.fetchall():
config_alias(alias, command)
def config_alias(alias, command):
mod = globals()
aliases[alias] = command
mod['command_' + al... |
'''NDG Security Policy Enforcement Point Module
__author__ = "P J Kershaw"
__date__ = "11/07/10"
__copyright__ = "(C) 2010 Science and Technology Facilities Council"
__license__ = "BSD - see LICENSE file in top-level directory"
__contact__ = "Philip.Kershaw@stfc.ac.uk"
__revision__ = '$Id$'
'''
import logging
log = lo... |
# -*- coding: utf-8 -*-
#
# This file is part of Zenodo.
# Copyright (C) 2018 CERN.
#
# Zenodo 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 2 of the
# License, or (at your option) any later v... |
#!/usr/bin/env python
from __future__ import print_function
from extractCaffeActivations import features
import argparse
import HONHelpers as hon
import itertools
import os
import glob
layers = [
'pool1',
'pool2',
'pool3',
'pool4',
'pool5',
'fc6',
'fc7',
]
parser = argparse.Argu... |
from simplegame import Game, Transform, Axis, Animation, Sprite
from simplegame import Loader, MouseListener, Clear, Jukebox, KeyHandler
from simplegame import Vector
from upgrade import Upgrade
from rotation import Rotatable
import random
import pygame
import os
import math
class DestructibleBlock(Sprite):
def... |
import threading
import Queue
from wsgiref.simple_server import make_server
from functools import partial
from pprint import pprint
from requests_debug import debug as requests_debug
import requests
import time
from testfixtures import compare
from contextlib import contextmanager
import logging
logging.basicConfig(lev... |
import inflection
from shanghai.filters import filter_for
class FilterMixin(object):
def filter_collection(self, collection, **filters):
raise NotImplementedError()
def filter_parameters(self):
filters = dict()
for key, value in self.request.GET.items():
if not key.star... |
#!/usr/bin/env python2.7
# Copyright (C) 2014-2015 Job Snijders <job@instituut.net>
#
# This file is part of ACLHound
#
# 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... |
# -*- coding: utf-8 -*-
# Copyright (c) <2012> Antonio Pérez-Aranda Alcaide (ant30) <ant30tx@gmail.com>
# Antonio Pérez-Aranda Alcaide (Yaco Sistemas SL) <aperezaranda@yaco.es>
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitt... |
# -*- coding: utf-8 -*-
from __future__ import absolute_import, print_function, unicode_literals
import logging
from cornice.resource import resource, view
from pyramid.response import Response
from caliopen_main.message.objects.message import Message as ObjectMessage
from caliopen_main.message.core import RawMessag... |
# sqlalchemy/naming.py
# Copyright (C) 2005-2018 the SQLAlchemy authors and contributors
# <see AUTHORS file>
#
# This module is part of SQLAlchemy and is released under
# the MIT License: http://www.opensource.org/licenses/mit-license.php
"""Establish constraint and index naming conventions.
"""
from .schema impor... |
import os
import sys
root_path = os.path.abspath("../")
if root_path not in sys.path:
sys.path.append(root_path)
import matplotlib.pyplot as plt
from f_NN.Layers import *
from f_NN.Optimizers import *
from Util.Bases import ClassifierBase
from Util.ProgressBar import ProgressBar
class NNVerbose:
NONE = 0
... |
#!/usr/bin/env python
# -*- mode: python; encoding: utf-8 -*-
"""Test the inspect interface."""
from grr.gui import runtests_test
from grr.lib import flags
from grr.lib import rdfvalue
from grr.lib import test_lib
class TestInspectView(test_lib.GRRSeleniumTest):
"""Test the inspect interface."""
def testIn... |
import binascii
import os
import rest_framework.authentication
import rest_framework.authtoken.models
from django.apps import apps
from django.conf import settings
from django.db import models
from django.utils.translation import gettext_lazy as _
from polymorphic.models import PolymorphicModel
from rest_framework imp... |
# -*- coding: utf-8 -*-
import os
from django.core.urlresolvers import reverse
# Django settings for aula project.
PROJECT_DIR = os.path.join( os.path.dirname(__file__), '..')
location = lambda x: os.path.join(PROJECT_DIR, x)
DEBUG = True
TEMPLATE_DEBUG = DEBUG
ADMINS = (
# ('Your Name', 'your_email@example.com... |
#!/usr/bin/env python
"""A message modification plugin to anonymize credit card numbers.
Copyright (C) 2014 by Adiscon GmbH and Peter Slavov
This file is part of rsyslog.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
Y... |
#! /usr/bin/env python
# -*- coding: utf-8 -*-
# Newspipe - A web news aggregator.
# Copyright (C) 2010-2021 Cédric Bonhomme - https://www.cedricbonhomme.org
#
# For more information: https://sr.ht/~cedric/newspipe
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU... |
# SQLAlchemy, SQLElixir
from sqlalchemy import ForeignKey
from sqlalchemy.orm import relation, backref
from sqlalchemy.ext.declarative import declarative_base
Base = declarative_base()
class AttackType:
UNDEFINED = 0
# Melee attacks
HIT = 1
CRUSH = 2
SLASH = 3
PIERCE = 4
CL... |
#$#HEADER-START
# vim:set expandtab ts=4 sw=4 ai ft=python:
#
# Reflex Configuration Event Engine
#
# Copyright (C) 2016 Brandon Gillespie
#
# 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... |
# coding=utf-8
# Copyright 2018 The Google AI Language Team 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 ... |
#!/usr/bin/env python
#-----------------------------------------------------------------------------
# Copyright (c) 2013, The BiPy Development Team.
#
# Distributed under the terms of the Modified BSD License.
#
# The full license is in the file COPYING.txt, distributed with this software.
#--------------------------... |
# ~*~ coding: utf-8 ~*~
"""
tests.test_exceptions
~~~~~~~~~~~~~~~~~
Provides tests for the custom Exceptions Fleaker implements.
:copyright: (c) 2016 by Croscon Consulting, see AUTHORS for more details.
:license: BSD, see LICENSE for more details.
"""
import json
import pytest
from flask import redirect, request, ... |
import lasagne
import theano
import theano.tensor as T
from lasagne import layers
from lasagne.regularization import regularize_network_params, l2
def create_iter_funcs_train(l_out, lr, mntm, wd):
X = T.tensor4('X')
y = T.ivector('y')
X_batch = T.tensor4('X_batch')
y_batch = T.ivector('y_batch')
... |
import sys
import numpy as np
from scipy import signal
# For testing
import csv
defaultWindowSize=120
defaultMinSNR=2
defaultNoisePercentage=10
defaultSampleRate=250
#The find peaks function takes in an array of data
#It returns an array of the peak locations after running the wavelet transform
def findPeaks(dataAr... |
#!/usr/bin/env python
import os
import sys
import pickle
import heapq as hq
import scipy.sparse as sp
from datetime import datetime
from scipy import *
## cosine similarity
def mult_scalar(v1, v2):
"""Computes scalar multiplication of 2 vectors.
Vectors should be represented as 1xN matrices (row vectors)... |
from __future__ import absolute_import
import autograd.numpy.random as npr
import autograd.numpy as np
import operator as op
from numpy_utils import (combo_check, stat_check, unary_ufunc_check,
binary_ufunc_check, binary_ufunc_check_no_same_args)
npr.seed(0)
# Array statistics functions
def te... |
#!/bin/env python
# Automatically translated python version of
# OpenSceneGraph example program "osgcubemap"
# !!! This program will need manual tuning before it will work. !!!
import sys
from osgpypp import osg
from osgpypp import osgDB
from osgpypp import osgGA
from osgpypp import osgUtil
from osgpypp import osgV... |
from mopy.impl.nim.state import NimState
from mopy.impl.nim.action import NimAction
from mopy.impl.nim.game import NimGame
import pytest
@pytest.fixture
def game(scope="module"):
return NimGame()
@pytest.fixture
def new_state(game):
return game.new_game()
@pytest.fixture
def mid_state():
... |
# -:- encoding: utf-8 -:-
# This file is part of the MapProxy project.
# Copyright (C) 2013 Omniscale <http://omniscale.de>
#
# 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.a... |
import os
from contextlib import contextmanager
import yaml
import locale
from datetime import datetime
__author__ = 'jan'
def parse_cfg_date(cfg_date):
return datetime.strptime(cfg_date, "%Y-%m-%d %H:%M")
@contextmanager
def _fix_locale(prefix):
oldloc = locale.getlocale(locale.LC_TIME)
if not oldloc... |
#!/usr/bin/env python
# -*- coding: utf-8 -*-
import os
import re
import shutil
import sys
from setuptools import setup
def get_version(package):
"""
Return package version as listed in `__version__` in `init.py`.
"""
init_py = open(os.path.join(package, '__init__.py')).read()
return re.search("... |
import RPi.GPIO as GPIO
import paho.mqtt.client as mqtt
import time
GPIO.setmode(GPIO.BOARD)
#leds
ledKitchen = 16
ledLivingroom = 18
GPIO.setup(ledKitchen, GPIO.OUT)
GPIO.output(ledKitchen, False)
GPIO.setup(ledLivingroom, GPIO.OUT)
GPIO.output(ledLivingroom, False)
#buttons
buttonMaster = 11
buttonKitchen = 13
but... |
# -*- coding: utf-8 -*-
##############################################################################
#
# Copyright (C) 2011 - 2013 Therp BV (<http://therp.nl>).
#
# All other contributions are (C) by their respective contributors
#
# All Rights Reserved
#
# This program is free software: you can redistrib... |
########################################################################
# $HeadURL$
# File : SiteCEMapping.py
########################################################################
""" The SiteCEMapping module performs the necessary CS gymnastics to
resolve site and CE combinations. These manipulations are... |
from pyVmomi import vim
from pyVmomi import vmodl
def WaitForTasks(service, tasks):
'''
Given the service instance and tasks, it returns after all the
tasks are complete
'''
pc = service.content.propertyCollector
taskList = [str(task) for task in tasks]
# Create filter
objSpecs = [vm... |
"""
Dialog for appending new layer to the end.
"""
import PyQt5.QtWidgets as QtWidgets
import PyQt5.QtGui as QtGui
from .layers_helpers import LayersHelpers
from LayerEditor.leconfig import cfg
import gm_base.icon as icon
class SplitLayerDlg(QtWidgets.QDialog):
def __init__(self, min, max, copy_block, parent=Non... |
# -*- coding: utf-8 -*-
#
# Picard, the next-generation MusicBrainz tagger
# Copyright (C) 2006 Lukáš Lalinský
#
# 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 2
# of the License... |
# -*- coding: utf-8 -*-
import unittest
import table
MIKROZENSUS_11111_0001 = """GENESIS-Tabelle: Temporär
Gebietsfläche: Bundesländer, Stichtag;;;;;;;;;;;;;
Feststellung des Gebietsstands;;;;;;;;;;;;;
Gebietsfläche (qkm);;;;;;;;;;;;;
;Stichtag;Stichtag;Stichtag;Stichtag;Stichtag;Stichtag;Stichtag;Stichtag;Stichtag... |
#!/usr/bin/env python
# -*- coding: utf-8 -*-
## Based on learner.js (by Blake Allen and Michael Becker)
import itertools
import collections
from collections import defaultdict
import pdb
import phoment
class Change(object):
def __init__(self, change_type, position, input_material, output_material):
... |
#<ImportSpecificModules>
import operator
,Doer,Representer
from ShareYourSystem.Functers import Functer,Triggerer,Hooker
BaseModuleStr="ShareYourSystem.Functers.Functer"
DecorationModuleStr="ShareYourSystem.Standards.Classors.Classer")
#</ImportSpecificModules>
#<DefineLocals>
SYS.setSubModule(globals())
SwitchingBef... |
'''
Created on Sep 6, 2013
@author: Craig Bryan
'''
from receiver import Receiver
class GuiReceiver(Receiver):
"""
A receiver that allows the router to receive and send data to a local GUI.
This is to allow local requests for images, without using the Twitter-based
interface. No GUI is currently impl... |
import typing
from typing import Type
import egtlib
from configparser import RawConfigParser
from contextlib import contextmanager
import os
import datetime
import sys
import logging
log = logging.getLogger(__name__)
class CommandError(Exception):
pass
class Command:
COMMANDS: typing.List[Type["Command"]] ... |
import subprocess
import mechanize
import cookielib
import unittest
import shutil
import os
from flask import Flask
from flask.ext.testing import LiveServerTestCase
from lwp.app import app
from lwp.utils import connect_db
class TestWebBrowser(LiveServerTestCase):
"""
These tests are made using a statefu... |
"""
A teapot path-handling class.
"""
import os
import stat
import shutil
import errno
from contextlib import contextmanager
from functools import wraps
from teapot.log import LOGGER
from teapot.log import Highlight as hl
def from_user_path(path):
"""
Perform all variables substitutions from the specified ... |
"""
Django settings for melodi project.
Generated by 'django-admin startproject' using Django 1.8.5.
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/
"""
# Build paths... |
#
# Lightnet dataset that works with brambox annotations
# Copyright EAVISE
#
import os
import copy
import logging as log
from PIL import Image
import random
import brambox.boxes as bbb
from ._dataloading import Dataset
__all__ = ['BramboxDataset']
class BramboxDataset(Dataset):
""" Dataset for any brambox... |
# -*- coding: utf-8 -*-
# Generated by the protocol buffer compiler. DO NOT EDIT!
# source: google/api/source_info.proto
import sys
_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1'))
from google.protobuf import descriptor as _descriptor
from google.protobuf import message as _message
from goog... |
#!/usr/bin/python
# This script generates a list of testsuites that should be run as part of
# the Samba 3 test suite.
# The output of this script is parsed by selftest.pl, which then decides
# which of the tests to actually run. It will, for example, skip all tests
# listed in selftest/skip or only run a subset durin... |
"""
multicast.py
Created by Thomas Morin on 2014-06-23.
Copyright (c) 2014-2015 Orange. All rights reserved.
"""
from exabgp.protocol.ip import IP
from exabgp.bgp.message.update.nlri.qualifier import RouteDistinguisher
from exabgp.bgp.message.update.nlri.qualifier import EthernetTag
from exabgp.bgp.message.update.nl... |
"""
Test script for core exe_json
"""
from __future__ import absolute_import, division, print_function
from tests.util import unittest_reporter, glob_tests, cmp_dict
import logging
logger = logging.getLogger('exe')
import os
import sys
import time
import shutil
import tempfile
import random
import string
import sub... |
import label
import callback
import theme
import pygame
import view
import imageview
CENTER = 0
LEFT = 1
RIGHT = 2
TOP = 3
BOTTOM = 4
WORD_WRAP = 0
CLIP = 1
"""
Button
A button with a text caption.
Essentially an interactive label.
Signals
on_clicked(button, mousebutton)
"""
class Button(label.Label):
def __in... |
"""
SleekXMPP: The Sleek XMPP Library
Copyright (C) 2010 Nathanael C. Fritz, Lance J.T. Stout
This file is part of SleekXMPP.
See the file LICENSE for copying permission.
"""
import unittest
from xml.parsers.expat import ExpatError
from sleekxmpp import ClientXMPP, ComponentXMPP
from sleekxmpp.util i... |
# -*- coding: utf-8 -*-
from __future__ import division
import datetime
from openfisca_core import periods
from openfisca_core.tools import assert_near
from openfisca_france import FranceTaxBenefitSystem
from openfisca_france.reforms.inversion_directe_salaires import inversion_directe_salaires
from matplotlib impo... |
# -*- coding: utf-8 -*-
"""
debug.py - Functions to aid in debugging
Copyright 2010 Luke Campagnola
Distributed under MIT/X11 license. See license.txt for more infomation.
"""
from __future__ import print_function
import sys, traceback, time, gc, re, types, weakref, inspect, os, cProfile, threading
from . import pt... |
# -*- coding: utf-8 -*-
from south.utils import datetime_utils as 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 'NotificationPreferences'
db.create_table(u'core_notificat... |
# Copyright (c) 2020, Michael Boyle
# See LICENSE file for details: <https://github.com/moble/scri/blob/master/LICENSE>
"""Module for operating on gravitational waveforms in various forms
Classes
-------
WaveformBase : Base class
This is probably not needed directly; it is just used for inheritance by other object... |
# -*- coding: utf-8 -*-
# Generated by Django 1.10.1 on 2016-11-15 23:02
from __future__ import unicode_literals
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
migrations.swappable_depende... |
#!/usr/bin/env python
# encoding: utf-8
"""
Created by Softwell on 2010-05-15.
Copyright (c) 2008 Softwell. All rights reserved.
"""
class GnrCustomWebPage(object):
maintable = 'warh.carriera'
py_requires = 'public:Public,standard_tables:TableHandlerLight,public:IncludedView'
######################## STAN... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.