<commit_before>"""
GBDX Vector Services Interface.

Contact: <EMAIL>
"""
from __future__ import absolute_import
from builtins import object

import requests
from pygeoif import geometry

class Vectors(object):

    def __init__(self, interface):
        ''' Construct the Vectors interface class

        Args:
            interface: A reference to the GBDX Interface.

        Returns:
            An instance of the Vectors interface class.
        '''
        self.gbdx_connection = interface.gbdx_connection
        self.logger = interface.logger
        self.query_url = 'https://vector.geobigdata.io/insight-vector/api/vectors/query/items'
        self.get_url = 'https://vector.geobigdata.io/insight-vector/api/vector/%s/'

    def get(self, ID, index='vector-web-s'):
        '''Retrieves a vector.  Not usually necessary because searching is the best way to find & get stuff.

        Args:
            ID (str): ID of the vector object
            index (str): Optional.  Index the object lives in.  defaults to 'vector-web-s'

        Returns:
            record (dict): A dict object identical to the json representation of the catalog record
        '''<commit_msg>remove possible unused import<commit_after>"""
GBDX Vector Services Interface.

Contact: <EMAIL>
"""
#from __future__ import absolute_import
from builtins import object

import requests
from pygeoif import geometry

class Vectors(object):

    def __init__(self, interface):
        ''' Construct the Vectors interface class

        Args:
            interface: A reference to the GBDX Interface.

        Returns:
            An instance of the Vectors interface class.
        '''
        self.gbdx_connection = interface.gbdx_connection
        self.logger = interface.logger
        self.query_url = 'https://vector.geobigdata.io/insight-vector/api/vectors/query/items'
        self.get_url = 'https://vector.geobigdata.io/insight-vector/api/vector/%s/'

    def get(self, ID, index='vector-web-s'):
        '''Retrieves a vector.  Not usually necessary because searching is the best way to find & get stuff.

        Args:
            ID (str): ID of the vector object
            index (str): Optional.  Index the object lives in.  defaults to 'vector-web-s'

        Returns:
            record (dict): A dict object identical to the json representation of the catalog record
        '''
{'fraction_non_alphanumeric': 0.08807416772018542, 'fraction_numerical': 0.0, 'mean_word_length': 2.575301204819277, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, 'https://': 4, 'lorem ipsum': 0, 'www.': 0, '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': '72899', 'n_tokens_mistral': 653, 'n_tokens_neox': 628, 'n_words': 221}