text:
#ifndef BOOST_SIGNALS2_LWM_PTHREADS_HPP
#define BOOST_SIGNALS2_LWM_PTHREADS_HPP

// MS compatible compilers support #pragma once

#if defined(_MSC_VER)
# pragma once
#endif

#include <boost/assert.hpp>
#include <pthread.h>

namespace boost
{

namespace signals2
{

class mutex
{
private:

    pthread_mutex_t m_;

    mutex(mutex const &);
    mutex & operator=(mutex const &);

public:

    mutex()
    {

// HPUX 10.20 / DCE has a nonstandard pthread_mutex_init

#if defined(__hpux) && defined(_DECTHREADS_)
        BOOST_VERIFY(pthread_mutex_init(&m_, pthread_mutexattr_default) == 0);
#else
        BOOST_VERIFY(pthread_mutex_init(&m_, 0) == 0);
#endif
    }

    ~mutex()
    {
        BOOST_VERIFY(pthread_mutex_destroy(&m_) == 0);
    }

    void lock()
    {
        BOOST_VERIFY(pthread_mutex_lock(&m_) == 0);
    }

    bool try_lock()
    {
        return pthread_mutex_trylock(&m_) == 0;
    }

    void unlock()
    {
        BOOST_VERIFY(pthread_mutex_unlock(&m_) == 0);
    }
};

} // namespace signals2

} // namespace boost

#endif // #ifndef BOOST_SIGNALS2_LWM_PTHREADS_HPP


text:
package myconet;

import peersim.cdsim.*;
import peersim.config.*;
import peersim.core.*;
import peersim.util.*;
import java.util.*;
import java.util.concurrent.*;
import java.util.logging.*;

import java.awt.*;
import java.awt.geom.*;
import java.awt.event.*;
import javax.swing.*;
import javax.swing.event.*;
import edu.uci.ics.jung.algorithms.importance.*;
import edu.uci.ics.jung.algorithms.layout.*;
import edu.uci.ics.jung.algorithms.transformation.*;
import edu.uci.ics.jung.algorithms.util.*;
import edu.uci.ics.jung.graph.*;
import edu.uci.ics.jung.graph.util.*;
import edu.uci.ics.jung.visualization.*;
import edu.uci.ics.jung.visualization.control.*;
import edu.uci.ics.jung.visualization.decorators.*;
import edu.uci.ics.jung.visualization.picking.*;
import edu.uci.ics.jung.visualization.renderers.*;
import org.apache.commons.collections15.*;
import org.apache.commons.collections15.functors.*;

public class JungGraphObserver implements Control, HyphaDataListener,
                                          HyphaLinkListener {
  private static final String PAR_HYPHADATA_PROTO =
      "network.node.hyphadata_proto";
  private static final String PAR_HYPHALINK_PROTO =
      "network.node.hyphalink_proto";
  private static final String PAR_MYCOCAST_PROTO =
      "network.node.mycocast_proto";
  private static final String PAR_WALK_DELAY =
      "walk_delay";

  private static Logger log =
      Logger.getLogger(JungGraphObserver.class.getName());

  private static final String PAR_PERIOD = "period";
  private static int period;
  private static int walkDelay;

  private final String name;
  private final int hyphadataPid;
  private final int hyphalinkPid;
  private final int mycocastPid;

  //private static Lock = new ReentrantLock();

  private static MycoGraph graph = new MycoGraph();
  private static VisualizationViewer<MycoNode,MycoEdge> visualizer;

  private static Set<ChangeListener> changeListeners;

  //private class TypePredicate extends Predicate<{

  //}

  public static void addChangeListener(ChangeListener cl) {
    changeListeners.add(cl);
  }

  public static void removeChangeListener(ChangeListener cl) {
    if (changeListeners.contains(cl)) {
      changeListeners.remove(cl);
    }
  }

  private static Thread mainThread;
  public static boolean stepBlocked = false;
  public static boolean noBlock = true;
  public static boolean walking = false;

  public JungGraphObserver(String name) {
    this.name = name;
    this.hyphadataPid = Configuration.getPid(PAR_HYPHADATA_PROTO);
    this.hyphalinkPid = Configuration.getPid(PAR_HYPHALINK_PROTO);
    this.mycocastPid = Configuration.getPid(PAR_MYCOCAST_PROTO);
    this.period = Configuration.getInt(name + "." + PAR_PERIOD);

    this.walkDelay = Configuration.getInt(name + "." + PAR_WALK_DELAY);
    mainThread = Thread.currentThread();
    this.changeListeners = new HashSet<ChangeListener>();

    visualizer = null;

    //HyphaData.addHyphaDataListener(this);
    //HyphaLink.addHyphaLinkListener(this);
  }

  public static void
    setVisualizer(VisualizationViewer<MycoNode,MycoEdge> visualizer) {
    JungGraphObserver.visualizer = visualizer;
    addChangeListener(visualizer);
  }

  public static MycoGraph getGraph() {
    return graph;
  }

  public void nodeStateChanged(MycoNode n, HyphaType t, HyphaType oldState) {
    if (t != HyphaType.DEAD) {
      if (! graph.containsVertex(n)) {
        graph.addVertex(n);
      }
    } else {
      if (graph.containsVertex(n)) {
        graph.removeVertex(n);
      }
    }
  }

  public void linkAdded(MycoNode a, MycoNode b) {
    if (graph.findEdge(a, b) == null) {
      MycoEdge edge = new MycoEdge();
      graph.addEdge(edge, a, b, EdgeType.DIRECTED);
    }
  }

  public void linkRemoved(MycoNode a, MycoNode b) {
    MycoEdge edge = graph.findEdge(a, b);
    while (edge != null) {
      graph.removeEdge(edge);
      edge = graph.findEdge(a,b);
    }
  }

  public boolean execute() {
    if (CDState.getCycle() % period != 0)
        return false;

    MycoCast mycocast = (MycoCast) Network.get(0).getProtocol(mycocastPid);

    int bio = mycocast.countBiomass();
    int ext = mycocast.countExtending();
    int bra = mycocast.countBranching();
    int imm = mycocast.countImmobile();

    // Update vertices
    Set<MycoNode> activeNodes = new HashSet<MycoNode>();
    for (int i = 0; i < Network.size(); i++) {
      MycoNode n = (MycoNode) Network.get(i);
      activeNodes.add(n);
      HyphaData data = n.getHyphaData();
      //if (data.isBiomass()) { continue; }
      if (graph.containsVertex(n)) {
        graph.removeVertex(n);
      }
      if (!graph.containsVertex(n)) {
        graph.addVertex(n);
      }
    }
    Set<MycoNode> jungNodes =
        new HashSet<MycoNode>(graph.getVertices());
    jungNodes.removeAll(activeNodes);

    for (MycoNode n : jungNodes) {
      graph.removeVertex(n);
    }

    // Update edges
    for (int i = 0; i < Network.size(); i++) {
      MycoNode n = (MycoNode) Network.get(i);
      HyphaData data = n.getHyphaData();
      HyphaLink link = n.getHyphaLink();

      synchronized (graph) {

        // We now add in all links and tune out display in Visualizer
        java.util.List<MycoNode> neighbors =
            (java.util.List<MycoNode>) link.getNeighbors();

        //// Adding only links to hypha thins out links to biomass
        //    (java.util.List<MycoNode>) link.getHyphae();

        Collection<MycoNode> jungNeighbors = graph.getNeighbors(n);

        // Remove edges from Jung graph that are not in peersim graph
        for (MycoNode o : jungNeighbors) {
          if (!neighbors.contains(o)) {
            MycoEdge edge = graph.findEdge(n,o);
            while (edge != null) {
              graph.removeEdge(edge);
              edge = graph.findEdge(n,o);
            }
          }
        }

        // Add missing edges to Jung graph that are in peersim graph
        for (MycoNode o : neighbors) {
          if (graph.findEdge(n,o) == null) {
            MycoEdge edge = new MycoEdge();
            graph.addEdge(edge, n, o, EdgeType.DIRECTED);
          }
        }
      }

      //log.finest("VERTICES: " + graph.getVertices());
      //log.finest("EDGES: " + graph.getEdges());
    }

    for (ChangeListener cl : changeListeners) {
      cl.stateChanged(new ChangeEvent(graph));
    }
    if (walking) {
      try {
        Thread.sleep(walkDelay);
      } catch (InterruptedException e) {}
      stepBlocked = false;
    }

    try {
      while (stepBlocked && !noBlock) {
        synchronized(JungGraphObserver.class) {
          JungGraphObserver.class.wait();
        }
      }
    } catch (InterruptedException e) {
      stepBlocked = true;
    }
    stepBlocked = true;
    //System.out.println(graph.toString());
    return false;
  }

  public static synchronized  void stepAction() {
    walking = false;
    stepBlocked = false;
    noBlock = false;
    JungGraphObserver.class.notifyAll();
  }

  public static synchronized void walkAction() {
    walking = true;
    stepBlocked = false;
    noBlock = false;
    JungGraphObserver.class.notifyAll();
  }

  public static synchronized void pauseAction() {
    walking = false;
    stepBlocked = true;
    noBlock = false;
  }

  public static synchronized void runAction() {
    walking = false;
    stepBlocked = false;
    noBlock = true;
    JungGraphObserver.class.notifyAll();
  }
}

redpajama_set_name: RedPajamaGithub


text:
<?php

namespace Mrmcburger\GetajobBundle\Controller;

use Symfony\Bundle\FrameworkBundle\Controller\Controller;

class HomeController extends Controller
{
    public function indexAction()
    {
        return $this->render('MrmcburgerGetajobBundle:Home:index.html.twig');
    }
}


text:
module ApiResource
  class ConnectionError < StandardError # :nodoc:

    cattr_accessor :http_code

    attr_reader :response

    def initialize(response, options = {})
      @response = response
      @message  = options[:message]
      @path     = options[:path]
    end

    def to_s
      message = "Failed."

      if response.respond_to?(:code)
        message << "  Response code = #{response.code}."
      end

      if response.respond_to?(:body)
        begin
          body = JSON.parse(response.body).pretty_inspect
        rescue
          body = "INVALID JSON: #{response.body}"
        end
        message << "\nResponse message = #{body}."
      end

      message << "\n#{@message}"
      message << "\n#{@path}"
    end

    def http_code
      self.class.http_code
    end

  end

  # Raised when a Timeout::Error occurs.
  class RequestTimeout < ConnectionError
    def initialize(message)
      @message = message
    end
    def to_s; @message ;end
  end

  # Raised when a OpenSSL::SSL::SSLError occurs.
  class SSLError < ConnectionError
    def initialize(message)
      @message = message
    end
    def to_s; @message ;end
  end

  # 3xx Redirection
  class Redirection < ConnectionError # :nodoc:
    def to_s; response['Location'] ? "#{super} => #{response['Location']}" : super; end
  end

  # 4xx Client Error
  class ClientError < ConnectionError; end # :nodoc:

  # 400 Bad Request
  class BadRequest < ClientError; self.http_code = 400; end # :nodoc

  # 401 Unauthorized
  class UnauthorizedAccess < ClientError; self.http_code = 401; end # :nodoc

  # 403 Forbidden
  class ForbiddenAccess < ClientError; self.http_code = 403; end # :nodoc

  # 404 Not Found
  class ResourceNotFound < ClientError; self.http_code = 404; end # :nodoc:

  # 406 Not Acceptable
  class NotAcceptable < ClientError; self.http_code = 406; end

  # 409 Conflict
  class ResourceConflict < ClientError; self.http_code = 409; end # :nodoc:

  # 410 Gone
  class ResourceGone < ClientError; self.http_code = 410; end # :nodoc:

  class UnprocessableEntity < ClientError; self.http_code = 422; end

  # 5xx Server Error
  class ServerError < ConnectionError;  self.http_code = 400; end # :nodoc:

  # 405 Method Not Allowed
  class MethodNotAllowed < ClientError # :nodoc:

    self.http_code = 405

    def allowed_methods
      @response['Allow'].split(',').map { |verb| verb.strip.downcase.to_sym }
    end
  end
end


text:
using System.Collections.Generic;
using System.Linq;
using System.Text;
using GRA.Controllers.ViewModel.Shared;
using Microsoft.AspNetCore.Mvc.ViewFeatures;

namespace GRA.Controllers.ViewModel.MissionControl.Social
{
    public class ActiveSocials
    {
        public int LanguageId { get; set; }
        public int HeaderId { get; set; }
        public string Link { get; set; }
    }

