MonoshiTonmoy/Code_Statement_Prediction_Dataset huggingface dataset:
Project Name: KillianLucas+open-interpreter
Language: Python
Statement Type: Branch

Source Code:
def send_telemetry(event_name, properties=None):
    try:
        if properties == None:
            properties = {}
        properties["oi_version"] = pkg_resources.get_distribution(
            "open-interpreter"
        ).version
        with open(os.devnull, "w") as f, contextlib.redirect_stdout(
            f
        ), contextlib.redirect_stderr(f):
            posthog.capture(user_id, event_name, properties)
    except:
        # Non blocking
        pass

send_telemetry(event_name='started_chat', properties={'in_terminal_interface': False, 'message_type': 'str', 'os_mode': False})

Selected Statement: if properties == None:

Function Input:
event_name: 'started_chat'
properties: in_terminal_interface: no
message_type: str
os_mode: no

Variable Values Before Statement:
properties: in_terminal_interface: no
message_type: str
os_mode: no

Value After Statement Execution: No

Variable States During Runtime (line, value):
event_name: 1
'started_chat'
properties: 1
in_terminal_interface: no
message_type: str
os_mode: no
5
in_terminal_interface: no
message_type: str
os_mode: no
oi_version: 0.2.0
11
in_terminal_interface: no
message_type: str
os_mode: no
oi_version: 0.2.0
$lib: posthog-python
$lib_version: 3.1.0
$geoip_disable: yes
f: 8
<_io.TextIOWrapper name='/dev/null' mode='w' encoding='UTF-8'>
Project Name: python-eel+Eel
Language: Python
Statement Type: Branch

Source Code:
def driver():
    TEST_BROWSER = os.environ.get("TEST_BROWSER", "chrome").lower()

    if TEST_BROWSER == "chrome":
        options = webdriver.ChromeOptions()
        options.headless = True
        capabilities = DesiredCapabilities.CHROME
        capabilities["goog:loggingPrefs"] = {"browser": "ALL"}

        if platform.system() == "Windows":
            options.binary_location = "C:/Program Files/Google/Chrome/Application/chrome.exe"

        driver = webdriver.Chrome(
            ChromeDriverManager().install(),
            options=options,
            desired_capabilities=capabilities,
            service_log_path=os.path.devnull,
        )

    # Firefox doesn't currently supported pulling JavaScript console logs, which we currently scan to affirm that
    # JS/Python can communicate in some places. So for now, we can't really use firefox/geckodriver during testing.
    # This may be added in the future: https://github.com/mozilla/geckodriver/issues/284

    # elif TEST_BROWSER == "firefox":
    #     options = webdriver.FirefoxOptions()
    #     options.headless = True
    #     capabilities = DesiredCapabilities.FIREFOX
    #     capabilities['loggingPrefs'] = {"browser": "ALL"}
    #
    #     driver = webdriver.Firefox(options=options, capabilities=capabilities, service_log_path=os.path.devnull)

    else:
        raise ValueError(f"Unsupported browser for testing: {TEST_BROWSER}")

    with mock.patch("eel.browsers.open"):
        yield driver

driver()

Selected Statement: if TEST_BROWSER == "chrome":

Function Input:

Variable Values Before Statement:
TEST_BROWSER: 'chrome'

Value After Statement Execution: Yes

Variable States During Runtime (line, value):
TEST_BROWSER: 2
'chrome'
options: 5
{_caps={'browserName': 'chrome', 'goog:loggingPrefs': {'browser': 'ALL'}, 'pageLoadStrategy': <PageLoadStrategy.normal: 'normal'>}, _proxy=None, mobile_options=None, _arguments=[], _ignore_local_proxy=False, _binary_location='', _extension_files=[], _extensions=[], _experimental_options={}, _debugger_address=None}
6
{_caps={'browserName': 'chrome', 'goog:loggingPrefs': {'browser': 'ALL'}, 'pageLoadStrategy': <PageLoadStrategy.normal: 'normal'>}, _proxy=None, mobile_options=None, _arguments=[], _ignore_local_proxy=False, _binary_location='', _extension_files=[], _extensions=[], _experimental_options={}, _debugger_address=None, headless=True}
capabilities: 7
{'browserName': 'chrome', 'goog:loggingPrefs': {'browser': 'ALL'}}
Project Name: jaakkopasanen+AutoEq
Language: Python
Statement Type: Branch

