text:
#pragma once
#include <aws/mediatailor/MediaTailor_EXPORTS.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <aws/core/utils/DateTime.h>
#include <aws/core/utils/memory/stl/AWSVector.h>
#include <aws/core/utils/memory/stl/AWSMap.h>
#include <aws/mediatailor/model/HttpPackageConfiguration.h>
#include <utility>

namespace Aws
{
namespace Utils
{
namespace Json
{
  class JsonValue;
  class JsonView;
} // namespace Json
} // namespace Utils
namespace MediaTailor
{
namespace Model
{

  /**
   *
Live source configuration parameters.

See Also:
   AWS
   * API Reference

   */
  class AWS_MEDIATAILOR_API LiveSource
  {
  public:
    LiveSource();
    LiveSource(Aws::Utils::Json::JsonView jsonValue);
    LiveSource& operator=(Aws::Utils::Json::JsonView jsonValue);
    Aws::Utils::Json::JsonValue Jsonize() const;

    /**
     *
The ARN for the live source.

     */
    inline const Aws::String& GetArn() const{ return m_arn; }

    /**
     *
The ARN for the live source.

     */
    inline bool ArnHasBeenSet() const { return m_arnHasBeenSet; }

    /**
     *
The ARN for the live source.

     */
    inline void SetArn(const Aws::String& value) { m_arnHasBeenSet = true; m_arn = value; }

    /**
     *
The ARN for the live source.

     */
    inline void SetArn(Aws::String&& value) { m_arnHasBeenSet = true; m_arn = std::move(value); }

    /**
     *
The ARN for the live source.

     */
    inline void SetArn(const char* value) { m_arnHasBeenSet = true; m_arn.assign(value); }

    /**
     *
The ARN for the live source.

     */
    inline LiveSource& WithArn(const Aws::String& value) { SetArn(value); return *this;}

    /**
     *
The ARN for the live source.

     */
    inline LiveSource& WithArn(Aws::String&& value) { SetArn(std::move(value)); return *this;}

    /**
     *
The ARN for the live source.

     */
    inline LiveSource& WithArn(const char* value) { SetArn(value); return *this;}

    /**
     *
The timestamp that indicates when the live source was created.

     */
    inline const Aws::Utils::DateTime& GetCreationTime() const{ return m_creationTime; }

    /**
     *
The timestamp that indicates when the live source was created.

     */
    inline bool CreationTimeHasBeenSet() const { return m_creationTimeHasBeenSet; }

    /**
     *
The timestamp that indicates when the live source was created.

     */
    inline void SetCreationTime(const Aws::Utils::DateTime& value) { m_creationTimeHasBeenSet = true; m_creationTime = value; }

    /**
     *
The timestamp that indicates when the live source was created.

     */
    inline void SetCreationTime(Aws::Utils::DateTime&& value) { m_creationTimeHasBeenSet = true; m_creationTime = std::move(value); }

    /**
     *
The timestamp that indicates when the live source was created.

     */
    inline LiveSource& WithCreationTime(const Aws::Utils::DateTime& value) { SetCreationTime(value); return *this;}

    /**
     *
The timestamp that indicates when the live source was created.

     */
    inline LiveSource& WithCreationTime(Aws::Utils::DateTime&& value) { SetCreationTime(std::move(value)); return *this;}

    /**
     *
The HTTP package configurations for the live source.

     */
    inline const Aws::Vector<HttpPackageConfiguration>& GetHttpPackageConfigurations() const{ return m_httpPackageConfigurations; }

    /**
     *
The HTTP package configurations for the live source.

     */
    inline bool HttpPackageConfigurationsHasBeenSet() const { return m_httpPackageConfigurationsHasBeenSet; }

    /**
     *
The HTTP package configurations for the live source.

     */
    inline void SetHttpPackageConfigurations(const Aws::Vector<HttpPackageConfiguration>& value) { m_httpPackageConfigurationsHasBeenSet = true; m_httpPackageConfigurations = value; }

    /**
     *
The HTTP package configurations for the live source.

     */
    inline void SetHttpPackageConfigurations(Aws::Vector<HttpPackageConfiguration>&& value) { m_httpPackageConfigurationsHasBeenSet = true; m_httpPackageConfigurations = std::move(value); }

    /**
     *
The HTTP package configurations for the live source.

     */
    inline LiveSource& WithHttpPackageConfigurations(const Aws::Vector<HttpPackageConfiguration>& value) { SetHttpPackageConfigurations(value); return *this;}

    /**
     *
The HTTP package configurations for the live source.

     */
    inline LiveSource& WithHttpPackageConfigurations(Aws::Vector<HttpPackageConfiguration>&& value) { SetHttpPackageConfigurations(std::move(value)); return *this;}

    /**
     *
The HTTP package configurations for the live source.

     */
    inline LiveSource& AddHttpPackageConfigurations(const HttpPackageConfiguration& value) { m_httpPackageConfigurationsHasBeenSet = true; m_httpPackageConfigurations.push_back(value); return *this; }

    /**
     *
The HTTP package configurations for the live source.

     */
    inline LiveSource& AddHttpPackageConfigurations(HttpPackageConfiguration&& value) { m_httpPackageConfigurationsHasBeenSet = true; m_httpPackageConfigurations.push_back(std::move(value)); return *this; }

    /**
     *
The timestamp that indicates when the live source was last modified.

     */
    inline const Aws::Utils::DateTime& GetLastModifiedTime() const{ return m_lastModifiedTime; }

    /**
     *
The timestamp that indicates when the live source was last modified.

     */
    inline bool LastModifiedTimeHasBeenSet() const { return m_lastModifiedTimeHasBeenSet; }

    /**
     *
The timestamp that indicates when the live source was last modified.

     */
    inline void SetLastModifiedTime(const Aws::Utils::DateTime& value) { m_lastModifiedTimeHasBeenSet = true; m_lastModifiedTime = value; }

    /**
     *
The timestamp that indicates when the live source was last modified.

     */
    inline void SetLastModifiedTime(Aws::Utils::DateTime&& value) { m_lastModifiedTimeHasBeenSet = true; m_lastModifiedTime = std::move(value); }

    /**
     *
The timestamp that indicates when the live source was last modified.

     */
    inline LiveSource& WithLastModifiedTime(const Aws::Utils::DateTime& value) { SetLastModifiedTime(value); return *this;}

    /**
     *
The timestamp that indicates when the live source was last modified.

     */
    inline LiveSource& WithLastModifiedTime(Aws::Utils::DateTime&& value) { SetLastModifiedTime(std::move(value)); return *this;}

    /**
     *
The name that's used to refer to a live source.

     */
    inline const Aws::String& GetLiveSourceName() const{ return m_liveSourceName; }

    /**
     *
The name that's used to refer to a live source.

     */
    inline bool LiveSourceNameHasBeenSet() const { return m_liveSourceNameHasBeenSet; }

    /**
     *
The name that's used to refer to a live source.

     */
    inline void SetLiveSourceName(const Aws::String& value) { m_liveSourceNameHasBeenSet = true; m_liveSourceName = value; }

    /**
     *
The name that's used to refer to a live source.

     */
    inline void SetLiveSourceName(Aws::String&& value) { m_liveSourceNameHasBeenSet = true; m_liveSourceName = std::move(value); }

    /**
     *
The name that's used to refer to a live source.

     */
    inline void SetLiveSourceName(const char* value) { m_liveSourceNameHasBeenSet = true; m_liveSourceName.assign(value); }

    /**
     *
The name that's used to refer to a live source.

     */
    inline LiveSource& WithLiveSourceName(const Aws::String& value) { SetLiveSourceName(value); return *this;}

    /**
     *
The name that's used to refer to a live source.

     */
    inline LiveSource& WithLiveSourceName(Aws::String&& value) { SetLiveSourceName(std::move(value)); return *this;}

    /**
     *
The name that's used to refer to a live source.

     */
    inline LiveSource& WithLiveSourceName(const char* value) { SetLiveSourceName(value); return *this;}

    /**
     *
The name of the source location.

     */
    inline const Aws::String& GetSourceLocationName() const{ return m_sourceLocationName; }

    /**
     *
The name of the source location.

     */
    inline bool SourceLocationNameHasBeenSet() const { return m_sourceLocationNameHasBeenSet; }

    /**
     *
The name of the source location.

     */
    inline void SetSourceLocationName(const Aws::String& value) { m_sourceLocationNameHasBeenSet = true; m_sourceLocationName = value; }

    /**
     *
The name of the source location.

     */
    inline void SetSourceLocationName(Aws::String&& value) { m_sourceLocationNameHasBeenSet = true; m_sourceLocationName = std::move(value); }

    /**
     *
The name of the source location.

     */
    inline void SetSourceLocationName(const char* value) { m_sourceLocationNameHasBeenSet = true; m_sourceLocationName.assign(value); }

    /**
     *
The name of the source location.

     */
    inline LiveSource& WithSourceLocationName(const Aws::String& value) { SetSourceLocationName(value); return *this;}

    /**
     *
The name of the source location.

     */
    inline LiveSource& WithSourceLocationName(Aws::String&& value) { SetSourceLocationName(std::move(value)); return *this;}

    /**
     *
The name of the source location.

     */
    inline LiveSource& WithSourceLocationName(const char* value) { SetSourceLocationName(value); return *this;}

    /**
     *
The tags assigned to the live source. Tags are key-value pairs that you can
     * associate with Amazon resources to help with organization, access control, and
     * cost tracking. For more information, see Tagging
     * AWS Elemental MediaTailor Resources.

     */
    inline const Aws::Map<Aws::String, Aws::String>& GetTags() const{ return m_tags; }

    /**
     *
The tags assigned to the live source. Tags are key-value pairs that you can
     * associate with Amazon resources to help with organization, access control, and
     * cost tracking. For more information, see Tagging
     * AWS Elemental MediaTailor Resources.

     */
    inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }

    /**
     *
The tags assigned to the live source. Tags are key-value pairs that you can
     * associate with Amazon resources to help with organization, access control, and
     * cost tracking. For more information, see Tagging
     * AWS Elemental MediaTailor Resources.

     */
    inline void SetTags(const Aws::Map<Aws::String, Aws::String>& value) { m_tagsHasBeenSet = true; m_tags = value; }

    /**
     *
The tags assigned to the live source. Tags are key-value pairs that you can
     * associate with Amazon resources to help with organization, access control, and
     * cost tracking. For more information, see Tagging
     * AWS Elemental MediaTailor Resources.

     */
    inline void SetTags(Aws::Map<Aws::String, Aws::String>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }

    /**
     *
The tags assigned to the live source. Tags are key-value pairs that you can
     * associate with Amazon resources to help with organization, access control, and
     * cost tracking. For more information, see Tagging
     * AWS Elemental MediaTailor Resources.

     */
    inline LiveSource& WithTags(const Aws::Map<Aws::String, Aws::String>& value) { SetTags(value); return *this;}

    /**
     *
The tags assigned to the live source. Tags are key-value pairs that you can
     * associate with Amazon resources to help with organization, access control, and
     * cost tracking. For more information, see Tagging
     * AWS Elemental MediaTailor Resources.

     */
    inline LiveSource& WithTags(Aws::Map<Aws::String, Aws::String>&& value) { SetTags(std::move(value)); return *this;}

    /**
     *
The tags assigned to the live source. Tags are key-value pairs that you can
     * associate with Amazon resources to help with organization, access control, and
     * cost tracking. For more information, see Tagging
     * AWS Elemental MediaTailor Resources.

     */
    inline LiveSource& AddTags(const Aws::String& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; }

    /**
     *
The tags assigned to the live source. Tags are key-value pairs that you can
     * associate with Amazon resources to help with organization, access control, and
     * cost tracking. For more information, see Tagging
     * AWS Elemental MediaTailor Resources.

     */
    inline LiveSource& AddTags(Aws::String&& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; }