    public class SocialListViewModel : PaginateViewModel
    {
        public ICollection<ActiveSocials> ActiveSocials { get; set; }
        public ICollection<Domain.Model.Language> Languages { get; set; }
        public ICollection<Domain.Model.SocialHeader> SocialHeaders { get; set; }

        public static object RowStatus(ITempDataDictionary tempData, int id)
        {
            return tempData?.ContainsKey($"RowStatus{id}") == true
                ? tempData[$"RowStatus{id}"]
                : null;
        }

        public object Status(int headerId)
        {
            var actives = ActiveSocials.Where(_ => _.HeaderId == headerId);
            if (actives.Any())
            {
                var sb = new StringBuilder();
                foreach(var active in actives)
                {
                    sb.Append(active.Link);
                }
                return sb.ToString();
            }
            return null;
        }
    }
}


text:
package com.suscipio_solutions.consecro_mud.Commands;
import java.util.Vector;

import com.suscipio_solutions.consecro_mud.Common.interfaces.CMMsg;
import com.suscipio_solutions.consecro_mud.Items.interfaces.Container;
import com.suscipio_solutions.consecro_mud.Items.interfaces.Item;
import com.suscipio_solutions.consecro_mud.Items.interfaces.Wearable;
import com.suscipio_solutions.consecro_mud.Locales.interfaces.Room;
import com.suscipio_solutions.consecro_mud.MOBS.interfaces.MOB;
import com.suscipio_solutions.consecro_mud.core.CMLib;
import com.suscipio_solutions.consecro_mud.core.CMParms;
import com.suscipio_solutions.consecro_mud.core.CMProps;
import com.suscipio_solutions.consecro_mud.core.CMSecurity;
import com.suscipio_solutions.consecro_mud.core.CMath;
import com.suscipio_solutions.consecro_mud.core.interfaces.Physical;

@SuppressWarnings("rawtypes")
public class Restring extends StdCommand
{
	public Restring(){}

	private final String[] access=I(new String[]{"RESTRING"});
	@Override public String[] getAccessWords(){return access;}

	public boolean errorOut(MOB mob)
	{
		mob.tell(L("You are not allowed to do that here."));
		return false;
	}

	@Override
	public boolean execute(MOB mob, Vector commands, int metaFlags)
		throws java.io.IOException
	{
		String allWord=CMParms.combine(commands,1);
		final int x=allWord.indexOf('@');
		MOB srchMob=mob;
		Item srchContainer=null;
		Room srchRoom=mob.location();
		if(x>0)
		{
			final String rest=allWord.substring(x+1).trim();
			allWord=allWord.substring(0,x).trim();
			if(rest.equalsIgnoreCase("room"))
				srchMob=null;
			else
			if(rest.length()>0)
			{
				final MOB M=srchRoom.fetchInhabitant(rest);
				if(M==null)
				{
					final Item I = srchRoom.findItem(null, rest);
					if(I instanceof Container)
						srchContainer=I;
					else
					{
						mob.tell(L("MOB or Container '@x1' not found.",rest));
						mob.location().showOthers(mob,null,CMMsg.MSG_OK_ACTION,L("<S-NAME> flub(s) a spell.."));
						return false;
					}
				}
				else
				{
					srchMob=M;
					srchRoom=null;
				}
			}
		}
		Physical thang=null;
		if((srchMob!=null)&&(srchRoom!=null))
			thang=srchRoom.fetchFromMOBRoomFavorsItems(srchMob,srchContainer,allWord,Wearable.FILTER_ANY);
		else
		if(srchMob!=null)
			thang=srchMob.findItem(allWord);
		else
		if(srchRoom!=null)
			thang=srchRoom.fetchFromRoomFavorItems(srchContainer,allWord);
		if((thang!=null)&&(thang instanceof Item))
		{
			if(!thang.isGeneric())
				mob.tell(L("@x1 can not be restrung.",thang.name()));
			else
			{
				int showFlag=-1;
				if(CMProps.getIntVar(CMProps.Int.EDITORTYPE)>0)
					showFlag=-999;
				boolean ok=false;
				while(!ok)
				{
					int showNumber=0;
					CMLib.genEd().genName(mob,thang,++showNumber,showFlag);
					CMLib.genEd().genDisplayText(mob,thang,++showNumber,showFlag);
					CMLib.genEd().genDescription(mob,thang,++showNumber,showFlag);
					if(showFlag<-900){ ok=true; break;}
					if(showFlag>0){ showFlag=-1; continue;}
					showFlag=CMath.s_int(mob.session().prompt(L("Edit which? "),""));
					if(showFlag<=0)
					{
						showFlag=-1;
						ok=true;
					}
				}
			}
			thang.recoverPhyStats();
			mob.location().show(mob,null,CMMsg.MSG_OK_VISUAL,L("@x1 shake(s) under the transforming power.",thang.name()));
		}
		else
			mob.tell(L("'@x1' can not be restrung.",allWord));
		return false;
	}

	@Override public boolean canBeOrdered(){return true;}
	@Override
	public boolean securityCheck(MOB mob)
	{
		return CMSecurity.isAllowedContainsAny(mob,mob.location(),CMSecurity.SECURITY_CMD_GROUP)
			 ||CMSecurity.isAllowed(mob,mob.location(),CMSecurity.SecFlag.RESTRING);
	}

}


text:
<#include "/custom.include">
<#include "/java_copyright.include">
<#assign className = table.className>
<#assign classNameLower = className?uncap_first>
<#assign actionExtension = "do">
package ${basepackage}.action;

import java.io.IOException;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;

import javacommon.util.extjs.ExtJsPageHelper;
import javacommon.util.extjs.ListRange;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import javax.servlet.http.HttpSession;

import org.apache.commons.lang.StringUtils;

import cn.org.rapid_framework.generator.provider.java.model.JavaClass;
import cn.org.rapid_framework.generator.provider.java.model.JavaField;
import cn.org.rapid_framework.page.Page;
import cn.org.rapid_framework.page.PageRequest;

import ${basepackage}.model.${className};
import com.opensymphony.xwork2.Preparable;
import com.opensymphony.xwork2.ModelDriven;
import static javacommon.util.extjs.Struts2JsonHelper.*;

<#include "/java_imports.include">

public class ${className}Action extends BaseStruts2Action implements Preparable,ModelDriven{
	//默认多列排序,example: username desc,createTime asc
	protected static final String DEFAULT_SORT_COLUMNS = null;

	//forward paths
	protected static final String QUERY_JSP = "${jspFileBasePath}/query.jsp";
	protected static final String LIST_JSP= "${jspFileBasePath}/list.jsp";
	protected static final String CREATE_JSP = "${jspFileBasePath}/create.jsp";
	protected static final String EDIT_JSP = "${jspFileBasePath}/edit.jsp";
	protected static final String SHOW_JSP = "${jspFileBasePath}/show.jsp";
	//redirect paths,startWith: !
	protected static final String LIST_ACTION = "!${actionBasePath}/list.${actionExtension}";

	private ${className}Manager ${classNameLower}Manager;

	private ${className} ${classNameLower};
	<#list table.compositeIdColumns as column>
	${column.javaType} id = null;
	</#list>
	private String[] items;

	public void prepare() throws Exception {
		if (isNullOrEmptyString(id)) {
			${classNameLower} = new ${className}();
		} else {
			${classNameLower} = (${className})${classNameLower}Manager.getById(id);
		}
	}

	/** 通过spring自动注入 */
	public void set${className}Manager(${className}Manager manager) {
		this.${classNameLower}Manager = manager;
	}

	public Object getModel() {
		return ${classNameLower};
	}

	<#list table.compositeIdColumns as column>
	public void set${column.columnName}(${column.javaType} val) {
		this.id = val;
	}
	</#list>

	public void setItems(String[] items) {
		this.items = items;
	}

	/**
	 * ExtGrid使用
	 * 列表
	 * @throws IOException
	 */
	public void extlist() throws IOException
	{
		PageRequest<Map> pr = ExtJsPageHelper.createPageRequestForExtJs(getRequest(), DEFAULT_SORT_COLUMNS);
		Page page = ${classNameLower}Manager.findByPageRequest(pr);

		List<${className}> ${className}list = (List) page.getResult();
		ListRange<${className}> resultList = new ListRange<${className}>();
		resultList.setList(${className}list);
		resultList.setTotalSize(page.getTotalCount());
		resultList.setMessage("ok");
		resultList.setSuccess(true);
		outJson(resultList);
	}

	/**
	 * extGrid保存
	 * @throws IOException
	 */
	public void extsave() throws IOException
	{
		Map<String, Object> result = new HashMap<String, Object>();
		try
		{
			${classNameLower}Manager.save(${classNameLower});
			result.put("success", true);
			result.put("msg", "添 加 成 功!");
		}
		catch (Exception e)
		{
			result.put("failure", true);
			result.put("msg", e.getMessage());
			e.printStackTrace();
		}
		outJson(result);
	}

	/**
	 * extGrid修改
	 * @throws IOException
	 */
	public void extupdate() throws IOException
	{
		Map<String, Object> result = new HashMap<String, Object>();
		try
		{
			${classNameLower}Manager.save(${classNameLower});
			result.put("success", true);
			result.put("msg", "修 改 成 功!");
		}
		catch (Exception e)
		{
			result.put("failure", true);
			result.put("msg", e.getMessage());
			e.printStackTrace();
		}
		outJson(result);
	}

	/**
	 * extGrid删除
	 * @throws IOException
	 */
	public void extdelete() throws IOException
	{
		String ids = getRequest().getParameter("ids");
		String[] idarray = ids.split(",");
		Map<String, Object> result = new HashMap<String, Object>();
		try
		{
			for (int i = 0; i < idarray.length; i++)
			{
				<#list table.compositeIdColumns as column>
				${column.javaType} id = new ${column.javaType}((String)idarray[i]);
					</#list>
				${classNameLower}Manager.removeById(id);
			}
			result.put("success", true);
			result.put("msg", "删除成功");
		}
		catch (Exception e)
		{
			result.put("failure", true);
			result.put("msg", e.getMessage());
			e.printStackTrace();
		}
		outJson(result);
	}

}


text:
package com.amazonaws.services.cognitoidp.model.transform;

import javax.annotation.Generated;

import com.amazonaws.SdkClientException;
import com.amazonaws.services.cognitoidp.model.*;

import com.amazonaws.protocol.*;
import com.amazonaws.annotation.SdkInternalApi;

/**
 * GlobalSignOutRequestMarshaller
 */
@Generated("com.amazonaws:aws-java-sdk-code-generator")
@SdkInternalApi
public class GlobalSignOutRequestMarshaller {

    private static final MarshallingInfo<String> ACCESSTOKEN_BINDING = MarshallingInfo.builder(MarshallingType.STRING)
            .marshallLocation(MarshallLocation.PAYLOAD).marshallLocationName("AccessToken").build();

    private static final GlobalSignOutRequestMarshaller instance = new GlobalSignOutRequestMarshaller();

    public static GlobalSignOutRequestMarshaller getInstance() {
        return instance;
    }

    /**
     * Marshall the given parameter object.
     */
    public void marshall(GlobalSignOutRequest globalSignOutRequest, ProtocolMarshaller protocolMarshaller) {

        if (globalSignOutRequest == null) {
            throw new SdkClientException("Invalid argument passed to marshall(...)");
        }

        try {
            protocolMarshaller.marshall(globalSignOutRequest.getAccessToken(), ACCESSTOKEN_BINDING);
        } catch (Exception e) {
            throw new SdkClientException("Unable to marshall request to JSON: " + e.getMessage(), e);
        }
    }

}


text:
var cordova;

describe('main', function() {

  // load the controller's module
  beforeEach(module('angularCordovaApp'));

  describe("AppController", function() {

    var appController, scope;

    beforeEach(function() {
        module(function($provide) {
      	    $provide.constant('APP_CONFIG', { config:'http://localhost:8080/cordova-server-backend/api/app/config' });
        });
	    inject(function($rootScope, $controller) {
	      scope = $rootScope.$new();
	      appController = $controller("AppController", {
	        $scope: scope
	      });
	    })
    });

    it('inject', function() {
      expect(true).toBe(true);
    });

  });
});


text:
ACCEPTED

#### According to
Index Fungorum

#### Published in
null

#### Original name
Cladonia plombii B. de Lesd.

### Remarks
null


text:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">

<TITLE>
FoDocumentFacade (POI API Documentation)
</TITLE>

