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/main/java/expectj/Spawn.java b/src/main/java/expectj/Spawn.java index 4454828..6f2c33b 100644 --- a/src/main/java/expectj/Spawn.java +++ b/src/main/java/expectj/Spawn.java @@ -1,468 +1,467 @@ package expectj; import java.io.BufferedWriter; import java.io.IOException; import java.io.OutputStream...
false
true
private void expect(String pattern, long lTimeOutSeconds, Selector selector) throws IOException, TimeoutException { if (lTimeOutSeconds < -1) { throw new IllegalArgumentException("Timeout must be >= -1, was " + lTimeOutSeconds); } ...
private void expect(String pattern, long lTimeOutSeconds, Selector selector) throws IOException, TimeoutException { if (lTimeOutSeconds < -1) { throw new IllegalArgumentException("Timeout must be >= -1, was " + lTimeOutSeconds); } ...
diff --git a/binary/src/crosby/binary/osmosis/OsmosisSerializerFactory.java b/binary/src/crosby/binary/osmosis/OsmosisSerializerFactory.java index eb4ef048..2afdc1b7 100644 --- a/binary/src/crosby/binary/osmosis/OsmosisSerializerFactory.java +++ b/binary/src/crosby/binary/osmosis/OsmosisSerializerFactory.java @@ -1,61 ...
true
true
protected TaskManager createTaskManagerImpl(TaskConfiguration taskConfig) { // TODO Auto-generated method stub String fileName; File file; OsmosisSerializer task = null; // Get the task arguments. fileName = getStringArgument(taskConfig, ARG_FILE_NAME, ...
protected TaskManager createTaskManagerImpl(TaskConfiguration taskConfig) { // TODO Auto-generated method stub String fileName; File file; OsmosisSerializer task = null; // Get the task arguments. fileName = getStringArgument(taskConfig, ARG_FILE_NAME, ...
diff --git a/illaclient/src/illarion/client/gui/controller/game/GUIChatHandler.java b/illaclient/src/illarion/client/gui/controller/game/GUIChatHandler.java index 18ea3328..e4b08d29 100644 --- a/illaclient/src/illarion/client/gui/controller/game/GUIChatHandler.java +++ b/illaclient/src/illarion/client/gui/controller/ga...
true
true
private void addMessageBubble(final Char character, final String message, final Color color) { final Avatar charAvatar = character.getAvatar(); if (charAvatar == null) { return; } final Rectangle charDisplayRect = charAvatar.getDisplayRect(); final PanelBuilder p...
private void addMessageBubble(final Char character, final String message, final Color color) { if (character == null) { return; } final Avatar charAvatar = character.getAvatar(); if (charAvatar == null) { return; } final Rectangle charDisplayRe...
diff --git a/src/main/java/org/basex/query/up/primitives/DBAdd.java b/src/main/java/org/basex/query/up/primitives/DBAdd.java index a10b027c0..59f9536b9 100644 --- a/src/main/java/org/basex/query/up/primitives/DBAdd.java +++ b/src/main/java/org/basex/query/up/primitives/DBAdd.java @@ -1,152 +1,155 @@ package org.basex....
true
true
private Data docData(final Item doc, final byte[] pth) throws QueryException { final MemData mdata; String name = string(pth); if(name.endsWith(".")) RESINV.thrw(info, pth); // add slash to the target if the addressed file is an archive or directory IO io = null; if(doc instanceof AStr) { ...
private Data docData(final Item doc, final byte[] pth) throws QueryException { final MemData mdata; String name = string(pth); if(name.endsWith(".")) RESINV.thrw(info, pth); // add slash to the target if the addressed file is an archive or directory IO io = null; if(doc instanceof AStr) { ...
diff --git a/astroboa-resource-api/src/main/java/org/betaconceptframework/astroboa/resourceapi/filter/CmsDefinitionFilter.java b/astroboa-resource-api/src/main/java/org/betaconceptframework/astroboa/resourceapi/filter/CmsDefinitionFilter.java index c8bbb1a..24cc6f8 100644 --- a/astroboa-resource-api/src/main/java/org/b...
true
true
public void doFilter(ServletRequest request, ServletResponse response, FilterChain chain) throws IOException, ServletException { HttpServletRequest httpServletRequest = (HttpServletRequest) request; HttpServletResponse httpServletResponse = (HttpServletResponse) response; String repositoryId = null; Strin...
public void doFilter(ServletRequest request, ServletResponse response, FilterChain chain) throws IOException, ServletException { HttpServletRequest httpServletRequest = (HttpServletRequest) request; HttpServletResponse httpServletResponse = (HttpServletResponse) response; String repositoryId = null; Strin...
diff --git a/org.eclipse.m2e.editor/src/org/eclipse/m2e/editor/pom/SearchControl.java b/org.eclipse.m2e.editor/src/org/eclipse/m2e/editor/pom/SearchControl.java index c222a975..4278f76a 100644 --- a/org.eclipse.m2e.editor/src/org/eclipse/m2e/editor/pom/SearchControl.java +++ b/org.eclipse.m2e.editor/src/org/eclipse/m2e...
false
true
protected Control createControl(Composite parent) { if(parent instanceof ToolBar) { // the FormHeading class sets the toolbar cursor to hand for some reason, // we change it back so the input control can use a proper I-beam cursor parent.setCursor(null); } FormToolkit toolkit = managedF...
protected Control createControl(Composite parent) { if(parent instanceof ToolBar) { // the FormHeading class sets the toolbar cursor to hand for some reason, // we change it back so the input control can use a proper I-beam cursor parent.setCursor(null); } FormToolkit toolkit = managedF...
diff --git a/openjpa-persistence/src/main/java/org/apache/openjpa/persistence/criteria/PredicateImpl.java b/openjpa-persistence/src/main/java/org/apache/openjpa/persistence/criteria/PredicateImpl.java index d44a8ce9f..0f75bd42c 100644 --- a/openjpa-persistence/src/main/java/org/apache/openjpa/persistence/criteria/Predi...
true
true
org.apache.openjpa.kernel.exps.Expression toKernelExpression( ExpressionFactory factory, MetamodelImpl model, CriteriaQueryImpl q) { if (_exps == null || _exps.isEmpty()) return factory.emptyExpression(); if (_exps.size() == 1) return ((ExpressionImpl<?>)_exps.get(0))...
org.apache.openjpa.kernel.exps.Expression toKernelExpression( ExpressionFactory factory, MetamodelImpl model, CriteriaQueryImpl q) { if (_exps == null || _exps.isEmpty()) return factory.emptyExpression(); if (_exps.size() == 1) return ((ExpressionImpl<?>)_exp...
diff --git a/src/Instruction.java b/src/Instruction.java index 19dc040..ae04882 100644 --- a/src/Instruction.java +++ b/src/Instruction.java @@ -1,218 +1,218 @@ import java.util.*; import java.lang.*; public abstract class Instruction { public static Integer operandCount = 0; private ArrayList<Operand> ope...
true
true
public ArrayList<Sparc> toSparc() { ArrayList<Sparc> instructions = new ArrayList<Sparc>(); for (String instr : this.sparcs) { String cap = instr.toUpperCase(); String classname = cap.substring(0,1) + instr.substring(1) + "Sparc"; try { Class cls = Class.forName(c...
public ArrayList<Sparc> toSparc() { ArrayList<Sparc> instructions = new ArrayList<Sparc>(); for (String instr : this.sparcs) { String cap = instr.toUpperCase(); String classname = cap.substring(0,1) + instr.substring(1) + "Sparc"; try { Class cls = Class.forName(c...
diff --git a/flexodesktop/GUI/flexointerfacebuilder/src/dev/java/org/openflexo/fib/editor/view/container/FIBEditablePanelView.java b/flexodesktop/GUI/flexointerfacebuilder/src/dev/java/org/openflexo/fib/editor/view/container/FIBEditablePanelView.java index 9dca55d90..b6b884f8e 100644 --- a/flexodesktop/GUI/flexointerfa...
false
true
protected void retrieveContainedJComponentsAndConstraints() { if (placeholders == null) { placeholders = new Vector<PlaceHolder>(); } placeholders.removeAllElements(); super.retrieveContainedJComponentsAndConstraints(); if (!getComponent().getProtectContent()) { // FlowLayout if (getComponent().g...
protected void retrieveContainedJComponentsAndConstraints() { if (placeholders == null) { placeholders = new Vector<PlaceHolder>(); } placeholders.removeAllElements(); super.retrieveContainedJComponentsAndConstraints(); if (!getComponent().getProtectContent()) { // FlowLayout if (getComponent().g...
diff --git a/src/vlc/net/protocol/file/FileResourceConnection.java b/src/vlc/net/protocol/file/FileResourceConnection.java index b5cdbc2..b47e492 100644 --- a/src/vlc/net/protocol/file/FileResourceConnection.java +++ b/src/vlc/net/protocol/file/FileResourceConnection.java @@ -1,211 +1,211 @@ /*************************...
false
true
protected FileResourceConnection(String path) throws MalformedURLException { super(new URL("file://" + path)); // strip the query part from path to get the needed bits. String[] stripped_file = URIUtils.stripFile(path); path = stripped_file[0]; query = stripped_file[1]; reference = str...
protected FileResourceConnection(String uri) throws MalformedURLException { super(new URL("file://" + uri)); // strip the query part from path to get the needed bits. String[] stripped_file = URIUtils.stripFile(uri); this.path = stripped_file[0]; query = stripped_file[1]; reference = s...
diff --git a/src/main/java/freemarker/core/ParseException.java b/src/main/java/freemarker/core/ParseException.java index b00c8867..672f851a 100644 --- a/src/main/java/freemarker/core/ParseException.java +++ b/src/main/java/freemarker/core/ParseException.java @@ -1,454 +1,454 @@ /* * Copyright (c) 2003 The Visigoth S...
true
true
private String getCustomUnexpectedTokenDetails() { final Token nextToken = currentToken.next; final int kind = nextToken.kind; if (kind == EOF) { StringBuffer buf = new StringBuffer("Unexpected end of file reached.\n"); for (int i = 0; i < expectedTokenSequences.length; i++) { ...
private String getCustomUnexpectedTokenDetails() { final Token nextToken = currentToken.next; final int kind = nextToken.kind; if (kind == EOF) { StringBuffer buf = new StringBuffer("Unexpected end of file reached.\n"); for (int i = 0; i < expectedTokenSequences.length; i++) { ...
diff --git a/src/com/adamharley/happyhouse/MainActivity.java b/src/com/adamharley/happyhouse/MainActivity.java index 3db01af..8a60558 100644 --- a/src/com/adamharley/happyhouse/MainActivity.java +++ b/src/com/adamharley/happyhouse/MainActivity.java @@ -1,780 +1,780 @@ package com.adamharley.happyhouse; import java....
false
true
private void loadImage(final int n, final String channel, final JSONArray sprite) throws JSONException { String imageName = sprite.getString(0); Integer imageResID = getResources().getIdentifier("member_"+imageName, "drawable", getPackageName()); ImageView iv = (ImageView) stage.findViewWithTag("chan...
private void loadImage(final int n, final String channel, final JSONArray sprite) throws JSONException { String imageName = sprite.getString(0); Integer imageResID = getResources().getIdentifier("member_"+imageName, "drawable", getPackageName()); ImageView iv = (ImageView) stage.findViewWithTag("chan...
diff --git a/apps/server/SyncServer/src/test/java/de/consistec/syncframework/server/EmbeddedSyncServiceServer.java b/apps/server/SyncServer/src/test/java/de/consistec/syncframework/server/EmbeddedSyncServiceServer.java index a825018..070eded 100644 --- a/apps/server/SyncServer/src/test/java/de/consistec/syncframework/s...
true
true
public void init() throws Exception { tester = new ServletTester(); tester.setContextPath("/"); tester.setResourceBase("./apps/server/SyncServer/target/test-classes/server-tests"); System.out.println("+++++++++++++++++++++++"); System.out.println(tester.getResourceBase()); ...
public void init() throws Exception { tester = new ServletTester(); tester.setContextPath("/"); // tester.setResourceBase("./apps/server/SyncServer/target/test-classes/server-tests"); tester.setResourceBase("./target/test-classes/server-tests"); System.out.println("+++++++++++...
diff --git a/freeplane_plugin_script/src/org/freeplane/plugin/script/proxy/ConnectorInListProxy.java b/freeplane_plugin_script/src/org/freeplane/plugin/script/proxy/ConnectorInListProxy.java index 2e2710c95..14c655035 100644 --- a/freeplane_plugin_script/src/org/freeplane/plugin/script/proxy/ConnectorInListProxy.java +...
true
true
List<LinkModel> getConnectorSet() { final Set<LinkModel> links = MapLinks.getLinks(node.getMap()).get(node.getID()); return links == null ? Collections.<LinkModel> emptyList() : Collections .unmodifiableList(new ArrayList<LinkModel>(links)); }
List<LinkModel> getConnectorSet() { final MapLinks allLinks = MapLinks.getLinks(node.getMap()); final Set<LinkModel> links = allLinks == null ? null : allLinks.get(node.getID()); return links == null ? Collections.<LinkModel> emptyList() : Collections .unmodifiableList(new ArrayList<LinkModel>(links)...
diff --git a/cli/src/main/java/com/vmware/bdd/cli/commands/ClusterCommands.java b/cli/src/main/java/com/vmware/bdd/cli/commands/ClusterCommands.java index 5cbc184e..c660d23f 100644 --- a/cli/src/main/java/com/vmware/bdd/cli/commands/ClusterCommands.java +++ b/cli/src/main/java/com/vmware/bdd/cli/commands/ClusterCommand...
true
true
public void createCluster( @CliOption(key = { "name" }, mandatory = true, help = "The cluster name") final String name, @CliOption(key = { "type" }, mandatory = false, help = "The cluster type is Hadoop or HBase") final String type, @CliOption(key = { "distro" }, mandatory = false, help = ...
public void createCluster( @CliOption(key = { "name" }, mandatory = true, help = "The cluster name") final String name, @CliOption(key = { "type" }, mandatory = false, help = "The cluster type is Hadoop or HBase") final String type, @CliOption(key = { "distro" }, mandatory = false, help = ...
diff --git a/src/ch/ubx/startlist/client/ui/FlightEntryValidator.java b/src/ch/ubx/startlist/client/ui/FlightEntryValidator.java index f331800..f1357e1 100644 --- a/src/ch/ubx/startlist/client/ui/FlightEntryValidator.java +++ b/src/ch/ubx/startlist/client/ui/FlightEntryValidator.java @@ -1,152 +1,152 @@ package ch.ubx...
false
true
public boolean isValid() { Date startTime, landingTime; // Date { Date date = gui.dateBox.getValue(); if (date.compareTo(new Date()) > 0) { showMessage(gui.dateBox, "Datum in der Zukunft!"); return false; } } // Start Time { TextBox tb = gui.startDateBox.getTextBox(); if (tb != nul...
public boolean isValid() { Date startTime, landingTime; // Date { Date date = gui.dateBox.getValue(); if (date.compareTo(new Date()) > 0) { showMessage(gui.dateBox, "Datum in der Zukunft!"); return false; } } // Start Time { TextBox tb = gui.startDateBox.getTextBox(); if (tb != nul...
diff --git a/src/main/java/fr/ybonnel/codestory/util/LogUtil.java b/src/main/java/fr/ybonnel/codestory/util/LogUtil.java index a8d461d..64d5c18 100644 --- a/src/main/java/fr/ybonnel/codestory/util/LogUtil.java +++ b/src/main/java/fr/ybonnel/codestory/util/LogUtil.java @@ -1,111 +1,111 @@ package fr.ybonnel.codestory.u...
true
true
public static void logHttpRequest(Date startTime, HttpServletRequest request, String payLoad, long timeWithNetwork, long timeWithoutNetwork, WebServerResponse response) { String query = request.getParameter(WebServer.QUERY_PARAMETER); if (query != null && query.startsWith("log") || "...
public static void logHttpRequest(Date startTime, HttpServletRequest request, String payLoad, long timeWithNetwork, long timeWithoutNetwork, WebServerResponse response) { String query = request.getParameter(WebServer.QUERY_PARAMETER); if (query != null && query.startsWith("log") || "...
diff --git a/spring-integration-core/src/main/java/org/springframework/integration/config/xml/AbstractDelegatingConsumerEndpointParser.java b/spring-integration-core/src/main/java/org/springframework/integration/config/xml/AbstractDelegatingConsumerEndpointParser.java index 6337684275..75565670c2 100644 --- a/spring-in...
true
true
protected final BeanDefinitionBuilder parseHandler(Element element, ParserContext parserContext) { BeanDefinitionBuilder builder = BeanDefinitionBuilder.genericBeanDefinition(this.getFactoryBeanClassName()); BeanComponentDefinition innerDefinition = IntegrationNamespaceUtils.parseInnerHandlerDefinition(element, pa...
protected final BeanDefinitionBuilder parseHandler(Element element, ParserContext parserContext) { BeanDefinitionBuilder builder = BeanDefinitionBuilder.genericBeanDefinition(this.getFactoryBeanClassName()); BeanComponentDefinition innerDefinition = IntegrationNamespaceUtils.parseInnerHandlerDefinition(element, pa...
diff --git a/Core/SDK/org.emftext.sdk.codegen.resource/src/org/emftext/sdk/codegen/resource/creators/AbstractPluginCreator.java b/Core/SDK/org.emftext.sdk.codegen.resource/src/org/emftext/sdk/codegen/resource/creators/AbstractPluginCreator.java index e587834ea..f1da34111 100644 --- a/Core/SDK/org.emftext.sdk.codegen.re...
true
true
public void create(IPluginDescriptor plugin, GenerationContext context, ParameterType parameters, IProgressMonitor monitor) throws IOException { SubMonitor progress = SubMonitor.convert(monitor, "generating " + getPluginName() + " plug-in...", 100); ConcreteSyntax syntax = context.getConcreteSyntax(); Reso...
public void create(IPluginDescriptor plugin, GenerationContext context, ParameterType parameters, IProgressMonitor monitor) throws IOException { SubMonitor progress = SubMonitor.convert(monitor, "generating " + getPluginName() + " plug-in...", 100); ConcreteSyntax syntax = context.getConcreteSyntax(); Reso...
diff --git a/core/src/main/java/gov/nih/nci/cabig/ctms/tools/configuration/TransientConfiguration.java b/core/src/main/java/gov/nih/nci/cabig/ctms/tools/configuration/TransientConfiguration.java index 8fd15a1..8f59e1b 100644 --- a/core/src/main/java/gov/nih/nci/cabig/ctms/tools/configuration/TransientConfiguration.java...
true
true
public void copyTo(Configuration target) { for (ConfigurationProperty<?> property : target.getProperties().getAll()) { if (target.isSet(property)) { target.set((ConfigurationProperty<Object>) property, this.get(property)); } else { target.reset(propert...
public void copyTo(Configuration target) { for (ConfigurationProperty<?> property : target.getProperties().getAll()) { if (isSet(property)) { target.set((ConfigurationProperty<Object>) property, this.get(property)); } else { target.reset(property); ...
diff --git a/src/main/java/ch/zhaw/mppce/compiler/instructions/INC.java b/src/main/java/ch/zhaw/mppce/compiler/instructions/INC.java index 51dd348..b9e67ad 100644 --- a/src/main/java/ch/zhaw/mppce/compiler/instructions/INC.java +++ b/src/main/java/ch/zhaw/mppce/compiler/instructions/INC.java @@ -1,51 +1,51 @@ package ...
true
true
public void doIt(CPU cpu) { Tools tools = new Tools(); Boolean overflow = false; Register accu = cpu.getAccu(); // Get Value in Accumulator); String accuValue = accu.getRegister(); // Convert to Dec int a = Integer.parseInt(accuValue); // Check for ...
public void doIt(CPU cpu) { Tools tools = new Tools(); Boolean overflow = false; Register accu = cpu.getAccu(); // Get Value in Accumulator); String accuValue = accu.getRegister(); // Convert to Dec int a = tools.convertToDec(accuValue); // Check fo...
diff --git a/src/main/java/org/spout/engine/filesystem/versioned/EntityFiles.java b/src/main/java/org/spout/engine/filesystem/versioned/EntityFiles.java index 050ea6759..a3377dc46 100644 --- a/src/main/java/org/spout/engine/filesystem/versioned/EntityFiles.java +++ b/src/main/java/org/spout/engine/filesystem/versioned/...
false
true
private static SpoutEntity loadEntityImpl(World w, CompoundTag tag, String name) { CompoundMap map = tag.getValue(); byte version = SafeCast.toByte(NBTMapper.toTagValue(map.get("version")), (byte) -1); if (version == -1) { Spout.getLogger().info("Entity version is -1"); return null; } if (versio...
private static SpoutEntity loadEntityImpl(World w, CompoundTag tag, String name) { CompoundMap map = tag.getValue(); byte version = SafeCast.toByte(NBTMapper.toTagValue(map.get("version")), (byte) -1); if (version == -1) { Spout.getLogger().info("Entity version is -1"); return null; } if (versio...
diff --git a/src/plugins/WebOfTrust/SubscriptionManager.java b/src/plugins/WebOfTrust/SubscriptionManager.java index 23146b61..42548766 100644 --- a/src/plugins/WebOfTrust/SubscriptionManager.java +++ b/src/plugins/WebOfTrust/SubscriptionManager.java @@ -1,1514 +1,1514 @@ /* This code is part of Freenet. It is distrib...
false
true
protected boolean sendNotifications(SubscriptionManager manager) { if(SubscriptionManager.logMINOR) Logger.minor(manager, "sendNotifications() for " + this); switch(getType()) { case FCP: for(final Notification notification : manager.getNotifications(this)) { if(SubscriptionManager.logDEBUG) ...
protected boolean sendNotifications(SubscriptionManager manager) { if(SubscriptionManager.logMINOR) Logger.minor(manager, "sendNotifications() for " + this); switch(getType()) { case FCP: for(final Notification notification : manager.getNotifications(this)) { if(SubscriptionManager.logDEBUG) ...
diff --git a/illamapedit/src/illarion/mapedit/render/ObstacleRenderer.java b/illamapedit/src/illarion/mapedit/render/ObstacleRenderer.java index 0fb2ea6f..6d44cd75 100644 --- a/illamapedit/src/illarion/mapedit/render/ObstacleRenderer.java +++ b/illamapedit/src/illarion/mapedit/render/ObstacleRenderer.java @@ -1,107 +1,...
true
true
public void renderMap(final Map map, final Rectangle viewport, final int level, final Graphics2D g) { final int width = map.getWidth(); final int height = map.getHeight(); final int z = map.getZ() - level; final AffineTransform transform = g.getTransform(); for (int x = 0; x...
public void renderMap(final Map map, final Rectangle viewport, final int level, final Graphics2D g) { final int width = map.getWidth(); final int height = map.getHeight(); final int z = map.getZ() - level; final AffineTransform transform = g.getTransform(); for (int x = 0; x...
diff --git a/src/org/jruby/runtime/builtin/meta/IOMetaClass.java b/src/org/jruby/runtime/builtin/meta/IOMetaClass.java index cb35bd86f..dae1747e3 100644 --- a/src/org/jruby/runtime/builtin/meta/IOMetaClass.java +++ b/src/org/jruby/runtime/builtin/meta/IOMetaClass.java @@ -1,408 +1,408 @@ /***** BEGIN LICENSE BLOCK ***...
true
true
public static IRubyObject select_static(IRuby runtime, IRubyObject[] args) { try { boolean atLeastOneDescriptor = false; Selector selector = Selector.open(); if (!args[0].isNil()) { atLeastOneDescriptor = true; // read ...
public static IRubyObject select_static(IRuby runtime, IRubyObject[] args) { try { boolean atLeastOneDescriptor = false; Selector selector = Selector.open(); if (!args[0].isNil()) { atLeastOneDescriptor = true; // read ...
diff --git a/src/com/ijg/darklight/sdk/core/Frontend.java b/src/com/ijg/darklight/sdk/core/Frontend.java index ae4bec7..9710a7f 100644 --- a/src/com/ijg/darklight/sdk/core/Frontend.java +++ b/src/com/ijg/darklight/sdk/core/Frontend.java @@ -1,151 +1,151 @@ package com.ijg.darklight.sdk.core; import java.io.File; i...
true
true
public void promptForName() { if (readName() != null) { if (!userName.equals("unset")) { engine.authUser(); return; } } else { String localName = ""; String testName = ""; try { if (engine.teamSession()) { localName = JOptionPane.showInputDialog(null, "Enter your team name", "It's a...
public void promptForName() { if (readName() != null) { if (!userName.equals("unset")) { engine.authUser(); return; } } else { String localName = ""; String testName = ""; try { if (engine.teamSession()) { localName = JOptionPane.showInputDialog(null, "Enter your team name", "It's a...
diff --git a/gsf-taglib/src/main/java/com/fatwire/gst/foundation/taglib/NavigationHelper.java b/gsf-taglib/src/main/java/com/fatwire/gst/foundation/taglib/NavigationHelper.java index b0a5933d..99a51a8f 100644 --- a/gsf-taglib/src/main/java/com/fatwire/gst/foundation/taglib/NavigationHelper.java +++ b/gsf-taglib/src/mai...
false
true
private Map<String, Object> getSitePlanAsMap(String pageid, int level) { // object to hold results Map<String, Object> result = new HashMap<String, Object>(); AssetId pageId = new AssetIdImpl("Page", Long.parseLong(pageid)); if (!isValidOnDate(pageId, assetEffectiveDate)) { ...
private Map<String, Object> getSitePlanAsMap(String pageid, int level) { // object to hold results Map<String, Object> result = new HashMap<String, Object>(); AssetId pageId = new AssetIdImpl("Page", Long.parseLong(pageid)); if (!isValidOnDate(pageId, assetEffectiveDate)) { ...
diff --git a/src/com/android/mms/transaction/MessagingNotification.java b/src/com/android/mms/transaction/MessagingNotification.java index 3c8b8ba7..c2cfd334 100644 --- a/src/com/android/mms/transaction/MessagingNotification.java +++ b/src/com/android/mms/transaction/MessagingNotification.java @@ -1,1358 +1,1361 @@ /*...
false
true
private static void updateNotification( Context context, boolean isNew, int uniqueThreadCount) { // If the user has turned off notifications in settings, don't do any notifying. if (!MessagingPreferenceActivity.getNotificationEnabled(context)) { if (DE...
private static void updateNotification( Context context, boolean isNew, int uniqueThreadCount) { // If the user has turned off notifications in settings, don't do any notifying. if (!MessagingPreferenceActivity.getNotificationEnabled(context)) { if (DE...
diff --git a/src/main/java/org/spout/engine/renderer/GL20BatchVertexRenderer.java b/src/main/java/org/spout/engine/renderer/GL20BatchVertexRenderer.java index a3452b0a5..a7ce27478 100644 --- a/src/main/java/org/spout/engine/renderer/GL20BatchVertexRenderer.java +++ b/src/main/java/org/spout/engine/renderer/GL20BatchVer...
true
true
protected void doFlush() { for(Entry<Integer, Buffer> entry : buffers.entrySet()){ int layout = entry.getKey(); Buffer buffer = entry.getValue(); if(buffer instanceof FloatBuffer){ GLFloatBuffer vertexBuffer = vertexBuffers.get(layout); if(vertexBuffer == null) { vertexBuffer = new GLFloatBuf...
protected void doFlush() { for(Entry<Integer, Buffer> entry : buffers.entrySet()){ int layout = entry.getKey(); Buffer buffer = entry.getValue(); if(buffer instanceof FloatBuffer){ GLFloatBuffer vertexBuffer = vertexBuffers.get(layout); if(vertexBuffer == null) { vertexBuffer = new GLFloatBuf...
diff --git a/frost-wot/lib/hyperocha/hyperocha/util/exec/ExecuteDocument.java b/frost-wot/lib/hyperocha/hyperocha/util/exec/ExecuteDocument.java index 084a5ca5..5b20e3c0 100644 --- a/frost-wot/lib/hyperocha/hyperocha/util/exec/ExecuteDocument.java +++ b/frost-wot/lib/hyperocha/hyperocha/util/exec/ExecuteDocument.java @...
false
true
public static void openDocument(File document) throws IOException { String osn = System.getProperty("os.name").toLowerCase(); String cmd; if (osn.indexOf("windows") > -1) { if ((osn.indexOf("9") > -1) || (osn.indexOf("me") > -1)) { cmd = "command.com"; } else { cmd = "cmd.exe"; } Runti...
public static void openDocument(File document) throws IOException { String osn = System.getProperty("os.name").toLowerCase(); String cmd; if (osn.indexOf("windows") > -1) { if ((osn.indexOf("9") > -1) || (osn.indexOf("me") > -1)) { cmd = "command.com"; } else { cmd = "CMD"; } cmd = cmd...
diff --git a/NAKJava/src/de/nordakademie/nakjava/gamelogic/cards/verlies/Dieb.java b/NAKJava/src/de/nordakademie/nakjava/gamelogic/cards/verlies/Dieb.java index dc7d343..4f59742 100644 --- a/NAKJava/src/de/nordakademie/nakjava/gamelogic/cards/verlies/Dieb.java +++ b/NAKJava/src/de/nordakademie/nakjava/gamelogic/cards/v...
false
true
private void gainHalfOfOpponentsLostArtifacts( Map<Target, PlayerState> states, Class<? extends Artifact> class1, int maxValue) { InGameSpecificModel selfModel = (InGameSpecificModel) states.get( Target.SELF).getStateSpecificModel(); InGameSpecificModel opponentModel = (InGameSpecificModel) states.get( ...
private void gainHalfOfOpponentsLostArtifacts( Map<Target, PlayerState> states, Class<? extends Artifact> class1, int maxValue) { InGameSpecificModel selfModel = (InGameSpecificModel) states.get( Target.SELF).getStateSpecificModel(); InGameSpecificModel opponentModel = (InGameSpecificModel) states.get( ...
diff --git a/oak-mongomk/src/main/java/org/apache/jackrabbit/mongomk/impl/action/FetchHeadRevisionIdAction.java b/oak-mongomk/src/main/java/org/apache/jackrabbit/mongomk/impl/action/FetchHeadRevisionIdAction.java index 313f899ae9..373bc8fd9d 100644 --- a/oak-mongomk/src/main/java/org/apache/jackrabbit/mongomk/impl/acti...
true
true
public Long execute() throws Exception { DBCollection headCollection = nodeStore.getSyncCollection(); MongoSync syncMongo = (MongoSync)headCollection.findOne(); long headRevisionId = syncMongo.getHeadRevisionId(); DBCollection collection = nodeStore.getCommitCollection(); Qu...
public Long execute() throws Exception { DBCollection headCollection = nodeStore.getSyncCollection(); MongoSync syncMongo = (MongoSync)headCollection.findOne(); long headRevisionId = syncMongo.getHeadRevisionId(); DBCollection collection = nodeStore.getCommitCollection(); Qu...
diff --git a/src/main/java/cpw/mods/fml/installer/SimpleInstaller.java b/src/main/java/cpw/mods/fml/installer/SimpleInstaller.java index 46712c0..1b44c07 100644 --- a/src/main/java/cpw/mods/fml/installer/SimpleInstaller.java +++ b/src/main/java/cpw/mods/fml/installer/SimpleInstaller.java @@ -1,56 +1,56 @@ package cpw....
true
true
public static void main(String[] args) throws IOException { String userHomeDir = System.getProperty("user.home", "."); String osType = System.getProperty("os.name").toLowerCase(Locale.ENGLISH); File targetDir = null; String mcDir = ".minecraft"; if (osType.contains("win")...
public static void main(String[] args) throws IOException { String userHomeDir = System.getProperty("user.home", "."); String osType = System.getProperty("os.name").toLowerCase(Locale.ENGLISH); File targetDir = null; String mcDir = ".minecraft"; if (osType.contains("win")...
diff --git a/mgmtui/src/main/java/com/chinarewards/qqgbvpn/mgmtui/logic/pos/impl/DeliveryLogicImpl.java b/mgmtui/src/main/java/com/chinarewards/qqgbvpn/mgmtui/logic/pos/impl/DeliveryLogicImpl.java index cd1dbcfc..e2f1e5e3 100644 --- a/mgmtui/src/main/java/com/chinarewards/qqgbvpn/mgmtui/logic/pos/impl/DeliveryLogicImpl...
true
true
public void confirmDelivery(String deliveryNoteId) throws DeliveryWithWrongStatusException, PosWithWrongStatusException, DeliveryNoteWithNoDetailException, AgentNotException, PosNotExistException { // check delivery note status - DeliveryNoteStatus#DRAFT DeliveryNoteVO dn = getDeliveryDao().fetchDeliveryB...
public void confirmDelivery(String deliveryNoteId) throws DeliveryWithWrongStatusException, PosWithWrongStatusException, DeliveryNoteWithNoDetailException, AgentNotException, PosNotExistException { // check delivery note status - DeliveryNoteStatus#DRAFT DeliveryNoteVO dn = getDeliveryDao().fetchDeliveryB...
diff --git a/src/instructions/USI_ISRG.java b/src/instructions/USI_ISRG.java index d70ee2b..3c31036 100644 --- a/src/instructions/USI_ISRG.java +++ b/src/instructions/USI_ISRG.java @@ -1,183 +1,171 @@ package instructions; import static assemblernator.ErrorReporting.makeError; import static assemblernator.Instruct...
false
true
@Override public boolean check(ErrorHandler hErr, Module module) { boolean isValid = true; Value value; //check for operand combos. if(this.hasOperand("NW")) { value = module.evaluate(this.getOperand("NW"), false, Other, hErr, this, this.getOperandData("NW").valueStartPosition); isValid = isValidNumWo...
@Override public boolean check(ErrorHandler hErr, Module module) { boolean isValid = true; Value value; //check for operand combos. if(this.hasOperand("NW")) { value = module.evaluate(this.getOperand("NW"), false, Other, hErr, this, this.getOperandData("NW").valueStartPosition); isValid = isValidNumWo...
diff --git a/com.github.praxissoftware.rest.core/src/main/java/com/praxissoftware/rest/core/AbstractMapEntity.java b/com.github.praxissoftware.rest.core/src/main/java/com/praxissoftware/rest/core/AbstractMapEntity.java index 6302249..f88d7f1 100644 --- a/com.github.praxissoftware.rest.core/src/main/java/com/praxissoftw...
true
true
public Object put(final String key, final Object value) { final Object output; if( value == null ) { output = remove(key); } else { output = put(key, value); } return output; }
public Object put(final String key, final Object value) { final Object output; if( value == null ) { output = remove(key); } else { output = delegate.put(key, value); } return output; }
diff --git a/bundles/org.eclipse.rap.rwt/src/org/eclipse/swt/widgets/TreeItem.java b/bundles/org.eclipse.rap.rwt/src/org/eclipse/swt/widgets/TreeItem.java index bb937f545..1c8a018c0 100644 --- a/bundles/org.eclipse.rap.rwt/src/org/eclipse/swt/widgets/TreeItem.java +++ b/bundles/org.eclipse.rap.rwt/src/org/eclipse/swt/w...
false
true
private TreeItem( final Tree parent, final TreeItem parentItem, final int style, final int index ) { super( parent, style ); this.parent = parent; this.parentItem = parentItem; if( parentItem != null ) { this.depth = parentItem.depth ...
private TreeItem( final Tree parent, final TreeItem parentItem, final int style, final int index ) { super( parent, style ); this.parent = parent; this.parentItem = parentItem; if( parentItem != null ) { this.depth = parentItem.depth ...
diff --git a/framework/src/main/java/org/qi4j/library/framework/DecoratorMixin.java b/framework/src/main/java/org/qi4j/library/framework/DecoratorMixin.java index e72ab6584..4f38fe23a 100644 --- a/framework/src/main/java/org/qi4j/library/framework/DecoratorMixin.java +++ b/framework/src/main/java/org/qi4j/library/frame...
true
true
public Object invoke( Object object, Method method, Object[] args ) throws Throwable { if( delegate instanceof InvocationHandler ) { InvocationHandler handler = (InvocationHandler) delegate; return handler.invoke( object, method, args ); } else { ...
public Object invoke( Object object, Method method, Object[] args ) throws Throwable { if( delegate instanceof InvocationHandler ) { InvocationHandler handler = (InvocationHandler) delegate; return handler.invoke( object, method, args ); } else { ...
diff --git a/src/main/java/nmd/rss/collector/exporter/FeedExporter.java b/src/main/java/nmd/rss/collector/exporter/FeedExporter.java index f64daf64..367b5a6c 100644 --- a/src/main/java/nmd/rss/collector/exporter/FeedExporter.java +++ b/src/main/java/nmd/rss/collector/exporter/FeedExporter.java @@ -1,71 +1,71 @@ packag...
true
true
public static String export(final FeedHeader header, final List<FeedItem> items) throws FeedExporterException { assertNotNull(header); assertNotNull(items); try { final List<Item> channelItems = new ArrayList<>(); for (final FeedItem current : items) { ...
public static String export(final FeedHeader header, final List<FeedItem> items) throws FeedExporterException { assertNotNull(header); assertNotNull(items); try { final List<Item> channelItems = new ArrayList<>(); for (final FeedItem current : items) { ...
diff --git a/trunk/src/webcamstudio/media/renderer/ProcessExecutor.java b/trunk/src/webcamstudio/media/renderer/ProcessExecutor.java index 80b6c14..d6ad86c 100644 --- a/trunk/src/webcamstudio/media/renderer/ProcessExecutor.java +++ b/trunk/src/webcamstudio/media/renderer/ProcessExecutor.java @@ -1,73 +1,73 @@ /* * T...
false
true
private void readOutput(final Process p){ new Thread(new Runnable() { @Override public void run() { InputStream in1 = p.getErrorStream(); InputStream in2 = p.getInputStream(); byte[] buffer = new byte[65536]; int count ...
private void readOutput(final Process p){ new Thread(new Runnable() { @Override public void run() { InputStream in1 = p.getErrorStream(); InputStream in2 = p.getInputStream(); byte[] buffer = new byte[65536]; int count ...
diff --git a/core/src/main/java/hudson/security/LDAPSecurityRealm.java b/core/src/main/java/hudson/security/LDAPSecurityRealm.java index 051184b91..10d202e78 100644 --- a/core/src/main/java/hudson/security/LDAPSecurityRealm.java +++ b/core/src/main/java/hudson/security/LDAPSecurityRealm.java @@ -1,481 +1,482 @@ /* *...
false
true
public void doServerCheck(StaplerRequest req, StaplerResponse rsp, @QueryParameter final String server, @QueryParameter final String managerDN, @QueryParameter final String managerPassword ) throws IOException, ServletException { new FormFieldValidator(req,rsp,true) { ...
public void doServerCheck(StaplerRequest req, StaplerResponse rsp, @QueryParameter final String server, @QueryParameter final String managerDN, @QueryParameter final String managerPassword ) throws IOException, ServletException { new FormFieldValidator(req,rsp,true) { ...
diff --git a/vufind/import/src/org/vufind/UpdateResourceInformation.java b/vufind/import/src/org/vufind/UpdateResourceInformation.java index b7970327..5de01164 100644 --- a/vufind/import/src/org/vufind/UpdateResourceInformation.java +++ b/vufind/import/src/org/vufind/UpdateResourceInformation.java @@ -1,457 +1,466 @@ ...
false
true
public boolean processMarcRecord(MarcProcessor processor, MarcRecordDetails recordInfo, int recordStatus, Logger logger) { Long resourceId = -1L; boolean updateSubjectAndCallNumber = true; results.incRecordsProcessed(); if (recordStatus == MarcProcessor.RECORD_UNCHANGED && !updateUnchangedResources){ ...
public boolean processMarcRecord(MarcProcessor processor, MarcRecordDetails recordInfo, int recordStatus, Logger logger) { Long resourceId = -1L; boolean updateSubjectAndCallNumber = true; results.incRecordsProcessed(); if (recordInfo.isEContent()){ results.incSkipped(); logger.debug("Skipping upda...
diff --git a/src/br/ufrj/guiafundao/MainActivity.java b/src/br/ufrj/guiafundao/MainActivity.java index a1954e2..84f3b7d 100644 --- a/src/br/ufrj/guiafundao/MainActivity.java +++ b/src/br/ufrj/guiafundao/MainActivity.java @@ -1,391 +1,393 @@ package br.ufrj.guiafundao; import java.io.BufferedReader; import java.io....
false
true
public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_main); final EditText campoBusca = (EditText) findViewById(R.id.editText1); final Button btnBusca = (Button) findViewById(R.id.button1); final ListVie...
public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_main); final EditText campoBusca = (EditText) findViewById(R.id.editText1); final Button btnBusca = (Button) findViewById(R.id.button1); final ListVie...
diff --git a/src/org/olap4j/driver/xmla/XmlaOlap4jDriver.java b/src/org/olap4j/driver/xmla/XmlaOlap4jDriver.java index 0b09255..d24b8f3 100644 --- a/src/org/olap4j/driver/xmla/XmlaOlap4jDriver.java +++ b/src/org/olap4j/driver/xmla/XmlaOlap4jDriver.java @@ -1,319 +1,319 @@ /* // $Id$ // This software is subject to th...
true
true
protected XmlaOlap4jDriver() { String factoryClassName; try { Class.forName("java.sql.Wrapper"); factoryClassName = "org.olap4j.driver.xmla.FactoryJdbc4Impl"; } catch (ClassNotFoundException e) { // java.sql.Wrapper is not present. This means we are runnin...
public XmlaOlap4jDriver() { String factoryClassName; try { Class.forName("java.sql.Wrapper"); factoryClassName = "org.olap4j.driver.xmla.FactoryJdbc4Impl"; } catch (ClassNotFoundException e) { // java.sql.Wrapper is not present. This means we are running J...
diff --git a/zorka-agent/src/main/java/com/jitlogic/zorka/util/ObjectInspector.java b/zorka-agent/src/main/java/com/jitlogic/zorka/util/ObjectInspector.java index 3eed02c0..538bb593 100644 --- a/zorka-agent/src/main/java/com/jitlogic/zorka/util/ObjectInspector.java +++ b/zorka-agent/src/main/java/com/jitlogic/zorka/uti...
true
true
public Object get(Object obj, Object key) { if (obj == null) { return null; } else if (obj instanceof Map<?, ?>) { return ((Map<?,?>)obj).get(key); } else if (obj instanceof List<?>) { Integer idx = (Integer)ZorkaUtil.coerce(key, Integer.class); ...
public Object get(Object obj, Object key) { if (obj == null) { return null; } else if (obj instanceof Map<?, ?>) { return ((Map<?,?>)obj).get(key); } else if (obj instanceof List<?>) { Integer idx = (Integer)ZorkaUtil.coerce(key, Integer.class); ...
diff --git a/src/hci/frames/LabellerFrame.java b/src/hci/frames/LabellerFrame.java index ec83cb0..a13f6bb 100644 --- a/src/hci/frames/LabellerFrame.java +++ b/src/hci/frames/LabellerFrame.java @@ -1,496 +1,498 @@ package hci.frames; import hci.CollectionUtils; import hci.Form; import hci.ImagePanel; import hci.Pol...
true
true
private void initGUI() { try { setDefaultCloseOperation(WindowConstants.DISPOSE_ON_CLOSE); this.setTitle("Labeller"); { jScrollPane1 = new JScrollPane(); getContentPane().add(jScrollPane1, BorderLayout.CENTER); jScrollPane1.setSize(1024, 768); jScrollPane1.setPreferredSize(new java.awt.Dimen...
private void initGUI() { try { setDefaultCloseOperation(WindowConstants.DISPOSE_ON_CLOSE); this.setTitle("Labeller"); { jScrollPane1 = new JScrollPane(); getContentPane().add(jScrollPane1, BorderLayout.CENTER); jScrollPane1.setSize(1024, 768); jScrollPane1.setPreferredSize(new java.awt.Dimen...
diff --git a/tests/frontend/org/voltdb/regressionsuites/TestSystemProcedureSuite.java b/tests/frontend/org/voltdb/regressionsuites/TestSystemProcedureSuite.java index 29e2fbc59..eb7d3367b 100644 --- a/tests/frontend/org/voltdb/regressionsuites/TestSystemProcedureSuite.java +++ b/tests/frontend/org/voltdb/regressionsuit...
true
true
public void testStatistics() throws Exception { Client client = getClient(); // // initiator selector // VoltTable results[] = null; results = client.callProcedure("@Statistics", "INITIATOR", 0).getResults(); results = client.callProcedure("@Statistics", "IN...
public void testStatistics() throws Exception { Client client = getClient(); // // initiator selector // VoltTable results[] = null; results = client.callProcedure("@Statistics", "INITIATOR", 0).getResults(); results = client.callProcedure("@Statistics", "IN...
diff --git a/src/test/java/edu/umd/cs/findbugs/test/service/ClassFileLocator.java b/src/test/java/edu/umd/cs/findbugs/test/service/ClassFileLocator.java index 3575fa8f..13504ca9 100644 --- a/src/test/java/edu/umd/cs/findbugs/test/service/ClassFileLocator.java +++ b/src/test/java/edu/umd/cs/findbugs/test/service/ClassFi...
true
true
public String getClassFilePath(String path) { ClassLoader cl = getClass().getClassLoader(); URL url = cl.getResource(path+".class"); String filename = url.toString(); final String prefix = "file:/"; if(filename.startsWith(prefix)) { filename = filename.substring...
public String getClassFilePath(String path) { ClassLoader cl = getClass().getClassLoader(); URL url = cl.getResource(path+".class"); String filename = url.toString(); final String prefix = "file:"; if(filename.startsWith(prefix)) { filename = filename.substring(...
diff --git a/src/lixin/cz/vity/freerapid/plugins/services/lixin/TestApp.java b/src/lixin/cz/vity/freerapid/plugins/services/lixin/TestApp.java index 99e80e9a..b3673c38 100644 --- a/src/lixin/cz/vity/freerapid/plugins/services/lixin/TestApp.java +++ b/src/lixin/cz/vity/freerapid/plugins/services/lixin/TestApp.java @@ -1...
true
true
protected void startup() { final HttpFile httpFile = getHttpFile(); //creates new test instance of HttpFile try { //we set file URL httpFile.setNewURL(new URL("http://lix.in/-3be809")); //the way we connect to the internet final ConnectionSettings conn...
protected void startup() { final HttpFile httpFile = getHttpFile(); //creates new test instance of HttpFile try { //we set file URL httpFile.setNewURL(new URL("http://lix.in/-3be809")); //the way we connect to the internet final ConnectionSettings conn...
diff --git a/do_postgres/ext-java/src/main/java/do_postgres/PostgresDriverDefinition.java b/do_postgres/ext-java/src/main/java/do_postgres/PostgresDriverDefinition.java index b8f638f8..622e8160 100644 --- a/do_postgres/ext-java/src/main/java/do_postgres/PostgresDriverDefinition.java +++ b/do_postgres/ext-java/src/main/...
false
true
public void setPreparedStatementParam(PreparedStatement ps, IRubyObject arg, int idx) throws SQLException { int jdbcType; switch (RubyType.inferRubyType(arg)) { case STRING: jdbcType = ps.getParameterMetaData().getParameterType(idx); switch (jdbcType) { ...
public void setPreparedStatementParam(PreparedStatement ps, IRubyObject arg, int idx) throws SQLException { int jdbcType; switch (RubyType.inferRubyType(arg)) { case STRING: jdbcType = ps.getParameterMetaData().getParameterType(idx); switch (jdbcType) { ...
diff --git a/org/injustice/rawchicken/strategies/WalkBox.java b/org/injustice/rawchicken/strategies/WalkBox.java index 9dfbdb8..96a4282 100644 --- a/org/injustice/rawchicken/strategies/WalkBox.java +++ b/org/injustice/rawchicken/strategies/WalkBox.java @@ -1,63 +1,63 @@ package org.injustice.rawchicken.strategies; ...
true
true
public void execute() { SceneObject depositbox = SceneEntities.getNearest(Var.DEPOSIT_BOX_ID); if (!Walking.isRunEnabled() && Walking.getEnergy() > 20) { // if run isn't enabled and energy is more than 20 Var.status = "Setting run"; // change status ...
public void execute() { SceneObject depositbox = SceneEntities.getNearest(Var.DEPOSIT_BOX_ID); if (!Walking.isRunEnabled() && Walking.getEnergy() > 20) { // if run isn't enabled and energy is more than 20 Var.status = "Setting run"; // change status ...
diff --git a/src/org/geworkbench/components/parsers/AffyFileFormat.java b/src/org/geworkbench/components/parsers/AffyFileFormat.java index f22c0a32..a4cb0083 100755 --- a/src/org/geworkbench/components/parsers/AffyFileFormat.java +++ b/src/org/geworkbench/components/parsers/AffyFileFormat.java @@ -1,299 +1,303 @@ pack...
true
true
public void getMArraySet(File file, CSExprMicroarraySet maSet) throws InputFileFormatException { // Check that the file is OK before starting allocating space for it. if (!checkFormat(file)) throw new InputFileFormatException("AffyFileFormat::getMArraySet - " + "Attempting to open a file...
public void getMArraySet(File file, CSExprMicroarraySet maSet) throws InputFileFormatException { // Check that the file is OK before starting allocating space for it. if (!checkFormat(file)) throw new InputFileFormatException("AffyFileFormat::getMArraySet - " + "Attempting to open a file...
diff --git a/robospice-core-parent/robospice/src/main/java/com/octo/android/robospice/request/RequestProcessor.java b/robospice-core-parent/robospice/src/main/java/com/octo/android/robospice/request/RequestProcessor.java index a3e1484b7..305255caf 100644 --- a/robospice-core-parent/robospice/src/main/java/com/octo/andr...
true
true
public void addRequest(final CachedSpiceRequest<?> request, final Set<RequestListener<?>> listRequestListener) { Ln.d("Adding request to queue " + hashCode() + ": " + request + " size is " + mapRequestToRequestListener.size()); if (request.isCancelled()) { synchronized (mapRequestToRequ...
public void addRequest(final CachedSpiceRequest<?> request, final Set<RequestListener<?>> listRequestListener) { Ln.d("Adding request to queue " + hashCode() + ": " + request + " size is " + mapRequestToRequestListener.size()); if (request.isCancelled()) { synchronized (mapRequestToRequ...
diff --git a/com.github.enderdom.eddie/src/ui/PropertyLoader.java b/com.github.enderdom.eddie/src/ui/PropertyLoader.java index e449f92..5b44ad2 100755 --- a/com.github.enderdom.eddie/src/ui/PropertyLoader.java +++ b/com.github.enderdom.eddie/src/ui/PropertyLoader.java @@ -1,693 +1,694 @@ package ui; import gui.Eddi...
false
true
public void loadPropertiesGUI(Container pane){ boolean propsbeenloaded = loadPropertiesInit(); if(!propsbeenloaded){ /* * Alert user that there is properties file */ JOptionPane.showMessageDialog(pane, "Properties File is not found. Creating properties."...
public void loadPropertiesGUI(Container pane){ boolean propsbeenloaded = loadPropertiesInit(); if(!propsbeenloaded){ /* * Alert user that there is properties file */ JOptionPane.showMessageDialog(pane, "Properties File is not found. Creating properties."...
diff --git a/beanstalk-maven-plugin-it/src/test/java/br/com/ingenieux/beanstalker/it/CreateAndDeployIT.java b/beanstalk-maven-plugin-it/src/test/java/br/com/ingenieux/beanstalker/it/CreateAndDeployIT.java index 74c32ba..4c1d82c 100644 --- a/beanstalk-maven-plugin-it/src/test/java/br/com/ingenieux/beanstalker/it/CreateA...
true
true
public void testAppCreation() throws Exception { InvocationResult result = null; removeFileOrDirectory("src/main/webapp/index.txt"); result = invoke("clean package"); assertThat("We wanted the archetype to compile cleanly", result.getExitCode(), is(equalTo(0))); result = invoke("d...
public void testAppCreation() throws Exception { InvocationResult result = null; removeFileOrDirectory("src/main/webapp/index.txt"); result = invoke("clean package"); assertThat("We wanted the archetype to compile cleanly", result.getExitCode(), is(equalTo(0))); result = invoke("d...
diff --git a/public/java/test/org/broadinstitute/sting/alignment/AlignerIntegrationTest.java b/public/java/test/org/broadinstitute/sting/alignment/AlignerIntegrationTest.java index dafaf3ffe..a6af034cb 100644 --- a/public/java/test/org/broadinstitute/sting/alignment/AlignerIntegrationTest.java +++ b/public/java/test/or...
true
true
public void testBasicAlignment() { String md5 = "34eb4323742999d6d250a0aaa803c6d5"; WalkerTest.WalkerTestSpec spec = new WalkerTest.WalkerTestSpec( "-R " + GATKDataLocation + "bwa/human_b36_both.fasta" + " -T Align" + " -I " + validatio...
public void testBasicAlignment() { String md5 = "a2bdf907b18114a86ca47f9fc23791bf"; WalkerTest.WalkerTestSpec spec = new WalkerTest.WalkerTestSpec( "-R " + GATKDataLocation + "bwa/human_b36_both.fasta" + " -T Align" + " -I " + validatio...
diff --git a/src/main/java/de/kumpelblase2/remoteentities/persistence/serializers/JSONSerializer.java b/src/main/java/de/kumpelblase2/remoteentities/persistence/serializers/JSONSerializer.java index 55b5bee..5ad2370 100644 --- a/src/main/java/de/kumpelblase2/remoteentities/persistence/serializers/JSONSerializer.java ++...
true
true
protected boolean writeToFile(String inJson) { try { File fileFolder = new File(RemoteEntities.getInstance().getDataFolder(), this.m_plugin.getName()); if(!fileFolder.exists()) { if(!fileFolder.mkdir()) return false; } File jsonFile = new File(fileFolder, "entities.json"); if(!jsonF...
protected boolean writeToFile(String inJson) { try { File fileFolder = new File(RemoteEntities.getInstance().getDataFolder(), this.m_plugin.getName()); if(!fileFolder.exists()) { if(!fileFolder.mkdirs()) return false; } File jsonFile = new File(fileFolder, "entities.json"); if(!json...
diff --git a/Lab4/src/utils/DNAUtil.java b/Lab4/src/utils/DNAUtil.java index e57ec6a..f394d7e 100644 --- a/Lab4/src/utils/DNAUtil.java +++ b/Lab4/src/utils/DNAUtil.java @@ -1,197 +1,197 @@ package utils; import java.util.ArrayList; import java.util.List; import model.Gene; import model.Isoform; import model.O...
true
true
public static String calculateResults(Options o) throws Exception { String gffFilepath = o.gffPath; String fastaFilepath = o.fastaPath; int DEFAULT_MAX_SEQUENCE_SIZE = 25; List<Gene> genes = null; String dnaSequence = null; if(gffFilepath != null && gffFilepath.length() > 0) { genes = DNAFile...
public static String calculateResults(Options o) throws Exception { String gffFilepath = o.gffPath; String fastaFilepath = o.fastaPath; int DEFAULT_MAX_SEQUENCE_SIZE = 25; List<Gene> genes = null; String dnaSequence = null; if(gffFilepath != null && gffFilepath.length() > 0) { genes = DNAFile...
diff --git a/lucene/codecs/src/java/org/apache/lucene/codecs/compressing/CompressingStoredFieldsIndex.java b/lucene/codecs/src/java/org/apache/lucene/codecs/compressing/CompressingStoredFieldsIndex.java index 3262293abf..b7be254afe 100644 --- a/lucene/codecs/src/java/org/apache/lucene/codecs/compressing/CompressingStor...
true
true
MemoryChunkFieldsIndexReader(IndexInput fieldsIndexIn, SegmentInfo si) throws IOException { super(fieldsIndexIn); final int numChunks = fieldsIndexIn.readVInt(); final int bitsPerStartPointer = fieldsIndexIn.readByte() & 0xFF; if (bitsPerStartPointer > 64) { throw new CorruptIndexEx...
MemoryChunkFieldsIndexReader(IndexInput fieldsIndexIn, SegmentInfo si) throws IOException { super(fieldsIndexIn); final int numChunks = fieldsIndexIn.readVInt(); final int bitsPerStartPointer = fieldsIndexIn.readByte() & 0xFF; if (bitsPerStartPointer > 64) { throw new CorruptIndexEx...
diff --git a/samples/RSSReader/src/com/example/android/rssreader/RssReader.java b/samples/RSSReader/src/com/example/android/rssreader/RssReader.java index 2f273c40..b3772bc0 100644 --- a/samples/RSSReader/src/com/example/android/rssreader/RssReader.java +++ b/samples/RSSReader/src/com/example/android/rssreader/RssReade...
true
true
void parseRSS(InputStream in, RSSListAdapter adapter) throws IOException, XmlPullParserException { // TODO: switch to sax XmlPullParser xpp = Xml.newPullParser(); xpp.setInput(in, null); // null = parser figures out encoding int eventType; String title = ""; ...
void parseRSS(InputStream in, RSSListAdapter adapter) throws IOException, XmlPullParserException { // TODO: switch to sax XmlPullParser xpp = Xml.newPullParser(); xpp.setInput(in, null); // null = default to UTF-8 int eventType; String title = ""; Strin...
diff --git a/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasks/ui/TaskListNotificationPopup.java b/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasks/ui/TaskListNotificationPopup.java index b319b542f..6545f2a39 100644 --- a/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasks/ui/Ta...
true
true
protected final Control createDialogArea(final Composite parent) { getShell().setText(MYLAR_NOTIFICATION_LABEL); toolkit = new FormToolkit(parent.getDisplay()); form = toolkit.createForm(parent); form.getBody().setLayout(new GridLayout()); Section section = toolkit.createSection(form.getBody(), Section.TI...
protected final Control createDialogArea(final Composite parent) { getShell().setText(MYLAR_NOTIFICATION_LABEL); toolkit = new FormToolkit(parent.getDisplay()); form = toolkit.createForm(parent); form.getBody().setLayout(new GridLayout()); Section section = toolkit.createSection(form.getBody(), Section.TI...
diff --git a/core/src/java/com/dtolabs/rundeck/core/common/UpdateUtils.java b/core/src/java/com/dtolabs/rundeck/core/common/UpdateUtils.java index 3ba7699a5..1dd611fd2 100644 --- a/core/src/java/com/dtolabs/rundeck/core/common/UpdateUtils.java +++ b/core/src/java/com/dtolabs/rundeck/core/common/UpdateUtils.java @@ -1,2...
true
true
static void get(final URL srcUrl, final File destFile, final String username, final String password) throws UpdateException { final Project p = new Project(); final File lockFile = new File(destFile.getAbsolutePath() + ".lock"); final File newDestFile = new File(destFile.getAbsolutePath() + ...
static void get(final URL srcUrl, final File destFile, final String username, final String password) throws UpdateException { final Project p = new Project(); final File lockFile = new File(destFile.getAbsolutePath() + ".lock"); final File newDestFile = new File(destFile.getAbsolutePath() + ...
diff --git a/VCC/compilerGenerator.tests/src/de/hszg/atocc/vcc/compilerGenerator/internal/CompilerGeneratorTests.java b/VCC/compilerGenerator.tests/src/de/hszg/atocc/vcc/compilerGenerator/internal/CompilerGeneratorTests.java index b108d38..4d4a899 100644 --- a/VCC/compilerGenerator.tests/src/de/hszg/atocc/vcc/compilerG...
true
true
public void testJFlexInputGeneration() throws IOException, XmlUtilsException { // final byte[] bytes = Files.readAllBytes(Paths.get("")); // final String expected = new String(bytes, UTF8_CHARSET); final Document mlCompilerDocument = getXmlService().documentFromFile( "ML_vcc.xml"); final Document result...
public void testJFlexInputGeneration() throws IOException, XmlUtilsException { // final byte[] bytes = Files.readAllBytes(Paths.get("")); // final String expected = new String(bytes, UTF8_CHARSET); final Document mlCompilerDocument = getXmlService().documentFromFile( "ML_vcc.xml"); final Document result...
diff --git a/nexus/nexus-proxy/src/test/java/org/sonatype/nexus/proxy/mapping/PathBasedRequestRepositoryMapperTest.java b/nexus/nexus-proxy/src/test/java/org/sonatype/nexus/proxy/mapping/PathBasedRequestRepositoryMapperTest.java index 98c40dc17..c08512052 100644 --- a/nexus/nexus-proxy/src/test/java/org/sonatype/nexus/...
false
true
protected PathBasedRequestRepositoryMapper prepare( Map<String, String[]> inclusions, Map<String, String[]> exclusions, Map<String, String[]> blockings ) throws Exception { applicationConfiguration = (ApplicationConfiguration) lookup( ApplicationConfiguration.class ); applicatio...
protected PathBasedRequestRepositoryMapper prepare( Map<String, String[]> inclusions, Map<String, String[]> exclusions, Map<String, String[]> blockings ) throws Exception { applicationConfiguration = (ApplicationConfiguration) lookup( ApplicationConfiguration.class ); applicatio...
diff --git a/jbi/src/main/java/org/apache/ode/jbi/OdeService.java b/jbi/src/main/java/org/apache/ode/jbi/OdeService.java index 313bc1b10..09f7bbbfc 100755 --- a/jbi/src/main/java/org/apache/ode/jbi/OdeService.java +++ b/jbi/src/main/java/org/apache/ode/jbi/OdeService.java @@ -1,388 +1,388 @@ /* * Licensed to the Apa...
true
true
public void onJbiMessageExchange(javax.jbi.messaging.MessageExchange jbiMex) throws MessagingException { if (jbiMex.getRole() != javax.jbi.messaging.MessageExchange.Role.PROVIDER) { String errmsg = "Message exchange is not in PROVIDER role as expected: " + jbiMex.getExchangeId(); __l...
public void onJbiMessageExchange(javax.jbi.messaging.MessageExchange jbiMex) throws MessagingException { if (jbiMex.getRole() != javax.jbi.messaging.MessageExchange.Role.PROVIDER) { String errmsg = "Message exchange is not in PROVIDER role as expected: " + jbiMex.getExchangeId(); __l...
diff --git a/src/main/java/net/aufdemrand/denizen/scripts/commands/CommandRegistry.java b/src/main/java/net/aufdemrand/denizen/scripts/commands/CommandRegistry.java index 2877ab63f..d38a48ecb 100644 --- a/src/main/java/net/aufdemrand/denizen/scripts/commands/CommandRegistry.java +++ b/src/main/java/net/aufdemrand/deniz...
true
true
public void registerCoreMembers() { registerCoreMember(AnchorCommand.class, "ANCHOR", "anchor [id:<name>] [assume/add/remove/walkto/walknear] (range:<#>)", 2); registerCoreMember(AnimateCommand.class, "ANIMATE", "animate [entities:<entity>|...] [animation:<name>]",...
public void registerCoreMembers() { registerCoreMember(AnchorCommand.class, "ANCHOR", "anchor [id:<name>] [assume/add/remove/walkto/walknear] (range:<#>)", 2); registerCoreMember(AnimateCommand.class, "ANIMATE", "animate [entities:<entity>|...] [animation:<name>]",...
diff --git a/SIFT_Align_LayerSet.java b/SIFT_Align_LayerSet.java index 33dccaee..925d75f2 100644 --- a/SIFT_Align_LayerSet.java +++ b/SIFT_Align_LayerSet.java @@ -1,1294 +1,1294 @@ import ini.trakem2.display.*; import ini.trakem2.*; import ini.trakem2.imaging.Registration; import ini.trakem2.utils.Utils; import ...
false
true
public void run( String args ) { if ( IJ.versionLessThan( "1.37i" ) ) return; Display front = Display.getFront(); if ( front == null ) { System.err.println( "no open displays" ); return; } final LayerSet set = front.getLayer().getParent(); if ( set == null ) { System.err.println( "no op...
public void run( String args ) { if ( IJ.versionLessThan( "1.37i" ) ) return; Display front = Display.getFront(); if ( front == null ) { System.err.println( "no open displays" ); return; } final LayerSet set = front.getLayer().getParent(); if ( set == null ) { System.err.println( "no op...
diff --git a/src/main/java/com/eyeq/pivot4j/ui/html/HtmlRenderer.java b/src/main/java/com/eyeq/pivot4j/ui/html/HtmlRenderer.java index a03b8c9d..14b9b68c 100644 --- a/src/main/java/com/eyeq/pivot4j/ui/html/HtmlRenderer.java +++ b/src/main/java/com/eyeq/pivot4j/ui/html/HtmlRenderer.java @@ -1,668 +1,669 @@ /* * =====...
false
true
protected Map<String, String> getCellAttributes(RenderContext context) { String styleClass = null; String style = null; switch (context.getCellType()) { case Header: if (context.getAxis() == Axis.COLUMNS) { styleClass = columnHeaderStyleClass; } else { styleClass = rowHeaderStyleClass; if (...
protected Map<String, String> getCellAttributes(RenderContext context) { String styleClass = null; String style = null; switch (context.getCellType()) { case Header: if (context.getAxis() == Axis.COLUMNS) { styleClass = columnHeaderStyleClass; } else { styleClass = rowHeaderStyleClass; if (...
diff --git a/plugins/core/install/src/main/java/net/frontlinesms2/systraymonitor/Monitor.java b/plugins/core/install/src/main/java/net/frontlinesms2/systraymonitor/Monitor.java index 1c7663b99..e1050a63c 100644 --- a/plugins/core/install/src/main/java/net/frontlinesms2/systraymonitor/Monitor.java +++ b/plugins/core/ins...
true
true
public void init() throws Exception { server = new Server(port); WebAppContext app = new WebAppContext(); app.setContextPath("/"); app.setWar(new File("webapp").getAbsolutePath()); server.setHandler(app); }
public void init() throws Exception { server = new Server(port); WebAppContext app = new WebAppContext(); app.setContextPath("/"); app.setWar(new File("web-app").getAbsolutePath()); server.setHandler(app); }
diff --git a/net.sf.rcer.conn/src/net/sf/rcer/conn/tools/TableLine.java b/net.sf.rcer.conn/src/net/sf/rcer/conn/tools/TableLine.java index ad83c3d..15a3494 100755 --- a/net.sf.rcer.conn/src/net/sf/rcer/conn/tools/TableLine.java +++ b/net.sf.rcer.conn/src/net/sf/rcer/conn/tools/TableLine.java @@ -1,62 +1,62 @@ /** * ...
true
true
public TableLine(ITableStructure structure, String rawData) { super(); this.structure = structure; for (ITableField field: structure.getFieldList()) { final int startIndex = field.getOffset(); final int endIndex = field.getOffset() + field.getLength() - 1; String value; if (startIndex >= rawData.leng...
public TableLine(ITableStructure structure, String rawData) { super(); this.structure = structure; for (ITableField field: structure.getFieldList()) { final int startIndex = field.getOffset(); final int endIndex = field.getOffset() + field.getLength(); String value; if (startIndex >= rawData.length()...
diff --git a/appengine/src/test/java/com/bedatadriven/renjin/appengine/AppEngineContextFactoryTest.java b/appengine/src/test/java/com/bedatadriven/renjin/appengine/AppEngineContextFactoryTest.java index df2c1b706..e678be979 100644 --- a/appengine/src/test/java/com/bedatadriven/renjin/appengine/AppEngineContextFactoryTe...
true
true
public void rootFile() throws IOException { DefaultLocalFileProvider localFileProvider = new DefaultLocalFileProvider(); FileSystemManager fsm = AppEngineContextFactory.createFileSystemManager(localFileProvider); Context context = Context.newTopLevelContext(fsm, FileSystemUtils.homeDirectoryInCoreJar(), ...
public void rootFile() throws IOException { DefaultLocalFileProvider localFileProvider = new DefaultLocalFileProvider(); FileSystemManager fsm = AppEngineContextFactory.createFileSystemManager(localFileProvider); Context context = Context.newTopLevelContext(fsm, FileSystemUtils.homeDirectoryInCoreJar(), ...
diff --git a/app/net/sparkmuse/user/UserFacade.java b/app/net/sparkmuse/user/UserFacade.java index 938476b..036e878 100644 --- a/app/net/sparkmuse/user/UserFacade.java +++ b/app/net/sparkmuse/user/UserFacade.java @@ -1,191 +1,191 @@ package net.sparkmuse.user; import com.google.inject.Inject; import com.google.inj...
false
true
public int inviteFriend(UserVO inviter, String friend) { final UserProfile inviterProfile = getUserProfile(inviter.getUserName()); if (inviterProfile.getInvites() > 0) { String friendUserName = friend.startsWith("@") ? friend.substring(1) : friend; final UserProfile newUserProfile = createUser(fr...
public int inviteFriend(UserVO inviter, String friend) { final UserProfile inviterProfile = getUserProfile(inviter.getUserName()); if (inviterProfile.getInvites() > 0) { String friendUserName = friend.startsWith("@") ? friend.substring(1) : friend; final UserProfile newUserProfile = createUser(fr...
diff --git a/src/main/java/com/fasterxml/jackson/module/typescript/DefinitionGenerator.java b/src/main/java/com/fasterxml/jackson/module/typescript/DefinitionGenerator.java index 64a7b09..bd6ee9a 100644 --- a/src/main/java/com/fasterxml/jackson/module/typescript/DefinitionGenerator.java +++ b/src/main/java/com/fasterxm...
true
true
public void generateDefinition(String moduleName, Writer writer, Class<?> clazz) throws IOException { TSJsonFormatVisitorWrapper visitor = new TSJsonFormatVisitorWrapper(null); mapper.acceptJsonFormatVisitor(clazz, visitor); if (moduleName != null) { writer.write(format("module %s {\n\n", moduleName)); }...
public void generateDefinition(String moduleName, Writer writer, Class<?> clazz) throws IOException { TSJsonFormatVisitorWrapper visitor = new TSJsonFormatVisitorWrapper(null); mapper.acceptJsonFormatVisitor(clazz, visitor); if (moduleName != null) { writer.write(format("module %s {\n\n", moduleName)); }...
diff --git a/openejb2/modules/core/src/java/org/openejb/corba/proxy/CORBAProxyReference.java b/openejb2/modules/core/src/java/org/openejb/corba/proxy/CORBAProxyReference.java index 2f3568e29..1fcbb575d 100644 --- a/openejb2/modules/core/src/java/org/openejb/corba/proxy/CORBAProxyReference.java +++ b/openejb2/modules/co...
true
true
public Object getContent() { if (log.isDebugEnabled()) log.debug("Obtaining home from " + nsCorbaloc.toString() + ", " + objectName + ", " + containerName + ", " + home); Kernel kernel = getKernel(); Object proxy = null; try { proxy = kernel.invoke(containerName, "getHo...
public Object getContent() { if (log.isDebugEnabled()) log.debug("Obtaining home from " + nsCorbaloc.toString() + ", " + objectName + ", " + containerName + ", " + home); Kernel kernel = getKernel(); Object proxy = null; try { proxy = kernel.invoke(containerName, "getHo...
diff --git a/java/src/com/android/inputmethod/latin/spellcheck/AndroidSpellCheckerService.java b/java/src/com/android/inputmethod/latin/spellcheck/AndroidSpellCheckerService.java index 86d786511..4d569b808 100644 --- a/java/src/com/android/inputmethod/latin/spellcheck/AndroidSpellCheckerService.java +++ b/java/src/com/...
true
true
public SuggestionsInfo onGetSuggestions(final TextInfo textInfo, final int suggestionsLimit) { try { final String text = textInfo.getText(); if (shouldFilterOut(text)) { DictAndProximity dictInfo = null; try { ...
public SuggestionsInfo onGetSuggestions(final TextInfo textInfo, final int suggestionsLimit) { try { final String text = textInfo.getText(); if (shouldFilterOut(text)) { DictAndProximity dictInfo = null; try { ...
diff --git a/src/org/mozilla/javascript/LazilyLoadedCtor.java b/src/org/mozilla/javascript/LazilyLoadedCtor.java index ce4871f8..41533725 100644 --- a/src/org/mozilla/javascript/LazilyLoadedCtor.java +++ b/src/org/mozilla/javascript/LazilyLoadedCtor.java @@ -1,133 +1,136 @@ /* -*- Mode: java; tab-width: 8; indent-tabs...
true
true
private Object buildValue() { Class cl = Kit.classOrNull(className); if (cl != null) { try { Object value = ScriptableObject.buildClassCtor(scope, cl, sealed, false); if (value == null) { ...
private Object buildValue() { Class cl = Kit.classOrNull(className); if (cl != null) { try { Object value = ScriptableObject.buildClassCtor(scope, cl, sealed, false); if (value != null) { ...
diff --git a/src/com/triposo/automator/Task.java b/src/com/triposo/automator/Task.java index 7dfc137..4528763 100644 --- a/src/com/triposo/automator/Task.java +++ b/src/com/triposo/automator/Task.java @@ -1,159 +1,159 @@ package com.triposo.automator; import com.google.common.base.Predicate; import com.google.comm...
true
true
protected List<File> getGuideScreenshots(File dir) { if (!dir.isDirectory()) { // No biggie. System.out.println("Screenshots directory missing: " + dir); return Lists.newArrayList(); } File doneFile = getDoneFileForScreenshotsDir(dir); if (doneFile.exists()) { System.out.printl...
protected List<File> getGuideScreenshots(File dir) { if (!dir.isDirectory()) { // No biggie. System.out.println("Screenshots directory missing: " + dir); return Lists.newArrayList(); } File doneFile = getDoneFileForScreenshotsDir(dir); if (doneFile.exists()) { System.out.printl...
diff --git a/com/ai/myplugin/sensor/RawThresholdSensor.java b/com/ai/myplugin/sensor/RawThresholdSensor.java index 4841a62..c2435bc 100644 --- a/com/ai/myplugin/sensor/RawThresholdSensor.java +++ b/com/ai/myplugin/sensor/RawThresholdSensor.java @@ -1,226 +1,226 @@ /** * Created with IntelliJ IDEA. * User: pizuricv...
true
true
public TestResult execute(TestSessionContext testSessionContext) { Map<String, Object> mapTestResult = (Map<String, Object>) testSessionContext.getAttribute(NodeSessionParams.RAW_DATA); if(mapTestResult == null){ System.out.println("no map found"); return new EmptyResult(); ...
public TestResult execute(TestSessionContext testSessionContext) { Map<String, Object> mapTestResult = (Map<String, Object>) testSessionContext.getAttribute(NodeSessionParams.RAW_DATA); if(mapTestResult == null){ System.out.println("no map found"); return new EmptyResult(); ...
diff --git a/common/logisticspipes/pipes/PipeItemsCraftingLogisticsMk3.java b/common/logisticspipes/pipes/PipeItemsCraftingLogisticsMk3.java index 805a5baa..5725d485 100644 --- a/common/logisticspipes/pipes/PipeItemsCraftingLogisticsMk3.java +++ b/common/logisticspipes/pipes/PipeItemsCraftingLogisticsMk3.java @@ -1,125...
false
true
public void updateEntity() { super.updateEntity(); if(MainProxy.isClient()) return; //Add from interal buffer LinkedList<AdjacentTile> crafters = locateCrafters(); if(crafters.size() < 1) return; boolean change = false; for(AdjacentTile tile:locateCrafters()) { for(int i=0;i<inv.getSizeInventory();i++...
public void updateEntity() { super.updateEntity(); if(MainProxy.isClient()) return; if(inv.isEmpty()) return; //Add from interal buffer LinkedList<AdjacentTile> crafters = locateCrafters(); if(crafters.size() < 1) return; boolean change = false; for(AdjacentTile tile:locateCrafters()) { for(int i=0;...
diff --git a/qcadoo-view/src/main/java/com/qcadoo/view/internal/controllers/ErrorController.java b/qcadoo-view/src/main/java/com/qcadoo/view/internal/controllers/ErrorController.java index 7eff67301..a19781c7a 100644 --- a/qcadoo-view/src/main/java/com/qcadoo/view/internal/controllers/ErrorController.java +++ b/qcadoo-...
false
true
public ModelAndView getAccessDeniedPageView(@RequestParam final int code, final Exception exception, final String predefinedExceptionMessageHeader, final String predefinedExceptionMessageExplanation, final Locale locale) { ModelAndView mav = new ModelAndView(); mav.setViewName("qcadooVie...
public ModelAndView getAccessDeniedPageView(@RequestParam final int code, final Exception exception, final String predefinedExceptionMessageHeader, final String predefinedExceptionMessageExplanation, final Locale locale) { ModelAndView mav = new ModelAndView(); mav.setViewName("qcadooVie...
diff --git a/src/com/ntraft/modlur/collada/ColladaMesh.java b/src/com/ntraft/modlur/collada/ColladaMesh.java index 277f560..e4f610f 100644 --- a/src/com/ntraft/modlur/collada/ColladaMesh.java +++ b/src/com/ntraft/modlur/collada/ColladaMesh.java @@ -1,94 +1,94 @@ package com.ntraft.modlur.collada; import com.ntraft....
true
true
private FloatBuffer consume(Map<Semantic, DataSink> dataSinks, Semantic semantic) { DataSink sink = dataSinks.get(semantic); if (sink == null) { return null; } Source src = sources.get(sink.getSourceId()); if (src == null) { return null; } IntBuffer indices = sink.getIndices(); int remaining = ...
private FloatBuffer consume(Map<Semantic, DataSink> dataSinks, Semantic semantic) { DataSink sink = dataSinks.get(semantic); if (sink == null) { return null; } Source src = sources.get(sink.getSourceId()); if (src == null) { return null; } IntBuffer indices = sink.getIndices(); int remaining = ...
diff --git a/plexus-taskqueue/src/main/java/org/codehaus/plexus/taskqueue/DefaultTaskQueue.java b/plexus-taskqueue/src/main/java/org/codehaus/plexus/taskqueue/DefaultTaskQueue.java index ee9c478e..d921067f 100644 --- a/plexus-taskqueue/src/main/java/org/codehaus/plexus/taskqueue/DefaultTaskQueue.java +++ b/plexus-taskq...
true
true
public void configure( PlexusConfiguration config ) throws PlexusConfigurationException { PlexusConfiguration entryEvaluatorsConfiguration = config.getChild( "task-entry-evaluators" ); taskEntryEvaluators = new ArrayList(); if ( entryEvaluatorsConfigura...
public void configure( PlexusConfiguration config ) throws PlexusConfigurationException { PlexusConfiguration entryEvaluatorsConfiguration = config.getChild( "task-entry-evaluators" ); taskEntryEvaluators = new ArrayList(); if ( entryEvaluatorsConfigura...
diff --git a/src/java/com/mozilla/hadoop/riak/RiakExportToHDFS.java b/src/java/com/mozilla/hadoop/riak/RiakExportToHDFS.java index 40a5006..9a63dff 100644 --- a/src/java/com/mozilla/hadoop/riak/RiakExportToHDFS.java +++ b/src/java/com/mozilla/hadoop/riak/RiakExportToHDFS.java @@ -1,287 +1,287 @@ /** * Copyright 2010...
true
true
public Job initJob(String[] args) throws IOException, ParseException { String bucket = null; String outputPath = null; for (int idx=0; idx < args.length; idx++) { if (idx == args.length-1) { outputPath = args[idx]; } else { bucket = args[idx]; } } conf.setBoolean("mapred.map.tasks.specul...
public Job initJob(String[] args) throws IOException, ParseException { String bucket = null; String outputPath = null; for (int idx=0; idx < args.length; idx++) { if (idx == args.length-1) { outputPath = args[idx]; } else { bucket = args[idx]; } } conf.setBoolean("mapred.map.tasks.specul...
diff --git a/PuzzleApplet.java b/PuzzleApplet.java index 82fab78..fcecffb 100644 --- a/PuzzleApplet.java +++ b/PuzzleApplet.java @@ -1,618 +1,618 @@ /* * PuzzleApplet.java: NestedVM applet for the puzzle collection */ import java.awt.*; import java.awt.event.*; import java.awt.image.BufferedImage; import java....
true
true
public int call(int cmd, int arg1, int arg2, int arg3) { try { switch(cmd) { case 0: // initialize if (mainWindow != null) mainWindow.setTitle(runtime.cstring(arg1)); if ((arg2 & 1) != 0) buildConfigureMenuItem(); if ((arg2 & 2) != 0) a...
public int call(int cmd, int arg1, int arg2, int arg3) { try { switch(cmd) { case 0: // initialize if (mainWindow != null) mainWindow.setTitle(runtime.cstring(arg1)); if ((arg2 & 1) != 0) buildConfigureMenuItem(); if ((arg2 & 2) != 0) a...
diff --git a/src/uk/me/parabola/mkgmap/general/MapLine.java b/src/uk/me/parabola/mkgmap/general/MapLine.java index 4d1114d3..1d376bf9 100644 --- a/src/uk/me/parabola/mkgmap/general/MapLine.java +++ b/src/uk/me/parabola/mkgmap/general/MapLine.java @@ -1,138 +1,138 @@ /* * Copyright (C) 2006 Steve Ratcliffe * * ...
true
true
public void setPoints(List<Coord> points) { if (this.points != null) log.warn("overwriting points"); assert points != null : "trying to set null points"; this.points = points; Coord last = null; for (Coord co : points) { if (last != null && last.equals(co)) log.warn("Line " + getName() + " has con...
public void setPoints(List<Coord> points) { if (this.points != null) log.warn("overwriting points"); assert points != null : "trying to set null points"; this.points = points; Coord last = null; for (Coord co : points) { if (last != null && last.equals(co)) log.info("Line " + getName() + " has con...
diff --git a/loci/visbio/SystemControls.java b/loci/visbio/SystemControls.java index b8cca99b2..4fc70b1b3 100644 --- a/loci/visbio/SystemControls.java +++ b/loci/visbio/SystemControls.java @@ -1,310 +1,310 @@ // // SystemControls.java // /* VisBio application for visualization of multidimensional biological ima...
false
true
public SystemControls(LogicManager logic) { super(logic, "System", "Reports system information"); VisBioFrame bio = lm.getVisBio(); SystemManager sm = (SystemManager) lm; // dump properties button JButton dump = new JButton("Dump all"); if (!LAFUtil.isMacLookAndFeel()) dump.setMnemonic('d'); ...
public SystemControls(LogicManager logic) { super(logic, "System", "Reports system information"); VisBioFrame bio = lm.getVisBio(); SystemManager sm = (SystemManager) lm; // dump properties button JButton dump = new JButton("Dump all"); if (!LAFUtil.isMacLookAndFeel()) dump.setMnemonic('d'); ...
diff --git a/Android/NHProject/NewsHub/src/main/java/org/gnuton/newshub/MainActivity.java b/Android/NHProject/NewsHub/src/main/java/org/gnuton/newshub/MainActivity.java index 358e794..3aeccc7 100644 --- a/Android/NHProject/NewsHub/src/main/java/org/gnuton/newshub/MainActivity.java +++ b/Android/NHProject/NewsHub/src/ma...
true
true
protected void onCreate(Bundle savedInstanceState) { MyApp.getInstance().mMainActivity = this; super.onCreate(savedInstanceState); setContentView(R.layout.activity_main); Log.i(TAG, "CREATEEEEEEEE"); mOrientation = ((WindowManager) getSystemService(WINDOW_SERVICE)).getDefa...
protected void onCreate(Bundle savedInstanceState) { MyApp.getInstance().mMainActivity = this; super.onCreate(savedInstanceState); setContentView(R.layout.activity_main); Log.i(TAG, "CREATEEEEEEEE"); mOrientation = ((WindowManager) getSystemService(WINDOW_SERVICE)).getDefa...
diff --git a/any23-core/src/main/java/org/deri/any23/cli/ToolRunner.java b/any23-core/src/main/java/org/deri/any23/cli/ToolRunner.java index 87d84452..851216aa 100644 --- a/any23-core/src/main/java/org/deri/any23/cli/ToolRunner.java +++ b/any23-core/src/main/java/org/deri/any23/cli/ToolRunner.java @@ -1,164 +1,164 @@ ...
true
true
public static void main(String[] args) { if(args.length == 0) { usage("Missing JAR file location.", null); } //generate automatically the cli. List<Class> utilities = getClasseNamesInPackage(args[0], "org.deri.any23.cli"); try { if (args.length < 2) {...
public static void main(String[] args) { if(args.length == 0) { usage("Missing JAR file location.", null); } //generate automatically the cli. List<Class> utilities = getClasseNamesInPackage(args[0], "org.deri.any23.cli"); try { if (args.length < 2) {...
diff --git a/fake-starteam/src/com/starbase/starteam/CheckoutOptions.java b/fake-starteam/src/com/starbase/starteam/CheckoutOptions.java index 67aa509..838c332 100644 --- a/fake-starteam/src/com/starbase/starteam/CheckoutOptions.java +++ b/fake-starteam/src/com/starbase/starteam/CheckoutOptions.java @@ -1,97 +1,99 @@ ...
false
true
public CheckoutOptions(View view) { this.view = view; this.time = view.getConfiguration().getTime(); this.timeBased = view.getConfiguration().isTimeBased(); this.labelId = view.getConfiguration().getLabelID(); this.labelBased = view.getConfiguration().isLabelBased(); this.isTip = view.getConfiguration().is...
public CheckoutOptions(View view) { this.view = view; this.timeBased = view.getConfiguration().isTimeBased(); if(this.timeBased) this.time = view.getConfiguration().getTime(); this.labelBased = view.getConfiguration().isLabelBased(); if(this.labelBased) this.labelId = view.getConfiguration().getLabelID...
diff --git a/src/org/accesointeligente/server/robots/ResponseChecker.java b/src/org/accesointeligente/server/robots/ResponseChecker.java index b8ff200..8ae785f 100644 --- a/src/org/accesointeligente/server/robots/ResponseChecker.java +++ b/src/org/accesointeligente/server/robots/ResponseChecker.java @@ -1,612 +1,613 @@...
false
true
private void processPart(Part part) throws Exception { String disposition = part.getDisposition(); Matcher matcher; org.hibernate.Session hibernate; StringTokenizer tokenizer; if (disposition != null && disposition.equalsIgnoreCase(Part.ATTACHMENT)) { logger.info("Part is attachment"); FileType filety...
private void processPart(Part part) throws Exception { String disposition = part.getDisposition(); Matcher matcher; org.hibernate.Session hibernate; StringTokenizer tokenizer; if (disposition != null && disposition.equalsIgnoreCase(Part.ATTACHMENT)) { logger.info("Part is attachment"); FileType filety...
diff --git a/core/src/visad/trunk/MathType.java b/core/src/visad/trunk/MathType.java index 92a16e55d..c7a70964b 100644 --- a/core/src/visad/trunk/MathType.java +++ b/core/src/visad/trunk/MathType.java @@ -1,899 +1,899 @@ // // MathType.java // /* VisAD system for interactive analysis and visualization of numer...
true
true
public ScalarMap[] guessMaps(boolean threeD) { MathType m = this; // set up aliases for "time" RealType to be mapped to Animation // NOTE: other acceptable 1-D function domains could be added here, // by allocating a larger DataStruct array, then specifying // ds[*] = new DataS...
public ScalarMap[] guessMaps(boolean threeD) { MathType m = this; // set up aliases for "time" RealType to be mapped to Animation // NOTE: other acceptable 1-D function domains could be added here, // by allocating a larger DataStruct array, then specifying // ds[*] = new DataS...
diff --git a/grader/src/com/evllabs/grader/Grader.java b/grader/src/com/evllabs/grader/Grader.java index 194a725..1a88a30 100644 --- a/grader/src/com/evllabs/grader/Grader.java +++ b/grader/src/com/evllabs/grader/Grader.java @@ -1,65 +1,65 @@ package com.evllabs.grader; import java.util.*; import java.util.Map.Ent...
true
true
public static void main(String[] args) { Scanner input = new Scanner(System.in); int counter = 0; Histogram authors = new Histogram(); Map<String, List<Histogram>> ranks = new HashMap<String, List<Histogram>>(); List<Histogram> currentRanks = new ArrayList<Histogram>(); while(input.hasNext()){ String li...
public static void main(String[] args) { Scanner input = new Scanner(System.in); int counter = 0; Histogram authors = new Histogram(); Map<String, List<Histogram>> ranks = new HashMap<String, List<Histogram>>(); List<Histogram> currentRanks = new ArrayList<Histogram>(); while(input.hasNext()){ String li...
diff --git a/java/modules/commons/src/main/java/org/apache/synapse/commons/evaluators/config/MatchFactory.java b/java/modules/commons/src/main/java/org/apache/synapse/commons/evaluators/config/MatchFactory.java index 7fae5c825..bf54a7b85 100644 --- a/java/modules/commons/src/main/java/org/apache/synapse/commons/evaluat...
false
true
public Evaluator create(OMElement e) throws EvaluatorException { MatchEvaluator equal = new MatchEvaluator(); OMAttribute typeAttr = e.getAttribute(new QName(EvaluatorConstants.TYPE)); int type = 3; if (typeAttr != null) { String value = typeAttr.getAttributeValue(); ...
public Evaluator create(OMElement e) throws EvaluatorException { MatchEvaluator equal = new MatchEvaluator(); OMAttribute typeAttr = e.getAttribute(new QName(EvaluatorConstants.TYPE)); int type = 3; if (typeAttr != null) { String value = typeAttr.getAttributeValue(); ...
diff --git a/maven-plugin/src/main/java/org/jvnet/localizer/GeneratorMojo.java b/maven-plugin/src/main/java/org/jvnet/localizer/GeneratorMojo.java index d38b507..aa82cd9 100644 --- a/maven-plugin/src/main/java/org/jvnet/localizer/GeneratorMojo.java +++ b/maven-plugin/src/main/java/org/jvnet/localizer/GeneratorMojo.java...
true
true
public void execute() throws MojoExecutionException, MojoFailureException { String pkg = project.getPackaging(); if(pkg!=null && pkg.equals("pom")) return; // skip POM modules Generator g = new Generator(outputDirectory, new Reporter() { public void debug(String msg)...
public void execute() throws MojoExecutionException, MojoFailureException { String pkg = project.getPackaging(); if(pkg!=null && pkg.equals("pom")) return; // skip POM modules Generator g = new Generator(outputDirectory, new Reporter() { public void debug(String msg)...
diff --git a/src/main/java/net/jalg/hawkj/AuthorizationHeader.java b/src/main/java/net/jalg/hawkj/AuthorizationHeader.java index b24e490..c3a8592 100644 --- a/src/main/java/net/jalg/hawkj/AuthorizationHeader.java +++ b/src/main/java/net/jalg/hawkj/AuthorizationHeader.java @@ -1,231 +1,230 @@ package net.jalg.hawkj; ...
true
true
public String toString() { StringBuilder sb = new StringBuilder(HawkContext.SCHEME); char delim = BLANK; if (id != null) { sb.append(delim).append("id=\"").append(id).append(ESCDQUOTE); delim = COMMA; } if (mac != null) { sb.append(delim).append("mac=\"").append(mac).append(ESCDQUOTE); delim =...
public String toString() { StringBuilder sb = new StringBuilder(HawkContext.SCHEME); char delim = BLANK; if (id != null) { sb.append(delim).append("id=\"").append(id).append(ESCDQUOTE); delim = COMMA; } if (mac != null) { sb.append(delim).append("mac=\"").append(mac).append(ESCDQUOTE); delim =...
diff --git a/docs-core/src/main/java/com/sismics/docs/core/dao/jpa/TagDao.java b/docs-core/src/main/java/com/sismics/docs/core/dao/jpa/TagDao.java index 1de018aa..badefb86 100644 --- a/docs-core/src/main/java/com/sismics/docs/core/dao/jpa/TagDao.java +++ b/docs-core/src/main/java/com/sismics/docs/core/dao/jpa/TagDao.ja...
true
true
public List<TagStatDto> getStats(String userId) { EntityManager em = ThreadLocalContext.get().getEntityManager(); StringBuilder sb = new StringBuilder("select t.TAG_ID_C, t.TAG_NAME_C, count(d.DOC_ID_C) "); sb.append(" from T_TAG t "); sb.append(" left join T_DOCUMENT_TAG dt on t.TAG...
public List<TagStatDto> getStats(String userId) { EntityManager em = ThreadLocalContext.get().getEntityManager(); StringBuilder sb = new StringBuilder("select t.TAG_ID_C, t.TAG_NAME_C, count(d.DOC_ID_C) "); sb.append(" from T_TAG t "); sb.append(" left join T_DOCUMENT_TAG dt on t.TAG...
diff --git a/webscrambles/src_tnoodle_resources/tnoodleServerHandler/webscrambles/ScrambleHandler.java b/webscrambles/src_tnoodle_resources/tnoodleServerHandler/webscrambles/ScrambleHandler.java index 12103a92..c19e8d83 100644 --- a/webscrambles/src_tnoodle_resources/tnoodleServerHandler/webscrambles/ScrambleHandler.ja...
false
true
protected void wrappedHandle(HttpExchange t, String[] path, LinkedHashMap<String, String> query) throws IllegalArgumentException, SecurityException, InstantiationException, IllegalAccessException, InvocationTargetException, ClassNotFoundException, NoSuchMethodException, DocumentException, InvalidScrambleRequestExcepti...
protected void wrappedHandle(HttpExchange t, String[] path, LinkedHashMap<String, String> query) throws IllegalArgumentException, SecurityException, InstantiationException, IllegalAccessException, InvocationTargetException, ClassNotFoundException, NoSuchMethodException, DocumentException, InvalidScrambleRequestExcepti...
diff --git a/RegisterFiles.java b/RegisterFiles.java index ff49ed6..43402f5 100644 --- a/RegisterFiles.java +++ b/RegisterFiles.java @@ -1,124 +1,124 @@ import java.util.Enumeration; import java.util.LinkedHashMap; /// ///This class provides all register functionality for ///integer and floating point register f...
true
true
public RegisterFiles(){ registers_int = new LinkedHashMap<String, String>(); registers_fp = new LinkedHashMap<String, String>(); //Initialize R0 //registers_int.put( "R0", "R0" ); //Initialize the Integer Registers R1 to Rn for( int...
public RegisterFiles(){ registers_int = new LinkedHashMap<String, String>(); registers_fp = new LinkedHashMap<String, String>(); //Initialize R0 registers_int.put( "R0", "0" ); //Initialize the Integer Registers R1 to Rn for( int i ...
diff --git a/src/main/java/ch/ethz/bsse/indelfixer/minimal/Start.java b/src/main/java/ch/ethz/bsse/indelfixer/minimal/Start.java index e545ac2..e14d734 100644 --- a/src/main/java/ch/ethz/bsse/indelfixer/minimal/Start.java +++ b/src/main/java/ch/ethz/bsse/indelfixer/minimal/Start.java @@ -1,439 +1,439 @@ /** * Copyri...
true
true
public void doMain(String[] args) { try { CmdLineParser parser = new CmdLineParser(this); parser.setUsageWidth(80); try { parser.parseArgument(args); if (this.version) { System.out.println("InDelFixer version: " + Start...
public void doMain(String[] args) { try { CmdLineParser parser = new CmdLineParser(this); parser.setUsageWidth(80); try { parser.parseArgument(args); if (this.version) { System.out.println("InDelFixer version: " + Start...
diff --git a/workspace/Day01FNLab01/src/com/aci/UserMain.java b/workspace/Day01FNLab01/src/com/aci/UserMain.java index e0e39b6..655530a 100755 --- a/workspace/Day01FNLab01/src/com/aci/UserMain.java +++ b/workspace/Day01FNLab01/src/com/aci/UserMain.java @@ -1,12 +1,12 @@ package com.aci; import org.springframework.c...
true
true
public static void main(String[] args) { ApplicationContext context = new FileSystemXmlApplicationContext("bin/beans.xml"); User user = context.getBean("user", User.class); user.printSessions(); }
public static void main(String[] args) { ApplicationContext context = new FileSystemXmlApplicationContext("bin/com/aci/beans.xml"); User user = context.getBean("user", User.class); user.printSessions(); }