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/nexus/nexus-test-harness/nexus-test-harness-launcher/src/test/java/org/sonatype/nexus/integrationtests/nexus1022/Nexus1022RebuildRepositoryMavenMetadataTaskTest.java b/nexus/nexus-test-harness/nexus-test-harness-launcher/src/test/java/org/sonatype/nexus/integrationtests/nexus1022/Nexus1022RebuildRepository...
true
true
public void rebuildMavenMetadata() throws Exception { String releaseRepoPath = "runtime/work/storage/nexus-test-harness-repo/"; ScheduledServicePropertyResource repo = new ScheduledServicePropertyResource(); repo.setId( "repositoryOrGroupId" ); repo.setValue( "repo_" +...
public void rebuildMavenMetadata() throws Exception { if(true) { printKnownErrorButDoNotFail( getClass(), "rebuildMavenMetadata" ); return; } String releaseRepoPath = "runtime/work/storage/nexus-test-harness-repo/"; ScheduledServicePropertyResourc...
diff --git a/src/anchovy/io/Parser.java b/src/anchovy/io/Parser.java index a3a8b94..759aa8a 100644 --- a/src/anchovy/io/Parser.java +++ b/src/anchovy/io/Parser.java @@ -1,232 +1,237 @@ package anchovy.io; import java.io.FileNotFoundException; import java.util.StringTokenizer; import anchovy.GameEngine; import ...
false
true
public String parseCommand(String componentName, String command) { String result = new String(); //Check for for engine commands first if (componentName.contains("save as")) { return engine.saveGameState(engine.getAllComponentInfo(), command); } else if (componentName.equals("save")) { return engine.sa...
public String parseCommand(String componentName, String command) { String result = new String(); //Check for for engine commands first if (componentName.contains("save as")) { return engine.saveGameState(engine.getAllComponentInfo(), command); } else if (componentName.equals("save")) { return engine.sa...
diff --git a/jason/asSemantics/TransitionSystem.java b/jason/asSemantics/TransitionSystem.java index 7a714db..97305b6 100644 --- a/jason/asSemantics/TransitionSystem.java +++ b/jason/asSemantics/TransitionSystem.java @@ -1,889 +1,899 @@ // ---------------------------------------------------------------------------- /...
false
true
private void applyExecInt() throws JasonException { confP.step = State.ClrInt; // default next step if (conf.C.SI.isFinished()) { return; } // get next formula in the body of the intended means // on the top of the selected intention Int...
private void applyExecInt() throws JasonException { confP.step = State.ClrInt; // default next step if (conf.C.SI.isFinished()) { return; } // get next formula in the body of the intended means // on the top of the selected intention Int...
diff --git a/surefire-integration-tests/src/test/java/org/apache/maven/surefire/its/AbstractSurefireIntegrationTestClass.java b/surefire-integration-tests/src/test/java/org/apache/maven/surefire/its/AbstractSurefireIntegrationTestClass.java index 612084d8..f25daa68 100644 --- a/surefire-integration-tests/src/test/java/...
true
true
protected void executeGoal( Verifier verifier, String goal ) throws VerificationException { ArrayList goals = this.getInitialGoals(); goals.add( goal ); if ( !verifier.getCliOptions().contains( "-s" ) ) { verifier.getCliOptions().add( "-s" ); verif...
protected void executeGoal( Verifier verifier, String goal ) throws VerificationException { ArrayList goals = this.getInitialGoals(); goals.add( goal ); if ( !verifier.getCliOptions().contains( "-s" ) ) { verifier.getCliOptions().add( "-s" ); verif...
diff --git a/DefectTracker/src/edu/wpi/cs/wpisuitetng/modules/defecttracker/create/DefectPanel.java b/DefectTracker/src/edu/wpi/cs/wpisuitetng/modules/defecttracker/create/DefectPanel.java index 38b147e5..0370dbd2 100644 --- a/DefectTracker/src/edu/wpi/cs/wpisuitetng/modules/defecttracker/create/DefectPanel.java +++ b/...
true
true
protected void addComponents(SpringLayout layout) { txtTitle = new JTextField(50); txtDescription = new JTextArea(); txtDescription.setLineWrap(true); txtDescription.setBorder(txtTitle.getBorder()); txtCreator = new JTextField(20); txtAssignee = new JTextField(20); tagPanel = new TagPanel(model); JL...
protected void addComponents(SpringLayout layout) { txtTitle = new JTextField(50); txtDescription = new JTextArea(); txtDescription.setLineWrap(true); txtDescription.setBorder(txtTitle.getBorder()); txtCreator = new JTextField(20); txtAssignee = new JTextField(20); tagPanel = new TagPanel(model); JL...
diff --git a/src/com/eteks/sweethome3d/swing/HomeFurniturePanel.java b/src/com/eteks/sweethome3d/swing/HomeFurniturePanel.java index 5fbfaefa..08d6e91f 100644 --- a/src/com/eteks/sweethome3d/swing/HomeFurniturePanel.java +++ b/src/com/eteks/sweethome3d/swing/HomeFurniturePanel.java @@ -1,540 +1,540 @@ /* * HomeFurni...
true
true
private void createComponents(UserPreferences preferences, final HomeFurnitureController controller) { // Get unit name matching current unit String unitName = preferences.getLengthUnit().getName(); // Create name label and its text field bound to NAME controller pro...
private void createComponents(UserPreferences preferences, final HomeFurnitureController controller) { // Get unit name matching current unit String unitName = preferences.getLengthUnit().getName(); // Create name label and its text field bound to NAME controller pro...
diff --git a/skyline-hotels/src/dk/wallviz/skylinehotels/Hotel.java b/skyline-hotels/src/dk/wallviz/skylinehotels/Hotel.java index 3b6018a..ba8ad85 100644 --- a/skyline-hotels/src/dk/wallviz/skylinehotels/Hotel.java +++ b/skyline-hotels/src/dk/wallviz/skylinehotels/Hotel.java @@ -1,76 +1,77 @@ package dk.wallviz.skyli...
false
true
public Hotel(String id, String name, String address1, String city, String postalCode, int propertyCategory, double hotelRating, double tripAdvisorRating, double highRate, double lat, double lon, double proximityDistance, boolean internet, boolean pool, double distFromColosseum, double distFromTreviFountain...
public Hotel(String id, String name, String address1, String city, String postalCode, int propertyCategory, double hotelRating, double tripAdvisorRating, double highRate, double lat, double lon, double proximityDistance, boolean internet, boolean pool, double distFromColosseum, double distFromTreviFountain...
diff --git a/us7638/sapisync/src/test/com/funambol/sapisync/MockSapiSyncHandler.java b/us7638/sapisync/src/test/com/funambol/sapisync/MockSapiSyncHandler.java index 8b770240..e580caa3 100755 --- a/us7638/sapisync/src/test/com/funambol/sapisync/MockSapiSyncHandler.java +++ b/us7638/sapisync/src/test/com/funambol/sapisyn...
false
true
public JSONArray getItems(String remoteUri, String dataTag, JSONArray ids, String limit, String offset, Date from) throws JSONException { // Save this information to be checked later if (from != null) { dateLimitRequests.addElement(from); } if (limit != null)...
public FullSet getItems(String remoteUri, String dataTag, JSONArray ids, String limit, String offset, Date from) throws JSONException { // Save this information to be checked later if (from != null) { dateLimitRequests.addElement(from); } if (limit != null) {...
diff --git a/graylog2-server/src/main/java/org/graylog2/metrics/jetty2/TimedMetricsFilter.java b/graylog2-server/src/main/java/org/graylog2/metrics/jetty2/TimedMetricsFilter.java index d6eeccf99..bf867204d 100644 --- a/graylog2-server/src/main/java/org/graylog2/metrics/jetty2/TimedMetricsFilter.java +++ b/graylog2-serv...
true
true
public void filter(ContainerRequestContext requestContext, ContainerResponseContext responseContext) throws IOException { final Timer.Context context = (Timer.Context) requestContext.getProperty("metricsTimerContext"); final long elapsedNanos = context.stop(); responseContext.getHeaders().ad...
public void filter(ContainerRequestContext requestContext, ContainerResponseContext responseContext) throws IOException { final Timer.Context context = (Timer.Context) requestContext.getProperty("metricsTimerContext"); if (context == null) return; final long elapsedNanos = context.stop(); ...
diff --git a/bundles/org.eclipse.e4.core.services/src/org/eclipse/e4/core/services/internal/context/ContextToObjectLink.java b/bundles/org.eclipse.e4.core.services/src/org/eclipse/e4/core/services/internal/context/ContextToObjectLink.java index 8f02fc6a0..9ed5f7ac8 100644 --- a/bundles/org.eclipse.e4.core.services/src/...
false
true
public boolean notify(final IEclipseContext notifyContext, final String name, final int eventType, final Object[] args) { if (eventType == IRunAndTrack.DISPOSE) { for (Iterator it = userObjects.iterator(); it.hasNext();) { WeakReference ref = (WeakReference) it.next(); Object referent = ref.get(); ...
public boolean notify(final IEclipseContext notifyContext, final String name, final int eventType, final Object[] args) { if (eventType == IRunAndTrack.DISPOSE) { for (Iterator it = userObjects.iterator(); it.hasNext();) { WeakReference ref = (WeakReference) it.next(); Object referent = ref.get(); ...
diff --git a/src/java/gr/agroknow/metadata/agrif/Agrif.java b/src/java/gr/agroknow/metadata/agrif/Agrif.java index 6b21e2c..bfa18d7 100644 --- a/src/java/gr/agroknow/metadata/agrif/Agrif.java +++ b/src/java/gr/agroknow/metadata/agrif/Agrif.java @@ -1,148 +1,148 @@ package gr.agroknow.metadata.agrif ; import org.jso...
true
true
private void assemble() { if ( !creators.isEmpty() ) { agrif.put( "creator" , creators ) ; } if ( !rights.isEmpty() ) { agrif.put( "rights", rights ) ; } if ( !relations.isEmpty() ) { agrif.put( "relation", relations ) ; } if ( !expressions.isEmpty() ) { agrif.put( "expression", expr...
private void assemble() { if ( !creators.isEmpty() ) { agrif.put( "creator" , creators ) ; } if ( !rights.isEmpty() ) { agrif.put( "rights", rights ) ; } if ( !relations.isEmpty() ) { agrif.put( "relation", relations ) ; } if ( !expressions.isEmpty() ) { agrif.put( "expressions", exp...
diff --git a/api/src/main/java/org/openmrs/module/spreadsheetimport/DatabaseBackend.java b/api/src/main/java/org/openmrs/module/spreadsheetimport/DatabaseBackend.java index 9b7f59e..d70143a 100644 --- a/api/src/main/java/org/openmrs/module/spreadsheetimport/DatabaseBackend.java +++ b/api/src/main/java/org/openmrs/modul...
true
true
public static String importData(Map<UniqueImport, Set<SpreadsheetImportTemplateColumn>> rowData, boolean rollbackTransaction) throws Exception { Connection conn = null; Statement s = null; Exception exception = null; String sql = null; String encounterId = null; try { ...
public static String importData(Map<UniqueImport, Set<SpreadsheetImportTemplateColumn>> rowData, boolean rollbackTransaction) throws Exception { Connection conn = null; Statement s = null; Exception exception = null; String sql = null; String encounterId = null; try { ...
diff --git a/Extractor_psp_cz/src/main/java/cz/opendata/linked/psp_cz/metadata/ExtractorConfig.java b/Extractor_psp_cz/src/main/java/cz/opendata/linked/psp_cz/metadata/ExtractorConfig.java index 46b6e5e8..5d2e8eb5 100644 --- a/Extractor_psp_cz/src/main/java/cz/opendata/linked/psp_cz/metadata/ExtractorConfig.java +++ b/...
true
true
public boolean isValid() { return Start_year < End_year && Start_year >= 1918 && End_year <= Calendar.getInstance().get(Calendar.YEAR); }
public boolean isValid() { return Start_year <= End_year && Start_year >= 1918 && End_year <= Calendar.getInstance().get(Calendar.YEAR); }
diff --git a/ScopeDemo/src/ScopeDemo.java b/ScopeDemo/src/ScopeDemo.java index 90f0fff..fcdaefe 100644 --- a/ScopeDemo/src/ScopeDemo.java +++ b/ScopeDemo/src/ScopeDemo.java @@ -1,22 +1,22 @@ //Demonstrate block scope. class ScopeDemo { public static void main(String args[]) { int x; // know to all co...
true
true
public static void main(String args[]) { int x; // know to all code within main x = 10; if(x == 10) { // start new scope int y = 20; // know only to this block // x and y both known here. System.out.println("x and y: " + x + " " + y); x = y...
public static void main(String args[]) { int x; // know to all code within main x = 10; if(x == 10) { // start new scope int y = 20; // know only to this block // x and y both known here. System.out.println("x and y: " + x + " " + y); x = y...
diff --git a/Battleship/src/main/java/ch/bfh/bti7301/w2013/battleship/game/Board.java b/Battleship/src/main/java/ch/bfh/bti7301/w2013/battleship/game/Board.java index 30e98c6..5d43e15 100644 --- a/Battleship/src/main/java/ch/bfh/bti7301/w2013/battleship/game/Board.java +++ b/Battleship/src/main/java/ch/bfh/bti7301/w201...
true
true
public void placeMissile(Missile m) { // This operation can only be made on the opponents board if (owner == Game.getInstance().getOpponent()) { // Check if its the players turn if (Game.getInstance().getLocalPlayer().getPlayerState() == PlayerState.PLAYING) { // Check if coordinates of missile were al...
public void placeMissile(Missile m) { // This operation can only be made on the opponents board if (owner == Game.getInstance().getOpponent()) { // Check if its the players turn if (Game.getInstance().getLocalPlayer().getPlayerState() == PlayerState.PLAYING) { // Check if coordinates of missile were al...
diff --git a/extensions/entitlements/source/com/sun/identity/admin/model/TransferLimitCondition.java b/extensions/entitlements/source/com/sun/identity/admin/model/TransferLimitCondition.java index 69079d357..58a1f279a 100644 --- a/extensions/entitlements/source/com/sun/identity/admin/model/TransferLimitCondition.java +...
true
true
public EntitlementCondition getEntitlementCondition() { BankTransferLimitCondition btlc = new BankTransferLimitCondition(); btlc.setTransferLimit(limit); switch (limitType) { case LOWER: btlc.setLimitType(btlc.MIN_TRANSFER_LIMIT); break; ...
public EntitlementCondition getEntitlementCondition() { BankTransferLimitCondition btlc = new BankTransferLimitCondition(); btlc.setTransferLimit(limit); switch (limitType) { case LOWER: btlc.setLimitType(btlc.MIN_TRANSFER_LIMIT); break; ...
diff --git a/src/team/win/WhiteBoardView.java b/src/team/win/WhiteBoardView.java index 7cee920..105003b 100644 --- a/src/team/win/WhiteBoardView.java +++ b/src/team/win/WhiteBoardView.java @@ -1,217 +1,220 @@ package team.win; import java.util.LinkedList; import java.util.List; import java.util.Timer; import jav...
false
true
protected void onDraw(Canvas c) { Paint temp = new Paint(); temp.setColor(Color.WHITE); temp.setStyle(Paint.Style.FILL); c.drawRect(0, 0, mWidth, mHeight, temp); for (Primitive p : mDataStore.mPrimitiveList) { Point screenPoint = worldToScreen(p.mPoints.get(0)); mPaint.setColor(p.mColor | 0xFF000000);...
protected void onDraw(Canvas c) { Paint temp = new Paint(); temp.setColor(Color.WHITE); temp.setStyle(Paint.Style.FILL); c.drawRect(0, 0, mWidth, mHeight, temp); // Keep this algorithm synchronized with HTML5 canvas paint function for (Primitive p : mDataStore.mPrimitiveList) { Point firstScreenPoint =...
diff --git a/src/lucandra/IndexReader.java b/src/lucandra/IndexReader.java index a3db8ec..6b74ecb 100644 --- a/src/lucandra/IndexReader.java +++ b/src/lucandra/IndexReader.java @@ -1,601 +1,601 @@ /** * Copyright T Jake Luciani * * Licensed to the Apache Software Foundation (ASF) under one * or more contribut...
false
true
public Document document(int docNum, FieldSelector selector) throws CorruptIndexException, IOException { Map<Integer, Document> documentCache = getCache().documents; Document doc = documentCache.get(docNum); if (doc != null) { if (logger.isDebugEnabled()) ...
public Document document(int docNum, FieldSelector selector) throws CorruptIndexException, IOException { Map<Integer, Document> documentCache = getCache().documents; Document doc = documentCache.get(docNum); if (doc != null) { if (logger.isDebugEnabled()) ...
diff --git a/gmlhandler/src/main/java/eu/esdihumboldt/gmlhandler/GmlHandler.java b/gmlhandler/src/main/java/eu/esdihumboldt/gmlhandler/GmlHandler.java index 3f9ba4180..9d5e2779f 100644 --- a/gmlhandler/src/main/java/eu/esdihumboldt/gmlhandler/GmlHandler.java +++ b/gmlhandler/src/main/java/eu/esdihumboldt/gmlhandler/Gml...
false
true
public void writeFC(FeatureCollection fc, String defaultNamespace, Map<String, String> prefixes) throws FileNotFoundException, XMLStreamException, UnknownCRSException, TransformationException { LOG.info("Exporting the gml-instance to the location " //$NON-NLS-1$ + this.targetGmlUrl); XMLOutputFactory...
public void writeFC(FeatureCollection fc, String defaultNamespace, Map<String, String> prefixes) throws FileNotFoundException, XMLStreamException, UnknownCRSException, TransformationException { LOG.info("Exporting the gml-instance to the location " //$NON-NLS-1$ + this.targetGmlUrl); XMLOutputFactory...
diff --git a/libraries/javalib/java/util/Properties.java b/libraries/javalib/java/util/Properties.java index 59d890bb2..0a3a72b0a 100644 --- a/libraries/javalib/java/util/Properties.java +++ b/libraries/javalib/java/util/Properties.java @@ -1,346 +1,346 @@ /* * Java core library component. * * Copyright (c) 19...
true
true
private boolean readKeyAndValue(PushbackInputStream in) throws IOException { int ch; while (true) { // Eat initial white space while ((ch = in.read()) != -1 && ch <= ' '); // Skip comments switch (ch) { case '#': case '!': while ((ch = in.read()) != '\n'); continue; case -1: return fals...
private boolean readKeyAndValue(PushbackInputStream in) throws IOException { int ch; while (true) { // Eat initial white space while ((ch = in.read()) != -1 && ch <= ' '); // Skip comments switch (ch) { case '#': case '!': while ((ch = in.read()) != -1 && ch != '\n'); continue; case -1: ...
diff --git a/src/edu/worcester/cs499summer2012/activity/MainActivity.java b/src/edu/worcester/cs499summer2012/activity/MainActivity.java index 26ef712..70699d4 100644 --- a/src/edu/worcester/cs499summer2012/activity/MainActivity.java +++ b/src/edu/worcester/cs499summer2012/activity/MainActivity.java @@ -1,324 +1,324 @@...
true
true
public boolean onOptionsItemSelected(MenuItem item) { switch (item.getItemId()) { case R.id.menu_main_add_task: startActivityForResult(new Intent(this, AddTaskActivity.class), ADD_TASK_REQUEST); return true; case R.id.menu_main_sort: SubMenu sort_menu = item.getSu...
public boolean onOptionsItemSelected(MenuItem item) { switch (item.getItemId()) { case R.id.menu_main_add_task: startActivityForResult(new Intent(this, AddTaskActivity.class), ADD_TASK_REQUEST); return true; case R.id.menu_main_sort: SubMenu sort_menu = item.getSu...
diff --git a/src/net/sf/freecol/server/ai/AIMain.java b/src/net/sf/freecol/server/ai/AIMain.java index d91bfa2aa..d2d0bd5a8 100644 --- a/src/net/sf/freecol/server/ai/AIMain.java +++ b/src/net/sf/freecol/server/ai/AIMain.java @@ -1,534 +1,535 @@ /** * Copyright (C) 2002-2011 The FreeCol Team * * This file is p...
false
true
protected void readFromXMLImpl(XMLStreamReader in) throws XMLStreamException { aiObjects.clear(); if (!in.getLocalName().equals(getXMLElementTagName())) { logger.warning("Expected element name, got: " + in.getLocalName()); } final String nextIDStr = in.ge...
protected void readFromXMLImpl(XMLStreamReader in) throws XMLStreamException { aiObjects.clear(); if (!in.getLocalName().equals(getXMLElementTagName())) { logger.warning("Expected element name, got: " + in.getLocalName()); } final String nextIDStr = in.ge...
diff --git a/flexodesktop/GUI/flexointerfacebuilder/src/main/java/org/openflexo/fib/view/widget/FIBTableWidget.java b/flexodesktop/GUI/flexointerfacebuilder/src/main/java/org/openflexo/fib/view/widget/FIBTableWidget.java index 6776c24e7..e4d656293 100644 --- a/flexodesktop/GUI/flexointerfacebuilder/src/main/java/org/op...
true
true
private void buildTable() { getTableModel().addTableModelListener(this); _table = new JXTable(getTableModel()) { @Override protected void resetDefaultTableCellRendererColors(Component renderer, int row, int column) { } }; _table.setSortOrderCycle(SortOrder.ASCENDING, SortOrder.DESCENDING, SortOrder...
private void buildTable() { getTableModel().addTableModelListener(this); _table = new JXTable(getTableModel()) { @Override protected void resetDefaultTableCellRendererColors(Component renderer, int row, int column) { } }; _table.setVisibleRowCount(0); _table.setSortOrderCycle(SortOrder.ASCENDING,...
diff --git a/src/org/csdgn/fxm/Config.java b/src/org/csdgn/fxm/Config.java index ecffdf6..dc7054f 100644 --- a/src/org/csdgn/fxm/Config.java +++ b/src/org/csdgn/fxm/Config.java @@ -1,72 +1,72 @@ /** * Copyright (c) 2011-2013 Robert Maupin * * This software is provided 'as-is', without any express or implied *...
true
true
public static void loadConfiguration() { Properties properties = new Properties(); try { properties.load(new FileReader("config.properties")); } catch(Exception e) { System.out.println("Warning: Failed to load configuration file, using defaults."); } FOLDER_DATABASE = properties.getProperty("folder...
public static void loadConfiguration() { Properties properties = new Properties(); try { properties.load(new FileReader("config.properties")); } catch(Exception e) { System.out.println("Warning: Failed to load configuration file, using defaults."); } FOLDER_DATABASE = properties.getProperty("folder...
diff --git a/src/atoken/tworealities/eu/New_token.java b/src/atoken/tworealities/eu/New_token.java index c8d9e10..32dec7d 100644 --- a/src/atoken/tworealities/eu/New_token.java +++ b/src/atoken/tworealities/eu/New_token.java @@ -1,128 +1,128 @@ package atoken.tworealities.eu; import android.app.Activity; import an...
true
true
public void onClick(View v) { String name = ((EditText) findViewById(R.id.token_name)).getText().toString(); String serial = ((EditText) findViewById(R.id.token_serial)).getText().toString(); String seed = ((EditText) findViewById(R.id.token_seed)).getText().toString(); //checks if(name.length()==0...
public void onClick(View v) { String name = ((EditText) findViewById(R.id.token_name)).getText().toString(); String serial = ((EditText) findViewById(R.id.token_serial)).getText().toString(); String seed = ((EditText) findViewById(R.id.token_seed)).getText().toString(); //checks if(name.length()==0...
diff --git a/databus-audit/src/main/java/com/inmobi/databus/audit/AuditStats.java b/databus-audit/src/main/java/com/inmobi/databus/audit/AuditStats.java index 8e01724b..a2f8b671 100644 --- a/databus-audit/src/main/java/com/inmobi/databus/audit/AuditStats.java +++ b/databus-audit/src/main/java/com/inmobi/databus/audit/A...
true
true
private void loadConfigFiles(String databusConfFolder) { File folder = new File(databusConfFolder); File[] xmlFiles = folder.listFiles(new FileFilter() { @Override public boolean accept(File file) { if (file.getName().toLowerCase().endsWith(".xml")) { return true; } ...
private void loadConfigFiles(String databusConfFolder) { File folder = new File(databusConfFolder); File[] xmlFiles = folder.listFiles(new FileFilter() { @Override public boolean accept(File file) { if (file.getName().toLowerCase().endsWith(".xml")) { return true; } ...
diff --git a/client/TestPingers.java b/client/TestPingers.java index f18c646..5cdec73 100644 --- a/client/TestPingers.java +++ b/client/TestPingers.java @@ -1,76 +1,76 @@ import java.io.*; import java.net.*; /** This class is disposable code to examplify how to use the various pingers and the expected forma...
true
true
public static void main(String args[]) throws InterruptedException { if (args.length != 1) { System.err.println("Usage: java TestPinger hostname"); System.exit(2); } // FIXME: get from applet's cookie ClientInfo this_client = new ClientInfo(ClientInfo...
public static void main(String args[]) throws InterruptedException { if (args.length != 1) { System.err.println("Usage: java TestPingers hostname"); System.exit(2); } // FIXME: get from applet's cookie ClientInfo this_client = new ClientInfo(ClientInf...
diff --git a/jumble/src/com/reeltwo/jumble/fast/JUnitTestResult.java b/jumble/src/com/reeltwo/jumble/fast/JUnitTestResult.java index 126fe93..8251e1e 100644 --- a/jumble/src/com/reeltwo/jumble/fast/JUnitTestResult.java +++ b/jumble/src/com/reeltwo/jumble/fast/JUnitTestResult.java @@ -1,35 +1,35 @@ package com.reeltwo....
false
true
public String toString() { final StringBuffer sb = new StringBuffer(); for (final Enumeration<TestFailure> e = errors(); e.hasMoreElements(); ) { final TestFailure f = e.nextElement(); sb.append("TEST FINISHED WITH ERROR: ").append(f.toString()).append(LS); sb.append(f.trace()); } fo...
public String toString() { final StringBuffer sb = new StringBuffer(); for (final Enumeration e = errors(); e.hasMoreElements(); ) { final TestFailure f = (TestFailure) e.nextElement(); sb.append("TEST FINISHED WITH ERROR: ").append(f.toString()).append(LS); sb.append(f.trace()); } f...
diff --git a/src/org/zaproxy/zap/extension/saml/SAMLMessage.java b/src/org/zaproxy/zap/extension/saml/SAMLMessage.java index 6be1cce..3535c91 100644 --- a/src/org/zaproxy/zap/extension/saml/SAMLMessage.java +++ b/src/org/zaproxy/zap/extension/saml/SAMLMessage.java @@ -1,477 +1,477 @@ package org.zaproxy.zap.extension....
true
true
private boolean setAuthnRequestValue(String key, String value) throws SAMLException { if (!(unmarshalledObject instanceof AuthnRequest)) { return false; } AuthnRequest authnRequest = (AuthnRequest) unmarshalledObject; switch (key) { case "AuthnRequest[ID]": ...
private boolean setAuthnRequestValue(String key, String value) throws SAMLException { if (!(unmarshalledObject instanceof AuthnRequest)) { return false; } AuthnRequest authnRequest = (AuthnRequest) unmarshalledObject; switch (key) { case "AuthnRequest[ID]": ...
diff --git a/src/ly/jamie/fontawesomebrowser/ChangeFontAdapter.java b/src/ly/jamie/fontawesomebrowser/ChangeFontAdapter.java index b593afa..b71eb44 100644 --- a/src/ly/jamie/fontawesomebrowser/ChangeFontAdapter.java +++ b/src/ly/jamie/fontawesomebrowser/ChangeFontAdapter.java @@ -1,72 +1,72 @@ package ly.jamie.fontawe...
false
true
public View getView(int position, View convertView, ViewGroup parent) { TextView textViewIconName, textViewIcon; boolean firstInitialization = false; if(convertView != null && convertView.getClass() == TextView.class) { // do nothing } else { firstInitialization = true; LayoutInflater vi = (L...
public View getView(int position, View convertView, ViewGroup parent) { TextView textViewIconName, textViewIcon; boolean firstInitialization = false; if(convertView != null && convertView.getClass() == TextView.class) { // do nothing } else { firstInitialization = true; LayoutInflater vi = (L...
diff --git a/src/Engine/Module.java b/src/Engine/Module.java index f2c5316..a6437e8 100644 --- a/src/Engine/Module.java +++ b/src/Engine/Module.java @@ -1,196 +1,208 @@ /** * */ package Engine; import Modules.Container; /* * @author orpheon * This class is the baseline Module class. It contains everyth...
false
true
public void run(Engine.EngineMaster engine) { // We check every channel, and if there's an input pipe that's active on that channel we execute the run(channel) method to calculate the output for (int channel=0; channel<Constants.NUM_CHANNELS; channel++) { int source = -1; if (activation_source >= 0) { ...
public void run(Engine.EngineMaster engine) { // We check every channel, and if there's an input pipe that's active on that channel we execute the run(channel) method to calculate the output for (int channel=0; channel<Constants.NUM_CHANNELS; channel++) { int source = -1; if (activation_source >= 0) { ...
diff --git a/src/test/com/jogamp/opengl/test/junit/util/UITestCase.java b/src/test/com/jogamp/opengl/test/junit/util/UITestCase.java index cc5986f28..368291a29 100644 --- a/src/test/com/jogamp/opengl/test/junit/util/UITestCase.java +++ b/src/test/com/jogamp/opengl/test/junit/util/UITestCase.java @@ -1,115 +1,115 @@ /*...
true
true
private static final synchronized void initSingletonInstance() { if( null == singletonInstance ) { // singletonInstance = SingletonInstance.createFileLock(SINGLE_INSTANCE_LOCK_POLL, SINGLE_INSTANCE_LOCK_FILE); singletonInstance = SingletonInstance.createServerSocket(SINGLE_INSTANCE_...
private static final synchronized void initSingletonInstance() { if( null == singletonInstance ) { // singletonInstance = SingletonInstance.createFileLock(SINGLE_INSTANCE_LOCK_POLL, SINGLE_INSTANCE_LOCK_FILE); singletonInstance = SingletonInstance.createServerSocket(SINGLE_INSTANCE_...
diff --git a/src/main/java/com/hmsonline/storm/cassandra/client/AstyanaxColumn.java b/src/main/java/com/hmsonline/storm/cassandra/client/AstyanaxColumn.java index b630ae1..822245b 100644 --- a/src/main/java/com/hmsonline/storm/cassandra/client/AstyanaxColumn.java +++ b/src/main/java/com/hmsonline/storm/cassandra/client...
true
true
public AstyanaxColumn(Column<K> column, Serializer<V> serializer) { this.column = column; }
public AstyanaxColumn(Column<K> column, Serializer<V> serializer) { this.column = column; this.serializer = serializer; }
diff --git a/src/main/java/hudson/plugins/kagemai/KagemaiPublisher.java b/src/main/java/hudson/plugins/kagemai/KagemaiPublisher.java index 9140c05..219ddbe 100644 --- a/src/main/java/hudson/plugins/kagemai/KagemaiPublisher.java +++ b/src/main/java/hudson/plugins/kagemai/KagemaiPublisher.java @@ -1,101 +1,101 @@ packag...
true
true
public boolean perform(AbstractBuild<?, ?> build, Launcher launcher, BuildListener listener) throws InterruptedException, IOException { KagemaiSite site = KagemaiSite.get(build.getProject()); if (site == null) { build.setResult(Result.FAILURE); return true; } HashSet<Integer> bugIds = new HashSet<I...
public boolean perform(AbstractBuild<?, ?> build, Launcher launcher, BuildListener listener) throws InterruptedException, IOException { KagemaiSite site = KagemaiSite.get(build.getProject()); if (site == null) { build.setResult(Result.FAILURE); return true; } HashSet<Integer> bugIds = new HashSet<I...
diff --git a/restcomm.rcml/src/main/java/org/mobicents/servlet/sip/restcomm/interpreter/tagstrategy/ConferenceSubStrategy.java b/restcomm.rcml/src/main/java/org/mobicents/servlet/sip/restcomm/interpreter/tagstrategy/ConferenceSubStrategy.java index b986b5b4c..439c5c33d 100644 --- a/restcomm.rcml/src/main/java/org/mobic...
true
true
@Override public synchronized void execute(final RcmlInterpreter interpreter, final RcmlInterpreterContext context, final RcmlTag tag) throws TagStrategyException { final Call call = context.getCall(); final StringBuilder buffer = new StringBuilder(); buffer.append(context.getAccountSid().toString()...
@Override public synchronized void execute(final RcmlInterpreter interpreter, final RcmlInterpreterContext context, final RcmlTag tag) throws TagStrategyException { final Call call = context.getCall(); final StringBuilder buffer = new StringBuilder(); buffer.append(context.getAccountSid().toString()...
diff --git a/trunk/src/Cubee/src/com/eagerlogic/cubee/client/components/AComponent.java b/trunk/src/Cubee/src/com/eagerlogic/cubee/client/components/AComponent.java index 01f7a2f..54ea494 100644 --- a/trunk/src/Cubee/src/com/eagerlogic/cubee/client/components/AComponent.java +++ b/trunk/src/Cubee/src/com/eagerlogic/cub...
true
true
public AComponent(Element rootElement) { this.element = rootElement; this.element.setAttribute("draggabe", "false"); this.element.getStyle().setPosition(Style.Position.ABSOLUTE); //this.element.getStyle().setProperty("pointerEvents", "none"); this.element.getStyle().setProperty("pointerEvents", "all"); tra...
public AComponent(Element rootElement) { this.element = rootElement; this.element.setAttribute("draggabe", "false"); this.element.getStyle().setPosition(Style.Position.ABSOLUTE); //this.element.getStyle().setProperty("pointerEvents", "none"); this.element.getStyle().setProperty("pointerEvents", "all"); tra...
diff --git a/src/com/android/bluetooth/pbap/BluetoothPbapVcardManager.java b/src/com/android/bluetooth/pbap/BluetoothPbapVcardManager.java index 29c64a8..dc206a9 100644 --- a/src/com/android/bluetooth/pbap/BluetoothPbapVcardManager.java +++ b/src/com/android/bluetooth/pbap/BluetoothPbapVcardManager.java @@ -1,585 +1,58...
true
true
public final int composeAndSendVCards(Operation op, final String selection, final boolean vcardType21, String ownerVCard, boolean isContacts) { long timestamp = 0; if (V) timestamp = System.currentTimeMillis(); if (isContacts) { VCardComposer composer = null; ...
public final int composeAndSendVCards(Operation op, final String selection, final boolean vcardType21, String ownerVCard, boolean isContacts) { long timestamp = 0; if (V) timestamp = System.currentTimeMillis(); if (isContacts) { VCardComposer composer = null; ...
diff --git a/org.eclipse.jdt.debug.ui/ui/org/eclipse/jdt/internal/debug/ui/variables/JavaVariableCellModifier.java b/org.eclipse.jdt.debug.ui/ui/org/eclipse/jdt/internal/debug/ui/variables/JavaVariableCellModifier.java index 87013bbef..de7ffdbc9 100644 --- a/org.eclipse.jdt.debug.ui/ui/org/eclipse/jdt/internal/debug/ui...
true
true
public void modify(Object element, String property, Object value) { Object oldValue = getValue(element, property); if (!value.equals(oldValue)) { if (VariableColumnPresentation.COLUMN_VARIABLE_VALUE.equals(property)) { if (element instanceof IJavaVariable) { ...
public void modify(Object element, String property, Object value) { Object oldValue = getValue(element, property); if (!value.equals(oldValue)) { if (VariableColumnPresentation.COLUMN_VARIABLE_VALUE.equals(property)) { if (element instanceof IJavaVariable) { ...
diff --git a/src/main/java/org/apache/ws/security/message/WSSecEncryptedKey.java b/src/main/java/org/apache/ws/security/message/WSSecEncryptedKey.java index 5979a13da..30b9964ba 100644 --- a/src/main/java/org/apache/ws/security/message/WSSecEncryptedKey.java +++ b/src/main/java/org/apache/ws/security/message/WSSecEncry...
true
true
protected void prepareInternal( SecretKey secretKey, X509Certificate remoteCert, Crypto crypto ) throws WSSecurityException { Cipher cipher = WSSecurityUtil.getCipherInstance(keyEncAlgo); try { cipher.init(Cipher.WRAP_MODE, remoteCert); } catch (Inval...
protected void prepareInternal( SecretKey secretKey, X509Certificate remoteCert, Crypto crypto ) throws WSSecurityException { Cipher cipher = WSSecurityUtil.getCipherInstance(keyEncAlgo); try { cipher.init(Cipher.WRAP_MODE, remoteCert); } catch (Inval...
diff --git a/test-modules/functional-tests/src/test/java/org/openlmis/functional/E2EInitiateRnR.java b/test-modules/functional-tests/src/test/java/org/openlmis/functional/E2EInitiateRnR.java index 145dd9a375..a31eed3318 100644 --- a/test-modules/functional-tests/src/test/java/org/openlmis/functional/E2EInitiateRnR.java...
false
true
public void testE2EInitiateRnR(String program, String userSIC, String userMO, String userlmu, String password, String[] credentials) throws Exception { LoginPage loginPage = new LoginPage(testWebDriver, baseUrlGlobal); HomePage homePage = loginPage.loginAs(credentials[0], credentials[1]); CreateFacilityP...
public void testE2EInitiateRnR(String program, String userSIC, String userMO, String userlmu, String password, String[] credentials) throws Exception { LoginPage loginPage = new LoginPage(testWebDriver, baseUrlGlobal); HomePage homePage = loginPage.loginAs(credentials[0], credentials[1]); CreateFacilityP...
diff --git a/src/edu/unc/genomics/WigAnalysisTool.java b/src/edu/unc/genomics/WigAnalysisTool.java index 6d924e6..a0b8eb5 100644 --- a/src/edu/unc/genomics/WigAnalysisTool.java +++ b/src/edu/unc/genomics/WigAnalysisTool.java @@ -1,253 +1,256 @@ package edu.unc.genomics; import java.io.IOException; import java.util...
true
true
public final void run() throws IOException { log.debug("Executing setup operations"); prepare(); Set<String> chromosomes = null; if (unionExtents) { chromosomes = getUnionChromosomes(inputs); log.debug("Found " + chromosomes.size() + " chromosomes in the union of all inputs"); } else ...
public final void run() throws IOException { log.debug("Executing setup operations"); prepare(); Set<String> chromosomes = null; if (unionExtents) { chromosomes = getUnionChromosomes(inputs); log.debug("Found " + chromosomes.size() + " chromosomes in the union of all inputs"); } else ...
diff --git a/jobbie/src/java/org/openqa/selenium/ie/ErrorHandler.java b/jobbie/src/java/org/openqa/selenium/ie/ErrorHandler.java index 4231740b5..da396a74b 100644 --- a/jobbie/src/java/org/openqa/selenium/ie/ErrorHandler.java +++ b/jobbie/src/java/org/openqa/selenium/ie/ErrorHandler.java @@ -1,93 +1,93 @@ /* Copyrigh...
false
true
public void verifyErrorCode(int errorCode, String message) { switch (errorCode) { case SUCCESS: break; // Nothing to do case 7: throw new NoSuchElementException(message); case 8: throw new NoSuchFrameException(message); case 9: throw new Unsupporte...
public void verifyErrorCode(int errorCode, String message) { switch (errorCode) { case SUCCESS: break; // Nothing to do case 7: throw new NoSuchElementException(message); case 8: throw new NoSuchFrameException(message); case 9: throw new Unsupporte...
diff --git a/src/main/java/com/dumptruckman/chunky/object/ChunkyObject.java b/src/main/java/com/dumptruckman/chunky/object/ChunkyObject.java index 772c5d7..58893e1 100644 --- a/src/main/java/com/dumptruckman/chunky/object/ChunkyObject.java +++ b/src/main/java/com/dumptruckman/chunky/object/ChunkyObject.java @@ -1,189 +...
true
true
private boolean addOwnable(ChunkyObject o) { if (o == null) throw new IllegalArgumentException(); // If owner is a owned by the child, remove owner from tree first. // ex. town.setOwner(Peasant) Peasant is removed from parent (Town). if(this.isOwnedBy(o)) { ...
private boolean addOwnable(ChunkyObject o) { if (o == null) throw new IllegalArgumentException(); // If owner is a owned by the child, remove owner from tree first. // ex. town.setOwner(Peasant) Peasant is removed from parent (Town). if(this.isOwnedBy(o) && this.owner !...
diff --git a/installer/it/src/test/java/org/apache/sling/installer/it/RegisterResourcesTest.java b/installer/it/src/test/java/org/apache/sling/installer/it/RegisterResourcesTest.java index deaf844564..1da2f72916 100644 --- a/installer/it/src/test/java/org/apache/sling/installer/it/RegisterResourcesTest.java +++ b/insta...
true
true
public void removeAndReaddBundlesTest() throws Exception { { final Object listener = this.startObservingBundleEvents(); final List<InstallableResource> r = new ArrayList<InstallableResource>(); r.add(getInstallableResource(getTestBundle(BUNDLE_BASE_NAME + "-testB-1.0.jar"...
public void removeAndReaddBundlesTest() throws Exception { { final Object listener = this.startObservingBundleEvents(); final List<InstallableResource> r = new ArrayList<InstallableResource>(); r.add(getInstallableResource(getTestBundle(BUNDLE_BASE_NAME + "-testB-1.0.jar"...
diff --git a/src/main/java/com/TeamNovus/Supernaturals/Custom/Effect/EffectTypes/BlindingArrow.java b/src/main/java/com/TeamNovus/Supernaturals/Custom/Effect/EffectTypes/BlindingArrow.java index c6ceb8f..7bde072 100644 --- a/src/main/java/com/TeamNovus/Supernaturals/Custom/Effect/EffectTypes/BlindingArrow.java +++ b/sr...
true
true
public void onEntityDamageEntityByProjectile(EntityDamageEntityByProjectileEvent event, Effect effect) { if(new Random().nextInt(101) <= effect.getAmplifier()) { if(event.getEntity() instanceof LivingEntity) { LivingEntity target = (LivingEntity) event.getEntity(); target.addPotionEffect(new PotionEf...
public void onEntityDamageEntityByProjectile(EntityDamageEntityByProjectileEvent event, Effect effect) { if(new Random().nextInt(101) <= effect.getAmplifier()) { if(event.getDamaged() instanceof LivingEntity) { LivingEntity target = (LivingEntity) event.getDamaged(); target.addPotionEffect(new Potion...
diff --git a/h2/src/test/org/h2/test/unit/TestDataPage.java b/h2/src/test/org/h2/test/unit/TestDataPage.java index 00af2844c..b30665a34 100644 --- a/h2/src/test/org/h2/test/unit/TestDataPage.java +++ b/h2/src/test/org/h2/test/unit/TestDataPage.java @@ -1,329 +1,330 @@ /* * Copyright 2004-2011 H2 Group. Multiple-Lice...
true
true
private void testValues() { testValue(ValueNull.INSTANCE); testValue(ValueBoolean.get(false)); testValue(ValueBoolean.get(true)); for (int i = 0; i < 256; i++) { testValue(ValueByte.get((byte) i)); } for (int i = 0; i < 256 * 256; i += 10) { te...
private void testValues() { testValue(ValueNull.INSTANCE); testValue(ValueBoolean.get(false)); testValue(ValueBoolean.get(true)); for (int i = 0; i < 256; i++) { testValue(ValueByte.get((byte) i)); } for (int i = 0; i < 256 * 256; i += 10) { te...
diff --git a/src/com/imeeting/mvc/controller/ProfileController.java b/src/com/imeeting/mvc/controller/ProfileController.java index bfc3f57..571a8f7 100644 --- a/src/com/imeeting/mvc/controller/ProfileController.java +++ b/src/com/imeeting/mvc/controller/ProfileController.java @@ -1,85 +1,85 @@ package com.imeeting.mvc...
false
true
public @ResponseBody String changePassword( HttpSession session, HttpServletResponse response, @RequestParam(value="oldPwd") String oldPwd, @RequestParam(value="newPwd") String newPwd, @RequestParam(value="newPwdConfirm") String newPwdConfirm) throws IOException{ UserBean user = (UserBean) session.ge...
public @ResponseBody String changePassword( HttpSession session, HttpServletResponse response, @RequestParam(value="oldPwd") String oldPwd, @RequestParam(value="newPwd") String newPwd, @RequestParam(value="newPwdConfirm") String newPwdConfirm) throws IOException{ UserBean user = (UserBean) session.ge...
diff --git a/org.eclipse.ui.editors/src/org/eclipse/ui/texteditor/AbstractDecoratedTextEditor.java b/org.eclipse.ui.editors/src/org/eclipse/ui/texteditor/AbstractDecoratedTextEditor.java index 4985e9283..560e5021b 100644 --- a/org.eclipse.ui.editors/src/org/eclipse/ui/texteditor/AbstractDecoratedTextEditor.java +++ b/o...
true
true
protected void performSaveAs(IProgressMonitor progressMonitor) { Shell shell= getSite().getShell(); final IEditorInput input= getEditorInput(); IDocumentProvider provider= getDocumentProvider(); final IEditorInput newInput; if (input instanceof IURIEditorInput) { FileDialog dialog= new FileDialog(shel...
protected void performSaveAs(IProgressMonitor progressMonitor) { Shell shell= getSite().getShell(); final IEditorInput input= getEditorInput(); IDocumentProvider provider= getDocumentProvider(); final IEditorInput newInput; if (input instanceof IURIEditorInput && !(input instanceof IFileEditorInput)) { ...
diff --git a/hazelcast-client/src/test/java/com/hazelcast/client/lock/ClientConditionTest.java b/hazelcast-client/src/test/java/com/hazelcast/client/lock/ClientConditionTest.java index d6011fd00b..43bc99f681 100644 --- a/hazelcast-client/src/test/java/com/hazelcast/client/lock/ClientConditionTest.java +++ b/hazelcast-c...
true
true
public void testLockConditionSignalAllShutDownKeyOwner() throws InterruptedException { final String name = "testLockConditionSignalAllShutDownKeyOwner"; final HazelcastInstance instance = Hazelcast.newHazelcastInstance(); final AtomicInteger count = new AtomicInteger(0); final int si...
public void testLockConditionSignalAllShutDownKeyOwner() throws InterruptedException { final String name = "testLockConditionSignalAllShutDownKeyOwner"; final HazelcastInstance instance = Hazelcast.newHazelcastInstance(); final AtomicInteger count = new AtomicInteger(0); final int si...
diff --git a/src/main/java/org/xbib/elasticsearch/river/jdbc/strategy/simple/SimpleRiverFlow.java b/src/main/java/org/xbib/elasticsearch/river/jdbc/strategy/simple/SimpleRiverFlow.java index 074e3390..ac2f44ee 100644 --- a/src/main/java/org/xbib/elasticsearch/river/jdbc/strategy/simple/SimpleRiverFlow.java +++ b/src/ma...
true
true
public void move() { try { RiverSource source = context.riverSource(); RiverMouth riverMouth = context.riverMouth(); Client client = context.riverMouth().client(); Number version; GetResponse get = null; // wait for cluster health ...
public void move() { try { RiverSource source = context.riverSource(); RiverMouth riverMouth = context.riverMouth(); Client client = context.riverMouth().client(); Number version; GetResponse get = null; // wait for cluster health ...
diff --git a/survey/src/com/gallatinsystems/survey/device/view/SubmitTabContentFactory.java b/survey/src/com/gallatinsystems/survey/device/view/SubmitTabContentFactory.java index f7ff9aae..c774d142 100644 --- a/survey/src/com/gallatinsystems/survey/device/view/SubmitTabContentFactory.java +++ b/survey/src/com/gallatins...
true
true
public View refreshView(boolean setMissing) { // first, re-save all questions to make sure we didn't miss anything context.saveAllResponses(); submitButton = configureActionButton(R.string.submitbutton, new OnClickListener() { public void onClick(View v) {...
public View refreshView(boolean setMissing) { // first, re-save all questions to make sure we didn't miss anything context.saveAllResponses(); submitButton = configureActionButton(R.string.submitbutton, new OnClickListener() { public void onClick(View v) {...
diff --git a/srcj/com/sun/electric/tool/routing/RouteElementArc.java b/srcj/com/sun/electric/tool/routing/RouteElementArc.java index 14d4aecfd..5cde4720a 100755 --- a/srcj/com/sun/electric/tool/routing/RouteElementArc.java +++ b/srcj/com/sun/electric/tool/routing/RouteElementArc.java @@ -1,394 +1,395 @@ /* -*- tab-wid...
true
true
public ElectricObject doAction() { Job.checkChanging(); if (isDone()) return null; if (getAction() == RouteElementAction.newArc) { PortInst headPi = headRE.getPortInst(); PortInst tailPi = tailRE.getPortInst(); Point2D headPoint = headConnPoint; ...
public ElectricObject doAction() { Job.checkChanging(); if (isDone()) return null; if (getAction() == RouteElementAction.newArc) { PortInst headPi = headRE.getPortInst(); PortInst tailPi = tailRE.getPortInst(); Point2D headPoint = headConnPoint; ...
diff --git a/fsrepo/src/main/java/cz/topolik/fsrepo/model/FileSystemFolder.java b/fsrepo/src/main/java/cz/topolik/fsrepo/model/FileSystemFolder.java index c5a5525..e336fbc 100644 --- a/fsrepo/src/main/java/cz/topolik/fsrepo/model/FileSystemFolder.java +++ b/fsrepo/src/main/java/cz/topolik/fsrepo/model/FileSystemFolder....
true
true
public Folder getParentFolder() throws PortalException, SystemException { try { if (parentFolder != null) { return parentFolder; } File parentFile = folder.getParentFile(); File rootFolder = repository.getRootFolder(); if (parentFil...
public Folder getParentFolder() throws PortalException, SystemException { try { if (parentFolder != null) { return parentFolder; } File parentFile = folder.getParentFile(); File rootFolder = repository.getRootFolder(); if (parentFil...
diff --git a/Runner/Runner.java b/Runner/Runner.java index 1dd5c00..e1c1427 100755 --- a/Runner/Runner.java +++ b/Runner/Runner.java @@ -1,142 +1,144 @@ package Tools.Runner; import java.util.ArrayList; import java.util.Arrays; import javax.swing.JPanel; import javax.swing.JEditorPane; import javax.swing.JLab...
true
true
public void run(){ if(!end)return; end = false; /* ArrayList<String> command = new ArrayList<String>(); command.add(Option.kPath); command.add("-f "+Option.fps); switch(Option.mode){ case Option.MODEL_MODE: command.add("-m m"); command.add("-sm "+Option.saveModel); break; case Optio...
public void run(){ if(!end)return; end = false; /* ArrayList<String> command = new ArrayList<String>(); command.add(Option.kPath); command.add("-f "+Option.fps); switch(Option.mode){ case Option.MODEL_MODE: command.add("-m m"); command.add("-sm "+Option.saveModel); break; case Optio...
diff --git a/project_files/Android-build/SDL-android-project/src/org/hedgewars/hedgeroid/Downloader/DownloadAsyncTask.java b/project_files/Android-build/SDL-android-project/src/org/hedgewars/hedgeroid/Downloader/DownloadAsyncTask.java index 391e1a8ca..4ca5b8643 100644 --- a/project_files/Android-build/SDL-android-proje...
true
true
protected Integer doInBackground(DownloadPackage...packages) { DownloadPackage pack = packages[0];//just use one task per execute call for now HttpURLConnection conn = null; MessageDigest digester = null; String rootZipDest = pack.getPathToStore(); File rootDest = new File(rootZipDest);//TODO check for nul...
protected Integer doInBackground(DownloadPackage...packages) { DownloadPackage pack = packages[0];//just use one task per execute call for now HttpURLConnection conn = null; MessageDigest digester = null; String rootZipDest = pack.getPathToStore(); File rootDest = new File(rootZipDest);//TODO check for nul...
diff --git a/src/main/java/no/niths/services/StudentService.java b/src/main/java/no/niths/services/StudentService.java index 30624855..f55eae73 100644 --- a/src/main/java/no/niths/services/StudentService.java +++ b/src/main/java/no/niths/services/StudentService.java @@ -1,85 +1,86 @@ package no.niths.services; impo...
true
true
public Student getStudentById(long id) { Student s = repo.getById(id); if (s != null) { if (s.getCommittees().size() > 0) { for (int i = 0; i < s.getCommittees().size(); i++) { s.getCommittees().get(i).setEvents(null); } }else{ s.setCommittees(null); } if (s.getCourses().size() > 0) { ...
public Student getStudentById(long id) { Student s = repo.getById(id); if (s != null) { if (s.getCommittees().size() > 0) { for (int i = 0; i < s.getCommittees().size(); i++) { s.getCommittees().get(i).setEvents(null); s.getCommittees().get(i).setLeaders(null); } }else{ s.setCommittees(...
diff --git a/impl/src/main/java/ceylon/modules/jboss/runtime/CeylonModuleLoader.java b/impl/src/main/java/ceylon/modules/jboss/runtime/CeylonModuleLoader.java index 91e8fef..2e27365 100644 --- a/impl/src/main/java/ceylon/modules/jboss/runtime/CeylonModuleLoader.java +++ b/impl/src/main/java/ceylon/modules/jboss/runtime...
true
true
protected ModuleSpec findModule(ModuleIdentifier moduleIdentifier) throws ModuleLoadException { try { File moduleFile = repository.getArtifact(moduleIdentifier.getName(), moduleIdentifier.getSlot()); if (moduleFile == null) return null; Module module = re...
protected ModuleSpec findModule(ModuleIdentifier moduleIdentifier) throws ModuleLoadException { try { File moduleFile = repository.getArtifact(moduleIdentifier.getName(), moduleIdentifier.getSlot()); if (moduleFile == null) return null; Module module = re...
diff --git a/java/modules/core/src/main/java/org/apache/synapse/core/axis2/SynapseCallbackReceiver.java b/java/modules/core/src/main/java/org/apache/synapse/core/axis2/SynapseCallbackReceiver.java index f99246ba0..27f874e42 100644 --- a/java/modules/core/src/main/java/org/apache/synapse/core/axis2/SynapseCallbackReceiv...
true
true
private void handleMessage(String messageID ,MessageContext response, org.apache.synapse.MessageContext synapseOutMsgCtx) throws AxisFault { Endpoint endpoint = (Endpoint) synapseOutMsgCtx.getProperty( SynapseConstants.LAST_ENDPOINT); if (endpoint instanceof AuditConfigurabl...
private void handleMessage(String messageID ,MessageContext response, org.apache.synapse.MessageContext synapseOutMsgCtx) throws AxisFault { Endpoint endpoint = (Endpoint) synapseOutMsgCtx.getProperty( SynapseConstants.LAST_ENDPOINT); if (endpoint instanceof AuditConfigurabl...
diff --git a/src/main/java/org/osaf/cosmo/acegisecurity/ticket/TicketProcessingFilter.java b/src/main/java/org/osaf/cosmo/acegisecurity/ticket/TicketProcessingFilter.java index 45ab7a1a2..990daf779 100644 --- a/src/main/java/org/osaf/cosmo/acegisecurity/ticket/TicketProcessingFilter.java +++ b/src/main/java/org/osaf/co...
true
true
public void doFilter(ServletRequest request, ServletResponse response, FilterChain chain) throws IOException, ServletException { SecureContext sc = SecureContextUtils.getSecureContext(); if (sc.getAuthentication() == null) { if (r...
public void doFilter(ServletRequest request, ServletResponse response, FilterChain chain) throws IOException, ServletException { SecureContext sc = SecureContextUtils.getSecureContext(); if (sc.getAuthentication() == null) { if (r...
diff --git a/DesktopTimeline/src/org/gephi/desktop/timeline/TimelineTopComponent.java b/DesktopTimeline/src/org/gephi/desktop/timeline/TimelineTopComponent.java index 9ada762a3..957060760 100644 --- a/DesktopTimeline/src/org/gephi/desktop/timeline/TimelineTopComponent.java +++ b/DesktopTimeline/src/org/gephi/desktop/ti...
true
true
private void initComponents() { java.awt.GridBagConstraints gridBagConstraints; enableButton = new javax.swing.JToggleButton(); timelinePanel = new javax.swing.JPanel(); closeButton = new CloseButton(); setMaximumSize(new java.awt.Dimension(2147483647, 27)); setMini...
private void initComponents() { java.awt.GridBagConstraints gridBagConstraints; enableButton = new javax.swing.JToggleButton(); timelinePanel = new javax.swing.JPanel(); closeButton = new CloseButton(); setMaximumSize(new java.awt.Dimension(32767, 48)); setLayout(ne...
diff --git a/jlad-trainers/jlad-trainer-wikipedia/src/main/java/com/aperigeek/jlad/trainer/wikipedia/Main.java b/jlad-trainers/jlad-trainer-wikipedia/src/main/java/com/aperigeek/jlad/trainer/wikipedia/Main.java index 055d097..2828c97 100644 --- a/jlad-trainers/jlad-trainer-wikipedia/src/main/java/com/aperigeek/jlad/tra...
true
true
private static Properties parseArguments(String... args) throws CommandLineArgsParseException { Properties p = new Properties(); int i = 0; try { while (i < args.length) { if (args[i].equals("-n")) { i++; // Checks ...
private static Properties parseArguments(String... args) throws CommandLineArgsParseException { Properties p = new Properties(); int i = 0; try { while (i < args.length) { if (args[i].equals("-n")) { i++; // Checks ...
diff --git a/libraries/jnaerator/ochafik-util/src/main/java/com/ochafik/util/string/StringUtils.java b/libraries/jnaerator/ochafik-util/src/main/java/com/ochafik/util/string/StringUtils.java index eea6d51a..59b1afa8 100644 --- a/libraries/jnaerator/ochafik-util/src/main/java/com/ochafik/util/string/StringUtils.java +++...
true
true
public static final String javaEscape(String s) { if (s == null) return null; char c; int len=s.length(); StringBuffer b=new StringBuffer(len); for (int i=0;i<len;i++) { c=s.charAt(i); switch (c) { case '\n': b.append("\\n"); break; case '\t': b.append("\\t"); break; ...
public static final String javaEscape(String s) { if (s == null) return null; char c; int len=s.length(); StringBuffer b=new StringBuffer(len); for (int i=0;i<len;i++) { c=s.charAt(i); switch (c) { case '\n': b.append("\\n"); break; case '\t': b.append("\\t"); break; ...
diff --git a/plugins/org.eclipse.m2m.atl.engine/src/org/eclipse/m2m/atl/engine/parser/AtlSourceManager.java b/plugins/org.eclipse.m2m.atl.engine/src/org/eclipse/m2m/atl/engine/parser/AtlSourceManager.java index 62599dcf..8c540df4 100644 --- a/plugins/org.eclipse.m2m.atl.engine/src/org/eclipse/m2m/atl/engine/parser/AtlS...
true
true
private void parseMetamodels(String text) { metamodelsPackages = new HashMap(); metamodelLocations = new HashMap(); inputModels = new LinkedHashMap(); outputModels = new LinkedHashMap(); librariesImports = new ArrayList(); List compilers = getTaggedInformations(text.getBytes(), COMPILER_TAG); atlCompile...
private void parseMetamodels(String text) { metamodelsPackages = new HashMap(); metamodelLocations = new HashMap(); inputModels = new LinkedHashMap(); outputModels = new LinkedHashMap(); librariesImports = new ArrayList(); List compilers = getTaggedInformations(text.getBytes(), COMPILER_TAG); atlCompile...
diff --git a/modules/resin/src/com/caucho/quercus/env/CompositeDataValue.java b/modules/resin/src/com/caucho/quercus/env/CompositeDataValue.java index 56b3192f0..d0eb0615c 100644 --- a/modules/resin/src/com/caucho/quercus/env/CompositeDataValue.java +++ b/modules/resin/src/com/caucho/quercus/env/CompositeDataValue.java...
true
true
public Value getField(Env env, String attrName) { try { return env.wrapJava(_data.get(attrName)); } catch (InvalidKeyException e) { env.warning(e); } }
public Value getField(Env env, String attrName) { try { return env.wrapJava(_data.get(attrName)); } catch (InvalidKeyException e) { env.warning(e); return NullValue.NULL; } }
diff --git a/applications/src/main/java/demo/Demo.java b/applications/src/main/java/demo/Demo.java index f28ead3..5d23e09 100644 --- a/applications/src/main/java/demo/Demo.java +++ b/applications/src/main/java/demo/Demo.java @@ -1,58 +1,58 @@ package demo; import org.rcsb.ks.controllers.app.SlideShow; impo...
true
true
public static void main(String[] args){ //showSimpleViewer(); //showProteinWorkshop(); // showLigandExplorer(); showKiosk(); }
public static void main(String[] args){ //showSimpleViewer(); //showProteinWorkshop(); showLigandExplorer(); //showKiosk(); }
diff --git a/bennu-core/src/myorg/domain/contents/Node.java b/bennu-core/src/myorg/domain/contents/Node.java index 6c2fbd4a..a3fb753d 100644 --- a/bennu-core/src/myorg/domain/contents/Node.java +++ b/bennu-core/src/myorg/domain/contents/Node.java @@ -1,232 +1,234 @@ /* * @(#)Node.java * * Copyright 2009 Institut...
true
true
public void delete() { final Node parentNode = getParentNode(); if (parentNode == null) { final VirtualHost virtualHost = VirtualHost.getVirtualHostForThread(); descNodeOrders(virtualHost.getTopLevelNodesSet()); } else { removeParentNode(); descNodeOrders(parentNode.getChildNodesSet()); } f...
public void delete() { final Node parentNode = getParentNode(); if (parentNode == null) { final VirtualHost virtualHost = VirtualHost.getVirtualHostForThread(); descNodeOrders(virtualHost.getTopLevelNodesSet()); } else { removeParentNode(); descNodeOrders(parentNode.getChildNodesSet()); } f...
diff --git a/IBFbNursery/src/ibfb/nursery/actions/QuickNurseryCreationAction.java b/IBFbNursery/src/ibfb/nursery/actions/QuickNurseryCreationAction.java index d78707f..37c3019 100644 --- a/IBFbNursery/src/ibfb/nursery/actions/QuickNurseryCreationAction.java +++ b/IBFbNursery/src/ibfb/nursery/actions/QuickNurseryCreatio...
true
true
public void actionPerformed(ActionEvent ev) { changeCursorWaitStatus(true); quick=new JDQuickCreation(null, true); TopComponent background = WindowManager.getDefault().findTopComponent("BackgroundWindowTopComponent"); if (background.isOpened()) { background.clos...
public void actionPerformed(ActionEvent ev) { changeCursorWaitStatus(true); quick=new JDQuickCreation(null, true); TopComponent background = WindowManager.getDefault().findTopComponent("BackgroundWindowTopComponent"); if (background.isOpened()) { background.clos...
diff --git a/loci/formats/in/BaseTiffReader.java b/loci/formats/in/BaseTiffReader.java index b342973ff..78d6110f5 100644 --- a/loci/formats/in/BaseTiffReader.java +++ b/loci/formats/in/BaseTiffReader.java @@ -1,847 +1,850 @@ // // BaseTiffReader.java // /* LOCI Bio-Formats package for reading and converting biol...
true
true
protected void initStandardMetadata() throws FormatException, IOException { Hashtable ifd = ifds[0]; put("ImageWidth", ifd, TiffTools.IMAGE_WIDTH); put("ImageLength", ifd, TiffTools.IMAGE_LENGTH); put("BitsPerSample", ifd, TiffTools.BITS_PER_SAMPLE); int comp = TiffTools.getIFDIntValue(ifd, TiffT...
protected void initStandardMetadata() throws FormatException, IOException { Hashtable ifd = ifds[0]; put("ImageWidth", ifd, TiffTools.IMAGE_WIDTH); put("ImageLength", ifd, TiffTools.IMAGE_LENGTH); put("BitsPerSample", ifd, TiffTools.BITS_PER_SAMPLE); int comp = TiffTools.getIFDIntValue(ifd, TiffT...
diff --git a/javafx.editor/src/org/netbeans/modules/javafx/editor/semantic/UpToDateStatusTask.java b/javafx.editor/src/org/netbeans/modules/javafx/editor/semantic/UpToDateStatusTask.java index d4c33616..c737c197 100644 --- a/javafx.editor/src/org/netbeans/modules/javafx/editor/semantic/UpToDateStatusTask.java +++ b/jav...
false
true
private void process(CompilationInfo info) { if (LOGGABLE) log("process: " + info.getJavaFXSource().getFileObject()); Document doc = info.getJavaFXSource().getDocument(); if (doc == null) { if (LOGGABLE) log(" no document for: " + info.getJavaFXSource()); re...
private void process(CompilationInfo info) { if (LOGGABLE) log("process: " + info.getJavaFXSource().getFileObject()); Document doc = info.getJavaFXSource().getDocument(); if (doc == null) { if (LOGGABLE) log(" no document for: " + info.getJavaFXSource()); re...
diff --git a/src/main/java/wicket/contrib/gmap3/GMapHeaderContributor.java b/src/main/java/wicket/contrib/gmap3/GMapHeaderContributor.java index 198039b..0a1dead 100644 --- a/src/main/java/wicket/contrib/gmap3/GMapHeaderContributor.java +++ b/src/main/java/wicket/contrib/gmap3/GMapHeaderContributor.java @@ -1,54 +1,54 ...
true
true
public GMapHeaderContributor( final String schema, final String clientId ) { super( new IHeaderContributor() { private static final long serialVersionUID = 1L; @Override public void renderHead( IHeaderResponse response ) { final String clientParm; ...
public GMapHeaderContributor( final String schema, final String clientId ) { super( new IHeaderContributor() { private static final long serialVersionUID = 1L; @Override public void renderHead( IHeaderResponse response ) { final String clientParm; ...
diff --git a/tests/tests/org.jboss.tools.test/src/org/jboss/tools/test/util/ResourcesUtils.java b/tests/tests/org.jboss.tools.test/src/org/jboss/tools/test/util/ResourcesUtils.java index 292e521c8..fa3d48417 100644 --- a/tests/tests/org.jboss.tools.test/src/org/jboss/tools/test/util/ResourcesUtils.java +++ b/tests/test...
true
true
static public IProject importProjectIntoWorkspace(String path, String projectName) { IProject project = null; try { project = ResourcesPlugin.getWorkspace().getRoot().getProject(projectName); project.create(null); project.open(null); JobUtils.waitForIdle(); IOverwriteQuery overwrite = new ...
static public IProject importProjectIntoWorkspace(String path, String projectName) { IProject project = null; try { project = ResourcesPlugin.getWorkspace().getRoot().getProject(projectName); project.create(null); project.open(null); JobUtils.waitForIdle(); IOverwriteQuery overwrite = new ...
diff --git a/plugins/org.eclipse.tcf.debug/src/org/eclipse/tcf/internal/debug/tests/TestRCBP1.java b/plugins/org.eclipse.tcf.debug/src/org/eclipse/tcf/internal/debug/tests/TestRCBP1.java index 41f0974b7..4c843b7d0 100644 --- a/plugins/org.eclipse.tcf.debug/src/org/eclipse/tcf/internal/debug/tests/TestRCBP1.java +++ b/p...
true
true
private void testGetSetRegisterCommands(final SuspendedContext sc, final Runnable done) { Map<String,IRegisters.RegistersContext> reg_map = regs.get(sc.id); final Set<IToken> cmds = new HashSet<IToken>(); if (reg_map.size() > 0) { String[] ids = reg_map.keySet().toArray(new Strin...
private void testGetSetRegisterCommands(final SuspendedContext sc, final Runnable done) { Map<String,IRegisters.RegistersContext> reg_map = regs.get(sc.id); final Set<IToken> cmds = new HashSet<IToken>(); if (reg_map.size() > 0) { String[] ids = reg_map.keySet().toArray(new Strin...
diff --git a/chunchun/src/jbossas/java/com/jboss/datagrid/chunchun/jsf/InitializeCache.java b/chunchun/src/jbossas/java/com/jboss/datagrid/chunchun/jsf/InitializeCache.java index dff3461..1aa30d1 100644 --- a/chunchun/src/jbossas/java/com/jboss/datagrid/chunchun/jsf/InitializeCache.java +++ b/chunchun/src/jbossas/java/...
true
true
public void startup() { BasicCache<String, Object> users = provider.getCacheContainer().getCache("userCache"); BasicCache<PostKey, Object> posts = provider.getCacheContainer().getCache("postCache"); utx = getUserTransactionFromJNDI(); try { utx.begin(); for (int i = 1; i !...
public void startup() { BasicCache<String, Object> users = provider.getCacheContainer().getCache("userCache"); BasicCache<PostKey, Object> posts = provider.getCacheContainer().getCache("postCache"); utx = getUserTransactionFromJNDI(); try { utx.begin(); for (int i = 1; i <...
diff --git a/src/mediateka/db/History.java b/src/mediateka/db/History.java index ec57889..5171c71 100644 --- a/src/mediateka/db/History.java +++ b/src/mediateka/db/History.java @@ -1,86 +1,86 @@ package mediateka.db; import java.text.SimpleDateFormat; import java.util.HashMap; import java.util.Iterator; import m...
true
true
public Records find(Record record) { History retVal = new History(); HashMap<String, String> map = new HashMap<String, String>(); HistoryRecord rec; try { rec = (HistoryRecord) record; } catch (Exception e) { return null; } if (rec.getI...
public Records find(Record record) { History retVal = new History(); HashMap<String, String> map = new HashMap<String, String>(); HistoryRecord rec; try { rec = (HistoryRecord) record; } catch (Exception e) { return null; } if (rec.getI...
diff --git a/src/java/com/eviware/soapui/impl/wsdl/panels/testcase/AlertSitePanel.java b/src/java/com/eviware/soapui/impl/wsdl/panels/testcase/AlertSitePanel.java index ccb4fce58..4f7a5c65e 100644 --- a/src/java/com/eviware/soapui/impl/wsdl/panels/testcase/AlertSitePanel.java +++ b/src/java/com/eviware/soapui/impl/wsdl...
true
true
private Component buildToolbar() { JXToolBar toolbar = UISupport.createToolbar(); toolbar.addFixed( UISupport.createToolbarButton( new RunAction() ) ); toolbar.addFixed( buildLocationsComboBox() ); toolbar.addGlue(); toolbar.addFixed( UISupport.createToolbarButton( new ShowOnlineHelpAction( HelpUrls.ALERT_...
private Component buildToolbar() { JXToolBar toolbar = UISupport.createToolbar(); toolbar.addFixed( UISupport.createToolbarButton( new RunAction() ) ); toolbar.addRelatedGap(); toolbar.addFixed( buildLocationsComboBox() ); toolbar.addGlue(); toolbar.addFixed( UISupport.createToolbarButton( new ShowOnline...
diff --git a/src/java/davmail/exchange/dav/DavExchangeSession.java b/src/java/davmail/exchange/dav/DavExchangeSession.java index ef3d925..280f78f 100644 --- a/src/java/davmail/exchange/dav/DavExchangeSession.java +++ b/src/java/davmail/exchange/dav/DavExchangeSession.java @@ -1,2620 +1,2620 @@ /* * DavMail POP/IMAP/...
true
true
private byte[] getICSFromItemProperties() throws IOException { byte[] result = null; // experimental: build VCALENDAR from properties DavPropertyNameSet davPropertyNameSet = new DavPropertyNameSet(); davPropertyNameSet.add(Field.getPropertyName("method")); ...
private byte[] getICSFromItemProperties() throws IOException { byte[] result = null; // experimental: build VCALENDAR from properties DavPropertyNameSet davPropertyNameSet = new DavPropertyNameSet(); davPropertyNameSet.add(Field.getPropertyName("method")); ...
diff --git a/lucene/spatial/src/test/org/apache/lucene/spatial/prefix/TestRecursivePrefixTreeStrategy.java b/lucene/spatial/src/test/org/apache/lucene/spatial/prefix/TestRecursivePrefixTreeStrategy.java index d5c575f288..995fb96a8e 100644 --- a/lucene/spatial/src/test/org/apache/lucene/spatial/prefix/TestRecursivePrefi...
true
true
public void geohashRecursiveRandom() throws IOException { init(12); //1. Iterate test with the cluster at some worldly point of interest Point[] clusterCenters = new Point[]{ctx.makePoint(-180,0), ctx.makePoint(0,90), ctx.makePoint(0,-90)}; for (Point clusterCenter : clusterCenters) { //2. Iter...
public void geohashRecursiveRandom() throws IOException { init(12); //1. Iterate test with the cluster at some worldly point of interest Point[] clusterCenters = new Point[]{ctx.makePoint(-180,0), ctx.makePoint(0,90), ctx.makePoint(0,-90)}; for (Point clusterCenter : clusterCenters) { //2. Iter...
diff --git a/src/org/apache/xerces/jaxp/validation/XMLSchemaFactory.java b/src/org/apache/xerces/jaxp/validation/XMLSchemaFactory.java index 51c427938..2c941d498 100644 --- a/src/org/apache/xerces/jaxp/validation/XMLSchemaFactory.java +++ b/src/org/apache/xerces/jaxp/validation/XMLSchemaFactory.java @@ -1,480 +1,482 @@...
true
true
public Schema newSchema( Source[] schemas ) throws SAXException { // this will let the loader store parsed Grammars into the pool. XMLGrammarPoolImplExtension pool = new XMLGrammarPoolImplExtension(); fXMLGrammarPoolWrapper.setGrammarPool(pool); XMLInputSource[] xml...
public Schema newSchema( Source[] schemas ) throws SAXException { // this will let the loader store parsed Grammars into the pool. XMLGrammarPoolImplExtension pool = new XMLGrammarPoolImplExtension(); fXMLGrammarPoolWrapper.setGrammarPool(pool); XMLInputSource[] xml...
diff --git a/gdx/src/com/badlogic/gdx/graphics/BitmapFont.java b/gdx/src/com/badlogic/gdx/graphics/BitmapFont.java index 4867042b4..47fafd960 100644 --- a/gdx/src/com/badlogic/gdx/graphics/BitmapFont.java +++ b/gdx/src/com/badlogic/gdx/graphics/BitmapFont.java @@ -1,647 +1,648 @@ /* * Copyright (c) 2008-2010, Matthi...
true
true
private void init (FileHandle fontFile, TextureRegion region, boolean flip) { BufferedReader reader = new BufferedReader(new InputStreamReader(fontFile.read()), 512); try { reader.readLine(); // info String[] common = reader.readLine().split(" ", 4); if (common.length < 4) throw new GdxRuntimeException("...
private void init (FileHandle fontFile, TextureRegion region, boolean flip) { BufferedReader reader = new BufferedReader(new InputStreamReader(fontFile.read()), 512); try { reader.readLine(); // info String[] common = reader.readLine().split(" ", 4); if (common.length < 4) throw new GdxRuntimeException("...
diff --git a/apps/animaldb/org/molgenis/animaldb/test/AnimaldbSeleniumTest.java b/apps/animaldb/org/molgenis/animaldb/test/AnimaldbSeleniumTest.java index 241de99ce..9835be2f5 100644 --- a/apps/animaldb/org/molgenis/animaldb/test/AnimaldbSeleniumTest.java +++ b/apps/animaldb/org/molgenis/animaldb/test/AnimaldbSeleniumT...
true
true
public void breedingWorkflow() throws Exception { // Go to Breeding line plugin selenium.click("id=Settings_tab_button"); selenium.waitForPageToLoad(PAGE_LOAD_TIME_OUT); selenium.click("id=ManageLines_tab_button"); selenium.waitForPageToLoad(PAGE_LOAD_TIME_OUT); Assert.assertTrue(selenium.isTextPresent("B...
public void breedingWorkflow() throws Exception { // Go to Breeding line plugin selenium.click("id=Settings_tab_button"); selenium.waitForPageToLoad(PAGE_LOAD_TIME_OUT); selenium.click("id=ManageLines_tab_button"); selenium.waitForPageToLoad(PAGE_LOAD_TIME_OUT); Assert.assertTrue(selenium.isTextPresent("B...
diff --git a/src/powercrystals/minefactoryreloaded/render/RendererFactoryGlassPane.java b/src/powercrystals/minefactoryreloaded/render/RendererFactoryGlassPane.java index 18fd325e..12b6ef11 100644 --- a/src/powercrystals/minefactoryreloaded/render/RendererFactoryGlassPane.java +++ b/src/powercrystals/minefactoryreloade...
true
true
public boolean renderWorldBlock(IBlockAccess blockAccess, int x, int y, int z, Block block, int modelId, RenderBlocks renderer) { BlockFactoryGlassPane pane = (BlockFactoryGlassPane)block; int l = blockAccess.getHeight(); Tessellator tessellator = Tessellator.instance; tessellator.setBrightness(pane.getMix...
public boolean renderWorldBlock(IBlockAccess blockAccess, int x, int y, int z, Block block, int modelId, RenderBlocks renderer) { BlockFactoryGlassPane pane = (BlockFactoryGlassPane)block; int l = blockAccess.getHeight(); Tessellator tessellator = Tessellator.instance; tessellator.setBrightness(pane.getMix...
diff --git a/common/net/minecraftforge/common/ForgeInternalHandler.java b/common/net/minecraftforge/common/ForgeInternalHandler.java index 16c516949..c7020d911 100644 --- a/common/net/minecraftforge/common/ForgeInternalHandler.java +++ b/common/net/minecraftforge/common/ForgeInternalHandler.java @@ -1,28 +1,28 @@ pack...
true
true
public void onEntityJoinWorld(EntityJoinWorldEvent event) { Entity entity = event.entity; if (entity instanceof EntityItem) { ItemStack item = ((EntityItem)entity).item; if (item.getItem().hasCustomEntity(item)) { Entity newEntity = ite...
public void onEntityJoinWorld(EntityJoinWorldEvent event) { Entity entity = event.entity; if (entity instanceof EntityItem) { ItemStack item = ((EntityItem)entity).item; if (item.getItem().hasCustomEntity(item)) { Entity newEntity = ite...
diff --git a/src/org/odk/collect/android/UploaderTask.java b/src/org/odk/collect/android/UploaderTask.java index 4d71405..cced9d5 100644 --- a/src/org/odk/collect/android/UploaderTask.java +++ b/src/org/odk/collect/android/UploaderTask.java @@ -1,136 +1,136 @@ /* * Copyright (C) 2009 Google Inc. * * Licensed un...
false
true
protected Void doInBackground(String... values) { for (int i = 0; i < values.length; i++) { this.publishProgress(i+1, values.length); DefaultHttpClient httpclient = new DefaultHttpClient(); //this should get set in a preferences window or something. HttpPost...
protected Void doInBackground(String... values) { for (int i = 0; i < values.length; i++) { this.publishProgress(i+1, values.length); DefaultHttpClient httpclient = new DefaultHttpClient(); //this should get set in a preferences window or something. HttpPost...
diff --git a/src/main/java/hudson/plugins/clover/CloverBuildWrapper.java b/src/main/java/hudson/plugins/clover/CloverBuildWrapper.java index 9426da0..093801b 100644 --- a/src/main/java/hudson/plugins/clover/CloverBuildWrapper.java +++ b/src/main/java/hudson/plugins/clover/CloverBuildWrapper.java @@ -1,173 +1,174 @@ pa...
true
true
public Launcher decorateLauncher(AbstractBuild build, Launcher launcher, BuildListener listener) throws IOException, InterruptedException, Run.RunnerAbortedException { final DescriptorImpl descriptor = Hudson.getInstance().getDescriptorByType(DescriptorImpl.class); final String license = Util.nul...
public Launcher decorateLauncher(AbstractBuild build, Launcher launcher, BuildListener listener) throws IOException, InterruptedException, Run.RunnerAbortedException { final DescriptorImpl descriptor = Hudson.getInstance().getDescriptorByType(DescriptorImpl.class); final String license = Util.nul...
diff --git a/src/java/com/sapienter/jbilling/server/mediation/task/AbstractFileReader.java b/src/java/com/sapienter/jbilling/server/mediation/task/AbstractFileReader.java index 622bfc37..34240483 100644 --- a/src/java/com/sapienter/jbilling/server/mediation/task/AbstractFileReader.java +++ b/src/java/com/sapienter/jbil...
true
true
private Record convertLineToRecord(String line) { String lineErrorString=null; // get the raw fields from the line String tokens[] = splitFields(line); if (tokens.length != format.getFields().size() && !autoID) { lineErrorString="Mismatch of nu...
private Record convertLineToRecord(String line) { String lineErrorString=null; // get the raw fields from the line String tokens[] = splitFields(line); if (tokens.length != format.getFields().size() && !autoID) { lineErrorString="Mismatch of nu...
diff --git a/mes-plugins/mes-plugins-production-counting/src/main/java/com/qcadoo/mes/productionCounting/internal/print/ProductionCountingPdfService.java b/mes-plugins/mes-plugins-production-counting/src/main/java/com/qcadoo/mes/productionCounting/internal/print/ProductionCountingPdfService.java index fd3342d55a..d4300...
true
true
private void addProductionRecord(final Document document, final Entity productionRecord, final Locale locale) throws DocumentException { document.add(new Paragraph(translationService.translate("productionCounting.productionCounting.report.paragraph", locale) + " " + productionRec...
private void addProductionRecord(final Document document, final Entity productionRecord, final Locale locale) throws DocumentException { document.add(new Paragraph(translationService.translate("productionCounting.productionCounting.report.paragraph", locale) + " " + productionRec...
diff --git a/Common/pharabus/mods/aeperipheral/TileEntityAEPeripheral.java b/Common/pharabus/mods/aeperipheral/TileEntityAEPeripheral.java index 154af01..e1a98c8 100644 --- a/Common/pharabus/mods/aeperipheral/TileEntityAEPeripheral.java +++ b/Common/pharabus/mods/aeperipheral/TileEntityAEPeripheral.java @@ -1,328 +1,32...
true
true
public Object[] callMethod(IComputerAccess computer, int method, Object[] arguments) throws Exception { Map<String, String> ret = new HashMap<String, String>(); if (!hasPower) return new Object[] { "No Power" }; if (myGrid == null) return new Object[] { "...
public Object[] callMethod(IComputerAccess computer, int method, Object[] arguments) throws Exception { Map<String, String> ret = new HashMap<String, String>(); if (!hasPower) return new Object[] { "No Power" }; if (myGrid == null) return new Object[] { "...
diff --git a/src/com/farpost/intellij/remotecall/notifier/SocketMessageNotifier.java b/src/com/farpost/intellij/remotecall/notifier/SocketMessageNotifier.java index 7b3b8d8..046bfdc 100644 --- a/src/com/farpost/intellij/remotecall/notifier/SocketMessageNotifier.java +++ b/src/com/farpost/intellij/remotecall/notifier/So...
true
true
public void run() { while (true) { Socket clientSocket; try { clientSocket = serverSocket.accept(); if (!clientSocket.getInetAddress().getHostAddress().equals("127.0.0.1")) { log.warn("Not allowed requests from " + clientSocket.getInetAddress().getHostAddress()); continue; } } catch (...
public void run() { while (true) { Socket clientSocket; try { clientSocket = serverSocket.accept(); if (!clientSocket.getInetAddress().getHostAddress().equals("127.0.0.1")) { log.warn("Not allowed requests from " + clientSocket.getInetAddress().getHostAddress()); continue; } } catch (...
diff --git a/java/marytts/modules/phonemiser/Syllabifier.java b/java/marytts/modules/phonemiser/Syllabifier.java index f75479f4f..0238ad7af 100755 --- a/java/marytts/modules/phonemiser/Syllabifier.java +++ b/java/marytts/modules/phonemiser/Syllabifier.java @@ -1,347 +1,348 @@ /** * Copyright 2000-2006 DFKI GmbH. *...
true
true
public void syllabify(LinkedList<String> phoneList) { // Regel(1a) // Jede Grenze einer morphologischen Wurzel stellt eine // Silbengrenze dar. // Regel(1b) // Jede Grenze eines Präfixes stellt eine Silbengrenze dar. // Dort, wo ein Fugensuffix bzw ein Suffix begi...
public void syllabify(LinkedList<String> phoneList) { // Regel(1a) // Jede Grenze einer morphologischen Wurzel stellt eine // Silbengrenze dar. // Regel(1b) // Jede Grenze eines Präfixes stellt eine Silbengrenze dar. // Dort, wo ein Fugensuffix bzw ein Suffix begi...
diff --git a/src/edu/kit/asa/alloy2relsmt/smt/RelTheory.java b/src/edu/kit/asa/alloy2relsmt/smt/RelTheory.java index 8b5f6fc..498ec30 100644 --- a/src/edu/kit/asa/alloy2relsmt/smt/RelTheory.java +++ b/src/edu/kit/asa/alloy2relsmt/smt/RelTheory.java @@ -1,1072 +1,1072 @@ package edu.kit.asa.alloy2relsmt.smt; import ...
true
true
public void declareProduct(int lar, int rar) throws ModelException { if(lar < 1 || rar < 1) throw new ModelException("The product is not defined for arguments of arity 0."); declareAtom(); declareRel(rar); declareRel(lar); declareRel(lar + rar); declareIn(rar); declareIn(lar); declareIn(lar + rar); ...
public void declareProduct(int lar, int rar) throws ModelException { if(lar < 1 || rar < 1) throw new ModelException("The product is not defined for arguments of arity 0."); declareAtom(); declareRel(rar); declareRel(lar); declareRel(lar + rar); declareIn(rar); declareIn(lar); declareIn(lar + rar); ...
diff --git a/web/src/main/java/org/openmrs/web/filter/initialization/InitializationFilter.java b/web/src/main/java/org/openmrs/web/filter/initialization/InitializationFilter.java index 3fb40628..c1511aa5 100644 --- a/web/src/main/java/org/openmrs/web/filter/initialization/InitializationFilter.java +++ b/web/src/main/ja...
true
true
protected void doPost(HttpServletRequest httpRequest, HttpServletResponse httpResponse) throws IOException, ServletException { String page = httpRequest.getParameter("page"); Map<String, Object> referenceMap = new HashMap<String, Object>(); // we need to save current user language in references map s...
protected void doPost(HttpServletRequest httpRequest, HttpServletResponse httpResponse) throws IOException, ServletException { String page = httpRequest.getParameter("page"); Map<String, Object> referenceMap = new HashMap<String, Object>(); // we need to save current user language in references map s...
diff --git a/src/cz/muni/stanse/automatonchecker/ErrorTracesListCreator.java b/src/cz/muni/stanse/automatonchecker/ErrorTracesListCreator.java index 278b3ae..059aa40 100644 --- a/src/cz/muni/stanse/automatonchecker/ErrorTracesListCreator.java +++ b/src/cz/muni/stanse/automatonchecker/ErrorTracesListCreator.java @@ -1,2...
true
true
public boolean visit(final List<CFGNode> path, final java.util.Stack<CFGNode> cfgContext) { if (getErrorTracesList().size() >= 20 || isLimitOfRejectedMeasureExceeded()) return false; final CFGNode node = path.iterator().next(); if (getSt...
public boolean visit(final List<CFGNode> path, final java.util.Stack<CFGNode> cfgContext) { if (getErrorTracesList().size() >= 20 || path.size() > 100 || isLimitOfRejectedMeasureExceeded()) return false; final CFGNode node = path.iterator().next(...
diff --git a/TestProject/src/test/PlayerTest.java b/TestProject/src/test/PlayerTest.java index 7dc5974..ce73389 100644 --- a/TestProject/src/test/PlayerTest.java +++ b/TestProject/src/test/PlayerTest.java @@ -1,56 +1,57 @@ package test; import java.util.ArrayList; import se.chalmers.dat255.risk.model.Card; impo...
true
true
public void testExhangeCard(){ ArrayList<String> provinces = new ArrayList<String>(); provinces.add("Hej"); provinces.add("Hejhopp"); provinces.add("Hejmamma"); Player player = new Player(1, "Testare"); player.addCard(); player.addCard(); player.addCard(); Card card1 = player.getCards().get(2); Car...
public void testExhangeCard(){ ArrayList<String> provinces = new ArrayList<String>(); provinces.add("Hej"); provinces.add("Hejhopp"); provinces.add("Hejmamma"); Deck deck = Deck.getInstance(provinces, 2); Player player = new Player(1, "Testare"); player.addCard(); player.addCard(); player.addCard(); ...
diff --git a/CheckAppClient/src/com/android/task/picture/PhotoCapturer.java b/CheckAppClient/src/com/android/task/picture/PhotoCapturer.java index 5ff9bc9..3ae9670 100755 --- a/CheckAppClient/src/com/android/task/picture/PhotoCapturer.java +++ b/CheckAppClient/src/com/android/task/picture/PhotoCapturer.java @@ -1,177 +...
true
true
public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); // ����ȫ�� requestWindowFeature(Window.FEATURE_NO_TITLE); getWindow().setFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN, WindowManager.LayoutParams.FLAG_FULLSCREEN); setContentView(R.layout.cam_pic_layout); sView...
public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); // ����ȫ�� requestWindowFeature(Window.FEATURE_NO_TITLE); getWindow().setFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN, WindowManager.LayoutParams.FLAG_FULLSCREEN); setContentView(R.layout.cam_pic_layout); sView...
diff --git a/main/src/com/google/refine/expr/functions/ToString.java b/main/src/com/google/refine/expr/functions/ToString.java index 7611b85f..ef66de61 100644 --- a/main/src/com/google/refine/expr/functions/ToString.java +++ b/main/src/com/google/refine/expr/functions/ToString.java @@ -1,88 +1,83 @@ /* Copyright 20...
false
true
public Object call(Properties bindings, Object[] args) { if (args.length >= 1) { Object o1 = args[0]; if (o1 != null) { if (o1 instanceof Date) { Calendar c = Calendar.getInstance(); c.setTime((Date) o1); o1 ...
public Object call(Properties bindings, Object[] args) { if (args.length >= 1) { Object o1 = args[0]; if (o1 != null) { if (o1 instanceof Calendar || o1 instanceof Date) { DateFormat formatter = null; if (args.length == 2) { ...
diff --git a/src/de/ololololo/test/DataSourceTest.java b/src/de/ololololo/test/DataSourceTest.java index a1e4b76..5d12f1c 100644 --- a/src/de/ololololo/test/DataSourceTest.java +++ b/src/de/ololololo/test/DataSourceTest.java @@ -1,22 +1,22 @@ package de.ololololo.test; import de.ololololo.*; import java.util.*; ...
true
true
public void main () { dataSource = new DataSource(); dataSource.printAllTasks(); dataSource.newTask("Test", new Date()); dataSource.newTask("neu 2", new Date()); dataSource.printAllTasks(); }
public void main () { dataSource = DataSource.getInstance(); dataSource.printAllTasks(); dataSource.newTask("Test", new Date()); dataSource.newTask("neu 2", new Date()); dataSource.printAllTasks(); }
diff --git a/src/com/android/camera/ui/ScrollerView.java b/src/com/android/camera/ui/ScrollerView.java index 37ba8c0a..0552516f 100644 --- a/src/com/android/camera/ui/ScrollerView.java +++ b/src/com/android/camera/ui/ScrollerView.java @@ -1,1849 +1,1851 @@ /* * Copyright (C) 2012 The Android Open Source Project * ...
true
true
public boolean onTouchEvent(MotionEvent ev) { initVelocityTrackerIfNotExists(); mVelocityTracker.addMovement(ev); final int action = ev.getAction(); switch (action & MotionEvent.ACTION_MASK) { case MotionEvent.ACTION_DOWN: { mIsBeingDragged = getChildCoun...
public boolean onTouchEvent(MotionEvent ev) { initVelocityTrackerIfNotExists(); mVelocityTracker.addMovement(ev); final int action = ev.getAction(); switch (action & MotionEvent.ACTION_MASK) { case MotionEvent.ACTION_DOWN: { mIsBeingDragged = getChildCoun...
diff --git a/mifosng-provider/src/main/java/org/mifosplatform/portfolio/search/service/SearchReadPlatformServiceImpl.java b/mifosng-provider/src/main/java/org/mifosplatform/portfolio/search/service/SearchReadPlatformServiceImpl.java index cd80e94b0..fb6edb452 100644 --- a/mifosng-provider/src/main/java/org/mifosplatfor...
true
true
public String searchSchema(final SearchConditions searchConditions) { String union = " union all "; String clientExactMatchSql = " (select 'CLIENT' as entityType, c.id as entityId, c.display_name as entityName, c.external_id as entityExternalId, c.account_no as entityAccountNo " ...
public String searchSchema(final SearchConditions searchConditions) { String union = " union "; String clientExactMatchSql = " (select 'CLIENT' as entityType, c.id as entityId, c.display_name as entityName, c.external_id as entityExternalId, c.account_no as entityAccountNo " ...
diff --git a/src/com/google/sitebricks/rendering/control/HeaderWidget.java b/src/com/google/sitebricks/rendering/control/HeaderWidget.java index 17c0156..091748c 100644 --- a/src/com/google/sitebricks/rendering/control/HeaderWidget.java +++ b/src/com/google/sitebricks/rendering/control/HeaderWidget.java @@ -1,44 +1,45 ...
true
true
public void render(Object bound, Respond respond) { XmlWidget.writeOpenTag(bound, respond, "head", attribs); //render children (as necessary) widgetChain.render(bound, respond); respond.withHtml() .headerPlaceholder(); //TODO replace placeholder with an index? respond.write("</head>"); ...
public void render(Object bound, Respond respond) { XmlWidget.writeOpenTag(bound, respond, "head", attribs); respond.write('>'); //render children (as necessary) widgetChain.render(bound, respond); respond.withHtml() .headerPlaceholder(); //TODO replace placeholder with an index? res...
diff --git a/src/org/opensolaris/opengrok/configuration/Configuration.java b/src/org/opensolaris/opengrok/configuration/Configuration.java index 8763fd3..1e3cd79 100644 --- a/src/org/opensolaris/opengrok/configuration/Configuration.java +++ b/src/org/opensolaris/opengrok/configuration/Configuration.java @@ -1,474 +1,47...
true
true
public Configuration() { //defaults for an opengrok instance configuration setHistoryCache(true); setHistoryCacheTime(30); setHistoryCacheInDB(false); setProjects(new ArrayList<Project>()); setRepositories(new ArrayList<RepositoryInfo>()); setUrlPrefix("/sourc...
public Configuration() { //defaults for an opengrok instance configuration setHistoryCache(true); setHistoryCacheTime(30); setHistoryCacheInDB(false); setProjects(new ArrayList<Project>()); setRepositories(new ArrayList<RepositoryInfo>()); setUrlPrefix("/sourc...