text stringlengths 12 6.59M |
|---|
######################################################################
# CliNER - train.py #
# #
# Willie Boag wboag@cs.uml.edu #
# ... |
from os.path import abspath, dirname, join
import toml
pyproject_toml = toml.load(join(dirname(dirname(abspath(__file__))), "pyproject.toml"))
poetry_lock = toml.load(join(dirname(dirname(abspath(__file__))), "poetry.lock"))
master_doc = "index"
project = "DNSroboCert"
version = release = pyproject_toml["tool"]["poe... |
# -*- coding: utf-8 -*-
#
# WAStD documentation build configuration file, created by
# sphinx-quickstart on Tue Aug 16 07:35:46 2016.
#
# This file is execfile()d with the current directory set to its
# containing dir.
#
# Note that not all possible configuration values are present in this
# autogenerated file.
#
# All... |
#!/usr/bin/env python
import os,sys
import numpy as np
try:
import fitsio
except:
from astropy.io import fits
from astropy.stats import sigma_clip
import matplotlib.pyplot as plt
def _data2arr(data,minVal=0,maxVal=65335):
return np.ma.masked_array(data.astype(np.float32),
mask=((data<mi... |
# -*- coding: utf-8 -*-
#
# OMF documentation build configuration file, created by
# sphinx-quickstart on Wed Apr 6 11:40:31 2016.
#
# This file is execfile()d with the current directory set to its
# containing dir.
#
# Note that not all possible configuration values are present in this
# autogenerated file.
#
# All c... |
"""
Django settings for tvdordrecht project.
"""
from os import path
import json
# Normally you should not import ANYTHING from Django directly
# into your settings, but ImproperlyConfigured is an exception. :P
from django.core.exceptions import ImproperlyConfigured
BASE_DIR = path.abspath(path.join(path.dirname(__... |
""" NIPAP API
=========
This module contains the Nipap class which provides most of the backend
logic in NIPAP apart from that contained within the PostgreSQL database.
NIPAP contains four types of objects: ASNs, VRFs, prefixes and pools.
VRF
------
A VRF represents a Virtual Routing and ... |
# -*- coding: utf-8 -*-
#
# GenIECMS documentation build configuration file, created by
# sphinx-quickstart on Sun Feb 19 04:49:24 2017.
#
# This file is execfile()d with the current directory set to its
# containing dir.
#
# Note that not all possible configuration values are present in this
# autogenerated file.
#
# ... |
# -*- coding: utf-8 -*-
# 사전 파일 생성
#
# ***** BEGIN LICENSE BLOCK *****
# Version: MPL 1.1/GPL 2.0/LGPL 2.1
#
# The contents of this file are subject to the Mozilla Public License Version
# 1.1 (the "License"); you may not use this file except in compliance with
# the License. You may obtain a copy of the License at
# h... |
import unittest
import os
import numpy as np
from monty.serialization import loadfn
from pymatgen.matproj.rest import MPRester
from pymatgen.io.vasp.inputs import Kpoints
from pymatgen.symmetry.bandstructure import HighSymmKpath
from twod_materials.utils import *
import twod_materials
PACKAGE_PATH = twod_materi... |
# Copyright (c) 2016, German Neuroinformatics Node (G-Node)
#
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted under the terms of the BSD License. See
# LICENSE file in the root of the Project.
from time import time
from . import util
class E... |
# -*- coding: utf-8 -*-
#
# This file is execfile()d with the current directory set to its containing dir.
#
# The contents of this file are pickled, so don't put values in the namespace
# that aren't pickleable (module imports are okay, they're removed automatically).
#
# All configuration values have a default; value... |
# Jython script to build the Open Tree reference taxonomy
from org.opentreeoflife.smasher import Taxonomy
import sys
sys.path.append("feed/misc/")
from chromista_spreadsheet import fixChromista
ott = Taxonomy.newTaxonomy()
# ----- Hibbett 2007 updated upper fungal taxonomy -----
h2007 = Taxonomy.getNewick('feed/h200... |
#!/usr/bin/env python
# -*- coding: utf-8 -*-
#
# amadeus documentation build configuration file, created by
# sphinx-quickstart on Tue Jul 9 22:26:36 2013.
#
# This file is execfile()d with the current directory set to its
# containing dir.
#
# Note that not all possible configuration values are present in this
# aut... |
# -*- coding: utf-8 -*-
# Natural Language Toolkit: Interface to the Stanford Parser
#
# Copyright (C) 2001-2013 NLTK Project
# Author: Steven Xu <xxu@student.unimelb.edu.au>
#
# URL: <http://nltk.org/>
# For license information, see LICENSE.TXT
from __future__ import unicode_literals
import tempfile
import os
import... |
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
import time
from empymod import __version__
# -- General configuration ------------------------------------------------
# The Sphinx extension.
extensions = [
'sphinx.ext.autodoc',
'sphinx.ext.mathjax',
'sphinx.ext.viewcode',
'numpydoc',
'sphinxcont... |
import re
import os
import sys
import cffi
import subprocess
import platform
import logging
l = logging.getLogger('cffier')
l.setLevel(logging.DEBUG)
def find_good_scan(questionable):
known_good = []
end_line = len(questionable)
while len(questionable):
ffi = cffi.FFI()
l.debug("scan - ... |
# -*- coding: utf-8 -*-
# Natural Language Toolkit: Transformation-based learning
#
# Copyright (C) 2001-2013 NLTK Project
# Author: Marcus Uneson <marcus.uneson@gmail.com>
# based on previous (nltk2) version by
# Christopher Maloof, Edward Loper, Steven Bird
# URL: <http://nltk.org/>
# For license information, see... |
# -*- coding: utf-8 -*-
#
# Flask-Anyform documentation build configuration file, created by
# sphinx-quickstart on Mon Mar 12 15:35:21 2012.
#
# This file is execfile()d with the current directory set to its containing dir.
#
# Note that not all possible configuration values are present in this
# autogenerated file.
#... |
"""
Custom managers for most of the models; these add useful logic for
various custom filters and queries.
"""
from django.db import models
class BookmarksManager(models.Manager):
"""
Custom manager for the Bookmark model.
Adds shortcuts for some common related-object filters, retrieving
the mo... |
#!/usr/bin/env python
import MySQLdb
#import datetime
#import urllib2
#import os
import datetime
servername = "localhost"
username = "pi"
password = "password"
dbname = "pi_heating_db"
now = datetime.datetime.now()
cnx = MySQLdb.connect(host=servername, user=username, passwd=password, db=dbname)
cursorselect = ... |
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
#
# marsi documentation build configuration file, created by
# sphinx-quickstart on Thu Mar 16 12:11:14 2017.
#
# This file is execfile()d with the current directory set to its
# containing dir.
#
# Note that not all possible configuration values are present in this
# auto... |
#####################################################################################
#
# Copyright (c) Crossbar.io Technologies GmbH
#
# Unless a separate license agreement exists between you and Crossbar.io GmbH (e.g.
# you have purchased a commercial license), the license terms below apply.
#
# Should you enter ... |
# -*- coding: utf-8 -*-
#
# Axelrod documentation build configuration file, created by
# sphinx-quickstart on Sat Mar 7 07:05:57 2015.
#
# This file is execfile()d with the current directory set to its
# containing dir.
#
# Note that not all possible configuration values are present in this
# autogenerated file.
#
# A... |
"""
Simple Python interface for the Varnish management port.
"""
from telnetlib import Telnet
from threading import Thread
import logging
logging.basicConfig(
level = logging.DEBUG,
format = '%(asctime)s %(levelname)s %(message)s',
)
class VarnishHandler(Telnet):
def __init__(self, host_port_timeout):
... |
from twisted.trial.unittest import TestCase
from twisted.internet import defer, reactor
from alchimia import TWISTED_STRATEGY
from sqlalchemy import MetaData, Table, Column, Integer, String, DateTime
from sqlalchemy import create_engine, ForeignKey
from sqlalchemy.schema import CreateTable
from sqlalchemy.pool import... |
from flask.ext.script import Manager
from nomenklatura.core import app, db
from nomenklatura.model import *
from nomenklatura import views
manager = Manager(app)
@manager.command
def createdb():
""" Make the database. """
db.create_all()
@manager.command
def flush(dataset):
ds = Dataset.by_name(datase... |
# -*- coding: utf-8 -*-
###############################################################################
# #
# Copyright (C) 2016 Dominic Krimmer #
# Luis Alfredo da Silva (luis.adasil... |
__author__ = 'Michael Joseph'
__email__ = 'michaeljoseph@gmail.com'
__url__ = 'https://github.com/michaeljoseph/remarkable'
__version__ = '0.0.1'
def remarkable():
return 'Hello World!'
|
import math
def solve(n):
"""If you keep greedily looking for a number to divide n, starting
from 3, the final value will be prime. Note that the number searching
should stop at the square root of n, or else it'll be very bad for large n.
:param n: The value to find the largest prime factor."""
# ... |
#! /ufs/guido/bin/sgi/python
# Edit CMIF movies interactively -- copy one or more files to an output file
# XXX To do:
#
# - convert between formats (grey, rgb, rgb8, ...)
# - change size
# - cut out a given area of the image
# - change time base (a la Vtime)
import sys
import os
import gl, GL, DEVICE
import fl, F... |
"""Functions for writing various output files."""
def write_lnpi_op(path, op):
"""Write the new estimate for the free energy of the order
parameter path to a file.
Args:
path: The file to write.
op: A dict with the order parameter values and order parameter
free energy.
"""
... |
# Modified work:
# ------------------------------------------------------------------------
# Copyright (c) 2018 Preferred Networks, Inc.
# ------------------------------------------------------------------------
# Original works of CUDA kernel in forward_gpu and backward_gpu:
# ---------------------------------------... |
#!/usr/bin/env python
'''
Generates sidecar MD5 or SHA512 checksum manifest.
'''
import sys
import os
import argparse
import time
import shutil
import ififuncs
from ififuncs import generate_log
from ififuncs import manifest_file_count
from ififuncs import hashlib_manifest
from ififuncs import make_desktop_logs_dir, mak... |
import codecs
import logging
import os
import re
import string
import unicodedata
import normalizr.regex as regex
path = os.path.dirname(__file__)
DEFAULT_NORMALIZATIONS = [
'remove_extra_whitespaces', 'replace_punctuation', 'replace_symbols', 'remove_stop_words'
]
class Normalizr:
"""
This class offer... |
# -*- coding: utf-8 -*-
"""Testing the basic geodetic functions.
"""
import numpy as np
from typhon import constants
from typhon import geodesy
class TestGeodesy:
"""Testing the geodetic functions."""
def test_ellipsoidmodels(self):
"""Check ellipsoidmodels for valid excentricities."""
e = ge... |
# -*- coding: utf-8 -*-
###############################################################################
# #
# Copyright (C) 2016 Dominic Krimmer #
# Luis Alfredo da Silva (luis.adasil... |
#!/usr/bin/env python
"""
Sign a user's SSH public key.
"""
from argparse import ArgumentParser
from json import dumps
from os import remove
from re import compile as re_compile
from tempfile import NamedTemporaryFile
from urllib.parse import unquote_plus
# Third party library imports
from configparser import ConfigP... |
"""Kraken Maya - Maya Builder module.
Classes:
Builder -- Component representation.
"""
import json
import logging
import math
import random
from kraken.log import getLogger
from kraken.core.kraken_system import ks
from kraken.core.configs.config import Config
from kraken.core.maths import *
from kraken.core.bui... |
# Portions of this code are adapted from MDTraj and are released under the
# following license.
##############################################################################
# MDTraj is free software: you can redistribute it and/or modify
# it under the terms of the GNU Lesser General Public License as
# published by... |
#! /usr/bin/env python
# Python implementation of an 'echo' tcp server: echo all data it receives.
#
# This is the simplest possible server, servicing a single request only.
import sys
from socket import *
# The standard echo port isn't very useful, it requires root permissions!
# ECHO_PORT = 7
ECHO_PORT = 50000 + 7... |
############################TESTS ON POTENTIALS################################
import sys
import numpy
import os
_TRAVIS= bool(os.getenv('TRAVIS'))
#Test whether the normalization of the potential works
def test_normalize_potential():
from galpy import potential
#Grab all of the potentials
pots= [p for p ... |
import discord
import youtube_dl
import asyncio
import shutil
from discord.ext import commands
from __main__ import settings, botdata, httpgetter
from cogs.utils.helpers import *
from cogs.utils.botdata import GuildInfo
from cogs.utils.clip import GttsLang
from cogs.utils import checks
from .mangocog import *
def gett... |
# -*- coding: utf-8 -*-
###############################################################################
# #
# Copyright (C) 2016 Dominic Krimmer #
# Luis Alfredo da Silva (luis.adasil... |
"""Data Processing Module"""
# System imports
from pathlib import Path
from glob import glob
import platform
from datetime import datetime
# Third-party imports
import numpy as np
import matplotlib.pyplot as plt
import yaml
import cantera as ct
from cansen.profiles import VolumeProfile
# Local imports
from .utilitie... |
from os import linesep
import re
from optparse import make_option
from django.core.management.base import BaseCommand, CommandError
from devilry.apps.i18n import i18n
from devilry.utils.command import setup_logging, get_verbosity
class Command(BaseCommand):
help = 'Manage Devilry translations. Se the devilry do... |
#!/usr/bin/env python
# encoding=utf8
#
# Script to convert MARC 21 Classification records
# (serialized as MARCXML) to SKOS concepts. See
# README.md for for more information.
import sys
import re
import time
from datetime import datetime
from lxml import etree
from iso639 import languages
import argparse
from rdflib... |
import nltk
import json
class Chunks():
# Right now we are doing no chunking of tokens to try
# to build chunks and phrases
def chunk(self, l):
return l
def extract_features(self, sentence, i):
try:
features = {}
features["word"] = tag = sentence[i]["word"].lo... |
from django.db import models
from django.contrib.auth.models import BaseUserManager, AbstractBaseUser
#from django.forms import CharField, PasswordInput
import hashlib
from datetime import datetime
class UserManager(BaseUserManager):
def create_user(self, email, firstName, lastName, password=None):
if no... |
import discord
import json
from discord.ext import commands
from datetime import datetime
from utils import aiohttp_wrap as aw
class Game:
""" Cog which allows fetching of video game information """
IG_URL = 'https://api-2445582011268.apicast.io/{}/'
IG_ICON_URL = 'https://www.igdb.com/favicon-196x196... |
#!/usr/bin/env python
"""Test POD module"""
from __future__ import division
from future.builtins import range
import unittest
import os
from os.path import join
from shutil import rmtree
import copy
import numpy as np
import modred.parallel as parallel
from modred.pod import *
from modred.vectorspace import *
import ... |
# coding=utf-8
"""
"""
from __future__ import absolute_import
import cStringIO as StringIO
import hashlib
import logging
from datetime import datetime
from functools import wraps
from operator import attrgetter
from time import gmtime, strftime
import openpyxl
import pytz
import sqlalchemy as sa
from flask import (cu... |
"""Experiment Module"""
# System imports
from pathlib import Path
from glob import glob
# Third-party imports
import numpy as np
import matplotlib.pyplot as plt
import yaml
import cantera as ct
from cansen.profiles import VolumeProfile
# Local imports
from .utilities import parse_file_name, copy
from .traces import ... |
version = '0.0.3'
|
import discord
from discord.ext import commands
import datetime
import html
import re
import dateutil.parser
import more_itertools
import tabulate
import clients
import credentials
from utilities import checks
def setup(bot):
bot.add_cog(Finance(bot))
class Finance:
def __init__(self, bot):
self.bot = bot
... |
import discord
import json
from discord.ext import commands
from datetime import datetime
from utils import aiohttp_wrap as aw
class Game:
""" Cog which allows fetching of video game information """
IG_URL = 'https://api-2445582011268.apicast.io/{}/'
IG_ICON_URL = 'https://www.igdb.com/favicon-196x196... |
# -*- encoding: utf-8 -*-
##############################################################################
#
# Copyright (C) 2009 EduSense BV (<http://www.edusense.nl>).
# All Rights Reserved
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Publi... |
import discord
from discord.ext import commands
import datetime
import sys
import emoji
import pycountry
from utilities import checks
sys.path.insert(0, "..")
from units.time import duration_to_string
sys.path.pop(0)
def setup(bot):
bot.add_cog(Lichess(bot))
class Lichess(commands.Cog):
def __init__(self, bo... |
import json
from django import forms
from django.conf import settings
from django.http import HttpResponse
from django.views.generic import TemplateView
from django.shortcuts import get_object_or_404, render_to_response
from django.template import RequestContext
from catmaid.control.common import get_class_to_id_map,... |
import aiohttp
import asyncio
import logging
import schedule
import settings
from datetime import datetime, timedelta
from discord import ChannelType
from discord.ext.commands import Bot, command, check
from pytz import utc, timezone
from commons import checks
from commons.messages import get as msg
from commons.errors... |
from models import Ingredient, IngredientItem, Recipe, Batch, Sample, Product
from checkout.models import OrderItem
from cStringIO import StringIO
from labels import Sheet
def create_batch_from_recipe(recipe):
batch = Batch()
batch.brewname = 'CHANGEME'
batch.batchletter = 'A'
batch.recipe = None
... |
# © 2009 EduSense BV (<http://www.edusense.nl>)
# © 2011-2013 Therp BV (<https://therp.nl>)
# © 2013-2014 ACSONE SA (<https://acsone.eu>).
# © 2014-2016 Tecnativa - Pedro M. Baeza
# © 2016 Akretion (<https://www.akretion.com>).
# © 2016 Aselcis (<https://www.aselcis.com>).
# License AGPL-3.0 or later (https://www.gnu.o... |
import discord
from discord.ext import commands
import asyncio
import html
import json
import sys
import traceback
import tweepy
import clients
from modules import logging
from utilities import checks
def setup(bot):
bot.add_cog(Twitter(bot))
class TwitterStreamListener(tweepy.StreamListener):
def __init__(sel... |
from django.contrib.auth.models import Permission
from django.conf import settings
from django.test import TestCase, TransactionTestCase
from django.test.client import Client
from django.http import HttpResponse
from django.db import connection
from django.shortcuts import get_object_or_404
from guardian.shortcuts impo... |
import discord
from utils import crud
from utils.checks import is_staff
from utils.utils import paginate_message
from discord.ext import commands
class Rules(commands.Cog):
"""
Read da rules.
"""
def __init__(self, bot):
self.bot = bot
@commands.Cog.listener()
async def on_ready(self... |
from .base import *
try:
from .local import *
except ImportError:
pass
CACHES["default"]["VERSION"] = 7
CACHES["default"]["KEY_FUNCTION"] = "tcmui.core.cacheconfig.make_key"
COMPRESS_ROOT = STATIC_ROOT
COMPRESS_URL = STATIC_URL
if DEBUG:
MIDDLEWARE_CLASSES.insert(0, "tcmui.core.middleware.RequestLogMidd... |
"""HTML handling.
Copyright 2003-2006 John J. Lee <jjl@pobox.com>
This code is free software; you can redistribute it and/or modify it under
the terms of the BSD or ZPL 2.1 licenses (see the file COPYING.txt
included with the distribution).
"""
import re, copy, htmlentitydefs
import _request
from _headersutil impo... |
import discord
from discord.ext import commands
import asyncio
import datetime
import dateutil.parser
import feedparser
import isodate
import itertools
import json
import os
import sys
import traceback
import aiohttp
import clients
from modules import logging
from modules import utilities
from utilities import chec... |
from __future__ import print_function
import os, re
import numpy as np
import json
from acq4.util import Qt
from acq4.modules.Module import Module
from acq4 import getManager
from acq4.devices.PatchPipette import PatchPipette
import acq4.pyqtgraph as pg
Ui_MultiPatch = Qt.importTemplate('.multipatchTemplate')
Ui_Pipe... |
# vim: tabstop=4 shiftwidth=4 softtabstop=4
# Copyright 2010 United States Government as represented by the
# Administrator of the National Aeronautics and Space Administration.
# All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compli... |
"""
Fun things with stats
"""
import discord
import datetime
from collections import defaultdict
from .utils import helpers, checks
from discord.ext import commands
class Stats:
"""
Main stats class
"""
def __init__(self, bot):
super().__init__()
self.bot = bot
self.editible_po... |
#!/usr/bin/env python2
# accession_analysis 0.0.1
# Generated by dx-app-wizard.
#
# Basic execution pattern: Your app will run on a single machine from
# beginning to end.
#
# See https://wiki.dnanexus.com/Developer-Portal for documentation and
# tutorials on how to modify this file.
#
# DNAnexus Python Bindings (dxpy)... |
import discord
from discord.ext import commands
import datetime
import dateutil.parser
import inspect
import re
import sys
from utilities import checks
sys.path.insert(0, "..")
from units.time import duration_to_string
sys.path.pop(0)
def setup(bot):
bot.add_cog(Astronomy(bot))
class Astronomy(commands.Cog):
... |
# vim: tabstop=4 shiftwidth=4 softtabstop=4
# Copyright 2011 OpenStack 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
... |
_gfxRendererVars = {
'tempImg': pygame.Surface((10, 10)),
'events': [],
'eventsLength': 0,
'images': [],
}
def gfxRendererSetData(events, eventsLength, images):
_gfxRendererVars['events'] = events
_gfxRendererVars['eventsLength'] = eventsLength
_gfxRendererVars['images'] = images
def gfxRender()... |
"""
Fun things with stats
"""
import discord
import datetime
from collections import defaultdict
from .utils import helpers, checks
from discord.ext import commands
class Stats:
"""
Main stats class
"""
def __init__(self, bot):
super().__init__()
self.bot = bot
self.editible_po... |
#!/usr/bin/env python
"""
admin.py - Jenni Admin Module
Copyright 2010-2011, Michael Yanovich, Alek Rollyson, and Edward Powell
Licensed under the Eiffel Forum License 2.
More info:
* Jenni: https://github.com/myano/jenni/
* Phenny: http://inamidst.com/phenny/
Beefed up by Alek Rollyson. added functions for op, deo... |
import discord
from discord.ext import commands, menus
import io
import random
import dateutil.parser
from modules.maze import Maze
from utilities import checks
def setup(bot):
bot.add_cog(Reactions(bot))
# meta.stats reaction_responses column:
# Fixed to stop counting own reactions on 2019-10-25
# Deprecated ... |
# Copyright (c) 2010-2012, GEM Foundation.
#
# NRML 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 later version.
#
# NRML is distributed in t... |
from metabotnik.models import Project, File, new_task
from dropbox.client import DropboxClient
import os
import sys
import subprocess
import traceback
import json
from django.utils import timezone
from django.core.mail import send_mail
from django.conf import settings
import planodo
from PIL import Image
from metabotni... |
import discord
from discord.ext import commands, menus
import random
import dateutil.parser
from utilities import checks
from utilities.menu import Menu
def setup(bot):
bot.add_cog(Reactions(bot))
# meta.stats reaction_responses column:
# Fixed to stop counting own reactions on 2019-10-25
# Deprecated on 2020-... |
# ActivitySim
# See full license in LICENSE.txt.
import os
import logging
import pkg_resources
import openmatrix as omx
import numpy as np
import numpy.testing as npt
import pandas as pd
import pandas.testing as pdt
import pytest
import yaml
from activitysim.core import random
from activitysim.core import tracing
fr... |
import discord
from discord.ext import commands
import asyncio
import datetime
import json
from typing import Union
import unicodedata
import dateutil
from utilities import checks
def setup(bot):
bot.add_cog(Resources(bot))
class Resources(commands.Cog):
def __init__(self, bot):
self.bot = bot
@commands.... |
# -*- encoding: utf-8 -*-
##############################################################################
#
# OpenERP, Open Source Management Solution
# Copyright (C) 2004-2009 Tiny SPRL (<http://tiny.be>).
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the G... |
# -*- coding: utf-8 -*-
"""
~~~~~~~~~~~~~~~~~~~~~~~~~~~~
A Simple Random Fractal Tree
~~~~~~~~~~~~~~~~~~~~~~~~~~~~
"""
import random
import math
import cairocffi as cairo
IMAGE_WIDTH = 600
IMAGE_HEIGHT = 600
# ------ params control the apperance of the tree ----------
ITERATIONS = 17 # total number of iterations
ROO... |
# -*- encoding: utf-8 -*-
##############################################################################
#
# OpenERP, Open Source Management Solution
# Copyright (C) 2004-2009 Tiny SPRL (<http://tiny.be>). All Rights Reserved
# $Id$
#
# This program is free software: you can redistribute it and/or modify
# ... |
# -*- encoding: utf-8 -*-
##############################################################################
#
# OpenERP, Open Source Management Solution
# Copyright (C) 2004-2009 Tiny SPRL (<http://tiny.be>). All Rights Reserved
# $Id$
#
# This program is free software: you can redistribute it and/or modify
# ... |
import functools
import logging
import simplejson
import werkzeug.utils
from werkzeug.exceptions import BadRequest
import openerp
from openerp import SUPERUSER_ID
import openerp.addons.web.http as http
from openerp.addons.web.http import request
from openerp.addons.web.controllers.main import db_monodb, set_cookie_an... |
# -*- coding: utf-8 -*-
##############################################################################
#
# OpenERP, Open Source Management Solution
# Copyright (C) 2004-2010 Tiny SPRL (<http://tiny.be>).
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU... |
# -*- coding: utf-8 -*-
##############################################################################
#
# OpenERP, Open Source Management Solution
# Copyright (C) 2004-2010 Tiny SPRL (<http://tiny.be>).
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU... |
# -*- coding: utf-8 -*-
##############################################################################
#
# OpenERP, Open Source Management Solution
# Copyright (C) 2004-2010 Tiny SPRL (<http://tiny.be>).
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU... |
# -*- coding: utf-8 -*-
##############################################################################
#
# OpenERP, Open Source Management Solution
# Copyright (C) 2004-2010 Tiny SPRL (<http://tiny.be>).
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the... |
# -*- coding: utf-8 -*-
##############################################################################
#
# OpenERP, Open Source Management Solution
# Copyright (C) 2004-2010 Tiny SPRL (<http://tiny.be>).
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU... |
import falcon
from graceful.serializers import BaseSerializer
from graceful.fields import IntField, StringField
from graceful.parameters import StringParam
from graceful.errors import ValidationError
from graceful.resources.generic import (
RetrieveUpdateDeleteAPI,
PaginatedListCreateAPI,
)
from jinja2 import... |
#-*- coding: utf-8 -*-
##############################################################################
#
# OpenERP, Open Source Management Solution
# Copyright (C) 2004-2010 Tiny SPRL (<http://tiny.be>).
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU... |
#!/usr/bin/env python
#
# Copyright 2012 Google Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law o... |
#! /usr/bin/env python
""" Convert color code between hex value, terminal escape code, and rgb.
Original name: colortrans.py
Original author: Micah Elliott http://MicahElliott.com
Original version: 0.1
This module has been modified for use with Python 3 and the Colr library.
The original can be found here: https://g... |
from django.db.models import Q
from django.contrib.auth.decorators import login_required
from django.conf.urls.defaults import *
from django.shortcuts import redirect
import django.views.generic.list_detail
from membership.models import *
from membership.forms import *
urlpatterns = patterns('',
(r'jsi18n/$', 'dj... |
#!/usr/bin/env python
# -*- coding: utf-8 -*-
# Copyright (c) 2015-2017:
# David Durieux, david.durieux@alignak.net
#
"""
Alignak - Arbiter, Scheduler and Broker modules for the Alignak backend
"""
# Package name
__pkg_name__ = u"alignak_module_backend"
# Module type for PyPI keywords
# Used for:
# - PyPI keyw... |
#!/usr/bin/env python
# -*- coding: utf-8 -*-
#
# The MIT License (MIT)
#
# Copyright (c) 2017 William Forde
#
# 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 w... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.