<commit_before><?php
/**
* User Controller
*
* @author happyoniens
* @author coeci
*
*/

class userController{

}<commit_msg>Added GetUserWithId Function<commit_after><?php
/**
* User Controller
*
* @author happyoniens
* @author coeci
*
*/

class userController{

    /**
    * Get User with Id
    * @param Int Id of User
    * @return User
    */
    public static function getUserWithId($id){
      $sql = "SELECT * FROM user WHERE id = '$id'";
      $result = Flight::db()->query($sql);
      if($result != false){
        return new user($result->fetch_assoc());
      }
    }

}
{'fraction_non_alphanumeric': 0.1541095890410959, 'fraction_numerical': 0.0, 'mean_word_length': 2.9261744966442955, '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': '3194972', 'n_tokens_mistral': 192, 'n_tokens_neox': 191, 'n_words': 49}