<commit_before><?
class Component_html extends Component {
  function init() {
  }

  function controller_html($args, $output="inline") {
    $vars["args"] = $args;
    return $this->GetTemplate("./html.tpl", $vars);
  }
  function controller_imagescale($args, $output="inline") {
    $vars["args"] = $args;
    return $this->GetTemplate("./imagescale.tpl", $vars);
  }
  function controller_multizoom($args, $output="inline") {
    $vars["args"] = $args;
    $vars["imgs"] = array(
      "ridgerun" => array(
        'size' => array(3627, 2424),
        'url' => 'http://gasi.ch/examples/2009/04/08/inline-multiscale-image-replacement/nytimes/ridge-run/image_files/{level}/{column}_{row}.jpg',
        'tilesize' => 256,
        'overlap' => 1
      ),
      "openstreetmap" => array(
        'size' => array(67108864, 67108864),
        'url' => 'http://tile.openstreetmap.org/{level}/{column}/{row}.png',
        'tilesize' => 256,
        'overlap' => 0
      ),
      "thing" => array(
        'size' => array(83377, 4454),
        'url' => 'http://www.deuterror.org/dtr_img/TileGroup{collection}/{level}-{column}-{row}.jpg',
        'tilesize' => 256,
        'overlap' => 1
      ),
      "google" => array(
        'size' => array(67108864, 67108864),
        'url' => 'http://mt0.google.com/vt/lyrs=m@116&hl=en&x={column}&y={row}&z={level}&s=Gal',
        'tilesize' => 256,
        'overlap' => 0
      ),
    );

    $vars["imgname"] = any($args["img"], "webtrends");
    $vars["img"] = any($args["imgdata"], $vars["imgs"][$vars["imgname"]]);
    return $this->GetTemplate("./multizoom.tpl", $vars);
  }

  function controller_dragdropimage($args) {
    return $this->GetTemplate("./dragdropimage.tpl", $vars);
  }
  function controller_palmpre($args) {
    return $this->GetTemplate("./palmpre.tpl", $vars);<commit_msg>Removed hardcoded crud from html.multizoom<commit_after><?
class Component_html extends Component {
  function init() {
  }

  function controller_html($args, $output="inline") {
    $vars["args"] = $args;
    return $this->GetTemplate("./html.tpl", $vars);
  }
  function controller_imagescale($args, $output="inline") {
    $vars["args"] = $args;
    return $this->GetTemplate("./imagescale.tpl", $vars);
  }
  function controller_multizoom($args, $output="inline") {
    $vars["args"] = $args;

    $vars["imgname"] = any($args["img"], "webtrends");
    $vars["img"] = any($args["imgdata"], $vars["imgs"][$vars["imgname"]]);
    return $this->GetTemplate("./multizoom.tpl", $vars);
  }

  function controller_dragdropimage($args) {
    return $this->GetTemplate("./dragdropimage.tpl", $vars);
  }
  function controller_palmpre($args) {
    return $this->GetTemplate("./palmpre.tpl", $vars);
{'fraction_non_alphanumeric': 0.21365638766519823, 'fraction_numerical': 0.02826725403817915, 'mean_word_length': 3.5416666666666665, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 33, 'https://': 0, 'lorem ipsum': 0, 'www.': 1, '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': '5866385', 'n_tokens_mistral': 1006, 'n_tokens_neox': 947, 'n_words': 143}