Source Code:
def find_csv_separators(csv):
    """Finds column and decimal separators in a CSV string

    Args:
        csv: CSV text data

    Returns:
        (column_separator, decimal separator)
    """
    lines = csv.strip().split('\n')
    # First find all potential column separators by checking which characters appear on each line that starts with digit
    column_separator_candidates = {',', ';', '\t', '|'}
    for line in lines:
        if not numeric_start.match(line):  # Skip rows which don't start with numbers
            continue
        remove_candidates = []
        for column_separator in column_separator_candidates:
            if column_separator not in line:
                # Numeric line doesn't contain the column separator candidate, eliminate the candidate
                remove_candidates.append(column_separator)
        for remove_candidate in remove_candidates:
            column_separator_candidates.remove(remove_candidate)

    if len(column_separator_candidates) == 0:
        raise CsvParseError('Could not find column and decimal separators')

    if column_separator_candidates == {','}:
        # Only comma found, it must be the column separator and decimal point must be dot
        return [',', '.']

    if ',' in column_separator_candidates:
        # Comma is included in the candidates (along with something else), it must be the decimal separator
        decimal_separator = ','
        column_separator_candidates.remove(',')
    else:
        decimal_separator = '.'

    if len(column_separator_candidates) > 1:
        raise CsvParseError(f'Found multiple potential column separators: {column_separator_candidates}')

    return list(column_separator_candidates)[0], decimal_separator

find_csv_separators(csv='frequency,raw\n20,0\n1000,3\n20000,0\n')

Selected Statement: if column_separator_candidates == {','}:

Function Input:
csv: 'frequency,raw\n20,0\n1000,3\n20000,0\n'

Variable Values Before Statement:
column_separator_candidates: {','}

Value After Statement Execution: No

Variable States During Runtime (line, value):
csv: 1
'frequency,raw\n20,0\n1000,3\n20000,0\n'
lines: 10
frequency,raw, 20,0, 1000,3, 20000,0
column_separator_candidates: 12
{'\t', ';', ',', '|'}
22
{';', ',', '|'}
22
{',', '|'}
22
{','}
line: 13
'frequency,raw'
13
'20,0'
13
'1000,3'
13
'20000,0'
remove_candidates: 16
20
	
20
	
;
20
	
;
|
16
column_separator: 17
'\t'
17
';'
17
','
17
'|'
17
','
remove_candidate: 21
'\t'
21
';'
21
'|'
Project Name: chen0040+pyalgs
Language: Python
Statement Type: Branch

Source Code:
def _merge(a, aux, lo, mid, hi):
        i = lo
        j = mid + 1

        for k in range(lo, hi + 1):
            aux[k] = a[k]

        for k in range(lo, hi + 1):
            if i > mid:
                a[k] = aux[j]
                j += 1
            elif j > hi:
                a[k] = aux[i]
                i += 1
            elif util.less(aux[i], aux[j]):
                a[k] = aux[i]
                i += 1
            else:
                a[k] = aux[j]
                j += 1

_merge(a=[1, 2, 4, 4, 5, 6, 7, 23, 8, 9, 20, 11, 13, 34, 66], aux=[0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], lo=0, mid=3, hi=7)

Selected Statement: if i > mid:

Function Input:
a: [1, 2, 4, 4, 5, 6, 7, 23, 8, 9, 20, 11, 13, 34, 66]
aux: [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]
lo: 0
mid: 3
hi: 7

Variable Values Before Statement:
i: 0
mid: 3

Value After Statement Execution: No

Variable States During Runtime (line, value):
a: 1
[1, 2, 4, 4, 5, 6, 7, 23, 8, 9, 20, 11, 13, 34, 66]
aux: 1
[0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]
6
[1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]
6
[1, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]
6
[1, 2, 4, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]
6
[1, 2, 4, 4, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]
6
[1, 2, 4, 4, 5, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]
6
[1, 2, 4, 4, 5, 6, 0, 0, 0, 0, 0, 0, 0, 0, 0]
6
[1, 2, 4, 4, 5, 6, 7, 0, 0, 0, 0, 0, 0, 0, 0]
6
[1, 2, 4, 4, 5, 6, 7, 23, 0, 0, 0, 0, 0, 0, 0]
lo: 1
0
mid: 1
3
hi: 1
7
i: 2
0
17
1
17
2
17
3
17
4
j: 3
4
11
5
11
6
11
7
11
8
k: 5
0
5
1
5
2
5
3
5
4
5
5
5
6
5
7
8
0
8
1
8
2
8
3
8
4
8
5
8
6
8
7
Project Name: chen0040+pyalgs
Language: Python
Statement Type: Branch

