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/src/ar/com/jolisper/enumerable/core/Reduce.java b/src/ar/com/jolisper/enumerable/core/Reduce.java index e791ba3..06da23a 100644 --- a/src/ar/com/jolisper/enumerable/core/Reduce.java +++ b/src/ar/com/jolisper/enumerable/core/Reduce.java @@ -1,20 +1,20 @@ package ar.com.jolisper.enumerable.core; import j...
true
true
public Object reduce(ResultType initValue, List<? extends CollectionType> collection) { ResultType result = initValue; for ( CollectionType element : collection ) { result = logic( result , element ); } return result; }
public ResultType reduce(ResultType initValue, List<? extends CollectionType> collection) { ResultType result = initValue; for ( CollectionType element : collection ) { result = logic( result , element ); } return result; }
diff --git a/src/org/apache/xalan/xsltc/trax/Util.java b/src/org/apache/xalan/xsltc/trax/Util.java index a4d9f1b1..91f751f3 100644 --- a/src/org/apache/xalan/xsltc/trax/Util.java +++ b/src/org/apache/xalan/xsltc/trax/Util.java @@ -1,167 +1,164 @@ /* * @(#)$Id$ * * The Apache Software License, Version 1.1 * *...
true
true
public static InputSource getInputSource(XSLTC xsltc, Source source) throws TransformerConfigurationException { InputSource input = null; String systemId = source.getSystemId(); if (systemId == null) { systemId = ""; } try { // Try to get InputSource from SAXSource input if (source insta...
public static InputSource getInputSource(XSLTC xsltc, Source source) throws TransformerConfigurationException { InputSource input = null; String systemId = source.getSystemId(); try { // Try to get InputSource from SAXSource input if (source instanceof SAXSource) { final SAXSource sa...
diff --git a/xwords4/android/XWords4/src/org/eehouse/android/xw4/GamesList.java b/xwords4/android/XWords4/src/org/eehouse/android/xw4/GamesList.java index 60b08e681..ff1677320 100644 --- a/xwords4/android/XWords4/src/org/eehouse/android/xw4/GamesList.java +++ b/xwords4/android/XWords4/src/org/eehouse/android/xw4/GamesL...
false
true
protected Dialog onCreateDialog( int id ) { DialogInterface.OnClickListener lstnr; DialogInterface.OnClickListener lstnr2; LinearLayout layout; Dialog dialog = super.onCreateDialog( id ); if ( null == dialog ) { AlertDialog.Builder ab; switch ( id...
protected Dialog onCreateDialog( int id ) { DialogInterface.OnClickListener lstnr; DialogInterface.OnClickListener lstnr2; LinearLayout layout; Dialog dialog = super.onCreateDialog( id ); if ( null == dialog ) { AlertDialog.Builder ab; switch ( id...
diff --git a/src/com/android/calendar/EditEvent.java b/src/com/android/calendar/EditEvent.java index 40360936..43d99a37 100644 --- a/src/com/android/calendar/EditEvent.java +++ b/src/com/android/calendar/EditEvent.java @@ -1,2335 +1,2335 @@ /* * Copyright (C) 2008 The Android Open Source Project * * Licensed und...
true
true
private boolean save() { boolean forceSaveReminders = false; // If we are creating a new event, then make sure we wait until the // query to fetch the list of calendars has finished. if (mEventCursor == null) { if (!mCalendarsQueryComplete) { // Wait for ...
private boolean save() { boolean forceSaveReminders = false; // If we are creating a new event, then make sure we wait until the // query to fetch the list of calendars has finished. if (mEventCursor == null) { if (!mCalendarsQueryComplete) { // Wait for ...
diff --git a/main/src/main/java/com/bloatit/framework/xcgiserver/LazyLoaders.java b/main/src/main/java/com/bloatit/framework/xcgiserver/LazyLoaders.java index e02ce3fb2..aed0453b1 100644 --- a/main/src/main/java/com/bloatit/framework/xcgiserver/LazyLoaders.java +++ b/main/src/main/java/com/bloatit/framework/xcgiserver/...
true
true
public Map<String, String> convert(final String stringValue) { final HashMap<String, String> map = new HashMap<String, String>(); final String[] namedValues = stringValue.split(";"); for (final String namedValue : namedValues) { final String[] aValue = namedVa...
public Map<String, String> convert(final String stringValue) { final HashMap<String, String> map = new HashMap<String, String>(); final String[] namedValues = stringValue.split(";"); for (final String namedValue : namedValues) { final String[] aValue = namedVa...
diff --git a/src/main/battlecode/world/GameWorld.java b/src/main/battlecode/world/GameWorld.java index 1bcdfe36..b3e49ff6 100644 --- a/src/main/battlecode/world/GameWorld.java +++ b/src/main/battlecode/world/GameWorld.java @@ -1,790 +1,791 @@ package battlecode.world; import java.util.ArrayDeque; import java.util....
true
true
public void processEndOfRound() { // process all gameobjects InternalObject[] gameObjects = new InternalObject[gameObjectsByID.size()]; gameObjects = gameObjectsByID.values().toArray(gameObjects); for (int i = 0; i < gameObjects.length; i++) { gameObjects[i].processEndOfR...
public void processEndOfRound() { // process all gameobjects InternalObject[] gameObjects = new InternalObject[gameObjectsByID.size()]; gameObjects = gameObjectsByID.values().toArray(gameObjects); for (int i = 0; i < gameObjects.length; i++) { gameObjects[i].processEndOfR...
diff --git a/core/interpreter/src/test/java/org/overture/interpreter/tests/ClassesPpInterpreterTestSuite.java b/core/interpreter/src/test/java/org/overture/interpreter/tests/ClassesPpInterpreterTestSuite.java index 9520b6d0d1..1582dd3d99 100644 --- a/core/interpreter/src/test/java/org/overture/interpreter/tests/Classes...
true
true
public static Test suite() throws IllegalArgumentException, SecurityException, InstantiationException, IllegalAccessException, InvocationTargetException, NoSuchMethodException, IOException { org.overturetool.test.framework.Properties.recordTestResults = false; String name = "Interpreter Class PP TestSuite"; Str...
public static Test suite() throws IllegalArgumentException, SecurityException, InstantiationException, IllegalAccessException, InvocationTargetException, NoSuchMethodException, IOException { org.overturetool.test.framework.Properties.recordTestResults = false; String name = "Interpreter Class PP TestSuite"; Str...
diff --git a/signserver/src/java/org/signserver/protocol/ws/client/WSClientUtil.java b/signserver/src/java/org/signserver/protocol/ws/client/WSClientUtil.java index 6a618f10f..e64fafc56 100644 --- a/signserver/src/java/org/signserver/protocol/ws/client/WSClientUtil.java +++ b/signserver/src/java/org/signserver/protocol...
false
true
public static List<org.signserver.protocol.ws.ProcessResponseWS> convertProcessResponseWS( List<ProcessResponseWS> signResponseWS){ List<org.signserver.protocol.ws.ProcessResponseWS> retval = new ArrayList<org.signserver.protocol.ws.ProcessResponseWS>(); for (Iterator<ProcessResponseWS> iterator = signRespo...
public static List<org.signserver.protocol.ws.ProcessResponseWS> convertProcessResponseWS( List<ProcessResponseWS> signResponseWS){ List<org.signserver.protocol.ws.ProcessResponseWS> retval = new ArrayList<org.signserver.protocol.ws.ProcessResponseWS>(); for (Iterator<ProcessResponseWS> iterator = signRespo...
diff --git a/src/main/java/com/g414/st9/proto/service/validator/SmallStringValidator.java b/src/main/java/com/g414/st9/proto/service/validator/SmallStringValidator.java index 4850632..179999f 100644 --- a/src/main/java/com/g414/st9/proto/service/validator/SmallStringValidator.java +++ b/src/main/java/com/g414/st9/proto...
false
true
public String validateTransform(Object instance) throws ValidationException { if (instance == null) { throw new ValidationException("'" + attribute + "' must not be null"); } String instanceString = instance.toString(); int length = instanceString.len...
public String validateTransform(Object instance) throws ValidationException { if (instance == null) { throw new ValidationException("'" + attribute + "' must not be null"); } String instanceString = instance.toString(); int length = instanceString.len...
diff --git a/src/org/rsbot/util/io/IniParser.java b/src/org/rsbot/util/io/IniParser.java index 1d003e95..d62a6398 100644 --- a/src/org/rsbot/util/io/IniParser.java +++ b/src/org/rsbot/util/io/IniParser.java @@ -1,109 +1,109 @@ package org.rsbot.util.io; import java.io.BufferedReader; import java.io.BufferedWriter;...
true
true
public static HashMap<String, HashMap<String, String>> deserialise(final BufferedReader input) throws IOException { final HashMap<String, HashMap<String, String>> data = new HashMap<String, HashMap<String, String>>(); String line, section = emptySection; while ((line = input.readLine()) != null) { line = lin...
public static HashMap<String, HashMap<String, String>> deserialise(final BufferedReader input) throws IOException { final HashMap<String, HashMap<String, String>> data = new HashMap<String, HashMap<String, String>>(); String line, section = emptySection; while ((line = input.readLine()) != null) { line = lin...
diff --git a/src/main/java/org/iplantc/de/client/views/MyDataGrid.java b/src/main/java/org/iplantc/de/client/views/MyDataGrid.java index 835097d9..fae6371b 100644 --- a/src/main/java/org/iplantc/de/client/views/MyDataGrid.java +++ b/src/main/java/org/iplantc/de/client/views/MyDataGrid.java @@ -1,845 +1,845 @@ package ...
true
true
public void showMenu(int x, int y) { List<DiskResource> selected = getSelectionModel().getSelectedItems(); List<DataUtils.Action> actions = DataUtils.getSupportedActions(selected); if (menuActions != null && actions.size() > 0) { for (Component item : menuActions.getItems()) { ...
public void showMenu(int x, int y) { List<DiskResource> selected = getSelectionModel().getSelectedItems(); List<DataUtils.Action> actions = DataUtils.getSupportedActions(selected); if (menuActions != null && actions.size() > 0) { for (Component item : menuActions.getItems()) { ...
diff --git a/src/main/java/org/mule/modules/morphia/QueryBuilder.java b/src/main/java/org/mule/modules/morphia/QueryBuilder.java index 8e4a756..48cc115 100644 --- a/src/main/java/org/mule/modules/morphia/QueryBuilder.java +++ b/src/main/java/org/mule/modules/morphia/QueryBuilder.java @@ -1,138 +1,136 @@ /** * Mule M...
true
true
public Query<?> getQuery() throws ClassNotFoundException { if( disableCursorTimeout != null && disableValidation.booleanValue() ) { query.disableCursorTimeout(); } if( disableSnapshotMode != null && disableSnapshotMode.booleanValue() ) { query.disableSnapshotMode(); ...
public Query<?> getQuery() throws ClassNotFoundException { if( disableCursorTimeout != null && disableValidation.booleanValue() ) { query.disableCursorTimeout(); } if( disableSnapshotMode != null && disableSnapshotMode.booleanValue() ) { query.disableSnapshotMode(); ...
diff --git a/org.eclipse.xtext.xdoc/xtend-gen/org/eclipse/xtext/xdoc/generator/EclipseHelpUriUtil.java b/org.eclipse.xtext.xdoc/xtend-gen/org/eclipse/xtext/xdoc/generator/EclipseHelpUriUtil.java index d225e9f..a0b7c1b 100644 --- a/org.eclipse.xtext.xdoc/xtend-gen/org/eclipse/xtext/xdoc/generator/EclipseHelpUriUtil.java...
true
true
public URI getTargetURI(final AbstractSection it) { URI _switchResult = null; boolean _matched = false; if (!_matched) { if (it instanceof PartRef) { final PartRef _partRef = (PartRef)it; _matched=true; Part _part = _partRef.getPart(); URI _targetURI = this.getTargetU...
public URI getTargetURI(final AbstractSection it) { URI _switchResult = null; boolean _matched = false; if (!_matched) { if (it instanceof PartRef) { final PartRef _partRef = (PartRef)it; _matched=true; Part _part = _partRef.getPart(); URI _targetURI = this.getTargetU...
diff --git a/proxytoys/website/src/java/minimesh/LinkChecker.java b/proxytoys/website/src/java/minimesh/LinkChecker.java index 7519a57..06e025d 100644 --- a/proxytoys/website/src/java/minimesh/LinkChecker.java +++ b/proxytoys/website/src/java/minimesh/LinkChecker.java @@ -1,85 +1,85 @@ package minimesh; import java...
true
true
protected boolean verifyLink(String link) { if (link.startsWith("mailto:")) { // todo: valid email addresses should be configurable return true; } else if (link.startsWith("http://")) { // todo: HTTP get this address to check it's valid (cache result) ...
protected boolean verifyLink(String link) { if (link.startsWith("mailto:")) { // todo: valid email addresses should be configurable return true; } else if (link.startsWith("http://")) { // todo: HTTP get this address to check it's valid (cache result) ...
diff --git a/test/src/com/redhat/ceylon/compiler/java/test/metamodel/MetamodelTest.java b/test/src/com/redhat/ceylon/compiler/java/test/metamodel/MetamodelTest.java index ff408c193..f6b8ffe61 100755 --- a/test/src/com/redhat/ceylon/compiler/java/test/metamodel/MetamodelTest.java +++ b/test/src/com/redhat/ceylon/compile...
true
true
public void testBug1209() { assertErrors("bug1209", new CompilerError(3, "metamodel references to local values not supported") ); }
public void testBug1209() { assertErrors("bug1209", new CompilerError(3, "metamodel reference to local value") ); }
diff --git a/src/com/android/gallery3d/ui/DialogDetailsView.java b/src/com/android/gallery3d/ui/DialogDetailsView.java index 07ebc3c..adc9de1 100644 --- a/src/com/android/gallery3d/ui/DialogDetailsView.java +++ b/src/com/android/gallery3d/ui/DialogDetailsView.java @@ -1,250 +1,250 @@ /* * Copyright (C) 2011 The Andr...
true
true
private void setDetails(Context context, MediaDetails details) { for (Entry<Integer, Object> detail : details) { String value; switch (detail.getKey()) { case MediaDetails.INDEX_LOCATION: { double[] latlng = (double[]) detai...
private void setDetails(Context context, MediaDetails details) { for (Entry<Integer, Object> detail : details) { String value; switch (detail.getKey()) { case MediaDetails.INDEX_LOCATION: { double[] latlng = (double[]) detai...
diff --git a/plugins/org.eclipse.birt.report.data.adapter/src/org/eclipse/birt/report/data/adapter/impl/MetaDataPopulator.java b/plugins/org.eclipse.birt.report.data.adapter/src/org/eclipse/birt/report/data/adapter/impl/MetaDataPopulator.java index e21769e01..728704ffe 100644 --- a/plugins/org.eclipse.birt.report.data....
false
true
public static IResultMetaData retrieveResultMetaData( DataSetHandle dataSetHandle ) throws BirtException { List resultSetList = null; if ( dataSetHandle instanceof OdaDataSetHandle ) { PropertyHandle handle = dataSetHandle.getPropertyHandle( OdaDataSetHandle.RESULT_SET_PROP ); if ( handle.isLocal( ) ) ...
public static IResultMetaData retrieveResultMetaData( DataSetHandle dataSetHandle ) throws BirtException { List resultSetList = null; if ( dataSetHandle instanceof OdaDataSetHandle ) { PropertyHandle handle = dataSetHandle.getPropertyHandle( OdaDataSetHandle.RESULT_SET_PROP ); resultSetList = handle.ge...
diff --git a/twitter4j-core/src/main/java/twitter4j/internal/http/commons40/CommonsHttpClientImpl.java b/twitter4j-core/src/main/java/twitter4j/internal/http/commons40/CommonsHttpClientImpl.java index 31fb0037..ff84cb92 100644 --- a/twitter4j-core/src/main/java/twitter4j/internal/http/commons40/CommonsHttpClientImpl.ja...
true
true
public twitter4j.internal.http.HttpResponse request(twitter4j.internal.http.HttpRequest req) throws TwitterException { try { HttpClient client = new DefaultHttpClient(); HttpRequestBase commonsRequest = null; if (req.getMethod() == RequestMethod.GET) { co...
public twitter4j.internal.http.HttpResponse request(twitter4j.internal.http.HttpRequest req) throws TwitterException { try { HttpClient client = new DefaultHttpClient(); HttpRequestBase commonsRequest = null; if (req.getMethod() == RequestMethod.GET) { co...
diff --git a/src/powercrystals/minefactoryreloaded/tile/machine/TileEntityLiquidRouter.java b/src/powercrystals/minefactoryreloaded/tile/machine/TileEntityLiquidRouter.java index cb927039..383ee423 100644 --- a/src/powercrystals/minefactoryreloaded/tile/machine/TileEntityLiquidRouter.java +++ b/src/powercrystals/minefa...
false
true
private int weightedRouteLiquid(LiquidStack resource, int[] routes, int amountRemaining, boolean doFill) { if(amountRemaining < totalWeight(routes)) { int outdir = weightedRandomSide(routes); TileEntity te = BlockPosition.getAdjacentTileEntity(this, _outputDirections[outdir]); if(te != null && te instanc...
private int weightedRouteLiquid(LiquidStack resource, int[] routes, int amountRemaining, boolean doFill) { if(amountRemaining < totalWeight(routes)) { int outdir = weightedRandomSide(routes); TileEntity te = BlockPosition.getAdjacentTileEntity(this, _outputDirections[outdir]); if(te != null && te instanc...
diff --git a/src/main/java/org/elasticsearch/index/fielddata/FieldDataStats.java b/src/main/java/org/elasticsearch/index/fielddata/FieldDataStats.java index f9255ab2dd5..33f898f02b0 100644 --- a/src/main/java/org/elasticsearch/index/fielddata/FieldDataStats.java +++ b/src/main/java/org/elasticsearch/index/fielddata/Fie...
true
true
public XContentBuilder toXContent(XContentBuilder builder, Params params) throws IOException { builder.startObject(Fields.FIELD_DATA); builder.field(Fields.MEMORY_SIZE, memorySize); builder.field(Fields.MEMORY_SIZE_IN_BYTES, getMemorySize().toString()); builder.field(Fields.EVICTIONS...
public XContentBuilder toXContent(XContentBuilder builder, Params params) throws IOException { builder.startObject(Fields.FIELD_DATA); builder.field(Fields.MEMORY_SIZE, getMemorySize().toString()); builder.field(Fields.MEMORY_SIZE_IN_BYTES, memorySize); builder.field(Fields.EVICTIONS...
diff --git a/src/com/dmdirc/addons/ui_swing/textpane/TextPaneCanvas.java b/src/com/dmdirc/addons/ui_swing/textpane/TextPaneCanvas.java index c57da84e..4d751342 100644 --- a/src/com/dmdirc/addons/ui_swing/textpane/TextPaneCanvas.java +++ b/src/com/dmdirc/addons/ui_swing/textpane/TextPaneCanvas.java @@ -1,944 +1,944 @@ ...
true
true
private void paintOntoGraphics(final Graphics2D g) { final float formatWidth = getWidth() - DOUBLE_SIDE_PADDING; final float formatHeight = getHeight(); float drawPosY = formatHeight; int paragraphStart; int paragraphEnd; LineBreakMeasurer lineMeasurer; text...
private void paintOntoGraphics(final Graphics2D g) { final float formatWidth = getWidth() - DOUBLE_SIDE_PADDING; final float formatHeight = getHeight(); float drawPosY = formatHeight; int paragraphStart; int paragraphEnd; LineBreakMeasurer lineMeasurer; text...
diff --git a/src/com/irccloud/android/fragment/MessageViewFragment.java b/src/com/irccloud/android/fragment/MessageViewFragment.java index c85aa7f5..6255766b 100644 --- a/src/com/irccloud/android/fragment/MessageViewFragment.java +++ b/src/com/irccloud/android/fragment/MessageViewFragment.java @@ -1,2155 +1,2155 @@ /*...
false
true
private synchronized void insertEvent(final MessageAdapter adapter, EventsDataSource.Event event, boolean backlog, boolean nextIsGrouped) { synchronized(adapterLock) { try { boolean colors = false; if(!event.self && conn != null && conn.getUserInfo() != null && co...
private synchronized void insertEvent(final MessageAdapter adapter, EventsDataSource.Event event, boolean backlog, boolean nextIsGrouped) { synchronized(adapterLock) { try { boolean colors = false; if(!event.self && conn != null && conn.getUserInfo() != null && co...
diff --git a/src/com/justjournal/ctl/AddLink.java b/src/com/justjournal/ctl/AddLink.java index a2c5fcc4..9641e8c4 100644 --- a/src/com/justjournal/ctl/AddLink.java +++ b/src/com/justjournal/ctl/AddLink.java @@ -1,109 +1,109 @@ /* Copyright (c) 2005-2006, Lucas Holt All rights reserved. Redistribution and use in s...
true
true
protected String insidePerform() throws Exception { if (log.isDebugEnabled()) log.debug("insidePerform(): Attempting to add link."); if (this.currentLoginId() < 1) addError("login", "The login timed out or is invalid."); if (title == null || title.length() < 1) ...
protected String insidePerform() throws Exception { if (log.isDebugEnabled()) log.debug("insidePerform(): Attempting to add link."); if (this.currentLoginId() < 1) addError("login", "The login timed out or is invalid."); if (title == null || title.length() < 1) ...
diff --git a/simulator/src/java/main/ca/nengo/model/impl/SocketUDPNode.java b/simulator/src/java/main/ca/nengo/model/impl/SocketUDPNode.java index d42ed627..b7880a8b 100644 --- a/simulator/src/java/main/ca/nengo/model/impl/SocketUDPNode.java +++ b/simulator/src/java/main/ca/nengo/model/impl/SocketUDPNode.java @@ -1,626...
true
true
public void run(float startTime, float endTime) throws SimulationException { // TODO: Thread this thing, so that it doesn't block if the blocking receive calls // are called before the send calls. (waiting for a receive before a send causes // a deadlock situation. if (isSender() && startTime >= m...
public void run(float startTime, float endTime) throws SimulationException { // TODO: Thread this thing, so that it doesn't block if the blocking receive calls // are called before the send calls. (waiting for a receive before a send causes // a deadlock situation. if (isSender() && startTime >= m...
diff --git a/disambiguation-work/disambiguation-work-impl/src/main/java/pl/edu/icm/coansys/disambiguation/work/voter/AuthorsVoter.java b/disambiguation-work/disambiguation-work-impl/src/main/java/pl/edu/icm/coansys/disambiguation/work/voter/AuthorsVoter.java index 08f52c65..ca70e9af 100644 --- a/disambiguation-work/dis...
true
true
private Pair<String[], Boolean> extractSurnames(DocumentProtos.DocumentWrapper doc) { RegexpParser authorParser = new RegexpParser("authorParser.properties", "author"); List<DocumentProtos.Author> authorList = doc.getDocumentMetadata().getBasicMetadata().getAuthorList(); String[] resultByPos...
private Pair<String[], Boolean> extractSurnames(DocumentProtos.DocumentWrapper doc) { RegexpParser authorParser = new RegexpParser("authorParser.properties", "author"); List<DocumentProtos.Author> authorList = doc.getDocumentMetadata().getBasicMetadata().getAuthorList(); String[] resultByPos...
diff --git a/android/src/com/google/zxing/client/android/PlanarYUV420LuminanceSource.java b/android/src/com/google/zxing/client/android/PlanarYUV420LuminanceSource.java index 1ee3e830..c25f9385 100644 --- a/android/src/com/google/zxing/client/android/PlanarYUV420LuminanceSource.java +++ b/android/src/com/google/zxing/c...
false
true
public Bitmap renderFullColorBitmap(boolean halfSize) { // TODO implement halfSize int width = getWidth(); int height = getHeight(); int dataWidth = getDataWidth(); byte[] yuv = getYUVData(); int expectedYBytes = width * height; int expectedUBytes = expectedYBytes >> 2; int expectedVBy...
public Bitmap renderFullColorBitmap(boolean halfSize) { // TODO implement halfSize int width = getWidth(); int height = getHeight(); int dataWidth = getDataWidth(); int dataHeight = getDataHeight(); byte[] yuv = getYUVData(); int expectedYBytes = dataWidth * dataHeight; int expectedUBy...
diff --git a/framework/src/play-test/src/main/java/play/test/Helpers.java b/framework/src/play-test/src/main/java/play/test/Helpers.java index 813a214ef..173e55e4f 100644 --- a/framework/src/play-test/src/main/java/play/test/Helpers.java +++ b/framework/src/play-test/src/main/java/play/test/Helpers.java @@ -1,494 +1,49...
true
true
public static synchronized void running(TestServer server, Class<? extends WebDriver> webDriver, final Callback<TestBrowser> block) { TestBrowser browser = null; TestServer startedServer = null; try { start(server); startedServer = server; browser = testBr...
public static synchronized void running(TestServer server, Class<? extends WebDriver> webDriver, final Callback<TestBrowser> block) { TestBrowser browser = null; TestServer startedServer = null; try { start(server); startedServer = server; browser = testBr...
diff --git a/runner/src/main/java/org/jclouds/cli/runner/Main.java b/runner/src/main/java/org/jclouds/cli/runner/Main.java index e1c9743..f8a1497 100644 --- a/runner/src/main/java/org/jclouds/cli/runner/Main.java +++ b/runner/src/main/java/org/jclouds/cli/runner/Main.java @@ -1,328 +1,328 @@ /* * Copyright (C) 2012,...
false
true
private void run(final CommandProcessorImpl commandProcessor, String[] args, final InputStream in, final PrintStream out, final PrintStream err) throws Throwable { if (args.length > 0) { StringBuilder sb = new StringBuilder(); for (int i = 0; i < args.length; i++) { ...
private void run(final CommandProcessorImpl commandProcessor, String[] args, final InputStream in, final PrintStream out, final PrintStream err) throws Throwable { if (args.length > 0) { StringBuilder sb = new StringBuilder(); for (int i = 0; i < args.length; i++) { ...
diff --git a/org.amanzi.awe.afp/src/org/amanzi/awe/afp/executors/AfpProcessExecutor.java b/org.amanzi.awe.afp/src/org/amanzi/awe/afp/executors/AfpProcessExecutor.java index 0e8fb49c9..b3b34ca32 100644 --- a/org.amanzi.awe.afp/src/org/amanzi/awe/afp/executors/AfpProcessExecutor.java +++ b/org.amanzi.awe.afp/src/org/aman...
true
true
public IStatus run(IProgressMonitor monitor){ monitor.beginTask("Execute Afp", 100); AfpExporter afpE = new AfpExporter(afpRoot); createFiles(monitor, afpE); Runtime run = Runtime.getRuntime(); try { AfpEngine engine = AfpEngine.getAfpEngine(); String path = engine.getAfpEngineExecutableP...
public IStatus run(IProgressMonitor monitor){ monitor.beginTask("Execute Afp", 100); AfpExporter afpE = new AfpExporter(afpRoot); createFiles(monitor, afpE); Runtime run = Runtime.getRuntime(); try { AfpEngine engine = AfpEngine.getAfpEngine(); String path = engine.getAfpEngineExecutableP...
diff --git a/src/org/jruby/lexer/yacc/LexerSource.java b/src/org/jruby/lexer/yacc/LexerSource.java index cfadcc690..84e372d55 100644 --- a/src/org/jruby/lexer/yacc/LexerSource.java +++ b/src/org/jruby/lexer/yacc/LexerSource.java @@ -1,488 +1,488 @@ /***** BEGIN LICENSE BLOCK ***** * Version: CPL 1.0/GPL 2.0/LGPL 2.1...
false
true
public char readEscape() throws IOException { char c = read(); switch (c) { case '\\' : // backslash return c; case 'n' : // newline return '\n'; case 't' : // horizontal tab return '\t'; case 'r' : // c...
public char readEscape() throws IOException { char c = read(); switch (c) { case '\\' : // backslash return c; case 'n' : // newline return '\n'; case 't' : // horizontal tab return '\t'; case 'r' : // c...
diff --git a/weaver/src/org/aspectj/weaver/patterns/ReferencePointcut.java b/weaver/src/org/aspectj/weaver/patterns/ReferencePointcut.java index 7b49ae36d..e77a9f61d 100644 --- a/weaver/src/org/aspectj/weaver/patterns/ReferencePointcut.java +++ b/weaver/src/org/aspectj/weaver/patterns/ReferencePointcut.java @@ -1,407 +...
true
true
public void resolveBindings(IScope scope, Bindings bindings) { if (onTypeSymbolic != null) { onType = onTypeSymbolic.resolveExactType(scope, bindings); // in this case we've already signalled an error if (ResolvedType.isMissing(onType)) return; } ResolvedType searchType; if (onType != null) { ...
public void resolveBindings(IScope scope, Bindings bindings) { if (onTypeSymbolic != null) { onType = onTypeSymbolic.resolveExactType(scope, bindings); // in this case we've already signalled an error if (ResolvedType.isMissing(onType)) return; } ResolvedType searchType; if (onType != null) { ...
diff --git a/target_explorer/plugins/org.eclipse.tcf.te.tcf.launch.ui/src/org/eclipse/tcf/te/tcf/launch/ui/editor/tabs/MemoryMapTab.java b/target_explorer/plugins/org.eclipse.tcf.te.tcf.launch.ui/src/org/eclipse/tcf/te/tcf/launch/ui/editor/tabs/MemoryMapTab.java index c316f997a..b78c29d12 100644 --- a/target_explorer/p...
false
true
protected String getColumnText(int column) { String text = super.getColumnText(column); if (text != null && text.trim().length() > 0) { String key = "MemoryMapEditorPage_column_" + text; //$NON-NLS-1$ if (Messages.hasString(key)) text = Messages.getString(key); else { ...
protected String getColumnText(int column) { String text = super.getColumnText(column); if (text != null && text.trim().length() > 0) { String key = "MemoryMapTab_column_" + text; //$NON-NLS-1$ if (Messages.hasString(key)) text = Messages.getString(key); else { k...
diff --git a/same-android/src/main/java/com/orbekk/same/GameView.java b/same-android/src/main/java/com/orbekk/same/GameView.java index 31ac27c..d21d05d 100644 --- a/same-android/src/main/java/com/orbekk/same/GameView.java +++ b/same-android/src/main/java/com/orbekk/same/GameView.java @@ -1,177 +1,181 @@ package com.or...
false
true
@Override public void run() { while (true) { Canvas c = null; try { c = holder.lockCanvas(); synchronized(holder) { doDraw(c); } } finally { holder....
@Override public void run() { while (true) { Canvas c = null; try { c = holder.lockCanvas(); if (c != null) { synchronized(holder) { doDraw(c); } ...
diff --git a/illaclient/src/illarion/client/gui/ContainerHandler.java b/illaclient/src/illarion/client/gui/ContainerHandler.java index 2cd8b519..4bb7a596 100644 --- a/illaclient/src/illarion/client/gui/ContainerHandler.java +++ b/illaclient/src/illarion/client/gui/ContainerHandler.java @@ -1,314 +1,314 @@ /* * This ...
true
true
private void updateContainer(final int containerId, final TIntObjectIterator<OpenContainerEvent.Item> itr) { final org.illarion.nifty.controls.ItemContainer conControl = itemContainerMap.get(containerId); final int slotCount = conControl.getSlotCount(); for (int i = 0; i < slotCount; i++) {...
private void updateContainer(final int containerId, final TIntObjectIterator<OpenContainerEvent.Item> itr) { final org.illarion.nifty.controls.ItemContainer conControl = itemContainerMap.get(containerId); final int slotCount = conControl.getSlotCount(); for (int i = 0; i < slotCount; i++) {...
diff --git a/backend/src/com/mymed/controller/core/manager/authentication/AuthenticationManager.java b/backend/src/com/mymed/controller/core/manager/authentication/AuthenticationManager.java index 6aac67003..4284a2f88 100644 --- a/backend/src/com/mymed/controller/core/manager/authentication/AuthenticationManager.java +...
true
true
public MUserBean read(final String login, final String password) throws InternalBackEndException, IOBackEndException { final Map<byte[], byte[]> args = storageManager.selectAll(CF_AUTHENTICATION, login); MAuthenticationBean authentication = new MAuthenticationBean(); authentication = (MAuthenticationBe...
public MUserBean read(final String login, final String password) throws InternalBackEndException, IOBackEndException { final Map<byte[], byte[]> args = storageManager.selectAll(CF_AUTHENTICATION, login); MAuthenticationBean authentication = new MAuthenticationBean(); authentication = (MAuthenticationBe...
diff --git a/src/org/apache/xalan/xsltc/compiler/LogicalExpr.java b/src/org/apache/xalan/xsltc/compiler/LogicalExpr.java index 2d224554..ea287ccc 100644 --- a/src/org/apache/xalan/xsltc/compiler/LogicalExpr.java +++ b/src/org/apache/xalan/xsltc/compiler/LogicalExpr.java @@ -1,229 +1,229 @@ /* * @(#)$Id$ * * The ...
false
true
public void translateDesynthesized(ClassGenerator classGen, MethodGenerator methodGen) { final InstructionList il = methodGen.getInstructionList(); final SyntaxTreeNode parent = getParent(); // Compile AND-expression if (_op == AND) { // Translate left hand side - must be true _left.tran...
public void translateDesynthesized(ClassGenerator classGen, MethodGenerator methodGen) { final InstructionList il = methodGen.getInstructionList(); final SyntaxTreeNode parent = getParent(); // Compile AND-expression if (_op == AND) { // Translate left hand side - must be true _left.tran...
diff --git a/gadgets/core/src/main/java/org/exoplatform/portal/gadget/core/ExoContainerConfig.java b/gadgets/core/src/main/java/org/exoplatform/portal/gadget/core/ExoContainerConfig.java index 37a3e86eb..0758bf0fe 100644 --- a/gadgets/core/src/main/java/org/exoplatform/portal/gadget/core/ExoContainerConfig.java +++ b/g...
false
true
public ExoContainerConfig(@Named("shindig.containers.default") String s, Expressions expressions) throws ContainerConfigException { super(s, expressions); // J2EEServerInfo info = new J2EEServerInfo(); // String confPath = info.getExoConfigurationDirectory(); File keyFile = null; if (co...
public ExoContainerConfig(@Named("shindig.containers.default") String s, Expressions expressions) throws ContainerConfigException { super(s, expressions); // J2EEServerInfo info = new J2EEServerInfo(); // String confPath = info.getExoConfigurationDirectory(); File keyFile = null; if (co...
diff --git a/geoplatform-gui/core/geoplatform-widget/layer-widget/src/main/java/org/geosdi/geoplatform/gui/client/widget/LayerTreeWidget.java b/geoplatform-gui/core/geoplatform-widget/layer-widget/src/main/java/org/geosdi/geoplatform/gui/client/widget/LayerTreeWidget.java index b2dc657c..57009bbe 100644 --- a/geoplatfo...
true
true
private void addExpandListener() { tree.addListener(Events.BeforeExpand, new Listener<TreePanelEvent<ModelData>>() { @Override public void handleEvent(TreePanelEvent<ModelData> be) { if (be.getItem() instanceof FolderTreeNode && !((FolderTreeNode) be.getItem()).isLoa...
private void addExpandListener() { tree.addListener(Events.BeforeExpand, new Listener<TreePanelEvent<ModelData>>() { @Override public void handleEvent(TreePanelEvent<ModelData> be) { if (be.getItem() instanceof FolderTreeNode && !((FolderTreeNode) be.getItem()).isLoa...
diff --git a/htroot/ConfigLanguage_p.java b/htroot/ConfigLanguage_p.java index ab4c41dba..94981575d 100644 --- a/htroot/ConfigLanguage_p.java +++ b/htroot/ConfigLanguage_p.java @@ -1,153 +1,160 @@ // Language_p.java // ----------------------- // part of YACY // (C) by Michael Peter Christen; mc@anomic.de // first...
false
true
public static serverObjects respond(httpHeader header, serverObjects post, serverSwitch env) { //listManager.switchboard = (plasmaSwitchboard) env; serverObjects prop = new serverObjects(); plasmaSwitchboard switchboard = (plasmaSwitchboard) env; String langPath = new File(env.getRootPath(), env.getConfig("langPat...
public static serverObjects respond(httpHeader header, serverObjects post, serverSwitch env) { //listManager.switchboard = (plasmaSwitchboard) env; serverObjects prop = new serverObjects(); plasmaSwitchboard switchboard = (plasmaSwitchboard) env; String langPath = new File(env.getRootPath(), env.getConfig("langPat...
diff --git a/spring-integration-twitter/src/main/java/org/springframework/integration/twitter/config/TwitterSendingMessageHandlerParser.java b/spring-integration-twitter/src/main/java/org/springframework/integration/twitter/config/TwitterSendingMessageHandlerParser.java index fb900b34cf..196e2622fb 100644 --- a/spring-...
false
true
protected AbstractBeanDefinition parseConsumer(Element element, ParserContext parserContext) { String elementName = element.getLocalName().trim(); String className = null; if ("outbound-update-channel-adapter".equals(elementName)) { className = BASE_PACKAGE + ".outbound.OutboundTimelineUpdateMessageHandler"; ...
protected AbstractBeanDefinition parseConsumer(Element element, ParserContext parserContext) { String elementName = element.getLocalName().trim(); String className = null; if ("outbound-update-channel-adapter".equals(elementName)) { className = BASE_PACKAGE + ".outbound.TimelineUpdateSendingMessageHandler"; ...
diff --git a/ide/eclipse/esb/org.wso2.developerstudio.eclipse.gmf.esb/src/org/wso2/developerstudio/eclipse/gmf/esb/impl/InputConnectorImpl.java b/ide/eclipse/esb/org.wso2.developerstudio.eclipse.gmf.esb/src/org/wso2/developerstudio/eclipse/gmf/esb/impl/InputConnectorImpl.java index 0ff5a02af..887331439 100644 --- a/ide...
true
true
public boolean shouldConnect(OutputConnector sourceEnd) { EObject container = sourceEnd.eContainer(); if (this.eContainer.equals(container)) { return false; } else if(sourceEnd.eContainer() instanceof EndPoint){ if((getIncomingLinks().size() !=0) && (getIncomingLinks().get(0).getSource().eContainer() insta...
public boolean shouldConnect(OutputConnector sourceEnd) { EObject container = sourceEnd.eContainer(); if (this.eContainer.equals(container)) { return false; } else if(sourceEnd.eContainer() instanceof EndPoint){ if(this.eContainer instanceof EndPoint){ return false; } if((getIncomingLinks().size(...
diff --git a/src/duke/cs/fall2012/catseverywhere/CustomLocationListener.java b/src/duke/cs/fall2012/catseverywhere/CustomLocationListener.java index 0f7975e..a83b70a 100644 --- a/src/duke/cs/fall2012/catseverywhere/CustomLocationListener.java +++ b/src/duke/cs/fall2012/catseverywhere/CustomLocationListener.java @@ -1,5...
true
true
public void onLocationChanged(Location location) { myLatitude = location.getLatitude(); myLongitude = location.getLongitude(); String displayMessage = "Current location: Lat: " + myLatitude + "\nLong: " + myLongitude; Toast.makeText(myParentContext, displayMessage, Toast.LENGTH_SHORT).sh...
public void onLocationChanged(Location location) { myLatitude = location.getLatitude(); myLongitude = location.getLongitude(); String displayMessage = "Current location: Lat: " + myLatitude + "\nLong: " + myLongitude; //Toast.makeText(myParentContext, displayMessage, Toast.LENGTH_SHORT)....
diff --git a/src/library/tests/TimeTest.java b/src/library/tests/TimeTest.java index 593506f..0c9a640 100644 --- a/src/library/tests/TimeTest.java +++ b/src/library/tests/TimeTest.java @@ -1,67 +1,67 @@ package library.tests; import static org.junit.Assert.*; import library.Time; import org.junit.Before; import ...
true
true
public void testIsOverlap() { assertTrue(Time.isOverlap(astart, aend, bstart, bend)); assertTrue(Time.isOverlap(bstart, bend, astart, aend)); assertFalse(Time.isOverlap(cstart, cend, dstart, dend)); assertTrue(astart.isOverlap(astart, aend, cstart, cend)); assertTrue(asta...
public void testIsOverlap() { assertTrue(Time.isOverlap(astart, aend, bstart, bend)); assertTrue(Time.isOverlap(bstart, bend, astart, aend)); assertFalse(Time.isOverlap(cstart, cend, dstart, dend)); assertTrue(Time.isOverlap(astart, aend, cstart, cend)); assertTrue(Time.i...
diff --git a/src/main/java/org/nnsoft/guice/rocoto/configuration/ConfigurationModule.java b/src/main/java/org/nnsoft/guice/rocoto/configuration/ConfigurationModule.java index a6fdf47..30bcd61 100644 --- a/src/main/java/org/nnsoft/guice/rocoto/configuration/ConfigurationModule.java +++ b/src/main/java/org/nnsoft/guice/r...
true
true
protected final void configure() { checkState( readers != null, "Re-entry not allowed" ); readers = new LinkedList<PropertiesURLReader>(); bindConfigurations(); try { for ( PropertiesURLReader reader : readers ) { try ...
protected final void configure() { checkState( readers == null, "Re-entry not allowed" ); readers = new LinkedList<PropertiesURLReader>(); bindConfigurations(); try { for ( PropertiesURLReader reader : readers ) { try ...
diff --git a/src/model/Processor.java b/src/model/Processor.java index b517a82..3880c14 100644 --- a/src/model/Processor.java +++ b/src/model/Processor.java @@ -1,77 +1,78 @@ /** * */ package model; import java.util.ArrayList; import java.util.List; import java.util.Map; import interfaces.IALU; import...
true
true
public Processor(int aluCount, Map<String, Integer> opCycles, List<IInstruction> instrs) { alus = new ArrayList<IALU>(aluCount); //memories = new ArrayList<IMemoryAccess>(memCount); //This should probably also receive a memCount variable, so the processor knows how many mems it has for(int i = 0; i < aluCount;...
public Processor(int aluCount, Map<String, Integer> opCycles, List<IInstruction> instrs) { alus = new ArrayList<IALU>(aluCount); //memories = new ArrayList<IMemoryAccess>(memCount); //This should probably also receive a memCount variable, so the processor knows how many mems it has memories = new ArrayList<IMe...
diff --git a/src/main/java/ru/urbancamper/audiobookmarker/text/BitapSubtextFinding.java b/src/main/java/ru/urbancamper/audiobookmarker/text/BitapSubtextFinding.java index ce9af82..f284d64 100644 --- a/src/main/java/ru/urbancamper/audiobookmarker/text/BitapSubtextFinding.java +++ b/src/main/java/ru/urbancamper/audiobook...
false
true
public List<Integer> find(Integer[] doc, Integer[] pattern, int k) { // Range of the alphabet // 128 is enough if we stay in the ASCII range (0-127) int alphabetRange = 128; int firstMatchedText = -1; // Indexes where the pattern was found ArrayList<Integer> indexes = new ArrayList<Integer>...
public List<Integer> find(Integer[] doc, Integer[] pattern, int k) { // Range of the alphabet // 128 is enough if we stay in the ASCII range (0-127) int alphabetRange = 128; int firstMatchedText = -1; // Indexes where the pattern was found ArrayList<Integer> indexes = new ArrayList<Integer>...
diff --git a/src/jpcsp/util/FileLocator.java b/src/jpcsp/util/FileLocator.java index b99a9f02..c22975bb 100644 --- a/src/jpcsp/util/FileLocator.java +++ b/src/jpcsp/util/FileLocator.java @@ -1,563 +1,572 @@ /* This file is part of jpcsp. Jpcsp is free software: you can redistribute it and/or modify it under the t...
false
true
public IVirtualFile getVirtualFile(int address, int length, int fileSize, byte[] checkData) { int positionOffset = 0; ReadInfo readInfo = readInfos.get(address); if (readInfo == null) { // The file data has not been read at this address. // Search for files having the same size and ...
public IVirtualFile getVirtualFile(int address, int length, int fileSize, byte[] checkData) { int positionOffset = 0; ReadInfo readInfo = readInfos.get(address); if (readInfo == null) { // The file data has not been read at this address. // Search for files having the same size and ...
diff --git a/web/src/main/java/ar/noxit/ehockey/service/impl/ClubService.java b/web/src/main/java/ar/noxit/ehockey/service/impl/ClubService.java index db3392c..49f1280 100644 --- a/web/src/main/java/ar/noxit/ehockey/service/impl/ClubService.java +++ b/web/src/main/java/ar/noxit/ehockey/service/impl/ClubService.java @@ ...
true
true
public void verificarCambioNombre(ClubPlano clubPlano) throws ClubYaExistenteException { try { Club club = clubDao.get(clubPlano.getId()); String nombre = clubPlano.getNombre(); String nombreCompleto = clubPlano.getNombreCompleto(); List<Club> clubPorNombre = ...
public void verificarCambioNombre(ClubPlano clubPlano) throws ClubYaExistenteException { try { Club club = clubDao.get(clubPlano.getId()); String nombre = clubPlano.getNombre(); String nombreCompleto = clubPlano.getNombreCompleto(); List<Club> clubPorNombre = ...
diff --git a/drools-compiler/src/main/java/org/drools/guvnor/server/util/SuggestionCompletionEngineBuilder.java b/drools-compiler/src/main/java/org/drools/guvnor/server/util/SuggestionCompletionEngineBuilder.java index c856f8985c..34ecb171ba 100644 --- a/drools-compiler/src/main/java/org/drools/guvnor/server/util/Sugge...
true
true
public SuggestionCompletionEngine getInstance() { this.instance.setFactTypes(this.factTypes.toArray(new String[this.factTypes.size()])); this.instance.setModifiers(this.modifiersForType); //convert this.fieldsForType, this.fieldClasses and this.fieldTypes into Map<String,ModelField[]>. ...
public SuggestionCompletionEngine getInstance() { this.instance.setFactTypes(this.factTypes.toArray(new String[this.factTypes.size()])); this.instance.setModifiers(this.modifiersForType); //convert this.fieldsForType, this.fieldClasses and this.fieldTypes into Map<String,ModelField[]>. ...
diff --git a/src/CameraViewerImpl.java b/src/CameraViewerImpl.java index d15a407..681ccf4 100644 --- a/src/CameraViewerImpl.java +++ b/src/CameraViewerImpl.java @@ -1,302 +1,302 @@ // -*- Java -*- /*! * @file CameraViewerImpl.java * @brief Camera Viewer * @date $Date$ * * $Id$ */ import java.awt.Dime...
false
true
protected ReturnCode_t onExecute(int ec_id) { if (this.m_inIn.isNew()) { m_inIn.read(); System.out.println("Width =" + m_in.v.width); System.out.println("Height =" + m_in.v.height); if (img == null) { img = new BufferedImage(m_in.v.width, m_in.v.height, BufferedImage.TYPE_INT_RG...
protected ReturnCode_t onExecute(int ec_id) { if (this.m_inIn.isNew()) { m_inIn.read(); //System.out.println("Width =" + m_in.v.width); //System.out.println("Height =" + m_in.v.height); if (img == null) { img = new BufferedImage(m_in.v.width, m_in.v.height, BufferedImage.TYPE_IN...
diff --git a/tests/mil.jpeojtrs.sca.prf.tests/src/mil/jpeojtrs/sca/prf/tests/StructTest.java b/tests/mil.jpeojtrs.sca.prf.tests/src/mil/jpeojtrs/sca/prf/tests/StructTest.java index 657808a0..b5c2ebed 100644 --- a/tests/mil.jpeojtrs.sca.prf.tests/src/mil/jpeojtrs/sca/prf/tests/StructTest.java +++ b/tests/mil.jpeojtrs.sc...
true
true
public void testExtra() throws Exception { final ResourceSet resourceSet = new ResourceSetImpl(); final Properties props = Properties.Util.getProperties(resourceSet.getResource(PrfTests.getURI("testFiles/StructTest.prf.xml"), true)); Assert.assertNotNull(props); final Struct struct = props.getStruct().get(0); ...
public void testExtra() throws Exception { final ResourceSet resourceSet = new ResourceSetImpl(); final Properties props = Properties.Util.getProperties(resourceSet.getResource(PrfTests.getURI("testFiles/StructTest.prf.xml"), true)); Assert.assertNotNull(props); final Struct struct = props.getStruct().get(0); ...
diff --git a/java/modules/core/src/main/java/org/apache/synapse/config/xml/XMLConfigurationBuilder.java b/java/modules/core/src/main/java/org/apache/synapse/config/xml/XMLConfigurationBuilder.java index 5f4f5dbaa..1c5642038 100644 --- a/java/modules/core/src/main/java/org/apache/synapse/config/xml/XMLConfigurationBuild...
false
true
public static SynapseConfiguration getConfiguration(InputStream is) { log.info("Generating the Synapse configuration model by parsing the XML configuration"); SynapseConfiguration config = new SynapseConfiguration(); SequenceMediator rootSequence = new SequenceMediator(); rootSeque...
public static SynapseConfiguration getConfiguration(InputStream is) { log.info("Generating the Synapse configuration model by parsing the XML configuration"); SynapseConfiguration config = new SynapseConfiguration(); SequenceMediator rootSequence = new SequenceMediator(); rootSeque...
diff --git a/src/main/java/org/springframework/web/servlet/view/jangod/JangodViewResolver.java b/src/main/java/org/springframework/web/servlet/view/jangod/JangodViewResolver.java index 6a109e3..d29155c 100644 --- a/src/main/java/org/springframework/web/servlet/view/jangod/JangodViewResolver.java +++ b/src/main/java/org...
false
true
protected AbstractUrlBasedView buildView(String viewName) throws Exception { JangodView view = (JangodView) super.buildView(viewName); if (isConfigUnset) { try { String webRoot = WebUtils.getRealPath(getServletContext(), "/"); if (!webRoot.endsWith(File.separator)) { webRoot += File.separator; } ...
protected AbstractUrlBasedView buildView(String viewName) throws Exception { JangodView view = (JangodView) super.buildView(viewName); if (isConfigUnset) { try { String webRoot = WebUtils.getRealPath(getServletContext(), getPrefix()); if (!webRoot.endsWith(File.separator)) { webRoot += File.separat...
diff --git a/atlas-web/src/main/java/uk/ac/ebi/gxa/tasks/RepairExperimentTask.java b/atlas-web/src/main/java/uk/ac/ebi/gxa/tasks/RepairExperimentTask.java index 252652725..e342afdee 100644 --- a/atlas-web/src/main/java/uk/ac/ebi/gxa/tasks/RepairExperimentTask.java +++ b/atlas-web/src/main/java/uk/ac/ebi/gxa/tasks/Repai...
false
true
public void start() { final String accession = getTaskSpec().getAccession(); log.info("Repair experiment - task started, checking NetCDF"); final TaskSpec netcdfSpec = LoaderTask.SPEC_UPDATEEXPERIMENT(accession); final TaskStatus netcdfState = taskMan.getTaskStatus(netcdfSpec); ...
public void start() { final String accession = getTaskSpec().getAccession(); log.info("Repair experiment - task started, checking NetCDF"); final TaskSpec netcdfSpec = LoaderTask.SPEC_UPDATEEXPERIMENT(accession); final TaskStatus netcdfState = taskMan.getTaskStatus(netcdfSpec); ...
diff --git a/src/org/opensolaris/opengrok/web/DirectoryListing.java b/src/org/opensolaris/opengrok/web/DirectoryListing.java index 26e5038..b5fabbd 100644 --- a/src/org/opensolaris/opengrok/web/DirectoryListing.java +++ b/src/org/opensolaris/opengrok/web/DirectoryListing.java @@ -1,150 +1,150 @@ /* * CDDL HEADER STA...
true
true
public List listTo(File dir, Writer out, String path, String[] files) throws IOException { Arrays.sort(files, String.CASE_INSENSITIVE_ORDER); boolean alt = true; Format dateFormatter = new SimpleDateFormat("dd-MMM-yyyy", Locale.getDefault()); out.write("<table cellspacing=\"0\" borde...
public List<String> listTo(File dir, Writer out, String path, String[] files) throws IOException { Arrays.sort(files, String.CASE_INSENSITIVE_ORDER); boolean alt = true; Format dateFormatter = new SimpleDateFormat("dd-MMM-yyyy", Locale.getDefault()); out.write("<table cellspacing=\"0...
diff --git a/src/org/subsurface/ws/json/DiveParser.java b/src/org/subsurface/ws/json/DiveParser.java index e0268ed..60ee087 100644 --- a/src/org/subsurface/ws/json/DiveParser.java +++ b/src/org/subsurface/ws/json/DiveParser.java @@ -1,54 +1,54 @@ package org.subsurface.ws.json; import java.io.ByteArrayOutputStream;...
true
true
public static List<DiveLocationLog> parseDives(InputStream in) throws JSONException, IOException { ArrayList<DiveLocationLog> dives = new ArrayList<DiveLocationLog>(); // Get stream content ByteArrayOutputStream streamContent = new ByteArrayOutputStream(); byte[] buff = new byte[1024]; int readBytes; wh...
public static List<DiveLocationLog> parseDives(InputStream in) throws JSONException, IOException { ArrayList<DiveLocationLog> dives = new ArrayList<DiveLocationLog>(); // Get stream content ByteArrayOutputStream streamContent = new ByteArrayOutputStream(); byte[] buff = new byte[1024]; int readBytes; wh...
diff --git a/src/Game.java b/src/Game.java index 1c8d1ed..6a94ae7 100644 --- a/src/Game.java +++ b/src/Game.java @@ -1,180 +1,180 @@ import java.awt.Color; import java.awt.Graphics; import java.awt.Graphics2D; import java.awt.event.MouseEvent; import java.awt.event.MouseListener; import java.awt.image.BufferedIma...
true
true
public void paint(Graphics g) { Graphics clip = g; map.paint(clip); if( walkAllowed && path != null && !path.isEmpty()) { ghost.x = path.head.a; ghost.y = path.head.b; path.removeFront(); } else if (path != null && path.isEmpty()) { walkAllowed = false; map.reload(); ...
public void paint(Graphics g) { Graphics clip = g; map.paint(clip); if( walkAllowed && path != null && !path.isEmpty()) { ghost.x = path.head.b*map.tileW; ghost.y = path.head.a*map.tileH; path.removeFront(); } else if (path != null && path.isEmpty()) { walkAllowed = false;...
diff --git a/WEB-INF/src/edu/wustl/catissuecore/action/CreateSpecimenAction.java b/WEB-INF/src/edu/wustl/catissuecore/action/CreateSpecimenAction.java index 67bd27b80..d620eb517 100644 --- a/WEB-INF/src/edu/wustl/catissuecore/action/CreateSpecimenAction.java +++ b/WEB-INF/src/edu/wustl/catissuecore/action/CreateSpecime...
true
true
public ActionForward executeSecureAction(ActionMapping mapping, ActionForm form, HttpServletRequest request, HttpServletResponse response) throws Exception { //Gets the value of the operation parameter. String operation = request.getParameter(Constants.OPERATION); //Sets the...
public ActionForward executeSecureAction(ActionMapping mapping, ActionForm form, HttpServletRequest request, HttpServletResponse response) throws Exception { //Gets the value of the operation parameter. String operation = request.getParameter(Constants.OPERATION); //Sets the...
diff --git a/RandomizedQueuesAndDeques/Subset.java b/RandomizedQueuesAndDeques/Subset.java index a7f3be3..1e9856e 100644 --- a/RandomizedQueuesAndDeques/Subset.java +++ b/RandomizedQueuesAndDeques/Subset.java @@ -1,12 +1,16 @@ public class Subset { public static void main(String[] args) { int K = Integer.parseI...
false
true
public static void main(String[] args) { int K = Integer.parseInt(args[0]); RandomizedQueue<String> queue = new RandomizedQueue<String>(); for (String s : StdIn.readAllStrings()) queue.enqueue(s); for (String s : queue) { StdOut.println(s); } }
public static void main(String[] args) { int K = Integer.parseInt(args[0]); RandomizedQueue<String> queue = new RandomizedQueue<String>(); for (String s : StdIn.readAllStrings()) queue.enqueue(s); int i = 0; for (String s : queue) { if (i == K) break; StdOut.println(s); i += 1; } }
diff --git a/baixing_quanleimu/src/com/quanleimu/view/PersonalCenterView.java b/baixing_quanleimu/src/com/quanleimu/view/PersonalCenterView.java index b09a4a65..a7cb03d7 100644 --- a/baixing_quanleimu/src/com/quanleimu/view/PersonalCenterView.java +++ b/baixing_quanleimu/src/com/quanleimu/view/PersonalCenterView.java @...
true
true
public void handleMessage(Message msg) { switch (msg.what) { case MCMESSAGE_MYPOST_SUCCESS: if (pd != null) { pd.dismiss(); } GoodsList gl = JsonUtil.getGoodsListFromJson(json); if (gl == null || gl.getCount() == 0) { // Toast.makeText(PersonalCenterView.this.getContext(), "您尚未发布信息,", ...
public void handleMessage(Message msg) { switch (msg.what) { case MCMESSAGE_MYPOST_SUCCESS: if (pd != null) { pd.dismiss(); } GoodsList gl = JsonUtil.getGoodsListFromJson(json); if (gl == null || gl.getCount() == 0) { // Toast.makeText(PersonalCenterView.this.getContext(), "您尚未发布信息,", ...
diff --git a/ini/trakem2/display/SnapshotPanel.java b/ini/trakem2/display/SnapshotPanel.java index 74502dd2..4cfc4fc9 100644 --- a/ini/trakem2/display/SnapshotPanel.java +++ b/ini/trakem2/display/SnapshotPanel.java @@ -1,124 +1,128 @@ /** TrakEM2 plugin for ImageJ(C). Copyright (C) 2005,2006 Albert Cardona and Rod...
true
true
public void paint(final Graphics g) { if (null == g) return; // happens if not visible synchronized (this) { if (null != img) { // Paint and flush g.drawImage(img, 0, 0, null); this.img.flush(); this.img = null; return; } } // Else, repaint background to avoid flickering g.setColor(...
public void paint(final Graphics g) { if (null == g) return; // happens if not visible synchronized (this) { if (null != img) { // Paint and flush g.drawImage(img, 0, 0, null); this.img.flush(); this.img = null; return; } } // Else, repaint background to avoid flickering g.setColor(...
diff --git a/module-nio/src/main/java/org/apache/http/impl/nio/codecs/LengthDelimitedDecoder.java b/module-nio/src/main/java/org/apache/http/impl/nio/codecs/LengthDelimitedDecoder.java index e159a01ca..2d3507bfd 100644 --- a/module-nio/src/main/java/org/apache/http/impl/nio/codecs/LengthDelimitedDecoder.java +++ b/modu...
true
true
public int read(final ByteBuffer dst) throws IOException { if (dst == null) { throw new IllegalArgumentException("Byte buffer may not be null"); } if (this.completed) { return -1; } int lenRemaining = (int) (this.contentLength - this.len); ...
public int read(final ByteBuffer dst) throws IOException { if (dst == null) { throw new IllegalArgumentException("Byte buffer may not be null"); } if (this.completed) { return -1; } int lenRemaining = (int) (this.contentLength - this.len); ...
diff --git a/gnu/testlet/locales/LocaleTest.java b/gnu/testlet/locales/LocaleTest.java index 62fb2b85..87634d5b 100755 --- a/gnu/testlet/locales/LocaleTest.java +++ b/gnu/testlet/locales/LocaleTest.java @@ -1,437 +1,448 @@ // Tags: JDK1.0 // Copyright (C) 2004 Michael Koch <konqueror@gmx.de> // This file is part...
false
true
public void test(TestHarness h) { // Check all supported locales. // FIXME: Add all EURO countries. // Locale: Germany checkLocale(h, new Locale("de", "DE"), new ExpectedValues("de", "DE", "", "de_DE", "deu", "DEU", "Deutsch", "Deutschland", "", "Deutsch (Deutschland)", ...
public void test(TestHarness h) { // Check all supported locales. // FIXME: Add all EURO countries. // Locale: Germany checkLocale(h, new Locale("de", "DE"), new ExpectedValues("de", "DE", "", "de_DE", "deu", "DEU", "Deutsch", "Deutschland", "", "Deutsch (Deutschland)", ...
diff --git a/morphia/src/main/java/com/google/code/morphia/converters/IterableConverter.java b/morphia/src/main/java/com/google/code/morphia/converters/IterableConverter.java index 69d9fa1..4b50930 100644 --- a/morphia/src/main/java/com/google/code/morphia/converters/IterableConverter.java +++ b/morphia/src/main/java/c...
true
true
Object encode(Object value, MappedField mf) { if (value == null) return null; Iterable<?> iterableValues = null; if (value.getClass().isArray()) { if (Array.getLength(value) == 0) { return value; } if (value.getClass().getComponentType().isPrimitive()) return value; itera...
Object encode(Object value, MappedField mf) { if (value == null) return null; Iterable<?> iterableValues = null; if (value.getClass().isArray()) { if (Array.getLength(value) == 0) { return value; } if (value.getClass().getComponentType().isPrimitive()) return value; itera...
diff --git a/pregelix/pregelix-core/src/main/java/edu/uci/ics/pregelix/core/driver/Driver.java b/pregelix/pregelix-core/src/main/java/edu/uci/ics/pregelix/core/driver/Driver.java index 3a344d907..1f071bf79 100644 --- a/pregelix/pregelix-core/src/main/java/edu/uci/ics/pregelix/core/driver/Driver.java +++ b/pregelix/preg...
true
true
public void runJob(PregelixJob job, Plan planChoice, String ipAddress, int port, boolean profiling) throws HyracksException { try { /** add hadoop configurations */ URL hadoopCore = job.getClass().getClassLoader().getResource("core-site.xml"); if (hadoopCore !...
public void runJob(PregelixJob job, Plan planChoice, String ipAddress, int port, boolean profiling) throws HyracksException { try { /** add hadoop configurations */ URL hadoopCore = job.getClass().getClassLoader().getResource("core-site.xml"); if (hadoopCore !...
diff --git a/src/html2windows/dom/NamedNodeMap.java b/src/html2windows/dom/NamedNodeMap.java index 034168e..1c83363 100644 --- a/src/html2windows/dom/NamedNodeMap.java +++ b/src/html2windows/dom/NamedNodeMap.java @@ -1,70 +1,70 @@ package html2windows.dom; import java.util.Collection; import java.util.HashMap; im...
false
true
public Node item(long index) { Collection collection = values(); Iterator iterator = collection.iterator(); int i = 0; Node returnNode = null; while (iterator.hasNext()) { if (i == (int) index) returnNode = (Node) iterator.next(); else iterator.next(); } return returnNode; }
public Node item(long index) { Collection<Node> collection = values(); Iterator<Node> iterator = collection.iterator(); int i = 0; Node returnNode = null; while (iterator.hasNext()) { if (i == (int) index) returnNode = iterator.next(); else iterator.next(); } return returnNode; }
diff --git a/src/contrib/gridmix/src/test/org/apache/hadoop/mapred/gridmix/TestUserResolve.java b/src/contrib/gridmix/src/test/org/apache/hadoop/mapred/gridmix/TestUserResolve.java index 171264058..abcfe7fa3 100644 --- a/src/contrib/gridmix/src/test/org/apache/hadoop/mapred/gridmix/TestUserResolve.java +++ b/src/contri...
false
true
public void testRoundRobinResolver() throws Exception { final Configuration conf = new Configuration(); final UserResolver rslv = new RoundRobinUserResolver(); boolean fail = false; try { rslv.setTargetUsers(null, conf); } catch (IOException e) { fail = true; } assertTrue("Use...
public void testRoundRobinResolver() throws Exception { final Configuration conf = new Configuration(); final UserResolver rslv = new RoundRobinUserResolver(); boolean fail = false; try { rslv.setTargetUsers(null, conf); } catch (IOException e) { fail = true; } assertTrue("Use...
diff --git a/soundcloud-mediasupport/src/main/java/com/senselessweb/soundcloud/mediasupport/gstreamer/pipeline/FileSrcPipeline.java b/soundcloud-mediasupport/src/main/java/com/senselessweb/soundcloud/mediasupport/gstreamer/pipeline/FileSrcPipeline.java index 6dd87b0..0fcb5fe 100644 --- a/soundcloud-mediasupport/src/mai...
true
true
public FileSrcPipeline(final File file, final VolumeBridge volume, final EqualizerBridge equalizer, final PanoramaBridge panoramaBridge, final MessageListenerService messageListener) { super(createDefaultPipeline("filesrc location=file.getAbsolutePath()"), volume, equalizer, panoramaBridge, messageListener); }...
public FileSrcPipeline(final File file, final VolumeBridge volume, final EqualizerBridge equalizer, final PanoramaBridge panoramaBridge, final MessageListenerService messageListener) { super(createDefaultPipeline("filesrc name=src"), volume, equalizer, panoramaBridge, messageListener); this.pipeline.getElemen...
diff --git a/src/joueur/PlateauJoueur.java b/src/joueur/PlateauJoueur.java index 0ee9477..6eb3ec8 100644 --- a/src/joueur/PlateauJoueur.java +++ b/src/joueur/PlateauJoueur.java @@ -1,115 +1,115 @@ package joueur; import java.util.ArrayList; public class PlateauJoueur { private Case[][] cases; private ...
true
true
public PlateauJoueur(){ this.cases = new Case[5][3]; int numero_case = 1; for(int i = 0; i < this.cases.length; i++){ for(int j = 0; j < this.cases[i].length; j++){ this.cases[i][j] = new Case(numero_case); numero_case++; } } ...
public PlateauJoueur(){ this.cases = new Case[5][3]; int numero_case = 1; for(int i = 0; i < this.cases.length; i++){ for(int j = 0; j < this.cases[i].length; j++){ this.cases[i][j] = new Case(numero_case); numero_case++; } } ...
diff --git a/GraoPara-BD2/src/main/java/business/EJB/documents/KeyWordEJB.java b/GraoPara-BD2/src/main/java/business/EJB/documents/KeyWordEJB.java index ec8ba6f..935e052 100644 --- a/GraoPara-BD2/src/main/java/business/EJB/documents/KeyWordEJB.java +++ b/GraoPara-BD2/src/main/java/business/EJB/documents/KeyWordEJB.java...
true
true
public synchronized void removeKeyWord(String keyWord) throws UnreachableDataBaseException, KeywordNotFoundException{ DocumentEJB docEJB = new DocumentEJB(); List<DTO> results = null; keyWord = keyWord.toLowerCase(); try { results = docEJB.findByKeyWord(keyWord); for(DTO dto : results){ Documento d...
public synchronized void removeKeyWord(String keyWord) throws UnreachableDataBaseException, KeywordNotFoundException{ DocumentEJB docEJB = new DocumentEJB(); List<DTO> results = null; // keyWord = keyWord.toLowerCase(); try { results = docEJB.findByKeyWord(keyWord); for(DTO dto : results){ Documento...
diff --git a/src/com/google/bitcoin/core/NetworkConnection.java b/src/com/google/bitcoin/core/NetworkConnection.java index 34c15dc..d78cc18 100644 --- a/src/com/google/bitcoin/core/NetworkConnection.java +++ b/src/com/google/bitcoin/core/NetworkConnection.java @@ -1,189 +1,194 @@ /** * Copyright 2011 Google Inc. *...
true
true
public NetworkConnection(PeerAddress peerAddress, NetworkParameters params, int bestHeight, int connectTimeout, boolean dedupe) throws IOException, ProtocolException { this.params = params; this.remoteIp = peerAddress.addr; int port = (peerAddress.po...
public NetworkConnection(PeerAddress peerAddress, NetworkParameters params, int bestHeight, int connectTimeout, boolean dedupe) throws IOException, ProtocolException { this.params = params; this.remoteIp = peerAddress.addr; int port = (peerAddress.po...
diff --git a/webapp/src/main/java/uk/ac/ebi/arrayexpress/utils/saxon/search/Indexer.java b/webapp/src/main/java/uk/ac/ebi/arrayexpress/utils/saxon/search/Indexer.java index 15f31a7e..1b081196 100644 --- a/webapp/src/main/java/uk/ac/ebi/arrayexpress/utils/saxon/search/Indexer.java +++ b/webapp/src/main/java/uk/ac/ebi/ar...
true
true
public List<NodeInfo> index( DocumentInfo document ) { List<NodeInfo> indexedNodes = null; try { XPath xp = new XPathEvaluator(document.getConfiguration()); XPathExpression xpe = xp.compile(this.env.indexDocumentPath); List documentNodes = (List)xpe.evaluate(...
public List<NodeInfo> index( DocumentInfo document ) { List<NodeInfo> indexedNodes = null; try { XPath xp = new XPathEvaluator(document.getConfiguration()); XPathExpression xpe = xp.compile(this.env.indexDocumentPath); List documentNodes = (List)xpe.evaluate(...
diff --git a/TFC_Shared/src/TFC/TFCItems.java b/TFC_Shared/src/TFC/TFCItems.java index db01aceb6..478ef73dd 100644 --- a/TFC_Shared/src/TFC/TFCItems.java +++ b/TFC_Shared/src/TFC/TFCItems.java @@ -1,2020 +1,2020 @@ package TFC; import java.io.File; import net.minecraft.block.Block; import net.minecraft.item.Enu...
false
true
public static void Setup() { try { config = new net.minecraftforge.common.Configuration( new File(TerraFirmaCraft.proxy.getMinecraftDir(), "/config/TFC.cfg")); config.load(); } catch (Exception e) { System.out.println(new StringBuilder()....
public static void Setup() { try { config = new net.minecraftforge.common.Configuration( new File(TerraFirmaCraft.proxy.getMinecraftDir(), "/config/TFC.cfg")); config.load(); } catch (Exception e) { System.out.println(new StringBuilder()....
diff --git a/src/main/java/com/celements/photo/plugin/cmd/ComputeImageCommand.java b/src/main/java/com/celements/photo/plugin/cmd/ComputeImageCommand.java index eef3a34..51df50a 100644 --- a/src/main/java/com/celements/photo/plugin/cmd/ComputeImageCommand.java +++ b/src/main/java/com/celements/photo/plugin/cmd/ComputeI...
false
true
public XWikiAttachment computeImage(XWikiAttachment attachment, XWikiContext context, XWikiAttachment attachmentClone, String sheight, String swidth, String copyright, String watermark, Color defaultBg, String defaultBgString) { if((defaultBgString != null) && defaultBgString.matches("[0-9A-Fa-f...
public XWikiAttachment computeImage(XWikiAttachment attachment, XWikiContext context, XWikiAttachment attachmentClone, String sheight, String swidth, String copyright, String watermark, Color defaultBg, String defaultBgString) { if((defaultBgString != null) && defaultBgString.matches("[0-9A-Fa-f...
diff --git a/examples/undocumented/java_modular/mkl_multiclass_modular.java b/examples/undocumented/java_modular/mkl_multiclass_modular.java index 556f4fa4a..6ba64a273 100644 --- a/examples/undocumented/java_modular/mkl_multiclass_modular.java +++ b/examples/undocumented/java_modular/mkl_multiclass_modular.java @@ -1,7...
true
true
public static void main(String argv[]) { modshogun.init_shogun_with_defaults(); double width = 2.1; double epsilon = 1e-5; double C = 1.0; int mkl_norm = 2; DoubleMatrix traindata_real = Load.load_numbers("../data/fm_train_real.dat"); DoubleMatrix testdata_real = Load.load_numbers("../data/fm_test_real....
public static void main(String argv[]) { modshogun.init_shogun_with_defaults(); double width = 2.1; double epsilon = 1e-5; double C = 1.0; int mkl_norm = 2; DoubleMatrix traindata_real = Load.load_numbers("../data/fm_train_real.dat"); DoubleMatrix testdata_real = Load.load_numbers("../data/fm_test_real....
diff --git a/tests/frontend/org/voltdb/benchmark/tpcc/procedures/InsertNewOrder.java b/tests/frontend/org/voltdb/benchmark/tpcc/procedures/InsertNewOrder.java index 5ff30d4a8..ed896efc4 100644 --- a/tests/frontend/org/voltdb/benchmark/tpcc/procedures/InsertNewOrder.java +++ b/tests/frontend/org/voltdb/benchmark/tpcc/pr...
true
true
public VoltTable[] run(long no_o_id, long no_d_id, short no_w_id) { voltQueueSQL(insert, no_o_id, no_d_id, no_w_id); return voltExecuteSQL(); }
public VoltTable[] run(long no_o_id, byte no_d_id, short no_w_id) { voltQueueSQL(insert, no_o_id, no_d_id, no_w_id); return voltExecuteSQL(); }
diff --git a/sqo-oss/prototype/src/eu/sqooss/plugin/cccc/CCCCExecutor.java b/sqo-oss/prototype/src/eu/sqooss/plugin/cccc/CCCCExecutor.java index 3ff83ce1..e19ce9b9 100644 --- a/sqo-oss/prototype/src/eu/sqooss/plugin/cccc/CCCCExecutor.java +++ b/sqo-oss/prototype/src/eu/sqooss/plugin/cccc/CCCCExecutor.java @@ -1,80 +1,8...
true
true
public InputStream execute(File file) { StringBuilder target = new StringBuilder(); target.append(cmd); String outputPath = System.getProperty("java.io.tmpdir"); if ( !outputPath.endsWith(System.getProperty("file.separator")) ) outputPath += System.getProperty("file.separator"); outputPath += "cccc"; ...
public InputStream execute(File file) { StringBuilder target = new StringBuilder(); //target.append(cmd); String outputPath = System.getProperty("java.io.tmpdir"); if ( !outputPath.endsWith(System.getProperty("file.separator")) ) outputPath += System.getProperty("file.separator"); outputPath += "cccc";...
diff --git a/opentripplanner-analyst/src/main/java/org/opentripplanner/analyst/batch/ShapefilePopulation.java b/opentripplanner-analyst/src/main/java/org/opentripplanner/analyst/batch/ShapefilePopulation.java index dd934e78f..257e94a50 100644 --- a/opentripplanner-analyst/src/main/java/org/opentripplanner/analyst/batch...
true
true
public void createIndividuals() { String filename = this.sourceFilename; LOG.debug("Loading population from shapefile {}", filename); LOG.debug("Feature attributes: input data in {}, labeled with {}", inputAttribute, labelAttribute); try { File file = new File(filename); ...
public void createIndividuals() { String filename = this.sourceFilename; LOG.debug("Loading population from shapefile {}", filename); LOG.debug("Feature attributes: input data in {}, labeled with {}", inputAttribute, labelAttribute); try { File file = new File(filename); ...
diff --git a/demos/webvie/src/main/java/org/apache/stanbol/commons/web/vie/fragment/EnhancerVieWebFragment.java b/demos/webvie/src/main/java/org/apache/stanbol/commons/web/vie/fragment/EnhancerVieWebFragment.java index 63e2bdaf0..048e60b20 100644 --- a/demos/webvie/src/main/java/org/apache/stanbol/commons/web/vie/fragm...
true
true
public List<ScriptResource> getScriptResources() { List<ScriptResource> resources = new ArrayList<ScriptResource>(); resources.add(new ScriptResource("text/javascript", "lib/jquery-1.5.1.js", this, 10)); resources.add(new ScriptResource("text/javascript", "lib/jquery-ui.1.9m5.js", this, 10))...
public List<ScriptResource> getScriptResources() { List<ScriptResource> resources = new ArrayList<ScriptResource>(); resources.add(new ScriptResource("text/javascript", "lib/jquery-1.7.1.js", this, 10)); resources.add(new ScriptResource("text/javascript", "lib/jquery-ui.1.9m5.js", this, 10))...
diff --git a/xwiki-commons-tools/xwiki-commons-tool-xar/xwiki-commons-tool-xar-integration-tests/src/test/java/org/xwiki/tool/xar/FixedResourceExtractor.java b/xwiki-commons-tools/xwiki-commons-tool-xar/xwiki-commons-tool-xar-integration-tests/src/test/java/org/xwiki/tool/xar/FixedResourceExtractor.java index 947f916e7...
true
true
public static File simpleExtractResources(Class< ? > cl, String resourcePath) throws IOException { String tempDirPath = System.getProperty("maven.test.tmpdir", System.getProperty("java.io.tmpdir")); File tempDir = new File(tempDirPath); File testDir = new File(tempDir, resourcePath); ...
public static File simpleExtractResources(Class cl, String resourcePath) throws IOException { String tempDirPath = System.getProperty("maven.test.tmpdir", System.getProperty("java.io.tmpdir")); File tempDir = new File(tempDirPath); File testDir = new File(tempDir, resourcePath); ...
diff --git a/asm/src/org/objectweb/asm/util/ASMifierAbstractVisitor.java b/asm/src/org/objectweb/asm/util/ASMifierAbstractVisitor.java index 2a40dbe1..e32b6014 100644 --- a/asm/src/org/objectweb/asm/util/ASMifierAbstractVisitor.java +++ b/asm/src/org/objectweb/asm/util/ASMifierAbstractVisitor.java @@ -1,221 +1,220 @@ ...
false
true
static void appendConstant (final StringBuffer buf, final Object cst) { if (cst == null) { buf.append("null"); } else if (cst instanceof String) { appendString(buf, (String)cst); } else if (cst instanceof Type) { buf.append("Type.getType(\""); buf.append(((Type)cst).getDescriptor()...
static void appendConstant (final StringBuffer buf, final Object cst) { if (cst == null) { buf.append("null"); } else if (cst instanceof String) { appendString(buf, (String)cst); } else if (cst instanceof Type) { buf.append("Type.getType(\""); buf.append(((Type)cst).getDescriptor()...
diff --git a/src/graindcafe/tribu/Listeners/TribuPlayerListener.java b/src/graindcafe/tribu/Listeners/TribuPlayerListener.java index 3ee4e23..9fcee98 100644 --- a/src/graindcafe/tribu/Listeners/TribuPlayerListener.java +++ b/src/graindcafe/tribu/Listeners/TribuPlayerListener.java @@ -1,125 +1,128 @@ /*****************...
false
true
public void onPlayerInteract(final PlayerInteractEvent event) { if (!event.isCancelled()) { final Block block = event.getClickedBlock(); if (block != null && plugin.isPlaying(event.getPlayer())) if (Sign.class.isInstance(block.getState()) && plugin.getLevel() != null) { if (plugin.isRunning()) { if (e...
public void onPlayerInteract(final PlayerInteractEvent event) { if (!event.isCancelled()) { final Block block = event.getClickedBlock(); if (block != null && Sign.class.isInstance(block.getState()) && plugin.getLevel() != null) { if (plugin.isRunning() && plugin.isPlaying(event.getPlayer())) { if (eve...
diff --git a/src/votemenu/VoteMenuGUIController2.java b/src/votemenu/VoteMenuGUIController2.java index 6335e22..61246bd 100644 --- a/src/votemenu/VoteMenuGUIController2.java +++ b/src/votemenu/VoteMenuGUIController2.java @@ -1,87 +1,87 @@ package votemenu; import java.awt.event.ActionEvent; import java.awt.event.A...
true
true
private void setAction() { //Add ActionListener for Vote Button for(int i=0;i<buttonList.size();i++) { final int num = i+1; JButton button = buttonList.get(i); button.addActionListener(new ActionListener() { @Override public void actionPerformed(ActionEvent arg0) { if(model.isTextExis...
private void setAction() { //Add ActionListener for Vote Button for(int i=0;i<buttonList.size();i++) { final int num = i+1; JButton button = buttonList.get(i); button.addActionListener(new ActionListener() { @Override public void actionPerformed(ActionEvent arg0) { if(model.isTextExis...
diff --git a/java/modules/core/src/main/java/org/apache/synapse/core/axis2/ProxyService.java b/java/modules/core/src/main/java/org/apache/synapse/core/axis2/ProxyService.java index 9ef29c820..b37284edc 100644 --- a/java/modules/core/src/main/java/org/apache/synapse/core/axis2/ProxyService.java +++ b/java/modules/core/s...
false
true
public AxisService buildAxisService(SynapseConfiguration synCfg, AxisConfiguration axisCfg) { auditInfo("Building Axis service for Proxy service : " + name); AxisService proxyService = null; // get the wsdlElement as an OMElement if (trace()) { trace.info("Loading the W...
public AxisService buildAxisService(SynapseConfiguration synCfg, AxisConfiguration axisCfg) { auditInfo("Building Axis service for Proxy service : " + name); AxisService proxyService = null; // get the wsdlElement as an OMElement if (trace()) { trace.info("Loading the W...
diff --git a/src/quizsite/util/Activity.java b/src/quizsite/util/Activity.java index 2f7653e..e61cdc7 100644 --- a/src/quizsite/util/Activity.java +++ b/src/quizsite/util/Activity.java @@ -1,75 +1,75 @@ package quizsite.util; import java.util.ArrayList; import java.util.List; /** * A class representing an act...
true
true
public String getActivityPrintString() { StringBuilder sb = new StringBuilder(); sb.append("<div class='activity'>\n"); sb.append("<p>\n"); sb.append("<a href='/user?userId="+userId+"'>"+userName+"</a>"); sb.append(" " + verb + " " + subject + " on " + date + ".\n"); sb.append("</p>\n"); sb.append("</div...
public String getActivityPrintString() { StringBuilder sb = new StringBuilder(); sb.append("<div class='activity'>\n"); sb.append("<p>\n"); sb.append("<a href='display_user.jsp?userId="+userId+"'>"+userName+"</a>"); sb.append(" " + verb + " " + subject + " on " + date + ".\n"); sb.append("</p>\n"); sb.ap...
diff --git a/src/com/ioabsoftware/gameraven/AllInOneV2.java b/src/com/ioabsoftware/gameraven/AllInOneV2.java index 3436a10..8988a5f 100644 --- a/src/com/ioabsoftware/gameraven/AllInOneV2.java +++ b/src/com/ioabsoftware/gameraven/AllInOneV2.java @@ -1,3060 +1,3060 @@ package com.ioabsoftware.gameraven; import java.i...
true
true
public void processContent(NetDesc desc, Document doc, String resUrl) { wtl("GRAIO hNR fired, desc: " + desc.name()); ptrLayout.setEnabled(false); setMenuItemVisible(searchIcon, false); if (searchIcon != null) searchIcon.collapseActionView(); setMenuItemVisible(postIcon, false); setMenuItemVisi...
public void processContent(NetDesc desc, Document doc, String resUrl) { wtl("GRAIO hNR fired, desc: " + desc.name()); ptrLayout.setEnabled(false); setMenuItemVisible(searchIcon, false); if (searchIcon != null) searchIcon.collapseActionView(); setMenuItemVisible(postIcon, false); setMenuItemVisi...
diff --git a/emailsync/src/com/android/emailsync/SyncManager.java b/emailsync/src/com/android/emailsync/SyncManager.java index e4e155e91..0500837fd 100644 --- a/emailsync/src/com/android/emailsync/SyncManager.java +++ b/emailsync/src/com/android/emailsync/SyncManager.java @@ -1,2269 +1,2271 @@ /* * Copyright (C) 200...
true
true
private long checkMailboxes () { // First, see if any running mailboxes have been deleted ArrayList<Long> deletedMailboxes = new ArrayList<Long>(); synchronized (sSyncLock) { for (long mailboxId: mServiceMap.keySet()) { Mailbox m = Mailbox.restoreMailboxWithId(thi...
private long checkMailboxes () { // First, see if any running mailboxes have been deleted ArrayList<Long> deletedMailboxes = new ArrayList<Long>(); synchronized (sSyncLock) { for (long mailboxId: mServiceMap.keySet()) { Mailbox m = Mailbox.restoreMailboxWithId(thi...
diff --git a/services/java/com/android/server/pm/PackageManagerService.java b/services/java/com/android/server/pm/PackageManagerService.java index 0b0505a5..fc81033c 100644 --- a/services/java/com/android/server/pm/PackageManagerService.java +++ b/services/java/com/android/server/pm/PackageManagerService.java @@ -1,111...
true
true
private PackageParser.Package scanPackageLI(PackageParser.Package pkg, int parseFlags, int scanMode, long currentTime, UserHandle user) { File scanFile = new File(pkg.mScanPath); if (scanFile == null || pkg.applicationInfo.sourceDir == null || pkg.applicationInfo.publicSo...
private PackageParser.Package scanPackageLI(PackageParser.Package pkg, int parseFlags, int scanMode, long currentTime, UserHandle user) { File scanFile = new File(pkg.mScanPath); if (scanFile == null || pkg.applicationInfo.sourceDir == null || pkg.applicationInfo.publicSo...
diff --git a/filters/net.sf.okapi.filters.openxml/src/net/sf/okapi/filters/openxml/OpenXMLContentFilter.java b/filters/net.sf.okapi.filters.openxml/src/net/sf/okapi/filters/openxml/OpenXMLContentFilter.java index 7dfb99319..0d4241cc7 100644 --- a/filters/net.sf.okapi.filters.openxml/src/net/sf/okapi/filters/openxml/Ope...
false
true
public InputStream combineRepeatedFormat(final InputStream in, final PipedOutputStream pios) { PipedInputStream piis=null; // final PipedOutputStream pios = new PipedOutputStream(); try { piis = new PipedInputStream(pios); } catch (IOException e) { LOGGER.log(Level.SEVERE,"Can't read piped input st...
public InputStream combineRepeatedFormat(final InputStream in, final PipedOutputStream pios) { final OutputStreamWriter osw; final BufferedWriter bw; final InputStreamReader isr; final BufferedReader br; PipedInputStream piis=null; // final PipedOutputStream pios = new PipedOutputStream(); try { pii...
diff --git a/java/src/com/android/inputmethod/latin/BinaryDictionaryFileDumper.java b/java/src/com/android/inputmethod/latin/BinaryDictionaryFileDumper.java index 37eced5d6..236c198ad 100644 --- a/java/src/com/android/inputmethod/latin/BinaryDictionaryFileDumper.java +++ b/java/src/com/android/inputmethod/latin/BinaryD...
false
true
private static AssetFileAddress cacheWordList(final String id, final String locale, final ContentResolver resolver, final Context context) { final int COMPRESSED_CRYPTED_COMPRESSED = 0; final int CRYPTED_COMPRESSED = 1; final int COMPRESSED_CRYPTED = 2; final int COMPRES...
private static AssetFileAddress cacheWordList(final String id, final String locale, final ContentResolver resolver, final Context context) { final int COMPRESSED_CRYPTED_COMPRESSED = 0; final int CRYPTED_COMPRESSED = 1; final int COMPRESSED_CRYPTED = 2; final int COMPRES...
diff --git a/src/com/mavu/appcode/DataAccess.java b/src/com/mavu/appcode/DataAccess.java index 65b6afc..c5897ec 100644 --- a/src/com/mavu/appcode/DataAccess.java +++ b/src/com/mavu/appcode/DataAccess.java @@ -1,499 +1,502 @@ package com.mavu.appcode; import java.io.BufferedReader; import java.io.IOException; impo...
false
true
protected Boolean doInBackground(String... params) { /* * case 1: Login * case 2: Create Account * case 3: Update Account * case 4: Get Account (By account Id) * case 5: Create Post * case 6: Get Posts * case 7: See if account username is taken * case 8: Get Account (By email) */ List<Na...
protected Boolean doInBackground(String... params) { /* * case 1: Login * case 2: Create Account * case 3: Update Account * case 4: Get Account (By account Id) * case 5: Create Post * case 6: Get Posts * case 7: See if account username is taken * case 8: Get Account (By email) */ List<Na...
diff --git a/opal-reporting/src/main/java/org/obiba/opal/web/reporting/Dtos.java b/opal-reporting/src/main/java/org/obiba/opal/web/reporting/Dtos.java index de136adf4..0dd9cc4f5 100644 --- a/opal-reporting/src/main/java/org/obiba/opal/web/reporting/Dtos.java +++ b/opal-reporting/src/main/java/org/obiba/opal/web/reporti...
true
true
public static ReportTemplate fromDto(ReportTemplateDto reportTemplateDto) { ReportTemplate reportTemplate = new ReportTemplate(); reportTemplate.setName(reportTemplateDto.getName()); reportTemplate.setDesign(reportTemplateDto.getDesign()); reportTemplate.setFormat(reportTemplateDto.getFormat()); ...
public static ReportTemplate fromDto(ReportTemplateDto reportTemplateDto) { ReportTemplate reportTemplate = new ReportTemplate(); reportTemplate.setName(reportTemplateDto.getName()); reportTemplate.setDesign(reportTemplateDto.getDesign()); reportTemplate.setFormat(reportTemplateDto.getFormat()); ...
diff --git a/src/org/geworkbench/engine/skin/Skin.java b/src/org/geworkbench/engine/skin/Skin.java index ab1303b6..fe72435e 100755 --- a/src/org/geworkbench/engine/skin/Skin.java +++ b/src/org/geworkbench/engine/skin/Skin.java @@ -1,809 +1,805 @@ package org.geworkbench.engine.skin; import java.awt.BorderLayout; i...
false
true
private void jbInit() throws Exception { contentPane = (JPanel) this.getContentPane(); this.setIconImage(Icons.MICROARRAYS_ICON.getImage()); contentPane.setLayout(borderLayout1); Dimension dim = Toolkit.getDefaultToolkit().getScreenSize(); int guiHeight = 0; int guiWi...
private void jbInit() throws Exception { contentPane = (JPanel) this.getContentPane(); this.setIconImage(Icons.MICROARRAYS_ICON.getImage()); contentPane.setLayout(borderLayout1); Dimension dim = Toolkit.getDefaultToolkit().getScreenSize(); int guiHeight = 0; int guiWi...
diff --git a/main/src/cgeo/geocaching/files/GPXParser.java b/main/src/cgeo/geocaching/files/GPXParser.java index 7870a168c..7cc8fbca2 100644 --- a/main/src/cgeo/geocaching/files/GPXParser.java +++ b/main/src/cgeo/geocaching/files/GPXParser.java @@ -1,834 +1,834 @@ package cgeo.geocaching.files; import cgeo.geocachi...
true
true
public Collection<cgCache> parse(final InputStream stream, final CancellableHandler progressHandler) throws IOException, ParserException { resetCache(); final RootElement root = new RootElement(namespace, "gpx"); final Element waypoint = root.getChild(namespace, "wpt"); // waypoint ...
public Collection<cgCache> parse(final InputStream stream, final CancellableHandler progressHandler) throws IOException, ParserException { resetCache(); final RootElement root = new RootElement(namespace, "gpx"); final Element waypoint = root.getChild(namespace, "wpt"); // waypoint ...
diff --git a/src/main/java/org/dynmap/ClientUpdateComponent.java b/src/main/java/org/dynmap/ClientUpdateComponent.java index 46aa628e..4d2f5284 100644 --- a/src/main/java/org/dynmap/ClientUpdateComponent.java +++ b/src/main/java/org/dynmap/ClientUpdateComponent.java @@ -1,60 +1,75 @@ package org.dynmap; import stat...
false
true
protected void buildClientUpdate(ClientUpdateEvent e) { World world = e.world.world; JSONObject u = e.update; long since = e.timestamp; String worldName = world.getName(); s(u, "servertime", world.getTime() % 24000); s(u, "hasStorm", world.hasStorm()); ...
protected void buildClientUpdate(ClientUpdateEvent e) { World world = e.world.world; JSONObject u = e.update; long since = e.timestamp; String worldName = world.getName(); s(u, "servertime", world.getTime() % 24000); s(u, "hasStorm", world.hasStorm()); ...
diff --git a/activemq-core/src/test/java/org/apache/activemq/transport/discovery/DiscoveryNetworkReconnectTest.java b/activemq-core/src/test/java/org/apache/activemq/transport/discovery/DiscoveryNetworkReconnectTest.java index 78fda2919..de27bea87 100755 --- a/activemq-core/src/test/java/org/apache/activemq/transport/d...
true
true
public void setUp() throws Exception { context = new JUnit4Mockery() {{ setImposteriser(ClassImposteriser.INSTANCE); }}; brokerA = new BrokerService(); brokerA.setBrokerName("BrokerA"); configure(brokerA); brokerA.addConnector("tcp://localhost:0"); ...
public void setUp() throws Exception { context = new JUnit4Mockery() {{ setImposteriser(ClassImposteriser.INSTANCE); }}; brokerA = new BrokerService(); brokerA.setBrokerName("BrokerA"); configure(brokerA); brokerA.addConnector("tcp://localhost:0"); ...
diff --git a/org.eclipse.jdt.debug.ui/ui/org/eclipse/jdt/internal/debug/ui/console/JavaConsoleTracker.java b/org.eclipse.jdt.debug.ui/ui/org/eclipse/jdt/internal/debug/ui/console/JavaConsoleTracker.java index ed72c918b..4c3fce720 100644 --- a/org.eclipse.jdt.debug.ui/ui/org/eclipse/jdt/internal/debug/ui/console/JavaCon...
true
true
public void lineAppended(IRegion line) { try { int offset = line.getOffset(); int length = line.getLength(); String text = fConsole.getDocument().get(offset, length); boolean standardMatch = false; int index = -1; if (fJavaMatcher.match(text)) { standardMatch = true; // find the last space ...
public void lineAppended(IRegion line) { try { int offset = line.getOffset(); int length = line.getLength(); String text = fConsole.getDocument().get(offset, length); boolean standardMatch = false; int index = -1; if (fJavaMatcher.match(text)) { standardMatch = true; // find the last space ...
diff --git a/modules/activiti-upgrade/src/test/java/org/activiti/upgrade/DatabaseFormatterPostgres.java b/modules/activiti-upgrade/src/test/java/org/activiti/upgrade/DatabaseFormatterPostgres.java index 62e7d9c60..57fd66c04 100644 --- a/modules/activiti-upgrade/src/test/java/org/activiti/upgrade/DatabaseFormatterPostgr...
false
true
public String formatBinary(byte[] bytes) { StringBuffer sb = new StringBuffer(); sb.append("E'\\\\x"); appendBytesInHex(sb, bytes); sb.append("'"); return sb.toString(); }
public String formatBinary(byte[] bytes) { StringBuffer sb = new StringBuffer(); sb.append("decode('"); appendBytesInHex(sb, bytes); sb.append("', 'hex')"); return sb.toString(); }
diff --git a/podsalinan/src/com/mimpidev/podsalinan/cli/options/downloads/ShowSelectedMenu.java b/podsalinan/src/com/mimpidev/podsalinan/cli/options/downloads/ShowSelectedMenu.java index 6b86bb3..c12aeb5 100644 --- a/podsalinan/src/com/mimpidev/podsalinan/cli/options/downloads/ShowSelectedMenu.java +++ b/podsalinan/src...
true
true
public void printDetails(URLDownload selectedDownload, boolean showDirectory){ if (selectedDownload==null){ System.out.println("URL: "+selectedDownload.getURL().toString()); switch (selectedDownload.getStatus()){ case Episode.DOWNLOAD_QUEUED: System.out.println ("Status: Download Queued"); break;...
public void printDetails(URLDownload selectedDownload, boolean showDirectory){ if (selectedDownload!=null){ System.out.println("URL: "+selectedDownload.getURL().toString()); switch (selectedDownload.getStatus()){ case Episode.DOWNLOAD_QUEUED: System.out.println ("Status: Download Queued"); break;...
diff --git a/plugin/src/main/java/hudson/plugins/findbugs/FindBugsPlugin.java b/plugin/src/main/java/hudson/plugins/findbugs/FindBugsPlugin.java index 4b48b8e..f4ab25c 100644 --- a/plugin/src/main/java/hudson/plugins/findbugs/FindBugsPlugin.java +++ b/plugin/src/main/java/hudson/plugins/findbugs/FindBugsPlugin.java @@ ...
true
true
public void start() throws IOException, SAXException { FindBugsMessages.getInstance().initialize(); DetailFactory.addDetailBuilder(FindBugsResultAction.class, new FindBugsDetailFactory()); }
public void start() throws IOException, SAXException { FindBugsMessages.getInstance().initialize(); FindBugsDetailFactory detailBuilder = new FindBugsDetailFactory(); DetailFactory.addDetailBuilder(FindBugsResultAction.class, detailBuilder); DetailFactory.addDetailBuilder(FindBugsMav...