<commit_before># Copyright 2015 Planet Labs, 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 os import path
import sys
import time
import json
import logging
import re
import warnings

import click

import planet
from planet.api.sync import _SyncTool
from planet import api
from planet.api.utils import complete

from requests.packages.urllib3 import exceptions as urllib3exc

client_params = {}

ORTHO_PRODUCTS = ['visual', 'analytic', 'unrectified']


def client():
    return api.Client(**client_params)


pretty = click.option('-pp/-r', '--pretty/--no-pretty', default=None,
                      is_flag=True, help='Format JSON output')
scene_type = click.option('-s', '--scene-type', default='ortho',
                          help='Type of scene',
                          type=click.Choice(['ortho', 'landsat']))
dest_dir = click.option('-d', '--dest', help='Destination directory',
                        type=click.Path(file_okay=False, resolve_path=True,
                                        exists=True))
workspace = click.option('--workspace', help='Workspace ID', type=int)


def limit_option(default):
    return click.option('--limit', type=click.INT, required=False,
                        default=default, help="Limit the number of items.")


# monkey patch warnings module to hide InsecurePlatformWarning - the warning
# notes 'may cause certain SSL connections to fail' so it doesn't seem to
# introduce any vulnerabilities
# we capture the warning if present and present this if any SSLError is caught
# just in case this configuration is an issue
_insecure_warning = []
showwarning = warnings.showwarning


def hack(message, category, filename, lineno):
    if category is urllib3exc.InsecurePlatformWarning:
        if len(_insecure_warning) == 0:<commit_msg>allow rapideye queries on cli<commit_after># Copyright 2015 Planet Labs, 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 os import path
import sys
import time
import json
import logging
import re
import warnings

import click

import planet
from planet.api.sync import _SyncTool
from planet import api
from planet.api.utils import complete

from requests.packages.urllib3 import exceptions as urllib3exc

client_params = {}

ORTHO_PRODUCTS = ['visual', 'analytic', 'unrectified']


def client():
    return api.Client(**client_params)


pretty = click.option('-pp/-r', '--pretty/--no-pretty', default=None,
                      is_flag=True, help='Format JSON output')
scene_type = click.option('-s', '--scene-type', default='ortho',
                          help='Type of scene',
                          type=click.Choice(['ortho', 'landsat', 'rapideye']))
dest_dir = click.option('-d', '--dest', help='Destination directory',
                        type=click.Path(file_okay=False, resolve_path=True,
                                        exists=True))
workspace = click.option('--workspace', help='Workspace ID', type=int)


def limit_option(default):
    return click.option('--limit', type=click.INT, required=False,
                        default=default, help="Limit the number of items.")


# monkey patch warnings module to hide InsecurePlatformWarning - the warning
# notes 'may cause certain SSL connections to fail' so it doesn't seem to
# introduce any vulnerabilities
# we capture the warning if present and present this if any SSLError is caught
# just in case this configuration is an issue
_insecure_warning = []
showwarning = warnings.showwarning


def hack(message, category, filename, lineno):
    if category is urllib3exc.InsecurePlatformWarning:
        if len(_insecure_warning) == 0:
{'fraction_non_alphanumeric': 0.09502164502164502, 'fraction_numerical': 0.005194805194805195, 'mean_word_length': 3.4518304431599227, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 2, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1330452', 'n_tokens_mistral': 1253, 'n_tokens_neox': 1200, 'n_words': 474}