text
stringlengths
5.09k
178k
domain
stringclasses
106 values
# -*- coding: utf-8 -*- from south.utils import datetime_utils as datetime from south.db import db from south.v2 import SchemaMigration from django.db import models class Migration(SchemaMigration): def forwards(self, orm): # Adding model 'NotificationPreferences' db.create_table(u'core_notificat...
codeparrot/github-code-clean
""" Module difflib -- helpers for computing deltas between objects. Function get_close_matches(word, possibilities, n=3, cutoff=0.6): Use SequenceMatcher to return list of the best "good enough" matches. Function context_diff(a, b): For two lists of strings, return a delta in context diff format. Fu...
codeparrot/github-code-clean
# # 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 # "License"); you may not...
codeparrot/github-code-clean
from __future__ import absolute_import from __future__ import print_function from typing import ( AbstractSet, Any, AnyStr, Callable, Dict, Iterable, Mapping, MutableMapping, Optional, Sequence, Set, Tuple, TypeVar, Union ) from django.utils.translation import ugettext as _ from django.conf import settings fro...
codeparrot/github-code-clean
# vim: tabstop=4 shiftwidth=4 softtabstop=4 # Copyright 2010-2011 OpenStack Foundation # Copyright 2011 Piston Cloud Computing, Inc. # All Rights Reserved. # Copyright 2013 Red Hat, Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the ...
codeparrot/github-code-clean
# Copyright 2012 OpenStack Foundation # All Rights Reserved # Copyright (c) 2012 NEC Corporation # # 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/lic...
codeparrot/github-code-clean
# 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...
codeparrot/github-code-clean
from __future__ import division from . import utils from sqlalchemy import (create_engine, ForeignKey, Column, String, Text, DateTime, Interval, Float, Enum, UniqueConstraint, Boolean) from sqlalchemy.orm import sessionmaker, scoped_session, relationship, column_property from sqlalchemy.orm.exc import NoResultFou...
codeparrot/github-code-clean
#!/usr/bin/env python # -*- coding: utf-8 -*- __version__ = "0.8.6" __author__ = "Pierre Legrand (pierre.legrand@synchrotron-soleil.fr)" __date__ = "20-12-2013" __copyright__ = "Copyright (c) 2006-2013 Pierre Legrand" __license__ = "New BSD http://www.opensource.org/licenses/bsd-license.php" # Environemantal variable...
codeparrot/github-code-clean
#!/usr/bin/env python # -*- coding: latin-1 -*- """ Geodata analysis of tracks; management of placemarks External usage: kajgps -i=stdin -ifmt=gpx -o=stdout -ofmt=json -log=logfile """ from math import degrees, atan, atan2, log10, sqrt import datetime import codecs import sys import os import csv import importlib i...
codeparrot/github-code-clean
import platform import warnings import fnmatch import itertools import pytest from fractions import Fraction import numpy.core.umath as ncu from numpy.core import _umath_tests as ncu_tests import numpy as np from numpy.testing import ( assert_, assert_equal, assert_raises, assert_raises_regex, assert_array_equ...
codeparrot/github-code-clean
import gc import sys import unittest import warnings import weakref import inspect import types from test import support class FinalizationTest(unittest.TestCase): def test_frame_resurrect(self): # A generator frame can be resurrected by a generator's finalization. def gen(): nonloca...
codeparrot/github-code-clean
#!/usr/bin/env python3 # # Copyright (c) 2009 Google 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: # # * Redistributions of source code must retain the above copyright # notice, this lis...
codeparrot/github-code-clean
from __future__ import division, print_function, absolute_import import warnings import numpy as np from numpy.testing import (TestCase, assert_array_almost_equal, assert_array_equal, assert_array_less, assert_raises, assert_equal, assert_, ...
codeparrot/github-code-clean
# mysql/base.py # Copyright (C) 2005-2016 the SQLAlchemy authors and contributors # <see AUTHORS file> # # This module is part of SQLAlchemy and is released under # the MIT License: http://www.opensource.org/licenses/mit-license.php """ .. dialect:: mysql :name: MySQL Supported Versions and Features ------------...
codeparrot/github-code-clean
import json from flask.ext.api import status import flask as fk from api import app, API_URL, crossdomain, check_api, check_app, api_response, s3_delete_file, s3_get_file, web_get_file, s3_upload_file, data_pop, merge_dicts, logStat, logTraffic, logAccess, prepare_env, prepare_record, prepare_project from corrdb.comm...
codeparrot/github-code-clean
#!/usr/bin/env python # -*- coding: utf-8 -*- # Constants swagger = { "paths": {} } test_values = [] test_values.append(""" <div class="section" id="get-1-members-idmember-or-username"> <h2>GET <span class="target" id="members-idmember-or-username">/1/members/[idMember or username]</span><a class="headerlink...
codeparrot/github-code-clean
import math import pytest import random from scipy.stats import pearsonr import numpy as np import tempfile import hail as hl import hail.expr.aggregators as agg from hail.expr.types import * from hail.expr.functions import _error_from_cdf from ..helpers import * setUpModule = startTestHailContext tearDownModule = st...
codeparrot/github-code-clean
# −*− coding: UTF−8 −*− #/** # * Software Name : libmich # * Version : 0.2.2 # * # *-------------------------------------------------------- # * File Name : formats/MCCMNC.py # * Created : 2012-04-04 # * Authors : Benoit Michau # *-------------------------------------------------------- #*/ #!/usr/bin/env python f...
codeparrot/github-code-clean
# rarfile.py # # Copyright (c) 2005-2016 Marko Kreen <markokr@gmail.com> # # Permission to use, copy, modify, and/or distribute this software for any # purpose with or without fee is hereby granted, provided that the above # copyright notice and this permission notice appear in all copies. # # THE SOFTWARE IS PROVIDED...
codeparrot/github-code-clean
# # This file is part of the Pi Entertainment System (PES). # # PES provides an interactive GUI for games console emulators # and is designed to work on the Raspberry Pi. # # Copyright (C) 2014-2021 Neil Munday (neil@mundayweb.com) # # PES is free software: you can redistribute it and/or modify # it u...
codeparrot/github-code-clean
# -*- coding: UTF-8 -*- # -------------------------------------------------------------------------- # package : Genropy core - see LICENSE for details # module gnrbag : an advanced data storage system # Copyright (c) : 2004 - 2017 Softwell sas - Milano # Written by : Giovanni Porcari, Michele Bertoldi # ...
codeparrot/github-code-clean
#!/usr/bin/env python # -*- coding: utf-8 -*- # Copyright 2011-2014, Nigel Small # # 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 # # Unl...
codeparrot/github-code-clean
# vim: tabstop=4 shiftwidth=4 softtabstop=4 # Copyright (c) 2010 Citrix Systems, Inc. # Copyright 2011 Piston Cloud Computing, 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 #...
codeparrot/github-code-clean
# 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...
codeparrot/github-code-clean
#!/usr/bin/env python # Copyright (C) 2014 Open Data ("Open Data" refers to # one or more of the following companies: Open Data Partners LLC, # Open Data Research LLC, or Open Data Capital LLC.) # # This file is part of Hadrian. # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this...
codeparrot/github-code-clean
# -*- coding: utf-8 -*- # Unit tests for cache framework # Uses whatever cache backend is set in the test settings file. from __future__ import unicode_literals import hashlib import os import pickle import random import re import string import tempfile import time import unittest import warnings from django.conf im...
codeparrot/github-code-clean
#!/usr/bin/env python ''' asciidoc - converts an AsciiDoc text file to DocBook, HTML or LinuxDoc Copyright (C) 2002-2005 Stuart Rackham. Free use of this software is granted under the terms of the GNU General Public License (GPL). ''' import sys, os, re, string, time, traceback, tempfile, popen2, codecs from types i...
codeparrot/github-code-clean
""" Data structure for 1-dimensional cross-sectional and time series data """ from __future__ import division # pylint: disable=E1101,E1103 # pylint: disable=W0703,W0622,W0613,W0201 import types import warnings from numpy import nan, ndarray import numpy as np import numpy.ma as ma from pandas.core.common import (i...
codeparrot/github-code-clean
#!/usr/bin/env python ######################################################################## # # Caution: there are two separate, independent build systems: # 'makepanda', and 'ppremake'. Use one or the other, do not attempt # to use both. This file is part of the 'makepanda' system. # # To build panda using this s...
codeparrot/github-code-clean
""" The module ``xnumpy`` provides useful functions in combination with ``numpy``. =============================================================================== Overview =============================================================================== The module ``xnumpy`` provides some addition useful functions that ...
codeparrot/github-code-clean
#Copyright 2008 Orbitz WorldWide # #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, so...
codeparrot/github-code-clean
# Copyright (c) 2012 Google Inc. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. import copy import ntpath import os import posixpath import re import subprocess import sys import gyp.common import gyp.easy_xml as easy_xml import gyp.generator...
codeparrot/github-code-clean
# 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. # Code generated by Microsoft (R) AutoRest Code Generator. # Changes may ...
codeparrot/github-code-clean
from __future__ import absolute_import import collections from collections import OrderedDict import re import six from six import string_types import warnings from contextlib import contextmanager from copy import deepcopy, copy import itertools from functools import reduce from _plotly_utils.utils import ( _nat...
codeparrot/github-code-clean
# Portions Copyright (c) Meta Platforms, Inc. and affiliates. # # This software may be used and distributed according to the terms of the # GNU General Public License version 2. # helptext.py - static help data for mercurial # # Copyright 2006 Mercurial Contributors # # This software may be used and distributed accord...
codeparrot/github-code-clean
#!/usr/bin/python # -*- coding=utf-8 -*- """ Constants used for stemming module """ import pyarabic.araby as ar import re VERB_LIST=() def is_verb_stamp(stem): """ Test if the stem can be found as verb stamp """ return verb_stamp(stem) in VERB_LIST def verb_stamp(verb): ""...
codeparrot/github-code-clean
# -*- coding: utf-8 -*- from south.utils import datetime_utils as datetime from south.db import db from south.v2 import SchemaMigration from django.db import models class Migration(SchemaMigration): def forwards(self, orm): # Adding field 'EtlJob.error_msg' db.add_column(u'source_data_etljob', 'e...
codeparrot/github-code-clean
import json import asyncio import contextlib import collections from unittest import mock import synapse.exc as s_exc import synapse.common as s_common import synapse.cortex as s_cortex import synapse.lib.ast as s_ast import synapse.lib.base as s_base import synapse.lib.snap as s_snap import synapse.tests.utils as ...
codeparrot/github-code-clean
# pylint: disable=W0223 import textwrap import warnings import numpy as np from pandas.compat import range, zip import pandas.compat as compat from pandas.core.dtypes.generic import ABCDataFrame, ABCPanel, ABCSeries from pandas.core.dtypes.common import ( is_integer_dtype, is_integer, is_float, is_list_like...
codeparrot/github-code-clean
from django.db import connection from collections import namedtuple from decimal import * from datetime import datetime, timedelta, date from django.db.models import Sum, Count, F, Q from django.core.serializers.json import DjangoJSONEncoder import json from django.http import HttpResponse from collections import Order...
codeparrot/github-code-clean
# -*- coding: utf-8 -*- import pytest import redis import time from ruskit.cluster import Cluster, ClusterNode SLOT = 866 PROXY_PORT = 12345 REDIS_URI_SRC = "redis://localhost:8000" REDIS_URI_DST = "redis://localhost:8001" class Redis(redis.Redis): def decr(self, name): return self.execute_command('DEC...
codeparrot/github-code-clean
from Plugins.Plugin import PluginDescriptor from Screens.Console import Console from Screens.ChoiceBox import ChoiceBox from Screens.MessageBox import MessageBox from Screens.Screen import Screen from Screens.Standby import TryQuitMainloop from Screens.Ipkg import Ipkg from Components.ActionMap import ActionMap, Number...
codeparrot/github-code-clean
''' Basic support for manipulating OEB 1.x/2.0 content and metadata. ''' __license__ = 'GPL v3' __copyright__ = '2008, Marshall T. Vandegrift <llasram@gmail.com>' __docformat__ = 'restructuredtext en' import os, re, uuid, logging from collections import defaultdict from itertools import count from urlparse import u...
codeparrot/github-code-clean
#!c:\python27\python.exe # -*- coding: utf-8 -*- """ Bottle is a fast and simple micro-framework for small web applications. It offers request dispatching (Routes) with url parameter support, templates, a built-in HTTP Server and adapters for many third party WSGI/HTTP-server and template engines - all in a single file...
codeparrot/github-code-clean
# Copyright 2013 Josh Durgin # 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 a...
codeparrot/github-code-clean
import string import unittest from email import _header_value_parser as parser from email import errors from email import policy from test.test_email import TestEmailBase, parameterize class TestTokens(TestEmailBase): # EWWhiteSpaceTerminal def test_EWWhiteSpaceTerminal(self): x = parser.EWWhiteSpace...
codeparrot/github-code-clean
from pybindgen import Module, FileCodeSink, param, retval, cppclass, typehandlers import pybindgen.settings import warnings class ErrorHandler(pybindgen.settings.ErrorHandler): def handle_error(self, wrapper, exception, traceback_): warnings.warn("exception %r in wrapper %s" % (exception, wrapper)) ...
codeparrot/github-code-clean
# -*- coding: utf-8 -*- """ This module offers a wide variety of page generators. A page generator is an object that is iterable (see http://legacy.python.org/dev/peps/pep-0255/ ) and that yields page objects on which other scripts can then work. Pagegenerators.py cannot be run as script. For testing purposes listpag...
codeparrot/github-code-clean
import copy import subprocess as sub from pos_parameters import string_parameter, value_parameter, filename_parameter, \ ants_transformation_parameter, vector_parameter, list_parameter, \ switch_parameter, ants_regularization_parameter, boolean_parameter import pos_parameters class ge...
codeparrot/github-code-clean
# $Id: bmath.py 3598 2015-10-16 13:07:06Z bnv $ # # Copyright and User License # ~~~~~~~~~~~~~~~~~~~~~~~~~~ # Copyright Vasilis.Vlachoudis@cern.ch for the # European Organization for Nuclear Research (CERN) # # All rights not expressly granted under this license are reserved. # # Installation, use, reproduction, displa...
codeparrot/github-code-clean
#!/usr/bin/env python # -*- coding: utf-8 -*- ############################################################################### # # Copyright (C) 2013-Today Carlos Eduardo Vercelino - CLVsol # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU Affero General Public Lic...
codeparrot/github-code-clean
# -*- coding: utf-8 -*- from pysignfe.corr_unicode import * from pysignfe.xml_sped import * from pysignfe.nfe.manual_401 import ESQUEMA_ATUAL from pysignfe.nfe.manual_300 import nfe_110 import os from lxml.etree import tounicode from pysignfe.nfe.webservices_3 import ESTADO_SVC_CONTINGENCIA from pysignfe.nfe.webservi...
codeparrot/github-code-clean
# -*- coding: utf-8 -*- # # pylast - A Python interface to Last.fm (and other API compatible social networks) # # Copyright 2008-2010 Amr Hassan # # 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 a...
codeparrot/github-code-clean
# 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...
codeparrot/github-code-clean
# -*- coding: utf-8 -*- """ pygments.lexers.jvm ~~~~~~~~~~~~~~~~~~~ Pygments lexers for JVM languages. :copyright: Copyright 2006-2013 by the Pygments team, see AUTHORS. :license: BSD, see LICENSE for details. """ from __future__ import unicode_literals import re from pygments.lexer import Lexe...
codeparrot/github-code-clean
""" The :mod:`sklearn.model_selection._split` module includes classes and functions to split the data based on a preset strategy. """ # Author: Alexandre Gramfort <alexandre.gramfort@inria.fr>, # Gael Varoquaux <gael.varoquaux@normalesup.org>, # Olivier Grisel <olivier.grisel@ensta.org> # Ragha...
codeparrot/github-code-clean
# # Authors: Travis Oliphant, Ed Schofield, Robert Cimrman, Nathan Bell, and others """ Test functions for sparse matrices. Each class in the "Matrix class based tests" section become subclasses of the classes in the "Generic tests" section. This is done by the functions in the "Tailored base class for generic tests" ...
codeparrot/github-code-clean
# Copyright (c) 2013 Google Inc. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. import collections import copy import hashlib import json import multiprocessing import os.path import re import signal import subprocess import sys import gyp imp...
codeparrot/github-code-clean
# Copyright 2013 OpenStack Foundation # All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless requ...
codeparrot/github-code-clean
# postgresql/base.py # Copyright (C) 2005-2022 the SQLAlchemy authors and contributors # <see AUTHORS file> # # This module is part of SQLAlchemy and is released under # the MIT License: https://www.opensource.org/licenses/mit-license.php r""" .. dialect:: postgresql :name: PostgreSQL :full_support: 9.6, 10, 1...
codeparrot/github-code-clean
# -*- coding: utf-8 -*- # Copyright 2008 Jaap Karssenberg <jaap.karssenberg@gmail.com> '''This module contains the main text editor widget. It includes all classes needed to display and edit a single page as well as related dialogs like the dialogs to insert images, links etc. The main widget accessed by the rest of...
codeparrot/github-code-clean
from Tools.Profile import profile from Screen import Screen import Screens.InfoBar import Components.ParentalControl from Components.Button import Button from Components.ServiceList import ServiceList, refreshServiceList from Components.ActionMap import NumberActionMap, ActionMap, HelpableActionMap from Components.Men...
codeparrot/github-code-clean
#!/usr/bin/env python # -*- coding: utf-8 -*- # # PCR-GLOBWB (PCRaster Global Water Balance) Global Hydrological Model # # Copyright (C) 2016, Ludovicus P. H. (Rens) van Beek, Edwin H. Sutanudjaja, Yoshihide Wada, # Joyce H. C. Bosmans, Niels Drost, Inge E. M. de Graaf, Kor de Jong, Patricia Lopez Lopez, # Stefanie Pes...
codeparrot/github-code-clean
# vim: ft=python fileencoding=utf-8 sts=4 sw=4 et: # Copyright 2014-2016 Florian Bruhin (The Compiler) <mail@qutebrowser.org> # # This file is part of qutebrowser. # # qutebrowser 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 S...
codeparrot/github-code-clean
# -*- coding: utf-8 -*- # # Copyright © Spyder Project Contributors # Licensed under the terms of the MIT License # (see spyder/__init__.py for details) """Editor Plugin""" # pylint: disable=C0103 # pylint: disable=R0903 # pylint: disable=R0911 # pylint: disable=R0201 # Standard library imports import ...
codeparrot/github-code-clean
""" Test for lms courseware app, module render unit """ import itertools import json import textwrap from datetime import datetime from functools import partial import pytest import ddt import pytz from bson import ObjectId from completion.waffle import ENABLE_COMPLETION_TRACKING_SWITCH # lint-amnesty, pylint: disab...
codeparrot/github-code-clean
# Copyright (c) 2011 X.commerce, a business unit of eBay Inc. # Copyright 2010 United States Government as represented by the # Administrator of the National Aeronautics and Space Administration. # All Rights Reserved. # Copyright 2013 Red Hat, Inc. # # Licensed under the Apache License, Version 2.0 (the "License");...
codeparrot/github-code-clean
# -*- coding: utf-8 -*- from __future__ import absolute_import from __future__ import print_function from django.db import connection from django.test import override_settings from sqlalchemy.sql import ( and_, select, column, table, ) from sqlalchemy.sql import compiler # type: ignore from zerver.models import...
codeparrot/github-code-clean
# -*- coding: utf-8 -*- import numpy as np import pytest from numpy.random import RandomState from numpy import nan from datetime import datetime from itertools import permutations from pandas import (Series, Categorical, CategoricalIndex, Timestamp, DatetimeIndex, Index, Inter...
codeparrot/github-code-clean
# Copyright (C) 2010-2019 The ESPResSo project # # This file is part of ESPResSo. # # ESPResSo 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 v...
codeparrot/github-code-clean
from __future__ import print_function from __future__ import unicode_literals from __future__ import absolute_import # pyeq2 is a collection of equations expressed as Python classes # # Copyright (C) 2013 James R. Phillips # 2548 Vera Cruz Drive # Birmingham, AL 35235 USA # # email: zunzun@zunzun.com # ...
codeparrot/github-code-clean
""" This module defines the SFrame class which provides the ability to create, access and manipulate a remote scalable dataframe object. SFrame acts similarly to pandas.DataFrame, but the data is completely immutable and is stored column wise on the GraphLab Server side. """ ''' Copyright (C) 2015 Dato, Inc. All righ...
codeparrot/github-code-clean
# exchange.py - utility to exchange data between repos. # # Copyright 2005-2007 Olivia Mackall <olivia@selenic.com> # # This software may be used and distributed according to the terms of the # GNU General Public License version 2 or any later version. from __future__ import absolute_import import collections import ...
codeparrot/github-code-clean
""" Test script for doctest. """ from test import support import doctest import functools import os import sys import importlib import unittest import tempfile # NOTE: There are some additional tests relating to interaction with # zipimport in the test_zipimport_support test module. ###########################...
codeparrot/github-code-clean
import os as OO0O0O0OOO0000O00 ,re as O000O0O0O00OO000O ,sys as O0O000O0O0OOOO00O ,hashlib as OOOOOO0O00O0OO0O0 ,urllib as OO0OOOO0OOOOOOO00 ,urlparse as OO0O0OOO0O000OOO0 ,json as OOOOO0OOOOOOOOO00 ,base64 as OOO0O0OOOO0O0O0O0 ,random as O00O00O00OOO0OO0O ,datetime as O0O00O00O00O0O0OO #line:1 import xbmc as OO0000O00...
codeparrot/github-code-clean
# coding=utf-8 # !/usr/bin/python # module: PiConnect.py # TODO: Dodac swieta # TODO: Dodac mozlwiosc wlaczenia przyciskiem # TODO: Dodac regule, jezeli czujka ruchu wykrywa obecnosc domownika import time from datetime import datetime from datetime import timedelta import ConfigParser import logging import MySQLdb ...
codeparrot/github-code-clean
# (c) 2012, Michael DeHaan <michael.dehaan@gmail.com> # # 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 lat...
codeparrot/github-code-clean
# Copyright 2010 United States Government as represented by the # Administrator of the National Aeronautics and Space Administration. # All Rights Reserved. # Copyright (c) 2010 Citrix Systems, Inc. # Copyright (c) 2011 Piston Cloud Computing, Inc # Copyright (c) 2012 University Of Minho # (c) Copyright 2013 Hewlett-Pa...
codeparrot/github-code-clean
# Copyright 2013 Cloudbase Solutions Srl # # 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 l...
codeparrot/github-code-clean
# 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 # distributed under the...
codeparrot/github-code-clean
# 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...
codeparrot/github-code-clean
# test_objects.py -- tests for objects.py # Copyright (C) 2007 James Westby <jw+debian@jameswestby.net> # # Dulwich is dual-licensed under the Apache License, Version 2.0 and the GNU # General Public License as public by the Free Software Foundation; version 2.0 # or (at your option) any later version. You can redistri...
codeparrot/github-code-clean
"""Filter design. """ from __future__ import division, print_function, absolute_import import math import operator import warnings import numpy import numpy as np from numpy import (atleast_1d, poly, polyval, roots, real, asarray, resize, pi, absolute, logspace, r_, sqrt, tan, log10, ...
codeparrot/github-code-clean
# -*- coding: utf-8 -*- from south.utils import datetime_utils as datetime from south.db import db from south.v2 import SchemaMigration from django.db import models class Migration(SchemaMigration): # Flag to indicate if this migration is too risky # to run online and needs to be coordinated for offline ...
codeparrot/github-code-clean
import sys import gc import gzip import os import threading import time import warnings import io import re import pytest from pathlib import Path from tempfile import NamedTemporaryFile from io import BytesIO, StringIO from datetime import datetime import locale from multiprocessing import Process import numpy as np ...
codeparrot/github-code-clean
#!/usr/bin/env python # # Copyright 2007 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...
codeparrot/github-code-clean
#!/usr/bin/env python """ This file defines a set of system_info classes for getting information about various resources (libraries, library directories, include directories, etc.) in the system. Currently, the following classes are available: atlas_info atlas_threads_info atlas_blas_info atlas_blas_threads_in...
codeparrot/github-code-clean
#!/usr/bin/env ambari-python-wrap """ 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...
codeparrot/github-code-clean
# 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...
codeparrot/github-code-clean
"""Functions to plot M/EEG data e.g. topographies.""" from __future__ import print_function # Authors: Alexandre Gramfort <alexandre.gramfort@telecom-paristech.fr> # Denis Engemann <denis.engemann@gmail.com> # Martin Luessi <mluessi@nmr.mgh.harvard.edu> # Eric Larson <larson.eric.d@gmail.com...
codeparrot/github-code-clean
import unittest, struct import os import sys from test import support import math from math import isinf, isnan, copysign, ldexp import operator import random, fractions INF = float("inf") NAN = float("nan") have_getformat = hasattr(float, "__getformat__") requires_getformat = unittest.skipUnless(have_getformat, ...
codeparrot/github-code-clean
#!/usr/bin/env python # -*- coding: latin-1 -*- # Module 'pydoc' -- Generate Python documentation in HTML or text for interactive use. # # Copyright (c) 2015, Daryl McDaniel. All rights reserved.<BR> # Copyright (c) 2011 - 2012, Intel Corporation. All rights reserved.<BR> # This program and the accompanying mat...
codeparrot/github-code-clean
#!/usr/bin/python # Handle unicode encoding import collections import csv import errno import getpass import itertools import locale import os import platform import threading import time import shlex import socket import sys import tempfile import urllib2 import re import fileinput from optparse import OptionParser...
codeparrot/github-code-clean
version="0.1.2" # plugins/SchedulGhost/__init__.py # # Copyright (C) 2010 Pako (lubos.ruckl@quick.cz) # # This file is a plugin for EventGhost. # # EventGhost 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 F...
codeparrot/github-code-clean
# -*- coding: utf-8 -*- # petgfunctions.py - This python "helper" script holds a lot of functions # Copyright (c) 2012-2014 Harry van der Wolf. All rights reserved. # This program or module is free software: you can redistribute it and/or # modify it under the terms of the GNU General Public Licence as published # by...
codeparrot/github-code-clean
# sql/schema.py # Copyright (C) 2005-2020 the SQLAlchemy authors and contributors # <see AUTHORS file> # # This module is part of SQLAlchemy and is released under # the MIT License: http://www.opensource.org/licenses/mit-license.php """The schema module provides the building blocks for database metadata. Each element...
codeparrot/github-code-clean
# Natural Language Toolkit: Feature Structures # # Copyright (C) 2001-2010 NLTK Project # Author: Edward Loper <edloper@gradient.cis.upenn.edu>, # Rob Speer, # Steven Bird <sb@csse.unimelb.edu.au> # URL: <http://nltk.sourceforge.net> # For license information, see LICENSE.TXT # # $Id$ """ Basic data cl...
codeparrot/github-code-clean
# Python source code generated by SCC (StateChart Compiler) 0.3, written by Thomas Feng # Source: D:/EclipseWorkspace/atom3/Kernel/UserInterface/defaultUI_Statechart\UI_Statechart_MDL.des # Date: June 19, 2006 # Time: 1:25:4 # Header Section -- definition and module importation used by the following p...
codeparrot/github-code-clean
# -*- coding: utf-8 -*- import models.sxrd_test5_sym_new_test_new66_2 as model from models.utils import UserVars import numpy as np from operator import mul from numpy.linalg import inv import sys sys.path.append('D:\\Programming codes\\geometry codes\\polyhedra-geometry') import hexahedra,hexahedra_distortion,...
codeparrot/github-code-clean