id int64 0 458k | file_name stringlengths 4 119 | file_path stringlengths 14 227 | content stringlengths 24 9.96M | size int64 24 9.96M | language stringclasses 1
value | extension stringclasses 14
values | total_lines int64 1 219k | avg_line_length float64 2.52 4.63M | max_line_length int64 5 9.91M | alphanum_fraction float64 0 1 | repo_name stringlengths 7 101 | repo_stars int64 100 139k | repo_forks int64 0 26.4k | repo_open_issues int64 0 2.27k | repo_license stringclasses 12
values | repo_extraction_date stringclasses 433
values |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
38,300 | cli.py | phimpme_phimpme-generator/Phimpme/site-packages/coveralls/cli.py | #!/usr/bin/env python
"""Publish coverage results online via coveralls.io
Puts your coverage results on coveralls.io for everyone to see.
It makes custom report for data generated by coverage.py package and sends it to `json API`_ of coveralls.io service.
All python files in your coverage analysis are posted to this s... | 1,907 | Python | .py | 51 | 31.647059 | 117 | 0.691766 | phimpme/phimpme-generator | 1,026 | 2 | 3 | GPL-3.0 | 9/5/2024, 5:15:29 PM (Europe/Amsterdam) |
38,301 | api.py | phimpme_phimpme-generator/Phimpme/site-packages/coveralls/api.py | # coding: utf-8
import json
import logging
import os
import re
import coverage
import requests
import yaml
from sh import git
from .reporter import CoverallReporter
log = logging.getLogger('coveralls')
class CoverallsException(Exception):
pass
class Coveralls(object):
config_filename = '.coveralls.yml'
... | 5,788 | Python | .py | 139 | 29.611511 | 140 | 0.531106 | phimpme/phimpme-generator | 1,026 | 2 | 3 | GPL-3.0 | 9/5/2024, 5:15:29 PM (Europe/Amsterdam) |
38,302 | __init__.py | phimpme_phimpme-generator/Phimpme/site-packages/coveralls/__init__.py | # coding: utf-8
from .api import Coveralls
__all__ = ['api'] | 62 | Python | .py | 3 | 19.333333 | 26 | 0.655172 | phimpme/phimpme-generator | 1,026 | 2 | 3 | GPL-3.0 | 9/5/2024, 5:15:29 PM (Europe/Amsterdam) |
38,303 | reporter.py | phimpme_phimpme-generator/Phimpme/site-packages/coveralls/reporter.py | # coding: utf-8
import logging
import sys
from coverage.misc import NoSource, NotPython
from coverage.phystokens import source_encoding
from coverage.report import Reporter
log = logging.getLogger('coveralls')
class CoverallReporter(Reporter):
""" Custom coverage.py reporter for coveralls.io
"""
def re... | 2,500 | Python | .py | 60 | 31.266667 | 103 | 0.596296 | phimpme/phimpme-generator | 1,026 | 2 | 3 | GPL-3.0 | 9/5/2024, 5:15:29 PM (Europe/Amsterdam) |
38,304 | models.py | phimpme_phimpme-generator/Phimpme/site-packages/requests/models.py | # -*- coding: utf-8 -*-
"""
requests.models
~~~~~~~~~~~~~~~
This module contains the primary objects that power Requests.
"""
import collections
import logging
import datetime
from io import BytesIO, UnsupportedOperation
from .hooks import default_hooks
from .structures import CaseInsensitiveDict
from .auth import... | 24,872 | Python | .py | 613 | 29.854812 | 114 | 0.57604 | phimpme/phimpme-generator | 1,026 | 2 | 3 | GPL-3.0 | 9/5/2024, 5:15:29 PM (Europe/Amsterdam) |
38,305 | cookies.py | phimpme_phimpme-generator/Phimpme/site-packages/requests/cookies.py | # -*- coding: utf-8 -*-
"""
Compatibility code to be able to use `cookielib.CookieJar` with requests.
requests.utils imports from here, so be careful with imports.
"""
import time
import collections
from .compat import cookielib, urlparse, urlunparse, Morsel
try:
import threading
# grr, pyflakes: this fixes... | 16,277 | Python | .py | 357 | 37.210084 | 111 | 0.648408 | phimpme/phimpme-generator | 1,026 | 2 | 3 | GPL-3.0 | 9/5/2024, 5:15:29 PM (Europe/Amsterdam) |
38,306 | sessions.py | phimpme_phimpme-generator/Phimpme/site-packages/requests/sessions.py | # -*- coding: utf-8 -*-
"""
requests.session
~~~~~~~~~~~~~~~~
This module provides a Session object to manage and persist settings across
requests (cookies, auth, proxies).
"""
import os
from collections import Mapping
from datetime import datetime
from .compat import cookielib, OrderedDict, urljoin, urlparse, buil... | 19,367 | Python | .py | 427 | 35.437939 | 115 | 0.614616 | phimpme/phimpme-generator | 1,026 | 2 | 3 | GPL-3.0 | 9/5/2024, 5:15:29 PM (Europe/Amsterdam) |
38,307 | api.py | phimpme_phimpme-generator/Phimpme/site-packages/requests/api.py | # -*- coding: utf-8 -*-
"""
requests.api
~~~~~~~~~~~~
This module implements the Requests API.
:copyright: (c) 2012 by Kenneth Reitz.
:license: Apache2, see LICENSE for more details.
"""
from . import sessions
def request(method, url, **kwargs):
"""Constructs and sends a :class:`Request <Request>`.
Retur... | 4,333 | Python | .py | 81 | 48.777778 | 136 | 0.686921 | phimpme/phimpme-generator | 1,026 | 2 | 3 | GPL-3.0 | 9/5/2024, 5:15:29 PM (Europe/Amsterdam) |
38,308 | auth.py | phimpme_phimpme-generator/Phimpme/site-packages/requests/auth.py | # -*- coding: utf-8 -*-
"""
requests.auth
~~~~~~~~~~~~~
This module contains the authentication handlers for Requests.
"""
import os
import re
import time
import hashlib
import logging
from base64 import b64encode
from .compat import urlparse, str
from .cookies import extract_cookies_to_jar
from .utils import pars... | 6,173 | Python | .py | 153 | 31.124183 | 107 | 0.572863 | phimpme/phimpme-generator | 1,026 | 2 | 3 | GPL-3.0 | 9/5/2024, 5:15:29 PM (Europe/Amsterdam) |
38,309 | utils.py | phimpme_phimpme-generator/Phimpme/site-packages/requests/utils.py | # -*- coding: utf-8 -*-
"""
requests.utils
~~~~~~~~~~~~~~
This module provides utility functions that are used within Requests
that are also useful for external consumption.
"""
import cgi
import codecs
import collections
import io
import os
import platform
import re
import sys
import socket
import struct
from . i... | 19,004 | Python | .py | 483 | 32.00207 | 118 | 0.62099 | phimpme/phimpme-generator | 1,026 | 2 | 3 | GPL-3.0 | 9/5/2024, 5:15:29 PM (Europe/Amsterdam) |
38,310 | status_codes.py | phimpme_phimpme-generator/Phimpme/site-packages/requests/status_codes.py | # -*- coding: utf-8 -*-
from .structures import LookupDict
_codes = {
# Informational.
100: ('continue',),
101: ('switching_protocols',),
102: ('processing',),
103: ('checkpoint',),
122: ('uri_too_long', 'request_uri_too_long'),
200: ('ok', 'okay', 'all_ok', 'all_okay', 'all_good', '\\o/'... | 3,136 | Python | .py | 80 | 34.15 | 89 | 0.600197 | phimpme/phimpme-generator | 1,026 | 2 | 3 | GPL-3.0 | 9/5/2024, 5:15:29 PM (Europe/Amsterdam) |
38,311 | __init__.py | phimpme_phimpme-generator/Phimpme/site-packages/requests/__init__.py | # -*- coding: utf-8 -*-
# __
# /__) _ _ _ _ _/ _
# / ( (- (/ (/ (- _) / _)
# /
"""
requests HTTP library
~~~~~~~~~~~~~~~~~~~~~
Requests is an HTTP library, written in Python, for human beings. Basic GET
usage:
>>> import requests
>>> r = requests.get('http://python.org')
>>> r.sta... | 1,856 | Python | .py | 63 | 26.412698 | 77 | 0.658797 | phimpme/phimpme-generator | 1,026 | 2 | 3 | GPL-3.0 | 9/5/2024, 5:15:29 PM (Europe/Amsterdam) |
38,312 | hooks.py | phimpme_phimpme-generator/Phimpme/site-packages/requests/hooks.py | # -*- coding: utf-8 -*-
"""
requests.hooks
~~~~~~~~~~~~~~
This module provides the capabilities for the Requests hooks system.
Available hooks:
``response``:
The response generated from a Request.
"""
HOOKS = ['response']
def default_hooks():
hooks = {}
for event in HOOKS:
hooks[event] = []... | 820 | Python | .py | 28 | 23.535714 | 68 | 0.606452 | phimpme/phimpme-generator | 1,026 | 2 | 3 | GPL-3.0 | 9/5/2024, 5:15:29 PM (Europe/Amsterdam) |
38,313 | compat.py | phimpme_phimpme-generator/Phimpme/site-packages/requests/compat.py | # -*- coding: utf-8 -*-
"""
pythoncompat
"""
from .packages import charade as chardet
import sys
# -------
# Pythons
# -------
# Syntax sugar.
_ver = sys.version_info
#: Python 2.x?
is_py2 = (_ver[0] == 2)
#: Python 3.x?
is_py3 = (_ver[0] == 3)
#: Python 3.0.x
is_py30 = (is_py3 and _ver[1] == 0)
#: Python 3.1.... | 2,567 | Python | .py | 84 | 27.904762 | 132 | 0.672512 | phimpme/phimpme-generator | 1,026 | 2 | 3 | GPL-3.0 | 9/5/2024, 5:15:29 PM (Europe/Amsterdam) |
38,314 | exceptions.py | phimpme_phimpme-generator/Phimpme/site-packages/requests/exceptions.py | # -*- coding: utf-8 -*-
"""
requests.exceptions
~~~~~~~~~~~~~~~~~~~
This module contains the set of Requests' exceptions.
"""
class RequestException(IOError):
"""There was an ambiguous exception that occurred while handling your
request."""
class HTTPError(RequestException):
"""An HTTP error occurred... | 1,434 | Python | .py | 35 | 36.885714 | 73 | 0.714807 | phimpme/phimpme-generator | 1,026 | 2 | 3 | GPL-3.0 | 9/5/2024, 5:15:29 PM (Europe/Amsterdam) |
38,315 | certs.py | phimpme_phimpme-generator/Phimpme/site-packages/requests/certs.py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
"""
certs.py
~~~~~~~~
This module returns the preferred default CA certificate bundle.
If you are packaging Requests, e.g., for a Linux distribution or a managed
environment, you can change the definition of where() to return a separately
packaged CA bundle.
"""
import ... | 544 | Python | .py | 17 | 29.647059 | 76 | 0.707692 | phimpme/phimpme-generator | 1,026 | 2 | 3 | GPL-3.0 | 9/5/2024, 5:15:29 PM (Europe/Amsterdam) |
38,316 | adapters.py | phimpme_phimpme-generator/Phimpme/site-packages/requests/adapters.py | # -*- coding: utf-8 -*-
"""
requests.adapters
~~~~~~~~~~~~~~~~~
This module contains the transport adapters that Requests uses to define
and maintain connections.
"""
import socket
from .models import Response
from .packages.urllib3.poolmanager import PoolManager, proxy_from_url
from .packages.urllib3.response impo... | 14,269 | Python | .py | 304 | 35.296053 | 97 | 0.611932 | phimpme/phimpme-generator | 1,026 | 2 | 3 | GPL-3.0 | 9/5/2024, 5:15:29 PM (Europe/Amsterdam) |
38,317 | structures.py | phimpme_phimpme-generator/Phimpme/site-packages/requests/structures.py | # -*- coding: utf-8 -*-
"""
requests.structures
~~~~~~~~~~~~~~~~~~~
Data structures that power Requests.
"""
import os
import collections
from itertools import islice
class IteratorProxy(object):
"""docstring for IteratorProxy"""
def __init__(self, i):
self.i = i
# self.i = chain.from_iter... | 3,575 | Python | .py | 95 | 30.515789 | 75 | 0.604294 | phimpme/phimpme-generator | 1,026 | 2 | 3 | GPL-3.0 | 9/5/2024, 5:15:29 PM (Europe/Amsterdam) |
38,318 | eucjpprober.py | phimpme_phimpme-generator/Phimpme/site-packages/requests/packages/charade/eucjpprober.py | ######################## BEGIN LICENSE BLOCK ########################
# The Original Code is mozilla.org code.
#
# The Initial Developer of the Original Code is
# Netscape Communications Corporation.
# Portions created by the Initial Developer are Copyright (C) 1998
# the Initial Developer. All Rights Reserved.
... | 3,768 | Python | .py | 80 | 37.025 | 79 | 0.619956 | phimpme/phimpme-generator | 1,026 | 2 | 3 | GPL-3.0 | 9/5/2024, 5:15:29 PM (Europe/Amsterdam) |
38,319 | cp949prober.py | phimpme_phimpme-generator/Phimpme/site-packages/requests/packages/charade/cp949prober.py | ######################## BEGIN LICENSE BLOCK ########################
# The Original Code is mozilla.org code.
#
# The Initial Developer of the Original Code is
# Netscape Communications Corporation.
# Portions created by the Initial Developer are Copyright (C) 1998
# the Initial Developer. All Rights Reserved.
... | 1,826 | Python | .py | 40 | 41.85 | 77 | 0.711474 | phimpme/phimpme-generator | 1,026 | 2 | 3 | GPL-3.0 | 9/5/2024, 5:15:29 PM (Europe/Amsterdam) |
38,320 | langcyrillicmodel.py | phimpme_phimpme-generator/Phimpme/site-packages/requests/packages/charade/langcyrillicmodel.py | ######################## BEGIN LICENSE BLOCK ########################
# The Original Code is Mozilla Communicator client code.
#
# The Initial Developer of the Original Code is
# Netscape Communications Corporation.
# Portions created by the Initial Developer are Copyright (C) 1998
# the Initial Developer. All Ri... | 18,054 | Python | .py | 315 | 54.911111 | 71 | 0.582858 | phimpme/phimpme-generator | 1,026 | 2 | 3 | GPL-3.0 | 9/5/2024, 5:15:29 PM (Europe/Amsterdam) |
38,321 | sjisprober.py | phimpme_phimpme-generator/Phimpme/site-packages/requests/packages/charade/sjisprober.py | ######################## BEGIN LICENSE BLOCK ########################
# The Original Code is mozilla.org code.
#
# The Initial Developer of the Original Code is
# Netscape Communications Corporation.
# Portions created by the Initial Developer are Copyright (C) 1998
# the Initial Developer. All Rights Reserved.
... | 3,825 | Python | .py | 81 | 36.148148 | 79 | 0.604189 | phimpme/phimpme-generator | 1,026 | 2 | 3 | GPL-3.0 | 9/5/2024, 5:15:29 PM (Europe/Amsterdam) |
38,322 | sbcsgroupprober.py | phimpme_phimpme-generator/Phimpme/site-packages/requests/packages/charade/sbcsgroupprober.py | ######################## BEGIN LICENSE BLOCK ########################
# The Original Code is Mozilla Universal charset detector code.
#
# The Initial Developer of the Original Code is
# Netscape Communications Corporation.
# Portions created by the Initial Developer are Copyright (C) 2001
# the Initial Developer.... | 3,360 | Python | .py | 65 | 42.892308 | 80 | 0.698509 | phimpme/phimpme-generator | 1,026 | 2 | 3 | GPL-3.0 | 9/5/2024, 5:15:29 PM (Europe/Amsterdam) |
38,323 | euctwfreq.py | phimpme_phimpme-generator/Phimpme/site-packages/requests/packages/charade/euctwfreq.py | ######################## BEGIN LICENSE BLOCK ########################
# The Original Code is Mozilla Communicator client code.
#
# The Initial Developer of the Original Code is
# Netscape Communications Corporation.
# Portions created by the Initial Developer are Copyright (C) 1998
# the Initial Developer. All Rights R... | 34,872 | Python | .py | 422 | 81.464455 | 87 | 0.746545 | phimpme/phimpme-generator | 1,026 | 2 | 3 | GPL-3.0 | 9/5/2024, 5:15:29 PM (Europe/Amsterdam) |
38,324 | __main__.py | phimpme_phimpme-generator/Phimpme/site-packages/requests/packages/charade/__main__.py | '''
support ';python -m charade <file1> [file2] ...' package execution syntax (2.7+)
'''
from charade import charade_cli
charade_cli()
| 144 | Python | .py | 5 | 26 | 81 | 0.681481 | phimpme/phimpme-generator | 1,026 | 2 | 3 | GPL-3.0 | 9/5/2024, 5:15:29 PM (Europe/Amsterdam) |
38,325 | sbcharsetprober.py | phimpme_phimpme-generator/Phimpme/site-packages/requests/packages/charade/sbcharsetprober.py | ######################## BEGIN LICENSE BLOCK ########################
# The Original Code is Mozilla Universal charset detector code.
#
# The Initial Developer of the Original Code is
# Netscape Communications Corporation.
# Portions created by the Initial Developer are Copyright (C) 2001
# the Initial Developer.... | 4,913 | Python | .py | 110 | 33.290909 | 78 | 0.57328 | phimpme/phimpme-generator | 1,026 | 2 | 3 | GPL-3.0 | 9/5/2024, 5:15:29 PM (Europe/Amsterdam) |
38,326 | jisfreq.py | phimpme_phimpme-generator/Phimpme/site-packages/requests/packages/charade/jisfreq.py | ######################## BEGIN LICENSE BLOCK ########################
# The Original Code is Mozilla Communicator client code.
#
# The Initial Developer of the Original Code is
# Netscape Communications Corporation.
# Portions created by the Initial Developer are Copyright (C) 1998
# the Initial Developer. All Rights R... | 47,315 | Python | .py | 563 | 82.91119 | 98 | 0.754204 | phimpme/phimpme-generator | 1,026 | 2 | 3 | GPL-3.0 | 9/5/2024, 5:15:29 PM (Europe/Amsterdam) |
38,327 | gb2312freq.py | phimpme_phimpme-generator/Phimpme/site-packages/requests/packages/charade/gb2312freq.py | ######################## BEGIN LICENSE BLOCK ########################
# The Original Code is Mozilla Communicator client code.
#
# The Initial Developer of the Original Code is
# Netscape Communications Corporation.
# Portions created by the Initial Developer are Copyright (C) 1998
# the Initial Developer. All Rights R... | 36,011 | Python | .py | 466 | 76.113734 | 92 | 0.764681 | phimpme/phimpme-generator | 1,026 | 2 | 3 | GPL-3.0 | 9/5/2024, 5:15:29 PM (Europe/Amsterdam) |
38,328 | gb2312prober.py | phimpme_phimpme-generator/Phimpme/site-packages/requests/packages/charade/gb2312prober.py | ######################## BEGIN LICENSE BLOCK ########################
# The Original Code is mozilla.org code.
#
# The Initial Developer of the Original Code is
# Netscape Communications Corporation.
# Portions created by the Initial Developer are Copyright (C) 1998
# the Initial Developer. All Rights Reserved.
... | 1,722 | Python | .py | 38 | 41.842105 | 70 | 0.719309 | phimpme/phimpme-generator | 1,026 | 2 | 3 | GPL-3.0 | 9/5/2024, 5:15:29 PM (Europe/Amsterdam) |
38,329 | langthaimodel.py | phimpme_phimpme-generator/Phimpme/site-packages/requests/packages/charade/langthaimodel.py | ######################## BEGIN LICENSE BLOCK ########################
# The Original Code is Mozilla Communicator client code.
#
# The Initial Developer of the Original Code is
# Netscape Communications Corporation.
# Portions created by the Initial Developer are Copyright (C) 1998
# the Initial Developer. All Ri... | 11,475 | Python | .py | 194 | 57.005155 | 74 | 0.541219 | phimpme/phimpme-generator | 1,026 | 2 | 3 | GPL-3.0 | 9/5/2024, 5:15:29 PM (Europe/Amsterdam) |
38,330 | constants.py | phimpme_phimpme-generator/Phimpme/site-packages/requests/packages/charade/constants.py | ######################## BEGIN LICENSE BLOCK ########################
# The Original Code is Mozilla Universal charset detector code.
#
# The Initial Developer of the Original Code is
# Netscape Communications Corporation.
# Portions created by the Initial Developer are Copyright (C) 2001
# the Initial Developer.... | 1,374 | Python | .py | 35 | 36.971429 | 70 | 0.700977 | phimpme/phimpme-generator | 1,026 | 2 | 3 | GPL-3.0 | 9/5/2024, 5:15:29 PM (Europe/Amsterdam) |
38,331 | langgreekmodel.py | phimpme_phimpme-generator/Phimpme/site-packages/requests/packages/charade/langgreekmodel.py | ######################## BEGIN LICENSE BLOCK ########################
# The Original Code is Mozilla Communicator client code.
#
# The Initial Developer of the Original Code is
# Netscape Communications Corporation.
# Portions created by the Initial Developer are Copyright (C) 1998
# the Initial Developer. All Ri... | 12,853 | Python | .py | 218 | 56.756881 | 71 | 0.549481 | phimpme/phimpme-generator | 1,026 | 2 | 3 | GPL-3.0 | 9/5/2024, 5:15:29 PM (Europe/Amsterdam) |
38,332 | hebrewprober.py | phimpme_phimpme-generator/Phimpme/site-packages/requests/packages/charade/hebrewprober.py | ######################## BEGIN LICENSE BLOCK ########################
# The Original Code is Mozilla Universal charset detector code.
#
# The Initial Developer of the Original Code is
# Shy Shalom
# Portions created by the Initial Developer are Copyright (C) 2005
# the Initial Developer. All Rights Reser... | 13,642 | Python | .py | 260 | 45.807692 | 80 | 0.686113 | phimpme/phimpme-generator | 1,026 | 2 | 3 | GPL-3.0 | 9/5/2024, 5:15:29 PM (Europe/Amsterdam) |
38,333 | escsm.py | phimpme_phimpme-generator/Phimpme/site-packages/requests/packages/charade/escsm.py | ######################## BEGIN LICENSE BLOCK ########################
# The Original Code is mozilla.org code.
#
# The Initial Developer of the Original Code is
# Netscape Communications Corporation.
# Portions created by the Initial Developer are Copyright (C) 1998
# the Initial Developer. All Rights Reserved.
... | 8,081 | Python | .py | 224 | 32.522321 | 70 | 0.557601 | phimpme/phimpme-generator | 1,026 | 2 | 3 | GPL-3.0 | 9/5/2024, 5:15:29 PM (Europe/Amsterdam) |
38,334 | mbcsgroupprober.py | phimpme_phimpme-generator/Phimpme/site-packages/requests/packages/charade/mbcsgroupprober.py | ######################## BEGIN LICENSE BLOCK ########################
# The Original Code is Mozilla Universal charset detector code.
#
# The Initial Developer of the Original Code is
# Netscape Communications Corporation.
# Portions created by the Initial Developer are Copyright (C) 2001
# the Initial Developer.... | 2,021 | Python | .py | 51 | 34.921569 | 70 | 0.688391 | phimpme/phimpme-generator | 1,026 | 2 | 3 | GPL-3.0 | 9/5/2024, 5:15:29 PM (Europe/Amsterdam) |
38,335 | mbcharsetprober.py | phimpme_phimpme-generator/Phimpme/site-packages/requests/packages/charade/mbcharsetprober.py | ######################## BEGIN LICENSE BLOCK ########################
# The Original Code is Mozilla Universal charset detector code.
#
# The Initial Developer of the Original Code is
# Netscape Communications Corporation.
# Portions created by the Initial Developer are Copyright (C) 2001
# the Initial Developer.... | 3,354 | Python | .py | 76 | 34.039474 | 79 | 0.596685 | phimpme/phimpme-generator | 1,026 | 2 | 3 | GPL-3.0 | 9/5/2024, 5:15:29 PM (Europe/Amsterdam) |
38,336 | mbcssm.py | phimpme_phimpme-generator/Phimpme/site-packages/requests/packages/charade/mbcssm.py | ######################## BEGIN LICENSE BLOCK ########################
# The Original Code is mozilla.org code.
#
# The Initial Developer of the Original Code is
# Netscape Communications Corporation.
# Portions created by the Initial Developer are Copyright (C) 1998
# the Initial Developer. All Rights Reserved.
... | 20,183 | Python | .py | 522 | 32.151341 | 94 | 0.493429 | phimpme/phimpme-generator | 1,026 | 2 | 3 | GPL-3.0 | 9/5/2024, 5:15:29 PM (Europe/Amsterdam) |
38,337 | charsetgroupprober.py | phimpme_phimpme-generator/Phimpme/site-packages/requests/packages/charade/charsetgroupprober.py | ######################## BEGIN LICENSE BLOCK ########################
# The Original Code is Mozilla Communicator client code.
#
# The Initial Developer of the Original Code is
# Netscape Communications Corporation.
# Portions created by the Initial Developer are Copyright (C) 1998
# the Initial Developer. All R... | 3,897 | Python | .py | 99 | 29.080808 | 70 | 0.56871 | phimpme/phimpme-generator | 1,026 | 2 | 3 | GPL-3.0 | 9/5/2024, 5:15:29 PM (Europe/Amsterdam) |
38,338 | __init__.py | phimpme_phimpme-generator/Phimpme/site-packages/requests/packages/charade/__init__.py | ######################## BEGIN LICENSE BLOCK ########################
# 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 option) any late... | 2,286 | Python | .py | 54 | 35.037037 | 76 | 0.630336 | phimpme/phimpme-generator | 1,026 | 2 | 3 | GPL-3.0 | 9/5/2024, 5:15:29 PM (Europe/Amsterdam) |
38,339 | euckrprober.py | phimpme_phimpme-generator/Phimpme/site-packages/requests/packages/charade/euckrprober.py | ######################## BEGIN LICENSE BLOCK ########################
# The Original Code is mozilla.org code.
#
# The Initial Developer of the Original Code is
# Netscape Communications Corporation.
# Portions created by the Initial Developer are Copyright (C) 1998
# the Initial Developer. All Rights Reserved.
... | 1,717 | Python | .py | 38 | 41.710526 | 70 | 0.718731 | phimpme/phimpme-generator | 1,026 | 2 | 3 | GPL-3.0 | 9/5/2024, 5:15:29 PM (Europe/Amsterdam) |
38,340 | euckrfreq.py | phimpme_phimpme-generator/Phimpme/site-packages/requests/packages/charade/euckrfreq.py | ######################## BEGIN LICENSE BLOCK ########################
# The Original Code is Mozilla Communicator client code.
#
# The Initial Developer of the Original Code is
# Netscape Communications Corporation.
# Portions created by the Initial Developer are Copyright (C) 1998
# the Initial Developer. All Rights R... | 45,978 | Python | .py | 590 | 76.808475 | 92 | 0.772465 | phimpme/phimpme-generator | 1,026 | 2 | 3 | GPL-3.0 | 9/5/2024, 5:15:29 PM (Europe/Amsterdam) |
38,341 | chardistribution.py | phimpme_phimpme-generator/Phimpme/site-packages/requests/packages/charade/chardistribution.py | ######################## BEGIN LICENSE BLOCK ########################
# The Original Code is Mozilla Communicator client code.
#
# The Initial Developer of the Original Code is
# Netscape Communications Corporation.
# Portions created by the Initial Developer are Copyright (C) 1998
# the Initial Developer. All Ri... | 9,457 | Python | .py | 202 | 37.465347 | 81 | 0.629662 | phimpme/phimpme-generator | 1,026 | 2 | 3 | GPL-3.0 | 9/5/2024, 5:15:29 PM (Europe/Amsterdam) |
38,342 | langhebrewmodel.py | phimpme_phimpme-generator/Phimpme/site-packages/requests/packages/charade/langhebrewmodel.py | ######################## BEGIN LICENSE BLOCK ########################
# The Original Code is Mozilla Universal charset detector code.
#
# The Initial Developer of the Original Code is
# Simon Montagu
# Portions created by the Initial Developer are Copyright (C) 2005
# the Initial Developer. All Rights Re... | 11,519 | Python | .py | 196 | 56.632653 | 71 | 0.540529 | phimpme/phimpme-generator | 1,026 | 2 | 3 | GPL-3.0 | 9/5/2024, 5:15:29 PM (Europe/Amsterdam) |
38,343 | euctwprober.py | phimpme_phimpme-generator/Phimpme/site-packages/requests/packages/charade/euctwprober.py | ######################## BEGIN LICENSE BLOCK ########################
# The Original Code is mozilla.org code.
#
# The Initial Developer of the Original Code is
# Netscape Communications Corporation.
# Portions created by the Initial Developer are Copyright (C) 1998
# the Initial Developer. All Rights Reserved.
... | 1,717 | Python | .py | 38 | 41.710526 | 70 | 0.717872 | phimpme/phimpme-generator | 1,026 | 2 | 3 | GPL-3.0 | 9/5/2024, 5:15:29 PM (Europe/Amsterdam) |
38,344 | compat.py | phimpme_phimpme-generator/Phimpme/site-packages/requests/packages/charade/compat.py | ######################## BEGIN LICENSE BLOCK ########################
# Contributor(s):
# Ian Cordasco - port to Python
#
# 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
# versio... | 1,157 | Python | .py | 29 | 37.62069 | 69 | 0.675868 | phimpme/phimpme-generator | 1,026 | 2 | 3 | GPL-3.0 | 9/5/2024, 5:15:29 PM (Europe/Amsterdam) |
38,345 | langbulgarianmodel.py | phimpme_phimpme-generator/Phimpme/site-packages/requests/packages/charade/langbulgarianmodel.py | ######################## BEGIN LICENSE BLOCK ########################
# The Original Code is Mozilla Communicator client code.
#
# The Initial Developer of the Original Code is
# Netscape Communications Corporation.
# Portions created by the Initial Developer are Copyright (C) 1998
# the Initial Developer. All Ri... | 13,013 | Python | .py | 220 | 56.904545 | 71 | 0.553503 | phimpme/phimpme-generator | 1,026 | 2 | 3 | GPL-3.0 | 9/5/2024, 5:15:29 PM (Europe/Amsterdam) |
38,346 | codingstatemachine.py | phimpme_phimpme-generator/Phimpme/site-packages/requests/packages/charade/codingstatemachine.py | ######################## BEGIN LICENSE BLOCK ########################
# The Original Code is mozilla.org code.
#
# The Initial Developer of the Original Code is
# Netscape Communications Corporation.
# Portions created by the Initial Developer are Copyright (C) 1998
# the Initial Developer. All Rights Reserved.
... | 2,379 | Python | .py | 54 | 38.055556 | 74 | 0.658589 | phimpme/phimpme-generator | 1,026 | 2 | 3 | GPL-3.0 | 9/5/2024, 5:15:29 PM (Europe/Amsterdam) |
38,347 | big5freq.py | phimpme_phimpme-generator/Phimpme/site-packages/requests/packages/charade/big5freq.py | ######################## BEGIN LICENSE BLOCK ########################
# The Original Code is Mozilla Communicator client code.
#
# The Initial Developer of the Original Code is
# Netscape Communications Corporation.
# Portions created by the Initial Developer are Copyright (C) 1998
# the Initial Developer. All Rights R... | 82,594 | Python | .py | 920 | 88.698913 | 103 | 0.779635 | phimpme/phimpme-generator | 1,026 | 2 | 3 | GPL-3.0 | 9/5/2024, 5:15:29 PM (Europe/Amsterdam) |
38,348 | langhungarianmodel.py | phimpme_phimpme-generator/Phimpme/site-packages/requests/packages/charade/langhungarianmodel.py | ######################## BEGIN LICENSE BLOCK ########################
# The Original Code is Mozilla Communicator client code.
#
# The Initial Developer of the Original Code is
# Netscape Communications Corporation.
# Portions created by the Initial Developer are Copyright (C) 1998
# the Initial Developer. All Ri... | 12,761 | Python | .py | 218 | 56.344037 | 71 | 0.555671 | phimpme/phimpme-generator | 1,026 | 2 | 3 | GPL-3.0 | 9/5/2024, 5:15:29 PM (Europe/Amsterdam) |
38,349 | utf8prober.py | phimpme_phimpme-generator/Phimpme/site-packages/requests/packages/charade/utf8prober.py | ######################## BEGIN LICENSE BLOCK ########################
# The Original Code is mozilla.org code.
#
# The Initial Developer of the Original Code is
# Netscape Communications Corporation.
# Portions created by the Initial Developer are Copyright (C) 1998
# the Initial Developer. All Rights Reserved.
... | 2,728 | Python | .py | 66 | 33.69697 | 70 | 0.635503 | phimpme/phimpme-generator | 1,026 | 2 | 3 | GPL-3.0 | 9/5/2024, 5:15:29 PM (Europe/Amsterdam) |
38,350 | jpcntx.py | phimpme_phimpme-generator/Phimpme/site-packages/requests/packages/charade/jpcntx.py | ######################## BEGIN LICENSE BLOCK ########################
# The Original Code is Mozilla Communicator client code.
#
# The Initial Developer of the Original Code is
# Netscape Communications Corporation.
# Portions created by the Initial Developer are Copyright (C) 1998
# the Initial Developer. All Ri... | 19,328 | Python | .py | 202 | 89.574257 | 169 | 0.522994 | phimpme/phimpme-generator | 1,026 | 2 | 3 | GPL-3.0 | 9/5/2024, 5:15:29 PM (Europe/Amsterdam) |
38,351 | charsetprober.py | phimpme_phimpme-generator/Phimpme/site-packages/requests/packages/charade/charsetprober.py | ######################## BEGIN LICENSE BLOCK ########################
# The Original Code is Mozilla Universal charset detector code.
#
# The Initial Developer of the Original Code is
# Netscape Communications Corporation.
# Portions created by the Initial Developer are Copyright (C) 2001
# the Initial Developer. All R... | 1,902 | Python | .py | 51 | 33.490196 | 69 | 0.676087 | phimpme/phimpme-generator | 1,026 | 2 | 3 | GPL-3.0 | 9/5/2024, 5:15:29 PM (Europe/Amsterdam) |
38,352 | escprober.py | phimpme_phimpme-generator/Phimpme/site-packages/requests/packages/charade/escprober.py | ######################## BEGIN LICENSE BLOCK ########################
# The Original Code is mozilla.org code.
#
# The Initial Developer of the Original Code is
# Netscape Communications Corporation.
# Portions created by the Initial Developer are Copyright (C) 1998
# the Initial Developer. All Rights Reserved.
... | 3,273 | Python | .py | 78 | 32.320513 | 91 | 0.612142 | phimpme/phimpme-generator | 1,026 | 2 | 3 | GPL-3.0 | 9/5/2024, 5:15:29 PM (Europe/Amsterdam) |
38,353 | big5prober.py | phimpme_phimpme-generator/Phimpme/site-packages/requests/packages/charade/big5prober.py | ######################## BEGIN LICENSE BLOCK ########################
# The Original Code is Mozilla Communicator client code.
#
# The Initial Developer of the Original Code is
# Netscape Communications Corporation.
# Portions created by the Initial Developer are Copyright (C) 1998
# the Initial Developer. All Ri... | 1,726 | Python | .py | 38 | 41.947368 | 70 | 0.720238 | phimpme/phimpme-generator | 1,026 | 2 | 3 | GPL-3.0 | 9/5/2024, 5:15:29 PM (Europe/Amsterdam) |
38,354 | latin1prober.py | phimpme_phimpme-generator/Phimpme/site-packages/requests/packages/charade/latin1prober.py | ######################## BEGIN LICENSE BLOCK ########################
# The Original Code is Mozilla Universal charset detector code.
#
# The Initial Developer of the Original Code is
# Netscape Communications Corporation.
# Portions created by the Initial Developer are Copyright (C) 2001
# the Initial Developer.... | 5,387 | Python | .py | 126 | 36.34127 | 71 | 0.560649 | phimpme/phimpme-generator | 1,026 | 2 | 3 | GPL-3.0 | 9/5/2024, 5:15:29 PM (Europe/Amsterdam) |
38,355 | util.py | phimpme_phimpme-generator/Phimpme/site-packages/requests/packages/urllib3/util.py | # urllib3/util.py
# Copyright 2008-2013 Andrey Petrov and contributors (see CONTRIBUTORS.txt)
#
# This module is part of urllib3 and is released under
# the MIT License: http://www.opensource.org/licenses/mit-license.php
from base64 import b64encode
from binascii import hexlify, unhexlify
from collections import name... | 21,252 | Python | .py | 502 | 33.90239 | 105 | 0.633218 | phimpme/phimpme-generator | 1,026 | 2 | 3 | GPL-3.0 | 9/5/2024, 5:15:29 PM (Europe/Amsterdam) |
38,356 | _collections.py | phimpme_phimpme-generator/Phimpme/site-packages/requests/packages/urllib3/_collections.py | # urllib3/_collections.py
# Copyright 2008-2013 Andrey Petrov and contributors (see CONTRIBUTORS.txt)
#
# This module is part of urllib3 and is released under
# the MIT License: http://www.opensource.org/licenses/mit-license.php
from collections import MutableMapping
try:
from threading import RLock
except ImportE... | 3,111 | Python | .py | 77 | 32.155844 | 92 | 0.64129 | phimpme/phimpme-generator | 1,026 | 2 | 3 | GPL-3.0 | 9/5/2024, 5:15:29 PM (Europe/Amsterdam) |
38,357 | response.py | phimpme_phimpme-generator/Phimpme/site-packages/requests/packages/urllib3/response.py | # urllib3/response.py
# Copyright 2008-2013 Andrey Petrov and contributors (see CONTRIBUTORS.txt)
#
# This module is part of urllib3 and is released under
# the MIT License: http://www.opensource.org/licenses/mit-license.php
import logging
import zlib
import io
from .exceptions import DecodeError
from .packages.six ... | 10,537 | Python | .py | 246 | 31.821138 | 89 | 0.59599 | phimpme/phimpme-generator | 1,026 | 2 | 3 | GPL-3.0 | 9/5/2024, 5:15:29 PM (Europe/Amsterdam) |
38,358 | poolmanager.py | phimpme_phimpme-generator/Phimpme/site-packages/requests/packages/urllib3/poolmanager.py | # urllib3/poolmanager.py
# Copyright 2008-2013 Andrey Petrov and contributors (see CONTRIBUTORS.txt)
#
# This module is part of urllib3 and is released under
# the MIT License: http://www.opensource.org/licenses/mit-license.php
import logging
try: # Python 3
from urllib.parse import urljoin
except ImportError:
... | 8,976 | Python | .py | 199 | 35.909548 | 78 | 0.62262 | phimpme/phimpme-generator | 1,026 | 2 | 3 | GPL-3.0 | 9/5/2024, 5:15:29 PM (Europe/Amsterdam) |
38,359 | request.py | phimpme_phimpme-generator/Phimpme/site-packages/requests/packages/urllib3/request.py | # urllib3/request.py
# Copyright 2008-2013 Andrey Petrov and contributors (see CONTRIBUTORS.txt)
#
# This module is part of urllib3 and is released under
# the MIT License: http://www.opensource.org/licenses/mit-license.php
try:
from urllib.parse import urlencode
except ImportError:
from urllib import urlencod... | 5,874 | Python | .py | 112 | 41.348214 | 81 | 0.627181 | phimpme/phimpme-generator | 1,026 | 2 | 3 | GPL-3.0 | 9/5/2024, 5:15:29 PM (Europe/Amsterdam) |
38,360 | __init__.py | phimpme_phimpme-generator/Phimpme/site-packages/requests/packages/urllib3/__init__.py | # urllib3/__init__.py
# Copyright 2008-2013 Andrey Petrov and contributors (see CONTRIBUTORS.txt)
#
# This module is part of urllib3 and is released under
# the MIT License: http://www.opensource.org/licenses/mit-license.php
"""
urllib3 - Thread-safe connection pooling and re-using.
"""
__author__ = 'Andrey Petrov (a... | 1,701 | Python | .py | 47 | 32.914894 | 84 | 0.740718 | phimpme/phimpme-generator | 1,026 | 2 | 3 | GPL-3.0 | 9/5/2024, 5:15:29 PM (Europe/Amsterdam) |
38,361 | exceptions.py | phimpme_phimpme-generator/Phimpme/site-packages/requests/packages/urllib3/exceptions.py | # urllib3/exceptions.py
# Copyright 2008-2013 Andrey Petrov and contributors (see CONTRIBUTORS.txt)
#
# This module is part of urllib3 and is released under
# the MIT License: http://www.opensource.org/licenses/mit-license.php
## Base Exceptions
class HTTPError(Exception):
"Base exception used by this module."
... | 3,274 | Python | .py | 80 | 35.4625 | 79 | 0.699334 | phimpme/phimpme-generator | 1,026 | 2 | 3 | GPL-3.0 | 9/5/2024, 5:15:29 PM (Europe/Amsterdam) |
38,362 | connectionpool.py | phimpme_phimpme-generator/Phimpme/site-packages/requests/packages/urllib3/connectionpool.py | # urllib3/connectionpool.py
# Copyright 2008-2013 Andrey Petrov and contributors (see CONTRIBUTORS.txt)
#
# This module is part of urllib3 and is released under
# the MIT License: http://www.opensource.org/licenses/mit-license.php
import errno
import logging
from socket import error as SocketError, timeout as SocketT... | 25,347 | Python | .py | 544 | 35.119485 | 86 | 0.604516 | phimpme/phimpme-generator | 1,026 | 2 | 3 | GPL-3.0 | 9/5/2024, 5:15:29 PM (Europe/Amsterdam) |
38,363 | connection.py | phimpme_phimpme-generator/Phimpme/site-packages/requests/packages/urllib3/connection.py | # urllib3/connection.py
# Copyright 2008-2013 Andrey Petrov and contributors (see CONTRIBUTORS.txt)
#
# This module is part of urllib3 and is released under
# the MIT License: http://www.opensource.org/licenses/mit-license.php
import socket
from socket import timeout as SocketTimeout
try: # Python 3
from http.cli... | 3,386 | Python | .py | 88 | 29.079545 | 78 | 0.637389 | phimpme/phimpme-generator | 1,026 | 2 | 3 | GPL-3.0 | 9/5/2024, 5:15:29 PM (Europe/Amsterdam) |
38,364 | fields.py | phimpme_phimpme-generator/Phimpme/site-packages/requests/packages/urllib3/fields.py | # urllib3/fields.py
# Copyright 2008-2013 Andrey Petrov and contributors (see CONTRIBUTORS.txt)
#
# This module is part of urllib3 and is released under
# the MIT License: http://www.opensource.org/licenses/mit-license.php
import email.utils
import mimetypes
from .packages import six
def guess_content_type(filename... | 5,976 | Python | .py | 144 | 32.743056 | 136 | 0.6189 | phimpme/phimpme-generator | 1,026 | 2 | 3 | GPL-3.0 | 9/5/2024, 5:15:29 PM (Europe/Amsterdam) |
38,365 | filepost.py | phimpme_phimpme-generator/Phimpme/site-packages/requests/packages/urllib3/filepost.py | # urllib3/filepost.py
# Copyright 2008-2013 Andrey Petrov and contributors (see CONTRIBUTORS.txt)
#
# This module is part of urllib3 and is released under
# the MIT License: http://www.opensource.org/licenses/mit-license.php
import codecs
import mimetypes
from uuid import uuid4
from io import BytesIO
from .packages ... | 2,511 | Python | .py | 71 | 29.521127 | 85 | 0.670124 | phimpme/phimpme-generator | 1,026 | 2 | 3 | GPL-3.0 | 9/5/2024, 5:15:29 PM (Europe/Amsterdam) |
38,366 | ordered_dict.py | phimpme_phimpme-generator/Phimpme/site-packages/requests/packages/urllib3/packages/ordered_dict.py | # Backport of OrderedDict() class that runs on Python 2.4, 2.5, 2.6, 2.7 and pypy.
# Passes Python2.7's test suite and incorporates all the latest updates.
# Copyright 2009 Raymond Hettinger, released under the MIT License.
# http://code.activestate.com/recipes/576693/
try:
from thread import get_ident as _get_ide... | 8,936 | Python | .py | 219 | 31.579909 | 87 | 0.565007 | phimpme/phimpme-generator | 1,026 | 2 | 3 | GPL-3.0 | 9/5/2024, 5:15:29 PM (Europe/Amsterdam) |
38,367 | six.py | phimpme_phimpme-generator/Phimpme/site-packages/requests/packages/urllib3/packages/six.py | """Utilities for writing code that runs on Python 2 and 3"""
#Copyright (c) 2010-2011 Benjamin Peterson
#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 restriction, including without l... | 11,628 | Python | .py | 310 | 30.277419 | 81 | 0.62092 | phimpme/phimpme-generator | 1,026 | 2 | 3 | GPL-3.0 | 9/5/2024, 5:15:29 PM (Europe/Amsterdam) |
38,368 | _implementation.py | phimpme_phimpme-generator/Phimpme/site-packages/requests/packages/urllib3/packages/ssl_match_hostname/_implementation.py | """The match_hostname() function from Python 3.3.3, essential when using SSL."""
# Note: This file is under the PSF license as the code comes from the python
# stdlib. http://docs.python.org/3/license.html
import re
__version__ = '3.4.0.2'
class CertificateError(ValueError):
pass
def _dnsname_match(dn, host... | 3,778 | Python | .py | 89 | 34.52809 | 80 | 0.628369 | phimpme/phimpme-generator | 1,026 | 2 | 3 | GPL-3.0 | 9/5/2024, 5:15:29 PM (Europe/Amsterdam) |
38,369 | __init__.py | phimpme_phimpme-generator/Phimpme/site-packages/requests/packages/urllib3/packages/ssl_match_hostname/__init__.py | try:
# Python 3.2+
from ssl import CertificateError, match_hostname
except ImportError:
try:
# Backport of the function from a pypi module
from backports.ssl_match_hostname import CertificateError, match_hostname
except ImportError:
# Our vendored copy
from _implementatio... | 459 | Python | .py | 12 | 33.166667 | 81 | 0.730942 | phimpme/phimpme-generator | 1,026 | 2 | 3 | GPL-3.0 | 9/5/2024, 5:15:29 PM (Europe/Amsterdam) |
38,370 | pyopenssl.py | phimpme_phimpme-generator/Phimpme/site-packages/requests/packages/urllib3/contrib/pyopenssl.py | '''SSL with SNI-support for Python 2.
This needs the following packages installed:
* pyOpenSSL (tested with 0.13)
* ndg-httpsclient (tested with 0.3.2)
* pyasn1 (tested with 0.1.6)
To activate it call :func:`~urllib3.contrib.pyopenssl.inject_into_urllib3`.
This can be done in a ``sitecustomize`` module, or at any ot... | 12,036 | Python | .py | 298 | 27.778523 | 79 | 0.541831 | phimpme/phimpme-generator | 1,026 | 2 | 3 | GPL-3.0 | 9/5/2024, 5:15:29 PM (Europe/Amsterdam) |
38,371 | ntlmpool.py | phimpme_phimpme-generator/Phimpme/site-packages/requests/packages/urllib3/contrib/ntlmpool.py | # urllib3/contrib/ntlmpool.py
# Copyright 2008-2013 Andrey Petrov and contributors (see CONTRIBUTORS.txt)
#
# This module is part of urllib3 and is released under
# the MIT License: http://www.opensource.org/licenses/mit-license.php
"""
NTLM authenticating pool, contributed by erikcederstran
Issue #10, see: http://co... | 4,741 | Python | .py | 101 | 34.792079 | 77 | 0.578446 | phimpme/phimpme-generator | 1,026 | 2 | 3 | GPL-3.0 | 9/5/2024, 5:15:29 PM (Europe/Amsterdam) |
38,372 | result.py | phimpme_phimpme-generator/Phimpme/site-packages/nose/result.py | """
Test Result
-----------
Provides a TextTestResult that extends unittest's _TextTestResult to
provide support for error classes (such as the builtin skip and
deprecated classes), and hooks for plugins to take over or extend
reporting.
"""
import logging
try:
# 2.7+
from unittest.runner import _TextTestResu... | 6,691 | Python | .py | 177 | 27.949153 | 77 | 0.584964 | phimpme/phimpme-generator | 1,026 | 2 | 3 | GPL-3.0 | 9/5/2024, 5:15:29 PM (Europe/Amsterdam) |
38,373 | inspector.py | phimpme_phimpme-generator/Phimpme/site-packages/nose/inspector.py | """Simple traceback introspection. Used to add additional information to
AssertionErrors in tests, so that failure messages may be more informative.
"""
import inspect
import logging
import re
import sys
import textwrap
import tokenize
try:
from cStringIO import StringIO
except ImportError:
from StringIO impor... | 6,986 | Python | .py | 179 | 29.206704 | 78 | 0.581989 | phimpme/phimpme-generator | 1,026 | 2 | 3 | GPL-3.0 | 9/5/2024, 5:15:29 PM (Europe/Amsterdam) |
38,374 | __main__.py | phimpme_phimpme-generator/Phimpme/site-packages/nose/__main__.py | import sys
from nose.core import run_exit
if sys.argv[0].endswith('__main__.py'):
sys.argv[0] = '%s -m nose' % sys.executable
run_exit()
| 144 | Python | .py | 5 | 26.4 | 47 | 0.676471 | phimpme/phimpme-generator | 1,026 | 2 | 3 | GPL-3.0 | 9/5/2024, 5:15:29 PM (Europe/Amsterdam) |
38,375 | proxy.py | phimpme_phimpme-generator/Phimpme/site-packages/nose/proxy.py | """
Result Proxy
------------
The result proxy wraps the result instance given to each test. It
performs two functions: enabling extended error/failure reporting
and calling plugins.
As each result event is fired, plugins are called with the same event;
however, plugins are called with the nose.case.Test instance tha... | 6,879 | Python | .py | 160 | 34.3625 | 77 | 0.640412 | phimpme/phimpme-generator | 1,026 | 2 | 3 | GPL-3.0 | 9/5/2024, 5:15:29 PM (Europe/Amsterdam) |
38,376 | util.py | phimpme_phimpme-generator/Phimpme/site-packages/nose/util.py | """Utility functions and classes used by nose internally.
"""
import inspect
import itertools
import logging
import os
import re
import sys
import types
import unittest
from nose.pyversion import ClassType, TypeType, isgenerator
log = logging.getLogger('nose')
ident_re = re.compile(r'^[A-Za-z_][A-Za-z0-9_.]*$')
clas... | 19,896 | Python | .py | 557 | 27.204668 | 93 | 0.563312 | phimpme/phimpme-generator | 1,026 | 2 | 3 | GPL-3.0 | 9/5/2024, 5:15:29 PM (Europe/Amsterdam) |
38,377 | config.py | phimpme_phimpme-generator/Phimpme/site-packages/nose/config.py | import logging
import optparse
import os
import re
import sys
import ConfigParser
from optparse import OptionParser
from nose.util import absdir, tolist
from nose.plugins.manager import NoPlugins
from warnings import warn
log = logging.getLogger(__name__)
# not allowed in config files
option_blacklist = ['help', 'ver... | 25,144 | Python | .py | 590 | 31.518644 | 82 | 0.578769 | phimpme/phimpme-generator | 1,026 | 2 | 3 | GPL-3.0 | 9/5/2024, 5:15:29 PM (Europe/Amsterdam) |
38,378 | importer.py | phimpme_phimpme-generator/Phimpme/site-packages/nose/importer.py | """Implements an importer that looks only in specific path (ignoring
sys.path), and uses a per-path cache in addition to sys.modules. This is
necessary because test modules in different directories frequently have the
same names, which means that the first loaded would mask the rest when using
the builtin importer.
"""... | 5,984 | Python | .py | 147 | 30.197279 | 78 | 0.572116 | phimpme/phimpme-generator | 1,026 | 2 | 3 | GPL-3.0 | 9/5/2024, 5:15:29 PM (Europe/Amsterdam) |
38,379 | loader.py | phimpme_phimpme-generator/Phimpme/site-packages/nose/loader.py | """
Test Loader
-----------
nose's test loader implements the same basic functionality as its
superclass, unittest.TestLoader, but extends it by more liberal
interpretations of what may be a test and how a test may be named.
"""
from __future__ import generators
import logging
import os
import sys
import unittest
imp... | 25,489 | Python | .py | 564 | 31.624113 | 83 | 0.560779 | phimpme/phimpme-generator | 1,026 | 2 | 3 | GPL-3.0 | 9/5/2024, 5:15:29 PM (Europe/Amsterdam) |
38,380 | twistedtools.py | phimpme_phimpme-generator/Phimpme/site-packages/nose/twistedtools.py | """
Twisted integration
-------------------
This module provides a very simple way to integrate your tests with the
Twisted_ event loop.
You must import this module *before* importing anything from Twisted itself!
Example::
from nose.twistedtools import reactor, deferred
@deferred()
def test_resolve():
... | 5,525 | Python | .py | 143 | 29.692308 | 78 | 0.627017 | phimpme/phimpme-generator | 1,026 | 2 | 3 | GPL-3.0 | 9/5/2024, 5:15:29 PM (Europe/Amsterdam) |
38,381 | selector.py | phimpme_phimpme-generator/Phimpme/site-packages/nose/selector.py | """
Test Selection
--------------
Test selection is handled by a Selector. The test loader calls the
appropriate selector method for each object it encounters that it
thinks may be a test.
"""
import logging
import os
import unittest
from nose.config import Config
from nose.util import split_test_name, src, getfilenam... | 9,090 | Python | .py | 219 | 30.885845 | 80 | 0.590563 | phimpme/phimpme-generator | 1,026 | 2 | 3 | GPL-3.0 | 9/5/2024, 5:15:29 PM (Europe/Amsterdam) |
38,382 | exc.py | phimpme_phimpme-generator/Phimpme/site-packages/nose/exc.py | """Exceptions for marking tests as skipped or deprecated.
This module exists to provide backwards compatibility with previous
versions of nose where skipped and deprecated tests were core
functionality, rather than being provided by plugins. It may be
removed in a future release.
"""
from nose.plugins.skip import Skip... | 376 | Python | .py | 8 | 45.875 | 67 | 0.844687 | phimpme/phimpme-generator | 1,026 | 2 | 3 | GPL-3.0 | 9/5/2024, 5:15:29 PM (Europe/Amsterdam) |
38,383 | failure.py | phimpme_phimpme-generator/Phimpme/site-packages/nose/failure.py | import logging
import unittest
from traceback import format_tb
log = logging.getLogger(__name__)
__all__ = ['Failure']
class Failure(unittest.TestCase):
"""Unloadable or unexecutable test.
A Failure case is placed in a test suite to indicate the presence of a
test that could not be loaded or executed.... | 1,212 | Python | .py | 31 | 31.580645 | 78 | 0.623388 | phimpme/phimpme-generator | 1,026 | 2 | 3 | GPL-3.0 | 9/5/2024, 5:15:29 PM (Europe/Amsterdam) |
38,384 | case.py | phimpme_phimpme-generator/Phimpme/site-packages/nose/case.py | """nose unittest.TestCase subclasses. It is not necessary to subclass these
classes when writing tests; they are used internally by nose.loader.TestLoader
to create test cases from test functions and methods in test classes.
"""
import logging
import sys
import unittest
from inspect import isfunction
from nose.config i... | 13,171 | Python | .py | 338 | 29.449704 | 127 | 0.603022 | phimpme/phimpme-generator | 1,026 | 2 | 3 | GPL-3.0 | 9/5/2024, 5:15:29 PM (Europe/Amsterdam) |
38,385 | suite.py | phimpme_phimpme-generator/Phimpme/site-packages/nose/suite.py | """
Test Suites
-----------
Provides a LazySuite, which is a suite whose test list is a generator
function, and ContextSuite,which can run fixtures (setup/teardown
functions or methods) for the context that contains its tests.
"""
from __future__ import generators
import logging
import sys
import unittest
from nose.... | 22,234 | Python | .py | 542 | 30.169742 | 85 | 0.582235 | phimpme/phimpme-generator | 1,026 | 2 | 3 | GPL-3.0 | 9/5/2024, 5:15:29 PM (Europe/Amsterdam) |
38,386 | __init__.py | phimpme_phimpme-generator/Phimpme/site-packages/nose/__init__.py | from nose.core import collector, main, run, run_exit, runmodule
# backwards compatibility
from nose.exc import SkipTest, DeprecatedTest
from nose.tools import with_setup
__author__ = 'Jason Pellerin'
__versioninfo__ = (1, 3, 0)
__version__ = '.'.join(map(str, __versioninfo__))
__all__ = [
'main', 'run', 'run_exit... | 404 | Python | .py | 11 | 34.272727 | 63 | 0.683805 | phimpme/phimpme-generator | 1,026 | 2 | 3 | GPL-3.0 | 9/5/2024, 5:15:29 PM (Europe/Amsterdam) |
38,387 | pyversion.py | phimpme_phimpme-generator/Phimpme/site-packages/nose/pyversion.py | """
This module contains fixups for using nose under different versions of Python.
"""
import sys
import os
import types
import inspect
import nose.util
__all__ = ['make_instancemethod', 'cmp_to_key', 'sort_list', 'ClassType',
'TypeType', 'UNICODE_STRINGS', 'unbound_method', 'ismethod',
'bytes_']... | 5,158 | Python | .py | 129 | 33.100775 | 79 | 0.634658 | phimpme/phimpme-generator | 1,026 | 2 | 3 | GPL-3.0 | 9/5/2024, 5:15:29 PM (Europe/Amsterdam) |
38,388 | core.py | phimpme_phimpme-generator/Phimpme/site-packages/nose/core.py | """Implements nose test program and collector.
"""
from __future__ import generators
import logging
import os
import sys
import time
import unittest
from nose.config import Config, all_config_files
from nose.loader import defaultTestLoader
from nose.plugins.manager import PluginManager, DefaultPluginManager, \
R... | 12,819 | Python | .py | 286 | 34.702797 | 80 | 0.617233 | phimpme/phimpme-generator | 1,026 | 2 | 3 | GPL-3.0 | 9/5/2024, 5:15:29 PM (Europe/Amsterdam) |
38,389 | commands.py | phimpme_phimpme-generator/Phimpme/site-packages/nose/commands.py | """
nosetests setuptools command
----------------------------
The easiest way to run tests with nose is to use the `nosetests` setuptools
command::
python setup.py nosetests
This command has one *major* benefit over the standard `test` command: *all
nose plugins are supported*.
To configure the `nosetests` comman... | 5,935 | Python | .py | 134 | 34.686567 | 79 | 0.624567 | phimpme/phimpme-generator | 1,026 | 2 | 3 | GPL-3.0 | 9/5/2024, 5:15:29 PM (Europe/Amsterdam) |
38,390 | trivial.py | phimpme_phimpme-generator/Phimpme/site-packages/nose/tools/trivial.py | """Tools so trivial that tracebacks should not descend into them
We define the ``__unittest`` symbol in their module namespace so unittest will
skip them when printing tracebacks, just as it does for their corresponding
methods in ``unittest`` proper.
"""
import re
import unittest
__all__ = ['ok_', 'eq_']
# Use th... | 1,184 | Python | .py | 39 | 26.923077 | 79 | 0.647788 | phimpme/phimpme-generator | 1,026 | 2 | 3 | GPL-3.0 | 9/5/2024, 5:15:29 PM (Europe/Amsterdam) |
38,391 | nontrivial.py | phimpme_phimpme-generator/Phimpme/site-packages/nose/tools/nontrivial.py | """Tools not exempt from being descended into in tracebacks"""
import time
__all__ = ['make_decorator', 'raises', 'set_trace', 'timed', 'with_setup',
'TimeExpired', 'istest', 'nottest']
class TimeExpired(AssertionError):
pass
def make_decorator(func):
"""
Wraps a test decorator so as to pr... | 4,171 | Python | .py | 124 | 24.685484 | 76 | 0.570398 | phimpme/phimpme-generator | 1,026 | 2 | 3 | GPL-3.0 | 9/5/2024, 5:15:29 PM (Europe/Amsterdam) |
38,392 | __init__.py | phimpme_phimpme-generator/Phimpme/site-packages/nose/tools/__init__.py | """
Tools for testing
-----------------
nose.tools provides a few convenience functions to make writing tests
easier. You don't have to use them; nothing in the rest of nose depends
on any of these methods.
"""
from nose.tools.nontrivial import *
from nose.tools.nontrivial import __all__ as nontrivial_all
from nose.t... | 436 | Python | .py | 12 | 35.083333 | 71 | 0.752969 | phimpme/phimpme-generator | 1,026 | 2 | 3 | GPL-3.0 | 9/5/2024, 5:15:29 PM (Europe/Amsterdam) |
38,393 | pluginopts.py | phimpme_phimpme-generator/Phimpme/site-packages/nose/sphinx/pluginopts.py | """
Adds a sphinx directive that can be used to automatically document a plugin.
this::
.. autoplugin :: nose.plugins.foo
:plugin: Pluggy
produces::
.. automodule :: nose.plugins.foo
Options
-------
.. cmdoption :: --foo=BAR, --fooble=BAR
Do the foo thing to the new thing.
Plugin
----... | 5,638 | Python | .py | 151 | 30.304636 | 78 | 0.609106 | phimpme/phimpme-generator | 1,026 | 2 | 3 | GPL-3.0 | 9/5/2024, 5:15:29 PM (Europe/Amsterdam) |
38,394 | dtcompat.py | phimpme_phimpme-generator/Phimpme/site-packages/nose/ext/dtcompat.py | # Module doctest.
# Released to the public domain 16-Jan-2001, by Tim Peters (tim@python.org).
# Major enhancements and refactoring by:
# Jim Fulton
# Edward Loper
# Provided as-is; use at your own risk; no warranty; no promises; enjoy!
#
# Modified for inclusion in nose to provide support for DocFileTest in
#... | 88,063 | Python | .py | 1,929 | 36.300674 | 79 | 0.600949 | phimpme/phimpme-generator | 1,026 | 2 | 3 | GPL-3.0 | 9/5/2024, 5:15:29 PM (Europe/Amsterdam) |
38,395 | doctests.py | phimpme_phimpme-generator/Phimpme/site-packages/nose/plugins/doctests.py | """Use the Doctest plugin with ``--with-doctest`` or the NOSE_WITH_DOCTEST
environment variable to enable collection and execution of :mod:`doctests
<doctest>`. Because doctests are usually included in the tested package
(instead of being grouped into packages or modules of their own), nose only
looks for them in the ... | 17,488 | Python | .py | 390 | 33.289744 | 89 | 0.593429 | phimpme/phimpme-generator | 1,026 | 2 | 3 | GPL-3.0 | 9/5/2024, 5:15:29 PM (Europe/Amsterdam) |
38,396 | failuredetail.py | phimpme_phimpme-generator/Phimpme/site-packages/nose/plugins/failuredetail.py | """
This plugin provides assert introspection. When the plugin is enabled
and a test failure occurs, the traceback is displayed with extra context
around the line in which the exception was raised. Simple variable
substitution is also performed in the context output to provide more
debugging information.
"""
from... | 1,552 | Python | .py | 41 | 30.243902 | 78 | 0.644623 | phimpme/phimpme-generator | 1,026 | 2 | 3 | GPL-3.0 | 9/5/2024, 5:15:29 PM (Europe/Amsterdam) |
38,397 | attrib.py | phimpme_phimpme-generator/Phimpme/site-packages/nose/plugins/attrib.py | """Attribute selector plugin.
Oftentimes when testing you will want to select tests based on
criteria rather then simply by filename. For example, you might want
to run all tests except for the slow ones. You can do this with the
Attribute selector plugin by setting attributes on your test methods.
Here is an example:... | 9,660 | Python | .py | 237 | 29.696203 | 80 | 0.565074 | phimpme/phimpme-generator | 1,026 | 2 | 3 | GPL-3.0 | 9/5/2024, 5:15:29 PM (Europe/Amsterdam) |
38,398 | isolate.py | phimpme_phimpme-generator/Phimpme/site-packages/nose/plugins/isolate.py | """The isolation plugin resets the contents of sys.modules after running
each test module or package. Use it by setting ``--with-isolation`` or the
NOSE_WITH_ISOLATION environment variable.
The effects are similar to wrapping the following functions around the
import and execution of each test module::
def setup(... | 3,750 | Python | .py | 85 | 37.070588 | 76 | 0.687071 | phimpme/phimpme-generator | 1,026 | 2 | 3 | GPL-3.0 | 9/5/2024, 5:15:29 PM (Europe/Amsterdam) |
38,399 | deprecated.py | phimpme_phimpme-generator/Phimpme/site-packages/nose/plugins/deprecated.py | """
This plugin installs a DEPRECATED error class for the :class:`DeprecatedTest`
exception. When :class:`DeprecatedTest` is raised, the exception will be logged
in the deprecated attribute of the result, ``D`` or ``DEPRECATED`` (verbose)
will be output, and the exception will not be counted as an error or failure.
It ... | 1,551 | Python | .py | 38 | 32.210526 | 79 | 0.639442 | phimpme/phimpme-generator | 1,026 | 2 | 3 | GPL-3.0 | 9/5/2024, 5:15:29 PM (Europe/Amsterdam) |