    /**
     *
The tags assigned to the live source. Tags are key-value pairs that you can
     * associate with Amazon resources to help with organization, access control, and
     * cost tracking. For more information, see Tagging
     * AWS Elemental MediaTailor Resources.

     */
    inline LiveSource& AddTags(const Aws::String& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; }

    /**
     *
The tags assigned to the live source. Tags are key-value pairs that you can
     * associate with Amazon resources to help with organization, access control, and
     * cost tracking. For more information, see Tagging
     * AWS Elemental MediaTailor Resources.

     */
    inline LiveSource& AddTags(Aws::String&& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), std::move(value)); return *this; }

    /**
     *
The tags assigned to the live source. Tags are key-value pairs that you can
     * associate with Amazon resources to help with organization, access control, and
     * cost tracking. For more information, see Tagging
     * AWS Elemental MediaTailor Resources.

     */
    inline LiveSource& AddTags(const char* key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; }

    /**
     *
The tags assigned to the live source. Tags are key-value pairs that you can
     * associate with Amazon resources to help with organization, access control, and
     * cost tracking. For more information, see Tagging
     * AWS Elemental MediaTailor Resources.

     */
    inline LiveSource& AddTags(Aws::String&& key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; }

    /**
     *
The tags assigned to the live source. Tags are key-value pairs that you can
     * associate with Amazon resources to help with organization, access control, and
     * cost tracking. For more information, see Tagging
     * AWS Elemental MediaTailor Resources.

     */
    inline LiveSource& AddTags(const char* key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; }

  private:

    Aws::String m_arn;
    bool m_arnHasBeenSet = false;

    Aws::Utils::DateTime m_creationTime;
    bool m_creationTimeHasBeenSet = false;

    Aws::Vector<HttpPackageConfiguration> m_httpPackageConfigurations;
    bool m_httpPackageConfigurationsHasBeenSet = false;

    Aws::Utils::DateTime m_lastModifiedTime;
    bool m_lastModifiedTimeHasBeenSet = false;

    Aws::String m_liveSourceName;
    bool m_liveSourceNameHasBeenSet = false;

    Aws::String m_sourceLocationName;
    bool m_sourceLocationNameHasBeenSet = false;

    Aws::Map<Aws::String, Aws::String> m_tags;
    bool m_tagsHasBeenSet = false;
  };

} // namespace Model
} // namespace MediaTailor
} // namespace Aws


text:
package org.apache.activemq.apollo.openwire.dto;

import org.apache.activemq.apollo.dto.ProtocolDTO;
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;

import javax.xml.bind.annotation.*;

/**
 * AllowS you to customize the openwire protocol implementation.
 */
@XmlRootElement(name="openwire")
@XmlAccessorType(XmlAccessType.FIELD)
@JsonIgnoreProperties(ignoreUnknown = true)
public class OpenwireDTO extends ProtocolDTO {

    public Integer version;
    @XmlAttribute(name="stack_trace")
    public Boolean stack_trace;
    @XmlAttribute(name="cache")
    public Boolean cache;
    @XmlAttribute(name="cache_size")
    public Integer cache_size;
    @XmlAttribute(name="tight_encoding")
    public Boolean tight_encoding;
    @XmlAttribute(name="tcp_no_delay")
    public Boolean tcp_no_delay;
    @XmlAttribute(name="max_inactivity_duration")
    public Long max_inactivity_duration;
    @XmlAttribute(name="max_inactivity_duration_initial_delay")
    public Long max_inactivity_duration_initial_delay;
    @XmlAttribute(name="max_frame_size")
    public Long max_frame_size;
    @XmlAttribute(name="buffer_size")
    public String buffer_size;

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (!(o instanceof OpenwireDTO)) return false;
        if (!super.equals(o)) return false;

        OpenwireDTO that = (OpenwireDTO) o;

        if (cache != null ? !cache.equals(that.cache) : that.cache != null)
            return false;
        if (cache_size != null ? !cache_size.equals(that.cache_size) : that.cache_size != null) return false;
        if (max_frame_size != null ? !max_frame_size.equals(that.max_frame_size) : that.max_frame_size != null)
            return false;
        if (max_inactivity_duration != null ? !max_inactivity_duration.equals(that.max_inactivity_duration) : that.max_inactivity_duration != null)
            return false;
        if (max_inactivity_duration_initial_delay != null ? !max_inactivity_duration_initial_delay.equals(that.max_inactivity_duration_initial_delay) : that.max_inactivity_duration_initial_delay != null)
            return false;
        if (tcp_no_delay != null ? !tcp_no_delay.equals(that.tcp_no_delay) : that.tcp_no_delay != null)
            return false;
        if (stack_trace != null ? !stack_trace.equals(that.stack_trace) : that.stack_trace != null)
            return false;
        if (tight_encoding != null ? !tight_encoding.equals(that.tight_encoding) : that.tight_encoding != null)
            return false;
        if (buffer_size != null ? !buffer_size.equals(that.buffer_size) : that.buffer_size != null)
            return false;
        if (version != null ? !version.equals(that.version) : that.version != null) return false;

        return true;
    }

    @Override
    public int hashCode() {
        int result = super.hashCode();
        result = 31 * result + (version != null ? version.hashCode() : 0);
        result = 31 * result + (stack_trace != null ? stack_trace.hashCode() : 0);
        result = 31 * result + (cache != null ? cache.hashCode() : 0);
        result = 31 * result + (cache_size != null ? cache_size.hashCode() : 0);
        result = 31 * result + (tight_encoding != null ? tight_encoding.hashCode() : 0);
        result = 31 * result + (tcp_no_delay != null ? tcp_no_delay.hashCode() : 0);
        result = 31 * result + (max_inactivity_duration != null ? max_inactivity_duration.hashCode() : 0);
        result = 31 * result + (max_inactivity_duration_initial_delay != null ? max_inactivity_duration_initial_delay.hashCode() : 0);
        result = 31 * result + (max_frame_size != null ? max_frame_size.hashCode() : 0);
        result = 31 * result + (buffer_size != null ? buffer_size.hashCode() : 0);
        return result;
    }
}

redpajama_set_name: RedPajamaGithub


text:
package com.intellij.gwt.module.model.impl;

import java.util.ArrayList;
import java.util.Collections;
import java.util.List;

import consulo.psi.PsiPackage;
import com.intellij.gwt.module.GwtModulesManager;
import com.intellij.gwt.module.model.GwtInheritsEntry;
import com.intellij.gwt.module.model.GwtModule;
import com.intellij.gwt.module.model.GwtRelativePath;
import com.intellij.gwt.module.model.GwtStylesheetRef;
import com.intellij.openapi.diagnostic.Logger;
import com.intellij.openapi.module.Module;
import com.intellij.openapi.project.Project;
import com.intellij.openapi.roots.ProjectFileIndex;
import com.intellij.openapi.roots.ProjectRootManager;
import com.intellij.openapi.util.io.FileUtil;
import com.intellij.openapi.util.text.StringUtil;
import com.intellij.openapi.vfs.VfsUtil;
import com.intellij.openapi.vfs.VirtualFile;
import com.intellij.psi.JavaDirectoryService;
import com.intellij.psi.PsiDirectory;
import com.intellij.psi.PsiFile;
import com.intellij.psi.PsiManager;
import com.intellij.psi.search.GlobalSearchScope;
import com.intellij.psi.xml.XmlFile;
import com.intellij.util.xml.DomService;

/**
 * @author nik
 */
public abstract class GwtModuleImpl implements GwtModule
{
	private static final Logger LOG = Logger.getInstance("#com.intellij.gwt.module.model.impl.GwtModuleImpl");
	private String myCachedFileUrl;
	private VirtualFile myModuleFile;
	private String myName;
	private String myShortName;
	private VirtualFile myModuleDirectory;
	private GwtModulesManager myGwtModulesManager;

	@Override
	public String getQualifiedName()
	{
		ensureInitialized();
		return myName;
	}

	private void ensureInitialized()
	{
		PsiFile psiFile = getModuleXmlFile();
		myModuleFile = psiFile.getVirtualFile();
		if(myModuleFile == null)
		{
			psiFile = psiFile.getOriginalFile();
			LOG.assertTrue(psiFile != null);
			myModuleFile = psiFile.getVirtualFile();
		}
		LOG.assertTrue(myModuleFile != null);
		if(myModuleFile.getUrl().equals(myCachedFileUrl))
		{
			return;
		}

		myModuleDirectory = myModuleFile.getParent();
		LOG.assertTrue(myModuleDirectory != null);
		final Project project = psiFile.getProject();
		myGwtModulesManager = GwtModulesManager.getInstance(project);
		final ProjectFileIndex index = ProjectRootManager.getInstance(project).getFileIndex();
		VirtualFile sourceRoot = index.getSourceRootForFile(myModuleFile);
		if(sourceRoot == null)
		{
			sourceRoot = index.getClassRootForFile(myModuleFile);
		}
		LOG.assertTrue(sourceRoot != null);
		String relativePath = VfsUtil.getRelativePath(myModuleFile, sourceRoot, '.');
		myName = relativePath.substring(0, relativePath.length() - GwtModulesManager.GWT_XML_SUFFIX.length());
		myShortName = StringUtil.getShortName(myName);
		myCachedFileUrl = myModuleFile.getUrl();
	}

	@Override
	public VirtualFile getModuleFile()
	{
		ensureInitialized();
		return myModuleFile;
	}

	@Override
	public XmlFile getModuleXmlFile()
	{
		return DomService.getInstance().getContainingFile(this);
	}

	@Override
	public VirtualFile getModuleDirectory()
	{
		ensureInitialized();
		return myModuleDirectory;
	}

	@Override
	public List<GwtModule> getInherited(final GlobalSearchScope scope)
	{
		ensureInitialized();
		final ArrayList<GwtModule> list = new ArrayList<GwtModule>();
		for(GwtInheritsEntry inheritsEntry : getInheritss())
		{
			final String value = inheritsEntry.getName().getValue();
			if(value != null)
			{
				GwtModule gwtModule = myGwtModulesManager.findGwtModuleByName(value, scope);
				if(gwtModule != null)
				{
					list.add(gwtModule);
				}
			}
		}
		return list;
	}

	@Override
	public List<String> getStylesheetFiles()
	{
		ensureInitialized();
		List<String> list = new ArrayList<String>();
		for(GwtStylesheetRef stylesheetRef : getStylesheets())
		{
			final String cssFile = stylesheetRef.getSrc().getValue();
			if(cssFile != null)
			{
				list.add(cssFile);
			}
		}
		return list;
	}

	@Override
	public String getShortName()
	{
		ensureInitialized();
		return myShortName;
	}

	@Override
	public List<VirtualFile> getSourceRoots()
	{
		return getRootsByRelativePaths(getSources(), GwtModulesManager.DEFAULT_SOURCE_PATH);
	}

	@Override
	public List<VirtualFile> getPublicRoots()
	{
		return getRootsByRelativePaths(getPublics(), GwtModulesManager.DEFAULT_PUBLIC_PATH);
	}

	private List<VirtualFile> getGwtModuleRoots()
	{
		PsiManager psiManager = PsiManager.getInstance(getManager().getProject());
		PsiDirectory psiDirectory = psiManager.findDirectory(myModuleDirectory);
		Module module = getModule();
		if(module != null && psiDirectory != null)
		{
			PsiPackage aPackage = JavaDirectoryService.getInstance().getPackage(psiDirectory);
			if(aPackage != null)
			{
				List<VirtualFile> roots = new ArrayList<VirtualFile>();
				PsiDirectory[] directories = aPackage.getDirectories(GlobalSearchScope.moduleWithDependenciesScope(module));
				for(PsiDirectory directory : directories)
				{
					roots.add(directory.getVirtualFile());
				}
				if(!roots.isEmpty())
				{
					return roots;
				}
			}
		}
		return Collections.singletonList(myModuleDirectory);
	}

