text:
<?php
$servername = "localhost";
$username = "root";
$password = "bitnami";
$dbname = "politilt";

/*$servername = "216.66.104.3";
$username = "politilt";
$password = "N7@d0OrDwoQd";*/

// Create connection
$conn = mysqli_connect($servername, $username, $password, $dbname);

// Check connection
if ($conn->connect_error) {
    die("Connection failed: " . $conn->connect_error);
}

$sql = "SELECT * FROM articles ORDER BY score";
$result = mysqli_query($conn, $sql);
echo "";
echo "
";
echo "Title	";
echo "Tilt	";
echo "Liberal	";
echo "Conservative	";
if (mysqli_num_rows($result) > 0) {
    // output data of each row
    while($row = $result->fetch_assoc()) {
		echo "
";

        echo "" . substr($row["title"],0,60) . " ... 	";
		//echo "link	";
		$r = $row["result"];
		$color = "black";
		if( strcmp($r,"Conservative") == 0 ) $color = "red";
		if( strcmp($r,"Liberal") == 0 ) $color = "blue";
		if( strcmp($r,"Moderate") == 0 ) $color = "grey";
		$rstr = "$r";
		echo "".$rstr."	";
		$lib = $row["liberal"]*100;
		echo "".intval($lib)."%	";
		$con = $row["conservative"]*100;
		echo "".intval($con)."%	";
		echo "
";
    }
	echo "

";
} else {
    //echo "0 results";
}
$conn->close();
echo "";
?>


text:
{% include header.html %}

{% include navigation.html %}

        {{ content }}

{% include footer.html %}

redpajama_set_name: RedPajamaGithub


text:
function Set-DenyWriteAcl {
  [CmdletBinding(SupportsShouldProcess=$true,ConfirmImpact="Medium")]
  param(
    [string] $targetDir = '',
    [string] $action = ''
  )
  if (($action -ine 'Add') -and ($action -ine 'Remove')) {
    Write-Debug "[-] Invalid action in Set-DenyWriteAcl."
    return $false
  }
  if($PSCmdlet.ShouldProcess($targetDir)){
    $acl = Get-Acl $targetDir
    $inheritanceFlag = [System.Security.AccessControl.InheritanceFlags]::ContainerInherit -bor [System.Security.AccessControl.InheritanceFlags]::ObjectInherit
    $propagationFlag = [System.Security.AccessControl.PropagationFlags]::None
    $permType = [System.Security.AccessControl.AccessControlType]::Deny

    $permission = "everyone","write",$inheritanceFlag,$propagationFlag,$permType
    $accessRule = New-Object System.Security.AccessControl.FileSystemAccessRule $permission
    # We only support adding or removing the ACL
    if ($action -ieq 'add') {
      $acl.SetAccessRule($accessRule)
    } else {
      $acl.RemoveAccessRule($accessRule)
    }
    $acl | Set-Acl $targetDir
    return $true
  }
  return $false
}


text:
namespace of {
namespace Sketch {

/// \brief A simple base class for system call tasks.
///
/// Progress callbacks and custom data events are the responsibility of the
/// subclass.
class BaseProcessTask: public Poco::Task
{
public:
    BaseProcessTask(const std::string& name,
                    const std::string& command,
                    const std::vector<std::string>& args = std::vector<std::string>(),
                    std::size_t bufferSize = DEFAULT_BUFFER_SIZE);

    virtual ~BaseProcessTask();

    virtual void runTask();

    virtual void processLine(const std::string& line) = 0;

    enum
    {
        DEFAULT_BUFFER_SIZE = 8192
    };

protected:
    std::string _command;

    std::vector<std::string> _args;

    std::size_t _bufferSize;
};

} } // namespace of::Sketch


text:
#include "datatypes.h"
#include "sgx_eid.h"
#include "sgx_trts.h"
#include <map>
#include "dh_session_protocol.h"

#ifndef LOCALATTESTATION_H_
#define LOCALATTESTATION_H_

#ifdef __cplusplus
extern "C" {
#endif

uint32_t SGXAPI create_session(sgx_enclave_id_t src_enclave_id, sgx_enclave_id_t dest_enclave_id, dh_session_t *p_session_info);
uint32_t SGXAPI send_request_receive_response(sgx_enclave_id_t src_enclave_id, sgx_enclave_id_t dest_enclave_id, dh_session_t *p_session_info, char *inp_buff, size_t inp_buff_len, size_t max_out_buff_size, char **out_buff, size_t* out_buff_len);
uint32_t SGXAPI close_session(sgx_enclave_id_t src_enclave_id, sgx_enclave_id_t dest_enclave_id);

#ifdef __cplusplus
}
#endif

#endif


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

	<meta HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=utf-8">

	<meta name="description" content=" Click the '...' button to display the calendar. Notice that you can set the time at the bottom of the calendar. You cannot select Sundays. Select any Friday of the month. On Fridays you cannot set times earlier than 08:00 and later than 21:45. On Saturdays you can set only times between 11:00 and 17:00. Select any day of the month except Friday, Saturday or Sunday. You can set any time you want. Set the time to 23:00, and change the day to a Saturday. Notice that the time automatically scrolls past 11:00, since that is the earliest valid time for that day. ">
	<meta name="keywords" content="dhtml tools,javascript,DHTML Tools,Javascript,ajax,AJAX,Ajax,ajax tools,AJAX Tools,tools controls,simple javascript tools">
	<title>Zapatec DHTML Calendar Widget - Limit Time and Day Selection</title>

	<link href="../../website/css/zpcal.css" rel="stylesheet" type="text/css">
	<link href="../../website/css/template.css" rel="stylesheet" type="text/css">

	<link href="../themes/wood.css" rel="stylesheet" type="text/css">

	<link rel="SHORTCUT ICON" href="http://www.zapatec.com/website/main/favicon.ico">

Limit Time and Day Selection

This demo uses the wood theme.

 Click the '...' button to display the calendar. Notice that you can set the time at the bottom of the calendar.

 You cannot select Sundays.

 Select any Friday of the month.

On Fridays you cannot set times earlier than 08:00 and later than 21:45.

 On Saturdays you can set only times between 11:00 and 17:00.

 Select any day of the month except Friday, Saturday or Sunday.

 You can set any time you want.

 Set the time to 23:00, and change the day to a Saturday. Notice that the time
		automatically scrolls past 11:00, since that is the earliest valid time for that
		day.

Date :
<input type="text" name="date9" id="sel9" size="30">
<input type="reset" value=" ... " id='button9' onclick="setActiveStyleSheet(this, 'win2k-1');">

		This page uses an
		AJAX Component - Zapatec DHTML Calendar Widget, but your browser does not support Javascript.

		© 2004-2007  Zapatec, Inc.


text:
package com.burning.iplay.ui.comment;

import android.os.Build;

import com.burning.iplay.R;
import com.burning.iplay.base.BaseActivity;

/**
 * @author Kiven
 * @time 2017-3-7  9:37
 * Email f842728368@163.com
 * @desc 评论界面的Activity,负责显示Fragment
 */
public class CommentActivity extends BaseActivity {

    public static final String COMMENT_DOC_ID = "comment_doc_id";

    @Override
    protected int getLayoutResId() {
        return R.layout.activity_commom;
    }

    @Override
    protected void initUI() {
        if (Build.VERSION.SDK_INT >= 21) {
            getWindow().setStatusBarColor(getResources().getColor(R.color.colorWhite));
        }
        String docId = getIntent().getStringExtra(COMMENT_DOC_ID);
        CommentFragment commentFragment = new CommentFragment();
        commentFragment.setDocId(docId);
        getSupportFragmentManager().beginTransaction().replace(R.id.activity_fl, commentFragment).commit();
    }

    @Override
    protected void requestPermissionSucceed() {
    }
}


text:
package ip_neighbor

import (
	"strconv"

	api "git.fd.io/govpp.git/api"
	codec "git.fd.io/govpp.git/codec"
	ethernet_types "go.ligato.io/vpp-agent/v3/plugins/vpp/binapi/vpp2106/ethernet_types"
	interface_types "go.ligato.io/vpp-agent/v3/plugins/vpp/binapi/vpp2106/interface_types"
	ip_types "go.ligato.io/vpp-agent/v3/plugins/vpp/binapi/vpp2106/ip_types"
)

// This is a compile-time assertion to ensure that this generated file
// is compatible with the GoVPP api package it is being compiled against.
// A compilation error at this line likely means your copy of the
// GoVPP api package needs to be updated.
const _ = api.GoVppAPIPackageIsVersion2

const (
	APIFile    = "ip_neighbor"
	APIVersion = "1.0.0"
	VersionCrc = 0xfde4a69a
)

// IPNeighborEventFlags defines enum 'ip_neighbor_event_flags'.
type IPNeighborEventFlags uint32

const (
	IP_NEIGHBOR_API_EVENT_FLAG_ADDED   IPNeighborEventFlags = 1
	IP_NEIGHBOR_API_EVENT_FLAG_REMOVED IPNeighborEventFlags = 2
)

var (
	IPNeighborEventFlags_name = map[uint32]string{
		1: "IP_NEIGHBOR_API_EVENT_FLAG_ADDED",
		2: "IP_NEIGHBOR_API_EVENT_FLAG_REMOVED",
	}
	IPNeighborEventFlags_value = map[string]uint32{
		"IP_NEIGHBOR_API_EVENT_FLAG_ADDED":   1,
		"IP_NEIGHBOR_API_EVENT_FLAG_REMOVED": 2,
	}
)

func (x IPNeighborEventFlags) String() string {
	s, ok := IPNeighborEventFlags_name[uint32(x)]
	if ok {
		return s
	}
	str := func(n uint32) string {
		s, ok := IPNeighborEventFlags_name[uint32(n)]
		if ok {
			return s
		}
		return "IPNeighborEventFlags(" + strconv.Itoa(int(n)) + ")"
	}
	for i := uint32(0); i <= 32; i++ {
		val := uint32(x)
		if val&(1<<i) != 0 {
			if s != "" {
				s += "|"
			}
			s += str(1 << i)
		}
	}
	if s == "" {
		return str(uint32(x))
	}
	return s
}

// IPNeighborFlags defines enum 'ip_neighbor_flags'.
type IPNeighborFlags uint8

const (
	IP_API_NEIGHBOR_FLAG_NONE         IPNeighborFlags = 0
	IP_API_NEIGHBOR_FLAG_STATIC       IPNeighborFlags = 1
	IP_API_NEIGHBOR_FLAG_NO_FIB_ENTRY IPNeighborFlags = 2
)

var (
	IPNeighborFlags_name = map[uint8]string{
		0: "IP_API_NEIGHBOR_FLAG_NONE",
		1: "IP_API_NEIGHBOR_FLAG_STATIC",
		2: "IP_API_NEIGHBOR_FLAG_NO_FIB_ENTRY",
	}
	IPNeighborFlags_value = map[string]uint8{
		"IP_API_NEIGHBOR_FLAG_NONE":         0,
		"IP_API_NEIGHBOR_FLAG_STATIC":       1,
		"IP_API_NEIGHBOR_FLAG_NO_FIB_ENTRY": 2,
	}
)

func (x IPNeighborFlags) String() string {
	s, ok := IPNeighborFlags_name[uint8(x)]
	if ok {
		return s
	}
	str := func(n uint8) string {
		s, ok := IPNeighborFlags_name[uint8(n)]
		if ok {
			return s
		}
		return "IPNeighborFlags(" + strconv.Itoa(int(n)) + ")"
	}
	for i := uint8(0); i <= 8; i++ {
		val := uint8(x)
		if val&(1<<i) != 0 {
			if s != "" {
				s += "|"
			}
			s += str(1 << i)
		}
	}
	if s == "" {
		return str(uint8(x))
	}
	return s
}

// IPNeighbor defines type 'ip_neighbor'.
type IPNeighbor struct {
	SwIfIndex  interface_types.InterfaceIndex `binapi:"interface_index,name=sw_if_index" json:"sw_if_index,omitempty"`
	Flags      IPNeighborFlags                `binapi:"ip_neighbor_flags,name=flags" json:"flags,omitempty"`
	MacAddress ethernet_types.MacAddress      `binapi:"mac_address,name=mac_address" json:"mac_address,omitempty"`
	IPAddress  ip_types.Address               `binapi:"address,name=ip_address" json:"ip_address,omitempty"`
}

// IPNeighborAddDel defines message 'ip_neighbor_add_del'.
type IPNeighborAddDel struct {
	IsAdd    bool       `binapi:"bool,name=is_add" json:"is_add,omitempty"`
	Neighbor IPNeighbor `binapi:"ip_neighbor,name=neighbor" json:"neighbor,omitempty"`
}

func (m *IPNeighborAddDel) Reset()               { *m = IPNeighborAddDel{} }
func (*IPNeighborAddDel) GetMessageName() string { return "ip_neighbor_add_del" }
func (*IPNeighborAddDel) GetCrcString() string   { return "0607c257" }
func (*IPNeighborAddDel) GetMessageType() api.MessageType {
	return api.RequestMessage
}