<LINK REL ="stylesheet" TYPE="text/css" HREF="../../../../../stylesheet.css" TITLE="Style">

      Overview
      Package
    Class
      Use
      Tree
      Deprecated
      Index
      Help

 PREV CLASS
 NEXT CLASS

  FRAMES
 NO FRAMES

  All Classes

  SUMMARY: NESTED | FIELD | CONSTR | METHOD

DETAIL: FIELD | CONSTR | METHOD

org.apache.poi.hwpf.converter

Class FoDocumentFacade

java.lang.Object
  org.apache.poi.hwpf.converter.FoDocumentFacade

@Beta
public class FoDocumentFacade
extends java.lang.Object

Field Summary

protected  org.w3c.dom.Element
declarations

protected  org.w3c.dom.Document
document

protected  org.w3c.dom.Element
layoutMasterSet

protected  org.w3c.dom.Element
propertiesRoot

protected  org.w3c.dom.Element
root

Constructor Summary

FoDocumentFacade(org.w3c.dom.Document document)

Method Summary

 org.w3c.dom.Element
addFlowToPageSequence(org.w3c.dom.Element pageSequence,
                      java.lang.String flowName)

 org.w3c.dom.Element
addListItem(org.w3c.dom.Element listBlock)

 org.w3c.dom.Element
addListItemBody(org.w3c.dom.Element listItem)

 org.w3c.dom.Element
addListItemLabel(org.w3c.dom.Element listItem,
                 java.lang.String text)

 void
addPageSequence(org.w3c.dom.Element pageSequence)

 org.w3c.dom.Element
addPageSequence(java.lang.String pageMaster)

 org.w3c.dom.Element
addRegionBody(org.w3c.dom.Element pageMaster)

 org.w3c.dom.Element
addSimplePageMaster(java.lang.String masterName)

 org.w3c.dom.Element
createBasicLinkExternal(java.lang.String externalDestination)

 org.w3c.dom.Element
createBasicLinkInternal(java.lang.String internalDestination)

 org.w3c.dom.Element
createBlock()

 org.w3c.dom.Element
createExternalGraphic(java.lang.String source)

 org.w3c.dom.Element
createFootnote()

 org.w3c.dom.Element
createFootnoteBody()

 org.w3c.dom.Element
createInline()

 org.w3c.dom.Element
createLeader()

 org.w3c.dom.Element
createListBlock()

 org.w3c.dom.Element
createListItem()

 org.w3c.dom.Element
createListItemBody()

 org.w3c.dom.Element
createListItemLabel(java.lang.String text)

 org.w3c.dom.Element
createPageSequence(java.lang.String pageMaster)

 org.w3c.dom.Element
createTable()

 org.w3c.dom.Element
createTableBody()

 org.w3c.dom.Element
createTableCell()

 org.w3c.dom.Element
createTableColumn()

 org.w3c.dom.Element
createTableHeader()

 org.w3c.dom.Element
createTableRow()

 org.w3c.dom.Text
createText(java.lang.String data)

 org.w3c.dom.Document
getDocument()

protected  org.w3c.dom.Element
getOrCreatePropertiesRoot()

 void
setCreator(java.lang.String value)

 void
setCreatorTool(java.lang.String value)

 void
setDescription(java.lang.String value)

 org.w3c.dom.Element
setDublinCoreProperty(java.lang.String name,
                      java.lang.String value)

 void
setKeywords(java.lang.String value)

 org.w3c.dom.Element
setPdfProperty(java.lang.String name,
               java.lang.String value)

 void
setProducer(java.lang.String value)

protected  org.w3c.dom.Element
setProperty(java.lang.String namespace,
            java.lang.String prefix,
            java.lang.String name,
            java.lang.String value)

 void
setSubject(java.lang.String value)

 void
setTitle(java.lang.String value)

 org.w3c.dom.Element
setXmpProperty(java.lang.String name,
               java.lang.String value)

Methods inherited from class java.lang.Object

clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

Field Detail

declarations

protected final org.w3c.dom.Element declarations

document

protected final org.w3c.dom.Document document

layoutMasterSet

protected final org.w3c.dom.Element layoutMasterSet

propertiesRoot

protected org.w3c.dom.Element propertiesRoot

root

protected final org.w3c.dom.Element root

Constructor Detail

FoDocumentFacade

public FoDocumentFacade(org.w3c.dom.Document document)

Method Detail

addFlowToPageSequence

public org.w3c.dom.Element addFlowToPageSequence(org.w3c.dom.Element pageSequence,
                                                 java.lang.String flowName)

addListItem

public org.w3c.dom.Element addListItem(org.w3c.dom.Element listBlock)

addListItemBody

public org.w3c.dom.Element addListItemBody(org.w3c.dom.Element listItem)

addListItemLabel

public org.w3c.dom.Element addListItemLabel(org.w3c.dom.Element listItem,
                                            java.lang.String text)

addPageSequence

public void addPageSequence(org.w3c.dom.Element pageSequence)

addPageSequence

public org.w3c.dom.Element addPageSequence(java.lang.String pageMaster)

addRegionBody

public org.w3c.dom.Element addRegionBody(org.w3c.dom.Element pageMaster)

addSimplePageMaster

public org.w3c.dom.Element addSimplePageMaster(java.lang.String masterName)

createBasicLinkExternal

public org.w3c.dom.Element createBasicLinkExternal(java.lang.String externalDestination)

createBasicLinkInternal

public org.w3c.dom.Element createBasicLinkInternal(java.lang.String internalDestination)

createBlock

public org.w3c.dom.Element createBlock()

createExternalGraphic

public org.w3c.dom.Element createExternalGraphic(java.lang.String source)

createFootnote

public org.w3c.dom.Element createFootnote()

createFootnoteBody

public org.w3c.dom.Element createFootnoteBody()

createInline

public org.w3c.dom.Element createInline()

createLeader

public org.w3c.dom.Element createLeader()

createListBlock

public org.w3c.dom.Element createListBlock()

createListItem

public org.w3c.dom.Element createListItem()

createListItemBody

public org.w3c.dom.Element createListItemBody()

createListItemLabel

public org.w3c.dom.Element createListItemLabel(java.lang.String text)

createPageSequence

public org.w3c.dom.Element createPageSequence(java.lang.String pageMaster)

createTable

public org.w3c.dom.Element createTable()

createTableBody

public org.w3c.dom.Element createTableBody()

createTableCell

public org.w3c.dom.Element createTableCell()

createTableColumn

public org.w3c.dom.Element createTableColumn()

createTableHeader

public org.w3c.dom.Element createTableHeader()

createTableRow

public org.w3c.dom.Element createTableRow()

createText

public org.w3c.dom.Text createText(java.lang.String data)

getDocument

public org.w3c.dom.Document getDocument()

getOrCreatePropertiesRoot

protected org.w3c.dom.Element getOrCreatePropertiesRoot()

setCreator

public void setCreator(java.lang.String value)

setCreatorTool

public void setCreatorTool(java.lang.String value)

setDescription

public void setDescription(java.lang.String value)

setDublinCoreProperty

public org.w3c.dom.Element setDublinCoreProperty(java.lang.String name,
                                                 java.lang.String value)

setKeywords

public void setKeywords(java.lang.String value)

setPdfProperty

public org.w3c.dom.Element setPdfProperty(java.lang.String name,
                                          java.lang.String value)

setProducer

public void setProducer(java.lang.String value)

setProperty

protected org.w3c.dom.Element setProperty(java.lang.String namespace,
                                          java.lang.String prefix,
                                          java.lang.String name,
                                          java.lang.String value)

setSubject

public void setSubject(java.lang.String value)

setTitle

public void setTitle(java.lang.String value)

setXmpProperty

public org.w3c.dom.Element setXmpProperty(java.lang.String name,
                                          java.lang.String value)

      Overview
      Package
    Class
      Use
      Tree
      Deprecated
      Index
      Help

 PREV CLASS
 NEXT CLASS

  FRAMES
 NO FRAMES

  All Classes

  SUMMARY: NESTED | FIELD | CONSTR | METHOD

DETAIL: FIELD | CONSTR | METHOD

                Copyright 2016 The Apache Software Foundation or
        its licensors, as applicable.


text:
  Gintrac est
       un village
       géographiquement positionné dans le département de Lot en Midi-Pyrénées. On dénombrait 104 habitants en 2008.

Le nombre de logements, à Gintrac, était réparti en 2011 en un appartements et 74 maisons soit
 un marché plutôt équilibré.

Si vous envisagez de venir habiter à Gintrac, vous pourrez facilement trouver une maison à vendre.

À proximité de Gintrac sont localisées les villes de
Bétaille localisée à 5 km, 925 habitants,
Prudhomat localisée à 4 km, 674 habitants,
Bretenoux localisée à 6 km, 1 311 habitants,
Loubressac localisée à 4 km, 458 habitants,
Billac à 5 km, 215 habitants,
Autoire localisée à 6 km, 336 habitants,
 entre autres. De plus, Gintrac est située à seulement 22 km de Souillac.


text:
The Sitemaps protocol allows a webmaster to inform search engines about URLs on
a website that are available for crawling.  A Sitemap is an XML file that lists
the URLs for a site.  It allows webmasters to include additional information
about each URL:

* When it was last updated
* How often it changes
* How important it is in relation to other URLs in the site

This allows search engines to crawl the site more intelligently.

## File Format

The Sitemap Protocol format consists of XML tags.  The file itself must be UTF-8
encoded.  They may be gzipped compressed.  See
https://en.wikipedia.org/wiki/Sitemaps#File_format and
https://www.sitemaps.org/protocol.html for more details.


text:
#ifndef QBLUETOOTHSERVICEDISCOVERYAGENT_P_H
#define QBLUETOOTHSERVICEDISCOVERYAGENT_P_H

//
//  W A R N I N G
//  -------------
//
// This file is not part of the Qt API.  It exists purely as an
// implementation detail.  This header file may change from version to
// version without notice, or even be removed.
//
// We mean it.
//

#include "qbluetoothaddress.h"
#include "qbluetoothdeviceinfo.h"
#include "qbluetoothserviceinfo.h"
#include "qbluetoothservicediscoveryagent.h"

#include <QStack>
#include <QStringList>

#ifdef QT_BLUEZ_BLUETOOTH
class OrgBluezManagerInterface;
class OrgBluezAdapterInterface;
class OrgBluezDeviceInterface;
class OrgFreedesktopDBusObjectManagerInterface;
#include <QtCore/qprocess.h>

QT_BEGIN_NAMESPACE
class QDBusPendingCallWatcher;
class QXmlStreamReader;
QT_END_NAMESPACE
#endif

#ifdef QT_QNX_BLUETOOTH
#include "qnx/ppshelpers_p.h"
#include <fcntl.h>
#include <unistd.h>
#include <QTimer>
#include <btapi/btdevice.h>
#endif

QT_BEGIN_NAMESPACE

class QBluetoothDeviceDiscoveryAgent;
#ifdef QT_ANDROID_BLUETOOTH
class ServiceDiscoveryBroadcastReceiver;
class LocalDeviceBroadcastReceiver;
#include <QtAndroidExtras/QAndroidJniObject>
#include <QtBluetooth/QBluetoothLocalDevice>
#endif

