<commit_before>from abc import abstractmethod

import ee
from datetime import datetime

from first_pass import FirstPass
from .. import MosaicSpec
from ..mosaic import CollectionDef


class Sentinel2MosaicSpec(MosaicSpec):
    def __init__(self, spec):
        super(Sentinel2MosaicSpec, self).__init__(spec)
        self.scale = min([
            resolution
            for band, resolution
            in _scale_by_band.iteritems()
            if band in self.bands
        ])

    def _collection_defs(self):
        return [CollectionDef(
            collection=ee.ImageCollection('COPERNICUS/S2').filter(self._create_image_filter()),
            bands=_all_bands,
            first_pass=_first_pass
        )]
<commit_msg>Made sure BRDF correction isn't used for Sentinel 2.<commit_after>from abc import abstractmethod

import ee
from datetime import datetime

from first_pass import FirstPass
from .. import MosaicSpec
from ..mosaic import CollectionDef


class Sentinel2MosaicSpec(MosaicSpec):
    def __init__(self, spec):
        super(Sentinel2MosaicSpec, self).__init__(spec)
        self.scale = min([
            resolution
            for band, resolution
            in _scale_by_band.iteritems()
            if band in self.bands
        ])
        self.brdf_correct = False

    def _collection_defs(self):
        return [CollectionDef(
            collection=ee.ImageCollection('COPERNICUS/S2').filter(self._create_image_filter()),
            bands=_all_bands,
            first_pass=_first_pass
        )]

{'fraction_non_alphanumeric': 0.07465618860510806, 'fraction_numerical': 0.0045841519318926, 'mean_word_length': 2.6208530805687205, 'pattern_counts': {'":': 0, '<': 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': '5396162', 'n_tokens_mistral': 440, 'n_tokens_neox': 419, 'n_words': 104}