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/org/neo4j/kernel/impl/traversal/TraverserImpl.java b/src/main/java/org/neo4j/kernel/impl/traversal/TraverserImpl.java index c3b8de41..26b7dd32 100644 --- a/src/main/java/org/neo4j/kernel/impl/traversal/TraverserImpl.java +++ b/src/main/java/org/neo4j/kernel/impl/traversal/TraverserImpl.java @...
true
true
public Iterable<Relationship> relationships() { return new IterableWrapper<Relationship, Path>( this ) { @Override public Iterator<Relationship> iterator() { Iterator<Relationship> iter = super.iterator(); Relationship first = i...
public Iterable<Relationship> relationships() { return new IterableWrapper<Relationship, Path>( this ) { @Override public Iterator<Relationship> iterator() { Iterator<Relationship> iter = super.iterator(); if ( iter.hasNext() ) ...
diff --git a/Library/src/br/ufpa/adtn/routing/prophet/ProphetLinkConnection.java b/Library/src/br/ufpa/adtn/routing/prophet/ProphetLinkConnection.java index 57ea294..df3e2d3 100644 --- a/Library/src/br/ufpa/adtn/routing/prophet/ProphetLinkConnection.java +++ b/Library/src/br/ufpa/adtn/routing/prophet/ProphetLinkConnect...
true
true
public BundleSpec[] update(NeighborPredict[] preds) { /* * Considering that I'm node A, my neighbor is node B * and others are C. */ final EID remote_eid = getRegistrationEndpointID(); for (int i = 0, len = preds.length; i < len; i++) { final NeighborPredict np = preds[i]; final EID c_eid = np.get...
public BundleSpec[] update(NeighborPredict[] preds) { /* * Considering that I'm node A, my neighbor is node B * and others are C. */ final EID remote_eid = getRegistrationEndpointID(); for (int i = 0, len = preds.length; i < len; i++) { final NeighborPredict np = preds[i]; final EID c_eid = np.get...
diff --git a/src/com/android/musicfx/ControlPanelEffect.java b/src/com/android/musicfx/ControlPanelEffect.java index 8abb4f3..db46c3e 100644 --- a/src/com/android/musicfx/ControlPanelEffect.java +++ b/src/com/android/musicfx/ControlPanelEffect.java @@ -1,1419 +1,1419 @@ /* * Copyright (C) 2010-2011 The Android Open ...
true
true
public static void openSession(final Context context, final String packageName, final int audioSession) { Log.v(TAG, "openSession(" + context + ", " + packageName + ", " + audioSession + ")"); final String methodTag = "openSession: "; // init preferences final SharedPref...
public static void openSession(final Context context, final String packageName, final int audioSession) { Log.v(TAG, "openSession(" + context + ", " + packageName + ", " + audioSession + ")"); final String methodTag = "openSession: "; // init preferences final SharedPref...
diff --git a/xsl/webhelp/indexer/src/com/nexwave/nquindexer/SaxHTMLIndex.java b/xsl/webhelp/indexer/src/com/nexwave/nquindexer/SaxHTMLIndex.java index d9538aed5..ce5cdda58 100755 --- a/xsl/webhelp/indexer/src/com/nexwave/nquindexer/SaxHTMLIndex.java +++ b/xsl/webhelp/indexer/src/com/nexwave/nquindexer/SaxHTMLIndex.java...
true
true
public DocFileInfo runExtractData(File file, String indexerLanguage) { //initialization fileDesc = new DocFileInfo(file); strbf = new StringBuffer(""); // Fill strbf by parsing the file parseDocument(file); String str = cleanBuffer(strbf); str = str.replaceAll("\\s+"," "); //there's still redun...
public DocFileInfo runExtractData(File file, String indexerLanguage) { //initialization fileDesc = new DocFileInfo(file); strbf = new StringBuffer(""); // Fill strbf by parsing the file parseDocument(file); String str = cleanBuffer(strbf); str = str.replaceAll("\\s+"," "); //there's still redun...
diff --git a/plugins/org.eclipse.recommenders.models.rcp/src/org/eclipse/recommenders/internal/models/rcp/ModelsRcpModule.java b/plugins/org.eclipse.recommenders.models.rcp/src/org/eclipse/recommenders/internal/models/rcp/ModelsRcpModule.java index e0cd85042..8bfca08bf 100644 --- a/plugins/org.eclipse.recommenders.mode...
true
true
private Optional<IProjectCoordinateAdvisor> createAdvisor(String advisorName, ManualProjectCoordinateAdvisor manualMappingStrategy, IModelIndex index) { if (advisorName.equals(ManualProjectCoordinateAdvisor.class.getName())) { return Optional.<IProjectCoordinateAdvisor>of(manualMappi...
private Optional<IProjectCoordinateAdvisor> createAdvisor(String advisorName, ManualProjectCoordinateAdvisor manualMappingStrategy, IModelIndex index) { if (advisorName.equals(ManualProjectCoordinateAdvisor.class.getName())) { return Optional.<IProjectCoordinateAdvisor>of(manualMappi...
diff --git a/src/main/java/nl/lolmewn/sortal/EventListener.java b/src/main/java/nl/lolmewn/sortal/EventListener.java index 52d0837..9c75f33 100644 --- a/src/main/java/nl/lolmewn/sortal/EventListener.java +++ b/src/main/java/nl/lolmewn/sortal/EventListener.java @@ -1,632 +1,635 @@ /* * EventListener.java * * Cop...
false
true
public void onPlayerHitSign(PlayerInteractEvent event) { if (event.getAction().equals(Action.RIGHT_CLICK_BLOCK) || event.getAction().equals(Action.LEFT_CLICK_BLOCK)) { Block b = event.getClickedBlock(); Player p = event.getPlayer(); if (b.getType().equals(Material.SIGN) |...
public void onPlayerHitSign(PlayerInteractEvent event) { if (event.getAction().equals(Action.RIGHT_CLICK_BLOCK) || event.getAction().equals(Action.LEFT_CLICK_BLOCK)) { Block b = event.getClickedBlock(); Player p = event.getPlayer(); if (b.getType().equals(Material.SIGN) |...
diff --git a/src/org/jruby/ast/ConstNode.java b/src/org/jruby/ast/ConstNode.java index 532783eac..5047abfb0 100644 --- a/src/org/jruby/ast/ConstNode.java +++ b/src/org/jruby/ast/ConstNode.java @@ -1,127 +1,128 @@ /* ***** BEGIN LICENSE BLOCK ***** * Version: CPL 1.0/GPL 2.0/LGPL 2.1 * * The contents of this fi...
false
true
public IRubyObject reCache(ThreadContext context, String name) { IRubyObject value = context.getConstant(name); cachedValue = value; if (value != null) generation = context.getRubyClass().getConstantSerialNumber(); return value; }
public IRubyObject reCache(ThreadContext context, String name) { int newGeneration = context.getRubyClass().getConstantSerialNumber(); IRubyObject value = context.getConstant(name); cachedValue = value; if (value != null) generation = newGeneration; ...
diff --git a/src/cz/krtinec/birthday/widgets/UpdateService.java b/src/cz/krtinec/birthday/widgets/UpdateService.java index 6f4e6b9..4767341 100644 --- a/src/cz/krtinec/birthday/widgets/UpdateService.java +++ b/src/cz/krtinec/birthday/widgets/UpdateService.java @@ -1,56 +1,58 @@ package cz.krtinec.birthday.widgets; ...
true
true
protected void replaceIconWithPhoto(RemoteViews views, BContact contact, int viewId) { InputStream is = BirthdayProvider.openPhoto(this, contact.getId()); if (is != null) { Bitmap bitmap = BitmapFactory.decodeStream(is); views.setImageViewBitmap(viewId, bitmap); try { is.close(); } catch (IOExcepti...
protected void replaceIconWithPhoto(RemoteViews views, BContact contact, int viewId) { InputStream is = BirthdayProvider.openPhoto(this, contact.getId()); if (is != null) { Bitmap bitmap = BitmapFactory.decodeStream(is); views.setImageViewBitmap(viewId, bitmap); try { is.close(); } catch (IOExcepti...
diff --git a/common/logisticspipes/network/PacketHandler.java b/common/logisticspipes/network/PacketHandler.java index f600975a..0db2599b 100644 --- a/common/logisticspipes/network/PacketHandler.java +++ b/common/logisticspipes/network/PacketHandler.java @@ -1,92 +1,92 @@ package logisticspipes.network; import java...
false
true
public PacketHandler() { try { final List<ClassInfo> classes = new ArrayList<ClassInfo>(ClassPath .from(this.getClass().getClassLoader()).getTopLevelClasses( "logisticspipes.network.packets")); Collections.sort(classes, new Comparator<ClassInfo>() { @Override public int compare(ClassInfo o...
public PacketHandler() { try { final List<ClassInfo> classes = new ArrayList<ClassInfo>(ClassPath .from(this.getClass().getClassLoader()).getTopLevelClasses( "logisticspipes.network.packets")); Collections.sort(classes, new Comparator<ClassInfo>() { @Override public int compare(ClassInfo o...
diff --git a/src/main/java/org/asteriskjava/manager/internal/ManagerReaderImpl.java b/src/main/java/org/asteriskjava/manager/internal/ManagerReaderImpl.java index 28db705e..1b83e1d2 100644 --- a/src/main/java/org/asteriskjava/manager/internal/ManagerReaderImpl.java +++ b/src/main/java/org/asteriskjava/manager/internal/...
false
true
public void run() { final Map<String, String> buffer = new HashMap<String, String>(); final List<String> commandResult = new ArrayList<String>(); String line; boolean processingCommandResult = false; if (socket == null) { throw new IllegalStateExcepti...
public void run() { final Map<String, String> buffer = new HashMap<String, String>(); final List<String> commandResult = new ArrayList<String>(); String line; boolean processingCommandResult = false; if (socket == null) { throw new IllegalStateExcepti...
diff --git a/src/main/org/openscience/gittodo/app/SetDone.java b/src/main/org/openscience/gittodo/app/SetDone.java index bc30530..43566eb 100644 --- a/src/main/org/openscience/gittodo/app/SetDone.java +++ b/src/main/org/openscience/gittodo/app/SetDone.java @@ -1,38 +1,39 @@ /* * Copyright 2008 Egon Willighagen <ego...
false
true
public static void main(String[] args) throws Exception { if (args.length < 1) { System.out.println("Syntax: set-done <ITEM-ID> <ITEM-ID-2> ..."); System.exit(0); } IGTDRepository repos = new Repository(); for (int i=1; i< args.length; i++) { Integer itemID = Integer.parseInt(args[0]); Map<Integer,...
public static void main(String[] args) throws Exception { if (args.length < 1) { System.out.println("Syntax: set-done <ITEM-ID> <ITEM-ID-2> ..."); System.exit(0); } IGTDRepository repos = new Repository(); for (int i=0; i< args.length; i++) { Integer itemID = Integer.parseInt(args[i]); Map<Integer,...
diff --git a/src/main/java/uk/ac/susx/tag/wag/Main.java b/src/main/java/uk/ac/susx/tag/wag/Main.java index b6f1bcb..da16ec3 100644 --- a/src/main/java/uk/ac/susx/tag/wag/Main.java +++ b/src/main/java/uk/ac/susx/tag/wag/Main.java @@ -1,483 +1,483 @@ package uk.ac.susx.tag.wag; import com.beust.jcommander.*; import ...
false
true
public Main build() throws IOException { // Check the input file and setup the source final ImmutableList.Builder<ByteSource> sources = ImmutableList.builder(); for (final String input : inputs) { try { final URL inputUrl = new URL(input...
public Main build() throws IOException { // Check the input file and setup the source final ImmutableList.Builder<ByteSource> sources = ImmutableList.builder(); for (final String input : inputs) { try { final URL inputUrl = new URL(input...
diff --git a/org.eclipse.mylyn.tests/src/org/eclipse/mylyn/tests/integration/LiveWebConnectorTemplatesTest.java b/org.eclipse.mylyn.tests/src/org/eclipse/mylyn/tests/integration/LiveWebConnectorTemplatesTest.java index 8ff28e7..0a13394 100644 --- a/org.eclipse.mylyn.tests/src/org/eclipse/mylyn/tests/integration/LiveWeb...
true
true
public void testRepositoryTemplate() throws Throwable { IProgressMonitor monitor = new NullProgressMonitor(); MultiStatus queryStatus = new MultiStatus(TasksUiPlugin.PLUGIN_ID, IStatus.OK, "Query result", null); final List<AbstractTask> hits = new ArrayList<AbstractTask>(); QueryHitCollector collector = new Qu...
public void testRepositoryTemplate() throws Throwable { IProgressMonitor monitor = new NullProgressMonitor(); MultiStatus queryStatus = new MultiStatus(TasksUiPlugin.ID_PLUGIN, IStatus.OK, "Query result", null); final List<AbstractTask> hits = new ArrayList<AbstractTask>(); QueryHitCollector collector = new Qu...
diff --git a/aop-mc-int/src/main/org/jboss/aop/microcontainer/beans/beanmetadatafactory/BindBeanMetaDataFactory.java b/aop-mc-int/src/main/org/jboss/aop/microcontainer/beans/beanmetadatafactory/BindBeanMetaDataFactory.java index d6628dc6..eb26fe97 100644 --- a/aop-mc-int/src/main/org/jboss/aop/microcontainer/beans/bean...
false
true
public List<BeanMetaData> getBeans() { ArrayList<BeanMetaData> result = new ArrayList<BeanMetaData>(); //Create AspectBinding AbstractBeanMetaData binding = new AbstractBeanMetaData(); if (name == null) { name = GUID.asString(); } binding.setName(name); Be...
public List<BeanMetaData> getBeans() { ArrayList<BeanMetaData> result = new ArrayList<BeanMetaData>(); //Create AspectBinding AbstractBeanMetaData binding = new AbstractBeanMetaData(); if (name == null) { name = GUID.asString(); } binding.setName(name); Be...
diff --git a/modules/activiti-webapp-rest/src/main/java/org/activiti/rest/api/cycle/ContentRepresentationGet.java b/modules/activiti-webapp-rest/src/main/java/org/activiti/rest/api/cycle/ContentRepresentationGet.java index a7420c7a..6136e9c4 100644 --- a/modules/activiti-webapp-rest/src/main/java/org/activiti/rest/api/...
true
true
protected void executeWebScript(ActivitiRequest req, Status status, Cache cache, Map<String, Object> model) { init(req); String connectorId = req.getMandatoryString("connectorId"); String artifactId = req.getString("artifactId"); String representationId = req.getString("representationId"); Repos...
protected void executeWebScript(ActivitiRequest req, Status status, Cache cache, Map<String, Object> model) { init(req); String connectorId = req.getMandatoryString("connectorId"); String artifactId = req.getString("artifactId"); String representationId = req.getString("representationId"); Repos...
diff --git a/src/main/java/org/mvel2/MVELRuntime.java b/src/main/java/org/mvel2/MVELRuntime.java index 5de46be3..a4ba0d86 100644 --- a/src/main/java/org/mvel2/MVELRuntime.java +++ b/src/main/java/org/mvel2/MVELRuntime.java @@ -1,238 +1,238 @@ /** * MVEL 2.0 * Copyright (C) 2007 The Codehaus * Mike Brock, Dhanji ...
true
true
public static Object execute(boolean debugger, final CompiledExpression expression, final Object ctx, VariableResolverFactory variableFactory) { ASTLinkedList node = new ASTLinkedList(expression.getInstructions().firstNode()); if (expression.isImportInjectionRequir...
public static Object execute(boolean debugger, final CompiledExpression expression, final Object ctx, VariableResolverFactory variableFactory) { ASTLinkedList node = new ASTLinkedList(expression.getInstructions().firstNode()); if (expression.isImportInjectionRequir...
diff --git a/src/main/java/net/aufdemrand/denizen/scripts/containers/core/WorldScriptHelper.java b/src/main/java/net/aufdemrand/denizen/scripts/containers/core/WorldScriptHelper.java index 8e117c1e3..944a06d83 100644 --- a/src/main/java/net/aufdemrand/denizen/scripts/containers/core/WorldScriptHelper.java +++ b/src/mai...
false
true
public void entityDamage(EntityDamageEvent event) { Map<String, Object> context = new HashMap<String, Object>(); boolean isFatal = false; dEntity entity = new dEntity(event.getEntity()); String entityType = entity.getType(); String cause = event.getCause().name(); ...
public void entityDamage(EntityDamageEvent event) { Map<String, Object> context = new HashMap<String, Object>(); boolean isFatal = false; dEntity entity = new dEntity(event.getEntity()); String entityType = entity.getType(); String cause = event.getCause().name(); ...
diff --git a/src/com/android/musicvis/vis3/Visualization3RS.java b/src/com/android/musicvis/vis3/Visualization3RS.java index 27a3f14..3f33131 100644 --- a/src/com/android/musicvis/vis3/Visualization3RS.java +++ b/src/com/android/musicvis/vis3/Visualization3RS.java @@ -1,128 +1,128 @@ /* * Copyright (C) 2009 The Andr...
true
true
public void update() { int len = 0; if (mAudioCapture != null) { mVizData = mAudioCapture.getFormattedData(64, 1); len = mVizData.length; } if (len == 0) { if (mWorldState.idle == 0) { mWorldState.idle = 1; updateWo...
public void update() { int len = 0; if (mAudioCapture != null) { mVizData = mAudioCapture.getFormattedData(64, 1); len = mVizData.length; } if (len == 0) { if (mWorldState.idle == 0) { mWorldState.idle = 1; updateWo...
diff --git a/src/ibis/util/ThreadPool.java b/src/ibis/util/ThreadPool.java index f047d70c..32a8d1cf 100644 --- a/src/ibis/util/ThreadPool.java +++ b/src/ibis/util/ThreadPool.java @@ -1,173 +1,173 @@ package ibis.util; import ibis.ipl.IbisError; import java.util.LinkedList; import org.apache.log4j.Logger; /...
true
true
public void run() { while (true) { Runnable currentWork; String currentName; synchronized (this) { if (this.work == null) { waiting(this); try { wait(TIME...
public void run() { while (true) { Runnable currentWork; String currentName; synchronized (this) { if (this.work == null) { waiting(this); try { wait(TIME...
diff --git a/management/src/main/java/org/mortbay/management/ObjectMBean.java b/management/src/main/java/org/mortbay/management/ObjectMBean.java index 516a6f942..1f31d6b3b 100644 --- a/management/src/main/java/org/mortbay/management/ObjectMBean.java +++ b/management/src/main/java/org/mortbay/management/ObjectMBean.java...
false
true
public MBeanAttributeInfo defineAttribute(String name, String metaData) { String[] tokens=metaData.split(":",3); int i=tokens.length-1; String description=tokens[i--]; boolean writable= i<0 || "RW".equalsIgnoreCase(tokens[i--]); boolean onMBean= i==0 && "MBean".equalsIgno...
public MBeanAttributeInfo defineAttribute(String name, String metaData) { String[] tokens=metaData.split(":",3); int i=tokens.length-1; String description=tokens[i--]; boolean writable= i<0 || "RW".equalsIgnoreCase(tokens[i--]); boolean onMBean= i==0 && "MBean".equalsIgno...
diff --git a/ext/WarblerJar.java b/ext/WarblerJar.java index ac669bf..d5436b2 100644 --- a/ext/WarblerJar.java +++ b/ext/WarblerJar.java @@ -1,192 +1,193 @@ /** * Copyright (c) 2010-2012 Engine Yard, Inc. * Copyright (c) 2007-2009 Sun Microsystems, Inc. * This source code is available under the MIT license. * ...
false
true
private static void addEntry(ThreadContext context, ZipOutputStream zip, String entryName, IRubyObject value) throws IOException { if (value.respondsTo("read")) { RubyString str = (RubyString) value.callMethod(context, "read").checkStringType(); byte[] contents = str.getByteList().ge...
private static void addEntry(ThreadContext context, ZipOutputStream zip, String entryName, IRubyObject value) throws IOException { if (value.respondsTo("read")) { RubyString str = (RubyString) value.callMethod(context, "read").checkStringType(); ByteList strByteList = str.getByteList...
diff --git a/bndtools.core/src/bndtools/internal/decorator/ExportedPackageDecoratorJob.java b/bndtools.core/src/bndtools/internal/decorator/ExportedPackageDecoratorJob.java index 1e7b2ec2..94236d2b 100644 --- a/bndtools.core/src/bndtools/internal/decorator/ExportedPackageDecoratorJob.java +++ b/bndtools.core/src/bndtoo...
true
true
protected IStatus run(IProgressMonitor monitor) { instances.remove(project.getFullPath().toPortableString()); try { Project model = Workspace.getProject(project.getLocation().toFile()); Collection< ? extends Builder> builders = model.getSubBuilders(); Map<String...
protected IStatus run(IProgressMonitor monitor) { instances.remove(project.getFullPath().toPortableString()); try { Project model = Workspace.getProject(project.getLocation().toFile()); if (model == null) { return Status.OK_STATUS; } C...
diff --git a/src/main/java/network/Telnet.java b/src/main/java/network/Telnet.java index c650a727..d258d38b 100755 --- a/src/main/java/network/Telnet.java +++ b/src/main/java/network/Telnet.java @@ -1,70 +1,70 @@ import java.net.*; import java.io.*; /** * Telnet - connect to a given host and service * This doe...
true
true
private void talkTo(String av[]) { if (av.length >= 1) host = av[0]; else host = "localhost"; if (av.length >= 2) portNum = Integer.parseInt(av[1]); else portNum = 23; System.out.println("Host" + host + "; port " + portNum); try { Socket s = new Socket(host, portNum); // Connect the remote ...
private void talkTo(String av[]) { if (av.length >= 1) host = av[0]; else host = "localhost"; if (av.length >= 2) portNum = Integer.parseInt(av[1]); else portNum = 23; System.out.println("Host " + host + "; port " + portNum); try { Socket s = new Socket(host, portNum); // Connect the remote...
diff --git a/dspace-api/src/main/java/org/dspace/content/packager/RoleIngester.java b/dspace-api/src/main/java/org/dspace/content/packager/RoleIngester.java index 2de5593a9..d03e88a87 100644 --- a/dspace-api/src/main/java/org/dspace/content/packager/RoleIngester.java +++ b/dspace-api/src/main/java/org/dspace/content/pa...
true
true
static void ingestDocument(Context context, PackageParameters params, Document document) throws SQLException, AuthorizeException, PackageException { String myEmail = context.getCurrentUser().getEmail(); String myNetid = context.getCurrentUser().getNetid(); // Ing...
static void ingestDocument(Context context, PackageParameters params, Document document) throws SQLException, AuthorizeException, PackageException { String myEmail = context.getCurrentUser().getEmail(); String myNetid = context.getCurrentUser().getNetid(); // Ing...
diff --git a/src/org/bombusim/xmpp/handlers/IqFallback.java b/src/org/bombusim/xmpp/handlers/IqFallback.java index 7c22b71..f480a7e 100644 --- a/src/org/bombusim/xmpp/handlers/IqFallback.java +++ b/src/org/bombusim/xmpp/handlers/IqFallback.java @@ -1,63 +1,64 @@ /* * Copyright (c) 2005-2011, Eugene Stahov (evgs@bomb...
true
true
public int blockArrived(XmppObject data, XmppStream stream) throws IOException, XmppException { try { Iq f = (Iq)data; String from = f.getAttribute("from"); String type = f.getTypeAttribute(); if (type.equals("result")) { return BLOCK_REJECTED; } if (type.equals("error")) { return BLOCK_...
public int blockArrived(XmppObject data, XmppStream stream) throws IOException, XmppException { try { Iq f = (Iq)data; String from = f.getAttribute("from"); String type = f.getTypeAttribute(); if (type.equals("result")) { return BLOCK_REJECTED; } if (type.equals("error")) { return BLOCK_...
diff --git a/container/src/main/java/org/jboss/forge/container/ForgeImpl.java b/container/src/main/java/org/jboss/forge/container/ForgeImpl.java index d4629e2cf..db6e5c518 100644 --- a/container/src/main/java/org/jboss/forge/container/ForgeImpl.java +++ b/container/src/main/java/org/jboss/forge/container/ForgeImpl.java...
false
true
public Forge start(ClassLoader loader) { assertNotAlive(); this.loader = loader; fireBeforeContainerStartedEvent(loader); if (!alive) { try { alive = true; do { boolean dirty = false; if (!isStartingA...
public Forge start(ClassLoader loader) { assertNotAlive(); this.loader = loader; fireBeforeContainerStartedEvent(loader); if (!alive) { try { alive = true; do { boolean dirty = false; if (!isStartingA...
diff --git a/src/test/java/org/nohope/spring/app/SpringAsyncModularAppTest.java b/src/test/java/org/nohope/spring/app/SpringAsyncModularAppTest.java index ac9924c..a95ac98 100644 --- a/src/test/java/org/nohope/spring/app/SpringAsyncModularAppTest.java +++ b/src/test/java/org/nohope/spring/app/SpringAsyncModularAppTest....
true
true
private static void probe(final AppWithContainer app) throws InterruptedException { final AtomicReference<Throwable> ref = new AtomicReference<>(); final Thread t = new Thread(new Runnable() { @Override public void run() { try { app.start()...
private static void probe(final AppWithContainer app) throws InterruptedException { final AtomicReference<Throwable> ref = new AtomicReference<>(); final Thread t = new Thread(new Runnable() { @Override public void run() { try { app.start()...
diff --git a/src/main/java/com/ning/metrics/action/binder/listeners/ActionCoreGuiceListener.java b/src/main/java/com/ning/metrics/action/binder/listeners/ActionCoreGuiceListener.java index 0cf6bdb..d3dcff1 100644 --- a/src/main/java/com/ning/metrics/action/binder/listeners/ActionCoreGuiceListener.java +++ b/src/main/ja...
true
true
public void contextInitialized(ServletContextEvent event) { final ServerModuleBuilder builder = new ServerModuleBuilder() .addConfig(ActionCoreConfig.class) .addHealthCheck(HDFSHealthCheck.class) .addJMXExport(HDFSHealthCheck.class) .setAreciboProfile(Syst...
public void contextInitialized(ServletContextEvent event) { final ServerModuleBuilder builder = new ServerModuleBuilder() .addConfig(ActionCoreConfig.class) .addHealthCheck(HDFSHealthCheck.class) .addJMXExport(HDFSHealthCheck.class) .setAreciboProfile(Syst...
diff --git a/FFMine_Common/net/digidownloads/FFmine/item/GrindStone.java b/FFMine_Common/net/digidownloads/FFmine/item/GrindStone.java index ab9c065..510b6fc 100644 --- a/FFMine_Common/net/digidownloads/FFmine/item/GrindStone.java +++ b/FFMine_Common/net/digidownloads/FFmine/item/GrindStone.java @@ -1,32 +1,32 @@ pack...
true
true
public static void Item() { //Grinding wheels final Item StoneGrindWheel = new Item((Reference.StoneGrindWheelID)-256).setUnlocalizedName(Strings.StoneGrindWheelName).setCreativeTab(CreativeTabs.tabMaterials); final Item IronGrindWheel = new Item((Reference.IronGrindWheelID)-256).setUnlocalizedName(Strings...
public static void Item() { //Grinding wheels final Item StoneGrindWheel = new Item((Reference.StoneGrindWheelID)-256).setUnlocalizedName(Strings.StoneGrindWheelName).setCreativeTab(CreativeTabs.tabMaterials); final Item IronGrindWheel = new Item((Reference.IronGrindWheelID)-256).setUnlocalizedName(Strings...
diff --git a/src/main/java/org/zeroturnaround/zip/ZipEntryUtil.java b/src/main/java/org/zeroturnaround/zip/ZipEntryUtil.java index 304ce5d..0fec984 100644 --- a/src/main/java/org/zeroturnaround/zip/ZipEntryUtil.java +++ b/src/main/java/org/zeroturnaround/zip/ZipEntryUtil.java @@ -1,106 +1,105 @@ package org.zeroturnar...
true
true
static ZipEntry copy(ZipEntry original, String newName) { ZipEntry copy = new ZipEntry(newName == null ? original.getName() : newName); if (original.getCrc() != -1) { copy.setCrc(original.getCrc()); } if (original.getMethod() != -1) { copy.setMethod(original.getMethod()); } if (ori...
static ZipEntry copy(ZipEntry original, String newName) { ZipEntry copy = new ZipEntry(newName == null ? original.getName() : newName); if (original.getCrc() != -1) { copy.setCrc(original.getCrc()); } if (original.getMethod() != -1) { copy.setMethod(original.getMethod()); } if (ori...
diff --git a/org.eclipse.epp.mpc.ui/src/org/eclipse/epp/internal/mpc/ui/catalog/MarketplaceDiscoveryStrategy.java b/org.eclipse.epp.mpc.ui/src/org/eclipse/epp/internal/mpc/ui/catalog/MarketplaceDiscoveryStrategy.java index 40b629e..4823bb9 100644 --- a/org.eclipse.epp.mpc.ui/src/org/eclipse/epp/internal/mpc/ui/catalog/...
true
true
protected void handleSearchResult(MarketplaceCategory catalogCategory, SearchResult result, final IProgressMonitor monitor) { if (!result.getNodes().isEmpty()) { int totalWork = 10000000; monitor.beginTask(Messages.MarketplaceDiscoveryStrategy_loadingResources, totalWork); ConcurrentTaskManager executor ...
protected void handleSearchResult(MarketplaceCategory catalogCategory, SearchResult result, final IProgressMonitor monitor) { if (!result.getNodes().isEmpty()) { int totalWork = 10000000; monitor.beginTask(Messages.MarketplaceDiscoveryStrategy_loadingResources, totalWork); ConcurrentTaskManager executor ...
diff --git a/src/main/java/com/wabbit/silly/SpringSender.java b/src/main/java/com/wabbit/silly/SpringSender.java index 1f09447..6365a9f 100644 --- a/src/main/java/com/wabbit/silly/SpringSender.java +++ b/src/main/java/com/wabbit/silly/SpringSender.java @@ -1,30 +1,31 @@ package com.wabbit.silly; import org.springfr...
true
true
public static void main(String[] args) throws UnsupportedEncodingException, InterruptedException { ClassPathXmlApplicationContext ctx = new ClassPathXmlApplicationContext("classpath:context.xml"); RabbitTemplate rabbitTemplate = ctx.getBean(RabbitTemplate.class); while(true){ Str...
public static void main(String[] args) throws UnsupportedEncodingException, InterruptedException { ClassPathXmlApplicationContext ctx = new ClassPathXmlApplicationContext("classpath:context.xml"); RabbitTemplate rabbitTemplate = ctx.getBean(RabbitTemplate.class); while(true){ Str...
diff --git a/freeplane/src/org/freeplane/view/swing/map/mindmapmode/EditNodeTextField.java b/freeplane/src/org/freeplane/view/swing/map/mindmapmode/EditNodeTextField.java index ec0de5162..d8a288af6 100644 --- a/freeplane/src/org/freeplane/view/swing/map/mindmapmode/EditNodeTextField.java +++ b/freeplane/src/org/freepla...
true
true
public void show(final Frame frame) { final ModeController modeController = Controller.getCurrentModeController(); final ViewController viewController = modeController.getController().getViewController(); final TextController textController = TextController.getController(modeController); final Component compon...
public void show(final Frame frame) { final ModeController modeController = Controller.getCurrentModeController(); final ViewController viewController = modeController.getController().getViewController(); final TextController textController = TextController.getController(modeController); final Component compon...
diff --git a/lib/src/java/org/j2free/jsp/tags/FragmentCacheTag.java b/lib/src/java/org/j2free/jsp/tags/FragmentCacheTag.java index f59cbba..20a2577 100644 --- a/lib/src/java/org/j2free/jsp/tags/FragmentCacheTag.java +++ b/lib/src/java/org/j2free/jsp/tags/FragmentCacheTag.java @@ -1,424 +1,425 @@ /* * FragmentCacheTa...
true
true
public int doStartTag() throws JspException { start = System.currentTimeMillis(); // If the cache isn't enabled, make sure disable is set disable |= !enabled.get(); // If disable is set, either by the tag, the request attribute, or the global flag, then ignore the cache if...
public int doStartTag() throws JspException { start = System.currentTimeMillis(); // If the cache isn't enabled, make sure disable is set disable |= !enabled.get(); // If disable is set, either by the tag, the request attribute, or the global flag, then ignore the cache if...
diff --git a/src/main/java/org/cloudifysource/quality/iTests/test/cli/cloudify/cloud/byon/failover/AbstractKillManagementTest.java b/src/main/java/org/cloudifysource/quality/iTests/test/cli/cloudify/cloud/byon/failover/AbstractKillManagementTest.java index ef34781b..886a0122 100644 --- a/src/main/java/org/cloudifysourc...
true
true
public void testKillMachine() throws Exception { LogUtils.log("Before restart, checking for liveness of petclinic application"); repetitiveAssertPetclinicUrlIsAvailable(); Machine machine = getMachineToKill(); String machineAddress = machine.getHostAddress(); GridServiceManager otherManager = ...
public void testKillMachine() throws Exception { LogUtils.log("Before restart, checking for liveness of petclinic application"); repetitiveAssertPetclinicUrlIsAvailable(); Machine machine = getMachineToKill(); String machineAddress = machine.getHostAddress(); GridServiceManager otherManager = ...
diff --git a/KeywordSearch/src/org/sleuthkit/autopsy/keywordsearch/KeywordSearchSettings.java b/KeywordSearch/src/org/sleuthkit/autopsy/keywordsearch/KeywordSearchSettings.java index 9d9821048..8ecbec9a5 100644 --- a/KeywordSearch/src/org/sleuthkit/autopsy/keywordsearch/KeywordSearchSettings.java +++ b/KeywordSearch/sr...
false
true
static void setDefaults(){ logger.log(Level.INFO, "Detecting default settings."); //setting default NSRL if(!ModuleSettings.settingExists(KeywordSearchSettings.PROPERTIES_NSRL, "SkipKnown")){ logger.log(Level.INFO, "No configuration for NSRL not found, generating default..."); ...
static void setDefaults(){ logger.log(Level.INFO, "Detecting default settings."); //setting default NSRL if(!ModuleSettings.settingExists(KeywordSearchSettings.PROPERTIES_NSRL, "SkipKnown")){ logger.log(Level.INFO, "No configuration for NSRL found, generating default..."); ...
diff --git a/rmt/src/test/java/de/flower/rmt/ui/page/user/manager/PlayerTeamsPanelTest.java b/rmt/src/test/java/de/flower/rmt/ui/page/user/manager/PlayerTeamsPanelTest.java index 13e967cd..e9890ee9 100644 --- a/rmt/src/test/java/de/flower/rmt/ui/page/user/manager/PlayerTeamsPanelTest.java +++ b/rmt/src/test/java/de/flo...
true
true
public void testRender() { final User user = testData.newUserWithTeams(); user.setId(1L); // make it act persisted when(playerManager.findAllByUser(user, Player_.team)).thenReturn(user.getPlayers()); wicketTester.startComponentInPage(new PlayerTeamsPanel("panel", Model.of(user))); ...
public void testRender() { final User user = testData.newUserWithTeams(); user.setId(1L); // make it act persisted when(playerManager.findAllByUser(user, Player_.team)).thenReturn(user.getPlayers()); when(playerManager.sortByTeam(user.getPlayers())).thenReturn(user.getPlayers()); ...
diff --git a/src/main/java/net/pterodactylus/reactor/states/HttpState.java b/src/main/java/net/pterodactylus/reactor/states/HttpState.java index 38ca80c..442106b 100644 --- a/src/main/java/net/pterodactylus/reactor/states/HttpState.java +++ b/src/main/java/net/pterodactylus/reactor/states/HttpState.java @@ -1,154 +1,15...
false
true
private static String extractCharset(String contentType) { if (contentType == null) { return "UTF-8"; } HeaderElement headerElement = BasicHeaderValueParser.parseHeaderElement(contentType, new BasicHeaderValueParser()); NameValuePair charset = headerElement.getParameterByName("charset"); return (charset !...
private static String extractCharset(String contentType) { if (contentType == null) { return "ISO-8859-1"; } HeaderElement headerElement = BasicHeaderValueParser.parseHeaderElement(contentType, new BasicHeaderValueParser()); NameValuePair charset = headerElement.getParameterByName("charset"); return (char...
diff --git a/src/main/java/uk/co/revthefox/foxbot/Utils.java b/src/main/java/uk/co/revthefox/foxbot/Utils.java index d489bb2..a2f5c81 100644 --- a/src/main/java/uk/co/revthefox/foxbot/Utils.java +++ b/src/main/java/uk/co/revthefox/foxbot/Utils.java @@ -1,77 +1,77 @@ package uk.co.revthefox.foxbot; import com.ning.h...
true
true
public String parseChatUrl(String stringToParse, User sender, Channel channel) { String pattern = "^(https?|ftp|file)://[-a-zA-Z0-9+&@#/%?=~_|!:,.;]*[-a-zA-Z0-9+&@#/%=~_|]"; Pattern patt = Pattern.compile(pattern); Matcher matcher = patt.matcher(stringToParse); if (!matcher.matc...
public String parseChatUrl(String stringToParse, User sender, Channel channel) { String pattern = "^(https?)://[-a-zA-Z0-9+&@#/%?=~_|!:,.;]*[-a-zA-Z0-9+&@#/%=~_|]"; Pattern patt = Pattern.compile(pattern); Matcher matcher = patt.matcher(stringToParse); if (!matcher.matches()) ...
diff --git a/modules/DesktopImport/src/main/java/org/gephi/desktop/importer/ReportPanel.java b/modules/DesktopImport/src/main/java/org/gephi/desktop/importer/ReportPanel.java index f6f5654cf..289eb105b 100644 --- a/modules/DesktopImport/src/main/java/org/gephi/desktop/importer/ReportPanel.java +++ b/modules/DesktopImpo...
true
true
private void initComponents() { java.awt.GridBagConstraints gridBagConstraints; processorStrategyRadio = new javax.swing.ButtonGroup(); labelSrc = new javax.swing.JLabel(); sourceLabel = new javax.swing.JLabel(); tabbedPane = new javax.swing.JTabbedPane(); tab1Scroll...
private void initComponents() { java.awt.GridBagConstraints gridBagConstraints; processorStrategyRadio = new javax.swing.ButtonGroup(); labelSrc = new javax.swing.JLabel(); sourceLabel = new javax.swing.JLabel(); tabbedPane = new javax.swing.JTabbedPane(); tab1Scroll...
diff --git a/sql12/app/src/test/java/net/sourceforge/squirrel_sql/client/update/gui/installer/PreLaunchHelperImplIntegrationTest.java b/sql12/app/src/test/java/net/sourceforge/squirrel_sql/client/update/gui/installer/PreLaunchHelperImplIntegrationTest.java index b57ad9de1..41c27d0bf 100644 --- a/sql12/app/src/test/java...
false
true
private void checkScriptFile(boolean containsSplashIconArgument) throws IOException { List<String> linesFromScriptFile = ioutils.getLinesFromFile(TARGET_SCRIPT_FILE_TO_TEST, null); boolean foundMainClassLine = false; for (String line : linesFromScriptFile) { if (line.contains(SplashScreenFixer.CLIENT_MAIN_...
private void checkScriptFile(boolean containsSplashIconArgument) throws IOException { List<String> linesFromScriptFile = ioutils.getLinesFromFile(TARGET_SCRIPT_FILE_TO_TEST, null); boolean foundMainClassLine = false; for (String line : linesFromScriptFile) { if (line.contains(SplashScreenFixer.CLIENT_MAIN_...
diff --git a/src/uk/org/ponder/htmlutil/HTMLUtil.java b/src/uk/org/ponder/htmlutil/HTMLUtil.java index c7e5d4c..0f3f435 100644 --- a/src/uk/org/ponder/htmlutil/HTMLUtil.java +++ b/src/uk/org/ponder/htmlutil/HTMLUtil.java @@ -1,125 +1,125 @@ /* * Created on May 17, 2006 */ package uk.org.ponder.htmlutil; import...
false
true
public static String emitJavascriptCall(String name, String[] arguments, boolean quote) { CharWrap togo = new CharWrap(); togo.append(" ").append(name).append('('); for (int i = 0; i < arguments.length; ++i) { if (quote) togo.append('"'); togo.append(arguments[i]); if (i != arguments.le...
public static String emitJavascriptCall(String name, String[] arguments, boolean quote) { CharWrap togo = new CharWrap(); togo.append(" ").append(name).append('('); for (int i = 0; i < arguments.length; ++i) { if (quote) togo.append('"'); togo.append(arguments[i]); if (quote) togo.appen...
diff --git a/net/rymate/SimpleWarp/WarpCommand.java b/net/rymate/SimpleWarp/WarpCommand.java index e26dd43..1d5361c 100644 --- a/net/rymate/SimpleWarp/WarpCommand.java +++ b/net/rymate/SimpleWarp/WarpCommand.java @@ -1,80 +1,79 @@ /* * To change this template, choose Tools | Templates * and open the template in th...
true
true
public boolean onCommand(CommandSender sender, Command cmd, String commandLabel, String[] args) { Player player = (Player) sender; if ((plugin).permissionHandler.has(player, "warp.go")) { if (args.length < 1) { return false; } else if (!(sender instanceof Pla...
public boolean onCommand(CommandSender sender, Command cmd, String commandLabel, String[] args) { Player player = (Player) sender; if ((plugin).permissionHandler.has(player, "warp.go")) { if (args.length < 1) { return false; } else if (!(sender instanceof Pla...
diff --git a/core/src/main/java/org/mobicents/ha/javax/sip/LoadBalancerHeartBeatingServiceImpl.java b/core/src/main/java/org/mobicents/ha/javax/sip/LoadBalancerHeartBeatingServiceImpl.java index b101022..73915d2 100644 --- a/core/src/main/java/org/mobicents/ha/javax/sip/LoadBalancerHeartBeatingServiceImpl.java +++ b/co...
false
true
protected ArrayList<SIPNode> getConnectorsAsSIPNode() { ArrayList<SIPNode> info = new ArrayList<SIPNode>(); Integer sipTcpPort = null; Integer sipUdpPort = null; String address = null; String hostName = null; // Gathering info about server' sip listening points Iterator<ListeningPoint> listeningPointIter...
protected ArrayList<SIPNode> getConnectorsAsSIPNode() { ArrayList<SIPNode> info = new ArrayList<SIPNode>(); Integer sipTcpPort = null; Integer sipUdpPort = null; Integer sipWsPort = null; String address = null; String hostName = null; // Gathering info about server' sip listening points Iterator<Listen...
diff --git a/src/main/java/nz/org/nesi/goldwrap/impl/GoldWrapServiceImpl.java b/src/main/java/nz/org/nesi/goldwrap/impl/GoldWrapServiceImpl.java index 206f9f8..b67c727 100644 --- a/src/main/java/nz/org/nesi/goldwrap/impl/GoldWrapServiceImpl.java +++ b/src/main/java/nz/org/nesi/goldwrap/impl/GoldWrapServiceImpl.java @@ ...
true
true
public void createProject(Project proj) { String projName = proj.getProjectId(); proj.validate(true); if (GoldHelper.projectExists(projName)) { throw new ProjectFault(proj, "Can't create project " + projName, "Project name '" + projName + "' already exists in Gold."); } String principal = proj.ge...
public void createProject(Project proj) { String projName = proj.getProjectId(); proj.validate(true); if (GoldHelper.projectExists(projName)) { throw new ProjectFault(proj, "Can't create project " + projName, "Project name '" + projName + "' already exists in Gold."); } String principal = proj.ge...
diff --git a/src/com/android/exchange/adapter/CalendarSyncAdapter.java b/src/com/android/exchange/adapter/CalendarSyncAdapter.java index aa38e05..1d1059f 100644 --- a/src/com/android/exchange/adapter/CalendarSyncAdapter.java +++ b/src/com/android/exchange/adapter/CalendarSyncAdapter.java @@ -1,2169 +1,2172 @@ /* * C...
false
true
public boolean sendLocalChanges(Serializer s) throws IOException { ContentResolver cr = mService.mContentResolver; if (getSyncKey().equals("0")) { return false; } try { // We've got to handle exceptions as part of the parent when changes occur, so we need ...
public boolean sendLocalChanges(Serializer s) throws IOException { ContentResolver cr = mService.mContentResolver; if (getSyncKey().equals("0")) { return false; } try { // We've got to handle exceptions as part of the parent when changes occur, so we need ...
diff --git a/benchmark/tests/threads-single/threads_001.java b/benchmark/tests/threads-single/threads_001.java index 4216cfe2..bdfb03cc 100644 --- a/benchmark/tests/threads-single/threads_001.java +++ b/benchmark/tests/threads-single/threads_001.java @@ -1,14 +1,15 @@ public class threads_001 { public static void ma...
false
true
public static void main(String[] args) { double t0 = System.currentTimeMillis(); long acc = 0; int L = 10000000; int n = 2 * L; for (int i = 0; i <= n; ++i) acc += i; double t1 = System.currentTimeMillis(); System.out.println("Time elapsed single-thread version Java: " + (t1 - t0) / 1000); System.o...
public static void main(String[] args) { //double t0 = System.currentTimeMillis(); long acc = 0; int L = 10000000; int n = 2 * L; for (int i = 0; i <= n; ++i) acc += i; //double t1 = System.currentTimeMillis(); //System.out.println("Time elapsed single-thread version Java: " + (t1 - t0) / 1000); Sy...
diff --git a/src/com/jgaap/JGAAP.java b/src/com/jgaap/JGAAP.java index 4957fd9..6cf59e0 100644 --- a/src/com/jgaap/JGAAP.java +++ b/src/com/jgaap/JGAAP.java @@ -1,71 +1,75 @@ /* * JGAAP -- a graphical program for stylometric authorship attribution * Copyright (C) 2009,2011 by Patrick Juola * * This program is ...
true
true
public static void main(String[] args) { BasicConfigurator.configure(); logger.setLevel(Level.INFO); if (args.length == 0) { mainLogger.info("Starting GUI"); javax.swing.SwingUtilities.invokeLater(new Runnable() { public void run() { create...
public static void main(String[] args) { BasicConfigurator.configure(); logger.setLevel(Level.INFO); if (args.length == 0) { mainLogger.info("Starting GUI"); javax.swing.SwingUtilities.invokeLater(new Runnable() { public void run() { create...
diff --git a/component/content/src/main/java/org/exoplatform/management/content/operations/site/contents/SiteContentsExportResource.java b/component/content/src/main/java/org/exoplatform/management/content/operations/site/contents/SiteContentsExportResource.java index 3108c7f9..ae8a5e3d 100644 --- a/component/content/s...
false
true
public void execute(OperationContext operationContext, ResultHandler resultHandler) throws OperationException { try { metaData = new SiteMetaData(); String operationName = operationContext.getOperationName(); PathAddress address = operationContext.getAddress(); OperationAttributes attribut...
public void execute(OperationContext operationContext, ResultHandler resultHandler) throws OperationException { try { metaData = new SiteMetaData(); String operationName = operationContext.getOperationName(); PathAddress address = operationContext.getAddress(); OperationAttributes attribut...
diff --git a/asadmin-java/src/main/java/org/n0pe/asadmin/AsAdmin.java b/asadmin-java/src/main/java/org/n0pe/asadmin/AsAdmin.java index 8eb2cb2..bc7ab7f 100644 --- a/asadmin-java/src/main/java/org/n0pe/asadmin/AsAdmin.java +++ b/asadmin-java/src/main/java/org/n0pe/asadmin/AsAdmin.java @@ -1,278 +1,278 @@ /** * asadmi...
true
true
public void run(final IAsAdminCmd cmd) throws AsAdminException { try { final File gfBinPath = new File(config.getGlassfishHome() + File.separator + "bin"); final String[] cmds = buildProcessParams(cmd, config); cmds[0] = gfBinPath + File.separator + cmds[0]; ...
public void run(final IAsAdminCmd cmd) throws AsAdminException { try { final File gfBinPath = new File(config.getGlassfishHome() + File.separator + "bin"); final String[] cmds = buildProcessParams(cmd, config); cmds[0] = gfBinPath + File.separator + cmds[0]; ...
diff --git a/MODSRC/vazkii/tinkerer/common/item/kami/armor/ItemGemChest.java b/MODSRC/vazkii/tinkerer/common/item/kami/armor/ItemGemChest.java index 2f10f534..e5891ea2 100644 --- a/MODSRC/vazkii/tinkerer/common/item/kami/armor/ItemGemChest.java +++ b/MODSRC/vazkii/tinkerer/common/item/kami/armor/ItemGemChest.java @@ -1...
false
true
public void updatePlayerFlyStatus(LivingUpdateEvent event) { if(event.entityLiving instanceof EntityPlayer) { EntityPlayer player = (EntityPlayer) event.entityLiving; ItemStack armor = player.getCurrentArmor(3 - armorType); if(armor != null && armor.getItem() == this) tickPlayer(player); if(players...
public void updatePlayerFlyStatus(LivingUpdateEvent event) { if(event.entityLiving instanceof EntityPlayer) { EntityPlayer player = (EntityPlayer) event.entityLiving; ItemStack armor = player.getCurrentArmor(3 - armorType); if(armor != null && armor.getItem() == this) tickPlayer(player); if(players...
diff --git a/src/java/com/eviware/soapui/security/actions/SecurityTestOptionsAction.java b/src/java/com/eviware/soapui/security/actions/SecurityTestOptionsAction.java index da5388281..195e55d97 100644 --- a/src/java/com/eviware/soapui/security/actions/SecurityTestOptionsAction.java +++ b/src/java/com/eviware/soapui/sec...
true
true
public void perform( SecurityTest securityTest, Object param ) { if( dialog == null ) { XFormDialogBuilder builder = XFormFactory.createDialogBuilder( "SecurityTest Options" ); form = builder.createForm( "Basic" ); form.addCheckBox( FAIL_ON_ERROR, "Fail on error" ).addFormFieldListener( new XFormFieldLis...
public void perform( SecurityTest securityTest, Object param ) { if( dialog == null ) { XFormDialogBuilder builder = XFormFactory.createDialogBuilder( "SecurityTest Options" ); form = builder.createForm( "Basic" ); form.addCheckBox( FAIL_ON_ERROR, "Fail on error" ).addFormFieldListener( new XFormFieldLis...
diff --git a/zssapp/test/SS_117_Test.java b/zssapp/test/SS_117_Test.java index de7a31d..563c560 100644 --- a/zssapp/test/SS_117_Test.java +++ b/zssapp/test/SS_117_Test.java @@ -1,38 +1,36 @@ /* order_test_1Test.java Purpose: Description: History: Sep, 7, 2010 17:30:59 PM Copyright (C) 2010 Potix ...
true
true
protected void executeTest() { String f13value = getSpecifiedCell(5,12).text(); rightClickRowHeader(11); click(jq("$rowHeight a.z-menu-item-cnt")); waitResponse(); type(jq("$headerSize"), "40"); waitResponse(); click(jq("$okBtn td.z-button-cm")); waitResponse(); //verify, set height to 40, but expec...
protected void executeTest() { String f13value = getSpecifiedCell(5,12).text(); rightClickRowHeader(11); click(jq("$rowHeight a.z-menu-item-cnt")); waitResponse(); type(jq("$headerSize"), "40"); waitResponse(); click(jq("$okBtn td.z-button-cm")); waitResponse(); verifyTrue(getSpecifiedCell(5,11).hei...
diff --git a/src/main/java/info/gomeow/chester/Chester.java b/src/main/java/info/gomeow/chester/Chester.java index ffd1214..ad0be4d 100644 --- a/src/main/java/info/gomeow/chester/Chester.java +++ b/src/main/java/info/gomeow/chester/Chester.java @@ -1,199 +1,200 @@ package info.gomeow.chester; import info.gomeow.che...
false
true
public void onChat(final PlayerChatEvent event) { Player player = event.getPlayer(); final String message = event.getMessage(); ChesterLogEvent logEvent = new ChesterLogEvent(player, message); getServer().getPluginManager().callEvent(logEvent); if(player.hasPermission("cheste...
public void onChat(final PlayerChatEvent event) { Player player = event.getPlayer(); final String message = event.getMessage(); ChesterLogEvent cle = new ChesterLogEvent(player, message); getServer().getPluginManager().callEvent(cle); if(player.hasPermission("chester.log") &&...
diff --git a/public/java/src/org/broadinstitute/sting/gatk/walkers/indels/IndelRealigner.java b/public/java/src/org/broadinstitute/sting/gatk/walkers/indels/IndelRealigner.java index 60b1f8a88..ba031c497 100755 --- a/public/java/src/org/broadinstitute/sting/gatk/walkers/indels/IndelRealigner.java +++ b/public/java/src/...
true
true
private void clean(ReadBin readsToClean) { final List<GATKSAMRecord> reads = readsToClean.getReads(); if ( reads.size() == 0 ) return; byte[] reference = readsToClean.getReference(referenceReader); int leftmostIndex = readsToClean.getLocation().getStart(); fina...
private void clean(ReadBin readsToClean) { final List<GATKSAMRecord> reads = readsToClean.getReads(); if ( reads.size() == 0 ) return; byte[] reference = readsToClean.getReference(referenceReader); int leftmostIndex = readsToClean.getLocation().getStart(); fina...
diff --git a/javasvn/src/org/tmatesoft/svn/cli/SVN.java b/javasvn/src/org/tmatesoft/svn/cli/SVN.java index 8612f21ff..866555a72 100644 --- a/javasvn/src/org/tmatesoft/svn/cli/SVN.java +++ b/javasvn/src/org/tmatesoft/svn/cli/SVN.java @@ -1,77 +1,76 @@ /* * =============================================================...
true
true
public static void main(String[] args) { if (args == null || args.length < 1) { DebugLog.log("invliad arguments!"); System.err.println("usage: svn commandName commandArguments"); System.exit(0); } StringBuffer commandLineString = new StringBuffer(); ...
public static void main(String[] args) { if (args == null || args.length < 1) { DebugLog.log("invliad arguments!"); System.err.println("usage: svn commandName commandArguments"); System.exit(0); } StringBuffer commandLineString = new StringBuffer(); ...
diff --git a/plugins/org.eclipse.acceleo.ide.ui/src/org/eclipse/acceleo/internal/ide/ui/builders/AcceleoBuilder.java b/plugins/org.eclipse.acceleo.ide.ui/src/org/eclipse/acceleo/internal/ide/ui/builders/AcceleoBuilder.java index 1f4123ea..774ef50b 100644 --- a/plugins/org.eclipse.acceleo.ide.ui/src/org/eclipse/acceleo/...
true
true
private void validateAcceleoBuildFile(IProgressMonitor monitor) throws CoreException { IFile buildProperties = getProject().getFile("build.properties"); //$NON-NLS-1$ if (outputFolder != null && outputFolder.segmentCount() > 1) { IFile buildAcceleo = getProject().getFile("build.acceleo"); //$NON-NLS-1$ Accel...
private void validateAcceleoBuildFile(IProgressMonitor monitor) throws CoreException { IFile buildProperties = getProject().getFile("build.properties"); //$NON-NLS-1$ if (outputFolder != null && outputFolder.segmentCount() > 1) { IFile buildAcceleo = getProject().getFile("build.acceleo"); //$NON-NLS-1$ Accel...
diff --git a/commands/src/main/java/org/jclouds/karaf/commands/table/internal/ManagedShellTableFactory.java b/commands/src/main/java/org/jclouds/karaf/commands/table/internal/ManagedShellTableFactory.java index e8a8ad5..57b0804 100644 --- a/commands/src/main/java/org/jclouds/karaf/commands/table/internal/ManagedShellTa...
true
true
public void updated(Dictionary properties) throws ConfigurationException { Enumeration keys = properties.keys(); getProperties().clear(); while (keys.hasMoreElements()) { Object key = keys.nextElement(); Object value = properties.get(key); getProperties().put(key, value); } }
public void updated(Dictionary properties) throws ConfigurationException { if (properties != null) { Enumeration keys = properties.keys(); getProperties().clear(); while (keys.hasMoreElements()) { Object key = keys.nextElement(); Object value = properties.get(key); getPro...
diff --git a/Sourcecode/zisko/multicastor/program/controller/ViewController.java b/Sourcecode/zisko/multicastor/program/controller/ViewController.java index 9a89869..cd22751 100644 --- a/Sourcecode/zisko/multicastor/program/controller/ViewController.java +++ b/Sourcecode/zisko/multicastor/program/controller/ViewControl...
true
true
public void actionPerformed(ActionEvent e) { if(e.getSource()==f.getMi_saveconfig()){ //System.out.println("Saving!"); f.getFc_save().toggle(); } else if(e.getSource()==f.getMi_loadconfig()){ //System.out.println("Loading!"); f.getFc_load().toggle(); setColumnSettings(getUserInputData(getSelectedT...
public void actionPerformed(ActionEvent e) { if(e.getSource()==f.getMi_saveconfig()){ //System.out.println("Saving!"); f.getFc_save().toggle(); } else if(e.getSource()==f.getMi_loadconfig()){ //System.out.println("Loading!"); f.getFc_load().toggle(); setColumnSettings(getUserInputData(getSelectedT...
diff --git a/src/main/com/mongodb/DBCollection.java b/src/main/com/mongodb/DBCollection.java index c118bcc7f..b4f7c7e03 100644 --- a/src/main/com/mongodb/DBCollection.java +++ b/src/main/com/mongodb/DBCollection.java @@ -1,1004 +1,1004 @@ // DBCollection.java /** * Copyright (C) 2008 10gen Inc. * * Lic...
true
true
public DBObject findAndModify(DBObject query, DBObject fields, DBObject sort, boolean remove, DBObject update, boolean returnNew, boolean upsert) { if ( DEBUG ) System.out.println( "findAndModify: " + _fullName + " query:" + JSON.serialize( query ) + ...
public DBObject findAndModify(DBObject query, DBObject fields, DBObject sort, boolean remove, DBObject update, boolean returnNew, boolean upsert) { if ( DEBUG ) System.out.println( "findAndModify: " + _fullName + " query:" + JSON.serialize( query ) + ...
diff --git a/parser-java-api/src/main/java/org/jboss/forge/parser/java/Visibility.java b/parser-java-api/src/main/java/org/jboss/forge/parser/java/Visibility.java index 7850076d7..ca1aad3f6 100644 --- a/parser-java-api/src/main/java/org/jboss/forge/parser/java/Visibility.java +++ b/parser-java-api/src/main/java/org/jbo...
false
true
public static <T extends VisibilityScoped<?>> T set(T target, Visibility scope) { Assert.notNull(target, "VisibilityScoped<T> target must not be null."); Assert.notNull(scope, "Visibility scope must not be null"); if (PRIVATE.equals(scope)) target.setPrivate(); if (PACKAGE_PRIVAT...
public static <T extends VisibilityScoped<?>> T set(T target, Visibility scope) { Assert.notNull(target, "VisibilityScoped<T> target must not be null."); Assert.notNull(scope, "Visibility scope must not be null"); if (PRIVATE.equals(scope)) target.setPrivate(); else if (PACKAGE_P...
diff --git a/illaclient/src/illarion/client/IllaClient.java b/illaclient/src/illarion/client/IllaClient.java index d1f42b83..18b06048 100644 --- a/illaclient/src/illarion/client/IllaClient.java +++ b/illaclient/src/illarion/client/IllaClient.java @@ -1,589 +1,593 @@ /* * This file is part of the Illarion Client. *...
false
true
private void init() { try { EventServiceLocator.setEventService(EventServiceLocator.SERVICE_NAME_EVENT_BUS, new ThreadSafeEventService()); } catch (EventServiceExistsException e1) { LOGGER.error("Failed preparing the EventBus. Settings the Service handler happened too late");...
private void init() { try { EventServiceLocator.setEventService(EventServiceLocator.SERVICE_NAME_EVENT_BUS, null); EventServiceLocator.setEventService(EventServiceLocator.SERVICE_NAME_SWING_EVENT_SERVICE, null); EventServiceLocator.setEventService(EventServiceLocator.SERV...
diff --git a/src/main/java/gov/usgs/gdp/analysis/GridCellGeometry.java b/src/main/java/gov/usgs/gdp/analysis/GridCellGeometry.java index 114d6a76..bb073410 100644 --- a/src/main/java/gov/usgs/gdp/analysis/GridCellGeometry.java +++ b/src/main/java/gov/usgs/gdp/analysis/GridCellGeometry.java @@ -1,133 +1,133 @@ package ...
false
true
private Geometry[] buildGeometries() { GeometryFactory geometryFactory = JTSFactoryFinder.getGeometryFactory(null); CoordinateAxis1D xAxis = (CoordinateAxis1D) gridCoordSystem.getXHorizAxis(); CoordinateAxis1D yAxis = (CoordinateAxis1D) gridCoordSystem.getYHorizAxis(); double[] xC...
private Geometry[] buildGeometries() { GeometryFactory geometryFactory = JTSFactoryFinder.getGeometryFactory(null); CoordinateAxis1D xAxis = (CoordinateAxis1D) gridCoordSystem.getXHorizAxis(); CoordinateAxis1D yAxis = (CoordinateAxis1D) gridCoordSystem.getYHorizAxis(); double[] xC...
diff --git a/web/src/main/java/org/fao/geonet/services/metadata/Update.java b/web/src/main/java/org/fao/geonet/services/metadata/Update.java index 047a7a40ad..4dd35ead36 100644 --- a/web/src/main/java/org/fao/geonet/services/metadata/Update.java +++ b/web/src/main/java/org/fao/geonet/services/metadata/Update.java @@ -1...
false
true
public Element exec(Element params, ServiceContext context) throws Exception { AjaxEditUtils ajaxEditUtils = new AjaxEditUtils(context); ajaxEditUtils.preprocessUpdate(params, context); GeonetContext gc = (GeonetContext) context.getHandlerContext(Geonet.CONTEXT_NAME); DataManager dataMan = gc.g...
public Element exec(Element params, ServiceContext context) throws Exception { AjaxEditUtils ajaxEditUtils = new AjaxEditUtils(context); ajaxEditUtils.preprocessUpdate(params, context); GeonetContext gc = (GeonetContext) context.getHandlerContext(Geonet.CONTEXT_NAME); DataManager dataMan = gc.g...
diff --git a/galapagos/GalapagosFrame.java b/galapagos/GalapagosFrame.java index a6d6f4a..7df373c 100644 --- a/galapagos/GalapagosFrame.java +++ b/galapagos/GalapagosFrame.java @@ -1,402 +1,402 @@ package galapagos; import java.util.*; import java.util.List; import javax.swing.*; import javax.swing.event.*; ...
true
true
private void initializeControls() { //create top controls newBiotope = newButton ("New Biotope", "newBiotope"); newBiotope = new JButton("New Biotope"); newBiotope.setActionCommand("newBiotope"); newBiotope.addActionListener(new ActionListener () { public void ac...
private void initializeControls() { //create top controls newBiotope = newButton ("New Biotope", "newBiotope"); newBiotope = new JButton("New Biotope"); newBiotope.setActionCommand("newBiotope"); newBiotope.addActionListener(new ActionListener () { public void ac...
diff --git a/MobileLoggerServer/src/main/java/cs/wintoosa/service/SessionService.java b/MobileLoggerServer/src/main/java/cs/wintoosa/service/SessionService.java index 274b515..77a1471 100644 --- a/MobileLoggerServer/src/main/java/cs/wintoosa/service/SessionService.java +++ b/MobileLoggerServer/src/main/java/cs/wintoosa...
false
true
public DataHolder formatForJsp(SessionLog session) { DataHolder data = new DataHolder(session); if (session != null) { List<Acceleration> accLogs = pullFromDb(Acceleration.class, data); List<Compass> comLogs = pullFromDb(Compass.class, data); List<Key...
public DataHolder formatForJsp(SessionLog session) { DataHolder data = new DataHolder(session); if (session != null) { List<Acceleration> accLogs = pullFromDb(Acceleration.class, data); List<Compass> comLogs = pullFromDb(Compass.class, data); List<Key...
diff --git a/Search/zylabPatisClient/src/main/java/nl/maastro/eureca/aida/search/zylabpatisclient/API_Demo.java b/Search/zylabPatisClient/src/main/java/nl/maastro/eureca/aida/search/zylabpatisclient/API_Demo.java index ff3607c8..939f80c5 100644 --- a/Search/zylabPatisClient/src/main/java/nl/maastro/eureca/aida/search/z...
true
true
static public void main(String[] args) { try { // Read config file // InputStream s = new FileInputStream("/home/kasper2/git/aida.git/Search/zylabPatisClient/src/main/webapp/WEB-INF/zpsc-config.xml"); InputStream s = new FileInputStream("/home/administrator/aida.git/Search/zylabPatisClient/src/main/webapp/...
static public void main(String[] args) { try { // Read config file // InputStream s = new FileInputStream("/home/kasper2/git/aida.git/Search/zylabPatisClient/src/main/webapp/WEB-INF/zpsc-config.xml"); InputStream s = new FileInputStream("/home/administrator/aida.git/Search/zylabPatisClient/src/main/webapp/...
diff --git a/src/main/java/org/elasticsearch/action/support/replication/ShardReplicationOperationRequest.java b/src/main/java/org/elasticsearch/action/support/replication/ShardReplicationOperationRequest.java index 970063a1df8..c050acf5f14 100644 --- a/src/main/java/org/elasticsearch/action/support/replication/ShardRep...
true
true
public ShardReplicationOperationRequest(T request) { super(request); this.timeout = request.timeout(); this.index = request.index(); this.threadedOperation = request.threadedOperation; this.replicationType = request.replicationType(); this.consistencyLevel = request.c...
public ShardReplicationOperationRequest(T request) { super(request); this.timeout = request.timeout(); this.index = request.index(); this.threadedOperation = request.operationThreaded(); this.replicationType = request.replicationType(); this.consistencyLevel = request...
diff --git a/src/org/jacorb/orb/util/FixIOR.java b/src/org/jacorb/orb/util/FixIOR.java index 77a07b1b..667f452c 100644 --- a/src/org/jacorb/orb/util/FixIOR.java +++ b/src/org/jacorb/orb/util/FixIOR.java @@ -1,143 +1,145 @@ /* * JacORB - a free Java ORB * * Copyright (C) 1997-2002 Gerald Brose. * * ...
false
true
public static void main (String args[]) throws Exception { org.omg.CORBA.ORB orb; String iorString; String host; BufferedReader br; BufferedWriter bw; CDRInputStream is; CDROutputStream os; ParsedIOR pior; IOR ior; TaggedPro...
public static void main (String args[]) throws Exception { org.omg.CORBA.ORB orb; String iorString; String host; BufferedReader br; BufferedWriter bw; CDRInputStream is; CDROutputStream os; ParsedIOR pior; IOR ior; TaggedPro...
diff --git a/org.eclipse.jdt.debug/model/org/eclipse/jdt/internal/debug/core/logicalstructures/LogicalObjectStructureInterfaceType.java b/org.eclipse.jdt.debug/model/org/eclipse/jdt/internal/debug/core/logicalstructures/LogicalObjectStructureInterfaceType.java index e363c2369..114f6ddc7 100644 --- a/org.eclipse.jdt.deb...
true
true
public synchronized IValue getLogicalStructure(IValue value) throws CoreException { final IJavaThread thread = getThread(value); if (thread == null) { // can't do it throw new CoreException(new Status(IStatus.ERROR, JDIDebugPlugin.getUniqueIdentifier(), JDIDebugPlugin.INTERNAL_ERROR, LogicalStructuresMessage...
public synchronized IValue getLogicalStructure(IValue value) throws CoreException { final IJavaThread thread = getThread(value); if (thread == null) { // can't do it throw new CoreException(new Status(IStatus.ERROR, JDIDebugPlugin.getUniqueIdentifier(), JDIDebugPlugin.INTERNAL_ERROR, LogicalStructuresMessage...
diff --git a/src/test/java/com/versionone/om/tests/AttachmentTester.java b/src/test/java/com/versionone/om/tests/AttachmentTester.java index 7bf98af..47a50a1 100644 --- a/src/test/java/com/versionone/om/tests/AttachmentTester.java +++ b/src/test/java/com/versionone/om/tests/AttachmentTester.java @@ -1,226 +1,227 @@ /*...
false
true
public void testCreateFromFile() throws IOException, ApplicationUnavailableException { final String fileName = "logo.png"; final int fileSize = 3 * 1024; // 3k Project project = getInstance().get().projectByID(SCOPE_ZERO); Attachment attachment; InputStream input ...
public void testCreateFromFile() throws IOException, ApplicationUnavailableException { final String fileName = "logo.png"; final int fileSize = 3 * 1024; // 3k Project project = getInstance().get().projectByID(SCOPE_ZERO); Attachment attachment; InputStream input ...
diff --git a/src/me/libraryaddict/disguise/utilities/PacketsManager.java b/src/me/libraryaddict/disguise/utilities/PacketsManager.java index 13be7e8..7e89c99 100644 --- a/src/me/libraryaddict/disguise/utilities/PacketsManager.java +++ b/src/me/libraryaddict/disguise/utilities/PacketsManager.java @@ -1,1221 +1,1221 @@ ...
true
true
public static void init(LibsDisguises plugin) { libsDisguises = plugin; soundsListener = new PacketAdapter(libsDisguises, ConnectionSide.SERVER_SIDE, ListenerPriority.NORMAL, Packets.Server.NAMED_SOUND_EFFECT, Packets.Server.ENTITY_STATUS) { @Override public v...
public static void init(LibsDisguises plugin) { libsDisguises = plugin; soundsListener = new PacketAdapter(libsDisguises, ConnectionSide.SERVER_SIDE, ListenerPriority.NORMAL, Packets.Server.NAMED_SOUND_EFFECT, Packets.Server.ENTITY_STATUS) { @Override public v...
diff --git a/src/main/java/de/lemo/dms/processing/questions/QPerformanceHistogram.java b/src/main/java/de/lemo/dms/processing/questions/QPerformanceHistogram.java index 93cfc6b3..b37c3a99 100644 --- a/src/main/java/de/lemo/dms/processing/questions/QPerformanceHistogram.java +++ b/src/main/java/de/lemo/dms/processing/qu...
false
true
public ResultListLongObject compute( @FormParam(COURSE_IDS) List<Long> courses, @FormParam(USER_IDS) List<Long> users, @FormParam(QUIZ_IDS) List<Long> quizzes, @FormParam(RESOLUTION) int resolution, @FormParam(START_TIME) Long startTime, @FormParam(END_TIME) Long endTime) { ...
public ResultListLongObject compute( @FormParam(COURSE_IDS) List<Long> courses, @FormParam(USER_IDS) List<Long> users, @FormParam(QUIZ_IDS) List<Long> quizzes, @FormParam(RESOLUTION) int resolution, @FormParam(START_TIME) Long startTime, @FormParam(END_TIME) Long endTime) { ...
diff --git a/rms/org.eclipse.ptp.rm.lml.monitor.ui/src/org/eclipse/ptp/internal/rm/lml/monitor/ui/handlers/SuspendJobHandler.java b/rms/org.eclipse.ptp.rm.lml.monitor.ui/src/org/eclipse/ptp/internal/rm/lml/monitor/ui/handlers/SuspendJobHandler.java index fff04ba5a..5003fa960 100644 --- a/rms/org.eclipse.ptp.rm.lml.moni...
true
true
protected String getOperation() { return IJobControl.RESUME_OPERATION; }
protected String getOperation() { return IJobControl.SUSPEND_OPERATION; }
diff --git a/src/plugins/KeyUtils/KeyExplorerUtils.java b/src/plugins/KeyUtils/KeyExplorerUtils.java index 287e3cf..952b36c 100644 --- a/src/plugins/KeyUtils/KeyExplorerUtils.java +++ b/src/plugins/KeyUtils/KeyExplorerUtils.java @@ -1,498 +1,498 @@ /* This code is part of Freenet. It is distributed under the GNU Gener...
true
true
public static FetchResult splitGet(PluginRespirator pr, Metadata metadata) throws FetchException, MetadataParseException, KeyListenerConstructionException { if (!metadata.isSplitfile()) { throw new MetadataParseException("uri did not point to splitfile"); } final FetchWaiter fw = new FetchWaiter(); fi...
public static FetchResult splitGet(PluginRespirator pr, Metadata metadata) throws FetchException, MetadataParseException, KeyListenerConstructionException { if (!metadata.isSplitfile()) { throw new MetadataParseException("uri did not point to splitfile"); } final FetchWaiter fw = new FetchWaiter(); fi...
diff --git a/src/com/hexcore/cas/control/server/test/TestServerControl.java b/src/com/hexcore/cas/control/server/test/TestServerControl.java index 632d626..6bf29f9 100644 --- a/src/com/hexcore/cas/control/server/test/TestServerControl.java +++ b/src/com/hexcore/cas/control/server/test/TestServerControl.java @@ -1,715 +...
true
true
public void run() { try { accept(); } catch(IOException e) { e.printStackTrace(); } Message message = null; //Waiting for CONNECT message type. message = null; boolean displayed = false; while(true) { if(!displayed) { Log.debug(TAG, "Waiting for a con...
public void run() { try { accept(); } catch(IOException e) { e.printStackTrace(); } Message message = null; //Waiting for CONNECT message type. message = null; boolean displayed = false; while(true) { if(!displayed) { Log.debug(TAG, "Waiting for a con...
diff --git a/src/main/java/net/mcft/copy/betterstorage/item/cardboard/CardboardEnchantmentRecipe.java b/src/main/java/net/mcft/copy/betterstorage/item/cardboard/CardboardEnchantmentRecipe.java index ca353ff..5850b1b 100644 --- a/src/main/java/net/mcft/copy/betterstorage/item/cardboard/CardboardEnchantmentRecipe.java ++...
true
true
public StationCrafting checkMatch(ItemStack[] input) { // Quick check if input matches the recipe. boolean hasCardboardItems = false; int bookIndex = -1; ItemStack book = null; for (int i = 0; i < input.length; i++) { ItemStack stack = input[i]; if (stack == null) continue; if (stack.getIte...
public StationCrafting checkMatch(ItemStack[] input) { // Quick check if input matches the recipe. boolean hasCardboardItems = false; int bookIndex = -1; ItemStack book = null; for (int i = 0; i < input.length; i++) { ItemStack stack = input[i]; if (stack == null) continue; if (stack.getIte...
diff --git a/odcleanstore/core/src/main/java/cz/cuni/mff/odcleanstore/data/DebugGraphFileLoader.java b/odcleanstore/core/src/main/java/cz/cuni/mff/odcleanstore/data/DebugGraphFileLoader.java index 372ab828..9deb5360 100644 --- a/odcleanstore/core/src/main/java/cz/cuni/mff/odcleanstore/data/DebugGraphFileLoader.java +++...
true
true
private HashMap<String, String> loadImpl(NamedGraphSetImpl namedGraphSet, String discriminator) throws Exception { /** * Copy them into unique graphs */ UniqueGraphNameGenerator graphNameGen = new UniqueGraphNameGenerator(temporaryGraphURIPrefix + "/" + discriminator + "/debug/", connectionCredentials); ...
private HashMap<String, String> loadImpl(NamedGraphSetImpl namedGraphSet, String discriminator) throws Exception { /** * Copy them into unique graphs */ UniqueGraphNameGenerator graphNameGen = new UniqueGraphNameGenerator(temporaryGraphURIPrefix + discriminator + "/debug/", connectionCredentials); Hash...
diff --git a/src/com/timsu/astrid/activities/TaskList.java b/src/com/timsu/astrid/activities/TaskList.java index add1cf49d..4eb9138cf 100644 --- a/src/com/timsu/astrid/activities/TaskList.java +++ b/src/com/timsu/astrid/activities/TaskList.java @@ -1,417 +1,425 @@ package com.timsu.astrid.activities; import java.ut...
false
true
private void switchToActivity(ActivityCode activity, Bundle variables) { closeOptionsMenu(); // and flip to them switch(getCurrentSubActivity().getActivityCode()) { case TASK_LIST: viewFlipper.setInAnimation(mInAnimationForward); viewFlipper.setOutAnimation(mOutAnim...
private void switchToActivity(ActivityCode activity, Bundle variables) { closeOptionsMenu(); // and flip to them switch(getCurrentSubActivity().getActivityCode()) { case TASK_LIST: viewFlipper.setInAnimation(mInAnimationForward); viewFlipper.setOutAnimation(mOutAnim...
diff --git a/Dashboard/src/dashboard/util/Statistics.java b/Dashboard/src/dashboard/util/Statistics.java index 8c5ca39..800163b 100644 --- a/Dashboard/src/dashboard/util/Statistics.java +++ b/Dashboard/src/dashboard/util/Statistics.java @@ -1,381 +1,381 @@ package dashboard.util; import java.util.ArrayList; import...
true
true
public static long[][] getPeopleStatsCourse(int sections, Course course){ long[][] timeMatrix = new long[2][sections]; ArrayList<Long> times = new ArrayList<Long>(); long maxTime = 0; for(Student student : StudentRegistry.getUsers()){ if(student.getCourses().contains(course)){ long time = getTime(course...
public static long[][] getPeopleStatsCourse(int sections, Course course){ long[][] timeMatrix = new long[2][sections]; ArrayList<Long> times = new ArrayList<Long>(); long maxTime = 0; for(Student student : StudentRegistry.getUsers()){ if(student.getCourseList().contains(course)){ long time = getTime(cou...
diff --git a/src/net/rptools/maptool/model/SquareGrid.java b/src/net/rptools/maptool/model/SquareGrid.java index b5f96c9e..639f484a 100644 --- a/src/net/rptools/maptool/model/SquareGrid.java +++ b/src/net/rptools/maptool/model/SquareGrid.java @@ -1,247 +1,248 @@ package net.rptools.maptool.model; import java.awt.Co...
false
true
public void drawCoordinatesOverlay(Graphics2D g, ZoneRenderer renderer) { Object oldAA = SwingUtil.useAntiAliasing(g); Font font = g.getFont().deriveFont(20f).deriveFont(Font.BOLD); g.setFont(font); FontMetrics fm = g.getFontMetrics(); double cellSize = renderer.getScaledGridSize(); CellPoint topLef...
public void drawCoordinatesOverlay(Graphics2D g, ZoneRenderer renderer) { Object oldAA = SwingUtil.useAntiAliasing(g); Font oldFont = g.getFont(); g.setFont(g.getFont().deriveFont(20f).deriveFont(Font.BOLD)); FontMetrics fm = g.getFontMetrics(); double cellSize = renderer.getScaledGridSize(); CellPo...
diff --git a/packages/SystemUI/src/com/android/systemui/statusbar/halo/Halo.java b/packages/SystemUI/src/com/android/systemui/statusbar/halo/Halo.java index ea1a32df..009a6062 100644 --- a/packages/SystemUI/src/com/android/systemui/statusbar/halo/Halo.java +++ b/packages/SystemUI/src/com/android/systemui/statusbar/halo...
false
true
public boolean onTouchEvent(MotionEvent event) { mGestureDetector.onTouchEvent(event); final int action = event.getAction(); switch(action) { case MotionEvent.ACTION_DOWN: // Stop HALO from moving around, unschedule sleeping patterns if (mState !=...
public boolean onTouchEvent(MotionEvent event) { mGestureDetector.onTouchEvent(event); final int action = event.getAction(); switch(action) { case MotionEvent.ACTION_DOWN: // Stop HALO from moving around, unschedule sleeping patterns if (mState !=...
diff --git a/src/main/ed/util/MailUtil.java b/src/main/ed/util/MailUtil.java index 70ad18ed0..1331caedc 100644 --- a/src/main/ed/util/MailUtil.java +++ b/src/main/ed/util/MailUtil.java @@ -1,19 +1,19 @@ // MailUtil.java package ed.util; import java.util.*; import javax.mail.*; import javax.mail.internet.*; ...
true
true
public static Session createSession( final Properties props , final String user , final String pass ){ return Session.getDefaultInstance( props , new javax.mail.Authenticator() { protected PasswordAuthentication getPasswordAuthentication() { return new PasswordAuthentica...
public static Session createSession( final Properties props , final String user , final String pass ){ return Session.getInstance( props , new javax.mail.Authenticator() { protected PasswordAuthentication getPasswordAuthentication() { return new PasswordAuthentication( u...
diff --git a/src/main/java/org/cloudifysource/quality/iTests/test/cli/cloudify/cloud/ec2/dynamicstorage/AbstractDynamicStorageTest.java b/src/main/java/org/cloudifysource/quality/iTests/test/cli/cloudify/cloud/ec2/dynamicstorage/AbstractDynamicStorageTest.java index d7bb3df7..78782368 100644 --- a/src/main/java/org/clo...
false
true
public void scanForLeakedVolumes(final String name) throws TimeoutException { Set<Volume> volumesByName = storageHelper.getVolumesByName(name); for (Volume volumeByName : volumesByName) { if (volumeByName != null && !volumeByName.getStatus().equals(Status.DELETING)) { LogUtils...
public void scanForLeakedVolumes(final String name) throws TimeoutException { Set<Volume> volumesByName = storageHelper.getVolumesByName(name); for (Volume volumeByName : volumesByName) { if (volumeByName != null && !volumeByName.getStatus().equals(Status.DELETING)) { LogUtils...
diff --git a/cometd-javascript/common-test/src/main/java/org/cometd/javascript/jquery/JQueryTestProvider.java b/cometd-javascript/common-test/src/main/java/org/cometd/javascript/jquery/JQueryTestProvider.java index 5d6c1122c..df9702cc7 100644 --- a/cometd-javascript/common-test/src/main/java/org/cometd/javascript/jquer...
true
true
public void provideCometD(ThreadModel threadModel, String contextURL) throws Exception { // Order of the script evaluation is important, as they depend one from the other threadModel.evaluate(new URL(contextURL + "/env.js")); threadModel.evaluate("window_location", "window.location = '" ...
public void provideCometD(ThreadModel threadModel, String contextURL) throws Exception { // Order of the script evaluation is important, as they depend one from the other threadModel.evaluate(new URL(contextURL + "/env.js")); threadModel.evaluate("window_location", "window.location = '" ...
diff --git a/APS-Libraries/APSWebTools/src/main/java/se/natusoft/osgi/aps/tools/web/APSAdminWebLoginHandler.java b/APS-Libraries/APSWebTools/src/main/java/se/natusoft/osgi/aps/tools/web/APSAdminWebLoginHandler.java index 40cdc93e..234adfea 100644 --- a/APS-Libraries/APSWebTools/src/main/java/se/natusoft/osgi/aps/tools/...
true
true
public void setSessionIdFromRequestCookie(HttpServletRequest request) { String sessId = CookieTool.getCookie(request.getCookies(), "aps-adminweb-session-id"); if (sessId != null) { this.sessionId = sessId; } }
public void setSessionIdFromRequestCookie(HttpServletRequest request) { if (request.getCookies() != null) { String sessId = CookieTool.getCookie(request.getCookies(), "aps-adminweb-session-id"); if (sessId != null) { this.sessionId = sessId; } } ...
diff --git a/develop/src/org/eclipse/xtext/GenerateAllLanguages.java b/develop/src/org/eclipse/xtext/GenerateAllLanguages.java index 5121376a2..24f858f13 100644 --- a/develop/src/org/eclipse/xtext/GenerateAllLanguages.java +++ b/develop/src/org/eclipse/xtext/GenerateAllLanguages.java @@ -1,30 +1,30 @@ /***************...
true
true
public static void main(String[] args) { try { org.eclipse.xtext.GenerateAllTestGrammars.main("../org.eclipse.xtext.generator.tests/"); org.eclipse.xtext.ui.common.GenerateAllTestGrammarsWithUiConfig.main("../org.eclipse.xtext.ui.common.tests/"); org.eclipse.xtext.ui.integration.GenerateAllTestGrammars.main...
public static void main(String[] args) { try { org.eclipse.xtext.GenerateAllTestGrammars.main("../org.eclipse.xtext.generator.tests/"); org.eclipse.xtext.ui.common.GenerateAllTestGrammarsWithUiConfig.main("../org.eclipse.xtext.ui.common.tests/"); org.eclipse.xtext.ui.integration.GenerateAllTestGrammars.main...
diff --git a/core/src/main/java/org/icepush/SequenceTaggingServer.java b/core/src/main/java/org/icepush/SequenceTaggingServer.java index dab708b..ec02fce 100644 --- a/core/src/main/java/org/icepush/SequenceTaggingServer.java +++ b/core/src/main/java/org/icepush/SequenceTaggingServer.java @@ -1,117 +1,117 @@ /* * Cop...
false
true
public void respond(Response response) throws Exception { try { long previousSequenceNo; try { previousSequenceNo = request.getHeaderAsLong("ice.push.sequence"); if (previousSequenceNo >= sequenceNo.getLo...
public void respond(Response response) throws Exception { try { long previousSequenceNo; try { previousSequenceNo = request.getHeaderAsLong("ice.push.sequence"); if (previousSequenceNo >= sequenceNo.getLo...
diff --git a/src/org/fasttether/AirplaneModeSwitch.java b/src/org/fasttether/AirplaneModeSwitch.java index 84ac44c..087743d 100644 --- a/src/org/fasttether/AirplaneModeSwitch.java +++ b/src/org/fasttether/AirplaneModeSwitch.java @@ -1,66 +1,66 @@ package org.fasttether; import android.content.ContextWrapper; impor...
true
true
private void setMode(final boolean after) { final boolean before = getCurrentMode(); if (before == after) { Log.i(TAG, "airplaneMode alreay " + (before ? "enabled" : "diabled")); return; } Settings.System.putInt(contextWrapper.getContentResolver(), Settings.System.AIRPLANE_MODE_ON, after ? 1 :...
private void setMode(final boolean after) { final boolean before = getCurrentMode(); if (before == after) { Log.i(TAG, "airplaneMode alreay " + (before ? "enabled" : "disabled")); return; } Settings.System.putInt(contextWrapper.getContentResolver(), Settings.System.AIRPLANE_MODE_ON, after ? 1 ...
diff --git a/src/com/vividsolutions/jump/workbench/ui/renderer/ImageCachingRenderer.java b/src/com/vividsolutions/jump/workbench/ui/renderer/ImageCachingRenderer.java index b74afae1..4724cb07 100644 --- a/src/com/vividsolutions/jump/workbench/ui/renderer/ImageCachingRenderer.java +++ b/src/com/vividsolutions/jump/workb...
false
true
public Runnable createRunnable() { if (image != null) { return null; } //Rendering starts as soon as the #createRunnable request is made, //to get the animated clock icons going. [Jon Aquino] rendering = true; cancelled = false; return new Runnable() { public void run() { try { if (cancell...
public Runnable createRunnable() { if (image != null) { return null; } //Rendering starts as soon as the #createRunnable request is made, //to get the animated clock icons going. [Jon Aquino] //rendering = true; cancelled = false; return new Runnable() { public void run() { //Rendering start...
diff --git a/src/story/book/view/StoryFragmentListActivity.java b/src/story/book/view/StoryFragmentListActivity.java index 83f8334..6cbb691 100644 --- a/src/story/book/view/StoryFragmentListActivity.java +++ b/src/story/book/view/StoryFragmentListActivity.java @@ -1,328 +1,327 @@ /* CMPUT301F13T06-Adventure Club: A ch...
false
true
public boolean onCreateOptionsMenu(Menu menu) { // Inflate the menu items for use in the action bar MenuInflater inflater = getMenuInflater(); inflater.inflate(R.menu.search_bar, menu); inflater.inflate(R.menu.fragment_list_menu, menu); inflater.inflate(R.menu.standard_menu, menu); // Get the SearchView a...
public boolean onCreateOptionsMenu(Menu menu) { // Inflate the menu items for use in the action bar MenuInflater inflater = getMenuInflater(); inflater.inflate(R.menu.fragment_list_menu, menu); inflater.inflate(R.menu.standard_menu, menu); // Get the SearchView and set the searchable configuration SearchM...
diff --git a/cruisecontrol/main/src/net/sourceforge/cruisecontrol/builders/AntBuilder.java b/cruisecontrol/main/src/net/sourceforge/cruisecontrol/builders/AntBuilder.java index 270df899..5dd01739 100644 --- a/cruisecontrol/main/src/net/sourceforge/cruisecontrol/builders/AntBuilder.java +++ b/cruisecontrol/main/src/net/...
true
true
public Element build(Map buildProperties) throws CruiseControlException { AntScript script = new AntScript(); script.setBuildProperties(buildProperties); script.setProperties(properties); script.setUseLogger(useLogger); script.setUseScript(antScript != null); ...
public Element build(Map buildProperties) throws CruiseControlException { AntScript script = new AntScript(); script.setBuildProperties(buildProperties); script.setProperties(properties); script.setUseLogger(useLogger); script.setUseScript(antScript != null); ...
diff --git a/java/src/com/android/inputmethod/latin/LatinIME.java b/java/src/com/android/inputmethod/latin/LatinIME.java index 964dd99c..2c39eba5 100644 --- a/java/src/com/android/inputmethod/latin/LatinIME.java +++ b/java/src/com/android/inputmethod/latin/LatinIME.java @@ -1,2087 +1,2089 @@ /* * Copyright (C) 2008 ...
true
true
public void pickSuggestionManually(int index, CharSequence suggestion) { SuggestedWords suggestions = mCandidateView.getSuggestions(); mVoiceProxy.flushAndLogAllTextModificationCounters(index, suggestion, mSettingsValues.mWordSeparators); final boolean recorrecting = TextEnt...
public void pickSuggestionManually(int index, CharSequence suggestion) { SuggestedWords suggestions = mCandidateView.getSuggestions(); mVoiceProxy.flushAndLogAllTextModificationCounters(index, suggestion, mSettingsValues.mWordSeparators); final boolean recorrecting = TextEnt...
diff --git a/src/com/wolvencraft/prison/mines/cmd/EditCommand.java b/src/com/wolvencraft/prison/mines/cmd/EditCommand.java index 1b8ed54..d7b7dd2 100644 --- a/src/com/wolvencraft/prison/mines/cmd/EditCommand.java +++ b/src/com/wolvencraft/prison/mines/cmd/EditCommand.java @@ -1,316 +1,316 @@ package com.wolvencraft.pr...
true
true
public boolean run(String[] args) { if(args.length == 1 && !args[0].equalsIgnoreCase("none") && !args[0].equalsIgnoreCase("delete") && !args[0].equalsIgnoreCase("generator")) { getHelp(); return true; } Language language = PrisonMine.getLanguage(); Mine curMine = PrisonMine.getCurMine(); ...
public boolean run(String[] args) { if(args.length == 1 && !args[0].equalsIgnoreCase("none") && !args[0].equalsIgnoreCase("delete") && !args[0].equalsIgnoreCase("generator")) { getHelp(); return true; } Language language = PrisonMine.getLanguage(); Mine curMine = PrisonMine.getCurMine(); ...
diff --git a/plugins/org.teiid.designer.webservice/rest_war_resources/webapps/WEB-INF/classes/org/teiid/rest/services/TeiidRSProviderPost.java b/plugins/org.teiid.designer.webservice/rest_war_resources/webapps/WEB-INF/classes/org/teiid/rest/services/TeiidRSProviderPost.java index 2813f1912..ce95a4048 100644 --- a/plugi...
false
true
public InputStream execute( String procedureName, Map<String, String> parameterMap, String charSet, Properties properties) throws WebApplicationException { Connection conn = null; PreparedStatement statement = null; ResultSet set = null; Object result = null; Inp...
public InputStream execute( String procedureName, Map<String, String> parameterMap, String charSet, Properties properties) throws WebApplicationException { Connection conn = null; PreparedStatement statement = null; Object result = null; InputStream resultStream = nul...
diff --git a/src/main/java/RSLBench/Algorithms/BMS/RSLBenchCommunicationAdapter.java b/src/main/java/RSLBench/Algorithms/BMS/RSLBenchCommunicationAdapter.java index f8409f0..bdb7a36 100644 --- a/src/main/java/RSLBench/Algorithms/BMS/RSLBenchCommunicationAdapter.java +++ b/src/main/java/RSLBench/Algorithms/BMS/RSLBenchC...
true
true
public void send(double message, NodeID sender, NodeID recipient) { Logger.trace("Message from {} to {} : {}", new Object[]{sender, recipient, message}); if (Double.isNaN(message)) { Logger.warn("Factor {} tried to send {} to factor {}!", new Object[]{sender, message, recipient}); ...
public void send(double message, NodeID sender, NodeID recipient) { Logger.trace("Message from {} to {} : {}", new Object[]{sender, recipient, message}); if (Double.isNaN(message)) { Logger.warn("Factor {} tried to send {} to factor {}!", new Object[]{sender, message, recipient}); ...
diff --git a/src/edu/wpi/first/wpilibj/templates/debugging/DebugInfoGroup.java b/src/edu/wpi/first/wpilibj/templates/debugging/DebugInfoGroup.java index d2083e8..a298b6b 100644 --- a/src/edu/wpi/first/wpilibj/templates/debugging/DebugInfoGroup.java +++ b/src/edu/wpi/first/wpilibj/templates/debugging/DebugInfoGroup.java...
true
true
protected void debug() { for (int i = 0; i < infos.length; i++) { RobotDebugger.push(infos[i]); } }
protected void debug() { for (int i = 0; i < infos.length; i++) { RobotDebugger.pushInfo(infos[i]); } }
diff --git a/src/main/java/com/abudko/reseller/huuto/mvc/item/QueryItemController.java b/src/main/java/com/abudko/reseller/huuto/mvc/item/QueryItemController.java index 6cf619f..9e9964d 100644 --- a/src/main/java/com/abudko/reseller/huuto/mvc/item/QueryItemController.java +++ b/src/main/java/com/abudko/reseller/huuto/m...
false
true
public String extractItem(@RequestParam String url, Model model) { log.info(String.format("Handling item request with parameter %s", url)); ItemResponse response = queryItemService.extractItem(url); //setInfo(response, brand, size, newPrice); ItemOrder order = createItemOrderFor(re...
public String extractItem(@RequestParam String url, @RequestParam String brand, @RequestParam String size, @RequestParam String newPrice, Model model) { log.info(String.format("Handling item request with parameter %s", url)); ItemResponse response = queryItemService.extractItem(url); ...
diff --git a/svnkit/src/main/java/org/tmatesoft/svn/core/internal/wc2/ng/SvnNgCat.java b/svnkit/src/main/java/org/tmatesoft/svn/core/internal/wc2/ng/SvnNgCat.java index cddb00145..9cdf1e6d8 100644 --- a/svnkit/src/main/java/org/tmatesoft/svn/core/internal/wc2/ng/SvnNgCat.java +++ b/svnkit/src/main/java/org/tmatesoft/sv...
true
true
protected Long run(SVNWCContext context) throws SVNException { SVNNodeKind kind = context.readKind(getFirstTarget(), false); if (kind == SVNNodeKind.UNKNOWN || kind == SVNNodeKind.NONE) { SVNErrorMessage err = SVNErrorMessage.create(SVNErrorCode.UNVERSIONED_RESOURCE, "''{0}'' is...
protected Long run(SVNWCContext context) throws SVNException { SVNNodeKind kind = context.readKind(getFirstTarget(), false); if (kind == SVNNodeKind.UNKNOWN || kind == SVNNodeKind.NONE) { SVNErrorMessage err = SVNErrorMessage.create(SVNErrorCode.UNVERSIONED_RESOURCE, "''{0}'' is...
diff --git a/hazelcast/src/main/java/com/hazelcast/nio/ssl/BasicSSLContextFactory.java b/hazelcast/src/main/java/com/hazelcast/nio/ssl/BasicSSLContextFactory.java index f617b17b62..ba51ace49b 100644 --- a/hazelcast/src/main/java/com/hazelcast/nio/ssl/BasicSSLContextFactory.java +++ b/hazelcast/src/main/java/com/hazelca...
true
true
public void init(Properties properties) throws Exception { KeyStore ks = KeyStore.getInstance("JKS"); KeyStore ts = KeyStore.getInstance("JKS"); String keyStorePassword = getProperty(properties, "keyStorePassword"); String keyStore = getProperty(properties, "keyStore"); if (k...
public void init(Properties properties) throws Exception { KeyStore ks = KeyStore.getInstance("JKS"); KeyStore ts = KeyStore.getInstance("JKS"); String keyStorePassword = getProperty(properties, "keyStorePassword"); String keyStore = getProperty(properties, "keyStore"); if (k...