class QBluetoothServiceDiscoveryAgentPrivate
#ifdef QT_QNX_BLUETOOTH
: public QObject
{
    Q_OBJECT
#else
{
#endif
    Q_DECLARE_PUBLIC(QBluetoothServiceDiscoveryAgent)

public:
    enum DiscoveryState {
        Inactive,
        DeviceDiscovery,
        ServiceDiscovery,
    };

    QBluetoothServiceDiscoveryAgentPrivate(const QBluetoothAddress &deviceAdapter);
    ~QBluetoothServiceDiscoveryAgentPrivate();

    void startDeviceDiscovery();
    void stopDeviceDiscovery();
    void startServiceDiscovery();
    void stopServiceDiscovery();

    void setDiscoveryState(DiscoveryState s) { state = s; }
    inline DiscoveryState discoveryState() { return state; }

    void setDiscoveryMode(QBluetoothServiceDiscoveryAgent::DiscoveryMode m) { mode = m; }
    QBluetoothServiceDiscoveryAgent::DiscoveryMode DiscoveryMode() { return mode; }

    void _q_deviceDiscoveryFinished();
    void _q_deviceDiscovered(const QBluetoothDeviceInfo &info);
    void _q_serviceDiscoveryFinished();
    void _q_deviceDiscoveryError(QBluetoothDeviceDiscoveryAgent::Error);
#ifdef QT_BLUEZ_BLUETOOTH
    void _q_discoveredServices(QDBusPendingCallWatcher *watcher);
    void _q_createdDevice(QDBusPendingCallWatcher *watcher);
    //Slots below are used for discovering Bluetooth Low Energy devices. It will be used with Bluez 5.x version.
    /*
    void _g_discoveredGattService();
    void _q_discoverGattCharacteristics(QDBusPendingCallWatcher *watcher);
    void _q_discoveredGattCharacteristic(QDBusPendingCallWatcher *watcher);
    */
    void _q_sdpScannerDone(int exitCode, QProcess::ExitStatus status);
    void _q_finishSdpScan(QBluetoothServiceDiscoveryAgent::Error errorCode,
                          const QString &errorDescription,
                          const QStringList &xmlRecords);
#endif
#ifdef QT_ANDROID_BLUETOOTH
    void _q_processFetchedUuids(const QBluetoothAddress &address, const QList<QBluetoothUuid> &uuids);

    void populateDiscoveredServices(const QBluetoothDeviceInfo &remoteDevice,
                                    const QList<QBluetoothUuid> &uuids);
    void _q_fetchUuidsTimeout();
    void _q_hostModeStateChanged(QBluetoothLocalDevice::HostMode state);
#endif

private:
    void start(const QBluetoothAddress &address);
    void stop();
    bool isDuplicatedService(const QBluetoothServiceInfo &serviceInfo) const;

#ifdef QT_BLUEZ_BLUETOOTH
    void startBluez5(const QBluetoothAddress &address);
    void runExternalSdpScan(const QBluetoothAddress &remoteAddress,
                    const QBluetoothAddress localAddress);
    void sdpScannerDone(int exitCode, QProcess::ExitStatus exitStatus);
    QVariant readAttributeValue(QXmlStreamReader &xml);
    QBluetoothServiceInfo parseServiceXml(const QString& xml);
    void performMinimalServiceDiscovery(const QBluetoothAddress &deviceAddress);
#endif

#ifdef QT_QNX_BLUETOOTH
private slots:
    void remoteDevicesChanged(int fd);
    void controlReply(ppsResult result);
    void controlEvent(ppsResult result);
    void queryTimeout();
#ifdef QT_QNX_BT_BLUETOOTH
    static void deviceServicesDiscoveryCallback(bt_sdp_list_t *, void *, uint8_t);
#endif

private:
    int m_rdfd;
    QSocketNotifier *rdNotifier;
    QTimer m_queryTimer;
    bool m_btInitialized;
    bool m_serviceScanDone;
#endif

public:
    QBluetoothServiceDiscoveryAgent::Error error;
    QString errorString;
    QBluetoothAddress deviceAddress;
    QList<QBluetoothServiceInfo> discoveredServices;
    QList<QBluetoothDeviceInfo> discoveredDevices;
    QBluetoothAddress m_deviceAdapterAddress;

private:
    DiscoveryState state;
    QList<QBluetoothUuid> uuidFilter;

    QBluetoothDeviceDiscoveryAgent *deviceDiscoveryAgent;

    QBluetoothServiceDiscoveryAgent::DiscoveryMode mode;

    bool singleDevice;
#ifdef QT_BLUEZ_BLUETOOTH
    QString foundHostAdapterPath;
    OrgBluezManagerInterface *manager;
    OrgFreedesktopDBusObjectManagerInterface *managerBluez5;
    OrgBluezAdapterInterface *adapter;
    OrgBluezDeviceInterface *device;
    QProcess *sdpScannerProcess;
#endif

#ifdef QT_ANDROID_BLUETOOTH
    ServiceDiscoveryBroadcastReceiver *receiver;
    LocalDeviceBroadcastReceiver *localDeviceReceiver;

    QAndroidJniObject btAdapter;
    QMap<QBluetoothAddress,QPair<QBluetoothDeviceInfo,QList<QBluetoothUuid> > > sdpCache;
#endif

protected:
    QBluetoothServiceDiscoveryAgent *q_ptr;
};

QT_END_NAMESPACE

#endif


text:
<?php
namespace User\Model;

use Zend\Db\TableGateway\AbstractTableGateway;
use Zend\Db\TableGateway\Feature;

class User extends AbstractTableGateway
{
	public function __construct()
	{
		$this->table = 'users';
		$this->featureSet = new Feature\FeatureSet();
		$this->featureSet->addFeature(new Feature\GlobalAdapterFeature());
		$this->initialize();
	}

	public function insert($set)
	{
		$set['photo'] = $set['photo']['tmp_name'];
		unset($set['password_verify']);
		$set['password'] = md5($set['password']); // better than clear text
												  //passwords
		return parent::insert($set);
	}
}


text:
// Copyright 2000-2019 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file.
package com.intellij.ide.plugins;

import com.intellij.ui.CardLayoutPanel;

import javax.swing.*;

/**
 * @author Alexander Lobas
 */
public abstract class MultiPanel extends CardLayoutPanel<Integer, Integer, JComponent> {
  @Override
  protected Integer prepare(Integer key) {
    return key;
  }

  @Override
  protected JComponent create(Integer key) {
    throw new RuntimeException("Create card, unknown KEY index: " + key);
  }
}


text:
module MightyGrid
  module Filters
    class Base
      attr_reader :options, :attribute, :model, :default
      attr_accessor :search_value

      class_attribute :default_options
      self.default_options = {
        name: nil,
        attribute: nil,
        model: nil,
        default: nil
      }

      def initialize(options = {})
        options = options.clone

        options.assert_valid_keys(self.class.default_options.keys)

        @options = options.reverse_merge!(self.class.default_options)
        @attribute = @options.delete(:attribute) || @options[:name]
        @model = @options.delete(:model)
        @default = @options.delete(:default)
      end
    end
  end
end


text:
conn_config = File.join(ENV["HOME"], ".xpm", "connection.rb")

if File.exist?(conn_config)
  load conn_config
end

load "config/deploy/xp5k.rb"


text:
package org.cleanlogic.cesiumjs4gwt.showcase.components.responsibility;

import com.google.gwt.user.client.ui.RootPanel;
import org.cleanlogic.cesiumjs4gwt.showcase.puregwt.event.ExamplePanelBuildEvent;

/**
 *
 * @author Giuseppe La Scaleia - CNR IMAA geoSDI Group
 * @email giuseppe.lascaleia@geosdi.org
 */
public class AllExamplesHandler extends ShowcaseBuilderHandler {

    @Override
    protected void buildShowcase() {
        if (canBuildShowcase()) {
            RootPanel.get().add(injector.getShowcaseTopPanel());
            RootPanel.get().add(injector.getShowcaseExamplePanel());

            injector.getEventBus().fireEvent(new ExamplePanelBuildEvent(""));
        }
    }

    @Override
    protected boolean canBuildShowcase() {
        return Boolean.TRUE;
    }

}


text:
<?php

if ( !defined( 'MEDIAWIKI' ) ) {
	die( 'This file is a MediaWiki extension, it is not a valid entry point' );
}

/**
 * CONFIGURATION
 */
$wgCrossWikiUrl = "";
$wgCrossWikiUsername = "";
$wgCrossWikiPassword = "";

/**
 * REGISTRATION
 */
$wgExtensionCredits['parserhook'][] = array(
	'path' => __FILE__,
	'name' => 'CrossWiki',
	'version' => '0.0.1',
	'url' => 'http://www.arag.be',
	'author' => array( 'Pierre Paridans' ),
);

$wgAutoloadClasses['ExtCrossWiki'] = __DIR__ . '/CrossWiki.body.php';

// Specify the function that will initialize the parser function.
$wgHooks['ParserFirstCallInit'][] = 'CrossWikiSetupParserFunction';

// Allow translation of the parser function name
$wgExtensionMessagesFiles['CrossWikiMagic'] = __DIR__ . '/CrossWiki.i18n.magic.php';

// Tell MediaWiki that the parser function exists.
function CrossWikiSetupParserFunction( &$parser ) {

   // Create a function hook associating the "example" magic word with the
   // ExampleExtensionRenderParserFunction() function. See: the section
   // 'setFunctionHook' below for details.
   $parser->setFunctionHook( 'get_content', 'ExtCrossWiki::get_content' );

   // Return true so that MediaWiki continues to load extensions.
   return true;
}


text:
> Control the system time and date.

- Check the current system clock time:

`timedatectl`

- Set the local time of the system clock directly:

`timedatectl set-time {{"yyyy-MM-dd hh:mm:ss"}}`

- List available timezones:

`timedatectl list-timezones`

- Set the system timezone:

`timedatectl set-timezone {{timezone}}`

- Enable Network Time Protocol (NTP) synchronization:

`timedatectl set-ntp on`


text:
"""servicequotas base URL and path."""
from .responses import ServiceQuotasResponse

url_bases = [
    r"https?://servicequotas\.(.+)\.amazonaws\.com",
]

url_paths = {
    "{0}/$": ServiceQuotasResponse.dispatch,
}


text:
ACCEPTED

#### According to
Index Fungorum

#### Published in
S. Afr. J. Sci. 27: 327 (1930)

#### Original name
Pestalotia watsoniae Verwoerd & Deppenaar

### Remarks
null


text:
.class public Landroid/media/AudioAttributes$Builder;
.super Ljava/lang/Object;
.source "AudioAttributes.java"

# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
    value = Landroid/media/AudioAttributes;
.end annotation

.annotation system Ldalvik/annotation/InnerClass;
    accessFlags = 0x9
    name = "Builder"
.end annotation

# instance fields
.field private mBundle:Landroid/os/Bundle;

.field private mContentType:I

.field private mFlags:I

.field private mSource:I

.field private mTags:Ljava/util/HashSet;
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "Ljava/util/HashSet",
            "<",
            "Ljava/lang/String;",
            ">;"
        }
    .end annotation
.end field

.field private mUsage:I

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

    const/4 v1, 0x0

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

    iput v1, p0, Landroid/media/AudioAttributes$Builder;->mUsage:I

    iput v1, p0, Landroid/media/AudioAttributes$Builder;->mContentType:I

    const/4 v0, -0x1

    iput v0, p0, Landroid/media/AudioAttributes$Builder;->mSource:I

    iput v1, p0, Landroid/media/AudioAttributes$Builder;->mFlags:I

    new-instance v0, Ljava/util/HashSet;

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

    iput-object v0, p0, Landroid/media/AudioAttributes$Builder;->mTags:Ljava/util/HashSet;

    return-void
.end method

.method public constructor <init>(Landroid/media/AudioAttributes;)V
    .locals 2

    const/4 v1, 0x0

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

    iput v1, p0, Landroid/media/AudioAttributes$Builder;->mUsage:I

    iput v1, p0, Landroid/media/AudioAttributes$Builder;->mContentType:I

    const/4 v0, -0x1

    iput v0, p0, Landroid/media/AudioAttributes$Builder;->mSource:I

    iput v1, p0, Landroid/media/AudioAttributes$Builder;->mFlags:I

    new-instance v0, Ljava/util/HashSet;

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

    iput-object v0, p0, Landroid/media/AudioAttributes$Builder;->mTags:Ljava/util/HashSet;

    invoke-static {p1}, Landroid/media/AudioAttributes;->-get3(Landroid/media/AudioAttributes;)I

    move-result v0

    iput v0, p0, Landroid/media/AudioAttributes$Builder;->mUsage:I

    invoke-static {p1}, Landroid/media/AudioAttributes;->-get0(Landroid/media/AudioAttributes;)I

    move-result v0

    iput v0, p0, Landroid/media/AudioAttributes$Builder;->mContentType:I

    invoke-static {p1}, Landroid/media/AudioAttributes;->-get1(Landroid/media/AudioAttributes;)I

    move-result v0

    iput v0, p0, Landroid/media/AudioAttributes$Builder;->mFlags:I

    invoke-static {p1}, Landroid/media/AudioAttributes;->-get2(Landroid/media/AudioAttributes;)Ljava/util/HashSet;

    move-result-object v0

    invoke-virtual {v0}, Ljava/util/HashSet;->clone()Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Ljava/util/HashSet;

    iput-object v0, p0, Landroid/media/AudioAttributes$Builder;->mTags:Ljava/util/HashSet;

    return-void
.end method

