<commit_before><?php namespace Plugin\SEO;
class Sitemap {
  public static function generate($file, array $locs) {
    file_put_contents($file, '<?xml version="1.0" encoding="UTF-8"?>'
      . PHP_EOL . '<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9" xmlns:mobile="http://www.google.com/schemas/sitemap-mobile/1.0">'
      . PHP_EOL . '<url>'
      . PHP_EOL . '  <loc>' . config('common.proto') . '://' . config('common.domain') . '</loc>'
      . PHP_EOL . '  <lastmod>' . gmdate('Y-m-d\TH:i:sP') . '</lastmod>'
      . PHP_EOL . '  <priority>1.0</priority>'
      . PHP_EOL . '</url>'
      . PHP_EOL . '<url>'
      . PHP_EOL . '  <loc>' . config('common.proto') . '://' . config('common.domain') . '</loc>'
      . PHP_EOL . '  <lastmod>' . gmdate('Y-m-d\TH:i:sP') . '</lastmod>'
      . PHP_EOL . '  <priority>1.0</priority>'
      . PHP_EOL . '  <mobile:mobile/>'
      . PHP_EOL . '</url>'
      . PHP_EOL . implode('',
        array_map(function ($loc) {
          return
            PHP_EOL . '<url>'
            . PHP_EOL . '  <loc>' . config('common.proto') . '://' . config('common.domain') . $loc['url'] . '</loc>'
            . PHP_EOL . '  <lastmod>' . $loc['date'] . '</lastmod>'
            . PHP_EOL . '  <priority>' . $loc['priority'] . '</priority>'
            . PHP_EOL . '</url>'
          ;
        }, $locs)
      )
      . PHP_EOL . '</urlset>'
    );
  }
}<commit_msg>Remove old style mobile:mobile loc for sitemap generation<commit_after><?php namespace Plugin\SEO;
class Sitemap {
  public static function generate($file, array $locs) {
    file_put_contents($file, '<?xml version="1.0" encoding="UTF-8"?>'
      . PHP_EOL . '<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9" xmlns:mobile="http://www.google.com/schemas/sitemap-mobile/1.0">'
      . PHP_EOL . '<url>'
      . PHP_EOL . '  <loc>' . config('common.proto') . '://' . config('common.domain') . '</loc>'
      . PHP_EOL . '  <lastmod>' . gmdate('Y-m-d\TH:i:sP') . '</lastmod>'
      . PHP_EOL . '  <priority>1.0</priority>'
      . PHP_EOL . '</url>'
      . PHP_EOL . implode('',
        array_map(function ($loc) {
          return
            PHP_EOL . '<url>'
            . PHP_EOL . '  <loc>' . config('common.proto') . '://' . config('common.domain') . $loc['url'] . '</loc>'
            . PHP_EOL . '  <lastmod>' . $loc['date'] . '</lastmod>'
            . PHP_EOL . '  <priority>' . $loc['priority'] . '</priority>'
            . PHP_EOL . '</url>'
          ;
        }, $locs)
      )
      . PHP_EOL . '</urlset>'
    );
  }
}
{'fraction_non_alphanumeric': 0.22884012539184953, 'fraction_numerical': 0.007836990595611285, 'mean_word_length': 2.0070671378091873, 'pattern_counts': {'":': 0, '<': 52, '<?xml version=': 2, '>': 50, 'https://': 0, 'lorem ipsum': 0, 'www.': 4, 'xml': 6}, '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': '6381137', 'n_tokens_mistral': 955, 'n_tokens_neox': 943, 'n_words': 144}