	private List<VirtualFile> getRootsByRelativePaths(final List<GwtRelativePath> relativePaths, final String defaultPath)
	{
		ensureInitialized();
		final ArrayList<VirtualFile> roots = new ArrayList<VirtualFile>();

		for(VirtualFile moduleRoot : getGwtModuleRoots())
		{
			if(relativePaths.size() == 0)
			{
				final VirtualFile file = moduleRoot.findFileByRelativePath(defaultPath);
				if(file != null)
				{
					roots.add(file);
				}
			}

			for(GwtRelativePath relativePath : relativePaths)
			{
				final String pathValue = relativePath.getPath().getValue();
				if(pathValue != null)
				{
					final VirtualFile file = moduleRoot.findFileByRelativePath(FileUtil.toSystemIndependentName(pathValue));
					if(file != null)
					{
						roots.add(file);
					}
				}
			}
		}
		return roots;
	}
}


text: Materials for a Cornell online course in space mission analysis and design


text:
// MESSAGE OPTICAL_FLOW PACKING

#define MAVLINK_MSG_ID_OPTICAL_FLOW 100

typedef struct __mavlink_optical_flow_t
{
 uint64_t time_usec; /*< Timestamp (UNIX)*/
 float flow_comp_m_x; /*< Flow in meters in x-sensor direction, angular-speed compensated*/
 float flow_comp_m_y; /*< Flow in meters in y-sensor direction, angular-speed compensated*/
 float ground_distance; /*< Ground distance in meters. Positive value: distance known. Negative value: Unknown distance*/
 int16_t flow_x; /*< Flow in pixels * 10 in x-sensor direction (dezi-pixels)*/
 int16_t flow_y; /*< Flow in pixels * 10 in y-sensor direction (dezi-pixels)*/
 uint8_t sensor_id; /*< Sensor ID*/
 uint8_t quality; /*< Optical flow quality / confidence. 0: bad, 255: maximum quality*/
} mavlink_optical_flow_t;

#define MAVLINK_MSG_ID_OPTICAL_FLOW_LEN 26
#define MAVLINK_MSG_ID_100_LEN 26

#define MAVLINK_MSG_ID_OPTICAL_FLOW_CRC 175
#define MAVLINK_MSG_ID_100_CRC 175

#define MAVLINK_MESSAGE_INFO_OPTICAL_FLOW { \
	"OPTICAL_FLOW", \
	8, \
	{  { "time_usec", NULL, MAVLINK_TYPE_UINT64_T, 0, 0, offsetof(mavlink_optical_flow_t, time_usec) }, \
         { "flow_comp_m_x", NULL, MAVLINK_TYPE_FLOAT, 0, 8, offsetof(mavlink_optical_flow_t, flow_comp_m_x) }, \
         { "flow_comp_m_y", NULL, MAVLINK_TYPE_FLOAT, 0, 12, offsetof(mavlink_optical_flow_t, flow_comp_m_y) }, \
         { "ground_distance", NULL, MAVLINK_TYPE_FLOAT, 0, 16, offsetof(mavlink_optical_flow_t, ground_distance) }, \
         { "flow_x", NULL, MAVLINK_TYPE_INT16_T, 0, 20, offsetof(mavlink_optical_flow_t, flow_x) }, \
         { "flow_y", NULL, MAVLINK_TYPE_INT16_T, 0, 22, offsetof(mavlink_optical_flow_t, flow_y) }, \
         { "sensor_id", NULL, MAVLINK_TYPE_UINT8_T, 0, 24, offsetof(mavlink_optical_flow_t, sensor_id) }, \
         { "quality", NULL, MAVLINK_TYPE_UINT8_T, 0, 25, offsetof(mavlink_optical_flow_t, quality) }, \
         } \
}

/**
 * @brief Pack a optical_flow message
 * @param system_id ID of this system
 * @param component_id ID of this component (e.g. 200 for IMU)
 * @param msg The MAVLink message to compress the data into
 *
 * @param time_usec Timestamp (UNIX)
 * @param sensor_id Sensor ID
 * @param flow_x Flow in pixels * 10 in x-sensor direction (dezi-pixels)
 * @param flow_y Flow in pixels * 10 in y-sensor direction (dezi-pixels)
 * @param flow_comp_m_x Flow in meters in x-sensor direction, angular-speed compensated
 * @param flow_comp_m_y Flow in meters in y-sensor direction, angular-speed compensated
 * @param quality Optical flow quality / confidence. 0: bad, 255: maximum quality
 * @param ground_distance Ground distance in meters. Positive value: distance known. Negative value: Unknown distance
 * @return length of the message in bytes (excluding serial stream start sign)
 */
static inline uint16_t mavlink_msg_optical_flow_pack(uint8_t system_id, uint8_t component_id, mavlink_message_t* msg,
						       uint64_t time_usec, uint8_t sensor_id, int16_t flow_x, int16_t flow_y, float flow_comp_m_x, float flow_comp_m_y, uint8_t quality, float ground_distance)
{
#if MAVLINK_NEED_BYTE_SWAP || !MAVLINK_ALIGNED_FIELDS
	char buf[MAVLINK_MSG_ID_OPTICAL_FLOW_LEN];
	_mav_put_uint64_t(buf, 0, time_usec);
	_mav_put_float(buf, 8, flow_comp_m_x);
	_mav_put_float(buf, 12, flow_comp_m_y);
	_mav_put_float(buf, 16, ground_distance);
	_mav_put_int16_t(buf, 20, flow_x);
	_mav_put_int16_t(buf, 22, flow_y);
	_mav_put_uint8_t(buf, 24, sensor_id);
	_mav_put_uint8_t(buf, 25, quality);

        memcpy(_MAV_PAYLOAD_NON_CONST(msg), buf, MAVLINK_MSG_ID_OPTICAL_FLOW_LEN);
#else
	mavlink_optical_flow_t packet;
	packet.time_usec = time_usec;
	packet.flow_comp_m_x = flow_comp_m_x;
	packet.flow_comp_m_y = flow_comp_m_y;
	packet.ground_distance = ground_distance;
	packet.flow_x = flow_x;
	packet.flow_y = flow_y;
	packet.sensor_id = sensor_id;
	packet.quality = quality;

        memcpy(_MAV_PAYLOAD_NON_CONST(msg), &packet, MAVLINK_MSG_ID_OPTICAL_FLOW_LEN);
#endif

	msg->msgid = MAVLINK_MSG_ID_OPTICAL_FLOW;
#if MAVLINK_CRC_EXTRA
    return mavlink_finalize_message(msg, system_id, component_id, MAVLINK_MSG_ID_OPTICAL_FLOW_LEN, MAVLINK_MSG_ID_OPTICAL_FLOW_CRC);
#else
    return mavlink_finalize_message(msg, system_id, component_id, MAVLINK_MSG_ID_OPTICAL_FLOW_LEN);
#endif
}

/**
 * @brief Pack a optical_flow message on a channel
 * @param system_id ID of this system
 * @param component_id ID of this component (e.g. 200 for IMU)
 * @param chan The MAVLink channel this message will be sent over
 * @param msg The MAVLink message to compress the data into
 * @param time_usec Timestamp (UNIX)
 * @param sensor_id Sensor ID
 * @param flow_x Flow in pixels * 10 in x-sensor direction (dezi-pixels)
 * @param flow_y Flow in pixels * 10 in y-sensor direction (dezi-pixels)
 * @param flow_comp_m_x Flow in meters in x-sensor direction, angular-speed compensated
 * @param flow_comp_m_y Flow in meters in y-sensor direction, angular-speed compensated
 * @param quality Optical flow quality / confidence. 0: bad, 255: maximum quality
 * @param ground_distance Ground distance in meters. Positive value: distance known. Negative value: Unknown distance
 * @return length of the message in bytes (excluding serial stream start sign)
 */
static inline uint16_t mavlink_msg_optical_flow_pack_chan(uint8_t system_id, uint8_t component_id, uint8_t chan,
							   mavlink_message_t* msg,
						           uint64_t time_usec,uint8_t sensor_id,int16_t flow_x,int16_t flow_y,float flow_comp_m_x,float flow_comp_m_y,uint8_t quality,float ground_distance)
{
#if MAVLINK_NEED_BYTE_SWAP || !MAVLINK_ALIGNED_FIELDS
	char buf[MAVLINK_MSG_ID_OPTICAL_FLOW_LEN];
	_mav_put_uint64_t(buf, 0, time_usec);
	_mav_put_float(buf, 8, flow_comp_m_x);
	_mav_put_float(buf, 12, flow_comp_m_y);
	_mav_put_float(buf, 16, ground_distance);
	_mav_put_int16_t(buf, 20, flow_x);
	_mav_put_int16_t(buf, 22, flow_y);
	_mav_put_uint8_t(buf, 24, sensor_id);
	_mav_put_uint8_t(buf, 25, quality);

        memcpy(_MAV_PAYLOAD_NON_CONST(msg), buf, MAVLINK_MSG_ID_OPTICAL_FLOW_LEN);
#else
	mavlink_optical_flow_t packet;
	packet.time_usec = time_usec;
	packet.flow_comp_m_x = flow_comp_m_x;
	packet.flow_comp_m_y = flow_comp_m_y;
	packet.ground_distance = ground_distance;
	packet.flow_x = flow_x;
	packet.flow_y = flow_y;
	packet.sensor_id = sensor_id;
	packet.quality = quality;

        memcpy(_MAV_PAYLOAD_NON_CONST(msg), &packet, MAVLINK_MSG_ID_OPTICAL_FLOW_LEN);
#endif

	msg->msgid = MAVLINK_MSG_ID_OPTICAL_FLOW;
#if MAVLINK_CRC_EXTRA
    return mavlink_finalize_message_chan(msg, system_id, component_id, chan, MAVLINK_MSG_ID_OPTICAL_FLOW_LEN, MAVLINK_MSG_ID_OPTICAL_FLOW_CRC);
#else
    return mavlink_finalize_message_chan(msg, system_id, component_id, chan, MAVLINK_MSG_ID_OPTICAL_FLOW_LEN);
#endif
}

/**
 * @brief Encode a optical_flow struct
 *
 * @param system_id ID of this system
 * @param component_id ID of this component (e.g. 200 for IMU)
 * @param msg The MAVLink message to compress the data into
 * @param optical_flow C-struct to read the message contents from
 */
static inline uint16_t mavlink_msg_optical_flow_encode(uint8_t system_id, uint8_t component_id, mavlink_message_t* msg, const mavlink_optical_flow_t* optical_flow)
{
	return mavlink_msg_optical_flow_pack(system_id, component_id, msg, optical_flow->time_usec, optical_flow->sensor_id, optical_flow->flow_x, optical_flow->flow_y, optical_flow->flow_comp_m_x, optical_flow->flow_comp_m_y, optical_flow->quality, optical_flow->ground_distance);
}

/**
 * @brief Encode a optical_flow struct on a channel
 *
 * @param system_id ID of this system
 * @param component_id ID of this component (e.g. 200 for IMU)
 * @param chan The MAVLink channel this message will be sent over
 * @param msg The MAVLink message to compress the data into
 * @param optical_flow C-struct to read the message contents from
 */
static inline uint16_t mavlink_msg_optical_flow_encode_chan(uint8_t system_id, uint8_t component_id, uint8_t chan, mavlink_message_t* msg, const mavlink_optical_flow_t* optical_flow)
{
	return mavlink_msg_optical_flow_pack_chan(system_id, component_id, chan, msg, optical_flow->time_usec, optical_flow->sensor_id, optical_flow->flow_x, optical_flow->flow_y, optical_flow->flow_comp_m_x, optical_flow->flow_comp_m_y, optical_flow->quality, optical_flow->ground_distance);
}

