<commit_before>
    <div class="container" id="cont">
        <div class="row">
            <div class="col-md-3" id="avatarcol">
                <img class="img-circle" alt="<?php echo "$name's avatar"?> " src="<?php echo base_url('assets/img/account.png') ?>" width="200" id="myImg">
            </div>
            <div id="myModalpic" class="modal">
              <span class="close" onclick="document.getElementById('myModalpic').style.display='none'">&times;</span>
              <img class="modal-content" id="img01">
              <div id="caption"></div>
            </div>
            <div class="modal fade" id="myModal" role="dialog">
                <div class="modal-dialog">
                    <div class="modal-content">
                        <div class="modal-header">
                          <button type="button" class="close" data-dismiss="modal">&times;</button>
                            <h4 class="modal-title">Comments</h4>
                        </div>
                            <div class="modal-body col-md-12">
                                <div class="col-md-4">
                                    <?php echo $name;?>:
                                </div>
                                <div class="col-md-8">
                                    <input class="form-control" type="text"/>
                                </div>
                            </div>
                        <div class="modal-footer">
                            <button type="button" class="btn btn-info" data-dismiss="modal">
                                <span class="glyphicon glyphicon-edit"></span> Comment
                            </button>
                        </div>
                    </div>
                </div>
            </div>
            <div class="col-md-6" id="nameholder">
                <h1><?php echo $name?></h1></div>
        </div>
        <div>
            <button class="btn btn-primary">Upload Picture</button>
            <button class="btn btn-primary" id="btn">Edit Profile Details</button>
        </div>
        <div class="row" id="profilesecrow">
            <div class="col-md-3 col-md-offset-0">
                <div class="row" id="rowinfo">
                    <div class="col-md-12" id="personalinfo">
                        <div class="row">
                            <div class="col-md-12 col-md-offset-0">
                                <p class="text-info">Personal Information</p>
                            </div>
                        </div>
                        <div class="row">
                            <div class="col-md-12 ">
                                <div class="col-md-1">
                                    <p>School: </p>
                                </div>
                                <div class="col-md-12">
                                    <input type="text" class="form-control" id="schoolField" placeholder="TUP, PNU, ADU"/>
                                </div>
                                <div class="col-md-1">
                                    <p>Birthday: </p>
                                </div>
                                <div class="col-md-12">
                                    <input type="text" class="form-control" id="bdayField" placeholder="01/01/1999" />
                                </div>
                                <div class="col-md-1">
                                    <p id="cont">Contact No:</p>
                                </div>
                                <div class="col-md-12">
                                    <input type="text" class="form-control" id="contactField" placeholder="09*********" />
                                </div>
                                <div class="col-md-1">
                                    <p>Address: </p>
                                </div>
                                <div class="col-md-12">
                                    <input type="text" class="form-control" id="addressField" placeholder="123 Papasa tayo Sa. Defense natin, Manila" />
                                </div>
                                <div class="col-md-1" id="space">
                                    &nbsp;
                                </div>
                                <div class="col-md-12">
                                    <button class="btn btn-success edit" id="save">Save details</button>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
                <div class="row" id="rowfriends">
                    <div class="col-md-12">
                        <p class="lead">Friends </p>
                        <p>Number of friends</p>
                        <h4 class="text-center"> <a href="<?php echo base_url('friendlist') ?>">See all</a></h4></div>
                </div>
            </div>
            <div class="col-md-9">
                <div class="row">
                    <div class="col-md-8" id="feed">

                        <?php
                        if($mate_validate=="USER")
                        {
                            //echo $mate_validate;
                        }
                        elseif($mate_validate=="UNFOLLOW")
                        {
                          ?><form role="form" class="" method="post" action = "<?php echo base_url('profile/modify/'.$m.'')?>">
                            <input name="follow" value="Follow" type="submit">
                           </form><?php
                           $mate_validate = "FOLLOW";
                        }
                        elseif($mate_validate=="FOLLOW")
                        {
                            ?><form role="form" class="" method="post" action = "<?php echo base_url('profile/modify/'.$m.'')?>">
                              <input name="unfollow" value="Unfollow" type="submit">
                             </form><?php

                        }
                        else
                        {
                            echo "ERROR";
                        }


                        if($post!=null)

                        foreach(array_reverse($post) as $p){?>
                        <div class="row" id="story">
                          <div class="col-md-12">
                              <h4><a href=<?php echo base_url('profile/id/'.$p['user_id'].'') ?>><img class="img-circle" src="<?php echo base_url('assets/img/account.png') ?>"
                                 alt="Avatar" width="30"><?php echo $p['name']?></a> &nbsp; <?php echo $p['postdate'] ?></h4></div>

                          <div class="col-md-12" id="activepost">
                              <p id="activepostp"><?php echo $p['body']?></p>
                                <form role="form" class="" method="post" action = "<?php echo base_url('profile/delete/'.$m.'')?>">
                                <button type="button" class="btn btn-primary btn-md">
                                    <span class="glyphicon glyphicon-thumbs-up"></span> Like
                                </button>
                                <button type="button" class="btn btn-info btn-md" data-toggle="modal" data-target="#myModal">
                                    <span class="glyphicon glyphicon-pencil"></span> Comment
                                </button>
                                <?php if($p['user_id']==$this->session->userdata('logged_user'))
                                    {?>
                                <input class="btn btn-danger" id="deletePost" value="Delete" name="delete" value="Delete" type="submit">
                               </form>
                             <?php } ?>
                          </div>
                        </div>
                        <div class="row" id="row_divider"></div>
                        <?php
                        }

                        else
                        {
                            echo'<div class="col-md-12"><h4><center>There is no post</center></h4></div>';
                        }
                        ?>

                    </div>
                </div>
            </div>
        </div>
    </div>

    <script src="<?php echo base_url('bootstrap/js/profilepicmodal.js')?>"></script>