# virtual methods
.method public addBundle(Landroid/os/Bundle;)Landroid/media/AudioAttributes$Builder;
    .locals 2

    if-nez p1, :cond_0

    new-instance v0, Ljava/lang/IllegalArgumentException;

    const-string/jumbo v1, "Illegal null bundle"

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

    throw v0

    :cond_0
    iget-object v0, p0, Landroid/media/AudioAttributes$Builder;->mBundle:Landroid/os/Bundle;

    if-nez v0, :cond_1

    new-instance v0, Landroid/os/Bundle;

    invoke-direct {v0, p1}, Landroid/os/Bundle;-><init>(Landroid/os/Bundle;)V

    iput-object v0, p0, Landroid/media/AudioAttributes$Builder;->mBundle:Landroid/os/Bundle;

    :goto_0
    return-object p0

    :cond_1
    iget-object v0, p0, Landroid/media/AudioAttributes$Builder;->mBundle:Landroid/os/Bundle;

    invoke-virtual {v0, p1}, Landroid/os/Bundle;->putAll(Landroid/os/Bundle;)V

    goto :goto_0
.end method

.method public addTag(Ljava/lang/String;)Landroid/media/AudioAttributes$Builder;
    .locals 1

    iget-object v0, p0, Landroid/media/AudioAttributes$Builder;->mTags:Ljava/util/HashSet;

    invoke-virtual {v0, p1}, Ljava/util/HashSet;->add(Ljava/lang/Object;)Z

    return-object p0
.end method

.method public build()Landroid/media/AudioAttributes;
    .locals 3

    const/4 v1, 0x0

    new-instance v0, Landroid/media/AudioAttributes;

    invoke-direct {v0, v1}, Landroid/media/AudioAttributes;-><init>(Landroid/media/AudioAttributes;)V

    iget v1, p0, Landroid/media/AudioAttributes$Builder;->mContentType:I

    invoke-static {v0, v1}, Landroid/media/AudioAttributes;->-set1(Landroid/media/AudioAttributes;I)I

    iget v1, p0, Landroid/media/AudioAttributes$Builder;->mUsage:I

    invoke-static {v0, v1}, Landroid/media/AudioAttributes;->-set6(Landroid/media/AudioAttributes;I)I

    iget v1, p0, Landroid/media/AudioAttributes$Builder;->mSource:I

    invoke-static {v0, v1}, Landroid/media/AudioAttributes;->-set4(Landroid/media/AudioAttributes;I)I

    iget v1, p0, Landroid/media/AudioAttributes$Builder;->mFlags:I

    invoke-static {v0, v1}, Landroid/media/AudioAttributes;->-set2(Landroid/media/AudioAttributes;I)I

    iget-object v1, p0, Landroid/media/AudioAttributes$Builder;->mTags:Ljava/util/HashSet;

    invoke-virtual {v1}, Ljava/util/HashSet;->clone()Ljava/lang/Object;

    move-result-object v1

    check-cast v1, Ljava/util/HashSet;

    invoke-static {v0, v1}, Landroid/media/AudioAttributes;->-set5(Landroid/media/AudioAttributes;Ljava/util/HashSet;)Ljava/util/HashSet;

    const-string/jumbo v1, ";"

    iget-object v2, p0, Landroid/media/AudioAttributes$Builder;->mTags:Ljava/util/HashSet;

    invoke-static {v1, v2}, Landroid/text/TextUtils;->join(Ljava/lang/CharSequence;Ljava/lang/Iterable;)Ljava/lang/String;

    move-result-object v1

    invoke-static {v0, v1}, Landroid/media/AudioAttributes;->-set3(Landroid/media/AudioAttributes;Ljava/lang/String;)Ljava/lang/String;

    iget-object v1, p0, Landroid/media/AudioAttributes$Builder;->mBundle:Landroid/os/Bundle;

    if-eqz v1, :cond_0

    new-instance v1, Landroid/os/Bundle;

    iget-object v2, p0, Landroid/media/AudioAttributes$Builder;->mBundle:Landroid/os/Bundle;

    invoke-direct {v1, v2}, Landroid/os/Bundle;-><init>(Landroid/os/Bundle;)V

    invoke-static {v0, v1}, Landroid/media/AudioAttributes;->-set0(Landroid/media/AudioAttributes;Landroid/os/Bundle;)Landroid/os/Bundle;

    :cond_0
    return-object v0
.end method

.method public replaceFlags(I)Landroid/media/AudioAttributes$Builder;
    .locals 1

    and-int/lit16 v0, p1, 0x3ff

    iput v0, p0, Landroid/media/AudioAttributes$Builder;->mFlags:I

    return-object p0
.end method

.method public semAddAudioTag(Ljava/lang/String;)Landroid/media/AudioAttributes$Builder;
    .locals 1

    invoke-virtual {p0, p1}, Landroid/media/AudioAttributes$Builder;->addTag(Ljava/lang/String;)Landroid/media/AudioAttributes$Builder;

    move-result-object v0

    return-object v0
.end method

.method public setCapturePreset(I)Landroid/media/AudioAttributes$Builder;
    .locals 3

    packed-switch p1, :pswitch_data_0

    :pswitch_0
    const-string/jumbo v0, "AudioAttributes"

    new-instance v1, Ljava/lang/StringBuilder;

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

    const-string/jumbo v2, "Invalid capture preset "

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

    move-result-object v1

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

    move-result-object v1

    const-string/jumbo v2, " for AudioAttributes"

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

    move-result-object v1

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

    move-result-object v1

    invoke-static {v0, v1}, Landroid/util/Log;->e(Ljava/lang/String;Ljava/lang/String;)I

    :goto_0
    return-object p0

    :pswitch_1
    iput p1, p0, Landroid/media/AudioAttributes$Builder;->mSource:I

    goto :goto_0

    :pswitch_data_0
    .packed-switch 0x0
        :pswitch_1
        :pswitch_1
        :pswitch_1
        :pswitch_1
        :pswitch_1
        :pswitch_1
        :pswitch_1
        :pswitch_1
        :pswitch_0
        :pswitch_1
        :pswitch_1
        :pswitch_1
        :pswitch_1
        :pswitch_1
        :pswitch_1
        :pswitch_1
        :pswitch_1
        :pswitch_1
        :pswitch_1
        :pswitch_1
        :pswitch_1
        :pswitch_1
    .end packed-switch
.end method

.method public setContentType(I)Landroid/media/AudioAttributes$Builder;
    .locals 1

    packed-switch p1, :pswitch_data_0

    const/4 v0, 0x0

    iput v0, p0, Landroid/media/AudioAttributes$Builder;->mUsage:I

    :goto_0
    return-object p0

    :pswitch_0
    iput p1, p0, Landroid/media/AudioAttributes$Builder;->mContentType:I

    goto :goto_0

    :pswitch_data_0
    .packed-switch 0x0
        :pswitch_0
        :pswitch_0
        :pswitch_0
        :pswitch_0
        :pswitch_0
    .end packed-switch
.end method

.method public setFlags(I)Landroid/media/AudioAttributes$Builder;
    .locals 1

    and-int/lit16 p1, p1, 0x3ff

    iget v0, p0, Landroid/media/AudioAttributes$Builder;->mFlags:I

    or-int/2addr v0, p1

    iput v0, p0, Landroid/media/AudioAttributes$Builder;->mFlags:I

    return-object p0
.end method

.method public setInternalCapturePreset(I)Landroid/media/AudioAttributes$Builder;
    .locals 1

    const/16 v0, 0x7cf

    if-eq p1, v0, :cond_0

    const/16 v0, 0x8

    if-ne p1, v0, :cond_1

    :cond_0
    iput p1, p0, Landroid/media/AudioAttributes$Builder;->mSource:I

    :goto_0
    return-object p0

    :cond_1
    const/16 v0, 0x7ce

    if-eq p1, v0, :cond_0

    invoke-virtual {p0, p1}, Landroid/media/AudioAttributes$Builder;->setCapturePreset(I)Landroid/media/AudioAttributes$Builder;

    goto :goto_0
.end method

.method public setInternalLegacyStreamType(I)Landroid/media/AudioAttributes$Builder;
    .locals 3

    const/4 v2, 0x2

    const/4 v0, 0x1

    const/4 v1, 0x4

    packed-switch p1, :pswitch_data_0

    const-string/jumbo v0, "AudioAttributes"

    new-instance v1, Ljava/lang/StringBuilder;

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

    const-string/jumbo v2, "Invalid stream type "

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

    move-result-object v1

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

    move-result-object v1

    const-string/jumbo v2, " for AudioAttributes"

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

    move-result-object v1

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

    move-result-object v1

    invoke-static {v0, v1}, Landroid/util/Log;->e(Ljava/lang/String;Ljava/lang/String;)I

    :cond_0
    :goto_0
    invoke-static {p1}, Landroid/media/AudioAttributes;->-wrap0(I)I

    move-result v0

    iput v0, p0, Landroid/media/AudioAttributes$Builder;->mUsage:I

    return-object p0

    :pswitch_0
    iput v0, p0, Landroid/media/AudioAttributes$Builder;->mContentType:I

    goto :goto_0

    :pswitch_1
    iget v0, p0, Landroid/media/AudioAttributes$Builder;->mFlags:I

    or-int/lit8 v0, v0, 0x1

    iput v0, p0, Landroid/media/AudioAttributes$Builder;->mFlags:I

    :pswitch_2
    iput v1, p0, Landroid/media/AudioAttributes$Builder;->mContentType:I

    goto :goto_0

    :pswitch_3
    iput v1, p0, Landroid/media/AudioAttributes$Builder;->mContentType:I

    goto :goto_0

    :pswitch_4
    iput v2, p0, Landroid/media/AudioAttributes$Builder;->mContentType:I

    goto :goto_0

    :pswitch_5
    iput v1, p0, Landroid/media/AudioAttributes$Builder;->mContentType:I

    goto :goto_0

    :pswitch_6
    iput v1, p0, Landroid/media/AudioAttributes$Builder;->mContentType:I

    goto :goto_0

    :pswitch_7
    iput v0, p0, Landroid/media/AudioAttributes$Builder;->mContentType:I

    iget v0, p0, Landroid/media/AudioAttributes$Builder;->mFlags:I

    or-int/lit8 v0, v0, 0x4

    iput v0, p0, Landroid/media/AudioAttributes$Builder;->mFlags:I

    goto :goto_0

    :pswitch_8
    iput v1, p0, Landroid/media/AudioAttributes$Builder;->mContentType:I

    goto :goto_0

    :pswitch_9
    iput v1, p0, Landroid/media/AudioAttributes$Builder;->mContentType:I

    goto :goto_0

    :pswitch_a
    iput v0, p0, Landroid/media/AudioAttributes$Builder;->mContentType:I

    goto :goto_0

    :pswitch_b
    iput v2, p0, Landroid/media/AudioAttributes$Builder;->mContentType:I

    goto :goto_0

    :pswitch_c
    iput v0, p0, Landroid/media/AudioAttributes$Builder;->mContentType:I

    iget-object v0, p0, Landroid/media/AudioAttributes$Builder;->mTags:Ljava/util/HashSet;

    const-string/jumbo v1, "STREAM_VIDEO_CALL"

    invoke-virtual {v0, v1}, Ljava/util/HashSet;->add(Ljava/lang/Object;)Z

    goto :goto_0

    :pswitch_d
    iput v0, p0, Landroid/media/AudioAttributes$Builder;->mContentType:I

    iget-object v0, p0, Landroid/media/AudioAttributes$Builder;->mTags:Ljava/util/HashSet;

    const-string/jumbo v1, "STREAM_SEC_VOICE_COMMUNICATION"

    invoke-virtual {v0, v1}, Ljava/util/HashSet;->add(Ljava/lang/Object;)Z

    goto :goto_0

    :pswitch_e
    iput v2, p0, Landroid/media/AudioAttributes$Builder;->mContentType:I

    iget-object v0, p0, Landroid/media/AudioAttributes$Builder;->mTags:Ljava/util/HashSet;

    const-string/jumbo v1, "BIXBY"

    invoke-virtual {v0, v1}, Ljava/util/HashSet;->contains(Ljava/lang/Object;)Z

    move-result v0

    if-nez v0, :cond_0

    iget-object v0, p0, Landroid/media/AudioAttributes$Builder;->mTags:Ljava/util/HashSet;

    const-string/jumbo v1, "STREAM_VOICENOTE"

    invoke-virtual {v0, v1}, Ljava/util/HashSet;->add(Ljava/lang/Object;)Z

    goto :goto_0

    nop

    :pswitch_data_0
    .packed-switch 0x0
        :pswitch_0
        :pswitch_2
        :pswitch_3
        :pswitch_4
        :pswitch_5
        :pswitch_6
        :pswitch_7
        :pswitch_1
        :pswitch_8
        :pswitch_9
        :pswitch_a
        :pswitch_b
        :pswitch_c
        :pswitch_d
        :pswitch_e
    .end packed-switch