/**
 * @brief Send a optical_flow message
 * @param chan MAVLink channel to send the message
 *
 * @param time_usec Timestamp (UNIX)
 * @param sensor_id Sensor ID
 * @param flow_x Flow in pixels * 10 in x-sensor direction (dezi-pixels)
 * @param flow_y Flow in pixels * 10 in y-sensor direction (dezi-pixels)
 * @param flow_comp_m_x Flow in meters in x-sensor direction, angular-speed compensated
 * @param flow_comp_m_y Flow in meters in y-sensor direction, angular-speed compensated
 * @param quality Optical flow quality / confidence. 0: bad, 255: maximum quality
 * @param ground_distance Ground distance in meters. Positive value: distance known. Negative value: Unknown distance
 */
#ifdef MAVLINK_USE_CONVENIENCE_FUNCTIONS

static inline void mavlink_msg_optical_flow_send(mavlink_channel_t chan, uint64_t time_usec, uint8_t sensor_id, int16_t flow_x, int16_t flow_y, float flow_comp_m_x, float flow_comp_m_y, uint8_t quality, float ground_distance)
{
#if MAVLINK_NEED_BYTE_SWAP || !MAVLINK_ALIGNED_FIELDS
	char buf[MAVLINK_MSG_ID_OPTICAL_FLOW_LEN];
	_mav_put_uint64_t(buf, 0, time_usec);
	_mav_put_float(buf, 8, flow_comp_m_x);
	_mav_put_float(buf, 12, flow_comp_m_y);
	_mav_put_float(buf, 16, ground_distance);
	_mav_put_int16_t(buf, 20, flow_x);
	_mav_put_int16_t(buf, 22, flow_y);
	_mav_put_uint8_t(buf, 24, sensor_id);
	_mav_put_uint8_t(buf, 25, quality);

#if MAVLINK_CRC_EXTRA
    _mav_finalize_message_chan_send(chan, MAVLINK_MSG_ID_OPTICAL_FLOW, buf, MAVLINK_MSG_ID_OPTICAL_FLOW_LEN, MAVLINK_MSG_ID_OPTICAL_FLOW_CRC);
#else
    _mav_finalize_message_chan_send(chan, MAVLINK_MSG_ID_OPTICAL_FLOW, buf, MAVLINK_MSG_ID_OPTICAL_FLOW_LEN);
#endif
#else
	mavlink_optical_flow_t packet;
	packet.time_usec = time_usec;
	packet.flow_comp_m_x = flow_comp_m_x;
	packet.flow_comp_m_y = flow_comp_m_y;
	packet.ground_distance = ground_distance;
	packet.flow_x = flow_x;
	packet.flow_y = flow_y;
	packet.sensor_id = sensor_id;
	packet.quality = quality;

#if MAVLINK_CRC_EXTRA
    _mav_finalize_message_chan_send(chan, MAVLINK_MSG_ID_OPTICAL_FLOW, (const char *)&packet, MAVLINK_MSG_ID_OPTICAL_FLOW_LEN, MAVLINK_MSG_ID_OPTICAL_FLOW_CRC);
#else
    _mav_finalize_message_chan_send(chan, MAVLINK_MSG_ID_OPTICAL_FLOW, (const char *)&packet, MAVLINK_MSG_ID_OPTICAL_FLOW_LEN);
#endif
#endif
}

#if MAVLINK_MSG_ID_OPTICAL_FLOW_LEN <= MAVLINK_MAX_PAYLOAD_LEN
/*
  This varient of _send() can be used to save stack space by re-using
  memory from the receive buffer.  The caller provides a
  mavlink_message_t which is the size of a full mavlink message. This
  is usually the receive buffer for the channel, and allows a reply to an
  incoming message with minimum stack space usage.
 */
static inline void mavlink_msg_optical_flow_send_buf(mavlink_message_t *msgbuf, mavlink_channel_t chan,  uint64_t time_usec, uint8_t sensor_id, int16_t flow_x, int16_t flow_y, float flow_comp_m_x, float flow_comp_m_y, uint8_t quality, float ground_distance)
{
#if MAVLINK_NEED_BYTE_SWAP || !MAVLINK_ALIGNED_FIELDS
	char *buf = (char *)msgbuf;
	_mav_put_uint64_t(buf, 0, time_usec);
	_mav_put_float(buf, 8, flow_comp_m_x);
	_mav_put_float(buf, 12, flow_comp_m_y);
	_mav_put_float(buf, 16, ground_distance);
	_mav_put_int16_t(buf, 20, flow_x);
	_mav_put_int16_t(buf, 22, flow_y);
	_mav_put_uint8_t(buf, 24, sensor_id);
	_mav_put_uint8_t(buf, 25, quality);

#if MAVLINK_CRC_EXTRA
    _mav_finalize_message_chan_send(chan, MAVLINK_MSG_ID_OPTICAL_FLOW, buf, MAVLINK_MSG_ID_OPTICAL_FLOW_LEN, MAVLINK_MSG_ID_OPTICAL_FLOW_CRC);
#else
    _mav_finalize_message_chan_send(chan, MAVLINK_MSG_ID_OPTICAL_FLOW, buf, MAVLINK_MSG_ID_OPTICAL_FLOW_LEN);
#endif
#else
	mavlink_optical_flow_t *packet = (mavlink_optical_flow_t *)msgbuf;
	packet->time_usec = time_usec;
	packet->flow_comp_m_x = flow_comp_m_x;
	packet->flow_comp_m_y = flow_comp_m_y;
	packet->ground_distance = ground_distance;
	packet->flow_x = flow_x;
	packet->flow_y = flow_y;
	packet->sensor_id = sensor_id;
	packet->quality = quality;

#if MAVLINK_CRC_EXTRA
    _mav_finalize_message_chan_send(chan, MAVLINK_MSG_ID_OPTICAL_FLOW, (const char *)packet, MAVLINK_MSG_ID_OPTICAL_FLOW_LEN, MAVLINK_MSG_ID_OPTICAL_FLOW_CRC);
#else
    _mav_finalize_message_chan_send(chan, MAVLINK_MSG_ID_OPTICAL_FLOW, (const char *)packet, MAVLINK_MSG_ID_OPTICAL_FLOW_LEN);
#endif
#endif
}
#endif

#endif

// MESSAGE OPTICAL_FLOW UNPACKING

/**
 * @brief Get field time_usec from optical_flow message
 *
 * @return Timestamp (UNIX)
 */
static inline uint64_t mavlink_msg_optical_flow_get_time_usec(const mavlink_message_t* msg)
{
	return _MAV_RETURN_uint64_t(msg,  0);
}

/**
 * @brief Get field sensor_id from optical_flow message
 *
 * @return Sensor ID
 */
static inline uint8_t mavlink_msg_optical_flow_get_sensor_id(const mavlink_message_t* msg)
{
	return _MAV_RETURN_uint8_t(msg,  24);
}

/**
 * @brief Get field flow_x from optical_flow message
 *
 * @return Flow in pixels * 10 in x-sensor direction (dezi-pixels)
 */
static inline int16_t mavlink_msg_optical_flow_get_flow_x(const mavlink_message_t* msg)
{
	return _MAV_RETURN_int16_t(msg,  20);
}

/**
 * @brief Get field flow_y from optical_flow message
 *
 * @return Flow in pixels * 10 in y-sensor direction (dezi-pixels)
 */
static inline int16_t mavlink_msg_optical_flow_get_flow_y(const mavlink_message_t* msg)
{
	return _MAV_RETURN_int16_t(msg,  22);
}

/**
 * @brief Get field flow_comp_m_x from optical_flow message
 *
 * @return Flow in meters in x-sensor direction, angular-speed compensated
 */
static inline float mavlink_msg_optical_flow_get_flow_comp_m_x(const mavlink_message_t* msg)
{
	return _MAV_RETURN_float(msg,  8);
}

/**
 * @brief Get field flow_comp_m_y from optical_flow message
 *
 * @return Flow in meters in y-sensor direction, angular-speed compensated
 */
static inline float mavlink_msg_optical_flow_get_flow_comp_m_y(const mavlink_message_t* msg)
{
	return _MAV_RETURN_float(msg,  12);
}

/**
 * @brief Get field quality from optical_flow message
 *
 * @return Optical flow quality / confidence. 0: bad, 255: maximum quality
 */
static inline uint8_t mavlink_msg_optical_flow_get_quality(const mavlink_message_t* msg)
{
	return _MAV_RETURN_uint8_t(msg,  25);
}

/**
 * @brief Get field ground_distance from optical_flow message
 *
 * @return Ground distance in meters. Positive value: distance known. Negative value: Unknown distance
 */
static inline float mavlink_msg_optical_flow_get_ground_distance(const mavlink_message_t* msg)
{
	return _MAV_RETURN_float(msg,  16);
}

/**
 * @brief Decode a optical_flow message into a struct
 *
 * @param msg The message to decode
 * @param optical_flow C-struct to decode the message contents into
 */
static inline void mavlink_msg_optical_flow_decode(const mavlink_message_t* msg, mavlink_optical_flow_t* optical_flow)
{
#if MAVLINK_NEED_BYTE_SWAP
	optical_flow->time_usec = mavlink_msg_optical_flow_get_time_usec(msg);
	optical_flow->flow_comp_m_x = mavlink_msg_optical_flow_get_flow_comp_m_x(msg);
	optical_flow->flow_comp_m_y = mavlink_msg_optical_flow_get_flow_comp_m_y(msg);
	optical_flow->ground_distance = mavlink_msg_optical_flow_get_ground_distance(msg);
	optical_flow->flow_x = mavlink_msg_optical_flow_get_flow_x(msg);
	optical_flow->flow_y = mavlink_msg_optical_flow_get_flow_y(msg);
	optical_flow->sensor_id = mavlink_msg_optical_flow_get_sensor_id(msg);
	optical_flow->quality = mavlink_msg_optical_flow_get_quality(msg);
#else
	memcpy(optical_flow, _MAV_PAYLOAD(msg), MAVLINK_MSG_ID_OPTICAL_FLOW_LEN);
#endif
}


text:
/**
 * Apache Licence Version 2.0
 * Please read the LICENCE file
 */
package org.hypothesis.slide.client.ui.mask;

import com.google.gwt.dom.client.Document;
import com.google.gwt.dom.client.Element;
import com.google.gwt.dom.client.Style;
import com.google.gwt.dom.client.Style.Position;
import com.google.gwt.dom.client.Style.Unit;
import com.google.gwt.user.client.ui.Widget;
import com.vaadin.client.ComponentConnector;
import com.vaadin.client.ServerConnector;
import com.vaadin.client.communication.StateChangeEvent;
import com.vaadin.client.extensions.AbstractExtensionConnector;
import com.vaadin.shared.ui.Connect;
import org.hypothesis.slide.shared.ui.mask.MaskClientRpc;
import org.hypothesis.slide.shared.ui.mask.MaskState;

/**
 * @author Kamil Morong, Tilioteo Ltd
 *
 *         Hypothesis
 *
 */
@SuppressWarnings("serial")
@Connect(org.hypothesis.slide.ui.Mask.class)
public class MaskConnector extends AbstractExtensionConnector {

	private Widget widget;
	private Element maskElement = null;
	Position position = null;

	public MaskConnector() {
		registerRpc(MaskClientRpc.class, new MaskClientRpc() {

			@Override
			public void show() {
				mask();
			}

			@Override
			public void hide() {
				unmask();
			}
		});
	}

	@Override
	protected void extend(ServerConnector target) {
		widget = ((ComponentConnector) target).getWidget();
		position = positionFromString(widget.getElement().getStyle().getPosition());
	}

