text:
layout: page
title: Cloud Solemn Chemical Conference
date: 2016-05-24
author: Katherine Mckee
tags: weekly links, java
status: published
summary: Fusce iaculis ultrices metus, eu.
banner: images/banner/meeting-01.jpg
booking:
  startDate: 07/20/2019
  endDate: 07/24/2019
  ctyhocn: FCAMTHX
  groupCode: CSCC
published: true
---
Nam bibendum pellentesque lorem, ac ultricies dui imperdiet quis. Etiam vitae ligula erat. In enim odio, malesuada eget convallis viverra, tristique et eros. Etiam lobortis purus mi, tempor mattis eros sollicitudin sed. Phasellus congue dignissim neque, vel tristique tellus. Donec ultricies, erat et porttitor accumsan, ante urna mollis tortor, sit amet faucibus lorem metus eu ex. Suspendisse potenti.

* Quisque sed mauris at ligula vestibulum consectetur at vel elit
* Nam auctor felis nec urna sollicitudin, in venenatis purus tincidunt
* Nulla rhoncus nunc in metus vulputate suscipit
* Vivamus malesuada nulla eget sem interdum, vitae pharetra orci pharetra.

Lorem ipsum dolor sit amet, consectetur adipiscing elit. Integer aliquam laoreet justo, vel ornare eros. Nulla lobortis pharetra dictum. Donec posuere, orci nec commodo facilisis, risus nibh scelerisque enim, at commodo lorem ex rhoncus nibh. Phasellus mollis urna lorem, at lacinia felis fermentum id. Mauris a mi eu purus semper accumsan. Praesent egestas quis nunc consequat interdum. Sed ut elementum velit, in efficitur neque. Praesent efficitur, odio in vestibulum blandit, ligula justo dignissim ante, in imperdiet velit massa a leo. Sed sollicitudin scelerisque varius. Maecenas gravida convallis aliquam.
Vivamus eget justo dignissim, sollicitudin elit at, porttitor quam. Nunc eget malesuada ipsum, in bibendum magna. Nunc quis ultricies elit, sed dictum ex. Proin accumsan facilisis molestie. Aliquam dapibus lorem id arcu sodales dictum. Vestibulum sodales, sem et laoreet fermentum, dolor ligula hendrerit leo, et tristique sapien nibh at felis. Ut ornare libero et lorem vestibulum, eget scelerisque eros lacinia. Cras iaculis nibh vel ipsum dictum, feugiat imperdiet libero convallis. Ut aliquam elit sed elementum consectetur.


text:
import React from 'react';
import classNames from 'classnames';
import Icon from './Icon';
import Badge from './Badge';
import {classesDecorator, stylesDecorator} from './utils/componentDecorators';
import ratchetUtils from './utils/ratchetUtils';
import {BUTTON_STYLES} from './utils/styleMaps';

let Button = React.createClass ({
	propTypes: {
        block:React.PropTypes.bool,
        href: React.PropTypes.string,
        target: React.PropTypes.string,
        type: React.PropTypes.oneOf(['button', 'reset', 'submit'])
	},
	getDefaultProps() {
		return{
			block:false,
            outlined:false
		};
	},

    render() {
        let classes = ratchetUtils.getClassSet(this.props);
        let blockClass = ratchetUtils.prefix(this.props,'block');
        let outlinedClass = ratchetUtils.prefix(this.props,'outlined');
        let renderFuncName;

        classes = {
            ...classes,
            [blockClass]:this.props.block,
            [outlinedClass]:this.props.outlined
        };

        renderFuncName = this.props.ratStyle === BUTTON_STYLES.LINK || this.props.href === '' || this.props.href || this.props.target ? 'renderAnchor' : 'renderButton';
        return this[renderFuncName](classes);
    },

    renderAnchor(classes){
        let Component = this.props.eleType || 'a';
        let href = this.props.href || 'javascript:;';

        return (
            <Component
                {...this.props}
                href= {href}
                className = {classNames(classes,this.props.className)}>
                {this.props.children}
            </Component>
        )
    },

    renderButton(classes){
        let Component = this.props.eleType || 'button';

        return (
            <Component
                {...this.props}
                type={this.props.type || 'button'}
                className = {classNames(classes,this.props.className)}>
                {this.props.children}
            </Component>
        )
    }
});

export default stylesDecorator(BUTTON_STYLES.values(), classesDecorator('btn',Button));

redpajama_set_name: RedPajamaGithub


text:
@interface RightTableViewController ()

@end

@implementation RightTableViewController

- (void)viewDidLoad {
    [super viewDidLoad];

    self.title = @"RightVC";

    [self setupTab];
}

- (void)setupTab{
    self.tableView.tableFooterView = [UIView new];
}

#pragma mark - Table view data source

- (NSInteger)numberOfSectionsInTableView:(UITableView *)tableView {

    return 1;
}

- (NSInteger)tableView:(UITableView *)tableView numberOfRowsInSection:(NSInteger)section {

    return 5;
}

