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/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/lint/AddSuppressAnnotation.java b/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/lint/AddSuppressAnnotation.java index 6b945f8e1..1280bc7a1 100644 --- a/eclipse/plugins/com.android.ide...
true
true
public static void createFixes(IMarker marker, String id, List<IMarkerResolution> resolutions) { ITextEditor textEditor = AdtUtils.getActiveTextEditor(); IDocumentProvider provider = textEditor.getDocumentProvider(); IEditorInput editorInput = textEditor.getEditorInput(); ...
public static void createFixes(IMarker marker, String id, List<IMarkerResolution> resolutions) { ITextEditor textEditor = AdtUtils.getActiveTextEditor(); IDocumentProvider provider = textEditor.getDocumentProvider(); IEditorInput editorInput = textEditor.getEditorInput(); ...
diff --git a/src/com/massivecraft/factions/cmd/CmdJoin.java b/src/com/massivecraft/factions/cmd/CmdJoin.java index ca4a36f6..d9a582ea 100644 --- a/src/com/massivecraft/factions/cmd/CmdJoin.java +++ b/src/com/massivecraft/factions/cmd/CmdJoin.java @@ -1,95 +1,95 @@ package com.massivecraft.factions.cmd; import com.m...
true
true
public void perform() { Faction faction = this.argAsFaction(0); if (faction == null) return; FPlayer fplayer = this.argAsBestFPlayerMatch(1, fme, false); boolean samePlayer = fplayer == fme; if (!samePlayer && ! Permission.JOIN_OTHERS.has(sender, false)) { msg("<b>You do not have permission to move ...
public void perform() { Faction faction = this.argAsFaction(0); if (faction == null) return; FPlayer fplayer = this.argAsBestFPlayerMatch(1, fme, false); boolean samePlayer = fplayer == fme; if (!samePlayer && ! Permission.JOIN_OTHERS.has(sender, false)) { msg("<b>You do not have permission to move ...
diff --git a/src/main/java/org/firebrandocm/dao/events/EntityEvent.java b/src/main/java/org/firebrandocm/dao/events/EntityEvent.java index c255be0..b5fbe1a 100644 --- a/src/main/java/org/firebrandocm/dao/events/EntityEvent.java +++ b/src/main/java/org/firebrandocm/dao/events/EntityEvent.java @@ -1,83 +1,83 @@ /* * C...
true
true
public EntityEvent(PersistenceFactory persistenceFactory, Event.Entity event, Object... entities) { this.persistenceFactory = persistenceFactory; this.event = event; this.entities = this.entities; }
public EntityEvent(PersistenceFactory persistenceFactory, Event.Entity event, Object... entities) { this.persistenceFactory = persistenceFactory; this.event = event; this.entities = entities; }
diff --git a/server-integ/src/test/java/org/apache/directory/server/replication/ClientServerReplicationIT.java b/server-integ/src/test/java/org/apache/directory/server/replication/ClientServerReplicationIT.java index 9405d5771d..07358afde5 100644 --- a/server-integ/src/test/java/org/apache/directory/server/replication/...
false
true
private static void startConsumer() throws Exception { Method createProviderMethod = ClientServerReplicationIT.class.getDeclaredMethod( "startConsumer" ); CreateDS dsAnnotation = createProviderMethod.getAnnotation( CreateDS.class ); DirectoryService provDirService = DSAnnotationProcessor...
private static void startConsumer() throws Exception { Method createProviderMethod = ClientServerReplicationIT.class.getDeclaredMethod( "startConsumer" ); CreateDS dsAnnotation = createProviderMethod.getAnnotation( CreateDS.class ); DirectoryService provDirService = DSAnnotationProcessor...
diff --git a/match/src/main/java/org/sleuthkit/hadoop/GrepMatchMapper.java b/match/src/main/java/org/sleuthkit/hadoop/GrepMatchMapper.java index f36fd6d..d9594f1 100644 --- a/match/src/main/java/org/sleuthkit/hadoop/GrepMatchMapper.java +++ b/match/src/main/java/org/sleuthkit/hadoop/GrepMatchMapper.java @@ -1,80 +1,80 ...
true
true
public void map(ImmutableHexWritable key, FsEntry value, Context context) throws InterruptedException, IOException { List<Object> grepKeywordList; List<String> grepSearchResults; grepKeywordList = (List<Object>)value.get(HBaseConstants.GREP_SEARCHES); grepSearchResults ...
public void map(ImmutableHexWritable key, FsEntry value, Context context) throws InterruptedException, IOException { List<Object> grepKeywordList; List<String> grepSearchResults; grepKeywordList = (List<Object>)value.get(HBaseConstants.GREP_SEARCHES); grepSearchResults ...
diff --git a/test/helpers/ticketing/WeezEventTest.java b/test/helpers/ticketing/WeezEventTest.java index c737d28..1ee7156 100644 --- a/test/helpers/ticketing/WeezEventTest.java +++ b/test/helpers/ticketing/WeezEventTest.java @@ -1,91 +1,91 @@ package helpers.ticketing; import java.util.Set; import org.junit.Test; ...
true
true
public void testIsRegisteredAttendeeOK() { //identifiants weezevent corrects String sessionID = WeezEvent.login(); //event id correct WeezEvent.setEvent(sessionID); Set<String> allAttendees = WeezEvent.getAttendees(sessionID); // FIXME Agnès : "agnes.crepet@gmail.com"...
public void testIsRegisteredAttendeeOK() { //identifiants weezevent corrects String sessionID = WeezEvent.login(); //event id correct WeezEvent.setEvent(sessionID); Set<String> allAttendees = WeezEvent.getAttendees(sessionID); // FIXME Agnès : "agnes.crepet@gmail.com"...
diff --git a/src/main/java/tconstruct/tools/TActiveOmniMod.java b/src/main/java/tconstruct/tools/TActiveOmniMod.java index f19100d4d..ce411cb65 100644 --- a/src/main/java/tconstruct/tools/TActiveOmniMod.java +++ b/src/main/java/tconstruct/tools/TActiveOmniMod.java @@ -1,233 +1,233 @@ package tconstruct.tools; impor...
true
true
private boolean autoSmelt(ToolCore tool, NBTTagCompound tags, ItemStack stack, int x, int y, int z, EntityLivingBase entity) { World world = entity.worldObj; int meta = world.getBlockMetadata(x, y, z); Block block = world.getBlock(x, y, z); if (block == null) return f...
private boolean autoSmelt(ToolCore tool, NBTTagCompound tags, ItemStack stack, int x, int y, int z, EntityLivingBase entity) { World world = entity.worldObj; int meta = world.getBlockMetadata(x, y, z); Block block = world.getBlock(x, y, z); if (block == null) return f...
diff --git a/pdfbox/src/main/java/org/apache/pdfbox/pdfparser/PDFParser.java b/pdfbox/src/main/java/org/apache/pdfbox/pdfparser/PDFParser.java index e0fc6104..dd3d2e5a 100644 --- a/pdfbox/src/main/java/org/apache/pdfbox/pdfparser/PDFParser.java +++ b/pdfbox/src/main/java/org/apache/pdfbox/pdfparser/PDFParser.java @@ -1...
false
true
private boolean parseObject() throws IOException { int currentObjByteOffset = pdfSource.getOffset(); boolean isEndOfFile = false; skipSpaces(); //peek at the next character to determine the type of object we are parsing char peekedChar = (char)pdfSource.peek(); ...
private boolean parseObject() throws IOException { int currentObjByteOffset = pdfSource.getOffset(); boolean isEndOfFile = false; skipSpaces(); //peek at the next character to determine the type of object we are parsing char peekedChar = (char)pdfSource.peek(); ...
diff --git a/cookieclicker/src/ch/jmnetwork/cookieclicker/ui/CCUserInterface.java b/cookieclicker/src/ch/jmnetwork/cookieclicker/ui/CCUserInterface.java index c5e6aa1..a8c0ec4 100644 --- a/cookieclicker/src/ch/jmnetwork/cookieclicker/ui/CCUserInterface.java +++ b/cookieclicker/src/ch/jmnetwork/cookieclicker/ui/CCUserIn...
false
true
private void init() { // ======================================// // TRY TO SET SYSTEM LOOK AND FEEL // ======================================// try { UIManager.setLookAndFeel(UIManager.getSystemLookAndFeelClassName()); } catch (Except...
private void init() { // ======================================// // TRY TO SET SYSTEM LOOK AND FEEL // ======================================// try { UIManager.setLookAndFeel(UIManager.getSystemLookAndFeelClassName()); } catch (Except...
diff --git a/runtime-EclipseApplication/com.thoughtress.jsp/src/com/thoughtress/jsp/gen/MyEndpoint.java b/runtime-EclipseApplication/com.thoughtress.jsp/src/com/thoughtress/jsp/gen/MyEndpoint.java index ded04dd..8da731c 100755 --- a/runtime-EclipseApplication/com.thoughtress.jsp/src/com/thoughtress/jsp/gen/MyEndpoint.j...
false
true
public static void doPost(HttpServletRequest request, HttpServletResponse response){ StringBuffer data = new StringBuffer(); String line = null; try { BufferedReader reader = request.getReader(); while ((line = reader.readLine()) != null) data.append(line); } catch (Exception e) { /*r...
public static void doPost(HttpServletRequest request, HttpServletResponse response){ StringBuffer data = new StringBuffer(); String line = null; try { BufferedReader reader = request.getReader(); while ((line = reader.readLine()) != null) data.append(line); } catch (Exception e) { /*r...
diff --git a/src/com/mcprohosting/plugins/marcwar/MarcWar.java b/src/com/mcprohosting/plugins/marcwar/MarcWar.java index 820963c..5f5cdf5 100644 --- a/src/com/mcprohosting/plugins/marcwar/MarcWar.java +++ b/src/com/mcprohosting/plugins/marcwar/MarcWar.java @@ -1,77 +1,77 @@ package com.mcprohosting.plugins.marcwar; ...
true
true
public void onEnable() { // Allow this to be accessed statically plugin = this; // Set game progress gameProgress = "Starting"; // Initialize teams TeamHandler.inititializeTeams(); // Save the default config to file saveDefaultConfig(); // Load team spawns from config TeamHandler.setupSpawnsFro...
public void onEnable() { // Allow this to be accessed statically plugin = this; // Set game progress gameProgress = "Starting"; // Initialize teams TeamHandler.inititializeTeams(); // Save the default config to file saveDefaultConfig(); // Load team spawns from config TeamHandler.setupSpawnsFro...
diff --git a/src/com/admc/jcreole/Entry.java b/src/com/admc/jcreole/Entry.java index 0cb7982..4ed3bac 100644 --- a/src/com/admc/jcreole/Entry.java +++ b/src/com/admc/jcreole/Entry.java @@ -1,87 +1,88 @@ /* * Copyright 2011 Axis Data Management Corp. * * Licensed under the Apache License, Version 2.0 (the "Licens...
true
true
public String toHtml(String prefix) { if (label == null) throw new IllegalStateException("Label not set yet for entry"); if (html == null) throw new IllegalStateException( "Html not set yet for entry: " + label); if (prefix != null && entryId < 0) ...
public String toHtml(String prefix) { if (label == null) throw new IllegalStateException("Label not set yet for entry"); if (html == null) throw new IllegalStateException( "Html not set yet for entry: " + label); if (prefix != null && entryId < 0) ...
diff --git a/src/gr/uoi/cs/dmod/hecate/gui/swing/MainPanel.java b/src/gr/uoi/cs/dmod/hecate/gui/swing/MainPanel.java index 642b4bd..6c2290a 100644 --- a/src/gr/uoi/cs/dmod/hecate/gui/swing/MainPanel.java +++ b/src/gr/uoi/cs/dmod/hecate/gui/swing/MainPanel.java @@ -1,80 +1,80 @@ package gr.uoi.cs.dmod.hecate.gui.swing;...
false
true
protected void drawSchema(Schema s, String side) { if (side == "old") { leftTreeModel = new HecateTreeModel(s); leftOutlineModel = DefaultOutlineModel.createOutlineModel(leftTreeModel, new HecateRowModel(), true, "Name"); leftOutline = new Outline(); leftOutline.setModel(leftOutli...
protected void drawSchema(Schema s, String side) { if (side.compareTo("old") == 0) { leftTreeModel = new HecateTreeModel(s); leftOutlineModel = DefaultOutlineModel.createOutlineModel(leftTreeModel, new HecateRowModel(), true, "Name"); leftOutline = new Outline(); leftOutline.setMo...
diff --git a/biojava3-structure/src/main/java/org/biojava/bio/structure/AminoAcidImpl.java b/biojava3-structure/src/main/java/org/biojava/bio/structure/AminoAcidImpl.java index 4e12b2392..ca5a98dfd 100644 --- a/biojava3-structure/src/main/java/org/biojava/bio/structure/AminoAcidImpl.java +++ b/biojava3-structure/src/ma...
true
true
public Object clone(){ AminoAcidImpl n = new AminoAcidImpl(); n.setPDBFlag(has3D()); n.setPDBCode(getPDBCode()); try { n.setPDBName(getPDBName()); } catch (PDBParseException e) { e.printStackTrace(); } n.setAminoType(getAminoType()); n.setRecordType(recordType); // copy the atoms for (int i=...
public Object clone(){ AminoAcidImpl n = new AminoAcidImpl(); n.setPDBFlag(has3D()); n.setResidueNumber(getResidueNumber()); try { n.setPDBName(getPDBName()); } catch (PDBParseException e) { e.printStackTrace(); } n.setAminoType(getAminoType()); n.setRecordType(recordType); // copy the atoms...
diff --git a/src/com/vividsolutions/jump/workbench/ui/renderer/style/LabelStyle.java b/src/com/vividsolutions/jump/workbench/ui/renderer/style/LabelStyle.java index a68cc485..fc9ed44a 100644 --- a/src/com/vividsolutions/jump/workbench/ui/renderer/style/LabelStyle.java +++ b/src/com/vividsolutions/jump/workbench/ui/rend...
true
true
public void paint(Feature f, Graphics2D g, Viewport viewport) throws NoninvertibleTransformException { // Test scale first to return faster if realScale > scaleToHideAt if (isHidingAtScale()){ double scale = height / getFont().getSize2D(); if (isScaling()) { scale...
public void paint(Feature f, Graphics2D g, Viewport viewport) throws NoninvertibleTransformException { // Test scale first to return faster if realScale > scaleToHideAt if (isHidingAtScale()){ double scale = height / getFont().getSize2D(); if (isScaling()) { scale...
diff --git a/src/FE_SRC_COMMON/com/ForgeEssentials/afterlife/InventroyGrave.java b/src/FE_SRC_COMMON/com/ForgeEssentials/afterlife/InventroyGrave.java index 49a5f3977..212d39019 100644 --- a/src/FE_SRC_COMMON/com/ForgeEssentials/afterlife/InventroyGrave.java +++ b/src/FE_SRC_COMMON/com/ForgeEssentials/afterlife/Inventr...
false
true
public void closeChest() { List<ItemStack> list = new ArrayList<ItemStack>(); for (ItemStack is : inventoryContents) { if (is != null) { list.add(is); } } grave.inv = list.toArray(new ItemStack[list.size()]); grave.checkGrave(); super.closeChest(); }
public void closeChest() { List<ItemStack> list = new ArrayList<ItemStack>(); for (int i = 0; i < getSizeInventory(); i++) { ItemStack is = getStackInSlot(i); if (is != null) { list.add(is); } } grave.inv = list.toArray(new ItemStack[list.size()]); grave.checkGrave(); super.closeChest()...
diff --git a/tool/sakai-sdata-impl/src/main/java/org/sakaiproject/sdata/services/col/ColBean.java b/tool/sakai-sdata-impl/src/main/java/org/sakaiproject/sdata/services/col/ColBean.java index 771c855..39b424e 100644 --- a/tool/sakai-sdata-impl/src/main/java/org/sakaiproject/sdata/services/col/ColBean.java +++ b/tool/sak...
false
true
public ColBean(String[] uris, int depth, String inbasePath, SecurityAssertion assertion, JCRNodeFactoryService jcrNodeFactory) throws SDataException { int inversion = -1; for (String uri : uris) { try { ResourceDefinitionImpl rp = new ResourceDefinitionImpl("GET", null, depth, inbasePath,...
public ColBean(String[] uris, int depth, String inbasePath, SecurityAssertion assertion, JCRNodeFactoryService jcrNodeFactory) throws SDataException { int inversion = -1; Map<String, Object> items = new HashMap<String, Object>(); for (String uri : uris) { try { ResourceDefinitionImpl rp = new...
diff --git a/bundles/jcr/resource/src/main/java/org/apache/sling/jcr/resource/internal/helper/jcr/JcrResourceProvider.java b/bundles/jcr/resource/src/main/java/org/apache/sling/jcr/resource/internal/helper/jcr/JcrResourceProvider.java index 0cae932dfe..1facd8cd7f 100644 --- a/bundles/jcr/resource/src/main/java/org/apac...
true
true
private JcrItemResource createResource(ResourceResolver resourceResolver, String path) throws RepositoryException { if (useMultiWorkspaces) { final int wsSepPos = path.indexOf(":/"); if (wsSepPos != -1) { final String workspaceName = path.substring...
private JcrItemResource createResource(ResourceResolver resourceResolver, String path) throws RepositoryException { if (useMultiWorkspaces) { final int wsSepPos = path.indexOf(":/"); if (wsSepPos != -1) { final String workspaceName = path.substring(0, wsSe...
diff --git a/src/java/org/pillarone/riskanalytics/application/client/UIFlexibleDateDataType.java b/src/java/org/pillarone/riskanalytics/application/client/UIFlexibleDateDataType.java index 6e700d12..8a7b1fc8 100644 --- a/src/java/org/pillarone/riskanalytics/application/client/UIFlexibleDateDataType.java +++ b/src/java/...
false
true
protected Object doStringToObjectConversion(String s, Object o) throws DataTypeConversionException { try { return new SimpleDateFormat(displayFormat).parse(s); } catch (ParseException ex) { //try the next format } for (String format : possibleFormats) { ...
protected Object doStringToObjectConversion(String s, Object o) throws DataTypeConversionException { try { return new SimpleDateFormat(displayFormat).parse(s); } catch (Exception ex) { //try the next format } for (String format : possibleFormats) { ...
diff --git a/src/main/java/edu/mayo/cts2/framework/plugin/service/lexevs/service/resolvedvalueset/LexEvsResolvedValueSetQueryService.java b/src/main/java/edu/mayo/cts2/framework/plugin/service/lexevs/service/resolvedvalueset/LexEvsResolvedValueSetQueryService.java index baf7bf6..d14b172 100644 --- a/src/main/java/edu/m...
true
true
public DirectoryResult<ResolvedValueSetDirectoryEntry> getResourceSummaries( ResolvedValueSetQuery query, SortCriteria sort, Page page) { try { List<CodingScheme> csList= getLexEVSResolvedService().listAllResolvedValueSets(); // TODO Auto-generated method stub List<CodingScheme> restrictedList= resolverUti...
public DirectoryResult<ResolvedValueSetDirectoryEntry> getResourceSummaries( ResolvedValueSetQuery query, SortCriteria sort, Page page) { try { List<CodingScheme> csList= getLexEVSResolvedService().listAllResolvedValueSets(); // TODO Auto-generated method stub List<CodingScheme> restrictedList= resolverUti...
diff --git a/src/org/technbolts/jbehave/eclipse/editors/story/completion/StepContentAssistProcessor.java b/src/org/technbolts/jbehave/eclipse/editors/story/completion/StepContentAssistProcessor.java index 414e0ca..9bd854c 100644 --- a/src/org/technbolts/jbehave/eclipse/editors/story/completion/StepContentAssistProcesso...
false
true
public ICompletionProposal[] computeCompletionProposals(ITextViewer viewer, final int offset) { try { IDocument document = viewer.getDocument(); int lineNo = document.getLineOfOffset(offset); int lineOffset = document.getLineOffset(lineNo); boolean isWithinLin...
public ICompletionProposal[] computeCompletionProposals(ITextViewer viewer, final int offset) { try { IDocument document = viewer.getDocument(); int lineNo = document.getLineOfOffset(offset); int lineOffset = document.getLineOffset(lineNo); boolean isWithinLin...
diff --git a/Unsealed/src/net/k3rnel/unsealed/battle/BattleEntity.java b/Unsealed/src/net/k3rnel/unsealed/battle/BattleEntity.java index f775a01..c28bace 100644 --- a/Unsealed/src/net/k3rnel/unsealed/battle/BattleEntity.java +++ b/Unsealed/src/net/k3rnel/unsealed/battle/BattleEntity.java @@ -1,476 +1,477 @@ /** * Un...
true
true
public void setStatus(int status) { this.status = status; switch(this.status){ case BattleEntity.statusNormal: break; case BattleEntity.statusBurned: actions = sequence(color(Color.RED), delay(0.05f), ...
public void setStatus(int status) { this.status = status; switch(this.status){ case BattleEntity.statusNormal: this.getActions().clear(); break; case BattleEntity.statusBurned: actions = ...
diff --git a/bundles/org.eclipse.equinox.p2.garbagecollector/src/org/eclipse/equinox/internal/p2/garbagecollector/GarbageCollector.java b/bundles/org.eclipse.equinox.p2.garbagecollector/src/org/eclipse/equinox/internal/p2/garbagecollector/GarbageCollector.java index 303bc5f4d..f0dc2c03f 100644 --- a/bundles/org.eclipse...
true
true
private void contributeMarkSets(IConfigurationElement runAttribute, IProfile profile, boolean addRepositories) { ParameterizedSafeRunnable providerExecutor = new ParameterizedSafeRunnable(runAttribute, profile); SafeRunner.run(providerExecutor); MarkSet[] aProfileMarkSets = providerExecutor.getResult(); if (aP...
private void contributeMarkSets(IConfigurationElement runAttribute, IProfile profile, boolean addRepositories) { ParameterizedSafeRunnable providerExecutor = new ParameterizedSafeRunnable(runAttribute, profile); SafeRunner.run(providerExecutor); MarkSet[] aProfileMarkSets = providerExecutor.getResult(); if (aP...
diff --git a/melete-app/src/java/org/sakaiproject/tool/melete/DeleteModulePage.java b/melete-app/src/java/org/sakaiproject/tool/melete/DeleteModulePage.java index 28ab0868..71b390fc 100644 --- a/melete-app/src/java/org/sakaiproject/tool/melete/DeleteModulePage.java +++ b/melete-app/src/java/org/sakaiproject/tool/melete...
true
true
public String deleteAction() { if(moduleService == null) moduleService = getModuleService(); FacesContext context = FacesContext.getCurrentInstance(); ResourceLoader bundle = new ResourceLoader("org.sakaiproject.tool.melete.bundle.Messages"); // actual delete try{ ...
public String deleteAction() { if(moduleService == null) moduleService = getModuleService(); FacesContext context = FacesContext.getCurrentInstance(); ResourceLoader bundle = new ResourceLoader("org.sakaiproject.tool.melete.bundle.Messages"); // actual delete try{ ...
diff --git a/edu/wisc/ssec/mcidasv/data/hydra/NPPDataSource.java b/edu/wisc/ssec/mcidasv/data/hydra/NPPDataSource.java index fc1728f05..65733ab79 100644 --- a/edu/wisc/ssec/mcidasv/data/hydra/NPPDataSource.java +++ b/edu/wisc/ssec/mcidasv/data/hydra/NPPDataSource.java @@ -1,1117 +1,1120 @@ /* * $Id$ * * This fil...
false
true
public void setup() throws VisADException { // looking to populate 3 things - path to lat, path to lon, path to relevant products String pathToLat = null; String pathToLon = null; TreeSet<String> pathToProducts = new TreeSet<String>(); // flag to indicate data is 3-dimensions (X, Y, ...
public void setup() throws VisADException { // looking to populate 3 things - path to lat, path to lon, path to relevant products String pathToLat = null; String pathToLon = null; TreeSet<String> pathToProducts = new TreeSet<String>(); // flag to indicate data is 3-dimensions (X, Y, ...
diff --git a/src/main/java/com/socialsite/BasePage.java b/src/main/java/com/socialsite/BasePage.java index e30ef03..009b0a1 100644 --- a/src/main/java/com/socialsite/BasePage.java +++ b/src/main/java/com/socialsite/BasePage.java @@ -1,116 +1,115 @@ /** * Copyright SocialSite (C) 2009 * * This program is ...
true
true
public void renderHead(final IHeaderResponse response) { // NOTE add all the css references here.Don't add css link in the other // pages or panel.This will help in combing all the css files into // single file during deployment response.renderCSSReference("css/libraries.css"); response.renderCSSReference...
public void renderHead(final IHeaderResponse response) { // NOTE add all the css references here.Don't add css link in the other // pages or panel.This will help in combing all the css files into // single file during deployment response.renderCSSReference("css/libraries.css"); response.renderCSSReference...
diff --git a/ch04/src/main/java/coprocessor/RegionObserverWithBypassExample.java b/ch04/src/main/java/coprocessor/RegionObserverWithBypassExample.java index 46432af..8031089 100644 --- a/ch04/src/main/java/coprocessor/RegionObserverWithBypassExample.java +++ b/ch04/src/main/java/coprocessor/RegionObserverWithBypassExam...
true
true
public void preGet(final ObserverContext<RegionCoprocessorEnvironment> e, final Get get, final List<KeyValue> results) throws IOException { LOG.debug("Got preGet for row: " + Bytes.toStringBinary(get.getRow())); // vv RegionObserverWithBypassExample if (Bytes.equals(get.getRow(), FIXED_ROW)) { ...
public void preGet(final ObserverContext<RegionCoprocessorEnvironment> e, final Get get, final List<KeyValue> results) throws IOException { LOG.debug("Got preGet for row: " + Bytes.toStringBinary(get.getRow())); // vv RegionObserverWithBypassExample if (Bytes.equals(get.getRow(), FIXED_ROW)) { ...
diff --git a/elevator/ElevatorManager.java b/elevator/ElevatorManager.java index 7c4390f..cb916cf 100644 --- a/elevator/ElevatorManager.java +++ b/elevator/ElevatorManager.java @@ -1,648 +1,648 @@ import java.util.LinkedList; import java.util.PriorityQueue; public class ElevatorManager { private Elevator[] e...
false
true
private void runAllElevators() { for (int i = 0; i < elevators.length; ++i) { LinkedList<Person> people = elevators[i].update(); if (people != null) { building.insertInFloor(elevators[i].getCurrentFloor(), people); }//if (smartMode && people == null ) { // if ...
private void runAllElevators() { for (int i = 0; i < elevators.length; ++i) { LinkedList<Person> people = elevators[i].update(); if (people != null) { building.insertInFloor(elevators[i].getCurrentFloor(), people); }//if (smartMode && people == null ) { // if ...
diff --git a/src/com/nloko/android/syncmypix/SyncProgressActivity.java b/src/com/nloko/android/syncmypix/SyncProgressActivity.java index befa483..9d0879d 100644 --- a/src/com/nloko/android/syncmypix/SyncProgressActivity.java +++ b/src/com/nloko/android/syncmypix/SyncProgressActivity.java @@ -1,201 +1,201 @@ // // ...
false
true
public void onServiceConnected(ComponentName className, IBinder service) { mSyncService = new WeakReference<SyncService>(((SyncService.LocalBinder)service).getService()); SyncService s = mSyncService.get(); if (s == null) { return; } if (s.getStat...
public void onServiceConnected(ComponentName className, IBinder service) { mSyncService = new WeakReference<SyncService>(((SyncService.LocalBinder)service).getService()); SyncService s = mSyncService.get(); if (s == null) { return; } if (s.getStat...
diff --git a/bridge-impl/src/main/java/com/liferay/faces/bridge/container/liferay/LiferayResourceURL.java b/bridge-impl/src/main/java/com/liferay/faces/bridge/container/liferay/LiferayResourceURL.java index 374ab5c0c..b0da37135 100644 --- a/bridge-impl/src/main/java/com/liferay/faces/bridge/container/liferay/LiferayRes...
true
true
public String toString() { if (toStringValue == null) { // FACES-863: Liferay 5.2 requires the p_p_mode and p_p_state parameters even though this shouldn't be the // case for a ResourceURL. boolean firstParameter = false; String superToString = super.toString(); StringBuilder url = new StringBuilde...
public String toString() { if (toStringValue == null) { // FACES-383: Liferay 5.2 requires the p_p_mode and p_p_state parameters even though this shouldn't be the // case for a ResourceURL. boolean firstParameter = false; String superToString = super.toString(); StringBuilder url = new StringBuilde...
diff --git a/trunk/src/om/question/Results.java b/trunk/src/om/question/Results.java index 687140d..23fea23 100644 --- a/trunk/src/om/question/Results.java +++ b/trunk/src/om/question/Results.java @@ -1,204 +1,204 @@ /* OpenMark online assessment system Copyright (C) 2007 The Open University This program is ...
true
true
private void checkID(String sID) throws OmDeveloperException { if(sID==null) return; if(!sID.matches("[A-Za-z0-9_-.!]*")) throw new OmDeveloperException("Not a valid ID string (disallowed characters): "+sID); if(sID.length()>64) throw new OmDeveloperException("Not a valid ID string (>64 characters): "+sID...
private void checkID(String sID) throws OmDeveloperException { if(sID==null) return; if(!sID.matches("[-_.!A-Za-z0-9]*")) throw new OmDeveloperException("Not a valid ID string (disallowed characters): "+sID); if(sID.length()>64) throw new OmDeveloperException("Not a valid ID string (>64 characters): "+sID...
diff --git a/src/main/java/org/primefaces/extensions/component/timeline/TimelineRenderer.java b/src/main/java/org/primefaces/extensions/component/timeline/TimelineRenderer.java index 5cb3323b..f75095c6 100644 --- a/src/main/java/org/primefaces/extensions/component/timeline/TimelineRenderer.java +++ b/src/main/java/org/...
true
true
protected void encodeScript(FacesContext context, Timeline timeline) throws IOException { TimelineModel model = timeline.getValue(); if (model == null) { return; } ResponseWriter writer = context.getResponseWriter(); String clientId = timeline.getClientId(context); TimeZone timeZone = ComponentUtils.re...
protected void encodeScript(FacesContext context, Timeline timeline) throws IOException { TimelineModel model = timeline.getValue(); if (model == null) { return; } ResponseWriter writer = context.getResponseWriter(); String clientId = timeline.getClientId(context); TimeZone timeZone = ComponentUtils.re...
diff --git a/org.kompiro.jamcircle.web/src/org/kompiro/jamcircle/web/figure/LaneFigure.java b/org.kompiro.jamcircle.web/src/org/kompiro/jamcircle/web/figure/LaneFigure.java index e99fda0b..4c0e57d8 100644 --- a/org.kompiro.jamcircle.web/src/org/kompiro/jamcircle/web/figure/LaneFigure.java +++ b/org.kompiro.jamcircle.we...
true
true
public LaneFigure(final Lane lane) { this.lane = lane; this.panel = new Panel(); panel.setData(lane); panel.setCaption(lane.getContainerName()); panel.setWidth(toPx(lane.getWidth())); panel.setHeight(toPx(lane.getHeight())); layout = new DDAbsoluteLayout(); layout.setSizeFull(); layout.setDragMode(La...
public LaneFigure(final Lane lane) { this.lane = lane; this.panel = new Panel(); panel.setData(lane); panel.setCaption(lane.getContainerName()); panel.setWidth(toPx(lane.getWidth())); panel.setHeight(toPx(lane.getHeight())); layout = new DDAbsoluteLayout(); layout.setSizeFull(); layout.setDragMode(La...
diff --git a/vaadin-framework/src/main/java/com/vaadin/data/util/AbstractDomainItem.java b/vaadin-framework/src/main/java/com/vaadin/data/util/AbstractDomainItem.java index d148693..e86c9e2 100644 --- a/vaadin-framework/src/main/java/com/vaadin/data/util/AbstractDomainItem.java +++ b/vaadin-framework/src/main/java/com/...
true
true
public Property getItemProperty(Object propertyId) { if (!properties.containsKey(propertyId)) { Property property; if (propertyId instanceof String) { String id = (String) propertyId; String[] parts = id.split("\\."); property = lazyCreateProperty(parts[0]); for (int i = 1; i < parts.length; i++)...
public Property getItemProperty(Object propertyId) { if (!properties.containsKey(propertyId)) { Property property; if (propertyId instanceof String) { String id = (String) propertyId; int split = id.indexOf('.'); if (split == -1) { property = lazyCreateProperty(id); } else { String fi...
diff --git a/src/edu/stanford/mobisocial/dungbeetle/obj/action/SetProfileObjAction.java b/src/edu/stanford/mobisocial/dungbeetle/obj/action/SetProfileObjAction.java index a1c5169..742c65f 100644 --- a/src/edu/stanford/mobisocial/dungbeetle/obj/action/SetProfileObjAction.java +++ b/src/edu/stanford/mobisocial/dungbeetle...
true
true
public void onAct(Context context, DbEntryHandler objType, JSONObject objData, byte[] raw) { String b64Bytes = objData.optString(PictureObj.DATA); byte[] data = Base64.decode(b64Bytes); Helpers.updatePicture(context, data); Toast.makeText(context, "Set profile picture.", Toast.LENGTH...
public void onAct(Context context, DbEntryHandler objType, JSONObject objData, byte[] raw) { if(raw == null) { String b64Bytes = objData.optString(PictureObj.DATA); raw = Base64.decode(b64Bytes); } Helpers.updatePicture(context, raw); Toast.makeText(context, "Set profile ...
diff --git a/srcj/com/sun/electric/database/network/NetworkTool.java b/srcj/com/sun/electric/database/network/NetworkTool.java index c772a0d52..4115bd982 100644 --- a/srcj/com/sun/electric/database/network/NetworkTool.java +++ b/srcj/com/sun/electric/database/network/NetworkTool.java @@ -1,391 +1,392 @@ /* -*- tab-wid...
true
true
public static Set<Network> getNetworksOnPort(PortInst pi, Netlist netlist, Set<Network> nets) { boolean added = false; if (nets == null) nets = new HashSet<Network>(); for(Iterator<Connection> aIt = pi.getConnections(); aIt.hasNext(); ) { Connection con = aIt.next();...
public static Set<Network> getNetworksOnPort(PortInst pi, Netlist netlist, Set<Network> nets) { boolean added = false; if (nets == null) nets = new HashSet<Network>(); if (!pi.isLinked()) return nets; for(Iterator<Connection> aIt = pi.getConnections(); aIt.hasNext(); ) {...
diff --git a/main/src/com/google/refine/importers/ExcelImporter.java b/main/src/com/google/refine/importers/ExcelImporter.java index ee7976d2..e040b1d2 100644 --- a/main/src/com/google/refine/importers/ExcelImporter.java +++ b/main/src/com/google/refine/importers/ExcelImporter.java @@ -1,282 +1,282 @@ /* Copyright ...
true
true
public void parseOneFile( Project project, ProjectMetadata metadata, ImportingJob job, String fileSource, InputStream inputStream, int limit, JSONObject options, List<Exception> exceptions ) { boolean xmlBased = JSONUtilities.getBoolean(opt...
public void parseOneFile( Project project, ProjectMetadata metadata, ImportingJob job, String fileSource, InputStream inputStream, int limit, JSONObject options, List<Exception> exceptions ) { boolean xmlBased = JSONUtilities.getBoolean(opt...
diff --git a/de.walware.statet.r.rserve/src/de/walware/statet/r/rserve/internal/launchconfigs/RServeClientMainTab.java b/de.walware.statet.r.rserve/src/de/walware/statet/r/rserve/internal/launchconfigs/RServeClientMainTab.java index 17c5f7f0..a45cd2e5 100644 --- a/de.walware.statet.r.rserve/src/de/walware/statet/r/rser...
true
true
public void createControl(Composite parent) { Composite mainComposite = new Composite(parent, SWT.NONE); setControl(mainComposite); mainComposite.setLayoutData(new GridData(SWT.FILL, SWT.FILL, true, true)); final DataBindingContext dbc = new DataBindingContext(); dbc.addObservableFactory(new DefaultObs...
public void createControl(Composite parent) { Composite mainComposite = new Composite(parent, SWT.NONE); setControl(mainComposite); mainComposite.setLayoutData(new GridData(SWT.FILL, SWT.FILL, true, true)); final DataBindingContext dbc = new DataBindingContext(); dbc.addObservableFactory(new DefaultObs...
diff --git a/src/util/Record.java b/src/util/Record.java index 11c58d9..36d75df 100644 --- a/src/util/Record.java +++ b/src/util/Record.java @@ -1,92 +1,92 @@ package util; import java.util.ArrayList; import compare.Comparer; public class Record { // columnArray has a value of 1 if there is a conditio...
false
true
public int checkCompareResult(String op, int compareResult){ // compare result returns 1 for >, -1 for <, and 0 for == // equals if(op.equals("=")){ if(compareResult == 0) return 1; else return 0; } // not equal to if(op.equals("<>")){ if(compareResult == 0) return 0; ...
public int checkCompareResult(String op, int compareResult){ // compare result returns 1 for >, -1 for <, and 0 for == // equals if(op.equals("=")){ if(compareResult == 0) return 1; else return 0; } // not equal to if(op.equals("<>")){ if(compareResult == 0) return 0; ...
diff --git a/OKKoPa_shared/src/main/java/fi/helsinki/cs/okkopa/shared/Settings.java b/OKKoPa_shared/src/main/java/fi/helsinki/cs/okkopa/shared/Settings.java index 56329fd..276720a 100644 --- a/OKKoPa_shared/src/main/java/fi/helsinki/cs/okkopa/shared/Settings.java +++ b/OKKoPa_shared/src/main/java/fi/helsinki/cs/okkopa/...
false
true
public Settings() throws IOException { String envVar = "OKKOPA_SETTINGS_FILEPATH"; String filePath = System.getenv(envVar); Properties props; if (filePath == null) { LOGGER.warn(envVar + " environment variable not set, trying to find settings.xml in program folder."); ...
public Settings() throws IOException { String envVar = "OKKOPA_SETTINGS_FILEPATH"; String filePath = System.getenv(envVar); Properties props; if (filePath == null) { LOGGER.warn(envVar + " environment variable not set, trying to find settings.xml in program folder."); ...
diff --git a/TextEditor/src/server/ServTest.java b/TextEditor/src/server/ServTest.java index 94dc771..1a23b16 100644 --- a/TextEditor/src/server/ServTest.java +++ b/TextEditor/src/server/ServTest.java @@ -1,584 +1,584 @@ package server; import static org.junit.Assert.assertEquals; import static org.junit.Assert.as...
false
true
public void BasicFuntionTest() throws IOException, InterruptedException { try { File f = new File("serverDocs.cfg"); f.delete(); } catch (Exception e) { } final Server server = new Server(new ServerSocket(1337)); server.build(); Thread serv = new Thread(new Runnable() { public void run() { ...
public void BasicFuntionTest() throws IOException, InterruptedException { try { File f = new File("serverDocs.cfg"); f.delete(); } catch (Exception e) { } final Server server = new Server(new ServerSocket(1337)); server.build(); Thread serv = new Thread(new Runnable() { public void run() { ...
diff --git a/jetty-io/src/main/java/org/eclipse/jetty/io/nio/SelectorManager.java b/jetty-io/src/main/java/org/eclipse/jetty/io/nio/SelectorManager.java index 1b33306b..e89ca927 100644 --- a/jetty-io/src/main/java/org/eclipse/jetty/io/nio/SelectorManager.java +++ b/jetty-io/src/main/java/org/eclipse/jetty/io/nio/Select...
true
true
public void doSelect() throws IOException { try { _selecting=Thread.currentThread(); List<?> changes; final Selector selector; synchronized (_changes) { changes=_changes[_change]; ...
public void doSelect() throws IOException { try { _selecting=Thread.currentThread(); List<?> changes; final Selector selector; synchronized (_changes) { changes=_changes[_change]; ...
diff --git a/src/netproj/controller/SimulatorSpecification.java b/src/netproj/controller/SimulatorSpecification.java index aefbf9b..69bf9a8 100644 --- a/src/netproj/controller/SimulatorSpecification.java +++ b/src/netproj/controller/SimulatorSpecification.java @@ -1,320 +1,320 @@ package netproj.controller; import ja...
true
true
public static SimulatorSpecification loadXML(String fileName) { try { Logger log = Logger.getLogger("loadXML"); log.setParent(Logger.getLogger("netproj")); log.setLevel(null); SimulatorSpecification simulator = new SimulatorSpecification(); HashMap<Integer, Device> ipTodevice = new HashMap<Integer, D...
public static SimulatorSpecification loadXML(String fileName) { try { Logger log = Logger.getLogger("loadXML"); log.setParent(Logger.getLogger("netproj")); log.setLevel(null); SimulatorSpecification simulator = new SimulatorSpecification(); HashMap<Integer, Device> ipTodevice = new HashMap<Integer, D...
diff --git a/plus/src/test/java/org/mortbay/jetty/plus/jaas/TestJAASUserRealm.java b/plus/src/test/java/org/mortbay/jetty/plus/jaas/TestJAASUserRealm.java index 70c7d6c7f..6384326c8 100644 --- a/plus/src/test/java/org/mortbay/jetty/plus/jaas/TestJAASUserRealm.java +++ b/plus/src/test/java/org/mortbay/jetty/plus/jaas/Te...
true
true
public void testItDataSource () throws Exception { String tmpDir = System.getProperty("java.io.tmpdir")+System.getProperty("file.separator"); System.setProperty("derby.system.home", tmpDir); String dbname = "derby-"+(int)(random.nextDouble()*10000); EmbeddedDataSourc...
public void testItDataSource () throws Exception { String tmpDir = System.getProperty("java.io.tmpdir")+System.getProperty("file.separator"); System.setProperty("derby.system.home", tmpDir); String dbname = "derby-"+(int)(random.nextDouble()*10000); EmbeddedDataSourc...
diff --git a/src/org/biojava/bio/symbol/UkkonenSuffixTree.java b/src/org/biojava/bio/symbol/UkkonenSuffixTree.java index a5e6d2686..4513693d2 100644 --- a/src/org/biojava/bio/symbol/UkkonenSuffixTree.java +++ b/src/org/biojava/bio/symbol/UkkonenSuffixTree.java @@ -1,654 +1,654 @@ package org.biojava.bio.symbol; imp...
false
true
private void addPreppedSequence(String seq){ int i, gammaStart; int j=0; SuffixNode oldNode=null, newNode; SuffixNode currentNode; boolean canLinkJump = false; //Puts i at the end of the previous sequences i = sequences.length(); j=i; sequences= sequences.toString()+seq.toString(...
private void addPreppedSequence(String seq){ int i, gammaStart; int j=0; SuffixNode oldNode=null, newNode; SuffixNode currentNode; boolean canLinkJump = false; //Puts i at the end of the previous sequences i = sequences.length(); j=i; sequences= sequences.toString()+seq.toString(...
diff --git a/brunson/src/edu/ntnu/brunson/manager/Game.java b/brunson/src/edu/ntnu/brunson/manager/Game.java index 2f3d371..2182bf4 100644 --- a/brunson/src/edu/ntnu/brunson/manager/Game.java +++ b/brunson/src/edu/ntnu/brunson/manager/Game.java @@ -1,149 +1,151 @@ package edu.ntnu.brunson.manager; import java.util....
false
true
private void writeToHH(Round round, List<Player> players, int i) { switch(round) { //community cards case FLOP: Output.addToHH("Dealing flop: [" + community.getCard(0).toString() + ", " + community.getCard(1).toString() + ", " + community.getCard(2).toString() + "]"); return; case TURN: Output.addToHH("De...
private void writeToHH(Round round, List<Player> players, int i) { if(round != null) { switch(round) { //community cards case FLOP: Output.addToHH("Dealing flop: [" + community.getCard(0).toString() + ", " + community.getCard(1).toString() + ", " + community.getCard(2).toString() + "]"); return; cas...
diff --git a/src/eu/cassandra/server/mongo/MongoResults.java b/src/eu/cassandra/server/mongo/MongoResults.java index 55e0c1f..7cdac34 100644 --- a/src/eu/cassandra/server/mongo/MongoResults.java +++ b/src/eu/cassandra/server/mongo/MongoResults.java @@ -1,339 +1,339 @@ /* Copyright 2011-2013 The Cassandra Consor...
true
true
public void addKPIs(String inst_id, double maxPower, double avgPower, double energy, double cost, double co2) { boolean first = false; DBObject query = new BasicDBObject(); String collection; String tick_collection; String id; DBObject order = new BasicDBObject(); order.put("p", -1); if(inst_id.equalsI...
public void addKPIs(String inst_id, double maxPower, double avgPower, double energy, double cost, double co2) { boolean first = false; DBObject query = new BasicDBObject(); String collection; String tick_collection; String id; DBObject order = new BasicDBObject(); order.put("p", -1); if(inst_id.equalsI...
diff --git a/src/edu/touro/cooptetris/ScoreLevelDisplay.java b/src/edu/touro/cooptetris/ScoreLevelDisplay.java index 9f8b6c0..5a83889 100644 --- a/src/edu/touro/cooptetris/ScoreLevelDisplay.java +++ b/src/edu/touro/cooptetris/ScoreLevelDisplay.java @@ -1,57 +1,57 @@ package edu.touro.cooptetris; import java.awt.Col...
true
true
public ScoreLevelDisplay(int score, int level) { scoreString = "Score: "; levelString = "Level: "; scoreLabel = new JLabel(scoreString + String.valueOf(score)); levelLabel = new JLabel(levelString + String.valueOf(level)); Border paddingBorder = BorderFactory.createEmptyBorder(15, 15, 15, 15); Border bord...
public ScoreLevelDisplay(int score, int level) { scoreString = "Score: "; levelString = "Level: "; scoreLabel = new JLabel(scoreString + String.valueOf(score)); levelLabel = new JLabel(levelString + String.valueOf(level)); Border paddingBorder = BorderFactory.createEmptyBorder(15, 15, 15, 15); Border bord...
diff --git a/src/edu/columbia/e6998/cloudexchange/toolkit/GenericToolkit.java b/src/edu/columbia/e6998/cloudexchange/toolkit/GenericToolkit.java index ffc10d6..9528b00 100644 --- a/src/edu/columbia/e6998/cloudexchange/toolkit/GenericToolkit.java +++ b/src/edu/columbia/e6998/cloudexchange/toolkit/GenericToolkit.java @@ ...
true
true
private Msg updateMemcache(Boolean flag, String profile, String arrayIndex, Entity e){ Entity[] tmpList = null; Entity m = null; int index = Integer.valueOf(arrayIndex); if(!syncCache.contains(profile)){ try { Thread.sleep(1000); queryDataStore(profile, ""); } catch (InterruptedException e1) { ...
private Msg updateMemcache(Boolean flag, String profile, String arrayIndex, Entity e){ Entity[] tmpList = null; Entity m = null; int index = Integer.valueOf(arrayIndex); if(!syncCache.contains(profile)){ try { Thread.sleep(1000); queryDataStore(profile, ""); } catch (InterruptedException e1) { ...
diff --git a/common/src/net/myrrix/common/io/IOUtils.java b/common/src/net/myrrix/common/io/IOUtils.java index b1d8b6b..e9d5d9c 100644 --- a/common/src/net/myrrix/common/io/IOUtils.java +++ b/common/src/net/myrrix/common/io/IOUtils.java @@ -1,123 +1,126 @@ /* * Copyright Myrrix Ltd * * Licensed under the Apache ...
true
true
public static boolean deleteRecursively(File dir) { Deque<File> stack = new ArrayDeque<File>(); stack.push(dir); boolean result = true; while (!stack.isEmpty()) { File topElement = stack.peek(); if (topElement.isDirectory()) { File[] directoryContents = topElement.listFiles(); ...
public static boolean deleteRecursively(File dir) { if (dir == null) { return false; } Deque<File> stack = new ArrayDeque<File>(); stack.push(dir); boolean result = true; while (!stack.isEmpty()) { File topElement = stack.peek(); if (topElement.isDirectory()) { File[]...
diff --git a/eclipse/portal/plugins/com.liferay.ide.eclipse.portlet.ui/src/com/liferay/ide/eclipse/portlet/ui/wizard/NewPortletWizard.java b/eclipse/portal/plugins/com.liferay.ide.eclipse.portlet.ui/src/com/liferay/ide/eclipse/portlet/ui/wizard/NewPortletWizard.java index 44fee1fa3..0d77015de 100644 --- a/eclipse/porta...
false
true
protected void doAddPages() { addPage(new NewPortletClassWizardPage( getDataModel(), "pageOne", "Create a Portlet class.", getDefaultPageTitle())); addPage(new NewPortletOptionsWizardPage( getDataModel(), "pageTwo", "Specify Portlet deployment descriptor details.", getDefaultPageTitle())); addPage(new Ne...
protected void doAddPages() { addPage(new NewPortletClassWizardPage( getDataModel(), "pageOne", "Create a portlet class.", getDefaultPageTitle())); addPage(new NewPortletOptionsWizardPage( getDataModel(), "pageTwo", "Specify portlet deployment descriptor details.", getDefaultPageTitle())); addPage(new Ne...
diff --git a/target_explorer/plugins/org.eclipse.tcf.te.ui.controls/src/org/eclipse/tcf/te/ui/controls/file/FileSelectionControl.java b/target_explorer/plugins/org.eclipse.tcf.te.ui.controls/src/org/eclipse/tcf/te/ui/controls/file/FileSelectionControl.java index 040f92f5c..2727f5d14 100644 --- a/target_explorer/plugins...
true
true
protected void configureDialogControl(Dialog dialog) { super.configureDialogControl(dialog); // we do expect a FileDialog here if (dialog instanceof FileDialog) { FileDialog fileDialog = (FileDialog)dialog; // set the file dialog filter extensions if available. if (getFilterExtensions().length > 0) { ...
protected void configureDialogControl(Dialog dialog) { super.configureDialogControl(dialog); // we do expect a FileDialog here if (dialog instanceof FileDialog) { FileDialog fileDialog = (FileDialog)dialog; // set the file dialog filter extensions if available. if (getFilterExtensions().length > 0) { ...
diff --git a/driver-core/src/main/java/com/datastax/driver/core/ControlConnection.java b/driver-core/src/main/java/com/datastax/driver/core/ControlConnection.java index 7bb8db6fd..df97b3a12 100644 --- a/driver-core/src/main/java/com/datastax/driver/core/ControlConnection.java +++ b/driver-core/src/main/java/com/datasta...
false
true
private void refreshNodeListAndTokenMap(Connection connection) throws ConnectionException, BusyConnectionException, ExecutionException, InterruptedException { // Make sure we're up to date on nodes and tokens DefaultResultSetFuture peersFuture = new DefaultResultSetFuture(null, new QueryMessage(SEL...
private void refreshNodeListAndTokenMap(Connection connection) throws ConnectionException, BusyConnectionException, ExecutionException, InterruptedException { // Make sure we're up to date on nodes and tokens DefaultResultSetFuture peersFuture = new DefaultResultSetFuture(null, new QueryMessage(SEL...
diff --git a/app/controllers/Application.java b/app/controllers/Application.java index d90c7ed..1f04296 100644 --- a/app/controllers/Application.java +++ b/app/controllers/Application.java @@ -1,89 +1,89 @@ package controllers; import java.util.List; import models.User; import org.codehaus.jackson.node.ArrayN...
true
true
public static Result registeredUsers() { ArrayNode arrayNode = new ArrayNode(JsonNodeFactory.instance); List<User> all = User.find.all(); for (User u : all) { ObjectNode newObject = Json.newObject(); newObject.put("recycledItems", u.recycledItems); newObject.put("name", u.name); newObject.put("faceb...
public static Result registeredUsers() { ArrayNode arrayNode = new ArrayNode(JsonNodeFactory.instance); List<User> all = User.find.all(); for (User u : all) { ObjectNode newObject = Json.newObject(); newObject.put("recycledItems", u.recycledItems); newObject.put("name", u.name); newObject.put("faceb...
diff --git a/src/main/java/com/buddycloud/mediaserver/xmpp/AuthVerifier.java b/src/main/java/com/buddycloud/mediaserver/xmpp/AuthVerifier.java index 35e1df1..351b5f2 100644 --- a/src/main/java/com/buddycloud/mediaserver/xmpp/AuthVerifier.java +++ b/src/main/java/com/buddycloud/mediaserver/xmpp/AuthVerifier.java @@ -1,3...
true
true
public boolean verifyUser(String userId, String token, String url) { try { IQ reply = SyncPacketSendUtil.getReply(component, createVerifyTokenPacket(userId, token, url)); return reply.getType().equals(Type.result); } catch (Exception e) { LOGGER.warn("Error while verifying user '" + userId + "' reques...
public boolean verifyUser(String userId, String token, String url) { try { IQ reply = SyncPacketSendUtil.getReply(component, createVerifyTokenPacket(userId, token, url)); return reply.getType().equals(Type.result); } catch (Exception e) { LOGGER.warn("Error while verifying user '" + userId + "' reques...
diff --git a/cq-deploy-plugin/src/main/java/com/sixdimensions/wcm/cq/InstallBundleMojo.java b/cq-deploy-plugin/src/main/java/com/sixdimensions/wcm/cq/InstallBundleMojo.java index feae585..b985936 100644 --- a/cq-deploy-plugin/src/main/java/com/sixdimensions/wcm/cq/InstallBundleMojo.java +++ b/cq-deploy-plugin/src/main/...
true
true
public void execute() throws MojoExecutionException { getLog().info("execute"); getLog().info("Initializing"); CQServiceConfig config = new CQServiceConfig(); initConfig(config); getLog().info( "Connecting to server: " + config.getHost() + ":" + config.getPort()); getLog().info("Connecting with...
public void execute() throws MojoExecutionException { getLog().info("execute"); getLog().info("Initializing"); CQServiceConfig config = new CQServiceConfig(); initConfig(config); getLog().info( "Connecting to server: " + config.getHost() + ":" + config.getPort()); getLog().info("Connecting with...
diff --git a/src/net/mcthunder/src/Base.java b/src/net/mcthunder/src/Base.java index 3f18d34..1b32212 100644 --- a/src/net/mcthunder/src/Base.java +++ b/src/net/mcthunder/src/Base.java @@ -1,118 +1,125 @@ package net.mcthunder.src; import java.io.BufferedReader; import net.mcthunder.src.Groups; import java.io.IOE...
true
true
public static void start() { tellConsole("INFO", "Server startup initiated..."); tellConsole("INFO","NULL Commands, NULL Acheivementsm, NULL Blocks"); tellConsole("INFO", "Checking Version..."); curVersion = getCurVersion(curVersion); chkVersion(); tellConsole("INFO", "Loading Ranks..."); //Groups.L...
public static void start() { tellConsole("INFO", "Server startup initiated..."); tellConsole("INFO","NULL Commands, NULL Acheivementsm, NULL Blocks"); tellConsole("INFO", "Checking Version..."); curVersion = getCurVersion(curVersion); chkVersion(); tellConsole("INFO", "Loading Ranks..."); //Groups.L...
diff --git a/tests/com.ebmwebsourcing.petals.tests.common/src/com/ebmwebsourcing/petals/tests/common/SUCreator.java b/tests/com.ebmwebsourcing.petals.tests.common/src/com/ebmwebsourcing/petals/tests/common/SUCreator.java index 1c46d1a9..24ebe4c3 100644 --- a/tests/com.ebmwebsourcing.petals.tests.common/src/com/ebmwebso...
true
true
public static SUDesc createFileTransferEndpoint(final SWTWorkbenchBot bot) { final SUDesc su = new SUDesc(); final SWTBotEditor currentEditor = getCurrentEditor(bot); su.setServiceName("TestFileTransferService" + System.currentTimeMillis()); bot.menu("File").menu("New").menu("Service Unit").click(); bot.shel...
public static SUDesc createFileTransferEndpoint(final SWTWorkbenchBot bot) { final SUDesc su = new SUDesc(); final SWTBotEditor currentEditor = getCurrentEditor(bot); su.setServiceName("TestFileTransferService" + System.currentTimeMillis()); bot.menu("File").menu("New").menu("Service Unit").click(); bot.shel...
diff --git a/src/org/nutz/dao/impl/jdbc/ClobValueAdaptor.java b/src/org/nutz/dao/impl/jdbc/ClobValueAdaptor.java index acfdf4e5c..1ffa98e4f 100644 --- a/src/org/nutz/dao/impl/jdbc/ClobValueAdaptor.java +++ b/src/org/nutz/dao/impl/jdbc/ClobValueAdaptor.java @@ -1,39 +1,39 @@ package org.nutz.dao.impl.jdbc; import ja...
true
true
public Object get(ResultSet rs, String colName) throws SQLException { File f = this.createTempFile(); Clob clob = rs.getClob(colName); if (clob == null) return null; Files.write(f, clob.getAsciiStream()); return new SimpleClob(f); }
public Object get(ResultSet rs, String colName) throws SQLException { File f = this.createTempFile(); Clob clob = rs.getClob(colName); if (clob == null) return null; Files.write(f, clob.getCharacterStream()); return new SimpleClob(f); }
diff --git a/org.maven.ide.eclipse/src/org/maven/ide/eclipse/container/MavenClasspathContainerPage.java b/org.maven.ide.eclipse/src/org/maven/ide/eclipse/container/MavenClasspathContainerPage.java index b9a9e7a8..6d3d593f 100644 --- a/org.maven.ide.eclipse/src/org/maven/ide/eclipse/container/MavenClasspathContainerPage...
true
true
public void createControl(Composite parent) { setTitle("Maven Managed Dependencies"); setDescription("Set the dependency resolver configuration"); resolverConfiguration = BuildPathManager.getResolverConfiguration(containerEntry); final CTabFolder tabFolder = new CTabFolder(parent, SWT.FLAT); tab...
public void createControl(Composite parent) { setTitle("Maven Managed Dependencies"); setDescription("Set the dependency resolver configuration"); resolverConfiguration = BuildPathManager.getResolverConfiguration(containerEntry); final CTabFolder tabFolder = new CTabFolder(parent, SWT.FLAT); tab...
diff --git a/org.caleydo.core/src/org/caleydo/core/io/gui/dataimport/wizard/LoadDataSetPageMediator.java b/org.caleydo.core/src/org/caleydo/core/io/gui/dataimport/wizard/LoadDataSetPageMediator.java index 7695a8cc5..3c2ae9a6d 100644 --- a/org.caleydo.core/src/org/caleydo/core/io/gui/dataimport/wizard/LoadDataSetPageMed...
false
true
public void fillDataSetDescription() { IDSpecification rowIDSpecification = new IDSpecification(); IDType rowIDType = IDType.getIDType(page.rowIDCombo.getItem(page.rowIDCombo.getSelectionIndex())); rowIDSpecification.setIdType(rowIDType.getTypeName()); if (rowIDType.getIDCategory().getCategoryName().equals("G...
public void fillDataSetDescription() { IDSpecification rowIDSpecification = new IDSpecification(); IDType rowIDType = IDType.getIDType(page.rowIDCombo.getItem(page.rowIDCombo.getSelectionIndex())); rowIDSpecification.setIdType(rowIDType.getTypeName()); if (rowIDType.getIDCategory().getCategoryName().equals("G...
diff --git a/src/de/ueller/gpsmid/ui/GuiRoute.java b/src/de/ueller/gpsmid/ui/GuiRoute.java index 5faf3c2e..4fc59c6c 100644 --- a/src/de/ueller/gpsmid/ui/GuiRoute.java +++ b/src/de/ueller/gpsmid/ui/GuiRoute.java @@ -1,311 +1,311 @@ package de.ueller.gpsmid.ui; /* * GpsMid - Copyright (c) 2009 sk750 at users dot sour...
true
true
public GuiRoute(GpsMidDisplayable parent, boolean useAsSetupDialog) { super(Locale.get("guiroute.RouteToDestination")/*Route to destination*/); // Set up this Displayable to listen to command events this.parent = parent; setCommandListener(this); this.useAsSetupDialog = useAsSetupDialog; if (useAsSetupDi...
public GuiRoute(GpsMidDisplayable parent, boolean useAsSetupDialog) { super(Locale.get("guiroute.RouteToDestination")/*Route to destination*/); // Set up this Displayable to listen to command events this.parent = parent; setCommandListener(this); this.useAsSetupDialog = useAsSetupDialog; if (useAsSetupDi...
diff --git a/cobertura/src/net/sourceforge/cobertura/coveragedata/CoverageDataFileHandler.java b/cobertura/src/net/sourceforge/cobertura/coveragedata/CoverageDataFileHandler.java index 7905fce..1f58459 100644 --- a/cobertura/src/net/sourceforge/cobertura/coveragedata/CoverageDataFileHandler.java +++ b/cobertura/src/net...
false
true
private static ProjectData loadCoverageData(InputStream dataFile) { ObjectInputStream objects = null; try { objects = new ObjectInputStream(dataFile); ProjectData projectData = (ProjectData)objects.readObject(); System.out.println("Cobertura: Loaded information on " + projectData.getNumberOfClass...
private static ProjectData loadCoverageData(InputStream dataFile) throws IOException { ObjectInputStream objects = null; try { objects = new ObjectInputStream(dataFile); ProjectData projectData = (ProjectData)objects.readObject(); System.out.println("Cobertura: Loaded information on " + projectDa...
diff --git a/src/com/gmail/zant95/CommandHandler.java b/src/com/gmail/zant95/CommandHandler.java index bf47574..61ca690 100644 --- a/src/com/gmail/zant95/CommandHandler.java +++ b/src/com/gmail/zant95/CommandHandler.java @@ -1,282 +1,283 @@ package com.gmail.zant95; import org.bukkit.Bukkit; import org.bukkit.comm...
true
true
public boolean onCommand(CommandSender sender, Command command, String label, String[] args) { String playerName = null; String targetName = null; Player target = null; Player player = null; if (!Utils.isConsole(sender)) { player = (Player)sender; playerName = player.getName(); } if (command.get...
public boolean onCommand(CommandSender sender, Command command, String label, String[] args) { String playerName = null; String targetName = null; Player target = null; Player player = null; if (!Utils.isConsole(sender)) { player = (Player)sender; playerName = player.getName(); } if (command.get...
diff --git a/src/org/openstreetmap/josm/gui/dialogs/LayerListDialog.java b/src/org/openstreetmap/josm/gui/dialogs/LayerListDialog.java index dd8453b4..9f39ea0f 100644 --- a/src/org/openstreetmap/josm/gui/dialogs/LayerListDialog.java +++ b/src/org/openstreetmap/josm/gui/dialogs/LayerListDialog.java @@ -1,324 +1,322 @@ ...
false
true
public LayerListDialog(MapFrame mapFrame) { super(tr("Layers"), "layerlist", tr("Open a list of all loaded layers."), Shortcut.registerShortcut("subwindow:layers", tr("Toggle: {0}", tr("Layers")), KeyEvent.VK_L, Shortcut.GROUP_LAYER), 100); instance = new JList(model); listScrollPane...
public LayerListDialog(MapFrame mapFrame) { super(tr("Layers"), "layerlist", tr("Open a list of all loaded layers."), Shortcut.registerShortcut("subwindow:layers", tr("Toggle: {0}", tr("Layers")), KeyEvent.VK_L, Shortcut.GROUP_LAYER), 100); instance = new JList(model); listScrollPane...
diff --git a/src/main/java/net/praqma/hudson/scm/CCUCMScm.java b/src/main/java/net/praqma/hudson/scm/CCUCMScm.java index f174e7c..36e183e 100644 --- a/src/main/java/net/praqma/hudson/scm/CCUCMScm.java +++ b/src/main/java/net/praqma/hudson/scm/CCUCMScm.java @@ -1,1131 +1,1133 @@ package net.praqma.hudson.scm; import...
false
true
public boolean checkout(AbstractBuild<?, ?> build, Launcher launcher, FilePath workspace, BuildListener listener, File changelogFile) throws IOException, InterruptedException { /* Prepare job variables */ jobName = build.getParent().getDisplayName().replace(' ', '_'); jobNumber ...
public boolean checkout(AbstractBuild<?, ?> build, Launcher launcher, FilePath workspace, BuildListener listener, File changelogFile) throws IOException, InterruptedException { /* Prepare job variables */ jobName = build.getParent().getDisplayName().replace(' ', '_'); jobNumber ...
diff --git a/src/Random.java b/src/Random.java index 6e943cd..002bb24 100644 --- a/src/Random.java +++ b/src/Random.java @@ -1,41 +1,41 @@ import java.util.Scanner; /** * Created with IntelliJ IDEA. * User: abychko * Date: 04.09.13 * Time: 19:35 * To change this template use File | Settings | File Templat...
false
true
public static void main (String args[]){ int myDigit = (int)( Math.random() * 100); int trycount = 0; String val; int input = -1; System.out.println("Enter your Integer"); while (trycount < 8){ try { val = new Scanner(System.in).next(); ...
public static void main (String args[]){ int myDigit = (int)( Math.random() * 100); int trycount = 0; String val; int input; System.out.println("Enter your Integer"); while (trycount < 8){ try { val = new Scanner(System.in).next(); ...
diff --git a/src/de/typology/predictors/LuceneNGramSearcher.java b/src/de/typology/predictors/LuceneNGramSearcher.java index 90b2ce96..51fb5edf 100644 --- a/src/de/typology/predictors/LuceneNGramSearcher.java +++ b/src/de/typology/predictors/LuceneNGramSearcher.java @@ -1,269 +1,275 @@ package de.typology.predictors; ...
false
true
public HashMap<String, Float> search(String q, String prefix, String match) { HashMap<String, Float> result = new HashMap<String, Float>(); try { String[] terms = this.getQueryNGrams(q); // extend prepareQuery? if (terms == null) { return null; } // ArrayList<TopDocs> hits = new ArrayList<TopD...
public HashMap<String, Float> search(String q, String prefix, String match) { HashMap<String, Float> result = new HashMap<String, Float>(); try { String[] terms = this.getQueryNGrams(q); // extend prepareQuery? if (terms == null) { return null; } // ArrayList<TopDocs> hits = new ArrayList<TopD...
diff --git a/svnkit/src/main/java/org/tmatesoft/svn/core/internal/wc2/ng/SvnNgGetProperties.java b/svnkit/src/main/java/org/tmatesoft/svn/core/internal/wc2/ng/SvnNgGetProperties.java index f1bb16e9b..76e730be0 100644 --- a/svnkit/src/main/java/org/tmatesoft/svn/core/internal/wc2/ng/SvnNgGetProperties.java +++ b/svnkit/...
true
true
protected SVNProperties run(SVNWCContext context, File target) throws SVNException { boolean pristine = getOperation().getRevision() == SVNRevision.COMMITTED || getOperation().getRevision() == SVNRevision.BASE; SVNNodeKind kind = context.readKind(target, false); if (kind == SVNNodeK...
protected SVNProperties run(SVNWCContext context, File target) throws SVNException { boolean pristine = getOperation().getRevision() == SVNRevision.COMMITTED || getOperation().getRevision() == SVNRevision.BASE; SVNNodeKind kind = context.readKind(target, false); if (kind == SVNNodeK...
diff --git a/AeminiumRuntime/src/aeminium/runtime/implementations/implicitworkstealing/scheduler/BlockingWorkStealingScheduler.java b/AeminiumRuntime/src/aeminium/runtime/implementations/implicitworkstealing/scheduler/BlockingWorkStealingScheduler.java index 6d18e22..753a0d4 100644 --- a/AeminiumRuntime/src/aeminium/ru...
false
true
public final void scheduleTask(ImplicitTask task) { if ( task instanceof ImplicitBlockingTask && useBlockingThreadPool ) { blockingThreadPool.submitTask((ImplicitBlockingTask) task); return; } if ( 0 < maxQueueLength) { Thread thread = Thread.currentThread(); if ( thread instanceof WorkStealingThread...
public final void scheduleTask(ImplicitTask task) { if ( task instanceof ImplicitBlockingTask && useBlockingThreadPool ) { blockingThreadPool.submitTask((ImplicitBlockingTask) task); return; } if ( 0 < maxQueueLength) { Thread thread = Thread.currentThread(); if ( thread instanceof WorkStealingThread...
diff --git a/software/caTissue/modules/caTissueStaticDataService/src/edu/wustl/catissuecore/domain/util/CastorMappingMerger.java b/software/caTissue/modules/caTissueStaticDataService/src/edu/wustl/catissuecore/domain/util/CastorMappingMerger.java index 4f1fb4b3b..aa79d508d 100644 --- a/software/caTissue/modules/caTissu...
false
true
private Element mergeElements(Element ... elements) { if (elements.length < 2) throw new IllegalArgumentException("Pass at least 2 elements to be merged"); Map<String, Element> fields = new LinkedHashMap<String, Element>(); // ELEMENT ANALYSIS for (Element e : elements) { ...
private Element mergeElements(Element ... elements) { if (elements.length < 2) throw new IllegalArgumentException("Pass at least 2 elements to be merged"); Map<String, Element> fields = new LinkedHashMap<String, Element>(); // ELEMENT ANALYSIS for (Element e : elements) { ...
diff --git a/src/edu/upenn/cis350/algoviz/BinPackingProblemFactory.java b/src/edu/upenn/cis350/algoviz/BinPackingProblemFactory.java index de0c275..c4c1a23 100644 --- a/src/edu/upenn/cis350/algoviz/BinPackingProblemFactory.java +++ b/src/edu/upenn/cis350/algoviz/BinPackingProblemFactory.java @@ -1,248 +1,248 @@ packag...
true
true
private boolean[] knapsack(Bin bin, Collection<BinObject> objects) { Object[] objs = objects.toArray(); int numObjs = objs.length; int capacity = (int) Math.floor(bin.getCapacity()); //Bins are allowed to hold decimal-value weight //capacities; however, for the sake of computing this algorithm in a reasonable...
private boolean[] knapsack(Bin bin, Collection<BinObject> objects) { Object[] objs = objects.toArray(); int numObjs = objs.length; int capacity = (int) Math.floor(bin.getCapacity()); //Bins are allowed to hold decimal-value weight //capacities; however, for the sake of computing this algorithm in a reasonable...
diff --git a/ECSync/src/com/ekstemicraft/plugin/ecsync/ECSCommandExecutor.java b/ECSync/src/com/ekstemicraft/plugin/ecsync/ECSCommandExecutor.java index 41dee77..f5baed8 100644 --- a/ECSync/src/com/ekstemicraft/plugin/ecsync/ECSCommandExecutor.java +++ b/ECSync/src/com/ekstemicraft/plugin/ecsync/ECSCommandExecutor.java...
true
true
public boolean onCommand(CommandSender sender, Command command, String label, String[] args){ if(label.equalsIgnoreCase("sync")){ if(sender instanceof Player){ if(args.length > 1){ sender.sendMessage("Too many arguments! Command usage: /sync <playername>"); return true; } if(args.leng...
public boolean onCommand(CommandSender sender, Command command, String label, String[] args){ if(label.equalsIgnoreCase("sync")){ if(sender instanceof Player){ if(args.length > 1){ sender.sendMessage("Too many arguments! Command usage: /sync <playername>"); return true; } if(args.leng...
diff --git a/editor/tools/plugins/com.google.dart.tools.core_test/src/com/google/dart/tools/core/internal/builder/TestAll.java b/editor/tools/plugins/com.google.dart.tools.core_test/src/com/google/dart/tools/core/internal/builder/TestAll.java index 40ad5c88e..0dadc8864 100644 --- a/editor/tools/plugins/com.google.dart....
true
true
public static Test suite() { TestSuite suite = new TestSuite("Tests in " + TestAll.class.getPackage().getName()); suite.addTestSuite(CachingArtifactProviderTest.class); // suite.addTestSuite(DartBuilderTest.class); suite.addTestSuite(LocalArtifactProviderTest.class); suite.addTestSuite(RootArtifact...
public static Test suite() { TestSuite suite = new TestSuite("Tests in " + TestAll.class.getPackage().getName()); suite.addTestSuite(CachingArtifactProviderTest.class); // suite.addTestSuite(DartBuilderTest.class); suite.addTestSuite(LocalArtifactProviderTest.class); // suite.addTestSuite(RootArtifa...
diff --git a/src/test/java/BiddingTest.java b/src/test/java/BiddingTest.java index 94a55da..f09745e 100644 --- a/src/test/java/BiddingTest.java +++ b/src/test/java/BiddingTest.java @@ -1,14 +1,14 @@ package test.java; import org.junit.*; import static org.junit.Assert.*; import main.java.Auction; public clas...
true
true
public void CanBid() { Auction auction = new Auction(); Assert.assertTrue(auction.canBid()); }
public void CanBid() { Auction auction = new Auction("seller"); Assert.assertTrue(auction.canBid()); }
diff --git a/src/com/itmill/toolkit/terminal/gwt/client/Caption.java b/src/com/itmill/toolkit/terminal/gwt/client/Caption.java index d68eeaba8..4421d7050 100644 --- a/src/com/itmill/toolkit/terminal/gwt/client/Caption.java +++ b/src/com/itmill/toolkit/terminal/gwt/client/Caption.java @@ -1,204 +1,207 @@ /* @ITMillAp...
true
true
public void updateCaption(UIDL uidl) { setVisible(!uidl.getBooleanAttribute("invisible")); setStyleName(getElement(), "i-disabled", uidl.hasAttribute("disabled")); boolean isEmpty = true; if (uidl.hasAttribute("error")) { isEmpty = false; final UIDL errorUi...
public void updateCaption(UIDL uidl) { setVisible(!uidl.getBooleanAttribute("invisible")); setStyleName(getElement(), "i-disabled", uidl.hasAttribute("disabled")); boolean isEmpty = true; if (uidl.hasAttribute("error")) { isEmpty = false; final UIDL errorUi...
diff --git a/src/com/liato/bankdroid/banking/banks/Zidisha.java b/src/com/liato/bankdroid/banking/banks/Zidisha.java index 4083338..de3a5b2 100644 --- a/src/com/liato/bankdroid/banking/banks/Zidisha.java +++ b/src/com/liato/bankdroid/banking/banks/Zidisha.java @@ -1,167 +1,167 @@ /* Copyright (C) 2012 Nullbyte <http:/...
false
true
public void update() throws BankException, LoginException, BankChoiceException { super.update(); if (username == null || password == null || username.length() == 0 || password.length() == 0) { throw new LoginException(res.getText(R.string.invalid_username_password).toString()); } urlopen = login(); Match...
public void update() throws BankException, LoginException, BankChoiceException { super.update(); if (username == null || password == null || username.length() == 0 || password.length() == 0) { throw new LoginException(res.getText(R.string.invalid_username_password).toString()); } urlopen = login(); Match...
diff --git a/software/ncitbrowser/src/java/gov/nih/nci/evs/browser/bean/UserSessionBean.java b/software/ncitbrowser/src/java/gov/nih/nci/evs/browser/bean/UserSessionBean.java index 518908af..b91e5fd5 100644 --- a/software/ncitbrowser/src/java/gov/nih/nci/evs/browser/bean/UserSessionBean.java +++ b/software/ncitbrowser/...
true
true
public String searchAction() { HttpServletRequest request = (HttpServletRequest) FacesContext .getCurrentInstance().getExternalContext().getRequest(); request.getSession().setAttribute("contains_warning_msg", ""); String matchText = (String) request.getParameter("matchText"); //[#19965] Error message is...
public String searchAction() { HttpServletRequest request = (HttpServletRequest) FacesContext .getCurrentInstance().getExternalContext().getRequest(); request.getSession().setAttribute("contains_warning_msg", ""); String matchText = (String) request.getParameter("matchText"); //[#19965] Error message is...
diff --git a/web/src/main/java/de/betterform/agent/web/WebUtil.java b/web/src/main/java/de/betterform/agent/web/WebUtil.java index fad1e7ec..8be457a7 100644 --- a/web/src/main/java/de/betterform/agent/web/WebUtil.java +++ b/web/src/main/java/de/betterform/agent/web/WebUtil.java @@ -1,356 +1,364 @@ /* * Copyright (c)...
false
true
public static void setContextParams(HttpServletRequest request, HttpSession httpSession, XFormsProcessor processor, String sessionkey) { Map servletMap = new HashMap(); servletMap.put(WebProcessor.SESSION_ID, sessionkey); processor.setContextParam(XFormsPr...
public static void setContextParams(HttpServletRequest request, HttpSession httpSession, XFormsProcessor processor, String sessionkey) { Map servletMap = new HashMap(); servletMap.put(WebProcessor.SESSION_ID, sessionkey); processor.setContextParam(XFormsPr...
diff --git a/PreviewImpl/src/org/gephi/preview/supervisors/EdgeSupervisorImpl.java b/PreviewImpl/src/org/gephi/preview/supervisors/EdgeSupervisorImpl.java index 350b61c3b..c3461db80 100644 --- a/PreviewImpl/src/org/gephi/preview/supervisors/EdgeSupervisorImpl.java +++ b/PreviewImpl/src/org/gephi/preview/supervisors/Edg...
true
true
public void addEdge(EdgeImpl edge) { getSupervisedEdges().add(edge); colorEdge(edge); colorEdgeLabel(edge); updateEdgeLabelValue(edge); adjustEdgeLabelFont(edge); if (visualizationController == null) { visualizationController = Lookup.getDefault().lookup(...
public void addEdge(EdgeImpl edge) { getSupervisedEdges().add(edge); colorEdge(edge); colorEdgeLabel(edge); updateEdgeLabelValue(edge); adjustEdgeLabelFont(edge); if (visualizationController == null) { visualizationController = Lookup.getDefault().lookup(...
diff --git a/raoa-client/src/main/java/ch/bergturbenthal/raoa/provider/activity/ShareReceiveActivity.java b/raoa-client/src/main/java/ch/bergturbenthal/raoa/provider/activity/ShareReceiveActivity.java index 9abb879..b9b70d4 100644 --- a/raoa-client/src/main/java/ch/bergturbenthal/raoa/provider/activity/ShareReceiveActi...
true
true
protected void onCreate(final Bundle savedInstance) { super.onCreate(savedInstance); final Intent intent = getIntent(); final String action = intent.getAction(); final String type = intent.getType(); final Bundle extras = intent.getExtras(); final String basename = (Build.MANUFACTURER + "-" + Build.MODEL +...
protected void onCreate(final Bundle savedInstance) { super.onCreate(savedInstance); final Intent intent = getIntent(); final String action = intent.getAction(); final String type = intent.getType(); final Bundle extras = intent.getExtras(); final String basename = (Build.MANUFACTURER + "-" + Build.MODEL +...
diff --git a/WEB-INF/src/org/cdlib/xtf/crossQuery/CrossQuery.java b/WEB-INF/src/org/cdlib/xtf/crossQuery/CrossQuery.java index 513ccdcb..7fb23fcb 100644 --- a/WEB-INF/src/org/cdlib/xtf/crossQuery/CrossQuery.java +++ b/WEB-INF/src/org/cdlib/xtf/crossQuery/CrossQuery.java @@ -1,687 +1,688 @@ package org.cdlib.xtf.crossQ...
true
true
protected String stepSetup( HttpServletRequest req, HttpServletResponse res) throws IOException { String baseUrl = res.encodeURL( getRequestURL(req) ); String step = req.getParameter( "debugStep" ); if( step == null || step.length() ...
protected String stepSetup( HttpServletRequest req, HttpServletResponse res) throws IOException { String baseUrl = res.encodeURL( getRequestURL(req) ); baseUrl = baseUrl.replaceAll("\"", "&quot;"); // because we're embedding in HTML ...
diff --git a/modules/dCache/org/dcache/auth/AuthorizationRecord.java b/modules/dCache/org/dcache/auth/AuthorizationRecord.java index a6aeff8895..73c04ca39f 100644 --- a/modules/dCache/org/dcache/auth/AuthorizationRecord.java +++ b/modules/dCache/org/dcache/auth/AuthorizationRecord.java @@ -1,524 +1,525 @@ /* * Autho...
true
true
public AuthorizationRecord(LoginReply login) { boolean hasUid = false; List<GroupList> groupLists = new LinkedList<GroupList>(); GroupList primaryGroupList = new GroupList(); primaryGroupList.setAuthRecord(this); primaryGroupList.setGroups(new ArrayList<Group>()); ...
public AuthorizationRecord(LoginReply login) { boolean hasUid = false; List<GroupList> groupLists = new LinkedList<GroupList>(); GroupList primaryGroupList = new GroupList(); primaryGroupList.setAuthRecord(this); primaryGroupList.setGroups(new ArrayList<Group>()); ...
diff --git a/src/main/java/org/cloudifysource/quality/iTests/test/cli/cloudify/cloud/byon/BootstrapManagementScriptTest.java b/src/main/java/org/cloudifysource/quality/iTests/test/cli/cloudify/cloud/byon/BootstrapManagementScriptTest.java index faa91872..d516a2fa 100644 --- a/src/main/java/org/cloudifysource/quality/iT...
true
true
private void runBootstrapScript(final String mode) throws Exception { EnvironmentFileBuilder environmentFileBuilder = new EnvironmentFileBuilder(ScriptLanguages.LINUX_SHELL, new HashMap<String, String>()); environmentFileBuilder.exportVar("LUS_IP_ADDRESS", "127.0.0.1:" + Openspaces...
private void runBootstrapScript(final String mode) throws Exception { EnvironmentFileBuilder environmentFileBuilder = new EnvironmentFileBuilder(ScriptLanguages.LINUX_SHELL, new HashMap<String, String>()); environmentFileBuilder.exportVar("LUS_IP_ADDRESS", "127.0.0.1:" + Openspaces...
diff --git a/src/main/java/org/freenetproject/plugin/infocalypse_webui/ui/fcp/Unknown.java b/src/main/java/org/freenetproject/plugin/infocalypse_webui/ui/fcp/Unknown.java index 95edab5..1fc959b 100644 --- a/src/main/java/org/freenetproject/plugin/infocalypse_webui/ui/fcp/Unknown.java +++ b/src/main/java/org/freenetproj...
true
true
public SimpleFieldSet reply(SimpleFieldSet params) { SimpleFieldSet sfs = new SimpleFieldSet(true); sfs.putOverwrite("Message", "Error"); sfs.putOverwrite("Description", "Unrecognized message type."); return sfs; }
public SimpleFieldSet reply(SimpleFieldSet params) { SimpleFieldSet sfs = new SimpleFieldSet(true); sfs.putOverwrite("Message", "Error"); sfs.putOverwrite("Description", "Unrecognized message type '" + params.get("Message") + "'."); return sfs; }
diff --git a/src/ribbonserver/RibbonProtocol.java b/src/ribbonserver/RibbonProtocol.java index 89753dd..cf78830 100644 --- a/src/ribbonserver/RibbonProtocol.java +++ b/src/ribbonserver/RibbonProtocol.java @@ -1,708 +1,706 @@ /** * This file is part of RibbonServer application (check README). * Copyright (C) 2012-2...
false
true
private void InitProtocol() { /** CONNECTION CONTROL COMMANDS [LEVEL_0 SUPPORT] **/ /** * RIBBON_NCTL_INIT: commandlet * Client and others application send this command to register * this connection. */ this.RIBBON_COMMANDS.add(new Comman...
private void InitProtocol() { /** CONNECTION CONTROL COMMANDS [LEVEL_0 SUPPORT] **/ /** * RIBBON_NCTL_INIT: commandlet * Client and others application send this command to register * this connection. */ this.RIBBON_COMMANDS.add(new Comman...
diff --git a/src/com/android/camera/ui/FaceView.java b/src/com/android/camera/ui/FaceView.java index d67b835e4..0596ce784 100644 --- a/src/com/android/camera/ui/FaceView.java +++ b/src/com/android/camera/ui/FaceView.java @@ -1,330 +1,330 @@ /* * Copyright (C) 2011 The Android Open Source Project * * Licensed und...
false
true
protected void onDraw(Canvas canvas) { if (!mBlocked && (mFaces != null) && (mFaces.length > 0)) { int rw, rh; if (mUncroppedWidth == 0) { // TODO: This check is temporary. It needs to be removed after the // refactoring is fully functioning. ...
protected void onDraw(Canvas canvas) { if (!mBlocked && (mFaces != null) && (mFaces.length > 0)) { int rw, rh; if (mUncroppedWidth == 0) { // TODO: This check is temporary. It needs to be removed after the // refactoring is fully functioning. ...
diff --git a/src/java/org/rapidcontext/app/web/AppWebService.java b/src/java/org/rapidcontext/app/web/AppWebService.java index d0a7fb2..aca1b8c 100644 --- a/src/java/org/rapidcontext/app/web/AppWebService.java +++ b/src/java/org/rapidcontext/app/web/AppWebService.java @@ -1,473 +1,482 @@ /* * RapidContext <http://ww...
true
true
protected String processAppTemplate(Binary template, String baseUrl, String appId) throws IOException { InputStreamReader is = new InputStreamReader(template.openStream(), "UTF-8"); BufferedReader reader = new BufferedReader(is); StringBuilder res = new StringBuilder(); String l...
protected String processAppTemplate(Binary template, String baseUrl, String appId) throws IOException { InputStreamReader is = new InputStreamReader(template.openStream(), "UTF-8"); BufferedReader reader = new BufferedReader(is); StringBuilder res = new StringBuilder(); String l...
diff --git a/src/main/java/com/redhat/contentspec/client/commands/CheckoutCommand.java b/src/main/java/com/redhat/contentspec/client/commands/CheckoutCommand.java index a8bc041..19b5b53 100644 --- a/src/main/java/com/redhat/contentspec/client/commands/CheckoutCommand.java +++ b/src/main/java/com/redhat/contentspec/clie...
true
true
public void process(final RESTManager restManager, final ErrorLoggerManager elm, final RESTUserV1 user) { // Check that an ID was entered if (ids.size() == 0) { printError(Constants.ERROR_NO_ID_MSG, false); shutdown(Constants.EXIT_ARGUMENT_ERROR); } else if (ids.size() > 1) { printError(Constants.ERROR...
public void process(final RESTManager restManager, final ErrorLoggerManager elm, final RESTUserV1 user) { // Check that an ID was entered if (ids.size() == 0) { printError(Constants.ERROR_NO_ID_MSG, false); shutdown(Constants.EXIT_ARGUMENT_ERROR); } else if (ids.size() > 1) { printError(Constants.ERROR...
diff --git a/plugins/Gaussian/source/edu/valelab/GaussianFit/DriftCorrector.java b/plugins/Gaussian/source/edu/valelab/GaussianFit/DriftCorrector.java index ea968dde..06a41e54 100644 --- a/plugins/Gaussian/source/edu/valelab/GaussianFit/DriftCorrector.java +++ b/plugins/Gaussian/source/edu/valelab/GaussianFit/DriftCorr...
true
true
public void unJitter(final MyRowData rowData, int maxFrames, int maxSpots) { // TODO: instead of a fixed number of frames, go for a certain number of spots // Number of frames could be limited as well final int maxNrFrames = maxFrames; final int maxNrSpots = maxSpots; if (rowData.spot...
public void unJitter(final MyRowData rowData, int maxFrames, int maxSpots) { // TODO: instead of a fixed number of frames, go for a certain number of spots // Number of frames could be limited as well final int maxNrFrames = maxFrames; final int maxNrSpots = maxSpots; if (rowData.spot...
diff --git a/src/main/java/com/titankingdoms/nodinchan/titanchat/debug/Debugger.java b/src/main/java/com/titankingdoms/nodinchan/titanchat/debug/Debugger.java index 53fbce9..b56fc1d 100644 --- a/src/main/java/com/titankingdoms/nodinchan/titanchat/debug/Debugger.java +++ b/src/main/java/com/titankingdoms/nodinchan/titan...
true
true
public static void load(TitanChat instance) { String debugs = instance.getConfig().getString("debug"); if (!debugs.equals("none")) { if (debugs.equals("all") || debugs.equals("full")) { Debugger.check.add(666); System.out.print("debugging EVERYTHING"); } else { String[] sIds = debugs.split(","); ...
public static void load(TitanChat instance) { String debugs = instance.getConfig().getString("debug", "none"); if (!debugs.equals("none")) { if (debugs.equals("all") || debugs.equals("full")) { Debugger.check.add(666); System.out.print("debugging EVERYTHING"); } else { String[] sIds = debugs.spli...
diff --git a/src/main/java/tconstruct/smeltery/TinkerSmeltery.java b/src/main/java/tconstruct/smeltery/TinkerSmeltery.java index ae32dd2ef..6c511a827 100644 --- a/src/main/java/tconstruct/smeltery/TinkerSmeltery.java +++ b/src/main/java/tconstruct/smeltery/TinkerSmeltery.java @@ -1,1144 +1,1144 @@ package tconstruct.s...
false
true
public void preInit (FMLPreInitializationEvent event) { MinecraftForge.EVENT_BUS.register(new TinkerSmelteryEvents()); TinkerSmeltery.buckets = new FilledBucket(BlockUtils.getBlockFromItem(TinkerSmeltery.buckets)); GameRegistry.registerItem(TinkerSmeltery.buckets, "buckets"); T...
public void preInit (FMLPreInitializationEvent event) { MinecraftForge.EVENT_BUS.register(new TinkerSmelteryEvents()); TinkerSmeltery.buckets = new FilledBucket(BlockUtils.getBlockFromItem(TinkerSmeltery.buckets)); GameRegistry.registerItem(TinkerSmeltery.buckets, "buckets"); T...
diff --git a/app/test/com/feedback2me/service/FeedbackCollectionServiceTest.java b/app/test/com/feedback2me/service/FeedbackCollectionServiceTest.java index dff3afe..3999fec 100644 --- a/app/test/com/feedback2me/service/FeedbackCollectionServiceTest.java +++ b/app/test/com/feedback2me/service/FeedbackCollectionServiceT...
true
true
public void shouldReturnInMemoryDBInstanceWhenResetWithMails() { FeedbackCollectionService service = new FeedbackCollectionService(); service.run(); }
public void shouldReturnInMemoryDBInstanceWhenResetWithMails() { // FeedbackCollectionService service = new FeedbackCollectionService(); // service.run(); }
diff --git a/src/com/android/settings/RingerVolumePreference.java b/src/com/android/settings/RingerVolumePreference.java index c6dfe180e..0dd1e890c 100644 --- a/src/com/android/settings/RingerVolumePreference.java +++ b/src/com/android/settings/RingerVolumePreference.java @@ -1,454 +1,454 @@ /* * Copyright (C) 2008 ...
false
true
protected void onBindDialogView(View view) { super.onBindDialogView(view); for (int i = 0; i < SEEKBAR_ID.length; i++) { SeekBar seekBar = (SeekBar) view.findViewById(SEEKBAR_ID[i]); mSeekBars[i] = seekBar; if (SEEKBAR_TYPE[i] == AudioManager.STREAM_MUSIC) { ...
protected void onBindDialogView(View view) { super.onBindDialogView(view); for (int i = 0; i < SEEKBAR_ID.length; i++) { SeekBar seekBar = (SeekBar) view.findViewById(SEEKBAR_ID[i]); mSeekBars[i] = seekBar; if (SEEKBAR_TYPE[i] == AudioManager.STREAM_MUSIC) { ...
diff --git a/src/java/org/apache/hadoop/mapred/ReduceTaskRunner.java b/src/java/org/apache/hadoop/mapred/ReduceTaskRunner.java index dfbd8b7a5..75e58ce8f 100644 --- a/src/java/org/apache/hadoop/mapred/ReduceTaskRunner.java +++ b/src/java/org/apache/hadoop/mapred/ReduceTaskRunner.java @@ -1,554 +1,555 @@ /** * Copyri...
true
true
public boolean prepare() throws IOException { // cleanup from failures this.mapOutputFile.removeAll(reduceTask.getTaskId()); final int numOutputs = reduceTask.getNumMaps(); List neededOutputs = new ArrayList(numOutputs); List knownOutputs = new ArrayList(100); ...
public boolean prepare() throws IOException { // cleanup from failures this.mapOutputFile.removeAll(reduceTask.getTaskId()); final int numOutputs = reduceTask.getNumMaps(); List neededOutputs = new ArrayList(numOutputs); List knownOutputs = new ArrayList(100); ...
diff --git a/src/main/java/org/infoscoop/widgetconf/WidgetConfUtil.java b/src/main/java/org/infoscoop/widgetconf/WidgetConfUtil.java index 6266686c..91e376ac 100644 --- a/src/main/java/org/infoscoop/widgetconf/WidgetConfUtil.java +++ b/src/main/java/org/infoscoop/widgetconf/WidgetConfUtil.java @@ -1,438 +1,440 @@ pack...
false
true
public static JSONObject gadgetJSONtoPortalGadgetJSON( JSONObject jsonObj ) throws JSONException { if(!jsonObj.has("Header")) jsonObj.put("Header", new JSONObject()); if(jsonObj.has("ModulePrefs")){ JSONObject modulePrefs = jsonObj.getJSONObject("ModulePrefs"); if(!modulePrefs.has("height")){ jsonObj....
public static JSONObject gadgetJSONtoPortalGadgetJSON( JSONObject jsonObj ) throws JSONException { if(!jsonObj.has("Header")) jsonObj.put("Header", new JSONObject()); if(jsonObj.has("ModulePrefs")){ JSONObject modulePrefs = jsonObj.getJSONObject("ModulePrefs"); if(!modulePrefs.has("height")){ jsonObj....
diff --git a/src/main/java/net/md_5/bungee/command/CommandMotd.java b/src/main/java/net/md_5/bungee/command/CommandMotd.java index c9e25185..3d26c066 100644 --- a/src/main/java/net/md_5/bungee/command/CommandMotd.java +++ b/src/main/java/net/md_5/bungee/command/CommandMotd.java @@ -1,31 +1,31 @@ package net.md_5.bunge...
true
true
public void execute(CommandSender sender, String[] args) { if (getPermission(sender) != Permission.ADMIN) { sender.sendMessage(ChatColor.RED + "You do not have permission to use this command"); } else { String newMOTD = ""; for (String s : args...
public void execute(CommandSender sender, String[] args) { if (getPermission(sender) != Permission.ADMIN) { sender.sendMessage(ChatColor.RED + "You do not have permission to use this command"); } else { String newMOTD = ""; for (String s : args...
diff --git a/src/edu/nouri/photoReX/Server.java b/src/edu/nouri/photoReX/Server.java index 16486d5..fa9d03f 100644 --- a/src/edu/nouri/photoReX/Server.java +++ b/src/edu/nouri/photoReX/Server.java @@ -1,96 +1,98 @@ package edu.nouri.photoReX; import java.text.DateFormat; import java.text.SimpleDateFormat; import...
true
true
public void run() { System.out.println("Learning server started..."); long sleepTime = 1000; //how many miliseconds to wait before reconnecting to redis server while(true) { try{ RecommendationTask task = new RecommendationTask( redis.blpop(0, "users:recommend:queue")); System.out.pri...
public void run() { System.out.println("Learning server started..."); long sleepTime = 1000; //how many miliseconds to wait before reconnecting to redis server while(true) { try{ RecommendationTask task = new RecommendationTask( redis.blpop(0, "users:recommend:queue")); System.out.pri...
diff --git a/src/se/kth/maandree/utilsay/Wordwrap.java b/src/se/kth/maandree/utilsay/Wordwrap.java index 639b749..f9ea1f7 100644 --- a/src/se/kth/maandree/utilsay/Wordwrap.java +++ b/src/se/kth/maandree/utilsay/Wordwrap.java @@ -1,204 +1,204 @@ /** * Wordwrap — Wraps text make words fit, unsplitted, sida an area *...
true
true
public static void wrap(final byte[] buf, final int len, final int width) { final byte[] b = new byte[buf.length]; final int[] map = new int[buf.length]; int bi = 0, d, cols = 0, w = width; int indent = -1, indentc = 0; for (int i = 0; i <= len;) if ((d = (i == len ? -1 : (buf[i++] & 255))) == 033) ...
public static void wrap(final byte[] buf, final int len, final int width) { final byte[] b = new byte[buf.length]; final int[] map = new int[buf.length]; int bi = 0, d, cols = 0, w = width; int indent = -1, indentc = 0; for (int i = 0; i <= len;) if ((d = (i == len ? -1 : (buf[i++] & 255))) == 033) ...
diff --git a/src/com/android/calendar/AlertActivity.java b/src/com/android/calendar/AlertActivity.java index dcf91862..2a041bf9 100644 --- a/src/com/android/calendar/AlertActivity.java +++ b/src/com/android/calendar/AlertActivity.java @@ -1,328 +1,327 @@ /* * Copyright (C) 2007 The Android Open Source Project * ...
true
true
protected void onCreate(Bundle icicle) { super.onCreate(icicle); setContentView(R.layout.alert_activity); setTitle(R.string.alert_title); WindowManager.LayoutParams lp = getWindow().getAttributes(); lp.width = ViewGroup.LayoutParams.FILL_PARENT; lp.height = ViewGrou...
protected void onCreate(Bundle icicle) { super.onCreate(icicle); setContentView(R.layout.alert_activity); setTitle(R.string.alert_title); WindowManager.LayoutParams lp = getWindow().getAttributes(); lp.width = ViewGroup.LayoutParams.FILL_PARENT; lp.height = ViewGrou...