text:
<?xml version="1.0" encoding="UTF-8"?>
<CustomMetadata xmlns="http://soap.sforce.com/2006/04/metadata" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
    <label>GAU Allocation 2: Payment</label>
    <protected>true</protected>
    <values>
        <field>Data_Import_Field_Mapping_Set__c</field>
        <value xsi:type="xsd:string">Default_Field_Mapping_Set</value>
    </values>
    <values>
        <field>Required__c</field>
        <value xsi:type="xsd:string">No</value>
    </values>
    <values>
        <field>Source_Field_API_Name__c</field>
        <value xsi:type="xsd:string">npsp__PaymentImported__c</value>
    </values>
    <values>
        <field>Target_Field_API_Name__c</field>
        <value xsi:type="xsd:string">npsp__Payment__c</value>
    </values>
    <values>
        <field>Target_Object_Mapping__c</field>
        <value xsi:type="xsd:string">GAU_Allocation_2</value>
    </values>
</CustomMetadata>


text:
<!DOCTYPE html>
<!--
Copyright 2012 Google Inc. All Rights Reserved.
Author: moz@google.com (Michael Zhou)
-->
<html>
<head>
  <title>Misc</title>
  <script src="../../../../../javascript/closure/base.js"></script>
  <script src="../wgxpath.install.js"></script>
</head>
<body>
  <iframe id="testFrame" src="misc_test_page.html"></iframe>
</body>
<script src="./test_js_deps.js"></script>
<script>
  goog.require('goog.testing.jsunit');
  goog.require('goog.userAgent');
  goog.require('wgxpath.test');
</script>
<script>
  function setUpPage() {
    var testFrame = document.getElementById('testFrame');
    wgxpath.test.setContext(testFrame.contentWindow.document);
  }

  function test00() {
    wgxpath.test.assertEvaluatesToNodeSet(['div#id2', 'div#id4-2'], '//div[2]');
  }

  function test01() {
    wgxpath.test.assertEvaluatesToNodeSet(['div#id2'], '/descendant::div[2]');
  }

  function test02() {
    wgxpath.test.assertEvaluatesToNodeSet(['div#id2'], '(//div)[2]');
  }

  function test03() {
    wgxpath.test.assertEvaluatesToNodeSet(['tr#id6', 'tr#id9'], '//tr[2]');
  }

  function test04() {
    wgxpath.test.assertEvaluatesToNodeSet(['tr#id6'], '/descendant::tr[2]');
  }

  function test05() {
    wgxpath.test.assertEvaluatesToNodeSet(['tr#id6'], '(//tr)[2]');
  }

  function test06() {
    wgxpath.test.assertEvaluatesToValue(2, '(//p) + 1');
  }

  function test07() {
    wgxpath.test.assertEvaluatesToNodeSet(['p#ppp'], 'id("ppp")[true()]');
  }

  function test08() {
    wgxpath.test.assertEvaluatesToValue(1, 'number(id("ppp")[true()])');
  }

  function test09() {
    wgxpath.test.assertEvaluatesToValue(2, 'id("ppp")[true()] + 1');
  }
</script>
</html>

redpajama_set_name: RedPajamaGithub


text:
<!DOCTYPE html>
<title>Test that removing invalid event listeners from image documents doesn't crash.</title>
<script src="../resources/testharness.js"></script>
<script src="../resources/testharnessreport.js"></script>
<script>
async_test(function(t) {
    if (window.testRunner) {
        testRunner.setCanOpenWindows();
    }
    var newWindow = window.open("resources/dice.png");
    newWindow.onload =  t.step_func_done(function() {
        newWindow.addEventListener("resize", function () {;});
        newWindow.removeEventListener("resize", 2);
    });
});
</script>


text:
import { useState, useCallback } from 'react';

export const useDrawerExiting = (visible: boolean) => {
  const [exiting, setExiting] = useState(false);
  const [prevVisible, setPrevVisible] = useState(visible);

  const onExited = useCallback(() => {
    setExiting(false);
  }, []);

  if (prevVisible === visible) {
    return { exiting, onExited };
  }

  setExiting(!visible);
  setPrevVisible(visible);

  return { exiting, onExited };
};


text:
package org.apache.commons.ssl.asn1;

import java.io.IOException;
import java.io.InputStream;

public class BERTaggedObjectParser
    implements ASN1TaggedObjectParser {
    private int _baseTag;
    private int _tagNumber;
    private InputStream _contentStream;

    private boolean _indefiniteLength;

    protected BERTaggedObjectParser(
        int baseTag,
        int tagNumber,
        InputStream contentStream) {
        _baseTag = baseTag;
        _tagNumber = tagNumber;
        _contentStream = contentStream;
        _indefiniteLength = contentStream instanceof IndefiniteLengthInputStream;
    }

    public boolean isConstructed() {
        return (_baseTag & DERTags.CONSTRUCTED) != 0;
    }

    public int getTagNo() {
        return _tagNumber;
    }

    public DEREncodable getObjectParser(
        int tag,
        boolean isExplicit)
        throws IOException {
        if (isExplicit) {
            return new ASN1StreamParser(_contentStream).readObject();
        } else {
            switch (tag) {
                case DERTags.SET:
                    if (_indefiniteLength) {
                        return new BERSetParser(new ASN1ObjectParser(_baseTag, _tagNumber, _contentStream));
                    } else {
                        return new DERSet(loadVector(_contentStream)).parser();
                    }
                case DERTags.SEQUENCE:
                    if (_indefiniteLength) {
                        return new BERSequenceParser(new ASN1ObjectParser(_baseTag, _tagNumber, _contentStream));
                    } else {
                        return new DERSequence(loadVector(_contentStream)).parser();
                    }
                case DERTags.OCTET_STRING:
                    if (_indefiniteLength || this.isConstructed()) {
                        return new BEROctetStringParser(new ASN1ObjectParser(_baseTag, _tagNumber, _contentStream));
                    } else {
                        return new DEROctetString(((DefiniteLengthInputStream) _contentStream).toByteArray()).parser();
                    }
            }
        }

        throw new RuntimeException("implicit tagging not implemented");
    }

    private ASN1EncodableVector loadVector(InputStream in)
        throws IOException {
        ASN1StreamParser aIn = new ASN1StreamParser(in);
        ASN1EncodableVector v = new ASN1EncodableVector();
        DEREncodable obj = aIn.readObject();

        while (obj != null) {
            v.add(obj.getDERObject());
            obj = aIn.readObject();
        }

        return v;
    }

    private ASN1EncodableVector rLoadVector(InputStream in) {
        try {
            return loadVector(in);
        }
        catch (IOException e) {
            throw new IllegalStateException(e.getMessage());
        }
    }

    public DERObject getDERObject() {
        if (_indefiniteLength) {
            ASN1EncodableVector v = rLoadVector(_contentStream);

            if (v.size() > 1) {
                return new BERTaggedObject(false, _tagNumber, new BERSequence(v));
            } else if (v.size() == 1) {
                return new BERTaggedObject(true, _tagNumber, v.get(0));
            } else {
                return new BERTaggedObject(false, _tagNumber, new BERSequence());
            }
        } else {
            if (this.isConstructed()) {
                ASN1EncodableVector v = rLoadVector(_contentStream);

                if (v.size() == 1) {
                    return new DERTaggedObject(true, _tagNumber, v.get(0));
                }

                return new DERTaggedObject(false, _tagNumber, new DERSequence(v));
            }

            try {
                return new DERTaggedObject(false, _tagNumber, new DEROctetString(((DefiniteLengthInputStream) _contentStream).toByteArray()));
            }
            catch (IOException e) {
                throw new IllegalStateException(e.getMessage());
            }
        }

    }
}


text:
namespace x
{
    struct D { boost::unordered_map<D, D> x; };
}

namespace test
{
    // Declare, but don't define some types.

    struct value;
    struct hash;
    struct equals;
    template <class T>
    struct malloc_allocator;

    // Declare some instances

    typedef boost::unordered_map<value, value, hash, equals,
        malloc_allocator<std::pair<value const, value> > > map;
    typedef boost::unordered_multimap<value, value, hash, equals,
        malloc_allocator<std::pair<value const, value> > > multimap;
    typedef boost::unordered_set<value, hash, equals,
        malloc_allocator<value> > set;
    typedef boost::unordered_multiset<value, hash, equals,
        malloc_allocator<value> > multiset;

    // Now define the types which are stored as members, as they are needed for
    // declaring struct members.

    struct hash {
        template <typename T>
        std::size_t operator()(T const&) const { return 0; }
    };

    struct equals {
        template <typename T>
        bool operator()(T const&, T const&) const { return true; }
    };

}

#include "../helpers/allocator.hpp"

namespace test
{
    // Declare some members of a structs.
    //
    // Incomplete hash, equals and allocator aren't here supported at the
    // moment.

    struct struct1 {
        boost::unordered_map<struct1, struct1, hash, equals,
            malloc_allocator<std::pair<struct1 const, struct1> > > x;
    };
    struct struct2 {
        boost::unordered_multimap<struct2, struct2, hash, equals,
            malloc_allocator<std::pair<struct2 const, struct2> > > x;
    };
    struct struct3 {
        boost::unordered_set<struct3, hash, equals,
            malloc_allocator<struct3> > x;
    };
    struct struct4 {
        boost::unordered_multiset<struct4, hash, equals,
            malloc_allocator<struct4> > x;
    };

    // Now define the value type.

    struct value {};

    // Create some instances.

    test::map m1;
    test::multimap m2;
    test::set s1;
    test::multiset s2;

    test::struct1 c1;
    test::struct2 c2;
    test::struct3 c3;
    test::struct4 c4;

    // Now declare, but don't define, the operators required for comparing
    // elements.

    std::size_t hash_value(value const&);
    bool operator==(value const&, value const&);

    std::size_t hash_value(struct1 const&);
    std::size_t hash_value(struct2 const&);
    std::size_t hash_value(struct3 const&);
    std::size_t hash_value(struct4 const&);

    bool operator==(struct1 const&, struct1 const&);
    bool operator==(struct2 const&, struct2 const&);
    bool operator==(struct3 const&, struct3 const&);
    bool operator==(struct4 const&, struct4 const&);

    // And finally use these

    void use_types()
    {
        test::value x;
        m1[x] = x;
        m2.insert(std::make_pair(x, x));
        s1.insert(x);
        s2.insert(x);

        c1.x.insert(std::make_pair(c1, c1));
        c2.x.insert(std::make_pair(c2, c2));
        c3.x.insert(c3);
        c4.x.insert(c4);
    }

    // And finally define the operators required for comparing elements.

    std::size_t hash_value(value const&) { return 0; }
    bool operator==(value const&, value const&) { return true; }

    std::size_t hash_value(struct1 const&) { return 0; }
    std::size_t hash_value(struct2 const&) { return 0; }
    std::size_t hash_value(struct3 const&) { return 0; }
    std::size_t hash_value(struct4 const&) { return 0; }

    bool operator==(struct1 const&, struct1 const&) { return true; }
    bool operator==(struct2 const&, struct2 const&) { return true; }
    bool operator==(struct3 const&, struct3 const&) { return true; }
    bool operator==(struct4 const&, struct4 const&) { return true; }
}

int main() {
    // This could just be a compile test, but I like to be able to run these
    // things. It's probably irrational, but I find it reassuring.

    test::use_types();
}


text:
from boto.ec2.ec2object import EC2Object

class VmType(EC2Object):
    """
    Represents an EC2 VM Type

    :ivar name: The name of the vm type
    :ivar cores: The number of cpu cores for this vm type
    :ivar memory: The amount of memory in megabytes for this vm type
    :ivar disk: The amount of disk space in gigabytes for this vm type
    """

    def __init__(self, connection=None, name=None, cores=None, memory=None, disk=None):
        EC2Object.__init__(self, connection)
        self.connection = connection
        self.name = name
        self.cores = cores
        self.memory = memory
        self.disk = disk

    def __repr__(self):
        return 'VmType:%s-%s,%s,%s' % (self.name, self.cores, self.memory, self.disk)

    def endElement(self, name, value, connection):
        if name == 'euca:name':
            self.name = value
        elif name == 'euca:cpu':
            self.cores = value
        elif name == 'euca:disk':
            self.disk = value
        elif name == 'euca:memory':
            self.memory = value
        else:
            setattr(self, name, value)


