<commit_before><?php

header('Access-Control-Allow-Methods: GET');
header('Access-Control-Max-Age: 1000');
header('Content-Type: application/json');

function getRedirectUrl ($url) {
  stream_context_set_default(array(
    'http' => array(
      'method' => 'HEAD'
    )
  ));
  $headers = get_headers($url, 1);
  if ($headers !== false && isset($headers['Location'])) {
    return $headers['Location'];
  }<commit_msg>Allow cross origin for redirect script<commit_after><?php

header('Access-Control-Allow-Methods: GET');
header('Access-Control-Max-Age: 1000');
header('Content-Type: application/json');
header('Access-Control-Allow-Origin: *');

function getRedirectUrl ($url) {
  stream_context_set_default(array(
    'http' => array(
      'method' => 'HEAD'
    )
  ));
  $headers = get_headers($url, 1);
  if ($headers !== false && isset($headers['Location'])) {
    return $headers['Location'];
  }
{'fraction_non_alphanumeric': 0.19226519337016573, 'fraction_numerical': 0.011049723756906077, 'mean_word_length': 4.921568627450981, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 7, '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': '7009789', 'n_tokens_mistral': 293, 'n_tokens_neox': 283, 'n_words': 54}