<commit_before><?php
/************************************************************
* FILENAME:    ldap.php
* DESCRIPTION: ldap functions for php
* 
* AUTHOR:      <NAME> (Slashdoom)
* LICENSE:     BSD 3-clause (see LICENSE file)
************************************************************/

function ldap_get_members($ldap_fqdn,$ldap_port,$ldap_user,$ldap_pass,$search_group) {

  // enable logging
  $root = realpath(dirname(__FILE__));
  
  include_once(realpath($root.'/../config/config.php'));
  include_once(realpath($root.'/../lib/logging.php'));
  
  echo $root;
  echo $logging_level;
  
  $logger = new logger(realpath($root.'/../log/_ldap.log'),$logging_level);

  // define attributes to keep
  $attributes = array(
    "userprincipalname",<commit_msg>Update ldap.php<commit_after><?php
/************************************************************
* FILENAME:    ldap.php
* DESCRIPTION: ldap functions for php
* 
* AUTHOR:      <NAME> (Slashdoom)
* LICENSE:     BSD 3-clause (see LICENSE file)
************************************************************/

function ldap_get_members($ldap_fqdn,$ldap_port,$ldap_user,$ldap_pass,$search_group) {

  // enable logging
  $root = realpath(dirname(__FILE__));
  
  include_once(realpath($root.'/../config/config.php'));
  include_once(realpath($root.'/../lib/logging.php'));
  
  echo realpath($root.'/../config/config.php');
  echo $logging_level;
  
  $logger = new logger(realpath($root.'/../log/_ldap.log'),$logging_level);

  // define attributes to keep
  $attributes = array(
    "userprincipalname",
{'fraction_non_alphanumeric': 0.2966751918158568, 'fraction_numerical': 0.0012787723785166241, 'mean_word_length': 4.928030303030303, 'pattern_counts': {'":': 0, '<': 7, '<?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': '447492', 'n_tokens_mistral': 503, 'n_tokens_neox': 482, 'n_words': 78}