	protected void mask() {
		if (null == maskElement && widget != null) {
			Element parentElement = widget.getElement();
			maskElement = Document.get().createDivElement();
			parentElement.appendChild(maskElement);
			Style style = maskElement.getStyle();
			style.setPosition(Position.ABSOLUTE);
			style.setZIndex(1000000000);
			style.setTop(0, Unit.PX);
			style.setLeft(0, Unit.PX);
			style.setWidth(100, Unit.PCT);
			style.setHeight(100, Unit.PCT);

			style.setProperty("background", getState().color);
			// style.setOpacity(getState().opacity);

			if (null == position) {
				widget.getElement().getStyle().setPosition(Style.Position.RELATIVE);
			}
		}
	}

	private Position positionFromString(String position) {
		if (position != null && !position.trim().isEmpty()) {
			for (Position pos : Position.values()) {
				if (pos.getCssName().equalsIgnoreCase(position)) {
					return pos;
				}
			}
		}
		return null;
	}

	protected void unmask() {
		if (maskElement != null) {
			maskElement.removeFromParent();
			maskElement = null;

			if (null == position) {
				widget.getElement().getStyle().clearPosition();
			} else {
				widget.getElement().getStyle().setPosition(position);
			}
		}
	}

	@Override
	public MaskState getState() {
		return (MaskState) super.getState();
	}

	@Override
	public void onStateChanged(StateChangeEvent stateChangeEvent) {
		super.onStateChanged(stateChangeEvent);

		if (maskElement != null) {
			Style style = maskElement.getStyle();
			if (stateChangeEvent.hasPropertyChanged("color")) {
				style.setBackgroundColor(getState().color);
			}
			/*
			 * if (stateChangeEvent.hasPropertyChanged("opacity")) {
			 * style.setOpacity(getState().opacity); }
			 */
		}
	}
}


text:
ACCEPTED

#### According to
Index Fungorum

#### Published in
Observ. mycol. (Lipsiae) 1: 66 (1796)

#### Original name
Sphaeria lata var. lata Pers.

### Remarks
null


text:
var Resizeable = Class.create();
Resizeable.prototype = {
  initialize: function(element) {
    var options = Object.extend({
      top: 6,
      bottom: 6,
      left: 6,
      right: 6,
      minHeight: 0,
      minWidth: 0,
      zindex: 1000,
      resize: null,
      duringresize: null
    }, arguments[1] || {});

    this.element      = $(element);
    this.handle 	  = this.element;

    Element.makePositioned(this.element); // fix IE

    this.options      = options;

    this.active       = false;
    this.resizing     = false;
    this.currentDirection = '';

    this.eventMouseDown = this.startResize.bindAsEventListener(this);
    this.eventMouseUp   = this.endResize.bindAsEventListener(this);
    this.eventMouseMove = this.update.bindAsEventListener(this);
    this.eventCursorCheck = this.cursor.bindAsEventListener(this);
    this.eventKeypress  = this.keyPress.bindAsEventListener(this);

    this.registerEvents();
  },
  destroy: function() {
    Event.stopObserving(this.handle, "mousedown", this.eventMouseDown);
    this.unregisterEvents();
  },
  registerEvents: function() {
    Event.observe(document, "mouseup", this.eventMouseUp);
    Event.observe(document, "mousemove", this.eventMouseMove);
    Event.observe(document, "keypress", this.eventKeypress);
    Event.observe(this.handle, "mousedown", this.eventMouseDown);
    Event.observe(this.element, "mousemove", this.eventCursorCheck);
  },
  unregisterEvents: function() {
    //if(!this.active) return;
    //Event.stopObserving(document, "mouseup", this.eventMouseUp);
    //Event.stopObserving(document, "mousemove", this.eventMouseMove);
    //Event.stopObserving(document, "mousemove", this.eventCursorCheck);
    //Event.stopObserving(document, "keypress", this.eventKeypress);
  },
  startResize: function(event) {
    if(Event.isLeftClick(event)) {

      // abort on form elements, fixes a Firefox issue
      var src = Event.element(event);
      if(src.tagName && (
        src.tagName=='INPUT' ||
        src.tagName=='SELECT' ||
        src.tagName=='BUTTON' ||
        src.tagName=='TEXTAREA')) return;

	  var dir = this.directions(event);
	  if (dir.length > 0) {
	      this.active = true;
    	  var offsets = Position.cumulativeOffset(this.element);
	      this.startTop = offsets[1];
	      this.startLeft = offsets[0];
	      this.startWidth = parseInt(Element.getStyle(this.element, 'width'));
	      this.startHeight = parseInt(Element.getStyle(this.element, 'height'));
	      this.startX = event.clientX + document.body.scrollLeft + document.documentElement.scrollLeft;
	      this.startY = event.clientY + document.body.scrollTop + document.documentElement.scrollTop;

	      this.currentDirection = dir;
	      Event.stop(event);
	  }
    }
  },
  finishResize: function(event, success) {
    // this.unregisterEvents();

    this.active = false;
    this.resizing = false;

    if(this.options.zindex)
      this.element.style.zIndex = this.originalZ;

    if (this.options.resize) {
    	this.options.resize(this.element);
    }
  },
  keyPress: function(event) {
    if(this.active) {
      if(event.keyCode==Event.KEY_ESC) {
        this.finishResize(event, false);
        Event.stop(event);
      }
    }
  },
  endResize: function(event) {
    if(this.active && this.resizing) {
      this.finishResize(event, true);
      Event.stop(event);
    }
    this.active = false;
    this.resizing = false;
  },
  draw: function(event) {
    var pointer = [Event.pointerX(event), Event.pointerY(event)];
    var style = this.element.style;
    if (this.currentDirection.indexOf('n') != -1) {
    	var pointerMoved = this.startY - pointer[1];
    	var margin = Element.getStyle(this.element, 'margin-top') || "0";
    	var newHeight = this.startHeight + pointerMoved;
    	if (newHeight > this.options.minHeight) {
    		style.height = newHeight + "px";
    		style.top = (this.startTop - pointerMoved - parseInt(margin)) + "px";
    	}
    }
    if (this.currentDirection.indexOf('w') != -1) {
    	var pointerMoved = this.startX - pointer[0];
    	var margin = Element.getStyle(this.element, 'margin-left') || "0";
    	var newWidth = this.startWidth + pointerMoved;
    	if (newWidth > this.options.minWidth) {
    		style.left = (this.startLeft - pointerMoved - parseInt(margin))  + "px";
    		style.width = newWidth + "px";
    	}
    }
    if (this.currentDirection.indexOf('s') != -1) {
    	var newHeight = this.startHeight + pointer[1] - this.startY;
    	if (newHeight > this.options.minHeight) {
    		style.height = newHeight + "px";
    	}
    }
    if (this.currentDirection.indexOf('e') != -1) {
    	var newWidth = this.startWidth + pointer[0] - this.startX;
    	if (newWidth > this.options.minWidth) {
    		style.width = newWidth + "px";
    	}
    }
    if(style.visibility=="hidden") style.visibility = ""; // fix gecko rendering
  },
  between: function(val, low, high) {
  	return (val >= low && val < high);
  },
  directions: function(event) {
    var pointer = [Event.pointerX(event), Event.pointerY(event)];
    var offsets = Position.cumulativeOffset(this.element);

	var cursor = '';
	if (this.between(pointer[1] - offsets[1], 0, this.options.top)) cursor += 'n';
	if (this.between((offsets[1] + this.element.offsetHeight) - pointer[1], 0, this.options.bottom)) cursor += 's';
	if (this.between(pointer[0] - offsets[0], 0, this.options.left)) cursor += 'w';
	if (this.between((offsets[0] + this.element.offsetWidth) - pointer[0], 0, this.options.right)) cursor += 'e';

	return cursor;
  },
  cursor: function(event) {
  	var cursor = this.directions(event);
	if (cursor.length > 0) {
		cursor += '-resize';
	} else {
		cursor = '';
	}
	this.element.style.cursor = cursor;
  },
  update: function(event) {
   if(this.active) {
      if(!this.resizing) {
        var style = this.element.style;
        this.resizing = true;

        if(Element.getStyle(this.element,'position')=='')
          style.position = "relative";

        if(this.options.zindex) {
          this.originalZ = parseInt(Element.getStyle(this.element,'z-index') || 0);
          style.zIndex = this.options.zindex;
        }
      }
      this.draw(event);
      if(this.options.duringresize) { this.options.duringresize(this.element); }
      // fix AppleWebKit rendering
      if(navigator.appVersion.indexOf('AppleWebKit')>0) window.scrollBy(0,0);
      Event.stop(event);
      return false;
   }
  }
}


text:
package com.mercadopago.android.px.internal.viewmodel;

import android.os.Parcel;
import android.support.annotation.NonNull;
import com.mercadopago.android.px.internal.viewmodel.handlers.PaymentModelHandler;
import com.mercadopago.android.px.model.BusinessPayment;
import com.mercadopago.android.px.model.Currency;
import com.mercadopago.android.px.model.PaymentResult;
import com.mercadopago.android.px.model.internal.CongratsResponse;
import com.mercadopago.android.px.model.internal.remedies.RemediesResponse;

public class BusinessPaymentModel extends PaymentModel {

    private final BusinessPayment businessPayment;

    public BusinessPaymentModel(@NonNull final BusinessPayment businessPayment,
        @NonNull final PaymentResult paymentResult, @NonNull final CongratsResponse congratsResponse,
        @NonNull final RemediesResponse remedies, @NonNull final Currency currency) {
        super(null, paymentResult, congratsResponse, remedies, currency);
        this.businessPayment = businessPayment;
    }

    @NonNull
    @Override
    public BusinessPayment getPayment() {
        return businessPayment;
    }

    /* default */ BusinessPaymentModel(final Parcel in) {
        super(in);
        businessPayment = in.readParcelable(BusinessPayment.class.getClassLoader());
    }

    @Override
    public void process(@NonNull final PaymentModelHandler handler) {
        handler.visit(this);
    }

    public static final Creator<BusinessPaymentModel> CREATOR = new Creator<BusinessPaymentModel>() {
        @Override
        public BusinessPaymentModel createFromParcel(final Parcel in) {
            return new BusinessPaymentModel(in);
        }

        @Override
        public BusinessPaymentModel[] newArray(final int size) {
            return new BusinessPaymentModel[size];
        }
    };

    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(final Parcel dest, final int flags) {
        super.writeToParcel(dest, flags);
        dest.writeParcelable(businessPayment, flags);
    }
}


text:
<bill session="110" type="h" number="168" updated="2009-01-08T17:03:44-05:00">
	<status><introduced date="1167886800" datetime="2007-01-04"/></status>

	<introduced date="1167886800" datetime="2007-01-04"/>
	<titles>
		<title type="short" as="introduced">Foreign Agents Compulsory Ethics in Trade Act of 2007</title>
		<title type="official" as="introduced">To amend section 207 of title 18, United States Code, to further restrict Federal officers and employees from representing or advising foreign entities after leaving Government service.</title>
	</titles>
	<sponsor id="400211"/>
	<cosponsors>

	</cosponsors>
	<actions>
		<action date="1167886800" datetime="2007-01-04"><text>Referred to the House Committee on the Judiciary.</text></action>
		<action date="1170392400" datetime="2007-02-02"><text>Referred to the Subcommittee on Crime, Terrorism, and Homeland Security.</text></action>
	</actions>
	<committees>

	</committees>
	<relatedbills>

	</relatedbills>
	<subjects>

	</subjects>
	<amendments>

	</amendments>

	1/4/2007--Introduced.
Foreign Agents Compulsory Ethics in Trade Act of 2007 - Amends the federal criminal code to impose: (1) a permanent restriction (currently, one year) on certain officers and employees of the federal government who have terminated their service or employment from advising or representing for compensation foreign governments or political parties in matters in which the United States is a party or has a direct and substantial interest; and (2) a five-year restriction on such officers and employees from similarly advising or representing foreign individuals, corporations, or other business entities.

</bill>


text:
package net.mindengine.blogix.config;

import java.util.HashMap;
import java.util.Map;
import java.util.Properties;

