src
stringlengths
721
1.04M
# -*- coding: utf-8 -*- class Column(object): """ This model represents a column that holds :class:`libturpial.api.models.status.Status` objects. You need to specify to what *account_id* are they associated, as well as the column *slug*. Available column slugs are available in :class:`libturpi...
""" The typing module: Support for gradual typing as defined by PEP 484. At large scale, the structure of the module is following: * Imports and exports, all public names should be explicitly added to __all__. * Internal helper functions: these should never be used in code outside this module. * _SpecialForm and...
""" Convolutional LSTM cell implementation from https://github.com/loliverhennigh """ import tensorflow as tf class BasicConvLSTMCell(object): """Basic Conv LSTM recurrent network cell. """ def __init__(self, shape, filter_size, num_features, forget_bias=1.0, input_size=None, state_is_tuple=False...
# -*- coding: utf-8 -*- import re from module.plugins.internal.SimpleCrypter import SimpleCrypter class FreakhareComFolder(SimpleCrypter): __name__ = "FreakhareComFolder" __type__ = "crypter" __version__ = "0.08" __status__ = "testing" __pattern__ = r'http://(?:www\.)?freakshare\.com/folder/.+'...
# Copyright Iris contributors # # This file is part of Iris and is released under the LGPL license. # See COPYING and COPYING.LESSER in the root of the repository for full # licensing details. """ Unit tests for the `iris.fileformats.cf.CFReader` class. """ # Import iris.tests first so that some things can be initial...
"""Droog actor object.""" # Droog # Copyright (C) 2015 Adam Miezianko # # 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, or # (at your option) any later version...
#!/usr/bin/env python2 # -*- coding: utf-8 -*- #===============================# #CODE PROPERTY OF LUKAS G. OLSON# #https://github.com/lukasdragon # #===============================# #Imports from urllib2 import urlopen from ConfigParser import SafeConfigParser import json import os import time import sys from multipr...
# Copyright 2019 DeepMind Technologies Ltd. All rights reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by appl...
import sys import os sys.path.append(os.path.join(os.path.dirname(__file__), '..', 'models')) sys.path.append(os.path.join(os.path.dirname(__file__), '..', 'utils')) from imp import reload import MySQLdb import json import hashlib import time import uuid from flask import Flask, render_template, reque...
#!/usr/bin/env python def main(): import os import argparse from qap.script_utils import check_csv_missing_subs, csv_to_pandas_df, \ write_inputs_dict_to_yaml_file, read_yml_file from qap.qap_utils import raise_smart_exception parser = argparse.ArgumentParser() parser.add_argument("o...
""" Django settings for Raspberry project. Generated by 'django-admin startproject' using Django 1.10.5. For more information on this file, see https://docs.djangoproject.com/en/1.10/topics/settings/ For the full list of settings and their values, see https://docs.djangoproject.com/en/1.10/ref/settings/ """ import ...
import unittest from random import random from craft_ai.pandas import CRAFTAI_PANDAS_ENABLED if CRAFTAI_PANDAS_ENABLED: import copy import pandas as pd from numpy.random import randn import craft_ai.pandas from .data import pandas_valid_data, valid_data from .utils import generate_entity_id...
# -*- coding: utf-8 -*- """ This file is part of Radar. Radar 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 option) any later version. Radar is distributed ...
from .base import RbxBaseParser class RbxComponentParser(RbxBaseParser): def build_parser(self): parser = self.subparsers.add_parser('component', help='Manage Run in the Box components') parser.add_argument('name', help='Component\'s name to work on') self.componen...
# ------------------------------------ # Copyright (c) Microsoft Corporation. # Licensed under the MIT License. # ------------------------------------ import functools import os from typing import TYPE_CHECKING from azure.core.pipeline.transport import HttpRequest from .. import CredentialUnavailableError from .._con...
"""Internal utilties; not for external use """ import contextlib import functools import itertools import os.path import re import warnings from collections import OrderedDict from typing import ( AbstractSet, Any, Callable, Container, Dict, Hashable, Iterable, Iterator, Mapping, MutableMapping, MutableSet, Opt...
# coding: utf-8 import oslo_messaging as messaging from oslo_config import cfg from oslo_serialization import jsonutils import fabcontext CONF = cfg.CONF _NAMESPACE = 'fabkit' _TOPIC = 'fabkit' class BaseRPCAPI(object): """Server side of the base RPC API.""" def __init__(self, service_name, target): ...
# Copyright (c) 2015 Mirantis, 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 requir...
# Copyright 2017 The TensorFlow Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applica...
# Copyright (c) 2013, Web Notes Technologies Pvt. Ltd. and Contributors # MIT License. See license.txt from __future__ import unicode_literals import frappe import HTMLParser import urllib from frappe import msgprint, throw, _ from frappe.utils.email_lib.smtp import SMTPServer from frappe.utils.email_lib.email_body im...
# Copyright 2018 The TensorFlow Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applica...
# coding: utf-8 from PyQt4.QtCore import QRect from PyQt4.QtGui import (QDialog, QFrame, QLineEdit, QScrollArea, QSizePolicy, QVBoxLayout, QWidget) from qgis.gui import QgsCollapsibleGroupBox new_dialog = QDialog() new_dialog.resize(200, 100) scroll_area = QScrollArea(new_dialog) scroll_area....
from troposphere import ( Parameter, Ref, Output, Tags, GetAtt, Base64, Join, Equals, cloudwatch as cw, ec2, elasticloadbalancing as elb, autoscaling as asg, route53 as r53 ) from utils.cfn import get_recent_ami from utils.constants import ( ALLOW_ALL_CIDR, ...
# Copyright (c) 2014 Adafruit Industries # Author: Tony DiCola # 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, mo...
import argparse import os import re import sys from django.core.management import base class Command(base.BaseCommand): help = \ """ Clears .pyc files from the project. """ pattern = r'^.+\.pyc$' def add_arguments(self, parser): parser.add_argument( '--noinpu...
from bs4 import BeautifulSoup import urllib #csv is for the csv writer import csv #this will hold the output holder = {} #opens the input doc txt = open("qz-rfa.csv") #is the contents of the doc #inputs = txt.read() #opens the output doc output_txt = open("output.txt", "w") print txt def headliner(url): #it...
#!/usr/bin/env python """ SchwarzerWolf.cc ************************** *date = '2017-10-30' * *module_version = '0.0.4'* ************************** *********************************************************************** *[KSFH - Kraftsport und Fitness Helfer] * *Module -> './modules/...
# coding=utf-8 # Copyright 2018 The Tensor2Tensor 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 applicable...
from __future__ import absolute_import, print_function, division import unittest import numpy from theano.compat import imap import theano.tensor.inplace from theano.tensor import basic as tensor from theano import tensor as T from theano import config from theano.gof.opt import check_stack_trace from theano.tests im...
#!/usr/bin/python # -*- coding: utf-8 -*- from __future__ import unicode_literals from elasticsearch import Elasticsearch, helpers import csv import argparse import time import json import os def read_rows(filename, delimiter=";"): with open(filename, "rb") as f: datareader = csv.reader(f, delimiter=str(...
# Copyright 2018 The TensorFlow 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 applicable law or agreed to ...
# -*- coding: utf-8 -*- import requests from bs4 import BeautifulSoup import processor from datetime import datetime def parse( url ): r = requests.get( url ) if r.status_code == 404: return processor.create_dictionary('', url, r.status_code, [u''], [u''], u'', u'', u'', u'', [u''], [u'']) r.encoding = 'UTF-8'...
from __future__ import absolute_import import six from django.core.urlresolvers import reverse from sentry.models import Repository from sentry.testutils import APITestCase class OrganizationRepositoriesListTest(APITestCase): def test_simple(self): self.login_as(user=self.user) org = self.crea...
import os import time import ctypes from math import sin, cos, pi os.environ["PYSDL2_DLL_PATH"] = "C:\\Program Files\\Python35\\other" import sdl2 import sdl2.ext import sdl2.sdlttf as sdlttf SCREEN_WIDTH = 1920 SCREEN_HEIGHT = 1080 sdl2.ext.init() window = sdl2.ext.Window("Game (not really)", size=...
import xml.etree.ElementTree as ET import logging ## Helps reading XML setting file into a Hash Table of Running options and Tuples array which describes the SAGE fields and their data types def ParseParams(FilePath): ## Init Return value CurrentSAGEStruct=[] RunningOptions=dict() ################...
#!/usr/bin/env python import os import subprocess from datetime import datetime import setuptools def read(filename): return open(os.path.join(os.path.dirname(__file__), filename)).read() try: with open('alerta/build.py', 'w') as f: build = """ BUILD_NUMBER = '{build_number}' BUILD...
# -*- coding: utf-8 -*- # Define here the models for your scraped items # # See documentation in: # http://doc.scrapy.org/en/latest/topics/items.html import scrapy class SogouweixinItem(scrapy.Item): # define the fields for your item here like: # sogou中, 帐号的历史页面 sogougzh = scrapy.Field() # 帐号的logo ...
#/usr/bin/env python # TBD: Finish Python port #***************************************************************************** # Compilation: javac EdgeWeightedDirectedCycle.java # Execution: java EdgeWeightedDirectedCycle V E F # Dependencies: EdgeWeightedDigraph.java DirectedEdge.java Stack.java # # Find...
# coding: utf-8 from __future__ import absolute_import, unicode_literals import django from django.core import cache from ..base import BaseTestCase from debug_toolbar.compat import unittest class CachePanelTestCase(BaseTestCase): def setUp(self): super(CachePanelTestCase, self).setUp() self.p...
from wordsnake import flattern, getLeaves, listOfMapsToMap from wordsnake import possibleSingleShift, snake, targetFound, validWord import unittest class WordSnakeTest( unittest.TestCase ): def setup( self ): pass def test_validWord( self ): self.assertTrue( validWord( 'hello' ) ) self.assertFalse( val...
import urllib2 import re import datetime import sqlite3 a=0 city=raw_input('enter city') print("") print("Entered city: "+city.upper()) print "Crunching the latest data", for i in range(0,100): a+=2 if(i%10==0): print ".", print("") print "Searching for alternative sources", for i in range(0,100): ...
from django.contrib import admin from edc.base.modeladmin.admin import BaseModelAdmin from ..forms import EnrollmentForm from ..models import Enrollment class EnrollmentAdmin(BaseModelAdmin): dashboard_type = 'subject' form = EnrollmentForm def __init__(self, *args, **kwargs): super(Enrollment...
#!/usr/bin/python -tt """Junos Interface Troubleshooting library.""" import re import warnings import helpers from napalm import get_network_driver from jnpr.junos.exception import ConnectRefusedError, ConnectAuthError # JUNOS MAC table RE RE_VLAN = r'\s+([\w\d-]+)\s+' RE_MAC = r'\s?([*\w\d:]+)\s+' RE_TYPE = r'\s?(...
# Copyright (c) 2013-2015, Vehbi Sinan Tunalioglu <vst@vsthost.com> # # 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 # noti...
#!/usr/bin/env python3 # -*- coding: utf-8 -*- # This file is part of fgpoliciestocsv. # # Copyright (C) 2014, 2020, Thomas Debize <tdebize at mail.com> # All rights reserved. # # fgpoliciestocsv is free software: you can redistribute it and/or modify # it under the terms of the GNU Lesser General Public License as pu...
import sublime, sublime_plugin, webbrowser from os.path import dirname, realpath from . import utils from collections import namedtuple Documentation = namedtuple('Documentation', 'doc_html_variables on_navigate priority') FILE_PATH = dirname(realpath(__file__)).replace("\\", "/") DOC_TEMPLATE = "" PAGINATION_TEMPLAT...
from django.contrib.sites.shortcuts import get_current_site from django.core.exceptions import PermissionDenied from django.db.models import Q from teams import swagger_params from teams.models import Teams from teams.tasks import update_team_users, remove_users from teams.serializer import TeamsSerializer, TeamCreateS...
from django.db import connection from core.libs.exlib import dictfetchall from core.iDDS.useconstants import SubstitleValue subtitleValue = SubstitleValue() def getTransforms(requestid): sqlpar = {"requestid": requestid} sql = """ select r.request_id, wt.transform_id from atlas_idds.requests r fu...
import urllib.request import json from datetime import date, timedelta import passwords class WU: #data = {} key = passwords.WU_KEY #city = 'Lewisburg' def __init__(self, city): self.city = city #self.refresh() def refresh(self): f = urllib.request.urlopen('http://api.wund...
""" Classes for modeling heterogenous factors of production. @author : David R. Pugh @date : 2015-08-06 """ from __future__ import division import collections import numpy as np from scipy import optimize, special import sympy as sym class Input(object): """Class representing a heterogenous production input.""...
"""This module holds classes related to image conversion. The main purpose of this module is the conversion between SimpleITK images and numpy arrays. """ import typing import SimpleITK as sitk import numpy as np class ImageProperties: """Represents ITK image properties. Holds common ITK image meta-data su...
# force floating point division. Can still use integer with // from __future__ import division # This file is used for importing the common utilities classes. import numpy as np class DilutionObj: def __init__(self,StockConc,StockVol,DesiredConc,AddVol,Name=""): self.StockConc=StockConc self.StockV...
# Copyright 2017 The TensorFlow Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applica...
import matplotlib.pyplot as plt import numpy as np import cv2 from skimage import io,color,data,filters,exposure,util,transform #plt.switch_backend('qt5agg') def otsu(): im=data.coins() f=np.zeros(255) minf=0 mini=0 for i in range(100,200): c1=im[im<=i] c2=im[im>i] m1=np....
""" EXPERIMENT 5, 6, 7, & 8 Experiment with the models gensim, and the official tensorflow implementation with different window sizes. We use both a corpus in portuguese as a corpus in english with and without preprocessing. """ import os from train_functions import train_both_models_with_different_window_sizes impor...
import cv2 import os import sys from string import Template from PIL import Image def doDetect(filename): dirname = '/home/dark_knight/hackerrank/demo' # first argument is the haarcascades path face_cascade_path = "haarcascade_frontalface_default.xml" face_cascade = cv2.CascadeClassifier(os.path.expanduser...
import sys from itertools import groupby from operator import itemgetter from django.utils.termcolors import colorize from taggit.models import Tag, TaggedItem from ideascube.management.base import BaseCommandWithSubcommands from ideascube.utils import sanitize_tag_name def log(text, **kwargs): sys.stdout.writ...
# coding: utf-8 # ------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for # license information. # --------------------------------------------------------------------...
import fileinput import time import base64 import xmlrpclib import os import random import sys import zipfile import os.path #Define some variables (Change these to suit your circumstances!) SERV = 'http://127.0.0.1/' UNAME = 'admin' PWORD = 'a' APIENDPOINT = '/app/index.php?module=api' # -- END EDITABLE REGION -- Pl...
# -*- encoding: utf8 -*- ''' Text Input ========== .. versionadded:: 1.0.4 .. image:: images/textinput-mono.jpg .. image:: images/textinput-multi.jpg The :class:`TextInput` widget provides a box of editable plain text. Unicode, multiline, cursor navigation, selection and clipboard features are supported. .. note::...
import numpy #from grc_gnuradio import blks2 as grc_blks2 from gnuradio import gr, uhd, blocks # , analog from gruel import pmt # import grextras for python blocks import gnuradio.extras from twisted.internet import reactor #import thread from threading import Thread import time import random from winelo.client impo...
########################################################################## # # Copyright (c) 2007-2011, 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: # # * Redis...
# coding: utf-8 import warnings import os from flask import Flask, request from subprocess import call import chatbot import messenger app = Flask(__name__) FACEBOOK_TOKEN = "page token generated on messenger page of facebook app dashboard" bot = None @app.route('/', methods=['GET']) def verify(): if request.ar...
# encoding: UTF-8 """ Module to perform HTTP requests. To do so: import http1 response = http1.request('http://www.google.com') print(f'Status: {response.status} ({response.message})') print(f'Headers: {response.headers}') print(f'Body: {response.body.strip()}') """ import base64 from urllib.parse import...
#!/usr/bin/env python # -*- coding: utf-8 -*- """ It generates the list of candidate fusion genes found in non-tumor cell lines. This list is hard coded inhere. Author: Daniel Nicorici, Daniel.Nicorici@gmail.com Copyright (c) 2009-2021 Daniel Nicorici This file is part of FusionCatcher. FusionCatcher is free soft...
# -*- coding: utf-8 -*- ############################################################################## # # OpenERP, Open Source Management Solution # Copyright (C) 2004-TODAY OpenERP S.A. <http://www.openerp.com> # # This program is free software: you can redistribute it and/or modify # it under the terms o...
import pygtk pygtk.require("2.0") import gtk import cairo import crcanvas import math import util import gobject import pango from base import SirannonBase # Constannts MODE_RESIZE = 0 MODE_ROTATE = 1 MODE_CONNECT = 2 MODE_MOVE = 3 ARROW_H = 0 ARROW_V = 1 ARROWS = {} SOUTH, WEST, NORTH, EAST = 0, 1, 2, 3 # Form facto...
# -*- coding: utf-8 -*- # # Copyright © 2016 Mark Wolf # # This file is part of Xanespy. # # Xanespy 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 l...
import multiprocessing import os import platform import queue import subprocess from itertools import chain from coalib.collecting import Dependencies from coalib.collecting.Collectors import collect_files from coalib.misc.StringConverter import StringConverter from coalib.output.printers.LOG_LEVEL import LOG_LEVEL fr...
""" /********************************************************** Organization :AsymptopiaSoftware | Software@theLimit Website :www.asymptopia.org Author :Charles B. Cosse Email :ccosse@asymptopia.org Copyright :(C) 2006-2011 Asymptopia Software License ...
#!/usr/bin/env python2 import time from devices.zigbee_xbee import XBeeCommDevice from protobufs import sgfc_pb2 as fc_proto def test_comms(): dev1 = None dev2 = None fc_message = fc_proto.FlightMessage() fc_message.sender = "Me" payload = fc_proto.Payload() payload.type = fc_proto.GPS_PO...
# training set-up train_config = { 'dataset': 'MNIST', 'output_distribution': 'bernoulli', 'batch_size': 64, 'n_samples': 10, 'n_iterations': 5, 'encoder_optimizer': 'adam', 'decoder_optimizer': 'adam', 'encoder_learning_rate': 0.0002, 'decoder_learning_rate': 0.0002, 'average_gr...
import os from setuptools import find_packages, setup with open(os.path.join(os.path.dirname(__file__), 'README.rst')) as readme: README = readme.read() # allow setup.py to be run from any path os.chdir(os.path.normpath(os.path.join(os.path.abspath(__file__), os.pardir))) setup( name='redsys', version='0...
""" URLs for the Affiliate Feature. """ from django.conf.urls import patterns, url urlpatterns = patterns('', url(r'^$', 'affiliates.views.index', name='index'), url(r'^admin$', 'affiliates.views.admin', name='admin'), url(r'^csv_admin$', 'affiliates.views.csv_admin', name='csv_admin'), url(r'^csv_exp...
''' Basic Python3 implementation of some functionality of the Gmail API. Based on the code from the Gmail API documentation. Requires a 'secret file' to allow authentication (see [1]) Installation ----------- In Python3, install the API using pip3: pip3 install --upgrade google-api-python-client Install packages...
# encoding: utf-8 """Class to abstract learning from multiple modalities.""" from .lib.nmf import KLdivNMF as NMF from .lib.array_utils import safe_hstack def fit_coefficients(data_obs, dictionary, iter_nmf=100, verbose=False): nmf_obs = NMF(n_components=dictionary.shape[0], max_iter=iter_nmf, tol=0) nmf_...
import pytest from proxypooler.errors import ProxyPoolerEmptyError def test_db(conn): conn.put('127.0.0.1:80', 15) conn.put('127.0.0.1:81', 14) conn.put('127.0.0.1:82', 210) conn.put('127.0.0.1:83', 2) conn.put('127.0.0.1:84', 100) assert conn.size == 5 ip = conn.get()[0].decode('utf-8') ...
from PyQt5 import QtWidgets from brown.core.brush_pattern import BrushPattern from brown.core.pen_cap_style import PenCapStyle from brown.core.pen_join_style import PenJoinStyle from brown.core.pen_pattern import PenPattern from brown.interface.brush_interface import BrushInterface from brown.interface.graphic_object_...
from collections import defaultdict from squares import * from effects import * from objects import * from custom import * from game import Subfield, Field from position import Position import io LEFT = (0, -1) RIGHT = (0, 1) UP = (-1, 0) DOWN = (1, 0) def read_field(fname): # solution from http://stackoverflow.c...
import sys from pandas import json import codecs from Common_Utilities import CommonUtilities class Conll2016DataUtilities(object): @staticmethod # Read relations data from pdtb file - relations.json # http://nbviewer.jupyter.org/github/attapol/conll16st/blob/master/tutorial/tutorial.ipynb#relations.json-...
''' Copyright 2011 Jake Ross Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing:None, software ...
from math import pi from utilities import A_integral import scipy.integrate as integrate import numpy as np from core.debug import _DEBUG assert(np) #derived by differentiating the slip for slips delta z apart def surface_elastic_half_space(slip_distribution, x): A = A_integral(slip_distribution, x, 1, 0) # pr...
# Author: Adam Chodorowski # Contact: chodorowski@users.sourceforge.net # Revision: $Revision: 3184 $ # Date: $Date: 2005-04-07 21:36:11 +0200 (Thu, 07 Apr 2005) $ # Copyright: This module has been placed in the public domain. # New language mappings are welcome. Before doing a new translation, please # re...
import logging import datetime from six.moves import http_client from flask import request, url_for, g, jsonify from flask.views import MethodView import marshmallow as ma from flask_restx import reqparse from flask_smorest import Blueprint, abort from drift.core.extensions.urlregistry import Endpoints fro...
from __future__ import print_function, division, absolute_import import itertools import numpy as np from sklearn.metrics import roc_auc_score def class_prob(model, X): if hasattr(model, 'predict_proba'): prob = model.predict_proba(X) return prob[:, -1] else: pred = model.decision_func...
"""This module contains all necessary views to power up shopping list web application""" import time import main from flask import flash, redirect, render_template, request, session, url_for from flask.views import View from .db.shopping_list.shopping import ShoppingList from .forms import (CreateShoppingItemForm, Cr...
# Copyright 2013 IBM Corp. # # Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agree...
''' This is the conductor which controls everything ''' import glob import imp import os import readline import sys from lib.common import completer from lib.common import helpers from lib.common import messages class Conductor: def __init__(self, cli_stuff): # Create dictionaries of supported modules...
############################################################################### # Copyright 2006 to the present, Orbitz Worldwide, 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...
import os # Build paths inside the project like this: os.path.join(BASE_DIR, ...) BASE_DIR = os.path.dirname( os.path.dirname( os.path.dirname( os.path.abspath(__file__) ) ) ) # SECURITY WARNING: set this to your domain name in production! ALLOWED_HOSTS = ['*'] # Application ...
# -*- coding: utf-8 -*- """ Standard PageXml features: - not using the page information - using a QuantileTransformer for numerical features instead of a StandardScaler No link with DOm or JSON => named GENERIC Copyright Xerox(C) 2016, 2019 JL. Meunier Developed for the EU projec...
import xml.etree.ElementTree as etree import re import sys __author__ = 'Ramon Costi Fernandes <ramon.fernandes@acad.pucrs.br>' SVG_namespace = "http://www.w3.org/2000/svg" SVG_fname = '' OUTPUT_fname = 'output.txt' coordinates_list = [] output_list = [] #Instrucoes de uso. def usage(): print("Como executar:\n"...
# encoding: utf-8 # # # This Source Code Form is subject to the terms of the Mozilla Public # License, v. 2.0. If a copy of the MPL was not distributed with this file, # You can obtain one at http://mozilla.org/MPL/2.0/. # # Contact: Kyle Lahnakoski (kyle@lahnakoski.com) # from __future__ import absolute_import, divis...
import time from .base import Thread from .controllers import DisplayController, DeviceController from ..system import InputManager, SceneManager, RenderManager __all__ = ['CoreEngine'] class CoreEngine(Thread): """ Core Engine Class This class is the main loop of the process that will manage all ...
from six import print_ from .event import Event from .wrappers import connection_wrapper from . import errors, util class TestCase(object): def start(self, log): print_("Starting...\n", flush=True) log = log.split("\n") for line in log: try: event = Event(line) ...
# # Gramps - a GTK+/GNOME based genealogy program # # Copyright (C) 2002-2007 Donald N. Allingham # Copyright (C) 2007-2008 Brian G. Matherly # Copyright (C) 2008 Jerome Rapinat # Copyright (C) 2008 Benny Malengier # # This program is free software; you can redistribute it and/or modify # it under the terms of the ...
# coding: utf-8 """ Low-level objects providing an abstraction for the objects involved in the calculation. """ from __future__ import unicode_literals, division, print_function import collections import abc import six import numpy as np import pymatgen.core.units as units from pprint import pformat from monty.design...
#!/usr/bin/env python3 # Copyright (c) 2015-2017 The Bitcoin Core developers # Distributed under the MIT software license, see the accompanying # file COPYING or http://www.opensource.org/licenses/mit-license.php. """Utilities for manipulating blocks and transactions.""" from .address import ( key_to_p2sh_p2wpkh, ...
# coding: utf-8 # # Copyright 2014 The Oppia Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless requi...
# -*- coding: utf-8 -*- # # This file is part of django-email-change. # # django-email-change adds support for email address change and confirmation. # # Development Web Site: # - http://www.codetrax.org/projects/django-email-change # Public Source Code Repository: # - https://source.codetrax.org/hgroot/djang...