- (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath{
    UITableViewCell *cell =[tableView dequeueReusableCellWithIdentifier:@"identifierCell"];
    if (!cell) {
        cell = [[UITableViewCell alloc]initWithStyle:UITableViewCellStyleDefault reuseIdentifier:@"identifierCell"];
    }
    cell.textLabel.text = [NSString stringWithFormat:@"%@%ld",self.title,indexPath.row];
    return cell;
}

@end


text:
namespace Microsoft.Zelig.Debugger.ArmProcessor
{
    using System;
    using System.Collections.Generic;
    using System.ComponentModel;
    using System.Data;
    using System.Drawing;
    using System.Text;
    using System.IO;
    using System.Windows.Forms;
    using System.Threading;

    using EncDef             = Microsoft.Zelig.TargetModel.ArmProcessor.EncodingDefinition;
    using InstructionSet     = Microsoft.Zelig.TargetModel.ArmProcessor.InstructionSet;
    using IR                 = Microsoft.Zelig.CodeGeneration.IR;
    using RT                 = Microsoft.Zelig.Runtime;
    using TS                 = Microsoft.Zelig.Runtime.TypeSystem;
    using Hst                = Microsoft.Zelig.Emulation.Hosting;

    public partial class RegistersView : UserControl
    {
        //
        // State
        //

        DebuggerMainForm m_owner;
        WatchHelper      m_wh;

        //
        // Constructor Methods
        //

        public RegistersView()
        {
            InitializeComponent();

            WatchHelper.SetColumns( treeBasedGridView_Registers );
        }

        //
        // Helper Methods
        //

        public void Link( DebuggerMainForm owner )
        {
            m_owner = owner;

            m_owner.HostingSite.NotifyOnExecutionStateChange += delegate( Hst.Forms.HostingSite                host     ,
                                                                          Hst.Forms.HostingSite.ExecutionState oldState ,
                                                                          Hst.Forms.HostingSite.ExecutionState newState )
            {
                UpdateUI();

                return Hst.Forms.HostingSite.NotificationResponse.DoNothing;
            };

            m_owner.HostingSite.NotifyOnVisualizationEvent += delegate( Hst.Forms.HostingSite                    host ,
                                                                        Hst.Forms.HostingSite.VisualizationEvent e    )
            {
                if(e == Hst.Forms.HostingSite.VisualizationEvent.NewStackFrame)
                {
                    UpdateUI();
                }

                return Hst.Forms.HostingSite.NotificationResponse.DoNothing;
            };
        }

        private void UpdateUI()
        {
            ImageInformation imageInformation  = m_owner.ImageInformation;
            StackFrame       currentStackFrame = m_owner.SelectedStackFrame;

            //--//

            WatchHelper.Synchronize( ref m_wh, m_owner.MemoryDelta, treeBasedGridView_Registers.RootNode, false, false );

            if(m_wh != null)
            {
                m_wh.HexadecimalDisplay = toolStripMenuItem_HexDisplay.Checked;
            }

            //--//

            treeBasedGridView_Registers.StartTreeUpdate();

            treeBasedGridView_Registers.Enabled = currentStackFrame != null;

            if(currentStackFrame == null || m_owner.IsIdle == false)
            {
////            DebuggerMainForm.GrayOutRowsInDataGridView( treeBasedGridView_Registers.Rows );
            }
            else
            {
                IR.LowLevelVariableExpression[] array = imageInformation.AliveVariables( currentStackFrame.Region, currentStackFrame.RegionOffset );
                var                             ht    = HashTableFactory.NewWithReferenceEquality< IR.Abstractions.RegisterDescriptor, IR.PhysicalRegisterExpression >();

                foreach(IR.LowLevelVariableExpression var in array)
                {
                    IR.PhysicalRegisterExpression varReg = var as IR.PhysicalRegisterExpression;

                    if(varReg != null)
                    {
                        ht[varReg.RegisterDescriptor] = varReg;
                    }
                }

                var regCtx = currentStackFrame.RegisterContext;
                var lst    = new List< WatchHelper.ItemDescriptor >();

                foreach(IR.Abstractions.RegisterDescriptor regDesc in imageInformation.TypeSystem.PlatformAbstraction.GetRegisters())
                {
                    TS.TypeRepresentation registerType   = null;
                    string                typeDescriptor = null;

                    //--//

                    IR.PhysicalRegisterExpression varReg;

                    if(ht.TryGetValue( regDesc, out varReg ))
                    {
                        var varType = varReg.Type;

                        registerType = varType;

                        string                typeName = varType.FullNameWithAbbreviation;
                        IR.VariableExpression varSrc   = varReg.SourceVariable;

                        if(varSrc != null && varSrc.DebugName != null)
                        {
                            typeDescriptor = string.Format( "{0} {1}", typeName, varSrc.DebugName.Name );
                        }
                        else
                        {
                            typeDescriptor = string.Format( "{0}", typeName );
                        }
                    }
                    else
                    {
                        var wkt = imageInformation.TypeSystem.WellKnownTypes;

                        if(regDesc.InIntegerRegisterFile)
                        {
                            switch(regDesc.PhysicalStorageSize)
                            {
                                case 1:
                                    registerType = wkt.System_UInt32;
                                    break;

                                case 2:
                                    registerType = wkt.System_UInt64;
                                    break;
                            }
                        }
                        else if(regDesc.InFloatingPointRegisterFile)
                        {
                            switch(regDesc.PhysicalStorageSize)
                            {
                                case 1:
                                    registerType = wkt.System_Single;
                                    break;

                                case 2:
                                    registerType = wkt.System_Double;
                                    break;
                            }
                        }

                        if(registerType == null)
                        {
                            registerType = wkt.System_UInt32;
                        }
                    }

                    //--//

                    var valueHandle = new RegisterValueHandle( regCtx.GetValue( regDesc ), registerType, true );
                    var item        = new WatchHelper.ItemDescriptor( m_wh, regDesc.Mnemonic, registerType, valueHandle, typeDescriptor );

                    lst.Add( item );
                }

                m_wh.Update( lst, false );
            }

            treeBasedGridView_Registers.EndTreeUpdate();
        }

        //
        // Event Methods
        //

        private void treeBasedGridView_Registers_CellMouseClick( object                               sender ,
                                                                 TreeBasedGridView.NodeMouseEventArgs e      )
        {
            if(e.Button == MouseButtons.Right)
            {
                contextMenuStrip1.Show( treeBasedGridView_Registers, e.Location );
            }
        }

        private void toolStripMenuItem_HexDisplay_CheckedChanged( object    sender ,
                                                                  EventArgs e      )
        {
            if(treeBasedGridView_Registers.Enabled)
            {
                if(m_wh != null)
                {
                    m_wh.HexadecimalDisplay = toolStripMenuItem_HexDisplay.Checked;
                }
            }
        }

        private void toolStripMenuItem_HexDisplay_Click( object    sender ,
                                                         EventArgs e      )
        {
            toolStripMenuItem_HexDisplay.Checked = !toolStripMenuItem_HexDisplay.Checked;
        }
    }
}


text:
r"""
some functions helpful in Python's interactive mode.

This modules uses some environment variables. You can also set these
in the ~/.pyinteractiverc file.

PYPS1          - primary interactive prompt
PYPS2          - "more" prompt
PYHISTFILE     - name of the history file (defaults to $HOME/.pythonhist)

Some external program invocation templates should be defined. These may contain a
'%s' that will be expanded to a file name or url.

XTERM          - How to invoke xterm, e.g. "urxvtc -title Python -name Python -e %s"
EDITOR         - editor to use in the currrent terminal,
VIEWER         - What terminal text viewer (e.g. "/usr/bin/view")
XEDITOR        - text editor for use in the X Windows System.
XVIEWER        - What X text viewer (e.g. "/usr/bin/gvim")
BROWSER        - HTML browser for X GUI.
CBROWSER       - HTML browser for character terminals.
CHMBOOK        - File name of CHM help file.
CHMVIEWER      - A GUI CHM viewer taking search and book replacements. e.g. 'kchmviewer --search %s %s'

You can also create some shell aliases in your .bashrc file, like so:

alias py='python -i -c "from pycopia import interactive"'

now, just type "py" at the command line to get a Python interactive mode shell
with enhanced functionality.

Alternatively, you can just invoke 'from pycopia import interactive' at the
"stock" Python prompt.

This modules places many helpful, convenience functions in the builtins
namespace for quck access without cluttering the __main__ namespace.
"""

from __future__ import absolute_import
from __future__ import print_function
from __future__ import division

__all__ = ['info']

import sys
import os, types
from pprint import pprint
from inspect import *

try:
    import readline
except ImportError:
    # dummy readline to make rest of this module happy in case readline is not available.
    class Readline(object):
        def parse_and_bind(self, *args):
            pass
        def read_history_file(self, arg):
            pass
        def write_history_file(self, arg):
            pass
    readline = Readline()

from importlib import import_module

if sys.platform == "win32":
    _default_hist = os.path.join(os.environ["USERPROFILE"], "_pythonhist")
else:
    _default_hist = os.path.join(os.environ["HOME"], ".pythonhist")
PYHISTFILE = os.environ.get("PYHISTFILE", _default_hist)
del _default_hist

# Prefer rlcompleter2, if installed.
try:
    import rlcompleter2
    rlcompleter2.setup(PYHISTFILE, verbose=0)
except ImportError:
    import rlcompleter
    import atexit
    try:
        readline.read_history_file(PYHISTFILE)
    except IOError:
        pass
    def savehist():
        readline.write_history_file(PYHISTFILE)
    atexit.register( savehist )

# import some pycopia functions that are helpful for interactive use.
from pycopia.textutils import *

def _add_all(modname):
    mod = import_module(modname)
    __all__.extend([n for n in dir(mod) if n[0] != "_" and callable(getattr(mod, n))])
_add_all("pycopia.textutils")
_add_all("inspect")
del _add_all

sys.ps1 = os.environ.get("PYPS1", "Python{0}> ".format(sys.version_info[0]))
sys.ps2 = os.environ.get("PYPS2", "more...> ")

def info(obj=None):
    """Print some helpful information about the given object. Usually the
    docstring.  If no parameter given then provide some info on Python itself."""
    if obj is None:
        print ("Python keywords:")
        import keyword
        for kwname in keyword.kwlist:
            print ("  ", kwname)
        print("Built in objects:")
        for bi_object_name in sorted(__builtins__.keys()):
            bi_object = __builtins__[bi_object_name]
            if callable(bi_object):
                if type(bi_object) is types.ClassType:
                    print("  {} (class)".format(bi_object.__name__))
                elif type(bi_object) is types.FunctionType:
                    print("  {} (function)".format(bi_object.__name__))
    elif hasattr(obj, "__doc__") and obj.__doc__ is not None:
            print ("Documentation for %s :\n" % (obj.__name__))
            print (obj.__doc__)
    elif type(obj) is types.ModuleType:
        pprint(dir(obj))
    elif type(obj) is types.ClassType:
        pprint(dir(obj))
    elif type(obj) is types.InstanceType:
        pprint(dir(obj))
        pprint(dir(obj.__class__))
    return ""

def mydisplayhook(obj):
    pprint(obj)
    setattr(sys.modules["__main__"], "_", obj)
sys.displayhook = mydisplayhook
setattr(sys.modules["__main__"], "_", None)

# Add some functions useful for interactive use to builtins.
# This is done to provide better interactive functionality without
# cluttering the __main__ namespace.
def _add_builtins(names=__all__):
    me = sys.modules[__name__]
    for name in names:
        try:
            obj = getattr(me, name)
            if not hasattr(__builtins__, name):
                setattr(__builtins__, name, obj)
        except AttributeError:
            pass
_add_builtins()
del _add_builtins

## readline key bindings
if sys.platform =="darwin":
    readline.parse_and_bind("bind ^I rl_complete")
else:
    readline.parse_and_bind("tab: complete")
##readline.parse_and_bind("tab: menu-complete")
#readline.parse_and_bind('"?": possible-completions')
    readline.parse_and_bind('"\M-?": possible-completions')
#readline.parse_and_bind('"\M-h": "help()\n"')
#readline.parse_and_bind('"\eOP": "help()\n"')
#readline.parse_and_bind('"\M-f": dump-functions')
#readline.parse_and_bind('"\M-v": dump-variables')
#readline.parse_and_bind('"\M-m": dump-macros')
# additional readline options
##readline.parse_and_bind("set editing-mode vi")
#readline.parse_and_bind("set show-all-if-ambiguous on")
#readline.parse_and_bind("set meta-flag on")
#readline.parse_and_bind("set input-meta on")
#readline.parse_and_bind("set output-meta on")
#readline.parse_and_bind("set convert-meta off")


text:
<?php
require_once('lokasi_ksp_proses.php');
?>

<!DOCTYPE html>

<meta charset="UTF-8">

<link type="text/css" href="../../../../config/css/style.css" rel="stylesheet">
<link type="text/css" href="../../../../plugin/css/zebra/default.css" rel="stylesheet">

<?php echo $msg; ?>

<form name="form" id="form" method="post">

	KODE
	<input readonly="readonly" type="text" name="kode_lokasi" id="kode_lokasi" size="6" value="<?php echo $kode_lokasi; ?>">

	TIPE LOKASI

		<select name="tipe_lokasi" id="tipe_lokasi">
			<option value=""> -- TIPE LOKASI -- </option>
			<option value="ID" <?php echo is_selected('ID', $tipe_lokasi); ?>> INDOOR </option>
			<option value="OD" <?php echo is_selected('OD', $tipe_lokasi); ?>> OUTDOOR </option>
		</select>

	DETAIL LOKASI
	<textarea name="detail_lokasi" id="detail_lokasi" cols="44" rows="3"><?php echo $detail_lokasi; ?></textarea>

		<input type="submit" id="save" value=" <?php echo $act; ?> (Alt+S) ">
		<input type="reset" id="reset" value=" Reset (Alt+R) ">
		<input type="button" id="close" value=" Tutup (Esc) ">

<input type="hidden" name="kode_sk" id="kode_sk" value="<?php echo $kode_sk; ?>">
<input type="hidden" name="id" id="id" value="<?php echo $id; ?>">
<input type="hidden" name="act" id="act" value="<?php echo $act; ?>">
</form>

<?php
close($conn);
?>


text:
    <meta charset="utf-8"/>
    <meta name="viewport" content="width=device-width"/>
    <title></title>
    <link href="/Content/bootstrap.css" rel="stylesheet"/>
<link href="/Content/site.css" rel="stylesheet"/>

© 2015 Kyle Upchurch

            Ideas for new features?

            in-game or in-slack @cecilcable


text:
using Windows.UI;
using Windows.UI.Xaml;
using Windows.UI.Xaml.Controls;
using Windows.UI.Xaml.Controls.Primitives;

namespace OrientableColorScroll
{
    public sealed partial class MainPage : Page
    {
        public MainPage()
        {
            this.InitializeComponent();
        }

        void OnSliderValueChanged(object sender, RangeBaseValueChangedEventArgs args)
        {
            byte r = (byte)redSlider.Value;
            byte g = (byte)greenSlider.Value;
            byte b = (byte)blueSlider.Value;

            redValue.Text = r.ToString("X2");
            greenValue.Text = g.ToString("X2");
            blueValue.Text = b.ToString("X2");

            brushResult.Color = Color.FromArgb(255, r, g, b);
        }

        void OnGridSizeChanged(object sender, SizeChangedEventArgs args)
        {
            // Landscape mode
            if (args.NewSize.Width > args.NewSize.Height)
            {
                secondColDef.Width = new GridLength(1, GridUnitType.Star);
                secondRowDef.Height = new GridLength(0);

                Grid.SetColumn(rectangleResult, 1);
                Grid.SetRow(rectangleResult, 0);
            }
            // Portrait mode
            else
            {
                secondColDef.Width = new GridLength(0);
                secondRowDef.Height = new GridLength(1, GridUnitType.Star);

                Grid.SetColumn(rectangleResult, 0);
                Grid.SetRow(rectangleResult, 1);
            }
        }
    }
}


text:
/**
 *
 */

package code.dws.core;

import java.io.BufferedReader;
import java.io.File;
import java.io.FileInputStream;
import java.io.IOException;
import java.io.InputStreamReader;
import java.util.ArrayList;
import java.util.Collections;
import java.util.Comparator;
import java.util.HashMap;
import java.util.Iterator;
import java.util.LinkedHashMap;
import java.util.LinkedList;
import java.util.List;
import java.util.Map;

import org.apache.commons.lang3.StringUtils;
import org.apache.commons.lang3.tuple.ImmutablePair;
import org.apache.commons.lang3.tuple.Pair;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

import code.dws.bootstrap.BootStrapMethod;
import code.dws.core.cluster.analysis.CompareClusters;
import code.dws.dbConnectivity.DBWrapper;
import code.dws.markovLogic.EvidenceBuilder;
import code.dws.query.SPARQLEndPointQueryAPI;
import code.dws.utils.Constants;
import code.dws.utils.Constants.OIE;
import code.dws.utils.Utilities;

/**
 * This class takes a random triple from the OIE projects and computes the
 * Baseline for the subject and object. Uses the mapped candidates to predict
 * the type of the predicates.
 *
 * @author Arnab Dutta
 */
public class DistantSupervised {
	/**
	 * logger
	 */
	public final static Logger logger = LoggerFactory
			.getLogger(DistantSupervised.class);

	static String[] pNames = { "bookwriter", "actorstarredinmovie",
			"bankbankincountry", "personleadsorganization",
			"athleteledsportsteam", "citylocatedinstate", "companyalsoknownas",
			"agentcollaborateswithagent", "teamplaysagainstteam",
			"weaponmadeincountry", "lakeinstate", "animalistypeofanimal"

	};

	long subjectCount = 0;
	long objectCount = 0;

	Map<String, Double> domainClassMap = new HashMap<String, Double>();
	Map<String, Double> rangeClassMap = new HashMap<String, Double>();

	String propertyName;
	List<String> propertyNames;

	// The input OIE file with raw web extracted data
	static File oieFile = null;

	/**
	 * @param propertyName
	 */
	public DistantSupervised(String[] args) {

		if (Constants.IS_NELL) {
			this.propertyName = args[0];
			oieFile = new File(Constants.NELL_DATA_PATH);
		} else {
			if (!Constants.WORKFLOW_NORMAL) {
				try {
					CompareClusters.main(new String[] { "" });

					logger.info("Optimal Inflation for workflow "
							+ Constants.WORKFLOW + " = "
							+ CompareClusters.getOptimalInflation());
					this.propertyNames = CompareClusters.getCluster().get(
							args[0]);
				} catch (IOException e) {
					logger.error(e.getMessage());
					e.printStackTrace();
				}
			} else {
				this.propertyNames = new ArrayList<String>();
				this.propertyNames
						.add(Constants.PREDICATE.replaceAll("-", " "));
			}
			oieFile = new File(Constants.OIE_DATA_PATH);
		}
		Constants.TOP_K_MATCHES = Integer.parseInt(args[1]);
	}

	/**
	 * stand alone test point
	 *
	 * @param args
	 * @throws IOException
	 */
	public static void main(String[] args) throws IOException {

		DistantSupervised dSup = null;

		if (args.length < 2)
			throw (new RuntimeException(
					"Usage : java -jar DS.jar <inputFilePath> <topK>"));
		else {
			// start processing the triples
			dSup = new DistantSupervised(args);
			dSup.learnDomRanFromFullData();

			System.out.println(dSup.getTopDomainClass(0));
			System.out.println(dSup.getTopRangeClass(0));
		}
	}

	/**
	 * use the entire file dump of OIE output to learn domain aand range values
	 *
	 * @throws IOException
	 */
	public void learnDomRanFromFullData() throws IOException {

		if (Constants.ENGAGE_INTER_STEP) {
			BootStrapMethod
					.createSameAsHypotheses(Constants.BASIC_REASON_OUT_FILE);

			BootStrapMethod.createSubObjLists(Constants.BASIC_REASON_OUT_FILE);

			this.processTripleFromOutputFiles();
		} else {
			if (Constants.IS_NELL)
				this.processFullDataDump(oieFile, Constants.OIE.NELL, ",");
			else
				this.processFullDataDump(oieFile, Constants.OIE.REVERB, ";");
		}
	}

	/**
	 * use specific set of tuples to learn domain and range
	 *
	 * @throws IOException
	 */
	public void learnDomRanFromFilteredOutputFiles() throws IOException {
		this.processTripleFromOutputFiles();
	}

	/**
	 * process the OIE input file
	 *
	 * @param inputFile
	 *            the raw file
	 * @param oieType
	 *            the type of OIE project, NELL or Reverb, different types have
	 *            different format
	 * @param delimit
	 *            delimiter, comma or tab or something else
	 * @throws IOException
	 */
	public void processTripleFromOutputFiles() throws IOException {

		// here create the domain and range class map in a different fashion
		this.bootStrap();

		// the maps should have been updated
		domainClassMap = sortByValue(domainClassMap);
		rangeClassMap = sortByValue(rangeClassMap);

		logger.info("DOMAIN MAP = " + domainClassMap);
		logger.info("RANGE MAP = " + rangeClassMap);
	}

	/**
	 * read the reasoner produced output file for the set of sameAs statements
	 *
	 * @param outputEvidenceFilePath
	 * @param oieType
	 * @throws IOException
	 */
	private void bootStrap() throws IOException {

		List<String> candidates = new ArrayList<String>();
		// List<String> entityTypes = null;

		boolean isSubject = false;

		// initiate DB
		DBWrapper.init(Constants.GET_WIKI_TITLES_SQL);

		String dbpinst = null;

		for (Pair<String, String> sameAsPair : BootStrapMethod.SAME_AS_LIST) {

			isSubject = BootStrapMethod.isSubject(sameAsPair.getRight());
			dbpinst = Utilities.cleanseInstances(sameAsPair.getLeft()
					.replaceAll("DBP#resource/", "").replaceAll("\"", ""));

			candidates.add(dbpinst);

			// call the DistantSupervised method for types and UPDATE the
			// domainClassMap and rangeClassMap
			if (isSubject)
				this.getTypes(candidates, Constants.DOMAIN);
			if (!isSubject)
				this.getTypes(candidates, Constants.RANGE);

			candidates.clear();
		}

		// DBWrapper.saveResidualDBPTypes();
		DBWrapper.shutDown();

	}

	/**
	 * process the OIE input file
	 *
	 * @param inputFile
	 *            the raw file
	 * @param oieType
	 *            the type of OIE project, NELL or Reverb, different types have
	 *            different format
	 * @param delimit
	 *            delimiter, comma or tab or something else
	 * @throws IOException
	 */
	public void processFullDataDump(File inputFile, OIE oieType, String delimit)
			throws IOException {

		String triple;
		String[] arrStr = null;

		BufferedReader input = null;

		// initiate DB
		DBWrapper.init(Constants.GET_WIKI_TITLES_SQL);

		if (Constants.IS_NELL) {
			input = new BufferedReader(new InputStreamReader(
					new FileInputStream(inputFile)));

			// iterate the file from OIE and process each triple at a time
			while ((triple = input.readLine()) != null) {

				// split on the delimiter
				arrStr = triple.split(delimit);

				// if the property is the one we want to sample upon
				if (this.propertyName != null && this.propertyName.length() > 0)
					if (this.propertyName.equals(arrStr[1])) {

						// process them
						this.processEachTriple(arrStr[0], arrStr[1], arrStr[2],
								oieType);
					}
			}
		} else {

			for (String prop : this.propertyNames) {

				this.propertyName = prop;

				System.out.println("Creating Alpha tree for "
						+ this.propertyName);
				input = new BufferedReader(new InputStreamReader(
						new FileInputStream(inputFile)));

				// iterate the file from OIE and process each triple at a time
				while ((triple = input.readLine()) != null) {

					// split on the delimiter
					arrStr = triple.split(delimit);

					// if the property is the one we want to sample upon
					if (this.propertyName != null
							&& this.propertyName.length() > 0)
						if (this.propertyName.equals(arrStr[1])) {

							// process them
							this.processEachTriple(arrStr[0], arrStr[1],
									arrStr[2], oieType);
						}
				}
			}
		}

		domainClassMap = sortByValue(domainClassMap);
		rangeClassMap = sortByValue(rangeClassMap);

		System.out.println("DOMAIN MAP = " + domainClassMap);
		System.out.println("RANGE MAP = " + rangeClassMap);

		// DBWrapper.saveResidualDBPTypes();
		DBWrapper.shutDown();
	}

	/**
	 * overriden method.
	 *
	 * @param sub
	 *            subject
	 * @param prop
	 *            property
	 * @param obj
	 *            object
	 * @param oieType
	 *            the type of OIE project, NELL or Reverb, different types have
	 *            diffeent format
	 */
	public void processEachTriple(String sub, String prop, String obj,
			OIE oieType) {

		List<String> subs = new ArrayList<String>();
		List<String> objs = new ArrayList<String>();

		// fetch the most probable matched entities both for subject and object
		// List<String> subjConcepts = DBWrapper
		// .fetchWikiTitles((oieType == Constants.OIE.NELL) ? Utilities
		// .cleanse(sub).replaceAll("\\_+", " ") : Utilities
		// .cleanse(sub).replaceAll("\\_+", " "));
		//
		// List<String> objConcepts = DBWrapper
		// .fetchWikiTitles(((oieType == Constants.OIE.NELL) ? Utilities
		// .cleanse(obj).replaceAll("\\_+", " ") : Utilities
		// .cleanse(obj).replaceAll("\\_+", " ")));

		List<String> tempSubs = EvidenceBuilder.INSTANCE_CANDIDATES
				.get(Utilities.cleanse(sub).replaceAll("\\_+", " "));

		List<String> tempObjs = EvidenceBuilder.INSTANCE_CANDIDATES
				.get(Utilities.cleanse(obj).replaceAll("\\_+", " "));

		String subjConcept = "";
		if (tempSubs != null && tempSubs.size() > 0)
			subjConcept = StringUtils.replace(
					Utilities.utf8ToCharacter(tempSubs.get(0).split("\t")[0]),
					"_", " ");
		subs.add(subjConcept);

		String objConcept = "";
		if (tempObjs != null && tempObjs.size() > 0)
			objConcept = StringUtils.replace(
					Utilities.utf8ToCharacter(tempObjs.get(0).split("\t")[0]),
					"_", " ");
		objs.add(objConcept);

		// List<String> objConcepts = EvidenceBuilder.INSTANCE_CANDIDATES
		// .get((oieType == Constants.OIE.NELL) ? Utilities.cleanse(obj)
		// .replaceAll("\\_+", " ") : Utilities.cleanse(obj)
		// .replaceAll("\\_+", " "));

		// populateDomainAndRangeMaps(subjConcepts, objConcepts);
		populateDomainAndRangeMaps(subs, objs);

	}

	/**
	 * iterates the DBPEdia Entities and finds their types
	 *
	 * @param subEntities
	 *            list of subject candidates
	 * @param objEntities
	 *            list of object candidates
	 */
	public void getTypes(List<String> entities, String domRanType) {
		List<String> entityTypes = null;

		double value = 0;

		// iterate over the subject entities
		for (String dbpEntity : entities) {
			dbpEntity = dbpEntity.replaceAll("\\s+", "_");

			// if(dbpEntity.indexOf("House_of_the_Seven_Gables") != -1)
			// System.out.println();

			if (Constants.RELOAD_TYPE) {
				entityTypes = SPARQLEndPointQueryAPI
						.getInstanceTypes(dbpEntity);
				entityTypes = SPARQLEndPointQueryAPI.getLowestType(entityTypes);
			} else {

				entityTypes = DBWrapper.getDBPInstanceType(Utilities
						.characterToUTF8(dbpEntity));
			}

			// if no entity types, add UNTYPED
			if (entityTypes.size() == 0
					|| entityTypes.get(0).indexOf(Constants.UNTYPED) != -1) {
				if (domRanType.equals(Constants.DOMAIN)) {
					if (domainClassMap.containsKey("UNTYPED")) {
						value = domainClassMap.get("UNTYPED");
						domainClassMap.put("UNTYPED", value + 1);
					} else {
						domainClassMap.put("UNTYPED", 1D);
					}
				} else {
					if (rangeClassMap.containsKey("UNTYPED")) {
						value = rangeClassMap.get("UNTYPED");
						rangeClassMap.put("UNTYPED", value + 1);
					} else {
						rangeClassMap.put("UNTYPED", 1D);
					}
				}

				// System.out.println("UNTYPED FOR " + dbpEntity);

				// if (Constants.RELOAD_TYPE)
				// DBWrapper.saveToDBPediaTypes(
				// Utilities.characterToUTF8(dbpEntity),
				// Constants.UNTYPED);

			} else { // normal processing

				for (String entityType : entityTypes) {

					if (domRanType.equals(Constants.DOMAIN)) {
						if (domainClassMap.containsKey(entityType)) {
							value = domainClassMap.get(entityType);
							domainClassMap.put(entityType, value + 1);
						} else {
							domainClassMap.put(entityType, 1D);
						}
					} else {
						if (rangeClassMap.containsKey(entityType)) {
							value = rangeClassMap.get(entityType);
							rangeClassMap.put(entityType, value + 1);
						} else {
							rangeClassMap.put(entityType, 1D);
						}
					}

					// if (Constants.RELOAD_TYPE)
					// DBWrapper.saveToDBPediaTypes(
					// Utilities.characterToUTF8(dbpEntity),
					// entityType);
				}
			}
		}
	}

	/**
	 * iterates the DBPEdia Entities and finds their types
	 *
	 * @param subEntities
	 *            list of subject candidates
	 * @param objEntities
	 *            list of object candidates
	 */
	private void populateDomainAndRangeMaps(List<String> subEntities,
			List<String> objEntities) {
		List<String> entityTypes = null;

		double value = 0;

		// iterate over the subject entities
		for (String dbpEntity : subEntities) {
			dbpEntity = dbpEntity.replaceAll("\\s+", "_");

			if (Constants.RELOAD_TYPE) {
				entityTypes = SPARQLEndPointQueryAPI
						.getInstanceTypes(dbpEntity);
				entityTypes = SPARQLEndPointQueryAPI.getLowestType(entityTypes);
			} else { // load cached copy from DB

				entityTypes = DBWrapper.getDBPInstanceType(Utilities
						.characterToUTF8(dbpEntity));
			}

			if (entityTypes.size() == 0
					|| entityTypes.get(0).indexOf(Constants.UNTYPED) != -1) {
				if (domainClassMap.containsKey("UNTYPED")) {
					value = domainClassMap.get("UNTYPED");
					domainClassMap.put("UNTYPED", value + 1);
				} else {
					domainClassMap.put("UNTYPED", 1D);
				}

				// if (Constants.RELOAD_TYPE)
				// DBWrapper.saveToDBPediaTypes(
				// Utilities.characterToUTF8(dbpEntity),
				// Constants.UNTYPED);

			} else {

				for (String entityType : entityTypes) {
					if (domainClassMap.containsKey(entityType)) {
						value = domainClassMap.get(entityType);
						domainClassMap.put(entityType, value + 1);
					} else {
						domainClassMap.put(entityType, 1D);
					}

					// if (Constants.RELOAD_TYPE)
					// DBWrapper.saveToDBPediaTypes(
					// Utilities.characterToUTF8(dbpEntity),
					// entityType);
				}
			}
		}

		value = 0;

		// iterate over the object entities
		for (String dbpEntity : objEntities) {
			dbpEntity = dbpEntity.replaceAll("\\s+", "_");

			if (Constants.RELOAD_TYPE) {
				entityTypes = SPARQLEndPointQueryAPI
						.getInstanceTypes(dbpEntity);
				entityTypes = SPARQLEndPointQueryAPI.getLowestType(entityTypes);
			} else { // load cached copy from DB

				entityTypes = DBWrapper.getDBPInstanceType(Utilities
						.characterToUTF8(dbpEntity));
			}

			if (entityTypes.size() == 0
					|| entityTypes.get(0).indexOf(Constants.UNTYPED) != -1) {
				if (rangeClassMap.containsKey("UNTYPED")) {
					value = rangeClassMap.get("UNTYPED");
					rangeClassMap.put("UNTYPED", value + 1);
				} else {
					rangeClassMap.put("UNTYPED", 1D);
				}

				// if (Constants.RELOAD_TYPE)
				// DBWrapper.saveToDBPediaTypes(
				// Utilities.characterToUTF8(dbpEntity),
				// Constants.UNTYPED);

			} else {
				for (String entityType : entityTypes) {
					if (rangeClassMap.containsKey(entityType)) {
						value = rangeClassMap.get(entityType);
						rangeClassMap.put(entityType, value + 1);
					} else {
						rangeClassMap.put(entityType, 1D);
					}

					// if (Constants.RELOAD_TYPE)
					// DBWrapper.saveToDBPediaTypes(
					// Utilities.characterToUTF8(dbpEntity),
					// entityType);

				}
			}
		}
	}

	/**
	 * sort a map by value descending
	 *
	 * @param map
	 * @return
	 */
	@SuppressWarnings({ "rawtypes", "unchecked" })
	public static Map<String, Double> sortByValue(Map map) {
		List list = new LinkedList(map.entrySet());
		Collections.sort(list, new Comparator() {
			public int compare(Object o2, Object o1) {
				return ((Comparable) ((Map.Entry) (o1)).getValue())
						.compareTo(((Map.Entry) (o2)).getValue());
			}
		});

		Map<String, Double> result = new LinkedHashMap<String, Double>();
		for (Iterator it = list.iterator(); it.hasNext();) {
			Map.Entry<String, Double> entry = (Map.Entry) it.next();
			result.put(entry.getKey(), entry.getValue());
		}
		return result;
	}

	/**
	 * sort a map by value descending
	 *
	 * @param map
	 * @return
	 */
	// @SuppressWarnings({ "rawtypes", "unchecked" })
	// public static Map<String, Double> sortByValue(Map map) {
	// List list = new LinkedList(map.entrySet());
	// Collections.sort(list, new Comparator() {
	// public int compare(Object o2, Object o1) {
	// return ((Comparable) ((Map.Entry) (o1)).getValue())
	// .compareTo(((Map.Entry) (o2)).getValue());
	// }
	// });
	//
	// Map result = new HashMap();
	// for (Iterator it = list.iterator(); it.hasNext();) {
	// Map.Entry entry = (Map.Entry) it.next();
	//
	// // result.put(entry.getKey(), (Double) entry.getValue()/
	// // (tripleCounter * Constants.TOP_ANCHORS));
	// result.put(entry.getKey(), (Double) entry.getValue());
	// }
	// return result;
	// }

	/**
	 * @return the typeCountSubjectMap
	 */
	public Map<String, Double> getAllSubjectTypes() {
		return domainClassMap;
	}

	/**
	 * @return the typeCountObjectsMap
	 */
	public Map<String, Double> getAllObjectTypes() {
		return rangeClassMap;
	}

	/**
	 * get top entry of Domain
	 *
	 * @param topK
	 * @return
	 */
	public List<Pair<String, Double>> getTopDomainClass(int topK) {
		List<Pair<String, Double>> listTopKClasses = new ArrayList<Pair<String, Double>>();

		for (Map.Entry<String, Double> entry : domainClassMap.entrySet()) {
			if (topK != 0 && listTopKClasses.size() == topK)
				return listTopKClasses;
			else {
				listTopKClasses.add(new ImmutablePair<String, Double>(entry
						.getKey(), entry.getValue()));
			}
		}

		return listTopKClasses;
	}

	/**
	 * get top entry of Range
	 *
	 * @param topK
	 * @return
	 */
	public List<Pair<String, Double>> getTopRangeClass(int topK) {
		List<Pair<String, Double>> listTopKClasses = new ArrayList<Pair<String, Double>>();

		for (Map.Entry<String, Double> entry : rangeClassMap.entrySet()) {
			if (topK != 0 && listTopKClasses.size() == topK)
				return listTopKClasses;
			else
				listTopKClasses.add(new ImmutablePair<String, Double>(entry
						.getKey(), entry.getValue()));
		}

		return listTopKClasses;
	}

}


text:
version: '0.7.25'

---

- Fixes some more bugs with Forms plugin
- Improves display of command-line flags so sensitive values can be hidden from console
- Updates gradle wrapper and dependency versions


text:
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
	xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
	<modelVersion>4.0.0</modelVersion>

	<parent>
		<groupId>net.logstash.loggers</groupId>
		<artifactId>logstash-parent</artifactId>
		<version>1.0.1-SNAPSHOT</version>
		<relativePath>../logstash-parent/pom.xml</relativePath>
	</parent>

	<artifactId>logstash-core</artifactId>
	<version>1.0.1</version>
	<packaging>jar</packaging>

	<name>logstash-core</name>
	<url>http://maven.apache.org</url>

	<dependencies>
		<dependency>
			<groupId>org.skyscreamer</groupId>
			<artifactId>jsonassert</artifactId>
			<version>1.2.1</version>
			<scope>test</scope>
		</dependency>
		<dependency>
			<groupId>org.codehaus.jackson</groupId>
			<artifactId>jackson-core-asl</artifactId>
			<version>1.9.9</version>
			<scope>provided</scope>
		</dependency>
	</dependencies>
</project>


text:
package gamepad

// #cgo CFLAGS: -x objective-c
// #cgo LDFLAGS: -framework Foundation -framework GameController
//
// #import <GameController/GameController.h>
//
// static NSString* GCInputXboxShareButton = @"Button Share";
//
// enum ControllerButton {
//   kControllerButtonInvalid = -1,
//   kControllerButtonA,
//   kControllerButtonB,
//   kControllerButtonX,
//   kControllerButtonY,
//   kControllerButtonBack,
//   kControllerButtonGuide,
//   kControllerButtonStart,
//   kControllerButtonLeftStick,
//   kControllerButtonRightStick,
//   kControllerButtonLeftShoulder,
//   kControllerButtonRightShoulder,
//   kControllerButtonDpadUp,
//   kControllerButtonDpadDown,
//   kControllerButtonDpadLeft,
//   kControllerButtonDpadRight,
//   kControllerButtonMisc1,
//   kControllerButtonPaddle1,
//   kControllerButtonPaddle2,
//   kControllerButtonPaddle3,
//   kControllerButtonPaddle4,
//   kControllerButtonTouchpad,
//   kControllerButtonMax,
// };
//
// enum HatState : uint8_t {
//   kHatCentered  = 0x00,
//   kHatUp        = 0x01,
//   kHatRight     = 0x02,
//   kHatDown      = 0x04,
//   kHatLeft      = 0x08,
//   kHatRightUp   = kHatRight | kHatUp,
//   kHatRightDown = kHatRight | kHatDown,
//   kHatLeftUp    = kHatLeft | kHatUp,
//   kHatLeftDown  = kHatLeft | kHatDown,
// };
//
// enum USBVendor {
//   kUSBVendorApple     = 0x05ac,
//   kUSBVendorMicrosoft = 0x045e,
//   kUSBVendorSony      = 0x054c,
// };
//
// enum USBProduct {
//   kUSBProductSonyDS4Slim                  = 0x09cc,
//   kUSBProductSonyDS5                      = 0x0ce6,
//   kUSBProductXboxOneEliteSeries2Bluetooth = 0x0b05,
//   kUSBProductXboxOneSRev1Bluetooth        = 0x02e0,
//   kUSBProductXboxSeriesXBluetooth         = 0x0b13,
// };
//
// struct ControllerProperty {
//   uint8_t nAxes;
//   uint8_t nButtons;
//   uint8_t nHats;
//   uint16_t buttonMask;
//   char guid[16];
//   char name[256];
//   bool hasDualshockTouchpad;
//   bool hasXboxPaddles;
//   bool hasXboxShareButton;
// };
//
// void ebitenAddGamepad(uintptr_t controller, struct ControllerProperty* prop);
// void ebitenRemoveGamepad(uintptr_t controller);
//
// static size_t min(size_t a, size_t b) {
//   return a < b ? a : b;
// }
//
// static void getControllerPropertyFromController(GCController* controller, struct ControllerProperty* property) {
//   @autoreleasepool {
//     uint16_t vendor = 0;
//     uint16_t product = 0;
//     uint16_t subtype = 0;
//
//     const char* name = nil;
//     if (controller.vendorName) {
//       name = controller.vendorName.UTF8String;
//     }
//     if (!name) {
//       name = "MFi Gamepad";
//     }
//     memcpy(property->name, name, min(sizeof(property->name), strlen(name)));
//
//     if (controller.extendedGamepad) {
//       GCExtendedGamepad* gamepad = controller.extendedGamepad;
//
//       bool isXbox = false;
//       bool isPS4 = false;
//       bool isPS5 = false;
//       if (@available(macOS 10.15, iOS 13.0, tvOS 13.0, *)) {
//         NSString* productCategory = [controller productCategory];
//         if ([productCategory isEqualToString:@"DualShock 4"]) {
//           isPS4 = 1;
//         } else if ([productCategory isEqualToString:@"DualSense"]) {
//           isPS5 = 1;
//         } else if ([productCategory isEqualToString:@"Xbox One"]) {
//           isXbox = 1;
//         }
//       } else {
//         NSString* vendorName = [controller vendorName];
//         if ([vendorName isEqualToString:@"DUALSHOCK"]) {
//           isPS4 = 1;
//         } else if ([vendorName isEqualToString:@"DualSense"]) {
//           isPS5 = 1;
//         } else if ([vendorName isEqualToString:@"Xbox"]) {
//           isXbox = 1;
//         }
//       }
//
//       property->buttonMask |= (1 << kControllerButtonA);
//       property->buttonMask |= (1 << kControllerButtonB);
//       property->buttonMask |= (1 << kControllerButtonX);
//       property->buttonMask |= (1 << kControllerButtonY);
//       property->buttonMask |= (1 << kControllerButtonLeftShoulder);
//       property->buttonMask |= (1 << kControllerButtonRightShoulder);
//       property->nButtons += 6;
//
// #pragma clang diagnostic push
// #pragma clang diagnostic ignored "-Wunguarded-availability-new"
//
//       if ([gamepad respondsToSelector:@selector(leftThumbstickButton)] && gamepad.leftThumbstickButton) {
//         property->buttonMask |= (1 << kControllerButtonLeftStick);
//         property->nButtons++;
//       }
//       if ([gamepad respondsToSelector:@selector(rightThumbstickButton)] && gamepad.rightThumbstickButton) {
//         property->buttonMask |= (1 << kControllerButtonRightStick);
//         property->nButtons++;
//       }
//       if ([gamepad respondsToSelector:@selector(buttonOptions)] && gamepad.buttonOptions) {
//         property->buttonMask |= (1 << kControllerButtonBack);
//         property->nButtons++;
//       }
//       if ([gamepad respondsToSelector:@selector(buttonHome)] && gamepad.buttonHome) {
//         property->buttonMask |= (1 << kControllerButtonGuide);
//         property->nButtons++;
//       }
//
//       property->buttonMask |= (1 << kControllerButtonStart);
//       property->nButtons++;
//
//       if ([controller respondsToSelector:@selector(physicalInputProfile)]) {
//         if (controller.physicalInputProfile.buttons[GCInputDualShockTouchpadButton] != nil) {
//           property->hasDualshockTouchpad = true;
//           property->buttonMask |= (1 << kControllerButtonMisc1);
//           property->nButtons++;
//         }
//         if (controller.physicalInputProfile.buttons[GCInputXboxPaddleOne] != nil) {
//           property->hasXboxPaddles = true;
//           property->buttonMask |= (1 << kControllerButtonPaddle1);
//           property->nButtons++;
//         }
//         if (controller.physicalInputProfile.buttons[GCInputXboxPaddleTwo] != nil) {
//           property->hasXboxPaddles = true;
//           property->buttonMask |= (1 << kControllerButtonPaddle2);
//           property->nButtons++;
//         }
//         if (controller.physicalInputProfile.buttons[GCInputXboxPaddleThree] != nil) {
//           property->hasXboxPaddles = true;
//           property->buttonMask |= (1 << kControllerButtonPaddle3);
//           property->nButtons++;
//         }
//         if (controller.physicalInputProfile.buttons[GCInputXboxPaddleFour] != nil) {
//           property->hasXboxPaddles = true;
//           property->buttonMask |= (1 << kControllerButtonPaddle4);
//           property->nButtons++;
//         }
//         if (controller.physicalInputProfile.buttons[GCInputXboxShareButton] != nil) {
//           property->hasXboxShareButton = true;
//           property->buttonMask |= (1 << kControllerButtonMisc1);
//           property->nButtons++;
//         }
//       }
//
// #pragma clang diagnostic pop
//
//       if (isXbox) {
//         vendor = kUSBVendorMicrosoft;
//         if (property->hasXboxPaddles) {
//           product = kUSBProductXboxOneEliteSeries2Bluetooth;
//           subtype = 1;
//         } else if (property->hasXboxShareButton) {
//           product = kUSBProductXboxSeriesXBluetooth;
//           subtype = 1;
//         } else {
//           product = kUSBProductXboxOneSRev1Bluetooth;
//           subtype = 0;
//         }
//       } else if (isPS4) {
//         vendor = kUSBVendorSony;
//         product = kUSBProductSonyDS4Slim;
//         if (property->hasDualshockTouchpad) {
//           subtype = 1;
//         } else {
//           subtype = 0;
//         }
//       } else if (isPS5) {
//         vendor = kUSBVendorSony;
//         product = kUSBProductSonyDS5;
//         subtype = 0;
//       } else {
//         vendor = kUSBVendorApple;
//         product = 1;
//         subtype = 1;
//       }
//
//       property->nAxes = 6;
//       property->nHats = 1;
//     }
//
//     const int kSDLHardwareBusBluetooth = 0x05;
//     property->guid[0] = (uint8_t)(kSDLHardwareBusBluetooth);
//     property->guid[1] = (uint8_t)(kSDLHardwareBusBluetooth >> 8);
//     property->guid[2] = 0;
//     property->guid[3] = 0;
//     property->guid[4] = (uint8_t)(vendor);
//     property->guid[5] = (uint8_t)(vendor >> 8);
//     property->guid[6] = 0;
//     property->guid[7] = 0;
//     property->guid[8] = (uint8_t)(product);
//     property->guid[9] = (uint8_t)(product >> 8);
//     property->guid[10] = 0;
//     property->guid[11] = 0;
//     property->guid[12] = (uint8_t)(property->buttonMask);
//     property->guid[13] = (uint8_t)(property->buttonMask >> 8);
//     if (vendor == kUSBVendorApple) {
//       property->guid[14] = 'm';
//     } else {
//       property->guid[14] = 0;
//     }
//     property->guid[15] = subtype;
//   }
// }
//
// static void addController(GCController* controller) {
//   // Ignore if the controller is not an actual controller.
//   if (!controller.extendedGamepad && controller.microGamepad) {
//     return;
//   }
//
//   struct ControllerProperty property = {};
//   getControllerPropertyFromController(controller, &property);
//   ebitenAddGamepad((uintptr_t)(controller), &property);
// }
//
// static void removeController(GCController* controller) {
//   ebitenRemoveGamepad((uintptr_t)(controller));
// }
//
// struct ControllerState {
//   uint8_t buttons[32];
//   float axes[32];
//   enum HatState hat;
// };
//
// static enum HatState getHatState(GCControllerDirectionPad* dpad) {
//   enum HatState hat = 0;
//   if (dpad.up.isPressed) {
//     hat |= kHatUp;
//   } else if (dpad.down.isPressed) {
//     hat |= kHatDown;
//   }
//   if (dpad.left.isPressed) {
//     hat |= kHatLeft;
//   } else if (dpad.right.isPressed) {
//     hat |= kHatRight;
//   }
//   return hat;
// }
//
// static void getControllerState(uintptr_t controller_ptr, struct ControllerState* controllerState,
//                                uint16_t buttonMask, uint8_t nHats,
//                                bool hasDualshockTouchpad, bool hasXboxPaddles, bool hasXboxShareButton) {
//   GCController* controller = (GCController*)(controller_ptr);
//   @autoreleasepool {
//     if (controller.extendedGamepad) {
//       GCExtendedGamepad* gamepad = controller.extendedGamepad;
//
//       controllerState->axes[0] = gamepad.leftThumbstick.xAxis.value;
//       controllerState->axes[1] = -gamepad.leftThumbstick.yAxis.value;
//       controllerState->axes[2] = gamepad.leftTrigger.value * 2 - 1;
//       controllerState->axes[3] = gamepad.rightThumbstick.xAxis.value;
//       controllerState->axes[4] = -gamepad.rightThumbstick.yAxis.value;
//       controllerState->axes[5] = gamepad.rightTrigger.value * 2 - 1;
//
//       int buttonCount = 0;
//       controllerState->buttons[buttonCount++] = gamepad.buttonA.isPressed;
//       controllerState->buttons[buttonCount++] = gamepad.buttonB.isPressed;
//       controllerState->buttons[buttonCount++] = gamepad.buttonX.isPressed;
//       controllerState->buttons[buttonCount++] = gamepad.buttonY.isPressed;
//       controllerState->buttons[buttonCount++] = gamepad.leftShoulder.isPressed;
//       controllerState->buttons[buttonCount++] = gamepad.rightShoulder.isPressed;
//
// #pragma clang diagnostic push
// #pragma clang diagnostic ignored "-Wunguarded-availability-new"
//
//       if (buttonMask & (1 << kControllerButtonLeftStick)) {
//         controllerState->buttons[buttonCount++] = gamepad.leftThumbstickButton.isPressed;
//       }
//       if (buttonMask & (1 << kControllerButtonRightStick)) {
//         controllerState->buttons[buttonCount++] = gamepad.rightThumbstickButton.isPressed;
//       }
//       if (buttonMask & (1 << kControllerButtonBack)) {
//         controllerState->buttons[buttonCount++] = gamepad.buttonOptions.isPressed;
//       }
//       if (buttonMask & (1 << kControllerButtonGuide)) {
//         controllerState->buttons[buttonCount++] = gamepad.buttonHome.isPressed;
//       }
//       if (buttonMask & (1 << kControllerButtonStart)) {
//         controllerState->buttons[buttonCount++] = gamepad.buttonMenu.isPressed;
//       }
//
//       if (hasDualshockTouchpad) {
//         controllerState->buttons[buttonCount++] = controller.physicalInputProfile.buttons[GCInputDualShockTouchpadButton].isPressed;
//       }
//       if (hasXboxPaddles) {
//         if (buttonMask & (1 << kControllerButtonPaddle1)) {
//           controllerState->buttons[buttonCount++] = controller.physicalInputProfile.buttons[GCInputXboxPaddleOne].isPressed;
//         }
//         if (buttonMask & (1 << kControllerButtonPaddle2)) {
//           controllerState->buttons[buttonCount++] = controller.physicalInputProfile.buttons[GCInputXboxPaddleTwo].isPressed;
//         }
//         if (buttonMask & (1 << kControllerButtonPaddle3)) {
//           controllerState->buttons[buttonCount++] = controller.physicalInputProfile.buttons[GCInputXboxPaddleThree].isPressed;
//         }
//         if (buttonMask & (1 << kControllerButtonPaddle4)) {
//           controllerState->buttons[buttonCount++] = controller.physicalInputProfile.buttons[GCInputXboxPaddleFour].isPressed;
//         }
//       }
//       if (hasXboxShareButton) {
//         controllerState->buttons[buttonCount++] = controller.physicalInputProfile.buttons[GCInputXboxShareButton].isPressed;
//       }
//
// #pragma clang diagnostic pop
//
//       if (nHats) {
//         controllerState->hat = getHatState(gamepad.dpad);
//       }
//     }
//   }
// }
//
// static void initializeGamepads(void) {
//   @autoreleasepool {
//     for (GCController* controller in [GCController controllers]) {
//       addController(controller);
//     }
//     NSNotificationCenter* center = [NSNotificationCenter defaultCenter];
//     [center addObserverForName:GCControllerDidConnectNotification
//                         object:nil
//                          queue:nil
//                     usingBlock:^(NSNotification* notification) {
//                                  addController(notification.object);
//                                }];
//     [center addObserverForName:GCControllerDidDisconnectNotification
//                         object:nil
//                          queue:nil
//                     usingBlock:^(NSNotification* notification) {
//                                  removeController(notification.object);
//                                }];
//   }
// }
import "C"

import (
	"encoding/hex"
	"unsafe"
)

//export ebitenAddGamepad
func ebitenAddGamepad(controller C.uintptr_t, prop *C.struct_ControllerProperty) {
	theGamepads.addIOSGamepad(controller, prop)
}

//export ebitenRemoveGamepad
func ebitenRemoveGamepad(controller C.uintptr_t) {
	theGamepads.removeIOSGamepad(controller)
}

func (g *gamepads) addIOSGamepad(controller C.uintptr_t, prop *C.struct_ControllerProperty) {
	g.m.Lock()
	defer g.m.Unlock()

	name := C.GoString(&prop.name[0])
	sdlID := hex.EncodeToString(C.GoBytes(unsafe.Pointer(&prop.guid[0]), 16))
	gp := g.add(name, sdlID)
	gp.native = &nativeGamepadImpl{
		controller:           uintptr(controller),
		axes:                 make([]float64, prop.nAxes),
		buttons:              make([]bool, prop.nButtons+prop.nHats*4),
		hats:                 make([]int, prop.nHats),
		buttonMask:           uint16(prop.buttonMask),
		hasDualshockTouchpad: bool(prop.hasDualshockTouchpad),
		hasXboxPaddles:       bool(prop.hasXboxPaddles),
		hasXboxShareButton:   bool(prop.hasXboxShareButton),
	}
}

func (g *gamepads) removeIOSGamepad(controller C.uintptr_t) {
	g.m.Lock()
	defer g.m.Unlock()

	g.remove(func(gamepad *Gamepad) bool {
		return gamepad.native.(*nativeGamepadImpl).controller == uintptr(controller)
	})
}

func initializeIOSGamepads() {
	C.initializeGamepads()
}

func (g *nativeGamepadImpl) updateIOSGamepad() {
	var state C.struct_ControllerState
	C.getControllerState(C.uintptr_t(g.controller), &state, C.uint16_t(g.buttonMask), C.uint8_t(len(g.hats)),
		C.bool(g.hasDualshockTouchpad), C.bool(g.hasXboxPaddles), C.bool(g.hasXboxShareButton))

	nButtons := len(g.buttons) - len(g.hats)*4
	for i := 0; i < nButtons; i++ {
		g.buttons[i] = state.buttons[i] != 0
	}

	// Follow the GLFW way to process hats.
	// See _glfwInputJoystickHat.
	if len(g.hats) > 0 {
		base := len(g.buttons) - len(g.hats)*4
		g.buttons[base] = state.hat&0x01 != 0
		g.buttons[base+1] = state.hat&0x02 != 0
		g.buttons[base+2] = state.hat&0x04 != 0
		g.buttons[base+3] = state.hat&0x08 != 0
	}

	for i := range g.axes {
		g.axes[i] = float64(state.axes[i])
	}

	if len(g.hats) > 0 {
		g.hats[0] = int(state.hat)
	}
}


text:
<!--
  The Ohio State University Research Foundation, Emory University,
  the University of Minnesota Supercomputing Institute

  Distributed under the OSI-approved BSD 3-Clause License.
  See http://ncip.github.com/cagrid-grid-incubation/LICENSE.txt for details.
-->
<!--
-->
<?xml version="1.0"?>
<project name="Developer Modified Build File" basedir=".">
  <!-- ============================================================== -->
  <!-- This file is designed to allow the developer to extend the     -->
  <!-- build process without having to edit the master build.xml      -->
  <!-- file. DO NOT REMOVE ANY TARGETS                                -->
  <!-- ============================================================== -->
  <!-- ============================================================== -->
  <!-- Place any other properties you will need here                  -->
  <!-- ============================================================== -->
  <!-- ============================================================== -->
  <!-- Create any extended Classpaths here                            -->
  <!-- ============================================================== -->
  <target name="defineExtendedClasspaths">
    <path id="base.extended.classpath" />
    <path id="service.build.extended.classpath" />
    <path id="service.run.extended.classpath" />
    <path id="test.build.extended.classpath" />
    <path id="test.run.extended.classpath" />
    <path id="run.extended.classpath" />
    <path id="tasks.run.extended.classpath" />
  </target>
  <!-- ============================================================== -->
  <!-- Pre Init Target                                                -->
  <!-- ============================================================== -->
  <target name="preInit" />
  <!-- ============================================================== -->
  <!-- Post Init Build Target                                         -->
  <!-- ============================================================== -->
  <target name="postInit" />
  <!-- ============================================================== -->
  <!-- Pre Stubs Target                                               -->
  <!-- ============================================================== -->
  <target name="preStubs" />
  <!-- ============================================================== -->
  <!-- Post Stubs Build Target                                        -->
  <!-- ============================================================== -->
  <target name="postStubs">
    <replaceregexp match="org.iso._21090.BL" replace="org.iso._21090.BL" flags="gi" byline="true">
      <fileset dir="${stubs.src}" includes="**/stubs/*.java" />
    </replaceregexp>
    <replaceregexp match="org.iso._21090.BLNonNull" replace="org.iso._21090.BlNonNull" flags="gi" byline="true">
      <fileset dir="${stubs.src}" includes="**/stubs/*.java" />
    </replaceregexp>
    <replaceregexp match="org.iso._21090.ST" replace="org.iso._21090.ST" flags="gi" byline="true">
      <fileset dir="${stubs.src}" includes="**/stubs/*.java" />
    </replaceregexp>
    <replaceregexp match="org.iso._21090.STNT" replace="org.iso._21090.StNt" flags="gi" byline="true">
      <fileset dir="${stubs.src}" includes="**/stubs/*.java" />
    </replaceregexp>
    <replaceregexp match="org.iso._21090.II" replace="org.iso._21090.Ii" flags="gi" byline="true">
      <fileset dir="${stubs.src}" includes="**/stubs/*.java" />
    </replaceregexp>
    <replaceregexp match="org.iso._21090.TEL" replace="org.iso._21090.TEL" flags="gi" byline="true">
      <fileset dir="${stubs.src}" includes="**/stubs/*.java" />
    </replaceregexp>
    <replaceregexp match="org.iso._21090.TELPerson" replace="org.iso._21090.TELPerson" flags="gi" byline="true">
      <fileset dir="${stubs.src}" includes="**/stubs/*.java" />
    </replaceregexp>
    <replaceregexp match="org.iso._21090.TELUrl" replace="org.iso._21090.TelUrl" flags="gi" byline="true">
      <fileset dir="${stubs.src}" includes="**/stubs/*.java" />
    </replaceregexp>
    <replaceregexp match="org.iso._21090.TELPhone" replace="org.iso._21090.TelPhone" flags="gi" byline="true">
      <fileset dir="${stubs.src}" includes="**/stubs/*.java" />
    </replaceregexp>
    <replaceregexp match="org.iso._21090.TELEmail" replace="org.iso._21090.TelEmail" flags="gi" byline="true">
      <fileset dir="${stubs.src}" includes="**/stubs/*.java" />
    </replaceregexp>
    <replaceregexp match="org.iso._21090.ED" replace="org.iso._21090.ED" flags="gi" byline="true">
      <fileset dir="${stubs.src}" includes="**/stubs/*.java" />
    </replaceregexp>
    <replaceregexp match="org.iso._21090.EDText" replace="org.iso._21090.EdText" flags="gi" byline="true">
      <fileset dir="${stubs.src}" includes="**/stubs/*.java" />
    </replaceregexp>
    <replaceregexp match="org.iso._21090.CD" replace="org.iso._21090.CD" flags="gi" byline="true">
      <fileset dir="${stubs.src}" includes="**/stubs/*.java" />
    </replaceregexp>
    <replaceregexp match="org.iso._21090.SC" replace="org.iso._21090.SC" flags="gi" byline="true">
      <fileset dir="${stubs.src}" includes="**/stubs/*.java" />
    </replaceregexp>
    <replaceregexp match="org.iso._21090.INT" replace="org.iso._21090.INT" flags="gi" byline="true">
      <fileset dir="${stubs.src}" includes="**/stubs/*.java" />
    </replaceregexp>
    <replaceregexp match="org.iso._21090.REAL" replace="org.iso._21090.Real" flags="gi" byline="true">
      <fileset dir="${stubs.src}" includes="**/stubs/*.java" />
    </replaceregexp>
    <replaceregexp match="org.iso._21090.TS" replace="org.iso._21090.TS" flags="gi" byline="true">
      <fileset dir="${stubs.src}" includes="**/stubs/*.java" />
    </replaceregexp>
    <replaceregexp match="org.iso._21090.PQ" replace="org.iso._21090.PQ" flags="gi" byline="true">
      <fileset dir="${stubs.src}" includes="**/stubs/*.java" />
    </replaceregexp>
    <replaceregexp match="org.iso._21090.IVL_TS" replace="org.iso._21090.IVLTS" flags="gi" byline="true">
      <fileset dir="${stubs.src}" includes="**/stubs/*.java" />
    </replaceregexp>
    <replaceregexp match="org.iso._21090.IVL_PQ" replace="org.iso._21090.IVLPQ" flags="gi" byline="true">
      <fileset dir="${stubs.src}" includes="**/stubs/*.java" />
    </replaceregexp>
    <replaceregexp match="org.iso._21090.IVL_REAL" replace="org.iso._21090.IVLREAL" flags="gi" byline="true">
      <fileset dir="${stubs.src}" includes="**/stubs/*.java" />
    </replaceregexp>
    <replaceregexp match="org.iso._21090.IVL_INT" replace="org.iso._21090.IVLINT" flags="gi" byline="true">
      <fileset dir="${stubs.src}" includes="**/stubs/*.java" />
    </replaceregexp>
    <replaceregexp match="org.iso._21090.AD" replace="org.iso._21090.Ad" flags="gi" byline="true">
      <fileset dir="${stubs.src}" includes="**/stubs/*.java" />
    </replaceregexp>
    <replaceregexp match="org.iso._21090.EN" replace="org.iso._21090.EN" flags="gi" byline="true">
      <fileset dir="${stubs.src}" includes="**/stubs/*.java" />
    </replaceregexp>
    <replaceregexp match="org.iso._21090.ENON" replace="org.iso._21090.EnOn" flags="gi" byline="true">
      <fileset dir="${stubs.src}" includes="**/stubs/*.java" />
    </replaceregexp>
    <replaceregexp match="org.iso._21090.ENPN" replace="org.iso._21090.EnPn" flags="gi" byline="true">
      <fileset dir="${stubs.src}" includes="**/stubs/*.java" />
    </replaceregexp>
    <replaceregexp match="org.iso._21090.DSET_II" replace="org.iso._21090.DSetII" flags="gi" byline="true">
      <fileset dir="${stubs.src}" includes="**/stubs/*.java" />
    </replaceregexp>
    <replaceregexp match="org.iso._21090.DSET_TEL" replace="org.iso._21090.DSetTel" flags="gi" byline="true">
      <fileset dir="${stubs.src}" includes="**/stubs/*.java" />
    </replaceregexp>
    <replaceregexp match="org.iso._21090.DSET_CD" replace="org.iso._21090.DSetCd" flags="gi" byline="true">
      <fileset dir="${stubs.src}" includes="**/stubs/*.java" />
    </replaceregexp>
    <replaceregexp match="org.iso._21090.DSET_AD" replace="org.iso._21090.DSetAd" flags="gi" byline="true">
      <fileset dir="${stubs.src}" includes="**/stubs/*.java" />
    </replaceregexp>
    <java failonerror="true" classname="org.cagrid.iso21090.extensions.FixISO21090IntroduceStubsTest" classpathref="run.classpath" fork="yes">
      <jvmarg value="-DGLOBUS_LOCATION=${ext.globus.dir}" />
      <arg value="${basedir}" />
    </java>
  </target>
  <!-- ============================================================== -->
  <!-- Pre Compile Stubs Build Target                                 -->
  <!-- ============================================================== -->
  <target name="preCompileStubs" />
  <!-- ============================================================== -->
  <!-- Post Compile Stubs Build Target                                -->
  <!-- ============================================================== -->
  <target name="postCompileStubs" />
  <!-- ============================================================== -->
  <!-- Pre Jar Stubs Build Target                                     -->
  <!-- ============================================================== -->
  <target name="preJarStubs" />
  <!-- ============================================================== -->
  <!-- Post Jar Stubs Build Target                                    -->
  <!-- ============================================================== -->
  <target name="postJarStubs" />
  <!-- ============================================================== -->
  <!-- Pre Compile Build Target                                       -->
  <!-- ============================================================== -->
  <target name="preCompile" />
  <!-- ============================================================== -->
  <!-- Post Compile Build Target                                       -->
  <!-- ============================================================== -->
  <target name="postCompile" />
  <!-- ============================================================== -->
  <!-- Pre Jar Build Target                                       -->
  <!-- ============================================================== -->
  <target name="preJar" />
  <!-- ============================================================== -->
  <!-- Post Jar Build Target                                          -->
  <!-- ============================================================== -->
  <target name="postJar" />
  <!-- ============================================================== -->
  <!-- Pre Compile Tests Build Target                                 -->
  <!-- ============================================================== -->
  <target name="preCompileTests" />
  <!-- ============================================================== -->
  <!-- Post Compile Tests Build Target                                -->
  <!-- ============================================================== -->
  <target name="postCompileTests" />
  <!-- ============================================================== -->
  <!-- Pre Jar Tests Build Target                                     -->
  <!-- ============================================================== -->
  <target name="preJarTests" />
  <!-- ============================================================== -->
  <!-- Post Jar Tests Build Target                                    -->
  <!-- ============================================================== -->
  <target name="postJarTests" />
  <!-- ============================================================== -->
  <!-- Pre Clean Target                                               -->
  <!-- ============================================================== -->
  <target name="preClean" />
  <!-- ============================================================== -->
  <!-- Post Clean Target                                              -->
  <!-- ============================================================== -->
  <target name="postClean" />
</project>


text:
<?php

?>

<?php
// the next 2 lines to prevent caching
	include "conntube.php";
	session_start();

	header("Cache-control: private");
	//header("Content-type: text/html;charset=UTF-8");
	header("Content-type: text/xml");

	$newsidlist = array();
	$newsdesc = array();
	$newstitle = array();
	$splcharacters = array("&","'");
	$i = 0 ;

	$query = mysql_query("select * from news ");

	while($how=mysql_fetch_array($query))
	{
	$newsidlist[$i] = $how['id'];

	$newsdesc[$i] = $how['Description'];
	$newstitle[$i] = $how['Title'];

	if($how['isactive']== '1')
	{$newsisactive[$i] = 'true';}
	else
	{$newsisactive[$i] = 'false';}

	$i=$i+1;
	}

	echo "<partnerarticles>";
	for($j=0; $j<$i;$j++)
	{
	$retstring = $newsidlist[$j];
	$splcharacters = array("&","'");
	$retstring_without_splcharacters = str_replace($splcharacters, "",$retstring);

	$petstring = $newsdesc[$j];
	$splcharacters = array("&","'");
	$petstring_without_splcharacters = str_replace($splcharacters, "",$petstring);

	$detstring = $newstitle[$j];
	$splcharacters = array("&","'");
	$detstring_without_splcharacters = str_replace($splcharacters, "",$detstring);

	$netstring = $newsisactive[$j];
	$splcharacters = array("&","'");
	$netstring_without_splcharacters = str_replace($splcharacters, "",$netstring);
	//error_log("titleeesas" .$netstring_without_splcharacters);

	echo "<item>"."<id>".$retstring_without_splcharacters."</id>"."<title>".$detstring_without_splcharacters."</title>"."<desc>".$petstring_without_splcharacters."</desc>"."<isactive>".$netstring_without_splcharacters."</isactive>"."</item>";
	}
	echo "</partnerarticles>";


text:
def initialize(name, age)
    super(abc)
#


text:
MemoryMappedFile::MemoryMappedFile() :
    m_mapFile(INVALID_HANDLE_VALUE),
    m_file(INVALID_HANDLE_VALUE),
    m_mapAddress(nullptr),
    m_currentFileSize(0)
{
}

MemoryMappedFile::~MemoryMappedFile()
{
}

void MemoryMappedFile::Init(std::wstring filename, UINT fileSize)
{
    m_filename = filename;
    WIN32_FIND_DATA findFileData;
    HANDLE handle = FindFirstFileEx(filename.c_str(), FindExInfoBasic, &findFileData, FindExSearchNameMatch, nullptr, 0);
    bool found = handle != INVALID_HANDLE_VALUE;

    if (found)
    {
        FindClose(handle);
    }

    m_file = CreateFile2(
        filename.c_str(),
        GENERIC_READ | GENERIC_WRITE,
        0,
        (found) ? OPEN_EXISTING : CREATE_NEW,
        nullptr);

    if (m_file == INVALID_HANDLE_VALUE)
    {
        std::cerr << (L"m_file is invalid. Error %ld.\n", GetLastError());
        std::cerr << (L"Target file is %s\n", filename.c_str());
        return;
    }

    LARGE_INTEGER realFileSize = {};
    BOOL flag = GetFileSizeEx(m_file, &realFileSize);
    if (!flag)
    {
        std::cerr << (L"\nError %ld occurred in GetFileSizeEx!", GetLastError());
        assert(false);
        return;
    }

    assert(realFileSize.HighPart == 0);
    m_currentFileSize = realFileSize.LowPart;
    if (m_currentFileSize == 0)
    {
        // File mapping files with a size of 0 produces an error.
        m_currentFileSize = DefaultFileSize;
    }
    else if(fileSize > m_currentFileSize)
    {
        // Grow to the specified size.
        m_currentFileSize = fileSize;
    }

    m_mapFile = CreateFileMapping(m_file, nullptr, PAGE_READWRITE, 0, m_currentFileSize, nullptr);

    if (m_mapFile == nullptr)
    {
        std::cerr << (L"m_mapFile is NULL: last error: %d\n", GetLastError());
        assert(false);
        return;
    }

    m_mapAddress = MapViewOfFile(m_mapFile, FILE_MAP_ALL_ACCESS, 0, 0, m_currentFileSize);

    if (m_mapAddress == nullptr)
    {
        std::cerr << (L"m_mapAddress is NULL: last error: %d\n", GetLastError());
        assert(false);
        return;
    }
}

void MemoryMappedFile::Destroy(bool deleteFile)
{
    if (m_mapAddress)
    {
        BOOL flag = UnmapViewOfFile(m_mapAddress);
        if (!flag)
        {
            std::cerr << (L"\nError %ld occurred unmapping the view!", GetLastError());
            assert(false);
        }

        m_mapAddress = nullptr;

        flag = CloseHandle(m_mapFile);    // Close the file mapping object.
        if (!flag)
        {
            std::cerr << (L"\nError %ld occurred closing the mapping object!", GetLastError());
            assert(false);
        }

        flag = CloseHandle(m_file);        // Close the file itself.
        if (!flag)
        {
            std::cerr << (L"\nError %ld occurred closing the file!", GetLastError());
            assert(false);
        }
    }

    if (deleteFile)
    {
        DeleteFile(m_filename.c_str());
    }
}

void MemoryMappedFile::GrowMapping(UINT size)
{
    // Add space for the extra size at the beginning of the file.
    size += sizeof(UINT);

    // Check the size.
    if (size <= m_currentFileSize)
    {
        // Don't shrink.
        return;
    }

    // Flush.
    BOOL flag = FlushViewOfFile(m_mapAddress, 0);
    if (!flag)
    {
        std::cerr << (L"\nError %ld occurred flushing the mapping object!", GetLastError());
        assert(false);
    }

    // Close the current mapping.
    Destroy(false);

    // Update the size and create a new mapping.
    m_currentFileSize = size;
    Init(m_filename, m_currentFileSize);
}


text:
#ifndef PH_OUTPUT_H
#define PH_OUTPUT_H

#include "phInput.h"
#include "phBlock.h"
#include "phBC.h"

namespace apf {
class Mesh;
}

struct GRStream;

namespace ph {

struct EnsaArrays
{
  double* coordinates;
/* describes inter-part connectivity,
   see ph::encodeILWORK */
  int* ilwork;
/* describes inter-part element connectivity,
   see ph::encodeILWORKF */
  int* ilworkf;
/* periodic masters array, one per node... */
  int* iper;
/* note: int will overflow at about 2 billion total nodes */
  int* globalNodeNumbers;
/* ien[i][j][k] is the local vertex id of
   vertex k of
   element j of
   interior block i */
  int*** ien;
/* ienb[i][j][k] is the local vertex id of
   vertex k of
   element j of
   boundary block i */
  int*** ienb;
/* ienif0,1[i][j][k] are the local vertex id of
   vertex k of
   element j of
   interface block i
   ienif0 and ienif1 correspond to the two elements on the interface
 */
  int*** ienif0;
  int*** ienif1;
/* mattype[i][j] is the material type of
   element j of
   interior block i */
  int** mattype;
/* mattypeb[i][j] is the material type of
   element j of
   boundary block i */
  int** mattypeb;
/* mattypeif0,1[i][j] are the material types of
   element j of
   interface blocks 0,1 i */
  int** mattypeif0;
  int** mattypeif1;
/* ibcb[i][j][k] is the natural boundary condition
   status code
   number k in [0,1] of
   element j of
   boundary block i */
/* ibcb (part 0) has these bits:
   MF NP TV HF TW F1 F2 F3 F4 TVM
   0  1  2  3  4  5  6  7  8   9
   part 1 is just the value of SID */
  int*** ibcb;
/* bcb[i][j][k] is the natural boundary condition
   value for
   boundary condition k of
   element j of
   boundary block i */
/* bcb is organized as follows:
   MF NP TV     HF F1 F2 F3 F4 --TVM---
   0  1  2 3 4  5  6  7  8  9  10 11 12 */
  double*** bcb;
/* nbc[i] is the index into essential boundary condition
   arrays of local node i (probably ;) */
  int* nbc;
/* ibc[i] is the essential boundary condition
   status code of essential BC node i */
/* ibc bits are as follows:
var: rho t p u v w sc1 sc2 sc3 sc4 perio --NULL-- eu ev ew
bit:  0  1 2 3 4 5  6   7   8   9    10  11 12 13 14 15 16 */
  int* ibc;
/* bc[i][j] is the essential boundary condition
   value of
   essential boundary condition j of
   essential BC node i */
/* bc is organized as follows:
var:  rho t p c11 c12 c13 m1 c21 c22 c23 m2 theta sc1 sc2 sc3 sc4 ec11 ec12 ec13 em1 ec21 ec22 ec23 em2
idx:   0  1 2  3   4   5  6   7   8   9  10   11  12  13  14  15   16   17   18  19   20   21   22  23  */
  double** bc;
/* encodes part-local element to element connectivity */
  int* ienneigh;
/* encodes parallel communication between mesh edges */
  int* ilworkl;
/* tetrahedra to local edges, already in FORTRAN order and from 1 */
  int* iel;
/* edges to tetrahedra offsets */
  int* ileo;
/* edges to tetrahedra adjacencies */
  int* ile;
};

struct Output
{
  ~Output();
  Input* in;
  apf::Mesh* mesh;
/* again, int will overflow */
  int nGlobalEntities[4];
  int nOverlapNodes;
  int nOwnedNodes;
  int nGlobalNodes;
  int nBoundaryElements;
  int nInterfaceElements;
  int nMaxElementNodes;
  int nEssentialBCNodes;
  int nOverlapEdges;
  int nlwork; /* size of arrays.ilwork */
  int nlworkf; /* size of arrays.ilworkf */
  int nlworkl; /* size of arrays.ilworkl */
  bool hasDGInterface;
  FILE* (*openfile_write)(Output& out, const char* path);
  GRStream* grs;
  AllBlocks blocks;
  EnsaArrays arrays;
};

void generateOutput(Input& in, BCs& bcs, apf::Mesh* mesh, Output& o);
void writeGeomBC(Output& o, std::string path, int timestep_or_dat = 0);

}

#endif


text:
page '/sitemap.xml', :layout => false, :format => :xhtml

# Proxy (fake) files
# page "/this-page-has-no-template.html", :proxy => "/template-file.html" do
#   @which_fake_page = "Rendering a fake page with a variable"
# end

###
# Helpers
###

# Automatic image dimensions on image_tag helper
activate :automatic_image_sizes

activate :blog do |blog|
  blog.prefix = 'blog'
  blog.permalink = ':title'
  blog.default_extension = '.md'
  blog.layout = 'blogpost.html.haml'
  blog.paginate = true
  blog.tag_template = 'blog/tag.html'
  blog.taglink = '/tags/:tag.html'
end

# Directory Indexes
activate :directory_indexes

Time.zone = 'Paris'

# Methods defined in the helpers block are available in templates
helpers do
  def gravatar_for(email)
    hash = Digest::MD5.hexdigest(email.chomp.downcase)
    "https://www.gravatar.com/avatar/#{hash}?size=128"
  end

  def get_menu_labels(labels)
    labels.map do |label|
      [label, I18n.t("corporate.#{label}.title")]
    end.to_h
  end
end

set :css_dir, 'stylesheets'
set :js_dir, 'javascripts'
set :images_dir, 'images'

set :markdown_engine, :redcarpet
set :markdown,
  fenced_code_blocks: true,
  autolink: true,
  smartypants: true,
  gh_blockcode: true,
  lax_spacing: true,
  with_toc_data: true

activate :rouge_syntax

# Use relative URLs
# activate :relative_assets

# Add asset fingerprinting to avoid cache issues
activate :asset_hash

# Enable Autoprefixer for large browser support of CSS
activate :autoprefixer

# Build-specific configuration
configure :build do
  # For example, change the Compass output style for deployment
  activate :minify_css

  # Minify Javascript on build
  activate :minify_javascript

  # Minify HTML
  activate :minify_html

  # Enable cache buster
  # activate :cache_buster

  # Compress PNGs after build
  # First: gem install middleman-smusher
  # require "middleman-smusher"
  # activate :smusher

  # Create a whole bunch of favicons for various devices and OSes
  activate :favicon_maker, icons: {
    "images/logo-alpinelab-500.png" => [
      { icon: "apple-touch-icon-180x180-precomposed.png" },             # Same as apple-touch-icon-57x57.png, for iPhone 6 Plus with @3× display
      { icon: "apple-touch-icon-152x152-precomposed.png" },             # Same as apple-touch-icon-57x57.png, for retina iPad with iOS7.
      { icon: "apple-touch-icon-144x144-precomposed.png" },             # Same as apple-touch-icon-57x57.png, for retina iPad with iOS6 or prior.
      { icon: "apple-touch-icon-120x120-precomposed.png" },             # Same as apple-touch-icon-57x57.png, for retina iPhone with iOS7.
      { icon: "apple-touch-icon-114x114-precomposed.png" },             # Same as apple-touch-icon-57x57.png, for retina iPhone with iOS6 or prior.
      { icon: "apple-touch-icon-76x76-precomposed.png" },               # Same as apple-touch-icon-57x57.png, for non-retina iPad with iOS7.
      { icon: "apple-touch-icon-72x72-precomposed.png" },               # Same as apple-touch-icon-57x57.png, for non-retina iPad with iOS6 or prior.
      { icon: "apple-touch-icon-60x60-precomposed.png" },               # Same as apple-touch-icon-57x57.png, for non-retina iPhone with iOS7.
      { icon: "apple-touch-icon-57x57-precomposed.png" },               # iPhone and iPad users can turn web pages into icons on their home screen. Such link appears as a regular iOS native application. When this happens, the device looks for a specific picture. The 57x57 resolution is convenient for non-retina iPhone with iOS6 or prior. Learn more in Apple docs.
      { icon: "apple-touch-icon-precomposed.png", size: "57x57" },      # Same as apple-touch-icon.png, expect that is already have rounded corners (but neither drop shadow nor gloss effect).
      { icon: "apple-touch-icon.png", size: "57x57" },                  # Same as apple-touch-icon-57x57.png, for "default" requests, as some devices may look for this specific file. This picture may save some 404 errors in your HTTP logs. See Apple docs
      { icon: "favicon-196x196.png" },                                  # For Android Chrome M31+.
      { icon: "favicon-160x160.png" },                                  # For Opera Speed Dial (up to Opera 12; this icon is deprecated starting from Opera 15), although the optimal icon is not square but rather 256x160. If Opera is a major platform for you, you should create this icon yourself.
      { icon: "favicon-96x96.png" },                                    # For Google TV.
      { icon: "favicon-32x32.png" },                                    # For Safari on Mac OS.
      { icon: "favicon-16x16.png" },                                    # The classic favicon, displayed in the tabs.
      { icon: "favicon.png", size: "16x16" },                           # The classic favicon, displayed in the tabs.
      { icon: "favicon.ico", size: "64x64,32x32,24x24,16x16" },         # Used by IE, and also by some other browsers if we are not careful.
      { icon: "mstile-70x70.png", size: "70x70" },                      # For Windows 8 / IE11.
      { icon: "mstile-144x144.png", size: "144x144" },
      { icon: "mstile-150x150.png", size: "150x150" },
      { icon: "mstile-310x310.png", size: "310x310" },
      { icon: "mstile-310x150.png", size: "310x150" },
    ]
  }

  # Or use a different image path
  # set :http_path, "/Content/images/"
end

configure :development do
 activate :livereload
end

activate :i18n, mount_at_root: :fr

require '.localeapp/config'


text:
""" Utilities for authentication and authorization """
import binascii

# pylint: disable=E0611,W0403
from paste.httpheaders import AUTHORIZATION, WWW_AUTHENTICATE
# pylint: enable=E0611,W0403
from pyramid.authorization import ACLAuthorizationPolicy
from pyramid.httpexceptions import HTTPForbidden, HTTPUnauthorized
from pyramid.security import Everyone, authenticated_userid

# Copied from
# http://docs.pylonsproject.org/projects/pyramid_cookbook/en/latest/auth/basic.html
def get_basicauth_credentials(request):
    """ Get the user/password from HTTP basic auth """
    authorization = AUTHORIZATION(request.environ)
    try:
        authmeth, auth = authorization.split(' ', 1)
    except ValueError:  # not enough values to unpack
        return None
    if authmeth.lower() == 'basic':
        try:
            auth = auth.strip().decode('base64')
        except binascii.Error:  # can't decode
            return None
        try:
            login, password = auth.split(':', 1)
        except ValueError:  # not enough values to unpack
            return None
        return {'login': login, 'password': password}

    return None

class BasicAuthenticationPolicy(object):

    """ A :app:`Pyramid` :term:`authentication policy` which
    obtains data from basic authentication headers.

    Constructor Arguments

    ``check``

        A callback passed the credentials and the request,
        expected to return None if the userid doesn't exist or a sequence
        of group identifiers (possibly empty) if the user does exist.
        Required.

    """

    def authenticated_userid(self, request):
        """ Verify login and return the authed userid """
        credentials = get_basicauth_credentials(request)
        if credentials is None:
            return None
        userid = credentials['login']
        if request.access.verify_user(credentials['login'],
                                      credentials['password']):
            return userid
        return None

    def unauthenticated_userid(self, request):
        """ Return userid without performing auth """
        return request.userid

    def effective_principals(self, request):
        """ Get the authed groups for the active user """
        if request.userid is None:
            return [Everyone]
        return request.access.user_principals(request.userid)

    def remember(self, request, principal, **kw):
        """ HTTP Headers to remember credentials """
        return []

    def forget(self, request):
        """ HTTP headers to forget credentials """
        return []

class SessionAuthPolicy(object):

    """ Simple auth policy using beaker sessions """

    def authenticated_userid(self, request):
        """ Return the authenticated userid or ``None`` if no
        authenticated userid can be found. This method of the policy
        should ensure that a record exists in whatever persistent store is
        used related to the user (the user should not have been deleted);
        if a record associated with the current id does not exist in a
        persistent store, it should return ``None``."""
        return request.session.get('user', None)

    def unauthenticated_userid(self, request):
        """ Return the *unauthenticated* userid.  This method performs the
        same duty as ``authenticated_userid`` but is permitted to return the
        userid based only on data present in the request; it needn't (and
        shouldn't) check any persistent store to ensure that the user record
        related to the request userid exists."""
        return request.userid

    def effective_principals(self, request):
        """ Return a sequence representing the effective principals
        including the userid and any groups belonged to by the current
        user, including 'system' groups such as
        ``pyramid.security.Everyone`` and
        ``pyramid.security.Authenticated``. """
        if request.userid is None:
            return [Everyone]
        return request.access.user_principals(request.userid)

    def remember(self, request, principal, **_):
        """
        This implementation is slightly different than expected. The
        application should call remember(userid) rather than
        remember(principal)

        """
        request.session['user'] = principal
        return []

    def forget(self, request):
        """ Return a set of headers suitable for 'forgetting' the
        current user on subsequent requests. """
        request.session.delete()
        return []

def _is_logged_in(request):
    """ Check if there is a logged-in user in the session """
    return request.userid is not None

def _request_login(request):
    """ Return a 401 to force pip to upload its HTTP basic auth credentials """
    response = HTTPUnauthorized()
    realm = WWW_AUTHENTICATE.tuples('Basic realm="%s"' %
                                    request.registry.realm)
    response.headers.update(realm)
    return response

def _forbid(request):
    """
    Return a 403 if user is logged in, otherwise return a 401.

    This is required to force pip to upload its HTTP basic auth credentials

    """
    if request.is_logged_in:
        return HTTPForbidden()
    else:
        return _request_login(request)

def includeme(config):
    """ Configure the app """
    config.set_authorization_policy(ACLAuthorizationPolicy())
    config.set_authentication_policy(config.registry.authentication_policy)
    config.add_authentication_policy(SessionAuthPolicy())
    config.add_authentication_policy(BasicAuthenticationPolicy())
    config.add_request_method(authenticated_userid, name='userid',
                              reify=True)
    config.add_request_method(_forbid, name='forbid')
    config.add_request_method(_request_login, name='request_login')
    config.add_request_method(_is_logged_in, name='is_logged_in', reify=True)

    settings = config.get_settings()
    realm = settings.get('pypi.realm', 'pypi')
    config.registry.realm = realm


text:
using namespace IECore;

IE_CORE_DEFINERUNTIMETYPED( Parameterised );

Parameterised::Parameterised( const std::string &description )
	:	m_description( description ), m_parameters( new CompoundParameter ), m_userData( new CompoundObject )
{
}

Parameterised::Parameterised( const std::string &description, CompoundParameterPtr compoundParameter )
	:	m_description( description ), m_parameters( compoundParameter ), m_userData( new CompoundObject )
{
}

Parameterised::~Parameterised()
{
}

const std::string &Parameterised::description() const
{
	return m_description;
}

CompoundParameterPtr Parameterised::parameters()
{
	return m_parameters;
}

ConstCompoundParameterPtr Parameterised::parameters() const
{
	return m_parameters;
}

CompoundObjectPtr Parameterised::userData()
{
	return m_userData;
}

ConstCompoundObjectPtr Parameterised::userData() const
{
	return m_userData;
}


text:
<resources>

    <!-- Base application theme. -->
    <style name="AppTheme" parent="Theme.AppCompat.Light.NoActionBar">
        <!-- customize the color palette -->
        <item name="colorPrimary">@color/material_green_500</item>
        <item name="colorPrimaryDark">@color/material_green_700</item>
        <item name="colorAccent">@color/material_blue_800</item>
    </style>

</resources>


text:
/**
 */
package org.afplib.afplib;

import java.util.Arrays;
import java.util.Collections;
import java.util.List;

import org.eclipse.emf.common.util.Enumerator;

/**
 *
 * A representation of the literals of the enumeration 'Medium Orientation Med Orient',
 * and utility methods for working with them.
 *
 * @see org.afplib.afplib.AfplibPackage#getMediumOrientationMedOrient()
 * @model
 * @generated
 */
public enum MediumOrientationMedOrient implements Enumerator {
	/**
	 * The 'Const Portrait' literal object.
	 *
	 *
	 * @see #CONST_PORTRAIT_VALUE
	 * @generated
	 * @ordered
	 */
	CONST_PORTRAIT(0, "ConstPortrait", "ConstPortrait"),

	/**
	 * The 'Const Landscape' literal object.
	 *
	 *
	 * @see #CONST_LANDSCAPE_VALUE
	 * @generated
	 * @ordered
	 */
	CONST_LANDSCAPE(1, "ConstLandscape", "ConstLandscape"),

	/**
	 * The 'Const Reverse Portrait' literal object.
	 *
	 *
	 * @see #CONST_REVERSE_PORTRAIT_VALUE
	 * @generated
	 * @ordered
	 */
	CONST_REVERSE_PORTRAIT(2, "ConstReversePortrait", "ConstReversePortrait"),

	/**
	 * The 'Const Reverse Landscape' literal object.
	 *
	 *
	 * @see #CONST_REVERSE_LANDSCAPE_VALUE
	 * @generated
	 * @ordered
	 */
	CONST_REVERSE_LANDSCAPE(3, "ConstReverseLandscape", "ConstReverseLandscape"),

	/**
	 * The 'Const Portrait90' literal object.
	 *
	 *
	 * @see #CONST_PORTRAIT90_VALUE
	 * @generated
	 * @ordered
	 */
	CONST_PORTRAIT90(4, "ConstPortrait90", "ConstPortrait90"),

	/**
	 * The 'Const Landscape90' literal object.
	 *
	 *
	 * @see #CONST_LANDSCAPE90_VALUE
	 * @generated
	 * @ordered
	 */
	CONST_LANDSCAPE90(5, "ConstLandscape90", "ConstLandscape90");

	/**
	 * The 'Const Portrait' literal value.
	 *
	 *

	 * If the meaning of 'Const Portrait' literal object isn't clear,
	 * there really should be more of a description here...
	 *

	 *
	 * @see #CONST_PORTRAIT
	 * @model name="ConstPortrait"
	 * @generated
	 * @ordered
	 */
	public static final int CONST_PORTRAIT_VALUE = 0;

	/**
	 * The 'Const Landscape' literal value.
	 *
	 *

	 * If the meaning of 'Const Landscape' literal object isn't clear,
	 * there really should be more of a description here...
	 *

	 *
	 * @see #CONST_LANDSCAPE
	 * @model name="ConstLandscape"
	 * @generated
	 * @ordered
	 */
	public static final int CONST_LANDSCAPE_VALUE = 1;

	/**
	 * The 'Const Reverse Portrait' literal value.
	 *
	 *

	 * If the meaning of 'Const Reverse Portrait' literal object isn't clear,
	 * there really should be more of a description here...
	 *

	 *
	 * @see #CONST_REVERSE_PORTRAIT
	 * @model name="ConstReversePortrait"
	 * @generated
	 * @ordered
	 */
	public static final int CONST_REVERSE_PORTRAIT_VALUE = 2;

	/**
	 * The 'Const Reverse Landscape' literal value.
	 *
	 *

	 * If the meaning of 'Const Reverse Landscape' literal object isn't clear,
	 * there really should be more of a description here...
	 *

	 *
	 * @see #CONST_REVERSE_LANDSCAPE
	 * @model name="ConstReverseLandscape"
	 * @generated
	 * @ordered
	 */
	public static final int CONST_REVERSE_LANDSCAPE_VALUE = 3;

	/**
	 * The 'Const Portrait90' literal value.
	 *
	 *

	 * If the meaning of 'Const Portrait90' literal object isn't clear,
	 * there really should be more of a description here...
	 *

	 *
	 * @see #CONST_PORTRAIT90
	 * @model name="ConstPortrait90"
	 * @generated
	 * @ordered
	 */
	public static final int CONST_PORTRAIT90_VALUE = 4;

	/**
	 * The 'Const Landscape90' literal value.
	 *
	 *

	 * If the meaning of 'Const Landscape90' literal object isn't clear,
	 * there really should be more of a description here...
	 *

	 *
	 * @see #CONST_LANDSCAPE90
	 * @model name="ConstLandscape90"
	 * @generated
	 * @ordered
	 */
	public static final int CONST_LANDSCAPE90_VALUE = 5;

	/**
	 * An array of all the 'Medium Orientation Med Orient' enumerators.
	 *
	 *
	 * @generated
	 */
	private static final MediumOrientationMedOrient[] VALUES_ARRAY =
		new MediumOrientationMedOrient[] {
			CONST_PORTRAIT,
			CONST_LANDSCAPE,
			CONST_REVERSE_PORTRAIT,
			CONST_REVERSE_LANDSCAPE,
			CONST_PORTRAIT90,
			CONST_LANDSCAPE90,
		};

	/**
	 * A public read-only list of all the 'Medium Orientation Med Orient' enumerators.
	 *
	 *
	 * @generated
	 */
	public static final List<MediumOrientationMedOrient> VALUES = Collections.unmodifiableList(Arrays.asList(VALUES_ARRAY));

	/**
	 * Returns the 'Medium Orientation Med Orient' literal with the specified literal value.
	 *
	 *
	 * @param literal the literal.
	 * @return the matching enumerator or null.
	 * @generated
	 */
	public static MediumOrientationMedOrient get(String literal) {
		for (int i = 0; i < VALUES_ARRAY.length; ++i) {
			MediumOrientationMedOrient result = VALUES_ARRAY[i];
			if (result.toString().equals(literal)) {
				return result;
			}
		}
		return null;
	}

	/**
	 * Returns the 'Medium Orientation Med Orient' literal with the specified name.
	 *
	 *
	 * @param name the name.
	 * @return the matching enumerator or null.
	 * @generated
	 */
	public static MediumOrientationMedOrient getByName(String name) {
		for (int i = 0; i < VALUES_ARRAY.length; ++i) {
			MediumOrientationMedOrient result = VALUES_ARRAY[i];
			if (result.getName().equals(name)) {
				return result;
			}
		}
		return null;
	}

	/**
	 * Returns the 'Medium Orientation Med Orient' literal with the specified integer value.
	 *
	 *
	 * @param value the integer value.
	 * @return the matching enumerator or null.
	 * @generated
	 */
	public static MediumOrientationMedOrient get(int value) {
		switch (value) {
			case CONST_PORTRAIT_VALUE: return CONST_PORTRAIT;
			case CONST_LANDSCAPE_VALUE: return CONST_LANDSCAPE;
			case CONST_REVERSE_PORTRAIT_VALUE: return CONST_REVERSE_PORTRAIT;
			case CONST_REVERSE_LANDSCAPE_VALUE: return CONST_REVERSE_LANDSCAPE;
			case CONST_PORTRAIT90_VALUE: return CONST_PORTRAIT90;
			case CONST_LANDSCAPE90_VALUE: return CONST_LANDSCAPE90;
		}
		return null;
	}

	/**
	 *
	 *
	 * @generated
	 */
	private final int value;

	/**
	 *
	 *
	 * @generated
	 */
	private final String name;

	/**
	 *
	 *
	 * @generated
	 */
	private final String literal;

	/**
	 * Only this class can construct instances.
	 *
	 *
	 * @generated
	 */
	private MediumOrientationMedOrient(int value, String name, String literal) {
		this.value = value;
		this.name = name;
		this.literal = literal;
	}

	/**
	 *
	 *
	 * @generated
	 */
	public int getValue() {
	  return value;
	}

	/**
	 *
	 *
	 * @generated
	 */
	public String getName() {
	  return name;
	}

	/**
	 *
	 *
	 * @generated
	 */
	public String getLiteral() {
	  return literal;
	}

	/**
	 * Returns the literal value of the enumerator, which is its string representation.
	 *
	 *
	 * @generated
	 */
	@Override
	public String toString() {
		return literal;
	}

} //MediumOrientationMedOrient


text:
ACCEPTED

#### According to
Index Fungorum

#### Published in
Mem. N. Y. bot. Gdn 48: 31 (1988)

#### Original name
Nectria discicola Rogerson & Samuels

### Remarks
null