import net.mindengine.blogix.utils.BlogixFileUtils;

import org.apache.commons.io.FileUtils;

public class BlogixConfig {
    private static final String BLOGIX_SERVER_PORT = "blogix.server.port";
    private static final String CUSTOM_USER_PROPERTY_PREFIX = "custom.";
    private static final int CUSTOM_USER_PROPERTY_LENGTH = CUSTOM_USER_PROPERTY_PREFIX.length();
    private static final String MARKUP_CLASS = "markup.class";
    private static final String DEFAULT_CONTROLLER_PACKAGES = "default.controller.packages";
    private static final String DEFAULT_PROVIDER_PACKAGES = "default.provider.packages";
    private static final String DEFAULT_PUBLIC_PATH = "public";
    private static final String PUBLIC_PATH = "public.path";
    private static final String BLOGIX_FILEDB_PATH = "blogix.db.path";

    private Properties properties = new Properties();
    private Map<String, String> userCustomProperties;

    private static final BlogixConfig _instance = new BlogixConfig();
    private static final String MARKUP_PLUGINS_FOLDER = "markup.plugins.folder";
    private BlogixConfig() {
        try {
            properties.load(FileUtils.openInputStream(BlogixFileUtils.findFile("conf/properties")));
            userCustomProperties = loadUserCustomProperties();
        }
        catch (Exception e) {
            throw new RuntimeException("Cannot load blogix properties", e);
        }
    }

    private Map<String, String> loadUserCustomProperties() {
        Map<String, String> map = new HashMap<String, String>();
        for (Map.Entry<Object, Object> entry : properties.entrySet()) {
            String name = entry.getKey().toString();
            if (isPropertyUserCustom(name)) {
                map.put(stripUserProperty(name), entry.getValue().toString());
            }
        }
        return map;
    }

    private String stripUserProperty(String name) {
        return name.substring(CUSTOM_USER_PROPERTY_LENGTH);
    }

    private boolean isPropertyUserCustom(String name) {
        return name.startsWith(CUSTOM_USER_PROPERTY_PREFIX);
    }

    public static BlogixConfig getConfig() {
        return _instance;
    }

    public String[] getDefaultProviderPackages() {
        String value = (String) properties.get(DEFAULT_PROVIDER_PACKAGES);
        if ( value != null && !value.isEmpty() ) {
            return value.trim().split(",");
        }
        return new String[]{};
    }

    public String[] getDefaultControllerPackages() {
        String value = (String) properties.get(DEFAULT_CONTROLLER_PACKAGES);
        if ( value != null && !value.isEmpty() ) {
            return value.trim().split(",");
        }
        return new String[]{};
    }

    public String getPublicPath() {
        return properties.getProperty(PUBLIC_PATH, DEFAULT_PUBLIC_PATH);
    }

    public String getMarkupClass() {
        return (String) properties.get(MARKUP_CLASS);
    }

    public String getBlogixFileDbPath() {
        return properties.getProperty(BLOGIX_FILEDB_PATH);
    }

    public void removeProperty(String propertyName) {
        properties.remove(propertyName);
    }

    public void setProperty(String name, String value) {
        properties.setProperty(MARKUP_CLASS, value);
    }

    public String getProperty(String name, String defaultValue) {
        return properties.getProperty(name, defaultValue);
    }

    public Map<String, String> getUserCustomProperties() {
        return userCustomProperties;
    }

    public String getMarkupPluginsFolder() {
        return (String) properties.getProperty(MARKUP_PLUGINS_FOLDER);
    }

    public int getBlogixServerPort() {
        return Integer.parseInt(properties.getProperty(BLOGIX_SERVER_PORT, "8080"));
    }

}


text:
.class public Lgov/nist/javax/sip/header/MimeVersion;
.super Lgov/nist/javax/sip/header/SIPHeader;
.source "MimeVersion.java"

# interfaces
.implements Ljavax/sip/header/MimeVersionHeader;

# static fields
.field private static final serialVersionUID:J = -0x6e59b8a2cb581754L

# instance fields
.field protected majorVersion:I

.field protected minorVersion:I

# direct methods
.method public constructor <init>()V
    .locals 1

    .prologue
    .line 66
    const-string v0, "MIME-Version"

    invoke-direct {p0, v0}, Lgov/nist/javax/sip/header/SIPHeader;-><init>(Ljava/lang/String;)V

    .line 67
    return-void
.end method

# virtual methods
.method public encodeBody()Ljava/lang/String;
    .locals 2

    .prologue
    .line 124
    new-instance v0, Ljava/lang/StringBuilder;

    invoke-direct {v0}, Ljava/lang/StringBuilder;-><init>()V

    iget v1, p0, Lgov/nist/javax/sip/header/MimeVersion;->majorVersion:I

    invoke-static {v1}, Ljava/lang/Integer;->toString(I)Ljava/lang/String;

    move-result-object v1

    invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v0

    const-string v1, "."

    invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v0

    iget v1, p0, Lgov/nist/javax/sip/header/MimeVersion;->minorVersion:I

    invoke-static {v1}, Ljava/lang/Integer;->toString(I)Ljava/lang/String;

    move-result-object v1

    invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v0

    invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v0

    return-object v0
.end method

.method public getMajorVersion()I
    .locals 1

    .prologue
    .line 84
    iget v0, p0, Lgov/nist/javax/sip/header/MimeVersion;->majorVersion:I

    return v0
.end method

.method public getMinorVersion()I
    .locals 1

    .prologue
    .line 75
    iget v0, p0, Lgov/nist/javax/sip/header/MimeVersion;->minorVersion:I

    return v0
.end method

.method public setMajorVersion(I)V
    .locals 2
    .param p1, "majorVersion"    # I
    .annotation system Ldalvik/annotation/Throws;
        value = {
            Ljavax/sip/InvalidArgumentException;
        }
    .end annotation

    .prologue
    .line 112
    if-gez p1, :cond_0

    .line 113
    new-instance v0, Ljavax/sip/InvalidArgumentException;

    const-string v1, "JAIN-SIP Exception, MimeVersion, setMajorVersion(), the majorVersion parameter is null"

    invoke-direct {v0, v1}, Ljavax/sip/InvalidArgumentException;-><init>(Ljava/lang/String;)V

    throw v0

    .line 116
    :cond_0
    iput p1, p0, Lgov/nist/javax/sip/header/MimeVersion;->majorVersion:I

    .line 117
    return-void
.end method

.method public setMinorVersion(I)V
    .locals 2
    .param p1, "minorVersion"    # I
    .annotation system Ldalvik/annotation/Throws;
        value = {
            Ljavax/sip/InvalidArgumentException;
        }
    .end annotation

    .prologue
    .line 96
    if-gez p1, :cond_0

    .line 97
    new-instance v0, Ljavax/sip/InvalidArgumentException;

    const-string v1, "JAIN-SIP Exception, MimeVersion, setMinorVersion(), the minorVersion parameter is null"

    invoke-direct {v0, v1}, Ljavax/sip/InvalidArgumentException;-><init>(Ljava/lang/String;)V

    throw v0

    .line 100
    :cond_0
    iput p1, p0, Lgov/nist/javax/sip/header/MimeVersion;->minorVersion:I

    .line 101
    return-void
.end method


text:
//
// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.2.4-2
// See http://java.sun.com/xml/jaxb
// Any modifications to this file will be lost upon recompilation of the source schema.
// Generated on: 2015.01.01 at 04:45:11 PM CET
//

package com.bitplan.mediawiki.japi.api;

import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlAttribute;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlRootElement;
import javax.xml.bind.annotation.XmlSchemaType;
import javax.xml.bind.annotation.XmlType;
import javax.xml.datatype.XMLGregorianCalendar;

/**
 *
Java class for anonymous complex type.
 *
 *
The following schema fragment specifies the expected content contained within this class.
 *
 *

 * <complexType>
 *   <complexContent>
 *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
 *       <sequence>
 *         <element name="fallback" type="{http://www.w3.org/2001/XMLSchema}string"/>
 *         <element name="thumblimits">
 *           <complexType>
 *             <complexContent>
 *               <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
 *                 <sequence>
 *                   <element name="limit" maxOccurs="unbounded" minOccurs="0">
 *                     <simpleType>
 *                       <restriction base="{http://www.w3.org/2001/XMLSchema}short">
 *                         <enumeration value="120"/>
 *                         <enumeration value="150"/>
 *                         <enumeration value="180"/>
 *                         <enumeration value="200"/>
 *                         <enumeration value="220"/>
 *                         <enumeration value="250"/>
 *                         <enumeration value="300"/>
 *                       </restriction>
 *                     </simpleType>
 *                   </element>
 *                 </sequence>
 *               </restriction>
 *             </complexContent>
 *           </complexType>
 *         </element>
 *         <element name="imagelimits">
 *           <complexType>
 *             <complexContent>
 *               <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
 *                 <sequence>
 *                   <element name="limit" maxOccurs="unbounded" minOccurs="0">
 *                     <complexType>
 *                       <simpleContent>
 *                         <extension base="<http://www.w3.org/2001/XMLSchema>string">
 *                           <attribute name="width" type="{http://www.w3.org/2001/XMLSchema}short" />
 *                           <attribute name="height" type="{http://www.w3.org/2001/XMLSchema}short" />
 *                         </extension>
 *                       </simpleContent>
 *                     </complexType>
 *                   </element>
 *                 </sequence>
 *               </restriction>
 *             </complexContent>
 *           </complexType>
 *         </element>
 *         <element name="extensiondistributor">
 *           <complexType>
 *             <complexContent>
 *               <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
 *                 <sequence>
 *                   <element name="snapshots">
 *                     <complexType>
 *                       <complexContent>
 *                         <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
 *                           <sequence>
 *                             <element name="snapshot" maxOccurs="unbounded" minOccurs="0">
 *                               <simpleType>
 *                                 <restriction base="{http://www.w3.org/2001/XMLSchema}string">
 *                                   <enumeration value="master"/>
 *                                   <enumeration value="REL1_24"/>
 *                                   <enumeration value="REL1_23"/>
 *                                   <enumeration value="REL1_22"/>
 *                                   <enumeration value="REL1_21"/>
 *                                   <enumeration value="REL1_20"/>
 *                                   <enumeration value="REL1_19"/>
 *                                 </restriction>
 *                               </simpleType>
 *                             </element>
 *                           </sequence>
 *                         </restriction>
 *                       </complexContent>
 *                     </complexType>
 *                   </element>
 *                 </sequence>
 *                 <attribute name="list" type="{http://www.w3.org/2001/XMLSchema}string" />
 *               </restriction>
 *             </complexContent>
 *           </complexType>
 *         </element>
 *       </sequence>
 *       <attribute name="mainpage" type="{http://www.w3.org/2001/XMLSchema}string" />
 *       <attribute name="base" type="{http://www.w3.org/2001/XMLSchema}anyURI" />
 *       <attribute name="sitename" type="{http://www.w3.org/2001/XMLSchema}string" />
 *       <attribute name="logo" type="{http://www.w3.org/2001/XMLSchema}string" />
 *       <attribute name="generator" type="{http://www.w3.org/2001/XMLSchema}string" />
 *       <attribute name="phpversion" type="{http://www.w3.org/2001/XMLSchema}string" />
 *       <attribute name="phpsapi" type="{http://www.w3.org/2001/XMLSchema}string" />
 *       <attribute name="hhvmversion" type="{http://www.w3.org/2001/XMLSchema}string" />
 *       <attribute name="dbtype" type="{http://www.w3.org/2001/XMLSchema}string" />
 *       <attribute name="dbversion" type="{http://www.w3.org/2001/XMLSchema}string" />
 *       <attribute name="imagewhitelistenabled" type="{http://www.w3.org/2001/XMLSchema}string" />
 *       <attribute name="langconversion" type="{http://www.w3.org/2001/XMLSchema}string" />
 *       <attribute name="titleconversion" type="{http://www.w3.org/2001/XMLSchema}string" />
 *       <attribute name="linkprefixcharset" type="{http://www.w3.org/2001/XMLSchema}string" />
 *       <attribute name="linkprefix" type="{http://www.w3.org/2001/XMLSchema}string" />
 *       <attribute name="linktrail" type="{http://www.w3.org/2001/XMLSchema}string" />
 *       <attribute name="legaltitlechars" type="{http://www.w3.org/2001/XMLSchema}string" />
 *       <attribute name="git-hash" type="{http://www.w3.org/2001/XMLSchema}string" />
 *       <attribute name="git-branch" type="{http://www.w3.org/2001/XMLSchema}string" />
 *       <attribute name="case" type="{http://www.w3.org/2001/XMLSchema}string" />
 *       <attribute name="lang" type="{http://www.w3.org/2001/XMLSchema}string" />
 *       <attribute name="fallback8bitEncoding" type="{http://www.w3.org/2001/XMLSchema}string" />
 *       <attribute name="writeapi" type="{http://www.w3.org/2001/XMLSchema}string" />
 *       <attribute name="timezone" type="{http://www.w3.org/2001/XMLSchema}string" />
 *       <attribute name="timeoffset" type="{http://www.w3.org/2001/XMLSchema}byte" />
 *       <attribute name="articlepath" type="{http://www.w3.org/2001/XMLSchema}string" />
 *       <attribute name="scriptpath" type="{http://www.w3.org/2001/XMLSchema}string" />
 *       <attribute name="script" type="{http://www.w3.org/2001/XMLSchema}string" />
 *       <attribute name="server" type="{http://www.w3.org/2001/XMLSchema}string" />
 *       <attribute name="servername" type="{http://www.w3.org/2001/XMLSchema}anyURI" />
 *       <attribute name="wikiid" type="{http://www.w3.org/2001/XMLSchema}string" />
 *       <attribute name="time" type="{http://www.w3.org/2001/XMLSchema}dateTime" />
 *       <attribute name="misermode" type="{http://www.w3.org/2001/XMLSchema}string" />
 *       <attribute name="maxuploadsize" type="{http://www.w3.org/2001/XMLSchema}int" />
 *       <attribute name="favicon" type="{http://www.w3.org/2001/XMLSchema}string" />
 *     </restriction>
 *   </complexContent>
 * </complexType>
 *

 *
 *
 */
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "", propOrder = {
    "fallback",
    "thumblimits",
    "imagelimits",
    "extensiondistributor"
})
@XmlRootElement
public class General {