Source Code:
def partition(a, lo, hi):
        i = lo
        j = hi

        while True:
            while not util.less(a[lo], a[i]):
                i += 1
                if i >= hi:
                    break

            while util.less(a[lo], a[j]):
                j -= 1
                if j <= lo:
                    break

            if i >= j:
                break

            util.exchange(a, i, j)

        util.exchange(a, lo, j)
        return j

partition(a=[4, 2, 1, 23, 4, 5, 6, 7, 8, 9, 20, 11, 13, 34, 66], lo=0, hi=14)

Selected Statement: if i >= hi:

Function Input:
a: [4, 2, 1, 23, 4, 5, 6, 7, 8, 9, 20, 11, 13, 34, 66]
lo: 0
hi: 14

Variable Values Before Statement:
i: 0
hi: 14

Value After Statement Execution: No

Variable States During Runtime (line, value):
a: 1
[4, 2, 1, 23, 4, 5, 6, 7, 8, 9, 20, 11, 13, 34, 66]
19
[4, 2, 1, 4, 23, 5, 6, 7, 8, 9, 20, 11, 13, 34, 66]
lo: 1
0
hi: 1
14
i: 2
0
7
1
7
2
7
3
7
4
j: 3
14
12
13
12
12
12
11
12
10
12
9
12
8
12
7
12
6
12
5
12
4
12
3
Project Name: cyril-s+aptly-ctl
Language: Python
Statement Type: Branch

Source Code:
def version_compare(self, other):
        "Compares version of the form [epoch:]upstream-version[-debian-revision]" \
        + " according to Debian package version number format."

        # compare epoch
        diff = self.epoch - other.epoch
        if diff != 0:
            return diff

        # compare upstream version and debian revision
        for slf, othr in (self.upstream_version, other.upstream_version), (self.revision, other.revision):
            i = 0
            while len(slf) > 0 or len(othr) > 0:
                decimal = (i % 2 == 1) 
                slf_part, slf = self._get_part(slf, decimal=decimal)
                othr_part, othr = self._get_part(othr, decimal=decimal)
                diff = self._compare_parts(slf_part, othr_part, decimal=decimal)
                if diff != 0:
                    return diff
                i += 1

        # versions are equal
        return 0

version_compare(self=2.2.0~rc5, other=2.2.0~rc5, self.epoch=0, self.revision='0', self.revision_allowed_chars=('.', '+', '~'), self.upstream_version='2.2.0~rc5', self.upstream_version_allowed_chars=('.', '+', '~', '-', ':'), self.version='2.2.0~rc5')

Selected Statement: if diff != 0:

Function Input:
self: 2.2.0~rc5
other: 2.2.0~rc5
self.epoch: 0
self.revision: '0'
self.revision_allowed_chars: ('.', '+', '~')
self.upstream_version: '2.2.0~rc5'
self.upstream_version_allowed_chars: ('.', '+', '~', '-', ':')
self.version: '2.2.0~rc5'

Variable Values Before Statement:
diff: 0

Value After Statement Execution: No

Variable States During Runtime (line, value):
self: 1
2.2.0~rc5
other: 1
2.2.0~rc5
self.epoch: 1
0
self.revision: 1
'0'
self.revision_allowed_chars: 1
('.', '+', '~')
self.upstream_version: 1
'2.2.0~rc5'
self.upstream_version_allowed_chars: 1
('.', '+', '~', '-', ':')
self.version: 1
'2.2.0~rc5'
diff: 6
0
slf: 11
'2.2.0~rc5'
15
'.2.0~rc5'
15
'2.0~rc5'
15
'.0~rc5'
15
'0~rc5'
15
'~rc5'
15
'5'
15
''
11
'0'
15
''
othr: 11
'2.2.0~rc5'
16
'.2.0~rc5'
16
'2.0~rc5'
16
'.0~rc5'
16
'0~rc5'
16
'~rc5'
16
'5'
16
''
11
'0'
16
''
i: 12
0
20
1
20
2
20
3
20
4
20
5
20
6
20
7
20
8
12
0
20
1
20
2
decimal: 14
False
14
True
14
False
14
True
14
False
14
True
14
False
14
True
14
False
14
True
slf_part: 15
''
15
'2'
15
'.'
15
'2'
15
'.'
15
'0'
15
'~rc'
15
'5'
15
''
15
'0'
othr_part: 16
''
16
'2'
16
'.'
16
'2'
16
'.'
16
'0'
16
'~rc'
16
'5'
16
''
16
'0'
Project Name: cyril-s+aptly-ctl
Language: Python
Statement Type: Branch

