<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.expertiza.ncsu.edu/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=George2</id>
	<title>Expertiza_Wiki - User contributions [en]</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.expertiza.ncsu.edu/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=George2"/>
	<link rel="alternate" type="text/html" href="https://wiki.expertiza.ncsu.edu/index.php?title=Special:Contributions/George2"/>
	<updated>2026-05-17T07:01:09Z</updated>
	<subtitle>User contributions</subtitle>
	<generator>MediaWiki 1.41.0</generator>
	<entry>
		<id>https://wiki.expertiza.ncsu.edu/index.php?title=CSC/ECE_517_Spring_2017/finalproject_E1744&amp;diff=108663</id>
		<title>CSC/ECE 517 Spring 2017/finalproject E1744</title>
		<link rel="alternate" type="text/html" href="https://wiki.expertiza.ncsu.edu/index.php?title=CSC/ECE_517_Spring_2017/finalproject_E1744&amp;diff=108663"/>
		<updated>2017-04-28T17:48:01Z</updated>

		<summary type="html">&lt;p&gt;George2: /* Database Schema Changes */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;'''CSC517 Final Project - E1744 Github Metrics'''&lt;br /&gt;
&lt;br /&gt;
'''(asorgiu, george2, mdunlap, ygou14)'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Proposed Design Document ==&lt;br /&gt;
&lt;br /&gt;
===Description===&lt;br /&gt;
We will add a new feature to provide Expertiza with Github metrics (for example, number of committers, number of commits, number of lines of code modified, number of lines added, number of lines deleted.) from each group’s submitted repo link.  This information should prove useful for differentiating the performance of team members for grading purposes. It may also help instructors to predict which projects are likely to be accepted/rejected (even before the final due dates).&lt;br /&gt;
&lt;br /&gt;
===Work to be done===&lt;br /&gt;
This project is divided into two parts. One is to extract Github metadata of the submitted repos and pull requests. The second part is to build a classifier (e.g., Bayesian) to do the early prediction on some projects that are likely to fail. This prediction is based on more than 200 past projects (Fall 2012- Fall 2016).  Based on the meta-data from students repos/pull requests, we can warn both authors and teaching staff if our model predicts that some projects are likely to fail.&lt;br /&gt;
&lt;br /&gt;
The methodology of this project is to add a means to monitor the individual contributions of various team members throughout the duration of project in order to quantitatively access their work. This will aid the teaching staff and team members during the review process as well as improve visibility to a student of the work he or she has committed.&lt;br /&gt;
&lt;br /&gt;
=====Extract Github metadata=====&lt;br /&gt;
* First, get an access token from github. Here are the [https://help.github.com/articles/creating-a-personal-access-token-for-the-command-line/ steps]&lt;br /&gt;
* Save the access token in the environment variable 'EXPERTIZA_GITHUB_TOKEN'&lt;br /&gt;
* Now, github data is fetched from github's [https://developer.github.com/v3/repos/statistics/ Statistic API]&lt;br /&gt;
&lt;br /&gt;
=====Architectural Design=====&lt;br /&gt;
This feature has similar functionality with a web crawler, which is crawling the data from a server and store locally. So that for the architectural style of our subsystem, we would like to choose client/server style, which segregates the system into two applications, where the client makes requests to the server whenever a user is looking for the metrics. In many cases, the server is a database with application logic represented as stored procedures, in our case, is Github.&lt;br /&gt;
&lt;br /&gt;
=====UML=====&lt;br /&gt;
[[File:1744 design.png|frame|center|30px|30px]]&lt;br /&gt;
&lt;br /&gt;
=====Database Schema Changes=====&lt;br /&gt;
[[File:1744_db_schema.png|frame|center|30px|30px]]&lt;br /&gt;
&lt;br /&gt;
A new table called '''github_contributors''' is created to store the data for each committer. The table contain's the committer's email, github_id and all the metrics associated with a project. At the moment we handle the following metrics:&lt;br /&gt;
* Committer email - commiter_url&lt;br /&gt;
* Committer id - commiter_id&lt;br /&gt;
* Total number of commits - total_commits&lt;br /&gt;
* Number of files changed - files_changed&lt;br /&gt;
* Lines of code changed - lines_changed&lt;br /&gt;
* Lines of code added - lines_added&lt;br /&gt;
* Lines of code removed - lines_removed&lt;br /&gt;
* Lines of code added that survived until final submission - lines_persisted.&lt;br /&gt;
* submission_record_id - Foreign Key to '''submission_records''' table.&lt;br /&gt;
&lt;br /&gt;
An index on committer_id is added to enable search.&lt;br /&gt;
&lt;br /&gt;
====Test Plan====&lt;br /&gt;
&lt;br /&gt;
The tests will use rspec to validate the response to the metrics from github and displaying the various metrics. These tests will be test the data in new tables '''github_contributors''' with foreign key to '''submission_records'''.&lt;br /&gt;
&lt;br /&gt;
# Test 1: &lt;br /&gt;
## Login as instructor6&lt;br /&gt;
## Go to submission page&lt;br /&gt;
## Validate that metrics are pulled in from github&lt;br /&gt;
# Test 2:&lt;br /&gt;
## Login as student&lt;br /&gt;
## Go to submission page&lt;br /&gt;
## Confirm the student's metrics values&lt;br /&gt;
&lt;br /&gt;
=====Unit Tests=====&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
! colspan=&amp;quot;3&amp;quot; | Unit Test Summary&lt;br /&gt;
|-&lt;br /&gt;
! Method&lt;br /&gt;
! Parameter&lt;br /&gt;
! Expected result&lt;br /&gt;
|-&lt;br /&gt;
| show&lt;br /&gt;
| submission_id with valid github hyperlink&lt;br /&gt;
| Github Metrics and status code 200&lt;br /&gt;
|-&lt;br /&gt;
| show&lt;br /&gt;
| submission_id with file uploaded&lt;br /&gt;
| render 'github_contributors/not_found'&lt;br /&gt;
|-&lt;br /&gt;
| show&lt;br /&gt;
| submission_id with non github hyperlink&lt;br /&gt;
| render 'github_contributors/not_found'&lt;br /&gt;
|-&lt;br /&gt;
| show&lt;br /&gt;
| submission_id with private github hyperlink&lt;br /&gt;
| render 'github_contributors/not_found'&lt;br /&gt;
|-&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
====Build a classifier====&lt;br /&gt;
THIS WILL NOT BE IMPLEMENTED AS PART OF THIS PROJECT.  This is future work to be done.&lt;/div&gt;</summary>
		<author><name>George2</name></author>
	</entry>
	<entry>
		<id>https://wiki.expertiza.ncsu.edu/index.php?title=CSC/ECE_517_Spring_2017/finalproject_E1744&amp;diff=108662</id>
		<title>CSC/ECE 517 Spring 2017/finalproject E1744</title>
		<link rel="alternate" type="text/html" href="https://wiki.expertiza.ncsu.edu/index.php?title=CSC/ECE_517_Spring_2017/finalproject_E1744&amp;diff=108662"/>
		<updated>2017-04-28T17:47:19Z</updated>

		<summary type="html">&lt;p&gt;George2: /* Test Plan */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;'''CSC517 Final Project - E1744 Github Metrics'''&lt;br /&gt;
&lt;br /&gt;
'''(asorgiu, george2, mdunlap, ygou14)'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Proposed Design Document ==&lt;br /&gt;
&lt;br /&gt;
===Description===&lt;br /&gt;
We will add a new feature to provide Expertiza with Github metrics (for example, number of committers, number of commits, number of lines of code modified, number of lines added, number of lines deleted.) from each group’s submitted repo link.  This information should prove useful for differentiating the performance of team members for grading purposes. It may also help instructors to predict which projects are likely to be accepted/rejected (even before the final due dates).&lt;br /&gt;
&lt;br /&gt;
===Work to be done===&lt;br /&gt;
This project is divided into two parts. One is to extract Github metadata of the submitted repos and pull requests. The second part is to build a classifier (e.g., Bayesian) to do the early prediction on some projects that are likely to fail. This prediction is based on more than 200 past projects (Fall 2012- Fall 2016).  Based on the meta-data from students repos/pull requests, we can warn both authors and teaching staff if our model predicts that some projects are likely to fail.&lt;br /&gt;
&lt;br /&gt;
The methodology of this project is to add a means to monitor the individual contributions of various team members throughout the duration of project in order to quantitatively access their work. This will aid the teaching staff and team members during the review process as well as improve visibility to a student of the work he or she has committed.&lt;br /&gt;
&lt;br /&gt;
=====Extract Github metadata=====&lt;br /&gt;
* First, get an access token from github. Here are the [https://help.github.com/articles/creating-a-personal-access-token-for-the-command-line/ steps]&lt;br /&gt;
* Save the access token in the environment variable 'EXPERTIZA_GITHUB_TOKEN'&lt;br /&gt;
* Now, github data is fetched from github's [https://developer.github.com/v3/repos/statistics/ Statistic API]&lt;br /&gt;
&lt;br /&gt;
=====Architectural Design=====&lt;br /&gt;
This feature has similar functionality with a web crawler, which is crawling the data from a server and store locally. So that for the architectural style of our subsystem, we would like to choose client/server style, which segregates the system into two applications, where the client makes requests to the server whenever a user is looking for the metrics. In many cases, the server is a database with application logic represented as stored procedures, in our case, is Github.&lt;br /&gt;
&lt;br /&gt;
=====UML=====&lt;br /&gt;
[[File:1744 design.png|frame|center|30px|30px]]&lt;br /&gt;
&lt;br /&gt;
=====Database Schema Changes=====&lt;br /&gt;
[[File:1744_db_schema.png|frame|center|30px|30px]]&lt;br /&gt;
&lt;br /&gt;
A new table called '''github_contributors''' is created to store the data for each committer. The table contain's the committer's email, github_id and all the metrics associated with a project. At the moment we handle the following metrics:&lt;br /&gt;
* Committer email - commiter_url&lt;br /&gt;
* Committer id - commiter_id&lt;br /&gt;
* Total number of commits - total_commits&lt;br /&gt;
* Number of files changed - files_changed&lt;br /&gt;
* Lines of code changed - lines_changed&lt;br /&gt;
* Lines of code added - lines_added&lt;br /&gt;
* Lines of code removed - lines_removed&lt;br /&gt;
* Lines of code added that survived until final submission - lines_persisted.&lt;br /&gt;
&lt;br /&gt;
An index on committer_id is added to enable search.&lt;br /&gt;
&lt;br /&gt;
A new table called '''submission_records_github_contributors''' which acts as a reference between the '''submission_records''' and '''github_contributors''' tables. It has two columns:&lt;br /&gt;
* github_contributor_id - Foreign Key to '''github_contributors''' table.&lt;br /&gt;
* submission_record_id - Foreign Key to '''submission_records''' table.&lt;br /&gt;
&lt;br /&gt;
A composite unique key constraint is added on ''github_contributor_id'' and ''submission_record_id''.&lt;br /&gt;
&lt;br /&gt;
====Test Plan====&lt;br /&gt;
&lt;br /&gt;
The tests will use rspec to validate the response to the metrics from github and displaying the various metrics. These tests will be test the data in new tables '''github_contributors''' with foreign key to '''submission_records'''.&lt;br /&gt;
&lt;br /&gt;
# Test 1: &lt;br /&gt;
## Login as instructor6&lt;br /&gt;
## Go to submission page&lt;br /&gt;
## Validate that metrics are pulled in from github&lt;br /&gt;
# Test 2:&lt;br /&gt;
## Login as student&lt;br /&gt;
## Go to submission page&lt;br /&gt;
## Confirm the student's metrics values&lt;br /&gt;
&lt;br /&gt;
=====Unit Tests=====&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
! colspan=&amp;quot;3&amp;quot; | Unit Test Summary&lt;br /&gt;
|-&lt;br /&gt;
! Method&lt;br /&gt;
! Parameter&lt;br /&gt;
! Expected result&lt;br /&gt;
|-&lt;br /&gt;
| show&lt;br /&gt;
| submission_id with valid github hyperlink&lt;br /&gt;
| Github Metrics and status code 200&lt;br /&gt;
|-&lt;br /&gt;
| show&lt;br /&gt;
| submission_id with file uploaded&lt;br /&gt;
| render 'github_contributors/not_found'&lt;br /&gt;
|-&lt;br /&gt;
| show&lt;br /&gt;
| submission_id with non github hyperlink&lt;br /&gt;
| render 'github_contributors/not_found'&lt;br /&gt;
|-&lt;br /&gt;
| show&lt;br /&gt;
| submission_id with private github hyperlink&lt;br /&gt;
| render 'github_contributors/not_found'&lt;br /&gt;
|-&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
====Build a classifier====&lt;br /&gt;
THIS WILL NOT BE IMPLEMENTED AS PART OF THIS PROJECT.  This is future work to be done.&lt;/div&gt;</summary>
		<author><name>George2</name></author>
	</entry>
	<entry>
		<id>https://wiki.expertiza.ncsu.edu/index.php?title=CSC/ECE_517_Spring_2017/finalproject_E1744&amp;diff=108661</id>
		<title>CSC/ECE 517 Spring 2017/finalproject E1744</title>
		<link rel="alternate" type="text/html" href="https://wiki.expertiza.ncsu.edu/index.php?title=CSC/ECE_517_Spring_2017/finalproject_E1744&amp;diff=108661"/>
		<updated>2017-04-28T17:46:05Z</updated>

		<summary type="html">&lt;p&gt;George2: /* Unit Tests */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;'''CSC517 Final Project - E1744 Github Metrics'''&lt;br /&gt;
&lt;br /&gt;
'''(asorgiu, george2, mdunlap, ygou14)'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Proposed Design Document ==&lt;br /&gt;
&lt;br /&gt;
===Description===&lt;br /&gt;
We will add a new feature to provide Expertiza with Github metrics (for example, number of committers, number of commits, number of lines of code modified, number of lines added, number of lines deleted.) from each group’s submitted repo link.  This information should prove useful for differentiating the performance of team members for grading purposes. It may also help instructors to predict which projects are likely to be accepted/rejected (even before the final due dates).&lt;br /&gt;
&lt;br /&gt;
===Work to be done===&lt;br /&gt;
This project is divided into two parts. One is to extract Github metadata of the submitted repos and pull requests. The second part is to build a classifier (e.g., Bayesian) to do the early prediction on some projects that are likely to fail. This prediction is based on more than 200 past projects (Fall 2012- Fall 2016).  Based on the meta-data from students repos/pull requests, we can warn both authors and teaching staff if our model predicts that some projects are likely to fail.&lt;br /&gt;
&lt;br /&gt;
The methodology of this project is to add a means to monitor the individual contributions of various team members throughout the duration of project in order to quantitatively access their work. This will aid the teaching staff and team members during the review process as well as improve visibility to a student of the work he or she has committed.&lt;br /&gt;
&lt;br /&gt;
=====Extract Github metadata=====&lt;br /&gt;
* First, get an access token from github. Here are the [https://help.github.com/articles/creating-a-personal-access-token-for-the-command-line/ steps]&lt;br /&gt;
* Save the access token in the environment variable 'EXPERTIZA_GITHUB_TOKEN'&lt;br /&gt;
* Now, github data is fetched from github's [https://developer.github.com/v3/repos/statistics/ Statistic API]&lt;br /&gt;
&lt;br /&gt;
=====Architectural Design=====&lt;br /&gt;
This feature has similar functionality with a web crawler, which is crawling the data from a server and store locally. So that for the architectural style of our subsystem, we would like to choose client/server style, which segregates the system into two applications, where the client makes requests to the server whenever a user is looking for the metrics. In many cases, the server is a database with application logic represented as stored procedures, in our case, is Github.&lt;br /&gt;
&lt;br /&gt;
=====UML=====&lt;br /&gt;
[[File:1744 design.png|frame|center|30px|30px]]&lt;br /&gt;
&lt;br /&gt;
=====Database Schema Changes=====&lt;br /&gt;
[[File:1744_db_schema.png|frame|center|30px|30px]]&lt;br /&gt;
&lt;br /&gt;
A new table called '''github_contributors''' is created to store the data for each committer. The table contain's the committer's email, github_id and all the metrics associated with a project. At the moment we handle the following metrics:&lt;br /&gt;
* Committer email - commiter_url&lt;br /&gt;
* Committer id - commiter_id&lt;br /&gt;
* Total number of commits - total_commits&lt;br /&gt;
* Number of files changed - files_changed&lt;br /&gt;
* Lines of code changed - lines_changed&lt;br /&gt;
* Lines of code added - lines_added&lt;br /&gt;
* Lines of code removed - lines_removed&lt;br /&gt;
* Lines of code added that survived until final submission - lines_persisted.&lt;br /&gt;
&lt;br /&gt;
An index on committer_id is added to enable search.&lt;br /&gt;
&lt;br /&gt;
A new table called '''submission_records_github_contributors''' which acts as a reference between the '''submission_records''' and '''github_contributors''' tables. It has two columns:&lt;br /&gt;
* github_contributor_id - Foreign Key to '''github_contributors''' table.&lt;br /&gt;
* submission_record_id - Foreign Key to '''submission_records''' table.&lt;br /&gt;
&lt;br /&gt;
A composite unique key constraint is added on ''github_contributor_id'' and ''submission_record_id''.&lt;br /&gt;
&lt;br /&gt;
====Test Plan====&lt;br /&gt;
&lt;br /&gt;
The tests will use rspec to validate the response to the metrics from github and displaying the various metrics. These tests will be test the data in new tables '''submission_records_github_contributors''' and '''github_contributors''' as well as expand the existing tests on '''submission_records'''.&lt;br /&gt;
&lt;br /&gt;
# Test 1: &lt;br /&gt;
## Login as instructor6&lt;br /&gt;
## Go to submission page&lt;br /&gt;
## Validate that metrics are pulled in from github&lt;br /&gt;
# Test 2:&lt;br /&gt;
## Login as student&lt;br /&gt;
## Go to submission page&lt;br /&gt;
## Confirm the student's metrics values&lt;br /&gt;
&lt;br /&gt;
=====Unit Tests=====&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
! colspan=&amp;quot;3&amp;quot; | Unit Test Summary&lt;br /&gt;
|-&lt;br /&gt;
! Method&lt;br /&gt;
! Parameter&lt;br /&gt;
! Expected result&lt;br /&gt;
|-&lt;br /&gt;
| show&lt;br /&gt;
| submission_id with valid github hyperlink&lt;br /&gt;
| Github Metrics and status code 200&lt;br /&gt;
|-&lt;br /&gt;
| show&lt;br /&gt;
| submission_id with file uploaded&lt;br /&gt;
| render 'github_contributors/not_found'&lt;br /&gt;
|-&lt;br /&gt;
| show&lt;br /&gt;
| submission_id with non github hyperlink&lt;br /&gt;
| render 'github_contributors/not_found'&lt;br /&gt;
|-&lt;br /&gt;
| show&lt;br /&gt;
| submission_id with private github hyperlink&lt;br /&gt;
| render 'github_contributors/not_found'&lt;br /&gt;
|-&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
====Build a classifier====&lt;br /&gt;
THIS WILL NOT BE IMPLEMENTED AS PART OF THIS PROJECT.  This is future work to be done.&lt;/div&gt;</summary>
		<author><name>George2</name></author>
	</entry>
	<entry>
		<id>https://wiki.expertiza.ncsu.edu/index.php?title=CSC/ECE_517_Spring_2017/finalproject_E1744&amp;diff=108660</id>
		<title>CSC/ECE 517 Spring 2017/finalproject E1744</title>
		<link rel="alternate" type="text/html" href="https://wiki.expertiza.ncsu.edu/index.php?title=CSC/ECE_517_Spring_2017/finalproject_E1744&amp;diff=108660"/>
		<updated>2017-04-28T17:23:41Z</updated>

		<summary type="html">&lt;p&gt;George2: /* Extract Github metadata */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;'''CSC517 Final Project - E1744 Github Metrics'''&lt;br /&gt;
&lt;br /&gt;
'''(asorgiu, george2, mdunlap, ygou14)'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Proposed Design Document ==&lt;br /&gt;
&lt;br /&gt;
===Description===&lt;br /&gt;
We will add a new feature to provide Expertiza with Github metrics (for example, number of committers, number of commits, number of lines of code modified, number of lines added, number of lines deleted.) from each group’s submitted repo link.  This information should prove useful for differentiating the performance of team members for grading purposes. It may also help instructors to predict which projects are likely to be accepted/rejected (even before the final due dates).&lt;br /&gt;
&lt;br /&gt;
===Work to be done===&lt;br /&gt;
This project is divided into two parts. One is to extract Github metadata of the submitted repos and pull requests. The second part is to build a classifier (e.g., Bayesian) to do the early prediction on some projects that are likely to fail. This prediction is based on more than 200 past projects (Fall 2012- Fall 2016).  Based on the meta-data from students repos/pull requests, we can warn both authors and teaching staff if our model predicts that some projects are likely to fail.&lt;br /&gt;
&lt;br /&gt;
The methodology of this project is to add a means to monitor the individual contributions of various team members throughout the duration of project in order to quantitatively access their work. This will aid the teaching staff and team members during the review process as well as improve visibility to a student of the work he or she has committed.&lt;br /&gt;
&lt;br /&gt;
=====Extract Github metadata=====&lt;br /&gt;
* First, get an access token from github. Here are the [https://help.github.com/articles/creating-a-personal-access-token-for-the-command-line/ steps]&lt;br /&gt;
* Save the access token in the environment variable 'EXPERTIZA_GITHUB_TOKEN'&lt;br /&gt;
* Now, github data is fetched from github's [https://developer.github.com/v3/repos/statistics/ Statistic API]&lt;br /&gt;
&lt;br /&gt;
=====Architectural Design=====&lt;br /&gt;
This feature has similar functionality with a web crawler, which is crawling the data from a server and store locally. So that for the architectural style of our subsystem, we would like to choose client/server style, which segregates the system into two applications, where the client makes requests to the server whenever a user is looking for the metrics. In many cases, the server is a database with application logic represented as stored procedures, in our case, is Github.&lt;br /&gt;
&lt;br /&gt;
=====UML=====&lt;br /&gt;
[[File:1744 design.png|frame|center|30px|30px]]&lt;br /&gt;
&lt;br /&gt;
=====Database Schema Changes=====&lt;br /&gt;
[[File:1744_db_schema.png|frame|center|30px|30px]]&lt;br /&gt;
&lt;br /&gt;
A new table called '''github_contributors''' is created to store the data for each committer. The table contain's the committer's email, github_id and all the metrics associated with a project. At the moment we handle the following metrics:&lt;br /&gt;
* Committer email - commiter_url&lt;br /&gt;
* Committer id - commiter_id&lt;br /&gt;
* Total number of commits - total_commits&lt;br /&gt;
* Number of files changed - files_changed&lt;br /&gt;
* Lines of code changed - lines_changed&lt;br /&gt;
* Lines of code added - lines_added&lt;br /&gt;
* Lines of code removed - lines_removed&lt;br /&gt;
* Lines of code added that survived until final submission - lines_persisted.&lt;br /&gt;
&lt;br /&gt;
An index on committer_id is added to enable search.&lt;br /&gt;
&lt;br /&gt;
A new table called '''submission_records_github_contributors''' which acts as a reference between the '''submission_records''' and '''github_contributors''' tables. It has two columns:&lt;br /&gt;
* github_contributor_id - Foreign Key to '''github_contributors''' table.&lt;br /&gt;
* submission_record_id - Foreign Key to '''submission_records''' table.&lt;br /&gt;
&lt;br /&gt;
A composite unique key constraint is added on ''github_contributor_id'' and ''submission_record_id''.&lt;br /&gt;
&lt;br /&gt;
====Test Plan====&lt;br /&gt;
&lt;br /&gt;
The tests will use rspec to validate the response to the metrics from github and displaying the various metrics. These tests will be test the data in new tables '''submission_records_github_contributors''' and '''github_contributors''' as well as expand the existing tests on '''submission_records'''.&lt;br /&gt;
&lt;br /&gt;
# Test 1: &lt;br /&gt;
## Login as instructor6&lt;br /&gt;
## Go to submission page&lt;br /&gt;
## Validate that metrics are pulled in from github&lt;br /&gt;
# Test 2:&lt;br /&gt;
## Login as student&lt;br /&gt;
## Go to submission page&lt;br /&gt;
## Confirm the student's metrics values&lt;br /&gt;
&lt;br /&gt;
=====Unit Tests=====&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
! colspan=&amp;quot;3&amp;quot; | Unit Test Summary&lt;br /&gt;
|-&lt;br /&gt;
! Method&lt;br /&gt;
! Parameter&lt;br /&gt;
! Expected result&lt;br /&gt;
|-&lt;br /&gt;
| get_metrics&lt;br /&gt;
| team_id = null&lt;br /&gt;
| Null / Exception&lt;br /&gt;
|-&lt;br /&gt;
| get_metrics&lt;br /&gt;
| team_id = Invalid team_id&lt;br /&gt;
| Null / Exception&lt;br /&gt;
|-&lt;br /&gt;
| get_metrics&lt;br /&gt;
| team_id = valid_team_id&lt;br /&gt;
| List of metrics for all the committers in the team.&lt;br /&gt;
|-&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
====Build a classifier====&lt;br /&gt;
THIS WILL NOT BE IMPLEMENTED AS PART OF THIS PROJECT.  This is future work to be done.&lt;/div&gt;</summary>
		<author><name>George2</name></author>
	</entry>
	<entry>
		<id>https://wiki.expertiza.ncsu.edu/index.php?title=CSC/ECE_517_Spring_2017/finalproject_E1744&amp;diff=108659</id>
		<title>CSC/ECE 517 Spring 2017/finalproject E1744</title>
		<link rel="alternate" type="text/html" href="https://wiki.expertiza.ncsu.edu/index.php?title=CSC/ECE_517_Spring_2017/finalproject_E1744&amp;diff=108659"/>
		<updated>2017-04-28T17:19:14Z</updated>

		<summary type="html">&lt;p&gt;George2: /* Work to be done */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;'''CSC517 Final Project - E1744 Github Metrics'''&lt;br /&gt;
&lt;br /&gt;
'''(asorgiu, george2, mdunlap, ygou14)'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Proposed Design Document ==&lt;br /&gt;
&lt;br /&gt;
===Description===&lt;br /&gt;
We will add a new feature to provide Expertiza with Github metrics (for example, number of committers, number of commits, number of lines of code modified, number of lines added, number of lines deleted.) from each group’s submitted repo link.  This information should prove useful for differentiating the performance of team members for grading purposes. It may also help instructors to predict which projects are likely to be accepted/rejected (even before the final due dates).&lt;br /&gt;
&lt;br /&gt;
===Work to be done===&lt;br /&gt;
This project is divided into two parts. One is to extract Github metadata of the submitted repos and pull requests. The second part is to build a classifier (e.g., Bayesian) to do the early prediction on some projects that are likely to fail. This prediction is based on more than 200 past projects (Fall 2012- Fall 2016).  Based on the meta-data from students repos/pull requests, we can warn both authors and teaching staff if our model predicts that some projects are likely to fail.&lt;br /&gt;
&lt;br /&gt;
The methodology of this project is to add a means to monitor the individual contributions of various team members throughout the duration of project in order to quantitatively access their work. This will aid the teaching staff and team members during the review process as well as improve visibility to a student of the work he or she has committed.&lt;br /&gt;
&lt;br /&gt;
=====Extract Github metadata=====&lt;br /&gt;
* First, get an access token from github. Here are the [steps](https://help.github.com/articles/creating-a-personal-access-token-for-the-command-line/) &lt;br /&gt;
* Save the access token in the environment variable 'EXPERTIZA_GITHUB_TOKEN'&lt;br /&gt;
* Now, github data is fetched from github's [statistic API](https://developer.github.com/v3/repos/statistics/)&lt;br /&gt;
&lt;br /&gt;
=====Architectural Design=====&lt;br /&gt;
This feature has similar functionality with a web crawler, which is crawling the data from a server and store locally. So that for the architectural style of our subsystem, we would like to choose client/server style, which segregates the system into two applications, where the client makes requests to the server whenever a user is looking for the metrics. In many cases, the server is a database with application logic represented as stored procedures, in our case, is Github.&lt;br /&gt;
&lt;br /&gt;
=====UML=====&lt;br /&gt;
[[File:1744 design.png|frame|center|30px|30px]]&lt;br /&gt;
&lt;br /&gt;
=====Database Schema Changes=====&lt;br /&gt;
[[File:1744_db_schema.png|frame|center|30px|30px]]&lt;br /&gt;
&lt;br /&gt;
A new table called '''github_contributors''' is created to store the data for each committer. The table contain's the committer's email, github_id and all the metrics associated with a project. At the moment we handle the following metrics:&lt;br /&gt;
* Committer email - commiter_url&lt;br /&gt;
* Committer id - commiter_id&lt;br /&gt;
* Total number of commits - total_commits&lt;br /&gt;
* Number of files changed - files_changed&lt;br /&gt;
* Lines of code changed - lines_changed&lt;br /&gt;
* Lines of code added - lines_added&lt;br /&gt;
* Lines of code removed - lines_removed&lt;br /&gt;
* Lines of code added that survived until final submission - lines_persisted.&lt;br /&gt;
&lt;br /&gt;
An index on committer_id is added to enable search.&lt;br /&gt;
&lt;br /&gt;
A new table called '''submission_records_github_contributors''' which acts as a reference between the '''submission_records''' and '''github_contributors''' tables. It has two columns:&lt;br /&gt;
* github_contributor_id - Foreign Key to '''github_contributors''' table.&lt;br /&gt;
* submission_record_id - Foreign Key to '''submission_records''' table.&lt;br /&gt;
&lt;br /&gt;
A composite unique key constraint is added on ''github_contributor_id'' and ''submission_record_id''.&lt;br /&gt;
&lt;br /&gt;
====Test Plan====&lt;br /&gt;
&lt;br /&gt;
The tests will use rspec to validate the response to the metrics from github and displaying the various metrics. These tests will be test the data in new tables '''submission_records_github_contributors''' and '''github_contributors''' as well as expand the existing tests on '''submission_records'''.&lt;br /&gt;
&lt;br /&gt;
# Test 1: &lt;br /&gt;
## Login as instructor6&lt;br /&gt;
## Go to submission page&lt;br /&gt;
## Validate that metrics are pulled in from github&lt;br /&gt;
# Test 2:&lt;br /&gt;
## Login as student&lt;br /&gt;
## Go to submission page&lt;br /&gt;
## Confirm the student's metrics values&lt;br /&gt;
&lt;br /&gt;
=====Unit Tests=====&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
! colspan=&amp;quot;3&amp;quot; | Unit Test Summary&lt;br /&gt;
|-&lt;br /&gt;
! Method&lt;br /&gt;
! Parameter&lt;br /&gt;
! Expected result&lt;br /&gt;
|-&lt;br /&gt;
| get_metrics&lt;br /&gt;
| team_id = null&lt;br /&gt;
| Null / Exception&lt;br /&gt;
|-&lt;br /&gt;
| get_metrics&lt;br /&gt;
| team_id = Invalid team_id&lt;br /&gt;
| Null / Exception&lt;br /&gt;
|-&lt;br /&gt;
| get_metrics&lt;br /&gt;
| team_id = valid_team_id&lt;br /&gt;
| List of metrics for all the committers in the team.&lt;br /&gt;
|-&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
====Build a classifier====&lt;br /&gt;
THIS WILL NOT BE IMPLEMENTED AS PART OF THIS PROJECT.  This is future work to be done.&lt;/div&gt;</summary>
		<author><name>George2</name></author>
	</entry>
	<entry>
		<id>https://wiki.expertiza.ncsu.edu/index.php?title=CSC/ECE_517_Spring_2017/finalproject_E1744&amp;diff=108658</id>
		<title>CSC/ECE 517 Spring 2017/finalproject E1744</title>
		<link rel="alternate" type="text/html" href="https://wiki.expertiza.ncsu.edu/index.php?title=CSC/ECE_517_Spring_2017/finalproject_E1744&amp;diff=108658"/>
		<updated>2017-04-28T17:01:38Z</updated>

		<summary type="html">&lt;p&gt;George2: /* Data Flow */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;'''CSC517 Final Project - E1744 Github Metrics'''&lt;br /&gt;
&lt;br /&gt;
'''(asorgiu, george2, mdunlap, ygou14)'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Proposed Design Document ==&lt;br /&gt;
&lt;br /&gt;
===Description===&lt;br /&gt;
We will add a new feature to provide Expertiza with Github metrics (for example, number of committers, number of commits, number of lines of code modified, number of lines added, number of lines deleted.) from each group’s submitted repo link.  This information should prove useful for differentiating the performance of team members for grading purposes. It may also help instructors to predict which projects are likely to be accepted/rejected (even before the final due dates).&lt;br /&gt;
&lt;br /&gt;
===Work to be done===&lt;br /&gt;
This project is divided into two parts. One is to extract Github metadata of the submitted repos and pull requests. The second part is to build a classifier (e.g., Bayesian) to do the early prediction on some projects that are likely to fail. This prediction is based on more than 200 past projects (Fall 2012- Fall 2016).  Based on the meta-data from students repos/pull requests, we can warn both authors and teaching staff if our model predicts that some projects are likely to fail.&lt;br /&gt;
&lt;br /&gt;
The methodology of this project is to add a means to monitor the individual contributions of various team members throughout the duration of project in order to quantitatively access their work. This will aid the teaching staff and team members during the review process as well as improve visibility to a student of the work he or she has committed.&lt;br /&gt;
&lt;br /&gt;
====Extract Github metadata====&lt;br /&gt;
&lt;br /&gt;
=====Architectural Design=====&lt;br /&gt;
This feature has similar functionality with a web crawler, which is crawling the data from a server and store locally. So that for the architectural style of our subsystem, we would like to choose client/server style, which segregates the system into two applications, where the client makes requests to the server whenever a user is looking for the metrics. In many cases, the server is a database with application logic represented as stored procedures, in our case, is Github.&lt;br /&gt;
&lt;br /&gt;
=====UML=====&lt;br /&gt;
[[File:1744 design.png|frame|center|30px|30px]]&lt;br /&gt;
&lt;br /&gt;
=====Database Schema Changes=====&lt;br /&gt;
[[File:1744_db_schema.png|frame|center|30px|30px]]&lt;br /&gt;
&lt;br /&gt;
A new table called '''github_contributors''' is created to store the data for each committer. The table contain's the committer's email, github_id and all the metrics associated with a project. At the moment we handle the following metrics:&lt;br /&gt;
* Committer email - commiter_url&lt;br /&gt;
* Committer id - commiter_id&lt;br /&gt;
* Total number of commits - total_commits&lt;br /&gt;
* Number of files changed - files_changed&lt;br /&gt;
* Lines of code changed - lines_changed&lt;br /&gt;
* Lines of code added - lines_added&lt;br /&gt;
* Lines of code removed - lines_removed&lt;br /&gt;
* Lines of code added that survived until final submission - lines_persisted.&lt;br /&gt;
&lt;br /&gt;
An index on committer_id is added to enable search.&lt;br /&gt;
&lt;br /&gt;
A new table called '''submission_records_github_contributors''' which acts as a reference between the '''submission_records''' and '''github_contributors''' tables. It has two columns:&lt;br /&gt;
* github_contributor_id - Foreign Key to '''github_contributors''' table.&lt;br /&gt;
* submission_record_id - Foreign Key to '''submission_records''' table.&lt;br /&gt;
&lt;br /&gt;
A composite unique key constraint is added on ''github_contributor_id'' and ''submission_record_id''.&lt;br /&gt;
&lt;br /&gt;
====Test Plan====&lt;br /&gt;
&lt;br /&gt;
The tests will use rspec to validate the response to the metrics from github and displaying the various metrics. These tests will be test the data in new tables '''submission_records_github_contributors''' and '''github_contributors''' as well as expand the existing tests on '''submission_records'''.&lt;br /&gt;
&lt;br /&gt;
# Test 1: &lt;br /&gt;
## Login as instructor6&lt;br /&gt;
## Go to submission page&lt;br /&gt;
## Validate that metrics are pulled in from github&lt;br /&gt;
# Test 2:&lt;br /&gt;
## Login as student&lt;br /&gt;
## Go to submission page&lt;br /&gt;
## Confirm the student's metrics values&lt;br /&gt;
&lt;br /&gt;
=====Unit Tests=====&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
! colspan=&amp;quot;3&amp;quot; | Unit Test Summary&lt;br /&gt;
|-&lt;br /&gt;
! Method&lt;br /&gt;
! Parameter&lt;br /&gt;
! Expected result&lt;br /&gt;
|-&lt;br /&gt;
| get_metrics&lt;br /&gt;
| team_id = null&lt;br /&gt;
| Null / Exception&lt;br /&gt;
|-&lt;br /&gt;
| get_metrics&lt;br /&gt;
| team_id = Invalid team_id&lt;br /&gt;
| Null / Exception&lt;br /&gt;
|-&lt;br /&gt;
| get_metrics&lt;br /&gt;
| team_id = valid_team_id&lt;br /&gt;
| List of metrics for all the committers in the team.&lt;br /&gt;
|-&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
====Build a classifier====&lt;br /&gt;
THIS WILL NOT BE IMPLEMENTED AS PART OF THIS PROJECT.  This is future work to be done.&lt;/div&gt;</summary>
		<author><name>George2</name></author>
	</entry>
	<entry>
		<id>https://wiki.expertiza.ncsu.edu/index.php?title=File:1744_db_schema.png&amp;diff=108594</id>
		<title>File:1744 db schema.png</title>
		<link rel="alternate" type="text/html" href="https://wiki.expertiza.ncsu.edu/index.php?title=File:1744_db_schema.png&amp;diff=108594"/>
		<updated>2017-04-17T19:46:24Z</updated>

		<summary type="html">&lt;p&gt;George2: uploaded a new version of &amp;amp;quot;File:1744 db schema.png&amp;amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;/div&gt;</summary>
		<author><name>George2</name></author>
	</entry>
	<entry>
		<id>https://wiki.expertiza.ncsu.edu/index.php?title=CSC/ECE_517_Spring_2017/finalproject_E1744&amp;diff=108354</id>
		<title>CSC/ECE 517 Spring 2017/finalproject E1744</title>
		<link rel="alternate" type="text/html" href="https://wiki.expertiza.ncsu.edu/index.php?title=CSC/ECE_517_Spring_2017/finalproject_E1744&amp;diff=108354"/>
		<updated>2017-04-12T22:16:13Z</updated>

		<summary type="html">&lt;p&gt;George2: /* Database Schema Changes */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;'''CSC517 Final Project - E1744 Github Metrics'''&lt;br /&gt;
&lt;br /&gt;
'''(asorgiu, george2, mdunlap, ygou14)'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Proposed Design Document ==&lt;br /&gt;
&lt;br /&gt;
===Description===&lt;br /&gt;
We will add a new feature to provide Expertiza with Github metrics (for example, number of committers, number of commits, number of lines of code modified, number of lines added, number of lines deleted.) from each group’s submitted repo link.  This information should prove useful for differentiating the performance of team members for grading purposes. It may also help instructors to predict which projects are likely to be merged.&lt;br /&gt;
&lt;br /&gt;
===Work to be done===&lt;br /&gt;
This project is divided into two parts. One is to extract Github metadata of the submitted repos and pull requests. The second part is to build a classifier (e.g., Bayesian) to do the early prediction on some projects that are likely to fail. This prediction is based on more than 200 past projects. The features above should be used, together with some temporal features (e.g. the temporal pattern of this team’s commits so far).  Eventually, we would like to e-mail students whose metrics are bad, giving them advice on how to improve.&lt;br /&gt;
&lt;br /&gt;
The purpose of this project is to add a means to monitor the individual contributions of various team members throughout the duration of project in order to quantitatively access their work. This will aid the teaching staff and team members during the review process as well as improve visibility to a student of the work he or she has committed.&lt;br /&gt;
&lt;br /&gt;
====Extract Github metadata====&lt;br /&gt;
&lt;br /&gt;
=====Data Flow=====&lt;br /&gt;
&lt;br /&gt;
The code should sync the data with Github whenever someone (student or instructor) looks at a view that shows Github data.&lt;br /&gt;
&lt;br /&gt;
=====Architectural Design=====&lt;br /&gt;
This feature has similar functionality with a web crawler, which is crawling the data from a server and store locally. So that for the architectural style of our subsystem, we would like to choose client/server style, which segregates the system into two applications, where the client makes requests to the server whenever a user is looking for the metrics. In many cases, the server is a database with application logic represented as stored procedures, in our case, is Github.&lt;br /&gt;
&lt;br /&gt;
=====UML=====&lt;br /&gt;
[[File:1744 design.png|frame|center|30px|30px]]&lt;br /&gt;
&lt;br /&gt;
=====Database Schema Changes=====&lt;br /&gt;
[[File:1744_db_schema.png|frame|center|30px|30px]]&lt;br /&gt;
&lt;br /&gt;
A new table called '''github_contributors''' is created to store the data for each committer. The table contain's the committer's email, github_id and all the metrics associated with a project. At the moment we handle the following metrics:&lt;br /&gt;
* Committer email - commiter_url&lt;br /&gt;
* Committer id - commiter_id&lt;br /&gt;
* Total number of commits - total_commits&lt;br /&gt;
* Number of files changed - files_changed&lt;br /&gt;
* Lines of code changed - lines_changed&lt;br /&gt;
* Lines of code added - lines_added&lt;br /&gt;
* Lines of code removed - lines_removed&lt;br /&gt;
* Lines of code added that survived until final submission - lines_persisted.&lt;br /&gt;
&lt;br /&gt;
An index on committer_id is added to enable search.&lt;br /&gt;
&lt;br /&gt;
A new table called '''submission_records_github_contributors''' which acts as a reference between the '''submission_records''' and '''github_contributors''' tables. It has two columns:&lt;br /&gt;
* github_contributor_id - Foreign Key to '''github_contributors''' table.&lt;br /&gt;
* submission_record_id - Foreign Key to '''submission_records''' table.&lt;br /&gt;
&lt;br /&gt;
A composite unique key constraint is added on ''github_contributor_id'' and ''submission_record_id''.&lt;br /&gt;
&lt;br /&gt;
====Test Plan====&lt;br /&gt;
&lt;br /&gt;
The tests will use stubs to simulate the number of commits from github and displaying the various metrics. These tests will be test the data in new tables '''submission_records_github_contributors''' and '''github_contributors''' as well as expand the existing tests on '''submission_records'''.&lt;br /&gt;
&lt;br /&gt;
# Test 1: &lt;br /&gt;
## Login as instructor6&lt;br /&gt;
## Go to submission page&lt;br /&gt;
## Validate that metrics are pulled in from github&lt;br /&gt;
# Test 2:&lt;br /&gt;
## Login as student&lt;br /&gt;
## Go to submission page&lt;br /&gt;
## Confirm the student's metrics values&lt;br /&gt;
&lt;br /&gt;
=====Unit Tests=====&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
! colspan=&amp;quot;3&amp;quot; | Unit Test Summary&lt;br /&gt;
|-&lt;br /&gt;
! Method&lt;br /&gt;
! Parameter&lt;br /&gt;
! Expected result&lt;br /&gt;
|-&lt;br /&gt;
| get_metrics&lt;br /&gt;
| team_id = null&lt;br /&gt;
| Null / Exception&lt;br /&gt;
|-&lt;br /&gt;
| get_metrics&lt;br /&gt;
| team_id = Invalid team_id&lt;br /&gt;
| Null / Exception&lt;br /&gt;
|-&lt;br /&gt;
| get_metrics&lt;br /&gt;
| team_id = valid_team_id&lt;br /&gt;
| List of metrics for all the committers in the team.&lt;br /&gt;
|-&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
====Build a classifier====&lt;br /&gt;
THIS WILL NOT BE IMPLEMENTED AS PART OF THIS PROJECT.  This is future work to be done.&lt;/div&gt;</summary>
		<author><name>George2</name></author>
	</entry>
	<entry>
		<id>https://wiki.expertiza.ncsu.edu/index.php?title=File:1744_db_schema.png&amp;diff=108353</id>
		<title>File:1744 db schema.png</title>
		<link rel="alternate" type="text/html" href="https://wiki.expertiza.ncsu.edu/index.php?title=File:1744_db_schema.png&amp;diff=108353"/>
		<updated>2017-04-12T22:15:35Z</updated>

		<summary type="html">&lt;p&gt;George2: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;/div&gt;</summary>
		<author><name>George2</name></author>
	</entry>
	<entry>
		<id>https://wiki.expertiza.ncsu.edu/index.php?title=CSC/ECE_517_Spring_2017/finalproject_E1744&amp;diff=108349</id>
		<title>CSC/ECE 517 Spring 2017/finalproject E1744</title>
		<link rel="alternate" type="text/html" href="https://wiki.expertiza.ncsu.edu/index.php?title=CSC/ECE_517_Spring_2017/finalproject_E1744&amp;diff=108349"/>
		<updated>2017-04-12T22:01:34Z</updated>

		<summary type="html">&lt;p&gt;George2: /* Database Schema Changes */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;'''CSC517 Final Project - E1744 Github Metrics'''&lt;br /&gt;
&lt;br /&gt;
'''(asorgiu, george2, mdunlap, ygou14)'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Proposed Design Document ==&lt;br /&gt;
&lt;br /&gt;
===Description===&lt;br /&gt;
We will add a new feature to provide Expertiza with Github metrics (for example, number of committers, number of commits, number of lines of code modified, number of lines added, number of lines deleted.) from each group’s submitted repo link.  This information should prove useful for differentiating the performance of team members for grading purposes. It may also help instructors to predict which projects are likely to be merged.&lt;br /&gt;
&lt;br /&gt;
===Work to be done===&lt;br /&gt;
This project is divided into two parts. One is to extract Github metadata of the submitted repos and pull requests. The second part is to build a classifier (e.g., Bayesian) to do the early prediction on some projects that are likely to fail. This prediction is based on more than 200 past projects. The features above should be used, together with some temporal features (e.g. the temporal pattern of this team’s commits so far).  Eventually, we would like to e-mail students whose metrics are bad, giving them advice on how to improve.&lt;br /&gt;
&lt;br /&gt;
The purpose of this project is to add a means to monitor the individual contributions of various team members throughout the duration of project in order to quantitatively access their work. This will aid the teaching staff and team members during the review process as well as improve visibility to a student of the work he or she has committed.&lt;br /&gt;
&lt;br /&gt;
====Extract Github metadata====&lt;br /&gt;
&lt;br /&gt;
=====Data Flow=====&lt;br /&gt;
&lt;br /&gt;
The code should sync the data with Github whenever someone (student or instructor) looks at a view that shows Github data.&lt;br /&gt;
&lt;br /&gt;
=====Architectural Design=====&lt;br /&gt;
This feature has similar functionality with a web crawler, which is crawling the data from a server and store locally. So that for the architectural style of our subsystem, we would like to choose client/server style, which segregates the system into two applications, where the client makes requests to the server whenever a user is looking for the metrics. In many cases, the server is a database with application logic represented as stored procedures, in our case, is Github.&lt;br /&gt;
&lt;br /&gt;
=====UML=====&lt;br /&gt;
[[File:1744 design.png|frame|center|30px|30px]]&lt;br /&gt;
&lt;br /&gt;
=====Database Schema Changes=====&lt;br /&gt;
[[File:Database.png|frame|center|15px|15px]]&lt;br /&gt;
&lt;br /&gt;
A new table called '''github_contributors''' is created to store the data for each committer. The table contain's the committer's email, github_id and all the metrics associated with a project. At the moment we handle the following metrics:&lt;br /&gt;
* Committer email - commiter_url&lt;br /&gt;
* Committer id - commiter_id&lt;br /&gt;
* Total number of commits - total_commits&lt;br /&gt;
* Number of files changed - files_changed&lt;br /&gt;
* Lines of code changed - lines_changed&lt;br /&gt;
* Lines of code added - lines_added&lt;br /&gt;
* Lines of code removed - lines_removed&lt;br /&gt;
* Lines of code added that survived until final submission - lines_persisted.&lt;br /&gt;
&lt;br /&gt;
An index on committer_id is added to enable search.&lt;br /&gt;
&lt;br /&gt;
A new table called '''submission_records_github_contributors''' which acts as a reference between the '''submission_records''' and '''github_contributors''' tables. It has two columns:&lt;br /&gt;
* github_contributor_id - Foreign Key to '''github_contributors''' table.&lt;br /&gt;
* submission_record_id - Foreign Key to '''submission_records''' table.&lt;br /&gt;
&lt;br /&gt;
A composite unique key constraint is added on ''github_contributor_id'' and ''submission_record_id''.&lt;br /&gt;
&lt;br /&gt;
====Test Plan====&lt;br /&gt;
&lt;br /&gt;
The tests will use stubs to simulate the number of commits from github and displaying the various metrics. These tests will be test the data in new tables '''submission_records_github_contributors''' and '''github_contributors''' as well as expand the existing tests on '''submission_records'''.&lt;br /&gt;
&lt;br /&gt;
# Test 1: &lt;br /&gt;
## Login as instructor6&lt;br /&gt;
## Go to submission page&lt;br /&gt;
## Validate that metrics are pulled in from github&lt;br /&gt;
# Test 2:&lt;br /&gt;
## Login as student&lt;br /&gt;
## Go to submission page&lt;br /&gt;
## Confirm the student's metrics values&lt;br /&gt;
&lt;br /&gt;
=====Unit Tests=====&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
! colspan=&amp;quot;3&amp;quot; | Unit Test Summary&lt;br /&gt;
|-&lt;br /&gt;
! Method&lt;br /&gt;
! Parameter&lt;br /&gt;
! Expected result&lt;br /&gt;
|-&lt;br /&gt;
| get_metrics&lt;br /&gt;
| team_id = null&lt;br /&gt;
| Null / Exception&lt;br /&gt;
|-&lt;br /&gt;
| get_metrics&lt;br /&gt;
| team_id = Invalid team_id&lt;br /&gt;
| Null / Exception&lt;br /&gt;
|-&lt;br /&gt;
| get_metrics&lt;br /&gt;
| team_id = valid_team_id&lt;br /&gt;
| List of metrics for all the committers in the team.&lt;br /&gt;
|-&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
====Build a classifier====&lt;br /&gt;
THIS WILL NOT BE IMPLEMENTED AS PART OF THIS PROJECT.  This is future work to be done.&lt;/div&gt;</summary>
		<author><name>George2</name></author>
	</entry>
	<entry>
		<id>https://wiki.expertiza.ncsu.edu/index.php?title=CSC/ECE_517_Spring_2017/finalproject_E1744&amp;diff=108348</id>
		<title>CSC/ECE 517 Spring 2017/finalproject E1744</title>
		<link rel="alternate" type="text/html" href="https://wiki.expertiza.ncsu.edu/index.php?title=CSC/ECE_517_Spring_2017/finalproject_E1744&amp;diff=108348"/>
		<updated>2017-04-12T22:01:22Z</updated>

		<summary type="html">&lt;p&gt;George2: /* Database Schema Changes */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;'''CSC517 Final Project - E1744 Github Metrics'''&lt;br /&gt;
&lt;br /&gt;
'''(asorgiu, george2, mdunlap, ygou14)'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Proposed Design Document ==&lt;br /&gt;
&lt;br /&gt;
===Description===&lt;br /&gt;
We will add a new feature to provide Expertiza with Github metrics (for example, number of committers, number of commits, number of lines of code modified, number of lines added, number of lines deleted.) from each group’s submitted repo link.  This information should prove useful for differentiating the performance of team members for grading purposes. It may also help instructors to predict which projects are likely to be merged.&lt;br /&gt;
&lt;br /&gt;
===Work to be done===&lt;br /&gt;
This project is divided into two parts. One is to extract Github metadata of the submitted repos and pull requests. The second part is to build a classifier (e.g., Bayesian) to do the early prediction on some projects that are likely to fail. This prediction is based on more than 200 past projects. The features above should be used, together with some temporal features (e.g. the temporal pattern of this team’s commits so far).  Eventually, we would like to e-mail students whose metrics are bad, giving them advice on how to improve.&lt;br /&gt;
&lt;br /&gt;
The purpose of this project is to add a means to monitor the individual contributions of various team members throughout the duration of project in order to quantitatively access their work. This will aid the teaching staff and team members during the review process as well as improve visibility to a student of the work he or she has committed.&lt;br /&gt;
&lt;br /&gt;
====Extract Github metadata====&lt;br /&gt;
&lt;br /&gt;
=====Data Flow=====&lt;br /&gt;
&lt;br /&gt;
The code should sync the data with Github whenever someone (student or instructor) looks at a view that shows Github data.&lt;br /&gt;
&lt;br /&gt;
=====Architectural Design=====&lt;br /&gt;
This feature has similar functionality with a web crawler, which is crawling the data from a server and store locally. So that for the architectural style of our subsystem, we would like to choose client/server style, which segregates the system into two applications, where the client makes requests to the server whenever a user is looking for the metrics. In many cases, the server is a database with application logic represented as stored procedures, in our case, is Github.&lt;br /&gt;
&lt;br /&gt;
=====UML=====&lt;br /&gt;
[[File:1744 design.png|frame|center|30px|30px]]&lt;br /&gt;
&lt;br /&gt;
=====Database Schema Changes=====&lt;br /&gt;
[[File:Database.png|frame|center|30px|30px]]&lt;br /&gt;
&lt;br /&gt;
A new table called '''github_contributors''' is created to store the data for each committer. The table contain's the committer's email, github_id and all the metrics associated with a project. At the moment we handle the following metrics:&lt;br /&gt;
* Committer email - commiter_url&lt;br /&gt;
* Committer id - commiter_id&lt;br /&gt;
* Total number of commits - total_commits&lt;br /&gt;
* Number of files changed - files_changed&lt;br /&gt;
* Lines of code changed - lines_changed&lt;br /&gt;
* Lines of code added - lines_added&lt;br /&gt;
* Lines of code removed - lines_removed&lt;br /&gt;
* Lines of code added that survived until final submission - lines_persisted.&lt;br /&gt;
&lt;br /&gt;
An index on committer_id is added to enable search.&lt;br /&gt;
&lt;br /&gt;
A new table called '''submission_records_github_contributors''' which acts as a reference between the '''submission_records''' and '''github_contributors''' tables. It has two columns:&lt;br /&gt;
* github_contributor_id - Foreign Key to '''github_contributors''' table.&lt;br /&gt;
* submission_record_id - Foreign Key to '''submission_records''' table.&lt;br /&gt;
&lt;br /&gt;
A composite unique key constraint is added on ''github_contributor_id'' and ''submission_record_id''.&lt;br /&gt;
&lt;br /&gt;
====Test Plan====&lt;br /&gt;
&lt;br /&gt;
The tests will use stubs to simulate the number of commits from github and displaying the various metrics. These tests will be test the data in new tables '''submission_records_github_contributors''' and '''github_contributors''' as well as expand the existing tests on '''submission_records'''.&lt;br /&gt;
&lt;br /&gt;
# Test 1: &lt;br /&gt;
## Login as instructor6&lt;br /&gt;
## Go to submission page&lt;br /&gt;
## Validate that metrics are pulled in from github&lt;br /&gt;
# Test 2:&lt;br /&gt;
## Login as student&lt;br /&gt;
## Go to submission page&lt;br /&gt;
## Confirm the student's metrics values&lt;br /&gt;
&lt;br /&gt;
=====Unit Tests=====&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
! colspan=&amp;quot;3&amp;quot; | Unit Test Summary&lt;br /&gt;
|-&lt;br /&gt;
! Method&lt;br /&gt;
! Parameter&lt;br /&gt;
! Expected result&lt;br /&gt;
|-&lt;br /&gt;
| get_metrics&lt;br /&gt;
| team_id = null&lt;br /&gt;
| Null / Exception&lt;br /&gt;
|-&lt;br /&gt;
| get_metrics&lt;br /&gt;
| team_id = Invalid team_id&lt;br /&gt;
| Null / Exception&lt;br /&gt;
|-&lt;br /&gt;
| get_metrics&lt;br /&gt;
| team_id = valid_team_id&lt;br /&gt;
| List of metrics for all the committers in the team.&lt;br /&gt;
|-&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
====Build a classifier====&lt;br /&gt;
THIS WILL NOT BE IMPLEMENTED AS PART OF THIS PROJECT.  This is future work to be done.&lt;/div&gt;</summary>
		<author><name>George2</name></author>
	</entry>
	<entry>
		<id>https://wiki.expertiza.ncsu.edu/index.php?title=File:Database.png&amp;diff=108347</id>
		<title>File:Database.png</title>
		<link rel="alternate" type="text/html" href="https://wiki.expertiza.ncsu.edu/index.php?title=File:Database.png&amp;diff=108347"/>
		<updated>2017-04-12T21:59:51Z</updated>

		<summary type="html">&lt;p&gt;George2: uploaded a new version of &amp;amp;quot;File:Database.png&amp;amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Database Schema&lt;/div&gt;</summary>
		<author><name>George2</name></author>
	</entry>
	<entry>
		<id>https://wiki.expertiza.ncsu.edu/index.php?title=CSC/ECE_517_Spring_2017/finalproject_E1744&amp;diff=108345</id>
		<title>CSC/ECE 517 Spring 2017/finalproject E1744</title>
		<link rel="alternate" type="text/html" href="https://wiki.expertiza.ncsu.edu/index.php?title=CSC/ECE_517_Spring_2017/finalproject_E1744&amp;diff=108345"/>
		<updated>2017-04-12T21:54:43Z</updated>

		<summary type="html">&lt;p&gt;George2: /* Test Plan */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;'''CSC517 Final Project - E1744 Github Metrics'''&lt;br /&gt;
&lt;br /&gt;
'''(asorgiu, george2, mdunlap, ygou14)'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Proposed Design Document ==&lt;br /&gt;
&lt;br /&gt;
===Description===&lt;br /&gt;
We will add a new feature to provide Expertiza with Github metrics (for example, number of committers, number of commits, number of lines of code modified, number of lines added, number of lines deleted.) from each group’s submitted repo link.  This information should prove useful for differentiating the performance of team members for grading purposes. It may also help instructors to predict which projects are likely to be merged.&lt;br /&gt;
&lt;br /&gt;
===Work to be done===&lt;br /&gt;
This project is divided into two parts. One is to extract Github metadata of the submitted repos and pull requests. The second part is to build a classifier (e.g., Bayesian) to do the early prediction on some projects that are likely to fail. This prediction is based on more than 200 past projects. The features above should be used, together with some temporal features (e.g. the temporal pattern of this team’s commits so far).  Eventually, we would like to e-mail students whose metrics are bad, giving them advice on how to improve.&lt;br /&gt;
&lt;br /&gt;
The purpose of this project is to add a means to monitor the individual contributions of various team members throughout the duration of project in order to quantitatively access their work. This will aid the teaching staff and team members during the review process as well as improve visibility to a student of the work he or she has committed.&lt;br /&gt;
&lt;br /&gt;
====Extract Github metadata====&lt;br /&gt;
&lt;br /&gt;
=====Data Flow=====&lt;br /&gt;
&lt;br /&gt;
The code should sync the data with Github whenever someone (student or instructor) looks at a view that shows Github data.&lt;br /&gt;
&lt;br /&gt;
=====Architectural Design=====&lt;br /&gt;
This feature has similar functionality with a web crawler, which is crawling the data from a server and store locally. So that for the architectural style of our subsystem, we would like to choose client/server style, which segregates the system into two applications, where the client makes requests to the server whenever a user is looking for the metrics. In many cases, the server is a database with application logic represented as stored procedures, in our case, is Github.&lt;br /&gt;
&lt;br /&gt;
=====UML=====&lt;br /&gt;
[[File:1744 design.png|frame|center|30px|30px]]&lt;br /&gt;
&lt;br /&gt;
=====Database Schema Changes=====&lt;br /&gt;
[[File:db_github_schema.png|frame|center]]&lt;br /&gt;
&lt;br /&gt;
A new table called '''github_contributors''' is created to store the data for each committer. The table contain's the committer's email, github_id and all the metrics associated with a project. At the moment we handle the following metrics:&lt;br /&gt;
* Committer email - commiter_url&lt;br /&gt;
* Committer id - commiter_id&lt;br /&gt;
* Total number of commits - total_commits&lt;br /&gt;
* Number of files changed - files_changed&lt;br /&gt;
* Lines of code changed - lines_changed&lt;br /&gt;
* Lines of code added - lines_added&lt;br /&gt;
* Lines of code removed - lines_removed&lt;br /&gt;
* Lines of code added that survived until final submission - lines_persisted.&lt;br /&gt;
&lt;br /&gt;
An index on committer_id is added to enable search.&lt;br /&gt;
&lt;br /&gt;
A new table called '''submission_records_github_contributors''' which acts as a reference between the '''submission_records''' and '''github_contributors''' tables. It has two columns:&lt;br /&gt;
* github_contributor_id - Foreign Key to '''github_contributors''' table.&lt;br /&gt;
* submission_record_id - Foreign Key to '''submission_records''' table.&lt;br /&gt;
&lt;br /&gt;
A composite unique key constraint is added on ''github_contributor_id'' and ''submission_record_id''.&lt;br /&gt;
&lt;br /&gt;
====Test Plan====&lt;br /&gt;
&lt;br /&gt;
The tests will use stubs to simulate the number of commits from github and displaying the various metrics. These tests will be test the data in new tables '''submission_records_github_contributors''' and '''github_contributors''' as well as expand the existing tests on '''submission_records'''.&lt;br /&gt;
&lt;br /&gt;
# Test 1: &lt;br /&gt;
## Login as instructor6&lt;br /&gt;
## Go to submission page&lt;br /&gt;
## Validate that metrics are pulled in from github&lt;br /&gt;
# Test 2:&lt;br /&gt;
## Login as student&lt;br /&gt;
## Go to submission page&lt;br /&gt;
## Confirm the student's metrics values&lt;br /&gt;
&lt;br /&gt;
=====Unit Tests=====&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
! colspan=&amp;quot;3&amp;quot; | Unit Test Summary&lt;br /&gt;
|-&lt;br /&gt;
! Method&lt;br /&gt;
! Parameter&lt;br /&gt;
! Expected result&lt;br /&gt;
|-&lt;br /&gt;
| get_metrics&lt;br /&gt;
| team_id = null&lt;br /&gt;
| Null / Exception&lt;br /&gt;
|-&lt;br /&gt;
| get_metrics&lt;br /&gt;
| team_id = Invalid team_id&lt;br /&gt;
| Null / Exception&lt;br /&gt;
|-&lt;br /&gt;
| get_metrics&lt;br /&gt;
| team_id = valid_team_id&lt;br /&gt;
| List of metrics for all the committers in the team.&lt;br /&gt;
|-&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
====Build a classifier====&lt;br /&gt;
THIS WILL NOT BE IMPLEMENTED AS PART OF THIS PROJECT.  This is future work to be done.&lt;/div&gt;</summary>
		<author><name>George2</name></author>
	</entry>
	<entry>
		<id>https://wiki.expertiza.ncsu.edu/index.php?title=CSC/ECE_517_Spring_2017/finalproject_E1744&amp;diff=108336</id>
		<title>CSC/ECE 517 Spring 2017/finalproject E1744</title>
		<link rel="alternate" type="text/html" href="https://wiki.expertiza.ncsu.edu/index.php?title=CSC/ECE_517_Spring_2017/finalproject_E1744&amp;diff=108336"/>
		<updated>2017-04-12T21:41:39Z</updated>

		<summary type="html">&lt;p&gt;George2: /* Test Plan */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;'''CSC517 Final Project - E1744 Github Metrics'''&lt;br /&gt;
&lt;br /&gt;
'''(asorgiu, george2, mdunlap, ygou14)'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Proposed Design Document ==&lt;br /&gt;
&lt;br /&gt;
===Description===&lt;br /&gt;
We will add a new feature to provide Expertiza with Github metrics (for example, number of committers, number of commits, number of lines of code modified, number of lines added, number of lines deleted.) from each group’s submitted repo link.  This information should prove useful for differentiating the performance of team members for grading purposes. It may also help instructors to predict which projects are likely to be merged.&lt;br /&gt;
&lt;br /&gt;
===Work to be done===&lt;br /&gt;
This project is divided into two parts. One is to extract Github metadata of the submitted repos and pull requests. The second part is to build a classifier (e.g., Bayesian) to do the early prediction on some projects that are likely to fail. This prediction is based on more than 200 past projects. The features above should be used, together with some temporal features (e.g. the temporal pattern of this team’s commits so far).  Eventually, we would like to e-mail students whose metrics are bad, giving them advice on how to improve.&lt;br /&gt;
&lt;br /&gt;
The purpose of this project is to add a means to monitor the individual contributions of various team members throughout the duration of project in order to quantitatively access their work. This will aid the teaching staff and team members during the review process as well as improve visibility to a student of the work he or she has committed.&lt;br /&gt;
&lt;br /&gt;
====Extract Github metadata====&lt;br /&gt;
&lt;br /&gt;
=====Data Flow=====&lt;br /&gt;
&lt;br /&gt;
The code should sync the data with Github whenever someone (student or instructor) looks at a view that shows Github data.&lt;br /&gt;
&lt;br /&gt;
=====Architectural Design=====&lt;br /&gt;
This feature has similar functionality with a web crawler, which is crawling the data from a server and store locally. So that for the architectural style of our subsystem, we would like to choose client/server style, which segregates the system into two applications, where the client makes requests to the server whenever a user is looking for the metrics. In many cases, the server is a database with application logic represented as stored procedures, in our case, is Github.&lt;br /&gt;
&lt;br /&gt;
=====UML=====&lt;br /&gt;
[[File:1744 design.png|frame|center|30px|30px]]&lt;br /&gt;
&lt;br /&gt;
=====Database Schema Changes=====&lt;br /&gt;
[[File:db_github_schema.png|frame|center]]&lt;br /&gt;
&lt;br /&gt;
A new table called '''github_contributors''' is created to store the data for each committer. The table contain's the committer's email, github_id and all the metrics associated with a project. At the moment we handle the following metrics:&lt;br /&gt;
* Committer email - commiter_url&lt;br /&gt;
* Committer id - commiter_id&lt;br /&gt;
* Total number of commits - total_commits&lt;br /&gt;
* Number of files changed - files_changed&lt;br /&gt;
* Lines of code changed - lines_changed&lt;br /&gt;
* Lines of code added - lines_added&lt;br /&gt;
* Lines of code removed - lines_removed&lt;br /&gt;
* Lines of code added that survived until final submission - lines_persisted.&lt;br /&gt;
&lt;br /&gt;
An index on committer_id is added to enable search.&lt;br /&gt;
&lt;br /&gt;
A new table called '''submission_records_github_contributors''' which acts as a reference between the '''submission_records''' and '''github_contributors''' tables. It has two columns:&lt;br /&gt;
* github_contributor_id - Foreign Key to '''github_contributors''' table.&lt;br /&gt;
* submission_record_id - Foreign Key to '''submission_records''' table.&lt;br /&gt;
&lt;br /&gt;
A composite unique key constraint is added on ''github_contributor_id'' and ''submission_record_id''.&lt;br /&gt;
&lt;br /&gt;
=====Test Plan=====&lt;br /&gt;
&lt;br /&gt;
The tests will use stubs to simulate the number of commits from github and displaying the various metrics. These tests will be test the data in new tables '''submission_records_github_contributors''' and '''github_contributors''' as well as expand the existing tests on '''submission_records'''.&lt;br /&gt;
&lt;br /&gt;
# Test 1: &lt;br /&gt;
## Login as instructor6&lt;br /&gt;
## Go to submission page&lt;br /&gt;
## Validate that metrics are pulled in from github&lt;br /&gt;
# Test 2:&lt;br /&gt;
## Login as student&lt;br /&gt;
## Go to submission page&lt;br /&gt;
## Confirm the student's metrics values&lt;br /&gt;
&lt;br /&gt;
====Build a classifier====&lt;br /&gt;
THIS WILL NOT BE IMPLEMENTED AS PART OF THIS PROJECT.  This is future work to be done.&lt;/div&gt;</summary>
		<author><name>George2</name></author>
	</entry>
	<entry>
		<id>https://wiki.expertiza.ncsu.edu/index.php?title=CSC/ECE_517_Spring_2017/finalproject_E1744&amp;diff=108334</id>
		<title>CSC/ECE 517 Spring 2017/finalproject E1744</title>
		<link rel="alternate" type="text/html" href="https://wiki.expertiza.ncsu.edu/index.php?title=CSC/ECE_517_Spring_2017/finalproject_E1744&amp;diff=108334"/>
		<updated>2017-04-12T21:34:56Z</updated>

		<summary type="html">&lt;p&gt;George2: /* Extract Github metadata */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;'''CSC517 Final Project - E1744 Github Metrics'''&lt;br /&gt;
&lt;br /&gt;
'''(asorgiu, george2, mdunlap, ygou14)'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Proposed Design Document ==&lt;br /&gt;
&lt;br /&gt;
===Description===&lt;br /&gt;
We will add a new feature to provide Expertiza with Github metrics (for example, number of committers, number of commits, number of lines of code modified, number of lines added, number of lines deleted.) from each group’s submitted repo link.  This information should prove useful for differentiating the performance of team members for grading purposes. It may also help instructors to predict which projects are likely to be merged.&lt;br /&gt;
&lt;br /&gt;
===Work to be done===&lt;br /&gt;
This project is divided into two parts. One is to extract Github metadata of the submitted repos and pull requests. The second part is to build a classifier (e.g., Bayesian) to do the early prediction on some projects that are likely to fail. This prediction is based on more than 200 past projects. The features above should be used, together with some temporal features (e.g. the temporal pattern of this team’s commits so far).  Eventually, we would like to e-mail students whose metrics are bad, giving them advice on how to improve.&lt;br /&gt;
&lt;br /&gt;
The purpose of this project is to add a means to monitor the individual contributions of various team members throughout the duration of project in order to quantitatively access their work. This will aid the teaching staff and team members during the review process as well as improve visibility to a student of the work he or she has committed.&lt;br /&gt;
&lt;br /&gt;
====Extract Github metadata====&lt;br /&gt;
&lt;br /&gt;
=====Data Flow=====&lt;br /&gt;
&lt;br /&gt;
The code should sync the data with Github whenever someone (student or instructor) looks at a view that shows Github data.&lt;br /&gt;
&lt;br /&gt;
=====Architectural Design=====&lt;br /&gt;
This feature has similar functionality with a web crawler, which is crawling the data from a server and store locally. So that for the architectural style of our subsystem, we would like to choose client/server style, which segregates the system into two applications, where the client makes requests to the server whenever a user is looking for the metrics. In many cases, the server is a database with application logic represented as stored procedures, in our case, is Github.&lt;br /&gt;
&lt;br /&gt;
=====UML=====&lt;br /&gt;
[[File:1744 design.png|frame|center|30px|30px]]&lt;br /&gt;
&lt;br /&gt;
=====Database Schema Changes=====&lt;br /&gt;
[[File:db_github_schema.png|frame|center]]&lt;br /&gt;
&lt;br /&gt;
A new table called '''github_contributors''' is created to store the data for each committer. The table contain's the committer's email, github_id and all the metrics associated with a project. At the moment we handle the following metrics:&lt;br /&gt;
* Committer email - commiter_url&lt;br /&gt;
* Committer id - commiter_id&lt;br /&gt;
* Total number of commits - total_commits&lt;br /&gt;
* Number of files changed - files_changed&lt;br /&gt;
* Lines of code changed - lines_changed&lt;br /&gt;
* Lines of code added - lines_added&lt;br /&gt;
* Lines of code removed - lines_removed&lt;br /&gt;
* Lines of code added that survived until final submission - lines_persisted.&lt;br /&gt;
&lt;br /&gt;
An index on committer_id is added to enable search.&lt;br /&gt;
&lt;br /&gt;
A new table called '''submission_records_github_contributors''' which acts as a reference between the '''submission_records''' and '''github_contributors''' tables. It has two columns:&lt;br /&gt;
* github_contributor_id - Foreign Key to '''github_contributors''' table.&lt;br /&gt;
* submission_record_id - Foreign Key to '''submission_records''' table.&lt;br /&gt;
&lt;br /&gt;
A composite unique key constraint is added on ''github_contributor_id'' and ''submission_record_id''.&lt;br /&gt;
&lt;br /&gt;
=====Test Plan=====&lt;br /&gt;
&lt;br /&gt;
The tests will use stubs to simulate the number of commits from github and displaying the various metrics. These tests will be test the data in new tables '''submission_records_github_contributors''' and '''github_contributors''' as well as expand the existing tests on '''submission_records'''.&lt;br /&gt;
&lt;br /&gt;
Test 1: &lt;br /&gt;
1. Login as instructor6&lt;br /&gt;
2. Go to submission page&lt;br /&gt;
3. Validate that metrics are pulled in from github&lt;br /&gt;
&lt;br /&gt;
Test 2:&lt;br /&gt;
1. Login as student&lt;br /&gt;
2. Go to submission page&lt;br /&gt;
3. Confirm the student's metrics values&lt;br /&gt;
&lt;br /&gt;
====Build a classifier====&lt;br /&gt;
THIS WILL NOT BE IMPLEMENTED AS PART OF THIS PROJECT.  This is future work to be done.&lt;/div&gt;</summary>
		<author><name>George2</name></author>
	</entry>
	<entry>
		<id>https://wiki.expertiza.ncsu.edu/index.php?title=CSC/ECE_517_Spring_2017/finalproject_E1744&amp;diff=107991</id>
		<title>CSC/ECE 517 Spring 2017/finalproject E1744</title>
		<link rel="alternate" type="text/html" href="https://wiki.expertiza.ncsu.edu/index.php?title=CSC/ECE_517_Spring_2017/finalproject_E1744&amp;diff=107991"/>
		<updated>2017-04-07T03:15:26Z</updated>

		<summary type="html">&lt;p&gt;George2: /* Database Schema Changes */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;'''CSC517 Final Project - E1744 Github Metrics'''&lt;br /&gt;
&lt;br /&gt;
'''(asorgiu, george2, mdunlap, ygou14)'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Proposed Design Document ==&lt;br /&gt;
&lt;br /&gt;
===Description===&lt;br /&gt;
We will add a new feature to provide Expertiza with Github metrics (for example, number of committers, number of commits, number of lines of code modified, number of lines added, number of lines deleted.) from each group’s submitted repo link.  This information should prove useful for differentiating the performance of team members for grading purposes. It may also help instructors to predict which projects are likely to be merged.&lt;br /&gt;
&lt;br /&gt;
===Work to be done===&lt;br /&gt;
This project is divided into two parts. One is to extract Github metadata of the submitted repos and pull requests. The second part is to build a classifier (e.g., Bayesian) to do the early prediction on some projects that are likely to fail. This prediction is based on more than 200 past projects. The features above should be used, together with some temporal features (e.g. the temporal pattern of this team’s commits so far).  Eventually, we would like to e-mail students whose metrics are bad, giving them advice on how to improve.&lt;br /&gt;
&lt;br /&gt;
====Extract Github metadata====&lt;br /&gt;
&lt;br /&gt;
====Build a classifier====&lt;br /&gt;
&lt;br /&gt;
====Database Schema Changes====&lt;br /&gt;
[[File:db_github_schema.png|frame|center]]&lt;br /&gt;
&lt;br /&gt;
A new table called '''github_contributors''' is created to store the data for each committer. The table contain's the committer's email, github_id and all the metrics associated with a project. At the momentwe handle the following metrics:&lt;br /&gt;
* Committer email - commiter_url&lt;br /&gt;
* Committer id - commiter_id&lt;br /&gt;
* Total number of commits - total_commits&lt;br /&gt;
* Number of files changed - files_changed&lt;br /&gt;
* Lines of code changed - lines_changed&lt;br /&gt;
* Lines of code added - lines_added&lt;br /&gt;
* Lines of code removed - lines_removed&lt;br /&gt;
* Lines of code added that survived until final submission - lines_persisted.&lt;br /&gt;
&lt;br /&gt;
An index on committer_id is added to enable search.&lt;br /&gt;
&lt;br /&gt;
A new table called '''submission_records_github_contributors''' which acts as a reference between the '''submission_records''' and '''github_contributors''' tables. It has two columns:&lt;br /&gt;
* github_contributor_id - Foreign Key to '''github_contributors''' table.&lt;br /&gt;
* submission_record_id - Foreign Key to '''submission_records''' table.&lt;br /&gt;
&lt;br /&gt;
A composite unique key constraint is added on ''github_contributor_id'' and ''submission_record_id''.&lt;/div&gt;</summary>
		<author><name>George2</name></author>
	</entry>
	<entry>
		<id>https://wiki.expertiza.ncsu.edu/index.php?title=CSC/ECE_517_Spring_2017/finalproject_E1744&amp;diff=107947</id>
		<title>CSC/ECE 517 Spring 2017/finalproject E1744</title>
		<link rel="alternate" type="text/html" href="https://wiki.expertiza.ncsu.edu/index.php?title=CSC/ECE_517_Spring_2017/finalproject_E1744&amp;diff=107947"/>
		<updated>2017-04-06T09:27:17Z</updated>

		<summary type="html">&lt;p&gt;George2: /* Database Schema Changes */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;'''CSC517 Final Project - E1744 Github Metrics'''&lt;br /&gt;
&lt;br /&gt;
'''(asorgiu, george2, mdunlap, ygou14)'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Proposed Design Document ==&lt;br /&gt;
&lt;br /&gt;
===Description===&lt;br /&gt;
We will add a new feature to provide Expertiza with Github metrics (for example, number of committers, number of commits, number of lines of code modified, number of lines added, number of lines deleted.) from each group’s submitted repo link.  This information should prove useful for differentiating the performance of team members for grading purposes. It may also help instructors to predict which projects are likely to be merged.&lt;br /&gt;
&lt;br /&gt;
===Work to be done===&lt;br /&gt;
This project is divided into two parts. One is to extract Github metadata of the submitted repos and pull requests. The second part is to build a classifier (e.g., Bayesian) to do the early prediction on some projects that are likely to fail. This prediction is based on more than 200 past projects. The features above should be used, together with some temporal features (e.g. the temporal pattern of this team’s commits so far).  Eventually, we would like to e-mail students whose metrics are bad, giving them advice on how to improve.&lt;br /&gt;
&lt;br /&gt;
====Extract Github metadata====&lt;br /&gt;
&lt;br /&gt;
====Build a classifier====&lt;br /&gt;
&lt;br /&gt;
====Database Schema Changes====&lt;br /&gt;
* Add table: '''github_contributors''':&lt;br /&gt;
** Columns:&lt;br /&gt;
*** Committer email&lt;br /&gt;
*** Committer id&lt;br /&gt;
*** Total number of commits&lt;br /&gt;
*** Number of files changed&lt;br /&gt;
*** Lines of code changed&lt;br /&gt;
*** Lines of code added&lt;br /&gt;
*** Lines of code removed&lt;br /&gt;
*** Lines of code added that survived until final submission&lt;br /&gt;
** Indices:&lt;br /&gt;
*** Committer ID&lt;br /&gt;
* Add table: '''submission_records_github_contributors'''&lt;br /&gt;
** Columns:&lt;br /&gt;
*** submission_record_id&lt;br /&gt;
*** github_contributor_id&lt;br /&gt;
** Indices:&lt;br /&gt;
*** submission_record_id: Foreign Key to submission_records&lt;br /&gt;
*** github_contributor_id: Foreign Key to github_contributors&lt;br /&gt;
&lt;br /&gt;
[[File:db_github_schema.png|frame|center]]&lt;/div&gt;</summary>
		<author><name>George2</name></author>
	</entry>
	<entry>
		<id>https://wiki.expertiza.ncsu.edu/index.php?title=CSC/ECE_517_Spring_2017/finalproject_E1744&amp;diff=107946</id>
		<title>CSC/ECE 517 Spring 2017/finalproject E1744</title>
		<link rel="alternate" type="text/html" href="https://wiki.expertiza.ncsu.edu/index.php?title=CSC/ECE_517_Spring_2017/finalproject_E1744&amp;diff=107946"/>
		<updated>2017-04-06T09:25:04Z</updated>

		<summary type="html">&lt;p&gt;George2: /* Database Schema Changes */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;'''CSC517 Final Project - E1744 Github Metrics'''&lt;br /&gt;
&lt;br /&gt;
'''(asorgiu, george2, mdunlap, ygou14)'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Proposed Design Document ==&lt;br /&gt;
&lt;br /&gt;
===Description===&lt;br /&gt;
We will add a new feature to provide Expertiza with Github metrics (for example, number of committers, number of commits, number of lines of code modified, number of lines added, number of lines deleted.) from each group’s submitted repo link.  This information should prove useful for differentiating the performance of team members for grading purposes. It may also help instructors to predict which projects are likely to be merged.&lt;br /&gt;
&lt;br /&gt;
===Work to be done===&lt;br /&gt;
This project is divided into two parts. One is to extract Github metadata of the submitted repos and pull requests. The second part is to build a classifier (e.g., Bayesian) to do the early prediction on some projects that are likely to fail. This prediction is based on more than 200 past projects. The features above should be used, together with some temporal features (e.g. the temporal pattern of this team’s commits so far).  Eventually, we would like to e-mail students whose metrics are bad, giving them advice on how to improve.&lt;br /&gt;
&lt;br /&gt;
====Extract Github metadata====&lt;br /&gt;
&lt;br /&gt;
====Build a classifier====&lt;br /&gt;
&lt;br /&gt;
====Database Schema Changes====&lt;br /&gt;
* Add table: '''github_contributors''':&lt;br /&gt;
** Columns:&lt;br /&gt;
*** Committer email&lt;br /&gt;
*** Committer id&lt;br /&gt;
*** Total number of commits&lt;br /&gt;
*** Number of files changed&lt;br /&gt;
*** Lines of code changed&lt;br /&gt;
*** Lines of code added&lt;br /&gt;
*** Lines of code removed&lt;br /&gt;
*** Lines of code added that survived until final submission&lt;br /&gt;
** Indices:&lt;br /&gt;
*** Committer ID&lt;br /&gt;
* Add table: '''submission_records_github_contributors'''&lt;br /&gt;
** Columns:&lt;br /&gt;
*** submission_record_id&lt;br /&gt;
*** github_contributor_id&lt;br /&gt;
** Indices:&lt;br /&gt;
*** submission_record_id: Foreign Key to submission_records&lt;br /&gt;
*** github_contributor_id: Foreign Key to github_contributors&lt;br /&gt;
&lt;br /&gt;
[[File:db_github_schema.png|thumb|center|500px]]&lt;/div&gt;</summary>
		<author><name>George2</name></author>
	</entry>
	<entry>
		<id>https://wiki.expertiza.ncsu.edu/index.php?title=File:Db_github_schema.png&amp;diff=107945</id>
		<title>File:Db github schema.png</title>
		<link rel="alternate" type="text/html" href="https://wiki.expertiza.ncsu.edu/index.php?title=File:Db_github_schema.png&amp;diff=107945"/>
		<updated>2017-04-06T09:23:54Z</updated>

		<summary type="html">&lt;p&gt;George2: uploaded a new version of &amp;amp;quot;File:Db github schema.png&amp;amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;/div&gt;</summary>
		<author><name>George2</name></author>
	</entry>
	<entry>
		<id>https://wiki.expertiza.ncsu.edu/index.php?title=File:Db_github_schema.png&amp;diff=107944</id>
		<title>File:Db github schema.png</title>
		<link rel="alternate" type="text/html" href="https://wiki.expertiza.ncsu.edu/index.php?title=File:Db_github_schema.png&amp;diff=107944"/>
		<updated>2017-04-06T09:23:01Z</updated>

		<summary type="html">&lt;p&gt;George2: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;/div&gt;</summary>
		<author><name>George2</name></author>
	</entry>
	<entry>
		<id>https://wiki.expertiza.ncsu.edu/index.php?title=File:Database.png&amp;diff=107943</id>
		<title>File:Database.png</title>
		<link rel="alternate" type="text/html" href="https://wiki.expertiza.ncsu.edu/index.php?title=File:Database.png&amp;diff=107943"/>
		<updated>2017-04-06T09:18:32Z</updated>

		<summary type="html">&lt;p&gt;George2: uploaded a new version of &amp;amp;quot;File:Database.png&amp;amp;quot;: Reverted to version as of 09:16, 6 April 2017&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Database Schema&lt;/div&gt;</summary>
		<author><name>George2</name></author>
	</entry>
	<entry>
		<id>https://wiki.expertiza.ncsu.edu/index.php?title=File:Database.png&amp;diff=107942</id>
		<title>File:Database.png</title>
		<link rel="alternate" type="text/html" href="https://wiki.expertiza.ncsu.edu/index.php?title=File:Database.png&amp;diff=107942"/>
		<updated>2017-04-06T09:17:30Z</updated>

		<summary type="html">&lt;p&gt;George2: uploaded a new version of &amp;amp;quot;File:Database.png&amp;amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Database Schema&lt;/div&gt;</summary>
		<author><name>George2</name></author>
	</entry>
	<entry>
		<id>https://wiki.expertiza.ncsu.edu/index.php?title=File:Database.png&amp;diff=107941</id>
		<title>File:Database.png</title>
		<link rel="alternate" type="text/html" href="https://wiki.expertiza.ncsu.edu/index.php?title=File:Database.png&amp;diff=107941"/>
		<updated>2017-04-06T09:16:12Z</updated>

		<summary type="html">&lt;p&gt;George2: Database Schema&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Database Schema&lt;/div&gt;</summary>
		<author><name>George2</name></author>
	</entry>
	<entry>
		<id>https://wiki.expertiza.ncsu.edu/index.php?title=CSC/ECE_517_Spring_2017/finalproject_E1744&amp;diff=107940</id>
		<title>CSC/ECE 517 Spring 2017/finalproject E1744</title>
		<link rel="alternate" type="text/html" href="https://wiki.expertiza.ncsu.edu/index.php?title=CSC/ECE_517_Spring_2017/finalproject_E1744&amp;diff=107940"/>
		<updated>2017-04-06T05:36:59Z</updated>

		<summary type="html">&lt;p&gt;George2: /* Database Schema Changes */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;'''CSC517 Final Project - E1744 Github Metrics'''&lt;br /&gt;
&lt;br /&gt;
'''(asorgiu, george2, mdunlap, ygou14)'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Proposed Design Document ==&lt;br /&gt;
&lt;br /&gt;
===Description===&lt;br /&gt;
We will add a new feature to provide Expertiza with Github metrics (for example, number of committers, number of commits, number of lines of code modified, number of lines added, number of lines deleted.) from each group’s submitted repo link.  This information should prove useful for differentiating the performance of team members for grading purposes. It may also help instructors to predict which projects are likely to be merged.&lt;br /&gt;
&lt;br /&gt;
===Work to be done===&lt;br /&gt;
This project is divided into two parts. One is to extract Github metadata of the submitted repos and pull requests. The second part is to build a classifier (e.g., Bayesian) to do the early prediction on some projects that are likely to fail. This prediction is based on more than 200 past projects. The features above should be used, together with some temporal features (e.g. the temporal pattern of this team’s commits so far).  Eventually, we would like to e-mail students whose metrics are bad, giving them advice on how to improve.&lt;br /&gt;
&lt;br /&gt;
====Extract Github metadata====&lt;br /&gt;
&lt;br /&gt;
====Build a classifier====&lt;br /&gt;
&lt;br /&gt;
====Database Schema Changes====&lt;br /&gt;
* Add table: '''github_contributors''':&lt;br /&gt;
** Columns:&lt;br /&gt;
*** Committer email&lt;br /&gt;
*** Committer id&lt;br /&gt;
*** Total number of commits&lt;br /&gt;
*** Number of files changed&lt;br /&gt;
*** Lines of code changed&lt;br /&gt;
*** Lines of code added&lt;br /&gt;
*** Lines of code removed&lt;br /&gt;
*** Lines of code added that survived until final submission&lt;br /&gt;
** Indices:&lt;br /&gt;
*** Committer ID&lt;br /&gt;
* Add table: '''submission_records_github_contributors'''&lt;br /&gt;
** Columns:&lt;br /&gt;
*** submission_record_id&lt;br /&gt;
*** github_contributor_id&lt;br /&gt;
** Indices:&lt;br /&gt;
*** submission_record_id: Foreign Key to submission_records&lt;br /&gt;
*** github_contributor_id: Foreign Key to github_contributors&lt;/div&gt;</summary>
		<author><name>George2</name></author>
	</entry>
	<entry>
		<id>https://wiki.expertiza.ncsu.edu/index.php?title=CSC/ECE_517_Spring_2017/finalproject_E1744&amp;diff=107939</id>
		<title>CSC/ECE 517 Spring 2017/finalproject E1744</title>
		<link rel="alternate" type="text/html" href="https://wiki.expertiza.ncsu.edu/index.php?title=CSC/ECE_517_Spring_2017/finalproject_E1744&amp;diff=107939"/>
		<updated>2017-04-06T05:35:50Z</updated>

		<summary type="html">&lt;p&gt;George2: /* Database Schema Changes */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;'''CSC517 Final Project - E1744 Github Metrics'''&lt;br /&gt;
&lt;br /&gt;
'''(asorgiu, george2, mdunlap, ygou14)'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Proposed Design Document ==&lt;br /&gt;
&lt;br /&gt;
===Description===&lt;br /&gt;
We will add a new feature to provide Expertiza with Github metrics (for example, number of committers, number of commits, number of lines of code modified, number of lines added, number of lines deleted.) from each group’s submitted repo link.  This information should prove useful for differentiating the performance of team members for grading purposes. It may also help instructors to predict which projects are likely to be merged.&lt;br /&gt;
&lt;br /&gt;
===Work to be done===&lt;br /&gt;
This project is divided into two parts. One is to extract Github metadata of the submitted repos and pull requests. The second part is to build a classifier (e.g., Bayesian) to do the early prediction on some projects that are likely to fail. This prediction is based on more than 200 past projects. The features above should be used, together with some temporal features (e.g. the temporal pattern of this team’s commits so far).  Eventually, we would like to e-mail students whose metrics are bad, giving them advice on how to improve.&lt;br /&gt;
&lt;br /&gt;
====Extract Github metadata====&lt;br /&gt;
&lt;br /&gt;
====Build a classifier====&lt;br /&gt;
&lt;br /&gt;
====Database Schema Changes====&lt;br /&gt;
* Add table: '''github_contributors''':&lt;br /&gt;
..* Columns:&lt;br /&gt;
....* Committer email&lt;br /&gt;
....* Committer id&lt;br /&gt;
....* Total number of commits&lt;br /&gt;
....* Number of files changed&lt;br /&gt;
....* Lines of code changed&lt;br /&gt;
....* Lines of code added&lt;br /&gt;
....* Lines of code removed&lt;br /&gt;
....* Lines of code added that survived until final submission&lt;br /&gt;
..* Indices:&lt;br /&gt;
....* Committer ID&lt;br /&gt;
* Add table: '''submission_records_github_contributors'''&lt;br /&gt;
..* Columns:&lt;br /&gt;
....* submission_record_id&lt;br /&gt;
....* github_contributor_id&lt;br /&gt;
..* Indices:&lt;br /&gt;
....* submission_record_id: Foreign Key to submission_records&lt;br /&gt;
....* github_contributor_id: Foreign Key to github_contributors&lt;/div&gt;</summary>
		<author><name>George2</name></author>
	</entry>
	<entry>
		<id>https://wiki.expertiza.ncsu.edu/index.php?title=CSC/ECE_517_Spring_2017/finalproject_E1744&amp;diff=107938</id>
		<title>CSC/ECE 517 Spring 2017/finalproject E1744</title>
		<link rel="alternate" type="text/html" href="https://wiki.expertiza.ncsu.edu/index.php?title=CSC/ECE_517_Spring_2017/finalproject_E1744&amp;diff=107938"/>
		<updated>2017-04-06T05:34:48Z</updated>

		<summary type="html">&lt;p&gt;George2: /* Database Schema Changes */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;'''CSC517 Final Project - E1744 Github Metrics'''&lt;br /&gt;
&lt;br /&gt;
'''(asorgiu, george2, mdunlap, ygou14)'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Proposed Design Document ==&lt;br /&gt;
&lt;br /&gt;
===Description===&lt;br /&gt;
We will add a new feature to provide Expertiza with Github metrics (for example, number of committers, number of commits, number of lines of code modified, number of lines added, number of lines deleted.) from each group’s submitted repo link.  This information should prove useful for differentiating the performance of team members for grading purposes. It may also help instructors to predict which projects are likely to be merged.&lt;br /&gt;
&lt;br /&gt;
===Work to be done===&lt;br /&gt;
This project is divided into two parts. One is to extract Github metadata of the submitted repos and pull requests. The second part is to build a classifier (e.g., Bayesian) to do the early prediction on some projects that are likely to fail. This prediction is based on more than 200 past projects. The features above should be used, together with some temporal features (e.g. the temporal pattern of this team’s commits so far).  Eventually, we would like to e-mail students whose metrics are bad, giving them advice on how to improve.&lt;br /&gt;
&lt;br /&gt;
====Extract Github metadata====&lt;br /&gt;
&lt;br /&gt;
====Build a classifier====&lt;br /&gt;
&lt;br /&gt;
====Database Schema Changes====&lt;br /&gt;
* Add table: '''github_contributors''':&lt;br /&gt;
.* Columns:&lt;br /&gt;
..* Committer email&lt;br /&gt;
..* Committer id&lt;br /&gt;
..* Total number of commits&lt;br /&gt;
..* Number of files changed&lt;br /&gt;
..* Lines of code changed&lt;br /&gt;
..* Lines of code added&lt;br /&gt;
..* Lines of code removed&lt;br /&gt;
..* Lines of code added that survived until final submission&lt;br /&gt;
.* Indices:&lt;br /&gt;
..* Committer ID&lt;br /&gt;
* Add table: '''submission_records_github_contributors'''&lt;br /&gt;
.* Columns:&lt;br /&gt;
..* submission_record_id&lt;br /&gt;
..* github_contributor_id&lt;br /&gt;
.* Indices:&lt;br /&gt;
..* submission_record_id: Foreign Key to submission_records&lt;br /&gt;
..* github_contributor_id: Foreign Key to github_contributors&lt;/div&gt;</summary>
		<author><name>George2</name></author>
	</entry>
	<entry>
		<id>https://wiki.expertiza.ncsu.edu/index.php?title=CSC/ECE_517_Spring_2017/finalproject_E1744&amp;diff=107937</id>
		<title>CSC/ECE 517 Spring 2017/finalproject E1744</title>
		<link rel="alternate" type="text/html" href="https://wiki.expertiza.ncsu.edu/index.php?title=CSC/ECE_517_Spring_2017/finalproject_E1744&amp;diff=107937"/>
		<updated>2017-04-06T05:31:25Z</updated>

		<summary type="html">&lt;p&gt;George2: /* Proposed Design Document */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;'''CSC517 Final Project - E1744 Github Metrics'''&lt;br /&gt;
&lt;br /&gt;
'''(asorgiu, george2, mdunlap, ygou14)'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Proposed Design Document ==&lt;br /&gt;
&lt;br /&gt;
===Description===&lt;br /&gt;
We will add a new feature to provide Expertiza with Github metrics (for example, number of committers, number of commits, number of lines of code modified, number of lines added, number of lines deleted.) from each group’s submitted repo link.  This information should prove useful for differentiating the performance of team members for grading purposes. It may also help instructors to predict which projects are likely to be merged.&lt;br /&gt;
&lt;br /&gt;
===Work to be done===&lt;br /&gt;
This project is divided into two parts. One is to extract Github metadata of the submitted repos and pull requests. The second part is to build a classifier (e.g., Bayesian) to do the early prediction on some projects that are likely to fail. This prediction is based on more than 200 past projects. The features above should be used, together with some temporal features (e.g. the temporal pattern of this team’s commits so far).  Eventually, we would like to e-mail students whose metrics are bad, giving them advice on how to improve.&lt;br /&gt;
&lt;br /&gt;
====Extract Github metadata====&lt;br /&gt;
&lt;br /&gt;
====Build a classifier====&lt;br /&gt;
&lt;br /&gt;
====Database Schema Changes====&lt;br /&gt;
Add table: '''github_contributors''':&lt;br /&gt;
Columns:&lt;br /&gt;
Committer email&lt;br /&gt;
Committer id&lt;br /&gt;
Total number of commits&lt;br /&gt;
Number of files changed&lt;br /&gt;
Lines of code changed&lt;br /&gt;
Lines of code added&lt;br /&gt;
Lines of code removed&lt;br /&gt;
Lines of code added that survived until final submission&lt;br /&gt;
&lt;br /&gt;
Add table: '''submission_records_github_contributors'''&lt;br /&gt;
Columns:&lt;br /&gt;
submission_record_id: Foreign Key to submission_records, INDEX&lt;br /&gt;
github_contributor_id: Foreign Key to github_contributors, INDEX&lt;/div&gt;</summary>
		<author><name>George2</name></author>
	</entry>
	<entry>
		<id>https://wiki.expertiza.ncsu.edu/index.php?title=CSC/ECE_517_Spring_2017/oss_E1727&amp;diff=107473</id>
		<title>CSC/ECE 517 Spring 2017/oss E1727</title>
		<link rel="alternate" type="text/html" href="https://wiki.expertiza.ncsu.edu/index.php?title=CSC/ECE_517_Spring_2017/oss_E1727&amp;diff=107473"/>
		<updated>2017-03-25T22:58:37Z</updated>

		<summary type="html">&lt;p&gt;George2: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;==Introduction==&lt;br /&gt;
This project was completed as part of a greater open source project called Expertiza. &lt;br /&gt;
&lt;br /&gt;
Expertiza is a web application platform, similar to wikipedia, which offers teachers and students a way to organize for group assignments and porjects. By using Expertiza, students have the ability to submit and coordinate peer-review learning objects (articles, code, web sites, etc). The Expertiza project is supported by the National Science Foundation. &lt;br /&gt;
&lt;br /&gt;
Expertiza offers several features which are useful to a classroom-style learning environment. Among those several features, this project represents a contribution to the organization of the code used for assignment signup sheets. &lt;br /&gt;
&lt;br /&gt;
===Background===&lt;br /&gt;
The work for this project was completed by a group of three students from NC State. However, the project was completed according to guidelines provided by a coordinator who works with Expertiza. &lt;br /&gt;
&lt;br /&gt;
Following the guidelines provided, the group worked to clean up a portion of the Expertiza project code through refactorization and reorganization. More specifically, logical code needed to be separated from portions of the project which were not responsible for containing code for the functionality of the application.&lt;br /&gt;
&lt;br /&gt;
===Motivation===&lt;br /&gt;
The motivation for this project was to make the project code easier for programmers to read by compartmentalizing portions of the code to separate locations in the project according to the functionality of the code. &lt;br /&gt;
&lt;br /&gt;
The scope of this project was limited to functionalities associated with the signup sheet. This meant that logical code that was embedded in &amp;quot;view&amp;quot; (a folder containing html formatting and design code) should be moved to a more appropriate location, the &amp;quot;helpers&amp;quot; folder (this folder contains compartmentalized auxiliary functions that &amp;quot;help&amp;quot; with other parts of the project).&lt;br /&gt;
&lt;br /&gt;
===Tasks Identified===&lt;br /&gt;
     '''Documents:''' _add_signup_topics.html.erb, _due_dates.html.erb&lt;br /&gt;
* Move javascript code to assets (folder): There was some javascript at the bottom of the file _add_signup_topics.html.erb. This was moved to a new file app/assets/javascripts/signup.js. The functions were modified to pass in the number of teams that needed to be toggled (since it is now in a separate file without access to that information). The javascript from the file _due_dates.html.erb was also moved to the new signup.js file.&lt;br /&gt;
This functionality can be tested by logging in as an instructor, make sure you are managing assignments, then click the &amp;quot;Edit&amp;quot; button of an assignment (the little pencil icon on the right), then choose the &amp;quot;Topic&amp;quot; tab. If you click &amp;quot;Hide all teams&amp;quot; link, all team names and team member unity ids will be hidden. Click the link again and the content will be shown. If you click individual top names, it should hide/show only one team's info. &lt;br /&gt;
&lt;br /&gt;
     '''Documents:''' _suggested_topic.html.erb, intelligent_topic_selection.html.erb&lt;br /&gt;
* Move logical code to helper file and assign self-explanatory method names.&lt;br /&gt;
&lt;br /&gt;
     '''Documents:''' _all_actions.html.erb, _topic_names.html.erb&lt;br /&gt;
* Move logical code to helper file and assign self-explanatory method names.&lt;br /&gt;
&lt;br /&gt;
'''Testing:'''&lt;br /&gt;
* Create a test file named sign_up_sheet_helper_spec.rb in spec/helpers&lt;br /&gt;
* Write test cases for all methods in sign_up_sheet_helper.rb using factories&lt;br /&gt;
&lt;br /&gt;
====Classes====&lt;br /&gt;
* sign_up_sheet_helper.rb&lt;br /&gt;
* sign_up_sheet_helper_spec.rb&lt;br /&gt;
&lt;br /&gt;
===Project Modifications===&lt;br /&gt;
&lt;br /&gt;
==== New Method: check_topic_due_date_value() ====&lt;br /&gt;
  &amp;lt;nowiki&amp;gt; def check_topic_due_date_value(assignment_due_dates, topic_id, &lt;br /&gt;
                                          deadline_type_id = 1, review_round = 1)&lt;br /&gt;
    due_date = get_topic_deadline(assignment_due_dates, topic_id, &lt;br /&gt;
                                  deadline_type_id, review_round)&lt;br /&gt;
    DateTime.parse(due_date.to_s).strftime(&amp;quot;%Y-%m-%d %H:%M&amp;quot;).in_time_zone&lt;br /&gt;
  end&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== New Method: get_topic_deadline() ====&lt;br /&gt;
  &amp;lt;nowiki&amp;gt; def get_topic_deadline(assignment_due_dates, topic_id, &lt;br /&gt;
                                  deadline_type_id = 1, review_round = 1)&lt;br /&gt;
    topic_due_date = TopicDueDate.where(parent_id: topic_id,&lt;br /&gt;
                                        deadline_type_id: deadline_type_id,&lt;br /&gt;
                                        round: review_round).first rescue nil&lt;br /&gt;
    if !topic_due_date.nil?&lt;br /&gt;
      topic_due_date.due_at&lt;br /&gt;
    else&lt;br /&gt;
      assignment_due_dates[review_round - 1].due_at.to_s&lt;br /&gt;
    end&lt;br /&gt;
  end&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== New Method: get_suggested_topics() ====&lt;br /&gt;
  &amp;lt;nowiki&amp;gt; def get_suggested_topics(assignment_id)&lt;br /&gt;
    team_id = TeamsUser.team_id(assignment_id, session[:user].id)&lt;br /&gt;
    teams_users = TeamsUser.where(team_id: team_id)&lt;br /&gt;
    teams_users_array = []&lt;br /&gt;
    teams_users.each do |teams_user|&lt;br /&gt;
      teams_users_array &amp;lt;&amp;lt; teams_user.user_id&lt;br /&gt;
    end&lt;br /&gt;
    @suggested_topics = SignUpTopic.where(assignment_id: &lt;br /&gt;
                        assignment_id, private_to: teams_users_array)&lt;br /&gt;
  end&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== New Method: get_intelligent_topic_row() ====&lt;br /&gt;
  &amp;lt;nowiki&amp;gt; def get_intelligent_topic_row(topic, selected_topics, max_team_size)&lt;br /&gt;
    row_html = ''&lt;br /&gt;
    if !selected_topics.nil? &amp;amp;&amp;amp; !selected_topics.empty?&lt;br /&gt;
      selected_topics.each do |selected_topic|&lt;br /&gt;
        row_html = if selected_topic.topic_id == topic.id and &lt;br /&gt;
                                                 !selected_topic.is_waitlisted&lt;br /&gt;
                     '&amp;lt;tr bgcolor=&amp;quot;yellow&amp;quot;&amp;gt;'&lt;br /&gt;
                   elsif selected_topic.topic_id == topic.id and&lt;br /&gt;
                                                    selected_topic.is_waitlisted&lt;br /&gt;
                     '&amp;lt;tr bgcolor=&amp;quot;lightgray&amp;quot;&amp;gt;'&lt;br /&gt;
                   else&lt;br /&gt;
                     '&amp;lt;tr id=&amp;quot;topic_' + topic.id.to_s + '&amp;quot;&amp;gt;'&lt;br /&gt;
                   end&lt;br /&gt;
      end&lt;br /&gt;
    else&lt;br /&gt;
      row_html = '&amp;lt;tr id=&amp;quot;topic_' + topic.id.to_s + '&amp;quot; style=&amp;quot;background-color:' +&lt;br /&gt;
                  get_topic_bg_color(topic, max_team_size) + '&amp;quot;&amp;gt;'&lt;br /&gt;
    end&lt;br /&gt;
    row_html.html_safe&lt;br /&gt;
  end&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== New Method: get_topic_bg_color() ====&lt;br /&gt;
  &amp;lt;nowiki&amp;gt;def get_topic_bg_color(topic, max_team_size)&lt;br /&gt;
    calculation = (400 * (1 - (Math.tanh(2 * [max_team_size.to_f / Bid.where(topic_id:&lt;br /&gt;
                   topic.id).count, 1].min - 1) + 1) / 2)).to_i.to_s&lt;br /&gt;
    'rgb(' + calculation + ',' + calculation + ',0)'&lt;br /&gt;
  end&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== New Method: render_participant_info() ====&lt;br /&gt;
  &amp;lt;nowiki&amp;gt; def render_participant_info(topic, assignment, participants)&lt;br /&gt;
    name_html = ''&lt;br /&gt;
    if !participants.nil? &amp;amp;&amp;amp; !participants.empty?&lt;br /&gt;
      chooser_present = false&lt;br /&gt;
      participants.each do |participant|&lt;br /&gt;
        next unless topic.id == participant.topic_id&lt;br /&gt;
        chooser_present = true&lt;br /&gt;
        if assignment.max_team_size &amp;gt; 1&lt;br /&gt;
          name_html += '&amp;lt;br/&amp;gt;&amp;lt;b&amp;gt;' + participant.team_name_placeholder + '&amp;lt;/b&amp;gt;&amp;lt;br/&amp;gt;'&lt;br /&gt;
        end&lt;br /&gt;
        name_html += 'participant.user_name_placeholder'&lt;br /&gt;
        if participant.is_waitlisted&lt;br /&gt;
          name_html += '&amp;lt;font color=&amp;quot;red&amp;quot;&amp;gt;(waitlisted)&amp;lt;/font&amp;gt;'&lt;br /&gt;
        end&lt;br /&gt;
        name_html += '&amp;lt;br/&amp;gt;'&lt;br /&gt;
      end&lt;br /&gt;
      name_html += 'No choosers.' unless chooser_present&lt;br /&gt;
    end&lt;br /&gt;
    name_html.html_safe&lt;br /&gt;
  end&lt;br /&gt;
end&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== New Test for Helper Classes: spec/helpers/sign_up_sheet_helper_spec.rb ====&lt;br /&gt;
Implemented positive and negative test cases for all the methods in sign_up_sheet_helper.rb&lt;br /&gt;
&lt;br /&gt;
==Running the Project Remotely==&lt;br /&gt;
We have hosted our forked repo so you can review our changes here:&lt;br /&gt;
&lt;br /&gt;
http://138.197.104.185:3000/&lt;br /&gt;
&lt;br /&gt;
Suggested login for Instructor privileges is 'instructor6' with password 'password'. To login as a student, you can use 'student5000' with password 'password'&lt;br /&gt;
&lt;br /&gt;
===Testing Instructions===&lt;br /&gt;
====First task====&lt;br /&gt;
This functionality can be tested by logging in as an instructor, make sure you are managing assignments, then click the &amp;quot;Edit&amp;quot; button of an assignment (the little pencil icon on the right), then choose the &amp;quot;Topic&amp;quot; tab. If you click &amp;quot;Hide all teams&amp;quot; link, all team names and team member unity ids will be hidden. Click the link again and the content will be shown. If you click individual top names, it should hide/show only one team's info.&lt;br /&gt;
&lt;br /&gt;
====Helper File Changes====&lt;br /&gt;
There is no change in the expected behaviour. &lt;br /&gt;
* '''get_suggested_topics''': Retrieve list of topics suggested by signed in user for an assignment.&lt;br /&gt;
* '''get_intelligent_topic_row''': Render Intelligent Row in bidding based topic selection.&lt;br /&gt;
* '''get_topic_bg_color''': Render background color for row based on signed in user and status of the topic.&lt;br /&gt;
* '''render_participant_info''': Render Participant Info based on topic, assignment and participants.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Test Plan==&lt;br /&gt;
===Unit Tests===&lt;br /&gt;
Unit tests were required per the project assignment for helper methods which previously had no associated unit tests. These tests verified that each discrete method returned the proper values.  The tests were written using RSpec/FactoryGirl and are listed above.  A summary of the test cases is shown below.&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
! colspan=&amp;quot;4&amp;quot; | Unit Test Summary&lt;br /&gt;
|-&lt;br /&gt;
! Method&lt;br /&gt;
! Parameters&lt;br /&gt;
! Purpose&lt;br /&gt;
! Tested Scenarios&lt;br /&gt;
|-&lt;br /&gt;
| check_topic_due_date_value&lt;br /&gt;
| assignment_due_dates, topic_id, deadline_type, review _round&lt;br /&gt;
| Check the due date for topic submission given the topic id and assignment due dates.&lt;br /&gt;
| a) All nulls, b) Legitimate value for assignment and topic ids&lt;br /&gt;
|-&lt;br /&gt;
| get_suggested_topics&lt;br /&gt;
| assignment_id&lt;br /&gt;
| Retrieve topics suggested by the signed in user for an assignment&lt;br /&gt;
| a) Signed In user is null b) Legitimate value for assignment and signed in user.&lt;br /&gt;
|-&lt;br /&gt;
| get_intelligent_topic_row&lt;br /&gt;
| topic_id, selected_topic_ids, max_team_size&lt;br /&gt;
| Render the row for a topic in intelligent topic selection(bidding) given the topics selected by the students and the maximum permitted team size for the assignment.&lt;br /&gt;
| a) Topic Selected by signed in student. b) Topic Selected by signed in student is waitlisted. c) Topic not selected by signed in student. d) Student has not selected any topics.&lt;br /&gt;
|-&lt;br /&gt;
| render_participant_info&lt;br /&gt;
| topic, assignment, participants&lt;br /&gt;
| Render Info for participants of a topic for an assignment.&lt;br /&gt;
| a) No Participants have been selected. b) Wrong Participants were selected. c) All legitimate values.&lt;br /&gt;
|-&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
====To Run the Unit Tests====&lt;br /&gt;
* Navigate to the expertiza home folder&lt;br /&gt;
* Run `rspec spec/helpers/sign_up_sheet_helper_spec.rb`&lt;/div&gt;</summary>
		<author><name>George2</name></author>
	</entry>
	<entry>
		<id>https://wiki.expertiza.ncsu.edu/index.php?title=CSC/ECE_517_Spring_2017/oss_E1727&amp;diff=107472</id>
		<title>CSC/ECE 517 Spring 2017/oss E1727</title>
		<link rel="alternate" type="text/html" href="https://wiki.expertiza.ncsu.edu/index.php?title=CSC/ECE_517_Spring_2017/oss_E1727&amp;diff=107472"/>
		<updated>2017-03-25T22:58:08Z</updated>

		<summary type="html">&lt;p&gt;George2: Added Test plan in tabular form&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;==Introduction==&lt;br /&gt;
This project was completed as part of a greater open source project called Expertiza. &lt;br /&gt;
&lt;br /&gt;
Expertiza is a web application platform, similar to wikipedia, which offers teachers and students a way to organize for group assignments and porjects. By using Expertiza, students have the ability to submit and coordinate peer-review learning objects (articles, code, web sites, etc). The Expertiza project is supported by the National Science Foundation. &lt;br /&gt;
&lt;br /&gt;
Expertiza offers several features which are useful to a classroom-style learning environment. Among those several features, this project represents a contribution to the organization of the code used for assignment signup sheets. &lt;br /&gt;
&lt;br /&gt;
===Background===&lt;br /&gt;
The work for this project was completed by a group of three students from NC State. However, the project was completed according to guidelines provided by a coordinator who works with Expertiza. &lt;br /&gt;
&lt;br /&gt;
Following the guidelines provided, the group worked to clean up a portion of the Expertiza project code through refactorization and reorganization. More specifically, logical code needed to be separated from portions of the project which were not responsible for containing code for the functionality of the application.&lt;br /&gt;
&lt;br /&gt;
===Motivation===&lt;br /&gt;
The motivation for this project was to make the project code easier for programmers to read by compartmentalizing portions of the code to separate locations in the project according to the functionality of the code. &lt;br /&gt;
&lt;br /&gt;
The scope of this project was limited to functionalities associated with the signup sheet. This meant that logical code that was embedded in &amp;quot;view&amp;quot; (a folder containing html formatting and design code) should be moved to a more appropriate location, the &amp;quot;helpers&amp;quot; folder (this folder contains compartmentalized auxiliary functions that &amp;quot;help&amp;quot; with other parts of the project).&lt;br /&gt;
&lt;br /&gt;
===Tasks Identified===&lt;br /&gt;
     '''Documents:''' _add_signup_topics.html.erb, _due_dates.html.erb&lt;br /&gt;
* Move javascript code to assets (folder): There was some javascript at the bottom of the file _add_signup_topics.html.erb. This was moved to a new file app/assets/javascripts/signup.js. The functions were modified to pass in the number of teams that needed to be toggled (since it is now in a separate file without access to that information). The javascript from the file _due_dates.html.erb was also moved to the new signup.js file.&lt;br /&gt;
This functionality can be tested by logging in as an instructor, make sure you are managing assignments, then click the &amp;quot;Edit&amp;quot; button of an assignment (the little pencil icon on the right), then choose the &amp;quot;Topic&amp;quot; tab. If you click &amp;quot;Hide all teams&amp;quot; link, all team names and team member unity ids will be hidden. Click the link again and the content will be shown. If you click individual top names, it should hide/show only one team's info. &lt;br /&gt;
&lt;br /&gt;
     '''Documents:''' _suggested_topic.html.erb, intelligent_topic_selection.html.erb&lt;br /&gt;
* Move logical code to helper file and assign self-explanatory method names.&lt;br /&gt;
&lt;br /&gt;
     '''Documents:''' _all_actions.html.erb, _topic_names.html.erb&lt;br /&gt;
* Move logical code to helper file and assign self-explanatory method names.&lt;br /&gt;
&lt;br /&gt;
'''Testing:'''&lt;br /&gt;
* Create a test file named sign_up_sheet_helper_spec.rb in spec/helpers&lt;br /&gt;
* Write test cases for all methods in sign_up_sheet_helper.rb using factories&lt;br /&gt;
&lt;br /&gt;
====Classes====&lt;br /&gt;
* sign_up_sheet_helper.rb&lt;br /&gt;
* sign_up_sheet_helper_spec.rb&lt;br /&gt;
&lt;br /&gt;
===Project Modifications===&lt;br /&gt;
&lt;br /&gt;
==== New Method: check_topic_due_date_value() ====&lt;br /&gt;
  &amp;lt;nowiki&amp;gt; def check_topic_due_date_value(assignment_due_dates, topic_id, &lt;br /&gt;
                                          deadline_type_id = 1, review_round = 1)&lt;br /&gt;
    due_date = get_topic_deadline(assignment_due_dates, topic_id, &lt;br /&gt;
                                  deadline_type_id, review_round)&lt;br /&gt;
    DateTime.parse(due_date.to_s).strftime(&amp;quot;%Y-%m-%d %H:%M&amp;quot;).in_time_zone&lt;br /&gt;
  end&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== New Method: get_topic_deadline() ====&lt;br /&gt;
  &amp;lt;nowiki&amp;gt; def get_topic_deadline(assignment_due_dates, topic_id, &lt;br /&gt;
                                  deadline_type_id = 1, review_round = 1)&lt;br /&gt;
    topic_due_date = TopicDueDate.where(parent_id: topic_id,&lt;br /&gt;
                                        deadline_type_id: deadline_type_id,&lt;br /&gt;
                                        round: review_round).first rescue nil&lt;br /&gt;
    if !topic_due_date.nil?&lt;br /&gt;
      topic_due_date.due_at&lt;br /&gt;
    else&lt;br /&gt;
      assignment_due_dates[review_round - 1].due_at.to_s&lt;br /&gt;
    end&lt;br /&gt;
  end&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== New Method: get_suggested_topics() ====&lt;br /&gt;
  &amp;lt;nowiki&amp;gt; def get_suggested_topics(assignment_id)&lt;br /&gt;
    team_id = TeamsUser.team_id(assignment_id, session[:user].id)&lt;br /&gt;
    teams_users = TeamsUser.where(team_id: team_id)&lt;br /&gt;
    teams_users_array = []&lt;br /&gt;
    teams_users.each do |teams_user|&lt;br /&gt;
      teams_users_array &amp;lt;&amp;lt; teams_user.user_id&lt;br /&gt;
    end&lt;br /&gt;
    @suggested_topics = SignUpTopic.where(assignment_id: &lt;br /&gt;
                        assignment_id, private_to: teams_users_array)&lt;br /&gt;
  end&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== New Method: get_intelligent_topic_row() ====&lt;br /&gt;
  &amp;lt;nowiki&amp;gt; def get_intelligent_topic_row(topic, selected_topics, max_team_size)&lt;br /&gt;
    row_html = ''&lt;br /&gt;
    if !selected_topics.nil? &amp;amp;&amp;amp; !selected_topics.empty?&lt;br /&gt;
      selected_topics.each do |selected_topic|&lt;br /&gt;
        row_html = if selected_topic.topic_id == topic.id and &lt;br /&gt;
                                                 !selected_topic.is_waitlisted&lt;br /&gt;
                     '&amp;lt;tr bgcolor=&amp;quot;yellow&amp;quot;&amp;gt;'&lt;br /&gt;
                   elsif selected_topic.topic_id == topic.id and&lt;br /&gt;
                                                    selected_topic.is_waitlisted&lt;br /&gt;
                     '&amp;lt;tr bgcolor=&amp;quot;lightgray&amp;quot;&amp;gt;'&lt;br /&gt;
                   else&lt;br /&gt;
                     '&amp;lt;tr id=&amp;quot;topic_' + topic.id.to_s + '&amp;quot;&amp;gt;'&lt;br /&gt;
                   end&lt;br /&gt;
      end&lt;br /&gt;
    else&lt;br /&gt;
      row_html = '&amp;lt;tr id=&amp;quot;topic_' + topic.id.to_s + '&amp;quot; style=&amp;quot;background-color:' +&lt;br /&gt;
                  get_topic_bg_color(topic, max_team_size) + '&amp;quot;&amp;gt;'&lt;br /&gt;
    end&lt;br /&gt;
    row_html.html_safe&lt;br /&gt;
  end&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== New Method: get_topic_bg_color() ====&lt;br /&gt;
  &amp;lt;nowiki&amp;gt;def get_topic_bg_color(topic, max_team_size)&lt;br /&gt;
    calculation = (400 * (1 - (Math.tanh(2 * [max_team_size.to_f / Bid.where(topic_id:&lt;br /&gt;
                   topic.id).count, 1].min - 1) + 1) / 2)).to_i.to_s&lt;br /&gt;
    'rgb(' + calculation + ',' + calculation + ',0)'&lt;br /&gt;
  end&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== New Method: render_participant_info() ====&lt;br /&gt;
  &amp;lt;nowiki&amp;gt; def render_participant_info(topic, assignment, participants)&lt;br /&gt;
    name_html = ''&lt;br /&gt;
    if !participants.nil? &amp;amp;&amp;amp; !participants.empty?&lt;br /&gt;
      chooser_present = false&lt;br /&gt;
      participants.each do |participant|&lt;br /&gt;
        next unless topic.id == participant.topic_id&lt;br /&gt;
        chooser_present = true&lt;br /&gt;
        if assignment.max_team_size &amp;gt; 1&lt;br /&gt;
          name_html += '&amp;lt;br/&amp;gt;&amp;lt;b&amp;gt;' + participant.team_name_placeholder + '&amp;lt;/b&amp;gt;&amp;lt;br/&amp;gt;'&lt;br /&gt;
        end&lt;br /&gt;
        name_html += 'participant.user_name_placeholder'&lt;br /&gt;
        if participant.is_waitlisted&lt;br /&gt;
          name_html += '&amp;lt;font color=&amp;quot;red&amp;quot;&amp;gt;(waitlisted)&amp;lt;/font&amp;gt;'&lt;br /&gt;
        end&lt;br /&gt;
        name_html += '&amp;lt;br/&amp;gt;'&lt;br /&gt;
      end&lt;br /&gt;
      name_html += 'No choosers.' unless chooser_present&lt;br /&gt;
    end&lt;br /&gt;
    name_html.html_safe&lt;br /&gt;
  end&lt;br /&gt;
end&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== New Test for Helper Classes: spec/helpers/sign_up_sheet_helper_spec.rb ====&lt;br /&gt;
Implemented positive and negative test cases for all the methods in sign_up_sheet_helper.rb&lt;br /&gt;
&lt;br /&gt;
==Running the Project Remotely==&lt;br /&gt;
We have hosted our forked repo so you can review our changes here:&lt;br /&gt;
&lt;br /&gt;
http://138.197.104.185:3000/&lt;br /&gt;
&lt;br /&gt;
Suggested login for Instructor privileges is 'instructor6' with password 'password'. To login as a student, you can use 'student5000' with password 'password'&lt;br /&gt;
&lt;br /&gt;
===Testing Instructions===&lt;br /&gt;
====First task====&lt;br /&gt;
This functionality can be tested by logging in as an instructor, make sure you are managing assignments, then click the &amp;quot;Edit&amp;quot; button of an assignment (the little pencil icon on the right), then choose the &amp;quot;Topic&amp;quot; tab. If you click &amp;quot;Hide all teams&amp;quot; link, all team names and team member unity ids will be hidden. Click the link again and the content will be shown. If you click individual top names, it should hide/show only one team's info.&lt;br /&gt;
&lt;br /&gt;
====Helper File Changes====&lt;br /&gt;
There is no change in the expected behaviour. &lt;br /&gt;
* '''get_suggested_topics''': Retrieve list of topics suggested by signed in user for an assignment.&lt;br /&gt;
* '''get_intelligent_topic_row''': Render Intelligent Row in bidding based topic selection.&lt;br /&gt;
* '''get_topic_bg_color''': Render background color for row based on signed in user and status of the topic.&lt;br /&gt;
* '''render_participant_info''': Render Participant Info based on topic, assignment and participants.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
====To Run the Unit Tests====&lt;br /&gt;
* Navigate to the expertiza home folder&lt;br /&gt;
* Run `rspec spec/helpers/sign_up_sheet_helper_spec.rb`&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Test Plan==&lt;br /&gt;
===Unit Tests===&lt;br /&gt;
Unit tests were required per the project assignment for helper methods which previously had no associated unit tests. These tests verified that each discrete method returned the proper values.  The tests were written using RSpec/FactoryGirl and are listed above.  A summary of the test cases is shown below.&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
! colspan=&amp;quot;4&amp;quot; | Unit Test Summary&lt;br /&gt;
|-&lt;br /&gt;
! Method&lt;br /&gt;
! Parameters&lt;br /&gt;
! Purpose&lt;br /&gt;
! Tested Scenarios&lt;br /&gt;
|-&lt;br /&gt;
| check_topic_due_date_value&lt;br /&gt;
| assignment_due_dates, topic_id, deadline_type, review _round&lt;br /&gt;
| Check the due date for topic submission given the topic id and assignment due dates.&lt;br /&gt;
| a) All nulls, b) Legitimate value for assignment and topic ids&lt;br /&gt;
|-&lt;br /&gt;
| get_suggested_topics&lt;br /&gt;
| assignment_id&lt;br /&gt;
| Retrieve topics suggested by the signed in user for an assignment&lt;br /&gt;
| a) Signed In user is null b) Legitimate value for assignment and signed in user.&lt;br /&gt;
|-&lt;br /&gt;
| get_intelligent_topic_row&lt;br /&gt;
| topic_id, selected_topic_ids, max_team_size&lt;br /&gt;
| Render the row for a topic in intelligent topic selection(bidding) given the topics selected by the students and the maximum permitted team size for the assignment.&lt;br /&gt;
| a) Topic Selected by signed in student. b) Topic Selected by signed in student is waitlisted. c) Topic not selected by signed in student. d) Student has not selected any topics.&lt;br /&gt;
|-&lt;br /&gt;
| render_participant_info&lt;br /&gt;
| topic, assignment, participants&lt;br /&gt;
| Render Info for participants of a topic for an assignment.&lt;br /&gt;
| a) No Participants have been selected. b) Wrong Participants were selected. c) All legitimate values.&lt;br /&gt;
|-&lt;br /&gt;
|}&lt;/div&gt;</summary>
		<author><name>George2</name></author>
	</entry>
	<entry>
		<id>https://wiki.expertiza.ncsu.edu/index.php?title=CSC/ECE_517_Spring_2017/oss_E1727&amp;diff=107471</id>
		<title>CSC/ECE 517 Spring 2017/oss E1727</title>
		<link rel="alternate" type="text/html" href="https://wiki.expertiza.ncsu.edu/index.php?title=CSC/ECE_517_Spring_2017/oss_E1727&amp;diff=107471"/>
		<updated>2017-03-25T22:14:38Z</updated>

		<summary type="html">&lt;p&gt;George2: /* Testing Instructions */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;==Introduction==&lt;br /&gt;
This project was completed as part of a greater open source project called Expertiza. &lt;br /&gt;
&lt;br /&gt;
Expertiza is a web application platform, similar to wikipedia, which offers teachers and students a way to organize for group assignments and porjects. By using Expertiza, students have the ability to submit and coordinate peer-review learning objects (articles, code, web sites, etc). The Expertiza project is supported by the National Science Foundation. &lt;br /&gt;
&lt;br /&gt;
Expertiza offers several features which are useful to a classroom-style learning environment. Among those several features, this project represents a contribution to the organization of the code used for assignment signup sheets. &lt;br /&gt;
&lt;br /&gt;
===Background===&lt;br /&gt;
The work for this project was completed by a group of three students from NC State. However, the project was completed according to guidelines provided by a coordinator who works with Expertiza. &lt;br /&gt;
&lt;br /&gt;
Following the guidelines provided, the group worked to clean up a portion of the Expertiza project code through refactorization and reorganization. More specifically, logical code needed to be separated from portions of the project which were not responsible for containing code for the functionality of the application.&lt;br /&gt;
&lt;br /&gt;
===Motivation===&lt;br /&gt;
The motivation for this project was to make the project code easier for programmers to read by compartmentalizing portions of the code to separate locations in the project according to the functionality of the code. &lt;br /&gt;
&lt;br /&gt;
The scope of this project was limited to functionalities associated with the signup sheet. This meant that logical code that was embedded in &amp;quot;view&amp;quot; (a folder containing html formatting and design code) should be moved to a more appropriate location, the &amp;quot;helpers&amp;quot; folder (this folder contains compartmentalized auxiliary functions that &amp;quot;help&amp;quot; with other parts of the project).&lt;br /&gt;
&lt;br /&gt;
===Tasks Identified===&lt;br /&gt;
     '''Documents:''' _add_signup_topics.html.erb, _due_dates.html.erb&lt;br /&gt;
* Move javascript code to assets (folder): There was some javascript at the bottom of the file _add_signup_topics.html.erb. This was moved to a new file app/assets/javascripts/signup.js. The functions were modified to pass in the number of teams that needed to be toggled (since it is now in a separate file without access to that information). The javascript from the file _due_dates.html.erb was also moved to the new signup.js file.&lt;br /&gt;
This functionality can be tested by logging in as an instructor, make sure you are managing assignments, then click the &amp;quot;Edit&amp;quot; button of an assignment (the little pencil icon on the right), then choose the &amp;quot;Topic&amp;quot; tab. If you click &amp;quot;Hide all teams&amp;quot; link, all team names and team member unity ids will be hidden. Click the link again and the content will be shown. If you click individual top names, it should hide/show only one team's info. &lt;br /&gt;
&lt;br /&gt;
     '''Documents:''' _suggested_topic.html.erb, intelligent_topic_selection.html.erb&lt;br /&gt;
* Move logical code to helper file and assign self-explanatory method names.&lt;br /&gt;
&lt;br /&gt;
     '''Documents:''' _all_actions.html.erb, _topic_names.html.erb&lt;br /&gt;
* Move logical code to helper file and assign self-explanatory method names.&lt;br /&gt;
&lt;br /&gt;
'''Testing:'''&lt;br /&gt;
* Create a test file named sign_up_sheet_helper_spec.rb in spec/helpers&lt;br /&gt;
* Write test cases for all methods in sign_up_sheet_helper.rb using factories&lt;br /&gt;
&lt;br /&gt;
====Classes====&lt;br /&gt;
* sign_up_sheet_helper.rb&lt;br /&gt;
* sign_up_sheet_helper_spec.rb&lt;br /&gt;
&lt;br /&gt;
===Project Modifications===&lt;br /&gt;
&lt;br /&gt;
==== New Method: check_topic_due_date_value() ====&lt;br /&gt;
  &amp;lt;nowiki&amp;gt; def check_topic_due_date_value(assignment_due_dates, topic_id, &lt;br /&gt;
                                          deadline_type_id = 1, review_round = 1)&lt;br /&gt;
    due_date = get_topic_deadline(assignment_due_dates, topic_id, &lt;br /&gt;
                                  deadline_type_id, review_round)&lt;br /&gt;
    DateTime.parse(due_date.to_s).strftime(&amp;quot;%Y-%m-%d %H:%M&amp;quot;).in_time_zone&lt;br /&gt;
  end&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== New Method: get_topic_deadline() ====&lt;br /&gt;
  &amp;lt;nowiki&amp;gt; def get_topic_deadline(assignment_due_dates, topic_id, &lt;br /&gt;
                                  deadline_type_id = 1, review_round = 1)&lt;br /&gt;
    topic_due_date = TopicDueDate.where(parent_id: topic_id,&lt;br /&gt;
                                        deadline_type_id: deadline_type_id,&lt;br /&gt;
                                        round: review_round).first rescue nil&lt;br /&gt;
    if !topic_due_date.nil?&lt;br /&gt;
      topic_due_date.due_at&lt;br /&gt;
    else&lt;br /&gt;
      assignment_due_dates[review_round - 1].due_at.to_s&lt;br /&gt;
    end&lt;br /&gt;
  end&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== New Method: get_suggested_topics() ====&lt;br /&gt;
  &amp;lt;nowiki&amp;gt; def get_suggested_topics(assignment_id)&lt;br /&gt;
    team_id = TeamsUser.team_id(assignment_id, session[:user].id)&lt;br /&gt;
    teams_users = TeamsUser.where(team_id: team_id)&lt;br /&gt;
    teams_users_array = []&lt;br /&gt;
    teams_users.each do |teams_user|&lt;br /&gt;
      teams_users_array &amp;lt;&amp;lt; teams_user.user_id&lt;br /&gt;
    end&lt;br /&gt;
    @suggested_topics = SignUpTopic.where(assignment_id: &lt;br /&gt;
                        assignment_id, private_to: teams_users_array)&lt;br /&gt;
  end&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== New Method: get_intelligent_topic_row() ====&lt;br /&gt;
  &amp;lt;nowiki&amp;gt; def get_intelligent_topic_row(topic, selected_topics, max_team_size)&lt;br /&gt;
    row_html = ''&lt;br /&gt;
    if !selected_topics.nil? &amp;amp;&amp;amp; !selected_topics.empty?&lt;br /&gt;
      selected_topics.each do |selected_topic|&lt;br /&gt;
        row_html = if selected_topic.topic_id == topic.id and &lt;br /&gt;
                                                 !selected_topic.is_waitlisted&lt;br /&gt;
                     '&amp;lt;tr bgcolor=&amp;quot;yellow&amp;quot;&amp;gt;'&lt;br /&gt;
                   elsif selected_topic.topic_id == topic.id and&lt;br /&gt;
                                                    selected_topic.is_waitlisted&lt;br /&gt;
                     '&amp;lt;tr bgcolor=&amp;quot;lightgray&amp;quot;&amp;gt;'&lt;br /&gt;
                   else&lt;br /&gt;
                     '&amp;lt;tr id=&amp;quot;topic_' + topic.id.to_s + '&amp;quot;&amp;gt;'&lt;br /&gt;
                   end&lt;br /&gt;
      end&lt;br /&gt;
    else&lt;br /&gt;
      row_html = '&amp;lt;tr id=&amp;quot;topic_' + topic.id.to_s + '&amp;quot; style=&amp;quot;background-color:' +&lt;br /&gt;
                  get_topic_bg_color(topic, max_team_size) + '&amp;quot;&amp;gt;'&lt;br /&gt;
    end&lt;br /&gt;
    row_html.html_safe&lt;br /&gt;
  end&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== New Method: get_topic_bg_color() ====&lt;br /&gt;
  &amp;lt;nowiki&amp;gt;def get_topic_bg_color(topic, max_team_size)&lt;br /&gt;
    calculation = (400 * (1 - (Math.tanh(2 * [max_team_size.to_f / Bid.where(topic_id:&lt;br /&gt;
                   topic.id).count, 1].min - 1) + 1) / 2)).to_i.to_s&lt;br /&gt;
    'rgb(' + calculation + ',' + calculation + ',0)'&lt;br /&gt;
  end&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== New Method: render_participant_info() ====&lt;br /&gt;
  &amp;lt;nowiki&amp;gt; def render_participant_info(topic, assignment, participants)&lt;br /&gt;
    name_html = ''&lt;br /&gt;
    if !participants.nil? &amp;amp;&amp;amp; !participants.empty?&lt;br /&gt;
      chooser_present = false&lt;br /&gt;
      participants.each do |participant|&lt;br /&gt;
        next unless topic.id == participant.topic_id&lt;br /&gt;
        chooser_present = true&lt;br /&gt;
        if assignment.max_team_size &amp;gt; 1&lt;br /&gt;
          name_html += '&amp;lt;br/&amp;gt;&amp;lt;b&amp;gt;' + participant.team_name_placeholder + '&amp;lt;/b&amp;gt;&amp;lt;br/&amp;gt;'&lt;br /&gt;
        end&lt;br /&gt;
        name_html += 'participant.user_name_placeholder'&lt;br /&gt;
        if participant.is_waitlisted&lt;br /&gt;
          name_html += '&amp;lt;font color=&amp;quot;red&amp;quot;&amp;gt;(waitlisted)&amp;lt;/font&amp;gt;'&lt;br /&gt;
        end&lt;br /&gt;
        name_html += '&amp;lt;br/&amp;gt;'&lt;br /&gt;
      end&lt;br /&gt;
      name_html += 'No choosers.' unless chooser_present&lt;br /&gt;
    end&lt;br /&gt;
    name_html.html_safe&lt;br /&gt;
  end&lt;br /&gt;
end&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== New Test for Helper Classes: spec/helpers/sign_up_sheet_helper_spec.rb ====&lt;br /&gt;
Implemented positive and negative test cases for all the methods in sign_up_sheet_helper.rb&lt;br /&gt;
&lt;br /&gt;
==Running the Project Remotely==&lt;br /&gt;
We have hosted our forked repo so you can review our changes here:&lt;br /&gt;
&lt;br /&gt;
http://138.197.104.185:3000/&lt;br /&gt;
&lt;br /&gt;
Suggested login for Instructor privileges is 'instructor6' with password 'password'. To login as a student, you can use 'student5000' with password 'password'&lt;br /&gt;
&lt;br /&gt;
===Testing Instructions===&lt;br /&gt;
====First task====&lt;br /&gt;
This functionality can be tested by logging in as an instructor, make sure you are managing assignments, then click the &amp;quot;Edit&amp;quot; button of an assignment (the little pencil icon on the right), then choose the &amp;quot;Topic&amp;quot; tab. If you click &amp;quot;Hide all teams&amp;quot; link, all team names and team member unity ids will be hidden. Click the link again and the content will be shown. If you click individual top names, it should hide/show only one team's info.&lt;br /&gt;
&lt;br /&gt;
====Helper File Changes====&lt;br /&gt;
There is no change in the expected behaviour. &lt;br /&gt;
* '''get_suggested_topics''': Retrieve list of topics suggested by signed in user for an assignment.&lt;br /&gt;
* '''get_intelligent_topic_row''': Render Intelligent Row in bidding based topic selection.&lt;br /&gt;
* '''get_topic_bg_color''': Render background color for row based on signed in user and status of the topic.&lt;br /&gt;
* '''render_participant_info''': Render Participant Info based on topic, assignment and participants.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
====To Run the Unit Tests====&lt;br /&gt;
* Navigate to the expertiza home folder&lt;br /&gt;
* Run `rspec spec/helpers/sign_up_sheet_helper_spec.rb`&lt;/div&gt;</summary>
		<author><name>George2</name></author>
	</entry>
	<entry>
		<id>https://wiki.expertiza.ncsu.edu/index.php?title=CSC/ECE_517_Spring_2017/oss_E1727&amp;diff=107151</id>
		<title>CSC/ECE 517 Spring 2017/oss E1727</title>
		<link rel="alternate" type="text/html" href="https://wiki.expertiza.ncsu.edu/index.php?title=CSC/ECE_517_Spring_2017/oss_E1727&amp;diff=107151"/>
		<updated>2017-03-23T00:15:29Z</updated>

		<summary type="html">&lt;p&gt;George2: /* Project Modifications */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;==Introduction==&lt;br /&gt;
This project was completed as part of a greater open source project called Expertiza. &lt;br /&gt;
&lt;br /&gt;
Expertiza is a web application platform, similar to wikipedia, which offers teachers and students a way to organize for group assignments and porjects. By using Expertiza, students have the ability to submit and coordinate peer-review learning objects (articles, code, web sites, etc). The Expertiza project is supported by the National Science Foundation. &lt;br /&gt;
&lt;br /&gt;
Expertiza offers several features which are useful to a classroom-style learning environment. Among those several features, this project represents a contribution to the organization of the code used for assignment signup sheets. &lt;br /&gt;
&lt;br /&gt;
===Background===&lt;br /&gt;
The work for this project was completed by a group of three students from NC State. However, the project was completed according to guidelines provided by a coordinator who works with Expertiza. &lt;br /&gt;
&lt;br /&gt;
Following the guidelines provided, the group worked to clean up a portion of the Expertiza project code through refactorization and reorganization. More specifically, logical code needed to be separated from portions of the project which were not responsible for containing code for the functionality of the application.&lt;br /&gt;
&lt;br /&gt;
===Motivation===&lt;br /&gt;
The motivation for this project was to make the project code easier for programmers to read by compartmentalizing portions of the code to separate locations in the project according to the functionality of the code. &lt;br /&gt;
&lt;br /&gt;
The scope of this project was limited to functionalities associated with the signup sheet. This meant that logical code that was embedded in &amp;quot;view&amp;quot; (a folder containing html formatting and design code) should be moved to a more appropriate location, the &amp;quot;helpers&amp;quot; folder (this folder contains compartmentalized auxiliary functions that &amp;quot;help&amp;quot; with other parts of the project).&lt;br /&gt;
&lt;br /&gt;
===Tasks Identified===&lt;br /&gt;
     '''Documents:''' _add_signup_topics.html.erb, _due_dates.html.erb&lt;br /&gt;
* Move javascript code to assets (folder): There was some javascript at the bottom of the file _add_signup_topics.html.erb. This was moved to a new file app/assets/javascripts/signup.js. The functions were modified to pass in the number of teams that needed to be toggled (since it is now in a separate file without access to that information). The javascript from the file _due_dates.html.erb was also moved to the new signup.js file.&lt;br /&gt;
This functionality can be tested by logging in as an instructor, make sure you are managing assignments, then click the &amp;quot;Edit&amp;quot; button of an assignment (the little pencil icon on the right), then choose the &amp;quot;Topic&amp;quot; tab. If you click &amp;quot;Hide all teams&amp;quot; link, all team names and team member unity ids will be hidden. Click the link again and the content will be shown. If you click individual top names, it should hide/show only one team's info. &lt;br /&gt;
&lt;br /&gt;
     '''Documents:''' _suggested_topic.html.erb, intelligent_topic_selection.html.erb&lt;br /&gt;
* Move logical code to helper file and assign self-explanatory method names.&lt;br /&gt;
&lt;br /&gt;
     '''Documents:''' _all_actions.html.erb, _topic_names.html.erb&lt;br /&gt;
* Move logical code to helper file and assign self-explanatory method names.&lt;br /&gt;
&lt;br /&gt;
'''Testing:'''&lt;br /&gt;
* Create a test file named sign_up_sheet_helper_spec.rb in spec/helpers&lt;br /&gt;
* Write test cases for all methods in sign_up_sheet_helper.rb using factories&lt;br /&gt;
&lt;br /&gt;
====Classes====&lt;br /&gt;
* sign_up_sheet_helper.rb&lt;br /&gt;
* sign_up_sheet_helper_spec.rb&lt;br /&gt;
&lt;br /&gt;
===Project Modifications===&lt;br /&gt;
&lt;br /&gt;
==== New Method: get_suggested_topics() ====&lt;br /&gt;
  &amp;lt;nowiki&amp;gt; def get_suggested_topics(assignment_id)&lt;br /&gt;
    team_id = TeamsUser.team_id(assignment_id, session[:user].id)&lt;br /&gt;
    teams_users = TeamsUser.where(team_id: team_id)&lt;br /&gt;
    teams_users_array = Array.new&lt;br /&gt;
    teams_users.each do |teams_user|&lt;br /&gt;
      teams_users_array &amp;lt;&amp;lt; teams_user.user_id&lt;br /&gt;
    end&lt;br /&gt;
    @suggested_topics = SignUpTopic.where(assignment_id: assignment_id, private_to: teams_users_array)&lt;br /&gt;
  end&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== New Method: get_intelligent_topic_row() ====&lt;br /&gt;
  &amp;lt;nowiki&amp;gt; def get_intelligent_topic_row(topic, selected_topics)&lt;br /&gt;
    row_html = ''&lt;br /&gt;
    if !selected_topics.nil? &amp;amp;&amp;amp; selected_topics.size != 0&lt;br /&gt;
      for selected_topic in @selected_topics&lt;br /&gt;
        if selected_topic.topic_id == topic.id and !selected_topic.is_waitlisted&lt;br /&gt;
          row_html = '&amp;lt;tr bgcolor=&amp;quot;yellow&amp;quot;&amp;gt;'&lt;br /&gt;
        elsif selected_topic.topic_id == topic.id and selected_topic.is_waitlisted&lt;br /&gt;
          row_html = '&amp;lt;tr bgcolor=&amp;quot;lightgray&amp;quot;&amp;gt;'&lt;br /&gt;
        else&lt;br /&gt;
          row_html = '&amp;lt;tr id=&amp;quot;topic_&amp;quot;' + topic.id.to_s + '&amp;gt;'&lt;br /&gt;
        end&lt;br /&gt;
      end&lt;br /&gt;
    else&lt;br /&gt;
      row_html = '&amp;lt;tr id=&amp;quot;topic_&amp;quot;' + topic.id.to_s + ' style=&amp;quot;background-color:' + get_topic_bg_color(topic) + '&amp;quot;&amp;gt;'&lt;br /&gt;
    end&lt;br /&gt;
    row_html.html_safe&lt;br /&gt;
  end&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== New Method: get_topic_bg_color() ====&lt;br /&gt;
  &amp;lt;nowiki&amp;gt; def get_topic_bg_color(topic)&lt;br /&gt;
    'rgb(' + (400*(1-(Math.tanh(2*[@max_team_size.to_f/Bid.where(topic_id:topic.id).count,1].min-1)+1)/2))&lt;br /&gt;
        .to_i.to_s + ',' + (400*(Math.tanh(2*[@max_team_size.to_f/Bid.where(topic_id:topic.id).&lt;br /&gt;
        count,1].min-1)+1)/2).to_i.to_s + ',0)'&lt;br /&gt;
  end&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== New Method: render_participant_info() ====&lt;br /&gt;
  &amp;lt;nowiki&amp;gt; def render_participant_info(topic, assignment, participants)&lt;br /&gt;
    name_html = ''&lt;br /&gt;
    if !participants.nil? &amp;amp;&amp;amp; participants.size &amp;gt; 0&lt;br /&gt;
      chooser_present = false&lt;br /&gt;
      for participant in @participants&lt;br /&gt;
        if topic.id == participant.topic_id&lt;br /&gt;
          chooser_present = true&lt;br /&gt;
          if assignment.max_team_size &amp;gt; 1&lt;br /&gt;
            name_html += '&amp;lt;br/&amp;gt;&amp;lt;b&amp;gt;' + participant.team_name_placeholder + '&amp;lt;/b&amp;gt;&amp;lt;br/&amp;gt;'&lt;br /&gt;
          end&lt;br /&gt;
          name_html += 'participant.user_name_placeholder'&lt;br /&gt;
          if participant.is_waitlisted&lt;br /&gt;
            name_html += '&amp;lt;font color=&amp;quot;red&amp;quot;&amp;gt;(waitlisted)&amp;lt;/font&amp;gt;'&lt;br /&gt;
          end&lt;br /&gt;
          name_html += '&amp;lt;br/&amp;gt;'&lt;br /&gt;
        end&lt;br /&gt;
      end&lt;br /&gt;
      unless chooser_present&lt;br /&gt;
        name_html += 'No choosers.'&lt;br /&gt;
      end&lt;br /&gt;
    end&lt;br /&gt;
    name_html.html_safe&lt;br /&gt;
  end&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== New Test for Helper Classes: spec/helpers/sign_up_sheet_helper_spec.rb ====&lt;br /&gt;
Implemented positive and negative test cases for all the methods in sign_up_sheet_helper.rb&lt;br /&gt;
&lt;br /&gt;
==Running the Project Remotely==&lt;br /&gt;
We have hosted our forked repo so you can review our changes here:&lt;br /&gt;
&lt;br /&gt;
http://138.197.104.185:3000/&lt;br /&gt;
&lt;br /&gt;
Suggested login for Instructor privileges is 'instructor6' with password 'password'. To login as a student, you can use 'student5000' with password 'password'&lt;br /&gt;
&lt;br /&gt;
===Testing Instructions===&lt;br /&gt;
====First task====&lt;br /&gt;
This functionality can be tested by logging in as an instructor, make sure you are managing assignments, then click the &amp;quot;Edit&amp;quot; button of an assignment (the little pencil icon on the right), then choose the &amp;quot;Topic&amp;quot; tab. If you click &amp;quot;Hide all teams&amp;quot; link, all team names and team member unity ids will be hidden. Click the link again and the content will be shown. If you click individual top names, it should hide/show only one team's info.&lt;br /&gt;
&lt;br /&gt;
====Helper File Changes====&lt;br /&gt;
There is no change in the expected behaviour. &lt;br /&gt;
* '''get_suggested_topics''': Retrieve list of topics suggested by signed in user for an assignment.&lt;br /&gt;
* '''get_intelligent_topic_row''': Render Intelligent Row in bidding based topic selection.&lt;br /&gt;
* '''get_topic_bg_color''': Render background color for row based on signed in user and status of the topic.&lt;br /&gt;
* '''render_participant_info''': Render Participant Info based on topic, assignment and participants.&lt;br /&gt;
&lt;br /&gt;
==Future Work==&lt;/div&gt;</summary>
		<author><name>George2</name></author>
	</entry>
	<entry>
		<id>https://wiki.expertiza.ncsu.edu/index.php?title=CSC/ECE_517_Spring_2017/oss_E1727&amp;diff=107150</id>
		<title>CSC/ECE 517 Spring 2017/oss E1727</title>
		<link rel="alternate" type="text/html" href="https://wiki.expertiza.ncsu.edu/index.php?title=CSC/ECE_517_Spring_2017/oss_E1727&amp;diff=107150"/>
		<updated>2017-03-23T00:15:01Z</updated>

		<summary type="html">&lt;p&gt;George2: Helper File Changes&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;==Introduction==&lt;br /&gt;
This project was completed as part of a greater open source project called Expertiza. &lt;br /&gt;
&lt;br /&gt;
Expertiza is a web application platform, similar to wikipedia, which offers teachers and students a way to organize for group assignments and porjects. By using Expertiza, students have the ability to submit and coordinate peer-review learning objects (articles, code, web sites, etc). The Expertiza project is supported by the National Science Foundation. &lt;br /&gt;
&lt;br /&gt;
Expertiza offers several features which are useful to a classroom-style learning environment. Among those several features, this project represents a contribution to the organization of the code used for assignment signup sheets. &lt;br /&gt;
&lt;br /&gt;
===Background===&lt;br /&gt;
The work for this project was completed by a group of three students from NC State. However, the project was completed according to guidelines provided by a coordinator who works with Expertiza. &lt;br /&gt;
&lt;br /&gt;
Following the guidelines provided, the group worked to clean up a portion of the Expertiza project code through refactorization and reorganization. More specifically, logical code needed to be separated from portions of the project which were not responsible for containing code for the functionality of the application.&lt;br /&gt;
&lt;br /&gt;
===Motivation===&lt;br /&gt;
The motivation for this project was to make the project code easier for programmers to read by compartmentalizing portions of the code to separate locations in the project according to the functionality of the code. &lt;br /&gt;
&lt;br /&gt;
The scope of this project was limited to functionalities associated with the signup sheet. This meant that logical code that was embedded in &amp;quot;view&amp;quot; (a folder containing html formatting and design code) should be moved to a more appropriate location, the &amp;quot;helpers&amp;quot; folder (this folder contains compartmentalized auxiliary functions that &amp;quot;help&amp;quot; with other parts of the project).&lt;br /&gt;
&lt;br /&gt;
===Tasks Identified===&lt;br /&gt;
     '''Documents:''' _add_signup_topics.html.erb, _due_dates.html.erb&lt;br /&gt;
* Move javascript code to assets (folder): There was some javascript at the bottom of the file _add_signup_topics.html.erb. This was moved to a new file app/assets/javascripts/signup.js. The functions were modified to pass in the number of teams that needed to be toggled (since it is now in a separate file without access to that information). The javascript from the file _due_dates.html.erb was also moved to the new signup.js file.&lt;br /&gt;
This functionality can be tested by logging in as an instructor, make sure you are managing assignments, then click the &amp;quot;Edit&amp;quot; button of an assignment (the little pencil icon on the right), then choose the &amp;quot;Topic&amp;quot; tab. If you click &amp;quot;Hide all teams&amp;quot; link, all team names and team member unity ids will be hidden. Click the link again and the content will be shown. If you click individual top names, it should hide/show only one team's info. &lt;br /&gt;
&lt;br /&gt;
     '''Documents:''' _suggested_topic.html.erb, intelligent_topic_selection.html.erb&lt;br /&gt;
* Move logical code to helper file and assign self-explanatory method names.&lt;br /&gt;
&lt;br /&gt;
     '''Documents:''' _all_actions.html.erb, _topic_names.html.erb&lt;br /&gt;
* Move logical code to helper file and assign self-explanatory method names.&lt;br /&gt;
&lt;br /&gt;
'''Testing:'''&lt;br /&gt;
* Create a test file named sign_up_sheet_helper_spec.rb in spec/helpers&lt;br /&gt;
* Write test cases for all methods in sign_up_sheet_helper.rb using factories&lt;br /&gt;
&lt;br /&gt;
====Classes====&lt;br /&gt;
* sign_up_sheet_helper.rb&lt;br /&gt;
* sign_up_sheet_helper_spec.rb&lt;br /&gt;
&lt;br /&gt;
===Project Modifications===&lt;br /&gt;
&lt;br /&gt;
==== New Method: check_topic_due_date_value() ====&lt;br /&gt;
  &amp;lt;nowiki&amp;gt; def check_topic_due_date_value(assignment_due_dates, topic_id, deadline_type_id = 1, review_round = 1)&lt;br /&gt;
      due_date = get_topic_deadline(assignment_due_dates, topic_id, deadline_type_id, review_round)&lt;br /&gt;
      DateTime.parse(due_date.to_s).strftime(&amp;quot;%Y-%m-%d %H:%M&amp;quot;).in_time_zone&lt;br /&gt;
  end&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== New Method: get_topic_deadline() ====&lt;br /&gt;
  &amp;lt;nowiki&amp;gt; def get_topic_deadline(assignment_due_dates, topic_id, deadline_type_id = 1, review_round = 1)&lt;br /&gt;
    topic_due_date = TopicDueDate.where(parent_id: topic_id,&lt;br /&gt;
                                        deadline_type_id: deadline_type_id,&lt;br /&gt;
                                        round: review_round).first rescue nil&lt;br /&gt;
    if !topic_due_date.nil?&lt;br /&gt;
      topic_due_date.due_at&lt;br /&gt;
    else&lt;br /&gt;
      assignment_due_dates[review_round - 1].due_at.to_s&lt;br /&gt;
    end&lt;br /&gt;
  end&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== New Method: get_suggested_topics() ====&lt;br /&gt;
  &amp;lt;nowiki&amp;gt; def get_suggested_topics(assignment_id)&lt;br /&gt;
    team_id = TeamsUser.team_id(assignment_id, session[:user].id)&lt;br /&gt;
    teams_users = TeamsUser.where(team_id: team_id)&lt;br /&gt;
    teams_users_array = Array.new&lt;br /&gt;
    teams_users.each do |teams_user|&lt;br /&gt;
      teams_users_array &amp;lt;&amp;lt; teams_user.user_id&lt;br /&gt;
    end&lt;br /&gt;
    @suggested_topics = SignUpTopic.where(assignment_id: assignment_id, private_to: teams_users_array)&lt;br /&gt;
  end&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== New Method: get_intelligent_topic_row() ====&lt;br /&gt;
  &amp;lt;nowiki&amp;gt; def get_intelligent_topic_row(topic, selected_topics)&lt;br /&gt;
    row_html = ''&lt;br /&gt;
    if !selected_topics.nil? &amp;amp;&amp;amp; selected_topics.size != 0&lt;br /&gt;
      for selected_topic in @selected_topics&lt;br /&gt;
        if selected_topic.topic_id == topic.id and !selected_topic.is_waitlisted&lt;br /&gt;
          row_html = '&amp;lt;tr bgcolor=&amp;quot;yellow&amp;quot;&amp;gt;'&lt;br /&gt;
        elsif selected_topic.topic_id == topic.id and selected_topic.is_waitlisted&lt;br /&gt;
          row_html = '&amp;lt;tr bgcolor=&amp;quot;lightgray&amp;quot;&amp;gt;'&lt;br /&gt;
        else&lt;br /&gt;
          row_html = '&amp;lt;tr id=&amp;quot;topic_&amp;quot;' + topic.id.to_s + '&amp;gt;'&lt;br /&gt;
        end&lt;br /&gt;
      end&lt;br /&gt;
    else&lt;br /&gt;
      row_html = '&amp;lt;tr id=&amp;quot;topic_&amp;quot;' + topic.id.to_s + ' style=&amp;quot;background-color:' + get_topic_bg_color(topic) + '&amp;quot;&amp;gt;'&lt;br /&gt;
    end&lt;br /&gt;
    row_html.html_safe&lt;br /&gt;
  end&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== New Method: get_topic_bg_color() ====&lt;br /&gt;
  &amp;lt;nowiki&amp;gt; def get_topic_bg_color(topic)&lt;br /&gt;
    'rgb(' + (400*(1-(Math.tanh(2*[@max_team_size.to_f/Bid.where(topic_id:topic.id).count,1].min-1)+1)/2))&lt;br /&gt;
        .to_i.to_s + ',' + (400*(Math.tanh(2*[@max_team_size.to_f/Bid.where(topic_id:topic.id).&lt;br /&gt;
        count,1].min-1)+1)/2).to_i.to_s + ',0)'&lt;br /&gt;
  end&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== New Method: render_participant_info() ====&lt;br /&gt;
  &amp;lt;nowiki&amp;gt; def render_participant_info(topic, assignment, participants)&lt;br /&gt;
    name_html = ''&lt;br /&gt;
    if !participants.nil? &amp;amp;&amp;amp; participants.size &amp;gt; 0&lt;br /&gt;
      chooser_present = false&lt;br /&gt;
      for participant in @participants&lt;br /&gt;
        if topic.id == participant.topic_id&lt;br /&gt;
          chooser_present = true&lt;br /&gt;
          if assignment.max_team_size &amp;gt; 1&lt;br /&gt;
            name_html += '&amp;lt;br/&amp;gt;&amp;lt;b&amp;gt;' + participant.team_name_placeholder + '&amp;lt;/b&amp;gt;&amp;lt;br/&amp;gt;'&lt;br /&gt;
          end&lt;br /&gt;
          name_html += 'participant.user_name_placeholder'&lt;br /&gt;
          if participant.is_waitlisted&lt;br /&gt;
            name_html += '&amp;lt;font color=&amp;quot;red&amp;quot;&amp;gt;(waitlisted)&amp;lt;/font&amp;gt;'&lt;br /&gt;
          end&lt;br /&gt;
          name_html += '&amp;lt;br/&amp;gt;'&lt;br /&gt;
        end&lt;br /&gt;
      end&lt;br /&gt;
      unless chooser_present&lt;br /&gt;
        name_html += 'No choosers.'&lt;br /&gt;
      end&lt;br /&gt;
    end&lt;br /&gt;
    name_html.html_safe&lt;br /&gt;
  end&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== New Test for Helper Classes: spec/helpers/sign_up_sheet_helper_spec.rb ====&lt;br /&gt;
Implemented positive and negative test cases for all the methods in sign_up_sheet_helper.rb&lt;br /&gt;
&lt;br /&gt;
==Running the Project Remotely==&lt;br /&gt;
We have hosted our forked repo so you can review our changes here:&lt;br /&gt;
&lt;br /&gt;
http://138.197.104.185:3000/&lt;br /&gt;
&lt;br /&gt;
Suggested login for Instructor privileges is 'instructor6' with password 'password'. To login as a student, you can use 'student5000' with password 'password'&lt;br /&gt;
&lt;br /&gt;
===Testing Instructions===&lt;br /&gt;
====First task====&lt;br /&gt;
This functionality can be tested by logging in as an instructor, make sure you are managing assignments, then click the &amp;quot;Edit&amp;quot; button of an assignment (the little pencil icon on the right), then choose the &amp;quot;Topic&amp;quot; tab. If you click &amp;quot;Hide all teams&amp;quot; link, all team names and team member unity ids will be hidden. Click the link again and the content will be shown. If you click individual top names, it should hide/show only one team's info.&lt;br /&gt;
&lt;br /&gt;
====Helper File Changes====&lt;br /&gt;
There is no change in the expected behaviour. &lt;br /&gt;
* '''get_suggested_topics''': Retrieve list of topics suggested by signed in user for an assignment.&lt;br /&gt;
* '''get_intelligent_topic_row''': Render Intelligent Row in bidding based topic selection.&lt;br /&gt;
* '''get_topic_bg_color''': Render background color for row based on signed in user and status of the topic.&lt;br /&gt;
* '''render_participant_info''': Render Participant Info based on topic, assignment and participants.&lt;br /&gt;
&lt;br /&gt;
==Future Work==&lt;/div&gt;</summary>
		<author><name>George2</name></author>
	</entry>
	<entry>
		<id>https://wiki.expertiza.ncsu.edu/index.php?title=CSC/ECE_517_Spring_2017/oss_E1727&amp;diff=107145</id>
		<title>CSC/ECE 517 Spring 2017/oss E1727</title>
		<link rel="alternate" type="text/html" href="https://wiki.expertiza.ncsu.edu/index.php?title=CSC/ECE_517_Spring_2017/oss_E1727&amp;diff=107145"/>
		<updated>2017-03-22T23:53:30Z</updated>

		<summary type="html">&lt;p&gt;George2: /* Project Modifications */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;==Introduction==&lt;br /&gt;
This project was completed as part of a greater open source project called Expertiza. &lt;br /&gt;
&lt;br /&gt;
Expertiza is a web application platform, similar to wikipedia, which offers teachers and students a way to organize for group assignments and porjects. By using Expertiza, students have the ability to submit and coordinate peer-review learning objects (articles, code, web sites, etc). The Expertiza project is supported by the National Science Foundation. &lt;br /&gt;
&lt;br /&gt;
Expertiza offers several features which are useful to a classroom-style learning environment. Among those several features, this project represents a contribution to the organization of the code used for assignment signup sheets. &lt;br /&gt;
&lt;br /&gt;
===Background===&lt;br /&gt;
The work for this project was completed by a group of three students from NC State. However, the project was completed according to guidelines provided by a coordinator who works with Expertiza. &lt;br /&gt;
&lt;br /&gt;
Following the guidelines provided, the group worked to clean up a portion of the Expertiza project code through refactorization and reorganization. More specifically, logical code needed to be separated from portions of the project which were not responsible for containing code for the functionality of the application.&lt;br /&gt;
&lt;br /&gt;
===Motivation===&lt;br /&gt;
The motivation for this project was to make the project code easier for programmers to read by compartmentalizing portions of the code to separate locations in the project according to the functionality of the code. &lt;br /&gt;
&lt;br /&gt;
The scope of this project was limited to functionalities associated with the signup sheet. This meant that logical code that was embedded in &amp;quot;view&amp;quot; (a folder containing html formatting and design code) should be moved to a more appropriate location, the &amp;quot;helpers&amp;quot; folder (this folder contains compartmentalized auxiliary functions that &amp;quot;help&amp;quot; with other parts of the project).&lt;br /&gt;
&lt;br /&gt;
===Tasks Identified===&lt;br /&gt;
     '''Documents:''' _add_signup_topics.html.erb, _due_dates.html.erb&lt;br /&gt;
* Move javascript code to assets (folder): There was some javascript at the bottom of the file _add_signup_topics.html.erb. This was moved to a new file app/assets/javascripts/signup.js. The functions were modified to pass in the number of teams that needed to be toggled (since it is now in a separate file without access to that information). The javascript from the file _due_dates.html.erb was also moved to the new signup.js file.&lt;br /&gt;
This functionality can be tested by logging in as an instructor, make sure you are managing assignments, then click the &amp;quot;Edit&amp;quot; button of an assignment (the little pencil icon on the right), then choose the &amp;quot;Topic&amp;quot; tab. If you click &amp;quot;Hide all teams&amp;quot; link, all team names and team member unity ids will be hidden. Click the link again and the content will be shown. If you click individual top names, it should hide/show only one team's info. &lt;br /&gt;
&lt;br /&gt;
     '''Documents:''' _suggested_topic.html.erb, intelligent_topic_selection.html.erb&lt;br /&gt;
* Move logical code to helper file and assign self-explanatory method names.&lt;br /&gt;
&lt;br /&gt;
     '''Documents:''' _all_actions.html.erb, _topic_names.html.erb&lt;br /&gt;
* Move logical code to helper file and assign self-explanatory method names.&lt;br /&gt;
&lt;br /&gt;
'''Testing:'''&lt;br /&gt;
* Create a test file named sign_up_sheet_helper_spec.rb in spec/helpers&lt;br /&gt;
* Write test cases for all methods in sign_up_sheet_helper.rb using factories&lt;br /&gt;
&lt;br /&gt;
====Classes====&lt;br /&gt;
* sign_up_sheet_helper.rb&lt;br /&gt;
* sign_up_sheet_helper_spec.rb&lt;br /&gt;
&lt;br /&gt;
===Project Modifications===&lt;br /&gt;
&lt;br /&gt;
==== New Method: check_topic_due_date_value() ====&lt;br /&gt;
  &amp;lt;nowiki&amp;gt; def check_topic_due_date_value(assignment_due_dates, topic_id, deadline_type_id = 1, review_round = 1)&lt;br /&gt;
      due_date = get_topic_deadline(assignment_due_dates, topic_id, deadline_type_id, review_round)&lt;br /&gt;
      DateTime.parse(due_date.to_s).strftime(&amp;quot;%Y-%m-%d %H:%M&amp;quot;).in_time_zone&lt;br /&gt;
  end&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== New Method: get_topic_deadline() ====&lt;br /&gt;
  &amp;lt;nowiki&amp;gt; def get_topic_deadline(assignment_due_dates, topic_id, deadline_type_id = 1, review_round = 1)&lt;br /&gt;
    topic_due_date = TopicDueDate.where(parent_id: topic_id,&lt;br /&gt;
                                        deadline_type_id: deadline_type_id,&lt;br /&gt;
                                        round: review_round).first rescue nil&lt;br /&gt;
    if !topic_due_date.nil?&lt;br /&gt;
      topic_due_date.due_at&lt;br /&gt;
    else&lt;br /&gt;
      assignment_due_dates[review_round - 1].due_at.to_s&lt;br /&gt;
    end&lt;br /&gt;
  end&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== New Method: get_suggested_topics() ====&lt;br /&gt;
  &amp;lt;nowiki&amp;gt; def get_suggested_topics(assignment_id)&lt;br /&gt;
    team_id = TeamsUser.team_id(assignment_id, session[:user].id)&lt;br /&gt;
    teams_users = TeamsUser.where(team_id: team_id)&lt;br /&gt;
    teams_users_array = Array.new&lt;br /&gt;
    teams_users.each do |teams_user|&lt;br /&gt;
      teams_users_array &amp;lt;&amp;lt; teams_user.user_id&lt;br /&gt;
    end&lt;br /&gt;
    @suggested_topics = SignUpTopic.where(assignment_id: assignment_id, private_to: teams_users_array)&lt;br /&gt;
  end&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== New Method: get_intelligent_topic_row() ====&lt;br /&gt;
  &amp;lt;nowiki&amp;gt; def get_intelligent_topic_row(topic, selected_topics)&lt;br /&gt;
    row_html = ''&lt;br /&gt;
    if !selected_topics.nil? &amp;amp;&amp;amp; selected_topics.size != 0&lt;br /&gt;
      for selected_topic in @selected_topics&lt;br /&gt;
        if selected_topic.topic_id == topic.id and !selected_topic.is_waitlisted&lt;br /&gt;
          row_html = '&amp;lt;tr bgcolor=&amp;quot;yellow&amp;quot;&amp;gt;'&lt;br /&gt;
        elsif selected_topic.topic_id == topic.id and selected_topic.is_waitlisted&lt;br /&gt;
          row_html = '&amp;lt;tr bgcolor=&amp;quot;lightgray&amp;quot;&amp;gt;'&lt;br /&gt;
        else&lt;br /&gt;
          row_html = '&amp;lt;tr id=&amp;quot;topic_&amp;quot;' + topic.id.to_s + '&amp;gt;'&lt;br /&gt;
        end&lt;br /&gt;
      end&lt;br /&gt;
    else&lt;br /&gt;
      row_html = '&amp;lt;tr id=&amp;quot;topic_&amp;quot;' + topic.id.to_s + ' style=&amp;quot;background-color:' + get_topic_bg_color(topic) + '&amp;quot;&amp;gt;'&lt;br /&gt;
    end&lt;br /&gt;
    row_html.html_safe&lt;br /&gt;
  end&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== New Method: get_topic_bg_color() ====&lt;br /&gt;
  &amp;lt;nowiki&amp;gt; def get_topic_bg_color(topic)&lt;br /&gt;
    'rgb(' + (400*(1-(Math.tanh(2*[@max_team_size.to_f/Bid.where(topic_id:topic.id).count,1].min-1)+1)/2))&lt;br /&gt;
        .to_i.to_s + ',' + (400*(Math.tanh(2*[@max_team_size.to_f/Bid.where(topic_id:topic.id).&lt;br /&gt;
        count,1].min-1)+1)/2).to_i.to_s + ',0)'&lt;br /&gt;
  end&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== New Method: render_participant_info() ====&lt;br /&gt;
  &amp;lt;nowiki&amp;gt; def render_participant_info(topic, assignment, participants)&lt;br /&gt;
    name_html = ''&lt;br /&gt;
    if !participants.nil? &amp;amp;&amp;amp; participants.size &amp;gt; 0&lt;br /&gt;
      chooser_present = false&lt;br /&gt;
      for participant in @participants&lt;br /&gt;
        if topic.id == participant.topic_id&lt;br /&gt;
          chooser_present = true&lt;br /&gt;
          if assignment.max_team_size &amp;gt; 1&lt;br /&gt;
            name_html += '&amp;lt;br/&amp;gt;&amp;lt;b&amp;gt;' + participant.team_name_placeholder + '&amp;lt;/b&amp;gt;&amp;lt;br/&amp;gt;'&lt;br /&gt;
          end&lt;br /&gt;
          name_html += 'participant.user_name_placeholder'&lt;br /&gt;
          if participant.is_waitlisted&lt;br /&gt;
            name_html += '&amp;lt;font color=&amp;quot;red&amp;quot;&amp;gt;(waitlisted)&amp;lt;/font&amp;gt;'&lt;br /&gt;
          end&lt;br /&gt;
          name_html += '&amp;lt;br/&amp;gt;'&lt;br /&gt;
        end&lt;br /&gt;
      end&lt;br /&gt;
      unless chooser_present&lt;br /&gt;
        name_html += 'No choosers.'&lt;br /&gt;
      end&lt;br /&gt;
    end&lt;br /&gt;
    name_html.html_safe&lt;br /&gt;
  end&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== New Test for Helper Classes: spec/helpers/sign_up_sheet_helper_spec.rb ====&lt;br /&gt;
Implemented positive and negative test cases for all the methods in sign_up_sheet_helper.rb&lt;br /&gt;
&lt;br /&gt;
==Running the Project Remotely==&lt;br /&gt;
We have hosted our forked repo so you can review our changes here:&lt;br /&gt;
&lt;br /&gt;
http://138.197.104.185:3000/&lt;br /&gt;
&lt;br /&gt;
Suggested login for Instructor privileges is 'instructor6' with password 'password'. To login as a student, you can use 'student5000' with password 'password'&lt;br /&gt;
&lt;br /&gt;
===Testing Instructions===&lt;br /&gt;
====First task====&lt;br /&gt;
This functionality can be tested by logging in as an instructor, make sure you are managing assignments, then click the &amp;quot;Edit&amp;quot; button of an assignment (the little pencil icon on the right), then choose the &amp;quot;Topic&amp;quot; tab. If you click &amp;quot;Hide all teams&amp;quot; link, all team names and team member unity ids will be hidden. Click the link again and the content will be shown. If you click individual top names, it should hide/show only one team's info.&lt;br /&gt;
&lt;br /&gt;
==Future Work==&lt;/div&gt;</summary>
		<author><name>George2</name></author>
	</entry>
	<entry>
		<id>https://wiki.expertiza.ncsu.edu/index.php?title=CSC/ECE_517_Spring_2017/oss_E1727&amp;diff=107137</id>
		<title>CSC/ECE 517 Spring 2017/oss E1727</title>
		<link rel="alternate" type="text/html" href="https://wiki.expertiza.ncsu.edu/index.php?title=CSC/ECE_517_Spring_2017/oss_E1727&amp;diff=107137"/>
		<updated>2017-03-22T23:42:58Z</updated>

		<summary type="html">&lt;p&gt;George2: Added Test Data&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;==Introduction==&lt;br /&gt;
This project was completed as part of a greater open source project called Expertiza. &lt;br /&gt;
&lt;br /&gt;
Expertiza is a web application platform, similar to wikipedia, which offers teachers and students a way to organize for group assignments and porjects. By using Expertiza, students have the ability to submit and coordinate peer-review learning objects (articles, code, web sites, etc). The Expertiza project is supported by the National Science Foundation. &lt;br /&gt;
&lt;br /&gt;
Expertiza offers several features which are useful to a classroom-style learning environment. Among those several features, this project represents a contribution to the organization of the code used for assignment signup sheets. &lt;br /&gt;
&lt;br /&gt;
===Background===&lt;br /&gt;
The work for this project was completed by a group of three students from NC State. However, the project was completed according to guidelines provided by a coordinator who works with Expertiza. &lt;br /&gt;
&lt;br /&gt;
Following the guidelines provided, the group worked to clean up a portion of the Expertiza project code through refactorization and reorganization. More specifically, logical code needed to be separated from portions of the project which were not responsible for containing code for the functionality of the application.&lt;br /&gt;
&lt;br /&gt;
===Motivation===&lt;br /&gt;
The motivation for this project was to make the project code easier for programmers to read by compartmentalizing portions of the code to separate locations in the project according to the functionality of the code. &lt;br /&gt;
&lt;br /&gt;
The scope of this project was limited to functionalities associated with the signup sheet. This meant that logical code that was embedded in &amp;quot;view&amp;quot; (a folder containing html formatting and design code) should be moved to a more appropriate location, the &amp;quot;helpers&amp;quot; folder (this folder contains compartmentalized auxiliary functions that &amp;quot;help&amp;quot; with other parts of the project).&lt;br /&gt;
&lt;br /&gt;
===Tasks Identified===&lt;br /&gt;
     '''Documents:''' _add_signup_topics.html.erb, _due_dates.html.erb&lt;br /&gt;
* Move javascript code to assets (folder): There was some javascript at the bottom of the file _add_signup_topics.html.erb. This was moved to a new file app/assets/javascripts/signup.js. The functions were modified to pass in the number of teams that needed to be toggled (since it is now in a separate file without access to that information). The javascript from the file _due_dates.html.erb was also moved to the new signup.js file.&lt;br /&gt;
This functionality can be tested by logging in as an instructor, make sure you are managing assignments, then click the &amp;quot;Edit&amp;quot; button of an assignment (the little pencil icon on the right), then choose the &amp;quot;Topic&amp;quot; tab. If you click &amp;quot;Hide all teams&amp;quot; link, all team names and team member unity ids will be hidden. Click the link again and the content will be shown. If you click individual top names, it should hide/show only one team's info. &lt;br /&gt;
&lt;br /&gt;
     '''Documents:''' _suggested_topic.html.erb, intelligent_topic_selection.html.erb&lt;br /&gt;
* Move logical code to helper file and assign self-explanatory method names.&lt;br /&gt;
&lt;br /&gt;
     '''Documents:''' _all_actions.html.erb, _topic_names.html.erb&lt;br /&gt;
* Move logical code to helper file and assign self-explanatory method names.&lt;br /&gt;
&lt;br /&gt;
'''Testing:'''&lt;br /&gt;
* Create a test file named sign_up_sheet_helper_spec.rb in spec/helpers&lt;br /&gt;
* Write test cases for all methods in sign_up_sheet_helper.rb using factories&lt;br /&gt;
&lt;br /&gt;
====Classes====&lt;br /&gt;
* sign_up_sheet_helper.rb&lt;br /&gt;
* sign_up_sheet_helper_spec.rb&lt;br /&gt;
&lt;br /&gt;
===Project Modifications===&lt;br /&gt;
&lt;br /&gt;
==== New Method: check_topic_due_date_value() ====&lt;br /&gt;
  &amp;lt;nowiki&amp;gt; def check_topic_due_date_value(assignment_due_dates, topic_id, deadline_type_id = 1, review_round = 1)&lt;br /&gt;
      due_date = get_topic_deadline(assignment_due_dates, topic_id, deadline_type_id, review_round)&lt;br /&gt;
      DateTime.parse(due_date.to_s).strftime(&amp;quot;%Y-%m-%d %H:%M&amp;quot;).in_time_zone&lt;br /&gt;
  end&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== New Method: get_topic_deadline() ====&lt;br /&gt;
  &amp;lt;nowiki&amp;gt; def get_topic_deadline(assignment_due_dates, topic_id, deadline_type_id = 1, review_round = 1)&lt;br /&gt;
    topic_due_date = TopicDueDate.where(parent_id: topic_id,&lt;br /&gt;
                                        deadline_type_id: deadline_type_id,&lt;br /&gt;
                                        round: review_round).first rescue nil&lt;br /&gt;
    if !topic_due_date.nil?&lt;br /&gt;
      topic_due_date.due_at&lt;br /&gt;
    else&lt;br /&gt;
      assignment_due_dates[review_round - 1].due_at.to_s&lt;br /&gt;
    end&lt;br /&gt;
  end&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== New Method: get_suggested_topics() ====&lt;br /&gt;
  &amp;lt;nowiki&amp;gt; def get_suggested_topics(assignment_id)&lt;br /&gt;
    team_id = TeamsUser.team_id(assignment_id, session[:user].id)&lt;br /&gt;
    teams_users = TeamsUser.where(team_id: team_id)&lt;br /&gt;
    teams_users_array = Array.new&lt;br /&gt;
    teams_users.each do |teams_user|&lt;br /&gt;
      teams_users_array &amp;lt;&amp;lt; teams_user.user_id&lt;br /&gt;
    end&lt;br /&gt;
    @suggested_topics = SignUpTopic.where(assignment_id: assignment_id, private_to: teams_users_array)&lt;br /&gt;
  end&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== New Method: get_intelligent_topic_row() ====&lt;br /&gt;
  &amp;lt;nowiki&amp;gt; def get_intelligent_topic_row(topic, selected_topics)&lt;br /&gt;
    row_html = ''&lt;br /&gt;
    if !selected_topics.nil? &amp;amp;&amp;amp; selected_topics.size != 0&lt;br /&gt;
      for selected_topic in @selected_topics&lt;br /&gt;
        if selected_topic.topic_id == topic.id and !selected_topic.is_waitlisted&lt;br /&gt;
          row_html = '&amp;lt;tr bgcolor=&amp;quot;yellow&amp;quot;&amp;gt;'&lt;br /&gt;
        elsif selected_topic.topic_id == topic.id and selected_topic.is_waitlisted&lt;br /&gt;
          row_html = '&amp;lt;tr bgcolor=&amp;quot;lightgray&amp;quot;&amp;gt;'&lt;br /&gt;
        else&lt;br /&gt;
          row_html = '&amp;lt;tr id=&amp;quot;topic_&amp;quot;' + topic.id.to_s + '&amp;gt;'&lt;br /&gt;
        end&lt;br /&gt;
      end&lt;br /&gt;
    else&lt;br /&gt;
      row_html = '&amp;lt;tr id=&amp;quot;topic_&amp;quot;' + topic.id.to_s + ' style=&amp;quot;background-color:' + get_topic_bg_color(topic) + '&amp;quot;&amp;gt;'&lt;br /&gt;
    end&lt;br /&gt;
    row_html.html_safe&lt;br /&gt;
  end&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== New Method: get_topic_bg_color() ====&lt;br /&gt;
  &amp;lt;nowiki&amp;gt; def get_topic_bg_color(topic)&lt;br /&gt;
    'rgb(' + (400*(1-(Math.tanh(2*[@max_team_size.to_f/Bid.where(topic_id:topic.id).count,1].min-1)+1)/2))&lt;br /&gt;
        .to_i.to_s + ',' + (400*(Math.tanh(2*[@max_team_size.to_f/Bid.where(topic_id:topic.id).&lt;br /&gt;
        count,1].min-1)+1)/2).to_i.to_s + ',0)'&lt;br /&gt;
  end&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== New Method: render_participant_info() ====&lt;br /&gt;
  &amp;lt;nowiki&amp;gt; def render_participant_info(topic, assignment, participants)&lt;br /&gt;
    name_html = ''&lt;br /&gt;
    if !participants.nil? &amp;amp;&amp;amp; participants.size &amp;gt; 0&lt;br /&gt;
      chooser_present = false&lt;br /&gt;
      for participant in @participants&lt;br /&gt;
        if topic.id == participant.topic_id&lt;br /&gt;
          chooser_present = true&lt;br /&gt;
          if assignment.max_team_size &amp;gt; 1&lt;br /&gt;
            name_html += '&amp;lt;br/&amp;gt;&amp;lt;b&amp;gt;' + participant.team_name_placeholder + '&amp;lt;/b&amp;gt;&amp;lt;br/&amp;gt;'&lt;br /&gt;
          end&lt;br /&gt;
          name_html += 'participant.user_name_placeholder'&lt;br /&gt;
          if participant.is_waitlisted&lt;br /&gt;
            name_html += '&amp;lt;font color=&amp;quot;red&amp;quot;&amp;gt;(waitlisted)&amp;lt;/font&amp;gt;'&lt;br /&gt;
          end&lt;br /&gt;
          name_html += '&amp;lt;br/&amp;gt;'&lt;br /&gt;
        end&lt;br /&gt;
      end&lt;br /&gt;
      unless chooser_present&lt;br /&gt;
        name_html += 'No choosers.'&lt;br /&gt;
      end&lt;br /&gt;
    end&lt;br /&gt;
    name_html.html_safe&lt;br /&gt;
  end&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Running the Project Remotely==&lt;br /&gt;
We have hosted our forked repo so you can review our changes here:&lt;br /&gt;
&lt;br /&gt;
http://138.197.104.185:3000/&lt;br /&gt;
&lt;br /&gt;
Suggested login for Instructor privileges is 'instructor6' with password 'password'. To login as a student, you can use 'student5000' with password 'password'&lt;br /&gt;
&lt;br /&gt;
===Testing Instructions===&lt;br /&gt;
====First task====&lt;br /&gt;
This functionality can be tested by logging in as an instructor, make sure you are managing assignments, then click the &amp;quot;Edit&amp;quot; button of an assignment (the little pencil icon on the right), then choose the &amp;quot;Topic&amp;quot; tab. If you click &amp;quot;Hide all teams&amp;quot; link, all team names and team member unity ids will be hidden. Click the link again and the content will be shown. If you click individual top names, it should hide/show only one team's info.&lt;br /&gt;
&lt;br /&gt;
==Future Work==&lt;/div&gt;</summary>
		<author><name>George2</name></author>
	</entry>
</feed>