<commit_before>#!/bin/sh
""":"
for interp in python python3 ; do
   command -v > /dev/null "$interp" && exec "$interp" "$0" "$@"
done
echo >&2 "No Python interpreter found!"
exit 1
":"""

# Copyright 2013-2020 Aerospike, Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License")
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

from __future__ import print_function
from __future__ import absolute_import
from future import standard_library
standard_library.install_aliases()
from builtins import filter
from builtins import map
from builtins import str

import cmd
import copy
import getpass
import os
import re
import shlex
import sys
import logging
import traceback

if sys.version_info[0] < 3:
    raise Exception("Asadm requires Python 3.")

if '-e' not in sys.argv and '--asinfo' not in sys.argv:
    # asinfo mode or non-interactive mode does not need readline
    # if we import readline then it adds escape character, which breaks some of asinfo use-cases.
    import readline
    if 'libedit' in readline.__doc__:
        # BSD libedit style tab completion for OS X
        readline.parse_and_bind("bind ^I rl_complete")
    else:<commit_msg>Python2 asadm error message<commit_after>#!/bin/sh
""":"
for interp in python python3 ; do
   command -v > /dev/null "$interp" && exec "$interp" "$0" "$@"
done
echo >&2 "No Python interpreter found!"
exit 1
":"""

# Copyright 2013-2020 Aerospike, Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License")
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

from __future__ import print_function
from __future__ import absolute_import
from future import standard_library
standard_library.install_aliases()
from builtins import filter
from builtins import map
from builtins import str

import cmd
import copy
import getpass
import os
import re
import shlex
import sys
import logging
import traceback

if sys.version_info[0] < 3:
    raise Exception("Asadm requires Python 3. Use tools package <= 3.27.x for Python 2 support.")

if '-e' not in sys.argv and '--asinfo' not in sys.argv:
    # asinfo mode or non-interactive mode does not need readline
    # if we import readline then it adds escape character, which breaks some of asinfo use-cases.
    import readline
    if 'libedit' in readline.__doc__:
        # BSD libedit style tab completion for OS X
        readline.parse_and_bind("bind ^I rl_complete")
    else:
{'fraction_non_alphanumeric': 0.07666256157635468, 'fraction_numerical': 0.013238916256157635, 'mean_word_length': 4.1084905660377355, 'pattern_counts': {'":': 4, '<': 6, '<?xml version=': 0, '>': 7, 'https://': 0, 'lorem ipsum': 0, 'www.': 2, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3444941', 'n_tokens_mistral': 939, 'n_tokens_neox': 901, 'n_words': 426}