Source Code:
def _get_part(self, s, decimal):
        "Strips first part of string containing either non-decimal or decimal characters." \
        + " Returns tuple (part, remider)."
        div = 0
        for c in s:
            if decimal and not c.isdecimal():
                break
            elif not decimal and c.isdecimal():
                break
            else:
                div += 1

        return (s[:div], s[div:])

_get_part(self=2.2.0~rc5, s='2.2.0~rc5', decimal=False, self.epoch=0, self.revision='0', self.revision_allowed_chars=('.', '+', '~'), self.upstream_version='2.2.0~rc5', self.upstream_version_allowed_chars=('.', '+', '~', '-', ':'), self.version='2.2.0~rc5')

Selected Statement: if decimal and not c.isdecimal():

Function Input:
self: 2.2.0~rc5
s: '2.2.0~rc5'
decimal: False
self.epoch: 0
self.revision: '0'
self.revision_allowed_chars: ('.', '+', '~')
self.upstream_version: '2.2.0~rc5'
self.upstream_version_allowed_chars: ('.', '+', '~', '-', ':')
self.version: '2.2.0~rc5'

Variable Values Before Statement:
decimal: False

Value After Statement Execution: No

Variable States During Runtime (line, value):
self: 1
2.2.0~rc5
s: 1
'2.2.0~rc5'
decimal: 1
False
self.epoch: 1
0
self.revision: 1
'0'
self.revision_allowed_chars: 1
('.', '+', '~')
self.upstream_version: 1
'2.2.0~rc5'
self.upstream_version_allowed_chars: 1
('.', '+', '~', '-', ':')
self.version: 1
'2.2.0~rc5'
div: 4
0
c: 5
'2'
Project Name: cyril-s+aptly-ctl
Language: Python
Statement Type: Branch

Source Code:
def _compare_parts(self, a, b, decimal):
        if decimal:
            if a == "": a = "0"
            if b == "": b = "0"
            return int(a) - int(b)
        else:
            i = 0
            while i < (min(len(a), len(b)) + 1):
                res = self._order(self._get_empty_str_on_index_error(a, i)) \
                        - self._order(self._get_empty_str_on_index_error(b, i))
                if res != 0:
                    return res
                i += 1
            else:
                return 0

_compare_parts(self=2.2.0~rc5, a='', b='', decimal=False, self.epoch=0, self.revision='0', self.revision_allowed_chars=('.', '+', '~'), self.upstream_version='2.2.0~rc5', self.upstream_version_allowed_chars=('.', '+', '~', '-', ':'), self.version='2.2.0~rc5')

Selected Statement: if a == "": a = "0"

Function Input:
self: 2.2.0~rc5
a: ''
b: ''
decimal: False
self.epoch: 0
self.revision: '0'
self.revision_allowed_chars: ('.', '+', '~')
self.upstream_version: '2.2.0~rc5'
self.upstream_version_allowed_chars: ('.', '+', '~', '-', ':')
self.version: '2.2.0~rc5'

Variable Values Before Statement:
a: ''

Value After Statement Execution: No

Variable States During Runtime (line, value):
self: 1
2.2.0~rc5
a: 1
''
b: 1
''
decimal: 1
False
self.epoch: 1
0
self.revision: 1
'0'
self.revision_allowed_chars: 1
('.', '+', '~')
self.upstream_version: 1
'2.2.0~rc5'
self.upstream_version_allowed_chars: 1
('.', '+', '~', '-', ':')
self.version: 1
'2.2.0~rc5'
i: 7
0
13
1
res: 9
0
Project Name: google+flax
Language: Python
Statement Type: Branch

