Skip to content

Commit

Permalink
replicationPackage
Browse files Browse the repository at this point in the history
  • Loading branch information
MaryamArab committed Jul 29, 2019
1 parent f240006 commit f5043de
Show file tree
Hide file tree
Showing 88 changed files with 11,503 additions and 27 deletions.
Binary file added Analysis/Input/~$Demographic.xlsx
Binary file not shown.
Binary file added Java Developers.docx
Binary file not shown.
File renamed without changes.
18 changes: 18 additions & 0 deletions ReplicationPackage/Material.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Replication Materials</title>
<h1>
Replication Materials
</h1>
<p>Please find all the materials required for replicating the Explicit Programming Strategies here</p>
<a href="http://programmingstrategies.org/ReplicationPackage/PreTest.pdf">Pretest.pdf</a>
<a href="http://programmingstrategies.org/ReplicationPackage/PreTest.pdf">Pretest.pdf</a>
<a href="http://programmingstrategies.org/ReplicationPackage/PreTest.pdf">Pretest.pdf</a>
<a href="http://programmingstrategies.org/ReplicationPackage/PreTest.pdf">Pretest.pdf</a>
</head>
<body>

</body>
</html>
File renamed without changes.
Binary file added Strategy Guidleines.docx
Binary file not shown.
92 changes: 92 additions & 0 deletions StrategyTracker/Admin-test.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,92 @@
<!DOCTYPE html>
<html lang="en" ng-app="myAdmin">
<head>
<meta charset="UTF-8">
<link rel="stylesheet" type="text/css" href="css/admin-styles.css"/>
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.2.1/jquery.min.js"></script>
<!-- Bootstrap -->T
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css"
integrity="sha384-BVYiiSIFeK1dGmJRAkycuHAHRg32OmUcww7on3RYdg4Va+PmSTsz/K68vbdEjh4u" crossorigin="anonymous">
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap-theme.min.css"
integrity="sha384-rHyoN1iRsVXV4nD0JutlnGaslCJuC7uwjduW9SVrLvRYooPp2bWYgmgJQIXwl/Sp" crossorigin="anonymous">
<link href="bootstrap/css/bootstrap.min.css" rel="stylesheet">
<link rel="stylesheet" type="text/css"
href="https://maxcdn.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css"/>
<!--<script src="https://cdnjs.cloudflare.com/ajax/libs/angular.js/1.6.5/angular.min.js"></script>-->
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js"
integrity="sha384-Tc5IQib027qvyjSMfHjOMaLkfuWVxZxUPnCJA7l2mCWNIpG9mGCD8wGNIcPD7Txa"
crossorigin="anonymous"></script>
<script src="https://www.gstatic.com/firebasejs/4.3.0/firebase.js"></script>
<script src="js/admin-test.js"></script>
<script src="js/comments.js"></script>
<!--<script type="text/javascript" src="bower_components/angular-ui-ace/ui-ace.js"></script>-->
<!--<script src="ace-builds-master/src-min-noconflict/ace.js" type="text/javascript" charset="utf-8"></script>script-->
<title> Strategy Build Admin Page</title>
</head>
<body ng-controller="AdminCtrl">
<div class="header">
<div class="container">
<div class="row">
<div class="col-md-5">
<div class="logo">
<h1><a href="Admin-backup.html"> Strategy Tracker Admin</a></h1>
</div>
</div>
</div>
</div>
</div>
<section class="container" >
<div class="page-content">
<div class="row">
<div class="col-md-12" style="margin-bottom:20px;">
<div class="content-box-header">
<div class="col-md-10">
<select ng-model="selectedStrategy"
ng-options= "s.displayName for s in allStrategies"
ng-change = "strategyChanged()">
</select>
<h1 id="stratHeader">{{selectedStrategy.displayName}}</h1>
<!--<div id="aceEditor" style="min-height: 600px;"-->
<!--ui-ace="aceOption" [autoUpdateContent]="true" ng-model="aceModel">-->
<!--</div>-->
</div>
<div class="panel-options col-md-0.5">
<button ng-click="publish()" title="Publish changes to database " href="#" data-rel="reload"><i class="glyphicon glyphicon-export"></i></button>
</div>
<div class="panel-options col-md-0.5">
<button ng-click="addNewStrategy()" title="Making new strategy Json " href="#" data-rel="reload"><i class="glyphicon glyphicon-plus"></i></button>
</div>
</div>

