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/spring-social-github/src/main/java/org/springframework/social/github/api/impl/AbstractGitHubOperations.java b/spring-social-github/src/main/java/org/springframework/social/github/api/impl/AbstractGitHubOperations.java index 01c2feb..afcbf0b 100644 --- a/spring-social-github/src/main/java/org/springframewor...
true
true
protected void requireAuthorization() { if (!isAuthorized) { throw new MissingAuthorizationException(); } }
protected void requireAuthorization() { if (!isAuthorized) { throw new MissingAuthorizationException("github"); } }
diff --git a/plugins/org.eclipse.birt.data/src/org/eclipse/birt/data/engine/olap/impl/query/CubeCursorImpl.java b/plugins/org.eclipse.birt.data/src/org/eclipse/birt/data/engine/olap/impl/query/CubeCursorImpl.java index 0972f23a6..b37dc2050 100644 --- a/plugins/org.eclipse.birt.data/src/org/eclipse/birt/data/engine/olap...
false
true
public Object getObject( String arg0 ) throws OLAPException { Object result = null; if ( !validBindingSet.contains( arg0 ) ) { if ( arg0.equals( ScriptConstants.OUTER_RESULT_KEYWORD ) && this.outerResults!= null ) return this.outerResults; throw new OLAPException( ResourceConstants.NO_OUTER_RES...
public Object getObject( String arg0 ) throws OLAPException { Object result = null; if ( !validBindingSet.contains( arg0 ) ) { if ( arg0.equals( ScriptConstants.OUTER_RESULT_KEYWORD ) && this.outerResults!= null ) return this.outerResults; throw new OLAPException( ResourceConstants.NO_OUTER_RES...
diff --git a/websockets/src/main/java/io/undertow/websockets/protocol/version07/WebSocket07PingFrameSinkChannel.java b/websockets/src/main/java/io/undertow/websockets/protocol/version07/WebSocket07PingFrameSinkChannel.java index 8ad85ea4e..add6fc613 100644 --- a/websockets/src/main/java/io/undertow/websockets/protocol/...
true
true
public WebSocket07PingFrameSinkChannel(StreamSinkChannel channel, WebSocket07Channel wsChannel, long payloadSize) { super(channel, wsChannel, WebSocketFrameType.CLOSE, payloadSize); if (payloadSize > 125) { throw WebSocketMessages.MESSAGES.invalidPayloadLengthForPing(payloadSize); ...
public WebSocket07PingFrameSinkChannel(StreamSinkChannel channel, WebSocket07Channel wsChannel, long payloadSize) { super(channel, wsChannel, WebSocketFrameType.PING, payloadSize); if (payloadSize > 125) { throw WebSocketMessages.MESSAGES.invalidPayloadLengthForPing(payloadSize); ...
diff --git a/org.eclipse.mylyn.discovery.tests/src/org/eclipse/mylyn/discovery/tests/AllDiscoveryTests.java b/org.eclipse.mylyn.discovery.tests/src/org/eclipse/mylyn/discovery/tests/AllDiscoveryTests.java index 38020bb5..7281850c 100644 --- a/org.eclipse.mylyn.discovery.tests/src/org/eclipse/mylyn/discovery/tests/AllDi...
true
true
public static Test suite() { TestSuite suite = new TestSuite("Test for org.eclipse.mylyn.discovery"); suite.addTestSuite(ConnectorDiscoveryTest.class); suite.addTestSuite(DirectoryParserTest.class); suite.addTestSuite(RemoteBundleDiscoveryStrategyTest.class); return suite; }
public static Test suite() { TestSuite suite = new TestSuite("Tests for org.eclipse.mylyn.discovery"); suite.addTestSuite(ConnectorDiscoveryTest.class); suite.addTestSuite(DirectoryParserTest.class); suite.addTestSuite(RemoteBundleDiscoveryStrategyTest.class); return suite; }
diff --git a/src/com/ijg/darklightnova/modules/ServiceModule.java b/src/com/ijg/darklightnova/modules/ServiceModule.java index 3129ab2..b6d0818 100644 --- a/src/com/ijg/darklightnova/modules/ServiceModule.java +++ b/src/com/ijg/darklightnova/modules/ServiceModule.java @@ -1,55 +1,55 @@ package com.ijg.darklightnova.mo...
true
true
private boolean isServiceOperational(String service) { try { Process p; p = Runtime.getRuntime().exec("cmd.exe /c sc query " + service); BufferedReader br = new BufferedReader(new InputStreamReader( p.getInputStream())); String line; while ((line = br.readLine()) != null) { if (line.contains(...
private boolean isServiceOperational(String service) { try { Process p; p = Runtime.getRuntime().exec("cmd.exe /c sc query " + service); BufferedReader br = new BufferedReader(new InputStreamReader( p.getInputStream())); String line; while ((line = br.readLine()) != null) { if (line.contains(...
diff --git a/src/com/randrdevelopment/propertygroup/command/commands/CreatePropertyCommand.java b/src/com/randrdevelopment/propertygroup/command/commands/CreatePropertyCommand.java index ad98abe..8bd794c 100644 --- a/src/com/randrdevelopment/propertygroup/command/commands/CreatePropertyCommand.java +++ b/src/com/randrd...
false
true
public void execute(CommandSender sender, String[] args) { propertyConfig = plugin.getPropertyConfig(); String propertyGroup = args[0].toLowerCase(); // Validate permissions level if (!sender.hasPermission("propertygroup.createproperty")) { sender.sendMessage(plugin.getTag() + C...
public void execute(CommandSender sender, String[] args) { propertyConfig = plugin.getPropertyConfig(); String propertyGroup = args[0].toLowerCase(); // Validate permissions level if (!sender.hasPermission("propertygroup.createproperty")) { sender.sendMessage(plugin.getTag() + C...
diff --git a/js-ext/src/ext/jist/swans/app/AppCiAN.java b/js-ext/src/ext/jist/swans/app/AppCiAN.java index 200c381..42e578f 100644 --- a/js-ext/src/ext/jist/swans/app/AppCiAN.java +++ b/js-ext/src/ext/jist/swans/app/AppCiAN.java @@ -1,277 +1,277 @@ package ext.jist.swans.app; import java.io.File; import java.lang....
true
true
public void run() { // Unfortunately we have to do this little hack in order for every // node to be isolated from the others. // IMPORTANT: it is vital that CiAN.jar is NOT in the classpath! try { // We need a new ClassLoader for each node we are ...
public void run() { // Unfortunately we have to do this little hack in order for every // node to be isolated from the others. // IMPORTANT: it is vital that CiAN.jar is NOT in the classpath! try { // We need a new ClassLoader for each node we are ...
diff --git a/integration-test/src/test/java/org/sagebionetworks/IT500SynapseJavaClient.java b/integration-test/src/test/java/org/sagebionetworks/IT500SynapseJavaClient.java index 10bdf2c0..94ea7ce5 100644 --- a/integration-test/src/test/java/org/sagebionetworks/IT500SynapseJavaClient.java +++ b/integration-test/src/tes...
true
true
public void testJavaClientGetADataset() throws Exception { JSONObject results = synapse.query("select * from dataset"); assertTrue(0 <= results.getInt("totalNumberOfResults")); JSONArray datasets = results.getJSONArray("results"); if (0 < datasets.length()) { int datasetId = datasets.getJSONObject(0) ...
public void testJavaClientGetADataset() throws Exception { JSONObject results = synapse.query("select * from dataset limit 10"); assertTrue(0 <= results.getInt("totalNumberOfResults")); JSONArray datasets = results.getJSONArray("results"); if (0 < datasets.length()) { int datasetId = datasets.getJSONOb...
diff --git a/Paintroid/PaintroidTest/src/at/tugraz/ist/paintroid/test/junit/main/MainActivityTests.java b/Paintroid/PaintroidTest/src/at/tugraz/ist/paintroid/test/junit/main/MainActivityTests.java index 17ff82c7..15d92fc7 100644 --- a/Paintroid/PaintroidTest/src/at/tugraz/ist/paintroid/test/junit/main/MainActivityTests...
true
true
public void testShouldSetNewToolOnToolbar() { Intent data = new Intent(); int brushIndex = -1; for (int index = 0; index < ToolType.values().length; index++) { if (ToolType.values()[index] == ToolType.BRUSH) { brushIndex = index; break; } } data.putExtra("SelectedTool", brushIndex); mainActi...
public void testShouldSetNewToolOnToolbar() { Intent data = new Intent(); int brushIndex = -1; for (int index = 0; index < ToolType.values().length; index++) { if (ToolType.values()[index] == ToolType.BRUSH) { brushIndex = index; break; } } data.putExtra("EXTRA_SELECTED_TOOL", brushIndex); m...
diff --git a/seqware-qe-testing/src/main/java/io/seqware/queryengine/sandbox/testing/utils/JSONQueryParser.java b/seqware-qe-testing/src/main/java/io/seqware/queryengine/sandbox/testing/utils/JSONQueryParser.java index ee4b424..540e887 100644 --- a/seqware-qe-testing/src/main/java/io/seqware/queryengine/sandbox/testing...
false
true
public JSONQueryParser(String queryJSON) throws JSONException { JSONObject query = new JSONObject(queryJSON); Iterator<String> outerKeys = query.keys(); JSONArray regionArray = new JSONArray(); readSetQuery = new HashMap<String, String>(); readsQuery = new HashMap<S...
public JSONQueryParser(String queryJSON) throws JSONException { JSONObject query = new JSONObject(queryJSON); JSONArray regionArray = new JSONArray(); readSetQuery = new HashMap<String, String>(); readsQuery = new HashMap<String, String>(); featureMapQuery = new Has...
diff --git a/src/net/leifandersen/mobile/android/netcatch/activities/SubscriptionsListActivity.java b/src/net/leifandersen/mobile/android/netcatch/activities/SubscriptionsListActivity.java index c79e51c..9ef53fd 100644 --- a/src/net/leifandersen/mobile/android/netcatch/activities/SubscriptionsListActivity.java +++ b/sr...
true
true
protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.feeds_list); /*Just using this to test the ListAdapter*/ ArrayList<Show> testShows = new ArrayList<Show>(); Show bol = new Show("Buzz Out Loud", "CNet Podcasts", "http://buzzoutloudpodcast.c...
protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.feeds_list); /*Just using this to test the ListAdapter*/ ArrayList<Show> testShows = new ArrayList<Show>(); Show bol = new Show("Buzz Out Loud", "CNet Podcasts", "http://buzzoutloudpodcast.c...
diff --git a/drools-eclipse/org.drools.eclipse/src/main/java/org/drools/eclipse/DroolsEclipsePlugin.java b/drools-eclipse/org.drools.eclipse/src/main/java/org/drools/eclipse/DroolsEclipsePlugin.java index 0cdbf28e..0946c4a1 100644 --- a/drools-eclipse/org.drools.eclipse/src/main/java/org/drools/eclipse/DroolsEclipsePlu...
true
true
public DRLInfo generateParsedResource(String content, IResource resource, boolean useCache, boolean compile) throws DroolsParserException { useCache = useCache && useCachePreference; ...
public DRLInfo generateParsedResource(String content, IResource resource, boolean useCache, boolean compile) throws DroolsParserException { useCache = useCache && useCachePreference; ...
diff --git a/bundles/org.eclipse.osgi/defaultAdaptor/src/org/eclipse/osgi/framework/internal/defaultadaptor/DefaultLog.java b/bundles/org.eclipse.osgi/defaultAdaptor/src/org/eclipse/osgi/framework/internal/defaultadaptor/DefaultLog.java index 5dccd72c..9093ab95 100644 --- a/bundles/org.eclipse.osgi/defaultAdaptor/src/o...
false
true
private void setOutput(File newOutFile, Writer newWriter, boolean append) { if (newOutFile == null || !newOutFile.equals(this.outFile)) { if (this.writer != null) { try { this.writer.close(); } catch (IOException e) { e.printStackTrace(); } this.writer = null; } // Append old outFi...
private void setOutput(File newOutFile, Writer newWriter, boolean append) { if (newOutFile == null || !newOutFile.equals(this.outFile)) { if (this.writer != null) { try { this.writer.close(); } catch (IOException e) { e.printStackTrace(); } this.writer = null; } // Append old outFi...
diff --git a/src/org/quickwifi/AirplaneModeSwitch.java b/src/org/quickwifi/AirplaneModeSwitch.java index e38d530..a1c8467 100644 --- a/src/org/quickwifi/AirplaneModeSwitch.java +++ b/src/org/quickwifi/AirplaneModeSwitch.java @@ -1,66 +1,66 @@ package org.quickwifi; import android.content.ContextWrapper; import and...
true
true
private void setMode(final boolean after) { final boolean before = getCurrentMode(); if (before == after) { Log.i(TAG, "airplaneMode alreay " + (before ? "enabled" : "diabled")); return; } Settings.System.putInt(contextWrapper.getContentResolver(), Settings.System.AIRPLANE_MODE_ON, after ? 1 :...
private void setMode(final boolean after) { final boolean before = getCurrentMode(); if (before == after) { Log.i(TAG, "airplaneMode alreay " + (before ? "enabled" : "disabled")); return; } Settings.System.putInt(contextWrapper.getContentResolver(), Settings.System.AIRPLANE_MODE_ON, after ? 1 ...
diff --git a/src/main/java/uk/ac/ebi/fgpt/sampletab/SampleTabToGUIXML.java b/src/main/java/uk/ac/ebi/fgpt/sampletab/SampleTabToGUIXML.java index 38191e8f..329b6a73 100644 --- a/src/main/java/uk/ac/ebi/fgpt/sampletab/SampleTabToGUIXML.java +++ b/src/main/java/uk/ac/ebi/fgpt/sampletab/SampleTabToGUIXML.java @@ -1,392 +1,...
true
true
public void doMain(String[] args) { CmdLineParser cmdParser = new CmdLineParser(this); try { // parse the arguments. cmdParser.parseArgument(args); // TODO check for extra arguments? } catch (CmdLineException e) { System.err.println(e.getMessa...
public void doMain(String[] args) { CmdLineParser cmdParser = new CmdLineParser(this); try { // parse the arguments. cmdParser.parseArgument(args); // TODO check for extra arguments? } catch (CmdLineException e) { System.err.println(e.getMessa...
diff --git a/core/sail/rdbms/src/main/java/org/openrdf/sail/rdbms/mysql/alt/MySqlConnectionFactory.java b/core/sail/rdbms/src/main/java/org/openrdf/sail/rdbms/mysql/alt/MySqlConnectionFactory.java index fd8fe9b17..357bbd4c0 100644 --- a/core/sail/rdbms/src/main/java/org/openrdf/sail/rdbms/mysql/alt/MySqlConnectionFacto...
false
true
protected TransTableManager createTransTableManager() { return new TransTableManager() { @Override protected TransactionTable createTransactionTable() { return new TransactionTable() { @Override protected String buildInsert(String tableName, boolean predColumnPresent) throws SQLException ...
protected TransTableManager createTransTableManager() { return new TransTableManager() { @Override protected TransactionTable createTransactionTable() { return new TransactionTable() { private boolean predColumnPresent; @Override protected String buildInsert(String tableName, boolean predC...
diff --git a/src/web/org/openmrs/module/web/WebModuleUtil.java b/src/web/org/openmrs/module/web/WebModuleUtil.java index 6ed18ebb..e4f9b184 100644 --- a/src/web/org/openmrs/module/web/WebModuleUtil.java +++ b/src/web/org/openmrs/module/web/WebModuleUtil.java @@ -1,815 +1,815 @@ /** * The contents of this file are su...
true
true
public static boolean startModule(Module mod, ServletContext servletContext, boolean delayContextRefresh) { //register the module loggers if (mod.getLog4j() != null) { DOMConfigurator.configure(mod.getLog4j().getDocumentElement()); } if (log.isDebugEnabled()) log.debug("trying to start module " + mod)...
public static boolean startModule(Module mod, ServletContext servletContext, boolean delayContextRefresh) { //register the module loggers if (mod.getLog4j() != null) { DOMConfigurator.configure(mod.getLog4j().getDocumentElement()); } if (log.isDebugEnabled()) log.debug("trying to start module " + mod)...
diff --git a/framework/src/org/apache/cordova/CallbackServer.java b/framework/src/org/apache/cordova/CallbackServer.java index 0b8383c2..dcf3b6e4 100755 --- a/framework/src/org/apache/cordova/CallbackServer.java +++ b/framework/src/org/apache/cordova/CallbackServer.java @@ -1,380 +1,380 @@ /* Licensed to the A...
true
true
public void run() { // Start server try { this.active = true; String request; waitSocket = new ServerSocket(0); this.port = waitSocket.getLocalPort(); //Log.d(LOG_TAG, "CallbackServer -- using port " +this.port); this.token = j...
public void run() { // Start server try { this.active = true; String request; waitSocket = new ServerSocket(0); this.port = waitSocket.getLocalPort(); //Log.d(LOG_TAG, "CallbackServer -- using port " +this.port); this.token = j...
diff --git a/src/main/java/org/nines/FullTextCleaner.java b/src/main/java/org/nines/FullTextCleaner.java index 4f7ab7f..3f015a0 100644 --- a/src/main/java/org/nines/FullTextCleaner.java +++ b/src/main/java/org/nines/FullTextCleaner.java @@ -1,123 +1,123 @@ /** * Copyright 2011 Applied Research in Patacriticism and...
true
true
public void clean(File txtFile) { this.log.info("Clean full text from file "+txtFile.toString()); // Read the text from the file. Bail if this fails String content = null; InputStreamReader is = null; try { is = new InputStreamReader(new FileInpu...
public void clean(File txtFile) { this.log.info("Clean full text from file "+txtFile.toString()); // Read the text from the file. Bail if this fails String content = null; InputStreamReader is = null; try { is = new InputStreamReader(new FileInpu...
diff --git a/src/cz/quinix/condroid/loader/DataLoader.java b/src/cz/quinix/condroid/loader/DataLoader.java index bcec8d2..64ea00d 100644 --- a/src/cz/quinix/condroid/loader/DataLoader.java +++ b/src/cz/quinix/condroid/loader/DataLoader.java @@ -1,242 +1,242 @@ package cz.quinix.condroid.loader; import android.app.P...
true
true
protected List<?> doInBackground(String... params) { List<Annotation> messages = new ArrayList<Annotation>(); XmlPullParser pull = Xml.newPullParser(); Annotation annotation = null; try { try { URL url = new URL(params[0]); HttpURLConnectio...
protected List<?> doInBackground(String... params) { List<Annotation> messages = new ArrayList<Annotation>(); XmlPullParser pull = Xml.newPullParser(); Annotation annotation = null; try { try { URL url = new URL(params[0]); HttpURLConnectio...
diff --git a/MELT/src/melt/View/SingleEssayQuestionPanel.java b/MELT/src/melt/View/SingleEssayQuestionPanel.java index 1c48531..96bc33c 100644 --- a/MELT/src/melt/View/SingleEssayQuestionPanel.java +++ b/MELT/src/melt/View/SingleEssayQuestionPanel.java @@ -1,137 +1,137 @@ /* * To change this template, choose Tools |...
false
true
public JPanel showQuestion() { String wordsLimit = ""; if (essayQuestion.getWordLimit() == -1) { wordsLimit = "No limit"; } else { wordsLimit = Integer.toString(essayQuestion.getWordLimit()); } essayTextArea.getDocument().addDocumentListener(new Docum...
public JPanel showQuestion() { String wordsLimit = ""; if (essayQuestion.getWordLimit() == -1) { wordsLimit = "No limit"; } else { wordsLimit = Integer.toString(essayQuestion.getWordLimit()); } essayTextArea.getDocument().addDocumentListener(new Docum...
diff --git a/src/plugins/apple/src/com/jivesoftware/spark/plugin/apple/ApplePlugin.java b/src/plugins/apple/src/com/jivesoftware/spark/plugin/apple/ApplePlugin.java index 94aa00ed..cfc91ac6 100644 --- a/src/plugins/apple/src/com/jivesoftware/spark/plugin/apple/ApplePlugin.java +++ b/src/plugins/apple/src/com/jivesoftwa...
false
true
public void initialize() { if (Spark.isMac()) { roomListener = new DockRoomListener(); SparkManager.getChatManager().addChatRoomListener(roomListener); // Remove the About Menu Item from the help menu MainWindow mainWindow = SparkManager.getMainWindow(); ...
public void initialize() { if (Spark.isMac()) { roomListener = new DockRoomListener(); SparkManager.getChatManager().addChatRoomListener(roomListener); // Remove the About Menu Item from the help menu MainWindow mainWindow = SparkManager.getMainWindow(); ...
diff --git a/de.xwic.cube.webui.samples/src/de/xwic/cube/webui/samples/demo1/DemoApplication1.java b/de.xwic.cube.webui.samples/src/de/xwic/cube/webui/samples/demo1/DemoApplication1.java index ca3c8f8..4ecb24e 100644 --- a/de.xwic.cube.webui.samples/src/de/xwic/cube/webui/samples/demo1/DemoApplication1.java +++ b/de.xw...
true
true
public Control createRootControl(IControlContainer container) { Page page = new Page(container, "root"); page.setTitle("xwic cube demo"); page.setTemplateName(getClass().getName()); ICube cube = createCube(); CubeViewer viewer = new CubeViewer(page, "viewer"); viewer.setColumnWidth(60); model = ...
public Control createRootControl(IControlContainer container) { Page page = new Page(container, "root"); page.setTitle("xwic cube demo"); page.setTemplateName(getClass().getName()); ICube cube = createCube(); CubeViewer viewer = new CubeViewer(page, "viewer"); viewer.setColumnWidth(60); model = ...
diff --git a/src/test/java/com/spotify/netty/handler/codec/zmtp/ZMTPFrameIntegrationTest.java b/src/test/java/com/spotify/netty/handler/codec/zmtp/ZMTPFrameIntegrationTest.java index 68e3705..c6da0b4 100644 --- a/src/test/java/com/spotify/netty/handler/codec/zmtp/ZMTPFrameIntegrationTest.java +++ b/src/test/java/com/sp...
true
true
public void testMultipleFrameREP() { final UUID remoteId = UUID.randomUUID(); final ZMTPTestConnector tester = new ZMTPTestConnector() { ZMsg m; @Override public void preConnect(final ZMQ.Socket socket) { m = new ZMsg(); for (int i = 0; i < 16; i++) { m.addString...
public void testMultipleFrameREP() { final UUID remoteId = UUID.randomUUID(); final ZMTPTestConnector tester = new ZMTPTestConnector() { ZMsg m; @Override public void preConnect(final ZMQ.Socket socket) { m = new ZMsg(); for (int i = 0; i < 16; i++) { m.addString...
diff --git a/src/java/main/org/esgf/web/NodeStatusController.java b/src/java/main/org/esgf/web/NodeStatusController.java index 1f54104f..f43b90a2 100644 --- a/src/java/main/org/esgf/web/NodeStatusController.java +++ b/src/java/main/org/esgf/web/NodeStatusController.java @@ -1,89 +1,88 @@ /*****************************...
true
true
public @ResponseBody List<NodeStatus> getActiveNodes() { System.out.println("gettingActiveNodes"); return nodeService.getLiveNodeList(); }
public @ResponseBody List<NodeStatus> getActiveNodes() { return nodeService.getLiveNodeList(); }
diff --git a/src/org/moparscape/msc/client/GameAppletMiddleMan.java b/src/org/moparscape/msc/client/GameAppletMiddleMan.java index a15c723..ead5192 100644 --- a/src/org/moparscape/msc/client/GameAppletMiddleMan.java +++ b/src/org/moparscape/msc/client/GameAppletMiddleMan.java @@ -1,516 +1,520 @@ package org.moparscape...
true
true
protected final void connect(String user, String pass, boolean reconnecting) { if (socketTimeout > 0) { loginScreenPrint("Please wait...", "Connecting to server"); try { Thread.sleep(2000L); } catch (Exception _ex) { } loginScreenPrint("Sorry! The server is currently full.", "Please try again...
protected final void connect(String user, String pass, boolean reconnecting) { if (socketTimeout > 0) { loginScreenPrint("Please wait...", "Connecting to server"); try { Thread.sleep(2000L); } catch (Exception _ex) { } loginScreenPrint("Sorry! The server is currently full.", "Please try again...
diff --git a/src/com/kkbox/toolkit/api/KKAPIRequest.java b/src/com/kkbox/toolkit/api/KKAPIRequest.java index f84ab39..f7e1fac 100644 --- a/src/com/kkbox/toolkit/api/KKAPIRequest.java +++ b/src/com/kkbox/toolkit/api/KKAPIRequest.java @@ -1,347 +1,348 @@ /* Copyright (C) 2013 KKBOX Inc. * * Licensed under the Apache...
true
true
public Void doInBackground(Object... params) { int readLength; final ByteArrayOutputStream data = new ByteArrayOutputStream(); final byte[] buffer = new byte[128]; listener = (KKAPIRequestListener) params[0]; int retryTimes = 0; File cacheFile = null; ConnectivityManager connectivityManager = null; if ...
public Void doInBackground(Object... params) { int readLength; final ByteArrayOutputStream data = new ByteArrayOutputStream(); final byte[] buffer = new byte[128]; listener = (KKAPIRequestListener) params[0]; int retryTimes = 0; File cacheFile = null; ConnectivityManager connectivityManager = null; if ...
diff --git a/liquibase-core/src/main/java/liquibase/lockservice/LockService.java b/liquibase-core/src/main/java/liquibase/lockservice/LockService.java index 571e912e..273fb571 100644 --- a/liquibase-core/src/main/java/liquibase/lockservice/LockService.java +++ b/liquibase-core/src/main/java/liquibase/lockservice/LockSe...
true
true
public boolean acquireLock() throws LockException { if (hasChangeLogLock) { return true; } Executor executor = ExecutorService.getInstance().getExecutor(database); try { database.rollback(); database.checkDatabaseChangeLogLockTable(); ...
public boolean acquireLock() throws LockException { if (hasChangeLogLock) { return true; } Executor executor = ExecutorService.getInstance().getExecutor(database); try { database.rollback(); database.checkDatabaseChangeLogLockTable(); ...
diff --git a/src/com/digitallizard/bbcnewsreader/data/DatabaseHandler.java b/src/com/digitallizard/bbcnewsreader/data/DatabaseHandler.java index d6e6a29..a0f14b7 100644 --- a/src/com/digitallizard/bbcnewsreader/data/DatabaseHandler.java +++ b/src/com/digitallizard/bbcnewsreader/data/DatabaseHandler.java @@ -1,523 +1,52...
true
true
public void insertItem(String title, String description, String link, Date pubdate, String category, String thumbnailUrl, int priority){ long timestamp = pubdate.getTime(); Date now = new Date(); //check if the news is old or not if(timestamp > (now.getTime() - clearOutAgeMilliSecs)){ //che...
public void insertItem(String title, String description, String link, Date pubdate, String category, String thumbnailUrl, int priority){ long timestamp = pubdate.getTime(); Date now = new Date(); //check if the news is old or not if(timestamp > (now.getTime() - clearOutAgeMilliSecs)){ //che...
diff --git a/src/edu/mit/mel/locast/mobile/casts/CastDetailsActivity.java b/src/edu/mit/mel/locast/mobile/casts/CastDetailsActivity.java index 3b645bc..5b05970 100644 --- a/src/edu/mit/mel/locast/mobile/casts/CastDetailsActivity.java +++ b/src/edu/mit/mel/locast/mobile/casts/CastDetailsActivity.java @@ -1,331 +1,331 @@...
true
true
public boolean onMenuItemSelected(int featureId, MenuItem item) { final Uri cast = getIntent().getData(); switch (item.getItemId()){ case R.id.add_cast_to_project: startActivity(new Intent(Intent.ACTION_ATTACH_DATA, cast)); return true; case R.id.cast_edit: startActivity(new Intent(Intent.ACTION_EDI...
public boolean onMenuItemSelected(int featureId, MenuItem item) { final Uri cast = getIntent().getData(); switch (item.getItemId()){ case R.id.add_cast_to_project: startActivity(new Intent(Intent.ACTION_ATTACH_DATA, cast)); return true; case R.id.cast_edit: startActivity(new Intent(Intent.ACTION_EDI...
diff --git a/core/src/main/java/com/edge/twitter_research/core/DateTimeCreator.java b/core/src/main/java/com/edge/twitter_research/core/DateTimeCreator.java index 8243ecc..9f9ef50 100644 --- a/core/src/main/java/com/edge/twitter_research/core/DateTimeCreator.java +++ b/core/src/main/java/com/edge/twitter_research/core/...
true
true
public static String getDateTimeString(){ return dateFormat.format(new Date()); }
public static String getDateTimeString(){ return dateFormat.format(new Date(System.currentTimeMillis())); }
diff --git a/trunk/CruxWidgets/src/br/com/sysmap/crux/widgets/client/rollingpanel/RollingPanel.java b/trunk/CruxWidgets/src/br/com/sysmap/crux/widgets/client/rollingpanel/RollingPanel.java index 22e9f38e7..c0194b3dc 100644 --- a/trunk/CruxWidgets/src/br/com/sysmap/crux/widgets/client/rollingpanel/RollingPanel.java +++ ...
false
true
public RollingPanel(boolean vertical) { this.vertical = vertical; this.layoutPanel = new DockPanel(); this.itemsScrollPanel = new SimplePanel(); DOM.setStyleAttribute(this.itemsScrollPanel.getElement(), "overflow", "hidden"); if (vertical) { this.layoutPanel.setHeight("100%"); this.itemsScr...
public RollingPanel(boolean vertical) { this.vertical = vertical; this.layoutPanel = new DockPanel(); this.itemsScrollPanel = new SimplePanel(); if (vertical) { DOM.setStyleAttribute(this.itemsScrollPanel.getElement(), "overflowY", "hidden"); this.layoutPanel.setHeight("100%"); this.itemsScro...
diff --git a/java/test/org/broadinstitute/sting/gatk/walkers/genotyper/UnifiedGenotyperIntegrationTest.java b/java/test/org/broadinstitute/sting/gatk/walkers/genotyper/UnifiedGenotyperIntegrationTest.java index f99e37cfb..d5760a32e 100755 --- a/java/test/org/broadinstitute/sting/gatk/walkers/genotyper/UnifiedGenotyperI...
true
true
public void testOtherOutput() { String[] md5s = {"a5dce541f00d3fe364d110f1cae53538", "cea954546a304aa98fc3a18d4305090a"}; WalkerTest.WalkerTestSpec spec = new WalkerTest.WalkerTestSpec( "-T UnifiedGenotyper" + " -R " + oneKGLocation + "reference/human_b36_both...
public void testOtherOutput() { String[] md5s = {"a5dce541f00d3fe364d110f1cae53538", "cea954546a304aa98fc3a18d4305090a"}; WalkerTest.WalkerTestSpec spec = new WalkerTest.WalkerTestSpec( "-T UnifiedGenotyper" + " -R " + oneKGLocation + "reference/human_b36_both...
diff --git a/web/src/main/java/edu/northwestern/bioinformatics/studycalendar/web/template/SelectStudyController.java b/web/src/main/java/edu/northwestern/bioinformatics/studycalendar/web/template/SelectStudyController.java index 1aa6e1568..9ff9c42df 100644 --- a/web/src/main/java/edu/northwestern/bioinformatics/studyca...
true
true
public ModelAndView handleRequest(HttpServletRequest request, HttpServletResponse response) throws Exception { int id = ServletRequestUtils.getRequiredIntParameter(request, "study"); Study study = studyDao.getById(id); Study theRevisedStudy = null; if (study.isReleased()) { ...
public ModelAndView handleRequest(HttpServletRequest request, HttpServletResponse response) throws Exception { int id = ServletRequestUtils.getRequiredIntParameter(request, "study"); Study study = studyDao.getById(id); Study theRevisedStudy = null; if (study.isReleased()) { ...
diff --git a/frost-wot/source/frost/threads/insertThread.java b/frost-wot/source/frost/threads/insertThread.java index 9bff99c7..1291a077 100644 --- a/frost-wot/source/frost/threads/insertThread.java +++ b/frost-wot/source/frost/threads/insertThread.java @@ -1,277 +1,277 @@ /* insertThread.java / Frost Copyright...
false
true
public void run() { if (batchId==null) { Error er = new Error(); er.fillInStackTrace(); er.printStackTrace(Core.getOut()); } if (Core.getMyBatches().values().size()==0) Core.getMyBatches().put(batchId,batchId); try { String lastUploadDate...
public void run() { if (batchId==null) { Error er = new Error(); er.fillInStackTrace(); er.printStackTrace(Core.getOut()); } if (Core.getMyBatches().values().size()==0) Core.getMyBatches().put(batchId,batchId); try { String lastUploadDate...
diff --git a/org.eclipse.mylyn.tests/src/org/eclipse/mylyn/tests/AllTests.java b/org.eclipse.mylyn.tests/src/org/eclipse/mylyn/tests/AllTests.java index 6d1686d..7c7e56d 100644 --- a/org.eclipse.mylyn.tests/src/org/eclipse/mylyn/tests/AllTests.java +++ b/org.eclipse.mylyn.tests/src/org/eclipse/mylyn/tests/AllTests.java...
true
true
public static Test suite() { // the order of these tests might still matter, but shouldn't TestSuite suite = new TestSuite("Test for org.eclipse.mylyn.tests"); suite.addTest(AllCommonsTests.suite()); suite.addTest(AllContextTests.suite()); suite.addTest(AllJavaTests.suite()); suite.addTest(AllMonitorTests....
public static Test suite() { // the order of these tests might still matter, but shouldn't TestSuite suite = new TestSuite("Test for org.eclipse.mylyn.tests"); suite.addTest(AllCommonsTests.suite()); suite.addTest(AllContextTests.suite()); suite.addTest(AllJavaTests.suite()); suite.addTest(AllMonitorTests....
diff --git a/src/dk/dbc/opensearch/components/datadock/DatadockMain.java b/src/dk/dbc/opensearch/components/datadock/DatadockMain.java index 2419b14d..d120b3da 100644 --- a/src/dk/dbc/opensearch/components/datadock/DatadockMain.java +++ b/src/dk/dbc/opensearch/components/datadock/DatadockMain.java @@ -1,452 +1,443 @@ ...
false
true
static public void main(String[] args) throws Throwable { /** \todo: the value of the configuration file is hardcoded */ Log4jConfiguration.configure( "log4j_datadock.xml" ); log.trace( "DatadockMain main called" ); ConsoleAppender startupAppender = new ConsoleAppender(new Simpl...
static public void main(String[] args) throws Throwable { /** \todo: the value of the configuration file is hardcoded */ Log4jConfiguration.configure( "log4j_datadock.xml" ); log.trace( "DatadockMain main called" ); ConsoleAppender startupAppender = new ConsoleAppender(new Simpl...
diff --git a/src/org/intellij/erlang/inspection/ErlangUnresolvedRecordFieldInspection.java b/src/org/intellij/erlang/inspection/ErlangUnresolvedRecordFieldInspection.java index 3e81487f..cfe0c8bc 100644 --- a/src/org/intellij/erlang/inspection/ErlangUnresolvedRecordFieldInspection.java +++ b/src/org/intellij/erlang/ins...
true
true
protected void checkFile(PsiFile file, final ProblemsHolder problemsHolder) { if (!(file instanceof ErlangFile)) return; file.accept(new ErlangRecursiveVisitor() { @Override public void visitRecordField(@NotNull ErlangRecordField o) { ErlangRecordExpression recordExpression = PsiTreeUtil.g...
protected void checkFile(PsiFile file, final ProblemsHolder problemsHolder) { if (!(file instanceof ErlangFile)) return; file.accept(new ErlangRecursiveVisitor() { @Override public void visitRecordField(@NotNull ErlangRecordField o) { super.visitRecordField(o); ErlangRecordExpressi...
diff --git a/src/main/java/xdi2/example/server/BasicEndpointServerSample.java b/src/main/java/xdi2/example/server/BasicEndpointServerSample.java index ead5621..2fa53c0 100644 --- a/src/main/java/xdi2/example/server/BasicEndpointServerSample.java +++ b/src/main/java/xdi2/example/server/BasicEndpointServerSample.java @@ ...
true
true
public static void main(String[] args) throws Throwable { // create the XDI2 server EndpointServerEmbedded endpointServer = EndpointServerEmbedded.newServer(); // set up graph messaging target Graph graph = MemoryGraphFactory.getInstance().openGraph(); GraphMessagingTarget messagingTarget = new GraphMess...
public static void main(String[] args) throws Throwable { // create the XDI2 server EndpointServerEmbedded endpointServer = EndpointServerEmbedded.newServer(); // set up graph messaging target Graph graph = MemoryGraphFactory.getInstance().openGraph(); GraphMessagingTarget messagingTarget = new GraphMess...
diff --git a/modules/core/src/main/java/org/openlmis/core/dto/FacilityFeedDTO.java b/modules/core/src/main/java/org/openlmis/core/dto/FacilityFeedDTO.java index 4ff530a519..219d7388b1 100644 --- a/modules/core/src/main/java/org/openlmis/core/dto/FacilityFeedDTO.java +++ b/modules/core/src/main/java/org/openlmis/core/dt...
true
true
public FacilityFeedDTO(Facility facility) { this.id = facility.getId(); this.code = facility.getCode(); this.name = facility.getName(); this.typeId = facility.getFacilityType().getId(); this.description = facility.getDescription(); this.GLN = facility.getGln(); this.mainPhone = facility.ge...
public FacilityFeedDTO(Facility facility) { this.id = facility.getId(); this.code = facility.getCode(); this.name = facility.getName(); this.typeId = facility.getFacilityType().getId(); this.description = facility.getDescription(); this.GLN = facility.getGln(); this.mainPhone = facility.ge...
diff --git a/php-checks/src/main/java/org/sonar/php/checks/TooManyReturnCheck.java b/php-checks/src/main/java/org/sonar/php/checks/TooManyReturnCheck.java index 59c172b0..2a47deae 100644 --- a/php-checks/src/main/java/org/sonar/php/checks/TooManyReturnCheck.java +++ b/php-checks/src/main/java/org/sonar/php/checks/TooMa...
true
true
public void leaveNode(AstNode astNode) { if (astNode.is(PHPGrammar.BLOCK) && isFunctionBlock(astNode)) { if (getReturnStatementCounter() > max) { getContext().createLineViolation(this, "Reduce the number of returns of this function {0}, down to the maximum allowed {1}.", astNode, getReturn...
public void leaveNode(AstNode astNode) { if (astNode.is(PHPGrammar.BLOCK) && isFunctionBlock(astNode)) { if (getReturnStatementCounter() > max) { getContext().createLineViolation(this, "Reduce the number of returns of this function {0}, down to the maximum allowed {1}.", astNode.getParent(...
diff --git a/src/be/ibridge/kettle/trans/step/flattener/Flattener.java b/src/be/ibridge/kettle/trans/step/flattener/Flattener.java index 6fb2a869..00512976 100644 --- a/src/be/ibridge/kettle/trans/step/flattener/Flattener.java +++ b/src/be/ibridge/kettle/trans/step/flattener/Flattener.java @@ -1,167 +1,167 @@ /******...
true
true
public boolean processRow(StepMetaInterface smi, StepDataInterface sdi) throws KettleException { debug=Messages.getString("Flattener.Debug.ProcessRow"); //$NON-NLS-1$ Row r=getRow(); // get row! if (r==null) // no more input to be expected... { // Don't forget the last set of rows... if (data.pro...
public boolean processRow(StepMetaInterface smi, StepDataInterface sdi) throws KettleException { debug="processRow"; //$NON-NLS-1$ Row r=getRow(); // get row! if (r==null) // no more input to be expected... { // Don't forget the last set of rows... if (data.processed>0) { // R...
diff --git a/src/main/java/com/zanoccio/packetkit/headers/ARPHeader.java b/src/main/java/com/zanoccio/packetkit/headers/ARPHeader.java index 8726ba54..7981fb77 100644 --- a/src/main/java/com/zanoccio/packetkit/headers/ARPHeader.java +++ b/src/main/java/com/zanoccio/packetkit/headers/ARPHeader.java @@ -1,163 +1,164 @@ ...
true
true
public static ARPHeader whoHas(IP4Address addr) { ARPHeader header = new ARPHeader(); header.setHardwareType(ARPHardwareType.ETHERNET); header.setProtocolType(ARPProtocolType.IP4); header.setHardwareSize(6); header.setProtocolSize(4); header.setTargetMAC(MACAddress.EMPTY); header.setTargetIP(addr); r...
public static ARPHeader whoHas(IP4Address addr) { ARPHeader header = new ARPHeader(); header.setHardwareType(ARPHardwareType.ETHERNET); header.setProtocolType(ARPProtocolType.IP4); header.setHardwareSize(6); header.setProtocolSize(4); header.setTargetMAC(MACAddress.EMPTY); header.setTargetIP(addr); he...
diff --git a/sigfood-android/src/de/sigfood/CommentFragment.java b/sigfood-android/src/de/sigfood/CommentFragment.java index 99ce3c4..b0823e4 100644 --- a/sigfood-android/src/de/sigfood/CommentFragment.java +++ b/sigfood-android/src/de/sigfood/CommentFragment.java @@ -1,107 +1,107 @@ package de.sigfood; // --------...
true
true
public void setComments(final MensaEssen e) { if (v==null) return; View scroller = (View)v.findViewById(R.id.commentsView); scroller.setVisibility(View.VISIBLE); View note = (View)v.findViewById(R.id.commentsNote); note.setVisibility(View.GONE); TextView name = (TextView)v.findViewById(R.id.commentsTit...
public void setComments(final MensaEssen e) { if (v==null) return; View scroller = (View)v.findViewById(R.id.commentsView); scroller.setVisibility(View.VISIBLE); View note = (View)v.findViewById(R.id.commentsNote); note.setVisibility(View.GONE); TextView name = (TextView)v.findViewById(R.id.commentsTit...
diff --git a/src/org/geometerplus/zlibrary/core/language/ZLLanguageUtil.java b/src/org/geometerplus/zlibrary/core/language/ZLLanguageUtil.java index 068d2b0f..b4900240 100644 --- a/src/org/geometerplus/zlibrary/core/language/ZLLanguageUtil.java +++ b/src/org/geometerplus/zlibrary/core/language/ZLLanguageUtil.java @@ -1...
true
true
public static String languageByIntCode(int languageCode, int subLanguageCode) { switch (languageCode) { default: return null; case 0x01: return "ar"; // Arabic case 0x02: return "bg"; // Bulgarian case 0x03: return "ca"; // Catalan case 0x04: return "zh"; // Chinese case 0x05: return "cs"; /...
public static String languageByIntCode(int languageCode, int subLanguageCode) { switch (languageCode) { default: return null; case 0x01: return "ar"; // Arabic case 0x02: return "bg"; // Bulgarian case 0x03: return "ca"; // Catalan case 0x04: return "zh"; // Chinese case 0x05: return "cs"; /...
diff --git a/gnu/testlet/java/math/BigInteger/TestOfToByteArray.java b/gnu/testlet/java/math/BigInteger/TestOfToByteArray.java index 9b2dd112..c524ebd7 100644 --- a/gnu/testlet/java/math/BigInteger/TestOfToByteArray.java +++ b/gnu/testlet/java/math/BigInteger/TestOfToByteArray.java @@ -1,57 +1,56 @@ /* TestOfToByteArr...
true
true
public void test(TestHarness harness) { harness.checkPoint("TestOfToByteArray"); try { BigInteger x = new BigInteger(BYTES); harness.verbose("*** x = 0x" + x.toString(16)); byte[] ba = x.toByteArray(); harness.verbose("*** y = 0x" + gnu.java.security.util.Util.dumpString(ba)); ...
public void test(TestHarness harness) { harness.checkPoint("TestOfToByteArray"); try { BigInteger x = new BigInteger(BYTES); harness.verbose("*** x = 0x" + x.toString(16)); byte[] ba = x.toByteArray(); harness.check(Arrays.equals(ba, BYTES), true, "Byte arrays MUST be equal"); ...
diff --git a/src/com/android/bluetooth/opp/BluetoothOppLauncherActivity.java b/src/com/android/bluetooth/opp/BluetoothOppLauncherActivity.java index 55ba463..7112cbb 100644 --- a/src/com/android/bluetooth/opp/BluetoothOppLauncherActivity.java +++ b/src/com/android/bluetooth/opp/BluetoothOppLauncherActivity.java @@ -1,2...
true
true
public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); Intent intent = getIntent(); String action = intent.getAction(); BluetoothDevice device = null; boolean isHandover = true; if (action.equals(Intent.ACTION_SEND) || action.equals(In...
public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); Intent intent = getIntent(); String action = intent.getAction(); BluetoothDevice device = null; boolean isHandover = false; if (action.equals(Intent.ACTION_SEND) || action.equals(I...
diff --git a/src/fi/helsinki/cs/scheduler3000/cli/NewReportToScreen.java b/src/fi/helsinki/cs/scheduler3000/cli/NewReportToScreen.java index 7ea82e5..ab9da61 100644 --- a/src/fi/helsinki/cs/scheduler3000/cli/NewReportToScreen.java +++ b/src/fi/helsinki/cs/scheduler3000/cli/NewReportToScreen.java @@ -1,18 +1,18 @@ pack...
true
true
void run() { super.run(); if( report == null ) { System.out.println( report ); } }
void run() { super.run(); if( report != null ) { System.out.println( report ); } }
diff --git a/src/main/java/org/iplantc/de/client/views/windows/DeDiskResourceWindow.java b/src/main/java/org/iplantc/de/client/views/windows/DeDiskResourceWindow.java index 72e953cb..9f3e395f 100644 --- a/src/main/java/org/iplantc/de/client/views/windows/DeDiskResourceWindow.java +++ b/src/main/java/org/iplantc/de/clie...
true
true
public DeDiskResourceWindow(final DiskResourceWindowConfig config) { super(null, null); presenter = DiskResourceInjector.INSTANCE.getDiskResourceViewPresenter(); setHeadingText(org.iplantc.de.resources.client.messages.I18N.DISPLAY.data()); setSize("700", "375"); // Create a...
public DeDiskResourceWindow(final DiskResourceWindowConfig config) { super(null, null); presenter = DiskResourceInjector.INSTANCE.getDiskResourceViewPresenter(); setHeadingText(org.iplantc.de.resources.client.messages.I18N.DISPLAY.data()); setSize("800", "480"); // Create a...
diff --git a/core/src/visad/trunk/data/tiff/TiffForm.java b/core/src/visad/trunk/data/tiff/TiffForm.java index ef8f2b5d6..33ed98e6f 100644 --- a/core/src/visad/trunk/data/tiff/TiffForm.java +++ b/core/src/visad/trunk/data/tiff/TiffForm.java @@ -1,343 +1,337 @@ // // TiffForm.java // /* VisAD system for interacti...
false
true
public DataImpl open(String id) throws BadFormException, IOException, VisADException { // determine whether ImageJ can handle the file TiffDecoder tdec = new TiffDecoder("", id); FileInfo[] info = null; boolean canUseImageJ = true; try { info = tdec.getTiffInfo(); } catch (IOEx...
public DataImpl open(String id) throws BadFormException, IOException, VisADException { // determine whether ImageJ can handle the file TiffDecoder tdec = new TiffDecoder("", id); FileInfo[] info = null; boolean canUseImageJ = true; try { info = tdec.getTiffInfo(); } catch (IOEx...
diff --git a/jsf/plugins/org.eclipse.jst.jsf.common/src/org/eclipse/jst/jsf/common/util/JDTBeanIntrospector.java b/jsf/plugins/org.eclipse.jst.jsf.common/src/org/eclipse/jst/jsf/common/util/JDTBeanIntrospector.java index e5842337c..526d717ff 100644 --- a/jsf/plugins/org.eclipse.jst.jsf.common/src/org/eclipse/jst/jsf/co...
true
true
private void processPropertyMethod(IMethod method, Map<String, JDTBeanProperty> properties) throws JavaModelException { // to be a bean method, it must not a constructor, must be public // and must not be static if (!method.isConstructor() && Flags.isPublic(method.getFlags()) && !Flags.isStatic(method.g...
private void processPropertyMethod(IMethod method, Map<String, JDTBeanProperty> properties) throws JavaModelException { // to be a bean method, it must not a constructor, must be public // and must not be static if (!method.isConstructor() && ( Flags.isPublic(method.getFlags()) || _type.isInterf...
diff --git a/core/src/com/google/zxing/oned/Code39Reader.java b/core/src/com/google/zxing/oned/Code39Reader.java index 598f43e8..f0ec83df 100644 --- a/core/src/com/google/zxing/oned/Code39Reader.java +++ b/core/src/com/google/zxing/oned/Code39Reader.java @@ -1,323 +1,323 @@ /* * Copyright 2008 ZXing authors * * ...
true
true
public Result decodeRow(int rowNumber, BitArray row, Map<DecodeHintType,?> hints) throws NotFoundException, ChecksumException, FormatException { int[] theCounters = counters; Arrays.fill(theCounters, 0); StringBuilder result = decodeRowResult; result.setLength(0); int[] start = findAsteris...
public Result decodeRow(int rowNumber, BitArray row, Map<DecodeHintType,?> hints) throws NotFoundException, ChecksumException, FormatException { int[] theCounters = counters; Arrays.fill(theCounters, 0); StringBuilder result = decodeRowResult; result.setLength(0); int[] start = findAsteris...
diff --git a/nexus/nexus-test-harness/nexus-test-harness-launcher/src/test/java/org/sonatype/nexus/integrationtests/nxcm970/Nxcm970SimultaneousUploadDownloadTest.java b/nexus/nexus-test-harness/nexus-test-harness-launcher/src/test/java/org/sonatype/nexus/integrationtests/nxcm970/Nxcm970SimultaneousUploadDownloadTest.ja...
true
true
public void testSimultaneousUploadDownload() throws Exception { // preparations String baseUrl = getRepositoryUrl( "nexus-test-harness-repo" ); // add path String targetUrl = baseUrl + "nxcm970/artifact/1.0/artifact-1.0.pom"; // create deployer that we will contr...
public void testSimultaneousUploadDownload() throws Exception { // preparations String baseUrl = getRepositoryUrl( "nexus-test-harness-repo" ); // add path String targetUrl = baseUrl + "nxcm970/artifact/1.0/artifact-1.0.pom"; // create deployer that we will contr...
diff --git a/java/modules/transports/core/nhttp/src/main/java/org/apache/synapse/transport/nhttp/HttpCoreNIOSender.java b/java/modules/transports/core/nhttp/src/main/java/org/apache/synapse/transport/nhttp/HttpCoreNIOSender.java index 0ab7fe4c3..053988e7d 100644 --- a/java/modules/transports/core/nhttp/src/main/java/or...
true
true
private void sendAsyncResponse(MessageContext msgContext) throws AxisFault { int contentLength = extractContentLength(msgContext); // remove unwanted HTTP headers (if any from the current message) removeUnwantedHeaders(msgContext); ServerWorker worker = (ServerWorker) msgContext.g...
private void sendAsyncResponse(MessageContext msgContext) throws AxisFault { int contentLength = extractContentLength(msgContext); // remove unwanted HTTP headers (if any from the current message) removeUnwantedHeaders(msgContext); ServerWorker worker = (ServerWorker) msgContext.g...
diff --git a/sirocco-cimi-api-server-impl/src/main/java/org/ow2/sirocco/cimi/server/manager/network/CimiManagerReadNetworkCollection.java b/sirocco-cimi-api-server-impl/src/main/java/org/ow2/sirocco/cimi/server/manager/network/CimiManagerReadNetworkCollection.java index fa5db7b..71df971 100644 --- a/sirocco-cimi-api-se...
true
true
protected Object callService(final CimiContext context, final Object dataService) throws Exception { Object out = null; if (false == context.hasParamsForReadingCollection()) { out = this.manager.getNetworks(); } else { QueryResult<?> results = this.manager.getNetworks...
protected Object callService(final CimiContext context, final Object dataService) throws Exception { Object out = null; if (false == context.hasParamsForReadingCollection()) { out = this.manager.getNetworks().getItems(); } else { QueryResult<?> results = this.manager....
diff --git a/src/main/java/pl/psnc/dl/wf4ever/rosrs/ROSRService.java b/src/main/java/pl/psnc/dl/wf4ever/rosrs/ROSRService.java index 0f4f1910..d0401e73 100644 --- a/src/main/java/pl/psnc/dl/wf4ever/rosrs/ROSRService.java +++ b/src/main/java/pl/psnc/dl/wf4ever/rosrs/ROSRService.java @@ -1,660 +1,660 @@ package pl.psnc....
false
true
public static ResponseBuilder getInternalResource(URI researchObject, URI resource, String accept, String original) throws DigitalLibraryException, NotFoundException, AccessDeniedException { String researchObjectId = getResearchObjectId(researchObject); String filePath = researchObject.r...
public static ResponseBuilder getInternalResource(URI researchObject, URI resource, String accept, String original) throws DigitalLibraryException, NotFoundException, AccessDeniedException { String researchObjectId = getResearchObjectId(researchObject); String filePath = researchObject.r...
diff --git a/src/main/java/net/floodlightcontroller/core/internal/Controller.java b/src/main/java/net/floodlightcontroller/core/internal/Controller.java index fa321f7..ad7e231 100644 --- a/src/main/java/net/floodlightcontroller/core/internal/Controller.java +++ b/src/main/java/net/floodlightcontroller/core/internal/Con...
false
true
protected void processOFMessage(OFMessage m) throws IOException, SwitchStateException { boolean shouldHandleMessage = false; switch (m.getType()) { case HELLO: if (log.isTraceEnabled()) log.trace("HE...
protected void processOFMessage(OFMessage m) throws IOException, SwitchStateException { boolean shouldHandleMessage = false; switch (m.getType()) { case HELLO: if (log.isTraceEnabled()) log.trace("HE...
diff --git a/src/minecraft/biomesoplenty/blocks/BlockBOPGlass.java b/src/minecraft/biomesoplenty/blocks/BlockBOPGlass.java index 71a2d95dc..cefb5394b 100644 --- a/src/minecraft/biomesoplenty/blocks/BlockBOPGlass.java +++ b/src/minecraft/biomesoplenty/blocks/BlockBOPGlass.java @@ -1,305 +1,308 @@ package biomesoplenty....
true
true
public boolean onBlockActivated(World world, int x, int y, int z, EntityPlayer player, int meta, float par7, float par8, float par9) { ItemStack equippedItem = player.getCurrentEquippedItem(); Random rand = new Random(); if (equippedItem != null) { if (equippedItem.itemID == Items.soulManipulator.get().it...
public boolean onBlockActivated(World world, int x, int y, int z, EntityPlayer player, int meta, float par7, float par8, float par9) { ItemStack equippedItem = player.getCurrentEquippedItem(); Random rand = new Random(); if (equippedItem != null) { if (equippedItem.itemID == Items.soulManipulator.get().it...
diff --git a/hqapi1-tools/src/main/java/tools/Shell.java b/hqapi1-tools/src/main/java/tools/Shell.java index a005c99..8fba6ad 100644 --- a/hqapi1-tools/src/main/java/tools/Shell.java +++ b/hqapi1-tools/src/main/java/tools/Shell.java @@ -1,266 +1,268 @@ /* * * NOTE: This copyright does *not* cover user programs th...
true
true
static void initConnectionProperties(final String[] args) throws Exception { final List<String> connectionArgs = new ArrayList<String>(5); for (int i=0;i <args.length;i++) { final String arg = args[i]; if (arg.trim().startsWith("--" + OptionParserFactory.OPT_HOST) || ...
static void initConnectionProperties(final String[] args) throws Exception { final List<String> connectionArgs = new ArrayList<String>(5); for (int i=0;i <args.length;i++) { final String arg = args[i]; if (arg.trim().startsWith("--" + OptionParserFactory.OPT_HOST) || ...
diff --git a/tapestry-test/src/main/java/org/apache/tapestry5/test/ErrorReportingCommandProcessor.java b/tapestry-test/src/main/java/org/apache/tapestry5/test/ErrorReportingCommandProcessor.java index 67a43ff28..d27e37623 100644 --- a/tapestry-test/src/main/java/org/apache/tapestry5/test/ErrorReportingCommandProcessor....
true
true
private void reportError(String command, String[] args, RuntimeException ex) { StringBuilder builder = new StringBuilder(); builder.append(BORDER); builder.append("\nSeleninum failure processing command "); builder.append(command); builder.append("("); for (int ...
private void reportError(String command, String[] args, RuntimeException ex) { StringBuilder builder = new StringBuilder(); builder.append(BORDER); builder.append("\nSelenium failure processing command "); builder.append(command); builder.append("("); for (int i...
diff --git a/src/haven/GLState.java b/src/haven/GLState.java index 309a2a79..67753fd0 100644 --- a/src/haven/GLState.java +++ b/src/haven/GLState.java @@ -1,405 +1,405 @@ /* * This file is part of the Haven & Hearth game client. * Copyright (C) 2009 Fredrik Tolf <fredrik@dolda2000.com>, and * ...
true
true
public static int bufdiff(Buffer f, Buffer t, boolean[] trans, boolean[] repl) { int cost = 0; f.adjust(); t.adjust(); if(trans != null) { for(int i = 0; i < trans.length; i++) { trans[i] = false; repl[i] = false; } } for(int i = 0; i < f.states.length; i++) { if(((f.states[i] == null) != (t...
public static int bufdiff(Buffer f, Buffer t, boolean[] trans, boolean[] repl) { int cost = 0; f.adjust(); t.adjust(); if(trans != null) { for(int i = 0; i < trans.length; i++) { trans[i] = false; repl[i] = false; } } for(int i = 0; i < f.states.length; i++) { if(((f.states[i] == null) != (t...
diff --git a/source/de/anomic/server/serverAbstractSwitch.java b/source/de/anomic/server/serverAbstractSwitch.java index 73d9e6ebd..a20fa4e48 100644 --- a/source/de/anomic/server/serverAbstractSwitch.java +++ b/source/de/anomic/server/serverAbstractSwitch.java @@ -1,396 +1,396 @@ // serverAbstractSwitch.java // -----...
true
true
public serverAbstractSwitch(String rootPath, String initPath, String configPath) throws IOException { // we initialize the switchboard with a property file, // but maintain these properties then later in a new 'config' file // to reset all changed configs, the config file must // be deleted, but not the init fi...
public serverAbstractSwitch(String rootPath, String initPath, String configPath) throws IOException { // we initialize the switchboard with a property file, // but maintain these properties then later in a new 'config' file // to reset all changed configs, the config file must // be deleted, but not the init fi...
diff --git a/BetterBatteryStats/src/com/asksven/betterbatterystats/adapters/StatsAdapter.java b/BetterBatteryStats/src/com/asksven/betterbatterystats/adapters/StatsAdapter.java index d5572371..cad6f641 100644 --- a/BetterBatteryStats/src/com/asksven/betterbatterystats/adapters/StatsAdapter.java +++ b/BetterBatteryStats...
true
true
public View getView(int position, View convertView, ViewGroup viewGroup) { StatElement entry = m_listData.get(position); Log.i(TAG, "Values: " +entry.getVals()); if (convertView == null) { LayoutInflater inflater = (LayoutInflater) m_context .getSy...
public View getView(int position, View convertView, ViewGroup viewGroup) { StatElement entry = m_listData.get(position); Log.i(TAG, "Values: " +entry.getVals()); if (convertView == null) { LayoutInflater inflater = (LayoutInflater) m_context .getSy...
diff --git a/assignment_1/src/GzipProcess.java b/assignment_1/src/GzipProcess.java index 89c88e8..607a396 100644 --- a/assignment_1/src/GzipProcess.java +++ b/assignment_1/src/GzipProcess.java @@ -1,183 +1,183 @@ import java.io.BufferedInputStream; import java.io.BufferedOutputStream; import java.io.BufferedReader; ...
true
true
public void run() { /*String objname = pathPrefix + "data/serialize/" + id + ".dat"; File objFile = new File(objname); // if it resumes running, read object in if (objFile.exists()) { try { ObjectInputStream in = new ObjectInputStream(new TransactionalFileInputStream(objname)); ...
public void run() { /*String objname = pathPrefix + "data/serialize/" + id + ".dat"; File objFile = new File(objname); // if it resumes running, read object in if (objFile.exists()) { try { ObjectInputStream in = new ObjectInputStream(new TransactionalFileInputStream(objname)); ...
diff --git a/srcj/com/sun/electric/database/ImmutableNodeInst.java b/srcj/com/sun/electric/database/ImmutableNodeInst.java index 5d25239de..0d574699a 100644 --- a/srcj/com/sun/electric/database/ImmutableNodeInst.java +++ b/srcj/com/sun/electric/database/ImmutableNodeInst.java @@ -1,978 +1,964 @@ /* -*- tab-width: 4 -*...
false
true
public void computeBounds(NodeInst real, Rectangle2D.Double dstBounds) { if ((Technology.TESTSURROUNDOVERRIDE_A || Technology.TESTSURROUNDOVERRIDE_B) && real.getProto().getTechnology() == Technology.getMocmosTechnology() && real.getFunction() == PrimitiveNode.Function.CONTACT) { ...
public void computeBounds(NodeInst real, Rectangle2D.Double dstBounds) { // handle cell bounds if (protoId instanceof CellId) { // offset by distance from cell-center to the true center Cell subCell = (Cell)real.getProto(); Rectangle2D bounds = subCell.getBounds(); orient.rectangleBounds...
diff --git a/src/java/org/catacombae/jfuse/FUSE26FileSystemAdapter.java b/src/java/org/catacombae/jfuse/FUSE26FileSystemAdapter.java index b2579a5..1ddebd2 100644 --- a/src/java/org/catacombae/jfuse/FUSE26FileSystemAdapter.java +++ b/src/java/org/catacombae/jfuse/FUSE26FileSystemAdapter.java @@ -1,266 +1,266 @@ /*- ...
true
true
public final FUSE26Capabilities getCapabilities() { FUSE26Capabilities c = new FUSE26Capabilities(); // Find out our capabilities through reflection. Class baseClass = FUSE26Operations.class; Class subClass = this.getClass(); while(!subClass.equals(FUSE26FileSystemAdapter.c...
public final FUSE26Capabilities getCapabilities() { FUSE26Capabilities c = new FUSE26Capabilities(); // Find out our capabilities through reflection. Class baseClass = FUSE26Operations.class; Class<?> subClass = this.getClass(); while(!subClass.equals(FUSE26FileSystemAdapte...
diff --git a/core/src/main/java/org/juzu/portlet/JuzuPortlet.java b/core/src/main/java/org/juzu/portlet/JuzuPortlet.java index 5b0b1f6d..d0ca8de9 100644 --- a/core/src/main/java/org/juzu/portlet/JuzuPortlet.java +++ b/core/src/main/java/org/juzu/portlet/JuzuPortlet.java @@ -1,426 +1,426 @@ /* * Copyright (C) 2011 eX...
false
true
private <P, D> void boot(ReadFileSystem<P> classes, ClassLoader cl) throws Exception { // Find an application P f = classes.getFile(Arrays.asList("org", "juzu"), "config.properties"); URL url = classes.getURL(f); InputStream in = url.openStream(); Properties props = new Properties();...
private <P, D> void boot(ReadFileSystem<P> classes, ClassLoader cl) throws Exception { // Find an application P f = classes.getFile(Arrays.asList("org", "juzu"), "config.properties"); URL url = classes.getURL(f); InputStream in = url.openStream(); Properties props = new Properties();...
diff --git a/microsoft-azure-api/src/test/java/com/microsoft/windowsazure/services/media/models/JobInfoTest.java b/microsoft-azure-api/src/test/java/com/microsoft/windowsazure/services/media/models/JobInfoTest.java index 59a5f13f9c..a4e7fd95fe 100644 --- a/microsoft-azure-api/src/test/java/com/microsoft/windowsazure/se...
true
true
public void testGetSetNotificationEndPoint() { // Arrange String expectedNotificationEndPointId = "testNotificationEndPointId"; JobNotificationSubscription expectedJobNotificationSubscription = new JobNotificationSubscription( expectedNotificationEndPointId, TargetJobState.A...
public void testGetSetNotificationEndPoint() { // Arrange String expectedNotificationEndPointId = "testNotificationEndPointId"; JobNotificationSubscription expectedJobNotificationSubscription = new JobNotificationSubscription( expectedNotificationEndPointId, TargetJobState.A...
diff --git a/console/console-war/src/main/java/org/bonitasoft/console/client/admin/bpm/task/view/TaskMoreDetailsAdminPage.java b/console/console-war/src/main/java/org/bonitasoft/console/client/admin/bpm/task/view/TaskMoreDetailsAdminPage.java index 4fd578ec7..770e8c72b 100644 --- a/console/console-war/src/main/java/org...
false
true
protected LinkedList<ItemDetailsMetadata> defineMetadatas(final IFlowNodeItem task) { final MetadataTaskBuilder metadatas = new MetadataTaskBuilder(); metadatas.addCaseId(task, true); metadatas.addAppsName(); metadatas.addAppsVersion(); metadatas.addType(); metadatas....
protected LinkedList<ItemDetailsMetadata> defineMetadatas(final IFlowNodeItem task) { final MetadataTaskBuilder metadatas = new MetadataTaskBuilder(); metadatas.addAppsName(); metadatas.addAppsVersion(); metadatas.addCaseId(task, true); metadatas.addType(); metadatas....
diff --git a/src/com/android/contacts/activities/ContactDetailActivity.java b/src/com/android/contacts/activities/ContactDetailActivity.java index de262b228..2e49883a9 100644 --- a/src/com/android/contacts/activities/ContactDetailActivity.java +++ b/src/com/android/contacts/activities/ContactDetailActivity.java @@ -1,5...
false
true
public void onCreate(Bundle savedState) { super.onCreate(savedState); if (PhoneCapabilityTester.isUsingTwoPanes(this)) { // This activity must not be shown. We have to select the contact in the // PeopleActivity instead ==> Create a forward intent and finish final...
public void onCreate(Bundle savedState) { super.onCreate(savedState); if (PhoneCapabilityTester.isUsingTwoPanes(this)) { // This activity must not be shown. We have to select the contact in the // PeopleActivity instead ==> Create a forward intent and finish final...
diff --git a/utils/src/java/org/sakaiproject/entitybroker/util/request/RequestUtils.java b/utils/src/java/org/sakaiproject/entitybroker/util/request/RequestUtils.java index a98c3caa..dd6ea8f3 100644 --- a/utils/src/java/org/sakaiproject/entitybroker/util/request/RequestUtils.java +++ b/utils/src/java/org/sakaiproject/e...
false
true
public static Search makeSearchFromRequestParams(Map<String, Object> params) { Search search = new Search(); int page = -1; int limit = -1; try { if (params != null) { for (Entry<String, Object> entry : params.entrySet()) { String key =...
public static Search makeSearchFromRequestParams(Map<String, Object> params) { Search search = new Search(); int page = -1; int limit = -1; try { if (params != null) { for (Entry<String, Object> entry : params.entrySet()) { String key =...
diff --git a/src/nimrod/java/TagsPredicate.java b/src/nimrod/java/TagsPredicate.java index 4e92642..e28bb96 100644 --- a/src/nimrod/java/TagsPredicate.java +++ b/src/nimrod/java/TagsPredicate.java @@ -1,37 +1,40 @@ package nimrod.java; import com.fasterxml.jackson.core.JsonParser; import com.fasterxml.jackson.core...
false
true
public static boolean contains(byte[] metric, String tags) throws Exception { if (!tags.isEmpty()) { JsonParser parser = FACTORY.createJsonParser(metric); try { HashSet candidates = new HashSet(); boolean contains = true; candidates.add...
public static boolean contains(byte[] metric, String tags) throws Exception { if (!tags.isEmpty()) { JsonParser parser = FACTORY.createJsonParser(metric); try { HashSet candidates = new HashSet(); boolean contains = false; candidates.ad...
diff --git a/bindings/java/test/org/sleuthkit/datamodel/DataModelTestSuite.java b/bindings/java/test/org/sleuthkit/datamodel/DataModelTestSuite.java index aa8e0319..c18d8953 100644 --- a/bindings/java/test/org/sleuthkit/datamodel/DataModelTestSuite.java +++ b/bindings/java/test/org/sleuthkit/datamodel/DataModelTestSuit...
false
true
private static void getTSKData(String standardPath, List<String> img) { String tsk_loc; if (System.getProperty("os.name").contains("Windows")) { tsk_loc = "\\Users\\" + System.getProperty("user.name") + "\\Documents\\GitHub\\sleuthkit\\win32\\Release\\tsk_gettimes"; } else { return; } String[] cmd = {t...
private static void getTSKData(String standardPath, List<String> img) { String tsk_loc; java.io.File up = new java.io.File(System.getProperty("user.dir")); up = up.getParentFile(); up = up.getParentFile(); if (System.getProperty("os.name").contains("Windows")) { tsk_loc = up.getAbsolutePath() + "\\win32\...
diff --git a/activemq-core/src/main/java/org/apache/activemq/kaha/impl/async/DataFile.java b/activemq-core/src/main/java/org/apache/activemq/kaha/impl/async/DataFile.java index af5b12290..24e7a92a1 100644 --- a/activemq-core/src/main/java/org/apache/activemq/kaha/impl/async/DataFile.java +++ b/activemq-core/src/main/ja...
false
true
public synchronized RandomAccessFile openRandomAccessFile(boolean appender) throws IOException { RandomAccessFile rc = new RandomAccessFile(file, "rw"); // When we start to write files size them up so that the OS has a chance // to allocate the file contigously. if (appender) { ...
public synchronized RandomAccessFile openRandomAccessFile(boolean appender) throws IOException { RandomAccessFile rc = new RandomAccessFile(file, "rw"); // When we start to write files size them up so that the OS has a chance // to allocate the file contiguously. if (appender) { ...
diff --git a/apps/i2psnark/java/src/org/klomp/snark/web/I2PSnarkServlet.java b/apps/i2psnark/java/src/org/klomp/snark/web/I2PSnarkServlet.java index 31da3a451..1edc4d4a3 100644 --- a/apps/i2psnark/java/src/org/klomp/snark/web/I2PSnarkServlet.java +++ b/apps/i2psnark/java/src/org/klomp/snark/web/I2PSnarkServlet.java @@ ...
true
true
private void displaySnark(PrintWriter out, Snark snark, String uri, int row, long stats[], boolean showPeers, boolean isDegraded, boolean noThinsp, boolean showDebug) throws IOException { String filename = snark.getName(); File f = new File(filename); filename =...
private void displaySnark(PrintWriter out, Snark snark, String uri, int row, long stats[], boolean showPeers, boolean isDegraded, boolean noThinsp, boolean showDebug) throws IOException { String filename = snark.getName(); File f = new File(filename); filename =...
diff --git a/JavascriptProcess/JavascriptProcess/src/com/objectcloud/javascriptprocess/ParentScope.java b/JavascriptProcess/JavascriptProcess/src/com/objectcloud/javascriptprocess/ParentScope.java index 2506110..25b2be8 100644 --- a/JavascriptProcess/JavascriptProcess/src/com/objectcloud/javascriptprocess/ParentScope.j...
true
true
public ParentScope(IOPump ioPump, JSONObject data, OutputStreamWriter outputStreamWriter) throws Exception { this.ioPump = ioPump; this.outputStreamWriter = outputStreamWriter; final Context context = Context.enter(); try { // Make sure that Javascript calls to Java can't escape try { ...
public ParentScope(IOPump ioPump, JSONObject data, OutputStreamWriter outputStreamWriter) throws Exception { this.ioPump = ioPump; this.outputStreamWriter = outputStreamWriter; final Context context = Context.enter(); try { // Make sure that Javascript calls to Java can't escape try { ...
diff --git a/source/RMG/jing/chem/GATP_Solvation.java b/source/RMG/jing/chem/GATP_Solvation.java index dd9c1f25..c2709f1b 100644 --- a/source/RMG/jing/chem/GATP_Solvation.java +++ b/source/RMG/jing/chem/GATP_Solvation.java @@ -1,128 +1,131 @@ ////////////////////////////////////////////////////////////////////////////...
false
true
public ThermoData generateSolvThermoData(ChemGraph p_chemGraph) { //double r_solute=p_chemGraph.getRadius(); // Returns VdW radius in meter //double r_solvent; r_solvent=3.498e-10;// 3.311; // Manually assigned solvent radius [=] meter Calculated using Connolly solvent excluded ...
public ThermoData generateSolvThermoData(ChemGraph p_chemGraph) { //double r_solute=p_chemGraph.getRadius(); // Returns VdW radius in meter //double r_solvent; r_solvent=3.498e-10;// 3.311; // Manually assigned solvent radius [=] meter Calculated using Connolly solvent excluded ...
diff --git a/servers/sip-servlets/sip-servlets-impl/src/main/java/org/mobicents/servlet/sip/proxy/ProxyBranchImpl.java b/servers/sip-servlets/sip-servlets-impl/src/main/java/org/mobicents/servlet/sip/proxy/ProxyBranchImpl.java index 9948360c1..bb62ad7e7 100644 --- a/servers/sip-servlets/sip-servlets-impl/src/main/java/...
true
true
public void proxySubsequentRequest(SipServletRequestImpl request) { // A re-INVITE needs special handling without goind through the dialog-stateful methods if(request.getMethod().equalsIgnoreCase("INVITE")) { if(logger.isDebugEnabled()) { logger.debug("Proxying reinvite request " + request); } //...
public void proxySubsequentRequest(SipServletRequestImpl request) { // A re-INVITE needs special handling without goind through the dialog-stateful methods if(request.getMethod().equalsIgnoreCase("INVITE")) { if(logger.isDebugEnabled()) { logger.debug("Proxying reinvite request " + request); } //...
diff --git a/src/com/monyetmabuk/rajawali/tutorials/RajawaliMD2Renderer.java b/src/com/monyetmabuk/rajawali/tutorials/RajawaliMD2Renderer.java index 2bff4a3..a606fd2 100644 --- a/src/com/monyetmabuk/rajawali/tutorials/RajawaliMD2Renderer.java +++ b/src/com/monyetmabuk/rajawali/tutorials/RajawaliMD2Renderer.java @@ -1,5...
true
true
protected void initScene() { mLight = new DirectionalLight(0, 0, 1); mLight.setPower(2); mCamera.setPosition(0, 0, -8); MD2Parser parser = new MD2Parser(mContext.getResources(), mTextureManager, R.raw.ogro); parser.parse(); mOgre = (VertexAnimationObject3D) parser.getParsedAnimationObject(); mOgre.addL...
protected void initScene() { mLight = new DirectionalLight(0, 0, 1); mLight.setPower(2); mCamera.setPosition(0, 0, -8); MD2Parser parser = new MD2Parser(mContext.getResources(), mTextureManager, R.raw.ogro); parser.parse(); mOgre = (VertexAnimationObject3D) parser.getParsedAnimationObject(); mOgre.addL...
diff --git a/RealisticChat.java b/RealisticChat.java index 3f22e82..209a716 100644 --- a/RealisticChat.java +++ b/RealisticChat.java @@ -1,437 +1,447 @@ package me.exphc.RealisticChat; import java.util.logging.Logger; import java.util.Set; import java.util.HashSet; import java.util.ArrayList; import java.util...
false
true
public void onPlayerChat(PlayerChatEvent event) { Player sender = event.getPlayer(); String message = event.getMessage(); ArrayList<String> sendInfo = new ArrayList<String>(); // TODO: change to sound pressure level instead of distance based // see http://en.wikipedia.org/wi...
public void onPlayerChat(PlayerChatEvent event) { Player sender = event.getPlayer(); String message = event.getMessage(); ArrayList<String> sendInfo = new ArrayList<String>(); // TODO: change to sound pressure level instead of distance based // see http://en.wikipedia.org/wi...
diff --git a/src/Perls_Package/ManagerDB.java b/src/Perls_Package/ManagerDB.java index 26527ca..bd7eb20 100644 --- a/src/Perls_Package/ManagerDB.java +++ b/src/Perls_Package/ManagerDB.java @@ -1,43 +1,43 @@ package Perls_Package; import static Perls_Package.Perls.trayMng; import java.io.BufferedReader; import jav...
true
true
public String setDB(String perl, String author) { HttpURLConnection conn; String result=""; try { URL url = new URL(setScriptURL+"?perl="+perl+"&author="+author); conn = (HttpURLConnection) url.openConnection(); conn.setRequestProperty("User-Ag...
public String setDB(String perl, String author) { HttpURLConnection conn; String result=""; try { URL url = new URL(setScriptURL+"?perl="+perl+"&author="+author); conn = (HttpURLConnection) url.openConnection(); conn.setRequestProperty("User-Ag...
diff --git a/org.eclipse.jubula.client.ui.rcp/src/org/eclipse/jubula/client/ui/rcp/editors/AbstractJBEditor.java b/org.eclipse.jubula.client.ui.rcp/src/org/eclipse/jubula/client/ui/rcp/editors/AbstractJBEditor.java index 7098487a7..ec2590286 100644 --- a/org.eclipse.jubula.client.ui.rcp/src/org/eclipse/jubula/client/ui...
true
true
public void setSelection(ISelection selection) { ISelection newSelection = getMainTreeViewer().getSelection(); if (selection instanceof StructuredSelection) { Object firstElement = ((StructuredSelection) selection) .getFirstElement(); if (firstElement inst...
public void setSelection(ISelection selection) { ISelection newSelection = getMainTreeViewer().getSelection(); if (selection instanceof StructuredSelection) { Object firstElement = ((StructuredSelection) selection) .getFirstElement(); if (firstElement inst...
diff --git a/geogebra/geogebra3D/kernel3D/GeoCoordSys1D.java b/geogebra/geogebra3D/kernel3D/GeoCoordSys1D.java index 32af99403..3d083c909 100755 --- a/geogebra/geogebra3D/kernel3D/GeoCoordSys1D.java +++ b/geogebra/geogebra3D/kernel3D/GeoCoordSys1D.java @@ -1,202 +1,205 @@ package geogebra3D.kernel3D; import geogebr...
false
true
public void pointChanged(GeoPointInterface PI){ GeoPoint3D P = (GeoPoint3D) PI; //project P on line double t = 0; if (P.getWillingCoords()!=null){ if(P.getWillingDirection()!=null){ //project willing location using willing direction Ggb3DVector[] project = P.getWillingCoords().projectOnLin...
public void pointChanged(GeoPointInterface PI){ GeoPoint3D P = (GeoPoint3D) PI; //project P on line double t = 0; if (P.getWillingCoords()!=null){ if(P.getWillingDirection()!=null){ //project willing location using willing direction Ggb3DVector[] project = P.getWillingCoords().projectOnLin...
diff --git a/src/com/nullprogram/chess/pieces/Bishop.java b/src/com/nullprogram/chess/pieces/Bishop.java index feadf1b..8196c6b 100644 --- a/src/com/nullprogram/chess/pieces/Bishop.java +++ b/src/com/nullprogram/chess/pieces/Bishop.java @@ -1,91 +1,91 @@ package com.nullprogram.chess.pieces; import com.nullprogram....
true
true
public static PositionList getMoves(Piece p, PositionList list) { // Scan each direction and stop looking when we run into something. int x = p.getPosition().x; int y = p.getPosition().y; while (x >= 0 && y >= 0) { x--; y--; Position pos = new Posi...
public static PositionList getMoves(Piece p, PositionList list) { // Scan each direction and stop looking when we run into something. int x = p.getPosition().x; int y = p.getPosition().y; while (x >= 0 && y >= 0) { x--; y--; Position pos = new Posi...
diff --git a/src/edu/sc/seis/sod/status/MenuTemplate.java b/src/edu/sc/seis/sod/status/MenuTemplate.java index ae5f6aee3..019669c2a 100644 --- a/src/edu/sc/seis/sod/status/MenuTemplate.java +++ b/src/edu/sc/seis/sod/status/MenuTemplate.java @@ -1,74 +1,74 @@ /** * MenuTemplate.java * * @author Created by Omnicor...
true
true
public RelativePath(Element el, String pathFrom){ Node firstChild = el.getFirstChild(); String absPathTo = fileDir + '/' + firstChild.getNodeValue(); if(el.getFirstChild() instanceof Element){ el = (Element)firstChild; absPathTo = ((GenericTemp...
public RelativePath(Element el, String pathFrom){ Node firstChild = el.getFirstChild(); String absPathTo = fileDir + '/' + firstChild.getNodeValue(); if(el.getFirstChild() instanceof Element){ el = (Element)firstChild; absPathTo = fileDir + '/'...
diff --git a/dspace-api/src/test/java/org/dspace/app/bulkedit/DSpaceCSVTest.java b/dspace-api/src/test/java/org/dspace/app/bulkedit/DSpaceCSVTest.java index fdfdd4374..07c06a8bb 100644 --- a/dspace-api/src/test/java/org/dspace/app/bulkedit/DSpaceCSVTest.java +++ b/dspace-api/src/test/java/org/dspace/app/bulkedit/DSpace...
false
true
public void testDSpaceCSV() { try { // Test the CSV parsing String[] csv = {"id,collection,\"dc.title[en]\",dc.contributor.author,dc.description.abstract", "1,2,Easy line,\"Lewis, Stuart\",A nice short abstract", "2...
public void testDSpaceCSV() { try { // Test the CSV parsing String[] csv = {"id,collection,\"dc.title[en]\",dc.contributor.author,dc.description.abstract", "1,2,Easy line,\"Lewis, Stuart\",A nice short abstract", "2...
diff --git a/expenditure-tracking/src/pt/ist/expenditureTrackingSystem/presentationTier/renderers/MoneyInputRenderer.java b/expenditure-tracking/src/pt/ist/expenditureTrackingSystem/presentationTier/renderers/MoneyInputRenderer.java index 6b1e678a..3ab1d0d4 100644 --- a/expenditure-tracking/src/pt/ist/expenditureTracki...
true
true
protected Layout getLayout(Object object, Class type) { return new Layout() { @Override public HtmlComponent createComponent(Object object, Class type) { HtmlTextInput input = new HtmlTextInput(); input.setSize(size); if (object != null) { input.setValue(((Money) object).getRoundedValue()....
protected Layout getLayout(Object object, Class type) { return new Layout() { @Override public HtmlComponent createComponent(Object object, Class type) { HtmlTextInput input = new HtmlTextInput(); input.setSize(size); if (object != null) { input.setValue(((Money) object).toFormatStringWith...
diff --git a/src/main/java/me/shansen/EggCatcher/listeners/EggCatcherEntityListener.java b/src/main/java/me/shansen/EggCatcher/listeners/EggCatcherEntityListener.java index f1ea7f6..1aa40ca 100644 --- a/src/main/java/me/shansen/EggCatcher/listeners/EggCatcherEntityListener.java +++ b/src/main/java/me/shansen/EggCatcher...
true
true
public void onEntityHitByEgg(EntityDamageEvent event) { EntityDamageByEntityEvent damageEvent = null; Egg egg = null; EggType eggType = null; double vaultCost = 0.0; Entity entity = event.getEntity(); if (!(event instanceof EntityDamageByEntityEvent)) { r...
public void onEntityHitByEgg(EntityDamageEvent event) { EntityDamageByEntityEvent damageEvent = null; Egg egg = null; EggType eggType = null; double vaultCost = 0.0; Entity entity = event.getEntity(); if (!(event instanceof EntityDamageByEntityEvent)) { r...
diff --git a/trunk/java/com/xerox/amazonws/ec2/LaunchConfiguration.java b/trunk/java/com/xerox/amazonws/ec2/LaunchConfiguration.java index bedf2c3..e421c10 100755 --- a/trunk/java/com/xerox/amazonws/ec2/LaunchConfiguration.java +++ b/trunk/java/com/xerox/amazonws/ec2/LaunchConfiguration.java @@ -1,384 +1,384 @@ // //...
false
true
void prepareQueryParams(String prefix, boolean setMinAndMax, Map<String, String> params) { params.put(prefix + "ImageId", getImageId()); if (setMinAndMax) { params.put(prefix + "MinCount", "" + getMinCount()); params.put(prefix + "MaxCount", "" + getMaxCount()); } ...
void prepareQueryParams(String prefix, boolean setMinAndMax, Map<String, String> params) { params.put(prefix + "ImageId", getImageId()); if (setMinAndMax) { params.put(prefix + "MinCount", "" + getMinCount()); params.put(prefix + "MaxCount", "" + getMaxCount()); } ...
diff --git a/OpERP/src/main/java/devopsdistilled/operp/client/commons/panes/CreateContactInfoPane.java b/OpERP/src/main/java/devopsdistilled/operp/client/commons/panes/CreateContactInfoPane.java index ab90e6d1..52a4e6ac 100644 --- a/OpERP/src/main/java/devopsdistilled/operp/client/commons/panes/CreateContactInfoPane.ja...
false
true
public CreateContactInfoPane() { pane = new JPanel(); pane.setLayout(new MigLayout("", "[][grow]", "[][][][][][][][][]")); JLabel lblAddress = new JLabel("Address"); pane.add(lblAddress, "flowx,cell 0 0"); JLabel lblEmail = new JLabel("Email"); pane.add(lblEmail, "cell 0 3"); emailField = new JTextFie...
public CreateContactInfoPane() { pane = new JPanel(); pane.setLayout(new MigLayout("", "[][grow]", "[][][][][][][][][]")); JLabel lblAddress = new JLabel("Address"); pane.add(lblAddress, "flowx,cell 0 0"); JLabel lblEmail = new JLabel("Email"); pane.add(lblEmail, "cell 0 3"); emailField = new JTextFie...
diff --git a/cli/src/main/java/com/vmware/bdd/cli/commands/ClusterCommands.java b/cli/src/main/java/com/vmware/bdd/cli/commands/ClusterCommands.java index 561ca8d8..e4658c2c 100644 --- a/cli/src/main/java/com/vmware/bdd/cli/commands/ClusterCommands.java +++ b/cli/src/main/java/com/vmware/bdd/cli/commands/ClusterCommand...
true
true
public void createCluster( @CliOption(key = { "name" }, mandatory = true, help = "The cluster name") final String name, @CliOption(key = { "type" }, mandatory = false, help = "The cluster type is Hadoop") final String type, @CliOption(key = { "distro" }, mandatory = false, help = "Hadoop D...
public void createCluster( @CliOption(key = { "name" }, mandatory = true, help = "The cluster name") final String name, @CliOption(key = { "type" }, mandatory = false, help = "The cluster type is Hadoop") final String type, @CliOption(key = { "distro" }, mandatory = false, help = "Hadoop D...
diff --git a/SZASServer/src/com/szas/server/gwt/client/widgets/MainWidget.java b/SZASServer/src/com/szas/server/gwt/client/widgets/MainWidget.java index bec1e31..37834d7 100644 --- a/SZASServer/src/com/szas/server/gwt/client/widgets/MainWidget.java +++ b/SZASServer/src/com/szas/server/gwt/client/widgets/MainWidget.java...
true
true
private void addRoutes() { RouteAction<Widget> questionnaireRouteAction = new RouteAction<Widget>() { @Override public Widget run(String command, String params) { return new QuestionnariesList(); } }; router.addRoute("", questionnaireRouteAction); router.addRoute(QuestionnariesList.NAME, questionn...
private void addRoutes() { RouteAction<Widget> questionnaireRouteAction = new RouteAction<Widget>() { @Override public Widget run(String command, String params) { return new QuestionnariesList(); } }; router.addRoute("", questionnaireRouteAction); router.addRoute(QuestionnariesList.NAME, questionn...
diff --git a/dspace-api/src/main/java/org/dspace/app/launcher/ScriptLauncher.java b/dspace-api/src/main/java/org/dspace/app/launcher/ScriptLauncher.java index 53a3115e8..910c2b156 100644 --- a/dspace-api/src/main/java/org/dspace/app/launcher/ScriptLauncher.java +++ b/dspace-api/src/main/java/org/dspace/app/launcher/Scr...
true
true
public static void main(String[] args) { // Check that there is at least one argument if (args.length < 1) { System.err.println("You must provide at least one command argument"); display(); System.exit(1); } // Initalise the service ma...
public static void main(String[] args) { // Check that there is at least one argument if (args.length < 1) { System.err.println("You must provide at least one command argument"); display(); System.exit(1); } // Initalise the service ma...
diff --git a/nexus/nexus-app/src/main/java/org/sonatype/nexus/notification/events/DefaultNotificationEventRouter.java b/nexus/nexus-app/src/main/java/org/sonatype/nexus/notification/events/DefaultNotificationEventRouter.java index 687547b38..acb3663cb 100644 --- a/nexus/nexus-app/src/main/java/org/sonatype/nexus/notifi...
true
true
public NotificationRequest getRequestForEvent( Event<?> evt ) { if ( evt instanceof RepositoryEventProxyModeChanged ) { RepositoryEventProxyModeChanged rpmevt = (RepositoryEventProxyModeChanged) evt; HashSet<NotificationTarget> targets = new HashSet<NotificationTarget>()...
public NotificationRequest getRequestForEvent( Event<?> evt ) { if ( evt instanceof RepositoryEventProxyModeChanged ) { RepositoryEventProxyModeChanged rpmevt = (RepositoryEventProxyModeChanged) evt; HashSet<NotificationTarget> targets = new HashSet<NotificationTarget>()...
diff --git a/MPAnalyzer/src/jp/ac/osaka_u/ist/sdl/mpanalyzer/clone/OutputCloneInCCFinderFormat.java b/MPAnalyzer/src/jp/ac/osaka_u/ist/sdl/mpanalyzer/clone/OutputCloneInCCFinderFormat.java index b9dd1bf..5f4229a 100644 --- a/MPAnalyzer/src/jp/ac/osaka_u/ist/sdl/mpanalyzer/clone/OutputCloneInCCFinderFormat.java +++ b/MP...
false
true
public static void main(final String[] args) { final OutputCloneInCCFinderFormat outputter = new OutputCloneInCCFinderFormat(); System.out.print("identifying source files in revision "); System.out.print(Long.toString(Config.getCloneDetectionRevision())); System.out.print(" ... "); final SortedSet<String> ...
public static void main(final String[] args) { final OutputCloneInCCFinderFormat outputter = new OutputCloneInCCFinderFormat(); System.out.print("identifying source files in revision "); System.out.print(Long.toString(Config.getCloneDetectionRevision())); System.out.print(" ... "); final SortedSet<String> ...
diff --git a/java/de/dfki/lt/mary/unitselection/featureprocessors/GenericFeatureProcessors.java b/java/de/dfki/lt/mary/unitselection/featureprocessors/GenericFeatureProcessors.java index da3e800b4..16f776fff 100755 --- a/java/de/dfki/lt/mary/unitselection/featureprocessors/GenericFeatureProcessors.java +++ b/java/de/df...
false
true
public String process (Item seg) throws ProcessException{ //System.out.println("Looking for pitch..."); //get mid position of segment float mid; float end = seg.getFeatures().getFloat("end"); Item prev = seg.getPrevious(); if (prev == null...
public String process (Item seg) throws ProcessException{ //System.out.println("Looking for pitch..."); //get mid position of segment float mid; float end = seg.getFeatures().getFloat("end"); Item prev = seg.getPrevious(); if (prev == null...
diff --git a/src/gov/nih/nci/cadsr/cdecurate/tool/CurationServlet.java b/src/gov/nih/nci/cadsr/cdecurate/tool/CurationServlet.java index c75e3e75..6e7f23f6 100644 --- a/src/gov/nih/nci/cadsr/cdecurate/tool/CurationServlet.java +++ b/src/gov/nih/nci/cadsr/cdecurate/tool/CurationServlet.java @@ -1,11401 +1,11403 @@ // C...
false
true
public void doValidateVD(HttpServletRequest req, HttpServletResponse res) throws Exception { HttpSession session = req.getSession(); String sAction = (String) req.getParameter("pageAction"); if (sAction == null) sAction = ""; // do below for versioning to check whethe...
public void doValidateVD(HttpServletRequest req, HttpServletResponse res) throws Exception { HttpSession session = req.getSession(); String sAction = (String) req.getParameter("pageAction"); if (sAction == null) sAction = ""; // do below for versioning to check whethe...
diff --git a/src/main/java/sorts/MediawikiQueries.java b/src/main/java/sorts/MediawikiQueries.java index 68d0fd3..5338756 100644 --- a/src/main/java/sorts/MediawikiQueries.java +++ b/src/main/java/sorts/MediawikiQueries.java @@ -1,387 +1,387 @@ package sorts; import java.util.ArrayList; import java.util.Collection...
true
true
public void run(int numIterations) throws Exception { final Random offsetR = new Random(), cardinalityR = new Random(); int iters = 0; while (iters < numIterations) { SortableResult id = SortableResult.create(this.con, this.con.securityOperations().getUserAuthorizations(this.con.whoami()),...
public void run(int numIterations) throws Exception { final Random offsetR = new Random(), cardinalityR = new Random(); int iters = 0; while (iters < numIterations) { SortableResult id = SortableResult.create(this.con, this.con.securityOperations().getUserAuthorizations(this.con.whoami()),...
diff --git a/client/src/edu/rit/se/sse/rapdevx/clientstate/StartingState.java b/client/src/edu/rit/se/sse/rapdevx/clientstate/StartingState.java index 0c7af08..8d68e9c 100644 --- a/client/src/edu/rit/se/sse/rapdevx/clientstate/StartingState.java +++ b/client/src/edu/rit/se/sse/rapdevx/clientstate/StartingState.java @@ ...
true
true
public StartingState() { this.nextState = UnitPlacementState.class; // TODO here we'll need to include some "game picking" logic -- passing // in null will, in effect, request matchmaking GameSession.get() .setSession(SessionApi.createSession("nickname", null)); AssetLibrary.setAssets(GameApi .getAs...
public StartingState() { this.nextState = UnitPlacementState.class; // TODO here we'll need to include some "game picking" logic -- passing // in null will, in effect, request matchmaking try { GameSession.get().setSession( SessionApi.createSession("nickname", null)); } catch (Exception e) { e.pr...
diff --git a/org.dsanderson.xctrailreport.skinnyski/src/org/dsanderson/xctrailreport/skinnyski/SkinnyskiScanner.java b/org.dsanderson.xctrailreport.skinnyski/src/org/dsanderson/xctrailreport/skinnyski/SkinnyskiScanner.java index 54370e5..5a058ee 100644 --- a/org.dsanderson.xctrailreport.skinnyski/src/org/dsanderson/xct...
true
true
private void scanDetailedAndAuthor() { String detailedString = ""; String author = null; while (scanner.hasNextLine()) { String line = scanner.nextLine(); if (line.startsWith("(")) { String split[] = line.split("^[\\(]", 2); if (split.length >= 2) { author = split[1]; split = author.spl...
private void scanDetailedAndAuthor() { String detailedString = ""; String author = null; while (scanner.hasNextLine()) { String line = scanner.nextLine(); if (line.startsWith("(")) { String split[] = line.split("^[\\(]", 2); if (split.length >= 2) { author = split[1]; split = author.spl...