text
stringlengths
5.09k
178k
domain
stringclasses
106 values
#!/usr/bin/env python # -*- coding: utf-8 -*- # CAVEAT UTILITOR # # This file was automatically generated by Grako. # # https://pypi.python.org/pypi/grako/ # # Any changes you make to it will be overwritten the next time # the file is generated. from __future__ import print_function, division, absolute_import, un...
codeparrot/github-code-clean
""" This module defines the majority of geoplot functions, including all plot types. """ import geopandas as gpd import matplotlib.pyplot as plt import matplotlib as mpl import numpy as np from cartopy.feature import ShapelyFeature import cartopy.crs as ccrs import geoplot.crs as gcrs from cartopy.mpl.geoaxes import G...
codeparrot/github-code-clean
# encoding: utf-8 # module builtins # from (built-in) # by generator 1.135 """ Built-in functions, exceptions, and other objects. Noteworthy: None is the `nil' object; Ellipsis represents `...' in slices. """ # no imports # Variables with simple values # definition of False omitted # definition of None omitted # defi...
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
# ---------------------------------------------------------------------------- # pyglet # Copyright (c) 2006-2008 Alex Holkner # Copyright (c) 2008-2021 pyglet contributors # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the follo...
codeparrot/github-code-clean
import itertools import six import string from datetime import datetime as dt, timedelta as dtd import numpy as np import pandas as pd import pytest from dateutil.rrule import rrule, DAILY from mock import Mock, patch from pandas import DataFrame, Series, DatetimeIndex, MultiIndex, read_csv, date_range, concat try: ...
codeparrot/github-code-clean
############################################################################ # # Copyright (C) 2015 The Qt Company Ltd. # Contact: http://www.qt.io/licensing # # This file is part of Qt Creator. # # Commercial License Usage # Licensees holding valid commercial Qt licenses may use this file in # accordance with the comm...
codeparrot/github-code-clean
""" Second quantization operators and states for bosons. This follow the formulation of Fetter and Welecka, "Quantum Theory of Many-Particle Systems." """ from collections import defaultdict from sympy import (Add, Basic, cacheit, Dummy, Expr, Function, I, KroneckerDelta, Mul, Pow, S, sqrt, Symbol,...
codeparrot/github-code-clean
# Licensed under a 3-clause BSD style license - see PYFITS.rst import math import os import re import time import pytest import numpy as np from numpy.testing import assert_equal from astropy.io import fits from astropy.io.fits.hdu.compressed import SUBTRACTIVE_DITHER_1, DITHER_SEED_CHECKSUM from astropy.utils.excep...
codeparrot/github-code-clean
# Copyright (c) 2016 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 applic...
codeparrot/github-code-clean
# coding: utf-8 from __future__ import unicode_literals import itertools import json import os.path import re import time import traceback from .common import InfoExtractor, SearchInfoExtractor from .subtitles import SubtitlesInfoExtractor from ..jsinterp import JSInterpreter from ..swfinterp import SWFInterpreter ...
codeparrot/github-code-clean
""" ==================================================== Chebyshev Series (:mod:`numpy.polynomial.chebyshev`) ==================================================== This module provides a number of objects (mostly functions) useful for dealing with Chebyshev series, including a `Chebyshev` class that encapsulates the us...
codeparrot/github-code-clean
# vim: tabstop=4 shiftwidth=4 softtabstop=4 # 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. # # Licensed under the Apache License, Version 2.0 (t...
codeparrot/github-code-clean
#!/usr/bin/env python3 # Copyright (c) 2015-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 block processing.""" import copy import struct import time from test_framework.blocktools import ...
codeparrot/github-code-clean
""" This is our testing framework. Goals: * it should be compatible with py.test and operate very similarly (or identically) * doesn't require any external dependencies * preferably all the functionality should be in this file only * no magic, just import the test file and execute the test functions, that's it * po...
codeparrot/github-code-clean
""" ----------------------------------------------------------------------- This module implements gamma- and zeta-related functions: * Bernoulli numbers * Factorials * The gamma function * Polygamma functions * Harmonic numbers * The Riemann zeta function * Constants related to these functions ----------------------...
codeparrot/github-code-clean
#!/usr/bin/python3 # -*- coding: utf-8 -*- '''Pychemqt, Chemical Engineering Process simulator Copyright (C) 2009-2017, Juan José Gómez Romera <jjgomera@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 Softwar...
codeparrot/github-code-clean
# -*- coding: utf-8 -*- """ Unit tests for LMS instructor-initiated background tasks helper functions. - Tests that CSV grade report generation works with unicode emails. - Tests all of the existing reports. """ import os import shutil import tempfile import urllib from contextlib import contextmanager from datetim...
codeparrot/github-code-clean
## @file # Routines for generating AutoGen.h and AutoGen.c # # Copyright (c) 2007 - 2018, Intel Corporation. All rights reserved.<BR> # This program and the accompanying materials # are licensed and made available under the terms and conditions of the BSD License # which accompanies this distribution. The full t...
codeparrot/github-code-clean
from __future__ import unicode_literals import datetime import os from decimal import Decimal from unittest import skipUnless from django import forms from django.core.exceptions import ( NON_FIELD_ERRORS, FieldError, ImproperlyConfigured, ) from django.core.files.uploadedfile import SimpleUploadedFile from djang...
codeparrot/github-code-clean
from __future__ import print_function, division, absolute_import import os import warnings import sys import itertools import copy from abc import ABCMeta, abstractmethod # unittest only added in 3.4 self.subTest() if sys.version_info[0] < 3 or sys.version_info[1] < 4: import unittest2 as unittest else: import...
codeparrot/github-code-clean
"""Wrapper functions for Tcl/Tk. Tkinter provides classes which allow the display, positioning and control of widgets. Toplevel widgets are Tk and Toplevel. Other widgets are Frame, Label, Entry, Text, Canvas, Button, Radiobutton, Checkbutton, Scale, Listbox, Scrollbar, OptionMenu, Spinbox LabelFrame and PanedWindow. ...
codeparrot/github-code-clean
#!/usr/bin/python """ Classes and functions for fitting the diffusion kurtosis model """ from __future__ import division, print_function, absolute_import import numpy as np import scipy.optimize as opt import dipy.core.sphere as dps from dipy.reconst.dti import (TensorFit, mean_diffusivity, ...
codeparrot/github-code-clean
#!/usr/bin/python """ This module implements the Advaced Forensics File Format 4 (AFF4). The module is divided into two parts, the first is the low level interface to AFFObject objects. These objects form the basic building blocks for all AFF4 components. The high level interface contains an API for putting the low l...
codeparrot/github-code-clean
#!/usr/bin/python # -*- encoding: utf-8; py-indent-offset: 4 -*- # +------------------------------------------------------------------+ # | ____ _ _ __ __ _ __ | # | / ___| |__ ___ ___| | __ | \/ | |/ / | # | | | | '_ \ / _ \/ __| |/ /...
codeparrot/github-code-clean
#!/usr/bin/env python # Solver statistics dialog # # File: solverdialog.py # Author: Sven Duscha (duscha@astron.nl) # Date: 2010-08-05 # Last change; 2012-09-27 # # # Import import sys, os, random import lofar.bbs.solverquery as sq import lofar.bbs.plotwindow #import solverquery as sq...
codeparrot/github-code-clean
############################################################################## # Copyright (c) 2013-2017, Lawrence Livermore National Security, LLC. # Produced at the Lawrence Livermore National Laboratory. # # This file is part of Spack. # Created by Todd Gamblin, tgamblin@llnl.gov, All rights reserved. # LLNL-CODE-64...
codeparrot/github-code-clean
import functools import itertools import logging import operator import re import urlparse import warnings from datetime import datetime import pytz from dirtyfields import DirtyFieldsMixin from django.apps import apps from django.contrib.contenttypes.fields import GenericRelation from django.contrib.contenttypes.mode...
codeparrot/github-code-clean
from ..broker import Broker class JobBroker(Broker): controller = "jobs" def index(self, **kwargs): """Lists the available jobs. Any of the inputs listed may be be used to narrow the list; other inputs will be ignored. Of the various ways to query lists, using this method is most efficient. ...
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
""" import sys Building and world design commands """ import re from django.conf import settings from django.db.models import Q from evennia.objects.models import ObjectDB from evennia.locks.lockhandler import LockException from evennia.commands.default.muxcommand import MuxCommand from evennia.commands.cmdhandler im...
codeparrot/github-code-clean
""" Perform Levenberg-Marquardt least-squares minimization, based on MINPACK-1. AUTHORS The original version of this software, called LMFIT, was written in FORTRAN as part of the MINPACK-1 package by XXX. Craig Markwardt converted the FORTRAN code to IDL. The information for the IDL version is: ...
codeparrot/github-code-clean
#!/usr/bin/env python # Copyright 2013 the V8 project authors. 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...
codeparrot/github-code-clean
#!/usr/bin/python # # 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 list of ...
codeparrot/github-code-clean
# # File: courseware/capa/responsetypes.py # """ Problem response evaluation. Handles checking of student responses, of a variety of types. Used by capa_problem.py """ # standard library imports import abc import cgi import inspect import json import logging import html5lib import numbers import numpy import os fr...
codeparrot/github-code-clean
""" Tests Views of the application """ import unittest import uuid from biblib.models import User, Library, Permissions, MutableDict from sqlalchemy.exc import IntegrityError from sqlalchemy.orm.exc import NoResultFound from biblib.views import UserView, LibraryView, DocumentView, PermissionView, \ BaseView, Trans...
codeparrot/github-code-clean
# -*- coding: future_fstrings -*- # # Copyright 2019 Gianluca Frison, Dimitris Kouzoupis, Robin Verschueren, # Andrea Zanelli, Niels van Duijkeren, Jonathan Frey, Tommaso Sartor, # Branimir Novoselnik, Rien Quirynen, Rezart Qelibari, Dang Doan, # Jonas Koenemann, Yutao Chen, Tobias Schöls, Jonas Schlagenhauf, Moritz Di...
codeparrot/github-code-clean
#!/usr/bin/env python3 from reporter.connections import RedcapInstance from reporter.application_abstract_reports.redcap.percentage_complete import ( RedcapPercentageCompleteReport, ) from reporter.application_abstract_reports.redcap.withdrawn_or_excluded_with_data import ( RedcapWithdrawnOrExcludedWithDataRep...
codeparrot/github-code-clean
# coding=utf-8 # 上面的程式內容編碼必須在程式的第一或者第二行才會有作用 ################# (1) 模組導入區 # 導入 cherrypy 模組, 為了在 OpenShift 平台上使用 cherrypy 模組, 必須透過 setup.py 安裝 import cherrypy # 導入 Python 內建的 os 模組, 因為 os 模組為 Python 內建, 所以無需透過 setup.py 安裝 import os # 導入 random 模組 import random import math from cherrypy.lib.static import serve_file # ...
codeparrot/github-code-clean
import itertools import sys from peewee import ModelQueryResultWrapper from peewee import NaiveQueryResultWrapper from playhouse.tests.base import ModelTestCase from playhouse.tests.base import skip_test_if from playhouse.tests.base import test_db from playhouse.tests.models import * class TestQueryResultWrapper(Mod...
codeparrot/github-code-clean
# -*- coding: utf-8 -*- # vim: foldmarker=[[[,]]]:foldmethod=marker from __future__ import absolute_import, division, print_function import os import textwrap import pprint import logging from copy import deepcopy from io import StringIO import unittest # Python 2 does not yet have `mock` which was a separate package...
codeparrot/github-code-clean
## pylint: disable=C0103,R0902,R0904,R0914,C0302 """ All shell elements are defined in this file. This includes: * CTRIA3 * CTRIA6 * CSHEAR * CQUAD * CQUAD4 * CQUAD8 * CQUADR * CPLTSN3 * CPLSTN4 * CPLSTN6 * CPLSTN8 All tris are TriShell, ShellElement, and Element objects. All quads are QuadShell, Shell...
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
# This file is dual licensed under the terms of the Apache License, Version # 2.0, and the BSD License. See the LICENSE file in the root of this repository # for complete details. from __future__ import absolute_import, division, print_function import binascii import datetime import ipaddress import os import pytest...
codeparrot/github-code-clean
## -*- coding: utf-8 -*- """ S3XML Toolkit @see: U{B{I{S3XRC}} <http://eden.sahanafoundation.org/wiki/S3XRC>} @requires: U{B{I{gluon}} <http://web2py.com>} @requires: U{B{I{lxml}} <http://codespeak.net/lxml>} @copyright: 2009-2015 (c) Sahana Software Foundation @license: MIT Permission is h...
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
""" Misc tools for implementing data structures """ import re import collections import numbers import codecs import csv import types from datetime import datetime, timedelta from functools import partial from numpy.lib.format import read_array, write_array import numpy as np import pandas as pd import pandas.algos ...
codeparrot/github-code-clean
from collections import OrderedDict import lasagne import lasagne.layers as L import lasagne.nonlinearities as nl import numpy as np import theano import theano.tensor as T from lasagne import init from . import layers_theano as LT def build_bilinear_net(input_shapes, X_var=None, U_var=None, X_diff_var=None, axis=1...
codeparrot/github-code-clean
# -*- coding: utf-8 -*- import os import cv2 import sys import json import time import numpy import socket import getopt import logging import datetime import StringIO import threading import traceback import subprocess from PIL import Image from SocketServer import ThreadingMixIn, BaseRequestHandler, TCPServer from ...
codeparrot/github-code-clean
# Copyright (C) 2015-2018 YouCompleteMe contributors # # This file is part of YouCompleteMe. # # YouCompleteMe 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 opt...
codeparrot/github-code-clean
############################################################################ # # Copyright (C) 2015 The Qt Company Ltd. # Contact: http://www.qt.io/licensing # # This file is part of Qt Creator. # # Commercial License Usage # Licensees holding valid commercial Qt licenses may use this file in # accordance with the comm...
codeparrot/github-code-clean
import logging import os import shutil import subprocess import unittest from typing import List, Optional, Union from unittest import mock import nbformat import pandas as pd import pytest from click.testing import CliRunner, Result from nbconvert.preprocessors import ExecutePreprocessor from nbformat import Notebook...
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
from datetime import datetime, timedelta import operator from textwrap import dedent import warnings import numpy as np from pandas._libs import ( Timedelta, algos as libalgos, index as libindex, join as libjoin, lib, tslibs) from pandas._libs.lib import is_datetime_array import pandas.compat as compat from p...
codeparrot/github-code-clean
## @file # This file is used to define checkpoints used by ECC tool # # Copyright (c) 2008 - 2017, Intel Corporation. All rights reserved.<BR> # This program and the accompanying materials # are licensed and made available under the terms and conditions of the BSD License # which accompanies this distribution. T...
codeparrot/github-code-clean
# -*- coding: utf-8 -*- """ Resource Import Tools @copyright: 2011-13 (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
# Copyright (C) 2015 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
# 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
# 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 time import time from base64 import b16encode from functools import partial from operator import __eq__, __ne__, __lt__, __le__, __gt__, __ge__ from warnings import warn as _warn from six import ( integer_types as _integer_types, text_type as _text_type, PY3 as _PY3) from OpenSSL._util import ( f...
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
# Copyright (c) 2010 Citrix Systems, 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 applicab...
codeparrot/github-code-clean
#! coding:utf-8 """ compiler tests. These tests are among the very first that were written when SQLAlchemy began in 2005. As a result the testing style here is very dense; it's an ongoing job to break these into much smaller tests with correct pep8 styling and coherent test organization. """ import decimal from s...
codeparrot/github-code-clean
# This file is generated. Do not edit! Edit gherkin-python.razor instead. from collections import deque from .ast_builder import AstBuilder from .token_matcher import TokenMatcher from .errors import UnexpectedEOFException, UnexpectedTokenException, ParserException, CompositeParserException RULE_TYPE = [ 'None', ...
codeparrot/github-code-clean
# -*- coding: utf-8 -*- ''' Torrenter v2 plugin for XBMC/Kodi Copyright (C) 2012-2015 Vadim Skorba v1 - DiMartino v2 https://forums.tvaddons.ag/addon-releases/29224-torrenter-v2.html This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public L...
codeparrot/github-code-clean
# -*- coding: utf-8 -*- # Copyright (C) Duncan Macleod (2014-2020) # # This file is part of GWpy. # # GWpy 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)...
codeparrot/github-code-clean
# -*- coding: utf-8 -*- import array from collections import defaultdict, deque from datetime import datetime from functools import partial import json import logging from math import sqrt import msgpack import networkx as nx from psycopg2.extras import DateTimeTZRange import pytz import struct from typing import Any,...
codeparrot/github-code-clean
# planet_carrier.py # generates a planet_carrier to be used by the low_torque_transmission and high_torque_transmission. # created by charlyoleg on 2014/03/13 # # (C) Copyright 2014 charlyoleg # # This file is part of the Cnc25D Python package. # # Cnc25D is free software: you can redistribute it and/or modify # it u...
codeparrot/github-code-clean
# $HeadURL$ # $Id$ __version__ = "0.10-svn" __license__ = """ Mirage, a fast GTK+ Image Viewer Copyright 2007 Scott Horowitz <stonecrest@gmail.com> This file is part of Mirage. Mirage is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Fre...
codeparrot/github-code-clean
# -*- coding: utf-8 -*- # transformations.py # Copyright (c) 2006-2014, Christoph Gohlke # Copyright (c) 2006-2014, 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
# -*- coding: utf-8 -*- from __future__ import absolute_import from __future__ import print_function from typing import Any, Callable, Dict, Iterable, List, Mapping, Optional, Tuple, TypeVar, Text from mock import patch, MagicMock from django.http import HttpResponse from django.test import TestCase, override_setting...
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
# 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
#__docformat__ = "restructuredtext en" # ******NOTICE*************** # optimize.py module by Travis E. Oliphant # # You may copy and use this module as you see fit with no # guarantee implied provided you keep this notice in all copies. # *****END NOTICE************ # A collection of optimization algorithms. Version ...
codeparrot/github-code-clean
# -*- coding: utf-8 -*- # pylint: disable=bad-whitespace from freezegun import freeze_time from odoo.addons.account.tests.common import AccountTestInvoicingCommon from odoo.tests.common import Form from odoo.tests import tagged from odoo import fields, Command from odoo.exceptions import UserError, ValidationError @t...
codeparrot/github-code-clean
STATES = ( ('AK', 'Alaska'), ('AL', 'Alabama'), ('AR', 'Arkansas'), ('AZ', 'Arizona'), ('CA', 'California'), ('CO', 'Colorado'), ('CT', 'Connecticut'), ('DC', 'District of Columbia'), ('DE', 'Delaware'), ('FL', 'Florida'), ('GA', 'Georgia'), ('HI', 'Hawaii'), ('IA', '...
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 ...
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
#===- 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
# 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. """ This module contains classes that help to emulate xcodebuild behavior on top of other build systems, such as make and ninja. """ from __future__ import print_...
codeparrot/github-code-clean
# -*- coding: utf-8 -*- # Resource object code # # Created by: The Resource Compiler for PyQt5 (Qt v5.9.6) # # WARNING! All changes made in this file will be lost! from PyQt5 import QtCore qt_resource_data = b"\ \x00\x00\x06\xd1\ \x89\ \x50\x4e\x47\x0d\x0a\x1a\x0a\x00\x00\x00\x0d\x49\x48\x44\x52\x00\ \x00\x00\x1f\x0...
codeparrot/github-code-clean
# -*- coding: utf-8 -*- # Resource object code # # Created: do nov. 20 18:45:02 2014 # by: The Resource Compiler for PyQt (Qt v4.8.6) # # WARNING! All changes made in this file will be lost! from PyQt4 import QtCore qt_resource_data = "\ \x00\x00\x04\x13\ \x89\ \x50\x4e\x47\x0d\x0a\x1a\x0a\x00\x00\x00\x0d\x49\x...
codeparrot/github-code-clean
#!/usr/bin/env python # # ESP8266 & ESP32 ROM Bootloader Utility # Copyright (C) 2014-2016 Fredrik Ahlberg, Angus Gratton, Espressif Systems (Shanghai) PTE LTD, other contributors as noted. # https://github.com/espressif/esptool # # This program is free software; you can redistribute it and/or modify it under # the ter...
codeparrot/github-code-clean
# -*- coding: utf-8 -*- __author__ = 'zappyk' import os, re, sys, csv, time import argparse #, configparser import cv2, pytesseract from datetime import datetime from pdf2image import convert_from_path _version = '0.0.1' _project = 'pdf2img2txt' _description = ''' Capture text from PDF files by configuring square bo...
codeparrot/github-code-clean
# pylint: disable=no-member """ Unit tests for the Mixed Modulestore, with DDT for the various stores (Split, Draft, XML) """ import datetime import ddt import itertools import pymongo from collections import namedtuple from importlib import import_module from pytz import UTC from uuid import uuid4 # Mixed modulestor...
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
# # 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 # ...
codeparrot/github-code-clean
# Copyright 2018 The TensorFlow Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applica...
codeparrot/github-code-clean
# pylint:disable=abstract-method from collections import OrderedDict, defaultdict, ChainMap from archinfo import Endness from .misc.ux import deprecated import copy import re import logging from typing import Optional, Dict, Any, Tuple, List, Union import claripy l = logging.getLogger(name=__name__) # pycparser hac...
codeparrot/github-code-clean
import numpy as np from numpy import array, arange, newiter, all from numpy.compat import asbytes from numpy.testing import * import sys, warnings import warnings def iter_coords(i): ret = [] while not i.finished: ret.append(i.coords) i.iternext() return ret def iter_indices(i): ret =...
codeparrot/github-code-clean
# mysql/base.py # Copyright (C) 2005-2012 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 """Support for the MySQL database. Supported Versions and Features --------------------...
codeparrot/github-code-clean
#!/usr/bin/python # -*- coding: utf-8 -*- # --------------------------------------------------------------------------- # # # # Plugin for iSida Jabber Bot # # Copyright (C) diSabler <dsy@dsy....
codeparrot/github-code-clean
# Copyright (C) 2012 Nippon Telegraph and Telephone Corporation. # Copyright (C) 2012, 2013 Isaku Yamahata <yamahata at valinux co jp> # # 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 # # h...
codeparrot/github-code-clean
# This file is part of Androguard. # # Copyright (C) 2012, Anthony Desnos <desnos at t0t0.fr> # 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...
codeparrot/github-code-clean
#!/usr/bin/python # # (c) 2017, Dario Zanzico (git@dariozanzico.com) # GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) from __future__ import absolute_import, division, print_function __metaclass__ = type ANSIBLE_METADATA = {'status': ['preview'], 'suppor...
codeparrot/github-code-clean
#!/usr/bin/env python import filecmp import fileinput import os import re import signal import stat import time import glob import shutil import yaml from gppylib.commands.base import Command, ExecutionError, REMOTE from gppylib.commands.gp import chk_local_db_running from gppylib.db import dbconn from gppylib.gparra...
codeparrot/github-code-clean
# -*- coding: utf-8 -*- # #**************************************************************************************************************************** # TinyJSParser https://github.com/TmpName/TinyJSParser # # A basic JS interpreter in python, made for the Kodi addon Vstream https://github.com/Kodi-vStream/venom-xbmc...
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. # -----------------------------------------------------...
codeparrot/github-code-clean
<<<<<<< HEAD <<<<<<< HEAD """Tests for unix_events.py.""" import collections import errno import io import os import signal import socket import stat import sys import tempfile import threading import unittest from unittest import mock if sys.platform == 'win32': raise unittest.SkipTest('UNIX only') import asyn...
codeparrot/github-code-clean