Source Code:
def static_bool_env(varname: str, default: bool) -> bool:
  """Read an environment variable and interpret it as a boolean.

  This is deprecated. Please use bool_flag() unless your flag
  will be used in a static method and does not require runtime updates.

  True values are (case insensitive): 'y', 'yes', 't', 'true', 'on', and '1';
  false values are 'n', 'no', 'f', 'false', 'off', and '0'.
  Args:
    varname: the name of the variable
    default: the default boolean value
  Returns:
    boolean return value derived from defaults and environment.
  Raises: ValueError if the environment variable is anything else.
  """
  val = os.getenv(varname, str(default))
  val = val.lower()
  if val in ('y', 'yes', 't', 'true', 'on', '1'):
    return True
  elif val in ('n', 'no', 'f', 'false', 'off', '0'):
    return False
  else:
    raise ValueError(
      'invalid truth value {!r} for environment {!r}'.format(val, varname)
    )

static_bool_env(varname='FLAX_LAZY_RNG', default=True)

Selected Statement: if val in ('y', 'yes', 't', 'true', 'on', '1'):

Function Input:
varname: 'FLAX_LAZY_RNG'
default: True

Variable Values Before Statement:
val: 'True'

Value After Statement Execution: No

Variable States During Runtime (line, value):
varname: 1
'FLAX_LAZY_RNG'
default: 1
True
val: 16
'True'
17
'true'
Project Name: JGoutin+rfs
Language: Python
Statement Type: Branch

Source Code:
def _copy(src, dst, src_is_storage, dst_is_storage):
    """
    Copies file from source to destination

    Args:
        src (str or file-like object): Source file.
        dst (str or file-like object): Destination file.
        src_is_storage (bool): Source is storage.
        dst_is_storage (bool): Destination is storage.
    """
    # If both storage: Tries to perform same storage direct copy
    if src_is_storage and dst_is_storage:
        system = get_instance(src)
        if system is get_instance(dst):

            # Checks if same file
            if system.relpath(src) == system.relpath(dst):
                raise same_file_error(
                    "'%s' and '%s' are the same file" % (src, dst))

            # Tries to copy
            try:
                return system.copy(src, dst)
            except (UnsupportedOperation, ObjectException):
                pass

    # At least one storage object: copies streams
    with cos_open(src, 'rb') as fsrc:
        with cos_open(dst, 'wb') as fdst:

            # Get stream buffer size
            for stream in (fdst, fsrc):
                try:
                    buffer_size = getattr(stream, '_buffer_size')
                    break
                except AttributeError:
                    continue
            else:
                buffer_size = 16384

            # Read and write
            copyfileobj(fsrc, fdst, buffer_size)

_copy(src='dummy_read://file.txt', dst='/tmp/pytest-of-jinjun/pytest-198/test_cos_open0/file_dst.txt', src_is_storage=True, dst_is_storage=False)

Selected Statement: if src_is_storage and dst_is_storage:

Function Input:
src: 'dummy_read://file.txt'
dst: '/tmp/pytest-of-jinjun/pytest-198/test_cos_open0/file_dst.txt'
src_is_storage: True
dst_is_storage: False

Variable Values Before Statement:
src_is_storage: True
dst_is_storage: False

Value After Statement Execution: No

Variable States During Runtime (line, value):
src: 1
'dummy_read://file.txt'
dst: 1
'/tmp/pytest-of-jinjun/pytest-198/test_cos_open0/file_dst.txt'
src_is_storage: 1
True
dst_is_storage: 1
False
fsrc: 28
fdst: 29
<_io.BufferedWriter name='/tmp/pytest-of-jinjun/pytest-198/test_cos_open0/file_dst.txt'>
stream: 32
<_io.BufferedWriter name='/tmp/pytest-of-jinjun/pytest-198/test_cos_open0/file_dst.txt'>
32
buffer_size: 39
16384
Project Name: DMSC-Instrument-Data+lewis
Language: Python
Statement Type: Branch

Source Code:
def get_logger_name(context=None):
        log_names = [root_logger_name, logger_name]

        if context is not None:
            log_names.insert(1,
                             context if isinstance(context,
                                                   string_types) else context.__class__.__name__)

        return '.'.join(log_names)

get_logger_name(context=None, logger_name='State')

Selected Statement: if context is not None:

Function Input:
context: None
logger_name: 'State'

Variable Values Before Statement:
context: None

Value After Statement Execution: No

Variable States During Runtime (line, value):
context: 1
None
logger_name: 1
'State'
log_names: 2
lewis, State
Project Name: GEMPACKsoftware+HARPY
Language: Python
Statement Type: Branch