.end method

.method public setLegacyStreamType(I)Landroid/media/AudioAttributes$Builder;
    .locals 2

    const/16 v0, 0xa

    if-ne p1, v0, :cond_0

    new-instance v0, Ljava/lang/IllegalArgumentException;

    const-string/jumbo v1, "STREAM_ACCESSIBILITY is not a legacy stream type that was used for audio playback"

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

    throw v0

    :cond_0
    invoke-virtual {p0, p1}, Landroid/media/AudioAttributes$Builder;->setInternalLegacyStreamType(I)Landroid/media/AudioAttributes$Builder;

    move-result-object v0

    return-object v0
.end method

.method public setUsage(I)Landroid/media/AudioAttributes$Builder;
    .locals 1

    packed-switch p1, :pswitch_data_0

    const/4 v0, 0x0

    iput v0, p0, Landroid/media/AudioAttributes$Builder;->mUsage:I

    :goto_0
    return-object p0

    :pswitch_0
    iput p1, p0, Landroid/media/AudioAttributes$Builder;->mUsage:I

    goto :goto_0

    :pswitch_data_0
    .packed-switch 0x0
        :pswitch_0
        :pswitch_0
        :pswitch_0
        :pswitch_0
        :pswitch_0
        :pswitch_0
        :pswitch_0
        :pswitch_0
        :pswitch_0
        :pswitch_0
        :pswitch_0
        :pswitch_0
        :pswitch_0
        :pswitch_0
        :pswitch_0
        :pswitch_0
        :pswitch_0
    .end packed-switch
.end method


text:
package Paws::Config::DescribeConfigurationRecorders;
  use Moose;
  has ConfigurationRecorderNames => (is => 'ro', isa => 'ArrayRef[Str|Undef]');

  use MooseX::ClassAttribute;

  class_has _api_call => (isa => 'Str', is => 'ro', default => 'DescribeConfigurationRecorders');
  class_has _returns => (isa => 'Str', is => 'ro', default => 'Paws::Config::DescribeConfigurationRecordersResponse');
  class_has _result_key => (isa => 'Str', is => 'ro');
1;

### main pod documentation begin ###

=head1 NAME

Paws::Config::DescribeConfigurationRecorders - Arguments for method DescribeConfigurationRecorders on Paws::Config

=head1 DESCRIPTION

This class represents the parameters used for calling the method DescribeConfigurationRecorders on the
AWS Config service. Use the attributes of this class
as arguments to method DescribeConfigurationRecorders.

You shouldn't make instances of this class. Each attribute should be used as a named argument in the call to DescribeConfigurationRecorders.

As an example:

  $service_obj->DescribeConfigurationRecorders(Att1 => $value1, Att2 => $value2, ...);

Values for attributes that are native types (Int, String, Float, etc) can passed as-is (scalar values). Values for complex Types (objects) can be passed as a HashRef. The keys and values of the hashref will be used to instance the underlying object.

=head1 ATTRIBUTES

=head2 ConfigurationRecorderNames => ArrayRef[Str|Undef]

A list of configuration recorder names.

=head1 SEE ALSO

This class forms part of L<Paws>, documenting arguments for method DescribeConfigurationRecorders in L<Paws::Config>

=head1 BUGS and CONTRIBUTIONS

The source code is located here: https://github.com/pplu/aws-sdk-perl

Please report bugs to: https://github.com/pplu/aws-sdk-perl/issues

=cut


text:
require "dsc_lcm_configuration/lcm_base"

module DscLcmConfiguration
  class LcmV5 < LcmBase

    def lcm_properties
      {
        :action_after_reboot => "StopConfiguration",
        :allow_module_overwrite => false,
        :certificate_id => nil,
        :configuration_mode => "ApplyAndAutoCorrect",
        :configuration_mode_frequency_mins => 15,
        :debug_mode => "All",
        :reboot_if_needed => false,
        :refresh_mode => "PUSH",
        :refresh_frequency_mins => 30,
      }
    end

    def lcm_configuration_script
      <<-LCMSETUP
        [DSCLocalConfigurationManager()]
        configuration SetupLCM
        {
          Settings
          {
            ActionAfterReboot = '#{action_after_reboot}'
            AllowModuleOverwrite = [bool]::Parse('#{allow_module_overwrite}')
            CertificateID = #{certificate_id}
            ConfigurationMode = '#{configuration_mode}'
            ConfigurationModeFrequencyMins = #{configuration_mode_frequency_mins}
            DebugMode = '#{debug_mode}'
            RebootNodeIfNeeded = [bool]::Parse('#{reboot_if_needed}')
            RefreshFrequencyMins = #{refresh_frequency_mins}
            RefreshMode = '#{refresh_mode}'
          }
        }
      LCMSETUP
    end
  end
end


text:
ENV["RAILS_ENV"] ||= "test"
require 'rails/all'
require 'rspec'
require 'rspec/rails'
require File.expand_path('../../lib/resources_controller', __FILE__)

# RSpec 2 doesn't fight Rails's requiring a template for rendering,
# even in controller specs, so we need to provide empty ones in order to not have
# just about every test fail.
ActionController::Base.view_paths = [File.join(File.dirname(__FILE__), "app/views")]

RSpec.configure do |config|
  config.use_transactional_fixtures = true
  config.use_instantiated_fixtures  = false
  config.infer_spec_type_from_file_location!
  config.expect_with(:rspec) { |c| c.syntax = [ :should, :expect ] }
end

require 'rails-controller-testing'
Rails::Controller::Testing.install
require 'rspec/active_model/mocks'

require File.dirname(__FILE__) + '/app'


text:
<?php

namespace Enqueue;

use Interop\Queue\Processor;

class ArrayProcessorRegistry implements ProcessorRegistryInterface
{
    /**
     * @var Processor[]
     */
    private $processors;

    /**
     * @param Processor[] $processors
     */
    public function __construct(array $processors = [])
    {
        $this->processors = [];
        array_walk($processors, function (Processor $processor, string $key) {
            $this->processors[$key] = $processor;
        });
    }

    public function add(string $name, Processor $processor): void
    {
        $this->processors[$name] = $processor;
    }

    public function get(string $processorName): Processor
    {
        if (false == isset($this->processors[$processorName])) {
            throw new \LogicException(sprintf('Processor was not found. processorName: "%s"', $processorName));
        }

        return $this->processors[$processorName];
    }
}


text:
<?php

/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

/**
 * Description of THOR_TEST_B3_DataBoundSimplePersistable
 *
 * @author Dan Kottke
 */
class THOR_TEST_B3_DataBoundSimplePersistable  extends THOR_DataBoundSimplePersistable{

    public function __construct($keyValue = null) {

        $sourceKeys = unserialize(TEST_B3_DBFIELDS);
        $database = DB_NAME;
        $table = TEST_B3;
        $keyName = GLOBAL_PRIMARY_KEY_NAME;
        $isDirty = true;

        parent::__construct($sourceKeys, $database, $table, $keyName, $keyValue, $isDirty);
    }

}
?>


text:
* Deprecate helpers: `moment`, `ago`, `duration` in favor of `moment-format`, `moment-from-now`, `moment-duration`
* Deprecate computed property modules:
  * `ember-moment/computeds/ago` -> `ember-moment/computeds/from-now`
  * `ember-moment/computeds/moment` -> `ember-moment/computeds/format`