func (m *IPNeighborAddDel) Size() (size int) {
	if m == nil {
		return 0
	}
	size += 1      // m.IsAdd
	size += 4      // m.Neighbor.SwIfIndex
	size += 1      // m.Neighbor.Flags
	size += 1 * 6  // m.Neighbor.MacAddress
	size += 1      // m.Neighbor.IPAddress.Af
	size += 1 * 16 // m.Neighbor.IPAddress.Un
	return size
}
func (m *IPNeighborAddDel) Marshal(b []byte) ([]byte, error) {
	if b == nil {
		b = make([]byte, m.Size())
	}
	buf := codec.NewBuffer(b)
	buf.EncodeBool(m.IsAdd)
	buf.EncodeUint32(uint32(m.Neighbor.SwIfIndex))
	buf.EncodeUint8(uint8(m.Neighbor.Flags))
	buf.EncodeBytes(m.Neighbor.MacAddress[:], 6)
	buf.EncodeUint8(uint8(m.Neighbor.IPAddress.Af))
	buf.EncodeBytes(m.Neighbor.IPAddress.Un.XXX_UnionData[:], 16)
	return buf.Bytes(), nil
}
func (m *IPNeighborAddDel) Unmarshal(b []byte) error {
	buf := codec.NewBuffer(b)
	m.IsAdd = buf.DecodeBool()
	m.Neighbor.SwIfIndex = interface_types.InterfaceIndex(buf.DecodeUint32())
	m.Neighbor.Flags = IPNeighborFlags(buf.DecodeUint8())
	copy(m.Neighbor.MacAddress[:], buf.DecodeBytes(6))
	m.Neighbor.IPAddress.Af = ip_types.AddressFamily(buf.DecodeUint8())
	copy(m.Neighbor.IPAddress.Un.XXX_UnionData[:], buf.DecodeBytes(16))
	return nil
}

// IPNeighborAddDelReply defines message 'ip_neighbor_add_del_reply'.
type IPNeighborAddDelReply struct {
	Retval     int32  `binapi:"i32,name=retval" json:"retval,omitempty"`
	StatsIndex uint32 `binapi:"u32,name=stats_index" json:"stats_index,omitempty"`
}

func (m *IPNeighborAddDelReply) Reset()               { *m = IPNeighborAddDelReply{} }
func (*IPNeighborAddDelReply) GetMessageName() string { return "ip_neighbor_add_del_reply" }
func (*IPNeighborAddDelReply) GetCrcString() string   { return "1992deab" }
func (*IPNeighborAddDelReply) GetMessageType() api.MessageType {
	return api.ReplyMessage
}

func (m *IPNeighborAddDelReply) Size() (size int) {
	if m == nil {
		return 0
	}
	size += 4 // m.Retval
	size += 4 // m.StatsIndex
	return size
}
func (m *IPNeighborAddDelReply) Marshal(b []byte) ([]byte, error) {
	if b == nil {
		b = make([]byte, m.Size())
	}
	buf := codec.NewBuffer(b)
	buf.EncodeInt32(m.Retval)
	buf.EncodeUint32(m.StatsIndex)
	return buf.Bytes(), nil
}
func (m *IPNeighborAddDelReply) Unmarshal(b []byte) error {
	buf := codec.NewBuffer(b)
	m.Retval = buf.DecodeInt32()
	m.StatsIndex = buf.DecodeUint32()
	return nil
}

// IPNeighborConfig defines message 'ip_neighbor_config'.
type IPNeighborConfig struct {
	Af        ip_types.AddressFamily `binapi:"address_family,name=af" json:"af,omitempty"`
	MaxNumber uint32                 `binapi:"u32,name=max_number" json:"max_number,omitempty"`
	MaxAge    uint32                 `binapi:"u32,name=max_age" json:"max_age,omitempty"`
	Recycle   bool                   `binapi:"bool,name=recycle" json:"recycle,omitempty"`
}

func (m *IPNeighborConfig) Reset()               { *m = IPNeighborConfig{} }
func (*IPNeighborConfig) GetMessageName() string { return "ip_neighbor_config" }
func (*IPNeighborConfig) GetCrcString() string   { return "f4a5cf44" }
func (*IPNeighborConfig) GetMessageType() api.MessageType {
	return api.RequestMessage
}

func (m *IPNeighborConfig) Size() (size int) {
	if m == nil {
		return 0
	}
	size += 1 // m.Af
	size += 4 // m.MaxNumber
	size += 4 // m.MaxAge
	size += 1 // m.Recycle
	return size
}
func (m *IPNeighborConfig) Marshal(b []byte) ([]byte, error) {
	if b == nil {
		b = make([]byte, m.Size())
	}
	buf := codec.NewBuffer(b)
	buf.EncodeUint8(uint8(m.Af))
	buf.EncodeUint32(m.MaxNumber)
	buf.EncodeUint32(m.MaxAge)
	buf.EncodeBool(m.Recycle)
	return buf.Bytes(), nil
}
func (m *IPNeighborConfig) Unmarshal(b []byte) error {
	buf := codec.NewBuffer(b)
	m.Af = ip_types.AddressFamily(buf.DecodeUint8())
	m.MaxNumber = buf.DecodeUint32()
	m.MaxAge = buf.DecodeUint32()
	m.Recycle = buf.DecodeBool()
	return nil
}

// IPNeighborConfigReply defines message 'ip_neighbor_config_reply'.
type IPNeighborConfigReply struct {
	Retval int32 `binapi:"i32,name=retval" json:"retval,omitempty"`
}

func (m *IPNeighborConfigReply) Reset()               { *m = IPNeighborConfigReply{} }
func (*IPNeighborConfigReply) GetMessageName() string { return "ip_neighbor_config_reply" }
func (*IPNeighborConfigReply) GetCrcString() string   { return "e8d4e804" }
func (*IPNeighborConfigReply) GetMessageType() api.MessageType {
	return api.ReplyMessage
}

func (m *IPNeighborConfigReply) Size() (size int) {
	if m == nil {
		return 0
	}
	size += 4 // m.Retval
	return size
}
func (m *IPNeighborConfigReply) Marshal(b []byte) ([]byte, error) {
	if b == nil {
		b = make([]byte, m.Size())
	}
	buf := codec.NewBuffer(b)
	buf.EncodeInt32(m.Retval)
	return buf.Bytes(), nil
}
func (m *IPNeighborConfigReply) Unmarshal(b []byte) error {
	buf := codec.NewBuffer(b)
	m.Retval = buf.DecodeInt32()
	return nil
}

// IPNeighborDetails defines message 'ip_neighbor_details'.
type IPNeighborDetails struct {
	Age      float64    `binapi:"f64,name=age" json:"age,omitempty"`
	Neighbor IPNeighbor `binapi:"ip_neighbor,name=neighbor" json:"neighbor,omitempty"`
}

func (m *IPNeighborDetails) Reset()               { *m = IPNeighborDetails{} }
func (*IPNeighborDetails) GetMessageName() string { return "ip_neighbor_details" }
func (*IPNeighborDetails) GetCrcString() string   { return "e29d79f0" }
func (*IPNeighborDetails) GetMessageType() api.MessageType {
	return api.ReplyMessage
}

func (m *IPNeighborDetails) Size() (size int) {
	if m == nil {
		return 0
	}
	size += 8      // m.Age
	size += 4      // m.Neighbor.SwIfIndex
	size += 1      // m.Neighbor.Flags
	size += 1 * 6  // m.Neighbor.MacAddress
	size += 1      // m.Neighbor.IPAddress.Af
	size += 1 * 16 // m.Neighbor.IPAddress.Un
	return size
}
func (m *IPNeighborDetails) Marshal(b []byte) ([]byte, error) {
	if b == nil {
		b = make([]byte, m.Size())
	}
	buf := codec.NewBuffer(b)
	buf.EncodeFloat64(m.Age)
	buf.EncodeUint32(uint32(m.Neighbor.SwIfIndex))
	buf.EncodeUint8(uint8(m.Neighbor.Flags))
	buf.EncodeBytes(m.Neighbor.MacAddress[:], 6)
	buf.EncodeUint8(uint8(m.Neighbor.IPAddress.Af))
	buf.EncodeBytes(m.Neighbor.IPAddress.Un.XXX_UnionData[:], 16)
	return buf.Bytes(), nil
}
func (m *IPNeighborDetails) Unmarshal(b []byte) error {
	buf := codec.NewBuffer(b)
	m.Age = buf.DecodeFloat64()
	m.Neighbor.SwIfIndex = interface_types.InterfaceIndex(buf.DecodeUint32())
	m.Neighbor.Flags = IPNeighborFlags(buf.DecodeUint8())
	copy(m.Neighbor.MacAddress[:], buf.DecodeBytes(6))
	m.Neighbor.IPAddress.Af = ip_types.AddressFamily(buf.DecodeUint8())
	copy(m.Neighbor.IPAddress.Un.XXX_UnionData[:], buf.DecodeBytes(16))
	return nil
}

// IPNeighborDump defines message 'ip_neighbor_dump'.
type IPNeighborDump struct {
	SwIfIndex interface_types.InterfaceIndex `binapi:"interface_index,name=sw_if_index,default=4294967295" json:"sw_if_index,omitempty"`
	Af        ip_types.AddressFamily         `binapi:"address_family,name=af" json:"af,omitempty"`
}

func (m *IPNeighborDump) Reset()               { *m = IPNeighborDump{} }
func (*IPNeighborDump) GetMessageName() string { return "ip_neighbor_dump" }
func (*IPNeighborDump) GetCrcString() string   { return "d817a484" }
func (*IPNeighborDump) GetMessageType() api.MessageType {
	return api.RequestMessage
}

func (m *IPNeighborDump) Size() (size int) {
	if m == nil {
		return 0
	}
	size += 4 // m.SwIfIndex
	size += 1 // m.Af
	return size
}
func (m *IPNeighborDump) Marshal(b []byte) ([]byte, error) {
	if b == nil {
		b = make([]byte, m.Size())
	}
	buf := codec.NewBuffer(b)
	buf.EncodeUint32(uint32(m.SwIfIndex))
	buf.EncodeUint8(uint8(m.Af))
	return buf.Bytes(), nil
}
func (m *IPNeighborDump) Unmarshal(b []byte) error {
	buf := codec.NewBuffer(b)
	m.SwIfIndex = interface_types.InterfaceIndex(buf.DecodeUint32())
	m.Af = ip_types.AddressFamily(buf.DecodeUint8())
	return nil
}

// IPNeighborEvent defines message 'ip_neighbor_event'.
// Deprecated: the message will be removed in the future versions
type IPNeighborEvent struct {
	PID      uint32     `binapi:"u32,name=pid" json:"pid,omitempty"`
	Neighbor IPNeighbor `binapi:"ip_neighbor,name=neighbor" json:"neighbor,omitempty"`
}

func (m *IPNeighborEvent) Reset()               { *m = IPNeighborEvent{} }
func (*IPNeighborEvent) GetMessageName() string { return "ip_neighbor_event" }
func (*IPNeighborEvent) GetCrcString() string   { return "bdb092b2" }
func (*IPNeighborEvent) GetMessageType() api.MessageType {
	return api.EventMessage
}

func (m *IPNeighborEvent) Size() (size int) {
	if m == nil {
		return 0
	}
	size += 4      // m.PID
	size += 4      // m.Neighbor.SwIfIndex
	size += 1      // m.Neighbor.Flags
	size += 1 * 6  // m.Neighbor.MacAddress
	size += 1      // m.Neighbor.IPAddress.Af
	size += 1 * 16 // m.Neighbor.IPAddress.Un
	return size
}
func (m *IPNeighborEvent) Marshal(b []byte) ([]byte, error) {
	if b == nil {
		b = make([]byte, m.Size())
	}
	buf := codec.NewBuffer(b)
	buf.EncodeUint32(m.PID)
	buf.EncodeUint32(uint32(m.Neighbor.SwIfIndex))
	buf.EncodeUint8(uint8(m.Neighbor.Flags))
	buf.EncodeBytes(m.Neighbor.MacAddress[:], 6)
	buf.EncodeUint8(uint8(m.Neighbor.IPAddress.Af))
	buf.EncodeBytes(m.Neighbor.IPAddress.Un.XXX_UnionData[:], 16)
	return buf.Bytes(), nil
}
func (m *IPNeighborEvent) Unmarshal(b []byte) error {
	buf := codec.NewBuffer(b)
	m.PID = buf.DecodeUint32()
	m.Neighbor.SwIfIndex = interface_types.InterfaceIndex(buf.DecodeUint32())
	m.Neighbor.Flags = IPNeighborFlags(buf.DecodeUint8())
	copy(m.Neighbor.MacAddress[:], buf.DecodeBytes(6))
	m.Neighbor.IPAddress.Af = ip_types.AddressFamily(buf.DecodeUint8())
	copy(m.Neighbor.IPAddress.Un.XXX_UnionData[:], buf.DecodeBytes(16))
	return nil
}

// IPNeighborEventV2 defines message 'ip_neighbor_event_v2'.
type IPNeighborEventV2 struct {
	PID      uint32               `binapi:"u32,name=pid" json:"pid,omitempty"`
	Flags    IPNeighborEventFlags `binapi:"ip_neighbor_event_flags,name=flags" json:"flags,omitempty"`
	Neighbor IPNeighbor           `binapi:"ip_neighbor,name=neighbor" json:"neighbor,omitempty"`
}

func (m *IPNeighborEventV2) Reset()               { *m = IPNeighborEventV2{} }
func (*IPNeighborEventV2) GetMessageName() string { return "ip_neighbor_event_v2" }
func (*IPNeighborEventV2) GetCrcString() string   { return "c1d53dc0" }
func (*IPNeighborEventV2) GetMessageType() api.MessageType {
	return api.EventMessage
}

