{"action":"created","comment":{"url":"https://api.github.com/repos/bkhouri-work/codereview/pulls/comments/23967364","id":23967364,"diff_hunk":"@@ -0,0 +1,540 @@\n+import java.io.BufferedReader;\n+import java.io.BufferedWriter;\n+import java.io.File;\n+import java.io.FileReader;\n+import java.io.FileWriter;\n+import java.io.IOException;\n+import java.io.InputStreamReader;\n+import java.util.ArrayList;\n+\n+\n+public class frontend {\n+\tstatic int loggedIn = 0;\n+\tstatic int type = 0; // if type = 1 its retail, if type=2 its agent\n+\tstatic ArrayList<String> transactionFile = new ArrayList<String>();\n+\tpublic static void main(String[] args) {\n+\t\tlogin();\n+\t}\n+\tpublic static void login(){\n+\t\t//Runs on start up\n+\t\t\n+\t\t\t\t//Prompts User for log in\n+\t\t\t\tif(loggedIn == 0){\n+\t\t\t\t\t//Not logged in\n+\t\t\t\t\twhile(loggedIn == 0){\n+\t\t\t\t\t\tSystem.out.print(\"Please log in: Command>\");\n+\t\t\t\t\t\tString logInCom = input();\n+\t\t\t\t\t\t//System.out.println(logInCom);\n+\t\t\t\t\t\t/*\n+\t\t\t\t\t\tint total = 0;\n+\t\t\t\t\t\tfor (char ch : logInCom.toCharArray()){\n+\t\t\t\t\t        total += (int)ch;\n+\t\t\t\t\t    }\n+\t\t\t\t\t\tif(total == 537){\n+\t\t\t\t\t\t*/\n+\t\t\t\t\t\tif(logInCom.equals(\"login\")){//this doesnt work. \n+\t\t\t\t\t\t\tloggedIn = 1;\n+\t\t\t\t\t\t\tSystem.out.println(\"Logged In\");\t\n+\t\t\t\t\t\t}else{\n+\t\t\t\t\t\t\tSystem.out.println(\"Invalid log in.\");\n+\t\t\t\t\t\t}\n+\t\t\t\t\t}\n+\t\t\t\t\t\t\n+\t\t\t\t\t\n+\t\t\t\t\t/*\n+\t\t\t\t    String logInCom = input();\n+\t\t\t\t    System.out.println(logInCom);//Test\n+\t\t\t\t    \n+\t\t\t\t    if(logInCom != \"login\"){\n+\t\t\t\t    \tSystem.out.println(\"Invalid command, please log in\");\n+\t\t\t\t    \tSystem.exit(1);//Shouldnt exit, simply reset the command process\n+\t\t\t\t    \n+\t\t\t\t    }else{\n+\t\t\t\t    */\n+\t\t\t\t    if(loggedIn == 1){\n+\t\t\t\t    \t//Looking for type of user.\n+\t\t\t\t    \tSystem.out.println(\"Please enter a type of user. (Retail or Agent): Command>\");\n+\t\t\t\t    \tString logInTypeCom = input();\n+\t\t\t\t    \tSystem.out.println(logInTypeCom);\n+\t\t\t\t    \t\n+\t\t\t\t    \tif(logInTypeCom.equals(\"retail\")){\n+\t\t\t\t    \t\tloggedIn = 1;\n+\t\t\t\t    \t\ttype= 1;\n+\t\t\t\t    \t\ttakeCommand();\n+\t\t\t\t    \t}else if(logInTypeCom.equals(\"agent\")){\n+\t\t\t\t    \t\tloggedIn = 1;\n+\t\t\t\t    \t\ttype= 2;\n+\t\t\t\t    \t\ttakeCommand();\n+\t\t\t\t    \t}else{\n+\t\t\t\t    \t\tSystem.out.println(\"Invalid type, please log in\");\n+\t\t\t\t\t    \tSystem.exit(1);//Shouldnt exit, simply reset the command process\n+\t\t\t\t    \t}\n+\t\t\t\t    }\n+\t\t\t\t}else{\n+\t\t\t\t\t//Logged In\n+\t\t\t\t\ttakeCommand();\n+\t\t\t\t}\n+\t}\n+\tpublic static String input(){\n+\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in)); \n+\t    String command = null;\n+\t \n+\t    //  read the username from the command-line; need to use try/catch with the\n+\t    //  readLine() method\n+\t    try {\n+\t    \tcommand = br.readLine();\n+\t    } catch (IOException ioe) {\n+\t    \t//Set up valid error message\n+\t    \tSystem.out.println(\"IO error trying to read your name!\");\n+\t        System.exit(1);//Shouldnt exit, simply reset the command process\n+\t    }\n+\t    command = command.toLowerCase();\n+\t\treturn command;\n+\t}\n+\tpublic static void takeCommand(){\n+\t\tSystem.out.print(\"Command>\");\n+\t\tString command = input();\n+\t\tif(command.equals(\"login\")){\n+\t\t\terror(\"You are already logged in.\");\n+\t\t}else if(command.equals(\"logout\")){\n+\t\t\tfront_logout();\n+\t\t}else if(command.equals(\"create\")){\n+\t\t\tif(type == 2){\n+\t\t\t\tfront_create();\n+\t\t\t}else{\n+\t\t\t\terror(\"Not logged into the proper account.\");\n+\t\t\t}\n+\t\t}else if(command.equals(\"delete\")){\n+\t\t\tif(type == 2){\n+\t\t\t\tfront_delete();\n+\t\t\t}else{\n+\t\t\t\terror(\"Not logged into the proper account.\");\n+\t\t\t}\n+\t\t}else if(command.equals(\"deposit\")){\n+\t\t\tfront_deposit();\n+\t\t}else if(command.equals(\"withdraw\")){\n+\t\t\tfront_withdraw();\n+\t\t}else if(command.equals(\"transfer\")){\n+\t\t\tfront_transfer();\n+\t\t}else{\n+\t\t\terror(\"Some error statement.\");\n+\t\t}\n+\t}\n+\tpublic static void error(String errorMessage){\n+\t\tSystem.out.println(errorMessage);\n+\t\ttakeCommand();\n+\t}\n+\tpublic static void front_create() {\n+\t\t// get the account number\n+\t\t// get the account name\n+\t\t// update the transaction summary file\n+\t\tSystem.out.print(\"Account Number:\");\n+\t\tString accountNumber = frontend.input();\n+\t\tif(accountNumber(accountNumber)==false){\n+\t\t\tfrontend.error(\"Error: Invalid account number.\");\n+\t\t}else{\n+\t\t\t//validate the account number \n+\t\t\tSystem.out.print(\"Account Name:\");\n+\t\t\tString accountName = frontend.input();\n+\t\t\tif(accountName(accountName)==false){\n+\t\t\t\tfrontend.error(\"Error: Invalid account name.\");\n+\t\t\t}else{\n+\t\t\t//validate the account name \n+\n+\t\t\t\n+\t\t\t\taccountNumber = addZeros(accountNumber, 6);//adds zeros in front if size is less than 6\n+\n+\t\t\t\tString str = \"04_\" + accountNumber + \"_\" + accountName; \n+\t\t\t\tfrontend.transactionFile.add(str);\n+\t\t\t\t//write.writeToSummaryFile(str);\n+\t\t\t\tSystem.out.println(\"Account created.\");\n+\t\t\t}\n+\t\t}\n+\t}\n+\tpublic static void front_logout() {\n+\t\tfrontend.loggedIn = 0;\n+\t\t//run main function on frontend.java\n+\t\tSystem.out.println(\"Logged out.\");\n+\t\t\n+\t\tfor (String s : frontend.transactionFile){\n+\t\t\twriteToSummaryFile(s);\t\n+\t\t}\n+    \tfrontend.login();\n+\t}\n+\tpublic static void front_delete() {\n+\t\tSystem.out.print(\"Please enter an account number:\");\n+\t\tString accountNumber = frontend.input();\n+\t\tif(accountNumber(accountNumber)==false){\n+\t\t\tfrontend.error(\"Error: Invalid account number.\");\n+\t\t}else{\n+\t\t\tSystem.out.print(\"Please enter an acount name:\");\n+\t\t\tString accountName = frontend.input();\n+\t\t\tif(accountName(accountName)==false){\n+\t\t\t\tfrontend.error(\"Error: Invalid account name.\");\n+\t\t\t}else{\n+\n+\t\t\t\taccountNumber = addZeros(accountNumber, 6);//adds zeros in front if size is less than 6\n+\t\t\t\t\n+\t\t\t\tString str = \"05_\" + accountNumber + \"_\" + accountName;\n+\t\t\t\tfrontend.transactionFile.add(str);\n+\t\t\t\t//write.writeToSummaryFile(str);\n+\t\t\t\tSystem.out.println(\"Account deleted.\");\n+\t\t\t}\n+\t\t}\n+\t}\n+\tpublic static void front_deposit() {\n+\t\t//get account number\n+\t\t//get amount\n+\t\tSystem.out.print(\"Account Number:\");\n+\t\tString accountNumber = frontend.input();\n+\t\tif(accountNumber(accountNumber)==false){\n+\t\t\tfrontend.error(\"Error: Invalid account number.\");\n+\t\t}else{\n+\t\t\tif(accountExists(accountNumber)==false){\n+\t\t\t\tfrontend.error(\"Error: Account doesnt exist.\");\n+\t\t\t}else{\n+\t\t\t\tSystem.out.print(\"Account Amount:\");\n+\t\t\t\tString accountAmount = frontend.input();\n+\t\t\t\tif(accountAmount(accountAmount)==false){\n+\t\t\t\t\tfrontend.error(\"Error: Invalid account amount.\");\n+\t\t\t\t}else{\n+\n+\t\t\t\t\tif(lowerLimit(accountAmount)==false){\n+\t\t\t\t\t\tfrontend.error(\"Error: Invalid account amount. Must be greater than 0.\");\n+\t\t\t\t\t}else{\n+\t\t\t\t\t\tif(upperLimit(accountAmount)==false){\n+\t\t\t\t\t\t\tfrontend.error(\"Error: Invalid account amount. The amount is too high for the type of login.\");\n+\t\t\t\t\t\t}else{\n+\t\t\t\t\t\t\t//convert amountStr to int well more validate\n+\t\t\t\t\t\t\t//make sure the account number is long enough\n+\t\t\t\t\t\t\t//Does there have to be an account name?\n+\t\t\t\t\t\t\t//make sure its a valid account\n+\t\t\t\t\t\t\t\n+\t\t\t\t\t\t\taccountAmount = addZeros(accountAmount, 8);//adds zeros in front if size is less than 8\n+\t\t\t\t\t\t\taccountNumber = addZeros(accountNumber, 6);//adds zeros in front if size is less than 6\n+\t\t\t\t\t\t\t\n+\t\t\t\t\t\t\tString str = \"01_\" + accountNumber + \"_\" + accountAmount; \n+\t\t\t\t\t\t\tfrontend.transactionFile.add(str);\n+\t\t\t\t\t\t\t//write.writeToSummaryFile(str);\n+\t\t\t\t\t\t\tSystem.out.println(\"Successful Deposit.\");\n+\t\t\t\t\t\t}\n+\t\t\t\t\t}\n+\t\t\t\t}\n+\t\t\t}\n+\t\t}\n+\t}\n+\tpublic static void front_transfer() {\n+\t\t//get account number\n+\t\t//get amount\n+\t\tSystem.out.print(\"To Account Number:\");\n+\t\tString toAccountNumber = frontend.input();\n+\t\tif(accountNumber(toAccountNumber)==false){\n+\t\t\tfrontend.error(\"Error: Invalid 'to' account.\");\n+\t\t}else{\n+\t\t\tSystem.out.print(\"From Account Number:\");\n+\t\t\tString fromAccountNumber = frontend.input();\n+\t\t\tif(accountNumber(fromAccountNumber)==false){\n+\t\t\t\tfrontend.error(\"Error: Invalid 'From' account.\");\n+\t\t\t}else{\n+\t\t\t\tSystem.out.print(\"Account Amount:\");\n+\t\t\t\tString accountAmount = frontend.input();\n+\t\t\t\tif(accountAmount(accountAmount)==false){\n+\t\t\t\t\tfrontend.error(\"Error: Invalid amount.\");\n+\t\t\t\t}else{\n+\n+\t\t\t\t\tif(lowerLimit(accountAmount)==false){\n+\t\t\t\t\t\tfrontend.error(\"Error: Invalid account amount. Must be greater than 0.\");\n+\t\t\t\t\t}else{\n+\t\t\t\t\t\tif(upperLimit(accountAmount)==false){\n+\t\t\t\t\t\t\tfrontend.error(\"Error: Invalid account amount. The amount is too high for the type of login.\");\n+\t\t\t\t\t\t}else{\n+\t\t\t\t\t\t\t//convert amountStr to int well more validate\n+\t\t\t\t\t\t\t//make sure the account number is long enough\n+\t\t\t\t\t\t\t//Does there have to be an account name?\n+\t\t\t\t\t\t\t//make sure they are both valid accounts\n+\t\t\t\t\t\t\t\t\n+\t\t\t\t\t\t\taccountAmount = addZeros(accountAmount, 8);//adds zeros in front if size is less than 8\n+\t\t\t\t\t\t\tfromAccountNumber = addZeros(fromAccountNumber, 6);//adds zeros in front if size is less than 6\n+\t\t\t\t\t\t\ttoAccountNumber = addZeros(toAccountNumber, 6);//adds zeros in front if size is less than 6\n+\t\t\t\t\t\t\t\n+\t\t\t\t\t\t\t\n+\t\t\t\t\t\t\tString str = \"03_\" + toAccountNumber + \"_\" + fromAccountNumber + \"_\" + accountAmount; \n+\t\t\t\t\t\t\tfrontend.transactionFile.add(str);\n+\t\t\t\t\t\t\t//write.writeToSummaryFile(str);\n+\t\t\t\t\t\t\tSystem.out.println(\"Successful Transfer.\");\n+\t\t\t\t\t\t}\n+\t\t\t\t\t}\n+\t\t\t\t}\n+\t\t\t}\n+\t\t}\n+\t}\n+\tpublic static boolean accountName(String name){\n+\t\t//name\n+\t\t//Make sure the whole name is letters.\n+\t\tboolean valid = true;\n+\t\tfor (char ch : name.toCharArray()){\n+\t        int asciiVal = (int)ch;\t\n+\t\t\t//if((65 <= asciiVal <= 90) || (97 <= asciiVal <= 122) || (asciiVal == 32)){\n+\t\t\tif((asciiVal >= 65) || (asciiVal <= 90) || (asciiVal >= 97) || (asciiVal <=122)){\n+\t\t\t\t// a - z\n+\t\t\t\t// space\n+\t\t\t\t// A - Z\n+\t\t\t\tvalid=true;\n+\t\t\t}else{\n+\t\t\t\tvalid=false;\n+\t\t\t}\n+\t    }\n+\t\treturn valid;\n+\t}\n+\tpublic static boolean accountNumber(String number){\n+\t\t//covert the string to integers\n+\t\tboolean valid = true;\n+\t\ttry{\n+\t\t\tint x =Integer.parseInt(number);\n+\t\t}catch(NumberFormatException e){\n+\t\t\tvalid = false;\n+\t\t}\n+\t\t//check length make sure the account is the proper length\n+\t\tint lengthOfAccount = number.length();\n+\t\tif(lengthOfAccount != 8){\n+\t\t\tif(lengthOfAccount > 8){\n+\t\t\t\tvalid = false;\n+\t\t\t}\n+\t\t}\n+\t\treturn valid;\n+\t}\n+\tpublic static boolean accountExists(String number){\n+\t\t//Check Account File for the account.\n+\t\t\n+\t\t//Check length, if its less or equal to 8. \n+\t\t//if less add zeros.\n+\t\tif(number.length() == 8){\n+\t\t\tBufferedReader br = null;\n+\t\t\ttry {\n+\t \n+\t\t\t\tString sCurrentLine;\n+\t \n+\t\t\t\tbr = new BufferedReader(new FileReader(\"./src/valid_accounts.txt\"));\n+\t \n+\t\t\t\twhile ((sCurrentLine = br.readLine()) != null) {\n+\t\t\t\t\tif(sCurrentLine == number){\n+\t\t\t\t\t\treturn true;\n+\t\t\t\t\t}\n+\t\t\t\t}\n+\t \n+\t\t\t} catch (IOException e) {\n+\t\t\t\te.printStackTrace();\n+\t\t\t}\n+\t\t}else if(number.length() > 8){\n+\t\t\treturn false;\n+\t\t}else{\n+\t\t\tString newAccountNumber = addZeros(number, 8);\n+\t\t\t//check the newAccountNumber\n+\t\t\tBufferedReader br = null;\n+\t\t\ttry {\n+\t \n+\t\t\t\tString sCurrentLine;\n+\t \n+\t\t\t\tbr = new BufferedReader(new FileReader(\"./src/valid_accounts.txt\"));\n+\t \n+\t\t\t\twhile ((sCurrentLine = br.readLine()) != null) {\n+\t\t\t\t\tif(sCurrentLine == newAccountNumber){\n+\t\t\t\t\t\treturn true;\n+\t\t\t\t\t}\n+\t\t\t\t}\n+\t \n+\t\t\t} catch (IOException e) {\n+\t\t\t\te.printStackTrace();\n+\t\t\t}\n+\t\t}\n+\t\treturn false;\n+\t}\n+\tpublic static boolean accountAmount(String number){\n+\t\ttry{\n+\t\t\tint x =Integer.parseInt(number);\n+\t\t}catch(NumberFormatException e){\n+\t\t\treturn false;\n+\t\t}\n+\t\treturn true;\n+\t}\n+\tpublic static String addZeros(String number, int size){\n+\t\t//get the number and subtrack it by 8 and add that many zeros\n+\t\tint length = number.length();\n+\t\tint additionalZeros = size - length;\n+\t\tfor( int i = 0 ; i < additionalZeros ; i++ ){\n+\t\t\tnumber = \"0\" + number;\n+\t\t}\n+\t\treturn number;\n+\t}\n+\tpublic static boolean lowerLimit(String amount){\n+\t\tboolean valid = false;\n+\t\ttry{\n+\t\t\tint amountInt = Integer.parseInt(amount);\n+\t\t\tif(amountInt > 0){\n+\t\t\t\tvalid = true;\n+\t\t\t}\n+\t\t}catch(NumberFormatException e){\n+\t\t\t//should not reach here because we validate before.\n+\t\t\tSystem.out.println(\"Error 0001\");\n+\t\t\tSystem.exit(1);\n+\t\t}\n+\t\treturn valid;\n+\t}\n+\tpublic static boolean upperLimit(String amount){\n+\t\tboolean valid = false;\n+\t\ttry{\n+\t\t\tint amountInt = Integer.parseInt(amount);\n+\t\t\tif(frontend.type == 1){\n+\t\t\t\t//retail mode\n+\t\t\t\tif(amountInt > 100000){//above 1,000.00","path":"frontend.java","position":389,"original_position":389,"commit_id":"3bc2d7873f3c02d4d0ea455c671d0a2979cc0ce0","original_commit_id":"3bc2d7873f3c02d4d0ea455c671d0a2979cc0ce0","user":{"login":"bkhouri-work","id":10817300,"avatar_url":"https://avatars.githubusercontent.com/u/10817300?v=3","gravatar_id":"","url":"https://api.github.com/users/bkhouri-work","html_url":"https://github.com/bkhouri-work","followers_url":"https://api.github.com/users/bkhouri-work/followers","following_url":"https://api.github.com/users/bkhouri-work/following{/other_user}","gists_url":"https://api.github.com/users/bkhouri-work/gists{/gist_id}","starred_url":"https://api.github.com/users/bkhouri-work/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bkhouri-work/subscriptions","organizations_url":"https://api.github.com/users/bkhouri-work/orgs","repos_url":"https://api.github.com/users/bkhouri-work/repos","events_url":"https://api.github.com/users/bkhouri-work/events{/privacy}","received_events_url":"https://api.github.com/users/bkhouri-work/received_events","type":"User","site_admin":false},"body":"I think so too.","created_at":"2015-02-02T22:58:43Z","updated_at":"2015-02-02T22:58:43Z","html_url":"https://github.com/bkhouri-work/codereview/pull/1#discussion_r23967364","pull_request_url":"https://api.github.com/repos/bkhouri-work/codereview/pulls/1","_links":{"self":{"href":"https://api.github.com/repos/bkhouri-work/codereview/pulls/comments/23967364"},"html":{"href":"https://github.com/bkhouri-work/codereview/pull/1#discussion_r23967364"},"pull_request":{"href":"https://api.github.com/repos/bkhouri-work/codereview/pulls/1"}}},"pull_request":{"url":"https://api.github.com/repos/bkhouri-work/codereview/pulls/1","id":28499768,"html_url":"https://github.com/bkhouri-work/codereview/pull/1","diff_url":"https://github.com/bkhouri-work/codereview/pull/1.diff","patch_url":"https://github.com/bkhouri-work/codereview/pull/1.patch","issue_url":"https://api.github.com/repos/bkhouri-work/codereview/issues/1","number":1,"state":"open","locked":false,"title":"Reviewing file","user":{"login":"bkhouri-work","id":10817300,"avatar_url":"https://avatars.githubusercontent.com/u/10817300?v=3","gravatar_id":"","url":"https://api.github.com/users/bkhouri-work","html_url":"https://github.com/bkhouri-work","followers_url":"https://api.github.com/users/bkhouri-work/followers","following_url":"https://api.github.com/users/bkhouri-work/following{/other_user}","gists_url":"https://api.github.com/users/bkhouri-work/gists{/gist_id}","starred_url":"https://api.github.com/users/bkhouri-work/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bkhouri-work/subscriptions","organizations_url":"https://api.github.com/users/bkhouri-work/orgs","repos_url":"https://api.github.com/users/bkhouri-work/repos","events_url":"https://api.github.com/users/bkhouri-work/events{/privacy}","received_events_url":"https://api.github.com/users/bkhouri-work/received_events","type":"User","site_admin":false},"body":"","created_at":"2015-02-02T20:27:13Z","updated_at":"2015-02-02T22:58:43Z","closed_at":null,"merged_at":null,"merge_commit_sha":"2fb4df5d58f9ee03af226e5a6cef935221922e1e","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/bkhouri-work/codereview/pulls/1/commits","review_comments_url":"https://api.github.com/repos/bkhouri-work/codereview/pulls/1/comments","review_comment_url":"https://api.github.com/repos/bkhouri-work/codereview/pulls/comments/{number}","comments_url":"https://api.github.com/repos/bkhouri-work/codereview/issues/1/comments","statuses_url":"https://api.github.com/repos/bkhouri-work/codereview/statuses/3bc2d7873f3c02d4d0ea455c671d0a2979cc0ce0","head":{"label":"bkhouri-work:testing","ref":"testing","sha":"3bc2d7873f3c02d4d0ea455c671d0a2979cc0ce0","user":{"login":"bkhouri-work","id":10817300,"avatar_url":"https://avatars.githubusercontent.com/u/10817300?v=3","gravatar_id":"","url":"https://api.github.com/users/bkhouri-work","html_url":"https://github.com/bkhouri-work","followers_url":"https://api.github.com/users/bkhouri-work/followers","following_url":"https://api.github.com/users/bkhouri-work/following{/other_user}","gists_url":"https://api.github.com/users/bkhouri-work/gists{/gist_id}","starred_url":"https://api.github.com/users/bkhouri-work/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bkhouri-work/subscriptions","organizations_url":"https://api.github.com/users/bkhouri-work/orgs","repos_url":"https://api.github.com/users/bkhouri-work/repos","events_url":"https://api.github.com/users/bkhouri-work/events{/privacy}","received_events_url":"https://api.github.com/users/bkhouri-work/received_events","type":"User","site_admin":false},"repo":{"id":30206639,"name":"codereview","full_name":"bkhouri-work/codereview","owner":{"login":"bkhouri-work","id":10817300,"avatar_url":"https://avatars.githubusercontent.com/u/10817300?v=3","gravatar_id":"","url":"https://api.github.com/users/bkhouri-work","html_url":"https://github.com/bkhouri-work","followers_url":"https://api.github.com/users/bkhouri-work/followers","following_url":"https://api.github.com/users/bkhouri-work/following{/other_user}","gists_url":"https://api.github.com/users/bkhouri-work/gists{/gist_id}","starred_url":"https://api.github.com/users/bkhouri-work/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bkhouri-work/subscriptions","organizations_url":"https://api.github.com/users/bkhouri-work/orgs","repos_url":"https://api.github.com/users/bkhouri-work/repos","events_url":"https://api.github.com/users/bkhouri-work/events{/privacy}","received_events_url":"https://api.github.com/users/bkhouri-work/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/bkhouri-work/codereview","description":"","fork":false,"url":"https://api.github.com/repos/bkhouri-work/codereview","forks_url":"https://api.github.com/repos/bkhouri-work/codereview/forks","keys_url":"https://api.github.com/repos/bkhouri-work/codereview/keys{/key_id}","collaborators_url":"https://api.github.com/repos/bkhouri-work/codereview/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/bkhouri-work/codereview/teams","hooks_url":"https://api.github.com/repos/bkhouri-work/codereview/hooks","issue_events_url":"https://api.github.com/repos/bkhouri-work/codereview/issues/events{/number}","events_url":"https://api.github.com/repos/bkhouri-work/codereview/events","assignees_url":"https://api.github.com/repos/bkhouri-work/codereview/assignees{/user}","branches_url":"https://api.github.com/repos/bkhouri-work/codereview/branches{/branch}","tags_url":"https://api.github.com/repos/bkhouri-work/codereview/tags","blobs_url":"https://api.github.com/repos/bkhouri-work/codereview/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/bkhouri-work/codereview/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/bkhouri-work/codereview/git/refs{/sha}","trees_url":"https://api.github.com/repos/bkhouri-work/codereview/git/trees{/sha}","statuses_url":"https://api.github.com/repos/bkhouri-work/codereview/statuses/{sha}","languages_url":"https://api.github.com/repos/bkhouri-work/codereview/languages","stargazers_url":"https://api.github.com/repos/bkhouri-work/codereview/stargazers","contributors_url":"https://api.github.com/repos/bkhouri-work/codereview/contributors","subscribers_url":"https://api.github.com/repos/bkhouri-work/codereview/subscribers","subscription_url":"https://api.github.com/repos/bkhouri-work/codereview/subscription","commits_url":"https://api.github.com/repos/bkhouri-work/codereview/commits{/sha}","git_commits_url":"https://api.github.com/repos/bkhouri-work/codereview/git/commits{/sha}","comments_url":"https://api.github.com/repos/bkhouri-work/codereview/comments{/number}","issue_comment_url":"https://api.github.com/repos/bkhouri-work/codereview/issues/comments/{number}","contents_url":"https://api.github.com/repos/bkhouri-work/codereview/contents/{+path}","compare_url":"https://api.github.com/repos/bkhouri-work/codereview/compare/{base}...{head}","merges_url":"https://api.github.com/repos/bkhouri-work/codereview/merges","archive_url":"https://api.github.com/repos/bkhouri-work/codereview/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/bkhouri-work/codereview/downloads","issues_url":"https://api.github.com/repos/bkhouri-work/codereview/issues{/number}","pulls_url":"https://api.github.com/repos/bkhouri-work/codereview/pulls{/number}","milestones_url":"https://api.github.com/repos/bkhouri-work/codereview/milestones{/number}","notifications_url":"https://api.github.com/repos/bkhouri-work/codereview/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/bkhouri-work/codereview/labels{/name}","releases_url":"https://api.github.com/repos/bkhouri-work/codereview/releases{/id}","created_at":"2015-02-02T20:23:14Z","updated_at":"2015-02-02T20:23:14Z","pushed_at":"2015-02-02T20:25:43Z","git_url":"git://github.com/bkhouri-work/codereview.git","ssh_url":"git@github.com:bkhouri-work/codereview.git","clone_url":"https://github.com/bkhouri-work/codereview.git","svn_url":"https://github.com/bkhouri-work/codereview","homepage":null,"size":0,"stargazers_count":0,"watchers_count":0,"language":null,"has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":1,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"base":{"label":"bkhouri-work:master","ref":"master","sha":"63933bfcda77d9cde1d8b11cc20161cc6b48723a","user":{"login":"bkhouri-work","id":10817300,"avatar_url":"https://avatars.githubusercontent.com/u/10817300?v=3","gravatar_id":"","url":"https://api.github.com/users/bkhouri-work","html_url":"https://github.com/bkhouri-work","followers_url":"https://api.github.com/users/bkhouri-work/followers","following_url":"https://api.github.com/users/bkhouri-work/following{/other_user}","gists_url":"https://api.github.com/users/bkhouri-work/gists{/gist_id}","starred_url":"https://api.github.com/users/bkhouri-work/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bkhouri-work/subscriptions","organizations_url":"https://api.github.com/users/bkhouri-work/orgs","repos_url":"https://api.github.com/users/bkhouri-work/repos","events_url":"https://api.github.com/users/bkhouri-work/events{/privacy}","received_events_url":"https://api.github.com/users/bkhouri-work/received_events","type":"User","site_admin":false},"repo":{"id":30206639,"name":"codereview","full_name":"bkhouri-work/codereview","owner":{"login":"bkhouri-work","id":10817300,"avatar_url":"https://avatars.githubusercontent.com/u/10817300?v=3","gravatar_id":"","url":"https://api.github.com/users/bkhouri-work","html_url":"https://github.com/bkhouri-work","followers_url":"https://api.github.com/users/bkhouri-work/followers","following_url":"https://api.github.com/users/bkhouri-work/following{/other_user}","gists_url":"https://api.github.com/users/bkhouri-work/gists{/gist_id}","starred_url":"https://api.github.com/users/bkhouri-work/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bkhouri-work/subscriptions","organizations_url":"https://api.github.com/users/bkhouri-work/orgs","repos_url":"https://api.github.com/users/bkhouri-work/repos","events_url":"https://api.github.com/users/bkhouri-work/events{/privacy}","received_events_url":"https://api.github.com/users/bkhouri-work/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/bkhouri-work/codereview","description":"","fork":false,"url":"https://api.github.com/repos/bkhouri-work/codereview","forks_url":"https://api.github.com/repos/bkhouri-work/codereview/forks","keys_url":"https://api.github.com/repos/bkhouri-work/codereview/keys{/key_id}","collaborators_url":"https://api.github.com/repos/bkhouri-work/codereview/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/bkhouri-work/codereview/teams","hooks_url":"https://api.github.com/repos/bkhouri-work/codereview/hooks","issue_events_url":"https://api.github.com/repos/bkhouri-work/codereview/issues/events{/number}","events_url":"https://api.github.com/repos/bkhouri-work/codereview/events","assignees_url":"https://api.github.com/repos/bkhouri-work/codereview/assignees{/user}","branches_url":"https://api.github.com/repos/bkhouri-work/codereview/branches{/branch}","tags_url":"https://api.github.com/repos/bkhouri-work/codereview/tags","blobs_url":"https://api.github.com/repos/bkhouri-work/codereview/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/bkhouri-work/codereview/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/bkhouri-work/codereview/git/refs{/sha}","trees_url":"https://api.github.com/repos/bkhouri-work/codereview/git/trees{/sha}","statuses_url":"https://api.github.com/repos/bkhouri-work/codereview/statuses/{sha}","languages_url":"https://api.github.com/repos/bkhouri-work/codereview/languages","stargazers_url":"https://api.github.com/repos/bkhouri-work/codereview/stargazers","contributors_url":"https://api.github.com/repos/bkhouri-work/codereview/contributors","subscribers_url":"https://api.github.com/repos/bkhouri-work/codereview/subscribers","subscription_url":"https://api.github.com/repos/bkhouri-work/codereview/subscription","commits_url":"https://api.github.com/repos/bkhouri-work/codereview/commits{/sha}","git_commits_url":"https://api.github.com/repos/bkhouri-work/codereview/git/commits{/sha}","comments_url":"https://api.github.com/repos/bkhouri-work/codereview/comments{/number}","issue_comment_url":"https://api.github.com/repos/bkhouri-work/codereview/issues/comments/{number}","contents_url":"https://api.github.com/repos/bkhouri-work/codereview/contents/{+path}","compare_url":"https://api.github.com/repos/bkhouri-work/codereview/compare/{base}...{head}","merges_url":"https://api.github.com/repos/bkhouri-work/codereview/merges","archive_url":"https://api.github.com/repos/bkhouri-work/codereview/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/bkhouri-work/codereview/downloads","issues_url":"https://api.github.com/repos/bkhouri-work/codereview/issues{/number}","pulls_url":"https://api.github.com/repos/bkhouri-work/codereview/pulls{/number}","milestones_url":"https://api.github.com/repos/bkhouri-work/codereview/milestones{/number}","notifications_url":"https://api.github.com/repos/bkhouri-work/codereview/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/bkhouri-work/codereview/labels{/name}","releases_url":"https://api.github.com/repos/bkhouri-work/codereview/releases{/id}","created_at":"2015-02-02T20:23:14Z","updated_at":"2015-02-02T20:23:14Z","pushed_at":"2015-02-02T20:25:43Z","git_url":"git://github.com/bkhouri-work/codereview.git","ssh_url":"git@github.com:bkhouri-work/codereview.git","clone_url":"https://github.com/bkhouri-work/codereview.git","svn_url":"https://github.com/bkhouri-work/codereview","homepage":null,"size":0,"stargazers_count":0,"watchers_count":0,"language":null,"has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":1,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/bkhouri-work/codereview/pulls/1"},"html":{"href":"https://github.com/bkhouri-work/codereview/pull/1"},"issue":{"href":"https://api.github.com/repos/bkhouri-work/codereview/issues/1"},"comments":{"href":"https://api.github.com/repos/bkhouri-work/codereview/issues/1/comments"},"review_comments":{"href":"https://api.github.com/repos/bkhouri-work/codereview/pulls/1/comments"},"review_comment":{"href":"https://api.github.com/repos/bkhouri-work/codereview/pulls/comments/{number}"},"commits":{"href":"https://api.github.com/repos/bkhouri-work/codereview/pulls/1/commits"},"statuses":{"href":"https://api.github.com/repos/bkhouri-work/codereview/statuses/3bc2d7873f3c02d4d0ea455c671d0a2979cc0ce0"}}}}