<commit_before>package com.thoughtworks.restRpc.core;

import com.thoughtworks.restRpc.core.IRouteConfiguration;
import com.qifun.jsonStream.JsonStream;
import haxe.ds.StringMap;

@:final
@:dox(hidden)
class GeneratedRouteConfiguration implements IRouteConfiguration {
  public function new(uriTemplateMap:StringMap<IUriTemplate>, failureClassName:String) {
    this.uriTemplateMap = uriTemplateMap;
    _failureClassName = failureClassName;
  }

  var uriTemplateMap:StringMap<IUriTemplate>;

  public function nameToUriTemplate(name:String):Null<IUriTemplate> return {
    uriTemplateMap.get(name);
  }

  private var _failureClassName:String;

  public var failureClassName(get, never):String;

  public function get_failureClassName():String return _failureClassName;

  public static inline function getTypeName(?classType:Class<Dynamic>, ?enumType:Enum<Dynamic>):String return {
    if (classType != null) {
      Type.getClassName(classType);
    } else if (enumType != null){
      Type.getEnumName(enumType);
    } else {
      null;
    }
  }

}

@:final
class GeneratedUriTemplate implements IUriTemplate {

  public function new(method:String, renderFunction:Iterator<JsonStream> -> String) {
    this._method = method;
    this.renderFunction = renderFunction;
  }

  var _method:String;

  var renderFunction:Iterator<JsonStream> -> String;

  public var method(get, never):String;

  private function get_method():String return _method;

  public function render(parameters:Iterator<JsonStream>):String return {
    renderFunction(parameters);
  }

}<commit_msg>Fix the compile error. zengwei shao<commit_after>package com.thoughtworks.restRpc.core;

import com.thoughtworks.restRpc.core.IRouteConfiguration;
import com.qifun.jsonStream.JsonStream;
import haxe.ds.StringMap;
import haxe.ds.Vector;

@:final
@:dox(hidden)
class GeneratedRouteConfiguration implements IRouteConfiguration {
  public function new(uriTemplateMap:StringMap<IUriTemplate>, failureClassName:String) {
    this.uriTemplateMap = uriTemplateMap;
    _failureClassName = failureClassName;
  }

  var uriTemplateMap:StringMap<IUriTemplate>;

  public function nameToUriTemplate(name:String):Null<IUriTemplate> return {
    uriTemplateMap.get(name);
  }

  private var _failureClassName:String;

  public var failureClassName(get, never):String;

  public function get_failureClassName():String return _failureClassName;

  public static inline function getTypeName(?classType:Class<Dynamic>, ?enumType:Enum<Dynamic>):String return {
    if (classType != null) {
      Type.getClassName(classType);
    } else if (enumType != null){
      Type.getEnumName(enumType);
    } else {
      null;
    }
  }

  public function matchUri(method: String, uri: String, body: JsonStream, contentType: Null<String>) : Vector<JsonStream> return {
    throw "TODO:";
  }
}

@:final
class GeneratedUriTemplate implements IUriTemplate {

  public var requestContentType(get, never):Null<String>;

  private function get_requestContentType():Null<String> return {
    throw "TODO";
  }

  public function parseUri(uri:String):Null<Vector<JsonStream>> return {
    throw "TODO";
  }

  public function new(method:String, renderFunction:Iterator<JsonStream> -> String) {
    this._method = method;
    this.renderFunction = renderFunction;
  }

  var _method:String;

  var renderFunction:Iterator<JsonStream> -> String;

  public var method(get, never):String;

  private function get_method():String return _method;

  public function render(parameters:Iterator<JsonStream>):String return {
    renderFunction(parameters);
  }

}
{'fraction_non_alphanumeric': 0.10063942174033917, 'fraction_numerical': 0.0, 'mean_word_length': 5.257391304347826, 'pattern_counts': {'":': 0, '<': 25, '<?xml version=': 0, '>': 29, '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': '5650105', 'n_tokens_mistral': 1061, 'n_tokens_neox': 1018, 'n_words': 221}