* Removed EnumerableUtils.map
* Updated ember-cli-moment-shim to 0.6.0
  * moment is now brought in via bower instead of npm (https://github.com/jasonmit/ember-cli-moment-shim/issues/14#issuecomment-125455255)

### 3.1.0

* Conditionally include all locales if `true` is passed to `includeLocales` option

### 3.0.2

* Smoke tests added
* Fixing regression which broke 1.10.0
* Added Ember 1.10.0 -> #release to the Travis CI matrix

### 3.0.1

* Fixes regression in <= 1.12.0 where the helpers are not registered properly

### 3.0.0

* Support to programmatically including moment i18n locale data via `includeLocales`
* Removes support for Ember.Handlebars.helpers in favor of just supporting HTMLBars going forward
* Removes `ember-moment/computed`.  Explicit full path import paths to avoid naming conflicts.
  * `ember-moment/computeds/duration`
  * `ember-moment/computeds/moment`
  * `ember-moment/computeds/from-now`

### 2.0.1

* Works around an issue within ember-cli with nested addon's that need to app.import
  * See: https://github.com/ember-cli/ember-cli/issues/3718

### 2.0.0

* 1.13.x support
* moment and moment timezone are now pulled in from `ember-cli-moment-shim` instead of `ember-moment`
* BREAKING: moved EmberApp's `ember-moment` configuration object to `config/environment.js` and renamed to `moment`.

```js
// config/environment.js
module.exports = function(environment) {
  return {
    moment: {
      includeTimezone: 'all'
    }
  }
}
```

### 1.1.1

* [BUGFIX] HTMLBars should use `makeBoundHelper`

### 1.1.0

* [ENHANCEMENT] HTMLBars support (backwards compat. with Handlebars)

* [ENHANCEMENT] Adding duration helper with examples in the dummy app

### 1.0.0

* [BREAKING ENHANCEMENT] The full `moment` Handlebars helper signature is now

      `{{moment-format date outputFormat inputFormat}}`

  to better reflect common usage pattern. You are usually passing a date as the first argument, which does not require specifying an inputFormat, and at the same time, you usually do want to specify an output format. [#12](https://github.com/stefanpenner/ember-moment/pull/12).

    Fixes case of passing both input and output formats, and changes default output format.

    Adds a few more usage examples to dummy app, and improves tests accordingly.

* [BUGFIX] Passing a two arguments to the `moment` helper was not handled properly.
* [ENHANCEMENT] Added more examples to the dummy app

### 0.2.0

Early versions, before this doc was maintained


text:
<!DOCTYPE frameset SYSTEM "frameset.dtd">
<frameset>
    <predicate lemma="shun">

        <roleset framnet="Avoiding" id="shun.01" name="to avoid, keep away from" vncls="52">
            <roles>
                <role descr="avoider, agent" f="" n="0">
                    <vnrole vncls="52" vntheta="agent"/>
                </role>
                <role descr="thing avoided" f="" n="1">
                    <vnrole vncls="52" vntheta="theme"/>
                </role>
                <note/>
            </roles>

            <example name="transitive" src="" type="">
                <inflection aspect="progressive" form="participle" person="ns" tense="present" voice="active"/>
                <text>In many other institutions , scientists are shunning contacts with venture investors until the NIH policy is settled [*-1] .</text>
                <arg f="loc" n="m">In many other institutions</arg>
                <arg f="" n="0">scientists</arg>
                <rel f="">shunning</rel>
                <arg f="" n="1">contacts with venture investors</arg>
                <arg f="tmp" n="m">until the NIH policy is settled [*-1]</arg>
                <note/>
            </example>

            <example name="another transitive" src="" type="">
                <inflection aspect="ns" form="participle" person="ns" tense="present" voice="active"/>
                <text>Investors-2 , he advises [0] [*T*-1] , `` should be cautious , '' [*-2] holding fewer stocks than usual and also shunning bonds .</text>
                <arg f="" n="0">[*-2]</arg>
                <arg f="adv" n="m">also</arg>
                <rel f="">shunning</rel>
                <arg f="" n="1">bonds</arg>
                <note/>
            </example>

            <note>Member of Vncls avoid-52.</note>
        </roleset>
        <note>Frames file for 'shun' based on survey of sentences in the WSJ
            corpus.
        </note>
    </predicate>

    <note>frames created by Olga</note>
</frameset>


text:
<?xml version="1.0"?>
<!--

    Copyright (C) 2017-2019 Dremio Corporation

    Licensed under the Apache License, Version 2.0 (the "License");
    you may not use this file except in compliance with the License.
    You may obtain a copy of the License at

        http://www.apache.org/licenses/LICENSE-2.0

    Unless required by applicable law or agreed to in writing, software
    distributed under the License is distributed on an "AS IS" BASIS,
    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
    See the License for the specific language governing permissions and
    limitations under the License.

-->
<project xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"
         xmlns="http://maven.apache.org/POM/4.0.0"
         xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
  <modelVersion>4.0.0</modelVersion>
  <parent>
    <artifactId>dremio-plugin-parent</artifactId>
    <groupId>com.dremio.plugins</groupId>
    <version>23.0.1-202210141019030815-c1de8bcc</version>
  </parent>

  <artifactId>dremio-s3-plugin</artifactId>
  <name>Plugins - S3 Plugin</name>
  <packaging>jar</packaging>

  <dependencies>
    <dependency>
      <groupId>com.amazonaws</groupId>
      <artifactId>aws-java-sdk-s3</artifactId>
    </dependency>
    <dependency>
      <groupId>com.amazonaws</groupId>
      <artifactId>aws-java-sdk-dynamodb</artifactId>
    </dependency>
    <dependency>
      <groupId>software.amazon.awssdk</groupId>
      <artifactId>apache-client</artifactId>
      <exclusions>
        <exclusion>
          <groupId>commons-logging</groupId>
          <artifactId>commons-logging</artifactId>
        </exclusion>
      </exclusions>
    </dependency>
    <dependency>
      <groupId>com.dremio</groupId>
      <artifactId>dremio-common</artifactId>
    </dependency>
    <dependency>
      <groupId>com.dremio.sabot</groupId>
      <artifactId>dremio-sabot-kernel</artifactId>
    </dependency>
    <dependency>
      <groupId>com.dremio.plugins</groupId>
      <artifactId>dremio-plugin-awsauth</artifactId>
      <version>${project.version}</version>
    </dependency>
    <dependency>
      <groupId>org.apache.hadoop</groupId>
      <artifactId>hadoop-aws</artifactId>
    </dependency>
    <dependency>
      <groupId>org.apache.hadoop</groupId>
      <artifactId>hadoop-common</artifactId>
    </dependency>
    <dependency>
      <groupId>software.amazon.awssdk</groupId>
      <artifactId>s3</artifactId>
    </dependency>
    <dependency>
      <groupId>software.amazon.awssdk</groupId>
      <artifactId>sts</artifactId>
    </dependency>
    <dependency>
      <groupId>com.amazonaws</groupId>
      <artifactId>aws-java-sdk-sts</artifactId>
    </dependency>
    <!-- test dependencies -->
    <dependency>
      <groupId>com.dremio.sabot</groupId>
      <artifactId>dremio-sabot-kernel</artifactId>
      <classifier>tests</classifier>
      <type>test-jar</type>
      <scope>test</scope>
    </dependency>
    <dependency>
      <groupId>com.dremio</groupId>
      <artifactId>dremio-common</artifactId>
      <classifier>tests</classifier>
      <type>test-jar</type>
      <scope>test</scope>
    </dependency>
    <dependency>
      <groupId>org.mockito</groupId>
      <artifactId>mockito-inline</artifactId>
      <scope>test</scope>
    </dependency>
    <dependency>
      <groupId>io.findify</groupId>
      <artifactId>s3mock_2.12</artifactId>
      <scope>test</scope>
    </dependency>
    <dependency>
      <groupId>org.javassist</groupId>
      <artifactId>javassist</artifactId>
      <scope>test</scope>
    </dependency>
  </dependencies>
  <profiles>
    <profile>
      <id>notmapr</id>
      <activation>
        <property>
          <name>!mapr</name>
        </property>
      </activation>
      <dependencies>
        <dependency>
          <groupId>org.apache.hadoop</groupId>
          <artifactId>hadoop-azure-datalake</artifactId>
          <version>${hadoop.version}</version>
        </dependency>
      </dependencies>
    </profile>
  </profiles>
  <build>
    <plugins>
      <plugin>
        <groupId>org.apache.maven.plugins</groupId>
        <artifactId>maven-surefire-plugin</artifactId>
        <configuration>
          <systemPropertyVariables>
            <s3mock.reserved.port>${s3mock.reserved.port}</s3mock.reserved.port>
          </systemPropertyVariables>
        </configuration>
      </plugin>
      <plugin>
        <groupId>org.codehaus.mojo</groupId>
        <artifactId>build-helper-maven-plugin</artifactId>
        <executions>
          <execution>
            <id>reserve-network-port</id>
            <goals>
              <goal>reserve-network-port</goal>
            </goals>
            <phase>process-resources</phase>
            <configuration>
              <!-- avoid using system range for ephemeral ports as servers are not
                immediately started, and pre-allocated ports might have been reused by OS
                Some tests also use fixed port in the 20000 range -->
              <!-- Always use non-overlapping ranges in each pom to avoid port conflict -->
              <minPortNumber>10000</minPortNumber>
              <maxPortNumber>10999</maxPortNumber>
              <portNames>
                <portName>s3mock.reserved.port</portName>
              </portNames>
            </configuration>
          </execution>
        </executions>
      </plugin>
    </plugins>
  </build>
</project>


text:
package org.hibernate.validator.test.haintegration;

import java.io.Serializable;

/**
 * @author Emmanuel Bernard
 */
public class VenusianPk implements Serializable {
	private String region;
	private String name;

	public String getRegion() {
		return region;
	}

	public void setRegion(String region) {
		this.region = region;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public boolean equals(Object o) {
		if ( this == o ) return true;
		if ( o == null || getClass() != o.getClass() ) return false;

		final VenusianPk that = (VenusianPk) o;

		if ( !name.equals( that.name ) ) return false;
		if ( !region.equals( that.region ) ) return false;

		return true;
	}

	public int hashCode() {
		int result;
		result = region.hashCode();
		result = 29 * result + name.hashCode();
		return result;
	}
}


text:
ACCEPTED

#### According to
International Plant Names Index

#### Published in
null

#### Original name
Tribulus inermis Kralik

### Remarks
null


text:
class ONIX::Publisher < ONIX::Element
  xml_name "Publisher"
  onix_code_from_list :publishing_role, "PublishingRole", :list => 45
  onix_code_from_list :name_code_type, "NameCodeType", :list => 44
  xml_accessor :name_code_type_name, :from => "NameCodeTypeName"
  xml_accessor :name_code_type_value, :from => "NameCodeTypeValue"
  xml_accessor :publisher_name, :from => "PublisherName"
  onix_composite :websites, ONIX::Website
end


text:
import Misc.Constants;
import org.json.JSONArray;
import org.json.JSONException;
import org.json.JSONObject;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.io.IOException;
import java.sql.Connection;
import java.sql.PreparedStatement;
import java.sql.ResultSet;
import java.sql.SQLException;

/**
 * Created by jman0_000 on 12/25/2015.
 */
public class getSuggestions {
	public static void getSuggestions(HttpServletRequest req, HttpServletResponse resp, Connection connection, String id) throws IOException {
		try {
			String select_sql = "SELECT src_zip, dest_zip FROM Profile where user_id = ?";
			long req_id;
			PreparedStatement stmt = connection.prepareStatement(select_sql);
			try {
				req_id = Long.parseLong(id);
				stmt.setLong(1, req_id);
			}
			catch (NumberFormatException e) {
				resp.setStatus(Constants.BAD_REQUEST);
				return;
			}
			int src_zip;
			int dest_zip;
			ResultSet rs = stmt.executeQuery();
			//Think of it like this: each item in the DB is an item in the RS.

			if (rs.next()) {
				src_zip = rs.getInt(Constants.SRC_ZIP);
				dest_zip = rs.getInt(Constants.DEST_ZIP);
			}
			else {
				resp.setStatus(Constants.BAD_REQUEST);
				return;
			}

			rs = getSuggestionResults(stmt, connection, src_zip, dest_zip, req_id);
			resp.getWriter().print(getJSONArr(rs));
		}
		catch (SQLException|JSONException e){
			resp.setStatus(Constants.INTERNAL_SERVER_ERROR);
			resp.getWriter().print(e.getMessage());
		}
	}

	public static ResultSet getSuggestionResults(PreparedStatement stmt, Connection connection, int src_zip, int dest_zip, Long req_id)
	throws SQLException{
		int min_src = src_zip - 2;
		int max_src = src_zip + 2;
		int min_dest = dest_zip - 2;
		int max_dest = dest_zip + 2;
		String select_sql = "Select user_id, name, src_zip, dest_zip, gender FROM Profile where src_zip BETWEEN ? and ? and user_id != ? " +
				"and visible = ? and dest_zip BETWEEN ? and ? ORDER BY user_id DESC";
		stmt = connection.prepareStatement(select_sql);
		stmt.setInt(1, min_src);
		stmt.setInt(2, max_src);
		stmt.setLong(3, req_id);
		stmt.setBoolean(4, true);
		stmt.setInt(5, min_dest);
		stmt.setInt(6, max_dest);
		ResultSet rs  = stmt.executeQuery();
		return rs;
	}

	public static String getJSONArr(ResultSet rs) throws JSONException, SQLException{
		JSONArray suggestionArr = new JSONArray();
		JSONObject user;
		while (rs.next()) {
			user = new JSONObject();
			user.put(Constants.USER_ID, rs.getInt(Constants.USER_ID));
			user.put(Constants.NAME, rs.getString(Constants.NAME));
			user.put(Constants.SRC_ZIP, rs.getInt(Constants.SRC_ZIP));
			user.put(Constants.DEST_ZIP, rs.getInt(Constants.DEST_ZIP));
			user.put(Constants.GENDER, rs.getString(Constants.GENDER));
			suggestionArr.put(user);
		}
		return suggestionArr.toString();
	}
}


text:
db.counters.insert(
   {
      name: "id",
      seq: 0
   }
)

function getNextSequence(idd) {
   var ret = db.counters.findAndModify(
          {
            query: { _id: idd },
            update: { $inc: { seq: 1 } },
            new: true
          }
   );

   return ret.seq;
}

// Test Data
col = [
   { id:getNextSequence("id"),
	 name:"Differential Geometry",
	 readFrequencyWeekly: "30 pages",
     problemsFrequencyWeekly:"15 problems"
   },
   { id:getNextSequence("id") ,
  	 name:"Differential Topology",
     readFrequencyWeekly: "1 section. block until 25 problems",
     problemsFrequencyWeekly: "8 problems"
   },
   {
   	 id:getNextSequence("id"),
  	 name:"Special Relativity",
     readFrequencyWeekly: "1 chapter",
     problemsFrequencyWeekly: "All chapter problems"
   },
   {
   	 id:getNextSequence("id"),
  	 name:"General Relativity",
     readFrequencyWeekly: "1 chapter",
     problemsFrequencyWeekly: "All chapter problems"
   }
]

db.plans.insert(col);


text:
package dps

import (
	"errors"
	"github.com/atnet/gof/web/ui/tree"
	"go2o/src/core/domain/interface/sale"
	"go2o/src/core/dto"
	"strconv"
)

type saleService struct {
	_rep sale.ISaleRep
}

func NewSaleService(r sale.ISaleRep) *saleService {
	return &saleService{
		_rep: r,
	}
}

func (this *saleService) GetValueGoods(partnerId, goodsId int) *sale.ValueGoods {
	sl := this._rep.GetSale(partnerId)
	pro := sl.GetGoods(goodsId)
	v := pro.GetValue()
	return &v
}

func (this *saleService) SaveGoods(partnerId int, v *sale.ValueGoods) (int, error) {
	sl := this._rep.GetSale(partnerId)
	var pro sale.IGoods
	if v.Id > 0 {
		pro = sl.GetGoods(v.Id)
		if pro == nil {
			return 0, errors.New("产品不存在")
		}
		if err := pro.SetValue(v); err != nil {
			return 0, err
		}
	} else {
		pro = sl.CreateGoods(v)
	}
	return pro.Save()
}

func (this *saleService) GetOnShelvesGoodsByCategoryId(partnerId, cid, num int) []*dto.ListGoods {
	var goods = this._rep.GetOnShelvesGoodsByCategoryId(partnerId, cid, num)
	var listGoods []*dto.ListGoods = make([]*dto.ListGoods, len(goods))
	for i, v := range goods {
		listGoods[i] = &dto.ListGoods{
			Id:         v.Id,
			Name:       v.Name,
			SmallTitle: v.SmallTitle,
			Image:      v.Image,
			Price:      v.Price,
			SalePrice:  v.SalePrice,
		}
	}
	return listGoods
}

func (this *saleService) DeleteGoods(partnerId, goodsId int) error {
	sl := this._rep.GetSale(partnerId)
	return sl.DeleteGoods(goodsId)
}

func (this *saleService) GetCategory(partnerId, id int) *sale.ValueCategory {
	sl := this._rep.GetSale(partnerId)
	c := sl.GetCategory(id)
	if c != nil {
		cv := c.GetValue()
		return &cv
	}
	return nil
}

func (this *saleService) DeleteCategory(partnerId, id int) error {
	sl := this._rep.GetSale(partnerId)
	return sl.DeleteCategory(id)
}

func (this *saleService) SaveCategory(partnerId int, v *sale.ValueCategory) (int, error) {
	sl := this._rep.GetSale(partnerId)
	var ca sale.ICategory
	if v.Id > 0 {
		ca = sl.GetCategory(v.Id)
		if err := ca.SetValue(v); err != nil {
			return 0, err
		}
	} else {
		ca = sl.CreateCategory(v)
	}

	return ca.Save()
}

func (this *saleService) GetCategoryTreeNode(partnerId int) *tree.TreeNode {
	sl := this._rep.GetSale(partnerId)
	cats := sl.GetCategories()
	rootNode := &tree.TreeNode{
		Text:   "根节点",
		Value:  "",
		Url:    "",
		Icon:   "",
		Open:   true,
		Childs: nil}
	this.iterCategoryTree(rootNode, 0, cats)
	return rootNode
}

func (this *saleService) iterCategoryTree(node *tree.TreeNode, parentId int, categories []sale.ICategory) {
	node.Childs = []*tree.TreeNode{}
	for _, v := range categories {
		cate := v.GetValue()
		if cate.ParentId == parentId {
			cNode := &tree.TreeNode{
				Text:   cate.Name,
				Value:  strconv.Itoa(cate.Id),
				Url:    "",
				Icon:   "",
				Open:   true,
				Childs: nil}
			node.Childs = append(node.Childs, cNode)
			this.iterCategoryTree(cNode, cate.Id, categories)
		}
	}
}

func (this *saleService) GetCategories(partnerId int) []*sale.ValueCategory {
	sl := this._rep.GetSale(partnerId)
	cats := sl.GetCategories()
	var list []*sale.ValueCategory = make([]*sale.ValueCategory, len(cats))
	for i, v := range cats {
		vv := v.GetValue()
		list[i] = &vv
	}
	return list
}


text:
"use strict";
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
    var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
    if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
    else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
    return c > 3 && r && Object.defineProperty(target, key, r), r;
};
var __metadata = (this && this.__metadata) || function (k, v) {
    if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
};
var core_1 = require('@angular/core');
var router_1 = require("@angular/router");
var passeador_model_1 = require('./passeador.model');
var passeador_service_1 = require('./passeador.service');
var CadastroPasseadorComponent = (function () {
    function CadastroPasseadorComponent(router, passeadorService) {
        this.router = router;
        this.passeadorService = passeadorService;
    }
    CadastroPasseadorComponent.prototype.ngOnInit = function () {
        this.passeador = new passeador_model_1.PasseadorModel();
    };
    CadastroPasseadorComponent.prototype.cadastrar = function () {
        this.passeadorService.cadastrar(this.passeador);
        this.router.navigate(['/perfil-passeador']);
    };
    CadastroPasseadorComponent = __decorate([
        core_1.Component({
            templateUrl: 'app/passeador/templates/cadastro-passeador.html',
            providers: [passeador_service_1.PasseadorService]
        }),
        __metadata('design:paramtypes', [router_1.Router, passeador_service_1.PasseadorService])
    ], CadastroPasseadorComponent);
    return CadastroPasseadorComponent;
}());
exports.CadastroPasseadorComponent = CadastroPasseadorComponent;
//# sourceMappingURL=cadastro-passeador.component.js.map


text:
@implementation CRProductsMemberBriefInfoModel

@end


text:
#include "ogr_ao.h"
#include "cpl_conv.h"
#include "aoutils.h"

/************************************************************************/
/*                            AODriver()                            */
/************************************************************************/
AODriver::AODriver():
OGRSFDriver(), m_licensedCheckedOut(false), m_productCode(-1), m_initialized(false)
{
}

/************************************************************************/
/*                            ~AODriver()                            */
/************************************************************************/
AODriver::~AODriver()

{
  if (m_initialized)
  {
    if (m_licensedCheckedOut)
      ShutdownDriver();

    ::CoUninitialize();
  }
}

bool AODriver::Init()
{
  if (m_initialized)
    return true;

  ::CoInitialize(NULL);
  m_initialized = true; //need to mark to un-init COM system on destruction

  m_licensedCheckedOut = InitializeDriver();
  if (!m_licensedCheckedOut)
  {
    CPLError( CE_Failure, CPLE_AppDefined, "ArcGIS License checkout failed.");

    return false;
  }
  else
  {
    m_productCode = GetInitedProductCode();
  }

  return true;
}

/************************************************************************/
/*                              GetName()                               */
/************************************************************************/

const char *AODriver::GetName()

{
  return "ArcObjects";
}

/************************************************************************/
/*                                Open()                                */
/************************************************************************/

OGRDataSource *AODriver::Open( const char* pszFilename,
                              int bUpdate )

{
  // First check if we have to do any work.
  // In order to avoid all the COM overhead, we are going to check
  // if we have an AO prefix

  if( !EQUALN(pszFilename,"AO:",3) )
    return NULL;

  //OK, it is our turn, let's pay the price

  if (!Init())
  {
    return NULL;
  }

  const char* pInitString = pszFilename + 3; //skip chars

  IWorkspacePtr ipWorkspace = NULL;
  OpenWorkspace(pInitString, &ipWorkspace);

  if (ipWorkspace == NULL)
    return NULL;

  AODataSource* pDS;

  pDS = new AODataSource();

  if(!pDS->Open( ipWorkspace, pszFilename, bUpdate ) )
  {
    delete pDS;
    return NULL;
  }
  else
    return pDS;
}

/************************************************************************
*                     CreateDataSource()                                *
************************************************************************/

OGRDataSource* AODriver::CreateDataSource( const char * pszName,
                                           char **papszOptions)
{
  return NULL;
}

void AODriver::OpenWorkspace(std::string conn, IWorkspace** ppWorkspace)
{
  //If there are any others we want to support in the future, we just need to add them here
  // http://resources.esri.com/help/9.3/ArcGISDesktop/ArcObjects/esriGeoDatabase/IWorkspaceFactory.htm
  //
  //We can also add GUIDS based on licensing code if necessary

  const GUID* pFactories[]=
  {
    &CLSID_FileGDBWorkspaceFactory,
    &CLSID_SdeWorkspaceFactory,
    &CLSID_AccessWorkspaceFactory
  };

  CComBSTR connString(conn.c_str()); //not sure if GDAL is sending utf8 or native - check later

  HRESULT hr;

  // try to connect with every factory specified
  //

  for (int i = 0; i < (sizeof(pFactories)/sizeof(pFactories[0])); ++i)
  {
    if (pFactories[i] == NULL) // in case we have conditional factories
      continue;

    IWorkspaceFactoryPtr ipFactory(*pFactories[i]);

    VARIANT_BOOL isWorkspace = VARIANT_FALSE;

    if (FAILED(hr = ipFactory->IsWorkspace(connString, &isWorkspace)) || isWorkspace == VARIANT_FALSE)
      continue; //try next factory

    IWorkspacePtr ipWorkspace = NULL;

    if (FAILED(hr = ipFactory->OpenFromFile(connString, 0, &ipWorkspace)) || ipWorkspace == NULL)
      continue;

    *ppWorkspace = ipWorkspace.Detach();

    return;
  }

  *ppWorkspace = NULL;
}

/************************************************************************
*                           TestCapability()                           *
************************************************************************/

int AODriver::TestCapability( const char * pszCap )

{

  /*
  if (EQUAL(pszCap, ODsCCreateLayer) )
    return FALSE;
    */
  if (EQUAL(pszCap, ODsCDeleteLayer) )
    return TRUE;
  /*
  if (EQUAL(pszCap, ODrCCreateDataSource) )
    return FALSE;
  */

  return FALSE;
}

/************************************************************************
*                           RegisterOGRao()                                 *
************************************************************************/

void RegisterOGRao()

{
  if (! GDAL_CHECK_VERSION("OGR AO"))
    return;
  OGRSFDriverRegistrar::GetRegistrar()->RegisterDriver( new AODriver );
}


text:
/**
 * Check if a predicate returns truthy for any entry of a map.
 *
 * @memberof Map
 * @param {Function} predicate
 * @param {Map} map
 * @return {Boolean}
 */
export function some(predicate, map) {
  for (const entry of map) {
    const value = entry[0];
    const key = entry[1];

    if (predicate(value, key)) {
      return true;
    }
  }

  return false;
}


text:
#pragma strict

/**
 * A series of primitive drawing classes with the aim of simplifying Unity GUI
 * Everything works in screen space co-ordinates from -1.0 to 1.0, with 0.0, 0.0 being the screen center.
 * Aspect ratio is calculated based on height, so the actual width may vary.
 * You can obtain the real width by calling getWidth()
 */

public class SimpleDraw {
	public static function FillRect(x:float, y:float, w:float, h:float) {
		GUI.Box(Rect(SimpleDraw.x(x), SimpleDraw.y(y), SimpleDraw.w(w), SimpleDraw.h(h)), GUIContent.none);
	}
	public static function DrawText(x:float, y:float, w:float, h:float, text:String, style:GUIStyle) {
		GUI.Label(Rect(SimpleDraw.x(x), SimpleDraw.y(y), SimpleDraw.w(w), SimpleDraw.h(h)), text, style);
	}
	public static function CalcTextHeight(text:String, textWidth:float, style:GUIStyle):float {
		return sh(style.CalcHeight(new GUIContent(text + "\n"), w(textWidth)));
	}
	public static function DrawTexture(x:float, y:float, w:float, h:float, texture:Texture) {
		GUI.DrawTexture(Rect(SimpleDraw.x(x), SimpleDraw.y(y), SimpleDraw.w(w), SimpleDraw.h(h)), texture);
	}

	/**
	 * Convert an X screen space co-ordinate onto a resolution dependent one
	 */
	public static function w(x:float):int {
		return Screen.width*((x/aspectRatio())/2);
	}
	public static function x(x:float):int {
		return w(x)+(Screen.width/2.0f);
	}

	public static function h(y:float):int {
		return Screen.height*(y/2.0f);
	}
	public static function sh(y:float):float {
		return (y/(Screen.height*1.0f))*2.0f;
	}
	public static function y(y:float):int {
		return h(y)+(Screen.height/2.0f);
	}

	public static function aspectRatio():float {
		return (Screen.width*1.0f)/(Screen.height*1.0f);
	}

	public static function getWidth():float {
		return 1.0f*aspectRatio();
	}
	public static function getHeight():float {
		return 1.0f;
	}
}


text:
Gameplay {#zooshi_guide_gameplay}
===============

## Gameplay

Zooshi puts the player on an endless river rafting ride to feed sushi to
some hungry, but well-dressed, jungle animals.

While cruising down the river, your goal is to hurl sushi into the mouths of
as many animal patrons as you can!

For each lap around the river, you will notice the minimum number of patrons
that must be feed will increase. Meet (or exceed) the quota for that lap and
the gate will open for another thrilling lap of sushi launching, at a more
extreme speed. However if you do not meet the quota, the gate will not open and
your game will come to an end.

## Controls

### Linux/OS X/Windows

|    Action    |      Key      |
|--------------|---------------|
| Aim Left     | cursor left   |
| Aim Right    | cursor right  |
| Aim Up       | cursor up     |
| Aim Down     | cursor down   |
| Throw Sushi  | left click    |
| Pause/Exit   | Esc           |

### Android

#### Gamepad

[Android TV](http://www.android.com/tv/) supports multiple gamepads. When your
gamepad is paired with the TV, you can use the following controls.

|    Action    | Gamepad Button |
|--------------|----------------|
| Aim Left     | left           |
| Aim Right    | right          |
| Aim Up       | up             |
| Aim Down     | down           |
| Throw Sushi  | A              |
| Pause/Exit   | "back" button  |

#### Touchscreen

When playing on a touchscreen Android device, there are two options for
controls: `gyroscopic` and `onscreen`.

You can toggle between these controls by navigating from the Zooshi menu
to `options`.

**Onscreen**

When playing using `onscreen` controls, you can aim by dragging your finger
along the screen, in the direction you wish to aim. A circular cursor, shown
below, depicts the direction you are currently dragging.

To throw sushi, simply tap on the screen. You can pause/exit by using the back
button.

*Note: You may need to swipe down from the top, or side, of your screen
in order to display the system navigation buttons for your device. This will
depend on your device. Please refer to your specific device's manual for more
information.*

**Gyroscopic**

When playing using `gyroscopic` controls, you can aim by simply tilting the
screen in the corresponding direction. To throw sushi, simply tap on the screen.
You can pause/exit by using the back button.

*Note: You may need to swipe down from the top, or side, of your screen
in order to display the system navigation buttons for your device. This will
depend on your device. Please refer to your specific device's manual for more
information.*