func (m *IPNeighborEventV2) Size() (size int) {
	if m == nil {
		return 0
	}
	size += 4      // m.PID
	size += 4      // m.Flags
	size += 4      // m.Neighbor.SwIfIndex
	size += 1      // m.Neighbor.Flags
	size += 1 * 6  // m.Neighbor.MacAddress
	size += 1      // m.Neighbor.IPAddress.Af
	size += 1 * 16 // m.Neighbor.IPAddress.Un
	return size
}
func (m *IPNeighborEventV2) Marshal(b []byte) ([]byte, error) {
	if b == nil {
		b = make([]byte, m.Size())
	}
	buf := codec.NewBuffer(b)
	buf.EncodeUint32(m.PID)
	buf.EncodeUint32(uint32(m.Flags))
	buf.EncodeUint32(uint32(m.Neighbor.SwIfIndex))
	buf.EncodeUint8(uint8(m.Neighbor.Flags))
	buf.EncodeBytes(m.Neighbor.MacAddress[:], 6)
	buf.EncodeUint8(uint8(m.Neighbor.IPAddress.Af))
	buf.EncodeBytes(m.Neighbor.IPAddress.Un.XXX_UnionData[:], 16)
	return buf.Bytes(), nil
}
func (m *IPNeighborEventV2) Unmarshal(b []byte) error {
	buf := codec.NewBuffer(b)
	m.PID = buf.DecodeUint32()
	m.Flags = IPNeighborEventFlags(buf.DecodeUint32())
	m.Neighbor.SwIfIndex = interface_types.InterfaceIndex(buf.DecodeUint32())
	m.Neighbor.Flags = IPNeighborFlags(buf.DecodeUint8())
	copy(m.Neighbor.MacAddress[:], buf.DecodeBytes(6))
	m.Neighbor.IPAddress.Af = ip_types.AddressFamily(buf.DecodeUint8())
	copy(m.Neighbor.IPAddress.Un.XXX_UnionData[:], buf.DecodeBytes(16))
	return nil
}

// IPNeighborFlush defines message 'ip_neighbor_flush'.
type IPNeighborFlush struct {
	Af        ip_types.AddressFamily         `binapi:"address_family,name=af" json:"af,omitempty"`
	SwIfIndex interface_types.InterfaceIndex `binapi:"interface_index,name=sw_if_index,default=4294967295" json:"sw_if_index,omitempty"`
}

func (m *IPNeighborFlush) Reset()               { *m = IPNeighborFlush{} }
func (*IPNeighborFlush) GetMessageName() string { return "ip_neighbor_flush" }
func (*IPNeighborFlush) GetCrcString() string   { return "16aa35d2" }
func (*IPNeighborFlush) GetMessageType() api.MessageType {
	return api.RequestMessage
}

func (m *IPNeighborFlush) Size() (size int) {
	if m == nil {
		return 0
	}
	size += 1 // m.Af
	size += 4 // m.SwIfIndex
	return size
}
func (m *IPNeighborFlush) Marshal(b []byte) ([]byte, error) {
	if b == nil {
		b = make([]byte, m.Size())
	}
	buf := codec.NewBuffer(b)
	buf.EncodeUint8(uint8(m.Af))
	buf.EncodeUint32(uint32(m.SwIfIndex))
	return buf.Bytes(), nil
}
func (m *IPNeighborFlush) Unmarshal(b []byte) error {
	buf := codec.NewBuffer(b)
	m.Af = ip_types.AddressFamily(buf.DecodeUint8())
	m.SwIfIndex = interface_types.InterfaceIndex(buf.DecodeUint32())
	return nil
}

// IPNeighborFlushReply defines message 'ip_neighbor_flush_reply'.
type IPNeighborFlushReply struct {
	Retval int32 `binapi:"i32,name=retval" json:"retval,omitempty"`
}

func (m *IPNeighborFlushReply) Reset()               { *m = IPNeighborFlushReply{} }
func (*IPNeighborFlushReply) GetMessageName() string { return "ip_neighbor_flush_reply" }
func (*IPNeighborFlushReply) GetCrcString() string   { return "e8d4e804" }
func (*IPNeighborFlushReply) GetMessageType() api.MessageType {
	return api.ReplyMessage
}

func (m *IPNeighborFlushReply) Size() (size int) {
	if m == nil {
		return 0
	}
	size += 4 // m.Retval
	return size
}
func (m *IPNeighborFlushReply) Marshal(b []byte) ([]byte, error) {
	if b == nil {
		b = make([]byte, m.Size())
	}
	buf := codec.NewBuffer(b)
	buf.EncodeInt32(m.Retval)
	return buf.Bytes(), nil
}
func (m *IPNeighborFlushReply) Unmarshal(b []byte) error {
	buf := codec.NewBuffer(b)
	m.Retval = buf.DecodeInt32()
	return nil
}

// IPNeighborReplaceBegin defines message 'ip_neighbor_replace_begin'.
type IPNeighborReplaceBegin struct{}

func (m *IPNeighborReplaceBegin) Reset()               { *m = IPNeighborReplaceBegin{} }
func (*IPNeighborReplaceBegin) GetMessageName() string { return "ip_neighbor_replace_begin" }
func (*IPNeighborReplaceBegin) GetCrcString() string   { return "51077d14" }
func (*IPNeighborReplaceBegin) GetMessageType() api.MessageType {
	return api.RequestMessage
}

func (m *IPNeighborReplaceBegin) Size() (size int) {
	if m == nil {
		return 0
	}
	return size
}
func (m *IPNeighborReplaceBegin) Marshal(b []byte) ([]byte, error) {
	if b == nil {
		b = make([]byte, m.Size())
	}
	buf := codec.NewBuffer(b)
	return buf.Bytes(), nil
}
func (m *IPNeighborReplaceBegin) Unmarshal(b []byte) error {
	return nil
}

// IPNeighborReplaceBeginReply defines message 'ip_neighbor_replace_begin_reply'.
type IPNeighborReplaceBeginReply struct {
	Retval int32 `binapi:"i32,name=retval" json:"retval,omitempty"`
}

func (m *IPNeighborReplaceBeginReply) Reset()               { *m = IPNeighborReplaceBeginReply{} }
func (*IPNeighborReplaceBeginReply) GetMessageName() string { return "ip_neighbor_replace_begin_reply" }
func (*IPNeighborReplaceBeginReply) GetCrcString() string   { return "e8d4e804" }
func (*IPNeighborReplaceBeginReply) GetMessageType() api.MessageType {
	return api.ReplyMessage
}

func (m *IPNeighborReplaceBeginReply) Size() (size int) {
	if m == nil {
		return 0
	}
	size += 4 // m.Retval
	return size
}
func (m *IPNeighborReplaceBeginReply) Marshal(b []byte) ([]byte, error) {
	if b == nil {
		b = make([]byte, m.Size())
	}
	buf := codec.NewBuffer(b)
	buf.EncodeInt32(m.Retval)
	return buf.Bytes(), nil
}
func (m *IPNeighborReplaceBeginReply) Unmarshal(b []byte) error {
	buf := codec.NewBuffer(b)
	m.Retval = buf.DecodeInt32()
	return nil
}

// IPNeighborReplaceEnd defines message 'ip_neighbor_replace_end'.
type IPNeighborReplaceEnd struct{}

func (m *IPNeighborReplaceEnd) Reset()               { *m = IPNeighborReplaceEnd{} }
func (*IPNeighborReplaceEnd) GetMessageName() string { return "ip_neighbor_replace_end" }
func (*IPNeighborReplaceEnd) GetCrcString() string   { return "51077d14" }
func (*IPNeighborReplaceEnd) GetMessageType() api.MessageType {
	return api.RequestMessage
}

func (m *IPNeighborReplaceEnd) Size() (size int) {
	if m == nil {
		return 0
	}
	return size
}
func (m *IPNeighborReplaceEnd) Marshal(b []byte) ([]byte, error) {
	if b == nil {
		b = make([]byte, m.Size())
	}
	buf := codec.NewBuffer(b)
	return buf.Bytes(), nil
}
func (m *IPNeighborReplaceEnd) Unmarshal(b []byte) error {
	return nil
}

// IPNeighborReplaceEndReply defines message 'ip_neighbor_replace_end_reply'.
type IPNeighborReplaceEndReply struct {
	Retval int32 `binapi:"i32,name=retval" json:"retval,omitempty"`
}

func (m *IPNeighborReplaceEndReply) Reset()               { *m = IPNeighborReplaceEndReply{} }
func (*IPNeighborReplaceEndReply) GetMessageName() string { return "ip_neighbor_replace_end_reply" }
func (*IPNeighborReplaceEndReply) GetCrcString() string   { return "e8d4e804" }
func (*IPNeighborReplaceEndReply) GetMessageType() api.MessageType {
	return api.ReplyMessage
}

func (m *IPNeighborReplaceEndReply) Size() (size int) {
	if m == nil {
		return 0
	}
	size += 4 // m.Retval
	return size
}
func (m *IPNeighborReplaceEndReply) Marshal(b []byte) ([]byte, error) {
	if b == nil {
		b = make([]byte, m.Size())
	}
	buf := codec.NewBuffer(b)
	buf.EncodeInt32(m.Retval)
	return buf.Bytes(), nil
}
func (m *IPNeighborReplaceEndReply) Unmarshal(b []byte) error {
	buf := codec.NewBuffer(b)
	m.Retval = buf.DecodeInt32()
	return nil
}

// WantIPNeighborEvents defines message 'want_ip_neighbor_events'.
// Deprecated: the message will be removed in the future versions
type WantIPNeighborEvents struct {
	Enable    bool                           `binapi:"bool,name=enable" json:"enable,omitempty"`
	PID       uint32                         `binapi:"u32,name=pid" json:"pid,omitempty"`
	IP        ip_types.Address               `binapi:"address,name=ip" json:"ip,omitempty"`
	SwIfIndex interface_types.InterfaceIndex `binapi:"interface_index,name=sw_if_index,default=4294967295" json:"sw_if_index,omitempty"`
}

func (m *WantIPNeighborEvents) Reset()               { *m = WantIPNeighborEvents{} }
func (*WantIPNeighborEvents) GetMessageName() string { return "want_ip_neighbor_events" }
func (*WantIPNeighborEvents) GetCrcString() string   { return "73e70a86" }
func (*WantIPNeighborEvents) GetMessageType() api.MessageType {
	return api.RequestMessage
}

func (m *WantIPNeighborEvents) Size() (size int) {
	if m == nil {
		return 0
	}
	size += 1      // m.Enable
	size += 4      // m.PID
	size += 1      // m.IP.Af
	size += 1 * 16 // m.IP.Un
	size += 4      // m.SwIfIndex
	return size
}
func (m *WantIPNeighborEvents) Marshal(b []byte) ([]byte, error) {
	if b == nil {
		b = make([]byte, m.Size())
	}
	buf := codec.NewBuffer(b)
	buf.EncodeBool(m.Enable)
	buf.EncodeUint32(m.PID)
	buf.EncodeUint8(uint8(m.IP.Af))
	buf.EncodeBytes(m.IP.Un.XXX_UnionData[:], 16)
	buf.EncodeUint32(uint32(m.SwIfIndex))
	return buf.Bytes(), nil
}
func (m *WantIPNeighborEvents) Unmarshal(b []byte) error {
	buf := codec.NewBuffer(b)
	m.Enable = buf.DecodeBool()
	m.PID = buf.DecodeUint32()
	m.IP.Af = ip_types.AddressFamily(buf.DecodeUint8())
	copy(m.IP.Un.XXX_UnionData[:], buf.DecodeBytes(16))
	m.SwIfIndex = interface_types.InterfaceIndex(buf.DecodeUint32())
	return nil
}

// WantIPNeighborEventsReply defines message 'want_ip_neighbor_events_reply'.
// Deprecated: the message will be removed in the future versions
type WantIPNeighborEventsReply struct {
	Retval int32 `binapi:"i32,name=retval" json:"retval,omitempty"`
}

func (m *WantIPNeighborEventsReply) Reset()               { *m = WantIPNeighborEventsReply{} }
func (*WantIPNeighborEventsReply) GetMessageName() string { return "want_ip_neighbor_events_reply" }
func (*WantIPNeighborEventsReply) GetCrcString() string   { return "e8d4e804" }
func (*WantIPNeighborEventsReply) GetMessageType() api.MessageType {
	return api.ReplyMessage
}

func (m *WantIPNeighborEventsReply) Size() (size int) {
	if m == nil {
		return 0
	}
	size += 4 // m.Retval
	return size
}
func (m *WantIPNeighborEventsReply) Marshal(b []byte) ([]byte, error) {
	if b == nil {
		b = make([]byte, m.Size())
	}
	buf := codec.NewBuffer(b)
	buf.EncodeInt32(m.Retval)
	return buf.Bytes(), nil
}
func (m *WantIPNeighborEventsReply) Unmarshal(b []byte) error {
	buf := codec.NewBuffer(b)
	m.Retval = buf.DecodeInt32()
	return nil
}

// WantIPNeighborEventsV2 defines message 'want_ip_neighbor_events_v2'.
type WantIPNeighborEventsV2 struct {
	Enable    bool                           `binapi:"bool,name=enable" json:"enable,omitempty"`
	PID       uint32                         `binapi:"u32,name=pid" json:"pid,omitempty"`
	IP        ip_types.Address               `binapi:"address,name=ip" json:"ip,omitempty"`
	SwIfIndex interface_types.InterfaceIndex `binapi:"interface_index,name=sw_if_index,default=4294967295" json:"sw_if_index,omitempty"`
}