text:
package org.orekit.frames;

import org.junit.jupiter.api.Test;
import org.orekit.data.ClasspathCrawler;
import org.orekit.data.DataProvidersManager;
import org.orekit.time.LazyLoadedTimeScales;
import org.orekit.time.TimeScales;
import org.orekit.utils.IERSConventions;

/**
 * Unit tests for {@link LazyLoadedFrames}.
 *
 * @author Evan Ward
 * @see FramesFactoryTest
 */
public class LazyLoadedFramesTest {

    /**
     * Before 10.1 calling {@link FramesFactory#addDefaultEOP1980HistoryLoaders(String,
     * String, String, String, String)} before leap seconds were available worked just
     * fine. Ensure this class is capable of the same behavior.
     */
    @Test
    public void testAddLoadersWithoutUtc() {
        // setup
        DataProvidersManager manager = new DataProvidersManager();
        // prevent adding other providers
        manager.addProvider(new ClasspathCrawler("no-data/dummy.txt"));
        LazyLoadedEop eop = new LazyLoadedEop(manager);
        TimeScales timeScales = new LazyLoadedTimeScales(eop);
        LazyLoadedFrames frames = new LazyLoadedFrames(eop, timeScales, null);

        // actions
        frames.addDefaultEOP1980HistoryLoaders(null, null, null, null, null);
        frames.addDefaultEOP2000HistoryLoaders(null, null, null, null, null);
        frames.addEOPHistoryLoader(IERSConventions.IERS_2010, null);

        // verify: no exceptions thrown
    }

}


text:
import { colorScale } from '../../../helpers/color-scale';
import { module, test } from 'qunit';
import d3 from 'd3';

module('Unit | Helper | color scale');

// Replace this with your real tests.
test('Scales preset on d3.scale.* can be accessed as alias', function(assert) {
  var checks = [
    [ colorScale([ 'category10' ]).range(), d3.scale.category10().range() ],
    [ colorScale([ 'category20' ]).range(), d3.scale.category20().range() ],
    [ colorScale([ 'category20b' ]).range(), d3.scale.category20b().range() ],
    [ colorScale([ 'category20c' ]).range(), d3.scale.category20c().range() ]
  ];

  checks.forEach(([ actual, expected ]) => {
    assert.deepEqual(actual, expected);
  });

});

test('Pass in custom color hex for custom color scale', function(assert) {
  var checks = [
    [ colorScale([ '#fff', '#f00' ]).range(), [ '#fff', '#f00' ] ],
    [ colorScale([ '#00f', '#f00' ]).range(), [ '#00f', '#f00' ] ]
  ];

  checks.forEach(([ actual, expected ]) => {
    assert.deepEqual(actual, expected);
  });

});


text:
package encoding

import (
	"github.com/apache/arrow/go/v10/internal/bitutils"
	"github.com/apache/arrow/go/v10/parquet"
)

// PlainFixedLenByteArrayEncoder writes the raw bytes of the byte array
// always writing typeLength bytes for each value.
type PlainFixedLenByteArrayEncoder struct {
	encoder

	bitSetReader bitutils.SetBitRunReader
}

// Put writes the provided values to the encoder
func (enc *PlainFixedLenByteArrayEncoder) Put(in []parquet.FixedLenByteArray) {
	typeLen := enc.descr.TypeLength()
	if typeLen == 0 {
		return
	}

	bytesNeeded := len(in) * typeLen
	enc.sink.Reserve(bytesNeeded)
	for _, val := range in {
		if val == nil {
			panic("value cannot be nil")
		}
		enc.sink.UnsafeWrite(val[:typeLen])
	}
}

// PutSpaced is like Put but works with data that is spaced out according to the passed in bitmap
func (enc *PlainFixedLenByteArrayEncoder) PutSpaced(in []parquet.FixedLenByteArray, validBits []byte, validBitsOffset int64) {
	if validBits != nil {
		if enc.bitSetReader == nil {
			enc.bitSetReader = bitutils.NewSetBitRunReader(validBits, validBitsOffset, int64(len(in)))
		} else {
			enc.bitSetReader.Reset(validBits, validBitsOffset, int64(len(in)))
		}

		for {
			run := enc.bitSetReader.NextRun()
			if run.Length == 0 {
				break
			}
			enc.Put(in[int(run.Pos):int(run.Pos+run.Length)])
		}
	} else {
		enc.Put(in)
	}
}

// Type returns the underlying physical type this encoder works with, Fixed Length byte arrays.
func (PlainFixedLenByteArrayEncoder) Type() parquet.Type {
	return parquet.Types.FixedLenByteArray
}

// WriteDict overrides the embedded WriteDict function to call a specialized function
// for copying out the Fixed length values from the dictionary more efficiently.
func (enc *DictFixedLenByteArrayEncoder) WriteDict(out []byte) {
	enc.memo.(BinaryMemoTable).CopyFixedWidthValues(0, enc.typeLen, out)
}

// Put writes fixed length values to a dictionary encoded column
func (enc *DictFixedLenByteArrayEncoder) Put(in []parquet.FixedLenByteArray) {
	for _, v := range in {
		if v == nil {
			v = empty[:]
		}
		memoIdx, found, err := enc.memo.GetOrInsert(v)
		if err != nil {
			panic(err)
		}
		if !found {
			enc.dictEncodedSize += enc.typeLen
		}
		enc.addIndex(memoIdx)
	}
}

// PutSpaced is like Put but leaves space for nulls
func (enc *DictFixedLenByteArrayEncoder) PutSpaced(in []parquet.FixedLenByteArray, validBits []byte, validBitsOffset int64) {
	bitutils.VisitSetBitRuns(validBits, validBitsOffset, int64(len(in)), func(pos, length int64) error {
		enc.Put(in[pos : pos+length])
		return nil
	})
}


text:
#ifndef color_cmy_place_cyan
#define color_cmy_place_cyan

// ::color::place::cyan<category_name>()

#include "../../generic/place/cyan.hpp"
#include "../category.hpp"
#include "../trait/index.hpp"

 namespace color
  {
   namespace place
    {
     namespace _internal
      {

       template< typename tag_name >
        struct cyan< ::color::category::cmy< tag_name > >
         {
          public:
           typedef ::color::category::cmy< tag_name > category_type;
           typedef typename ::color::trait::index< category_type >::instance_type index_instance_type;

           enum { position_enum = 0 };
           enum { has_enum = true };

           static /*constexpr*/ index_instance_type position()
            {
             return position_enum;
            }
         };

      }
    }
  }

#endif


text:
include(FindPkgMacros)
findpkg_begin(OVEN_TO_BOOST)

find_path(OVEN_TO_BOOST_INCLUDE_DIR NAMES boost/range/as_container.hpp)

findpkg_finish(OVEN_TO_BOOST)


text:
require 'test_helper'

class AccountControllerTest < ActionController::TestCase
  test "should get profile" do
    get :profile
    assert_response :success
  end

  test "should get edit" do
    get :edit
    assert_response :success
  end

  test "should get update" do
    get :update
    assert_response :success
  end

  test "should get verify" do
    get :verify
    assert_response :success
  end

  test "should get update_verify" do
    get :update_verify
    assert_response :success
  end

end


text:
author: maaa16
published: "2016-11-17"
category:
    - dagens bild
...
Gymmet
===========
<!-- [FIGURE src="cimage/imgd.php?src=blogg/aftergym.jpg&w=250&aro" caption="Efter ett gympass." class="center w50"] -->
<!-- [FIGURE src="image/blogg/aftergym.jpg&w=250&aro" caption="Efter ett gympass." class="center w50"] -->

[FIGURE src="image/blogg/aftergym.jpg?w=250&aro" caption="Efter ett gympass." class="left"]
[FIGURE src="image/blogg/aftergym.jpg?w=450&h=400&aro&crop-to-fit&area=25,40,20,10" caption="Det var viktigt att få med dörren in till gymmet. För bevisvärdets skull." class="left"]
[FIGURE src="image/blogg/aftergym.jpg?w=300&h=300&aro&crop-to-fit&area=10,0,10,60" caption="Med bitter min och glasögonen på sne var jag trots allt nöjd att ha överlevt ännu ett pass." class="left"]

Tagen efter ett gympass för att visa för min gymkompanjon att jag inte fuskar med tillfällena. Vi har precis börjat och vi kämpar med att hålla träningsmoralen på fortsatt hög nivå.

So far so good!


