text
stringlengths
475
200k
# -*- coding: utf-8 -*- # pidlockfile.py # # Copyright © 2008–2009 Ben Finney <[EMAIL]> # # This is free software: you may copy, modify, and/or distribute this work # under the terms of the Python Software Foundation License, version 2 or # later as published by the Python Software Foundation. # No warranty expressed ...
# -*- coding: 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...
# Copyright 2010 Hakan Kjellerstrand [EMAIL] # # 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...
# -*- coding: utf8 -*- # Copyright (C) 2015 - Philipp Temminghoff <[EMAIL]> # This program is Free Software see LICENSE file for details import simplejson as json import itertools import KodiJson from Utils import * class LocalDB(object): def __init__(self, *args, **kwargs): self.movie_imdbs = [] ...
# Copyright 2015 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...
#!/usr/bin/env python3 # -*- coding: utf-8 -*- # BFLIM Extractor # Version v2.3 # Copyright © 2016-2019 AboodXD # This file is part of BFLIM Extractor. # BFLIM Extractor 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 ...
""" Python Character Mapping Codec mac_cyrillic generated from 'MAPPINGS/VENDORS/APPLE/CYRILLIC.TXT' with gencodec.py. """#" import codecs ### Codec APIs class Codec(codecs.Codec): def encode(self,input,errors='strict'): return codecs.charmap_encode(input,errors,encoding_table) def decode(self,inp...
import unittest from rdflib.Graph import Graph from rdflib import URIRef import gc import itertools from time import time from random import random from tempfile import mkdtemp def random_uri(): return URIRef("%s" % random()) class StoreTestCase(unittest.TestCase): """ Test case for testing store perfo...
# -*- 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 sys import smbus import math from Adafruit_I2C import Adafruit_I2C _hmc5883l_address = 0x1e _mode_register = 0x02 _mode_map = { 'continuous' : 0x00, 'single' : 0x01, 'idle' : 0x03} _configuration_reg_a = 0x00 _configuration_reg_b = 0x01 _read_register = 0x03 class HMC5883L(o...
#!/usr/bin/env python # Copyright (c) 2013 The Chromium Authors. All rights reserved. # Use of this source code is governed by a BSD-style license that can be found # in the LICENSE file. """ Analyze per-tile and viewport bench data, and output visualized results. """ __author__ = '[EMAIL] (Ben Chen)' import bench_u...
# encoding: utf-8 import datetime from south.db import db from south.v2 import SchemaMigration from django.db import models from froide.helper.auth_migration_util import USER_DB_NAME APP_MODEL, APP_MODEL_NAME = 'account.User', 'account.user' class Migration(SchemaMigration): def forwards(self, orm): ...
""" Test the parallel module. """ # Author: Gael Varoquaux <gael dot varoquaux at normalesup dot org> # Copyright (c) 2010-2011 Gael Varoquaux # License: BSD Style, 3 clauses. import time import sys import io import os try: import cPickle as pickle PickleError = TypeError except: import pickle PickleE...
# -*- coding: utf-8 -*- """ *************************************************************************** CalculatorModelerAlgorithm.py --------------------- Date : August 2012 Copyright : (C) 2012 by Victor Olaya Email : volayaf at gmail dot com ************...
from __future__ import unicode_literals from datetime import datetime from django.test import TestCase from .models import Article, Category class M2MMultipleTests(TestCase): def test_multiple(self): c1, c2, c3, c4 = [ Category.objects.create(name=name) for name in ["Sports", "N...
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django.db import models, migrations class Migration(migrations.Migration): dependencies = [ ('wms', '0006_auto_20150424_1058'), ] operations = [ migrations.RemoveField( model_name='style', name=...
''' Integration Test for creating KVM VM in HA mode with mysql stop on one node. @author: Quarkonics ''' import zstackwoodpecker.test_util as test_util import zstackwoodpecker.test_state as test_state import zstackwoodpecker.test_lib as test_lib import zstackwoodpecker.operations.resource_operations as res...
# -*- coding: utf-8 -*- # SPDX-FileCopyrightText: 2016-2019 The Atlite Authors # # SPDX-License-Identifier: GPL-3.0-or-later """ General utility functions for internal use. """ from .gis import maybe_swap_spatial_dims import progressbar as pgb from pathlib import Path import pandas as pd import xarray as xr import t...
# $Id: tableparser.py 7320 2012-01-19 22:33:02Z milde $ # Author: David Goodger <[EMAIL]> # Copyright: This module has been placed in the public domain. """ This module defines table parser classes,which parse plaintext-graphic tables and produce a well-formed data structure suitable for building a CALS table. :Class...
# -*- coding: utf-8 -*- ############################################################################## # # Author: Stéphane Bidoul # Copyright (c) 2012 Acsone SA/NV (http://www.acsone.eu) # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU Affero General ...
# (C) Copyright 2017, 2019-2021 by Rocky Bernstein # # 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. # # This progr...
#!/usr/bin/env python # # Licensed to the Apache Software Foundation (ASF) under one or more # contributor license agreements. See the NOTICE file distributed with # this work for additional information regarding copyright ownership. # The ASF licenses this file to You under the Apache License, Version 2.0 # (the "Li...
# Copyright (C) 2007-2012 by the Free Software Foundation, Inc. # # This file is part of GNU Mailman. # # GNU Mailman 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 you...
# copyright 2003-2013 LOGILAB S.A. (Paris, FRANCE), all rights reserved. # contact http://www.logilab.fr/ -- mailto:[EMAIL] # # This file is part of astroid. # # astroid 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 Softw...
# -*- coding: utf-8 -*- ''' TDnetLoader is a plug-in to both GUI menu and command line/web service that loads a TDnet html index file. TDnet is Tokyo Stock Exchange's Timely Disclosure Network. (c) Copyright 2014 Mark V Systems Limited, All rights reserved. ''' from lxml import html import datetime, re, os from arel...
# Copyright (C) 2003-2009 Robey Pointer <[EMAIL]> # # This file is part of paramiko. # # Paramiko 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 2.1 of the License, or (at your option) ...
# flake8: noqa from __future__ import absolute_import, division, print_function, with_statement from tornado.test.util import unittest class ImportTest(unittest.TestCase): def test_import_everything(self): # Some of our modules are not otherwise tested. Import them # all (unless they have externa...
from nbody_graph_search import Ugraph # To find 4-body "improper" interactions, # (by default, most of the time), we would use this subgraph: # 0 # * 1st bond connects atoms 1 and 0 # | => 2nd bond connects atoms 1 and 2 # _.*._ ...
from setuptools import setup, Extension x13_hash_module = Extension('x13_hash', sources = ['x13module.c', 'x13.c', '../../sph/blake.c', '../../sph/bmw.c', ...
# Copyright 2017 Codethink Ltd. # # 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 writin...
#!/usr/bin/env python ''' rotate APMs on bench to test magnetometers ''' import sys, os, time from math import radians from pymavlink import mavutil from optparse import OptionParser parser = OptionParser("rotate.py [options]") parser.add_option("--device1", dest="device1", default=None, help="mavlink device1") p...
""" LambdaRank is a listwise rank model. https://papers.nips.cc/paper/2971-learning-to-rank-with-nonsmooth-cost-functions.pdf """ import paddle.v2 as paddle def lambda_rank(input_dim, is_infer=False): """ The input data and label for LambdaRank must be sequences. parameters : input_dim, one documen...
# -*- encoding: 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...
from setuptools import setup, find_packages import os, sys # The repository root directory project_root = os.path.abspath(os.path.dirname(__file__)) # The projects which this project depends upon dependancies = [ 'pyramid', 'buildbot', 'repoze.tm2>=1.0b1', 'WebError', 'pyramid_jinja2', 'zope.i...
#******************************************************************************* # ALMA - Atacama Large Millimiter Array # (c) Associated Universities Inc., 2002 # (c) European Southern Observatory, 2002 # Copyright by ESO (in the framework of the ALMA collaboration) # and Cosylab 2002, All rights reserved # # This li...
# 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/. import shutil from subprocess import CalledProcessError from django.core.management.base import CommandError from djang...
#!/usr/bin/env python # # Copyright 2006,2007,2010,2012 Free Software Foundation, Inc. # # This file is part of GNU Radio # # GNU Radio 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, or (at ...
"""Module for testing string variables.""" class TestStringVar(BaseTestCase): def setUp(self): BaseTestCase.setUp(self) self.rawData = [] self.dataByKey = {} for i in range(1, 11): stringCol = u"String %d" % i fixedCharCol = (u"Fixed Char %d" % i).ljust(40) ...
import pytest from plenum.test.checkpoints.helper import checkRequestCounts from plenum.test.node_catchup.helper import ensure_all_nodes_have_same_data from plenum.test.test_node import ensureElectionsDone from plenum.test.view_change.helper import ensure_view_change from stp_core.loop.eventually import eventually fro...
# 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, software # d...
# -*- coding: utf-8 -*- from __future__ import print_function import sys import codecs import re import pkg_resources from nltk.classify import NaiveBayesClassifier space = re.compile('[\'".,!?\\s\\(\\)]+') cats = ('positiivne', 'negatiivne', 'neutraalne', 'vastuoluline') classifier = None corpus_name = pkg_resources....
from urllib.parse import urljoin from normality import stringify, collapse_spaces, slugify from lxml import html from opensanctions.util import date_formats, DAY def parse_date(text): return date_formats(text, [("%d/%m/%Y", DAY)]) def crawl_person(context, name, url): context.log.debug("Crawling member", na...
# (c) 2012-2014, Michael DeHaan <[EMAIL]> # # This file is part of Ansible # # Ansible is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation, either version 3 of the License, or # (at your option) any later version. ...
from cherrypy.test import test test.prefer_parent_path() import md5, sha import cherrypy from cherrypy.lib import httpauth def setup_server(): class Root: def index(self): return "This is public." index.exposed = True class DigestProtected: def index(self): re...
# -*- coding: utf-8 -*- ''' Insert minion return data into a sqlite3 database :maintainer: Mickey Malone <[EMAIL]> :maturity: New :depends: None :platform: All Sqlite3 is a serverless database that lives in a single file. In order to use this returner the database file must exist, have the appropri...
# -*- coding: utf-8 -*- """ *************************************************************************** r_li_padsd_ascii.py ------------------- Date : February 2016 Copyright : (C) 2016 by Médéric Ribreux Email : medspx at medspx dot fr ********************...
import argparse import glob import importlib import libmyriad import logging import myriad import os import requests import shutil import subprocess import sys import time class Bootstrap: def __init__(self): self.server = 'https://raw.githubusercontent.com/russellthackston/comp-chem-util/master/myriad' self.ver...
# Copyright 2016 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 -*- # # Copyright 2011 Sybren A. Stüvel <[EMAIL]> # # 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...
# 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 required by applicable ...
import time from typing import Any, Dict, List, Optional from django.db import models from . import logging from .autoupdate import AutoupdateElement, inform_changed_data, inform_elements from .rest_api import model_serializer_classes from .utils import convert_camel_case_to_pseudo_snake_case, get_element_id logger...
"""Support for zestimate data from zillow.com.""" from datetime import timedelta import logging import requests import voluptuous as vol import xmltodict from homeassistant.components.sensor import PLATFORM_SCHEMA from homeassistant.const import ATTR_ATTRIBUTION, CONF_API_KEY, CONF_NAME import homeassistant.helpers.c...
# $Id: roles.py 6121 2009-09-10 12:05:04Z milde $ # Author: Edward Loper <[EMAIL]> # Copyright: This module has been placed in the public domain. """ This module defines standard interpreted text role functions, a registry for interpreted text roles, and an API for adding to and retrieving from the registry. The inte...
import hmac from django.conf import settings from django.contrib.messages import constants from django.contrib.messages.storage.base import BaseStorage, Message from django.http import CompatCookie from django.utils import simplejson as json from django.utils.hashcompat import sha_hmac class MessageEncoder(json.JSON...
# coding=utf-8 # Copyright 2015 Pants project contributors (see CONTRIBUTORS.md). # Licensed under the Apache License, Version 2.0 (see LICENSE). from __future__ import (absolute_import, division, generators, nested_scopes, print_function, unicode_literals, with_statement) import inspect impor...
# -*- coding: utf-8 -*- """ *************************************************************************** ProcessingResults.py --------------------- Date : August 2012 Copyright : (C) 2012 by Victor Olaya Email : volayaf at gmail dot com *********************...
# Copyright 2016 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...
#! /usr/bin/env python3 # linktree # # Make a copy of a directory tree with symbolic links to all files in the # original tree. # All symbolic links go to a special symbolic link at the top, so you # can easily fix things if the original source tree moves. # See also "mkreal". # # usage: mklinks oldtree newtree impor...
## This file is part of Invenio. ## Copyright (C) 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012 CERN. ## ## Invenio 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 ## Lic...
from __future__ import unicode_literals import re from .common import InfoExtractor from ..compat import ( compat_HTTPError, compat_str, compat_urllib_parse_urlencode, compat_urllib_parse_urlparse, ) from ..utils import ( ExtractorError, qualities, ) class AddAnimeIE(InfoExtractor): _VAL...
# -*- coding: utf-8 -*- r''' werkzeug.script ~~~~~~~~~~~~~~~ .. admonition:: Deprecated Functionality ``werkzeug.script`` is deprecated without replacement functionality. Python's command line support improved greatly with :mod:`argparse` and a bunch of alternative modules. Most ...
# Copyright (C) 2005 John Arbash-Meinel <[EMAIL]> # Modified up by: Todd Whiteman <[EMAIL]> # # This file is part of paramiko. # # Paramiko 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...
import os from importlib import import_module from django.core.exceptions import AppRegistryNotReady, ImproperlyConfigured from django.utils._os import upath from django.utils.module_loading import module_has_submodule MODELS_MODULE_NAME = 'models' class AppConfig(object): """ Class representing a Django ap...
# -*- coding: utf-8 -*- import uuid import requests from modularodm import Q from modularodm.exceptions import ModularOdmException from framework.auth import Auth from framework.auth.core import get_user from website import util from website import security from website import settings from website.project import n...
# -*- 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 -*- # © 2015 Antiun Ingeniería S.L. - Sergio Teruel # © 2015 Antiun Ingeniería S.L. - Carlos Dauden # License AGPL-3 - See http://www.gnu.org/licenses/agpl-3.0.html from openerp import models, api, _ from openerp.exceptions import except_orm class HrAnalyticTimesheet(models.Model): _inherit =...
#!/usr/bin/python # # Copyright 2018-2021 Polyaxon, 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 ...
# -*- coding: utf-8 -*- ############################################################################## # For copyright and license notices, see __openerp__.py file in module root # directory ############################################################################## from openerp import fields, models, api class ac...
import struct class TruncatedStreamError(EOFError): pass class Reader(object): __slots__ = ['d', 'off'] def __init__(self, data, off=0): self.d = data self.off = off def done(self): return self.off >= len(self.d) def copy(self): return Reader(self.d, self.off) def u8(self):...
import os import sys import unittest sys.path.insert(1, os.path.abspath(os.path.join(__file__, "../.."))) import base_test from webdriver import exceptions class CookieTest(base_test.WebDriverBaseTest): def setUp(self): self.driver.get(self.webserver.where_is("cookie/res/cookie_container.html")) def...
# Common tests for test_tkinter/test_widgets.py and test_ttk/test_widgets.py import unittest import sys import Tkinter as tkinter from ttk import Scale from test_ttk.support import (AbstractTkTest, tcl_version, requires_tcl, get_tk_patchlevel, pixels_conv, tcl_obj_eq) import test.test_sup...
'''original example for checking how far GAM works Note: uncomment plt.show() to display graphs ''' example = 2 # 1,2 or 3 import numpy as np import numpy.random as R import matplotlib.pyplot as plt from statsmodels.sandbox.gam import AdditiveModel from statsmodels.sandbox.gam import Model as GAM #? from statsmode...
""" Small Theano LSTM recurrent network module. @author: Jonathan Raiman @date: December 10th 2014 Implements most of the great things that came out in 2014 concerning recurrent neural networks, and some good optimizers for these types of networks. Note (from 5 January 2015): Dropout api is a bit sophisticated due t...
# Copyright (C) 2009, 2010, 2011 Rickard Lindberg, Roger Lindberg # # This file is part of Timeline. # # Timeline 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...
import sys if sys.version_info[0] < 3: from ConfigParser import SafeConfigParser, NoOptionError else: from configparser import SafeConfigParser, NoOptionError import re import os import shlex __all__ = ['FormatError', 'PkgNotFound', 'LibraryInfo', 'VariableSet', 'read_config', 'parse_flags'] _VAR = re...
from __future__ import unicode_literals import datetime import decimal import hashlib import logging import re from time import time from django.conf import settings from django.utils.encoding import force_bytes from django.utils.timezone import utc logger = logging.getLogger('django.db.backends') class CursorWrap...
#!/usr/bin/python # -*- coding: utf-8 -*- """ ================================================================================ Music theory Python package Copyright (C) 2008, 2009, Bart Spaans This program is free software: you can redistribute it and/or modify it under the terms of the GNU General P...
from collections import namedtuple from pathlib import Path import csv DATA_DIR_PATH = Path( '/Users/harold/Desktop/NFC/Data/MPG Ranch/' '2016 MPG Ranch Recording Files Comparison') DEBBIE_FILE_PATH = DATA_DIR_PATH / 'Recording Files Debbie.csv' HAROLD_FILE_PATH = DATA_DIR_PATH / 'Recording Files Harold.csv'...
from collections import namedtuple from unification.more import (unify_object, reify_object, unifiable) from unification import var, variables from unification.core import unify, reify, _unify, _reify class Foo(object): def __init__(self, a, b): self.a = a self.b = b de...
#!/usr/bin/python # Copyright 2003 Vladimir Prus # Distributed under the Boost Software License, Version 1.0. # (See accompanying file LICENSE_1_0.txt or http://www.boost.org/LICENSE_1_0.txt) import BoostBuild import string t = BoostBuild.Tester(pass_toolset=0) t.write("a.cpp", """ """) t.write("yfc1.jam", """ imp...
from gge.GameObject import GameObject from gge.InputAttribute import InputAttribute from gge.Attribute import SingletonAttribute import gge.Types as T import gge.DisplayTypes as DT class MouseWithin(SingletonAttribute): pass class MouseDown(SingletonAttribute): pass class ShapeButton(GameObject): def ...
from django.core.exceptions import ValidationError from django.db import models from django.test import TestCase from .models import GenericIPAddress class GenericIPAddressFieldTests(TestCase): def test_genericipaddressfield_formfield_protocol(self): """ GenericIPAddressField with a specified pr...
"""A parser for XML, using the derived class as static DTD.""" # Author: Sjoerd Mullender. import re import string import warnings warnings.warn("The xmllib module is obsolete. Use xml.sax instead.", DeprecationWarning) del warnings version = '0.3' class Error(RuntimeError): pass # Regular expressions used f...
import numpy from numpy.testing import assert_raises from fuel.schemes import (ConstantScheme, SequentialExampleScheme, SequentialScheme, ShuffledExampleScheme, ShuffledScheme, ConcatenatedScheme, cross_validation) def iterator_requester(s...
from pyasn1 import error class TagMap: def __init__(self, posMap={}, negMap={}, defType=None): self.__posMap = posMap.copy() self.__negMap = negMap.copy() self.__defType = defType def __contains__(self, tagSet): return tagSet in self.__posMap or \ self.__...
from functools import wraps from django.utils.cache import patch_vary_headers from django.utils.decorators import available_attrs def vary_on_headers(*headers): """ A view decorator that adds the specified headers to the Vary header of the response. Usage: @vary_on_headers('Cookie', 'Accept-langu...
# # Copyright (c) 2017 Cisco and/or its affiliates. # # This file is part of Ansible # # Ansible is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation, either version 3 of the License, or # (at your option) any later...
# Copyright (C) 2011 ProFUSION Embedded Systems. All rights reserved. # Copyright (C) 2011 Samsung Electronics. All rights reserved. # Copyright (C) 2012 Intel Corporation # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are # me...
# data.py -- Calculated/Discovered Data Values # Copyright 1998-2014 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 import os, pwd, grp, platform, sys import portage portage.proxy.lazyimport.lazyimport(globals(), 'portage.output:colorize', 'portage.util:writemsg', 'portage.uti...
import os from tkinter import * import tkinter.messagebox as tkMessageBox class FileList: # N.B. this import overridden in PyShellFileList. from idlelib.EditorWindow import EditorWindow def __init__(self, root): self.root = root self.dict = {} self.inversedict = {} self.v...
# -*- coding: 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 GNU...
# Copyright 2013 Hewlett-Packard Development Company, L.P. # 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 # # Unles...
""" ======================= MNIST dataset benchmark ======================= Benchmark on the MNIST dataset. The dataset comprises 70,000 samples and 784 features. Here, we consider the task of predicting 10 classes - digits from 0 to 9 from their raw images. By contrast to the covertype dataset, the feature space is...
# Display a process of packets and processed time. # It helps us to investigate networking or network device. # # options # tx: show only tx chart # rx: show only rx chart # dev=: show only thing related to specified device # debug: work with debug mode. It shows buffer status. import os import sys sys.path.append(os...
# -*- coding: utf-8 -*- import os import sys import xbmc import xbmcgui import xbmcplugin import xbmcaddon import urllib import urllib2 import urlparse from xml.dom import minidom # plugin constants __plugin__ = "plugin.video.3bmeteo" __author__ = "Nightflyer" Addon = xbmcaddon.Addon(id=__plugin__) # plugin handle ...
#!/usr/bin/python # coding: utf-8 -*- # (c) 2013-2014, Christian Berendt <[EMAIL]> # GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) from __future__ import absolute_import, division, print_function __metaclass__ = type ANSIBLE_METADATA = {'metadata_version': '1.1', ...
from django.http import HttpResponse, HttpResponseRedirect from django.shortcuts import render, get_object_or_404, render_to_response from django.utils.timezone import now from datetime import timedelta from django.contrib.auth.models import User from django.contrib.auth import authenticate, login, logout from django.c...
# #!/usr/bin/env python # -*- coding: utf-8 -*- # <bolacha - http library for python, with cookies and upload support> # Copyright (C) <2010> Gabriel Falcão <[EMAIL]> # # Permission is hereby granted, free of charge, to any person # obtaining a copy of this software and associated documentation # files (the "Software"...
# -*- coding: utf-8 -*- #------------------------------------------------------------ # tvalacarta - XBMC Plugin # Fútbol Para Todos # http://blog.tvalacarta.info/plugin-xbmc/tvalacarta/ # # Autor: Juan Pablo Candioti (@JPCandioti) # Desarrollo basado sobre otros canales de tvalacarta #---------------------------------...
# coding: utf-8 """ Kubernetes No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 The version of the OpenAPI document: release-1.18 Generated by: https://openapi-generator.tech """ import pprint import re # noqa: F401 import si...