<commit_before>import { ISchema } from '@stoplight/types/schema';

import { IHttpQueryParamStyleDeserializer } from '../types';

export class DeepObjectStyleDeserializer implements IHttpQueryParamStyleDeserializer {
  public supports(style: string) {
    return style === 'deepObject';
  }

  public deserialize(
    key: string,
    query: {
      [name: string]: string | string[];
    },
    schema: ISchema
  ) {
    return this.deserializeObject(key, query, schema);
  }

  private deserializeObject(
    key: string,
    query: {<commit_msg>SL-81 Simplified deepObject deserializer implementation<commit_after>import { ISchema } from '@stoplight/types/schema';

import { IHttpQueryParamStyleDeserializer } from '../types';

export class DeepObjectStyleDeserializer implements IHttpQueryParamStyleDeserializer {
  public supports(style: string) {
    return style === 'deepObject';
  }

  public deserialize(
    key: string,
    query: {
{'fraction_non_alphanumeric': 0.10392364793213149, 'fraction_numerical': 0.0021208907741251328, 'mean_word_length': 4.333333333333333, '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': '5328246', 'n_tokens_mistral': 271, 'n_tokens_neox': 271, 'n_words': 67}