text:
cat <<EOF
********************************************** WARNING **********************************************
This script uses the Azure CLI 1.0 and has been deprecated. Please install the Azure CLI 2.0
(https://docs.microsoft.com/cli/azure/install-azure-cli) and use these 3 easy commands:

  az login
  az account set --subscription <Subscription ID>
  az ad sp create-for-rbac

By default, the last command creates a Service Principal with the 'Contributor' role scoped to the
current subscription. Pass the '--help' parameter for more info if you want to change the defaults.
********************************************** WARNING **********************************************
EOF

if !(command -v azure >/dev/null); then
  echo "ERROR: This script requires Azure CLI 1.0, but it could not be found. Is it installed and on your path?" 1>&2
  exit -1
fi

SUBSCRIPTION_ID=$1

#echo ""
#echo "  Background article: https://azure.microsoft.com/documentation/articles/resource-group-authenticate-service-principal"
echo ""

my_app_name_uuid=$(python -c 'import uuid; print (str(uuid.uuid4())[:8])')
MY_APP_NAME="app${my_app_name_uuid}"

MY_APP_KEY=$(python -c 'import uuid; print (uuid.uuid4().hex)')

my_app_id_URI="${MY_APP_NAME}_id"

#check if the user has subscriptions. If not she's probably not logged in
subscriptions_list=$(azure account list --json)
subscriptions_list_count=$(echo $subscriptions_list | jq '. | length' 2>/dev/null)
if [ $? -ne 0 ] || [ "$subscriptions_list_count" -eq "0" ]
then
  azure login
else
  echo "  You are already logged in with an Azure account so we won't ask for credentials again."
  echo "  If you want to select a subscription from a different account, before running this script you should either log out from all the Azure accounts or login manually with the new account."
  echo "  azure login"
  echo ""
fi

if [ -z "$SUBSCRIPTION_ID" ]
then
  #prompt for subscription
  subscription_index=0
  subscriptions_list=$(azure account list --json)
  subscriptions_list_count=$(echo $subscriptions_list | jq '. | length')
  if [ $subscriptions_list_count -eq 0 ]
  then
    echo "  You need to sign up an Azure Subscription here: https://azure.microsoft.com"
    exit 1
  elif [ $subscriptions_list_count -gt 1 ]
  then
    echo $subscriptions_list | jq -r 'keys[] as $i | "  \($i+1). \(.[$i] | .name)"'

    while read -r -t 0; do read -r; done #clear stdin
    subscription_idx=0
    until [ $subscription_idx -ge 1 -a $subscription_idx -le $subscriptions_list_count ]
    do
      read -p "  Select a subscription by typing an index number from above list and press [Enter]: " subscription_idx
      if [ $subscription_idx -ne 0 -o $subscription_idx -eq 0 2>/dev/null ]
      then
        :
      else
        subscription_idx=0
      fi
    done
    subscription_index=$((subscription_idx-1))
  fi

  SUBSCRIPTION_ID=`echo $subscriptions_list | jq -r '.['$subscription_index'] | .id'`
  echo ""
fi

azure account set $SUBSCRIPTION_ID >/dev/null
if [ $? -ne 0 ]
then
  exit 1
else
  echo "  Using subscription ID $SUBSCRIPTION_ID"
  echo ""
fi

MY_SUBSCRIPTION_ID=$(azure account show --json | jq -r '.[0].id')
MY_TENANT_ID=$(azure account show --json | jq -r '.[0].tenantId')

azure config mode arm >/dev/null

my_error_check=$(azure ad sp show --search $MY_APP_NAME --json | grep "displayName" | grep -c \"$MY_APP_NAME\" )

if [ $my_error_check -gt 0 ];
then
  echo "  Found an app id matching the one we are trying to create; we will reuse that instead"
else
  echo "  Creating application in active directory:"
  echo "  azure ad app create --name '$MY_APP_NAME' --home-page 'http://$MY_APP_NAME' --identifier-uris 'http://$my_app_id_URI/' --password $MY_APP_KEY"
  azure ad app create --name $MY_APP_NAME --home-page http://$MY_APP_NAME --identifier-uris http://$my_app_id_URI/ --password $MY_APP_KEY >/dev/null
  if [ $? -ne 0 ]
  then
    exit 1
  fi
  # Give time for operation to complete
  echo "  Waiting for operation to complete...."
  sleep 20
  my_error_check=$(azure ad app show --search $MY_APP_NAME --json | grep "displayName" | grep -c \"$MY_APP_NAME\" )

  if [ $my_error_check -gt 0 ];
  then
    my_app_object_id=$(azure ad app show --json --search $MY_APP_NAME | jq -r '.[0].objectId')
    MY_CLIENT_ID=$(azure ad app show --json --search $MY_APP_NAME | jq -r '.[0].appId')
    echo " "
    echo "  Creating the service principal in AD"
    echo "  azure ad sp create -a $MY_CLIENT_ID"
    azure ad sp create -a $MY_CLIENT_ID >/dev/null
    # Give time for operation to complete
    echo "  Waiting for operation to complete...."
    sleep 20
    my_app_sp_object_id=$(azure ad sp show --search $MY_APP_NAME --json | jq -r '.[0].objectId')

    echo "  Assign rights to service principle"
    echo "  azure role assignment create --objectId $my_app_sp_object_id -o Owner -c /subscriptions/$MY_SUBSCRIPTION_ID"
    azure role assignment create --objectId $my_app_sp_object_id -o Owner -c /subscriptions/$MY_SUBSCRIPTION_ID >/dev/null
    if [ $? -ne 0 ]
    then
      exit 1
    fi
  else
    echo " "
    echo "  We've encounter an unexpected error; please hit Ctr-C and retry from the beginning"
    read my_error
  fi
fi

MY_CLIENT_ID=$(azure ad sp show --search $MY_APP_NAME --json | jq -r '.[0].appId')

echo "  "
echo "  Your access credentials ============================="
echo "  "
echo "  Subscription ID:" $MY_SUBSCRIPTION_ID
echo "  Client ID:" $MY_CLIENT_ID
echo "  Client Secret:" $MY_APP_KEY
echo "  OAuth 2.0 Token Endpoint:" "https://login.microsoftonline.com/${MY_TENANT_ID}/oauth2/token"
echo "  Tenant ID:" $MY_TENANT_ID
echo "  "
echo "  You can verify the service principal was created properly by running:"
echo "  azure login -u "$MY_CLIENT_ID" --service-principal --tenant $MY_TENANT_ID"
echo "  "


text:
import { post } from '../jobs';

export default async function snapshot() {
  await post({
    type: 'snapshot'
  });
}


text:
import $ from 'jquery'
import cockpit from 'cockpit'

import '../node_modules/patternfly/dist/css/patternfly.css'
import '../node_modules/patternfly/dist/css/patternfly-additions.css'

import '../node_modules/bootstrap/dist/js/bootstrap'
import '../node_modules/patternfly/dist/js/patternfly'

import {CONFIG} from './constants'
import {GLOBAL} from './globaldata'

import {debugMsg, printError, registerBtnOnClickListener, goTo, scheduleNextAutoRefresh, confirmModal} from './helpers'
import {isLoggedInEngine, setEngineLoginTitle, setEngineFunctionalityVisibility, toggleEngineLoginVisibility, isAllVmsPath} from './engineLogin'
import {readEngineVmsList, refreshEngineVmsList, hostToMaintenance} from './enginevms'
import {readVmsList, shutdownAllHostVmsConfirm} from './hostvms'
import {getVmIdFromPath, renderVmDetail} from './vmdetail'
import {saveVdsmConf, reloadVdsmConf, loadVdsmConf} from './vdsmscreen'
import {renderPing} from './ping'

function showVmsScreen () {
  hideAllScreens()
  readVmsList()
  $('#vms-screen').show()
  $('#main-btn-menu-hostvms').addClass('active')
}

function showEngineVmsScreen () {
  debugMsg('showEngineVmsScreen() called')
  if (isLoggedInEngine()) {
    hideAllScreens()
    readEngineVmsList()
    $('#engine-vms-screen').show()
  } else { // should not happen, engine is not available
    printError('showEngineVmsScreen() called but no engine login is available')
    goTo('/vms')
  }

  $('#main-btn-menu-allvms').addClass('active')
}

function showVmDetailScreen (vmId) {
  hideAllScreens()

  if (!GLOBAL.latestHostVMSList) { // ensure vms list is read
    readVmsList()
  } else {
    renderVmDetail(vmId)
  }

  $('#vm-detail-screen').show()
}

function showVdsmScreen () {
  hideAllScreens()
  loadVdsmConf()
  $('#vdsm-screen').show()
  $('#main-btn-menu-vdsm').addClass('active')
}

function showPing () {
  $('#ovirt-content').hide()
  renderPing()
  $('#ping-content').show()
}

function hideAllScreens () {
  $('#vms-screen').hide()
  $('#engine-vms-screen').hide()
  $('#vm-detail-screen').hide()
  $('#vdsm-screen').hide()

  $('#ovirt-content').show()

  $('#main-btn-menu li').removeClass('active')
}

function onLocationChanged () {
  debugMsg('Location path:' + cockpit.location.path)
  var path = cockpit.location.path
  if (path.length === 0 || path[0] === '/' || path[0] === 'vms') { // vms-screen
    showVmsScreen()
  } else if (path[0] === 'vm') { // vm-detail-screen
    var vmId = getVmIdFromPath()
    if (vmId != null) {
      showVmDetailScreen(vmId)
    } else {
      defaultScreen('vmId must be specified')
    }
  } else if (isAllVmsPath()) {
    showEngineVmsScreen()
  } else if (path[0] === 'vdsm') {
    showVdsmScreen()
  } else if (path[0] === 'ping') {
    showPing()
  } else {
    defaultScreen('Unknown location path: ' + path[0])
  }
}

function defaultScreen (errorText) {
  printError(errorText)
  showVmsScreen()
}

function jump (component) {
  cockpit.jump(component)// TODO: specify host
}

function refreshActionClicked (ignore) {
  var buttonRefresh = $('#action-refresh')
  var buttonRefreshText = $('#action-refresh-text')

  if (buttonRefresh.attr('data-pattern') === 'off') {
    startAutorefresher()
    scheduleNextAutoRefresh()

    buttonRefreshText.text('Refresh: auto')
    buttonRefresh.attr('data-pattern', 'on')
  } else {
    stopAutorefresher()

    buttonRefreshText.text('Refresh: off')
    buttonRefresh.attr('data-pattern', 'off')
  }
}

$(document).on('scheduleNextAutoRefreshEvent',
  function () {
    if (GLOBAL.autoRefresher) {
      setTimeout(refresh, CONFIG.reload.auto_refresh_interval)
    }
  })

function startAutorefresher () {
  GLOBAL.autoRefresher = true // setInterval(refresh, CONFIG.reload.auto_refresh_interval)
}

function stopAutorefresher () {
  // clearInterval(GLOBAL.autoRefresher)
  GLOBAL.autoRefresher = false
}

function refresh () {
  // TODO: refresh selectively depending on the locationPath
  debugMsg('refresh() called')

  readVmsList()
  refreshEngineVmsList()

  scheduleNextAutoRefresh()
}

function hostToMaintenanceActionClicked () {
  if (isLoggedInEngine()) {
    confirmModal('Set Host to Maintenance', 'Please confirm the host shall be set to maintenance mode (by engine)',
      function () {
        hostToMaintenance()
        setTimeout(readVmsList, CONFIG.reload.delay_after_vdsm_action)
      })
  } else {
    shutdownAllHostVmsConfirm()
  }
}

function initNavigation () {
  $('#main-btn-menu li').on('click', function () {
    var dataPattern = $(this).attr('data-pattern')
    goTo(dataPattern)
  })

  registerBtnOnClickListener('action-refresh', refreshActionClicked)
  registerBtnOnClickListener('action-host-to-maintenance', hostToMaintenanceActionClicked)

  registerBtnOnClickListener('a-jump-vdsm-service-mngmt', jump)
  registerBtnOnClickListener('editor-vdsm-btn-save', saveVdsmConf)
  registerBtnOnClickListener('editor-vdsm-btn-reload', reloadVdsmConf)

  registerBtnOnClickListener('engine-login-title', toggleEngineLoginVisibility)
}

function initEngineLogin () {
  if (isLoggedInEngine()) {
    setEngineLoginTitle('Logged to Engine')
  }
  setEngineFunctionalityVisibility()
}

function initialize () {
  initNavigation()
  initEngineLogin()

  $(cockpit).on('locationchanged', onLocationChanged)
  onLocationChanged()

  refreshActionClicked()// start auto-refresher
}

$(document).ready(initialize)


text:
$( document ).ready(function() {
	/* Add multiple select chooser for the teams which participate on a tournament */
	// do this if we are on the good page (id of the select exists)
	if($('#multiple-teams-select').length){
		$("#multiple-teams-select").select2({
			placeholder: 'Choisir une équipe',
	  		allowClear: true
	  	});
	}
});


text:
Copyright (c) 2015 Open Communications Security. All rights reserved.

## Introduction

The OpenCS Binary-to-Text library for C# (ocsbincodec-csharp) is a customizable
library capable of encode and decode binary values to plain text using multiple
standard and non-standard encodings schemes. It is a direct port of ocsbincodec-java (https://github.com/opencs/ocsbincodec-java).

This library was designed to be as flexible as possible. This means that the
implementations in this library will always favor flexibility first.

## Version history

* 1.0.0:
  * First public version ported from ocsbincodec-java

## Features

* Multiple Binary-to-Text encondings
  * Binary (customizeble)
  * Hexadecimal (RFC4648, customizable)
  * Base32 (RFC4648, customizable)
  * Base64 (RFC4648, customizable)
* Custom alphabets
* Uniform interface for all encoders/decoders
* Compatible with C# 3.5 and higher (including Windows Phone)

## Licensing

This software is released under the *Modified BSD License*.

## FAQ

### Can I use this library on commercial software?

Yes. Just follow the license restrictions.


text:
package splar.plugins.reasoners.bdd.javabdd;

public class BDDExceededBuildingTimeException extends Exception {

	private String details;

	public BDDExceededBuildingTimeException(String message, String details) {
		super(message);
		this.details = details;
	}

	public String getDetails() {
		return details;
	}
}


text:
package android.os.storage;

/**
 * Mount service local interface.
 *
 * @hide Only for use within the system server.
 */
public abstract class MountServiceInternal {

    /**
     * Policy that influences how external storage is mounted and reported.
     */
    public interface ExternalStorageMountPolicy {
        /**
         * Gets the external storage mount mode for the given uid.
         *
         * @param uid The UID for which to determine mount mode.
         * @param packageName The package in the UID for making the call.
         * @return The mount mode.
         *
         * @see com.android.internal.os.Zygote#MOUNT_EXTERNAL_NONE
         * @see com.android.internal.os.Zygote#MOUNT_EXTERNAL_DEFAULT
         * @see com.android.internal.os.Zygote#MOUNT_EXTERNAL_READ
         * @see com.android.internal.os.Zygote#MOUNT_EXTERNAL_WRITE
         */
        public int getMountMode(int uid, String packageName);

        /**
         * Gets whether external storage should be reported to the given UID.
         *
         * @param uid The UID for which to determine whether it has external storage.
         * @param packageName The package in the UID for making the call.
         * @return Weather to report external storage.
         * @return True to report the state of external storage, false to
         *     report it as unmounted.
         */
        public boolean hasExternalStorage(int uid, String packageName);
    }

    /**
     * Adds a policy for determining how external storage is mounted and reported.
     * The mount mode is the most conservative result from querying all registered
     * policies. Similarly, the reported state is the most conservative result from
     * querying all registered policies.
     *
     * @param policy The policy to add.
     */
    public abstract void addExternalStoragePolicy(ExternalStorageMountPolicy policy);

    /**
     * Notify the mount service that the mount policy for a UID changed.
     * @param uid The UID for which policy changed.
     * @param packageName The package in the UID for making the call.
     */
    public abstract void onExternalStoragePolicyChanged(int uid, String packageName);

    /**
     * Gets the mount mode to use for a given UID as determined by consultin all
     * policies.
     *
     * @param uid The UID for which to get mount mode.
     * @param packageName The package in the UID for making the call.
     * @return The mount mode.
     */
    public abstract int getExternalStorageMountMode(int uid, String packageName);
}


text:
'use strict';

var arykow = {
		mime: require('arykow-mime')
	};

var Image = function(mime) {
	if (mime === null || mime === undefined) {
		throw new Error('null');
	}
	this.name = null;
	this.data = null;
	this.extension = null;
	for(var p in mime) {
		this[p] = mime[p];
	}
	if (this.name === null) {
		throw new Error('name is null');
	}
	if (this.data === null) {
		throw new Error('data is null');
	}
	if (this.extension === null) {
		throw new Error('extension is null');
	}
};

Image.prototype.toHTML = function() {
	return 'data:' + this.name + ';base64,' + this.data.toString('base64');
};

exports.fromBuffer = function(buffer) {
	return arykow.mime.parseFromBuffer(buffer).then(function(mime) {
		return new Image(mime);
	});
};

exports.fromFile = function(file) {
	return arykow.mime.parseFromFile(file).then(function(mime) {
		return new Image(mime);
	});
};

exports.fromURI = function(uri) {
	return arykow.mime.parseFromURI(uri).then(function(mime) {
		return new Image(mime);
	});
};


text:
import React, { PropTypes } from 'react';
import styles from './styles.css';

import Text from 'components/Text';

import tinderCardFemale from 'static/tinder_female.png';
import tinderCardMale from 'static/tinder_male.png';

const placeholderMapping = {
  1: tinderCardFemale,
  0: tinderCardMale,
  '-1': tinderCardMale,
};

function renderPlaceholderMessage(isFetching, hasMatches) {
  if (isFetching) {
    return "Hold on, we're loading your recommendations!";
  }
  if (hasMatches) {
    return 'Pick a person to find out more information!';
  }
  return "We're having some trouble loading your recommendations. Check back again later!";
}

const Panel = ({ targetGender, hasMatches, isFetching }) =>
(

  <Text type="placeholder">{renderPlaceholderMessage(isFetching, hasMatches)}</Text>

);

Panel.propTypes = {
  targetGender: PropTypes.number,
  hasMatches: PropTypes.bool,
  isFetching: PropTypes.bool,
};

export default Panel;


text:
#include "fsl_iap.h"
#include "fsl_iap_ffr.h"
#include "fsl_iap_kbp.h"
#include "fsl_iap_skboot_authenticate.h"
#include "fsl_device_registers.h"
/* Component ID definition, used by tools. */
#ifndef FSL_COMPONENT_ID
#define FSL_COMPONENT_ID "platform.drivers.iap1"
#endif

#if (defined(LPC5512_SERIES) || defined(LPC5514_SERIES) || defined(LPC55S14_SERIES) || defined(LPC5516_SERIES) || \
     defined(LPC55S16_SERIES) || defined(LPC5524_SERIES))

#define BOOTLOADER_API_TREE_POINTER ((bootloader_tree_t *)0x1301fe00U)

#elif (defined(LPC55S69_cm33_core0_SERIES) || defined(LPC55S69_cm33_core1_SERIES) || defined(LPC5526_SERIES) || \
       defined(LPC55S26_SERIES) || defined(LPC5528_SERIES) || defined(LPC55S28_SERIES) ||                       \
       defined(LPC55S66_cm33_core0_SERIES) || defined(LPC55S66_cm33_core1_SERIES))

#define BOOTLOADER_API_TREE_POINTER ((bootloader_tree_t *)0x130010f0U)

#else
#error "No valid CPU defined!"

#endif

/*!
 * @name flash and ffr Structure
 * @{
 */

typedef union functionCommandOption
{
    uint32_t commandAddr;
    status_t (*eraseCommand)(flash_config_t *config, uint32_t start, uint32_t lengthInBytes, uint32_t key);
    status_t (*programCommand)(flash_config_t *config, uint32_t start, uint8_t *src, uint32_t lengthInBytes);
    status_t (*verifyProgramCommand)(flash_config_t *config,
                                     uint32_t start,
                                     uint32_t lengthInBytes,
                                     const uint8_t *expectedData,
                                     uint32_t *failedAddress,
                                     uint32_t *failedData);
    status_t (*flashReadCommand)(flash_config_t *config, uint32_t start, uint8_t *dest, uint32_t lengthInBytes);
} function_command_option_t;

/*
 *!@brief Structure of version property.
 *
 *!@ingroup bl_core
 */
typedef union StandardVersion
{
    struct
    {
        uint32_t bugfix : 8; /*!< bugfix version [7:0] */
        uint32_t minor : 8;  /*!< minor version [15:8] */
        uint32_t major : 8;  /*!< major version [23:16] */
        uint32_t name : 8;   /*!< name [31:24] */
    };
    uint32_t version; /*!< combined version numbers. */
#if defined(__cplusplus)
    StandardVersion() : version(0)
    {
    }
    StandardVersion(uint32_t version) : version(version)
    {
    }
#endif
} standard_version_t;

/*! @brief Interface for the flash driver.*/
typedef struct version1FlashDriverInterface
{
    standard_version_t version; /*!< flash driver API version number.*/

    /*!< Flash driver.*/
    status_t (*flash_init)(flash_config_t *config);
    status_t (*flash_erase)(flash_config_t *config, uint32_t start, uint32_t lengthInBytes, uint32_t key);
    status_t (*flash_program)(flash_config_t *config, uint32_t start, uint8_t *src, uint32_t lengthInBytes);
    status_t (*flash_verify_erase)(flash_config_t *config, uint32_t start, uint32_t lengthInBytes);
    status_t (*flash_verify_program)(flash_config_t *config,
                                     uint32_t start,
                                     uint32_t lengthInBytes,
                                     const uint8_t *expectedData,
                                     uint32_t *failedAddress,
                                     uint32_t *failedData);
    status_t (*flash_get_property)(flash_config_t *config, flash_property_tag_t whichProperty, uint32_t *value);
    uint32_t reserved[3]; /*! Reserved for future use */
    /*!< Flash FFR driver*/
    status_t (*ffr_init)(flash_config_t *config);
    status_t (*ffr_lock_all)(flash_config_t *config);
    status_t (*ffr_cust_factory_page_write)(flash_config_t *config, uint8_t *page_data, bool seal_part);
    status_t (*ffr_get_uuid)(flash_config_t *config, uint8_t *uuid);
    status_t (*ffr_get_customer_data)(flash_config_t *config, uint8_t *pData, uint32_t offset, uint32_t len);
    status_t (*ffr_keystore_write)(flash_config_t *config, ffr_key_store_t *pKeyStore);
    status_t (*ffr_keystore_get_ac)(flash_config_t *config, uint8_t *pActivationCode);
    status_t (*ffr_keystore_get_kc)(flash_config_t *config, uint8_t *pKeyCode, ffr_key_type_t keyIndex);
    status_t (*ffr_infield_page_write)(flash_config_t *config, uint8_t *page_data, uint32_t valid_len);
    status_t (*ffr_get_customer_infield_data)(flash_config_t *config, uint8_t *pData, uint32_t offset, uint32_t len);
} version1_flash_driver_interface_t;

/*! @brief Interface for the flash driver.*/
typedef struct version0FlashDriverInterface
{
    standard_version_t version; /*!< flash driver API version number.*/

    /*!< Flash driver.*/
    status_t (*flash_init)(flash_config_t *config);
    status_t (*flash_erase)(flash_config_t *config, uint32_t start, uint32_t lengthInBytes, uint32_t key);
    status_t (*flash_program)(flash_config_t *config, uint32_t start, uint8_t *src, uint32_t lengthInBytes);
    status_t (*flash_verify_erase)(flash_config_t *config, uint32_t start, uint32_t lengthInBytes);
    status_t (*flash_verify_program)(flash_config_t *config,
                                     uint32_t start,
                                     uint32_t lengthInBytes,
                                     const uint8_t *expectedData,
                                     uint32_t *failedAddress,
                                     uint32_t *failedData);
    status_t (*flash_get_property)(flash_config_t *config, flash_property_tag_t whichProperty, uint32_t *value);

    /*!< Flash FFR driver*/
    status_t (*ffr_init)(flash_config_t *config);
    status_t (*ffr_lock_all)(flash_config_t *config);
    status_t (*ffr_cust_factory_page_write)(flash_config_t *config, uint8_t *page_data, bool seal_part);
    status_t (*ffr_get_uuid)(flash_config_t *config, uint8_t *uuid);
    status_t (*ffr_get_customer_data)(flash_config_t *config, uint8_t *pData, uint32_t offset, uint32_t len);
    status_t (*ffr_keystore_write)(flash_config_t *config, ffr_key_store_t *pKeyStore);
    status_t (*ffr_keystore_get_ac)(flash_config_t *config, uint8_t *pActivationCode);
    status_t (*ffr_keystore_get_kc)(flash_config_t *config, uint8_t *pKeyCode, ffr_key_type_t keyIndex);
    status_t (*ffr_infield_page_write)(flash_config_t *config, uint8_t *page_data, uint32_t valid_len);
    status_t (*ffr_get_customer_infield_data)(flash_config_t *config, uint8_t *pData, uint32_t offset, uint32_t len);
} version0_flash_driver_interface_t;

typedef union flashDriverInterface
{
    const version1_flash_driver_interface_t *version1FlashDriver;
    const version0_flash_driver_interface_t *version0FlashDriver;
} flash_driver_interface_t;

/*! @}*/

/*!
 * @name Bootloader API and image authentication Structure
 * @{
 */

/*! @brief Interface for Bootloader API functions. */
typedef struct _kb_interface
{
    /*!< Initialize the API. */
    status_t (*kb_init_function)(kb_session_ref_t **session, const kb_options_t *options);
    status_t (*kb_deinit_function)(kb_session_ref_t *session);
    status_t (*kb_execute_function)(kb_session_ref_t *session, const uint8_t *data, uint32_t dataLength);
} kb_interface_t;

//! @brief Interface for image authentication API
typedef struct _skboot_authenticate_interface
{
    skboot_status_t (*skboot_authenticate_function)(const uint8_t *imageStartAddr, secure_bool_t *isSignVerified);
    void (*skboot_hashcrypt_irq_handler)(void);
} skboot_authenticate_interface_t;
/*! @}*/

/*!
 * @brief Root of the bootloader API tree.
 *
 * An instance of this struct resides in read-only memory in the bootloader. It
 * provides a user application access to APIs exported by the bootloader.
 *
 * @note The order of existing fields must not be changed.
 */
typedef struct BootloaderTree
{
    void (*runBootloader)(void *arg);      /*!< Function to start the bootloader executing. */
    standard_version_t bootloader_version; /*!< Bootloader version number. */
    const char *copyright;                 /*!< Copyright string. */
    const uint32_t reserved0;              /*!< Do NOT use. */
    flash_driver_interface_t flashDriver;
    const kb_interface_t *kbApi;                               /*!< Bootloader API. */
    const uint32_t reserved1[4];                               /*!< Do NOT use. */
    const skboot_authenticate_interface_t *skbootAuthenticate; /*!< Image authentication API. */
} bootloader_tree_t;

/*******************************************************************************
 * Prototype
 ******************************************************************************/
static uint32_t get_rom_api_version(void);

/*******************************************************************************
 * Variables
 ******************************************************************************/

/*! Get pointer to flash driver API table in ROM. */
#define VERSION1_FLASH_API_TREE       BOOTLOADER_API_TREE_POINTER->flashDriver.version1FlashDriver
#define VERSION0_FLASH_API_TREE       BOOTLOADER_API_TREE_POINTER->flashDriver.version0FlashDriver
#define LPC55S69_REV0_FLASH_READ_ADDR (0x130043a3U)
#define LPC55S69_REV1_FLASH_READ_ADDR (0x13007539U)
#define LPC55S16_REV0_FLASH_READ_ADDR (0x1300ade5U)

/*******************************************************************************
 * Code
 ******************************************************************************/

static uint32_t get_rom_api_version(void)
{
    if (BOOTLOADER_API_TREE_POINTER->bootloader_version.major == 3u)
    {
        return 1u;
    }
    else
    {
        return 0u;
    }
}

/*!
 * @brief Initializes the global flash properties structure members.
 *
 * This function checks and initializes the Flash module for the other Flash APIs.
 */
status_t FLASH_Init(flash_config_t *config)
{
    /* Initialize the clock to 96MHz */
    config->modeConfig.sysFreqInMHz = (uint32_t)kSysToFlashFreq_defaultInMHz;
    if (get_rom_api_version() == 1u)
    {
        return VERSION1_FLASH_API_TREE->flash_init(config);
    }
    else
    {
        return VERSION0_FLASH_API_TREE->flash_init(config);
    }
}

/*!
 * @brief Erases the flash sectors encompassed by parameters passed into function.
 *
 * This function erases the appropriate number of flash sectors based on the
 * desired start address and length.
 */
status_t FLASH_Erase(flash_config_t *config, uint32_t start, uint32_t lengthInBytes, uint32_t key)
{
    if (get_rom_api_version() == 0u)
    {
        function_command_option_t runCmdFuncOption;
        runCmdFuncOption.commandAddr = 0x1300413bU; /*!< get the flash erase api location adress in rom */
        return runCmdFuncOption.eraseCommand(config, start, lengthInBytes, key);
    }
    else
    {
        return VERSION1_FLASH_API_TREE->flash_erase(config, start, lengthInBytes, key);
    }
}

/*! See fsl_iap.h for documentation of this function. */
status_t FLASH_Program(flash_config_t *config, uint32_t start, uint8_t *src, uint32_t lengthInBytes)
{
    if (get_rom_api_version() == 0u)
    {
        function_command_option_t runCmdFuncOption;
        runCmdFuncOption.commandAddr = 0x1300419dU; /*!< get the flash program api location adress in rom*/
        return runCmdFuncOption.programCommand(config, start, src, lengthInBytes);
    }
    else
    {
        assert(VERSION1_FLASH_API_TREE);
        return VERSION1_FLASH_API_TREE->flash_program(config, start, src, lengthInBytes);
    }
}

/*! See fsl_iap.h for documentation of this function. */
status_t FLASH_Read(flash_config_t *config, uint32_t start, uint8_t *dest, uint32_t lengthInBytes)
{
    if (get_rom_api_version() == 0u)
    {
        /*!< get the flash read api location adress in rom*/
        function_command_option_t runCmdFuncOption;
        runCmdFuncOption.commandAddr = LPC55S69_REV0_FLASH_READ_ADDR;
        return runCmdFuncOption.flashReadCommand(config, start, dest, lengthInBytes);
    }
    else
    {
        /*!< get the flash read api location adress in rom*/
        function_command_option_t runCmdFuncOption;
        if ((SYSCON->DIEID & SYSCON_DIEID_REV_ID_MASK) != 0u)
        {
            runCmdFuncOption.commandAddr = LPC55S69_REV1_FLASH_READ_ADDR;
        }
        else
        {
            runCmdFuncOption.commandAddr = LPC55S16_REV0_FLASH_READ_ADDR;
        }
        return runCmdFuncOption.flashReadCommand(config, start, dest, lengthInBytes);
    }
}

/*! See fsl_iap.h for documentation of this function. */
status_t FLASH_VerifyErase(flash_config_t *config, uint32_t start, uint32_t lengthInBytes)
{
    assert(VERSION1_FLASH_API_TREE);
    return VERSION1_FLASH_API_TREE->flash_verify_erase(config, start, lengthInBytes);
}

/*!
 * @brief Verifies programming of the desired flash area at a specified margin level.
 *
 * This function verifies the data programed in the flash memory using the
 * Flash Program Check Command and compares it to the expected data for a given
 * flash area as determined by the start address and length.
 */
status_t FLASH_VerifyProgram(flash_config_t *config,
                             uint32_t start,
                             uint32_t lengthInBytes,
                             const uint8_t *expectedData,
                             uint32_t *failedAddress,
                             uint32_t *failedData)
{
    if (get_rom_api_version() == 0u)
    {
        function_command_option_t runCmdFuncOption;
        runCmdFuncOption.commandAddr = 0x1300427dU; /*!< get the flash verify program api location adress in rom*/
        return runCmdFuncOption.verifyProgramCommand(config, start, lengthInBytes, expectedData, failedAddress,
                                                     failedData);
    }
    else
    {
        assert(VERSION1_FLASH_API_TREE);
        return VERSION1_FLASH_API_TREE->flash_verify_program(config, start, lengthInBytes, expectedData, failedAddress,
                                                             failedData);
    }
}

/*!
 * @brief Returns the desired flash property.
 */
status_t FLASH_GetProperty(flash_config_t *config, flash_property_tag_t whichProperty, uint32_t *value)
{
    assert(VERSION1_FLASH_API_TREE);
    return VERSION1_FLASH_API_TREE->flash_get_property(config, whichProperty, value);
}
/********************************************************************************
 * fsl iap ffr CODE
 *******************************************************************************/

/*!
 * Initializes the global FFR properties structure members.
 */
status_t FFR_Init(flash_config_t *config)
{
    if (get_rom_api_version() == 0u)
    {
        assert(VERSION0_FLASH_API_TREE);
        return VERSION0_FLASH_API_TREE->ffr_init(config);
    }
    else
    {
        assert(VERSION1_FLASH_API_TREE);
        return VERSION1_FLASH_API_TREE->ffr_init(config);
    }
}

/*!
 * Enable firewall for all flash banks.
 */
status_t FFR_Lock_All(flash_config_t *config)
{
    if (get_rom_api_version() == 0u)
    {
        assert(VERSION0_FLASH_API_TREE);
        return VERSION0_FLASH_API_TREE->ffr_lock_all(config);
    }
    else
    {
        assert(VERSION1_FLASH_API_TREE);
        return VERSION1_FLASH_API_TREE->ffr_lock_all(config);
    }
}

/*!
 * APIs to access CMPA pages;
 * This routine will erase "customer factory page" and program the page with passed data.
 */
status_t FFR_CustFactoryPageWrite(flash_config_t *config, uint8_t *page_data, bool seal_part)
{
    if (get_rom_api_version() == 0u)
    {
        assert(VERSION0_FLASH_API_TREE);
        return VERSION0_FLASH_API_TREE->ffr_cust_factory_page_write(config, page_data, seal_part);
    }
    else
    {
        assert(VERSION1_FLASH_API_TREE);
        return VERSION1_FLASH_API_TREE->ffr_cust_factory_page_write(config, page_data, seal_part);
    }
}

/*!
 * See fsl_iap_ffr.h for documentation of this function.
 */
status_t FFR_GetUUID(flash_config_t *config, uint8_t *uuid)
{
    if (get_rom_api_version() == 0u)
    {
        assert(VERSION0_FLASH_API_TREE);
        return VERSION0_FLASH_API_TREE->ffr_get_uuid(config, uuid);
    }
    else
    {
        assert(VERSION1_FLASH_API_TREE);
        return VERSION1_FLASH_API_TREE->ffr_get_uuid(config, uuid);
    }
}

/*!
 * APIs to access CMPA pages
 * Read data stored in 'Customer Factory CFG Page'.
 */
status_t FFR_GetCustomerData(flash_config_t *config, uint8_t *pData, uint32_t offset, uint32_t len)
{
    if (get_rom_api_version() == 0u)
    {
        assert(VERSION0_FLASH_API_TREE);
        return VERSION0_FLASH_API_TREE->ffr_get_customer_data(config, pData, offset, len);
    }
    else
    {
        assert(VERSION1_FLASH_API_TREE);
        return VERSION1_FLASH_API_TREE->ffr_get_customer_data(config, pData, offset, len);
    }
}

/*!
 * This routine writes the 3 pages allocated for Key store data,
 * Used during manufacturing. Should write pages when 'customer factory page' is not in sealed state.
 */
status_t FFR_KeystoreWrite(flash_config_t *config, ffr_key_store_t *pKeyStore)
{
    if (get_rom_api_version() == 0u)
    {
        assert(VERSION0_FLASH_API_TREE);
        return VERSION0_FLASH_API_TREE->ffr_keystore_write(config, pKeyStore);
    }
    else
    {
        assert(VERSION1_FLASH_API_TREE);
        return VERSION1_FLASH_API_TREE->ffr_keystore_write(config, pKeyStore);
    }
}

/*! See fsl_iap_ffr.h for documentation of this function. */
status_t FFR_KeystoreGetAC(flash_config_t *config, uint8_t *pActivationCode)
{
    if (get_rom_api_version() == 0u)
    {
        assert(VERSION0_FLASH_API_TREE);
        return VERSION0_FLASH_API_TREE->ffr_keystore_get_ac(config, pActivationCode);
    }
    else
    {
        assert(VERSION1_FLASH_API_TREE);
        return VERSION1_FLASH_API_TREE->ffr_keystore_get_ac(config, pActivationCode);
    }
}

/*! See fsl_iap_ffr.h for documentation of this function. */
status_t FFR_KeystoreGetKC(flash_config_t *config, uint8_t *pKeyCode, ffr_key_type_t keyIndex)
{
    if (get_rom_api_version() == 0u)
    {
        assert(VERSION0_FLASH_API_TREE);
        return VERSION0_FLASH_API_TREE->ffr_keystore_get_kc(config, pKeyCode, keyIndex);
    }
    else
    {
        assert(VERSION1_FLASH_API_TREE);
        return VERSION1_FLASH_API_TREE->ffr_keystore_get_kc(config, pKeyCode, keyIndex);
    }
}

/*!
 * APIs to access CFPA pages
 * This routine will erase CFPA and program the CFPA page with passed data.
 */
status_t FFR_InfieldPageWrite(flash_config_t *config, uint8_t *page_data, uint32_t valid_len)
{
    if (get_rom_api_version() == 0u)
    {
        assert(VERSION0_FLASH_API_TREE);
        return VERSION0_FLASH_API_TREE->ffr_infield_page_write(config, page_data, valid_len);
    }
    else
    {
        assert(VERSION1_FLASH_API_TREE);
        return VERSION1_FLASH_API_TREE->ffr_infield_page_write(config, page_data, valid_len);
    }
}

/*!
 * APIs to access CFPA pages
 * Generic read function, used by customer to read data stored in 'Customer In-field Page'.
 */
status_t FFR_GetCustomerInfieldData(flash_config_t *config, uint8_t *pData, uint32_t offset, uint32_t len)
{
    if (get_rom_api_version() == 0u)
    {
        assert(VERSION0_FLASH_API_TREE);
        return VERSION0_FLASH_API_TREE->ffr_get_customer_infield_data(config, pData, offset, len);
    }
    else
    {
        assert(VERSION1_FLASH_API_TREE);
        return VERSION1_FLASH_API_TREE->ffr_get_customer_infield_data(config, pData, offset, len);
    }
}

/********************************************************************************
 * Bootloader API
 *******************************************************************************/
/*!
 * @brief Initialize ROM API for a given operation.
 *
 * Inits the ROM API based on the options provided by the application in the second
 * argument. Every call to rom_init() should be paired with a call to rom_deinit().
 */
status_t kb_init(kb_session_ref_t **session, const kb_options_t *options)
{
    assert(BOOTLOADER_API_TREE_POINTER);
    return BOOTLOADER_API_TREE_POINTER->kbApi->kb_init_function(session, options);
}

/*!
 * @brief Cleans up the ROM API context.
 *
 * After this call, the @a context parameter can be reused for another operation
 * by calling rom_init() again.
 */
status_t kb_deinit(kb_session_ref_t *session)
{
    assert(BOOTLOADER_API_TREE_POINTER);
    return BOOTLOADER_API_TREE_POINTER->kbApi->kb_deinit_function(session);
}

/*!
 * Perform the operation configured during init.
 *
 * This application must call this API repeatedly, passing in sequential chunks of
 * data from the boot image (SB file) that is to be processed. The ROM will perform
 * the selected operation on this data and return. The application may call this
 * function with as much or as little data as it wishes, which can be used to select
 * the granularity of time given to the application in between executing the operation.
 *
 * @param context Current ROM context pointer.
 * @param data Buffer of boot image data provided to the ROM by the application.
 * @param dataLength Length in bytes of the data in the buffer provided to the ROM.
 *
 * @retval #kStatus_Success The operation has completed successfully.
 * @retval #kStatus_Fail An error occurred while executing the operation.
 * @retval #kStatus_RomApiNeedMoreData No error occurred, but the ROM needs more data to
 *     continue processing the boot image.
 */
status_t kb_execute(kb_session_ref_t *session, const uint8_t *data, uint32_t dataLength)
{
    assert(BOOTLOADER_API_TREE_POINTER);
    return BOOTLOADER_API_TREE_POINTER->kbApi->kb_execute_function(session, data, dataLength);
}

/********************************************************************************
 * Image authentication API
 *******************************************************************************/

/*!
 * @brief Authenticate entry function with ARENA allocator init
 *
 * This is called by ROM boot or by ROM API g_skbootAuthenticateInterface
 */
skboot_status_t skboot_authenticate(const uint8_t *imageStartAddr, secure_bool_t *isSignVerified)
{
    assert(BOOTLOADER_API_TREE_POINTER);
    return BOOTLOADER_API_TREE_POINTER->skbootAuthenticate->skboot_authenticate_function(imageStartAddr,
                                                                                isSignVerified);
}

/*!
 * @brief Interface for image authentication API
 */
void HASH_IRQHandler(void)
{
    assert(BOOTLOADER_API_TREE_POINTER);
    BOOTLOADER_API_TREE_POINTER->skbootAuthenticate->skboot_hashcrypt_irq_handler();
}
/********************************************************************************
 * EOF
 *******************************************************************************/


text:
{% extends fobi_theme.form_entry_submitted_ajax_template %}

{% load i18n %}

{% block form_page_header_wrapper %}
  {% if fobi_hide_success_page_title %}{% else %}
    {{ block.super }}
  {% endif %}
{% endblock %}


text:
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
  <component name="ChangeListManager">
    <list default="true" id="00618b9a-426b-40e1-911d-5a469fb32c4c" name="Default" comment="">
      <change type="MODIFICATION" beforePath="$PROJECT_DIR$/README.md" afterPath="$PROJECT_DIR$/README.md" />
      <change type="MODIFICATION" beforePath="$PROJECT_DIR$/src/ZeDoGenerator/Service/Generators/ControllerClassGenerator.php" afterPath="$PROJECT_DIR$/src/ZeDoGenerator/Service/Generators/ControllerClassGenerator.php" />
      <change type="MODIFICATION" beforePath="$PROJECT_DIR$/Module.php" afterPath="$PROJECT_DIR$/Module.php" />
      <change type="MODIFICATION" beforePath="$PROJECT_DIR$/src/ZeDoGenerator/Service/Generators/ViewGenerator.php" afterPath="$PROJECT_DIR$/src/ZeDoGenerator/Service/Generators/ViewGenerator.php" />
      <change type="MODIFICATION" beforePath="$PROJECT_DIR$/src/ZeDoGenerator/Controller/CreationController/ZedomodelCreationController.php" afterPath="$PROJECT_DIR$/src/ZeDoGenerator/Controller/CreationController/ZedomodelCreationController.php" />
      <change type="MODIFICATION" beforePath="$PROJECT_DIR$/composer.json" afterPath="$PROJECT_DIR$/composer.json" />
    </list>
    <ignored path="ZeDoGenerator.iws" />
    <ignored path=".idea/workspace.xml" />
    <file path="/Dummy.txt" changelist="00618b9a-426b-40e1-911d-5a469fb32c4c" time="1379284645299" ignored="false" />
    <option name="TRACKING_ENABLED" value="true" />
    <option name="SHOW_DIALOG" value="false" />
    <option name="HIGHLIGHT_CONFLICTS" value="true" />
    <option name="HIGHLIGHT_NON_ACTIVE_CHANGELIST" value="false" />
    <option name="LAST_RESOLUTION" value="IGNORE" />
  </component>
  <component name="ChangesViewManager" flattened_view="true" show_ignored="false" />
  <component name="CreatePatchCommitExecutor">
    <option name="PATCH_PATH" value="" />
  </component>
  <component name="DaemonCodeAnalyzer">
    <disable_hints />
  </component>
  <component name="ExecutionTargetManager" SELECTED_TARGET="default_target" />
  <component name="FavoritesManager">
    <favorites_list name="ZeDoGenerator" />
  </component>
  <component name="FileEditorManager">
    <leaf>
      <file leaf-file-name="ZedomodelCreationController.php" pinned="false" current="false" current-in-tab="false">
        <entry file="file://$PROJECT_DIR$/src/ZeDoGenerator/Controller/CreationController/ZedomodelCreationController.php">
          <provider selected="true" editor-type-id="text-editor">
            <state line="39" column="9" selection-start="965" selection-end="965" vertical-scroll-proportion="-25.5">
              <folding />
            </state>
          </provider>
        </entry>
      </file>
      <file leaf-file-name="modelgetinputfiltermethod.phtml" pinned="false" current="false" current-in-tab="false">
        <entry file="file://$PROJECT_DIR$/view/zedo/methods/modelgetinputfiltermethod.phtml">
          <provider selected="true" editor-type-id="text-editor">
            <state line="73" column="8" selection-start="2133" selection-end="2133" vertical-scroll-proportion="-7.5">
              <folding />
            </state>
          </provider>
        </entry>
      </file>
      <file leaf-file-name="Module.php" pinned="false" current="false" current-in-tab="false">
        <entry file="file://$PROJECT_DIR$/Module.php">
          <provider selected="true" editor-type-id="text-editor">
            <state line="30" column="0" selection-start="626" selection-end="626" vertical-scroll-proportion="-19.461538">
              <folding>
                <element signature="e#32#93#0" expanded="true" />
              </folding>
            </state>
          </provider>
        </entry>
      </file>
      <file leaf-file-name="ControllerClassGenerator.php" pinned="false" current="false" current-in-tab="false">
        <entry file="file://$PROJECT_DIR$/src/ZeDoGenerator/Service/Generators/ControllerClassGenerator.php">
          <provider selected="true" editor-type-id="text-editor">
            <state line="10" column="44" selection-start="217" selection-end="217" vertical-scroll-proportion="-6.5384617">
              <folding>
                <element signature="e#53#102#0" expanded="true" />
              </folding>
            </state>
          </provider>
        </entry>
      </file>
      <file leaf-file-name="FormClassGenerator.php" pinned="false" current="false" current-in-tab="false">
        <entry file="file://$PROJECT_DIR$/src/ZeDoGenerator/Service/Generators/FormClassGenerator.php">
          <provider selected="true" editor-type-id="text-editor">
            <state line="13" column="0" selection-start="273" selection-end="273" vertical-scroll-proportion="-7.8461537">
              <folding />
            </state>
          </provider>
        </entry>
      </file>
      <file leaf-file-name="ModuleClassGenerator.php" pinned="false" current="false" current-in-tab="false">
        <entry file="file://$PROJECT_DIR$/src/ZeDoGenerator/Service/Generators/ModuleClassGenerator.php">
          <provider selected="true" editor-type-id="text-editor">
            <state line="16" column="7" selection-start="313" selection-end="313" vertical-scroll-proportion="-9.807693">
              <folding />
            </state>
          </provider>
        </entry>
      </file>
      <file leaf-file-name="ViewGenerator.php" pinned="false" current="false" current-in-tab="false">
        <entry file="file://$PROJECT_DIR$/src/ZeDoGenerator/Service/Generators/ViewGenerator.php">
          <provider selected="true" editor-type-id="text-editor">
            <state line="15" column="11" selection-start="281" selection-end="281" vertical-scroll-proportion="-9.153846">
              <folding />
            </state>
          </provider>
        </entry>
      </file>
      <file leaf-file-name="ZeDoMoGenerator.php" pinned="false" current="false" current-in-tab="false">
        <entry file="file://$PROJECT_DIR$/src/ZeDoGenerator/Service/Generators/ZeDoMoGenerator.php">
          <provider selected="true" editor-type-id="text-editor">
            <state line="18" column="29" selection-start="401" selection-end="401" vertical-scroll-proportion="-10.461538">
              <folding />
            </state>
          </provider>
        </entry>
      </file>
      <file leaf-file-name="AbstractCreationController.php" pinned="false" current="true" current-in-tab="true">
        <entry file="file://$PROJECT_DIR$/src/ZeDoGenerator/Controller/AbstractCreationController.php">
          <provider selected="true" editor-type-id="text-editor">
            <state line="31" column="7" selection-start="689" selection-end="696" vertical-scroll-proportion="-5.359929">
              <folding />
            </state>
          </provider>
        </entry>
      </file>
    </leaf>
  </component>
  <component name="FindManager">
    <FindUsagesManager>
      <setting name="OPEN_NEW_TAB" value="false" />
    </FindUsagesManager>
  </component>
  <component name="Git.Settings">
    <option name="RECENT_GIT_ROOT_PATH" value="$PROJECT_DIR$" />
  </component>
  <component name="GitLogSettings">
    <option name="myDateState">
      <MyDateState />
    </option>
  </component>
  <component name="IdeDocumentHistory">
    <option name="changedFiles">
      <list>
        <option value="$PROJECT_DIR$/src/ZeDoGenerator/Controller/CreationController/ZedomodelCreationController.php" />
        <option value="$PROJECT_DIR$/Module.php" />
        <option value="$PROJECT_DIR$/src/ZeDoGenerator/Service/Generators/ControllerClassGenerator.php" />
        <option value="$PROJECT_DIR$/src/ZeDoGenerator/Service/Generators/ViewGenerator.php" />
      </list>
    </option>
  </component>
  <component name="PhpWorkspaceProjectConfiguration" backward_compatibility_performed="true" />
  <component name="ProjectFrameBounds">
    <option name="x" value="-8" />
    <option name="y" value="-8" />
    <option name="width" value="1936" />
    <option name="height" value="1176" />
  </component>
  <component name="ProjectLevelVcsManager" settingsEditedManually="false">
    <OptionsSetting value="true" id="Add" />
    <OptionsSetting value="true" id="Remove" />
    <OptionsSetting value="true" id="Checkout" />
    <OptionsSetting value="true" id="Update" />
    <OptionsSetting value="true" id="Status" />
    <OptionsSetting value="true" id="Edit" />
    <ConfirmationsSetting value="0" id="Add" />
    <ConfirmationsSetting value="0" id="Remove" />
  </component>
  <component name="ProjectReloadState">
    <option name="STATE" value="0" />
  </component>
  <component name="ProjectView">
    <navigator currentView="ProjectPane" proportions="" version="1" splitterProportion="0.5">
      <flattenPackages />
      <showMembers />
      <showModules />
      <showLibraryContents ProjectPane="true" />
      <hideEmptyPackages />
      <abbreviatePackageNames />
      <autoscrollToSource />
      <autoscrollFromSource />
      <sortByType />
    </navigator>
    <panes>
      <pane id="Scope" />
      <pane id="ProjectPane">
        <subPane>
          <PATH>
            <PATH_ELEMENT>
              <option name="myItemId" value="ZeDoGenerator" />
              <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.ProjectViewProjectNode" />
            </PATH_ELEMENT>
          </PATH>
          <PATH>
            <PATH_ELEMENT>
              <option name="myItemId" value="ZeDoGenerator" />
              <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.ProjectViewProjectNode" />
            </PATH_ELEMENT>
            <PATH_ELEMENT>
              <option name="myItemId" value="ZeDoGenerator" />
              <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
            </PATH_ELEMENT>
          </PATH>
          <PATH>
            <PATH_ELEMENT>
              <option name="myItemId" value="ZeDoGenerator" />
              <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.ProjectViewProjectNode" />
            </PATH_ELEMENT>
            <PATH_ELEMENT>
              <option name="myItemId" value="ZeDoGenerator" />
              <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
            </PATH_ELEMENT>
            <PATH_ELEMENT>
              <option name="myItemId" value="src" />
              <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
            </PATH_ELEMENT>
            <PATH_ELEMENT>
              <option name="myItemId" value="ZeDoGenerator" />
              <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
            </PATH_ELEMENT>
            <PATH_ELEMENT>
              <option name="myItemId" value="Service" />
              <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
            </PATH_ELEMENT>
          </PATH>
          <PATH>
            <PATH_ELEMENT>
              <option name="myItemId" value="ZeDoGenerator" />
              <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.ProjectViewProjectNode" />
            </PATH_ELEMENT>
            <PATH_ELEMENT>
              <option name="myItemId" value="ZeDoGenerator" />
              <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
            </PATH_ELEMENT>
            <PATH_ELEMENT>
              <option name="myItemId" value="src" />
              <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
            </PATH_ELEMENT>
            <PATH_ELEMENT>
              <option name="myItemId" value="ZeDoGenerator" />
              <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
            </PATH_ELEMENT>
            <PATH_ELEMENT>
              <option name="myItemId" value="Service" />
              <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
            </PATH_ELEMENT>
            <PATH_ELEMENT>
              <option name="myItemId" value="Generators" />
              <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
            </PATH_ELEMENT>
          </PATH>
          <PATH>
            <PATH_ELEMENT>
              <option name="myItemId" value="ZeDoGenerator" />
              <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.ProjectViewProjectNode" />
            </PATH_ELEMENT>
            <PATH_ELEMENT>
              <option name="myItemId" value="ZeDoGenerator" />
              <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
            </PATH_ELEMENT>
            <PATH_ELEMENT>
              <option name="myItemId" value="src" />
              <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
            </PATH_ELEMENT>
            <PATH_ELEMENT>
              <option name="myItemId" value="ZeDoGenerator" />
              <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
            </PATH_ELEMENT>
            <PATH_ELEMENT>
              <option name="myItemId" value="Controller" />
              <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
            </PATH_ELEMENT>
          </PATH>
          <PATH>
            <PATH_ELEMENT>
              <option name="myItemId" value="ZeDoGenerator" />
              <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.ProjectViewProjectNode" />
            </PATH_ELEMENT>
            <PATH_ELEMENT>
              <option name="myItemId" value="ZeDoGenerator" />
              <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
            </PATH_ELEMENT>
            <PATH_ELEMENT>
              <option name="myItemId" value="src" />
              <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
            </PATH_ELEMENT>
            <PATH_ELEMENT>
              <option name="myItemId" value="ZeDoGenerator" />
              <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
            </PATH_ELEMENT>
            <PATH_ELEMENT>
              <option name="myItemId" value="Controller" />
              <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
            </PATH_ELEMENT>
            <PATH_ELEMENT>
              <option name="myItemId" value="CreationController" />
              <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
            </PATH_ELEMENT>
          </PATH>
        </subPane>
      </pane>
    </panes>
  </component>
  <component name="PropertiesComponent">
    <property name="options.splitter.main.proportions" value="0.3" />
    <property name="WebServerToolWindowFactoryState" value="false" />
    <property name="options.lastSelected" value="Errors" />
    <property name="options.splitter.details.proportions" value="0.2" />
    <property name="options.searchVisible" value="true" />
  </component>
  <component name="RunManager">
    <configuration default="true" type="PhpLocalRunConfigurationType" factoryName="PHP Console">
      <method />
    </configuration>
    <list size="0" />
  </component>
  <component name="ShelveChangesManager" show_recycled="false" />
  <component name="TaskManager">
    <task active="true" id="Default" summary="Default task">
      <changelist id="00618b9a-426b-40e1-911d-5a469fb32c4c" name="Default" comment="" />
      <created>1379284644737</created>
      <updated>1379284644737</updated>
    </task>
    <servers />
  </component>
  <component name="ToolWindowManager">
    <frame x="-8" y="-8" width="1936" height="1176" extended-state="6" />
    <editor active="true" />
    <layout>
      <window_info id="Changes" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.33" sideWeight="0.5" order="-1" side_tool="false" content_ui="tabs" />
      <window_info id="TODO" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.33" sideWeight="0.5" order="6" side_tool="false" content_ui="tabs" />
      <window_info id="Find" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.33" sideWeight="0.5" order="1" side_tool="false" content_ui="tabs" />
      <window_info id="Database" active="false" anchor="right" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.33" sideWeight="0.5" order="-1" side_tool="false" content_ui="tabs" />
      <window_info id="Structure" active="false" anchor="left" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.25" sideWeight="0.5" order="1" side_tool="false" content_ui="tabs" />
      <window_info id="Project" active="false" anchor="left" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="true" weight="0.2497332" sideWeight="0.59960747" order="0" side_tool="false" content_ui="combo" />
      <window_info id="Debug" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.4" sideWeight="0.5" order="3" side_tool="false" content_ui="tabs" />
      <window_info id="Inspection" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="true" weight="0.40039253" sideWeight="0.5" order="5" side_tool="false" content_ui="tabs" />
      <window_info id="Favorites" active="false" anchor="left" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.33" sideWeight="0.5" order="-1" side_tool="true" content_ui="tabs" />
      <window_info id="Event Log" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.33" sideWeight="0.5" order="-1" side_tool="true" content_ui="tabs" />
      <window_info id="Run" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.33" sideWeight="0.5" order="2" side_tool="false" content_ui="tabs" />
      <window_info id="Version Control" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.33" sideWeight="0.5" order="-1" side_tool="false" content_ui="tabs" />
      <window_info id="Cvs" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.25" sideWeight="0.5" order="4" side_tool="false" content_ui="tabs" />
      <window_info id="Message" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.33" sideWeight="0.5" order="0" side_tool="false" content_ui="tabs" />
      <window_info id="Ant Build" active="false" anchor="right" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.25" sideWeight="0.5" order="1" side_tool="false" content_ui="tabs" />
      <window_info id="Commander" active="false" anchor="right" auto_hide="false" internal_type="SLIDING" type="SLIDING" visible="false" weight="0.4" sideWeight="0.5" order="0" side_tool="false" content_ui="tabs" />
      <window_info id="Hierarchy" active="false" anchor="right" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.25" sideWeight="0.5" order="2" side_tool="false" content_ui="combo" />
    </layout>
  </component>
  <component name="VcsContentAnnotationSettings">
    <option name="myLimit" value="2678400000" />
  </component>
  <component name="VcsManagerConfiguration">
    <option name="OFFER_MOVE_TO_ANOTHER_CHANGELIST_ON_PARTIAL_COMMIT" value="true" />
    <option name="CHECK_CODE_SMELLS_BEFORE_PROJECT_COMMIT" value="true" />
    <option name="CHECK_NEW_TODO" value="true" />
    <option name="myTodoPanelSettings">
      <value>
        <are-packages-shown value="false" />
        <are-modules-shown value="false" />
        <flatten-packages value="false" />
        <is-autoscroll-to-source value="false" />
      </value>
    </option>
    <option name="PERFORM_UPDATE_IN_BACKGROUND" value="true" />
    <option name="PERFORM_COMMIT_IN_BACKGROUND" value="true" />
    <option name="PERFORM_EDIT_IN_BACKGROUND" value="true" />
    <option name="PERFORM_CHECKOUT_IN_BACKGROUND" value="true" />
    <option name="PERFORM_ADD_REMOVE_IN_BACKGROUND" value="true" />
    <option name="PERFORM_ROLLBACK_IN_BACKGROUND" value="false" />
    <option name="CHECK_LOCALLY_CHANGED_CONFLICTS_IN_BACKGROUND" value="false" />
    <option name="CHANGED_ON_SERVER_INTERVAL" value="60" />
    <option name="SHOW_ONLY_CHANGED_IN_SELECTION_DIFF" value="true" />
    <option name="CHECK_COMMIT_MESSAGE_SPELLING" value="true" />
    <option name="DEFAULT_PATCH_EXTENSION" value="patch" />
    <option name="SHORT_DIFF_HORIZONTALLY" value="true" />
    <option name="SHORT_DIFF_EXTRA_LINES" value="2" />
    <option name="SOFT_WRAPS_IN_SHORT_DIFF" value="true" />
    <option name="INCLUDE_TEXT_INTO_PATCH" value="false" />
    <option name="INCLUDE_TEXT_INTO_SHELF" value="false" />
    <option name="SHOW_FILE_HISTORY_DETAILS" value="true" />
    <option name="SHOW_VCS_ERROR_NOTIFICATIONS" value="true" />
    <option name="SHOW_DIRTY_RECURSIVELY" value="false" />
    <option name="LIMIT_HISTORY" value="true" />
    <option name="MAXIMUM_HISTORY_ROWS" value="1000" />
    <option name="UPDATE_FILTER_SCOPE_NAME" />
    <option name="USE_COMMIT_MESSAGE_MARGIN" value="false" />
    <option name="COMMIT_MESSAGE_MARGIN_SIZE" value="72" />
    <option name="WRAP_WHEN_TYPING_REACHES_RIGHT_MARGIN" value="false" />
    <option name="FORCE_NON_EMPTY_COMMENT" value="false" />
    <option name="CLEAR_INITIAL_COMMIT_MESSAGE" value="false" />
    <option name="LAST_COMMIT_MESSAGE" />
    <option name="MAKE_NEW_CHANGELIST_ACTIVE" value="false" />
    <option name="OPTIMIZE_IMPORTS_BEFORE_PROJECT_COMMIT" value="false" />
    <option name="CHECK_FILES_UP_TO_DATE_BEFORE_COMMIT" value="false" />
    <option name="REFORMAT_BEFORE_PROJECT_COMMIT" value="false" />
    <option name="REFORMAT_BEFORE_FILE_COMMIT" value="false" />
    <option name="FILE_HISTORY_DIALOG_COMMENTS_SPLITTER_PROPORTION" value="0.8" />
    <option name="FILE_HISTORY_DIALOG_SPLITTER_PROPORTION" value="0.5" />
    <option name="ACTIVE_VCS_NAME" />
    <option name="UPDATE_GROUP_BY_PACKAGES" value="false" />
    <option name="UPDATE_GROUP_BY_CHANGELIST" value="false" />
    <option name="UPDATE_FILTER_BY_SCOPE" value="false" />
    <option name="SHOW_FILE_HISTORY_AS_TREE" value="false" />
    <option name="FILE_HISTORY_SPLITTER_PROPORTION" value="0.6" />
  </component>
  <component name="XDebuggerManager">
    <breakpoint-manager />
  </component>
  <component name="editorHistoryManager">
    <entry file="file://$PROJECT_DIR$/src/ZeDoGenerator/Controller/CreationController/ZedomodelCreationController.php">
      <provider selected="true" editor-type-id="text-editor">
        <state line="39" column="9" selection-start="965" selection-end="965" vertical-scroll-proportion="-25.5">
          <folding />
        </state>
      </provider>
    </entry>
    <entry file="file://$PROJECT_DIR$/view/zedo/methods/modelgetinputfiltermethod.phtml">
      <provider selected="true" editor-type-id="text-editor">
        <state line="73" column="8" selection-start="2133" selection-end="2133" vertical-scroll-proportion="-7.5">
          <folding />
        </state>
      </provider>
    </entry>
    <entry file="file://$PROJECT_DIR$/Module.php">
      <provider selected="true" editor-type-id="text-editor">
        <state line="30" column="0" selection-start="626" selection-end="626" vertical-scroll-proportion="-19.461538">
          <folding>
            <element signature="e#32#93#0" expanded="true" />
          </folding>
        </state>
      </provider>
    </entry>
    <entry file="file://$PROJECT_DIR$/src/ZeDoGenerator/Service/Generators/ControllerClassGenerator.php">
      <provider selected="true" editor-type-id="text-editor">
        <state line="10" column="44" selection-start="217" selection-end="217" vertical-scroll-proportion="-6.5384617">
          <folding>
            <element signature="e#53#102#0" expanded="true" />
          </folding>
        </state>
      </provider>
    </entry>
    <entry file="file://$PROJECT_DIR$/src/ZeDoGenerator/Service/Generators/FormClassGenerator.php">
      <provider selected="true" editor-type-id="text-editor">
        <state line="13" column="0" selection-start="273" selection-end="273" vertical-scroll-proportion="-7.8461537">
          <folding />
        </state>
      </provider>
    </entry>
    <entry file="file://$PROJECT_DIR$/src/ZeDoGenerator/Service/Generators/ModuleClassGenerator.php">
      <provider selected="true" editor-type-id="text-editor">
        <state line="16" column="7" selection-start="313" selection-end="313" vertical-scroll-proportion="-9.807693">
          <folding />
        </state>
      </provider>
    </entry>
    <entry file="file://$PROJECT_DIR$/src/ZeDoGenerator/Service/Generators/ViewGenerator.php">
      <provider selected="true" editor-type-id="text-editor">
        <state line="15" column="11" selection-start="281" selection-end="281" vertical-scroll-proportion="-9.153846">
          <folding />
        </state>
      </provider>
    </entry>
    <entry file="file://$PROJECT_DIR$/src/ZeDoGenerator/Service/Generators/ZeDoMoGenerator.php">
      <provider selected="true" editor-type-id="text-editor">
        <state line="18" column="29" selection-start="401" selection-end="401" vertical-scroll-proportion="-10.461538">
          <folding />
        </state>
      </provider>
    </entry>
    <entry file="file://$PROJECT_DIR$/src/ZeDoGenerator/Controller/AbstractCreationController.php">
      <provider selected="true" editor-type-id="text-editor">
        <state line="31" column="7" selection-start="689" selection-end="696" vertical-scroll-proportion="-5.359929">
          <folding />
        </state>
      </provider>
    </entry>
  </component>
</project>


text:
using System;
using System.Globalization;
using System.Text;
using System.IO;

namespace HttpServer.FormDecoders
{
    class HttpMultipart
    {
		/// <summary>Represents a field in a multipart form</summary>
        public class Element
        {
            public string ContentType;
            public string Name;
            public string Filename;
            public long Start;
            public long Length;

            public override string ToString()
            {
                return "ContentType " + ContentType + ", Name " + Name + ", Filename " + Filename + ", Start " +
                       Start + ", Length " + Length;
            }
        }

        readonly Stream _data;
        readonly string _boundary;
        readonly byte[] _boundaryBytes;
        readonly byte[] _buffer;
        bool _eof;
        readonly Encoding _encoding;
        readonly StringBuilder _sb;

        const byte Lf = (byte)'\n', Cr = (byte)'\r';

        // See RFC 2046
        // In the case of multipart entities, in which one or more different
        // sets of data are combined in a single body, a "multipart" media type
        // field must appear in the entity's header.  The body must then contain
        // one or more body parts, each preceded by a boundary delimiter line,
        // and the last one followed by a closing boundary delimiter line.
        // After its boundary delimiter line, each body part then consists of a
        // header area, a blank line, and a body area.  Thus a body part is
        // similar to an RFC 822 message in syntax, but different in meaning.

        public HttpMultipart(Stream data, string boundry, Encoding encoding)
        {
            _data = data;
            _boundary = boundry;
            _boundaryBytes = encoding.GetBytes(boundry);
            _buffer = new byte[_boundaryBytes.Length + 2]; // CRLF or '--'
            _encoding = encoding;
            _sb = new StringBuilder();
        }

        /// <summary>
        ///
        /// </summary>
        /// <returns></returns>
        /// <exception cref="ArgumentOutOfRangeException"></exception>
        /// <exception cref="ObjectDisposedException"></exception>
        string ReadLine()
        {
            // CRLF or Lf are ok as line endings.
            bool gotCr = false;
            _sb.Length = 0;
            while (true)
            {
                int b = _data.ReadByte();
                if (b == -1)
                    return null;

                if (b == Lf)
                    break;

                gotCr = (b == Cr);
                _sb.Append((char)b);
            }

            if (gotCr)
                _sb.Length--;

            return _sb.ToString();

        }

        static string GetContentDispositionAttribute(string l, string name)
        {
            int idx = l.IndexOf(name + "=\"");
            if (idx < 0)
                return null;
            int begin = idx + name.Length + "=\"".Length;
            int end = l.IndexOf('"', begin);
            if (end < 0)
                return null;
            if (begin == end)
                return "";
            return l.Substring(begin, end - begin);
        }

        string GetContentDispositionAttributeWithEncoding(string l, string name)
        {
            int idx = l.IndexOf(name + "=\"");
            if (idx < 0)
                return null;
            int begin = idx + name.Length + "=\"".Length;
            int end = l.IndexOf('"', begin);
            if (end < 0)
                return null;
            if (begin == end)
                return "";

            string temp = l.Substring(begin, end - begin);
            byte[] source = new byte[temp.Length];
            for (int i = temp.Length - 1; i >= 0; i--)
                source[i] = (byte)temp[i];

            return _encoding.GetString(source);
        }

        bool ReadBoundary()
        {
            try
            {
                string line = ReadLine();
                while (line == "")
                    line = ReadLine();
                if (line[0] != '-' || line[1] != '-')
                    return false;

                if (!line.EndsWith(_boundary, false, CultureInfo.InvariantCulture))
                    return true;
            }
            catch (ArgumentException)
            {}
            catch (ObjectDisposedException)
            {}

            return false;
        }

        string ReadHeaders()
        {
            string s = ReadLine();
            if (s == "")
                return null;

            return s;
        }

        public static bool CompareBytes(byte[] orig, byte[] other)
        {
            for (int i = orig.Length - 1; i >= 0; i--)
                if (orig[i] != other[i])
                    return false;

            return true;
        }

        long MoveToNextBoundary()
        {
            long retval = 0;
            bool gotCr = false;

            int state = 0;
            int c = _data.ReadByte();
            while (true)
            {
                if (c == -1)
                    return -1;

                if (state == 0 && c == Lf)
                {
                    retval = _data.Position - 1;
                    if (gotCr)
                        retval--;
                    state = 1;
                    c = _data.ReadByte();
                }
                else if (state == 0)
                {
                    gotCr = (c == Cr);
                    c = _data.ReadByte();
                }
                else if (state == 1 && c == '-')
                {
                    c = _data.ReadByte();
                    if (c == -1)
                        return -1;

                    if (c != '-')
                    {
                        state = 0;
                        gotCr = false;
                        continue; // no ReadByte() here
                    }

                    int nread = _data.Read(_buffer, 0, _buffer.Length);
                    int bl = _buffer.Length;
                    if (nread != bl)
                        return -1;

                    if (!CompareBytes(_boundaryBytes, _buffer))
                    {
                        state = 0;
                        _data.Position = retval + 2;
                        if (gotCr)
                        {
                            _data.Position++;
                            gotCr = false;
                        }
                        c = _data.ReadByte();
                        continue;
                    }

                    if (_buffer[bl - 2] == '-' && _buffer[bl - 1] == '-')
                    {
                        _eof = true;
                    }
                    else if (_buffer[bl - 2] != Cr || _buffer[bl - 1] != Lf)
                    {
                        state = 0;
                        _data.Position = retval + 2;
                        if (gotCr)
                        {
                            _data.Position++;
                            gotCr = false;
                        }
                        c = _data.ReadByte();
                        continue;
                    }
                    _data.Position = retval + 2;
                    if (gotCr)
                        _data.Position++;
                    break;
                }
                else
                {
                    // state == 1
                    state = 0; // no ReadByte() here
                }
            }

            return retval;
        }

        public Element ReadNextElement()
        {
            if (_eof || ReadBoundary())
                return null;

            Element elem = new Element();
            string header;
            while ((header = ReadHeaders()) != null)
            {
                if (header.StartsWith("Content-Disposition:", true, CultureInfo.InvariantCulture))
                {
                    elem.Name = GetContentDispositionAttribute(header, "name");
                    elem.Filename = StripPath(GetContentDispositionAttributeWithEncoding(header, "filename"));
                }
                else if (header.StartsWith("Content-Type:", true, CultureInfo.InvariantCulture))
                {
                    elem.ContentType = header.Substring("Content-Type:".Length).Trim();
                }
            }

            long start = _data.Position;
            elem.Start = start;
            long pos = MoveToNextBoundary();
            if (pos == -1)
                return null;

            elem.Length = pos - start;
            return elem;
        }

        static string StripPath(string path)
        {
            if (path == null || path.Length == 0)
                return path;

            if (path.IndexOf(":\\") != 1)
                return path;
            return path.Substring(path.LastIndexOf("\\") + 1);
        }
    }
}


text:
package com.loginbox.dropwizard.mybatis.healthchecks.matchers;

import com.codahale.metrics.health.HealthCheck;
import org.hamcrest.Description;
import org.hamcrest.Factory;
import org.hamcrest.TypeSafeDiagnosingMatcher;

public class HealthyResultMatcher extends TypeSafeDiagnosingMatcher<HealthCheck.Result> {
    @Factory
    public static HealthyResultMatcher healthyResult() {
        return new HealthyResultMatcher();
    }

    @Override
    protected boolean matchesSafely(HealthCheck.Result item, Description mismatchDescription) {
        if (item == null) {
            mismatchDescription
                    .appendText("null");
            return false;
        }

        if (!item.isHealthy()) {
            mismatchDescription
                    .appendText("unhealthy result: ")
                    .appendValue(item);
            return false;
        }

        return true;
    }

    @Override
    public void describeTo(Description description) {
        description.appendText("a healthy result");
    }
}


text:
from scapy.all import IP, UDP, fuzz
import os, sys, struct, socket, random

def rand_ipaddr():
    return socket.inet_ntoa(struct.pack('>I', random.randint(1, 0xffffffff)))

def get_payload(n):
    if n == 0:
        return ''
    n = n if n > 0 else random.randint(0, 576)
    return os.urandom(n)

def gen_udp_pkt(src=None, dst=None, payload_len=-1):
    """Generate random IP/UDP[Payload] packet

    :src: source IP address
    :dst: destination IP address
    :payload_len: size of payload
    :returns: packet as raw bytes

    """
    getipaddr = lambda addr: rand_ipaddr() if addr is None else addr
    sip = getipaddr(src)
    dip = getipaddr(dst)
    payload = get_payload(payload_len)
    pkt = fuzz(IP(src=sip, dst=dip)/UDP())/payload
    # pkt.show2()
    # os.write(2, str(pkt))
    return str(pkt)

def get_arg(n):
    arg = sys.argv[n] if n < len(sys.argv) else None
    n += 1
    return n, arg

def get_ip_arg(n):
    n, arg = get_arg(n)
    arg = None if arg == '' else arg
    return n, arg

def get_len_arg(n):
    n, arg = get_arg(n)
    arg = -1 if arg == '' or arg is None else int(arg)
    return n, arg

if __name__ == '__main__':
    walk = 1
    walk, sip = get_ip_arg(walk)
    walk, dip = get_ip_arg(walk)
    _, payload_len = get_len_arg(walk)

    pkt = gen_udp_pkt(src=sip, dst=dip, payload_len=payload_len)
    os.write(1, pkt)


text:
require 'war_pack/dumper'
require 'jetty_run/gav'
module JettyRun
  class Dump  < WarPack::Dumper

    include GAV

    # overwrite method from Dumper
    def pom_file
      File.join( File.dirname( __FILE__ ), 'jetty_pom.rb' )
    end

    def call_prepend( file )
      file.puts <<EOF
properties( 'jetty.version' => '#{jetty_version}',
            'jetty.group_id' => '#{group_id}' )
EOF
    end
  end
end


text:
$LOAD_PATH.unshift File.expand_path('../../lib', __FILE__)
require 'sshelper'


text:
require "spec_helper"

describe OpenXml::Docx::Elements::WordProcessingDrawingWrapNone do
  include ElementTestMacros

  it_should_use tag: :wrapNone, name: "word_processing_drawing_wrap_none"

  with_no_attributes_set do
    it_should_output "<wp:wrapNone/>", assign: false
  end

end