Datasets:

diff
stringlengths
262
553k
is_single_chunk
bool
2 classes
is_single_function
bool
1 class
buggy_function
stringlengths
20
391k
fixed_function
stringlengths
0
392k
diff --git a/vfgf-quickstart/src/main/java/quickstart/DataEviction.java b/vfgf-quickstart/src/main/java/quickstart/DataEviction.java index c65cb53..f7b1fca 100644 --- a/vfgf-quickstart/src/main/java/quickstart/DataEviction.java +++ b/vfgf-quickstart/src/main/java/quickstart/DataEviction.java @@ -1,49 +1,49 @@ package ...
true
true
public void run() throws Exception { System.out .println("This example keeps the region size below 10 entries by destroying the "); System.out .println("least recently used entry when an entry addition would take the count"); System.out.println("over 10."); System.out.println(); System.out .print...
public void run() throws InterruptedException { System.out .println("This example keeps the region size below 10 entries by destroying the "); System.out .println("least recently used entry when an entry addition would take the count"); System.out.println("over 10."); System.out.println(); System.out...
diff --git a/plugins/net.sf.lapg.common.ui/src/net/sf/lapg/common/ui/editor/colorer/SemanticHighlightingReconciler.java b/plugins/net.sf.lapg.common.ui/src/net/sf/lapg/common/ui/editor/colorer/SemanticHighlightingReconciler.java index 5144972d..2b30eb24 100644 --- a/plugins/net.sf.lapg.common.ui/src/net/sf/lapg/common/...
true
true
public void reconciled(ISourceStructure model, IProgressMonitor progressMonitor) { // ensure at most one thread can be reconciling at any time synchronized (fReconcileLock) { if (fIsReconciling) { return; } else { fIsReconciling = true; } } fJobPresenter = fPresenter; fJobSemanticHighlightin...
public void reconciled(ISourceStructure model, IProgressMonitor progressMonitor) { // ensure at most one thread can be reconciling at any time synchronized (fReconcileLock) { if (fIsReconciling) { return; } else { fIsReconciling = true; } } fJobPresenter = fPresenter; fJobSemanticHighlightin...
diff --git a/lint/libs/lint-checks/src/main/java/com/android/tools/lint/checks/TextViewDetector.java b/lint/libs/lint-checks/src/main/java/com/android/tools/lint/checks/TextViewDetector.java index be57a2a..e14d13c 100644 --- a/lint/libs/lint-checks/src/main/java/com/android/tools/lint/checks/TextViewDetector.java +++ b...
true
true
public void visitElement(@NonNull XmlContext context, @NonNull Element element) { if (element.getTagName().equals(TEXT_VIEW)) { if (!element.hasAttributeNS(ANDROID_URI, ATTR_TEXT) && element.hasAttributeNS(ANDROID_URI, ATTR_ID) && !element.hasAttributeNS(A...
public void visitElement(@NonNull XmlContext context, @NonNull Element element) { if (element.getTagName().equals(TEXT_VIEW)) { if (!element.hasAttributeNS(ANDROID_URI, ATTR_TEXT) && element.hasAttributeNS(ANDROID_URI, ATTR_ID) && !element.hasAttributeNS(A...
diff --git a/src/main/java/org/yajug/users/api/MemberController.java b/src/main/java/org/yajug/users/api/MemberController.java index 4227ab9..4021ca1 100644 --- a/src/main/java/org/yajug/users/api/MemberController.java +++ b/src/main/java/org/yajug/users/api/MemberController.java @@ -1,273 +1,273 @@ package org.yajug....
true
true
public String list( @QueryParam("callback") String callback, @QueryParam("sortName") String sortName, @QueryParam("sortOrder") String sortOrder, @QueryParam("search") String search, @QueryParam("page") int page, @QueryParam("rows") int rows ) { String response = ""; try { Lis...
public String list( @QueryParam("callback") String callback, @QueryParam("sortName") String sortName, @QueryParam("sortOrder") String sortOrder, @QueryParam("search") String search, @QueryParam("page") int page, @QueryParam("rows") int rows ) { String response = ""; try { Lis...
diff --git a/src/core/src/main/java/org/geogit/storage/StagingDbCompositionHelper.java b/src/core/src/main/java/org/geogit/storage/StagingDbCompositionHelper.java index 8657d675..3572e3e5 100644 --- a/src/core/src/main/java/org/geogit/storage/StagingDbCompositionHelper.java +++ b/src/core/src/main/java/org/geogit/stora...
true
true
public static Iterator<RevObject> getAll(final ObjectDatabase objectDb, final ObjectDatabase stagingDb, final Iterable<ObjectId> ids, final BulkOpListener listener) { final List<ObjectId> missingInStaging = Lists.newLinkedList(); final int limit = 1000; final BulkO...
public static Iterator<RevObject> getAll(final ObjectDatabase objectDb, final ObjectDatabase stagingDb, final Iterable<ObjectId> ids, final BulkOpListener listener) { final List<ObjectId> missingInStaging = Lists.newLinkedList(); final int limit = 1000; final BulkO...
diff --git a/cadpage/src/net/anei/cadpage/parsers/CO/COAdamsCountyParser.java b/cadpage/src/net/anei/cadpage/parsers/CO/COAdamsCountyParser.java index 65cba84ae..51ec71dd8 100644 --- a/cadpage/src/net/anei/cadpage/parsers/CO/COAdamsCountyParser.java +++ b/cadpage/src/net/anei/cadpage/parsers/CO/COAdamsCountyParser.java...
true
true
protected boolean parseMsg(String subject, String body, Data data) { if (subject.length() > 0) body = "Subject:" + subject + ' ' + body; int pt = body.indexOf(CAD_MARKER); if (pt < 0) return false; body = "LOC:" + body.substring(pt+CAD_MARKER.length()); Properties props = parseMessa...
protected boolean parseMsg(String subject, String body, Data data) { if (subject.length() > 0) body = "Subject:" + subject + ' ' + body; int pt = body.indexOf(CAD_MARKER); if (pt < 0) return false; body = "LOC:" + body.substring(pt+CAD_MARKER.length()); Properties props = parseMessa...
diff --git a/Source/App/src/dimappers/android/pub/PubService.java b/Source/App/src/dimappers/android/pub/PubService.java index 3e1561b..f025fc6 100644 --- a/Source/App/src/dimappers/android/pub/PubService.java +++ b/Source/App/src/dimappers/android/pub/PubService.java @@ -1,402 +1,402 @@ package dimappers.android.pub;...
true
true
public void NewEventsRecieved(PubEventArray events) { int hostedEvents = 0; ArrayList<Notification> newEventNotifications = new ArrayList<Notification>(); ArrayList<Notification> updatedEventNotifications = new ArrayList<Notification>(); ArrayList<Notification> confirmedEventNotifications = new ArrayL...
public void NewEventsRecieved(PubEventArray events) { int hostedEvents = 0; ArrayList<Notification> newEventNotifications = new ArrayList<Notification>(); ArrayList<Notification> updatedEventNotifications = new ArrayList<Notification>(); ArrayList<Notification> confirmedEventNotifications = new ArrayL...
diff --git a/src/main/java/com/censoredsoftware/demigods/battle/Battle.java b/src/main/java/com/censoredsoftware/demigods/battle/Battle.java index 243d0be6..474f5a5f 100644 --- a/src/main/java/com/censoredsoftware/demigods/battle/Battle.java +++ b/src/main/java/com/censoredsoftware/demigods/battle/Battle.java @@ -1,765...
true
true
public void end() { sendMessage(ChatColor.RED + "The battle is over!"); Map<UUID, Integer> scores = getScores(); List<UUID> participants = Lists.newArrayList(scores.keySet()); if(participants.size() == 2) { if(scores.get(participants.get(0)).equals(scores.get(participants.get(1)))) { DCharacter o...
public void end() { sendMessage(ChatColor.RED + "The battle is over!"); Map<UUID, Integer> scores = getScores(); List<UUID> participants = Lists.newArrayList(scores.keySet()); if(participants.size() == 2) { if(scores.get(participants.get(0)).equals(scores.get(participants.get(1)))) { DCharacter o...
diff --git a/molgenis-genotype-reader/src/main/java/org/molgenis/genotype/impute2/Impute2GenotypeData.java b/molgenis-genotype-reader/src/main/java/org/molgenis/genotype/impute2/Impute2GenotypeData.java index 96b65a18..efdf7cff 100644 --- a/molgenis-genotype-reader/src/main/java/org/molgenis/genotype/impute2/Impute2Gen...
false
true
private int loadVariants(String forceSeqName) throws IOException { StringBuilder stringBuilder = new StringBuilder(); byte[] buffer = new byte[8192]; boolean eol = false; String seqName = null; String variantId = null; int position = 0; String allele1 = null; String allele2; int longestedChunk = 0;...
private int loadVariants(String forceSeqName) throws IOException { StringBuilder stringBuilder = new StringBuilder(); byte[] buffer = new byte[8192]; boolean eol = false; String seqName = null; String variantId = null; int position = 0; String allele1 = null; String allele2; int longestedChunk = 0;...
diff --git a/src/main/java/no/niths/application/rest/auth/RestLoginControllerImpl.java b/src/main/java/no/niths/application/rest/auth/RestLoginControllerImpl.java index d216178a..3d59904f 100644 --- a/src/main/java/no/niths/application/rest/auth/RestLoginControllerImpl.java +++ b/src/main/java/no/niths/application/rest...
true
true
public Student login( @RequestBody SessionToken token, HttpServletRequest req, HttpServletResponse res) { Student authenticatedStudent = null; if (token != null) { logger.debug( "A user wants to be authenticated with token: " + token); ...
public Student login( @RequestBody SessionToken token, HttpServletRequest req, HttpServletResponse res) { Student authenticatedStudent = null; if (token != null) { logger.debug( "A user wants to be authenticated with token: " + token); ...
diff --git a/src/main/java/com/google/dart/DartMojo.java b/src/main/java/com/google/dart/DartMojo.java index 84d7f6b..0a1d44a 100644 --- a/src/main/java/com/google/dart/DartMojo.java +++ b/src/main/java/com/google/dart/DartMojo.java @@ -1,267 +1,267 @@ package com.google.dart; import java.io.File; import java.io.O...
true
true
private void executeDart() throws MojoExecutionException { final Commandline cl = createBaseCommandline(); if (script == null) { throw new NullPointerException("Script is required but is null."); } if (!script.exists() || !script.isFile()) { throw new IllegalArgumentException("Script must be a file. sc...
private void executeDart() throws MojoExecutionException { final Commandline cl = createBaseCommandline(); if (script == null) { throw new NullPointerException("Script is required but is null."); } if (!script.exists() || !script.isFile()) { throw new IllegalArgumentException("Script must be a file. sc...
diff --git a/main/tests/server/src/com/google/refine/tests/exporters/CsvExporterTests.java b/main/tests/server/src/com/google/refine/tests/exporters/CsvExporterTests.java index 7b878706..dc130ef7 100644 --- a/main/tests/server/src/com/google/refine/tests/exporters/CsvExporterTests.java +++ b/main/tests/server/src/com/g...
true
true
public void exportDateColumns(){ CreateGrid(1,1); Calendar calendar = Calendar.getInstance(); Date date = new Date(); when(options.getProperty("printColumnHeader")).thenReturn("false"); project.rows.get(0).cells.set(0, new Cell(calendar, null)); project.rows.get(0).c...
public void exportDateColumns(){ CreateGrid(1,2); Calendar calendar = Calendar.getInstance(); Date date = new Date(); when(options.getProperty("printColumnHeader")).thenReturn("false"); project.rows.get(0).cells.set(0, new Cell(calendar, null)); project.rows.get(0).c...
diff --git a/src/test/java/me/ilyamirin/anthophila/StorageTest.java b/src/test/java/me/ilyamirin/anthophila/StorageTest.java index 645ccd5..cec3004 100644 --- a/src/test/java/me/ilyamirin/anthophila/StorageTest.java +++ b/src/test/java/me/ilyamirin/anthophila/StorageTest.java @@ -1,142 +1,143 @@ package me.ilyamirin.a...
false
true
public void basicOpsParallelTest() throws InterruptedException { int cuncurrentClientsNumber = 10; final int cuncurrentRequestsNumber = 1000; final CountDownLatch latch = new CountDownLatch(cuncurrentClientsNumber); final AtomicInteger assertioErrorsCount = new AtomicInteger(0); ...
public void basicOpsParallelTest() throws InterruptedException { int cuncurrentClientsNumber = 10; final int cuncurrentRequestsNumber = 1000; final CountDownLatch latch = new CountDownLatch(cuncurrentClientsNumber); final AtomicInteger assertionErrorsCount = new AtomicInteger(0); ...
diff --git a/errai-cordova/demos/shared/src/main/java/org/jboss/errai/example/client/local/Config.java b/errai-cordova/demos/shared/src/main/java/org/jboss/errai/example/client/local/Config.java index bfc2dd77b..776ab93fe 100644 --- a/errai-cordova/demos/shared/src/main/java/org/jboss/errai/example/client/local/Config....
true
true
public String getRemoteLocation() { return "http://localhost:8080/errai-cordova/"; }
public String getRemoteLocation() { return "http://localhost:8080/errai-cordova-kitchensink/"; }
diff --git a/src/soot/jimple/infoflow/InfoflowProblem.java b/src/soot/jimple/infoflow/InfoflowProblem.java index 660225f..1fe83ce 100644 --- a/src/soot/jimple/infoflow/InfoflowProblem.java +++ b/src/soot/jimple/infoflow/InfoflowProblem.java @@ -1,873 +1,873 @@ package soot.jimple.infoflow; import heros.FlowFunction...
true
true
public FlowFunctions<Unit, Abstraction, SootMethod> createFlowFunctionsFactory() { return new FlowFunctions<Unit, Abstraction, SootMethod>() { /** * Creates a new taint abstraction for the given value * @param src The source statement from which the taint originated * @param targetValue The target va...
public FlowFunctions<Unit, Abstraction, SootMethod> createFlowFunctionsFactory() { return new FlowFunctions<Unit, Abstraction, SootMethod>() { /** * Creates a new taint abstraction for the given value * @param src The source statement from which the taint originated * @param targetValue The target va...
diff --git a/jung-algorithms/src/main/java/edu/uci/ics/jung/algorithms/cluster/WeakComponentClusterer.java b/jung-algorithms/src/main/java/edu/uci/ics/jung/algorithms/cluster/WeakComponentClusterer.java index 5e5a6cb9..48018801 100644 --- a/jung-algorithms/src/main/java/edu/uci/ics/jung/algorithms/cluster/WeakComponent...
true
true
public ClusterSet extract(Graph<V,E> aGraph) { ClusterSet<V,E,V> clusterSet = new VertexClusterSet<V,E>(aGraph); HashSet<V> unvisitedVertices = new HashSet<V>(); for (Iterator<V> vIt=aGraph.getVertices().iterator(); vIt.hasNext();) { unvisitedVertices.add(vIt.next()); }...
public ClusterSet<V,E,V> extract(Graph<V,E> aGraph) { ClusterSet<V,E,V> clusterSet = new VertexClusterSet<V,E>(aGraph); HashSet<V> unvisitedVertices = new HashSet<V>(); for (Iterator<V> vIt=aGraph.getVertices().iterator(); vIt.hasNext();) { unvisitedVertices.add(vIt.next()); ...
diff --git a/trunk/GeoBeagle/src/com/google/code/geobeagle/bcaching/progress/ProgressMessage.java b/trunk/GeoBeagle/src/com/google/code/geobeagle/bcaching/progress/ProgressMessage.java index b79d4432..a5955204 100644 --- a/trunk/GeoBeagle/src/com/google/code/geobeagle/bcaching/progress/ProgressMessage.java +++ b/trunk/...
true
true
void act(ProgressHandler progressHandler, Message msg) { progressHandler.setProgress(0); progressHandler.setMax(msg.arg1); progressHandler.show(); }
void act(ProgressHandler progressHandler, Message msg) { progressHandler.setProgress(0); progressHandler.setMax(100); progressHandler.show(); }
diff --git a/com.upnp.mediaplayer/src/org/rpi/os/OSManager.java b/com.upnp.mediaplayer/src/org/rpi/os/OSManager.java index 5d63a60..f0fe988 100644 --- a/com.upnp.mediaplayer/src/org/rpi/os/OSManager.java +++ b/com.upnp.mediaplayer/src/org/rpi/os/OSManager.java @@ -1,308 +1,308 @@ package org.rpi.os; import java.io....
false
true
private void SetJavaPath() { try { String class_name = this.getClass().getName(); log.debug("Find Class, ClassName: " + class_name); String path = getFilePath(this.getClass(), true); String full_path = path + "/mediaplayer_lib/ohNet/default"; log.debug("Path of this File is: " + path); String os...
private void SetJavaPath() { try { String class_name = this.getClass().getName(); log.debug("Find Class, ClassName: " + class_name); String path = getFilePath(this.getClass(), true); String full_path = path + "/mediaplayer_lib/ohNet/default"; log.debug("Path of this File is: " + path); String os...
diff --git a/eclipse/Ichiban/src/com/abstracttech/ichiban/views/PowerButton.java b/eclipse/Ichiban/src/com/abstracttech/ichiban/views/PowerButton.java index 20963f4..d35a38e 100644 --- a/eclipse/Ichiban/src/com/abstracttech/ichiban/views/PowerButton.java +++ b/eclipse/Ichiban/src/com/abstracttech/ichiban/views/PowerBut...
true
true
public PowerButton(Context context, AttributeSet attrs) { super(context, attrs); this.setImageResource(preRunning?bg_g:bg_r); IchibanActivity.subscribe(this); Data.subscribe(this); }
public PowerButton(Context context, AttributeSet attrs) { super(context, attrs); this.setImageResource(preRunning?bg_g:bg_r); IchibanActivity.subscribe(this); //Data.subscribe(this); //this doesn't need to be subscribed to data updates }
diff --git a/asakusa-test-moderator/src/main/java/com/asakusafw/testdriver/core/VerifyRuleVerifier.java b/asakusa-test-moderator/src/main/java/com/asakusafw/testdriver/core/VerifyRuleVerifier.java index 082d9029a..a606e0b49 100644 --- a/asakusa-test-moderator/src/main/java/com/asakusafw/testdriver/core/VerifyRuleVerifi...
true
true
public List<Difference> verify(DataModelSource results) throws IOException { VerifyEngine engine = new VerifyEngine(rule); try { engine.addExpected(expected); } finally { expected.close(); } engine.inspectInput(results); List<Difference> differ...
public List<Difference> verify(DataModelSource results) throws IOException { VerifyEngine engine = new VerifyEngine(rule); try { engine.addExpected(expected); } finally { expected.close(); } List<Difference> differences = new ArrayList<Difference>(); ...
diff --git a/java/de/dfki/lt/mary/unitselection/voiceimport/CARTPruner.java b/java/de/dfki/lt/mary/unitselection/voiceimport/CARTPruner.java index 41d1c1c21..b3a3dda96 100644 --- a/java/de/dfki/lt/mary/unitselection/voiceimport/CARTPruner.java +++ b/java/de/dfki/lt/mary/unitselection/voiceimport/CARTPruner.java @@ -1,1...
true
true
public boolean compute() throws IOException { init(); System.out.println("CART Pruner started."); prunedCart = new File("./mary_files/prunedcart.mry"); boolean cutAbove1000 = true; boolean cutNorm = false; boolean cutSilence = true; ca = new CART...
public boolean compute() throws IOException { init(); System.out.println("CART Pruner started."); prunedCart = new File("./mary_files/prunedcart"); boolean cutAbove1000 = true; boolean cutNorm = false; boolean cutSilence = true; ca = new CARTAnal...
diff --git a/source/de/tuclausthal/submissioninterface/servlets/controller/MarkApproved.java b/source/de/tuclausthal/submissioninterface/servlets/controller/MarkApproved.java index 2b094ab..be4d2a1 100644 --- a/source/de/tuclausthal/submissioninterface/servlets/controller/MarkApproved.java +++ b/source/de/tuclausthal/s...
true
true
public void doPost(HttpServletRequest request, HttpServletResponse response) throws IOException, ServletException { Session session = HibernateSessionHelper.getSession(); TaskDAOIf taskDAO = DAOFactory.TaskDAOIf(session); Task task = taskDAO.getTask(Util.parseInteger(request.getParameter("taskid"), 0)); if (t...
public void doPost(HttpServletRequest request, HttpServletResponse response) throws IOException, ServletException { Session session = HibernateSessionHelper.getSession(); TaskDAOIf taskDAO = DAOFactory.TaskDAOIf(session); Task task = taskDAO.getTask(Util.parseInteger(request.getParameter("taskid"), 0)); if (t...
diff --git a/core/src/visad/trunk/data/gif/GIFAdapter.java b/core/src/visad/trunk/data/gif/GIFAdapter.java index c1bfceceb..662c09395 100644 --- a/core/src/visad/trunk/data/gif/GIFAdapter.java +++ b/core/src/visad/trunk/data/gif/GIFAdapter.java @@ -1,224 +1,224 @@ // // GIFAdapter.java // /* VisAD system for int...
true
true
private void buildFlatField(float[] red_pix, float[] green_pix, float[] blue_pix, int width, int height) throws VisADException { RealType line; try { line = new RealType("ImageLine"); } catch (TypeException e) { line = RealType.getRealTypeByName("ImageLine"); ...
private void buildFlatField(float[] red_pix, float[] green_pix, float[] blue_pix, int width, int height) throws VisADException { RealType line; try { line = new RealType("ImageLine"); } catch (TypeException e) { line = RealType.getRealTypeByName("ImageLine"); ...
diff --git a/com.buglabs.common/com/buglabs/bug/sysfs/BMIDevice.java b/com.buglabs.common/com/buglabs/bug/sysfs/BMIDevice.java index 8d7a30c..d7e0ff5 100644 --- a/com.buglabs.common/com/buglabs/bug/sysfs/BMIDevice.java +++ b/com.buglabs.common/com/buglabs/bug/sysfs/BMIDevice.java @@ -1,188 +1,188 @@ package com.buglab...
true
true
protected static BMIDevice createFromSYSDirectory(final BundleContext context, File directory, int slot) { if (directory == null || !directory.exists() || !directory.isDirectory()) { return null; } final String productId = parseHexInt(getFirstLineofFile(new File(directory, "product"))); BMIDeviceNodeF...
protected static BMIDevice createFromSYSDirectory(final BundleContext context, File directory, int slot) { if (directory == null || !directory.exists() || !directory.isDirectory()) { return null; } final String productId = parseHexInt(getFirstLineofFile(new File(directory, "product"))); BMIDeviceNodeF...
diff --git a/wagon-providers/wagon-ftp/src/test/java/org/apache/maven/wagon/providers/ftp/FtpWagonTest.java b/wagon-providers/wagon-ftp/src/test/java/org/apache/maven/wagon/providers/ftp/FtpWagonTest.java index 135852c5..3861ed48 100644 --- a/wagon-providers/wagon-ftp/src/test/java/org/apache/maven/wagon/providers/ftp/...
true
true
protected void setupWagonTestingFixtures() throws Exception { File ftpHomeDir = new File( "target/test-output/local-repository/" ); if ( !ftpHomeDir.exists() ) { ftpHomeDir.mkdirs(); //X TODO proper cleanup FileUtils.deleteDirectory( ftpHomeDir ); ...
protected void setupWagonTestingFixtures() throws Exception { File ftpHomeDir = getRepositoryDirectory(); if ( !ftpHomeDir.exists() ) { ftpHomeDir.mkdirs(); //X TODO proper cleanup FileUtils.deleteDirectory( ftpHomeDir ); } if (server == n...
diff --git a/solr/core/src/test/org/apache/solr/cloud/SyncSliceTest.java b/solr/core/src/test/org/apache/solr/cloud/SyncSliceTest.java index 68a6c71417..c4b3bd8b64 100644 --- a/solr/core/src/test/org/apache/solr/cloud/SyncSliceTest.java +++ b/solr/core/src/test/org/apache/solr/cloud/SyncSliceTest.java @@ -1,340 +1,340 ...
true
true
public void doTest() throws Exception { handle.clear(); handle.put("QTime", SKIPVAL); handle.put("timestamp", SKIPVAL); waitForThingsToLevelOut(15); del("*:*"); List<CloudJettyRunner> skipServers = new ArrayList<CloudJettyRunner>(); int docId = 0; indexDoc(skipServers, id, d...
public void doTest() throws Exception { handle.clear(); handle.put("QTime", SKIPVAL); handle.put("timestamp", SKIPVAL); waitForThingsToLevelOut(15); del("*:*"); List<CloudJettyRunner> skipServers = new ArrayList<CloudJettyRunner>(); int docId = 0; indexDoc(skipServers, id, d...
diff --git a/drools-core/src/main/java/org/drools/audit/WorkingMemoryLogger.java b/drools-core/src/main/java/org/drools/audit/WorkingMemoryLogger.java index c274e4265e..a2759b8901 100644 --- a/drools-core/src/main/java/org/drools/audit/WorkingMemoryLogger.java +++ b/drools-core/src/main/java/org/drools/audit/WorkingMem...
true
true
private String extractDeclarations(final Activation activation, final WorkingMemory workingMemory) { final StringBuffer result = new StringBuffer(); final Tuple tuple = activation.getTuple(); final Map declarations = activation.getSubRule().getOuterDeclarations(); for ( Iterator it ...
private String extractDeclarations(final Activation activation, final WorkingMemory workingMemory) { final StringBuffer result = new StringBuffer(); final Tuple tuple = activation.getTuple(); final Map declarations = activation.getSubRule().getOuterDeclarations(); for ( Iterator it ...
diff --git a/src/com/android/calendar/agenda/AgendaWindowAdapter.java b/src/com/android/calendar/agenda/AgendaWindowAdapter.java index ac30998a..8ac14eb3 100644 --- a/src/com/android/calendar/agenda/AgendaWindowAdapter.java +++ b/src/com/android/calendar/agenda/AgendaWindowAdapter.java @@ -1,1349 +1,1352 @@ /* * Cop...
false
true
protected void onQueryComplete(int token, Object cookie, Cursor cursor) { QuerySpec data = (QuerySpec)cookie; if (BASICLOG) { long queryEndMillis = System.nanoTime(); Log.e(TAG, "Query time(ms): " + (queryEndMillis - data.queryStart...
protected void onQueryComplete(int token, Object cookie, Cursor cursor) { QuerySpec data = (QuerySpec)cookie; if (BASICLOG) { long queryEndMillis = System.nanoTime(); Log.e(TAG, "Query time(ms): " + (queryEndMillis - data.queryStart...
diff --git a/gson/src/main/java/com/google/gson/FieldAttributes.java b/gson/src/main/java/com/google/gson/FieldAttributes.java index b69ebf9..0aa4751 100644 --- a/gson/src/main/java/com/google/gson/FieldAttributes.java +++ b/gson/src/main/java/com/google/gson/FieldAttributes.java @@ -1,255 +1,256 @@ /* * Copyright (...
false
true
public Collection<Annotation> getAnnotations() { if (annotations == null) { Pair<Class<?>, String> key = new Pair<Class<?>, String>(declaringClazz, name); annotations = ANNOTATION_CACHE.getElement(key); if (annotations == null) { annotations = Collections.unmodifiableCollection( ...
public Collection<Annotation> getAnnotations() { if (annotations == null) { Pair<Class<?>, String> key = new Pair<Class<?>, String>(declaringClazz, name); Collection<Annotation> cachedValue = ANNOTATION_CACHE.getElement(key); if (cachedValue == null) { cachedValue = Collections.unmodifia...
diff --git a/GAE/src/org/waterforpeople/mapping/portal/client/widgets/RawDataViewPortlet.java b/GAE/src/org/waterforpeople/mapping/portal/client/widgets/RawDataViewPortlet.java index f72b0c424..44c9c878e 100644 --- a/GAE/src/org/waterforpeople/mapping/portal/client/widgets/RawDataViewPortlet.java +++ b/GAE/src/org/wate...
false
true
private void loadSurveyInstance(boolean isNew) { statusLabel.setText("Loading survey submissions. Please wait..."); statusLabel.setVisible(true); svc.listSurveyInstance(null, getCursor(currentPage - 1), new AsyncCallback<ResponseDto<ArrayList<SurveyInstanceDto>>>() { @Override public void onFailur...
private void loadSurveyInstance(boolean isNew) { statusLabel.setText("Loading survey submissions. Please wait..."); statusLabel.setVisible(true); svc.listSurveyInstance(null, getCursor(currentPage - 1), new AsyncCallback<ResponseDto<ArrayList<SurveyInstanceDto>>>() { @Override public void onFailur...
diff --git a/java/src/org/broadinstitute/sting/gatk/walkers/annotator/VariantAnnotator.java b/java/src/org/broadinstitute/sting/gatk/walkers/annotator/VariantAnnotator.java index 13852751a..b7af1d418 100755 --- a/java/src/org/broadinstitute/sting/gatk/walkers/annotator/VariantAnnotator.java +++ b/java/src/org/broadinst...
false
true
public void initialize() { if ( LIST ) listFiltersAndExit(); // get the list of all sample names from the various VCF input rods TreeSet<String> samples = new TreeSet<String>(); VCFUtils.getUniquifiedSamplesFromRods(getToolkit(), samples, new HashMap<Pair<String, String...
public void initialize() { if ( LIST ) listFiltersAndExit(); // get the list of all sample names from the various VCF input rods TreeSet<String> samples = new TreeSet<String>(); VCFUtils.getUniquifiedSamplesFromRods(getToolkit(), samples, new HashMap<Pair<String, String...
diff --git a/src/main/java/stirling/console/commands/Profile.java b/src/main/java/stirling/console/commands/Profile.java index 8e072bf1..949cea4f 100644 --- a/src/main/java/stirling/console/commands/Profile.java +++ b/src/main/java/stirling/console/commands/Profile.java @@ -1,68 +1,68 @@ /* * Copyright 2010 the orig...
true
true
public Profile() { factories.put("default", new stirling.fix.messages.fix42.DefaultMessageFactory()); factories.put("bats-europe", new stirling.fix.messages.fix42.bats.europe.MessageFactory()); factories.put("mb-trading", new stirling.fix.messages.fix44.mbtrading.MessageFactory()); f...
public Profile() { factories.put("default", new stirling.fix.messages.fix42.DefaultMessageFactory()); factories.put("bats-europe", new stirling.fix.messages.fix42.bats.europe.MessageFactory()); factories.put("mb-trading", new stirling.fix.messages.fix44.mbtrading.MessageFactory()); f...
diff --git a/svnkit/src/main/java/org/tmatesoft/svn/core/internal/wc17/SVNCommitter17.java b/svnkit/src/main/java/org/tmatesoft/svn/core/internal/wc17/SVNCommitter17.java index 95cc71ead..1723ced1c 100644 --- a/svnkit/src/main/java/org/tmatesoft/svn/core/internal/wc17/SVNCommitter17.java +++ b/svnkit/src/main/java/org/...
true
true
public boolean handleCommitPath(String commitPath, ISVNEditor commitEditor) throws SVNException { SVNCommitItem item = myCommittables.get(commitPath); myContext.checkCancelled(); if (item.isCopied()) { if (item.getCopyFromURL() == null) { SVNErrorMessage err = SVN...
public boolean handleCommitPath(String commitPath, ISVNEditor commitEditor) throws SVNException { SVNCommitItem item = myCommittables.get(commitPath); myContext.checkCancelled(); if (item.isCopied()) { if (item.getCopyFromURL() == null) { SVNErrorMessage err = SVN...
diff --git a/connectors/http11/src/java/org/apache/coyote/http11/Http11AprProcessor.java b/connectors/http11/src/java/org/apache/coyote/http11/Http11AprProcessor.java index 617e30ce..b13a9a50 100644 --- a/connectors/http11/src/java/org/apache/coyote/http11/Http11AprProcessor.java +++ b/connectors/http11/src/java/org/ap...
true
true
public void action(ActionCode actionCode, Object param) { if (actionCode == ActionCode.ACTION_COMMIT) { // Commit current response if (response.isCommitted()) return; // Validate and write response headers prepareResponse(); try ...
public void action(ActionCode actionCode, Object param) { if (actionCode == ActionCode.ACTION_COMMIT) { // Commit current response if (response.isCommitted()) return; // Validate and write response headers prepareResponse(); try ...
diff --git a/src/main/java/lemur/nopol/TestRecordCounts.java b/src/main/java/lemur/nopol/TestRecordCounts.java index fe2a2e3..6495915 100644 --- a/src/main/java/lemur/nopol/TestRecordCounts.java +++ b/src/main/java/lemur/nopol/TestRecordCounts.java @@ -1,86 +1,87 @@ package lemur.nopol; import java.io.File; import...
false
true
public static void main(String[] args) throws IOException { if (args.length != 2){ System.out.println("Usage: TestRecordCounts base-dir record-counts.txt"); System.exit(1); } File baseDir = new File(args[0]); File recCounts = new File(args[1]); int e...
public static void main(String[] args) throws IOException { if (args.length != 2){ System.out.println("Usage: TestRecordCounts base-dir record-counts.txt"); System.exit(1); } File baseDir = new File(args[0]); File recCounts = new File(args[1]); int e...
diff --git a/software_backwards_compatibility/upt40/webapp/src/gov/nih/nci/security/upt/actions/LoginAction.java b/software_backwards_compatibility/upt40/webapp/src/gov/nih/nci/security/upt/actions/LoginAction.java index 6c28d9c1..c7e8dad3 100644 --- a/software_backwards_compatibility/upt40/webapp/src/gov/nih/nci/secur...
true
true
public ActionForward execute(ActionMapping mapping, ActionForm form, HttpServletRequest request, HttpServletResponse response) { ActionErrors errors = new ActionErrors(); AuthenticationManager authenticationManager = null; AuthorizationManager authorizationManager = null; UserProvisioningManager userProvis...
public ActionForward execute(ActionMapping mapping, ActionForm form, HttpServletRequest request, HttpServletResponse response) { ActionErrors errors = new ActionErrors(); AuthenticationManager authenticationManager = null; AuthorizationManager authorizationManager = null; UserProvisioningManager userProvis...
diff --git a/src/java/org/apache/http/protocol/RequestContent.java b/src/java/org/apache/http/protocol/RequestContent.java index 3030fc44c..45a19987b 100755 --- a/src/java/org/apache/http/protocol/RequestContent.java +++ b/src/java/org/apache/http/protocol/RequestContent.java @@ -1,92 +1,96 @@ /* * $HeadURL$ * $Re...
true
true
public void process(final HttpMutableRequest request, final HttpContext context) throws HttpException, IOException { if (request == null) { throw new IllegalArgumentException("HTTP request may not be null"); } if (request instanceof HttpEntityEnclosingRequest) { ...
public void process(final HttpMutableRequest request, final HttpContext context) throws HttpException, IOException { if (request == null) { throw new IllegalArgumentException("HTTP request may not be null"); } if (request instanceof HttpEntityEnclosingRequest) { ...
diff --git a/WartricksProject/wartricks/src/com/wartricks/systems/OnEndTurnSystem.java b/WartricksProject/wartricks/src/com/wartricks/systems/OnEndTurnSystem.java index 2c9c3a7..fedcbf5 100644 --- a/WartricksProject/wartricks/src/com/wartricks/systems/OnEndTurnSystem.java +++ b/WartricksProject/wartricks/src/com/wartri...
true
true
protected void process(Entity e) { final ActionSequence sequence = asm.get(e); if (sequence.onBeginTurnActions.size() > 1) { for (final Action action : sequence.onBeginTurnActions) { game.gameExecutor.executeEndTurn(action); } } }
protected void process(Entity e) { final ActionSequence sequence = asm.get(e); if (sequence.onEndTurnActions.size() > 1) { for (final Action action : sequence.onEndTurnActions) { game.gameExecutor.executeEndTurn(action); } } }
diff --git a/src/com/bingo/eatime/admin/EventAdminServlet.java b/src/com/bingo/eatime/admin/EventAdminServlet.java index 103345c..8b7255a 100644 --- a/src/com/bingo/eatime/admin/EventAdminServlet.java +++ b/src/com/bingo/eatime/admin/EventAdminServlet.java @@ -1,72 +1,74 @@ package com.bingo.eatime.admin; import ja...
false
true
public void doGet(HttpServletRequest req, HttpServletResponse resp) { String action = req.getParameter("action"); String eventEvent = req.getParameter("name"); String restaurantKeyName = req.getParameter("restaurant"); String creatorUsername = req.getParameter("username"); String dateString = req.getParamete...
public void doGet(HttpServletRequest req, HttpServletResponse resp) { String action = req.getParameter("action"); String eventName = req.getParameter("name"); String restaurantKeyName = req.getParameter("restaurant"); String creatorUsername = req.getParameter("username"); String dateString = req.getParameter...
diff --git a/src/main/java/com/lorepo/icplayer/client/page/Score.java b/src/main/java/com/lorepo/icplayer/client/page/Score.java index 58df02af..32e1af63 100644 --- a/src/main/java/com/lorepo/icplayer/client/page/Score.java +++ b/src/main/java/com/lorepo/icplayer/client/page/Score.java @@ -1,77 +1,77 @@ package com.lo...
true
true
public static Result calculateZeroOneScore(List<IPresenter> presenters) { Result result = new Result(); for(IPresenter presenter : presenters){ if(presenter instanceof IActivity){ IActivity activity = (IActivity) presenter; if(activity.getScore() == activity.getMaxScore()){ result.score += acti...
public static Result calculateZeroOneScore(List<IPresenter> presenters) { Result result = new Result(); for(IPresenter presenter : presenters){ if(presenter instanceof IActivity){ IActivity activity = (IActivity) presenter; if(activity.getScore() == activity.getMaxScore() && activity.getErrorCount()...
diff --git a/java/src/org/tom/weather/comm/Main.java b/java/src/org/tom/weather/comm/Main.java index 1bdcebbc..715805a2 100644 --- a/java/src/org/tom/weather/comm/Main.java +++ b/java/src/org/tom/weather/comm/Main.java @@ -1,95 +1,95 @@ /* * Created on 16-Oct-2004 * */ package org.tom.weather.comm; import ja...
false
true
public void monitorWeather() throws Exception { int errorCount = 0; try { getStation().test(); } catch (IOException ex) { LOGGER.error(ex); } while (true) { try { for (int i = 0; i < 15; i++) { getStation().readCurrentConditions(); } if (isCheck...
public void monitorWeather() throws Exception { int errorCount = 0; try { getStation().test(); } catch (IOException ex) { LOGGER.error(ex); } while (true) { try { for (int i = 0; i < 15; i++) { getStation().readCurrentConditions(); } if (isCheck...
diff --git a/src/com/asascience/edc/map/BoundingBoxPanel.java b/src/com/asascience/edc/map/BoundingBoxPanel.java index 37c6db7..01818b1 100644 --- a/src/com/asascience/edc/map/BoundingBoxPanel.java +++ b/src/com/asascience/edc/map/BoundingBoxPanel.java @@ -1,96 +1,97 @@ package com.asascience.edc.map; import com.as...
true
true
public BoundingBoxPanel() { pcs = new PropertyChangeSupport(this); this.setLayout(new MigLayout("gap 0, fill")); this.setBorder(new EtchedBorder()); this.add(new JLabel("N"), "cell 3 1, align center"); this.add(north, "cell 3 2, width 55, align center"); this.add(new JLabel("W"), "cell 1 3, ...
public BoundingBoxPanel() { pcs = new PropertyChangeSupport(this); this.setLayout(new MigLayout("gap 0, fill")); this.setBorder(new EtchedBorder()); this.add(new JLabel("N"), "cell 3 1, align center"); this.add(north, "cell 3 2, width 55, align center"); this.add(new JLabel("W"), "cell 1 3, ...
diff --git a/core/vdmj/src/main/java/org/overturetool/vdmj/pog/ProofObligationList.java b/core/vdmj/src/main/java/org/overturetool/vdmj/pog/ProofObligationList.java index 5f38dec360..a0883bb8ca 100644 --- a/core/vdmj/src/main/java/org/overturetool/vdmj/pog/ProofObligationList.java +++ b/core/vdmj/src/main/java/org/over...
true
true
public String toString() { StringBuilder sb = new StringBuilder(); renumber(10); for (ProofObligation po: this) { sb.append("Proof Obligation "); sb.append(po.number); sb.append(": ("); sb.append(po.status); if (po.status == POStatus.TRIVIAL) { sb.append(" by <"); sb.append(po.proo...
public String toString() { StringBuilder sb = new StringBuilder(); renumber(); for (ProofObligation po: this) { sb.append("Proof Obligation "); sb.append(po.number); sb.append(": ("); sb.append(po.status); if (po.status == POStatus.TRIVIAL) { sb.append(" by <"); sb.append(po.proof)...
diff --git a/src/com/dmdirc/parser/ProcessWallops.java b/src/com/dmdirc/parser/ProcessWallops.java index db3749827..fec845cb2 100644 --- a/src/com/dmdirc/parser/ProcessWallops.java +++ b/src/com/dmdirc/parser/ProcessWallops.java @@ -1,128 +1,128 @@ /* * Copyright (c) 2006-2007 Chris Smith, Shane Mc Cormack, Gregory ...
true
true
public void process(String sParam, String[] token) { if (token.length < 3) { return; } String user = token[0]; String message = token[token.length-1]; if (user.charAt(0) == ':' && user.length() > 1) { user = user.substring(1); } String[] bits = message.split(" ", 2); if (bits.length > 1) { if (messa...
public void process(String sParam, String[] token) { if (token.length < 3) { return; } String user = token[0]; String message = token[token.length-1]; if (user.charAt(0) == ':' && user.length() > 1) { user = user.substring(1); } String[] bits = message.split(" ", 2); if (bits.length > 1) { if (messa...
diff --git a/src/com/sohail/online_quizzing_app/OnlineQuizzingApp.java b/src/com/sohail/online_quizzing_app/OnlineQuizzingApp.java index 38d3830..544a437 100644 --- a/src/com/sohail/online_quizzing_app/OnlineQuizzingApp.java +++ b/src/com/sohail/online_quizzing_app/OnlineQuizzingApp.java @@ -1,86 +1,86 @@ /* * To ch...
false
true
public void start(Stage primaryStage) throws Exception { try { stage = primaryStage; SceneLoaders.getInstance().gotoLogin(getStage()); //Show dialog requesting full screen mode DialogResponse response = Dialogs.showConfirmDialog(stage, "Do...
public void start(Stage primaryStage) throws Exception { try { stage = primaryStage; SceneLoaders.getInstance().gotoLogin(getStage()); primaryStage.show(); // //Show dialog requesting full screen mode // DialogResponse response = Dialogs.showConfirm...
diff --git a/src/edu/uchc/octane/TrajDataset.java b/src/edu/uchc/octane/TrajDataset.java index 8387766..b5d66cc 100644 --- a/src/edu/uchc/octane/TrajDataset.java +++ b/src/edu/uchc/octane/TrajDataset.java @@ -1,422 +1,429 @@ //FILE: TrajDataset.java //PROJECT: Octane //--------------------------------...
true
true
static public TrajDataset importDatasetFromText(File file) throws IOException { TrajDataset dataset; Trajectory oneTraj = new Trajectory(); int cur_cnt = -1; String line; BufferedReader br = new BufferedReader(new FileReader(file)); dataset = new TrajDataset(); while (null != (line = br.readLine())) ...
static public TrajDataset importDatasetFromText(File file) throws IOException { TrajDataset dataset; Trajectory oneTraj = new Trajectory(); int cur_cnt = -1; String line; BufferedReader br = new BufferedReader(new FileReader(file)); dataset = new TrajDataset(); while (null != (line = br.readLine())) ...
diff --git a/src/utils/SPtoGPX.java b/src/utils/SPtoGPX.java index 26d185c..a9cf756 100644 --- a/src/utils/SPtoGPX.java +++ b/src/utils/SPtoGPX.java @@ -1,70 +1,70 @@ /** * $$\\ToureNPlaner\\$$ * */ package utils; import java.io.FileInputStream; import java.io.FileNotFoundException; import java.io.IOExcep...
true
true
public static void main(String[] args) { if (args.length != 1) { System.err .println("Please supply a .json file as first parameter or - to read from stdin"); return; } InputStream input; try { input = args[0].equals("-") ? System.in : new FileInputStream( args[0]); } catch (FileNotFoundEx...
public static void main(String[] args) { if (args.length != 1) { System.err .println("Please supply a .json file as first parameter or - to read from stdin"); return; } InputStream input; try { input = args[0].equals("-") ? System.in : new FileInputStream( args[0]); } catch (FileNotFoundEx...
diff --git a/src/RegisterAllocator.java b/src/RegisterAllocator.java index 12a8042..71c15ff 100644 --- a/src/RegisterAllocator.java +++ b/src/RegisterAllocator.java @@ -1,308 +1,308 @@ import java.util.*; /** * Maps virtual registers to real registers. * * How to use: * add each node to graph using addNod...
true
true
private void addNode(Node block) { List<Register> srcs; List<Register> dests; Set<Register> liveSet = new HashSet<Register>(block.getLiveSet()); List<Instruction> instrs = block.getInstr(); ListIterator<Instruction> iter = instrs.listIterator(instrs.size()); while (iter.hasPrevio...
private void addNode(Node block) { List<Register> srcs; List<Register> dests; Set<Register> liveSet = new HashSet<Register>(block.getLiveSet()); List<Instruction> instrs = block.getInstr(); ListIterator<Instruction> iter = instrs.listIterator(instrs.size()); while (iter.hasPrevio...
diff --git a/km/com/hifiremote/jp1/ManualProtocol.java b/km/com/hifiremote/jp1/ManualProtocol.java index 635a354..725ba12 100644 --- a/km/com/hifiremote/jp1/ManualProtocol.java +++ b/km/com/hifiremote/jp1/ManualProtocol.java @@ -1,146 +1,146 @@ package com.hifiremote.jp1; import java.io.*; import java.util.*; p...
true
true
public void store( PropertyWriter out ) throws IOException { System.err.println( "ManualProtocol.store" ); super.store( out ); if ( devParms.length > 0 ) { StringBuffer buff = new StringBuffer(); for ( int i = 0; i < devParms.length; i++ ) { if ( i > 0 ) buff....
public void store( PropertyWriter out ) throws IOException { System.err.println( "ManualProtocol.store" ); super.store( out ); if ( devParms.length > 0 ) { StringBuffer buff = new StringBuffer(); for ( int i = 0; i < devParms.length; i++ ) { if ( i > 0 ) buff....
diff --git a/tool/src/java/org/sakaiproject/evaluation/tool/producers/ReportsViewEssaysProducer.java b/tool/src/java/org/sakaiproject/evaluation/tool/producers/ReportsViewEssaysProducer.java index ef20d491..8afeeb7e 100644 --- a/tool/src/java/org/sakaiproject/evaluation/tool/producers/ReportsViewEssaysProducer.java +++...
false
true
public void fillComponents(UIContainer tofill, ViewParameters viewparams, ComponentChecker checker) { String currentUserId = externalLogic.getCurrentUserId(); UIMessage.make(tofill, "view-essay-title", "viewessay.page.title"); UIInternalLink.make(tofill, "summary-toplink", UIMessage.make("summary.page....
public void fillComponents(UIContainer tofill, ViewParameters viewparams, ComponentChecker checker) { String currentUserId = externalLogic.getCurrentUserId(); UIMessage.make(tofill, "view-essay-title", "viewessay.page.title"); UIInternalLink.make(tofill, "summary-toplink", UIMessage.make("summary.page....
diff --git a/src/plugins/adufour/activecontours/HoleFiller.java b/src/plugins/adufour/activecontours/HoleFiller.java index 72c26cb..5aa7d7a 100644 --- a/src/plugins/adufour/activecontours/HoleFiller.java +++ b/src/plugins/adufour/activecontours/HoleFiller.java @@ -1,221 +1,221 @@ package plugins.adufour.activecontours...
true
true
public void fillHoles2D(ROI2DArea bin) { int width = bin.getBounds().width; int height = bin.getBounds().height; int slice = width * height; boolean[] in = bin.getAsBooleanMask(bin.getBounds()); boolean bgValue = false, fillValue = true; final by...
public void fillHoles2D(ROI2DArea bin) { int width = bin.getBounds().width; int height = bin.getBounds().height; int slice = width * height; boolean[] in = bin.getBooleanMask(bin.getBounds()); boolean bgValue = false, fillValue = true; final byte...
diff --git a/android/src/com/google/zxing/client/android/CaptureActivity.java b/android/src/com/google/zxing/client/android/CaptureActivity.java index f02f740f..8b9c9259 100755 --- a/android/src/com/google/zxing/client/android/CaptureActivity.java +++ b/android/src/com/google/zxing/client/android/CaptureActivity.java @...
true
true
private void handleDecodeInternally(Result rawResult, Bitmap barcode) { statusView.setVisibility(View.GONE); viewfinderView.setVisibility(View.GONE); resultView.setVisibility(View.VISIBLE); ImageView barcodeImageView = (ImageView) findViewById(R.id.barcode_image_view); if (barcode == null) { ...
private void handleDecodeInternally(Result rawResult, Bitmap barcode) { statusView.setVisibility(View.GONE); viewfinderView.setVisibility(View.GONE); resultView.setVisibility(View.VISIBLE); ImageView barcodeImageView = (ImageView) findViewById(R.id.barcode_image_view); if (barcode == null) { ...
diff --git a/src/uk/me/parabola/mkgmap/main/Main.java b/src/uk/me/parabola/mkgmap/main/Main.java index fc04fee1..53d91486 100644 --- a/src/uk/me/parabola/mkgmap/main/Main.java +++ b/src/uk/me/parabola/mkgmap/main/Main.java @@ -1,372 +1,375 @@ /* * Copyright (C) 2007 Steve Ratcliffe * * This program is free sof...
false
true
public void endOptions(CommandArgs args) { List<String> filenames = new ArrayList<String>(); if(threadPool != null) { threadPool.shutdown(); while(!futures.isEmpty()) { try { try { // don't call get() until a job has finished if(futures.get(0).isDone()) filenames.add(futures.rem...
public void endOptions(CommandArgs args) { List<String> filenames = new ArrayList<String>(); if(threadPool != null) { threadPool.shutdown(); while(!futures.isEmpty()) { try { try { // don't call get() until a job has finished if(futures.get(0).isDone()) filenames.add(futures.rem...
diff --git a/src/net/derkholm/nmica/extra/app/seq/SampleRegions.java b/src/net/derkholm/nmica/extra/app/seq/SampleRegions.java index 649170f..8478057 100644 --- a/src/net/derkholm/nmica/extra/app/seq/SampleRegions.java +++ b/src/net/derkholm/nmica/extra/app/seq/SampleRegions.java @@ -1,204 +1,204 @@ package net.derkho...
true
true
public void main(String[] args) throws IOException, BioException, ParserException, Exception { this.features = new ArrayList<GFFRecord>(); GFFParser parser = new GFFParser(); RegionHandler rHandler = new RegionHandler(); parser.parse(IOTools.fileBufferedReader(featuresFile),rHandler); Collections.sort(...
public void main(String[] args) throws IOException, BioException, ParserException, Exception { this.features = new ArrayList<GFFRecord>(); GFFParser parser = new GFFParser(); RegionHandler rHandler = new RegionHandler(); parser.parse(IOTools.fileBufferedReader(featuresFile),rHandler); Collections.sort(...
diff --git a/android_toolbox/src/de/viktorreiser/toolbox/widget/SwipeableHiddenView.java b/android_toolbox/src/de/viktorreiser/toolbox/widget/SwipeableHiddenView.java index afca252..4f5bb98 100644 --- a/android_toolbox/src/de/viktorreiser/toolbox/widget/SwipeableHiddenView.java +++ b/android_toolbox/src/de/viktorreiser...
false
true
public boolean onViewSwipe(ListView listView, SwipeEvent event, int offset, int position, SwipeableListItem restoreItem) { checkRequirements(); boolean mayInterruptAnimation = mAnimating && Math.abs(mOffset) < mData.interruptOffset || mAnimating && !mAnimateForward; if (event == SwipeEvent.START) { ...
public boolean onViewSwipe(ListView listView, SwipeEvent event, int offset, int position, SwipeableListItem restoreItem) { checkRequirements(); boolean mayInterruptAnimation = mAnimating && Math.abs(mOffset) < mData.interruptOffset || mAnimating && !mAnimateForward; if (event == SwipeEvent.START) { ...
diff --git a/src/main/java/org/jasig/portlet/maps/dao/AbstractPrefetchableMapDaoImpl.java b/src/main/java/org/jasig/portlet/maps/dao/AbstractPrefetchableMapDaoImpl.java index 72a31fb..96bb638 100644 --- a/src/main/java/org/jasig/portlet/maps/dao/AbstractPrefetchableMapDaoImpl.java +++ b/src/main/java/org/jasig/portlet/...
true
true
public MapData prefetchMap(PortletRequest request) { final Element cachedMap = this.cache.get(CACHE_KEY); if (cachedMap != null) { return (MapData) cachedMap.getValue(); } else { return prefetchMap(); } }
public MapData getMap(PortletRequest request) { final Element cachedMap = this.cache.get(CACHE_KEY); if (cachedMap != null) { return (MapData) cachedMap.getValue(); } else { return prefetchMap(); } }
diff --git a/src/main/java/eu/dm2e/ws/SerializablePojoProvider.java b/src/main/java/eu/dm2e/ws/SerializablePojoProvider.java index 78a65f5..d4a8d91 100644 --- a/src/main/java/eu/dm2e/ws/SerializablePojoProvider.java +++ b/src/main/java/eu/dm2e/ws/SerializablePojoProvider.java @@ -1,145 +1,145 @@ package eu.dm2e.ws; ...
true
true
public SerializablePojo readFrom(Class<SerializablePojo> type, Type genericType, Annotation[] annotations, MediaType mediaType, MultivaluedMap<String, String> httpHeaders, InputStream entityStream) throws IOException, WebApplicationException { log.debug("MEDIA_TYPE " + mediaType); log.debug("GENER...
public SerializablePojo readFrom(Class<SerializablePojo> type, Type genericType, Annotation[] annotations, MediaType mediaType, MultivaluedMap<String, String> httpHeaders, InputStream entityStream) throws IOException, WebApplicationException { log.debug("MEDIA_TYPE " + mediaType); log.debug("GENER...
diff --git a/src/uk/ac/gla/dcs/tp3/w/print/MACMain.java b/src/uk/ac/gla/dcs/tp3/w/print/MACMain.java index a20eff6..fc354f8 100644 --- a/src/uk/ac/gla/dcs/tp3/w/print/MACMain.java +++ b/src/uk/ac/gla/dcs/tp3/w/print/MACMain.java @@ -1,79 +1,79 @@ package uk.ac.gla.dcs.tp3.w.print; import java.io.IOException; impor...
false
true
public static void main(String[] args) { System.out.println("Working Directory = " + System.getProperty("user.dir")); String directory = System.getProperty("user.dir") + "/src/uk/ac/gla/dcs/tp3/w/print/"; LaTeXFile LF = new LaTeXFile(directory + "output.tex"); Team atlanta = new Team(); atlanta.setN...
public static void main(String[] args) { System.out.println("Working Directory = " + System.getProperty("user.dir")); String directory = System.getProperty("user.dir") + "/src/uk/ac/gla/dcs/tp3/w/print/"; LaTeXFile LF = new LaTeXFile(directory + "output.tex"); Team atlanta = new Team(); atlanta.setN...
diff --git a/App/src/com/dozuki/ifixit/ui/IntentFilterActivity.java b/App/src/com/dozuki/ifixit/ui/IntentFilterActivity.java index f29d73ab..0ee48f6b 100644 --- a/App/src/com/dozuki/ifixit/ui/IntentFilterActivity.java +++ b/App/src/com/dozuki/ifixit/ui/IntentFilterActivity.java @@ -1,163 +1,163 @@ package com.dozuki.i...
true
true
private void handlePathNavigation() { Intent intent = null; List<String> segments = mUri.getPathSegments(); String prefix = segments.get(0); try { if (prefix.equalsIgnoreCase("guide")) { if (segments.get(1).equalsIgnoreCase("search")) { String query = segm...
private void handlePathNavigation() { Intent intent = null; List<String> segments = mUri.getPathSegments(); String prefix = segments.get(0); try { if (prefix.equalsIgnoreCase("guide") || prefix.equalsIgnoreCase("teardown")) { if (segments.get(1).equalsIgnoreCase("search"...
diff --git a/software/api/src/gov/nih/nci/security/provisioning/AuthorizationManagerImpl.java b/software/api/src/gov/nih/nci/security/provisioning/AuthorizationManagerImpl.java index af871b92..9fbe122b 100644 --- a/software/api/src/gov/nih/nci/security/provisioning/AuthorizationManagerImpl.java +++ b/software/api/src/g...
true
true
public void modifyUser(User user)throws CSException,LoginException{ User currUser = authorizationDAO.getUser(user.getLoginName()); if(!currUser.getPassword().equalsIgnoreCase(user.getPassword())) { authorizationDAO.validateUser(user); } user.setUpdateDate(new java.util.Date()); authorizationDAO.mo...
public void modifyUser(User user)throws CSException,LoginException{ User currUser = authorizationDAO.getUser(user.getLoginName()); if(currUser.getPassword() == null || !currUser.getPassword().equalsIgnoreCase(user.getPassword())) { authorizationDAO.validateUser(user); } user.setUpdateDate(new java.u...
diff --git a/ps3mediaserver/net/pms/newgui/NetworkTab.java b/ps3mediaserver/net/pms/newgui/NetworkTab.java index 23143328..eb258443 100644 --- a/ps3mediaserver/net/pms/newgui/NetworkTab.java +++ b/ps3mediaserver/net/pms/newgui/NetworkTab.java @@ -1,305 +1,305 @@ /* * PS3 Media Server, for streaming any medias to you...
false
true
public JComponent build() { FormLayout layout = new FormLayout( "left:pref, 2dlu, p, 2dlu , p, 2dlu, p, 2dlu, pref:grow", //$NON-NLS-1$ "p, 0dlu, p, 0dlu, p, 3dlu, p, 3dlu, p, 3dlu,p, 3dlu, p, 15dlu, p, 3dlu,p, 3dlu, p, 3dlu, p, 3dlu, p, 3dlu, p,3dlu, p, 3dlu, p, 15dlu, p,3dlu, p, 3d...
public JComponent build() { FormLayout layout = new FormLayout( "left:pref, 2dlu, p, 2dlu , p, 2dlu, p, 2dlu, pref:grow", //$NON-NLS-1$ "p, 0dlu, p, 0dlu, p, 3dlu, p, 3dlu, p, 3dlu,p, 3dlu, p, 15dlu, p, 3dlu,p, 3dlu, p, 3dlu, p, 3dlu, p, 3dlu, p,3dlu, p, 3dlu, p, 15dlu, p,3dlu, p, 3d...
diff --git a/seqware-ext-testing/src/test/java/net/sourceforge/seqware/pipeline/cli_tutorial/CLIUserPhase4.java b/seqware-ext-testing/src/test/java/net/sourceforge/seqware/pipeline/cli_tutorial/CLIUserPhase4.java index 9134c809..4047210c 100644 --- a/seqware-ext-testing/src/test/java/net/sourceforge/seqware/pipeline/cl...
true
true
public void testExistingFileInAndAssociateWithSample() throws IOException { GenericMetadataSaverET it = new GenericMetadataSaverET(); String output = it.saveGenericMetadataFileForSample(AccessionMap.accessionMap.get(UserPhase3.SAMPLE), true); String sw_accession = OldUserTutorialSuiteET.getA...
public void testExistingFileInAndAssociateWithSample() throws IOException { GenericMetadataSaverET it = new GenericMetadataSaverET(); String output = it.saveGenericMetadataFileForSample(AccessionMap.accessionMap.get(UserPhase3.SAMPLE), true); String sw_accession = OldUserTutorialSuiteET.getA...
diff --git a/jOOQ/src/main/java/org/jooq/impl/RowBetweenCondition.java b/jOOQ/src/main/java/org/jooq/impl/RowBetweenCondition.java index b239340d9..33920a32a 100644 --- a/jOOQ/src/main/java/org/jooq/impl/RowBetweenCondition.java +++ b/jOOQ/src/main/java/org/jooq/impl/RowBetweenCondition.java @@ -1,741 +1,741 @@ /** ...
true
true
private final QueryPartInternal delegate(Configuration configuration) { // These casts are safe for RowImpl RowN r = (RowN) row; RowN min = (RowN) minValue; RowN max = (RowN) maxValue; // These dialects don't support the SYMMETRIC keyword at all if (symmetric && asLi...
private final QueryPartInternal delegate(Configuration configuration) { // These casts are safe for RowImpl RowN r = (RowN) row; RowN min = (RowN) minValue; RowN max = (RowN) maxValue; // These dialects don't support the SYMMETRIC keyword at all if (symmetric && asLi...
diff --git a/tests/frontend/org/voltdb/benchmark/tpcc/procedures/LoadWarehouseReplicated.java b/tests/frontend/org/voltdb/benchmark/tpcc/procedures/LoadWarehouseReplicated.java index 8f600b737..b3d06a745 100644 --- a/tests/frontend/org/voltdb/benchmark/tpcc/procedures/LoadWarehouseReplicated.java +++ b/tests/frontend/o...
true
true
public VoltTable[] run(long w_id, VoltTable items, VoltTable customerNames) throws VoltAbortException { if (items != null) { // check if we've already set up this partition voltQueueSQL(checkItemExists); VoltTable item = voltExecuteSQL()[0]; if (item.getRo...
public VoltTable[] run(long w_id, VoltTable items, VoltTable customerNames) throws VoltAbortException { int allowELT = 0; if (items != null) { // check if we've already set up this partition voltQueueSQL(checkItemExists); VoltTable item = voltExecuteSQL()[0]; ...
diff --git a/nuxeo-core-io/src/test/java/org/nuxeo/ecm/core/io/impl/TestExportedDocument.java b/nuxeo-core-io/src/test/java/org/nuxeo/ecm/core/io/impl/TestExportedDocument.java index ce790c8b2..e6286fac0 100644 --- a/nuxeo-core-io/src/test/java/org/nuxeo/ecm/core/io/impl/TestExportedDocument.java +++ b/nuxeo-core-io/sr...
true
true
public void testExportedDocument() throws Exception { Mock documentModelMock = mock(DocumentModel.class); documentModelMock.expects(atLeastOnce()).method("getId") .will(returnValue("My id")); documentModelMock.expects(atLeastOnce()).method("getType") .will(re...
public void testExportedDocument() throws Exception { Mock documentModelMock = mock(DocumentModel.class); documentModelMock.expects(atLeastOnce()).method("getId") .will(returnValue("My id")); documentModelMock.expects(atLeastOnce()).method("getType") .will(re...
diff --git a/remoting/src/main/java/hudson/remoting/Response.java b/remoting/src/main/java/hudson/remoting/Response.java index 4f5dba3e3..4bb882ffa 100644 --- a/remoting/src/main/java/hudson/remoting/Response.java +++ b/remoting/src/main/java/hudson/remoting/Response.java @@ -1,53 +1,54 @@ package hudson.remoting; ...
true
true
protected void execute(Channel channel) { Request req = channel.pendingCalls.get(id); if(req==null) return; // maybe aborted req.onCompleted(this); }
protected void execute(Channel channel) { Request req = channel.pendingCalls.get(id); if(req==null) return; // maybe aborted req.onCompleted(this); channel.pendingCalls.remove(id); }
diff --git a/org-antlr-works-editor/src/org/antlr/works/editor/grammar/parser/CompiledModelParserV3.java b/org-antlr-works-editor/src/org/antlr/works/editor/grammar/parser/CompiledModelParserV3.java index fbf75b1..8f620e5 100644 --- a/org-antlr-works-editor/src/org/antlr/works/editor/grammar/parser/CompiledModelParserV...
true
true
protected CompiledModelV3 parseImpl(ParserTaskManager taskManager, ParseContext context, DocumentSnapshot snapshot) throws InterruptedException, ExecutionException { Parameters.notNull("snapshot", snapshot); synchronized (lock) { if (snapshot.equals(lastSnapshot)) { ...
protected CompiledModelV3 parseImpl(ParserTaskManager taskManager, ParseContext context, DocumentSnapshot snapshot) throws InterruptedException, ExecutionException { Parameters.notNull("snapshot", snapshot); synchronized (lock) { if (snapshot.equals(lastSnapshot)) { ...
diff --git a/calendar3/webadmin/src/org/bedework/webadmin/admingroup/PEUpdateAGAction.java b/calendar3/webadmin/src/org/bedework/webadmin/admingroup/PEUpdateAGAction.java index 62c37f4d..4a15e2eb 100644 --- a/calendar3/webadmin/src/org/bedework/webadmin/admingroup/PEUpdateAGAction.java +++ b/calendar3/webadmin/src/org/...
true
true
public String doAction(HttpServletRequest request, BwSession sess, PEActionForm form) throws Throwable { /* Check access */ if (!form.getUserAuth().isSuperUser()) { return "noAccess"; } String reqpar = request.getParameter("delete"); i...
public String doAction(HttpServletRequest request, BwSession sess, PEActionForm form) throws Throwable { /* Check access */ if (!form.getUserAuth().isSuperUser()) { return "noAccess"; } String reqpar = request.getParameter("delete"); i...
diff --git a/MeFi/src/ubc/cpsc544/Ideas.java b/MeFi/src/ubc/cpsc544/Ideas.java index a63bdbe..433833d 100644 --- a/MeFi/src/ubc/cpsc544/Ideas.java +++ b/MeFi/src/ubc/cpsc544/Ideas.java @@ -1,501 +1,501 @@ package ubc.cpsc544; import java.awt.Color; import java.awt.Cursor; import java.awt.EventQueue; import java....
false
true
private void initialize() { frame = new JFrame(); frame.getContentPane().setBackground(Color.WHITE); frame.setBounds(100, 100, 1024, 768); frame.setDefaultCloseOperation(JFrame.HIDE_ON_CLOSE); frame.getContentPane().setLayout(null); JSeparator separator = new JSeparator(); separator.setBounds(21, 372...
private void initialize() { frame = new JFrame(); frame.getContentPane().setBackground(Color.WHITE); frame.setBounds(100, 100, 1024, 768); frame.setDefaultCloseOperation(JFrame.HIDE_ON_CLOSE); frame.getContentPane().setLayout(null); JSeparator separator = new JSeparator(); separator.setBounds(21, 372...
diff --git a/src/nl/giantit/minecraft/GiantShop/core/Updater/Updater.java b/src/nl/giantit/minecraft/GiantShop/core/Updater/Updater.java index e91ca55..59bf562 100644 --- a/src/nl/giantit/minecraft/GiantShop/core/Updater/Updater.java +++ b/src/nl/giantit/minecraft/GiantShop/core/Updater/Updater.java @@ -1,119 +1,119 @@...
true
true
public boolean isNewer(String newVersion, String version) { String[] nv = newVersion.replace("\\.[a-zA-Z]+", "").split("\\."); String[] v = version.split("-")[0].replace("\\.[a-zA-Z]+", "").split("\\."); Boolean isNew = false; Boolean prevIsEqual = false; for(int i = 0; i < nv.length; i++) { int tn = ...
public boolean isNewer(String newVersion, String version) { String[] nv = newVersion.split("-")[1].replace("\\.[a-zA-Z]+", "").split("\\."); String[] v = version.split("-")[1].replace("\\.[a-zA-Z]+", "").split("\\."); Boolean isNew = false; Boolean prevIsEqual = false; for(int i = 0; i < nv.length; i++) ...
diff --git a/deegree-core/deegree-core-base/src/main/java/org/deegree/feature/xpath/TypedObjectNodeXPathEvaluator.java b/deegree-core/deegree-core-base/src/main/java/org/deegree/feature/xpath/TypedObjectNodeXPathEvaluator.java index d16f5b01b9..4788ae04e4 100644 --- a/deegree-core/deegree-core-base/src/main/java/org/de...
true
true
public TypedObjectNode[] eval( GMLObject context, ValueReference propName ) throws FilterEvaluationException { // simple property with just a simple element step? QName simplePropName = propName.getAsQName(); if ( bindings != null && ( simplePropName...
public TypedObjectNode[] eval( GMLObject context, ValueReference propName ) throws FilterEvaluationException { // simple property with just a simple element step? QName simplePropName = propName.getAsQName(); if ( bindings != null && simplePropName != null ...
diff --git a/src/com/haligali/PowerHangmanClient/Menus/SignInActivity.java b/src/com/haligali/PowerHangmanClient/Menus/SignInActivity.java index fb8488c..d1a4763 100644 --- a/src/com/haligali/PowerHangmanClient/Menus/SignInActivity.java +++ b/src/com/haligali/PowerHangmanClient/Menus/SignInActivity.java @@ -1,267 +1,26...
true
true
public final void onCreate(final Bundle savedInstanceState) { super.onCreate(savedInstanceState); // If the player ID is not stored as an empty string, // then we are already signed in and can // skip to the main menu. playerPrefs = getSharedPreferences(pref, Context.MODE_P...
public final void onCreate(final Bundle savedInstanceState) { super.onCreate(savedInstanceState); // If the player ID is not stored as an empty string, // then we are already signed in and can // skip to the main menu. playerPrefs = getSharedPreferences(pref, Context.MODE_P...
diff --git a/cst/eu.esdihumboldt.cst.corefunctions/src/main/java/eu/esdihumboldt/cst/corefunctions/ClipByRectangleFunction.java b/cst/eu.esdihumboldt.cst.corefunctions/src/main/java/eu/esdihumboldt/cst/corefunctions/ClipByRectangleFunction.java index 7e768860c..0fb274243 100644 --- a/cst/eu.esdihumboldt.cst.corefunctio...
true
true
public Cell getParameters() { Cell parameterCell = new Cell(); Property entity1 = new Property(new About("")); // Setting of type condition for entity1 List <String> entityTypes = new ArrayList <String>(); entityTypes.add(com.vividsolutions.jts.geom.Geometry.class.getName()); entityTypes.add(org.o...
public Cell getParameters() { Cell parameterCell = new Cell(); Property entity1 = new Property(new About("")); // Setting of type condition for entity1 List <String> entityTypes = new ArrayList <String>(); entityTypes.add(com.vividsolutions.jts.geom.Geometry.class.getName()); entityTypes.add(org.o...
diff --git a/library/src/com/WazaBe/HoloEverywhere/app/Activity.java b/library/src/com/WazaBe/HoloEverywhere/app/Activity.java index 81ae13cb..b05ac2be 100644 --- a/library/src/com/WazaBe/HoloEverywhere/app/Activity.java +++ b/library/src/com/WazaBe/HoloEverywhere/app/Activity.java @@ -1,184 +1,188 @@ package com.Waza...
false
true
protected void onCreate(Bundle savedInstanceState) { Holo holo = getClass().isAnnotationPresent(Holo.class) ? getClass() .getAnnotation(Holo.class) : DEFAULT_HOLO; if (holo.addFactoryToInflater()) { getLayoutInflater().addFactory(this, 0); } if (holo.forceThemeApply()) { setForceThemeApply(true); }...
protected void onCreate(Bundle savedInstanceState) { Holo holo = getClass().isAnnotationPresent(Holo.class) ? getClass() .getAnnotation(Holo.class) : DEFAULT_HOLO; if (holo.addFactoryToInflater()) { getLayoutInflater().addFactory(this, 0); } boolean forceThemeApply = isForceThemeApply(); if (holo.forc...
diff --git a/servicemix-core/src/main/java/org/apache/servicemix/jbi/framework/ManagementSupport.java b/servicemix-core/src/main/java/org/apache/servicemix/jbi/framework/ManagementSupport.java index b7f1a28bd..25d1f5c52 100644 --- a/servicemix-core/src/main/java/org/apache/servicemix/jbi/framework/ManagementSupport.jav...
true
true
private static void appendTaskResultDetails(Element root, Message fmkMsg) { Element taskResultDetails = createChild(root, "task-result-details"); createChild(taskResultDetails, "task-id", fmkMsg.getTask()); createChild(taskResultDetails, "task-result", fmkMsg.getResult()); if (fmkMsg...
private static void appendTaskResultDetails(Element root, Message fmkMsg) { Element taskResultDetails = createChild(root, "task-result-details"); createChild(taskResultDetails, "task-id", fmkMsg.getTask()); createChild(taskResultDetails, "task-result", fmkMsg.getResult()); if (fmkMsg...
diff --git a/oak-core/src/main/java/org/apache/jackrabbit/oak/plugins/lucene/LuceneIndex.java b/oak-core/src/main/java/org/apache/jackrabbit/oak/plugins/lucene/LuceneIndex.java index 3e4596a88a..ee92a001c4 100644 --- a/oak-core/src/main/java/org/apache/jackrabbit/oak/plugins/lucene/LuceneIndex.java +++ b/oak-core/src/m...
true
true
private static Query getQuery(Filter filter, NodeState root) { List<Query> qs = new ArrayList<Query>(); try { addNodeTypeConstraints(qs, filter.getNodeType(), root); } catch (RepositoryException e) { throw new RuntimeException( "Unable to process ...
private static Query getQuery(Filter filter, NodeState root) { List<Query> qs = new ArrayList<Query>(); try { addNodeTypeConstraints(qs, filter.getNodeType(), root); } catch (RepositoryException e) { throw new RuntimeException( "Unable to process ...
diff --git a/CraftIRCListener.java b/CraftIRCListener.java index dfed628..5206858 100644 --- a/CraftIRCListener.java +++ b/CraftIRCListener.java @@ -1,179 +1,179 @@ import java.lang.Exception; import java.util.Arrays; import java.util.logging.Logger; public class CraftIRCListener extends PluginListener { protec...
true
true
public boolean onCommand(Player player, String split[]) { if (split[0].equalsIgnoreCase("/irc") && (!bot.optn_send_all_MC_chat.contains("main"))) { if (player.canUseCommand("/irc")) { if (split.length < 2) // TODO determine the proper length to use here, sometime { player.sendMessage("\247cCorrect ...
public boolean onCommand(Player player, String split[]) { if (split[0].equalsIgnoreCase("/irc") && (!bot.optn_send_all_MC_chat.contains("main"))) { if (player.canUseCommand("/irc")) { if (split.length < 2) // TODO determine the proper length to use here, sometime { player.sendMessage("\247cCorrect ...
diff --git a/core/src/main/java/org/apache/commons/vfs2/provider/AbstractFileObject.java b/core/src/main/java/org/apache/commons/vfs2/provider/AbstractFileObject.java index 8632c739..576a74d7 100644 --- a/core/src/main/java/org/apache/commons/vfs2/provider/AbstractFileObject.java +++ b/core/src/main/java/org/apache/com...
false
true
public FileObject[] getChildren() throws FileSystemException { synchronized (fs) { // VFS-210 if (!fs.hasCapability(Capability.LIST_CHILDREN)) { throw new FileNotFolderException(name); } /* VFS-210 if (!getT...
public FileObject[] getChildren() throws FileSystemException { synchronized (fs) { // VFS-210 if (!fs.hasCapability(Capability.LIST_CHILDREN)) { throw new FileNotFolderException(name); } /* VFS-210 if (!getT...
diff --git a/trunk/GeoBeagleTest/test/com/google/code/geobeagle/CacheTypeFactoryTest.java b/trunk/GeoBeagleTest/test/com/google/code/geobeagle/CacheTypeFactoryTest.java index 1f8652a0..99d3bfa3 100644 --- a/trunk/GeoBeagleTest/test/com/google/code/geobeagle/CacheTypeFactoryTest.java +++ b/trunk/GeoBeagleTest/test/com/g...
false
true
public void testCacheType() { CacheTypeFactory cacheTypeFactory = new CacheTypeFactory(); assertEquals(CacheType.NULL, cacheTypeFactory.fromTag("bad string")); assertEquals(CacheType.TRADITIONAL, cacheTypeFactory.fromTag("Traditional Cache")); assertEquals(CacheType.TRADITIONAL, cach...
public void testCacheType() { CacheTypeFactory cacheTypeFactory = new CacheTypeFactory(); assertEquals(CacheType.NULL, cacheTypeFactory.fromTag("bad string")); assertEquals(CacheType.TRADITIONAL, cacheTypeFactory.fromTag("Traditional Cache")); assertEquals(CacheType.TRADITIONAL, cach...
diff --git a/src/net/java/sip/communicator/impl/gui/main/chatroomslist/ChatRoomsList.java b/src/net/java/sip/communicator/impl/gui/main/chatroomslist/ChatRoomsList.java index 5e8e879cd..c7f3540f4 100644 --- a/src/net/java/sip/communicator/impl/gui/main/chatroomslist/ChatRoomsList.java +++ b/src/net/java/sip/communicato...
false
true
public void synchronizeOpSetWithLocalContactList( ProtocolProviderService protocolProvider, final OperationSetMultiUserChat opSet) { MultiUserChatServerWrapper serverWrapper = findServerWrapperFromProvider(protocolProvider); serverWrapper.setSystemRoom(opSet.getSyste...
public void synchronizeOpSetWithLocalContactList( ProtocolProviderService protocolProvider, final OperationSetMultiUserChat opSet) { MultiUserChatServerWrapper serverWrapper = findServerWrapperFromProvider(protocolProvider); if (opSet.getSystemRoom() != null) ...
diff --git a/hot-deploy/opentaps-tests/src/org/opentaps/tests/analytics/tests/TestObjectGenerator.java b/hot-deploy/opentaps-tests/src/org/opentaps/tests/analytics/tests/TestObjectGenerator.java index 3802919b0..1d605a252 100644 --- a/hot-deploy/opentaps-tests/src/org/opentaps/tests/analytics/tests/TestObjectGenerator....
true
true
public List<String> getProduct(int count, List<String> inCategories, Timestamp fromDate) { List<String> productIds = FastList.newInstance(); try { for (int i = 0; i < count; i++) { Map<String, Object> context = FastMap.newInstance(); context.put("userLo...
public List<String> getProduct(int count, List<String> inCategories, Timestamp fromDate) { List<String> productIds = FastList.newInstance(); try { for (int i = 0; i < count; i++) { Map<String, Object> context = FastMap.newInstance(); context.put("userLo...
diff --git a/src/xmpp/PresenceDispatcher.java b/src/xmpp/PresenceDispatcher.java index 06513074..4e4de6d7 100644 --- a/src/xmpp/PresenceDispatcher.java +++ b/src/xmpp/PresenceDispatcher.java @@ -1,247 +1,247 @@ /* * To change this template, choose Tools | Templates * and open the template in the editor. */ pack...
true
true
public int blockArrived(JabberDataBlock data) { if (data instanceof Presence) { // If we've received a presence //System.out.println("presence"); if (roster.myStatus == Presence.PRESENCE_OFFLINE) { return JabberBlockListener.BLOCK_REJECTED; ...
public int blockArrived(JabberDataBlock data) { if (data instanceof Presence) { // If we've received a presence //System.out.println("presence"); if (roster.myStatus == Presence.PRESENCE_OFFLINE) { return JabberBlockListener.BLOCK_REJECTED; ...
diff --git a/test/persistence/org/codehaus/groovy/grails/orm/hibernate/AbstractGrailsHibernateTests.java b/test/persistence/org/codehaus/groovy/grails/orm/hibernate/AbstractGrailsHibernateTests.java index 1d67baad3..74f71dbfe 100644 --- a/test/persistence/org/codehaus/groovy/grails/orm/hibernate/AbstractGrailsHibernate...
true
true
protected final void setUp() throws Exception { super.setUp(); Log4jConfigurer.initLogging("file:./test/persistence/log4j.properties"); ExpandoMetaClass.enableGlobally(); PluginManagerHolder.setPluginManager(null); onSetUp(); ConfigObject config = new ConfigSlurpe...
protected final void setUp() throws Exception { super.setUp(); Log4jConfigurer.initLogging("file:./test/persistence/log4j.properties"); ExpandoMetaClass.enableGlobally(); PluginManagerHolder.setPluginManager(null); onSetUp(); ConfigObject config = new ConfigSlurpe...
diff --git a/CubicTestSeleniumExporter/src/main/java/org/cubictest/exporters/selenium/runner/util/SeleniumStarter.java b/CubicTestSeleniumExporter/src/main/java/org/cubictest/exporters/selenium/runner/util/SeleniumStarter.java index 1cbcab01..f7b88742 100644 --- a/CubicTestSeleniumExporter/src/main/java/org/cubictest/e...
true
true
public SeleniumHolder doStart() { if (selenium == null && (host == null || "localhost".equals(host) || "127.0.0.1".equals(host))) { server = new SeleniumProxyServer(browser.isProxyInjectionMode(), port, seleniumMultiWindow); server.start(); while (!server.isStarted()) { //wait for server thread to start...
public SeleniumHolder doStart() { if (selenium == null && (host == null || "localhost".equals(host) || "127.0.0.1".equals(host))) { server = new SeleniumProxyServer(browser.isProxyInjectionMode(), port, seleniumMultiWindow); server.start(); while (!server.isStarted()) { //wait for server thread to start...
diff --git a/org.epic.perleditor-test/src/org/epic/core/util/TestCommandLineTokenizer.java b/org.epic.perleditor-test/src/org/epic/core/util/TestCommandLineTokenizer.java index 8b8ec309..f9d52f52 100644 --- a/org.epic.perleditor-test/src/org/epic/core/util/TestCommandLineTokenizer.java +++ b/org.epic.perleditor-test/sr...
true
true
public void testAll() throws Exception { _test("first second third", "first,second,third"); _test("/usr/bin/perl", "/usr/bin/perl"); _test("c:\\perl\\bin\\perl.exe", "c:\\perl\\bin\\perl.exe"); _test("c:\\perl\\bin\\perl.exe blah", "c:\\perl\\bin\\perl.exe,blah"); _test( ...
public void testAll() throws Exception { _test("first second third", "first,second,third"); _test("/usr/bin/perl", "/usr/bin/perl"); _test("c:\\perl\\bin\\perl.exe", "c:\\perl\\bin\\perl.exe"); _test("c:\\perl\\bin\\perl.exe blah", "c:\\perl\\bin\\perl.exe,blah"); _test( ...
diff --git a/client/src/main/java/com/jaspersoft/android/sdk/client/oxm/control/validation/ValidationRule.java b/client/src/main/java/com/jaspersoft/android/sdk/client/oxm/control/validation/ValidationRule.java index 368ce28b..598a80a3 100644 --- a/client/src/main/java/com/jaspersoft/android/sdk/client/oxm/control/vali...
true
true
public ValidationRule createFromParcel(Parcel source) { try { String className = source.readString(); Class<?> clazz = Class.forName(className); Constructor<?> constructor = clazz.getConstructor(Parcel.class); return (ValidationRule) co...
public ValidationRule createFromParcel(Parcel source) { try { String className = source.readString(); Class<?> clazz = Class.forName(className); Constructor<?> constructor = clazz.getConstructor(Parcel.class); return (ValidationRule) co...
diff --git a/modules/activiti-engine/src/main/java/org/activiti/engine/impl/bpmn/deployer/BpmnDeployer.java b/modules/activiti-engine/src/main/java/org/activiti/engine/impl/bpmn/deployer/BpmnDeployer.java index 5bb834cdd..139013f59 100644 --- a/modules/activiti-engine/src/main/java/org/activiti/engine/impl/bpmn/deploye...
true
true
public void deploy(DeploymentEntity deployment) { LOG.debug("Processing deployment {}", deployment.getName()); List<ProcessDefinitionEntity> processDefinitions = new ArrayList<ProcessDefinitionEntity>(); Map<String, ResourceEntity> resources = deployment.getResources(); for (String resourceName ...
public void deploy(DeploymentEntity deployment) { LOG.debug("Processing deployment {}", deployment.getName()); List<ProcessDefinitionEntity> processDefinitions = new ArrayList<ProcessDefinitionEntity>(); Map<String, ResourceEntity> resources = deployment.getResources(); for (String resourceName ...
diff --git a/amibe/src/org/jcae/mesh/xmldata/MeshToMMesh3DConvert.java b/amibe/src/org/jcae/mesh/xmldata/MeshToMMesh3DConvert.java index 2e845617..2823f597 100644 --- a/amibe/src/org/jcae/mesh/xmldata/MeshToMMesh3DConvert.java +++ b/amibe/src/org/jcae/mesh/xmldata/MeshToMMesh3DConvert.java @@ -1,400 +1,400 @@ /* jCAE ...
true
true
public void convert(int groupId, CADFace F) { Document documentIn; File xmlFile2d = null; try { xmlFile2d = new File(xmlDir, JCAEXMLData.xml2dFilename+groupId); documentIn = XMLHelper.parseXML(xmlFile2d); } catch(FileNotFoundException ex) { return; } catch(Exception ex) { ex.printStack...
public void convert(int groupId, CADFace F) { Document documentIn; File xmlFile2d = null; try { xmlFile2d = new File(xmlDir, JCAEXMLData.xml2dFilename+groupId); documentIn = XMLHelper.parseXML(xmlFile2d); } catch(FileNotFoundException ex) { return; } catch(Exception ex) { ex.printStack...
diff --git a/main/src/com/metaweb/gridworks/commands/project/ImportProjectCommand.java b/main/src/com/metaweb/gridworks/commands/project/ImportProjectCommand.java index bfcdc0bc..e52a9165 100644 --- a/main/src/com/metaweb/gridworks/commands/project/ImportProjectCommand.java +++ b/main/src/com/metaweb/gridworks/commands...
true
true
public void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { ProjectManager.singleton.setBusy(true); try { Properties options = ParsingUtilities.parseUrlParameters(request); long projectID = Project.generate...
public void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { ProjectManager.singleton.setBusy(true); try { Properties options = ParsingUtilities.parseUrlParameters(request); long projectID = Project.generate...
diff --git a/jsword/java/jsword/org/crosswire/jsword/book/basic/BasicBookMetaData.java b/jsword/java/jsword/org/crosswire/jsword/book/basic/BasicBookMetaData.java index 44d45bb7..88d8cb5c 100644 --- a/jsword/java/jsword/org/crosswire/jsword/book/basic/BasicBookMetaData.java +++ b/jsword/java/jsword/org/crosswire/jsword...
true
true
public BasicBookMetaData(Properties prop) { name = prop.getProperty("Version"); edition = prop.getProperty("Edition"); open = Openness.get(prop.getProperty("Openness")); String licencestr = prop.getProperty("LicenceURL"); if (licencestr == null) { lic...
public BasicBookMetaData(Properties prop) { name = prop.getProperty("Version"); edition = prop.getProperty("Edition"); open = Openness.get(prop.getProperty("Openness")); String licencestr = prop.getProperty("LicenceURL"); if (licencestr == null) { lic...
diff --git a/frontend/client/src/autotest/tko/DynamicGraphingFrontend.java b/frontend/client/src/autotest/tko/DynamicGraphingFrontend.java index 2c1aa132..d2aca597 100644 --- a/frontend/client/src/autotest/tko/DynamicGraphingFrontend.java +++ b/frontend/client/src/autotest/tko/DynamicGraphingFrontend.java @@ -1,96 +1,9...
true
true
public void onClick(Widget sender) { if (sender != graphButton) { super.onClick(sender); return; } parent.updateHistory(); plot.setVisible(false); embeddingLink.setVisible(false); graphButton.setEnabled(false); JSONObj...
public void onClick(Widget sender) { if (sender != graphButton) { super.onClick(sender); return; } parent.updateHistory(); plot.setVisible(false); embeddingLink.setVisible(false); graphButton.setEnabled(false); JSONObj...
diff --git a/Word_Ladder.java b/Word_Ladder.java index 026d7ae..d13fa70 100644 --- a/Word_Ladder.java +++ b/Word_Ladder.java @@ -1,42 +1,44 @@ public class Solution { public int ladderLength(String start, String end, HashSet<String> dict) { // Start typing your Java solution below // DO NOT write main() functi...
true
true
public int ladderLength(String start, String end, HashSet<String> dict) { // Start typing your Java solution below // DO NOT write main() function class QueueNode { public String data; public int step; public QueueNode(String str, int n) { data = str; step = n; } } if (start.equals(end)) ...
public int ladderLength(String start, String end, HashSet<String> dict) { // Start typing your Java solution below // DO NOT write main() function class QueueNode { public String data; public int step; public QueueNode(String str, int n) { data = str; step = n; } } if (start.equals(end)) ...
diff --git a/sonar-core/src/test/java/org/sonar/core/qualitygate/db/ProjectQgateAssociationQueryTest.java b/sonar-core/src/test/java/org/sonar/core/qualitygate/db/ProjectQgateAssociationQueryTest.java index 982795cea7..3b05d53f97 100644 --- a/sonar-core/src/test/java/org/sonar/core/qualitygate/db/ProjectQgateAssociatio...
true
true
public void fail_on_invalid_membership() throws Exception { ProjectQgateAssociationQuery.Builder builder = ProjectQgateAssociationQuery.builder(); builder.gateId("nelson"); builder.membership("unknwown"); try { builder.build(); fail(); } catch (Exception e) { assertThat(e).isIns...
public void fail_on_invalid_membership() throws Exception { ProjectQgateAssociationQuery.Builder builder = ProjectQgateAssociationQuery.builder(); builder.gateId("nelson"); builder.membership("unknwown"); try { builder.build(); fail(); } catch (Exception e) { assertThat(e).isIns...
diff --git a/de.peeeq.wurstscript/src/de/peeeq/wurstscript/translation/imtranslation/EliminateTuples.java b/de.peeeq.wurstscript/src/de/peeeq/wurstscript/translation/imtranslation/EliminateTuples.java index b3ebc9b9..987df0bf 100644 --- a/de.peeeq.wurstscript/src/de/peeeq/wurstscript/translation/imtranslation/Eliminate...
true
true
public static ImExpr eliminateTuplesExpr(ImTupleSelection e, ImTranslator translator, ImFunction f) { IntRange range; System.out.println("tuple selection = " + e); if (e.getTupleExpr() instanceof ImVarAccess) { ImVarAccess varAccess = (ImVarAccess) e.getTupleExpr(); if (varAccess.attrTyp() instanceof Im...
public static ImExpr eliminateTuplesExpr(ImTupleSelection e, ImTranslator translator, ImFunction f) { IntRange range; System.out.println("tuple selection = " + e); if (e.getTupleExpr() instanceof ImVarAccess) { ImVarAccess varAccess = (ImVarAccess) e.getTupleExpr(); if (varAccess.attrTyp() instanceof Im...
diff --git a/src/synthseq/playables/readables/waveforms/TriangleWave.java b/src/synthseq/playables/readables/waveforms/TriangleWave.java index 5874506..43202cd 100644 --- a/src/synthseq/playables/readables/waveforms/TriangleWave.java +++ b/src/synthseq/playables/readables/waveforms/TriangleWave.java @@ -1,46 +1,46 @@ ...
true
true
public double read() { if (!running) return 0; time++; double val = freq.read()*2; if(time>=44100/val){ time-=44100/val; direction*=-1; } return (direction-direction*2*time/(44100/freq.read()))*2-1; }
public double read() { if (!running) return 0; time++; double val = freq.read()*2; if(time>=44100/val){ time-=44100/val; direction*=-1; } return (direction-direction*4*time/(44100/freq.read()))-0.5; }
diff --git a/src/org/plovr/docgen/DescriptorPass.java b/src/org/plovr/docgen/DescriptorPass.java index a82b2ca6b..e7f593e32 100644 --- a/src/org/plovr/docgen/DescriptorPass.java +++ b/src/org/plovr/docgen/DescriptorPass.java @@ -1,387 +1,387 @@ package org.plovr.docgen; import java.io.File; import java.io.IOExcept...
false
true
private void processAssign(Node n) { Node left = n.getFirstChild(); String name = left.getQualifiedName(); if (name == null) { return; } if (provides.contains(name)) { // Determine whether this is a constructor, interface, enum, or special // library, such as g...
private void processAssign(Node n) { Node left = n.getFirstChild(); String name = left.getQualifiedName(); if (name == null) { return; } if (provides.contains(name)) { // Determine whether this is a constructor, interface, enum, or special // library, such as g...
diff --git a/org.jcryptool.games.numbershark/src/org/jcryptool/games/numbershark/views/NumberSharkView.java b/org.jcryptool.games.numbershark/src/org/jcryptool/games/numbershark/views/NumberSharkView.java index 238d3ca..832f969 100644 --- a/org.jcryptool.games.numbershark/src/org/jcryptool/games/numbershark/views/Numbe...
true
true
public void createPartControl(final Composite parent) { this.parent = parent; Composite playingField = new Composite(parent, SWT.NONE); playingField.setLayout(new GridLayout(1, false)); playingField.setLayoutData(new GridData(GridData.FILL, GridData.FILL, true, true)); numb...
public void createPartControl(final Composite parent) { this.parent = parent; Composite playingField = new Composite(parent, SWT.NONE); playingField.setLayout(new GridLayout(1, false)); playingField.setLayoutData(new GridData(GridData.FILL, GridData.FILL, true, true)); numb...
diff --git a/src/com/android/settings/inputmethod/InputMethodAndLanguageSettings.java b/src/com/android/settings/inputmethod/InputMethodAndLanguageSettings.java index 81c20a97f..b8ba59861 100644 --- a/src/com/android/settings/inputmethod/InputMethodAndLanguageSettings.java +++ b/src/com/android/settings/inputmethod/Inp...
true
true
public void onCreate(Bundle icicle) { super.onCreate(icicle); addPreferencesFromResource(R.xml.language_settings); try { mDefaultInputMethodSelectorVisibility = Integer.valueOf( getString(R.string.input_method_selector_visibility_default_value)); } c...
public void onCreate(Bundle icicle) { super.onCreate(icicle); addPreferencesFromResource(R.xml.language_settings); try { mDefaultInputMethodSelectorVisibility = Integer.valueOf( getString(R.string.input_method_selector_visibility_default_value)); } c...
diff --git a/scm-core/src/main/java/sonia/scm/util/RegistryUtil.java b/scm-core/src/main/java/sonia/scm/util/RegistryUtil.java index 12a6cfcca..667d120f2 100644 --- a/scm-core/src/main/java/sonia/scm/util/RegistryUtil.java +++ b/scm-core/src/main/java/sonia/scm/util/RegistryUtil.java @@ -1,156 +1,156 @@ /** * Copyri...
true
true
public static String getRegistryValue(String key, String subKey, String defaultValue) { String value = defaultValue; SimpleCommand command = null; if (subKey != null) { command = new SimpleCommand("reg", "query", key, "/v", subKey); } else { command = new SimpleCom...
public static String getRegistryValue(String key, String subKey, String defaultValue) { String value = defaultValue; SimpleCommand command = null; if (subKey != null) { command = new SimpleCommand("reg", "query", key, "/v", subKey); } else { command = new SimpleCom...
diff --git a/src/main/java/demo/client/local/BoardController.java b/src/main/java/demo/client/local/BoardController.java index b528a31..8ecdf18 100644 --- a/src/main/java/demo/client/local/BoardController.java +++ b/src/main/java/demo/client/local/BoardController.java @@ -1,272 +1,273 @@ package demo.client.local; ...
false
true
public void update() { boolean moved = false; // Check for rows to clear. Rows will stay in model until fully dealt with. int numFullRows = model.numFullRows(); if (numFullRows > 0) { if (clearState.getCounter() == 0) switch(clearState) { case START: // Get blocks to be cleared. toBeClea...
public void update() { boolean moved = false; // Check for rows to clear. Rows will stay in model until fully dealt with. int numFullRows = model.numFullRows(); if (numFullRows > 0) { if (clearState.getCounter() == 0) switch(clearState) { case START: // Get blocks to be cleared. toBeClea...