text
stringlengths
5.09k
178k
domain
stringclasses
106 values
# # 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
# -*- coding: utf-8 -*- """ Created on Fri May 23 10:19:28 2014 @author: Jens von der Linden Create various profiles. The analysis in the paper exclusivly focuses on UnitlessSmoothedCoreSkin profile. ParbolicNu2, NuCurrentProfile recreate the profiles from Wesson's Tokamak book. In the large aspect ratio limit k->0...
codeparrot/github-code-clean
#! /usr/bin/env python import re, sys, os, random sys.path.insert(0, os.path.join(os.path.dirname(__file__), '..', '..', '..', '..')) from rpython.translator.c.gcc.instruction import Insn, Label, InsnCall, InsnRet from rpython.translator.c.gcc.instruction import InsnFunctionStart, InsnStop from rpython.translator.c.g...
codeparrot/github-code-clean
#!/usr/bin/env python # -*- coding: utf-8 -*- import pylid from collections import Counter pl = pylid.PyLID(3) pl.total_ngrams = 92294471 pl.lang = 'pl' pl.ngrams = Counter({ u'ie#': 928803, u'nie': 914100, u'#pr': 682852, u'#po': 635072, u'ch#': 597022, u'ani': 482672, u'#na': 449009, ...
codeparrot/github-code-clean
#!/usr/bin/env python # -*- coding: utf-8 -*- """Django database manipulations (using the ORM) that require the settings module to be imported""" import datetime import collections import re from types import ModuleType import sqlparse import os import csv import json import warnings from traceback import print_exc fr...
codeparrot/github-code-clean
# bootloader.py # Anaconda's bootloader configuration module. # # Copyright (C) 2011 Red Hat, Inc. # # This copyrighted material is made available to anyone wishing to use, # modify, copy, or redistribute it subject to the terms and conditions of # the GNU General Public License v.2, or (at your option) any later versi...
codeparrot/github-code-clean
#!/usr/bin/env python __requires__ = ['pysam>=0.8.1'] import pysam import sys import os from optparse import OptionParser import myVCF import radiaUtil import logging from itertools import izip import collections import math ''' ' RNA and DNA Integrated Analysis (RADIA): ' Identifies RNA and DNA variants in NG...
codeparrot/github-code-clean
# # @BEGIN LICENSE # # Psi4: an open-source quantum chemistry software package # # Copyright (c) 2007-2021 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 2019 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # https://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, ...
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
<<<<<<< HEAD <<<<<<< HEAD """Regresssion tests for urllib""" import urllib.parse import urllib.request import urllib.error import http.client import email.message import io import unittest from unittest.mock import patch from test import support import os import ssl import sys import tempfile from nturl2path import ur...
codeparrot/github-code-clean
from modularodm import Q from rest_framework import generics, permissions as drf_permissions from rest_framework.exceptions import PermissionDenied, ValidationError, NotFound, MethodNotAllowed from rest_framework.status import HTTP_204_NO_CONTENT from rest_framework.response import Response from framework.auth.oauth_s...
codeparrot/github-code-clean
from __future__ import division, absolute_import, print_function import sys import platform from decimal import Decimal import warnings import itertools import platform import numpy as np from numpy.core import * from numpy.core import umath from numpy.random import rand, randint, randn from numpy.testing import * fr...
codeparrot/github-code-clean
# Author: Travis Oliphant, 2002 # # Further enhancements and tests added by numerous SciPy developers. # import warnings import sys import numpy as np from numpy.random import RandomState from numpy.testing import (assert_array_equal, assert_almost_equal, assert_array_less, assert_array_almost_equal, assert_,...
codeparrot/github-code-clean
# coding: utf-8 from __future__ import unicode_literals import itertools import json import os.path import random import re import time import traceback from .common import InfoExtractor, SearchInfoExtractor from ..jsinterp import JSInterpreter from ..swfinterp import SWFInterpreter from ..compat import ( compa...
codeparrot/github-code-clean
from ..broker import Broker class AccessChangeBroker(Broker): controller = "access_changes" def show(self, **kwargs): """Shows the details for the specified access change. **Inputs** | ``api version min:`` None | ``api version max:`` None | ``requi...
codeparrot/github-code-clean
import discord import asyncio import aiohttp import os import random import traceback import sys from datetime import datetime, timedelta from io import BytesIO, StringIO from config import * from settings import * import json import urllib.request ################## START INIT ##################### client = discord.C...
codeparrot/github-code-clean
# -*- coding: utf-8 -*- from collections import OrderedDict from gluon import current, URL from gluon.storage import Storage from s3 import S3ReportRepresent def config(settings): """ Settings for the SHARE Template """ T = current.T settings.base.system_name = T("Humanitarian Country Team...
codeparrot/github-code-clean
#!/usr/bin/python """ PopLib : Population management library for EURACE. Author(s) : Mehmet Gencer, mgencer@cs.bilgi.edu.tr, TUBITAK-UEKAE Bulent Ozel, bulent.ozel@gmail.com, Reykjavik University """ __docformat__="restructuredtext en" import xml.dom.minidom as xmldom import sys,pickle, os, os.path...
codeparrot/github-code-clean
#!/usr/bin/python import logging logging.basicConfig(level=logging.INFO, format="%(asctime)s - %(name)s - %(levelname)s - %(message)s") import procgame.game, sys, os import procgame.config import random import procgame.sound sys.path.insert(0,os.path.pardir) import bingo_emulator.common.units as units import bingo_em...
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
# coding=utf-8 # Copyright 2020 The Allen Institute for AI team and The HuggingFace Inc. team. # # 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...
codeparrot/github-code-clean
libc_data = { 'imports': [ (0x2158e84, 4, 9, '*.rpc_createerr'), (0x2158e88, 4, 9, '*.__key_gendes_LOCAL'), (0x2158e8c, 4, 9, '*.__ctype32_tolower'), (0x2158e94, 4, 9, '*.loc1'), (0x2158e9c, 4, 9, '*.svc_pollfd'), (0x2158ea0, 4, 9, '*._IO_funlockfile'), (0x215...
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 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...
codeparrot/github-code-clean
# get data for moment.js from __future__ import unicode_literals def update(tz, out): ltz = data["links"].get(tz, tz) zone = data["zones"].get(ltz) if not zone: return out["zones"][ltz] = zone out["links"][tz] = ltz for z in zone: parts = z.split(" ") if parts[1] in data["rules"]: out["rules"][parts[1]]...
codeparrot/github-code-clean
from rpython.rlib import jit, rarithmetic from rpython.rlib.objectmodel import specialize, we_are_translated from rpython.rtyper.lltypesystem import rffi from sqpyte.capi import CConfig from rpython.rtyper.lltypesystem import lltype from sqpyte import capi import sys import math assert sys.maxint == 2 ** 63 - 1 # sqpy...
codeparrot/github-code-clean
import math import os import warnings import cairo import gobject import gtk import pango import pangocairo from adjustments import (MsaviewAdjustment, ZoomAdjustment) from color import (Color, ColorSetting) from action import (Action, r...
codeparrot/github-code-clean
# -*- coding: utf-8 -*- # # This file is part of Invenio. # Copyright (C) 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...
codeparrot/github-code-clean
#!/usr/bin/env python3 # # run-tests.py - Run a set of tests on Mercurial # # Copyright 2006 Matt Mackall <mpm@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. # Modifying this script is tricky because it has many mode...
codeparrot/github-code-clean
""" # ============================================================================== Plots data vs model response computed by an Inversion Method # ============================================================================== """ import matplotlib.gridspec as gridspec import matplotlib.pyplot as plt import numpy as n...
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
#!/usr/bin/python import logging logging.basicConfig(level=logging.INFO, format="%(asctime)s - %(name)s - %(levelname)s - %(message)s") import procgame.game, sys, os import procgame.config import random import procgame.sound sys.path.insert(0,os.path.pardir) import bingo_emulator.common.units as units import bingo_em...
codeparrot/github-code-clean
""" Student Views """ import datetime import logging import uuid import json import warnings from collections import defaultdict from urlparse import urljoin, urlsplit, parse_qs, urlunsplit from django.views.generic import TemplateView from pytz import UTC from requests import HTTPError from ipware.ip import get_ip i...
codeparrot/github-code-clean
# Copyright 2015 Internap. # # 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
#!/usr/bin/python import argparse from ClusterShell.NodeSet import RangeSet, NodeSet import datetime from env import MAIL_COMMAND,SUBMIT_COMMAND,SCHED_TYPE,DEFAULT_QUEUE,MY_MACHINE,MY_MACHINE_FULL_NAME,clean_line import fcntl import getpass import glob import logging import logging.handlers import os import pickle imp...
codeparrot/github-code-clean
# Generated using 'spi_nor_cfg_gen.py' from litespi.spi_nor_flash_module import SpiNorFlashModule from litespi.opcodes import SpiNorFlashOpCodes from litespi.ids import SpiNorFlashManufacturerIDs class X160S33B(SpiNorFlashModule): manufacturer_id = SpiNorFlashManufacturerIDs.INTEL device_id = 0x8911 name...
codeparrot/github-code-clean
import xml.parsers.expat, os, shutil from eoparser.helper import isXML, abs_path_get, dir_files_get from helper import normalize_names, _const import copy, sys const = _const() def O_TYPE_CHECK(o, class_type): if not isinstance(o, class_type): # if type(o) is not class_type: print "Warning: object: %s is n...
codeparrot/github-code-clean
#!/usr/bin/env python # Copyright (c) 2012 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. """PyAuto: Python Interface to Chromium's Automation Proxy. PyAuto uses swig to expose Automation Proxy interfaces to Python. For ...
codeparrot/github-code-clean
#!/usr/bin/env python # Copyright (c) 2012 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. """code generator for GLES2 command buffers.""" import itertools import os import os.path import sys import re import platform fro...
codeparrot/github-code-clean
############################################################################### # evolveddiskdf.py: module that builds a distribution function as a # steady-state DF + subsequent evolution # # This module contains the following classes: # # evolveddiskdf - top-level class that represents a...
codeparrot/github-code-clean
# -*- coding: utf-8 -*- from __future__ import unicode_literals import datetime import os import re import unittest from django.contrib.admin import ModelAdmin from django.contrib.admin.helpers import ACTION_CHECKBOX_NAME from django.contrib.admin.models import DELETION, LogEntry from django.contrib.admin.options imp...
codeparrot/github-code-clean
#!/usr/bin/env python3 # Copyright (c) 2016 The Bitcoin Core developers # Distributed under the MIT software license, see the accompanying # file COPYING or http://www.opensource.org/licenses/mit-license.php. from test_framework.mininode import * from test_framework.test_framework import MincoinTestFramework from test...
codeparrot/github-code-clean
# -*- coding: utf-8; -*- # # This file is part of Superdesk. # # Copyright 2013, 2014 Sourcefabric z.u. and contributors. # # For the full copyright and license information, please see the # AUTHORS and LICENSE files distributed with this source code, or # at https://www.sourcefabric.org/superdesk/license import os i...
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
from distutils.version import LooseVersion import pickle import pytest import numpy as np import scipy.sparse as sp import joblib from sklearn.utils.testing import assert_array_equal from sklearn.utils.testing import assert_almost_equal from sklearn.utils.testing import assert_array_almost_equal from sklearn.utils.te...
codeparrot/github-code-clean
"""Test date/time type. See http://www.zope.org/Members/fdrake/DateTimeWiki/TestCases """ from test.support import is_resource_enabled import itertools import bisect import copy import decimal import sys import os import pickle import random import struct import unittest from array import array from operator impor...
codeparrot/github-code-clean
from operator import attrgetter from django.apps import apps from django.core import checks from django.db import connection, connections, router, transaction from django.db.backends import utils from django.db.models import signals, Q from django.db.models.deletion import SET_NULL, SET_DEFAULT, CASCADE from django.db...
codeparrot/github-code-clean
# pylint: disable-msg=W0401,W0511,W0611,W0612,W0614,R0201,E1102 """Tests suite for MaskedArray & subclassing. :author: Pierre Gerard-Marchant :contact: pierregm_at_uga_dot_edu """ __author__ = "Pierre GF Gerard-Marchant" import types import warnings import numpy as np import numpy.core.fromnumeric as fromnumeric fr...
codeparrot/github-code-clean
#!/usr/bin/env python3 # Copyright (c) 2019-2021 The Bitcoin Core developers # Distributed under the MIT software license, see the accompanying # file COPYING or http://www.opensource.org/licenses/mit-license.php. # Test Taproot softfork (BIPs 340-342) from test_framework.blocktools import ( COINBASE_MATURITY, ...
codeparrot/github-code-clean
__author__ = 'isaac' import os from examples.plankton import plankton from pydnn import neuralnet as nn from pydnn import preprocess as pp from pydnn import tools class Experiment(object): """ comments: like 63 except: (1) using overlapping pools (2) adam (3) LearningRateDecay results: ...
codeparrot/github-code-clean
# -*- mode: python; coding: utf-8 -*- # Copyright 2015 Peter Williams <peter@newton.cx> and collaborators. # Licensed under the MIT License. """scanalyzer.ui - implementation of the UI. This uses the Gtk+3 graphical toolkit. """ from __future__ import absolute_import, division, print_function, unicode_literals __al...
codeparrot/github-code-clean
#! /usr/bin/env python import simulation import unittest import numpy as np import copy from basic_defs import * def int_r(f): """ Convert to nearest integer. """ return int(np.round(f)) # a simple mock source layer class SimpleNeurons(object): def __init__(self, N, out_step=1, out_fct=None): self.N = N ...
codeparrot/github-code-clean
#!/usr/bin/env python # -*- coding: utf-8 -*- import re import unittest import jsbeautifier import six class TestJSBeautifier(unittest.TestCase): def test_unescape(self): # Test cases contributed by <chrisjshull on GitHub.com> test_fragment = self.decodesto bt = self.bt bt('"\\\\s...
codeparrot/github-code-clean
#!/usr/bin/python # -*- coding: utf-8 -*- """ Functions for use with the GEOS-Chem chemical transport model (CTM). Use help(<name of function>) to get details on a particular function. NOTE(S): - This module is underdevelopment vestigial/inefficient code is being removed/updated. - Where external code is used credi...
codeparrot/github-code-clean
# devices.py # Classes to represent various types of block devices. # # Copyright (C) 2009-2014 Red Hat, Inc. # # This copyrighted material is made available to anyone wishing to use, # modify, copy, or redistribute it subject to the terms and conditions of # the GNU General Public License v.2, or (at your option) any...
codeparrot/github-code-clean
# -*- coding: latin-1 -*- # # auto generated TopDown/TMA 4.3-full-perf description for Intel 3rd gen Core (code named IvyBridge) # Please see http://ark.intel.com for more details on these CPUs. # # References: # http://bit.ly/tma-ispass14 # http://halobates.de/blog/p/262 # https://sites.google.com/site/analysismethods...
codeparrot/github-code-clean
# SPL Studio Configuration user interfaces # An app module and global plugin package for NVDA # Copyright 2016-2021 Joseph Lee, released under GPL. # Split from SPL config module in 2016. # Provides the configuration management UI package for SPL Studio app module. # For code which provides foundation for code in this ...
codeparrot/github-code-clean
# test data for lbw lo setup test case bram = [ 0x0000, 0xff7f, 0x31e3, 0x4a83, 0x2438, 0x0673, 0x69af, 0x909c, 0xe764, 0xbf4e, 0xf68b, 0xfdc9, 0x387d, 0x821a, 0x0780, 0x5b02, 0x297c, 0xe7e0, 0x078e, 0x3f3a, 0xf061, 0x98ad, 0x20b3, 0x5666, 0xde33, 0xfd8a, 0xcde7, 0xb07d, 0x4afb, 0x1880, 0x6121, 0x917b, 0xaac3, 0x1f8...
codeparrot/github-code-clean
import os import math def rotatePoint(centerPoint,point,angle): angle = math.radians(angle) temp_point = point[0]-centerPoint[0] , point[1]-centerPoint[1] temp_point = ( temp_point[0]*math.cos(angle)-temp_point[1]*math.sin(angle) , temp_point[0]*math.sin(angle)+temp_point[1]*math.cos(angle)) temp_point...
codeparrot/github-code-clean
# -*- coding: utf-8 -*- from __future__ import division, unicode_literals, print_function, absolute_import import copy import datetime import math import operator as op import warnings from pint import DimensionalityError, OffsetUnitCalculusError, UnitRegistry from pint.unit import UnitsContainer from pint.compat im...
codeparrot/github-code-clean
#!/usr/bin/env python # generated at 2016-10-20T23:27:42 by "python # generate-grammars/python-awk/python2_hgawk.g # generate-grammars/python-awk/python2_actions.py # histogrammar.python23_lex histogrammar/hgawk_grammar.py" import re import ast import inspect from histogrammar.pycparser.ply import yacc from histogram...
codeparrot/github-code-clean
# 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...
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 required by applicab...
codeparrot/github-code-clean
# vim: tabstop=4 shiftwidth=4 softtabstop=4 # Copyright 2010 United States Government as represented by the # Administrator of the National Aeronautics and Space Administration. # All Rights Reserved. # Copyright (c) 2010 Citrix Systems, Inc. # Copyright (c) 2011 Piston Cloud Computing, Inc # Copyright (c) 2012 Univer...
codeparrot/github-code-clean
import time import uuid from distutils.version import LooseVersion from cassandra import ConsistencyLevel as CL from cassandra import InvalidRequest, ReadFailure, ReadTimeout from cassandra.policies import FallthroughRetryPolicy from cassandra.query import (SimpleStatement, dict_factory, n...
codeparrot/github-code-clean
# Licensed under a 3-clause BSD style license - see LICENSE.rst """Mathematical models.""" from __future__ import (absolute_import, unicode_literals, division, print_function) from collections import OrderedDict import numpy as np from .core import (Fittable1DModel, Fittable2DModel, Model, ...
codeparrot/github-code-clean
#!/usr/bin/env python3 # vim: set encoding=utf-8 tabstop=4 softtabstop=4 shiftwidth=4 expandtab ######################################################################### # Copyright 2016-2018 Martin Sinn m.sinn@gmx.de # Copyright 2016 Christian Straßburg c.strassburg@gmx.de # ...
codeparrot/github-code-clean
# -*- coding: utf-8 -*- ## ## ## This file is part of Indico. ## Copyright (C) 2002 - 2014 European Organization for Nuclear Research (CERN). ## ## Indico 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; eith...
codeparrot/github-code-clean
""" Schemas for mesoscope scans.""" import datajoint as dj from datajoint.jobs import key_hash import matplotlib.pyplot as plt import numpy as np import scanreader from . import experiment, injection, notify, shared from .utils import galvo_corrections, signal, quality, mask_classification, performance from .exception...
codeparrot/github-code-clean
# Copyright (c) 2018 PaddlePaddle 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 app...
codeparrot/github-code-clean
# -*- coding: utf-8 -*- # # Copyright 2018 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # https://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law...
codeparrot/github-code-clean
# # Copyright (c) 2010 Red Hat, Inc. # # This software is licensed to you under the GNU General Public License, # version 2 (GPLv2). There is NO WARRANTY for this software, express or # implied, including the implied warranties of MERCHANTABILITY or FITNESS # FOR A PARTICULAR PURPOSE. You should have received a copy of...
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 absolute_import, unicode_literals import hashlib import os import random import re import string import tempfile import time import warnings import pickle from django.conf i...
codeparrot/github-code-clean
#!/usr/bin/env python """ Copyright (c) 2006-2013 sqlmap developers (http://sqlmap.org/) See the file 'doc/COPYING' for copying permission """ import cookielib import glob import inspect import logging import os import re import socket import string import sys import threading import time import urllib2 import urlpar...
codeparrot/github-code-clean
# pylint: disable-msg=W0401,W0511,W0611,W0612,W0614,R0201,E1102 """Tests suite for MaskedArray & subclassing. :author: Pierre Gerard-Marchant :contact: pierregm_at_uga_dot_edu """ from __future__ import division, absolute_import, print_function __author__ = "Pierre GF Gerard-Marchant" import warnings import sys impo...
codeparrot/github-code-clean
from __future__ import with_statement from itertools import chain import datetime import sys import warnings import time import threading import time as mod_time from redis._compat import (b, basestring, bytes, imap, iteritems, iterkeys, itervalues, izip, long, nativestr, unicode, ...
codeparrot/github-code-clean
# -*- coding: utf-8 -*- from typing import Callable, Iterator, List, Optional, Tuple, Union, Any, Iterable from textwrap import dedent, fill from datetime import datetime import warnings import time from numpy import dot, einsum, log, exp, zeros, arange, multiply, ndarray import numpy as np from scipy.linalg import so...
codeparrot/github-code-clean
########################################################### # # Copyright (c) 2005, Southpaw Technology # All Rights Reserved # # PROPRIETARY INFORMATION. This software is proprietary to # Southpaw Technology, and is not to be reproduced, transmitted, # or disclosed in any way without written permi...
codeparrot/github-code-clean
"""cs1graphics.py Copyright 2008-2014, David Letscher, Michael H. Goldwasser, Christopher Porter Go to www.cs1graphics.org for more information. This is Version 1.2 multithreaded release (23 July 2014) """ # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General ...
codeparrot/github-code-clean
#!/usr/bin/env python # This file is part of nexdatas - Tango Server for NeXus data writer # # Copyright (C) 2012-2017 DESY, Jan Kotanski <jkotan@mail.desy.de> # # nexdatas is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the ...
codeparrot/github-code-clean
# coding=utf-8 """Series classes.""" from __future__ import unicode_literals import copy import datetime import glob import logging import os.path import shutil import stat import traceback import warnings from builtins import map from builtins import str from collections import ( namedtuple, ) from itertools imp...
codeparrot/github-code-clean
#!/usr/bin/env python # -*- coding: utf-8 -*- """ It generates the list of allowed candidate fusion genes. This list is hard coded in here and it is manually curated from TCGA database (https://tcga-data.nci.nih.gov/tcga/ ). Author: Daniel Nicorici, Daniel.Nicorici@gmail.com Copyright (c) 2009-2021 Daniel Nicorici ...
codeparrot/github-code-clean
# Copyright (c) 2010-2012 OpenStack, LLC. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to ...
codeparrot/github-code-clean
#! /usr/bin/python import sys import logging import os import re import traceback import types import socket import ConfigParser from StringIO import StringIO import libxml2 import shutil import pwd import getpass import copy import time import datetime import nfsutils import basedefs import output_messages import com...
codeparrot/github-code-clean
# -*- coding: utf-8 -*- # Copyright 2022 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or...
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
# -*- coding: utf-8 -*- """ Sahana Eden GIS Model @copyright: 2009-2015 (c) Sahana Software Foundation @license: MIT Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without ...
codeparrot/github-code-clean
# coding=utf-8 # Author: Nic Wolfe <nic@wolfeden.ca> # URL: https://sickrage.github.io # # This file is part of SickRage. # # SickRage 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 Li...
codeparrot/github-code-clean
"""Classes and functions used by the OGGM workflow""" # Builtins import glob import os import tempfile import gzip import json import time import random import shutil import tarfile import sys import signal import datetime import logging import pickle import warnings import itertools from collections import OrderedDic...
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 _surface import chimera try: import chimera.runCommand except: pass from VolumePath import markerset as ms try: from VolumePath import Marker_Set, Link new_marker_set=Marker_Set except: from VolumePath import volume_path_dialog d= volume_path_dialog(True) new_marker_set= d.new_marker_set marker_set...
codeparrot/github-code-clean
# Copyright 2017 The Sonnet 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 l...
codeparrot/github-code-clean
""" ======================================================== Hierarchical clustering (:mod:`scipy.cluster.hierarchy`) ======================================================== .. currentmodule:: scipy.cluster.hierarchy These functions cut hierarchical clusterings into flat clusterings or find the roots of the forest f...
codeparrot/github-code-clean
""" String transformers that can split and merge strings. """ from abc import ABC, abstractmethod from collections import defaultdict from dataclasses import dataclass import re from typing import ( Any, Callable, ClassVar, Collection, Dict, Iterable, Iterator, List, Optional, Se...
codeparrot/github-code-clean
#!/usr/bin/env python # encoding: utf-8 """ pyQms ----- Python module for fast and accurate mass spectrometry data quantification :license: MIT, see LICENSE.txt for more details Authors: * Leufken, J. * Niehues, A. * Sarin, L.P. * Hippler, M. * Leidel, S.A...
codeparrot/github-code-clean
# -*- coding: utf-8 -*- # common_cv.py # Copyright (c) 20012-2016, Carlos Jaramillo # Produced at the Laboratory for Robotics and Intelligent Systems of the City College of New York # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that...
codeparrot/github-code-clean
import json from exceptions import Exception import logging import re import datetime import requests from datetime import timedelta from django.db.models.signals import pre_save, post_save, pre_delete from django.dispatch import receiver from django.core.urlresolvers import reverse from django.utils.translation impo...
codeparrot/github-code-clean
# # Module parse tree node # from __future__ import absolute_import import cython cython.declare(Naming=object, Options=object, PyrexTypes=object, TypeSlots=object, error=object, warning=object, py_object_type=object, UtilityCode=object, EncodedString=object) import json import os imp...
codeparrot/github-code-clean
# -*- coding: utf-8 -*- # Copyright 2022 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or...
codeparrot/github-code-clean