id stringlengths 10 18 | content stringlengths 4 768k | max_stars_repo_path stringlengths 115 237 |
|---|---|---|
youtube-dl-bug-6 | #!/usr/bin/env python
# -*- coding: utf-8 -*-
from __future__ import unicode_literals
import base64
import calendar
import codecs
import contextlib
import ctypes
import datetime
import email.utils
import errno
import functools
import gzip
import itertools
import io
import json
import locale
import math
import operato... | BugsInPy/BugsInPy/temp/projects/youtube-dl/bug-6-fixed/youtube-dl/youtube_dl/utils.py,BugsInPy/BugsInPy/temp/projects/youtube-dl/bug-6-buggy/youtube-dl/youtube_dl/utils.py |
youtube-dl-bug-16 | from __future__ import unicode_literals
import io
import os
import subprocess
import time
import re
from .common import AudioConversionError, PostProcessor
from ..compat import (
compat_subprocess_get_DEVNULL,
)
from ..utils import (
encodeArgument,
encodeFilename,
get_exe_version,
is_outdated_v... | BugsInPy/BugsInPy/temp/projects/youtube-dl/bug-16-fixed/youtube-dl/youtube_dl/postprocessor/ffmpeg.py,BugsInPy/BugsInPy/temp/projects/youtube-dl/bug-16-buggy/youtube-dl/youtube_dl/postprocessor/ffmpeg.py |
youtube-dl-bug-39 | from __future__ import unicode_literals
import json
import re
import socket
from .common import InfoExtractor
from ..utils import (
compat_http_client,
compat_str,
compat_urllib_error,
compat_urllib_parse,
compat_urllib_request,
urlencode_postdata,
ExtractorError,
)
class FacebookIE(Inf... | BugsInPy/BugsInPy/temp/projects/youtube-dl/bug-39-fixed/youtube-dl/youtube_dl/extractor/facebook.py,BugsInPy/BugsInPy/temp/projects/youtube-dl/bug-39-buggy/youtube-dl/youtube_dl/extractor/facebook.py |
youtube-dl-bug-42 | import re
from .common import InfoExtractor
from ..utils import (
find_xpath_attr,
fix_xml_all_ampersand,
)
class ClipsyndicateIE(InfoExtractor):
_VALID_URL = r'http://www\.clipsyndicate\.com/video/play(list/\d+)?/(?P<id>\d+)'
_TEST = {
u'url': u'http://www.clipsyndicate.com/video/play/46293... | BugsInPy/BugsInPy/temp/projects/youtube-dl/bug-42-fixed/youtube-dl/youtube_dl/extractor/clipsyndicate.py,BugsInPy/BugsInPy/temp/projects/youtube-dl/bug-42-buggy/youtube-dl/youtube_dl/extractor/clipsyndicate.py |
youtube-dl-bug-14 | # 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... | BugsInPy/BugsInPy/temp/projects/youtube-dl/bug-14-fixed/youtube-dl/youtube_dl/extractor/youtube.py,BugsInPy/BugsInPy/temp/projects/youtube-dl/bug-14-buggy/youtube-dl/youtube_dl/extractor/youtube.py |
youtube-dl-bug-41 | #!/usr/bin/env python
# -*- coding: utf-8 -*-
import ctypes
import datetime
import email.utils
import errno
import gzip
import itertools
import io
import json
import locale
import math
import os
import pipes
import platform
import re
import ssl
import socket
import subprocess
import sys
import traceback
import zlib
t... | BugsInPy/BugsInPy/temp/projects/youtube-dl/bug-41-fixed/youtube-dl/youtube_dl/utils.py,BugsInPy/BugsInPy/temp/projects/youtube-dl/bug-41-buggy/youtube-dl/youtube_dl/utils.py |
youtube-dl-bug-9 | #!/usr/bin/env python
# -*- coding: utf-8 -*-
from __future__ import absolute_import, unicode_literals
import collections
import contextlib
import datetime
import errno
import fileinput
import io
import itertools
import json
import locale
import operator
import os
import platform
import re
import shutil
import subpro... | BugsInPy/BugsInPy/temp/projects/youtube-dl/bug-9-fixed/youtube-dl/youtube_dl/YoutubeDL.py,BugsInPy/BugsInPy/temp/projects/youtube-dl/bug-9-buggy/youtube-dl/youtube_dl/YoutubeDL.py |
youtube-dl-bug-26 | #!/usr/bin/env python
# -*- coding: utf-8 -*-
from __future__ import unicode_literals
import base64
import binascii
import calendar
import codecs
import contextlib
import ctypes
import datetime
import email.utils
import errno
import functools
import gzip
import io
import itertools
import json
import locale
import mat... | BugsInPy/BugsInPy/temp/projects/youtube-dl/bug-26-fixed/youtube-dl/youtube_dl/utils.py,BugsInPy/BugsInPy/temp/projects/youtube-dl/bug-26-buggy/youtube-dl/youtube_dl/utils.py |
youtube-dl-bug-33 | from __future__ import unicode_literals
import re
from .subtitles import SubtitlesInfoExtractor
from .common import ExtractorError
from ..utils import parse_iso8601
class DRTVIE(SubtitlesInfoExtractor):
_VALID_URL = r'http://(?:www\.)?dr\.dk/tv/se/(?:[^/]+/)+(?P<id>[\da-z-]+)(?:[/#?]|$)'
_TEST = {
... | BugsInPy/BugsInPy/temp/projects/youtube-dl/bug-33-fixed/youtube-dl/youtube_dl/extractor/drtv.py,BugsInPy/BugsInPy/temp/projects/youtube-dl/bug-33-buggy/youtube-dl/youtube_dl/extractor/drtv.py |
youtube-dl-bug-17 | #!/usr/bin/env python
# coding: utf-8
from __future__ import unicode_literals
import base64
import binascii
import calendar
import codecs
import contextlib
import ctypes
import datetime
import email.utils
import email.header
import errno
import functools
import gzip
import io
import itertools
import json
import local... | BugsInPy/BugsInPy/temp/projects/youtube-dl/bug-17-fixed/youtube-dl/youtube_dl/utils.py,BugsInPy/BugsInPy/temp/projects/youtube-dl/bug-17-buggy/youtube-dl/youtube_dl/utils.py |
youtube-dl-bug-21 | #!/usr/bin/env python
# coding: utf-8
from __future__ import unicode_literals
import base64
import binascii
import calendar
import codecs
import contextlib
import ctypes
import datetime
import email.utils
import errno
import functools
import gzip
import io
import itertools
import json
import locale
import math
import... | BugsInPy/BugsInPy/temp/projects/youtube-dl/bug-21-fixed/youtube-dl/youtube_dl/utils.py,BugsInPy/BugsInPy/temp/projects/youtube-dl/bug-21-buggy/youtube-dl/youtube_dl/utils.py |
youtube-dl-bug-19 | #!/usr/bin/env python
# coding: utf-8
from __future__ import absolute_import, unicode_literals
import collections
import contextlib
import copy
import datetime
import errno
import fileinput
import io
import itertools
import json
import locale
import operator
import os
import platform
import re
import shutil
import su... | BugsInPy/BugsInPy/temp/projects/youtube-dl/bug-19-fixed/youtube-dl/youtube_dl/YoutubeDL.py,BugsInPy/BugsInPy/temp/projects/youtube-dl/bug-19-buggy/youtube-dl/youtube_dl/YoutubeDL.py |
youtube-dl-bug-37 | #!/usr/bin/env python
# -*- coding: utf-8 -*-
import calendar
import contextlib
import ctypes
import datetime
import email.utils
import errno
import getpass
import gzip
import itertools
import io
import json
import locale
import math
import os
import pipes
import platform
import re
import ssl
import socket
import stru... | BugsInPy/BugsInPy/temp/projects/youtube-dl/bug-37-fixed/youtube-dl/youtube_dl/utils.py,BugsInPy/BugsInPy/temp/projects/youtube-dl/bug-37-buggy/youtube-dl/youtube_dl/utils.py |
youtube-dl-bug-10 | #!/usr/bin/env python
# -*- coding: utf-8 -*-
from __future__ import unicode_literals
import calendar
import codecs
import contextlib
import ctypes
import datetime
import email.utils
import errno
import functools
import gzip
import itertools
import io
import json
import locale
import math
import operator
import os
im... | BugsInPy/BugsInPy/temp/projects/youtube-dl/bug-10-fixed/youtube-dl/youtube_dl/utils.py,BugsInPy/BugsInPy/temp/projects/youtube-dl/bug-10-buggy/youtube-dl/youtube_dl/utils.py |
youtube-dl-bug-23 | #!/usr/bin/env python
# coding: utf-8
from __future__ import unicode_literals
import base64
import binascii
import calendar
import codecs
import contextlib
import ctypes
import datetime
import email.utils
import errno
import functools
import gzip
import io
import itertools
import json
import locale
import math
import... | BugsInPy/BugsInPy/temp/projects/youtube-dl/bug-23-fixed/youtube-dl/youtube_dl/utils.py,BugsInPy/BugsInPy/temp/projects/youtube-dl/bug-23-buggy/youtube-dl/youtube_dl/utils.py |
youtube-dl-bug-1 | #!/usr/bin/env python
# coding: utf-8
from __future__ import unicode_literals
import base64
import binascii
import calendar
import codecs
import contextlib
import ctypes
import datetime
import email.utils
import email.header
import errno
import functools
import gzip
import io
import itertools
import json
import local... | BugsInPy/BugsInPy/temp/projects/youtube-dl/bug-1-fixed/youtube-dl/youtube_dl/utils.py,BugsInPy/BugsInPy/temp/projects/youtube-dl/bug-1-buggy/youtube-dl/youtube_dl/utils.py |
youtube-dl-bug-7 | #!/usr/bin/env python
# -*- coding: utf-8 -*-
from __future__ import unicode_literals
import base64
import calendar
import codecs
import contextlib
import ctypes
import datetime
import email.utils
import errno
import functools
import gzip
import itertools
import io
import json
import locale
import math
import operato... | BugsInPy/BugsInPy/temp/projects/youtube-dl/bug-7-fixed/youtube-dl/youtube_dl/utils.py,BugsInPy/BugsInPy/temp/projects/youtube-dl/bug-7-buggy/youtube-dl/youtube_dl/utils.py |
youtube-dl-bug-43 | #!/usr/bin/env python
# -*- coding: utf-8 -*-
import ctypes
import datetime
import email.utils
import errno
import gzip
import io
import json
import locale
import math
import os
import pipes
import platform
import re
import ssl
import socket
import subprocess
import sys
import traceback
import zlib
try:
import ur... | BugsInPy/BugsInPy/temp/projects/youtube-dl/bug-43-fixed/youtube-dl/youtube_dl/utils.py,BugsInPy/BugsInPy/temp/projects/youtube-dl/bug-43-buggy/youtube-dl/youtube_dl/utils.py |
youtube-dl-bug-18 | #!/usr/bin/env python
# coding: utf-8
from __future__ import absolute_import, unicode_literals
import collections
import contextlib
import copy
import datetime
import errno
import fileinput
import io
import itertools
import json
import locale
import operator
import os
import platform
import re
import shutil
import su... | BugsInPy/BugsInPy/temp/projects/youtube-dl/bug-18-fixed/youtube-dl/youtube_dl/YoutubeDL.py,BugsInPy/BugsInPy/temp/projects/youtube-dl/bug-18-buggy/youtube-dl/youtube_dl/YoutubeDL.py |
youtube-dl-bug-13 | #!/usr/bin/env python
# coding: utf-8
from __future__ import unicode_literals
import base64
import binascii
import calendar
import codecs
import contextlib
import ctypes
import datetime
import email.utils
import email.header
import errno
import functools
import gzip
import io
import itertools
import json
import local... | BugsInPy/BugsInPy/temp/projects/youtube-dl/bug-13-fixed/youtube-dl/youtube_dl/utils.py,BugsInPy/BugsInPy/temp/projects/youtube-dl/bug-13-buggy/youtube-dl/youtube_dl/utils.py |
youtube-dl-bug-20 | #!/usr/bin/env python
# coding: utf-8
from __future__ import unicode_literals
import base64
import binascii
import calendar
import codecs
import contextlib
import ctypes
import datetime
import email.utils
import email.header
import errno
import functools
import gzip
import io
import itertools
import json
import local... | BugsInPy/BugsInPy/temp/projects/youtube-dl/bug-20-fixed/youtube-dl/youtube_dl/utils.py,BugsInPy/BugsInPy/temp/projects/youtube-dl/bug-20-buggy/youtube-dl/youtube_dl/utils.py |
youtube-dl-bug-2 | # coding: utf-8
from __future__ import unicode_literals
import base64
import datetime
import hashlib
import json
import netrc
import os
import random
import re
import socket
import sys
import time
import math
from ..compat import (
compat_cookiejar,
compat_cookies,
compat_etree_fromstring,
compat_getp... | BugsInPy/BugsInPy/temp/projects/youtube-dl/bug-2-fixed/youtube-dl/youtube_dl/extractor/common.py,BugsInPy/BugsInPy/temp/projects/youtube-dl/bug-2-buggy/youtube-dl/youtube_dl/extractor/common.py |
youtube-dl-bug-25 | #!/usr/bin/env python
# -*- coding: utf-8 -*-
from __future__ import unicode_literals
import base64
import binascii
import calendar
import codecs
import contextlib
import ctypes
import datetime
import email.utils
import errno
import functools
import gzip
import io
import itertools
import json
import locale
import mat... | BugsInPy/BugsInPy/temp/projects/youtube-dl/bug-25-fixed/youtube-dl/youtube_dl/utils.py,BugsInPy/BugsInPy/temp/projects/youtube-dl/bug-25-buggy/youtube-dl/youtube_dl/utils.py |
youtube-dl-bug-4 | from __future__ import unicode_literals
import json
import operator
import re
from .utils import (
ExtractorError,
)
_OPERATORS = [
('|', operator.or_),
('^', operator.xor),
('&', operator.and_),
('>>', operator.rshift),
('<<', operator.lshift),
('-', operator.sub),
('+', operator.add... | BugsInPy/BugsInPy/temp/projects/youtube-dl/bug-4-fixed/youtube-dl/youtube_dl/jsinterp.py,BugsInPy/BugsInPy/temp/projects/youtube-dl/bug-4-buggy/youtube-dl/youtube_dl/jsinterp.py |
youtube-dl-bug-38 | from __future__ import unicode_literals
import json
import re
import socket
from .common import InfoExtractor
from ..utils import (
compat_http_client,
compat_str,
compat_urllib_error,
compat_urllib_parse,
compat_urllib_request,
ExtractorError,
)
class FacebookIE(InfoExtractor):
"""Info... | BugsInPy/BugsInPy/temp/projects/youtube-dl/bug-38-fixed/youtube-dl/youtube_dl/extractor/facebook.py,BugsInPy/BugsInPy/temp/projects/youtube-dl/bug-38-buggy/youtube-dl/youtube_dl/extractor/facebook.py |
youtube-dl-bug-36 | from __future__ import unicode_literals
import json
import re
import socket
from .common import InfoExtractor
from ..utils import (
compat_http_client,
compat_str,
compat_urllib_error,
compat_urllib_parse,
compat_urllib_request,
urlencode_postdata,
ExtractorError,
)
class FacebookIE(Inf... | BugsInPy/BugsInPy/temp/projects/youtube-dl/bug-36-fixed/youtube-dl/youtube_dl/extractor/facebook.py,BugsInPy/BugsInPy/temp/projects/youtube-dl/bug-36-buggy/youtube-dl/youtube_dl/extractor/facebook.py |
youtube-dl-bug-30 | #!/usr/bin/env python
# -*- coding: utf-8 -*-
from __future__ import absolute_import, unicode_literals
import collections
import contextlib
import datetime
import errno
import fileinput
import io
import itertools
import json
import locale
import operator
import os
import platform
import re
import shutil
import subpro... | BugsInPy/BugsInPy/temp/projects/youtube-dl/bug-30-fixed/youtube-dl/youtube_dl/YoutubeDL.py,BugsInPy/BugsInPy/temp/projects/youtube-dl/bug-30-buggy/youtube-dl/youtube_dl/YoutubeDL.py |
youtube-dl-bug-8 | #!/usr/bin/env python
# -*- coding: utf-8 -*-
from __future__ import absolute_import, unicode_literals
import collections
import contextlib
import datetime
import errno
import fileinput
import io
import itertools
import json
import locale
import operator
import os
import platform
import re
import shutil
import subpro... | BugsInPy/BugsInPy/temp/projects/youtube-dl/bug-8-fixed/youtube-dl/youtube_dl/YoutubeDL.py,BugsInPy/BugsInPy/temp/projects/youtube-dl/bug-8-buggy/youtube-dl/youtube_dl/YoutubeDL.py |
youtube-dl-bug-27 | #!/usr/bin/env python
# -*- coding: utf-8 -*-
from __future__ import unicode_literals
import base64
import calendar
import codecs
import contextlib
import ctypes
import datetime
import email.utils
import errno
import functools
import gzip
import itertools
import io
import json
import locale
import math
import operato... | BugsInPy/BugsInPy/temp/projects/youtube-dl/bug-27-fixed/youtube-dl/youtube_dl/utils.py,BugsInPy/BugsInPy/temp/projects/youtube-dl/bug-27-buggy/youtube-dl/youtube_dl/utils.py |
youtube-dl-bug-40 | from __future__ import unicode_literals
import base64
import io
import itertools
import os
from struct import unpack, pack
import time
import xml.etree.ElementTree as etree
from .common import FileDownloader
from .http import HttpFD
from ..utils import (
compat_urllib_request,
compat_urlparse,
format_byte... | BugsInPy/BugsInPy/temp/projects/youtube-dl/bug-40-fixed/youtube-dl/youtube_dl/downloader/f4m.py,BugsInPy/BugsInPy/temp/projects/youtube-dl/bug-40-buggy/youtube-dl/youtube_dl/downloader/f4m.py |
youtube-dl-bug-22 | #!/usr/bin/env python
# coding: utf-8
from __future__ import unicode_literals
import base64
import binascii
import calendar
import codecs
import contextlib
import ctypes
import datetime
import email.utils
import errno
import functools
import gzip
import io
import itertools
import json
import locale
import math
import... | BugsInPy/BugsInPy/temp/projects/youtube-dl/bug-22-fixed/youtube-dl/youtube_dl/utils.py,BugsInPy/BugsInPy/temp/projects/youtube-dl/bug-22-buggy/youtube-dl/youtube_dl/utils.py |
youtube-dl-bug-34 | #!/usr/bin/env python
# -*- coding: utf-8 -*-
import calendar
import codecs
import contextlib
import ctypes
import datetime
import email.utils
import errno
import getpass
import gzip
import itertools
import io
import json
import locale
import math
import os
import pipes
import platform
import re
import ssl
import sock... | BugsInPy/BugsInPy/temp/projects/youtube-dl/bug-34-fixed/youtube-dl/youtube_dl/utils.py,BugsInPy/BugsInPy/temp/projects/youtube-dl/bug-34-buggy/youtube-dl/youtube_dl/utils.py |
youtube-dl-bug-29 | #!/usr/bin/env python
# -*- coding: utf-8 -*-
from __future__ import unicode_literals
import base64
import calendar
import codecs
import contextlib
import ctypes
import datetime
import email.utils
import errno
import functools
import gzip
import itertools
import io
import json
import locale
import math
import operato... | BugsInPy/BugsInPy/temp/projects/youtube-dl/bug-29-fixed/youtube-dl/youtube_dl/utils.py,BugsInPy/BugsInPy/temp/projects/youtube-dl/bug-29-buggy/youtube-dl/youtube_dl/utils.py |
thefuck-bug-5 | import re
from thefuck.utils import replace_argument
from thefuck.specific.git import git_support
@git_support
def match(command):
return ('push' in command.script_parts
and 'set-upstream' in command.output)
def _get_upstream_option_index(command_parts):
if '--set-upstream' in command_parts:
... | BugsInPy/BugsInPy/temp/projects/thefuck/bug-5-fixed/thefuck/thefuck/rules/git_push.py,BugsInPy/BugsInPy/temp/projects/thefuck/bug-5-buggy/thefuck/thefuck/rules/git_push.py |
thefuck-bug-12 | from difflib import get_close_matches
from thefuck.utils import get_all_executables, \
get_valid_history_without_current, get_closest
from thefuck.specific.sudo import sudo_support
@sudo_support
def match(command):
return (command.script_parts
and 'not found' in command.stderr
and bool... | BugsInPy/BugsInPy/temp/projects/thefuck/bug-12-fixed/thefuck/thefuck/rules/no_command.py,BugsInPy/BugsInPy/temp/projects/thefuck/bug-12-buggy/thefuck/thefuck/rules/no_command.py |
thefuck-bug-32 | def match(command, settings):
return 'ls' in command.script and not ('ls -' in command.script)
def get_new_command(command, settings):
command = command.script.split(' ')
command[0] = 'ls -lah'
return ' '.join(command)
def match(command, settings):
return (command.script == 'ls'
or c... | BugsInPy/BugsInPy/temp/projects/thefuck/bug-32-fixed/thefuck/thefuck/rules/ls_lah.py,BugsInPy/BugsInPy/temp/projects/thefuck/bug-32-buggy/thefuck/thefuck/rules/ls_lah.py |
thefuck-bug-28 | import re
import os
from thefuck.utils import memoize
from thefuck import shells
patterns = (
# js, node:
'^ at {file}:{line}:{col}',
# cargo:
'^ {file}:{line}:{col}',
# python, thefuck:
'^ File "{file}", line {line}',
# awk:
'^awk: {file}:{line}:'... | BugsInPy/BugsInPy/temp/projects/thefuck/bug-28-fixed/thefuck/thefuck/rules/fix_file.py,BugsInPy/BugsInPy/temp/projects/thefuck/bug-28-buggy/thefuck/thefuck/rules/fix_file.py |
thefuck-bug-24 | from collections import namedtuple
from traceback import format_stack
from .logs import debug
Command = namedtuple('Command', ('script', 'stdout', 'stderr'))
CorrectedCommand = namedtuple('CorrectedCommand', ('script', 'side_effect', 'priority'))
Rule = namedtuple('Rule', ('name', 'match', 'get_new_command',
... | BugsInPy/BugsInPy/temp/projects/thefuck/bug-24-fixed/thefuck/thefuck/types.py,BugsInPy/BugsInPy/temp/projects/thefuck/bug-24-buggy/thefuck/thefuck/types.py |
thefuck-bug-3 | from subprocess import Popen, PIPE
from time import time
import os
import sys
import six
from .. import logs
from ..conf import settings
from ..utils import DEVNULL, cache
from .generic import Generic
@cache('~/.config/fish/config.fish', '~/.config/fish/functions')
def _get_functions(overridden):
proc = Popen(['f... | BugsInPy/BugsInPy/temp/projects/thefuck/bug-3-fixed/thefuck/thefuck/shells/fish.py,BugsInPy/BugsInPy/temp/projects/thefuck/bug-3-buggy/thefuck/thefuck/shells/fish.py |
thefuck-bug-15 | import re
from thefuck.shells import shell
from thefuck.specific.git import git_support
@git_support
def match(command):
return ('did not match any file(s) known to git.' in command.stderr
and "Did you forget to 'git add'?" in command.stderr)
@git_support
def get_new_command(command):
missing_fi... | BugsInPy/BugsInPy/temp/projects/thefuck/bug-15-fixed/thefuck/thefuck/rules/git_add.py,BugsInPy/BugsInPy/temp/projects/thefuck/bug-15-buggy/thefuck/thefuck/rules/git_add.py |
thefuck-bug-31 | from thefuck import utils
@utils.git_support
def match(command, settings):
return ('git' in command.script and
'diff' in command.script and
'--staged' not in command.script)
@utils.git_support
def get_new_command(command, settings):
return '{} --staged'.format(command.script)
from ... | BugsInPy/BugsInPy/temp/projects/thefuck/bug-31-fixed/thefuck/thefuck/rules/git_diff_staged.py,BugsInPy/BugsInPy/temp/projects/thefuck/bug-31-buggy/thefuck/thefuck/rules/git_diff_staged.py |
thefuck-bug-11 | from thefuck.utils import replace_argument
from thefuck.specific.git import git_support
@git_support
def match(command):
return ('push' in command.script
and 'set-upstream' in command.stderr)
@git_support
def get_new_command(command):
push_upstream = command.stderr.split('\n')[-3].strip().partit... | BugsInPy/BugsInPy/temp/projects/thefuck/bug-11-fixed/thefuck/thefuck/rules/git_push.py,BugsInPy/BugsInPy/temp/projects/thefuck/bug-11-buggy/thefuck/thefuck/rules/git_push.py |
thefuck-bug-6 | import re
from thefuck.shells import shell
from thefuck.specific.git import git_support
from thefuck.utils import eager
@git_support
def match(command):
return ("fatal: A branch named '" in command.output
and " already exists." in command.output)
@git_support
@eager
def get_new_command(command):
... | BugsInPy/BugsInPy/temp/projects/thefuck/bug-6-fixed/thefuck/thefuck/rules/git_branch_exists.py,BugsInPy/BugsInPy/temp/projects/thefuck/bug-6-buggy/thefuck/thefuck/rules/git_branch_exists.py |
thefuck-bug-16 | import os
from ..conf import settings
from ..utils import memoize
from .generic import Generic
class Bash(Generic):
def app_alias(self, fuck):
alias = "TF_ALIAS={0}" \
" alias {0}='PYTHONIOENCODING=utf-8" \
" TF_CMD=$(TF_SHELL_ALIASES=$(alias) thefuck $(fc -ln -1)) && " \
... | BugsInPy/BugsInPy/temp/projects/thefuck/bug-16-fixed/thefuck/thefuck/shells/bash.py,BugsInPy/BugsInPy/temp/projects/thefuck/bug-16-buggy/thefuck/thefuck/shells/bash.py |
thefuck-bug-14 | from subprocess import Popen, PIPE
from time import time
import os
from ..utils import DEVNULL, memoize, cache
from .generic import Generic
class Fish(Generic):
def _get_overridden_aliases(self):
overridden_aliases = os.environ.get('TF_OVERRIDDEN_ALIASES', '').strip()
if overridden_aliases:
... | BugsInPy/BugsInPy/temp/projects/thefuck/bug-14-fixed/thefuck/thefuck/shells/fish.py,BugsInPy/BugsInPy/temp/projects/thefuck/bug-14-buggy/thefuck/thefuck/shells/fish.py |
thefuck-bug-9 | from thefuck.utils import replace_argument
from thefuck.specific.git import git_support
@git_support
def match(command):
return ('push' in command.script
and 'set-upstream' in command.stderr)
@git_support
def get_new_command(command):
# If --set-upstream or -u are passed, remove it and its argum... | BugsInPy/BugsInPy/temp/projects/thefuck/bug-9-fixed/thefuck/thefuck/rules/git_push.py,BugsInPy/BugsInPy/temp/projects/thefuck/bug-9-buggy/thefuck/thefuck/rules/git_push.py |
thefuck-bug-26 | from thefuck import shells
def match(command, settings):
return command.script.startswith('vagrant ') and 'run `vagrant up`' in command.stderr.lower()
def get_new_command(command, settings):
cmds = command.script.split(' ')
machine = ""
if len(cmds) >= 3:
machine = cmds[2]
return shells.... | BugsInPy/BugsInPy/temp/projects/thefuck/bug-26-fixed/thefuck/thefuck/rules/vagrant_up.py,BugsInPy/BugsInPy/temp/projects/thefuck/bug-26-buggy/thefuck/thefuck/rules/vagrant_up.py |
thefuck-bug-17 | from subprocess import Popen, PIPE
import os
from ..conf import settings
from ..utils import DEVNULL, memoize, cache
from .generic import Generic
class Bash(Generic):
def app_alias(self, fuck):
alias = "TF_ALIAS={0}" \
" alias {0}='PYTHONIOENCODING=utf-8" \
" TF_CMD=$(thefu... | BugsInPy/BugsInPy/temp/projects/thefuck/bug-17-fixed/thefuck/thefuck/shells/bash.py,BugsInPy/BugsInPy/temp/projects/thefuck/bug-17-buggy/thefuck/thefuck/shells/bash.py |
thefuck-bug-21 | from thefuck import utils
from thefuck.utils import replace_argument
from thefuck.specific.git import git_support
@git_support
def match(command):
return (command.script.split()[1] == 'stash'
and 'usage:' in command.stderr)
# git's output here is too complicated to be parsed (see the test file)
stash... | BugsInPy/BugsInPy/temp/projects/thefuck/bug-21-fixed/thefuck/thefuck/rules/git_fix_stash.py,BugsInPy/BugsInPy/temp/projects/thefuck/bug-21-buggy/thefuck/thefuck/rules/git_fix_stash.py |
thefuck-bug-19 | from thefuck.utils import replace_argument
from thefuck.specific.git import git_support
@git_support
def match(command):
return ('push' in command.script
and '! [rejected]' in command.stderr
and 'failed to push some refs to' in command.stderr
and 'Updates were rejected because ... | BugsInPy/BugsInPy/temp/projects/thefuck/bug-19-fixed/thefuck/thefuck/rules/git_push_force.py,BugsInPy/BugsInPy/temp/projects/thefuck/bug-19-buggy/thefuck/thefuck/rules/git_push_force.py |
thefuck-bug-10 | from thefuck.utils import for_app
@for_app('man', at_least=1)
def match(command):
return True
def get_new_command(command):
if '3' in command.script:
return command.script.replace("3", "2")
if '2' in command.script:
return command.script.replace("2", "3")
split_cmd2 = command.script... | BugsInPy/BugsInPy/temp/projects/thefuck/bug-10-fixed/thefuck/thefuck/rules/man.py,BugsInPy/BugsInPy/temp/projects/thefuck/bug-10-buggy/thefuck/thefuck/rules/man.py |
thefuck-bug-23 | from difflib import get_close_matches
from functools import wraps
import shelve
from decorator import decorator
import tempfile
import os
import pickle
import re
from pathlib import Path
import six
DEVNULL = open(os.devnull, 'w')
if six.PY2:
from pipes import quote
else:
from shlex import quote
def memoi... | BugsInPy/BugsInPy/temp/projects/thefuck/bug-23-fixed/thefuck/thefuck/utils.py,BugsInPy/BugsInPy/temp/projects/thefuck/bug-23-buggy/thefuck/thefuck/utils.py |
thefuck-bug-1 | import re
from thefuck.utils import replace_argument, for_app
from thefuck.specific.sudo import sudo_support
@sudo_support
@for_app('pip', 'pip2', 'pip3')
def match(command):
return ('pip' in command.script and
'unknown command' in command.output and
'maybe you meant' in command.output)
... | BugsInPy/BugsInPy/temp/projects/thefuck/bug-1-fixed/thefuck/thefuck/rules/pip_unknown_command.py,BugsInPy/BugsInPy/temp/projects/thefuck/bug-1-buggy/thefuck/thefuck/rules/pip_unknown_command.py |
thefuck-bug-7 | from thefuck.utils import replace_argument, for_app
@for_app('php')
def match(command):
return "php -s" in command.script
def get_new_command(command):
return replace_argument(command.script, "-s", "-S")
requires_output = False
from thefuck.utils import replace_argument, for_app
@for_app('php')
def ma... | BugsInPy/BugsInPy/temp/projects/thefuck/bug-7-fixed/thefuck/thefuck/rules/php_s.py,BugsInPy/BugsInPy/temp/projects/thefuck/bug-7-buggy/thefuck/thefuck/rules/php_s.py |
thefuck-bug-18 | patterns = ['permission denied',
'EACCES',
'pkg: Insufficient privileges',
'you cannot perform this operation unless you are root',
'non-root users cannot',
'Operation not permitted',
'root privilege',
'This command has to be run under ... | BugsInPy/BugsInPy/temp/projects/thefuck/bug-18-fixed/thefuck/thefuck/rules/sudo.py,BugsInPy/BugsInPy/temp/projects/thefuck/bug-18-buggy/thefuck/thefuck/rules/sudo.py |
thefuck-bug-13 | import re
from thefuck.shells import shell
from thefuck.specific.git import git_support
from thefuck.utils import eager
@git_support
def match(command):
return ('branch' in command.script
and "fatal: A branch named '" in command.stderr
and " already exists." in command.stderr)
@git_suppo... | BugsInPy/BugsInPy/temp/projects/thefuck/bug-13-fixed/thefuck/thefuck/rules/git_branch_exists.py,BugsInPy/BugsInPy/temp/projects/thefuck/bug-13-buggy/thefuck/thefuck/rules/git_branch_exists.py |
thefuck-bug-20 | import os
import zipfile
from thefuck.utils import for_app
def _is_bad_zip(file):
with zipfile.ZipFile(file, 'r') as archive:
return len(archive.namelist()) > 1
def _zip_file(command):
# unzip works that way:
# unzip [-flags] file[.zip] [file(s) ...] [-x file(s) ...]
# ^ ... | BugsInPy/BugsInPy/temp/projects/thefuck/bug-20-fixed/thefuck/thefuck/rules/dirty_unzip.py,BugsInPy/BugsInPy/temp/projects/thefuck/bug-20-buggy/thefuck/thefuck/rules/dirty_unzip.py |
thefuck-bug-2 | import atexit
import os
import pickle
import re
import shelve
import sys
import six
from decorator import decorator
from difflib import get_close_matches as difflib_get_close_matches
from functools import wraps
from .logs import warn, exception
from .conf import settings
from .system import Path
DEVNULL = open(os.devn... | BugsInPy/BugsInPy/temp/projects/thefuck/bug-2-fixed/thefuck/thefuck/utils.py,BugsInPy/BugsInPy/temp/projects/thefuck/bug-2-buggy/thefuck/thefuck/utils.py |
thefuck-bug-25 | import re
from thefuck.utils import sudo_support
@sudo_support
def match(command, settings):
return ('mkdir' in command.script
and 'No such file or directory' in command.stderr)
@sudo_support
def get_new_command(command, settings):
return re.sub('^mkdir (.*)', 'mkdir -p \\1', command.script)
i... | BugsInPy/BugsInPy/temp/projects/thefuck/bug-25-fixed/thefuck/thefuck/rules/mkdir_p.py,BugsInPy/BugsInPy/temp/projects/thefuck/bug-25-buggy/thefuck/thefuck/rules/mkdir_p.py |
thefuck-bug-4 | from subprocess import Popen, PIPE
from time import time
import os
import sys
import six
from .. import logs
from ..conf import settings
from ..utils import DEVNULL, cache
from .generic import Generic
@cache('~/.config/fish/config.fish', '~/.config/fish/functions')
def _get_functions(overridden):
proc = Popen(['f... | BugsInPy/BugsInPy/temp/projects/thefuck/bug-4-fixed/thefuck/thefuck/shells/fish.py,BugsInPy/BugsInPy/temp/projects/thefuck/bug-4-buggy/thefuck/thefuck/shells/fish.py |
thefuck-bug-30 | import re
import os
from thefuck.utils import memoize
from thefuck import shells
patterns = (
# js, node:
'^ at {file}:{line}:{col}',
# cargo:
'^ {file}:{line}:{col}',
# python, thefuck:
'^ File "{file}", line {line}',
# awk:
'^awk: {file}:{line}:'... | BugsInPy/BugsInPy/temp/projects/thefuck/bug-30-fixed/thefuck/thefuck/rules/fix_file.py,BugsInPy/BugsInPy/temp/projects/thefuck/bug-30-buggy/thefuck/thefuck/rules/fix_file.py |
thefuck-bug-8 | import subprocess
import re
from thefuck.specific.sudo import sudo_support
from thefuck.utils import for_app, replace_command
from thefuck.specific.dnf import dnf_available
regex = re.compile(r'No such command: (.*)\.')
@for_app('dnf')
@sudo_support
def match(command):
return 'no such command' in command.output... | BugsInPy/BugsInPy/temp/projects/thefuck/bug-8-fixed/thefuck/thefuck/rules/dnf_no_such_command.py,BugsInPy/BugsInPy/temp/projects/thefuck/bug-8-buggy/thefuck/thefuck/rules/dnf_no_such_command.py |
thefuck-bug-27 | # Opens URL's in the default web browser
#
# Example:
# > open github.com
# The file ~/github.com does not exist.
# Perhaps you meant 'http://github.com'?
#
def match(command, settings):
return (command.script.startswith(('open', 'xdg-open', 'gnome-open', 'kde-open'))
and (
'.com' in c... | BugsInPy/BugsInPy/temp/projects/thefuck/bug-27-fixed/thefuck/thefuck/rules/open.py,BugsInPy/BugsInPy/temp/projects/thefuck/bug-27-buggy/thefuck/thefuck/rules/open.py |
thefuck-bug-22 | from collections import namedtuple
from traceback import format_stack
from .logs import debug
Command = namedtuple('Command', ('script', 'stdout', 'stderr'))
Rule = namedtuple('Rule', ('name', 'match', 'get_new_command',
'enabled_by_default', 'side_effect',
'prior... | BugsInPy/BugsInPy/temp/projects/thefuck/bug-22-fixed/thefuck/thefuck/types.py,BugsInPy/BugsInPy/temp/projects/thefuck/bug-22-buggy/thefuck/thefuck/types.py |
thefuck-bug-29 | from collections import namedtuple
Command = namedtuple('Command', ('script', 'stdout', 'stderr'))
CorrectedCommand = namedtuple('CorrectedCommand', ('script', 'side_effect', 'priority'))
Rule = namedtuple('Rule', ('name', 'match', 'get_new_command',
'enabled_by_default', 'side_effect',
... | BugsInPy/BugsInPy/temp/projects/thefuck/bug-29-fixed/thefuck/thefuck/types.py,BugsInPy/BugsInPy/temp/projects/thefuck/bug-29-buggy/thefuck/thefuck/types.py |
luigi-bug-5 | # -*- coding: utf-8 -*-
#
# Copyright 2012-2015 Spotify AB
#
# 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... | BugsInPy/BugsInPy/temp/projects/luigi/bug-5-fixed/luigi/luigi/util.py,BugsInPy/BugsInPy/temp/projects/luigi/bug-5-buggy/luigi/luigi/util.py |
luigi-bug-12 | # -*- coding: utf-8 -*-
#
# Copyright 2012-2015 Spotify AB
#
# 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... | BugsInPy/BugsInPy/temp/projects/luigi/bug-12-fixed/luigi/luigi/contrib/hdfs/clients.py,BugsInPy/BugsInPy/temp/projects/luigi/bug-12-buggy/luigi/luigi/contrib/hdfs/clients.py |
luigi-bug-32 | # -*- coding: utf-8 -*-
#
# Copyright 2012-2015 Spotify AB
#
# 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... | BugsInPy/BugsInPy/temp/projects/luigi/bug-32-fixed/luigi/luigi/task_register.py,BugsInPy/BugsInPy/temp/projects/luigi/bug-32-buggy/luigi/luigi/task_register.py |
luigi-bug-28 | # -*- coding: utf-8 -*-
#
# Copyright 2012-2015 Spotify AB
#
# 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... | BugsInPy/BugsInPy/temp/projects/luigi/bug-28-fixed/luigi/luigi/contrib/hive.py,BugsInPy/BugsInPy/temp/projects/luigi/bug-28-buggy/luigi/luigi/contrib/hive.py |
luigi-bug-24 | # -*- coding: utf-8 -*-
#
# Copyright 2012-2015 Spotify AB
#
# 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... | BugsInPy/BugsInPy/temp/projects/luigi/bug-24-fixed/luigi/luigi/contrib/spark.py,BugsInPy/BugsInPy/temp/projects/luigi/bug-24-buggy/luigi/luigi/contrib/spark.py |
luigi-bug-3 | # -*- coding: utf-8 -*-
#
# Copyright 2012-2015 Spotify AB
#
# 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... | BugsInPy/BugsInPy/temp/projects/luigi/bug-3-fixed/luigi/luigi/parameter.py,BugsInPy/BugsInPy/temp/projects/luigi/bug-3-buggy/luigi/luigi/parameter.py |
luigi-bug-15 | # -*- coding: utf-8 -*-
#
# Copyright 2012-2015 Spotify AB
#
# 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... | BugsInPy/BugsInPy/temp/projects/luigi/bug-15-fixed/luigi/luigi/scheduler.py,BugsInPy/BugsInPy/temp/projects/luigi/bug-15-buggy/luigi/luigi/scheduler.py |
luigi-bug-31 | # -*- coding: utf-8 -*-
#
# Copyright 2012-2015 Spotify AB
#
# 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... | BugsInPy/BugsInPy/temp/projects/luigi/bug-31-fixed/luigi/luigi/scheduler.py,BugsInPy/BugsInPy/temp/projects/luigi/bug-31-buggy/luigi/luigi/scheduler.py |
luigi-bug-11 | # -*- coding: utf-8 -*-
#
# Copyright 2012-2015 Spotify AB
#
# 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... | BugsInPy/BugsInPy/temp/projects/luigi/bug-11-fixed/luigi/luigi/scheduler.py,BugsInPy/BugsInPy/temp/projects/luigi/bug-11-buggy/luigi/luigi/scheduler.py |
luigi-bug-6 | # -*- coding: utf-8 -*-
#
# Copyright 2012-2015 Spotify AB
#
# 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... | BugsInPy/BugsInPy/temp/projects/luigi/bug-6-fixed/luigi/luigi/parameter.py,BugsInPy/BugsInPy/temp/projects/luigi/bug-6-buggy/luigi/luigi/parameter.py |
luigi-bug-16 | # -*- coding: utf-8 -*-
#
# Copyright 2012-2015 Spotify AB
#
# 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... | BugsInPy/BugsInPy/temp/projects/luigi/bug-16-fixed/luigi/luigi/scheduler.py,BugsInPy/BugsInPy/temp/projects/luigi/bug-16-buggy/luigi/luigi/scheduler.py |
luigi-bug-14 | # -*- coding: utf-8 -*-
#
# Copyright 2012-2015 Spotify AB
#
# 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... | BugsInPy/BugsInPy/temp/projects/luigi/bug-14-fixed/luigi/luigi/scheduler.py,BugsInPy/BugsInPy/temp/projects/luigi/bug-14-buggy/luigi/luigi/scheduler.py |
luigi-bug-9 | # -*- coding: utf-8 -*-
#
# Copyright 2015-2015 Spotify AB
#
# 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... | BugsInPy/BugsInPy/temp/projects/luigi/bug-9-fixed/luigi/luigi/execution_summary.py,BugsInPy/BugsInPy/temp/projects/luigi/bug-9-buggy/luigi/luigi/execution_summary.py |
luigi-bug-26 | # -*- coding: utf-8 -*-
#
# Copyright 2012-2015 Spotify AB
#
# 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... | BugsInPy/BugsInPy/temp/projects/luigi/bug-26-fixed/luigi/luigi/contrib/hadoop_jar.py,BugsInPy/BugsInPy/temp/projects/luigi/bug-26-buggy/luigi/luigi/contrib/hadoop_jar.py |
luigi-bug-33 | # -*- coding: utf-8 -*-
#
# Copyright 2012-2015 Spotify AB
#
# 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... | BugsInPy/BugsInPy/temp/projects/luigi/bug-33-fixed/luigi/luigi/task.py,BugsInPy/BugsInPy/temp/projects/luigi/bug-33-buggy/luigi/luigi/task.py |
luigi-bug-17 | # -*- coding: utf-8 -*-
#
# Copyright 2012-2015 Spotify AB
#
# 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... | BugsInPy/BugsInPy/temp/projects/luigi/bug-17-fixed/luigi/luigi/interface.py,BugsInPy/BugsInPy/temp/projects/luigi/bug-17-buggy/luigi/luigi/interface.py |
luigi-bug-21 | # -*- coding: utf-8 -*-
#
# Copyright 2012-2015 Spotify AB
#
# 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... | BugsInPy/BugsInPy/temp/projects/luigi/bug-21-fixed/luigi/luigi/interface.py,BugsInPy/BugsInPy/temp/projects/luigi/bug-21-buggy/luigi/luigi/interface.py |
luigi-bug-19 | # -*- coding: utf-8 -*-
#
# Copyright 2012-2015 Spotify AB
#
# 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... | BugsInPy/BugsInPy/temp/projects/luigi/bug-19-fixed/luigi/luigi/scheduler.py,BugsInPy/BugsInPy/temp/projects/luigi/bug-19-buggy/luigi/luigi/scheduler.py |
luigi-bug-10 | # -*- coding: utf-8 -*-
#
# Copyright 2012-2015 Spotify AB
#
# 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... | BugsInPy/BugsInPy/temp/projects/luigi/bug-10-fixed/luigi/luigi/scheduler.py,BugsInPy/BugsInPy/temp/projects/luigi/bug-10-buggy/luigi/luigi/scheduler.py |
luigi-bug-23 | # -*- coding: utf-8 -*-
#
# Copyright 2012-2015 Spotify AB
#
# 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... | BugsInPy/BugsInPy/temp/projects/luigi/bug-23-fixed/luigi/luigi/interface.py,BugsInPy/BugsInPy/temp/projects/luigi/bug-23-buggy/luigi/luigi/interface.py |
luigi-bug-1 | # -*- coding: utf-8 -*-
#
# Copyright 2012-2015 Spotify AB
#
# 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... | BugsInPy/BugsInPy/temp/projects/luigi/bug-1-fixed/luigi/luigi/server.py,BugsInPy/BugsInPy/temp/projects/luigi/bug-1-buggy/luigi/luigi/server.py |
luigi-bug-7 | # -*- coding: utf-8 -*-
#
# Copyright 2012-2015 Spotify AB
#
# 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... | BugsInPy/BugsInPy/temp/projects/luigi/bug-7-fixed/luigi/luigi/scheduler.py,BugsInPy/BugsInPy/temp/projects/luigi/bug-7-buggy/luigi/luigi/scheduler.py |
luigi-bug-18 | # -*- coding: utf-8 -*-
#
# Copyright 2012-2015 Spotify AB
#
# 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... | BugsInPy/BugsInPy/temp/projects/luigi/bug-18-fixed/luigi/luigi/scheduler.py,BugsInPy/BugsInPy/temp/projects/luigi/bug-18-buggy/luigi/luigi/scheduler.py |
luigi-bug-13 | # -*- coding: utf-8 -*-
#
# Copyright 2012-2015 Spotify AB
#
# 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... | BugsInPy/BugsInPy/temp/projects/luigi/bug-13-fixed/luigi/luigi/file.py,BugsInPy/BugsInPy/temp/projects/luigi/bug-13-buggy/luigi/luigi/file.py |
luigi-bug-20 | # -*- coding: utf-8 -*-
#
# Copyright 2012-2015 Spotify AB
#
# 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... | BugsInPy/BugsInPy/temp/projects/luigi/bug-20-fixed/luigi/luigi/task.py,BugsInPy/BugsInPy/temp/projects/luigi/bug-20-buggy/luigi/luigi/task.py |
luigi-bug-2 | # -*- coding: utf-8 -*-
#
# Copyright 2019 Spotify AB
#
# 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 a... | BugsInPy/BugsInPy/temp/projects/luigi/bug-2-fixed/luigi/luigi/contrib/beam_dataflow.py,BugsInPy/BugsInPy/temp/projects/luigi/bug-2-buggy/luigi/luigi/contrib/beam_dataflow.py |
luigi-bug-25 | # -*- coding: utf-8 -*-
#
# Copyright 2012-2015 Spotify AB
#
# 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... | BugsInPy/BugsInPy/temp/projects/luigi/bug-25-fixed/luigi/luigi/contrib/redshift.py,BugsInPy/BugsInPy/temp/projects/luigi/bug-25-buggy/luigi/luigi/contrib/redshift.py |
luigi-bug-4 | # -*- coding: utf-8 -*-
#
# Copyright 2012-2015 Spotify AB
#
# 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... | BugsInPy/BugsInPy/temp/projects/luigi/bug-4-fixed/luigi/luigi/contrib/redshift.py,BugsInPy/BugsInPy/temp/projects/luigi/bug-4-buggy/luigi/luigi/contrib/redshift.py |
luigi-bug-30 | # -*- coding: utf-8 -*-
#
# Copyright 2012-2015 Spotify AB
#
# 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... | BugsInPy/BugsInPy/temp/projects/luigi/bug-30-fixed/luigi/luigi/worker.py,BugsInPy/BugsInPy/temp/projects/luigi/bug-30-buggy/luigi/luigi/worker.py |
luigi-bug-8 | # -*- coding: utf-8 -*-
#
# Copyright 2012-2015 Spotify AB
#
# 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... | BugsInPy/BugsInPy/temp/projects/luigi/bug-8-fixed/luigi/luigi/contrib/redshift.py,BugsInPy/BugsInPy/temp/projects/luigi/bug-8-buggy/luigi/luigi/contrib/redshift.py |
luigi-bug-27 | # -*- coding: utf-8 -*-
#
# Copyright 2012-2015 Spotify AB
#
# 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... | BugsInPy/BugsInPy/temp/projects/luigi/bug-27-fixed/luigi/luigi/parameter.py,BugsInPy/BugsInPy/temp/projects/luigi/bug-27-buggy/luigi/luigi/parameter.py |
luigi-bug-22 | # -*- coding: utf-8 -*-
#
# Copyright 2012-2015 Spotify AB
#
# 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... | BugsInPy/BugsInPy/temp/projects/luigi/bug-22-fixed/luigi/luigi/scheduler.py,BugsInPy/BugsInPy/temp/projects/luigi/bug-22-buggy/luigi/luigi/scheduler.py |
luigi-bug-29 | # -*- coding: utf-8 -*-
#
# Copyright 2012-2015 Spotify AB
#
# 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... | BugsInPy/BugsInPy/temp/projects/luigi/bug-29-fixed/luigi/luigi/task_register.py,BugsInPy/BugsInPy/temp/projects/luigi/bug-29-buggy/luigi/luigi/task_register.py |
PySnooper-bug-3 | # Copyright 2019 Ram Rachum.
# This program is distributed under the MIT license.
import sys
import os
import inspect
import types
import datetime as datetime_module
import re
import collections
import decorator
from . import utils
from . import pycompat
from .tracer import Tracer
def get_write_function(output):
... | BugsInPy/BugsInPy/temp/projects/PySnooper/bug-3-fixed/PySnooper/pysnooper/pysnooper.py,BugsInPy/BugsInPy/temp/projects/PySnooper/bug-3-buggy/PySnooper/pysnooper/pysnooper.py |
PySnooper-bug-1 | # Copyright 2019 Ram Rachum and collaborators.
# This program is distributed under the MIT license.
'''Python 2/3 compatibility'''
import abc
import os
import inspect
import sys
PY3 = (sys.version_info[0] == 3)
if hasattr(abc, 'ABC'):
ABC = abc.ABC
else:
class ABC(object):
"""Helper class that provid... | BugsInPy/BugsInPy/temp/projects/PySnooper/bug-1-fixed/PySnooper/pysnooper/pycompat.py,BugsInPy/BugsInPy/temp/projects/PySnooper/bug-1-buggy/PySnooper/pysnooper/pycompat.py |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.