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/openelis/src/us/mn/state/health/lims/result/action/ResultsLogbookUpdateAction.java b/openelis/src/us/mn/state/health/lims/result/action/ResultsLogbookUpdateAction.java index ce6c4491..1cdf9c9a 100644 --- a/openelis/src/us/mn/state/health/lims/result/action/ResultsLogbookUpdateAction.java +++ b/openelis/src...
false
true
protected ActionForward performAction(ActionMapping mapping, ActionForm form, HttpServletRequest request, HttpServletResponse response) throws Exception { String forward = FWD_SUCCESS; String referer = request.getParameter("referer"); List<IResultUpdate> updaters = ResultUpdateR...
protected ActionForward performAction(ActionMapping mapping, ActionForm form, HttpServletRequest request, HttpServletResponse response) throws Exception { Transaction tx = HibernateUtil.getSession().beginTransaction(); String forward = FWD_SUCCESS; String referer = request.getPa...
diff --git a/src/java/org/onesocialweb/openfire/handler/activity/ActivityPublishHandler.java b/src/java/org/onesocialweb/openfire/handler/activity/ActivityPublishHandler.java index 12ad64e..307e0b2 100644 --- a/src/java/org/onesocialweb/openfire/handler/activity/ActivityPublishHandler.java +++ b/src/java/org/onesocialw...
true
true
public IQ handleIQ(IQ packet) throws UnauthorizedException { final JID sender = packet.getFrom(); final JID recipient = packet.getTo(); // Process the request inside a try/catch so that unhandled exceptions // (oufofbounds etc...) can trigger a server error and we can send a // error result packet try { ...
public IQ handleIQ(IQ packet) throws UnauthorizedException { final JID sender = packet.getFrom(); final JID recipient = packet.getTo(); // Process the request inside a try/catch so that unhandled exceptions // (oufofbounds etc...) can trigger a server error and we can send a // error result packet try { ...
diff --git a/syncronizer/src/org/sync/GitImporter.java b/syncronizer/src/org/sync/GitImporter.java index 74cac74..348c8c8 100644 --- a/syncronizer/src/org/sync/GitImporter.java +++ b/syncronizer/src/org/sync/GitImporter.java @@ -1,487 +1,487 @@ /*************************************************************************...
true
true
public void generateFastImportStream(View view, String folderPath, String domain) { // http://techpubs.borland.com/starteam/2009/en/sdk_documentation/api/com/starbase/starteam/CheckoutManager.html // said old version (passed in /opt/StarTeamCP_2005r2/lib/starteam80.jar) "Deprecated. Use View.createCheckoutManager(...
public void generateFastImportStream(View view, String folderPath, String domain) { // http://techpubs.borland.com/starteam/2009/en/sdk_documentation/api/com/starbase/starteam/CheckoutManager.html // said old version (passed in /opt/StarTeamCP_2005r2/lib/starteam80.jar) "Deprecated. Use View.createCheckoutManager(...
diff --git a/caintegrator2-war/src/gov/nih/nci/caintegrator2/web/action/query/form/AnnotationDefinitionList.java b/caintegrator2-war/src/gov/nih/nci/caintegrator2/web/action/query/form/AnnotationDefinitionList.java index 213cff451..e86adc202 100644 --- a/caintegrator2-war/src/gov/nih/nci/caintegrator2/web/action/query/...
true
true
AnnotationDefinitionList(Collection<AnnotationDefinition> definitions, boolean addIdentifierToList) { if (definitions == null) { throw new IllegalArgumentException("Argument definitions was null."); } if (addIdentifierToList) { names.add(IdentifierCriterionWrapper.IDE...
AnnotationDefinitionList(Collection<AnnotationDefinition> definitions, boolean addIdentifierToList) { if (definitions == null) { throw new IllegalArgumentException("Argument definitions was null."); } if (addIdentifierToList) { names.add(IdentifierCriterionWrapper.IDE...
diff --git a/ServerOfEbag/src/org/ebag/web/ProblemHelper.java b/ServerOfEbag/src/org/ebag/web/ProblemHelper.java index c262cc7..ab0080a 100644 --- a/ServerOfEbag/src/org/ebag/web/ProblemHelper.java +++ b/ServerOfEbag/src/org/ebag/web/ProblemHelper.java @@ -1,35 +1,35 @@ package org.ebag.web; import org.ebag.net.obj...
true
true
public static String getHtml(String pid,String type){ String res=""; try{ EproblemDAO epdao=new EproblemDAO(); Eproblem p=epdao.findById(Integer.parseInt(pid.trim())); if(I.url.analysis.equals(type)){ res=p.getAnalysis(); }else if(I.url.ans.equals(type)){ res=p.getAns(); }else if(I.url.aspect.equal...
public static String getHtml(String pid,String type){ String res=""; try{ EproblemDAO epdao=new EproblemDAO(); Eproblem p=epdao.findById(Integer.parseInt(pid.trim())); if(I.url.analysis.equals(type)){ res=p.getAnalysis(); }else if(I.url.ans.equals(type)){ res=p.getAns(); }else if(I.url.aspect.equal...
diff --git a/core/src/java/liquibase/migrator/parser/BaseChangeLogHandler.java b/core/src/java/liquibase/migrator/parser/BaseChangeLogHandler.java index 2765abe9..fdea7e79 100644 --- a/core/src/java/liquibase/migrator/parser/BaseChangeLogHandler.java +++ b/core/src/java/liquibase/migrator/parser/BaseChangeLogHandler.ja...
true
true
public void startElement(String uri, String localName, String qName, Attributes atts) throws SAXException { try { if ("comment".equals(qName)) { text = new StringBuffer(); } else if ("databaseChangeLog".equals(qName)) { changeLog = new DatabaseChangeLo...
public void startElement(String uri, String localName, String qName, Attributes atts) throws SAXException { try { if ("comment".equals(qName)) { text = new StringBuffer(); } else if ("databaseChangeLog".equals(qName)) { changeLog = new DatabaseChangeLo...
diff --git a/src/cz/quinix/condroid/ui/AboutDialog.java b/src/cz/quinix/condroid/ui/AboutDialog.java index f29af72..92e5c38 100644 --- a/src/cz/quinix/condroid/ui/AboutDialog.java +++ b/src/cz/quinix/condroid/ui/AboutDialog.java @@ -1,83 +1,83 @@ package cz.quinix.condroid.ui; import cz.quinix.condroid.R; import...
true
true
protected AboutDialog(Context context) { super(context); View v = LayoutInflater.from(context).inflate(R.layout.about_dialog, null); this.setTitle(R.string.appName); this.setView(v); this.setButton(BUTTON1, "OK", new OkListener()); this.setButton(BUTTON2, "Přispět", new DonateListener()); this.setButt...
protected AboutDialog(Context context) { super(context); View v = LayoutInflater.from(context).inflate(R.layout.about_dialog, null); this.setTitle(R.string.appNameAbout); this.setView(v); this.setButton(BUTTON1, "OK", new OkListener()); this.setButton(BUTTON2, "Přispět", new DonateListener()); this.se...
diff --git a/rvsn00p/src/rvsnoop/RvFieldTreeNode.java b/rvsn00p/src/rvsnoop/RvFieldTreeNode.java index 5ff2c7b..444371d 100644 --- a/rvsn00p/src/rvsnoop/RvFieldTreeNode.java +++ b/rvsn00p/src/rvsnoop/RvFieldTreeNode.java @@ -1,243 +1,243 @@ //:File: RvFieldTreeNode.java //:Created: Dec 12, 2005 //:Legal: Copyri...
true
true
static String getFieldDescription(TibrvMsgField field) { final short type = field.type; switch (type) { case TibrvMsg.ENCRYPTED: return FD_ENCRYPTED.format(new Object[] {field.name, new Integer(Array.getLength(field.data))}); case TibrvMsg.MSG: return FD_MSG.format(new ...
static String getFieldDescription(TibrvMsgField field) { final short type = field.type; switch (type) { case TibrvMsg.ENCRYPTED: return FD_ENCRYPTED.format(new Object[] {field.name, new Integer(Array.getLength(field.data))}); case TibrvMsg.MSG: return FD_MSG.format(new ...
diff --git a/sip-core/src/main/java/eu/delving/metadata/NodeMapping.java b/sip-core/src/main/java/eu/delving/metadata/NodeMapping.java index a2620cde..908be069 100644 --- a/sip-core/src/main/java/eu/delving/metadata/NodeMapping.java +++ b/sip-core/src/main/java/eu/delving/metadata/NodeMapping.java @@ -1,391 +1,387 @@ ...
false
true
private void toInnerLoop(Path path, Stack<String> groovyParams) { if (path.isEmpty()) throw new RuntimeException(); if (path.size() == 1) { if (dictionary != null) { codeOut.line("from%s(%s)", toDictionaryName(this), toLeafGroovyParam(path)); } els...
private void toInnerLoop(Path path, Stack<String> groovyParams) { if (path.isEmpty()) throw new RuntimeException(); if (path.size() == 1) { if (dictionary != null) { codeOut.line("from%s(%s)", toDictionaryName(this), toLeafGroovyParam(path)); } els...
diff --git a/src/org/fao/geonet/services/thumbnail/Set.java b/src/org/fao/geonet/services/thumbnail/Set.java index 0dcdb262c0..7170a3318b 100644 --- a/src/org/fao/geonet/services/thumbnail/Set.java +++ b/src/org/fao/geonet/services/thumbnail/Set.java @@ -1,299 +1,299 @@ //==============================================...
true
true
public Element exec(Element params, ServiceContext context) throws Exception { String id = Util.getParam (params, Params.ID); String type = Util.getParam (params, Params.TYPE); String version = Util.getParam(params, Params.VERSION); String file = Util.getParam (...
public Element exec(Element params, ServiceContext context) throws Exception { String id = Util.getParam (params, Params.ID); String type = Util.getParam (params, Params.TYPE); String version = Util.getParam (params, Params.VERSION); String file = Util.getParam ...
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 7794f561d..b91d69efb 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); saveUserWorkspac...
public void unsubscribe(UserWorkspace workspace, Study study) { for (StudySubscription subscription : workspace.getSubscriptionCollection()) { if (subscription.getStudy().equals(study)) { workspace.getSubscriptionCollection().remove(subscription); if (workspace.ge...
diff --git a/src/main/java/org/atlasapi/media/util/Descriptions.java b/src/main/java/org/atlasapi/media/util/Descriptions.java index dbd664fb..4f63cc86 100644 --- a/src/main/java/org/atlasapi/media/util/Descriptions.java +++ b/src/main/java/org/atlasapi/media/util/Descriptions.java @@ -1,68 +1,68 @@ package org.atlasa...
true
true
public Iterable<Description> apply(Playlist from) { Builder<Description> flattened = ImmutableList.builder(); flattened.add(from); if (from.getItems() != null && ! from.getItems().isEmpty()) { flattened.addAll(from.getItems()); } ...
public Iterable<Description> apply(Playlist from) { Builder<Description> flattened = ImmutableList.builder(); flattened.add(from); if (from.getContent() != null && ! from.getContent().isEmpty()) { flattened.addAll(from.getContent()); }...
diff --git a/liquibase-core/src/main/java/liquibase/sqlgenerator/core/RenameTableGenerator.java b/liquibase-core/src/main/java/liquibase/sqlgenerator/core/RenameTableGenerator.java index c22035e2..c8f6216f 100644 --- a/liquibase-core/src/main/java/liquibase/sqlgenerator/core/RenameTableGenerator.java +++ b/liquibase-co...
false
true
public Sql[] generateSql(RenameTableStatement statement, Database database, SqlGeneratorChain sqlGeneratorChain) { String sql; if (database instanceof MSSQLDatabase) { sql = "exec sp_rename '" + database.escapeTableName(statement.getSchemaName(), statement.getOldTableName()) + "', '" + s...
public Sql[] generateSql(RenameTableStatement statement, Database database, SqlGeneratorChain sqlGeneratorChain) { String sql; if (database instanceof MSSQLDatabase) { sql = "exec sp_rename '" + database.escapeTableName(statement.getSchemaName(), statement.getOldTableName()) + "', '" + s...
diff --git a/bundles/org.eclipse.equinox.p2.engine/src/org/eclipse/equinox/p2/engine/ProvisioningContext.java b/bundles/org.eclipse.equinox.p2.engine/src/org/eclipse/equinox/p2/engine/ProvisioningContext.java index a5b94f15e..cd5f918bd 100644 --- a/bundles/org.eclipse.equinox.p2.engine/src/org/eclipse/equinox/p2/engine...
false
true
private void loadMetadataRepository(IMetadataRepositoryManager manager, URI location, HashMap<String, IMetadataRepository> repos, boolean followMetadataRepoReferences, IProgressMonitor monitor) { // if we've already processed this repo, don't do it again. This keeps us from getting // caught up in circular refere...
private void loadMetadataRepository(IMetadataRepositoryManager manager, URI location, HashMap<String, IMetadataRepository> repos, boolean followMetadataRepoReferences, IProgressMonitor monitor) { // if we've already processed this repo, don't do it again. This keeps us from getting // caught up in circular refere...
diff --git a/src/java/org/apache/commons/jxpath/JXPathException.java b/src/java/org/apache/commons/jxpath/JXPathException.java index d752b6d..9e45e04 100644 --- a/src/java/org/apache/commons/jxpath/JXPathException.java +++ b/src/java/org/apache/commons/jxpath/JXPathException.java @@ -1,118 +1,118 @@ /* * Licensed to...
true
true
public String getMessage() { String message = super.getMessage(); if (exception == null) { return message; } StringBuffer buf = new StringBuffer(); if (message == null) { buf.append(message).append("; "); } String eMsg = exception.getMe...
public String getMessage() { String message = super.getMessage(); if (exception == null) { return message; } StringBuffer buf = new StringBuffer(); if (message != null) { buf.append(message).append("; "); } String eMsg = exception.getMe...
diff --git a/src/com/fsck/k9/controller/MessagingController.java b/src/com/fsck/k9/controller/MessagingController.java index 68776ae0..6860e188 100644 --- a/src/com/fsck/k9/controller/MessagingController.java +++ b/src/com/fsck/k9/controller/MessagingController.java @@ -1,5361 +1,5361 @@ package com.fsck.k9.controll...
false
true
private int downloadMessages(final Account account, final Folder remoteFolder, final LocalFolder localFolder, List<Message> inputMessages, boolean flagSyncOnly) throws MessagingException { final Date earliestDate = account.getEarliestPollDate(); if (earliestDate ...
private int downloadMessages(final Account account, final Folder remoteFolder, final LocalFolder localFolder, List<Message> inputMessages, boolean flagSyncOnly) throws MessagingException { final Date earliestDate = account.getEarliestPollDate(); if (earliestDate ...
diff --git a/jlv-eclipse-plugin/jlv-plugin/src/com/rdiachenko/jlv/model/LogField.java b/jlv-eclipse-plugin/jlv-plugin/src/com/rdiachenko/jlv/model/LogField.java index 8847f35..165286a 100644 --- a/jlv-eclipse-plugin/jlv-plugin/src/com/rdiachenko/jlv/model/LogField.java +++ b/jlv-eclipse-plugin/jlv-plugin/src/com/rdiach...
true
true
public String getValue(Log log) { String value = ""; switch (this) { case LEVEL: value = log.getLevel(); break; case CATEGORY: value = log.getCategoryName(); break; case MESSAGE: value = log.getMessage(); ...
public String getValue(Log log) { String value = ""; switch (this) { case LEVEL: value = log.getLevel(); break; case CATEGORY: value = log.getCategoryName(); break; case MESSAGE: value = log.getMessage(); ...
diff --git a/target_explorer/plugins/org.eclipse.tcf.te.ui.views/src/org/eclipse/tcf/te/ui/views/handler/ContentMRUContribution.java b/target_explorer/plugins/org.eclipse.tcf.te.ui.views/src/org/eclipse/tcf/te/ui/views/handler/ContentMRUContribution.java index 3ce54a9b0..f44552d42 100644 --- a/target_explorer/plugins/o...
true
true
protected IContributionItem[] getContributionItems() { CommonNavigator navigator = (CommonNavigator) ViewsUtil.getPart(IUIConstants.ID_EXPLORER); if (navigator == null) return new IContributionItem[0]; INavigatorContentService contentService = navigator.getNavigatorContentService(); List<IContributionItem> it...
protected IContributionItem[] getContributionItems() { CommonNavigator navigator = (CommonNavigator) ViewsUtil.getPart(IUIConstants.ID_EXPLORER); if (navigator == null) return new IContributionItem[0]; INavigatorContentService contentService = navigator.getNavigatorContentService(); List<IContributionItem> it...
diff --git a/src/main/java/de/cismet/tools/gui/downloadmanager/AbstractDownload.java b/src/main/java/de/cismet/tools/gui/downloadmanager/AbstractDownload.java index 1a4932d..05fa80f 100644 --- a/src/main/java/de/cismet/tools/gui/downloadmanager/AbstractDownload.java +++ b/src/main/java/de/cismet/tools/gui/downloadmanag...
true
true
protected void determineDestinationFile(final String filename, final String extension) { final File directoryToSaveTo; if ((directory != null) && (directory.trim().length() > 0)) { directoryToSaveTo = new File(DownloadManager.instance().getDestinationDirectory(), directory); ...
protected void determineDestinationFile(final String filename, final String extension) { final File directoryToSaveTo; if ((directory != null) && (directory.trim().length() > 0)) { directoryToSaveTo = new File(DownloadManager.instance().getDestinationDirectory(), directory); ...
diff --git a/geoserver/wms/src/main/java/org/geoserver/wms/kvp/LayersKvpParser.java b/geoserver/wms/src/main/java/org/geoserver/wms/kvp/LayersKvpParser.java index 43e5c290b5..adde57595a 100644 --- a/geoserver/wms/src/main/java/org/geoserver/wms/kvp/LayersKvpParser.java +++ b/geoserver/wms/src/main/java/org/geoserver/wm...
false
true
protected Object parse(List values) throws Exception { MapLayerInfo[] layers; List layerNames = values; List realLayerNames = new ArrayList(); String layerName = null; int l_counter = 0; //// // Expand the eventually WMS grouped layers into the same WMS Pa...
protected Object parse(List values) throws Exception { MapLayerInfo[] layers; List layerNames = values; List realLayerNames = new ArrayList(); String layerName = null; int l_counter = 0; //// // Expand the eventually WMS grouped layers into the same WMS Pa...
diff --git a/src/mulan/transformations/RemoveAllLabels.java b/src/mulan/transformations/RemoveAllLabels.java index faa8801..f142d5c 100644 --- a/src/mulan/transformations/RemoveAllLabels.java +++ b/src/mulan/transformations/RemoveAllLabels.java @@ -1,79 +1,77 @@ /* * This program is free software; you can redistr...
false
true
public static Instance transformInstance(Instance instance, int[] labelIndices) { double[] oldValues = instance.toDoubleArray(); double[] newValues = new double[oldValues.length - labelIndices.length]; int counter1 = 0; int counter2 = 0; for (int i = 0; i < oldValues.length; ...
public static Instance transformInstance(Instance instance, int[] labelIndices) { double[] oldValues = instance.toDoubleArray(); double[] newValues = new double[oldValues.length - labelIndices.length]; int counter1 = 0; int counter2 = 0; for (int i = 0; i < oldValues.length; ...
diff --git a/src/test/hdfs/org/apache/hadoop/fs/TestHDFSFileContextMainOperations.java b/src/test/hdfs/org/apache/hadoop/fs/TestHDFSFileContextMainOperations.java index e5281c3efe..ddedc61768 100644 --- a/src/test/hdfs/org/apache/hadoop/fs/TestHDFSFileContextMainOperations.java +++ b/src/test/hdfs/org/apache/hadoop/fs/...
true
true
public static void clusterSetupAtBegining() throws IOException, LoginException { cluster = new MiniDFSCluster(new Configuration(), 2, true, null); fc = FileContext.getFileContext(cluster.getFileSystem()); defaultWorkingDirectory = fc.makeQualified( new Path("/user/" + ...
public static void clusterSetupAtBegining() throws IOException, LoginException { cluster = new MiniDFSCluster(new Configuration(), 2, true, null); fc = FileContext.getFileContext(cluster.getFileSystem()); defaultWorkingDirectory = fc.makeQualified( new Path("/user/" + ...
diff --git a/Essentials/src/com/earth2me/essentials/Essentials.java b/Essentials/src/com/earth2me/essentials/Essentials.java index 1d40f44d..7531c03f 100644 --- a/Essentials/src/com/earth2me/essentials/Essentials.java +++ b/Essentials/src/com/earth2me/essentials/Essentials.java @@ -1,747 +1,747 @@ /* * Essentials - ...
true
true
public boolean onCommandEssentials(CommandSender sender, Command command, String commandLabel, String[] args, ClassLoader classLoader, String commandPath) { if ("msg".equals(commandLabel.toLowerCase()) || "r".equals(commandLabel.toLowerCase()) || "mail".equals(commandLabel.toLowerCase()) && sender instanceof CraftP...
public boolean onCommandEssentials(CommandSender sender, Command command, String commandLabel, String[] args, ClassLoader classLoader, String commandPath) { if (("msg".equals(commandLabel.toLowerCase()) || "r".equals(commandLabel.toLowerCase()) || "mail".equals(commandLabel.toLowerCase())) && sender instanceof Play...
diff --git a/src/com/vloxlands/game/world/Island.java b/src/com/vloxlands/game/world/Island.java index 116dc0f..85bbc8a 100644 --- a/src/com/vloxlands/game/world/Island.java +++ b/src/com/vloxlands/game/world/Island.java @@ -1,199 +1,199 @@ package com.vloxlands.game.world; import static org.lwjgl.opengl.GL11.glTra...
true
true
public void grassify() { for (int i = 0; i < Island.MAXSIZE; i++) { for (int j = 0; j < Island.MAXSIZE; j++) { for (int k = 0; k < Island.MAXSIZE; k++) { if (getVoxelId(i, j, k) == Voxel.DIRT.getId()) { if (getVoxelId(i, j - 1, k) == Voxel.AIR.getId()) { setVoxel(i, j, k...
public void grassify() { for (int i = 0; i < Island.MAXSIZE; i++) { for (int j = 0; j < Island.MAXSIZE; j++) { for (int k = 0; k < Island.MAXSIZE; k++) { if (getVoxelId(i, j, k) == Voxel.DIRT.getId()) { if (getVoxelId(i, j + 1, k) == Voxel.AIR.getId()) { setVoxel(i, j, k...
diff --git a/src/main/java/com/github/kpacha/jkata/tennis/Tennis.java b/src/main/java/com/github/kpacha/jkata/tennis/Tennis.java index 518323e..44933f5 100644 --- a/src/main/java/com/github/kpacha/jkata/tennis/Tennis.java +++ b/src/main/java/com/github/kpacha/jkata/tennis/Tennis.java @@ -1,29 +1,30 @@ package com.gith...
true
true
public String getScore() { if (isDeuce()) return "Deuce"; if (playerOneScored == 4 && playerTwoScored == 3) return "Advantage Player 1"; if (playerOneScored == 4) return "Player 1 wins"; return (15 * playerOneScored) + " - " + (15 * playerTwoScored); }
public String getScore() { if (isDeuce()) return "Deuce"; if (playerOneScored == 4 && playerTwoScored == 3 || playerOneScored == 5 && playerTwoScored == 4) return "Advantage Player 1"; if (playerOneScored == 4) return "Player 1 wins"; return (15 * playerOneScored) + " - " + (15 * playerTwoScore...
diff --git a/kernel/src/main/java/com/qspin/qtaste/addon/ConfigurationTree.java b/kernel/src/main/java/com/qspin/qtaste/addon/ConfigurationTree.java index 26e0e2f7..1509bd94 100644 --- a/kernel/src/main/java/com/qspin/qtaste/addon/ConfigurationTree.java +++ b/kernel/src/main/java/com/qspin/qtaste/addon/ConfigurationTre...
true
true
public ConfigurationTree(DefaultMutableTreeNode pRootNode, final JPanel pConfigurationPane) { super(pRootNode); mModel = (DefaultTreeModel)getModel(); mRoot = (DefaultMutableTreeNode) mModel.getRoot(); setRootVisible(true); getSelectionModel().addTreeSelectionListener(new TreeSelectionListener() { @Overr...
public ConfigurationTree(DefaultMutableTreeNode pRootNode, final JPanel pConfigurationPane) { super(pRootNode); mModel = (DefaultTreeModel)getModel(); mRoot = (DefaultMutableTreeNode) mModel.getRoot(); setRootVisible(true); getSelectionModel().addTreeSelectionListener(new TreeSelectionListener() { @Overr...
diff --git a/gerrit-server/src/main/java/com/google/gerrit/server/change/PatchSetInserter.java b/gerrit-server/src/main/java/com/google/gerrit/server/change/PatchSetInserter.java index f0458a682..7156cc658 100644 --- a/gerrit-server/src/main/java/com/google/gerrit/server/change/PatchSetInserter.java +++ b/gerrit-server...
true
true
public Change insert() throws InvalidChangeOperationException, OrmException, IOException { init(); validate(); Change updatedChange; RefUpdate ru = git.updateRef(patchSet.getRefName()); ru.setExpectedOldObjectId(ObjectId.zeroId()); ru.setNewObjectId(commit); ru.disableRefLog(); ...
public Change insert() throws InvalidChangeOperationException, OrmException, IOException { init(); validate(); Change updatedChange; RefUpdate ru = git.updateRef(patchSet.getRefName()); ru.setExpectedOldObjectId(ObjectId.zeroId()); ru.setNewObjectId(commit); ru.disableRefLog(); ...
diff --git a/src/turtle/behavior/turtle/Goalkeeper.java b/src/turtle/behavior/turtle/Goalkeeper.java index e779175..e246d30 100644 --- a/src/turtle/behavior/turtle/Goalkeeper.java +++ b/src/turtle/behavior/turtle/Goalkeeper.java @@ -1,72 +1,72 @@ /* * This file is part of the Turtle project * * (c) 2011 Julien B...
true
true
public void apply(Vector2D vector, long elapsedTime) { double width = mField.getDimension().getWidth(); double height = mField.getDimension().getHeight(); double maxDistance = width * 0.15; Ball ball = mField.getBall(); Point2D turtlePosition = mTurtle.getPosition(); ...
public void apply(Vector2D vector, long elapsedTime) { double width = mField.getDimension().getWidth(); double height = mField.getDimension().getHeight(); double maxDistance = width * 0.15; Ball ball = mField.getBall(); Point2D turtlePosition = mTurtle.getPosition(); ...
diff --git a/JAVA/psd/src/ch/epfl/bbcf/psd/Main.java b/JAVA/psd/src/ch/epfl/bbcf/psd/Main.java index 3a70e1e..5b3c2c3 100644 --- a/JAVA/psd/src/ch/epfl/bbcf/psd/Main.java +++ b/JAVA/psd/src/ch/epfl/bbcf/psd/Main.java @@ -1,167 +1,169 @@ package ch.epfl.bbcf.psd; import java.io.File; import java.sql.Connection; im...
true
true
public static void main (String[] args) { if(args.length < 3){ logger = initLogger("psd", Level.ERROR); logger.error("no enought args"); usage(); } else { File database = new File(args[0]); String sha1 = args[1]; String outputDir = args[2]; if (args.length == 4){ loglevel = Level.toLevel...
public static void main (String[] args) { if(args.length < 3){ logger = initLogger("psd", Level.ERROR); logger.error("no enought args"); usage(); } else { File database = new File(args[0]); String sha1 = args[1]; String outputDir = args[2]; if (args.length == 4){ loglevel = Level.toLevel...
diff --git a/src/main/java/org/spiffyui/mvsb/samples/client/LocalSuggestBox.java b/src/main/java/org/spiffyui/mvsb/samples/client/LocalSuggestBox.java index 704b296..917b812 100644 --- a/src/main/java/org/spiffyui/mvsb/samples/client/LocalSuggestBox.java +++ b/src/main/java/org/spiffyui/mvsb/samples/client/LocalSuggest...
true
true
protected void queryOptions(String query, int from, int to, RESTObjectCallBack<OptionResultSet> callback) { /* * We are just going to hard-code 10 shapes, * if the query is included */ OptionResultSet options = new OptionResultSet(BASIC_COLORS.size()); // this size isn...
protected void queryOptions(String query, int from, int to, RESTObjectCallBack<OptionResultSet> callback) { OptionResultSet options = new OptionResultSet(BASIC_COLORS.size()); // this size isn't correct int totalSize = 0; for (String color : BASIC_COLORS) { if (color.toLowerC...
diff --git a/org.eclipse.egit.ui/src/org/eclipse/egit/ui/internal/SecureStoreUtils.java b/org.eclipse.egit.ui/src/org/eclipse/egit/ui/internal/SecureStoreUtils.java index 9717d166..5580bf2f 100644 --- a/org.eclipse.egit.ui/src/org/eclipse/egit/ui/internal/SecureStoreUtils.java +++ b/org.eclipse.egit.ui/src/org/eclipse/...
true
true
public static boolean storeCredentials(UserPasswordCredentials credentials, URIish uri) { if (credentials != null) { try { org.eclipse.egit.core.Activator.getDefault().getSecureStore() .putCredentials(uri, credentials); } catch (StorageException e) { Activator.handleError( UIText.SecureS...
public static boolean storeCredentials(UserPasswordCredentials credentials, URIish uri) { if (credentials != null && uri != null) { try { org.eclipse.egit.core.Activator.getDefault().getSecureStore() .putCredentials(uri, credentials); } catch (StorageException e) { Activator.handleError( ...
diff --git a/h2/src/main/org/h2/util/HashBase.java b/h2/src/main/org/h2/util/HashBase.java index 2fab26a64..5a89b70c6 100644 --- a/h2/src/main/org/h2/util/HashBase.java +++ b/h2/src/main/org/h2/util/HashBase.java @@ -1,119 +1,123 @@ /* * Copyright 2004-2014 H2 Group. Multiple-Licensed under the MPL 2.0, * and the ...
true
true
protected void reset(int newLevel) { minSize = size * 3 / 4; size = 0; level = newLevel; len = 2 << level; mask = len - 1; maxSize = (int) (len * MAX_LOAD / 100L); deletedCount = 0; maxDeleted = 20 + len / 2; }
protected void reset(int newLevel) { // can't exceed 30 or we will generate a negative value for the "len" field if (newLevel > 30) { newLevel = 30; } minSize = size * 3 / 4; size = 0; level = newLevel; len = 2 << level; mask = len - 1; ...
diff --git a/tests/src/com/android/email/UtilityMediumTests.java b/tests/src/com/android/email/UtilityMediumTests.java index 0c33391d..9b95fddc 100644 --- a/tests/src/com/android/email/UtilityMediumTests.java +++ b/tests/src/com/android/email/UtilityMediumTests.java @@ -1,275 +1,275 @@ /* * Copyright (C) 2010 The An...
true
true
public void testBuildMailboxIdSelection() { // Create dummy data... Context c = mMockContext; Account account1 = ProviderTestUtils.setupAccount("1", true, mMockContext); Account account2 = ProviderTestUtils.setupAccount("X1", true, mMockContext); Mailbox box1in = ProviderTes...
public void testBuildMailboxIdSelection() { // Create dummy data... Context c = mMockContext; Account account1 = ProviderTestUtils.setupAccount("1", true, mMockContext); Account account2 = ProviderTestUtils.setupAccount("X1", true, mMockContext); Mailbox box1in = ProviderTes...
diff --git a/adore-djatoka-1.1-corisco-1/src/java/gov/lanl/adore/djatoka/openurl/OpenURLJP2KMetadata.java b/adore-djatoka-1.1-corisco-1/src/java/gov/lanl/adore/djatoka/openurl/OpenURLJP2KMetadata.java index 0238295..fa72113 100644 --- a/adore-djatoka-1.1-corisco-1/src/java/gov/lanl/adore/djatoka/openurl/OpenURLJP2KMeta...
false
true
public OpenURLResponse resolve(ServiceType serviceType, ContextObject contextObject, OpenURLRequest openURLRequest, OpenURLRequestProcessor processor) { String responseFormat = RESPONSE_TYPE; int status = HttpServletResponse.SC_OK; ByteArrayOutputStream baos = new B...
public OpenURLResponse resolve(ServiceType serviceType, ContextObject contextObject, OpenURLRequest openURLRequest, OpenURLRequestProcessor processor) { String responseFormat = RESPONSE_TYPE; int status = HttpServletResponse.SC_OK; ByteArrayOutputStream baos = new B...
diff --git a/src/campyre/java/Room.java b/src/campyre/java/Room.java index 2488433..e10d9d6 100644 --- a/src/campyre/java/Room.java +++ b/src/campyre/java/Room.java @@ -1,125 +1,125 @@ package campyre.java; import java.io.InputStream; import java.util.ArrayList; import java.util.Collections; import java.io.Unsup...
true
true
public Message speak(String body) throws CampfireException { String type = (body.contains("\n")) ? "PasteMessage" : "TextMessage"; String url = Campfire.speakPath(id); try { body = new String(body.getBytes("UTF-8"), "ISO-8859-1"); String request = new JSONObject().put("message", new JSONObject().put("type"...
public Message speak(String body) throws CampfireException { String type = (body.contains("\n")) ? "PasteMessage" : "TextMessage"; String url = Campfire.speakPath(id); try { body = new String(body.getBytes("UTF-8"), "ISO-8859-1"); String request = new JSONObject().put("message", new JSONObject().put("type"...
diff --git a/jsf/tests/org.jboss.tools.jsf.vpe.jsf.test/src/org/jboss/tools/jsf/vpe/jsf/test/jbide/JBIDE2219Test.java b/jsf/tests/org.jboss.tools.jsf.vpe.jsf.test/src/org/jboss/tools/jsf/vpe/jsf/test/jbide/JBIDE2219Test.java index d7b490880..6967a889d 100644 --- a/jsf/tests/org.jboss.tools.jsf.vpe.jsf.test/src/org/jbos...
false
true
public void testJBIDE2219() throws Throwable { // wait TestUtil.waitForJobs(); // set exception setException(null); // Tests CA // get test page path IFile file = (IFile) TestUtil.getComponentPath("JBIDE/2219/testJBIDE2219.xhtml", //$NON-NLS-1$ JsfAllTests.IMPORT_PROJECT_NAME); assertNotNull("Could...
public void testJBIDE2219() throws Throwable { // wait TestUtil.waitForJobs(); // set exception setException(null); // Tests CA // get test page path IFile file = (IFile) TestUtil.getComponentPath("JBIDE/2219/testJBIDE2219.xhtml", //$NON-NLS-1$ JsfAllTests.IMPORT_PROJECT_NAME); assertNotNull("Could...
diff --git a/components/slim-plotter/src/loci/slim/fit/GACurveFitter.java b/components/slim-plotter/src/loci/slim/fit/GACurveFitter.java index 36a6ab5dc..dd1851597 100644 --- a/components/slim-plotter/src/loci/slim/fit/GACurveFitter.java +++ b/components/slim-plotter/src/loci/slim/fit/GACurveFitter.java @@ -1,520 +1,52...
true
true
public void estimate() { /* System.out.println("****** DATA ******"); for (int i = 0; i < curveData.length; i++) { System.out.println("i: " + i + " data: " + curveData[i]); } */ //try { Thread.sleep(1000); } catch(Exception e) {} if (components >= 1) { // TODO: Estimate c, fac...
public void estimate() { /* System.out.println("****** DATA ******"); for (int i = 0; i < curveData.length; i++) { System.out.println("i: " + i + " data: " + curveData[i]); } */ //try { Thread.sleep(1000); } catch(Exception e) {} if (components >= 1) { // TODO: Estimate c, fac...
diff --git a/core/src/main/java/hudson/tasks/Ant.java b/core/src/main/java/hudson/tasks/Ant.java index 1a513ce66..6f87f467f 100644 --- a/core/src/main/java/hudson/tasks/Ant.java +++ b/core/src/main/java/hudson/tasks/Ant.java @@ -1,318 +1,319 @@ package hudson.tasks; import hudson.CopyOnWrite; import hudson.Launche...
false
true
public boolean perform(AbstractBuild<?,?> build, Launcher launcher, BuildListener listener) throws InterruptedException, IOException { AbstractProject proj = build.getProject(); ArgumentListBuilder args = new ArgumentListBuilder(); String execName; if(launcher.isUnix()) ...
public boolean perform(AbstractBuild<?,?> build, Launcher launcher, BuildListener listener) throws InterruptedException, IOException { AbstractProject proj = build.getProject(); ArgumentListBuilder args = new ArgumentListBuilder(); String execName; if(launcher.isUnix()) ...
diff --git a/luni/src/test/java/tests/api/java/util/CurrencyTest.java b/luni/src/test/java/tests/api/java/util/CurrencyTest.java index b7a5648d7..14068a3e2 100644 --- a/luni/src/test/java/tests/api/java/util/CurrencyTest.java +++ b/luni/src/test/java/tests/api/java/util/CurrencyTest.java @@ -1,469 +1,469 @@ /* * Li...
true
true
public void test_getSymbolLjava_util_Locale() { //Tests was simplified because java specification not // includes strong requirements for returnig symbol. // on android platform used wrong character for yen // sign: \u00a5 instead of \uffe5 Locale[] loc1 = new Locale[]{ ...
public void test_getSymbolLjava_util_Locale() { //Tests was simplified because java specification not // includes strong requirements for returnig symbol. // on android platform used wrong character for yen // sign: \u00a5 instead of \uffe5 Locale[] loc1 = new Locale[]{ ...
diff --git a/org.openscada.ae.server.exporter.net/src/org/openscada/ae/server/exporter/net/Activator.java b/org.openscada.ae.server.exporter.net/src/org/openscada/ae/server/exporter/net/Activator.java index ce14c1486..896daf27b 100644 --- a/org.openscada.ae.server.exporter.net/src/org/openscada/ae/server/exporter/net/A...
true
true
protected void startExporter ( final ServiceReference serviceReference ) { if ( this.currentServiceReference != null || serviceReference == null ) { return; } final Object o = this.context.getService ( serviceReference ); if ( o instanceof Service ) {...
protected void startExporter ( final ServiceReference serviceReference ) { if ( this.currentServiceReference != null || serviceReference == null ) { return; } final Object o = this.context.getService ( serviceReference ); if ( o instanceof Service ) {...
diff --git a/bundles/org.eclipse.team.cvs.ui/src/org/eclipse/team/internal/ccvs/ui/CVSDecoration.java b/bundles/org.eclipse.team.cvs.ui/src/org/eclipse/team/internal/ccvs/ui/CVSDecoration.java index 8c749070b..293af6f99 100644 --- a/bundles/org.eclipse.team.cvs.ui/src/org/eclipse/team/internal/ccvs/ui/CVSDecoration.jav...
true
true
private void computeText() { Map bindings = new HashMap(); if (isDirty()) { bindings.put(CVSDecoratorConfiguration.DIRTY_FLAG, preferences.getString(ICVSUIConstants.PREF_DIRTY_FLAG)); } if (isAdded()) { bindings.put(CVSDecoratorConfiguration.ADDED_FLAG, preferences.getString(ICVSUIConstants.PREF_ADDED_FL...
private void computeText() { if (isIgnored()) return; Map bindings = new HashMap(); if (isDirty()) { bindings.put(CVSDecoratorConfiguration.DIRTY_FLAG, preferences.getString(ICVSUIConstants.PREF_DIRTY_FLAG)); } if (isAdded()) { bindings.put(CVSDecoratorConfiguration.ADDED_FLAG, preferences.getString...
diff --git a/components/bio-formats/src/loci/formats/in/LeicaHandler.java b/components/bio-formats/src/loci/formats/in/LeicaHandler.java index e10cdd678..1c7c81190 100644 --- a/components/bio-formats/src/loci/formats/in/LeicaHandler.java +++ b/components/bio-formats/src/loci/formats/in/LeicaHandler.java @@ -1,601 +1,60...
true
true
public void startElement(String uri, String localName, String qName, Attributes attributes) { if (qName.equals("Element")) { if (!attributes.getValue("Name").equals("DCROISet") && !firstElement) { series = attributes.getValue("Name"); containerNames.add(series); if (fullSeries ...
public void startElement(String uri, String localName, String qName, Attributes attributes) { if (qName.equals("Element")) { if (!attributes.getValue("Name").equals("DCROISet") && !firstElement) { series = attributes.getValue("Name"); containerNames.add(series); if (fullSeries ...
diff --git a/src/game/entity/Entity.java b/src/game/entity/Entity.java index 5d68b93..5b92595 100644 --- a/src/game/entity/Entity.java +++ b/src/game/entity/Entity.java @@ -1,65 +1,68 @@ package game.entity; import java.awt.Rectangle; import engine.WMath; import engine.render.Renderable; import game.WormsGame;...
true
true
public void doMovement() { if(xMotion != 0 || yMotion != 0) { setRenderUpdate(true); x += xMotion; y -= yMotion; while(wormsGame.collides(this, 0, 1)) { --y; --yMotion; } if(fallDuration > 0) fallDistance += WMath.abs_f(yMotion); xMotion = yMotion = 0; } }
public void doMovement() { if(xMotion != 0 || yMotion != 0) { setRenderUpdate(true); x += xMotion; y -= yMotion; while(wormsGame.collides(this, 0, 1)) { --y; if(yMotion < 0) ++yMotion; else --yMotion; } if(fallDuration > 0) fallDistance += WMath.abs_f(yMotion); xMotion ...
diff --git a/src/Extensions/org/objectweb/proactive/extensions/vfsprovider/FileSystemServerDeployer.java b/src/Extensions/org/objectweb/proactive/extensions/vfsprovider/FileSystemServerDeployer.java index bc89ce02a..88ac1008a 100644 --- a/src/Extensions/org/objectweb/proactive/extensions/vfsprovider/FileSystemServerDep...
true
true
public FileSystemServerDeployer(String name, String rootPath, boolean autoclosing, boolean rebind) throws IOException { fileSystemServer = new FileSystemServerImpl(rootPath); try { roe = PARemoteObject.newRemoteObject(FileSystemServer.class.getName(), this.fileSystemServer); ...
public FileSystemServerDeployer(String name, String rootPath, boolean autoclosing, boolean rebind) throws IOException { fileSystemServer = new FileSystemServerImpl(rootPath); try { roe = PARemoteObject.newRemoteObject(FileSystemServer.class.getName(), this.fileSystemServer); ...
diff --git a/src/main/java/com/nesscomputing/tracking/TrackingToken.java b/src/main/java/com/nesscomputing/tracking/TrackingToken.java index b547179..23afc38 100644 --- a/src/main/java/com/nesscomputing/tracking/TrackingToken.java +++ b/src/main/java/com/nesscomputing/tracking/TrackingToken.java @@ -1,63 +1,65 @@ /** ...
true
true
public void event(final ScopeEvent event) { switch (event) { case ENTER: if (value != null) { MDC.put(MDC_TRACKING_KEY, value); } break; case LEAVE: MDC.remove(MDC_TRACKING_KEY); b...
public void event(final ScopeEvent event) { switch (event) { case ENTER: if (value != null) { MDC.put(MDC_TRACKING_KEY, value); } break; case LEAVE: MDC.remove(MDC_TRACKING_KEY); b...
diff --git a/src/soda/SodaSuiteParser.java b/src/soda/SodaSuiteParser.java index 5457e00..1beda82 100644 --- a/src/soda/SodaSuiteParser.java +++ b/src/soda/SodaSuiteParser.java @@ -1,97 +1,102 @@ /* Copyright 2011 Trampus Richmond. All rights reserved. Redistribution and use in source and binary forms, with or wit...
true
true
private void parse(NodeList nodes) { int len = nodes.getLength() -1; for (int i = 0; i <= len; i++) { String name = nodes.item(i).getNodeName(); if (name.contains("#text")) { continue; } NamedNodeMap attrs = nodes.item(i).getAttributes(); int atts_len = attrs.getLength() -1; for (int x...
private void parse(NodeList nodes) { int len = nodes.getLength() -1; for (int i = 0; i <= len; i++) { String name = nodes.item(i).getNodeName(); if (name.contains("#text")) { continue; } NamedNodeMap attrs = nodes.item(i).getAttributes(); int atts_len = attrs.getLength() -1; for (int x...
diff --git a/software/src/propinquity/hardware/HardwareDebugger.java b/software/src/propinquity/hardware/HardwareDebugger.java index 790e997..5ac233e 100644 --- a/software/src/propinquity/hardware/HardwareDebugger.java +++ b/software/src/propinquity/hardware/HardwareDebugger.java @@ -1,250 +1,251 @@ package propinquit...
false
true
public void setup() { size(1024, 800); controlP5 = new ControlP5(this); prox_sliders = new Slider[NUM_PATCHES]; x_sliders = new Slider[NUM_PATCHES]; y_sliders = new Slider[NUM_PATCHES]; z_sliders = new Slider[NUM_PATCHES]; controlP5.addButton("Re-Scan", 1, 10, 10, 50, 25); for(int i = 0;i < NUM_PAT...
public void setup() { size(1024, 800); controlP5 = new ControlP5(this); prox_sliders = new Slider[NUM_PATCHES]; x_sliders = new Slider[NUM_PATCHES]; y_sliders = new Slider[NUM_PATCHES]; z_sliders = new Slider[NUM_PATCHES]; controlP5.addButton("Re-Scan", 1, 10, 10, 50, 25); for(int i = 0;i < NUM_PAT...
diff --git a/software/SIW/src/java/gov/nih/nci/ncicb/cadsr/loader/persister/PersisterUtil.java b/software/SIW/src/java/gov/nih/nci/ncicb/cadsr/loader/persister/PersisterUtil.java index 79c3dc5c..3a9db5b2 100644 --- a/software/SIW/src/java/gov/nih/nci/ncicb/cadsr/loader/persister/PersisterUtil.java +++ b/software/SIW/sr...
false
true
void addAlternateDefinition(AdminComponent ac, String newDef, String type) { Definition queryDef = DomainObjectFactory.newDefinition(); queryDef.setDefinition(newDef); queryDef.setType(type); Definition foundDef = adminComponentDAO.getDefinition(ac, queryDef); // for now, only classify with one...
void addAlternateDefinition(AdminComponent ac, String newDef, String type) { Definition queryDef = DomainObjectFactory.newDefinition(); queryDef.setDefinition(newDef); queryDef.setType(type); Definition foundDef = adminComponentDAO.getDefinition(ac, queryDef); // for now, only classify with one...
diff --git a/protostuff-parser/src/main/java/com/dyuproject/protostuff/parser/Message.java b/protostuff-parser/src/main/java/com/dyuproject/protostuff/parser/Message.java index 5ba2643..6a1c1c9 100644 --- a/protostuff-parser/src/main/java/com/dyuproject/protostuff/parser/Message.java +++ b/protostuff-parser/src/main/ja...
true
true
void resolveReferences(Message root) { Proto p = getProto(); for(Field<?> f : fields.values()) { if(!root.repeatedFieldPresent && f.isRepeated()) root.repeatedFieldPresent = true; if(!requiredFieldPresent && f.isRequired()) ...
void resolveReferences(Message root) { Proto p = getProto(); for(Field<?> f : fields.values()) { if(!root.repeatedFieldPresent && f.isRepeated()) root.repeatedFieldPresent = true; if(!root.requiredFieldPresent && f.isRequired()) ...
diff --git a/frost-wot/source/frost/fcp/fcp07/persistence/FcpPersistentPut.java b/frost-wot/source/frost/fcp/fcp07/persistence/FcpPersistentPut.java index 35596913..9de93d9f 100644 --- a/frost-wot/source/frost/fcp/fcp07/persistence/FcpPersistentPut.java +++ b/frost-wot/source/frost/fcp/fcp07/persistence/FcpPersistentPu...
true
true
public FcpPersistentPut(NodeMessage msg, String id) { super(msg, id); // PersistentPut message filename = msg.getStringValue("Filename"); uri = msg.getStringValue("URI"); fileSize = msg.getLongValue("DataLength"); String isDirectStr = msg.getStringValue("UploadFrom");...
public FcpPersistentPut(NodeMessage msg, String id) { super(msg, id); // PersistentPut message filename = msg.getStringValue("Filename"); uri = msg.getStringValue("URI"); fileSize = msg.getLongValue("DataLength"); String isDirectStr = msg.getStringValue("UploadFrom");...
diff --git a/occjava/src-java/org/jcae/opencascade/test/Dimensions.java b/occjava/src-java/org/jcae/opencascade/test/Dimensions.java index b9acf6d6..ba40b55a 100644 --- a/occjava/src-java/org/jcae/opencascade/test/Dimensions.java +++ b/occjava/src-java/org/jcae/opencascade/test/Dimensions.java @@ -1,44 +1,44 @@ packag...
true
true
public static void main(String[] args) { // Create a shape for the example (a torus) double[] axis=new double[]{ 0,0,0, // position 0,0,1}; // direction TopoDS_Shape torus=new BRepPrimAPI_MakeTorus(axis, 3, 1).shape(); // Compute the bounding box of the shape Bnd_Box bbox = new Bnd_Box(); BRep...
public static void main(String[] args) { // Create a shape for the example (a torus) double[] axis=new double[]{ 0,0,0, // position 0,0,1}; // direction TopoDS_Shape torus=new BRepPrimAPI_MakeTorus(axis, 3, 1).shape(); // Compute the bounding box of the shape Bnd_Box bbox = new Bnd_Box(); BRep...
diff --git a/src/com/mobsandgeeks/saripaar/AnnotationToRuleConverter.java b/src/com/mobsandgeeks/saripaar/AnnotationToRuleConverter.java index 8418ba1..92f68bd 100644 --- a/src/com/mobsandgeeks/saripaar/AnnotationToRuleConverter.java +++ b/src/com/mobsandgeeks/saripaar/AnnotationToRuleConverter.java @@ -1,269 +1,272 @@...
false
true
private static Rule<View> getNumberRule(Field field, View view, NumberRule numberRule) { if (!TextView.class.isAssignableFrom(view.getClass())) { Log.w(TAG, String.format(WARN_TEXT, field.getName(), NumberRule.class.getSimpleName())); return null; } else if (numberRule.type()...
private static Rule<View> getNumberRule(Field field, View view, NumberRule numberRule) { if (!TextView.class.isAssignableFrom(view.getClass())) { Log.w(TAG, String.format(WARN_TEXT, field.getName(), NumberRule.class.getSimpleName())); return null; } else if (numberRule.type()...
diff --git a/org.eclipse.jubula.client.core/src/org/eclipse/jubula/client/core/model/ResultTreeTracker.java b/org.eclipse.jubula.client.core/src/org/eclipse/jubula/client/core/model/ResultTreeTracker.java index 3635c485a..19b091cdb 100644 --- a/org.eclipse.jubula.client.core/src/org/eclipse/jubula/client/core/model/Res...
true
true
private void addParameters(ICapPO testStep, TestResultNode resultNode) { List<IParamDescriptionPO> parameterList = testStep.getParameterList(); String value = null; for (IParamDescriptionPO desc : parameterList) { ITDManager tdManager = null; try...
private void addParameters(ICapPO testStep, TestResultNode resultNode) { List<IParamDescriptionPO> parameterList = testStep.getParameterList(); String value = null; for (IParamDescriptionPO desc : parameterList) { ITDManager tdManager = null; try...
diff --git a/src/main/java/tconstruct/armor/ArmorProxyClient.java b/src/main/java/tconstruct/armor/ArmorProxyClient.java index f7f15e8fd..a333967af 100644 --- a/src/main/java/tconstruct/armor/ArmorProxyClient.java +++ b/src/main/java/tconstruct/armor/ArmorProxyClient.java @@ -1,489 +1,493 @@ package tconstruct.armor; ...
false
true
public void renderHealthbar (RenderGameOverlayEvent.Pre event) { if (!Loader.isModLoaded("tukmc_Vz"))// Loader check to avoid conflicting // with a GUI mod (thanks Vazkii!) { if (event.type == ElementType.HEALTH) { ...
public void renderHealthbar (RenderGameOverlayEvent.Pre event) { if (!Loader.isModLoaded("tukmc_Vz") || Loader.isModLoaded("borderlands"))// Loader check to avoid conflicting // with a GUI mod (thanks Vazkii!) { if (event.type == ElementTyp...
diff --git a/deployers-impl/src/main/org/jboss/deployers/plugins/main/MainDeployerImpl.java b/deployers-impl/src/main/org/jboss/deployers/plugins/main/MainDeployerImpl.java index 31b0a765..909b9826 100644 --- a/deployers-impl/src/main/org/jboss/deployers/plugins/main/MainDeployerImpl.java +++ b/deployers-impl/src/main/...
true
true
protected void addDeployment(Deployment deployment, boolean addToDeploy) throws DeploymentException { if (deployment == null) throw new DeploymentException("Null context"); lockRead(); try { if (shutdown.get()) throw new DeploymentException("The main deployer...
protected void addDeployment(Deployment deployment, boolean addToDeploy) throws DeploymentException { if (deployment == null) throw new DeploymentException("Null context"); lockRead(); try { if (shutdown.get()) throw new DeploymentException("The main deployer...
diff --git a/search/src/java/cz/incad/Kramerius/ViewInfoServlet.java b/search/src/java/cz/incad/Kramerius/ViewInfoServlet.java index ec2b4b1ba..8936eb847 100644 --- a/search/src/java/cz/incad/Kramerius/ViewInfoServlet.java +++ b/search/src/java/cz/incad/Kramerius/ViewInfoServlet.java @@ -1,238 +1,238 @@ package cz.inc...
true
true
protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { try { String uuid = req.getParameter(UUID_PARAMETER); String[] pathOfUUIDs = this.solrAccess.getPathOfUUIDs(uuid); User user = currentLoggedUserProvi...
protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { try { String uuid = req.getParameter(UUID_PARAMETER); String[] pathOfUUIDs = this.solrAccess.getPathOfUUIDs(uuid); User user = currentLoggedUserProvi...
diff --git a/htroot/BlacklistTest_p.java b/htroot/BlacklistTest_p.java index 3e6051be7..606e1ee41 100644 --- a/htroot/BlacklistTest_p.java +++ b/htroot/BlacklistTest_p.java @@ -1,83 +1,92 @@ // BlacklistTest_p.java // ----------------------- // part of YaCy // (C) by Michael Peter Christen; mc@yacy.net // first p...
false
true
public static serverObjects respond(final RequestHeader header, final serverObjects post, final serverSwitch env) { // initialize the list manager listManager.switchboard = (Switchboard) env; listManager.listsPath = new File(listManager.switchboard.getRootPath(),listManager.switchbo...
public static serverObjects respond(final RequestHeader header, final serverObjects post, final serverSwitch env) { // initialize the list manager listManager.switchboard = (Switchboard) env; listManager.listsPath = new File(listManager.switchboard.getRootPath(),listManager.switchbo...
diff --git a/org.emftext.sdk/src/org/emftext/sdk/codegen/OptionManager.java b/org.emftext.sdk/src/org/emftext/sdk/codegen/OptionManager.java index 7b6bfe310..42a682b3b 100644 --- a/org.emftext.sdk/src/org/emftext/sdk/codegen/OptionManager.java +++ b/org.emftext.sdk/src/org/emftext/sdk/codegen/OptionManager.java @@ -1,1...
true
true
private boolean getBooleanOptionsDefaultValue(OptionTypes option) { // Attention: Any changes made to this default values must be // documented in class OptionTypes! if (option == OptionTypes.GENERATE_TEST_ACTION) { return false; } if (option == OptionTypes.GENERATE_PRINTER_STUB_ONLY) { return false; ...
private boolean getBooleanOptionsDefaultValue(OptionTypes option) { // Attention: Any changes made to this default values must be // documented in class OptionTypes! if (option == OptionTypes.GENERATE_TEST_ACTION) { return false; } if (option == OptionTypes.OVERRIDE_REFERENCE_RESOLVERS) { return false;...
diff --git a/src/java-server-framework/org/xins/server/Function.java b/src/java-server-framework/org/xins/server/Function.java index a1085d035..00d6312e0 100644 --- a/src/java-server-framework/org/xins/server/Function.java +++ b/src/java-server-framework/org/xins/server/Function.java @@ -1,505 +1,505 @@ /* * $Id$ ...
true
true
final void performedCall(CallContext context, boolean success, String code) { long start = context.getStart(); long duration = System.currentTimeMillis() - start; boolean debugEnabled = context.isDebugEnabled(); String message = null; if (success) { if (debugEnabled) { ...
final void performedCall(CallContext context, boolean success, String code) { long start = context.getStart(); long duration = System.currentTimeMillis() - start; boolean debugEnabled = context.isDebugEnabled(); String message = null; if (success) { if (debugEnabled) { ...
diff --git a/src/mennov1/WebcamClient.java b/src/mennov1/WebcamClient.java index 5c76130..099e1c0 100644 --- a/src/mennov1/WebcamClient.java +++ b/src/mennov1/WebcamClient.java @@ -1,39 +1,40 @@ package mennov1; import static com.googlecode.javacv.cpp.opencv_highgui.cvSaveImage; import lib.SewerSender; import c...
true
true
public void run() { try { FrameGrabber grabber = new OpenCVFrameGrabber(0); grabber.start(); IplImage img; SewerSender.logMessage("Started webcam"); while (true) { img = grabber.grab(); if (img != null) { ...
public void run() { try { FrameGrabber grabber = new OpenCVFrameGrabber(0); grabber.start(); IplImage img; SewerSender.logMessage("Started webcam"); while (true) { img = grabber.grab(); if (img != null) { ...
diff --git a/src/java/com/frovi/ss/tests/testRecursive.java b/src/java/com/frovi/ss/tests/testRecursive.java index 796ae1305..4856088d0 100755 --- a/src/java/com/frovi/ss/tests/testRecursive.java +++ b/src/java/com/frovi/ss/tests/testRecursive.java @@ -1,68 +1,68 @@ /* =================================================...
true
true
public static void main(String[] args) throws ConstraintException, SystemException { List l = ContentVersionController.getContentVersionController().getContentVersionVOWithParentRecursive(new Integer(84),new Integer(0)); Iterator it = l.iterator(); ContentVO contentVO = null; ContentVersionVO contentVersion...
public static void main(String[] args) throws ConstraintException, SystemException { List l = ContentVersionController.getContentVersionController().getContentVersionVOWithParentRecursive(new Integer(84),new Integer(0), true); Iterator it = l.iterator(); ContentVO contentVO = null; ContentVersionVO contentV...
diff --git a/core/src/visad/trunk/Contour2D.java b/core/src/visad/trunk/Contour2D.java index 08242d15f..034932e0b 100644 --- a/core/src/visad/trunk/Contour2D.java +++ b/core/src/visad/trunk/Contour2D.java @@ -1,1231 +1,1231 @@ // // Contour2D.java // /* VisAD system for interactive analysis and visualization of ...
true
true
public static void contour( float g[], int nr, int nc, float[] values, float lowlimit, float highlimit, float base, boolean dash, float vx1[][], float vy1[][], int maxv1, int[] numv1, float vx2[][], float vy2[][], int maxv2, int[] numv2, ...
public static void contour( float g[], int nr, int nc, float[] values, float lowlimit, float highlimit, float base, boolean dash, float vx1[][], float vy1[][], int maxv1, int[] numv1, float vx2[][], float vy2[][], int maxv2, int[] numv2, ...
diff --git a/onebusaway-nyc-integration-tests/src/test/java/org/onebusaway/nyc/integration_tests/vehicle_tracking_webapp/AbstractTraceRunner.java b/onebusaway-nyc-integration-tests/src/test/java/org/onebusaway/nyc/integration_tests/vehicle_tracking_webapp/AbstractTraceRunner.java index a0325a69f..6742cf19a 100644 --- a...
true
true
private void theRealTest() throws Throwable { // expected results File trace = new File("src/integration-test/resources/traces/" + _trace); List<NycTestInferredLocationRecord> expectedResults = _traceSupport.readRecords(trace); // run to get inferred results String taskId = _traceSupport.uploadTr...
private void theRealTest() throws Throwable { // expected results File trace = new File("src/integration-test/resources/traces/" + _trace); List<NycTestInferredLocationRecord> expectedResults = _traceSupport.readRecords(trace); // run to get inferred results String taskId = _traceSupport.uploadTr...
diff --git a/kryonet/src/com/esotericsoftware/kryonet/Server.java b/kryonet/src/com/esotericsoftware/kryonet/Server.java index 25c807e..25f2f32 100644 --- a/kryonet/src/com/esotericsoftware/kryonet/Server.java +++ b/kryonet/src/com/esotericsoftware/kryonet/Server.java @@ -1,549 +1,555 @@ package com.esotericsoftware...
false
true
public void update (int timeout) throws IOException { updateThread = Thread.currentThread(); synchronized (updateLock) { // Blocks to avoid a select while the selector is used to bind the server connection. } long startTime = System.currentTimeMillis(); int select = 0; if (timeout > 0) { select = select...
public void update (int timeout) throws IOException { updateThread = Thread.currentThread(); synchronized (updateLock) { // Blocks to avoid a select while the selector is used to bind the server connection. } long startTime = System.currentTimeMillis(); int select = 0; if (timeout > 0) { select = select...
diff --git a/bundles/jcr/modeshape-server-it/src/test/java/com/sourcesense/stone/jcr/modeshape/server/JNDIRMITest.java b/bundles/jcr/modeshape-server-it/src/test/java/com/sourcesense/stone/jcr/modeshape/server/JNDIRMITest.java index 8aa676a..a99e75d 100644 --- a/bundles/jcr/modeshape-server-it/src/test/java/com/sources...
true
true
public void connectionRetrieved() throws Exception { RepositoryAccessor repositoryAccessor = new RepositoryAccessor(); Repository repository = repositoryAccessor.getRepositoryFromURL("jndi://modeshape:java.naming.factory.initial=org.modeshape.common.naming.DummyInitialContextFactory,java.naming.provider.url=loca...
public void connectionRetrieved() throws Exception { RepositoryAccessor repositoryAccessor = new RepositoryAccessor(); Repository repository = repositoryAccessor.getRepositoryFromURL("jndi://modeshape:java.naming.factory.initial=org.modeshape.common.naming.SingletonInitialContextFactory,java.naming.provider.url=...
diff --git a/core/plugins/org.eclipse.dltk.core/model/org/eclipse/dltk/core/DLTKLanguageManager.java b/core/plugins/org.eclipse.dltk.core/model/org/eclipse/dltk/core/DLTKLanguageManager.java index c36137235..783b2c4ca 100644 --- a/core/plugins/org.eclipse.dltk.core/model/org/eclipse/dltk/core/DLTKLanguageManager.java +...
true
true
private static IDLTKLanguageToolkit findAppropriateToolkitByObject( Object object) { final PriorityClassDLTKExtensionManager toolkitManager = InternalDLTKLanguageManager .getLanguageToolkitsManager(); final ElementInfo[] elementInfos = toolkitManager.getElementInfos(); for (int j = 0; j < elementInfos.len...
private static IDLTKLanguageToolkit findAppropriateToolkitByObject( Object object) { final PriorityClassDLTKExtensionManager toolkitManager = InternalDLTKLanguageManager .getLanguageToolkitsManager(); final ElementInfo[] elementInfos = toolkitManager.getElementInfos(); for (int j = 0; j < elementInfos.len...
diff --git a/sbia/ch14/src/test/java/com/manning/sbia/ch14/partition/PartitionSpringIntegrationStepTest.java b/sbia/ch14/src/test/java/com/manning/sbia/ch14/partition/PartitionSpringIntegrationStepTest.java index c1bf681..e13f42d 100644 --- a/sbia/ch14/src/test/java/com/manning/sbia/ch14/partition/PartitionSpringIntegr...
false
true
public void testMultithreadedStep() throws Exception { JobExecution partitionImportProductsJobExec = launcher.run( partitionImportProductsJob, new JobParametersBuilder() .toJobParameters() ); }
public void testMultithreadedStep() throws Exception { /*JobExecution partitionImportProductsJobExec = launcher.run( partitionImportProductsJob, new JobParametersBuilder() .toJobParameters() );*/ }
diff --git a/src/persistence/org/codehaus/groovy/grails/orm/hibernate/metaclass/ValidatePersistentMethod.java b/src/persistence/org/codehaus/groovy/grails/orm/hibernate/metaclass/ValidatePersistentMethod.java index 4bba2e802..4db6f5891 100644 --- a/src/persistence/org/codehaus/groovy/grails/orm/hibernate/metaclass/Vali...
true
true
protected Object doInvokeInternal(Object target, Object[] arguments) { Errors errors = new BindException(target, target.getClass().getName()); GrailsDomainClass domainClass = application.getGrailsDomainClass( target.getClass().getName() ); Validator validator = null; if(domainClass != null) validator = a...
protected Object doInvokeInternal(Object target, Object[] arguments) { Errors errors = new BindException(target, target.getClass().getName()); GrailsDomainClass domainClass = application.getGrailsDomainClass( target.getClass().getName() ); Validator validator = null; if(domainClass != null) validator = a...
diff --git a/src/test/java/org/nuxeo/ecm/diff/TestXMLUnit.java b/src/test/java/org/nuxeo/ecm/diff/TestXMLUnit.java index 8d3f695..7d98a33 100644 --- a/src/test/java/org/nuxeo/ecm/diff/TestXMLUnit.java +++ b/src/test/java/org/nuxeo/ecm/diff/TestXMLUnit.java @@ -1,277 +1,281 @@ /* * (C) Copyright 2012 Nuxeo SA (http:/...
true
true
public void testCompareUnmatchedNodes() throws Exception { String myControlXML = "<document><item>First item</item>" + "<item>Second item</item></document>"; String myTestXML = "<document><item>First item</item></document>"; assertXMLNotEqual("Test XML has a missing child nod...
public void testCompareUnmatchedNodes() throws Exception { String myControlXML = "<document><item>First item</item>" + "<item>Second item</item></document>"; String myTestXML = "<document><item>First item</item></document>"; assertXMLNotEqual("Test XML has a missing child nod...
diff --git a/src/main/java/com/googlecode/mgwt/linker/client/cache/html5/Html5ApplicationCache.java b/src/main/java/com/googlecode/mgwt/linker/client/cache/html5/Html5ApplicationCache.java index d16bc86a..188c2237 100644 --- a/src/main/java/com/googlecode/mgwt/linker/client/cache/html5/Html5ApplicationCache.java +++ b/...
false
true
protected native void initialize() /*-{ var that = this; var check = $entry(function() { that.@com.googlecode.mgwt.linker.client.cache.html5.Html5ApplicationCache::onChecking()(); }); $wnd.applicationCache.addEventListener("checking", check); var onError = $entry(function() { that.@com.googlecode.mg...
protected native void initialize() /*-{ var that = this; var check = $entry(function() { that.@com.googlecode.mgwt.linker.client.cache.html5.Html5ApplicationCache::onChecking()(); }); $wnd.applicationCache.addEventListener("checking", check); var onError = $entry(function() { that.@com.googlecode.mg...
diff --git a/freeplane_plugin_workspace/src/org/freeplane/plugin/workspace/dnd/DefaultWorkspaceDropTargetDispatcher.java b/freeplane_plugin_workspace/src/org/freeplane/plugin/workspace/dnd/DefaultWorkspaceDropTargetDispatcher.java index 6b33b4e93..32c4fc984 100644 --- a/freeplane_plugin_workspace/src/org/freeplane/plug...
true
true
private IDropAcceptor getDropAcceptor(final DropTargetDropEvent event) { AWorkspaceTreeNode targetNode = (AWorkspaceTreeNode) WorkspaceController.getController().getWorkspaceViewTree() .getPathForLocation(event.getLocation().x, event.getLocation().y).getLastPathComponent(); while(targetNode != null && targetNo...
private IDropAcceptor getDropAcceptor(final DropTargetDropEvent event) { AWorkspaceTreeNode targetNode = (AWorkspaceTreeNode) WorkspaceController.getController().getWorkspaceViewTree() .getPathForLocation(event.getLocation().x, event.getLocation().y).getLastPathComponent(); while(targetNode != null) { if(ta...
diff --git a/bundles/org.eclipse.team.core/src/org/eclipse/team/internal/core/importing/BundleImporterExtension.java b/bundles/org.eclipse.team.core/src/org/eclipse/team/internal/core/importing/BundleImporterExtension.java index f0201a961..fba820315 100644 --- a/bundles/org.eclipse.team.core/src/org/eclipse/team/intern...
false
true
private synchronized IBundleImporterDelegate getDelegate() throws CoreException { if (delegate == null) { delegate = new BundleImporterDelegate() { private Set supportedValues; private RepositoryProviderType providerType; protected Set getSupportedValues() { if (supportedValues == null) { ...
private synchronized IBundleImporterDelegate getDelegate() throws CoreException { if (delegate == null) { delegate = new BundleImporterDelegate() { private Set supportedValues; private RepositoryProviderType providerType; protected Set getSupportedValues() { if (supportedValues == null) { ...
diff --git a/target_explorer/plugins/org.eclipse.tcf.te.tcf.processes.core/src/org/eclipse/tcf/te/tcf/processes/core/model/runtime/services/RuntimeModelRefreshService.java b/target_explorer/plugins/org.eclipse.tcf.te.tcf.processes.core/src/org/eclipse/tcf/te/tcf/processes/core/model/runtime/services/RuntimeModelRefresh...
true
true
public void refresh(final IModelNode node, final ICallback callback) { Assert.isTrue(Protocol.isDispatchThread(), "Illegal Thread Access"); //$NON-NLS-1$ Assert.isNotNull(node); // Get the parent model final IRuntimeModel model = getModel(); Assert.isNotNull(model); // If the model is already disposed, dr...
public void refresh(final IModelNode node, final ICallback callback) { Assert.isTrue(Protocol.isDispatchThread(), "Illegal Thread Access"); //$NON-NLS-1$ Assert.isNotNull(node); // Get the parent model final IRuntimeModel model = getModel(); Assert.isNotNull(model); // If the model is already disposed, dr...
diff --git a/src/org/hackystat/projectbrowser/authentication/SigninPage.java b/src/org/hackystat/projectbrowser/authentication/SigninPage.java index b3c5fb3..bf4d7cd 100644 --- a/src/org/hackystat/projectbrowser/authentication/SigninPage.java +++ b/src/org/hackystat/projectbrowser/authentication/SigninPage.java @@ -1,8...
true
true
private List<String> getServiceInfo() { List<String> serviceInfo = new ArrayList<String>(); StringBuffer available = new StringBuffer(20); StringBuffer notAvailable = new StringBuffer(20); available.append("Available services: "); notAvailable.append("Unavailable services: "); ProjectBrow...
private List<String> getServiceInfo() { List<String> serviceInfo = new ArrayList<String>(); StringBuffer available = new StringBuffer(20); StringBuffer notAvailable = new StringBuffer(22); available.append("Available services: "); notAvailable.append("Unavailable services: "); ProjectBrow...
diff --git a/src/autosaveworld/threads/purge/WGpurge.java b/src/autosaveworld/threads/purge/WGpurge.java index 53374ed..1718c64 100644 --- a/src/autosaveworld/threads/purge/WGpurge.java +++ b/src/autosaveworld/threads/purge/WGpurge.java @@ -1,127 +1,127 @@ package autosaveworld.threads.purge; import java.util.Array...
true
true
private void WGPurgeTask(long awaytime, final boolean regenrg) { WorldGuardPlugin wg = (WorldGuardPlugin) plugin.getServer() .getPluginManager().getPlugin("WorldGuard"); plugin.debug("WG purge started"); //get all active players HashSet<String> onlineplncs = new HashSet<String>(); for (Player pln...
private void WGPurgeTask(long awaytime, final boolean regenrg) { WorldGuardPlugin wg = (WorldGuardPlugin) plugin.getServer() .getPluginManager().getPlugin("WorldGuard"); plugin.debug("WG purge started"); //get all active players HashSet<String> onlineplncs = new HashSet<String>(); for (Player pln...
diff --git a/src/com/google/caliper/CaliperRc.java b/src/com/google/caliper/CaliperRc.java index d376431..963df15 100644 --- a/src/com/google/caliper/CaliperRc.java +++ b/src/com/google/caliper/CaliperRc.java @@ -1,53 +1,56 @@ /* * Copyright (C) 2010 Google Inc. * * Licensed under the Apache License, Version 2.0...
true
true
private CaliperRc() { try { File dotCaliperRc = new File(System.getProperty("user.home"), ".caliperrc"); if (dotCaliperRc.exists()) { properties.load(new FileInputStream(dotCaliperRc)); } else { // create it with a template } } catch (IOException e) { throw new Ru...
private CaliperRc() { try { String caliperRcEnvVar = System.getenv("CALIPERRC"); File caliperRcFile = (caliperRcEnvVar == null) ? new File(System.getProperty("user.home"), ".caliperrc") : new File(caliperRcEnvVar); if (caliperRcFile.exists()) { properties.load(new Fil...
diff --git a/org.eclipse.help.webapp/src/org/eclipse/help/internal/webapp/data/RequestScope.java b/org.eclipse.help.webapp/src/org/eclipse/help/internal/webapp/data/RequestScope.java index 3da9952fa..ecf1ae146 100644 --- a/org.eclipse.help.webapp/src/org/eclipse/help/internal/webapp/data/RequestScope.java +++ b/org.ecl...
true
true
public static AbstractHelpScope[] getActiveScopes(HttpServletRequest req, HttpServletResponse resp, boolean isSearchFilter) { AbstractHelpScope[] scopeArray; String scopeString; List scopes = new ArrayList(); if (!HelpSystem.isShared()) { scopes.add(new FilterScope()); // Workbench is always filtered }...
public static AbstractHelpScope[] getActiveScopes(HttpServletRequest req, HttpServletResponse resp, boolean isSearchFilter) { AbstractHelpScope[] scopeArray; String scopeString; List scopes = new ArrayList(); if (!HelpSystem.isShared()) { scopes.add(new FilterScope()); // Workbench is always filtered }...
diff --git a/portalobjects/binding/src/main/java/org/gatein/management/portalobjects/binding/impl/site/PortalDataMarshaller.java b/portalobjects/binding/src/main/java/org/gatein/management/portalobjects/binding/impl/site/PortalDataMarshaller.java index 1e31451..4ff14a9 100644 --- a/portalobjects/binding/src/main/java/o...
true
true
private PortalData unmarshalPortalData(StaxReader reader) throws XMLStreamException { String portalName = null; String locale = null; List<String> accessPermissions = Collections.emptyList(); String editPermission = null; String skin = null; Map<String,String> properties = null...
private PortalData unmarshalPortalData(StaxReader reader) throws XMLStreamException { String portalName = null; String locale = null; List<String> accessPermissions = Collections.emptyList(); String editPermission = null; String skin = null; Map<String,String> properties = Coll...
diff --git a/src/main/java/de/cismet/belis/server/search/BelisSearchStatement.java b/src/main/java/de/cismet/belis/server/search/BelisSearchStatement.java index d00f5ca..58431d9 100644 --- a/src/main/java/de/cismet/belis/server/search/BelisSearchStatement.java +++ b/src/main/java/de/cismet/belis/server/search/BelisSear...
false
true
public Collection<MetaObjectNode> performServerSearch() { try { if (!standort && !leuchte && !schaltstelle && !mauerlasche && !leitung && !abzweigdose) { return new ArrayList<MetaObjectNode>(); } final ArrayList<String> union = new ArrayList<String>(); ...
public Collection<MetaObjectNode> performServerSearch() { try { if (!standort && !leuchte && !schaltstelle && !mauerlasche && !leitung && !abzweigdose) { return new ArrayList<MetaObjectNode>(); } final ArrayList<String> union = new ArrayList<String>(); ...
diff --git a/core/src/java/liquibase/database/MySQLDatabase.java b/core/src/java/liquibase/database/MySQLDatabase.java index f236c663..fdc2568a 100644 --- a/core/src/java/liquibase/database/MySQLDatabase.java +++ b/core/src/java/liquibase/database/MySQLDatabase.java @@ -1,143 +1,143 @@ package liquibase.database; i...
false
true
public String escapeColumnNameList(String columnNames) { StringBuffer sb = new StringBuffer(); for(String columnName : columnNames.split(", ")) { if(sb.length() > 0) { sb.append(", "); } sb.append("`").append(columnName).append("`"); } ...
public String escapeColumnNameList(String columnNames) { StringBuffer sb = new StringBuffer(); for(String columnName : columnNames.split(",")) { if(sb.length() > 0) { sb.append(", "); } sb.append("`").append(columnName.trim()).append("`"); ...
diff --git a/src/edu/nccu/floodfire/controller/QueryTweetScheduleController.java b/src/edu/nccu/floodfire/controller/QueryTweetScheduleController.java index 98c0493..91cc3d5 100644 --- a/src/edu/nccu/floodfire/controller/QueryTweetScheduleController.java +++ b/src/edu/nccu/floodfire/controller/QueryTweetScheduleControl...
false
true
public ModelAndView handleRequest(HttpServletRequest req, HttpServletResponse res) throws Exception { req.setCharacterEncoding("UTF-8"); ApplicationContext applicationContext =WebApplicationContextUtils.getWebApplicationContext(req.getSession().getServletContext()); ManagementService managementService = (Ma...
public ModelAndView handleRequest(HttpServletRequest req, HttpServletResponse res) throws Exception { req.setCharacterEncoding("UTF-8"); ApplicationContext applicationContext =WebApplicationContextUtils.getWebApplicationContext(req.getSession().getServletContext()); ManagementService managementService = (Ma...
diff --git a/javasrc/src/org/ccnx/ccn/profiles/VersioningProfile.java b/javasrc/src/org/ccnx/ccn/profiles/VersioningProfile.java index 3a1cbc012..a8dda3f84 100644 --- a/javasrc/src/org/ccnx/ccn/profiles/VersioningProfile.java +++ b/javasrc/src/org/ccnx/ccn/profiles/VersioningProfile.java @@ -1,572 +1,576 @@ package or...
false
true
public static ContentObject getFirstBlockOfLatestVersion(ContentName startingVersion, Long startingSegmentNumber, PublisherPublicKeyDigest publisher, long timeout, ContentVerifier verifier, CCNHandle library) throws IOException { ...
public static ContentObject getFirstBlockOfLatestVersion(ContentName startingVersion, Long startingSegmentNumber, PublisherPublicKeyDigest publisher, long timeout, ContentVerifier verifier, CCNHandle library) throws IOException { ...
diff --git a/src/chalmers/TDA367/B17/view/Scoreboard.java b/src/chalmers/TDA367/B17/view/Scoreboard.java index ee43ecd..8cd9f7b 100644 --- a/src/chalmers/TDA367/B17/view/Scoreboard.java +++ b/src/chalmers/TDA367/B17/view/Scoreboard.java @@ -1,57 +1,57 @@ package chalmers.TDA367.B17.view; import org.newdawn.slick.Co...
true
true
public void render(Graphics g){ g.setLineWidth(15); g.setColor(new Color(100, 100, 100, 255)); int tmpYOffset = 10; g.fillRect(position.x, position.y, width, height); g.setColor(Color.black); g.drawRect(position.x, position.y, width, height); g.setLineWidth(1); g.setFont(scoreboardFont); for(Playe...
public void render(Graphics g){ g.setLineWidth(15); g.setColor(new Color(100, 100, 100, 255)); int tmpYOffset = 10; g.fillRect(position.x, position.y, width, height); g.setColor(Color.black); g.drawRect(position.x, position.y, width, height); g.setLineWidth(1); g.setFont(scoreboardFont); for(Playe...
diff --git a/src/main/java/org/zeroturnaround/jenkins/LiveRebelDeployPublisher.java b/src/main/java/org/zeroturnaround/jenkins/LiveRebelDeployPublisher.java index c26093c..280f0b0 100644 --- a/src/main/java/org/zeroturnaround/jenkins/LiveRebelDeployPublisher.java +++ b/src/main/java/org/zeroturnaround/jenkins/LiveRebel...
true
true
public FormValidation doTestConnection(@QueryParameter("authToken") final String authToken, @QueryParameter("lrUrl") final String lrUrl) throws IOException, ServletException { try { new CommandCenterFactory().setUrl(lrUrl).setVerbose(false).authenticate(authToken).newCommandCenter(); return FormValidation....
public FormValidation doTestConnection(@QueryParameter("authToken") final String authToken, @QueryParameter("lrUrl") final String lrUrl) throws IOException, ServletException { try { new CommandCenterFactory().setUrl(lrUrl).setVerbose(false).authenticate(authToken).newCommandCenter(); return FormValidation....
diff --git a/src/org/linphone/InCallActivity.java b/src/org/linphone/InCallActivity.java index b509dcb..f5f7f8c 100644 --- a/src/org/linphone/InCallActivity.java +++ b/src/org/linphone/InCallActivity.java @@ -1,1412 +1,1412 @@ package org.linphone; /* InCallActivity.java Copyright (C) 2012 Belledonne Communication...
false
true
private void initUI() { inflater = LayoutInflater.from(this); container = (ViewGroup) findViewById(R.id.topLayout); callsList = (TableLayout) findViewById(R.id.calls); if (!showCallListInVideo) { callsList.setVisibility(View.GONE); } video = (TextView) findViewById(R.id....
private void initUI() { inflater = LayoutInflater.from(this); container = (ViewGroup) findViewById(R.id.topLayout); callsList = (TableLayout) findViewById(R.id.calls); if (!showCallListInVideo) { callsList.setVisibility(View.GONE); } video = (TextView) findViewById(R.id....
diff --git a/src/com/android/phone/BluetoothAtPhonebook.java b/src/com/android/phone/BluetoothAtPhonebook.java index 55072ed0..5bac1228 100644 --- a/src/com/android/phone/BluetoothAtPhonebook.java +++ b/src/com/android/phone/BluetoothAtPhonebook.java @@ -1,419 +1,420 @@ /* * Copyright (C) 2008 The Android Open Sourc...
true
true
public void register(AtParser parser) { // Select Character Set // Always send UTF-8, but pretend to support IRA and GSM for compatability // TODO: Implement IRA and GSM encoding instead of faking it parser.register("+CSCS", new AtCommandHandler() { @Override ...
public void register(AtParser parser) { // Select Character Set // Always send UTF-8, but pretend to support IRA and GSM for compatability // TODO: Implement IRA and GSM encoding instead of faking it parser.register("+CSCS", new AtCommandHandler() { @Override ...
diff --git a/src/simpleserver/thread/AutoFreeSpaceChecker.java b/src/simpleserver/thread/AutoFreeSpaceChecker.java index 99e3f10..8cbbf95 100644 --- a/src/simpleserver/thread/AutoFreeSpaceChecker.java +++ b/src/simpleserver/thread/AutoFreeSpaceChecker.java @@ -1,112 +1,112 @@ /* * Copyright (c) 2010 SimpleServer aut...
true
true
public void check(boolean beforeBackup) { try { long neededSizeKb = 0; if (beforeBackup) { neededSizeKb += Math.round(FileUtils.sizeOfDirectory(server.getWorldDirectory()) / 1024) * 2; } else { neededSizeKb = 50 * 1024; } long freeSpaceKb = FileSystemUtils.freeSpaceK...
public void check(boolean beforeBackup) { try { long neededSizeKb = 0; if (beforeBackup) { neededSizeKb += Math.round(FileUtils.sizeOfDirectory(server.getWorldDirectory()) / 1024) * 2; } else { neededSizeKb = 50 * 1024; } long freeSpaceKb = FileSystemUtils.freeSpaceK...
diff --git a/openid-connect-client/src/main/java/org/mitre/openid/connect/client/AbstractOIDCAuthenticationFilter.java b/openid-connect-client/src/main/java/org/mitre/openid/connect/client/AbstractOIDCAuthenticationFilter.java index 998b0391..8c2a22fe 100644 --- a/openid-connect-client/src/main/java/org/mitre/openid/co...
true
true
protected Authentication handleAuthorizationGrantResponse(String authorizationCode, HttpServletRequest request, OIDCServerConfiguration serverConfig) { final boolean debug = logger.isDebugEnabled(); HttpSession session = request.getSession(); // check for state String storedState = getStoredState(session)...
protected Authentication handleAuthorizationGrantResponse(String authorizationCode, HttpServletRequest request, OIDCServerConfiguration serverConfig) { final boolean debug = logger.isDebugEnabled(); HttpSession session = request.getSession(); // check for state String storedState = getStoredState(session)...
diff --git a/SeriesGuide/src/com/battlelancer/seriesguide/ui/TraktSyncActivity.java b/SeriesGuide/src/com/battlelancer/seriesguide/ui/TraktSyncActivity.java index ae06b7d08..0aea0645e 100644 --- a/SeriesGuide/src/com/battlelancer/seriesguide/ui/TraktSyncActivity.java +++ b/SeriesGuide/src/com/battlelancer/seriesguide/u...
false
true
protected Dialog onCreateDialog(int id) { switch (id) { case DIALOG_SELECT_SHOWS: AlertDialog.Builder builder = new AlertDialog.Builder(this); builder.setTitle(R.string.trakt_synctotrakt); final Cursor shows = getContentResolver().query(Shows.CONTE...
protected Dialog onCreateDialog(int id) { switch (id) { case DIALOG_SELECT_SHOWS: AlertDialog.Builder builder = new AlertDialog.Builder(this); builder.setTitle(R.string.trakt_upload); final Cursor shows = getContentResolver().query(Shows.CONTENT_UR...
diff --git a/java/modules/extensions/src/org/apache/synapse/mediators/spring/SpringMediator.java b/java/modules/extensions/src/org/apache/synapse/mediators/spring/SpringMediator.java index 2b8b4eece..3e0296d32 100644 --- a/java/modules/extensions/src/org/apache/synapse/mediators/spring/SpringMediator.java +++ b/java/mo...
true
true
public boolean mediate(MessageContext synCtx) { Property dp = synCtx.getConfiguration().getPropertyObject(configKey); // if the configKey refers to a dynamic property if (dp != null) { if (!dp.isCached() || dp.isExpired()) { buildAppContext(synCtx); ...
public boolean mediate(MessageContext synCtx) { Property dp = synCtx.getConfiguration().getPropertyObject(configKey); // if the configKey refers to a dynamic property if (dp != null && dp.getType() == Property.DYNAMIC_TYPE) { if (!dp.isCached() || dp.isExpired()) { ...
diff --git a/src/de/ueller/gps/nmea/NmeaMessage.java b/src/de/ueller/gps/nmea/NmeaMessage.java index c6c38c11..a2e2f50e 100644 --- a/src/de/ueller/gps/nmea/NmeaMessage.java +++ b/src/de/ueller/gps/nmea/NmeaMessage.java @@ -1,300 +1,299 @@ package de.ueller.gps.nmea; /* * GpsMid - Copyright (c) 2007 Harald Mueller j...
true
true
public void decodeMessage(String nmea_sentence) { Vector param = StringTokenizer.getVector(nmea_sentence, spChar); String sentence=(String)param.elementAt(0); try { // receiver.receiveMessage("got "+buffer.toString() ); if (lastMsgGSV && ! "GSV".equals(sentence)){ receiver.receiveState...
public void decodeMessage(String nmea_sentence) { Vector param = StringTokenizer.getVector(nmea_sentence, spChar); String sentence=(String)param.elementAt(0); try { // receiver.receiveMessage("got "+buffer.toString() ); if (lastMsgGSV && ! "GSV".equals(sentence)){ receiver.receiveState...
diff --git a/src/main/java/org/spiffyui/spiffyforms/server/User.java b/src/main/java/org/spiffyui/spiffyforms/server/User.java index fc1a782..e211aa6 100644 --- a/src/main/java/org/spiffyui/spiffyforms/server/User.java +++ b/src/main/java/org/spiffyui/spiffyforms/server/User.java @@ -1,235 +1,235 @@ /*****************...
true
true
public String getUserInfo() { MultivaluedMap<String, String> params = uriInfo.getPathParameters(); String userid = params.getFirst("arg1"); if (userid == null){ throw new WebApplicationException(400); } JSONObject user = findUserInArray(userid); if (user == null) { try { JSONObjec...
public Response getUserInfo() { MultivaluedMap<String, String> params = uriInfo.getPathParameters(); String userid = params.getFirst("arg1"); if (userid == null){ throw new WebApplicationException(400); } JSONObject user = findUserInArray(userid); if (user == null) { try { JSONObj...
diff --git a/src/main/java/info/somethingodd/OddItem/OddItemCommandExecutor.java b/src/main/java/info/somethingodd/OddItem/OddItemCommandExecutor.java index 5f1661a..0fbb3fd 100644 --- a/src/main/java/info/somethingodd/OddItem/OddItemCommandExecutor.java +++ b/src/main/java/info/somethingodd/OddItem/OddItemCommandExecu...
true
true
public boolean onCommand(CommandSender sender, Command command, String label, String[] args) { if (command.getName().equals("odditem")) { if (sender.hasPermission("odditem.alias")) { switch (args.length) { case 0: if (sender instanceof ...
public boolean onCommand(CommandSender sender, Command command, String label, String[] args) { if (command.getName().equals("odditem")) { if (sender.hasPermission("odditem.alias")) { switch (args.length) { case 0: if (sender instanceof ...
diff --git a/src/edu/sc/seis/sod/tools/TimeParser.java b/src/edu/sc/seis/sod/tools/TimeParser.java index 4f95090d9..b3a2e3b3a 100644 --- a/src/edu/sc/seis/sod/tools/TimeParser.java +++ b/src/edu/sc/seis/sod/tools/TimeParser.java @@ -1,86 +1,92 @@ package edu.sc.seis.sod.tools; import java.text.DateFormat; import j...
true
true
public Object parse(String arg) throws ParseException { if(arg.equals("now")) { return "<now/>"; } else if(arg.equals(PREVIOUS_DAY_BEGIN)) { arg = PREVIOUS_DAY; } Matcher m = datePattern.matcher(arg); if(!m.matches()) { throw new ParseExcep...
public Object parse(String arg) throws ParseException { if(arg.equals("now")) { return "<now/>"; } else if(arg.equals(PREVIOUS_DAY_BEGIN)) { arg = PREVIOUS_DAY; }else if(arg.equals("network")){ if(ceiling){ return "<networkEndTime/>"; ...
diff --git a/src/main/java/org/atlasapi/query/v2/BaseController.java b/src/main/java/org/atlasapi/query/v2/BaseController.java index d0bfa5b57..e9ea77a71 100644 --- a/src/main/java/org/atlasapi/query/v2/BaseController.java +++ b/src/main/java/org/atlasapi/query/v2/BaseController.java @@ -1,84 +1,84 @@ package org.atla...
true
true
protected Set<Publisher> publishers(String publisherString, ApplicationConfiguration config) { Set<Publisher> appPublishers = ImmutableSet.copyOf(config.orderdPublishers()); if (Strings.isNullOrEmpty(publisherString)) { return appPublishers; } ImmutableSet.Builde...
protected Set<Publisher> publishers(String publisherString, ApplicationConfiguration config) { Set<Publisher> appPublishers = ImmutableSet.copyOf(config.getEnabledSources()); if (Strings.isNullOrEmpty(publisherString)) { return appPublishers; } ImmutableSet.Build...
diff --git a/src/test/java/org/weymouth/demo/model/DataTest.java b/src/test/java/org/weymouth/demo/model/DataTest.java index d51d2ad..fcf9320 100755 --- a/src/test/java/org/weymouth/demo/model/DataTest.java +++ b/src/test/java/org/weymouth/demo/model/DataTest.java @@ -1,17 +1,18 @@ package org.weymouth.demo.model; ...
true
true
public void test(){ String probe = "probe"; Data d = new Data(probe); String data = d.getData(); Assert.assertNotNull(data); Assert.assertEquals(probe, data); }
public void test(){ String probe = "probe"; Data d = new Data(probe); String data = d.getData(); data = null; Assert.assertNotNull(data); Assert.assertEquals(probe, data); }
diff --git a/DistributedGroupMembership/src/MembershipController.java b/DistributedGroupMembership/src/MembershipController.java index c025f30..9026867 100644 --- a/DistributedGroupMembership/src/MembershipController.java +++ b/DistributedGroupMembership/src/MembershipController.java @@ -1,157 +1,157 @@ import java.io...
true
true
public static void updateMembershipList(MembershipList own, ArrayList<MembershipEntry> receivedMemList, int failSeconds) { ArrayList<MembershipEntry> ownMemList = own.get(); for(int i = 0; i < own.get().size(); i++) { System.out.print(own.get().get(i).getIPAddress() + " "); ...
public static void updateMembershipList(MembershipList own, ArrayList<MembershipEntry> receivedMemList, int failSeconds) { ArrayList<MembershipEntry> ownMemList = own.get(); for(int i = 0; i < own.get().size(); i++) { System.out.print(own.get().get(i).getIPAddress() + " "); ...
diff --git a/src/uk/ac/cam/db538/dexter/dex/code/DexCode_AssemblingState.java b/src/uk/ac/cam/db538/dexter/dex/code/DexCode_AssemblingState.java index 1a2c014b..d7d448c0 100644 --- a/src/uk/ac/cam/db538/dexter/dex/code/DexCode_AssemblingState.java +++ b/src/uk/ac/cam/db538/dexter/dex/code/DexCode_AssemblingState.java @...
true
true
public DexCode_AssemblingState(DexCode code, DexAssemblingCache cache, Map<DexRegister, Integer> regAlloc) { this.cache = cache; this.registerAllocation = regAlloc; this.code = code; // initialise elementOffsets // start by setting the size of each instruction to 1 // later on, it will get in...
public DexCode_AssemblingState(DexCode code, DexAssemblingCache cache, Map<DexRegister, Integer> regAlloc) { this.cache = cache; this.registerAllocation = regAlloc; this.code = code; // initialise elementOffsets // start by setting the size of each instruction to 1 // later on, it will get in...
diff --git a/src/com/jpii/navalbattle/util/WindowLib.java b/src/com/jpii/navalbattle/util/WindowLib.java index c0583d87..659549cc 100644 --- a/src/com/jpii/navalbattle/util/WindowLib.java +++ b/src/com/jpii/navalbattle/util/WindowLib.java @@ -1,81 +1,80 @@ package com.jpii.navalbattle.util; import java.awt.DisplayM...
true
true
public boolean showFullscreen() { //evilHackTimer.start(); NativeLib.setTransparency(wnd, 0.5f); if (FileUtils.getPlatform() == OS.windows) { ready = true; if (wnd == null) return false; int clientWidth = Toolkit.getDefaultToolkit().getScreenSize().width; int clientHeight = Toolkit.getDefaultTool...
public boolean showFullscreen() { //evilHackTimer.start(); if (FileUtils.getPlatform() == OS.windows) { ready = true; if (wnd == null) return false; int clientWidth = Toolkit.getDefaultToolkit().getScreenSize().width; int clientHeight = Toolkit.getDefaultToolkit().getScreenSize().height; ox = wn...
diff --git a/table/src/main/uk/ac/starlink/table/formats/AsciiStarTable.java b/table/src/main/uk/ac/starlink/table/formats/AsciiStarTable.java index 62fe5bb76..8760120e2 100644 --- a/table/src/main/uk/ac/starlink/table/formats/AsciiStarTable.java +++ b/table/src/main/uk/ac/starlink/table/formats/AsciiStarTable.java @@ ...
false
true
protected List readRow( PushbackInputStream in ) throws IOException { List cellList = new ArrayList(); while ( cellList.size() == 0 ) { boolean startLine = true; for ( boolean endLine = false; ! endLine; ) { int c = in.read(); switch ( (char) c...
protected List readRow( PushbackInputStream in ) throws IOException { List cellList = new ArrayList(); while ( cellList.size() == 0 ) { boolean startLine = true; for ( boolean endLine = false; ! endLine; ) { int c = in.read(); switch ( (char) c...