<commit_before><?php
/**
 * Cloudflare adaptor.
 * This module will help the Framework know what actually happends
 * on the client. This will manipulate the PHP's $_SERVER var for
 * detecting IP, SCHEME, and other Usefull tools.
 *
 * @version v1.0
 * @author Kekesed
*/

if(isset($_SERVER['HTTP_CF_CONNECTING_IP']) && isset($_SERVER['HTTP_CF_RAY'])){
  $_SERVER['REMOTE_ADDR'] = $_SERVER['HTTP_CF_CONNECTING_IP'];
  $_SERVER['HTTP_X_REAL_IP'] = $_SERVER['HTTP_CF_CONNECTING_IP'];
  $_SERVER['HTTPS'] = "on";
  if(isset($_SERVER['HTTP_CF_VISITOR']) || !isset($_SERVER['REQUEST_SCHEME']))
    $_SERVER['REQUEST_SCHEME'] = (isset($_SERVER['HTTP_CF_VISITOR']) &&
                 strpos($_SERVER['HTTP_CF_VISITOR'],'https')>-1)?'https':'http';
}<commit_msg>salah httpsnya oakwoawkoawko<commit_after><?php
/**
 * Cloudflare adaptor.
 * This module will help the Framework know what actually happends
 * on the client. This will manipulate the PHP's $_SERVER var for
 * detecting IP, SCHEME, and other Usefull tools.
 *
 * @version v1.0
 * @author Kekesed
*/

if(isset($_SERVER['HTTP_CF_CONNECTING_IP']) && isset($_SERVER['HTTP_CF_RAY'])){
  $_SERVER['REMOTE_ADDR'] = $_SERVER['HTTP_CF_CONNECTING_IP'];
  $_SERVER['HTTP_X_REAL_IP'] = $_SERVER['HTTP_CF_CONNECTING_IP'];

  if(isset($_SERVER['HTTP_CF_VISITOR']) || !isset($_SERVER['REQUEST_SCHEME'])){
    $_SERVER['REQUEST_SCHEME'] = (isset($_SERVER['HTTP_CF_VISITOR']) &&
                 strpos($_SERVER['HTTP_CF_VISITOR'],'https')>-1)?'https':'http';
    $_SERVER['HTTPS'] = "on";
  }
}
{'fraction_non_alphanumeric': 0.1771986970684039, 'fraction_numerical': 0.003908794788273616, 'mean_word_length': 5.826666666666667, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, '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': '4006124', 'n_tokens_mistral': 544, 'n_tokens_neox': 532, 'n_words': 98}