<commit_before>import { SpriteGroupTextured, VOIndices, SpriteGroupTexturedOptions } from '../../sprites';
import { Texture, ITileSet } from '../../textures';

import { Map2DViewTile } from '../Map2DViewTile';

import { ITileQuad } from './ITileQuad';
import { TileQuadMethodsType } from './TileQuadMethods';
import { getTileQuadDescriptor, TileQuadVertexObject } from './TileQuadDescriptor';
import { TileFlipFlags } from './TileFlipFlags';

export interface ITileQuadGroupOptions extends SpriteGroupTexturedOptions<TileQuadMethodsType, ITileQuad> {
}

export class TileQuadGroup extends SpriteGroupTextured<TileQuadMethodsType, ITileQuad> {

  constructor(options?: ITileQuadGroupOptions) {
    super(getTileQuadDescriptor(), Object.assign({

      indices: VOIndices.buildQuads,

      dynamic: true,
      autotouch: false,

      setSize: (sprite: TileQuadVertexObject, w: number, h: number) => sprite.setSize(w, h),
      setTexCoordsByTexture: (sprite: TileQuadVertexObject, texture: Texture) => sprite.setTexCoordsByTexture(texture),

    }, options));
  }

  clearTiles() {
    this.voPool.freeAll();
    this.touchVertexBuffers(); // increase voPool->voArray serial
  }

  showTiles(viewTile: Map2DViewTile, tileset: ITileSet) {<commit_msg>fix tests<commit_after>import { SpriteGroupTextured, VOIndices, SpriteGroupTexturedOptions } from '../../sprites';
import { Texture, ITileSet } from '../../textures';

import { Map2DViewTile } from '../Map2DViewTile';

import { ITileQuad } from './ITileQuad';
import { TileQuadMethodsType } from './TileQuadMethods';
import { getTileQuadDescriptor, TileQuadVertexObject } from './TileQuadDescriptor';
import { TileFlipFlags } from './TileFlipFlags';

export interface ITileQuadGroupOptions extends SpriteGroupTexturedOptions<TileQuadMethodsType, ITileQuad> {
}

export class TileQuadGroup extends SpriteGroupTextured<TileQuadMethodsType, ITileQuad> {

  constructor(options?: ITileQuadGroupOptions) {
    super(getTileQuadDescriptor(), Object.assign({

      indices: VOIndices.buildQuads,

      dynamic: true,
      autotouch: false,

      setSize: (sprite: TileQuadVertexObject, w: number, h: number) => sprite.setSize(w, h),
      setTexCoordsByTexture: (sprite: TileQuadVertexObject, texture: Texture) => sprite.setTexCoordsByTexture(texture, 0),

    }, options));
  }

  clearTiles() {
    this.voPool.freeAll();
    this.touchVertexBuffers(); // increase voPool->voArray serial
  }

  showTiles(viewTile: Map2DViewTile, tileset: ITileSet) {
{'fraction_non_alphanumeric': 0.11964785914365746, 'fraction_numerical': 0.0028011204481792717, 'mean_word_length': 5.053268765133172, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 13, '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': '3429335', 'n_tokens_mistral': 803, 'n_tokens_neox': 787, 'n_words': 162}