text:
<?xml version="1.0" encoding="UTF-8"?><!--
	수정일                 수정자                          수정내용
  =========     =======    =================================================
  2011.8.24   	이기하     	 	테이블 표준화에 따른 수정사항 반영
  							resultMap 사용
  							BRTHDY 를			 		BRTH 로 변경
  							FRST_REGIST_PNTTM 를	 	FRST_REGISTER_PNTTM 로 변경
 2011.10.06		이기하     	보안 취약점 점검사항 반영 $->#변경
-->
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="EventCmpgn">

	<resultMap id="EventCmpgnListMap" type="egovframework.com.uss.ion.ecc.service.EventCmpgnVO">
		<result property="eventId" column="EVENT_ID"/>
		<result property="eventSvcBeginDe" column="EVENT_SVC_BGNDE"/>
		<result property="svcUseNmprCo" column="SVC_USE_NMPR_CO"/>
		<result property="chargerNm" column="CHARGER_NM"/>
		<result property="eventCn" column="EVENT_CN"/>
		<result property="frstRegisterNm" column="FRST_REGISTER_NM"/>
		<result property="frstRegisterPnttm" column="FRST_REGIST_PNTTM"/>
		<result property="frstRegisterId" column="FRST_REGISTER_ID"/>
		<result property="lastUpdusrPnttm" column="LAST_UPDT_PNTTM"/>
		<result property="lastUpdusrId" column="LAST_UPDUSR_ID"/>
		<result property="eventSvcEndDe" column="EVENT_SVC_ENDDE"/>
		<result property="eventTyCode" column="EVENT_TY_CODE"/>
		<result property="eventTyCodeNm" column="EVENT_TY_CODE_NM"/>
		<result property="prparetgCn" column="PRPARETG_CN"/>
	</resultMap>

	<resultMap id="EventCmpgnDetailMap" type="egovframework.com.uss.ion.ecc.service.EventCmpgnVO">
		<result property="eventId" column="EVENT_ID"/>
		<result property="eventSvcBeginDe" column="EVENT_SVC_BGNDE"/>
		<result property="svcUseNmprCo" column="SVC_USE_NMPR_CO"/>
		<result property="chargerNm" column="CHARGER_NM"/>
		<result property="eventCn" column="EVENT_CN"/>
		<result property="eventConfmAt" column="EVENT_CONFM_AT"/>
		<result property="eventConfmDe" column="EVENT_CONFM_DE"/>
		<result property="frstRegisterPnttm" column="FRST_REGIST_PNTTM"/>
		<result property="frstRegisterId" column="FRST_REGISTER_ID"/>
		<result property="lastUpdusrPnttm" column="LAST_UPDT_PNTTM"/>
		<result property="lastUpdusrId" column="LAST_UPDUSR_ID"/>
		<result property="eventSvcEndDe" column="EVENT_SVC_ENDDE"/>
		<result property="eventTyCode" column="EVENT_TY_CODE"/>
		<result property="eventTyCodeNm" column="EVENT_TY_CODE_NM"/>
		<result property="prparetgCn" column="PRPARETG_CN"/>
	</resultMap>

	<resultMap id="EventTnextrlHrMap" type="egovframework.com.uss.ion.ecc.service.TnextrlHrVO">
		<result property="eventId" column="EVENT_ID"/>
		<result property="eventCn" column="EVENT_CN"/>
		<result property="extrlHrId" column="EXTRL_HR_ID"/>
		<result property="extrlHrNm" column="EXTRL_HR_NM"/>
		<result property="sexdstnCode" column="SEXDSTN_CODE"/>
		<result property="sexdstnCodeNm" column="SEXDSTN_CODE_NM"/>
		<result property="occpTyCode" column="OCCP_TY_CODE"/>
		<result property="occpTyCodeNm" column="OCCP_TY_CODE_NM"/>
		<result property="psitnInsttNm" column="PSITN_INSTT_NM"/>
		<result property="brth" column="BRTHDY"/>
		<result property="areaNo" column="AREA_NO"/>
		<result property="middleTelno" column="MIDDEL_TELNO"/>
		<result property="endTelno" column="END_TELNO"/>
		<result property="emailAdres" column="EMAIL_ADRES"/>
		<result property="frstRegisterPnttm" column="FRST_REGIST_PNTTM"/>
		<result property="frstRegisterId" column="FRST_REGISTER_ID"/>
		<result property="lastUpdusrPnttm" column="LAST_UPDT_PNTTM"/>
		<result property="lastUpdusrId" column="LAST_UPDUSR_ID"/>
	</resultMap>

	<delete id="deleteEventCmpgnTnextrlHr">

			DELETE FROM COMTNEXTRLHRINFO
			WHERE EVENT_ID = #{eventId}

	</delete>

	<delete id="deleteEventCmpgn">

			DELETE FROM COMTNEVENTINFO
			WHERE EVENT_ID = #{eventId}

	</delete>

	<update id="updateEventCmpgn">
		UPDATE COMTNEVENTINFO
		SET
			EVENT_SVC_BGNDE=REPLACE(#{eventSvcBeginDe},'-',''),
			SVC_USE_NMPR_CO=#{svcUseNmprCo},
			CHARGER_NM=#{chargerNm},
			EVENT_CN=#{eventCn},
			LAST_UPDT_PNTTM=NOW(),
			LAST_UPDUSR_ID=#{lastUpdusrId},
			EVENT_SVC_ENDDE=REPLACE(#{eventSvcEndDe},'-',''),
			EVENT_TY_CODE=#{eventTyCode},
			EVENT_CONFM_AT=#{eventConfmAt},
			EVENT_CONFM_DE=REPLACE(#{eventConfmDe},'-',''),
			PRPARETG_CN=#{prparetgCn}
		WHERE EVENT_ID = #{eventId}
	</update>

	<select id="selectEventCmpgnDetail" parameterType="egovframework.com.uss.ion.ecc.service.EventCmpgnVO" resultMap="EventCmpgnDetailMap">
		SELECT
			EVENT_ID,
			TO_CHAR(TO_DATE(A.EVENT_SVC_BGNDE,'YYYYmmdd'), 'YYYY-mm-dd') EVENT_SVC_BGNDE,
			SVC_USE_NMPR_CO,
			CHARGER_NM,
			EVENT_CN,
			EVENT_CONFM_AT,
			TO_CHAR(TO_DATE(EVENT_CONFM_DE,'YYYYmmdd'),'YYYY-mm-dd') EVENT_CONFM_DE,
			FRST_REGIST_PNTTM,
			FRST_REGISTER_ID,
			LAST_UPDT_PNTTM,
			LAST_UPDUSR_ID,
			TO_CHAR(TO_DATE(A.EVENT_SVC_ENDDE,'YYYYmmdd'), 'YYYY-mm-dd') EVENT_SVC_ENDDE,
			EVENT_TY_CODE,
			B.CODE_NM AS EVENT_TY_CODE_NM,
			PRPARETG_CN
		FROM COMTNEVENTINFO A
		LEFT OUTER JOIN
				(SELECT CODE_ID, CODE, CODE_NM FROM
					COMTCCMMNDETAILCODE WHERE CODE_ID = 'COM035' AND USE_AT='Y') b
				ON a.EVENT_TY_CODE = b.CODE
		WHERE 1=1
		AND EVENT_ID = #{eventId}
	</select>

	<select id="selectEventCmpgnList" parameterType="egovframework.com.uss.ion.ecc.service.EventCmpgnVO" resultMap="EventCmpgnListMap">

		SELECT
			A.EVENT_ID,
			TO_CHAR(TO_DATE(A.EVENT_SVC_BGNDE,'YYYYmmdd'), 'YYYY-mm-dd') EVENT_SVC_BGNDE,
			A.SVC_USE_NMPR_CO,
			A.CHARGER_NM,
			A.EVENT_CN,
			TO_CHAR(A.FRST_REGIST_PNTTM,'YYYYmmdd') FRST_REGIST_PNTTM,
			A.FRST_REGISTER_ID,
			(SELECT USER_NM FROM COMTNEMPLYRINFO WHERE ESNTL_ID = A.FRST_REGISTER_ID) FRST_REGISTER_NM,
			A.LAST_UPDT_PNTTM,
			A.LAST_UPDUSR_ID,
			TO_CHAR(TO_DATE(A.EVENT_SVC_ENDDE,'YYYYmmdd'), 'YYYY-mm-dd') EVENT_SVC_ENDDE,
			A.EVENT_TY_CODE,
			B.CODE_NM AS EVENT_TY_CODE_NM,
			A.PRPARETG_CN
		FROM COMTNEVENTINFO A
		LEFT OUTER JOIN
				(SELECT CODE_ID, CODE, CODE_NM FROM
					COMTCCMMNDETAILCODE WHERE CODE_ID = 'COM035' AND USE_AT='Y') b
				ON a.EVENT_TY_CODE = b.CODE
		WHERE 1=1

		<if test="searchCondition == 0">
			AND EVENT_CN LIKE CONCAT ('%', #{searchKeyword},'%')
		</if>

	 	<if test="searchCondition == 1">
	 		AND  FRST_REGISTER_ID IN (SELECT ESNTL_ID FROM COMTNEMPLYRINFO WHERE USER_NM LIKE CONCAT ('%', #{searchKeyword},'%') )
	 	</if>

		ORDER BY A.FRST_REGIST_PNTTM DESC
		LIMIT #{recordCountPerPage} OFFSET #{firstIndex}

	</select>

	<select id="selectEventCmpgnListCnt" parameterType="egovframework.com.uss.ion.ecc.service.EventCmpgnVO" resultType="int">
		SELECT
		COUNT(*) totcnt
		FROM COMTNEVENTINFO
		WHERE 1=1

		<if test="searchCondition == 0">
			AND EVENT_CN LIKE CONCAT ('%', #{searchKeyword},'%')
		</if>

	 	<if test="searchCondition == 1">
	 		AND  FRST_REGISTER_ID IN (SELECT ESNTL_ID FROM COMTNEMPLYRINFO WHERE USER_NM LIKE CONCAT ('%', #{searchKeyword},'%') )
	 	</if>

	</select>

	<insert id="insertEventCmpgn">

	INSERT INTO COMTNEVENTINFO (
		EVENT_ID,
		EVENT_SVC_BGNDE,
		SVC_USE_NMPR_CO,
		CHARGER_NM,
		EVENT_CN,
		EVENT_SVC_ENDDE,
		EVENT_TY_CODE,
		PRPARETG_CN,
		EVENT_CONFM_AT,
		EVENT_CONFM_DE,
		FRST_REGIST_PNTTM,
		FRST_REGISTER_ID,
		LAST_UPDT_PNTTM,
		LAST_UPDUSR_ID
	)VALUES(
		#{eventId},
		REPLACE(#{eventSvcBeginDe},'-',''),
		#{svcUseNmprCo},
		#{chargerNm},
		#{eventCn},
		REPLACE(#{eventSvcEndDe},'-',''),
		#{eventTyCode},
		#{prparetgCn},
		#{eventConfmAt},
		REPLACE(#{eventConfmDe},'-',''),
		NOW(),
		#{frstRegisterId},
		NOW(),
		#{lastUpdusrId}
	)

	</insert>

	<delete id="deleteTnextrlHr">

			DELETE FROM COMTNEXTRLHRINFO
			WHERE EXTRL_HR_ID = #{extrlHrId}

	</delete>

	<update id="updateTnextrlHr">
		UPDATE COMTNEXTRLHRINFO
		SET
			SEXDSTN_CODE=#{sexdstnCode},
			EXTRL_HR_NM=#{extrlHrNm},
			AREA_NO=#{areaNo},
			MIDDLE_TELNO=#{middleTelno},
			END_TELNO=#{endTelno},
			EMAIL_ADRES=#{emailAdres},
			OCCP_TY_CODE=#{occpTyCode},
			BRTHDY=#{brth},
			PSITN_INSTT_NM=#{psitnInsttNm},
			LAST_UPDT_PNTTM = NOW(),
			LAST_UPDUSR_ID = #{lastUpdusrId}
		WHERE EXTRL_HR_ID = #{extrlHrId}
	</update>

	<select id="selectTnextrlHrDetail" parameterType="egovframework.com.uss.ion.ecc.service.TnextrlHrVO" resultMap="EventTnextrlHrMap">
		SELECT
			A.EXTRL_HR_ID,
			A.EVENT_ID,
			(SELECT EVENT_CN FROM COMTNEVENTINFO WHERE EVENT_ID=A.EVENT_ID ) EVENT_CN,
			A.SEXDSTN_CODE,
			b.CODE_NM AS SEXDSTN_CODE_NM,
			A.EXTRL_HR_NM,
			A.AREA_NO,
			A.MIDDLE_TELNO,
			A.END_TELNO,
			A.EMAIL_ADRES,
			A.FRST_REGIST_PNTTM,
			A.FRST_REGISTER_ID,
			A.LAST_UPDT_PNTTM,
			A.LAST_UPDUSR_ID,
			A.OCCP_TY_CODE,
			c.CODE_NM AS OCCP_TY_CODE_NM,
			A.BRTHDY	,
			A.PSITN_INSTT_NM
		FROM COMTNEXTRLHRINFO A
		LEFT OUTER JOIN
				(SELECT CODE_ID, CODE, CODE_NM FROM
					COMTCCMMNDETAILCODE WHERE CODE_ID = 'COM014' AND USE_AT='Y') b
				ON a.SEXDSTN_CODE = b.CODE
		LEFT OUTER JOIN
				(SELECT CODE_ID, CODE, CODE_NM FROM
					COMTCCMMNDETAILCODE WHERE CODE_ID = 'COM034' AND USE_AT='Y') c
				ON a.OCCP_TY_CODE = c.CODE
		WHERE 1=1
		AND A.EXTRL_HR_ID = #{extrlHrId}
	</select>

	<select id="selectTnextrlHrList" parameterType="egovframework.com.uss.ion.ecc.service.TnextrlHrVO" resultMap="EventTnextrlHrMap">

		SELECT
			A.SEXDSTN_CODE,
			B.CODE_NM AS SEXDSTN_CODE_NM,
			A.EXTRL_HR_NM,
			A.EMAIL_ADRES,
			A.OCCP_TY_CODE,
			C.CODE_NM AS OCCP_TY_CODE_NM,
			A.PSITN_INSTT_NM,
			A.EXTRL_HR_ID,
			A.EVENT_ID,
			A.BRTHDY,
			A.AREA_NO,
			A.MIDDLE_TELNO,
			A.END_TELNO,
			TO_CHAR(A.FRST_REGIST_PNTTM,'YYYYmmdd') AS FRST_REGIST_PNTTM,
			A.FRST_REGISTER_ID,
			(SELECT USER_NM FROM COMTNEMPLYRINFO WHERE ESNTL_ID = A.FRST_REGISTER_ID) FRST_REGISTER_NM,
			A.LAST_UPDT_PNTTM,
			A.LAST_UPDUSR_ID
		FROM COMTNEXTRLHRINFO A
		LEFT OUTER JOIN
				(SELECT CODE_ID, CODE, CODE_NM FROM
					COMTCCMMNDETAILCODE WHERE CODE_ID = 'COM014' AND USE_AT='Y') b
				ON a.SEXDSTN_CODE = b.CODE
		LEFT OUTER JOIN
				(SELECT CODE_ID, CODE, CODE_NM FROM
					COMTCCMMNDETAILCODE WHERE CODE_ID = 'COM034' AND USE_AT='Y') c
				ON a.OCCP_TY_CODE = c.CODE
		WHERE 1=1

			 <if test="eventId != null and eventId != ''">
			 		AND A.EVENT_ID = #{eventId}
			 </if>
	 		<if test="searchCondition == 0">
 				AND EXTRL_HR_NM LIKE CONCAT ('%', #{searchKeyword},'%')
	 		</if>
	 		<if test="searchCondition == 1">
 				AND PSITN_INSTT_NM LIKE CONCAT ('%', #{searchKeyword},'%')
	 		</if>

		ORDER BY A.FRST_REGIST_PNTTM DESC
		LIMIT #{recordCountPerPage} OFFSET #{firstIndex}

	</select>

	<select id="selectTnextrlHrListCnt" parameterType="egovframework.com.uss.ion.ecc.service.TnextrlHrVO" resultType="int">
		SELECT
		COUNT(*) totcnt
		FROM COMTNEXTRLHRINFO
		WHERE 1=1
	 		<if test="eventId != null and eventId != ''">
			 		AND EVENT_ID = #{eventId}
			 </if>
	 		<if test="searchCondition == 0">
 				AND EXTRL_HR_NM LIKE CONCAT ('%', #{searchKeyword},'%')
	 		</if>
	 		<if test="searchCondition == 1">
 				AND PSITN_INSTT_NM LIKE CONCAT ('%', #{searchKeyword},'%')
	 		</if>

	</select>

	<insert id="insertTnextrlHr">

		INSERT INTO COMTNEXTRLHRINFO (
			EVENT_ID,
			EXTRL_HR_ID,
			SEXDSTN_CODE,
			EXTRL_HR_NM,
			AREA_NO,
			MIDDLE_TELNO,
			END_TELNO,
			EMAIL_ADRES,
			OCCP_TY_CODE,
			BRTHDY,
			PSITN_INSTT_NM,
			FRST_REGIST_PNTTM,
			FRST_REGISTER_ID,
			LAST_UPDT_PNTTM,
			LAST_UPDUSR_ID
		)VALUES(
			#{eventId},
			#{extrlHrId},
			#{sexdstnCode},
			#{extrlHrNm},
			#{areaNo},
			#{middleTelno},
			#{endTelno},
			#{emailAdres},
			#{occpTyCode},
			#{brth},
			#{psitnInsttNm},
			NOW(),
			#{frstRegisterId},
			NOW(),
			#{lastUpdusrId}
		)

	</insert>

</mapper>


text:
<?php

class MY_Model_GuessTest extends PHPUnit_Framework_TestCase
{

    private $model;

    public function setUp()
    {}

    public function testConstructorExecutesGuessNameMethod()
    {
        $model = new SubscribersModel(true);
        $this->assertEquals('subscribers', $model->getTableName());
    }

    public function testNoGuessIfTableNameExistsAlready()
    {
        $model = new GuestbookModel(true);
        $this->assertEquals('guest', $model->getTableName());
    }
}

redpajama_set_name: RedPajamaGithub


text:
const each = require("./each.js");
const flatten = require("./flatten.js");
const isBool = require("../object/isBool.js");

/**
 * Get a new array of values transformed by a function.
 * @param   {Object}    col         The collection to evaluate
 * @param   {Function}  fn          The function to apply
 * @param   {Object}    scope       The context to bound to
 * @param   {Boolean}   deep        If true, make iteration on nested arrays and objects
 * @returns {Array}                 The new array of values
 */
function map(col, fn, scope, deep)
{
    deep = deep || isBool(scope) ? scope : false;
    var ret = [];

    each(deep ? flatten(col) : col, function (value, index, ref)
    {
        ret.push(fn.call(scope || this, value, index, ref));
    });

    return ret;
}

module.exports = map;


text:
Package.describe({
  summary: 'Login service for Meetup accounts',
  version: '1.5.0',
});

Package.onUse(api => {
  api.use('ecmascript');
  api.use('accounts-base', ['client', 'server']);
  // Export Accounts (etc) to packages using this one.
  api.imply('accounts-base', ['client', 'server']);

  api.use('accounts-oauth', ['client', 'server']);
  api.use('meetup-oauth');
  api.imply('meetup-oauth');

  api.use(
    ['accounts-ui', 'meetup-config-ui'],
    ['client', 'server'],
    { weak: true }
  );
  api.addFiles('notice.js');
  api.addFiles('meetup.js');
});


text:
$successexitcodes = (0, 1605, 1614, 1641, 3010)

$spec = @{
    options = @{
        allow_empty_checksums = @{ type = "bool"; default = $false }
        allow_multiple = @{ type = "bool"; default = $false }
        allow_prerelease = @{ type = "bool"; default = $false }
        architecture = @{ type = "str"; default = "default"; choices = "default", "x86" }
        install_args = @{ type = "str" }
        ignore_checksums = @{ type = "bool"; default = $false }
        ignore_dependencies = @{ type = "bool"; default = $false }
        force = @{ type = "bool"; default = $false }
        name = @{ type = "list"; elements = "str"; required = $true }
        package_params = @{ type = "str"; aliases = @("params") }
        pinned = @{ type = "bool" }
        proxy_url = @{ type = "str" }
        proxy_username = @{ type = "str" }
        proxy_password = @{ type = "str"; no_log = $true }
        skip_scripts = @{  type = "bool"; default = $false }
        source = @{ type = "str" }
        source_username = @{ type = "str" }
        source_password = @{ type = "str"; no_log = $true }
        state = @{ type = "str"; default = "present"; choices = "absent", "downgrade", "latest", "present", "reinstalled" }
        timeout = @{ type = "int"; default = 2700; aliases = @("execution_timeout") }
        validate_certs = @{ type = "bool"; default = $true }
        version = @{ type = "str" }
    }
    supports_check_mode = $true
}
$module = [Ansible.Basic.AnsibleModule]::Create($args, $spec)

$allow_empty_checksums = $module.Params.allow_empty_checksums
$allow_multiple = $module.Params.allow_multiple
$allow_prerelease = $module.Params.allow_prerelease
$architecture = $module.Params.architecture
$install_args = $module.Params.install_args
$ignore_checksums = $module.Params.ignore_checksums
$ignore_dependencies = $module.Params.ignore_dependencies
$force = $module.Params.force
$name = $module.Params.name
$package_params = $module.Params.package_params
$pinned = $module.Params.pinned
$proxy_url = $module.Params.proxy_url
$proxy_username = $module.Params.proxy_username
$proxy_password = $module.Params.proxy_password
$skip_scripts = $module.Params.skip_scripts
$source = $module.Params.source
$source_username = $module.Params.source_username
$source_password = $module.Params.source_password
$state = $module.Params.state
$timeout = $module.Params.timeout
$validate_certs = $module.Params.validate_certs
$version = $module.Params.version

$module.Result.rc = 0

if (-not $validate_certs) {
    [System.Net.ServicePointManager]::ServerCertificateValidationCallback = { $true }
}

Function Get-CommonChocolateyArguments {
    # uses global vars like check_mode and verbosity to control the common args
    # run with Chocolatey
    $arguments = [System.Collections.ArrayList]@("--yes", "--no-progress")
    # global vars that control the arguments
    if ($module.CheckMode) {
        $arguments.Add("--what-if") > $null
    }
    if ($module.Verbosity -gt 4) {
        $arguments.Add("--debug") > $null
        $arguments.Add("--verbose") > $null
    } elseif ($module.Verbosity -gt 3) {
        $arguments.Add("--verbose") > $null
    } else {
        $arguments.Add("--limit-output") > $null
    }

    return ,$arguments
}

Function Get-InstallChocolateyArguments {
    param(
        [bool]$allow_downgrade,
        [bool]$allow_empty_checksums,
        [bool]$allow_multiple,
        [bool]$allow_prerelease,
        [String]$architecture,
        [bool]$force,
        [bool]$ignore_dependencies,
        [String]$install_args,
        [String]$package_params,
        [String]$proxy_url,
        [String]$proxy_username,
        [String]$proxy_password,
        [bool]$skip_scripts,
        [String]$source,
        [String]$source_usename,
        [String]$source_password,
        [int]$timeout,
        [String]$version
    )
    # returns an ArrayList of common arguments for install/updated a Chocolatey
    # package
    $arguments = [System.Collections.ArrayList]@("--fail-on-unfound")
    $common_args = Get-CommonChocolateyArguments
    $arguments.AddRange($common_args)

    if ($allow_downgrade) {
        $arguments.Add("--allow-downgrade") > $null
    }
    if ($allow_empty_checksums) {
        $arguments.Add("--allow-empty-checksums") > $null
    }
    if ($allow_multiple) {
        $arguments.Add("--allow-multiple") > $null
    }
    if ($allow_prerelease) {
        $arguments.Add("--prerelease") > $null
    }
    if ($architecture -eq "x86") {
        $arguments.Add("--x86") > $null
    }
    if ($force) {
        $arguments.Add("--force") > $null
    }
    if ($ignore_checksums) {
        $arguments.Add("--ignore-checksums") > $null
    }
    if ($ignore_dependencies) {
        $arguments.Add("--ignore-dependencies") > $null
    }
    if ($install_args) {
        $arguments.Add("--install-arguments") > $null
        $arguments.add($install_args) > $null
    }
    if ($package_params) {
        $arguments.Add("--package-parameters") > $null
        $arguments.Add($package_params) > $null
    }
    if ($proxy_url) {
        $arguments.Add("--proxy") > $null
        $arguments.Add($proxy_url) > $null
    }
    if ($proxy_username) {
        $arguments.Add("--proxy-user") > $null
        $arguments.Add($proxy_username) > $null
    }
    if ($proxy_password) {
        $arguments.Add("--proxy-password") > $null
        $arguments.Add($proxy_password) > $null
    }
    if ($skip_scripts) {
        $arguments.Add("--skip-scripts") > $null
    }
    if ($source) {
        $arguments.Add("--source") > $null
        $arguments.Add($source) > $null
    }
    if ($source_username) {
        $arguments.Add("--user") > $null
        $arguments.Add($source_username) > $null
        $arguments.Add("--password") > $null
        $arguments.Add($source_password) > $null
    }
    if ($null -ne $timeout) {
        $arguments.Add("--timeout") > $null
        $arguments.Add($timeout) > $null
    }
    if ($version) {
        $arguments.Add("--version") > $null
        $arguments.Add($version) > $null
    }

    return ,$arguments
}

Function Install-Chocolatey {
    param(
        [String]$proxy_url,
        [String]$proxy_username,
        [String]$proxy_password,
        [String]$source,
        [String]$source_username,
        [String]$source_password,
        [String]$version
    )

    $choco_app = Get-Command -Name choco.exe -CommandType Application -ErrorAction SilentlyContinue
    if ($null -eq $choco_app) {
        # We need to install chocolatey
        # Enable TLS1.1/TLS1.2 if they're available but disabled (eg. .NET 4.5)
        $security_protocols = [Net.ServicePointManager]::SecurityProtocol -bor [Net.SecurityProtocolType]::SystemDefault
        if ([Net.SecurityProtocolType].GetMember("Tls11").Count -gt 0) {
            $security_protocols = $security_protcols -bor [Net.SecurityProtocolType]::Tls11
        }
        if ([Net.SecurityProtocolType].GetMember("Tls12").Count -gt 0) {
            $security_protocols = $security_protcols -bor [Net.SecurityProtocolType]::Tls12
        }
        [Net.ServicePointManager]::SecurityProtocol = $security_protocols

        $client = New-Object -TypeName System.Net.WebClient
        $new_environment = @{}
        if ($proxy_url) {
            # the env values are used in the install.ps1 script when getting
            # external dependencies
            $new_environment.chocolateyProxyLocation = $proxy_url
            $web_proxy = New-Object -TypeName System.Net.WebProxy -ArgumentList $proxy_url, $true
            $client.Proxy = $web_proxy
            if ($proxy_username -and $proxy_password) {
                $new_environment.chocolateyProxyUser = $proxy_username
                $new_environment.chocolateyProxyPassword = $proxy_password
                $sec_proxy_password = ConvertTo-SecureString -String $proxy_password -AsPlainText -Force
                $web_proxy.Credentials = New-Object -TypeName System.Management.Automation.PSCredential -ArgumentList $proxy_username, $sec_proxy_password
            }
        }
        if ($version) {
            # Set the chocolateyVersion environment variable when bootstrapping Chocolatey to install that specific
            # version.
            $new_environment.chocolateyVersion = $version
        }

        $environment = @{}
        if ($new_environment.Count -gt 0) {
            $environment = [Environment]::GetEnvironmentVariables()
            $environment += $new_environment
        }

        if ($source) {
            # check if the URL already contains the path to PS script
            if ($source.EndsWith(".ps1")) {
                $script_url = $source
            } else {
                # chocolatey server automatically serves a script at
                # http://host/install.ps1, we rely on this behaviour when a
                # user specifies the choco source URL. If a custom URL or file
                # path is desired, they should use win_get_url/win_shell
                # manually
                # we need to strip the path off the URL and append install.ps1
                $uri_info = [System.Uri]$source
                $script_url = "$($uri_info.Scheme)://$($uri_info.Authority)/install.ps1"
            }
            if ($source_username) {
                # while the choco-server does not require creds on install.ps1,
                # Net.WebClient will only send the credentials if the initial
                # req fails so we will add the creds in case the source URL
                # is not choco-server and requires authentication
                $sec_source_password = ConvertTo-SecureString -String $source_password -AsPlainText -Force
                $client.Credentials = New-Object -TypeName System.Management.Automation.PSCredential -ArgumentList $source_username, $sec_source_password
            }
        } else {
            $script_url = "https://chocolatey.org/install.ps1"
        }

        try {
            $install_script = $client.DownloadString($script_url)
        } catch {
            $module.FailJson("Failed to download Chocolatey script from '$script_url'; $($_.Exception.Message)", $_)
        }
        if (-not $module.CheckMode) {
            $res = Run-Command -command "powershell.exe -" -stdin $install_script -environment $environment
            if ($res.rc -ne 0) {
                $module.Result.rc = $res.rc
                $module.Result.stdout = $res.stdout
                $module.Result.stderr = $res.stderr
                $module.FailJson("Chocolatey bootstrap installation failed.")
            }
            $module.Warn("Chocolatey was missing from this system, so it was installed during this task run.")
        }
        $module.Result.changed = $true

        # locate the newly installed choco.exe
        $choco_app = Get-Command -Name choco.exe -CommandType Application -ErrorAction SilentlyContinue
        if ($null -eq $choco_app) {
            $choco_path = $env:ChocolateyInstall
            if ($null -ne $choco_path) {
                $choco_path = "$choco_path\bin\choco.exe"
            } else {
                $choco_path = "$env:SYSTEMDRIVE\ProgramData\Chocolatey\bin\choco.exe"
            }

            $choco_app = Get-Command -Name $choco_path -CommandType Application -ErrorAction SilentlyContinue
        }
    }
    if ($module.CheckMode -and $null -eq $choco_app) {
        $module.Result.skipped = $true
        $module.Result.msg = "Skipped check mode run on win_chocolatey as choco.exe cannot be found on the system"
        $module.ExitJson()
    }

    if (-not (Test-Path -Path $choco_app.Path)) {
        $module.FailJson("Failed to find choco.exe, make sure it is added to the PATH or the env var 'ChocolateyInstall' is set")
    }

    $actual_version = (Get-ChocolateyPackageVersion -choco_path $choco_app.Path -name chocolatey)[0]
    try {
        # The Chocolatey version may not be in the strict form of major.minor.build and will fail to cast to
        # System.Version. We want to warn if this is the case saying module behaviour may be incorrect.
        $actual_version = [Version]$actual_version
    } catch {
        $module.Warn("Failed to parse Chocolatey version '$actual_version' for checking module requirements, module may not work correctly: $($_.Exception.Message)")
        $actual_version = $null
    }
    if ($null -ne $actual_version -and $actual_version -lt [Version]"0.10.5") {
        if ($module.CheckMode) {
            $module.Result.skipped = $true
            $module.Result.msg = "Skipped check mode run on win_chocolatey as choco.exe is too old, a real run would have upgraded the executable. Actual: '$actual_version', Minimum Version: '0.10.5'"
            $module.ExitJson()
        }
        $module.Warn("Chocolatey was older than v0.10.5 so it was upgraded during this task run.")
        Update-ChocolateyPackage -choco_path $choco_app.Path -packages @("chocolatey") `
            -proxy_url $proxy_url -proxy_username $proxy_username `
            -proxy_password $proxy_password -source $source `
            -source_username $source_username -source_password $source_password
    }

    return $choco_app.Path
}

Function Get-ChocolateyPackageVersion {
    Param (
        [Parameter(Mandatory=$true)]
        [System.String]
        $choco_path,

        [Parameter(Mandatory=$true, ValueFromPipeline=$true)]
        [System.String]
        $name
    )

    Begin {
        # Due to https://github.com/chocolatey/choco/issues/1843, we get a list of all the installed packages and
        # filter it ourselves. This has the added benefit of being quicker when dealing with multiple packages as we
        # only call choco.exe once.
        $command = Argv-ToString -arguments @($choco_path, 'list', '--local-only', '--limit-output', '--all-versions')
        $res = Run-Command -command $command

        # Chocolatey v0.10.12 introduced enhanced exit codes, 2 means no results, e.g. no package
        if ($res.rc -notin @(0, 2)) {
            $module.Result.command = $command
            $module.Result.rc = $res.rc
            $module.Result.stdout = $res.stdout
            $module.Result.stderr = $res.stderr
            $module.FailJson('Error checking installation status for chocolatey packages')
        }

        # Parse the stdout to get a list of all packages installed and their versions.
        $installed_packages = $res.stdout.Trim().Split([System.Environment]::NewLine) | ForEach-Object -Process {
            if ($_.Contains('|')) {  # Sanity in case further output is added in the future.
                $package_split = $_.Split('|', 2)
                @{ Name = $package_split[0]; Version = $package_split[1] }
            }
        }

        # Create a hashtable that will store our package version info.
        $installed_info = @{}
    }

    Process {
        if ($name -eq 'all') {
            # All is a special package name that means all installed packages, we set a dummy version so absent, latest
            # and downgrade will run with all.
            $installed_info.'all' = @('0.0.0')
        } else {
            $package_info = $installed_packages | Where-Object { $_.Name -eq $name }
            if ($null -eq $package_info) {
                $installed_info.$name = $null
            } else {
                $installed_info.$name = @($package_info.Version)
            }
        }
    }

    End {
        return $installed_info
    }
}

Function Get-ChocolateyPin {
    param(
        [Parameter(Mandatory=$true)][String]$choco_path
    )

    $command = Argv-ToString -arguments @($choco_path, "pin", "list", "--limit-output")
    $res = Run-Command -command $command
    if ($res.rc -ne 0) {
        $module.Result.command = $command
        $module.Result.rc = $res.rc
        $module.Result.stdout = $res.stdout
        $module.Result.stderr = $res.stderr
        $module.FailJson("Error getting list of pinned packages")
    }

    $stdout = $res.stdout.Trim()
    $pins = @{}

    $stdout.Split("`r`n", [System.StringSplitOptions]::RemoveEmptyEntries) | ForEach-Object {
        $package = $_.Substring(0, $_.LastIndexOf("|"))
        $version = $_.Substring($_.LastIndexOf("|") + 1)

        if ($pins.ContainsKey($package)) {
            $pinned_versions = $pins.$package
        } else {
            $pinned_versions = [System.Collections.Generic.List`1[String]]@()
        }
        $pinned_versions.Add($version)
        $pins.$package = $pinned_versions
    }
    return ,$pins
}

Function Set-ChocolateyPin {
    param(
        [Parameter(Mandatory=$true)][String]$choco_path,
        [Parameter(Mandatory=$true)][String]$name,
        [Switch]$pin,
        [String]$version
    )
    if ($pin) {
        $action = "add"
        $err_msg = "Error pinning package '$name'"
    } else {
        $action = "remove"
        $err_msg = "Error unpinning package '$name'"
    }

    $arguments = [System.Collections.ArrayList]@($choco_path, "pin", $action, "--name", $name)
    if ($version) {
        $err_msg += " at '$version'"
        $arguments.Add("--version") > $null
        $arguments.Add($version) > $null
    }
    $common_args = Get-CommonChocolateyArguments
    $arguments.AddRange($common_args)

    $command = Argv-ToString -arguments $arguments
    $res = Run-Command -command $command
    if ($res.rc -ne 0) {
        $module.Result.command = $command
        $module.Result.rc = $res.rc
        $module.Result.stdout = $res.stdout
        $module.Result.stderr = $res.stderr
        $module.FailJson($err_msg)
    }
    $module.result.changed = $true
}

Function Update-ChocolateyPackage {
    param(
        [Parameter(Mandatory=$true)][String]$choco_path,
        [Parameter(Mandatory=$true)][String[]]$packages,
        [bool]$allow_downgrade,
        [bool]$allow_empty_checksums,
        [bool]$allow_multiple,
        [bool]$allow_prerelease,
        [String]$architecture,
        [bool]$force,
        [bool]$ignore_checksums,
        [bool]$ignore_dependencies,
        [String]$install_args,
        [String]$package_params,
        [String]$proxy_url,
        [String]$proxy_username,
        [String]$proxy_password,
        [bool]$skip_scripts,
        [String]$source,
        [String]$source_username,
        [String]$source_password,
        [int]$timeout,
        [String]$version
    )

    $arguments = [System.Collections.ArrayList]@($choco_path, "upgrade")
    $arguments.AddRange($packages)

    $common_params = @{
        allow_downgrade = $allow_downgrade
        allow_empty_checksums = $allow_empty_checksums
        allow_multiple = $allow_multiple
        allow_prerelease = $allow_prerelease
        architecture = $architecture
        force = $force
        ignore_checksums = $ignore_checksums
        ignore_dependencies = $ignore_dependencies
        install_args = $install_args
        package_params = $package_params
        proxy_url = $proxy_url
        proxy_username = $proxy_username
        proxy_password = $proxy_password
        skip_scripts = $skip_scripts
        source = $source
        source_username = $source_username
        source_password = $source_password
        timeout = $timeout
        version = $version
    }
    $common_args = Get-InstallChocolateyArguments @common_params
    $arguments.AddRange($common_args)

    $command = Argv-ToString -arguments $arguments
    $res = Run-Command -command $command
    $module.Result.rc = $res.rc
    if ($res.rc -notin $successexitcodes) {
        $module.Result.command = $command
        $module.Result.stdout = $res.stdout
        $module.Result.stderr = $res.stderr
        $module.FailJson("Error updating package(s) '$($packages -join ", ")'")
    }

    if ($module.Verbosity -gt 1) {
        $module.Result.stdout = $res.stdout
    }

    if ($res.stdout -match ' upgraded (\d+)/\d+ package') {
        if ($Matches[1] -gt 0) {
            $module.Result.changed = $true
        }
    }
    # need to set to false in case the rc is not 0 and a failure didn't actually occur
    $module.Result.failed = $false
}

Function Install-ChocolateyPackage {
    param(
        [Parameter(Mandatory=$true)][String]$choco_path,
        [Parameter(Mandatory=$true)][String[]]$packages,
        [bool]$allow_downgrade,
        [bool]$allow_empty_checksums,
        [bool]$allow_multiple,
        [bool]$allow_prerelease,
        [String]$architecture,
        [bool]$force,
        [bool]$ignore_checksums,
        [bool]$ignore_dependencies,
        [String]$install_args,
        [String]$package_params,
        [String]$proxy_url,
        [String]$proxy_username,
        [String]$proxy_password,
        [bool]$skip_scripts,
        [String]$source,
        [String]$source_username,
        [String]$source_password,
        [int]$timeout,
        [String]$version
    )

    $arguments = [System.Collections.ArrayList]@($choco_path, "install")
    $arguments.AddRange($packages)
    $common_params = @{
        allow_downgrade = $allow_downgrade
        allow_empty_checksums = $allow_empty_checksums
        allow_multiple = $allow_multiple
        allow_prerelease = $allow_prerelease
        architecture = $architecture
        force = $force
        ignore_checksums = $ignore_checksums
        ignore_dependencies = $ignore_dependencies
        install_args = $install_args
        package_params = $package_params
        proxy_url = $proxy_url
        proxy_username = $proxy_username
        proxy_password = $proxy_password
        skip_scripts = $skip_scripts
        source = $source
        source_username = $source_username
        source_password = $source_password
        timeout = $timeout
        version = $version
    }
    $common_args = Get-InstallChocolateyArguments @common_params
    $arguments.AddRange($common_args)

    $command = Argv-ToString -arguments $arguments
    $res = Run-Command -command $command
    $module.Result.rc = $res.rc
    if ($res.rc -notin $successexitcodes) {
        $module.Result.command = $command
        $module.Result.stdout = $res.stdout
        $module.Result.stderr = $res.stderr
        $module.FailJson("Error installing package(s) '$($packages -join ', ')'")
    }

    if ($module.Verbosity -gt 1) {
        $module.Result.stdout = $res.stdout
    }

    $module.Result.changed = $true
    # need to set to false in case the rc is not 0 and a failure didn't actually occur
    $module.Result.failed = $false
}

Function Uninstall-ChocolateyPackage {
    param(
        [Parameter(Mandatory=$true)][String]$choco_path,
        [Parameter(Mandatory=$true)][String[]]$packages,
        [bool]$force,
        [String]$package_params,
        [bool]$skip_scripts,
        [int]$timeout,
        [String]$version
    )

    $arguments = [System.Collections.ArrayList]@($choco_path, "uninstall")
    $arguments.AddRange($packages)
    $common_args = Get-CommonChocolateyArguments
    $arguments.AddRange($common_args)

    if ($force) {
        $arguments.Add("--force") > $null
    }
    if ($package_params) {
        $arguments.Add("--package-params") > $null
        $arguments.Add($package_params) > $null
    }
    if ($skip_scripts) {
        $arguments.Add("--skip-scripts") > $null
    }
    if ($null -ne $timeout) {
        $arguments.Add("--timeout") > $null
        $arguments.Add($timeout) > $null
    }
    if ($version) {
        # Need to set allow-multiple to make sure choco doesn't uninstall all versions
        $arguments.Add("--allow-multiple") > $null
        $arguments.Add("--version") > $null
        $arguments.Add($version) > $null
    } else {
        $arguments.Add("--all-versions") > $null
    }

    $command = Argv-ToString -arguments $arguments
    $res = Run-Command -command $command
    $module.Result.rc = $res.rc
    if ($res.rc -notin $successexitcodes) {
        $module.Result.command = $command
        $module.Result.stdout = $res.stdout
        $module.Result.stderr = $res.stderr
        $module.FailJson("Error uninstalling package(s) '$($packages -join ", ")'")
    }

    if ($module.Verbosity -gt 1) {
        $module.Result.stdout = $res.stdout
    }
    $module.Result.changed = $true
    # need to set to false in case the rc is not 0 and a failure didn't actually occur
    $module.Result.failed = $false
}

# get the full path to choco.exe, otherwise install/upgrade to at least 0.10.5
$install_params = @{
    proxy_url = $proxy_url
    proxy_username = $proxy_username
    proxy_password = $proxy_password
    source = $source
    source_username = $source_username
    source_password = $source_password
}
if ($version -and "chocolatey" -in $name) {
    # If a version is set and chocolatey is in the package list, pass the chocolatey version to the bootstrapping
    # process.
    $install_params.version = $version
}
$choco_path = Install-Chocolatey @install_params

if ('all' -in $name -and $state -in @('present', 'reinstalled')) {
    $module.FailJson("Cannot specify the package name as 'all' when state=$state")
}

# get the version of all specified packages
$package_info = $name | Get-ChocolateyPackageVersion -choco_path $choco_path

if ($state -in "absent", "reinstalled") {
    $installed_packages = ($package_info.GetEnumerator() | Where-Object { $null -ne $_.Value }).Key
    if ($null -ne $installed_packages) {
        Uninstall-ChocolateyPackage -choco_path $choco_path -packages $installed_packages `
            -force $force -package_params $package_params -skip_scripts $skip_scripts `
            -timeout $timeout -version $version
    }

    # ensure the package info for the uninstalled versions has been removed
    # so state=reinstall will install them in the next step
    foreach ($package in $installed_packages) {
        $package_info.$package = $null
    }
}

if ($state -in @("downgrade", "latest", "present", "reinstalled")) {
    if ($state -eq "present" -and $force) {
        # when present and force, we just run the install step with the packages specified
        $missing_packages = $name
    } else {
        # otherwise only install the packages that are not installed
        $missing_packages = [System.Collections.ArrayList]@()
        foreach ($package in $package_info.GetEnumerator()) {
            if ($null -eq $package.Value) {
                $missing_packages.Add($package.Key) > $null
            }
        }
    }

    # if version is specified and installed version does not match or not
    # allow_multiple, throw error ignore this if force is set
    if ($state -eq "present" -and $null -ne $version -and -not $force) {
        foreach ($package in $name) {
            $package_versions = [System.Collections.ArrayList]$package_info.$package
            if ($package_versions.Count -gt 0) {
                if (-not $package_versions.Contains($version) -and -not $allow_multiple) {
                    $module.FailJson("Chocolatey package '$package' is already installed with version(s) '$($package_versions -join "', '")' but was expecting '$version'. Either change the expected version, set state=latest, set allow_multiple=yes, or set force=yes to continue")
                } elseif ($version -notin $package_versions -and $allow_multiple) {
                    # add the package back into the list of missing packages if installing multiple
                    $missing_packages.Add($package) > $null
                }
            }
        }
    }
    $common_args = @{
        choco_path = $choco_path
        allow_downgrade = ($state -eq "downgrade")
        allow_empty_checksums = $allow_empty_checksums
        allow_multiple = $allow_multiple
        allow_prerelease = $allow_prerelease
        architecture = $architecture
        force = $force
        ignore_checksums = $ignore_checksums
        ignore_dependencies = $ignore_dependencies
        install_args = $install_args
        package_params = $package_params
        proxy_url = $proxy_url
        proxy_username = $proxy_username
        proxy_password = $proxy_password
        skip_scripts = $skip_scripts
        source = $source
        source_username = $source_username
        source_password = $source_password
        timeout = $timeout
        version = $version
    }

    if ($missing_packages) {
        Install-ChocolateyPackage -packages $missing_packages @common_args
    }

    if ($state -eq "latest" -or ($state -eq "downgrade" -and $null -ne $version)) {
        # when in a downgrade/latest situation, we want to run choco upgrade on
        # the remaining packages that were already installed, don't run this if
        # state=downgrade and a version isn't specified (this will actually
        # upgrade a package)
        $installed_packages = ($package_info.GetEnumerator() | Where-Object { $null -ne $_.Value }).Key
        if ($null -ne $installed_packages) {
            Update-ChocolateyPackage -packages $installed_packages @common_args
        }
    }

    # Now we want to pin/unpin any packages now that it has been installed/upgraded
    if ($null -ne $pinned) {
        $pins = Get-ChocolateyPin -choco_path $choco_path

        foreach ($package in $name) {
            if ($pins.ContainsKey($package)) {
                if (-not $pinned -and $null -eq $version) {
                    # No version is set and pinned=no, we want to remove all pins on the package. There is a bug in
                    # 'choco pin remove' with multiple versions where an older version might be pinned but
                    # 'choco pin remove' will still fail without an explicit version. Instead we take the literal
                    # interpretation that pinned=no and no version means the package has no pins at all
                    foreach ($v in $pins.$package) {
                        Set-ChocolateyPin -choco_path $choco_path -name $package -version $v
                    }
                } elseif ($null -ne $version -and $pins.$package.Contains($version) -ne $pinned) {
                    Set-ChocolateyPin -choco_path $choco_path -name $package -pin:$pinned -version $version
                }
            } elseif ($pinned) {
                # Package had no pins but pinned=yes is set.
                Set-ChocolateyPin -choco_path $choco_path -name $package -pin -version $version
            }
        }
    }
}

$module.ExitJson()


text:
package in.twizmwaz.cardinal.module.modules.filter.parsers;

import in.twizmwaz.cardinal.module.ModuleCollection;
import in.twizmwaz.cardinal.module.modules.filter.FilterModule;
import in.twizmwaz.cardinal.module.modules.filter.FilterModuleBuilder;
import in.twizmwaz.cardinal.module.modules.filter.FilterParser;
import org.jdom2.Element;

public class GenericFilterParser extends FilterParser {

    private final ModuleCollection<FilterModule> children;

    public GenericFilterParser(final Element element) {
        super(element);
        this.children = new ModuleCollection<>();
        for (Element child : element.getChildren()) {
            children.add(FilterModuleBuilder.getFilter(child));
        }
    }

    public ModuleCollection<FilterModule> getChildren() {
        return children;
    }
}


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

<title>Uses of Class org.drip.dynamics.lmm.LognormalLIBORVolatility</title>
<meta name="date" content="2017-01-04">
<link rel="stylesheet" type="text/css" href="../../../../../stylesheet.css" title="Style">

JavaScript is disabled on your browser.

Skip navigation links

Overview

Package

Class

Use

Tree

Deprecated

Index

Help

Prev

Next

Frames

No Frames

All Classes

Uses of Class
org.drip.dynamics.lmm.LognormalLIBORVolatility

Packages that use LognormalLIBORVolatility

Package
Description

org.drip.dynamics.lmm

Uses of LognormalLIBORVolatility in org.drip.dynamics.lmm

Methods in org.drip.dynamics.lmm that return LognormalLIBORVolatility

Modifier and Type
Method and Description

LognormalLIBORVolatility
LognormalLIBORPointEvolver.llv()

Retrieve the Log-normal LIBOR Volatility Instance

LognormalLIBORVolatility
BGMCurveUpdate.lognormalLIBORVolatility()

Retrieve the Log-normal LIBOR Volatility Instance

Methods in org.drip.dynamics.lmm with parameters of type LognormalLIBORVolatility

Modifier and Type
Method and Description

static BGMCurveUpdate
BGMCurveUpdate.Create(FundingLabel lslFunding,
      ForwardLabel lslForward,
      int iInitialDate,
      int iFinalDate,
      ForwardCurve fc,
      Span spanLIBORIncrement,
      MergedDiscountForwardCurve dc,
      Span spanDiscountFactorIncrement,
      Span spanContinuousForwardRateIncrement,
      Span spanSpotRateIncrement,
      Span spanInstantaneousEffectiveForward,
      Span spanInstantaneousNominalForward,
      LognormalLIBORVolatility llv)

Construct an Instance of BGMCurveUpdate

Constructors in org.drip.dynamics.lmm with parameters of type LognormalLIBORVolatility

Constructor and Description

LognormalLIBORPointEvolver(FundingLabel lslFunding,
                          ForwardLabel lslForward,
                          LognormalLIBORVolatility llv,
                          ForwardCurve fc,
                          MergedDiscountForwardCurve dc)

LognormalLIBORPointEvolver Constructor

Skip navigation links

Overview

Package

Class

Use

Tree

Deprecated

Index

Help

Prev

Next

Frames

No Frames

All Classes


text:
#ifndef BOOST_GEOMETRY_INDEX_DETAIL_RTREE_NODE_SUBTREE_DESTROYED_HPP
#define BOOST_GEOMETRY_INDEX_DETAIL_RTREE_NODE_SUBTREE_DESTROYED_HPP

#include <boost/geometry/index/detail/rtree/visitors/destroy.hpp>

namespace boost { namespace geometry { namespace index {

namespace detail { namespace rtree {

template <typename Value, typename Options, typename Translator, typename Box, typename Allocators>
class subtree_destroyer
{
    typedef typename rtree::node<Value, typename Options::parameters_type, Box, Allocators, typename Options::node_tag>::type node;
    typedef typename Allocators::node_pointer pointer;

    subtree_destroyer(subtree_destroyer const&);
    subtree_destroyer & operator=(subtree_destroyer const&);

public:
    subtree_destroyer(pointer ptr, Allocators & allocators)
        : m_ptr(ptr)
        , m_allocators(allocators)
    {}

    ~subtree_destroyer()
    {
        reset();
    }

    void reset(pointer ptr = 0)
    {
        if ( m_ptr && m_ptr != ptr )
        {
            detail::rtree::visitors::destroy<Value, Options, Translator, Box, Allocators> del_v(m_ptr, m_allocators);
            detail::rtree::apply_visitor(del_v, *m_ptr);
        }
        m_ptr = ptr;
    }

    void release()
    {
        m_ptr = 0;
    }

    pointer get() const
    {
        return m_ptr;
    }

    node & operator*() const
    {
        return *m_ptr;
    }

    pointer operator->() const
    {
        return m_ptr;
    }

private:
    pointer m_ptr;
    Allocators & m_allocators;
};

}} // namespace detail::rtree

}}} // namespace boost::geometry::index

#endif // BOOST_GEOMETRY_INDEX_DETAIL_RTREE_NODE_SUBTREE_DESTROYED_HPP


text:
int main() {
	NSAutoreleasePool *pool = [[NSAutoreleasePool alloc] init];

	NSString *string = [NSString stringWithContentsOfFile:@"examples/LL-star/input"];
	NSLog(@"input is: %@", string);
	ANTLRStringStream *stream = [[ANTLRStringStream alloc] initWithStringNoCopy:string];
	SimpleCLexer *lexer = [[SimpleCLexer alloc] initWithCharStream:stream];

//	ANTLRToken *currentToken;
//	while ((currentToken = [lexer nextToken]) && [currentToken type] != ANTLRTokenTypeEOF) {
//		NSLog(@"%@", currentToken);
//	}

	ANTLRCommonTokenStream *tokenStream = [[ANTLRCommonTokenStream alloc] initWithTokenSource:lexer];
	SimpleCParser *parser = [[SimpleCParser alloc] initWithTokenStream:tokenStream];
	[parser program];
	[lexer release];
	[stream release];
	[tokenStream release];
	[parser release];

	[pool release];
	return 0;
}


text:
using System.Collections.Generic;

namespace Gerrit.Api.Domain.Changes
{
    /// <summary>
    ///     The RelatedChangesInfo entity contains information about related changes.
    /// </summary>
    public class RelatedChangesInfo
    {
        /// <summary>
        ///     A list of RelatedChangeAndCommitInfo entities describing the related changes. Sorted by git commit order, newest to
        ///     oldest. Empty if there are no related changes.
        /// </summary>
        public List<RelatedChangeAndCommitInfo> Changes { get; set; }
    }
}


text:
<?php

namespace CL\Slack\Payload;

/**
 * @author Cas Leentfaar <info@casleentfaar.com>
 *
 * @link Official documentation at https://api.slack.com/methods/groups.open
 */
class GroupsOpenPayload extends AbstractPayload
{
    /**
     * Slack seems to want to call this option "channel", but I can't agree with that (the format of the value is different),
     * and will just pretend to my users it's a "group" (ID)
     *
     * @var string
     */
    private $channel;

    /**
     * @param string $groupId ID of the group to set reading cursor in.
     */
    public function setGroupId($groupId)
    {
        $this->channel = $groupId;
    }

    /**
     * @return string ID of the group to set reading cursor in.
     */
    public function getGroupId()
    {
        return $this->channel;
    }

    /**
     * {@inheritdoc}
     */
    public function getMethod()
    {
        return 'groups.open';
    }
}


text:
import 'jasmine';

import {html} from 'lit';
import {customElement} from 'lit/decorators.js';

import {Environment} from '../../testing/environment.js';
import {FieldHarness} from '../harness.js';

import {Field} from './field.js';

declare global {
  interface HTMLElementTagNameMap {
    'md-test-field': TestField;
  }
}

@customElement('md-test-field')
class TestField extends Field {
  get floatingLabelElement() {
    return this.floatingLabelEl;
  }

  get restingLabelElement() {
    return this.restingLabelEl;
  }

  labelText?: string;

  // Ensure floating/resting labels are rendered
  protected override renderMiddleContents() {
    return html`
      ${this.renderFloatingLabel()}
      ${this.renderRestingLabel()}
      ${super.renderMiddleContents()}
    `;
  }

  override renderLabelText(): string {
    this.labelText = super.renderLabelText();
    return this.labelText;
  }

  override animateLabelIfNeeded(...args:
                                    Parameters<Field['animateLabelIfNeeded']>) {
    return super.animateLabelIfNeeded(...args);
  }
}

describe('Field', () => {
  const env = new Environment();

  async function setupTest(props: Partial<Field> = {}) {
    // Variant type does not matter for shared tests
    const template = html`
      <md-test-field
        .label=${props.label}
        ?disabled=${props.disabled ?? false}
        .error=${props.error ?? false}
        .populated=${props.populated ?? false}
        .required=${props.required ?? false}
      >
        <input>
      </md-test-field>
    `;
    const root = env.render(template);
    const instance = root.querySelector('md-test-field');
    if (!instance) {
      throw new Error('Could not query rendered <md-test-field>.');
    }

    await env.waitForStability();
    return {
      instance,
      harness: new FieldHarness(instance),
    };
  }

  it('should unfocus field when disabled', async () => {
    // Setup.
    const {instance, harness} = await setupTest();
    await harness.focusWithKeyboard();
    await env.waitForStability();
    // Test case.
    instance.disabled = true;
    await env.waitForStability();
    // Assertion.
    expect(instance.focused)
        .withContext('focused is false after disabled is set to true')
        .toBe(false);
  });

  it('should not allow focus when disabled', async () => {
    // Setup.
    const {instance, harness} = await setupTest({disabled: true});
    await harness.focusWithKeyboard();
    // Test case.
    await env.waitForStability();
    // Assertion.
    expect(instance.focused)
        .withContext('focused set back to false when disabled')
        .toBe(false);
  });

  /*
    TODO(b/225951156): update animation tests since l2w refactor breaks them
    describe('#animateLabelIfNeeded()', () => {
      it('should update visible label type to resting before animation
    finishes', async () => {
           // Setup.
           const {instance, harness} = await setupTest({label: 'Label'});
           const floatingLabel = await instance.floatingLabelElement;
           // Test case.
           await harness.focusWithKeyboard();
           await env.waitForStability();
           // Assertion.
           expect(floatingLabel.classList)
               .withContext('should display resting label for animation')
               .not.toContain('md3-field__label--hidden');
         });

      it('should update visible label type to resting immediately when resting',
         async () => {
           // Setup.
           const {instance, harness} = await setupTest({label: 'Label'});
           const restingLabel = await instance.restingLabelElement;
           await harness.focusWithKeyboard();
           // Test case.
           await harness.blur();
           // Assertion.
           expect(restingLabel.classList)
               .withContext('should display resting label for animation')
               .not.toContain('md3-field__label--hidden');
         });

      it('should update visible label type after floating animation ends',
         async () => {
           // Setup.
           const {instance, harness} = await setupTest({label: 'Label'});
           const animation = new Animation();
           const floatingLabel = await instance.floatingLabelElement;
           const restingLabel = await instance.restingLabelElement;
           spyOn(restingLabel, 'animate').and.returnValue(animation);
           // Test case.
           await harness.focusWithKeyboard();
           await env.waitForStability();
           animation.play();
           await env.waitForStability();
           // Assertion.
           expect(floatingLabel.classList)
               .withContext('visible label should be floating after focusing')
               .not.toContain('md3-field__label--hidden');
         });

      it('should update visible label type after resting animation ends',
         async () => {
           // Setup.
           const {instance, harness} = await setupTest({label: 'Label'});
           await harness.focusWithKeyboard();
           const animation = new Animation();
           const restingLabel = await instance.restingLabelElement;
           spyOn(restingLabel, 'animate').and.returnValue(animation);
           // Test case.
           await harness.blur();
           await env.waitForStability();
           animation.play();
           await env.waitForStability();
           // Assertion.
           expect(restingLabel.classList)
               .withContext('visible label should be resting after unfocusing')
               .not.toContain('md3-field__label--hidden');
         });

      it('should animate label when focused changes', async () => {
        // Setup.
        const {instance, harness} = await setupTest({label: 'Label'});
        const floatingLabel = await instance.floatingLabelElement;
        spyOn(floatingLabel, 'animate').and.callThrough();
        // Test case.
        await harness.focusWithKeyboard();
        await env.waitForStability();
        // Assertion.
        expect(floatingLabel.animate).toHaveBeenCalledTimes(1);
      });

      it('should animate label when populated changes', async () => {
        // Setup.
        const {instance} = await setupTest({label: 'Label'});
        const floatingLabel = await instance.floatingLabelElement;
        spyOn(floatingLabel, 'animate').and.callThrough();
        // Test case.
        instance.populated = true;
        await env.waitForStability();
        // Assertion.
        expect(floatingLabel.animate).toHaveBeenCalledTimes(1);
      });

      it('should not animate when there is no label', async () => {
        // Setup.
        const {instance, harness} = await setupTest({label: undefined});
        const floatingLabel = await instance.floatingLabelElement;
        spyOn(floatingLabel, 'animate').and.callThrough();
        // Test case.
        await harness.focusWithKeyboard();
        await env.waitForStability();
        // Assertion.
        expect(floatingLabel.animate)
            .withContext('should not animate label when there is none')
            .not.toHaveBeenCalled();
      });

      it('should still set the visible label type when there is no label',
         async () => {
           // Setup.
           const {instance, harness} = await setupTest({label: undefined});
           const floatingLabel = await instance.floatingLabelElement;
           await harness.focusWithKeyboard();
           // Test case.
           await env.waitForStability();
           // Assertion.
           expect(floatingLabel.classList)
               .withContext(
                   'focusing should still set visible label type to floating')
               .toContain('md3-field__label--hidden');

           // Test case.
           await harness.blur();
           await env.waitForStability();
           // Test case.
           expect(floatingLabel.classList)
               .withContext(
                   'unfocusing should still set visible label type to resting')
               .not.toContain('md3-field__label--hidden');
         });

      it('should not animate if focusing a populated field', async () => {
        // Setup.
        const {instance, harness} =
            await setupTest({label: 'Label', populated: true});
        const floatingLabel = await instance.floatingLabelElement;
        spyOn(floatingLabel, 'animate').and.callThrough();
        // Test case.
        await harness.focusWithKeyboard();
        await env.waitForStability();
        // Assertion.
        expect(floatingLabel.animate)
            .withContext('should not animate when focusing a populated field')
            .not.toHaveBeenCalled();
      });

      it('should not animate if populating a focused field', async () => {
        // Setup.
        const {instance, harness} = await setupTest({label: 'Label'});
        await harness.focusWithKeyboard();
        const floatingLabel = await instance.floatingLabelElement;
        spyOn(floatingLabel, 'animate').and.callThrough();
        // Test case.
        instance.populated = true;
        await env.waitForStability();
        // Assertion.
        expect(floatingLabel.animate)
            .withContext('should not animate when populated a focused field')
            .not.toHaveBeenCalled();
      });

      it('should cancel previous animation', async () => {
        // Set up.
        const {instance, harness} = await setupTest({label: 'Label'});
        const restingLabel = await instance.restingLabelElement;
        const firstAnimation = new Animation();
        spyOn(firstAnimation, 'cancel').and.callThrough();
        const secondAnimation = new Animation();
        spyOn(secondAnimation, 'cancel').and.callThrough();
        spyOn(restingLabel, 'animate')
            .and.returnValues(firstAnimation, secondAnimation);
        // Test case.
        await harness.focusWithKeyboard();
        await env.waitForStability();
        await harness.blur();
        await env.waitForStability();
        // Assertion.
        expect(firstAnimation.cancel)
            .withContext('first animation should be cancelled')
            .toHaveBeenCalled();
        expect(secondAnimation.cancel)
            .withContext('second animation should play')
            .not.toHaveBeenCalled();
      });
    });
  */
  describe('.label', () => {
    it('should render empty string when there is no label', async () => {
      // Setup.
      // Test case.
      const {instance} = await setupTest({label: undefined});
      // Assertion.
      expect(instance.labelText)
          .withContext(
              'label text should be empty string if label is not provided')
          .toBe('');
    });

    it('should render label', async () => {
      // Setup.
      // Test case.
      const labelValue = 'Label';
      const {instance} = await setupTest({label: labelValue});
      // Assertion.
      expect(instance.renderLabelText())
          .withContext('label text should equal label when not required')
          .toBe(labelValue);
    });

    it('should adds asterisk if required', async () => {
      // Setup.
      // Test case.
      const labelValue = 'Label';
      const {instance} = await setupTest({required: true, label: labelValue});
      // Assertion.
      expect(instance.renderLabelText())
          .withContext(
              'label text should equal label with asterisk when required')
          .toBe(`${labelValue}*`);
    });

    it('should not render asterisk if required when there is no label',
       async () => {
         // Setup.
         // Test case.
         const {instance} = await setupTest({required: true, label: undefined});
         // Assertion.
         expect(instance.labelText)
             .withContext(
                 'label text should be empty string if label is not provided, even when required')
             .toBe('');
       });
  });
});


text:
<?xml version="1.0" encoding="utf-8"?>
<lint>

    <!-- Fatal -->
    <issue id="UnusedResources" severity="warning"/>

    <!-- Ignore -->
    <issue id="AlwaysShowAction,RtlHardcoded,RtlSymmetry" severity="ignore"/>
    <issue id="ResourceType">
        <ignore path="**/*$$ViewBinder.java"/>
    </issue>

</lint>


text:
layout:     post
author:     Christoph Broschinski
title:      University of Duisburg-Essen updates its 2015 APC expenditures
date:       2016-07-08 07:00:00
summary:
categories: [general, openAPC]
comments: true
---

The [University of Duisburg-Essen](https://www.uni-due.de/en/index.php) has updated its APC expenditures. The latest contribution provides data for the 2015 period.

[Duisburg-Essen University Library](https://www.uni-due.de/ub/en/eindex.php) is in charge of the University's [Open Access Publishing Fund](https://www.uni-due.de/ub/en/openaccess_foerderung.shtml), which is supported by the DFG under its [Open-Access Publishing Programme](http://www.dfg.de/en/research_funding/programmes/infrastructure/lis/funding_opportunities/open_access/).

Contact persons are [Frank Lützenkirchen](mailto:frank.luetzenkirchen@uni-due.de) and [Katrin Falkenstein-Feldhoff](mailto:katrin.falkenstein-feldhoff@uni-due.de).

## Cost Data

The new dataset covers publication fees for 34 articles, which the fund covered in 2015 so far. Total expenditure amounts to 21 659€ and the average fee is 637€.

The following table shows the payments [Duisburg-Essen University Library](https://www.uni-due.de/ub/en/eindex.php) has made to publishers in 2015.

|                                     | Articles| Fees paid in EURO| Mean Fee paid|
|:------------------------------------|--------:|-----------------:|-------------:|
|Element                              |        1|               250|           250|
|Frontiers Media SA                   |        4|              2372|           593|
|Hindawi Publishing Corporation       |        2|              1829|           914|
|Informa UK Limited                   |        1|               188|           188|
|IOP Publishing                       |        1|               643|           643|
|OMICS Publishing Group               |        1|               565|           565|
|Public Library of Science (PLoS)     |        9|              5531|           615|
|SAGE Publications                    |        1|               505|           505|
|Scientific Research Publishing, Inc, |        4|              1561|           390|
|Springer Nature                      |       10|              8215|           822|

## Overview

With the recent contributions included, the overall APC data for University of Duisburg-Essen now looks as follows:

### Fees paid per publisher (in EURO)

![plot of chunk tree_unidue_2016-07-08](/figure/tree_unidue_2016-07-08-1.png)

###  Average costs per year (in EURO)

![plot of chunk box_unidue_year_2016-07-08](/figure/box_unidue_year_2016-07-08-1.png)

###  Average costs per publisher (in EURO)

![plot of chunk box_unidue_publisher_2016-07-08](/figure/box_unidue_publisher_2016-07-08-1.png)


text:
import { warnIfDebug } from 'utils/log';
import ContentEditableBinding from '../../Binding/ContentEditableBinding';
import RadioBinding from '../../Binding/RadioBinding';
import RadioNameBinding from '../../Binding/RadioNameBinding';
import CheckboxNameBinding from '../../Binding/CheckboxNameBinding';
import CheckboxBinding from '../../Binding/CheckboxBinding';
import SelectBinding from '../../Binding/SelectBinding';
import MultipleSelectBinding from '../../Binding/MultipleSelectBinding';
import FileListBinding from '../../Binding/FileListBinding';
import NumericBinding from '../../Binding/NumericBinding';
import GenericBinding from '../../Binding/GenericBinding';

export default function createTwowayBinding ( element ) {
	var attributes = element.attributes, type, Binding, bindName, bindChecked, binding;

	// if this is a late binding, and there's already one, it
	// needs to be torn down
	if ( element.binding ) {
		element.binding.teardown();
		element.binding = null;
	}

	// contenteditable
	if (
		// if the contenteditable attribute is true or is bindable and may thus become true
		( element.getAttribute( 'contenteditable' ) || ( !!attributes.contenteditable && isBindable( attributes.contenteditable ) ) )
		// and this element also has a value attribute to bind
		&& isBindable( attributes.value )
	) {
		Binding = ContentEditableBinding;
	}

	// <input>
	else if ( element.name === 'input' ) {
		type = element.getAttribute( 'type' );

		if ( type === 'radio' || type === 'checkbox' ) {
			bindName = isBindable( attributes.name );
			bindChecked = isBindable( attributes.checked );

			// we can either bind the name attribute, or the checked attribute - not both
			if ( bindName && bindChecked ) {
				warnIfDebug( 'A radio input can have two-way binding on its name attribute, or its checked attribute - not both', { ractive: element.root });
			}

			if ( bindName ) {
				Binding = ( type === 'radio' ? RadioNameBinding : CheckboxNameBinding );
			}

			else if ( bindChecked ) {
				Binding = ( type === 'radio' ? RadioBinding : CheckboxBinding );
			}
		}

		else if ( type === 'file' && isBindable( attributes.value ) ) {
			Binding = FileListBinding;
		}

		else if ( isBindable( attributes.value ) ) {
			Binding = ( type === 'number' || type === 'range' ) ? NumericBinding : GenericBinding;
		}
	}

	// <select>
	else if ( element.name === 'select' && isBindable( attributes.value ) ) {
		Binding = ( element.getAttribute( 'multiple' ) ? MultipleSelectBinding : SelectBinding );
	}

	// <textarea>
	else if ( element.name === 'textarea' && isBindable( attributes.value ) ) {
		Binding = GenericBinding;
	}

	if ( Binding && ( binding = new Binding( element ) ) && binding.keypath ) {
		return binding;
	}
}

function isBindable ( attribute ) {
	return attribute && attribute.isBindable;
}


text:
#ifndef _ACTIVEMQ_CMSUTIL_DYNAMICDESTINATIONRESOLVERTEST_H_
#define _ACTIVEMQ_CMSUTIL_DYNAMICDESTINATIONRESOLVERTEST_H_

#include <cppunit/TestFixture.h>
#include <cppunit/extensions/HelperMacros.h>

namespace activemq{
namespace cmsutil{

    class DynamicDestinationResolverTest : public CppUnit::TestFixture {

        CPPUNIT_TEST_SUITE( DynamicDestinationResolverTest );
        CPPUNIT_TEST( testTopics );
        CPPUNIT_TEST( testQueues );
        CPPUNIT_TEST_SUITE_END();

    public:

        DynamicDestinationResolverTest() {}
        virtual ~DynamicDestinationResolverTest() {}

        void testTopics();
        void testQueues();
    };

}}

#endif /*_ACTIVEMQ_CMSUTIL_DYNAMICDESTINATIONRESOLVERTEST_H_*/


text:
'use strict';

/**@ngInject*/
function UsersController() {
}

UsersController.resolve = {

};

module.exports = UsersController;


text:
#include <Core/Algorithms/Legacy/Fields/MeshDerivatives/GetCentroids.h>
#include <Core/Datatypes/Legacy/Field/VField.h>
#include <Core/Datatypes/Legacy/Field/VMesh.h>
#include <Core/Datatypes/Legacy/Field/FieldInformation.h>
#include <Core/Datatypes/SparseRowMatrix.h>
#include <Core/GeometryPrimitives/Vector.h>
#include <Core/Algorithms/Base/AlgorithmVariableNames.h>
#include <Core/Algorithms/Base/AlgorithmPreconditions.h>
#include <boost/unordered_map.hpp>
#include <Core/Algorithms/Legacy/Fields/RegisterWithCorrespondences.h>

using namespace SCIRun;
using namespace SCIRun::Core::Algorithms;
using namespace SCIRun::Core::Algorithms::Fields;
using namespace SCIRun::Core::Datatypes;
using namespace SCIRun::Core::Geometry;

ALGORITHM_PARAMETER_DEF(Fields, Centroids);

GetCentroids::GetCentroids()
{
  addOption(Parameters::Centroids,"Element","Node|Edge|Face|Cell|Element|DElement");
}

AlgorithmOutput GetCentroids::run(const AlgorithmInput& input) const
{
  auto inputField = input.get<Field>(Variables::InputField);
  FieldHandle output;
  if (!inputField)
  {
    THROW_ALGORITHM_INPUT_ERROR("No input field");
  }

  FieldInformation fo(inputField);
  fo.make_pointcloudmesh();
  fo.make_nodata();

  std::string centroids;
  centroids=getOption(Parameters::Centroids);

  VMesh* imesh = inputField->vmesh();
  MeshHandle mesh = CreateMesh(fo);
  VMesh* omesh = mesh->vmesh();

  AlgorithmOutput outputField;

  if (centroids=="Element")
  {
    imesh->synchronize(Mesh::ELEMS_E);
    VField::size_type num_elems = imesh->num_elems();
    omesh->reserve_nodes(num_elems);
    for (VMesh::Elem::index_type idx=0; idx < num_elems; idx++)
    {
      Point p;
      imesh->get_center(p,idx);
      omesh->add_node(p);
    }

    output = CreateField(fo,mesh);
    output->vfield()->resize_values();

    if(omesh->num_nodes()==0)
    {
      warning("No. of nodes equal to zero! Empty matrix will get generated");
    }
  }
  else if (centroids=="Node")
  {
    imesh->synchronize(Mesh::NODES_E);
    VMesh::size_type num_nodes = imesh->num_nodes();
    omesh->reserve_nodes(num_nodes);
    for (VMesh::Node::index_type idx=0; idx < num_nodes; idx++)
    {
      Point p;
      imesh->get_center(p,idx);
      omesh->add_node(p);
    }

    output = CreateField(fo,mesh);
    output->vfield()->resize_values();

    if(omesh->num_nodes()==0)
    {
      warning("No. of nodes equal to zero! Empty matrix will get generated");
    }
  }
  else if (centroids=="Edge")
  {
    imesh->synchronize(Mesh::EDGES_E);

    VMesh::size_type num_edges = imesh->num_edges();
    omesh->reserve_nodes(num_edges);
    for (VMesh::Edge::index_type idx=0; idx < num_edges; idx++)
    {
      Point p;
      imesh->get_center(p,idx);
      omesh->add_node(p);
    }

    output = CreateField(fo,mesh);
    output->vfield()->resize_values();

    if(omesh->num_nodes()==0)
    {
      warning("No. of nodes equal to zero! Empty matrix will get generated");
    }
  }
  else if (centroids=="Face")
  {
    imesh->synchronize(Mesh::FACES_E);
    VMesh::Face::size_type num_faces;
    imesh->size(num_faces);
    omesh->reserve_nodes(num_faces);
    for (VMesh::Face::index_type idx=0; idx < num_faces; idx++)
    {
      Point p;
      imesh->get_center(p,idx);
      omesh->add_node(p);
    }

    output = CreateField(fo,mesh);
    output->vfield()->resize_values();

    if(omesh->num_nodes()==0)
    {
      warning("No. of nodes equal to zero! Empty matrix will get generated");
    }
  }
  else if (centroids=="Cell")
  {
    imesh->synchronize(Mesh::CELLS_E);
    VMesh::size_type num_cells = imesh->num_cells();
    omesh->reserve_nodes(num_cells);
    for (VMesh::Cell::index_type idx=0; idx < num_cells; idx++)
    {
      Point p;
      imesh->get_center(p,idx);
      omesh->add_node(p);
    }
    output = CreateField(fo,mesh);
    output->vfield()->resize_values();

    if(omesh->num_nodes()==0)
    {
      warning("No. of nodes equal to zero! Empty matrix will get generated");
    }
  }
  else if (centroids=="DElement")
  {
    imesh->synchronize(Mesh::DELEMS_E);

    VMesh::size_type num_delems = imesh->num_delems();
    omesh->reserve_nodes(num_delems);

    for (VMesh::DElem::index_type idx=0; idx < num_delems; idx++)
    {
      Point p;
      imesh->get_center(p,idx);
      omesh->add_node(p);
    }

    output = CreateField(fo,mesh);
    output->vfield()->resize_values();

    if(omesh->num_nodes()==0)
    {
      warning("No. of nodes equal to zero! Empty matrix will get generated");
    }
  }
  outputField[Variables::OutputField] = output;
  return outputField;
}


text:
using ::testing::_;

namespace device {
namespace {

using TestGetAssertionTaskCallbackReceiver =
    ::device::test::StatusAndValueCallbackReceiver<
        CtapDeviceResponseCode,
        base::Optional<AuthenticatorGetAssertionResponse>>;

class FidoGetAssertionTaskTest : public testing::Test {
 public:
  FidoGetAssertionTaskTest() {}

  TestGetAssertionTaskCallbackReceiver& get_assertion_callback_receiver() {
    return cb_;
  }

 private:
  base::test::TaskEnvironment task_environment_;
  TestGetAssertionTaskCallbackReceiver cb_;
};

TEST_F(FidoGetAssertionTaskTest, TestGetAssertionSuccess) {
  auto device = MockFidoDevice::MakeCtap();
  device->ExpectCtap2CommandAndRespondWith(
      CtapRequestCommand::kAuthenticatorGetAssertion,
      test_data::kTestGetAssertionResponse);

  CtapGetAssertionRequest request_param(test_data::kRelyingPartyId,
                                        test_data::kClientDataJson);
  request_param.allow_list.emplace_back(PublicKeyCredentialDescriptor(
      CredentialType::kPublicKey,
      fido_parsing_utils::Materialize(
          test_data::kTestGetAssertionCredentialId)));

  auto task = std::make_unique<GetAssertionTask>(
      device.get(), std::move(request_param),
      get_assertion_callback_receiver().callback());

  get_assertion_callback_receiver().WaitForCallback();
  EXPECT_EQ(CtapDeviceResponseCode::kSuccess,
            get_assertion_callback_receiver().status());
  EXPECT_TRUE(get_assertion_callback_receiver().value());
}

TEST_F(FidoGetAssertionTaskTest, TestU2fSignSuccess) {
  auto device = MockFidoDevice::MakeU2f();
  device->ExpectWinkedAtLeastOnce();
  device->ExpectRequestAndRespondWith(
      test_data::kU2fSignCommandApdu,
      test_data::kApduEncodedNoErrorSignResponse);

  CtapGetAssertionRequest request_param(test_data::kRelyingPartyId,
                                        test_data::kClientDataJson);
  request_param.allow_list.emplace_back(PublicKeyCredentialDescriptor(
      CredentialType::kPublicKey,
      fido_parsing_utils::Materialize(test_data::kU2fSignKeyHandle)));

  auto task = std::make_unique<GetAssertionTask>(
      device.get(), std::move(request_param),
      get_assertion_callback_receiver().callback());

  get_assertion_callback_receiver().WaitForCallback();
  EXPECT_EQ(CtapDeviceResponseCode::kSuccess,
            get_assertion_callback_receiver().status());
  EXPECT_TRUE(get_assertion_callback_receiver().value());
}

TEST_F(FidoGetAssertionTaskTest, TestSignSuccessWithFake) {
  static const uint8_t kCredentialId[] = {1, 2, 3, 4};
  CtapGetAssertionRequest request_param(test_data::kRelyingPartyId,
                                        test_data::kClientDataJson);
  request_param.allow_list.emplace_back(PublicKeyCredentialDescriptor(
      CredentialType::kPublicKey,
      fido_parsing_utils::Materialize(kCredentialId)));

  auto device = std::make_unique<VirtualCtap2Device>();
  ASSERT_TRUE(device->mutable_state()->InjectRegistration(
      kCredentialId, test_data::kRelyingPartyId));
  test::TestCallbackReceiver<> done;
  device->DiscoverSupportedProtocolAndDeviceInfo(done.callback());
  done.WaitForCallback();

  auto task = std::make_unique<GetAssertionTask>(
      device.get(), std::move(request_param),
      get_assertion_callback_receiver().callback());

  get_assertion_callback_receiver().WaitForCallback();
  EXPECT_EQ(CtapDeviceResponseCode::kSuccess,
            get_assertion_callback_receiver().status());

  // Just a sanity check, we don't verify the actual signature.
  ASSERT_GE(32u + 1u + 4u + 8u,  // Minimal ECDSA signature is 8 bytes
            get_assertion_callback_receiver()
                .value()
                ->auth_data()
                .SerializeToByteArray()
                .size());
  EXPECT_EQ(0x01,
            get_assertion_callback_receiver()
                .value()
                ->auth_data()
                .SerializeToByteArray()[32]);  // UP flag
  // Counter starts at zero and is incremented for every sign request.
  EXPECT_EQ(1, get_assertion_callback_receiver()
                   .value()
                   ->auth_data()
                   .SerializeToByteArray()[36]);  // counter
}

TEST_F(FidoGetAssertionTaskTest, TestIncorrectGetAssertionResponse) {
  auto device = MockFidoDevice::MakeCtap();
  device->ExpectCtap2CommandAndRespondWith(
      CtapRequestCommand::kAuthenticatorGetAssertion, base::nullopt);

  auto task = std::make_unique<GetAssertionTask>(
      device.get(),
      CtapGetAssertionRequest(test_data::kRelyingPartyId,
                              test_data::kClientDataJson),
      get_assertion_callback_receiver().callback());

  get_assertion_callback_receiver().WaitForCallback();
  EXPECT_EQ(CtapDeviceResponseCode::kCtap2ErrOther,
            get_assertion_callback_receiver().status());
  EXPECT_FALSE(get_assertion_callback_receiver().value());
}

TEST_F(FidoGetAssertionTaskTest, TestU2fSignRequestWithEmptyAllowedList) {
  auto request = CtapGetAssertionRequest(test_data::kRelyingPartyId,
                                         test_data::kClientDataJson);

  auto device = MockFidoDevice::MakeU2f();
  device->ExpectWinkedAtLeastOnce();
  device->ExpectRequestAndRespondWith(
      test_data::kU2fFakeRegisterCommand,
      test_data::kApduEncodedNoErrorSignResponse);

  auto task = std::make_unique<GetAssertionTask>(
      device.get(), std::move(request),
      get_assertion_callback_receiver().callback());

  get_assertion_callback_receiver().WaitForCallback();
  EXPECT_EQ(CtapDeviceResponseCode::kCtap2ErrNoCredentials,
            get_assertion_callback_receiver().status());
  EXPECT_FALSE(get_assertion_callback_receiver().value());
}

// Checks that when device supports both CTAP2 and U2F protocol and when
// appId extension parameter is present, the browser first checks presence
// of valid credentials via silent authentication.
TEST_F(FidoGetAssertionTaskTest, TestSilentSignInWhenAppIdExtensionPresent) {
  CtapGetAssertionRequest request(test_data::kRelyingPartyId,
                                  test_data::kClientDataJson);

  std::vector<PublicKeyCredentialDescriptor> allowed_list;
  allowed_list.push_back(PublicKeyCredentialDescriptor(
      CredentialType::kPublicKey,
      fido_parsing_utils::Materialize(test_data::kU2fSignKeyHandle)));
  request.app_id = test_data::kAppId;
  request.alternative_application_parameter =
      fido_parsing_utils::Materialize(base::span<const uint8_t, 32>(
          test_data::kAlternativeApplicationParameter));
  request.allow_list = std::move(allowed_list);

  auto device = MockFidoDevice::MakeCtap();
  device->ExpectRequestAndRespondWith(test_data::kCtapSilentGetAssertionRequest,
                                      test_data::kTestGetAssertionResponse);
  device->ExpectRequestAndRespondWith(test_data::kCtapGetAssertionRequest,
                                      test_data::kTestGetAssertionResponse);

  auto task = std::make_unique<GetAssertionTask>(
      device.get(), std::move(request),
      get_assertion_callback_receiver().callback());

  get_assertion_callback_receiver().WaitForCallback();
  EXPECT_EQ(CtapDeviceResponseCode::kSuccess,
            get_assertion_callback_receiver().status());
}

TEST_F(FidoGetAssertionTaskTest, TestU2fFallbackForAppIdExtension) {
  CtapGetAssertionRequest request(test_data::kRelyingPartyId,
                                  test_data::kClientDataJson);

  std::vector<PublicKeyCredentialDescriptor> allowed_list;
  allowed_list.push_back(PublicKeyCredentialDescriptor(
      CredentialType::kPublicKey,
      fido_parsing_utils::Materialize(test_data::kU2fSignKeyHandle)));
  request.app_id = test_data::kAppId;
  request.alternative_application_parameter =
      fido_parsing_utils::Materialize(base::span<const uint8_t, 32>(
          test_data::kAlternativeApplicationParameter));
  request.allow_list = std::move(allowed_list);

  ::testing::InSequence s;
  auto device = MockFidoDevice::MakeCtap();
  std::array<uint8_t, 1> error{{base::strict_cast<uint8_t>(
      CtapDeviceResponseCode::kCtap2ErrNoCredentials)}};
  // First, as the device supports both CTAP2 and U2F, the browser will attempt
  // a CTAP2 GetAssertion.
  device->ExpectRequestAndRespondWith(test_data::kCtapSilentGetAssertionRequest,
                                      error);
  // After falling back to U2F the request will use the alternative app_param,
  // which will be rejected.
  device->ExpectWinkedAtLeastOnce();
  device->ExpectRequestAndRespondWith(
      test_data::kU2fSignCommandApduWithAlternativeApplicationParameter,
      test_data::kU2fWrongDataApduResponse);
  // After the rejection, the U2F sign request with the primary application
  // parameter should be tried.
  device->ExpectWinkedAtLeastOnce();
  device->ExpectRequestAndRespondWith(
      test_data::kU2fSignCommandApdu,
      test_data::kApduEncodedNoErrorSignResponse);

  auto task = std::make_unique<GetAssertionTask>(
      device.get(), std::move(request),
      get_assertion_callback_receiver().callback());
  get_assertion_callback_receiver().WaitForCallback();
  EXPECT_EQ(CtapDeviceResponseCode::kSuccess,
            get_assertion_callback_receiver().status());
}

TEST_F(FidoGetAssertionTaskTest, TestAvoidSilentSignInForCtapOnlyDevice) {
  CtapGetAssertionRequest request(test_data::kRelyingPartyId,
                                  test_data::kClientDataJson);

  std::vector<PublicKeyCredentialDescriptor> allowed_list;
  allowed_list.push_back(PublicKeyCredentialDescriptor(
      CredentialType::kPublicKey,
      fido_parsing_utils::Materialize(test_data::kU2fSignKeyHandle)));

  request.app_id = test_data::kAppId;
  request.alternative_application_parameter =
      fido_parsing_utils::Materialize(base::span<const uint8_t, 32>(
          test_data::kAlternativeApplicationParameter));
  request.allow_list = std::move(allowed_list);

  auto device = MockFidoDevice::MakeCtap(ReadCTAPGetInfoResponse(
      test_data::kTestCtap2OnlyAuthenticatorGetInfoResponse));
  std::array<uint8_t, 1> error{
      {base::strict_cast<uint8_t>(CtapDeviceResponseCode::kCtap2ErrOther)}};
  device->ExpectRequestAndRespondWith(test_data::kCtapGetAssertionRequest,
                                      error);

  auto task = std::make_unique<GetAssertionTask>(
      device.get(), std::move(request),
      get_assertion_callback_receiver().callback());
  get_assertion_callback_receiver().WaitForCallback();
  EXPECT_EQ(CtapDeviceResponseCode::kCtap2ErrOther,
            get_assertion_callback_receiver().status());
}

}  // namespace
}  // namespace device


text:
    <button class="navbar-toggle collapsed" type="button" data-toggle="collapse" data-target="#main-menu">
      main menu

    </button>
    <img src="<?php echo $PREFIX; ?>img/reb-willard-sig-logo-200.png" alt="Reb's Logo">

<a href="<?php echo $PREFIX; ?>index.php">HOME

<a href="<?php echo $PREFIX; ?>selected-works.php" title="Selected works">SELECTED WORKS

<a href="<?php echo $PREFIX; ?>connect.php">ABOUT REB


text:
#ifndef MBED_FILEPATH_H
#define MBED_FILEPATH_H

#include "platform.h"

#include "FileSystemLike.h"
#include "FileLike.h"

namespace mbed {

class FilePath {
public:
    FilePath(const char* file_path);

    const char* fileName(void);

    bool          isFileSystem(void);
    FileSystemLike* fileSystem(void);

    bool    isFile(void);
    FileLike* file(void);

private:
    const char* file_name;
    FileBase* fb;
};

} // namespace mbed

#endif


text:
vagrant-nexus
=============

Project to set up Sonatype Nexus via Vagrant / Puppet.

Quick start
-----------

* `git clone git@github.com:skempken/vagrant-nexus.git`
* `cd vagrant-nexus`
* `git submodule init`
* `git submodule update`
* `vagrant up`
* ...wait...
* Nexus should be available on `http://localhost:9000`

Working folder
--------------
By default, Nexus' working folder is synchronized to the host machine. This allows for some flexibility - for instance, you can recreate the Vagrant VM without losing all artifacts. If you do not want this, remove the corresponding line in `Vagrantfile`.


text:
package markschaake.plugins

import sbt._
import sbt.Keys._
import sbt.plugins._

object CoreSettingsPlugin extends AutoPlugin {
  override def requires = FormatPlugin
  override def trigger = allRequirements
  override def projectSettings = Seq(
    scalaVersion := "2.10.4",
    scalacOptions ++= Seq("-target:jvm-1.7", "-Xlint", "-deprecation", "-feature")
  )
}


text:
include_recipe 'omnibus::_bash'
include_recipe 'omnibus::_common'
include_recipe 'omnibus::_compile'

# Set up ccache, to speed up subsequent compilations.
remote_install 'ccache' do
  source 'http://samba.org/ftp/ccache/ccache-3.1.9.tar.gz'
  version '3.1.9'
  checksum 'a2270654537e4b736e437975e0cb99871de0975164a509dee34cf91e36eeb447'
  build_command './configure'
  compile_command 'make'
  install_command 'make install'
  not_if { installed_at_version?('ccache', '3.1.9') }
end

%w(gcc g++ cc c++).each do |compiler|
  link "/usr/local/bin/#{compiler}" do
    to '/usr/local/bin/ccache'
  end
end


text:
/* -*- mode: c; c-basic-offset: 4; indent-tabs-mode: nil -*- */
/*
 * Copyright 1993 OpenVision Technologies, Inc., All Rights Reserved
 *
 * $Header$
 */

/*
 * This header file is used internally by the Admin API server
 * libraries and Admin server.  IF YOU THINK YOU NEED TO USE THIS FILE
 * FOR ANYTHING, YOU'RE ALMOST CERTAINLY WRONG.
 */

#ifndef __KADM5_SERVER_INTERNAL_H__
#define __KADM5_SERVER_INTERNAL_H__

#include    "autoconf.h"
#ifdef HAVE_MEMORY_H
#include    <memory.h>
#endif
#include    <stdlib.h>
#include    <errno.h>
#include    <kdb.h>
#include    <kadm5/admin.h>
#include    <krb5/plugin.h>
#include    "admin_internal.h"

/*
 * This is the history key version for a newly created DB.  We use this value
 * for principals which have no password history yet to avoid having to look up
 * the history key.  Values other than 2 will cause compatibility issues with
 * pre-1.8 libkadm5 code; the older code will reject key changes when it sees
 * an unexpected value of admin_history_kvno.
 */
#define INITIAL_HIST_KVNO 2

/* A pwqual_handle represents a password quality plugin module. */
typedef struct pwqual_handle_st *pwqual_handle;

typedef struct kadm5_hook_handle_st *kadm5_hook_handle;

typedef struct _kadm5_server_handle_t {
    krb5_ui_4       magic_number;
    krb5_ui_4       struct_version;
    krb5_ui_4       api_version;
    krb5_context    context;
    krb5_principal  current_caller;
    kadm5_config_params  params;
    struct _kadm5_server_handle_t *lhandle;
    char **db_args;
    pwqual_handle   *qual_handles;
    kadm5_hook_handle *hook_handles;
} kadm5_server_handle_rec, *kadm5_server_handle_t;

#define OSA_ADB_PRINC_VERSION_1  0x12345C01

typedef struct _osa_pw_hist_t {
    int n_key_data;
    krb5_key_data *key_data;
} osa_pw_hist_ent, *osa_pw_hist_t;

typedef struct _osa_princ_ent_t {
    int                         version;
    char                        *policy;
    long                        aux_attributes;
    unsigned int                old_key_len;
    unsigned int                old_key_next;
    krb5_kvno                   admin_history_kvno;
    osa_pw_hist_ent             *old_keys;
} osa_princ_ent_rec, *osa_princ_ent_t;

kadm5_ret_t    adb_policy_init(kadm5_server_handle_t handle);
kadm5_ret_t    adb_policy_close(kadm5_server_handle_t handle);
kadm5_ret_t    passwd_check(kadm5_server_handle_t handle,
                            const char *pass, kadm5_policy_ent_t policy,
                            krb5_principal principal);
kadm5_ret_t    principal_exists(krb5_principal principal);
krb5_error_code     kdb_init_master(kadm5_server_handle_t handle,
                                    char *r, int from_keyboard);
krb5_error_code     kdb_get_active_mkey(kadm5_server_handle_t handle,
                                        krb5_kvno *act_kvno_out,
                                        krb5_keyblock **act_mkey_out);
krb5_error_code     kdb_init_hist(kadm5_server_handle_t handle,
                                  char *r);
krb5_error_code     kdb_get_hist_key(kadm5_server_handle_t handle,
                                     krb5_keyblock **keyblocks_out,
                                     krb5_kvno *kvno_out);
void                kdb_free_keyblocks(kadm5_server_handle_t handle,
                                       krb5_keyblock *keyblocks);
krb5_error_code     kdb_get_entry(kadm5_server_handle_t handle,
                                  krb5_principal principal,
                                  krb5_db_entry **kdb, osa_princ_ent_rec *adb);
krb5_error_code     kdb_free_entry(kadm5_server_handle_t handle,
                                   krb5_db_entry *kdb, osa_princ_ent_rec *adb);
krb5_error_code     kdb_put_entry(kadm5_server_handle_t handle,
                                  krb5_db_entry *kdb, osa_princ_ent_rec *adb);
krb5_error_code     kdb_delete_entry(kadm5_server_handle_t handle,
                                     krb5_principal name);
krb5_error_code     kdb_iter_entry(kadm5_server_handle_t handle,
                                   char *match_entry,
                                   void (*iter_fct)(void *, krb5_principal),
                                   void *data);

kadm5_ret_t         init_pwqual(kadm5_server_handle_t handle);
void                destroy_pwqual(kadm5_server_handle_t handle);

/* XXX this ought to be in libkrb5.a, but isn't */
kadm5_ret_t krb5_copy_key_data_contents(krb5_context context,
                                        krb5_key_data *from,
                                        krb5_key_data *to);
kadm5_ret_t krb5_free_key_data_contents(krb5_context context,
                                        krb5_key_data *key);

/*
 * *Warning*
 * *Warning*        This is going to break if we
 * *Warning*        ever go multi-threaded
 * *Warning*
 */
extern  krb5_principal  current_caller;

/*
 * Why is this (or something similar) not defined *anywhere* in krb5?
 */
#define KSUCCESS        0
#define WORD_NOT_FOUND  1

/*
 * all the various mask bits or'd together
 */

#define ALL_PRINC_MASK                                                  \
    (KADM5_PRINCIPAL | KADM5_PRINC_EXPIRE_TIME | KADM5_PW_EXPIRATION |  \
     KADM5_LAST_PWD_CHANGE | KADM5_ATTRIBUTES | KADM5_MAX_LIFE |        \
     KADM5_MOD_TIME | KADM5_MOD_NAME | KADM5_KVNO | KADM5_MKVNO |       \
     KADM5_AUX_ATTRIBUTES | KADM5_POLICY_CLR | KADM5_POLICY |           \
     KADM5_MAX_RLIFE | KADM5_TL_DATA | KADM5_KEY_DATA | KADM5_FAIL_AUTH_COUNT )

#define ALL_POLICY_MASK                                                 \
    (KADM5_POLICY | KADM5_PW_MAX_LIFE | KADM5_PW_MIN_LIFE |             \
     KADM5_PW_MIN_LENGTH | KADM5_PW_MIN_CLASSES | KADM5_PW_HISTORY_NUM | \
     KADM5_REF_COUNT | KADM5_PW_MAX_FAILURE | KADM5_PW_FAILURE_COUNT_INTERVAL | \
     KADM5_PW_LOCKOUT_DURATION )

#define SERVER_CHECK_HANDLE(handle)             \
    {                                           \
        kadm5_server_handle_t srvr =            \
            (kadm5_server_handle_t) handle;     \
                                                \
        if (! srvr->current_caller)             \
            return KADM5_BAD_SERVER_HANDLE;     \
        if (! srvr->lhandle)                    \
            return KADM5_BAD_SERVER_HANDLE;     \
    }

#define CHECK_HANDLE(handle)                                    \
    GENERIC_CHECK_HANDLE(handle, KADM5_OLD_SERVER_API_VERSION,  \
                         KADM5_NEW_SERVER_API_VERSION)          \
    SERVER_CHECK_HANDLE(handle)

bool_t          xdr_osa_princ_ent_rec(XDR *xdrs, osa_princ_ent_t objp);

void
osa_free_princ_ent(osa_princ_ent_t val);

/*** Password quality plugin consumer interface ***/

/* Load all available password quality plugin modules, bind each module to the
 * realm's dictionary file, and store the result into *handles_out.  Free the
 * result with k5_pwqual_free_handles. */
krb5_error_code
k5_pwqual_load(krb5_context context, const char *dict_file,
               pwqual_handle **handles_out);

/* Release a handle list allocated by k5_pwqual_load. */
void
k5_pwqual_free_handles(krb5_context context, pwqual_handle *handles);

/* Return the name of a password quality plugin module. */
const char *
k5_pwqual_name(krb5_context context, pwqual_handle handle);

/* Check a password using a password quality plugin module. */
krb5_error_code
k5_pwqual_check(krb5_context context, pwqual_handle handle,
                const char *password, const char *policy_name,
                krb5_principal princ);

/*** initvt functions for built-in password quality modules ***/

/* The dict module checks passwords against the realm's dictionary. */
krb5_error_code
pwqual_dict_initvt(krb5_context context, int maj_ver, int min_ver,
                   krb5_plugin_vtable vtable);

/* The empty module rejects empty passwords (even with no password policy). */
krb5_error_code
pwqual_empty_initvt(krb5_context context, int maj_ver, int min_ver,
                    krb5_plugin_vtable vtable);

/* The hesiod module checks passwords against GECOS fields from Hesiod passwd
 * information (only if the tree was built with Hesiod support). */
krb5_error_code
pwqual_hesiod_initvt(krb5_context context, int maj_ver, int min_ver,
                     krb5_plugin_vtable vtable);

/* The princ module checks passwords against principal components. */
krb5_error_code
pwqual_princ_initvt(krb5_context context, int maj_ver, int min_ver,
                    krb5_plugin_vtable vtable);

/** @{
 * @name kadm5_hook plugin support
 */

/** Load all kadm5_hook plugins. */
krb5_error_code
k5_kadm5_hook_load(krb5_context context,
                   kadm5_hook_handle **handles_out);

/** Free handles allocated by k5_kadm5_hook_load(). */
void
k5_kadm5_hook_free_handles(krb5_context context, kadm5_hook_handle *handles);

/** Call the chpass entry point on every kadm5_hook in @a handles. */
kadm5_ret_t
k5_kadm5_hook_chpass (krb5_context context,
                      kadm5_hook_handle *handles,
                      int stage, krb5_principal princ,
                      krb5_boolean keepold,
                      int n_ks_tuple,
                      krb5_key_salt_tuple *ks_tuple,
                      const char *newpass);

/** Call the create entry point for kadm5_hook_plugins. */
kadm5_ret_t
k5_kadm5_hook_create (krb5_context context,
                      kadm5_hook_handle *handles,
                      int stage,
                      kadm5_principal_ent_t princ, long mask,
                      int n_ks_tuple,
                      krb5_key_salt_tuple *ks_tuple,
                      const char *newpass);

/** Call modify kadm5_hook entry point. */
kadm5_ret_t
k5_kadm5_hook_modify (krb5_context context,
                      kadm5_hook_handle *handles,
                      int stage,
                      kadm5_principal_ent_t princ, long mask);

/** Call remove kadm5_hook entry point. */
kadm5_ret_t
k5_kadm5_hook_remove (krb5_context context,
                      kadm5_hook_handle *handles,
                      int stage,
                      krb5_principal princ);

/** @}*/

#endif /* __KADM5_SERVER_INTERNAL_H__ */


text:
package com.mongodb;

/**
 * An exception indicating a configuration error in the client.
 *
 * @since 3.4
 */
public class MongoConfigurationException extends MongoClientException {
    private static final long serialVersionUID = -2343119787572079323L;

    /**
     * Construct an instance with the given message.
     *
     * @param message the message
     */
    public MongoConfigurationException(final String message) {
        super(message);
    }
}


text:
{% extends "../layout/layout.html" %}
{% from "../includes/back_link.html" import back_link %}

{% block title %}Summary for property title {{ title.number }}{% endblock %}

{% block header_primary %}
  {{ back_link(title='Search again', url=path + '/pl46jh/search',historyBased=false) }}
{% endblock %}

{% block header_secondary %}
  {% include '../includes/language_switcher.html' %}
{% endblock %}

{% block body %}

Summary of title DN106538

Purchased on

This information can change if we receive an application. This service is unable to tell you whether or not there is an application pending with HM Land Registry.

Address

            {{ data.buildname }}
            {{ data.addr1 }}
            Plymouth
            PL4 6JH

Owner

Green Crown Property Services

Addresses

                17a West Park Road
                London
                NW1 2DA

Tenure type

Freehold

This title was last changed on 11 August 1988 at 15:34:23

Download or print

If you want to keep this information or need a VAT receipt

download a copy of this property summary

print a copy of this property summary

What did you think of this service?

Please give us your feedback (takes 30 seconds).
This is a new service and your feedback will help us improve it.

VAT receipt

Date

Transaction ID

4303813508

Description

Summary of title: PB1056338

Net amount

£2.50

VAT @ 20%

£0.50

Total inc VAT

£3.00

                  HM Land Registry

                    Trafalgar house
1 Bedford Park
                    Croydon
                    CR0 2AQ

VAT registration number:
 GB 8888 181 53

If you have any problems with your purchase, you can contact HM Land Registry using the general enquiry contact form or call 0300 006 0411.

If you have any problems with your purchase, you can contact HM Land Registry on 0300 006 0411.

What next

Search again

Return to GOV.UK

Sign out

  {% if title.indexPolygon %}

  {% endif %}

{% endblock %}