<commit_before><?php
//TODO - переделать

$url = [
  "/exchange.php"                      => "/exchange",
  "/lykkex_rulebook.php"               => "/lykkex_rulebook",
  "/term_conditions_colored_coins.php" => "/terms_of_issuance",
  "/city.php"                          => "/community",
  "/city/about/openposition"           => "/city/open_positions",
  "/city/blog/index"                   => "/city/blog",
  "/corp.php"                          => "/company",
  "/leadership.php"                    => "/leadership",
  "/technology.php"                    => "/technology",
  "/contacts.php"                      => "/contacts",
  "/city/terms_of_use"                 => "/terms_of_use",
  "/city/privacy_policy"               => "/privacy_policy",
  "/city/blog/2017-02-09/1-year_forward_offering"  => "/city/blog/1_year_forward_offering",
  "/city/blog/2017-01-26/seo_manager"  => "/city/blog/seo_manager"
];

$uri = $_SERVER['REQUEST_URI'];

if(array_key_exists($uri, $url)){
  header("HTTP/1.1 301 Moved Permanently");
  header("Location: ".$url[$uri]);
  exit();
}<commit_msg>добавил еще редиректы<commit_after><?php
//TODO - переделать

$url = [
  "/exchange.php"                                 => "/exchange",
  "/lykkex_rulebook.php"                          => "/lykkex_rulebook",
  "/term_conditions_colored_coins.php"            => "/terms_of_issuance",
  "/city.php"                                     => "/community",
  "/city/about/openposition"                      => "/city/open_positions",
  "/city/blog/index"                              => "/city/blog",
  "/corp.php"                                     => "/company",
  "/leadership.php"                               => "/leadership",
  "/technology.php"                               => "/technology",
  "/contacts.php"                                 => "/contacts",
  "/city/terms_of_use"                            => "/terms_of_use",
  "/city/privacy_policy"                          => "/privacy_policy",
  "/city/blog/2017-02-09/1-year_forward_offering" => "/city/blog/1_year_forward_offering",
  "/city/blog/2017-01-26/seo_manager"             => "/city/blog/seo_manager",

  "/city/blog/2017-01-25/lykke_talk_in_zurich"                                     => "https://temp.lykke.com/city/blog/2017-01-25/lykke_talk_in_zurich",
  "/city/blog/2017-01-20/chronobank"                                               => "https://temp.lykke.com/city/blog/2017-01-20/chronobank",
  "/city/blog/2017-01-19/wisekey"                                                  => "https://temp.lykke.com/city/blog/2017-01-19/wisekey",
  "/city/blog/2016-12-29/terms_of_issuance"                                        => "https://temp.lykke.com/city/blog/2016-12-29/terms_of_issuance",
  "/city/blog/2016-12-29/lykke_to_join_the_hyperledger_project"                    => "https://temp.lykke.com/city/blog/2016-12-29/lykke_to_join_the_hyperledger_project",
  "/city/blog/2016-12-21/demetrios_zamboglou"                                      => "https://temp.lykke.com/city/blog/2016-12-21/demetrios_zamboglou",
  "/city/blog/2016-12-16/solarcoin"                                                => "https://temp.lykke.com/city/blog/2016-12-16/solarcoin",
  "/city/blog/2016-12-12/pws"                                                      => "https://temp.lykke.com/city/blog/2016-12-12/pws",
  "/city/blog/2016-11-22/lykke_streams"                                            => "https://temp.lykke.com/city/blog/2016-11-22/lykke_streams",
  "/city/blog/2016-11-16/vanuatu"                                                  => "https://temp.lykke.com/city/blog/2016-11-16/vanuatu",
  "/city/blog/2016-10-14/blockchain-powered_exchange_captures_1_million_from_fans" => "https://temp.lykke.com/city/blog/2016-10-14/blockchain-powered_exchange_captures_1_million_from_fans",
];

$uri = $_SERVER['REQUEST_URI'];

if (array_key_exists($uri, $url)) {
  header("HTTP/1.1 301 Moved Permanently");
  header("Location: " . $url[$uri]);
  exit();
}
{'fraction_non_alphanumeric': 0.17033516758379189, 'fraction_numerical': 0.0560280140070035, 'mean_word_length': 1.6018217306441118, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 42, 'https://': 11, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 24, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1297430', 'n_tokens_mistral': 1477, 'n_tokens_neox': 1291, 'n_words': 111}