    @XmlElement(required = true)
    protected String fallback;
    @XmlElement(required = true)
    protected Thumblimits thumblimits;
    @XmlElement(required = true)
    protected Imagelimits imagelimits;
    @XmlElement(required = true)
    protected Extensiondistributor extensiondistributor;
    @XmlAttribute(name = "mainpage")
    protected String mainpage;
    @XmlAttribute(name = "base")
    @XmlSchemaType(name = "anyURI")
    protected String base;
    @XmlAttribute(name = "sitename")
    protected String sitename;
    @XmlAttribute(name = "logo")
    protected String logo;
    @XmlAttribute(name = "generator")
    protected String generator;
    @XmlAttribute(name = "phpversion")
    protected String phpversion;
    @XmlAttribute(name = "phpsapi")
    protected String phpsapi;
    @XmlAttribute(name = "hhvmversion")
    protected String hhvmversion;
    @XmlAttribute(name = "dbtype")
    protected String dbtype;
    @XmlAttribute(name = "dbversion")
    protected String dbversion;
    @XmlAttribute(name = "imagewhitelistenabled")
    protected String imagewhitelistenabled;
    @XmlAttribute(name = "langconversion")
    protected String langconversion;
    @XmlAttribute(name = "titleconversion")
    protected String titleconversion;
    @XmlAttribute(name = "linkprefixcharset")
    protected String linkprefixcharset;
    @XmlAttribute(name = "linkprefix")
    protected String linkprefix;
    @XmlAttribute(name = "linktrail")
    protected String linktrail;
    @XmlAttribute(name = "legaltitlechars")
    protected String legaltitlechars;
    @XmlAttribute(name = "git-hash")
    protected String gitHash;
    @XmlAttribute(name = "git-branch")
    protected String gitBranch;
    @XmlAttribute(name = "case")
    protected String _case;
    @XmlAttribute(name = "lang")
    protected String lang;
    @XmlAttribute(name = "fallback8bitEncoding")
    protected String fallback8BitEncoding;
    @XmlAttribute(name = "writeapi")
    protected String writeapi;
    @XmlAttribute(name = "timezone")
    protected String timezone;
    @XmlAttribute(name = "timeoffset")
    protected Byte timeoffset;
    @XmlAttribute(name = "articlepath")
    protected String articlepath;
    @XmlAttribute(name = "scriptpath")
    protected String scriptpath;
    @XmlAttribute(name = "script")
    protected String script;
    @XmlAttribute(name = "server")
    protected String server;
    @XmlAttribute(name = "servername")
    @XmlSchemaType(name = "anyURI")
    protected String servername;
    @XmlAttribute(name = "wikiid")
    protected String wikiid;
    @XmlAttribute(name = "time")
    @XmlSchemaType(name = "dateTime")
    protected XMLGregorianCalendar time;
    @XmlAttribute(name = "misermode")
    protected String misermode;
    @XmlAttribute(name = "maxuploadsize")
    protected Integer maxuploadsize;
    @XmlAttribute(name = "favicon")
    protected String favicon;

    /**
     * Gets the value of the fallback property.
     *
     * @return
     *     possible object is
     *     {@link String }
     *
     */
    public String getFallback() {
        return fallback;
    }

    /**
     * Sets the value of the fallback property.
     *
     * @param value
     *     allowed object is
     *     {@link String }
     *
     */
    public void setFallback(String value) {
        this.fallback = value;
    }

    /**
     * Gets the value of the thumblimits property.
     *
     * @return
     *     possible object is
     *     {@link Thumblimits }
     *
     */
    public Thumblimits getThumblimits() {
        return thumblimits;
    }

    /**
     * Sets the value of the thumblimits property.
     *
     * @param value
     *     allowed object is
     *     {@link Thumblimits }
     *
     */
    public void setThumblimits(Thumblimits value) {
        this.thumblimits = value;
    }

    /**
     * Gets the value of the imagelimits property.
     *
     * @return
     *     possible object is
     *     {@link Imagelimits }
     *
     */
    public Imagelimits getImagelimits() {
        return imagelimits;
    }

    /**
     * Sets the value of the imagelimits property.
     *
     * @param value
     *     allowed object is
     *     {@link Imagelimits }
     *
     */
    public void setImagelimits(Imagelimits value) {
        this.imagelimits = value;
    }

    /**
     * Gets the value of the extensiondistributor property.
     *
     * @return
     *     possible object is
     *     {@link Extensiondistributor }
     *
     */
    public Extensiondistributor getExtensiondistributor() {
        return extensiondistributor;
    }

    /**
     * Sets the value of the extensiondistributor property.
     *
     * @param value
     *     allowed object is
     *     {@link Extensiondistributor }
     *
     */
    public void setExtensiondistributor(Extensiondistributor value) {
        this.extensiondistributor = value;
    }

    /**
     * Gets the value of the mainpage property.
     *
     * @return
     *     possible object is
     *     {@link String }
     *
     */
    public String getMainpage() {
        return mainpage;
    }

    /**
     * Sets the value of the mainpage property.
     *
     * @param value
     *     allowed object is
     *     {@link String }
     *
     */
    public void setMainpage(String value) {
        this.mainpage = value;
    }

    /**
     * Gets the value of the base property.
     *
     * @return
     *     possible object is
     *     {@link String }
     *
     */
    public String getBase() {
        return base;
    }

    /**
     * Sets the value of the base property.
     *
     * @param value
     *     allowed object is
     *     {@link String }
     *
     */
    public void setBase(String value) {
        this.base = value;
    }

    /**
     * Gets the value of the sitename property.
     *
     * @return
     *     possible object is
     *     {@link String }
     *
     */
    public String getSitename() {
        return sitename;
    }

    /**
     * Sets the value of the sitename property.
     *
     * @param value
     *     allowed object is
     *     {@link String }
     *
     */
    public void setSitename(String value) {
        this.sitename = value;
    }

    /**
     * Gets the value of the logo property.
     *
     * @return
     *     possible object is
     *     {@link String }
     *
     */
    public String getLogo() {
        return logo;
    }

    /**
     * Sets the value of the logo property.
     *
     * @param value
     *     allowed object is
     *     {@link String }
     *
     */
    public void setLogo(String value) {
        this.logo = value;
    }

    /**
     * Gets the value of the generator property.
     *
     * @return
     *     possible object is
     *     {@link String }
     *
     */
    public String getGenerator() {
        return generator;
    }

    /**
     * Sets the value of the generator property.
     *
     * @param value
     *     allowed object is
     *     {@link String }
     *
     */
    public void setGenerator(String value) {
        this.generator = value;
    }

    /**
     * Gets the value of the phpversion property.
     *
     * @return
     *     possible object is
     *     {@link String }
     *
     */
    public String getPhpversion() {
        return phpversion;
    }

    /**
     * Sets the value of the phpversion property.
     *
     * @param value
     *     allowed object is
     *     {@link String }
     *
     */
    public void setPhpversion(String value) {
        this.phpversion = value;
    }

    /**
     * Gets the value of the phpsapi property.
     *
     * @return
     *     possible object is
     *     {@link String }
     *
     */
    public String getPhpsapi() {
        return phpsapi;
    }

    /**
     * Sets the value of the phpsapi property.
     *
     * @param value
     *     allowed object is
     *     {@link String }
     *
     */
    public void setPhpsapi(String value) {
        this.phpsapi = value;
    }

    /**
     * Gets the value of the hhvmversion property.
     *
     * @return
     *     possible object is
     *     {@link String }
     *
     */
    public String getHhvmversion() {
        return hhvmversion;
    }

    /**
     * Sets the value of the hhvmversion property.
     *
     * @param value
     *     allowed object is
     *     {@link String }
     *
     */
    public void setHhvmversion(String value) {
        this.hhvmversion = value;
    }

    /**
     * Gets the value of the dbtype property.
     *
     * @return
     *     possible object is
     *     {@link String }
     *
     */
    public String getDbtype() {
        return dbtype;
    }

    /**
     * Sets the value of the dbtype property.
     *
     * @param value
     *     allowed object is
     *     {@link String }
     *
     */
    public void setDbtype(String value) {
        this.dbtype = value;
    }

    /**
     * Gets the value of the dbversion property.
     *
     * @return
     *     possible object is
     *     {@link String }
     *
     */
    public String getDbversion() {
        return dbversion;
    }

    /**
     * Sets the value of the dbversion property.
     *
     * @param value
     *     allowed object is
     *     {@link String }
     *
     */
    public void setDbversion(String value) {
        this.dbversion = value;
    }

    /**
     * Gets the value of the imagewhitelistenabled property.
     *
     * @return
     *     possible object is
     *     {@link String }
     *
     */
    public String getImagewhitelistenabled() {
        return imagewhitelistenabled;
    }

    /**
     * Sets the value of the imagewhitelistenabled property.
     *
     * @param value
     *     allowed object is
     *     {@link String }
     *
     */
    public void setImagewhitelistenabled(String value) {
        this.imagewhitelistenabled = value;
    }

    /**
     * Gets the value of the langconversion property.
     *
     * @return
     *     possible object is
     *     {@link String }
     *
     */
    public String getLangconversion() {
        return langconversion;
    }

    /**
     * Sets the value of the langconversion property.
     *
     * @param value
     *     allowed object is
     *     {@link String }
     *
     */
    public void setLangconversion(String value) {
        this.langconversion = value;
    }

