<commit_before><?php

function getUserIdByEmail($email)
{
      include "connection.php";

      $uid = -1;
      $sql = "SELECT idUser as uid FROM Users WHERE email = $email";
      $exe = mysql_query( $sql, $myrmconn) or print(mysql_error());
      if($exe != null)
          if($line = mysql_fetch_array($exe))
              $uid = $line['uid'];

      return $uid;
}


function getResearchIdBySectionId($sid)
{
      include "connection.php";
<commit_msg>fixed bug in function getUserIdByEmail<commit_after><?php

function getUserIdByEmail($email)
{
      include "connection.php";

      $uid = -1;
      $sql = "SELECT idUser as uid FROM Users WHERE email = '$email'";
      $exe = mysql_query( $sql, $myrmconn) or print(mysql_error());
      if($exe != null)
          if($line = mysql_fetch_array($exe))
              $uid = $line['uid'];

      return $uid;
}


function getResearchIdBySectionId($sid)
{
      include "connection.php";

{'fraction_non_alphanumeric': 0.1439153439153439, 'fraction_numerical': 0.0021164021164021165, 'mean_word_length': 2.8930041152263373, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 3, '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': '709906', 'n_tokens_mistral': 309, 'n_tokens_neox': 299, 'n_words': 74}