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/com/fsck/k9/activity/FolderList.java b/src/com/fsck/k9/activity/FolderList.java index 4b2f8bf..a07335d 100644 --- a/src/com/fsck/k9/activity/FolderList.java +++ b/src/com/fsck/k9/activity/FolderList.java @@ -1,1422 +1,1421 @@ package com.fsck.k9.activity; import android.app.AlertDialog; import and...
true
true
public View getItemView(int itemPosition, View convertView, ViewGroup parent) { FolderInfoHolder folder = (FolderInfoHolder) getItem(itemPosition); View view; if ((convertView != null) && (convertView.getId() == R.layout.folder_list_item)) { ...
public View getItemView(int itemPosition, View convertView, ViewGroup parent) { FolderInfoHolder folder = (FolderInfoHolder) getItem(itemPosition); View view; if ((convertView != null) && (convertView.getId() == R.layout.folder_list_item)) { ...
diff --git a/tests/org.eclipse.team.tests.core/src/org/eclipse/team/tests/ui/synchronize/TestTreeViewerAdvisor.java b/tests/org.eclipse.team.tests.core/src/org/eclipse/team/tests/ui/synchronize/TestTreeViewerAdvisor.java index 60ea66af8..572b2858f 100644 --- a/tests/org.eclipse.team.tests.core/src/org/eclipse/team/test...
true
true
protected SynchronizeModelManager createModelManager(ISynchronizePageConfiguration configuration) { SynchronizeModelManager manager = new SynchronizeModelManager(configuration) { protected ISynchronizeModelProvider createModelProvider(String id) { return new HierarchicalModelProvider(getConfiguration(), getS...
protected SynchronizeModelManager createModelManager(ISynchronizePageConfiguration configuration) { SynchronizeModelManager manager = new SynchronizeModelManager(configuration) { protected ISynchronizeModelProvider createModelProvider(String id) { return new HierarchicalModelProvider(getSyncInfoSet()); } ...
diff --git a/src/com/dmdirc/actions/ActionManager.java b/src/com/dmdirc/actions/ActionManager.java index 77a46de34..3b2c18306 100644 --- a/src/com/dmdirc/actions/ActionManager.java +++ b/src/com/dmdirc/actions/ActionManager.java @@ -1,746 +1,746 @@ /* * Copyright (c) 2006-2010 Chris Smith, Shane Mc Cormack, Gregory ...
true
true
private static boolean triggerActions(final ActionType type, final StringBuffer format, final Object ... arguments) { Logger.assertTrue(type != null); boolean res = false; if (actions.containsKey(type)) { for (Action action : new ArrayList<Action>(actions.get(type))...
private static boolean triggerActions(final ActionType type, final StringBuffer format, final Object ... arguments) { Logger.assertTrue(type != null); boolean res = false; if (actions.containsKey(type)) { for (Action action : new ArrayList<Action>(actions.get(type))...
diff --git a/src/com/android/settings/UserDictionarySettings.java b/src/com/android/settings/UserDictionarySettings.java index 6ffcb3d6b..49363a907 100644 --- a/src/com/android/settings/UserDictionarySettings.java +++ b/src/com/android/settings/UserDictionarySettings.java @@ -1,286 +1,286 @@ /** * Copyright (C) 2009...
true
true
protected Dialog onCreateDialog(int id) { View content = getLayoutInflater().inflate(R.layout.dialog_edittext, null); final EditText editText = (EditText) content.findViewById(R.id.edittext); // No prediction in soft keyboard mode. TODO: Create a better way to disable prediction edit...
protected Dialog onCreateDialog(int id) { View content = getLayoutInflater().inflate(R.layout.dialog_edittext, null); final EditText editText = (EditText) content.findViewById(R.id.edittext); // No prediction in soft keyboard mode. TODO: Create a better way to disable prediction edit...
diff --git a/src/loadkdd/CargaMedicamento.java b/src/loadkdd/CargaMedicamento.java index effdc96..558014c 100644 --- a/src/loadkdd/CargaMedicamento.java +++ b/src/loadkdd/CargaMedicamento.java @@ -1,64 +1,64 @@ /* * To change this template, choose Tools | Templates * and open the template in the editor. */ pack...
true
true
public void carga() { List lista; // lista = manager.createQuery("SELECT * FROM medicamentos m").getResultList(); lista=controladorBD.findMedicamentoEntities(); for (int i = 0; i < lista.size(); i++) { // System.out.println("-------AQUII----"+i); Medicamento m =...
public void carga() { List lista; // lista = manager.createQuery("SELECT * FROM medicamentos m").getResultList(); lista=controladorBD.findMedicamentoEntities(); for (int i = 0; i < lista.size(); i++) { // System.out.println("-------AQUII----"+i); Medicamento m =...
diff --git a/sources/net.sf.j2s.java.core/src/java/util/Arrays.java b/sources/net.sf.j2s.java.core/src/java/util/Arrays.java index c045a4d..fd83e05 100644 --- a/sources/net.sf.j2s.java.core/src/java/util/Arrays.java +++ b/sources/net.sf.j2s.java.core/src/java/util/Arrays.java @@ -1,3124 +1,3130 @@ /* * @(#)Arrays.ja...
true
true
private static int binarySearch(double[] a, double key, int low,int high) { while (low <= high) { int mid = (low + high) >> 1; double midVal = a[mid]; int cmp; if (midVal < key) { cmp = -1; // Neither val is NaN, thisVal is smaller } else if (midVal ...
private static int binarySearch(double[] a, double key, int low,int high) { while (low <= high) { int mid = (low + high) >> 1; double midVal = a[mid]; int cmp; if (midVal < key) { cmp = -1; // Neither val is NaN, thisVal is smaller } else if (midVal ...
diff --git a/viewer/src/main/org/trypticon/hex/renderer/DefaultCellRenderer.java b/viewer/src/main/org/trypticon/hex/renderer/DefaultCellRenderer.java index 5fea3fd..299c3f1 100755 --- a/viewer/src/main/org/trypticon/hex/renderer/DefaultCellRenderer.java +++ b/viewer/src/main/org/trypticon/hex/renderer/DefaultCellRende...
false
true
public Component getRendererComponent(HexViewer viewer, boolean selected, boolean onCursorRow, boolean atCursor, long position, int valueDisplayMode) { // XXX: I should probably split this logic into different renderers for each column. //int charYOffset = ...
public Component getRendererComponent(HexViewer viewer, boolean selected, boolean onCursorRow, boolean atCursor, long position, int valueDisplayMode) { // XXX: I should probably split this logic into different renderers for each column. //int charYOffset = ...
diff --git a/src/cadenza/gui/PatchEditor.java b/src/cadenza/gui/PatchEditor.java index 0d5b2d1..420f954 100755 --- a/src/cadenza/gui/PatchEditor.java +++ b/src/cadenza/gui/PatchEditor.java @@ -1,279 +1,279 @@ package cadenza.gui; import java.awt.BorderLayout; import java.awt.Color; import java.awt.Component; imp...
true
true
private void init() { final JButton selectButton = SwingUtils.iconButton(ImageStore.SEARCH, new SelectPatchAction()); final JButton replaceButton = SwingUtils.iconButton(ImageStore.REPLACE, new ReplacePatchAction()); replaceButton.setEnabled(false); _table = new PatchTable(selectButton, replaceButton); ...
private void init() { final JButton selectButton = SwingUtils.iconButton(ImageStore.SELECT, new SelectPatchAction()); final JButton replaceButton = SwingUtils.iconButton(ImageStore.REPLACE, new ReplacePatchAction()); replaceButton.setEnabled(false); _table = new PatchTable(selectButton, replaceButton); ...
diff --git a/src/plugins/WebOfTrust/fcp/GetIdentitiesByScore.java b/src/plugins/WebOfTrust/fcp/GetIdentitiesByScore.java index ae274e3..cb6838c 100644 --- a/src/plugins/WebOfTrust/fcp/GetIdentitiesByScore.java +++ b/src/plugins/WebOfTrust/fcp/GetIdentitiesByScore.java @@ -1,96 +1,96 @@ package plugins.WebOfTrust.fcp; ...
true
true
public SimpleFieldSet handle(H2Graph graph, SimpleFieldSet input) throws SQLException { final String trusterID = input.get("Truster"); final String selection = input.get("Selection").trim(); final String context = input.get("Context"); final boolean includeTrustValue = input.getBoolean("WantTrustValues", fals...
public SimpleFieldSet handle(H2Graph graph, SimpleFieldSet input) throws SQLException { final String trusterID = input.get("Truster"); final String selection = input.get("Selection").trim(); final String context = input.get("Context"); final boolean includeTrustValue = input.getBoolean("WantTrustValues", fals...
diff --git a/media/android/NewsBlur/src/com/newsblur/network/domain/FeedFolderResponse.java b/media/android/NewsBlur/src/com/newsblur/network/domain/FeedFolderResponse.java index 8fb443f24..67bcb906a 100644 --- a/media/android/NewsBlur/src/com/newsblur/network/domain/FeedFolderResponse.java +++ b/media/android/NewsBlur...
false
true
public FeedFolderResponse(String json, Gson gson) { // This is a mess but I don't see a way to parse the mixed content in // folders w/o going to low level Gson API JsonParser parser = new JsonParser(); JsonObject asJsonObject = parser.parse(json).getAsJsonObject(); JsonArray jsonFoldersArray = (JsonArray) a...
public FeedFolderResponse(String json, Gson gson) { // This is a mess but I don't see a way to parse the mixed content in // folders w/o going to low level Gson API JsonParser parser = new JsonParser(); JsonObject asJsonObject = parser.parse(json).getAsJsonObject(); JsonArray jsonFoldersArray = (JsonArray) a...
diff --git a/src/uk/org/ponder/rsf/templateresolver/BasicTemplateResolver.java b/src/uk/org/ponder/rsf/templateresolver/BasicTemplateResolver.java index 78ef32d..c7fbb0e 100644 --- a/src/uk/org/ponder/rsf/templateresolver/BasicTemplateResolver.java +++ b/src/uk/org/ponder/rsf/templateresolver/BasicTemplateResolver.java...
true
true
public ViewTemplate locateTemplate(ViewParameters viewparams) { // NB if we really want this optimisation, it must be based on # // of RETURNED templates, not the number of strategies! XMLCompositeViewTemplate xcvt = strategies.size() == 1 ? null : new XMLCompositeViewTemplate(); int highestp...
public ViewTemplate locateTemplate(ViewParameters viewparams) { // NB if we really want this optimisation, it must be based on # // of RETURNED templates, not the number of strategies! XMLCompositeViewTemplate xcvt = strategies.size() == 1 ? null : new XMLCompositeViewTemplate(); int highestp...
diff --git a/soapui/src/main/java/com/eviware/soapui/impl/rest/panels/resource/RestParamsTable.java b/soapui/src/main/java/com/eviware/soapui/impl/rest/panels/resource/RestParamsTable.java index 2067b07f5..d7d384131 100644 --- a/soapui/src/main/java/com/eviware/soapui/impl/rest/panels/resource/RestParamsTable.java +++ ...
true
true
protected void init( boolean showInspector ) { if ( showDefaultParamsButton ) { defaultParamsAction = new UseDefaultParamsAction(); } movePropertyDownAction = new MovePropertyDownAction(); movePropertyUpAction = new MovePropertyUpAction(); if( showEditableButtons ) { initEditableButtons(); } ...
protected void init( boolean showInspector ) { if ( showDefaultParamsButton ) { defaultParamsAction = new UseDefaultParamsAction(); } movePropertyDownAction = new MovePropertyDownAction(); movePropertyUpAction = new MovePropertyUpAction(); if( showEditableButtons ) { initEditableButtons(); } ...
diff --git a/src/test/cli/cloudify/xen/Stockdemo2ManagementsEsmFailOverTest.java b/src/test/cli/cloudify/xen/Stockdemo2ManagementsEsmFailOverTest.java index c86f0ae3..9563887e 100644 --- a/src/test/cli/cloudify/xen/Stockdemo2ManagementsEsmFailOverTest.java +++ b/src/test/cli/cloudify/xen/Stockdemo2ManagementsEsmFailOve...
true
true
public void beforeTest() { super.beforeTest(); assignCassandraPorts(stockdemoAppDirPath); xenConfigOfEsmMachine = getMachineProvisioningConfig(); ElasticServiceManager esm = admin.getElasticServiceManagers().waitForAtLeastOne(); esmMachine = esm.getMachine(); startAgent(0 ,"stockAnalytics" ,...
public void beforeTest() { super.beforeTest(); assignCassandraPorts(stockdemoAppDirPath); xenConfigOfEsmMachine = getMachineProvisioningConfig(); ElasticServiceManager esm = admin.getElasticServiceManagers().waitForAtLeastOne(); esmMachine = esm.getMachine(); startAgent(0 ,"stockAnalytics" ,...
diff --git a/src/groupone/VerifyLogin.java b/src/groupone/VerifyLogin.java index bd4566b..6c88bd7 100644 --- a/src/groupone/VerifyLogin.java +++ b/src/groupone/VerifyLogin.java @@ -1,66 +1,66 @@ package groupone; import java.io.IOException; import java.io.PrintWriter; import java.util.ArrayList; import javax.s...
true
true
protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { HttpSession session = request.getSession(true); String email = request.getParameter("emailAddress").toString(); String pass = request.getParameter("password").toString(); if (DBOperation.isVa...
protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { HttpSession session = request.getSession(true); String email = request.getParameter("emailAddress").toString(); String pass = request.getParameter("password").toString(); if (DBOperation.isVa...
diff --git a/KrimBuyV2/src/de/bdh/kb2/Commander.java b/KrimBuyV2/src/de/bdh/kb2/Commander.java index 8aef247..7af4a57 100644 --- a/KrimBuyV2/src/de/bdh/kb2/Commander.java +++ b/KrimBuyV2/src/de/bdh/kb2/Commander.java @@ -1,1178 +1,1178 @@ package de.bdh.kb2; import java.sql.Connection; import java.sql.PreparedStat...
true
true
public boolean onCommand(CommandSender sender, Command command, String commandLabel, String args[]) { if(command.getName().equalsIgnoreCase("kbreload") && ((sender instanceof Player) && sender.hasPermission("kb.admin")) || !(sender instanceof Player)) { this.plugin.reload(); sender.sendMessage("KrimBu...
public boolean onCommand(CommandSender sender, Command command, String commandLabel, String args[]) { if(command.getName().equalsIgnoreCase("kbreload") && ((sender instanceof Player) && sender.hasPermission("kb.admin")) || !(sender instanceof Player)) { this.plugin.reload(); sender.sendMessage("KrimBu...
diff --git a/src/main/java/pt/go2/api/Login.java b/src/main/java/pt/go2/api/Login.java index a64100b..500a9a7 100644 --- a/src/main/java/pt/go2/api/Login.java +++ b/src/main/java/pt/go2/api/Login.java @@ -1,57 +1,57 @@ package pt.go2.api; import java.io.BufferedWriter; import java.io.IOException; import java.util...
true
true
public void handle(HttpExchange exchange) throws IOException { final List<String> fields = UserMan.getUserFields(); final Map<String, String> values = new HashMap<>(fields.size()); if (!parseForm(exchange, values, fields, this.users)) { return; } final String username = values.get(UserMan.USER_NAME); ...
public void handle(HttpExchange exchange) throws IOException { final List<String> fields = UserMan.getUserFields(); final Map<String, String> values = new HashMap<>(fields.size()); if (!parseForm(exchange, values, fields, this.users)) { return; } final String username = values.get(UserMan.USER_NAME); ...
diff --git a/org.eclipse.egit.ui/src/org/eclipse/egit/ui/internal/actions/SynchronizeWithActionHandler.java b/org.eclipse.egit.ui/src/org/eclipse/egit/ui/internal/actions/SynchronizeWithActionHandler.java index dc9b8f09..3aebd142 100644 --- a/org.eclipse.egit.ui/src/org/eclipse/egit/ui/internal/actions/SynchronizeWithA...
true
true
public Object execute(ExecutionEvent event) throws ExecutionException { Repository[] repos = getRepositories(event); if (repos.length != repos.length) return null; GitSynchronizeDataSet gsdSet = new GitSynchronizeDataSet(); for (Repository repo : repos) { try { List<SyncRepoEntity> syncRepoEntitys ...
public Object execute(ExecutionEvent event) throws ExecutionException { Repository[] repos = getRepositories(event); if (repos.length == 0) return null; GitSynchronizeDataSet gsdSet = new GitSynchronizeDataSet(); for (Repository repo : repos) { try { List<SyncRepoEntity> syncRepoEntitys = createSyn...
diff --git a/bundles/org.eclipse.equinox.launcher/src/org/eclipse/equinox/launcher/JNIBridge.java b/bundles/org.eclipse.equinox.launcher/src/org/eclipse/equinox/launcher/JNIBridge.java index 40e073f9..f6a0defe 100644 --- a/bundles/org.eclipse.equinox.launcher/src/org/eclipse/equinox/launcher/JNIBridge.java +++ b/bundle...
true
true
private void loadLibrary() { if(library != null) { try { if (library.indexOf("wpf") != -1) { String comLibrary = library.replaceAll("eclipse_", "com_"); System.load(comLibrary); OleInitialize(0); } System.load(library); } catch (UnsatisfiedLinkError e ) { //failed } } lib...
private void loadLibrary() { if(library != null) { try { if (library.indexOf("wpf") != -1) { int idx = library.indexOf("eclipse_"); if (idx != -1) { String comLibrary = library.substring(0, idx) + "com_"; comLibrary += library.substring(idx + 8, library.length()); System.load(comL...
diff --git a/Android/src/eu/uberdust/mobileclient/slideview/MyCommandFragment.java b/Android/src/eu/uberdust/mobileclient/slideview/MyCommandFragment.java index cd10015..822a711 100644 --- a/Android/src/eu/uberdust/mobileclient/slideview/MyCommandFragment.java +++ b/Android/src/eu/uberdust/mobileclient/slideview/MyComm...
true
true
public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) { gdata = (GlobalData) getActivity().getApplicationContext(); Reading reading = gdata.getData().getReading(currentCapability); TextView text3; ToggleButton button; if (currentCapability.getAttribute(...
public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) { gdata = (GlobalData) getActivity().getApplicationContext(); Reading reading = gdata.getData().getReading(currentCapability); TextView text3; ToggleButton button; if (currentCapability.getAttribute(...
diff --git a/Slick/src/org/newdawn/slick/opengl/TGAImageData.java b/Slick/src/org/newdawn/slick/opengl/TGAImageData.java index 61e6f0a..b0cf026 100644 --- a/Slick/src/org/newdawn/slick/opengl/TGAImageData.java +++ b/Slick/src/org/newdawn/slick/opengl/TGAImageData.java @@ -1,287 +1,290 @@ package org.newdawn.slick.open...
true
true
public ByteBuffer loadImage(InputStream fis, boolean flipped, boolean forceAlpha, int[] transparent) throws IOException { if (transparent != null) { forceAlpha = true; } byte red = 0; byte green = 0; byte blue = 0; byte alpha = 0; BufferedInputStream bis = new BufferedInputStream(fis, 100000); D...
public ByteBuffer loadImage(InputStream fis, boolean flipped, boolean forceAlpha, int[] transparent) throws IOException { if (transparent != null) { forceAlpha = true; } byte red = 0; byte green = 0; byte blue = 0; byte alpha = 0; BufferedInputStream bis = new BufferedInputStream(fis, 100000); D...
diff --git a/src/org/encog/engine/network/train/prop/OpenCLTrainingProfile.java b/src/org/encog/engine/network/train/prop/OpenCLTrainingProfile.java index ba8c817c3..c75b49882 100644 --- a/src/org/encog/engine/network/train/prop/OpenCLTrainingProfile.java +++ b/src/org/encog/engine/network/train/prop/OpenCLTrainingProf...
true
true
public void calculateKernelParams(final EncogKernel kernel, final EngineIndexableSet training) { boolean globalValuesAssigned = false; int workPerIteration; // there are two special cases // first, if the ratio is 1.0 if (Math.abs(this.segmentationRatio - 1.0) < EncogEngine.DEFAULT_ZERO_TOLERANCE) { ...
public void calculateKernelParams(final EncogKernel kernel, final EngineIndexableSet training) { boolean globalValuesAssigned = false; int workPerIteration; // there are two special cases // first, if the ratio is 1.0 if (Math.abs(this.segmentationRatio - 1.0) < EncogEngine.DEFAULT_ZERO_TOLERANCE) { ...
diff --git a/samples/kitchensink/src/com/google/gwt/sample/kitchensink/client/Panels.java b/samples/kitchensink/src/com/google/gwt/sample/kitchensink/client/Panels.java index 12abb8a23..60e08b06f 100644 --- a/samples/kitchensink/src/com/google/gwt/sample/kitchensink/client/Panels.java +++ b/samples/kitchensink/src/com/...
true
true
public Panels(Sink.Images images) { HTML contents = new HTML("This is a <code>ScrollPanel</code> contained at " + "the center of a <code>DockPanel</code>. " + "By putting some fairly large contents " + "in the middle and setting its size explicitly, it becomes a " + "scrollable ar...
public Panels(Sink.Images images) { HTML contents = new HTML("This is a <code>ScrollPanel</code> contained at " + "the center of a <code>DockPanel</code>. " + "By putting some fairly large contents " + "in the middle and setting its size explicitly, it becomes a " + "scrollable ar...
diff --git a/wfs/src/main/java/org/geoserver/wfs/xml/v1_1_0/NativeTypeBinding.java b/wfs/src/main/java/org/geoserver/wfs/xml/v1_1_0/NativeTypeBinding.java index 2734bec5a..247b3be7a 100644 --- a/wfs/src/main/java/org/geoserver/wfs/xml/v1_1_0/NativeTypeBinding.java +++ b/wfs/src/main/java/org/geoserver/wfs/xml/v1_1_0/Na...
true
true
public Object parse(ElementInstance instance, Node node, Object value) throws Exception { NativeType nativ = wfsfactory.createNativeType(); //&lt;xsd:attribute name="vendorId" type="xsd:string" use="required"&gt; nativ.setVendorId((String) node.getAttributeValue("vendorId")); ...
public Object parse(ElementInstance instance, Node node, Object value) throws Exception { NativeType nativ = wfsfactory.createNativeType(); //&lt;xsd:attribute name="vendorId" type="xsd:string" use="required"&gt; nativ.setVendorId((String) node.getAttributeValue("vendorId")); ...
diff --git a/src/com/osbcp/squicss/Squicss.java b/src/com/osbcp/squicss/Squicss.java index 6bb80d2..425f8be 100644 --- a/src/com/osbcp/squicss/Squicss.java +++ b/src/com/osbcp/squicss/Squicss.java @@ -1,62 +1,62 @@ package com.osbcp.squicss; import java.io.IOException; import java.io.InputStream; import java.io.I...
true
true
public static void main(final String[] args) throws IOException { Optimizer logic = new Optimizer(); // cssfile accessed as a resource, so must be in the pkg (in src dir). InputStream stream = Squicss.class.getResourceAsStream("loopia.css"); InputSource source = new InputSource(new InputStreamReader(stream))...
public static void main(final String[] args) throws IOException { Optimizer logic = new Optimizer(); // cssfile accessed as a resource, so must be in the pkg (in src dir). InputStream stream = Squicss.class.getResourceAsStream("readme.css"); InputSource source = new InputSource(new InputStreamReader(stream))...
diff --git a/bootstrap-core/src/main/java/de/agilecoders/wicket/core/markup/html/bootstrap/behavior/AlignmentBehavior.java b/bootstrap-core/src/main/java/de/agilecoders/wicket/core/markup/html/bootstrap/behavior/AlignmentBehavior.java index 611f7fb1..32d191e2 100644 --- a/bootstrap-core/src/main/java/de/agilecoders/wic...
true
true
public void onComponentTag(final Component component, final ComponentTag tag) { super.onComponentTag(component, tag); Attributes.removeClass(tag, Alignment.RIGHT.className, Alignment.LEFT.className); switch (alignement.getObject()) { case RIGHT: case LEFT: ...
public void onComponentTag(final Component component, final ComponentTag tag) { super.onComponentTag(component, tag); Attributes.removeClass(tag, Alignment.RIGHT.className, Alignment.LEFT.className); switch (alignement.getObject()) { case RIGHT: case LEFT: ...
diff --git a/test/src/test/tmp/A.java b/test/src/test/tmp/A.java index 2d49245c..e5998956 100644 --- a/test/src/test/tmp/A.java +++ b/test/src/test/tmp/A.java @@ -1,12 +1,14 @@ package test.tmp; import org.testng.annotations.Test; @Test public class A extends Base { - public void a1() {} + public void a1(...
true
true
public void a1() {}
public void a1() { throw new RuntimeException(); }
diff --git a/src/com/android/music/MediaPlaybackActivity.java b/src/com/android/music/MediaPlaybackActivity.java index be1074d..d5be5b2 100644 --- a/src/com/android/music/MediaPlaybackActivity.java +++ b/src/com/android/music/MediaPlaybackActivity.java @@ -1,1385 +1,1388 @@ /* * Copyright (C) 2007 The Android Open S...
true
true
public boolean onLongClick(View view) { CharSequence title = null; String mime = null; String query = null; String artist; String album; String song; long audioid; try { artist = mService.getArtistName(); album = mServ...
public boolean onLongClick(View view) { CharSequence title = null; String mime = null; String query = null; String artist; String album; String song; long audioid; try { artist = mService.getArtistName(); album = mServ...
diff --git a/rexster-protocol/src/main/java/com/tinkerpop/rexster/protocol/server/SessionServer.java b/rexster-protocol/src/main/java/com/tinkerpop/rexster/protocol/server/SessionServer.java index e187f500..c8be0871 100644 --- a/rexster-protocol/src/main/java/com/tinkerpop/rexster/protocol/server/SessionServer.java +++...
false
true
public void handleRequest(SessionRequestMessage message, RexProRequest request) throws IOException { try { message.validateMetaData(); } catch (Exception e) { logger.error(e); request.writeResponseMessage( MessageUtil.createErrorResponse( ...
public void handleRequest(SessionRequestMessage message, RexProRequest request) throws IOException { try { message.validateMetaData(); } catch (Exception e) { logger.error(e); request.writeResponseMessage( MessageUtil.createErrorResponse( ...
diff --git a/src/main/java/com/twistlet/falcon/model/service/LocationServiceImpl.java b/src/main/java/com/twistlet/falcon/model/service/LocationServiceImpl.java index 506f57b..098ea9a 100644 --- a/src/main/java/com/twistlet/falcon/model/service/LocationServiceImpl.java +++ b/src/main/java/com/twistlet/falcon/model/serv...
true
true
public Set<FalconLocation> listAvailableLocations(FalconUser admin, Date start, Date end) { List<FalconLocation> locations = falconLocationRepository.findByFalconUser(admin); Set<FalconLocation> occupiedLocations = falconLocationRepository.findLocationDateRange(admin, start, end); Set<FalconLocation> availableLo...
public Set<FalconLocation> listAvailableLocations(FalconUser admin, Date start, Date end) { List<FalconLocation> locations = falconLocationRepository.findByFalconUser(admin); Set<FalconLocation> occupiedLocations = falconLocationRepository.findLocationDateRange(admin, start, end); Set<FalconLocation> availableLo...
diff --git a/src/HTMLoutput/HTMLUtility.java b/src/HTMLoutput/HTMLUtility.java index 31e64b1..10b1ac5 100644 --- a/src/HTMLoutput/HTMLUtility.java +++ b/src/HTMLoutput/HTMLUtility.java @@ -1,22 +1,22 @@ package HTMLoutput; import Process.Event; /** * @author Antares Yee */ public class HTMLUtility { ...
true
true
public static String makeFileName(Event e) { //TODO: QUOTING URLS/ESCAPE URLS for fileNames // illegal: / ? < > \ : * | � : ^ . //return "/" + e.getName() + e.getStartTime().toString() + ".html"; String name = e.getName() + e.getStartTime().toString(); return Integer.toString(...
public static String makeFileName(Event e) { //TODO: QUOTING URLS/ESCAPE URLS for fileNames // illegal: / ? < > \ : * | � : ^ . //return "/" + e.getName() + e.getStartTime().toString() + ".html"; String name = e.getName() + e.getStartTime().toString(); return "/" + Integer.toS...
diff --git a/src/main/java/immanix/matchers/UntilMatcher.java b/src/main/java/immanix/matchers/UntilMatcher.java index cbd84a4..04001c6 100644 --- a/src/main/java/immanix/matchers/UntilMatcher.java +++ b/src/main/java/immanix/matchers/UntilMatcher.java @@ -1,46 +1,48 @@ package immanix.matchers; import immanix.Even...
true
true
public MatcherResult<T> match(EventReader reader) throws XMLStreamException { MatcherResult<T> res = null; while ((res = delegate.match(reader)).isFailure()) { reader = res.reader.unwrap(); if (reader.hasNext()) { reader.next(); } else { ...
public MatcherResult<T> match(EventReader reader) throws XMLStreamException { MatcherResult<T> res = null; while ((res = delegate.match(reader)).isFailure()) { reader = res.reader.unwrap(); if (reader.hasNext()) { reader.next(); } else { ...
diff --git a/eclipse_project/src/com/floor7/calfood/ScrapeTest.java b/eclipse_project/src/com/floor7/calfood/ScrapeTest.java index e7597fc..546e204 100644 --- a/eclipse_project/src/com/floor7/calfood/ScrapeTest.java +++ b/eclipse_project/src/com/floor7/calfood/ScrapeTest.java @@ -1,119 +1,119 @@ package com.floor7.cal...
true
true
public static void main(String[] args) { int days_in_advance = 16; int total_num_of_foods = 0; //boolean isBreakfast = false; //boolean isLunch = false; //boolean isDinner = false; HashSet<Food> foods = new HashSet<Food>(); Calendar cal = Calendar.getInstance(); Pattern foodpattern = Pattern.compile("o...
public static void main(String[] args) { int days_in_advance = 16; int total_num_of_foods = 0; //boolean isBreakfast = false; //boolean isLunch = false; //boolean isDinner = false; HashSet<Food> foods = new HashSet<Food>(); Calendar cal = Calendar.getInstance(); Pattern foodpattern = Pattern.compile("o...
diff --git a/apps/BOB/src/net/i2p/BOB/MUXlisten.java b/apps/BOB/src/net/i2p/BOB/MUXlisten.java index 7694803d6..095481ac2 100644 --- a/apps/BOB/src/net/i2p/BOB/MUXlisten.java +++ b/apps/BOB/src/net/i2p/BOB/MUXlisten.java @@ -1,273 +1,273 @@ /** * DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE * ...
true
true
public void run() { try { wlock(); try { info.add("RUNNING", Boolean.TRUE); info.add("STARTING", Boolean.FALSE); } catch(Exception e) { wunlock(); return; } } catch(Exception e) { return; } try { wunlock(); } catch(Exception e) { return; } quit: { try { ...
public void run() { try { wlock(); try { info.add("RUNNING", Boolean.TRUE); info.add("STARTING", Boolean.FALSE); } catch(Exception e) { wunlock(); return; } } catch(Exception e) { return; } try { wunlock(); } catch(Exception e) { return; } quit: { try { ...
diff --git a/audit/src/test/java/com/operativus/senacrs/audit/exceptions/ExceptionMessagesEnumTest.java b/audit/src/test/java/com/operativus/senacrs/audit/exceptions/ExceptionMessagesEnumTest.java index 2b18eac..e0ccf9c 100644 --- a/audit/src/test/java/com/operativus/senacrs/audit/exceptions/ExceptionMessagesEnumTest.j...
true
true
public void testGetKey() { for (ExceptionMessagesEnum e : ExceptionMessagesEnum.values()) { Assert.assertTrue(MessagesCentral.hasKey(e)); } }
public void testExists() { for (ExceptionMessagesEnum e : ExceptionMessagesEnum.values()) { Assert.assertTrue(MessagesCentral.hasKey(e)); } }
diff --git a/nanite-hadoop/src/main/java/uk/bl/wap/hadoop/profiler/FormatProfilerMapper.java b/nanite-hadoop/src/main/java/uk/bl/wap/hadoop/profiler/FormatProfilerMapper.java index a0dee0e..35dbec8 100644 --- a/nanite-hadoop/src/main/java/uk/bl/wap/hadoop/profiler/FormatProfilerMapper.java +++ b/nanite-hadoop/src/main/...
true
true
public void map( Text key, WritableArchiveRecord value, OutputCollector<Text, Text> output, Reporter reporter ) throws IOException { // log the file we are processing: log.debug("Processing record from: "+key); final boolean INCLUDE_EXTENSION = true; // Get the wctID, if any: String wctID = this.getWct...
public void map( Text key, WritableArchiveRecord value, OutputCollector<Text, Text> output, Reporter reporter ) throws IOException { // log the file we are processing: log.debug("Processing record from: "+key); final boolean INCLUDE_EXTENSION = true; // Get the wctID, if any: String wctID = this.getWct...
diff --git a/src/be/ibridge/kettle/trans/step/databaselookup/DatabaseLookup.java b/src/be/ibridge/kettle/trans/step/databaselookup/DatabaseLookup.java index bf3e5530..03711449 100644 --- a/src/be/ibridge/kettle/trans/step/databaselookup/DatabaseLookup.java +++ b/src/be/ibridge/kettle/trans/step/databaselookup/DatabaseL...
true
true
private synchronized boolean lookupValues(Row row) throws KettleException { Row lu; Row add; boolean cache_now=false; if (first) { first=false; if (meta.isCached()) { if (meta.getCacheSize()>0) { data.look=new Hashtable((int)(meta.getCacheSize()*1.5)); } else {...
private synchronized boolean lookupValues(Row row) throws KettleException { Row lu; Row add; boolean cache_now=false; if (first) { first=false; if (meta.isCached()) { if (meta.getCacheSize()>0) { data.look=new Hashtable((int)(meta.getCacheSize()*1.5)); } else {...
diff --git a/DroidPlanner/src/com/diydrones/droidplanner/fragments/FlightMapFragment.java b/DroidPlanner/src/com/diydrones/droidplanner/fragments/FlightMapFragment.java index 1df10669..333a9376 100644 --- a/DroidPlanner/src/com/diydrones/droidplanner/fragments/FlightMapFragment.java +++ b/DroidPlanner/src/com/diydrones...
true
true
private void updateDronePosition(float heading, LatLng coord) { float correctHeading = (heading - mMap.getCameraPosition().bearing)%360; int index = (int) (correctHeading/DRONE_MIN_ROTATION); DroneMarker[lastMarker].setVisible(false); DroneMarker[index].setPosition(coord); DroneMarker[index].setVisible(tr...
private void updateDronePosition(float heading, LatLng coord) { float correctHeading = (heading - mMap.getCameraPosition().bearing+360)%360; // This ensure the 0 to 360 range int index = (int) (correctHeading/DRONE_MIN_ROTATION); DroneMarker[lastMarker].setVisible(false); DroneMarker[index].setPosition(coor...
diff --git a/dotnet/sonar/sonar-plugin-gendarme/src/main/java/org/sonar/plugin/dotnet/gendarme/GendarmeResultParser.java b/dotnet/sonar/sonar-plugin-gendarme/src/main/java/org/sonar/plugin/dotnet/gendarme/GendarmeResultParser.java index 612ab35fd..f77e241d7 100644 --- a/dotnet/sonar/sonar-plugin-gendarme/src/main/java/...
true
true
public void parse(URL url) { List<Element> issues = extractElements(url, "//issue"); // We add each issue for (Element issueElement : issues) { String key = getNodeContent(issueElement, "key"); String source = getNodeContent(issueElement, "source"); String message = getNodeContent(issueElement, "messag...
public void parse(URL url) { List<Element> issues = extractElements(url, "//issue"); // We add each issue for (Element issueElement : issues) { String key = getNodeContent(issueElement, "key"); String source = getNodeContent(issueElement, "source"); String message = getNodeContent(issueElement, "messag...
diff --git a/src/java/org/kisst/gft/filetransfer/Channel.java b/src/java/org/kisst/gft/filetransfer/Channel.java index b2c9f8a..33d85e5 100644 --- a/src/java/org/kisst/gft/filetransfer/Channel.java +++ b/src/java/org/kisst/gft/filetransfer/Channel.java @@ -1,42 +1,42 @@ package org.kisst.gft.filetransfer; import or...
true
true
public Channel(GftContainer gft, Props props) { this.action=new ActionList(gft, props); this.props=props; this.name=props.getLocalName(); Object errorProps=props.get("error"); if (errorProps instanceof Props) this.errorAction=new ActionList(gft, (Props) errorProps); else if (errorProps==null) this.e...
public Channel(GftContainer gft, Props props) { this.action=new ActionList(gft, props); this.props=props; this.name=props.getLocalName(); Object errorProps=props.get("error",null); if (errorProps instanceof Props) this.errorAction=new ActionList(gft, (Props) errorProps); else if (errorProps==null) t...
diff --git a/cadpage/src/net/anei/cadpage/parsers/ID/IDKootenaiCountyParser.java b/cadpage/src/net/anei/cadpage/parsers/ID/IDKootenaiCountyParser.java index 7f5c39927..772083bf8 100644 --- a/cadpage/src/net/anei/cadpage/parsers/ID/IDKootenaiCountyParser.java +++ b/cadpage/src/net/anei/cadpage/parsers/ID/IDKootenaiCount...
true
true
protected boolean parseMsg(String body, Data data) { if (body.startsWith("KOOTENAI COUNTY SHERIFF ")) { body = body.substring(25).trim(); } int pt = body.indexOf("\nSent by CLI"); if (pt >= 0) body = body.substring(0,pt).trim(); String[] flds = body.split("\n"); if (flds.length < 5)...
protected boolean parseMsg(String body, Data data) { if (body.startsWith("KOOTENAI COUNTY SHERIFF ")) { body = body.substring(24).trim(); } int pt = body.indexOf("\nSent by CLI"); if (pt >= 0) body = body.substring(0,pt).trim(); String[] flds = body.split("\n"); if (flds.length < 5)...
diff --git a/src/com/gitblit/GitBlitServlet.java b/src/com/gitblit/GitBlitServlet.java index 17642c6..f703cb2 100644 --- a/src/com/gitblit/GitBlitServlet.java +++ b/src/com/gitblit/GitBlitServlet.java @@ -1,83 +1,83 @@ package com.gitblit; import java.io.IOException; import java.text.MessageFormat; import javax...
true
true
protected void service(final HttpServletRequest req, final HttpServletResponse rsp) throws ServletException, IOException { // admins have full git access to all repositories if (req.isUserInRole(Constants.ADMIN_ROLE)) { // admins can do whatever super.service(req, rsp); return; } // try to intercept ...
protected void service(final HttpServletRequest req, final HttpServletResponse rsp) throws ServletException, IOException { // admins have full git access to all repositories if (req.isUserInRole(Constants.ADMIN_ROLE)) { // admins can do whatever super.service(req, rsp); return; } // try to intercept ...
diff --git a/src/org/biojava/utils/regex/Search.java b/src/org/biojava/utils/regex/Search.java index 3a58bbfe2..0bd3f170c 100644 --- a/src/org/biojava/utils/regex/Search.java +++ b/src/org/biojava/utils/regex/Search.java @@ -1,129 +1,129 @@ package org.biojava.utils.regex; import java.util.Iterator; import j...
true
true
public void search(Sequence seq) { for (Iterator patternsI = patterns.iterator(); patternsI.hasNext(); ) { PatternInfo info = (PatternInfo) patternsI.next(); if (info.matcher == null) { info.matcher = info.pattern.matcher(seq); } else { ...
public void search(Sequence seq) { for (Iterator patternsI = patterns.iterator(); patternsI.hasNext(); ) { PatternInfo info = (PatternInfo) patternsI.next(); if (info.matcher == null) { info.matcher = info.pattern.matcher(seq); } else { ...
diff --git a/src/FE_SRC_COMMON/com/ForgeEssentials/commands/CommandSetSpawn.java b/src/FE_SRC_COMMON/com/ForgeEssentials/commands/CommandSetSpawn.java index cab3a6572..6918dc2b1 100644 --- a/src/FE_SRC_COMMON/com/ForgeEssentials/commands/CommandSetSpawn.java +++ b/src/FE_SRC_COMMON/com/ForgeEssentials/commands/CommandS...
true
true
public void processCommandPlayer(EntityPlayer sender, String[] args) { if (args.length <= 1) { error(sender); return; } if (args.length == 1) { if (args[0].equalsIgnoreCase("help")) { OutputHandler.chatConfirmation(sender, Localization.get("command.setspawn.help.1")); OutputHandler.chat...
public void processCommandPlayer(EntityPlayer sender, String[] args) { if (args.length <= 0) { error(sender); return; } if (args.length == 1) { if (args[0].equalsIgnoreCase("help")) { OutputHandler.chatConfirmation(sender, Localization.get("command.setspawn.help.1")); OutputHandler.chat...
diff --git a/src/main/java/eu/spitfire_project/smart_service_proxy/backends/slse/ServiceLevelSemanticEntityBuilder.java b/src/main/java/eu/spitfire_project/smart_service_proxy/backends/slse/ServiceLevelSemanticEntityBuilder.java index 1de21f7..e8477f0 100644 --- a/src/main/java/eu/spitfire_project/smart_service_proxy/b...
true
true
private Map<String, Set<String>> getAndCreateSLSEs(QueryExecution qexec) { //String uri, ConstructionRule rule) { Map<String, Set<String>> r = new HashMap<String, Set<String>>(); /*List<Map<String, RDFNode>> queryResult =*/ ResultSet results = qexec.execSelect(); //eseCache.queryEntity(uri, ...
private Map<String, Set<String>> getAndCreateSLSEs(QueryExecution qexec) { //String uri, ConstructionRule rule) { Map<String, Set<String>> r = new HashMap<String, Set<String>>(); /*List<Map<String, RDFNode>> queryResult =*/ ResultSet results = qexec.execSelect(); //eseCache.queryEntity(uri, ...
diff --git a/JACP.JavaFXSpring/src/main/java/org/jacpfx/spring/launcher/ASpringLauncher.java b/JACP.JavaFXSpring/src/main/java/org/jacpfx/spring/launcher/ASpringLauncher.java index 591e0f5..75cbabf 100644 --- a/JACP.JavaFXSpring/src/main/java/org/jacpfx/spring/launcher/ASpringLauncher.java +++ b/JACP.JavaFXSpring/src/m...
true
true
protected void scanPackegesAndInitRegestry() { final String[] packages = getBasePackages(); if (packages == null) throw new InvalidParameterException("no packes declared, declare all packages containing perspectives and components"); final ClassFinder finder = new ClassFinder(); ...
protected void scanPackegesAndInitRegestry() { final String[] packages = getBasePackages(); if (packages == null) throw new InvalidParameterException("no packes declared, declare all packages containing perspectives and components"); final ClassFinder finder = new ClassFinder();...
diff --git a/src/test/java/org/agilewiki/jid/basics/HelloWorldTest.java b/src/test/java/org/agilewiki/jid/basics/HelloWorldTest.java index fb3aaa6..5d41e6f 100644 --- a/src/test/java/org/agilewiki/jid/basics/HelloWorldTest.java +++ b/src/test/java/org/agilewiki/jid/basics/HelloWorldTest.java @@ -1,33 +1,33 @@ package ...
true
true
public void test() throws Exception { MailboxFactory mailboxFactory = JAMailboxFactory.newMailboxFactory(1); Mailbox mailbox = mailboxFactory.createMailbox(); JAFuture future = new JAFuture(); JAFactory factory = new JAFactory(mailbox); factory.defineActorType("hi...
public void test() throws Exception { MailboxFactory mailboxFactory = JAMailboxFactory.newMailboxFactory(1); Mailbox mailbox = mailboxFactory.createMailbox(); JAFuture future = new JAFuture(); JAFactory factory = new JAFactory(mailbox); factory.defineActorType("hi...
diff --git a/app/controllers/Dummy.java b/app/controllers/Dummy.java index 5806e61..b5f406d 100644 --- a/app/controllers/Dummy.java +++ b/app/controllers/Dummy.java @@ -1,139 +1,139 @@ package controllers; import java.util.regex.Matcher; import java.util.regex.Pattern; import org.apache.commons.mail.EmailExcept...
true
true
public static void newAccount(@Required(message = "Please enter a valid email address") String email, @Required(message = "Please enter a password") String password, @Required(message = "Please enter your first name") String firstName, @Required(message = "Please enter your last name") String lastName, @Re...
public static void newAccount(@Required(message = "Please enter a valid email address") String email, @Required(message = "Please enter a password") String password, @Required(message = "Please enter your first name") String firstName, @Required(message = "Please enter your last name") String lastName, @Re...
diff --git a/client/ui/src/main/java/de/objectcode/time4u/client/ui/views/CalendarView.java b/client/ui/src/main/java/de/objectcode/time4u/client/ui/views/CalendarView.java index 83395c29..809e9981 100644 --- a/client/ui/src/main/java/de/objectcode/time4u/client/ui/views/CalendarView.java +++ b/client/ui/src/main/java/...
true
true
public void createPartControl(final Composite parent) { m_selectionProvider = new CompoundSelectionProvider(); getSite().setSelectionProvider(m_selectionProvider); getSite().getPage().addSelectionListener(m_selectionProvider); m_calendar = new SWTCalendar(parent, SWTCalendar.SHOW_WEEK_NUMBERS); ...
public void createPartControl(final Composite parent) { m_selectionProvider = new CompoundSelectionProvider(); getSite().setSelectionProvider(m_selectionProvider); getSite().getPage().addSelectionListener(m_selectionProvider); m_calendar = new SWTCalendar(parent, SWTCalendar.SHOW_WEEK_NUMBERS); ...
diff --git a/src/main/java/org/vectomatic/dom/svg/impl/CSSHelperWebkit.java b/src/main/java/org/vectomatic/dom/svg/impl/CSSHelperWebkit.java index 5ec1164..247b2c5 100644 --- a/src/main/java/org/vectomatic/dom/svg/impl/CSSHelperWebkit.java +++ b/src/main/java/org/vectomatic/dom/svg/impl/CSSHelperWebkit.java @@ -1,37 +1...
true
true
public native String getProperty(OMSVGStyle style, String name) /*-{ // Webkit returns uri paint values in the form '#uri', instead of 'url(#url)' // which makes it hard to parse these values (because they cannot be // distinguished from '#aabbcc' rgb paint values) var value = style.getPropertyCSSValue(name); ...
public native String getProperty(OMSVGStyle style, String name) /*-{ // Webkit returns uri paint values in the form '#uri', instead of 'url(#url)' // which makes it hard to parse these values (because they cannot be // distinguished from '#aabbcc' rgb paint values) var value = style.getPropertyCSSValue(name); ...
diff --git a/core/src/main/java/org/apache/accumulo/core/util/shell/commands/MergeCommand.java b/core/src/main/java/org/apache/accumulo/core/util/shell/commands/MergeCommand.java index dae87dcfd..c3ca4adc6 100644 --- a/core/src/main/java/org/apache/accumulo/core/util/shell/commands/MergeCommand.java +++ b/core/src/main...
true
true
public int execute(final String fullCommand, final CommandLine cl, final Shell shellState) throws Exception { boolean verbose = shellState.isVerbose(); boolean force = false; boolean all = false; long size = -1; final String tableName = OptUtil.getTableOpt(cl, shellState); final Text startRow ...
public int execute(final String fullCommand, final CommandLine cl, final Shell shellState) throws Exception { boolean verbose = shellState.isVerbose(); boolean force = false; boolean all = false; long size = -1; final String tableName = OptUtil.getTableOpt(cl, shellState); final Text startRow ...
diff --git a/trunk/ASPseed/ASPseed/ASPseed.java b/trunk/ASPseed/ASPseed/ASPseed.java index 5c00112..adcd084 100644 --- a/trunk/ASPseed/ASPseed/ASPseed.java +++ b/trunk/ASPseed/ASPseed/ASPseed.java @@ -1,338 +1,345 @@ package ASPseed; /** * */ /** * @author fshelly * */ import java.io.File; import ja...
true
true
public static void main(String[] args) { // No arguments means run the display window if (args.length == 0) { prefs = new ASPpreferences(); new ASPdisplay(); } else if (args.length == 9) { // Correct number of arguments, see if they parse if (args[0].compareTo("get") != 0 && args[0].compare...
public static void main(String[] args) { // No arguments means run the display window if (args.length == 0) { prefs = new ASPpreferences(); new ASPdisplay(); } else if (args.length == 9) { // Correct number of arguments, see if they parse if (args[0].compareTo("get") != 0 && args[0].compare...
diff --git a/perf/src/main/java/com/github/fommil/netlib/Dgemm.java b/perf/src/main/java/com/github/fommil/netlib/Dgemm.java index c3a5369..e2c2953 100644 --- a/perf/src/main/java/com/github/fommil/netlib/Dgemm.java +++ b/perf/src/main/java/com/github/fommil/netlib/Dgemm.java @@ -1,26 +1,26 @@ package com.github.fommi...
true
true
public long benchmark(int size) { int m = (int) Math.sqrt(size); double[] a = Benchmarks.randomArray(m * m); double[] b = Benchmarks.randomArray(m * m); double[] c = new double[m * m]; Stopwatch watch = new Stopwatch(); watch.start(); BLAS.getInstance().dgemm("n", "n", m, m, m, 1, a, m, ...
public long benchmark(int size) { int m = (int) Math.sqrt(size); double[] a = Benchmarks.randomArray(m * m); double[] b = Benchmarks.randomArray(m * m); double[] c = new double[m * m]; Stopwatch watch = new Stopwatch(); watch.start(); BLAS.getInstance().dgemm("N", "N", m, m, m, 1, a, m, ...
diff --git a/framework/src/play/Play.java b/framework/src/play/Play.java index ed62a0f6..bc6d061c 100644 --- a/framework/src/play/Play.java +++ b/framework/src/play/Play.java @@ -1,639 +1,639 @@ package play; import java.io.*; import java.net.URI; import java.net.URL; import java.util.ArrayList; import java.uti...
true
true
public static void init(File root, String id) { // Simple things Play.id = id; Play.started = false; Play.applicationPath = root; // load all play.static of exists initStaticStuff(); // Guess the framework path try { URL versionUrl = Play...
public static void init(File root, String id) { // Simple things Play.id = id; Play.started = false; Play.applicationPath = root; // load all play.static of exists initStaticStuff(); // Guess the framework path try { URL versionUrl = Play...
diff --git a/core/cc.warlock.rcp.userstreams/src/cc/warlock/rcp/userstreams/ui/menu/StreamsContributionItem.java b/core/cc.warlock.rcp.userstreams/src/cc/warlock/rcp/userstreams/ui/menu/StreamsContributionItem.java index 3693b455..82a86d04 100644 --- a/core/cc.warlock.rcp.userstreams/src/cc/warlock/rcp/userstreams/ui/m...
false
true
protected ArrayList<IStreamFilter> getConversationsFilters () { ArrayList<IStreamFilter> filters = new ArrayList<IStreamFilter>(); // (say|ask|exclaim|whisper) filters.add(new StreamFilter("^\\w+ \\w+( (at|to) \\w+)?, \".+\"$", IStreamFilter.type.regex)); filters.add(new StreamFilter("thoughts in your head", ...
protected ArrayList<IStreamFilter> getConversationsFilters () { ArrayList<IStreamFilter> filters = new ArrayList<IStreamFilter>(); // (say|ask|exclaim|whisper) filters.add(new StreamFilter("^\\w+ \\w+( (at|to) \\w+)?, \".+\"$", IStreamFilter.type.regex)); filters.add(new StreamFilter("thoughts in your head", ...
diff --git a/platforms/android/src/co/urtrip/mobile/urTrip.java b/platforms/android/src/co/urtrip/mobile/urTrip.java index 6b02204..5e9cf6f 100644 --- a/platforms/android/src/co/urtrip/mobile/urTrip.java +++ b/platforms/android/src/co/urtrip/mobile/urTrip.java @@ -1,37 +1,37 @@ /* Licensed to the Apache Softwa...
true
true
public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); super.setIntegerProperty("splashscreen", R.drawable.splash); super.loadUrl("file:///android_asset/www/index.html", 1000); }
public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); super.setIntegerProperty("splashscreen", R.drawable.splash); super.loadUrl("file:///android_asset/www/index.html", 10000); }
diff --git a/bundles/org.eclipse.team.ui/src/org/eclipse/team/ui/sync/CatchupReleaseViewer.java b/bundles/org.eclipse.team.ui/src/org/eclipse/team/ui/sync/CatchupReleaseViewer.java index e1ccfa9e0..d7108effa 100644 --- a/bundles/org.eclipse.team.ui/src/org/eclipse/team/ui/sync/CatchupReleaseViewer.java +++ b/bundles/or...
true
true
private void initializeActions(final SyncCompareInput diffModel) { // Mask actions ImageDescriptor image = TeamUIPlugin.getPlugin().getImageDescriptor(UIConstants.IMG_DLG_SYNC_INCOMING); showIncoming = new FilterAction(Policy.bind("CatchupReleaseViewer.showIncomingAction"), image); //$NON-NLS-1$ showIncoming.s...
private void initializeActions(final SyncCompareInput diffModel) { // Mask actions ImageDescriptor image = TeamUIPlugin.getPlugin().getImageDescriptor(UIConstants.IMG_DLG_SYNC_INCOMING); showIncoming = new FilterAction(Policy.bind("CatchupReleaseViewer.showIncomingAction"), image); //$NON-NLS-1$ showIncoming.s...
diff --git a/DroidPlanner/src/com/droidplanner/fragments/EditorListFragment.java b/DroidPlanner/src/com/droidplanner/fragments/EditorListFragment.java index 4616a888..fda84a71 100644 --- a/DroidPlanner/src/com/droidplanner/fragments/EditorListFragment.java +++ b/DroidPlanner/src/com/droidplanner/fragments/EditorListFra...
true
true
public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) { View view = inflater.inflate(R.layout.fragment_mission, container, false); list = (HListView) view.findViewById(R.id.listView1); mission = ((DroidPlannerApp) getActivity().getApplication()).drone.mission...
public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) { View view = inflater.inflate(R.layout.fragment_mission_list, container, false); list = (HListView) view.findViewById(R.id.listView1); mission = ((DroidPlannerApp) getActivity().getApplication()).drone.mi...
diff --git a/src/Client/Roster.java b/src/Client/Roster.java index 99673b74..866aa821 100644 --- a/src/Client/Roster.java +++ b/src/Client/Roster.java @@ -1,3131 +1,3131 @@ /* * Roster.java * * Created on 6.01.2005, 19:16 * Copyright (c) 2005-2008, Eugene Stahov (evgs), http://bombus-im.org * * This progra...
true
true
public int blockArrived( JabberDataBlock data ) { try { if( data instanceof Iq ) { String from = data.getAttribute("from"); String type = data.getTypeAttribute(); String id = data.getAttribute("id"); if (id!=null) { ...
public int blockArrived( JabberDataBlock data ) { try { if( data instanceof Iq ) { String from = data.getAttribute("from"); String type = data.getTypeAttribute(); String id = data.getAttribute("id"); if (id!=null) { ...
diff --git a/src/main/java/org/dancres/peers/Directory.java b/src/main/java/org/dancres/peers/Directory.java index 99d51d3..e1519e9 100644 --- a/src/main/java/org/dancres/peers/Directory.java +++ b/src/main/java/org/dancres/peers/Directory.java @@ -1,324 +1,324 @@ package org.dancres.peers; import com.google.gson.G...
true
true
private void merge(Map<String, Entry> aRemoteDirectory) { final List<Entry> myUpdatedPeers = new LinkedList<Entry>(); final List<Entry> myNewPeers = new LinkedList<Entry>(); for (Map.Entry<String, Directory.Entry> kv : aRemoteDirectory.entrySet()) { // Ignore my own directory ...
private void merge(Map<String, Entry> aRemoteDirectory) { final List<Entry> myUpdatedPeers = new LinkedList<Entry>(); final List<Entry> myNewPeers = new LinkedList<Entry>(); for (Map.Entry<String, Directory.Entry> kv : aRemoteDirectory.entrySet()) { // Ignore my own directory ...
diff --git a/src/net/colar/netbeans/fan/project/FanBuildFileHelper.java b/src/net/colar/netbeans/fan/project/FanBuildFileHelper.java index 1a70091..e75b900 100644 --- a/src/net/colar/netbeans/fan/project/FanBuildFileHelper.java +++ b/src/net/colar/netbeans/fan/project/FanBuildFileHelper.java @@ -1,114 +1,114 @@ /* *...
true
true
public static String getPodForPath(String path) { File folder = new File(path).getParentFile(); File scriptFolder = folder; String pod = null; while (folder != null) { if (new File(folder, "build.fan").exists()) { try ...
public static String getPodForPath(String path) { File folder = new File(path).getParentFile(); File scriptFolder = folder; String pod = null; while (folder != null) { if (new File(folder, "build.fan").exists()) { try ...
diff --git a/dexlib2/src/main/java/org/jf/dexlib2/writer/AnnotationDirectoryPool.java b/dexlib2/src/main/java/org/jf/dexlib2/writer/AnnotationDirectoryPool.java index 9e98c146..666fced8 100644 --- a/dexlib2/src/main/java/org/jf/dexlib2/writer/AnnotationDirectoryPool.java +++ b/dexlib2/src/main/java/org/jf/dexlib2/write...
true
true
public void write(@Nonnull DexWriter writer) throws IOException { // we'll write out the interned items first List<Key> directoryItems = Lists.newArrayList(internedAnnotationDirectoryItems.keySet()); Collections.sort(directoryItems); writer.align(); sectionOffset = writer.ge...
public void write(@Nonnull DexWriter writer) throws IOException { // we'll write out the interned items first List<Key> directoryItems = Lists.newArrayList(internedAnnotationDirectoryItems.keySet()); Collections.sort(directoryItems); writer.align(); sectionOffset = writer.ge...
diff --git a/core/src/main/java/hudson/model/Api.java b/core/src/main/java/hudson/model/Api.java index d259647eb..0c3956705 100644 --- a/core/src/main/java/hudson/model/Api.java +++ b/core/src/main/java/hudson/model/Api.java @@ -1,146 +1,146 @@ package hudson.model; import hudson.util.IOException2; import org.dom4...
true
true
public void doXml(StaplerRequest req, StaplerResponse rsp, @QueryParameter String xpath, @QueryParameter String wrapper, @QueryParameter int depth) throws IOException, ServletException { if(xpath==null) { // serve the whole thing ...
public void doXml(StaplerRequest req, StaplerResponse rsp, @QueryParameter String xpath, @QueryParameter String wrapper, @QueryParameter int depth) throws IOException, ServletException { if(xpath==null) { // serve the whole thing ...
diff --git a/src/org/apache/xerces/impl/xs/XMLSchemaValidator.java b/src/org/apache/xerces/impl/xs/XMLSchemaValidator.java index 7cfc44bd7..d9bff0f45 100644 --- a/src/org/apache/xerces/impl/xs/XMLSchemaValidator.java +++ b/src/org/apache/xerces/impl/xs/XMLSchemaValidator.java @@ -1,4604 +1,4604 @@ /* * Licensed to t...
true
true
Augmentations handleStartElement(QName element, XMLAttributes attributes, Augmentations augs) { if (DEBUG) { System.out.println("==>handleStartElement: " + element); } // root element if (fElementDepth == -1 && fValidationManager.isGrammarFound()) { if (fSch...
Augmentations handleStartElement(QName element, XMLAttributes attributes, Augmentations augs) { if (DEBUG) { System.out.println("==>handleStartElement: " + element); } // root element if (fElementDepth == -1 && fValidationManager.isGrammarFound()) { if (fSch...
diff --git a/pdf-report/src/test/java/org/sonar/report/pdf/test/ReporterTest.java b/pdf-report/src/test/java/org/sonar/report/pdf/test/ReporterTest.java index 40e7cfdcb..9db53b2c9 100644 --- a/pdf-report/src/test/java/org/sonar/report/pdf/test/ReporterTest.java +++ b/pdf-report/src/test/java/org/sonar/report/pdf/test/R...
true
true
public void getReportTest() throws DocumentException, IOException, org.dom4j.DocumentException { URL resource = this.getClass().getClassLoader().getResource("report.properties"); Properties config = new Properties(); config.load(resource.openStream()); PDFReporter reporter = new TeamWorkbookPDFReport...
public void getReportTest() throws DocumentException, IOException, org.dom4j.DocumentException { URL resource = this.getClass().getClassLoader().getResource("report.properties"); Properties config = new Properties(); config.load(resource.openStream()); PDFReporter reporter = new TeamWorkbookPDFReport...
diff --git a/ha/src/main/java/org/neo4j/kernel/ha/zookeeper/ZooClient.java b/ha/src/main/java/org/neo4j/kernel/ha/zookeeper/ZooClient.java index 11886489..98b8e4e4 100644 --- a/ha/src/main/java/org/neo4j/kernel/ha/zookeeper/ZooClient.java +++ b/ha/src/main/java/org/neo4j/kernel/ha/zookeeper/ZooClient.java @@ -1,1324 +1...
true
true
private void processEvent( WatchedEvent event, ZooKeeper zooKeeper ) { try { count.incrementAndGet(); String path = event.getPath(); msgLog.logMessage( this + ", " + new Date() + " Got event: " + event + " (path=" + path + ")", true...
private void processEvent( WatchedEvent event, ZooKeeper zooKeeper ) { try { count.incrementAndGet(); String path = event.getPath(); msgLog.logMessage( this + ", " + new Date() + " Got event: " + event + " (path=" + path + ")", true...
diff --git a/src/com/fsck/k9/activity/MessageList.java b/src/com/fsck/k9/activity/MessageList.java index a060db8..d9ed1c4 100644 --- a/src/com/fsck/k9/activity/MessageList.java +++ b/src/com/fsck/k9/activity/MessageList.java @@ -1,2751 +1,2758 @@ package com.fsck.k9.activity; // import android.os.Debug; import and...
false
true
public View getItemView(int position, View convertView, ViewGroup parent) { MessageInfoHolder message = (MessageInfoHolder) getItem(position); View view; if ((convertView != null) && (convertView.getId() == R.layout.message_list_item)) { v...
public View getItemView(int position, View convertView, ViewGroup parent) { MessageInfoHolder message = (MessageInfoHolder) getItem(position); View view; if ((convertView != null) && (convertView.getId() == R.layout.message_list_item)) { v...
diff --git a/scm-server-api/src/main/java/sonia/scm/server/ServerApplication.java b/scm-server-api/src/main/java/sonia/scm/server/ServerApplication.java index f0ab3232b..5fcbf292a 100644 --- a/scm-server-api/src/main/java/sonia/scm/server/ServerApplication.java +++ b/scm-server-api/src/main/java/sonia/scm/server/Server...
true
true
public static void main(String[] args) throws CliException, ServerException, IOException { InputStream input = ServerApplication.class.getResourceAsStream(APPINFO); if (input == null) { System.err.println("could not find /app-info.xml in classpath"); System.exit(RETURNCODE_MISSING...
public static void main(String[] args) throws CliException, ServerException, IOException { InputStream input = ServerApplication.class.getResourceAsStream(APPINFO); if (input == null) { System.err.println("could not find /app-info.xml in classpath"); System.exit(RETURNCODE_MISSING...
diff --git a/dalvik-explorer/src/org/jessies/dalvikexplorer/SensorItem.java b/dalvik-explorer/src/org/jessies/dalvikexplorer/SensorItem.java index d84c8ba..661587e 100644 --- a/dalvik-explorer/src/org/jessies/dalvikexplorer/SensorItem.java +++ b/dalvik-explorer/src/org/jessies/dalvikexplorer/SensorItem.java @@ -1,57 +1...
true
true
private String toString(SensorEvent e) { switch (e.sensor.getType()) { case Sensor.TYPE_ACCELEROMETER: case Sensor.TYPE_GRAVITY: case Sensor.TYPE_LINEAR_ACCELERATION: return String.format(Locale.US, "res=%f x=%+.1f m/s\u00b2, y=%+.1f m/s\u00b2, z=%+.1f m/s\u00b2", e.values[0], e.values[1...
private String toString(SensorEvent e) { switch (e.sensor.getType()) { case Sensor.TYPE_ACCELEROMETER: case Sensor.TYPE_GRAVITY: case Sensor.TYPE_LINEAR_ACCELERATION: return String.format(Locale.US, "x=%+.1f m/s\u00b2, y=%+.1f m/s\u00b2, z=%+.1f m/s\u00b2", e.values[0], e.values[1], e.va...
diff --git a/src/main/java/org/apache/commons/ognl/EnumerationPropertyAccessor.java b/src/main/java/org/apache/commons/ognl/EnumerationPropertyAccessor.java index a4b4bd3..c4b12f1 100644 --- a/src/main/java/org/apache/commons/ognl/EnumerationPropertyAccessor.java +++ b/src/main/java/org/apache/commons/ognl/EnumerationP...
true
true
public Object getProperty( Map<String, Object> context, Object target, Object name ) throws OgnlException { Object result; Enumeration e = (Enumeration) target; if ( name instanceof String ) { if ( name.equals( "next" ) || name.equals( "nextElement" ) ) ...
public Object getProperty( Map<String, Object> context, Object target, Object name ) throws OgnlException { Object result; Enumeration<?> e = (Enumeration<?>) target; // check performed by the invoker if ( name instanceof String ) { if ( name.equals( "next" )...
diff --git a/org.eclipse.mylyn.reviews.r4e.ui/src/org/eclipse/mylyn/reviews/r4e/ui/internal/properties/tabbed/ReviewTabPropertySection.java b/org.eclipse.mylyn.reviews.r4e.ui/src/org/eclipse/mylyn/reviews/r4e/ui/internal/properties/tabbed/ReviewTabPropertySection.java index 654dca2..50640a4 100644 --- a/org.eclipse.myl...
true
true
public void refresh() { fRefreshInProgress = true; final DateFormat dateFormat = new SimpleDateFormat(R4EUIConstants.DEFAULT_DATE_FORMAT); //Refresh common properties first final R4EUIReviewBasic uiReview = (R4EUIReviewBasic) fProperties.getElement(); final R4EReview modelReview = uiReview.getReview(); fN...
public void refresh() { fRefreshInProgress = true; final DateFormat dateFormat = new SimpleDateFormat(R4EUIConstants.DEFAULT_DATE_FORMAT); //Refresh common properties first final R4EUIReviewBasic uiReview = (R4EUIReviewBasic) fProperties.getElement(); final R4EReview modelReview = uiReview.getReview(); fN...
diff --git a/src/main/java/edu/berkeley/sparrow/prototype/ProtoFrontend.java b/src/main/java/edu/berkeley/sparrow/prototype/ProtoFrontend.java index 8ca3997..43cab28 100644 --- a/src/main/java/edu/berkeley/sparrow/prototype/ProtoFrontend.java +++ b/src/main/java/edu/berkeley/sparrow/prototype/ProtoFrontend.java @@ -1,2...
true
true
public void run(String[] args) { try { OptionParser parser = new OptionParser(); parser.accepts("c", "configuration file").withRequiredArg().ofType(String.class); parser.accepts("help", "print help statement"); OptionSet options = parser.parse(args); if (options.has("help")) { ...
public void run(String[] args) { try { OptionParser parser = new OptionParser(); parser.accepts("c", "configuration file").withRequiredArg().ofType(String.class); parser.accepts("help", "print help statement"); OptionSet options = parser.parse(args); if (options.has("help")) { ...
diff --git a/gremlin/gremlin-test/src/main/java/com/tinkerpop/gremlin/test/ComplianceTest.java b/gremlin/gremlin-test/src/main/java/com/tinkerpop/gremlin/test/ComplianceTest.java index bb4e21c4d..4656414cc 100644 --- a/gremlin/gremlin-test/src/main/java/com/tinkerpop/gremlin/test/ComplianceTest.java +++ b/gremlin/greml...
false
true
public static void testCompliance(final Class testClass) { // get the base class from gremlin-test final Class gremlinTestBaseClass = testClass.getSuperclass(); assertNotNull(gremlinTestBaseClass); // get the test methods from base and validate that they are somehow implemented in t...
public static void testCompliance(final Class testClass) { // get the base class from gremlin-test final Class gremlinTestBaseClass = testClass.getSuperclass(); assertNotNull(gremlinTestBaseClass); // get the test methods from base and validate that they are somehow implemented in t...
diff --git a/src/uk/ac/gla/dcs/tp3/w/algorithm/Algorithm.java b/src/uk/ac/gla/dcs/tp3/w/algorithm/Algorithm.java index 6ff272a..a932719 100644 --- a/src/uk/ac/gla/dcs/tp3/w/algorithm/Algorithm.java +++ b/src/uk/ac/gla/dcs/tp3/w/algorithm/Algorithm.java @@ -1,63 +1,63 @@ package uk.ac.gla.dcs.tp3.w.algorithm; import...
true
true
private boolean fordFulkerson(Team t) { g = new Graph(l, t); // For each edge in the graph g, set the flow to be 0. for (Vertex v : g.getV()) for (AdjListNode n : v.getAdjList()) n.setFlow(0); // While there is a path p from the source to the sink in the residual graph // Find the capacity c of the r...
private boolean fordFulkerson(Team t) { g = new Graph(l, t); // For each edge in the graph g, set the flow to be 0. for (Vertex v : g.getV()) for (AdjListNode n : v.getAdjList()) n.setFlow(0); // While there is a path p from the source to the sink in the residual graph // Find the capacity c of the r...
diff --git a/src/main/java/com/theminequest/common/quest/js/JsQuestDetails.java b/src/main/java/com/theminequest/common/quest/js/JsQuestDetails.java index 586503f..37cfa0b 100644 --- a/src/main/java/com/theminequest/common/quest/js/JsQuestDetails.java +++ b/src/main/java/com/theminequest/common/quest/js/JsQuestDetails....
true
true
public JsQuestDetails(String name) { super(name); setProperty(QUEST_LOADWORLD, true); // from V1 setProperty(QuestDetails.QUEST_DISPLAYNAME, name); setProperty(QuestDetails.QUEST_DESCRIPTION, _("No description provided...")); setProperty(QuestDetails.QUEST_ACCEPT, _("Quest Accepted!")); setProperty(Qu...
public JsQuestDetails(String name) { super(name); super.setProperty(QUEST_LOADWORLD, true); // from V1 setProperty(QuestDetails.QUEST_DISPLAYNAME, name); setProperty(QuestDetails.QUEST_DESCRIPTION, _("No description provided...")); setProperty(QuestDetails.QUEST_ACCEPT, _("Quest Accepted!")); setPrope...
diff --git a/src/test/org/apache/nutch/fetcher/TestFetcher.java b/src/test/org/apache/nutch/fetcher/TestFetcher.java index 3ea8c33f..e2ca0edb 100644 --- a/src/test/org/apache/nutch/fetcher/TestFetcher.java +++ b/src/test/org/apache/nutch/fetcher/TestFetcher.java @@ -1,134 +1,137 @@ /* * Copyright 2006 The Apache Sof...
true
true
public void testFetch() throws IOException { //generate seedlist ArrayList<String> urls=new ArrayList<String>(); addUrl(urls,"index.html"); addUrl(urls,"pagea.html"); addUrl(urls,"pageb.html"); addUrl(urls,"dup_of_pagea.html"); CrawlDBTestUtil.generateSeedList(fs, urlPath, u...
public void testFetch() throws IOException { //generate seedlist ArrayList<String> urls=new ArrayList<String>(); addUrl(urls,"index.html"); addUrl(urls,"pagea.html"); addUrl(urls,"pageb.html"); addUrl(urls,"dup_of_pagea.html"); CrawlDBTestUtil.generateSeedList(fs, urlPath, u...
diff --git a/src/main/java/org/jmxtrans/embedded/QueryAttribute.java b/src/main/java/org/jmxtrans/embedded/QueryAttribute.java index b54fd2a..55f5319 100644 --- a/src/main/java/org/jmxtrans/embedded/QueryAttribute.java +++ b/src/main/java/org/jmxtrans/embedded/QueryAttribute.java @@ -1,210 +1,210 @@ /* * Copyright (...
false
true
public int collectMetrics(@Nonnull ObjectName objectName, @Nonnull Object value, long epochInMillis, @Nonnull Queue<QueryResult> results) { int metricsCounter = 0; if (value instanceof CompositeData) { CompositeData compositeData = (CompositeData) value; ...
public int collectMetrics(@Nonnull ObjectName objectName, @Nonnull Object value, long epochInMillis, @Nonnull Queue<QueryResult> results) { int metricsCounter = 0; if (value instanceof CompositeData) { CompositeData compositeData = (CompositeData) value; ...
diff --git a/app/controllers/Receipts.java b/app/controllers/Receipts.java index 38e489f..0d21d33 100644 --- a/app/controllers/Receipts.java +++ b/app/controllers/Receipts.java @@ -1,145 +1,146 @@ package controllers; import java.util.ArrayList; import java.util.HashSet; import java.util.List; import java.util.S...
true
true
public static void add(String title, int tip, List<Long> members, String description, double total, List<SubroundInput> subrounds) { Set<User> membersSet = new HashSet<User>(); for (Long id : members) { User u = User.findById(id); membersSet.add(u); } Receipt receipt = new Receipt(title, Securi...
public static void add(String title, int tip, List<Long> members, String description, double total, List<SubroundInput> subrounds) { Set<User> membersSet = new HashSet<User>(); for (Long id : members) { User u = User.findById(id); membersSet.add(u); } Receipt receipt = new Receipt(title, Securi...
diff --git a/src/com/csipsimple/models/CallerInfo.java b/src/com/csipsimple/models/CallerInfo.java index f178fea3..17062624 100644 --- a/src/com/csipsimple/models/CallerInfo.java +++ b/src/com/csipsimple/models/CallerInfo.java @@ -1,202 +1,207 @@ /** * Copyright (C) 2010 Regis Montoya (aka r3gis - www.r3gis.fr) * ...
true
true
public static CallerInfo getCallerInfo(Context context, String number) { Uri contactUri = null; // [sentinel] Uri contentUri = null; // [sentinel] CallerInfo info = new CallerInfo(); info.phoneLabel = null; info.numberType = 0; info.numberLabel = null; inf...
public static CallerInfo getCallerInfo(Context context, String number) { Uri contactUri = null; // [sentinel] Uri contentUri = null; // [sentinel] CallerInfo info = new CallerInfo(); info.phoneLabel = null; info.numberType = 0; info.numberLabel = null; inf...
diff --git a/caintegrator2-war/src/gov/nih/nci/caintegrator2/application/workspace/WorkspaceServiceImpl.java b/caintegrator2-war/src/gov/nih/nci/caintegrator2/application/workspace/WorkspaceServiceImpl.java index b91d69efb..7794f561d 100644 --- a/caintegrator2-war/src/gov/nih/nci/caintegrator2/application/workspace/Wor...
true
true
public void unsubscribe(UserWorkspace workspace, Study study) { for (StudySubscription subscription : workspace.getSubscriptionCollection()) { if (subscription.getStudy().equals(study)) { workspace.getSubscriptionCollection().remove(subscription); if (workspace.ge...
public void unsubscribe(UserWorkspace workspace, Study study) { for (StudySubscription subscription : workspace.getSubscriptionCollection()) { if (subscription.getStudy().equals(study)) { workspace.getSubscriptionCollection().remove(subscription); saveUserWorkspac...
diff --git a/src/GUI/SimulationPanel.java b/src/GUI/SimulationPanel.java index d075c81..3568cf2 100644 --- a/src/GUI/SimulationPanel.java +++ b/src/GUI/SimulationPanel.java @@ -1,417 +1,417 @@ package GUI; import Source.CObstacle; import Source.CWalker; import Source.CWorld; import Util.CEdge; import Util.CPosi...
true
true
private void doDrawing(Graphics2D g2d) { //Customize the main world g2d.setBackground(Color.BLACK); g2d.fillRect(getX(), getY(), getWidth(), getHeight()); if(simulationWorld == null) { g2d.setColor(Color.WHITE); g2d.drawString("Bitte wähle eine Welt, die ge...
private void doDrawing(Graphics2D g2d) { //Customize the main world g2d.setBackground(Color.BLACK); g2d.fillRect(getX(), getY(), getWidth(), getHeight()); if(simulationWorld == null) { g2d.setColor(Color.WHITE); g2d.drawString("Bitte wähle eine Welt, die ge...
diff --git a/tests/org.eclipse.core.tests.resources/src/org/eclipse/core/tests/resources/regression/AllTests.java b/tests/org.eclipse.core.tests.resources/src/org/eclipse/core/tests/resources/regression/AllTests.java index a7df65a64..d18a53432 100644 --- a/tests/org.eclipse.core.tests.resources/src/org/eclipse/core/tes...
true
true
public static Test suite() { TestSuite suite = new TestSuite(AllTests.class.getName()); suite.addTest(Bug_126104.suite()); suite.addTest(Bug_127562.suite()); suite.addTest(Bug_25457.suite()); suite.addTest(Bug_26294.suite()); suite.addTest(Bug_27271.suite()); suite.addTest(Bug_28981.suite()); suite.add...
public static Test suite() { TestSuite suite = new TestSuite(AllTests.class.getName()); suite.addTest(Bug_126104.suite()); suite.addTest(Bug_127562.suite()); suite.addTest(Bug_132510.suite()); suite.addTest(Bug_25457.suite()); suite.addTest(Bug_26294.suite()); suite.addTest(Bug_27271.suite()); suite.ad...
diff --git a/pace-base/src/main/java/com/pace/base/funcs/F_CrossDim.java b/pace-base/src/main/java/com/pace/base/funcs/F_CrossDim.java index 80b33025..a11b0540 100644 --- a/pace-base/src/main/java/com/pace/base/funcs/F_CrossDim.java +++ b/pace-base/src/main/java/com/pace/base/funcs/F_CrossDim.java @@ -1,435 +1,436 @@ ...
false
true
private String resolveMemberSpec(String dimension, String memberSpec, PafClientState clientState, String currMbrName, Properties tokenCatalog) { String resolvedMemberSpec = null, key = null, validDim = null; String timeDim = clientState.getMdbDef().getTimeDim(), yearDim = clientState.getMdbDef().getYearDim(); ...
private String resolveMemberSpec(String dimension, String memberSpec, PafClientState clientState, String currMbrName, Properties tokenCatalog) { String resolvedMemberSpec = null, key = null, validDim = null; // If not a token, then just return member name (original membSpec value) if (!memberSpec.startsWit...
diff --git a/src/ru/spbau/bioinf/tagfinder/FastSearch.java b/src/ru/spbau/bioinf/tagfinder/FastSearch.java index 7af4224..7bb553e 100644 --- a/src/ru/spbau/bioinf/tagfinder/FastSearch.java +++ b/src/ru/spbau/bioinf/tagfinder/FastSearch.java @@ -1,334 +1,334 @@ package ru.spbau.bioinf.tagfinder; import edu.ucsd.ms...
true
true
private static void doSearch(int count, Configuration conf, List<Integer> keys) throws Exception { long start = System.currentTimeMillis(); unmatchedScans.addAll(keys); List<int[]>[] candidates = new List[27]; for (int i = 0; i < candidates.length; i++) { candidates[i] =...
private static void doSearch(int count, Configuration conf, List<Integer> keys) throws Exception { long start = System.currentTimeMillis(); unmatchedScans.addAll(keys); List<int[]>[] candidates = new List[27]; for (int i = 0; i < candidates.length; i++) { candidates[i] =...
diff --git a/PopulateReactions.java b/PopulateReactions.java index d214202b..9210a4b9 100644 --- a/PopulateReactions.java +++ b/PopulateReactions.java @@ -1,327 +1,341 @@ //////////////////////////////////////////////////////////////////////////////// // // RMG - Reaction Mechanism Generator // // Copyright (c) 20...
false
true
public static void main(String[] args) { initializeSystemProperties(); // Set Global.lowTemp and Global.highTemp // The values of the low/highTemp are not used in the function // (to the best of my knowledge). // They are necessary for the instances of additionalKinetics, // e.g. H2C*-CH2-CH2-CH3 -> H3C-...
public static void main(String[] args) { initializeSystemProperties(); // Set Global.lowTemp and Global.highTemp // The values of the low/highTemp are not used in the function // (to the best of my knowledge). // They are necessary for the instances of additionalKinetics, // e.g. H2C*-CH2-CH2-CH3 -> H3C-...
diff --git a/parser/src/main/java/org/dna/mqtt/moquette/server/MQTTHandler.java b/parser/src/main/java/org/dna/mqtt/moquette/server/MQTTHandler.java index d79a732..03c15c0 100644 --- a/parser/src/main/java/org/dna/mqtt/moquette/server/MQTTHandler.java +++ b/parser/src/main/java/org/dna/mqtt/moquette/server/MQTTHandler....
true
true
protected void handleConnect(IoSession session, ConnectMessage msg) { LOG.info("handleConnect invoked"); if (msg.getProcotolVersion() != 0x03) { ConnAckMessage badProto = new ConnAckMessage(); badProto.setReturnCode(ConnAckMessage.UNNACEPTABLE_PROTOCOL_VERSION); s...
protected void handleConnect(IoSession session, ConnectMessage msg) { LOG.info("handleConnect invoked"); if (msg.getProcotolVersion() != 0x03) { ConnAckMessage badProto = new ConnAckMessage(); badProto.setReturnCode(ConnAckMessage.UNNACEPTABLE_PROTOCOL_VERSION); s...
diff --git a/melete-app/src/java/org/sakaiproject/tool/melete/ViewNextStepsPage.java b/melete-app/src/java/org/sakaiproject/tool/melete/ViewNextStepsPage.java index b9d39ae1..bb2d77d5 100644 --- a/melete-app/src/java/org/sakaiproject/tool/melete/ViewNextStepsPage.java +++ b/melete-app/src/java/org/sakaiproject/tool/mel...
false
true
public String goPrevItem() { FacesContext context = FacesContext.getCurrentInstance(); courseId = getCourseId(); int nextPrevSeqNo = getModuleService().getPrevSeqNo(courseId,this.nextSeqNo); if (this.prevSecId == 0) { ValueBinding binding = Util.getBinding("#{viewModulesPage}"); ViewModulesPage vm...
public String goPrevItem() { FacesContext context = FacesContext.getCurrentInstance(); courseId = getCourseId(); int prevSeqNo = getModuleService().getPrevSeqNo(courseId,this.nextSeqNo); if (this.prevSecId == 0) { ValueBinding binding = Util.getBinding("#{viewModulesPage}"); ViewModulesPage vmPage...
diff --git a/modules/activiti-explorer/src/main/java/org/activiti/explorer/ui/management/identity/GroupSelectionQuery.java b/modules/activiti-explorer/src/main/java/org/activiti/explorer/ui/management/identity/GroupSelectionQuery.java index 17b7afc09..b7e834192 100644 --- a/modules/activiti-explorer/src/main/java/org/a...
true
true
public List<Item> loadItems(int start, int count) { List<Item> groupItems = new ArrayList<Item>(); Set<String> currentGroups = getCurrentGroups(); int nrFound = 0; int tries = 0; while (nrFound == 0) { // must stop at some point in time, as otherwise size() would be reached List<...
public List<Item> loadItems(int start, int count) { List<Item> groupItems = new ArrayList<Item>(); Set<String> currentGroups = getCurrentGroups(); int nrFound = 0; int tries = 0; while (nrFound < count && tries < 5) { // must stop at some point in time, as otherwise size() would be reached ...
diff --git a/src/ecologylab/concurrent/DownloadState.java b/src/ecologylab/concurrent/DownloadState.java index 336c260d..ae871693 100644 --- a/src/ecologylab/concurrent/DownloadState.java +++ b/src/ecologylab/concurrent/DownloadState.java @@ -1,98 +1,102 @@ package ecologylab.concurrent; import java.io.IOException;...
true
true
void performDownload() throws IOException { downloadingThread = Thread.currentThread(); //TODO need a lock here to prevent recycle() while downloading!!!!!! if (downloadable != null && !downloadable.isRecycled()) { //Update site statistics if available BasicSite site = downloadable.getDownloadSite(); ...
void performDownload() throws IOException { downloadingThread = Thread.currentThread(); //TODO need a lock here to prevent recycle() while downloading!!!!!! if (downloadable != null && !downloadable.isRecycled()) { //Update site statistics if available BasicSite site = downloadable.getDownloadSite(); ...
diff --git a/amibe/src/org/jcae/mesh/amibe/algos3d/AbstractAlgoHalfEdge.java b/amibe/src/org/jcae/mesh/amibe/algos3d/AbstractAlgoHalfEdge.java index f341414f..4403f23a 100644 --- a/amibe/src/org/jcae/mesh/amibe/algos3d/AbstractAlgoHalfEdge.java +++ b/amibe/src/org/jcae/mesh/amibe/algos3d/AbstractAlgoHalfEdge.java @@ -1...
true
true
private boolean processAllHalfEdges() { double cost = -1.0; while (!tree.isEmpty() && (nrFinal == 0 || (moreTriangles && nrTriangles < nrFinal) || (!moreTriangles && nrTriangles > nrFinal))) { preProcessEdge(); HalfEdge current = null; Iterator<QSortedTree.Node<HalfEdge>> itt = tree.iterator(); if (...
private boolean processAllHalfEdges() { double cost = -1.0; while (!tree.isEmpty() && (nrFinal == 0 || (moreTriangles && nrTriangles < nrFinal) || (!moreTriangles && nrTriangles > nrFinal))) { preProcessEdge(); HalfEdge current = null; Iterator<QSortedTree.Node<HalfEdge>> itt = tree.iterator(); if (...
diff --git a/src/org/geometerplus/zlibrary/text/view/ZLTextParagraphCursor.java b/src/org/geometerplus/zlibrary/text/view/ZLTextParagraphCursor.java index e18a7ca7..297d232a 100644 --- a/src/org/geometerplus/zlibrary/text/view/ZLTextParagraphCursor.java +++ b/src/org/geometerplus/zlibrary/text/view/ZLTextParagraphCurso...
false
true
private void processTextEntry(final char[] data, final int offset, final int length) { if (length != 0) { if (ourBreaks.length < length) { ourBreaks = new byte[length]; } final byte[] breaks = ourBreaks; myLineBreaker.setLineBreaks(data, offset, length, breaks); final ZLTextElement hSpace...
private void processTextEntry(final char[] data, final int offset, final int length) { if (length != 0) { if (ourBreaks.length < length) { ourBreaks = new byte[length]; } final byte[] breaks = ourBreaks; myLineBreaker.setLineBreaks(data, offset, length, breaks); final ZLTextElement hSpace...
diff --git a/src/de/fuberlin/projecta/analysis/ast/BinaryOp.java b/src/de/fuberlin/projecta/analysis/ast/BinaryOp.java index f6a8efc1..140cc84f 100644 --- a/src/de/fuberlin/projecta/analysis/ast/BinaryOp.java +++ b/src/de/fuberlin/projecta/analysis/ast/BinaryOp.java @@ -1,308 +1,308 @@ package de.fuberlin.projecta.ana...
true
true
public String genCode() { String ret = ""; Block block = getHighestBlock(); Expression t1 = (Expression) getLeftSide(); Expression t2 = (Expression) getRightSide(); // comparison operators if (op == TokenType.OP_EQ || op == TokenType.OP_NE || op == TokenType.OP_LT || op == TokenType.OP_LE || op ==...
public String genCode() { String ret = ""; Block block = getHighestBlock(); Expression t1 = (Expression) getLeftSide(); Expression t2 = (Expression) getRightSide(); // comparison operators if (op == TokenType.OP_EQ || op == TokenType.OP_NE || op == TokenType.OP_LT || op == TokenType.OP_LE || op ==...
diff --git a/src/bspkrs/fml/util/TickerBase.java b/src/bspkrs/fml/util/TickerBase.java index 400112f..cafd8aa 100644 --- a/src/bspkrs/fml/util/TickerBase.java +++ b/src/bspkrs/fml/util/TickerBase.java @@ -1,73 +1,73 @@ package bspkrs.fml.util; import java.util.EnumSet; import cpw.mods.fml.common.ITickHandler; i...
true
true
private void tick(EnumSet<TickType> tickTypes, boolean isStart) { for (TickType tickType : tickTypes) { if (!onTick(tickType, isStart)) { tickTypes.remove(tickType); tickTypes.removeAll(tickType.partnerTicks()); } } ...
private void tick(EnumSet<TickType> tickTypes, boolean isStart) { for (TickType tickType : tickTypes) { if (!onTick(tickType, isStart)) { this.tickTypes.remove(tickType); this.tickTypes.removeAll(tickType.partnerTicks()); } ...
diff --git a/src/com/redhat/qe/sm/cli/tests/ListTests.java b/src/com/redhat/qe/sm/cli/tests/ListTests.java index 84933896..f4aa7e9d 100644 --- a/src/com/redhat/qe/sm/cli/tests/ListTests.java +++ b/src/com/redhat/qe/sm/cli/tests/ListTests.java @@ -1,834 +1,848 @@ package com.redhat.qe.sm.cli.tests; import java.text....
false
true
public void createSubscriptionsWithVariationsOnProductAttributeSockets() throws JSONException, Exception { String name,productId; List<String> providedProductIds = new ArrayList<String>(); Map<String,String> attributes = new HashMap<String,String>(); JSONObject jsonEngProduct, jsonMktProduct, jsonSubscription;...
public void createSubscriptionsWithVariationsOnProductAttributeSockets() throws JSONException, Exception { String name,productId; List<String> providedProductIds = new ArrayList<String>(); Map<String,String> attributes = new HashMap<String,String>(); JSONObject jsonEngProduct, jsonMktProduct, jsonSubscription;...
diff --git a/src/uk/me/parabola/imgfmt/app/labelenc/AnyCharsetEncoder.java b/src/uk/me/parabola/imgfmt/app/labelenc/AnyCharsetEncoder.java index fa6a6c7d..05d791c8 100644 --- a/src/uk/me/parabola/imgfmt/app/labelenc/AnyCharsetEncoder.java +++ b/src/uk/me/parabola/imgfmt/app/labelenc/AnyCharsetEncoder.java @@ -1,92 +1,9...
true
true
public EncodedText encodeText(String text) { if (text == null) return NO_TEXT; if (!isCharsetSupported()) return simpleEncode(text); String ucText; if (isUpperCase()) ucText = text.toUpperCase(Locale.ENGLISH); else ucText = text; byte[] bytes = new byte[(int) (ucText.length() * encoder.maxBy...
public EncodedText encodeText(String text) { if (text == null) return NO_TEXT; if (!isCharsetSupported()) return simpleEncode(text); String ucText; if (isUpperCase()) ucText = text.toUpperCase(Locale.ENGLISH); else ucText = text; // TODO: over allocate space. need better way, or perhaps it i...
diff --git a/src/com/digitallizard/bbcnewsreader/data/DatabaseHandler.java b/src/com/digitallizard/bbcnewsreader/data/DatabaseHandler.java index 8fdc2ff..8acb2d2 100644 --- a/src/com/digitallizard/bbcnewsreader/data/DatabaseHandler.java +++ b/src/com/digitallizard/bbcnewsreader/data/DatabaseHandler.java @@ -1,482 +1,48...
false
true
public void insertItem(String title, String description, String link, Date pubdate, String category, String thumbnailUrl){ long timestamp = pubdate.getTime(); Date now = new Date(); //check if the news is old or not if(timestamp > (now.getTime() - clearOutAgeMilliSecs)){ //check to see if t...
public void insertItem(String title, String description, String link, Date pubdate, String category, String thumbnailUrl){ long timestamp = pubdate.getTime(); Date now = new Date(); //check if the news is old or not if(timestamp > (now.getTime() - clearOutAgeMilliSecs)){ //check to see if t...
diff --git a/core/jdiameter/impl/src/main/java/org/jdiameter/client/impl/parser/ElementParser.java b/core/jdiameter/impl/src/main/java/org/jdiameter/client/impl/parser/ElementParser.java index 2296daa9..905e37f6 100644 --- a/core/jdiameter/impl/src/main/java/org/jdiameter/client/impl/parser/ElementParser.java +++ b/cor...
true
true
public AvpSetImpl decodeAvpSet(byte[] buffer, int shift) throws IOException, AvpDataException { AvpSetImpl avps = new AvpSetImpl(); int tmp, counter = shift; DataInputStream in = new DataInputStream(new ByteArrayInputStream(buffer, shift, buffer.length /* - shift ? */)); while (counter < bu...
public AvpSetImpl decodeAvpSet(byte[] buffer, int shift) throws IOException, AvpDataException { AvpSetImpl avps = new AvpSetImpl(); int tmp, counter = shift; DataInputStream in = new DataInputStream(new ByteArrayInputStream(buffer, shift, buffer.length /* - shift ? */)); while (counter < bu...
diff --git a/client/TestPingers.java b/client/TestPingers.java index bdc767c..d8e0cbb 100644 --- a/client/TestPingers.java +++ b/client/TestPingers.java @@ -1,76 +1,76 @@ import java.io.*; import java.net.*; /** This class is disposable code to examplify how to use the various pingers and the expected forma...
false
true
public static void main(String args[]) throws InterruptedException { if (args.length != 1) { System.err.println("Usage: java TestPingers hostname"); System.exit(2); } // FIXME: get from applet's cookie ClientInfo this_client = new ClientInfo(ClientInf...
public static void main(String args[]) throws InterruptedException { if (args.length != 1) { System.err.println("Usage: java TestPingers hostname"); System.exit(2); } // FIXME: get from applet's cookie ClientInfo this_client = new ClientInfo(ClientInf...
diff --git a/src/Program.java b/src/Program.java index efe8d01..c2095c3 100644 --- a/src/Program.java +++ b/src/Program.java @@ -1,95 +1,90 @@ import defs.EdgeFormat; import defs.FormatHelper; import defs.VertexFormat; import logic.extlib.Edge; import logic.extlib.IncidenceListGraph; import logic.extlib.Vertex; ...
false
true
public static void main(String args[]) { /* Set the Nimbus look and feel */ // <editor-fold defaultstate="collapsed" // desc=" Look and feel setting code (optional) "> /* * If Nimbus (introduced in Java SE 6) is not available, stay with the * default look and feel. For details see * http://download.or...
public static void main(String args[]) { /* Set the Nimbus look and feel */ // <editor-fold defaultstate="collapsed" // desc=" Look and feel setting code (optional) "> /* * If Nimbus (introduced in Java SE 6) is not available, stay with the * default look and feel. For details see * http://download.or...
diff --git a/src/main/java/org/jglue/cdiunit/internal/WeldTestUrlDeployment.java b/src/main/java/org/jglue/cdiunit/internal/WeldTestUrlDeployment.java index 7ad57f7..a57329a 100644 --- a/src/main/java/org/jglue/cdiunit/internal/WeldTestUrlDeployment.java +++ b/src/main/java/org/jglue/cdiunit/internal/WeldTestUrlDeploym...
true
true
public WeldTestUrlDeployment(ResourceLoader resourceLoader, Bootstrap bootstrap, Class<?> testClass) throws IOException { super(bootstrap); populateCdiClasspathSet(); BeansXml beansXml; try { beansXml = new BeansXmlImpl(new ArrayList<Metadata<String>>(), new ArrayList<Metadata<String>>(), new ArrayLis...
public WeldTestUrlDeployment(ResourceLoader resourceLoader, Bootstrap bootstrap, Class<?> testClass) throws IOException { super(bootstrap); populateCdiClasspathSet(); BeansXml beansXml; try { beansXml = new BeansXmlImpl(new ArrayList<Metadata<String>>(), new ArrayList<Metadata<String>>(), new ArrayLis...
diff --git a/tests/de/unistuttgart/iste/se/adohive/controller/test/IFinancialCategoryManagerTest.java b/tests/de/unistuttgart/iste/se/adohive/controller/test/IFinancialCategoryManagerTest.java index b810e89b..1e05ace0 100644 --- a/tests/de/unistuttgart/iste/se/adohive/controller/test/IFinancialCategoryManagerTest.java ...
false
true
public void testFinancialCategorySpecials() throws AdoHiveException{ IFinancialCategoryManager instance = (IFinancialCategoryManager) getInstance(); IFinancialCategory i1 = newE(); IFinancialCategory i2 = newE(); i1.setCostUnits(new Integer[]{1}); i2.setCostUnits(new Integer[]{1}); instance.add(i1); inst...
public void testFinancialCategorySpecials() throws AdoHiveException{ IFinancialCategoryManager instance = (IFinancialCategoryManager) getInstance(); IFinancialCategory i1 = newE(); IFinancialCategory i2 = newE(); i1.setCostUnits(new Integer[]{1}); i1.setBudgetCosts(new Integer[]{1}); i2.setCo...