</body>

</html><commit_msg>removed the upload and edit button for profile when visiting other profile<commit_after>
    <div class="container" id="cont">
        <div class="row">
            <div class="col-md-3" id="avatarcol">
                <img class="img-circle" alt="<?php echo "$name's avatar"?> " src="<?php echo base_url('assets/img/account.png') ?>" width="200" id="myImg">
            </div>
            <div id="myModalpic" class="modal">
              <span class="close" onclick="document.getElementById('myModalpic').style.display='none'">&times;</span>
              <img class="modal-content" id="img01">
              <div id="caption"></div>
            </div>
            <div class="modal fade" id="myModal" role="dialog">
                <div class="modal-dialog">
                    <div class="modal-content">
                        <div class="modal-header">
                          <button type="button" class="close" data-dismiss="modal">&times;</button>
                            <h4 class="modal-title">Comments</h4>
                        </div>
                            <div class="modal-body col-md-12">
                                <div class="col-md-4">
                                    <?php echo $name;?>:
                                </div>
                                <div class="col-md-8">
                                    <input class="form-control" type="text"/>
                                </div>
                            </div>
                        <div class="modal-footer">
                            <button type="button" class="btn btn-info" data-dismiss="modal">
                                <span class="glyphicon glyphicon-edit"></span> Comment
                            </button>
                        </div>
                    </div>
                </div>
            </div>
            <div class="col-md-6" id="nameholder">
                <h1><?php echo $name?></h1></div>
        </div>
        <div>
		<?php if($m==$this->session->userdata('logged_user'))
                                    {?>
            <button class="btn btn-primary">Upload Picture</button>
            <button class="btn btn-primary" id="btn">Edit Profile Details</button>
        <?php } 
		
	?>
		</div>
        <div class="row" id="profilesecrow">
            <div class="col-md-3 col-md-offset-0">
                <div class="row" id="rowinfo">
                    <div class="col-md-12" id="personalinfo">
                        <div class="row">
                            <div class="col-md-12 col-md-offset-0">
                                <p class="text-info">Personal Information</p>
                            </div>
                        </div>
                        <div class="row">
                            <div class="col-md-12 ">
                                <div class="col-md-1">
                                    <p>School: </p>
                                </div>
                                <div class="col-md-12">
                                    <input type="text" class="form-control" id="schoolField" placeholder="TUP, PNU, ADU"/>
                                </div>
                                <div class="col-md-1">
                                    <p>Birthday: </p>
                                </div>
                                <div class="col-md-12">
                                    <input type="text" class="form-control" id="bdayField" placeholder="01/01/1999" />
                                </div>
                                <div class="col-md-1">
                                    <p id="cont">Contact No:</p>
                                </div>
                                <div class="col-md-12">
                                    <input type="text" class="form-control" id="contactField" placeholder="09*********" />
                                </div>
                                <div class="col-md-1">
                                    <p>Address: </p>
                                </div>
                                <div class="col-md-12">
                                    <input type="text" class="form-control" id="addressField" placeholder="123 Papasa tayo Sa. Defense natin, Manila" />
                                </div>
                                <div class="col-md-1" id="space">
                                    &nbsp;
                                </div>
                                <div class="col-md-12">
                                    <button class="btn btn-success edit" id="save">Save details</button>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
                <div class="row" id="rowfriends">
                    <div class="col-md-12">
                        <p class="lead">Friends </p>
                        <p>Number of friends</p>
                        <h4 class="text-center"> <a href="<?php echo base_url('friendlist') ?>">See all</a></h4></div>
                </div>
            </div>
            <div class="col-md-9">
                <div class="row">
                    <div class="col-md-8" id="feed">

                        <?php
                        if($mate_validate=="USER")
                        {
                            //echo $mate_validate;
                        }
                        elseif($mate_validate=="UNFOLLOW")
                        {
                          ?><form role="form" class="" method="post" action = "<?php echo base_url('profile/modify/'.$m.'')?>">
                            <input name="follow" value="Follow" type="submit">
                           </form><?php
                           $mate_validate = "FOLLOW";
                        }
                        elseif($mate_validate=="FOLLOW")
                        {
                            ?><form role="form" class="" method="post" action = "<?php echo base_url('profile/modify/'.$m.'')?>">
                              <input name="unfollow" value="Unfollow" type="submit">
                             </form><?php

                        }
                        else
                        {
                            echo "ERROR";
                        }


                        if($post!=null)

                        foreach(array_reverse($post) as $p){?>
                        <div class="row" id="story">
                          <div class="col-md-12">
                              <h4><a href=<?php echo base_url('profile/id/'.$p['user_id'].'') ?>><img class="img-circle" src="<?php echo base_url('assets/img/account.png') ?>"
                                 alt="Avatar" width="30"><?php echo $p['name']?></a> &nbsp; <?php echo $p['postdate'] ?></h4></div>

                          <div class="col-md-12" id="activepost">
                              <p id="activepostp"><?php echo $p['body']?></p>
                                <form role="form" class="" method="post" action = "<?php echo base_url('profile/delete/'.$m.'')?>">
                                <button type="button" class="btn btn-primary btn-md">
                                    <span class="glyphicon glyphicon-thumbs-up"></span> Like
                                </button>
                                <button type="button" class="btn btn-info btn-md" data-toggle="modal" data-target="#myModal">
                                    <span class="glyphicon glyphicon-pencil"></span> Comment
                                </button>
                                <?php if($p['user_id']==$this->session->userdata('logged_user'))
                                    {?>
                                <input class="btn btn-danger" id="deletePost" value="Delete" name="delete" value="Delete" type="submit">
                               </form>
                             <?php } ?>
                          </div>
                        </div>
                        <div class="row" id="row_divider"></div>
                        <?php
                        } 

                        else
                        {
                            echo'<div class="col-md-12"><h4><center>There is no post</center></h4></div>';
                        } 
                        ?>
 
                    </div>
                </div>
            </div> 
        </div> 
    </div> 

    <script src="<?php echo base_url('bootstrap/js/profilepicmodal.js')?>"></script>

</body>

</html>
{'fraction_non_alphanumeric': 0.143909481996582, 'fraction_numerical': 0.0082503388532029, 'mean_word_length': 0.9155660909809233, 'pattern_counts': {'":': 0, '<': 367, '<?xml version=': 0, '>': 373, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 37, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6706279', 'n_tokens_mistral': 4286, 'n_tokens_neox': 3997, 'n_words': 755}