Package net.sf.collabreview.core

Examples of net.sf.collabreview.core.Repository.commit()


              int microEditCount = MicroEditCastigator.countMicroEdits(repository, artifact, 3, 300 * 1000, microEditCastigatorInstallTime + surveyPeriod - i * surveyPeriod / slices, surveyPeriod / slices);
              microEditCounts[i] += microEditCount;
              result.append("<td>").append(microEditCount).append("</td>");
            }
            result.append("</tr>\n");
            repository.commit();
          }
          result.append(String.format("<tr><td>Total</td><td>%d</td><td>%d</td>", totalMicroEditsBefore, totalMicroEditsAfter));
          for (int i = 0; i < 2 * slices; i++) {
            result.append("<td>").append(microEditCounts[i]).append("</td>");
          }
View Full Code Here


              totalRevisionsBefore++;
            }
            if (time > microEditCastigatorInstallTime && time < microEditCastigatorInstallTime + surveyPeriod) {
              totalRevisionsAfter++;
            }
            repository.commit();
          }
          result.append(String.format("<tr><td>Total revisions</td><td>%d</td><td>%d</td></tr>\n", totalRevisionsBefore, totalRevisionsAfter));
          result.append("</table>\n");
          logger.debug("done");
        }
View Full Code Here

          logger.info("Old review is no longer valid. Updating...");
          review.setRating(newRating);
          review.setReviewText(sb.toString());
        }
      }
      repository.commit();
    }
  }

  protected void runReview(Repository repository, Artifact artifact) {
    StringBuilder sb = new StringBuilder();
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.