func (m *WantIPNeighborEventsV2) Reset()               { *m = WantIPNeighborEventsV2{} }
func (*WantIPNeighborEventsV2) GetMessageName() string { return "want_ip_neighbor_events_v2" }
func (*WantIPNeighborEventsV2) GetCrcString() string   { return "73e70a86" }
func (*WantIPNeighborEventsV2) GetMessageType() api.MessageType {
	return api.RequestMessage
}

func (m *WantIPNeighborEventsV2) Size() (size int) {
	if m == nil {
		return 0
	}
	size += 1      // m.Enable
	size += 4      // m.PID
	size += 1      // m.IP.Af
	size += 1 * 16 // m.IP.Un
	size += 4      // m.SwIfIndex
	return size
}
func (m *WantIPNeighborEventsV2) Marshal(b []byte) ([]byte, error) {
	if b == nil {
		b = make([]byte, m.Size())
	}
	buf := codec.NewBuffer(b)
	buf.EncodeBool(m.Enable)
	buf.EncodeUint32(m.PID)
	buf.EncodeUint8(uint8(m.IP.Af))
	buf.EncodeBytes(m.IP.Un.XXX_UnionData[:], 16)
	buf.EncodeUint32(uint32(m.SwIfIndex))
	return buf.Bytes(), nil
}
func (m *WantIPNeighborEventsV2) Unmarshal(b []byte) error {
	buf := codec.NewBuffer(b)
	m.Enable = buf.DecodeBool()
	m.PID = buf.DecodeUint32()
	m.IP.Af = ip_types.AddressFamily(buf.DecodeUint8())
	copy(m.IP.Un.XXX_UnionData[:], buf.DecodeBytes(16))
	m.SwIfIndex = interface_types.InterfaceIndex(buf.DecodeUint32())
	return nil
}

// WantIPNeighborEventsV2Reply defines message 'want_ip_neighbor_events_v2_reply'.
type WantIPNeighborEventsV2Reply struct {
	Retval int32 `binapi:"i32,name=retval" json:"retval,omitempty"`
}

func (m *WantIPNeighborEventsV2Reply) Reset() { *m = WantIPNeighborEventsV2Reply{} }
func (*WantIPNeighborEventsV2Reply) GetMessageName() string {
	return "want_ip_neighbor_events_v2_reply"
}
func (*WantIPNeighborEventsV2Reply) GetCrcString() string { return "e8d4e804" }
func (*WantIPNeighborEventsV2Reply) GetMessageType() api.MessageType {
	return api.ReplyMessage
}

func (m *WantIPNeighborEventsV2Reply) Size() (size int) {
	if m == nil {
		return 0
	}
	size += 4 // m.Retval
	return size
}
func (m *WantIPNeighborEventsV2Reply) Marshal(b []byte) ([]byte, error) {
	if b == nil {
		b = make([]byte, m.Size())
	}
	buf := codec.NewBuffer(b)
	buf.EncodeInt32(m.Retval)
	return buf.Bytes(), nil
}
func (m *WantIPNeighborEventsV2Reply) Unmarshal(b []byte) error {
	buf := codec.NewBuffer(b)
	m.Retval = buf.DecodeInt32()
	return nil
}

func init() { file_ip_neighbor_binapi_init() }
func file_ip_neighbor_binapi_init() {
	api.RegisterMessage((*IPNeighborAddDel)(nil), "ip_neighbor_add_del_0607c257")
	api.RegisterMessage((*IPNeighborAddDelReply)(nil), "ip_neighbor_add_del_reply_1992deab")
	api.RegisterMessage((*IPNeighborConfig)(nil), "ip_neighbor_config_f4a5cf44")
	api.RegisterMessage((*IPNeighborConfigReply)(nil), "ip_neighbor_config_reply_e8d4e804")
	api.RegisterMessage((*IPNeighborDetails)(nil), "ip_neighbor_details_e29d79f0")
	api.RegisterMessage((*IPNeighborDump)(nil), "ip_neighbor_dump_d817a484")
	api.RegisterMessage((*IPNeighborEvent)(nil), "ip_neighbor_event_bdb092b2")
	api.RegisterMessage((*IPNeighborEventV2)(nil), "ip_neighbor_event_v2_c1d53dc0")
	api.RegisterMessage((*IPNeighborFlush)(nil), "ip_neighbor_flush_16aa35d2")
	api.RegisterMessage((*IPNeighborFlushReply)(nil), "ip_neighbor_flush_reply_e8d4e804")
	api.RegisterMessage((*IPNeighborReplaceBegin)(nil), "ip_neighbor_replace_begin_51077d14")
	api.RegisterMessage((*IPNeighborReplaceBeginReply)(nil), "ip_neighbor_replace_begin_reply_e8d4e804")
	api.RegisterMessage((*IPNeighborReplaceEnd)(nil), "ip_neighbor_replace_end_51077d14")
	api.RegisterMessage((*IPNeighborReplaceEndReply)(nil), "ip_neighbor_replace_end_reply_e8d4e804")
	api.RegisterMessage((*WantIPNeighborEvents)(nil), "want_ip_neighbor_events_73e70a86")
	api.RegisterMessage((*WantIPNeighborEventsReply)(nil), "want_ip_neighbor_events_reply_e8d4e804")
	api.RegisterMessage((*WantIPNeighborEventsV2)(nil), "want_ip_neighbor_events_v2_73e70a86")
	api.RegisterMessage((*WantIPNeighborEventsV2Reply)(nil), "want_ip_neighbor_events_v2_reply_e8d4e804")
}

// Messages returns list of all messages in this module.
func AllMessages() []api.Message {
	return []api.Message{
		(*IPNeighborAddDel)(nil),
		(*IPNeighborAddDelReply)(nil),
		(*IPNeighborConfig)(nil),
		(*IPNeighborConfigReply)(nil),
		(*IPNeighborDetails)(nil),
		(*IPNeighborDump)(nil),
		(*IPNeighborEvent)(nil),
		(*IPNeighborEventV2)(nil),
		(*IPNeighborFlush)(nil),
		(*IPNeighborFlushReply)(nil),
		(*IPNeighborReplaceBegin)(nil),
		(*IPNeighborReplaceBeginReply)(nil),
		(*IPNeighborReplaceEnd)(nil),
		(*IPNeighborReplaceEndReply)(nil),
		(*WantIPNeighborEvents)(nil),
		(*WantIPNeighborEventsReply)(nil),
		(*WantIPNeighborEventsV2)(nil),
		(*WantIPNeighborEventsV2Reply)(nil),
	}
}


