<commit_before>from __future__ import print_function
from gbdxtools.images.ipe_image import IpeImage
from gbdxtools.ipe.interface import Ipe
from gbdxtools.ipe.util import ortho_params
ipe = Ipe()

class GE01(IpeImage):
    """
      Dask based access to GeoEye 01 images backed by IPE Graphs.
    """
    def __new__(cls, record, **kwargs):
        options = {
            "product": kwargs.get("product", "ortho"),
            "gsd": kwargs.get("gsd", None)
        }

        standard_products = cls._build_standard_products(record, kwargs.get("proj", None))
        try:
            self = super(GE01, cls).__new__(cls, standard_products[options["product"]])
        except KeyError as e:
            print(e)
            print("Specified product not implemented: {}".format(options["product"]))
            raise
        self = self.aoi(**kwargs)
        self._record = record
        self._products = standard_products
        return self

    @property
    def _rgb_bands(self):
        return [2,1,0]

    def get_product(self, product):
        return self.__class__(self._record, proj=self.proj, product=product)

    @staticmethod
    def _build_standard_products(rec, proj, gsd):<commit_msg>fixing geoeye test<commit_after>from __future__ import print_function
from gbdxtools.images.ipe_image import IpeImage
from gbdxtools.ipe.interface import Ipe
from gbdxtools.ipe.util import ortho_params
ipe = Ipe()

class GE01(IpeImage):
    """
      Dask based access to GeoEye 01 images backed by IPE Graphs.
    """
    def __new__(cls, record, **kwargs):
        options = {
            "product": kwargs.get("product", "ortho"),
            "gsd": kwargs.get("gsd", None)
        }

        standard_products = cls._build_standard_products(record, kwargs.get("proj", None), options['gsd'])
        try:
            self = super(GE01, cls).__new__(cls, standard_products[options["product"]])
        except KeyError as e:
            print(e)
            print("Specified product not implemented: {}".format(options["product"]))
            raise
        self = self.aoi(**kwargs)
        self._record = record
        self._products = standard_products
        return self

    @property
    def _rgb_bands(self):
        return [2,1,0]

    def get_product(self, product):
        return self.__class__(self._record, proj=self.proj, product=product)

    @staticmethod
    def _build_standard_products(rec, proj, gsd):
{'fraction_non_alphanumeric': 0.11166048619695097, 'fraction_numerical': 0.007416563658838072, 'mean_word_length': 2.781931464174455, 'pattern_counts': {'":': 4, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, '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': '7292369', 'n_tokens_mistral': 742, 'n_tokens_neox': 721, 'n_words': 176}