Source Code:
def _setHeaderBaseData(array, coeff_name, hao, long_name) -> None:
        if not isinstance(array, (np.ndarray, np.float32, np.int32,np.float64)):
            print(type(array))
            raise HeaderArrayObj.UnsupportedArrayType("'array' must be of numpy.ndarray type.")

        # Defaults handling
        if coeff_name is None:
            coeff_name = " " * 12
        if long_name is None:
            long_name = coeff_name
        if len(coeff_name) < 12:
            coeff_name = coeff_name.ljust(12)
        if len(long_name) < 70:
            long_name = long_name.ljust(70)
        hao.array = array
        hao.coeff_name = coeff_name
        hao.long_name = long_name

_setHeaderBaseData(array=array(['at 2/03/2018 4:22:38 PM                                               '],      dtype='<U70'), coeff_name=None, hao={_coeff_name='', _array=None, _sets=None, _long_name=''}, long_name='Creation Date and Time                                                ')

Selected Statement: if coeff_name is None:

Function Input:
array: array(['at 2/03/2018 4:22:38 PM                                               '],      dtype='<U70')
coeff_name: None
hao: {_coeff_name='', _array=None, _sets=None, _long_name=''}
long_name: 'Creation Date and Time                                                '

Variable Values Before Statement:
coeff_name: None

Value After Statement Execution: Yes

Variable States During Runtime (line, value):
array: 1
array(['at 2/03/2018 4:22:38 PM                                               '],      dtype='<U70')
coeff_name: 1
None
8
'            '
hao: 1
{_coeff_name='', _array=None, _sets=None, _long_name=''}
15
{_coeff_name='', _array=array(['at 2/03/2018 4:22:38 PM                                               '],      dtype='<U70'), _sets=None, _long_name=''}
16
{_coeff_name='            ', _array=array(['at 2/03/2018 4:22:38 PM                                               '],      dtype='<U70'), _sets=None, _long_name=''}
17
{_coeff_name='            ', _array=array(['at 2/03/2018 4:22:38 PM                                               '],      dtype='<U70'), _sets=None, _long_name='Creation Date and Time                                                '}
long_name: 1
'Creation Date and Time                                                '
Project Name: MrTango+click
Language: Python
Statement Type: Branch

Source Code:
def make_input_stream(input, charset):
    # Is already an input stream.
    if hasattr(input, 'read'):
        if PY2:
            return input
        rv = _find_binary_reader(input)
        if rv is not None:
            return rv
        raise TypeError('Could not find binary reader for input stream.')

    if input is None:
        input = b''
    elif not isinstance(input, bytes):
        input = input.encode(charset)
    if PY2:
        return StringIO(input)
    return io.BytesIO(input)

make_input_stream(input=None, charset='utf-8')

Selected Statement: if input is None:

Function Input:
input: None
charset: 'utf-8'

Variable Values Before Statement:
input: None

Value After Statement Execution: Yes

Variable States During Runtime (line, value):
input: 1
None
12
b''
charset: 1
'utf-8'
Project Name: MrTango+click
Language: Python
Statement Type: Branch

Source Code:
def _fetch(c):
        try:
            if spos is None:
                return c.popleft()
            else:
                return c.pop()
        except IndexError:
            return None

_fetch(c=deque([-1, 1]), spos=None)

Selected Statement: if spos is None:

Function Input:
c: deque([-1, 1])
spos: None

Variable Values Before Statement:
spos: None

Value After Statement Execution: Yes

Variable States During Runtime (line, value):
c: 1
deque([-1, 1])
4
deque([1])
spos: 1
None
Project Name: MrTango+click
Language: Python
Statement Type: Branch

Source Code:
def _build_prompt(text, suffix, show_default=False, default=None):
    prompt = text
    if default is not None and show_default:
        prompt = '%s [%s]' % (prompt, default)
    return prompt + suffix

_build_prompt(text='Foo', suffix=': ', show_default=True, default=None)

Selected Statement: if default is not None and show_default:

Function Input:
text: 'Foo'
suffix: ': '
show_default: True
default: None

Variable Values Before Statement:
show_default: True

Value After Statement Execution: No

Variable States During Runtime (line, value):
text: 1
'Foo'
suffix: 1
': '
show_default: 1
True
default: 1
None
prompt: 2
'Foo'