    /**
     * Gets the value of the titleconversion property.
     *
     * @return
     *     possible object is
     *     {@link String }
     *
     */
    public String getTitleconversion() {
        return titleconversion;
    }

    /**
     * Sets the value of the titleconversion property.
     *
     * @param value
     *     allowed object is
     *     {@link String }
     *
     */
    public void setTitleconversion(String value) {
        this.titleconversion = value;
    }

    /**
     * Gets the value of the linkprefixcharset property.
     *
     * @return
     *     possible object is
     *     {@link String }
     *
     */
    public String getLinkprefixcharset() {
        return linkprefixcharset;
    }

    /**
     * Sets the value of the linkprefixcharset property.
     *
     * @param value
     *     allowed object is
     *     {@link String }
     *
     */
    public void setLinkprefixcharset(String value) {
        this.linkprefixcharset = value;
    }

    /**
     * Gets the value of the linkprefix property.
     *
     * @return
     *     possible object is
     *     {@link String }
     *
     */
    public String getLinkprefix() {
        return linkprefix;
    }

    /**
     * Sets the value of the linkprefix property.
     *
     * @param value
     *     allowed object is
     *     {@link String }
     *
     */
    public void setLinkprefix(String value) {
        this.linkprefix = value;
    }

    /**
     * Gets the value of the linktrail property.
     *
     * @return
     *     possible object is
     *     {@link String }
     *
     */
    public String getLinktrail() {
        return linktrail;
    }

    /**
     * Sets the value of the linktrail property.
     *
     * @param value
     *     allowed object is
     *     {@link String }
     *
     */
    public void setLinktrail(String value) {
        this.linktrail = value;
    }

    /**
     * Gets the value of the legaltitlechars property.
     *
     * @return
     *     possible object is
     *     {@link String }
     *
     */
    public String getLegaltitlechars() {
        return legaltitlechars;
    }

    /**
     * Sets the value of the legaltitlechars property.
     *
     * @param value
     *     allowed object is
     *     {@link String }
     *
     */
    public void setLegaltitlechars(String value) {
        this.legaltitlechars = value;
    }

    /**
     * Gets the value of the gitHash property.
     *
     * @return
     *     possible object is
     *     {@link String }
     *
     */
    public String getGitHash() {
        return gitHash;
    }

    /**
     * Sets the value of the gitHash property.
     *
     * @param value
     *     allowed object is
     *     {@link String }
     *
     */
    public void setGitHash(String value) {
        this.gitHash = value;
    }

    /**
     * Gets the value of the gitBranch property.
     *
     * @return
     *     possible object is
     *     {@link String }
     *
     */
    public String getGitBranch() {
        return gitBranch;
    }

    /**
     * Sets the value of the gitBranch property.
     *
     * @param value
     *     allowed object is
     *     {@link String }
     *
     */
    public void setGitBranch(String value) {
        this.gitBranch = value;
    }

    /**
     * Gets the value of the case property.
     *
     * @return
     *     possible object is
     *     {@link String }
     *
     */
    public String getCase() {
        return _case;
    }

    /**
     * Sets the value of the case property.
     *
     * @param value
     *     allowed object is
     *     {@link String }
     *
     */
    public void setCase(String value) {
        this._case = value;
    }

    /**
     * Gets the value of the lang property.
     *
     * @return
     *     possible object is
     *     {@link String }
     *
     */
    public String getLang() {
        return lang;
    }

    /**
     * Sets the value of the lang property.
     *
     * @param value
     *     allowed object is
     *     {@link String }
     *
     */
    public void setLang(String value) {
        this.lang = value;
    }

    /**
     * Gets the value of the fallback8BitEncoding property.
     *
     * @return
     *     possible object is
     *     {@link String }
     *
     */
    public String getFallback8BitEncoding() {
        return fallback8BitEncoding;
    }

    /**
     * Sets the value of the fallback8BitEncoding property.
     *
     * @param value
     *     allowed object is
     *     {@link String }
     *
     */
    public void setFallback8BitEncoding(String value) {
        this.fallback8BitEncoding = value;
    }

    /**
     * Gets the value of the writeapi property.
     *
     * @return
     *     possible object is
     *     {@link String }
     *
     */
    public String getWriteapi() {
        return writeapi;
    }

    /**
     * Sets the value of the writeapi property.
     *
     * @param value
     *     allowed object is
     *     {@link String }
     *
     */
    public void setWriteapi(String value) {
        this.writeapi = value;
    }

    /**
     * Gets the value of the timezone property.
     *
     * @return
     *     possible object is
     *     {@link String }
     *
     */
    public String getTimezone() {
        return timezone;
    }

    /**
     * Sets the value of the timezone property.
     *
     * @param value
     *     allowed object is
     *     {@link String }
     *
     */
    public void setTimezone(String value) {
        this.timezone = value;
    }

    /**
     * Gets the value of the timeoffset property.
     *
     * @return
     *     possible object is
     *     {@link Byte }
     *
     */
    public Byte getTimeoffset() {
        return timeoffset;
    }

    /**
     * Sets the value of the timeoffset property.
     *
     * @param value
     *     allowed object is
     *     {@link Byte }
     *
     */
    public void setTimeoffset(Byte value) {
        this.timeoffset = value;
    }

    /**
     * Gets the value of the articlepath property.
     *
     * @return
     *     possible object is
     *     {@link String }
     *
     */
    public String getArticlepath() {
        return articlepath;
    }

    /**
     * Sets the value of the articlepath property.
     *
     * @param value
     *     allowed object is
     *     {@link String }
     *
     */
    public void setArticlepath(String value) {
        this.articlepath = value;
    }

    /**
     * Gets the value of the scriptpath property.
     *
     * @return
     *     possible object is
     *     {@link String }
     *
     */
    public String getScriptpath() {
        return scriptpath;
    }

    /**
     * Sets the value of the scriptpath property.
     *
     * @param value
     *     allowed object is
     *     {@link String }
     *
     */
    public void setScriptpath(String value) {
        this.scriptpath = value;
    }

    /**
     * Gets the value of the script property.
     *
     * @return
     *     possible object is
     *     {@link String }
     *
     */
    public String getScript() {
        return script;
    }

    /**
     * Sets the value of the script property.
     *
     * @param value
     *     allowed object is
     *     {@link String }
     *
     */
    public void setScript(String value) {
        this.script = value;
    }

    /**
     * Gets the value of the server property.
     *
     * @return
     *     possible object is
     *     {@link String }
     *
     */
    public String getServer() {
        return server;
    }

    /**
     * Sets the value of the server property.
     *
     * @param value
     *     allowed object is
     *     {@link String }
     *
     */
    public void setServer(String value) {
        this.server = value;
    }

    /**
     * Gets the value of the servername property.
     *
     * @return
     *     possible object is
     *     {@link String }
     *
     */
    public String getServername() {
        return servername;
    }

    /**
     * Sets the value of the servername property.
     *
     * @param value
     *     allowed object is
     *     {@link String }
     *
     */
    public void setServername(String value) {
        this.servername = value;
    }

    /**
     * Gets the value of the wikiid property.
     *
     * @return
     *     possible object is
     *     {@link String }
     *
     */
    public String getWikiid() {
        return wikiid;
    }

    /**
     * Sets the value of the wikiid property.
     *
     * @param value
     *     allowed object is
     *     {@link String }
     *
     */
    public void setWikiid(String value) {
        this.wikiid = value;
    }

    /**
     * Gets the value of the time property.
     *
     * @return
     *     possible object is
     *     {@link XMLGregorianCalendar }
     *
     */
    public XMLGregorianCalendar getTime() {
        return time;
    }

    /**
     * Sets the value of the time property.
     *
     * @param value
     *     allowed object is
     *     {@link XMLGregorianCalendar }
     *
     */
    public void setTime(XMLGregorianCalendar value) {
        this.time = value;
    }

    /**
     * Gets the value of the misermode property.
     *
     * @return
     *     possible object is
     *     {@link String }
     *
     */
    public String getMisermode() {
        return misermode;
    }

    /**
     * Sets the value of the misermode property.
     *
     * @param value
     *     allowed object is
     *     {@link String }
     *
     */
    public void setMisermode(String value) {
        this.misermode = value;
    }

    /**
     * Gets the value of the maxuploadsize property.
     *
     * @return
     *     possible object is
     *     {@link Integer }
     *
     */
    public Integer getMaxuploadsize() {
        return maxuploadsize;
    }

    /**
     * Sets the value of the maxuploadsize property.
     *
     * @param value
     *     allowed object is
     *     {@link Integer }
     *
     */
    public void setMaxuploadsize(Integer value) {
        this.maxuploadsize = value;
    }

    /**
     * Gets the value of the favicon property.
     *
     * @return
     *     possible object is
     *     {@link String }
     *
     */
    public String getFavicon() {
        return favicon;
    }

    /**
     * Sets the value of the favicon property.
     *
     * @param value
     *     allowed object is
     *     {@link String }
     *
     */
    public void setFavicon(String value) {
        this.favicon = value;
    }

}


text:
std::vector<unsigned int> parse_uints_csv(const std::string& arg)
{
    std::vector<unsigned int> uints;

    size_t prev_pos = 0;
    for(;;)
    {
        auto pos = arg.find(',', prev_pos);
        if(pos == std::string::npos)
        {
            uints.push_back(std::stoi(arg.substr(prev_pos)));
            break;
        }
        uints.push_back(std::stoi(arg.substr(prev_pos, pos - prev_pos)));
        prev_pos = pos + 1;
    }
    return uints;
}

int main(int argc, char** _argv)
{
    // convert argv to a vector of strings, for convenience
    std::vector<std::string> argv;
    // start with argv[1] since we don't need the program's name
    for(char** p = _argv + 1; p != _argv + argc; ++p)
    {
        argv.push_back(*p);
    }

    // expected args:
    // factors1d <factors2d> precisions threads_per_transform workgroup_size half_lds direct_to_from_reg scheme output_filename
    //
    // factors1d, factors2d, precisions and threads_per_transform are
    // comma-separated values, factors2d is only present for
    // 2D_SINGLE kernels
    //
    // precisions is a vector containing enums of rocfft_precision (represented by u-int)

    // work backwards from the end
    auto arg = argv.rbegin();

    std::string output_filename = *arg;

    ++arg;
    std::string scheme = *arg;

    ++arg;
    bool direct_to_from_reg = *arg == "1";

    ++arg;
    bool half_lds = *arg == "1";

    ++arg;
    unsigned int workgroup_size = std::stoi(*arg);

    ++arg;
    std::vector<unsigned int> threads_per_transform;
    threads_per_transform = parse_uints_csv(*arg);

    ++arg;
    std::vector<unsigned int> precisions;
    precisions = parse_uints_csv(*arg);

    std::vector<unsigned int> factors;
    std::vector<unsigned int> factors2d;
    if(scheme == "CS_KERNEL_2D_SINGLE")
    {
        ++arg;
        factors2d = parse_uints_csv(*arg);
    }

    ++arg;
    factors = parse_uints_csv(*arg);

    StockhamGeneratorSpecs specs(factors, factors2d, precisions, workgroup_size, scheme);
    specs.half_lds           = half_lds;
    specs.direct_to_from_reg = direct_to_from_reg;

    specs.threads_per_transform = threads_per_transform.front();

    // second dimension for 2D_SINGLE
    StockhamGeneratorSpecs specs2d(factors2d, factors, precisions, workgroup_size, scheme);
    if(!threads_per_transform.empty())
        specs2d.threads_per_transform = threads_per_transform.back();

    try
    {
        std::ofstream output_file(output_filename.c_str());
        output_file << stockham_variants(output_filename, specs, specs2d);
    }
    catch(const std::exception& e)
    {
        std::cerr << e.what() << std::endl;
        return EXIT_FAILURE;
    }

    return EXIT_SUCCESS;
}