<commit_before><?php
  class share{

    protected $db;
    protected $e;

    public function __construct(){
      try {
        $db = new PDO('mysql:host=127.0.0.1;dbname=instagram;charset=utf8mb4', 'root', 'iamaprogrammer');
        $this->db = $db;
        $this->db->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION);
        $e = $this->e;
      } catch (PDOException $e) {
        echo $e->getMessage();
      }
    }

    public function DidIShareHimTo($post, $user){
      $session = $_SESSION['id'];
      $query = $this->db->prepare("SELECT share_id FROM shares WHERE post_id = :post AND share_by = :by AND share_to = :to");
      $query->execute(array(":post" => $post, ":by" => $session, ":to" => $user));
      $count = $query->rowCount();
      if ($count == 0) {
        return false;
      } else if ($count > 0) {<commit_msg>Update share.class.php<commit_after><?php
  class share{

    protected $db;
    protected $e;

    public function __construct(){
      try {
        $db = new PDO('mysql:host=host;dbname=instagram;charset=utf8mb4', 'user', 'password');
        $this->db = $db;
        $this->db->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION);
        $e = $this->e;
      } catch (PDOException $e) {
        echo $e->getMessage();
      }
    }

    public function DidIShareHimTo($post, $user){
      $session = $_SESSION['id'];
      $query = $this->db->prepare("SELECT share_id FROM shares WHERE post_id = :post AND share_by = :by AND share_to = :to");
      $query->execute(array(":post" => $post, ":by" => $session, ":to" => $user));
      $count = $query->rowCount();
      if ($count == 0) {
        return false;
      } else if ($count > 0) {
{'fraction_non_alphanumeric': 0.1821933962264151, 'fraction_numerical': 0.008254716981132075, 'mean_word_length': 2.779510022271715, 'pattern_counts': {'":': 6, '<': 5, '<?xml version=': 0, '>': 29, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 1, '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': '5909992', 'n_tokens_mistral': 584, 'n_tokens_neox': 573, 'n_words': 129}