text:
[![Build Status](https://travis-ci.org/Studio-Link/webapp.png)](https://travis-ci.org/Studio-Link/webapp)
[![Coverage Status](https://coveralls.io/repos/Studio-Link/webapp/badge.png)](https://coveralls.io/r/Studio-Link/webapp)

## About

Optimized to use ARM hardware (e.g. BeagleBone Black) for professional over IP studio connections (podcasting and broadcasting).

Features:

- JACK (low latency and routing)
- Baresip (SIP User-Agent)
- Codecs: Opus, G.722, G.726, G.711, GSM and L16
- Responsive web interface
- USB OTG audio gadget support
- Recording (double-ender/multitrack)

## Installation

Follow this [README](https://github.com/Studio-Link/images/blob/master/README.md)

## Website

[www.studio-link.de](http://studio-link.de)

## Info

Contributors: [Sebastian Reimers](https://github.com/sreimers/)

License: [BSD 2-Clause License](http://opensource.org/licenses/BSD-2-Clause)


text:
package im.delight.android.ddp.db;

/** A document has an ID and contains any number of fields, identified by their names */
public interface Document {

	/**
	 * Returns the ID of the document
	 *
	 * @return the ID
	 */
	String getId();

	/**
	 * Returns the field with the specified name from the document
	 *
	 * @param name the name of the field to return
	 * @return the field data of any type (e.g. `String`, `Integer`, `Long`, `Boolean`) or `null`
	 */
	Object getField(String name);

	/**
	 * Lists all fields from the document by returning their names
	 *
	 * @return an array containing the names of all fields
	 */
	String[] getFieldNames();

	/**
	 * Returns the number of fields in the document
	 *
	 * @return the count
	 */
	int count();

}


text:
using DragonSpark.Model.Commands;
using LightInject;
using System;

namespace DragonSpark.Composition;

sealed class Decorate<T> : ICommand<IServiceContainer>
{
	readonly Func<IServiceFactory, T, T> _configure;

	public Decorate(Func<IServiceFactory, T, T> configure) => _configure = configure;

	public void Execute(IServiceContainer parameter)
	{
		parameter.Decorate(_configure);
	}
}

sealed class Decorate<TFrom, TTo> : ICommand<IServiceContainer> where TTo : TFrom
{
	public static Decorate<TFrom,TTo> Default { get; } = new();

	Decorate() {}

	public void Execute(IServiceContainer parameter)
	{
		parameter.Decorate<TFrom, TTo>();
	}
}


text:
package com.qtt.tool.util.matcher;

public class SingleCharMatcher extends AbstractCharMatcher
{
  char alpha;

  public SingleCharMatcher()
  {
    alpha=0;
  }

  public SingleCharMatcher(char letter)
  {
    set(letter);
  }

  public void set(char letter)
  {
    alpha=letter;
  }

  public boolean match(char letter)
  {
    return letter==alpha;
  }
}


text:
export const DROP_NEW_PIN = 'DROP_NEW_PIN';
export const UPDATE_PINS = 'UPDATE_PINS';
export const DELETE_PIN = 'DELETE_PIN';
export const UPDATE_RECENT = 'UPDATE_RECENT';
export const SET_RECENT = 'SET_RECENT';
export const LOG_IN = 'LOG_IN';
export const LOG_OUT = 'LOG_OUT';
export const UPDATE_FRIENDS = 'UPDATE_FRIENDS';
export const SET_TARGET = 'SET_TARGET';
export const CLEAR_TARGET = 'CLEAR_TARGET';


text:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">

<title>ARG.StringList class - Zimbu documentation</title>

up: ARG

index

Zimbu documentation

CLASS ARG.StringList
 @public

summary

 A Flag that includes all following arguments.

 The argument values are available as a list of strings.

 For example, with this flag:

 ARG.StringList args = NEW("a", "args", [], "the list of arguments")

 These arguments can be used:

 prog --args one -two three
 prog -a one -two three

 And will result in ["one", "-two", "three"].

 The flag cannot be used more than once, because it consumes all the
 remaining arguments.

	NEW(shortName, longName, default, doc) @public
 Create a Flag that is followed by any number of arguments.

	$get() list<string> @public
 Return the value.

	$value() list<string> @public
 Return the value.

Inherited from ARG.Flag:

	$setArgName(argName) ARG.Flag @public
 Set the text used in the --help output for the argument.

	$disableCompact() ARG.Flag @public
 Disable the compact form of flag values.

	$optionalArg() ARG.Flag @public
 Make the flag argument optional.

	$presentCount() int @public
 Return the number of times the command line flag was encountered.

	$present() bool @public
 Return TRUE if the command line flag was encountered.

members (alphabetically)

PROC NEW(string shortName, string longName, list<string> default, string doc) @public

 Create a Flag that is followed by any number of arguments.

 shortName is the one-character name, can be NIL.

 longName is the longer name, to be used after "--", can be NIL

 shortName and longName can't both be NIL.

 default is the default value, used when the flag is not present.

 doc is displayed for this flag with the --help argument.

FUNC $get() list<string> @public

 Return the value.

 When the flag was not encountered it will be the specified default.

 Can only be used after EarlyInit(), when ARG.Ready is TRUE.

FUNC $value() list<string> @public

 Return the value.

 When the flag was not encountered it will be the specified default.

 Can only be used after EarlyInit(), when ARG.Ready is TRUE.

license

     	 Copyright 2009 Bram Moolenaar  All Rights Reserved.

     	 Licensed under the Apache License, Version 2.0.  See the LICENSE file or
 obtain a copy at: http://www.apache.org/licenses/LICENSE-2.0


text:
.header {

	background-position: center;
    background-repeat: no-repeat;
    background-size: contain;
	background-color: black;
}


text:
using System.Configuration.Internal;
using System.Diagnostics;
using System.IO;
using System.Xml;

namespace System.Configuration
{
    internal sealed class ConfigXmlReader : XmlTextReader, IConfigErrorInfo
    {
        private readonly string _filename;

        // Used in a decrypted configuration section to locate
        // the line where the ecnrypted section begins.
        private readonly bool _lineNumberIsConstant;
        private readonly int _lineOffset;

        internal ConfigXmlReader(string rawXml, string filename, int lineOffset) :
            this(rawXml, filename, lineOffset, false)
        { }

        internal ConfigXmlReader(string rawXml, string filename, int lineOffset, bool lineNumberIsConstant) :
            base(new StringReader(rawXml))
        {
            RawXml = rawXml;
            _filename = filename;
            _lineOffset = lineOffset;
            _lineNumberIsConstant = lineNumberIsConstant;

            Debug.Assert(!_lineNumberIsConstant || (_lineOffset > 0),
                "!_lineNumberIsConstant || _lineOffset > 0");
        }

        internal string RawXml { get; }

        int IConfigErrorInfo.LineNumber
        {
            get
            {
                if (_lineNumberIsConstant) return _lineOffset;
                if (_lineOffset > 0) return LineNumber + (_lineOffset - 1);
                return LineNumber;
            }
        }

        string IConfigErrorInfo.Filename => _filename;

        internal ConfigXmlReader Clone()
        {
            return new ConfigXmlReader(RawXml, _filename, _lineOffset, _lineNumberIsConstant);
        }
    }
}


text:
@class WCSourceScanner;

@interface WCScanFoldsOperation : NSOperation {
	WCSourceScanner *_sourceScanner;
	NSString *_string;
}
+ (WCScanFoldsOperation *)scanFoldsOperationWithSourceScanner:(WCSourceScanner *)sourceScanner;
- (id)initWithSourceScanner:(WCSourceScanner *)sourceScanner;
@end


text:
import proto  # type: ignore

from google.ads.googleads.v12.resources.types import asset_group
from google.protobuf import field_mask_pb2  # type: ignore
from google.rpc import status_pb2  # type: ignore

__protobuf__ = proto.module(
    package="google.ads.googleads.v12.services",
    marshal="google.ads.googleads.v12",
    manifest={
        "MutateAssetGroupsRequest",
        "AssetGroupOperation",
        "MutateAssetGroupsResponse",
        "MutateAssetGroupResult",
    },
)

class MutateAssetGroupsRequest(proto.Message):
    r"""Request message for
    [AssetGroupService.MutateAssetGroups][google.ads.googleads.v12.services.AssetGroupService.MutateAssetGroups].

    Attributes:
        customer_id (str):
            Required. The ID of the customer whose asset
            groups are being modified.
        operations (Sequence[google.ads.googleads.v12.services.types.AssetGroupOperation]):
            Required. The list of operations to perform
            on individual asset groups.
        validate_only (bool):
            If true, the request is validated but not
            executed. Only errors are returned, not results.
    """

    customer_id = proto.Field(proto.STRING, number=1,)
    operations = proto.RepeatedField(
        proto.MESSAGE, number=2, message="AssetGroupOperation",
    )
    validate_only = proto.Field(proto.BOOL, number=4,)

class AssetGroupOperation(proto.Message):
    r"""A single operation (create, remove) on an asset group.

    This message has `oneof`_ fields (mutually exclusive fields).
    For each oneof, at most one member field can be set at the same time.
    Setting any member of the oneof automatically clears all other
    members.

    .. _oneof: https://proto-plus-python.readthedocs.io/en/stable/fields.html#oneofs-mutually-exclusive-fields

    Attributes:
        update_mask (google.protobuf.field_mask_pb2.FieldMask):
            FieldMask that determines which resource
            fields are modified in an update.
        create (google.ads.googleads.v12.resources.types.AssetGroup):
            Create operation: No resource name is
            expected for the new asset group

            This field is a member of `oneof`_ ``operation``.
        update (google.ads.googleads.v12.resources.types.AssetGroup):
            Update operation: The asset group is expected
            to have a valid resource name.

            This field is a member of `oneof`_ ``operation``.
        remove (str):
            Remove operation: A resource name for the removed asset
            group is expected, in this format:
            ``customers/{customer_id}/assetGroups/{asset_group_id}``

            This field is a member of `oneof`_ ``operation``.
    """

    update_mask = proto.Field(
        proto.MESSAGE, number=4, message=field_mask_pb2.FieldMask,
    )
    create = proto.Field(
        proto.MESSAGE,
        number=1,
        oneof="operation",
        message=asset_group.AssetGroup,
    )
    update = proto.Field(
        proto.MESSAGE,
        number=2,
        oneof="operation",
        message=asset_group.AssetGroup,
    )
    remove = proto.Field(proto.STRING, number=3, oneof="operation",)

class MutateAssetGroupsResponse(proto.Message):
    r"""Response message for an asset group mutate.

    Attributes:
        results (Sequence[google.ads.googleads.v12.services.types.MutateAssetGroupResult]):
            All results for the mutate.
        partial_failure_error (google.rpc.status_pb2.Status):
            Errors that pertain to operation failures in the partial
            failure mode. Returned only when partial_failure = true and
            all errors occur inside the operations. If any errors occur
            outside the operations (for example, auth errors), we return
            an RPC level error.
    """

    results = proto.RepeatedField(
        proto.MESSAGE, number=1, message="MutateAssetGroupResult",
    )
    partial_failure_error = proto.Field(
        proto.MESSAGE, number=2, message=status_pb2.Status,
    )

class MutateAssetGroupResult(proto.Message):
    r"""The result for the asset group mutate.

    Attributes:
        resource_name (str):
            Returned for successful operations.
    """

    resource_name = proto.Field(proto.STRING, number=1,)

__all__ = tuple(sorted(__protobuf__.manifest))


text:
//------------------------------------------------------------------------------
// <auto-generated>
//     This code was generated by a tool.
//     Runtime Version:4.0.30319.42000
//
//     Changes to this file may cause incorrect behavior and will be lost if
//     the code is regenerated.
// </auto-generated>
//------------------------------------------------------------------------------

namespace FlightNode.Identity.Properties {

    [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
    [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.VisualStudio.Editors.SettingsDesigner.SettingsSingleFileGenerator", "14.0.0.0")]
    public sealed partial class Settings : global::System.Configuration.ApplicationSettingsBase {

        private static Settings defaultInstance = ((Settings)(global::System.Configuration.ApplicationSettingsBase.Synchronized(new Settings())));

        public static Settings Default {
            get {
                return defaultInstance;
            }
        }

        [global::System.Configuration.ApplicationScopedSettingAttribute()]
        [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
        [global::System.Configuration.DefaultSettingValueAttribute("JustMakeupSomething")]
        public string AudienceId {
            get {
                return ((string)(this["AudienceId"]));
            }
        }

        [global::System.Configuration.ApplicationScopedSettingAttribute()]
        [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
        [global::System.Configuration.DefaultSettingValueAttribute("xJJR1vffcprjhi8vK6g4DKDmRq_yKY4Ip1svAmRaVV8")]
        public string AudienceSecret {
            get {
                return ((string)(this["AudienceSecret"]));
            }
        }

        [global::System.Configuration.ApplicationScopedSettingAttribute()]
        [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
        [global::System.Configuration.DefaultSettingValueAttribute("True")]
        public bool AllowInsecureHttpConnection {
            get {
                return ((bool)(this["AllowInsecureHttpConnection"]));
            }
        }

        [global::System.Configuration.ApplicationScopedSettingAttribute()]
        [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
        [global::System.Configuration.DefaultSettingValueAttribute("Data Source=(localdb)\\ProjectsV12;Database=FlightNode.Tests;Integrated Security=t" +
            "rue;")]
        public string IdentityConnectionString {
            get {
                return ((string)(this["IdentityConnectionString"]));
            }
        }
    }
}


text:
namespace CroquetAustralia.CQRS.AzurePersistence.Specifications.TestHelpers.Dummies
{
    internal class DummyAggregate : AggregateBase
    {
    }
}


text:
function ppwd = pwd_imp_circexp(pm,Npw)
%PWD_IMP_CIRCEXP converts a circular basis expansion of a sound field to its
%two-dimensional plane wave decomposition
%
%   Usage: ppwd = pwd_imp_circexp(pm,[Npw])
%
%   Input parameters:
%       pm      - circular basis expansion [N x (M+1)]
%       Npw     - number of equi-angular distributed plane waves, optional,
%                 default: 2*M+1
%
%   Output parameters:
%       ppwd    - plane wave decomposition [N x Npw]
%
%   See also: driving_function_imp_localwfs_sbl_ps,
%   driving_function_imp_localwfs_sbl_pw

%*****************************************************************************
% The MIT License (MIT)                                                      *
%                                                                            *
% Copyright (c) 2010-2019 SFS Toolbox Developers                             *
%                                                                            *
% Permission is hereby granted,  free of charge,  to any person  obtaining a *
% copy of this software and associated documentation files (the "Software"), *
% to deal in the Software without  restriction, including without limitation *
% the rights  to use, copy, modify, merge,  publish, distribute, sublicense, *
% and/or  sell copies of  the Software,  and to permit  persons to whom  the *
% Software is furnished to do so, subject to the following conditions:       *
%                                                                            *
% The above copyright notice and this permission notice shall be included in *
% all copies or substantial portions of the Software.                        *
%                                                                            *
% THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR *
% IMPLIED, INCLUDING BUT  NOT LIMITED TO THE  WARRANTIES OF MERCHANTABILITY, *
% FITNESS  FOR A PARTICULAR  PURPOSE AND  NONINFRINGEMENT. IN NO EVENT SHALL *
% THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER *
% LIABILITY, WHETHER  IN AN  ACTION OF CONTRACT, TORT  OR OTHERWISE, ARISING *
% FROM,  OUT OF  OR IN  CONNECTION  WITH THE  SOFTWARE OR  THE USE  OR OTHER *
% DEALINGS IN THE SOFTWARE.                                                  *
%                                                                            *
% The SFS Toolbox  allows to simulate and  investigate sound field synthesis *
% methods like wave field synthesis or higher order ambisonics.              *
%                                                                            *
% https://sfs.readthedocs.io                            sfstoolbox@gmail.com *
%*****************************************************************************

%% ===== Checking of input parameters ==================================
nargmin = 1;
nargmax = 2;
narginchk(nargmin,nargmax);
isargmatrix(pm);
M = size(pm,2)-1;
if nargin == nargmin
  Npw = 2*M+1;
else
  isargpositivescalar(Npw);
end

%% ===== Computation ====================================================
% Implementation of
%                 ___
% _               \
% p(phipw, t) =   /__     p (t) i^m  e^(-i m phipw)
%               m=-M..M    m
% with
%
% phipw = n * 2*pi/Npw

pm = [conj(pm(:,end:-1:2)), pm];  % append coefficients for negative m
ppwd = inverse_cht(bsxfun(@times,pm,1i.^(-M:M)),Npw);


text:
#ifndef _DASH2HLS_TRUN_CONTENTS_H_
#define _DASH2HLS_TRUN_CONTENTS_H_

// TrackRun boxes contain the offsets to each sample in an mdat.
//
// Each field is optional but all runs either have the field or don't.

#include <string>
#include <vector>

#include "library/dash/box_type.h"
#include "library/dash/full_box_contents.h"

namespace dash2hls {

class TrunContents : public FullBoxContents {
 public:
  // Each value is optional and unitialized if not present.
  class TrackRun {
   public:
    uint32_t sample_duration_;
    uint32_t sample_size_;
    uint32_t sample_flags_;
    uint32_t sample_composition_time_offset_;
  };

  explicit TrunContents(uint64_t stream_position)
      : FullBoxContents(BoxType::kBox_trex, stream_position) {}

  // Fields are optional.
  bool IsBaseDataOffsetPresent() const;
  bool IsFirstSampleFlagsPresent() const;
  bool IsSampleDurationPresent() const;
  bool IsSampleSizePresent() const;
  bool IsSampleFlagsPresent() const;
  bool IsSampleCompositionPresent() const;

  const std::vector<TrackRun>& get_track_runs() const {return track_runs_;}
  int32_t get_data_offset() const {return data_offset_;}

  virtual std::string PrettyPrint(std::string indent) const;
  std::string PrettyPrintTrackRun(const TrackRun& run) const;
  virtual std::string BoxName() const {return "TrackFragmentRun";}

 protected:
  static const uint32_t kBaseDataOffsetPresentMask = 0x000001;
  static const uint32_t kFirstSampleFlagsPresentMask = 0x000004;
  static const uint32_t kSampleDurationPresentMask = 0x0000100;
  static const uint32_t kSampleSizePresentMask = 0x000200;
  static const uint32_t kSampleFlagsPresentMask = 0x000400;
  static const uint32_t kSampleCompositionPresentMask = 0x00800;

 protected:
  virtual size_t Parse(const uint8_t* buffer, size_t length);

 private:
  uint32_t sample_count_;
  int32_t data_offset_;
  uint32_t first_sample_flags_;
  std::vector<TrackRun> track_runs_;
};
}  //  namespace dash2hls

#endif  // _DASH2HLS_TRUN_CONTENTS_H_


text:
<?php

include(dirname(__FILE__).'/../../bootstrap/Doctrine.php');

$t = new lime_test(7, new lime_output_color());

include(dirname(__FILE__).'/../../testTools.php');

// begin testing
$t->comment('Property class test');

$p = new Property();

$p->hydrate(array('keey'=>'testKey', 'value'=>'{"a":1,"b":"geo"}'));

$t->comment('getRawValue()');

$t->is($p->getRawValue(), $p->rawGet('value'), 'getRawValue is really raw');

$t->comment('->getValue()');

$t->is($p->getValue(), array('a'=>1,'b'=>'geo'), 'json conversion works');
$p->hydrate(array('value'=>'{"a":1,"b":"g€e\'ñ"}'));
$t->is($p->getValue(), array('a'=>1,'b'=>"g€e'ñ"), 'json works with weird chars');

$p->hydrate(array('value'=>'{"abcd ñep\"ab\"":1}'));
$t->is($p->getValue(), array('abcd ñep"ab"'=>1), 'Special chars untouched');

$t->comment('->setValue()');

$arr = array('a'=>1,'b'=>2);

$p->setValue($arr);
$t->is($p->getValue(), $arr, 'json conversion works fine both ways');

$t->comment('test that changing the currency_decimals property changes the view');
PropertyTable::set('currency_decimals', 2);
$test_invoice->setAmounts();
$t->is($test_invoice->getGrossAmount(), 238.35, 'checking 2 decimals');

PropertyTable::set('currency_decimals', 3);
$test_invoice->setAmounts();
$t->is($test_invoice->getGrossAmount(), 238.354, 'checking 3 decimals');

PropertyTable::set('currency_decimals', 2);


text:
<!DOCTYPE html>

    <meta charset="utf-8">
    <meta http-equiv="x-ua-compatible" content="ie=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta name="generator" content="ExDoc v0.11.5">
    <title>ExTumblr.HTTPClientBehaviour – ExTumblr v0.0.1</title>
    <link rel="stylesheet" href="dist/app-ddd9717ad9.css" />

<button class="sidebar-toggle">

</button>

  <button class="sidebar-toggle">

  </button>

        ExTumblr

        v0.0.1

    <input type="text" class="sidebar-searchInput" placeholder="search" autocomplete="off" />

Pages

Modules

Protocols

        ExTumblr v0.0.1
        ExTumblr.HTTPClientBehaviour

          behaviour

            Summary

      Callbacks

    request(method, url, body, headers)

            Callbacks

    request(method, url, body, headers)

Specs

request(method :: atom, url :: String.t, body :: String.t, headers :: Keyword.t) :: any

          Built using
          ExDoc (v0.11.5),

          designed by
          Friedel Ziegelmayer.

      <button class="night-mode-toggle" />


text:
using UnityEngine;
using System.Collections;
using UnityEngine.Networking;

/// <summary>
/// This class is just a simple controller that enables
/// certain client side components that need to be turned off for
/// multiplayer.
/// </summary>
public class NetworkTurnOn : NetworkBehaviour {

	/*
	 * Network setup
	 */
	[SerializeField]
	Camera fpsCharacterCam;
	[SerializeField]
	AudioListener audioListener;

	// Player network setup
	void Start () {
		if (isLocalPlayer) {
			//GetComponent<WBFirstPersonController> ().enabled = true; - This is now a shared script
			//If want to disable player to player collision, disable controller and enable only for local player
			//GetComponent<CharacterController>().enabled = true;
			fpsCharacterCam.enabled = true;
			audioListener.enabled = true;
		}
	}
}


text:
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');
class Acceso_model extends CI_Model
{
    var $compania;
    var $table;
    public function __construct(){
        parent::__construct();
        $this->table      = "ant_acceso";
        $this->table_pers = "ant_persona";
    }

    public function listar($filter='',$filter_not='',$number_items='',$offset=''){
        $this->db->select('*');
        $this->db->from($this->table." as c");
        $this->db->join($this->table_pers.' as d','d.PERSP_Codigo=c.PERSP_Codigo','inner');
        if(isset($filter->acceso) && $filter->acceso!='')            $this->db->where(array("c.ACCESOP_Codigo"=>$filter->acceso));
        if(isset($filter->order_by) && count($filter->order_by)>0){
            foreach($filter->order_by as $indice=>$value){
                $this->db->order_by($indice,$value);
            }
        }
        $this->db->limit($number_items, $offset);
        $query = $this->db->get();
        $resultado = array();
        if($query->num_rows>0){
            $resultado = $query->result();
        }
        return $resultado;
    }

    public function obtener($filter,$filter_not='',$number_items='',$offset=''){
        $listado = $this->listar($filter,$filter_not='',$number_items='',$offset='');
        if(count($listado)>1)
            $resultado = "Existe mas de un resultado";
        else
            $resultado = (object)$listado[0];
        return $resultado;
    }

    public function insertar($data){
       $this->db->insert($this->table,$data);
       return $this->db->insert_id();
    }

    public function modificar($codigo,$data){
        $this->db->where("ACCESOP_Codigo",$codigo);
        $this->db->update($this->table,$data);
    }

    public function eliminar($codigo){
        $this->db->delete($this->table,array('ACCESOP_Codigo' => $codigo));
    }
 }
?>


text:
package org.apereo.cas.adaptors.gauth;

import org.apereo.cas.CipherExecutor;
import org.apereo.cas.adaptors.gauth.repository.credentials.GoogleAuthenticatorAccount;
import org.apereo.cas.authentication.OneTimeTokenAccount;
import org.apereo.cas.otp.repository.credentials.BaseOneTimeTokenCredentialRepository;

import com.warrenstrange.googleauth.IGoogleAuthenticator;
import lombok.ToString;
import lombok.extern.slf4j.Slf4j;
import lombok.val;
import org.springframework.data.mongodb.core.MongoOperations;
import org.springframework.data.mongodb.core.query.Criteria;
import org.springframework.data.mongodb.core.query.Query;

import javax.persistence.NoResultException;
import java.util.ArrayList;
import java.util.Collection;
import java.util.List;
import java.util.stream.Collectors;

/**
 * This is {@link MongoDbGoogleAuthenticatorTokenCredentialRepository}.
 *
 * @author Misagh Moayyed
 * @since 5.0.0
 */
@Slf4j
@ToString
public class MongoDbGoogleAuthenticatorTokenCredentialRepository extends BaseOneTimeTokenCredentialRepository {
    private final IGoogleAuthenticator googleAuthenticator;
    private final MongoOperations mongoTemplate;
    private final String collectionName;

    public MongoDbGoogleAuthenticatorTokenCredentialRepository(final IGoogleAuthenticator googleAuthenticator,
                                                               final MongoOperations mongoTemplate,
                                                               final String collectionName,
                                                               final CipherExecutor<String, String> tokenCredentialCipher) {
        super(tokenCredentialCipher);
        this.googleAuthenticator = googleAuthenticator;
        this.mongoTemplate = mongoTemplate;
        this.collectionName = collectionName;
    }

    @Override
    public OneTimeTokenAccount get(final String username) {
        try {
            val query = new Query();
            query.addCriteria(Criteria.where("username").is(username));
            val r = this.mongoTemplate.findOne(query, GoogleAuthenticatorAccount.class, this.collectionName);
            if (r != null) {
                return decode(r);
            }
        } catch (final NoResultException e) {
            LOGGER.debug("No record could be found for google authenticator id [{}]", username);
        }
        return null;
    }

    @Override
    public Collection<? extends OneTimeTokenAccount> load() {
        try {
            val r = this.mongoTemplate.findAll(GoogleAuthenticatorAccount.class, this.collectionName);
            return r.stream()
                .map(this::decode)
                .collect(Collectors.toList());

        } catch (final Exception e) {
            LOGGER.error("No record could be found for google authenticator", e);
        }
        return new ArrayList<>();
    }

    @Override
    public void save(final String userName, final String secretKey, final int validationCode, final List<Integer> scratchCodes) {
        val account = new GoogleAuthenticatorAccount(userName, secretKey, validationCode, scratchCodes);
        update(account);
    }

    @Override
    public OneTimeTokenAccount create(final String username) {
        val key = this.googleAuthenticator.createCredentials();
        return new GoogleAuthenticatorAccount(username, key.getKey(), key.getVerificationCode(), key.getScratchCodes());
    }

    @Override
    public OneTimeTokenAccount update(final OneTimeTokenAccount account) {
        val encodedAccount = encode(account);
        this.mongoTemplate.save(encodedAccount, this.collectionName);
        return encodedAccount;
    }

    @Override
    public void deleteAll() {
        this.mongoTemplate.remove(new Query(), GoogleAuthenticatorAccount.class, this.collectionName);
    }

    @Override
    public void delete(final String username) {
        val query = new Query();
        query.addCriteria(Criteria.where("username").is(username));
        this.mongoTemplate.remove(query, GoogleAuthenticatorAccount.class, this.collectionName);
    }

    @Override
    public long count() {
        val query = new Query();
        query.addCriteria(Criteria.where("username").exists(true));
        return this.mongoTemplate.count(query, GoogleAuthenticatorAccount.class, this.collectionName);
    }
}


text:
<?php

final class UserQueryConduitAPIMethod extends UserConduitAPIMethod {

  public function getAPIMethodName() {
    return 'user.query';
  }

  public function getMethodDescription() {
    return 'Query users.';
  }

  public function defineParamTypes() {
    return array(
      'usernames'    => 'optional list<string>',
      'emails'       => 'optional list<string>',
      'realnames'    => 'optional list<string>',
      'phids'        => 'optional list<phid>',
      'ids'          => 'optional list<uint>',
      'offset'       => 'optional int',
      'limit'        => 'optional int (default = 100)',
    );
  }

  public function defineReturnType() {
    return 'list<dict>';
  }

  public function defineErrorTypes() {
    return array(
      'ERR-INVALID-PARAMETER' => 'Missing or malformed parameter.',
    );
  }

  protected function execute(ConduitAPIRequest $request) {
    $usernames   = $request->getValue('usernames', array());
    $emails      = $request->getValue('emails',    array());
    $realnames   = $request->getValue('realnames', array());
    $phids       = $request->getValue('phids',     array());
    $ids         = $request->getValue('ids',       array());
    $offset      = $request->getValue('offset',    0);
    $limit       = $request->getValue('limit',     100);

    $query = new PhabricatorPeopleQuery();
    $query->setViewer($request->getUser());

    if ($usernames) {
      $query->withUsernames($usernames);
    }
    if ($emails) {
      $query->withEmails($emails);
    }
    if ($realnames) {
      $query->withRealnames($realnames);
    }
    if ($phids) {
      $query->withPHIDs($phids);
    }
    if ($ids) {
      $query->withIDs($ids);
    }
    if ($limit) {
      $query->setLimit($limit);
    }
    if ($offset) {
      $query->setOffset($offset);
    }
    $users = $query->execute();

    $statuses = id(new PhabricatorCalendarEvent())->loadCurrentStatuses(
      mpull($users, 'getPHID'));

    $results = array();
    foreach ($users as $user) {
      $results[] = $this->buildUserInformationDictionary(
        $user,
        idx($statuses, $user->getPHID()));
    }
    return $results;
  }

}


text:
This is an example of a job queue, using a simple "job" that adds numbers.

In one terminal, run

```
ruby producer.rb
```

In another terminal, run

```
ruby worker.rb
```


text:
namespace base {
class FilePath;
struct FileDescriptor;
}

namespace gfx {
class Rect;
}

namespace printing {
class PdfRenderSettings;
struct PageRange;
}

namespace chrome {

class UtilityMessageHandler;

class ChromeContentUtilityClient : public content::ContentUtilityClient {
 public:
  ChromeContentUtilityClient();
  virtual ~ChromeContentUtilityClient();

  virtual void UtilityThreadStarted() OVERRIDE;
  virtual bool OnMessageReceived(const IPC::Message& message) OVERRIDE;

  static void PreSandboxStartup();

 private:
  // IPC message handlers.
  void OnUnpackExtension(const base::FilePath& extension_path,
                         const std::string& extension_id,
                         int location, int creation_flags);
  void OnUnpackWebResource(const std::string& resource_data);
  void OnParseUpdateManifest(const std::string& xml);
  void OnDecodeImage(const std::vector<unsigned char>& encoded_data);
  void OnDecodeImageBase64(const std::string& encoded_data);
  void OnRenderPDFPagesToMetafile(
      base::PlatformFile pdf_file,
      const base::FilePath& metafile_path,
      const printing::PdfRenderSettings& settings,
      const std::vector<printing::PageRange>& page_ranges);
  void OnRenderPDFPagesToPWGRaster(
      IPC::PlatformFileForTransit pdf_transit,
      const printing::PdfRenderSettings& settings,
      IPC::PlatformFileForTransit bitmap_transit);
  void OnRobustJPEGDecodeImage(
      const std::vector<unsigned char>& encoded_data);
  void OnParseJSON(const std::string& json);

#if defined(OS_CHROMEOS)
  void OnCreateZipFile(const base::FilePath& src_dir,
                       const std::vector<base::FilePath>& src_relative_paths,
                       const base::FileDescriptor& dest_fd);
#endif  // defined(OS_CHROMEOS)

#if defined(OS_WIN)
  // Helper method for Windows.
  // |highest_rendered_page_number| is set to -1 on failure to render any page.
  bool RenderPDFToWinMetafile(
      base::PlatformFile pdf_file,
      const base::FilePath& metafile_path,
      const printing::PdfRenderSettings& settings,
      const std::vector<printing::PageRange>& page_ranges,
      int* highest_rendered_page_number,
      double* scale_factor);
#endif   // defined(OS_WIN)

  bool RenderPDFPagesToPWGRaster(
      base::PlatformFile pdf_file,
      const printing::PdfRenderSettings& settings,
      base::PlatformFile bitmap_file);

  void OnGetPrinterCapsAndDefaults(const std::string& printer_name);
  void OnStartupPing();
  void OnAnalyzeZipFileForDownloadProtection(
      const IPC::PlatformFileForTransit& zip_file);
#if !defined(OS_ANDROID) && !defined(OS_IOS)
  void OnCheckMediaFile(int64 milliseconds_of_decoding,
                        const IPC::PlatformFileForTransit& media_file);
#endif  // !defined(OS_ANDROID) && !defined(OS_IOS)

#if defined(OS_WIN)
  void OnParseITunesPrefXml(const std::string& itunes_xml_data);
#endif  // defined(OS_WIN)

#if defined(OS_MACOSX)
  void OnParseIPhotoLibraryXmlFile(
      const IPC::PlatformFileForTransit& iphoto_library_file);
#endif  // defined(OS_MACOSX)

#if defined(OS_WIN) || defined(OS_MACOSX)
  void OnParseITunesLibraryXmlFile(
      const IPC::PlatformFileForTransit& itunes_library_file);

  void OnParsePicasaPMPDatabase(
      const picasa::AlbumTableFilesForTransit& album_table_files);

  void OnIndexPicasaAlbumsContents(
      const picasa::AlbumUIDSet& album_uids,
      const std::vector<picasa::FolderINIContents>& folders_inis);
#endif  // defined(OS_WIN) || defined(OS_MACOSX)

  typedef ScopedVector<UtilityMessageHandler> Handlers;
  Handlers handlers_;

  DISALLOW_COPY_AND_ASSIGN(ChromeContentUtilityClient);
};

}  // namespace chrome

#endif  // CHROME_UTILITY_CHROME_CONTENT_UTILITY_CLIENT_H_


text:
@implementation MessengerPreferences

@synthesize statusMessageEnabled;

- (id)init
{
  if (self = [super initWithNibName:NSStringFromClass([self class]) bundle:nil])
  {
    [self setTitle:[self identifier]];
  }

  return self;
}

- (void)awakeFromNib
{
  // Set the status message to enabled/disabled
  [self messengerStatusControlChanged:self];
}

- (IBAction)messengerStatusControlChanged:(id)sender
{
  NSUserDefaults *userDefaults = [NSUserDefaults standardUserDefaults];
  BOOL messageEnabled = [userDefaults boolForKey:@"iChatStatusControlEnabled"] || [userDefaults boolForKey:@"AdiumStatusControlEnabled"] || [userDefaults boolForKey:@"SkypeStatusControlEnabled"];
  [self setStatusMessageEnabled:messageEnabled];
}

#pragma mark -
#pragma mark KWPreferencePanel protocol methods

- (NSString *)identifier
{
  return kMessengerPrefIdentifier;
}

- (NSImage *)image
{
  return [NSImage imageNamed:NSStringFromClass([self class])];
}

- (void)close {

}

@end


text:
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace _09.Make_A_Word
{
    /*Write a program, which combines n characters and prints on a single line the combinations of these characters. On the first line,
     you will receive n – the number of lines, which will follow. On the next n lines – you will receive lower and uppercase characters
     from the English alphabet. Print the word in the format: The word is: {word}*/
    class MakeAWord
    {
        static void Main(string[] args)
        {
            int n = int.Parse(Console.ReadLine());
            string word = string.Empty;

            for (int i = 0; i < n; i++)
            {
                char ch = char.Parse(Console.ReadLine());
                word += ch;
            }

            Console.WriteLine($"The word is: {word}");
        }
    }
}


text:
/* NetHack 3.6	tileedit.h	$NHDT-Date: 1432512809 2015/05/25 00:13:29 $  $NHDT-Branch: master $:$NHDT-Revision: 1.8 $ */
/* Copyright (c) Warwick Allison, 1999. */
/* NetHack may be freely redistributed.  See license for details. */
#ifndef QNHTILEEDIT_H
#define QNHTILEEDIT_H

#include <qtabwidget.h>
#include <qpixmap.h>
#include <qimage.h>
#include <qvbox.h>

class TilePickerTab : public QWidget
{
    Q_OBJECT
  public:
    TilePickerTab(const char *basename, int id, QWidget *parent);

    bool save();
    int numTiles();

  signals:
    void pick(const QImage &);
    void pickName(const QString &);

  public slots:
    void setCurrent(const QImage &);

  protected:
    void paintEvent(QPaintEvent *);
    QSize sizeHint() const;
    void mousePressEvent(QMouseEvent *);

  private:
    QString filename;
    int id;
    int last_pick;
    int num;
    QPixmap pixmap;
    QImage image;
};

class TilePicker : public QTabWidget
{
    Q_OBJECT
  public:
    TilePicker(QWidget *parent);

    void setTile(int tilenum, const QImage &);

  signals:
    void pick(const QImage &);
    void pickName(const QString &);

  public slots:
    void setCurrent(const QImage &);
    void save();
};

class TrivialTileEditor : public QWidget
{
    Q_OBJECT
  public:
    TrivialTileEditor(QWidget *parent);
    const QImage &image() const;

  signals:
    void edited(const QImage &);
    void pick(QRgb);

  public slots:
    void setColor(QRgb);
    void setImage(const QImage &);

  protected:
    void paintEvent(QPaintEvent *);
    void mousePressEvent(QMouseEvent *);
    void mouseReleaseEvent(QMouseEvent *);
    void mouseMoveEvent(QMouseEvent *);
    QSize sizeHint() const;
    QSize sizeForWidth(int) const;
    QSizePolicy sizePolicy() const;

  private:
    void fill(QPainter &painter, QPoint p, uchar from);
    QImage img;
    QColor pen;
    int penpixel;
    void paintPoint(QPainter &painter, QPoint p);
    QPoint screenPoint(QPoint) const;
    QPoint imagePoint(QPoint) const;
};

class TilePalette : public QWidget
{
    Q_OBJECT
  public:
    TilePalette(QWidget *parent);
    ~TilePalette();
    void setFromImage(const QImage &);

  protected:
    void paintEvent(QPaintEvent *);
    void mousePressEvent(QMouseEvent *);
    QSize sizeHint() const;
    QSizePolicy sizePolicy() const;
  signals:
    void pick(QRgb);
  public slots:
    void setColor(QRgb);

  private:
    int num;
    QRgb *rgb;
};

class TileEditor : public QVBox
{
    Q_OBJECT
  public:
    TileEditor(QWidget *parent);

    const QImage &image() const;

  signals:
    void edited(const QImage &);

  public slots:
    void edit(const QImage &);

  private:
    TrivialTileEditor editor;
    TilePalette palette;
};

#endif


text:
"""
Utility functions for Image transfer and manipulation.
"""

import os
import subprocess

from oslo.config import cfg

from nova import exception
from nova import image
from nova.openstack.common import log as logging
from nova.openstack.common import strutils
from nova.openstack.common import units
from nova.virt.vmwareapi import constants
from nova.virt.vmwareapi import io_util
from nova.virt.vmwareapi import read_write_util

# NOTE(mdbooth): We use use_linked_clone below, but don't have to import it
# because nova.virt.vmwareapi.driver is imported first. In fact, it is not
# possible to import it here, as nova.virt.vmwareapi.driver calls
# CONF.register_opts() after the import chain which imports this module. This
# is not a problem as long as the import order doesn't change.
CONF = cfg.CONF

LOG = logging.getLogger(__name__)
IMAGE_API = image.API()

QUEUE_BUFFER_SIZE = 10

LINKED_CLONE_PROPERTY = 'vmware_linked_clone'

class VMwareImage(object):
    def __init__(self, image_id,
                 file_size=0,
                 os_type=constants.DEFAULT_OS_TYPE,
                 adapter_type=constants.DEFAULT_ADAPTER_TYPE,
                 disk_type=constants.DEFAULT_DISK_TYPE,
                 file_type=constants.DEFAULT_DISK_FORMAT,
                 linked_clone=None,
                 vif_model=constants.DEFAULT_VIF_MODEL):
        """VMwareImage holds values for use in building VMs.

            image_id (str): uuid of the image
            file_size (int): size of file in bytes
            os_type (str): name of guest os (use vSphere names only)
            adapter_type (str): name of the adapter's type
            disk_type (str): type of disk in thin, thick, etc
            file_type (str): vmdk or iso
            linked_clone(bool): use linked clone, or don't
        """
        self.image_id = image_id
        self.file_size = (int)(file_size)
        self.os_type = os_type
        self.adapter_type = adapter_type
        self.disk_type = disk_type
        self.file_type = file_type

        # NOTE(vui): This should be removed when we restore the
        # descriptor-based validation.
        if (self.file_type is not None and
                self.file_type not in constants.DISK_FORMATS_ALL):
            raise exception.InvalidDiskFormat(disk_format=self.file_type)

        if linked_clone is not None:
            self.linked_clone = linked_clone
        else:
            self.linked_clone = CONF.vmware.use_linked_clone
        self.vif_model = vif_model

    @property
    def file_size_in_kb(self):
        return self.file_size / units.Ki

    @property
    def file_size_in_gb(self):
        return self.file_size / units.Gi

    @property
    def is_sparse(self):
        return self.disk_type == constants.DISK_TYPE_SPARSE

    @property
    def is_iso(self):
        return self.file_type == constants.DISK_FORMAT_ISO

    @classmethod
    def from_image(cls, image_id, image_meta=None):
        """Returns VMwareImage, the subset of properties the driver uses.

        :param image_id - image id of image
        :param image_meta - image metadata we are working with
        :return: vmware image object
        :rtype: nova.virt.vmwareapi.vmware_images.VmwareImage
        """
        if image_meta is None:
            image_meta = {}

        properties = image_meta.get("properties", {})

        # calculate linked_clone flag, allow image properties to override the
        # global property set in the configurations.
        image_linked_clone = properties.get(LINKED_CLONE_PROPERTY,
                                            CONF.vmware.use_linked_clone)

        # catch any string values that need to be interpreted as boolean values
        linked_clone = strutils.bool_from_string(image_linked_clone)

        props = {
            'image_id': image_id,
            'linked_clone': linked_clone
        }

        if 'size' in image_meta:
            props['file_size'] = image_meta['size']
        if 'disk_format' in image_meta:
            props['file_type'] = image_meta['disk_format']

        props_map = {
            'vmware_ostype': 'os_type',
            'vmware_adaptertype': 'adapter_type',
            'vmware_disktype': 'disk_type',
            'hw_vif_model': 'vif_model'
        }

        for k, v in props_map.iteritems():
            if k in properties:
                props[v] = properties[k]

        return cls(**props)

def start_transfer(context, read_file_handle, data_size,
        write_file_handle=None, image_id=None, image_meta=None):
    """Start the data transfer from the reader to the writer.
    Reader writes to the pipe and the writer reads from the pipe. This means
    that the total transfer time boils down to the slower of the read/write
    and not the addition of the two times.
    """

    if not image_meta:
        image_meta = {}

    # The pipe that acts as an intermediate store of data for reader to write
    # to and writer to grab from.
    thread_safe_pipe = io_util.ThreadSafePipe(QUEUE_BUFFER_SIZE, data_size)
    # The read thread. In case of glance it is the instance of the
    # GlanceFileRead class. The glance client read returns an iterator
    # and this class wraps that iterator to provide datachunks in calls
    # to read.
    read_thread = io_util.IOThread(read_file_handle, thread_safe_pipe)

    # In case of Glance - VMware transfer, we just need a handle to the
    # HTTP Connection that is to send transfer data to the VMware datastore.
    if write_file_handle:
        write_thread = io_util.IOThread(thread_safe_pipe, write_file_handle)
    # In case of VMware - Glance transfer, we relinquish VMware HTTP file read
    # handle to Glance Client instance, but to be sure of the transfer we need
    # to be sure of the status of the image on glance changing to active.
    # The GlanceWriteThread handles the same for us.
    elif image_id:
        write_thread = io_util.GlanceWriteThread(context, thread_safe_pipe,
                image_id, image_meta)
    # Start the read and write threads.
    read_event = read_thread.start()
    write_event = write_thread.start()
    try:
        # Wait on the read and write events to signal their end
        read_event.wait()
        write_event.wait()
    except Exception as exc:
        # In case of any of the reads or writes raising an exception,
        # stop the threads so that we un-necessarily don't keep the other one
        # waiting.
        read_thread.stop()
        write_thread.stop()

        # Log and raise the exception.
        LOG.exception(exc)
        raise exception.NovaException(exc)
    finally:
        # No matter what, try closing the read and write handles, if it so
        # applies.
        read_file_handle.close()
        if write_file_handle:
            write_file_handle.close()

def upload_iso_to_datastore(iso_path, instance, **kwargs):
    LOG.debug("Uploading iso %s to datastore", iso_path,
              instance=instance)
    with open(iso_path, 'r') as iso_file:
        write_file_handle = read_write_util.VMwareHTTPWriteFile(
            kwargs.get("host"),
            kwargs.get("data_center_name"),
            kwargs.get("datastore_name"),
            kwargs.get("cookies"),
            kwargs.get("file_path"),
            os.fstat(iso_file.fileno()).st_size)

        LOG.debug("Uploading iso of size : %s ",
                  os.fstat(iso_file.fileno()).st_size)
        block_size = 0x10000
        data = iso_file.read(block_size)
        while len(data) > 0:
            write_file_handle.write(data)
            data = iso_file.read(block_size)
        write_file_handle.close()

    LOG.debug("Uploaded iso %s to datastore", iso_path,
              instance=instance)

def fetch_image(context, instance, host, dc_name, ds_name, file_path,
                cookies=None):
    """Download image from the glance image server."""
    image_ref = instance['image_ref']
    LOG.debug("Downloading image file data %(image_ref)s to the "
              "data store %(data_store_name)s",
              {'image_ref': image_ref,
               'data_store_name': ds_name},
              instance=instance)

    metadata = IMAGE_API.get(context, image_ref)
    file_size = int(metadata['size'])
    read_iter = IMAGE_API.download(context, image_ref)
    read_file_handle = read_write_util.GlanceFileRead(read_iter)

    img_id = metadata["id"]
    img_origin_name = '/tmp/' + img_id +'.tmp'
    fp = open(img_origin_name, "wb")

    start_transfer(context, read_file_handle, file_size, write_file_handle=fp)

    # convert
    #upload_file_name="/hybridimg.temp"
    if metadata["disk_format"] == 'qcow2':
        img_converted_name = '/tmp/' + img_id +'.vmdk'
        result = subprocess.call(["qemu-img convert -f qcow2 -O vmdk  " + img_origin_name + " " + img_converted_name],shell=True)
        if result == 0:
            upload_file_name = img_converted_name
            #change metadata
            metadata["disk_format"] = 'vmdk'
            file_size = os.path.getsize(img_converted_name)
            metadata["size"]=file_size
            file_path = file_path.replace('-flat.vmdk','.vmdk')

    else:
        upload_file_name = img_origin_name
    #upload to datastore
    #fpv = open(upload_file_name, "rb")
    read_file_handle_local = read_write_util.HybridFileHandle(upload_file_name, "rb")
    #read_file_handle_local = read_write_util.GlanceFileRead(fpv)

    write_file_handle = read_write_util.VMwareHTTPWriteFile(host, dc_name, ds_name, cookies, file_path, file_size)
    start_transfer(context, read_file_handle_local, file_size, write_file_handle=write_file_handle)

    #delete img
    if os.path.exists(img_origin_name):
        os.remove(img_origin_name)
    if os.path.exists(img_compressed_name):
        os.remove(img_compressed_name)
    if os.path.exists(img_converted_name):
        os.remove(img_converted_name)

    #write_file_handle = read_write_util.VMwareHTTPWriteFile(
    #    host, dc_name, ds_name, cookies, file_path, file_size)
    #start_transfer(context, read_file_handle, file_size,
    #               write_file_handle=write_file_handle)
    LOG.debug("Downloaded image file data %(image_ref)s to "
              "%(upload_name)s on the data store "
              "%(data_store_name)s",
              {'image_ref': image_ref,
               'upload_name': 'n/a' if file_path is None else file_path,
               'data_store_name': 'n/a' if ds_name is None else ds_name},
              instance=instance)

#modified by liuling
def upload_image(context, image, instance, **kwargs):
    """Upload the snapshotted vm disk file to Glance image server."""
    LOG.debug("Uploading image %s to the Glance image server", image,
              instance=instance)
    read_file_handle = read_write_util.VMwareHTTPReadFile(
                                kwargs.get("host"),
                                kwargs.get("data_center_name"),
                                kwargs.get("datastore_name"),
                                kwargs.get("cookies"),
                                kwargs.get("file_path"))
    file_size = read_file_handle.get_size()
    metadata = IMAGE_API.get(context, image)

    #modified by liuling
    #Get vmdk to a temp file
    tmpfile = "/tmp/"+metadata['id']
    fp = open(tmpfile, "wb")
    start_transfer(context, read_file_handle, file_size,
                   write_file_handle=fp)

    if read_file_handle:
       read_file_handle.close()
    if fp:
        fp.close()

     #conver vmdk to qcow2
    img_name = metadata['name']
    convert_command="qemu-img convert -f raw -O qcow2   " + tmpfile + "  /tmp/" + img_name + ".qcow2"
    result = subprocess.call([convert_command],shell=True)
    if result == 0:
        upload_file_name = "/tmp/" + img_name +".qcow2"
        file_size = os.path.getsize(upload_file_name)

    else:
        return

    # The properties and other fields that we need to set for the image.
    image_metadata = {"disk_format": "qcow2",
                      "is_public": "false",
                      "name": metadata['name'],
                      "status": "active",
                      "container_format": "bare",
                      "size": file_size,
                      "properties": {
                                     "owner_id": instance['project_id']}}
    read_file_handle_local = read_write_util.HybridFileHandle(upload_file_name, "rb")
    start_transfer(context, read_file_handle_local, file_size,
                   image_id=metadata['id'], image_meta=image_metadata)
    LOG.debug("Uploaded image %s to the Glance image server", image,
              instance=instance)


text:
module Mooset
  module Models
    class Group < Model
      attribute :id
      attribute :name
      attribute :members

      def to_s
        "#{super}::[#{self.name}](#{self.id})"
      end
    end
  end
end


text:
#include "gept3dar.h"
#include "gepnt3d.h"
#include "gevec3d.h"
#pragma pack (push, 8)

#ifndef AXAUTOEXP
#ifdef AXAUTO_DLL
	#define AXAUTOEXP __declspec(dllexport)
#else
	#define AXAUTOEXP __declspec(dllimport)
#endif
#endif

#pragma warning(disable : 4290)

class AXAUTOEXP AcAxPoint3d : public AcGePoint3d
{
public:
    // constructors
    AcAxPoint3d();
    AcAxPoint3d(double x, double y, double z);
    AcAxPoint3d(const AcGePoint3d& pt);
    AcAxPoint3d(const AcGeVector3d& pt);
   	AcAxPoint3d(const VARIANT* var) throw(HRESULT);
   	AcAxPoint3d(const VARIANT& var) throw(HRESULT);
   	AcAxPoint3d(const SAFEARRAY* safeArrayPt) throw(HRESULT);

    // equal operators
   	AcAxPoint3d& operator=(const AcGePoint3d& pt);
   	AcAxPoint3d& operator=(const AcGeVector3d& pt);
   	AcAxPoint3d& operator=(const VARIANT* var) throw(HRESULT);
   	AcAxPoint3d& operator=(const VARIANT& var) throw(HRESULT);
   	AcAxPoint3d& operator=(const SAFEARRAY* safeArrayPt) throw(HRESULT);

    // type requests
    VARIANT* asVariantPtr() const throw(HRESULT);
    SAFEARRAY* asSafeArrayPtr() const throw(HRESULT);

    VARIANT& setVariant(VARIANT& var) const throw(HRESULT);
    VARIANT* setVariant(VARIANT* var) const throw(HRESULT);

    // utilities
private:
    AcAxPoint3d& fromSafeArray(const SAFEARRAY* safeArrayPt) throw(HRESULT);
    void validateVariant(const VARIANT* var, VARIANT* reliable) const throw(HRESULT);
};

#pragma warning(disable : 4275)

class AXAUTOEXP AcAxPoint3dArray : public AcGePoint3dArray
{
public:
    // equal operators
   	AcAxPoint3dArray& append(const AcGePoint3d& pt);
   	AcAxPoint3dArray& append(const VARIANT* var) throw(HRESULT);
   	AcAxPoint3dArray& append(const VARIANT& var) throw(HRESULT);
   	AcAxPoint3dArray& append(const SAFEARRAY* safeArrayPt) throw(HRESULT);

    // type requests
    SAFEARRAY* asSafeArrayPtr() const throw(HRESULT);

    VARIANT& setVariant(VARIANT& var) const throw(HRESULT);
    VARIANT* setVariant(VARIANT* var) const throw(HRESULT);

    // utilities
private:
    AcAxPoint3dArray& fromSafeArray(const SAFEARRAY* safeArrayPt) throw(HRESULT);
    void validateVariant(const VARIANT* var, VARIANT* reliable) const throw(HRESULT);
};

#pragma pack (pop)
#endif


text:
package v1

import (
	authorization_v1 "github.com/openshift/api/authorization/v1"
	versioned "github.com/openshift/client-go/authorization/clientset/versioned"
	internalinterfaces "github.com/openshift/client-go/authorization/informers/externalversions/internalinterfaces"
	v1 "github.com/openshift/client-go/authorization/listers/authorization/v1"
	meta_v1 "k8s.io/apimachinery/pkg/apis/meta/v1"
	runtime "k8s.io/apimachinery/pkg/runtime"
	watch "k8s.io/apimachinery/pkg/watch"
	cache "k8s.io/client-go/tools/cache"
	time "time"
)

// RoleInformer provides access to a shared informer and lister for
// Roles.
type RoleInformer interface {
	Informer() cache.SharedIndexInformer
	Lister() v1.RoleLister
}

type roleInformer struct {
	factory          internalinterfaces.SharedInformerFactory
	tweakListOptions internalinterfaces.TweakListOptionsFunc
	namespace        string
}

// NewRoleInformer constructs a new informer for Role type.
// Always prefer using an informer factory to get a shared informer instead of getting an independent
// one. This reduces memory footprint and number of connections to the server.
func NewRoleInformer(client versioned.Interface, namespace string, resyncPeriod time.Duration, indexers cache.Indexers) cache.SharedIndexInformer {
	return NewFilteredRoleInformer(client, namespace, resyncPeriod, indexers, nil)
}

// NewFilteredRoleInformer constructs a new informer for Role type.
// Always prefer using an informer factory to get a shared informer instead of getting an independent
// one. This reduces memory footprint and number of connections to the server.
func NewFilteredRoleInformer(client versioned.Interface, namespace string, resyncPeriod time.Duration, indexers cache.Indexers, tweakListOptions internalinterfaces.TweakListOptionsFunc) cache.SharedIndexInformer {
	return cache.NewSharedIndexInformer(
		&cache.ListWatch{
			ListFunc: func(options meta_v1.ListOptions) (runtime.Object, error) {
				if tweakListOptions != nil {
					tweakListOptions(&options)
				}
				return client.AuthorizationV1().Roles(namespace).List(options)
			},
			WatchFunc: func(options meta_v1.ListOptions) (watch.Interface, error) {
				if tweakListOptions != nil {
					tweakListOptions(&options)
				}
				return client.AuthorizationV1().Roles(namespace).Watch(options)
			},
		},
		&authorization_v1.Role{},
		resyncPeriod,
		indexers,
	)
}

func (f *roleInformer) defaultInformer(client versioned.Interface, resyncPeriod time.Duration) cache.SharedIndexInformer {
	return NewFilteredRoleInformer(client, f.namespace, resyncPeriod, cache.Indexers{cache.NamespaceIndex: cache.MetaNamespaceIndexFunc}, f.tweakListOptions)
}

func (f *roleInformer) Informer() cache.SharedIndexInformer {
	return f.factory.InformerFor(&authorization_v1.Role{}, f.defaultInformer)
}

func (f *roleInformer) Lister() v1.RoleLister {
	return v1.NewRoleLister(f.Informer().GetIndexer())
}


text:
using System;
using Foundation;
using Agencies.Shared;
using System.Threading.Tasks;
using NomadCode.UIExtensions;

namespace Agencies.iOS
{
	public partial class GroupDetailViewController : BaseViewController
	{
		internal static class Segues
		{
			public const string Embed = "Embed";
			public const string PersonDetail = "PersonDetail";
		}

		public PersonGroup Group => FaceState.Current.CurrentGroup;

		GroupPersonCollectionViewController GroupPersonCVC => ChildViewControllers [0] as GroupPersonCollectionViewController;

		public GroupDetailViewController (IntPtr handle) : base (handle)
		{
		}

		public override void ViewWillAppear (bool animated)
		{
			base.ViewWillAppear (animated);

			if (Group != null)
			{
				GroupName.Text = Group.Name;
			}
		}

		partial void SaveAction (NSObject sender)
		{
			if (GroupName.Text.Length == 0)
			{
				this.ShowSimpleAlert ("Please input the group name");
				return;
			}

			if (Group == null)
			{
				createNewGroup ().Forget ();
			}
			else
			{
				updateGroup ().Forget ();
			}
		}

		partial void AddAction (NSObject sender)
		{
			if (GroupName.Text.Length == 0)
			{
				this.ShowSimpleAlert ("Please input the group name");
				return;
			}

			AddPerson ().Forget ();
		}

		async Task AddPerson ()
		{
			if (Group == null)
			{
				var createGroup = await this.ShowTwoOptionAlert ("Create Group?", "Do you want to create this new group?");

				if (!createGroup)
				{
					return;
				}

				await createNewGroup ();
			}

			if (Group != null) //just to make sure we succeeded in the case we created a new group above
			{
				PerformSegue (Segues.PersonDetail, this);
			}
		}

		async Task updateGroup ()
		{
			try
			{
				this.ShowHUD ("Saving & Training Group");

				await FaceClient.Shared.UpdatePersonGroup (Group, GroupName.Text);

				//_shouldExit = NO;
				await trainGroup ();

				this.ShowSimpleHUD ("Group saved");
			}
			catch (Exception)
			{
				this.HideHUD ().ShowSimpleAlert ("Failed to update group.");
			}
		}

		async Task createNewGroup ()
		{
			try
			{
				this.ShowHUD ("Creating group");

				FaceState.Current.CurrentGroup = await FaceClient.Shared.CreatePersonGroup (GroupName.Text);

				this.ShowSimpleHUD ("Group created");

				GroupPersonCVC.CollectionView.ReloadData ();
			}
			catch (Exception)
			{
				this.HideHUD ().ShowSimpleAlert ("Failed to create group.");
			}
		}

		async Task trainGroup ()
		{
			try
			{
				await FaceClient.Shared.TrainGroup (Group);

				//if (_shouldExit)
				//{
				//    this.NavigationController.PopViewController (true);
				//}
			}
			catch (Exception)
			{
				this.ShowSimpleHUD ("Failed in training group.");
			}
		}
	}
}


text:
[![CI](https://github.com/Oefenweb/ansible-pycharm/workflows/CI/badge.svg)](https://github.com/Oefenweb/ansible-pycharm/actions?query=workflow%3ACI)
[![Ansible Galaxy](http://img.shields.io/badge/ansible--galaxy-pycharm-blue.svg)](https://galaxy.ansible.com/Oefenweb/pycharm)

Set up [PyCharm](https://www.jetbrains.com/pycharm/).

#### Requirements

None

#### Variables

* `pycharm_version` [default: `2021.3.1`]: Version to install
* `pycharm_edition` [default: `community`]: Edition to install (e.g. `community`)
* `pycharm_install_prefix` [default: `/opt`]: Install prefix
* `pycharm_download_url` [default: `http://download.jetbrains.com/python`]: Download url

## Dependencies

None

#### Example

```yaml
---
- hosts: all
  roles:
    - pycharm
```

#### License

MIT

#### Author Information

Mischa ter Smitten

#### Feedback, bug-reports, requests, ...

Are [welcome](https://github.com/Oefenweb/ansible-pycharm/issues)!