Datasets:

diff
stringlengths
262
553k
is_single_chunk
bool
2 classes
is_single_function
bool
1 class
buggy_function
stringlengths
20
391k
fixed_function
stringlengths
0
392k
diff --git a/src/org/yogpstop/qp/TilePump.java b/src/org/yogpstop/qp/TilePump.java index 37bb683..53ec452 100644 --- a/src/org/yogpstop/qp/TilePump.java +++ b/src/org/yogpstop/qp/TilePump.java @@ -1,522 +1,523 @@ package org.yogpstop.qp; import java.util.ArrayList; import java.util.LinkedList; import java.util.Li...
false
true
private void S_searchLiquid(int x, int y, int z) { this.count = cp = cg = 0; int chunk_side_x, chunk_side_z; this.cx = x; this.cy = y; this.cz = z; this.yOffset = y & 0xFFFFFFF0; this.currentHeight = Y_SIZE - 1; Box b = S_getBox(); if (b != null && b.isInitialized()) { chunk_side_x = 1 + (b.xMax >...
private void S_searchLiquid(int x, int y, int z) { this.count = cp = cg = 0; int chunk_side_x, chunk_side_z; this.cx = x; this.cy = y; this.cz = z; this.yOffset = y & 0xFFFFFFF0; this.currentHeight = Y_SIZE - 1; Box b = S_getBox(); if (b != null && b.isInitialized()) { chunk_side_x = 1 + (b.xMax >...
diff --git a/src/main/java/org/telscenter/sail/webapp/presentation/web/controllers/teacher/project/ProjectInfoController.java b/src/main/java/org/telscenter/sail/webapp/presentation/web/controllers/teacher/project/ProjectInfoController.java index c6b9313..b6ee1b1 100644 --- a/src/main/java/org/telscenter/sail/webapp/pr...
true
true
protected ModelAndView handleRequestInternal(HttpServletRequest request, HttpServletResponse response) throws Exception { String projectIdStr = request.getParameter(PROJECTID_PARAM_NAME); Project project = projectService.getById(projectIdStr); User user = ControllerUtil.getSignedInUser(); Set<String> telsli...
protected ModelAndView handleRequestInternal(HttpServletRequest request, HttpServletResponse response) throws Exception { String projectIdStr = request.getParameter(PROJECTID_PARAM_NAME); Project project = projectService.getById(projectIdStr); User user = ControllerUtil.getSignedInUser(); Set<String> telsli...
diff --git a/plugins/org.jboss.tools.forge.core/src/org/jboss/tools/forge/core/process/ForgeRuntimeProcess.java b/plugins/org.jboss.tools.forge.core/src/org/jboss/tools/forge/core/process/ForgeRuntimeProcess.java index 56d5d006..cdad3a35 100644 --- a/plugins/org.jboss.tools.forge.core/src/org/jboss/tools/forge/core/pro...
true
true
public ForgeRuntimeProcess(ILaunch launch, Process process, String name, Map<Object, Object> attributes) { super(launch, process, name, attributes); }
public ForgeRuntimeProcess(ILaunch launch, Process process, String name, Map<String, String> attributes) { super(launch, process, name, attributes); }
diff --git a/src/org/yogpstop/qp/ContainerMover.java b/src/org/yogpstop/qp/ContainerMover.java index dae6f95..e640b50 100644 --- a/src/org/yogpstop/qp/ContainerMover.java +++ b/src/org/yogpstop/qp/ContainerMover.java @@ -1,184 +1,191 @@ package org.yogpstop.qp; import org.yogpstop.qp.client.GuiMover; import net....
true
true
void moveEnchant(short eid) { if (!checkTo(eid)) return; ItemStack is; NBTTagList list; if (!this.ep.capabilities.isCreativeMode) { is = this.craftMatrix.getStackInSlot(0); list = is.getEnchantmentTagList(); if (list == null) return; for (int i = 0; i < list.tagCount(); i++) { short lvl = ((NBT...
void moveEnchant(short eid) { if (!checkTo(eid)) return; ItemStack is; NBTTagList list; if (!this.ep.capabilities.isCreativeMode) { is = this.craftMatrix.getStackInSlot(0); list = is.getEnchantmentTagList(); if (list == null) return; for (int i = 0; i < list.tagCount(); i++) { short lvl = ((NBT...
diff --git a/src/org/jruby/ast/RegexpNode.java b/src/org/jruby/ast/RegexpNode.java index 47f25a66f..00fbc242e 100644 --- a/src/org/jruby/ast/RegexpNode.java +++ b/src/org/jruby/ast/RegexpNode.java @@ -1,98 +1,98 @@ /* ***** BEGIN LICENSE BLOCK ***** * Version: CPL 1.0/GPL 2.0/LGPL 2.1 * * The contents of this ...
false
true
public RegexpPattern getPattern(Ruby runtime, int extra_options) throws PatternSyntaxException { if (pattern == null) { if((options & 256) == 256 ) { pattern = RegexpFactory.getFactory("java").createPattern(value, options & ~256, (options&~256) | extra_options); } els...
public RegexpPattern getPattern(Ruby runtime, int extra_options) throws PatternSyntaxException { if (pattern == null) { if((options & 256) == 256 ) { pattern = RegexpFactory.getFactory("java").createPattern(value, (options&~256) | extra_options, 0); } else { ...
diff --git a/src/org/opensolaris/opengrok/analysis/Definitions.java b/src/org/opensolaris/opengrok/analysis/Definitions.java index 910cff9b..aee6c47d 100644 --- a/src/org/opensolaris/opengrok/analysis/Definitions.java +++ b/src/org/opensolaris/opengrok/analysis/Definitions.java @@ -1,164 +1,171 @@ /* * CDDL HEADER S...
true
true
void addTag(int line, String symbol, String type, String text) { tags.add(new Tag(line, symbol, type, text)); Set<Integer> lines = symbols.get(symbol); if (lines == null) { lines = new HashSet<Integer>(); symbols.put(symbol, lines); } lines.add(line); ...
void addTag(int line, String symbol, String type, String text) { // The strings are frequently repeated (a symbol can be used in // multiple definitions, multiple definitions can have the same type, // one line can contain multiple definitions). Intern them to minimize // the space c...
diff --git a/tests/no/uib/cipr/matrix/DenseMatrixTest.java b/tests/no/uib/cipr/matrix/DenseMatrixTest.java index 933fb52..80cd4de 100644 --- a/tests/no/uib/cipr/matrix/DenseMatrixTest.java +++ b/tests/no/uib/cipr/matrix/DenseMatrixTest.java @@ -1,76 +1,76 @@ /* * Copyright (C) 2003-2006 Bjørn-Ove Heimsund * * T...
true
true
public void testIssue13(){ Vector bv = Matrices.random(100); Matrix am = Matrices.random(100, 100); Vector xv = new DenseVector(am.numColumns()); for (int x = 0; x < am.numColumns(); x++) { xv.set(x, 1); } xv = Matrices.random(xv.size()); xv = am.solve(bv, xv); }
public void testIssue13(){ Vector bv = Matrices.random(100); Matrix am = Matrices.random(100, 50); Vector xv = new DenseVector(am.numColumns()); for (int x = 0; x < am.numColumns(); x++) { xv.set(x, 1); } xv = Matrices.random(xv.size()); xv = am.solve(bv, xv); }
diff --git a/src/org/dylanfoundry/deft/filetypes/dylan/highlight/DylanSyntaxAnnotator.java b/src/org/dylanfoundry/deft/filetypes/dylan/highlight/DylanSyntaxAnnotator.java index bcc0eb9..b98b9c3 100644 --- a/src/org/dylanfoundry/deft/filetypes/dylan/highlight/DylanSyntaxAnnotator.java +++ b/src/org/dylanfoundry/deft/fil...
true
true
public void annotate(@NotNull PsiElement element, @NotNull AnnotationHolder holder) { if (element instanceof DylanVariableName) { DylanVariableName variable = (DylanVariableName) element; Annotation annotation = holder.createInfoAnnotation(element, null); String name = variable.getText(); ...
public void annotate(@NotNull PsiElement element, @NotNull AnnotationHolder holder) { if (element instanceof DylanVariableName) { DylanVariableName variable = (DylanVariableName) element; Annotation annotation = holder.createInfoAnnotation(element, null); String name = variable.getText(); ...
diff --git a/grails-datastore-core/src/main/groovy/org/grails/datastore/mapping/model/AbstractMappingContext.java b/grails-datastore-core/src/main/groovy/org/grails/datastore/mapping/model/AbstractMappingContext.java index c6a04ee9..775448ae 100644 --- a/grails-datastore-core/src/main/groovy/org/grails/datastore/mappin...
true
true
private PersistentEntity addPersistentEntityInternal(Class javaClass, boolean isExternal) { PersistentEntity entity = createPersistentEntity(javaClass); entity.setExternal(isExternal); persistentEntities.remove(entity); persistentEntities.add(entity); persistentEntitiesByName.put(en...
private PersistentEntity addPersistentEntityInternal(Class javaClass, boolean isExternal) { PersistentEntity entity = createPersistentEntity(javaClass); if (entity == null) { return null; } entity.setExternal(isExternal); persistentEntities.remove(entity)...
diff --git a/source/WISBenchmarkClient/src/de/tum/in/dbs/project/wis/Main.java b/source/WISBenchmarkClient/src/de/tum/in/dbs/project/wis/Main.java index 72463d6..ebd21db 100644 --- a/source/WISBenchmarkClient/src/de/tum/in/dbs/project/wis/Main.java +++ b/source/WISBenchmarkClient/src/de/tum/in/dbs/project/wis/Main.java...
true
true
public static void main(String[] args) { // Check the params if (args.length != 5) { printUsage(); return; } String fileName = ""; char delimiter; int sleepTimeSec = 0; int amountClients = 0; int amountCalls = 0; try { fileName = args[0]; delimiter = args[1].charAt(0); sleepTimeSec = I...
public static void main(String[] args) { // Check the params if (args.length != 5) { printUsage(); return; } String fileName = ""; char delimiter; int sleepTimeSec = 0; int amountClients = 0; int amountCalls = 0; try { fileName = args[0]; delimiter = args[1].charAt(0); sleepTimeSec = I...
diff --git a/src/com/halbae87/koreanbasicime/SoftKeyboard.java b/src/com/halbae87/koreanbasicime/SoftKeyboard.java index d7a6329..6885cef 100644 --- a/src/com/halbae87/koreanbasicime/SoftKeyboard.java +++ b/src/com/halbae87/koreanbasicime/SoftKeyboard.java @@ -1,1099 +1,1108 @@ /* * Copyright (C) 2008-2009 Google In...
false
true
private void handleCharacter(int primaryCode, int[] keyCodes) { int keyState = InputTables.KEYSTATE_NONE; if (isInputViewShown()) { if (mInputView.isShifted()) { primaryCode = Character.toUpperCase(primaryCode); keyState |= InputTables.KEYSTATE_SHIFT; ...
private void handleCharacter(int primaryCode, int[] keyCodes) { int keyState = InputTables.KEYSTATE_NONE; if (isInputViewShown()) { if (mInputView.isShifted()) { primaryCode = Character.toUpperCase(primaryCode); keyState |= InputTables.KEYSTATE_SHIFT; ...
diff --git a/org.spearce.jgit/src/org/spearce/jgit/revwalk/RewriteTreeFilter.java b/org.spearce.jgit/src/org/spearce/jgit/revwalk/RewriteTreeFilter.java index 587d6d21..a5edbf00 100644 --- a/org.spearce.jgit/src/org/spearce/jgit/revwalk/RewriteTreeFilter.java +++ b/org.spearce.jgit/src/org/spearce/jgit/revwalk/RewriteT...
true
true
public boolean include(final RevWalk walker, final RevCommit c) throws StopWalkException, MissingObjectException, IncorrectObjectTypeException, IOException { // Reset the tree filter to scan this commit and parents. // final RevCommit[] pList = c.parents; final int nParents = pList.length; final TreeWa...
public boolean include(final RevWalk walker, final RevCommit c) throws StopWalkException, MissingObjectException, IncorrectObjectTypeException, IOException { // Reset the tree filter to scan this commit and parents. // final RevCommit[] pList = c.parents; final int nParents = pList.length; final TreeWa...
diff --git a/src/main/java/com/redhat/ceylon/compiler/js/InvocationGenerator.java b/src/main/java/com/redhat/ceylon/compiler/js/InvocationGenerator.java index 7f9be6e7..bb8845a2 100644 --- a/src/main/java/com/redhat/ceylon/compiler/js/InvocationGenerator.java +++ b/src/main/java/com/redhat/ceylon/compiler/js/Invocation...
true
true
void generateInvocation(Tree.InvocationExpression that) { if (that.getNamedArgumentList()!=null) { Tree.NamedArgumentList argList = that.getNamedArgumentList(); if (gen.isInDynamicBlock() && that.getPrimary() instanceof Tree.MemberOrTypeExpression && ((Tree.Member...
void generateInvocation(Tree.InvocationExpression that) { if (that.getNamedArgumentList()!=null) { Tree.NamedArgumentList argList = that.getNamedArgumentList(); if (gen.isInDynamicBlock() && that.getPrimary() instanceof Tree.MemberOrTypeExpression && ((Tree.Member...
diff --git a/src/watson/BlockEditSet.java b/src/watson/BlockEditSet.java index 2bcc472..2d293c4 100644 --- a/src/watson/BlockEditSet.java +++ b/src/watson/BlockEditSet.java @@ -1,483 +1,483 @@ package watson; import java.io.BufferedReader; import java.io.BufferedWriter; import java.io.File; import java.io.FileRe...
true
true
public void drawVectors() { DisplaySettings settings = Controller.instance.getDisplaySettings(); if (settings.areVectorsShown() && !_edits.isEmpty()) { final Vec3Pool pool = ModLoader.getMinecraftInstance().theWorld.getWorldVec3Pool(); final Tessellator tess = Tessellator.instance; tes...
public void drawVectors() { DisplaySettings settings = Controller.instance.getDisplaySettings(); if (settings.areVectorsShown() && !_edits.isEmpty()) { final Vec3Pool pool = ModLoader.getMinecraftInstance().theWorld.getWorldVec3Pool(); final Tessellator tess = Tessellator.instance; tes...
diff --git a/core/src/main/java/org/apache/mahout/cf/taste/hadoop/item/RecommenderJob.java b/core/src/main/java/org/apache/mahout/cf/taste/hadoop/item/RecommenderJob.java index bcbb741e..983374ff 100644 --- a/core/src/main/java/org/apache/mahout/cf/taste/hadoop/item/RecommenderJob.java +++ b/core/src/main/java/org/apac...
true
true
public int run(String[] args) throws IOException, ClassNotFoundException, InterruptedException { addInputOption(); addOutputOption(); addOption("numRecommendations", "n", "Number of recommendations per user", String.valueOf(AggregateAndRecommendReducer.DEFAULT_NUM_RECOMMENDATIONS)); addOption...
public int run(String[] args) throws IOException, ClassNotFoundException, InterruptedException { addInputOption(); addOutputOption(); addOption("numRecommendations", "n", "Number of recommendations per user", String.valueOf(AggregateAndRecommendReducer.DEFAULT_NUM_RECOMMENDATIONS)); addOption...
diff --git a/src/codemate/builder/MakefileWriter.java b/src/codemate/builder/MakefileWriter.java index 06a46e9..f382458 100644 --- a/src/codemate/builder/MakefileWriter.java +++ b/src/codemate/builder/MakefileWriter.java @@ -1,241 +1,241 @@ package codemate.builder; /** * MakefileWriter * * This class writes...
true
true
public static void write(Project project) { // --------------------------------------------------------------------- String content = ""; content += "# ------------------------------------------------------------------------------\n"+ "# MODIFIABLE SECTION\n"+ "#\n"+ ...
public static void write(Project project) { // --------------------------------------------------------------------- String content = ""; content += "# ------------------------------------------------------------------------------\n"+ "# MODIFIABLE SECTION\n"+ "#\n"+ ...
diff --git a/persistent-disks/src/main/java/eu/stratuslab/storage/disk/utils/DiskUtils.java b/persistent-disks/src/main/java/eu/stratuslab/storage/disk/utils/DiskUtils.java index 7d61fba..9207ba4 100644 --- a/persistent-disks/src/main/java/eu/stratuslab/storage/disk/utils/DiskUtils.java +++ b/persistent-disks/src/main/...
true
true
public static void restartServer() throws IOException { File cfgFile = new File("/etc/iet/iet.conf"); File initFile = new File("/etc/init.d/iscsi-target"); if (cfgFile.canWrite()) { String contents = DiskUtils.createTargetConfiguration(); DiskUtils.writeStringToFil...
public static void restartServer() throws IOException { File cfgFile = new File("/etc/iet/ietd.conf"); File initFile = new File("/etc/init.d/iscsi-target"); if (cfgFile.canWrite()) { String contents = DiskUtils.createTargetConfiguration(); DiskUtils.writeStringToFi...
diff --git a/src/net/invisioncraft/plugins/salesmania/commands/auction/AuctionInfo.java b/src/net/invisioncraft/plugins/salesmania/commands/auction/AuctionInfo.java index 1aac97a..ebc7014 100644 --- a/src/net/invisioncraft/plugins/salesmania/commands/auction/AuctionInfo.java +++ b/src/net/invisioncraft/plugins/salesman...
true
true
public boolean execute(CommandSender sender, Command command, String label, String[] args) { Locale locale = localeHandler.getLocale(sender); List<String> infoList = locale.getMessageList("Auction.info"); infoList = plugin.getAuction().infoReplace(infoList); infoList = plugin.getAuct...
public boolean execute(CommandSender sender, Command command, String label, String[] args) { Locale locale = localeHandler.getLocale(sender); List<String> infoList = locale.getMessageList("Auction.info"); infoList = plugin.getAuction().infoReplace(infoList); infoList = plugin.getAuct...
diff --git a/esb/esb-itests/esb-pax-exam/src/test/java/org/fusesource/esb/itests/pax/exam/karaf/DuplicateBundlesTest.java b/esb/esb-itests/esb-pax-exam/src/test/java/org/fusesource/esb/itests/pax/exam/karaf/DuplicateBundlesTest.java index d58a39bbc..88d69cdfb 100644 --- a/esb/esb-itests/esb-pax-exam/src/test/java/org/f...
true
true
public void testDulicates() throws Exception { FeaturesService featuresService = getOsgiService(FeaturesService.class); Feature[] features = featuresService.listFeatures(); List<BundleInfo> bundles = new ArrayList<BundleInfo>(); Assert.assertNotNull(features); for (Feature f...
public void testDulicates() throws Exception { FeaturesService featuresService = getOsgiService(FeaturesService.class); Feature[] features = featuresService.listFeatures(); List<BundleInfo> bundles = new ArrayList<BundleInfo>(); Assert.assertNotNull(features); for (Feature f...
diff --git a/rwiki-impl/impl/src/java/uk/ac/cam/caret/sakai/rwiki/component/service/impl/RenderServiceImpl.java b/rwiki-impl/impl/src/java/uk/ac/cam/caret/sakai/rwiki/component/service/impl/RenderServiceImpl.java index 94c488c3..f2a05350 100644 --- a/rwiki-impl/impl/src/java/uk/ac/cam/caret/sakai/rwiki/component/servic...
true
true
public String renderPage(RWikiObject rwo, String pageSpace, PageLinkRenderer plr) { long start = System.currentTimeMillis(); String renderedPage = null; String cacheKey = getCacheKey(rwo, plr); try { if (plr.canUseCache() && renderCache != null) { renderedPage = renderCache.getRenderedContent(...
public String renderPage(RWikiObject rwo, String pageSpace, PageLinkRenderer plr) { long start = System.currentTimeMillis(); String renderedPage = null; String cacheKey = getCacheKey(rwo, plr); try { if (plr.canUseCache() && renderCache != null) { renderedPage = renderCache.getRenderedContent(...
diff --git a/plugins/org.eclipse.birt.data/src/org/eclipse/birt/data/engine/api/aggregation/AggregationManager.java b/plugins/org.eclipse.birt.data/src/org/eclipse/birt/data/engine/api/aggregation/AggregationManager.java index 357bccbbb..dc0d9b24c 100644 --- a/plugins/org.eclipse.birt.data/src/org/eclipse/birt/data/eng...
true
true
private void populateExtendedAggrInfo( String name, IAggregation aggrFunc, IConfigurationElement elem, AggrFunctionWrapper aggrWrapper ) { IConfigurationElement[] uiInfo = elem.getChildren( ELEMENT_UIINFO ); assert ( uiInfo != null && uiInfo.length == 1 ); String paramInfo = uiInfo[0].getAttribute( ATTRIBUTE...
private void populateExtendedAggrInfo( String name, IAggregation aggrFunc, IConfigurationElement elem, AggrFunctionWrapper aggrWrapper ) { IConfigurationElement[] uiInfo = elem.getChildren( ELEMENT_UIINFO ); assert ( uiInfo != null && uiInfo.length == 1 ); String paramInfo = uiInfo[0].getAttribute( ATTRIBUTE...
diff --git a/extscript-core-root/extscript-myfaces/src/test/java/org/apache/myfaces/extensions/scripting/core/context/InitialFullScanTest.java b/extscript-core-root/extscript-myfaces/src/test/java/org/apache/myfaces/extensions/scripting/core/context/InitialFullScanTest.java index 3b318a6e..c6c9e710 100644 --- a/extscri...
true
true
public void testInitialFullScan() { try { ScriptingEngine javaEngine = factory.getEngine(ScriptingConst.ENGINE_TYPE_JSF_JAVA); ScriptingEngine groovyEngine = factory.getEngine(ScriptingConst.ENGINE_TYPE_JSF_GROOVY); ScriptingEngine scalaEng...
public void testInitialFullScan() { try { ScriptingEngine javaEngine = factory.getEngine(ScriptingConst.ENGINE_TYPE_JSF_JAVA); ScriptingEngine groovyEngine = factory.getEngine(ScriptingConst.ENGINE_TYPE_JSF_GROOVY); ScriptingEngine scalaEng...
diff --git a/activemq-cpp/openwire-scripts/AmqCppClassesGenerator.java b/activemq-cpp/openwire-scripts/AmqCppClassesGenerator.java index 3ee39ec0..d3fe70eb 100644 --- a/activemq-cpp/openwire-scripts/AmqCppClassesGenerator.java +++ b/activemq-cpp/openwire-scripts/AmqCppClassesGenerator.java @@ -1,317 +1,318 @@ /* * ...
true
true
protected void generateFile(PrintWriter out) throws Exception { generateLicence(out); out.println("#include <activemq/connector/openwire/commands/"+className+".h>"); out.println("#include <activemq/exceptions/NullPointerException.h>"); out.println(""); out.println("using namespace std;"); out.println("using namesp...
protected void generateFile(PrintWriter out) throws Exception { generateLicence(out); out.println("#include <activemq/connector/openwire/commands/"+className+".h>"); out.println("#include <activemq/exceptions/NullPointerException.h>"); out.println(""); out.println("using namespace std;"); out.println("using namesp...
diff --git a/org.eclipse.egit.ui/src/org/eclipse/egit/ui/internal/history/GitHistoryPage.java b/org.eclipse.egit.ui/src/org/eclipse/egit/ui/internal/history/GitHistoryPage.java index cb4f653b..e57fee42 100644 --- a/org.eclipse.egit.ui/src/org/eclipse/egit/ui/internal/history/GitHistoryPage.java +++ b/org.eclipse.egit.u...
false
true
public boolean inputSet() { try { if (trace) GitTraceLocation.getTrace().traceEntry( GitTraceLocation.HISTORYVIEW.getLocation()); if (this.input != null) return true; cancelRefreshJob(); setErrorMessage(null); Object o = super.getInput(); if (o == null) { setErrorMessage(UIText.G...
public boolean inputSet() { try { if (trace) GitTraceLocation.getTrace().traceEntry( GitTraceLocation.HISTORYVIEW.getLocation()); if (this.input != null) return true; cancelRefreshJob(); Object o = super.getInput(); if (o == null) { setErrorMessage(UIText.GitHistoryPage_NoInputMessa...
diff --git a/src/info/plugmania/mazemania/listeners/PlayerListener.java b/src/info/plugmania/mazemania/listeners/PlayerListener.java index e5daa73..4bdfbf5 100644 --- a/src/info/plugmania/mazemania/listeners/PlayerListener.java +++ b/src/info/plugmania/mazemania/listeners/PlayerListener.java @@ -1,430 +1,433 @@ /* ...
false
true
public void onEntityDamageByEntity(EntityDamageByEntityEvent event) { if (event.getDamager() instanceof Player) { if (event.getEntity() instanceof Player) { if (!plugin.mainConf.getBoolean("allowPvP", true)) event.setCancelled(true); } } if (!(event.getEntity() instanceof Player)) { //is a mob ...
public void onEntityDamageByEntity(EntityDamageByEntityEvent event) { if (event.getDamager() instanceof Player) { if (event.getEntity() instanceof Player) { if (!plugin.mainConf.getBoolean("allowPvP", true)) event.setCancelled(true); } } if (!(event.getEntity() instanceof Player)) { //is a mob ...
diff --git a/oneswarm_gwt_ui/src/edu/washington/cs/oneswarm/HealthChecker.java b/oneswarm_gwt_ui/src/edu/washington/cs/oneswarm/HealthChecker.java index 7edba1e..a4df368 100644 --- a/oneswarm_gwt_ui/src/edu/washington/cs/oneswarm/HealthChecker.java +++ b/oneswarm_gwt_ui/src/edu/washington/cs/oneswarm/HealthChecker.java...
true
true
public void run() { try { // Wait until a minute after startup before first run to allow everything to boot Thread.sleep(60*1000); } catch (Exception e) {} while (true) { try { // Inspect the set of running threads and timers for the expected set. Thread [] threads = new Thread[Thread.activeC...
public void run() { try { // Wait until a minute after startup before first run to allow everything to boot Thread.sleep(60*1000); } catch (Exception e) {} while (true) { try { // Inspect the set of running threads and timers for the expected set. Thread [] threads = new Thread[Thread.activeC...
diff --git a/src/org/jraf/android/util/async/TaskFragment.java b/src/org/jraf/android/util/async/TaskFragment.java index 32f466b..ded6ed9 100644 --- a/src/org/jraf/android/util/async/TaskFragment.java +++ b/src/org/jraf/android/util/async/TaskFragment.java @@ -1,149 +1,149 @@ /* * This source is part of the * ...
true
true
private void startTask() { AsyncTask<Void, Void, Boolean> asyncTask = new AsyncTask<Void, Void, Boolean>() { @Override public void onPreExecute() { mTask.onPreExecute(); new Handler(Looper.getMainLooper()).postDelayed(new Runnable() { ...
private void startTask() { AsyncTask<Void, Void, Boolean> asyncTask = new AsyncTask<Void, Void, Boolean>() { @Override public void onPreExecute() { mTask.onPreExecute(); new Handler(Looper.getMainLooper()).postDelayed(new Runnable() { ...
diff --git a/Essentials/src/com/earth2me/essentials/commands/Commandmsg.java b/Essentials/src/com/earth2me/essentials/commands/Commandmsg.java index 60fa04e..fcedbde 100644 --- a/Essentials/src/com/earth2me/essentials/commands/Commandmsg.java +++ b/Essentials/src/com/earth2me/essentials/commands/Commandmsg.java @@ -1,6...
false
true
public void run(Server server, CommandSender sender, String commandLabel, String[] args) throws Exception { if (args.length < 2 || args[0].trim().isEmpty() || args[1].trim().isEmpty()) { throw new NotEnoughArgumentsException(); } String message = getFinalArg(args, 1); String translatedMe = Util.i18n("me...
public void run(Server server, CommandSender sender, String commandLabel, String[] args) throws Exception { if (args.length < 2 || args[0].trim().isEmpty() || args[1].trim().isEmpty()) { throw new NotEnoughArgumentsException(); } String message = getFinalArg(args, 1); String translatedMe = Util.i18n("me...
diff --git a/src/org/jruby/util/CommandlineParser.java b/src/org/jruby/util/CommandlineParser.java index 40afd11e3..2a2f420ab 100644 --- a/src/org/jruby/util/CommandlineParser.java +++ b/src/org/jruby/util/CommandlineParser.java @@ -1,299 +1,303 @@ /***** BEGIN LICENSE BLOCK ***** * Version: CPL 1.0/GPL 2.0/LGPL 2.1...
true
true
private void processArgument() { String argument = arguments[argumentIndex]; FOR : for (characterIndex = 1; characterIndex < argument.length(); characterIndex++) { switch (argument.charAt(characterIndex)) { case 'h' : main.printUsage(); ...
private void processArgument() { String argument = arguments[argumentIndex]; FOR : for (characterIndex = 1; characterIndex < argument.length(); characterIndex++) { switch (argument.charAt(characterIndex)) { case 'h' : main.printUsage(); ...
diff --git a/src/main/java/com/redhat/ceylon/compiler/js/GenerateJsVisitor.java b/src/main/java/com/redhat/ceylon/compiler/js/GenerateJsVisitor.java index f0a9170f..cc42d681 100644 --- a/src/main/java/com/redhat/ceylon/compiler/js/GenerateJsVisitor.java +++ b/src/main/java/com/redhat/ceylon/compiler/js/GenerateJsVisito...
true
true
private String qualifiedPath(Node that, Declaration d, boolean inProto) { boolean isMember = d.isClassOrInterfaceMember(); if (!isMember && isImported(that == null ? null : that.getUnit().getPackage(), d)) { return names.moduleAlias(d.getUnit().getPackage().getModule()); } ...
private String qualifiedPath(Node that, Declaration d, boolean inProto) { boolean isMember = d.isClassOrInterfaceMember(); if (!isMember && isImported(that == null ? null : that.getUnit().getPackage(), d)) { return names.moduleAlias(d.getUnit().getPackage().getModule()); } ...
diff --git a/lab-eshop/src/main/java/cz/cvut/fel/jee/labEshop/web/brand/BrandsBean.java b/lab-eshop/src/main/java/cz/cvut/fel/jee/labEshop/web/brand/BrandsBean.java index 0feae34..437df0c 100644 --- a/lab-eshop/src/main/java/cz/cvut/fel/jee/labEshop/web/brand/BrandsBean.java +++ b/lab-eshop/src/main/java/cz/cvut/fel/je...
false
true
public String submit() { if (selected == null) { throw new IllegalStateException(); } if (isNew()) { brandManager.createBrand(selected); log.info("Brand {} created.", selected); messages.info("Brand \"{0}\" created.", selected.getName()); } else { selected = brandManager.updateBrand(selected); ...
public String submit() { if (selected == null) { throw new IllegalStateException(); } if (isNew()) { brandManager.createBrand(selected); log.info("Brand {} created.", selected); messages.info("Brand created."); } else { selected = brandManager.updateBrand(selected); log.info("Brand [id={}] {...
diff --git a/java/src/org/broadinstitute/sting/gatk/walkers/variantutils/CombineVariants.java b/java/src/org/broadinstitute/sting/gatk/walkers/variantutils/CombineVariants.java index 6a0eec3d1..9c89aa142 100755 --- a/java/src/org/broadinstitute/sting/gatk/walkers/variantutils/CombineVariants.java +++ b/java/src/org/bro...
true
true
public Integer map(RefMetaDataTracker tracker, ReferenceContext ref, AlignmentContext context) { if ( tracker == null ) // RodWalkers can make funky map calls return 0; // get all of the vcf rods at this locus // Need to provide reference bases to simpleMerge starting at current...
public Integer map(RefMetaDataTracker tracker, ReferenceContext ref, AlignmentContext context) { if ( tracker == null ) // RodWalkers can make funky map calls return 0; // get all of the vcf rods at this locus // Need to provide reference bases to simpleMerge starting at current...
diff --git a/src/com/yahoo/platform/yui/compressor/CssCompressor.java b/src/com/yahoo/platform/yui/compressor/CssCompressor.java index 6bbd3f6..c0cae87 100644 --- a/src/com/yahoo/platform/yui/compressor/CssCompressor.java +++ b/src/com/yahoo/platform/yui/compressor/CssCompressor.java @@ -1,116 +1,116 @@ /* * YUI Com...
true
true
public void compress(Writer out, boolean linebreak) throws IOException { Pattern p; Matcher m; String css; StringBuffer sb; int startIndex, endIndex; // Remove all comment blocks... sb = new StringBuffer(srcsb.toString()); while ((startIn...
public void compress(Writer out, boolean linebreak) throws IOException { Pattern p; Matcher m; String css; StringBuffer sb; int startIndex, endIndex; // Remove all comment blocks... sb = new StringBuffer(srcsb.toString()); while ((startIn...
diff --git a/src/main/java/me/taylorkelly/bigbrother/BBCommand.java b/src/main/java/me/taylorkelly/bigbrother/BBCommand.java index 4bc1a9a..cf4180a 100644 --- a/src/main/java/me/taylorkelly/bigbrother/BBCommand.java +++ b/src/main/java/me/taylorkelly/bigbrother/BBCommand.java @@ -1,56 +1,56 @@ package me.taylorkelly.b...
true
true
public boolean onCommand(CommandSender sender, Command command, String commandLabel, String[] args) { String[] split = args; String commandName = command.getName().toLowerCase(); String subcommandName = args[0].toLowerCase(); if (sender instanceof Player) { if (c...
public boolean onCommand(CommandSender sender, Command command, String commandLabel, String[] args) { String[] split = args; String commandName = command.getName().toLowerCase(); String subcommandName = args[0].toLowerCase(); if (sender instanceof Player) { if (c...
diff --git a/src/main/java/org/generationcp/browser/application/GermplasmStudyBrowserApplication.java b/src/main/java/org/generationcp/browser/application/GermplasmStudyBrowserApplication.java index 481e306..faeab4f 100644 --- a/src/main/java/org/generationcp/browser/application/GermplasmStudyBrowserApplication.java ++...
false
true
public Window getWindow(String name) { // dynamically create other application-level windows which is // associated with specific URLs // these windows are the jumping on points to parts of the application if (super.getWindow(name) == null) { if (name.equals("germplasm-by...
public Window getWindow(String name) { // dynamically create other application-level windows which is // associated with specific URLs // these windows are the jumping on points to parts of the application if (super.getWindow(name) == null) { if (name.equals("germplasm-by...
diff --git a/src/main/java/de/jetwick/rmi/RMIServer.java b/src/main/java/de/jetwick/rmi/RMIServer.java index af55058..ca5cd79 100644 --- a/src/main/java/de/jetwick/rmi/RMIServer.java +++ b/src/main/java/de/jetwick/rmi/RMIServer.java @@ -1,84 +1,85 @@ /** * Copyright (C) 2010 Peter Karich <jetwick_@_pannous_._info> ...
true
true
public Thread createThread() { return new Thread("rmi-server") { @Override public void run() { try { // get the address of this host. String host = (InetAddress.getLocalHost()).toString(); logger.info("addre...
public Thread createThread() { return new Thread("rmi-server") { @Override public void run() { try { // get the address of this host. String host = (InetAddress.getLocalHost()).toString(); logger.info("addre...
diff --git a/modules/maps/src/maps/convert/legacy2gml/NodeInfo.java b/modules/maps/src/maps/convert/legacy2gml/NodeInfo.java index bcaf574..6b93d03 100644 --- a/modules/maps/src/maps/convert/legacy2gml/NodeInfo.java +++ b/modules/maps/src/maps/convert/legacy2gml/NodeInfo.java @@ -1,341 +1,343 @@ package maps.convert.l...
false
true
private Point2D[] findIncomingEdgeIntersection(EdgeAspect first, EdgeAspect second, Point2D centrePoint) { LegacyObject firstNode = first.getFarNode(); LegacyObject secondNode = second.getFarNode(); Point2D firstPoint = new Point2D(firstNode.getX(), firstNode.getY()); Point2D secondP...
private Point2D[] findIncomingEdgeIntersection(EdgeAspect first, EdgeAspect second, Point2D centrePoint) { LegacyObject firstNode = first.getFarNode(); LegacyObject secondNode = second.getFarNode(); Point2D firstPoint = new Point2D(firstNode.getX(), firstNode.getY()); Point2D secondP...
diff --git a/src/mitzi/NaiveBoard.java b/src/mitzi/NaiveBoard.java index 9d89dc4..db24892 100644 --- a/src/mitzi/NaiveBoard.java +++ b/src/mitzi/NaiveBoard.java @@ -1,851 +1,851 @@ package mitzi; //import java.util.ArrayList; import java.util.HashSet; import java.util.Iterator; import java.util.List; import jav...
true
true
public Set<IMove> getPossibleMovesFrom(int square) { // The case, that the destination is the opponents king cannot happen. int type = PieceHelper.pieceType(getFromBoard(square)); int opp_color = getOpponentsColor(); List<Integer> squares; Set<IMove> moves = new HashSet<IMove>(); Move move; // Types BI...
public Set<IMove> getPossibleMovesFrom(int square) { // The case, that the destination is the opponents king cannot happen. int type = PieceHelper.pieceType(getFromBoard(square)); int opp_color = getOpponentsColor(); List<Integer> squares; Set<IMove> moves = new HashSet<IMove>(); Move move; // Types BI...
diff --git a/src/utils/ModeMaster.java b/src/utils/ModeMaster.java index 40b394a..f44801b 100644 --- a/src/utils/ModeMaster.java +++ b/src/utils/ModeMaster.java @@ -1,105 +1,105 @@ /** * The Mode Master is responsible for reading the settings.xml file in the vle folder * and determining the startup mode for the se...
true
true
private void getModeFromFile(HttpServletRequest request){ try{ String settingsUrl = request.getRequestURL().toString().replace("modemaster.html","vle/settings.json"); String settings = Connector.request(settingsUrl); /* if there is no settings file or we failed to retrieve it, then we cannot assume port...
private void getModeFromFile(HttpServletRequest request){ try{ String settingsUrl = request.getRequestURL().toString().replace("modemaster.html","vle/settings.json"); String settings = Connector.request(settingsUrl); /* if there is no settings file or we failed to retrieve it, then we cannot assume port...
diff --git a/MODSRC/vazkii/tinkerer/common/item/kami/tool/ToolHandler.java b/MODSRC/vazkii/tinkerer/common/item/kami/tool/ToolHandler.java index bbe66478..83d3103d 100644 --- a/MODSRC/vazkii/tinkerer/common/item/kami/tool/ToolHandler.java +++ b/MODSRC/vazkii/tinkerer/common/item/kami/tool/ToolHandler.java @@ -1,128 +1,...
true
true
public static void removeBlockWithDrops(EntityPlayer player, World world, int x, int y, int z, int bx, int by, int bz, int lockID, Material[] materialsListing, boolean silk, int fortune) { if(!world.blockExists(x, y, z)) return; int id = world.getBlockId(x, y, z); if(lockID != -1 && id != lockID) return;...
public static void removeBlockWithDrops(EntityPlayer player, World world, int x, int y, int z, int bx, int by, int bz, int lockID, Material[] materialsListing, boolean silk, int fortune) { if(!world.blockExists(x, y, z)) return; int id = world.getBlockId(x, y, z); if(lockID != -1 && id != lockID) return;...
diff --git a/src/com/android/mms/transaction/MessagingNotification.java b/src/com/android/mms/transaction/MessagingNotification.java index 56937be7..ff96d3bc 100644 --- a/src/com/android/mms/transaction/MessagingNotification.java +++ b/src/com/android/mms/transaction/MessagingNotification.java @@ -1,1554 +1,1555 @@ /*...
false
true
private static void updateNotification( Context context, boolean isNew, int uniqueThreadCount, SortedSet<NotificationInfo> notificationSet) { // If the user has turned off notifications in settings, don't do any notifying. if (!MessagingPreferenceActiv...
private static void updateNotification( Context context, boolean isNew, int uniqueThreadCount, SortedSet<NotificationInfo> notificationSet) { // If the user has turned off notifications in settings, don't do any notifying. if (!MessagingPreferenceActiv...
diff --git a/orchestration/org.linkedin.glu.orchestration-engine/src/main/java/org/linkedin/glu/orchestration/engine/planner/impl/SingleStepTransition.java b/orchestration/org.linkedin.glu.orchestration-engine/src/main/java/org/linkedin/glu/orchestration/engine/planner/impl/SingleStepTransition.java index 1e923b2..ee7d...
true
true
public void addSteps(ICompositeStepBuilder<ActionDescriptor> builder) { InternalSystemEntryDelta entryDelta = getSystemEntryDelta(); if(entryDelta == null) return; InternalActionDescriptor actionDescriptor; if(INSTALL_SCRIPT_ACTION.equals(getAction())) { ScriptLifecycleInstallActi...
public void addSteps(ICompositeStepBuilder<ActionDescriptor> builder) { InternalSystemEntryDelta entryDelta = getSystemEntryDelta(); if(entryDelta == null) return; InternalActionDescriptor actionDescriptor; if(INSTALL_SCRIPT_ACTION.equals(getAction())) { ScriptLifecycleInstallActi...
diff --git a/src/com/android/contacts/model/ExternalAccountType.java b/src/com/android/contacts/model/ExternalAccountType.java index 5e0d85331..8b35242e8 100644 --- a/src/com/android/contacts/model/ExternalAccountType.java +++ b/src/com/android/contacts/model/ExternalAccountType.java @@ -1,199 +1,200 @@ /* * Copyrig...
false
true
protected void inflate(Context context, XmlPullParser parser) { final AttributeSet attrs = Xml.asAttributeSet(parser); try { int type; while ((type = parser.next()) != XmlPullParser.START_TAG && type != XmlPullParser.END_DOCUMENT) { // Dra...
protected void inflate(Context context, XmlPullParser parser) { final AttributeSet attrs = Xml.asAttributeSet(parser); try { int type; while ((type = parser.next()) != XmlPullParser.START_TAG && type != XmlPullParser.END_DOCUMENT) { // Dra...
diff --git a/pdfbox/src/main/java/org/apache/pdfbox/pdfparser/BaseParser.java b/pdfbox/src/main/java/org/apache/pdfbox/pdfparser/BaseParser.java index 19408133..ecc41ae2 100644 --- a/pdfbox/src/main/java/org/apache/pdfbox/pdfparser/BaseParser.java +++ b/pdfbox/src/main/java/org/apache/pdfbox/pdfparser/BaseParser.java @...
true
true
protected COSString parseCOSString() throws IOException { char nextChar = (char)pdfSource.read(); COSString retval = new COSString(); char openBrace; char closeBrace; if( nextChar == '(' ) { openBrace = '('; closeBrace = ')'; } ...
protected COSString parseCOSString() throws IOException { char nextChar = (char)pdfSource.read(); COSString retval = new COSString(); char openBrace; char closeBrace; if( nextChar == '(' ) { openBrace = '('; closeBrace = ')'; } ...
diff --git a/src/gui/modellistener/InventoryListener.java b/src/gui/modellistener/InventoryListener.java index 01d283d..d3c1c7e 100644 --- a/src/gui/modellistener/InventoryListener.java +++ b/src/gui/modellistener/InventoryListener.java @@ -1,188 +1,189 @@ package gui.modellistener; import gui.common.DataWrapper; ...
true
true
public void updateProducts(boolean restoreSelected) { /* * Product Table The table is sorted by Description (ascending). The Count column * displays the number of Items of that Product contained in the selected node. * Specifically, if the root Storage Units node is selected, Count is the total number * ...
public void updateProducts(boolean restoreSelected) { /* * Product Table The table is sorted by Description (ascending). The Count column * displays the number of Items of that Product contained in the selected node. * Specifically, if the root Storage Units node is selected, Count is the total number * ...
diff --git a/src/main/java/blackboard/plugin/hayabusa/view/CommandBarRenderingHook.java b/src/main/java/blackboard/plugin/hayabusa/view/CommandBarRenderingHook.java index 3443d8f..4a591fb 100644 --- a/src/main/java/blackboard/plugin/hayabusa/view/CommandBarRenderingHook.java +++ b/src/main/java/blackboard/plugin/hayabu...
true
true
public String getContent() { String uriPrefix = ""; try { uriPrefix = getUriPrefix(); } catch ( VirtualSystemException | PersistenceException | UnsetContextException e ) { e.printStackTrace(); } JspResourceIncludeUtil resourceIncludeUtil = JspResourceIncludeUtil.getThread...
public String getContent() { String uriPrefix = ""; try { uriPrefix = getUriPrefix(); } catch ( VirtualSystemException | PersistenceException | UnsetContextException e ) { e.printStackTrace(); } JspResourceIncludeUtil resourceIncludeUtil = JspResourceIncludeUtil.getThread...
diff --git a/src/org/gridlab/gridsphere/provider/portletui/beans/TableBean.java b/src/org/gridlab/gridsphere/provider/portletui/beans/TableBean.java index 40a5be6c5..c47afd325 100644 --- a/src/org/gridlab/gridsphere/provider/portletui/beans/TableBean.java +++ b/src/org/gridlab/gridsphere/provider/portletui/beans/TableB...
true
true
public String toEndString() { StringBuffer sb = new StringBuffer(); sb.append("</table>"); String uri = ""; if (showall) { uri = uriString; sb.append("<p>"); // added for XHTML 1.0 Strict compliance sb.append("<a href=\"" + uri + "&amp;" + TableBea...
public String toEndString() { StringBuffer sb = new StringBuffer(); sb.append("</table>"); String uri = ""; if (showall) { uri = uriString; sb.append("<p>"); // added for XHTML 1.0 Strict compliance sb.append("<a href=\"" + uri + "&amp;" + TableBea...
diff --git a/src/tk/tyzoid/plugins/ChestTrap/ChestTrap.java b/src/tk/tyzoid/plugins/ChestTrap/ChestTrap.java index 5578323..93959ec 100644 --- a/src/tk/tyzoid/plugins/ChestTrap/ChestTrap.java +++ b/src/tk/tyzoid/plugins/ChestTrap/ChestTrap.java @@ -1,97 +1,97 @@ package tk.tyzoid.plugins.ChestTrap; import java.util...
true
true
private void setupPermissions() { Plugin permissionsPlugin = this.getServer().getPluginManager().getPlugin("Permissions"); if (permissionHandler == null) { if (permissionsPlugin != null) { permissionsExists = true; permissionHandler = ((Permissions) ...
private void setupPermissions() { Plugin permissionsPlugin = this.getServer().getPluginManager().getPlugin("Permissions"); if (permissionHandler == null) { if (permissionsPlugin != null) { permissionsExists = true; permissionHandler = ((Permissions) ...
diff --git a/structure/src/main/java/org/biojava/bio/structure/io/PDBFileParser.java b/structure/src/main/java/org/biojava/bio/structure/io/PDBFileParser.java index 18585093b..fc3ff8106 100644 --- a/structure/src/main/java/org/biojava/bio/structure/io/PDBFileParser.java +++ b/structure/src/main/java/org/biojava/bio/str...
true
true
private void pdb_ATOM_Handler(String line) throws PDBParseException { // build up chains first. // headerOnly just goes down to chain resolution. boolean startOfNewChain = false; String chain_id = line.substring(21,22); if (current_chain == null) { current_chain = new ChainImpl(); current_c...
private void pdb_ATOM_Handler(String line) throws PDBParseException { // build up chains first. // headerOnly just goes down to chain resolution. boolean startOfNewChain = false; String chain_id = line.substring(21,22); if (current_chain == null) { current_chain = new ChainImpl(); current_c...
diff --git a/src/main/java/tconstruct/client/TControls.java b/src/main/java/tconstruct/client/TControls.java index 034f77a08..ff9f2c1b5 100644 --- a/src/main/java/tconstruct/client/TControls.java +++ b/src/main/java/tconstruct/client/TControls.java @@ -1,232 +1,232 @@ package tconstruct.client; import java.io.ByteA...
true
true
public void keyDown (EnumSet<TickType> types, KeyBinding kb, boolean tickEnd, boolean isRepeat) { if (tickEnd && mc.theWorld != null) { if (kb == armorKey && mc.currentScreen == null) //Extended Armor { openArmorGui();//mc.thePlayer.username); ...
public void keyDown (EnumSet<TickType> types, KeyBinding kb, boolean tickEnd, boolean isRepeat) { if (tickEnd && mc.theWorld != null) { if (kb == armorKey && mc.currentScreen == null) //Extended Armor { openArmorGui();//mc.thePlayer.username); ...
diff --git a/Java/nz/net/ultraq/postprocessing/ResourceProcessingFilter.java b/Java/nz/net/ultraq/postprocessing/ResourceProcessingFilter.java index defbad1..d841154 100644 --- a/Java/nz/net/ultraq/postprocessing/ResourceProcessingFilter.java +++ b/Java/nz/net/ultraq/postprocessing/ResourceProcessingFilter.java @@ -1,1...
true
true
public final void doFilter(ServletRequest req, ServletResponse res, FilterChain chain) throws IOException, ServletException { HttpServletRequest request = (HttpServletRequest)req; HttpServletResponse response = (HttpServletResponse)res; // Capture the resource file ResourceResponseWrapper resourceresponsew...
public final void doFilter(ServletRequest req, ServletResponse res, FilterChain chain) throws IOException, ServletException { HttpServletRequest request = (HttpServletRequest)req; HttpServletResponse response = (HttpServletResponse)res; // Capture the resource file ResourceResponseWrapper resourceresponsew...
diff --git a/nexus/nexus-test-harness/nexus-test-harness-launcher/src/test/java/org/sonatype/nexus/integrationtests/nexus634/Nexus634KeepNewSnapshotsTest.java b/nexus/nexus-test-harness/nexus-test-harness-launcher/src/test/java/org/sonatype/nexus/integrationtests/nexus634/Nexus634KeepNewSnapshotsTest.java index 94015cb...
true
true
public void keepNewSnapshots() throws Exception { // This is THE important part runSnapshotRemover( "nexus-test-harness-snapshot-repo", 0, 10, true ); Collection<File> jars = listFiles( artifactFolder, new String[] { "jar" }, false ); Assert.assertEquals( "SnapshotRemov...
public void keepNewSnapshots() throws Exception { // This is THE important part runSnapshotRemover( "nexus-test-harness-snapshot-repo", 0, 10, true ); Collection<File> jars = listFiles( artifactFolder, new String[] { "jar" }, false ); Assert.assertEquals( "SnapshotRemov...
diff --git a/funcTests/source/org/openfaces/test/VersionStringTest.java b/funcTests/source/org/openfaces/test/VersionStringTest.java index d144ec485..78d64b697 100644 --- a/funcTests/source/org/openfaces/test/VersionStringTest.java +++ b/funcTests/source/org/openfaces/test/VersionStringTest.java @@ -1,55 +1,55 @@ /* ...
false
true
public void testOFVersionString() { String versionString = ResourceUtil.getVersionString(); assertNotNull("OpenFaces version string shouldn't be null", versionString); assertTrue("OpenFaces version string shouldn't be empty", versionString.trim().length() > 0); assertTrue("OpenFaces...
public void testOFVersionString() { String versionString = ResourceUtil.getVersionString(); assertNotNull("OpenFaces version string shouldn't be null", versionString); assertTrue("OpenFaces version string shouldn't be empty", versionString.trim().length() > 0); assertTrue("OpenFaces...
diff --git a/bundles/org.eclipse.osgi/core/adaptor/org/eclipse/osgi/framework/adaptor/core/AbstractFrameworkAdaptor.java b/bundles/org.eclipse.osgi/core/adaptor/org/eclipse/osgi/framework/adaptor/core/AbstractFrameworkAdaptor.java index 90d7a192..6ad3eb89 100644 --- a/bundles/org.eclipse.osgi/core/adaptor/org/eclipse/o...
true
true
protected void loadProperties() { properties = new Properties(); String resource = System.getProperty(Constants.KEY_OSGI_PROPERTIES, Constants.DEFAULT_OSGI_PROPERTIES); try { InputStream in = null; File file = new File(resource); if (file.exists()) { in = new FileInputStream(file); } i...
protected void loadProperties() { properties = new Properties(); String resource = System.getProperty(Constants.KEY_OSGI_PROPERTIES, Constants.DEFAULT_OSGI_PROPERTIES); try { InputStream in = null; File file = new File(resource); if (file.exists()) { in = new FileInputStream(file); } i...
diff --git a/Kayak-core/src/main/java/com/github/kayak/core/SocketcandConnection.java b/Kayak-core/src/main/java/com/github/kayak/core/SocketcandConnection.java index d098a98..fef2a8c 100644 --- a/Kayak-core/src/main/java/com/github/kayak/core/SocketcandConnection.java +++ b/Kayak-core/src/main/java/com/github/kayak/co...
true
true
protected String getElement() throws IOException, InterruptedException, SocketTimeoutException { int pos = 0; boolean inElement = false; while (true) { char c = (char) reader.read(); /* Find opening < */ if (!inElement) { if (c ==...
protected String getElement() throws IOException, InterruptedException, SocketTimeoutException { int pos = 0; boolean inElement = false; while (true) { char c = (char) reader.read(); /* Find opening < */ if (!inElement) { if (c ==...
diff --git a/ldap/src/main/java/org/soluvas/ldap/PooledLdapRepository.java b/ldap/src/main/java/org/soluvas/ldap/PooledLdapRepository.java index 1af6f0b9..a9eb5a2a 100644 --- a/ldap/src/main/java/org/soluvas/ldap/PooledLdapRepository.java +++ b/ldap/src/main/java/org/soluvas/ldap/PooledLdapRepository.java @@ -1,555 +1,...
true
true
public List<T> search(@Nullable String searchText) { final String primaryObjectClass = mapper.getMapping(entityClass).getPrimaryObjectClass(); final String filter; if (!Strings.isNullOrEmpty(searchText)) { final String encodedSearchText = FilterEncoder.encodeFilterValue(searchText); // String filter = "(&";...
public List<T> search(@Nullable String searchText) { final String primaryObjectClass = mapper.getMapping(entityClass).getPrimaryObjectClass(); final String filter; if (!Strings.isNullOrEmpty(searchText)) { final String encodedSearchText = FilterEncoder.encodeFilterValue(searchText); // String filter = "(&";...
diff --git a/hadoop-mapreduce-project/src/test/mapred/org/apache/hadoop/mapreduce/security/TestTokenCache.java b/hadoop-mapreduce-project/src/test/mapred/org/apache/hadoop/mapreduce/security/TestTokenCache.java index 468a10973..768c4d86c 100644 --- a/hadoop-mapreduce-project/src/test/mapred/org/apache/hadoop/mapreduce/...
true
true
public void testGetTokensForHftpFS() throws IOException, URISyntaxException { HftpFileSystem hfs = mock(HftpFileSystem.class); DelegationTokenSecretManager dtSecretManager = NameNodeAdapter.getDtSecretManager(dfsCluster.getNamesystem()); String renewer = "renewer"; jConf.set(JTConfig.JT_USER...
public void testGetTokensForHftpFS() throws IOException, URISyntaxException { HftpFileSystem hfs = mock(HftpFileSystem.class); DelegationTokenSecretManager dtSecretManager = NameNodeAdapter.getDtSecretManager(dfsCluster.getNamesystem()); String renewer = "renewer"; jConf.set(JTConfig.JT_USER...
diff --git a/sensappdroid-clientsamples/sensorlog/src/main/java/org/sensapp/android/sensappdroid/clientsamples/sensorlogger/sensorlog/AbstractSensorLoggerTask.java b/sensappdroid-clientsamples/sensorlog/src/main/java/org/sensapp/android/sensappdroid/clientsamples/sensorlogger/sensorlog/AbstractSensorLoggerTask.java ind...
true
true
static public void setUpSensors(Context c, SensorManager manager, BluetoothAdapter bt){ sensorManager = manager; SharedPreferences sp = PreferenceManager.getDefaultSharedPreferences(c); String compositeName = sp.getString(c.getString(R.string.pref_compositename_key), SensorActivity.composit...
static public void setUpSensors(Context c, SensorManager manager, BluetoothAdapter bt){ sensorManager = manager; SharedPreferences sp = PreferenceManager.getDefaultSharedPreferences(c); String compositeName = sp.getString(c.getString(R.string.pref_compositename_key), SensorActivity.composit...
diff --git a/bundles/org.eclipse.e4.core.di.extensions/src/org/eclipse/e4/core/di/internal/extensions/UIEventObjectSupplier.java b/bundles/org.eclipse.e4.core.di.extensions/src/org/eclipse/e4/core/di/internal/extensions/UIEventObjectSupplier.java index e6499e752..778a04f99 100644 --- a/bundles/org.eclipse.e4.core.di.ex...
true
true
public void handleEvent(org.osgi.service.event.Event event) { IInjector requestorInjector = requestor.getInjector(); if (requestorInjector != null) { Object data = event.getProperty(EventUtils.DATA); addCurrentEvent(event.getTopic(), data); boolean resolved = requestorInjector.resolveArguments(reque...
public void handleEvent(org.osgi.service.event.Event event) { IInjector requestorInjector = requestor.getInjector(); if (requestorInjector != null) { Object data = event.getProperty(EventUtils.DATA); addCurrentEvent(event.getTopic(), data); boolean resolved = requestorInjector.resolveArguments(reque...
diff --git a/sourceediting/tests/org.eclipse.wst.xml.vex.tests/src/org/eclipse/wst/xml/vex/tests/AllTestsSuite.java b/sourceediting/tests/org.eclipse.wst.xml.vex.tests/src/org/eclipse/wst/xml/vex/tests/AllTestsSuite.java index 528fdb8..9155558 100644 --- a/sourceediting/tests/org.eclipse.wst.xml.vex.tests/src/org/eclip...
true
true
public AllTestsSuite() { super("All Vex Test Suites"); //$NON-NLS-1$ addTest(VEXCoreTestSuite.suite()); // addTest(VexUiTestSuite.suite()); addTestSuite(IconTest.class); addTestSuite(ResourceTrackerTest.class); addTestSuite(FindReplaceTargetTest.class); }
public AllTestsSuite() { super("All Vex Test Suites"); //$NON-NLS-1$ addTest(VEXCoreTestSuite.suite()); // addTest(VexUiTestSuite.suite()); // addTestSuite(IconTest.class); addTestSuite(ResourceTrackerTest.class); addTestSuite(FindReplaceTargetTest.class); }
diff --git a/connectors/cherrysms/src/de/ub0r/android/websms/connector/cherrysms/ConnectorCherrySMS.java b/connectors/cherrysms/src/de/ub0r/android/websms/connector/cherrysms/ConnectorCherrySMS.java index 2cd37a3f..fd171a36 100644 --- a/connectors/cherrysms/src/de/ub0r/android/websms/connector/cherrysms/ConnectorCherry...
false
true
private void sendData(final Context context, final ConnectorCommand command) throws WebSMSException { // do IO try { // get Connection final StringBuilder url = new StringBuilder(URL); final ConnectorSpec cs = this.getSpec(context); final SharedPreferences p = PreferenceManager .getDefaultSharedPr...
private void sendData(final Context context, final ConnectorCommand command) throws WebSMSException { // do IO try { // get Connection final StringBuilder url = new StringBuilder(URL); final ConnectorSpec cs = this.getSpec(context); final SharedPreferences p = PreferenceManager .getDefaultSharedPr...
diff --git a/org.dawb.workbench.plotting/src/org/dawb/workbench/plotting/tools/BoxProfileTool.java b/org.dawb.workbench.plotting/src/org/dawb/workbench/plotting/tools/BoxProfileTool.java index d0954db88..873a7087f 100644 --- a/org.dawb.workbench.plotting/src/org/dawb/workbench/plotting/tools/BoxProfileTool.java +++ b/o...
false
true
protected void createProfile(IImageTrace image, IRegion region, ROIBase rbs, boolean tryUpdate, IProgressMonitor monitor) { if (monitor.isCanceled()) return; if (image==null) return; if ...
protected void createProfile(IImageTrace image, IRegion region, ROIBase rbs, boolean tryUpdate, IProgressMonitor monitor) { if (monitor.isCanceled()) return; if (image==null) return; if ...
diff --git a/plugins/org.jboss.tools.bpel.runtimes/src/org/jboss/tools/bpel/runtimes/module/JBTBPELPublisher.java b/plugins/org.jboss.tools.bpel.runtimes/src/org/jboss/tools/bpel/runtimes/module/JBTBPELPublisher.java index d6913fe..b4c26e3 100644 --- a/plugins/org.jboss.tools.bpel.runtimes/src/org/jboss/tools/bpel/runt...
true
true
protected IStatus publish(IModule[] moduleTree, IModuleResourceDelta[] delta, int publishType, IProgressMonitor monitor) throws CoreException { ArrayList<IStatus> resultList = new ArrayList<IStatus>(); IDeployableServer ds = ServerConverter.getDeployableServer(server); IModule last = moduleTree[moduleTree.le...
protected IStatus publish(IModule[] moduleTree, IModuleResourceDelta[] delta, int publishType, IProgressMonitor monitor) throws CoreException { ArrayList<IStatus> resultList = new ArrayList<IStatus>(); IDeployableServer ds = ServerConverter.getDeployableServer(server); IModule last = moduleTree[moduleTree.le...
diff --git a/org/lateralgm/file/GmFileWriter.java b/org/lateralgm/file/GmFileWriter.java index 06dacd27..9f2f60b7 100644 --- a/org/lateralgm/file/GmFileWriter.java +++ b/org/lateralgm/file/GmFileWriter.java @@ -1,855 +1,855 @@ /* * Copyright (C) 2006, 2007, 2008, 2009, 2010 IsmAvatar <IsmAvatar@gmail.com> * Copyri...
true
true
public static void writeSettings(GmFile f, GmStreamEncoder out, long savetime) throws IOException { int ver = f.fileVersion; ver = ver >= 810 ? 810 : ver >= 800 ? 800 : ver >= 701 ? 702 : ver; out.write4(ver >= 800 ? 800 : ver); if (ver == 800) out.beginDeflate(); GameSettings g = f.gameSettings; out.wri...
public static void writeSettings(GmFile f, GmStreamEncoder out, long savetime) throws IOException { int ver = f.fileVersion; ver = ver >= 810 ? 810 : ver >= 800 ? 800 : ver >= 701 ? 702 : ver; out.write4(ver >= 800 ? 800 : ver); if (ver >= 800) out.beginDeflate(); GameSettings g = f.gameSettings; out.wri...
diff --git a/src/main/java/org/dasein/cloud/openstack/nova/os/compute/NovaServer.java b/src/main/java/org/dasein/cloud/openstack/nova/os/compute/NovaServer.java index a2de153..da35450 100644 --- a/src/main/java/org/dasein/cloud/openstack/nova/os/compute/NovaServer.java +++ b/src/main/java/org/dasein/cloud/openstack/nov...
true
true
private @Nullable VirtualMachine toVirtualMachine(@Nullable JSONObject server) throws JSONException, InternalException, CloudException { Logger std = NovaOpenStack.getLogger(NovaServer.class, "std"); if( std.isTraceEnabled() ) { std.trace("enter - " + NovaServer.class.getName() ...
private @Nullable VirtualMachine toVirtualMachine(@Nullable JSONObject server) throws JSONException, InternalException, CloudException { Logger std = NovaOpenStack.getLogger(NovaServer.class, "std"); if( std.isTraceEnabled() ) { std.trace("enter - " + NovaServer.class.getName() ...
diff --git a/src/org/rascalmpl/interpreter/staticErrors/UnguardedInsertError.java b/src/org/rascalmpl/interpreter/staticErrors/UnguardedInsertError.java index f63b34fb9f..7160c4e89e 100644 --- a/src/org/rascalmpl/interpreter/staticErrors/UnguardedInsertError.java +++ b/src/org/rascalmpl/interpreter/staticErrors/Unguard...
true
true
public UnguardedInsertError(AbstractAST ast) { super("Return statement outside of function scope", ast); }
public UnguardedInsertError(AbstractAST ast) { super("Insert statement outside a visit statement", ast); }
diff --git a/java/DetIDGenerator/src/detidGenerator/TOBAnalyzer.java b/java/DetIDGenerator/src/detidGenerator/TOBAnalyzer.java index b645b95..b777e2a 100644 --- a/java/DetIDGenerator/src/detidGenerator/TOBAnalyzer.java +++ b/java/DetIDGenerator/src/detidGenerator/TOBAnalyzer.java @@ -1,197 +1,197 @@ package detidGener...
true
true
private void getMods(String rodId, String position) throws java.sql.SQLException{ ArrayList<ArrayList<String>> v = c.selectQuery("select object_id, number_in_container from cmstrkdb.object_assembly "+ "where container_id="+rodId+" and object='MOD' order by number_in_container"); for(ArrayList<String> eleme...
private void getMods(String rodId, String position) throws java.sql.SQLException{ ArrayList<ArrayList<String>> v = c.selectQuery("select object_id, number_in_container from cmstrkdb.object_assembly "+ "where container_id="+rodId+" and object='MOD' order by number_in_container"); for(ArrayList<String> eleme...
diff --git a/model/org/eclipse/cdt/internal/core/settings/model/xml/XmlProjectDescriptionStorage.java b/model/org/eclipse/cdt/internal/core/settings/model/xml/XmlProjectDescriptionStorage.java index eff1d04a8..2c3557210 100644 --- a/model/org/eclipse/cdt/internal/core/settings/model/xml/XmlProjectDescriptionStorage.jav...
true
true
public final ICProjectDescription getProjectDescription(int flags, IProgressMonitor monitor) throws CoreException { ICProjectDescription des = null; boolean write = checkFlags(flags, ICProjectDescriptionManager.GET_WRITABLE); // Only 'load' if the caller hasn't explicitly requested currently loaded config bool...
public final ICProjectDescription getProjectDescription(int flags, IProgressMonitor monitor) throws CoreException { ICProjectDescription des = null; boolean write = checkFlags(flags, ICProjectDescriptionManager.GET_WRITABLE); // Only 'load' if the caller hasn't explicitly requested currently loaded config bool...
diff --git a/ldapbrowser-core/src/main/java/org/apache/directory/studio/ldapbrowser/core/jobs/AbstractEclipseJob.java b/ldapbrowser-core/src/main/java/org/apache/directory/studio/ldapbrowser/core/jobs/AbstractEclipseJob.java index 4c33498af..1d9eb4316 100644 --- a/ldapbrowser-core/src/main/java/org/apache/directory/stu...
true
true
protected final IStatus run( IProgressMonitor ipm ) { StudioProgressMonitor monitor = new StudioProgressMonitor( externalProgressMonitor == null ? ipm : externalProgressMonitor ); // ensure that connections are opened Connection[] connections = getConnections(); for...
protected final IStatus run( IProgressMonitor ipm ) { StudioProgressMonitor monitor = new StudioProgressMonitor( externalProgressMonitor == null ? ipm : externalProgressMonitor ); // ensure that connections are opened Connection[] connections = getConnections(); for...
diff --git a/src/java/org/apache/hadoop/chukwa/datacollection/adaptor/filetailer/LWFTAdaptor.java b/src/java/org/apache/hadoop/chukwa/datacollection/adaptor/filetailer/LWFTAdaptor.java index 04ab591..01a7d6e 100644 --- a/src/java/org/apache/hadoop/chukwa/datacollection/adaptor/filetailer/LWFTAdaptor.java +++ b/src/java...
true
true
protected boolean slurp(long len, RandomAccessFile reader) throws IOException, InterruptedException{ boolean hasMoreData = false; log.debug("Adaptor|" + adaptorID + "|seeking|" + fileReadOffset); reader.seek(fileReadOffset); long bufSize = len - fileReadOffset; if (bufSize > MAX_READ_SIZE) { ...
protected boolean slurp(long len, RandomAccessFile reader) throws IOException, InterruptedException{ boolean hasMoreData = false; log.debug("Adaptor|" + adaptorID + "|seeking|" + fileReadOffset); reader.seek(fileReadOffset); long bufSize = len - fileReadOffset; if (bufSize > MAX_READ_SIZE) { ...
diff --git a/framework/core/src/main/java/org/apache/manifoldcf/core/fuzzyml/ReplayableInputStream.java b/framework/core/src/main/java/org/apache/manifoldcf/core/fuzzyml/ReplayableInputStream.java index d59a2ed4a..9385f44ea 100644 --- a/framework/core/src/main/java/org/apache/manifoldcf/core/fuzzyml/ReplayableInputStre...
false
true
public int read() throws IOException { if (bytePosition < bytes.size()) return 0xff & (int)bytes.readByte(bytePosition++); int theByte = wrappedStream.read(); if (theByte == -1) return theByte; if (doBuffering) bytes.appendByte((byte)theByte); return theByte; }
public int read() throws IOException { if (bytePosition < bytes.size()) return 0xff & (int)bytes.readByte(bytePosition++); int theByte = wrappedStream.read(); if (theByte == -1) return theByte; if (doBuffering) { bytes.appendByte((byte)theByte); bytePosition++; } ...
diff --git a/rhogen-wizard/src/rhogenwizard/launcher/LaunchDelegateBase.java b/rhogen-wizard/src/rhogenwizard/launcher/LaunchDelegateBase.java index c0505e7..b33a0b9 100644 --- a/rhogen-wizard/src/rhogenwizard/launcher/LaunchDelegateBase.java +++ b/rhogen-wizard/src/rhogenwizard/launcher/LaunchDelegateBase.java @@ -1,4...
true
true
public synchronized void launchLocalProject(IProject project, ILaunchConfiguration configuration, String mode, ILaunch launch, final IProgressMonitor monitor) throws CoreException { try { rhodesLogHelper.stopLog(); setStandartConsoleOutputIsOff(); ...
public synchronized void launchLocalProject(IProject project, ILaunchConfiguration configuration, String mode, ILaunch launch, final IProgressMonitor monitor) throws CoreException { try { rhodesLogHelper.stopLog(); setStandartConsoleOutputIsOff(); ...
diff --git a/BetterBatteryStats/src/com/asksven/betterbatterystats/HistAdapter.java b/BetterBatteryStats/src/com/asksven/betterbatterystats/HistAdapter.java index ae032deb..0d8b8fff 100644 --- a/BetterBatteryStats/src/com/asksven/betterbatterystats/HistAdapter.java +++ b/BetterBatteryStats/src/com/asksven/betterbattery...
true
true
public View getView(int position, View convertView, ViewGroup viewGroup) { HistoryItem entry = m_listData.get(position); if (convertView == null) { LayoutInflater inflater = (LayoutInflater) context .getSystemService(Context.LAYOUT_INFLATER_SERVICE); ...
public View getView(int position, View convertView, ViewGroup viewGroup) { HistoryItem entry = m_listData.get(position); if (convertView == null) { LayoutInflater inflater = (LayoutInflater) context .getSystemService(Context.LAYOUT_INFLATER_SERVICE); ...
diff --git a/java/gadgets/src/main/java/org/apache/shindig/gadgets/servlet/UrlGenerator.java b/java/gadgets/src/main/java/org/apache/shindig/gadgets/servlet/UrlGenerator.java index 1ecfad1f..2094ade5 100644 --- a/java/gadgets/src/main/java/org/apache/shindig/gadgets/servlet/UrlGenerator.java +++ b/java/gadgets/src/main...
false
true
public String getIframeUrl(Gadget gadget) { StringBuilder buf = new StringBuilder(); GadgetContext context = gadget.getContext(); GadgetSpec spec = gadget.getSpec(); try { String url = context.getUrl().toString(); View view = HttpUtil.getView(gadget, containerConfig); View.ContentTyp...
public String getIframeUrl(Gadget gadget) { StringBuilder buf = new StringBuilder(); GadgetContext context = gadget.getContext(); GadgetSpec spec = gadget.getSpec(); try { String url = context.getUrl().toString(); View view = HttpUtil.getView(gadget, containerConfig); View.ContentTyp...
diff --git a/src/main/java/pl/consileon/web/controller/TasksController.java b/src/main/java/pl/consileon/web/controller/TasksController.java index 20dbeda..b7ebfc4 100644 --- a/src/main/java/pl/consileon/web/controller/TasksController.java +++ b/src/main/java/pl/consileon/web/controller/TasksController.java @@ -1,87 +1...
true
true
public Task update(@Valid @RequestBody Task task, @PathVariable Long id) { LOGGER.info("Update task: '{}'", task); // check if there is another task with same description Task other = tasksRepository.findByDescription(task.getDescription()); if (!other.getId().equals(id)) { ...
public Task update(@Valid @RequestBody Task task, @PathVariable Long id) { LOGGER.info("Update task: '{}'", task); // check if there is another task with same description Task other = tasksRepository.findByDescription(task.getDescription()); if (other != null && !other.getId().equals...
diff --git a/org.osate.analysis.flows/src/org/osate/analysis/flows/FlowLatencyLogicComponent.java b/org.osate.analysis.flows/src/org/osate/analysis/flows/FlowLatencyLogicComponent.java index 9046e13..ab92749 100644 --- a/org.osate.analysis.flows/src/org/osate/analysis/flows/FlowLatencyLogicComponent.java +++ b/org.osat...
true
true
public static void mapComponentInstance(final EndToEndFlowInstance etef, final FlowElementInstance flowElementInstance, LatencyReportEntry entry) { ComponentInstance componentInstance; double expectedMin = 0.0; double expectedMax = 0.0; if (flowElementInstance instanceof FlowSpecificationInstance) { com...
public static void mapComponentInstance(final EndToEndFlowInstance etef, final FlowElementInstance flowElementInstance, LatencyReportEntry entry) { ComponentInstance componentInstance; double expectedMin = 0.0; double expectedMax = 0.0; if (flowElementInstance instanceof FlowSpecificationInstance) { com...
diff --git a/src/edu/sc/seis/sod/MotionVectorArm.java b/src/edu/sc/seis/sod/MotionVectorArm.java index ffb1ddc4e..6a111d134 100644 --- a/src/edu/sc/seis/sod/MotionVectorArm.java +++ b/src/edu/sc/seis/sod/MotionVectorArm.java @@ -1,444 +1,444 @@ /** * MotionVectorArm.java * * @author Created by Omnicore CodeGuide...
true
true
public void processAvailableDataSubsetter(EventChannelGroupPair ecp, ProxySeismogramDC dataCenter, RequestFilter[][] infilters, RequestFilter[][] outfilters){ boolean pas...
public void processAvailableDataSubsetter(EventChannelGroupPair ecp, ProxySeismogramDC dataCenter, RequestFilter[][] infilters, RequestFilter[][] outfilters){ boolean pas...
diff --git a/src/com/example/qrrcodedatastreaming/MainActivity.java b/src/com/example/qrrcodedatastreaming/MainActivity.java index 4684d71..16ae6b7 100644 --- a/src/com/example/qrrcodedatastreaming/MainActivity.java +++ b/src/com/example/qrrcodedatastreaming/MainActivity.java @@ -1,163 +1,163 @@ package com.example.qr...
true
true
protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_main); c = null; try { c = Camera.open(1); // attempt to get a Camera instance } catch (Exception e){ // Camera is not av...
protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_main); c = null; try { c = Camera.open(1); // attempt to get a Camera instance } catch (Exception e){ // Camera is not av...
diff --git a/org.emftext.sdk.codegen.resource/src/org/emftext/sdk/codegen/resource/generators/interfaces/IOptionsGenerator.java b/org.emftext.sdk.codegen.resource/src/org/emftext/sdk/codegen/resource/generators/interfaces/IOptionsGenerator.java index a819ac919..ccf754218 100644 --- a/org.emftext.sdk.codegen.resource/sr...
false
true
public void generateJavaContents(JavaComposite sc) { sc.add("package " + getResourcePackageName() + ";"); sc.addLineBreak(); sc.addJavadoc( "A list of constants that contains the keys for some options that " + "are built into EMFText. Generated resource plug-ins do automatically " + "recognize thi...
public void generateJavaContents(JavaComposite sc) { sc.add("package " + getResourcePackageName() + ";"); sc.addLineBreak(); sc.addJavadoc( "A list of constants that contains the keys for some options that " + "are built into EMFText. Generated resource plug-ins do automatically " + "recognize thi...
diff --git a/easysoa-registry-v1/easysoa-registry-doctypes-core/src/main/java/org/easysoa/registry/RepositoryManagementListener.java b/easysoa-registry-v1/easysoa-registry-doctypes-core/src/main/java/org/easysoa/registry/RepositoryManagementListener.java index 77904c6e..7a3cc296 100644 --- a/easysoa-registry-v1/easysoa...
true
true
public void handleEvent(Event event) throws ClientException { // Ensure event nature EventContext context = event.getContext(); if (!(context instanceof DocumentEventContext)) { return; } DocumentEventContext documentContext = (DocumentEventContext) context; ...
public void handleEvent(Event event) throws ClientException { // Ensure event nature EventContext context = event.getContext(); if (!(context instanceof DocumentEventContext)) { return; } DocumentEventContext documentContext = (DocumentEventContext) context; ...
diff --git a/plugins/org.eclipse.emf.compare.ui/src/org/eclipse/emf/compare/ui/internal/RevisionComparisonHandler.java b/plugins/org.eclipse.emf.compare.ui/src/org/eclipse/emf/compare/ui/internal/RevisionComparisonHandler.java index fd0f7593e..5f3e19e18 100644 --- a/plugins/org.eclipse.emf.compare.ui/src/org/eclipse/em...
true
true
public boolean loadResources(ICompareInput input) throws IOException, CoreException { final ITypedElement left = input.getLeft(); final ITypedElement right = input.getRight(); final ITypedElement ancestor = input.getAncestor(); if (right instanceof FileRevisionTypedElement) { final IFileRevision rightRevis...
public boolean loadResources(ICompareInput input) throws IOException, CoreException { final ITypedElement left = input.getLeft(); final ITypedElement right = input.getRight(); final ITypedElement ancestor = input.getAncestor(); if (right instanceof FileRevisionTypedElement) { final IFileRevision rightRevis...
diff --git a/src/com/menny/android/anysoftkeyboard/keyboards/LatinKeyboard.java b/src/com/menny/android/anysoftkeyboard/keyboards/LatinKeyboard.java index 6abe7d74..010e38d1 100644 --- a/src/com/menny/android/anysoftkeyboard/keyboards/LatinKeyboard.java +++ b/src/com/menny/android/anysoftkeyboard/keyboards/LatinKeyboar...
true
true
protected void setPopupKeyChars(Key aKey) { if ((aKey.codes != null) && (aKey.codes.length > 0)) { switch((char)aKey.codes[0]) { case 'a': aKey.popupCharacters = "\u00e0\u00e2\u00e1\u00e4\u00e3\u00e6\u00e5\u0105"; aKey.popupResId = com.menny.android.anysoftkeyboard.R.xml.popup; bre...
protected void setPopupKeyChars(Key aKey) { if ((aKey.codes != null) && (aKey.codes.length > 0)) { switch((char)aKey.codes[0]) { case 'a': aKey.popupCharacters = "\u00e0\u00e2\u00e1\u00e4\u00e3\u00e6\u00e5\u0105"; aKey.popupResId = com.menny.android.anysoftkeyboard.R.xml.popup; bre...
diff --git a/content-types/src/java/org/sakaiproject/content/types/BlavatnikFolderType.java b/content-types/src/java/org/sakaiproject/content/types/BlavatnikFolderType.java index 24d9e8e9..d7c6e952 100644 --- a/content-types/src/java/org/sakaiproject/content/types/BlavatnikFolderType.java +++ b/content-types/src/java/o...
false
true
public void finalizeAction(Reference reference) { TermConverterService termConverterService = (TermConverterService) ComponentManager.get("uk.ac.ox.oucs.termdates.BsgTermConverterService"); ContentCollection entity = (ContentCollection)reference.getEntity(); SortedMap<Integer, String> oldMap =...
public void finalizeAction(Reference reference) { TermConverterService termConverterService = (TermConverterService) ComponentManager.get("uk.ac.ox.oucs.termdates.BsgTermConverterService"); ContentCollection entity = (ContentCollection)reference.getEntity(); SortedMap<Integer, String> oldMap =...
diff --git a/src/com/owncloud/android/ui/fragment/OCFileListFragment.java b/src/com/owncloud/android/ui/fragment/OCFileListFragment.java index e6f7b13..c751575 100644 --- a/src/com/owncloud/android/ui/fragment/OCFileListFragment.java +++ b/src/com/owncloud/android/ui/fragment/OCFileListFragment.java @@ -1,221 +1,221 @@...
true
true
public void listDirectory(OCFile directory) { DataStorageManager storageManager = mContainerActivity.getStorageManager(); if (storageManager != null) { // Check input parameters for null if(directory == null){ if(mFile != null){ directory ...
public void listDirectory(OCFile directory) { DataStorageManager storageManager = mContainerActivity.getStorageManager(); if (storageManager != null) { // Check input parameters for null if(directory == null){ if(mFile != null){ directory ...
diff --git a/comReader/main/algorithm/ProximityAlgorithm.java b/comReader/main/algorithm/ProximityAlgorithm.java index 325e0ae..20875a1 100644 --- a/comReader/main/algorithm/ProximityAlgorithm.java +++ b/comReader/main/algorithm/ProximityAlgorithm.java @@ -1,60 +1,61 @@ //TODO: Yenni, make JavaDoc comments please pac...
true
true
private Point giveStrongestSignal (HashMap<Integer, Double> readings) { double strongestSignalValue = 0; for (Map.Entry<Integer, Double> e : readings.entrySet()) { if (e.getValue() >= strongestSignalValue) { strongestSignalValue = e.getValue(); id = e.getKey(); } } Receiver receiverStrongestS...
private Point giveStrongestSignal (HashMap<Integer, Double> readings) { Map.Entry<Integer, Double> firstValue = readings.entrySet().iterator().next(); double strongestSignalValue = firstValue.getValue(); for (Map.Entry<Integer, Double> e : readings.entrySet()) { if (e.getValue() >= strongestSignalValue) { ...
diff --git a/luntbuild/src/com/luntsys/luntbuild/APIServlet.java b/luntbuild/src/com/luntsys/luntbuild/APIServlet.java index fd8b944..161ccf5 100644 --- a/luntbuild/src/com/luntsys/luntbuild/APIServlet.java +++ b/luntbuild/src/com/luntsys/luntbuild/APIServlet.java @@ -1,178 +1,178 @@ /* * */ package com.luntsys...
false
true
protected void doGet(HttpServletRequest httpServletRequest, HttpServletResponse httpServletResponse) throws ServletException, IOException { if (isValid(httpServletRequest.getPathInfo())) { Replier replier = null; String source = ""; String method = ""; String notify = httpServletRequest.getParameter("not...
protected void doGet(HttpServletRequest httpServletRequest, HttpServletResponse httpServletResponse) throws ServletException, IOException { if (isValid(httpServletRequest.getPathInfo())) { Replier replier = null; String source = ""; String method = ""; String notify = httpServletRequest.getParameter("not...
diff --git a/plugins/schemaeditor/src/main/java/org/apache/directory/studio/schemaeditor/view/editors/attributetype/AttributeTypeEditorOverviewPage.java b/plugins/schemaeditor/src/main/java/org/apache/directory/studio/schemaeditor/view/editors/attributetype/AttributeTypeEditorOverviewPage.java index 8b9e28937..4b8ef4bb...
true
true
private void createGeneralInformationSection( Composite parent, FormToolkit toolkit ) { // General Information Section Section section_general_information = toolkit.createSection( parent, Section.DESCRIPTION | Section.EXPANDED | Section.TITLE_BAR ); section_general_informatio...
private void createGeneralInformationSection( Composite parent, FormToolkit toolkit ) { // General Information Section Section section_general_information = toolkit.createSection( parent, Section.DESCRIPTION | Section.EXPANDED | Section.TITLE_BAR ); section_general_informatio...
diff --git a/components/bio-formats/src/loci/formats/in/ScanrReader.java b/components/bio-formats/src/loci/formats/in/ScanrReader.java index 1d4f81161..fcb69f23e 100644 --- a/components/bio-formats/src/loci/formats/in/ScanrReader.java +++ b/components/bio-formats/src/loci/formats/in/ScanrReader.java @@ -1,689 +1,690 @@...
true
true
protected void initFile(String id) throws FormatException, IOException { super.initFile(id); if (metadataFiles.size() > 0) { // this dataset has already been initialized return; } // make sure we have the .xml file if (!checkSuffix(id, "xml") && isGroupFiles()) { Location parent...
protected void initFile(String id) throws FormatException, IOException { super.initFile(id); if (metadataFiles.size() > 0) { // this dataset has already been initialized return; } // make sure we have the .xml file if (!checkSuffix(id, "xml") && isGroupFiles()) { Location parent...
diff --git a/src/main/java/vazkii/tinkerer/common/research/ModResearch.java b/src/main/java/vazkii/tinkerer/common/research/ModResearch.java index bfde2451..05b89661 100644 --- a/src/main/java/vazkii/tinkerer/common/research/ModResearch.java +++ b/src/main/java/vazkii/tinkerer/common/research/ModResearch.java @@ -1,282...
false
true
public static void initResearch() { registerResearchPages(); ResearchItem research; research = new TTResearchItem(LibResearch.KEY_DARK_QUARTZ, LibResearch.CATEGORY_THAUMICTINKERER, new AspectList(), -2, 2, 0, new ItemStack(ModItems.darkQuartz)).setStub().setAutoUnlock().setRound().registerResearchItem(); res...
public static void initResearch() { registerResearchPages(); ResearchItem research; research = new TTResearchItem(LibResearch.KEY_DARK_QUARTZ, LibResearch.CATEGORY_THAUMICTINKERER, new AspectList(), -2, 2, 0, new ItemStack(ModItems.darkQuartz)).setStub().setAutoUnlock().setRound().registerResearchItem(); res...
diff --git a/plugins/org.eclipse.wst.common.modulecore/modulecore-src/org/eclipse/wst/common/componentcore/internal/resources/VirtualComponent.java b/plugins/org.eclipse.wst.common.modulecore/modulecore-src/org/eclipse/wst/common/componentcore/internal/resources/VirtualComponent.java index fa98ec4d..37963a03 100644 ---...
false
true
public IVirtualReference[] getReferences() { StructureEdit core = null; try { core = StructureEdit.getStructureEditForRead(getProject()); WorkbenchComponent component = core.findComponentByName(getName()); List referencedComponents = component.getReferencedComponents(); ReferencedComponent referencedC...
public IVirtualReference[] getReferences() { StructureEdit core = null; try { core = StructureEdit.getStructureEditForRead(getProject()); WorkbenchComponent component = core.findComponentByName(getName()); List referencedComponents = component.getReferencedComponents(); ReferencedComponent referencedC...
diff --git a/subprojects/sonar-update-center/sonar-update-center-common/src/main/java/org/sonar/updatecenter/common/UpdateCenterSerializer.java b/subprojects/sonar-update-center/sonar-update-center-common/src/main/java/org/sonar/updatecenter/common/UpdateCenterSerializer.java index 04de8171eb..15793c4dea 100644 --- a/s...
true
true
public static Properties toProperties(UpdateCenter center) { Properties p = new Properties(); set(p, "date", FormatUtils.toString(center.getDate(), false)); set(p, "sonar.versions", center.getSonar().getVersions()); for (Release sonarRelease : center.getSonar().getReleases()) { set(p, "sonar." +...
public static Properties toProperties(UpdateCenter center) { Properties p = new Properties(); set(p, "date", FormatUtils.toString(center.getDate(), true)); set(p, "sonar.versions", center.getSonar().getVersions()); for (Release sonarRelease : center.getSonar().getReleases()) { set(p, "sonar." + ...
diff --git a/DroidPlanner/src/com/droidplanner/dialogs/PolygonDialog.java b/DroidPlanner/src/com/droidplanner/dialogs/PolygonDialog.java index 1578ebb7..2a80c670 100644 --- a/DroidPlanner/src/com/droidplanner/dialogs/PolygonDialog.java +++ b/DroidPlanner/src/com/droidplanner/dialogs/PolygonDialog.java @@ -1,85 +1,85 @@...
true
true
private AlertDialog buildDialog(Context context) { AlertDialog.Builder builder = new AlertDialog.Builder(context); builder.setTitle("Polygon Generator"); LinearLayout layout = new LinearLayout(context); layout.setOrientation(LinearLayout.VERTICAL); angleView = new SeekBarWithText(context); angleView....
private AlertDialog buildDialog(Context context) { AlertDialog.Builder builder = new AlertDialog.Builder(context); builder.setTitle("Polygon Generator"); LinearLayout layout = new LinearLayout(context); layout.setOrientation(LinearLayout.VERTICAL); angleView = new SeekBarWithText(context); angleView....
diff --git a/src/haven/resutil/GrowingPlant.java b/src/haven/resutil/GrowingPlant.java index 43a0616a..28a38355 100644 --- a/src/haven/resutil/GrowingPlant.java +++ b/src/haven/resutil/GrowingPlant.java @@ -1,87 +1,87 @@ /* * This file is part of the Haven & Hearth game client. * Copyright (C) 2009 Fredrik Tolf ...
true
true
private static Rendered[] cons(Gob gob, Resource res, int sn, int st) { List<Integer> meshes = new ArrayList<Integer>(); Collection<FastMesh.MeshRes> rc = res.layers(FastMesh.MeshRes.class); for(FastMesh.MeshRes r : rc) { if((r.id == st) && (r.mat != null) && !meshes.contains(r.ref)) meshes.add(r.ref); }...
private static Rendered[] cons(Gob gob, Resource res, int sn, int st) { List<Integer> meshes = new ArrayList<Integer>(); Collection<FastMesh.MeshRes> rc = res.layers(FastMesh.MeshRes.class); for(FastMesh.MeshRes r : rc) { if((r.id == st) && (r.mat != null) && !meshes.contains(r.ref)) meshes.add(r.ref); }...
diff --git a/Twist/src/com/secondhand/view/scene/GamePlayScene.java b/Twist/src/com/secondhand/view/scene/GamePlayScene.java index 7a6972ef..4b2a075b 100644 --- a/Twist/src/com/secondhand/view/scene/GamePlayScene.java +++ b/Twist/src/com/secondhand/view/scene/GamePlayScene.java @@ -1,214 +1,214 @@ package com.secondha...
true
true
private void setupView() { final float width = gameWorld.getLevelWidth(); final float height = gameWorld.getLevelHeight(); this.smoothCamera.setBounds(0, width, 0, height); this.smoothCamera.setBoundsEnabled(true); // setup the player final Player player = gameWorld.getPlayer(); player.getShape().deta...
private void setupView() { final float width = gameWorld.getLevelWidth(); final float height = gameWorld.getLevelHeight(); this.smoothCamera.setBounds(0, width, 0, height); this.smoothCamera.setBoundsEnabled(true); // setup the player final Player player = gameWorld.getPlayer(); player.getShape().deta...
diff --git a/nuxeo-core-convert-plugins/src/main/java/org/nuxeo/ecm/core/convert/plugins/text/extractors/FullTextConverter.java b/nuxeo-core-convert-plugins/src/main/java/org/nuxeo/ecm/core/convert/plugins/text/extractors/FullTextConverter.java index c86bda855..0ba71204e 100644 --- a/nuxeo-core-convert-plugins/src/main...
true
true
public BlobHolder convert(BlobHolder blobHolder, Map<String, Serializable> parameters) throws ConversionException { String srcMT=null; try { srcMT = blobHolder.getBlob().getMimeType(); } catch (ClientException e) { throw new ConversionException("Unable to...
public BlobHolder convert(BlobHolder blobHolder, Map<String, Serializable> parameters) throws ConversionException { String srcMT=null; try { srcMT = blobHolder.getBlob().getMimeType(); } catch (ClientException e) { throw new ConversionException("Unable to...
diff --git a/src/com/scurab/web/drifmaps/client/widget/StarEditWidget.java b/src/com/scurab/web/drifmaps/client/widget/StarEditWidget.java index 69b9e9f..3154b81 100644 --- a/src/com/scurab/web/drifmaps/client/widget/StarEditWidget.java +++ b/src/com/scurab/web/drifmaps/client/widget/StarEditWidget.java @@ -1,116 +1,11...
true
true
public void onClick(ClickEvent event) { String t = txtNote.getText(); if(t == null || t.length() == 0) return; setButtonsEnabled(false); btnSave.setText(DrifMaps.Words.Saving()); mStar.setNote(t); mDataService.processStar(mStar, DataService.UPDATE, new AsyncCallback<Star>() { @Overrid...
public void onClick(ClickEvent event) { String t = txtNote.getText(); setButtonsEnabled(false); btnSave.setText(DrifMaps.Words.Saving()); mStar.setNote(t); mDataService.processStar(mStar, DataService.UPDATE, new AsyncCallback<Star>() { @Override public void onSuccess(Star result) { ...
diff --git a/src/java/org/joshy/html/painter/BorderPainter.java b/src/java/org/joshy/html/painter/BorderPainter.java index e0f97616..4825d297 100755 --- a/src/java/org/joshy/html/painter/BorderPainter.java +++ b/src/java/org/joshy/html/painter/BorderPainter.java @@ -1,187 +1,187 @@ package org.joshy.html.painter; ...
true
true
public void paint(Context ctx, Box box) { Graphics g = ctx.getGraphics(); // TODO: color is per-side ((PWW 13/08/04)) box.border_color = ctx.css.getBorderColor(box.getElement()).topColor; // ASK: border-style is a shorthand property for 4 border sides // CSSBank/A...
public void paint(Context ctx, Box box) { Graphics g = ctx.getGraphics(); // TODO: color is per-side ((PWW 13/08/04)) box.border_color = ctx.css.getBorderColor(box.getElement()).topColor; // ASK: border-style is a shorthand property for 4 border sides // CSSBank/A...
diff --git a/drools-compiler/src/test/java/org/drools/compiler/kproject/KieProjectDefaultClasspathTest.java b/drools-compiler/src/test/java/org/drools/compiler/kproject/KieProjectDefaultClasspathTest.java index 8ecf70856d..e68da0344f 100644 --- a/drools-compiler/src/test/java/org/drools/compiler/kproject/KieProjectDefa...
true
true
public void createMultpleJarAndFileResources() throws IOException, ClassNotFoundException, InterruptedException { createKieModule( "jar1", true ); createKieModule( "jar2", true ); createKieModule( "jar3", true ); createKieModule( "fol4", ...
public void createMultpleJarAndFileResources() throws IOException, ClassNotFoundException, InterruptedException { createKieModule( "jar1", true ); createKieModule( "jar2", true ); createKieModule( "jar3", true ); createKieModule( "fol4", ...
diff --git a/main/src/main/java/com/bloatit/framework/webserver/Context.java b/main/src/main/java/com/bloatit/framework/webserver/Context.java index cbae45da4..caeb88240 100644 --- a/main/src/main/java/com/bloatit/framework/webserver/Context.java +++ b/main/src/main/java/com/bloatit/framework/webserver/Context.java @@ ...
true
true
static void reInitializeContext(final WebHeader header, final Session session) { updateTime(); setHeader(header); setSession(session); setLocalizator(new Localizator(header.getLanguage(), header.getHttpHeader().getHttpAcceptLanguage())); }
public static void reInitializeContext(final WebHeader header, final Session session) { updateTime(); setHeader(header); setSession(session); setLocalizator(new Localizator(header.getLanguage(), header.getHttpHeader().getHttpAcceptLanguage())); }
diff --git a/src/asl/Tests.java b/src/asl/Tests.java index 609e907..9e1ee83 100644 --- a/src/asl/Tests.java +++ b/src/asl/Tests.java @@ -1,75 +1,75 @@ package asl; import java.nio.ByteBuffer; import java.util.ArrayList; import org.apache.commons.cli.CommandLine; import org.apache.commons.cli.Option; import or...
true
true
public static void main(String args[]) { MemberDigest d1 = new MemberDigest() { protected void addDigestMembers() { addToDigest("Test string for first digest."); } }; MemberDigest d2 = new MemberDigest() { protected void addDigestMember...
public static void main(String args[]) { MemberDigest d1 = new MemberDigest() { protected void addDigestMembers() { addToDigest("Test string for first digest."); } }; MemberDigest d2 = new MemberDigest() { protected void addDigestMember...