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/jreunion/src/main/java/org/reunionemu/jreunion/server/PacketFactory.java b/jreunion/src/main/java/org/reunionemu/jreunion/server/PacketFactory.java index 4f1caaa..3bd882c 100644 --- a/jreunion/src/main/java/org/reunionemu/jreunion/server/PacketFactory.java +++ b/jreunion/src/main/java/org/reunionemu/jreuni...
true
true
public static String createPacket(Type packetType, Object... args) { switch (packetType) { case FAIL: String message = ""; for(Object o: args){ message+=" "+o; } return "fail"+message; case INFO: String infomsg = ""; for(Object o: args){ infomsg+=" "+o; } return "info"+infomsg;...
public static String createPacket(Type packetType, Object... args) { switch (packetType) { case FAIL: String message = ""; for(Object o: args){ message+=" "+o; } return "fail"+message; case INFO: String infomsg = ""; for(Object o: args){ infomsg+=" "+o; } return "info"+infomsg;...
diff --git a/src/cytoscape/plugin/JarUtil.java b/src/cytoscape/plugin/JarUtil.java index 3ec141869..40d7444b9 100644 --- a/src/cytoscape/plugin/JarUtil.java +++ b/src/cytoscape/plugin/JarUtil.java @@ -1,144 +1,144 @@ package cytoscape.plugin; /* Copyright (c) 2010, The Cytoscape Consortium (www.cytoscape.org) ...
true
true
static String getPluginClass(String fileName, PluginInfo.FileType type) throws IOException { String pluginClassName = null; try { switch (type) { case JAR: JarFile jar = new JarFile(fileName); try { pluginClassName = getManifestAttribute(jar.getManifest()); } finally { if (jar != null) ...
static String getPluginClass(String fileName, PluginInfo.FileType type) throws IOException { String pluginClassName = null; try { switch (type) { case JAR: JarFile jar = new JarFile(fileName); try { pluginClassName = getManifestAttribute(jar.getManifest()); } finally { if (jar != null) ...
diff --git a/org.eclipse.mylyn.gerrit.core/src/org/eclipse/mylyn/internal/gerrit/core/GerritTaskDataHandler.java b/org.eclipse.mylyn.gerrit.core/src/org/eclipse/mylyn/internal/gerrit/core/GerritTaskDataHandler.java index 865c2cdb..647fc99d 100644 --- a/org.eclipse.mylyn.gerrit.core/src/org/eclipse/mylyn/internal/gerrit...
true
true
public void updateTaskData(TaskRepository repository, TaskData data, GerritChange review, boolean canPublish, String accountId) { GerritTaskSchema schema = GerritTaskSchema.getDefault(); ChangeDetail changeDetail = review.getChangeDetail(); Change change = changeDetail.getChange(); AccountInfo owner = chan...
public void updateTaskData(TaskRepository repository, TaskData data, GerritChange review, boolean canPublish, String accountId) { GerritTaskSchema schema = GerritTaskSchema.getDefault(); ChangeDetail changeDetail = review.getChangeDetail(); Change change = changeDetail.getChange(); AccountInfo owner = chan...
diff --git a/examples/photoalbum/source/ejb/src/main/java/org/richfaces/photoalbum/domain/Image.java b/examples/photoalbum/source/ejb/src/main/java/org/richfaces/photoalbum/domain/Image.java index 8d33e689..3fcf8435 100644 --- a/examples/photoalbum/source/ejb/src/main/java/org/richfaces/photoalbum/domain/Image.java +++...
true
true
public boolean equals(Object obj) { if (this == obj) { return true; } if (obj == null || getClass() != obj.getClass()) { return false; } final Image image = (Image) obj; return (id == null ? image.getId() == null : id.equals(image.getId())) && (path == null ? image.getPath() == null : path.equ...
public boolean equals(Object obj) { if (this == obj) { return true; } if (obj == null) { return false; } final Image image = (Image) obj; return (id == null ? image.getId() == null : id.equals(image.getId())) && (path == null ? image.getPath() == null : path.equals(image.getPath())); }
diff --git a/src/org/dynasoar/Bootstrap.java b/src/org/dynasoar/Bootstrap.java index 23e99f0..e6c0909 100644 --- a/src/org/dynasoar/Bootstrap.java +++ b/src/org/dynasoar/Bootstrap.java @@ -1,44 +1,44 @@ package org.dynasoar; import org.dynasoar.config.Configuration; import org.dynasoar.monitor.NodeMonitor; import...
true
true
public static void main(String args[]) { logger.info("Starting up DynaSOAr Server..."); // Set up a simple configuration that logs on the console. BasicConfigurator.configure(); // Check if configuration path is specified as a parameter if (args.length > 2) { String path = args[2]; // Read configura...
public static void main(String args[]) { logger.info("Starting up DynaSOAr Server..."); // Set up a simple configuration that logs on the console. BasicConfigurator.configure(); // Check if configuration path is specified as a parameter if (args.length > 0) { String path = args[0]; // Read configura...
diff --git a/atlas-web/src/main/java/uk/ac/ebi/gxa/plot/AssayProperties.java b/atlas-web/src/main/java/uk/ac/ebi/gxa/plot/AssayProperties.java index 17e082c3e..0a070d40d 100644 --- a/atlas-web/src/main/java/uk/ac/ebi/gxa/plot/AssayProperties.java +++ b/atlas-web/src/main/java/uk/ac/ebi/gxa/plot/AssayProperties.java @@ ...
false
true
protected AssayProperties load(NetCDFProxy proxy, Function<String, String> nameConverter) throws IOException { efs = Lists.newArrayList(); scs = Lists.newArrayList(); String[] factors = proxy.getFactors(); String[] sampleCharacteristics = proxy.getCharacteristics(); int[][] ...
protected AssayProperties load(NetCDFProxy proxy, Function<String, String> nameConverter) throws IOException { efs = Lists.newArrayList(); scs = Lists.newArrayList(); String[] factors = proxy.getFactors(); String[] sampleCharacteristics = proxy.getCharacteristics(); int[][] ...
diff --git a/src/main/java/info/somethingodd/OddItem/configuration/OddItemGroup.java b/src/main/java/info/somethingodd/OddItem/configuration/OddItemGroup.java index f31dd8f..49d3188 100644 --- a/src/main/java/info/somethingodd/OddItem/configuration/OddItemGroup.java +++ b/src/main/java/info/somethingodd/OddItem/configu...
true
true
public OddItemGroup(Map<String, Object> serialized) { data = ((ConfigurationSection) serialized.get("data")).getValues(false); items = (List<String>) serialized.get("items"); itemStacks = new ArrayList<ItemStack>(); aliases = new TreeSet<String>(OddItem.ALPHANUM_COMPARATOR); ...
public OddItemGroup(Map<String, Object> serialized) { data = ((ConfigurationSection) serialized.get("data")).getValues(false); items = (List<String>) serialized.get("items"); itemStacks = new ArrayList<ItemStack>(); aliases = new TreeSet<String>(OddItem.ALPHANUM_COMPARATOR); ...
diff --git a/karaf/tooling/features-maven-plugin/src/main/java/org/apache/felix/karaf/tooling/features/GenerateFeaturesXmlMojo.java b/karaf/tooling/features-maven-plugin/src/main/java/org/apache/felix/karaf/tooling/features/GenerateFeaturesXmlMojo.java index 85d4647ca..d8ce42da5 100644 --- a/karaf/tooling/features-mave...
true
true
private void readKernelBundles() throws ArtifactResolutionException, ArtifactNotFoundException, MojoExecutionException, ZipException, IOException, DependencyTreeBuilderException { final Collection<Artifact> kernelArtifacts; if (kernelVersion == null) { getLog().info("Step 1: Build...
private void readKernelBundles() throws ArtifactResolutionException, ArtifactNotFoundException, MojoExecutionException, ZipException, IOException, DependencyTreeBuilderException { final Collection<Artifact> kernelArtifacts; if (kernelVersion == null) { getLog().info("Step 1: Build...
diff --git a/src/main/java/com/cloudbees/servlet/PostgresqlServlet.java b/src/main/java/com/cloudbees/servlet/PostgresqlServlet.java index 317a2c9..43451f1 100644 --- a/src/main/java/com/cloudbees/servlet/PostgresqlServlet.java +++ b/src/main/java/com/cloudbees/servlet/PostgresqlServlet.java @@ -1,140 +1,140 @@ /* *...
false
true
protected void processRequest(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { response.setContentType("text/html;charset=UTF-8"); PrintWriter out = response.getWriter(); try { prefixHTML(out); /* ...
protected void processRequest(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { response.setContentType("text/html;charset=UTF-8"); PrintWriter out = response.getWriter(); try { prefixHTML(out); /* ...
diff --git a/WarpSuite/src/com/mrz/dyndns/server/warpsuite/commands/GoPlayersOwnWarp.java b/WarpSuite/src/com/mrz/dyndns/server/warpsuite/commands/GoPlayersOwnWarp.java index 3bdc89c..871cf3d 100644 --- a/WarpSuite/src/com/mrz/dyndns/server/warpsuite/commands/GoPlayersOwnWarp.java +++ b/WarpSuite/src/com/mrz/dyndns/ser...
true
true
public boolean warpPlayerExecute(final WarpSuitePlayer player, List<String> args, List<String> variables) { if(!Permissions.WARP.check(player) || !Permissions.HELP.check(player)) { return Util.invalidPermissions(player); } if(args.size() == 0) { player.sendMessage(NEGATIVE_PRIMARY + "Invalid usage!...
public boolean warpPlayerExecute(final WarpSuitePlayer player, List<String> args, List<String> variables) { if(!Permissions.WARP.check(player) && !Permissions.HELP.check(player)) { return Util.invalidPermissions(player); } if(args.size() == 0) { player.sendMessage(NEGATIVE_PRIMARY + "Invalid usage!...
diff --git a/java-api/src/main/java/com/dubture/getcomposer/core/entities/JsonValue.java b/java-api/src/main/java/com/dubture/getcomposer/core/entities/JsonValue.java index 0884a74..52d4453 100755 --- a/java-api/src/main/java/com/dubture/getcomposer/core/entities/JsonValue.java +++ b/java-api/src/main/java/com/dubture/...
false
true
public Object toJsonValue() { if (isArray()) { return getAsArray().prepareJson(new LinkedList<String>()); } else if(isObject()) { return getAsObject().prepareJson(new LinkedList<String>()); } else if(isNumber()) { return getAsNumber(); } else if(isBoolean()) { return getAsBoolean(); } else { r...
public Object toJsonValue() { if (isArray()) { if (getAsArray().size() == 0) { return null; } return getAsArray().prepareJson(new LinkedList<String>()); } else if (isObject()) { if (getAsObject().size() == 0) { return null; } return getAsObject().prepareJson(new LinkedList<String>()); }...
diff --git a/nexus/nexus-app/src/main/java/org/sonatype/nexus/templates/repository/maven/Maven2ProxyRepositoryTemplate.java b/nexus/nexus-app/src/main/java/org/sonatype/nexus/templates/repository/maven/Maven2ProxyRepositoryTemplate.java index a5697e4d3..67ab04b87 100644 --- a/nexus/nexus-app/src/main/java/org/sonatype/...
true
true
protected CoreConfiguration initCoreConfiguration() { CRepository repo = new DefaultCRepository(); repo.setId( "" ); repo.setName( "" ); repo.setProviderRole( Repository.class.getName() ); repo.setProviderHint( "maven2" ); repo.setRemoteStorage( new CRemoteStor...
protected CoreConfiguration initCoreConfiguration() { CRepository repo = new DefaultCRepository(); repo.setId( "" ); repo.setName( "" ); repo.setProviderRole( Repository.class.getName() ); repo.setProviderHint( "maven2" ); repo.setRemoteStorage( new CRemoteStor...
diff --git a/bpel-runtime/src/main/java/org/apache/ode/bpel/engine/migration/MigrationHandler.java b/bpel-runtime/src/main/java/org/apache/ode/bpel/engine/migration/MigrationHandler.java index 4c68467a2..fa1b86465 100644 --- a/bpel-runtime/src/main/java/org/apache/ode/bpel/engine/migration/MigrationHandler.java +++ b/b...
true
true
public boolean migrate(final Set<BpelProcess> registeredProcesses) { if (_contexts.dao.getDataSource() == null) { __log.debug("No datasource available, stopping migration. Probably running fully in-memory."); return false; } final int version; try { ...
public boolean migrate(final Set<BpelProcess> registeredProcesses) { if (_contexts.dao.getDataSource() == null) { __log.debug("No datasource available, stopping migration. Probably running fully in-memory."); return false; } final int version; try { ...
diff --git a/src/com/era7/bioinfo/annotation/gb/ExportGenBankFiles.java b/src/com/era7/bioinfo/annotation/gb/ExportGenBankFiles.java index 951f537..c728310 100644 --- a/src/com/era7/bioinfo/annotation/gb/ExportGenBankFiles.java +++ b/src/com/era7/bioinfo/annotation/gb/ExportGenBankFiles.java @@ -1,700 +1,700 @@ /* *...
true
true
public static void main(String[] args) { if (args.length != 4) { System.out.println("This program expects 4 parameters: \n" + "1. Gene annotation XML result filename \n" + "2. Contig external general info XML filename\n" + "3. FNA file...
public static void main(String[] args) { if (args.length != 4) { System.out.println("This program expects 4 parameters: \n" + "1. Gene annotation XML result filename \n" + "2. Contig external general info XML filename\n" + "3. FNA file...
diff --git a/src/org/newdawn/slick/state/StateBasedGame.java b/src/org/newdawn/slick/state/StateBasedGame.java index 75b6a28..9963630 100644 --- a/src/org/newdawn/slick/state/StateBasedGame.java +++ b/src/org/newdawn/slick/state/StateBasedGame.java @@ -1,444 +1,444 @@ package org.newdawn.slick.state; import java.ut...
true
true
public final void update(GameContainer container, int delta) throws SlickException { if (leaveTransition != null) { leaveTransition.update(this, container, delta); if (leaveTransition.isComplete()) { currentState.leave(container, this); currentState = nextState; nextState = null; leaveTransitio...
public final void update(GameContainer container, int delta) throws SlickException { if (leaveTransition != null) { leaveTransition.update(this, container, delta); if (leaveTransition.isComplete()) { currentState.leave(container, this); currentState = nextState; nextState = null; leaveTransitio...
diff --git a/common/src/main/java/org/apache/xmlrpc/serializer/CharSetXmlWriterFactory.java b/common/src/main/java/org/apache/xmlrpc/serializer/CharSetXmlWriterFactory.java index 0712512..d44b59e 100644 --- a/common/src/main/java/org/apache/xmlrpc/serializer/CharSetXmlWriterFactory.java +++ b/common/src/main/java/org/a...
true
true
protected XMLWriter newXMLWriter() { return new CharSetXMLWriter(); }
protected XMLWriter newXmlWriter() { return new CharSetXMLWriter(); }
diff --git a/Andriod/MerchantActivity/src/app/merchantLocalization/Customers.java b/Andriod/MerchantActivity/src/app/merchantLocalization/Customers.java index 528e5c4..486ba9c 100644 --- a/Andriod/MerchantActivity/src/app/merchantLocalization/Customers.java +++ b/Andriod/MerchantActivity/src/app/merchantLocalization/Cu...
true
true
protected void onPostExecute(final String results) { if (results!=null) { runOnUiThread(new Runnable() { @Override public void run() { // EditText et = (EditText)findViewById(R.id.databaseText); // et.setText("Database connection worked!: " + results); /** * Gets c...
protected void onPostExecute(final String results) { if (results!=null) { runOnUiThread(new Runnable() { @Override public void run() { // EditText et = (EditText)findViewById(R.id.databaseText); // et.setText("Database connection worked!: " + results); /** * Gets c...
diff --git a/src/net/sf/gogui/gui/GtpShell.java b/src/net/sf/gogui/gui/GtpShell.java index 18d6a587..ab49cf77 100644 --- a/src/net/sf/gogui/gui/GtpShell.java +++ b/src/net/sf/gogui/gui/GtpShell.java @@ -1,673 +1,676 @@ //---------------------------------------------------------------------------- // $Id$ //---------...
true
true
private JComponent createCommandInput() { Box box = Box.createVerticalBox(); //JPanel panel = new JPanel(new FlowLayout(FlowLayout.LEFT, 0, 0)); JPanel panel = new JPanel(new BorderLayout()); box.add(GuiUtil.createSmallFiller()); box.add(Box.createVerticalGlue()); ...
private JComponent createCommandInput() { Box box = Box.createVerticalBox(); //JPanel panel = new JPanel(new FlowLayout(FlowLayout.LEFT, 0, 0)); JPanel panel = new JPanel(new BorderLayout()); box.add(GuiUtil.createSmallFiller()); box.add(Box.createVerticalGlue()); ...
diff --git a/signserver/src/java/org/signserver/ejb/WorkerSessionBean.java b/signserver/src/java/org/signserver/ejb/WorkerSessionBean.java index 603a29085..24b8b7b8a 100644 --- a/signserver/src/java/org/signserver/ejb/WorkerSessionBean.java +++ b/signserver/src/java/org/signserver/ejb/WorkerSessionBean.java @@ -1,1026 ...
true
true
private void checkCertificateValidity(final int workerId, final WorkerConfig awc, final Map<String, String> logMap) throws CryptoTokenOfflineException { boolean checkcertvalidity = awc.getProperties().getProperty( SignServerConstants.CHECKCERTVALIDITY, "TRUE").equalsI...
private void checkCertificateValidity(final int workerId, final WorkerConfig awc, final Map<String, String> logMap) throws CryptoTokenOfflineException { boolean checkcertvalidity = awc.getProperties().getProperty( SignServerConstants.CHECKCERTVALIDITY, "TRUE").equalsI...
diff --git a/RocksInterpreter.java b/RocksInterpreter.java index c646dbe..2774a69 100644 --- a/RocksInterpreter.java +++ b/RocksInterpreter.java @@ -1,2021 +1,2023 @@ /* javascript4P5 is a port of javascript4me for Processing, by Davide Della Casa javascript4me is made by Wang Lei ( rockswang@gmail.com ) and is rele...
false
true
protected Rv callNative(boolean isNew, Rv function, Rv callObj) { Rv idEnt; if ((idEnt = htNativeIndex.getEntry(0, function.str)) == null) return Rv._undefined; Rv args = callObj.get("arguments"); Rv thiz = callObj.get("this"); Rhash prop = thiz.prop; int argLen = arg...
protected Rv callNative(boolean isNew, Rv function, Rv callObj) { Rv idEnt; if ((idEnt = htNativeIndex.getEntry(0, function.str)) == null) return Rv._undefined; Rv args = callObj.get("arguments"); Rv thiz = callObj.get("this"); Rhash prop = thiz.prop; int argLen = arg...
diff --git a/server-integ/src/test/java/org/apache/directory/server/replication/ClientServerReplicationIT.java b/server-integ/src/test/java/org/apache/directory/server/replication/ClientServerReplicationIT.java index c42939050f..88f8fcce73 100644 --- a/server-integ/src/test/java/org/apache/directory/server/replication/...
true
true
private static void startConsumer() throws Exception { Method createProviderMethod = ClientServerReplicationIT.class.getDeclaredMethod( "startConsumer" ); CreateDS dsAnnotation = createProviderMethod.getAnnotation( CreateDS.class ); DirectoryService provDirService = DSAnnotationProcessor...
private static void startConsumer() throws Exception { Method createProviderMethod = ClientServerReplicationIT.class.getDeclaredMethod( "startConsumer" ); CreateDS dsAnnotation = createProviderMethod.getAnnotation( CreateDS.class ); DirectoryService provDirService = DSAnnotationProcessor...
diff --git a/jsf/plugins/org.jboss.tools.jsf/src/org/jboss/tools/jsf/jsf2/model/JSF2ComponentModelManager.java b/jsf/plugins/org.jboss.tools.jsf/src/org/jboss/tools/jsf/jsf2/model/JSF2ComponentModelManager.java index 249a738c4..184f53d60 100644 --- a/jsf/plugins/org.jboss.tools.jsf/src/org/jboss/tools/jsf/jsf2/model/JS...
true
true
public IFile updateJSF2CompositeComponentFile( final IFile componentFileContatiner, final String[] attrNames) { IFile file = updateFileContent(new EditableDOMFile() { @Override public IFile getFile() { return componentFileContatiner; } @Override protected void edit(IDOMModel model) throws Cor...
public IFile updateJSF2CompositeComponentFile( final IFile componentFileContatiner, final String[] attrNames) { IFile file = updateFileContent(new EditableDOMFile() { @Override public IFile getFile() { return componentFileContatiner; } @Override protected void edit(IDOMModel model) throws Cor...
diff --git a/test/org/jivesoftware/smack/PacketReaderTest.java b/test/org/jivesoftware/smack/PacketReaderTest.java index cd3642cb..77fb14f1 100644 --- a/test/org/jivesoftware/smack/PacketReaderTest.java +++ b/test/org/jivesoftware/smack/PacketReaderTest.java @@ -1,102 +1,102 @@ /** * $RCSfile$ * $Revision$ * $Date$...
true
true
public void testIQNotImplemented() { // Create a new type of IQ to send. The new IQ will include a // non-existant namespace to cause the "feature-not-implemented" answer IQ iqPacket = new IQ() { public String getChildElementXML() { return "<query xmlns=\...
public void testIQNotImplemented() { // Create a new type of IQ to send. The new IQ will include a // non-existant namespace to cause the "feature-not-implemented" answer IQ iqPacket = new IQ() { public String getChildElementXML() { return "<query xmlns=\...
diff --git a/org.dsanderson.xctrailreport.core/src/org/dsanderson/xctrailreport/core/DateComparator.java b/org.dsanderson.xctrailreport.core/src/org/dsanderson/xctrailreport/core/DateComparator.java index b44e50b..922680c 100644 --- a/org.dsanderson.xctrailreport.core/src/org/dsanderson/xctrailreport/core/DateComparato...
true
true
public int compare(TrailReport o1, TrailReport o2) { return o1.getDate().compareTo(o2.getDate()); }
public int compare(TrailReport o1, TrailReport o2) { // reverse sorting no that newer reports appear first return 0 - o1.getDate().compareTo(o2.getDate()); }
diff --git a/GAE_shuttleatwork/test/AllTests.java b/GAE_shuttleatwork/test/AllTests.java index 386f895..2dd382d 100644 --- a/GAE_shuttleatwork/test/AllTests.java +++ b/GAE_shuttleatwork/test/AllTests.java @@ -1,24 +1,26 @@ import junit.framework.Test; import junit.framework.TestSuite; public class AllTests extends...
true
true
public static Test suite() throws Exception { TestSuite suite = new TestSuite(AllTests.class.getName()); //$JUnit-BEGIN$ suite.addTestSuite(shuttleatwork.actions.ActionsTest.class); suite.addTestSuite(shuttleatwork.system.JSonTest.class); suite.addTestSuite(shuttleatwork.server.ScriptSer...
public static Test suite() throws Exception { TestSuite suite = new TestSuite(AllTests.class.getName()); //$JUnit-BEGIN$ suite.addTestSuite(shuttleatwork.actions.ActionsTest.class); suite.addTestSuite(shuttleatwork.system.JSonTest.class); suite.addTestSuite(shuttleatwork.server.ScriptSer...
diff --git a/Servidor/src/servidor/Main.java b/Servidor/src/servidor/Main.java index ed06f07..e06ec6f 100644 --- a/Servidor/src/servidor/Main.java +++ b/Servidor/src/servidor/Main.java @@ -1,103 +1,103 @@ /* * To change this template, choose Tools | Templates * and open the template in the editor. */ package se...
true
true
public void run() { try { // Aqui ira el codigo con un switch/case para ejecutar una accion. // accion de guardar, leer, escribir, dependiendo del mensaje // que se reciva. // Recibimos un mensaje enviado por la red. Objec...
public void run() { try { // Aqui ira el codigo con un switch/case para ejecutar una accion. // accion de guardar, leer, escribir, dependiendo del mensaje // que se reciba. // Recibimos un mensaje enviado por la red. Objec...
diff --git a/xwiki-commons-tools/xwiki-commons-tool-xar/xwiki-commons-tool-xar-plugin/src/main/java/org/xwiki/tool/xar/VerifyMojo.java b/xwiki-commons-tools/xwiki-commons-tool-xar/xwiki-commons-tool-xar-plugin/src/main/java/org/xwiki/tool/xar/VerifyMojo.java index 1412202ce..cc95d9149 100644 --- a/xwiki-commons-tools/x...
false
true
public void execute() throws MojoExecutionException, MojoFailureException { if (this.skip) { return; } // Only format XAR modules or when forced if (!getProject().getPackaging().equals("xar") && !this.force) { getLog().info("Not a XAR module, skipping val...
public void execute() throws MojoExecutionException, MojoFailureException { if (this.skip) { return; } // Only format XAR modules or when forced if (!getProject().getPackaging().equals("xar") && !this.force) { getLog().info("Not a XAR module, skipping val...
diff --git a/src/amrcci/SpawnTeleport.java b/src/amrcci/SpawnTeleport.java index fd04328..a29d285 100644 --- a/src/amrcci/SpawnTeleport.java +++ b/src/amrcci/SpawnTeleport.java @@ -1,58 +1,58 @@ package amrcci; import java.io.File; import java.io.IOException; import java.util.ArrayList; import java.util.List; ...
true
true
public void onPlayerLoginAfterTeleport(AuthMeTeleportEvent e) { final Player player = e.getPlayer(); if (worlds.contains(player.getWorld().getName()) && !player.hasPermission("amrcci.ignoretp")) { final Location spawn = AuthMe.getInstance().essentialsSpawn; if (spawn != null) { Bukkit.getScheduler(...
public void onPlayerLoginAfterTeleport(AuthMeTeleportEvent e) { final Player player = e.getPlayer(); if (worlds.contains(e.getTo().getWorld().getName()) && !player.hasPermission("amrcci.ignoretp")) { final Location spawn = AuthMe.getInstance().essentialsSpawn; if (spawn != null) { Bukkit.getSchedul...
diff --git a/motech-server-omod/src/test/java/org/motechproject/server/omod/tasks/MessageProgramUpdateTaskTest.java b/motech-server-omod/src/test/java/org/motechproject/server/omod/tasks/MessageProgramUpdateTaskTest.java index 77957b00..2e2431fe 100644 --- a/motech-server-omod/src/test/java/org/motechproject/server/omo...
true
true
public void testMessageProgramUpdate() throws InterruptedException { MessageProgramUpdateTask task = new MessageProgramUpdateTask(); TaskDefinition definition = new TaskDefinition(); definition.setProperty(MotechConstants.TASK_PROPERTY_BATCH_SIZE, "10"); task.initialize(definition); Integer patientId = nul...
public void testMessageProgramUpdate() throws InterruptedException { MessageProgramUpdateTask task = new MessageProgramUpdateTask(); TaskDefinition definition = new TaskDefinition(); definition.setProperty(MotechConstants.TASK_PROPERTY_BATCH_SIZE, "10"); task.initialize(definition); Integer patientId = nul...
diff --git a/org.emftext.sdk/src/org/emftext/sdk/codegen/composites/StringComposite.java b/org.emftext.sdk/src/org/emftext/sdk/codegen/composites/StringComposite.java index a3e1836bc..2785841a9 100644 --- a/org.emftext.sdk/src/org/emftext/sdk/codegen/composites/StringComposite.java +++ b/org.emftext.sdk/src/org/emftext...
true
true
private void enableComponents() { List<ComponentNode> disabledComponents = new ArrayList<ComponentNode>(); // TODO mseifert: this tree should be created when the components are added and replace // the field 'components'. // find the scoping depth for the disabled components Tree subTree = new Tree(null)...
private void enableComponents() { List<ComponentNode> disabledComponents = new ArrayList<ComponentNode>(); // TODO MINOR, PERFORMANCE: this tree should be created when the components are added and replace // the field 'components'. // find the scoping depth for the disabled components Tree subTree = new ...
diff --git a/src/org/geworkbench/engine/ccm/DependencyManager.java b/src/org/geworkbench/engine/ccm/DependencyManager.java index 36bf0887..5cff5e73 100644 --- a/src/org/geworkbench/engine/ccm/DependencyManager.java +++ b/src/org/geworkbench/engine/ccm/DependencyManager.java @@ -1,232 +1,233 @@ /** * */ package o...
true
true
DependencyManager(final CCMTableModel ccmTableModel, final List<String> required, final int selectedRow, final List<String> related) { changeFlag = ChangeFlag.LOAD; this.ccmTableModel = ccmTableModel; this.required = required; this.selectedRow = selectedRow; String pluginName = "Plugin is missing a N...
DependencyManager(final CCMTableModel ccmTableModel, final List<String> required, final int selectedRow, final List<String> related) { changeFlag = ChangeFlag.LOAD; this.ccmTableModel = ccmTableModel; this.required = required; this.selectedRow = selectedRow; String pluginName = "Plugin is missing a N...
diff --git a/org.dadacoalition.yedit/src/org/dadacoalition/yedit/editor/DocumentStartAndEndRule.java b/org.dadacoalition.yedit/src/org/dadacoalition/yedit/editor/DocumentStartAndEndRule.java index afa933c..f049d8b 100644 --- a/org.dadacoalition.yedit/src/org/dadacoalition/yedit/editor/DocumentStartAndEndRule.java +++ b...
false
true
public IToken evaluate(ICharacterScanner scanner) { char c = (char) scanner.read(); int count = 1; String chars = ""; while( c != ICharacterScanner.EOF && count < 3 ){ chars += c; c = (char) scanner.read(); count++; ...
public IToken evaluate(ICharacterScanner scanner) { char c = (char) scanner.read(); int count = 1; String chars = "" + c; while( c != ICharacterScanner.EOF && count < 3 ){ c = (char) scanner.read(); chars += c; count++; ...
diff --git a/model/org/eclipse/cdt/internal/core/model/CContainerInfo.java b/model/org/eclipse/cdt/internal/core/model/CContainerInfo.java index c2dba7599..6f28c8d22 100644 --- a/model/org/eclipse/cdt/internal/core/model/CContainerInfo.java +++ b/model/org/eclipse/cdt/internal/core/model/CContainerInfo.java @@ -1,141 +...
false
true
public Object[] getNonCResources(IResource res) { if (nonCResources != null) return nonCResources; ArrayList notChildren = new ArrayList(); ICElement celement = getElement(); ICProject cproject = celement.getCProject(); // move back to the sourceroot. while (! (celement instanceof ISourceRoot) && celem...
public Object[] getNonCResources(IResource res) { if (nonCResources != null) return nonCResources; ArrayList notChildren = new ArrayList(); ICElement celement = getElement(); ICProject cproject = celement.getCProject(); // move back to the sourceroot. while (! (celement instanceof ISourceRoot) && celem...
diff --git a/DW_Coord_0_0.java b/DW_Coord_0_0.java index 0b1bbf2..d33f8f3 100644 --- a/DW_Coord_0_0.java +++ b/DW_Coord_0_0.java @@ -1,393 +1,388 @@ /* * Copyright Author * (USE & RESTRICTIONS - Please read COPYRIGHT file) * Version : XX.XX * Date : 4/20/11 1:09 PM */ // Default Package package DWLProje...
false
true
public void deltint(){ if (phaseIs(HALTING)) { passivateIn(PASSIVE); this.setBackgroundColor(Color.GRAY); } else if (phaseIs(QUEUEING)) { double timeLeftForRegistration = currentExtCatFile.getTimeToRegister(); if (timeLeftForRegistration > 0D) { holdIn(RECEIVING_EXT_CAT, timeLeftF...
public void deltint(){ if (phaseIs(HALTING)) { passivateIn(PASSIVE); this.setBackgroundColor(Color.GRAY); } else if (phaseIs(QUEUEING)) { double timeLeftForRegistration = currentExtCatFile.getTimeToRegister(); if (timeLeftForRegistration > 0D) { holdIn(RECEIVING_EXT_CAT, timeLeftF...
diff --git a/src/ArgCheck.java b/src/ArgCheck.java index c05a8b4..aad46d8 100644 --- a/src/ArgCheck.java +++ b/src/ArgCheck.java @@ -1,40 +1,40 @@ import java.util.ArrayList; public class ArgCheck { public static void check(String[] argss){ ArrayList<String> args = new ArrayList<String>(); for(String s...
false
true
public static void check(String[] argss){ ArrayList<String> args = new ArrayList<String>(); for(String s : argss) args.add(s); if(args.contains("randommu")){ Constants._murand = true; if(args.indexOf("randommu") < args.size() - 2){ Constants.randMuStart = Double.parseDouble(args.get(1)); Constan...
public static void check(String[] argss){ ArrayList<String> args = new ArrayList<String>(); for(String s : argss) args.add(s); if(args.contains("randommu")){ Constants._murand = true; if(args.indexOf("randommu") < args.size() - 2){ Constants.randMuStart = Double.parseDouble(args.get(1)); Constan...
diff --git a/src/DocumentChecker.java b/src/DocumentChecker.java index eebd179..629582b 100644 --- a/src/DocumentChecker.java +++ b/src/DocumentChecker.java @@ -1,60 +1,61 @@ import java.util.ArrayList; import akka.actor.ActorRef; import akka.actor.UntypedActor; /** * The first step of the security system where...
true
true
public void onReceive( final Object msg ) throws Exception { if ( msg instanceof Passenger ) { System.out.println("Document Check: Passenger " + ((Passenger) msg).getName() + " arrives"); // If msg is a Passenger, perform the document check. if ( ( Math.random()*...
public void onReceive( final Object msg ) throws Exception { if ( msg instanceof Passenger ) { System.out.println("Document Check: Passenger " + ((Passenger) msg).getName() + " arrives"); // If msg is a Passenger, perform the document check. if ( ( Math.random()*...
diff --git a/examples/showcase/src/main/java/org/springside/examples/showcase/demos/cache/guava/GuavaCacheDemo.java b/examples/showcase/src/main/java/org/springside/examples/showcase/demos/cache/guava/GuavaCacheDemo.java index 0d5d5ada..3213d011 100644 --- a/examples/showcase/src/main/java/org/springside/examples/showc...
true
true
public void demo() throws Exception { // 设置缓存最大个数为100,缓存过期时间为5秒 LoadingCache<Long, User> cache = CacheBuilder.newBuilder().maximumSize(100) .expireAfterAccess(5, TimeUnit.SECONDS).build(new CacheLoader<Long, User>() { @Override public User load(Long key) throws Exception { logger.info("fetch fr...
public void demo() throws Exception { // 设置缓存最大个数为100,缓存过期时间为5秒 LoadingCache<Long, User> cache = CacheBuilder.newBuilder().maximumSize(100) .expireAfterAccess(5, TimeUnit.SECONDS).build(new CacheLoader<Long, User>() { @Override public User load(Long key) throws Exception { logger.info("fetch fr...
diff --git a/jaxrs/server-negotiation/src/main/java/org/javaee7/jaxrs/server/negotiation/MyResource.java b/jaxrs/server-negotiation/src/main/java/org/javaee7/jaxrs/server/negotiation/MyResource.java index 3653b678..91707e26 100644 --- a/jaxrs/server-negotiation/src/main/java/org/javaee7/jaxrs/server/negotiation/MyResou...
true
true
public Person[] getList() { Person[] list = new Person[3]; list[0] = new Person("Penny", 1); list[1] = new Person("Howard", 2); list[2] = new Person("Sheldon", 3); return list; }
public Person[] getList() { Person[] list = new Person[3]; list[0] = new Person("Penny", 1); list[1] = new Person("Leonard", 2); list[2] = new Person("Sheldon", 3); return list; }
diff --git a/src/org/thedoug/farkle/Farkle.java b/src/org/thedoug/farkle/Farkle.java index f816e6d..ca7037b 100644 --- a/src/org/thedoug/farkle/Farkle.java +++ b/src/org/thedoug/farkle/Farkle.java @@ -1,43 +1,43 @@ package org.thedoug.farkle; import org.thedoug.farkle.model.GameResult; import org.thedoug.farkle....
false
true
public static void main(String[] args) { RandomRollStrategy rollStrategy = new RandomRollStrategy(); LukeRulesScorer scorer = new LukeRulesScorer(rollStrategy); Player[] players = new Player[] { new RollIfAtLeastNRemainingDicePlayer(1), new RollIfAtLeastNRema...
public static void main(String[] args) { RandomRollStrategy rollStrategy = new RandomRollStrategy(); LukeRulesScorer scorer = new LukeRulesScorer(rollStrategy); Player[] players = new Player[]{ new RollIfAtLeastNRemainingDicePlayer(1), new RollIfAtLeastNRemai...
diff --git a/src/org/servalproject/rhizome/ManifestEditorActivity.java b/src/org/servalproject/rhizome/ManifestEditorActivity.java index 4d948546..e48ce30f 100644 --- a/src/org/servalproject/rhizome/ManifestEditorActivity.java +++ b/src/org/servalproject/rhizome/ManifestEditorActivity.java @@ -1,86 +1,87 @@ /** * ...
true
true
public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.manifest_editor); // Handle the validations Button validate = (Button) findViewById(R.id.me_validate); validate.setOnClickListener(this); Intent intent = getIntent(); String filename = intent.g...
public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.manifest_editor); // Handle the validations Button validate = (Button) findViewById(R.id.me_validate); validate.setOnClickListener(this); Intent intent = getIntent(); String filename = intent.g...
diff --git a/src/to/joe/j2mc/fun/command/ClearInventoryCommand.java b/src/to/joe/j2mc/fun/command/ClearInventoryCommand.java index c1a0e18..071c539 100644 --- a/src/to/joe/j2mc/fun/command/ClearInventoryCommand.java +++ b/src/to/joe/j2mc/fun/command/ClearInventoryCommand.java @@ -1,48 +1,48 @@ package to.joe.j2mc.fun....
true
true
public void exec(CommandSender sender, String commandName, String[] args, Player player, boolean isPlayer) { Player target = null; if (isPlayer && (args.length == 0)) { target = player; player.sendMessage(ChatColor.RED + "Inventory emptied"); this.plugin.getLogger...
public void exec(CommandSender sender, String commandName, String[] args, Player player, boolean isPlayer) { Player target = null; if (isPlayer && (args.length == 0)) { target = player; player.sendMessage(ChatColor.RED + "Inventory emptied"); this.plugin.getLogger...
diff --git a/src/webapp/src/java/org/wyona/yanel/servlet/menu/impl/YanelWebsiteMenu.java b/src/webapp/src/java/org/wyona/yanel/servlet/menu/impl/YanelWebsiteMenu.java index dec333b2d..5faba3041 100644 --- a/src/webapp/src/java/org/wyona/yanel/servlet/menu/impl/YanelWebsiteMenu.java +++ b/src/webapp/src/java/org/wyona/y...
true
true
public String getMenus(Resource resource, HttpServletRequest request, Map map, String reservedPrefix) throws ServletException, IOException, Exception { String backToRealm = org.wyona.yanel.core.util.PathUtil.backToRealm(resource.getPath()); StringBuffer sb= new StringBuffer(); sb.append("<ul><li>...
public String getMenus(Resource resource, HttpServletRequest request, Map map, String reservedPrefix) throws ServletException, IOException, Exception { String backToRealm = org.wyona.yanel.core.util.PathUtil.backToRealm(resource.getPath()); StringBuffer sb= new StringBuffer(); sb.append("<ul><li>...
diff --git a/gerrit-gwtui/src/main/java/com/google/gerrit/client/changes/PatchSetPanel.java b/gerrit-gwtui/src/main/java/com/google/gerrit/client/changes/PatchSetPanel.java index ab2b84615..78e769463 100644 --- a/gerrit-gwtui/src/main/java/com/google/gerrit/client/changes/PatchSetPanel.java +++ b/gerrit-gwtui/src/main/...
false
true
private void displayDownload() { final Branch.NameKey branchKey = changeDetail.getChange().getDest(); final Project.NameKey projectKey = changeDetail.getChange().getProject(); final String projectName = projectKey.get(); final FlowPanel downloads = new FlowPanel(); if (Gerrit.getConfig().isUseRep...
private void displayDownload() { final Branch.NameKey branchKey = changeDetail.getChange().getDest(); final Project.NameKey projectKey = changeDetail.getChange().getProject(); final String projectName = projectKey.get(); final FlowPanel downloads = new FlowPanel(); if (Gerrit.getConfig().isUseRep...
diff --git a/shell/src/main/java/org/apache/karaf/cellar/shell/group/GroupPickCommand.java b/shell/src/main/java/org/apache/karaf/cellar/shell/group/GroupPickCommand.java index a99743bf..ef26cf87 100644 --- a/shell/src/main/java/org/apache/karaf/cellar/shell/group/GroupPickCommand.java +++ b/shell/src/main/java/org/apa...
false
true
protected Object doExecute() throws Exception { Group sourceGroup = groupManager.findGroupByName(sourceGroupName); if (sourceGroup != null) { Set<Node> groupMembers = sourceGroup.getNodes(); for (Node node : groupMembers) { List<String> recipients = new Linke...
protected Object doExecute() throws Exception { Group sourceGroup = groupManager.findGroupByName(sourceGroupName); if (sourceGroup != null) { Set<Node> groupMembers = sourceGroup.getNodes(); int i = 0; for (Node node : groupMembers) { if (i >= cou...
diff --git a/mapsforge-map/src/main/java/org/mapsforge/android/maps/mapgenerator/InMemoryTileCache.java b/mapsforge-map/src/main/java/org/mapsforge/android/maps/mapgenerator/InMemoryTileCache.java index f16a016..c361134 100644 --- a/mapsforge-map/src/main/java/org/mapsforge/android/maps/mapgenerator/InMemoryTileCache.j...
false
true
public void put(MapGeneratorJob mapGeneratorJob, Bitmap bitmap) { if (this.capacity == 0) { return; } synchronized (this.map) { if (this.bitmapPool.isEmpty()) { return; } Bitmap pooledBitmap = this.bitmapPool.remove(this.bitmapPool.size() - 1); bitmap.copyPixelsToBuffer(this.byteBuffer); ...
public void put(MapGeneratorJob mapGeneratorJob, Bitmap bitmap) { if (this.capacity == 0) { return; } synchronized (this.map) { if (this.bitmapPool.isEmpty()) { return; } Bitmap pooledBitmap = this.bitmapPool.remove(this.bitmapPool.size() - 1); this.byteBuffer.rewind(); bitmap.copyPixels...
diff --git a/src/main/java/br/octahedron/straight/controller/ControllerChecker.java b/src/main/java/br/octahedron/straight/controller/ControllerChecker.java index 4d309d1..5512776 100644 --- a/src/main/java/br/octahedron/straight/controller/ControllerChecker.java +++ b/src/main/java/br/octahedron/straight/controller/Co...
false
true
public void check(String domain, String email, String moduleName, String action) throws NotFoundException, NotLoggedException, InexistentAccountException, NotAuthorizedException { logger.info(">>>" + domain + " : " + email + " : " + moduleName + " : " + action); try { if (APPLICATION_DOMAIN.equals(domain) &...
public void check(String domain, String email, String moduleName, String action) throws NotFoundException, NotLoggedException, InexistentAccountException, NotAuthorizedException { logger.info(">>>" + domain + " : " + email + " : " + moduleName + " : " + action); try { if (APPLICATION_DOMAIN.equals(domain) &...
diff --git a/src/uniol/apt/analysis/synet/SynetSynthesizeDistributedLTS.java b/src/uniol/apt/analysis/synet/SynetSynthesizeDistributedLTS.java index 12424ce6..7714bca3 100644 --- a/src/uniol/apt/analysis/synet/SynetSynthesizeDistributedLTS.java +++ b/src/uniol/apt/analysis/synet/SynetSynthesizeDistributedLTS.java @@ -1...
true
true
public boolean check() throws SynetNotFoundException, IOException, FormatException { SynetRenderer synetRen = new SynetRenderer(); String ltsSynetFormat = synetRen.render(ts_); File tmpAutFile = File.createTempFile("synetAut", ".aut"); BufferedWriter bw = new BufferedWriter(new File...
public boolean check() throws SynetNotFoundException, IOException, FormatException { SynetRenderer synetRen = new SynetRenderer(); String ltsSynetFormat = synetRen.render(ts_); File tmpAutFile = File.createTempFile("synetAut", ".aut"); BufferedWriter bw = new BufferedWriter(new File...
diff --git a/main/src/cgeo/geocaching/files/GPXParser.java b/main/src/cgeo/geocaching/files/GPXParser.java index 4ebbb4597..3341f95b2 100644 --- a/main/src/cgeo/geocaching/files/GPXParser.java +++ b/main/src/cgeo/geocaching/files/GPXParser.java @@ -1,978 +1,983 @@ package cgeo.geocaching.files; import cgeo.geocachi...
true
true
public Collection<Geocache> parse(final InputStream stream, final CancellableHandler progressHandler) throws IOException, ParserException { resetCache(); final RootElement root = new RootElement(namespace, "gpx"); final Element waypoint = root.getChild(namespace, "wpt"); root.getChi...
public Collection<Geocache> parse(final InputStream stream, final CancellableHandler progressHandler) throws IOException, ParserException { resetCache(); final RootElement root = new RootElement(namespace, "gpx"); final Element waypoint = root.getChild(namespace, "wpt"); root.getChi...
diff --git a/ignition-location/ignition-location-lib/src/com/github/ignition/location/utils/IgnitedLegacyLastLocationFinder.java b/ignition-location/ignition-location-lib/src/com/github/ignition/location/utils/IgnitedLegacyLastLocationFinder.java index 0fb89c5..be552c1 100644 --- a/ignition-location/ignition-location-l...
false
true
public Location getLastBestLocation(Context context, int minDistance, long minTime) { Location bestResult = null; float bestAccuracy = Float.MAX_VALUE; long bestTime = Long.MAX_VALUE; // Iterate through all the providers on the system, keeping // note of the most accurate re...
public Location getLastBestLocation(Context context, int minDistance, long minTime) { Location bestResult = null; float bestAccuracy = Float.MAX_VALUE; long bestTime = Long.MAX_VALUE; // Iterate through all the providers on the system, keeping // note of the most accurate re...
diff --git a/src/org/mythtv/client/ui/dvr/GuideChannelFragment.java b/src/org/mythtv/client/ui/dvr/GuideChannelFragment.java index 5ac2c55f..26c2be14 100644 --- a/src/org/mythtv/client/ui/dvr/GuideChannelFragment.java +++ b/src/org/mythtv/client/ui/dvr/GuideChannelFragment.java @@ -1,327 +1,332 @@ /** * */ packa...
true
true
public void bindView( View view, Context context, Cursor cursor ) { final ChannelInfo channel = ChannelDaoHelper.convertCursorToChannelInfo( cursor ); final ViewHolder mHolder = (ViewHolder) view.getTag(); mHolder.channel.setText( channel.getChannelNumber() ); mHolder.callsign.set...
public void bindView( View view, Context context, Cursor cursor ) { final ChannelInfo channel = ChannelDaoHelper.convertCursorToChannelInfo( cursor ); final ViewHolder mHolder = (ViewHolder) view.getTag(); mHolder.channel.setText( channel.getChannelNumber() ); mHolder.callsign.set...
diff --git a/src/com/qrsphere/SplashScreen.java b/src/com/qrsphere/SplashScreen.java index 99110a5..88860b6 100644 --- a/src/com/qrsphere/SplashScreen.java +++ b/src/com/qrsphere/SplashScreen.java @@ -1,59 +1,59 @@ package com.qrsphere; import android.app.Activity; import android.content.Intent; import android.gr...
true
true
public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); ImageView iv = new ImageView(this); iv.setImageResource(R.drawable.q_logo); iv.setBackgroundColor(Color.TRANSPARENT); setContentView(iv); Thread splashTread = new T...
public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); ImageView iv = new ImageView(this); iv.setImageResource(R.drawable.q_logo); iv.setBackgroundColor(Color.TRANSPARENT); setContentView(iv); Thread splashTread = new T...
diff --git a/src/main/java/com/redhat/ceylon/compiler/js/InvocationGenerator.java b/src/main/java/com/redhat/ceylon/compiler/js/InvocationGenerator.java index e6ccf6ea..a37c9c97 100644 --- a/src/main/java/com/redhat/ceylon/compiler/js/InvocationGenerator.java +++ b/src/main/java/com/redhat/ceylon/compiler/js/Invocation...
true
true
void generateInvocation(Tree.InvocationExpression that) { if (that.getNamedArgumentList()!=null) { Tree.NamedArgumentList argList = that.getNamedArgumentList(); if (gen.isInDynamicBlock() && that.getPrimary() instanceof Tree.MemberOrTypeExpression && ((Tree.Member...
void generateInvocation(Tree.InvocationExpression that) { if (that.getNamedArgumentList()!=null) { Tree.NamedArgumentList argList = that.getNamedArgumentList(); if (gen.isInDynamicBlock() && that.getPrimary() instanceof Tree.MemberOrTypeExpression && ((Tree.Member...
diff --git a/src/org/apache/xerces/validators/common/XMLValidator.java b/src/org/apache/xerces/validators/common/XMLValidator.java index c340d4846..15ab58928 100644 --- a/src/org/apache/xerces/validators/common/XMLValidator.java +++ b/src/org/apache/xerces/validators/common/XMLValidator.java @@ -1,3531 +1,3536 @@ /* ...
false
true
private void validateElementAndAttributes(QName element, XMLAttrList attrList) throws Exception { if ((fElementDepth >= 0 && fValidationFlagStack[fElementDepth] != 0 )|| (fGrammar == null && !fValidating && !fNamespacesEnabled) ) { ...
private void validateElementAndAttributes(QName element, XMLAttrList attrList) throws Exception { if ((fElementDepth >= 0 && fValidationFlagStack[fElementDepth] != 0 )|| (fGrammar == null && !fValidating && !fNamespacesEnabled) ) { ...
diff --git a/core/src/main/java/org/apache/mahout/clustering/kmeans/RandomSeedGenerator.java b/core/src/main/java/org/apache/mahout/clustering/kmeans/RandomSeedGenerator.java index 67afd1d46..a89b03b1a 100644 --- a/core/src/main/java/org/apache/mahout/clustering/kmeans/RandomSeedGenerator.java +++ b/core/src/main/java/...
false
true
public static Path buildRandom(Configuration conf, Path input, Path output, int k, DistanceMeasure measure) throws IOException { // delete the output directory FileSystem fs = Fi...
public static Path buildRandom(Configuration conf, Path input, Path output, int k, DistanceMeasure measure) throws IOException { // delete the output directory FileSystem fs = Fi...
diff --git a/src/main/java/net/aufdemrand/denizen/utilities/packets/BossHealthBar.java b/src/main/java/net/aufdemrand/denizen/utilities/packets/BossHealthBar.java index a562b35d2..60caf72a1 100644 --- a/src/main/java/net/aufdemrand/denizen/utilities/packets/BossHealthBar.java +++ b/src/main/java/net/aufdemrand/denizen/...
false
true
public static PacketPlayOutSpawnEntityLiving getMobPacket(String text, Location loc) { PacketPlayOutSpawnEntityLiving mobPacket = new PacketPlayOutSpawnEntityLiving(); try { Field a = getField(mobPacket.getClass(), "a"); a.setAccessible(true); a.set(mobPacket, ENT...
public static PacketPlayOutSpawnEntityLiving getMobPacket(String text, Location loc) { PacketPlayOutSpawnEntityLiving mobPacket = new PacketPlayOutSpawnEntityLiving(); try { Field a = getField(mobPacket.getClass(), "a"); a.setAccessible(true); a.set(mobPacket, ENT...
diff --git a/drools-planner-core/src/main/java/org/drools/planner/core/score/director/AbstractScoreDirectorFactory.java b/drools-planner-core/src/main/java/org/drools/planner/core/score/director/AbstractScoreDirectorFactory.java index 64979359..dc30b514 100644 --- a/drools-planner-core/src/main/java/org/drools/planner/...
false
true
public void assertScore(Solution solution) { ScoreDirector uncorruptedScoreDirector = buildScoreDirector(); uncorruptedScoreDirector.setWorkingSolution(solution); Score uncorruptedScore = uncorruptedScoreDirector.calculateScore(); uncorruptedScoreDirector.dispose(); if (!solu...
public void assertScore(Solution solution) { // Get the score before uncorruptedScoreDirector.calculateScore() modifies it Score score = solution.getScore(); ScoreDirector uncorruptedScoreDirector = buildScoreDirector(); uncorruptedScoreDirector.setWorkingSolution(solution); ...
diff --git a/charon/charon-core/src/main/java/org/wso2/charon/core/objects/ListedResource.java b/charon/charon-core/src/main/java/org/wso2/charon/core/objects/ListedResource.java index d80155a4..3820ffb4 100644 --- a/charon/charon-core/src/main/java/org/wso2/charon/core/objects/ListedResource.java +++ b/charon/charon-c...
true
true
public void setResources(Map<String, Attribute> valueWithAttributes) { if (!isAttributeExist(SCIMConstants.ListedResourcesConstants.RESOURCES)) { MultiValuedAttribute resourcesAttribute = new MultiValuedAttribute(SCIMConstants.ListedResourcesConstants.RESOURCES); ...
public void setResources(Map<String, Attribute> valueWithAttributes) { if (!isAttributeExist(SCIMConstants.ListedResourcesConstants.RESOURCES)) { MultiValuedAttribute resourcesAttribute = new MultiValuedAttribute(SCIMConstants.ListedResourcesConstants.RESOURCES); ...
diff --git a/sip-servlets-impl/src/main/java/org/mobicents/servlet/sip/proxy/ProxyUtils.java b/sip-servlets-impl/src/main/java/org/mobicents/servlet/sip/proxy/ProxyUtils.java index 8a073c7ec..36c04171d 100644 --- a/sip-servlets-impl/src/main/java/org/mobicents/servlet/sip/proxy/ProxyUtils.java +++ b/sip-servlets-impl/s...
false
true
public static Request createProxiedRequest(SipServletRequestImpl originalRequest, ProxyBranchImpl proxyBranch, URI destination, SipURI outboundInterface, SipURI routeRecord, SipURI path) { try { final Request clonedRequest = (Request) originalRequest.getMessage().clone(); final String method = clonedRequest.g...
public static Request createProxiedRequest(SipServletRequestImpl originalRequest, ProxyBranchImpl proxyBranch, URI destination, SipURI outboundInterface, SipURI routeRecord, SipURI path) { try { final Request clonedRequest = (Request) originalRequest.getMessage().clone(); final String method = clonedRequest.g...
diff --git a/dvn-app/trunk/src/DVN-EJB/src/java/edu/harvard/iq/dvn/core/vdc/GuestBookResponseServiceBean.java b/dvn-app/trunk/src/DVN-EJB/src/java/edu/harvard/iq/dvn/core/vdc/GuestBookResponseServiceBean.java index e4f9cdcab..44a861e3e 100644 --- a/dvn-app/trunk/src/DVN-EJB/src/java/edu/harvard/iq/dvn/core/vdc/GuestBoo...
false
true
public List<Object[]> findDownloadInfoAll(List<Long> gbrIds) { //this query will return multiple rows per response where the study name has changed over version //these multiples are filtered out by the method that actually writes the download csv, String varString = "(" + generateTemp...
public List<Object[]> findDownloadInfoAll(List<Long> gbrIds) { //this query will return multiple rows per response where the study name has changed over version //these multiples are filtered out by the method that actually writes the download csv, String varString = "(" + generateTemp...
diff --git a/java/me/walkable/RefreshYelp.java b/java/me/walkable/RefreshYelp.java index 3a642a9..dbdf044 100644 --- a/java/me/walkable/RefreshYelp.java +++ b/java/me/walkable/RefreshYelp.java @@ -1,106 +1,110 @@ /** * */ package me.walkable; import java.sql.Connection; import java.sql.SQLException; impor...
false
true
public static int yelpCategoryIterate(Yelp yelp, CategoryTree tree) throws Exception{ int numDeals = 0; if (tree.isLeaf()){ YelpDealObject yObj = yelp.getDeals(Yelp.CHICAGO, "0", tree.getCategory()); if (yObj != null) { System.out.println("Found " + yObj.getTotalNumberOfDeals() + " in leaf category: " + ...
public static int yelpCategoryIterate(Yelp yelp, CategoryTree tree) throws Exception{ int numDeals = 0; if (tree.isLeaf()){ YelpDealObject yObj = yelp.getDeals(Yelp.CHICAGO, "0", tree.getCategory()); if (yObj != null) { System.out.println("Found " + yObj.getTotalNumberOfDeals() + " in leaf category: " + ...
diff --git a/src/main/java/com/redhat/ceylon/compiler/js/TypeUtils.java b/src/main/java/com/redhat/ceylon/compiler/js/TypeUtils.java index 425434b0..79a91e90 100644 --- a/src/main/java/com/redhat/ceylon/compiler/js/TypeUtils.java +++ b/src/main/java/com/redhat/ceylon/compiler/js/TypeUtils.java @@ -1,685 +1,685 @@ pack...
false
true
static void encodeForRuntime(final Declaration d, final GenerateJsVisitor gen, final RuntimeMetamodelAnnotationGenerator annGen) { gen.out("function(){return{mod:$$METAMODEL$$"); List<TypeParameter> tparms = null; List<ProducedType> satisfies = null; if (d instanceof com.redhat.ceylo...
static void encodeForRuntime(final Declaration d, final GenerateJsVisitor gen, final RuntimeMetamodelAnnotationGenerator annGen) { gen.out("function(){return{mod:$$METAMODEL$$"); List<TypeParameter> tparms = null; List<ProducedType> satisfies = null; if (d instanceof com.redhat.ceylo...
diff --git a/src/eu/livotov/labs/android/robotools/api/RTApiError.java b/src/eu/livotov/labs/android/robotools/api/RTApiError.java index 25f7133..03acf83 100644 --- a/src/eu/livotov/labs/android/robotools/api/RTApiError.java +++ b/src/eu/livotov/labs/android/robotools/api/RTApiError.java @@ -1,99 +1,101 @@ package eu....
true
true
private void analyzeAndSetErrorCode() { errorCode = ErrorCodes.InternalError; Throwable cause = getCause(); if (cause != null) { if (cause instanceof RTHTTPError) { if (cause.getCause() != null) { Throwable rootCause = cause.getCause(); ...
private void analyzeAndSetErrorCode() { errorCode = ErrorCodes.InternalError; Throwable cause = getCause(); if (cause != null) { if (cause instanceof RTHTTPError) { if (cause.getCause() != null) { Throwable rootCause = cause.getCause(); ...
diff --git a/apps/ibis/apps/sor/explicit/SOR.java b/apps/ibis/apps/sor/explicit/SOR.java index 1e353994..5e3413d0 100644 --- a/apps/ibis/apps/sor/explicit/SOR.java +++ b/apps/ibis/apps/sor/explicit/SOR.java @@ -1,268 +1,268 @@ /* * SOR.java * Successive over relaxation * SUN RMI version implementing a red-black ...
true
true
public void start () throws Exception { long t_start,t_end; /* time values */ double maxdiff; if(rank==0) { System.out.println("Problem parameters"); System.out.println("r : " + r); System.out.println("omega : " + omega); System.out.println("stopdiff: " + stopdiff); System....
public void start () throws Exception { long t_start,t_end; /* time values */ double maxdiff; if(rank==0) { System.out.println("Problem parameters"); System.out.println("r : " + r); System.out.println("omega : " + omega); System.out.println("stopdiff: " + stopdiff); System....
diff --git a/server/vc/src/main/java/com/vmware/aurora/vc/VcUtil.java b/server/vc/src/main/java/com/vmware/aurora/vc/VcUtil.java index d0cbdc75..10491323 100644 --- a/server/vc/src/main/java/com/vmware/aurora/vc/VcUtil.java +++ b/server/vc/src/main/java/com/vmware/aurora/vc/VcUtil.java @@ -1,253 +1,255 @@ /***********...
false
true
public static void configureAlarm(Folder rootFolder) throws Exception { AlarmManager alarmManager = VcContext.getService().getAlarmManager(); // Create the alarm for VHM String SERENGETI_UUID = rootFolder.getName(); /* should be the name of the folder clusters get deployed into */ String AL...
public static void configureAlarm(Folder rootFolder) throws Exception { AlarmManager alarmManager = VcContext.getService().getAlarmManager(); // Create the alarm for VHM String SERENGETI_UUID = rootFolder.getName(); /* should be the name of the folder clusters get deployed into */ String AL...
diff --git a/public/java/test/org/broadinstitute/sting/gatk/walkers/variantutils/VCFStreamingIntegrationTest.java b/public/java/test/org/broadinstitute/sting/gatk/walkers/variantutils/VCFStreamingIntegrationTest.java index 132a11273..3801e132d 100644 --- a/public/java/test/org/broadinstitute/sting/gatk/walkers/variantu...
true
true
public void testVCFStreamingChain() throws IOException { // Create a FIFO. This seems to be the only way to create an interprocess FIFO in Java (java.nio.Pipe is intraprocess only). File tmpFifo = File.createTempFile("vcfstreaming",""); Runtime.getRuntime().exec(new String[] {"mkfifo",tmpFi...
public void testVCFStreamingChain() throws IOException { // Create a FIFO. This seems to be the only way to create an interprocess FIFO in Java (java.nio.Pipe is intraprocess only). File tmpFifo = File.createTempFile("vcfstreaming",""); Runtime.getRuntime().exec(new String[] {"mkfifo",tmpFi...
diff --git a/src/com/android/browser/BaseUi.java b/src/com/android/browser/BaseUi.java index 5deb3353..568a7e97 100644 --- a/src/com/android/browser/BaseUi.java +++ b/src/com/android/browser/BaseUi.java @@ -1,682 +1,682 @@ /* * Copyright (C) 2010 The Android Open Source Project * * Licensed under the Apache Lice...
true
true
private void attachTabToContentView(Tab tab) { if (tab.getWebView() == null) { return; } View container = tab.getViewContainer(); WebView mainView = tab.getWebView(); // Attach the WebView to the container and then attach the // container to the content v...
private void attachTabToContentView(Tab tab) { if ((tab == null) || (tab.getWebView() == null)) { return; } View container = tab.getViewContainer(); WebView mainView = tab.getWebView(); // Attach the WebView to the container and then attach the // contain...
diff --git a/src/org/gridlab/gridsphere/portlets/core/subscription/SubscriptionPortlet.java b/src/org/gridlab/gridsphere/portlets/core/subscription/SubscriptionPortlet.java index 40431b8c2..9ae92d4a6 100644 --- a/src/org/gridlab/gridsphere/portlets/core/subscription/SubscriptionPortlet.java +++ b/src/org/gridlab/gridsp...
false
true
public void doViewSubscription(FormEvent event) { PortletRequest req = event.getPortletRequest(); gsPortlets.clear(); User user = req.getUser(); List myNames = layoutMgr.getSubscribedPortlets(req); List groups = aclService.getGroups(user); Iterator it = groups.itera...
public void doViewSubscription(FormEvent event) { PortletRequest req = event.getPortletRequest(); gsPortlets.clear(); User user = req.getUser(); List myNames = layoutMgr.getSubscribedPortlets(req); List groups = aclService.getGroups(user); Iterator it = groups.itera...
diff --git a/spring-jdbc/src/main/java/org/springframework/jdbc/datasource/AbstractDriverBasedDataSource.java b/spring-jdbc/src/main/java/org/springframework/jdbc/datasource/AbstractDriverBasedDataSource.java index 6df3d53e5..c7e7e1991 100644 --- a/spring-jdbc/src/main/java/org/springframework/jdbc/datasource/AbstractD...
false
true
protected Connection getConnectionFromDriver(String username, String password) throws SQLException { Properties props = new Properties(); props.putAll(getConnectionProperties()); if (username != null) { props.setProperty("user", username); } if (password != null) { props.setProperty("password", passwor...
protected Connection getConnectionFromDriver(String username, String password) throws SQLException { Properties mergedProps = new Properties(); Properties connProps = getConnectionProperties(); if (connProps != null) { mergedProps.putAll(connProps); } if (username != null) { mergedProps.setProperty("us...
diff --git a/activejdbc/src/test/java/activejdbc/PostgreSQLStatementProvider.java b/activejdbc/src/test/java/activejdbc/PostgreSQLStatementProvider.java index 0cdbb465..1389632c 100644 --- a/activejdbc/src/test/java/activejdbc/PostgreSQLStatementProvider.java +++ b/activejdbc/src/test/java/activejdbc/PostgreSQLStatemen...
false
true
public List<String> getStatements(String table) { List<String> statements = new ArrayList<String>(); if (table.equals("people")) { statements = Arrays.asList( "INSERT INTO people ( name, last_name, dob, graduation_date, created_at, updated_at) VALUES('John',...
public List<String> getStatements(String table) { List<String> statements = new ArrayList<String>(); if (table.equals("people")) { statements = Arrays.asList( "INSERT INTO people ( name, last_name, dob, graduation_date, created_at, updated_at) VALUES('John',...
diff --git a/src/test/cli/cloudify/InternalUSMPuServiceDownTest.java b/src/test/cli/cloudify/InternalUSMPuServiceDownTest.java index 55bd66b8..aec44c8e 100644 --- a/src/test/cli/cloudify/InternalUSMPuServiceDownTest.java +++ b/src/test/cli/cloudify/InternalUSMPuServiceDownTest.java @@ -1,179 +1,179 @@ package test.cli...
true
true
public void tomcatServiceDownAndCorruptedTest() throws IOException, InterruptedException, PackagingException { String serviceDir = ScriptUtils.getBuildPath() + "/recipes/services/tomcat"; String command = "connect " + this.restUrl + ";" + "install-service " + "--verbose -timeout 10 " + serviceDir; try { Lo...
public void tomcatServiceDownAndCorruptedTest() throws IOException, InterruptedException, PackagingException { String serviceDir = ScriptUtils.getBuildPath() + "/recipes/services/tomcat"; String command = "connect " + this.restUrl + ";" + "install-service " + "--verbose -timeout 10 " + serviceDir; try { Lo...
diff --git a/src/video_engine/main/test/android_test/src/org/webrtc/videoengineapp/WebRTCDemo.java b/src/video_engine/main/test/android_test/src/org/webrtc/videoengineapp/WebRTCDemo.java index b5bbc93b6..2d1331c26 100644 --- a/src/video_engine/main/test/android_test/src/org/webrtc/videoengineapp/WebRTCDemo.java +++ b/s...
true
true
private void StartMain() { mTabHost.setCurrentTab(0); mLlRemoteSurface = (LinearLayout) findViewById(R.id.llRemoteView); mLlLocalSurface = (LinearLayout) findViewById(R.id.llLocalView); if (null == ViEAndroidAPI) ViEAndroidAPI = new ViEAndroidJavaAPI(this); if ...
private void StartMain() { mTabHost.setCurrentTab(0); mLlRemoteSurface = (LinearLayout) findViewById(R.id.llRemoteView); mLlLocalSurface = (LinearLayout) findViewById(R.id.llLocalView); if (null == ViEAndroidAPI) ViEAndroidAPI = new ViEAndroidJavaAPI(this); if ...
diff --git a/src/main/java/com/conventnunnery/plugins/mythicdrops/listeners/IdentifyingListener.java b/src/main/java/com/conventnunnery/plugins/mythicdrops/listeners/IdentifyingListener.java index 51117268..b66d1b9a 100644 --- a/src/main/java/com/conventnunnery/plugins/mythicdrops/listeners/IdentifyingListener.java +++...
true
true
private void identifyItem(PlayerInteractEvent event, Player player, ItemStack itemInHand, String itemType) { if (getPlugin().getItemManager().isArmor(itemType) || getPlugin().getItemManager().isTool(itemType)) { if (!itemInHand.hasItemMeta()) { getPlugin().getLanguageManager().se...
private void identifyItem(PlayerInteractEvent event, Player player, ItemStack itemInHand, String itemType) { if (getPlugin().getItemManager().isArmor(itemType) || getPlugin().getItemManager().isTool(itemType)) { if (!itemInHand.hasItemMeta()) { getPlugin().getLanguageManager().se...
diff --git a/src/test/java/org/silverpeas/file/GestionVariablesTest.java b/src/test/java/org/silverpeas/file/GestionVariablesTest.java index 07725c3..52fdef1 100644 --- a/src/test/java/org/silverpeas/file/GestionVariablesTest.java +++ b/src/test/java/org/silverpeas/file/GestionVariablesTest.java @@ -1,85 +1,85 @@ /* ...
true
true
public void testAddVariable() throws IOException { String pName = "SILVERPEAS_HOME"; String pValue = "C:/toto"; GestionVariables instance = new GestionVariables(new Properties()); try { assertThat(instance.getValue(pName), is(not(pValue))); fail("SILVERPEAS_HOME should not exist"); } c...
public void testAddVariable() throws IOException { String pName = "MY_PATH"; String pValue = "C:/toto"; GestionVariables instance = new GestionVariables(new Properties()); try { assertThat(instance.getValue(pName), is(not(pValue))); fail("SILVERPEAS_HOME should not exist"); } catch (IO...
diff --git a/marytts-builder/src/main/java/marytts/tools/newlanguage/LTSTrainer.java b/marytts-builder/src/main/java/marytts/tools/newlanguage/LTSTrainer.java index 867aa897d..e1298245c 100644 --- a/marytts-builder/src/main/java/marytts/tools/newlanguage/LTSTrainer.java +++ b/marytts-builder/src/main/java/marytts/tools...
true
true
public CART trainTree(int minLeafData) throws IOException{ Map<String, List<String[]>> grapheme2align = new HashMap<String, List<String[]>>(); for (String gr : this.graphemeSet){ grapheme2align.put(gr, new ArrayList<String[]>()); } Set<String> phCh...
public CART trainTree(int minLeafData) throws IOException{ Map<String, List<String[]>> grapheme2align = new HashMap<String, List<String[]>>(); for (String gr : this.graphemeSet){ grapheme2align.put(gr, new ArrayList<String[]>()); } Set<String> phCh...
diff --git a/org.caleydo.view.enroute/src/org/caleydo/view/enroute/path/node/MultiMappingAttributeRenderer.java b/org.caleydo.view.enroute/src/org/caleydo/view/enroute/path/node/MultiMappingAttributeRenderer.java index b1d68a830..5031e1550 100644 --- a/org.caleydo.view.enroute/src/org/caleydo/view/enroute/path/node/Mul...
true
true
public void render(GL2 gl) { Vec3f nodePos = node.getPosition(); float nodeHeight = node.getHeight(); float nodeWidth = node.getWidth(); float size = pixelGLConverter.getGLHeightForGLWidth(GLYPH_SIZE); gl.glColor4f(0.3f, 0.3f, 0.3f, 1f); gl.glBegin(GL.GL_TRIANGLES); gl.glVertex3f(nodePos.x() - nodeWidth ...
public void render(GL2 gl) { Vec3f nodePos = node.getPosition(); float nodeHeight = node.getHeight(); float nodeWidth = node.getWidth(); float size = pixelGLConverter.getGLHeightForPixelHeight(GLYPH_SIZE); gl.glColor4f(0.3f, 0.3f, 0.3f, 1f); gl.glBegin(GL.GL_TRIANGLES); gl.glVertex3f(nodePos.x() - nodeWi...
diff --git a/gitools-core/src/main/java/org/gitools/persistence/text/ModuleMapText2CPersistence.java b/gitools-core/src/main/java/org/gitools/persistence/text/ModuleMapText2CPersistence.java index 22a6c178..68805834 100644 --- a/gitools-core/src/main/java/org/gitools/persistence/text/ModuleMapText2CPersistence.java +++...
true
true
public ModuleMap read(File file, IProgressMonitor monitor) throws PersistenceException { // map between the item names and its index Map<String, Integer> itemNameToRowMapping = new TreeMap<String, Integer>(); if (isItemNamesFilterEnabled()) { String[] itemNames = getItemNames(); for (int i = 0; i < item...
public ModuleMap read(File file, IProgressMonitor monitor) throws PersistenceException { // map between the item names and its index Map<String, Integer> itemNameToRowMapping = new TreeMap<String, Integer>(); if (isItemNamesFilterEnabled()) { String[] itemNames = getItemNames(); for (int i = 0; i < item...
diff --git a/src/org/eclipse/jface/viewers/ColumnViewerToolTipSupport.java b/src/org/eclipse/jface/viewers/ColumnViewerToolTipSupport.java index 5a3ffd73..cb4adb56 100644 --- a/src/org/eclipse/jface/viewers/ColumnViewerToolTipSupport.java +++ b/src/org/eclipse/jface/viewers/ColumnViewerToolTipSupport.java @@ -1,164 +1,...
true
true
protected final boolean shouldCreateToolTip(Event event) { if( ! super.shouldCreateToolTip(event) ) { return false; } boolean rv = false; ViewerRow row = viewer.getViewerRow(new Point(event.x, event.y)); viewer.getControl().setToolTipText(""); //$NON-NLS-1$ Point point = new Point(event.x, event....
protected final boolean shouldCreateToolTip(Event event) { if( ! super.shouldCreateToolTip(event) ) { return false; } boolean rv = false; ViewerRow row = viewer.getViewerRow(new Point(event.x, event.y)); viewer.getControl().setToolTipText(""); //$NON-NLS-1$ Point point = new Point(event.x, event....
diff --git a/trunk/src/java/org/apache/commons/dbcp/BasicDataSourceFactory.java b/trunk/src/java/org/apache/commons/dbcp/BasicDataSourceFactory.java index 646b750..5a9c859 100644 --- a/trunk/src/java/org/apache/commons/dbcp/BasicDataSourceFactory.java +++ b/trunk/src/java/org/apache/commons/dbcp/BasicDataSourceFactory....
true
true
public static DataSource createDataSource(Properties properties) throws Exception { BasicDataSource dataSource = new BasicDataSource(); String value = null; value = properties.getProperty(PROP_DEFAULTAUTOCOMMIT); if (value != null) { dataSource.setDefaultAutoCommit(Boole...
public static DataSource createDataSource(Properties properties) throws Exception { BasicDataSource dataSource = new BasicDataSource(); String value = null; value = properties.getProperty(PROP_DEFAULTAUTOCOMMIT); if (value != null) { dataSource.setDefaultAutoCommit(Boole...
diff --git a/buildhealth.analysers/src/org/pescuma/buildhealth/analyser/diskusage/DiskUsageAnalyser.java b/buildhealth.analysers/src/org/pescuma/buildhealth/analyser/diskusage/DiskUsageAnalyser.java index 050daca..39880ee 100644 --- a/buildhealth.analysers/src/org/pescuma/buildhealth/analyser/diskusage/DiskUsageAnalyse...
true
true
private SimpleTree<Stats> buildTree(BuildData data, boolean useTags) { SimpleTree<Stats> tree = new SimpleTree<Stats>(new Function<String[], Stats>() { @Override public Stats apply(String[] name) { return new Stats(); } }); for (Line line : data.getLines()) { SimpleTree<Stats>.Node node = tree...
private SimpleTree<Stats> buildTree(BuildData data, boolean useTags) { SimpleTree<Stats> tree = new SimpleTree<Stats>(new Function<String[], Stats>() { @Override public Stats apply(String[] name) { return new Stats(); } }); for (Line line : data.getLines()) { SimpleTree<Stats>.Node node = tree...
diff --git a/src/master/src/org/drftpd/vfs/DirectoryHandle.java b/src/master/src/org/drftpd/vfs/DirectoryHandle.java index 888fa76f..ab0173ca 100644 --- a/src/master/src/org/drftpd/vfs/DirectoryHandle.java +++ b/src/master/src/org/drftpd/vfs/DirectoryHandle.java @@ -1,980 +1,987 @@ /* * This file is part of DrFTPD, ...
true
true
public void remerge(List<LightRemoteInode> files, RemoteSlave rslave, long lastModified) throws IOException { Iterator<LightRemoteInode> sourceIter = files.iterator(); // source comes pre-sorted from the slave List<InodeHandle> destinationList = null; try { destinationList = new ArrayList<InodeHandle>(ge...
public void remerge(List<LightRemoteInode> files, RemoteSlave rslave, long lastModified) throws IOException { Iterator<LightRemoteInode> sourceIter = files.iterator(); // source comes pre-sorted from the slave List<InodeHandle> destinationList = null; try { destinationList = new ArrayList<InodeHandle>(ge...
diff --git a/src/Client/Contact.java b/src/Client/Contact.java index 77fb0d31..4e6f8578 100644 --- a/src/Client/Contact.java +++ b/src/Client/Contact.java @@ -1,905 +1,897 @@ /* * Contact.java * * Created on 6.01.2005, 19:16 * Copyright (c) 2005-2008, Eugene Stahov (evgs), http://bombus-im.org * * This pro...
false
true
public void addMessage(Msg m) { boolean last_replace = false; if (origin == ORIGIN_GROUPCHAT) { if (!m.body.startsWith("/me ")) { if (cf.showNickNames && !m.isPresence() && m.messageType != Msg.MESSAGE_TYPE_SUBJ && m.messageType != Msg.MESSAGE_TYPE_SYSTEM) { ...
public void addMessage(Msg m) { boolean last_replace = false; if (origin == ORIGIN_GROUPCHAT) { if (!m.body.startsWith("/me ")) { if (cf.showNickNames && !m.isPresence() && m.messageType != Msg.MESSAGE_TYPE_SUBJ && m.messageType != Msg.MESSAGE_TYPE_SYSTEM) { ...
diff --git a/cyklotron-core/src/main/java/net/cyklotron/cms/documents/DocumentTool.java b/cyklotron-core/src/main/java/net/cyklotron/cms/documents/DocumentTool.java index cca6850ee..0aafec2db 100644 --- a/cyklotron-core/src/main/java/net/cyklotron/cms/documents/DocumentTool.java +++ b/cyklotron-core/src/main/java/net/c...
true
true
public List getMetaNodes(String xPathExpression) throws HTMLException { // rewrite for cyklotron 2.13 if("/meta/organisation".equals(xPathExpression)) { xPathExpression = "/meta/organizations/organization"; List nodes = (List)metaData.get(xPathExpression);...
public List getMetaNodes(String xPathExpression) throws HTMLException { // rewrite for cyklotron 2.13 if("/meta/organisation".equals(xPathExpression.toLowerCase())) { xPathExpression = "/meta/organizations/organization"; List nodes = (List)metaData.get(xPa...
diff --git a/src/gnu/prolog/vm/buildins/misc/Predicate_member.java b/src/gnu/prolog/vm/buildins/misc/Predicate_member.java index 1c4dd1d..4bf899d 100644 --- a/src/gnu/prolog/vm/buildins/misc/Predicate_member.java +++ b/src/gnu/prolog/vm/buildins/misc/Predicate_member.java @@ -1,160 +1,160 @@ /* GNU Prolog for Java *...
false
true
protected int nextSolution(Interpreter interpreter, MemberBacktrackInfo bi) throws PrologException { while (!AtomTerm.emptyList.equals(bi.list)) { if (bi.listExpand) { Term tmp = CompoundTerm.getList(bi.item, bi.list); interpreter.unify(bi.listDest, tmp); bi.item = new VariableTerm(); bi.lis...
protected int nextSolution(Interpreter interpreter, MemberBacktrackInfo bi) throws PrologException { while (!AtomTerm.emptyList.equals(bi.list)) { if (bi.listExpand) { Term tmp = CompoundTerm.getList(bi.item, bi.list); interpreter.unify(bi.listDest, tmp); bi.item = new VariableTerm(); bi.lis...
diff --git a/paprocci/java/src/org/ow2/proactive/compatibleone/scheduler/SchedulerClient.java b/paprocci/java/src/org/ow2/proactive/compatibleone/scheduler/SchedulerClient.java index bbc6f584..69929fdc 100644 --- a/paprocci/java/src/org/ow2/proactive/compatibleone/scheduler/SchedulerClient.java +++ b/paprocci/java/src/...
false
true
public String acquireApplicationInNode( Signal stopsignal, SelectionScript nodeselectioncriteria, String applicationpath, String applicationargs[], String appworkingdir, String nodetoken, Integer nonodes) throws Exception { //logger.info("HARDCODED"); //int a = 3; if (a>2){ return "{\"id...
public String acquireApplicationInNode( Signal stopsignal, SelectionScript nodeselectioncriteria, String applicationpath, String applicationargs[], String appworkingdir, String nodetoken, Integer nonodes) throws Exception { //logger.info("HARDCODED"); //int a = 3; if (a>2){ return "{\"id...
diff --git a/test/uk/org/ponder/test/dateutil/TestDateTransit.java b/test/uk/org/ponder/test/dateutil/TestDateTransit.java index 9e4ca11..676a9aa 100644 --- a/test/uk/org/ponder/test/dateutil/TestDateTransit.java +++ b/test/uk/org/ponder/test/dateutil/TestDateTransit.java @@ -1,40 +1,40 @@ /* * Created on 5 Apr 2007...
true
true
public void testTZTransit() { StandardFieldDateTransit transit = new StandardFieldDateTransit(); TimeZone offtz = TimeZone.getTimeZone("BST"); transit.setTimeZone(offtz); transit.init(); Calendar cal = new GregorianCalendar(); cal.set(2007, 4, 5, 1, 0, 0); cal.set(Calendar.MILLISECOND, 0);...
public void testTZTransit() { StandardFieldDateTransit transit = new StandardFieldDateTransit(); TimeZone offtz = TimeZone.getTimeZone("BST"); transit.setTimeZone(offtz); transit.init(); Calendar cal = new GregorianCalendar(); cal.set(2007, 4, 5, 1, 0, 0); cal.set(Calendar.MILLISECOND, 0);...
diff --git a/utgb-core/src/main/java/org/utgenome/format/fastq/FastqToBAM.java b/utgb-core/src/main/java/org/utgenome/format/fastq/FastqToBAM.java index c7a8e916..24b631cd 100755 --- a/utgb-core/src/main/java/org/utgenome/format/fastq/FastqToBAM.java +++ b/utgb-core/src/main/java/org/utgenome/format/fastq/FastqToBAM.ja...
true
true
public int convert(Reader input1, Reader input2) throws UTGBException, IOException { FastqReader end1 = new FastqReader(input1); FastqReader end2 = (input2 == null) ? null : new FastqReader(input2); SAMReadGroupRecord readGroupRecord = new SAMReadGroupRecord(readGroupName); SAMFileHeader samHeader = new SAMF...
public int convert(Reader input1, Reader input2) throws UTGBException, IOException { FastqReader end1 = new FastqReader(input1); FastqReader end2 = (input2 == null) ? null : new FastqReader(input2); SAMReadGroupRecord readGroupRecord = new SAMReadGroupRecord(readGroupName); SAMFileHeader samHeader = new SAMF...
diff --git a/src/com/dmdirc/updater/Update.java b/src/com/dmdirc/updater/Update.java index 3487cefe5..2eb217fa2 100644 --- a/src/com/dmdirc/updater/Update.java +++ b/src/com/dmdirc/updater/Update.java @@ -1,221 +1,221 @@ /* * Copyright (c) 2006-2009 Chris Smith, Shane Mc Cormack, Gregory Holmes * * Permission is...
true
true
public void doUpdate() { new Thread(new Runnable() { /** {@inheritDoc} */ @Override public void run() { final String path = Main.getConfigDir() + "update.tmp." + Math.round(Math.random() * 1000); setStatus(UpdateSt...
public void doUpdate() { new Thread(new Runnable() { /** {@inheritDoc} */ @Override public void run() { final String path = Main.getConfigDir() + "update.tmp." + Math.round(Math.random() * 1000); setStatus(UpdateSt...
diff --git a/gerrit-server/src/main/java/com/google/gerrit/server/query/change/ChangeData.java b/gerrit-server/src/main/java/com/google/gerrit/server/query/change/ChangeData.java index 479a5efa3..dfeac0c4f 100644 --- a/gerrit-server/src/main/java/com/google/gerrit/server/query/change/ChangeData.java +++ b/gerrit-server...
false
true
public Collection<String> currentFilePaths(Provider<ReviewDb> db, PatchListCache cache) throws OrmException { if (currentFiles == null) { Change c = change(db); if (c == null) { return null; } PatchSet ps = currentPatchSet(db); if (ps == null) { return null; ...
public Collection<String> currentFilePaths(Provider<ReviewDb> db, PatchListCache cache) throws OrmException { if (currentFiles == null) { Change c = change(db); if (c == null) { return null; } PatchSet ps = currentPatchSet(db); if (ps == null) { return null; ...
diff --git a/src/com/teamblobby/studybeacon/APIClient.java b/src/com/teamblobby/studybeacon/APIClient.java index 6501eeb..24080b6 100644 --- a/src/com/teamblobby/studybeacon/APIClient.java +++ b/src/com/teamblobby/studybeacon/APIClient.java @@ -1,116 +1,116 @@ package com.teamblobby.studybeacon; import java.text.Da...
true
true
public static void query(int LatE6Min, int LatE6Max, int LonE6Min, int LonE6Max, String courses[], final SBAPIHandler handler) //throws JSONException { RequestParams params = new RequestParams(); params.put(LAT_MIN_STR,Integer.toString(LatE6Min)); params.put(LAT_MAX_STR,Integer.toString(LatE6Max)); par...
public static void query(int LatE6Min, int LatE6Max, int LonE6Min, int LonE6Max, String courses[], final SBAPIHandler handler) //throws JSONException { RequestParams params = new RequestParams(); params.put(LAT_MIN_STR,Integer.toString(LatE6Min)); params.put(LAT_MAX_STR,Integer.toString(LatE6Max)); par...
diff --git a/modules/weblounge-contentrepository/src/main/java/ch/entwine/weblounge/contentrepository/impl/index/solr/SearchRequest.java b/modules/weblounge-contentrepository/src/main/java/ch/entwine/weblounge/contentrepository/impl/index/solr/SearchRequest.java index 88ccfde92..acabe6bde 100644 --- a/modules/weblounge...
true
true
public SearchResult getByQuery(SearchQuery query) throws SolrServerException { Site site = query.getSite(); // Build the solr query string StringBuilder solrQuery = new StringBuilder(); // Resource id if (query.getIdentifier().length > 0) { and(solrQuery, RESOURCE_ID, query.getIdentifier()...
public SearchResult getByQuery(SearchQuery query) throws SolrServerException { Site site = query.getSite(); // Build the solr query string StringBuilder solrQuery = new StringBuilder(); // Resource id if (query.getIdentifier().length > 0) { and(solrQuery, RESOURCE_ID, query.getIdentifier()...
diff --git a/tests/frontend/org/voltdb/regressionsuites/TestCRUDSuite.java b/tests/frontend/org/voltdb/regressionsuites/TestCRUDSuite.java index 61e7c59bd..524b892e7 100644 --- a/tests/frontend/org/voltdb/regressionsuites/TestCRUDSuite.java +++ b/tests/frontend/org/voltdb/regressionsuites/TestCRUDSuite.java @@ -1,150 +...
true
true
static public junit.framework.Test suite() { VoltServerConfig config = null; final MultiConfigSuiteBuilder builder = new MultiConfigSuiteBuilder(TestCRUDSuite.class); final VoltProjectBuilder project = new VoltProjectBuilder(); // necessary because at least one procedure is require...
static public junit.framework.Test suite() { VoltServerConfig config = null; final MultiConfigSuiteBuilder builder = new MultiConfigSuiteBuilder(TestCRUDSuite.class); final VoltProjectBuilder project = new VoltProjectBuilder(); // necessary because at least one procedure is require...
diff --git a/src/main/java/net/madz/download/engine/DownloadSegmentWorker.java b/src/main/java/net/madz/download/engine/DownloadSegmentWorker.java index f32d000..02449e7 100644 --- a/src/main/java/net/madz/download/engine/DownloadSegmentWorker.java +++ b/src/main/java/net/madz/download/engine/DownloadSegmentWorker.java...
true
true
public void run() { URL url = task.getUrl(); HttpURLConnection openConnection = null; InputStream inputStream = null; RandomAccessFile randomAccessDataFile = null; byte[] buf = new byte[8096]; int size = 0; try { openConnection = (HttpURLConnection...
public void run() { URL url = task.getUrl(); HttpURLConnection openConnection = null; InputStream inputStream = null; RandomAccessFile randomAccessDataFile = null; byte[] buf = new byte[8096]; int size = 0; try { openConnection = (HttpURLConnection...
diff --git a/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasks/ui/ScheduleDatePicker.java b/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasks/ui/ScheduleDatePicker.java index 35669da9a..5def8e0dd 100644 --- a/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasks/ui/ScheduleDatePick...
false
true
private void initialize(int style) { GridLayout gridLayout = new GridLayout(3, false); gridLayout.horizontalSpacing = 3; gridLayout.verticalSpacing = 0; gridLayout.marginWidth = 0; gridLayout.marginHeight = 0; this.setLayout(gridLayout); scheduledDateText = new Text(this, style); scheduledDateText.se...
private void initialize(int style) { GridLayout gridLayout = new GridLayout(3, false); gridLayout.horizontalSpacing = 0; gridLayout.verticalSpacing = 0; gridLayout.marginWidth = 0; gridLayout.marginHeight = 0; this.setLayout(gridLayout); scheduledDateText = new Text(this, style); scheduledDateText.se...
diff --git a/loci/visbio/ClassManager.java b/loci/visbio/ClassManager.java index 4edb403..84dfbb9 100644 --- a/loci/visbio/ClassManager.java +++ b/loci/visbio/ClassManager.java @@ -1,101 +1,101 @@ // // ClassManager.java // /* VisBio application for visualization of multidimensional biological image data. Copyr...
true
true
private void doGUI() { // preload a bunch of classes int size = preloadClasses.size(); String pkg = ""; for (int i=0; i<size; i++) { String className = (String) preloadClasses.elementAt(i); int dot = className.lastIndexOf("."); String prefix = className.substring(0, dot); if (!...
private void doGUI() { // preload a bunch of classes int size = preloadClasses.size(); String pkg = ""; for (int i=0; i<size; i++) { String className = (String) preloadClasses.elementAt(i); int dot = className.lastIndexOf("."); String prefix = className.substring(0, dot); if (!...
diff --git a/source/RMG/jing/rxnSys/ReactionModelGenerator.java b/source/RMG/jing/rxnSys/ReactionModelGenerator.java index 413d931e..abeff723 100644 --- a/source/RMG/jing/rxnSys/ReactionModelGenerator.java +++ b/source/RMG/jing/rxnSys/ReactionModelGenerator.java @@ -1,4420 +1,4421 @@ //////////////////////////////////...
true
true
public void initializeReactionSystems() throws InvalidSymbolException, IOException { //#[ operation initializeReactionSystem() try { String initialConditionFile = System.getProperty("jing.rxnSys.ReactionModelGenerator.conditionFile"); if (initialConditionFile == null) { S...
public void initializeReactionSystems() throws InvalidSymbolException, IOException { //#[ operation initializeReactionSystem() try { String initialConditionFile = System.getProperty("jing.rxnSys.ReactionModelGenerator.conditionFile"); if (initialConditionFile == null) { S...
diff --git a/src/ibis/satin/impl/Stats.java b/src/ibis/satin/impl/Stats.java index 110652a2..6171e17c 100644 --- a/src/ibis/satin/impl/Stats.java +++ b/src/ibis/satin/impl/Stats.java @@ -1,770 +1,771 @@ /* $Id$ */ package ibis.satin.impl; import ibis.util.Timer; public abstract class Stats extends SharedObjec...
true
true
protected void printStats() { int size; synchronized (this) { // size = victims.size(); // No, this is one too few. (Ceriel) size = victims.size() + 1; } // add my own stats StatsMessage me = createStats(); totalStats.add(me); ...
protected void printStats() { int size; synchronized (this) { // size = victims.size(); // No, this is one too few. (Ceriel) size = victims.size() + 1; } // add my own stats StatsMessage me = createStats(); totalStats.add(me); ...
diff --git a/src/gui/org/pathvisio/gui/swing/propertypanel/TypedProperty.java b/src/gui/org/pathvisio/gui/swing/propertypanel/TypedProperty.java index 955fbb58..ec103691 100644 --- a/src/gui/org/pathvisio/gui/swing/propertypanel/TypedProperty.java +++ b/src/gui/org/pathvisio/gui/swing/propertypanel/TypedProperty.java @...
false
true
public TableCellEditor getCellEditor(SwingEngine swingEngine) { if (type instanceof PropertyType) switch(((PropertyType)type).type()) { case BOOLEAN: return checkboxEditor; case DATASOURCE: { List<DataSource> dataSources = new ArrayList<DataSource>(); dataSources.addAll (DataSource.getFilteredSet(true...
public TableCellEditor getCellEditor(SwingEngine swingEngine) { if (type instanceof PropertyType) switch(((PropertyType)type).type()) { case BOOLEAN: return checkboxEditor; case DATASOURCE: { List<DataSource> dataSources = new ArrayList<DataSource>(); dataSources.addAll (DataSource.getFilteredSet(true...
diff --git a/src/animations/LevitationControl.java b/src/animations/LevitationControl.java index a800ccb..3dcb8a9 100644 --- a/src/animations/LevitationControl.java +++ b/src/animations/LevitationControl.java @@ -1,93 +1,95 @@ package animations; import com.jme3.renderer.RenderManager; import com.jme3.renderer.V...
false
true
protected void controlUpdate(float tpf) { if (getSpeed()>2){ setSpeed(getSpeed() - 200*tpf); } else setTopUp(2); if (up){ spatial.move(0f, tpf*getSpeed()/20, 0f); setDisplacement(getDisplacement() + tpf*getSpeed()); ...
protected void controlUpdate(float tpf) { if (getSpeed()>2){ setSpeed(getSpeed() - 200*tpf); } else{ setTopUp(2); setSpeed(2); } if (up){ spatial.move(0f, tpf*getSpeed()/20, 0f); setDisplacement(get...
diff --git a/grisu-core/src/main/java/grisu/backend/model/job/gt5/Gram5Client.java b/grisu-core/src/main/java/grisu/backend/model/job/gt5/Gram5Client.java index 8b99fc98..6a7e7bce 100644 --- a/grisu-core/src/main/java/grisu/backend/model/job/gt5/Gram5Client.java +++ b/grisu-core/src/main/java/grisu/backend/model/job/gt...
true
true
public int[] getJobStatus(String handle, GSSCredential cred) { final int[] results = new int[2]; // we need this to catch quick failure Integer status = statuses.get(handle); myLogger.debug("status is " + status); if ((status != null) && (status == GRAMConstants.STATUS_FAILED)) { myLogger.debug("job fai...
public int[] getJobStatus(String handle, GSSCredential cred) { final int[] results = new int[2]; // we need this to catch quick failure Integer status = statuses.get(handle); myLogger.debug("status is " + status); if ((status != null) && (status == GRAMConstants.STATUS_FAILED)) { myLogger.debug("job fai...
diff --git a/org.emftext.sdk.codegen.resource/src/org/emftext/sdk/codegen/resource/generators/BuilderAdapterGenerator.java b/org.emftext.sdk.codegen.resource/src/org/emftext/sdk/codegen/resource/generators/BuilderAdapterGenerator.java index fd0fb9a38..9380ff437 100644 --- a/org.emftext.sdk.codegen.resource/src/org/emft...
true
true
private void addBuildMethod2(StringComposite sc) { sc.add("public " + I_PROJECT + "[] build(int kind, " + MAP + "<?,?> args, final " + I_PROGRESS_MONITOR + " monitor, final " + iBuilderClassName + " builder, " + I_PROJECT + " project) throws " + CORE_EXCEPTION + " {"); sc.add(I_RESOURCE_DELTA + " delta = getDelta(...
private void addBuildMethod2(StringComposite sc) { sc.add("public " + I_PROJECT + "[] build(int kind, " + MAP + "<?,?> args, final " + I_PROGRESS_MONITOR + " monitor, final " + iBuilderClassName + " builder, " + I_PROJECT + " project) throws " + CORE_EXCEPTION + " {"); sc.add(I_RESOURCE_DELTA + " delta = getDelta(...