<div id="frmStrategyCreation">
<form class="form" action="#" >
<br/>
<label>Owner: <span></span></label>
<br/>
<input type="text" id="owner" placeholder="Owner of the strategy" ng-model="newStrategyOwner"/><br/>
<br/>
<label>Display Name: <span></span></label>
<br/>
<input type="text" id="displayName" placeholder="Display name" ng-model="newStrategyDisplayName"/><br/>
<br/>
<label>Strategy Name:</label>
<br/>
<input type="text" id="strategyName" placeholder="Name" ng-model="newStrategyName"/><br/>
<br/>
<!--<label>Strategy Type:</label>-->
<!--<br/>-->
<!--<input type="text" id="strategyType" placeholder="Type" ng-model="newStrategyType"/><br/>-->
<br/>

<br/>
</form>
<input type="button" ng-click="createStrategy()" value="Create"/>
<input type="button" ng-click="cancelCreatingStrategy()" value="Cancel"/>
</div>
</div>
</div>
</div>
</section>
</body>
</html>

2 changes: 1 addition & 1 deletion StrategyTracker/Admin.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<meta charset="UTF-8">
<link rel="stylesheet" type="text/css" href="css/admin-styles.css"/>
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.2.1/jquery.min.js"></script>
<!-- Bootstrap -->
<!-- Bootstrap -->T
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css"
integrity="sha384-BVYiiSIFeK1dGmJRAkycuHAHRg32OmUcww7on3RYdg4Va+PmSTsz/K68vbdEjh4u" crossorigin="anonymous">
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap-theme.min.css"
Expand Down
2 changes: 1 addition & 1 deletion StrategyTracker/StrategyTracker.html
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ <h4 id = "loaded" style="display: none; margin: 0px;" >
<h3 style="width:auto; float: left; margin-right: 1%;"> Please select your Strategy</h3>
<h3 id="model-fault-localization" >
<select ng-model="main.myStrategy"
style="width: 270px;"
style="width: 270px; color:darkgray; font-size:18px; font-weight: normal;"
ng-change="main.strategyChanged()"
ng-options="strat.displayName for strat in main.allStrategies"></select>
</h3>
Expand Down
44 changes: 44 additions & 0 deletions StrategyTracker/js/TestNearly.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
const nearley = require("nearley");
const grammar = require("./grammar1.js");

// Create a Parser object from our grammar.
const parser = new nearley.Parser(nearley.Grammar.fromCompiled(grammar));
// grammar.indented(lexer, `STRATEGY verifyAPIHasCommunity('apiName')
// SET site's TO the website
// Because its two lines long
// IF site is nothing
// RETURN nothing
// This tests the dountil loop
// UNTIL you have all the diamonds
// Look over your shoulder for cops
// RETURN assessRepositoryActivity(site)`)
//
// console.log(JSON.stringify(parser.results));
// parser.feed('\\lx Red\n' +
// '\\ps Adjective\n' +
// '\n' +
// '\\lx Record\n' +
// '\\ps Noun\n' +
// '\\ps Verb\n' +
// '\n' +
// '\\lx All\n' +
// '\\ps Adjective\n' +
// '\\ps Adverb\n' +
// '\\ps Noun');


parser.feed("strategy test('A') hello");

// parser.feed("Strategy test('A') " +
// "DO something('dd')" +
// "DO elsewhere('Nadidi')" +
// "IF the guy talk bad ");
// parser.feed("Statement");

// parser.feed("set 'c' to the last commit to the project");
//
// parser.feed("IF site is nothing")
// parser.feed("RETURN nothing ");



6 changes: 3 additions & 3 deletions StrategyTracker/js/admin.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,9 @@ if (typeof window !== 'undefined' && window.angular) {
let strategies= [];
let deferred = $q.defer();
firebase.database().ref('strategies').once('value').then(function(snapshot) {
snapshot.forEach(function(childStrategy) {
strategies.push(childStrategy.val());
});
snapshot.forEach(function(childStrategy) {
strategies.push(childStrategy.val());
});
deferred.resolve(strategies);
}).catch(function(err) {
deferred.reject(err);
Expand Down
1 change: 1 addition & 0 deletions StrategyTracker/js/node_modules/.bin/nearley-railroad

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions StrategyTracker/js/node_modules/.bin/nearley-test

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions StrategyTracker/js/node_modules/.bin/nearley-unparse

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions StrategyTracker/js/node_modules/.bin/nearleyc

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions StrategyTracker/js/node_modules/.bin/semver

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit f5043de

Please sign in to comment.