text
stringlengths
5.09k
178k
domain
stringclasses
106 values
# # Gramps - a GTK+/GNOME based genealogy program # # Copyright (C) 2000-2007 Donald N. Allingham # Copyright (C) 2009-2010 Gary Burton # Copyright (C) 2010 Nick Hall # Copyright (C) 2011 Tim G L Lyons # Copyright (C) 2016 Paul R. Culley # # This program is free software; you can redistribute it and...
codeparrot/github-code-clean
# -*- coding: utf-8 -*- # Copyright (c) 2016-2021 Wintermute0110 <wintermute0110@gmail.com> # # 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; version 2 of the License. # # This program is distr...
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
# coding=utf-8 # Copyright 2021 The Fairseq Authors and the HuggingFace Inc. team. 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/...
codeparrot/github-code-clean
# # # Copyright (C) 2008, 2009, 2010, 2011, 2012, 2013, 2014 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: # # 1. Redistributions of source code must retain the above copyright no...
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 os import ast import six import json import warnings import logging import copy from unittest import TestCase from CPAC.pipeline import nipype_pipeline_engine as pe import nipype.interfaces.utility as util from nipype.interfaces.utility import Rename from CPAC.utils.interfaces.function import Function from CPAC...
codeparrot/github-code-clean
## This file is part of Invenio. ## Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012, 2013 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...
codeparrot/github-code-clean
# This file was created automatically by SWIG 1.3.29. # Don't modify this file, modify the SWIG interface instead. import _windows_ import new new_instancemethod = new.instancemethod def _swig_setattr_nondynamic(self,class_type,name,value,static=1): if (name == "thisown"): return self.this.own(value) if (name ...
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
import os from Tools.HardwareInfo import HardwareInfo from Tools.BoundFunction import boundFunction from config import config, ConfigSubsection, ConfigSelection, ConfigFloat, \ ConfigSatlist, ConfigYesNo, ConfigInteger, ConfigSubList, ConfigNothing, \ ConfigSubDict, ConfigOnOff, ConfigDateTime, ConfigText from eni...
codeparrot/github-code-clean
from __future__ import division, absolute_import, print_function import collections import tempfile import sys import os import shutil import warnings import operator import io if sys.version_info[0] >= 3: import builtins else: import __builtin__ as builtins from decimal import Decimal import numpy as np fro...
codeparrot/github-code-clean
# Copyright (C) 2012 Red Hat, 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 ...
codeparrot/github-code-clean
# Copyright 2014 Scalyr 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 or agreed to in writing, so...
codeparrot/github-code-clean
# encoding=UTF8 # Copyright 2010 United States Government as represented by the # Administrator of the National Aeronautics and Space Administration. # All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You m...
codeparrot/github-code-clean
""" Test functions for linalg module """ from __future__ import division, absolute_import, print_function import os import sys import itertools import traceback import textwrap import subprocess import pytest import numpy as np from numpy import array, single, double, csingle, cdouble, dot, identity, matmul from num...
codeparrot/github-code-clean
__all__ = ['ReferenceFrame', 'Vector', 'Dyadic', 'dynamicsymbols', 'MechanicsStrPrinter', 'MechanicsPrettyPrinter', 'MechanicsLatexPrinter'] from sympy import ( Matrix, Symbol, sin, cos, eye, trigsimp, diff, sqrt, sympify, expand, zeros, Derivative, Function, symbols, Add, solve, S) f...
codeparrot/github-code-clean
# # Copyright (c) 2013 Big Switch Networks, Inc. # # Licensed under the Eclipse Public License, Version 1.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.eclipse.org/legal/epl-v10.html # # Unless required by applicable l...
codeparrot/github-code-clean
#!/usr/bin/env python # -*- 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 an...
codeparrot/github-code-clean
# Copyright (C) 2014 Nippon Telegraph and Telephone 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/licenses/LICENSE-2.0 # # Unless required by appli...
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, Text, Tuple, TypeVar, Union ) from django.utils.html import escape from django.utils.translation import ugettex...
codeparrot/github-code-clean
""" There are three types of functions implemented in SymPy: 1) defined functions (in the sense that they can be evaluated) like exp or sin; they have a name and a body: f = exp 2) undefined function which have a name but no body. Undefined functions can be defined using a Function cla...
codeparrot/github-code-clean
# -*- coding: utf-8 -*- # -*- coding: utf-8 -*- """ GIS Controllers """ module = request.controller resourcename = request.function # Compact JSON encoding SEPARATORS = (",", ":") # ----------------------------------------------------------------------------- def index(): """ Module's Home Page: Show...
codeparrot/github-code-clean
# -*- coding:utf-8 -*- """ 通联数据 Created on 2015/08/24 @author: Jimmy Liu @group : waditu @contact: jimmysoa@sina.cn """ from pandas.compat import StringIO import pandas as pd from tushare.util import vars as vs from tushare.util.common import Client from tushare.util import upass as up class Macro(): def __...
codeparrot/github-code-clean
# -*- coding: utf-8 -*- """ The BaseCase class is the main gateway for using The SeleniumBase Framework. It inherits Python's unittest.TestCase class, and runs with Pytest or Nose. All tests using BaseCase automatically launch WebDriver browsers for tests. Usage: from seleniumbase import BaseCase class MyTest...
codeparrot/github-code-clean
#===- cindex.py - Python Indexing Library Bindings -----------*- python -*--===# # # The LLVM Compiler Infrastructure # # This file is distributed under the University of Illinois Open Source # License. See LICENSE.TXT for details. # #===--------------------------------------------------------------...
codeparrot/github-code-clean
# pylint: skip-file # -*- coding: utf-8 -*- # Author: asciidisco # Module: default # Created on: 13.01.2017 # License: MIT https://goo.gl/5bMj3H """Netflix API management""" import os import sys import json from time import time try: from urllib.parse import quote, unquote except ImportError: from urllib imp...
codeparrot/github-code-clean
## NIFTY (Numerical Information Field Theory) has been developed at the ## Max-Planck-Institute for Astrophysics. ## ## Copyright (C) 2015 Max-Planck-Society ## ## Author: Marco Selig ## Project homepage: <http://www.mpa-garching.mpg.de/ift/nifty/> ## ## This program is free software: you can redistribute it and/or mod...
codeparrot/github-code-clean
"""PiecewiseFunction for piecewise functions.""" import bisect import numbers import operator from functools import partial from integration import * from interpolation import * from utils import epsunique, estimateDegreeOfPole, testPole, findinv, estimateTailExponent, is_instance_method import params from numpy im...
codeparrot/github-code-clean
#!/usr/bin/env python # -*- coding: utf-8 -*- # ****************************************************************************** # * Software: FPDF for python * # * Version: 1.54b * # * Date: 2010-09-10 ...
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 u...
codeparrot/github-code-clean
#!/usr/bin/env python import os import sys import re import gc import locale import shutil import time import unittest import doctest import operator import subprocess import tempfile import traceback import warnings try: import platform IS_PYPY = platform.python_implementation() == 'PyPy' IS_CPYTHON = pl...
codeparrot/github-code-clean
import Image, ImageDraw import ImageWin import os import wx import wx.lib.masked as masked import wx.lib.scrolledpanel as scrolled import wx.lib.hyperlink as hl import sys import pickle ID_ABOUT=1101 ID_OPEN=1102 ID_EXIT=1110 ID_INPUT=7001 ID_OUTPUT=7002 ID_EDIT_GOOD = 7003 ID_EDIT_CAP = 7004 ID_EDIT_FA...
codeparrot/github-code-clean
# -*- coding: utf-8 -*- # Relational database models for Montage import json import time import random import string import datetime import itertools from collections import Counter, defaultdict from math import ceil from pyvotecore.schulze_npr import SchulzeNPR from sqlalchemy import (Text, C...
codeparrot/github-code-clean
## @package csnGUI # Definition of main application CSnakeGUIApp. #!/usr/bin/env python # -*- coding: iso-8859-1 -*- import wxversion import sys if not getattr(sys, 'frozen', False): wxversion.select('2.8') from wx import xrc import csnGUIHandler import csnGUIOptions import csnContext import csnProject from csnL...
codeparrot/github-code-clean
""" ===================================================== Distance computations (:mod:`scipy.spatial.distance`) ===================================================== .. sectionauthor:: Damian Eads Function Reference ------------------ Distance matrix computation from a collection of raw observation vectors stored in...
codeparrot/github-code-clean
""" @package mi.instrument.seabird.sbe16plus_v2.ctdpf_jb.test.test_driver @file marine-integrations/mi/instrument/seabird/sbe16plus_v2/ctdpf_jb/driver.py @author Tapana Gupta @brief Test cases for ctdpf_jb driver USAGE: Make tests verbose and provide stdout * From the IDK $ bin/test_driver $ bin/test...
codeparrot/github-code-clean
""" Tests for Shopping Cart views """ from collections import OrderedDict import pytz from urlparse import urlparse from decimal import Decimal import json from django.http import HttpRequest from django.conf import settings from django.test import TestCase from django.test.utils import override_settings from django.c...
codeparrot/github-code-clean
#Copyright ReportLab Europe Ltd. 2000-2012 #see license.txt for license details __version__=''' $Id$ ''' __doc__=""" The Canvas object is the primary interface for creating PDF files. See doc/reportlab-userguide.pdf for copious examples. """ __all__ = ['Canvas'] ENABLE_TRACKING = 1 # turn this off to do profile testin...
codeparrot/github-code-clean
"""This submodule contains the class definitions of the the main five classes svgpathtools is built around: Path, Line, QuadraticBezier, CubicBezier, and Arc.""" # External dependencies from __future__ import division, absolute_import, print_function import re try: from collections.abc import MutableSequence # no...
codeparrot/github-code-clean
from plotly.basedatatypes import BaseTraceType as _BaseTraceType import copy as _copy class Funnel(_BaseTraceType): # class properties # -------------------- _parent_path_str = "" _path_str = "funnel" _valid_props = { "alignmentgroup", "cliponaxis", "connector", "c...
codeparrot/github-code-clean
# -*- coding: utf-8 -*- from __future__ import division import numpy as np from library import gibbs from absolute_salinity_sstar_ct import CT_from_t from gsw.utilities import match_args_return, strip_mask from constants import Kelvin, db2Pascal, P0, SSO, cp0, R, sfac from conversions import pt_from_CT, pt_from_t, p...
codeparrot/github-code-clean
# -*- coding: utf-8 -*- from Tools.Profile import profile from Screen import Screen import Screens.InfoBar import Components.ParentalControl from Components.Button import Button from Components.Renderer.Picon import getPiconName from Components.ServiceList import ServiceList, refreshServiceList from Components.ActionMa...
codeparrot/github-code-clean
# Author: Nic Wolfe <nic@wolfeden.ca> # URL: http://code.google.com/p/sickbeard/ # # This file is part of SickGear. # # SickGear 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...
codeparrot/github-code-clean
#!/usr/bin/env python ''' setup board.h for chibios ''' import argparse, sys, fnmatch, os, dma_resolver, shlex, pickle, re import shutil parser = argparse.ArgumentParser("chibios_pins.py") parser.add_argument( '-D', '--outdir', type=str, default=None, help='Output directory') parser.add_argument( '--bootloade...
codeparrot/github-code-clean
#!/usr/bin/env python ## Neeme Takis added speed control via default variables 24.8.2015 # # Copyright 2012 Jonas Berg # # 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
# Orca # # Copyright 2004-2009 Sun Microsystems Inc. # Copyright 2010-2013 The Orca Team # # This library 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...
codeparrot/github-code-clean
############################################################################## ## ## This file is part of Sardana ## ## http://www.sardana-controls.org/ ## ## Copyright 2011 CELLS / ALBA Synchrotron, Bellaterra, Spain ## ## Sardana is free software: you can redistribute it and/or modify ## it under the terms of the GN...
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 us...
codeparrot/github-code-clean
import logging import time from globus_sdk import exc from globus_sdk.base import BaseClient, merge_params, safe_stringify from globus_sdk.transfer.paging import PaginatedResource from globus_sdk.transfer.response import ( ActivationRequirementsResponse, IterableTransferResponse, TransferResponse, ) logge...
codeparrot/github-code-clean
# -*- coding: utf-8 -*- # transformations.py # Copyright (c) 2006-2015, Christoph Gohlke # Copyright (c) 2006-2015, The Regents of the University of California # Produced at the Laboratory for Fluorescence Dynamics # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modifica...
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 use ...
codeparrot/github-code-clean
# -*- coding: utf-8 -*- # Copyright (c) 2013 OpenStack Foundation # # 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...
codeparrot/github-code-clean
import json import os from datetime import datetime, timedelta from urllib.parse import quote, urlencode from django.conf import settings from django.core import mail from django.core.files.storage import default_storage as storage from django.test import RequestFactory from django.urls import reverse from django.uti...
codeparrot/github-code-clean
# -*- coding: utf-8 -*- import json import time import urlparse from datetime import datetime, timedelta from django.conf import settings from django.core import mail from django.core.files import temp from django.core.files.base import File as DjangoFile from django.utils.datastructures import SortedDict from django....
codeparrot/github-code-clean
""" Module contains tools for processing Stata files into DataFrames The StataReader below was originally written by Joe Presbrey as part of PyDTA. It has been extended and improved by Skipper Seabold from the Statsmodels project who also developed the StataWriter and was finally added to pandas in a once again improv...
codeparrot/github-code-clean
# Docstrings for generated ufuncs # # The syntax is designed to look like the function add_newdoc is being # called from numpy.lib, but in this file add_newdoc puts the # docstrings in a dictionary. This dictionary is used in # _generate_pyx.py to generate the docstrings for the ufuncs in # scipy.special at the C level...
codeparrot/github-code-clean
# # @BEGIN LICENSE # # Psi4: an open-source quantum chemistry software package # # Copyright (c) 2007-2022 The Psi4 Developers. # # The copyrights for code used from other parties are included in # the corresponding files. # # This file is part of Psi4. # # Psi4 is free software; you can redistribute it and/or modify #...
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
# Copyright (c) 2005 Divmod, Inc. # Copyright (c) Twisted Matrix Laboratories. # See LICENSE for details. """ Tests for L{twisted.protocols.amp}. """ from __future__ import absolute_import, division import datetime import decimal from zope.interface import implementer from zope.interface.verify import verifyClass, ...
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
"""scons.Node.FS File system nodes. These Nodes represent the canonical external objects that people think of when they think of building software: files and directories. This holds a "default_fs" variable that should be initialized with an FS that can be used by scripts or modules looking for the canonical default....
codeparrot/github-code-clean
from compiler import * #################################################################################################################### # Each scene prop record contains the following fields: # 1) Scene prop id: used for referencing scene props in other files. The prefix spr_ is automatically added before each s...
codeparrot/github-code-clean
#!/usr/bin/python # -*- coding: utf-8 -*- """pefile, Portable Executable reader module All the PE file basic structures are available with their default names as attributes of the instance returned. Processed elements such as the import table are made available with lowercase names, to differentiate them from the upp...
codeparrot/github-code-clean
#!/bin/bash # This module contains custom HODModels, which are subclasses of Halotools implementations. import numpy as np from scipy.special import erf from scipy.interpolate import interp1d import warnings from halotools.empirical_models import Zheng07Cens, Zheng07Sats, OccupationComponent, model_defaults #from hal...
codeparrot/github-code-clean
# ##### BEGIN GPL LICENSE BLOCK ##### # # 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 program is distrib...
codeparrot/github-code-clean
# -*- coding: utf-8 -*- from Screens.ChannelSelection import ChannelSelection, BouquetSelector, SilentBouquetSelector, EpgBouquetSelector from Components.About import about from Components.ActionMap import ActionMap, HelpableActionMap, NumberActionMap, HelpableNumberActionMap from Components.Harddisk import harddiskm...
codeparrot/github-code-clean
# -*- coding: utf-8 -*- # # This file is part of the python-chess library. # Copyright (C) 2012-2018 Niklas Fiekas <niklas.fiekas@backscattering.de> # # 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 Foundat...
codeparrot/github-code-clean
#!/usr/bin/env python # -*- coding: utf-8 -*- # This is unit with tests for LDAP access checks from __future__ import print_function import optparse import sys import base64 import re sys.path.insert(0, "bin/python") import samba from samba.tests.subunitrun import SubunitOptions, TestProgram import samba.getopt as o...
codeparrot/github-code-clean
# Certain dictionaries below use data from PKHeX's Resources text files species = { 1: 'Bulbasaur', 2: 'Ivysaur', 3: 'Venusaur', 4: 'Charmander', 5: 'Charmeleon', 6: 'Charizard', 7: 'Squirtle', 8: 'Wartortle', 9: 'Blastoise', 10: 'Caterpie', 11: 'Metapod', 12: 'Butterfre...
codeparrot/github-code-clean
sample = """{ "content": [ { "id": "zombie.survival.craft.z", "title": "Last Day on Earth: Survival", "icon": "https://lh3.googleusercontent.com/rCkmsTR5SRXnAfD_tpJpAJycYbsQW2tApoREMHs8sKwD9E1HCsW2C18lj7EQXiYGAAA", "developer": "K-MOBILE", "...
codeparrot/github-code-clean
# -*- coding: utf-8 -*- import time from collections import OrderedDict from openerp import api, fields, models, _ from openerp.osv import expression from openerp.exceptions import RedirectWarning, UserError, ValidationError from openerp.tools.misc import formatLang from openerp.tools import float_is_zero, float_compa...
codeparrot/github-code-clean
# -*- 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...
codeparrot/github-code-clean
# -*- coding: utf-8 -*- # Copyright 2013 Google Inc. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless require...
codeparrot/github-code-clean
from __future__ import unicode_literals from __future__ import with_statement from copy import deepcopy from datetime import datetime import logging from time import mktime import warnings from wsgiref.handlers import format_date_time import django from django.conf import settings from django.conf.urls import patterns...
codeparrot/github-code-clean
## This file is part of Invenio. ## Copyright (C) 2005, 2006, 2007, 2008, 2009, 2010, 2011 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 ## License, or (at your ...
codeparrot/github-code-clean
positions = { 'MIMAT0000062' : "hs9 94175957 94176036", 'MIMAT0000062' : "hs11 122146522 122146593", 'MIMAT0000062' : "hs22 46112749 46112822", 'MIMAT0000063' : "hs22 46113686 46113768", 'MIMAT0000064' : "hs21 16539828 16539911", 'MIMAT0000065' : "hs9 94178834 94178920", 'MIMAT0000066' : "hs19 51692786 51692864", 'MIMA...
codeparrot/github-code-clean
# Copyright (c) Jean-Paul Calderone # See LICENSE file for details. """ Unit tests for :py:mod:`OpenSSL.crypto`. """ from unittest import main from warnings import catch_warnings, simplefilter import base64 import os import re from subprocess import PIPE, Popen from datetime import datetime, timedelta import pytest...
codeparrot/github-code-clean
# Author: Nic Wolfe <nic@wolfeden.ca> # URL: http://code.google.com/p/sickbeard/ # # This file is part of Sick Beard. # # Sick Beard 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 Lice...
codeparrot/github-code-clean
"""Forest of trees-based ensemble methods Those methods include random forests and extremely randomized trees. The module structure is the following: - The ``BaseForest`` base class implements a common ``fit`` method for all the estimators in the module. The ``fit`` method of the base ``Forest`` class calls the ...
codeparrot/github-code-clean
""" numpy.ma : a package to handle missing or invalid values. This package was initially written for numarray by Paul F. Dubois at Lawrence Livermore National Laboratory. In 2006, the package was completely rewritten by Pierre Gerard-Marchant (University of Georgia) to make the MaskedArray class a subclass of ndarray,...
codeparrot/github-code-clean
import datetime import sqlalchemy as sa from sqlalchemy import and_ from sqlalchemy import exc from sqlalchemy import ForeignKey from sqlalchemy import ForeignKeyConstraint from sqlalchemy import func from sqlalchemy import inspect from sqlalchemy import Integer from sqlalchemy import MetaData from sqlalchemy import s...
codeparrot/github-code-clean
from p4.tree import Tree from p4.node import Node from p4.func import read from p4.var import var from p4.p4exceptions import P4Error import sys import csv import operator import time multiProcessing = False try: from multiprocessing import Process as Process from multiprocessing import Queue, cpu_count ...
codeparrot/github-code-clean
# -*- coding: utf-8 -*- import atexit import json import math import os import re import six from collections import namedtuple from datetime import date from math import ceil from tempfile import NamedTemporaryFile from wait_for import TimedOutError, wait_for from cached_property import cached_property from jsmin imp...
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
# 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
# Copyright 2010 United States Government as represented by the # Administrator of the National Aeronautics and Space Administration. # Copyright 2011 Piston Cloud Computing, Inc. # Copyright 2012-2013 Red Hat, Inc. # All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); you may # ...
codeparrot/github-code-clean
"""blocking adapter test""" from datetime import datetime import functools import logging import socket import threading import time import unittest import uuid import pika from pika.adapters import blocking_connection from pika.compat import as_bytes import pika.connection import pika.exceptions from ..forward_serve...
codeparrot/github-code-clean
import os import re import sys import imp import copy import glob import atexit import tempfile import subprocess import shutil import distutils from distutils.errors import DistutilsError try: set except NameError: from sets import Set as set from numpy.distutils.compat import get_exception __all__ = ['Con...
codeparrot/github-code-clean
#!/usr/bin/python """Sensorian_Client.py: Collects sensor data on given intervals and sends it to various services upon request. Cab be run on its own or imported to other projects and run in the background. """ from __future__ import print_function import ConfigParser import os import requests import json import ti...
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 us...
codeparrot/github-code-clean
# Author: Teon Brooks <teon.brooks@gmail.com> # Stefan Appelhoff <stefan.appelhoff@mailbox.org> # # License: BSD (3-clause) from itertools import chain import os import os.path as op import pytest import numpy as np from functools import partial from string import ascii_lowercase from numpy.testing import (...
codeparrot/github-code-clean
#!/usr/bin/env python # Copyright 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. """This is a simple HTTP/FTP/TCP/UDP/BASIC_AUTH_PROXY/WEBSOCKET server used for testing Chrome. It supports several test URLs, as spec...
codeparrot/github-code-clean
# -*- coding: utf-8 -*- """ Framework for filtered REST requests @copyright: 2013-14 (c) Sahana Software Foundation @license: MIT @requires: U{B{I{gluon}} <http://web2py.com>} Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentati...
codeparrot/github-code-clean
import copy from direct.controls.GravityWalker import GravityWalker from direct.directnotify import DirectNotifyGlobal from direct.distributed import DistributedObject from direct.distributed import DistributedSmoothNode from direct.distributed.ClockDelta import * from direct.distributed.MsgTypes import * from direct.f...
codeparrot/github-code-clean
"""Pexpect is a Python module for spawning child applications and controlling them automatically. Pexpect can be used for automating interactive applications such as ssh, ftp, passwd, telnet, etc. It can be used to a automate setup scripts for duplicating software package installations on different servers. It can be u...
codeparrot/github-code-clean
# -*- coding: utf-8 -*- version = "0.1.8" # This file is part of EventGhost. # Copyright (C) 2008-2013 Pako <lubos.ruckl@quick.cz> # # 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 Foundation; either versio...
codeparrot/github-code-clean
# -*- coding: utf-8 -*- # # blitz_gateway - python bindings and wrappers to access an OMERO blitz server # # Copyright (c) 2007, 2010 Glencoe Software, Inc. All rights reserved. # # This software is distributed under the terms described by the LICENCE file # you can find at the root of the distribution bundle, which ...
codeparrot/github-code-clean
# -*- 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...
codeparrot/github-code-clean
# -*- coding: utf-8 -*- # Copyright 2015 Spotify AB. All rights reserved. # # The contents of this file are 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/LICE...
codeparrot/github-code-clean