text
stringlengths 2
1.04M
| meta
dict |
|---|---|
ACCEPTED
#### According to
Index Fungorum
#### Published in
Mitt. bot. Inst. tech. Hochsch. Wien 6: 24 (1929)
#### Original name
Cryptosporium amygdalinum Sacc.
### Remarks
null
|
{
"content_hash": "4a688f1048a6b424618f98c69a438f9a",
"timestamp": "",
"source": "github",
"line_count": 13,
"max_line_length": 49,
"avg_line_length": 13.923076923076923,
"alnum_prop": 0.7016574585635359,
"repo_name": "mdoering/backbone",
"id": "b911d0dcf97bc4b658fdf891f3656724e7f9aaee",
"size": "242",
"binary": false,
"copies": "1",
"ref": "refs/heads/master",
"path": "life/Fungi/Ascomycota/Dothideomycetes/Botryosphaeriales/Botryosphaeriaceae/Fusicoccum/Fusicoccum amygdalinum/README.md",
"mode": "33188",
"license": "apache-2.0",
"language": [],
"symlink_target": ""
}
|
http://www.beecrowd.com.br/judge/problems/view/1073
# Even Square
Read an integer N. Print the square of each one of the even values from 1 to
$N$ including N if is the case.
## Input
The input contain an integer $N (5 \lt N \lt 2000)$.
## Output
Print the square of each one of the even values from 1 to N, as the given
example.
|
{
"content_hash": "521b58167655b4718b7bc7f82f336636",
"timestamp": "",
"source": "github",
"line_count": 15,
"max_line_length": 76,
"avg_line_length": 22.4,
"alnum_prop": 0.7172619047619048,
"repo_name": "deniscostadsc/playground",
"id": "3e423994d20bb67d3edd8a4cd9910ae40487e7f3",
"size": "336",
"binary": false,
"copies": "1",
"ref": "refs/heads/main",
"path": "solutions/beecrowd/1073/problem.md",
"mode": "33188",
"license": "mit",
"language": [
{
"name": "C",
"bytes": "19932"
},
{
"name": "C#",
"bytes": "4974"
},
{
"name": "C++",
"bytes": "270707"
},
{
"name": "Clojure",
"bytes": "9520"
},
{
"name": "Dart",
"bytes": "3707"
},
{
"name": "Dockerfile",
"bytes": "11466"
},
{
"name": "Go",
"bytes": "2132"
},
{
"name": "Haskell",
"bytes": "1521"
},
{
"name": "Java",
"bytes": "5111"
},
{
"name": "JavaScript",
"bytes": "7232"
},
{
"name": "Kotlin",
"bytes": "2261"
},
{
"name": "Lua",
"bytes": "1381"
},
{
"name": "Makefile",
"bytes": "3505"
},
{
"name": "OCaml",
"bytes": "894"
},
{
"name": "PHP",
"bytes": "1551"
},
{
"name": "Pascal",
"bytes": "1643"
},
{
"name": "Python",
"bytes": "60545"
},
{
"name": "R",
"bytes": "1664"
},
{
"name": "Ruby",
"bytes": "880"
},
{
"name": "Rust",
"bytes": "3980"
},
{
"name": "Scala",
"bytes": "2061"
},
{
"name": "Shell",
"bytes": "35358"
}
],
"symlink_target": ""
}
|
package executor
import (
"context"
"fmt"
"sync"
"sync/atomic"
"unsafe"
"github.com/pingcap/errors"
"github.com/pingcap/parser/terror"
"github.com/pingcap/tidb/expression"
plannercore "github.com/pingcap/tidb/planner/core"
"github.com/pingcap/tidb/types"
"github.com/pingcap/tidb/util"
"github.com/pingcap/tidb/util/chunk"
"github.com/pingcap/tidb/util/codec"
"github.com/pingcap/tidb/util/memory"
"github.com/pingcap/tidb/util/mvmap"
"github.com/pingcap/tidb/util/stringutil"
)
var (
_ Executor = &HashJoinExec{}
_ Executor = &NestedLoopApplyExec{}
)
// HashJoinExec implements the hash join algorithm.
type HashJoinExec struct {
baseExecutor
outerExec Executor
innerExec Executor
outerFilter expression.CNFExprs
outerKeys []*expression.Column
innerKeys []*expression.Column
// concurrency is the number of partition, build and join workers.
concurrency uint
hashTable *mvmap.MVMap
innerFinished chan error
hashJoinBuffers []*hashJoinBuffer
// joinWorkerWaitGroup is for sync multiple join workers.
joinWorkerWaitGroup sync.WaitGroup
finished atomic.Value
// closeCh add a lock for closing executor.
closeCh chan struct{}
joinType plannercore.JoinType
requiredRows int64
// We build individual joiner for each join worker when use chunk-based
// execution, to avoid the concurrency of joiner.chk and joiner.selected.
joiners []joiner
outerKeyColIdx []int
innerKeyColIdx []int
innerResult *chunk.List
outerChkResourceCh chan *outerChkResource
outerResultChs []chan *chunk.Chunk
joinChkResourceCh []chan *chunk.Chunk
joinResultCh chan *hashjoinWorkerResult
hashTableValBufs [][][]byte
memTracker *memory.Tracker // track memory usage.
prepared bool
isOuterJoin bool
}
// outerChkResource stores the result of the join outer fetch worker,
// `dest` is for Chunk reuse: after join workers process the outer chunk which is read from `dest`,
// they'll store the used chunk as `chk`, and then the outer fetch worker will put new data into `chk` and write `chk` into dest.
type outerChkResource struct {
chk *chunk.Chunk
dest chan<- *chunk.Chunk
}
// hashjoinWorkerResult stores the result of join workers,
// `src` is for Chunk reuse: the main goroutine will get the join result chunk `chk`,
// and push `chk` into `src` after processing, join worker goroutines get the empty chunk from `src`
// and push new data into this chunk.
type hashjoinWorkerResult struct {
chk *chunk.Chunk
err error
src chan<- *chunk.Chunk
}
type hashJoinBuffer struct {
data []types.Datum
bytes []byte
}
// Close implements the Executor Close interface.
func (e *HashJoinExec) Close() error {
close(e.closeCh)
e.finished.Store(true)
if e.prepared {
if e.innerFinished != nil {
for range e.innerFinished {
}
}
if e.joinResultCh != nil {
for range e.joinResultCh {
}
}
if e.outerChkResourceCh != nil {
close(e.outerChkResourceCh)
for range e.outerChkResourceCh {
}
}
for i := range e.outerResultChs {
for range e.outerResultChs[i] {
}
}
for i := range e.joinChkResourceCh {
close(e.joinChkResourceCh[i])
for range e.joinChkResourceCh[i] {
}
}
e.outerChkResourceCh = nil
e.joinChkResourceCh = nil
}
e.memTracker = nil
err := e.baseExecutor.Close()
return err
}
// Open implements the Executor Open interface.
func (e *HashJoinExec) Open(ctx context.Context) error {
if err := e.baseExecutor.Open(ctx); err != nil {
return err
}
e.prepared = false
e.memTracker = memory.NewTracker(e.id, e.ctx.GetSessionVars().MemQuotaHashJoin)
e.memTracker.AttachTo(e.ctx.GetSessionVars().StmtCtx.MemTracker)
e.hashTableValBufs = make([][][]byte, e.concurrency)
e.hashJoinBuffers = make([]*hashJoinBuffer, 0, e.concurrency)
for i := uint(0); i < e.concurrency; i++ {
buffer := &hashJoinBuffer{
data: make([]types.Datum, len(e.outerKeys)),
bytes: make([]byte, 0, 10000),
}
e.hashJoinBuffers = append(e.hashJoinBuffers, buffer)
}
e.closeCh = make(chan struct{})
e.finished.Store(false)
e.joinWorkerWaitGroup = sync.WaitGroup{}
return nil
}
func (e *HashJoinExec) getJoinKeyFromChkRow(isOuterKey bool, row chunk.Row, keyBuf []byte) (hasNull bool, _ []byte, err error) {
var keyColIdx []int
var allTypes []*types.FieldType
if isOuterKey {
keyColIdx = e.outerKeyColIdx
allTypes = retTypes(e.outerExec)
} else {
keyColIdx = e.innerKeyColIdx
allTypes = retTypes(e.innerExec)
}
for _, i := range keyColIdx {
if row.IsNull(i) {
return true, keyBuf, nil
}
}
keyBuf = keyBuf[:0]
keyBuf, err = codec.HashChunkRow(e.ctx.GetSessionVars().StmtCtx, keyBuf, row, allTypes, keyColIdx)
return false, keyBuf, err
}
// fetchOuterChunks get chunks from fetches chunks from the big table in a background goroutine
// and sends the chunks to multiple channels which will be read by multiple join workers.
func (e *HashJoinExec) fetchOuterChunks(ctx context.Context) {
hasWaitedForInner := false
for {
if e.finished.Load().(bool) {
return
}
var outerResource *outerChkResource
var ok bool
select {
case <-e.closeCh:
return
case outerResource, ok = <-e.outerChkResourceCh:
if !ok {
return
}
}
outerResult := outerResource.chk
if e.isOuterJoin {
required := int(atomic.LoadInt64(&e.requiredRows))
outerResult.SetRequiredRows(required, e.maxChunkSize)
}
err := Next(ctx, e.outerExec, outerResult)
if err != nil {
e.joinResultCh <- &hashjoinWorkerResult{
err: err,
}
return
}
if !hasWaitedForInner {
if outerResult.NumRows() == 0 {
e.finished.Store(true)
return
}
jobFinished, innerErr := e.wait4Inner()
if innerErr != nil {
e.joinResultCh <- &hashjoinWorkerResult{
err: innerErr,
}
return
} else if jobFinished {
return
}
hasWaitedForInner = true
}
if outerResult.NumRows() == 0 {
return
}
outerResource.dest <- outerResult
}
}
func (e *HashJoinExec) wait4Inner() (finished bool, err error) {
select {
case <-e.closeCh:
return true, nil
case err := <-e.innerFinished:
if err != nil {
return false, err
}
}
if e.hashTable.Len() == 0 && (e.joinType == plannercore.InnerJoin || e.joinType == plannercore.SemiJoin) {
return true, nil
}
return false, nil
}
var innerResultLabel fmt.Stringer = stringutil.StringerStr("innerResult")
// fetchInnerRows fetches all rows from inner executor,
// and append them to e.innerResult.
func (e *HashJoinExec) fetchInnerRows(ctx context.Context, chkCh chan<- *chunk.Chunk, doneCh <-chan struct{}) {
defer close(chkCh)
e.innerResult = chunk.NewList(e.innerExec.base().retFieldTypes, e.initCap, e.maxChunkSize)
e.innerResult.GetMemTracker().AttachTo(e.memTracker)
e.innerResult.GetMemTracker().SetLabel(innerResultLabel)
var err error
for {
if e.finished.Load().(bool) {
return
}
chk := chunk.NewChunkWithCapacity(e.innerExec.base().retFieldTypes, e.ctx.GetSessionVars().MaxChunkSize)
err = e.innerExec.Next(ctx, chk)
if err != nil {
e.innerFinished <- errors.Trace(err)
return
}
if chk.NumRows() == 0 {
return
}
select {
case <-doneCh:
return
case <-e.closeCh:
return
case chkCh <- chk:
e.innerResult.Add(chk)
}
}
}
func (e *HashJoinExec) initializeForProbe() {
// e.outerResultChs is for transmitting the chunks which store the data of
// outerExec, it'll be written by outer worker goroutine, and read by join
// workers.
e.outerResultChs = make([]chan *chunk.Chunk, e.concurrency)
for i := uint(0); i < e.concurrency; i++ {
e.outerResultChs[i] = make(chan *chunk.Chunk, 1)
}
// e.outerChkResourceCh is for transmitting the used outerExec chunks from
// join workers to outerExec worker.
e.outerChkResourceCh = make(chan *outerChkResource, e.concurrency)
for i := uint(0); i < e.concurrency; i++ {
e.outerChkResourceCh <- &outerChkResource{
chk: newFirstChunk(e.outerExec),
dest: e.outerResultChs[i],
}
}
// e.joinChkResourceCh is for transmitting the reused join result chunks
// from the main thread to join worker goroutines.
e.joinChkResourceCh = make([]chan *chunk.Chunk, e.concurrency)
for i := uint(0); i < e.concurrency; i++ {
e.joinChkResourceCh[i] = make(chan *chunk.Chunk, 1)
e.joinChkResourceCh[i] <- newFirstChunk(e)
}
// e.joinResultCh is for transmitting the join result chunks to the main
// thread.
e.joinResultCh = make(chan *hashjoinWorkerResult, e.concurrency+1)
e.outerKeyColIdx = make([]int, len(e.outerKeys))
for i := range e.outerKeys {
e.outerKeyColIdx[i] = e.outerKeys[i].Index
}
}
func (e *HashJoinExec) fetchOuterAndProbeHashTable(ctx context.Context) {
e.initializeForProbe()
e.joinWorkerWaitGroup.Add(1)
go util.WithRecovery(func() { e.fetchOuterChunks(ctx) }, e.handleOuterFetcherPanic)
// Start e.concurrency join workers to probe hash table and join inner and
// outer rows.
for i := uint(0); i < e.concurrency; i++ {
e.joinWorkerWaitGroup.Add(1)
workID := i
go util.WithRecovery(func() { e.runJoinWorker(workID) }, e.handleJoinWorkerPanic)
}
go util.WithRecovery(e.waitJoinWorkersAndCloseResultChan, nil)
}
func (e *HashJoinExec) handleOuterFetcherPanic(r interface{}) {
for i := range e.outerResultChs {
close(e.outerResultChs[i])
}
if r != nil {
e.joinResultCh <- &hashjoinWorkerResult{err: errors.Errorf("%v", r)}
}
e.joinWorkerWaitGroup.Done()
}
func (e *HashJoinExec) handleJoinWorkerPanic(r interface{}) {
if r != nil {
e.joinResultCh <- &hashjoinWorkerResult{err: errors.Errorf("%v", r)}
}
e.joinWorkerWaitGroup.Done()
}
func (e *HashJoinExec) waitJoinWorkersAndCloseResultChan() {
e.joinWorkerWaitGroup.Wait()
close(e.joinResultCh)
}
func (e *HashJoinExec) runJoinWorker(workerID uint) {
var (
outerResult *chunk.Chunk
selected = make([]bool, 0, chunk.InitialCapacity)
)
ok, joinResult := e.getNewJoinResult(workerID)
if !ok {
return
}
// Read and filter outerResult, and join the outerResult with the inner rows.
emptyOuterResult := &outerChkResource{
dest: e.outerResultChs[workerID],
}
for ok := true; ok; {
if e.finished.Load().(bool) {
break
}
select {
case <-e.closeCh:
return
case outerResult, ok = <-e.outerResultChs[workerID]:
}
if !ok {
break
}
ok, joinResult = e.join2Chunk(workerID, outerResult, joinResult, selected)
if !ok {
break
}
outerResult.Reset()
emptyOuterResult.chk = outerResult
e.outerChkResourceCh <- emptyOuterResult
}
if joinResult == nil {
return
} else if joinResult.err != nil || (joinResult.chk != nil && joinResult.chk.NumRows() > 0) {
e.joinResultCh <- joinResult
}
}
func (e *HashJoinExec) joinMatchedOuterRow2Chunk(workerID uint, outerRow chunk.Row,
joinResult *hashjoinWorkerResult) (bool, *hashjoinWorkerResult) {
buffer := e.hashJoinBuffers[workerID]
hasNull, joinKey, err := e.getJoinKeyFromChkRow(true, outerRow, buffer.bytes)
if err != nil {
joinResult.err = err
return false, joinResult
}
if hasNull {
e.joiners[workerID].onMissMatch(false, outerRow, joinResult.chk)
return true, joinResult
}
e.hashTableValBufs[workerID] = e.hashTable.Get(joinKey, e.hashTableValBufs[workerID][:0])
innerPtrs := e.hashTableValBufs[workerID]
if len(innerPtrs) == 0 {
e.joiners[workerID].onMissMatch(false, outerRow, joinResult.chk)
return true, joinResult
}
innerRows := make([]chunk.Row, 0, len(innerPtrs))
for _, b := range innerPtrs {
ptr := *(*chunk.RowPtr)(unsafe.Pointer(&b[0]))
matchedInner := e.innerResult.GetRow(ptr)
innerRows = append(innerRows, matchedInner)
}
iter := chunk.NewIterator4Slice(innerRows)
hasMatch, hasNull := false, false
for iter.Begin(); iter.Current() != iter.End(); {
matched, isNull, err := e.joiners[workerID].tryToMatch(outerRow, iter, joinResult.chk)
if err != nil {
joinResult.err = err
return false, joinResult
}
hasMatch = hasMatch || matched
hasNull = hasNull || isNull
if joinResult.chk.IsFull() {
e.joinResultCh <- joinResult
ok, joinResult := e.getNewJoinResult(workerID)
if !ok {
return false, joinResult
}
}
}
if !hasMatch {
e.joiners[workerID].onMissMatch(hasNull, outerRow, joinResult.chk)
}
return true, joinResult
}
func (e *HashJoinExec) getNewJoinResult(workerID uint) (bool, *hashjoinWorkerResult) {
joinResult := &hashjoinWorkerResult{
src: e.joinChkResourceCh[workerID],
}
ok := true
select {
case <-e.closeCh:
ok = false
case joinResult.chk, ok = <-e.joinChkResourceCh[workerID]:
}
return ok, joinResult
}
func (e *HashJoinExec) join2Chunk(workerID uint, outerChk *chunk.Chunk, joinResult *hashjoinWorkerResult,
selected []bool) (ok bool, _ *hashjoinWorkerResult) {
var err error
selected, err = expression.VectorizedFilter(e.ctx, e.outerFilter, chunk.NewIterator4Chunk(outerChk), selected)
if err != nil {
joinResult.err = err
return false, joinResult
}
for i := range selected {
if !selected[i] { // process unmatched outer rows
e.joiners[workerID].onMissMatch(false, outerChk.GetRow(i), joinResult.chk)
} else { // process matched outer rows
ok, joinResult = e.joinMatchedOuterRow2Chunk(workerID, outerChk.GetRow(i), joinResult)
if !ok {
return false, joinResult
}
}
if joinResult.chk.IsFull() {
e.joinResultCh <- joinResult
ok, joinResult = e.getNewJoinResult(workerID)
if !ok {
return false, joinResult
}
}
}
return true, joinResult
}
// Next implements the Executor Next interface.
// hash join constructs the result following these steps:
// step 1. fetch data from inner child and build a hash table;
// step 2. fetch data from outer child in a background goroutine and probe the hash table in multiple join workers.
func (e *HashJoinExec) Next(ctx context.Context, req *chunk.Chunk) (err error) {
if !e.prepared {
e.innerFinished = make(chan error, 1)
go util.WithRecovery(func() { e.fetchInnerAndBuildHashTable(ctx) }, e.handleFetchInnerAndBuildHashTablePanic)
e.fetchOuterAndProbeHashTable(ctx)
e.prepared = true
}
if e.isOuterJoin {
atomic.StoreInt64(&e.requiredRows, int64(req.RequiredRows()))
}
req.Reset()
result, ok := <-e.joinResultCh
if !ok {
return nil
}
if result.err != nil {
e.finished.Store(true)
return result.err
}
req.SwapColumns(result.chk)
result.src <- result.chk
return nil
}
func (e *HashJoinExec) handleFetchInnerAndBuildHashTablePanic(r interface{}) {
if r != nil {
e.innerFinished <- errors.Errorf("%v", r)
}
close(e.innerFinished)
}
func (e *HashJoinExec) fetchInnerAndBuildHashTable(ctx context.Context) {
// innerResultCh transfers inner chunk from inner fetch to build hash table.
innerResultCh := make(chan *chunk.Chunk, 1)
doneCh := make(chan struct{})
go util.WithRecovery(func() { e.fetchInnerRows(ctx, innerResultCh, doneCh) }, nil)
// TODO: Parallel build hash table. Currently not support because `mvmap` is not thread-safe.
err := e.buildHashTableForList(innerResultCh)
if err != nil {
e.innerFinished <- errors.Trace(err)
close(doneCh)
}
// Wait fetchInnerRows be finished.
// 1. if buildHashTableForList fails
// 2. if outerResult.NumRows() == 0, fetchOutChunks will not wait for inner.
for range innerResultCh {
}
}
// buildHashTableForList builds hash table from `list`.
// key of hash table: hash value of key columns
// value of hash table: RowPtr of the corresponded row
func (e *HashJoinExec) buildHashTableForList(innerResultCh <-chan *chunk.Chunk) error {
e.hashTable = mvmap.NewMVMap()
e.innerKeyColIdx = make([]int, len(e.innerKeys))
for i := range e.innerKeys {
e.innerKeyColIdx[i] = e.innerKeys[i].Index
}
var (
hasNull bool
err error
keyBuf = make([]byte, 0, 64)
valBuf = make([]byte, 8)
)
chkIdx := uint32(0)
for chk := range innerResultCh {
if e.finished.Load().(bool) {
return nil
}
numRows := chk.NumRows()
for j := 0; j < numRows; j++ {
hasNull, keyBuf, err = e.getJoinKeyFromChkRow(false, chk.GetRow(j), keyBuf)
if err != nil {
return errors.Trace(err)
}
if hasNull {
continue
}
rowPtr := chunk.RowPtr{ChkIdx: chkIdx, RowIdx: uint32(j)}
*(*chunk.RowPtr)(unsafe.Pointer(&valBuf[0])) = rowPtr
e.hashTable.Put(keyBuf, valBuf)
}
chkIdx++
}
return nil
}
// NestedLoopApplyExec is the executor for apply.
type NestedLoopApplyExec struct {
baseExecutor
innerRows []chunk.Row
cursor int
innerExec Executor
outerExec Executor
innerFilter expression.CNFExprs
outerFilter expression.CNFExprs
outer bool
joiner joiner
outerSchema []*expression.CorrelatedColumn
outerChunk *chunk.Chunk
outerChunkCursor int
outerSelected []bool
innerList *chunk.List
innerChunk *chunk.Chunk
innerSelected []bool
innerIter chunk.Iterator
outerRow *chunk.Row
hasMatch bool
hasNull bool
memTracker *memory.Tracker // track memory usage.
}
// Close implements the Executor interface.
func (e *NestedLoopApplyExec) Close() error {
e.innerRows = nil
e.memTracker = nil
return e.outerExec.Close()
}
var innerListLabel fmt.Stringer = stringutil.StringerStr("innerList")
// Open implements the Executor interface.
func (e *NestedLoopApplyExec) Open(ctx context.Context) error {
err := e.outerExec.Open(ctx)
if err != nil {
return err
}
e.cursor = 0
e.innerRows = e.innerRows[:0]
e.outerChunk = newFirstChunk(e.outerExec)
e.innerChunk = newFirstChunk(e.innerExec)
e.innerList = chunk.NewList(retTypes(e.innerExec), e.initCap, e.maxChunkSize)
e.memTracker = memory.NewTracker(e.id, e.ctx.GetSessionVars().MemQuotaNestedLoopApply)
e.memTracker.AttachTo(e.ctx.GetSessionVars().StmtCtx.MemTracker)
e.innerList.GetMemTracker().SetLabel(innerListLabel)
e.innerList.GetMemTracker().AttachTo(e.memTracker)
return nil
}
func (e *NestedLoopApplyExec) fetchSelectedOuterRow(ctx context.Context, chk *chunk.Chunk) (*chunk.Row, error) {
outerIter := chunk.NewIterator4Chunk(e.outerChunk)
for {
if e.outerChunkCursor >= e.outerChunk.NumRows() {
err := Next(ctx, e.outerExec, e.outerChunk)
if err != nil {
return nil, err
}
if e.outerChunk.NumRows() == 0 {
return nil, nil
}
e.outerSelected, err = expression.VectorizedFilter(e.ctx, e.outerFilter, outerIter, e.outerSelected)
if err != nil {
return nil, err
}
e.outerChunkCursor = 0
}
outerRow := e.outerChunk.GetRow(e.outerChunkCursor)
selected := e.outerSelected[e.outerChunkCursor]
e.outerChunkCursor++
if selected {
return &outerRow, nil
} else if e.outer {
e.joiner.onMissMatch(false, outerRow, chk)
if chk.IsFull() {
return nil, nil
}
}
}
}
// fetchAllInners reads all data from the inner table and stores them in a List.
func (e *NestedLoopApplyExec) fetchAllInners(ctx context.Context) error {
err := e.innerExec.Open(ctx)
defer terror.Call(e.innerExec.Close)
if err != nil {
return err
}
e.innerList.Reset()
innerIter := chunk.NewIterator4Chunk(e.innerChunk)
for {
err := Next(ctx, e.innerExec, e.innerChunk)
if err != nil {
return err
}
if e.innerChunk.NumRows() == 0 {
return nil
}
e.innerSelected, err = expression.VectorizedFilter(e.ctx, e.innerFilter, innerIter, e.innerSelected)
if err != nil {
return err
}
for row := innerIter.Begin(); row != innerIter.End(); row = innerIter.Next() {
if e.innerSelected[row.Idx()] {
e.innerList.AppendRow(row)
}
}
}
}
// Next implements the Executor interface.
func (e *NestedLoopApplyExec) Next(ctx context.Context, req *chunk.Chunk) (err error) {
req.Reset()
for {
if e.innerIter == nil || e.innerIter.Current() == e.innerIter.End() {
if e.outerRow != nil && !e.hasMatch {
e.joiner.onMissMatch(e.hasNull, *e.outerRow, req)
}
e.outerRow, err = e.fetchSelectedOuterRow(ctx, req)
if e.outerRow == nil || err != nil {
return err
}
e.hasMatch = false
e.hasNull = false
for _, col := range e.outerSchema {
*col.Data = e.outerRow.GetDatum(col.Index, col.RetType)
}
err = e.fetchAllInners(ctx)
if err != nil {
return err
}
e.innerIter = chunk.NewIterator4List(e.innerList)
e.innerIter.Begin()
}
matched, isNull, err := e.joiner.tryToMatch(*e.outerRow, e.innerIter, req)
e.hasMatch = e.hasMatch || matched
e.hasNull = e.hasNull || isNull
if err != nil || req.IsFull() {
return err
}
}
}
|
{
"content_hash": "db444357a36a337dc4e614ec3136065f",
"timestamp": "",
"source": "github",
"line_count": 735,
"max_line_length": 129,
"avg_line_length": 27.639455782312925,
"alnum_prop": 0.703765690376569,
"repo_name": "cosmtrek/tidb",
"id": "2b3eae1d5d06e6fcb0e423b04a34cfbb96e054c5",
"size": "20830",
"binary": false,
"copies": "1",
"ref": "refs/heads/master",
"path": "executor/join.go",
"mode": "33188",
"license": "apache-2.0",
"language": [
{
"name": "Dockerfile",
"bytes": "768"
},
{
"name": "Go",
"bytes": "10174027"
},
{
"name": "Makefile",
"bytes": "7497"
},
{
"name": "Shell",
"bytes": "10218"
}
],
"symlink_target": ""
}
|
<?php
namespace Putr\Cli\RtvSloParserBundle;
use Symfony\Component\HttpKernel\Bundle\Bundle;
class PutrCliRtvSloParserBundle extends Bundle
{
}
|
{
"content_hash": "0ca87fe7183c6ccdc2c8f0289058c884",
"timestamp": "",
"source": "github",
"line_count": 9,
"max_line_length": 47,
"avg_line_length": 16.333333333333332,
"alnum_prop": 0.8231292517006803,
"repo_name": "Putr/RtvParser",
"id": "ffbd53443e0025cf71243490ef56d2a1784ddc7f",
"size": "147",
"binary": false,
"copies": "1",
"ref": "refs/heads/master",
"path": "src/Putr/Cli/RtvSloParserBundle/PutrCliRtvSloParserBundle.php",
"mode": "33188",
"license": "mit",
"language": [
{
"name": "PHP",
"bytes": "70243"
}
],
"symlink_target": ""
}
|
<?xml version="1.0" ?><!DOCTYPE TS><TS language="cy" version="2.0">
<defaultcodec>UTF-8</defaultcodec>
<context>
<name>AboutDialog</name>
<message>
<location filename="../forms/aboutdialog.ui" line="+14"/>
<source>About NUD</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+39"/>
<source><b>NUD</b> version</source>
<translation>Fersiwn <b>NUD</b></translation>
</message>
<message>
<location line="+57"/>
<source>
This is experimental software.
Distributed under the MIT/X11 software license, see the accompanying file COPYING or http://www.opensource.org/licenses/mit-license.php.
This product includes software developed by the OpenSSL Project for use in the OpenSSL Toolkit (http://www.openssl.org/) and cryptographic software written by Eric Young (eay@cryptsoft.com) and UPnP software written by Thomas Bernard.</source>
<translation type="unfinished"/>
</message>
<message>
<location filename="../aboutdialog.cpp" line="+14"/>
<source>Copyright</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+0"/>
<source>The NUD developers</source>
<translation type="unfinished"/>
</message>
</context>
<context>
<name>AddressBookPage</name>
<message>
<location filename="../forms/addressbookpage.ui" line="+14"/>
<source>Address Book</source>
<translation>Llyfr Cyfeiriadau</translation>
</message>
<message>
<location line="+19"/>
<source>Double-click to edit address or label</source>
<translation>Clicio dwywaith i olygu cyfeiriad neu label</translation>
</message>
<message>
<location line="+27"/>
<source>Create a new address</source>
<translation>Creu cyfeiriad newydd</translation>
</message>
<message>
<location line="+14"/>
<source>Copy the currently selected address to the system clipboard</source>
<translation>Copio'r cyfeiriad sydd wedi'i ddewis i'r clipfwrdd system</translation>
</message>
<message>
<location line="-11"/>
<source>&New Address</source>
<translation type="unfinished"/>
</message>
<message>
<location filename="../addressbookpage.cpp" line="+63"/>
<source>These are your NUD addresses for receiving payments. You may want to give a different one to each sender so you can keep track of who is paying you.</source>
<translation type="unfinished"/>
</message>
<message>
<location filename="../forms/addressbookpage.ui" line="+14"/>
<source>&Copy Address</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+11"/>
<source>Show &QR Code</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+11"/>
<source>Sign a message to prove you own a NUD address</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+3"/>
<source>Sign &Message</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+25"/>
<source>Delete the currently selected address from the list</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+27"/>
<source>Export the data in the current tab to a file</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+3"/>
<source>&Export</source>
<translation type="unfinished"/>
</message>
<message>
<location line="-44"/>
<source>Verify a message to ensure it was signed with a specified NUD address</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+3"/>
<source>&Verify Message</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+14"/>
<source>&Delete</source>
<translation>&Dileu</translation>
</message>
<message>
<location filename="../addressbookpage.cpp" line="-5"/>
<source>These are your NUD addresses for sending payments. Always check the amount and the receiving address before sending coins.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+13"/>
<source>Copy &Label</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>&Edit</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>Send &Coins</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+260"/>
<source>Export Address Book Data</source>
<translation>Allforio Data Llyfr Cyfeiriad</translation>
</message>
<message>
<location line="+1"/>
<source>Comma separated file (*.csv)</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+13"/>
<source>Error exporting</source>
<translation>Gwall allforio</translation>
</message>
<message>
<location line="+0"/>
<source>Could not write to file %1.</source>
<translation>Ni ellir ysgrifennu i ffeil %1.</translation>
</message>
</context>
<context>
<name>AddressTableModel</name>
<message>
<location filename="../addresstablemodel.cpp" line="+144"/>
<source>Label</source>
<translation>Label</translation>
</message>
<message>
<location line="+0"/>
<source>Address</source>
<translation>Cyfeiriad</translation>
</message>
<message>
<location line="+36"/>
<source>(no label)</source>
<translation>(heb label)</translation>
</message>
</context>
<context>
<name>AskPassphraseDialog</name>
<message>
<location filename="../forms/askpassphrasedialog.ui" line="+26"/>
<source>Passphrase Dialog</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+21"/>
<source>Enter passphrase</source>
<translation>Teipiwch gyfrinymadrodd</translation>
</message>
<message>
<location line="+14"/>
<source>New passphrase</source>
<translation>Cyfrinymadrodd newydd</translation>
</message>
<message>
<location line="+14"/>
<source>Repeat new passphrase</source>
<translation>Ailadroddwch gyfrinymadrodd newydd</translation>
</message>
<message>
<location filename="../askpassphrasedialog.cpp" line="+33"/>
<source>Enter the new passphrase to the wallet.<br/>Please use a passphrase of <b>10 or more random characters</b>, or <b>eight or more words</b>.</source>
<translation>Dewiswch gyfrinymadrodd newydd ar gyfer y waled. <br/> Defnyddiwch cyfrinymadrodd o <b>10 neu fwy o lythyrennau hapgyrch</b>, neu <b> wyth neu fwy o eiriau.</translation>
</message>
<message>
<location line="+1"/>
<source>Encrypt wallet</source>
<translation>Amgryptio'r waled</translation>
</message>
<message>
<location line="+3"/>
<source>This operation needs your wallet passphrase to unlock the wallet.</source>
<translation>Mae angen i'r gweithred hon ddefnyddio'ch cyfrinymadrodd er mwyn datgloi'r waled.</translation>
</message>
<message>
<location line="+5"/>
<source>Unlock wallet</source>
<translation>Datgloi'r waled</translation>
</message>
<message>
<location line="+3"/>
<source>This operation needs your wallet passphrase to decrypt the wallet.</source>
<translation>Mae angen i'r gweithred hon ddefnyddio'ch cyfrinymadrodd er mwyn dadgryptio'r waled.</translation>
</message>
<message>
<location line="+5"/>
<source>Decrypt wallet</source>
<translation>Dadgryptio'r waled</translation>
</message>
<message>
<location line="+3"/>
<source>Change passphrase</source>
<translation>Newid cyfrinymadrodd</translation>
</message>
<message>
<location line="+1"/>
<source>Enter the old and new passphrase to the wallet.</source>
<translation>Teipiwch yr hen cyfrinymadrodd a chyfrinymadrodd newydd i mewn i'r waled.</translation>
</message>
<message>
<location line="+46"/>
<source>Confirm wallet encryption</source>
<translation>Cadarnau amgryptiad y waled</translation>
</message>
<message>
<location line="+1"/>
<source>Warning: If you encrypt your wallet and lose your passphrase, you will <b>LOSE ALL OF YOUR NUDS</b>!</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+0"/>
<source>Are you sure you wish to encrypt your wallet?</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+15"/>
<source>IMPORTANT: Any previous backups you have made of your wallet file should be replaced with the newly generated, encrypted wallet file. For security reasons, previous backups of the unencrypted wallet file will become useless as soon as you start using the new, encrypted wallet.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+100"/>
<location line="+24"/>
<source>Warning: The Caps Lock key is on!</source>
<translation type="unfinished"/>
</message>
<message>
<location line="-130"/>
<location line="+58"/>
<source>Wallet encrypted</source>
<translation>Waled wedi'i amgryptio</translation>
</message>
<message>
<location line="-56"/>
<source>NUD will close now to finish the encryption process. Remember that encrypting your wallet cannot fully protect your nuds from being stolen by malware infecting your computer.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+13"/>
<location line="+7"/>
<location line="+42"/>
<location line="+6"/>
<source>Wallet encryption failed</source>
<translation>Amgryptiad waled wedi methu</translation>
</message>
<message>
<location line="-54"/>
<source>Wallet encryption failed due to an internal error. Your wallet was not encrypted.</source>
<translation>Methodd amgryptiad y waled oherwydd gwall mewnol. Ni amgryptwyd eich waled.</translation>
</message>
<message>
<location line="+7"/>
<location line="+48"/>
<source>The supplied passphrases do not match.</source>
<translation>Dydy'r cyfrinymadroddion a ddarparwyd ddim yn cyd-fynd â'u gilydd.</translation>
</message>
<message>
<location line="-37"/>
<source>Wallet unlock failed</source>
<translation>Methodd ddatgloi'r waled</translation>
</message>
<message>
<location line="+1"/>
<location line="+11"/>
<location line="+19"/>
<source>The passphrase entered for the wallet decryption was incorrect.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="-20"/>
<source>Wallet decryption failed</source>
<translation>Methodd dadgryptiad y waled</translation>
</message>
<message>
<location line="+14"/>
<source>Wallet passphrase was successfully changed.</source>
<translation type="unfinished"/>
</message>
</context>
<context>
<name>BitcoinGUI</name>
<message>
<location filename="../bitcoingui.cpp" line="+233"/>
<source>Sign &message...</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+280"/>
<source>Synchronizing with network...</source>
<translation>Cysoni â'r rhwydwaith...</translation>
</message>
<message>
<location line="-349"/>
<source>&Overview</source>
<translation>&Trosolwg</translation>
</message>
<message>
<location line="+1"/>
<source>Show general overview of wallet</source>
<translation>Dangos trosolwg cyffredinol y waled</translation>
</message>
<message>
<location line="+20"/>
<source>&Transactions</source>
<translation>&Trafodion</translation>
</message>
<message>
<location line="+1"/>
<source>Browse transaction history</source>
<translation>Pori hanes trafodion</translation>
</message>
<message>
<location line="+7"/>
<source>Edit the list of stored addresses and labels</source>
<translation>Golygu'r rhestr o cyfeiriadau a labeli ar gadw</translation>
</message>
<message>
<location line="-14"/>
<source>Show the list of addresses for receiving payments</source>
<translation>Dangos rhestr o gyfeiriadau ar gyfer derbyn taliadau</translation>
</message>
<message>
<location line="+31"/>
<source>E&xit</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>Quit application</source>
<translation>Gadael rhaglen</translation>
</message>
<message>
<location line="+4"/>
<source>Show information about NUD</source>
<translation>Dangos gwybodaeth am NUD</translation>
</message>
<message>
<location line="+2"/>
<source>About &Qt</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>Show information about Qt</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+2"/>
<source>&Options...</source>
<translation>&Opsiynau</translation>
</message>
<message>
<location line="+6"/>
<source>&Encrypt Wallet...</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+3"/>
<source>&Backup Wallet...</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+2"/>
<source>&Change Passphrase...</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+285"/>
<source>Importing blocks from disk...</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+3"/>
<source>Reindexing blocks on disk...</source>
<translation type="unfinished"/>
</message>
<message>
<location line="-347"/>
<source>Send coins to a NUD address</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+49"/>
<source>Modify configuration options for NUD</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+9"/>
<source>Backup wallet to another location</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+2"/>
<source>Change the passphrase used for wallet encryption</source>
<translation>Newid y cyfrinymadrodd a ddefnyddiwyd ar gyfer amgryptio'r waled</translation>
</message>
<message>
<location line="+6"/>
<source>&Debug window</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>Open debugging and diagnostic console</source>
<translation type="unfinished"/>
</message>
<message>
<location line="-4"/>
<source>&Verify message...</source>
<translation type="unfinished"/>
</message>
<message>
<location line="-165"/>
<location line="+530"/>
<source>NUD</source>
<translation type="unfinished"/>
</message>
<message>
<location line="-530"/>
<source>Wallet</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+101"/>
<source>&Send</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+7"/>
<source>&Receive</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+14"/>
<source>&Addresses</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+22"/>
<source>&About NUD</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+9"/>
<source>&Show / Hide</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>Show or hide the main Window</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+3"/>
<source>Encrypt the private keys that belong to your wallet</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+7"/>
<source>Sign messages with your NUD addresses to prove you own them</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+2"/>
<source>Verify messages to ensure they were signed with specified NUD addresses</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+28"/>
<source>&File</source>
<translation>&Ffeil</translation>
</message>
<message>
<location line="+7"/>
<source>&Settings</source>
<translation>&Gosodiadau</translation>
</message>
<message>
<location line="+6"/>
<source>&Help</source>
<translation>&Cymorth</translation>
</message>
<message>
<location line="+9"/>
<source>Tabs toolbar</source>
<translation>Bar offer tabiau</translation>
</message>
<message>
<location line="+17"/>
<location line="+10"/>
<source>[testnet]</source>
<translation>[testnet]</translation>
</message>
<message>
<location line="+47"/>
<source>NUD client</source>
<translation type="unfinished"/>
</message>
<message numerus="yes">
<location line="+141"/>
<source>%n active connection(s) to NUD network</source>
<translation type="unfinished"><numerusform></numerusform><numerusform></numerusform><numerusform></numerusform><numerusform></numerusform></translation>
</message>
<message>
<location line="+22"/>
<source>No block source available...</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+12"/>
<source>Processed %1 of %2 (estimated) blocks of transaction history.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+4"/>
<source>Processed %1 blocks of transaction history.</source>
<translation type="unfinished"/>
</message>
<message numerus="yes">
<location line="+20"/>
<source>%n hour(s)</source>
<translation type="unfinished"><numerusform></numerusform><numerusform></numerusform><numerusform></numerusform><numerusform></numerusform></translation>
</message>
<message numerus="yes">
<location line="+4"/>
<source>%n day(s)</source>
<translation type="unfinished"><numerusform></numerusform><numerusform></numerusform><numerusform></numerusform><numerusform></numerusform></translation>
</message>
<message numerus="yes">
<location line="+4"/>
<source>%n week(s)</source>
<translation type="unfinished"><numerusform></numerusform><numerusform></numerusform><numerusform></numerusform><numerusform></numerusform></translation>
</message>
<message>
<location line="+4"/>
<source>%1 behind</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+14"/>
<source>Last received block was generated %1 ago.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+2"/>
<source>Transactions after this will not yet be visible.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+22"/>
<source>Error</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+3"/>
<source>Warning</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+3"/>
<source>Information</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+70"/>
<source>This transaction is over the size limit. You can still send it for a fee of %1, which goes to the nodes that process your transaction and helps to support the network. Do you want to pay the fee?</source>
<translation type="unfinished"/>
</message>
<message>
<location line="-140"/>
<source>Up to date</source>
<translation>Cyfamserol</translation>
</message>
<message>
<location line="+31"/>
<source>Catching up...</source>
<translation>Dal i fyny</translation>
</message>
<message>
<location line="+113"/>
<source>Confirm transaction fee</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+8"/>
<source>Sent transaction</source>
<translation>Trafodiad a anfonwyd</translation>
</message>
<message>
<location line="+0"/>
<source>Incoming transaction</source>
<translation>Trafodiad sy'n cyrraedd</translation>
</message>
<message>
<location line="+1"/>
<source>Date: %1
Amount: %2
Type: %3
Address: %4
</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+33"/>
<location line="+23"/>
<source>URI handling</source>
<translation type="unfinished"/>
</message>
<message>
<location line="-23"/>
<location line="+23"/>
<source>URI can not be parsed! This can be caused by an invalid NUD address or malformed URI parameters.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+17"/>
<source>Wallet is <b>encrypted</b> and currently <b>unlocked</b></source>
<translation>Mae'r waled <b>wedi'i amgryptio</b> ac <b>heb ei gloi</b> ar hyn o bryd</translation>
</message>
<message>
<location line="+8"/>
<source>Wallet is <b>encrypted</b> and currently <b>locked</b></source>
<translation>Mae'r waled <b>wedi'i amgryptio</b> ac <b>ar glo</b> ar hyn o bryd</translation>
</message>
<message>
<location filename="../bitcoin.cpp" line="+111"/>
<source>A fatal error occurred. NUD can no longer continue safely and will quit.</source>
<translation type="unfinished"/>
</message>
</context>
<context>
<name>ClientModel</name>
<message>
<location filename="../clientmodel.cpp" line="+104"/>
<source>Network Alert</source>
<translation type="unfinished"/>
</message>
</context>
<context>
<name>EditAddressDialog</name>
<message>
<location filename="../forms/editaddressdialog.ui" line="+14"/>
<source>Edit Address</source>
<translation>Golygu'r cyfeiriad</translation>
</message>
<message>
<location line="+11"/>
<source>&Label</source>
<translation>&Label</translation>
</message>
<message>
<location line="+10"/>
<source>The label associated with this address book entry</source>
<translation>Mae'r label hon yn cysylltiedig gyda'r cofnod llyfr cyfeiriad hon</translation>
</message>
<message>
<location line="+7"/>
<source>&Address</source>
<translation>&Cyfeiriad</translation>
</message>
<message>
<location line="+10"/>
<source>The address associated with this address book entry. This can only be modified for sending addresses.</source>
<translation>Mae'r cyfeiriad hon yn cysylltiedig gyda'r cofnod llyfr cyfeiriad hon. Gall hyn gael ei olygu dim ond ar gyfer y pwrpas o anfon cyfeiriadau.</translation>
</message>
<message>
<location filename="../editaddressdialog.cpp" line="+21"/>
<source>New receiving address</source>
<translation>Cyfeiriad derbyn newydd</translation>
</message>
<message>
<location line="+4"/>
<source>New sending address</source>
<translation>Cyfeiriad anfon newydd</translation>
</message>
<message>
<location line="+3"/>
<source>Edit receiving address</source>
<translation>Golygu'r cyfeiriad derbyn</translation>
</message>
<message>
<location line="+4"/>
<source>Edit sending address</source>
<translation>Golygu'r cyfeiriad anfon</translation>
</message>
<message>
<location line="+76"/>
<source>The entered address "%1" is already in the address book.</source>
<translation>Mae'r cyfeiriad "%1" sydd newydd gael ei geisio gennych yn y llyfr cyfeiriad yn barod.</translation>
</message>
<message>
<location line="-5"/>
<source>The entered address "%1" is not a valid NUD address.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+10"/>
<source>Could not unlock wallet.</source>
<translation>Methodd ddatgloi'r waled.</translation>
</message>
<message>
<location line="+5"/>
<source>New key generation failed.</source>
<translation>Methodd gynhyrchu allwedd newydd.</translation>
</message>
</context>
<context>
<name>GUIUtil::HelpMessageBox</name>
<message>
<location filename="../guiutil.cpp" line="+424"/>
<location line="+12"/>
<source>NUD-Qt</source>
<translation type="unfinished"/>
</message>
<message>
<location line="-12"/>
<source>version</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+2"/>
<source>Usage:</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>command-line options</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+4"/>
<source>UI options</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>Set language, for example "de_DE" (default: system locale)</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>Start minimized</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>Show splash screen on startup (default: 1)</source>
<translation type="unfinished"/>
</message>
</context>
<context>
<name>OptionsDialog</name>
<message>
<location filename="../forms/optionsdialog.ui" line="+14"/>
<source>Options</source>
<translation>Opsiynau</translation>
</message>
<message>
<location line="+16"/>
<source>&Main</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+6"/>
<source>Optional transaction fee per kB that helps make sure your transactions are processed quickly. Most transactions are 1 kB.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+15"/>
<source>Pay transaction &fee</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+31"/>
<source>Automatically start NUD after logging in to the system.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+3"/>
<source>&Start NUD on system login</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+35"/>
<source>Reset all client options to default.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+3"/>
<source>&Reset Options</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+13"/>
<source>&Network</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+6"/>
<source>Automatically open the NUD client port on the router. This only works when your router supports UPnP and it is enabled.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+3"/>
<source>Map port using &UPnP</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+7"/>
<source>Connect to the NUD network through a SOCKS proxy (e.g. when connecting through Tor).</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+3"/>
<source>&Connect through SOCKS proxy:</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+9"/>
<source>Proxy &IP:</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+19"/>
<source>IP address of the proxy (e.g. 127.0.0.1)</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+7"/>
<source>&Port:</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+19"/>
<source>Port of the proxy (e.g. 9050)</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+7"/>
<source>SOCKS &Version:</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+13"/>
<source>SOCKS version of the proxy (e.g. 5)</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+36"/>
<source>&Window</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+6"/>
<source>Show only a tray icon after minimizing the window.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+3"/>
<source>&Minimize to the tray instead of the taskbar</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+7"/>
<source>Minimize instead of exit the application when the window is closed. When this option is enabled, the application will be closed only after selecting Quit in the menu.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+3"/>
<source>M&inimize on close</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+21"/>
<source>&Display</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+8"/>
<source>User Interface &language:</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+13"/>
<source>The user interface language can be set here. This setting will take effect after restarting NUD.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+11"/>
<source>&Unit to show amounts in:</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+13"/>
<source>Choose the default subdivision unit to show in the interface and when sending coins.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+9"/>
<source>Whether to show NUD addresses in the transaction list or not.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+3"/>
<source>&Display addresses in transaction list</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+71"/>
<source>&OK</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+7"/>
<source>&Cancel</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+10"/>
<source>&Apply</source>
<translation type="unfinished"/>
</message>
<message>
<location filename="../optionsdialog.cpp" line="+53"/>
<source>default</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+130"/>
<source>Confirm options reset</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>Some settings may require a client restart to take effect.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+0"/>
<source>Do you want to proceed?</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+42"/>
<location line="+9"/>
<source>Warning</source>
<translation type="unfinished"/>
</message>
<message>
<location line="-9"/>
<location line="+9"/>
<source>This setting will take effect after restarting NUD.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+29"/>
<source>The supplied proxy address is invalid.</source>
<translation type="unfinished"/>
</message>
</context>
<context>
<name>OverviewPage</name>
<message>
<location filename="../forms/overviewpage.ui" line="+14"/>
<source>Form</source>
<translation>Ffurflen</translation>
</message>
<message>
<location line="+50"/>
<location line="+166"/>
<source>The displayed information may be out of date. Your wallet automatically synchronizes with the NUD network after a connection is established, but this process has not completed yet.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="-124"/>
<source>Balance:</source>
<translation>Gweddill:</translation>
</message>
<message>
<location line="+29"/>
<source>Unconfirmed:</source>
<translation>Nas cadarnheir:</translation>
</message>
<message>
<location line="-78"/>
<source>Wallet</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+107"/>
<source>Immature:</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+13"/>
<source>Mined balance that has not yet matured</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+46"/>
<source><b>Recent transactions</b></source>
<translation><b>Trafodion diweddar</b></translation>
</message>
<message>
<location line="-101"/>
<source>Your current balance</source>
<translation>Eich gweddill presennol</translation>
</message>
<message>
<location line="+29"/>
<source>Total of transactions that have yet to be confirmed, and do not yet count toward the current balance</source>
<translation>Cyfanswm o drafodion sydd heb eu cadarnhau a heb eu cyfri tuag at y gweddill presennol</translation>
</message>
<message>
<location filename="../overviewpage.cpp" line="+116"/>
<location line="+1"/>
<source>out of sync</source>
<translation type="unfinished"/>
</message>
</context>
<context>
<name>PaymentServer</name>
<message>
<location filename="../paymentserver.cpp" line="+107"/>
<source>Cannot start nud: click-to-pay handler</source>
<translation type="unfinished"/>
</message>
</context>
<context>
<name>QRCodeDialog</name>
<message>
<location filename="../forms/qrcodedialog.ui" line="+14"/>
<source>QR Code Dialog</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+59"/>
<source>Request Payment</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+56"/>
<source>Amount:</source>
<translation type="unfinished"/>
</message>
<message>
<location line="-44"/>
<source>Label:</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+19"/>
<source>Message:</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+71"/>
<source>&Save As...</source>
<translation type="unfinished"/>
</message>
<message>
<location filename="../qrcodedialog.cpp" line="+62"/>
<source>Error encoding URI into QR Code.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+40"/>
<source>The entered amount is invalid, please check.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+23"/>
<source>Resulting URI too long, try to reduce the text for label / message.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+25"/>
<source>Save QR Code</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+0"/>
<source>PNG Images (*.png)</source>
<translation type="unfinished"/>
</message>
</context>
<context>
<name>RPCConsole</name>
<message>
<location filename="../forms/rpcconsole.ui" line="+46"/>
<source>Client name</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+10"/>
<location line="+23"/>
<location line="+26"/>
<location line="+23"/>
<location line="+23"/>
<location line="+36"/>
<location line="+53"/>
<location line="+23"/>
<location line="+23"/>
<location filename="../rpcconsole.cpp" line="+339"/>
<source>N/A</source>
<translation type="unfinished"/>
</message>
<message>
<location line="-217"/>
<source>Client version</source>
<translation type="unfinished"/>
</message>
<message>
<location line="-45"/>
<source>&Information</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+68"/>
<source>Using OpenSSL version</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+49"/>
<source>Startup time</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+29"/>
<source>Network</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+7"/>
<source>Number of connections</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+23"/>
<source>On testnet</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+23"/>
<source>Block chain</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+7"/>
<source>Current number of blocks</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+23"/>
<source>Estimated total blocks</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+23"/>
<source>Last block time</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+52"/>
<source>&Open</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+16"/>
<source>Command-line options</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+7"/>
<source>Show the NUD-Qt help message to get a list with possible NUD command-line options.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+3"/>
<source>&Show</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+24"/>
<source>&Console</source>
<translation type="unfinished"/>
</message>
<message>
<location line="-260"/>
<source>Build date</source>
<translation type="unfinished"/>
</message>
<message>
<location line="-104"/>
<source>NUD - Debug window</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+25"/>
<source>NUD Core</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+279"/>
<source>Debug log file</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+7"/>
<source>Open the NUD debug log file from the current data directory. This can take a few seconds for large log files.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+102"/>
<source>Clear console</source>
<translation type="unfinished"/>
</message>
<message>
<location filename="../rpcconsole.cpp" line="-30"/>
<source>Welcome to the NUD RPC console.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>Use up and down arrows to navigate history, and <b>Ctrl-L</b> to clear screen.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>Type <b>help</b> for an overview of available commands.</source>
<translation type="unfinished"/>
</message>
</context>
<context>
<name>SendCoinsDialog</name>
<message>
<location filename="../forms/sendcoinsdialog.ui" line="+14"/>
<location filename="../sendcoinsdialog.cpp" line="+124"/>
<location line="+5"/>
<location line="+5"/>
<location line="+5"/>
<location line="+6"/>
<location line="+5"/>
<location line="+5"/>
<source>Send Coins</source>
<translation>Anfon arian</translation>
</message>
<message>
<location line="+50"/>
<source>Send to multiple recipients at once</source>
<translation>Anfon at pobl lluosog ar yr un pryd</translation>
</message>
<message>
<location line="+3"/>
<source>Add &Recipient</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+20"/>
<source>Remove all transaction fields</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+3"/>
<source>Clear &All</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+22"/>
<source>Balance:</source>
<translation>Gweddill:</translation>
</message>
<message>
<location line="+10"/>
<source>123.456 BTC</source>
<translation>123.456 BTC</translation>
</message>
<message>
<location line="+31"/>
<source>Confirm the send action</source>
<translation>Cadarnhau'r gweithrediad anfon</translation>
</message>
<message>
<location line="+3"/>
<source>S&end</source>
<translation type="unfinished"/>
</message>
<message>
<location filename="../sendcoinsdialog.cpp" line="-59"/>
<source><b>%1</b> to %2 (%3)</source>
<translation><b>%1</b> to %2 (%3)</translation>
</message>
<message>
<location line="+5"/>
<source>Confirm send coins</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>Are you sure you want to send %1?</source>
<translation>Ydych chi'n siwr eich bod chi eisiau anfon %1?</translation>
</message>
<message>
<location line="+0"/>
<source> and </source>
<translation>a</translation>
</message>
<message>
<location line="+23"/>
<source>The recipient address is not valid, please recheck.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+5"/>
<source>The amount to pay must be larger than 0.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+5"/>
<source>The amount exceeds your balance.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+5"/>
<source>The total exceeds your balance when the %1 transaction fee is included.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+6"/>
<source>Duplicate address found, can only send to each address once per send operation.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+5"/>
<source>Error: Transaction creation failed!</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+5"/>
<source>Error: The transaction was rejected. This might happen if some of the coins in your wallet were already spent, such as if you used a copy of wallet.dat and coins were spent in the copy but not marked as spent here.</source>
<translation type="unfinished"/>
</message>
</context>
<context>
<name>SendCoinsEntry</name>
<message>
<location filename="../forms/sendcoinsentry.ui" line="+14"/>
<source>Form</source>
<translation>Ffurflen</translation>
</message>
<message>
<location line="+15"/>
<source>A&mount:</source>
<translation>&Maint</translation>
</message>
<message>
<location line="+13"/>
<source>Pay &To:</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+34"/>
<source>The address to send the payment to (e.g. Ner4HNAEfwYhBmGXcFP2Po1NpRUEiK8km2)</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+60"/>
<location filename="../sendcoinsentry.cpp" line="+26"/>
<source>Enter a label for this address to add it to your address book</source>
<translation type="unfinished"/>
</message>
<message>
<location line="-78"/>
<source>&Label:</source>
<translation>&Label:</translation>
</message>
<message>
<location line="+28"/>
<source>Choose address from address book</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+10"/>
<source>Alt+A</source>
<translation>Alt+A</translation>
</message>
<message>
<location line="+7"/>
<source>Paste address from clipboard</source>
<translation>Gludo cyfeiriad o'r glipfwrdd</translation>
</message>
<message>
<location line="+10"/>
<source>Alt+P</source>
<translation>Alt+P</translation>
</message>
<message>
<location line="+7"/>
<source>Remove this recipient</source>
<translation type="unfinished"/>
</message>
<message>
<location filename="../sendcoinsentry.cpp" line="+1"/>
<source>Enter a NUD address (e.g. Ner4HNAEfwYhBmGXcFP2Po1NpRUEiK8km2)</source>
<translation type="unfinished"/>
</message>
</context>
<context>
<name>SignVerifyMessageDialog</name>
<message>
<location filename="../forms/signverifymessagedialog.ui" line="+14"/>
<source>Signatures - Sign / Verify a Message</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+13"/>
<source>&Sign Message</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+6"/>
<source>You can sign messages with your addresses to prove you own them. Be careful not to sign anything vague, as phishing attacks may try to trick you into signing your identity over to them. Only sign fully-detailed statements you agree to.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+18"/>
<source>The address to sign the message with (e.g. Ner4HNAEfwYhBmGXcFP2Po1NpRUEiK8km2)</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+10"/>
<location line="+213"/>
<source>Choose an address from the address book</source>
<translation type="unfinished"/>
</message>
<message>
<location line="-203"/>
<location line="+213"/>
<source>Alt+A</source>
<translation>Alt+A</translation>
</message>
<message>
<location line="-203"/>
<source>Paste address from clipboard</source>
<translation>Gludo cyfeiriad o'r glipfwrdd</translation>
</message>
<message>
<location line="+10"/>
<source>Alt+P</source>
<translation>Alt+P</translation>
</message>
<message>
<location line="+12"/>
<source>Enter the message you want to sign here</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+7"/>
<source>Signature</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+27"/>
<source>Copy the current signature to the system clipboard</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+21"/>
<source>Sign the message to prove you own this NUD address</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+3"/>
<source>Sign &Message</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+14"/>
<source>Reset all sign message fields</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+3"/>
<location line="+146"/>
<source>Clear &All</source>
<translation type="unfinished"/>
</message>
<message>
<location line="-87"/>
<source>&Verify Message</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+6"/>
<source>Enter the signing address, message (ensure you copy line breaks, spaces, tabs, etc. exactly) and signature below to verify the message. Be careful not to read more into the signature than what is in the signed message itself, to avoid being tricked by a man-in-the-middle attack.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+21"/>
<source>The address the message was signed with (e.g. Ner4HNAEfwYhBmGXcFP2Po1NpRUEiK8km2)</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+40"/>
<source>Verify the message to ensure it was signed with the specified NUD address</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+3"/>
<source>Verify &Message</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+14"/>
<source>Reset all verify message fields</source>
<translation type="unfinished"/>
</message>
<message>
<location filename="../signverifymessagedialog.cpp" line="+27"/>
<location line="+3"/>
<source>Enter a NUD address (e.g. Ner4HNAEfwYhBmGXcFP2Po1NpRUEiK8km2)</source>
<translation type="unfinished"/>
</message>
<message>
<location line="-2"/>
<source>Click "Sign Message" to generate signature</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+3"/>
<source>Enter NUD signature</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+82"/>
<location line="+81"/>
<source>The entered address is invalid.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="-81"/>
<location line="+8"/>
<location line="+73"/>
<location line="+8"/>
<source>Please check the address and try again.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="-81"/>
<location line="+81"/>
<source>The entered address does not refer to a key.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="-73"/>
<source>Wallet unlock was cancelled.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+8"/>
<source>Private key for the entered address is not available.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+12"/>
<source>Message signing failed.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+5"/>
<source>Message signed.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+59"/>
<source>The signature could not be decoded.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+0"/>
<location line="+13"/>
<source>Please check the signature and try again.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+0"/>
<source>The signature did not match the message digest.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+7"/>
<source>Message verification failed.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+5"/>
<source>Message verified.</source>
<translation type="unfinished"/>
</message>
</context>
<context>
<name>SplashScreen</name>
<message>
<location filename="../splashscreen.cpp" line="+22"/>
<source>The NUD developers</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>[testnet]</source>
<translation type="unfinished"/>
</message>
</context>
<context>
<name>TransactionDesc</name>
<message>
<location filename="../transactiondesc.cpp" line="+20"/>
<source>Open until %1</source>
<translation>Agor tan %1</translation>
</message>
<message>
<location line="+6"/>
<source>%1/offline</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+2"/>
<source>%1/unconfirmed</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+2"/>
<source>%1 confirmations</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+18"/>
<source>Status</source>
<translation type="unfinished"/>
</message>
<message numerus="yes">
<location line="+7"/>
<source>, broadcast through %n node(s)</source>
<translation type="unfinished"><numerusform></numerusform><numerusform></numerusform><numerusform></numerusform><numerusform></numerusform></translation>
</message>
<message>
<location line="+4"/>
<source>Date</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+7"/>
<source>Source</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+0"/>
<source>Generated</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+5"/>
<location line="+17"/>
<source>From</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<location line="+22"/>
<location line="+58"/>
<source>To</source>
<translation type="unfinished"/>
</message>
<message>
<location line="-77"/>
<location line="+2"/>
<source>own address</source>
<translation type="unfinished"/>
</message>
<message>
<location line="-2"/>
<source>label</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+37"/>
<location line="+12"/>
<location line="+45"/>
<location line="+17"/>
<location line="+30"/>
<source>Credit</source>
<translation type="unfinished"/>
</message>
<message numerus="yes">
<location line="-102"/>
<source>matures in %n more block(s)</source>
<translation type="unfinished"><numerusform></numerusform><numerusform></numerusform><numerusform></numerusform><numerusform></numerusform></translation>
</message>
<message>
<location line="+2"/>
<source>not accepted</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+44"/>
<location line="+8"/>
<location line="+15"/>
<location line="+30"/>
<source>Debit</source>
<translation type="unfinished"/>
</message>
<message>
<location line="-39"/>
<source>Transaction fee</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+16"/>
<source>Net amount</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+6"/>
<source>Message</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+2"/>
<source>Comment</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+2"/>
<source>Transaction ID</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+3"/>
<source>Generated coins must mature 120 blocks before they can be spent. When you generated this block, it was broadcast to the network to be added to the block chain. If it fails to get into the chain, its state will change to "not accepted" and it won't be spendable. This may occasionally happen if another node generates a block within a few seconds of yours.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+7"/>
<source>Debug information</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+8"/>
<source>Transaction</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+3"/>
<source>Inputs</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+23"/>
<source>Amount</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>true</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+0"/>
<source>false</source>
<translation type="unfinished"/>
</message>
<message>
<location line="-209"/>
<source>, has not been successfully broadcast yet</source>
<translation type="unfinished"/>
</message>
<message numerus="yes">
<location line="-35"/>
<source>Open for %n more block(s)</source>
<translation type="unfinished"><numerusform></numerusform><numerusform></numerusform><numerusform></numerusform><numerusform></numerusform></translation>
</message>
<message>
<location line="+70"/>
<source>unknown</source>
<translation type="unfinished"/>
</message>
</context>
<context>
<name>TransactionDescDialog</name>
<message>
<location filename="../forms/transactiondescdialog.ui" line="+14"/>
<source>Transaction details</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+6"/>
<source>This pane shows a detailed description of the transaction</source>
<translation type="unfinished"/>
</message>
</context>
<context>
<name>TransactionTableModel</name>
<message>
<location filename="../transactiontablemodel.cpp" line="+225"/>
<source>Date</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+0"/>
<source>Type</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+0"/>
<source>Address</source>
<translation>Cyfeiriad</translation>
</message>
<message>
<location line="+0"/>
<source>Amount</source>
<translation type="unfinished"/>
</message>
<message numerus="yes">
<location line="+57"/>
<source>Open for %n more block(s)</source>
<translation type="unfinished"><numerusform></numerusform><numerusform></numerusform><numerusform></numerusform><numerusform></numerusform></translation>
</message>
<message>
<location line="+3"/>
<source>Open until %1</source>
<translation>Agor tan %1</translation>
</message>
<message>
<location line="+3"/>
<source>Offline (%1 confirmations)</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+3"/>
<source>Unconfirmed (%1 of %2 confirmations)</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+3"/>
<source>Confirmed (%1 confirmations)</source>
<translation type="unfinished"/>
</message>
<message numerus="yes">
<location line="+8"/>
<source>Mined balance will be available when it matures in %n more block(s)</source>
<translation type="unfinished"><numerusform></numerusform><numerusform></numerusform><numerusform></numerusform><numerusform></numerusform></translation>
</message>
<message>
<location line="+5"/>
<source>This block was not received by any other nodes and will probably not be accepted!</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+3"/>
<source>Generated but not accepted</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+43"/>
<source>Received with</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+2"/>
<source>Received from</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+3"/>
<source>Sent to</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+2"/>
<source>Payment to yourself</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+2"/>
<source>Mined</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+38"/>
<source>(n/a)</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+199"/>
<source>Transaction status. Hover over this field to show number of confirmations.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+2"/>
<source>Date and time that the transaction was received.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+2"/>
<source>Type of transaction.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+2"/>
<source>Destination address of transaction.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+2"/>
<source>Amount removed from or added to balance.</source>
<translation type="unfinished"/>
</message>
</context>
<context>
<name>TransactionView</name>
<message>
<location filename="../transactionview.cpp" line="+52"/>
<location line="+16"/>
<source>All</source>
<translation type="unfinished"/>
</message>
<message>
<location line="-15"/>
<source>Today</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>This week</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>This month</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>Last month</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>This year</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>Range...</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+11"/>
<source>Received with</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+2"/>
<source>Sent to</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+2"/>
<source>To yourself</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>Mined</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>Other</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+7"/>
<source>Enter address or label to search</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+7"/>
<source>Min amount</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+34"/>
<source>Copy address</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>Copy label</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>Copy amount</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>Copy transaction ID</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>Edit label</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>Show transaction details</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+139"/>
<source>Export Transaction Data</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>Comma separated file (*.csv)</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+8"/>
<source>Confirmed</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>Date</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>Type</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>Label</source>
<translation>Label</translation>
</message>
<message>
<location line="+1"/>
<source>Address</source>
<translation>Cyfeiriad</translation>
</message>
<message>
<location line="+1"/>
<source>Amount</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>ID</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+4"/>
<source>Error exporting</source>
<translation>Gwall allforio</translation>
</message>
<message>
<location line="+0"/>
<source>Could not write to file %1.</source>
<translation>Ni ellir ysgrifennu i ffeil %1.</translation>
</message>
<message>
<location line="+100"/>
<source>Range:</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+8"/>
<source>to</source>
<translation type="unfinished"/>
</message>
</context>
<context>
<name>WalletModel</name>
<message>
<location filename="../walletmodel.cpp" line="+193"/>
<source>Send Coins</source>
<translation type="unfinished"/>
</message>
</context>
<context>
<name>WalletView</name>
<message>
<location filename="../walletview.cpp" line="+42"/>
<source>&Export</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>Export the data in the current tab to a file</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+193"/>
<source>Backup Wallet</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+0"/>
<source>Wallet Data (*.dat)</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+3"/>
<source>Backup Failed</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+0"/>
<source>There was an error trying to save the wallet data to the new location.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+4"/>
<source>Backup Successful</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+0"/>
<source>The wallet data was successfully saved to the new location.</source>
<translation type="unfinished"/>
</message>
</context>
<context>
<name>bitcoin-core</name>
<message>
<location filename="../bitcoinstrings.cpp" line="+94"/>
<source>NUD version</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+102"/>
<source>Usage:</source>
<translation type="unfinished"/>
</message>
<message>
<location line="-29"/>
<source>Send command to -server or nudd</source>
<translation type="unfinished"/>
</message>
<message>
<location line="-23"/>
<source>List commands</source>
<translation type="unfinished"/>
</message>
<message>
<location line="-12"/>
<source>Get help for a command</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+24"/>
<source>Options:</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+24"/>
<source>Specify configuration file (default: nud.conf)</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+3"/>
<source>Specify pid file (default: nudd.pid)</source>
<translation type="unfinished"/>
</message>
<message>
<location line="-1"/>
<source>Specify data directory</source>
<translation type="unfinished"/>
</message>
<message>
<location line="-9"/>
<source>Set database cache size in megabytes (default: 25)</source>
<translation type="unfinished"/>
</message>
<message>
<location line="-28"/>
<source>Listen for connections on <port> (default: 7333 or testnet: 17333)</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+5"/>
<source>Maintain at most <n> connections to peers (default: 125)</source>
<translation type="unfinished"/>
</message>
<message>
<location line="-48"/>
<source>Connect to a node to retrieve peer addresses, and disconnect</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+82"/>
<source>Specify your own public address</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+3"/>
<source>Threshold for disconnecting misbehaving peers (default: 100)</source>
<translation type="unfinished"/>
</message>
<message>
<location line="-134"/>
<source>Number of seconds to keep misbehaving peers from reconnecting (default: 86400)</source>
<translation type="unfinished"/>
</message>
<message>
<location line="-29"/>
<source>An error occurred while setting up the RPC port %u for listening on IPv4: %s</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+27"/>
<source>Listen for JSON-RPC connections on <port> (default: 9332 or testnet: 19332)</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+37"/>
<source>Accept command line and JSON-RPC commands</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+76"/>
<source>Run in the background as a daemon and accept commands</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+37"/>
<source>Use the test network</source>
<translation type="unfinished"/>
</message>
<message>
<location line="-112"/>
<source>Accept connections from outside (default: 1 if no -proxy or -connect)</source>
<translation type="unfinished"/>
</message>
<message>
<location line="-80"/>
<source>%s, you must set a rpcpassword in the configuration file:
%s
It is recommended you use the following random password:
rpcuser=nudrpc
rpcpassword=%s
(you do not need to remember this password)
The username and password MUST NOT be the same.
If the file does not exist, create it with owner-readable-only file permissions.
It is also recommended to set alertnotify so you are notified of problems;
for example: alertnotify=echo %%s | mail -s "NUD Alert" admin@foo.com
</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+17"/>
<source>An error occurred while setting up the RPC port %u for listening on IPv6, falling back to IPv4: %s</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+3"/>
<source>Bind to given address and always listen on it. Use [host]:port notation for IPv6</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+3"/>
<source>Cannot obtain a lock on data directory %s. NUD is probably already running.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+3"/>
<source>Error: The transaction was rejected! This might happen if some of the coins in your wallet were already spent, such as if you used a copy of wallet.dat and coins were spent in the copy but not marked as spent here.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+4"/>
<source>Error: This transaction requires a transaction fee of at least %s because of its amount, complexity, or use of recently received funds!</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+3"/>
<source>Execute command when a relevant alert is received (%s in cmd is replaced by message)</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+3"/>
<source>Execute command when a wallet transaction changes (%s in cmd is replaced by TxID)</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+11"/>
<source>Set maximum size of high-priority/low-fee transactions in bytes (default: 27000)</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+6"/>
<source>This is a pre-release test build - use at your own risk - do not use for mining or merchant applications</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+5"/>
<source>Warning: -paytxfee is set very high! This is the transaction fee you will pay if you send a transaction.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+3"/>
<source>Warning: Displayed transactions may not be correct! You may need to upgrade, or other nodes may need to upgrade.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+3"/>
<source>Warning: Please check that your computer's date and time are correct! If your clock is wrong NUD will not work properly.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+3"/>
<source>Warning: error reading wallet.dat! All keys read correctly, but transaction data or address book entries might be missing or incorrect.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+3"/>
<source>Warning: wallet.dat corrupt, data salvaged! Original wallet.dat saved as wallet.{timestamp}.bak in %s; if your balance or transactions are incorrect you should restore from a backup.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+14"/>
<source>Attempt to recover private keys from a corrupt wallet.dat</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+2"/>
<source>Block creation options:</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+5"/>
<source>Connect only to the specified node(s)</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+3"/>
<source>Corrupted block database detected</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>Discover own IP address (default: 1 when listening and no -externalip)</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>Do you want to rebuild the block database now?</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+2"/>
<source>Error initializing block database</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>Error initializing wallet database environment %s!</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>Error loading block database</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+4"/>
<source>Error opening block database</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+2"/>
<source>Error: Disk space is low!</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>Error: Wallet locked, unable to create transaction!</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>Error: system error: </source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>Failed to listen on any port. Use -listen=0 if you want this.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>Failed to read block info</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>Failed to read block</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>Failed to sync block index</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>Failed to write block index</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>Failed to write block info</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>Failed to write block</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>Failed to write file info</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>Failed to write to coin database</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>Failed to write transaction index</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>Failed to write undo data</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+2"/>
<source>Find peers using DNS lookup (default: 1 unless -connect)</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>Generate coins (default: 0)</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+2"/>
<source>How many blocks to check at startup (default: 288, 0 = all)</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>How thorough the block verification is (0-4, default: 3)</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+19"/>
<source>Not enough file descriptors available.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+8"/>
<source>Rebuild block chain index from current blk000??.dat files</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+16"/>
<source>Set the number of threads to service RPC calls (default: 4)</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+26"/>
<source>Verifying blocks...</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>Verifying wallet...</source>
<translation type="unfinished"/>
</message>
<message>
<location line="-69"/>
<source>Imports blocks from external blk000??.dat file</source>
<translation type="unfinished"/>
</message>
<message>
<location line="-76"/>
<source>Set the number of script verification threads (up to 16, 0 = auto, <0 = leave that many cores free, default: 0)</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+77"/>
<source>Information</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+3"/>
<source>Invalid -tor address: '%s'</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>Invalid amount for -minrelaytxfee=<amount>: '%s'</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>Invalid amount for -mintxfee=<amount>: '%s'</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+8"/>
<source>Maintain a full transaction index (default: 0)</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+2"/>
<source>Maximum per-connection receive buffer, <n>*1000 bytes (default: 5000)</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>Maximum per-connection send buffer, <n>*1000 bytes (default: 1000)</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+2"/>
<source>Only accept block chain matching built-in checkpoints (default: 1)</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>Only connect to nodes in network <net> (IPv4, IPv6 or Tor)</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+2"/>
<source>Output extra debugging information. Implies all other -debug* options</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>Output extra network debugging information</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+2"/>
<source>Prepend debug output with timestamp</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+5"/>
<source>SSL options: (see the NUD Wiki for SSL setup instructions)</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>Select the version of socks proxy to use (4-5, default: 5)</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+3"/>
<source>Send trace/debug info to console instead of debug.log file</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>Send trace/debug info to debugger</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+5"/>
<source>Set maximum block size in bytes (default: 250000)</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>Set minimum block size in bytes (default: 0)</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+2"/>
<source>Shrink debug.log file on client startup (default: 1 when no -debug)</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>Signing transaction failed</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+2"/>
<source>Specify connection timeout in milliseconds (default: 5000)</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+4"/>
<source>System error: </source>
<translation type="unfinished"/>
</message>
<message>
<location line="+4"/>
<source>Transaction amount too small</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>Transaction amounts must be positive</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>Transaction too large</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+7"/>
<source>Use UPnP to map the listening port (default: 0)</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>Use UPnP to map the listening port (default: 1 when listening)</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>Use proxy to reach tor hidden services (default: same as -proxy)</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+2"/>
<source>Username for JSON-RPC connections</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+4"/>
<source>Warning</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>Warning: This version is obsolete, upgrade required!</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>You need to rebuild the databases using -reindex to change -txindex</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>wallet.dat corrupt, salvage failed</source>
<translation type="unfinished"/>
</message>
<message>
<location line="-50"/>
<source>Password for JSON-RPC connections</source>
<translation type="unfinished"/>
</message>
<message>
<location line="-67"/>
<source>Allow JSON-RPC connections from specified IP address</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+76"/>
<source>Send commands to node running on <ip> (default: 127.0.0.1)</source>
<translation type="unfinished"/>
</message>
<message>
<location line="-120"/>
<source>Execute command when the best block changes (%s in cmd is replaced by block hash)</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+147"/>
<source>Upgrade wallet to latest format</source>
<translation type="unfinished"/>
</message>
<message>
<location line="-21"/>
<source>Set key pool size to <n> (default: 100)</source>
<translation type="unfinished"/>
</message>
<message>
<location line="-12"/>
<source>Rescan the block chain for missing wallet transactions</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+35"/>
<source>Use OpenSSL (https) for JSON-RPC connections</source>
<translation type="unfinished"/>
</message>
<message>
<location line="-26"/>
<source>Server certificate file (default: server.cert)</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>Server private key (default: server.pem)</source>
<translation type="unfinished"/>
</message>
<message>
<location line="-151"/>
<source>Acceptable ciphers (default: TLSv1+HIGH:!SSLv2:!aNULL:!eNULL:!AH:!3DES:@STRENGTH)</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+165"/>
<source>This help message</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+6"/>
<source>Unable to bind to %s on this computer (bind returned error %d, %s)</source>
<translation type="unfinished"/>
</message>
<message>
<location line="-91"/>
<source>Connect through socks proxy</source>
<translation type="unfinished"/>
</message>
<message>
<location line="-10"/>
<source>Allow DNS lookups for -addnode, -seednode and -connect</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+55"/>
<source>Loading addresses...</source>
<translation type="unfinished"/>
</message>
<message>
<location line="-35"/>
<source>Error loading wallet.dat: Wallet corrupted</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>Error loading wallet.dat: Wallet requires newer version of NUD</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+93"/>
<source>Wallet needed to be rewritten: restart NUD to complete</source>
<translation type="unfinished"/>
</message>
<message>
<location line="-95"/>
<source>Error loading wallet.dat</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+28"/>
<source>Invalid -proxy address: '%s'</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+56"/>
<source>Unknown network specified in -onlynet: '%s'</source>
<translation type="unfinished"/>
</message>
<message>
<location line="-1"/>
<source>Unknown -socks proxy version requested: %i</source>
<translation type="unfinished"/>
</message>
<message>
<location line="-96"/>
<source>Cannot resolve -bind address: '%s'</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>Cannot resolve -externalip address: '%s'</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+44"/>
<source>Invalid amount for -paytxfee=<amount>: '%s'</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>Invalid amount</source>
<translation type="unfinished"/>
</message>
<message>
<location line="-6"/>
<source>Insufficient funds</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+10"/>
<source>Loading block index...</source>
<translation type="unfinished"/>
</message>
<message>
<location line="-57"/>
<source>Add a node to connect to and attempt to keep the connection open</source>
<translation type="unfinished"/>
</message>
<message>
<location line="-25"/>
<source>Unable to bind to %s on this computer. NUD is probably already running.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+64"/>
<source>Fee per KB to add to transactions you send</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+19"/>
<source>Loading wallet...</source>
<translation type="unfinished"/>
</message>
<message>
<location line="-52"/>
<source>Cannot downgrade wallet</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+3"/>
<source>Cannot write default address</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+64"/>
<source>Rescanning...</source>
<translation type="unfinished"/>
</message>
<message>
<location line="-57"/>
<source>Done loading</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+82"/>
<source>To use the %s option</source>
<translation type="unfinished"/>
</message>
<message>
<location line="-74"/>
<source>Error</source>
<translation type="unfinished"/>
</message>
<message>
<location line="-31"/>
<source>You must set rpcpassword=<password> in the configuration file:
%s
If the file does not exist, create it with owner-readable-only file permissions.</source>
<translation type="unfinished"/>
</message>
</context>
</TS>
|
{
"content_hash": "70c880c578a49ac8d83b13779d461dcc",
"timestamp": "",
"source": "github",
"line_count": 2917,
"max_line_length": 395,
"avg_line_length": 33.997600274254374,
"alnum_prop": 0.5921287473152433,
"repo_name": "nudnud/nud-unofficial",
"id": "604e88b7d7d69b3a54e0113423b4f73a7caa6833",
"size": "99173",
"binary": false,
"copies": "2",
"ref": "refs/heads/master",
"path": "src/qt/locale/bitcoin_cy.ts",
"mode": "33188",
"license": "mit",
"language": [
{
"name": "C",
"bytes": "94319"
},
{
"name": "C++",
"bytes": "2725535"
},
{
"name": "CSS",
"bytes": "1127"
},
{
"name": "Objective-C++",
"bytes": "5864"
},
{
"name": "Python",
"bytes": "69709"
},
{
"name": "Shell",
"bytes": "13173"
},
{
"name": "TypeScript",
"bytes": "5215192"
}
],
"symlink_target": ""
}
|
"""add_embedded_reports_table
Revision ID: ce386162d9f4
Revises: 7d4af180fcf6
Create Date: 2020-04-05 20:42:37.613661
"""
# revision identifiers, used by Alembic.
revision = 'ce386162d9f4'
down_revision = '7d4af180fcf6'
branch_labels = None
depends_on = None
from alembic import op
import sqlalchemy as sa
def upgrade():
# ### commands auto generated by Alembic - please adjust! ###
op.create_table('embedded_reports',
sa.Column('id', sa.Integer(), nullable=False),
sa.Column('report_name_english', sa.String(), nullable=False),
sa.Column('report_name_hebrew', sa.String(), nullable=True),
sa.Column('url', sa.String(), nullable=True),
sa.PrimaryKeyConstraint('id', 'report_name_english')
)
# ### end Alembic commands ###
def downgrade():
# ### commands auto generated by Alembic - please adjust! ###
op.drop_table('embedded_reports')
# ### end Alembic commands ###
|
{
"content_hash": "87daa720f0b63740f1b979e2cbb0710d",
"timestamp": "",
"source": "github",
"line_count": 34,
"max_line_length": 66,
"avg_line_length": 27.11764705882353,
"alnum_prop": 0.6811279826464208,
"repo_name": "hasadna/anyway",
"id": "65663abd7e4c0029e83b013cecdde7596d31c6dc",
"size": "922",
"binary": false,
"copies": "2",
"ref": "refs/heads/dev",
"path": "alembic/versions/ce386162d9f4_add_embedded_reports_table.py",
"mode": "33188",
"license": "mit",
"language": [
{
"name": "CSS",
"bytes": "34833"
},
{
"name": "Dockerfile",
"bytes": "2219"
},
{
"name": "HTML",
"bytes": "891295"
},
{
"name": "JavaScript",
"bytes": "392412"
},
{
"name": "Jupyter Notebook",
"bytes": "79628"
},
{
"name": "Mako",
"bytes": "494"
},
{
"name": "PLpgSQL",
"bytes": "1980"
},
{
"name": "Procfile",
"bytes": "87"
},
{
"name": "Python",
"bytes": "1316356"
},
{
"name": "Shell",
"bytes": "5614"
}
],
"symlink_target": ""
}
|
from django.db import models
from django.utils import timezone
from django.contrib.contenttypes.models import ContentType
from django.contrib.contenttypes.generic import GenericForeignKey
class GeoLocation(models.Model):
latitude = models.FloatField()
longitude = models.FloatField()
elevation = models.FloatField(null=True, blank=True)
class Metadata(models.Model):
'''Metadata assoicated with a site, a device, or a sensor'''
content_type = models.ForeignKey(ContentType)
object_id = models.PositiveIntegerField()
content_object = GenericForeignKey('content_type', 'object_id')
key = models.CharField(max_length=255)
value = models.TextField(blank=True)
timestamp = models.DateTimeField(default=timezone.now, blank=True)
class Site(models.Model):
'''An installation of Chain API, usually on the scale of several or many
buildings. Sites might be hosted on a remote server, in which case the URL
field will point to that resource on that server. If the site is hosted
locally the URL can be blank'''
name = models.CharField(max_length=255)
url = models.CharField(max_length=255, default='', blank=True)
geo_location = models.OneToOneField(GeoLocation, null=True, blank=True)
raw_zmq_stream = models.CharField(max_length=255, default='', blank=True)
def __repr__(self):
return 'Site(name=%r)' % (self.name)
def __str__(self):
return self.name
class Device(models.Model):
'''A set of co-located sensors, often sharing a PCB'''
name = models.CharField(max_length=255)
site = models.ForeignKey(Site, related_name='devices')
description = models.TextField(blank=True)
building = models.CharField(max_length=255, blank=True)
floor = models.CharField(max_length=10, blank=True)
room = models.CharField(max_length=255, blank=True)
geo_location = models.OneToOneField(GeoLocation, null=True, blank=True)
active = models.BooleanField(default=True)
class Meta:
unique_together = ['site', 'name', 'building', 'floor', 'room']
ordering = ["name"]
def __repr__(self):
return ('Device(site=%r, name=%r, description=%r, building=%r, ' +
'floor=%r, room=%r)') % (
self.site, self.name, self.description, self.building,
self.floor, self.room)
def __str__(self):
return self.name
class Unit(models.Model):
'''A unit used on a data point, such as "m", or "kWh"'''
name = models.CharField(max_length=30, unique=True)
def __repr__(self):
return 'Unit(name=%r)' % self.name
def __str__(self):
return self.name
class Metric(models.Model):
'''A metric that might be measured, such as "temperature" or "humidity".
This is used to tie together a set of ScalarData points that are all
measuring the same thing.'''
name = models.CharField(max_length=255, unique=True)
def __repr__(self):
return 'Metric(name=%r)' % self.name
def __str__(self):
return self.name
class ScalarSensor(models.Model):
'''An individual sensor. There may be multiple sensors on a single device.
The metadata field is used to store information that might be necessary to
tie the Sensor data to the physical Sensor in the real world, such as a MAC
address, serial number, etc.'''
device = models.ForeignKey(Device, related_name='sensors')
metric = models.ForeignKey(Metric, related_name='sensors')
unit = models.ForeignKey(Unit, related_name='sensors')
metadata = models.CharField(max_length=255, blank=True)
geo_location = models.OneToOneField(GeoLocation, null=True, blank=True)
active = models.BooleanField(default=True)
class Meta:
unique_together = ['device', 'metric']
def __repr__(self):
return 'Sensor(device=%r, metric=%r, unit=%r)' % (
self.device, self.metric, self.unit)
def __str__(self):
return self.metric.name
class Person(models.Model):
'''A Person involved with the site. Some sensors might detect presence of a
person, so they can reference this model with person-specific
information'''
first_name = models.CharField(max_length=255)
last_name = models.CharField(max_length=255)
picture_url = models.CharField(max_length=255, blank=True)
twitter_handle = models.CharField(max_length=255, blank=True)
rfid = models.CharField(max_length=255, blank=True)
site = models.ForeignKey(Site, related_name='people')
geo_location = models.OneToOneField(GeoLocation, null=True, blank=True)
class Meta:
verbose_name_plural = "people"
def __repr__(self):
return ('Person(first_name=%s, last_name=%s, picture_url=%s, ' +
'twitter_handle=%s, rfid=%s)') % (
self.first_name, self.last_name, self.picture_url,
self.twitter_handle, self.rfid)
def __str__(self):
return " ".join([self.first_name, self.last_name])
class PresenceSensor(models.Model):
'''An individual sensor. There may be multiple sensors on a single device.
The metadata field is used to store information that might be necessary to
tie the Sensor data to the physical Sensor in the real world, such as a MAC
address, serial number, etc.'''
device = models.ForeignKey(Device, related_name='presence_sensors')
metric = models.ForeignKey(Metric, related_name='presence_sensors')
# unit = models.ForeignKey(Unit, related_name='sensors')
metadata = models.CharField(max_length=255, blank=True)
geo_location = models.OneToOneField(GeoLocation, null=True, blank=True)
class Meta:
unique_together = ['device', 'metric']
def __repr__(self):
return 'PresenceSensor(device=%r, id=%r)' % (
self.device, self.id)
def __str__(self):
return str(self.metric)
# self.metric.name
class PresenceData(models.Model):
'''Sensor data indicating that a given Person was detected by the sensor at
the given time, for instance using RFID or face recognition. Note that this
is also used to indicate that a person was NOT seen by a given sensor by
setting present=False. Typically a Presence sensor should indicate once
when a person is first detected, then again when they are first absent.'''
sensor = models.ForeignKey(PresenceSensor, related_name='presence_data')
timestamp = models.DateTimeField(default=timezone.now, blank=True)
person = models.ForeignKey(Person, related_name='presense_data')
present = models.BooleanField(default=None)
class Meta:
verbose_name_plural = "presence data"
def __repr__(self):
return ('PresenceData(timestamp=%r, sensor=%r, ' +
'person=%r, present=%r)') % (
self.timestamp, self.sensor, self.person, self.present)
def __str__(self):
return '%s %spresent' % (self.person,
'not ' if not self.present else '')
class StatusUpdate(models.Model):
'''Status updates for people, such as tweets, facebook status updates, etc.
This is probably outside of the scope of a general system for tracking
sensor data, but is included here for simplicity with the actual
deployments of DoppelLab. If we deploy this as a generic tool we may want
to strip this out.'''
timestamp = models.DateTimeField(default=timezone.now, blank=True)
person = models.ForeignKey(Person, related_name='status_updates')
status = models.TextField()
|
{
"content_hash": "ca60a32a21ecc7e95a6bd41e91de9551",
"timestamp": "",
"source": "github",
"line_count": 192,
"max_line_length": 79,
"avg_line_length": 39.395833333333336,
"alnum_prop": 0.6718667371760974,
"repo_name": "ResEnv/chain-api",
"id": "fd81c79b58b290dc57e3e1ed833794d57c0f931b",
"size": "7564",
"binary": false,
"copies": "1",
"ref": "refs/heads/master",
"path": "chain/core/models.py",
"mode": "33188",
"license": "mit",
"language": [
{
"name": "Dockerfile",
"bytes": "1470"
},
{
"name": "HTML",
"bytes": "3515"
},
{
"name": "JavaScript",
"bytes": "161334"
},
{
"name": "Makefile",
"bytes": "65"
},
{
"name": "Python",
"bytes": "297007"
},
{
"name": "Shell",
"bytes": "7563"
}
],
"symlink_target": ""
}
|
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<!--NewPage-->
<HTML>
<HEAD>
<TITLE>
XWPFSDTContent (POI API Documentation)
</TITLE>
<LINK REL ="stylesheet" TYPE="text/css" HREF="../../../../../stylesheet.css" TITLE="Style">
<SCRIPT type="text/javascript">
function windowTitle()
{
if (location.href.indexOf('is-external=true') == -1) {
parent.document.title="XWPFSDTContent (POI API Documentation)";
}
}
</SCRIPT>
<NOSCRIPT>
</NOSCRIPT>
</HEAD>
<BODY BGCOLOR="white" onload="windowTitle();">
<HR>
<!-- ========= START OF TOP NAVBAR ======= -->
<A NAME="navbar_top"><!-- --></A>
<A HREF="#skip-navbar_top" title="Skip navigation links"></A>
<TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY="">
<TR>
<TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
<A NAME="navbar_top_firstrow"><!-- --></A>
<TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY="">
<TR ALIGN="center" VALIGN="top">
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A> </TD>
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A> </TD>
<TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> <FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT> </TD>
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="class-use/XWPFSDTContent.html"><FONT CLASS="NavBarFont1"><B>Use</B></FONT></A> </TD>
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A> </TD>
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A> </TD>
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A> </TD>
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A> </TD>
</TR>
</TABLE>
</TD>
<TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
</EM>
</TD>
</TR>
<TR>
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
<A HREF="../../../../../org/apache/poi/xwpf/usermodel/XWPFSDTCell.html" title="class in org.apache.poi.xwpf.usermodel"><B>PREV CLASS</B></A>
<A HREF="../../../../../org/apache/poi/xwpf/usermodel/XWPFSDTContentCell.html" title="class in org.apache.poi.xwpf.usermodel"><B>NEXT CLASS</B></A></FONT></TD>
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
<A HREF="../../../../../index.html?org/apache/poi/xwpf/usermodel/XWPFSDTContent.html" target="_top"><B>FRAMES</B></A>
<A HREF="XWPFSDTContent.html" target="_top"><B>NO FRAMES</B></A>
<SCRIPT type="text/javascript">
<!--
if(window==top) {
document.writeln('<A HREF="../../../../../allclasses-noframe.html"><B>All Classes</B></A>');
}
//-->
</SCRIPT>
<NOSCRIPT>
<A HREF="../../../../../allclasses-noframe.html"><B>All Classes</B></A>
</NOSCRIPT>
</FONT></TD>
</TR>
<TR>
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
SUMMARY: NESTED | FIELD | <A HREF="#constructor_summary">CONSTR</A> | <A HREF="#method_summary">METHOD</A></FONT></TD>
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
DETAIL: FIELD | <A HREF="#constructor_detail">CONSTR</A> | <A HREF="#method_detail">METHOD</A></FONT></TD>
</TR>
</TABLE>
<A NAME="skip-navbar_top"></A>
<!-- ========= END OF TOP NAVBAR ========= -->
<HR>
<!-- ======== START OF CLASS DATA ======== -->
<H2>
<FONT SIZE="-1">
org.apache.poi.xwpf.usermodel</FONT>
<BR>
Class XWPFSDTContent</H2>
<PRE>
java.lang.Object
<IMG SRC="../../../../../resources/inherit.gif" ALT="extended by "><B>org.apache.poi.xwpf.usermodel.XWPFSDTContent</B>
</PRE>
<DL>
<DT><B>All Implemented Interfaces:</B> <DD><A HREF="../../../../../org/apache/poi/xwpf/usermodel/ISDTContent.html" title="interface in org.apache.poi.xwpf.usermodel">ISDTContent</A></DD>
</DL>
<HR>
<DL>
<DT><PRE>public class <B>XWPFSDTContent</B><DT>extends java.lang.Object<DT>implements <A HREF="../../../../../org/apache/poi/xwpf/usermodel/ISDTContent.html" title="interface in org.apache.poi.xwpf.usermodel">ISDTContent</A></DL>
</PRE>
<P>
Experimental class to offer rudimentary read-only processing of
of the contentblock of an SDT/ContentControl.
<p/>
<p/>
<p/>
WARNING - APIs expected to change rapidly
<P>
<P>
<HR>
<P>
<!-- ======== CONSTRUCTOR SUMMARY ======== -->
<A NAME="constructor_summary"><!-- --></A>
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
<TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">
<B>Constructor Summary</B></FONT></TH>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD><CODE><B><A HREF="../../../../../org/apache/poi/xwpf/usermodel/XWPFSDTContent.html#XWPFSDTContent(org.openxmlformats.schemas.wordprocessingml.x2006.main.CTSdtContentBlock, org.apache.poi.xwpf.usermodel.IBody, org.apache.poi.xwpf.usermodel.IRunBody)">XWPFSDTContent</A></B>(org.openxmlformats.schemas.wordprocessingml.x2006.main.CTSdtContentBlock block,
<A HREF="../../../../../org/apache/poi/xwpf/usermodel/IBody.html" title="interface in org.apache.poi.xwpf.usermodel">IBody</A> part,
<A HREF="../../../../../org/apache/poi/xwpf/usermodel/IRunBody.html" title="interface in org.apache.poi.xwpf.usermodel">IRunBody</A> parent)</CODE>
<BR>
</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD><CODE><B><A HREF="../../../../../org/apache/poi/xwpf/usermodel/XWPFSDTContent.html#XWPFSDTContent(org.openxmlformats.schemas.wordprocessingml.x2006.main.CTSdtContentRun, org.apache.poi.xwpf.usermodel.IBody, org.apache.poi.xwpf.usermodel.IRunBody)">XWPFSDTContent</A></B>(org.openxmlformats.schemas.wordprocessingml.x2006.main.CTSdtContentRun sdtRun,
<A HREF="../../../../../org/apache/poi/xwpf/usermodel/IBody.html" title="interface in org.apache.poi.xwpf.usermodel">IBody</A> part,
<A HREF="../../../../../org/apache/poi/xwpf/usermodel/IRunBody.html" title="interface in org.apache.poi.xwpf.usermodel">IRunBody</A> parent)</CODE>
<BR>
</TD>
</TR>
</TABLE>
<!-- ========== METHOD SUMMARY =========== -->
<A NAME="method_summary"><!-- --></A>
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
<TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">
<B>Method Summary</B></FONT></TH>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE> java.lang.String</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../../org/apache/poi/xwpf/usermodel/XWPFSDTContent.html#getText()">getText</A></B>()</CODE>
<BR>
</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE> java.lang.String</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../../org/apache/poi/xwpf/usermodel/XWPFSDTContent.html#toString()">toString</A></B>()</CODE>
<BR>
</TD>
</TR>
</TABLE>
<A NAME="methods_inherited_from_class_java.lang.Object"><!-- --></A>
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
<TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">
<TH ALIGN="left"><B>Methods inherited from class java.lang.Object</B></TH>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD><CODE>clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait</CODE></TD>
</TR>
</TABLE>
<P>
<!-- ========= CONSTRUCTOR DETAIL ======== -->
<A NAME="constructor_detail"><!-- --></A>
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
<TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2">
<B>Constructor Detail</B></FONT></TH>
</TR>
</TABLE>
<A NAME="XWPFSDTContent(org.openxmlformats.schemas.wordprocessingml.x2006.main.CTSdtContentRun, org.apache.poi.xwpf.usermodel.IBody, org.apache.poi.xwpf.usermodel.IRunBody)"><!-- --></A><H3>
XWPFSDTContent</H3>
<PRE>
public <B>XWPFSDTContent</B>(org.openxmlformats.schemas.wordprocessingml.x2006.main.CTSdtContentRun sdtRun,
<A HREF="../../../../../org/apache/poi/xwpf/usermodel/IBody.html" title="interface in org.apache.poi.xwpf.usermodel">IBody</A> part,
<A HREF="../../../../../org/apache/poi/xwpf/usermodel/IRunBody.html" title="interface in org.apache.poi.xwpf.usermodel">IRunBody</A> parent)</PRE>
<DL>
</DL>
<HR>
<A NAME="XWPFSDTContent(org.openxmlformats.schemas.wordprocessingml.x2006.main.CTSdtContentBlock, org.apache.poi.xwpf.usermodel.IBody, org.apache.poi.xwpf.usermodel.IRunBody)"><!-- --></A><H3>
XWPFSDTContent</H3>
<PRE>
public <B>XWPFSDTContent</B>(org.openxmlformats.schemas.wordprocessingml.x2006.main.CTSdtContentBlock block,
<A HREF="../../../../../org/apache/poi/xwpf/usermodel/IBody.html" title="interface in org.apache.poi.xwpf.usermodel">IBody</A> part,
<A HREF="../../../../../org/apache/poi/xwpf/usermodel/IRunBody.html" title="interface in org.apache.poi.xwpf.usermodel">IRunBody</A> parent)</PRE>
<DL>
</DL>
<!-- ============ METHOD DETAIL ========== -->
<A NAME="method_detail"><!-- --></A>
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
<TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2">
<B>Method Detail</B></FONT></TH>
</TR>
</TABLE>
<A NAME="getText()"><!-- --></A><H3>
getText</H3>
<PRE>
public java.lang.String <B>getText</B>()</PRE>
<DL>
<DD><DL>
<DT><B>Specified by:</B><DD><CODE><A HREF="../../../../../org/apache/poi/xwpf/usermodel/ISDTContent.html#getText()">getText</A></CODE> in interface <CODE><A HREF="../../../../../org/apache/poi/xwpf/usermodel/ISDTContent.html" title="interface in org.apache.poi.xwpf.usermodel">ISDTContent</A></CODE></DL>
</DD>
<DD><DL>
</DL>
</DD>
</DL>
<HR>
<A NAME="toString()"><!-- --></A><H3>
toString</H3>
<PRE>
public java.lang.String <B>toString</B>()</PRE>
<DL>
<DD><DL>
<DT><B>Specified by:</B><DD><CODE><A HREF="../../../../../org/apache/poi/xwpf/usermodel/ISDTContent.html#toString()">toString</A></CODE> in interface <CODE><A HREF="../../../../../org/apache/poi/xwpf/usermodel/ISDTContent.html" title="interface in org.apache.poi.xwpf.usermodel">ISDTContent</A></CODE><DT><B>Overrides:</B><DD><CODE>toString</CODE> in class <CODE>java.lang.Object</CODE></DL>
</DD>
<DD><DL>
</DL>
</DD>
</DL>
<!-- ========= END OF CLASS DATA ========= -->
<HR>
<!-- ======= START OF BOTTOM NAVBAR ====== -->
<A NAME="navbar_bottom"><!-- --></A>
<A HREF="#skip-navbar_bottom" title="Skip navigation links"></A>
<TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY="">
<TR>
<TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
<A NAME="navbar_bottom_firstrow"><!-- --></A>
<TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY="">
<TR ALIGN="center" VALIGN="top">
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A> </TD>
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A> </TD>
<TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> <FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT> </TD>
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="class-use/XWPFSDTContent.html"><FONT CLASS="NavBarFont1"><B>Use</B></FONT></A> </TD>
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A> </TD>
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A> </TD>
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A> </TD>
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A> </TD>
</TR>
</TABLE>
</TD>
<TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
</EM>
</TD>
</TR>
<TR>
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
<A HREF="../../../../../org/apache/poi/xwpf/usermodel/XWPFSDTCell.html" title="class in org.apache.poi.xwpf.usermodel"><B>PREV CLASS</B></A>
<A HREF="../../../../../org/apache/poi/xwpf/usermodel/XWPFSDTContentCell.html" title="class in org.apache.poi.xwpf.usermodel"><B>NEXT CLASS</B></A></FONT></TD>
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
<A HREF="../../../../../index.html?org/apache/poi/xwpf/usermodel/XWPFSDTContent.html" target="_top"><B>FRAMES</B></A>
<A HREF="XWPFSDTContent.html" target="_top"><B>NO FRAMES</B></A>
<SCRIPT type="text/javascript">
<!--
if(window==top) {
document.writeln('<A HREF="../../../../../allclasses-noframe.html"><B>All Classes</B></A>');
}
//-->
</SCRIPT>
<NOSCRIPT>
<A HREF="../../../../../allclasses-noframe.html"><B>All Classes</B></A>
</NOSCRIPT>
</FONT></TD>
</TR>
<TR>
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
SUMMARY: NESTED | FIELD | <A HREF="#constructor_summary">CONSTR</A> | <A HREF="#method_summary">METHOD</A></FONT></TD>
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
DETAIL: FIELD | <A HREF="#constructor_detail">CONSTR</A> | <A HREF="#method_detail">METHOD</A></FONT></TD>
</TR>
</TABLE>
<A NAME="skip-navbar_bottom"></A>
<!-- ======== END OF BOTTOM NAVBAR ======= -->
<HR>
<i>Copyright 2015 The Apache Software Foundation or
its licensors, as applicable.</i>
</BODY>
</HTML>
|
{
"content_hash": "89ce437a3f854f22209a276069a9f4d2",
"timestamp": "",
"source": "github",
"line_count": 312,
"max_line_length": 391,
"avg_line_length": 46.87820512820513,
"alnum_prop": 0.6256666210857377,
"repo_name": "xiwan/xlsEditor",
"id": "65cdf67cd03e89b7f80828b6b366572c7952118a",
"size": "14626",
"binary": false,
"copies": "2",
"ref": "refs/heads/master",
"path": "lib/poi-3.13/docs/apidocs/org/apache/poi/xwpf/usermodel/XWPFSDTContent.html",
"mode": "33188",
"license": "mit",
"language": [
{
"name": "CSS",
"bytes": "42792"
},
{
"name": "Emacs Lisp",
"bytes": "1320"
},
{
"name": "HTML",
"bytes": "107233820"
},
{
"name": "Java",
"bytes": "2866828"
},
{
"name": "Lex",
"bytes": "9342"
}
],
"symlink_target": ""
}
|
from sqlobject.dbconnection import DBAPI
import re
from sqlobject import col
from sqlobject import sqlbuilder
from sqlobject.converters import registerConverter
from sqlobject.dberrors import *
class ErrorMessage(str):
def __new__(cls, e):
obj = str.__new__(cls, e[0])
obj.code = None
obj.module = e.__module__
obj.exception = e.__class__.__name__
return obj
class PostgresConnection(DBAPI):
supportTransactions = True
dbName = 'postgres'
schemes = [dbName, 'postgresql']
def __init__(self, dsn=None, host=None, port=None, db=None,
user=None, password=None, **kw):
drivers = kw.pop('driver', None) or 'psycopg'
for driver in drivers.split(','):
driver = driver.strip()
if not driver:
continue
try:
if driver == 'psycopg2':
import psycopg2 as psycopg
elif driver == 'psycopg1':
import psycopg
elif driver == 'psycopg':
try:
import psycopg2 as psycopg
except ImportError:
import psycopg
elif driver == 'pygresql':
import pgdb
self.module = pgdb
else:
raise ValueError('Unknown PostgreSQL driver "%s", expected psycopg2, psycopg1 or pygresql' % driver)
except ImportError:
pass
else:
break
else:
raise ImportError('Cannot find a PostgreSQL driver, tried %s' % drivers)
if driver.startswith('psycopg'):
self.module = psycopg
# Register a converter for psycopg Binary type.
registerConverter(type(psycopg.Binary('')),
PsycoBinaryConverter)
self.user = user
self.host = host
self.port = port
self.db = db
self.password = password
self.dsn_dict = dsn_dict = {}
if host:
dsn_dict["host"] = host
if port:
if driver == 'pygresql':
dsn_dict["host"] = "%s:%d" % (host, port)
else:
if psycopg.__version__.split('.')[0] == '1':
dsn_dict["port"] = str(port)
else:
dsn_dict["port"] = port
if db:
dsn_dict["database"] = db
if user:
dsn_dict["user"] = user
if password:
dsn_dict["password"] = password
sslmode = kw.pop("sslmode", None)
if sslmode:
dsn_dict["sslmode"] = sslmode
self.use_dsn = dsn is not None
if dsn is None:
if driver == 'pygresql':
dsn = ''
if host:
dsn += host
dsn += ':'
if db:
dsn += db
dsn += ':'
if user:
dsn += user
dsn += ':'
if password:
dsn += password
else:
dsn = []
if db:
dsn.append('dbname=%s' % db)
if user:
dsn.append('user=%s' % user)
if password:
dsn.append('password=%s' % password)
if host:
dsn.append('host=%s' % host)
if port:
dsn.append('port=%d' % port)
if sslmode:
dsn.append('sslmode=%s' % sslmode)
dsn = ' '.join(dsn)
self.driver = driver
self.dsn = dsn
self.unicodeCols = kw.pop('unicodeCols', False)
self.schema = kw.pop('schema', None)
self.dbEncoding = kw.pop("charset", None)
DBAPI.__init__(self, **kw)
@classmethod
def _connectionFromParams(cls, user, password, host, port, path, args):
path = path.strip('/')
if (host is None) and path.count('/'): # Non-default unix socket
path_parts = path.split('/')
host = '/' + '/'.join(path_parts[:-1])
path = path_parts[-1]
return cls(host=host, port=port, db=path, user=user, password=password, **args)
def _setAutoCommit(self, conn, auto):
# psycopg2 does not have an autocommit method.
if hasattr(conn, 'autocommit'):
try:
conn.autocommit(auto)
except TypeError:
conn.autocommit = auto
def makeConnection(self):
try:
if self.use_dsn:
conn = self.module.connect(self.dsn)
else:
conn = self.module.connect(**self.dsn_dict)
except self.module.OperationalError, e:
raise OperationalError("%s; used connection string %r" % (e, self.dsn))
# For printDebug in _executeRetry
self._connectionNumbers[id(conn)] = self._connectionCount
if self.autoCommit: self._setAutoCommit(conn, 1)
c = conn.cursor()
if self.schema:
self._executeRetry(conn, c, "SET search_path TO " + self.schema)
dbEncoding = self.dbEncoding
if dbEncoding:
self._executeRetry(conn, c, "SET client_encoding TO '%s'" % dbEncoding)
return conn
def _executeRetry(self, conn, cursor, query):
if self.debug:
self.printDebug(conn, query, 'QueryR')
try:
return cursor.execute(query)
except self.module.OperationalError, e:
raise OperationalError(ErrorMessage(e))
except self.module.IntegrityError, e:
msg = ErrorMessage(e)
if e.pgcode == '23505':
raise DuplicateEntryError(msg)
else:
raise IntegrityError(msg)
except self.module.InternalError, e:
raise InternalError(ErrorMessage(e))
except self.module.ProgrammingError, e:
raise ProgrammingError(ErrorMessage(e))
except self.module.DataError, e:
raise DataError(ErrorMessage(e))
except self.module.NotSupportedError, e:
raise NotSupportedError(ErrorMessage(e))
except self.module.DatabaseError, e:
raise DatabaseError(ErrorMessage(e))
except self.module.InterfaceError, e:
raise InterfaceError(ErrorMessage(e))
except self.module.Warning, e:
raise Warning(ErrorMessage(e))
except self.module.Error, e:
raise Error(ErrorMessage(e))
def _queryInsertID(self, conn, soInstance, id, names, values):
table = soInstance.sqlmeta.table
idName = soInstance.sqlmeta.idName
sequenceName = soInstance.sqlmeta.idSequence or \
'%s_%s_seq' % (table, idName)
c = conn.cursor()
if id is None:
self._executeRetry(conn, c, "SELECT NEXTVAL('%s')" % sequenceName)
id = c.fetchone()[0]
names = [idName] + names
values = [id] + values
q = self._insertSQL(table, names, values)
if self.debug:
self.printDebug(conn, q, 'QueryIns')
self._executeRetry(conn, c, q)
if self.debugOutput:
self.printDebug(conn, id, 'QueryIns', 'result')
return id
@classmethod
def _queryAddLimitOffset(cls, query, start, end):
if not start:
return "%s LIMIT %i" % (query, end)
if not end:
return "%s OFFSET %i" % (query, start)
return "%s LIMIT %i OFFSET %i" % (query, end-start, start)
def createColumn(self, soClass, col):
return col.postgresCreateSQL()
def createReferenceConstraint(self, soClass, col):
return col.postgresCreateReferenceConstraint()
def createIndexSQL(self, soClass, index):
return index.postgresCreateIndexSQL(soClass)
def createIDColumn(self, soClass):
key_type = {int: "SERIAL", str: "TEXT"}[soClass.sqlmeta.idType]
return '%s %s PRIMARY KEY' % (soClass.sqlmeta.idName, key_type)
def dropTable(self, tableName, cascade=False):
self.query("DROP TABLE %s %s" % (tableName,
cascade and 'CASCADE' or ''))
def joinSQLType(self, join):
return 'INT NOT NULL'
def tableExists(self, tableName):
result = self.queryOne("SELECT COUNT(relname) FROM pg_class WHERE relname = %s"
% self.sqlrepr(tableName))
return result[0]
def addColumn(self, tableName, column):
self.query('ALTER TABLE %s ADD COLUMN %s' %
(tableName,
column.postgresCreateSQL()))
def delColumn(self, sqlmeta, column):
self.query('ALTER TABLE %s DROP COLUMN %s' % (sqlmeta.table, column.dbName))
def columnsFromSchema(self, tableName, soClass):
keyQuery = """
SELECT pg_catalog.pg_get_constraintdef(oid) as condef
FROM pg_catalog.pg_constraint r
WHERE r.conrelid = %s::regclass AND r.contype = 'f'"""
colQuery = """
SELECT a.attname,
pg_catalog.format_type(a.atttypid, a.atttypmod), a.attnotnull,
(SELECT substring(d.adsrc for 128) FROM pg_catalog.pg_attrdef d
WHERE d.adrelid=a.attrelid AND d.adnum = a.attnum)
FROM pg_catalog.pg_attribute a
WHERE a.attrelid =%s::regclass
AND a.attnum > 0 AND NOT a.attisdropped
ORDER BY a.attnum"""
primaryKeyQuery = """
SELECT pg_index.indisprimary,
pg_catalog.pg_get_indexdef(pg_index.indexrelid)
FROM pg_catalog.pg_class c, pg_catalog.pg_class c2,
pg_catalog.pg_index AS pg_index
WHERE c.relname = %s
AND c.oid = pg_index.indrelid
AND pg_index.indexrelid = c2.oid
AND pg_index.indisprimary
"""
keyData = self.queryAll(keyQuery % self.sqlrepr(tableName))
keyRE = re.compile(r"\((.+)\) REFERENCES (.+)\(")
keymap = {}
for (condef,) in keyData:
match = keyRE.search(condef)
if match:
field, reftable = match.groups()
keymap[field] = reftable.capitalize()
primaryData = self.queryAll(primaryKeyQuery % self.sqlrepr(tableName))
primaryRE = re.compile(r'CREATE .*? USING .* \((.+?)\)')
primaryKey = None
for isPrimary, indexDef in primaryData:
match = primaryRE.search(indexDef)
assert match, "Unparseable contraint definition: %r" % indexDef
assert primaryKey is None, "Already found primary key (%r), then found: %r" % (primaryKey, indexDef)
primaryKey = match.group(1)
if primaryKey is None:
# VIEWs don't have PRIMARY KEYs - accept help from user
primaryKey = soClass.sqlmeta.idName
assert primaryKey, "No primary key found in table %r" % tableName
if primaryKey.startswith('"'):
assert primaryKey.endswith('"')
primaryKey = primaryKey[1:-1]
colData = self.queryAll(colQuery % self.sqlrepr(tableName))
results = []
if self.unicodeCols:
client_encoding = self.queryOne("SHOW client_encoding")[0]
for field, t, notnull, defaultstr in colData:
if field == primaryKey:
continue
if field in keymap:
colClass = col.ForeignKey
kw = {'foreignKey': soClass.sqlmeta.style.dbTableToPythonClass(keymap[field])}
name = soClass.sqlmeta.style.dbColumnToPythonAttr(field)
if name.endswith('ID'):
name = name[:-2]
kw['name'] = name
else:
colClass, kw = self.guessClass(t)
if self.unicodeCols and colClass is col.StringCol:
colClass = col.UnicodeCol
kw['dbEncoding'] = client_encoding
kw['name'] = soClass.sqlmeta.style.dbColumnToPythonAttr(field)
kw['dbName'] = field
kw['notNone'] = notnull
if defaultstr is not None:
kw['default'] = self.defaultFromSchema(colClass, defaultstr)
elif not notnull:
kw['default'] = None
results.append(colClass(**kw))
return results
def guessClass(self, t):
if t.count('point'): # poINT before INT
return col.StringCol, {}
elif t.count('int'):
return col.IntCol, {}
elif t.count('varying') or t.count('varchar'):
if '(' in t:
return col.StringCol, {'length': int(t[t.index('(')+1:-1])}
else: # varchar without length in Postgres means any length
return col.StringCol, {}
elif t.startswith('character('):
return col.StringCol, {'length': int(t[t.index('(')+1:-1]),
'varchar': False}
elif t.count('float') or t.count('real') or t.count('double'):
return col.FloatCol, {}
elif t == 'text':
return col.StringCol, {}
elif t.startswith('timestamp'):
return col.DateTimeCol, {}
elif t.startswith('datetime'):
return col.DateTimeCol, {}
elif t.startswith('date'):
return col.DateCol, {}
elif t.startswith('bool'):
return col.BoolCol, {}
elif t.startswith('bytea'):
return col.BLOBCol, {}
else:
return col.Col, {}
def defaultFromSchema(self, colClass, defaultstr):
"""
If the default can be converted to a python constant, convert it.
Otherwise return is as a sqlbuilder constant.
"""
if colClass == col.BoolCol:
if defaultstr == 'false':
return False
elif defaultstr == 'true':
return True
return getattr(sqlbuilder.const, defaultstr)
def _createOrDropDatabase(self, op="CREATE"):
# We have to connect to *some* database, so we'll connect to
# template1, which is a common open database.
# @@: This doesn't use self.use_dsn or self.dsn_dict
if self.driver == 'pygresql':
dsn = '%s:template1:%s:%s' % (
self.host or '', self.user or '', self.password or '')
else:
dsn = 'dbname=template1'
if self.user:
dsn += ' user=%s' % self.user
if self.password:
dsn += ' password=%s' % self.password
if self.host:
dsn += ' host=%s' % self.host
conn = self.module.connect(dsn)
cur = conn.cursor()
# We must close the transaction with a commit so that
# the CREATE DATABASE can work (which can't be in a transaction):
self._executeRetry(conn, cur, 'COMMIT')
self._executeRetry(conn, cur, '%s DATABASE %s' % (op, self.db))
cur.close()
conn.close()
def createEmptyDatabase(self):
self._createOrDropDatabase()
def dropDatabase(self):
self._createOrDropDatabase(op="DROP")
# Converter for psycopg Binary type.
def PsycoBinaryConverter(value, db):
assert db == 'postgres'
return str(value)
|
{
"content_hash": "6f265523aed1389f2ed546ac58eb723e",
"timestamp": "",
"source": "github",
"line_count": 405,
"max_line_length": 120,
"avg_line_length": 37.925925925925924,
"alnum_prop": 0.5376302083333333,
"repo_name": "lightcode/SeriesWatcher",
"id": "6178b1751cbf2f519765184c598e3686be629674",
"size": "15360",
"binary": false,
"copies": "4",
"ref": "refs/heads/master",
"path": "serieswatcher/sqlobject/postgres/pgconnection.py",
"mode": "33188",
"license": "mit",
"language": [
{
"name": "CSS",
"bytes": "2594"
},
{
"name": "JavaScript",
"bytes": "1771"
},
{
"name": "Python",
"bytes": "1561181"
},
{
"name": "R",
"bytes": "2748"
}
],
"symlink_target": ""
}
|
ACCEPTED
#### According to
The Catalogue of Life, 3rd January 2011
#### Published in
null
#### Original name
null
### Remarks
null
|
{
"content_hash": "c2e8f39d4c85be2c20efe1c30b7a0b51",
"timestamp": "",
"source": "github",
"line_count": 13,
"max_line_length": 39,
"avg_line_length": 10.307692307692308,
"alnum_prop": 0.6940298507462687,
"repo_name": "mdoering/backbone",
"id": "bf250c321d3d688f9689583ba8172623d96fbf7b",
"size": "201",
"binary": false,
"copies": "1",
"ref": "refs/heads/master",
"path": "life/Plantae/Magnoliophyta/Magnoliopsida/Myrtales/Onagraceae/Epilobium/Epilobium foliosum/README.md",
"mode": "33188",
"license": "apache-2.0",
"language": [],
"symlink_target": ""
}
|
/* eslint-disable import/no-unresolved, import/extensions */
import { StyleSheet, Text, View } from 'react-native';
import React, { PureComponent } from 'react';
import PropTypes from 'prop-types';
/* eslint-enable import/no-unresolved, import/extensions */
import IconToggle from '../IconToggle';
import RippleFeedback from '../RippleFeedback';
const propTypes = {
/**
* Text will be shown after Icon
*/
label: PropTypes.string.isRequired,
/**
* Value will be returned when onCheck is fired
*/
value: PropTypes.oneOfType([PropTypes.string, PropTypes.number]).isRequired,
/**
* True if it's check
*/
checked: PropTypes.bool,
/**
* Is checkbox active
*/
disabled: PropTypes.bool,
/**
* Will be shown when checked is false
*/
uncheckedIcon: PropTypes.string,
/**
* Will be shown when checked is true
*/
checkedIcon: PropTypes.string,
/**
* Event that is called when state is changed
*/
onCheck: PropTypes.func.isRequired,
};
const defaultProps = {
checked: false,
checkedIcon: 'check-box',
uncheckedIcon: 'check-box-outline-blank',
disabled: false,
style: {},
};
const contextTypes = {
uiTheme: PropTypes.object.isRequired,
};
function getStyles(props, context) {
const { checkbox, palette } = context.uiTheme;
const { disabled } = props;
const local = {};
return {
container: [
checkbox.container,
local.container,
props.style.container,
],
icon: [
checkbox.icon,
props.style.icon,
],
label: [
checkbox.label,
local.label,
props.style.label,
// disabled has the highest priority
disabled && { color: palette.disabledTextColor },
],
};
}
class Checkbox extends PureComponent {
onPress = () => {
const { checked, disabled, onCheck, value } = this.props;
if (!disabled && onCheck) {
onCheck(!checked, value);
}
}
render() {
const { checked, checkedIcon, uncheckedIcon, disabled, value } = this.props;
const styles = getStyles(this.props, this.context);
const labelColor = StyleSheet.flatten(styles.label).color;
const iconColor = StyleSheet.flatten(styles.icon).color;
const content = (
<View style={styles.container} pointerEvents="box-only">
<IconToggle
key={`${value}-${checked}`}
name={checked ? checkedIcon : uncheckedIcon}
disabled={disabled}
color={checked ? iconColor : labelColor}
onPress={this.onPress}
/>
<Text style={styles.label}>
{this.props.label}
</Text>
</View>
);
if (disabled) {
return content;
}
return (
<RippleFeedback onPress={this.onPress}>
{content}
</RippleFeedback>
);
}
}
Checkbox.propTypes = propTypes;
Checkbox.defaultProps = defaultProps;
Checkbox.contextTypes = contextTypes;
export default Checkbox;
|
{
"content_hash": "2f6ccd24feb100bfccd6d5ed4ef2a64a",
"timestamp": "",
"source": "github",
"line_count": 123,
"max_line_length": 84,
"avg_line_length": 26.48780487804878,
"alnum_prop": 0.5678330263965623,
"repo_name": "kenma9123/react-native-material-ui",
"id": "100a8cb336c7b0fc3151bcd42d785961e3c8cc04",
"size": "3258",
"binary": false,
"copies": "1",
"ref": "refs/heads/master",
"path": "src/Checkbox/Checkbox.react.js",
"mode": "33188",
"license": "mit",
"language": [
{
"name": "JavaScript",
"bytes": "170026"
}
],
"symlink_target": ""
}
|
package solution
import "strings"
/*
func wordBreak(s string, wordDict []string) []string {
sentencesAt := [][]string{{""}}
for i := 1; i <= len(s); i++ {
sentences := []string{}
for _, word := range wordDict {
n := len(word)
if i < n || s[i-n:i] != word {
continue
}
for _, sentence := range sentencesAt[i-n] {
sentences = append(sentences, concat(sentence, word))
}
}
sentencesAt = append(sentencesAt, sentences)
}
return sentencesAt[len(s)]
}
func concat(sentence, word string) string {
if sentence == "" {
return word
}
return sentence + " " + word
}
*/
func wordBreak(s string, wordDict []string) []string {
graph := buildGraph(s, wordDict)
// check reachability
reachable := make([]bool, len(s)+1)
reachable[0] = true
pos := []int{0}
for len(pos) > 0 {
top := len(pos) - 1
p := pos[top]
pos = pos[:top]
for _, j := range graph[p] {
if reachable[j] {
continue
}
reachable[j] = true
pos = append(pos, j)
}
}
if !reachable[len(s)] {
return []string{}
}
// construct the list of all possible sentences
type state struct {
i int // index into s
words []string // accumulated words
}
stack := []state{{}}
sentences := []string{}
for len(stack) > 0 {
top := len(stack) - 1
c := stack[top]
stack = stack[:top]
if c.i == len(s) {
sentences = append(sentences, strings.Join(c.words, " "))
continue
}
for _, j := range graph[c.i] {
next := state{i: j}
next.words = append(next.words, c.words...)
next.words = append(next.words, s[c.i:j])
stack = append(stack, next)
}
}
return sentences
}
// buildGraph returns a graph such that for all j in g[i], s[i:j] is a word in
// the dictionary.
func buildGraph(s string, wordDict []string) map[int][]int {
g := map[int][]int{}
for _, word := range wordDict {
n := len(word)
for i := 0; i+n <= len(s); i++ {
if word == s[i:i+n] {
g[i] = append(g[i], i+n)
}
}
}
return g
}
|
{
"content_hash": "ee3aa117cd880dadc8d4037ceb6a8ea1",
"timestamp": "",
"source": "github",
"line_count": 98,
"max_line_length": 78,
"avg_line_length": 20.102040816326532,
"alnum_prop": 0.5791878172588832,
"repo_name": "mmcloughlin/interviews",
"id": "c7e09549c10c52986db8cd9629aa02f994177a1d",
"size": "1970",
"binary": false,
"copies": "1",
"ref": "refs/heads/master",
"path": "leetcode/word-break-ii/solution.go",
"mode": "33188",
"license": "mit",
"language": [
{
"name": "C",
"bytes": "5013"
},
{
"name": "Go",
"bytes": "1517"
},
{
"name": "Makefile",
"bytes": "184"
},
{
"name": "Python",
"bytes": "116579"
},
{
"name": "Shell",
"bytes": "459"
}
],
"symlink_target": ""
}
|
package itunes
import (
"github.com/trimmer-io/go-xmp/xmp"
// "howett.net/plist"
)
type MovieInfo struct {
AssetInfo *AssetInfo `plist:"asset-info" xmp:"iTunes:AssetInfo,attr"`
Studio string `plist:"studio" xmp:"iTunes:Studio,attr"`
Cast PersonArray `plist:"cast" xmp:"iTunes:Cast"`
Directors PersonArray `plist:"directors" xmp:"iTunes:Directors"`
CoDirectors PersonArray `plist:"codirectors" xmp:"iTunes:CoDirectors"`
Screenwriters PersonArray `plist:"screenwriters" xmp:"iTunes:Screenwriters"`
Producers PersonArray `plist:"producers" xmp:"iTunes:Producers"`
CopyWarning string `plist:"copy-warning" xmp:"iTunes:CopyWarning"`
}
// unmarshal Apple plist style XML file requires to import external
// dependency howett.net/plist
// func (x *MovieInfo) UnmarshalText(data []byte) error {
// _, err := plist.Unmarshal(data, x)
// return err
// }
type AssetInfo struct {
FileSize int64 `plist:"file-size" xmp:"iTunes:FileSize,attr"`
Flavor string `plist:"flavor" xmp:"iTunes:Flavor,attr"`
ScreenFormat string `plist:"screen-format" xmp:"iTunes:ScreenFormat,attr"`
Soundtrack string `plist:"soundtrack" xmp:"iTunes:Soundtrack,attr"`
}
type Person struct {
ID string `plist:"adamId" xmp:"iTunes:AdamID,attr"`
Name string `plist:"name" xmp:"iTunes:Name,attr"`
}
type PersonArray []Person
func (a PersonArray) Typ() xmp.ArrayType {
return xmp.ArrayTypeUnordered
}
func (x PersonArray) MarshalXMP(e *xmp.Encoder, node *xmp.Node, m xmp.Model) error {
return xmp.MarshalArray(e, node, x.Typ(), x)
}
func (x *PersonArray) UnmarshalXMP(d *xmp.Decoder, node *xmp.Node, m xmp.Model) error {
return xmp.UnmarshalArray(d, node, x.Typ(), x)
}
|
{
"content_hash": "28e6b03c5ebbde9ea23838e49ff9d0af",
"timestamp": "",
"source": "github",
"line_count": 50,
"max_line_length": 87,
"avg_line_length": 35.2,
"alnum_prop": 0.69375,
"repo_name": "echa/go-xmp",
"id": "90dca48ea41b706398ad23fe1e4805f5e8e388f8",
"size": "2365",
"binary": false,
"copies": "1",
"ref": "refs/heads/master",
"path": "models/itunes/movieinfo.go",
"mode": "33188",
"license": "apache-2.0",
"language": [
{
"name": "Go",
"bytes": "698630"
}
],
"symlink_target": ""
}
|
package com.zwgg.treeviewer;
import org.junit.Test;
import static org.junit.Assert.*;
/**
* Example local unit test, which will execute on the development machine (host).
*
* @see <a href="http://d.android.com/tools/testing">Testing documentation</a>
*/
public class ExampleUnitTest {
@Test
public void addition_isCorrect() throws Exception {
}
}
|
{
"content_hash": "8cf11a394356ea84701b89f05dd19719",
"timestamp": "",
"source": "github",
"line_count": 17,
"max_line_length": 81,
"avg_line_length": 21.529411764705884,
"alnum_prop": 0.7076502732240437,
"repo_name": "zwgg/TreeViewer",
"id": "e5b504216bf42099416f8bbed1125f1d70074f2e",
"size": "366",
"binary": false,
"copies": "1",
"ref": "refs/heads/master",
"path": "treeviewer-android/src/test/java/com/zwgg/treeviewer/ExampleUnitTest.java",
"mode": "33188",
"license": "apache-2.0",
"language": [
{
"name": "Java",
"bytes": "24511"
}
],
"symlink_target": ""
}
|
import {expect, mockTabris, restore, spy, stub} from '../../test';
import ClientMock from '../ClientMock';
import Composite from '../../../src/tabris/widgets/Composite';
import Button from '../../../src/tabris/widgets/Button';
import CheckBox from '../../../src/tabris/widgets/CheckBox';
import ImageView from '../../../src/tabris/widgets/ImageView';
import ProgressBar from '../../../src/tabris/widgets/ProgressBar';
import RadioButton from '../../../src/tabris/widgets/RadioButton';
import Slider from '../../../src/tabris/widgets/Slider';
import TextInput from '../../../src/tabris/widgets/TextInput';
import Switch from '../../../src/tabris/widgets/Switch';
import ToggleButton from '../../../src/tabris/widgets/ToggleButton';
import WebView from '../../../src/tabris/widgets/WebView';
import ActivityIndicator from '../../../src/tabris/widgets/ActivityIndicator';
import {createJsxProcessor} from '../../../src/tabris/JsxProcessor';
import {toXML} from '../../../src/tabris/Console';
describe('Common Widgets', function() {
let client;
let widget;
let listener;
let jsx;
beforeEach(function() {
client = new ClientMock();
mockTabris(client);
listener = spy();
jsx = createJsxProcessor();
});
afterEach(function() {
restore();
delete tabris.TestType;
});
function getCreate() {
return client.calls({op: 'create'})[0];
}
function checkListen(event) {
const listen = client.calls({op: 'listen', id: widget.cid});
expect(listen.length).to.equal(1);
expect(listen[0].event).to.equal(event);
expect(listen[0].listen).to.equal(true);
}
it('ActivityIndicator', function() {
const activityIndicator = new ActivityIndicator();
expect(getCreate().type).to.equal('tabris.ActivityIndicator');
expect(activityIndicator.constructor.name).to.equal('ActivityIndicator');
});
it('Button', function() {
const button = new Button({enabled: false});
expect(getCreate().type).to.equal('tabris.Button');
expect(button.constructor.name).to.equal('Button');
expect(button.image).to.equal(null);
expect(button.alignment).to.equal('centerX');
expect(button.text).to.equal('');
});
it('Button select', function() {
widget = new Button().onSelect(listener);
tabris._notify(widget.cid, 'select', {});
expect(listener).to.have.been.calledOnce;
expect(listener).to.have.been.calledWithMatch({target: widget});
checkListen('select');
});
it('Button JSX with text property', function() {
const button = jsx.createElement(
Button,
{text: 'Hello World!'}
);
expect(button.text).to.equal('Hello World!');
});
it('Button JSX with text content', function() {
const button = jsx.createElement(
Button,
null,
'Hello ',
'World!'
);
expect(button.text).to.equal('Hello World!');
});
it('Button JSX with text content and text property', function() {
expect(() => jsx.createElement(
Button,
{text: 'Hello World!'},
'Hello',
'World!'
)).to.throw(/text given twice/);
});
it('Button toXML prints xml element with text', function() {
widget = new Button({text: 'foo'});
stub(client, 'get').withArgs(widget.cid, 'bounds').returns({});
expect(widget[toXML]()).to.match(/<Button .* text='foo'\/>/);
});
it('CheckBox', function() {
const checkBox = new CheckBox({enabled: false});
expect(getCreate().type).to.equal('tabris.CheckBox');
expect(checkBox.constructor.name).to.equal('CheckBox');
expect(checkBox.text).to.equal('');
});
it('CheckBox select', function() {
widget = new CheckBox().onSelect(listener);
tabris._notify(widget.cid, 'select', {checked: true});
expect(listener).to.have.been.calledOnce;
expect(listener).to.have.been.calledWithMatch({target: widget, checked: true});
checkListen('select');
});
it('CheckBox checkedChanged', function() {
widget = new CheckBox().onCheckedChanged(listener);
tabris._notify(widget.cid, 'select', {checked: true});
expect(listener).to.have.been.calledOnce;
expect(listener).to.have.been.calledWithMatch({target: widget, value: true});
checkListen('select');
});
it('CheckBox JSX with text property', function() {
const checkBox = jsx.createElement(
CheckBox,
{text: 'Hello World!'}
);
expect(checkBox.text).to.equal('Hello World!');
});
it('CheckBox JSX with text content', function() {
const checkBox = jsx.createElement(
CheckBox,
null,
'Hello ',
'World!'
);
expect(checkBox.text).to.equal('Hello World!');
});
it('CheckBox JSX with text content and text property', function() {
expect(() => jsx.createElement(
CheckBox,
{text: 'Hello World!'},
'Hello',
'World!'
)).to.throw(/text given twice/);
});
it('CheckBox toXML prints xml element with text and checked', function() {
widget = new CheckBox({text: 'foo'});
stub(client, 'get')
.withArgs(widget.cid, 'bounds').returns({})
.withArgs(widget.cid, 'checked').returns(false);
expect(widget[toXML]()).to.match(/<CheckBox .* text='foo' checked='false'\/>/);
});
it('Composite', function() {
const composite = new Composite();
expect(getCreate().type).to.equal('tabris.Composite');
expect(composite.constructor.name).to.equal('Composite');
});
it('ImageView', function() {
const imageView = new ImageView();
expect(getCreate().type).to.equal('tabris.ImageView');
expect(imageView.constructor.name).to.equal('ImageView');
expect(imageView.image).to.equal(null);
expect(imageView.scaleMode).to.equal('auto');
});
it('ImageView toXML prints xml element with image src', function() {
stub(client, 'get').returns({});
expect(new ImageView()[toXML]()).to.match(/<ImageView .* image=''\/>/);
expect(new ImageView({image: 'foo.jpg'})[toXML]()).to.match(/<ImageView .* image='foo.jpg'\/>/);
});
it('ProgressBar', function() {
const progressBar = new ProgressBar();
expect(getCreate().type).to.equal('tabris.ProgressBar');
expect(progressBar.constructor.name).to.equal('ProgressBar');
expect(progressBar.minimum).to.equal(0);
expect(progressBar.maximum).to.equal(100);
expect(progressBar.selection).to.equal(0);
expect(progressBar.state).to.equal('normal');
});
it('ProgressBar toXML prints xml element with minimum, maximum and selection', function() {
widget = new ProgressBar({minimum: 10, maximum: 20, selection: 13});
stub(client, 'get').returns({});
expect(widget[toXML]()).to.match(/<ProgressBar .* selection='13' minimum='10' maximum='20'\/>/);
});
it('RadioButton', function() {
const radioButton = new RadioButton({enabled: false});
expect(getCreate().type).to.equal('tabris.RadioButton');
expect(radioButton.constructor.name).to.equal('RadioButton');
expect(radioButton.text).to.equal('');
});
it('RadioButton select', function() {
widget = new RadioButton().onSelect(listener);
tabris._notify(widget.cid, 'select', {checked: true});
expect(listener).to.have.been.calledOnce;
expect(listener).to.have.been.calledWithMatch({target: widget, checked: true});
checkListen('select');
});
it('RadioButton checkedChanged', function() {
widget = new RadioButton().onCheckedChanged(listener);
tabris._notify(widget.cid, 'select', {checked: true});
expect(listener).to.have.been.calledOnce;
expect(listener).to.have.been.calledWithMatch({target: widget, value: true});
checkListen('select');
});
it('RadioButton JSX with text property', function() {
const radioButton = jsx.createElement(
RadioButton,
{text: 'Hello World!'}
);
expect(radioButton.text).to.equal('Hello World!');
});
it('RadioButton JSX with text content', function() {
const button = jsx.createElement(
RadioButton,
null,
'Hello ',
'World!'
);
expect(button.text).to.equal('Hello World!');
});
it('RadioButton JSX with text content and text property', function() {
expect(() => jsx.createElement(
RadioButton,
{text: 'Hello World!'},
'Hello',
'World!'
)).to.throw(/text given twice/);
});
it('RadioButton toXML prints xml element with text and checked', function() {
widget = new RadioButton({text: 'foo'});
stub(client, 'get')
.withArgs(widget.cid, 'bounds').returns({})
.withArgs(widget.cid, 'checked').returns(false);
expect(widget[toXML]()).to.match(/<RadioButton .* text='foo' checked='false'\/>/);
});
it('Slider', function() {
const slider = new Slider({selection: 23});
expect(getCreate().type).to.equal('tabris.Slider');
expect(getCreate().properties).to.deep.equal({selection: 23});
expect(slider.constructor.name).to.equal('Slider');
expect(slider.minimum).to.equal(0);
expect(slider.maximum).to.equal(100);
});
it('Slider select', function() {
widget = new Slider().onSelect(listener);
tabris._notify(widget.cid, 'select', {selection: 23});
expect(listener).to.have.been.calledOnce;
expect(listener).to.have.been.calledWithMatch({target: widget, selection: 23});
checkListen('select');
});
it('Slider selectionChanged', function() {
widget = new Slider().onSelectionChanged(listener);
tabris._notify(widget.cid, 'select', {selection: 23});
expect(listener).to.have.been.calledOnce;
expect(listener).to.have.been.calledWithMatch({target: widget, value: 23});
checkListen('select');
});
it('Slider toXML prints xml element with minimum, maximum and selection', function() {
widget = new Slider({minimum: 10, maximum: 20, selection: 13});
stub(client, 'get').returns(13);
expect(widget[toXML]()).to.match(/<Slider .* selection='13' minimum='10' maximum='20'\/>/);
});
it('WebView', function() {
const webView = new WebView({html: 'foo'});
expect(getCreate().type).to.equal('tabris.WebView');
expect(getCreate().properties).to.deep.equal({html: 'foo'});
expect(webView.constructor.name).to.equal('WebView');
});
it('WebView toXML prints xml element with url', function() {
widget = new WebView();
stub(client, 'get')
.withArgs(widget.cid, 'url').returns('foo.com')
.withArgs(widget.cid, 'html').returns('')
.withArgs(widget.cid, 'bounds').returns([0, 1, 2, 3]);
expect(widget[toXML]()).to.match(/<WebView .* url='foo.com'\/>/);
});
it('WebView toXML prints xml element with html', function() {
widget = new WebView();
stub(client, 'get')
.withArgs(widget.cid, 'html').returns('<html>\n <body>\n Hello World!\n </body>\n</html>')
.withArgs(widget.cid, 'url').returns('')
.withArgs(widget.cid, 'bounds').returns([0, 1, 2, 3]);
expect(widget[toXML]()).to.equal(
`<WebView cid='${widget.cid}' bounds='{left: 0, top: 1, width: 2, height: 3}'>\n` +
' <html>\n' +
' <body>\n' +
' Hello World!\n' +
' </body>\n' +
' </html>\n' +
'</WebView>'
);
});
it('Switch', function() {
const swtch = new Switch({checked: true});
expect(getCreate().type).to.equal('tabris.Switch');
expect(getCreate().properties).to.deep.equal({checked: true});
expect(swtch.constructor.name).to.equal('Switch');
});
it('Switch checkedChanged', function() {
widget = new Switch().onCheckedChanged(listener);
tabris._notify(widget.cid, 'select', {checked: true});
expect(listener).to.have.been.calledOnce;
expect(listener).to.have.been.calledWithMatch({target: widget, value: true});
checkListen('select');
});
it('Switch checkedChanged on property change', function() {
widget = new Switch().onCheckedChanged(listener);
widget.checked = true;
expect(listener).to.have.been.calledOnce;
expect(listener).to.have.been.calledWithMatch({target: widget, value: true});
});
it('Switch select', function() {
widget = new Switch().onSelect(listener);
tabris._notify(widget.cid, 'select', {checked: true});
expect(listener).to.have.been.calledOnce;
expect(listener).to.have.been.calledWithMatch({target: widget, checked: true});
checkListen('select');
});
it('Switch toXML prints xml element with text and checked', function() {
widget = new Switch({text: 'foo'});
stub(client, 'get')
.withArgs(widget.cid, 'bounds').returns({})
.withArgs(widget.cid, 'checked').returns(false);
expect(widget[toXML]()).to.match(/<Switch .* text='foo' checked='false'\/>/);
});
it('ToggleButton', function() {
const toggleButton = new ToggleButton({enabled: false});
expect(getCreate().type).to.equal('tabris.ToggleButton');
expect(toggleButton.constructor.name).to.equal('ToggleButton');
expect(toggleButton.text).to.equal('');
expect(toggleButton.image).to.equal(null);
expect(toggleButton.alignment).to.equal('centerX');
});
it('ToggleButton checkedChanged', function() {
widget = new ToggleButton().onCheckedChanged(listener);
tabris._notify(widget.cid, 'select', {checked: true});
expect(listener).to.have.been.calledOnce;
expect(listener).to.have.been.calledWithMatch({target: widget, value: true});
checkListen('select');
});
it('ToggleButton select', function() {
widget = new ToggleButton().onSelect(listener);
tabris._notify(widget.cid, 'select', {checked: true});
expect(listener).to.have.been.calledOnce;
expect(listener).to.have.been.calledWithMatch({target: widget, checked: true});
checkListen('select');
});
it('ToggleButton JSX with text property', function() {
const toggleButton = jsx.createElement(
ToggleButton,
{text: 'Hello World!'}
);
expect(toggleButton.text).to.equal('Hello World!');
});
it('ToggleButton JSX with text content', function() {
const button = jsx.createElement(
ToggleButton,
null,
'Hello ',
'World!'
);
expect(button.text).to.equal('Hello World!');
});
it('ToggleButton JSX with text content and text property', function() {
expect(() => jsx.createElement(
ToggleButton,
{text: 'Hello World!'},
'Hello',
'World!'
)).to.throw(/text given twice/);
});
it('ToggleButton toXML prints xml element with text and checked', function() {
widget = new ToggleButton({text: 'foo'});
stub(client, 'get')
.withArgs(widget.cid, 'bounds').returns({})
.withArgs(widget.cid, 'checked').returns(false);
expect(widget[toXML]()).to.match(/<ToggleButton .* text='foo' checked='false'\/>/);
});
it('sets native color properties as RGBA arrays', function() {
widget = new TextInput({text: 'foo', textColor: 'red'});
expect(getCreate().properties.textColor).to.deep.equal([255, 0, 0, 255]);
});
it('resets native color properties by null', function() {
widget = new TextInput({text: 'foo', textColor: 'red'});
widget.textColor = 'initial';
expect(getCreate().properties.textColor).to.be.null;
});
});
|
{
"content_hash": "6951193e4c9335714443df3e87bee28f",
"timestamp": "",
"source": "github",
"line_count": 470,
"max_line_length": 101,
"avg_line_length": 32.18936170212766,
"alnum_prop": 0.6401612796615771,
"repo_name": "eclipsesource/tabris-js",
"id": "47861b1bf837ae33bf83ac9b2ac1d898ab0870a8",
"size": "15129",
"binary": false,
"copies": "1",
"ref": "refs/heads/master",
"path": "test/tabris/widgets/commonWidgets.test.js",
"mode": "33188",
"license": "bsd-3-clause",
"language": [
{
"name": "HTML",
"bytes": "599"
},
{
"name": "JavaScript",
"bytes": "1403899"
},
{
"name": "TypeScript",
"bytes": "658261"
}
],
"symlink_target": ""
}
|
namespace Microsoft.Graph
{
using System;
using System.Collections.Generic;
using System.IO;
/// <summary>
/// The interface IWorkbookFunctionsSkew_pRequestBuilder.
/// </summary>
public partial interface IWorkbookFunctionsSkew_pRequestBuilder
{
/// <summary>
/// Builds the request.
/// </summary>
/// <param name="options">The query and header options for the request.</param>
/// <returns>The built request.</returns>
IWorkbookFunctionsSkew_pRequest Request(IEnumerable<Option> options = null);
}
}
|
{
"content_hash": "9810327c6a07e139e3ebc9da87941a2c",
"timestamp": "",
"source": "github",
"line_count": 19,
"max_line_length": 87,
"avg_line_length": 30.894736842105264,
"alnum_prop": 0.6473594548551959,
"repo_name": "ginach/msgraph-sdk-dotnet",
"id": "4393fe13e2fdb8b68867ef1f92ea923d40d2b0df",
"size": "1065",
"binary": false,
"copies": "1",
"ref": "refs/heads/master",
"path": "src/Microsoft.Graph/Requests/Generated/IWorkbookFunctionsSkew_pRequestBuilder.cs",
"mode": "33188",
"license": "mit",
"language": [
{
"name": "C#",
"bytes": "12839763"
},
{
"name": "Smalltalk",
"bytes": "12638"
}
],
"symlink_target": ""
}
|
static const char UNUSED *bitcoin_strings[] = {
QT_TRANSLATE_NOOP("bitcoin-core", ""
"%s, you must set a rpcpassword in the configuration file:\n"
"%s\n"
"It is recommended you use the following random password:\n"
"rpcuser=peercoinrpc\n"
"rpcpassword=%s\n"
"(you do not need to remember this password)\n"
"The username and password MUST NOT be the same.\n"
"If the file does not exist, create it with owner-readable-only file "
"permissions.\n"
"It is also recommended to set alertnotify so you are notified of problems;\n"
"for example: alertnotify=echo %%s | mail -s \"Peercoin Alert\" admin@foo.com\n"),
QT_TRANSLATE_NOOP("bitcoin-core", ""
"Acceptable ciphers (default: TLSv1+HIGH:!SSLv2:!aNULL:!eNULL:!AH:!3DES:"
"@STRENGTH)"),
QT_TRANSLATE_NOOP("bitcoin-core", ""
"An error occurred while setting up the RPC port %u for listening on IPv4: %s"),
QT_TRANSLATE_NOOP("bitcoin-core", ""
"An error occurred while setting up the RPC port %u for listening on IPv6, "
"falling back to IPv4: %s"),
QT_TRANSLATE_NOOP("bitcoin-core", ""
"Bind to given address and always listen on it. Use [host]:port notation for "
"IPv6"),
QT_TRANSLATE_NOOP("bitcoin-core", ""
"Cannot obtain a lock on data directory %s. Peercoin is probably already "
"running."),
QT_TRANSLATE_NOOP("bitcoin-core", ""
"Error: The transaction was rejected! This might happen if some of the coins "
"in your wallet were already spent, such as if you used a copy of wallet.dat "
"and coins were spent in the copy but not marked as spent here."),
QT_TRANSLATE_NOOP("bitcoin-core", ""
"Error: This transaction requires a transaction fee of at least %s because of "
"its amount, complexity, or use of recently received funds!"),
QT_TRANSLATE_NOOP("bitcoin-core", ""
"Error: Wallet unlocked for block minting only, unable to create transaction."),
QT_TRANSLATE_NOOP("bitcoin-core", ""
"Execute command when a relevant alert is received (%s in cmd is replaced by "
"message)"),
QT_TRANSLATE_NOOP("bitcoin-core", ""
"Execute command when a wallet transaction changes (%s in cmd is replaced by "
"TxID)"),
QT_TRANSLATE_NOOP("bitcoin-core", ""
"Execute command when the best block changes (%s in cmd is replaced by block "
"hash)"),
QT_TRANSLATE_NOOP("bitcoin-core", ""
"Number of seconds to keep misbehaving peers from reconnecting (default: "
"86400)"),
QT_TRANSLATE_NOOP("bitcoin-core", ""
"Set maximum size of high-priority/low-fee transactions in bytes (default: "
"27000)"),
QT_TRANSLATE_NOOP("bitcoin-core", ""
"Set the number of script verification threads (up to 16, 0 = auto, <0 = "
"leave that many cores free, default: 0)"),
QT_TRANSLATE_NOOP("bitcoin-core", ""
"This is a pre-release test build - use at your own risk - do not use for "
"mining or merchant applications"),
QT_TRANSLATE_NOOP("bitcoin-core", ""
"Unable to bind to %s on this computer. Peercoin is probably already running."),
QT_TRANSLATE_NOOP("bitcoin-core", ""
"Warning: -paytxfee is set very high! This is the transaction fee you will "
"pay if you send a transaction."),
QT_TRANSLATE_NOOP("bitcoin-core", ""
"Warning: Please check that your computer's date and time are correct! If "
"your clock is wrong Peercoin will not work properly."),
QT_TRANSLATE_NOOP("bitcoin-core", ""
"Warning: checkpoint on different blockchain fork, contact developers to "
"resolve the issue"),
QT_TRANSLATE_NOOP("bitcoin-core", ""
"Warning: error reading wallet.dat! All keys read correctly, but transaction "
"data or address book entries might be missing or incorrect."),
QT_TRANSLATE_NOOP("bitcoin-core", ""
"Warning: wallet.dat corrupt, data salvaged! Original wallet.dat saved as "
"wallet.{timestamp}.bak in %s; if your balance or transactions are incorrect "
"you should restore from a backup."),
QT_TRANSLATE_NOOP("bitcoin-core", ""
"You must set rpcpassword=<password> in the configuration file:\n"
"%s\n"
"If the file does not exist, create it with owner-readable-only file "
"permissions."),
QT_TRANSLATE_NOOP("bitcoin-core", "Accept command line and JSON-RPC commands"),
QT_TRANSLATE_NOOP("bitcoin-core", "Accept connections from outside (default: 1 if no -proxy or -connect)"),
QT_TRANSLATE_NOOP("bitcoin-core", "Add a node to connect to and attempt to keep the connection open"),
QT_TRANSLATE_NOOP("bitcoin-core", "Allow DNS lookups for -addnode, -seednode and -connect"),
QT_TRANSLATE_NOOP("bitcoin-core", "Allow JSON-RPC connections from specified IP address"),
QT_TRANSLATE_NOOP("bitcoin-core", "Attempt to recover private keys from a corrupt wallet.dat"),
QT_TRANSLATE_NOOP("bitcoin-core", "Block creation options:"),
QT_TRANSLATE_NOOP("bitcoin-core", "Cannot downgrade wallet"),
QT_TRANSLATE_NOOP("bitcoin-core", "Cannot resolve -bind address: '%s'"),
QT_TRANSLATE_NOOP("bitcoin-core", "Cannot resolve -externalip address: '%s'"),
QT_TRANSLATE_NOOP("bitcoin-core", "Cannot write default address"),
QT_TRANSLATE_NOOP("bitcoin-core", "Connect only to the specified node(s)"),
QT_TRANSLATE_NOOP("bitcoin-core", "Connect through socks proxy"),
QT_TRANSLATE_NOOP("bitcoin-core", "Connect to a node to retrieve peer addresses, and disconnect"),
QT_TRANSLATE_NOOP("bitcoin-core", "Corrupted block database detected"),
QT_TRANSLATE_NOOP("bitcoin-core", "Discover own IP address (default: 1 when listening and no -externalip)"),
QT_TRANSLATE_NOOP("bitcoin-core", "Do you want to rebuild the block database now?"),
QT_TRANSLATE_NOOP("bitcoin-core", "Done loading"),
QT_TRANSLATE_NOOP("bitcoin-core", "Error initializing block database"),
QT_TRANSLATE_NOOP("bitcoin-core", "Error initializing wallet database environment %s!"),
QT_TRANSLATE_NOOP("bitcoin-core", "Error loading block database"),
QT_TRANSLATE_NOOP("bitcoin-core", "Error loading wallet.dat"),
QT_TRANSLATE_NOOP("bitcoin-core", "Error loading wallet.dat: Wallet corrupted"),
QT_TRANSLATE_NOOP("bitcoin-core", "Error loading wallet.dat: Wallet requires newer version of Peercoin"),
QT_TRANSLATE_NOOP("bitcoin-core", "Error opening block database"),
QT_TRANSLATE_NOOP("bitcoin-core", "Error"),
QT_TRANSLATE_NOOP("bitcoin-core", "Error: Disk space is low!"),
QT_TRANSLATE_NOOP("bitcoin-core", "Error: Wallet locked, unable to create transaction!"),
QT_TRANSLATE_NOOP("bitcoin-core", "Error: system error: "),
QT_TRANSLATE_NOOP("bitcoin-core", "Failed to listen on any port. Use -listen=0 if you want this."),
QT_TRANSLATE_NOOP("bitcoin-core", "Failed to read block info"),
QT_TRANSLATE_NOOP("bitcoin-core", "Failed to read block"),
QT_TRANSLATE_NOOP("bitcoin-core", "Failed to sync block index"),
QT_TRANSLATE_NOOP("bitcoin-core", "Failed to write block index"),
QT_TRANSLATE_NOOP("bitcoin-core", "Failed to write block info"),
QT_TRANSLATE_NOOP("bitcoin-core", "Failed to write block"),
QT_TRANSLATE_NOOP("bitcoin-core", "Failed to write file info"),
QT_TRANSLATE_NOOP("bitcoin-core", "Failed to write to coin database"),
QT_TRANSLATE_NOOP("bitcoin-core", "Failed to write transaction index"),
QT_TRANSLATE_NOOP("bitcoin-core", "Failed to write undo data"),
QT_TRANSLATE_NOOP("bitcoin-core", "Fee per KB to add to transactions you send"),
QT_TRANSLATE_NOOP("bitcoin-core", "Find peers using DNS lookup (default: 1 unless -connect)"),
QT_TRANSLATE_NOOP("bitcoin-core", "Generate coins (default: 0)"),
QT_TRANSLATE_NOOP("bitcoin-core", "Get help for a command"),
QT_TRANSLATE_NOOP("bitcoin-core", "How many blocks to check at startup (default: 288, 0 = all)"),
QT_TRANSLATE_NOOP("bitcoin-core", "How thorough the block verification is (0-4, default: 3)"),
QT_TRANSLATE_NOOP("bitcoin-core", "Imports blocks from external blk000??.dat file"),
QT_TRANSLATE_NOOP("bitcoin-core", "Info: Minting suspended due to locked wallet."),
QT_TRANSLATE_NOOP("bitcoin-core", "Information"),
QT_TRANSLATE_NOOP("bitcoin-core", "Insufficient funds"),
QT_TRANSLATE_NOOP("bitcoin-core", "Invalid -proxy address: '%s'"),
QT_TRANSLATE_NOOP("bitcoin-core", "Invalid -tor address: '%s'"),
QT_TRANSLATE_NOOP("bitcoin-core", "Invalid amount for -paytxfee=<amount>: '%s'"),
QT_TRANSLATE_NOOP("bitcoin-core", "Invalid amount"),
QT_TRANSLATE_NOOP("bitcoin-core", "Keep at most <n> unconnectable blocks in memory (default: 750)"),
QT_TRANSLATE_NOOP("bitcoin-core", "Keep at most <n> unconnectable transactions in memory (default: 100)"),
QT_TRANSLATE_NOOP("bitcoin-core", "List commands"),
QT_TRANSLATE_NOOP("bitcoin-core", "Listen for JSON-RPC connections on <port> (default: 9902)"),
QT_TRANSLATE_NOOP("bitcoin-core", "Listen for connections on <port> (default: 9901 or testnet: 9903)"),
QT_TRANSLATE_NOOP("bitcoin-core", "Loading addresses..."),
QT_TRANSLATE_NOOP("bitcoin-core", "Loading block index..."),
QT_TRANSLATE_NOOP("bitcoin-core", "Loading wallet..."),
QT_TRANSLATE_NOOP("bitcoin-core", "Maintain a full transaction index (default: 0)"),
QT_TRANSLATE_NOOP("bitcoin-core", "Maintain at most <n> connections to peers (default: 125)"),
QT_TRANSLATE_NOOP("bitcoin-core", "Maximum per-connection receive buffer, <n>*1000 bytes (default: 5000)"),
QT_TRANSLATE_NOOP("bitcoin-core", "Maximum per-connection send buffer, <n>*1000 bytes (default: 1000)"),
QT_TRANSLATE_NOOP("bitcoin-core", "Not enough file descriptors available."),
QT_TRANSLATE_NOOP("bitcoin-core", "Only accept block chain matching built-in checkpoints (default: 1)"),
QT_TRANSLATE_NOOP("bitcoin-core", "Only connect to nodes in network <net> (IPv4, IPv6 or Tor)"),
QT_TRANSLATE_NOOP("bitcoin-core", "Options:"),
QT_TRANSLATE_NOOP("bitcoin-core", "Output extra debugging information. Implies all other -debug* options"),
QT_TRANSLATE_NOOP("bitcoin-core", "Output extra network debugging information"),
QT_TRANSLATE_NOOP("bitcoin-core", "Password for JSON-RPC connections"),
QT_TRANSLATE_NOOP("bitcoin-core", "Peercoin version"),
QT_TRANSLATE_NOOP("bitcoin-core", "Prepend debug output with timestamp (default: 1)"),
QT_TRANSLATE_NOOP("bitcoin-core", "Rebuild block chain index from current blk000??.dat files"),
QT_TRANSLATE_NOOP("bitcoin-core", "Rescan the block chain for missing wallet transactions"),
QT_TRANSLATE_NOOP("bitcoin-core", "Rescanning..."),
QT_TRANSLATE_NOOP("bitcoin-core", "Run in the background as a daemon and accept commands"),
QT_TRANSLATE_NOOP("bitcoin-core", "SSL options: (see the Bitcoin Wiki for SSL setup instructions)"),
QT_TRANSLATE_NOOP("bitcoin-core", "Select the version of socks proxy to use (4-5, default: 5)"),
QT_TRANSLATE_NOOP("bitcoin-core", "Send command to -server or peercoind"),
QT_TRANSLATE_NOOP("bitcoin-core", "Send commands to node running on <ip> (default: 127.0.0.1)"),
QT_TRANSLATE_NOOP("bitcoin-core", "Send trace/debug info to console instead of debug.log file"),
QT_TRANSLATE_NOOP("bitcoin-core", "Send trace/debug info to debugger"),
QT_TRANSLATE_NOOP("bitcoin-core", "Server certificate file (default: server.cert)"),
QT_TRANSLATE_NOOP("bitcoin-core", "Server private key (default: server.pem)"),
QT_TRANSLATE_NOOP("bitcoin-core", "Set database cache size in megabytes (default: 25)"),
QT_TRANSLATE_NOOP("bitcoin-core", "Set key pool size to <n> (default: 100)"),
QT_TRANSLATE_NOOP("bitcoin-core", "Set maximum block size in bytes (default: 250000)"),
QT_TRANSLATE_NOOP("bitcoin-core", "Set minimum block size in bytes (default: 0)"),
QT_TRANSLATE_NOOP("bitcoin-core", "Set the number of threads to service RPC calls (default: 4)"),
QT_TRANSLATE_NOOP("bitcoin-core", "Shrink debug.log file on client startup (default: 1 when no -debug)"),
QT_TRANSLATE_NOOP("bitcoin-core", "Signing transaction failed"),
QT_TRANSLATE_NOOP("bitcoin-core", "Specify configuration file (default: peercoin.conf)"),
QT_TRANSLATE_NOOP("bitcoin-core", "Specify connection timeout in milliseconds (default: 5000)"),
QT_TRANSLATE_NOOP("bitcoin-core", "Specify data directory"),
QT_TRANSLATE_NOOP("bitcoin-core", "Specify pid file (default: peercoind.pid)"),
QT_TRANSLATE_NOOP("bitcoin-core", "Specify your own public address"),
QT_TRANSLATE_NOOP("bitcoin-core", "System error: "),
QT_TRANSLATE_NOOP("bitcoin-core", "This help message"),
QT_TRANSLATE_NOOP("bitcoin-core", "Threshold for disconnecting misbehaving peers (default: 100)"),
QT_TRANSLATE_NOOP("bitcoin-core", "To use the %s option"),
QT_TRANSLATE_NOOP("bitcoin-core", "Transaction amount too small"),
QT_TRANSLATE_NOOP("bitcoin-core", "Transaction amounts must be positive"),
QT_TRANSLATE_NOOP("bitcoin-core", "Transaction too large"),
QT_TRANSLATE_NOOP("bitcoin-core", "Unable to bind to %s on this computer (bind returned error %d, %s)"),
QT_TRANSLATE_NOOP("bitcoin-core", "Unable to sign checkpoint, wrong checkpointkey?"),
QT_TRANSLATE_NOOP("bitcoin-core", "Unknown -socks proxy version requested: %i"),
QT_TRANSLATE_NOOP("bitcoin-core", "Unknown network specified in -onlynet: '%s'"),
QT_TRANSLATE_NOOP("bitcoin-core", "Upgrade wallet to latest format"),
QT_TRANSLATE_NOOP("bitcoin-core", "Usage:"),
QT_TRANSLATE_NOOP("bitcoin-core", "Use OpenSSL (https) for JSON-RPC connections"),
QT_TRANSLATE_NOOP("bitcoin-core", "Use UPnP to map the listening port (default: 0)"),
QT_TRANSLATE_NOOP("bitcoin-core", "Use UPnP to map the listening port (default: 1 when listening)"),
QT_TRANSLATE_NOOP("bitcoin-core", "Use proxy to reach tor hidden services (default: same as -proxy)"),
QT_TRANSLATE_NOOP("bitcoin-core", "Use the test network"),
QT_TRANSLATE_NOOP("bitcoin-core", "Username for JSON-RPC connections"),
QT_TRANSLATE_NOOP("bitcoin-core", "Verifying blocks..."),
QT_TRANSLATE_NOOP("bitcoin-core", "Verifying wallet..."),
QT_TRANSLATE_NOOP("bitcoin-core", "Wallet needed to be rewritten: restart Peercoin to complete"),
QT_TRANSLATE_NOOP("bitcoin-core", "Warning"),
QT_TRANSLATE_NOOP("bitcoin-core", "Warning: This version is obsolete, upgrade required!"),
QT_TRANSLATE_NOOP("bitcoin-core", "You need to rebuild the databases using -reindex to change -txindex"),
QT_TRANSLATE_NOOP("bitcoin-core", "wallet.dat corrupt, salvage failed"),
};
|
{
"content_hash": "aae1379bbd2ac83f51f126b599ed101f",
"timestamp": "",
"source": "github",
"line_count": 206,
"max_line_length": 108,
"avg_line_length": 66.78155339805825,
"alnum_prop": 0.7388238714836084,
"repo_name": "glv2/peerunity",
"id": "1e7950af0d1681e0199cc5e1167092e199fc1b7c",
"size": "13909",
"binary": false,
"copies": "1",
"ref": "refs/heads/master",
"path": "src/qt/bitcoinstrings.cpp",
"mode": "33188",
"license": "mit",
"language": [
{
"name": "C",
"bytes": "8679"
},
{
"name": "C++",
"bytes": "1583022"
},
{
"name": "Groff",
"bytes": "12841"
},
{
"name": "Makefile",
"bytes": "7931"
},
{
"name": "NSIS",
"bytes": "6355"
},
{
"name": "Objective-C",
"bytes": "858"
},
{
"name": "Objective-C++",
"bytes": "3537"
},
{
"name": "Python",
"bytes": "50532"
},
{
"name": "QMake",
"bytes": "11463"
},
{
"name": "Shell",
"bytes": "1873"
}
],
"symlink_target": ""
}
|
package com.google.gerrit.server.git;
import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertFalse;
import static org.junit.Assert.assertNotNull;
import static org.junit.Assert.assertNull;
import static org.junit.Assert.assertTrue;
import static org.junit.Assert.fail;
import com.google.common.collect.Iterables;
import com.google.gerrit.common.data.AccessSection;
import com.google.gerrit.common.data.ContributorAgreement;
import com.google.gerrit.common.data.GroupReference;
import com.google.gerrit.common.data.LabelType;
import com.google.gerrit.common.data.Permission;
import com.google.gerrit.common.data.PermissionRule;
import com.google.gerrit.reviewdb.client.AccountGroup;
import com.google.gerrit.reviewdb.client.Project;
import com.google.gerrit.reviewdb.client.RefNames;
import com.google.gerrit.server.extensions.events.GitReferenceUpdated;
import org.eclipse.jgit.errors.ConfigInvalidException;
import org.eclipse.jgit.errors.IncorrectObjectTypeException;
import org.eclipse.jgit.errors.MissingObjectException;
import org.eclipse.jgit.junit.LocalDiskRepositoryTestCase;
import org.eclipse.jgit.junit.TestRepository;
import org.eclipse.jgit.lib.Ref;
import org.eclipse.jgit.lib.RefUpdate;
import org.eclipse.jgit.lib.Repository;
import org.eclipse.jgit.revwalk.RevCommit;
import org.eclipse.jgit.revwalk.RevObject;
import org.eclipse.jgit.util.RawParseUtils;
import org.junit.Before;
import org.junit.Test;
import java.io.IOException;
import java.util.Collections;
import java.util.Map;
public class ProjectConfigTest extends LocalDiskRepositoryTestCase {
private final GroupReference developers = new GroupReference(
new AccountGroup.UUID("X"), "Developers");
private final GroupReference staff = new GroupReference(
new AccountGroup.UUID("Y"), "Staff");
private Repository db;
private TestRepository<Repository> util;
@Override
@Before
public void setUp() throws Exception {
super.setUp();
db = createBareRepository();
util = new TestRepository<>(db);
}
@Test
public void testReadConfig() throws Exception {
RevCommit rev = util.commit(util.tree( //
util.file("groups", util.blob(group(developers))), //
util.file("project.config", util.blob(""//
+ "[access \"refs/heads/*\"]\n" //
+ " exclusiveGroupPermissions = read submit create\n" //
+ " submit = group Developers\n" //
+ " push = group Developers\n" //
+ " read = group Developers\n" //
+ "[accounts]\n" //
+ " sameGroupVisibility = deny group Developers\n" //
+ " sameGroupVisibility = block group Staff\n" //
+ "[contributor-agreement \"Individual\"]\n" //
+ " description = A simple description\n" //
+ " accepted = group Developers\n" //
+ " accepted = group Staff\n" //
+ " requireContactInformation = true\n" //
+ " autoVerify = group Developers\n" //
+ " agreementUrl = http://www.example.com/agree\n")) //
));
ProjectConfig cfg = read(rev);
assertEquals(2, cfg.getAccountsSection().getSameGroupVisibility().size());
ContributorAgreement ca = cfg.getContributorAgreement("Individual");
assertEquals("Individual", ca.getName());
assertEquals("A simple description", ca.getDescription());
assertEquals("http://www.example.com/agree", ca.getAgreementUrl());
assertEquals(2, ca.getAccepted().size());
assertEquals(developers, ca.getAccepted().get(0).getGroup());
assertEquals("Staff", ca.getAccepted().get(1).getGroup().getName());
assertEquals("Developers", ca.getAutoVerify().getName());
assertTrue(ca.isRequireContactInformation());
AccessSection section = cfg.getAccessSection("refs/heads/*");
assertNotNull("has refs/heads/*", section);
assertNull("no refs/*", cfg.getAccessSection("refs/*"));
Permission create = section.getPermission(Permission.CREATE);
Permission submit = section.getPermission(Permission.SUBMIT);
Permission read = section.getPermission(Permission.READ);
Permission push = section.getPermission(Permission.PUSH);
assertTrue(create.getExclusiveGroup());
assertTrue(submit.getExclusiveGroup());
assertTrue(read.getExclusiveGroup());
assertFalse(push.getExclusiveGroup());
}
@Test
public void testReadConfigLabelDefaultValue() throws Exception {
RevCommit rev = util.commit(util.tree( //
util.file("groups", util.blob(group(developers))), //
util.file("project.config", util.blob(""//
+ "[label \"CustomLabel\"]\n" //
+ " value = -1 Negative\n" //
+ " value = 0 No Score\n" //
+ " value = 1 Positive\n")) //
));
ProjectConfig cfg = read(rev);
Map<String, LabelType> labels = cfg.getLabelSections();
Short dv = labels.entrySet().iterator().next().getValue().getDefaultValue();
assertEquals(0, (int) dv);
}
@Test
public void testReadConfigLabelDefaultValueInRange() throws Exception {
RevCommit rev = util.commit(util.tree( //
util.file("groups", util.blob(group(developers))), //
util.file("project.config", util.blob(""//
+ "[label \"CustomLabel\"]\n" //
+ " value = -1 Negative\n" //
+ " value = 0 No Score\n" //
+ " value = 1 Positive\n" //
+ " defaultValue = -1\n")) //
));
ProjectConfig cfg = read(rev);
Map<String, LabelType> labels = cfg.getLabelSections();
Short dv = labels.entrySet().iterator().next().getValue().getDefaultValue();
assertEquals(-1, (int) dv);
}
@Test
public void testReadConfigLabelDefaultValueNotInRange() throws Exception {
RevCommit rev = util.commit(util.tree( //
util.file("groups", util.blob(group(developers))), //
util.file("project.config", util.blob(""//
+ "[label \"CustomLabel\"]\n" //
+ " value = -1 Negative\n" //
+ " value = 0 No Score\n" //
+ " value = 1 Positive\n" //
+ " defaultValue = -2\n")) //
));
ProjectConfig cfg = read(rev);
assertEquals(1, cfg.getValidationErrors().size());
assertEquals("project.config: Invalid defaultValue \"-2\" "
+ "for label \"CustomLabel\"",
Iterables.getOnlyElement(cfg.getValidationErrors()).getMessage());
}
@Test
public void testEditConfig() throws Exception {
RevCommit rev = util.commit(util.tree( //
util.file("groups", util.blob(group(developers))), //
util.file("project.config", util.blob(""//
+ "[access \"refs/heads/*\"]\n" //
+ " exclusiveGroupPermissions = read submit\n" //
+ " submit = group Developers\n" //
+ " upload = group Developers\n" //
+ " read = group Developers\n" //
+ "[accounts]\n" //
+ " sameGroupVisibility = deny group Developers\n" //
+ " sameGroupVisibility = block group Staff\n" //
+ "[contributor-agreement \"Individual\"]\n" //
+ " description = A simple description\n" //
+ " accepted = group Developers\n" //
+ " requireContactInformation = true\n" //
+ " autoVerify = group Developers\n" //
+ " agreementUrl = http://www.example.com/agree\n")) //
));
update(rev);
ProjectConfig cfg = read(rev);
AccessSection section = cfg.getAccessSection("refs/heads/*");
cfg.getAccountsSection().setSameGroupVisibility(
Collections.singletonList(new PermissionRule(cfg.resolve(staff))));
Permission submit = section.getPermission(Permission.SUBMIT);
submit.add(new PermissionRule(cfg.resolve(staff)));
ContributorAgreement ca = cfg.getContributorAgreement("Individual");
ca.setRequireContactInformation(false);
ca.setAccepted(Collections.singletonList(new PermissionRule(cfg.resolve(staff))));
ca.setAutoVerify(null);
ca.setDescription("A new description");
rev = commit(cfg);
assertEquals(""//
+ "[access \"refs/heads/*\"]\n" //
+ " exclusiveGroupPermissions = read submit\n" //
+ " submit = group Developers\n" //
+ "\tsubmit = group Staff\n" //
+ " upload = group Developers\n" //
+ " read = group Developers\n"//
+ "[accounts]\n" //
+ " sameGroupVisibility = group Staff\n" //
+ "[contributor-agreement \"Individual\"]\n" //
+ " description = A new description\n" //
+ " accepted = group Staff\n" //
+ " agreementUrl = http://www.example.com/agree\n",
text(rev, "project.config"));
}
@Test
public void testEditConfigMissingGroupTableEntry() throws Exception {
RevCommit rev = util.commit(util.tree( //
util.file("groups", util.blob(group(developers))), //
util.file("project.config", util.blob(""//
+ "[access \"refs/heads/*\"]\n" //
+ " exclusiveGroupPermissions = read submit\n" //
+ " submit = group People Who Can Submit\n" //
+ " upload = group Developers\n" //
+ " read = group Developers\n")) //
));
update(rev);
ProjectConfig cfg = read(rev);
AccessSection section = cfg.getAccessSection("refs/heads/*");
Permission submit = section.getPermission(Permission.SUBMIT);
submit.add(new PermissionRule(cfg.resolve(staff)));
rev = commit(cfg);
assertEquals(""//
+ "[access \"refs/heads/*\"]\n" //
+ " exclusiveGroupPermissions = read submit\n" //
+ " submit = group People Who Can Submit\n" //
+ "\tsubmit = group Staff\n" //
+ " upload = group Developers\n" //
+ " read = group Developers\n", text(rev, "project.config"));
}
private ProjectConfig read(RevCommit rev) throws IOException,
ConfigInvalidException {
ProjectConfig cfg = new ProjectConfig(new Project.NameKey("test"));
cfg.load(db, rev);
return cfg;
}
private RevCommit commit(ProjectConfig cfg) throws IOException,
MissingObjectException, IncorrectObjectTypeException {
MetaDataUpdate md = new MetaDataUpdate(
GitReferenceUpdated.DISABLED,
cfg.getProject().getNameKey(),
db);
util.tick(5);
util.setAuthorAndCommitter(md.getCommitBuilder());
md.setMessage("Edit\n");
cfg.commit(md);
Ref ref = db.getRef(RefNames.REFS_CONFIG);
return util.getRevWalk().parseCommit(ref.getObjectId());
}
private void update(RevCommit rev) throws Exception {
RefUpdate u = db.updateRef(RefNames.REFS_CONFIG);
u.disableRefLog();
u.setNewObjectId(rev);
switch (u.forceUpdate()) {
case FAST_FORWARD:
case FORCED:
case NEW:
case NO_CHANGE:
break;
default:
fail("Cannot update ref for test: " + u.getResult());
}
}
private String text(RevCommit rev, String path) throws Exception {
RevObject blob = util.get(rev.getTree(), path);
byte[] data = db.open(blob).getCachedBytes(Integer.MAX_VALUE);
return RawParseUtils.decode(data);
}
private static String group(GroupReference g) {
return g.getUUID().get() + "\t" + g.getName() + "\n";
}
}
|
{
"content_hash": "040d1d5e15d46852d27911ce895d03d4",
"timestamp": "",
"source": "github",
"line_count": 283,
"max_line_length": 86,
"avg_line_length": 39.851590106007066,
"alnum_prop": 0.6384997339953893,
"repo_name": "Overruler/gerrit",
"id": "cc4a9e35429c4488ec4ede5bc3d68aa020c7626b",
"size": "11887",
"binary": false,
"copies": "7",
"ref": "refs/heads/master",
"path": "gerrit-server/src/test/java/com/google/gerrit/server/git/ProjectConfigTest.java",
"mode": "33188",
"license": "apache-2.0",
"language": [
{
"name": "CSS",
"bytes": "55240"
},
{
"name": "GAP",
"bytes": "4303"
},
{
"name": "Go",
"bytes": "1865"
},
{
"name": "Java",
"bytes": "8280678"
},
{
"name": "JavaScript",
"bytes": "1590"
},
{
"name": "Makefile",
"bytes": "4623"
},
{
"name": "Perl",
"bytes": "9943"
},
{
"name": "Prolog",
"bytes": "17711"
},
{
"name": "Python",
"bytes": "19438"
},
{
"name": "Shell",
"bytes": "47588"
}
],
"symlink_target": ""
}
|
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="ChangeListManager">
<list default="true" id="e5e67120-5dc9-413b-a91a-9dc987ea3fe6" name="Default" comment="">
<change type="NEW" beforePath="" afterPath="$PROJECT_DIR$/.idea/uiDesigner.xml" />
<change type="MOVED" beforePath="$PROJECT_DIR$/sandbox-2/src/main/java/HelloWorld.java" afterPath="$PROJECT_DIR$/sandbox-2/src/main/java/ru/pft/firstjava/HelloWorld.java" />
<change type="MODIFICATION" beforePath="$PROJECT_DIR$/.idea/gradle.xml" afterPath="$PROJECT_DIR$/.idea/gradle.xml" />
<change type="MODIFICATION" beforePath="$PROJECT_DIR$/.idea/modules.xml" afterPath="$PROJECT_DIR$/.idea/modules.xml" />
<change type="MODIFICATION" beforePath="$PROJECT_DIR$/.idea/modules/sandbox-2.iml" afterPath="$PROJECT_DIR$/.idea/modules/sandbox-2.iml" />
<change type="MODIFICATION" beforePath="$PROJECT_DIR$/gradle/wrapper/gradle-wrapper.properties" afterPath="$PROJECT_DIR$/gradle/wrapper/gradle-wrapper.properties" />
</list>
<ignored path="$PROJECT_DIR$/sandbox-2/.gradle/" />
<ignored path="$PROJECT_DIR$/sandbox-2/build/" />
<option name="EXCLUDED_CONVERTED_TO_IGNORED" value="true" />
<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="CreatePatchCommitExecutor">
<option name="PATCH_PATH" value="" />
</component>
<component name="ExecutionTargetManager" SELECTED_TARGET="default_target" />
<component name="ExternalProjectsData">
<projectState path="$PROJECT_DIR$/sandbox-2">
<ProjectState />
</projectState>
</component>
<component name="ExternalProjectsManager">
<system id="GRADLE">
<state>
<projects_view />
</state>
</system>
</component>
<component name="FileEditorManager">
<leaf>
<file leaf-file-name="HelloWorld.java" pinned="false" current-in-tab="true">
<entry file="file://$PROJECT_DIR$/sandbox-2/src/main/java/ru/pft/firstjava/HelloWorld.java">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="68">
<caret line="6" column="1" lean-forward="true" selection-start-line="6" selection-start-column="1" selection-end-line="6" selection-end-column="1" />
<folding />
</state>
</provider>
</entry>
</file>
</leaf>
</component>
<component name="Git.Settings">
<option name="RECENT_GIT_ROOT_PATH" value="$PROJECT_DIR$" />
</component>
<component name="GradleLocalSettings">
<option name="myGradleHomes">
<map>
<entry key="$PROJECT_DIR$/sandbox-2" value="C:\Users\Daria\.gradle\wrapper\dists\gradle-3.4.1-bin\71zneekfcxxu7l9p7nr2sc65s\gradle-3.4.1" />
</map>
</option>
<option name="myGradleVersions">
<map>
<entry key="$PROJECT_DIR$/sandbox-2" value="3.4.1" />
</map>
</option>
<option name="availableProjects">
<map>
<entry>
<key>
<ExternalProjectPojo>
<option name="name" value="sandbox-2" />
<option name="path" value="$PROJECT_DIR$/sandbox-2" />
</ExternalProjectPojo>
</key>
<value>
<list>
<ExternalProjectPojo>
<option name="name" value="sandbox-2" />
<option name="path" value="$PROJECT_DIR$/sandbox-2" />
</ExternalProjectPojo>
</list>
</value>
</entry>
</map>
</option>
<option name="availableTasks">
<map>
<entry key="$PROJECT_DIR$/sandbox-2">
<value>
<list>
<ExternalTaskPojo>
<option name="description" value="Displays the components produced by root project 'sandbox-2'. [incubating]" />
<option name="linkedExternalProjectPath" value="$PROJECT_DIR$/sandbox-2" />
<option name="name" value="components" />
</ExternalTaskPojo>
<ExternalTaskPojo>
<option name="description" value="Assembles and tests this project and all projects that depend on it." />
<option name="linkedExternalProjectPath" value="$PROJECT_DIR$/sandbox-2" />
<option name="name" value="buildDependents" />
</ExternalTaskPojo>
<ExternalTaskPojo>
<option name="description" value="Displays the sub-projects of root project 'sandbox-2'." />
<option name="linkedExternalProjectPath" value="$PROJECT_DIR$/sandbox-2" />
<option name="name" value="projects" />
</ExternalTaskPojo>
<ExternalTaskPojo>
<option name="description" value="Assembles main classes." />
<option name="linkedExternalProjectPath" value="$PROJECT_DIR$/sandbox-2" />
<option name="name" value="classes" />
</ExternalTaskPojo>
<ExternalTaskPojo>
<option name="description" value="Displays the dependent components of components in root project 'sandbox-2'. [incubating]" />
<option name="linkedExternalProjectPath" value="$PROJECT_DIR$/sandbox-2" />
<option name="name" value="dependentComponents" />
</ExternalTaskPojo>
<ExternalTaskPojo>
<option name="description" value="Displays all buildscript dependencies declared in root project 'sandbox-2'." />
<option name="linkedExternalProjectPath" value="$PROJECT_DIR$/sandbox-2" />
<option name="name" value="buildEnvironment" />
</ExternalTaskPojo>
<ExternalTaskPojo>
<option name="description" value="Runs this project as a JVM application" />
<option name="linkedExternalProjectPath" value="$PROJECT_DIR$/sandbox-2" />
<option name="name" value="run" />
</ExternalTaskPojo>
<ExternalTaskPojo>
<option name="description" value="Generates Gradle wrapper files. [incubating]" />
<option name="linkedExternalProjectPath" value="$PROJECT_DIR$/sandbox-2" />
<option name="name" value="wrapper" />
</ExternalTaskPojo>
<ExternalTaskPojo>
<option name="description" value="Assembles test classes." />
<option name="linkedExternalProjectPath" value="$PROJECT_DIR$/sandbox-2" />
<option name="name" value="testClasses" />
</ExternalTaskPojo>
<ExternalTaskPojo>
<option name="description" value="Generates Javadoc API documentation for the main source code." />
<option name="linkedExternalProjectPath" value="$PROJECT_DIR$/sandbox-2" />
<option name="name" value="javadoc" />
</ExternalTaskPojo>
<ExternalTaskPojo>
<option name="description" value="Creates OS specific scripts to run the project as a JVM application." />
<option name="linkedExternalProjectPath" value="$PROJECT_DIR$/sandbox-2" />
<option name="name" value="startScripts" />
</ExternalTaskPojo>
<ExternalTaskPojo>
<option name="description" value="Assembles a jar archive containing the main classes." />
<option name="linkedExternalProjectPath" value="$PROJECT_DIR$/sandbox-2" />
<option name="name" value="jar" />
</ExternalTaskPojo>
<ExternalTaskPojo>
<option name="description" value="Displays the configuration model of root project 'sandbox-2'. [incubating]" />
<option name="linkedExternalProjectPath" value="$PROJECT_DIR$/sandbox-2" />
<option name="name" value="model" />
</ExternalTaskPojo>
<ExternalTaskPojo>
<option name="description" value="Installs the project as a distribution as-is." />
<option name="linkedExternalProjectPath" value="$PROJECT_DIR$/sandbox-2" />
<option name="name" value="installDist" />
</ExternalTaskPojo>
<ExternalTaskPojo>
<option name="description" value="Processes main resources." />
<option name="linkedExternalProjectPath" value="$PROJECT_DIR$/sandbox-2" />
<option name="name" value="processResources" />
</ExternalTaskPojo>
<ExternalTaskPojo>
<option name="description" value="Displays the tasks runnable from root project 'sandbox-2'." />
<option name="linkedExternalProjectPath" value="$PROJECT_DIR$/sandbox-2" />
<option name="name" value="tasks" />
</ExternalTaskPojo>
<ExternalTaskPojo>
<option name="description" value="Assembles the main distributions" />
<option name="linkedExternalProjectPath" value="$PROJECT_DIR$/sandbox-2" />
<option name="name" value="assembleDist" />
</ExternalTaskPojo>
<ExternalTaskPojo>
<option name="description" value="Initializes a new Gradle build. [incubating]" />
<option name="linkedExternalProjectPath" value="$PROJECT_DIR$/sandbox-2" />
<option name="name" value="init" />
</ExternalTaskPojo>
<ExternalTaskPojo>
<option name="description" value="Runs the unit tests." />
<option name="linkedExternalProjectPath" value="$PROJECT_DIR$/sandbox-2" />
<option name="name" value="test" />
</ExternalTaskPojo>
<ExternalTaskPojo>
<option name="description" value="Compiles main Java source." />
<option name="linkedExternalProjectPath" value="$PROJECT_DIR$/sandbox-2" />
<option name="name" value="compileJava" />
</ExternalTaskPojo>
<ExternalTaskPojo>
<option name="description" value="Displays the insight into a specific dependency in root project 'sandbox-2'." />
<option name="linkedExternalProjectPath" value="$PROJECT_DIR$/sandbox-2" />
<option name="name" value="dependencyInsight" />
</ExternalTaskPojo>
<ExternalTaskPojo>
<option name="description" value="Runs all checks." />
<option name="linkedExternalProjectPath" value="$PROJECT_DIR$/sandbox-2" />
<option name="name" value="check" />
</ExternalTaskPojo>
<ExternalTaskPojo>
<option name="description" value="Assembles the outputs of this project." />
<option name="linkedExternalProjectPath" value="$PROJECT_DIR$/sandbox-2" />
<option name="name" value="assemble" />
</ExternalTaskPojo>
<ExternalTaskPojo>
<option name="description" value="Deletes the build directory." />
<option name="linkedExternalProjectPath" value="$PROJECT_DIR$/sandbox-2" />
<option name="name" value="clean" />
</ExternalTaskPojo>
<ExternalTaskPojo>
<option name="description" value="Compiles test Java source." />
<option name="linkedExternalProjectPath" value="$PROJECT_DIR$/sandbox-2" />
<option name="name" value="compileTestJava" />
</ExternalTaskPojo>
<ExternalTaskPojo>
<option name="description" value="Displays all dependencies declared in root project 'sandbox-2'." />
<option name="linkedExternalProjectPath" value="$PROJECT_DIR$/sandbox-2" />
<option name="name" value="dependencies" />
</ExternalTaskPojo>
<ExternalTaskPojo>
<option name="description" value="Processes test resources." />
<option name="linkedExternalProjectPath" value="$PROJECT_DIR$/sandbox-2" />
<option name="name" value="processTestResources" />
</ExternalTaskPojo>
<ExternalTaskPojo>
<option name="description" value="Displays a help message." />
<option name="linkedExternalProjectPath" value="$PROJECT_DIR$/sandbox-2" />
<option name="name" value="help" />
</ExternalTaskPojo>
<ExternalTaskPojo>
<option name="description" value="Assembles and tests this project." />
<option name="linkedExternalProjectPath" value="$PROJECT_DIR$/sandbox-2" />
<option name="name" value="build" />
</ExternalTaskPojo>
<ExternalTaskPojo>
<option name="description" value="Assembles and tests this project and all projects it depends on." />
<option name="linkedExternalProjectPath" value="$PROJECT_DIR$/sandbox-2" />
<option name="name" value="buildNeeded" />
</ExternalTaskPojo>
<ExternalTaskPojo>
<option name="description" value="Bundles the project as a distribution." />
<option name="linkedExternalProjectPath" value="$PROJECT_DIR$/sandbox-2" />
<option name="name" value="distTar" />
</ExternalTaskPojo>
<ExternalTaskPojo>
<option name="description" value="Bundles the project as a distribution." />
<option name="linkedExternalProjectPath" value="$PROJECT_DIR$/sandbox-2" />
<option name="name" value="distZip" />
</ExternalTaskPojo>
<ExternalTaskPojo>
<option name="description" value="Displays the properties of root project 'sandbox-2'." />
<option name="linkedExternalProjectPath" value="$PROJECT_DIR$/sandbox-2" />
<option name="name" value="properties" />
</ExternalTaskPojo>
</list>
</value>
</entry>
</map>
</option>
<option name="modificationStamps">
<map>
<entry key="$PROJECT_DIR$/../PFT/addressbook_web_tests" value="1468073895125" />
<entry key="$PROJECT_DIR$/sandbox-2" value="1490524547919" />
</map>
</option>
<option name="projectBuildClasspath">
<map>
<entry key="$PROJECT_DIR$/sandbox-2">
<value>
<ExternalProjectBuildClasspathPojo>
<option name="modulesBuildClasspath">
<map>
<entry key="$PROJECT_DIR$/sandbox-2">
<value>
<ExternalModuleBuildClasspathPojo>
<option name="path" value="$PROJECT_DIR$/sandbox-2" />
</ExternalModuleBuildClasspathPojo>
</value>
</entry>
</map>
</option>
<option name="name" value="sandbox-2" />
<option name="projectBuildClasspath">
<list>
<option value="$USER_HOME$/.gradle/wrapper/dists/gradle-3.4.1-bin/71zneekfcxxu7l9p7nr2sc65s/gradle-3.4.1/lib/ant-1.9.6.jar" />
<option value="$USER_HOME$/.gradle/wrapper/dists/gradle-3.4.1-bin/71zneekfcxxu7l9p7nr2sc65s/gradle-3.4.1/lib/ant-launcher-1.9.6.jar" />
<option value="$USER_HOME$/.gradle/wrapper/dists/gradle-3.4.1-bin/71zneekfcxxu7l9p7nr2sc65s/gradle-3.4.1/lib/gradle-base-services-3.4.1.jar" />
<option value="$USER_HOME$/.gradle/wrapper/dists/gradle-3.4.1-bin/71zneekfcxxu7l9p7nr2sc65s/gradle-3.4.1/lib/gradle-base-services-groovy-3.4.1.jar" />
<option value="$USER_HOME$/.gradle/wrapper/dists/gradle-3.4.1-bin/71zneekfcxxu7l9p7nr2sc65s/gradle-3.4.1/lib/gradle-cli-3.4.1.jar" />
<option value="$USER_HOME$/.gradle/wrapper/dists/gradle-3.4.1-bin/71zneekfcxxu7l9p7nr2sc65s/gradle-3.4.1/lib/gradle-core-3.4.1.jar" />
<option value="$USER_HOME$/.gradle/wrapper/dists/gradle-3.4.1-bin/71zneekfcxxu7l9p7nr2sc65s/gradle-3.4.1/lib/gradle-docs-3.4.1.jar" />
<option value="$USER_HOME$/.gradle/wrapper/dists/gradle-3.4.1-bin/71zneekfcxxu7l9p7nr2sc65s/gradle-3.4.1/lib/gradle-installation-beacon-3.4.1.jar" />
<option value="$USER_HOME$/.gradle/wrapper/dists/gradle-3.4.1-bin/71zneekfcxxu7l9p7nr2sc65s/gradle-3.4.1/lib/gradle-jvm-services-3.4.1.jar" />
<option value="$USER_HOME$/.gradle/wrapper/dists/gradle-3.4.1-bin/71zneekfcxxu7l9p7nr2sc65s/gradle-3.4.1/lib/gradle-launcher-3.4.1.jar" />
<option value="$USER_HOME$/.gradle/wrapper/dists/gradle-3.4.1-bin/71zneekfcxxu7l9p7nr2sc65s/gradle-3.4.1/lib/gradle-logging-3.4.1.jar" />
<option value="$USER_HOME$/.gradle/wrapper/dists/gradle-3.4.1-bin/71zneekfcxxu7l9p7nr2sc65s/gradle-3.4.1/lib/gradle-messaging-3.4.1.jar" />
<option value="$USER_HOME$/.gradle/wrapper/dists/gradle-3.4.1-bin/71zneekfcxxu7l9p7nr2sc65s/gradle-3.4.1/lib/gradle-model-core-3.4.1.jar" />
<option value="$USER_HOME$/.gradle/wrapper/dists/gradle-3.4.1-bin/71zneekfcxxu7l9p7nr2sc65s/gradle-3.4.1/lib/gradle-model-groovy-3.4.1.jar" />
<option value="$USER_HOME$/.gradle/wrapper/dists/gradle-3.4.1-bin/71zneekfcxxu7l9p7nr2sc65s/gradle-3.4.1/lib/gradle-native-3.4.1.jar" />
<option value="$USER_HOME$/.gradle/wrapper/dists/gradle-3.4.1-bin/71zneekfcxxu7l9p7nr2sc65s/gradle-3.4.1/lib/gradle-open-api-3.4.1.jar" />
<option value="$USER_HOME$/.gradle/wrapper/dists/gradle-3.4.1-bin/71zneekfcxxu7l9p7nr2sc65s/gradle-3.4.1/lib/gradle-process-services-3.4.1.jar" />
<option value="$USER_HOME$/.gradle/wrapper/dists/gradle-3.4.1-bin/71zneekfcxxu7l9p7nr2sc65s/gradle-3.4.1/lib/gradle-resources-3.4.1.jar" />
<option value="$USER_HOME$/.gradle/wrapper/dists/gradle-3.4.1-bin/71zneekfcxxu7l9p7nr2sc65s/gradle-3.4.1/lib/gradle-script-kotlin-0.5.1.jar" />
<option value="$USER_HOME$/.gradle/wrapper/dists/gradle-3.4.1-bin/71zneekfcxxu7l9p7nr2sc65s/gradle-3.4.1/lib/gradle-tooling-api-3.4.1.jar" />
<option value="$USER_HOME$/.gradle/wrapper/dists/gradle-3.4.1-bin/71zneekfcxxu7l9p7nr2sc65s/gradle-3.4.1/lib/gradle-ui-3.4.1.jar" />
<option value="$USER_HOME$/.gradle/wrapper/dists/gradle-3.4.1-bin/71zneekfcxxu7l9p7nr2sc65s/gradle-3.4.1/lib/gradle-version-info-3.4.1.jar" />
<option value="$USER_HOME$/.gradle/wrapper/dists/gradle-3.4.1-bin/71zneekfcxxu7l9p7nr2sc65s/gradle-3.4.1/lib/gradle-wrapper-3.4.1.jar" />
<option value="$USER_HOME$/.gradle/wrapper/dists/gradle-3.4.1-bin/71zneekfcxxu7l9p7nr2sc65s/gradle-3.4.1/lib/groovy-all-2.4.7.jar" />
<option value="$USER_HOME$/.gradle/wrapper/dists/gradle-3.4.1-bin/71zneekfcxxu7l9p7nr2sc65s/gradle-3.4.1/lib/plugins/gradle-announce-3.4.1.jar" />
<option value="$USER_HOME$/.gradle/wrapper/dists/gradle-3.4.1-bin/71zneekfcxxu7l9p7nr2sc65s/gradle-3.4.1/lib/plugins/gradle-antlr-3.4.1.jar" />
<option value="$USER_HOME$/.gradle/wrapper/dists/gradle-3.4.1-bin/71zneekfcxxu7l9p7nr2sc65s/gradle-3.4.1/lib/plugins/gradle-build-cache-http-3.4.1.jar" />
<option value="$USER_HOME$/.gradle/wrapper/dists/gradle-3.4.1-bin/71zneekfcxxu7l9p7nr2sc65s/gradle-3.4.1/lib/plugins/gradle-build-comparison-3.4.1.jar" />
<option value="$USER_HOME$/.gradle/wrapper/dists/gradle-3.4.1-bin/71zneekfcxxu7l9p7nr2sc65s/gradle-3.4.1/lib/plugins/gradle-build-init-3.4.1.jar" />
<option value="$USER_HOME$/.gradle/wrapper/dists/gradle-3.4.1-bin/71zneekfcxxu7l9p7nr2sc65s/gradle-3.4.1/lib/plugins/gradle-code-quality-3.4.1.jar" />
<option value="$USER_HOME$/.gradle/wrapper/dists/gradle-3.4.1-bin/71zneekfcxxu7l9p7nr2sc65s/gradle-3.4.1/lib/plugins/gradle-composite-builds-3.4.1.jar" />
<option value="$USER_HOME$/.gradle/wrapper/dists/gradle-3.4.1-bin/71zneekfcxxu7l9p7nr2sc65s/gradle-3.4.1/lib/plugins/gradle-dependency-management-3.4.1.jar" />
<option value="$USER_HOME$/.gradle/wrapper/dists/gradle-3.4.1-bin/71zneekfcxxu7l9p7nr2sc65s/gradle-3.4.1/lib/plugins/gradle-diagnostics-3.4.1.jar" />
<option value="$USER_HOME$/.gradle/wrapper/dists/gradle-3.4.1-bin/71zneekfcxxu7l9p7nr2sc65s/gradle-3.4.1/lib/plugins/gradle-ear-3.4.1.jar" />
<option value="$USER_HOME$/.gradle/wrapper/dists/gradle-3.4.1-bin/71zneekfcxxu7l9p7nr2sc65s/gradle-3.4.1/lib/plugins/gradle-ide-3.4.1.jar" />
<option value="$USER_HOME$/.gradle/wrapper/dists/gradle-3.4.1-bin/71zneekfcxxu7l9p7nr2sc65s/gradle-3.4.1/lib/plugins/gradle-ide-native-3.4.1.jar" />
<option value="$USER_HOME$/.gradle/wrapper/dists/gradle-3.4.1-bin/71zneekfcxxu7l9p7nr2sc65s/gradle-3.4.1/lib/plugins/gradle-ide-play-3.4.1.jar" />
<option value="$USER_HOME$/.gradle/wrapper/dists/gradle-3.4.1-bin/71zneekfcxxu7l9p7nr2sc65s/gradle-3.4.1/lib/plugins/gradle-ivy-3.4.1.jar" />
<option value="$USER_HOME$/.gradle/wrapper/dists/gradle-3.4.1-bin/71zneekfcxxu7l9p7nr2sc65s/gradle-3.4.1/lib/plugins/gradle-jacoco-3.4.1.jar" />
<option value="$USER_HOME$/.gradle/wrapper/dists/gradle-3.4.1-bin/71zneekfcxxu7l9p7nr2sc65s/gradle-3.4.1/lib/plugins/gradle-javascript-3.4.1.jar" />
<option value="$USER_HOME$/.gradle/wrapper/dists/gradle-3.4.1-bin/71zneekfcxxu7l9p7nr2sc65s/gradle-3.4.1/lib/plugins/gradle-jetty-3.4.1.jar" />
<option value="$USER_HOME$/.gradle/wrapper/dists/gradle-3.4.1-bin/71zneekfcxxu7l9p7nr2sc65s/gradle-3.4.1/lib/plugins/gradle-language-groovy-3.4.1.jar" />
<option value="$USER_HOME$/.gradle/wrapper/dists/gradle-3.4.1-bin/71zneekfcxxu7l9p7nr2sc65s/gradle-3.4.1/lib/plugins/gradle-language-java-3.4.1.jar" />
<option value="$USER_HOME$/.gradle/wrapper/dists/gradle-3.4.1-bin/71zneekfcxxu7l9p7nr2sc65s/gradle-3.4.1/lib/plugins/gradle-language-jvm-3.4.1.jar" />
<option value="$USER_HOME$/.gradle/wrapper/dists/gradle-3.4.1-bin/71zneekfcxxu7l9p7nr2sc65s/gradle-3.4.1/lib/plugins/gradle-language-native-3.4.1.jar" />
<option value="$USER_HOME$/.gradle/wrapper/dists/gradle-3.4.1-bin/71zneekfcxxu7l9p7nr2sc65s/gradle-3.4.1/lib/plugins/gradle-language-scala-3.4.1.jar" />
<option value="$USER_HOME$/.gradle/wrapper/dists/gradle-3.4.1-bin/71zneekfcxxu7l9p7nr2sc65s/gradle-3.4.1/lib/plugins/gradle-maven-3.4.1.jar" />
<option value="$USER_HOME$/.gradle/wrapper/dists/gradle-3.4.1-bin/71zneekfcxxu7l9p7nr2sc65s/gradle-3.4.1/lib/plugins/gradle-osgi-3.4.1.jar" />
<option value="$USER_HOME$/.gradle/wrapper/dists/gradle-3.4.1-bin/71zneekfcxxu7l9p7nr2sc65s/gradle-3.4.1/lib/plugins/gradle-platform-base-3.4.1.jar" />
<option value="$USER_HOME$/.gradle/wrapper/dists/gradle-3.4.1-bin/71zneekfcxxu7l9p7nr2sc65s/gradle-3.4.1/lib/plugins/gradle-platform-jvm-3.4.1.jar" />
<option value="$USER_HOME$/.gradle/wrapper/dists/gradle-3.4.1-bin/71zneekfcxxu7l9p7nr2sc65s/gradle-3.4.1/lib/plugins/gradle-platform-native-3.4.1.jar" />
<option value="$USER_HOME$/.gradle/wrapper/dists/gradle-3.4.1-bin/71zneekfcxxu7l9p7nr2sc65s/gradle-3.4.1/lib/plugins/gradle-platform-play-3.4.1.jar" />
<option value="$USER_HOME$/.gradle/wrapper/dists/gradle-3.4.1-bin/71zneekfcxxu7l9p7nr2sc65s/gradle-3.4.1/lib/plugins/gradle-plugin-development-3.4.1.jar" />
<option value="$USER_HOME$/.gradle/wrapper/dists/gradle-3.4.1-bin/71zneekfcxxu7l9p7nr2sc65s/gradle-3.4.1/lib/plugins/gradle-plugin-use-3.4.1.jar" />
<option value="$USER_HOME$/.gradle/wrapper/dists/gradle-3.4.1-bin/71zneekfcxxu7l9p7nr2sc65s/gradle-3.4.1/lib/plugins/gradle-plugins-3.4.1.jar" />
<option value="$USER_HOME$/.gradle/wrapper/dists/gradle-3.4.1-bin/71zneekfcxxu7l9p7nr2sc65s/gradle-3.4.1/lib/plugins/gradle-publish-3.4.1.jar" />
<option value="$USER_HOME$/.gradle/wrapper/dists/gradle-3.4.1-bin/71zneekfcxxu7l9p7nr2sc65s/gradle-3.4.1/lib/plugins/gradle-reporting-3.4.1.jar" />
<option value="$USER_HOME$/.gradle/wrapper/dists/gradle-3.4.1-bin/71zneekfcxxu7l9p7nr2sc65s/gradle-3.4.1/lib/plugins/gradle-resources-http-3.4.1.jar" />
<option value="$USER_HOME$/.gradle/wrapper/dists/gradle-3.4.1-bin/71zneekfcxxu7l9p7nr2sc65s/gradle-3.4.1/lib/plugins/gradle-resources-s3-3.4.1.jar" />
<option value="$USER_HOME$/.gradle/wrapper/dists/gradle-3.4.1-bin/71zneekfcxxu7l9p7nr2sc65s/gradle-3.4.1/lib/plugins/gradle-resources-sftp-3.4.1.jar" />
<option value="$USER_HOME$/.gradle/wrapper/dists/gradle-3.4.1-bin/71zneekfcxxu7l9p7nr2sc65s/gradle-3.4.1/lib/plugins/gradle-scala-3.4.1.jar" />
<option value="$USER_HOME$/.gradle/wrapper/dists/gradle-3.4.1-bin/71zneekfcxxu7l9p7nr2sc65s/gradle-3.4.1/lib/plugins/gradle-signing-3.4.1.jar" />
<option value="$USER_HOME$/.gradle/wrapper/dists/gradle-3.4.1-bin/71zneekfcxxu7l9p7nr2sc65s/gradle-3.4.1/lib/plugins/gradle-test-kit-3.4.1.jar" />
<option value="$USER_HOME$/.gradle/wrapper/dists/gradle-3.4.1-bin/71zneekfcxxu7l9p7nr2sc65s/gradle-3.4.1/lib/plugins/gradle-testing-base-3.4.1.jar" />
<option value="$USER_HOME$/.gradle/wrapper/dists/gradle-3.4.1-bin/71zneekfcxxu7l9p7nr2sc65s/gradle-3.4.1/lib/plugins/gradle-testing-jvm-3.4.1.jar" />
<option value="$USER_HOME$/.gradle/wrapper/dists/gradle-3.4.1-bin/71zneekfcxxu7l9p7nr2sc65s/gradle-3.4.1/lib/plugins/gradle-testing-native-3.4.1.jar" />
<option value="$USER_HOME$/.gradle/wrapper/dists/gradle-3.4.1-bin/71zneekfcxxu7l9p7nr2sc65s/gradle-3.4.1/lib/plugins/gradle-tooling-api-builders-3.4.1.jar" />
<option value="$USER_HOME$/.gradle/wrapper/dists/gradle-3.4.1-bin/71zneekfcxxu7l9p7nr2sc65s/gradle-3.4.1/lib/plugins/gradle-workers-3.4.1.jar" />
<option value="$USER_HOME$/.gradle/wrapper/dists/gradle-3.4.1-bin/71zneekfcxxu7l9p7nr2sc65s/gradle-3.4.1/lib/plugins/ivy-2.2.0.jar" />
<option value="$PROJECT_DIR$/sandbox-2/buildSrc/src/main/java" />
<option value="$PROJECT_DIR$/sandbox-2/buildSrc/src/main/groovy" />
</list>
</option>
</ExternalProjectBuildClasspathPojo>
</value>
</entry>
</map>
</option>
<option name="externalProjectsViewState">
<projects_view />
</option>
</component>
<component name="IdeDocumentHistory">
<option name="CHANGED_PATHS">
<list>
<option value="$PROJECT_DIR$/sandbox-2/src/main/java/ru/pft/firstjava/HelloWorld.java" />
</list>
</option>
</component>
<component name="ProjectFrameBounds">
<option name="x" value="-8" />
<option name="y" value="-8" />
<option name="width" value="1382" />
<option name="height" value="744" />
</component>
<component name="ProjectLevelVcsManager" settingsEditedManually="true" />
<component name="ProjectView">
<navigator currentView="ProjectPane" proportions="" version="1">
<flattenPackages />
<showMembers />
<showModules />
<showLibraryContents />
<hideEmptyPackages />
<abbreviatePackageNames />
<autoscrollToSource />
<autoscrollFromSource />
<sortByType />
<manualOrder />
<foldersAlwaysOnTop value="true" />
</navigator>
<panes>
<pane id="Scratches" />
<pane id="Scope" />
<pane id="ProjectPane">
<subPane>
<PATH>
<PATH_ELEMENT>
<option name="myItemId" value="sandbox-2" />
<option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.ProjectViewProjectNode" />
</PATH_ELEMENT>
<PATH_ELEMENT>
<option name="myItemId" value="sandbox-2" />
<option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
</PATH_ELEMENT>
</PATH>
<PATH>
<PATH_ELEMENT>
<option name="myItemId" value="sandbox-2" />
<option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.ProjectViewProjectNode" />
</PATH_ELEMENT>
<PATH_ELEMENT>
<option name="myItemId" value="sandbox-2" />
<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>
<PATH>
<PATH_ELEMENT>
<option name="myItemId" value="sandbox-2" />
<option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.ProjectViewProjectNode" />
</PATH_ELEMENT>
<PATH_ELEMENT>
<option name="myItemId" value="sandbox-2" />
<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="main" />
<option name="myItemType" value="org.jetbrains.plugins.gradle.projectView.GradleTreeStructureProvider$GradleSourceSetDirectoryNode" />
</PATH_ELEMENT>
<PATH_ELEMENT>
<option name="myItemId" value="java" />
<option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
</PATH_ELEMENT>
<PATH_ELEMENT>
<option name="myItemId" value="firstjava" />
<option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
</PATH_ELEMENT>
</PATH>
</subPane>
</pane>
<pane id="PackagesPane" />
</panes>
</component>
<component name="PropertiesComponent">
<property name="last_opened_file_path" value="$PROJECT_DIR$/sandbox-2/build.gradle" />
<property name="project.structure.last.edited" value="Modules" />
<property name="project.structure.proportion" value="0.0" />
<property name="project.structure.side.proportion" value="0.2" />
<property name="last_directory_selection" value="$PROJECT_DIR$/sandbox-2/src/main/java" />
</component>
<component name="RecentsManager">
<key name="MoveClassesOrPackagesDialog.RECENTS_KEY">
<recent name="ru.pft.firstjava" />
</key>
</component>
<component name="RunManager" selected="Application.HelloWorld">
<configuration default="false" name="HelloWorld" type="Application" factoryName="Application" temporary="true" nameIsGenerated="true">
<extension name="coverage" enabled="false" merge="false" sample_coverage="true" runner="idea" />
<option name="MAIN_CLASS_NAME" value="ru.pft.firstjava.HelloWorld" />
<option name="VM_PARAMETERS" />
<option name="PROGRAM_PARAMETERS" />
<option name="WORKING_DIRECTORY" value="$PROJECT_DIR$" />
<option name="ALTERNATIVE_JRE_PATH_ENABLED" value="false" />
<option name="ALTERNATIVE_JRE_PATH" />
<option name="ENABLE_SWING_INSPECTOR" value="false" />
<option name="ENV_VARIABLES" />
<option name="PASS_PARENT_ENVS" value="true" />
<module name="sandbox-2_main" />
<envs />
<method />
</configuration>
<configuration default="true" type="#org.jetbrains.idea.devkit.run.PluginConfigurationType" factoryName="Plugin">
<module name="" />
<option name="VM_PARAMETERS" value="-Xmx512m -Xms256m -XX:MaxPermSize=250m -ea" />
<option name="PROGRAM_PARAMETERS" />
<predefined_log_file id="idea.log" enabled="true" />
<method />
</configuration>
<configuration default="true" type="AndroidRunConfigurationType" factoryName="Android App">
<module name="" />
<option name="DEPLOY" value="true" />
<option name="ARTIFACT_NAME" value="" />
<option name="PM_INSTALL_OPTIONS" value="" />
<option name="ACTIVITY_EXTRA_FLAGS" value="" />
<option name="MODE" value="default_activity" />
<option name="TARGET_SELECTION_MODE" value="SHOW_DIALOG" />
<option name="PREFERRED_AVD" value="" />
<option name="CLEAR_LOGCAT" value="false" />
<option name="SHOW_LOGCAT_AUTOMATICALLY" value="false" />
<option name="SKIP_NOOP_APK_INSTALLATIONS" value="true" />
<option name="FORCE_STOP_RUNNING_APP" value="true" />
<option name="DEBUGGER_TYPE" value="Java" />
<option name="USE_LAST_SELECTED_DEVICE" value="false" />
<option name="PREFERRED_AVD" value="" />
<Java />
<Profilers>
<option name="ENABLE_ADVANCED_PROFILING" value="true" />
<option name="GAPID_ENABLED" value="false" />
<option name="GAPID_DISABLE_PCS" value="false" />
<option name="SUPPORT_LIB_ENABLED" value="true" />
<option name="INSTRUMENTATION_ENABLED" value="true" />
</Profilers>
<option name="DEEP_LINK" value="" />
<option name="ACTIVITY_CLASS" value="" />
<method />
</configuration>
<configuration default="true" type="AndroidTestRunConfigurationType" factoryName="Android Tests">
<module name="" />
<option name="TESTING_TYPE" value="0" />
<option name="INSTRUMENTATION_RUNNER_CLASS" value="" />
<option name="METHOD_NAME" value="" />
<option name="CLASS_NAME" value="" />
<option name="PACKAGE_NAME" value="" />
<option name="EXTRA_OPTIONS" value="" />
<option name="TARGET_SELECTION_MODE" value="SHOW_DIALOG" />
<option name="PREFERRED_AVD" value="" />
<option name="CLEAR_LOGCAT" value="false" />
<option name="SHOW_LOGCAT_AUTOMATICALLY" value="false" />
<option name="SKIP_NOOP_APK_INSTALLATIONS" value="true" />
<option name="FORCE_STOP_RUNNING_APP" value="true" />
<option name="DEBUGGER_TYPE" value="Java" />
<option name="USE_LAST_SELECTED_DEVICE" value="false" />
<option name="PREFERRED_AVD" value="" />
<Java />
<Profilers>
<option name="ENABLE_ADVANCED_PROFILING" value="true" />
<option name="GAPID_ENABLED" value="false" />
<option name="GAPID_DISABLE_PCS" value="false" />
<option name="SUPPORT_LIB_ENABLED" value="true" />
<option name="INSTRUMENTATION_ENABLED" value="true" />
</Profilers>
<method />
</configuration>
<configuration default="true" type="Applet" factoryName="Applet">
<option name="HTML_USED" value="false" />
<option name="WIDTH" value="400" />
<option name="HEIGHT" value="300" />
<option name="POLICY_FILE" value="$APPLICATION_HOME_DIR$/bin/appletviewer.policy" />
<module />
<method />
</configuration>
<configuration default="true" type="Application" factoryName="Application">
<extension name="coverage" enabled="false" merge="false" sample_coverage="true" runner="idea" />
<option name="MAIN_CLASS_NAME" />
<option name="VM_PARAMETERS" />
<option name="PROGRAM_PARAMETERS" />
<option name="WORKING_DIRECTORY" value="$PROJECT_DIR$" />
<option name="ALTERNATIVE_JRE_PATH_ENABLED" value="false" />
<option name="ALTERNATIVE_JRE_PATH" />
<option name="ENABLE_SWING_INSPECTOR" value="false" />
<option name="ENV_VARIABLES" />
<option name="PASS_PARENT_ENVS" value="true" />
<module name="" />
<envs />
<method />
</configuration>
<configuration default="true" type="GradleRunConfiguration" factoryName="Gradle">
<ExternalSystemSettings>
<option name="executionName" />
<option name="externalProjectPath" />
<option name="externalSystemIdString" value="GRADLE" />
<option name="scriptParameters" />
<option name="taskDescriptions">
<list />
</option>
<option name="taskNames">
<list />
</option>
<option name="vmOptions" />
</ExternalSystemSettings>
<method />
</configuration>
<configuration default="true" type="JUnit" factoryName="JUnit">
<extension name="coverage" enabled="false" merge="false" sample_coverage="true" runner="idea" />
<module name="" />
<option name="ALTERNATIVE_JRE_PATH_ENABLED" value="false" />
<option name="ALTERNATIVE_JRE_PATH" />
<option name="PACKAGE_NAME" />
<option name="MAIN_CLASS_NAME" />
<option name="METHOD_NAME" />
<option name="TEST_OBJECT" value="class" />
<option name="VM_PARAMETERS" value="-ea" />
<option name="PARAMETERS" />
<option name="WORKING_DIRECTORY" value="$MODULE_DIR$" />
<option name="ENV_VARIABLES" />
<option name="PASS_PARENT_ENVS" value="true" />
<option name="TEST_SEARCH_SCOPE">
<value defaultName="singleModule" />
</option>
<envs />
<patterns />
<method />
</configuration>
<configuration default="true" type="JarApplication" factoryName="JAR Application">
<extension name="coverage" enabled="false" merge="false" sample_coverage="true" runner="idea" />
<envs />
<method />
</configuration>
<configuration default="true" type="Java Scratch" factoryName="Java Scratch">
<extension name="coverage" enabled="false" merge="false" sample_coverage="true" runner="idea" />
<option name="SCRATCH_FILE_ID" value="0" />
<option name="MAIN_CLASS_NAME" />
<option name="VM_PARAMETERS" />
<option name="PROGRAM_PARAMETERS" />
<option name="WORKING_DIRECTORY" />
<option name="ALTERNATIVE_JRE_PATH_ENABLED" value="false" />
<option name="ALTERNATIVE_JRE_PATH" />
<option name="ENABLE_SWING_INSPECTOR" value="false" />
<option name="ENV_VARIABLES" />
<option name="PASS_PARENT_ENVS" value="true" />
<module name="" />
<envs />
<method />
</configuration>
<configuration default="true" type="JetRunConfigurationType" factoryName="Kotlin">
<extension name="coverage" enabled="false" merge="false" sample_coverage="true" runner="idea" />
<option name="MAIN_CLASS_NAME" />
<option name="VM_PARAMETERS" />
<option name="PROGRAM_PARAMETERS" />
<option name="WORKING_DIRECTORY" />
<option name="ALTERNATIVE_JRE_PATH_ENABLED" value="false" />
<option name="ALTERNATIVE_JRE_PATH" />
<option name="PASS_PARENT_ENVS" value="true" />
<module name="sandbox-2" />
<envs />
<method />
</configuration>
<configuration default="true" type="KotlinStandaloneScriptRunConfigurationType" factoryName="Kotlin script">
<extension name="coverage" enabled="false" merge="false" sample_coverage="true" runner="idea" />
<option name="filePath" />
<option name="vmParameters" />
<option name="alternativeJrePath" />
<option name="programParameters" />
<option name="passParentEnvs" value="true" />
<option name="workingDirectory" />
<option name="isAlternativeJrePathEnabled" value="false" />
<envs />
<method />
</configuration>
<configuration default="true" type="Remote" factoryName="Remote">
<option name="USE_SOCKET_TRANSPORT" value="true" />
<option name="SERVER_MODE" value="false" />
<option name="SHMEM_ADDRESS" value="javadebug" />
<option name="HOST" value="localhost" />
<option name="PORT" value="5005" />
<method />
</configuration>
<configuration default="true" type="TestNG" factoryName="TestNG">
<extension name="coverage" enabled="false" merge="false" sample_coverage="true" runner="idea" />
<module name="" />
<option name="ALTERNATIVE_JRE_PATH_ENABLED" value="false" />
<option name="ALTERNATIVE_JRE_PATH" />
<option name="SUITE_NAME" />
<option name="PACKAGE_NAME" />
<option name="MAIN_CLASS_NAME" />
<option name="METHOD_NAME" />
<option name="GROUP_NAME" />
<option name="TEST_OBJECT" value="CLASS" />
<option name="VM_PARAMETERS" value="-ea" />
<option name="PARAMETERS" />
<option name="WORKING_DIRECTORY" value="$MODULE_DIR$" />
<option name="OUTPUT_DIRECTORY" />
<option name="ANNOTATION_TYPE" />
<option name="ENV_VARIABLES" />
<option name="PASS_PARENT_ENVS" value="true" />
<option name="TEST_SEARCH_SCOPE">
<value defaultName="singleModule" />
</option>
<option name="USE_DEFAULT_REPORTERS" value="false" />
<option name="PROPERTIES_FILE" />
<envs />
<properties />
<listeners />
<method />
</configuration>
<list size="1">
<item index="0" class="java.lang.String" itemvalue="Application.HelloWorld" />
</list>
<recent_temporary>
<list size="1">
<item index="0" class="java.lang.String" itemvalue="Application.HelloWorld" />
</list>
</recent_temporary>
</component>
<component name="ShelveChangesManager" show_recycled="false">
<option name="remove_strategy" value="false" />
</component>
<component name="TaskManager">
<task active="true" id="Default" summary="Default task">
<changelist id="e5e67120-5dc9-413b-a91a-9dc987ea3fe6" name="Default" comment="" />
<created>1490636564313</created>
<option name="number" value="Default" />
<option name="presentableId" value="Default" />
<updated>1490636564313</updated>
</task>
<servers />
</component>
<component name="ToolWindowManager">
<frame x="-8" y="-8" width="1382" height="744" extended-state="6" />
<editor active="true" />
<layout>
<window_info id="Palette" active="false" anchor="right" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" 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" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="6" side_tool="false" content_ui="tabs" />
<window_info id="Nl-Palette" active="false" anchor="left" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="-1" side_tool="false" content_ui="tabs" />
<window_info id="Messages" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="-1" side_tool="false" content_ui="tabs" />
<window_info id="Palette	" active="false" anchor="right" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="-1" side_tool="false" content_ui="tabs" />
<window_info id="Image Layers" active="false" anchor="left" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="-1" side_tool="false" content_ui="tabs" />
<window_info id="Capture Analysis" active="false" anchor="right" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="-1" side_tool="false" content_ui="tabs" />
<window_info id="Event Log" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.3289689" 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="true" show_stripe_button="true" weight="0.3289689" 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" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="-1" side_tool="false" content_ui="tabs" />
<window_info id="Properties" active="false" anchor="right" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="-1" side_tool="false" content_ui="tabs" />
<window_info id="Terminal" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="-1" side_tool="false" content_ui="tabs" />
<window_info id="Capture Tool" active="false" anchor="left" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="-1" side_tool="false" content_ui="tabs" />
<window_info id="Designer" active="false" anchor="left" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" 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" show_stripe_button="true" weight="0.24962178" sideWeight="0.5" order="0" side_tool="false" content_ui="combo" />
<window_info id="Gradle" active="false" anchor="right" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" 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" show_stripe_button="true" weight="0.25" sideWeight="0.5" order="1" 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" show_stripe_button="true" weight="0.25" sideWeight="0.5" order="1" side_tool="false" content_ui="tabs" />
<window_info id="UI Designer" active="false" anchor="left" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="-1" side_tool="false" content_ui="tabs" />
<window_info id="Theme Preview" active="false" anchor="right" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="-1" side_tool="false" content_ui="tabs" />
<window_info id="Debug" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.4" sideWeight="0.5" order="3" side_tool="false" content_ui="tabs" />
<window_info id="Favorites" active="false" anchor="left" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="-1" side_tool="true" content_ui="tabs" />
<window_info id="Cvs" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.25" sideWeight="0.5" order="4" side_tool="false" content_ui="tabs" />
<window_info id="Hierarchy" active="false" anchor="right" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.25" sideWeight="0.5" order="2" side_tool="false" content_ui="combo" />
<window_info id="Message" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="0" side_tool="false" content_ui="tabs" />
<window_info id="Commander" active="false" anchor="right" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.4" sideWeight="0.5" order="0" side_tool="false" content_ui="tabs" />
<window_info id="Find" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="1" side_tool="false" content_ui="tabs" />
<window_info id="Inspection" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.4" sideWeight="0.5" order="5" side_tool="false" content_ui="tabs" />
</layout>
</component>
<component name="VcsContentAnnotationSettings">
<option name="myLimit" value="2678400000" />
</component>
<component name="XDebuggerManager">
<breakpoint-manager />
<watches-manager />
</component>
<component name="antWorkspaceConfiguration">
<option name="IS_AUTOSCROLL_TO_SOURCE" value="false" />
<option name="FILTER_TARGETS" value="false" />
</component>
<component name="editorHistoryManager">
<entry file="file://$PROJECT_DIR$/sandbox-2/src/main/java/ru/pft/firstjava/HelloWorld.java">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="68">
<caret line="6" column="1" lean-forward="true" selection-start-line="6" selection-start-column="1" selection-end-line="6" selection-end-column="1" />
<folding />
</state>
</provider>
</entry>
</component>
<component name="masterDetails">
<states>
<state key="ArtifactsStructureConfigurable.UI">
<settings>
<artifact-editor />
<splitter-proportions>
<option name="proportions">
<list>
<option value="0.2" />
</list>
</option>
</splitter-proportions>
</settings>
</state>
<state key="FacetStructureConfigurable.UI">
<settings>
<last-edited>No facets are configured</last-edited>
<splitter-proportions>
<option name="proportions">
<list>
<option value="0.2" />
</list>
</option>
</splitter-proportions>
</settings>
</state>
<state key="GlobalLibrariesConfigurable.UI">
<settings>
<splitter-proportions>
<option name="proportions">
<list>
<option value="0.2" />
</list>
</option>
</splitter-proportions>
</settings>
</state>
<state key="JdkListConfigurable.UI">
<settings>
<last-edited>1.8</last-edited>
<splitter-proportions>
<option name="proportions">
<list>
<option value="0.2" />
</list>
</option>
</splitter-proportions>
</settings>
</state>
<state key="ModuleStructureConfigurable.UI">
<settings>
<last-edited>sandbox-2</last-edited>
<splitter-proportions>
<option name="proportions">
<list>
<option value="0.2" />
<option value="0.6" />
</list>
</option>
</splitter-proportions>
</settings>
</state>
<state key="ProjectJDKs.UI">
<settings>
<last-edited>1.8</last-edited>
<splitter-proportions>
<option name="proportions">
<list>
<option value="0.2" />
</list>
</option>
</splitter-proportions>
</settings>
</state>
<state key="ProjectLibrariesConfigurable.UI">
<settings>
<splitter-proportions>
<option name="proportions">
<list>
<option value="0.2" />
</list>
</option>
</splitter-proportions>
</settings>
</state>
</states>
</component>
</project>
|
{
"content_hash": "e819e1e86a87f6a37601d1e522b29e61",
"timestamp": "",
"source": "github",
"line_count": 851,
"max_line_length": 248,
"avg_line_length": 62.13396004700353,
"alnum_prop": 0.6228723806641955,
"repo_name": "DariaChurkina/java_pft_new",
"id": "00d647941c56e955bfab7c398f4f1006777f620e",
"size": "52876",
"binary": false,
"copies": "1",
"ref": "refs/heads/master",
"path": ".idea/workspace.xml",
"mode": "33188",
"license": "apache-2.0",
"language": [
{
"name": "Java",
"bytes": "6641"
}
],
"symlink_target": ""
}
|
<?xml version="1.0" encoding="utf-8"?>
<!--
~ Copyright (C) 2018 Citrus-CAF Project
~ Licensed under the Apache License, Version 2.0 (the "License");
~ you may not use this file except in compliance with the License.
~ You may obtain a copy of the License at
~
~ http://www.apache.org/licenses/LICENSE-2.0
~
~ Unless required by applicable law or agreed to in writing, software
~ distributed under the License is distributed on an "AS IS" BASIS,
~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
~ See the License for the specific language governing permissions and
~ limitations under the License.
~
-->
<resources>
<style name="TelecomDialerSettingsActionOverflowButtonStyle"
parent="@android:style/Widget.Material.ActionButton.Overflow">
<item name="android:src">@*com.android.server.telecom:drawable/ic_more_vert_24dp</item>
</style>
<style name="BlockedNumbersButton">
<item name="android:textColor">@*android:color/holo_blue_bright</item>
<item name="android:textSize">@*com.android.server.telecom:dimen/blocked_numbers_font_size</item>
<item name="android:textAllCaps">true</item>
</style>
</resources>
|
{
"content_hash": "e039bc925f2fe062f72e157ef5bb46f6",
"timestamp": "",
"source": "github",
"line_count": 31,
"max_line_length": 105,
"avg_line_length": 39.61290322580645,
"alnum_prop": 0.7052117263843648,
"repo_name": "Citrus-CAF/packages_apps_Margarita",
"id": "63ff8a373064866efcc3e322fc74a8f0399f7483",
"size": "1228",
"binary": false,
"copies": "1",
"ref": "refs/heads/p9x-exp",
"path": "app/src/main/assets/overlays/com.android.server.telecom/type3-common/values/styles_common.xml",
"mode": "33188",
"license": "apache-2.0",
"language": [
{
"name": "Java",
"bytes": "10218"
},
{
"name": "Kotlin",
"bytes": "16507"
},
{
"name": "Shell",
"bytes": "2251"
}
],
"symlink_target": ""
}
|
/*
* function rand , 产生随机整数 。
*/
function rand( minDit , maxDit ) {
return Math.floor(Math.random() * (maxDit - minDit + 1)) + minDit;
};
/*
* function getViewSize ,获取屏幕可视范围的尺寸。
*/
function getViewSize(){
var de=document.documentElement;
var db=document.body;
var viewW=de.clientWidth==0 ? db.clientWidth : de.clientWidth;
var viewH=de.clientHeight==0 ? db.clientHeight : de.clientHeight;
return Array(viewW ,viewH);
};
|
{
"content_hash": "952f16f41f365948c3a1e48d4f01df5c",
"timestamp": "",
"source": "github",
"line_count": 17,
"max_line_length": 67,
"avg_line_length": 25.176470588235293,
"alnum_prop": 0.7009345794392523,
"repo_name": "demon7452/demon7452.github.io",
"id": "85af593c4cf9bf244d840f5e219701d914ae30cf",
"size": "470",
"binary": false,
"copies": "1",
"ref": "refs/heads/master",
"path": "homepage/js/fun.base.js",
"mode": "33188",
"license": "mit",
"language": [
{
"name": "CSS",
"bytes": "17960"
},
{
"name": "HTML",
"bytes": "53684"
},
{
"name": "JavaScript",
"bytes": "45194"
},
{
"name": "Ruby",
"bytes": "1038"
}
],
"symlink_target": ""
}
|
package org.redhelix.core.computer.system.power.metric;
import org.redhelix.core.computer.system.power.RedHxPowerWatts;
/**
*
*
*
* @since RedHelix Version 0.1
* @author Hank Bruning
*
*/
public interface RedHxPowerMinimumConsumedWatts extends RedHxPowerWatts {
}
|
{
"content_hash": "4200acc41af7e5279ff9ec9f5e8e0365",
"timestamp": "",
"source": "github",
"line_count": 15,
"max_line_length": 73,
"avg_line_length": 18.266666666666666,
"alnum_prop": 0.7591240875912408,
"repo_name": "RedHelixOrg/RedHelix-1",
"id": "72ed53a5c62b78f705d8f329f1af9eb3a91cca77",
"size": "859",
"binary": false,
"copies": "1",
"ref": "refs/heads/master",
"path": "redhx-build-all/redhx-core-api/src/main/java/org/redhelix/core/computer/system/power/metric/RedHxPowerMinimumConsumedWatts.java",
"mode": "33188",
"license": "apache-2.0",
"language": [
{
"name": "Batchfile",
"bytes": "2136"
},
{
"name": "HTML",
"bytes": "434"
},
{
"name": "Java",
"bytes": "677051"
}
],
"symlink_target": ""
}
|
export { PartlyCloudy20 as default } from "../../";
|
{
"content_hash": "c2d032fe16fccf35cc1c5a3055da1fca",
"timestamp": "",
"source": "github",
"line_count": 1,
"max_line_length": 51,
"avg_line_length": 52,
"alnum_prop": 0.6346153846153846,
"repo_name": "markogresak/DefinitelyTyped",
"id": "7dd5a97a53c84f7774e73c70a4ced6e90247aa2c",
"size": "52",
"binary": false,
"copies": "24",
"ref": "refs/heads/master",
"path": "types/carbon__icons-react/es/partly-cloudy/20.d.ts",
"mode": "33188",
"license": "mit",
"language": [
{
"name": "CoffeeScript",
"bytes": "15"
},
{
"name": "Protocol Buffer",
"bytes": "678"
},
{
"name": "TypeScript",
"bytes": "17426898"
}
],
"symlink_target": ""
}
|
package org.apache.activemq.broker.ft;
import java.util.concurrent.CountDownLatch;
import java.util.concurrent.TimeUnit;
import javax.jms.Connection;
import javax.jms.Destination;
import javax.jms.ExceptionListener;
import javax.jms.JMSException;
import javax.jms.Message;
import javax.jms.MessageProducer;
import javax.jms.Session;
import org.apache.activemq.ActiveMQConnectionFactory;
import org.apache.activemq.JmsTopicSendReceiveWithTwoConnectionsTest;
import org.apache.activemq.broker.BrokerService;
import org.apache.activemq.store.jdbc.DataSourceServiceSupport;
import org.apache.activemq.store.jdbc.JDBCPersistenceAdapter;
import org.apache.activemq.util.DefaultIOExceptionHandler;
import org.apache.activemq.util.IOHelper;
import org.apache.derby.jdbc.EmbeddedDataSource;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
public class DbRestartJDBCQueueTest extends JmsTopicSendReceiveWithTwoConnectionsTest implements ExceptionListener {
private static final transient Logger LOG = LoggerFactory.getLogger(DbRestartJDBCQueueTest.class);
public boolean transactedSends = false;
public int failureCount = 25; // or 20 for even tx batch boundary
int inflightMessageCount = 0;
EmbeddedDataSource sharedDs;
BrokerService broker;
final CountDownLatch restartDBLatch = new CountDownLatch(1);
protected void setUp() throws Exception {
setAutoFail(true);
topic = false;
verbose = true;
// startup db
sharedDs = (EmbeddedDataSource) DataSourceServiceSupport.createDataSource(IOHelper.getDefaultDataDirectory());
broker = new BrokerService();
DefaultIOExceptionHandler handler = new DefaultIOExceptionHandler();
handler.setIgnoreSQLExceptions(false);
handler.setStopStartConnectors(true);
broker.setIoExceptionHandler(handler);
broker.addConnector("tcp://localhost:0");
broker.setUseJmx(false);
broker.setPersistent(true);
broker.setDeleteAllMessagesOnStartup(true);
JDBCPersistenceAdapter persistenceAdapter = new JDBCPersistenceAdapter();
persistenceAdapter.setDataSource(sharedDs);
persistenceAdapter.setUseLock(false);
persistenceAdapter.setLockKeepAlivePeriod(500);
persistenceAdapter.getLocker().setLockAcquireSleepInterval(500);
broker.setPersistenceAdapter(persistenceAdapter);
broker.start();
super.setUp();
}
protected void tearDown() throws Exception {
super.tearDown();
broker.stop();
}
protected Session createSendSession(Connection sendConnection) throws Exception {
if (transactedSends) {
return sendConnection.createSession(true, Session.SESSION_TRANSACTED);
} else {
return sendConnection.createSession(false, Session.AUTO_ACKNOWLEDGE);
}
}
protected ActiveMQConnectionFactory createConnectionFactory() throws Exception {
ActiveMQConnectionFactory f =
new ActiveMQConnectionFactory("failover://" + broker.getTransportConnectors().get(0).getPublishableConnectString());
f.setExceptionListener(this);
return f;
}
@Override
protected void messageSent() throws Exception {
if (++inflightMessageCount == failureCount) {
LOG.info("STOPPING DB!@!!!!");
final EmbeddedDataSource ds = sharedDs;
ds.setShutdownDatabase("shutdown");
try {
ds.getConnection();
} catch (Exception ignored) {
}
LOG.info("DB STOPPED!@!!!!");
Thread dbRestartThread = new Thread("db-re-start-thread") {
public void run() {
LOG.info("Sleeping for 10 seconds before allowing db restart");
try {
restartDBLatch.await(10, TimeUnit.SECONDS);
} catch (InterruptedException e) {
e.printStackTrace();
}
ds.setShutdownDatabase("false");
LOG.info("DB RESTARTED!@!!!!");
}
};
dbRestartThread.start();
}
}
protected void sendToProducer(MessageProducer producer,
Destination producerDestination, Message message) throws JMSException {
{
// do some retries as db failures filter back to the client until broker sees
// db lock failure and shuts down
boolean sent = false;
do {
try {
producer.send(producerDestination, message);
if (transactedSends && ((inflightMessageCount+1) %10 == 0 || (inflightMessageCount+1) >= messageCount)) {
LOG.info("committing on send: " + inflightMessageCount + " message: " + message);
session.commit();
}
sent = true;
} catch (JMSException e) {
LOG.info("Exception on producer send:", e);
try {
Thread.sleep(2000);
} catch (InterruptedException ignored) {
}
}
} while(!sent);
}
}
@Override
public void onException(JMSException exception) {
LOG.error("exception on connection: ", exception);
}
}
|
{
"content_hash": "649f14e91c8997b9cf79f6df0e13e12f",
"timestamp": "",
"source": "github",
"line_count": 143,
"max_line_length": 132,
"avg_line_length": 38.0979020979021,
"alnum_prop": 0.6349118942731278,
"repo_name": "ryanemerson/activemq-artemis",
"id": "9b21c441ea6916757ca337d061dd868b2c3d6e6d",
"size": "6251",
"binary": false,
"copies": "2",
"ref": "refs/heads/master",
"path": "tests/activemq5-unit-tests/src/test/java/org/apache/activemq/broker/ft/DbRestartJDBCQueueTest.java",
"mode": "33188",
"license": "apache-2.0",
"language": [
{
"name": "Batchfile",
"bytes": "5879"
},
{
"name": "C",
"bytes": "2088"
},
{
"name": "C++",
"bytes": "39402"
},
{
"name": "CSS",
"bytes": "17993"
},
{
"name": "HTML",
"bytes": "657633"
},
{
"name": "Java",
"bytes": "23949283"
},
{
"name": "JavaScript",
"bytes": "31054"
},
{
"name": "Python",
"bytes": "3626"
},
{
"name": "Ruby",
"bytes": "3412"
},
{
"name": "Shell",
"bytes": "11252"
}
],
"symlink_target": ""
}
|
package org.gradle.api.artifacts.resolution;
import org.gradle.api.Incubating;
import java.util.Set;
/**
* Software component representing a JVM library.
*
* @since 1.12
*/
@Incubating
public interface JvmLibrary extends SoftwareComponent {
Set<JvmLibrarySourcesArtifact> getSourcesArtifacts();
Set<JvmLibraryJavadocArtifact> getJavadocArtifacts();
}
|
{
"content_hash": "bf0d5185f8c798f14a0bb15b072e498c",
"timestamp": "",
"source": "github",
"line_count": 17,
"max_line_length": 57,
"avg_line_length": 21.58823529411765,
"alnum_prop": 0.773841961852861,
"repo_name": "Pushjet/Pushjet-Android",
"id": "007c2830f6dca6698f9bd3ecfb18f6a114206f2e",
"size": "982",
"binary": false,
"copies": "1",
"ref": "refs/heads/master",
"path": "gradle/wrapper/dists/gradle-1.12-all/4ff8jj5a73a7zgj5nnzv1ubq0/gradle-1.12/src/core/org/gradle/api/artifacts/resolution/JvmLibrary.java",
"mode": "33188",
"license": "bsd-2-clause",
"language": [
{
"name": "Java",
"bytes": "92331"
}
],
"symlink_target": ""
}
|
/* rsa-verify.c
*
*/
/* nettle, low-level cryptographics library
*
* Copyright (C) 2002 Niels Möller
*
* The nettle library is free software; you can redistribute it and/or modify
* it under the terms of the GNU Lesser General Public License as published by
* the Free Software Foundation; either version 2.1 of the License, or (at your
* option) any later version.
*
* The nettle library is distributed in the hope that it will be useful, but
* WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
* or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public
* License for more details.
*
* You should have received a copy of the GNU Lesser General Public License
* along with the nettle library; see the file COPYING.LIB. If not, write to
* the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
* MA 02111-1301, USA.
*/
#if HAVE_CONFIG_H
# include "config.h"
#endif
#include <errno.h>
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
#include "rsa.h"
#include "io.h"
static int
read_signature(const char *name, mpz_t s)
{
char *buffer;
unsigned length;
int res;
length = read_file(name, 0, &buffer);
if (!length)
return 0;
res = (mpz_set_str(s, buffer, 16) == 0);
free(buffer);
return res;
}
int
main(int argc, char **argv)
{
struct rsa_public_key key;
struct sha1_ctx hash;
mpz_t s;
if (argc != 3)
{
werror("Usage: rsa-verify PUBLIC-KEY SIGNATURE-FILE < FILE\n");
return EXIT_FAILURE;
}
rsa_public_key_init(&key);
if (!read_rsa_key(argv[1], &key, NULL))
{
werror("Invalid key\n");
return EXIT_FAILURE;
}
mpz_init(s);
if (!read_signature(argv[2], s))
{
werror("Failed to read signature file `%s'\n",
argv[2]);
return EXIT_FAILURE;
}
sha1_init(&hash);
if (!hash_file(&nettle_sha1, &hash, stdin))
{
werror("Failed reading stdin: %s\n",
strerror(errno));
return 0;
}
if (!rsa_sha1_verify(&key, &hash, s))
{
werror("Invalid signature!\n");
return EXIT_FAILURE;
}
mpz_clear(s);
rsa_public_key_clear(&key);
return EXIT_SUCCESS;
}
|
{
"content_hash": "6ab832e3e73c3aad3d20682c673f6ef1",
"timestamp": "",
"source": "github",
"line_count": 102,
"max_line_length": 79,
"avg_line_length": 21.676470588235293,
"alnum_prop": 0.6413387607417458,
"repo_name": "GaloisInc/hacrypto",
"id": "375e18320af5cdc4f9bba3c7782ad7bfa7ab7801",
"size": "2212",
"binary": false,
"copies": "6",
"ref": "refs/heads/master",
"path": "src/C/nettle/nettle-2.7.1/examples/rsa-verify.c",
"mode": "33188",
"license": "bsd-3-clause",
"language": [
{
"name": "AGS Script",
"bytes": "62991"
},
{
"name": "Ada",
"bytes": "443"
},
{
"name": "AppleScript",
"bytes": "4518"
},
{
"name": "Assembly",
"bytes": "25398957"
},
{
"name": "Awk",
"bytes": "36188"
},
{
"name": "Batchfile",
"bytes": "530568"
},
{
"name": "C",
"bytes": "344517599"
},
{
"name": "C#",
"bytes": "7553169"
},
{
"name": "C++",
"bytes": "36635617"
},
{
"name": "CMake",
"bytes": "213895"
},
{
"name": "CSS",
"bytes": "139462"
},
{
"name": "Coq",
"bytes": "320964"
},
{
"name": "Cuda",
"bytes": "103316"
},
{
"name": "DIGITAL Command Language",
"bytes": "1545539"
},
{
"name": "DTrace",
"bytes": "33228"
},
{
"name": "Emacs Lisp",
"bytes": "22827"
},
{
"name": "GDB",
"bytes": "93449"
},
{
"name": "Gnuplot",
"bytes": "7195"
},
{
"name": "Go",
"bytes": "393057"
},
{
"name": "HTML",
"bytes": "41466430"
},
{
"name": "Hack",
"bytes": "22842"
},
{
"name": "Haskell",
"bytes": "64053"
},
{
"name": "IDL",
"bytes": "3205"
},
{
"name": "Java",
"bytes": "49060925"
},
{
"name": "JavaScript",
"bytes": "3476841"
},
{
"name": "Jolie",
"bytes": "412"
},
{
"name": "Lex",
"bytes": "26290"
},
{
"name": "Logos",
"bytes": "108920"
},
{
"name": "Lua",
"bytes": "427"
},
{
"name": "M4",
"bytes": "2508986"
},
{
"name": "Makefile",
"bytes": "29393197"
},
{
"name": "Mathematica",
"bytes": "48978"
},
{
"name": "Mercury",
"bytes": "2053"
},
{
"name": "Module Management System",
"bytes": "1313"
},
{
"name": "NSIS",
"bytes": "19051"
},
{
"name": "OCaml",
"bytes": "981255"
},
{
"name": "Objective-C",
"bytes": "4099236"
},
{
"name": "Objective-C++",
"bytes": "243505"
},
{
"name": "PHP",
"bytes": "22677635"
},
{
"name": "Pascal",
"bytes": "99565"
},
{
"name": "Perl",
"bytes": "35079773"
},
{
"name": "Prolog",
"bytes": "350124"
},
{
"name": "Python",
"bytes": "1242241"
},
{
"name": "Rebol",
"bytes": "106436"
},
{
"name": "Roff",
"bytes": "16457446"
},
{
"name": "Ruby",
"bytes": "49694"
},
{
"name": "Scheme",
"bytes": "138999"
},
{
"name": "Shell",
"bytes": "10192290"
},
{
"name": "Smalltalk",
"bytes": "22630"
},
{
"name": "Smarty",
"bytes": "51246"
},
{
"name": "SourcePawn",
"bytes": "542790"
},
{
"name": "SystemVerilog",
"bytes": "95379"
},
{
"name": "Tcl",
"bytes": "35696"
},
{
"name": "TeX",
"bytes": "2351627"
},
{
"name": "Verilog",
"bytes": "91541"
},
{
"name": "Visual Basic",
"bytes": "88541"
},
{
"name": "XS",
"bytes": "38300"
},
{
"name": "Yacc",
"bytes": "132970"
},
{
"name": "eC",
"bytes": "33673"
},
{
"name": "q",
"bytes": "145272"
},
{
"name": "sed",
"bytes": "1196"
}
],
"symlink_target": ""
}
|
<?php
namespace Caribbean\TourismBundle\Form;
use Symfony\Component\Form\AbstractType;
use Symfony\Component\Form\FormBuilderInterface;
use Symfony\Component\OptionsResolver\OptionsResolverInterface;
class GaleriaType extends AbstractType
{
/**
* @param FormBuilderInterface $builder
* @param array $options
*/
public function buildForm(FormBuilderInterface $builder, array $options)
{
$builder
->add('poi')
;
}
/**
* @param OptionsResolverInterface $resolver
*/
public function setDefaultOptions(OptionsResolverInterface $resolver)
{
$resolver->setDefaults(array(
'data_class' => 'Caribbean\TourismBundle\Entity\Galeria'
));
}
/**
* @return string
*/
public function getName()
{
return 'caribbean_tourismbundle_galeria';
}
}
|
{
"content_hash": "bdec21ac7447e9e1f7d121b068808548",
"timestamp": "",
"source": "github",
"line_count": 39,
"max_line_length": 76,
"avg_line_length": 22.615384615384617,
"alnum_prop": 0.645124716553288,
"repo_name": "dundivet/codespring",
"id": "21f0f8bb4a1d85645c0fc59875cb4b250f22fab0",
"size": "882",
"binary": false,
"copies": "1",
"ref": "refs/heads/master",
"path": "src/Caribbean/TourismBundle/Form/GaleriaType.php",
"mode": "33188",
"license": "mit",
"language": [
{
"name": "ApacheConf",
"bytes": "3073"
},
{
"name": "CSS",
"bytes": "176"
},
{
"name": "JavaScript",
"bytes": "231"
},
{
"name": "PHP",
"bytes": "185973"
}
],
"symlink_target": ""
}
|
@interface HistoryTableViewCell : UITableViewCell
@property (weak, nonatomic) IBOutlet UILabel *dateLabel;
@property (weak, nonatomic) IBOutlet UILabel *timeLabel;
@property (weak, nonatomic) IBOutlet UILabel *nameLabel;
@property (weak, nonatomic) IBOutlet UILabel *scoreLabel;
@property (nonatomic) NSInteger indexNumber;
@property (nonatomic,strong)NSDictionary *dict;
@end
|
{
"content_hash": "6bb218aae9b6b23df36ec0ef0e78b7ad",
"timestamp": "",
"source": "github",
"line_count": 12,
"max_line_length": 57,
"avg_line_length": 31.75,
"alnum_prop": 0.7979002624671916,
"repo_name": "xiaowei19891014/hospitalbible",
"id": "022161a91b9f3ba0802f7e80ec141392b1504bc9",
"size": "552",
"binary": false,
"copies": "1",
"ref": "refs/heads/master",
"path": "HospitalBible-new/HospitalBible/Home/View/HistoryTableViewCell.h",
"mode": "33188",
"license": "apache-2.0",
"language": [
{
"name": "C",
"bytes": "1933"
},
{
"name": "Objective-C",
"bytes": "2128060"
}
],
"symlink_target": ""
}
|
//go:generate go-bindata -o bindata/bindata.go -pkg bindata images/ html/ js/
package main
import (
"bytes"
"crypto/sha1"
"encoding/json"
"flag"
"fmt"
"io"
"io/ioutil"
"log"
"net/http"
"net/url"
"os"
"path/filepath"
"regexp"
"strings"
"sync/atomic"
"text/template"
"time"
"github.com/google-research/korvapuusti/experiments/partial_loudness/analysis"
"github.com/google-research/korvapuusti/experiments/partial_loudness/bindata"
"github.com/google-research/korvapuusti/tools/synthesize/signals"
)
const (
rate = 48000
)
func MustAsset(n string) []byte {
b, err := bindata.Asset(n)
if err != nil {
panic(err)
}
return b
}
var (
signalRequestReg = regexp.MustCompile("^/signal/(.*)\\.\\w+\\.wav$")
indexTemplate = template.Must(template.New("index.html").Parse(string(MustAsset("html/index.html"))))
)
var (
experimentOutput = flag.String("experiment_output",
filepath.Join(os.Getenv("HOME"), "partial_loudness_output/evaluations.json"),
"Path to store the experiment results to.")
listen = flag.String("listen", "localhost:12000", "Interface and port to listen for connections on.")
erbWidth = flag.Float64("erb_width", 0.0, "Preset ERB width for white noise in the experiment.")
maskLevel = flag.Float64("mask_level", 0.0, "Preset mask level for the experiment.")
probeLevel = flag.Float64("probe_level", 0.0, "Preset probe level for the experiment.")
probeFrequency = flag.Float64("probe_frequency", 0.0, "Preset probe freqency for the experiment.")
erbApart = flag.Float64("erb_apart", 0.0, "Preset ERB apart for the experiment.")
exactMaskFrequencies = flag.String("exact_mask_frequencies", "", "Preset exact frequencies to present the masker at.")
extraMasks = flag.String("extra_masks", "", "Preset extra masks.")
signalType = flag.String("signal_type", "", "Preset signal type for the experiment.")
hideControls = flag.Bool("hide_controls", false, "Whether to hide the controls in the experiment.")
headphoneFrequencyResponseFile = flag.String("headphone_frequency_response_file", "", "Frequency response file for headphones used, produced by the calibrate/calibrate.html tool.")
mergedOutput = flag.String("merged_output", "", "If provided, will read `experiment_output` file, merge all evaluations of the same probe/masker pair into an average, and store in this file.")
)
type server struct {
headphoneFrequencyResponse signals.FrequencyResponse
headphoneFrequencyResponseHash string
}
func (s *server) renderIndex(w http.ResponseWriter, r *http.Request) {
w.Header().Set("Content-Type", "text/html")
if err := indexTemplate.Execute(w, map[string]interface{}{
"ExperimentOutput": *experimentOutput,
"ERBWidth": *erbWidth,
"MaskLevel": *maskLevel,
"ProbeLevel": *probeLevel,
"ProbeFrequency": *probeFrequency,
"ERBApart": *erbApart,
"SignalType": *signalType,
"HideControls": *hideControls,
"ExactMaskFrequencies": *exactMaskFrequencies,
"ExtraMasks": *extraMasks,
"HeadphoneFrequencyResponseFile": *headphoneFrequencyResponseFile,
}); err != nil {
s.handleError(w, err)
return
}
}
func (s *server) handleError(w http.ResponseWriter, err error) {
log.Print(err)
http.Error(w, err.Error(), http.StatusInternalServerError)
}
func (s *server) renderSignal(w http.ResponseWriter, r *http.Request) {
match := signalRequestReg.FindStringSubmatch(r.URL.Path)
if match == nil {
s.handleError(w, fmt.Errorf("missing signal spec in path %q", r.URL.Path))
return
}
escaped, err := url.QueryUnescape(match[1])
if err != nil {
s.handleError(w, fmt.Errorf("unable to unescape signal spec %q", match[1]))
return
}
wrapper := signals.SamplerWrapper{}
if err := json.Unmarshal([]byte(escaped), &wrapper); err != nil {
s.handleError(w, err)
return
}
signal, err := wrapper.Sampler()
if err != nil {
s.handleError(w, err)
return
}
samples, err := signal.Sample(signals.TimeStretch{FromInclusive: 0, ToExclusive: 5}, rate, s.headphoneFrequencyResponse)
if err != nil {
s.handleError(w, fmt.Errorf("Unable to sample %+v: %v", signal, err))
return
}
w.Header().Set("Content-Type", "audio/wav")
if err := samples.WriteWAV(w, rate); err != nil {
s.handleError(w, fmt.Errorf("Unable to render WAV response: %v", err))
return
}
return
}
func (s *server) log(i interface{}) error {
if err := os.MkdirAll(filepath.Dir(*experimentOutput), 0755); err != nil {
return err
}
logFile, err := os.OpenFile(*experimentOutput,
os.O_APPEND|os.O_CREATE|os.O_WRONLY, 0644)
if err != nil {
return err
}
defer logFile.Close()
encoder := json.NewEncoder(logFile)
return encoder.Encode(i)
}
func (s *server) logEquivalentLoudness(w http.ResponseWriter, r *http.Request) {
if r.Method == "POST" {
equiv := &analysis.EquivalentLoudness{}
if err := json.NewDecoder(r.Body).Decode(equiv); err != nil {
s.handleError(w, err)
return
}
equiv.EntryType = "EquivalentLoudnessMeasurement"
equiv.Calibration.HeadphoneFrequencyResponseHash = s.headphoneFrequencyResponseHash
if err := s.log(equiv); err != nil {
s.handleError(w, err)
return
}
} else if r.Method == "GET" {
w.Header().Set("Content-Type", "application/json")
logFile, err := os.Open(*experimentOutput)
if err != nil {
if os.IsNotExist(err) {
return
}
s.handleError(w, err)
return
}
defer logFile.Close()
if _, err := io.Copy(w, logFile); err != nil {
s.handleError(w, err)
return
}
} else if r.Method == "DELETE" {
data, err := ioutil.ReadFile(*experimentOutput)
if err != nil {
s.handleError(w, err)
return
}
lines := strings.Split(string(data), "\n")
for strings.TrimSpace(lines[len(lines)-1]) == "" {
lines = lines[:len(lines)-1]
}
text := strings.Join(lines[:len(lines)-1], "\n") + "\n"
if err := ioutil.WriteFile(*experimentOutput, []byte(text), 0644); err != nil {
s.handleError(w, err)
return
}
}
}
func (s *server) createAssetFunc(dir string, contentType string) func(w http.ResponseWriter, r *http.Request) {
return func(w http.ResponseWriter, r *http.Request) {
b, err := bindata.Asset(filepath.Join(dir, filepath.Base(r.URL.Path)))
if err != nil {
s.handleError(w, fmt.Errorf("Unable to find asset for %q: %v", r.URL.Path, err))
return
}
w.Header().Set("Content-Type", contentType)
if _, err := io.Copy(w, bytes.NewBuffer(b)); err != nil {
s.handleError(w, err)
return
}
}
}
func merge(source string, destination string) error {
equivs := analysis.EquivalentLoudnesses{}
sourceFile, err := os.Open(source)
if err != nil {
return err
}
defer sourceFile.Close()
if err := equivs.LoadAppend(sourceFile); err != nil {
return err
}
merged, err := equivs.Merge()
if err != nil {
return err
}
destFile, err := os.Create(destination)
if err != nil {
return err
}
defer destFile.Close()
return merged.Store(destFile)
}
func main() {
flag.Parse()
s := &server{}
if *headphoneFrequencyResponseFile != "" {
blob, err := ioutil.ReadFile(*headphoneFrequencyResponseFile)
if err != nil {
panic(err)
}
measurements := []map[string]float64{}
if err := json.Unmarshal(blob, &measurements); err != nil {
panic(err)
}
freqResp, err := signals.LoadCalibrateFrequencyResponse(measurements)
if err != nil {
panic(err)
}
s.headphoneFrequencyResponseHash = fmt.Sprintf("%x", sha1.Sum(blob))
s.headphoneFrequencyResponse = freqResp
s.log(map[string]interface{}{
"EntryType": "FrequencyResponseMeasurements",
"Hash": s.headphoneFrequencyResponseHash,
"Path": *headphoneFrequencyResponseFile,
"Measurements": measurements,
})
}
if *mergedOutput != "" {
if err := merge(*experimentOutput, *mergedOutput); err != nil {
panic(err)
}
log.Printf("Merged %v into %v", *experimentOutput, *mergedOutput)
return
}
mux := http.NewServeMux()
mux.HandleFunc("/signal/", s.renderSignal)
mux.HandleFunc("/log", s.logEquivalentLoudness)
mux.HandleFunc("/images/", s.createAssetFunc("images", "image/png"))
mux.HandleFunc("/js/", s.createAssetFunc("js", "application/javascript"))
mux.HandleFunc("/", s.renderIndex)
log.Printf("Starting server. Browse to http://%v", *listen)
log.Fatal(http.ListenAndServe(*listen, http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) {
start := time.Now()
logInProgress := int64(1)
go func() {
for {
time.Sleep(10 * time.Second)
if atomic.LoadInt64(&logInProgress) == 0 {
break
}
log.Printf("%v\t%v\tprocessing (%v)", r.Method, r.URL, time.Now().Sub(start))
}
}()
mux.ServeHTTP(w, r)
atomic.StoreInt64(&logInProgress, 0)
log.Printf("%v\t%v\t%v", r.Method, r.URL, time.Now().Sub(start))
})))
}
|
{
"content_hash": "fc2a0faa43e08569e7da45b34e0830a1",
"timestamp": "",
"source": "github",
"line_count": 280,
"max_line_length": 211,
"avg_line_length": 32.339285714285715,
"alnum_prop": 0.6573163997791276,
"repo_name": "google-research/korvapuusti",
"id": "c4e867911137f54dd44332a8652ce19e13c95069",
"size": "9853",
"binary": false,
"copies": "1",
"ref": "refs/heads/master",
"path": "experiments/partial_loudness/server.go",
"mode": "33188",
"license": "apache-2.0",
"language": [
{
"name": "C",
"bytes": "1773"
},
{
"name": "C++",
"bytes": "6251"
},
{
"name": "Go",
"bytes": "234916"
},
{
"name": "HTML",
"bytes": "13547"
},
{
"name": "JavaScript",
"bytes": "24738"
},
{
"name": "Jupyter Notebook",
"bytes": "48175"
},
{
"name": "Python",
"bytes": "388946"
},
{
"name": "Shell",
"bytes": "2918"
}
],
"symlink_target": ""
}
|
require 'active_support/concern'
require 'http_router'
# This is Spinal::App
module Spinal::App
extend ActiveSupport::Concern
def initialize
end
def call(env = {})
router.call(env)
resource = env['router.response'].route.dest
resource.do_get(self, env)
end
def url(*args)
router.url(*args)
end
def router
self.class.router
end
module ClassMethods
def router
@router ||= HttpRouter.new(:middleware => true)
end
def mount(name, path, resource)
route = router.add(path).name(name).to(resource)
resource.route = route
end
end
end
|
{
"content_hash": "2f318f0674b2582373b87f065f9774c1",
"timestamp": "",
"source": "github",
"line_count": 39,
"max_line_length": 54,
"avg_line_length": 15.717948717948717,
"alnum_prop": 0.6508972267536705,
"repo_name": "paul/spinal",
"id": "b4a54fe1f8824876403feda4158bbe93db921f81",
"size": "614",
"binary": false,
"copies": "1",
"ref": "refs/heads/master",
"path": "lib/spinal/app.rb",
"mode": "33188",
"license": "mit",
"language": [
{
"name": "Ruby",
"bytes": "5679"
}
],
"symlink_target": ""
}
|
var assert = require('assert');
var gonzales = require('../../');
describe('Node#contains()', function() {
it('should return true for existing child node', function() {
var ast = gonzales.parse('a{}');
assert.equal(ast.contains('ruleset'), true);
});
it('should return false for nonexisting child node', function() {
var ast = gonzales.parse('a{}');
assert.equal(ast.contains('nani'), false);
});
});
|
{
"content_hash": "9e90bf0a8b6ef213ac960396d474a1cf",
"timestamp": "",
"source": "github",
"line_count": 14,
"max_line_length": 69,
"avg_line_length": 32.214285714285715,
"alnum_prop": 0.5942350332594235,
"repo_name": "brendanlacroix/gonzales-pe",
"id": "52476d85f61abf76982e738d5d9369580d919d92",
"size": "451",
"binary": false,
"copies": "1",
"ref": "refs/heads/master",
"path": "test/node/basic-node.js",
"mode": "33188",
"license": "mit",
"language": [
{
"name": "CSS",
"bytes": "71835"
},
{
"name": "CoffeeScript",
"bytes": "42494"
},
{
"name": "JavaScript",
"bytes": "540725"
},
{
"name": "Shell",
"bytes": "2129"
}
],
"symlink_target": ""
}
|
package epizza.order.checkout;
import java.net.URI;
import javax.validation.constraints.Min;
import javax.validation.constraints.NotNull;
import lombok.Data;
@Data
public class LineItemPayload {
@NotNull
private URI pizza;
@NotNull
@Min(1)
private Integer quantity;
}
|
{
"content_hash": "0fe0b9a02ed9a4ceda7de56c58e92767",
"timestamp": "",
"source": "github",
"line_count": 19,
"max_line_length": 44,
"avg_line_length": 15.473684210526315,
"alnum_prop": 0.7380952380952381,
"repo_name": "ePages-de/rnd-microservices-handson",
"id": "329428a692c9bcf42e408f9c93494872a4bd8d44",
"size": "294",
"binary": false,
"copies": "1",
"ref": "refs/heads/ref",
"path": "order/src/main/java/epizza/order/checkout/LineItemPayload.java",
"mode": "33188",
"license": "mit",
"language": [
{
"name": "CSS",
"bytes": "194887"
},
{
"name": "HTML",
"bytes": "59414"
},
{
"name": "Java",
"bytes": "178217"
},
{
"name": "JavaScript",
"bytes": "254290"
},
{
"name": "Shell",
"bytes": "5634"
}
],
"symlink_target": ""
}
|
./gradlew build
|
{
"content_hash": "874d479c24bd7d4a8d29c0eabf9fbb7a",
"timestamp": "",
"source": "github",
"line_count": 1,
"max_line_length": 15,
"avg_line_length": 16,
"alnum_prop": 0.75,
"repo_name": "RCRS-ADF/core",
"id": "b402ba6ba0819fe7104e95ef68eb3e32d0030fe8",
"size": "27",
"binary": false,
"copies": "1",
"ref": "refs/heads/master",
"path": ".build.sh",
"mode": "33261",
"license": "bsd-2-clause",
"language": [
{
"name": "Java",
"bytes": "318682"
},
{
"name": "Shell",
"bytes": "27"
}
],
"symlink_target": ""
}
|
"""Test for input data (TIMIT corpus)."""
from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
import sys
import unittest
sys.path.append('../../')
from timit.path import Path
from timit.input_data import read_audio
from utils.measure_time_func import measure_time
path = Path(data_path='/n/sd8/inaguma/corpus/timit/data',
config_path='../config',
htk_save_path='/n/sd8/inaguma/corpus/timit/htk')
htk_paths = {
'train': path.htk(data_type='train'),
'dev': path.htk(data_type='dev'),
'test': path.htk(data_type='test')
}
wav_paths = {
'train': path.wav(data_type='train'),
'dev': path.wav(data_type='dev'),
'test': path.wav(data_type='test')
}
CONFIG = {
'feature_type': 'logmelfbank',
'channels': 40,
'sampling_rate': 8000,
'window': 0.025,
'slide': 0.01,
'energy': False,
'delta': True,
'deltadelta': True
}
class TestInput(unittest.TestCase):
def test(self):
self.check(tool='htk', normalize='global')
self.check(tool='htk', normalize='speaker')
self.check(tool='htk', normalize='utterance')
# NOTE: these are very slow
self.check(tool='python_speech_features', normalize='global')
self.check(tool='python_speech_features', normalize='speaker')
self.check(tool='python_speech_features', normalize='utterance')
self.check(tool='librosa', normalize='global')
self.check(tool='librosa', normalize='speaker')
self.check(tool='librosa', normalize='utterance')
@measure_time
def check(self, tool, normalize):
print('==================================================')
print(' tool: %s' % tool)
print(' normalize: %s' % normalize)
print('==================================================')
audio_paths = htk_paths if tool == 'htk' else wav_paths
print('---------- train ----------')
train_global_mean_male, train_global_std_male, train_global_mean_female, train_global_std_female = read_audio(
audio_paths=audio_paths['train'],
tool=tool,
config=CONFIG,
normalize=normalize,
is_training=True)
for data_type in ['dev', 'test']:
print('---------- %s ----------' % data_type)
read_audio(audio_paths=audio_paths[data_type],
tool=tool,
config=CONFIG,
normalize=normalize,
is_training=False,
train_global_mean_male=train_global_mean_male,
train_global_std_male=train_global_std_male,
train_global_mean_female=train_global_mean_female,
train_global_std_female=train_global_std_female)
if __name__ == '__main__':
unittest.main()
|
{
"content_hash": "190eedb05cc3d1d9f951cea8b311481f",
"timestamp": "",
"source": "github",
"line_count": 92,
"max_line_length": 118,
"avg_line_length": 31.565217391304348,
"alnum_prop": 0.5547520661157025,
"repo_name": "hirofumi0810/asr_preprocessing",
"id": "c99542b7d7e76eac6347955c018ccf8926583170",
"size": "2952",
"binary": false,
"copies": "1",
"ref": "refs/heads/master",
"path": "timit/test/test_input_data.py",
"mode": "33188",
"license": "mit",
"language": [
{
"name": "Python",
"bytes": "310970"
},
{
"name": "Shell",
"bytes": "26285"
}
],
"symlink_target": ""
}
|
var io = require('socket.io')
, encode = require('socket.io/utils').encode
, decode = require('socket.io/utils').decode
, port = 7200
, Listener = io.Listener
, Client = require('socket.io/client')
, WebSocket = require('./../support/node-websocket-client/lib/websocket').WebSocket;
function server(){
return require('http').createServer(function(){});
};
function socket(server, options){
if (!options) options = {};
options.log = false;
return io.listen(server, options);
};
function listen(s, callback){
s._port = port;
s.listen(port, callback);
port++;
return s;
};
function client(server, sessid){
sessid = sessid ? '/' + sessid : '';
return new WebSocket('ws://localhost:' + server._port + '/socket.io/websocket' + sessid, 'borf');
};
module.exports = {
'test connection and handshake': function(assert){
var _server = server()
, _socket = socket(_server)
, _client
, trips = 2;
function close(){
_client.close();
_server.close();
};
listen(_server, function(){
var messages = 0;
_client = client(_server);
_client.onopen = function(){
_client.send(encode('from client'));
};
_client.onmessage = function(ev){
if (++messages == 2){ // first message is the session id
assert.ok(decode(ev.data), 'from server');
--trips || close();
}
};
});
_socket.on('connection', function(conn){
assert.ok(conn instanceof Client);
conn
.on('message', function(msg){
assert.ok(msg == 'from client');
--trips || close();
})
.send('from server');
});
},
'test clients tracking': function(assert){
var _server = server()
, _socket = socket(_server);
listen(_server, function(){
var _client = client(_server);
_client.onopen = function(){
assert.ok(Object.keys(_socket.clients).length == 1);
var _client2 = client(_server);
_client2.onopen = function(){
assert.ok(Object.keys(_socket.clients).length == 2);
_client.close();
_client2.close();
_server.close();
};
}
});
},
'test buffered messages': function(assert){
var _server = server()
, _socket = socket(_server, {
transportOptions: {
websocket: {
closeTimeout: 5000
}
}
});
listen(_server, function(){
var _client = client(_server);
_client.onopen = function(){
assert.ok(Object.keys(_socket.clients).length == 1);
var sessionid = Object.keys(_socket.clients)[0]
, runOnce = false;
_socket.clients[sessionid].connection.addListener('end', function(){
if (!runOnce){
assert.ok(_socket.clients[sessionid]._open == false);
assert.ok(_socket.clients[sessionid].connected);
_socket.clients[sessionid].send('should get this');
var _client2 = client(_server, sessionid);
_client2.onmessage = function(ev){
assert.ok(Object.keys(_socket.clients).length == 1);
assert.ok(decode(ev.data), 'should get this');
_socket.clients[sessionid].options.closeTimeout = 0;
_client2.close();
_server.close();
};
runOnce = true;
}
});
_client.close();
};
});
},
'test json encoding': function(assert){
var _server = server()
, _socket = socket(_server)
, _client
, trips = 2;
function close(){
_server.close();
_client.close();
};
listen(_server, function(){
_socket.on('connection', function(conn){
conn.on('message', function(msg){
assert.ok(msg.from == 'client');
--trips || close();
});
conn.send({ from: 'server' });
});
var messages = 0;
_client = client(_server);
_client.onmessage = function(ev){
if (++messages == 2){
assert.ok(decode(ev.data)[0].substr(0, 3) == '~j~');
assert.ok(JSON.parse(decode(ev.data)[0].substr(3)).from == 'server');
_client.send(encode({ from: 'client' }));
--trips || close();
}
};
});
},
'test hearbeat timeout': function(assert){
var _server = server()
, _socket = socket(_server, {
transportOptions: {
websocket: {
timeout: 100,
heartbeatInterval: 1
}
}
});
listen(_server, function(){
var _client = client(_server)
, messages = 0;
_client.onmessage = function(ev){
++messages;
if (decode(ev.data)[0].substr(0, 3) == '~h~'){
assert.ok(messages === 2);
assert.ok(Object.keys(_socket.clients).length == 1);
setTimeout(function(){
assert.ok(Object.keys(_socket.clients).length == 0);
_client.close();
_server.close();
}, 150);
}
};
});
},
'test client broadcast': function(assert){
var _server = server()
, _socket = socket(_server);
listen(_server, function(){
var _client = client(_server)
, _client2
, _client3
, _first
, _connections = 0;
_client.onmessage = function(ev){
if (!('messages' in _client)) _client.messages = 0;
if (++_client.messages == 2){
assert.ok(decode(ev.data)[0] == 'not broadcasted');
_client.close();
_client2.close();
_client3.close();
_server.close();
}
};
_client.onopen = function(){
_client2 = client(_server);
_client2.onmessage = function(ev){
if (!('messages' in _client2)) _client2.messages = 0;
if (++_client2.messages == 2)
assert.ok(decode(ev.data)[0] == 'broadcasted')
};
_client2.onopen = function(){
_client3 = client(_server);
_client3.onmessage = function(ev){
if (!('messages' in _client3)) _client3.messages = 0;
if (++_client3.messages == 2)
assert.ok(decode(ev.data)[0] == 'broadcasted')
};
};
};
_socket.on('connection', function(conn){
if (!_first)
_first = conn;
if (++_connections == 3){
_first.broadcast('broadcasted');
_first.send('not broadcasted');
}
});
});
}
};
|
{
"content_hash": "4606dd4521136ad7c19590a0b9e73d4c",
"timestamp": "",
"source": "github",
"line_count": 245,
"max_line_length": 99,
"avg_line_length": 27.261224489795918,
"alnum_prop": 0.5050157209163049,
"repo_name": "paulcuth/wirebug",
"id": "0496eb81fd1c4b435db8263232324e1bab7ff108",
"size": "6679",
"binary": false,
"copies": "3",
"ref": "refs/heads/master",
"path": "vendor/Socket.IO-node/tests/transports.websocket.js",
"mode": "33188",
"license": "mit",
"language": [
{
"name": "JavaScript",
"bytes": "39487"
}
],
"symlink_target": ""
}
|
VillageModelController::VillageModelController()
{
population = 400;
maxpopulation = 400;
}
VillageModelController::VillageModelController(TransformGroup* group) : ModelController(group)
{
population = 400;
maxpopulation = 400;
}
void VillageModelController::setPopulation(unsigned int n)
{
population = n;
}
void VillageModelController::setMaxPopulation(unsigned int n)
{
maxpopulation = n;
}
unsigned int VillageModelController::getPopulation()
{
return population;
}
unsigned int VillageModelController::getMaxPopulation()
{
return maxpopulation;
}
VillageModelController::~VillageModelController()
{
}
|
{
"content_hash": "50ee789d5087796818bd15bc31f8b8e0",
"timestamp": "",
"source": "github",
"line_count": 35,
"max_line_length": 94,
"avg_line_length": 17.914285714285715,
"alnum_prop": 0.7799043062200957,
"repo_name": "hyperiris/praetoriansmapeditor",
"id": "d504480123165b00a430fc3494d3c43620842db9",
"size": "664",
"binary": false,
"copies": "1",
"ref": "refs/heads/master",
"path": "source/Controllers/VillageModelController.cpp",
"mode": "33188",
"license": "mit",
"language": [
{
"name": "C",
"bytes": "1668835"
},
{
"name": "C++",
"bytes": "1427894"
}
],
"symlink_target": ""
}
|
package net.bytebuddy.implementation.bytecode.assign.primitive;
import net.bytebuddy.description.type.TypeDescription;
import net.bytebuddy.implementation.bytecode.StackManipulation;
import net.bytebuddy.implementation.bytecode.assign.Assigner;
import net.bytebuddy.test.utility.MockitoRule;
import org.junit.Before;
import org.junit.Rule;
import org.junit.Test;
import org.junit.rules.TestRule;
import org.junit.runner.RunWith;
import org.junit.runners.Parameterized;
import org.mockito.Mock;
import java.util.Arrays;
import java.util.Collection;
import static org.hamcrest.CoreMatchers.is;
import static org.hamcrest.MatcherAssert.assertThat;
import static org.mockito.Mockito.*;
@RunWith(Parameterized.class)
public class PrimitiveTypeAwareAssignerImplicitUnboxingTest {
private final Class<?> sourceType;
private final Class<?> wrapperType;
private final Class<?> targetType;
private final boolean assignable;
@Rule
public TestRule mockitoRule = new MockitoRule(this);
@Mock
private TypeDescription.Generic source, target;
@Mock
private Assigner chainedAssigner;
@Mock
private StackManipulation chainedStackManipulation;
private Assigner primitiveAssigner;
public PrimitiveTypeAwareAssignerImplicitUnboxingTest(Class<?> sourceType,
Class<?> wrapperType,
Class<?> targetType,
boolean assignable) {
this.sourceType = sourceType;
this.wrapperType = wrapperType;
this.targetType = targetType;
this.assignable = assignable;
}
@Parameterized.Parameters
public static Collection<Object[]> data() {
return Arrays.asList(new Object[][]{
{Object.class, Boolean.class, boolean.class, true},
{Object.class, Byte.class, byte.class, true},
{Object.class, Short.class, short.class, true},
{Object.class, Character.class, char.class, true},
{Object.class, Integer.class, int.class, true},
{Object.class, Long.class, long.class, true},
{Object.class, Float.class, float.class, true},
{Object.class, Double.class, double.class, true}
});
}
@Before
public void setUp() throws Exception {
when(source.represents(sourceType)).thenReturn(true);
when(source.isPrimitive()).thenReturn(false);
when(source.asGenericType()).thenReturn(source);
when(target.represents(targetType)).thenReturn(true);
when(target.isPrimitive()).thenReturn(true);
when(chainedStackManipulation.isValid()).thenReturn(true);
when(chainedAssigner.assign(any(TypeDescription.Generic.class), any(TypeDescription.Generic.class), any(Assigner.Typing.class)))
.thenReturn(chainedStackManipulation);
primitiveAssigner = new PrimitiveTypeAwareAssigner(chainedAssigner);
}
@Test
public void testImplicitUnboxingAssignment() {
StackManipulation stackManipulation = primitiveAssigner.assign(source, target, Assigner.Typing.DYNAMIC);
assertThat(stackManipulation.isValid(), is(assignable));
verify(chainedStackManipulation).isValid();
verifyNoMoreInteractions(chainedStackManipulation);
verify(source, atLeast(0)).represents(any(Class.class));
verify(source, atLeast(1)).isPrimitive();
verify(source).asGenericType();
verifyNoMoreInteractions(source);
verify(target, atLeast(0)).represents(any(Class.class));
verify(target, atLeast(1)).isPrimitive();
verifyNoMoreInteractions(target);
verify(chainedAssigner).assign(source, TypeDescription.Generic.OfNonGenericType.ForLoadedType.of(wrapperType), Assigner.Typing.DYNAMIC);
verifyNoMoreInteractions(chainedAssigner);
}
}
|
{
"content_hash": "32b0fda902af6e1abe80439932715ac2",
"timestamp": "",
"source": "github",
"line_count": 100,
"max_line_length": 144,
"avg_line_length": 39.59,
"alnum_prop": 0.6814852235412983,
"repo_name": "DALDEI/byte-buddy",
"id": "0d638d97cb9ac211cce87302db3c5aa3dde84880",
"size": "3959",
"binary": false,
"copies": "2",
"ref": "refs/heads/master",
"path": "byte-buddy-dep/src/test/java/net/bytebuddy/implementation/bytecode/assign/primitive/PrimitiveTypeAwareAssignerImplicitUnboxingTest.java",
"mode": "33188",
"license": "apache-2.0",
"language": [
{
"name": "Java",
"bytes": "10488326"
}
],
"symlink_target": ""
}
|
package com.rhizospherejs.gwt.client.handlers;
import com.google.gwt.event.shared.HandlerRegistration;
import com.google.gwt.event.shared.HasHandlers;
/**
* Interface to track listeners on visualization {@link ReadyEvent} events.
*
* @author battlehorse@google.com (Riccardo Govoni)
*/
public interface HasReadyHandlers extends HasHandlers {
/**
* Adds a {@link ReadyEvent} handler.
*
* @param handler the handler
* @return the handler registration
*/
HandlerRegistration addReadyHandler(ReadyEvent.Handler handler);
}
|
{
"content_hash": "23841ef757c85b7851793f2d7ed11313",
"timestamp": "",
"source": "github",
"line_count": 21,
"max_line_length": 75,
"avg_line_length": 26,
"alnum_prop": 0.7527472527472527,
"repo_name": "battlehorse/rhizosphere",
"id": "a432cc8af738a9bf311f290e462cdf37985f8e68",
"size": "1157",
"binary": false,
"copies": "1",
"ref": "refs/heads/master",
"path": "gwt/src/com/rhizospherejs/gwt/client/handlers/HasReadyHandlers.java",
"mode": "33188",
"license": "apache-2.0",
"language": [
{
"name": "Java",
"bytes": "342958"
},
{
"name": "JavaScript",
"bytes": "1323000"
},
{
"name": "Python",
"bytes": "59124"
}
],
"symlink_target": ""
}
|
class Scrap::NotifyDailyWorker
include Sidekiq::Worker
include Sidetiq::Schedulable
recurrence backfill: true do
daily.hour_of_day(6)
end
def perform
Scrap::NotifyDailyContext.delay.perform
end
end
|
{
"content_hash": "6612702f281b620da7a460e9c6420a13",
"timestamp": "",
"source": "github",
"line_count": 11,
"max_line_length": 43,
"avg_line_length": 19.90909090909091,
"alnum_prop": 0.7534246575342466,
"repo_name": "JRF-tw/sunshine.jrf.org.tw",
"id": "e0ae1f02f30472107dfb8739636382b39a0ef3fa",
"size": "219",
"binary": false,
"copies": "1",
"ref": "refs/heads/develop",
"path": "app/workers/scrap/notify_daily_worker.rb",
"mode": "33188",
"license": "mit",
"language": [
{
"name": "CSS",
"bytes": "240019"
},
{
"name": "CoffeeScript",
"bytes": "19683"
},
{
"name": "HTML",
"bytes": "289894"
},
{
"name": "JavaScript",
"bytes": "437338"
},
{
"name": "Ruby",
"bytes": "1184957"
}
],
"symlink_target": ""
}
|
/*
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
*/
package com.hoang.textlink;
import android.text.Spannable;
import android.text.SpannableString;
import android.text.Spanned;
import android.text.method.MovementMethod;
import android.widget.TextView;
import java.util.ArrayList;
import java.util.List;
import java.util.regex.Matcher;
import java.util.regex.Pattern;
public class LinkBuilder {
private static final String TAG = "LinkBuilder";
private TextView textView;
private List<Link> links = new ArrayList<>();
private SpannableString spannable = null;
/**
* Construct a LinkBuilder object.
*
* @param textView The TextView you will be adding links to.
*/
public LinkBuilder(TextView textView) {
if (textView == null) {
throw new IllegalArgumentException("textView is null");
}
this.textView = textView;
}
/**
* Add a single link to the builder.
*
* @param link the rule that you want to link with.
*/
public LinkBuilder addLink(Link link) {
if (link == null) {
throw new IllegalArgumentException("link is null");
}
this.links.add(link);
return this;
}
/**
* Add a list of links to the builder.
*
* @param links list of rules you want to link with.
*/
public LinkBuilder addLinks(List<Link> links) {
if (links == null) {
throw new IllegalArgumentException("link list is null");
}
if (links.isEmpty()) {
throw new IllegalArgumentException("link list is empty");
}
this.links.addAll(links);
return this;
}
/**
* Execute the rules to create the linked text.
*/
public void build() {
// we extract individual links from the patterns
turnPatternsToLinks();
// exit if there are no links
if (links.size() == 0) {
return;
}
// add those links to our spannable text so they can be clicked
for (Link link : links) {
addLinkToSpan(link);
}
// set the spannable text
textView.setText(spannable);
// add the movement method so we know what actions to perform on the clicks
addLinkMovementMethod();
}
/**
* Add the link rule and check if spannable text is created.
*
* @param link rule to add to the text.
*/
private void addLinkToSpan(Link link) {
// create a new spannable string if none exists
if (spannable == null) {
spannable = SpannableString.valueOf(textView.getText());
}
// add the rule to the spannable string
addLinkToSpan(spannable, link);
}
/**
* Find the link within the spannable text
*
* @param s spannable text that we are adding the rule to.
* @param link rule to add to the text.
*/
private void addLinkToSpan(Spannable s, Link link) {
// get the current text
String text = textView.getText().toString();
// find the start and end point of the linked text within the TextView
int start = text.indexOf(link.getText());
if (start >= 0) {
int end = start + link.getText().length();
// add link to the spannable text
applyLink(link, new Range(start, end), s);
}
}
/**
* Add the movement method to handle the clicks.
*/
private void addLinkMovementMethod() {
MovementMethod m = textView.getMovementMethod();
if ((m == null) || !(m instanceof TouchableMovementMethod)) {
if (textView.getLinksClickable()) {
textView.setMovementMethod(TouchableMovementMethod.getInstance());
}
}
}
/**
* Set the link rule to the spannable text.
*
* @param link rule we are applying.
* @param range the start and end point of the link within the text.
* @param text the spannable text to add the link to.
*/
private void applyLink(Link link, final Range range, final Spannable text) {
TouchableSpan span = new TouchableSpan(link, textView);
text.setSpan(span, range.start, range.end, Spanned.SPAN_EXCLUSIVE_EXCLUSIVE);
}
/**
* Find the links that contain patterns and convert them to individual links.
*/
private void turnPatternsToLinks() {
int size = links.size();
int i = 0;
while (i < size) {
if (links.get(i).getPattern() != null) {
addLinksFromPattern(links.get(i));
links.remove(i);
size--;
} else {
i++;
}
}
}
/**
* Convert the pattern to individual links.
*
* @param linkWithPattern pattern we want to match.
*/
private void addLinksFromPattern(Link linkWithPattern) {
String text = textView.getText().toString();
Pattern pattern = linkWithPattern.getPattern();
Matcher m = pattern.matcher(text);
while (m.find()) {
links.add(new Link(linkWithPattern).setText(m.group()));
}
}
/**
* Manages the start and end points of the linked text.
*/
private static class Range {
public int start;
public int end;
public Range(int start, int end) {
this.start = start;
this.end = end;
}
}
}
|
{
"content_hash": "c414366db22c348df85aac13ffbc663d",
"timestamp": "",
"source": "github",
"line_count": 209,
"max_line_length": 85,
"avg_line_length": 28.688995215311003,
"alnum_prop": 0.5977318212141428,
"repo_name": "hoangleduc90/Android-TextLink",
"id": "e134009f3670ab44fdfc5386a96feb4f24ede1f3",
"size": "5996",
"binary": false,
"copies": "1",
"ref": "refs/heads/master",
"path": "app/src/main/java/com/hoang/textlink/LinkBuilder.java",
"mode": "33188",
"license": "apache-2.0",
"language": [
{
"name": "Java",
"bytes": "20452"
}
],
"symlink_target": ""
}
|
package gachon.mobile.programming.android.finalproject;
import org.junit.Test;
import static org.junit.Assert.*;
/**
* Example local unit test, which will execute on the development machine (host).
*
* @see <a href="http://d.android.com/tools/testing">Testing documentation</a>
*/
public class ExampleUnitTest {
@Test
public void addition_isCorrect() throws Exception {
assertEquals(4, 2 + 2);
}
}
|
{
"content_hash": "41e481cfeb39d2192a0a88ab4d9fa336",
"timestamp": "",
"source": "github",
"line_count": 17,
"max_line_length": 81,
"avg_line_length": 24.941176470588236,
"alnum_prop": 0.7051886792452831,
"repo_name": "jung2929/communitier",
"id": "2f14718db2cbe4471478a6c72c13301b036684ec",
"size": "424",
"binary": false,
"copies": "1",
"ref": "refs/heads/master",
"path": "app/src/test/java/gachon/mobile/programming/android/finalproject/ExampleUnitTest.java",
"mode": "33188",
"license": "apache-2.0",
"language": [
{
"name": "Java",
"bytes": "214543"
}
],
"symlink_target": ""
}
|
package de.epiceric.shopchest.listeners;
import org.bukkit.event.EventHandler;
import org.bukkit.event.Listener;
import org.codemc.worldguardwrapper.WorldGuardWrapper;
import org.codemc.worldguardwrapper.region.IWrappedRegion;
import de.epiceric.shopchest.ShopChest;
import de.epiceric.shopchest.config.Config;
import de.epiceric.shopchest.shop.Shop;
import me.wiefferink.areashop.events.notify.DeletedRegionEvent;
import me.wiefferink.areashop.events.notify.ResoldRegionEvent;
import me.wiefferink.areashop.events.notify.SoldRegionEvent;
import me.wiefferink.areashop.events.notify.UnrentedRegionEvent;
import me.wiefferink.areashop.regions.GeneralRegion;
public class AreaShopListener implements Listener {
private ShopChest plugin;
public AreaShopListener(ShopChest plugin) {
this.plugin = plugin;
}
@EventHandler
public void onRegionDeleted(DeletedRegionEvent e) {
if (Config.enableAreaShopIntegration && Config.areashopRemoveShopEvents.contains("DELETE")) {
removeShopsInRegion(e.getRegion());
}
}
@EventHandler
public void onRegionUnrented(UnrentedRegionEvent e) {
if (Config.enableAreaShopIntegration && Config.areashopRemoveShopEvents.contains("UNRENT")) {
removeShopsInRegion(e.getRegion());
}
}
@EventHandler
public void onRegionResold(ResoldRegionEvent e) {
if (Config.enableAreaShopIntegration && Config.areashopRemoveShopEvents.contains("RESELL")) {
removeShopsInRegion(e.getRegion());
}
}
@EventHandler
public void onRegionSold(SoldRegionEvent e) {
if (Config.enableAreaShopIntegration && Config.areashopRemoveShopEvents.contains("SELL")) {
removeShopsInRegion(e.getRegion());
}
}
private void removeShopsInRegion(GeneralRegion generalRegion) {
if (!plugin.hasWorldGuard()) return;
for (Shop shop : plugin.getShopUtils().getShops()) {
if (!shop.getLocation().getWorld().getName().equals(generalRegion.getWorldName())) continue;
for (IWrappedRegion r : WorldGuardWrapper.getInstance().getRegions(shop.getLocation())) {
if (generalRegion.getLowerCaseName().equals(r.getId())) {
plugin.getShopUtils().removeShopById(shop.getID(), true);
break;
}
}
}
}
}
|
{
"content_hash": "ef5c035486e601ba42fceb14537193f7",
"timestamp": "",
"source": "github",
"line_count": 69,
"max_line_length": 104,
"avg_line_length": 34.768115942028984,
"alnum_prop": 0.701125468945394,
"repo_name": "EpicEricEE/ShopChest",
"id": "e431b156b00de5363408b6e8a884d123328b97b6",
"size": "2399",
"binary": false,
"copies": "1",
"ref": "refs/heads/master",
"path": "src/main/java/de/epiceric/shopchest/listeners/AreaShopListener.java",
"mode": "33188",
"license": "mit",
"language": [
{
"name": "Java",
"bytes": "763563"
},
{
"name": "Python",
"bytes": "2186"
}
],
"symlink_target": ""
}
|
=begin
ActiveSalesforce
Copyright 2006 Doug Chasman
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
=end
require 'activesalesforce_adapter'
module ActionView
module Helpers
# Provides a set of methods for making easy links and getting urls that depend on the controller and action. This means that
# you can use the same format for links in the views that you do in the controller. The different methods are even named
# synchronously, so link_to uses that same url as is generated by url_for, which again is the same url used for
# redirection in redirect_to.
module UrlHelper
def link_to_asf(active_record, column)
if column.reference_to
link_to(column.reference_to, { :action => 'show', :controller => column.reference_to.pluralize, :id => active_record.send(column.name) } )
else
active_record.send(column.name)
end
end
end
end
end
|
{
"content_hash": "67ba18726bc79adaea60ab998e7fd80e",
"timestamp": "",
"source": "github",
"line_count": 36,
"max_line_length": 148,
"avg_line_length": 39.52777777777778,
"alnum_prop": 0.7259311314125088,
"repo_name": "developerforce/Force.com-Toolkit-for-Ruby",
"id": "5f4722634658f3524b4cabe1ddb50fe65ec0e4af",
"size": "1423",
"binary": false,
"copies": "3",
"ref": "refs/heads/master",
"path": "lib/active_record/connection_adapters/activesalesforce.rb",
"mode": "33188",
"license": "bsd-3-clause",
"language": [
{
"name": "JavaScript",
"bytes": "296"
},
{
"name": "Ruby",
"bytes": "223125"
}
],
"symlink_target": ""
}
|
<?php
/**
* Отображение для Default/_image_add:
*
* @category YupeView
* @package yupe
* @author Yupe Team <team@yupe.ru>
* @license https://github.com/yupe/yupe/blob/master/LICENSE BSD
* @link http://yupe.ru
**/
$form = $this->beginWidget(
'bootstrap.widgets.TbActiveForm', array(
'id' => 'image-form',
'enableAjaxValidation' => false,
'enableClientValidation' => true,
'type' => 'vertical',
'htmlOptions' => array('class' => 'well', 'enctype'=>'multipart/form-data'),
'inlineErrors' => true,
)
); ?>
<div class="alert alert-info">
<?php echo Yii::t('GalleryModule.gallery', 'Fields with'); ?>
<span class="required">*</span>
<?php echo Yii::t('GalleryModule.gallery', 'are required.'); ?>
</div>
<?php echo $form->errorSummary($model); ?>
<div class='row-fluid control-group'>
<div class="span2">
<?php echo $form->dropDownListRow($model, 'category_id', Category::model()->getFormattedList((int)Yii::app()->getModule('image')->mainCategory), array('empty' => Yii::t('GalleryModule.gallery', '--choose--'))); ?>
</div>
<div class='span2'>
<?php echo $form->dropDownListRow($model, 'type', $model->getTypeList()); ?>
</div>
<div class='span2'>
<?php echo $form->dropDownListRow($model, 'status', $model->getStatusList()); ?>
</div>
</div>
<div class='row-fluid control-group <?php echo $model->hasErrors("name") ? "error" : ""; ?>'>
<?php echo $form->textFieldRow($model, 'name', array('class' => 'span7', 'maxlength' => 300, 'size' => 60)); ?>
</div>
<div class='row-fluid control-group <?php echo $model->hasErrors("alt") ? "error" : ""; ?>'>
<?php echo $form->textFieldRow($model, 'alt', array('class' => 'span7', 'maxlength' => 150, 'size' => 60)); ?>
</div>
<div class='row-fluid control-group <?php echo $model->hasErrors("file") ? "error" : ""; ?>'>
<?php if (!$model->isNewRecord) : ?>
<?php echo CHtml::image($model->getUrl(), $model->alt);?>
<?php endif; ?>
<img id="preview" src="#" class='img-polaroid' alt="current preview of image" />
<?php echo $form->fileFieldRow($model, 'file', array('class' => 'span7', 'maxlength' => 500, 'size' => 60, 'onchange' => 'readURL(this);')); ?>
</div>
<div class='row-fluid control-group <?php echo $model->hasErrors("description") ? "error" : ""; ?>'>
<?php $form->textAreaRow($model, 'description', array('class' => 'span7')); ?>
</div>
<?php
$this->widget(
'bootstrap.widgets.TbButton', array(
'buttonType' => 'submit',
'type' => 'primary',
'label' => $model->isNewRecord ? Yii::t('GalleryModule.gallery', 'Create image') : Yii::t('GalleryModule.gallery', 'Save image'),
)
); ?>
<?php $this->endWidget(); ?>
<style>
#preview {
display: none;
max-width: 250px;
max-height: 250px;
}
</style>
<script type="text/javascript">
function readURL(input) {
if (input.files && input.files[0]) {
var reader = new FileReader();
reader.onload = function (e) {
$('#preview').attr('src', e.target.result).show();
}
reader.readAsDataURL(input.files[0]);
}
}
</script>
|
{
"content_hash": "333529a9ecdd7a048183375694587211",
"timestamp": "",
"source": "github",
"line_count": 92,
"max_line_length": 225,
"avg_line_length": 37.619565217391305,
"alnum_prop": 0.5379947991909853,
"repo_name": "slivas/hoztovarchik1",
"id": "8a2e5fe092e6efda0031c3b2af1873b5f8c6523c",
"size": "3475",
"binary": false,
"copies": "3",
"ref": "refs/heads/master",
"path": "protected/modules/gallery/views/galleryBackend/_image_add.php",
"mode": "33188",
"license": "bsd-3-clause",
"language": [
{
"name": "CSS",
"bytes": "236291"
},
{
"name": "JavaScript",
"bytes": "359665"
},
{
"name": "PHP",
"bytes": "2674363"
},
{
"name": "Shell",
"bytes": "866"
}
],
"symlink_target": ""
}
|
/**
* @license AngularJS v1.0.7
* (c) 2010-2012 Google, Inc. http://angularjs.org
* License: MIT
*/
(function(window, angular, undefined) {
'use strict';
var directive = {};
directive.dropdownToggle =
['$document', '$location', '$window',
function ($document, $location, $window) {
var openElement = null, close;
return {
restrict: 'C',
link: function(scope, element, attrs) {
scope.$watch(function dropdownTogglePathWatch(){return $location.path();}, function dropdownTogglePathWatchAction() {
close && close();
});
element.parent().bind('click', function(event) {
close && close();
});
element.bind('click', function(event) {
event.preventDefault();
event.stopPropagation();
var iWasOpen = false;
if (openElement) {
iWasOpen = openElement === element;
close();
}
if (!iWasOpen){
element.parent().addClass('open');
openElement = element;
close = function (event) {
event && event.preventDefault();
event && event.stopPropagation();
$document.unbind('click', close);
element.parent().removeClass('open');
close = null;
openElement = null;
};
$document.bind('click', close);
}
});
}
};
}];
directive.tabbable = function() {
return {
restrict: 'C',
compile: function(element) {
var navTabs = angular.element('<ul class="nav nav-tabs"></ul>'),
tabContent = angular.element('<div class="tab-content"></div>');
tabContent.append(element.contents());
element.append(navTabs).append(tabContent);
},
controller: ['$scope', '$element', function($scope, $element) {
var navTabs = $element.contents().eq(0),
ngModel = $element.controller('ngModel') || {},
tabs = [],
selectedTab;
ngModel.$render = function() {
var $viewValue = this.$viewValue;
if (selectedTab ? (selectedTab.value != $viewValue) : $viewValue) {
if(selectedTab) {
selectedTab.paneElement.removeClass('active');
selectedTab.tabElement.removeClass('active');
selectedTab = null;
}
if($viewValue) {
for(var i = 0, ii = tabs.length; i < ii; i++) {
if ($viewValue == tabs[i].value) {
selectedTab = tabs[i];
break;
}
}
if (selectedTab) {
selectedTab.paneElement.addClass('active');
selectedTab.tabElement.addClass('active');
}
}
}
};
this.addPane = function(element, attr) {
var li = angular.element('<li><a href></a></li>'),
a = li.find('a'),
tab = {
paneElement: element,
paneAttrs: attr,
tabElement: li
};
tabs.push(tab);
attr.$observe('value', update)();
attr.$observe('title', function(){ update(); a.text(tab.title); })();
function update() {
tab.title = attr.title;
tab.value = attr.value || attr.title;
if (!ngModel.$setViewValue && (!ngModel.$viewValue || tab == selectedTab)) {
// we are not part of angular
ngModel.$viewValue = tab.value;
}
ngModel.$render();
}
navTabs.append(li);
li.bind('click', function(event) {
event.preventDefault();
event.stopPropagation();
if (ngModel.$setViewValue) {
$scope.$apply(function() {
ngModel.$setViewValue(tab.value);
ngModel.$render();
});
} else {
// we are not part of angular
ngModel.$viewValue = tab.value;
ngModel.$render();
}
});
return function() {
tab.tabElement.remove();
for(var i = 0, ii = tabs.length; i < ii; i++ ) {
if (tab == tabs[i]) {
tabs.splice(i, 1);
}
}
};
}
}]
};
};
directive.table = function() {
return {
restrict: 'E',
link: function(scope, element, attrs) {
element[0].className = 'table table-bordered table-striped code-table';
}
};
};
directive.tabPane = function() {
return {
require: '^tabbable',
restrict: 'C',
link: function(scope, element, attrs, tabsCtrl) {
element.bind('$remove', tabsCtrl.addPane(element, attrs));
}
};
};
angular.module('bootstrap', []).directive(directive);
})(window, window.angular);
|
{
"content_hash": "5be5b32facdfca19f2923d167f44d3d9",
"timestamp": "",
"source": "github",
"line_count": 175,
"max_line_length": 125,
"avg_line_length": 27.251428571428573,
"alnum_prop": 0.5063954707485846,
"repo_name": "craz99/NovelToPDF",
"id": "4a63bd3908fedf0de12133319e8a0dfbf6b8d957",
"size": "4769",
"binary": false,
"copies": "1",
"ref": "refs/heads/master",
"path": "public/js/lib/angular/angular-bootstrap.js",
"mode": "33261",
"license": "apache-2.0",
"language": [
{
"name": "CSS",
"bytes": "366"
},
{
"name": "HTML",
"bytes": "1410"
},
{
"name": "JavaScript",
"bytes": "10342"
}
],
"symlink_target": ""
}
|
package github.users.eirikma.iteratorgenerators;
import java.io.IOException;
import java.util.NoSuchElementException;
import java.util.concurrent.BlockingQueue;
import java.util.concurrent.LinkedBlockingQueue;
import java.util.concurrent.TimeUnit;
import java.util.concurrent.atomic.AtomicBoolean;
/**
* Not thread safe
*/
class MultiThreadedObjectPipe<T> implements ObjectPipe<T> {
private final BlockingQueue<T> buffer;
private final AtomicBoolean closed = new AtomicBoolean(false);
private volatile long yieldCount = 0L;
private Yield<T> yield;
private IteratorExt<T> iterator;
MultiThreadedObjectPipe() {
this(50000);
}
MultiThreadedObjectPipe(int bufferCapacity) {
buffer = new LinkedBlockingQueue<T>(5000);
yield = new Yield<T>() {
@Override
public void yield(T value) {
yieldCount += 1;
if (isClosed()) {
throw new RuntimeException("closed");
}
try {
buffer.put(value);
} catch (InterruptedException e) {
throw new RuntimeException(e);
}
}
@Override
public long count() {
return yieldCount;
}
@Override
public boolean isClosed() {
return closed.get();
}
@Override
public void close() throws IOException {
closed.set(true);;
}
};
iterator = new IteratorExt<T>() {
@Override
public int available() {
return buffer.size();
}
@Override
public boolean hasNext() {
if (buffer.size() > 0 ) {
return true;
}
// wait for some outcome from the other thread.
while (!closed.get() && buffer.size() <= 0) {
Thread.yield();
}
return buffer.size() > 0;
}
@Override
public T next() {
if (hasNext() && !isClosed()) {
try {
T value = null;
while (value == null && !isClosed()) {
value = buffer.poll(10, TimeUnit.MILLISECONDS);
}
return value;
} catch (InterruptedException e) {
closed.set(true);
throw new RuntimeException(e);
}
}
throw new NoSuchElementException("next");
}
};
}
public Yield<T> getYieldTarget() {
return yield;
}
public IteratorExt<T> getIterator() { return iterator;}
}
|
{
"content_hash": "5eaf5369365bf402a2f5d5d262460e93",
"timestamp": "",
"source": "github",
"line_count": 100,
"max_line_length": 75,
"avg_line_length": 28.88,
"alnum_prop": 0.4795706371191136,
"repo_name": "eirikma/iterator-generators",
"id": "b6648f05b031aa09c7485997891f12e023d7050f",
"size": "2888",
"binary": false,
"copies": "1",
"ref": "refs/heads/master",
"path": "src/main/java/github/users/eirikma/iteratorgenerators/MultiThreadedObjectPipe.java",
"mode": "33188",
"license": "apache-2.0",
"language": [
{
"name": "Java",
"bytes": "48711"
}
],
"symlink_target": ""
}
|
package org.spongepowered.common.event.damage;
import static com.google.common.base.Preconditions.checkState;
import org.spongepowered.api.entity.Entity;
import org.spongepowered.api.event.cause.entity.damage.source.IndirectEntityDamageSource;
import org.spongepowered.api.event.cause.entity.damage.source.common.AbstractDamageSourceBuilder;
import org.spongepowered.common.mixin.core.util.DamageSourceAccessor;
import java.lang.ref.WeakReference;
public class SpongeIndirectEntityDamageSourceBuilder extends AbstractDamageSourceBuilder<IndirectEntityDamageSource, IndirectEntityDamageSource.Builder>
implements IndirectEntityDamageSource.Builder {
protected WeakReference<Entity> reference = null;
private WeakReference<Entity> proxy = null;
@Override
public IndirectEntityDamageSource.Builder proxySource(final Entity projectile) {
this.proxy = new WeakReference<>(projectile);
return this;
}
@Override
public IndirectEntityDamageSource.Builder entity(final Entity entity) {
this.reference = new WeakReference<>(entity);
return this;
}
@Override
public IndirectEntityDamageSource build() throws IllegalStateException {
checkState(this.reference.get() != null);
checkState(this.proxy.get() != null);
checkState(this.damageType != null);
final net.minecraft.util.EntityDamageSourceIndirect damageSource =
new net.minecraft.util.EntityDamageSourceIndirect(this.damageType.getId(),
(net.minecraft.entity.Entity) this.reference.get(),
(net.minecraft.entity.Entity) this.proxy.get());
final DamageSourceAccessor accessor = (DamageSourceAccessor) damageSource;
if (this.creative) {
accessor.accessor$setDamageAllowedInCreativeMode();
}
if (this.scales) {
damageSource.setDifficultyScaled();
}
if (this.magical) {
damageSource.setMagicDamage();
}
if (this.bypasses) {
accessor.accessor$setDamageBypassesArmor();
}
if (this.absolute) {
accessor.accessor$setDamageIsAbsolute();
}
if (this.explosion) {
damageSource.setExplosion();
}
if (this.exhaustion != null) {
accessor.accessor$setHungerDamage(this.exhaustion.floatValue());
}
return (IndirectEntityDamageSource) damageSource;
}
@Override
public IndirectEntityDamageSource.Builder from(final IndirectEntityDamageSource value) {
super.from(value);
this.reference = new WeakReference<>(value.getSource());
this.proxy = new WeakReference<>(value.getIndirectSource());
return this;
}
@Override
public IndirectEntityDamageSource.Builder reset() {
super.reset();
this.reference = null;
this.proxy = null;
return this;
}
}
|
{
"content_hash": "66a1436892e55f180cd0f07f822de0d2",
"timestamp": "",
"source": "github",
"line_count": 80,
"max_line_length": 152,
"avg_line_length": 36.6125,
"alnum_prop": 0.6869238648002731,
"repo_name": "SpongePowered/SpongeCommon",
"id": "f387412f0ee9894ed00af25470bc7e9ecac4ccff",
"size": "4176",
"binary": false,
"copies": "1",
"ref": "refs/heads/stable-7",
"path": "src/main/java/org/spongepowered/common/event/damage/SpongeIndirectEntityDamageSourceBuilder.java",
"mode": "33188",
"license": "mit",
"language": [
{
"name": "Java",
"bytes": "14153592"
},
{
"name": "Shell",
"bytes": "1072"
}
],
"symlink_target": ""
}
|
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://maven.apache.org/POM/4.0.0"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<parent>
<groupId>com.github.dkanellis</groupId>
<artifactId>fikey-parent</artifactId>
<version>0.4.2</version>
</parent>
<artifactId>yubico-u2flib-server-core</artifactId>
<name>Yubico U2F core</name>
<packaging>jar</packaging>
<dependencies>
<dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
<version>4.11</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.bouncycastle</groupId>
<artifactId>bcprov-jdk15on</artifactId>
<version>1.51</version>
</dependency>
<dependency>
<groupId>com.google.guava</groupId>
<artifactId>guava</artifactId>
<version>18.0</version>
</dependency>
<dependency>
<groupId>org.mockito</groupId>
<artifactId>mockito-all</artifactId>
<version>1.9.5</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>com.fasterxml.jackson.core</groupId>
<artifactId>jackson-databind</artifactId>
<version>2.5.0</version>
</dependency>
</dependencies>
</project>
|
{
"content_hash": "d016f1771f749e657c70715576605c80",
"timestamp": "",
"source": "github",
"line_count": 45,
"max_line_length": 108,
"avg_line_length": 34.53333333333333,
"alnum_prop": 0.583011583011583,
"repo_name": "dkanellis/FiKey",
"id": "35057cbe5c7b0a18e7cd0ac8a567359a28e24068",
"size": "1554",
"binary": false,
"copies": "2",
"ref": "refs/heads/develop",
"path": "yubico-u2flib-server-core/pom.xml",
"mode": "33188",
"license": "mit",
"language": [
{
"name": "CSS",
"bytes": "2708"
},
{
"name": "HTML",
"bytes": "1782"
},
{
"name": "Java",
"bytes": "171623"
},
{
"name": "JavaScript",
"bytes": "9308"
}
],
"symlink_target": ""
}
|
using System.Collections.Generic;
using System.Linq;
namespace Treenumerable.Linq.TreeWalkers
{
internal class DepthTreeWalker<T> : ITreeWalker<DepthNode<T>>
{
public DepthTreeWalker(ITreeWalker<T> walker)
{
this._Walker = walker;
}
private readonly ITreeWalker<T> _Walker;
public IEnumerable<DepthNode<T>> GetAncestors(DepthNode<T> node)
{
return
this
._Walker
.GetAncestors(node.BaseNode)
.Select((x, i) => new DepthNode<T>(x, node.Depth - i - 1));
}
public IEnumerable<DepthNode<T>> GetChildren(DepthNode<T> node)
{
return
this
._Walker
.GetChildren(node.BaseNode)
.Select(x => new DepthNode<T>(x, node.Depth + 1));
}
}
}
|
{
"content_hash": "ded6e2025ed16d73c3e3f19cf49b1df9",
"timestamp": "",
"source": "github",
"line_count": 33,
"max_line_length": 75,
"avg_line_length": 26.848484848484848,
"alnum_prop": 0.5270880361173815,
"repo_name": "jasonmcboyd/Treenumerable.Linq",
"id": "c98a923e9e172b82f99d09aee1abb07a6e6c3cfa",
"size": "888",
"binary": false,
"copies": "1",
"ref": "refs/heads/master",
"path": "Source/Treenumerable.Linq/TreeWalkers/DepthTreeWalker.cs",
"mode": "33188",
"license": "mit",
"language": [
{
"name": "C#",
"bytes": "37045"
}
],
"symlink_target": ""
}
|
ACCEPTED
#### According to
The Catalogue of Life, 3rd January 2011
#### Published in
null
#### Original name
null
### Remarks
null
|
{
"content_hash": "4d527ea5bc024fbd3a19baf2066157fa",
"timestamp": "",
"source": "github",
"line_count": 13,
"max_line_length": 39,
"avg_line_length": 10.307692307692308,
"alnum_prop": 0.6940298507462687,
"repo_name": "mdoering/backbone",
"id": "7576732064e291fcc6074f1a71b14c48337b4184",
"size": "189",
"binary": false,
"copies": "1",
"ref": "refs/heads/master",
"path": "life/Plantae/Magnoliophyta/Liliopsida/Poales/Poaceae/Poagrostis/Poagrostis pusilla/README.md",
"mode": "33188",
"license": "apache-2.0",
"language": [],
"symlink_target": ""
}
|
hud::hud(status &blah):stat(blah) {
hud_topTexture.loadFromFile("Data/hud_top.png");
hud_topImage.setTexture(hud_topTexture);
hud_topImage.setPosition(sf::Vector2f(0, 0));
hud_bottomTexture.loadFromFile("Data/hud_bottom.png");
hud_bottomImage.setTexture(hud_bottomTexture);
hud_bottomImage.setPosition(sf::Vector2f(0, 620));
hud_enemyTexture.loadFromFile("Data/hud_enemy.png");
hud_enemyImage.setTexture(hud_enemyTexture);
hud_enemyImage.setPosition(sf::Vector2f(1110, 0));
health_enemy.setPosition(sf::Vector2f(1130,7));
health_enemy.setSize(sf::Vector2f(130, 17));
health_enemy.setFillColor(sf::Color::Green);
health_player.setPosition(sf::Vector2f(352,7));
health_player.setSize(sf::Vector2f(130, 17));
health_player.setFillColor(sf::Color::Green);
}
hud::~hud() {
}
void hud::draw_top(sf::RenderWindow &Window) {
Window.draw(hud_topImage);
Window.draw(hud_enemyImage);
health_enemy.setSize(sf::Vector2f(stat.get_health_enemy()*0.013, 17));
Window.draw(health_enemy);
health_player.setSize(sf::Vector2f(stat.get_health_player()*0.013, 17));
Window.draw(health_player);
}
void hud::draw_bottom(sf::RenderWindow &Window) {
Window.draw(hud_bottomImage);
}
|
{
"content_hash": "56802a449a3dabdb7552933b5787f3d9",
"timestamp": "",
"source": "github",
"line_count": 41,
"max_line_length": 73,
"avg_line_length": 30.097560975609756,
"alnum_prop": 0.7115072933549432,
"repo_name": "olijf/Gerald-BeyondEvil",
"id": "e1426f8a82cbde4abc39681e0f0bda951c3d2279",
"size": "1252",
"binary": false,
"copies": "1",
"ref": "refs/heads/master",
"path": "Game8/hud.cpp",
"mode": "33188",
"license": "apache-2.0",
"language": [
{
"name": "C++",
"bytes": "110767"
},
{
"name": "Objective-C",
"bytes": "3790"
}
],
"symlink_target": ""
}
|
#ifndef OSMIUM_AREA_MULTIPOLYGON_MANAGER_LEGACY_HPP
#define OSMIUM_AREA_MULTIPOLYGON_MANAGER_LEGACY_HPP
#include <osmium/area/stats.hpp>
#include <osmium/handler.hpp>
#include <osmium/handler/check_order.hpp>
#include <osmium/memory/buffer.hpp>
#include <osmium/memory/callback_buffer.hpp>
#include <osmium/osm/item_type.hpp>
#include <osmium/osm/relation.hpp>
#include <osmium/osm/tag.hpp>
#include <osmium/osm/way.hpp>
#include <osmium/relations/manager_util.hpp>
#include <osmium/relations/members_database.hpp>
#include <osmium/relations/relations_database.hpp>
#include <osmium/relations/relations_manager.hpp>
#include <osmium/storage/item_stash.hpp>
#include <algorithm>
#include <cassert>
#include <cstddef>
#include <cstdint>
#include <cstring>
#include <vector>
namespace osmium {
/**
* @brief Code related to the building of areas (multipolygons) from relations.
*/
namespace area {
/**
* This class collects all data needed for creating areas from
* relations tagged with type=multipolygon or type=boundary.
* Most of its functionality is derived from the parent class
* osmium::relations::Collector.
*
* The actual assembling of the areas is done by the assembler
* class given as template argument.
*
* @tparam TAssembler Multipolygon Assembler class.
* @pre The Ids of all objects must be unique in the input data.
*/
template <typename TAssembler>
class MultipolygonManagerLegacy : public osmium::relations::RelationsManager<MultipolygonManagerLegacy<TAssembler>, false, true, false> {
using assembler_config_type = typename TAssembler::config_type;
const assembler_config_type m_assembler_config;
area_stats m_stats;
public:
/**
* Construct a MultipolygonManagerLegacy.
*
* @param assembler_config The configuration that will be given to
* any newly constructed area assembler.
*/
explicit MultipolygonManagerLegacy(const assembler_config_type& assembler_config) :
m_assembler_config(assembler_config) {
}
/**
* Access the aggregated statistics generated by the assemblers
* called from the manager.
*/
const area_stats& stats() const noexcept {
return m_stats;
}
/**
* We are interested in all relations tagged with type=multipolygon
* or type=boundary with at least one way member.
*/
bool new_relation(const osmium::Relation& relation) const {
const char* type = relation.tags().get_value_by_key("type");
// ignore relations without "type" tag
if (!type) {
return false;
}
if ((!std::strcmp(type, "multipolygon")) || (!std::strcmp(type, "boundary"))) {
return std::any_of(relation.members().cbegin(), relation.members().cend(), [](const RelationMember& member) {
return member.type() == osmium::item_type::way;
});
}
return false;
}
/**
* This is called when a relation is complete, ie. all members
* were found in the input. It will build the area using the
* assembler.
*/
void complete_relation(const osmium::Relation& relation) {
std::vector<const osmium::Way*> ways;
ways.reserve(relation.members().size());
for (const auto& member : relation.members()) {
if (member.ref() != 0) {
ways.push_back(this->get_member_way(member.ref()));
assert(ways.back() != nullptr);
}
}
try {
TAssembler assembler{m_assembler_config};
assembler(relation, ways, this->buffer());
m_stats += assembler.stats();
} catch (const osmium::invalid_location&) {
// XXX ignore
}
}
/**
* This is called when a way is not in any multipolygon
* relation.
*/
void way_not_in_any_relation(const osmium::Way& way) {
// you need at least 4 nodes to make up a polygon
if (way.nodes().size() <= 3) {
return;
}
try {
if (!way.nodes().front().location() || !way.nodes().back().location()) {
throw osmium::invalid_location{"invalid location"};
}
if (way.ends_have_same_location()) {
// way is closed and has enough nodes, build simple multipolygon
TAssembler assembler{m_assembler_config};
assembler(way, this->buffer());
m_stats += assembler.stats();
}
} catch (const osmium::invalid_location&) {
// XXX ignore
}
}
}; // class MultipolygonManagerLegacy
} // namespace area
} // namespace osmium
#endif // OSMIUM_AREA_MULTIPOLYGON_MANAGER_LEGACY_HPP
|
{
"content_hash": "80cb1859ff0b28ad60e8b72d60df4b4a",
"timestamp": "",
"source": "github",
"line_count": 150,
"max_line_length": 145,
"avg_line_length": 36.906666666666666,
"alnum_prop": 0.540643063583815,
"repo_name": "yuryleb/osrm-backend",
"id": "06f39d22c3a8e0fb60b7abfe764c4c8527308e56",
"size": "7019",
"binary": false,
"copies": "3",
"ref": "refs/heads/master",
"path": "third_party/libosmium/include/osmium/area/multipolygon_manager_legacy.hpp",
"mode": "33188",
"license": "bsd-2-clause",
"language": [
{
"name": "Batchfile",
"bytes": "6654"
},
{
"name": "C++",
"bytes": "3816221"
},
{
"name": "CMake",
"bytes": "152224"
},
{
"name": "Dockerfile",
"bytes": "2342"
},
{
"name": "Gherkin",
"bytes": "1354551"
},
{
"name": "JavaScript",
"bytes": "367366"
},
{
"name": "Lua",
"bytes": "123150"
},
{
"name": "Makefile",
"bytes": "2887"
},
{
"name": "Python",
"bytes": "22321"
},
{
"name": "Shell",
"bytes": "13775"
}
],
"symlink_target": ""
}
|
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<aida.entityAnnotation>
<document docName="239036newsML.txt">
<annotation>
<mention>JAPAN</mention>
<wikiName>Japan national football team</wikiName>
<offset>7</offset>
<length>5</length>
</annotation>
<annotation>
<mention>CHINA</mention>
<wikiName>China PR national football team</wikiName>
<offset>28</offset>
<length>5</length>
</annotation>
<annotation>
<mention>Nadim Ladki</mention>
<wikiName></wikiName>
<offset>55</offset>
<length>11</length>
</annotation>
<annotation>
<mention>AL-AIN</mention>
<wikiName>Al Ain</wikiName>
<offset>68</offset>
<length>6</length>
</annotation>
<annotation>
<mention>United Arab Emirates</mention>
<wikiName>United Arab Emirates</wikiName>
<offset>76</offset>
<length>20</length>
</annotation>
<annotation>
<mention>Japan</mention>
<wikiName>Japan national football team</wikiName>
<offset>109</offset>
<length>5</length>
</annotation>
<annotation>
<mention>Asian Cup</mention>
<wikiName>1996 AFC Asian Cup</wikiName>
<offset>142</offset>
<length>9</length>
</annotation>
<annotation>
<mention>Syria</mention>
<wikiName>Syria national football team</wikiName>
<offset>187</offset>
<length>5</length>
</annotation>
<annotation>
<mention>China</mention>
<wikiName>China PR national football team</wikiName>
<offset>241</offset>
<length>5</length>
</annotation>
<annotation>
<mention>Uzbekistan</mention>
<wikiName>Uzbekistan national football team</wikiName>
<offset>355</offset>
<length>10</length>
</annotation>
<annotation>
<mention>China</mention>
<wikiName>China PR national football team</wikiName>
<offset>368</offset>
<length>5</length>
</annotation>
<annotation>
<mention>Uzbek</mention>
<wikiName>Uzbekistan national football team</wikiName>
<offset>461</offset>
<length>5</length>
</annotation>
<annotation>
<mention>Igor Shkvyrin</mention>
<wikiName>Igor Shkvyrin</wikiName>
<offset>475</offset>
<length>13</length>
</annotation>
<annotation>
<mention>Chinese</mention>
<wikiName>China</wikiName>
<offset>573</offset>
<length>7</length>
</annotation>
<annotation>
<mention>Oleg Shatskiku</mention>
<wikiName></wikiName>
<offset>612</offset>
<length>14</length>
</annotation>
<annotation>
<mention>Soviet</mention>
<wikiName>Soviet Union</wikiName>
<offset>742</offset>
<length>6</length>
</annotation>
<annotation>
<mention>Asian Cup</mention>
<wikiName>AFC Asian Cup</wikiName>
<offset>776</offset>
<length>9</length>
</annotation>
<annotation>
<mention>Asian Games</mention>
<wikiName>1994 Asian Games</wikiName>
<offset>837</offset>
<length>11</length>
</annotation>
<annotation>
<mention>Uzbekistan</mention>
<wikiName>Uzbekistan national football team</wikiName>
<offset>870</offset>
<length>10</length>
</annotation>
<annotation>
<mention>Japan</mention>
<wikiName>Japan national football team</wikiName>
<offset>978</offset>
<length>5</length>
</annotation>
<annotation>
<mention>Syria</mention>
<wikiName>Syria national football team</wikiName>
<offset>1068</offset>
<length>5</length>
</annotation>
<annotation>
<mention>Takuya Takagi</mention>
<wikiName>Takuya Takagi</wikiName>
<offset>1076</offset>
<length>13</length>
</annotation>
<annotation>
<mention>Hiroshige Yanagimoto</mention>
<wikiName>Hiroshige Yanagimoto</wikiName>
<offset>1145</offset>
<length>20</length>
</annotation>
<annotation>
<mention>Syrian</mention>
<wikiName>Syria national football team</wikiName>
<offset>1184</offset>
<length>6</length>
</annotation>
<annotation>
<mention>Salem Bitar</mention>
<wikiName></wikiName>
<offset>1213</offset>
<length>11</length>
</annotation>
<annotation>
<mention>Syria</mention>
<wikiName>Syria national football team</wikiName>
<offset>1326</offset>
<length>5</length>
</annotation>
<annotation>
<mention>Hassan Abbas</mention>
<wikiName>Hassan Abbas</wikiName>
<offset>1358</offset>
<length>12</length>
</annotation>
<annotation>
<mention>Bitar</mention>
<wikiName></wikiName>
<offset>1487</offset>
<length>5</length>
</annotation>
<annotation>
<mention>Nader Jokhadar</mention>
<wikiName></wikiName>
<offset>1502</offset>
<length>14</length>
</annotation>
<annotation>
<mention>Syria</mention>
<wikiName>Syria national football team</wikiName>
<offset>1527</offset>
<length>5</length>
</annotation>
<annotation>
<mention>Japan</mention>
<wikiName>Japan national football team</wikiName>
<offset>1592</offset>
<length>5</length>
</annotation>
<annotation>
<mention>Syrian</mention>
<wikiName>Syria national football team</wikiName>
<offset>1621</offset>
<length>6</length>
</annotation>
<annotation>
<mention>Syrian</mention>
<wikiName>Syria national football team</wikiName>
<offset>1686</offset>
<length>6</length>
</annotation>
<annotation>
<mention>Bitar</mention>
<wikiName></wikiName>
<offset>1702</offset>
<length>5</length>
</annotation>
<annotation>
<mention>Japan</mention>
<wikiName>Japan national football team</wikiName>
<offset>1750</offset>
<length>5</length>
</annotation>
<annotation>
<mention>Shu Kamo</mention>
<wikiName>Shu Kamo</wikiName>
<offset>1762</offset>
<length>8</length>
</annotation>
<annotation>
<mention>Syrian</mention>
<wikiName>Syria national football team</wikiName>
<offset>1783</offset>
<length>6</length>
</annotation>
<annotation>
<mention>Syrians</mention>
<wikiName></wikiName>
<offset>1824</offset>
<length>7</length>
</annotation>
<annotation>
<mention>Japan</mention>
<wikiName>Japan</wikiName>
<offset>1926</offset>
<length>5</length>
</annotation>
<annotation>
<mention>World Cup</mention>
<wikiName>FIFA World Cup</wikiName>
<offset>1949</offset>
<length>9</length>
</annotation>
<annotation>
<mention>FIFA</mention>
<wikiName>FIFA</wikiName>
<offset>1999</offset>
<length>4</length>
</annotation>
<annotation>
<mention>UAE</mention>
<wikiName>United Arab Emirates national football team</wikiName>
<offset>2055</offset>
<length>3</length>
</annotation>
<annotation>
<mention>Kuwait</mention>
<wikiName>Kuwait national football team</wikiName>
<offset>2064</offset>
<length>6</length>
</annotation>
<annotation>
<mention>South Korea</mention>
<wikiName>South Korea national football team</wikiName>
<offset>2075</offset>
<length>11</length>
</annotation>
<annotation>
<mention>Indonesia</mention>
<wikiName>Indonesia national football team</wikiName>
<offset>2095</offset>
<length>9</length>
</annotation>
</document>
<document docName="239038newsML.txt">
<annotation>
<mention>RUGBY UNION</mention>
<wikiName>Rugby union</wikiName>
<offset>0</offset>
<length>11</length>
</annotation>
<annotation>
<mention>CUTTITTA</mention>
<wikiName>Marcello Cuttitta</wikiName>
<offset>12</offset>
<length>8</length>
</annotation>
<annotation>
<mention>ITALY</mention>
<wikiName>Italy national rugby union team</wikiName>
<offset>30</offset>
<length>5</length>
</annotation>
<annotation>
<mention>ROME</mention>
<wikiName>Rome</wikiName>
<offset>51</offset>
<length>4</length>
</annotation>
<annotation>
<mention>Italy</mention>
<wikiName>Italy national rugby union team</wikiName>
<offset>68</offset>
<length>5</length>
</annotation>
<annotation>
<mention>Marcello Cuttitta</mention>
<wikiName>Marcello Cuttitta</wikiName>
<offset>83</offset>
<length>17</length>
</annotation>
<annotation>
<mention>Scotland</mention>
<wikiName>Scotland national rugby union team</wikiName>
<offset>139</offset>
<length>8</length>
</annotation>
<annotation>
<mention>Murrayfield</mention>
<wikiName>Murrayfield Stadium</wikiName>
<offset>151</offset>
<length>11</length>
</annotation>
<annotation>
<mention>Cuttitta</mention>
<wikiName>Marcello Cuttitta</wikiName>
<offset>272</offset>
<length>8</length>
</annotation>
<annotation>
<mention>George Coste</mention>
<wikiName></wikiName>
<offset>294</offset>
<length>12</length>
</annotation>
<annotation>
<mention>England</mention>
<wikiName>England national rugby union team</wikiName>
<offset>423</offset>
<length>7</length>
</annotation>
<annotation>
<mention>Twickenham</mention>
<wikiName>Twickenham Stadium</wikiName>
<offset>434</offset>
<length>10</length>
</annotation>
<annotation>
<mention>Stefano Bordon</mention>
<wikiName></wikiName>
<offset>458</offset>
<length>14</length>
</annotation>
<annotation>
<mention>Coste</mention>
<wikiName></wikiName>
<offset>500</offset>
<length>5</length>
</annotation>
<annotation>
<mention>Corrado Covi</mention>
<wikiName></wikiName>
<offset>535</offset>
<length>12</length>
</annotation>
<annotation>
<mention>England</mention>
<wikiName>England national rugby union team</wikiName>
<offset>579</offset>
<length>7</length>
</annotation>
<annotation>
<mention>Cuttitta</mention>
<wikiName>Marcello Cuttitta</wikiName>
<offset>636</offset>
<length>8</length>
</annotation>
<annotation>
<mention>1995 World Cup</mention>
<wikiName>1995 Rugby World Cup</wikiName>
<offset>680</offset>
<length>14</length>
</annotation>
<annotation>
<mention>Italy</mention>
<wikiName>Italy national rugby union team</wikiName>
<offset>744</offset>
<length>5</length>
</annotation>
<annotation>
<mention>England</mention>
<wikiName>England national rugby union team</wikiName>
<offset>766</offset>
<length>7</length>
</annotation>
<annotation>
<mention>Coste</mention>
<wikiName></wikiName>
<offset>795</offset>
<length>5</length>
</annotation>
<annotation>
<mention>World Cup</mention>
<wikiName>Rugby World Cup</wikiName>
<offset>883</offset>
<length>9</length>
</annotation>
<annotation>
<mention>Coste</mention>
<wikiName></wikiName>
<offset>913</offset>
<length>5</length>
</annotation>
<annotation>
<mention>Javier Pertile</mention>
<wikiName></wikiName>
<offset>1066</offset>
<length>14</length>
</annotation>
<annotation>
<mention>Paolo Vaccari</mention>
<wikiName>Paolo Vaccari</wikiName>
<offset>1082</offset>
<length>13</length>
</annotation>
<annotation>
<mention>Marcello Cuttitta</mention>
<wikiName>Marcello Cuttitta</wikiName>
<offset>1097</offset>
<length>17</length>
</annotation>
<annotation>
<mention>Ivan Francescato</mention>
<wikiName>Ivan Francescato</wikiName>
<offset>1116</offset>
<length>16</length>
</annotation>
<annotation>
<mention>Leandro Manteri</mention>
<wikiName></wikiName>
<offset>1134</offset>
<length>15</length>
</annotation>
<annotation>
<mention>Diego Dominguez</mention>
<wikiName>Diego Domínguez</wikiName>
<offset>1151</offset>
<length>15</length>
</annotation>
<annotation>
<mention>Francesco Mazzariol</mention>
<wikiName>Francesco Mazzariol</wikiName>
<offset>1168</offset>
<length>19</length>
</annotation>
<annotation>
<mention>Alessandro Troncon</mention>
<wikiName>Alessandro Troncon</wikiName>
<offset>1189</offset>
<length>18</length>
</annotation>
<annotation>
<mention>Orazio Arancio</mention>
<wikiName></wikiName>
<offset>1209</offset>
<length>14</length>
</annotation>
<annotation>
<mention>Andrea Sgorlon</mention>
<wikiName></wikiName>
<offset>1225</offset>
<length>14</length>
</annotation>
<annotation>
<mention>Massimo Giovanelli</mention>
<wikiName></wikiName>
<offset>1241</offset>
<length>18</length>
</annotation>
<annotation>
<mention>Carlo Checchinato</mention>
<wikiName>Carlo Checchinato</wikiName>
<offset>1261</offset>
<length>17</length>
</annotation>
<annotation>
<mention>Walter Cristofoletto</mention>
<wikiName></wikiName>
<offset>1280</offset>
<length>20</length>
</annotation>
<annotation>
<mention>Franco Properzi Curti</mention>
<wikiName></wikiName>
<offset>1302</offset>
<length>21</length>
</annotation>
<annotation>
<mention>Carlo Orlandi</mention>
<wikiName></wikiName>
<offset>1325</offset>
<length>13</length>
</annotation>
<annotation>
<mention>Massimo Cuttitta</mention>
<wikiName>Massimo Cuttitta</wikiName>
<offset>1340</offset>
<length>16</length>
</annotation>
<annotation>
<mention>Giambatista Croci</mention>
<wikiName></wikiName>
<offset>1358</offset>
<length>17</length>
</annotation>
<annotation>
<mention>Gianluca Guidi</mention>
<wikiName></wikiName>
<offset>1377</offset>
<length>14</length>
</annotation>
<annotation>
<mention>Nicola Mazzucato</mention>
<wikiName>Nicola Mazzucato</wikiName>
<offset>1393</offset>
<length>16</length>
</annotation>
<annotation>
<mention>Alessandro Moscardi</mention>
<wikiName>Alessandro Moscardi</wikiName>
<offset>1411</offset>
<length>19</length>
</annotation>
<annotation>
<mention>Andrea Castellani</mention>
<wikiName></wikiName>
<offset>1432</offset>
<length>17</length>
</annotation>
</document>
<document docName="239040newsML.txt">
<annotation>
<mention>JAPAN</mention>
<wikiName>Japan national football team</wikiName>
<offset>23</offset>
<length>5</length>
</annotation>
<annotation>
<mention>SYRIA</mention>
<wikiName>Syria national football team</wikiName>
<offset>38</offset>
<length>5</length>
</annotation>
<annotation>
<mention>AL-AIN</mention>
<wikiName>Al Ain</wikiName>
<offset>46</offset>
<length>6</length>
</annotation>
<annotation>
<mention>United Arab Emirates</mention>
<wikiName>United Arab Emirates</wikiName>
<offset>54</offset>
<length>20</length>
</annotation>
<annotation>
<mention>Japan</mention>
<wikiName>Japan national football team</wikiName>
<offset>134</offset>
<length>5</length>
</annotation>
<annotation>
<mention>Asian Cup</mention>
<wikiName>AFC Asian Cup</wikiName>
<offset>159</offset>
<length>9</length>
</annotation>
<annotation>
<mention>Syria</mention>
<wikiName>Syria national football team</wikiName>
<offset>182</offset>
<length>5</length>
</annotation>
<annotation>
<mention>Takuya Takagi</mention>
<wikiName>Takuya Takagi</wikiName>
<offset>200</offset>
<length>13</length>
</annotation>
<annotation>
<mention>Salem Bitar</mention>
<wikiName></wikiName>
<offset>288</offset>
<length>11</length>
</annotation>
<annotation>
<mention>Syrian</mention>
<wikiName>Syria national football team</wikiName>
<offset>395</offset>
<length>6</length>
</annotation>
<annotation>
<mention>Hassan Abbas</mention>
<wikiName>Hassan Abbas</wikiName>
<offset>446</offset>
<length>12</length>
</annotation>
<annotation>
<mention>Bitar</mention>
<wikiName></wikiName>
<offset>575</offset>
<length>5</length>
</annotation>
<annotation>
<mention>Syria</mention>
<wikiName>Syria national football team</wikiName>
<offset>590</offset>
<length>5</length>
</annotation>
<annotation>
<mention>Nader Jokhadar</mention>
<wikiName></wikiName>
<offset>670</offset>
<length>14</length>
</annotation>
<annotation>
<mention>Ammar Awad</mention>
<wikiName></wikiName>
<offset>718</offset>
<length>10</length>
</annotation>
<annotation>
<mention>Kenichi Shimokawa</mention>
<wikiName>Kenichi Shimokawa</wikiName>
<offset>758</offset>
<length>17</length>
</annotation>
<annotation>
<mention>Japan</mention>
<wikiName>Japan national football team</wikiName>
<offset>785</offset>
<length>5</length>
</annotation>
<annotation>
<mention>Syrian</mention>
<wikiName>Syria national football team</wikiName>
<offset>814</offset>
<length>6</length>
</annotation>
<annotation>
<mention>Bitar</mention>
<wikiName></wikiName>
<offset>908</offset>
<length>5</length>
</annotation>
<annotation>
<mention>Kazuyoshi Miura</mention>
<wikiName>Kazuyoshi Miura</wikiName>
<offset>954</offset>
<length>15</length>
</annotation>
<annotation>
<mention>Takagi</mention>
<wikiName>Takuya Takagi</wikiName>
<offset>998</offset>
<length>6</length>
</annotation>
<annotation>
<mention>Bitar</mention>
<wikiName></wikiName>
<offset>1022</offset>
<length>5</length>
</annotation>
<annotation>
<mention>Miura</mention>
<wikiName>Kazuyoshi Miura</wikiName>
<offset>1050</offset>
<length>5</length>
</annotation>
<annotation>
<mention>Japan</mention>
<wikiName>Japan national football team</wikiName>
<offset>1117</offset>
<length>5</length>
</annotation>
<annotation>
<mention>Bitar</mention>
<wikiName></wikiName>
<offset>1160</offset>
<length>5</length>
</annotation>
<annotation>
<mention>Naoki Soma</mention>
<wikiName>Naoki Soma</wikiName>
<offset>1226</offset>
<length>10</length>
</annotation>
<annotation>
<mention>Japan</mention>
<wikiName>Japan national football team</wikiName>
<offset>1270</offset>
<length>5</length>
</annotation>
<annotation>
<mention>Kenichi Shimokawa</mention>
<wikiName>Kenichi Shimokawa</wikiName>
<offset>1280</offset>
<length>17</length>
</annotation>
<annotation>
<mention>Hiroshige Yanagimoto</mention>
<wikiName>Hiroshige Yanagimoto</wikiName>
<offset>1301</offset>
<length>20</length>
</annotation>
<annotation>
<mention>Naoki Soma</mention>
<wikiName>Naoki Soma</wikiName>
<offset>1325</offset>
<length>10</length>
</annotation>
<annotation>
<mention>Masami Ihara</mention>
<wikiName>Masami Ihara</wikiName>
<offset>1339</offset>
<length>12</length>
</annotation>
<annotation>
<mention>Norio Omura</mention>
<wikiName>Norio Omura</wikiName>
<offset>1355</offset>
<length>11</length>
</annotation>
<annotation>
<mention>Motohiro Yamaguchi</mention>
<wikiName>Motohiro Yamaguchi</wikiName>
<offset>1370</offset>
<length>18</length>
</annotation>
<annotation>
<mention>Masakiyo Maezono</mention>
<wikiName>Masakiyo Maezono</wikiName>
<offset>1392</offset>
<length>16</length>
</annotation>
<annotation>
<mention>Yasuto Honda</mention>
<wikiName>Yasuto Honda</wikiName>
<offset>1412</offset>
<length>12</length>
</annotation>
<annotation>
<mention>Takuya Takagi</mention>
<wikiName>Takuya Takagi</wikiName>
<offset>1432</offset>
<length>13</length>
</annotation>
<annotation>
<mention>Hiroshi Nanami</mention>
<wikiName>Hiroshi Nanami</wikiName>
<offset>1450</offset>
<length>14</length>
</annotation>
<annotation>
<mention>Kazuyoshi Miura</mention>
<wikiName>Kazuyoshi Miura</wikiName>
<offset>1469</offset>
<length>15</length>
</annotation>
<annotation>
<mention>Hiroaki Morishima</mention>
<wikiName>Hiroaki Morishima</wikiName>
<offset>1489</offset>
<length>17</length>
</annotation>
<annotation>
<mention>Masayuki Okano</mention>
<wikiName>Masayuki Okano</wikiName>
<offset>1511</offset>
<length>14</length>
</annotation>
<annotation>
<mention>Syria</mention>
<wikiName>Syria national football team</wikiName>
<offset>1532</offset>
<length>5</length>
</annotation>
<annotation>
<mention>Salem Bitar</mention>
<wikiName></wikiName>
<offset>1542</offset>
<length>11</length>
</annotation>
<annotation>
<mention>Bachar Srour</mention>
<wikiName></wikiName>
<offset>1557</offset>
<length>12</length>
</annotation>
<annotation>
<mention>Hassan Abbas</mention>
<wikiName>Hassan Abbas</wikiName>
<offset>1573</offset>
<length>12</length>
</annotation>
<annotation>
<mention>Tarek Jabban</mention>
<wikiName>Tarek Jabban</wikiName>
<offset>1589</offset>
<length>12</length>
</annotation>
<annotation>
<mention>Ammar Awad</mention>
<wikiName></wikiName>
<offset>1605</offset>
<length>10</length>
</annotation>
<annotation>
<mention>Louay Taleb</mention>
<wikiName></wikiName>
<offset>1619</offset>
<length>11</length>
</annotation>
<annotation>
<mention>Nihad al-Boushi</mention>
<wikiName></wikiName>
<offset>1638</offset>
<length>15</length>
</annotation>
<annotation>
<mention>Mohammed Afash</mention>
<wikiName></wikiName>
<offset>1658</offset>
<length>14</length>
</annotation>
<annotation>
<mention>Ali Dib</mention>
<wikiName></wikiName>
<offset>1677</offset>
<length>7</length>
</annotation>
<annotation>
<mention>Abdul Latif Helou</mention>
<wikiName></wikiName>
<offset>1689</offset>
<length>17</length>
</annotation>
<annotation>
<mention>Ammar Rihawiy</mention>
<wikiName></wikiName>
<offset>1711</offset>
<length>13</length>
</annotation>
<annotation>
<mention>Khaled Zaher</mention>
<wikiName>Khaled Al Zaher</wikiName>
<offset>1733</offset>
<length>12</length>
</annotation>
<annotation>
<mention>Nader Jokhadar</mention>
<wikiName></wikiName>
<offset>1750</offset>
<length>14</length>
</annotation>
</document>
<document docName="239041newsML.txt">
<annotation>
<mention>SKIING-WORLD CUP</mention>
<wikiName></wikiName>
<offset>10</offset>
<length>16</length>
</annotation>
<annotation>
<mention>TIGNES</mention>
<wikiName>Tignes</wikiName>
<offset>43</offset>
<length>6</length>
</annotation>
<annotation>
<mention>France</mention>
<wikiName>France</wikiName>
<offset>51</offset>
<length>6</length>
</annotation>
<annotation>
<mention>World Cup</mention>
<wikiName>FIS Freestyle Skiing World Cup</wikiName>
<offset>85</offset>
<length>9</length>
</annotation>
<annotation>
<mention>Jesper Ronnback</mention>
<wikiName></wikiName>
<offset>153</offset>
<length>15</length>
</annotation>
<annotation>
<mention>Sweden</mention>
<wikiName>Sweden</wikiName>
<offset>170</offset>
<length>6</length>
</annotation>
<annotation>
<mention>Andrei Ivanov</mention>
<wikiName></wikiName>
<offset>198</offset>
<length>13</length>
</annotation>
<annotation>
<mention>Russia</mention>
<wikiName>Russia</wikiName>
<offset>213</offset>
<length>6</length>
</annotation>
<annotation>
<mention>Ryan Johnson</mention>
<wikiName></wikiName>
<offset>236</offset>
<length>12</length>
</annotation>
<annotation>
<mention>Canada</mention>
<wikiName>Canada</wikiName>
<offset>250</offset>
<length>6</length>
</annotation>
<annotation>
<mention>Jean-Luc Brassard</mention>
<wikiName>Jean-Luc Brassard</wikiName>
<offset>274</offset>
<length>17</length>
</annotation>
<annotation>
<mention>Canada</mention>
<wikiName>Canada</wikiName>
<offset>293</offset>
<length>6</length>
</annotation>
<annotation>
<mention>Korneilus Hole</mention>
<wikiName></wikiName>
<offset>312</offset>
<length>14</length>
</annotation>
<annotation>
<mention>Norway</mention>
<wikiName>Norway</wikiName>
<offset>328</offset>
<length>6</length>
</annotation>
<annotation>
<mention>Jeremie Collomb-Patton</mention>
<wikiName></wikiName>
<offset>349</offset>
<length>22</length>
</annotation>
<annotation>
<mention>France</mention>
<wikiName>France</wikiName>
<offset>373</offset>
<length>6</length>
</annotation>
<annotation>
<mention>Jim Moran</mention>
<wikiName></wikiName>
<offset>392</offset>
<length>9</length>
</annotation>
<annotation>
<mention>U.S.</mention>
<wikiName>United States</wikiName>
<offset>403</offset>
<length>4</length>
</annotation>
<annotation>
<mention>Dominick Gauthier</mention>
<wikiName></wikiName>
<offset>425</offset>
<length>17</length>
</annotation>
<annotation>
<mention>Canada</mention>
<wikiName>Canada</wikiName>
<offset>444</offset>
<length>6</length>
</annotation>
<annotation>
<mention>Johann Gregoire</mention>
<wikiName></wikiName>
<offset>463</offset>
<length>15</length>
</annotation>
<annotation>
<mention>France</mention>
<wikiName>France</wikiName>
<offset>480</offset>
<length>6</length>
</annotation>
<annotation>
<mention>Troy Benson</mention>
<wikiName></wikiName>
<offset>502</offset>
<length>11</length>
</annotation>
<annotation>
<mention>U.S.</mention>
<wikiName>United States</wikiName>
<offset>515</offset>
<length>4</length>
</annotation>
<annotation>
<mention>Tatjana Mittermayer</mention>
<wikiName>Tatjana Mittermayer</wikiName>
<offset>541</offset>
<length>19</length>
</annotation>
<annotation>
<mention>Germany</mention>
<wikiName>Germany</wikiName>
<offset>562</offset>
<length>7</length>
</annotation>
<annotation>
<mention>Candice Gilg</mention>
<wikiName></wikiName>
<offset>584</offset>
<length>12</length>
</annotation>
<annotation>
<mention>France</mention>
<wikiName>France</wikiName>
<offset>598</offset>
<length>6</length>
</annotation>
<annotation>
<mention>Minna Karhu</mention>
<wikiName></wikiName>
<offset>622</offset>
<length>11</length>
</annotation>
<annotation>
<mention>Finland</mention>
<wikiName>Finland</wikiName>
<offset>635</offset>
<length>7</length>
</annotation>
<annotation>
<mention>Tae Satoya</mention>
<wikiName>Tae Satoya</wikiName>
<offset>660</offset>
<length>10</length>
</annotation>
<annotation>
<mention>Japan</mention>
<wikiName>Japan</wikiName>
<offset>672</offset>
<length>5</length>
</annotation>
<annotation>
<mention>Ann Battellle</mention>
<wikiName></wikiName>
<offset>693</offset>
<length>13</length>
</annotation>
<annotation>
<mention>U.S.</mention>
<wikiName>United States</wikiName>
<offset>708</offset>
<length>4</length>
</annotation>
<annotation>
<mention>Donna Weinbrecht</mention>
<wikiName>Donna Weinbrecht</wikiName>
<offset>726</offset>
<length>16</length>
</annotation>
<annotation>
<mention>U.S.</mention>
<wikiName>United States</wikiName>
<offset>744</offset>
<length>4</length>
</annotation>
<annotation>
<mention>Liz McIntyre</mention>
<wikiName>Elizabeth McIntyre</wikiName>
<offset>764</offset>
<length>12</length>
</annotation>
<annotation>
<mention>U.S.</mention>
<wikiName>United States</wikiName>
<offset>778</offset>
<length>4</length>
</annotation>
<annotation>
<mention>Elena Koroleva</mention>
<wikiName></wikiName>
<offset>797</offset>
<length>14</length>
</annotation>
<annotation>
<mention>Russia</mention>
<wikiName>Russia</wikiName>
<offset>813</offset>
<length>6</length>
</annotation>
<annotation>
<mention>Ljudmila Dymchenko</mention>
<wikiName></wikiName>
<offset>835</offset>
<length>18</length>
</annotation>
<annotation>
<mention>Russia</mention>
<wikiName>Russia</wikiName>
<offset>855</offset>
<length>6</length>
</annotation>
<annotation>
<mention>Katleen Allais</mention>
<wikiName></wikiName>
<offset>879</offset>
<length>14</length>
</annotation>
<annotation>
<mention>France</mention>
<wikiName>France</wikiName>
<offset>895</offset>
<length>6</length>
</annotation>
</document>
<document docName="239042newsML.txt">
<annotation>
<mention>ASIAN CUP</mention>
<wikiName>AFC Asian Cup</wikiName>
<offset>7</offset>
<length>9</length>
</annotation>
<annotation>
<mention>AL-AIN</mention>
<wikiName>Al Ain</wikiName>
<offset>35</offset>
<length>6</length>
</annotation>
<annotation>
<mention>United Arab Emirates</mention>
<wikiName>United Arab Emirates</wikiName>
<offset>43</offset>
<length>20</length>
</annotation>
<annotation>
<mention>Asian Cup</mention>
<wikiName>AFC Asian Cup</wikiName>
<offset>87</offset>
<length>9</length>
</annotation>
<annotation>
<mention>Japan</mention>
<wikiName>Japan national football team</wikiName>
<offset>132</offset>
<length>5</length>
</annotation>
<annotation>
<mention>Syria</mention>
<wikiName>Syria national football team</wikiName>
<offset>140</offset>
<length>5</length>
</annotation>
<annotation>
<mention>Japan</mention>
<wikiName>Japan national football team</wikiName>
<offset>174</offset>
<length>5</length>
</annotation>
<annotation>
<mention>Hassan Abbas</mention>
<wikiName>Hassan Abbas</wikiName>
<offset>182</offset>
<length>12</length>
</annotation>
<annotation>
<mention>Takuya Takagi</mention>
<wikiName>Takuya Takagi</wikiName>
<offset>208</offset>
<length>13</length>
</annotation>
<annotation>
<mention>Syria</mention>
<wikiName>Syria national football team</wikiName>
<offset>227</offset>
<length>5</length>
</annotation>
<annotation>
<mention>Nader Jokhadar</mention>
<wikiName></wikiName>
<offset>235</offset>
<length>14</length>
</annotation>
<annotation>
<mention>China</mention>
<wikiName>China PR national football team</wikiName>
<offset>276</offset>
<length>5</length>
</annotation>
<annotation>
<mention>Uzbekistan</mention>
<wikiName>Uzbekistan national football team</wikiName>
<offset>284</offset>
<length>10</length>
</annotation>
<annotation>
<mention>Shkvyrin Igor</mention>
<wikiName></wikiName>
<offset>322</offset>
<length>13</length>
</annotation>
<annotation>
<mention>Shatskikh Oleg</mention>
<wikiName></wikiName>
<offset>340</offset>
<length>14</length>
</annotation>
<annotation>
<mention>Uzbekistan</mention>
<wikiName>Uzbekistan national football team</wikiName>
<offset>468</offset>
<length>10</length>
</annotation>
<annotation>
<mention>Japan</mention>
<wikiName>Japan national football team</wikiName>
<offset>517</offset>
<length>5</length>
</annotation>
<annotation>
<mention>Syria</mention>
<wikiName>Syria national football team</wikiName>
<offset>561</offset>
<length>5</length>
</annotation>
<annotation>
<mention>China</mention>
<wikiName>China PR national football team</wikiName>
<offset>606</offset>
<length>5</length>
</annotation>
</document>
<document docName="239046newsML.txt">
<annotation>
<mention>PAKISTAN</mention>
<wikiName>Pakistan national cricket team</wikiName>
<offset>8</offset>
<length>8</length>
</annotation>
<annotation>
<mention>NEW ZEALAND</mention>
<wikiName>New Zealand national cricket team</wikiName>
<offset>19</offset>
<length>11</length>
</annotation>
<annotation>
<mention>GMT</mention>
<wikiName>Greenwich Mean Time</wikiName>
<offset>68</offset>
<length>3</length>
</annotation>
<annotation>
<mention>SIALKOT</mention>
<wikiName>Sialkot</wikiName>
<offset>74</offset>
<length>7</length>
</annotation>
<annotation>
<mention>Pakistan</mention>
<wikiName>Pakistan</wikiName>
<offset>83</offset>
<length>8</length>
</annotation>
<annotation>
<mention>Pakistan</mention>
<wikiName>Pakistan national cricket team</wikiName>
<offset>168</offset>
<length>8</length>
</annotation>
<annotation>
<mention>New Zealand</mention>
<wikiName>New Zealand national cricket team</wikiName>
<offset>181</offset>
<length>11</length>
</annotation>
<annotation>
<mention>Pakistan</mention>
<wikiName>Pakistan national cricket team</wikiName>
<offset>210</offset>
<length>8</length>
</annotation>
<annotation>
<mention>Saeed Anwar</mention>
<wikiName>Saeed Anwar</wikiName>
<offset>225</offset>
<length>11</length>
</annotation>
<annotation>
<mention>Zahoor Elahi</mention>
<wikiName>Zahoor Elahi</wikiName>
<offset>275</offset>
<length>12</length>
</annotation>
<annotation>
<mention>Cairns</mention>
<wikiName>Chris Cairns</wikiName>
<offset>290</offset>
<length>6</length>
</annotation>
<annotation>
<mention>Ijaz Ahmad</mention>
<wikiName></wikiName>
<offset>325</offset>
<length>10</length>
</annotation>
<annotation>
<mention>Spearman</mention>
<wikiName>Craig Spearman</wikiName>
<offset>338</offset>
<length>8</length>
</annotation>
<annotation>
<mention>Vaughan</mention>
<wikiName>Justin Vaughan</wikiName>
<offset>349</offset>
<length>7</length>
</annotation>
<annotation>
<mention>Inzamamul Haq</mention>
<wikiName></wikiName>
<offset>366</offset>
<length>13</length>
</annotation>
<annotation>
<mention>Germon</mention>
<wikiName>Lee Germon</wikiName>
<offset>383</offset>
<length>6</length>
</annotation>
<annotation>
<mention>Astle</mention>
<wikiName>Nathan Astle</wikiName>
<offset>392</offset>
<length>5</length>
</annotation>
<annotation>
<mention>Wasim Akram</mention>
<wikiName>Wasim Akram</wikiName>
<offset>402</offset>
<length>11</length>
</annotation>
<annotation>
<mention>Harris</mention>
<wikiName>Chris Harris (cricketer)</wikiName>
<offset>416</offset>
<length>6</length>
</annotation>
<annotation>
<mention>Shahid Afridi</mention>
<wikiName>Shahid Afridi</wikiName>
<offset>433</offset>
<length>13</length>
</annotation>
<annotation>
<mention>Harris</mention>
<wikiName>Chris Harris (cricketer)</wikiName>
<offset>449</offset>
<length>6</length>
</annotation>
<annotation>
<mention>Moin Khan</mention>
<wikiName>Moin Khan</wikiName>
<offset>464</offset>
<length>9</length>
</annotation>
<annotation>
<mention>Astle</mention>
<wikiName>Nathan Astle</wikiName>
<offset>476</offset>
<length>5</length>
</annotation>
<annotation>
<mention>Harris</mention>
<wikiName>Chris Harris (cricketer)</wikiName>
<offset>484</offset>
<length>6</length>
</annotation>
<annotation>
<mention>Waqar Younis</mention>
<wikiName>Waqar Younis</wikiName>
<offset>500</offset>
<length>12</length>
</annotation>
<annotation>
<mention>Germon</mention>
<wikiName>Lee Germon</wikiName>
<offset>516</offset>
<length>6</length>
</annotation>
<annotation>
<mention>Harris</mention>
<wikiName>Chris Harris (cricketer)</wikiName>
<offset>525</offset>
<length>6</length>
</annotation>
<annotation>
<mention>Saqlain Mushtaq</mention>
<wikiName>Saqlain Mushtaq</wikiName>
<offset>536</offset>
<length>15</length>
</annotation>
<annotation>
<mention>Harris</mention>
<wikiName>Chris Harris (cricketer)</wikiName>
<offset>554</offset>
<length>6</length>
</annotation>
<annotation>
<mention>Mushtaq Ahmad</mention>
<wikiName></wikiName>
<offset>567</offset>
<length>13</length>
</annotation>
<annotation>
<mention>Salim Malik</mention>
<wikiName>Saleem Malik</wikiName>
<offset>598</offset>
<length>11</length>
</annotation>
<annotation>
<mention>Doull</mention>
<wikiName>Simon Doull</wikiName>
<offset>796</offset>
<length>5</length>
</annotation>
<annotation>
<mention>Kennedy</mention>
<wikiName></wikiName>
<offset>818</offset>
<length>7</length>
</annotation>
<annotation>
<mention>Cairns</mention>
<wikiName>Chris Cairns</wikiName>
<offset>848</offset>
<length>6</length>
</annotation>
<annotation>
<mention>Vaughan</mention>
<wikiName>Justin Vaughan</wikiName>
<offset>871</offset>
<length>7</length>
</annotation>
<annotation>
<mention>Harris</mention>
<wikiName>Chris Harris (cricketer)</wikiName>
<offset>889</offset>
<length>6</length>
</annotation>
<annotation>
<mention>Astle</mention>
<wikiName>Nathan Astle</wikiName>
<offset>914</offset>
<length>5</length>
</annotation>
<annotation>
<mention>New Zealand</mention>
<wikiName>New Zealand national cricket team</wikiName>
<offset>941</offset>
<length>11</length>
</annotation>
<annotation>
<mention>B.Young</mention>
<wikiName></wikiName>
<offset>963</offset>
<length>7</length>
</annotation>
<annotation>
<mention>Moin Khan</mention>
<wikiName>Moin Khan</wikiName>
<offset>973</offset>
<length>9</length>
</annotation>
<annotation>
<mention>Waqar</mention>
<wikiName>Waqar Younis</wikiName>
<offset>985</offset>
<length>5</length>
</annotation>
<annotation>
<mention>C.Spearman</mention>
<wikiName></wikiName>
<offset>999</offset>
<length>10</length>
</annotation>
<annotation>
<mention>Moin Khan</mention>
<wikiName>Moin Khan</wikiName>
<offset>1012</offset>
<length>9</length>
</annotation>
<annotation>
<mention>Wasim</mention>
<wikiName>Wasim Akram</wikiName>
<offset>1024</offset>
<length>5</length>
</annotation>
<annotation>
<mention>A.Parore</mention>
<wikiName></wikiName>
<offset>1035</offset>
<length>8</length>
</annotation>
<annotation>
<mention>Ijaz Ahmad</mention>
<wikiName></wikiName>
<offset>1046</offset>
<length>10</length>
</annotation>
<annotation>
<mention>Saqlain</mention>
<wikiName>Saqlain Mushtaq</wikiName>
<offset>1059</offset>
<length>7</length>
</annotation>
<annotation>
<mention>S.Fleming</mention>
<wikiName></wikiName>
<offset>1076</offset>
<length>9</length>
</annotation>
<annotation>
<mention>Afridi</mention>
<wikiName>Shahid Afridi</wikiName>
<offset>1094</offset>
<length>6</length>
</annotation>
<annotation>
<mention>C.Cairns</mention>
<wikiName></wikiName>
<offset>1107</offset>
<length>8</length>
</annotation>
<annotation>
<mention>Saqlain</mention>
<wikiName>Saqlain Mushtaq</wikiName>
<offset>1118</offset>
<length>7</length>
</annotation>
<annotation>
<mention>N.Astle</mention>
<wikiName></wikiName>
<offset>1133</offset>
<length>7</length>
</annotation>
<annotation>
<mention>Ijaz Ahmad</mention>
<wikiName></wikiName>
<offset>1143</offset>
<length>10</length>
</annotation>
<annotation>
<mention>Salim Malik</mention>
<wikiName>Saleem Malik</wikiName>
<offset>1156</offset>
<length>11</length>
</annotation>
<annotation>
<mention>C.Harris</mention>
<wikiName></wikiName>
<offset>1174</offset>
<length>8</length>
</annotation>
<annotation>
<mention>Wasim</mention>
<wikiName>Wasim Akram</wikiName>
<offset>1189</offset>
<length>5</length>
</annotation>
<annotation>
<mention>L.Germon</mention>
<wikiName></wikiName>
<offset>1205</offset>
<length>8</length>
</annotation>
<annotation>
<mention>Afridi</mention>
<wikiName>Shahid Afridi</wikiName>
<offset>1220</offset>
<length>6</length>
</annotation>
<annotation>
<mention>J.Vaughan</mention>
<wikiName></wikiName>
<offset>1236</offset>
<length>9</length>
</annotation>
<annotation>
<mention>Moin Khan</mention>
<wikiName>Moin Khan</wikiName>
<offset>1248</offset>
<length>9</length>
</annotation>
<annotation>
<mention>Wasim</mention>
<wikiName>Wasim Akram</wikiName>
<offset>1260</offset>
<length>5</length>
</annotation>
<annotation>
<mention>S.Doull</mention>
<wikiName></wikiName>
<offset>1272</offset>
<length>7</length>
</annotation>
<annotation>
<mention>M.Wasim</mention>
<wikiName></wikiName>
<offset>1288</offset>
<length>7</length>
</annotation>
<annotation>
<mention>Waqar</mention>
<wikiName>Waqar Younis</wikiName>
<offset>1299</offset>
<length>5</length>
</annotation>
<annotation>
<mention>R.Kennedy</mention>
<wikiName></wikiName>
<offset>1313</offset>
<length>9</length>
</annotation>
<annotation>
<mention>Wasim Akram</mention>
<wikiName>Wasim Akram</wikiName>
<offset>1495</offset>
<length>11</length>
</annotation>
<annotation>
<mention>Waqar Younis</mention>
<wikiName>Waqar Younis</wikiName>
<offset>1529</offset>
<length>12</length>
</annotation>
<annotation>
<mention>Saqlain Mushtaq</mention>
<wikiName>Saqlain Mushtaq</wikiName>
<offset>1563</offset>
<length>15</length>
</annotation>
<annotation>
<mention>Mushtaq Ahmad</mention>
<wikiName></wikiName>
<offset>1589</offset>
<length>13</length>
</annotation>
<annotation>
<mention>Shahid Afridi</mention>
<wikiName>Shahid Afridi</wikiName>
<offset>1620</offset>
<length>13</length>
</annotation>
<annotation>
<mention>Salim Malik</mention>
<wikiName>Saleem Malik</wikiName>
<offset>1644</offset>
<length>11</length>
</annotation>
<annotation>
<mention>Ijaz Ahmad</mention>
<wikiName></wikiName>
<offset>1668</offset>
<length>10</length>
</annotation>
<annotation>
<mention>Pakistan</mention>
<wikiName>Pakistan national cricket team</wikiName>
<offset>1699</offset>
<length>8</length>
</annotation>
<annotation>
<mention>Karachi</mention>
<wikiName>Karachi</wikiName>
<offset>1761</offset>
<length>7</length>
</annotation>
</document>
<document docName="239051newsML.txt">
<annotation>
<mention>ENGLISH F.A. CUP</mention>
<wikiName></wikiName>
<offset>7</offset>
<length>16</length>
</annotation>
<annotation>
<mention>LONDON</mention>
<wikiName>London</wikiName>
<offset>46</offset>
<length>6</length>
</annotation>
<annotation>
<mention>English F.A. Challenge
Cup</mention>
<wikiName></wikiName>
<offset>78</offset>
<length>27</length>
</annotation>
<annotation>
<mention>Plymouth</mention>
<wikiName>Plymouth Argyle F.C.</wikiName>
<offset>138</offset>
<length>8</length>
</annotation>
<annotation>
<mention>Exeter</mention>
<wikiName>Exeter City F.C.</wikiName>
<offset>153</offset>
<length>6</length>
</annotation>
</document>
<document docName="239052newsML.txt">
<annotation>
<mention>BLINKER</mention>
<wikiName>Regi Blinker</wikiName>
<offset>7</offset>
<length>7</length>
</annotation>
<annotation>
<mention>LONDON</mention>
<wikiName>London</wikiName>
<offset>28</offset>
<length>6</length>
</annotation>
<annotation>
<mention>Dutch</mention>
<wikiName>Netherlands national football team</wikiName>
<offset>47</offset>
<length>5</length>
</annotation>
<annotation>
<mention>Reggie Blinker</mention>
<wikiName></wikiName>
<offset>61</offset>
<length>14</length>
</annotation>
<annotation>
<mention>FIFA</mention>
<wikiName>FIFA</wikiName>
<offset>116</offset>
<length>4</length>
</annotation>
<annotation>
<mention>Sheffield Wednesday</mention>
<wikiName>Sheffield Wednesday F.C.</wikiName>
<offset>155</offset>
<length>19</length>
</annotation>
<annotation>
<mention>Liverpool</mention>
<wikiName>Liverpool F.C.</wikiName>
<offset>192</offset>
<length>9</length>
</annotation>
<annotation>
<mention>Blinker</mention>
<wikiName>Regi Blinker</wikiName>
<offset>216</offset>
<length>7</length>
</annotation>
<annotation>
<mention>FIFA</mention>
<wikiName>FIFA</wikiName>
<offset>263</offset>
<length>4</length>
</annotation>
<annotation>
<mention>Wednesday</mention>
<wikiName>Sheffield Wednesday F.C.</wikiName>
<offset>340</offset>
<length>9</length>
</annotation>
<annotation>
<mention>Udinese</mention>
<wikiName>Udinese Calcio</wikiName>
<offset>354</offset>
<length>7</length>
</annotation>
<annotation>
<mention>Feyenoord</mention>
<wikiName>Feyenoord</wikiName>
<offset>387</offset>
<length>9</length>
</annotation>
<annotation>
<mention>FIFA</mention>
<wikiName>FIFA</wikiName>
<offset>399</offset>
<length>4</length>
</annotation>
<annotation>
<mention>Barcelona</mention>
<wikiName>Barcelona</wikiName>
<offset>444</offset>
<length>9</length>
</annotation>
<annotation>
<mention>Udinese</mention>
<wikiName>Udinese Calcio</wikiName>
<offset>481</offset>
<length>7</length>
</annotation>
<annotation>
<mention>Italian</mention>
<wikiName>Italy</wikiName>
<offset>577</offset>
<length>7</length>
</annotation>
<annotation>
<mention>Feyenoord</mention>
<wikiName>Feyenoord</wikiName>
<offset>636</offset>
<length>9</length>
</annotation>
<annotation>
<mention>Blinker</mention>
<wikiName>Regi Blinker</wikiName>
<offset>689</offset>
<length>7</length>
</annotation>
<annotation>
<mention>Swiss</mention>
<wikiName>Switzerland</wikiName>
<offset>714</offset>
<length>5</length>
</annotation>
<annotation>
<mention>Engllsh</mention>
<wikiName></wikiName>
<offset>763</offset>
<length>7</length>
</annotation>
<annotation>
<mention>Udinese</mention>
<wikiName>Udinese Calcio</wikiName>
<offset>806</offset>
<length>7</length>
</annotation>
</document>
<document docName="239054newsML.txt">
<annotation>
<mention>LEEDS</mention>
<wikiName>Leeds United A.F.C.</wikiName>
<offset>7</offset>
<length>5</length>
</annotation>
<annotation>
<mention>BOWYER</mention>
<wikiName>Lee Bowyer</wikiName>
<offset>14</offset>
<length>6</length>
</annotation>
<annotation>
<mention>LONDON</mention>
<wikiName>London</wikiName>
<offset>58</offset>
<length>6</length>
</annotation>
<annotation>
<mention>Leeds</mention>
<wikiName>Leeds United A.F.C.</wikiName>
<offset>77</offset>
<length>5</length>
</annotation>
<annotation>
<mention>England</mention>
<wikiName>England</wikiName>
<offset>84</offset>
<length>7</length>
</annotation>
<annotation>
<mention>Lee Bowyer</mention>
<wikiName>Lee Bowyer</wikiName>
<offset>109</offset>
<length>10</length>
</annotation>
<annotation>
<mention>McDonald's</mention>
<wikiName></wikiName>
<offset>227</offset>
<length>10</length>
</annotation>
<annotation>
<mention>Bowyer</mention>
<wikiName>Lee Bowyer</wikiName>
<offset>261</offset>
<length>6</length>
</annotation>
<annotation>
<mention>London</mention>
<wikiName>London</wikiName>
<offset>371</offset>
<length>6</length>
</annotation>
<annotation>
<mention>London</mention>
<wikiName>London</wikiName>
<offset>490</offset>
<length>6</length>
</annotation>
<annotation>
<mention>Leeds</mention>
<wikiName>Leeds United A.F.C.</wikiName>
<offset>521</offset>
<length>5</length>
</annotation>
<annotation>
<mention>Bowyer</mention>
<wikiName>Lee Bowyer</wikiName>
<offset>545</offset>
<length>6</length>
</annotation>
<annotation>
<mention>Bowyer</mention>
<wikiName>Lee Bowyer</wikiName>
<offset>663</offset>
<length>6</length>
</annotation>
<annotation>
<mention>Yorkshire</mention>
<wikiName></wikiName>
<offset>688</offset>
<length>9</length>
</annotation>
<annotation>
<mention>Middlesbrough</mention>
<wikiName>Middlesbrough F.C.</wikiName>
<offset>781</offset>
<length>13</length>
</annotation>
</document>
<document docName="239056newsML.txt">
<annotation>
<mention>EUROLEAGUE</mention>
<wikiName>Euroleague Basketball</wikiName>
<offset>11</offset>
<length>10</length>
</annotation>
<annotation>
<mention>LONDON</mention>
<wikiName>London</wikiName>
<offset>34</offset>
<length>6</length>
</annotation>
<annotation>
<mention>EuroLeague</mention>
<wikiName>Euroleague Basketball</wikiName>
<offset>76</offset>
<length>10</length>
</annotation>
<annotation>
<mention>CSKA Moscow</mention>
<wikiName>PBC CSKA Moscow</wikiName>
<offset>193</offset>
<length>11</length>
</annotation>
<annotation>
<mention>Russia</mention>
<wikiName>Russia</wikiName>
<offset>206</offset>
<length>6</length>
</annotation>
<annotation>
<mention>Stefanel Milan</mention>
<wikiName></wikiName>
<offset>229</offset>
<length>14</length>
</annotation>
<annotation>
<mention>Italy</mention>
<wikiName>Italy</wikiName>
<offset>245</offset>
<length>5</length>
</annotation>
<annotation>
<mention>Maccabi Tel Aviv</mention>
<wikiName>Maccabi Tel Aviv B.C.</wikiName>
<offset>270</offset>
<length>16</length>
</annotation>
<annotation>
<mention>Israel</mention>
<wikiName>Israel</wikiName>
<offset>288</offset>
<length>6</length>
</annotation>
<annotation>
<mention>Ulker Spor</mention>
<wikiName></wikiName>
<offset>311</offset>
<length>10</length>
</annotation>
<annotation>
<mention>Turkey</mention>
<wikiName></wikiName>
<offset>323</offset>
<length>6</length>
</annotation>
<annotation>
<mention>Limoges</mention>
<wikiName>Limoges CSP</wikiName>
<offset>347</offset>
<length>7</length>
</annotation>
<annotation>
<mention>France</mention>
<wikiName>France</wikiName>
<offset>356</offset>
<length>6</length>
</annotation>
<annotation>
<mention>Panionios</mention>
<wikiName>Panionios B.C.</wikiName>
<offset>383</offset>
<length>9</length>
</annotation>
<annotation>
<mention>Greece</mention>
<wikiName>Greece</wikiName>
<offset>394</offset>
<length>6</length>
</annotation>
<annotation>
<mention>Teamsystem Bologna</mention>
<wikiName>Fortitudo Pallacanestro Bologna</wikiName>
<offset>428</offset>
<length>18</length>
</annotation>
<annotation>
<mention>Italy</mention>
<wikiName>Italy</wikiName>
<offset>448</offset>
<length>5</length>
</annotation>
<annotation>
<mention>Olympiakos</mention>
<wikiName></wikiName>
<offset>469</offset>
<length>10</length>
</annotation>
<annotation>
<mention>Greece</mention>
<wikiName>Greece</wikiName>
<offset>481</offset>
<length>6</length>
</annotation>
<annotation>
<mention>Cibona Zagreb</mention>
<wikiName>KK Cibona</wikiName>
<offset>505</offset>
<length>13</length>
</annotation>
<annotation>
<mention>Croatia</mention>
<wikiName>Croatia</wikiName>
<offset>520</offset>
<length>7</length>
</annotation>
<annotation>
<mention>Alba Berlin</mention>
<wikiName>Alba Berlin</wikiName>
<offset>546</offset>
<length>11</length>
</annotation>
<annotation>
<mention>Germany</mention>
<wikiName>Germany</wikiName>
<offset>559</offset>
<length>7</length>
</annotation>
<annotation>
<mention>Estudiantes Madrid</mention>
<wikiName>CB Estudiantes</wikiName>
<offset>587</offset>
<length>18</length>
</annotation>
<annotation>
<mention>Spain</mention>
<wikiName>Spain</wikiName>
<offset>607</offset>
<length>5</length>
</annotation>
<annotation>
<mention>Charleroi</mention>
<wikiName>Spirou Charleroi</wikiName>
<offset>628</offset>
<length>9</length>
</annotation>
<annotation>
<mention>Belgium</mention>
<wikiName>Belgium</wikiName>
<offset>639</offset>
<length>7</length>
</annotation>
<annotation>
<mention>Panathinaikos</mention>
<wikiName>Panathinaikos B.C.</wikiName>
<offset>673</offset>
<length>13</length>
</annotation>
<annotation>
<mention>Greece</mention>
<wikiName>Greece</wikiName>
<offset>688</offset>
<length>6</length>
</annotation>
<annotation>
<mention>Ljubljana</mention>
<wikiName></wikiName>
<offset>714</offset>
<length>9</length>
</annotation>
<annotation>
<mention>Slovenia</mention>
<wikiName>Slovenia</wikiName>
<offset>725</offset>
<length>8</length>
</annotation>
<annotation>
<mention>Villeurbanne</mention>
<wikiName>ASVEL Basket</wikiName>
<offset>750</offset>
<length>12</length>
</annotation>
<annotation>
<mention>France</mention>
<wikiName>France</wikiName>
<offset>764</offset>
<length>6</length>
</annotation>
<annotation>
<mention>Barcelona</mention>
<wikiName>FC Barcelona Bàsquet</wikiName>
<offset>791</offset>
<length>9</length>
</annotation>
<annotation>
<mention>Spain</mention>
<wikiName>Spain</wikiName>
<offset>802</offset>
<length>5</length>
</annotation>
<annotation>
<mention>Split</mention>
<wikiName>KK Split</wikiName>
<offset>827</offset>
<length>5</length>
</annotation>
<annotation>
<mention>Croatia</mention>
<wikiName>Croatia</wikiName>
<offset>834</offset>
<length>7</length>
</annotation>
<annotation>
<mention>Bayer Leverkusen</mention>
<wikiName>Bayer Giants Leverkusen</wikiName>
<offset>863</offset>
<length>16</length>
</annotation>
<annotation>
<mention>Germany</mention>
<wikiName>Germany</wikiName>
<offset>881</offset>
<length>7</length>
</annotation>
<annotation>
<mention>Efes Pilsen</mention>
<wikiName>Anadolu Efes S.K.</wikiName>
<offset>913</offset>
<length>11</length>
</annotation>
<annotation>
<mention>Turkey</mention>
<wikiName></wikiName>
<offset>926</offset>
<length>6</length>
</annotation>
<annotation>
<mention>Pau-Orthez</mention>
<wikiName>Élan Béarnais Pau-Orthez</wikiName>
<offset>949</offset>
<length>10</length>
</annotation>
<annotation>
<mention>France</mention>
<wikiName>France</wikiName>
<offset>961</offset>
<length>6</length>
</annotation>
<annotation>
<mention>Partizan Belgrade</mention>
<wikiName>KK Partizan</wikiName>
<offset>984</offset>
<length>17</length>
</annotation>
<annotation>
<mention>Yugoslavia</mention>
<wikiName>Yugoslavia</wikiName>
<offset>1003</offset>
<length>10</length>
</annotation>
<annotation>
<mention>Kinder Bologna</mention>
<wikiName>Virtus Pallacanestro Bologna</wikiName>
<offset>1030</offset>
<length>14</length>
</annotation>
<annotation>
<mention>Italy</mention>
<wikiName>Italy</wikiName>
<offset>1046</offset>
<length>5</length>
</annotation>
<annotation>
<mention>Sevilla</mention>
<wikiName>CB Sevilla</wikiName>
<offset>1071</offset>
<length>7</length>
</annotation>
<annotation>
<mention>Spain</mention>
<wikiName>Spain</wikiName>
<offset>1080</offset>
<length>5</length>
</annotation>
<annotation>
<mention>Dynamo Moscow</mention>
<wikiName>BC Dynamo Moscow</wikiName>
<offset>1107</offset>
<length>13</length>
</annotation>
<annotation>
<mention>Russia</mention>
<wikiName>Russia</wikiName>
<offset>1122</offset>
<length>6</length>
</annotation>
</document>
<document docName="239061newsML.txt">
<annotation>
<mention>RUGBY UNION</mention>
<wikiName>Rugby union</wikiName>
<offset>0</offset>
<length>11</length>
</annotation>
<annotation>
<mention>LITTLE</mention>
<wikiName></wikiName>
<offset>12</offset>
<length>6</length>
</annotation>
<annotation>
<mention>CAMPESE</mention>
<wikiName>David Campese</wikiName>
<offset>27</offset>
<length>7</length>
</annotation>
<annotation>
<mention>Robert Kitson</mention>
<wikiName></wikiName>
<offset>46</offset>
<length>13</length>
</annotation>
<annotation>
<mention>LONDON</mention>
<wikiName>London</wikiName>
<offset>61</offset>
<length>6</length>
</annotation>
<annotation>
<mention>Jason Little</mention>
<wikiName>Jason Little (rugby union)</wikiName>
<offset>87</offset>
<length>12</length>
</annotation>
<annotation>
<mention>Australia</mention>
<wikiName>Australia</wikiName>
<offset>110</offset>
<length>9</length>
</annotation>
<annotation>
<mention>Barbarians</mention>
<wikiName>Barbarian F.C.</wikiName>
<offset>154</offset>
<length>10</length>
</annotation>
<annotation>
<mention>Twickenham</mention>
<wikiName>Twickenham Stadium</wikiName>
<offset>168</offset>
<length>10</length>
</annotation>
<annotation>
<mention>Little</mention>
<wikiName></wikiName>
<offset>193</offset>
<length>6</length>
</annotation>
<annotation>
<mention>Queenslander</mention>
<wikiName>Queensland</wikiName>
<offset>325</offset>
<length>12</length>
</annotation>
<annotation>
<mention>Daniel Herbert</mention>
<wikiName>Daniel Herbert</wikiName>
<offset>338</offset>
<length>14</length>
</annotation>
<annotation>
<mention>Owen Finegan</mention>
<wikiName>Owen Finegan</wikiName>
<offset>355</offset>
<length>12</length>
</annotation>
<annotation>
<mention>Wales</mention>
<wikiName>Wales national rugby union team</wikiName>
<offset>437</offset>
<length>5</length>
</annotation>
<annotation>
<mention>Daniel Manu</mention>
<wikiName></wikiName>
<offset>490</offset>
<length>11</length>
</annotation>
<annotation>
<mention>Wallabies</mention>
<wikiName>Australia national rugby union team</wikiName>
<offset>508</offset>
<length>9</length>
</annotation>
<annotation>
<mention>European</mention>
<wikiName>Europe</wikiName>
<offset>582</offset>
<length>8</length>
</annotation>
<annotation>
<mention>David Campese</mention>
<wikiName>David Campese</wikiName>
<offset>669</offset>
<length>13</length>
</annotation>
<annotation>
<mention>Australian</mention>
<wikiName>Australia</wikiName>
<offset>729</offset>
<length>10</length>
</annotation>
<annotation>
<mention>Wallabies</mention>
<wikiName>Australia national rugby union team</wikiName>
<offset>754</offset>
<length>9</length>
</annotation>
<annotation>
<mention>Campese</mention>
<wikiName>David Campese</wikiName>
<offset>956</offset>
<length>7</length>
</annotation>
<annotation>
<mention>Barbarians</mention>
<wikiName>Barbarian F.C.</wikiName>
<offset>1014</offset>
<length>10</length>
</annotation>
<annotation>
<mention>Rob Andrew</mention>
<wikiName>Rob Andrew</wikiName>
<offset>1033</offset>
<length>10</length>
</annotation>
<annotation>
<mention>Australia</mention>
<wikiName>Australia national rugby union team</wikiName>
<offset>1064</offset>
<length>9</length>
</annotation>
<annotation>
<mention>World Cup</mention>
<wikiName>Rugby World Cup</wikiName>
<offset>1119</offset>
<length>9</length>
</annotation>
<annotation>
<mention>Cape Town</mention>
<wikiName>Cape Town</wikiName>
<offset>1146</offset>
<length>9</length>
</annotation>
<annotation>
<mention>Campo</mention>
<wikiName></wikiName>
<offset>1159</offset>
<length>5</length>
</annotation>
<annotation>
<mention>Andrew</mention>
<wikiName></wikiName>
<offset>1284</offset>
<length>6</length>
</annotation>
<annotation>
<mention>Twickenham</mention>
<wikiName>Twickenham Stadium</wikiName>
<offset>1327</offset>
<length>10</length>
</annotation>
<annotation>
<mention>Australia</mention>
<wikiName>Australia national rugby union team</wikiName>
<offset>1360</offset>
<length>9</length>
</annotation>
<annotation>
<mention>Italy</mention>
<wikiName>Italy national rugby union team</wikiName>
<offset>1402</offset>
<length>5</length>
</annotation>
<annotation>
<mention>Scotland</mention>
<wikiName>Scotland national rugby union team</wikiName>
<offset>1409</offset>
<length>8</length>
</annotation>
<annotation>
<mention>Ireland</mention>
<wikiName>Ireland national rugby union team</wikiName>
<offset>1419</offset>
<length>7</length>
</annotation>
<annotation>
<mention>Wales</mention>
<wikiName>Wales national rugby union team</wikiName>
<offset>1431</offset>
<length>5</length>
</annotation>
<annotation>
<mention>Barbarians</mention>
<wikiName>Barbarian F.C.</wikiName>
<offset>1532</offset>
<length>10</length>
</annotation>
<annotation>
<mention>England</mention>
<wikiName>England</wikiName>
<offset>1613</offset>
<length>7</length>
</annotation>
<annotation>
<mention>Tim Stimpson</mention>
<wikiName>Tim Stimpson</wikiName>
<offset>1631</offset>
<length>12</length>
</annotation>
<annotation>
<mention>Tony Underwood</mention>
<wikiName>Tony Underwood</wikiName>
<offset>1662</offset>
<length>14</length>
</annotation>
<annotation>
<mention>All Black</mention>
<wikiName>New Zealand national rugby union team</wikiName>
<offset>1683</offset>
<length>9</length>
</annotation>
<annotation>
<mention>Ian Jones</mention>
<wikiName>Ian Jones (rugby union)</wikiName>
<offset>1702</offset>
<length>9</length>
</annotation>
<annotation>
<mention>Norm Hewitt</mention>
<wikiName>Norm Hewitt</wikiName>
<offset>1716</offset>
<length>11</length>
</annotation>
<annotation>
<mention>Barbarians</mention>
<wikiName>Barbarian F.C.</wikiName>
<offset>1738</offset>
<length>10</length>
</annotation>
<annotation>
<mention>Tim Stimpson</mention>
<wikiName>Tim Stimpson</wikiName>
<offset>1754</offset>
<length>12</length>
</annotation>
<annotation>
<mention>England</mention>
<wikiName>England</wikiName>
<offset>1768</offset>
<length>7</length>
</annotation>
<annotation>
<mention>Nigel Walker</mention>
<wikiName>Nigel Walker</wikiName>
<offset>1781</offset>
<length>12</length>
</annotation>
<annotation>
<mention>Wales</mention>
<wikiName>Wales</wikiName>
<offset>1795</offset>
<length>5</length>
</annotation>
<annotation>
<mention>Allan Bateman</mention>
<wikiName>Allan Bateman</wikiName>
<offset>1806</offset>
<length>13</length>
</annotation>
<annotation>
<mention>Wales</mention>
<wikiName>Wales</wikiName>
<offset>1821</offset>
<length>5</length>
</annotation>
<annotation>
<mention>Gregor Townsend</mention>
<wikiName>Gregor Townsend</wikiName>
<offset>1832</offset>
<length>15</length>
</annotation>
<annotation>
<mention>Scotland</mention>
<wikiName>Scotland</wikiName>
<offset>1849</offset>
<length>8</length>
</annotation>
<annotation>
<mention>Tony Underwood</mention>
<wikiName>Tony Underwood</wikiName>
<offset>1863</offset>
<length>14</length>
</annotation>
<annotation>
<mention>England</mention>
<wikiName>England</wikiName>
<offset>1879</offset>
<length>7</length>
</annotation>
<annotation>
<mention>Rob Andrew</mention>
<wikiName>Rob Andrew</wikiName>
<offset>1892</offset>
<length>10</length>
</annotation>
<annotation>
<mention>England</mention>
<wikiName>England</wikiName>
<offset>1904</offset>
<length>7</length>
</annotation>
<annotation>
<mention>Rob Howley</mention>
<wikiName>Rob Howley</wikiName>
<offset>1916</offset>
<length>10</length>
</annotation>
<annotation>
<mention>Wales</mention>
<wikiName>Wales</wikiName>
<offset>1928</offset>
<length>5</length>
</annotation>
<annotation>
<mention>Scott Quinnell</mention>
<wikiName>Scott Quinnell</wikiName>
<offset>1938</offset>
<length>14</length>
</annotation>
<annotation>
<mention>Wales</mention>
<wikiName>Wales</wikiName>
<offset>1954</offset>
<length>5</length>
</annotation>
<annotation>
<mention>Neil Back</mention>
<wikiName>Neil Back</wikiName>
<offset>1964</offset>
<length>9</length>
</annotation>
<annotation>
<mention>England</mention>
<wikiName>England</wikiName>
<offset>1975</offset>
<length>7</length>
</annotation>
<annotation>
<mention>Dale McIntosh</mention>
<wikiName>Dale McIntosh</wikiName>
<offset>1987</offset>
<length>13</length>
</annotation>
<annotation>
<mention>Pontypridd</mention>
<wikiName>Pontypridd</wikiName>
<offset>2002</offset>
<length>10</length>
</annotation>
<annotation>
<mention>Ian Jones</mention>
<wikiName>Ian Jones (rugby union)</wikiName>
<offset>2017</offset>
<length>9</length>
</annotation>
<annotation>
<mention>New Zealand</mention>
<wikiName>New Zealand</wikiName>
<offset>2028</offset>
<length>11</length>
</annotation>
<annotation>
<mention>Craig Quinnell</mention>
<wikiName>Craig Quinnell</wikiName>
<offset>2044</offset>
<length>14</length>
</annotation>
<annotation>
<mention>Wales</mention>
<wikiName>Wales</wikiName>
<offset>2060</offset>
<length>5</length>
</annotation>
<annotation>
<mention>Darren Garforth</mention>
<wikiName>Darren Garforth</wikiName>
<offset>2070</offset>
<length>15</length>
</annotation>
<annotation>
<mention>Leicester</mention>
<wikiName>Leicester Tigers</wikiName>
<offset>2087</offset>
<length>9</length>
</annotation>
<annotation>
<mention>Norm Hewitt</mention>
<wikiName>Norm Hewitt</wikiName>
<offset>2101</offset>
<length>11</length>
</annotation>
<annotation>
<mention>New Zealand</mention>
<wikiName>New Zealand</wikiName>
<offset>2114</offset>
<length>11</length>
</annotation>
<annotation>
<mention>Nick Popplewell</mention>
<wikiName>Nick Popplewell</wikiName>
<offset>2130</offset>
<length>15</length>
</annotation>
<annotation>
<mention>Ireland</mention>
<wikiName>Republic of Ireland</wikiName>
<offset>2147</offset>
<length>7</length>
</annotation>
<annotation>
<mention>Australia</mention>
<wikiName>Australia national rugby union team</wikiName>
<offset>2158</offset>
<length>9</length>
</annotation>
<annotation>
<mention>Matthew Burke</mention>
<wikiName>Matt Burke</wikiName>
<offset>2173</offset>
<length>13</length>
</annotation>
<annotation>
<mention>Joe Roff</mention>
<wikiName>Joe Roff</wikiName>
<offset>2191</offset>
<length>8</length>
</annotation>
<annotation>
<mention>Daniel Herbert</mention>
<wikiName>Daniel Herbert</wikiName>
<offset>2204</offset>
<length>14</length>
</annotation>
<annotation>
<mention>Tim Horan</mention>
<wikiName>Tim Horan</wikiName>
<offset>2223</offset>
<length>9</length>
</annotation>
<annotation>
<mention>David Campese</mention>
<wikiName>David Campese</wikiName>
<offset>2247</offset>
<length>13</length>
</annotation>
<annotation>
<mention>Pat Howard</mention>
<wikiName>Pat Howard</wikiName>
<offset>2265</offset>
<length>10</length>
</annotation>
<annotation>
<mention>Sam Payne</mention>
<wikiName></wikiName>
<offset>2279</offset>
<length>9</length>
</annotation>
<annotation>
<mention>Michael Brial</mention>
<wikiName></wikiName>
<offset>2292</offset>
<length>13</length>
</annotation>
<annotation>
<mention>David Wilson</mention>
<wikiName>Dave Wilson (rugby union)</wikiName>
<offset>2309</offset>
<length>12</length>
</annotation>
<annotation>
<mention>Owen Finegan</mention>
<wikiName>Owen Finegan</wikiName>
<offset>2325</offset>
<length>12</length>
</annotation>
<annotation>
<mention>David Giffin</mention>
<wikiName>David Giffin</wikiName>
<offset>2341</offset>
<length>12</length>
</annotation>
<annotation>
<mention>Tim Gavin</mention>
<wikiName></wikiName>
<offset>2357</offset>
<length>9</length>
</annotation>
<annotation>
<mention>Andrew Blades</mention>
<wikiName></wikiName>
<offset>2370</offset>
<length>13</length>
</annotation>
<annotation>
<mention>Marco Caputo</mention>
<wikiName></wikiName>
<offset>2387</offset>
<length>12</length>
</annotation>
<annotation>
<mention>Dan Crowley</mention>
<wikiName>Dan Crowley</wikiName>
<offset>2403</offset>
<length>11</length>
</annotation>
</document>
<document docName="239064newsML.txt">
<annotation>
<mention>ZIMBABWE OPEN</mention>
<wikiName>Zimbabwe Open</wikiName>
<offset>5</offset>
<length>13</length>
</annotation>
<annotation>
<mention>HARARE</mention>
<wikiName>Harare</wikiName>
<offset>41</offset>
<length>6</length>
</annotation>
<annotation>
<mention>Zimbabwe Open</mention>
<wikiName>Zimbabwe Open</wikiName>
<offset>95</offset>
<length>13</length>
</annotation>
<annotation>
<mention>Chapman Golf Club</mention>
<wikiName></wikiName>
<offset>123</offset>
<length>17</length>
</annotation>
<annotation>
<mention>South African</mention>
<wikiName>South Africa</wikiName>
<offset>152</offset>
<length>13</length>
</annotation>
<annotation>
<mention>Des Terblanche</mention>
<wikiName>Des Terblanche</wikiName>
<offset>186</offset>
<length>14</length>
</annotation>
<annotation>
<mention>Mark McNulty</mention>
<wikiName>Mark McNulty</wikiName>
<offset>211</offset>
<length>12</length>
</annotation>
<annotation>
<mention>Zimbabwe</mention>
<wikiName>Zimbabwe</wikiName>
<offset>225</offset>
<length>8</length>
</annotation>
<annotation>
<mention>Steve van Vuuren</mention>
<wikiName>Steve van Vuuren</wikiName>
<offset>245</offset>
<length>16</length>
</annotation>
<annotation>
<mention>Nick Price</mention>
<wikiName>Nick Price</wikiName>
<offset>272</offset>
<length>10</length>
</annotation>
<annotation>
<mention>Zimbabwe</mention>
<wikiName>Zimbabwe</wikiName>
<offset>284</offset>
<length>8</length>
</annotation>
<annotation>
<mention>Justin Hobday</mention>
<wikiName>Justin Hobday</wikiName>
<offset>301</offset>
<length>13</length>
</annotation>
<annotation>
<mention>Andrew Pitts</mention>
<wikiName></wikiName>
<offset>323</offset>
<length>12</length>
</annotation>
<annotation>
<mention>U.S.</mention>
<wikiName>United States</wikiName>
<offset>337</offset>
<length>4</length>
</annotation>
<annotation>
<mention>Mark Cayeux</mention>
<wikiName></wikiName>
<offset>353</offset>
<length>11</length>
</annotation>
<annotation>
<mention>Zimbabwe</mention>
<wikiName>Zimbabwe</wikiName>
<offset>366</offset>
<length>8</length>
</annotation>
<annotation>
<mention>Mark Murless</mention>
<wikiName></wikiName>
<offset>383</offset>
<length>12</length>
</annotation>
<annotation>
<mention>Hennie Swart</mention>
<wikiName></wikiName>
<offset>406</offset>
<length>12</length>
</annotation>
<annotation>
<mention>Andrew Park</mention>
<wikiName></wikiName>
<offset>426</offset>
<length>11</length>
</annotation>
<annotation>
<mention>Schalk van der Merwe</mention>
<wikiName></wikiName>
<offset>448</offset>
<length>20</length>
</annotation>
<annotation>
<mention>Namibia</mention>
<wikiName>Namibia</wikiName>
<offset>470</offset>
<length>7</length>
</annotation>
<annotation>
<mention>Desvonde
Botes</mention>
<wikiName>Desvonde Botes</wikiName>
<offset>486</offset>
<length>15</length>
</annotation>
<annotation>
<mention>Greg Reid</mention>
<wikiName></wikiName>
<offset>509</offset>
<length>9</length>
</annotation>
<annotation>
<mention>Clinton Whitelaw</mention>
<wikiName>Clinton Whitelaw</wikiName>
<offset>526</offset>
<length>16</length>
</annotation>
<annotation>
<mention>Brett Liddle</mention>
<wikiName>Brett Liddle</wikiName>
<offset>551</offset>
<length>12</length>
</annotation>
<annotation>
<mention>Hugh Baiocchi</mention>
<wikiName>Hugh Baiocchi</wikiName>
<offset>571</offset>
<length>13</length>
</annotation>
<annotation>
<mention>Adilson da Silva</mention>
<wikiName>Adilson da Silva</wikiName>
<offset>595</offset>
<length>16</length>
</annotation>
<annotation>
<mention>Brazil</mention>
<wikiName>Brazil</wikiName>
<offset>613</offset>
<length>6</length>
</annotation>
<annotation>
<mention>Sammy Daniels</mention>
<wikiName></wikiName>
<offset>628</offset>
<length>13</length>
</annotation>
<annotation>
<mention>Trevor Dodds</mention>
<wikiName>Trevor Dodds</wikiName>
<offset>650</offset>
<length>12</length>
</annotation>
<annotation>
<mention>Namibia</mention>
<wikiName>Namibia</wikiName>
<offset>664</offset>
<length>7</length>
</annotation>
<annotation>
<mention>Don Robertson</mention>
<wikiName></wikiName>
<offset>683</offset>
<length>13</length>
</annotation>
<annotation>
<mention>U.S.</mention>
<wikiName>United States</wikiName>
<offset>698</offset>
<length>4</length>
</annotation>
<annotation>
<mention>Dion Fourie</mention>
<wikiName></wikiName>
<offset>711</offset>
<length>11</length>
</annotation>
<annotation>
<mention>Steve Waltman</mention>
<wikiName></wikiName>
<offset>731</offset>
<length>13</length>
</annotation>
<annotation>
<mention>Ian Dougan</mention>
<wikiName></wikiName>
<offset>752</offset>
<length>10</length>
</annotation>
</document>
<document docName="239069newsML.txt">
<annotation>
<mention>MACEDONIA</mention>
<wikiName>Macedonia national football team</wikiName>
<offset>39</offset>
<length>9</length>
</annotation>
<annotation>
<mention>BUCHAREST</mention>
<wikiName>Bucharest</wikiName>
<offset>51</offset>
<length>9</length>
</annotation>
<annotation>
<mention>Romania</mention>
<wikiName>Romania national football team</wikiName>
<offset>73</offset>
<length>7</length>
</annotation>
<annotation>
<mention>Anghel Iordanescu</mention>
<wikiName>Anghel Iordănescu</wikiName>
<offset>89</offset>
<length>17</length>
</annotation>
<annotation>
<mention>Macedonia</mention>
<wikiName>Macedonia national football team</wikiName>
<offset>171</offset>
<length>9</length>
</annotation>
<annotation>
<mention>World Cup</mention>
<wikiName>FIFA World Cup</wikiName>
<offset>196</offset>
<length>9</length>
</annotation>
<annotation>
<mention>Valentin Stefan</mention>
<wikiName></wikiName>
<offset>229</offset>
<length>15</length>
</annotation>
<annotation>
<mention>Viorel Ion</mention>
<wikiName>Viorel Ion</wikiName>
<offset>257</offset>
<length>10</length>
</annotation>
<annotation>
<mention>Otelul Galati</mention>
<wikiName>FC Oțelul Galați</wikiName>
<offset>271</offset>
<length>13</length>
</annotation>
<annotation>
<mention>Liviu Ciobotariu</mention>
<wikiName>Liviu Ciobotariu</wikiName>
<offset>298</offset>
<length>16</length>
</annotation>
<annotation>
<mention>National Bucharest</mention>
<wikiName>FC Progresul București</wikiName>
<offset>318</offset>
<length>18</length>
</annotation>
<annotation>
<mention>European</mention>
<wikiName>Europe</wikiName>
<offset>363</offset>
<length>8</length>
</annotation>
<annotation>
<mention>Macedonia</mention>
<wikiName>Republic of Macedonia</wikiName>
<offset>393</offset>
<length>9</length>
</annotation>
<annotation>
<mention>Iordanescu</mention>
<wikiName></wikiName>
<offset>420</offset>
<length>10</length>
</annotation>
<annotation>
<mention>National Bucharest</mention>
<wikiName>FC Progresul București</wikiName>
<offset>528</offset>
<length>18</length>
</annotation>
<annotation>
<mention>Otelul Galati</mention>
<wikiName>FC Oțelul Galați</wikiName>
<offset>559</offset>
<length>13</length>
</annotation>
<annotation>
<mention>Steaua Bucharest</mention>
<wikiName>FC Steaua București</wikiName>
<offset>664</offset>
<length>16</length>
</annotation>
<annotation>
<mention>Champions' League</mention>
<wikiName></wikiName>
<offset>711</offset>
<length>17</length>
</annotation>
<annotation>
<mention>European Cup</mention>
<wikiName>UEFA Champions League</wikiName>
<offset>742</offset>
<length>12</length>
</annotation>
<annotation>
<mention>Adrian Ilie</mention>
<wikiName>Adrian Ilie</wikiName>
<offset>814</offset>
<length>11</length>
</annotation>
<annotation>
<mention>Steaua</mention>
<wikiName>FC Steaua București</wikiName>
<offset>851</offset>
<length>6</length>
</annotation>
<annotation>
<mention>Turkish</mention>
<wikiName></wikiName>
<offset>861</offset>
<length>7</length>
</annotation>
<annotation>
<mention>Galatasaray</mention>
<wikiName>Galatasaray S.K. (football team)</wikiName>
<offset>874</offset>
<length>11</length>
</annotation>
<annotation>
<mention>Bogdan Stelea</mention>
<wikiName>Bogdan Stelea</wikiName>
<offset>955</offset>
<length>13</length>
</annotation>
<annotation>
<mention>Florin Prunea</mention>
<wikiName>Florin Prunea</wikiName>
<offset>970</offset>
<length>13</length>
</annotation>
<annotation>
<mention>Dan Petrescu</mention>
<wikiName>Dan Petrescu</wikiName>
<offset>998</offset>
<length>12</length>
</annotation>
<annotation>
<mention>Daniel Prodan</mention>
<wikiName>Daniel Prodan</wikiName>
<offset>1012</offset>
<length>13</length>
</annotation>
<annotation>
<mention>Anton Dobos</mention>
<wikiName>Anton Doboș</wikiName>
<offset>1027</offset>
<length>11</length>
</annotation>
<annotation>
<mention>Cornel Papura</mention>
<wikiName></wikiName>
<offset>1040</offset>
<length>13</length>
</annotation>
<annotation>
<mention>Liviu Ciobotariu</mention>
<wikiName>Liviu Ciobotariu</wikiName>
<offset>1055</offset>
<length>16</length>
</annotation>
<annotation>
<mention>Tibor Selymess</mention>
<wikiName></wikiName>
<offset>1073</offset>
<length>14</length>
</annotation>
<annotation>
<mention>Iulian Filipescu</mention>
<wikiName>Iulian Filipescu</wikiName>
<offset>1089</offset>
<length>16</length>
</annotation>
<annotation>
<mention>Gheorghe Hagi</mention>
<wikiName>Gheorghe Hagi</wikiName>
<offset>1122</offset>
<length>13</length>
</annotation>
<annotation>
<mention>Gheorghe Popescu</mention>
<wikiName>Gheorghe Popescu</wikiName>
<offset>1137</offset>
<length>16</length>
</annotation>
<annotation>
<mention>Constantin Galca</mention>
<wikiName>Constantin Gâlcă</wikiName>
<offset>1155</offset>
<length>16</length>
</annotation>
<annotation>
<mention>Valentin Stefan</mention>
<wikiName></wikiName>
<offset>1173</offset>
<length>15</length>
</annotation>
<annotation>
<mention>Basarab Panduru</mention>
<wikiName>Basarab Panduru</wikiName>
<offset>1190</offset>
<length>15</length>
</annotation>
<annotation>
<mention>Dorinel Munteanu</mention>
<wikiName>Dorinel Munteanu</wikiName>
<offset>1207</offset>
<length>16</length>
</annotation>
<annotation>
<mention>Ovidiu Stinga</mention>
<wikiName>Ovidiu Stângă</wikiName>
<offset>1225</offset>
<length>13</length>
</annotation>
<annotation>
<mention>Ioan Vladoiu</mention>
<wikiName></wikiName>
<offset>1252</offset>
<length>12</length>
</annotation>
<annotation>
<mention>Gheorghe Craioveanu</mention>
<wikiName>Gheorghe Craioveanu</wikiName>
<offset>1266</offset>
<length>19</length>
</annotation>
<annotation>
<mention>Ionel Danciulescu</mention>
<wikiName>Ionel Dănciulescu</wikiName>
<offset>1287</offset>
<length>17</length>
</annotation>
<annotation>
<mention>Viorel Ion</mention>
<wikiName>Viorel Ion</wikiName>
<offset>1306</offset>
<length>10</length>
</annotation>
<annotation>
<mention>REUTER</mention>
<wikiName></wikiName>
<offset>1318</offset>
<length>6</length>
</annotation>
</document>
<document docName="239072newsML.txt">
<annotation>
<mention>BRAZILIAN</mention>
<wikiName>Brazil</wikiName>
<offset>7</offset>
<length>9</length>
</annotation>
<annotation>
<mention>RIO DE JANEIRO</mention>
<wikiName>Rio de Janeiro</wikiName>
<offset>40</offset>
<length>14</length>
</annotation>
<annotation>
<mention>Brazilian</mention>
<wikiName>Brazil</wikiName>
<offset>78</offset>
<length>9</length>
</annotation>
<annotation>
<mention>Goias</mention>
<wikiName>Goiás Esporte Clube</wikiName>
<offset>153</offset>
<length>5</length>
</annotation>
<annotation>
<mention>Gremio</mention>
<wikiName>Grêmio Foot-Ball Porto Alegrense</wikiName>
<offset>165</offset>
<length>6</length>
</annotation>
<annotation>
<mention>Portuguesa</mention>
<wikiName>Associação Portuguesa de Desportos</wikiName>
<offset>179</offset>
<length>10</length>
</annotation>
<annotation>
<mention>Atletico Mineiro</mention>
<wikiName>Clube Atlético Mineiro</wikiName>
<offset>196</offset>
<length>16</length>
</annotation>
</document>
<document docName="239073newsML.txt">
<annotation>
<mention>LARA</mention>
<wikiName>Brian Lara</wikiName>
<offset>8</offset>
<length>4</length>
</annotation>
<annotation>
<mention>Robert Galvin</mention>
<wikiName></wikiName>
<offset>45</offset>
<length>13</length>
</annotation>
<annotation>
<mention>MELBOURNE</mention>
<wikiName>Melbourne</wikiName>
<offset>60</offset>
<length>9</length>
</annotation>
<annotation>
<mention>Australia</mention>
<wikiName>Australia national cricket team</wikiName>
<offset>82</offset>
<length>9</length>
</annotation>
<annotation>
<mention>Brian Lara</mention>
<wikiName>Brian Lara</wikiName>
<offset>97</offset>
<length>10</length>
</annotation>
<annotation>
<mention>West Indies</mention>
<wikiName>West Indies cricket team</wikiName>
<offset>154</offset>
<length>11</length>
</annotation>
<annotation>
<mention>World Series</mention>
<wikiName>World Series Cricket</wikiName>
<offset>197</offset>
<length>12</length>
</annotation>
<annotation>
<mention>Lara</mention>
<wikiName>Brian Lara</wikiName>
<offset>242</offset>
<length>4</length>
</annotation>
<annotation>
<mention>Australia</mention>
<wikiName>Australia national cricket team</wikiName>
<offset>360</offset>
<length>9</length>
</annotation>
<annotation>
<mention>West Indies</mention>
<wikiName>West Indies cricket team</wikiName>
<offset>433</offset>
<length>11</length>
</annotation>
<annotation>
<mention>Greg Blewett</mention>
<wikiName>Greg Blewett</wikiName>
<offset>554</offset>
<length>12</length>
</annotation>
<annotation>
<mention>Blewett</mention>
<wikiName>Greg Blewett</wikiName>
<offset>695</offset>
<length>7</length>
</annotation>
<annotation>
<mention>Stuart Law</mention>
<wikiName>Stuart Law</wikiName>
<offset>883</offset>
<length>10</length>
</annotation>
<annotation>
<mention>Lara</mention>
<wikiName>Brian Lara</wikiName>
<offset>934</offset>
<length>4</length>
</annotation>
<annotation>
<mention>Shane Warne</mention>
<wikiName>Shane Warne</wikiName>
<offset>1029</offset>
<length>11</length>
</annotation>
<annotation>
<mention>West Indies</mention>
<wikiName>West Indies cricket team</wikiName>
<offset>1057</offset>
<length>11</length>
</annotation>
<annotation>
<mention>Clive Lloyd</mention>
<wikiName>Clive Lloyd</wikiName>
<offset>1082</offset>
<length>11</length>
</annotation>
<annotation>
<mention>Lara</mention>
<wikiName>Brian Lara</wikiName>
<offset>1113</offset>
<length>4</length>
</annotation>
<annotation>
<mention>Lara</mention>
<wikiName>Brian Lara</wikiName>
<offset>1146</offset>
<length>4</length>
</annotation>
<annotation>
<mention>Australia</mention>
<wikiName>Australia national cricket team</wikiName>
<offset>1161</offset>
<length>9</length>
</annotation>
<annotation>
<mention>Geoff Marsh</mention>
<wikiName>Geoff Marsh</wikiName>
<offset>1177</offset>
<length>11</length>
</annotation>
<annotation>
<mention>Ian Healy</mention>
<wikiName>Ian Healy</wikiName>
<offset>1207</offset>
<length>9</length>
</annotation>
<annotation>
<mention>Melbourne</mention>
<wikiName>Melbourne</wikiName>
<offset>1268</offset>
<length>9</length>
</annotation>
<annotation>
<mention>West Indies</mention>
<wikiName>West Indies cricket team</wikiName>
<offset>1341</offset>
<length>11</length>
</annotation>
<annotation>
<mention>Shivnarine Chanderpaul</mention>
<wikiName>Shivnarine Chanderpaul</wikiName>
<offset>1429</offset>
<length>22</length>
</annotation>
<annotation>
<mention>Chanderpaul</mention>
<wikiName>Shivnarine Chanderpaul</wikiName>
<offset>1541</offset>
<length>11</length>
</annotation>
<annotation>
<mention>Pakistan</mention>
<wikiName>Pakistan national cricket team</wikiName>
<offset>1689</offset>
<length>8</length>
</annotation>
<annotation>
<mention>Australia</mention>
<wikiName>Australia</wikiName>
<offset>1713</offset>
<length>9</length>
</annotation>
<annotation>
<mention>World Series</mention>
<wikiName>World Series Cricket</wikiName>
<offset>1777</offset>
<length>12</length>
</annotation>
</document>
<document docName="239074newsML.txt">
<annotation>
<mention>AUSTRALIA</mention>
<wikiName>Australia national cricket team</wikiName>
<offset>8</offset>
<length>9</length>
</annotation>
<annotation>
<mention>WEST INDIES</mention>
<wikiName>West Indies cricket team</wikiName>
<offset>20</offset>
<length>11</length>
</annotation>
<annotation>
<mention>WORLD SERIES</mention>
<wikiName>World Series Cricket</wikiName>
<offset>32</offset>
<length>12</length>
</annotation>
<annotation>
<mention>MELBOURNE</mention>
<wikiName>Melbourne</wikiName>
<offset>58</offset>
<length>9</length>
</annotation>
<annotation>
<mention>World Series</mention>
<wikiName>World Series Cricket</wikiName>
<offset>98</offset>
<length>12</length>
</annotation>
<annotation>
<mention>Australia</mention>
<wikiName>Australia national cricket team</wikiName>
<offset>140</offset>
<length>9</length>
</annotation>
<annotation>
<mention>West Indies</mention>
<wikiName>West Indies cricket team</wikiName>
<offset>154</offset>
<length>11</length>
</annotation>
<annotation>
<mention>West Indies</mention>
<wikiName>West Indies cricket team</wikiName>
<offset>178</offset>
<length>11</length>
</annotation>
<annotation>
<mention>S.Campbell</mention>
<wikiName></wikiName>
<offset>192</offset>
<length>10</length>
</annotation>
<annotation>
<mention>Healy</mention>
<wikiName>Ian Healy</wikiName>
<offset>205</offset>
<length>5</length>
</annotation>
<annotation>
<mention>Gillespie</mention>
<wikiName>Jason Gillespie</wikiName>
<offset>213</offset>
<length>9</length>
</annotation>
<annotation>
<mention>R.Samuels</mention>
<wikiName></wikiName>
<offset>228</offset>
<length>9</length>
</annotation>
<annotation>
<mention>M.Waugh</mention>
<wikiName></wikiName>
<offset>240</offset>
<length>7</length>
</annotation>
<annotation>
<mention>Gillespie</mention>
<wikiName>Jason Gillespie</wikiName>
<offset>250</offset>
<length>9</length>
</annotation>
<annotation>
<mention>B.Lara</mention>
<wikiName></wikiName>
<offset>264</offset>
<length>6</length>
</annotation>
<annotation>
<mention>Warne</mention>
<wikiName>Shane Warne</wikiName>
<offset>273</offset>
<length>5</length>
</annotation>
<annotation>
<mention>Moody</mention>
<wikiName>Tom Moody</wikiName>
<offset>281</offset>
<length>5</length>
</annotation>
<annotation>
<mention>S.Chanderpaul</mention>
<wikiName></wikiName>
<offset>295</offset>
<length>13</length>
</annotation>
<annotation>
<mention>Healy</mention>
<wikiName>Ian Healy</wikiName>
<offset>311</offset>
<length>5</length>
</annotation>
<annotation>
<mention>Blewett</mention>
<wikiName>Greg Blewett</wikiName>
<offset>319</offset>
<length>7</length>
</annotation>
<annotation>
<mention>C.Hooper</mention>
<wikiName></wikiName>
<offset>336</offset>
<length>8</length>
</annotation>
<annotation>
<mention>J.Adams</mention>
<wikiName></wikiName>
<offset>362</offset>
<length>7</length>
</annotation>
<annotation>
<mention>Moody</mention>
<wikiName>Tom Moody</wikiName>
<offset>376</offset>
<length>5</length>
</annotation>
<annotation>
<mention>J.Murray</mention>
<wikiName></wikiName>
<offset>388</offset>
<length>8</length>
</annotation>
<annotation>
<mention>Blewett</mention>
<wikiName>Greg Blewett</wikiName>
<offset>399</offset>
<length>7</length>
</annotation>
<annotation>
<mention>Warne</mention>
<wikiName>Shane Warne</wikiName>
<offset>409</offset>
<length>5</length>
</annotation>
<annotation>
<mention>N.McLean</mention>
<wikiName></wikiName>
<offset>424</offset>
<length>8</length>
</annotation>
<annotation>
<mention>M.Waugh</mention>
<wikiName></wikiName>
<offset>441</offset>
<length>7</length>
</annotation>
<annotation>
<mention>K.Benjamin</mention>
<wikiName></wikiName>
<offset>455</offset>
<length>10</length>
</annotation>
<annotation>
<mention>Warne</mention>
<wikiName>Shane Warne</wikiName>
<offset>468</offset>
<length>5</length>
</annotation>
<annotation>
<mention>C.Ambrose</mention>
<wikiName></wikiName>
<offset>484</offset>
<length>9</length>
</annotation>
<annotation>
<mention>C.Walsh</mention>
<wikiName></wikiName>
<offset>510</offset>
<length>7</length>
</annotation>
<annotation>
<mention>Reiffel</mention>
<wikiName>Paul Reiffel</wikiName>
<offset>682</offset>
<length>7</length>
</annotation>
<annotation>
<mention>Gillespie</mention>
<wikiName>Jason Gillespie</wikiName>
<offset>708</offset>
<length>9</length>
</annotation>
<annotation>
<mention>Moody</mention>
<wikiName>Tom Moody</wikiName>
<offset>730</offset>
<length>5</length>
</annotation>
<annotation>
<mention>Blewett</mention>
<wikiName>Greg Blewett</wikiName>
<offset>747</offset>
<length>7</length>
</annotation>
<annotation>
<mention>Warne</mention>
<wikiName>Shane Warne</wikiName>
<offset>767</offset>
<length>5</length>
</annotation>
<annotation>
<mention>M.Waugh</mention>
<wikiName></wikiName>
<offset>791</offset>
<length>7</length>
</annotation>
<annotation>
<mention>Australia</mention>
<wikiName>Australia national cricket team</wikiName>
<offset>810</offset>
<length>9</length>
</annotation>
<annotation>
<mention>M.Taylor</mention>
<wikiName></wikiName>
<offset>822</offset>
<length>8</length>
</annotation>
<annotation>
<mention>McLean</mention>
<wikiName></wikiName>
<offset>833</offset>
<length>6</length>
</annotation>
<annotation>
<mention>M.Waugh</mention>
<wikiName></wikiName>
<offset>848</offset>
<length>7</length>
</annotation>
<annotation>
<mention>Murray</mention>
<wikiName></wikiName>
<offset>858</offset>
<length>6</length>
</annotation>
<annotation>
<mention>Benjamin</mention>
<wikiName></wikiName>
<offset>867</offset>
<length>8</length>
</annotation>
<annotation>
<mention>R.Ponting</mention>
<wikiName></wikiName>
<offset>884</offset>
<length>9</length>
</annotation>
<annotation>
<mention>McLean</mention>
<wikiName></wikiName>
<offset>898</offset>
<length>6</length>
</annotation>
<annotation>
<mention>G.Blewett</mention>
<wikiName></wikiName>
<offset>915</offset>
<length>9</length>
</annotation>
<annotation>
<mention>M.Bevan</mention>
<wikiName></wikiName>
<offset>941</offset>
<length>7</length>
</annotation>
<annotation>
<mention>Murray</mention>
<wikiName></wikiName>
<offset>952</offset>
<length>6</length>
</annotation>
<annotation>
<mention>Hooper</mention>
<wikiName>Carl Hooper</wikiName>
<offset>961</offset>
<length>6</length>
</annotation>
<annotation>
<mention>S.Law</mention>
<wikiName></wikiName>
<offset>977</offset>
<length>5</length>
</annotation>
<annotation>
<mention>Hooper</mention>
<wikiName>Carl Hooper</wikiName>
<offset>985</offset>
<length>6</length>
</annotation>
<annotation>
<mention>T.Moody</mention>
<wikiName></wikiName>
<offset>1003</offset>
<length>7</length>
</annotation>
<annotation>
<mention>I.Healy</mention>
<wikiName></wikiName>
<offset>1163</offset>
<length>7</length>
</annotation>
<annotation>
<mention>P.Reiffel</mention>
<wikiName></wikiName>
<offset>1172</offset>
<length>9</length>
</annotation>
<annotation>
<mention>S.Warne</mention>
<wikiName></wikiName>
<offset>1183</offset>
<length>7</length>
</annotation>
<annotation>
<mention>J.Gillespie</mention>
<wikiName></wikiName>
<offset>1192</offset>
<length>11</length>
</annotation>
<annotation>
<mention>Ambrose</mention>
<wikiName>Curtly Ambrose</wikiName>
<offset>1215</offset>
<length>7</length>
</annotation>
<annotation>
<mention>Walsh</mention>
<wikiName>Courtney Walsh</wikiName>
<offset>1243</offset>
<length>5</length>
</annotation>
<annotation>
<mention>Benjamin</mention>
<wikiName></wikiName>
<offset>1266</offset>
<length>8</length>
</annotation>
<annotation>
<mention>Hooper</mention>
<wikiName>Carl Hooper</wikiName>
<offset>1296</offset>
<length>6</length>
</annotation>
<annotation>
<mention>McLean</mention>
<wikiName></wikiName>
<offset>1320</offset>
<length>6</length>
</annotation>
<annotation>
<mention>Australia</mention>
<wikiName>Australia national cricket team</wikiName>
<offset>1353</offset>
<length>9</length>
</annotation>
</document>
<document docName="239075newsML.txt">
<annotation>
<mention>AUSTRALIA</mention>
<wikiName>Australia national cricket team</wikiName>
<offset>8</offset>
<length>9</length>
</annotation>
<annotation>
<mention>WEST INDIES</mention>
<wikiName>West Indies cricket team</wikiName>
<offset>23</offset>
<length>11</length>
</annotation>
<annotation>
<mention>MELBOURNE</mention>
<wikiName>Melbourne</wikiName>
<offset>53</offset>
<length>9</length>
</annotation>
<annotation>
<mention>Australia</mention>
<wikiName>Australia national cricket team</wikiName>
<offset>75</offset>
<length>9</length>
</annotation>
<annotation>
<mention>West Indies</mention>
<wikiName>West Indies cricket team</wikiName>
<offset>90</offset>
<length>11</length>
</annotation>
<annotation>
<mention>World Series</mention>
<wikiName>World Series Cricket</wikiName>
<offset>123</offset>
<length>12</length>
</annotation>
<annotation>
<mention>Melbourne Cricket Ground</mention>
<wikiName>Melbourne Cricket Ground</wikiName>
<offset>163</offset>
<length>24</length>
</annotation>
<annotation>
<mention>West Indies</mention>
<wikiName>West Indies cricket team</wikiName>
<offset>208</offset>
<length>11</length>
</annotation>
<annotation>
<mention>Shivnarine Chanderpaul</mention>
<wikiName>Shivnarine Chanderpaul</wikiName>
<offset>247</offset>
<length>22</length>
</annotation>
<annotation>
<mention>Australia</mention>
<wikiName>Australia national cricket team</wikiName>
<offset>275</offset>
<length>9</length>
</annotation>
<annotation>
<mention>Greg Blewett</mention>
<wikiName>Greg Blewett</wikiName>
<offset>306</offset>
<length>12</length>
</annotation>
</document>
<document docName="239078newsML.txt">
<annotation>
<mention>WEST INDIES</mention>
<wikiName>West Indies cricket team</wikiName>
<offset>8</offset>
<length>11</length>
</annotation>
<annotation>
<mention>AUSTRALIA</mention>
<wikiName>Australia national cricket team</wikiName>
<offset>48</offset>
<length>9</length>
</annotation>
<annotation>
<mention>MELBOURNE</mention>
<wikiName>Melbourne</wikiName>
<offset>60</offset>
<length>9</length>
</annotation>
<annotation>
<mention>West Indies</mention>
<wikiName>West Indies cricket team</wikiName>
<offset>82</offset>
<length>11</length>
</annotation>
<annotation>
<mention>World Series</mention>
<wikiName>World Series Cricket</wikiName>
<offset>137</offset>
<length>12</length>
</annotation>
<annotation>
<mention>Australia</mention>
<wikiName>Australia national cricket team</wikiName>
<offset>178</offset>
<length>9</length>
</annotation>
</document>
<document docName="239080newsML.txt">
<annotation>
<mention>SHEFFIELD SHIELD</mention>
<wikiName>Sheffield Shield</wikiName>
<offset>8</offset>
<length>16</length>
</annotation>
<annotation>
<mention>HOBART</mention>
<wikiName>Hobart</wikiName>
<offset>33</offset>
<length>6</length>
</annotation>
<annotation>
<mention>Australia</mention>
<wikiName>Australia</wikiName>
<offset>41</offset>
<length>9</length>
</annotation>
<annotation>
<mention>Sheffield Shield</mention>
<wikiName>Sheffield Shield</wikiName>
<offset>102</offset>
<length>16</length>
</annotation>
<annotation>
<mention>Tasmania</mention>
<wikiName>Tasmania cricket team</wikiName>
<offset>133</offset>
<length>8</length>
</annotation>
<annotation>
<mention>Victoria</mention>
<wikiName>Victoria cricket team</wikiName>
<offset>146</offset>
<length>8</length>
</annotation>
<annotation>
<mention>Bellerive Oval</mention>
<wikiName>Bellerive Oval</wikiName>
<offset>158</offset>
<length>14</length>
</annotation>
<annotation>
<mention>Tasmania</mention>
<wikiName>Tasmania cricket team</wikiName>
<offset>185</offset>
<length>8</length>
</annotation>
<annotation>
<mention>David Boon</mention>
<wikiName>David Boon</wikiName>
<offset>209</offset>
<length>10</length>
</annotation>
<annotation>
<mention>Shaun Young</mention>
<wikiName>Shaun Young</wikiName>
<offset>233</offset>
<length>11</length>
</annotation>
<annotation>
<mention>Michael DiVenuto</mention>
<wikiName>Michael Di Venuto</wikiName>
<offset>257</offset>
<length>16</length>
</annotation>
<annotation>
<mention>Victoria</mention>
<wikiName>Victoria cricket team</wikiName>
<offset>281</offset>
<length>8</length>
</annotation>
</document>
<document docName="239081newsML.txt">
<annotation>
<mention>LARA</mention>
<wikiName>Brian Lara</wikiName>
<offset>8</offset>
<length>4</length>
</annotation>
<annotation>
<mention>MELBOURNE</mention>
<wikiName>Melbourne</wikiName>
<offset>51</offset>
<length>9</length>
</annotation>
<annotation>
<mention>West Indies</mention>
<wikiName>West Indies cricket team</wikiName>
<offset>73</offset>
<length>11</length>
</annotation>
<annotation>
<mention>Brian Lara</mention>
<wikiName>Brian Lara</wikiName>
<offset>93</offset>
<length>10</length>
</annotation>
<annotation>
<mention>Australian</mention>
<wikiName>Australia</wikiName>
<offset>133</offset>
<length>10</length>
</annotation>
<annotation>
<mention>Australia</mention>
<wikiName>Australia national cricket team</wikiName>
<offset>269</offset>
<length>9</length>
</annotation>
<annotation>
<mention>Lara</mention>
<wikiName>Brian Lara</wikiName>
<offset>291</offset>
<length>4</length>
</annotation>
<annotation>
<mention>Australia</mention>
<wikiName>Australia national cricket team</wikiName>
<offset>384</offset>
<length>9</length>
</annotation>
<annotation>
<mention>Ian Healy</mention>
<wikiName>Ian Healy</wikiName>
<offset>407</offset>
<length>9</length>
</annotation>
<annotation>
<mention>West Indies</mention>
<wikiName>West Indies cricket team</wikiName>
<offset>479</offset>
<length>11</length>
</annotation>
<annotation>
<mention>Tom Moody</mention>
<wikiName>Tom Moody</wikiName>
<offset>606</offset>
<length>9</length>
</annotation>
<annotation>
<mention>Shane Warne</mention>
<wikiName>Shane Warne</wikiName>
<offset>628</offset>
<length>11</length>
</annotation>
<annotation>
<mention>West Indies</mention>
<wikiName>West Indies cricket team</wikiName>
<offset>656</offset>
<length>11</length>
</annotation>
<annotation>
<mention>Melbourne Cricket Ground</mention>
<wikiName>Melbourne Cricket Ground</wikiName>
<offset>726</offset>
<length>24</length>
</annotation>
<annotation>
<mention>Courtney Walsh</mention>
<wikiName>Courtney Walsh</wikiName>
<offset>765</offset>
<length>14</length>
</annotation>
<annotation>
<mention>Lara</mention>
<wikiName>Brian Lara</wikiName>
<offset>814</offset>
<length>4</length>
</annotation>
<annotation>
<mention>Australian</mention>
<wikiName>Australia</wikiName>
<offset>876</offset>
<length>10</length>
</annotation>
<annotation>
<mention>Clive Lloyd</mention>
<wikiName>Clive Lloyd</wikiName>
<offset>1116</offset>
<length>11</length>
</annotation>
<annotation>
<mention>Lara</mention>
<wikiName>Brian Lara</wikiName>
<offset>1156</offset>
<length>4</length>
</annotation>
<annotation>
<mention>Australia</mention>
<wikiName>Australia national cricket team</wikiName>
<offset>1188</offset>
<length>9</length>
</annotation>
<annotation>
<mention>Geoff Marsh</mention>
<wikiName>Geoff Marsh</wikiName>
<offset>1204</offset>
<length>11</length>
</annotation>
<annotation>
<mention>Lloyd</mention>
<wikiName>Clive Lloyd</wikiName>
<offset>1313</offset>
<length>5</length>
</annotation>
<annotation>
<mention>Lara</mention>
<wikiName>Brian Lara</wikiName>
<offset>1369</offset>
<length>4</length>
</annotation>
<annotation>
<mention>Healy</mention>
<wikiName>Ian Healy</wikiName>
<offset>1469</offset>
<length>5</length>
</annotation>
<annotation>
<mention>Australia</mention>
<wikiName>Australia national cricket team</wikiName>
<offset>1549</offset>
<length>9</length>
</annotation>
<annotation>
<mention>Australia</mention>
<wikiName>Australia national cricket team</wikiName>
<offset>1568</offset>
<length>9</length>
</annotation>
<annotation>
<mention>Sydney Cricket Ground</mention>
<wikiName>Sydney Cricket Ground</wikiName>
<offset>1610</offset>
<length>21</length>
</annotation>
<annotation>
<mention>Lara</mention>
<wikiName>Brian Lara</wikiName>
<offset>1697</offset>
<length>4</length>
</annotation>
<annotation>
<mention>Lara</mention>
<wikiName>Brian Lara</wikiName>
<offset>1727</offset>
<length>4</length>
</annotation>
<annotation>
<mention>West Indies</mention>
<wikiName>West Indies cricket team</wikiName>
<offset>1765</offset>
<length>11</length>
</annotation>
<annotation>
<mention>Australia</mention>
<wikiName>Australia</wikiName>
<offset>1788</offset>
<length>9</length>
</annotation>
<annotation>
<mention>West Indies</mention>
<wikiName>West Indies cricket team</wikiName>
<offset>1820</offset>
<length>11</length>
</annotation>
<annotation>
<mention>Australia</mention>
<wikiName>Australia national cricket team</wikiName>
<offset>1836</offset>
<length>9</length>
</annotation>
<annotation>
<mention>Pakistan</mention>
<wikiName>Pakistan national cricket team</wikiName>
<offset>1975</offset>
<length>8</length>
</annotation>
<annotation>
<mention>World Series</mention>
<wikiName>World Series Cricket</wikiName>
<offset>2044</offset>
<length>12</length>
</annotation>
</document>
<document docName="239082newsML.txt">
<annotation>
<mention>WEST INDIES</mention>
<wikiName>West Indies cricket team</wikiName>
<offset>8</offset>
<length>11</length>
</annotation>
<annotation>
<mention>MELBOURNE</mention>
<wikiName>Melbourne</wikiName>
<offset>52</offset>
<length>9</length>
</annotation>
<annotation>
<mention>West Indies</mention>
<wikiName>West Indies cricket team</wikiName>
<offset>74</offset>
<length>11</length>
</annotation>
<annotation>
<mention>Courtney Walsh</mention>
<wikiName>Courtney Walsh</wikiName>
<offset>94</offset>
<length>14</length>
</annotation>
<annotation>
<mention>World Series</mention>
<wikiName>World Series Cricket</wikiName>
<offset>173</offset>
<length>12</length>
</annotation>
<annotation>
<mention>Australia</mention>
<wikiName>Australia national cricket team</wikiName>
<offset>220</offset>
<length>9</length>
</annotation>
<annotation>
<mention>Melbourne</mention>
<wikiName>Melbourne</wikiName>
<offset>237</offset>
<length>9</length>
</annotation>
<annotation>
<mention>Australia</mention>
<wikiName>Australia national cricket team</wikiName>
<offset>282</offset>
<length>9</length>
</annotation>
<annotation>
<mention>Mark Taylor</mention>
<wikiName>Mark Taylor (cricketer)</wikiName>
<offset>294</offset>
<length>11</length>
</annotation>
<annotation>
<mention>Mark Waugh</mention>
<wikiName>Mark Waugh</wikiName>
<offset>317</offset>
<length>10</length>
</annotation>
<annotation>
<mention>Ricky Ponting</mention>
<wikiName>Ricky Ponting</wikiName>
<offset>329</offset>
<length>13</length>
</annotation>
<annotation>
<mention>Greg Blewett</mention>
<wikiName>Greg Blewett</wikiName>
<offset>344</offset>
<length>12</length>
</annotation>
<annotation>
<mention>Michael Bevan</mention>
<wikiName>Michael Bevan</wikiName>
<offset>358</offset>
<length>13</length>
</annotation>
<annotation>
<mention>Stuart Law</mention>
<wikiName>Stuart Law</wikiName>
<offset>373</offset>
<length>10</length>
</annotation>
<annotation>
<mention>Tom Moody</mention>
<wikiName>Tom Moody</wikiName>
<offset>385</offset>
<length>9</length>
</annotation>
<annotation>
<mention>Ian Healy</mention>
<wikiName>Ian Healy</wikiName>
<offset>396</offset>
<length>9</length>
</annotation>
<annotation>
<mention>Paul Reiffel</mention>
<wikiName>Paul Reiffel</wikiName>
<offset>407</offset>
<length>12</length>
</annotation>
<annotation>
<mention>Shane Warne</mention>
<wikiName>Shane Warne</wikiName>
<offset>421</offset>
<length>11</length>
</annotation>
<annotation>
<mention>Jason Gillespie</mention>
<wikiName>Jason Gillespie</wikiName>
<offset>434</offset>
<length>15</length>
</annotation>
<annotation>
<mention>Glenn McGrath</mention>
<wikiName>Glenn McGrath</wikiName>
<offset>451</offset>
<length>13</length>
</annotation>
<annotation>
<mention>West Indies</mention>
<wikiName>West Indies cricket team</wikiName>
<offset>476</offset>
<length>11</length>
</annotation>
<annotation>
<mention>Sherwin Campbell</mention>
<wikiName>Sherwin Campbell</wikiName>
<offset>490</offset>
<length>16</length>
</annotation>
<annotation>
<mention>Robert Samuels</mention>
<wikiName>Robert Samuels</wikiName>
<offset>508</offset>
<length>14</length>
</annotation>
<annotation>
<mention>Brian Lara</mention>
<wikiName>Brian Lara</wikiName>
<offset>524</offset>
<length>10</length>
</annotation>
<annotation>
<mention>Shivnarine Chanderpaul</mention>
<wikiName>Shivnarine Chanderpaul</wikiName>
<offset>536</offset>
<length>22</length>
</annotation>
<annotation>
<mention>Carl Hooper</mention>
<wikiName>Carl Hooper</wikiName>
<offset>560</offset>
<length>11</length>
</annotation>
<annotation>
<mention>Jimmy Adams</mention>
<wikiName>Jimmy Adams</wikiName>
<offset>573</offset>
<length>11</length>
</annotation>
<annotation>
<mention>Junior Murray</mention>
<wikiName>Junior Murray</wikiName>
<offset>586</offset>
<length>13</length>
</annotation>
<annotation>
<mention>Nixon McLean</mention>
<wikiName>Nixon McLean</wikiName>
<offset>601</offset>
<length>12</length>
</annotation>
<annotation>
<mention>Kenneth Benjamin</mention>
<wikiName>Kenny Benjamin</wikiName>
<offset>615</offset>
<length>16</length>
</annotation>
<annotation>
<mention>Curtly Ambrose</mention>
<wikiName>Curtly Ambrose</wikiName>
<offset>633</offset>
<length>14</length>
</annotation>
<annotation>
<mention>Courtney Walsh</mention>
<wikiName>Courtney Walsh</wikiName>
<offset>649</offset>
<length>14</length>
</annotation>
<annotation>
<mention>Roland Holder</mention>
<wikiName>Roland Holder</wikiName>
<offset>675</offset>
<length>13</length>
</annotation>
</document>
<document docName="239083newsML.txt">
<annotation>
<mention>WORLD GRAND PRIX</mention>
<wikiName>World Badminton Grand Prix Finals</wikiName>
<offset>10</offset>
<length>16</length>
</annotation>
<annotation>
<mention>BALI</mention>
<wikiName>Bali</wikiName>
<offset>37</offset>
<length>4</length>
</annotation>
<annotation>
<mention>World Grand Prix</mention>
<wikiName>World Badminton Grand Prix Finals</wikiName>
<offset>99</offset>
<length>16</length>
</annotation>
<annotation>
<mention>Chen Gang</mention>
<wikiName></wikiName>
<offset>169</offset>
<length>9</length>
</annotation>
<annotation>
<mention>China</mention>
<wikiName>China</wikiName>
<offset>180</offset>
<length>5</length>
</annotation>
<annotation>
<mention>Martin Londgaard Hansen</mention>
<wikiName></wikiName>
<offset>192</offset>
<length>23</length>
</annotation>
<annotation>
<mention>Denmark</mention>
<wikiName>Denmark</wikiName>
<offset>217</offset>
<length>7</length>
</annotation>
<annotation>
<mention>Dong Jiong</mention>
<wikiName>Dong Jiong</wikiName>
<offset>238</offset>
<length>10</length>
</annotation>
<annotation>
<mention>China</mention>
<wikiName>China</wikiName>
<offset>250</offset>
<length>5</length>
</annotation>
<annotation>
<mention>Thomas Stuer-Lauridsen</mention>
<wikiName>Thomas Stuer-Lauridsen</wikiName>
<offset>262</offset>
<length>22</length>
</annotation>
<annotation>
<mention>Denmark</mention>
<wikiName>Denmark</wikiName>
<offset>286</offset>
<length>7</length>
</annotation>
<annotation>
<mention>Indra Wijaya</mention>
<wikiName></wikiName>
<offset>307</offset>
<length>12</length>
</annotation>
<annotation>
<mention>Indonesia</mention>
<wikiName>Indonesia</wikiName>
<offset>321</offset>
<length>9</length>
</annotation>
<annotation>
<mention>Ong Ewe Hock</mention>
<wikiName>Ong Ewe Hock</wikiName>
<offset>337</offset>
<length>12</length>
</annotation>
<annotation>
<mention>Malaysia</mention>
<wikiName>Malaysia</wikiName>
<offset>351</offset>
<length>8</length>
</annotation>
<annotation>
<mention>Sun Jun</mention>
<wikiName>Sun Jun (badminton)</wikiName>
<offset>388</offset>
<length>7</length>
</annotation>
<annotation>
<mention>China</mention>
<wikiName>China</wikiName>
<offset>397</offset>
<length>5</length>
</annotation>
<annotation>
<mention>Rashid Sidek</mention>
<wikiName>Rashid Sidek</wikiName>
<offset>409</offset>
<length>12</length>
</annotation>
<annotation>
<mention>Malaysia</mention>
<wikiName>Malaysia</wikiName>
<offset>423</offset>
<length>8</length>
</annotation>
<annotation>
<mention>Hermawan Susanto</mention>
<wikiName>Hermawan Susanto</wikiName>
<offset>447</offset>
<length>16</length>
</annotation>
<annotation>
<mention>Indonesia</mention>
<wikiName>Indonesia</wikiName>
<offset>465</offset>
<length>9</length>
</annotation>
<annotation>
<mention>Soren B. Nielsen</mention>
<wikiName></wikiName>
<offset>481</offset>
<length>16</length>
</annotation>
<annotation>
<mention>Denmark</mention>
<wikiName>Denmark</wikiName>
<offset>499</offset>
<length>7</length>
</annotation>
<annotation>
<mention>Allan Budi Kuksuma</mention>
<wikiName></wikiName>
<offset>528</offset>
<length>18</length>
</annotation>
<annotation>
<mention>Indonesia</mention>
<wikiName>Indonesia</wikiName>
<offset>548</offset>
<length>9</length>
</annotation>
<annotation>
<mention>Poul-Erik Hoyer-Larsen</mention>
<wikiName>Poul-Erik Høyer Larsen</wikiName>
<offset>564</offset>
<length>22</length>
</annotation>
<annotation>
<mention>Denmark</mention>
<wikiName>Denmark</wikiName>
<offset>588</offset>
<length>7</length>
</annotation>
<annotation>
<mention>Budi Santoso</mention>
<wikiName></wikiName>
<offset>608</offset>
<length>12</length>
</annotation>
<annotation>
<mention>Indonesia</mention>
<wikiName>Indonesia</wikiName>
<offset>622</offset>
<length>9</length>
</annotation>
<annotation>
<mention>Hu Zhilan</mention>
<wikiName></wikiName>
<offset>638</offset>
<length>9</length>
</annotation>
<annotation>
<mention>China</mention>
<wikiName>China</wikiName>
<offset>649</offset>
<length>5</length>
</annotation>
<annotation>
<mention>Fung Permadi</mention>
<wikiName>Fung Permadi</wikiName>
<offset>693</offset>
<length>12</length>
</annotation>
<annotation>
<mention>Taiwan</mention>
<wikiName>Taiwan</wikiName>
<offset>707</offset>
<length>6</length>
</annotation>
<annotation>
<mention>Indra
Wijaya</mention>
<wikiName></wikiName>
<offset>717</offset>
<length>13</length>
</annotation>
<annotation>
<mention>Indonesia</mention>
<wikiName>Indonesia</wikiName>
<offset>732</offset>
<length>9</length>
</annotation>
<annotation>
<mention>Sun Jun</mention>
<wikiName>Sun Jun (badminton)</wikiName>
<offset>744</offset>
<length>7</length>
</annotation>
<annotation>
<mention>China</mention>
<wikiName>China</wikiName>
<offset>753</offset>
<length>5</length>
</annotation>
<annotation>
<mention>Allan Budi Kusuma</mention>
<wikiName>Alan Budikusuma</wikiName>
<offset>762</offset>
<length>17</length>
</annotation>
<annotation>
<mention>Indonesia</mention>
<wikiName>Indonesia</wikiName>
<offset>782</offset>
<length>9</length>
</annotation>
<annotation>
<mention>Gong Zhichao</mention>
<wikiName>Gong Zhichao</wikiName>
<offset>820</offset>
<length>12</length>
</annotation>
<annotation>
<mention>China</mention>
<wikiName>China</wikiName>
<offset>834</offset>
<length>5</length>
</annotation>
<annotation>
<mention>Mia Audina</mention>
<wikiName>Mia Audina</wikiName>
<offset>846</offset>
<length>10</length>
</annotation>
<annotation>
<mention>Indonesia</mention>
<wikiName>Indonesia</wikiName>
<offset>858</offset>
<length>9</length>
</annotation>
<annotation>
<mention>Ye Zhaoying</mention>
<wikiName>Ye Zhaoying</wikiName>
<offset>890</offset>
<length>11</length>
</annotation>
<annotation>
<mention>China</mention>
<wikiName>China</wikiName>
<offset>903</offset>
<length>5</length>
</annotation>
<annotation>
<mention>Meiluawati</mention>
<wikiName></wikiName>
<offset>915</offset>
<length>10</length>
</annotation>
<annotation>
<mention>Indonesia</mention>
<wikiName>Indonesia</wikiName>
<offset>927</offset>
<length>9</length>
</annotation>
<annotation>
<mention>Camilla Martin</mention>
<wikiName>Camilla Martin</wikiName>
<offset>959</offset>
<length>14</length>
</annotation>
<annotation>
<mention>Denmark</mention>
<wikiName>Denmark</wikiName>
<offset>975</offset>
<length>7</length>
</annotation>
<annotation>
<mention>Wang Chen</mention>
<wikiName>Wang Chen (badminton)</wikiName>
<offset>989</offset>
<length>9</length>
</annotation>
<annotation>
<mention>China</mention>
<wikiName>China</wikiName>
<offset>1000</offset>
<length>5</length>
</annotation>
<annotation>
<mention>Susi Susanti</mention>
<wikiName>Susi Susanti</wikiName>
<offset>1028</offset>
<length>12</length>
</annotation>
<annotation>
<mention>Indonesia</mention>
<wikiName>Indonesia</wikiName>
<offset>1042</offset>
<length>9</length>
</annotation>
<annotation>
<mention>Han Jingna</mention>
<wikiName></wikiName>
<offset>1058</offset>
<length>10</length>
</annotation>
<annotation>
<mention>China</mention>
<wikiName>China</wikiName>
<offset>1070</offset>
<length>5</length>
</annotation>
<annotation>
<mention>Susi Susanti</mention>
<wikiName>Susi Susanti</wikiName>
<offset>1115</offset>
<length>12</length>
</annotation>
<annotation>
<mention>Indonesia</mention>
<wikiName>Indonesia</wikiName>
<offset>1129</offset>
<length>9</length>
</annotation>
<annotation>
<mention>Camilla Martin</mention>
<wikiName>Camilla Martin</wikiName>
<offset>1142</offset>
<length>14</length>
</annotation>
<annotation>
<mention>Denmark</mention>
<wikiName>Denmark</wikiName>
<offset>1158</offset>
<length>7</length>
</annotation>
<annotation>
<mention>Ye Zhaoying</mention>
<wikiName>Ye Zhaoying</wikiName>
<offset>1168</offset>
<length>11</length>
</annotation>
<annotation>
<mention>China</mention>
<wikiName>China</wikiName>
<offset>1181</offset>
<length>5</length>
</annotation>
<annotation>
<mention>Gong Zichao</mention>
<wikiName></wikiName>
<offset>1190</offset>
<length>11</length>
</annotation>
<annotation>
<mention>China</mention>
<wikiName>China</wikiName>
<offset>1203</offset>
<length>5</length>
</annotation>
</document>
<document docName="239085newsML.txt">
<annotation>
<mention>ARAB</mention>
<wikiName></wikiName>
<offset>7</offset>
<length>4</length>
</annotation>
<annotation>
<mention>AFRICAN CUP WINNERS' CUP</mention>
<wikiName></wikiName>
<offset>28</offset>
<length>24</length>
</annotation>
<annotation>
<mention>CAIRO</mention>
<wikiName>Cairo</wikiName>
<offset>55</offset>
<length>5</length>
</annotation>
<annotation>
<mention>African Cup Winners' Cup</mention>
<wikiName></wikiName>
<offset>105</offset>
<length>24</length>
</annotation>
<annotation>
<mention>National stadium</mention>
<wikiName>National stadium</wikiName>
<offset>143</offset>
<length>16</length>
</annotation>
<annotation>
<mention>Arab Contractors</mention>
<wikiName>Arab Contractors (company)</wikiName>
<offset>171</offset>
<length>16</length>
</annotation>
<annotation>
<mention>Egypt</mention>
<wikiName>Egypt</wikiName>
<offset>189</offset>
<length>5</length>
</annotation>
<annotation>
<mention>Sodigraf</mention>
<wikiName></wikiName>
<offset>198</offset>
<length>8</length>
</annotation>
<annotation>
<mention>Zaire</mention>
<wikiName>Democratic Republic of the Congo</wikiName>
<offset>208</offset>
<length>5</length>
</annotation>
<annotation>
<mention>Aly Ashour</mention>
<wikiName></wikiName>
<offset>243</offset>
<length>10</length>
</annotation>
<annotation>
<mention>Mohamed Ouda</mention>
<wikiName></wikiName>
<offset>269</offset>
<length>12</length>
</annotation>
</document>
<document docName="239088newsML.txt">
<annotation>
<mention>NHL</mention>
<wikiName>National Hockey League</wikiName>
<offset>0</offset>
<length>3</length>
</annotation>
<annotation>
<mention>NEW YORK</mention>
<wikiName>New York</wikiName>
<offset>50</offset>
<length>8</length>
</annotation>
<annotation>
<mention>National Hockey
League</mention>
<wikiName>National Hockey League</wikiName>
<offset>84</offset>
<length>23</length>
</annotation>
<annotation>
<mention>HARTFORD</mention>
<wikiName>Hartford Whalers</wikiName>
<offset>301</offset>
<length>8</length>
</annotation>
<annotation>
<mention>BUFFALO</mention>
<wikiName>Buffalo Sabres</wikiName>
<offset>338</offset>
<length>7</length>
</annotation>
<annotation>
<mention>BOSTON</mention>
<wikiName>Boston Bruins</wikiName>
<offset>375</offset>
<length>6</length>
</annotation>
<annotation>
<mention>MONTREAL</mention>
<wikiName>Montreal</wikiName>
<offset>412</offset>
<length>8</length>
</annotation>
<annotation>
<mention>PITTSBURGH</mention>
<wikiName>Pittsburgh Penguins</wikiName>
<offset>449</offset>
<length>10</length>
</annotation>
<annotation>
<mention>OTTAWA</mention>
<wikiName>Ottawa 67's</wikiName>
<offset>491</offset>
<length>6</length>
</annotation>
<annotation>
<mention>ATLANTIC</mention>
<wikiName>Atlantic Division (NHL)</wikiName>
<offset>533</offset>
<length>8</length>
</annotation>
<annotation>
<mention>FLORIDA</mention>
<wikiName>Florida Panthers</wikiName>
<offset>586</offset>
<length>7</length>
</annotation>
<annotation>
<mention>PHILADELPHIA</mention>
<wikiName>Philadelphia Flyers</wikiName>
<offset>623</offset>
<length>12</length>
</annotation>
<annotation>
<mention>NEW JERSEY</mention>
<wikiName>New Jersey Devils</wikiName>
<offset>665</offset>
<length>10</length>
</annotation>
<annotation>
<mention>WASHINGTON</mention>
<wikiName>Washington Capitals</wikiName>
<offset>707</offset>
<length>10</length>
</annotation>
<annotation>
<mention>NY RANGERS</mention>
<wikiName>New York Rangers</wikiName>
<offset>749</offset>
<length>10</length>
</annotation>
<annotation>
<mention>NY ISLANDERS</mention>
<wikiName>New York Islanders</wikiName>
<offset>791</offset>
<length>12</length>
</annotation>
<annotation>
<mention>TAMPA BAY</mention>
<wikiName>Tampa Bay Lightning</wikiName>
<offset>833</offset>
<length>9</length>
</annotation>
<annotation>
<mention>CENTRAL DIVISION</mention>
<wikiName>Central Division (NHL)</wikiName>
<offset>901</offset>
<length>16</length>
</annotation>
<annotation>
<mention>DETROIT</mention>
<wikiName>Detroit Red Wings</wikiName>
<offset>953</offset>
<length>7</length>
</annotation>
<annotation>
<mention>DALLAS</mention>
<wikiName>Dallas Stars</wikiName>
<offset>990</offset>
<length>6</length>
</annotation>
<annotation>
<mention>CHICAGO</mention>
<wikiName>Chicago Blackhawks</wikiName>
<offset>1027</offset>
<length>7</length>
</annotation>
<annotation>
<mention>ST LOUIS</mention>
<wikiName>St. Louis Blues</wikiName>
<offset>1064</offset>
<length>8</length>
</annotation>
<annotation>
<mention>TORONTO</mention>
<wikiName>Toronto Maple Leafs</wikiName>
<offset>1101</offset>
<length>7</length>
</annotation>
<annotation>
<mention>PHOENIX</mention>
<wikiName>Phoenix Coyotes</wikiName>
<offset>1138</offset>
<length>7</length>
</annotation>
<annotation>
<mention>PACIFIC</mention>
<wikiName>Pacific Division (NHL)</wikiName>
<offset>1180</offset>
<length>7</length>
</annotation>
<annotation>
<mention>COLORADO</mention>
<wikiName>Colorado Avalanche</wikiName>
<offset>1232</offset>
<length>8</length>
</annotation>
<annotation>
<mention>VANCOUVER</mention>
<wikiName>Vancouver</wikiName>
<offset>1269</offset>
<length>9</length>
</annotation>
<annotation>
<mention>EDMONTON</mention>
<wikiName>Edmonton Oilers</wikiName>
<offset>1311</offset>
<length>8</length>
</annotation>
<annotation>
<mention>LOS ANGELES</mention>
<wikiName>Los Angeles</wikiName>
<offset>1348</offset>
<length>11</length>
</annotation>
<annotation>
<mention>SAN JOSE</mention>
<wikiName>San Jose Sharks</wikiName>
<offset>1390</offset>
<length>8</length>
</annotation>
<annotation>
<mention>CALGARY</mention>
<wikiName>Calgary Flames</wikiName>
<offset>1427</offset>
<length>7</length>
</annotation>
<annotation>
<mention>ANAHEIM</mention>
<wikiName>Anaheim Ducks</wikiName>
<offset>1464</offset>
<length>7</length>
</annotation>
<annotation>
<mention>ANAHEIM</mention>
<wikiName>Anaheim Ducks</wikiName>
<offset>1521</offset>
<length>7</length>
</annotation>
<annotation>
<mention>BUFFALO</mention>
<wikiName>Buffalo Sabres</wikiName>
<offset>1532</offset>
<length>7</length>
</annotation>
<annotation>
<mention>TORONTO</mention>
<wikiName>Toronto</wikiName>
<offset>1547</offset>
<length>7</length>
</annotation>
<annotation>
<mention>NY RANGERS
PITTSBURGH</mention>
<wikiName></wikiName>
<offset>1558</offset>
<length>25</length>
</annotation>
<annotation>
<mention>WASHINGTON</mention>
<wikiName>Washington Capitals</wikiName>
<offset>1587</offset>
<length>10</length>
</annotation>
<annotation>
<mention>MONTREAL</mention>
<wikiName>Montreal Canadiens</wikiName>
<offset>1604</offset>
<length>8</length>
</annotation>
<annotation>
<mention>CHICAGO</mention>
<wikiName>Chicago Blackhawks</wikiName>
<offset>1616</offset>
<length>7</length>
</annotation>
<annotation>
<mention>PHILADELPHIA</mention>
<wikiName>Philadelphia Flyers</wikiName>
<offset>1630</offset>
<length>12</length>
</annotation>
<annotation>
<mention>DALLAS</mention>
<wikiName>Dallas</wikiName>
<offset>1646</offset>
<length>6</length>
</annotation>
<annotation>
<mention>ST LOUIS</mention>
<wikiName>St. Louis Blues</wikiName>
<offset>1656</offset>
<length>8</length>
</annotation>
<annotation>
<mention>COLORADO</mention>
<wikiName>Colorado Avalanche</wikiName>
<offset>1668</offset>
<length>8</length>
</annotation>
<annotation>
<mention>OTTAWA</mention>
<wikiName>Ottawa 67's</wikiName>
<offset>1682</offset>
<length>6</length>
</annotation>
<annotation>
<mention>EDMONTON</mention>
<wikiName>Edmonton Oilers</wikiName>
<offset>1692</offset>
<length>8</length>
</annotation>
</document>
<document docName="239089newsML.txt">
<annotation>
<mention>NHL</mention>
<wikiName>National Hockey League</wikiName>
<offset>0</offset>
<length>3</length>
</annotation>
<annotation>
<mention>GMT</mention>
<wikiName>Greenwich Mean Time</wikiName>
<offset>52</offset>
<length>3</length>
</annotation>
<annotation>
<mention>NEW YORK</mention>
<wikiName>New York City</wikiName>
<offset>58</offset>
<length>8</length>
</annotation>
<annotation>
<mention>NBA</mention>
<wikiName>National Basketball Association</wikiName>
<offset>103</offset>
<length>3</length>
</annotation>
<annotation>
<mention>NHL</mention>
<wikiName>National Hockey League</wikiName>
<offset>110</offset>
<length>3</length>
</annotation>
<annotation>
<mention>La Clippers</mention>
<wikiName></wikiName>
<offset>159</offset>
<length>11</length>
</annotation>
<annotation>
<mention>Ny Islanders</mention>
<wikiName></wikiName>
<offset>174</offset>
<length>12</length>
</annotation>
<annotation>
<mention>National Hockey
League</mention>
<wikiName>National Hockey League</wikiName>
<offset>201</offset>
<length>23</length>
</annotation>
<annotation>
<mention>Hartford</mention>
<wikiName>Hartford Whalers</wikiName>
<offset>266</offset>
<length>8</length>
</annotation>
<annotation>
<mention>BOSTON</mention>
<wikiName>Boston Bruins</wikiName>
<offset>282</offset>
<length>6</length>
</annotation>
<annotation>
<mention>FLORIDA</mention>
<wikiName>Florida Panthers</wikiName>
<offset>298</offset>
<length>7</length>
</annotation>
<annotation>
<mention>Ny Islanders</mention>
<wikiName></wikiName>
<offset>314</offset>
<length>12</length>
</annotation>
<annotation>
<mention>NEW JERSEY</mention>
<wikiName>New Jersey Devils</wikiName>
<offset>335</offset>
<length>10</length>
</annotation>
<annotation>
<mention>Calgary</mention>
<wikiName>Calgary Flames</wikiName>
<offset>351</offset>
<length>7</length>
</annotation>
<annotation>
<mention>Phoenix</mention>
<wikiName>Phoenix Coyotes</wikiName>
<offset>367</offset>
<length>7</length>
</annotation>
<annotation>
<mention>ST LOUIS</mention>
<wikiName>St. Louis Blues</wikiName>
<offset>383</offset>
<length>8</length>
</annotation>
<annotation>
<mention>Tampa Bay</mention>
<wikiName>Tampa Bay Lightning</wikiName>
<offset>399</offset>
<length>9</length>
</annotation>
<annotation>
<mention>LOS ANGELES</mention>
<wikiName>Los Angeles Kings</wikiName>
<offset>415</offset>
<length>11</length>
</annotation>
</document>
<document docName="239091newsML.txt">
<annotation>
<mention>NFL</mention>
<wikiName>National Football League</wikiName>
<offset>0</offset>
<length>3</length>
</annotation>
<annotation>
<mention>EAGLES</mention>
<wikiName>Philadelphia Eagles</wikiName>
<offset>36</offset>
<length>6</length>
</annotation>
<annotation>
<mention>INDIANAPOLIS</mention>
<wikiName>Indianapolis</wikiName>
<offset>69</offset>
<length>12</length>
</annotation>
<annotation>
<mention>Indianapolis Colts</mention>
<wikiName>Indianapolis Colts</wikiName>
<offset>113</offset>
<length>18</length>
</annotation>
<annotation>
<mention>Philadelphia Eagles</mention>
<wikiName>Philadelphia Eagles</wikiName>
<offset>234</offset>
<length>19</length>
</annotation>
<annotation>
<mention>Marshall Faulk</mention>
<wikiName>Marshall Faulk</wikiName>
<offset>298</offset>
<length>14</length>
</annotation>
<annotation>
<mention>Jason Belser</mention>
<wikiName>Jason Belser</wikiName>
<offset>357</offset>
<length>12</length>
</annotation>
<annotation>
<mention>Colts</mention>
<wikiName>Indianapolis Colts</wikiName>
<offset>423</offset>
<length>5</length>
</annotation>
<annotation>
<mention>Eagles</mention>
<wikiName>Philadelphia Eagles</wikiName>
<offset>467</offset>
<length>6</length>
</annotation>
<annotation>
<mention>Paul Justin</mention>
<wikiName>Paul Justin</wikiName>
<offset>520</offset>
<length>11</length>
</annotation>
<annotation>
<mention>Jim Harbaugh</mention>
<wikiName>Jim Harbaugh</wikiName>
<offset>560</offset>
<length>12</length>
</annotation>
<annotation>
<mention>Colts</mention>
<wikiName>Indianapolis Colts</wikiName>
<offset>629</offset>
<length>5</length>
</annotation>
<annotation>
<mention>Indianapolis</mention>
<wikiName>Indianapolis Colts</wikiName>
<offset>683</offset>
<length>12</length>
</annotation>
<annotation>
<mention>Kansas City</mention>
<wikiName>Kansas City, Missouri</wikiName>
<offset>717</offset>
<length>11</length>
</annotation>
<annotation>
<mention>Cincinnati</mention>
<wikiName>Cincinnati</wikiName>
<offset>733</offset>
<length>10</length>
</annotation>
<annotation>
<mention>Eagles</mention>
<wikiName>Philadelphia Eagles</wikiName>
<offset>750</offset>
<length>6</length>
</annotation>
<annotation>
<mention>Philadelphia</mention>
<wikiName>Philadelphia</wikiName>
<offset>817</offset>
<length>12</length>
</annotation>
<annotation>
<mention>Dallas Cowboys</mention>
<wikiName>Dallas Cowboys</wikiName>
<offset>872</offset>
<length>14</length>
</annotation>
<annotation>
<mention>Washington Redskins</mention>
<wikiName>Washington Redskins</wikiName>
<offset>891</offset>
<length>19</length>
</annotation>
<annotation>
<mention>New York Jets</mention>
<wikiName>New York Jets</wikiName>
<offset>939</offset>
<length>13</length>
</annotation>
<annotation>
<mention>Arizona</mention>
<wikiName>Arizona</wikiName>
<offset>972</offset>
<length>7</length>
</annotation>
<annotation>
<mention>Philadelphia</mention>
<wikiName>Philadelphia</wikiName>
<offset>994</offset>
<length>12</length>
</annotation>
<annotation>
<mention>Green Bay Packers</mention>
<wikiName>Green Bay Packers</wikiName>
<offset>1024</offset>
<length>17</length>
</annotation>
<annotation>
<mention>Colts</mention>
<wikiName>Indianapolis Colts</wikiName>
<offset>1093</offset>
<length>5</length>
</annotation>
<annotation>
<mention>Tony Siragusa</mention>
<wikiName>Tony Siragusa</wikiName>
<offset>1160</offset>
<length>13</length>
</annotation>
<annotation>
<mention>Ray Buchanan</mention>
<wikiName>Ray Buchanan</wikiName>
<offset>1186</offset>
<length>12</length>
</annotation>
<annotation>
<mention>Quentin Coryatt</mention>
<wikiName>Quentin Coryatt</wikiName>
<offset>1214</offset>
<length>15</length>
</annotation>
<annotation>
<mention>Faulk</mention>
<wikiName>Marshall Faulk</wikiName>
<offset>1232</offset>
<length>5</length>
</annotation>
<annotation>
<mention>Justin</mention>
<wikiName>Paul Justin</wikiName>
<offset>1355</offset>
<length>6</length>
</annotation>
<annotation>
<mention>Harbaugh</mention>
<wikiName>Jim Harbaugh</wikiName>
<offset>1397</offset>
<length>8</length>
</annotation>
<annotation>
<mention>Justin</mention>
<wikiName>Paul Justin</wikiName>
<offset>1430</offset>
<length>6</length>
</annotation>
<annotation>
<mention>Kerwin Bell</mention>
<wikiName>Kerwin Bell</wikiName>
<offset>1529</offset>
<length>11</length>
</annotation>
<annotation>
<mention>Miami Dolphins</mention>
<wikiName>Miami Dolphins</wikiName>
<offset>1569</offset>
<length>14</length>
</annotation>
<annotation>
<mention>NFL</mention>
<wikiName>National Football League</wikiName>
<offset>1594</offset>
<length>3</length>
</annotation>
<annotation>
<mention>Marvin Harrison</mention>
<wikiName>Marvin Harrison</wikiName>
<offset>1671</offset>
<length>15</length>
</annotation>
<annotation>
<mention>Philadelphia</mention>
<wikiName>Philadelphia Eagles</wikiName>
<offset>1748</offset>
<length>12</length>
</annotation>
<annotation>
<mention>Troy Vincent</mention>
<wikiName>Troy Vincent</wikiName>
<offset>1763</offset>
<length>12</length>
</annotation>
<annotation>
<mention>Faulk</mention>
<wikiName>Marshall Faulk</wikiName>
<offset>1783</offset>
<length>5</length>
</annotation>
<annotation>
<mention>Eagles</mention>
<wikiName>Philadelphia Eagles</wikiName>
<offset>1889</offset>
<length>6</length>
</annotation>
<annotation>
<mention>Ty Detmer</mention>
<wikiName>Ty Detmer</wikiName>
<offset>1908</offset>
<length>9</length>
</annotation>
<annotation>
<mention>Ricky Watters</mention>
<wikiName>Ricky Watters</wikiName>
<offset>1968</offset>
<length>13</length>
</annotation>
</document>
<document docName="239092newsML.txt">
<annotation>
<mention>NBA</mention>
<wikiName>National Basketball Association</wikiName>
<offset>0</offset>
<length>3</length>
</annotation>
<annotation>
<mention>NEW YORK</mention>
<wikiName>New York</wikiName>
<offset>50</offset>
<length>8</length>
</annotation>
<annotation>
<mention>National
Basketball Association</mention>
<wikiName>National Basketball Association</wikiName>
<offset>84</offset>
<length>32</length>
</annotation>
<annotation>
<mention>ATLANTIC</mention>
<wikiName>Atlantic Division (NBA)</wikiName>
<offset>236</offset>
<length>8</length>
</annotation>
<annotation>
<mention>MIAMI</mention>
<wikiName>Miami Heat</wikiName>
<offset>278</offset>
<length>5</length>
</annotation>
<annotation>
<mention>NEW YORK</mention>
<wikiName>New York Knicks</wikiName>
<offset>310</offset>
<length>8</length>
</annotation>
<annotation>
<mention>ORLANDO</mention>
<wikiName>Orlando Magic</wikiName>
<offset>342</offset>
<length>7</length>
</annotation>
<annotation>
<mention>WASHINGTON</mention>
<wikiName>Washington Wizards</wikiName>
<offset>374</offset>
<length>10</length>
</annotation>
<annotation>
<mention>PHILADELPHIA</mention>
<wikiName>Philadelphia 76ers</wikiName>
<offset>406</offset>
<length>12</length>
</annotation>
<annotation>
<mention>BOSTON</mention>
<wikiName>Boston Celtics</wikiName>
<offset>447</offset>
<length>6</length>
</annotation>
<annotation>
<mention>NEW JERSEY</mention>
<wikiName>Brooklyn Nets</wikiName>
<offset>479</offset>
<length>10</length>
</annotation>
<annotation>
<mention>CHICAGO</mention>
<wikiName>Chicago Bulls</wikiName>
<offset>558</offset>
<length>7</length>
</annotation>
<annotation>
<mention>DETROIT</mention>
<wikiName>Detroit Pistons</wikiName>
<offset>590</offset>
<length>7</length>
</annotation>
<annotation>
<mention>CLEVELAND</mention>
<wikiName>Cleveland Cavaliers</wikiName>
<offset>622</offset>
<length>9</length>
</annotation>
<annotation>
<mention>ATLANTA</mention>
<wikiName>Atlanta Hawks</wikiName>
<offset>654</offset>
<length>7</length>
</annotation>
<annotation>
<mention>CHARLOTTE</mention>
<wikiName>New Orleans Pelicans</wikiName>
<offset>686</offset>
<length>9</length>
</annotation>
<annotation>
<mention>MILWAUKEE</mention>
<wikiName>Milwaukee Bucks</wikiName>
<offset>718</offset>
<length>9</length>
</annotation>
<annotation>
<mention>INDIANA</mention>
<wikiName>Indiana Pacers</wikiName>
<offset>750</offset>
<length>7</length>
</annotation>
<annotation>
<mention>TORONTO</mention>
<wikiName>Toronto Raptors</wikiName>
<offset>786</offset>
<length>7</length>
</annotation>
<annotation>
<mention>HOUSTON</mention>
<wikiName>Houston Rockets</wikiName>
<offset>888</offset>
<length>7</length>
</annotation>
<annotation>
<mention>UTAH</mention>
<wikiName>Utah Jazz</wikiName>
<offset>920</offset>
<length>4</length>
</annotation>
<annotation>
<mention>MINNESOTA</mention>
<wikiName>Minnesota Timberwolves</wikiName>
<offset>947</offset>
<length>9</length>
</annotation>
<annotation>
<mention>DALLAS</mention>
<wikiName>Dallas Mavericks</wikiName>
<offset>983</offset>
<length>6</length>
</annotation>
<annotation>
<mention>DENVER</mention>
<wikiName>Denver Nuggets</wikiName>
<offset>1019</offset>
<length>6</length>
</annotation>
<annotation>
<mention>SAN ANTONIO</mention>
<wikiName>San Antonio Spurs</wikiName>
<offset>1055</offset>
<length>11</length>
</annotation>
<annotation>
<mention>VANCOUVER</mention>
<wikiName>Memphis Grizzlies</wikiName>
<offset>1087</offset>
<length>9</length>
</annotation>
<annotation>
<mention>PACIFIC</mention>
<wikiName>Pacific Division (NBA)</wikiName>
<offset>1121</offset>
<length>7</length>
</annotation>
<annotation>
<mention>SEATTLE</mention>
<wikiName>Seattle SuperSonics</wikiName>
<offset>1162</offset>
<length>7</length>
</annotation>
<annotation>
<mention>LA LAKERS</mention>
<wikiName>Los Angeles Lakers</wikiName>
<offset>1194</offset>
<length>9</length>
</annotation>
<annotation>
<mention>PORTLAND</mention>
<wikiName>Portland Trail Blazers</wikiName>
<offset>1226</offset>
<length>8</length>
</annotation>
<annotation>
<mention>LA CLIPPERS</mention>
<wikiName>Los Angeles Clippers</wikiName>
<offset>1262</offset>
<length>11</length>
</annotation>
<annotation>
<mention>GOLDEN STATE</mention>
<wikiName>Golden State Warriors</wikiName>
<offset>1294</offset>
<length>12</length>
</annotation>
<annotation>
<mention>SACRAMENTO</mention>
<wikiName>Sacramento Kings</wikiName>
<offset>1331</offset>
<length>10</length>
</annotation>
<annotation>
<mention>PHOENIX</mention>
<wikiName>Phoenix Suns</wikiName>
<offset>1363</offset>
<length>7</length>
</annotation>
<annotation>
<mention>NEW JERSEY</mention>
<wikiName>Brooklyn Nets</wikiName>
<offset>1415</offset>
<length>10</length>
</annotation>
<annotation>
<mention>BOSTON</mention>
<wikiName>Boston Celtics</wikiName>
<offset>1429</offset>
<length>6</length>
</annotation>
<annotation>
<mention>CLEVELAND</mention>
<wikiName>Cleveland Cavaliers</wikiName>
<offset>1439</offset>
<length>9</length>
</annotation>
<annotation>
<mention>DETROIT</mention>
<wikiName>Detroit Pistons</wikiName>
<offset>1452</offset>
<length>7</length>
</annotation>
<annotation>
<mention>NEW YORK</mention>
<wikiName>New York Knicks</wikiName>
<offset>1463</offset>
<length>8</length>
</annotation>
<annotation>
<mention>MIAMI</mention>
<wikiName>Miami Heat</wikiName>
<offset>1475</offset>
<length>5</length>
</annotation>
<annotation>
<mention>PHOENIX</mention>
<wikiName>Phoenix Suns</wikiName>
<offset>1487</offset>
<length>7</length>
</annotation>
<annotation>
<mention>SACRAMENTO</mention>
<wikiName>Sacramento Kings</wikiName>
<offset>1498</offset>
<length>10</length>
</annotation>
<annotation>
<mention>VANCOUVER</mention>
<wikiName>Memphis Grizzlies</wikiName>
<offset>1516</offset>
<length>9</length>
</annotation>
<annotation>
<mention>SAN ANTONIO</mention>
<wikiName>San Antonio Spurs</wikiName>
<offset>1529</offset>
<length>11</length>
</annotation>
<annotation>
<mention>MINNESOTA</mention>
<wikiName>Minnesota Timberwolves</wikiName>
<offset>1545</offset>
<length>9</length>
</annotation>
<annotation>
<mention>UTAH</mention>
<wikiName>Utah Jazz</wikiName>
<offset>1558</offset>
<length>4</length>
</annotation>
<annotation>
<mention>CHARLOTTE</mention>
<wikiName>New Orleans Pelicans</wikiName>
<offset>1569</offset>
<length>9</length>
</annotation>
<annotation>
<mention>PORTLAND</mention>
<wikiName>Portland Trail Blazers</wikiName>
<offset>1582</offset>
<length>8</length>
</annotation>
<annotation>
<mention>INDIANA</mention>
<wikiName>Indiana Pacers</wikiName>
<offset>1598</offset>
<length>7</length>
</annotation>
<annotation>
<mention>GOLDEN STATE</mention>
<wikiName>Golden State Warriors</wikiName>
<offset>1609</offset>
<length>12</length>
</annotation>
<annotation>
<mention>ORLANDO</mention>
<wikiName>Orlando Magic</wikiName>
<offset>1627</offset>
<length>7</length>
</annotation>
<annotation>
<mention>LA LAKERS</mention>
<wikiName>Los Angeles Lakers</wikiName>
<offset>1638</offset>
<length>9</length>
</annotation>
</document>
<document docName="239093newsML.txt">
<annotation>
<mention>NFL</mention>
<wikiName>National Football League</wikiName>
<offset>0</offset>
<length>3</length>
</annotation>
<annotation>
<mention>NEW YORK</mention>
<wikiName>New York</wikiName>
<offset>56</offset>
<length>8</length>
</annotation>
<annotation>
<mention>National Football League</mention>
<wikiName>National Football League</wikiName>
<offset>77</offset>
<length>24</length>
</annotation>
<annotation>
<mention>AMERICAN</mention>
<wikiName>United States</wikiName>
<offset>204</offset>
<length>8</length>
</annotation>
<annotation>
<mention>NEW ENGLAND</mention>
<wikiName>New England Patriots</wikiName>
<offset>282</offset>
<length>11</length>
</annotation>
<annotation>
<mention>BUFFALO</mention>
<wikiName>Buffalo Bills</wikiName>
<offset>315</offset>
<length>7</length>
</annotation>
<annotation>
<mention>INDIANAPOLIS</mention>
<wikiName>Indianapolis Colts</wikiName>
<offset>348</offset>
<length>12</length>
</annotation>
<annotation>
<mention>MIAMI</mention>
<wikiName>Miami Dolphins</wikiName>
<offset>386</offset>
<length>5</length>
</annotation>
<annotation>
<mention>NY JETS</mention>
<wikiName>New York Jets</wikiName>
<offset>414</offset>
<length>7</length>
</annotation>
<annotation>
<mention>PA
PITTSBURGH</mention>
<wikiName></wikiName>
<offset>489</offset>
<length>15</length>
</annotation>
<annotation>
<mention>HOUSTON</mention>
<wikiName>Houston Texans</wikiName>
<offset>527</offset>
<length>7</length>
</annotation>
<annotation>
<mention>JACKSONVILLE</mention>
<wikiName>Jacksonville Jaguars</wikiName>
<offset>560</offset>
<length>12</length>
</annotation>
<annotation>
<mention>CINCINNATI</mention>
<wikiName>Cincinnati Bengals</wikiName>
<offset>598</offset>
<length>10</length>
</annotation>
<annotation>
<mention>BALTIMORE</mention>
<wikiName>Baltimore Ravens</wikiName>
<offset>631</offset>
<length>9</length>
</annotation>
<annotation>
<mention>X-DENVER</mention>
<wikiName></wikiName>
<offset>711</offset>
<length>8</length>
</annotation>
<annotation>
<mention>KANSAS CITY</mention>
<wikiName>Kansas City Chiefs</wikiName>
<offset>744</offset>
<length>11</length>
</annotation>
<annotation>
<mention>SAN DIEGO</mention>
<wikiName>San Diego Chargers</wikiName>
<offset>777</offset>
<length>9</length>
</annotation>
<annotation>
<mention>OAKLAND</mention>
<wikiName>Oakland Raiders</wikiName>
<offset>810</offset>
<length>7</length>
</annotation>
<annotation>
<mention>SEATTLE</mention>
<wikiName>Seattle Seahawks</wikiName>
<offset>843</offset>
<length>7</length>
</annotation>
<annotation>
<mention>DALLAS</mention>
<wikiName>Dallas Cowboys</wikiName>
<offset>955</offset>
<length>6</length>
</annotation>
<annotation>
<mention>WASHINGTON</mention>
<wikiName>Washington Redskins</wikiName>
<offset>988</offset>
<length>10</length>
</annotation>
<annotation>
<mention>PHILADELPHIA</mention>
<wikiName>Philadelphia Eagles</wikiName>
<offset>1021</offset>
<length>12</length>
</annotation>
<annotation>
<mention>ARIZONA</mention>
<wikiName>Arizona Cardinals</wikiName>
<offset>1059</offset>
<length>7</length>
</annotation>
<annotation>
<mention>NY GIANTS</mention>
<wikiName>New York Giants</wikiName>
<offset>1092</offset>
<length>9</length>
</annotation>
<annotation>
<mention>Y-GREEN BAY</mention>
<wikiName></wikiName>
<offset>1172</offset>
<length>11</length>
</annotation>
<annotation>
<mention>MINNESOTA</mention>
<wikiName>Minnesota Vikings</wikiName>
<offset>1210</offset>
<length>9</length>
</annotation>
<annotation>
<mention>CHICAGO</mention>
<wikiName>Chicago Bears</wikiName>
<offset>1243</offset>
<length>7</length>
</annotation>
<annotation>
<mention>DETROIT</mention>
<wikiName>Detroit Lions</wikiName>
<offset>1276</offset>
<length>7</length>
</annotation>
<annotation>
<mention>TAMPA BAY</mention>
<wikiName>Tampa Bay Buccaneers</wikiName>
<offset>1309</offset>
<length>9</length>
</annotation>
<annotation>
<mention>SAN FRANCISCO</mention>
<wikiName>San Francisco 49ers</wikiName>
<offset>1389</offset>
<length>13</length>
</annotation>
<annotation>
<mention>CAROLINA</mention>
<wikiName>Carolina Panthers</wikiName>
<offset>1427</offset>
<length>8</length>
</annotation>
<annotation>
<mention>ST LOUIS</mention>
<wikiName></wikiName>
<offset>1460</offset>
<length>8</length>
</annotation>
<annotation>
<mention>ATLANTA</mention>
<wikiName>Atlanta Falcons</wikiName>
<offset>1493</offset>
<length>7</length>
</annotation>
<annotation>
<mention>NEW ORLEANS</mention>
<wikiName>New Orleans Saints</wikiName>
<offset>1526</offset>
<length>11</length>
</annotation>
<annotation>
<mention>ST LOUIS</mention>
<wikiName></wikiName>
<offset>1638</offset>
<length>8</length>
</annotation>
<annotation>
<mention>CHICAGO</mention>
<wikiName>Chicago Bears</wikiName>
<offset>1650</offset>
<length>7</length>
</annotation>
<annotation>
<mention>BALTIMORE</mention>
<wikiName>Baltimore Ravens</wikiName>
<offset>1666</offset>
<length>9</length>
</annotation>
<annotation>
<mention>CINCINNATI</mention>
<wikiName>Cincinnati Bengals</wikiName>
<offset>1679</offset>
<length>10</length>
</annotation>
<annotation>
<mention>DENVER</mention>
<wikiName>Denver Broncos</wikiName>
<offset>1694</offset>
<length>6</length>
</annotation>
<annotation>
<mention>GREEN BAY</mention>
<wikiName>Green Bay Packers</wikiName>
<offset>1704</offset>
<length>9</length>
</annotation>
<annotation>
<mention>JACKSONVILLE</mention>
<wikiName>Jacksonville Jaguars</wikiName>
<offset>1722</offset>
<length>12</length>
</annotation>
<annotation>
<mention>HOUSTON</mention>
<wikiName>Tennessee Titans</wikiName>
<offset>1738</offset>
<length>7</length>
</annotation>
<annotation>
<mention>NY GIANTS</mention>
<wikiName>New York Giants</wikiName>
<offset>1750</offset>
<length>9</length>
</annotation>
<annotation>
<mention>MIAMI</mention>
<wikiName>Miami Dolphins</wikiName>
<offset>1763</offset>
<length>5</length>
</annotation>
<annotation>
<mention>ATLANTA</mention>
<wikiName>Atlanta Falcons</wikiName>
<offset>1773</offset>
<length>7</length>
</annotation>
<annotation>
<mention>NEW ORLEANS</mention>
<wikiName>New Orleans Saints</wikiName>
<offset>1784</offset>
<length>11</length>
</annotation>
<annotation>
<mention>SAN DIEGO</mention>
<wikiName>San Diego Chargers</wikiName>
<offset>1801</offset>
<length>9</length>
</annotation>
<annotation>
<mention>PITTSBURGH</mention>
<wikiName>Pittsburgh Steelers</wikiName>
<offset>1814</offset>
<length>10</length>
</annotation>
<annotation>
<mention>WASHINGTON</mention>
<wikiName>Washington Redskins</wikiName>
<offset>1829</offset>
<length>10</length>
</annotation>
<annotation>
<mention>TAMPA BAY</mention>
<wikiName>Tampa Bay Buccaneers</wikiName>
<offset>1843</offset>
<length>9</length>
</annotation>
<annotation>
<mention>DALLAS</mention>
<wikiName>Dallas Cowboys</wikiName>
<offset>1857</offset>
<length>6</length>
</annotation>
<annotation>
<mention>ARIZONA</mention>
<wikiName>Arizona Cardinals</wikiName>
<offset>1867</offset>
<length>7</length>
</annotation>
<annotation>
<mention>NY JETS</mention>
<wikiName>New York Jets</wikiName>
<offset>1880</offset>
<length>7</length>
</annotation>
<annotation>
<mention>NEW ENGLAND</mention>
<wikiName>New England Patriots</wikiName>
<offset>1891</offset>
<length>11</length>
</annotation>
<annotation>
<mention>BUFFALO</mention>
<wikiName>Buffalo Bills</wikiName>
<offset>1908</offset>
<length>7</length>
</annotation>
<annotation>
<mention>SEATTLE</mention>
<wikiName>Seattle Seahawks</wikiName>
<offset>1919</offset>
<length>7</length>
</annotation>
<annotation>
<mention>CAROLINA</mention>
<wikiName>Carolina Panthers</wikiName>
<offset>1931</offset>
<length>8</length>
</annotation>
<annotation>
<mention>SAN FRANCISCO</mention>
<wikiName>San Francisco 49ers</wikiName>
<offset>1943</offset>
<length>13</length>
</annotation>
<annotation>
<mention>MINNESOTA</mention>
<wikiName>Minnesota Vikings</wikiName>
<offset>1964</offset>
<length>9</length>
</annotation>
<annotation>
<mention>DETROIT</mention>
<wikiName>Detroit Lions</wikiName>
<offset>1977</offset>
<length>7</length>
</annotation>
<annotation>
<mention>KANSAS CITY</mention>
<wikiName>Kansas City Chiefs</wikiName>
<offset>2012</offset>
<length>11</length>
</annotation>
<annotation>
<mention>OAKLAND</mention>
<wikiName>Oakland Raiders</wikiName>
<offset>2027</offset>
<length>7</length>
</annotation>
</document>
<document docName="239094newsML.txt">
<annotation>
<mention>NFL</mention>
<wikiName>National Football League</wikiName>
<offset>0</offset>
<length>3</length>
</annotation>
<annotation>
<mention>NEW YORK</mention>
<wikiName>New York</wikiName>
<offset>42</offset>
<length>8</length>
</annotation>
<annotation>
<mention>National</mention>
<wikiName>National Football League</wikiName>
<offset>73</offset>
<length>8</length>
</annotation>
<annotation>
<mention>Football
League</mention>
<wikiName></wikiName>
<offset>82</offset>
<length>16</length>
</annotation>
<annotation>
<mention>INDIANAPOLIS</mention>
<wikiName>Indianapolis Colts</wikiName>
<offset>139</offset>
<length>12</length>
</annotation>
<annotation>
<mention>Philadelphia</mention>
<wikiName>Philadelphia Eagles</wikiName>
<offset>156</offset>
<length>12</length>
</annotation>
</document>
<document docName="239095newsML.txt">
<annotation>
<mention>NCAA</mention>
<wikiName>National Collegiate Athletic Association</wikiName>
<offset>0</offset>
<length>4</length>
</annotation>
<annotation>
<mention>FOOTBALL-OHIO STATE</mention>
<wikiName></wikiName>
<offset>14</offset>
<length>19</length>
</annotation>
<annotation>
<mention>PACE</mention>
<wikiName>Orlando Pace</wikiName>
<offset>36</offset>
<length>4</length>
</annotation>
<annotation>
<mention>LOMBARDI AWARD</mention>
<wikiName>Lombardi Award</wikiName>
<offset>54</offset>
<length>14</length>
</annotation>
<annotation>
<mention>HOUSTON</mention>
<wikiName>Houston</wikiName>
<offset>78</offset>
<length>7</length>
</annotation>
<annotation>
<mention>Ohio State</mention>
<wikiName>Ohio State Buckeyes football</wikiName>
<offset>98</offset>
<length>10</length>
</annotation>
<annotation>
<mention>Orlando Pace</mention>
<wikiName>Orlando Pace</wikiName>
<offset>121</offset>
<length>12</length>
</annotation>
<annotation>
<mention>Lombardi Award</mention>
<wikiName>Lombardi Award</wikiName>
<offset>172</offset>
<length>14</length>
</annotation>
<annotation>
<mention>Rotary Club</mention>
<wikiName>Rotary International</wikiName>
<offset>211</offset>
<length>11</length>
</annotation>
<annotation>
<mention>Houston</mention>
<wikiName>Houston Cougars football</wikiName>
<offset>226</offset>
<length>7</length>
</annotation>
<annotation>
<mention>Pace</mention>
<wikiName>Orlando Pace</wikiName>
<offset>297</offset>
<length>4</length>
</annotation>
<annotation>
<mention>Ohio State</mention>
<wikiName>Ohio State Buckeyes football</wikiName>
<offset>320</offset>
<length>10</length>
</annotation>
<annotation>
<mention>Rose Bowl</mention>
<wikiName>Rose Bowl (stadium)</wikiName>
<offset>367</offset>
<length>9</length>
</annotation>
<annotation>
<mention>Arizona State</mention>
<wikiName>Arizona State Sun Devils football</wikiName>
<offset>385</offset>
<length>13</length>
</annotation>
<annotation>
<mention>Pace</mention>
<wikiName>Orlando Pace</wikiName>
<offset>526</offset>
<length>4</length>
</annotation>
<annotation>
<mention>Pace</mention>
<wikiName>Orlando Pace</wikiName>
<offset>605</offset>
<length>4</length>
</annotation>
<annotation>
<mention>Virginia Tech</mention>
<wikiName>Virginia Tech Hokies football</wikiName>
<offset>649</offset>
<length>13</length>
</annotation>
<annotation>
<mention>Cornell Brown</mention>
<wikiName>Cornell Brown</wikiName>
<offset>677</offset>
<length>13</length>
</annotation>
<annotation>
<mention>Arizona State</mention>
<wikiName>Arizona State Sun Devils football</wikiName>
<offset>692</offset>
<length>13</length>
</annotation>
<annotation>
<mention>Juan Roque</mention>
<wikiName>Juan Roque</wikiName>
<offset>723</offset>
<length>10</length>
</annotation>
<annotation>
<mention>Jared Tomich</mention>
<wikiName>Jared Tomich</wikiName>
<offset>752</offset>
<length>12</length>
</annotation>
<annotation>
<mention>Nebraska</mention>
<wikiName>Nebraska Cornhuskers football</wikiName>
<offset>768</offset>
<length>8</length>
</annotation>
<annotation>
<mention>Lombardi Award</mention>
<wikiName>Lombardi Award</wikiName>
<offset>783</offset>
<length>14</length>
</annotation>
<annotation>
<mention>Vince Lombardi</mention>
<wikiName>Vince Lombardi</wikiName>
<offset>942</offset>
<length>14</length>
</annotation>
<annotation>
<mention>Green Bay Packers</mention>
<wikiName>Green Bay Packers</wikiName>
<offset>981</offset>
<length>17</length>
</annotation>
</document>
<document docName="239099newsML.txt">
<annotation>
<mention>DUTCH</mention>
<wikiName>Netherlands</wikiName>
<offset>7</offset>
<length>5</length>
</annotation>
<annotation>
<mention>AMSTERDAM</mention>
<wikiName>Amsterdam</wikiName>
<offset>48</offset>
<length>9</length>
</annotation>
<annotation>
<mention>Dutch</mention>
<wikiName>Netherlands</wikiName>
<offset>80</offset>
<length>5</length>
</annotation>
<annotation>
<mention>RKC Waalwijk</mention>
<wikiName>RKC Waalwijk</wikiName>
<offset>135</offset>
<length>12</length>
</annotation>
<annotation>
<mention>Willem II Tilburg</mention>
<wikiName>Willem II (football club)</wikiName>
<offset>153</offset>
<length>17</length>
</annotation>
<annotation>
<mention>PSV Eindhoven</mention>
<wikiName>PSV Eindhoven</wikiName>
<offset>267</offset>
<length>13</length>
</annotation>
<annotation>
<mention>Feyenoord</mention>
<wikiName>Feyenoord</wikiName>
<offset>320</offset>
<length>9</length>
</annotation>
<annotation>
<mention>Twente Enschede</mention>
<wikiName>FC Twente</wikiName>
<offset>373</offset>
<length>15</length>
</annotation>
<annotation>
<mention>Graafschap Doetinchem</mention>
<wikiName></wikiName>
<offset>431</offset>
<length>21</length>
</annotation>
<annotation>
<mention>Vitesse Arnhem</mention>
<wikiName>Vitesse</wikiName>
<offset>494</offset>
<length>14</length>
</annotation>
<annotation>
<mention>Ajax Amsterdam</mention>
<wikiName>AFC Ajax</wikiName>
<offset>552</offset>
<length>14</length>
</annotation>
<annotation>
<mention>Heerenveen</mention>
<wikiName>SC Heerenveen</wikiName>
<offset>610</offset>
<length>10</length>
</annotation>
<annotation>
<mention>Roda JC Kerkrade</mention>
<wikiName>Roda JC Kerkrade</wikiName>
<offset>663</offset>
<length>16</length>
</annotation>
<annotation>
<mention>Utrecht</mention>
<wikiName>FC Utrecht</wikiName>
<offset>721</offset>
<length>7</length>
</annotation>
<annotation>
<mention>Volendam</mention>
<wikiName>FC Volendam</wikiName>
<offset>769</offset>
<length>8</length>
</annotation>
<annotation>
<mention>Sparta Rotterdam</mention>
<wikiName>Sparta Rotterdam</wikiName>
<offset>822</offset>
<length>16</length>
</annotation>
<annotation>
<mention>NAC Breda</mention>
<wikiName>NAC Breda</wikiName>
<offset>880</offset>
<length>9</length>
</annotation>
<annotation>
<mention>Willem II Tilburg</mention>
<wikiName>Willem II (football club)</wikiName>
<offset>933</offset>
<length>17</length>
</annotation>
<annotation>
<mention>Groningen</mention>
<wikiName>FC Groningen</wikiName>
<offset>991</offset>
<length>9</length>
</annotation>
<annotation>
<mention>AZ Alkmaar</mention>
<wikiName>AZ (football club)</wikiName>
<offset>1044</offset>
<length>10</length>
</annotation>
<annotation>
<mention>Fortuna Sittard</mention>
<wikiName>Fortuna Sittard</wikiName>
<offset>1097</offset>
<length>15</length>
</annotation>
<annotation>
<mention>NEC Nijmegen</mention>
<wikiName>N.E.C. (football club)</wikiName>
<offset>1155</offset>
<length>12</length>
</annotation>
<annotation>
<mention>RKC Waalwijk</mention>
<wikiName>RKC Waalwijk</wikiName>
<offset>1208</offset>
<length>12</length>
</annotation>
</document>
<document docName="239100newsML.txt">
<annotation>
<mention>GERMAN</mention>
<wikiName>Germany</wikiName>
<offset>7</offset>
<length>6</length>
</annotation>
<annotation>
<mention>BONN</mention>
<wikiName>Bonn</wikiName>
<offset>49</offset>
<length>4</length>
</annotation>
<annotation>
<mention>German</mention>
<wikiName>Germany</wikiName>
<offset>77</offset>
<length>6</length>
</annotation>
<annotation>
<mention>Bochum</mention>
<wikiName>VfL Bochum</wikiName>
<offset>135</offset>
<length>6</length>
</annotation>
<annotation>
<mention>Bayer Leverkusen</mention>
<wikiName>Bayer 04 Leverkusen</wikiName>
<offset>149</offset>
<length>16</length>
</annotation>
<annotation>
<mention>Werder Bremen</mention>
<wikiName>SV Werder Bremen</wikiName>
<offset>174</offset>
<length>13</length>
</annotation>
<annotation>
<mention>1860 Munich</mention>
<wikiName>TSV 1860 München</wikiName>
<offset>193</offset>
<length>11</length>
</annotation>
<annotation>
<mention>Karlsruhe</mention>
<wikiName>Karlsruher SC</wikiName>
<offset>213</offset>
<length>9</length>
</annotation>
<annotation>
<mention>Freiburg</mention>
<wikiName>SC Freiburg</wikiName>
<offset>232</offset>
<length>8</length>
</annotation>
<annotation>
<mention>Schalke</mention>
<wikiName>FC Schalke 04</wikiName>
<offset>247</offset>
<length>7</length>
</annotation>
<annotation>
<mention>Hansa Rostock</mention>
<wikiName>F.C. Hansa Rostock</wikiName>
<offset>261</offset>
<length>13</length>
</annotation>
<annotation>
<mention>Bayer Leverkusen</mention>
<wikiName>Bayer 04 Leverkusen</wikiName>
<offset>368</offset>
<length>16</length>
</annotation>
<annotation>
<mention>Bayern Munich</mention>
<wikiName>FC Bayern Munich</wikiName>
<offset>423</offset>
<length>13</length>
</annotation>
<annotation>
<mention>VfB Stuttgart</mention>
<wikiName>VfB Stuttgart</wikiName>
<offset>473</offset>
<length>13</length>
</annotation>
<annotation>
<mention>Borussia Dortmund</mention>
<wikiName>Borussia Dortmund</wikiName>
<offset>523</offset>
<length>17</length>
</annotation>
<annotation>
<mention>Karlsruhe</mention>
<wikiName>Karlsruher SC</wikiName>
<offset>578</offset>
<length>9</length>
</annotation>
<annotation>
<mention>VfL Bochum</mention>
<wikiName>VfL Bochum</wikiName>
<offset>628</offset>
<length>10</length>
</annotation>
<annotation>
<mention>1. FC Cologne</mention>
<wikiName>1. FC Köln</wikiName>
<offset>678</offset>
<length>13</length>
</annotation>
<annotation>
<mention>Schalke 04</mention>
<wikiName>FC Schalke 04</wikiName>
<offset>728</offset>
<length>10</length>
</annotation>
<annotation>
<mention>Werder Bremen</mention>
<wikiName>SV Werder Bremen</wikiName>
<offset>778</offset>
<length>13</length>
</annotation>
<annotation>
<mention>MSV Duisburg</mention>
<wikiName>MSV Duisburg</wikiName>
<offset>828</offset>
<length>12</length>
</annotation>
<annotation>
<mention>SV 1860 Munich</mention>
<wikiName></wikiName>
<offset>878</offset>
<length>14</length>
</annotation>
<annotation>
<mention>FC St. Pauli</mention>
<wikiName>FC St. Pauli</wikiName>
<offset>928</offset>
<length>12</length>
</annotation>
<annotation>
<mention>Fortuna Dusseldorf</mention>
<wikiName>Fortuna Düsseldorf</wikiName>
<offset>978</offset>
<length>18</length>
</annotation>
<annotation>
<mention>Hamburger SV</mention>
<wikiName>Hamburger SV</wikiName>
<offset>1033</offset>
<length>12</length>
</annotation>
<annotation>
<mention>Arminia Bielefeld</mention>
<wikiName>Arminia Bielefeld</wikiName>
<offset>1083</offset>
<length>17</length>
</annotation>
<annotation>
<mention>FC Hansa Rostock</mention>
<wikiName>F.C. Hansa Rostock</wikiName>
<offset>1138</offset>
<length>16</length>
</annotation>
<annotation>
<mention>Borussia Monchengladbach</mention>
<wikiName>Borussia Mönchengladbach</wikiName>
<offset>1193</offset>
<length>24</length>
</annotation>
<annotation>
<mention>SC Freiburg</mention>
<wikiName>SC Freiburg</wikiName>
<offset>1253</offset>
<length>11</length>
</annotation>
</document>
<document docName="239102newsML.txt">
<annotation>
<mention>FRENCH</mention>
<wikiName>France</wikiName>
<offset>7</offset>
<length>6</length>
</annotation>
<annotation>
<mention>PARIS</mention>
<wikiName>Paris</wikiName>
<offset>33</offset>
<length>5</length>
</annotation>
<annotation>
<mention>French</mention>
<wikiName>France</wikiName>
<offset>64</offset>
<length>6</length>
</annotation>
<annotation>
<mention>Lens</mention>
<wikiName>RC Lens</wikiName>
<offset>107</offset>
<length>4</length>
</annotation>
<annotation>
<mention>Nantes</mention>
<wikiName>FC Nantes</wikiName>
<offset>114</offset>
<length>6</length>
</annotation>
<annotation>
<mention>Japhet N'Doram</mention>
<wikiName></wikiName>
<offset>124</offset>
<length>14</length>
</annotation>
<annotation>
<mention>Claude Makelele</mention>
<wikiName>Claude Makélélé</wikiName>
<offset>142</offset>
<length>15</length>
</annotation>
<annotation>
<mention>Jocelyn
Gourvennec</mention>
<wikiName>Jocelyn Gourvennec</wikiName>
<offset>162</offset>
<length>19</length>
</annotation>
<annotation>
<mention>Christophe Pignol</mention>
<wikiName></wikiName>
<offset>186</offset>
<length>17</length>
</annotation>
<annotation>
<mention>Paris St Germain</mention>
<wikiName>Paris Saint-Germain F.C.</wikiName>
<offset>245</offset>
<length>16</length>
</annotation>
<annotation>
<mention>Bruno N'Gotty</mention>
<wikiName></wikiName>
<offset>265</offset>
<length>13</length>
</annotation>
<annotation>
<mention>Nancy</mention>
<wikiName>AS Nancy</wikiName>
<offset>282</offset>
<length>5</length>
</annotation>
<annotation>
<mention>Paul Fischer</mention>
<wikiName></wikiName>
<offset>291</offset>
<length>12</length>
</annotation>
<annotation>
<mention>Phil Gray</mention>
<wikiName>Phil Gray</wikiName>
<offset>309</offset>
<length>9</length>
</annotation>
</document>
<document docName="239104newsML.txt">
<annotation>
<mention>DUTCH</mention>
<wikiName>Netherlands</wikiName>
<offset>7</offset>
<length>5</length>
</annotation>
<annotation>
<mention>AMSTERDAM</mention>
<wikiName>Amsterdam</wikiName>
<offset>40</offset>
<length>9</length>
</annotation>
<annotation>
<mention>Dutch</mention>
<wikiName>Netherlands</wikiName>
<offset>73</offset>
<length>5</length>
</annotation>
<annotation>
<mention>RKC Waalwijk</mention>
<wikiName>RKC Waalwijk</wikiName>
<offset>127</offset>
<length>12</length>
</annotation>
<annotation>
<mention>Willem II Tilburg</mention>
<wikiName>Willem II (football club)</wikiName>
<offset>156</offset>
<length>17</length>
</annotation>
<annotation>
<mention>Konterman</mention>
<wikiName>Bert Konterman</wikiName>
<offset>177</offset>
<length>9</length>
</annotation>
<annotation>
<mention>Van der Vegt</mention>
<wikiName></wikiName>
<offset>192</offset>
<length>12</length>
</annotation>
</document>
<document docName="239105newsML.txt">
<annotation>
<mention>FRENCH</mention>
<wikiName>France</wikiName>
<offset>7</offset>
<length>6</length>
</annotation>
<annotation>
<mention>PARIS</mention>
<wikiName>Paris</wikiName>
<offset>33</offset>
<length>5</length>
</annotation>
<annotation>
<mention>French</mention>
<wikiName>France</wikiName>
<offset>68</offset>
<length>6</length>
</annotation>
<annotation>
<mention>Paris Saint-Germain</mention>
<wikiName>Paris Saint-Germain F.C.</wikiName>
<offset>188</offset>
<length>19</length>
</annotation>
<annotation>
<mention>Monaco</mention>
<wikiName>AS Monaco FC</wikiName>
<offset>238</offset>
<length>6</length>
</annotation>
<annotation>
<mention>Bordeaux</mention>
<wikiName>FC Girondins de Bordeaux</wikiName>
<offset>278</offset>
<length>8</length>
</annotation>
<annotation>
<mention>Strasbourg</mention>
<wikiName>RC Strasbourg</wikiName>
<offset>318</offset>
<length>10</length>
</annotation>
<annotation>
<mention>Bastia</mention>
<wikiName>SC Bastia</wikiName>
<offset>358</offset>
<length>6</length>
</annotation>
<annotation>
<mention>Auxerre</mention>
<wikiName>AJ Auxerre</wikiName>
<offset>398</offset>
<length>7</length>
</annotation>
<annotation>
<mention>Metz</mention>
<wikiName>FC Metz</wikiName>
<offset>438</offset>
<length>4</length>
</annotation>
<annotation>
<mention>Nantes</mention>
<wikiName>FC Nantes</wikiName>
<offset>473</offset>
<length>6</length>
</annotation>
<annotation>
<mention>Guingamp</mention>
<wikiName>En Avant de Guingamp</wikiName>
<offset>513</offset>
<length>8</length>
</annotation>
<annotation>
<mention>Lille</mention>
<wikiName>Lille OSC</wikiName>
<offset>553</offset>
<length>5</length>
</annotation>
<annotation>
<mention>Marseille</mention>
<wikiName>Olympique de Marseille</wikiName>
<offset>588</offset>
<length>9</length>
</annotation>
<annotation>
<mention>Lyon</mention>
<wikiName>Olympique Lyonnais</wikiName>
<offset>628</offset>
<length>4</length>
</annotation>
<annotation>
<mention>Rennes</mention>
<wikiName>Stade Rennais F.C.</wikiName>
<offset>663</offset>
<length>6</length>
</annotation>
<annotation>
<mention>Lens</mention>
<wikiName>RC Lens</wikiName>
<offset>703</offset>
<length>4</length>
</annotation>
<annotation>
<mention>Le Havre</mention>
<wikiName>Le Havre AC</wikiName>
<offset>738</offset>
<length>8</length>
</annotation>
<annotation>
<mention>Cannes</mention>
<wikiName>AS Cannes</wikiName>
<offset>778</offset>
<length>6</length>
</annotation>
<annotation>
<mention>Montpellier</mention>
<wikiName>Montpellier HSC</wikiName>
<offset>818</offset>
<length>11</length>
</annotation>
<annotation>
<mention>Caen</mention>
<wikiName>Stade Malherbe Caen</wikiName>
<offset>858</offset>
<length>4</length>
</annotation>
<annotation>
<mention>Nancy</mention>
<wikiName>AS Nancy</wikiName>
<offset>893</offset>
<length>5</length>
</annotation>
<annotation>
<mention>Nice</mention>
<wikiName>OGC Nice</wikiName>
<offset>928</offset>
<length>4</length>
</annotation>
</document>
<document docName="239106newsML.txt">
<annotation>
<mention>FRENCH</mention>
<wikiName>France</wikiName>
<offset>7</offset>
<length>6</length>
</annotation>
<annotation>
<mention>PARIS</mention>
<wikiName>Paris</wikiName>
<offset>31</offset>
<length>5</length>
</annotation>
<annotation>
<mention>French</mention>
<wikiName>France</wikiName>
<offset>60</offset>
<length>6</length>
</annotation>
<annotation>
<mention>Lens</mention>
<wikiName>RC Lens</wikiName>
<offset>104</offset>
<length>4</length>
</annotation>
<annotation>
<mention>Nantes</mention>
<wikiName>FC Nantes</wikiName>
<offset>117</offset>
<length>6</length>
</annotation>
<annotation>
<mention>Paris St Germain</mention>
<wikiName>Paris Saint-Germain F.C.</wikiName>
<offset>130</offset>
<length>16</length>
</annotation>
<annotation>
<mention>Nancy</mention>
<wikiName>AS Nancy</wikiName>
<offset>153</offset>
<length>5</length>
</annotation>
</document>
<document docName="239107newsML.txt">
<annotation>
<mention>GERMAN</mention>
<wikiName>Germany</wikiName>
<offset>7</offset>
<length>6</length>
</annotation>
<annotation>
<mention>BONN</mention>
<wikiName>Bonn</wikiName>
<offset>41</offset>
<length>4</length>
</annotation>
<annotation>
<mention>German</mention>
<wikiName>Germany</wikiName>
<offset>93</offset>
<length>6</length>
</annotation>
<annotation>
<mention>Bochum</mention>
<wikiName>VfL Bochum</wikiName>
<offset>127</offset>
<length>6</length>
</annotation>
<annotation>
<mention>Stickroth</mention>
<wikiName>Thomas Stickroth</wikiName>
<offset>137</offset>
<length>9</length>
</annotation>
<annotation>
<mention>Wosz</mention>
<wikiName>Dariusz Wosz</wikiName>
<offset>157</offset>
<length>4</length>
</annotation>
<annotation>
<mention>Bayer Leverkusen</mention>
<wikiName>Bayer 04 Leverkusen</wikiName>
<offset>168</offset>
<length>16</length>
</annotation>
<annotation>
<mention>Kirsten</mention>
<wikiName>Ulf Kirsten</wikiName>
<offset>188</offset>
<length>7</length>
</annotation>
<annotation>
<mention>Ramelow</mention>
<wikiName>Carsten Ramelow</wikiName>
<offset>202</offset>
<length>7</length>
</annotation>
<annotation>
<mention>Werder Bremen</mention>
<wikiName>SV Werder Bremen</wikiName>
<offset>251</offset>
<length>13</length>
</annotation>
<annotation>
<mention>Bode</mention>
<wikiName>Marco Bode</wikiName>
<offset>268</offset>
<length>4</length>
</annotation>
<annotation>
<mention>1860 Munich</mention>
<wikiName>TSV 1860 München</wikiName>
<offset>279</offset>
<length>11</length>
</annotation>
<annotation>
<mention>Bormirow</mention>
<wikiName></wikiName>
<offset>294</offset>
<length>8</length>
</annotation>
<annotation>
<mention>Karlsruhe</mention>
<wikiName>Karlsruher SC</wikiName>
<offset>342</offset>
<length>9</length>
</annotation>
<annotation>
<mention>Reich</mention>
<wikiName>Burkhard Reich</wikiName>
<offset>355</offset>
<length>5</length>
</annotation>
<annotation>
<mention>Carl</mention>
<wikiName>Eberhard Carl</wikiName>
<offset>367</offset>
<length>4</length>
</annotation>
<annotation>
<mention>Dundee</mention>
<wikiName>Sean Dundee</wikiName>
<offset>378</offset>
<length>6</length>
</annotation>
<annotation>
<mention>Freiburg</mention>
<wikiName>SC Freiburg</wikiName>
<offset>391</offset>
<length>8</length>
</annotation>
<annotation>
<mention>Schalke</mention>
<wikiName>FC Schalke 04</wikiName>
<offset>436</offset>
<length>7</length>
</annotation>
<annotation>
<mention>Mulder</mention>
<wikiName>Youri Mulder</wikiName>
<offset>447</offset>
<length>6</length>
</annotation>
<annotation>
<mention>Hansa Rostock</mention>
<wikiName>F.C. Hansa Rostock</wikiName>
<offset>468</offset>
<length>13</length>
</annotation>
</document>
<document docName="239112newsML.txt">
<annotation>
<mention>GRAND SLAM CUP</mention>
<wikiName>Grand Slam Cup</wikiName>
<offset>7</offset>
<length>14</length>
</annotation>
<annotation>
<mention>MUNICH</mention>
<wikiName>Munich</wikiName>
<offset>46</offset>
<length>6</length>
</annotation>
<annotation>
<mention>Germany</mention>
<wikiName>Germany</wikiName>
<offset>54</offset>
<length>7</length>
</annotation>
<annotation>
<mention>Grand Slam Cup</mention>
<wikiName>Grand Slam Cup</wikiName>
<offset>114</offset>
<length>14</length>
</annotation>
<annotation>
<mention>Goran Ivanisevic</mention>
<wikiName>Goran Ivanišević</wikiName>
<offset>158</offset>
<length>16</length>
</annotation>
<annotation>
<mention>Croatia</mention>
<wikiName>Croatia</wikiName>
<offset>176</offset>
<length>7</length>
</annotation>
<annotation>
<mention>Mark Woodforde</mention>
<wikiName>Mark Woodforde</wikiName>
<offset>190</offset>
<length>14</length>
</annotation>
<annotation>
<mention>Australia</mention>
<wikiName>Australia</wikiName>
<offset>206</offset>
<length>9</length>
</annotation>
<annotation>
<mention>Yevgeny Kafelnikov</mention>
<wikiName>Yevgeny Kafelnikov</wikiName>
<offset>229</offset>
<length>18</length>
</annotation>
<annotation>
<mention>Russia</mention>
<wikiName>Russia</wikiName>
<offset>249</offset>
<length>6</length>
</annotation>
<annotation>
<mention>Jim Courier</mention>
<wikiName>Jim Courier</wikiName>
<offset>262</offset>
<length>11</length>
</annotation>
<annotation>
<mention>U.S.</mention>
<wikiName>United States</wikiName>
<offset>275</offset>
<length>4</length>
</annotation>
</document>
<document docName="239113newsML.txt">
<annotation>
<mention>WEAH</mention>
<wikiName>George Weah</wikiName>
<offset>7</offset>
<length>4</length>
</annotation>
<annotation>
<mention>PORTUGAL</mention>
<wikiName>Portugal national football team</wikiName>
<offset>31</offset>
<length>8</length>
</annotation>
<annotation>
<mention>COSTA</mention>
<wikiName></wikiName>
<offset>43</offset>
<length>5</length>
</annotation>
<annotation>
<mention>LISBON</mention>
<wikiName>Lisbon</wikiName>
<offset>51</offset>
<length>6</length>
</annotation>
<annotation>
<mention>Portugal</mention>
<wikiName>Portugal national football team</wikiName>
<offset>70</offset>
<length>8</length>
</annotation>
<annotation>
<mention>Porto</mention>
<wikiName>F.C. Porto</wikiName>
<offset>89</offset>
<length>5</length>
</annotation>
<annotation>
<mention>Joao Manuel Pinto</mention>
<wikiName></wikiName>
<offset>112</offset>
<length>17</length>
</annotation>
<annotation>
<mention>Germany</mention>
<wikiName>Germany national football team</wikiName>
<offset>148</offset>
<length>7</length>
</annotation>
<annotation>
<mention>World Cup</mention>
<wikiName>FIFA World Cup</wikiName>
<offset>161</offset>
<length>9</length>
</annotation>
<annotation>
<mention>Jorge Costa</mention>
<wikiName>Jorge Costa</wikiName>
<offset>216</offset>
<length>11</length>
</annotation>
<annotation>
<mention>Liberian</mention>
<wikiName>Liberia national football team</wikiName>
<offset>291</offset>
<length>8</length>
</annotation>
<annotation>
<mention>Georg Weah</mention>
<wikiName></wikiName>
<offset>308</offset>
<length>10</length>
</annotation>
<annotation>
<mention>Costa</mention>
<wikiName>Jorge Costa</wikiName>
<offset>321</offset>
<length>5</length>
</annotation>
<annotation>
<mention>AC Milan</mention>
<wikiName>A.C. Milan</wikiName>
<offset>368</offset>
<length>8</length>
</annotation>
<annotation>
<mention>European Champions' League</mention>
<wikiName></wikiName>
<offset>406</offset>
<length>26</length>
</annotation>
<annotation>
<mention>Portugal</mention>
<wikiName>Portugal national football team</wikiName>
<offset>455</offset>
<length>8</length>
</annotation>
<annotation>
<mention>European</mention>
<wikiName>Europe</wikiName>
<offset>469</offset>
<length>8</length>
</annotation>
<annotation>
<mention>Ukraine</mention>
<wikiName>Ukraine national football team</wikiName>
<offset>549</offset>
<length>7</length>
</annotation>
<annotation>
<mention>Germany</mention>
<wikiName>Germany national football team</wikiName>
<offset>577</offset>
<length>7</length>
</annotation>
<annotation>
<mention>Portuguese</mention>
<wikiName>Portugal</wikiName>
<offset>618</offset>
<length>10</length>
</annotation>
<annotation>
<mention>Germany</mention>
<wikiName>Germany national football team</wikiName>
<offset>634</offset>
<length>7</length>
</annotation>
<annotation>
<mention>Vitor Baia</mention>
<wikiName>Vítor Baía</wikiName>
<offset>682</offset>
<length>10</length>
</annotation>
<annotation>
<mention>Barcelona</mention>
<wikiName>FC Barcelona</wikiName>
<offset>694</offset>
<length>9</length>
</annotation>
<annotation>
<mention>Spain</mention>
<wikiName>Spain</wikiName>
<offset>705</offset>
<length>5</length>
</annotation>
<annotation>
<mention>Rui Correia</mention>
<wikiName>Rui Correia</wikiName>
<offset>714</offset>
<length>11</length>
</annotation>
<annotation>
<mention>Braga</mention>
<wikiName>S.C. Braga</wikiName>
<offset>727</offset>
<length>5</length>
</annotation>
<annotation>
<mention>Paulinho Santos</mention>
<wikiName>Paulinho Santos</wikiName>
<offset>748</offset>
<length>15</length>
</annotation>
<annotation>
<mention>Porto</mention>
<wikiName>F.C. Porto</wikiName>
<offset>765</offset>
<length>5</length>
</annotation>
<annotation>
<mention>Sergio Conceicao</mention>
<wikiName>Sérgio Conceição</wikiName>
<offset>773</offset>
<length>16</length>
</annotation>
<annotation>
<mention>Porto</mention>
<wikiName>F.C. Porto</wikiName>
<offset>791</offset>
<length>5</length>
</annotation>
<annotation>
<mention>Joao Manuel Pinto</mention>
<wikiName></wikiName>
<offset>799</offset>
<length>17</length>
</annotation>
<annotation>
<mention>Porto</mention>
<wikiName>F.C. Porto</wikiName>
<offset>818</offset>
<length>5</length>
</annotation>
<annotation>
<mention>Oceano Cruz</mention>
<wikiName>Oceano da Cruz</wikiName>
<offset>826</offset>
<length>11</length>
</annotation>
<annotation>
<mention>Sporting</mention>
<wikiName>Sporting Clube de Portugal</wikiName>
<offset>839</offset>
<length>8</length>
</annotation>
<annotation>
<mention>Fernando Couto</mention>
<wikiName>Fernando Couto</wikiName>
<offset>850</offset>
<length>14</length>
</annotation>
<annotation>
<mention>Barcelona</mention>
<wikiName>FC Barcelona</wikiName>
<offset>866</offset>
<length>9</length>
</annotation>
<annotation>
<mention>Helder Cristovao</mention>
<wikiName>Hélder Cristóvão</wikiName>
<offset>878</offset>
<length>16</length>
</annotation>
<annotation>
<mention>Deportivo Coruna</mention>
<wikiName></wikiName>
<offset>896</offset>
<length>16</length>
</annotation>
<annotation>
<mention>Spain</mention>
<wikiName>Spain</wikiName>
<offset>914</offset>
<length>5</length>
</annotation>
<annotation>
<mention>Dimas Teixeira</mention>
<wikiName>Dimas Teixeira</wikiName>
<offset>922</offset>
<length>14</length>
</annotation>
<annotation>
<mention>Juventus</mention>
<wikiName>Juventus F.C.</wikiName>
<offset>938</offset>
<length>8</length>
</annotation>
<annotation>
<mention>Italy</mention>
<wikiName>Italy</wikiName>
<offset>948</offset>
<length>5</length>
</annotation>
<annotation>
<mention>Carlos Secretario</mention>
<wikiName>Carlos Secretário</wikiName>
<offset>956</offset>
<length>17</length>
</annotation>
<annotation>
<mention>Real Madrid</mention>
<wikiName>Real Madrid C.F.</wikiName>
<offset>975</offset>
<length>11</length>
</annotation>
<annotation>
<mention>Spain</mention>
<wikiName>Spain</wikiName>
<offset>988</offset>
<length>5</length>
</annotation>
<annotation>
<mention>Rui Barros</mention>
<wikiName>Rui Barros</wikiName>
<offset>1011</offset>
<length>10</length>
</annotation>
<annotation>
<mention>Porto</mention>
<wikiName>F.C. Porto</wikiName>
<offset>1023</offset>
<length>5</length>
</annotation>
<annotation>
<mention>Jose Barroso</mention>
<wikiName></wikiName>
<offset>1031</offset>
<length>12</length>
</annotation>
<annotation>
<mention>Porto</mention>
<wikiName>F.C. Porto</wikiName>
<offset>1045</offset>
<length>5</length>
</annotation>
<annotation>
<mention>Luis Figo</mention>
<wikiName>Luís Figo</wikiName>
<offset>1053</offset>
<length>9</length>
</annotation>
<annotation>
<mention>Barcelona</mention>
<wikiName>FC Barcelona</wikiName>
<offset>1064</offset>
<length>9</length>
</annotation>
<annotation>
<mention>Paulo Bento</mention>
<wikiName>Paulo Bento</wikiName>
<offset>1076</offset>
<length>11</length>
</annotation>
<annotation>
<mention>Oviedo</mention>
<wikiName>Real Oviedo</wikiName>
<offset>1089</offset>
<length>6</length>
</annotation>
<annotation>
<mention>Spain</mention>
<wikiName>Spain</wikiName>
<offset>1097</offset>
<length>5</length>
</annotation>
<annotation>
<mention>Jose Taira</mention>
<wikiName>José Taira</wikiName>
<offset>1105</offset>
<length>10</length>
</annotation>
<annotation>
<mention>Salamanca</mention>
<wikiName>UD Salamanca</wikiName>
<offset>1117</offset>
<length>9</length>
</annotation>
<annotation>
<mention>Spain</mention>
<wikiName>Spain</wikiName>
<offset>1128</offset>
<length>5</length>
</annotation>
<annotation>
<mention>Antonio Folha</mention>
<wikiName>António Folha</wikiName>
<offset>1148</offset>
<length>13</length>
</annotation>
<annotation>
<mention>Porto</mention>
<wikiName>F.C. Porto</wikiName>
<offset>1163</offset>
<length>5</length>
</annotation>
<annotation>
<mention>Joao Vieira Pinto</mention>
<wikiName>João Vieira Pinto</wikiName>
<offset>1171</offset>
<length>17</length>
</annotation>
<annotation>
<mention>Benfica</mention>
<wikiName></wikiName>
<offset>1190</offset>
<length>7</length>
</annotation>
<annotation>
<mention>Paulo Alves</mention>
<wikiName>Paulo Alves</wikiName>
<offset>1200</offset>
<length>11</length>
</annotation>
<annotation>
<mention>Sporting</mention>
<wikiName>Sporting Clube de Portugal</wikiName>
<offset>1213</offset>
<length>8</length>
</annotation>
<annotation>
<mention>Rui Costa</mention>
<wikiName>Rui Costa</wikiName>
<offset>1224</offset>
<length>9</length>
</annotation>
<annotation>
<mention>Fiorentina</mention>
<wikiName>ACF Fiorentina</wikiName>
<offset>1235</offset>
<length>10</length>
</annotation>
<annotation>
<mention>Italy</mention>
<wikiName>Italy</wikiName>
<offset>1247</offset>
<length>5</length>
</annotation>
<annotation>
<mention>Jorge Cadete</mention>
<wikiName>Jorge Cadete</wikiName>
<offset>1255</offset>
<length>12</length>
</annotation>
<annotation>
<mention>Celtic Glasgow</mention>
<wikiName>Celtic F.C.</wikiName>
<offset>1269</offset>
<length>14</length>
</annotation>
<annotation>
<mention>Scotland</mention>
<wikiName>Scotland</wikiName>
<offset>1285</offset>
<length>8</length>
</annotation>
</document>
<document docName="239114newsML.txt">
<annotation>
<mention>REAL MADRID</mention>
<wikiName>Real Madrid C.F.</wikiName>
<offset>27</offset>
<length>11</length>
</annotation>
<annotation>
<mention>BARCELONA</mention>
<wikiName>FC Barcelona</wikiName>
<offset>41</offset>
<length>9</length>
</annotation>
<annotation>
<mention>MADRID</mention>
<wikiName>Madrid</wikiName>
<offset>53</offset>
<length>6</length>
</annotation>
<annotation>
<mention>William Hill</mention>
<wikiName>William Hill (bookmaker)</wikiName>
<offset>72</offset>
<length>12</length>
</annotation>
<annotation>
<mention>Spanish</mention>
<wikiName>Spain</wikiName>
<offset>108</offset>
<length>7</length>
</annotation>
<annotation>
<mention>Real Madrid</mention>
<wikiName>Real Madrid C.F.</wikiName>
<offset>145</offset>
<length>11</length>
</annotation>
<annotation>
<mention>Barcelona</mention>
<wikiName>FC Barcelona</wikiName>
<offset>161</offset>
<length>9</length>
</annotation>
<annotation>
<mention>Real Madrid</mention>
<wikiName>Real Madrid C.F.</wikiName>
<offset>185</offset>
<length>11</length>
</annotation>
<annotation>
<mention>Barcelona</mention>
<wikiName>FC Barcelona</wikiName>
<offset>202</offset>
<length>9</length>
</annotation>
<annotation>
<mention>Real Madrid</mention>
<wikiName>Real Madrid C.F.</wikiName>
<offset>244</offset>
<length>11</length>
</annotation>
<annotation>
<mention>Barcelona</mention>
<wikiName>FC Barcelona</wikiName>
<offset>270</offset>
<length>9</length>
</annotation>
<annotation>
<mention>Real Madrid</mention>
<wikiName>Real Madrid C.F.</wikiName>
<offset>757</offset>
<length>11</length>
</annotation>
<annotation>
<mention>Real Madrid</mention>
<wikiName>Real Madrid C.F.</wikiName>
<offset>773</offset>
<length>11</length>
</annotation>
<annotation>
<mention>Real Madrid</mention>
<wikiName>Real Madrid C.F.</wikiName>
<offset>797</offset>
<length>11</length>
</annotation>
<annotation>
<mention>Real Madrid</mention>
<wikiName>Real Madrid C.F.</wikiName>
<offset>830</offset>
<length>11</length>
</annotation>
<annotation>
<mention>Barcelona</mention>
<wikiName>FC Barcelona</wikiName>
<offset>846</offset>
<length>9</length>
</annotation>
<annotation>
<mention>Real Madrid</mention>
<wikiName>Real Madrid C.F.</wikiName>
<offset>879</offset>
<length>11</length>
</annotation>
<annotation>
<mention>Barcelona</mention>
<wikiName>FC Barcelona</wikiName>
<offset>942</offset>
<length>9</length>
</annotation>
<annotation>
<mention>Barcelona</mention>
<wikiName>FC Barcelona</wikiName>
<offset>964</offset>
<length>9</length>
</annotation>
<annotation>
<mention>Real Madrid</mention>
<wikiName>Real Madrid C.F.</wikiName>
<offset>975</offset>
<length>11</length>
</annotation>
<annotation>
<mention>Barcelona</mention>
<wikiName>FC Barcelona</wikiName>
<offset>999</offset>
<length>9</length>
</annotation>
<annotation>
<mention>Barcelona</mention>
<wikiName>FC Barcelona</wikiName>
<offset>1027</offset>
<length>9</length>
</annotation>
<annotation>
<mention>Barcelona</mention>
<wikiName>FC Barcelona</wikiName>
<offset>1038</offset>
<length>9</length>
</annotation>
<annotation>
<mention>Real Madrid</mention>
<wikiName>Real Madrid C.F.</wikiName>
<offset>1081</offset>
<length>11</length>
</annotation>
<annotation>
<mention>Barcelona</mention>
<wikiName>FC Barcelona</wikiName>
<offset>1098</offset>
<length>9</length>
</annotation>
<annotation>
<mention>Davor Suker</mention>
<wikiName>Davor Šuker</wikiName>
<offset>1118</offset>
<length>11</length>
</annotation>
<annotation>
<mention>Ronaldo</mention>
<wikiName>Ronaldo</wikiName>
<offset>1140</offset>
<length>7</length>
</annotation>
<annotation>
<mention>Pedrag Mijatovic</mention>
<wikiName></wikiName>
<offset>1158</offset>
<length>16</length>
</annotation>
<annotation>
<mention>Luis Figo</mention>
<wikiName>Luís Figo</wikiName>
<offset>1185</offset>
<length>9</length>
</annotation>
<annotation>
<mention>Raul Gonzalez</mention>
<wikiName>Raúl (footballer)</wikiName>
<offset>1205</offset>
<length>13</length>
</annotation>
<annotation>
<mention>Juan Pizzi</mention>
<wikiName>Juan Antonio Pizzi</wikiName>
<offset>1227</offset>
<length>10</length>
</annotation>
<annotation>
<mention>Fernando Redondo</mention>
<wikiName>Fernando Redondo</wikiName>
<offset>1248</offset>
<length>16</length>
</annotation>
<annotation>
<mention>Giovanni</mention>
<wikiName></wikiName>
<offset>1276</offset>
<length>8</length>
</annotation>
<annotation>
<mention>Victor Sanchez</mention>
<wikiName>Víctor Sánchez</wikiName>
<offset>1295</offset>
<length>14</length>
</annotation>
<annotation>
<mention>Guillermo
Amor</mention>
<wikiName>Guillermo Amor</wikiName>
<offset>1322</offset>
<length>15</length>
</annotation>
<annotation>
<mention>Jose Amavisca</mention>
<wikiName>José Emilio Amavisca</wikiName>
<offset>1348</offset>
<length>13</length>
</annotation>
<annotation>
<mention>Roger Garcia</mention>
<wikiName>Roger García Junyent</wikiName>
<offset>1370</offset>
<length>12</length>
</annotation>
<annotation>
<mention>Manolo Sanchis</mention>
<wikiName></wikiName>
<offset>1393</offset>
<length>14</length>
</annotation>
<annotation>
<mention>Gheorghe
Popescu</mention>
<wikiName>Gheorghe Popescu</wikiName>
<offset>1420</offset>
<length>17</length>
</annotation>
<annotation>
<mention>Roberto Carlos</mention>
<wikiName>Roberto Carlos (footballer)</wikiName>
<offset>1448</offset>
<length>14</length>
</annotation>
<annotation>
<mention>JosepGuardiola</mention>
<wikiName></wikiName>
<offset>1476</offset>
<length>14</length>
</annotation>
<annotation>
<mention>Fernando Hierro</mention>
<wikiName>Fernando Hierro</wikiName>
<offset>1501</offset>
<length>15</length>
</annotation>
<annotation>
<mention>Ivan de
laPena</mention>
<wikiName></wikiName>
<offset>1528</offset>
<length>15</length>
</annotation>
<annotation>
<mention>Luis Milla</mention>
<wikiName>Luis Milla</wikiName>
<offset>1554</offset>
<length>10</length>
</annotation>
<annotation>
<mention>Luis
Enrique</mention>
<wikiName>Luis Enrique Martínez García</wikiName>
<offset>1576</offset>
<length>13</length>
</annotation>
<annotation>
<mention>Fernando Sanz</mention>
<wikiName>Fernando Sanz</wikiName>
<offset>1600</offset>
<length>13</length>
</annotation>
<annotation>
<mention>AbelardoFernandez</mention>
<wikiName></wikiName>
<offset>1623</offset>
<length>17</length>
</annotation>
<annotation>
<mention>Carlos Secretario</mention>
<wikiName>Carlos Secretário</wikiName>
<offset>1651</offset>
<length>17</length>
</annotation>
<annotation>
<mention>Sergi Barjuan</mention>
<wikiName>Sergi Barjuán</wikiName>
<offset>1678</offset>
<length>13</length>
</annotation>
<annotation>
<mention>Rafael Alkorta</mention>
<wikiName>Rafael Alkorta</wikiName>
<offset>1702</offset>
<length>14</length>
</annotation>
<annotation>
<mention>Albert
Ferrer</mention>
<wikiName>Albert Ferrer</wikiName>
<offset>1725</offset>
<length>14</length>
</annotation>
<annotation>
<mention>Chendo Porlan</mention>
<wikiName></wikiName>
<offset>1750</offset>
<length>13</length>
</annotation>
<annotation>
<mention>Miguel Nadal</mention>
<wikiName>Miguel Ángel Nadal</wikiName>
<offset>1772</offset>
<length>12</length>
</annotation>
<annotation>
<mention>Laurent Blanc</mention>
<wikiName>Laurent Blanc</wikiName>
<offset>1804</offset>
<length>13</length>
</annotation>
</document>
<document docName="239118newsML.txt">
<annotation>
<mention>MADRID</mention>
<wikiName>Madrid</wikiName>
<offset>59</offset>
<length>6</length>
</annotation>
<annotation>
<mention>Spanish</mention>
<wikiName>Spain</wikiName>
<offset>78</offset>
<length>7</length>
</annotation>
<annotation>
<mention>Santiago Bernabeu stadium</mention>
<wikiName>Santiago Bernabéu Stadium</wikiName>
<offset>135</offset>
<length>25</length>
</annotation>
<annotation>
<mention>Real Madrid-Barcelona</mention>
<wikiName></wikiName>
<offset>206</offset>
<length>21</length>
</annotation>
<annotation>
<mention>Madrid</mention>
<wikiName>Madrid</wikiName>
<offset>238</offset>
<length>6</length>
</annotation>
<annotation>
<mention>El Mundo</mention>
<wikiName>El Mundo (Spain)</wikiName>
<offset>251</offset>
<length>8</length>
</annotation>
<annotation>
<mention>Spanish</mention>
<wikiName>Spain</wikiName>
<offset>359</offset>
<length>7</length>
</annotation>
</document>
<document docName="239120newsML.txt">
<annotation>
<mention>SPANISH</mention>
<wikiName>Spain</wikiName>
<offset>7</offset>
<length>7</length>
</annotation>
<annotation>
<mention>MADRID</mention>
<wikiName>Madrid</wikiName>
<offset>42</offset>
<length>6</length>
</annotation>
<annotation>
<mention>Spanish</mention>
<wikiName>Spain</wikiName>
<offset>78</offset>
<length>7</length>
</annotation>
<annotation>
<mention>Real Madrid</mention>
<wikiName>Real Madrid C.F.</wikiName>
<offset>214</offset>
<length>11</length>
</annotation>
<annotation>
<mention>Barcelona</mention>
<wikiName>FC Barcelona</wikiName>
<offset>263</offset>
<length>9</length>
</annotation>
<annotation>
<mention>Deportivo Coruna</mention>
<wikiName></wikiName>
<offset>312</offset>
<length>16</length>
</annotation>
<annotation>
<mention>Real Betis</mention>
<wikiName>Real Betis</wikiName>
<offset>366</offset>
<length>10</length>
</annotation>
<annotation>
<mention>Atletico Madrid</mention>
<wikiName>Atlético Madrid</wikiName>
<offset>415</offset>
<length>15</length>
</annotation>
<annotation>
<mention>Athletic Bilbao</mention>
<wikiName>Athletic Bilbao</wikiName>
<offset>469</offset>
<length>15</length>
</annotation>
<annotation>
<mention>Real Sociedad</mention>
<wikiName>Real Sociedad</wikiName>
<offset>523</offset>
<length>13</length>
</annotation>
<annotation>
<mention>Valladolid</mention>
<wikiName>Real Valladolid</wikiName>
<offset>572</offset>
<length>10</length>
</annotation>
<annotation>
<mention>Racing Santander</mention>
<wikiName>Racing de Santander</wikiName>
<offset>621</offset>
<length>16</length>
</annotation>
<annotation>
<mention>Rayo Vallecano</mention>
<wikiName>Rayo Vallecano</wikiName>
<offset>675</offset>
<length>14</length>
</annotation>
<annotation>
<mention>Valencia</mention>
<wikiName>Valencia CF</wikiName>
<offset>724</offset>
<length>8</length>
</annotation>
<annotation>
<mention>Celta Vigo</mention>
<wikiName>Celta de Vigo</wikiName>
<offset>768</offset>
<length>10</length>
</annotation>
<annotation>
<mention>Tenerife</mention>
<wikiName>CD Tenerife</wikiName>
<offset>817</offset>
<length>8</length>
</annotation>
<annotation>
<mention>Espanyol</mention>
<wikiName>RCD Espanyol</wikiName>
<offset>861</offset>
<length>8</length>
</annotation>
<annotation>
<mention>Oviedo</mention>
<wikiName>Real Oviedo</wikiName>
<offset>905</offset>
<length>6</length>
</annotation>
<annotation>
<mention>Sporting</mention>
<wikiName>Sporting de Gijón</wikiName>
<offset>949</offset>
<length>8</length>
</annotation>
<annotation>
<mention>Logrones</mention>
<wikiName></wikiName>
<offset>998</offset>
<length>8</length>
</annotation>
<annotation>
<mention>Zaragoza</mention>
<wikiName>Real Zaragoza</wikiName>
<offset>1042</offset>
<length>8</length>
</annotation>
<annotation>
<mention>Sevilla</mention>
<wikiName>Sevilla FC</wikiName>
<offset>1086</offset>
<length>7</length>
</annotation>
<annotation>
<mention>Compostela</mention>
<wikiName>SD Compostela</wikiName>
<offset>1130</offset>
<length>10</length>
</annotation>
<annotation>
<mention>Hercules</mention>
<wikiName>Hércules CF</wikiName>
<offset>1179</offset>
<length>8</length>
</annotation>
<annotation>
<mention>Extremadura</mention>
<wikiName>CF Extremadura</wikiName>
<offset>1223</offset>
<length>11</length>
</annotation>
</document>
<document docName="239122newsML.txt">
<annotation>
<mention>SPAIN</mention>
<wikiName>Spain</wikiName>
<offset>7</offset>
<length>5</length>
</annotation>
<annotation>
<mention>ARMANDO</mention>
<wikiName></wikiName>
<offset>27</offset>
<length>7</length>
</annotation>
<annotation>
<mention>WORLD CUP</mention>
<wikiName>1998 FIFA World Cup</wikiName>
<offset>39</offset>
<length>9</length>
</annotation>
<annotation>
<mention>MADRID</mention>
<wikiName>Madrid</wikiName>
<offset>57</offset>
<length>6</length>
</annotation>
<annotation>
<mention>Spain</mention>
<wikiName>Spain</wikiName>
<offset>76</offset>
<length>5</length>
</annotation>
<annotation>
<mention>Javier Clemente</mention>
<wikiName>Javier Clemente</wikiName>
<offset>88</offset>
<length>15</length>
</annotation>
<annotation>
<mention>Deportivo Coruna</mention>
<wikiName></wikiName>
<offset>123</offset>
<length>16</length>
</annotation>
<annotation>
<mention>Armando Alvarez</mention>
<wikiName></wikiName>
<offset>151</offset>
<length>15</length>
</annotation>
<annotation>
<mention>World Cup</mention>
<wikiName>FIFA World Cup</wikiName>
<offset>188</offset>
<length>9</length>
</annotation>
<annotation>
<mention>Yugoslavia</mention>
<wikiName></wikiName>
<offset>216</offset>
<length>10</length>
</annotation>
<annotation>
<mention>Armando</mention>
<wikiName></wikiName>
<offset>297</offset>
<length>7</length>
</annotation>
<annotation>
<mention>Atletico Madrid</mention>
<wikiName>Atlético Madrid</wikiName>
<offset>326</offset>
<length>15</length>
</annotation>
<annotation>
<mention>Jose Luis Caminero</mention>
<wikiName>José Luis Caminero</wikiName>
<offset>352</offset>
<length>18</length>
</annotation>
</document>
<document docName="239123newsML.txt">
<annotation>
<mention>FIFA</mention>
<wikiName>FIFA</wikiName>
<offset>7</offset>
<length>4</length>
</annotation>
<annotation>
<mention>HAVELANGE</mention>
<wikiName></wikiName>
<offset>17</offset>
<length>9</length>
</annotation>
<annotation>
<mention>WEAH</mention>
<wikiName>George Weah</wikiName>
<offset>37</offset>
<length>4</length>
</annotation>
<annotation>
<mention>ROME</mention>
<wikiName>Rome</wikiName>
<offset>44</offset>
<length>4</length>
</annotation>
<annotation>
<mention>FIFA</mention>
<wikiName>FIFA</wikiName>
<offset>61</offset>
<length>4</length>
</annotation>
<annotation>
<mention>Joao Havelange</mention>
<wikiName>João Havelange</wikiName>
<offset>75</offset>
<length>14</length>
</annotation>
<annotation>
<mention>AC Milan</mention>
<wikiName>A.C. Milan</wikiName>
<offset>133</offset>
<length>8</length>
</annotation>
<annotation>
<mention>George Weah</mention>
<wikiName>George Weah</wikiName>
<offset>142</offset>
<length>11</length>
</annotation>
<annotation>
<mention>Porto</mention>
<wikiName>F.C. Porto</wikiName>
<offset>222</offset>
<length>5</length>
</annotation>
<annotation>
<mention>Jorge Costa</mention>
<wikiName>Jorge Costa</wikiName>
<offset>236</offset>
<length>11</length>
</annotation>
<annotation>
<mention>Italian</mention>
<wikiName>Italy</wikiName>
<offset>275</offset>
<length>7</length>
</annotation>
<annotation>
<mention>Gazzetta dello Sport</mention>
<wikiName>La Gazzetta dello Sport</wikiName>
<offset>293</offset>
<length>20</length>
</annotation>
<annotation>
<mention>Weah</mention>
<wikiName>George Weah</wikiName>
<offset>339</offset>
<length>4</length>
</annotation>
<annotation>
<mention>Costa</mention>
<wikiName>Jorge Costa</wikiName>
<offset>390</offset>
<length>5</length>
</annotation>
<annotation>
<mention>FIFA</mention>
<wikiName>FIFA</wikiName>
<offset>418</offset>
<length>4</length>
</annotation>
<annotation>
<mention>Liberian</mention>
<wikiName>Liberia</wikiName>
<offset>437</offset>
<length>8</length>
</annotation>
<annotation>
<mention>Havelange</mention>
<wikiName></wikiName>
<offset>520</offset>
<length>9</length>
</annotation>
<annotation>
<mention>Lisbon</mention>
<wikiName>Lisbon</wikiName>
<offset>698</offset>
<length>6</length>
</annotation>
<annotation>
<mention>Costa</mention>
<wikiName>Jorge Costa</wikiName>
<offset>728</offset>
<length>5</length>
</annotation>
<annotation>
<mention>Weah</mention>
<wikiName>George Weah</wikiName>
<offset>799</offset>
<length>4</length>
</annotation>
<annotation>
<mention>UEFA</mention>
<wikiName>UEFA</wikiName>
<offset>835</offset>
<length>4</length>
</annotation>
<annotation>
<mention>European</mention>
<wikiName>Europe</wikiName>
<offset>841</offset>
<length>8</length>
</annotation>
<annotation>
<mention>European Champions' League</mention>
<wikiName></wikiName>
<offset>963</offset>
<length>26</length>
</annotation>
<annotation>
<mention>Weah</mention>
<wikiName>George Weah</wikiName>
<offset>1013</offset>
<length>4</length>
</annotation>
<annotation>
<mention>Costa</mention>
<wikiName>Jorge Costa</wikiName>
<offset>1044</offset>
<length>5</length>
</annotation>
<annotation>
<mention>Costa</mention>
<wikiName>Jorge Costa</wikiName>
<offset>1119</offset>
<length>5</length>
</annotation>
<annotation>
<mention>Costa</mention>
<wikiName>Jorge Costa</wikiName>
<offset>1156</offset>
<length>5</length>
</annotation>
<annotation>
<mention>Weah</mention>
<wikiName>George Weah</wikiName>
<offset>1263</offset>
<length>4</length>
</annotation>
<annotation>
<mention>Weah</mention>
<wikiName>George Weah</wikiName>
<offset>1270</offset>
<length>4</length>
</annotation>
<annotation>
<mention>Milan</mention>
<wikiName>A.C. Milan</wikiName>
<offset>1308</offset>
<length>5</length>
</annotation>
<annotation>
<mention>Rosenborg</mention>
<wikiName>Rosenborg BK</wikiName>
<offset>1335</offset>
<length>9</length>
</annotation>
<annotation>
<mention>Norway</mention>
<wikiName>Norway</wikiName>
<offset>1348</offset>
<length>6</length>
</annotation>
<annotation>
<mention>Italians</mention>
<wikiName>Italy national football team</wikiName>
<offset>1388</offset>
<length>8</length>
</annotation>
<annotation>
<mention>Europoean Cup</mention>
<wikiName></wikiName>
<offset>1408</offset>
<length>13</length>
</annotation>
</document>
<document docName="239124newsML.txt">
<annotation>
<mention>MANCHESTER UNITED</mention>
<wikiName>Manchester United F.C.</wikiName>
<offset>17</offset>
<length>17</length>
</annotation>
<annotation>
<mention>AUSTRIA</mention>
<wikiName>Austria</wikiName>
<offset>43</offset>
<length>7</length>
</annotation>
<annotation>
<mention>VIENNA</mention>
<wikiName>Vienna</wikiName>
<offset>53</offset>
<length>6</length>
</annotation>
<annotation>
<mention>Manchester United</mention>
<wikiName>Manchester United F.C.</wikiName>
<offset>76</offset>
<length>17</length>
</annotation>
<annotation>
<mention>Austrian</mention>
<wikiName>Austria</wikiName>
<offset>181</offset>
<length>8</length>
</annotation>
<annotation>
<mention>Britons</mention>
<wikiName>British people</wikiName>
<offset>223</offset>
<length>7</length>
</annotation>
<annotation>
<mention>Mercedes</mention>
<wikiName>Mercedes-Benz</wikiName>
<offset>251</offset>
<length>8</length>
</annotation>
<annotation>
<mention>Reuters</mention>
<wikiName>Reuters</wikiName>
<offset>302</offset>
<length>7</length>
</annotation>
<annotation>
<mention>Austria</mention>
<wikiName>Austria</wikiName>
<offset>414</offset>
<length>7</length>
</annotation>
<annotation>
<mention>Rapid Vienna</mention>
<wikiName>SK Rapid Wien</wikiName>
<offset>447</offset>
<length>12</length>
</annotation>
<annotation>
<mention>Manchester United</mention>
<wikiName>Manchester United F.C.</wikiName>
<offset>546</offset>
<length>17</length>
</annotation>
</document>
<document docName="239125newsML.txt">
<annotation>
<mention>ITALIAN</mention>
<wikiName>Italy</wikiName>
<offset>7</offset>
<length>7</length>
</annotation>
<annotation>
<mention>ROME</mention>
<wikiName>Rome</wikiName>
<offset>53</offset>
<length>4</length>
</annotation>
<annotation>
<mention>Italian</mention>
<wikiName>Italy</wikiName>
<offset>70</offset>
<length>7</length>
</annotation>
<annotation>
<mention>Serie A</mention>
<wikiName>Serie A</wikiName>
<offset>78</offset>
<length>7</length>
</annotation>
<annotation>
<mention>GMT</mention>
<wikiName>Greenwich Mean Time</wikiName>
<offset>169</offset>
<length>3</length>
</annotation>
<annotation>
<mention>Bologna</mention>
<wikiName>Bologna F.C. 1909</wikiName>
<offset>176</offset>
<length>7</length>
</annotation>
<annotation>
<mention>Piacenza</mention>
<wikiName>Lupa Piacenza S.S.D.</wikiName>
<offset>190</offset>
<length>8</length>
</annotation>
<annotation>
<mention>Vicenza</mention>
<wikiName>Vicenza Calcio</wikiName>
<offset>231</offset>
<length>7</length>
</annotation>
<annotation>
<mention>Bologna</mention>
<wikiName>Bologna F.C. 1909</wikiName>
<offset>254</offset>
<length>7</length>
</annotation>
<annotation>
<mention>Italian</mention>
<wikiName>Italy</wikiName>
<offset>301</offset>
<length>7</length>
</annotation>
<annotation>
<mention>Swede</mention>
<wikiName>Sweden</wikiName>
<offset>333</offset>
<length>5</length>
</annotation>
<annotation>
<mention>Kennet Andersson</mention>
<wikiName>Kennet Andersson</wikiName>
<offset>339</offset>
<length>16</length>
</annotation>
<annotation>
<mention>Russian</mention>
<wikiName>Russia</wikiName>
<offset>360</offset>
<length>7</length>
</annotation>
<annotation>
<mention>Igor Kolyvanov</mention>
<wikiName>Igor Kolyvanov</wikiName>
<offset>368</offset>
<length>14</length>
</annotation>
<annotation>
<mention>Bologna</mention>
<wikiName>Bologna F.C. 1909</wikiName>
<offset>394</offset>
<length>7</length>
</annotation>
<annotation>
<mention>Piacenza</mention>
<wikiName>Lupa Piacenza S.S.D.</wikiName>
<offset>442</offset>
<length>8</length>
</annotation>
<annotation>
<mention>AC Milan</mention>
<wikiName>A.C. Milan</wikiName>
<offset>499</offset>
<length>8</length>
</annotation>
<annotation>
<mention>Cagliari</mention>
<wikiName>Cagliari Calcio</wikiName>
<offset>522</offset>
<length>8</length>
</annotation>
<annotation>
<mention>Reggiana</mention>
<wikiName>A.C. Reggiana 1919</wikiName>
<offset>539</offset>
<length>8</length>
</annotation>
<annotation>
<mention>Cagliari</mention>
<wikiName>Cagliari Calcio</wikiName>
<offset>560</offset>
<length>8</length>
</annotation>
<annotation>
<mention>Napoli</mention>
<wikiName>S.S.C. Napoli</wikiName>
<offset>631</offset>
<length>6</length>
</annotation>
<annotation>
<mention>Inter</mention>
<wikiName>Inter Milan</wikiName>
<offset>642</offset>
<length>5</length>
</annotation>
<annotation>
<mention>Swiss</mention>
<wikiName>Switzerland</wikiName>
<offset>698</offset>
<length>5</length>
</annotation>
<annotation>
<mention>Ramon Vega</mention>
<wikiName>Ramon Vega</wikiName>
<offset>713</offset>
<length>10</length>
</annotation>
<annotation>
<mention>Reggiana</mention>
<wikiName>A.C. Reggiana 1919</wikiName>
<offset>737</offset>
<length>8</length>
</annotation>
<annotation>
<mention>German</mention>
<wikiName>Germany</wikiName>
<offset>785</offset>
<length>6</length>
</annotation>
<annotation>
<mention>Dietmar Beiersdorfer</mention>
<wikiName>Dietmar Beiersdorfer</wikiName>
<offset>792</offset>
<length>20</length>
</annotation>
<annotation>
<mention>Fiorentina</mention>
<wikiName>ACF Fiorentina</wikiName>
<offset>815</offset>
<length>10</length>
</annotation>
<annotation>
<mention>Perugia</mention>
<wikiName>A.C. Perugia Calcio</wikiName>
<offset>833</offset>
<length>7</length>
</annotation>
<annotation>
<mention>Fiorentina</mention>
<wikiName>ACF Fiorentina</wikiName>
<offset>851</offset>
<length>10</length>
</annotation>
<annotation>
<mention>Daniele Carnasciali</mention>
<wikiName>Daniele Carnasciali</wikiName>
<offset>915</offset>
<length>19</length>
</annotation>
<annotation>
<mention>Lorenzo Amoruso</mention>
<wikiName>Lorenzo Amoruso</wikiName>
<offset>939</offset>
<length>15</length>
</annotation>
<annotation>
<mention>Emiliano Bigica</mention>
<wikiName></wikiName>
<offset>970</offset>
<length>15</length>
</annotation>
<annotation>
<mention>Perugia</mention>
<wikiName>A.C. Perugia Calcio</wikiName>
<offset>1055</offset>
<length>7</length>
</annotation>
<annotation>
<mention>Croat</mention>
<wikiName>Croatia</wikiName>
<offset>1078</offset>
<length>5</length>
</annotation>
<annotation>
<mention>Milan Rapajic</mention>
<wikiName></wikiName>
<offset>1092</offset>
<length>13</length>
</annotation>
<annotation>
<mention>Fausto Pizzi</mention>
<wikiName>Fausto Pizzi</wikiName>
<offset>1126</offset>
<length>12</length>
</annotation>
<annotation>
<mention>Lazio</mention>
<wikiName>S.S. Lazio</wikiName>
<offset>1141</offset>
<length>5</length>
</annotation>
<annotation>
<mention>AS Roma</mention>
<wikiName>A.S. Roma</wikiName>
<offset>1155</offset>
<length>7</length>
</annotation>
<annotation>
<mention>Roman</mention>
<wikiName>Rome</wikiName>
<offset>1185</offset>
<length>5</length>
</annotation>
<annotation>
<mention>Rome</mention>
<wikiName>Rome</wikiName>
<offset>1242</offset>
<length>4</length>
</annotation>
<annotation>
<mention>Italian</mention>
<wikiName>Italy</wikiName>
<offset>1282</offset>
<length>7</length>
</annotation>
<annotation>
<mention>UEFA Cups</mention>
<wikiName>UEFA Europa League</wikiName>
<offset>1294</offset>
<length>9</length>
</annotation>
<annotation>
<mention>Lazio</mention>
<wikiName>S.S. Lazio</wikiName>
<offset>1305</offset>
<length>5</length>
</annotation>
<annotation>
<mention>Pierluigi Casiraghi</mention>
<wikiName>Pierluigi Casiraghi</wikiName>
<offset>1344</offset>
<length>19</length>
</annotation>
<annotation>
<mention>Czech</mention>
<wikiName>Czech Republic</wikiName>
<offset>1365</offset>
<length>5</length>
</annotation>
<annotation>
<mention>Pavel Nedved</mention>
<wikiName>Pavel Nedvěd</wikiName>
<offset>1382</offset>
<length>12</length>
</annotation>
<annotation>
<mention>Paolo Negro</mention>
<wikiName>Paolo Negro</wikiName>
<offset>1408</offset>
<length>11</length>
</annotation>
<annotation>
<mention>Roma</mention>
<wikiName>A.S. Roma</wikiName>
<offset>1427</offset>
<length>4</length>
</annotation>
<annotation>
<mention>Argentine</mention>
<wikiName>Argentina</wikiName>
<offset>1468</offset>
<length>9</length>
</annotation>
<annotation>
<mention>Abel Balbo</mention>
<wikiName>Abel Balbo</wikiName>
<offset>1478</offset>
<length>10</length>
</annotation>
<annotation>
<mention>Marco Delvecchio</mention>
<wikiName>Marco Delvecchio</wikiName>
<offset>1490</offset>
<length>16</length>
</annotation>
<annotation>
<mention>Francesco Totti</mention>
<wikiName>Francesco Totti</wikiName>
<offset>1511</offset>
<length>15</length>
</annotation>
<annotation>
<mention>AC Milan</mention>
<wikiName>A.C. Milan</wikiName>
<offset>1539</offset>
<length>8</length>
</annotation>
<annotation>
<mention>Udinese</mention>
<wikiName>Udinese Calcio</wikiName>
<offset>1554</offset>
<length>7</length>
</annotation>
<annotation>
<mention>Milan</mention>
<wikiName>A.C. Milan</wikiName>
<offset>1577</offset>
<length>5</length>
</annotation>
<annotation>
<mention>Champions' League</mention>
<wikiName></wikiName>
<offset>1626</offset>
<length>17</length>
</annotation>
<annotation>
<mention>Norwegian</mention>
<wikiName>Norway</wikiName>
<offset>1659</offset>
<length>9</length>
</annotation>
<annotation>
<mention>Rosenborg</mention>
<wikiName>Rosenborg BK</wikiName>
<offset>1674</offset>
<length>9</length>
</annotation>
<annotation>
<mention>Liberian</mention>
<wikiName>Liberia</wikiName>
<offset>1724</offset>
<length>8</length>
</annotation>
<annotation>
<mention>George Weah</mention>
<wikiName>George Weah</wikiName>
<offset>1741</offset>
<length>11</length>
</annotation>
<annotation>
<mention>Milan</mention>
<wikiName>A.C. Milan</wikiName>
<offset>1780</offset>
<length>5</length>
</annotation>
<annotation>
<mention>Roberto Baggio</mention>
<wikiName>Roberto Baggio</wikiName>
<offset>1796</offset>
<length>14</length>
</annotation>
<annotation>
<mention>Montenegrin</mention>
<wikiName>Montenegro</wikiName>
<offset>1817</offset>
<length>11</length>
</annotation>
<annotation>
<mention>Dejan Savicevic</mention>
<wikiName>Dejan Savićević</wikiName>
<offset>1829</offset>
<length>15</length>
</annotation>
<annotation>
<mention>Milan</mention>
<wikiName>A.C. Milan</wikiName>
<offset>1872</offset>
<length>5</length>
</annotation>
<annotation>
<mention>Udinese</mention>
<wikiName>Udinese Calcio</wikiName>
<offset>1886</offset>
<length>7</length>
</annotation>
<annotation>
<mention>German</mention>
<wikiName>Germany</wikiName>
<offset>1896</offset>
<length>6</length>
</annotation>
<annotation>
<mention>Oliver Bierhoff</mention>
<wikiName>Oliver Bierhoff</wikiName>
<offset>1911</offset>
<length>15</length>
</annotation>
<annotation>
<mention>Napoli</mention>
<wikiName>S.S.C. Napoli</wikiName>
<offset>1951</offset>
<length>6</length>
</annotation>
<annotation>
<mention>Verona</mention>
<wikiName>Hellas Verona F.C.</wikiName>
<offset>1964</offset>
<length>6</length>
</annotation>
<annotation>
<mention>Napoli</mention>
<wikiName>S.S.C. Napoli</wikiName>
<offset>1990</offset>
<length>6</length>
</annotation>
<annotation>
<mention>Verona</mention>
<wikiName>Hellas Verona F.C.</wikiName>
<offset>2044</offset>
<length>6</length>
</annotation>
<annotation>
<mention>Argentine</mention>
<wikiName>Argentina</wikiName>
<offset>2090</offset>
<length>9</length>
</annotation>
<annotation>
<mention>Roberto Ayala</mention>
<wikiName>Roberto Ayala</wikiName>
<offset>2109</offset>
<length>13</length>
</annotation>
<annotation>
<mention>Verona</mention>
<wikiName>Hellas Verona F.C.</wikiName>
<offset>2124</offset>
<length>6</length>
</annotation>
<annotation>
<mention>Eugenio Corini</mention>
<wikiName>Eugenio Corini</wikiName>
<offset>2221</offset>
<length>14</length>
</annotation>
<annotation>
<mention>Parma</mention>
<wikiName>Parma F.C.</wikiName>
<offset>2238</offset>
<length>5</length>
</annotation>
<annotation>
<mention>Atlalanta</mention>
<wikiName></wikiName>
<offset>2251</offset>
<length>9</length>
</annotation>
<annotation>
<mention>Parma</mention>
<wikiName>Parma F.C.</wikiName>
<offset>2272</offset>
<length>5</length>
</annotation>
<annotation>
<mention>Croat</mention>
<wikiName>Croatia</wikiName>
<offset>2301</offset>
<length>5</length>
</annotation>
<annotation>
<mention>Mario Stanic</mention>
<wikiName>Mario Stanić</wikiName>
<offset>2318</offset>
<length>12</length>
</annotation>
<annotation>
<mention>Cagliari</mention>
<wikiName>Cagliari Calcio</wikiName>
<offset>2435</offset>
<length>8</length>
</annotation>
<annotation>
<mention>Parma</mention>
<wikiName>Parma F.C.</wikiName>
<offset>2461</offset>
<length>5</length>
</annotation>
<annotation>
<mention>French</mention>
<wikiName>France</wikiName>
<offset>2469</offset>
<length>6</length>
</annotation>
<annotation>
<mention>Daniel Bravo</mention>
<wikiName>Daniel Bravo</wikiName>
<offset>2487</offset>
<length>12</length>
</annotation>
<annotation>
<mention>Fabio Cannavaro</mention>
<wikiName>Fabio Cannavaro</wikiName>
<offset>2513</offset>
<length>15</length>
</annotation>
<annotation>
<mention>Argentine</mention>
<wikiName>Argentina</wikiName>
<offset>2549</offset>
<length>9</length>
</annotation>
<annotation>
<mention>Nestor Sensini</mention>
<wikiName></wikiName>
<offset>2559</offset>
<length>14</length>
</annotation>
<annotation>
<mention>Atalanta</mention>
<wikiName>Atalanta B.C.</wikiName>
<offset>2597</offset>
<length>8</length>
</annotation>
<annotation>
<mention>Filippo Inzaghi</mention>
<wikiName>Filippo Inzaghi</wikiName>
<offset>2614</offset>
<length>15</length>
</annotation>
<annotation>
<mention>Sampdoria</mention>
<wikiName>U.C. Sampdoria</wikiName>
<offset>2655</offset>
<length>9</length>
</annotation>
<annotation>
<mention>Juventus</mention>
<wikiName>Juventus F.C.</wikiName>
<offset>2671</offset>
<length>8</length>
</annotation>
<annotation>
<mention>Juventus</mention>
<wikiName>Juventus F.C.</wikiName>
<offset>2705</offset>
<length>8</length>
</annotation>
<annotation>
<mention>Portuguese</mention>
<wikiName>Portugal</wikiName>
<offset>2747</offset>
<length>10</length>
</annotation>
<annotation>
<mention>Dimas</mention>
<wikiName>Dimas Teixeira</wikiName>
<offset>2767</offset>
<length>5</length>
</annotation>
<annotation>
<mention>Alessandro Del Piero</mention>
<wikiName>Alessandro Del Piero</wikiName>
<offset>2780</offset>
<length>20</length>
</annotation>
<annotation>
<mention>Croat</mention>
<wikiName>Croatia</wikiName>
<offset>2805</offset>
<length>5</length>
</annotation>
<annotation>
<mention>Alen Boksic</mention>
<wikiName>Alen Bokšić</wikiName>
<offset>2811</offset>
<length>11</length>
</annotation>
<annotation>
<mention>Sampdoria</mention>
<wikiName>U.C. Sampdoria</wikiName>
<offset>2896</offset>
<length>9</length>
</annotation>
<annotation>
<mention>Roberto Mancini</mention>
<wikiName>Roberto Mancini</wikiName>
<offset>2926</offset>
<length>15</length>
</annotation>
<annotation>
<mention>French</mention>
<wikiName>France</wikiName>
<offset>2962</offset>
<length>6</length>
</annotation>
<annotation>
<mention>Pierre Laigle</mention>
<wikiName>Pierre Laigle</wikiName>
<offset>2980</offset>
<length>13</length>
</annotation>
<annotation>
<mention>Vicenza</mention>
<wikiName>Vicenza Calcio</wikiName>
<offset>2996</offset>
<length>7</length>
</annotation>
<annotation>
<mention>Internazionale</mention>
<wikiName>Inter Milan</wikiName>
<offset>3010</offset>
<length>14</length>
</annotation>
<annotation>
<mention>Vicenza</mention>
<wikiName>Vicenza Calcio</wikiName>
<offset>3121</offset>
<length>7</length>
</annotation>
<annotation>
<mention>Uruguayan</mention>
<wikiName>Uruguay</wikiName>
<offset>3137</offset>
<length>9</length>
</annotation>
<annotation>
<mention>Marcelo Otero</mention>
<wikiName>Marcelo Otero</wikiName>
<offset>3147</offset>
<length>13</length>
</annotation>
<annotation>
<mention>Inter</mention>
<wikiName>Inter Milan</wikiName>
<offset>3216</offset>
<length>5</length>
</annotation>
<annotation>
<mention>Inter</mention>
<wikiName>Inter Milan</wikiName>
<offset>3294</offset>
<length>5</length>
</annotation>
<annotation>
<mention>French</mention>
<wikiName>France</wikiName>
<offset>3326</offset>
<length>6</length>
</annotation>
<annotation>
<mention>Joceyln Angloma</mention>
<wikiName></wikiName>
<offset>3342</offset>
<length>15</length>
</annotation>
<annotation>
<mention>Chilean</mention>
<wikiName>Chile</wikiName>
<offset>3370</offset>
<length>7</length>
</annotation>
<annotation>
<mention>Ivan Zamorano</mention>
<wikiName>Iván Zamorano</wikiName>
<offset>3386</offset>
<length>13</length>
</annotation>
</document>
<document docName="239128newsML.txt">
<annotation>
<mention>EUROLEAGUE</mention>
<wikiName>Euroleague Basketball</wikiName>
<offset>11</offset>
<length>10</length>
</annotation>
<annotation>
<mention>BRUSSELS</mention>
<wikiName>Brussels</wikiName>
<offset>31</offset>
<length>8</length>
</annotation>
<annotation>
<mention>EuroLeague</mention>
<wikiName>Euroleague Basketball</wikiName>
<offset>64</offset>
<length>10</length>
</annotation>
<annotation>
<mention>Charleroi</mention>
<wikiName>Charleroi</wikiName>
<offset>118</offset>
<length>9</length>
</annotation>
<annotation>
<mention>Charleroi</mention>
<wikiName>Spirou Charleroi</wikiName>
<offset>130</offset>
<length>9</length>
</annotation>
<annotation>
<mention>Belgium</mention>
<wikiName>Belgium</wikiName>
<offset>141</offset>
<length>7</length>
</annotation>
<annotation>
<mention>Estudiantes Madrid</mention>
<wikiName>CB Estudiantes</wikiName>
<offset>153</offset>
<length>18</length>
</annotation>
<annotation>
<mention>Spain</mention>
<wikiName>Spain</wikiName>
<offset>173</offset>
<length>5</length>
</annotation>
<annotation>
<mention>Charleroi</mention>
<wikiName>Spirou Charleroi</wikiName>
<offset>210</offset>
<length>9</length>
</annotation>
<annotation>
<mention>Eric Cleymans</mention>
<wikiName></wikiName>
<offset>222</offset>
<length>13</length>
</annotation>
<annotation>
<mention>Ron Ellis</mention>
<wikiName></wikiName>
<offset>240</offset>
<length>9</length>
</annotation>
<annotation>
<mention>Jacques Stas</mention>
<wikiName></wikiName>
<offset>254</offset>
<length>12</length>
</annotation>
<annotation>
<mention>Estudiantes</mention>
<wikiName>CB Estudiantes</wikiName>
<offset>271</offset>
<length>11</length>
</annotation>
<annotation>
<mention>Harper Williams</mention>
<wikiName></wikiName>
<offset>285</offset>
<length>15</length>
</annotation>
<annotation>
<mention>Chadler Thompson</mention>
<wikiName></wikiName>
<offset>305</offset>
<length>16</length>
</annotation>
<annotation>
<mention>Juan Aisa</mention>
<wikiName></wikiName>
<offset>326</offset>
<length>9</length>
</annotation>
<annotation>
<mention>Belgrade</mention>
<wikiName>Belgrade</wikiName>
<offset>354</offset>
<length>8</length>
</annotation>
<annotation>
<mention>Partizan Belgrade</mention>
<wikiName>KK Partizan</wikiName>
<offset>365</offset>
<length>17</length>
</annotation>
<annotation>
<mention>Yugoslavia</mention>
<wikiName>Yugoslavia</wikiName>
<offset>384</offset>
<length>10</length>
</annotation>
<annotation>
<mention>Kinder Bologna</mention>
<wikiName>Virtus Pallacanestro Bologna</wikiName>
<offset>399</offset>
<length>14</length>
</annotation>
<annotation>
<mention>Italy</mention>
<wikiName>Italy</wikiName>
<offset>415</offset>
<length>5</length>
</annotation>
<annotation>
<mention>Partizan</mention>
<wikiName>KK Partizan</wikiName>
<offset>461</offset>
<length>8</length>
</annotation>
<annotation>
<mention>Dejan Koturovic</mention>
<wikiName>Dejan Koturović</wikiName>
<offset>472</offset>
<length>15</length>
</annotation>
<annotation>
<mention>Zoran Savic</mention>
<wikiName>Zoran Savić</wikiName>
<offset>501</offset>
<length>11</length>
</annotation>
</document>
<document docName="239130newsML.txt">
<annotation>
<mention>EYLES</mention>
<wikiName>Rodney Eyles</wikiName>
<offset>7</offset>
<length>5</length>
</annotation>
<annotation>
<mention>BOMBAY</mention>
<wikiName>Mumbai</wikiName>
<offset>51</offset>
<length>6</length>
</annotation>
<annotation>
<mention>India</mention>
<wikiName>India</wikiName>
<offset>59</offset>
<length>5</length>
</annotation>
<annotation>
<mention>Rodney Eyles</mention>
<wikiName>Rodney Eyles</wikiName>
<offset>94</offset>
<length>12</length>
</annotation>
<annotation>
<mention>World Open</mention>
<wikiName>World Open</wikiName>
<offset>260</offset>
<length>10</length>
</annotation>
<annotation>
<mention>Mahindra International</mention>
<wikiName></wikiName>
<offset>285</offset>
<length>22</length>
</annotation>
<annotation>
<mention>Australian</mention>
<wikiName>Australia</wikiName>
<offset>314</offset>
<length>10</length>
</annotation>
<annotation>
<mention>Englishman</mention>
<wikiName>English people</wikiName>
<offset>348</offset>
<length>10</length>
</annotation>
<annotation>
<mention>Mark Cairns</mention>
<wikiName>Mark Cairns (squash player)</wikiName>
<offset>359</offset>
<length>11</length>
</annotation>
<annotation>
<mention>Eyles</mention>
<wikiName>Rodney Eyles</wikiName>
<offset>399</offset>
<length>5</length>
</annotation>
<annotation>
<mention>Peter Nicol</mention>
<wikiName>Peter Nicol</wikiName>
<offset>427</offset>
<length>11</length>
</annotation>
<annotation>
<mention>Scotland</mention>
<wikiName>Scotland</wikiName>
<offset>442</offset>
<length>8</length>
</annotation>
<annotation>
<mention>Simon Parke</mention>
<wikiName>Simon Parke</wikiName>
<offset>464</offset>
<length>11</length>
</annotation>
<annotation>
<mention>England</mention>
<wikiName>England</wikiName>
<offset>479</offset>
<length>7</length>
</annotation>
<annotation>
<mention>Nicol</mention>
<wikiName>Peter Nicol</wikiName>
<offset>506</offset>
<length>5</length>
</annotation>
<annotation>
<mention>Nicol</mention>
<wikiName>Peter Nicol</wikiName>
<offset>652</offset>
<length>5</length>
</annotation>
</document>
<document docName="239131newsML.txt">
<annotation>
<mention>MAHINDRA INTERNATIONAL</mention>
<wikiName></wikiName>
<offset>7</offset>
<length>22</length>
</annotation>
<annotation>
<mention>BOMBAY</mention>
<wikiName>Mumbai</wikiName>
<offset>50</offset>
<length>6</length>
</annotation>
<annotation>
<mention>India</mention>
<wikiName>India</wikiName>
<offset>58</offset>
<length>5</length>
</annotation>
<annotation>
<mention>Mahindra International</mention>
<wikiName></wikiName>
<offset>105</offset>
<length>22</length>
</annotation>
<annotation>
<mention>Peter Nicol</mention>
<wikiName>Peter Nicol</wikiName>
<offset>158</offset>
<length>11</length>
</annotation>
<annotation>
<mention>Scotland</mention>
<wikiName>Scotland</wikiName>
<offset>171</offset>
<length>8</length>
</annotation>
<annotation>
<mention>Simon Parke</mention>
<wikiName>Simon Parke</wikiName>
<offset>186</offset>
<length>11</length>
</annotation>
<annotation>
<mention>England</mention>
<wikiName>England</wikiName>
<offset>199</offset>
<length>7</length>
</annotation>
<annotation>
<mention>Rodney Eyles</mention>
<wikiName>Rodney Eyles</wikiName>
<offset>225</offset>
<length>12</length>
</annotation>
<annotation>
<mention>Australia</mention>
<wikiName>Australia</wikiName>
<offset>239</offset>
<length>9</length>
</annotation>
<annotation>
<mention>Mark Cairns</mention>
<wikiName>Mark Cairns (squash player)</wikiName>
<offset>255</offset>
<length>11</length>
</annotation>
<annotation>
<mention>England</mention>
<wikiName>England</wikiName>
<offset>268</offset>
<length>7</length>
</annotation>
<annotation>
<mention>Nicol</mention>
<wikiName>Peter Nicol</wikiName>
<offset>302</offset>
<length>5</length>
</annotation>
<annotation>
<mention>Eyles</mention>
<wikiName>Rodney Eyles</wikiName>
<offset>310</offset>
<length>5</length>
</annotation>
</document>
<document docName="239137newsML.txt">
<annotation>
<mention>S.AFRICA</mention>
<wikiName></wikiName>
<offset>20</offset>
<length>8</length>
</annotation>
<annotation>
<mention>ZULU</mention>
<wikiName>Zulu Kingdom</wikiName>
<offset>31</offset>
<length>4</length>
</annotation>
<annotation>
<mention>DURBAN</mention>
<wikiName>Durban</wikiName>
<offset>47</offset>
<length>6</length>
</annotation>
<annotation>
<mention>South Africa</mention>
<wikiName>South Africa</wikiName>
<offset>55</offset>
<length>12</length>
</annotation>
<annotation>
<mention>South Africa</mention>
<wikiName>South Africa</wikiName>
<offset>159</offset>
<length>12</length>
</annotation>
<annotation>
<mention>Zulu</mention>
<wikiName>Zulu Kingdom</wikiName>
<offset>183</offset>
<length>4</length>
</annotation>
<annotation>
<mention>Nelson Mandela</mention>
<wikiName>Nelson Mandela</wikiName>
<offset>297</offset>
<length>14</length>
</annotation>
<annotation>
<mention>African National Congress</mention>
<wikiName>African National Congress</wikiName>
<offset>314</offset>
<length>25</length>
</annotation>
<annotation>
<mention>ANC</mention>
<wikiName>African National Congress</wikiName>
<offset>341</offset>
<length>3</length>
</annotation>
<annotation>
<mention>Izingolweni</mention>
<wikiName></wikiName>
<offset>421</offset>
<length>11</length>
</annotation>
<annotation>
<mention>KwaZulu-Natal</mention>
<wikiName>KwaZulu-Natal</wikiName>
<offset>436</offset>
<length>13</length>
</annotation>
<annotation>
<mention>Umkomaas</mention>
<wikiName>Umkomaas</wikiName>
<offset>689</offset>
<length>8</length>
</annotation>
<annotation>
<mention>Bala Naidoo</mention>
<wikiName></wikiName>
<offset>767</offset>
<length>11</length>
</annotation>
<annotation>
<mention>Reuters</mention>
<wikiName>Reuters</wikiName>
<offset>784</offset>
<length>7</length>
</annotation>
<annotation>
<mention>KwaZulu-Natal</mention>
<wikiName>KwaZulu-Natal</wikiName>
<offset>936</offset>
<length>13</length>
</annotation>
<annotation>
<mention>ANC</mention>
<wikiName>African National Congress</wikiName>
<offset>1368</offset>
<length>3</length>
</annotation>
<annotation>
<mention>Zulu</mention>
<wikiName>Zulu Kingdom</wikiName>
<offset>1376</offset>
<length>4</length>
</annotation>
<annotation>
<mention>Mangosuthu Buthelezi</mention>
<wikiName>Mangosuthu Buthelezi</wikiName>
<offset>1387</offset>
<length>20</length>
</annotation>
<annotation>
<mention>Inkatha Freedom Party</mention>
<wikiName>Inkatha Freedom Party</wikiName>
<offset>1410</offset>
<length>21</length>
</annotation>
</document>
<document docName="239143newsML.txt">
<annotation>
<mention>HAVEL</mention>
<wikiName>Václav Havel</wikiName>
<offset>0</offset>
<length>5</length>
</annotation>
<annotation>
<mention>CZECH</mention>
<wikiName>Czech Republic</wikiName>
<offset>14</offset>
<length>5</length>
</annotation>
<annotation>
<mention>ALBRIGHT</mention>
<wikiName>Madeleine Albright</wikiName>
<offset>27</offset>
<length>8</length>
</annotation>
<annotation>
<mention>Klara Gajduskova</mention>
<wikiName></wikiName>
<offset>48</offset>
<length>16</length>
</annotation>
<annotation>
<mention>PRAGUE</mention>
<wikiName>Prague</wikiName>
<offset>66</offset>
<length>6</length>
</annotation>
<annotation>
<mention>Czech</mention>
<wikiName>Czech Republic</wikiName>
<offset>85</offset>
<length>5</length>
</annotation>
<annotation>
<mention>Vaclav Havel</mention>
<wikiName>Václav Havel</wikiName>
<offset>101</offset>
<length>12</length>
</annotation>
<annotation>
<mention>Madeleine Albright</mention>
<wikiName>Madeleine Albright</wikiName>
<offset>152</offset>
<length>18</length>
</annotation>
<annotation>
<mention>Czech</mention>
<wikiName>Czech Republic</wikiName>
<offset>182</offset>
<length>5</length>
</annotation>
<annotation>
<mention>United States</mention>
<wikiName>United States</wikiName>
<offset>207</offset>
<length>13</length>
</annotation>
<annotation>
<mention>Havel</mention>
<wikiName>Václav Havel</wikiName>
<offset>270</offset>
<length>5</length>
</annotation>
<annotation>
<mention>Madeleine Albright</mention>
<wikiName>Madeleine Albright</wikiName>
<offset>323</offset>
<length>18</length>
</annotation>
<annotation>
<mention>American</mention>
<wikiName>United States</wikiName>
<offset>399</offset>
<length>8</length>
</annotation>
<annotation>
<mention>United States</mention>
<wikiName>United States</wikiName>
<offset>487</offset>
<length>13</length>
</annotation>
<annotation>
<mention>Havel</mention>
<wikiName>Václav Havel</wikiName>
<offset>593</offset>
<length>5</length>
</annotation>
<annotation>
<mention>Reuters</mention>
<wikiName>Reuters</wikiName>
<offset>622</offset>
<length>7</length>
</annotation>
<annotation>
<mention>Havel</mention>
<wikiName>Václav Havel</wikiName>
<offset>632</offset>
<length>5</length>
</annotation>
<annotation>
<mention>Communist</mention>
<wikiName></wikiName>
<offset>695</offset>
<length>9</length>
</annotation>
<annotation>
<mention>Prague</mention>
<wikiName>Prague</wikiName>
<offset>715</offset>
<length>6</length>
</annotation>
<annotation>
<mention>Albright</mention>
<wikiName>Madeleine Albright</wikiName>
<offset>739</offset>
<length>8</length>
</annotation>
<annotation>
<mention>Havel</mention>
<wikiName>Václav Havel</wikiName>
<offset>853</offset>
<length>5</length>
</annotation>
<annotation>
<mention>Albright</mention>
<wikiName>Madeleine Albright</wikiName>
<offset>952</offset>
<length>8</length>
</annotation>
<annotation>
<mention>Marie Korbelova</mention>
<wikiName>Madeleine Albright</wikiName>
<offset>967</offset>
<length>15</length>
</annotation>
<annotation>
<mention>Czechoslovak</mention>
<wikiName>Czechoslovakia</wikiName>
<offset>988</offset>
<length>12</length>
</annotation>
<annotation>
<mention>United States</mention>
<wikiName>United States</wikiName>
<offset>1047</offset>
<length>13</length>
</annotation>
<annotation>
<mention>Communists</mention>
<wikiName></wikiName>
<offset>1071</offset>
<length>10</length>
</annotation>
<annotation>
<mention>Albright</mention>
<wikiName>Madeleine Albright</wikiName>
<offset>1132</offset>
<length>8</length>
</annotation>
<annotation>
<mention>Europe</mention>
<wikiName>Europe</wikiName>
<offset>1165</offset>
<length>6</length>
</annotation>
<annotation>
<mention>U.S.</mention>
<wikiName>United States</wikiName>
<offset>1212</offset>
<length>4</length>
</annotation>
<annotation>
<mention>United Nations</mention>
<wikiName>United Nations</wikiName>
<offset>1235</offset>
<length>14</length>
</annotation>
<annotation>
<mention>Czech</mention>
<wikiName>Czech Republic</wikiName>
<offset>1252</offset>
<length>5</length>
</annotation>
<annotation>
<mention>NATO</mention>
<wikiName>NATO</wikiName>
<offset>1337</offset>
<length>4</length>
</annotation>
<annotation>
<mention>Albright</mention>
<wikiName>Madeleine Albright</wikiName>
<offset>1368</offset>
<length>8</length>
</annotation>
<annotation>
<mention>Soveit-bloc</mention>
<wikiName></wikiName>
<offset>1445</offset>
<length>11</length>
</annotation>
<annotation>
<mention>trans-Atlantic</mention>
<wikiName></wikiName>
<offset>1582</offset>
<length>14</length>
</annotation>
<annotation>
<mention>Europe</mention>
<wikiName>Europe</wikiName>
<offset>1654</offset>
<length>6</length>
</annotation>
<annotation>
<mention>US</mention>
<wikiName></wikiName>
<offset>1669</offset>
<length>2</length>
</annotation>
<annotation>
<mention>Josef Zieleniec</mention>
<wikiName>Josef Zieleniec</wikiName>
<offset>1691</offset>
<length>15</length>
</annotation>
<annotation>
<mention>Reuters</mention>
<wikiName>Reuters</wikiName>
<offset>1712</offset>
<length>7</length>
</annotation>
<annotation>
<mention>Albright</mention>
<wikiName>Madeleine Albright</wikiName>
<offset>1724</offset>
<length>8</length>
</annotation>
<annotation>
<mention>NATO</mention>
<wikiName>NATO</wikiName>
<offset>1761</offset>
<length>4</length>
</annotation>
<annotation>
<mention>Czech</mention>
<wikiName>Czech Republic</wikiName>
<offset>1825</offset>
<length>5</length>
</annotation>
<annotation>
<mention>United Nations</mention>
<wikiName>United Nations</wikiName>
<offset>1849</offset>
<length>14</length>
</annotation>
<annotation>
<mention>Karel Kovanda</mention>
<wikiName></wikiName>
<offset>1865</offset>
<length>13</length>
</annotation>
<annotation>
<mention>Mlada Fronta Dnes</mention>
<wikiName>Mladá fronta DNES</wikiName>
<offset>1895</offset>
<length>17</length>
</annotation>
<annotation>
<mention>Albright</mention>
<wikiName>Madeleine Albright</wikiName>
<offset>1918</offset>
<length>8</length>
</annotation>
<annotation>
<mention>Czechs</mention>
<wikiName>Czechs</wikiName>
<offset>2046</offset>
<length>6</length>
</annotation>
</document>
<document docName="239146newsML.txt">
<annotation>
<mention>RADIO ROMANIA</mention>
<wikiName></wikiName>
<offset>0</offset>
<length>13</length>
</annotation>
<annotation>
<mention>BUCHAREST</mention>
<wikiName>Bucharest</wikiName>
<offset>43</offset>
<length>9</length>
</annotation>
<annotation>
<mention>Radio Romania</mention>
<wikiName></wikiName>
<offset>65</offset>
<length>13</length>
</annotation>
<annotation>
<mention>Democratic Convention</mention>
<wikiName></wikiName>
<offset>102</offset>
<length>21</length>
</annotation>
<annotation>
<mention>Social Democratic Union</mention>
<wikiName></wikiName>
<offset>216</offset>
<length>23</length>
</annotation>
<annotation>
<mention>Hungarian Democratic Union</mention>
<wikiName></wikiName>
<offset>248</offset>
<length>26</length>
</annotation>
<annotation>
<mention>UDMR</mention>
<wikiName>Democratic Union of Hungarians in Romania</wikiName>
<offset>276</offset>
<length>4</length>
</annotation>
<annotation>
<mention>Emil Constantinescu</mention>
<wikiName>Emil Constantinescu</wikiName>
<offset>323</offset>
<length>19</length>
</annotation>
<annotation>
<mention>Romania</mention>
<wikiName>Romania</wikiName>
<offset>439</offset>
<length>7</length>
</annotation>
<annotation>
<mention>Constantinescu</mention>
<wikiName>Emil Constantinescu</wikiName>
<offset>458</offset>
<length>14</length>
</annotation>
<annotation>
<mention>UDMR</mention>
<wikiName>Democratic Union of Hungarians in Romania</wikiName>
<offset>505</offset>
<length>4</length>
</annotation>
<annotation>
<mention>Romania</mention>
<wikiName>Romania</wikiName>
<offset>571</offset>
<length>7</length>
</annotation>
<annotation>
<mention>Marko Bela</mention>
<wikiName>Béla Markó</wikiName>
<offset>593</offset>
<length>10</length>
</annotation>
<annotation>
<mention>Timisoara</mention>
<wikiName>Timișoara</wikiName>
<offset>642</offset>
<length>9</length>
</annotation>
<annotation>
<mention>Arad</mention>
<wikiName>Arad, Romania</wikiName>
<offset>681</offset>
<length>4</length>
</annotation>
<annotation>
<mention>Oradea</mention>
<wikiName>Oradea International Airport</wikiName>
<offset>687</offset>
<length>6</length>
</annotation>
<annotation>
<mention>Sibiu</mention>
<wikiName>Sibiu International Airport</wikiName>
<offset>698</offset>
<length>5</length>
</annotation>
<annotation>
<mention>Bucharest Newsroom</mention>
<wikiName></wikiName>
<offset>731</offset>
<length>18</length>
</annotation>
</document>
<document docName="239151newsML.txt">
<annotation>
<mention>CZECH</mention>
<wikiName>Czech Republic</wikiName>
<offset>0</offset>
<length>5</length>
</annotation>
<annotation>
<mention>PRAGUE</mention>
<wikiName>Prague</wikiName>
<offset>52</offset>
<length>6</length>
</annotation>
<annotation>
<mention>Czech Civic Democratic Party</mention>
<wikiName></wikiName>
<offset>114</offset>
<length>28</length>
</annotation>
<annotation>
<mention>ODS</mention>
<wikiName></wikiName>
<offset>144</offset>
<length>3</length>
</annotation>
<annotation>
<mention>ODS</mention>
<wikiName></wikiName>
<offset>232</offset>
<length>3</length>
</annotation>
<annotation>
<mention>Josef Zieleniec</mention>
<wikiName>Josef Zieleniec</wikiName>
<offset>250</offset>
<length>15</length>
</annotation>
<annotation>
<mention>Zieleniec</mention>
<wikiName>Josef Zieleniec</wikiName>
<offset>431</offset>
<length>9</length>
</annotation>
<annotation>
<mention>Reuters</mention>
<wikiName>Reuters</wikiName>
<offset>491</offset>
<length>7</length>
</annotation>
<annotation>
<mention>ODS</mention>
<wikiName></wikiName>
<offset>617</offset>
<length>3</length>
</annotation>
<annotation>
<mention>Vaclav Klaus</mention>
<wikiName>Václav Klaus</wikiName>
<offset>654</offset>
<length>12</length>
</annotation>
<annotation>
<mention>Czech</mention>
<wikiName>Czech Republic</wikiName>
<offset>756</offset>
<length>5</length>
</annotation>
<annotation>
<mention>Brno</mention>
<wikiName>Brno</wikiName>
<offset>774</offset>
<length>4</length>
</annotation>
<annotation>
<mention>ODS</mention>
<wikiName></wikiName>
<offset>860</offset>
<length>3</length>
</annotation>
<annotation>
<mention>Klaus</mention>
<wikiName></wikiName>
<offset>882</offset>
<length>5</length>
</annotation>
<annotation>
<mention>British</mention>
<wikiName>United Kingdom</wikiName>
<offset>931</offset>
<length>7</length>
</annotation>
<annotation>
<mention>Margaret Thatcher</mention>
<wikiName>Margaret Thatcher</wikiName>
<offset>954</offset>
<length>17</length>
</annotation>
<annotation>
<mention>Czech</mention>
<wikiName>Czech Republic</wikiName>
<offset>996</offset>
<length>5</length>
</annotation>
<annotation>
<mention>Zieleniec</mention>
<wikiName>Josef Zieleniec</wikiName>
<offset>1053</offset>
<length>9</length>
</annotation>
<annotation>
<mention>Klaus</mention>
<wikiName></wikiName>
<offset>1185</offset>
<length>5</length>
</annotation>
<annotation>
<mention>post-Communist</mention>
<wikiName>Post-communism</wikiName>
<offset>1225</offset>
<length>14</length>
</annotation>
<annotation>
<mention>Klaus</mention>
<wikiName></wikiName>
<offset>1302</offset>
<length>5</length>
</annotation>
<annotation>
<mention>Czech</mention>
<wikiName>Czech Republic</wikiName>
<offset>1392</offset>
<length>5</length>
</annotation>
<annotation>
<mention>ODS</mention>
<wikiName></wikiName>
<offset>1461</offset>
<length>3</length>
</annotation>
<annotation>
<mention>Klaus</mention>
<wikiName></wikiName>
<offset>1509</offset>
<length>5</length>
</annotation>
<annotation>
<mention>Social Democrats</mention>
<wikiName></wikiName>
<offset>1664</offset>
<length>16</length>
</annotation>
<annotation>
<mention>Prague Newsroom</mention>
<wikiName></wikiName>
<offset>1720</offset>
<length>15</length>
</annotation>
</document>
<document docName="239153newsML.txt">
<annotation>
<mention>POLAND</mention>
<wikiName>Poland</wikiName>
<offset>0</offset>
<length>6</length>
</annotation>
<annotation>
<mention>SWISS</mention>
<wikiName>Switzerland</wikiName>
<offset>31</offset>
<length>5</length>
</annotation>
<annotation>
<mention>Marcin Grajewski</mention>
<wikiName></wikiName>
<offset>48</offset>
<length>16</length>
</annotation>
<annotation>
<mention>WARSAW</mention>
<wikiName>Warsaw</wikiName>
<offset>66</offset>
<length>6</length>
</annotation>
<annotation>
<mention>Poland</mention>
<wikiName>Poland</wikiName>
<offset>85</offset>
<length>6</length>
</annotation>
<annotation>
<mention>Swiss</mention>
<wikiName>Switzerland</wikiName>
<offset>112</offset>
<length>5</length>
</annotation>
<annotation>
<mention>Polish</mention>
<wikiName>Poland</wikiName>
<offset>165</offset>
<length>6</length>
</annotation>
<annotation>
<mention>Jews</mention>
<wikiName>Jews</wikiName>
<offset>172</offset>
<length>4</length>
</annotation>
<annotation>
<mention>Holocaust</mention>
<wikiName>The Holocaust</wikiName>
<offset>193</offset>
<length>9</length>
</annotation>
<annotation>
<mention>World War Two</mention>
<wikiName>World War II</wikiName>
<offset>270</offset>
<length>13</length>
</annotation>
<annotation>
<mention>Dariusz Rosati</mention>
<wikiName>Dariusz Rosati</wikiName>
<offset>303</offset>
<length>14</length>
</annotation>
<annotation>
<mention>Poland</mention>
<wikiName>Poland</wikiName>
<offset>418</offset>
<length>6</length>
</annotation>
<annotation>
<mention>Swiss</mention>
<wikiName>Switzerland</wikiName>
<offset>442</offset>
<length>5</length>
</annotation>
<annotation>
<mention>Poland</mention>
<wikiName>Poland</wikiName>
<offset>486</offset>
<length>6</length>
</annotation>
<annotation>
<mention>Switzerland</mention>
<wikiName>Switzerland</wikiName>
<offset>529</offset>
<length>11</length>
</annotation>
<annotation>
<mention>Rosati</mention>
<wikiName>Dariusz Rosati</wikiName>
<offset>618</offset>
<length>6</length>
</annotation>
<annotation>
<mention>Switzerland</mention>
<wikiName>Switzerland</wikiName>
<offset>650</offset>
<length>11</length>
</annotation>
<annotation>
<mention>Alfonse D'Amato</mention>
<wikiName></wikiName>
<offset>688</offset>
<length>15</length>
</annotation>
<annotation>
<mention>U.S. Senate Banking Committee</mention>
<wikiName></wikiName>
<offset>730</offset>
<length>29</length>
</annotation>
<annotation>
<mention>Poland</mention>
<wikiName>Poland</wikiName>
<offset>790</offset>
<length>6</length>
</annotation>
<annotation>
<mention>Polish</mention>
<wikiName>Poland</wikiName>
<offset>829</offset>
<length>6</length>
</annotation>
<annotation>
<mention>Swiss</mention>
<wikiName>Switzerland</wikiName>
<offset>883</offset>
<length>5</length>
</annotation>
<annotation>
<mention>Poland</mention>
<wikiName>Poland</wikiName>
<offset>941</offset>
<length>6</length>
</annotation>
<annotation>
<mention>Jews</mention>
<wikiName>Jews</wikiName>
<offset>978</offset>
<length>4</length>
</annotation>
<annotation>
<mention>Nazi</mention>
<wikiName>Nazi Party</wikiName>
<offset>1013</offset>
<length>4</length>
</annotation>
<annotation>
<mention>German</mention>
<wikiName>Nazi Germany</wikiName>
<offset>1018</offset>
<length>6</length>
</annotation>
<annotation>
<mention>Poland</mention>
<wikiName>Poland</wikiName>
<offset>1049</offset>
<length>6</length>
</annotation>
<annotation>
<mention>Jews</mention>
<wikiName>Jews</wikiName>
<offset>1070</offset>
<length>4</length>
</annotation>
<annotation>
<mention>Rosati</mention>
<wikiName>Dariusz Rosati</wikiName>
<offset>1077</offset>
<length>6</length>
</annotation>
<annotation>
<mention>Warsaw</mention>
<wikiName>Warsaw</wikiName>
<offset>1164</offset>
<length>6</length>
</annotation>
<annotation>
<mention>Switzerland</mention>
<wikiName>Switzerland</wikiName>
<offset>1175</offset>
<length>11</length>
</annotation>
<annotation>
<mention>Swiss</mention>
<wikiName>Switzerland</wikiName>
<offset>1206</offset>
<length>5</length>
</annotation>
<annotation>
<mention>Soviet-imposed</mention>
<wikiName></wikiName>
<offset>1253</offset>
<length>14</length>
</annotation>
<annotation>
<mention>World War Two</mention>
<wikiName>World War II</wikiName>
<offset>1297</offset>
<length>13</length>
</annotation>
<annotation>
<mention>Rosati</mention>
<wikiName>Dariusz Rosati</wikiName>
<offset>1444</offset>
<length>6</length>
</annotation>
<annotation>
<mention>Rosati</mention>
<wikiName>Dariusz Rosati</wikiName>
<offset>1458</offset>
<length>6</length>
</annotation>
<annotation>
<mention>Switzerland</mention>
<wikiName>Switzerland</wikiName>
<offset>1525</offset>
<length>11</length>
</annotation>
<annotation>
<mention>Switzerland</mention>
<wikiName>Switzerland</wikiName>
<offset>1636</offset>
<length>11</length>
</annotation>
<annotation>
<mention>Polish</mention>
<wikiName>Poland</wikiName>
<offset>1804</offset>
<length>6</length>
</annotation>
<annotation>
<mention>Rosati</mention>
<wikiName>Dariusz Rosati</wikiName>
<offset>1944</offset>
<length>6</length>
</annotation>
<annotation>
<mention>Jewish</mention>
<wikiName>Jews</wikiName>
<offset>1992</offset>
<length>6</length>
</annotation>
<annotation>
<mention>Swiss</mention>
<wikiName>Switzerland</wikiName>
<offset>2014</offset>
<length>5</length>
</annotation>
<annotation>
<mention>Holocaust</mention>
<wikiName>The Holocaust</wikiName>
<offset>2141</offset>
<length>9</length>
</annotation>
<annotation>
<mention>Radical Democrats</mention>
<wikiName></wikiName>
<offset>2178</offset>
<length>17</length>
</annotation>
<annotation>
<mention>FDP</mention>
<wikiName>Free Democratic Party of Switzerland</wikiName>
<offset>2197</offset>
<length>3</length>
</annotation>
<annotation>
<mention>Swiss</mention>
<wikiName>Switzerland</wikiName>
<offset>2257</offset>
<length>5</length>
</annotation>
<annotation>
<mention>Swiss</mention>
<wikiName>Switzerland</wikiName>
<offset>2292</offset>
<length>5</length>
</annotation>
<annotation>
<mention>Jewish</mention>
<wikiName>Jews</wikiName>
<offset>2363</offset>
<length>6</length>
</annotation>
<annotation>
<mention>Swiss</mention>
<wikiName>Switzerland</wikiName>
<offset>2412</offset>
<length>5</length>
</annotation>
<annotation>
<mention>Jewish</mention>
<wikiName>Jews</wikiName>
<offset>2442</offset>
<length>6</length>
</annotation>
</document>
<document docName="239156newsML.txt">
<annotation>
<mention>INTERVIEW-ZYWIEC</mention>
<wikiName></wikiName>
<offset>0</offset>
<length>16</length>
</annotation>
<annotation>
<mention>Steven Silber</mention>
<wikiName></wikiName>
<offset>43</offset>
<length>13</length>
</annotation>
<annotation>
<mention>WARSAW</mention>
<wikiName>Warsaw</wikiName>
<offset>58</offset>
<length>6</length>
</annotation>
<annotation>
<mention>Polish</mention>
<wikiName>Poland</wikiName>
<offset>77</offset>
<length>6</length>
</annotation>
<annotation>
<mention>Zywiec</mention>
<wikiName></wikiName>
<offset>91</offset>
<length>6</length>
</annotation>
<annotation>
<mention>Jean van Boxmeer</mention>
<wikiName></wikiName>
<offset>321</offset>
<length>16</length>
</annotation>
<annotation>
<mention>Reuters</mention>
<wikiName>Reuters</wikiName>
<offset>343</offset>
<length>7</length>
</annotation>
<annotation>
<mention>Zywiec</mention>
<wikiName></wikiName>
<offset>620</offset>
<length>6</length>
</annotation>
<annotation>
<mention>Zaklady Piwowarskie w Zywcu SA</mention>
<wikiName></wikiName>
<offset>647</offset>
<length>30</length>
</annotation>
<annotation>
<mention>Van Boxmeer</mention>
<wikiName></wikiName>
<offset>783</offset>
<length>11</length>
</annotation>
<annotation>
<mention>Polish</mention>
<wikiName>Poland</wikiName>
<offset>889</offset>
<length>6</length>
</annotation>
<annotation>
<mention>Boxmeer</mention>
<wikiName></wikiName>
<offset>1139</offset>
<length>7</length>
</annotation>
<annotation>
<mention>Polish</mention>
<wikiName>Poland</wikiName>
<offset>1155</offset>
<length>6</length>
</annotation>
<annotation>
<mention>Poland</mention>
<wikiName>Poland</wikiName>
<offset>1298</offset>
<length>6</length>
</annotation>
<annotation>
<mention>Europe</mention>
<wikiName>Europe</wikiName>
<offset>1338</offset>
<length>6</length>
</annotation>
<annotation>
<mention>Germany</mention>
<wikiName>Germany</wikiName>
<offset>1379</offset>
<length>7</length>
</annotation>
<annotation>
<mention>Britain</mention>
<wikiName>United Kingdom</wikiName>
<offset>1391</offset>
<length>7</length>
</annotation>
<annotation>
<mention>Van Boxmeer</mention>
<wikiName></wikiName>
<offset>1401</offset>
<length>11</length>
</annotation>
<annotation>
<mention>Poland</mention>
<wikiName>Poland</wikiName>
<offset>1418</offset>
<length>6</length>
</annotation>
<annotation>
<mention>Zywiec</mention>
<wikiName></wikiName>
<offset>1634</offset>
<length>6</length>
</annotation>
<annotation>
<mention>Heineken</mention>
<wikiName>Heineken International</wikiName>
<offset>1666</offset>
<length>8</length>
</annotation>
<annotation>
<mention>Carlsberg</mention>
<wikiName>Carlsberg Group</wikiName>
<offset>1681</offset>
<length>9</length>
</annotation>
<annotation>
<mention>Okocim</mention>
<wikiName>Okocim</wikiName>
<offset>1714</offset>
<length>6</length>
</annotation>
<annotation>
<mention>South African Breweries Ltd</mention>
<wikiName></wikiName>
<offset>1742</offset>
<length>27</length>
</annotation>
<annotation>
<mention>SAB</mention>
<wikiName>South African Breweries</wikiName>
<offset>1771</offset>
<length>3</length>
</annotation>
<annotation>
<mention>Lech</mention>
<wikiName></wikiName>
<offset>1816</offset>
<length>4</length>
</annotation>
<annotation>
<mention>Tychy</mention>
<wikiName>Tychy</wikiName>
<offset>1825</offset>
<length>5</length>
</annotation>
<annotation>
<mention>Australia</mention>
<wikiName>Australia</wikiName>
<offset>1900</offset>
<length>9</length>
</annotation>
<annotation>
<mention>Brewpole BV</mention>
<wikiName></wikiName>
<offset>1912</offset>
<length>11</length>
</annotation>
<annotation>
<mention>Poland</mention>
<wikiName>Poland</wikiName>
<offset>1951</offset>
<length>6</length>
</annotation>
<annotation>
<mention>Elbrewery Company Ltd.</mention>
<wikiName></wikiName>
<offset>1978</offset>
<length>22</length>
</annotation>
<annotation>
<mention>EB</mention>
<wikiName></wikiName>
<offset>2002</offset>
<length>2</length>
</annotation>
<annotation>
<mention>Van Boxmeer</mention>
<wikiName></wikiName>
<offset>2008</offset>
<length>11</length>
</annotation>
<annotation>
<mention>Zywiec</mention>
<wikiName></wikiName>
<offset>2061</offset>
<length>6</length>
</annotation>
<annotation>
<mention>Czech Republic</mention>
<wikiName>Czech Republic</wikiName>
<offset>2441</offset>
<length>14</length>
</annotation>
<annotation>
<mention>Czech</mention>
<wikiName>Czech Republic</wikiName>
<offset>2501</offset>
<length>5</length>
</annotation>
<annotation>
<mention>Poland</mention>
<wikiName>Poland</wikiName>
<offset>2528</offset>
<length>6</length>
</annotation>
<annotation>
<mention>CEFTA</mention>
<wikiName>Central European Free Trade Agreement</wikiName>
<offset>2552</offset>
<length>5</length>
</annotation>
<annotation>
<mention>Boxmeer</mention>
<wikiName></wikiName>
<offset>2596</offset>
<length>7</length>
</annotation>
<annotation>
<mention>Czech</mention>
<wikiName>Czech Republic</wikiName>
<offset>2656</offset>
<length>5</length>
</annotation>
<annotation>
<mention>Polish</mention>
<wikiName>Poland</wikiName>
<offset>2700</offset>
<length>6</length>
</annotation>
<annotation>
<mention>Czech</mention>
<wikiName>Czech Republic</wikiName>
<offset>2903</offset>
<length>5</length>
</annotation>
<annotation>
<mention>Van Boxmeer</mention>
<wikiName></wikiName>
<offset>2927</offset>
<length>11</length>
</annotation>
<annotation>
<mention>Zywiec</mention>
<wikiName></wikiName>
<offset>2944</offset>
<length>6</length>
</annotation>
<annotation>
<mention>Okocim</mention>
<wikiName></wikiName>
<offset>2966</offset>
<length>6</length>
</annotation>
<annotation>
<mention>Carlsberg</mention>
<wikiName>Carlsberg Group</wikiName>
<offset>3014</offset>
<length>9</length>
</annotation>
<annotation>
<mention>Zywiec</mention>
<wikiName></wikiName>
<offset>3049</offset>
<length>6</length>
</annotation>
<annotation>
<mention>Heineken</mention>
<wikiName>Heineken</wikiName>
<offset>3082</offset>
<length>8</length>
</annotation>
<annotation>
<mention>Zywiec</mention>
<wikiName></wikiName>
<offset>3225</offset>
<length>6</length>
</annotation>
<annotation>
<mention>Full Light</mention>
<wikiName></wikiName>
<offset>3232</offset>
<length>10</length>
</annotation>
<annotation>
<mention>Polish</mention>
<wikiName>Poland</wikiName>
<offset>3361</offset>
<length>6</length>
</annotation>
<annotation>
<mention>Boxmeer</mention>
<wikiName></wikiName>
<offset>3421</offset>
<length>7</length>
</annotation>
<annotation>
<mention>Heineken</mention>
<wikiName>Heineken</wikiName>
<offset>3447</offset>
<length>8</length>
</annotation>
<annotation>
<mention>Poland</mention>
<wikiName>Poland</wikiName>
<offset>3492</offset>
<length>6</length>
</annotation>
<annotation>
<mention>Van Boxmeer</mention>
<wikiName></wikiName>
<offset>3501</offset>
<length>11</length>
</annotation>
<annotation>
<mention>Zywiec</mention>
<wikiName></wikiName>
<offset>3523</offset>
<length>6</length>
</annotation>
<annotation>
<mention>Warsaw Newsroom</mention>
<wikiName></wikiName>
<offset>3732</offset>
<length>15</length>
</annotation>
</document>
<document docName="239157newsML.txt">
<annotation>
<mention>HAVEL</mention>
<wikiName>Václav Havel</wikiName>
<offset>0</offset>
<length>5</length>
</annotation>
<annotation>
<mention>PRAGUE</mention>
<wikiName>Prague</wikiName>
<offset>50</offset>
<length>6</length>
</annotation>
<annotation>
<mention>Czech</mention>
<wikiName>Czech Republic</wikiName>
<offset>120</offset>
<length>5</length>
</annotation>
<annotation>
<mention>Vaclav Havel</mention>
<wikiName>Václav Havel</wikiName>
<offset>136</offset>
<length>12</length>
</annotation>
<annotation>
<mention>Havel</mention>
<wikiName>Václav Havel</wikiName>
<offset>290</offset>
<length>5</length>
</annotation>
<annotation>
<mention>Ladlislav Spacek</mention>
<wikiName></wikiName>
<offset>515</offset>
<length>16</length>
</annotation>
<annotation>
<mention>Havel</mention>
<wikiName>Václav Havel</wikiName>
<offset>744</offset>
<length>5</length>
</annotation>
<annotation>
<mention>Havel</mention>
<wikiName>Václav Havel</wikiName>
<offset>941</offset>
<length>5</length>
</annotation>
<annotation>
<mention>Havel</mention>
<wikiName>Václav Havel</wikiName>
<offset>1039</offset>
<length>5</length>
</annotation>
</document>
<document docName="239184newsML.txt">
<annotation>
<mention>UK-US</mention>
<wikiName></wikiName>
<offset>0</offset>
<length>5</length>
</annotation>
<annotation>
<mention>LONDON</mention>
<wikiName>London</wikiName>
<offset>49</offset>
<length>6</length>
</annotation>
<annotation>
<mention>UK</mention>
<wikiName></wikiName>
<offset>72</offset>
<length>2</length>
</annotation>
<annotation>
<mention>Department of Transport</mention>
<wikiName></wikiName>
<offset>75</offset>
<length>23</length>
</annotation>
<annotation>
<mention>U.S.</mention>
<wikiName>United States</wikiName>
<offset>167</offset>
<length>4</length>
</annotation>
<annotation>
<mention>DOT</mention>
<wikiName></wikiName>
<offset>310</offset>
<length>3</length>
</annotation>
<annotation>
<mention>Reuters</mention>
<wikiName>Reuters</wikiName>
<offset>319</offset>
<length>7</length>
</annotation>
</document>
<document docName="239186newsML.txt">
<annotation>
<mention>Tambang Timah</mention>
<wikiName></wikiName>
<offset>0</offset>
<length>13</length>
</annotation>
<annotation>
<mention>London</mention>
<wikiName>London</wikiName>
<offset>28</offset>
<length>6</length>
</annotation>
<annotation>
<mention>LONDON</mention>
<wikiName>London</wikiName>
<offset>37</offset>
<length>6</length>
</annotation>
<annotation>
<mention>PT Tambang Timah</mention>
<wikiName></wikiName>
<offset>56</offset>
<length>16</length>
</annotation>
<annotation>
<mention>London</mention>
<wikiName>London</wikiName>
<offset>102</offset>
<length>6</length>
</annotation>
<annotation>
<mention>Jakarta</mention>
<wikiName>Jakarta</wikiName>
<offset>286</offset>
<length>7</length>
</annotation>
</document>
<document docName="239187newsML.txt">
<annotation>
<mention>Telkom</mention>
<wikiName>Telkom Indonesia</wikiName>
<offset>0</offset>
<length>6</length>
</annotation>
<annotation>
<mention>London</mention>
<wikiName>London</wikiName>
<offset>17</offset>
<length>6</length>
</annotation>
<annotation>
<mention>LONDON</mention>
<wikiName>London</wikiName>
<offset>26</offset>
<length>6</length>
</annotation>
<annotation>
<mention>PT Telekomunikasi Indonesia</mention>
<wikiName>Telkom Indonesia</wikiName>
<offset>45</offset>
<length>27</length>
</annotation>
<annotation>
<mention>Telkom</mention>
<wikiName>Telkom Indonesia</wikiName>
<offset>74</offset>
<length>6</length>
</annotation>
<annotation>
<mention>London</mention>
<wikiName>London</wikiName>
<offset>99</offset>
<length>6</length>
</annotation>
<annotation>
<mention>Jakarta</mention>
<wikiName>Jakarta</wikiName>
<offset>270</offset>
<length>7</length>
</annotation>
</document>
<document docName="239188newsML.txt">
<annotation>
<mention>N.Ireland</mention>
<wikiName>Northern Ireland</wikiName>
<offset>19</offset>
<length>9</length>
</annotation>
<annotation>
<mention>BELFAST</mention>
<wikiName>Belfast</wikiName>
<offset>41</offset>
<length>7</length>
</annotation>
<annotation>
<mention>Irish Republican Army</mention>
<wikiName>Irish Republican Army</wikiName>
<offset>127</offset>
<length>21</length>
</annotation>
<annotation>
<mention>Belfast</mention>
<wikiName>Belfast</wikiName>
<offset>178</offset>
<length>7</length>
</annotation>
<annotation>
<mention>Britain</mention>
<wikiName>United Kingdom</wikiName>
<offset>702</offset>
<length>7</length>
</annotation>
<annotation>
<mention>Northern Ireland</mention>
<wikiName>Northern Ireland</wikiName>
<offset>715</offset>
<length>16</length>
</annotation>
</document>
<document docName="239190newsML.txt">
<annotation>
<mention>Britain</mention>
<wikiName>United Kingdom</wikiName>
<offset>0</offset>
<length>7</length>
</annotation>
<annotation>
<mention>American</mention>
<wikiName>United States</wikiName>
<offset>33</offset>
<length>8</length>
</annotation>
<annotation>
<mention>Edna Fernandes</mention>
<wikiName></wikiName>
<offset>53</offset>
<length>14</length>
</annotation>
<annotation>
<mention>LONDON</mention>
<wikiName>London</wikiName>
<offset>69</offset>
<length>6</length>
</annotation>
<annotation>
<mention>British</mention>
<wikiName>United Kingdom</wikiName>
<offset>92</offset>
<length>7</length>
</annotation>
<annotation>
<mention>trans-Atlantic</mention>
<wikiName></wikiName>
<offset>158</offset>
<length>14</length>
</annotation>
<annotation>
<mention>British Airways Plc</mention>
<wikiName>British Airways</wikiName>
<offset>190</offset>
<length>19</length>
</annotation>
<annotation>
<mention>American Airlines</mention>
<wikiName>American Airlines</wikiName>
<offset>214</offset>
<length>17</length>
</annotation>
<annotation>
<mention>Britain</mention>
<wikiName>United Kingdom</wikiName>
<offset>235</offset>
<length>7</length>
</annotation>
<annotation>
<mention>Monopolies and Mergers Commission</mention>
<wikiName>Competition Commission (United Kingdom)</wikiName>
<offset>245</offset>
<length>33</length>
</annotation>
<annotation>
<mention>Trade and Industry</mention>
<wikiName></wikiName>
<offset>338</offset>
<length>18</length>
</annotation>
<annotation>
<mention>Ian Lang</mention>
<wikiName>Ian Lang, Baron Lang of Monkton</wikiName>
<offset>367</offset>
<length>8</length>
</annotation>
<annotation>
<mention>Britain</mention>
<wikiName>United Kingdom</wikiName>
<offset>495</offset>
<length>7</length>
</annotation>
<annotation>
<mention>United States</mention>
<wikiName>United States</wikiName>
<offset>511</offset>
<length>13</length>
</annotation>
<annotation>
<mention>trans-Atlantic</mention>
<wikiName></wikiName>
<offset>539</offset>
<length>14</length>
</annotation>
<annotation>
<mention>Lang</mention>
<wikiName></wikiName>
<offset>622</offset>
<length>4</length>
</annotation>
<annotation>
<mention>Britain</mention>
<wikiName>United Kingdom</wikiName>
<offset>668</offset>
<length>7</length>
</annotation>
<annotation>
<mention>Office of Fair Trading</mention>
<wikiName>Office of Fair Trading</wikiName>
<offset>678</offset>
<length>22</length>
</annotation>
<annotation>
<mention>BA</mention>
<wikiName></wikiName>
<offset>916</offset>
<length>2</length>
</annotation>
<annotation>
<mention>AA</mention>
<wikiName></wikiName>
<offset>923</offset>
<length>2</length>
</annotation>
<annotation>
<mention>trans-Atlantic</mention>
<wikiName></wikiName>
<offset>974</offset>
<length>14</length>
</annotation>
<annotation>
<mention>UK</mention>
<wikiName></wikiName>
<offset>1014</offset>
<length>2</length>
</annotation>
<annotation>
<mention>U.S.</mention>
<wikiName>United States</wikiName>
<offset>1021</offset>
<length>4</length>
</annotation>
<annotation>
<mention>London</mention>
<wikiName>London</wikiName>
<offset>1119</offset>
<length>6</length>
</annotation>
<annotation>
<mention>British Airways-American</mention>
<wikiName></wikiName>
<offset>1263</offset>
<length>24</length>
</annotation>
<annotation>
<mention>British Airways</mention>
<wikiName>British Airways</wikiName>
<offset>1367</offset>
<length>15</length>
</annotation>
<annotation>
<mention>American</mention>
<wikiName>United States</wikiName>
<offset>1387</offset>
<length>8</length>
</annotation>
<annotation>
<mention>London Heathrow</mention>
<wikiName>London Heathrow Airport</wikiName>
<offset>1414</offset>
<length>15</length>
</annotation>
<annotation>
<mention>Europe</mention>
<wikiName>Europe</wikiName>
<offset>1454</offset>
<length>6</length>
</annotation>
<annotation>
<mention>American</mention>
<wikiName>United States</wikiName>
<offset>1463</offset>
<length>8</length>
</annotation>
<annotation>
<mention>AMR Corp.</mention>
<wikiName>AMR Corporation</wikiName>
<offset>1482</offset>
<length>9</length>
</annotation>
<annotation>
<mention>British Airways</mention>
<wikiName>British Airways</wikiName>
<offset>1675</offset>
<length>15</length>
</annotation>
<annotation>
<mention>British Airways</mention>
<wikiName>British Airways</wikiName>
<offset>1974</offset>
<length>15</length>
</annotation>
<annotation>
<mention>USAir</mention>
<wikiName>US Airways</wikiName>
<offset>2029</offset>
<length>5</length>
</annotation>
<annotation>
<mention>trans-Atlantic</mention>
<wikiName></wikiName>
<offset>2066</offset>
<length>14</length>
</annotation>
<annotation>
<mention>British Airways</mention>
<wikiName>British Airways</wikiName>
<offset>2103</offset>
<length>15</length>
</annotation>
<annotation>
<mention>American</mention>
<wikiName>United States</wikiName>
<offset>2123</offset>
<length>8</length>
</annotation>
<annotation>
<mention>London</mention>
<wikiName>London</wikiName>
<offset>2177</offset>
<length>6</length>
</annotation>
<annotation>
<mention>Dallas-Fort Worth</mention>
<wikiName></wikiName>
<offset>2187</offset>
<length>17</length>
</annotation>
<annotation>
<mention>London-to-Boston</mention>
<wikiName></wikiName>
<offset>2304</offset>
<length>16</length>
</annotation>
<annotation>
<mention>Office of Fair Trade</mention>
<wikiName>Office of Fair Trading</wikiName>
<offset>2332</offset>
<length>20</length>
</annotation>
<annotation>
<mention>British Airways</mention>
<wikiName>British Airways</wikiName>
<offset>2364</offset>
<length>15</length>
</annotation>
<annotation>
<mention>American</mention>
<wikiName>United States</wikiName>
<offset>2380</offset>
<length>8</length>
</annotation>
<annotation>
<mention>Lang</mention>
<wikiName></wikiName>
<offset>2527</offset>
<length>4</length>
</annotation>
<annotation>
<mention>Office of Fair Trading</mention>
<wikiName>Office of Fair Trading</wikiName>
<offset>2569</offset>
<length>22</length>
</annotation>
</document>
<document docName="239199newsML.txt">
<annotation>
<mention>Elf</mention>
<wikiName>Elf Aquitaine</wikiName>
<offset>33</offset>
<length>3</length>
</annotation>
<annotation>
<mention>LONDON</mention>
<wikiName>London</wikiName>
<offset>51</offset>
<length>6</length>
</annotation>
<annotation>
<mention>Elf</mention>
<wikiName>Elf Aquitaine</wikiName>
<offset>141</offset>
<length>3</length>
</annotation>
<annotation>
<mention>Genoa</mention>
<wikiName>Genoa</wikiName>
<offset>387</offset>
<length>5</length>
</annotation>
<annotation>
<mention>Syria</mention>
<wikiName>Syria</wikiName>
<offset>532</offset>
<length>5</length>
</annotation>
<annotation>
<mention>Lebanon</mention>
<wikiName>Lebanon</wikiName>
<offset>542</offset>
<length>7</length>
</annotation>
<annotation>
<mention>France</mention>
<wikiName>France</wikiName>
<offset>586</offset>
<length>6</length>
</annotation>
<annotation>
<mention>Spain</mention>
<wikiName>Spain</wikiName>
<offset>597</offset>
<length>5</length>
</annotation>
<annotation>
<mention>India</mention>
<wikiName>India</wikiName>
<offset>669</offset>
<length>5</length>
</annotation>
<annotation>
<mention>American</mention>
<wikiName>United States</wikiName>
<offset>1046</offset>
<length>8</length>
</annotation>
<annotation>
<mention>U.S</mention>
<wikiName>United States</wikiName>
<offset>1143</offset>
<length>3</length>
</annotation>
<annotation>
<mention>U.S.</mention>
<wikiName>United States</wikiName>
<offset>1239</offset>
<length>4</length>
</annotation>
<annotation>
<mention>Europe</mention>
<wikiName>Europe</wikiName>
<offset>1247</offset>
<length>6</length>
</annotation>
<annotation>
<mention>Rotterdam</mention>
<wikiName>Rotterdam</wikiName>
<offset>1259</offset>
<length>9</length>
</annotation>
<annotation>
<mention>Elf</mention>
<wikiName>Elf Aquitaine</wikiName>
<offset>1404</offset>
<length>3</length>
</annotation>
<annotation>
<mention>U.S.</mention>
<wikiName>United States</wikiName>
<offset>1495</offset>
<length>4</length>
</annotation>
<annotation>
<mention>Italian</mention>
<wikiName>Italy</wikiName>
<offset>1510</offset>
<length>7</length>
</annotation>
<annotation>
<mention>Elf</mention>
<wikiName>Elf Aquitaine</wikiName>
<offset>1533</offset>
<length>3</length>
</annotation>
</document>
<document docName="239223newsML.txt">
<annotation>
<mention>Britain</mention>
<wikiName>United Kingdom</wikiName>
<offset>26</offset>
<length>7</length>
</annotation>
<annotation>
<mention>LONDON</mention>
<wikiName>London</wikiName>
<offset>36</offset>
<length>6</length>
</annotation>
<annotation>
<mention>Britain</mention>
<wikiName>United Kingdom</wikiName>
<offset>177</offset>
<length>7</length>
</annotation>
<annotation>
<mention>Sale Grammar School</mention>
<wikiName>Sale Grammar School</wikiName>
<offset>268</offset>
<length>19</length>
</annotation>
<annotation>
<mention>England</mention>
<wikiName>England</wikiName>
<offset>304</offset>
<length>7</length>
</annotation>
<annotation>
<mention>Manchester</mention>
<wikiName>Manchester</wikiName>
<offset>320</offset>
<length>10</length>
</annotation>
<annotation>
<mention>Wales</mention>
<wikiName>Wales</wikiName>
<offset>732</offset>
<length>5</length>
</annotation>
<annotation>
<mention>Cardiff</mention>
<wikiName>Cardiff</wikiName>
<offset>814</offset>
<length>7</length>
</annotation>
<annotation>
<mention>Scotland</mention>
<wikiName>Scotland</wikiName>
<offset>926</offset>
<length>8</length>
</annotation>
<annotation>
<mention>Lanarkshire</mention>
<wikiName>Lanarkshire</wikiName>
<offset>1249</offset>
<length>11</length>
</annotation>
</document>
<document docName="239225newsML.txt">
<annotation>
<mention>Major</mention>
<wikiName>John Major</wikiName>
<offset>0</offset>
<length>5</length>
</annotation>
<annotation>
<mention>office-Conservatives</mention>
<wikiName></wikiName>
<offset>8</offset>
<length>20</length>
</annotation>
<annotation>
<mention>LONDON</mention>
<wikiName>London</wikiName>
<offset>51</offset>
<length>6</length>
</annotation>
<annotation>
<mention>British</mention>
<wikiName>United Kingdom</wikiName>
<offset>70</offset>
<length>7</length>
</annotation>
<annotation>
<mention>John Major</mention>
<wikiName>John Major</wikiName>
<offset>93</offset>
<length>10</length>
</annotation>
<annotation>
<mention>Conservative</mention>
<wikiName>Conservative Party (UK)</wikiName>
<offset>139</offset>
<length>12</length>
</annotation>
<annotation>
<mention>John Gorst</mention>
<wikiName>John Michael Gorst</wikiName>
<offset>159</offset>
<length>10</length>
</annotation>
<annotation>
<mention>Gorst</mention>
<wikiName>John Michael Gorst</wikiName>
<offset>303</offset>
<length>5</length>
</annotation>
<annotation>
<mention>Major</mention>
<wikiName>John Major</wikiName>
<offset>439</offset>
<length>5</length>
</annotation>
<annotation>
<mention>Downing Street</mention>
<wikiName>10 Downing Street</wikiName>
<offset>457</offset>
<length>14</length>
</annotation>
<annotation>
<mention>Gorst</mention>
<wikiName>John Michael Gorst</wikiName>
<offset>481</offset>
<length>5</length>
</annotation>
<annotation>
<mention>Gorst</mention>
<wikiName>John Michael Gorst</wikiName>
<offset>734</offset>
<length>5</length>
</annotation>
<annotation>
<mention>Major</mention>
<wikiName>John Major</wikiName>
<offset>753</offset>
<length>5</length>
</annotation>
<annotation>
<mention>House of Commons</mention>
<wikiName></wikiName>
<offset>799</offset>
<length>16</length>
</annotation>
<annotation>
<mention>Gorst</mention>
<wikiName>John Michael Gorst</wikiName>
<offset>869</offset>
<length>5</length>
</annotation>
<annotation>
<mention>House of Commons</mention>
<wikiName></wikiName>
<offset>1005</offset>
<length>16</length>
</annotation>
<annotation>
<mention>Gorst</mention>
<wikiName>John Michael Gorst</wikiName>
<offset>1081</offset>
<length>5</length>
</annotation>
</document>
<document docName="239232newsML.txt">
<annotation>
<mention>Electronic Data</mention>
<wikiName></wikiName>
<offset>0</offset>
<length>15</length>
</annotation>
<annotation>
<mention>LONDON</mention>
<wikiName>London</wikiName>
<offset>44</offset>
<length>6</length>
</annotation>
<annotation>
<mention>Electronic Data Systems</mention>
<wikiName>HP Enterprise Services</wikiName>
<offset>91</offset>
<length>23</length>
</annotation>
<annotation>
<mention>EDS</mention>
<wikiName>HP Enterprise Services</wikiName>
<offset>265</offset>
<length>3</length>
</annotation>
<annotation>
<mention>Oceanic Control Centre</mention>
<wikiName></wikiName>
<offset>403</offset>
<length>22</length>
</annotation>
<annotation>
<mention>Prestwick</mention>
<wikiName>Prestwick</wikiName>
<offset>429</offset>
<length>9</length>
</annotation>
<annotation>
<mention>Scotland</mention>
<wikiName>Scotland</wikiName>
<offset>453</offset>
<length>8</length>
</annotation>
<annotation>
<mention>National Air Traffic Services Ltd</mention>
<wikiName></wikiName>
<offset>466</offset>
<length>33</length>
</annotation>
<annotation>
<mention>NATS</mention>
<wikiName>NATS Holdings</wikiName>
<offset>501</offset>
<length>4</length>
</annotation>
<annotation>
<mention>Civil Aviation Authority</mention>
<wikiName>Civil Aviation Authority (United Kingdom)</wikiName>
<offset>526</offset>
<length>24</length>
</annotation>
<annotation>
<mention>Europe</mention>
<wikiName>Europe</wikiName>
<offset>640</offset>
<length>6</length>
</annotation>
<annotation>
<mention>North America</mention>
<wikiName>North America</wikiName>
<offset>651</offset>
<length>13</length>
</annotation>
<annotation>
<mention>London Newsroom</mention>
<wikiName></wikiName>
<offset>759</offset>
<length>15</length>
</annotation>
</document>
<document docName="239260newsML.txt">
<annotation>
<mention>RTRS</mention>
<wikiName></wikiName>
<offset>0</offset>
<length>4</length>
</annotation>
<annotation>
<mention>Australia-West Indies</mention>
<wikiName></wikiName>
<offset>30</offset>
<length>21</length>
</annotation>
<annotation>
<mention>MELBOURNE</mention>
<wikiName>Melbourne</wikiName>
<offset>60</offset>
<length>9</length>
</annotation>
<annotation>
<mention>World Series</mention>
<wikiName>World Series Cricket</wikiName>
<offset>110</offset>
<length>12</length>
</annotation>
<annotation>
<mention>West Indies</mention>
<wikiName>West Indies cricket team</wikiName>
<offset>151</offset>
<length>11</length>
</annotation>
<annotation>
<mention>Australia</mention>
<wikiName>Australia national cricket team</wikiName>
<offset>167</offset>
<length>9</length>
</annotation>
<annotation>
<mention>West Indies</mention>
<wikiName>West Indies cricket team</wikiName>
<offset>222</offset>
<length>11</length>
</annotation>
<annotation>
<mention>Sherwin Campbell</mention>
<wikiName>Sherwin Campbell</wikiName>
<offset>282</offset>
<length>16</length>
</annotation>
<annotation>
<mention>Shivnarine Chanderpaul</mention>
<wikiName>Shivnarine Chanderpaul</wikiName>
<offset>309</offset>
<length>22</length>
</annotation>
<annotation>
<mention>Sydney Newsroom</mention>
<wikiName></wikiName>
<offset>395</offset>
<length>15</length>
</annotation>
</document>
<document docName="239266newsML.txt">
<annotation>
<mention>Pakistan</mention>
<wikiName>Pakistan national cricket team</wikiName>
<offset>8</offset>
<length>8</length>
</annotation>
<annotation>
<mention>New Zealand</mention>
<wikiName>New Zealand national cricket team</wikiName>
<offset>22</offset>
<length>11</length>
</annotation>
<annotation>
<mention>SIALKOT</mention>
<wikiName>Sialkot</wikiName>
<offset>47</offset>
<length>7</length>
</annotation>
<annotation>
<mention>Pakistan</mention>
<wikiName>Pakistan</wikiName>
<offset>56</offset>
<length>8</length>
</annotation>
<annotation>
<mention>Pakistan</mention>
<wikiName>Pakistan national cricket team</wikiName>
<offset>77</offset>
<length>8</length>
</annotation>
<annotation>
<mention>New Zealand</mention>
<wikiName>New Zealand national cricket team</wikiName>
<offset>91</offset>
<length>11</length>
</annotation>
<annotation>
<mention>Pakistan</mention>
<wikiName>Pakistan national cricket team</wikiName>
<offset>199</offset>
<length>8</length>
</annotation>
<annotation>
<mention>New Zealand</mention>
<wikiName>New Zealand national cricket team</wikiName>
<offset>215</offset>
<length>11</length>
</annotation>
</document>
<document docName="239282newsML.txt">
<annotation>
<mention>Manitoba Pork</mention>
<wikiName></wikiName>
<offset>0</offset>
<length>13</length>
</annotation>
<annotation>
<mention>WINNIPEG</mention>
<wikiName>Winnipeg</wikiName>
<offset>51</offset>
<length>8</length>
</annotation>
<annotation>
<mention>Manitoba Pork</mention>
<wikiName></wikiName>
<offset>72</offset>
<length>13</length>
</annotation>
<annotation>
<mention>Canadian</mention>
<wikiName>Canada</wikiName>
<offset>121</offset>
<length>8</length>
</annotation>
<annotation>
<mention>Manitoba</mention>
<wikiName></wikiName>
<offset>838</offset>
<length>8</length>
</annotation>
<annotation>
<mention>C$</mention>
<wikiName></wikiName>
<offset>871</offset>
<length>2</length>
</annotation>
<annotation>
<mention>Manitoba</mention>
<wikiName></wikiName>
<offset>905</offset>
<length>8</length>
</annotation>
<annotation>
<mention>CAN</mention>
<wikiName>Canada</wikiName>
<offset>955</offset>
<length>3</length>
</annotation>
<annotation>
<mention>U.S.</mention>
<wikiName>United States</wikiName>
<offset>959</offset>
<length>4</length>
</annotation>
<annotation>
<mention>Manitoba Pork</mention>
<wikiName></wikiName>
<offset>1002</offset>
<length>13</length>
</annotation>
<annotation>
<mention>Winnipeg</mention>
<wikiName>Winnipeg</wikiName>
<offset>1020</offset>
<length>8</length>
</annotation>
</document>
<document docName="239287newsML.txt">
<annotation>
<mention>Canadian</mention>
<wikiName>Canada</wikiName>
<offset>0</offset>
<length>8</length>
</annotation>
<annotation>
<mention>WINNIPEG</mention>
<wikiName>Winnipeg</wikiName>
<offset>44</offset>
<length>8</length>
</annotation>
<annotation>
<mention>Canadian Wheat Board</mention>
<wikiName>Canadian Wheat Board</wikiName>
<offset>69</offset>
<length>20</length>
</annotation>
<annotation>
<mention>Canadian</mention>
<wikiName>Canada</wikiName>
<offset>149</offset>
<length>8</length>
</annotation>
<annotation>
<mention>Thunder Bay</mention>
<wikiName>Thunder Bay</wikiName>
<offset>260</offset>
<length>11</length>
</annotation>
<annotation>
<mention>Vancouver</mention>
<wikiName>Vancouver</wikiName>
<offset>408</offset>
<length>9</length>
</annotation>
<annotation>
<mention>Prince Rupert</mention>
<wikiName></wikiName>
<offset>433</offset>
<length>13</length>
</annotation>
<annotation>
<mention>Gilbert Le Gras</mention>
<wikiName></wikiName>
<offset>461</offset>
<length>15</length>
</annotation>
</document>
<document docName="239331newsML.txt">
<annotation>
<mention>New York</mention>
<wikiName>New York City</wikiName>
<offset>0</offset>
<length>8</length>
</annotation>
<annotation>
<mention>NEW YORK</mention>
<wikiName>New York City</wikiName>
<offset>40</offset>
<length>8</length>
</annotation>
<annotation>
<mention>New York</mention>
<wikiName>New York City</wikiName>
<offset>91</offset>
<length>8</length>
</annotation>
<annotation>
<mention>New York Commodities Desk</mention>
<wikiName></wikiName>
<offset>105</offset>
<length>25</length>
</annotation>
</document>
<document docName="239332newsML.txt">
<annotation>
<mention>New York</mention>
<wikiName>New York City</wikiName>
<offset>0</offset>
<length>8</length>
</annotation>
<annotation>
<mention>NEW YORK</mention>
<wikiName>New York City</wikiName>
<offset>43</offset>
<length>8</length>
</annotation>
<annotation>
<mention>Maritime Queen</mention>
<wikiName></wikiName>
<offset>70</offset>
<length>14</length>
</annotation>
<annotation>
<mention>Dampier</mention>
<wikiName></wikiName>
<offset>99</offset>
<length>7</length>
</annotation>
<annotation>
<mention>Kaohsiung</mention>
<wikiName></wikiName>
<offset>107</offset>
<length>9</length>
</annotation>
<annotation>
<mention>China Steel</mention>
<wikiName>China Steel</wikiName>
<offset>150</offset>
<length>11</length>
</annotation>
<annotation>
<mention>New York Commodities</mention>
<wikiName></wikiName>
<offset>167</offset>
<length>20</length>
</annotation>
</document>
<document docName="239333newsML.txt">
<annotation>
<mention>GMT</mention>
<wikiName>Greenwich Mean Time</wikiName>
<offset>44</offset>
<length>3</length>
</annotation>
<annotation>
<mention>NEW YORK</mention>
<wikiName>New York City</wikiName>
<offset>50</offset>
<length>8</length>
</annotation>
<annotation>
<mention>Danila</mention>
<wikiName></wikiName>
<offset>105</offset>
<length>6</length>
</annotation>
<annotation>
<mention>Caribs</mention>
<wikiName></wikiName>
<offset>123</offset>
<length>6</length>
</annotation>
<annotation>
<mention>Mobil</mention>
<wikiName>ExxonMobil</wikiName>
<offset>138</offset>
<length>5</length>
</annotation>
<annotation>
<mention>New York Commodities</mention>
<wikiName></wikiName>
<offset>149</offset>
<length>20</length>
</annotation>
</document>
<document docName="239334newsML.txt">
<annotation>
<mention>GMT</mention>
<wikiName>Greenwich Mean Time</wikiName>
<offset>44</offset>
<length>3</length>
</annotation>
<annotation>
<mention>NEW YORK</mention>
<wikiName>New York City</wikiName>
<offset>50</offset>
<length>8</length>
</annotation>
<annotation>
<mention>RED SEA</mention>
<wikiName>Red Sea</wikiName>
<offset>79</offset>
<length>7</length>
</annotation>
<annotation>
<mention>Thai Resource</mention>
<wikiName></wikiName>
<offset>90</offset>
<length>13</length>
</annotation>
<annotation>
<mention>Ras Tanura</mention>
<wikiName>Ras Tanura</wikiName>
<offset>114</offset>
<length>10</length>
</annotation>
<annotation>
<mention>Red Sea</mention>
<wikiName>Red Sea</wikiName>
<offset>125</offset>
<length>7</length>
</annotation>
<annotation>
<mention>Mobil</mention>
<wikiName>Mobil</wikiName>
<offset>140</offset>
<length>5</length>
</annotation>
<annotation>
<mention>MEDITERRANEAN</mention>
<wikiName>Mediterranean Sea</wikiName>
<offset>148</offset>
<length>13</length>
</annotation>
<annotation>
<mention>Lula I</mention>
<wikiName></wikiName>
<offset>165</offset>
<length>6</length>
</annotation>
<annotation>
<mention>Sidi Kreir</mention>
<wikiName></wikiName>
<offset>181</offset>
<length>10</length>
</annotation>
<annotation>
<mention>Augusta</mention>
<wikiName></wikiName>
<offset>192</offset>
<length>7</length>
</annotation>
<annotation>
<mention>Exxon</mention>
<wikiName>Exxon</wikiName>
<offset>205</offset>
<length>5</length>
</annotation>
<annotation>
<mention>Spetses</mention>
<wikiName>Spetses</wikiName>
<offset>213</offset>
<length>7</length>
</annotation>
<annotation>
<mention>Sidi Kreir</mention>
<wikiName></wikiName>
<offset>231</offset>
<length>10</length>
</annotation>
<annotation>
<mention>Augusta</mention>
<wikiName></wikiName>
<offset>242</offset>
<length>7</length>
</annotation>
<annotation>
<mention>Exxon</mention>
<wikiName>Exxon</wikiName>
<offset>257</offset>
<length>5</length>
</annotation>
<annotation>
<mention>Mesipia</mention>
<wikiName></wikiName>
<offset>265</offset>
<length>7</length>
</annotation>
<annotation>
<mention>Bajaia</mention>
<wikiName></wikiName>
<offset>284</offset>
<length>6</length>
</annotation>
<annotation>
<mention>Fos</mention>
<wikiName>Fos-sur-Mer</wikiName>
<offset>291</offset>
<length>3</length>
</annotation>
<annotation>
<mention>Exxon</mention>
<wikiName>Exxon</wikiName>
<offset>300</offset>
<length>5</length>
</annotation>
<annotation>
<mention>New York Commodities Desk</mention>
<wikiName></wikiName>
<offset>311</offset>
<length>25</length>
</annotation>
</document>
<document docName="239351newsML.txt">
<annotation>
<mention>NYC</mention>
<wikiName>New York City</wikiName>
<offset>0</offset>
<length>3</length>
</annotation>
<annotation>
<mention>Euro</mention>
<wikiName></wikiName>
<offset>30</offset>
<length>4</length>
</annotation>
<annotation>
<mention>NEW YORK</mention>
<wikiName>New York City</wikiName>
<offset>51</offset>
<length>8</length>
</annotation>
<annotation>
<mention>New York City</mention>
<wikiName>New York City</wikiName>
<offset>72</offset>
<length>13</length>
</annotation>
<annotation>
<mention>European</mention>
<wikiName>Europe</wikiName>
<offset>222</offset>
<length>8</length>
</annotation>
<annotation>
<mention>Goldman, Sachs</mention>
<wikiName></wikiName>
<offset>301</offset>
<length>14</length>
</annotation>
<annotation>
<mention>Euronotes</mention>
<wikiName></wikiName>
<offset>695</offset>
<length>9</length>
</annotation>
<annotation>
<mention>New York City</mention>
<wikiName>New York City</wikiName>
<offset>887</offset>
<length>13</length>
</annotation>
<annotation>
<mention>U.S.</mention>
<wikiName>United States</wikiName>
<offset>926</offset>
<length>4</length>
</annotation>
<annotation>
<mention>European</mention>
<wikiName>Europe</wikiName>
<offset>971</offset>
<length>8</length>
</annotation>
<annotation>
<mention>London Stock Exchange</mention>
<wikiName>London Stock Exchange</wikiName>
<offset>1045</offset>
<length>21</length>
</annotation>
<annotation>
<mention>Joan Gralla</mention>
<wikiName></wikiName>
<offset>1241</offset>
<length>11</length>
</annotation>
</document>
<document docName="239367newsML.txt">
<annotation>
<mention>USDA</mention>
<wikiName>United States Department of Agriculture</wikiName>
<offset>0</offset>
<length>4</length>
</annotation>
<annotation>
<mention>DES MOINES</mention>
<wikiName></wikiName>
<offset>41</offset>
<length>10</length>
</annotation>
<annotation>
<mention>USDA</mention>
<wikiName>United States Department of Agriculture</wikiName>
<offset>213</offset>
<length>4</length>
</annotation>
</document>
<document docName="239416newsML.txt">
<annotation>
<mention>Wall St</mention>
<wikiName></wikiName>
<offset>0</offset>
<length>7</length>
</annotation>
<annotation>
<mention>Santa Fe</mention>
<wikiName></wikiName>
<offset>25</offset>
<length>8</length>
</annotation>
<annotation>
<mention>Brendan Intindola</mention>
<wikiName></wikiName>
<offset>43</offset>
<length>17</length>
</annotation>
<annotation>
<mention>NEW YORK</mention>
<wikiName>New York City</wikiName>
<offset>62</offset>
<length>8</length>
</annotation>
<annotation>
<mention>Homestake Mining Co</mention>
<wikiName></wikiName>
<offset>83</offset>
<length>19</length>
</annotation>
<annotation>
<mention>Wall Street</mention>
<wikiName>New York Stock Exchange</wikiName>
<offset>108</offset>
<length>11</length>
</annotation>
<annotation>
<mention>Santa Fe Pacific Gold Corp</mention>
<wikiName></wikiName>
<offset>169</offset>
<length>26</length>
</annotation>
<annotation>
<mention>Santa Fe</mention>
<wikiName></wikiName>
<offset>199</offset>
<length>8</length>
</annotation>
<annotation>
<mention>Newmont Mining Corp</mention>
<wikiName></wikiName>
<offset>235</offset>
<length>19</length>
</annotation>
<annotation>
<mention>Santa Fe</mention>
<wikiName></wikiName>
<offset>257</offset>
<length>8</length>
</annotation>
<annotation>
<mention>Newmont</mention>
<wikiName>Newmont Mining Corporation</wikiName>
<offset>342</offset>
<length>7</length>
</annotation>
<annotation>
<mention>Wall Street</mention>
<wikiName>New York Stock Exchange</wikiName>
<offset>372</offset>
<length>11</length>
</annotation>
<annotation>
<mention>Newmont</mention>
<wikiName>Newmont Mining Corporation</wikiName>
<offset>437</offset>
<length>7</length>
</annotation>
<annotation>
<mention>Santa Fe</mention>
<wikiName></wikiName>
<offset>449</offset>
<length>8</length>
</annotation>
<annotation>
<mention>Newmont</mention>
<wikiName>Newmont Mining Corporation</wikiName>
<offset>576</offset>
<length>7</length>
</annotation>
<annotation>
<mention>Santa Fe</mention>
<wikiName></wikiName>
<offset>690</offset>
<length>8</length>
</annotation>
<annotation>
<mention>Newmont</mention>
<wikiName>Newmont Mining Corporation</wikiName>
<offset>766</offset>
<length>7</length>
</annotation>
<annotation>
<mention>Santa Fe</mention>
<wikiName></wikiName>
<offset>825</offset>
<length>8</length>
</annotation>
<annotation>
<mention>Nevada</mention>
<wikiName>Nevada</wikiName>
<offset>865</offset>
<length>6</length>
</annotation>
<annotation>
<mention>Newmont</mention>
<wikiName>Newmont Mining Corporation</wikiName>
<offset>912</offset>
<length>7</length>
</annotation>
<annotation>
<mention>Newmont</mention>
<wikiName>Newmont Mining Corporation</wikiName>
<offset>933</offset>
<length>7</length>
</annotation>
<annotation>
<mention>Santa Fe</mention>
<wikiName></wikiName>
<offset>977</offset>
<length>8</length>
</annotation>
<annotation>
<mention>Barrick Gold Corp</mention>
<wikiName></wikiName>
<offset>1305</offset>
<length>17</length>
</annotation>
<annotation>
<mention>Bre-X Minerals Ltd</mention>
<wikiName></wikiName>
<offset>1327</offset>
<length>18</length>
</annotation>
<annotation>
<mention>Santa Fe</mention>
<wikiName></wikiName>
<offset>1349</offset>
<length>8</length>
</annotation>
<annotation>
<mention>Indonesia</mention>
<wikiName>Indonesia</wikiName>
<offset>1427</offset>
<length>9</length>
</annotation>
<annotation>
<mention>Busang</mention>
<wikiName></wikiName>
<offset>1439</offset>
<length>6</length>
</annotation>
<annotation>
<mention>Placer Dome Inc</mention>
<wikiName></wikiName>
<offset>1466</offset>
<length>15</length>
</annotation>
<annotation>
<mention>Santa Fe</mention>
<wikiName></wikiName>
<offset>1580</offset>
<length>8</length>
</annotation>
<annotation>
<mention>Nevada</mention>
<wikiName>Nevada</wikiName>
<offset>1591</offset>
<length>6</length>
</annotation>
<annotation>
<mention>South America</mention>
<wikiName>South America</wikiName>
<offset>1599</offset>
<length>13</length>
</annotation>
<annotation>
<mention>Central Asia</mention>
<wikiName>Central Asia</wikiName>
<offset>1617</offset>
<length>12</length>
</annotation>
<annotation>
<mention>Homestake</mention>
<wikiName></wikiName>
<offset>1656</offset>
<length>9</length>
</annotation>
<annotation>
<mention>Homestake</mention>
<wikiName></wikiName>
<offset>1756</offset>
<length>9</length>
</annotation>
<annotation>
<mention>San Francisco</mention>
<wikiName>San Francisco</wikiName>
<offset>1776</offset>
<length>13</length>
</annotation>
<annotation>
<mention>United States</mention>
<wikiName>United States</wikiName>
<offset>1818</offset>
<length>13</length>
</annotation>
<annotation>
<mention>Australia</mention>
<wikiName>Australia</wikiName>
<offset>1833</offset>
<length>9</length>
</annotation>
<annotation>
<mention>Chile</mention>
<wikiName>Chile</wikiName>
<offset>1844</offset>
<length>5</length>
</annotation>
<annotation>
<mention>Canada</mention>
<wikiName>Canada</wikiName>
<offset>1854</offset>
<length>6</length>
</annotation>
<annotation>
<mention>Santa Fe</mention>
<wikiName></wikiName>
<offset>1952</offset>
<length>8</length>
</annotation>
<annotation>
<mention>Albuquerque</mention>
<wikiName>Albuquerque, New Mexico</wikiName>
<offset>1978</offset>
<length>11</length>
</annotation>
<annotation>
<mention>N.M.</mention>
<wikiName>New Mexico</wikiName>
<offset>1991</offset>
<length>4</length>
</annotation>
<annotation>
<mention>Santa Fe</mention>
<wikiName></wikiName>
<offset>2091</offset>
<length>8</length>
</annotation>
<annotation>
<mention>Nevada</mention>
<wikiName>Nevada</wikiName>
<offset>2141</offset>
<length>6</length>
</annotation>
<annotation>
<mention>California</mention>
<wikiName>California</wikiName>
<offset>2149</offset>
<length>10</length>
</annotation>
<annotation>
<mention>Montana</mention>
<wikiName>Montana</wikiName>
<offset>2161</offset>
<length>7</length>
</annotation>
<annotation>
<mention>Canada</mention>
<wikiName>Canada</wikiName>
<offset>2170</offset>
<length>6</length>
</annotation>
<annotation>
<mention>Brazil</mention>
<wikiName>Brazil</wikiName>
<offset>2178</offset>
<length>6</length>
</annotation>
<annotation>
<mention>Australia</mention>
<wikiName>Australia</wikiName>
<offset>2186</offset>
<length>9</length>
</annotation>
<annotation>
<mention>Chile</mention>
<wikiName>Chile</wikiName>
<offset>2197</offset>
<length>5</length>
</annotation>
<annotation>
<mention>Kazakstan</mention>
<wikiName>Kazakhstan</wikiName>
<offset>2204</offset>
<length>9</length>
</annotation>
<annotation>
<mention>Mexico</mention>
<wikiName>Mexico City</wikiName>
<offset>2215</offset>
<length>6</length>
</annotation>
<annotation>
<mention>Ghana</mention>
<wikiName>Ghana</wikiName>
<offset>2226</offset>
<length>5</length>
</annotation>
<annotation>
<mention>PaineWebber</mention>
<wikiName>Paine Webber</wikiName>
<offset>2234</offset>
<length>11</length>
</annotation>
<annotation>
<mention>Marc Cohen</mention>
<wikiName></wikiName>
<offset>2254</offset>
<length>10</length>
</annotation>
<annotation>
<mention>Newmont</mention>
<wikiName>Newmont Mining Corporation</wikiName>
<offset>2295</offset>
<length>7</length>
</annotation>
<annotation>
<mention>Newmont</mention>
<wikiName>Newmont Mining Corporation</wikiName>
<offset>2347</offset>
<length>7</length>
</annotation>
<annotation>
<mention>Santa Fe</mention>
<wikiName></wikiName>
<offset>2367</offset>
<length>8</length>
</annotation>
<annotation>
<mention>Homestake</mention>
<wikiName></wikiName>
<offset>2477</offset>
<length>9</length>
</annotation>
<annotation>
<mention>Newmont</mention>
<wikiName>Newmont Mining Corporation</wikiName>
<offset>2573</offset>
<length>7</length>
</annotation>
<annotation>
<mention>Santa Fe</mention>
<wikiName></wikiName>
<offset>2666</offset>
<length>8</length>
</annotation>
<annotation>
<mention>Newmont-Santa Fe</mention>
<wikiName></wikiName>
<offset>2749</offset>
<length>16</length>
</annotation>
<annotation>
<mention>Newmont</mention>
<wikiName>Newmont Mining Corporation</wikiName>
<offset>2883</offset>
<length>7</length>
</annotation>
<annotation>
<mention>Santa Fe</mention>
<wikiName></wikiName>
<offset>2903</offset>
<length>8</length>
</annotation>
<annotation>
<mention>Newmont</mention>
<wikiName>Newmont Mining Corporation</wikiName>
<offset>2951</offset>
<length>7</length>
</annotation>
<annotation>
<mention>Santa Fe</mention>
<wikiName></wikiName>
<offset>2975</offset>
<length>8</length>
</annotation>
<annotation>
<mention>New York Stock Exchange</mention>
<wikiName>New York Stock Exchange</wikiName>
<offset>3003</offset>
<length>23</length>
</annotation>
<annotation>
<mention>Newmonth</mention>
<wikiName></wikiName>
<offset>3034</offset>
<length>8</length>
</annotation>
<annotation>
<mention>Santa Fe</mention>
<wikiName></wikiName>
<offset>3071</offset>
<length>8</length>
</annotation>
<annotation>
<mention>Newmont</mention>
<wikiName>Newmont Mining Corporation</wikiName>
<offset>3103</offset>
<length>7</length>
</annotation>
<annotation>
<mention>Santa Fe</mention>
<wikiName></wikiName>
<offset>3157</offset>
<length>8</length>
</annotation>
<annotation>
<mention>Newmont</mention>
<wikiName>Newmont Mining Corporation</wikiName>
<offset>3299</offset>
<length>7</length>
</annotation>
<annotation>
<mention>Newmont</mention>
<wikiName>Newmont Mining Corporation</wikiName>
<offset>3331</offset>
<length>7</length>
</annotation>
<annotation>
<mention>Santa Fe</mention>
<wikiName></wikiName>
<offset>3442</offset>
<length>8</length>
</annotation>
<annotation>
<mention>Wall Street Desk</mention>
<wikiName></wikiName>
<offset>3464</offset>
<length>16</length>
</annotation>
</document>
<document docName="239469newsML.txt">
<annotation>
<mention>Russ Berrie</mention>
<wikiName>Kid Brands</wikiName>
<offset>0</offset>
<length>11</length>
</annotation>
<annotation>
<mention>OAKLAND</mention>
<wikiName>Oakland, New Jersey</wikiName>
<offset>42</offset>
<length>7</length>
</annotation>
<annotation>
<mention>N.J.</mention>
<wikiName>New Jersey</wikiName>
<offset>51</offset>
<length>4</length>
</annotation>
<annotation>
<mention>Russ Berrie and Co Inc</mention>
<wikiName></wikiName>
<offset>68</offset>
<length>22</length>
</annotation>
<annotation>
<mention>A. Curts Cooke</mention>
<wikiName></wikiName>
<offset>111</offset>
<length>14</length>
</annotation>
<annotation>
<mention>Cooke</mention>
<wikiName></wikiName>
<offset>204</offset>
<length>5</length>
</annotation>
</document>
<document docName="239521newsML.txt">
<annotation>
<mention>Zimbabwe</mention>
<wikiName>Zimbabwe</wikiName>
<offset>0</offset>
<length>8</length>
</annotation>
<annotation>
<mention>HARARE</mention>
<wikiName>Harare</wikiName>
<offset>39</offset>
<length>6</length>
</annotation>
<annotation>
<mention>Zimbabwe</mention>
<wikiName>Zimbabwe</wikiName>
<offset>58</offset>
<length>8</length>
</annotation>
<annotation>
<mention>Piniel Sindiso Ncube</mention>
<wikiName></wikiName>
<offset>197</offset>
<length>20</length>
</annotation>
<annotation>
<mention>Robert Mugabe</mention>
<wikiName>Robert Mugabe</wikiName>
<offset>248</offset>
<length>13</length>
</annotation>
</document>
<document docName="239525newsML.txt">
<annotation>
<mention>Zaire</mention>
<wikiName>Democratic Republic of the Congo</wikiName>
<offset>43</offset>
<length>5</length>
</annotation>
<annotation>
<mention>Jonathan Wright</mention>
<wikiName></wikiName>
<offset>51</offset>
<length>15</length>
</annotation>
<annotation>
<mention>NAIROBI</mention>
<wikiName>Nairobi</wikiName>
<offset>68</offset>
<length>7</length>
</annotation>
<annotation>
<mention>Canadian</mention>
<wikiName>Canada</wikiName>
<offset>92</offset>
<length>8</length>
</annotation>
<annotation>
<mention>Zaire</mention>
<wikiName>Democratic Republic of the Congo</wikiName>
<offset>156</offset>
<length>5</length>
</annotation>
<annotation>
<mention>Zaire</mention>
<wikiName>Democratic Republic of the Congo</wikiName>
<offset>198</offset>
<length>5</length>
</annotation>
<annotation>
<mention>Rwandan</mention>
<wikiName>Rwanda</wikiName>
<offset>259</offset>
<length>7</length>
</annotation>
<annotation>
<mention>Maurice Baril</mention>
<wikiName>Maurice Baril</wikiName>
<offset>323</offset>
<length>13</length>
</annotation>
<annotation>
<mention>Nairobi</mention>
<wikiName>Nairobi</wikiName>
<offset>363</offset>
<length>7</length>
</annotation>
<annotation>
<mention>Goma</mention>
<wikiName>Goma</wikiName>
<offset>519</offset>
<length>4</length>
</annotation>
<annotation>
<mention>Kinshasa</mention>
<wikiName>Kinshasa</wikiName>
<offset>694</offset>
<length>8</length>
</annotation>
<annotation>
<mention>Zairean</mention>
<wikiName>Democratic Republic of the Congo</wikiName>
<offset>711</offset>
<length>7</length>
</annotation>
<annotation>
<mention>Zaire</mention>
<wikiName>Democratic Republic of the Congo</wikiName>
<offset>754</offset>
<length>5</length>
</annotation>
<annotation>
<mention>Rwanda</mention>
<wikiName>Rwanda</wikiName>
<offset>796</offset>
<length>6</length>
</annotation>
<annotation>
<mention>Zaire</mention>
<wikiName>Democratic Republic of the Congo</wikiName>
<offset>849</offset>
<length>5</length>
</annotation>
<annotation>
<mention>Baril</mention>
<wikiName>Maurice Baril</wikiName>
<offset>951</offset>
<length>5</length>
</annotation>
<annotation>
<mention>Laurent Kabila</mention>
<wikiName>Laurent-Désiré Kabila</wikiName>
<offset>974</offset>
<length>14</length>
</annotation>
<annotation>
<mention>Goma</mention>
<wikiName>Goma</wikiName>
<offset>992</offset>
<length>4</length>
</annotation>
<annotation>
<mention>Rwandan</mention>
<wikiName>Rwanda</wikiName>
<offset>1071</offset>
<length>7</length>
</annotation>
<annotation>
<mention>Zairean</mention>
<wikiName>Democratic Republic of the Congo</wikiName>
<offset>1211</offset>
<length>7</length>
</annotation>
<annotation>
<mention>Kinshasa</mention>
<wikiName>Kinshasa</wikiName>
<offset>1253</offset>
<length>8</length>
</annotation>
<annotation>
<mention>Canadian</mention>
<wikiName>Canada</wikiName>
<offset>1377</offset>
<length>8</length>
</annotation>
<annotation>
<mention>Doug Young</mention>
<wikiName>Douglas Young</wikiName>
<offset>1403</offset>
<length>10</length>
</annotation>
<annotation>
<mention>Zaire</mention>
<wikiName>Democratic Republic of the Congo</wikiName>
<offset>1729</offset>
<length>5</length>
</annotation>
<annotation>
<mention>Rwanda</mention>
<wikiName>Rwanda</wikiName>
<offset>1739</offset>
<length>6</length>
</annotation>
<annotation>
<mention>Young</mention>
<wikiName>Douglas Young</wikiName>
<offset>1748</offset>
<length>5</length>
</annotation>
<annotation>
<mention>Baril</mention>
<wikiName>Maurice Baril</wikiName>
<offset>1783</offset>
<length>5</length>
</annotation>
<annotation>
<mention>Zairean</mention>
<wikiName>Democratic Republic of the Congo</wikiName>
<offset>2390</offset>
<length>7</length>
</annotation>
<annotation>
<mention>Zaire</mention>
<wikiName>Democratic Republic of the Congo</wikiName>
<offset>2676</offset>
<length>5</length>
</annotation>
<annotation>
<mention>U.N.</mention>
<wikiName>United Nations</wikiName>
<offset>2712</offset>
<length>4</length>
</annotation>
<annotation>
<mention>Security Council</mention>
<wikiName>United Nations Security Council</wikiName>
<offset>2730</offset>
<length>16</length>
</annotation>
<annotation>
<mention>Zairean</mention>
<wikiName>Democratic Republic of the Congo</wikiName>
<offset>2815</offset>
<length>7</length>
</annotation>
<annotation>
<mention>Kinshasa</mention>
<wikiName>Kinshasa</wikiName>
<offset>2990</offset>
<length>8</length>
</annotation>
<annotation>
<mention>Zairean</mention>
<wikiName>Democratic Republic of the Congo</wikiName>
<offset>3009</offset>
<length>7</length>
</annotation>
<annotation>
<mention>Baril</mention>
<wikiName>Maurice Baril</wikiName>
<offset>3233</offset>
<length>5</length>
</annotation>
<annotation>
<mention>U.S.</mention>
<wikiName>United States</wikiName>
<offset>3282</offset>
<length>4</length>
</annotation>
<annotation>
<mention>British</mention>
<wikiName>United Kingdom</wikiName>
<offset>3291</offset>
<length>7</length>
</annotation>
<annotation>
<mention>Bukavu</mention>
<wikiName>Bukavu</wikiName>
<offset>3458</offset>
<length>6</length>
</annotation>
<annotation>
<mention>Kindu</mention>
<wikiName>Kindu</wikiName>
<offset>3473</offset>
<length>5</length>
</annotation>
<annotation>
<mention>Kisangani</mention>
<wikiName>Kisangani</wikiName>
<offset>3485</offset>
<length>9</length>
</annotation>
<annotation>
<mention>Medecins sans Frontieres</mention>
<wikiName>Médecins Sans Frontières</wikiName>
<offset>3525</offset>
<length>24</length>
</annotation>
<annotation>
<mention>Goma-Bukavu</mention>
<wikiName></wikiName>
<offset>3630</offset>
<length>11</length>
</annotation>
<annotation>
<mention>Walikale</mention>
<wikiName>Walikale</wikiName>
<offset>3688</offset>
<length>8</length>
</annotation>
</document>
<document docName="239526newsML.txt">
<annotation>
<mention>Mauritius</mention>
<wikiName>Mauritius</wikiName>
<offset>0</offset>
<length>9</length>
</annotation>
<annotation>
<mention>PORT LOUIS</mention>
<wikiName>Port Louis</wikiName>
<offset>33</offset>
<length>10</length>
</annotation>
<annotation>
<mention>Mauritian</mention>
<wikiName>Mauritius</wikiName>
<offset>56</offset>
<length>9</length>
</annotation>
<annotation>
<mention>Indian Ocean</mention>
<wikiName></wikiName>
<offset>86</offset>
<length>12</length>
</annotation>
<annotation>
<mention>Daniella</mention>
<wikiName></wikiName>
<offset>211</offset>
<length>8</length>
</annotation>
<annotation>
<mention>Mauritius</mention>
<wikiName>Mauritius</wikiName>
<offset>390</offset>
<length>9</length>
</annotation>
<annotation>
<mention>Mauritius</mention>
<wikiName>Mauritius</wikiName>
<offset>536</offset>
<length>9</length>
</annotation>
<annotation>
<mention>Port Louis</mention>
<wikiName>Port Louis</wikiName>
<offset>622</offset>
<length>10</length>
</annotation>
<annotation>
<mention>Madagascar</mention>
<wikiName>Madagascar</wikiName>
<offset>745</offset>
<length>10</length>
</annotation>
</document>
<document docName="239528newsML.txt">
<annotation>
<mention>U.N.</mention>
<wikiName>United Nations</wikiName>
<offset>0</offset>
<length>4</length>
</annotation>
<annotation>
<mention>Central African Republic</mention>
<wikiName>Central African Republic</wikiName>
<offset>26</offset>
<length>24</length>
</annotation>
<annotation>
<mention>ABIDJAN</mention>
<wikiName>Abidjan</wikiName>
<offset>53</offset>
<length>7</length>
</annotation>
<annotation>
<mention>United Nations</mention>
<wikiName>United Nations</wikiName>
<offset>77</offset>
<length>14</length>
</annotation>
<annotation>
<mention>Central African Republic</mention>
<wikiName>Central African Republic</wikiName>
<offset>119</offset>
<length>24</length>
</annotation>
<annotation>
<mention>U.N.</mention>
<wikiName>United Nations</wikiName>
<offset>231</offset>
<length>4</length>
</annotation>
<annotation>
<mention>U.N.</mention>
<wikiName>United Nations</wikiName>
<offset>274</offset>
<length>4</length>
</annotation>
<annotation>
<mention>UNHCR</mention>
<wikiName>United Nations High Commissioner for Refugees</wikiName>
<offset>294</offset>
<length>5</length>
</annotation>
<annotation>
<mention>Bangui</mention>
<wikiName>Bangui</wikiName>
<offset>352</offset>
<length>6</length>
</annotation>
<annotation>
<mention>Abidjan</mention>
<wikiName>Abidjan</wikiName>
<offset>379</offset>
<length>7</length>
</annotation>
<annotation>
<mention>Ivory Coast</mention>
<wikiName>Ivory Coast</wikiName>
<offset>388</offset>
<length>11</length>
</annotation>
</document>
<document docName="239534newsML.txt">
<annotation>
<mention>Senegal</mention>
<wikiName>Senegal</wikiName>
<offset>0</offset>
<length>7</length>
</annotation>
<annotation>
<mention>U.N.</mention>
<wikiName>United Nations</wikiName>
<offset>38</offset>
<length>4</length>
</annotation>
<annotation>
<mention>DAKAR</mention>
<wikiName>Dakar</wikiName>
<offset>50</offset>
<length>5</length>
</annotation>
<annotation>
<mention>Senegal</mention>
<wikiName>Senegal</wikiName>
<offset>68</offset>
<length>7</length>
</annotation>
<annotation>
<mention>Abdou Diouf</mention>
<wikiName>Abdou Diouf</wikiName>
<offset>88</offset>
<length>11</length>
</annotation>
<annotation>
<mention>Moustapha Niasse</mention>
<wikiName>Moustapha Niasse</wikiName>
<offset>153</offset>
<length>16</length>
</annotation>
<annotation>
<mention>United Nations</mention>
<wikiName>United Nations</wikiName>
<offset>186</offset>
<length>14</length>
</annotation>
<annotation>
<mention>Diouf</mention>
<wikiName>Abdou Diouf</wikiName>
<offset>223</offset>
<length>5</length>
</annotation>
<annotation>
<mention>Franco-African</mention>
<wikiName></wikiName>
<offset>292</offset>
<length>14</length>
</annotation>
<annotation>
<mention>Burkina Faso</mention>
<wikiName>Burkina Faso</wikiName>
<offset>317</offset>
<length>12</length>
</annotation>
<annotation>
<mention>African</mention>
<wikiName>Africa</wikiName>
<offset>339</offset>
<length>7</length>
</annotation>
<annotation>
<mention>Boutros Boutros-Ghali</mention>
<wikiName>Boutros Boutros-Ghali</wikiName>
<offset>378</offset>
<length>21</length>
</annotation>
<annotation>
<mention>United States</mention>
<wikiName>United States</wikiName>
<offset>420</offset>
<length>13</length>
</annotation>
<annotation>
<mention>Egyptian</mention>
<wikiName>Egypt</wikiName>
<offset>467</offset>
<length>8</length>
</annotation>
<annotation>
<mention>African</mention>
<wikiName>Africa</wikiName>
<offset>511</offset>
<length>7</length>
</annotation>
<annotation>
<mention>Africa</mention>
<wikiName>Africa</wikiName>
<offset>535</offset>
<length>6</length>
</annotation>
<annotation>
<mention>Diouf</mention>
<wikiName>Abdou Diouf</wikiName>
<offset>595</offset>
<length>5</length>
</annotation>
<annotation>
<mention>Moustapha Niasse</mention>
<wikiName>Moustapha Niasse</wikiName>
<offset>674</offset>
<length>16</length>
</annotation>
<annotation>
<mention>United Nations</mention>
<wikiName>United Nations</wikiName>
<offset>747</offset>
<length>14</length>
</annotation>
</document>
<document docName="239546newsML.txt">
<annotation>
<mention>Central Africa</mention>
<wikiName>Central African Republic</wikiName>
<offset>27</offset>
<length>14</length>
</annotation>
<annotation>
<mention>Raphael Kopessoua</mention>
<wikiName></wikiName>
<offset>51</offset>
<length>17</length>
</annotation>
<annotation>
<mention>BANGUI</mention>
<wikiName>Bangui</wikiName>
<offset>70</offset>
<length>6</length>
</annotation>
<annotation>
<mention>Central African Republic</mention>
<wikiName>Central African Republic</wikiName>
<offset>118</offset>
<length>24</length>
</annotation>
<annotation>
<mention>Bangui</mention>
<wikiName>Bangui</wikiName>
<offset>240</offset>
<length>6</length>
</annotation>
<annotation>
<mention>France</mention>
<wikiName>France</wikiName>
<offset>328</offset>
<length>6</length>
</annotation>
<annotation>
<mention>Bangui</mention>
<wikiName>Bangui</wikiName>
<offset>366</offset>
<length>6</length>
</annotation>
<annotation>
<mention>France</mention>
<wikiName>France</wikiName>
<offset>494</offset>
<length>6</length>
</annotation>
<annotation>
<mention>Jacques Chirac</mention>
<wikiName>Jacques Chirac</wikiName>
<offset>565</offset>
<length>14</length>
</annotation>
<annotation>
<mention>Franco-African</mention>
<wikiName></wikiName>
<offset>619</offset>
<length>14</length>
</annotation>
<annotation>
<mention>Burkina Faso</mention>
<wikiName>Burkina Faso</wikiName>
<offset>644</offset>
<length>12</length>
</annotation>
<annotation>
<mention>French</mention>
<wikiName>France</wikiName>
<offset>660</offset>
<length>6</length>
</annotation>
<annotation>
<mention>David Dofara</mention>
<wikiName></wikiName>
<offset>804</offset>
<length>12</length>
</annotation>
<annotation>
<mention>Red Cross</mention>
<wikiName></wikiName>
<offset>850</offset>
<length>9</length>
</annotation>
<annotation>
<mention>Reuters</mention>
<wikiName>Reuters</wikiName>
<offset>866</offset>
<length>7</length>
</annotation>
<annotation>
<mention>Christophe Grelombe</mention>
<wikiName></wikiName>
<offset>925</offset>
<length>19</length>
</annotation>
<annotation>
<mention>Ange-Felix Patasse</mention>
<wikiName>Ange-Félix Patassé</wikiName>
<offset>1043</offset>
<length>18</length>
</annotation>
<annotation>
<mention>Grelombe</mention>
<wikiName></wikiName>
<offset>1151</offset>
<length>8</length>
</annotation>
<annotation>
<mention>Yakoma</mention>
<wikiName>Yakoma people</wikiName>
<offset>1172</offset>
<length>6</length>
</annotation>
<annotation>
<mention>Patasse</mention>
<wikiName></wikiName>
<offset>1306</offset>
<length>7</length>
</annotation>
<annotation>
<mention>French</mention>
<wikiName>France</wikiName>
<offset>1512</offset>
<length>6</length>
</annotation>
<annotation>
<mention>Bangui</mention>
<wikiName>Bangui</wikiName>
<offset>1535</offset>
<length>6</length>
</annotation>
<annotation>
<mention>Dofora</mention>
<wikiName></wikiName>
<offset>1638</offset>
<length>6</length>
</annotation>
<annotation>
<mention>French</mention>
<wikiName>France</wikiName>
<offset>1710</offset>
<length>6</length>
</annotation>
<annotation>
<mention>French-owned</mention>
<wikiName></wikiName>
<offset>1799</offset>
<length>12</length>
</annotation>
<annotation>
<mention>Yakomas</mention>
<wikiName></wikiName>
<offset>1841</offset>
<length>7</length>
</annotation>
<annotation>
<mention>Patasse</mention>
<wikiName></wikiName>
<offset>1888</offset>
<length>7</length>
</annotation>
<annotation>
<mention>Baya</mention>
<wikiName></wikiName>
<offset>1898</offset>
<length>4</length>
</annotation>
<annotation>
<mention>Bangui</mention>
<wikiName>Bangui</wikiName>
<offset>2023</offset>
<length>6</length>
</annotation>
<annotation>
<mention>French</mention>
<wikiName>France</wikiName>
<offset>2053</offset>
<length>6</length>
</annotation>
<annotation>
<mention>Franco-African</mention>
<wikiName></wikiName>
<offset>2148</offset>
<length>14</length>
</annotation>
<annotation>
<mention>Bangui</mention>
<wikiName>Bangui</wikiName>
<offset>2196</offset>
<length>6</length>
</annotation>
<annotation>
<mention>Chirac</mention>
<wikiName>Jacques Chirac</wikiName>
<offset>2269</offset>
<length>6</length>
</annotation>
<annotation>
<mention>Burkina Faso</mention>
<wikiName>Burkina Faso</wikiName>
<offset>2281</offset>
<length>12</length>
</annotation>
<annotation>
<mention>Blaise Compaore</mention>
<wikiName>Blaise Compaoré</wikiName>
<offset>2304</offset>
<length>15</length>
</annotation>
<annotation>
<mention>Bangui</mention>
<wikiName>Bangui</wikiName>
<offset>2332</offset>
<length>6</length>
</annotation>
<annotation>
<mention>Gabon</mention>
<wikiName>Gabon</wikiName>
<offset>2388</offset>
<length>5</length>
</annotation>
<annotation>
<mention>Mali</mention>
<wikiName>Mali</wikiName>
<offset>2395</offset>
<length>4</length>
</annotation>
<annotation>
<mention>Chad</mention>
<wikiName></wikiName>
<offset>2404</offset>
<length>4</length>
</annotation>
<annotation>
<mention>Patasse</mention>
<wikiName></wikiName>
<offset>2490</offset>
<length>7</length>
</annotation>
<annotation>
<mention>Patasse</mention>
<wikiName></wikiName>
<offset>2590</offset>
<length>7</length>
</annotation>
<annotation>
<mention>Central Africa</mention>
<wikiName>Central African Republic</wikiName>
<offset>2607</offset>
<length>14</length>
</annotation>
<annotation>
<mention>French</mention>
<wikiName>France</wikiName>
<offset>2803</offset>
<length>6</length>
</annotation>
<annotation>
<mention>Patasse</mention>
<wikiName></wikiName>
<offset>2900</offset>
<length>7</length>
</annotation>
<annotation>
<mention>Patasse</mention>
<wikiName></wikiName>
<offset>3033</offset>
<length>7</length>
</annotation>
<annotation>
<mention>Sudan</mention>
<wikiName>Sudan</wikiName>
<offset>3112</offset>
<length>5</length>
</annotation>
<annotation>
<mention>Chad</mention>
<wikiName></wikiName>
<offset>3122</offset>
<length>4</length>
</annotation>
<annotation>
<mention>Codos</mention>
<wikiName>Codos</wikiName>
<offset>3218</offset>
<length>5</length>
</annotation>
<annotation>
<mention>French</mention>
<wikiName>France</wikiName>
<offset>3549</offset>
<length>6</length>
</annotation>
</document>
<document docName="239574newsML.txt">
<annotation>
<mention>SAfrican</mention>
<wikiName></wikiName>
<offset>12</offset>
<length>8</length>
</annotation>
<annotation>
<mention>JOHANNESBURG</mention>
<wikiName>Johannesburg</wikiName>
<offset>46</offset>
<length>12</length>
</annotation>
<annotation>
<mention>South Africa</mention>
<wikiName>South Africa</wikiName>
<offset>185</offset>
<length>12</length>
</annotation>
<annotation>
<mention>North West</mention>
<wikiName>North West (South African province)</wikiName>
<offset>200</offset>
<length>10</length>
</annotation>
<annotation>
<mention>Mafikeng</mention>
<wikiName>Mahikeng</wikiName>
<offset>283</offset>
<length>8</length>
</annotation>
</document>
<document docName="239597newsML.txt">
<annotation>
<mention>CIS</mention>
<wikiName></wikiName>
<offset>24</offset>
<length>3</length>
</annotation>
<annotation>
<mention>MOSCOW</mention>
<wikiName>Moscow</wikiName>
<offset>47</offset>
<length>6</length>
</annotation>
<annotation>
<mention>CIS</mention>
<wikiName></wikiName>
<offset>97</offset>
<length>3</length>
</annotation>
<annotation>
<mention>Russian Weather Service</mention>
<wikiName></wikiName>
<offset>148</offset>
<length>23</length>
</annotation>
<annotation>
<mention>Moscow Newsroom</mention>
<wikiName></wikiName>
<offset>191</offset>
<length>15</length>
</annotation>
</document>
<document docName="239607newsML.txt">
<annotation>
<mention>Bratislava</mention>
<wikiName>Bratislava</wikiName>
<offset>17</offset>
<length>10</length>
</annotation>
<annotation>
<mention>BRATISLAVA</mention>
<wikiName>Bratislava</wikiName>
<offset>45</offset>
<length>10</length>
</annotation>
<annotation>
<mention>Bratislava</mention>
<wikiName>Bratislava</wikiName>
<offset>118</offset>
<length>10</length>
</annotation>
<annotation>
<mention>Baruch Meyers</mention>
<wikiName></wikiName>
<offset>130</offset>
<length>13</length>
</annotation>
<annotation>
<mention>Reuters</mention>
<wikiName>Reuters</wikiName>
<offset>224</offset>
<length>7</length>
</annotation>
<annotation>
<mention>Meyers</mention>
<wikiName></wikiName>
<offset>629</offset>
<length>6</length>
</annotation>
<annotation>
<mention>American</mention>
<wikiName>United States</wikiName>
<offset>640</offset>
<length>8</length>
</annotation>
<annotation>
<mention>Meyers</mention>
<wikiName></wikiName>
<offset>650</offset>
<length>6</length>
</annotation>
</document>
<document docName="239624newsML.txt">
<annotation>
<mention>Albanian</mention>
<wikiName>Albania</wikiName>
<offset>0</offset>
<length>8</length>
</annotation>
<annotation>
<mention>TIRANA</mention>
<wikiName>Tirana</wikiName>
<offset>45</offset>
<length>6</length>
</annotation>
<annotation>
<mention>Albanian</mention>
<wikiName>Albania</wikiName>
<offset>67</offset>
<length>8</length>
</annotation>
<annotation>
<mention>Sali Berisha</mention>
<wikiName>Sali Berisha</wikiName>
<offset>160</offset>
<length>12</length>
</annotation>
<annotation>
<mention>Buza</mention>
<wikiName></wikiName>
<offset>256</offset>
<length>4</length>
</annotation>
<annotation>
<mention>Berisha</mention>
<wikiName>Sali Berisha</wikiName>
<offset>368</offset>
<length>7</length>
</annotation>
<annotation>
<mention>Italian</mention>
<wikiName>Italy</wikiName>
<offset>405</offset>
<length>7</length>
</annotation>
<annotation>
<mention>Oscar Luigi Scalfaro</mention>
<wikiName>Oscar Luigi Scalfaro</wikiName>
<offset>423</offset>
<length>20</length>
</annotation>
<annotation>
<mention>Buza</mention>
<wikiName></wikiName>
<offset>446</offset>
<length>4</length>
</annotation>
<annotation>
<mention>Tirana</mention>
<wikiName>Tirana</wikiName>
<offset>648</offset>
<length>6</length>
</annotation>
<annotation>
<mention>Qazim Gjonaj</mention>
<wikiName></wikiName>
<offset>661</offset>
<length>12</length>
</annotation>
<annotation>
<mention>Buza</mention>
<wikiName></wikiName>
<offset>830</offset>
<length>4</length>
</annotation>
<annotation>
<mention>Gjonaj</mention>
<wikiName></wikiName>
<offset>909</offset>
<length>6</length>
</annotation>
</document>
<document docName="239637newsML.txt">
<annotation>
<mention>Polish</mention>
<wikiName>Poland</wikiName>
<offset>0</offset>
<length>6</length>
</annotation>
<annotation>
<mention>WARSAW</mention>
<wikiName>Warsaw</wikiName>
<offset>46</offset>
<length>6</length>
</annotation>
<annotation>
<mention>Poland</mention>
<wikiName>Poland</wikiName>
<offset>65</offset>
<length>6</length>
</annotation>
<annotation>
<mention>Aleksander Kwasniewski</mention>
<wikiName>Aleksander Kwaśniewski</wikiName>
<offset>97</offset>
<length>22</length>
</annotation>
<annotation>
<mention>John Paul</mention>
<wikiName></wikiName>
<offset>156</offset>
<length>9</length>
</annotation>
<annotation>
<mention>Vatican</mention>
<wikiName>Vatican City</wikiName>
<offset>217</offset>
<length>7</length>
</annotation>
<annotation>
<mention>Warsaw</mention>
<wikiName>Warsaw</wikiName>
<offset>229</offset>
<length>6</length>
</annotation>
<annotation>
<mention>Kwasniewski</mention>
<wikiName>Aleksander Kwaśniewski</wikiName>
<offset>286</offset>
<length>11</length>
</annotation>
<annotation>
<mention>Italy</mention>
<wikiName>Italy</wikiName>
<offset>313</offset>
<length>5</length>
</annotation>
<annotation>
<mention>Oscar Scalfaro</mention>
<wikiName>Oscar Luigi Scalfaro</wikiName>
<offset>350</offset>
<length>14</length>
</annotation>
<annotation>
<mention>Dariusz Rosati</mention>
<wikiName>Dariusz Rosati</wikiName>
<offset>408</offset>
<length>14</length>
</annotation>
<annotation>
<mention>Rosati</mention>
<wikiName>Dariusz Rosati</wikiName>
<offset>448</offset>
<length>6</length>
</annotation>
<annotation>
<mention>Warsaw</mention>
<wikiName>Warsaw</wikiName>
<offset>597</offset>
<length>6</length>
</annotation>
<annotation>
<mention>Vatican</mention>
<wikiName>Vatican City</wikiName>
<offset>612</offset>
<length>7</length>
</annotation>
<annotation>
<mention>Democratic Left Alliance</mention>
<wikiName>Democratic Left Alliance</wikiName>
<offset>860</offset>
<length>24</length>
</annotation>
<annotation>
<mention>Catholic Church</mention>
<wikiName>Catholic Church</wikiName>
<offset>920</offset>
<length>15</length>
</annotation>
<annotation>
<mention>Poland</mention>
<wikiName>Poland</wikiName>
<offset>968</offset>
<length>6</length>
</annotation>
<annotation>
<mention>Vatican</mention>
<wikiName>Vatican City</wikiName>
<offset>1073</offset>
<length>7</length>
</annotation>
<annotation>
<mention>Poland</mention>
<wikiName>Poland</wikiName>
<offset>1129</offset>
<length>6</length>
</annotation>
<annotation>
<mention>Kwasniewski</mention>
<wikiName>Aleksander Kwaśniewski</wikiName>
<offset>1165</offset>
<length>11</length>
</annotation>
</document>
<document docName="239652newsML.txt">
<annotation>
<mention>Russia</mention>
<wikiName>Russia</wikiName>
<offset>0</offset>
<length>6</length>
</annotation>
<annotation>
<mention>Norilsk</mention>
<wikiName></wikiName>
<offset>13</offset>
<length>7</length>
</annotation>
<annotation>
<mention>Lynnley Browning</mention>
<wikiName></wikiName>
<offset>53</offset>
<length>16</length>
</annotation>
<annotation>
<mention>MOSCOW</mention>
<wikiName>Moscow</wikiName>
<offset>71</offset>
<length>6</length>
</annotation>
<annotation>
<mention>Russian</mention>
<wikiName>Russia</wikiName>
<offset>90</offset>
<length>7</length>
</annotation>
<annotation>
<mention>Alexander Livshits</mention>
<wikiName></wikiName>
<offset>115</offset>
<length>18</length>
</annotation>
<annotation>
<mention>Norilsk Nickel</mention>
<wikiName>Norilsk Nickel</wikiName>
<offset>162</offset>
<length>14</length>
</annotation>
<annotation>
<mention>Norilsk</mention>
<wikiName></wikiName>
<offset>314</offset>
<length>7</length>
</annotation>
<annotation>
<mention>Konstantin Chernyshev</mention>
<wikiName></wikiName>
<offset>395</offset>
<length>21</length>
</annotation>
<annotation>
<mention>Moscow</mention>
<wikiName>Moscow</wikiName>
<offset>438</offset>
<length>6</length>
</annotation>
<annotation>
<mention>Rinaco Plus</mention>
<wikiName></wikiName>
<offset>455</offset>
<length>11</length>
</annotation>
<annotation>
<mention>Norilsk</mention>
<wikiName></wikiName>
<offset>473</offset>
<length>7</length>
</annotation>
<annotation>
<mention>Livshits</mention>
<wikiName></wikiName>
<offset>491</offset>
<length>8</length>
</annotation>
<annotation>
<mention>Itar-Tass</mention>
<wikiName>Information Telegraph Agency of Russia</wikiName>
<offset>570</offset>
<length>9</length>
</annotation>
<annotation>
<mention>Livshits</mention>
<wikiName></wikiName>
<offset>599</offset>
<length>8</length>
</annotation>
<annotation>
<mention>RAO Norilsky Nikel</mention>
<wikiName></wikiName>
<offset>647</offset>
<length>18</length>
</annotation>
<annotation>
<mention>Christopher Granville</mention>
<wikiName></wikiName>
<offset>870</offset>
<length>21</length>
</annotation>
<annotation>
<mention>United City Bank</mention>
<wikiName></wikiName>
<offset>912</offset>
<length>16</length>
</annotation>
<annotation>
<mention>Moscow</mention>
<wikiName>Moscow</wikiName>
<offset>932</offset>
<length>6</length>
</annotation>
<annotation>
<mention>Russian</mention>
<wikiName>Russia</wikiName>
<offset>1070</offset>
<length>7</length>
</annotation>
<annotation>
<mention>International Monetary Fund</mention>
<wikiName>International Monetary Fund</wikiName>
<offset>1131</offset>
<length>27</length>
</annotation>
<annotation>
<mention>Moscow</mention>
<wikiName>Russia</wikiName>
<offset>1256</offset>
<length>6</length>
</annotation>
<annotation>
<mention>Russia</mention>
<wikiName>Russia</wikiName>
<offset>1315</offset>
<length>6</length>
</annotation>
<annotation>
<mention>Chernyshev</mention>
<wikiName></wikiName>
<offset>1519</offset>
<length>10</length>
</annotation>
<annotation>
<mention>Norilsk</mention>
<wikiName></wikiName>
<offset>1630</offset>
<length>7</length>
</annotation>
<annotation>
<mention>Moscow</mention>
<wikiName>Russia</wikiName>
<offset>1674</offset>
<length>6</length>
</annotation>
<annotation>
<mention>Norilsk</mention>
<wikiName></wikiName>
<offset>1796</offset>
<length>7</length>
</annotation>
<annotation>
<mention>Norilsk</mention>
<wikiName></wikiName>
<offset>1814</offset>
<length>7</length>
</annotation>
<annotation>
<mention>Norilsk</mention>
<wikiName></wikiName>
<offset>1904</offset>
<length>7</length>
</annotation>
<annotation>
<mention>Norilsk</mention>
<wikiName></wikiName>
<offset>2110</offset>
<length>7</length>
</annotation>
<annotation>
<mention>Tass</mention>
<wikiName></wikiName>
<offset>2232</offset>
<length>4</length>
</annotation>
<annotation>
<mention>Livshits</mention>
<wikiName></wikiName>
<offset>2244</offset>
<length>8</length>
</annotation>
<annotation>
<mention>Duma</mention>
<wikiName></wikiName>
<offset>2264</offset>
<length>4</length>
</annotation>
<annotation>
<mention>Norilsk</mention>
<wikiName></wikiName>
<offset>2284</offset>
<length>7</length>
</annotation>
<annotation>
<mention>Norilsk</mention>
<wikiName></wikiName>
<offset>2329</offset>
<length>7</length>
</annotation>
<annotation>
<mention>Norilsk</mention>
<wikiName></wikiName>
<offset>2438</offset>
<length>7</length>
</annotation>
<annotation>
<mention>Chernyshev</mention>
<wikiName></wikiName>
<offset>2541</offset>
<length>10</length>
</annotation>
<annotation>
<mention>Krasnoyarsk</mention>
<wikiName>Krasnoyarsk Krai</wikiName>
<offset>2664</offset>
<length>11</length>
</annotation>
<annotation>
<mention>Norilsk</mention>
<wikiName></wikiName>
<offset>2707</offset>
<length>7</length>
</annotation>
<annotation>
<mention>Norilsk</mention>
<wikiName></wikiName>
<offset>2723</offset>
<length>7</length>
</annotation>
<annotation>
<mention>Russian</mention>
<wikiName>Russia</wikiName>
<offset>2759</offset>
<length>7</length>
</annotation>
<annotation>
<mention>Uneximbank</mention>
<wikiName></wikiName>
<offset>2783</offset>
<length>10</length>
</annotation>
<annotation>
<mention>Interrosimpex</mention>
<wikiName></wikiName>
<offset>2845</offset>
<length>13</length>
</annotation>
<annotation>
<mention>Norilsk</mention>
<wikiName></wikiName>
<offset>2938</offset>
<length>7</length>
</annotation>
<annotation>
<mention>Uneximbank</mention>
<wikiName></wikiName>
<offset>2961</offset>
<length>10</length>
</annotation>
<annotation>
<mention>Norilsk</mention>
<wikiName></wikiName>
<offset>3089</offset>
<length>7</length>
</annotation>
<annotation>
<mention>Moscow Newsroom</mention>
<wikiName></wikiName>
<offset>3375</offset>
<length>15</length>
</annotation>
</document>
<document docName="239665newsML.txt">
<annotation>
<mention>Estonian</mention>
<wikiName>Estonia</wikiName>
<offset>0</offset>
<length>8</length>
</annotation>
<annotation>
<mention>Tallinna Pank</mention>
<wikiName></wikiName>
<offset>9</offset>
<length>13</length>
</annotation>
<annotation>
<mention>TALLINN</mention>
<wikiName>Tallinn</wikiName>
<offset>51</offset>
<length>7</length>
</annotation>
<annotation>
<mention>Tallinna Pank</mention>
<wikiName></wikiName>
<offset>71</offset>
<length>13</length>
</annotation>
<annotation>
<mention>Estonia</mention>
<wikiName>Estonia</wikiName>
<offset>114</offset>
<length>7</length>
</annotation>
<annotation>
<mention>Tallinna Pank</mention>
<wikiName></wikiName>
<offset>362</offset>
<length>13</length>
</annotation>
<annotation>
<mention>Riga Newsroom</mention>
<wikiName></wikiName>
<offset>595</offset>
<length>13</length>
</annotation>
</document>
<document docName="239673newsML.txt">
<annotation>
<mention>Russia</mention>
<wikiName>Russia</wikiName>
<offset>0</offset>
<length>6</length>
</annotation>
<annotation>
<mention>Albright</mention>
<wikiName>Madeleine Albright</wikiName>
<offset>40</offset>
<length>8</length>
</annotation>
<annotation>
<mention>MOSCOW</mention>
<wikiName>Moscow</wikiName>
<offset>51</offset>
<length>6</length>
</annotation>
<annotation>
<mention>Russia</mention>
<wikiName>Russia</wikiName>
<offset>70</offset>
<length>6</length>
</annotation>
<annotation>
<mention>Madeleine Albright</mention>
<wikiName>Madeleine Albright</wikiName>
<offset>137</offset>
<length>18</length>
</annotation>
<annotation>
<mention>U.S.</mention>
<wikiName>United States</wikiName>
<offset>170</offset>
<length>4</length>
</annotation>
<annotation>
<mention>Bill Clinton</mention>
<wikiName>Bill Clinton</wikiName>
<offset>185</offset>
<length>12</length>
</annotation>
<annotation>
<mention>Interfax</mention>
<wikiName>Interfax</wikiName>
<offset>225</offset>
<length>8</length>
</annotation>
<annotation>
<mention>Igor Ivanov</mention>
<wikiName>Igor Ivanov</wikiName>
<offset>283</offset>
<length>11</length>
</annotation>
<annotation>
<mention>Moscow</mention>
<wikiName>Russia</wikiName>
<offset>305</offset>
<length>6</length>
</annotation>
<annotation>
<mention>Albright</mention>
<wikiName>Madeleine Albright</wikiName>
<offset>367</offset>
<length>8</length>
</annotation>
<annotation>
<mention>Clinton</mention>
<wikiName>Bill Clinton</wikiName>
<offset>421</offset>
<length>7</length>
</annotation>
<annotation>
<mention>Boris Yeltsin</mention>
<wikiName>Boris Yeltsin</wikiName>
<offset>443</offset>
<length>13</length>
</annotation>
<annotation>
<mention>Clinton</mention>
<wikiName>Bill Clinton</wikiName>
<offset>459</offset>
<length>7</length>
</annotation>
<annotation>
<mention>Yeltsin</mention>
<wikiName>Boris Yeltsin</wikiName>
<offset>471</offset>
<length>7</length>
</annotation>
<annotation>
<mention>Russian</mention>
<wikiName>Russia</wikiName>
<offset>622</offset>
<length>7</length>
</annotation>
<annotation>
<mention>Russian-U.S.</mention>
<wikiName></wikiName>
<offset>697</offset>
<length>12</length>
</annotation>
<annotation>
<mention>Ivanov</mention>
<wikiName>Igor Ivanov</wikiName>
<offset>747</offset>
<length>6</length>
</annotation>
<annotation>
<mention>Interfax</mention>
<wikiName>Interfax</wikiName>
<offset>759</offset>
<length>8</length>
</annotation>
<annotation>
<mention>Interfax</mention>
<wikiName>Interfax</wikiName>
<offset>770</offset>
<length>8</length>
</annotation>
<annotation>
<mention>Albright</mention>
<wikiName>Madeleine Albright</wikiName>
<offset>790</offset>
<length>8</length>
</annotation>
<annotation>
<mention>Washington</mention>
<wikiName>United States</wikiName>
<offset>846</offset>
<length>10</length>
</annotation>
<annotation>
<mention>U.S.</mention>
<wikiName>United States</wikiName>
<offset>881</offset>
<length>4</length>
</annotation>
<annotation>
<mention>United Nations</mention>
<wikiName>United Nations</wikiName>
<offset>904</offset>
<length>14</length>
</annotation>
<annotation>
<mention>NATO</mention>
<wikiName>NATO</wikiName>
<offset>966</offset>
<length>4</length>
</annotation>
<annotation>
<mention>Russia</mention>
<wikiName>Russia</wikiName>
<offset>1001</offset>
<length>6</length>
</annotation>
<annotation>
<mention>NATO</mention>
<wikiName>NATO</wikiName>
<offset>1016</offset>
<length>4</length>
</annotation>
<annotation>
<mention>Europe</mention>
<wikiName>Europe</wikiName>
<offset>1073</offset>
<length>6</length>
</annotation>
<annotation>
<mention>Soviet-led</mention>
<wikiName></wikiName>
<offset>1109</offset>
<length>10</length>
</annotation>
<annotation>
<mention>Warsaw Pact</mention>
<wikiName>Warsaw Pact</wikiName>
<offset>1120</offset>
<length>11</length>
</annotation>
</document>
<document docName="239684newsML.txt">
<annotation>
<mention>Yeltsin</mention>
<wikiName>Boris Yeltsin</wikiName>
<offset>0</offset>
<length>7</length>
</annotation>
<annotation>
<mention>Kremlin</mention>
<wikiName>Moscow Kremlin</wikiName>
<offset>24</offset>
<length>7</length>
</annotation>
<annotation>
<mention>MOSCOW</mention>
<wikiName>Moscow</wikiName>
<offset>55</offset>
<length>6</length>
</annotation>
<annotation>
<mention>Russian</mention>
<wikiName>Russia</wikiName>
<offset>74</offset>
<length>7</length>
</annotation>
<annotation>
<mention>Boris Yeltsin</mention>
<wikiName>Boris Yeltsin</wikiName>
<offset>92</offset>
<length>13</length>
</annotation>
<annotation>
<mention>Interfax</mention>
<wikiName>Interfax</wikiName>
<offset>238</offset>
<length>8</length>
</annotation>
<annotation>
<mention>Yegor Stroyev</mention>
<wikiName>Yegor Stroyev</wikiName>
<offset>349</offset>
<length>13</length>
</annotation>
<annotation>
<mention>Yeltsin</mention>
<wikiName>Boris Yeltsin</wikiName>
<offset>371</offset>
<length>7</length>
</annotation>
<annotation>
<mention>Russia</mention>
<wikiName>Russia</wikiName>
<offset>545</offset>
<length>6</length>
</annotation>
<annotation>
<mention>Yeltsin</mention>
<wikiName>Boris Yeltsin</wikiName>
<offset>581</offset>
<length>7</length>
</annotation>
<annotation>
<mention>Kremlin</mention>
<wikiName>Moscow Kremlin</wikiName>
<offset>606</offset>
<length>7</length>
</annotation>
<annotation>
<mention>Mikhail Gorbachev</mention>
<wikiName>Mikhail Gorbachev</wikiName>
<offset>719</offset>
<length>17</length>
</annotation>
<annotation>
<mention>Soviet Union</mention>
<wikiName>Soviet Union</wikiName>
<offset>770</offset>
<length>12</length>
</annotation>
<annotation>
<mention>Yeltsin</mention>
<wikiName>Boris Yeltsin</wikiName>
<offset>785</offset>
<length>7</length>
</annotation>
<annotation>
<mention>Renat Akchurin</mention>
<wikiName></wikiName>
<offset>960</offset>
<length>14</length>
</annotation>
<annotation>
<mention>Itar-Tass</mention>
<wikiName>Information Telegraph Agency of Russia</wikiName>
<offset>1003</offset>
<length>9</length>
</annotation>
<annotation>
<mention>Yeltsin</mention>
<wikiName>Boris Yeltsin</wikiName>
<offset>1025</offset>
<length>7</length>
</annotation>
</document>
<document docName="239704newsML.txt">
<annotation>
<mention>Slovak</mention>
<wikiName>Slovakia</wikiName>
<offset>39</offset>
<length>6</length>
</annotation>
<annotation>
<mention>BRATISLAVA</mention>
<wikiName>Bratislava</wikiName>
<offset>51</offset>
<length>10</length>
</annotation>
<annotation>
<mention>Slovak</mention>
<wikiName>Slovakia</wikiName>
<offset>122</offset>
<length>6</length>
</annotation>
<annotation>
<mention>TASR</mention>
<wikiName></wikiName>
<offset>262</offset>
<length>4</length>
</annotation>
<annotation>
<mention>Frantisek Gaulieder</mention>
<wikiName></wikiName>
<offset>335</offset>
<length>19</length>
</annotation>
<annotation>
<mention>Galanta</mention>
<wikiName>Galanta</wikiName>
<offset>372</offset>
<length>7</length>
</annotation>
<annotation>
<mention>Slovakia</mention>
<wikiName>Slovakia</wikiName>
<offset>389</offset>
<length>8</length>
</annotation>
<annotation>
<mention>Gaulieder</mention>
<wikiName></wikiName>
<offset>455</offset>
<length>9</length>
</annotation>
<annotation>
<mention>Vladimir Meciar</mention>
<wikiName>Vladimír Mečiar</wikiName>
<offset>502</offset>
<length>15</length>
</annotation>
<annotation>
<mention>Movement for a Democratic Slovakia</mention>
<wikiName>People's Party – Movement for a Democratic Slovakia</wikiName>
<offset>527</offset>
<length>34</length>
</annotation>
<annotation>
<mention>TASR</mention>
<wikiName></wikiName>
<offset>923</offset>
<length>4</length>
</annotation>
<annotation>
<mention>Gaulieder</mention>
<wikiName></wikiName>
<offset>929</offset>
<length>9</length>
</annotation>
</document>
<document docName="239726newsML.txt">
<annotation>
<mention>Bulgaria</mention>
<wikiName>Bulgaria</wikiName>
<offset>35</offset>
<length>8</length>
</annotation>
<annotation>
<mention>SOFIA</mention>
<wikiName>Sofia</wikiName>
<offset>46</offset>
<length>5</length>
</annotation>
<annotation>
<mention>Bulgarian</mention>
<wikiName>Bulgaria</wikiName>
<offset>117</offset>
<length>9</length>
</annotation>
<annotation>
<mention>Kazanluk</mention>
<wikiName>Kazanlak</wikiName>
<offset>135</offset>
<length>8</length>
</annotation>
<annotation>
<mention>Bulgaria</mention>
<wikiName>Bulgaria</wikiName>
<offset>264</offset>
<length>8</length>
</annotation>
<annotation>
<mention>Kazanluk</mention>
<wikiName>Kazanlak</wikiName>
<offset>439</offset>
<length>8</length>
</annotation>
<annotation>
<mention>Moslems</mention>
<wikiName>Islam</wikiName>
<offset>457</offset>
<length>7</length>
</annotation>
<annotation>
<mention>Islam</mention>
<wikiName>Islam</wikiName>
<offset>482</offset>
<length>5</length>
</annotation>
<annotation>
<mention>Turkish</mention>
<wikiName>Ottoman Empire</wikiName>
<offset>503</offset>
<length>7</length>
</annotation>
<annotation>
<mention>Bulgaria</mention>
<wikiName>Bulgaria</wikiName>
<offset>533</offset>
<length>8</length>
</annotation>
<annotation>
<mention>Christians</mention>
<wikiName></wikiName>
<offset>546</offset>
<length>10</length>
</annotation>
</document>
<document docName="239744newsML.txt">
<annotation>
<mention>Hungary</mention>
<wikiName>Hungary</wikiName>
<offset>0</offset>
<length>7</length>
</annotation>
<annotation>
<mention>BUDAPEST</mention>
<wikiName>Budapest</wikiName>
<offset>53</offset>
<length>8</length>
</annotation>
<annotation>
<mention>Hungarian</mention>
<wikiName>Hungary</wikiName>
<offset>74</offset>
<length>9</length>
</annotation>
<annotation>
<mention>Budapest</mention>
<wikiName>Budapest</wikiName>
<offset>320</offset>
<length>8</length>
</annotation>
<annotation>
<mention>Sandor Tolonics</mention>
<wikiName></wikiName>
<offset>336</offset>
<length>15</length>
</annotation>
<annotation>
<mention>Sandor Peto</mention>
<wikiName></wikiName>
<offset>790</offset>
<length>11</length>
</annotation>
<annotation>
<mention>Budapest</mention>
<wikiName>Budapest</wikiName>
<offset>803</offset>
<length>8</length>
</annotation>
</document>
<document docName="239755newsML.txt">
<annotation>
<mention>Mexico</mention>
<wikiName>Mexico</wikiName>
<offset>0</offset>
<length>6</length>
</annotation>
<annotation>
<mention>Greenspan</mention>
<wikiName>Alan Greenspan</wikiName>
<offset>40</offset>
<length>9</length>
</annotation>
<annotation>
<mention>MEXICO CITY</mention>
<wikiName>Mexico City</wikiName>
<offset>52</offset>
<length>11</length>
</annotation>
<annotation>
<mention>Mexican</mention>
<wikiName>Mexico</wikiName>
<offset>65</offset>
<length>7</length>
</annotation>
<annotation>
<mention>Greenspan</mention>
<wikiName>Alan Greenspan</wikiName>
<offset>192</offset>
<length>9</length>
</annotation>
<annotation>
<mention>Dow</mention>
<wikiName>Dow Jones Industrial Average</wikiName>
<offset>233</offset>
<length>3</length>
</annotation>
<annotation>
<mention>Jones</mention>
<wikiName></wikiName>
<offset>238</offset>
<length>5</length>
</annotation>
<annotation>
<mention>Federal Reserve</mention>
<wikiName>Federal Reserve System</wikiName>
<offset>341</offset>
<length>15</length>
</annotation>
<annotation>
<mention>Alan Greenspan</mention>
<wikiName>Alan Greenspan</wikiName>
<offset>366</offset>
<length>14</length>
</annotation>
<annotation>
<mention>IPC</mention>
<wikiName></wikiName>
<offset>490</offset>
<length>3</length>
</annotation>
<annotation>
<mention>Mexican</mention>
<wikiName>Mexico</wikiName>
<offset>606</offset>
<length>7</length>
</annotation>
<annotation>
<mention>U.S.</mention>
<wikiName>United States</wikiName>
<offset>639</offset>
<length>4</length>
</annotation>
<annotation>
<mention>Greenspan</mention>
<wikiName>Alan Greenspan</wikiName>
<offset>691</offset>
<length>9</length>
</annotation>
<annotation>
<mention>Mexico</mention>
<wikiName>Mexico</wikiName>
<offset>780</offset>
<length>6</length>
</annotation>
<annotation>
<mention>U.S.</mention>
<wikiName>United States</wikiName>
<offset>799</offset>
<length>4</length>
</annotation>
<annotation>
<mention>Treasury</mention>
<wikiName>United States Department of the Treasury</wikiName>
<offset>812</offset>
<length>8</length>
</annotation>
<annotation>
<mention>Mexico</mention>
<wikiName>Mexico</wikiName>
<offset>874</offset>
<length>6</length>
</annotation>
<annotation>
<mention>Simec</mention>
<wikiName></wikiName>
<offset>1106</offset>
<length>5</length>
</annotation>
<annotation>
<mention>Sidek</mention>
<wikiName></wikiName>
<offset>1152</offset>
<length>5</length>
</annotation>
<annotation>
<mention>Sidek</mention>
<wikiName></wikiName>
<offset>1233</offset>
<length>5</length>
</annotation>
<annotation>
<mention>Mexican</mention>
<wikiName>Mexico</wikiName>
<offset>1319</offset>
<length>7</length>
</annotation>
<annotation>
<mention>ADRs</mention>
<wikiName>American depositary receipt</wikiName>
<offset>1327</offset>
<length>4</length>
</annotation>
<annotation>
<mention>New York</mention>
<wikiName>New York City</wikiName>
<offset>1344</offset>
<length>8</length>
</annotation>
<annotation>
<mention>Telmex</mention>
<wikiName>Telmex</wikiName>
<offset>1367</offset>
<length>6</length>
</annotation>
<annotation>
<mention>Televisa</mention>
<wikiName>Televisa</wikiName>
<offset>1378</offset>
<length>8</length>
</annotation>
<annotation>
<mention>New York</mention>
<wikiName>New York City</wikiName>
<offset>1484</offset>
<length>8</length>
</annotation>
<annotation>
<mention>Mexico</mention>
<wikiName>Mexico</wikiName>
<offset>1504</offset>
<length>6</length>
</annotation>
<annotation>
<mention>Carlos Ponce</mention>
<wikiName></wikiName>
<offset>1614</offset>
<length>12</length>
</annotation>
<annotation>
<mention>Santander</mention>
<wikiName>Santander Group</wikiName>
<offset>1649</offset>
<length>9</length>
</annotation>
<annotation>
<mention>Ponce</mention>
<wikiName></wikiName>
<offset>1915</offset>
<length>5</length>
</annotation>
<annotation>
<mention>Mexico</mention>
<wikiName>Mexico</wikiName>
<offset>1971</offset>
<length>6</length>
</annotation>
</document>
<document docName="239790newsML.txt">
<annotation>
<mention>Brazil</mention>
<wikiName>Brazil</wikiName>
<offset>30</offset>
<length>6</length>
</annotation>
<annotation>
<mention>Simona de Logu</mention>
<wikiName></wikiName>
<offset>39</offset>
<length>14</length>
</annotation>
<annotation>
<mention>RIO DE JANEIRO</mention>
<wikiName>Rio de Janeiro</wikiName>
<offset>55</offset>
<length>14</length>
</annotation>
<annotation>
<mention>Brazilians</mention>
<wikiName>Brazil</wikiName>
<offset>135</offset>
<length>10</length>
</annotation>
<annotation>
<mention>Brazil</mention>
<wikiName>Brazil</wikiName>
<offset>350</offset>
<length>6</length>
</annotation>
<annotation>
<mention>Farid Hakme</mention>
<wikiName></wikiName>
<offset>471</offset>
<length>11</length>
</annotation>
<annotation>
<mention>Brazilian Plastic Surgery Society</mention>
<wikiName></wikiName>
<offset>505</offset>
<length>33</length>
</annotation>
<annotation>
<mention>SBCP</mention>
<wikiName></wikiName>
<offset>540</offset>
<length>4</length>
</annotation>
<annotation>
<mention>Brazil</mention>
<wikiName>Brazil</wikiName>
<offset>672</offset>
<length>6</length>
</annotation>
<annotation>
<mention>Hakme</mention>
<wikiName></wikiName>
<offset>879</offset>
<length>5</length>
</annotation>
<annotation>
<mention>Latin America</mention>
<wikiName>Latin America</wikiName>
<offset>1096</offset>
<length>13</length>
</annotation>
<annotation>
<mention>Brazil</mention>
<wikiName>Brazil</wikiName>
<offset>1292</offset>
<length>6</length>
</annotation>
<annotation>
<mention>Ivo Pitangy</mention>
<wikiName></wikiName>
<offset>1404</offset>
<length>11</length>
</annotation>
<annotation>
<mention>SBCP</mention>
<wikiName></wikiName>
<offset>1508</offset>
<length>4</length>
</annotation>
<annotation>
<mention>Brazil</mention>
<wikiName>Brazil</wikiName>
<offset>1563</offset>
<length>6</length>
</annotation>
<annotation>
<mention>Hakme</mention>
<wikiName></wikiName>
<offset>1637</offset>
<length>5</length>
</annotation>
<annotation>
<mention>Brazil</mention>
<wikiName>Brazil</wikiName>
<offset>1654</offset>
<length>6</length>
</annotation>
<annotation>
<mention>Brazil</mention>
<wikiName>Brazil</wikiName>
<offset>1929</offset>
<length>6</length>
</annotation>
<annotation>
<mention>Brazilians</mention>
<wikiName>Brazil</wikiName>
<offset>2253</offset>
<length>10</length>
</annotation>
<annotation>
<mention>United States</mention>
<wikiName>United States</wikiName>
<offset>2411</offset>
<length>13</length>
</annotation>
<annotation>
<mention>SBCP</mention>
<wikiName></wikiName>
<offset>2427</offset>
<length>4</length>
</annotation>
<annotation>
<mention>Oswaldo Saldanha</mention>
<wikiName></wikiName>
<offset>2447</offset>
<length>16</length>
</annotation>
<annotation>
<mention>Brazilian</mention>
<wikiName>Brazil</wikiName>
<offset>2578</offset>
<length>9</length>
</annotation>
<annotation>
<mention>Claudia Liz</mention>
<wikiName></wikiName>
<offset>2594</offset>
<length>11</length>
</annotation>
<annotation>
<mention>Saldanha</mention>
<wikiName></wikiName>
<offset>2707</offset>
<length>8</length>
</annotation>
</document>
<document docName="239822newsML.txt">
<annotation>
<mention>Argentine</mention>
<wikiName>Argentina</wikiName>
<offset>6</offset>
<length>9</length>
</annotation>
<annotation>
<mention>BUENOS AIRES</mention>
<wikiName>Buenos Aires</wikiName>
<offset>53</offset>
<length>12</length>
</annotation>
<annotation>
<mention>Buenos Aires</mention>
<wikiName>Buenos Aires</wikiName>
<offset>107</offset>
<length>12</length>
</annotation>
<annotation>
<mention>Quequen</mention>
<wikiName></wikiName>
<offset>121</offset>
<length>7</length>
</annotation>
<annotation>
<mention>Rosario</mention>
<wikiName>Rosario, Santa Fe</wikiName>
<offset>131</offset>
<length>7</length>
</annotation>
<annotation>
<mention>Bahia Blanca</mention>
<wikiName>Bahía Blanca</wikiName>
<offset>141</offset>
<length>12</length>
</annotation>
<annotation>
<mention>Buenos Aires Newsroom</mention>
<wikiName></wikiName>
<offset>448</offset>
<length>21</length>
</annotation>
</document>
<document docName="239823newsML.txt">
<annotation>
<mention>Mexican</mention>
<wikiName>Mexico</wikiName>
<offset>0</offset>
<length>7</length>
</annotation>
<annotation>
<mention>MEXICO CITY</mention>
<wikiName>Mexico City</wikiName>
<offset>48</offset>
<length>11</length>
</annotation>
<annotation>
<mention>GMT</mention>
<wikiName>Greenwich Mean Time</wikiName>
<offset>120</offset>
<length>3</length>
</annotation>
<annotation>
<mention>Communications and Transportation Ministry</mention>
<wikiName></wikiName>
<offset>129</offset>
<length>42</length>
</annotation>
<annotation>
<mention>Tampico</mention>
<wikiName>Tampico, Tamaulipas</wikiName>
<offset>197</offset>
<length>7</length>
</annotation>
<annotation>
<mention>Kenda</mention>
<wikiName></wikiName>
<offset>386</offset>
<length>5</length>
</annotation>
<annotation>
<mention>Gulf of Mexico</mention>
<wikiName>Gulf of Mexico</wikiName>
<offset>461</offset>
<length>14</length>
</annotation>
<annotation>
<mention>Caribbean</mention>
<wikiName>Caribbean</wikiName>
<offset>477</offset>
<length>9</length>
</annotation>
<annotation>
<mention>Pacific Coast</mention>
<wikiName>Pacific coast</wikiName>
<offset>491</offset>
<length>13</length>
</annotation>
<annotation>
<mention>Pacific Coast</mention>
<wikiName>Pacific coast</wikiName>
<offset>509</offset>
<length>13</length>
</annotation>
<annotation>
<mention>Baja California</mention>
<wikiName>Baja California</wikiName>
<offset>565</offset>
<length>15</length>
</annotation>
<annotation>
<mention>Sinaloa</mention>
<wikiName>Sinaloa</wikiName>
<offset>585</offset>
<length>7</length>
</annotation>
<annotation>
<mention>Baja California</mention>
<wikiName>Baja California</wikiName>
<offset>817</offset>
<length>15</length>
</annotation>
<annotation>
<mention>Sonora</mention>
<wikiName>Sonora</wikiName>
<offset>847</offset>
<length>6</length>
</annotation>
<annotation>
<mention>Gulf of Mexico</mention>
<wikiName>Gulf of Mexico</wikiName>
<offset>931</offset>
<length>14</length>
</annotation>
<annotation>
<mention>Tamaulipas</mention>
<wikiName>Tamaulipas</wikiName>
<offset>996</offset>
<length>10</length>
</annotation>
<annotation>
<mention>Gulf</mention>
<wikiName>Gulf of Mexico</wikiName>
<offset>1033</offset>
<length>4</length>
</annotation>
<annotation>
<mention>Caribbean</mention>
<wikiName>Caribbean</wikiName>
<offset>1147</offset>
<length>9</length>
</annotation>
<annotation>
<mention>Quintana Roo</mention>
<wikiName>Quintana Roo</wikiName>
<offset>1220</offset>
<length>12</length>
</annotation>
<annotation>
<mention>Chris Aspin</mention>
<wikiName></wikiName>
<offset>1322</offset>
<length>11</length>
</annotation>
<annotation>
<mention>Mexico City</mention>
<wikiName>Mexico City</wikiName>
<offset>1335</offset>
<length>11</length>
</annotation>
</document>
<document docName="239825newsML.txt">
<annotation>
<mention>Brazil</mention>
<wikiName>Brazil</wikiName>
<offset>0</offset>
<length>6</length>
</annotation>
<annotation>
<mention>RIO DE JANEIRO</mention>
<wikiName>Rio de Janeiro</wikiName>
<offset>50</offset>
<length>14</length>
</annotation>
<annotation>
<mention>Brazilian</mention>
<wikiName>Brazil</wikiName>
<offset>77</offset>
<length>9</length>
</annotation>
<annotation>
<mention>Rio de Janeiro</mention>
<wikiName>Rio de Janeiro</wikiName>
<offset>255</offset>
<length>14</length>
</annotation>
<annotation>
<mention>O Globo</mention>
<wikiName>O Globo</wikiName>
<offset>443</offset>
<length>7</length>
</annotation>
<annotation>
<mention>O Globo</mention>
<wikiName>O Globo</wikiName>
<offset>527</offset>
<length>7</length>
</annotation>
</document>
<document docName="239843newsML.txt">
<annotation>
<mention>Chile</mention>
<wikiName>Chile</wikiName>
<offset>0</offset>
<length>5</length>
</annotation>
<annotation>
<mention>Mexico</mention>
<wikiName>Mexico</wikiName>
<offset>7</offset>
<length>6</length>
</annotation>
<annotation>
<mention>SANTIAGO</mention>
<wikiName>Santiago</wikiName>
<offset>46</offset>
<length>8</length>
</annotation>
<annotation>
<mention>Chile</mention>
<wikiName>Chile</wikiName>
<offset>67</offset>
<length>5</length>
</annotation>
<annotation>
<mention>Mexico</mention>
<wikiName>Mexico</wikiName>
<offset>77</offset>
<length>6</length>
</annotation>
<annotation>
<mention>Finance</mention>
<wikiName>Ministry of Finance (Chile)</wikiName>
<offset>193</offset>
<length>7</length>
</annotation>
<annotation>
<mention>Eduardo Aninat</mention>
<wikiName></wikiName>
<offset>210</offset>
<length>14</length>
</annotation>
<annotation>
<mention>Chile</mention>
<wikiName>Chile</wikiName>
<offset>232</offset>
<length>5</length>
</annotation>
<annotation>
<mention>Aninat</mention>
<wikiName></wikiName>
<offset>396</offset>
<length>6</length>
</annotation>
<annotation>
<mention>Mexico</mention>
<wikiName>Mexico</wikiName>
<offset>567</offset>
<length>6</length>
</annotation>
<annotation>
<mention>Aninat</mention>
<wikiName></wikiName>
<offset>646</offset>
<length>6</length>
</annotation>
<annotation>
<mention>Canada</mention>
<wikiName>Canada</wikiName>
<offset>705</offset>
<length>6</length>
</annotation>
<annotation>
<mention>Mexico</mention>
<wikiName>Mexico</wikiName>
<offset>751</offset>
<length>6</length>
</annotation>
<annotation>
<mention>Chile</mention>
<wikiName>Chile</wikiName>
<offset>762</offset>
<length>5</length>
</annotation>
<annotation>
<mention>Aninat</mention>
<wikiName></wikiName>
<offset>891</offset>
<length>6</length>
</annotation>
<annotation>
<mention>Chilean</mention>
<wikiName>Chile</wikiName>
<offset>929</offset>
<length>7</length>
</annotation>
<annotation>
<mention>Roger Atwood</mention>
<wikiName></wikiName>
<offset>1134</offset>
<length>12</length>
</annotation>
<annotation>
<mention>Santiago</mention>
<wikiName>Santiago</wikiName>
<offset>1148</offset>
<length>8</length>
</annotation>
</document>
<document docName="239856newsML.txt">
<annotation>
<mention>Indonesia</mention>
<wikiName>Indonesia</wikiName>
<offset>0</offset>
<length>9</length>
</annotation>
<annotation>
<mention>Belo</mention>
<wikiName>Carlos Filipe Ximenes Belo</wikiName>
<offset>12</offset>
<length>4</length>
</annotation>
<annotation>
<mention>Nobel</mention>
<wikiName>Nobel Peace Prize</wikiName>
<offset>28</offset>
<length>5</length>
</annotation>
<annotation>
<mention>DILI</mention>
<wikiName>Dili</wikiName>
<offset>51</offset>
<length>4</length>
</annotation>
<annotation>
<mention>East Timor</mention>
<wikiName>East Timor</wikiName>
<offset>57</offset>
<length>10</length>
</annotation>
<annotation>
<mention>East Timorese</mention>
<wikiName>East Timor</wikiName>
<offset>80</offset>
<length>13</length>
</annotation>
<annotation>
<mention>Roman Catholic</mention>
<wikiName>Catholic Church</wikiName>
<offset>94</offset>
<length>14</length>
</annotation>
<annotation>
<mention>Carlos Belo</mention>
<wikiName>Carlos Filipe Ximenes Belo</wikiName>
<offset>116</offset>
<length>11</length>
</annotation>
<annotation>
<mention>Dili</mention>
<wikiName>Dili</wikiName>
<offset>133</offset>
<length>4</length>
</annotation>
<annotation>
<mention>Norway</mention>
<wikiName>Norway</wikiName>
<offset>162</offset>
<length>6</length>
</annotation>
<annotation>
<mention>Nobel Peace Prize</mention>
<wikiName>Nobel Peace Prize</wikiName>
<offset>221</offset>
<length>17</length>
</annotation>
<annotation>
<mention>Belo</mention>
<wikiName>Carlos Filipe Ximenes Belo</wikiName>
<offset>256</offset>
<length>4</length>
</annotation>
<annotation>
<mention>Indonesian</mention>
<wikiName>Indonesia</wikiName>
<offset>288</offset>
<length>10</length>
</annotation>
<annotation>
<mention>Jakarta</mention>
<wikiName>Jakarta</wikiName>
<offset>307</offset>
<length>7</length>
</annotation>
<annotation>
<mention>Oslo</mention>
<wikiName>Oslo</wikiName>
<offset>402</offset>
<length>4</length>
</annotation>
<annotation>
<mention>Nobel</mention>
<wikiName>Nobel Peace Prize</wikiName>
<offset>445</offset>
<length>5</length>
</annotation>
<annotation>
<mention>East Timorese-born</mention>
<wikiName></wikiName>
<offset>475</offset>
<length>18</length>
</annotation>
<annotation>
<mention>Jose Ramos Horta</mention>
<wikiName>José Ramos-Horta</wikiName>
<offset>503</offset>
<length>16</length>
</annotation>
<annotation>
<mention>Australia</mention>
<wikiName>Australia</wikiName>
<offset>548</offset>
<length>9</length>
</annotation>
<annotation>
<mention>Indonesian</mention>
<wikiName>Indonesia</wikiName>
<offset>564</offset>
<length>10</length>
</annotation>
<annotation>
<mention>Ramos Horta</mention>
<wikiName>José Ramos-Horta</wikiName>
<offset>617</offset>
<length>11</length>
</annotation>
<annotation>
<mention>Ali Alatas</mention>
<wikiName>Ali Alatas</wikiName>
<offset>664</offset>
<length>10</length>
</annotation>
<annotation>
<mention>Indonesia</mention>
<wikiName>Indonesia</wikiName>
<offset>695</offset>
<length>9</length>
</annotation>
<annotation>
<mention>Norwegian</mention>
<wikiName>Norway</wikiName>
<offset>764</offset>
<length>9</length>
</annotation>
<annotation>
<mention>Ramos Horta</mention>
<wikiName>José Ramos-Horta</wikiName>
<offset>889</offset>
<length>11</length>
</annotation>
<annotation>
<mention>East Timor</mention>
<wikiName>East Timor</wikiName>
<offset>957</offset>
<length>10</length>
</annotation>
<annotation>
<mention>Alatas</mention>
<wikiName>Ali Alatas</wikiName>
<offset>971</offset>
<length>6</length>
</annotation>
<annotation>
<mention>Organisation of the Islamic Conference</mention>
<wikiName>Organisation of Islamic Cooperation</wikiName>
<offset>1104</offset>
<length>38</length>
</annotation>
<annotation>
<mention>OIC</mention>
<wikiName>Organisation of Islamic Cooperation</wikiName>
<offset>1144</offset>
<length>3</length>
</annotation>
<annotation>
<mention>Jakarta</mention>
<wikiName>Jakarta</wikiName>
<offset>1152</offset>
<length>7</length>
</annotation>
<annotation>
<mention>Ramos Horta</mention>
<wikiName>José Ramos-Horta</wikiName>
<offset>1162</offset>
<length>11</length>
</annotation>
<annotation>
<mention>Jakarta</mention>
<wikiName></wikiName>
<offset>1219</offset>
<length>7</length>
</annotation>
<annotation>
<mention>Belo</mention>
<wikiName>Carlos Filipe Ximenes Belo</wikiName>
<offset>1253</offset>
<length>4</length>
</annotation>
<annotation>
<mention>Ramos Horta</mention>
<wikiName>José Ramos-Horta</wikiName>
<offset>1262</offset>
<length>11</length>
</annotation>
<annotation>
<mention>East Timor</mention>
<wikiName>East Timor</wikiName>
<offset>1360</offset>
<length>10</length>
</annotation>
<annotation>
<mention>Portuguese</mention>
<wikiName>Portugal</wikiName>
<offset>1381</offset>
<length>10</length>
</annotation>
<annotation>
<mention>Indonesia</mention>
<wikiName>Indonesia</wikiName>
<offset>1405</offset>
<length>9</length>
</annotation>
<annotation>
<mention>United Nations</mention>
<wikiName>United Nations</wikiName>
<offset>1467</offset>
<length>14</length>
</annotation>
<annotation>
<mention>Jakarta</mention>
<wikiName></wikiName>
<offset>1503</offset>
<length>7</length>
</annotation>
<annotation>
<mention>Alatas</mention>
<wikiName>Ali Alatas</wikiName>
<offset>1520</offset>
<length>6</length>
</annotation>
<annotation>
<mention>Nobel Peace Prize</mention>
<wikiName>Nobel Peace Prize</wikiName>
<offset>1565</offset>
<length>17</length>
</annotation>
<annotation>
<mention>Belo</mention>
<wikiName>Carlos Filipe Ximenes Belo</wikiName>
<offset>1642</offset>
<length>4</length>
</annotation>
<annotation>
<mention>Indonesian</mention>
<wikiName>Indonesia</wikiName>
<offset>1662</offset>
<length>10</length>
</annotation>
<annotation>
<mention>Norway</mention>
<wikiName>Norway</wikiName>
<offset>1687</offset>
<length>6</length>
</annotation>
<annotation>
<mention>Belo</mention>
<wikiName>Carlos Filipe Ximenes Belo</wikiName>
<offset>1735</offset>
<length>4</length>
</annotation>
<annotation>
<mention>Alatas</mention>
<wikiName>Ali Alatas</wikiName>
<offset>1759</offset>
<length>6</length>
</annotation>
<annotation>
<mention>Alatas</mention>
<wikiName>Ali Alatas</wikiName>
<offset>1830</offset>
<length>6</length>
</annotation>
<annotation>
<mention>Oslo</mention>
<wikiName>Oslo</wikiName>
<offset>1879</offset>
<length>4</length>
</annotation>
<annotation>
<mention>Belo</mention>
<wikiName>Carlos Filipe Ximenes Belo</wikiName>
<offset>1885</offset>
<length>4</length>
</annotation>
<annotation>
<mention>Vatican</mention>
<wikiName>Vatican City</wikiName>
<offset>1906</offset>
<length>7</length>
</annotation>
<annotation>
<mention>German</mention>
<wikiName>Germany</wikiName>
<offset>1951</offset>
<length>6</length>
</annotation>
<annotation>
<mention>Helmut Kohl</mention>
<wikiName>Helmut Kohl</wikiName>
<offset>1969</offset>
<length>11</length>
</annotation>
<annotation>
<mention>Bonn</mention>
<wikiName>Bonn</wikiName>
<offset>1984</offset>
<length>4</length>
</annotation>
<annotation>
<mention>Kohl</mention>
<wikiName>Helmut Kohl</wikiName>
<offset>1991</offset>
<length>4</length>
</annotation>
<annotation>
<mention>Belo</mention>
<wikiName>Carlos Filipe Ximenes Belo</wikiName>
<offset>2015</offset>
<length>4</length>
</annotation>
<annotation>
<mention>Indonesia</mention>
<wikiName>Indonesia</wikiName>
<offset>2062</offset>
<length>9</length>
</annotation>
<annotation>
<mention>East Timor</mention>
<wikiName>East Timor</wikiName>
<offset>2115</offset>
<length>10</length>
</annotation>
<annotation>
<mention>Jakarta</mention>
<wikiName>Jakarta</wikiName>
<offset>2137</offset>
<length>7</length>
</annotation>
</document>
<document docName="239865newsML.txt">
<annotation>
<mention>China</mention>
<wikiName>China</wikiName>
<offset>0</offset>
<length>5</length>
</annotation>
<annotation>
<mention>Hainan</mention>
<wikiName>Hainan</wikiName>
<offset>22</offset>
<length>6</length>
</annotation>
<annotation>
<mention>BEIJING</mention>
<wikiName>Beijing</wikiName>
<offset>48</offset>
<length>7</length>
</annotation>
<annotation>
<mention>China</mention>
<wikiName>China</wikiName>
<offset>68</offset>
<length>5</length>
</annotation>
<annotation>
<mention>State Council</mention>
<wikiName></wikiName>
<offset>76</offset>
<length>13</length>
</annotation>
<annotation>
<mention>Hainan</mention>
<wikiName>Hainan</wikiName>
<offset>148</offset>
<length>6</length>
</annotation>
<annotation>
<mention>Xinhua</mention>
<wikiName>Xinhua News Agency</wikiName>
<offset>198</offset>
<length>6</length>
</annotation>
<annotation>
<mention>Xinhua</mention>
<wikiName>Xinhua News Agency</wikiName>
<offset>234</offset>
<length>6</length>
</annotation>
<annotation>
<mention>Qinglan</mention>
<wikiName></wikiName>
<offset>258</offset>
<length>7</length>
</annotation>
<annotation>
<mention>Wenchang</mention>
<wikiName>Wenchang</wikiName>
<offset>274</offset>
<length>8</length>
</annotation>
<annotation>
<mention>Wenchang</mention>
<wikiName>Wenchang</wikiName>
<offset>325</offset>
<length>8</length>
</annotation>
<annotation>
<mention>Xinhua</mention>
<wikiName>Xinhua News Agency</wikiName>
<offset>474</offset>
<length>6</length>
</annotation>
</document>
<document docName="239868newsML.txt">
<annotation>
<mention>RANGOON</mention>
<wikiName>Yangon</wikiName>
<offset>50</offset>
<length>7</length>
</annotation>
<annotation>
<mention>Burmese</mention>
<wikiName>Burma</wikiName>
<offset>70</offset>
<length>7</length>
</annotation>
<annotation>
<mention>Ranyon (Rangoon) University</mention>
<wikiName></wikiName>
<offset>184</offset>
<length>27</length>
</annotation>
<annotation>
<mention>Rangoon</mention>
<wikiName>Yangon</wikiName>
<offset>528</offset>
<length>7</length>
</annotation>
<annotation>
<mention>Insein</mention>
<wikiName>Insein Township</wikiName>
<offset>718</offset>
<length>6</length>
</annotation>
<annotation>
<mention>Rangoon</mention>
<wikiName>Yangon</wikiName>
<offset>744</offset>
<length>7</length>
</annotation>
<annotation>
<mention>Rangoon University</mention>
<wikiName>University of Yangon</wikiName>
<offset>791</offset>
<length>18</length>
</annotation>
</document>
<document docName="239913newsML.txt">
<annotation>
<mention>Burmese</mention>
<wikiName>Burma</wikiName>
<offset>0</offset>
<length>7</length>
</annotation>
<annotation>
<mention>Vithoon Amorn</mention>
<wikiName></wikiName>
<offset>47</offset>
<length>13</length>
</annotation>
<annotation>
<mention>RANGOON</mention>
<wikiName>Yangon</wikiName>
<offset>62</offset>
<length>7</length>
</annotation>
<annotation>
<mention>Burmese</mention>
<wikiName>Burma</wikiName>
<offset>92</offset>
<length>7</length>
</annotation>
<annotation>
<mention>Yangon Institute of Technology</mention>
<wikiName>Yangon Technological University</wikiName>
<offset>139</offset>
<length>30</length>
</annotation>
<annotation>
<mention>Rangoon</mention>
<wikiName>Yangon</wikiName>
<offset>182</offset>
<length>7</length>
</annotation>
<annotation>
<mention>University of Yangon</mention>
<wikiName>University of Yangon</wikiName>
<offset>212</offset>
<length>20</length>
</annotation>
<annotation>
<mention>YIT</mention>
<wikiName></wikiName>
<offset>478</offset>
<length>3</length>
</annotation>
<annotation>
<mention>Reuters</mention>
<wikiName>Reuters</wikiName>
<offset>548</offset>
<length>7</length>
</annotation>
<annotation>
<mention>University of Yangon</mention>
<wikiName>University of Yangon</wikiName>
<offset>603</offset>
<length>20</length>
</annotation>
<annotation>
<mention>Aung San Suu Kyi</mention>
<wikiName>Aung San Suu Kyi</wikiName>
<offset>1076</offset>
<length>16</length>
</annotation>
<annotation>
<mention>Rangoon</mention>
<wikiName>Yangon</wikiName>
<offset>1359</offset>
<length>7</length>
</annotation>
<annotation>
<mention>Reuters</mention>
<wikiName>Reuters</wikiName>
<offset>1757</offset>
<length>7</length>
</annotation>
<annotation>
<mention>State Law and Order Restoration Council</mention>
<wikiName></wikiName>
<offset>1799</offset>
<length>39</length>
</annotation>
<annotation>
<mention>SLORC</mention>
<wikiName></wikiName>
<offset>1840</offset>
<length>5</length>
</annotation>
<annotation>
<mention>Suu Kyi</mention>
<wikiName>Aung San Suu Kyi</wikiName>
<offset>2147</offset>
<length>7</length>
</annotation>
<annotation>
<mention>National League for Democracy</mention>
<wikiName>National League for Democracy</wikiName>
<offset>2157</offset>
<length>29</length>
</annotation>
<annotation>
<mention>NLD</mention>
<wikiName>National League for Democracy</wikiName>
<offset>2188</offset>
<length>3</length>
</annotation>
<annotation>
<mention>Suu Kyi</mention>
<wikiName>Aung San Suu Kyi</wikiName>
<offset>2195</offset>
<length>7</length>
</annotation>
<annotation>
<mention>Nobel</mention>
<wikiName>Nobel Peace Prize</wikiName>
<offset>2206</offset>
<length>5</length>
</annotation>
<annotation>
<mention>Aung San</mention>
<wikiName>Aung San</wikiName>
<offset>2255</offset>
<length>8</length>
</annotation>
<annotation>
<mention>NLD</mention>
<wikiName>National League for Democracy</wikiName>
<offset>2273</offset>
<length>3</length>
</annotation>
<annotation>
<mention>Yangon</mention>
<wikiName>Yangon</wikiName>
<offset>2623</offset>
<length>6</length>
</annotation>
<annotation>
<mention>Suu Kyi</mention>
<wikiName>Aung San Suu Kyi</wikiName>
<offset>2860</offset>
<length>7</length>
</annotation>
<annotation>
<mention>Rangoon</mention>
<wikiName>Yangon</wikiName>
<offset>2900</offset>
<length>7</length>
</annotation>
</document>
<document docName="239917newsML.txt">
<annotation>
<mention>WTO</mention>
<wikiName>World Trade Organization</wikiName>
<offset>26</offset>
<length>3</length>
</annotation>
<annotation>
<mention>ILO</mention>
<wikiName>International Labour Organization</wikiName>
<offset>38</offset>
<length>3</length>
</annotation>
<annotation>
<mention>SINGAPORE</mention>
<wikiName>Singapore</wikiName>
<offset>49</offset>
<length>9</length>
</annotation>
<annotation>
<mention>International Labour Organisation</mention>
<wikiName>International Labour Organization</wikiName>
<offset>154</offset>
<length>33</length>
</annotation>
<annotation>
<mention>ILO</mention>
<wikiName>International Labour Organization</wikiName>
<offset>189</offset>
<length>3</length>
</annotation>
<annotation>
<mention>WTO</mention>
<wikiName>World Trade Organization</wikiName>
<offset>239</offset>
<length>3</length>
</annotation>
<annotation>
<mention>Singapore</mention>
<wikiName>Singapore</wikiName>
<offset>254</offset>
<length>9</length>
</annotation>
<annotation>
<mention>Bill Jordan</mention>
<wikiName>Bill Jordan, Baron Jordan</wikiName>
<offset>266</offset>
<length>11</length>
</annotation>
<annotation>
<mention>International Confederation of Free Trade Unions</mention>
<wikiName>International Confederation of Free Trade Unions</wikiName>
<offset>304</offset>
<length>48</length>
</annotation>
<annotation>
<mention>ICFTU</mention>
<wikiName>International Confederation of Free Trade Unions</wikiName>
<offset>354</offset>
<length>5</length>
</annotation>
<annotation>
<mention>WTO</mention>
<wikiName>World Trade Organization</wikiName>
<offset>405</offset>
<length>3</length>
</annotation>
<annotation>
<mention>ILO</mention>
<wikiName>International Labour Organization</wikiName>
<offset>423</offset>
<length>3</length>
</annotation>
<annotation>
<mention>Michel Hansenne</mention>
<wikiName>Michel Hansenne</wikiName>
<offset>444</offset>
<length>15</length>
</annotation>
<annotation>
<mention>Jordan</mention>
<wikiName></wikiName>
<offset>563</offset>
<length>6</length>
</annotation>
<annotation>
<mention>World Trade Organisation</mention>
<wikiName>World Trade Organization</wikiName>
<offset>679</offset>
<length>24</length>
</annotation>
<annotation>
<mention>WTO</mention>
<wikiName>World Trade Organization</wikiName>
<offset>705</offset>
<length>3</length>
</annotation>
<annotation>
<mention>Jordan</mention>
<wikiName></wikiName>
<offset>915</offset>
<length>6</length>
</annotation>
<annotation>
<mention>ICFTU</mention>
<wikiName>International Confederation of Free Trade Unions</wikiName>
<offset>951</offset>
<length>5</length>
</annotation>
<annotation>
<mention>Singapore</mention>
<wikiName>Singapore</wikiName>
<offset>1054</offset>
<length>9</length>
</annotation>
<annotation>
<mention>WTO</mention>
<wikiName>World Trade Organization</wikiName>
<offset>1101</offset>
<length>3</length>
</annotation>
<annotation>
<mention>Jordan</mention>
<wikiName></wikiName>
<offset>1113</offset>
<length>6</length>
</annotation>
<annotation>
<mention>WTO</mention>
<wikiName>World Trade Organization</wikiName>
<offset>1129</offset>
<length>3</length>
</annotation>
<annotation>
<mention>ICFTU</mention>
<wikiName>International Confederation of Free Trade Unions</wikiName>
<offset>1201</offset>
<length>5</length>
</annotation>
<annotation>
<mention>WTO</mention>
<wikiName>World Trade Organization</wikiName>
<offset>1226</offset>
<length>3</length>
</annotation>
<annotation>
<mention>Bill Brett</mention>
<wikiName></wikiName>
<offset>1368</offset>
<length>10</length>
</annotation>
<annotation>
<mention>ILO Workers Group</mention>
<wikiName></wikiName>
<offset>1396</offset>
<length>17</length>
</annotation>
<annotation>
<mention>Reuters</mention>
<wikiName>Reuters</wikiName>
<offset>1420</offset>
<length>7</length>
</annotation>
<annotation>
<mention>Association of Southeast Asian Nations</mention>
<wikiName>Association of Southeast Asian Nations</wikiName>
<offset>1683</offset>
<length>38</length>
</annotation>
<annotation>
<mention>ASEAN</mention>
<wikiName>Association of Southeast Asian Nations</wikiName>
<offset>1723</offset>
<length>5</length>
</annotation>
<annotation>
<mention>ILO</mention>
<wikiName>International Labour Organization</wikiName>
<offset>1765</offset>
<length>3</length>
</annotation>
<annotation>
<mention>ASEAN</mention>
<wikiName>Association of Southeast Asian Nations</wikiName>
<offset>1778</offset>
<length>5</length>
</annotation>
<annotation>
<mention>Brunei</mention>
<wikiName>Brunei</wikiName>
<offset>1791</offset>
<length>6</length>
</annotation>
<annotation>
<mention>Indonesia</mention>
<wikiName>Indonesia</wikiName>
<offset>1799</offset>
<length>9</length>
</annotation>
<annotation>
<mention>Malaysia</mention>
<wikiName>Malaysia</wikiName>
<offset>1810</offset>
<length>8</length>
</annotation>
<annotation>
<mention>Philippines</mention>
<wikiName>Philippines</wikiName>
<offset>1824</offset>
<length>11</length>
</annotation>
<annotation>
<mention>Singapore</mention>
<wikiName>Singapore</wikiName>
<offset>1837</offset>
<length>9</length>
</annotation>
<annotation>
<mention>Thailand</mention>
<wikiName>Thailand</wikiName>
<offset>1848</offset>
<length>8</length>
</annotation>
<annotation>
<mention>Vietnam</mention>
<wikiName>Vietnam</wikiName>
<offset>1861</offset>
<length>7</length>
</annotation>
<annotation>
<mention>ILO</mention>
<wikiName>International Labour Organization</wikiName>
<offset>1875</offset>
<length>3</length>
</annotation>
<annotation>
<mention>WTO</mention>
<wikiName>World Trade Organization</wikiName>
<offset>1981</offset>
<length>3</length>
</annotation>
<annotation>
<mention>ICFTU</mention>
<wikiName>International Confederation of Free Trade Unions</wikiName>
<offset>2087</offset>
<length>5</length>
</annotation>
<annotation>
<mention>Richard Eglin</mention>
<wikiName></wikiName>
<offset>2104</offset>
<length>13</length>
</annotation>
<annotation>
<mention>WTO</mention>
<wikiName>World Trade Organization</wikiName>
<offset>2135</offset>
<length>3</length>
</annotation>
<annotation>
<mention>WTO</mention>
<wikiName>World Trade Organization</wikiName>
<offset>2161</offset>
<length>3</length>
</annotation>
<annotation>
<mention>WTO</mention>
<wikiName>World Trade Organization</wikiName>
<offset>2281</offset>
<length>3</length>
</annotation>
<annotation>
<mention>ILO</mention>
<wikiName>International Labour Organization</wikiName>
<offset>2402</offset>
<length>3</length>
</annotation>
</document>
<document docName="239918newsML.txt">
<annotation>
<mention>Indian</mention>
<wikiName>India</wikiName>
<offset>0</offset>
<length>6</length>
</annotation>
<annotation>
<mention>SINGAPORE</mention>
<wikiName>Singapore</wikiName>
<offset>52</offset>
<length>9</length>
</annotation>
<annotation>
<mention>Indian</mention>
<wikiName>India</wikiName>
<offset>74</offset>
<length>6</length>
</annotation>
<annotation>
<mention>Rubber Board of India</mention>
<wikiName></wikiName>
<offset>238</offset>
<length>21</length>
</annotation>
<annotation>
<mention>K.J. Matthew</mention>
<wikiName></wikiName>
<offset>277</offset>
<length>12</length>
</annotation>
<annotation>
<mention>Asia Rubber Markets meeting</mention>
<wikiName></wikiName>
<offset>302</offset>
<length>27</length>
</annotation>
<annotation>
<mention>Indian</mention>
<wikiName>India</wikiName>
<offset>335</offset>
<length>6</length>
</annotation>
<annotation>
<mention>Matthew</mention>
<wikiName></wikiName>
<offset>600</offset>
<length>7</length>
</annotation>
<annotation>
<mention>Indian</mention>
<wikiName>India</wikiName>
<offset>796</offset>
<length>6</length>
</annotation>
<annotation>
<mention>Matthew</mention>
<wikiName></wikiName>
<offset>925</offset>
<length>7</length>
</annotation>
<annotation>
<mention>Rubber Board</mention>
<wikiName>Rubber Board</wikiName>
<offset>1402</offset>
<length>12</length>
</annotation>
<annotation>
<mention>Matthew</mention>
<wikiName></wikiName>
<offset>1501</offset>
<length>7</length>
</annotation>
<annotation>
<mention>India</mention>
<wikiName>India</wikiName>
<offset>1555</offset>
<length>5</length>
</annotation>
<annotation>
<mention>Singapore Newsroom</mention>
<wikiName></wikiName>
<offset>1753</offset>
<length>18</length>
</annotation>
</document>
<document docName="239932newsML.txt">
<annotation>
<mention>Japan</mention>
<wikiName>Japan</wikiName>
<offset>0</offset>
<length>5</length>
</annotation>
<annotation>
<mention>George Nishiyama</mention>
<wikiName></wikiName>
<offset>53</offset>
<length>16</length>
</annotation>
<annotation>
<mention>TOKYO</mention>
<wikiName>Tokyo</wikiName>
<offset>71</offset>
<length>5</length>
</annotation>
<annotation>
<mention>Japan</mention>
<wikiName>Japan</wikiName>
<offset>101</offset>
<length>5</length>
</annotation>
<annotation>
<mention>Bank of Japan</mention>
<wikiName>Bank of Japan</wikiName>
<offset>350</offset>
<length>13</length>
</annotation>
<annotation>
<mention>BOJ</mention>
<wikiName>Bank of Japan</wikiName>
<offset>365</offset>
<length>3</length>
</annotation>
<annotation>
<mention>Yasuo Matsushita</mention>
<wikiName></wikiName>
<offset>380</offset>
<length>16</length>
</annotation>
<annotation>
<mention>Japan</mention>
<wikiName>Japan</wikiName>
<offset>411</offset>
<length>5</length>
</annotation>
<annotation>
<mention>Eisuke Sakakibara</mention>
<wikiName></wikiName>
<offset>588</offset>
<length>17</length>
</annotation>
<annotation>
<mention>Finance Ministry</mention>
<wikiName>Ministry of Finance (Japan)</wikiName>
<offset>622</offset>
<length>16</length>
</annotation>
<annotation>
<mention>Sakakibara</mention>
<wikiName></wikiName>
<offset>767</offset>
<length>10</length>
</annotation>
<annotation>
<mention>U.S.</mention>
<wikiName>United States</wikiName>
<offset>858</offset>
<length>4</length>
</annotation>
<annotation>
<mention>U.S. Treasury</mention>
<wikiName>United States Department of the Treasury</wikiName>
<offset>936</offset>
<length>13</length>
</annotation>
<annotation>
<mention>Robert</mention>
<wikiName>Robert Rubin</wikiName>
<offset>960</offset>
<length>6</length>
</annotation>
<annotation>
<mention>Rubin</mention>
<wikiName>Robert Rubin</wikiName>
<offset>968</offset>
<length>5</length>
</annotation>
<annotation>
<mention>Hank Note</mention>
<wikiName></wikiName>
<offset>1044</offset>
<length>9</length>
</annotation>
<annotation>
<mention>Sumitomo Bank</mention>
<wikiName>The Sumitomo Bank</wikiName>
<offset>1071</offset>
<length>13</length>
</annotation>
<annotation>
<mention>Rubin</mention>
<wikiName>Robert Rubin</wikiName>
<offset>1099</offset>
<length>5</length>
</annotation>
<annotation>
<mention>U.S.</mention>
<wikiName>United States</wikiName>
<offset>1143</offset>
<length>4</length>
</annotation>
<annotation>
<mention>Sakakibara</mention>
<wikiName></wikiName>
<offset>1159</offset>
<length>10</length>
</annotation>
<annotation>
<mention>United States</mention>
<wikiName>United States</wikiName>
<offset>1216</offset>
<length>13</length>
</annotation>
<annotation>
<mention>Sakakibara</mention>
<wikiName></wikiName>
<offset>1391</offset>
<length>10</length>
</annotation>
<annotation>
<mention>Sumitomo</mention>
<wikiName>The Sumitomo Bank</wikiName>
<offset>1445</offset>
<length>8</length>
</annotation>
<annotation>
<mention>Note</mention>
<wikiName></wikiName>
<offset>1456</offset>
<length>4</length>
</annotation>
<annotation>
<mention>Takao Sakoh</mention>
<wikiName></wikiName>
<offset>1463</offset>
<length>11</length>
</annotation>
<annotation>
<mention>Union Bank of Switzerland</mention>
<wikiName>Union Bank of Switzerland</wikiName>
<offset>1500</offset>
<length>25</length>
</annotation>
<annotation>
<mention>Tokyo</mention>
<wikiName>Tokyo</wikiName>
<offset>1529</offset>
<length>5</length>
</annotation>
<annotation>
<mention>Sakakibara</mention>
<wikiName></wikiName>
<offset>1594</offset>
<length>10</length>
</annotation>
<annotation>
<mention>Sakakibara</mention>
<wikiName></wikiName>
<offset>1724</offset>
<length>10</length>
</annotation>
<annotation>
<mention>International Finance Bureau</mention>
<wikiName></wikiName>
<offset>1760</offset>
<length>28</length>
</annotation>
<annotation>
<mention>Japan</mention>
<wikiName>Japan</wikiName>
<offset>1953</offset>
<length>5</length>
</annotation>
<annotation>
<mention>Sakakibara</mention>
<wikiName></wikiName>
<offset>2097</offset>
<length>10</length>
</annotation>
<annotation>
<mention>Mr Yen</mention>
<wikiName></wikiName>
<offset>2182</offset>
<length>6</length>
</annotation>
<annotation>
<mention>Sakakibara</mention>
<wikiName></wikiName>
<offset>2194</offset>
<length>10</length>
</annotation>
<annotation>
<mention>BOJ</mention>
<wikiName>Bank of Japan</wikiName>
<offset>2261</offset>
<length>3</length>
</annotation>
<annotation>
<mention>Matsushita</mention>
<wikiName></wikiName>
<offset>2274</offset>
<length>10</length>
</annotation>
<annotation>
<mention>Matsushita</mention>
<wikiName></wikiName>
<offset>2508</offset>
<length>10</length>
</annotation>
<annotation>
<mention>Nihon Keizai Shimbun</mention>
<wikiName>Nihon Keizai Shimbun</wikiName>
<offset>2549</offset>
<length>20</length>
</annotation>
<annotation>
<mention>BOJ</mention>
<wikiName>Bank of Japan</wikiName>
<offset>2666</offset>
<length>3</length>
</annotation>
<annotation>
<mention>Yasuhito Kawashima</mention>
<wikiName></wikiName>
<offset>2739</offset>
<length>18</length>
</annotation>
<annotation>
<mention>Toyo Trust & Banking Co</mention>
<wikiName></wikiName>
<offset>2782</offset>
<length>23</length>
</annotation>
<annotation>
<mention>Japan</mention>
<wikiName>Japan</wikiName>
<offset>2912</offset>
<length>5</length>
</annotation>
<annotation>
<mention>Japanese</mention>
<wikiName>Japan</wikiName>
<offset>2981</offset>
<length>8</length>
</annotation>
<annotation>
<mention>BOJ</mention>
<wikiName>Bank of Japan</wikiName>
<offset>3035</offset>
<length>3</length>
</annotation>
<annotation>
<mention>Taisuke Tanaka</mention>
<wikiName></wikiName>
<offset>3117</offset>
<length>14</length>
</annotation>
<annotation>
<mention>Credit Suisse</mention>
<wikiName>Credit Suisse</wikiName>
<offset>3156</offset>
<length>13</length>
</annotation>
<annotation>
<mention>Tokyo</mention>
<wikiName>Tokyo</wikiName>
<offset>3173</offset>
<length>5</length>
</annotation>
<annotation>
<mention>BOJ</mention>
<wikiName>Bank of Japan</wikiName>
<offset>3188</offset>
<length>3</length>
</annotation>
<annotation>
<mention>BOJ</mention>
<wikiName>Bank of Japan</wikiName>
<offset>3503</offset>
<length>3</length>
</annotation>
<annotation>
<mention>Reuters</mention>
<wikiName>Reuters</wikiName>
<offset>3521</offset>
<length>7</length>
</annotation>
</document>
<document docName="239946newsML.txt">
<annotation>
<mention>Lebanon</mention>
<wikiName>Lebanon</wikiName>
<offset>0</offset>
<length>7</length>
</annotation>
<annotation>
<mention>pro-Israeli</mention>
<wikiName></wikiName>
<offset>18</offset>
<length>11</length>
</annotation>
<annotation>
<mention>Haitham Haddadin</mention>
<wikiName></wikiName>
<offset>49</offset>
<length>16</length>
</annotation>
<annotation>
<mention>BEIRUT</mention>
<wikiName>Beirut</wikiName>
<offset>67</offset>
<length>6</length>
</annotation>
<annotation>
<mention>Lebanese</mention>
<wikiName>Lebanon</wikiName>
<offset>88</offset>
<length>8</length>
</annotation>
<annotation>
<mention>Israel</mention>
<wikiName>Israel</wikiName>
<offset>170</offset>
<length>6</length>
</annotation>
<annotation>
<mention>Lebanon</mention>
<wikiName>Lebanon</wikiName>
<offset>206</offset>
<length>7</length>
</annotation>
<annotation>
<mention>Antoine Lahd</mention>
<wikiName>Antoine Lahad</wikiName>
<offset>263</offset>
<length>12</length>
</annotation>
<annotation>
<mention>South Lebanon Army</mention>
<wikiName>South Lebanon Army</wikiName>
<offset>289</offset>
<length>18</length>
</annotation>
<annotation>
<mention>SLA</mention>
<wikiName>South Lebanon Army</wikiName>
<offset>309</offset>
<length>3</length>
</annotation>
<annotation>
<mention>Israel</mention>
<wikiName>Israel</wikiName>
<offset>337</offset>
<length>6</length>
</annotation>
<annotation>
<mention>Lebanon</mention>
<wikiName>Lebanon</wikiName>
<offset>355</offset>
<length>7</length>
</annotation>
<annotation>
<mention>Lahd</mention>
<wikiName></wikiName>
<offset>386</offset>
<length>4</length>
</annotation>
<annotation>
<mention>Lebanese</mention>
<wikiName>Lebanon</wikiName>
<offset>413</offset>
<length>8</length>
</annotation>
<annotation>
<mention>SLA</mention>
<wikiName>South Lebanon Army</wikiName>
<offset>465</offset>
<length>3</length>
</annotation>
<annotation>
<mention>Israel</mention>
<wikiName>Israel</wikiName>
<offset>489</offset>
<length>6</length>
</annotation>
<annotation>
<mention>Lebanon</mention>
<wikiName>Lebanon</wikiName>
<offset>524</offset>
<length>7</length>
</annotation>
<annotation>
<mention>Israel</mention>
<wikiName>Israel</wikiName>
<offset>587</offset>
<length>6</length>
</annotation>
<annotation>
<mention>Lahd</mention>
<wikiName></wikiName>
<offset>596</offset>
<length>4</length>
</annotation>
<annotation>
<mention>Lebanese</mention>
<wikiName>Lebanon</wikiName>
<offset>659</offset>
<length>8</length>
</annotation>
<annotation>
<mention>Jewish</mention>
<wikiName>Jews</wikiName>
<offset>743</offset>
<length>6</length>
</annotation>
<annotation>
<mention>Israel</mention>
<wikiName>Israel</wikiName>
<offset>765</offset>
<length>6</length>
</annotation>
<annotation>
<mention>Lebanon</mention>
<wikiName>Lebanon</wikiName>
<offset>798</offset>
<length>7</length>
</annotation>
<annotation>
<mention>Syrian-backed</mention>
<wikiName></wikiName>
<offset>808</offset>
<length>13</length>
</annotation>
<annotation>
<mention>Lahd</mention>
<wikiName></wikiName>
<offset>881</offset>
<length>4</length>
</annotation>
<annotation>
<mention>Israel</mention>
<wikiName>Israel</wikiName>
<offset>936</offset>
<length>6</length>
</annotation>
<annotation>
<mention>Israel</mention>
<wikiName>Israel</wikiName>
<offset>959</offset>
<length>6</length>
</annotation>
<annotation>
<mention>Lebanese</mention>
<wikiName>Lebanon</wikiName>
<offset>986</offset>
<length>8</length>
</annotation>
<annotation>
<mention>Lebanese</mention>
<wikiName>Lebanon</wikiName>
<offset>1067</offset>
<length>8</length>
</annotation>
<annotation>
<mention>Lebanese</mention>
<wikiName>Lebanon</wikiName>
<offset>1123</offset>
<length>8</length>
</annotation>
<annotation>
<mention>Lahd</mention>
<wikiName></wikiName>
<offset>1175</offset>
<length>4</length>
</annotation>
<annotation>
<mention>Beirut</mention>
<wikiName>Beirut</wikiName>
<offset>1197</offset>
<length>6</length>
</annotation>
<annotation>
<mention>Lebanese</mention>
<wikiName>Lebanon</wikiName>
<offset>1250</offset>
<length>8</length>
</annotation>
<annotation>
<mention>Israel</mention>
<wikiName>Israel</wikiName>
<offset>1297</offset>
<length>6</length>
</annotation>
<annotation>
<mention>SLA</mention>
<wikiName>South Lebanon Army</wikiName>
<offset>1371</offset>
<length>3</length>
</annotation>
<annotation>
<mention>Israeli-held</mention>
<wikiName></wikiName>
<offset>1389</offset>
<length>12</length>
</annotation>
<annotation>
<mention>Lebanon</mention>
<wikiName>Lebanon</wikiName>
<offset>1416</offset>
<length>7</length>
</annotation>
<annotation>
<mention>Israel</mention>
<wikiName>Israel</wikiName>
<offset>1426</offset>
<length>6</length>
</annotation>
<annotation>
<mention>Lahd</mention>
<wikiName></wikiName>
<offset>1437</offset>
<length>4</length>
</annotation>
<annotation>
<mention>SLA</mention>
<wikiName>South Lebanon Army</wikiName>
<offset>1493</offset>
<length>3</length>
</annotation>
<annotation>
<mention>Christian-Shi'ite</mention>
<wikiName></wikiName>
<offset>1508</offset>
<length>17</length>
</annotation>
<annotation>
<mention>Moslem</mention>
<wikiName>Islam</wikiName>
<offset>1526</offset>
<length>6</length>
</annotation>
<annotation>
<mention>Jewish</mention>
<wikiName>Jews</wikiName>
<offset>1552</offset>
<length>6</length>
</annotation>
<annotation>
<mention>Israel</mention>
<wikiName>Israel</wikiName>
<offset>1592</offset>
<length>6</length>
</annotation>
<annotation>
<mention>Lebanese</mention>
<wikiName>Lebanon</wikiName>
<offset>1612</offset>
<length>8</length>
</annotation>
<annotation>
<mention>SLA</mention>
<wikiName>South Lebanon Army</wikiName>
<offset>1647</offset>
<length>3</length>
</annotation>
<annotation>
<mention>Lebanese</mention>
<wikiName>Lebanon</wikiName>
<offset>1725</offset>
<length>8</length>
</annotation>
<annotation>
<mention>Lebanese</mention>
<wikiName>Lebanon</wikiName>
<offset>1801</offset>
<length>8</length>
</annotation>
<annotation>
<mention>Lahd</mention>
<wikiName></wikiName>
<offset>1874</offset>
<length>4</length>
</annotation>
<annotation>
<mention>Israeli</mention>
<wikiName>Israel</wikiName>
<offset>1888</offset>
<length>7</length>
</annotation>
<annotation>
<mention>Shimon Peres</mention>
<wikiName>Shimon Peres</wikiName>
<offset>1911</offset>
<length>12</length>
</annotation>
<annotation>
<mention>Lahd</mention>
<wikiName></wikiName>
<offset>1933</offset>
<length>4</length>
</annotation>
<annotation>
<mention>Lebanese</mention>
<wikiName>Lebanon</wikiName>
<offset>1947</offset>
<length>8</length>
</annotation>
<annotation>
<mention>Lebanon</mention>
<wikiName>Lebanon</wikiName>
<offset>1989</offset>
<length>7</length>
</annotation>
<annotation>
<mention>SLA</mention>
<wikiName>South Lebanon Army</wikiName>
<offset>2014</offset>
<length>3</length>
</annotation>
<annotation>
<mention>Peres</mention>
<wikiName>Shimon Peres</wikiName>
<offset>2076</offset>
<length>5</length>
</annotation>
<annotation>
<mention>Israeli</mention>
<wikiName>Israel</wikiName>
<offset>2118</offset>
<length>7</length>
</annotation>
<annotation>
<mention>Benjamin Netanyahu</mention>
<wikiName>Benjamin Netanyahu</wikiName>
<offset>2133</offset>
<length>18</length>
</annotation>
<annotation>
<mention>Lebanon</mention>
<wikiName>Lebanon</wikiName>
<offset>2200</offset>
<length>7</length>
</annotation>
<annotation>
<mention>SLA</mention>
<wikiName>South Lebanon Army</wikiName>
<offset>2253</offset>
<length>3</length>
</annotation>
<annotation>
<mention>Beirut</mention>
<wikiName>Beirut</wikiName>
<offset>2283</offset>
<length>6</length>
</annotation>
<annotation>
<mention>Etian Saqr</mention>
<wikiName></wikiName>
<offset>2348</offset>
<length>10</length>
</annotation>
<annotation>
<mention>pro-Israeli</mention>
<wikiName></wikiName>
<offset>2379</offset>
<length>11</length>
</annotation>
<annotation>
<mention>Guardians of the Cedars</mention>
<wikiName>Guardians of the Cedars</wikiName>
<offset>2391</offset>
<length>23</length>
</annotation>
<annotation>
<mention>Christian</mention>
<wikiName>Catholicism</wikiName>
<offset>2434</offset>
<length>9</length>
</annotation>
<annotation>
<mention>Saqr</mention>
<wikiName>Etienne Saqr</wikiName>
<offset>2464</offset>
<length>4</length>
</annotation>
<annotation>
<mention>Lahd</mention>
<wikiName></wikiName>
<offset>2502</offset>
<length>4</length>
</annotation>
<annotation>
<mention>Israeli</mention>
<wikiName>Israel</wikiName>
<offset>2543</offset>
<length>7</length>
</annotation>
<annotation>
<mention>Israel</mention>
<wikiName>Israel</wikiName>
<offset>2581</offset>
<length>6</length>
</annotation>
<annotation>
<mention>Lebanon</mention>
<wikiName>Lebanon</wikiName>
<offset>2625</offset>
<length>7</length>
</annotation>
</document>
<document docName="239972newsML.txt">
<annotation>
<mention>Texas</mention>
<wikiName>Texas</wikiName>
<offset>0</offset>
<length>5</length>
</annotation>
<annotation>
<mention>Okla</mention>
<wikiName>Oklahoma</wikiName>
<offset>8</offset>
<length>4</length>
</annotation>
<annotation>
<mention>USDA</mention>
<wikiName>United States Department of Agriculture</wikiName>
<offset>45</offset>
<length>4</length>
</annotation>
<annotation>
<mention>AMARILLO</mention>
<wikiName>Amarillo, Texas</wikiName>
<offset>52</offset>
<length>8</length>
</annotation>
<annotation>
<mention>Panhandle</mention>
<wikiName>Oklahoma Panhandle</wikiName>
<offset>95</offset>
<length>9</length>
</annotation>
<annotation>
<mention>USDA</mention>
<wikiName>United States Department of Agriculture</wikiName>
<offset>118</offset>
<length>4</length>
</annotation>
<annotation>
<mention>Chicago</mention>
<wikiName>Chicago</wikiName>
<offset>604</offset>
<length>7</length>
</annotation>
</document>
<document docName="239988newsML.txt">
<annotation>
<mention>USDA</mention>
<wikiName>United States Department of Agriculture</wikiName>
<offset>0</offset>
<length>4</length>
</annotation>
<annotation>
<mention>Fed</mention>
<wikiName>Federal Reserve System</wikiName>
<offset>82</offset>
<length>3</length>
</annotation>
<annotation>
<mention>USDA</mention>
<wikiName>United States Department of Agriculture</wikiName>
<offset>99</offset>
<length>4</length>
</annotation>
<annotation>
<mention>NASS</mention>
<wikiName></wikiName>
<offset>694</offset>
<length>4</length>
</annotation>
</document>
<document docName="239999newsML.txt">
<annotation>
<mention>Hartford</mention>
<wikiName>Hartford, Connecticut</wikiName>
<offset>10</offset>
<length>8</length>
</annotation>
<annotation>
<mention>Conn</mention>
<wikiName></wikiName>
<offset>20</offset>
<length>4</length>
</annotation>
<annotation>
<mention>HARTFORD</mention>
<wikiName>Hartford, Connecticut</wikiName>
<offset>45</offset>
<length>8</length>
</annotation>
<annotation>
<mention>CONNECTICUT</mention>
<wikiName></wikiName>
<offset>55</offset>
<length>11</length>
</annotation>
<annotation>
<mention>MOODY'S</mention>
<wikiName></wikiName>
<offset>115</offset>
<length>7</length>
</annotation>
<annotation>
<mention>S&P</mention>
<wikiName>Standard & Poor's</wikiName>
<offset>137</offset>
<length>3</length>
</annotation>
<annotation>
<mention>FSA</mention>
<wikiName>Financial Services Authority</wikiName>
<offset>180</offset>
<length>3</length>
</annotation>
<annotation>
<mention>State Street Bank and Trust Company
Prudential Securities Incorporated
PaineWebber Incorporated
First Union Capital Markets Corp.</mention>
<wikiName></wikiName>
<offset>768</offset>
<length>132</length>
</annotation>
<annotation>
<mention>NJ</mention>
<wikiName></wikiName>
<offset>903</offset>
<length>2</length>
</annotation>
<annotation>
<mention>U.S. Municipal Desk</mention>
<wikiName></wikiName>
<offset>909</offset>
<length>19</length>
</annotation>
</document>
<document docName="240010newsML.txt">
<annotation>
<mention>Florida</mention>
<wikiName></wikiName>
<offset>16</offset>
<length>7</length>
</annotation>
<annotation>
<mention>TALLAHASSEE</mention>
<wikiName>Tallahassee, Florida</wikiName>
<offset>47</offset>
<length>11</length>
</annotation>
<annotation>
<mention>Fla.</mention>
<wikiName></wikiName>
<offset>60</offset>
<length>4</length>
</annotation>
<annotation>
<mention>John Mills</mention>
<wikiName></wikiName>
<offset>165</offset>
<length>10</length>
</annotation>
<annotation>
<mention>Florida</mention>
<wikiName></wikiName>
<offset>205</offset>
<length>7</length>
</annotation>
<annotation>
<mention>Glenn Lawhon</mention>
<wikiName></wikiName>
<offset>242</offset>
<length>12</length>
</annotation>
<annotation>
<mention>Florida</mention>
<wikiName></wikiName>
<offset>264</offset>
<length>7</length>
</annotation>
<annotation>
<mention>Mills</mention>
<wikiName></wikiName>
<offset>320</offset>
<length>5</length>
</annotation>
<annotation>
<mention>GMT</mention>
<wikiName>Greenwich Mean Time</wikiName>
<offset>369</offset>
<length>3</length>
</annotation>
<annotation>
<mention>Lester Lawhon</mention>
<wikiName></wikiName>
<offset>392</offset>
<length>13</length>
</annotation>
<annotation>
<mention>Arabic</mention>
<wikiName>Arabic language</wikiName>
<offset>420</offset>
<length>6</length>
</annotation>
<annotation>
<mention>Mills</mention>
<wikiName></wikiName>
<offset>428</offset>
<length>5</length>
</annotation>
<annotation>
<mention>Department of Corrections</mention>
<wikiName></wikiName>
<offset>563</offset>
<length>25</length>
</annotation>
<annotation>
<mention>Eugene Morris</mention>
<wikiName></wikiName>
<offset>599</offset>
<length>13</length>
</annotation>
<annotation>
<mention>God</mention>
<wikiName>God</wikiName>
<offset>682</offset>
<length>3</length>
</annotation>
<annotation>
<mention>Allah</mention>
<wikiName>Allah</wikiName>
<offset>690</offset>
<length>5</length>
</annotation>
<annotation>
<mention>Mohammed</mention>
<wikiName>Muhammad</wikiName>
<offset>732</offset>
<length>8</length>
</annotation>
<annotation>
<mention>God</mention>
<wikiName>God</wikiName>
<offset>761</offset>
<length>3</length>
</annotation>
<annotation>
<mention>Mills</mention>
<wikiName></wikiName>
<offset>777</offset>
<length>5</length>
</annotation>
<annotation>
<mention>Mills</mention>
<wikiName></wikiName>
<offset>839</offset>
<length>5</length>
</annotation>
<annotation>
<mention>Yuhanna Abdullah Muhammed</mention>
<wikiName></wikiName>
<offset>934</offset>
<length>25</length>
</annotation>
<annotation>
<mention>Islam</mention>
<wikiName>Islam</wikiName>
<offset>1040</offset>
<length>5</length>
</annotation>
<annotation>
<mention>Mills</mention>
<wikiName></wikiName>
<offset>1048</offset>
<length>5</length>
</annotation>
<annotation>
<mention>Florida</mention>
<wikiName></wikiName>
<offset>1083</offset>
<length>7</length>
</annotation>
<annotation>
<mention>U.S. Supreme Court</mention>
<wikiName>Supreme Court of the United States</wikiName>
<offset>1118</offset>
<length>18</length>
</annotation>
<annotation>
<mention>Mills</mention>
<wikiName></wikiName>
<offset>1217</offset>
<length>5</length>
</annotation>
<annotation>
<mention>Morris</mention>
<wikiName></wikiName>
<offset>1400</offset>
<length>6</length>
</annotation>
<annotation>
<mention>Mills</mention>
<wikiName></wikiName>
<offset>1414</offset>
<length>5</length>
</annotation>
<annotation>
<mention>Florida Supreme Court</mention>
<wikiName>Supreme Court of Florida</wikiName>
<offset>1501</offset>
<length>21</length>
</annotation>
<annotation>
<mention>U.S. Court of Appeals</mention>
<wikiName>United States courts of appeals</wikiName>
<offset>1554</offset>
<length>21</length>
</annotation>
<annotation>
<mention>Atlanta</mention>
<wikiName>Atlanta</wikiName>
<offset>1579</offset>
<length>7</length>
</annotation>
<annotation>
<mention>Mills</mention>
<wikiName></wikiName>
<offset>1639</offset>
<length>5</length>
</annotation>
<annotation>
<mention>Michael Frederick</mention>
<wikiName></wikiName>
<offset>1660</offset>
<length>17</length>
</annotation>
<annotation>
<mention>Lester Lawhon</mention>
<wikiName></wikiName>
<offset>1701</offset>
<length>13</length>
</annotation>
<annotation>
<mention>Lester Lawhon</mention>
<wikiName></wikiName>
<offset>1763</offset>
<length>13</length>
</annotation>
<annotation>
<mention>Mills</mention>
<wikiName></wikiName>
<offset>1850</offset>
<length>5</length>
</annotation>
<annotation>
<mention>Lawhon</mention>
<wikiName></wikiName>
<offset>1889</offset>
<length>6</length>
</annotation>
<annotation>
<mention>Frederick</mention>
<wikiName></wikiName>
<offset>1929</offset>
<length>9</length>
</annotation>
</document>
<document docName="240028newsML.txt">
<annotation>
<mention>New York</mention>
<wikiName>New York City</wikiName>
<offset>0</offset>
<length>8</length>
</annotation>
<annotation>
<mention>NEW YORK</mention>
<wikiName>New York City</wikiName>
<offset>42</offset>
<length>8</length>
</annotation>
<annotation>
<mention>China</mention>
<wikiName>China</wikiName>
<offset>95</offset>
<length>5</length>
</annotation>
<annotation>
<mention>New York Commodities Desk</mention>
<wikiName></wikiName>
<offset>142</offset>
<length>25</length>
</annotation>
</document>
<document docName="240058newsML.txt">
<annotation>
<mention>Iowa-S</mention>
<wikiName></wikiName>
<offset>0</offset>
<length>6</length>
</annotation>
<annotation>
<mention>Minn</mention>
<wikiName>Minnesota</wikiName>
<offset>7</offset>
<length>4</length>
</annotation>
<annotation>
<mention>sales-USDA</mention>
<wikiName></wikiName>
<offset>40</offset>
<length>10</length>
</annotation>
<annotation>
<mention>DES MOINES</mention>
<wikiName>Des Moines, Iowa</wikiName>
<offset>53</offset>
<length>10</length>
</annotation>
<annotation>
<mention>USDA</mention>
<wikiName>United States Department of Agriculture</wikiName>
<offset>149</offset>
<length>4</length>
</annotation>
<annotation>
<mention>Chicago</mention>
<wikiName>Chicago</wikiName>
<offset>785</offset>
<length>7</length>
</annotation>
</document>
<document docName="240063newsML.txt">
<annotation>
<mention>APPLETON</mention>
<wikiName>Appleton, Wisconsin</wikiName>
<offset>50</offset>
<length>8</length>
</annotation>
<annotation>
<mention>Wis</mention>
<wikiName></wikiName>
<offset>60</offset>
<length>3</length>
</annotation>
<annotation>
<mention>Darrel Voeks</mention>
<wikiName></wikiName>
<offset>262</offset>
<length>12</length>
</annotation>
<annotation>
<mention>Outagmie County</mention>
<wikiName></wikiName>
<offset>318</offset>
<length>15</length>
</annotation>
<annotation>
<mention>Dennis Luebke</mention>
<wikiName></wikiName>
<offset>354</offset>
<length>13</length>
</annotation>
<annotation>
<mention>Voeks</mention>
<wikiName></wikiName>
<offset>486</offset>
<length>5</length>
</annotation>
<annotation>
<mention>Voeks</mention>
<wikiName></wikiName>
<offset>579</offset>
<length>5</length>
</annotation>
<annotation>
<mention>Voeks</mention>
<wikiName></wikiName>
<offset>852</offset>
<length>5</length>
</annotation>
</document>
<document docName="240068newsML.txt">
<annotation>
<mention>Canadian</mention>
<wikiName>Canada</wikiName>
<offset>0</offset>
<length>8</length>
</annotation>
<annotation>
<mention>CHICAGO</mention>
<wikiName>Chicago</wikiName>
<offset>35</offset>
<length>7</length>
</annotation>
<annotation>
<mention>Reuter</mention>
<wikiName></wikiName>
<offset>51</offset>
<length>6</length>
</annotation>
<annotation>
<mention>Canadian Grain Commission</mention>
<wikiName>Canadian Grain Commission</wikiName>
<offset>124</offset>
<length>25</length>
</annotation>
<annotation>
<mention>Statistics Canada</mention>
<wikiName>Statistics Canada</wikiName>
<offset>1241</offset>
<length>17</length>
</annotation>
<annotation>
<mention>U.S.</mention>
<wikiName>United States</wikiName>
<offset>1298</offset>
<length>4</length>
</annotation>
<annotation>
<mention>Chicago</mention>
<wikiName>Chicago</wikiName>
<offset>1490</offset>
<length>7</length>
</annotation>
</document>
<document docName="240074newsML.txt">
<annotation>
<mention>NYMEX</mention>
<wikiName>New York Mercantile Exchange</wikiName>
<offset>0</offset>
<length>5</length>
</annotation>
<annotation>
<mention>NEW YORK</mention>
<wikiName>New York City</wikiName>
<offset>53</offset>
<length>8</length>
</annotation>
<annotation>
<mention>NYMEX</mention>
<wikiName>New York Mercantile Exchange</wikiName>
<offset>74</offset>
<length>5</length>
</annotation>
<annotation>
<mention>Henry Hub</mention>
<wikiName>Henry Hub</wikiName>
<offset>80</offset>
<length>9</length>
</annotation>
<annotation>
<mention>National Weather Service</mention>
<wikiName>National Weather Service</wikiName>
<offset>208</offset>
<length>24</length>
</annotation>
<annotation>
<mention>British</mention>
<wikiName>United Kingdom</wikiName>
<offset>335</offset>
<length>7</length>
</annotation>
<annotation>
<mention>National Weather Service</mention>
<wikiName>National Weather Service</wikiName>
<offset>502</offset>
<length>24</length>
</annotation>
<annotation>
<mention>U.S.</mention>
<wikiName>United States</wikiName>
<offset>593</offset>
<length>4</length>
</annotation>
<annotation>
<mention>NWS</mention>
<wikiName>National Weather Service</wikiName>
<offset>649</offset>
<length>3</length>
</annotation>
<annotation>
<mention>Gulf Coast</mention>
<wikiName></wikiName>
<offset>1034</offset>
<length>10</length>
</annotation>
<annotation>
<mention>New York</mention>
<wikiName>New York City</wikiName>
<offset>1163</offset>
<length>8</length>
</annotation>
<annotation>
<mention>NYMEX</mention>
<wikiName>New York Mercantile Exchange</wikiName>
<offset>1234</offset>
<length>5</length>
</annotation>
<annotation>
<mention>NYMEX</mention>
<wikiName>New York Mercantile Exchange</wikiName>
<offset>1334</offset>
<length>5</length>
</annotation>
<annotation>
<mention>Alberta</mention>
<wikiName></wikiName>
<offset>1340</offset>
<length>7</length>
</annotation>
<annotation>
<mention>AECO</mention>
<wikiName></wikiName>
<offset>1474</offset>
<length>4</length>
</annotation>
<annotation>
<mention>C$</mention>
<wikiName></wikiName>
<offset>1528</offset>
<length>2</length>
</annotation>
<annotation>
<mention>Canada</mention>
<wikiName>Canada</wikiName>
<offset>1636</offset>
<length>6</length>
</annotation>
<annotation>
<mention>NYMEX</mention>
<wikiName>New York Mercantile Exchange</wikiName>
<offset>1645</offset>
<length>5</length>
</annotation>
<annotation>
<mention>Permian</mention>
<wikiName></wikiName>
<offset>1651</offset>
<length>7</length>
</annotation>
<annotation>
<mention>Permian</mention>
<wikiName></wikiName>
<offset>1742</offset>
<length>7</length>
</annotation>
<annotation>
<mention>KCBT</mention>
<wikiName></wikiName>
<offset>1830</offset>
<length>4</length>
</annotation>
<annotation>
<mention>NYMEX</mention>
<wikiName>New York Mercantile Exchange</wikiName>
<offset>2086</offset>
<length>5</length>
</annotation>
<annotation>
<mention>Waha</mention>
<wikiName></wikiName>
<offset>2122</offset>
<length>4</length>
</annotation>
<annotation>
<mention>H McCulloch</mention>
<wikiName></wikiName>
<offset>2239</offset>
<length>11</length>
</annotation>
<annotation>
<mention>New York Power Desk</mention>
<wikiName></wikiName>
<offset>2252</offset>
<length>19</length>
</annotation>
</document>
<document docName="240085newsML.txt">
<annotation>
<mention>U.S.</mention>
<wikiName>United States</wikiName>
<offset>0</offset>
<length>4</length>
</annotation>
<annotation>
<mention>ST. LOUIS</mention>
<wikiName>St. Louis</wikiName>
<offset>45</offset>
<length>9</length>
</annotation>
<annotation>
<mention>U.S.</mention>
<wikiName>United States</wikiName>
<offset>67</offset>
<length>4</length>
</annotation>
<annotation>
<mention>St. Louis</mention>
<wikiName>St. Louis</wikiName>
<offset>118</offset>
<length>9</length>
</annotation>
<annotation>
<mention>Illinois</mention>
<wikiName>Illinois</wikiName>
<offset>229</offset>
<length>8</length>
</annotation>
<annotation>
<mention>Ohio</mention>
<wikiName>Ohio</wikiName>
<offset>342</offset>
<length>4</length>
</annotation>
<annotation>
<mention>Illinois</mention>
<wikiName>Illinois</wikiName>
<offset>429</offset>
<length>8</length>
</annotation>
<annotation>
<mention>mid-Mississippi</mention>
<wikiName></wikiName>
<offset>532</offset>
<length>15</length>
</annotation>
<annotation>
<mention>McGregor</mention>
<wikiName></wikiName>
<offset>549</offset>
<length>8</length>
</annotation>
<annotation>
<mention>Illinois</mention>
<wikiName>Illinois</wikiName>
<offset>669</offset>
<length>8</length>
</annotation>
<annotation>
<mention>mid-Mississippi</mention>
<wikiName></wikiName>
<offset>775</offset>
<length>15</length>
</annotation>
<annotation>
<mention>Chicago</mention>
<wikiName>Chicago</wikiName>
<offset>869</offset>
<length>7</length>
</annotation>
</document>
<document docName="240112newsML.txt">
<annotation>
<mention>CBOT</mention>
<wikiName>Chicago Board of Trade</wikiName>
<offset>0</offset>
<length>4</length>
</annotation>
<annotation>
<mention>CHICAGO</mention>
<wikiName>Chicago</wikiName>
<offset>44</offset>
<length>7</length>
</annotation>
<annotation>
<mention>Chicago Board of Trade</mention>
<wikiName>Chicago Board of Trade</wikiName>
<offset>187</offset>
<length>22</length>
</annotation>
<annotation>
<mention>Chicago</mention>
<wikiName>Chicago</wikiName>
<offset>249</offset>
<length>7</length>
</annotation>
<annotation>
<mention>St. Louis</mention>
<wikiName>St. Louis</wikiName>
<offset>271</offset>
<length>9</length>
</annotation>
<annotation>
<mention>Toledo</mention>
<wikiName>Toledo, Ohio</wikiName>
<offset>298</offset>
<length>6</length>
</annotation>
<annotation>
<mention>Chicago</mention>
<wikiName>Chicago</wikiName>
<offset>326</offset>
<length>7</length>
</annotation>
<annotation>
<mention>St. Louis</mention>
<wikiName>St. Louis</wikiName>
<offset>353</offset>
<length>9</length>
</annotation>
<annotation>
<mention>Toledo</mention>
<wikiName>Toledo, Ohio</wikiName>
<offset>385</offset>
<length>6</length>
</annotation>
<annotation>
<mention>Chicago</mention>
<wikiName>Chicago</wikiName>
<offset>423</offset>
<length>7</length>
</annotation>
<annotation>
<mention>Minneapolis</mention>
<wikiName>Minneapolis</wikiName>
<offset>445</offset>
<length>11</length>
</annotation>
<annotation>
<mention>Chicago</mention>
<wikiName>Chicago</wikiName>
<offset>487</offset>
<length>7</length>
</annotation>
<annotation>
<mention>St. Louis</mention>
<wikiName>St. Louis</wikiName>
<offset>514</offset>
<length>9</length>
</annotation>
<annotation>
<mention>Toledo</mention>
<wikiName>Toledo, Ohio</wikiName>
<offset>546</offset>
<length>6</length>
</annotation>
<annotation>
<mention>Chicago Newsdesk</mention>
<wikiName></wikiName>
<offset>575</offset>
<length>16</length>
</annotation>
</document>
<document docName="240122newsML.txt">
<annotation>
<mention>Clinton</mention>
<wikiName>Bill Clinton</wikiName>
<offset>0</offset>
<length>7</length>
</annotation>
<annotation>
<mention>WASHINGTON</mention>
<wikiName>Washington, D.C.</wikiName>
<offset>52</offset>
<length>10</length>
</annotation>
<annotation>
<mention>Clinton</mention>
<wikiName>Bill Clinton</wikiName>
<offset>85</offset>
<length>7</length>
</annotation>
<annotation>
<mention>White House</mention>
<wikiName>White House</wikiName>
<offset>178</offset>
<length>11</length>
</annotation>
<annotation>
<mention>White House</mention>
<wikiName>White House</wikiName>
<offset>403</offset>
<length>11</length>
</annotation>
<annotation>
<mention>Mike McCurry</mention>
<wikiName>Mike McCurry (press secretary)</wikiName>
<offset>425</offset>
<length>12</length>
</annotation>
<annotation>
<mention>Clinton</mention>
<wikiName>Bill Clinton</wikiName>
<offset>443</offset>
<length>7</length>
</annotation>
</document>
<document docName="240138newsML.txt">
<annotation>
<mention>TEMPE</mention>
<wikiName>Tempe, Arizona</wikiName>
<offset>38</offset>
<length>5</length>
</annotation>
<annotation>
<mention>Ariz</mention>
<wikiName></wikiName>
<offset>45</offset>
<length>4</length>
</annotation>
<annotation>
<mention>Action Performance Cos Inc</mention>
<wikiName></wikiName>
<offset>63</offset>
<length>26</length>
</annotation>
<annotation>
<mention>Motorsport Traditions Ltd</mention>
<wikiName></wikiName>
<offset>128</offset>
<length>25</length>
</annotation>
<annotation>
<mention>Creative Marketing & Promotions Inc</mention>
<wikiName></wikiName>
<offset>159</offset>
<length>35</length>
</annotation>
</document>
<document docName="240150newsML.txt">
<annotation>
<mention>American</mention>
<wikiName>United States</wikiName>
<offset>33</offset>
<length>8</length>
</annotation>
<annotation>
<mention>CHICAGO</mention>
<wikiName>Chicago</wikiName>
<offset>48</offset>
<length>7</length>
</annotation>
<annotation>
<mention>United States</mention>
<wikiName>United States</wikiName>
<offset>119</offset>
<length>13</length>
</annotation>
<annotation>
<mention>United States</mention>
<wikiName>United States</wikiName>
<offset>265</offset>
<length>13</length>
</annotation>
<annotation>
<mention>Michael Cornwell</mention>
<wikiName></wikiName>
<offset>489</offset>
<length>16</length>
</annotation>
<annotation>
<mention>Glencoe Animal Hospital</mention>
<wikiName></wikiName>
<offset>513</offset>
<length>23</length>
</annotation>
<annotation>
<mention>Columbus</mention>
<wikiName>Columbus, Ohio</wikiName>
<offset>540</offset>
<length>8</length>
</annotation>
<annotation>
<mention>Ohio</mention>
<wikiName>Ohio</wikiName>
<offset>550</offset>
<length>4</length>
</annotation>
<annotation>
<mention>American Veterinary Medical Association</mention>
<wikiName>American Veterinary Medical Association</wikiName>
<offset>587</offset>
<length>39</length>
</annotation>
<annotation>
<mention>Cornwell</mention>
<wikiName></wikiName>
<offset>781</offset>
<length>8</length>
</annotation>
<annotation>
<mention>Don Rieck</mention>
<wikiName></wikiName>
<offset>997</offset>
<length>9</length>
</annotation>
<annotation>
<mention>National Animal Control Association</mention>
<wikiName></wikiName>
<offset>1025</offset>
<length>35</length>
</annotation>
<annotation>
<mention>Rottweilers</mention>
<wikiName></wikiName>
<offset>1298</offset>
<length>11</length>
</annotation>
<annotation>
<mention>German shepherds</mention>
<wikiName>German Shepherd</wikiName>
<offset>1311</offset>
<length>16</length>
</annotation>
<annotation>
<mention>cocker spaniels</mention>
<wikiName>Cocker Spaniel</wikiName>
<offset>1329</offset>
<length>15</length>
</annotation>
<annotation>
<mention>Dalmatians</mention>
<wikiName>Dalmatian (dog)</wikiName>
<offset>1349</offset>
<length>10</length>
</annotation>
<annotation>
<mention>Doberman</mention>
<wikiName>Doberman Pinscher</wikiName>
<offset>1557</offset>
<length>8</length>
</annotation>
<annotation>
<mention>Rottweilers</mention>
<wikiName></wikiName>
<offset>1574</offset>
<length>11</length>
</annotation>
<annotation>
<mention>Rieck</mention>
<wikiName></wikiName>
<offset>1606</offset>
<length>5</length>
</annotation>
</document>
<document docName="240160newsML.txt">
<annotation>
<mention>Iowa-S</mention>
<wikiName></wikiName>
<offset>0</offset>
<length>6</length>
</annotation>
<annotation>
<mention>Minn</mention>
<wikiName>Minnesota</wikiName>
<offset>7</offset>
<length>4</length>
</annotation>
<annotation>
<mention>USDA</mention>
<wikiName>United States Department of Agriculture</wikiName>
<offset>46</offset>
<length>4</length>
</annotation>
<annotation>
<mention>DES MOINES</mention>
<wikiName>Des Moines, Iowa</wikiName>
<offset>53</offset>
<length>10</length>
</annotation>
<annotation>
<mention>USDA</mention>
<wikiName>United States Department of Agriculture</wikiName>
<offset>144</offset>
<length>4</length>
</annotation>
<annotation>
<mention>Chicago</mention>
<wikiName>Chicago</wikiName>
<offset>210</offset>
<length>7</length>
</annotation>
</document>
<document docName="240201newsML.txt">
<annotation>
<mention>Nebraska</mention>
<wikiName>Nebraska</wikiName>
<offset>0</offset>
<length>8</length>
</annotation>
<annotation>
<mention>USDA</mention>
<wikiName>United States Department of Agriculture</wikiName>
<offset>30</offset>
<length>4</length>
</annotation>
<annotation>
<mention>OMAHA</mention>
<wikiName>Omaha, Nebraska</wikiName>
<offset>37</offset>
<length>5</length>
</annotation>
<annotation>
<mention>USDA</mention>
<wikiName>United States Department of Agriculture</wikiName>
<offset>156</offset>
<length>4</length>
</annotation>
</document>
<document docName="240212newsML.txt">
<annotation>
<mention>Africans</mention>
<wikiName>Africa</wikiName>
<offset>5</offset>
<length>8</length>
</annotation>
<annotation>
<mention>U.N.</mention>
<wikiName>United Nations</wikiName>
<offset>34</offset>
<length>4</length>
</annotation>
<annotation>
<mention>Evelyn Leopold</mention>
<wikiName></wikiName>
<offset>46</offset>
<length>14</length>
</annotation>
<annotation>
<mention>UNITED NATIONS</mention>
<wikiName>United Nations</wikiName>
<offset>62</offset>
<length>14</length>
</annotation>
<annotation>
<mention>African</mention>
<wikiName>Africa</wikiName>
<offset>94</offset>
<length>7</length>
</annotation>
<annotation>
<mention>U.N.</mention>
<wikiName>United Nations</wikiName>
<offset>158</offset>
<length>4</length>
</annotation>
<annotation>
<mention>Boutros Boutros-Ghali</mention>
<wikiName>Boutros Boutros-Ghali</wikiName>
<offset>200</offset>
<length>21</length>
</annotation>
<annotation>
<mention>Kofi Annan</mention>
<wikiName>Kofi Annan</wikiName>
<offset>317</offset>
<length>10</length>
</annotation>
<annotation>
<mention>Ghana</mention>
<wikiName>Ghana</wikiName>
<offset>331</offset>
<length>5</length>
</annotation>
<annotation>
<mention>U.N.</mention>
<wikiName>United Nations</wikiName>
<offset>342</offset>
<length>4</length>
</annotation>
<annotation>
<mention>Ahmedou Ould Abdallah</mention>
<wikiName>Ahmedou Ould-Abdallah</wikiName>
<offset>388</offset>
<length>21</length>
</annotation>
<annotation>
<mention>Mauritania</mention>
<wikiName>Mauritania</wikiName>
<offset>413</offset>
<length>10</length>
</annotation>
<annotation>
<mention>U.N.</mention>
<wikiName>United Nations</wikiName>
<offset>436</offset>
<length>4</length>
</annotation>
<annotation>
<mention>Burundi</mention>
<wikiName>Burundi</wikiName>
<offset>459</offset>
<length>7</length>
</annotation>
<annotation>
<mention>Amara Essy</mention>
<wikiName>Amara Essy</wikiName>
<offset>468</offset>
<length>10</length>
</annotation>
<annotation>
<mention>Ivory Coast</mention>
<wikiName>Ivory Coast</wikiName>
<offset>486</offset>
<length>11</length>
</annotation>
<annotation>
<mention>U.N. General Assembly</mention>
<wikiName></wikiName>
<offset>528</offset>
<length>21</length>
</annotation>
<annotation>
<mention>Hamid Algabid</mention>
<wikiName>Hamid Algabid</wikiName>
<offset>576</offset>
<length>13</length>
</annotation>
<annotation>
<mention>Niger</mention>
<wikiName>Niger</wikiName>
<offset>593</offset>
<length>5</length>
</annotation>
<annotation>
<mention>Organisation of the Islamic Conference</mention>
<wikiName>Organisation of Islamic Cooperation</wikiName>
<offset>629</offset>
<length>38</length>
</annotation>
<annotation>
<mention>U.N.</mention>
<wikiName>United Nations</wikiName>
<offset>693</offset>
<length>4</length>
</annotation>
<annotation>
<mention>Ghana</mention>
<wikiName>Ghana</wikiName>
<offset>710</offset>
<length>5</length>
</annotation>
<annotation>
<mention>Ivory Coast</mention>
<wikiName>Ivory Coast</wikiName>
<offset>721</offset>
<length>11</length>
</annotation>
<annotation>
<mention>Mauritania</mention>
<wikiName>Mauritania</wikiName>
<offset>734</offset>
<length>10</length>
</annotation>
<annotation>
<mention>Niger</mention>
<wikiName>Niger</wikiName>
<offset>749</offset>
<length>5</length>
</annotation>
<annotation>
<mention>Security Council</mention>
<wikiName>United Nations Security Council</wikiName>
<offset>785</offset>
<length>16</length>
</annotation>
<annotation>
<mention>Paolo Fulci</mention>
<wikiName></wikiName>
<offset>812</offset>
<length>11</length>
</annotation>
<annotation>
<mention>Italy</mention>
<wikiName>Italy</wikiName>
<offset>827</offset>
<length>5</length>
</annotation>
<annotation>
<mention>Joseph Garba</mention>
<wikiName>Joseph Nanven Garba</wikiName>
<offset>970</offset>
<length>12</length>
</annotation>
<annotation>
<mention>Nigeria</mention>
<wikiName>Nigeria</wikiName>
<offset>986</offset>
<length>7</length>
</annotation>
<annotation>
<mention>U.N. General Assembly</mention>
<wikiName></wikiName>
<offset>998</offset>
<length>21</length>
</annotation>
<annotation>
<mention>Boutros-Ghali</mention>
<wikiName>Boutros Boutros-Ghali</wikiName>
<offset>1119</offset>
<length>13</length>
</annotation>
<annotation>
<mention>Africans</mention>
<wikiName>Africa</wikiName>
<offset>1172</offset>
<length>8</length>
</annotation>
<annotation>
<mention>United States</mention>
<wikiName>United States</wikiName>
<offset>1401</offset>
<length>13</length>
</annotation>
<annotation>
<mention>Security Council</mention>
<wikiName>United Nations Security Council</wikiName>
<offset>1476</offset>
<length>16</length>
</annotation>
<annotation>
<mention>African</mention>
<wikiName>Africa</wikiName>
<offset>1533</offset>
<length>7</length>
</annotation>
<annotation>
<mention>Security Council</mention>
<wikiName>United Nations Security Council</wikiName>
<offset>1733</offset>
<length>16</length>
</annotation>
<annotation>
<mention>General Assembly</mention>
<wikiName></wikiName>
<offset>1838</offset>
<length>16</length>
</annotation>
<annotation>
<mention>Boutros-Ghali</mention>
<wikiName>Boutros Boutros-Ghali</wikiName>
<offset>1879</offset>
<length>13</length>
</annotation>
</document>
<document docName="240230newsML.txt">
<annotation>
<mention>Spain</mention>
<wikiName>Spain</wikiName>
<offset>0</offset>
<length>5</length>
</annotation>
<annotation>
<mention>MADRID</mention>
<wikiName>Madrid</wikiName>
<offset>49</offset>
<length>6</length>
</annotation>
<annotation>
<mention>Spanish</mention>
<wikiName>Spain</wikiName>
<offset>68</offset>
<length>7</length>
</annotation>
<annotation>
<mention>Basque</mention>
<wikiName>Basque Country (greater region)</wikiName>
<offset>208</offset>
<length>6</length>
</annotation>
<annotation>
<mention>Spain</mention>
<wikiName>Spain</wikiName>
<offset>231</offset>
<length>5</length>
</annotation>
<annotation>
<mention>Pamplona</mention>
<wikiName>Pamplona</wikiName>
<offset>325</offset>
<length>8</length>
</annotation>
<annotation>
<mention>Herri Batasuna</mention>
<wikiName>Batasuna</wikiName>
<offset>365</offset>
<length>14</length>
</annotation>
<annotation>
<mention>Basque</mention>
<wikiName>Basque Country (greater region)</wikiName>
<offset>403</offset>
<length>6</length>
</annotation>
<annotation>
<mention>ETA</mention>
<wikiName>ETA</wikiName>
<offset>427</offset>
<length>3</length>
</annotation>
<annotation>
<mention>Spain</mention>
<wikiName>Spain</wikiName>
<offset>616</offset>
<length>5</length>
</annotation>
</document>
<document docName="240237newsML.txt">
<annotation>
<mention>Mussolini</mention>
<wikiName>Benito Mussolini</wikiName>
<offset>0</offset>
<length>9</length>
</annotation>
<annotation>
<mention>ROME</mention>
<wikiName>Rome</wikiName>
<offset>52</offset>
<length>4</length>
</annotation>
<annotation>
<mention>Alessandra Mussolini</mention>
<wikiName>Alessandra Mussolini</wikiName>
<offset>69</offset>
<length>20</length>
</annotation>
<annotation>
<mention>Italy</mention>
<wikiName>Italy</wikiName>
<offset>112</offset>
<length>5</length>
</annotation>
<annotation>
<mention>Benito Mussolini</mention>
<wikiName>Benito Mussolini</wikiName>
<offset>137</offset>
<length>16</length>
</annotation>
<annotation>
<mention>National Alliance</mention>
<wikiName>National Alliance (Italy)</wikiName>
<offset>201</offset>
<length>17</length>
</annotation>
<annotation>
<mention>AN</mention>
<wikiName></wikiName>
<offset>220</offset>
<length>2</length>
</annotation>
<annotation>
<mention>AN</mention>
<wikiName></wikiName>
<offset>330</offset>
<length>2</length>
</annotation>
<annotation>
<mention>Gianfranco Fini</mention>
<wikiName>Gianfranco Fini</wikiName>
<offset>340</offset>
<length>15</length>
</annotation>
<annotation>
<mention>Fini</mention>
<wikiName>Gianfranco Fini</wikiName>
<offset>494</offset>
<length>4</length>
</annotation>
<annotation>
<mention>RAI</mention>
<wikiName>RAI</wikiName>
<offset>516</offset>
<length>3</length>
</annotation>
<annotation>
<mention>Mussolini</mention>
<wikiName>Alessandra Mussolini</wikiName>
<offset>527</offset>
<length>9</length>
</annotation>
<annotation>
<mention>Giuseppe Tatarella</mention>
<wikiName></wikiName>
<offset>567</offset>
<length>18</length>
</annotation>
<annotation>
<mention>AN</mention>
<wikiName></wikiName>
<offset>587</offset>
<length>2</length>
</annotation>
<annotation>
<mention>Chamber of Deputies</mention>
<wikiName></wikiName>
<offset>606</offset>
<length>19</length>
</annotation>
<annotation>
<mention>Mussolini</mention>
<wikiName>Alessandra Mussolini</wikiName>
<offset>678</offset>
<length>9</length>
</annotation>
<annotation>
<mention>Sophia Loren</mention>
<wikiName>Sophia Loren</wikiName>
<offset>845</offset>
<length>12</length>
</annotation>
<annotation>
<mention>AN</mention>
<wikiName></wikiName>
<offset>871</offset>
<length>2</length>
</annotation>
<annotation>
<mention>Mussolini</mention>
<wikiName>Alessandra Mussolini</wikiName>
<offset>918</offset>
<length>9</length>
</annotation>
<annotation>
<mention>Chamber</mention>
<wikiName></wikiName>
<offset>945</offset>
<length>7</length>
</annotation>
<annotation>
<mention>La Stampa</mention>
<wikiName>La Stampa</wikiName>
<offset>959</offset>
<length>9</length>
</annotation>
<annotation>
<mention>AN</mention>
<wikiName></wikiName>
<offset>1005</offset>
<length>2</length>
</annotation>
<annotation>
<mention>Social Movement</mention>
<wikiName></wikiName>
<offset>1079</offset>
<length>15</length>
</annotation>
<annotation>
<mention>MS-Fiamma</mention>
<wikiName></wikiName>
<offset>1096</offset>
<length>9</length>
</annotation>
<annotation>
<mention>World War Two</mention>
<wikiName>World War II</wikiName>
<offset>1136</offset>
<length>13</length>
</annotation>
</document>
<document docName="240243newsML.txt">
<annotation>
<mention>German</mention>
<wikiName>Germany</wikiName>
<offset>0</offset>
<length>6</length>
</annotation>
<annotation>
<mention>Santa</mention>
<wikiName>Santa Claus</wikiName>
<offset>7</offset>
<length>5</length>
</annotation>
<annotation>
<mention>HANOVER</mention>
<wikiName>Hanover</wikiName>
<offset>44</offset>
<length>7</length>
</annotation>
<annotation>
<mention>Germany</mention>
<wikiName>Germany</wikiName>
<offset>53</offset>
<length>7</length>
</annotation>
<annotation>
<mention>Santa Claus</mention>
<wikiName>Santa Claus</wikiName>
<offset>75</offset>
<length>11</length>
</annotation>
<annotation>
<mention>German</mention>
<wikiName>Germany</wikiName>
<offset>125</offset>
<length>6</length>
</annotation>
<annotation>
<mention>Hanover</mention>
<wikiName>Hanover</wikiName>
<offset>292</offset>
<length>7</length>
</annotation>
<annotation>
<mention>German</mention>
<wikiName>Germany</wikiName>
<offset>316</offset>
<length>6</length>
</annotation>
<annotation>
<mention>Saint Nicholas</mention>
<wikiName>Saint Nicholas</wikiName>
<offset>374</offset>
<length>14</length>
</annotation>
</document>
<document docName="240257newsML.txt">
<annotation>
<mention>Italy</mention>
<wikiName>Italy</wikiName>
<offset>0</offset>
<length>5</length>
</annotation>
<annotation>
<mention>ROME</mention>
<wikiName>Rome</wikiName>
<offset>53</offset>
<length>4</length>
</annotation>
<annotation>
<mention>Italian</mention>
<wikiName>Italy</wikiName>
<offset>74</offset>
<length>7</length>
</annotation>
<annotation>
<mention>Senate</mention>
<wikiName></wikiName>
<offset>94</offset>
<length>6</length>
</annotation>
<annotation>
<mention>Italy</mention>
<wikiName>Italy</wikiName>
<offset>152</offset>
<length>5</length>
</annotation>
<annotation>
<mention>Senate</mention>
<wikiName></wikiName>
<offset>269</offset>
<length>6</length>
</annotation>
<annotation>
<mention>Milan</mention>
<wikiName>Milan</wikiName>
<offset>333</offset>
<length>5</length>
</annotation>
</document>
<document docName="240311newsML.txt">
<annotation>
<mention>EU</mention>
<wikiName></wikiName>
<offset>0</offset>
<length>2</length>
</annotation>
<annotation>
<mention>Poland</mention>
<wikiName>Poland</wikiName>
<offset>4</offset>
<length>6</length>
</annotation>
<annotation>
<mention>BRUSSELS</mention>
<wikiName>Brussels</wikiName>
<offset>41</offset>
<length>8</length>
</annotation>
<annotation>
<mention>European Union</mention>
<wikiName>European Union</wikiName>
<offset>66</offset>
<length>14</length>
</annotation>
<annotation>
<mention>Poland</mention>
<wikiName>Poland</wikiName>
<offset>85</offset>
<length>6</length>
</annotation>
<annotation>
<mention>Polish</mention>
<wikiName>Poland</wikiName>
<offset>131</offset>
<length>6</length>
</annotation>
<annotation>
<mention>European Commission</mention>
<wikiName>European Commission</wikiName>
<offset>161</offset>
<length>19</length>
</annotation>
<annotation>
<mention>EU</mention>
<wikiName></wikiName>
<offset>202</offset>
<length>2</length>
</annotation>
<annotation>
<mention>Polish</mention>
<wikiName>Poland</wikiName>
<offset>234</offset>
<length>6</length>
</annotation>
<annotation>
<mention>Europe</mention>
<wikiName>Europe</wikiName>
<offset>381</offset>
<length>6</length>
</annotation>
<annotation>
<mention>EU</mention>
<wikiName></wikiName>
<offset>410</offset>
<length>2</length>
</annotation>
<annotation>
<mention>Poland</mention>
<wikiName>Poland</wikiName>
<offset>417</offset>
<length>6</length>
</annotation>
<annotation>
<mention>Polish</mention>
<wikiName>Poland</wikiName>
<offset>469</offset>
<length>6</length>
</annotation>
<annotation>
<mention>EU</mention>
<wikiName></wikiName>
<offset>540</offset>
<length>2</length>
</annotation>
<annotation>
<mention>Poland</mention>
<wikiName>Poland</wikiName>
<offset>547</offset>
<length>6</length>
</annotation>
<annotation>
<mention>Polish</mention>
<wikiName>Poland</wikiName>
<offset>622</offset>
<length>6</length>
</annotation>
<annotation>
<mention>Commission</mention>
<wikiName>European Commission</wikiName>
<offset>668</offset>
<length>10</length>
</annotation>
<annotation>
<mention>Poland</mention>
<wikiName>Poland</wikiName>
<offset>722</offset>
<length>6</length>
</annotation>
<annotation>
<mention>Polish</mention>
<wikiName>Poland</wikiName>
<offset>938</offset>
<length>6</length>
</annotation>
<annotation>
<mention>EU</mention>
<wikiName></wikiName>
<offset>1028</offset>
<length>2</length>
</annotation>
<annotation>
<mention>Poland</mention>
<wikiName>Poland</wikiName>
<offset>1035</offset>
<length>6</length>
</annotation>
</document>
<document docName="240330newsML.txt">
<annotation>
<mention>Hindu</mention>
<wikiName>Hindu nationalism</wikiName>
<offset>0</offset>
<length>5</length>
</annotation>
<annotation>
<mention>India</mention>
<wikiName>India</wikiName>
<offset>19</offset>
<length>5</length>
</annotation>
<annotation>
<mention>NEW DELHI</mention>
<wikiName>New Delhi</wikiName>
<offset>49</offset>
<length>9</length>
</annotation>
<annotation>
<mention>Hindu</mention>
<wikiName>Hindu nationalism</wikiName>
<offset>71</offset>
<length>5</length>
</annotation>
<annotation>
<mention>India</mention>
<wikiName>India</wikiName>
<offset>112</offset>
<length>5</length>
</annotation>
<annotation>
<mention>Hindu</mention>
<wikiName></wikiName>
<offset>255</offset>
<length>5</length>
</annotation>
<annotation>
<mention>Hindu</mention>
<wikiName>Hindu nationalism</wikiName>
<offset>290</offset>
<length>5</length>
</annotation>
<annotation>
<mention>Bharatiya Janata Party</mention>
<wikiName>Bharatiya Janata Party</wikiName>
<offset>308</offset>
<length>22</length>
</annotation>
<annotation>
<mention>BJP</mention>
<wikiName>Bharatiya Janata Party</wikiName>
<offset>332</offset>
<length>3</length>
</annotation>
<annotation>
<mention>pro-Hindu</mention>
<wikiName></wikiName>
<offset>345</offset>
<length>9</length>
</annotation>
<annotation>
<mention>BJP</mention>
<wikiName>Bharatiya Janata Party</wikiName>
<offset>558</offset>
<length>3</length>
</annotation>
<annotation>
<mention>Suraj Bhan</mention>
<wikiName>Suraj Bhan</wikiName>
<offset>619</offset>
<length>10</length>
</annotation>
<annotation>
<mention>Indian</mention>
<wikiName>India</wikiName>
<offset>719</offset>
<length>6</length>
</annotation>
<annotation>
<mention>Ayodhya</mention>
<wikiName>Ayodhya</wikiName>
<offset>734</offset>
<length>7</length>
</annotation>
<annotation>
<mention>Hindu-Moslem</mention>
<wikiName></wikiName>
<offset>763</offset>
<length>12</length>
</annotation>
<annotation>
<mention>Indian</mention>
<wikiName>India</wikiName>
<offset>831</offset>
<length>6</length>
</annotation>
<annotation>
<mention>Moslem</mention>
<wikiName>Islam</wikiName>
<offset>869</offset>
<length>6</length>
</annotation>
<annotation>
<mention>Bombay</mention>
<wikiName>Mumbai</wikiName>
<offset>896</offset>
<length>6</length>
</annotation>
<annotation>
<mention>BJP</mention>
<wikiName>Bharatiya Janata Party</wikiName>
<offset>988</offset>
<length>3</length>
</annotation>
<annotation>
<mention>Hindu</mention>
<wikiName>Hindu nationalism</wikiName>
<offset>1009</offset>
<length>5</length>
</annotation>
<annotation>
<mention>Hindus</mention>
<wikiName></wikiName>
<offset>1075</offset>
<length>6</length>
</annotation>
<annotation>
<mention>Rama</mention>
<wikiName>Rama</wikiName>
<offset>1121</offset>
<length>4</length>
</annotation>
<annotation>
<mention>BJP</mention>
<wikiName>Bharatiya Janata Party</wikiName>
<offset>1151</offset>
<length>3</length>
</annotation>
<annotation>
<mention>India</mention>
<wikiName>India</wikiName>
<offset>1191</offset>
<length>5</length>
</annotation>
</document>
<document docName="240345newsML.txt">
<annotation>
<mention>Indian</mention>
<wikiName>India</wikiName>
<offset>0</offset>
<length>6</length>
</annotation>
<annotation>
<mention>NEW DELHI</mention>
<wikiName>New Delhi</wikiName>
<offset>50</offset>
<length>9</length>
</annotation>
<annotation>
<mention>India</mention>
<wikiName>India</wikiName>
<offset>72</offset>
<length>5</length>
</annotation>
</document>
<document docName="240572newsML.txt">
<annotation>
<mention>LUXEMBOURG</mention>
<wikiName>Luxembourg</wikiName>
<offset>0</offset>
<length>10</length>
</annotation>
<annotation>
<mention>BRUSSELS</mention>
<wikiName>Brussels</wikiName>
<offset>53</offset>
<length>8</length>
</annotation>
<annotation>
<mention>Luxembourg</mention>
<wikiName>Luxembourg</wikiName>
<offset>74</offset>
<length>10</length>
</annotation>
<annotation>
<mention>Brussels Newsroom</mention>
<wikiName></wikiName>
<offset>379</offset>
<length>17</length>
</annotation>
</document>
<document docName="240622newsML.txt">
<annotation>
<mention>London</mention>
<wikiName>London</wikiName>
<offset>0</offset>
<length>6</length>
</annotation>
<annotation>
<mention>LONDON</mention>
<wikiName>London</wikiName>
<offset>27</offset>
<length>6</length>
</annotation>
<annotation>
<mention>Lantau Peak</mention>
<wikiName>Lantau Peak</wikiName>
<offset>53</offset>
<length>11</length>
</annotation>
<annotation>
<mention>Hay Point</mention>
<wikiName>Hay Point, Queensland</wikiName>
<offset>86</offset>
<length>9</length>
</annotation>
<annotation>
<mention>Newcastle</mention>
<wikiName>Newcastle upon Tyne</wikiName>
<offset>99</offset>
<length>9</length>
</annotation>
<annotation>
<mention>Kaohsiung</mention>
<wikiName>Kaohsiung</wikiName>
<offset>109</offset>
<length>9</length>
</annotation>
<annotation>
<mention>China Steel</mention>
<wikiName>China Steel</wikiName>
<offset>187</offset>
<length>11</length>
</annotation>
<annotation>
<mention>Royal Clipper</mention>
<wikiName>Royal Clipper</wikiName>
<offset>201</offset>
<length>13</length>
</annotation>
<annotation>
<mention>Maracaibo</mention>
<wikiName>Maracaibo</wikiName>
<offset>236</offset>
<length>9</length>
</annotation>
<annotation>
<mention>Fos</mention>
<wikiName>Fos-sur-Mer</wikiName>
<offset>246</offset>
<length>3</length>
</annotation>
<annotation>
<mention>Coe and Clerici</mention>
<wikiName></wikiName>
<offset>296</offset>
<length>15</length>
</annotation>
<annotation>
<mention>Dampier</mention>
<wikiName>Dampier, Western Australia</wikiName>
<offset>344</offset>
<length>7</length>
</annotation>
<annotation>
<mention>Kaohsiung</mention>
<wikiName>Kaohsiung</wikiName>
<offset>352</offset>
<length>9</length>
</annotation>
<annotation>
<mention>China Steel</mention>
<wikiName>China Steel</wikiName>
<offset>407</offset>
<length>11</length>
</annotation>
</document>
<document docName="240646newsML.txt">
<annotation>
<mention>UK</mention>
<wikiName></wikiName>
<offset>0</offset>
<length>2</length>
</annotation>
<annotation>
<mention>Conservative</mention>
<wikiName>Conservative Party (UK)</wikiName>
<offset>23</offset>
<length>12</length>
</annotation>
<annotation>
<mention>LONDON</mention>
<wikiName>London</wikiName>
<offset>51</offset>
<length>6</length>
</annotation>
<annotation>
<mention>UK</mention>
<wikiName></wikiName>
<offset>70</offset>
<length>2</length>
</annotation>
<annotation>
<mention>William Hill</mention>
<wikiName>William Hill (bookmaker)</wikiName>
<offset>84</offset>
<length>12</length>
</annotation>
<annotation>
<mention>Conservative</mention>
<wikiName>Conservative Party (UK)</wikiName>
<offset>147</offset>
<length>12</length>
</annotation>
<annotation>
<mention>William Hill</mention>
<wikiName>William Hill (bookmaker)</wikiName>
<offset>215</offset>
<length>12</length>
</annotation>
<annotation>
<mention>Labour</mention>
<wikiName>Labour Party (UK)</wikiName>
<offset>293</offset>
<length>6</length>
</annotation>
<annotation>
<mention>London Newsroom</mention>
<wikiName></wikiName>
<offset>382</offset>
<length>15</length>
</annotation>
</document>
<document docName="240673newsML.txt">
<annotation>
<mention>Italy</mention>
<wikiName>Italy</wikiName>
<offset>0</offset>
<length>5</length>
</annotation>
<annotation>
<mention>Salomon</mention>
<wikiName></wikiName>
<offset>41</offset>
<length>7</length>
</annotation>
<annotation>
<mention>LONDON</mention>
<wikiName>London</wikiName>
<offset>51</offset>
<length>6</length>
</annotation>
<annotation>
<mention>Italy</mention>
<wikiName>Italy</wikiName>
<offset>82</offset>
<length>5</length>
</annotation>
<annotation>
<mention>Salomon Brothers</mention>
<wikiName>Salomon Brothers</wikiName>
<offset>155</offset>
<length>16</length>
</annotation>
<annotation>
<mention>Italian</mention>
<wikiName>Italy</wikiName>
<offset>214</offset>
<length>7</length>
</annotation>
<annotation>
<mention>Sweden</mention>
<wikiName>Sweden</wikiName>
<offset>315</offset>
<length>6</length>
</annotation>
<annotation>
<mention>France</mention>
<wikiName>France</wikiName>
<offset>429</offset>
<length>6</length>
</annotation>
<annotation>
<mention>Canada</mention>
<wikiName>Canada</wikiName>
<offset>521</offset>
<length>6</length>
</annotation>
<annotation>
<mention>Canadian</mention>
<wikiName>Canada</wikiName>
<offset>614</offset>
<length>8</length>
</annotation>
<annotation>
<mention>Treasuries</mention>
<wikiName></wikiName>
<offset>643</offset>
<length>10</length>
</annotation>
<annotation>
<mention>Canada</mention>
<wikiName>Canada</wikiName>
<offset>734</offset>
<length>6</length>
</annotation>
<annotation>
<mention>British</mention>
<wikiName>United Kingdom</wikiName>
<offset>745</offset>
<length>7</length>
</annotation>
<annotation>
<mention>Australia</mention>
<wikiName>Australia</wikiName>
<offset>785</offset>
<length>9</length>
</annotation>
<annotation>
<mention>German</mention>
<wikiName>Germany</wikiName>
<offset>901</offset>
<length>6</length>
</annotation>
<annotation>
<mention>Japanese</mention>
<wikiName>Japan</wikiName>
<offset>976</offset>
<length>8</length>
</annotation>
<annotation>
<mention>Spanish</mention>
<wikiName>Spain</wikiName>
<offset>1032</offset>
<length>7</length>
</annotation>
<annotation>
<mention>Salomon Brothers</mention>
<wikiName>Salomon Brothers</wikiName>
<offset>1080</offset>
<length>16</length>
</annotation>
<annotation>
<mention>U.S.</mention>
<wikiName>United States</wikiName>
<offset>1219</offset>
<length>4</length>
</annotation>
<annotation>
<mention>Japan</mention>
<wikiName>Japan</wikiName>
<offset>1238</offset>
<length>5</length>
</annotation>
<annotation>
<mention>France</mention>
<wikiName>France</wikiName>
<offset>1308</offset>
<length>6</length>
</annotation>
<annotation>
<mention>Italy</mention>
<wikiName>Italy</wikiName>
<offset>1346</offset>
<length>5</length>
</annotation>
<annotation>
<mention>British</mention>
<wikiName>United Kingdom</wikiName>
<offset>1416</offset>
<length>7</length>
</annotation>
<annotation>
<mention>Canada</mention>
<wikiName>Canada</wikiName>
<offset>1456</offset>
<length>6</length>
</annotation>
<annotation>
<mention>Australia</mention>
<wikiName>Australia</wikiName>
<offset>1491</offset>
<length>9</length>
</annotation>
<annotation>
<mention>Salomon</mention>
<wikiName></wikiName>
<offset>1525</offset>
<length>7</length>
</annotation>
<annotation>
<mention>Stephen Nisbet</mention>
<wikiName></wikiName>
<offset>1832</offset>
<length>14</length>
</annotation>
<annotation>
<mention>International Bonds</mention>
<wikiName></wikiName>
<offset>1848</offset>
<length>19</length>
</annotation>
</document>
<document docName="240678newsML.txt">
<annotation>
<mention>OPEC</mention>
<wikiName>OPEC</wikiName>
<offset>0</offset>
<length>4</length>
</annotation>
<annotation>
<mention>LONDON</mention>
<wikiName>London</wikiName>
<offset>39</offset>
<length>6</length>
</annotation>
<annotation>
<mention>OPEC</mention>
<wikiName>OPEC</wikiName>
<offset>75</offset>
<length>4</length>
</annotation>
<annotation>
<mention>OPECNA</mention>
<wikiName></wikiName>
<offset>174</offset>
<length>6</length>
</annotation>
<annotation>
<mention>OPEC</mention>
<wikiName>OPEC</wikiName>
<offset>211</offset>
<length>4</length>
</annotation>
<annotation>
<mention>Algeria</mention>
<wikiName>Algeria</wikiName>
<offset>251</offset>
<length>7</length>
</annotation>
<annotation>
<mention>Saharan Blend</mention>
<wikiName></wikiName>
<offset>261</offset>
<length>13</length>
</annotation>
<annotation>
<mention>Indonesia</mention>
<wikiName>Indonesia</wikiName>
<offset>276</offset>
<length>9</length>
</annotation>
<annotation>
<mention>Minas</mention>
<wikiName></wikiName>
<offset>288</offset>
<length>5</length>
</annotation>
<annotation>
<mention>Nigeria</mention>
<wikiName>Nigeria</wikiName>
<offset>295</offset>
<length>7</length>
</annotation>
<annotation>
<mention>Bonny Light</mention>
<wikiName></wikiName>
<offset>305</offset>
<length>11</length>
</annotation>
<annotation>
<mention>Saudi Arabia</mention>
<wikiName>Saudi Arabia</wikiName>
<offset>318</offset>
<length>12</length>
</annotation>
<annotation>
<mention>Arabian Light</mention>
<wikiName></wikiName>
<offset>333</offset>
<length>13</length>
</annotation>
<annotation>
<mention>Dubai</mention>
<wikiName>Dubai</wikiName>
<offset>348</offset>
<length>5</length>
</annotation>
<annotation>
<mention>UAE</mention>
<wikiName>United Arab Emirates</wikiName>
<offset>361</offset>
<length>3</length>
</annotation>
<annotation>
<mention>Venezuela</mention>
<wikiName>Venezuela</wikiName>
<offset>366</offset>
<length>9</length>
</annotation>
<annotation>
<mention>Tia Juana</mention>
<wikiName></wikiName>
<offset>378</offset>
<length>9</length>
</annotation>
<annotation>
<mention>Mexico</mention>
<wikiName>Mexico</wikiName>
<offset>392</offset>
<length>6</length>
</annotation>
<annotation>
<mention>Isthmus</mention>
<wikiName>Isthmus of Tehuantepec</wikiName>
<offset>401</offset>
<length>7</length>
</annotation>
<annotation>
<mention>London Newsroom</mention>
<wikiName></wikiName>
<offset>414</offset>
<length>15</length>
</annotation>
</document>
<document docName="240686newsML.txt">
<annotation>
<mention>Clarke</mention>
<wikiName>Kenneth Clarke</wikiName>
<offset>18</offset>
<length>6</length>
</annotation>
<annotation>
<mention>Major</mention>
<wikiName>John Major</wikiName>
<offset>26</offset>
<length>5</length>
</annotation>
<annotation>
<mention>LONDON</mention>
<wikiName>London</wikiName>
<offset>51</offset>
<length>6</length>
</annotation>
<annotation>
<mention>Kenneth Clarke</mention>
<wikiName>Kenneth Clarke</wikiName>
<offset>116</offset>
<length>14</length>
</annotation>
<annotation>
<mention>John Major</mention>
<wikiName>John Major</wikiName>
<offset>150</offset>
<length>10</length>
</annotation>
<annotation>
<mention>European</mention>
<wikiName>European Union</wikiName>
<offset>207</offset>
<length>8</length>
</annotation>
<annotation>
<mention>Major</mention>
<wikiName>John Major</wikiName>
<offset>240</offset>
<length>5</length>
</annotation>
<annotation>
<mention>Major</mention>
<wikiName>John Major</wikiName>
<offset>352</offset>
<length>5</length>
</annotation>
<annotation>
<mention>Clarke</mention>
<wikiName>Kenneth Clarke</wikiName>
<offset>570</offset>
<length>6</length>
</annotation>
<annotation>
<mention>Major</mention>
<wikiName>John Major</wikiName>
<offset>581</offset>
<length>5</length>
</annotation>
<annotation>
<mention>Major</mention>
<wikiName>John Major</wikiName>
<offset>675</offset>
<length>5</length>
</annotation>
<annotation>
<mention>Clarke</mention>
<wikiName>Kenneth Clarke</wikiName>
<offset>685</offset>
<length>6</length>
</annotation>
</document>
<document docName="240713newsML.txt">
<annotation>
<mention>Newfoundland</mention>
<wikiName>Newfoundland (island)</wikiName>
<offset>40</offset>
<length>12</length>
</annotation>
<annotation>
<mention>STEPHENVILLE</mention>
<wikiName></wikiName>
<offset>55</offset>
<length>12</length>
</annotation>
<annotation>
<mention>Newfoundland</mention>
<wikiName>Newfoundland (island)</wikiName>
<offset>69</offset>
<length>12</length>
</annotation>
<annotation>
<mention>Ireland</mention>
<wikiName>Republic of Ireland</wikiName>
<offset>151</offset>
<length>7</length>
</annotation>
<annotation>
<mention>Michigan</mention>
<wikiName>Michigan</wikiName>
<offset>164</offset>
<length>8</length>
</annotation>
<annotation>
<mention>Stephenville</mention>
<wikiName>Stephenville International Airport</wikiName>
<offset>210</offset>
<length>12</length>
</annotation>
<annotation>
<mention>Newfoundland</mention>
<wikiName>Newfoundland (island)</wikiName>
<offset>224</offset>
<length>12</length>
</annotation>
<annotation>
<mention>Learjet 36</mention>
<wikiName></wikiName>
<offset>345</offset>
<length>10</length>
</annotation>
<annotation>
<mention>David Snow</mention>
<wikiName></wikiName>
<offset>373</offset>
<length>10</length>
</annotation>
<annotation>
<mention>Snow</mention>
<wikiName></wikiName>
<offset>416</offset>
<length>4</length>
</annotation>
<annotation>
<mention>GMT</mention>
<wikiName>Greenwich Mean Time</wikiName>
<offset>520</offset>
<length>3</length>
</annotation>
<annotation>
<mention>Canadian</mention>
<wikiName>Canada</wikiName>
<offset>617</offset>
<length>8</length>
</annotation>
<annotation>
<mention>GMT</mention>
<wikiName>Greenwich Mean Time</wikiName>
<offset>790</offset>
<length>3</length>
</annotation>
<annotation>
<mention>Snow</mention>
<wikiName></wikiName>
<offset>838</offset>
<length>4</length>
</annotation>
<annotation>
<mention>Grand Rapids</mention>
<wikiName>Grand Rapids, Michigan</wikiName>
<offset>889</offset>
<length>12</length>
</annotation>
<annotation>
<mention>Michigan</mention>
<wikiName>Michigan</wikiName>
<offset>903</offset>
<length>8</length>
</annotation>
<annotation>
<mention>Stephenville</mention>
<wikiName>Stephenville International Airport</wikiName>
<offset>936</offset>
<length>12</length>
</annotation>
<annotation>
<mention>Shannon</mention>
<wikiName>Shannon Airport</wikiName>
<offset>979</offset>
<length>7</length>
</annotation>
<annotation>
<mention>Ireland</mention>
<wikiName>Republic of Ireland</wikiName>
<offset>988</offset>
<length>7</length>
</annotation>
<annotation>
<mention>Stephenville</mention>
<wikiName>Stephenville International Airport</wikiName>
<offset>1073</offset>
<length>12</length>
</annotation>
</document>
<document docName="240716newsML.txt">
<annotation>
<mention>PLO</mention>
<wikiName></wikiName>
<offset>0</offset>
<length>3</length>
</annotation>
<annotation>
<mention>Arafat</mention>
<wikiName>Yasser Arafat</wikiName>
<offset>9</offset>
<length>6</length>
</annotation>
<annotation>
<mention>Netanyahu</mention>
<wikiName>Benjamin Netanyahu</wikiName>
<offset>17</offset>
<length>9</length>
</annotation>
<annotation>
<mention>JERUSALEM</mention>
<wikiName>Jerusalem</wikiName>
<offset>49</offset>
<length>9</length>
</annotation>
<annotation>
<mention>PLO</mention>
<wikiName></wikiName>
<offset>71</offset>
<length>3</length>
</annotation>
<annotation>
<mention>Palestinian</mention>
<wikiName>Palestine</wikiName>
<offset>102</offset>
<length>11</length>
</annotation>
<annotation>
<mention>Yasser Arafat</mention>
<wikiName>Yasser Arafat</wikiName>
<offset>124</offset>
<length>13</length>
</annotation>
<annotation>
<mention>Israeli</mention>
<wikiName>Israel</wikiName>
<offset>139</offset>
<length>7</length>
</annotation>
<annotation>
<mention>Benjamin Netanyahu</mention>
<wikiName>Benjamin Netanyahu</wikiName>
<offset>162</offset>
<length>18</length>
</annotation>
<annotation>
<mention>Egyptian</mention>
<wikiName>Egypt</wikiName>
<offset>185</offset>
<length>8</length>
</annotation>
<annotation>
<mention>Hosni Mubarak</mention>
<wikiName>Hosni Mubarak</wikiName>
<offset>204</offset>
<length>13</length>
</annotation>
<annotation>
<mention>Israel</mention>
<wikiName>Israel</wikiName>
<offset>272</offset>
<length>6</length>
</annotation>
<annotation>
<mention>Hebron</mention>
<wikiName>Hebron</wikiName>
<offset>293</offset>
<length>6</length>
</annotation>
<annotation>
<mention>PLO</mention>
<wikiName></wikiName>
<offset>307</offset>
<length>3</length>
</annotation>
<annotation>
<mention>Arafat</mention>
<wikiName>Yasser Arafat</wikiName>
<offset>339</offset>
<length>6</length>
</annotation>
<annotation>
<mention>Netanyahu</mention>
<wikiName>Benjamin Netanyahu</wikiName>
<offset>350</offset>
<length>9</length>
</annotation>
<annotation>
<mention>Cairo</mention>
<wikiName>Cairo</wikiName>
<offset>373</offset>
<length>5</length>
</annotation>
<annotation>
<mention>Mubarak</mention>
<wikiName>Hosni Mubarak</wikiName>
<offset>454</offset>
<length>7</length>
</annotation>
<annotation>
<mention>PLO</mention>
<wikiName></wikiName>
<offset>468</offset>
<length>3</length>
</annotation>
<annotation>
<mention>Reuters</mention>
<wikiName>Reuters</wikiName>
<offset>512</offset>
<length>7</length>
</annotation>
<annotation>
<mention>Israeli</mention>
<wikiName>Israel</wikiName>
<offset>522</offset>
<length>7</length>
</annotation>
<annotation>
<mention>Arafat</mention>
<wikiName>Yasser Arafat</wikiName>
<offset>575</offset>
<length>6</length>
</annotation>
<annotation>
<mention>Nabil Abu Rdainah</mention>
<wikiName></wikiName>
<offset>592</offset>
<length>17</length>
</annotation>
<annotation>
<mention>Arafat</mention>
<wikiName>Yasser Arafat</wikiName>
<offset>628</offset>
<length>6</length>
</annotation>
<annotation>
<mention>Netanyahu</mention>
<wikiName>Benjamin Netanyahu</wikiName>
<offset>667</offset>
<length>9</length>
</annotation>
<annotation>
<mention>Arafat</mention>
<wikiName>Yasser Arafat</wikiName>
<offset>746</offset>
<length>6</length>
</annotation>
<annotation>
<mention>Hebron</mention>
<wikiName>Hebron</wikiName>
<offset>905</offset>
<length>6</length>
</annotation>
<annotation>
<mention>Rdainah</mention>
<wikiName></wikiName>
<offset>1004</offset>
<length>7</length>
</annotation>
<annotation>
<mention>Arafat</mention>
<wikiName>Yasser Arafat</wikiName>
<offset>1017</offset>
<length>6</length>
</annotation>
<annotation>
<mention>Cairo</mention>
<wikiName>Cairo</wikiName>
<offset>1036</offset>
<length>5</length>
</annotation>
<annotation>
<mention>Mubarak</mention>
<wikiName>Hosni Mubarak</wikiName>
<offset>1069</offset>
<length>7</length>
</annotation>
<annotation>
<mention>Arafat</mention>
<wikiName>Yasser Arafat</wikiName>
<offset>1084</offset>
<length>6</length>
</annotation>
<annotation>
<mention>Netanyahu</mention>
<wikiName>Benjamin Netanyahu</wikiName>
<offset>1095</offset>
<length>9</length>
</annotation>
<annotation>
<mention>Washington</mention>
<wikiName>Washington, D.C.</wikiName>
<offset>1158</offset>
<length>10</length>
</annotation>
<annotation>
<mention>Palestinians</mention>
<wikiName>Palestine</wikiName>
<offset>1211</offset>
<length>12</length>
</annotation>
<annotation>
<mention>Israelis</mention>
<wikiName>Israel</wikiName>
<offset>1231</offset>
<length>8</length>
</annotation>
<annotation>
<mention>Israel</mention>
<wikiName>Israel</wikiName>
<offset>1269</offset>
<length>6</length>
</annotation>
<annotation>
<mention>Moslem</mention>
<wikiName>Islam</wikiName>
<offset>1315</offset>
<length>6</length>
</annotation>
<annotation>
<mention>Jerusalem</mention>
<wikiName>Jerusalem</wikiName>
<offset>1331</offset>
<length>9</length>
</annotation>
<annotation>
<mention>Palestine Liberation Organisation</mention>
<wikiName></wikiName>
<offset>1347</offset>
<length>33</length>
</annotation>
<annotation>
<mention>PLO</mention>
<wikiName></wikiName>
<offset>1382</offset>
<length>3</length>
</annotation>
<annotation>
<mention>Israel</mention>
<wikiName>Israel</wikiName>
<offset>1437</offset>
<length>6</length>
</annotation>
<annotation>
<mention>Hebron</mention>
<wikiName>Hebron</wikiName>
<offset>1497</offset>
<length>6</length>
</annotation>
<annotation>
<mention>PLO</mention>
<wikiName></wikiName>
<offset>1507</offset>
<length>3</length>
</annotation>
<annotation>
<mention>Mubarak</mention>
<wikiName>Hosni Mubarak</wikiName>
<offset>1584</offset>
<length>7</length>
</annotation>
<annotation>
<mention>Osama el-Baz</mention>
<wikiName></wikiName>
<offset>1602</offset>
<length>12</length>
</annotation>
<annotation>
<mention>Israeli</mention>
<wikiName>Israel</wikiName>
<offset>1684</offset>
<length>7</length>
</annotation>
<annotation>
<mention>Palestinian</mention>
<wikiName>Palestine</wikiName>
<offset>1696</offset>
<length>11</length>
</annotation>
<annotation>
<mention>Palestinian Authority</mention>
<wikiName>Palestinian National Authority</wikiName>
<offset>1717</offset>
<length>21</length>
</annotation>
<annotation>
<mention>Ahmed Abdel-Rahman</mention>
<wikiName></wikiName>
<offset>1757</offset>
<length>18</length>
</annotation>
<annotation>
<mention>Cairo</mention>
<wikiName>Cairo</wikiName>
<offset>1827</offset>
<length>5</length>
</annotation>
<annotation>
<mention>Abdel-Rahman</mention>
<wikiName></wikiName>
<offset>1862</offset>
<length>12</length>
</annotation>
<annotation>
<mention>Jewish</mention>
<wikiName>Jews</wikiName>
<offset>1958</offset>
<length>6</length>
</annotation>
<annotation>
<mention>Jewish</mention>
<wikiName>Jews</wikiName>
<offset>1982</offset>
<length>6</length>
</annotation>
</document>
<document docName="240731newsML.txt">
<annotation>
<mention>Turkey</mention>
<wikiName></wikiName>
<offset>0</offset>
<length>6</length>
</annotation>
<annotation>
<mention>Syrian</mention>
<wikiName>Syria</wikiName>
<offset>36</offset>
<length>6</length>
</annotation>
<annotation>
<mention>ANKARA</mention>
<wikiName>Ankara</wikiName>
<offset>52</offset>
<length>6</length>
</annotation>
<annotation>
<mention>Turkey</mention>
<wikiName></wikiName>
<offset>71</offset>
<length>6</length>
</annotation>
<annotation>
<mention>Kurdish</mention>
<wikiName>Kurdistan</wikiName>
<offset>99</offset>
<length>7</length>
</annotation>
<annotation>
<mention>Syria</mention>
<wikiName>Syria</wikiName>
<offset>146</offset>
<length>5</length>
</annotation>
<annotation>
<mention>Reuters</mention>
<wikiName>Reuters</wikiName>
<offset>519</offset>
<length>7</length>
</annotation>
<annotation>
<mention>Kurdistan Workers Party</mention>
<wikiName>Kurdistan Workers' Party</wikiName>
<offset>631</offset>
<length>23</length>
</annotation>
<annotation>
<mention>PKK</mention>
<wikiName>Kurdistan Workers' Party</wikiName>
<offset>656</offset>
<length>3</length>
</annotation>
<annotation>
<mention>Turkey</mention>
<wikiName></wikiName>
<offset>1006</offset>
<length>6</length>
</annotation>
<annotation>
<mention>Syria</mention>
<wikiName>Syria</wikiName>
<offset>1018</offset>
<length>5</length>
</annotation>
<annotation>
<mention>PKK</mention>
<wikiName>Kurdistan Workers' Party</wikiName>
<offset>1037</offset>
<length>3</length>
</annotation>
<annotation>
<mention>Kurdish</mention>
<wikiName>Kurdistan</wikiName>
<offset>1055</offset>
<length>7</length>
</annotation>
<annotation>
<mention>Turkey</mention>
<wikiName></wikiName>
<offset>1086</offset>
<length>6</length>
</annotation>
<annotation>
<mention>Damascus</mention>
<wikiName>Syria</wikiName>
<offset>1094</offset>
<length>8</length>
</annotation>
<annotation>
<mention>PKK</mention>
<wikiName>Kurdistan Workers' Party</wikiName>
<offset>1134</offset>
<length>3</length>
</annotation>
<annotation>
<mention>Turkey</mention>
<wikiName></wikiName>
<offset>1156</offset>
<length>6</length>
</annotation>
<annotation>
<mention>Iraq</mention>
<wikiName>Iraq</wikiName>
<offset>1203</offset>
<length>4</length>
</annotation>
</document>
<document docName="240739newsML.txt">
<annotation>
<mention>Kurd</mention>
<wikiName>Kurdistan</wikiName>
<offset>14</offset>
<length>4</length>
</annotation>
<annotation>
<mention>Turkey</mention>
<wikiName></wikiName>
<offset>41</offset>
<length>6</length>
</annotation>
<annotation>
<mention>DIYARBAKIR</mention>
<wikiName></wikiName>
<offset>50</offset>
<length>10</length>
</annotation>
<annotation>
<mention>Turkey</mention>
<wikiName></wikiName>
<offset>62</offset>
<length>6</length>
</annotation>
<annotation>
<mention>Turkish</mention>
<wikiName></wikiName>
<offset>218</offset>
<length>7</length>
</annotation>
<annotation>
<mention>Kesers</mention>
<wikiName></wikiName>
<offset>334</offset>
<length>6</length>
</annotation>
<annotation>
<mention>Karabuluts</mention>
<wikiName></wikiName>
<offset>345</offset>
<length>10</length>
</annotation>
<annotation>
<mention>Kurdish</mention>
<wikiName>Kurdistan</wikiName>
<offset>402</offset>
<length>7</length>
</annotation>
<annotation>
<mention>Kurdish</mention>
<wikiName>Kurdistan</wikiName>
<offset>554</offset>
<length>7</length>
</annotation>
<annotation>
<mention>Kurdistan Workers Party</mention>
<wikiName>Kurdistan Workers' Party</wikiName>
<offset>587</offset>
<length>23</length>
</annotation>
<annotation>
<mention>PKK</mention>
<wikiName>Kurdistan Workers' Party</wikiName>
<offset>612</offset>
<length>3</length>
</annotation>
<annotation>
<mention>Turkish</mention>
<wikiName></wikiName>
<offset>944</offset>
<length>7</length>
</annotation>
<annotation>
<mention>PKK</mention>
<wikiName>Kurdistan Workers' Party</wikiName>
<offset>976</offset>
<length>3</length>
</annotation>
<annotation>
<mention>Kurdish</mention>
<wikiName>Kurdistan</wikiName>
<offset>994</offset>
<length>7</length>
</annotation>
</document>
<document docName="240746newsML.txt">
<annotation>
<mention>Texas</mention>
<wikiName>Texas</wikiName>
<offset>0</offset>
<length>5</length>
</annotation>
<annotation>
<mention>Okla</mention>
<wikiName>Oklahoma</wikiName>
<offset>8</offset>
<length>4</length>
</annotation>
<annotation>
<mention>USDA</mention>
<wikiName>United States Department of Agriculture</wikiName>
<offset>34</offset>
<length>4</length>
</annotation>
<annotation>
<mention>AMARILLO</mention>
<wikiName>Amarillo, Texas</wikiName>
<offset>41</offset>
<length>8</length>
</annotation>
<annotation>
<mention>Panhandle</mention>
<wikiName></wikiName>
<offset>85</offset>
<length>9</length>
</annotation>
<annotation>
<mention>USDA</mention>
<wikiName>United States Department of Agriculture</wikiName>
<offset>206</offset>
<length>4</length>
</annotation>
</document>
<document docName="240748newsML.txt">
<annotation>
<mention>Kansas</mention>
<wikiName>Kansas</wikiName>
<offset>0</offset>
<length>6</length>
</annotation>
<annotation>
<mention>USDA</mention>
<wikiName>United States Department of Agriculture</wikiName>
<offset>32</offset>
<length>4</length>
</annotation>
<annotation>
<mention>DODGE CITY</mention>
<wikiName>Dodge City, Kansas</wikiName>
<offset>39</offset>
<length>10</length>
</annotation>
<annotation>
<mention>USDA</mention>
<wikiName>United States Department of Agriculture</wikiName>
<offset>158</offset>
<length>4</length>
</annotation>
</document>
<document docName="240754newsML.txt">
<annotation>
<mention>Delphis Hanover</mention>
<wikiName></wikiName>
<offset>0</offset>
<length>15</length>
</annotation>
<annotation>
<mention>Delphis Hanover</mention>
<wikiName></wikiName>
<offset>47</offset>
<length>15</length>
</annotation>
<annotation>
<mention>U.S. Municipal Desk</mention>
<wikiName></wikiName>
<offset>599</offset>
<length>19</length>
</annotation>
</document>
<document docName="240827newsML.txt">
<annotation>
<mention>ACCESS</mention>
<wikiName></wikiName>
<offset>0</offset>
<length>6</length>
</annotation>
<annotation>
<mention>LOS ANGELES</mention>
<wikiName>Los Angeles</wikiName>
<offset>52</offset>
<length>11</length>
</annotation>
<annotation>
<mention>U.S.</mention>
<wikiName>United States</wikiName>
<offset>76</offset>
<length>4</length>
</annotation>
<annotation>
<mention>NYMEX ACCESS</mention>
<wikiName></wikiName>
<offset>134</offset>
<length>12</length>
</annotation>
<annotation>
<mention>NYMEX</mention>
<wikiName>New York Mercantile Exchange</wikiName>
<offset>344</offset>
<length>5</length>
</annotation>
<annotation>
<mention>ACCESS</mention>
<wikiName></wikiName>
<offset>624</offset>
<length>6</length>
</annotation>
<annotation>
<mention>NYMEX</mention>
<wikiName>New York Mercantile Exchange</wikiName>
<offset>686</offset>
<length>5</length>
</annotation>
<annotation>
<mention>David Brinkerhoff</mention>
<wikiName></wikiName>
<offset>993</offset>
<length>17</length>
</annotation>
<annotation>
<mention>Los Angeles</mention>
<wikiName>Los Angeles</wikiName>
<offset>1012</offset>
<length>11</length>
</annotation>
</document>
<document docName="240830newsML.txt">
<annotation>
<mention>U.S.</mention>
<wikiName>United States</wikiName>
<offset>0</offset>
<length>4</length>
</annotation>
<annotation>
<mention>WASHINGTON</mention>
<wikiName>Washington, D.C.</wikiName>
<offset>42</offset>
<length>10</length>
</annotation>
<annotation>
<mention>United States</mention>
<wikiName>United States</wikiName>
<offset>69</offset>
<length>13</length>
</annotation>
<annotation>
<mention>Greek</mention>
<wikiName>Greece</wikiName>
<offset>119</offset>
<length>5</length>
</annotation>
<annotation>
<mention>Palestinian</mention>
<wikiName>State of Palestine</wikiName>
<offset>137</offset>
<length>11</length>
</annotation>
<annotation>
<mention>State Department</mention>
<wikiName>United States Department of State</wikiName>
<offset>456</offset>
<length>16</length>
</annotation>
<annotation>
<mention>Nicholas Burns</mention>
<wikiName>R. Nicholas Burns</wikiName>
<offset>483</offset>
<length>14</length>
</annotation>
<annotation>
<mention>Mohammed Rashid</mention>
<wikiName></wikiName>
<offset>506</offset>
<length>15</length>
</annotation>
<annotation>
<mention>Greece</mention>
<wikiName>Greece</wikiName>
<offset>635</offset>
<length>6</length>
</annotation>
<annotation>
<mention>Burns</mention>
<wikiName>R. Nicholas Burns</wikiName>
<offset>738</offset>
<length>5</length>
</annotation>
<annotation>
<mention>Rashid</mention>
<wikiName></wikiName>
<offset>782</offset>
<length>6</length>
</annotation>
<annotation>
<mention>Greece</mention>
<wikiName>Greece</wikiName>
<offset>794</offset>
<length>6</length>
</annotation>
<annotation>
<mention>Clinton</mention>
<wikiName>Bill Clinton</wikiName>
<offset>894</offset>
<length>7</length>
</annotation>
<annotation>
<mention>Greek</mention>
<wikiName>Greece</wikiName>
<offset>974</offset>
<length>5</length>
</annotation>
<annotation>
<mention>Burns</mention>
<wikiName>R. Nicholas Burns</wikiName>
<offset>992</offset>
<length>5</length>
</annotation>
<annotation>
<mention>Mahammad Rashid</mention>
<wikiName></wikiName>
<offset>1005</offset>
<length>15</length>
</annotation>
<annotation>
<mention>Korydallos</mention>
<wikiName></wikiName>
<offset>1038</offset>
<length>10</length>
</annotation>
<annotation>
<mention>Athens</mention>
<wikiName>Athens</wikiName>
<offset>1086</offset>
<length>6</length>
</annotation>
<annotation>
<mention>Olympic Airways</mention>
<wikiName>Olympic Airlines</wikiName>
<offset>1135</offset>
<length>15</length>
</annotation>
<annotation>
<mention>Cairo</mention>
<wikiName>Cairo</wikiName>
<offset>1161</offset>
<length>5</length>
</annotation>
<annotation>
<mention>Tunis</mention>
<wikiName>Tunis</wikiName>
<offset>1193</offset>
<length>5</length>
</annotation>
<annotation>
<mention>Palestine Liberation Organisation</mention>
<wikiName></wikiName>
<offset>1214</offset>
<length>33</length>
</annotation>
<annotation>
<mention>Rashid</mention>
<wikiName></wikiName>
<offset>1263</offset>
<length>6</length>
</annotation>
<annotation>
<mention>Greek</mention>
<wikiName>Greece</wikiName>
<offset>1316</offset>
<length>5</length>
</annotation>
<annotation>
<mention>Pan American</mention>
<wikiName>Pan American World Airways</wikiName>
<offset>1409</offset>
<length>12</length>
</annotation>
<annotation>
<mention>Rashid</mention>
<wikiName></wikiName>
<offset>1527</offset>
<length>6</length>
</annotation>
<annotation>
<mention>Greece</mention>
<wikiName>Greece</wikiName>
<offset>1681</offset>
<length>6</length>
</annotation>
<annotation>
<mention>United States</mention>
<wikiName>United States</wikiName>
<offset>1694</offset>
<length>13</length>
</annotation>
<annotation>
<mention>Rashid</mention>
<wikiName></wikiName>
<offset>1716</offset>
<length>6</length>
</annotation>
<annotation>
<mention>Palestinian</mention>
<wikiName>State of Palestine</wikiName>
<offset>1750</offset>
<length>11</length>
</annotation>
<annotation>
<mention>Palestinian</mention>
<wikiName>State of Palestine</wikiName>
<offset>1822</offset>
<length>11</length>
</annotation>
<annotation>
<mention>Abu Ibrahim</mention>
<wikiName></wikiName>
<offset>1844</offset>
<length>11</length>
</annotation>
<annotation>
<mention>FBI</mention>
<wikiName>Federal Bureau of Investigation</wikiName>
<offset>1864</offset>
<length>3</length>
</annotation>
<annotation>
<mention>Rashid</mention>
<wikiName></wikiName>
<offset>1897</offset>
<length>6</length>
</annotation>
<annotation>
<mention>Korydallos</mention>
<wikiName></wikiName>
<offset>1930</offset>
<length>10</length>
</annotation>
<annotation>
<mention>Rashid</mention>
<wikiName></wikiName>
<offset>1986</offset>
<length>6</length>
</annotation>
<annotation>
<mention>Pan American</mention>
<wikiName>Pan American World Airways</wikiName>
<offset>2017</offset>
<length>12</length>
</annotation>
<annotation>
<mention>Brazil</mention>
<wikiName>Brazil</wikiName>
<offset>2039</offset>
<length>6</length>
</annotation>
<annotation>
<mention>TWA</mention>
<wikiName>Trans World Airlines</wikiName>
<offset>2084</offset>
<length>3</length>
</annotation>
<annotation>
<mention>Athens</mention>
<wikiName>Athens</wikiName>
<offset>2109</offset>
<length>6</length>
</annotation>
<annotation>
<mention>U.S.</mention>
<wikiName>United States</wikiName>
<offset>2142</offset>
<length>4</length>
</annotation>
</document>
<document docName="240833newsML.txt">
<annotation>
<mention>ALBUQUERQUE</mention>
<wikiName>Albuquerque, New Mexico</wikiName>
<offset>55</offset>
<length>11</length>
</annotation>
<annotation>
<mention>N.M.</mention>
<wikiName>New Mexico</wikiName>
<offset>68</offset>
<length>4</length>
</annotation>
<annotation>
<mention>New Mexico</mention>
<wikiName>New Mexico</wikiName>
<offset>87</offset>
<length>10</length>
</annotation>
<annotation>
<mention>Mike Cito</mention>
<wikiName></wikiName>
<offset>273</offset>
<length>9</length>
</annotation>
<annotation>
<mention>St Pius X High School</mention>
<wikiName></wikiName>
<offset>306</offset>
<length>21</length>
</annotation>
<annotation>
<mention>Albuquerque</mention>
<wikiName>Albuquerque, New Mexico</wikiName>
<offset>331</offset>
<length>11</length>
</annotation>
<annotation>
<mention>New Mexico Activities Association</mention>
<wikiName>New Mexico Activities Association</wikiName>
<offset>544</offset>
<length>33</length>
</annotation>
<annotation>
<mention>Cito</mention>
<wikiName></wikiName>
<offset>593</offset>
<length>4</length>
</annotation>
<annotation>
<mention>Cito</mention>
<wikiName></wikiName>
<offset>694</offset>
<length>4</length>
</annotation>
<annotation>
<mention>Stephen Cito</mention>
<wikiName></wikiName>
<offset>709</offset>
<length>12</length>
</annotation>
</document>
<document docName="240859newsML.txt">
<annotation>
<mention>Elif Kaban</mention>
<wikiName></wikiName>
<offset>50</offset>
<length>10</length>
</annotation>
<annotation>
<mention>GENEVA</mention>
<wikiName>Geneva</wikiName>
<offset>62</offset>
<length>6</length>
</annotation>
<annotation>
<mention>Geneva</mention>
<wikiName>Geneva</wikiName>
<offset>93</offset>
<length>6</length>
</annotation>
<annotation>
<mention>Internet</mention>
<wikiName>World Wide Web</wikiName>
<offset>147</offset>
<length>8</length>
</annotation>
<annotation>
<mention>Internet</mention>
<wikiName>World Wide Web</wikiName>
<offset>1092</offset>
<length>8</length>
</annotation>
<annotation>
<mention>James Love</mention>
<wikiName>James Love</wikiName>
<offset>1434</offset>
<length>10</length>
</annotation>
<annotation>
<mention>Washington-based</mention>
<wikiName></wikiName>
<offset>1478</offset>
<length>16</length>
</annotation>
<annotation>
<mention>Consumer Project</mention>
<wikiName></wikiName>
<offset>1495</offset>
<length>16</length>
</annotation>
<annotation>
<mention>Berne Convention</mention>
<wikiName></wikiName>
<offset>1933</offset>
<length>16</length>
</annotation>
<annotation>
<mention>Internet</mention>
<wikiName>World Wide Web</wikiName>
<offset>2226</offset>
<length>8</length>
</annotation>
<annotation>
<mention>Mongolia</mention>
<wikiName>Mongolia</wikiName>
<offset>2237</offset>
<length>8</length>
</annotation>
<annotation>
<mention>Gundegma Jargalshaihan</mention>
<wikiName></wikiName>
<offset>2274</offset>
<length>22</length>
</annotation>
<annotation>
<mention>Ulan Bator</mention>
<wikiName>Ulan Bator</wikiName>
<offset>2348</offset>
<length>10</length>
</annotation>
<annotation>
<mention>Internet</mention>
<wikiName>World Wide Web</wikiName>
<offset>2441</offset>
<length>8</length>
</annotation>
<annotation>
<mention>Mongolia</mention>
<wikiName>Mongolia</wikiName>
<offset>2453</offset>
<length>8</length>
</annotation>
<annotation>
<mention>Alexander Bavykin</mention>
<wikiName></wikiName>
<offset>2475</offset>
<length>17</length>
</annotation>
<annotation>
<mention>Russia</mention>
<wikiName>Russia</wikiName>
<offset>2516</offset>
<length>6</length>
</annotation>
<annotation>
<mention>Moscow</mention>
<wikiName>Russia</wikiName>
<offset>2548</offset>
<length>6</length>
</annotation>
<annotation>
<mention>Internet</mention>
<wikiName>World Wide Web</wikiName>
<offset>2807</offset>
<length>8</length>
</annotation>
<annotation>
<mention>European</mention>
<wikiName>Europe</wikiName>
<offset>2838</offset>
<length>8</length>
</annotation>
<annotation>
<mention>Internet</mention>
<wikiName>World Wide Web</wikiName>
<offset>2886</offset>
<length>8</length>
</annotation>
<annotation>
<mention>Marc Pearl</mention>
<wikiName></wikiName>
<offset>3010</offset>
<length>10</length>
</annotation>
<annotation>
<mention>Information Technology Association of America</mention>
<wikiName>Information Technology Association of America</wikiName>
<offset>3044</offset>
<length>45</length>
</annotation>
<annotation>
<mention>U.S.</mention>
<wikiName>United States</wikiName>
<offset>3114</offset>
<length>4</length>
</annotation>
<annotation>
<mention>Internet</mention>
<wikiName>World Wide Web</wikiName>
<offset>3230</offset>
<length>8</length>
</annotation>
<annotation>
<mention>Internet</mention>
<wikiName>World Wide Web</wikiName>
<offset>3329</offset>
<length>8</length>
</annotation>
<annotation>
<mention>Internet</mention>
<wikiName>World Wide Web</wikiName>
<offset>3506</offset>
<length>8</length>
</annotation>
<annotation>
<mention>Network</mention>
<wikiName></wikiName>
<offset>3678</offset>
<length>7</length>
</annotation>
<annotation>
<mention>Internet</mention>
<wikiName>World Wide Web</wikiName>
<offset>3896</offset>
<length>8</length>
</annotation>
<annotation>
<mention>Tim Casey</mention>
<wikiName></wikiName>
<offset>3921</offset>
<length>9</length>
</annotation>
<annotation>
<mention>U.S.-based</mention>
<wikiName>United States</wikiName>
<offset>3938</offset>
<length>10</length>
</annotation>
<annotation>
<mention>MCI Communications Corporation</mention>
<wikiName>MCI Communications</wikiName>
<offset>3949</offset>
<length>30</length>
</annotation>
</document>
<document docName="240867newsML.txt">
<annotation>
<mention>Italy</mention>
<wikiName>Italy</wikiName>
<offset>0</offset>
<length>5</length>
</annotation>
<annotation>
<mention>Zaire</mention>
<wikiName>Democratic Republic of the Congo</wikiName>
<offset>41</offset>
<length>5</length>
</annotation>
<annotation>
<mention>ROME</mention>
<wikiName>Rome</wikiName>
<offset>49</offset>
<length>4</length>
</annotation>
<annotation>
<mention>Italy</mention>
<wikiName>Italy</wikiName>
<offset>66</offset>
<length>5</length>
</annotation>
<annotation>
<mention>Roman Catholic</mention>
<wikiName>Catholic Church</wikiName>
<offset>107</offset>
<length>14</length>
</annotation>
<annotation>
<mention>Zaire</mention>
<wikiName>Democratic Republic of the Congo</wikiName>
<offset>144</offset>
<length>5</length>
</annotation>
<annotation>
<mention>Tutsi</mention>
<wikiName>Tutsi</wikiName>
<offset>229</offset>
<length>5</length>
</annotation>
<annotation>
<mention>Foreign Ministry</mention>
<wikiName></wikiName>
<offset>248</offset>
<length>16</length>
</annotation>
<annotation>
<mention>Europeans</mention>
<wikiName>Europe</wikiName>
<offset>277</offset>
<length>9</length>
</annotation>
<annotation>
<mention>Africans</mention>
<wikiName>Africa</wikiName>
<offset>297</offset>
<length>8</length>
</annotation>
<annotation>
<mention>Garamba</mention>
<wikiName>Garamba National Park</wikiName>
<offset>337</offset>
<length>7</length>
</annotation>
<annotation>
<mention>Zaire</mention>
<wikiName>Democratic Republic of the Congo</wikiName>
<offset>371</offset>
<length>5</length>
</annotation>
<annotation>
<mention>Ugandan</mention>
<wikiName>Uganda</wikiName>
<offset>384</offset>
<length>7</length>
</annotation>
<annotation>
<mention>Kampala</mention>
<wikiName>Kampala</wikiName>
<offset>400</offset>
<length>7</length>
</annotation>
<annotation>
<mention>Italian</mention>
<wikiName>Italy</wikiName>
<offset>450</offset>
<length>7</length>
</annotation>
<annotation>
<mention>Italians</mention>
<wikiName>Italy</wikiName>
<offset>661</offset>
<length>8</length>
</annotation>
<annotation>
<mention>Zaireans</mention>
<wikiName></wikiName>
<offset>678</offset>
<length>8</length>
</annotation>
<annotation>
<mention>Belgium</mention>
<wikiName>Belgium</wikiName>
<offset>715</offset>
<length>7</length>
</annotation>
<annotation>
<mention>Spain</mention>
<wikiName>Spain</wikiName>
<offset>733</offset>
<length>5</length>
</annotation>
<annotation>
<mention>Zambia</mention>
<wikiName>Zambia</wikiName>
<offset>752</offset>
<length>6</length>
</annotation>
</document>
<document docName="240902newsML.txt">
<annotation>
<mention>Paris</mention>
<wikiName>Paris</wikiName>
<offset>6</offset>
<length>5</length>
</annotation>
<annotation>
<mention>Moroccan</mention>
<wikiName>Morocco</wikiName>
<offset>29</offset>
<length>8</length>
</annotation>
<annotation>
<mention>PARIS</mention>
<wikiName>Paris</wikiName>
<offset>48</offset>
<length>5</length>
</annotation>
<annotation>
<mention>Moroccan</mention>
<wikiName>Morocco</wikiName>
<offset>66</offset>
<length>8</length>
</annotation>
<annotation>
<mention>Mohamed Benchaou</mention>
<wikiName></wikiName>
<offset>75</offset>
<length>16</length>
</annotation>
<annotation>
<mention>Paris</mention>
<wikiName>Paris</wikiName>
<offset>138</offset>
<length>5</length>
</annotation>
<annotation>
<mention>Moroccan</mention>
<wikiName>Morocco</wikiName>
<offset>222</offset>
<length>8</length>
</annotation>
<annotation>
<mention>Benchaou</mention>
<wikiName></wikiName>
<offset>256</offset>
<length>8</length>
</annotation>
<annotation>
<mention>Canadian</mention>
<wikiName>Canada</wikiName>
<offset>347</offset>
<length>8</length>
</annotation>
<annotation>
<mention>New Caledonia</mention>
<wikiName>New Caledonia</wikiName>
<offset>377</offset>
<length>13</length>
</annotation>
<annotation>
<mention>Benchaou</mention>
<wikiName></wikiName>
<offset>492</offset>
<length>8</length>
</annotation>
<annotation>
<mention>Moroccan</mention>
<wikiName>Morocco</wikiName>
<offset>515</offset>
<length>8</length>
</annotation>
<annotation>
<mention>Algerian</mention>
<wikiName>Algeria</wikiName>
<offset>674</offset>
<length>8</length>
</annotation>
<annotation>
<mention>Moslem</mention>
<wikiName>Islam</wikiName>
<offset>683</offset>
<length>6</length>
</annotation>
</document>
<document docName="240906newsML.txt">
<annotation>
<mention>Italian</mention>
<wikiName>Italy</wikiName>
<offset>0</offset>
<length>7</length>
</annotation>
<annotation>
<mention>Italy</mention>
<wikiName>Italy</wikiName>
<offset>59</offset>
<length>5</length>
</annotation>
<annotation>
<mention>Italian</mention>
<wikiName>Italy</wikiName>
<offset>77</offset>
<length>7</length>
</annotation>
<annotation>
<mention>Oscar Luigi Scalfaro</mention>
<wikiName>Oscar Luigi Scalfaro</wikiName>
<offset>95</offset>
<length>20</length>
</annotation>
<annotation>
<mention>Northern League</mention>
<wikiName>Lega Nord</wikiName>
<offset>165</offset>
<length>15</length>
</annotation>
<annotation>
<mention>Italian</mention>
<wikiName>Italy</wikiName>
<offset>296</offset>
<length>7</length>
</annotation>
<annotation>
<mention>Scalfaro</mention>
<wikiName>Oscar Luigi Scalfaro</wikiName>
<offset>383</offset>
<length>8</length>
</annotation>
<annotation>
<mention>League</mention>
<wikiName>Lega Nord</wikiName>
<offset>452</offset>
<length>6</length>
</annotation>
<annotation>
<mention>Let</mention>
<wikiName></wikiName>
<offset>544</offset>
<length>3</length>
</annotation>
<annotation>
<mention>Scalfaro</mention>
<wikiName>Oscar Luigi Scalfaro</wikiName>
<offset>567</offset>
<length>8</length>
</annotation>
<annotation>
<mention>Italy</mention>
<wikiName>Italy</wikiName>
<offset>612</offset>
<length>5</length>
</annotation>
<annotation>
<mention>Scalfaro</mention>
<wikiName>Oscar Luigi Scalfaro</wikiName>
<offset>795</offset>
<length>8</length>
</annotation>
<annotation>
<mention>Mantua</mention>
<wikiName>Province of Mantua</wikiName>
<offset>811</offset>
<length>6</length>
</annotation>
<annotation>
<mention>Austrian</mention>
<wikiName>Austrian Empire</wikiName>
<offset>877</offset>
<length>8</length>
</annotation>
<annotation>
<mention>Italians</mention>
<wikiName>Italy</wikiName>
<offset>924</offset>
<length>8</length>
</annotation>
<annotation>
<mention>League</mention>
<wikiName>Lega Nord</wikiName>
<offset>1023</offset>
<length>6</length>
</annotation>
<annotation>
<mention>Italians</mention>
<wikiName>Italy</wikiName>
<offset>1152</offset>
<length>8</length>
</annotation>
<annotation>
<mention>Italia</mention>
<wikiName>Italy</wikiName>
<offset>1241</offset>
<length>6</length>
</annotation>
<annotation>
<mention>League</mention>
<wikiName>Lega Nord</wikiName>
<offset>1255</offset>
<length>6</length>
</annotation>
<annotation>
<mention>Umberto Bossi</mention>
<wikiName>Umberto Bossi</wikiName>
<offset>1377</offset>
<length>13</length>
</annotation>
<annotation>
<mention>Po</mention>
<wikiName></wikiName>
<offset>1474</offset>
<length>2</length>
</annotation>
<annotation>
<mention>Venice</mention>
<wikiName>Venice</wikiName>
<offset>1529</offset>
<length>6</length>
</annotation>
<annotation>
<mention>Republic of Padania</mention>
<wikiName></wikiName>
<offset>1554</offset>
<length>19</length>
</annotation>
</document>
<document docName="240938newsML.txt">
<annotation>
<mention>Denmark</mention>
<wikiName>Denmark</wikiName>
<offset>0</offset>
<length>7</length>
</annotation>
<annotation>
<mention>COPENHAGEN</mention>
<wikiName>Copenhagen</wikiName>
<offset>43</offset>
<length>10</length>
</annotation>
<annotation>
<mention>Reuter</mention>
<wikiName></wikiName>
<offset>68</offset>
<length>6</length>
</annotation>
<annotation>
<mention>Radiometer</mention>
<wikiName></wikiName>
<offset>121</offset>
<length>10</length>
</annotation>
<annotation>
<mention>Wednesday</mention>
<wikiName>Wednesday</wikiName>
<offset>220</offset>
<length>9</length>
</annotation>
<annotation>
<mention>Soeren Linding Jakobsen</mention>
<wikiName></wikiName>
<offset>543</offset>
<length>23</length>
</annotation>
<annotation>
<mention>Copenhagen</mention>
<wikiName>Copenhagen</wikiName>
<offset>568</offset>
<length>10</length>
</annotation>
</document>
<document docName="240945newsML.txt">
<annotation>
<mention>Moslem</mention>
<wikiName>Islam</wikiName>
<offset>0</offset>
<length>6</length>
</annotation>
<annotation>
<mention>Algerians</mention>
<wikiName>Algeria</wikiName>
<offset>31</offset>
<length>9</length>
</annotation>
<annotation>
<mention>PARIS</mention>
<wikiName>Paris</wikiName>
<offset>52</offset>
<length>5</length>
</annotation>
<annotation>
<mention>Moslem</mention>
<wikiName>Islam</wikiName>
<offset>70</offset>
<length>6</length>
</annotation>
<annotation>
<mention>Blida</mention>
<wikiName>Blida Province</wikiName>
<offset>126</offset>
<length>5</length>
</annotation>
<annotation>
<mention>Algiers</mention>
<wikiName>Algiers</wikiName>
<offset>150</offset>
<length>7</length>
</annotation>
<annotation>
<mention>Algerian</mention>
<wikiName>Algeria</wikiName>
<offset>159</offset>
<length>8</length>
</annotation>
<annotation>
<mention>Algerian</mention>
<wikiName>Algeria</wikiName>
<offset>240</offset>
<length>8</length>
</annotation>
<annotation>
<mention>APS</mention>
<wikiName></wikiName>
<offset>261</offset>
<length>3</length>
</annotation>
</document>
<document docName="240953newsML.txt">
<annotation>
<mention>Belgian</mention>
<wikiName>Belgium</wikiName>
<offset>0</offset>
<length>7</length>
</annotation>
<annotation>
<mention>BRUSSELS</mention>
<wikiName>Brussels</wikiName>
<offset>54</offset>
<length>8</length>
</annotation>
<annotation>
<mention>Spain</mention>
<wikiName>Spain</wikiName>
<offset>161</offset>
<length>5</length>
</annotation>
<annotation>
<mention>Belgian</mention>
<wikiName>Belgium</wikiName>
<offset>221</offset>
<length>7</length>
</annotation>
<annotation>
<mention>Belgian</mention>
<wikiName>Belgium</wikiName>
<offset>340</offset>
<length>7</length>
</annotation>
<annotation>
<mention>Antwerp</mention>
<wikiName>Antwerp</wikiName>
<offset>415</offset>
<length>7</length>
</annotation>
<annotation>
<mention>Belgian</mention>
<wikiName>Belgium</wikiName>
<offset>452</offset>
<length>7</length>
</annotation>
<annotation>
<mention>Barcelona</mention>
<wikiName>Barcelona</wikiName>
<offset>530</offset>
<length>9</length>
</annotation>
<annotation>
<mention>Turkish</mention>
<wikiName></wikiName>
<offset>598</offset>
<length>7</length>
</annotation>
<annotation>
<mention>Belgium</mention>
<wikiName>Belgium</wikiName>
<offset>705</offset>
<length>7</length>
</annotation>
<annotation>
<mention>Turkish</mention>
<wikiName></wikiName>
<offset>727</offset>
<length>7</length>
</annotation>
<annotation>
<mention>Turkey</mention>
<wikiName></wikiName>
<offset>760</offset>
<length>6</length>
</annotation>
<annotation>
<mention>Antwerp</mention>
<wikiName>Antwerp</wikiName>
<offset>770</offset>
<length>7</length>
</annotation>
<annotation>
<mention>Spain</mention>
<wikiName>Spain</wikiName>
<offset>805</offset>
<length>5</length>
</annotation>
<annotation>
<mention>France</mention>
<wikiName>France</wikiName>
<offset>812</offset>
<length>6</length>
</annotation>
<annotation>
<mention>Germany</mention>
<wikiName>Germany</wikiName>
<offset>823</offset>
<length>7</length>
</annotation>
<annotation>
<mention>Belgium</mention>
<wikiName>Belgium</wikiName>
<offset>898</offset>
<length>7</length>
</annotation>
<annotation>
<mention>European</mention>
<wikiName>European Union</wikiName>
<offset>929</offset>
<length>8</length>
</annotation>
<annotation>
<mention>Belgian</mention>
<wikiName>Belgium</wikiName>
<offset>1002</offset>
<length>7</length>
</annotation>
</document>
<document docName="240958newsML.txt">
<annotation>
<mention>Lloyds Shipping</mention>
<wikiName></wikiName>
<offset>25</offset>
<length>15</length>
</annotation>
<annotation>
<mention>GREECE</mention>
<wikiName>Greece</wikiName>
<offset>43</offset>
<length>6</length>
</annotation>
<annotation>
<mention>Greek</mention>
<wikiName>Greece</wikiName>
<offset>59</offset>
<length>5</length>
</annotation>
</document>
<document docName="240970newsML.txt">
<annotation>
<mention>German</mention>
<wikiName>Germany</wikiName>
<offset>0</offset>
<length>6</length>
</annotation>
<annotation>
<mention>HAMBURG</mention>
<wikiName>Hamburg</wikiName>
<offset>44</offset>
<length>7</length>
</annotation>
<annotation>
<mention>German</mention>
<wikiName>Germany</wikiName>
<offset>64</offset>
<length>6</length>
</annotation>
<annotation>
<mention>EU</mention>
<wikiName></wikiName>
<offset>113</offset>
<length>2</length>
</annotation>
<annotation>
<mention>DKV</mention>
<wikiName></wikiName>
<offset>216</offset>
<length>3</length>
</annotation>
<annotation>
<mention>Colombia</mention>
<wikiName>Colombia</wikiName>
<offset>368</offset>
<length>8</length>
</annotation>
<annotation>
<mention>El Salvador</mention>
<wikiName>El Salvador</wikiName>
<offset>431</offset>
<length>11</length>
</annotation>
<annotation>
<mention>Indonesia</mention>
<wikiName>Indonesia</wikiName>
<offset>462</offset>
<length>9</length>
</annotation>
<annotation>
<mention>Ethiopia</mention>
<wikiName>Ethiopia</wikiName>
<offset>489</offset>
<length>8</length>
</annotation>
<annotation>
<mention>Kenya</mention>
<wikiName>Kenya</wikiName>
<offset>518</offset>
<length>5</length>
</annotation>
<annotation>
<mention>Brazil</mention>
<wikiName>Brazil</wikiName>
<offset>542</offset>
<length>6</length>
</annotation>
<annotation>
<mention>Hamburg</mention>
<wikiName>Hamburg</wikiName>
<offset>603</offset>
<length>7</length>
</annotation>
</document>
<document docName="240977newsML.txt">
<annotation>
<mention>Munich Re</mention>
<wikiName>Munich Re</wikiName>
<offset>0</offset>
<length>9</length>
</annotation>
<annotation>
<mention>MUNICH</mention>
<wikiName>Munich</wikiName>
<offset>32</offset>
<length>6</length>
</annotation>
<annotation>
<mention>Germany</mention>
<wikiName>Germany</wikiName>
<offset>40</offset>
<length>7</length>
</annotation>
<annotation>
<mention>Muenchener</mention>
<wikiName></wikiName>
<offset>60</offset>
<length>10</length>
</annotation>
<annotation>
<mention>Rueckversicherungs AG</mention>
<wikiName></wikiName>
<offset>71</offset>
<length>21</length>
</annotation>
<annotation>
<mention>Munich Re</mention>
<wikiName>Munich Re</wikiName>
<offset>250</offset>
<length>9</length>
</annotation>
<annotation>
<mention>Munich Re</mention>
<wikiName>Munich Re</wikiName>
<offset>474</offset>
<length>9</length>
</annotation>
<annotation>
<mention>Munich Re</mention>
<wikiName>Munich Re</wikiName>
<offset>587</offset>
<length>9</length>
</annotation>
<annotation>
<mention>DAX</mention>
<wikiName>DAX</wikiName>
<offset>640</offset>
<length>3</length>
</annotation>
<annotation>
<mention>Frankfurt Newsroom</mention>
<wikiName></wikiName>
<offset>693</offset>
<length>18</length>
</annotation>
</document>
<document docName="240984newsML.txt">
<annotation>
<mention>EU</mention>
<wikiName></wikiName>
<offset>0</offset>
<length>2</length>
</annotation>
<annotation>
<mention>BRUSSELS</mention>
<wikiName>Brussels</wikiName>
<offset>45</offset>
<length>8</length>
</annotation>
<annotation>
<mention>European Union</mention>
<wikiName>European Union</wikiName>
<offset>66</offset>
<length>14</length>
</annotation>
<annotation>
<mention>EU</mention>
<wikiName></wikiName>
<offset>218</offset>
<length>2</length>
</annotation>
<annotation>
<mention>EU</mention>
<wikiName></wikiName>
<offset>235</offset>
<length>2</length>
</annotation>
<annotation>
<mention>European</mention>
<wikiName>European Union</wikiName>
<offset>458</offset>
<length>8</length>
</annotation>
<annotation>
<mention>Brussels Newsroom</mention>
<wikiName></wikiName>
<offset>613</offset>
<length>17</length>
</annotation>
</document>
<document docName="241032newsML.txt">
<annotation>
<mention>Frankfurt</mention>
<wikiName>Frankfurt Stock Exchange</wikiName>
<offset>0</offset>
<length>9</length>
</annotation>
<annotation>
<mention>FRANKFURT</mention>
<wikiName>Frankfurt</wikiName>
<offset>36</offset>
<length>9</length>
</annotation>
<annotation>
<mention>Frankfurt</mention>
<wikiName>Frankfurt Stock Exchange</wikiName>
<offset>98</offset>
<length>9</length>
</annotation>
<annotation>
<mention>Bundesbank</mention>
<wikiName>Deutsche Bundesbank</wikiName>
<offset>164</offset>
<length>10</length>
</annotation>
</document>
<document docName="241057newsML.txt">
<annotation>
<mention>John Lewis UK</mention>
<wikiName></wikiName>
<offset>0</offset>
<length>13</length>
</annotation>
<annotation>
<mention>LONDON</mention>
<wikiName>London</wikiName>
<offset>44</offset>
<length>6</length>
</annotation>
<annotation>
<mention>John Lewis</mention>
<wikiName>John Lewis Partnership</wikiName>
<offset>67</offset>
<length>10</length>
</annotation>
<annotation>
<mention>UK</mention>
<wikiName></wikiName>
<offset>99</offset>
<length>2</length>
</annotation>
<annotation>
<mention>Waitrose</mention>
<wikiName>Waitrose</wikiName>
<offset>315</offset>
<length>8</length>
</annotation>
<annotation>
<mention>Rosemary Bennett</mention>
<wikiName></wikiName>
<offset>424</offset>
<length>16</length>
</annotation>
<annotation>
<mention>London Newsroom</mention>
<wikiName></wikiName>
<offset>442</offset>
<length>15</length>
</annotation>
</document>
<document docName="241058newsML.txt">
<annotation>
<mention>Timah</mention>
<wikiName></wikiName>
<offset>0</offset>
<length>5</length>
</annotation>
<annotation>
<mention>London</mention>
<wikiName>London</wikiName>
<offset>19</offset>
<length>6</length>
</annotation>
<annotation>
<mention>GMT</mention>
<wikiName>Greenwich Mean Time</wikiName>
<offset>34</offset>
<length>3</length>
</annotation>
<annotation>
<mention>LONDON</mention>
<wikiName>London</wikiName>
<offset>40</offset>
<length>6</length>
</annotation>
<annotation>
<mention>PT Tambang Timah</mention>
<wikiName></wikiName>
<offset>59</offset>
<length>16</length>
</annotation>
<annotation>
<mention>London</mention>
<wikiName>London</wikiName>
<offset>109</offset>
<length>6</length>
</annotation>
<annotation>
<mention>GMT</mention>
<wikiName>Greenwich Mean Time</wikiName>
<offset>141</offset>
<length>3</length>
</annotation>
<annotation>
<mention>Jakarta</mention>
<wikiName>Jakarta</wikiName>
<offset>307</offset>
<length>7</length>
</annotation>
</document>
<document docName="241090newsML.txt">
<annotation>
<mention>British</mention>
<wikiName>United Kingdom</wikiName>
<offset>0</offset>
<length>7</length>
</annotation>
<annotation>
<mention>Euro-sceptic</mention>
<wikiName>Euroscepticism</wikiName>
<offset>9</offset>
<length>12</length>
</annotation>
<annotation>
<mention>Clarke</mention>
<wikiName>Kenneth Clarke</wikiName>
<offset>28</offset>
<length>6</length>
</annotation>
<annotation>
<mention>LONDON</mention>
<wikiName>London</wikiName>
<offset>51</offset>
<length>6</length>
</annotation>
<annotation>
<mention>Euro-sceptic</mention>
<wikiName>Euroscepticism</wikiName>
<offset>73</offset>
<length>12</length>
</annotation>
<annotation>
<mention>Conservative</mention>
<wikiName>Conservative Party (UK)</wikiName>
<offset>108</offset>
<length>12</length>
</annotation>
<annotation>
<mention>British</mention>
<wikiName>United Kingdom</wikiName>
<offset>144</offset>
<length>7</length>
</annotation>
<annotation>
<mention>Kenneth Clarke</mention>
<wikiName>Kenneth Clarke</wikiName>
<offset>169</offset>
<length>14</length>
</annotation>
<annotation>
<mention>European</mention>
<wikiName>European Union</wikiName>
<offset>261</offset>
<length>8</length>
</annotation>
<annotation>
<mention>Tony Marlow</mention>
<wikiName>Antony Marlow</wikiName>
<offset>302</offset>
<length>11</length>
</annotation>
<annotation>
<mention>Cabinet</mention>
<wikiName>Cabinet (government)</wikiName>
<offset>515</offset>
<length>7</length>
</annotation>
<annotation>
<mention>Marlow</mention>
<wikiName>Antony Marlow</wikiName>
<offset>545</offset>
<length>6</length>
</annotation>
<annotation>
<mention>BBC</mention>
<wikiName>BBC</wikiName>
<offset>557</offset>
<length>3</length>
</annotation>
<annotation>
<mention>Newsnight</mention>
<wikiName>Newsnight</wikiName>
<offset>574</offset>
<length>9</length>
</annotation>
<annotation>
<mention>Kenneth Clarke</mention>
<wikiName>Kenneth Clarke</wikiName>
<offset>631</offset>
<length>14</length>
</annotation>
<annotation>
<mention>Marlow</mention>
<wikiName>Antony Marlow</wikiName>
<offset>721</offset>
<length>6</length>
</annotation>
<annotation>
<mention>Clarke</mention>
<wikiName>Kenneth Clarke</wikiName>
<offset>776</offset>
<length>6</length>
</annotation>
<annotation>
<mention>Clarke</mention>
<wikiName>Kenneth Clarke</wikiName>
<offset>957</offset>
<length>6</length>
</annotation>
<annotation>
<mention>John Major</mention>
<wikiName>John Major</wikiName>
<offset>1096</offset>
<length>10</length>
</annotation>
<annotation>
<mention>Major</mention>
<wikiName>John Major</wikiName>
<offset>1109</offset>
<length>5</length>
</annotation>
<annotation>
<mention>Clarke</mention>
<wikiName>Kenneth Clarke</wikiName>
<offset>1264</offset>
<length>6</length>
</annotation>
<annotation>
<mention>pro-European</mention>
<wikiName></wikiName>
<offset>1282</offset>
<length>12</length>
</annotation>
<annotation>
<mention>Michael Heseltine</mention>
<wikiName>Michael Heseltine</wikiName>
<offset>1295</offset>
<length>17</length>
</annotation>
<annotation>
<mention>Pro-European</mention>
<wikiName></wikiName>
<offset>1338</offset>
<length>12</length>
</annotation>
<annotation>
<mention>Conservative</mention>
<wikiName>Conservative Party (UK)</wikiName>
<offset>1351</offset>
<length>12</length>
</annotation>
<annotation>
<mention>Edwina Currie</mention>
<wikiName>Edwina Currie</wikiName>
<offset>1367</offset>
<length>13</length>
</annotation>
<annotation>
<mention>BBC</mention>
<wikiName>BBC</wikiName>
<offset>1390</offset>
<length>3</length>
</annotation>
<annotation>
<mention>Clarke</mention>
<wikiName>Kenneth Clarke</wikiName>
<offset>1402</offset>
<length>6</length>
</annotation>
</document>
<document docName="241112newsML.txt">
<annotation>
<mention>Australian</mention>
<wikiName>Australia</wikiName>
<offset>21</offset>
<length>10</length>
</annotation>
<annotation>
<mention>CANBERRA</mention>
<wikiName>Canberra</wikiName>
<offset>52</offset>
<length>8</length>
</annotation>
<annotation>
<mention>Australian</mention>
<wikiName>Australia</wikiName>
<offset>77</offset>
<length>10</length>
</annotation>
<annotation>
<mention>Australian</mention>
<wikiName>Australia</wikiName>
<offset>171</offset>
<length>10</length>
</annotation>
<annotation>
<mention>Chris Hunt</mention>
<wikiName></wikiName>
<offset>310</offset>
<length>10</length>
</annotation>
<annotation>
<mention>Laurie Brereton</mention>
<wikiName>Laurie Brereton</wikiName>
<offset>671</offset>
<length>15</length>
</annotation>
<annotation>
<mention>Foreign Affairs Department</mention>
<wikiName></wikiName>
<offset>894</offset>
<length>26</length>
</annotation>
<annotation>
<mention>Foreign Affairs</mention>
<wikiName>Minister for Foreign Affairs (Australia)</wikiName>
<offset>1090</offset>
<length>15</length>
</annotation>
<annotation>
<mention>Alexander Downer</mention>
<wikiName>Alexander Downer</wikiName>
<offset>1115</offset>
<length>16</length>
</annotation>
<annotation>
<mention>Pamela O'Neil</mention>
<wikiName></wikiName>
<offset>1202</offset>
<length>13</length>
</annotation>
<annotation>
<mention>Australian</mention>
<wikiName>Australia</wikiName>
<offset>1313</offset>
<length>10</length>
</annotation>
<annotation>
<mention>Cambodian</mention>
<wikiName>Cambodia</wikiName>
<offset>1385</offset>
<length>9</length>
</annotation>
<annotation>
<mention>Australian</mention>
<wikiName>Australia</wikiName>
<offset>1532</offset>
<length>10</length>
</annotation>
</document>
<document docName="241130newsML.txt">
<annotation>
<mention>Australian</mention>
<wikiName>Australia</wikiName>
<offset>0</offset>
<length>10</length>
</annotation>
<annotation>
<mention>SYDNEY</mention>
<wikiName>Sydney</wikiName>
<offset>40</offset>
<length>6</length>
</annotation>
<annotation>
<mention>Australian</mention>
<wikiName>Australia</wikiName>
<offset>62</offset>
<length>10</length>
</annotation>
<annotation>
<mention>Paul Crofts</mention>
<wikiName></wikiName>
<offset>176</offset>
<length>11</length>
</annotation>
<annotation>
<mention>Tony</mention>
<wikiName></wikiName>
<offset>262</offset>
<length>4</length>
</annotation>
<annotation>
<mention>New South Wales Supreme Court</mention>
<wikiName>Supreme Court of New South Wales</wikiName>
<offset>356</offset>
<length>29</length>
</annotation>
<annotation>
<mention>Leszic Betcher</mention>
<wikiName></wikiName>
<offset>418</offset>
<length>14</length>
</annotation>
<annotation>
<mention>Sydney</mention>
<wikiName>Sydney</wikiName>
<offset>497</offset>
<length>6</length>
</annotation>
<annotation>
<mention>Michael Grove</mention>
<wikiName></wikiName>
<offset>605</offset>
<length>13</length>
</annotation>
<annotation>
<mention>Crofts</mention>
<wikiName></wikiName>
<offset>640</offset>
<length>6</length>
</annotation>
<annotation>
<mention>Grove</mention>
<wikiName></wikiName>
<offset>668</offset>
<length>5</length>
</annotation>
<annotation>
<mention>Grove</mention>
<wikiName></wikiName>
<offset>797</offset>
<length>5</length>
</annotation>
<annotation>
<mention>Betcher</mention>
<wikiName></wikiName>
<offset>808</offset>
<length>7</length>
</annotation>
</document>
<document docName="241136newsML.txt">
<annotation>
<mention>NZ</mention>
<wikiName></wikiName>
<offset>0</offset>
<length>2</length>
</annotation>
<annotation>
<mention>Bolger</mention>
<wikiName>Jim Bolger</wikiName>
<offset>5</offset>
<length>6</length>
</annotation>
<annotation>
<mention>Nats</mention>
<wikiName></wikiName>
<offset>17</offset>
<length>4</length>
</annotation>
<annotation>
<mention>NZ</mention>
<wikiName></wikiName>
<offset>30</offset>
<length>2</length>
</annotation>
<annotation>
<mention>WELLINGTON</mention>
<wikiName>Wellington</wikiName>
<offset>51</offset>
<length>10</length>
</annotation>
<annotation>
<mention>New Zealand</mention>
<wikiName>New Zealand</wikiName>
<offset>74</offset>
<length>11</length>
</annotation>
<annotation>
<mention>Jim Bolger</mention>
<wikiName>Jim Bolger</wikiName>
<offset>101</offset>
<length>10</length>
</annotation>
<annotation>
<mention>New Zealand First</mention>
<wikiName>New Zealand First</wikiName>
<offset>164</offset>
<length>17</length>
</annotation>
<annotation>
<mention>National</mention>
<wikiName>New Zealand National Party</wikiName>
<offset>214</offset>
<length>8</length>
</annotation>
<annotation>
<mention>NZ First</mention>
<wikiName>New Zealand First</wikiName>
<offset>227</offset>
<length>8</length>
</annotation>
<annotation>
<mention>Bolger</mention>
<wikiName>Jim Bolger</wikiName>
<offset>265</offset>
<length>6</length>
</annotation>
</document>
<document docName="241142newsML.txt">
<annotation>
<mention>NZ</mention>
<wikiName></wikiName>
<offset>0</offset>
<length>2</length>
</annotation>
<annotation>
<mention>Peters</mention>
<wikiName>Winston Peters</wikiName>
<offset>5</offset>
<length>6</length>
</annotation>
<annotation>
<mention>Nat</mention>
<wikiName></wikiName>
<offset>17</offset>
<length>3</length>
</annotation>
<annotation>
<mention>Lab</mention>
<wikiName></wikiName>
<offset>22</offset>
<length>3</length>
</annotation>
<annotation>
<mention>WELLINGTON</mention>
<wikiName>Wellington</wikiName>
<offset>51</offset>
<length>10</length>
</annotation>
<annotation>
<mention>New Zealand First</mention>
<wikiName>New Zealand First</wikiName>
<offset>74</offset>
<length>17</length>
</annotation>
<annotation>
<mention>Winston Peters</mention>
<wikiName>Winston Peters</wikiName>
<offset>99</offset>
<length>14</length>
</annotation>
<annotation>
<mention>National</mention>
<wikiName>New Zealand National Party</wikiName>
<offset>154</offset>
<length>8</length>
</annotation>
<annotation>
<mention>Labour</mention>
<wikiName>New Zealand Labour Party</wikiName>
<offset>167</offset>
<length>6</length>
</annotation>
<annotation>
<mention>Peters</mention>
<wikiName>Winston Peters</wikiName>
<offset>222</offset>
<length>6</length>
</annotation>
<annotation>
<mention>NZ First</mention>
<wikiName>New Zealand First</wikiName>
<offset>252</offset>
<length>8</length>
</annotation>
<annotation>
<mention>National</mention>
<wikiName>New Zealand National Party</wikiName>
<offset>265</offset>
<length>8</length>
</annotation>
<annotation>
<mention>Labour</mention>
<wikiName>New Zealand Labour Party</wikiName>
<offset>318</offset>
<length>6</length>
</annotation>
<annotation>
<mention>Helen Clark</mention>
<wikiName>Helen Clark</wikiName>
<offset>332</offset>
<length>11</length>
</annotation>
<annotation>
<mention>Reuters</mention>
<wikiName>Reuters</wikiName>
<offset>353</offset>
<length>7</length>
</annotation>
<annotation>
<mention>Wellington</mention>
<wikiName>Wellington</wikiName>
<offset>407</offset>
<length>10</length>
</annotation>
<annotation>
<mention>Peters</mention>
<wikiName>Winston Peters</wikiName>
<offset>436</offset>
<length>6</length>
</annotation>
<annotation>
<mention>Labour</mention>
<wikiName>New Zealand Labour Party</wikiName>
<offset>463</offset>
<length>6</length>
</annotation>
<annotation>
<mention>National</mention>
<wikiName>New Zealand National Party</wikiName>
<offset>474</offset>
<length>8</length>
</annotation>
</document>
<document docName="241165newsML.txt">
<annotation>
<mention>RTRS</mention>
<wikiName>Radio and Television of Bosnia and Herzegovina</wikiName>
<offset>0</offset>
<length>4</length>
</annotation>
<annotation>
<mention>Australian</mention>
<wikiName>Australia</wikiName>
<offset>5</offset>
<length>10</length>
</annotation>
<annotation>
<mention>John Langmore</mention>
<wikiName>John Langmore</wikiName>
<offset>19</offset>
<length>13</length>
</annotation>
<annotation>
<mention>CANBERRA</mention>
<wikiName>Canberra</wikiName>
<offset>52</offset>
<length>8</length>
</annotation>
<annotation>
<mention>Australian</mention>
<wikiName>Australia</wikiName>
<offset>73</offset>
<length>10</length>
</annotation>
<annotation>
<mention>John Langmore</mention>
<wikiName>John Langmore</wikiName>
<offset>100</offset>
<length>13</length>
</annotation>
<annotation>
<mention>House of Representatives</mention>
<wikiName></wikiName>
<offset>177</offset>
<length>24</length>
</annotation>
<annotation>
<mention>Bob Halverson</mention>
<wikiName>Bob Halverson</wikiName>
<offset>210</offset>
<length>13</length>
</annotation>
<annotation>
<mention>Halverson</mention>
<wikiName>Bob Halverson</wikiName>
<offset>242</offset>
<length>9</length>
</annotation>
<annotation>
<mention>John Vance Langmore</mention>
<wikiName>John Langmore</wikiName>
<offset>297</offset>
<length>19</length>
</annotation>
<annotation>
<mention>House of Representatives</mention>
<wikiName></wikiName>
<offset>364</offset>
<length>24</length>
</annotation>
<annotation>
<mention>Fraser</mention>
<wikiName>Fraser, Australian Capital Territory</wikiName>
<offset>419</offset>
<length>6</length>
</annotation>
<annotation>
<mention>Australian Capital Territory</mention>
<wikiName>Australian Capital Territory</wikiName>
<offset>433</offset>
<length>28</length>
</annotation>
<annotation>
<mention>Halverson</mention>
<wikiName>Bob Halverson</wikiName>
<offset>497</offset>
<length>9</length>
</annotation>
<annotation>
<mention>Langmore</mention>
<wikiName>John Langmore</wikiName>
<offset>577</offset>
<length>8</length>
</annotation>
<annotation>
<mention>Australia</mention>
<wikiName>Australia</wikiName>
<offset>681</offset>
<length>9</length>
</annotation>
<annotation>
<mention>United Nations</mention>
<wikiName>United Nations</wikiName>
<offset>722</offset>
<length>14</length>
</annotation>
<annotation>
<mention>New York</mention>
<wikiName>New York City</wikiName>
<offset>753</offset>
<length>8</length>
</annotation>
<annotation>
<mention>U.N.</mention>
<wikiName>United Nations</wikiName>
<offset>796</offset>
<length>4</length>
</annotation>
<annotation>
<mention>Copenhagen</mention>
<wikiName>Copenhagen</wikiName>
<offset>834</offset>
<length>10</length>
</annotation>
<annotation>
<mention>U.N.</mention>
<wikiName>United Nations</wikiName>
<offset>889</offset>
<length>4</length>
</annotation>
<annotation>
<mention>Inge Kaul</mention>
<wikiName></wikiName>
<offset>924</offset>
<length>9</length>
</annotation>
<annotation>
<mention>Langmore</mention>
<wikiName>John Langmore</wikiName>
<offset>936</offset>
<length>8</length>
</annotation>
<annotation>
<mention>Fraser</mention>
<wikiName>Fraser, Australian Capital Territory</wikiName>
<offset>1033</offset>
<length>6</length>
</annotation>
<annotation>
<mention>Paul Keating</mention>
<wikiName>Paul Keating</wikiName>
<offset>1198</offset>
<length>12</length>
</annotation>
<annotation>
<mention>Papua New Guinea</mention>
<wikiName>Papua New Guinea</wikiName>
<offset>1302</offset>
<length>16</length>
</annotation>
<annotation>
<mention>Canberra</mention>
<wikiName>Canberra</wikiName>
<offset>1342</offset>
<length>8</length>
</annotation>
</document>
<document docName="241243newsML.txt">
<annotation>
<mention>Burmese</mention>
<wikiName>Burma</wikiName>
<offset>0</offset>
<length>7</length>
</annotation>
<annotation>
<mention>RANGOON</mention>
<wikiName>Yangon</wikiName>
<offset>45</offset>
<length>7</length>
</annotation>
<annotation>
<mention>Burmese</mention>
<wikiName>Burma</wikiName>
<offset>76</offset>
<length>7</length>
</annotation>
<annotation>
<mention>Yangon Institute of Technology</mention>
<wikiName>Yangon Technological University</wikiName>
<offset>122</offset>
<length>30</length>
</annotation>
<annotation>
<mention>YIT</mention>
<wikiName></wikiName>
<offset>154</offset>
<length>3</length>
</annotation>
<annotation>
<mention>Rangoon</mention>
<wikiName>Yangon</wikiName>
<offset>188</offset>
<length>7</length>
</annotation>
<annotation>
<mention>University of Yangon</mention>
<wikiName>University of Yangon</wikiName>
<offset>217</offset>
<length>20</length>
</annotation>
<annotation>
<mention>YIT</mention>
<wikiName></wikiName>
<offset>442</offset>
<length>3</length>
</annotation>
<annotation>
<mention>Shwe Dagon</mention>
<wikiName>Shwedagon Pagoda</wikiName>
<offset>760</offset>
<length>10</length>
</annotation>
<annotation>
<mention>Rangoon</mention>
<wikiName>Yangon</wikiName>
<offset>781</offset>
<length>7</length>
</annotation>
<annotation>
<mention>Reuters</mention>
<wikiName>Reuters</wikiName>
<offset>847</offset>
<length>7</length>
</annotation>
<annotation>
<mention>State Law and Order Restoration Council</mention>
<wikiName></wikiName>
<offset>905</offset>
<length>39</length>
</annotation>
<annotation>
<mention>SLORC</mention>
<wikiName></wikiName>
<offset>948</offset>
<length>5</length>
</annotation>
</document>
<document docName="241244newsML.txt">
<annotation>
<mention>Thai</mention>
<wikiName>Thailand</wikiName>
<offset>0</offset>
<length>4</length>
</annotation>
<annotation>
<mention>BANGKOK</mention>
<wikiName>Bangkok</wikiName>
<offset>52</offset>
<length>7</length>
</annotation>
<annotation>
<mention>Thai</mention>
<wikiName>Thailand</wikiName>
<offset>76</offset>
<length>4</length>
</annotation>
<annotation>
<mention>Commerce Ministry</mention>
<wikiName></wikiName>
<offset>81</offset>
<length>17</length>
</annotation>
<annotation>
<mention>Thai</mention>
<wikiName>Thailand</wikiName>
<offset>124</offset>
<length>4</length>
</annotation>
<annotation>
<mention>Iran Sabr</mention>
<wikiName></wikiName>
<offset>212</offset>
<length>9</length>
</annotation>
<annotation>
<mention>Iran</mention>
<wikiName>Iran</wikiName>
<offset>243</offset>
<length>4</length>
</annotation>
<annotation>
<mention>Princess of Loine</mention>
<wikiName></wikiName>
<offset>249</offset>
<length>17</length>
</annotation>
<annotation>
<mention>Philippines</mention>
<wikiName>Philippines</wikiName>
<offset>290</offset>
<length>11</length>
</annotation>
<annotation>
<mention>Deligst</mention>
<wikiName></wikiName>
<offset>303</offset>
<length>7</length>
</annotation>
<annotation>
<mention>Indonesia</mention>
<wikiName>Indonesia</wikiName>
<offset>334</offset>
<length>9</length>
</annotation>
<annotation>
<mention>Seagramd</mention>
<wikiName></wikiName>
<offset>345</offset>
<length>8</length>
</annotation>
<annotation>
<mention>Japan</mention>
<wikiName>Japan</wikiName>
<offset>376</offset>
<length>5</length>
</annotation>
<annotation>
<mention>Lucky Emdldm</mention>
<wikiName></wikiName>
<offset>383</offset>
<length>12</length>
</annotation>
<annotation>
<mention>Japan</mention>
<wikiName>Japan</wikiName>
<offset>414</offset>
<length>5</length>
</annotation>
<annotation>
<mention>Algoa Day</mention>
<wikiName></wikiName>
<offset>421</offset>
<length>9</length>
</annotation>
<annotation>
<mention>Africa</mention>
<wikiName>Africa</wikiName>
<offset>452</offset>
<length>6</length>
</annotation>
<annotation>
<mention>Sangthai Glory</mention>
<wikiName></wikiName>
<offset>460</offset>
<length>14</length>
</annotation>
<annotation>
<mention>Singapore</mention>
<wikiName>Singapore</wikiName>
<offset>496</offset>
<length>9</length>
</annotation>
<annotation>
<mention>Myos Yang</mention>
<wikiName></wikiName>
<offset>507</offset>
<length>9</length>
</annotation>
<annotation>
<mention>Indonesia</mention>
<wikiName>Indonesia</wikiName>
<offset>538</offset>
<length>9</length>
</annotation>
<annotation>
<mention>Budisuryana</mention>
<wikiName></wikiName>
<offset>549</offset>
<length>11</length>
</annotation>
<annotation>
<mention>Malaysia</mention>
<wikiName>Malaysia</wikiName>
<offset>580</offset>
<length>8</length>
</annotation>
<annotation>
<mention>King Ace</mention>
<wikiName></wikiName>
<offset>590</offset>
<length>8</length>
</annotation>
<annotation>
<mention>Japan</mention>
<wikiName>Japan</wikiName>
<offset>621</offset>
<length>5</length>
</annotation>
<annotation>
<mention>Tong Shun</mention>
<wikiName></wikiName>
<offset>628</offset>
<length>9</length>
</annotation>
<annotation>
<mention>Vietnam</mention>
<wikiName>Vietnam</wikiName>
<offset>659</offset>
<length>7</length>
</annotation>
<annotation>
<mention>But</mention>
<wikiName></wikiName>
<offset>668</offset>
<length>3</length>
</annotation>
<annotation>
<mention>Burma</mention>
<wikiName>Burma</wikiName>
<offset>694</offset>
<length>5</length>
</annotation>
<annotation>
<mention>Bangkok</mention>
<wikiName>Bangkok</wikiName>
<offset>704</offset>
<length>7</length>
</annotation>
</document>
<document docName="241266newsML.txt">
<annotation>
<mention>Chinese</mention>
<wikiName>China</wikiName>
<offset>0</offset>
<length>7</length>
</annotation>
<annotation>
<mention>SHANGHAI</mention>
<wikiName>Shanghai</wikiName>
<offset>48</offset>
<length>8</length>
</annotation>
<annotation>
<mention>China</mention>
<wikiName>China</wikiName>
<offset>102</offset>
<length>5</length>
</annotation>
<annotation>
<mention>Tianjin</mention>
<wikiName>Tianjin</wikiName>
<offset>116</offset>
<length>7</length>
</annotation>
<annotation>
<mention>Wen Hui Bao</mention>
<wikiName>Wen Hui Bao</wikiName>
<offset>252</offset>
<length>11</length>
</annotation>
</document>
<document docName="241267newsML.txt">
<annotation>
<mention>South Korean</mention>
<wikiName>South Korea</wikiName>
<offset>0</offset>
<length>12</length>
</annotation>
<annotation>
<mention>SEOUL</mention>
<wikiName>Seoul</wikiName>
<offset>53</offset>
<length>5</length>
</annotation>
<annotation>
<mention>U.S.</mention>
<wikiName>United States</wikiName>
<offset>96</offset>
<length>4</length>
</annotation>
<annotation>
<mention>Hyundai Heavy</mention>
<wikiName></wikiName>
<offset>325</offset>
<length>13</length>
</annotation>
<annotation>
<mention>Koram Bank</mention>
<wikiName></wikiName>
<offset>435</offset>
<length>10</length>
</annotation>
</document>
<document docName="241278newsML.txt">
<annotation>
<mention>China</mention>
<wikiName>China</wikiName>
<offset>26</offset>
<length>5</length>
</annotation>
<annotation>
<mention>Guilin</mention>
<wikiName>Guilin</wikiName>
<offset>42</offset>
<length>6</length>
</annotation>
<annotation>
<mention>BEIJING</mention>
<wikiName>Beijing</wikiName>
<offset>51</offset>
<length>7</length>
</annotation>
<annotation>
<mention>China</mention>
<wikiName>China</wikiName>
<offset>71</offset>
<length>5</length>
</annotation>
<annotation>
<mention>Guilin</mention>
<wikiName>Guilin</wikiName>
<offset>95</offset>
<length>6</length>
</annotation>
<annotation>
<mention>Guangxi</mention>
<wikiName>Guangxi</wikiName>
<offset>128</offset>
<length>7</length>
</annotation>
<annotation>
<mention>Xinhua</mention>
<wikiName>Xinhua News Agency</wikiName>
<offset>183</offset>
<length>6</length>
</annotation>
<annotation>
<mention>State Council</mention>
<wikiName>State Council of the People's Republic of China</wikiName>
<offset>254</offset>
<length>13</length>
</annotation>
<annotation>
<mention>Civil Aviation Administration of China</mention>
<wikiName>Civil Aviation Administration of China</wikiName>
<offset>287</offset>
<length>38</length>
</annotation>
<annotation>
<mention>General Administration of Customs</mention>
<wikiName>General Administration of Customs</wikiName>
<offset>331</offset>
<length>33</length>
</annotation>
<annotation>
<mention>Xinhua</mention>
<wikiName>Xinhua News Agency</wikiName>
<offset>450</offset>
<length>6</length>
</annotation>
<annotation>
<mention>Guangxi</mention>
<wikiName>Guangxi</wikiName>
<offset>541</offset>
<length>7</length>
</annotation>
<annotation>
<mention>China</mention>
<wikiName>China</wikiName>
<offset>563</offset>
<length>5</length>
</annotation>
<annotation>
<mention>Guilin</mention>
<wikiName>Guilin</wikiName>
<offset>628</offset>
<length>6</length>
</annotation>
<annotation>
<mention>China</mention>
<wikiName>China</wikiName>
<offset>698</offset>
<length>5</length>
</annotation>
</document>
<document docName="241287newsML.txt">
<annotation>
<mention>EPA</mention>
<wikiName></wikiName>
<offset>0</offset>
<length>3</length>
</annotation>
<annotation>
<mention>TOKYO</mention>
<wikiName>Tokyo</wikiName>
<offset>53</offset>
<length>5</length>
</annotation>
<annotation>
<mention>Japan</mention>
<wikiName>Japan</wikiName>
<offset>71</offset>
<length>5</length>
</annotation>
<annotation>
<mention>Economic Planning Agency</mention>
<wikiName></wikiName>
<offset>79</offset>
<length>24</length>
</annotation>
<annotation>
<mention>EPA</mention>
<wikiName></wikiName>
<offset>247</offset>
<length>3</length>
</annotation>
<annotation>
<mention>Shimpei Nukaya</mention>
<wikiName></wikiName>
<offset>265</offset>
<length>14</length>
</annotation>
<annotation>
<mention>Nukaya</mention>
<wikiName></wikiName>
<offset>520</offset>
<length>6</length>
</annotation>
</document>
<document docName="241308newsML.txt">
<annotation>
<mention>Sangetsu</mention>
<wikiName></wikiName>
<offset>0</offset>
<length>8</length>
</annotation>
<annotation>
<mention>TOKYO</mention>
<wikiName>Tokyo</wikiName>
<offset>34</offset>
<length>5</length>
</annotation>
<annotation>
<mention>Sangetsu Co Ltd</mention>
<wikiName></wikiName>
<offset>336</offset>
<length>15</length>
</annotation>
</document>
<document docName="241322newsML.txt">
<annotation>
<mention>Bre-X</mention>
<wikiName>Bre-X</wikiName>
<offset>0</offset>
<length>5</length>
</annotation>
<annotation>
<mention>Barrick</mention>
<wikiName>Barrick Gold</wikiName>
<offset>7</offset>
<length>7</length>
</annotation>
<annotation>
<mention>Busang</mention>
<wikiName></wikiName>
<offset>32</offset>
<length>6</length>
</annotation>
<annotation>
<mention>K.T. Arasu
JAKARTA</mention>
<wikiName></wikiName>
<offset>47</offset>
<length>19</length>
</annotation>
<annotation>
<mention>Canada</mention>
<wikiName>Canada</wikiName>
<offset>79</offset>
<length>6</length>
</annotation>
<annotation>
<mention>Bre-X Minerals Ltd</mention>
<wikiName></wikiName>
<offset>88</offset>
<length>18</length>
</annotation>
<annotation>
<mention>Barrick Gold Corp</mention>
<wikiName></wikiName>
<offset>111</offset>
<length>17</length>
</annotation>
<annotation>
<mention>Busang</mention>
<wikiName></wikiName>
<offset>223</offset>
<length>6</length>
</annotation>
<annotation>
<mention>Indonesia</mention>
<wikiName>Indonesia</wikiName>
<offset>243</offset>
<length>9</length>
</annotation>
<annotation>
<mention>Toronto</mention>
<wikiName>Toronto</wikiName>
<offset>337</offset>
<length>7</length>
</annotation>
<annotation>
<mention>Jakarta</mention>
<wikiName>Jakarta</wikiName>
<offset>352</offset>
<length>7</length>
</annotation>
<annotation>
<mention>Reuters</mention>
<wikiName>Reuters</wikiName>
<offset>415</offset>
<length>7</length>
</annotation>
<annotation>
<mention>Bre-X</mention>
<wikiName>Bre-X</wikiName>
<offset>485</offset>
<length>5</length>
</annotation>
<annotation>
<mention>Barrick</mention>
<wikiName>Barrick Gold</wikiName>
<offset>495</offset>
<length>7</length>
</annotation>
<annotation>
<mention>Toronto</mention>
<wikiName>Toronto</wikiName>
<offset>519</offset>
<length>7</length>
</annotation>
<annotation>
<mention>Bre-X</mention>
<wikiName>Bre-X</wikiName>
<offset>621</offset>
<length>5</length>
</annotation>
<annotation>
<mention>Barrick</mention>
<wikiName>Barrick Gold</wikiName>
<offset>631</offset>
<length>7</length>
</annotation>
<annotation>
<mention>Mines and Energy Ministry</mention>
<wikiName></wikiName>
<offset>675</offset>
<length>25</length>
</annotation>
<annotation>
<mention>Umar Said</mention>
<wikiName></wikiName>
<offset>719</offset>
<length>9</length>
</annotation>
<annotation>
<mention>Busang</mention>
<wikiName></wikiName>
<offset>776</offset>
<length>6</length>
</annotation>
<annotation>
<mention>East Kalimantan</mention>
<wikiName>East Kalimantan</wikiName>
<offset>791</offset>
<length>15</length>
</annotation>
<annotation>
<mention>Bre-X</mention>
<wikiName>Bre-X</wikiName>
<offset>836</offset>
<length>5</length>
</annotation>
<annotation>
<mention>Indonesian Mines and Energy Ministry</mention>
<wikiName></wikiName>
<offset>881</offset>
<length>36</length>
</annotation>
<annotation>
<mention>Busang</mention>
<wikiName></wikiName>
<offset>967</offset>
<length>6</length>
</annotation>
<annotation>
<mention>Bre-X</mention>
<wikiName>Bre-X</wikiName>
<offset>1138</offset>
<length>5</length>
</annotation>
<annotation>
<mention>Bre-X</mention>
<wikiName>Bre-X</wikiName>
<offset>1184</offset>
<length>5</length>
</annotation>
<annotation>
<mention>Bre-X</mention>
<wikiName>Bre-X</wikiName>
<offset>1344</offset>
<length>5</length>
</annotation>
<annotation>
<mention>Indonesian</mention>
<wikiName>Indonesia</wikiName>
<offset>1397</offset>
<length>10</length>
</annotation>
<annotation>
<mention>Busang</mention>
<wikiName></wikiName>
<offset>1452</offset>
<length>6</length>
</annotation>
<annotation>
<mention>Bre-X</mention>
<wikiName>Bre-X</wikiName>
<offset>1591</offset>
<length>5</length>
</annotation>
<annotation>
<mention>Barrick</mention>
<wikiName>Barrick Gold</wikiName>
<offset>1601</offset>
<length>7</length>
</annotation>
<annotation>
<mention>Bre-X</mention>
<wikiName>Bre-X</wikiName>
<offset>1673</offset>
<length>5</length>
</annotation>
<annotation>
<mention>Mines and Energy Ministry</mention>
<wikiName></wikiName>
<offset>1953</offset>
<length>25</length>
</annotation>
<annotation>
<mention>Bre-X</mention>
<wikiName>Bre-X</wikiName>
<offset>1983</offset>
<length>5</length>
</annotation>
<annotation>
<mention>Barrick</mention>
<wikiName>Barrick Gold</wikiName>
<offset>1993</offset>
<length>7</length>
</annotation>
<annotation>
<mention>Bre-X</mention>
<wikiName>Bre-X</wikiName>
<offset>2118</offset>
<length>5</length>
</annotation>
<annotation>
<mention>Barrick</mention>
<wikiName>Barrick Gold</wikiName>
<offset>2155</offset>
<length>7</length>
</annotation>
<annotation>
<mention>Umar</mention>
<wikiName></wikiName>
<offset>2289</offset>
<length>4</length>
</annotation>
<annotation>
<mention>Bre-X</mention>
<wikiName>Bre-X</wikiName>
<offset>2321</offset>
<length>5</length>
</annotation>
<annotation>
<mention>Barrick</mention>
<wikiName>Barrick Gold</wikiName>
<offset>2331</offset>
<length>7</length>
</annotation>
<annotation>
<mention>Busang</mention>
<wikiName></wikiName>
<offset>2421</offset>
<length>6</length>
</annotation>
<annotation>
<mention>Umar</mention>
<wikiName></wikiName>
<offset>2498</offset>
<length>4</length>
</annotation>
<annotation>
<mention>Busang</mention>
<wikiName></wikiName>
<offset>2735</offset>
<length>6</length>
</annotation>
<annotation>
<mention>Bre-X</mention>
<wikiName>Bre-X</wikiName>
<offset>2751</offset>
<length>5</length>
</annotation>
<annotation>
<mention>PT Panutan Duta</mention>
<wikiName></wikiName>
<offset>2785</offset>
<length>15</length>
</annotation>
<annotation>
<mention>Panutan Group</mention>
<wikiName></wikiName>
<offset>2808</offset>
<length>13</length>
</annotation>
<annotation>
<mention>Suharto</mention>
<wikiName>Suharto</wikiName>
<offset>2839</offset>
<length>7</length>
</annotation>
<annotation>
<mention>Sigit Harjojudanto</mention>
<wikiName></wikiName>
<offset>2861</offset>
<length>18</length>
</annotation>
<annotation>
<mention>Panutan</mention>
<wikiName></wikiName>
<offset>2893</offset>
<length>7</length>
</annotation>
<annotation>
<mention>Busang</mention>
<wikiName></wikiName>
<offset>2966</offset>
<length>6</length>
</annotation>
<annotation>
<mention>Barrick</mention>
<wikiName>Barrick Gold</wikiName>
<offset>2991</offset>
<length>7</length>
</annotation>
<annotation>
<mention>Citra Group</mention>
<wikiName></wikiName>
<offset>3048</offset>
<length>11</length>
</annotation>
<annotation>
<mention>Suharto</mention>
<wikiName>Suharto</wikiName>
<offset>3063</offset>
<length>7</length>
</annotation>
<annotation>
<mention>Siti Hardianti Rukmana</mention>
<wikiName></wikiName>
<offset>3090</offset>
<length>22</length>
</annotation>
<annotation>
<mention>Barrick</mention>
<wikiName>Barrick Gold</wikiName>
<offset>3122</offset>
<length>7</length>
</annotation>
</document>
<document docName="241340newsML.txt">
<annotation>
<mention>Honda RV</mention>
<wikiName></wikiName>
<offset>0</offset>
<length>8</length>
</annotation>
<annotation>
<mention>TOKYO</mention>
<wikiName>Tokyo</wikiName>
<offset>32</offset>
<length>5</length>
</annotation>
<annotation>
<mention>Honda Motor Co Ltd</mention>
<wikiName></wikiName>
<offset>50</offset>
<length>18</length>
</annotation>
<annotation>
<mention>S-MX</mention>
<wikiName></wikiName>
<offset>136</offset>
<length>4</length>
</annotation>
<annotation>
<mention>Honda</mention>
<wikiName>Honda</wikiName>
<offset>204</offset>
<length>5</length>
</annotation>
<annotation>
<mention>S-MX</mention>
<wikiName></wikiName>
<offset>223</offset>
<length>4</length>
</annotation>
</document>
<document docName="241387newsML.txt">
<annotation>
<mention>Singapore</mention>
<wikiName>Singapore</wikiName>
<offset>10</offset>
<length>9</length>
</annotation>
<annotation>
<mention>WTO</mention>
<wikiName>World Trade Organization</wikiName>
<offset>45</offset>
<length>3</length>
</annotation>
<annotation>
<mention>Ramthan Hussain</mention>
<wikiName></wikiName>
<offset>51</offset>
<length>15</length>
</annotation>
<annotation>
<mention>SINGAPORE</mention>
<wikiName>Singapore</wikiName>
<offset>68</offset>
<length>9</length>
</annotation>
<annotation>
<mention>Singapore</mention>
<wikiName>Singapore</wikiName>
<offset>90</offset>
<length>9</length>
</annotation>
<annotation>
<mention>World Trade Organisation</mention>
<wikiName>World Trade Organization</wikiName>
<offset>131</offset>
<length>24</length>
</annotation>
<annotation>
<mention>WTO</mention>
<wikiName>World Trade Organization</wikiName>
<offset>157</offset>
<length>3</length>
</annotation>
<annotation>
<mention>Singapore</mention>
<wikiName>Singapore</wikiName>
<offset>367</offset>
<length>9</length>
</annotation>
<annotation>
<mention>WTO</mention>
<wikiName>World Trade Organization</wikiName>
<offset>421</offset>
<length>3</length>
</annotation>
<annotation>
<mention>Desmond Supple</mention>
<wikiName></wikiName>
<offset>432</offset>
<length>14</length>
</annotation>
<annotation>
<mention>I.D.E.A</mention>
<wikiName></wikiName>
<offset>476</offset>
<length>7</length>
</annotation>
<annotation>
<mention>Singapore</mention>
<wikiName>Singapore</wikiName>
<offset>487</offset>
<length>9</length>
</annotation>
<annotation>
<mention>U.S.</mention>
<wikiName>United States</wikiName>
<offset>694</offset>
<length>4</length>
</annotation>
<annotation>
<mention>Singapore</mention>
<wikiName>Singapore</wikiName>
<offset>886</offset>
<length>9</length>
</annotation>
<annotation>
<mention>American</mention>
<wikiName>United States</wikiName>
<offset>911</offset>
<length>8</length>
</annotation>
<annotation>
<mention>then-U.S.</mention>
<wikiName></wikiName>
<offset>944</offset>
<length>9</length>
</annotation>
<annotation>
<mention>Mickey Kantor</mention>
<wikiName>Mickey Kantor</wikiName>
<offset>975</offset>
<length>13</length>
</annotation>
<annotation>
<mention>WTO</mention>
<wikiName>World Trade Organization</wikiName>
<offset>1037</offset>
<length>3</length>
</annotation>
<annotation>
<mention>Geneva</mention>
<wikiName>Geneva</wikiName>
<offset>1094</offset>
<length>6</length>
</annotation>
<annotation>
<mention>Singapore</mention>
<wikiName>Singapore</wikiName>
<offset>1107</offset>
<length>9</length>
</annotation>
<annotation>
<mention>WTO</mention>
<wikiName>World Trade Organization</wikiName>
<offset>1142</offset>
<length>3</length>
</annotation>
<annotation>
<mention>Derek da Cunha</mention>
<wikiName></wikiName>
<offset>1156</offset>
<length>14</length>
</annotation>
<annotation>
<mention>Institute of Policy Studies</mention>
<wikiName>Institute of Policy Studies (Singapore)</wikiName>
<offset>1193</offset>
<length>27</length>
</annotation>
<annotation>
<mention>ISEAS</mention>
<wikiName></wikiName>
<offset>1222</offset>
<length>5</length>
</annotation>
<annotation>
<mention>Singapore</mention>
<wikiName>Singapore</wikiName>
<offset>1235</offset>
<length>9</length>
</annotation>
<annotation>
<mention>Singapore</mention>
<wikiName>Singapore</wikiName>
<offset>1448</offset>
<length>9</length>
</annotation>
<annotation>
<mention>Tan Kong Yam</mention>
<wikiName></wikiName>
<offset>1594</offset>
<length>12</length>
</annotation>
<annotation>
<mention>National University of Singapore</mention>
<wikiName>National University of Singapore</wikiName>
<offset>1639</offset>
<length>32</length>
</annotation>
<annotation>
<mention>WTO</mention>
<wikiName>World Trade Organization</wikiName>
<offset>1746</offset>
<length>3</length>
</annotation>
<annotation>
<mention>Uruguay</mention>
<wikiName>Uruguay</wikiName>
<offset>1780</offset>
<length>7</length>
</annotation>
<annotation>
<mention>General Agreement on Tariffs and Trade</mention>
<wikiName></wikiName>
<offset>1843</offset>
<length>38</length>
</annotation>
<annotation>
<mention>GATT</mention>
<wikiName></wikiName>
<offset>1883</offset>
<length>4</length>
</annotation>
<annotation>
<mention>WTO</mention>
<wikiName>World Trade Organization</wikiName>
<offset>1904</offset>
<length>3</length>
</annotation>
<annotation>
<mention>Singapore</mention>
<wikiName>Singapore</wikiName>
<offset>1915</offset>
<length>9</length>
</annotation>
<annotation>
<mention>European Union</mention>
<wikiName>European Union</wikiName>
<offset>1962</offset>
<length>14</length>
</annotation>
<annotation>
<mention>Singapore</mention>
<wikiName>Singapore</wikiName>
<offset>2012</offset>
<length>9</length>
</annotation>
<annotation>
<mention>Supple</mention>
<wikiName></wikiName>
<offset>2071</offset>
<length>6</length>
</annotation>
<annotation>
<mention>Singapore</mention>
<wikiName>Singapore</wikiName>
<offset>2101</offset>
<length>9</length>
</annotation>
<annotation>
<mention>Supple</mention>
<wikiName></wikiName>
<offset>2388</offset>
<length>6</length>
</annotation>
<annotation>
<mention>Singapore</mention>
<wikiName>Singapore</wikiName>
<offset>2441</offset>
<length>9</length>
</annotation>
<annotation>
<mention>Singapore</mention>
<wikiName>Singapore</wikiName>
<offset>2661</offset>
<length>9</length>
</annotation>
<annotation>
<mention>Tan</mention>
<wikiName></wikiName>
<offset>2691</offset>
<length>3</length>
</annotation>
<annotation>
<mention>Singapore</mention>
<wikiName>Singapore</wikiName>
<offset>2718</offset>
<length>9</length>
</annotation>
<annotation>
<mention>Singaporean</mention>
<wikiName></wikiName>
<offset>2824</offset>
<length>11</length>
</annotation>
<annotation>
<mention>Tan</mention>
<wikiName></wikiName>
<offset>2900</offset>
<length>3</length>
</annotation>
<annotation>
<mention>Singapore</mention>
<wikiName>Singapore</wikiName>
<offset>2998</offset>
<length>9</length>
</annotation>
<annotation>
<mention>Supple</mention>
<wikiName></wikiName>
<offset>3030</offset>
<length>6</length>
</annotation>
<annotation>
<mention>Singapore</mention>
<wikiName>Singapore</wikiName>
<offset>3066</offset>
<length>9</length>
</annotation>
<annotation>
<mention>WTO</mention>
<wikiName>World Trade Organization</wikiName>
<offset>3106</offset>
<length>3</length>
</annotation>
<annotation>
<mention>Singapore</mention>
<wikiName>Singapore</wikiName>
<offset>3294</offset>
<length>9</length>
</annotation>
</document>
<document docName="241406newsML.txt">
<annotation>
<mention>Japan</mention>
<wikiName>Japan</wikiName>
<offset>0</offset>
<length>5</length>
</annotation>
<annotation>
<mention>NTT</mention>
<wikiName></wikiName>
<offset>6</offset>
<length>3</length>
</annotation>
<annotation>
<mention>TOKYO</mention>
<wikiName>Tokyo</wikiName>
<offset>52</offset>
<length>5</length>
</annotation>
<annotation>
<mention>Nippon Telegraph and Telephone Corp</mention>
<wikiName></wikiName>
<offset>70</offset>
<length>35</length>
</annotation>
<annotation>
<mention>NTT</mention>
<wikiName></wikiName>
<offset>107</offset>
<length>3</length>
</annotation>
<annotation>
<mention>NTT</mention>
<wikiName></wikiName>
<offset>265</offset>
<length>3</length>
</annotation>
<annotation>
<mention>Reuters</mention>
<wikiName>Reuters</wikiName>
<offset>411</offset>
<length>7</length>
</annotation>
<annotation>
<mention>NTT</mention>
<wikiName></wikiName>
<offset>542</offset>
<length>3</length>
</annotation>
<annotation>
<mention>Hisao Horinouchi</mention>
<wikiName></wikiName>
<offset>626</offset>
<length>16</length>
</annotation>
<annotation>
<mention>NTT</mention>
<wikiName></wikiName>
<offset>696</offset>
<length>3</length>
</annotation>
<annotation>
<mention>Horinouchi</mention>
<wikiName></wikiName>
<offset>924</offset>
<length>10</length>
</annotation>
<annotation>
<mention>Japan</mention>
<wikiName>Japan</wikiName>
<offset>985</offset>
<length>5</length>
</annotation>
<annotation>
<mention>Japan</mention>
<wikiName>Japan</wikiName>
<offset>1013</offset>
<length>5</length>
</annotation>
<annotation>
<mention>Horinouchi</mention>
<wikiName></wikiName>
<offset>1093</offset>
<length>10</length>
</annotation>
<annotation>
<mention>NTT</mention>
<wikiName></wikiName>
<offset>1115</offset>
<length>3</length>
</annotation>
</document>
<document docName="241435newsML.txt">
<annotation>
<mention>Ahold</mention>
<wikiName>Ahold</wikiName>
<offset>0</offset>
<length>5</length>
</annotation>
<annotation>
<mention>Asian</mention>
<wikiName>Asia</wikiName>
<offset>15</offset>
<length>5</length>
</annotation>
<annotation>
<mention>ZAANDAM</mention>
<wikiName>Zaandam</wikiName>
<offset>44</offset>
<length>7</length>
</annotation>
<annotation>
<mention>Netherlands</mention>
<wikiName>Netherlands</wikiName>
<offset>53</offset>
<length>11</length>
</annotation>
<annotation>
<mention>Dutch</mention>
<wikiName>Netherlands</wikiName>
<offset>77</offset>
<length>5</length>
</annotation>
<annotation>
<mention>Ahold NV</mention>
<wikiName></wikiName>
<offset>102</offset>
<length>8</length>
</annotation>
<annotation>
<mention>Asian</mention>
<wikiName>Asia</wikiName>
<offset>173</offset>
<length>5</length>
</annotation>
<annotation>
<mention>BILO</mention>
<wikiName></wikiName>
<offset>207</offset>
<length>4</length>
</annotation>
<annotation>
<mention>Malaysia</mention>
<wikiName>Malaysia</wikiName>
<offset>236</offset>
<length>8</length>
</annotation>
<annotation>
<mention>BILO</mention>
<wikiName></wikiName>
<offset>253</offset>
<length>4</length>
</annotation>
<annotation>
<mention>Malysia</mention>
<wikiName></wikiName>
<offset>280</offset>
<length>7</length>
</annotation>
<annotation>
<mention>Kuala Lumpur</mention>
<wikiName>Kuala Lumpur</wikiName>
<offset>298</offset>
<length>12</length>
</annotation>
<annotation>
<mention>Johor Bahru</mention>
<wikiName>Johor Bahru</wikiName>
<offset>344</offset>
<length>11</length>
</annotation>
<annotation>
<mention>BILO</mention>
<wikiName></wikiName>
<offset>390</offset>
<length>4</length>
</annotation>
<annotation>
<mention>Ahold</mention>
<wikiName>Ahold</wikiName>
<offset>412</offset>
<length>5</length>
</annotation>
<annotation>
<mention>TOPS</mention>
<wikiName>Tops Friendly Markets</wikiName>
<offset>445</offset>
<length>4</length>
</annotation>
<annotation>
<mention>Asia</mention>
<wikiName>Asia</wikiName>
<offset>472</offset>
<length>4</length>
</annotation>
<annotation>
<mention>Ahold</mention>
<wikiName>Ahold</wikiName>
<offset>513</offset>
<length>5</length>
</annotation>
<annotation>
<mention>TOPS</mention>
<wikiName>Tops Friendly Markets</wikiName>
<offset>574</offset>
<length>4</length>
</annotation>
<annotation>
<mention>BILO</mention>
<wikiName></wikiName>
<offset>583</offset>
<length>4</length>
</annotation>
<annotation>
<mention>Ahold</mention>
<wikiName>Ahold</wikiName>
<offset>620</offset>
<length>5</length>
</annotation>
<annotation>
<mention>Asia</mention>
<wikiName>Asia</wikiName>
<offset>677</offset>
<length>4</length>
</annotation>
<annotation>
<mention>Dutch</mention>
<wikiName>Netherlands</wikiName>
<offset>683</offset>
<length>5</length>
</annotation>
<annotation>
<mention>Ahold</mention>
<wikiName>Ahold</wikiName>
<offset>702</offset>
<length>5</length>
</annotation>
<annotation>
<mention>Europe</mention>
<wikiName>Europe</wikiName>
<offset>733</offset>
<length>6</length>
</annotation>
<annotation>
<mention>U.S.</mention>
<wikiName>United States</wikiName>
<offset>748</offset>
<length>4</length>
</annotation>
<annotation>
<mention>Brazil</mention>
<wikiName>Brazil</wikiName>
<offset>817</offset>
<length>6</length>
</annotation>
<annotation>
<mention>Ahold</mention>
<wikiName>Ahold</wikiName>
<offset>828</offset>
<length>5</length>
</annotation>
<annotation>
<mention>US$</mention>
<wikiName>United States dollar</wikiName>
<offset>872</offset>
<length>3</length>
</annotation>
<annotation>
<mention>Amsterdam</mention>
<wikiName>Amsterdam</wikiName>
<offset>929</offset>
<length>9</length>
</annotation>
</document>
<document docName="241533newsML.txt">
<annotation>
<mention>WORLD CUP</mention>
<wikiName></wikiName>
<offset>22</offset>
<length>9</length>
</annotation>
<annotation>
<mention>VAIL</mention>
<wikiName>Vail, Colorado</wikiName>
<offset>57</offset>
<length>4</length>
</annotation>
<annotation>
<mention>Colorado</mention>
<wikiName>Colorado</wikiName>
<offset>63</offset>
<length>8</length>
</annotation>
<annotation>
<mention>World Cup</mention>
<wikiName>FIS Alpine Ski World Cup</wikiName>
<offset>128</offset>
<length>9</length>
</annotation>
<annotation>
<mention>Svetlana Gladishiva</mention>
<wikiName></wikiName>
<offset>159</offset>
<length>19</length>
</annotation>
<annotation>
<mention>Russia</mention>
<wikiName>Russia</wikiName>
<offset>197</offset>
<length>6</length>
</annotation>
<annotation>
<mention>World Cup</mention>
<wikiName>FIS Alpine Ski World Cup</wikiName>
<offset>214</offset>
<length>9</length>
</annotation>
<annotation>
<mention>Gladishiva</mention>
<wikiName></wikiName>
<offset>254</offset>
<length>10</length>
</annotation>
<annotation>
<mention>Lillehammer</mention>
<wikiName>Lillehammer</wikiName>
<offset>307</offset>
<length>11</length>
</annotation>
<annotation>
<mention>Winter Olympics</mention>
<wikiName>Alpine skiing at the 1994 Winter Olympics</wikiName>
<offset>319</offset>
<length>15</length>
</annotation>
<annotation>
<mention>World Championships</mention>
<wikiName>World championship</wikiName>
<offset>378</offset>
<length>19</length>
</annotation>
</document>
<document docName="241535newsML.txt">
<annotation>
<mention>WORLD CUP</mention>
<wikiName></wikiName>
<offset>22</offset>
<length>9</length>
</annotation>
<annotation>
<mention>VAIL</mention>
<wikiName>Vail, Colorado</wikiName>
<offset>50</offset>
<length>4</length>
</annotation>
<annotation>
<mention>Colorado</mention>
<wikiName>Colorado</wikiName>
<offset>56</offset>
<length>8</length>
</annotation>
<annotation>
<mention>World Cup</mention>
<wikiName></wikiName>
<offset>122</offset>
<length>9</length>
</annotation>
<annotation>
<mention>Svetlana Gladishiva</mention>
<wikiName></wikiName>
<offset>150</offset>
<length>19</length>
</annotation>
<annotation>
<mention>Russia</mention>
<wikiName>Russia</wikiName>
<offset>171</offset>
<length>6</length>
</annotation>
<annotation>
<mention>Pernila Wiberg</mention>
<wikiName></wikiName>
<offset>208</offset>
<length>14</length>
</annotation>
<annotation>
<mention>Sweden</mention>
<wikiName>Sweden</wikiName>
<offset>224</offset>
<length>6</length>
</annotation>
<annotation>
<mention>Carole Montillet</mention>
<wikiName>Carole Montillet</wikiName>
<offset>244</offset>
<length>16</length>
</annotation>
<annotation>
<mention>France</mention>
<wikiName>France</wikiName>
<offset>262</offset>
<length>6</length>
</annotation>
<annotation>
<mention>Hilde Gerg</mention>
<wikiName>Hilde Gerg</wikiName>
<offset>282</offset>
<length>10</length>
</annotation>
<annotation>
<mention>Germany</mention>
<wikiName>Germany</wikiName>
<offset>294</offset>
<length>7</length>
</annotation>
<annotation>
<mention>Isolde Kostner</mention>
<wikiName>Isolde Kostner</wikiName>
<offset>315</offset>
<length>14</length>
</annotation>
<annotation>
<mention>Italy</mention>
<wikiName>Italy</wikiName>
<offset>331</offset>
<length>5</length>
</annotation>
<annotation>
<mention>Warwara Zelenskaja</mention>
<wikiName></wikiName>
<offset>350</offset>
<length>18</length>
</annotation>
<annotation>
<mention>Russia</mention>
<wikiName>Russia</wikiName>
<offset>370</offset>
<length>6</length>
</annotation>
<annotation>
<mention>Madlen Brigger-Summermatter</mention>
<wikiName></wikiName>
<offset>390</offset>
<length>27</length>
</annotation>
<annotation>
<mention>Switzerland</mention>
<wikiName>Switzerland</wikiName>
<offset>419</offset>
<length>11</length>
</annotation>
<annotation>
<mention>Florence Masnada</mention>
<wikiName>Florence Masnada</wikiName>
<offset>444</offset>
<length>16</length>
</annotation>
<annotation>
<mention>France</mention>
<wikiName>France</wikiName>
<offset>462</offset>
<length>6</length>
</annotation>
<annotation>
<mention>Katja Seizinger</mention>
<wikiName>Katja Seizinger</wikiName>
<offset>482</offset>
<length>15</length>
</annotation>
<annotation>
<mention>Germany</mention>
<wikiName>Germany</wikiName>
<offset>499</offset>
<length>7</length>
</annotation>
<annotation>
<mention>Martina Ertl</mention>
<wikiName>Martina Ertl-Renz</wikiName>
<offset>521</offset>
<length>12</length>
</annotation>
<annotation>
<mention>Germany</mention>
<wikiName>Germany</wikiName>
<offset>535</offset>
<length>7</length>
</annotation>
<annotation>
<mention>Stefanie Schuster</mention>
<wikiName></wikiName>
<offset>557</offset>
<length>17</length>
</annotation>
<annotation>
<mention>Austria</mention>
<wikiName>Austria</wikiName>
<offset>576</offset>
<length>7</length>
</annotation>
<annotation>
<mention>Bibiana Perez</mention>
<wikiName></wikiName>
<offset>598</offset>
<length>13</length>
</annotation>
<annotation>
<mention>Italy</mention>
<wikiName>Italy</wikiName>
<offset>613</offset>
<length>5</length>
</annotation>
<annotation>
<mention>Barbara Merlin</mention>
<wikiName></wikiName>
<offset>633</offset>
<length>14</length>
</annotation>
<annotation>
<mention>Italy</mention>
<wikiName>Italy</wikiName>
<offset>649</offset>
<length>5</length>
</annotation>
<annotation>
<mention>Sybille Brauner</mention>
<wikiName></wikiName>
<offset>669</offset>
<length>15</length>
</annotation>
<annotation>
<mention>Germany</mention>
<wikiName>Germany</wikiName>
<offset>686</offset>
<length>7</length>
</annotation>
<annotation>
<mention>Katharina Gutensohn</mention>
<wikiName>Katharina Gutensohn</wikiName>
<offset>708</offset>
<length>19</length>
</annotation>
<annotation>
<mention>Germany</mention>
<wikiName>Germany</wikiName>
<offset>729</offset>
<length>7</length>
</annotation>
<annotation>
<mention>Leatitia Dalloz</mention>
<wikiName></wikiName>
<offset>751</offset>
<length>15</length>
</annotation>
<annotation>
<mention>France</mention>
<wikiName>France</wikiName>
<offset>768</offset>
<length>6</length>
</annotation>
<annotation>
<mention>Renate Goetschl</mention>
<wikiName>Renate Götschl</wikiName>
<offset>789</offset>
<length>15</length>
</annotation>
<annotation>
<mention>Austria</mention>
<wikiName>Austria</wikiName>
<offset>806</offset>
<length>7</length>
</annotation>
<annotation>
<mention>Marianne Brechu</mention>
<wikiName></wikiName>
<offset>828</offset>
<length>15</length>
</annotation>
<annotation>
<mention>France</mention>
<wikiName>France</wikiName>
<offset>845</offset>
<length>6</length>
</annotation>
<annotation>
<mention>Heidi Zurbriggen</mention>
<wikiName>Heidi Zurbriggen</wikiName>
<offset>866</offset>
<length>16</length>
</annotation>
<annotation>
<mention>Switzerland</mention>
<wikiName>Switzerland</wikiName>
<offset>884</offset>
<length>11</length>
</annotation>
<annotation>
<mention>Spela Bracun</mention>
<wikiName></wikiName>
<offset>910</offset>
<length>12</length>
</annotation>
<annotation>
<mention>Slovenia</mention>
<wikiName>Slovenia</wikiName>
<offset>924</offset>
<length>8</length>
</annotation>
<annotation>
<mention>Shannon Nobis</mention>
<wikiName></wikiName>
<offset>947</offset>
<length>13</length>
</annotation>
<annotation>
<mention>U.S.</mention>
<wikiName>United States</wikiName>
<offset>962</offset>
<length>4</length>
</annotation>
<annotation>
<mention>Regine Cavagnoud</mention>
<wikiName>Régine Cavagnoud</wikiName>
<offset>981</offset>
<length>16</length>
</annotation>
<annotation>
<mention>France</mention>
<wikiName>France</wikiName>
<offset>999</offset>
<length>6</length>
</annotation>
<annotation>
<mention>Anita Wachter</mention>
<wikiName>Anita Wachter</wikiName>
<offset>1020</offset>
<length>13</length>
</annotation>
<annotation>
<mention>Austria</mention>
<wikiName>Austria</wikiName>
<offset>1035</offset>
<length>7</length>
</annotation>
<annotation>
<mention>Megan Gerety</mention>
<wikiName></wikiName>
<offset>1057</offset>
<length>12</length>
</annotation>
<annotation>
<mention>U.S.</mention>
<wikiName>United States</wikiName>
<offset>1071</offset>
<length>4</length>
</annotation>
<annotation>
<mention>Hilary Lindh</mention>
<wikiName>Hilary Lindh</wikiName>
<offset>1090</offset>
<length>12</length>
</annotation>
<annotation>
<mention>U.S.</mention>
<wikiName>United States</wikiName>
<offset>1104</offset>
<length>4</length>
</annotation>
<annotation>
<mention>Catherine Borghi</mention>
<wikiName></wikiName>
<offset>1123</offset>
<length>16</length>
</annotation>
<annotation>
<mention>Switzerland</mention>
<wikiName>Switzerland</wikiName>
<offset>1141</offset>
<length>11</length>
</annotation>
<annotation>
<mention>Michaela Dorfmeister</mention>
<wikiName>Michaela Dorfmeister</wikiName>
<offset>1167</offset>
<length>20</length>
</annotation>
<annotation>
<mention>Austria</mention>
<wikiName>Austria</wikiName>
<offset>1189</offset>
<length>7</length>
</annotation>
<annotation>
<mention>Alexandra Meissnitzer</mention>
<wikiName>Alexandra Meissnitzer</wikiName>
<offset>1211</offset>
<length>21</length>
</annotation>
<annotation>
<mention>Austria</mention>
<wikiName>Austria</wikiName>
<offset>1234</offset>
<length>7</length>
</annotation>
<annotation>
<mention>Ingeborg Helen Marken</mention>
<wikiName></wikiName>
<offset>1256</offset>
<length>21</length>
</annotation>
<annotation>
<mention>Norway</mention>
<wikiName>Norway</wikiName>
<offset>1279</offset>
<length>6</length>
</annotation>
<annotation>
<mention>Monika Tschirky</mention>
<wikiName></wikiName>
<offset>1300</offset>
<length>15</length>
</annotation>
<annotation>
<mention>Switzerland</mention>
<wikiName>Switzerland</wikiName>
<offset>1317</offset>
<length>11</length>
</annotation>
</document>
<document docName="241538newsML.txt">
<annotation>
<mention>SKIING-GLADISHIVA</mention>
<wikiName></wikiName>
<offset>7</offset>
<length>17</length>
</annotation>
<annotation>
<mention>WORLD CUP</mention>
<wikiName></wikiName>
<offset>30</offset>
<length>9</length>
</annotation>
<annotation>
<mention>VAIL</mention>
<wikiName>Vail, Colorado</wikiName>
<offset>50</offset>
<length>4</length>
</annotation>
<annotation>
<mention>Colorado</mention>
<wikiName>Colorado</wikiName>
<offset>56</offset>
<length>8</length>
</annotation>
<annotation>
<mention>Svetlana Gladishiva</mention>
<wikiName></wikiName>
<offset>77</offset>
<length>19</length>
</annotation>
<annotation>
<mention>Russia</mention>
<wikiName>Russia</wikiName>
<offset>100</offset>
<length>6</length>
</annotation>
<annotation>
<mention>World Cup</mention>
<wikiName></wikiName>
<offset>123</offset>
<length>9</length>
</annotation>
<annotation>
<mention>Pernilla Wiberg</mention>
<wikiName>Pernilla Wiberg</wikiName>
<offset>162</offset>
<length>15</length>
</annotation>
<annotation>
<mention>Sweden</mention>
<wikiName>Sweden</wikiName>
<offset>181</offset>
<length>6</length>
</annotation>
<annotation>
<mention>Carole Montillet</mention>
<wikiName>Carole Montillet</wikiName>
<offset>208</offset>
<length>16</length>
</annotation>
<annotation>
<mention>France</mention>
<wikiName>France</wikiName>
<offset>228</offset>
<length>6</length>
</annotation>
</document>
<document docName="241540newsML.txt">
<annotation>
<mention>JCPENNEY CLASSIC</mention>
<wikiName>JCPenney Classic</wikiName>
<offset>20</offset>
<length>16</length>
</annotation>
<annotation>
<mention>TARPON SPRINGS</mention>
<wikiName>Tarpon Springs, Florida</wikiName>
<offset>50</offset>
<length>14</length>
</annotation>
<annotation>
<mention>Florida</mention>
<wikiName></wikiName>
<offset>66</offset>
<length>7</length>
</annotation>
<annotation>
<mention>JCPenney Classic</mention>
<wikiName>JCPenney Classic</wikiName>
<offset>157</offset>
<length>16</length>
</annotation>
<annotation>
<mention>Innisbrook Hilton Resort</mention>
<wikiName></wikiName>
<offset>181</offset>
<length>24</length>
</annotation>
<annotation>
<mention>PGA</mention>
<wikiName>PGA Tour</wikiName>
<offset>378</offset>
<length>3</length>
</annotation>
<annotation>
<mention>LPGA</mention>
<wikiName>LPGA Championship</wikiName>
<offset>386</offset>
<length>4</length>
</annotation>
<annotation>
<mention>Pat Hurst</mention>
<wikiName>Pat Hurst</wikiName>
<offset>465</offset>
<length>9</length>
</annotation>
<annotation>
<mention>Scott McCarron</mention>
<wikiName>Scott McCarron</wikiName>
<offset>479</offset>
<length>14</length>
</annotation>
<annotation>
<mention>Donna Andrews</mention>
<wikiName>Donna Andrews (golfer)</wikiName>
<offset>534</offset>
<length>13</length>
</annotation>
<annotation>
<mention>Mike Hulbert</mention>
<wikiName>Mike Hulbert</wikiName>
<offset>552</offset>
<length>12</length>
</annotation>
<annotation>
<mention>U.S.</mention>
<wikiName>United States</wikiName>
<offset>627</offset>
<length>4</length>
</annotation>
<annotation>
<mention>Kelli Kuehne</mention>
<wikiName>Kelli Kuehne</wikiName>
<offset>650</offset>
<length>12</length>
</annotation>
<annotation>
<mention>Tiger Woods</mention>
<wikiName>Tiger Woods</wikiName>
<offset>667</offset>
<length>11</length>
</annotation>
<annotation>
<mention>Beth Daniel</mention>
<wikiName>Beth Daniel</wikiName>
<offset>740</offset>
<length>11</length>
</annotation>
<annotation>
<mention>Davis Love</mention>
<wikiName>Davis Love III</wikiName>
<offset>756</offset>
<length>10</length>
</annotation>
</document>
<document docName="241541newsML.txt">
<annotation>
<mention>VAIL</mention>
<wikiName>Vail, Colorado</wikiName>
<offset>48</offset>
<length>4</length>
</annotation>
<annotation>
<mention>Colorado</mention>
<wikiName>Colorado</wikiName>
<offset>54</offset>
<length>8</length>
</annotation>
<annotation>
<mention>World Cup</mention>
<wikiName></wikiName>
<offset>119</offset>
<length>9</length>
</annotation>
<annotation>
<mention>Renate Goetschl</mention>
<wikiName>Renate Götschl</wikiName>
<offset>151</offset>
<length>15</length>
</annotation>
<annotation>
<mention>Austria</mention>
<wikiName>Austria</wikiName>
<offset>185</offset>
<length>7</length>
</annotation>
<annotation>
<mention>Lillehammer</mention>
<wikiName>Lillehammer</wikiName>
<offset>228</offset>
<length>11</length>
</annotation>
<annotation>
<mention>Norway</mention>
<wikiName>Norway</wikiName>
<offset>240</offset>
<length>6</length>
</annotation>
<annotation>
<mention>Flachau</mention>
<wikiName>Flachau</wikiName>
<offset>263</offset>
<length>7</length>
</annotation>
<annotation>
<mention>Austria</mention>
<wikiName>Austria</wikiName>
<offset>272</offset>
<length>7</length>
</annotation>
<annotation>
<mention>1993 World Cup</mention>
<wikiName></wikiName>
<offset>324</offset>
<length>14</length>
</annotation>
<annotation>
<mention>Europa Cup</mention>
<wikiName></wikiName>
<offset>354</offset>
<length>10</length>
</annotation>
<annotation>
<mention>Goetschl</mention>
<wikiName></wikiName>
<offset>386</offset>
<length>8</length>
</annotation>
<annotation>
<mention>World Cup</mention>
<wikiName>FIS Alpine Ski World Cup</wikiName>
<offset>439</offset>
<length>9</length>
</annotation>
</document>
<document docName="241542newsML.txt">
<annotation>
<mention>WORLD CUP</mention>
<wikiName></wikiName>
<offset>22</offset>
<length>9</length>
</annotation>
<annotation>
<mention>VAIL</mention>
<wikiName>Vail, Colorado</wikiName>
<offset>44</offset>
<length>4</length>
</annotation>
<annotation>
<mention>Colorado</mention>
<wikiName>Colorado</wikiName>
<offset>50</offset>
<length>8</length>
</annotation>
<annotation>
<mention>World Cup</mention>
<wikiName>FIS Alpine Ski World Cup</wikiName>
<offset>79</offset>
<length>9</length>
</annotation>
<annotation>
<mention>Katja Seizinger</mention>
<wikiName>Katja Seizinger</wikiName>
<offset>158</offset>
<length>15</length>
</annotation>
<annotation>
<mention>Germany</mention>
<wikiName>Germany</wikiName>
<offset>175</offset>
<length>7</length>
</annotation>
<annotation>
<mention>Renate Goetschl</mention>
<wikiName>Renate Götschl</wikiName>
<offset>201</offset>
<length>15</length>
</annotation>
<annotation>
<mention>Austria</mention>
<wikiName>Austria</wikiName>
<offset>218</offset>
<length>7</length>
</annotation>
<annotation>
<mention>Carole Montillet</mention>
<wikiName>Carole Montillet</wikiName>
<offset>237</offset>
<length>16</length>
</annotation>
<annotation>
<mention>France</mention>
<wikiName>France</wikiName>
<offset>255</offset>
<length>6</length>
</annotation>
<annotation>
<mention>Pernilla Wiberg</mention>
<wikiName>Pernilla Wiberg</wikiName>
<offset>273</offset>
<length>15</length>
</annotation>
<annotation>
<mention>Sweden</mention>
<wikiName>Sweden</wikiName>
<offset>290</offset>
<length>6</length>
</annotation>
<annotation>
<mention>Heidi Zurbriggen</mention>
<wikiName>Heidi Zurbriggen</wikiName>
<offset>309</offset>
<length>16</length>
</annotation>
<annotation>
<mention>Switzerland</mention>
<wikiName>Switzerland</wikiName>
<offset>327</offset>
<length>11</length>
</annotation>
<annotation>
<mention>Regina Haeusl</mention>
<wikiName></wikiName>
<offset>350</offset>
<length>13</length>
</annotation>
<annotation>
<mention>Germany</mention>
<wikiName>Germany</wikiName>
<offset>365</offset>
<length>7</length>
</annotation>
<annotation>
<mention>Alexandra Meissnitzer</mention>
<wikiName>Alexandra Meissnitzer</wikiName>
<offset>386</offset>
<length>21</length>
</annotation>
<annotation>
<mention>Austria</mention>
<wikiName>Austria</wikiName>
<offset>409</offset>
<length>7</length>
</annotation>
<annotation>
<mention>Isolde Kostner</mention>
<wikiName>Isolde Kostner</wikiName>
<offset>427</offset>
<length>14</length>
</annotation>
<annotation>
<mention>Italy</mention>
<wikiName>Italy</wikiName>
<offset>443</offset>
<length>5</length>
</annotation>
<annotation>
<mention>Ingeborg Helen</mention>
<wikiName></wikiName>
<offset>463</offset>
<length>14</length>
</annotation>
<annotation>
<mention>Norway</mention>
<wikiName>Norway</wikiName>
<offset>487</offset>
<length>6</length>
</annotation>
<annotation>
<mention>Megan Gerety</mention>
<wikiName></wikiName>
<offset>504</offset>
<length>12</length>
</annotation>
<annotation>
<mention>U.S.</mention>
<wikiName>United States</wikiName>
<offset>518</offset>
<length>4</length>
</annotation>
<annotation>
<mention>Warwara Zelenskaja</mention>
<wikiName></wikiName>
<offset>535</offset>
<length>18</length>
</annotation>
<annotation>
<mention>Russia</mention>
<wikiName>Russia</wikiName>
<offset>555</offset>
<length>6</length>
</annotation>
<annotation>
<mention>Florence</mention>
<wikiName>Florence Masnada</wikiName>
<offset>576</offset>
<length>8</length>
</annotation>
<annotation>
<mention>Masnada</mention>
<wikiName>Florence Masnada</wikiName>
<offset>585</offset>
<length>7</length>
</annotation>
<annotation>
<mention>France</mention>
<wikiName>France</wikiName>
<offset>594</offset>
<length>6</length>
</annotation>
<annotation>
<mention>Picabo Street</mention>
<wikiName>Picabo Street</wikiName>
<offset>612</offset>
<length>13</length>
</annotation>
<annotation>
<mention>U.S.</mention>
<wikiName>United States</wikiName>
<offset>627</offset>
<length>4</length>
</annotation>
<annotation>
<mention>Stefanie Schuster</mention>
<wikiName></wikiName>
<offset>643</offset>
<length>17</length>
</annotation>
<annotation>
<mention>Austria</mention>
<wikiName>Austria</wikiName>
<offset>662</offset>
<length>7</length>
</annotation>
<annotation>
<mention>Miriam Vogt</mention>
<wikiName>Miriam Vogt</wikiName>
<offset>684</offset>
<length>11</length>
</annotation>
<annotation>
<mention>Germany</mention>
<wikiName>Germany</wikiName>
<offset>697</offset>
<length>7</length>
</annotation>
<annotation>
<mention>Bibiana Perez</mention>
<wikiName></wikiName>
<offset>720</offset>
<length>13</length>
</annotation>
<annotation>
<mention>Italy</mention>
<wikiName>Italy</wikiName>
<offset>735</offset>
<length>5</length>
</annotation>
<annotation>
<mention>Hilde Gerg</mention>
<wikiName>Hilde Gerg</wikiName>
<offset>756</offset>
<length>10</length>
</annotation>
<annotation>
<mention>Germany</mention>
<wikiName>Germany</wikiName>
<offset>768</offset>
<length>7</length>
</annotation>
<annotation>
<mention>Barbara Merlin</mention>
<wikiName></wikiName>
<offset>787</offset>
<length>14</length>
</annotation>
<annotation>
<mention>Germany</mention>
<wikiName>Germany</wikiName>
<offset>803</offset>
<length>7</length>
</annotation>
<annotation>
<mention>Kate Pace Lindsay</mention>
<wikiName>Kate Pace</wikiName>
<offset>823</offset>
<length>17</length>
</annotation>
<annotation>
<mention>Canada</mention>
<wikiName>Canada</wikiName>
<offset>842</offset>
<length>6</length>
</annotation>
<annotation>
<mention>Svetlana Gladishiva</mention>
<wikiName></wikiName>
<offset>859</offset>
<length>19</length>
</annotation>
<annotation>
<mention>Russia</mention>
<wikiName>Russia</wikiName>
<offset>880</offset>
<length>6</length>
</annotation>
<annotation>
<mention>Regine Cavagnoud</mention>
<wikiName>Régine Cavagnoud</wikiName>
<offset>900</offset>
<length>16</length>
</annotation>
<annotation>
<mention>France</mention>
<wikiName>France</wikiName>
<offset>918</offset>
<length>6</length>
</annotation>
<annotation>
<mention>World Cup</mention>
<wikiName>FIS Alpine Ski World Cup</wikiName>
<offset>947</offset>
<length>9</length>
</annotation>
<annotation>
<mention>Katja Seizinger</mention>
<wikiName>Katja Seizinger</wikiName>
<offset>1027</offset>
<length>15</length>
</annotation>
<annotation>
<mention>Germany</mention>
<wikiName>Germany</wikiName>
<offset>1044</offset>
<length>7</length>
</annotation>
<annotation>
<mention>Pernilla Wiberg</mention>
<wikiName>Pernilla Wiberg</wikiName>
<offset>1070</offset>
<length>15</length>
</annotation>
<annotation>
<mention>Sweden</mention>
<wikiName>Sweden</wikiName>
<offset>1087</offset>
<length>6</length>
</annotation>
<annotation>
<mention>Hide Gerg</mention>
<wikiName></wikiName>
<offset>1106</offset>
<length>9</length>
</annotation>
<annotation>
<mention>Germany</mention>
<wikiName>Germany</wikiName>
<offset>1117</offset>
<length>7</length>
</annotation>
<annotation>
<mention>Anita Wachter</mention>
<wikiName>Anita Wachter</wikiName>
<offset>1137</offset>
<length>13</length>
</annotation>
<annotation>
<mention>Austria</mention>
<wikiName>Austria</wikiName>
<offset>1152</offset>
<length>7</length>
</annotation>
<annotation>
<mention>Isolde Kostner</mention>
<wikiName>Isolde Kostner</wikiName>
<offset>1173</offset>
<length>14</length>
</annotation>
<annotation>
<mention>Italy</mention>
<wikiName>Italy</wikiName>
<offset>1189</offset>
<length>5</length>
</annotation>
<annotation>
<mention>Heidi Zurbriggen</mention>
<wikiName>Heidi Zurbriggen</wikiName>
<offset>1209</offset>
<length>16</length>
</annotation>
<annotation>
<mention>Switzerland</mention>
<wikiName>Switzerland</wikiName>
<offset>1227</offset>
<length>11</length>
</annotation>
<annotation>
<mention>Warwara Zelenskaja</mention>
<wikiName></wikiName>
<offset>1250</offset>
<length>18</length>
</annotation>
<annotation>
<mention>Russia</mention>
<wikiName>Russia</wikiName>
<offset>1270</offset>
<length>6</length>
</annotation>
<annotation>
<mention>Renate Goetschl</mention>
<wikiName>Renate Götschl</wikiName>
<offset>1291</offset>
<length>15</length>
</annotation>
<annotation>
<mention>Austria</mention>
<wikiName>Austria</wikiName>
<offset>1308</offset>
<length>7</length>
</annotation>
<annotation>
<mention>Carole Montillet</mention>
<wikiName>Carole Montillet</wikiName>
<offset>1327</offset>
<length>16</length>
</annotation>
<annotation>
<mention>France</mention>
<wikiName>France</wikiName>
<offset>1345</offset>
<length>6</length>
</annotation>
<annotation>
<mention>Svetlana Gladishiva</mention>
<wikiName></wikiName>
<offset>1363</offset>
<length>19</length>
</annotation>
<annotation>
<mention>Russia</mention>
<wikiName>Russia</wikiName>
<offset>1384</offset>
<length>6</length>
</annotation>
<annotation>
<mention>Florence</mention>
<wikiName>Florence Masnada</wikiName>
<offset>1404</offset>
<length>8</length>
</annotation>
<annotation>
<mention>Masnada</mention>
<wikiName>Florence Masnada</wikiName>
<offset>1413</offset>
<length>7</length>
</annotation>
<annotation>
<mention>France</mention>
<wikiName>France</wikiName>
<offset>1422</offset>
<length>6</length>
</annotation>
<annotation>
<mention>Deborah Compagnoni</mention>
<wikiName>Deborah Compagnoni</wikiName>
<offset>1440</offset>
<length>18</length>
</annotation>
<annotation>
<mention>Italy</mention>
<wikiName>Italy</wikiName>
<offset>1460</offset>
<length>5</length>
</annotation>
<annotation>
<mention>Martina Ertl</mention>
<wikiName>Martina Ertl-Renz</wikiName>
<offset>1481</offset>
<length>12</length>
</annotation>
<annotation>
<mention>Germany</mention>
<wikiName>Germany</wikiName>
<offset>1495</offset>
<length>7</length>
</annotation>
<annotation>
<mention>Alexandra Meissnitzer</mention>
<wikiName>Alexandra Meissnitzer</wikiName>
<offset>1517</offset>
<length>21</length>
</annotation>
<annotation>
<mention>Urska Horvat</mention>
<wikiName></wikiName>
<offset>1558</offset>
<length>12</length>
</annotation>
<annotation>
<mention>Slovenia</mention>
<wikiName>Slovenia</wikiName>
<offset>1572</offset>
<length>8</length>
</annotation>
<annotation>
<mention>Claudia Riegler</mention>
<wikiName></wikiName>
<offset>1594</offset>
<length>15</length>
</annotation>
<annotation>
<mention>New Zealand</mention>
<wikiName>New Zealand</wikiName>
<offset>1611</offset>
<length>11</length>
</annotation>
<annotation>
<mention>Sabina Panzanini</mention>
<wikiName>Sabina Panzanini</wikiName>
<offset>1635</offset>
<length>16</length>
</annotation>
<annotation>
<mention>Italy</mention>
<wikiName>Italy</wikiName>
<offset>1653</offset>
<length>5</length>
</annotation>
<annotation>
<mention>Barbara Merlin</mention>
<wikiName></wikiName>
<offset>1671</offset>
<length>14</length>
</annotation>
<annotation>
<mention>Italy</mention>
<wikiName>Italy</wikiName>
<offset>1687</offset>
<length>5</length>
</annotation>
<annotation>
<mention>Stefanie Schuster</mention>
<wikiName></wikiName>
<offset>1707</offset>
<length>17</length>
</annotation>
<annotation>
<mention>Austria</mention>
<wikiName>Austria</wikiName>
<offset>1726</offset>
<length>7</length>
</annotation>
<annotation>
<mention>Miriam Vogt</mention>
<wikiName>Miriam Vogt</wikiName>
<offset>1748</offset>
<length>11</length>
</annotation>
<annotation>
<mention>Germany</mention>
<wikiName>Germany</wikiName>
<offset>1761</offset>
<length>7</length>
</annotation>
<annotation>
<mention>Super G</mention>
<wikiName></wikiName>
<offset>1779</offset>
<length>7</length>
</annotation>
<annotation>
<mention>Pernilla Wiberg</mention>
<wikiName>Pernilla Wiberg</wikiName>
<offset>1804</offset>
<length>15</length>
</annotation>
<annotation>
<mention>Sweden</mention>
<wikiName>Sweden</wikiName>
<offset>1821</offset>
<length>6</length>
</annotation>
<annotation>
<mention>Hilde Gerg</mention>
<wikiName>Hilde Gerg</wikiName>
<offset>1840</offset>
<length>10</length>
</annotation>
<annotation>
<mention>Germany</mention>
<wikiName>Germany</wikiName>
<offset>1852</offset>
<length>7</length>
</annotation>
<annotation>
<mention>Svetland Gladishiva</mention>
<wikiName></wikiName>
<offset>1876</offset>
<length>19</length>
</annotation>
<annotation>
<mention>Russia</mention>
<wikiName>Russia</wikiName>
<offset>1897</offset>
<length>6</length>
</annotation>
<annotation>
<mention>Warwara Zelenskaja</mention>
<wikiName></wikiName>
<offset>1917</offset>
<length>18</length>
</annotation>
<annotation>
<mention>Russia</mention>
<wikiName>Russia</wikiName>
<offset>1937</offset>
<length>6</length>
</annotation>
<annotation>
<mention>Florence Masnada</mention>
<wikiName>Florence Masnada</wikiName>
<offset>1958</offset>
<length>16</length>
</annotation>
<annotation>
<mention>France</mention>
<wikiName>France</wikiName>
<offset>1976</offset>
<length>6</length>
</annotation>
<annotation>
<mention>Katja Seizinger</mention>
<wikiName>Katja Seizinger</wikiName>
<offset>1994</offset>
<length>15</length>
</annotation>
<annotation>
<mention>Germany</mention>
<wikiName>Germany</wikiName>
<offset>2011</offset>
<length>7</length>
</annotation>
<annotation>
<mention>Isolde Kostner</mention>
<wikiName>Isolde Kostner</wikiName>
<offset>2030</offset>
<length>14</length>
</annotation>
<annotation>
<mention>Italy</mention>
<wikiName>Italy</wikiName>
<offset>2046</offset>
<length>5</length>
</annotation>
<annotation>
<mention>Carole Montillet</mention>
<wikiName>Carole Montillet</wikiName>
<offset>2066</offset>
<length>16</length>
</annotation>
<annotation>
<mention>France</mention>
<wikiName>France</wikiName>
<offset>2084</offset>
<length>6</length>
</annotation>
<annotation>
<mention>Martina Ertl</mention>
<wikiName>Martina Ertl-Renz</wikiName>
<offset>2102</offset>
<length>12</length>
</annotation>
<annotation>
<mention>Germany</mention>
<wikiName>Germany</wikiName>
<offset>2116</offset>
<length>7</length>
</annotation>
<annotation>
<mention>Anita Wachter</mention>
<wikiName>Anita Wachter</wikiName>
<offset>2138</offset>
<length>13</length>
</annotation>
<annotation>
<mention>Austria</mention>
<wikiName>Austria</wikiName>
<offset>2153</offset>
<length>7</length>
</annotation>
<annotation>
<mention>Heidi Zurbriggen</mention>
<wikiName>Heidi Zurbriggen</wikiName>
<offset>2174</offset>
<length>16</length>
</annotation>
<annotation>
<mention>Switzerland</mention>
<wikiName>Switzerland</wikiName>
<offset>2192</offset>
<length>11</length>
</annotation>
<annotation>
<mention>Madlen Brigger-Summermatter</mention>
<wikiName></wikiName>
<offset>2215</offset>
<length>27</length>
</annotation>
<annotation>
<mention>Switzerland</mention>
<wikiName>Switzerland</wikiName>
<offset>2244</offset>
<length>11</length>
</annotation>
<annotation>
<mention>Barbara Merlin</mention>
<wikiName></wikiName>
<offset>2266</offset>
<length>14</length>
</annotation>
<annotation>
<mention>Italy</mention>
<wikiName>Italy</wikiName>
<offset>2282</offset>
<length>5</length>
</annotation>
<annotation>
<mention>Katharina Gutensohn</mention>
<wikiName>Katharina Gutensohn</wikiName>
<offset>2302</offset>
<length>19</length>
</annotation>
<annotation>
<mention>Germany</mention>
<wikiName>Germany</wikiName>
<offset>2323</offset>
<length>7</length>
</annotation>
<annotation>
<mention>Stefanie Schuster</mention>
<wikiName></wikiName>
<offset>2343</offset>
<length>17</length>
</annotation>
<annotation>
<mention>Austria</mention>
<wikiName>Austria</wikiName>
<offset>2362</offset>
<length>7</length>
</annotation>
<annotation>
<mention>Leatitia Dalloz</mention>
<wikiName></wikiName>
<offset>2384</offset>
<length>15</length>
</annotation>
<annotation>
<mention>France</mention>
<wikiName>France</wikiName>
<offset>2401</offset>
<length>6</length>
</annotation>
<annotation>
<mention>Bibiana Perez</mention>
<wikiName></wikiName>
<offset>2420</offset>
<length>13</length>
</annotation>
<annotation>
<mention>Italy</mention>
<wikiName>Italy</wikiName>
<offset>2435</offset>
<length>5</length>
</annotation>
<annotation>
<mention>Miriam Vogt</mention>
<wikiName>Miriam Vogt</wikiName>
<offset>2456</offset>
<length>11</length>
</annotation>
<annotation>
<mention>Germany</mention>
<wikiName>Germany</wikiName>
<offset>2469</offset>
<length>7</length>
</annotation>
<annotation>
<mention>Marianne Brechu</mention>
<wikiName></wikiName>
<offset>2492</offset>
<length>15</length>
</annotation>
<annotation>
<mention>France</mention>
<wikiName>France</wikiName>
<offset>2509</offset>
<length>6</length>
</annotation>
<annotation>
<mention>Alexandra Meissnitzer</mention>
<wikiName>Alexandra Meissnitzer</wikiName>
<offset>2528</offset>
<length>21</length>
</annotation>
<annotation>
<mention>Austria</mention>
<wikiName>Austria</wikiName>
<offset>2551</offset>
<length>7</length>
</annotation>
<annotation>
<mention>Nation's Cup</mention>
<wikiName></wikiName>
<offset>2564</offset>
<length>12</length>
</annotation>
<annotation>
<mention>Austria</mention>
<wikiName>Austria</wikiName>
<offset>2594</offset>
<length>7</length>
</annotation>
<annotation>
<mention>Germany</mention>
<wikiName>Germany</wikiName>
<offset>2627</offset>
<length>7</length>
</annotation>
<annotation>
<mention>Switzerland</mention>
<wikiName>Switzerland</wikiName>
<offset>2653</offset>
<length>11</length>
</annotation>
<annotation>
<mention>Italy</mention>
<wikiName>Italy</wikiName>
<offset>2679</offset>
<length>5</length>
</annotation>
<annotation>
<mention>France</mention>
<wikiName>France</wikiName>
<offset>2700</offset>
<length>6</length>
</annotation>
<annotation>
<mention>Norway</mention>
<wikiName>Norway</wikiName>
<offset>2721</offset>
<length>6</length>
</annotation>
<annotation>
<mention>Sweden</mention>
<wikiName>Sweden</wikiName>
<offset>2742</offset>
<length>6</length>
</annotation>
<annotation>
<mention>Slovenia</mention>
<wikiName>Slovenia</wikiName>
<offset>2763</offset>
<length>8</length>
</annotation>
<annotation>
<mention>Russia</mention>
<wikiName>Russia</wikiName>
<offset>2784</offset>
<length>6</length>
</annotation>
<annotation>
<mention>United States</mention>
<wikiName>United States</wikiName>
<offset>2805</offset>
<length>13</length>
</annotation>
</document>
<document docName="241546newsML.txt">
<annotation>
<mention>WORLD CUP</mention>
<wikiName></wikiName>
<offset>22</offset>
<length>9</length>
</annotation>
<annotation>
<mention>VAIL</mention>
<wikiName>Vail, Colorado</wikiName>
<offset>51</offset>
<length>4</length>
</annotation>
<annotation>
<mention>Colorado</mention>
<wikiName>Colorado</wikiName>
<offset>57</offset>
<length>8</length>
</annotation>
<annotation>
<mention>World Cup</mention>
<wikiName></wikiName>
<offset>123</offset>
<length>9</length>
</annotation>
<annotation>
<mention>Renate Goetschl</mention>
<wikiName>Renate Götschl</wikiName>
<offset>152</offset>
<length>15</length>
</annotation>
<annotation>
<mention>Austria</mention>
<wikiName>Austria</wikiName>
<offset>169</offset>
<length>7</length>
</annotation>
<annotation>
<mention>Katja Seizinger</mention>
<wikiName>Katja Seizinger</wikiName>
<offset>207</offset>
<length>15</length>
</annotation>
<annotation>
<mention>Germany</mention>
<wikiName>Germany</wikiName>
<offset>224</offset>
<length>7</length>
</annotation>
<annotation>
<mention>Isolde Kostner</mention>
<wikiName>Isolde Kostner</wikiName>
<offset>245</offset>
<length>14</length>
</annotation>
<annotation>
<mention>Italy</mention>
<wikiName>Italy</wikiName>
<offset>261</offset>
<length>5</length>
</annotation>
<annotation>
<mention>Alexandra Meissnitzer</mention>
<wikiName>Alexandra Meissnitzer</wikiName>
<offset>280</offset>
<length>21</length>
</annotation>
<annotation>
<mention>Austria</mention>
<wikiName>Austria</wikiName>
<offset>303</offset>
<length>7</length>
</annotation>
<annotation>
<mention>Megan Gerety</mention>
<wikiName></wikiName>
<offset>324</offset>
<length>12</length>
</annotation>
<annotation>
<mention>U.S.</mention>
<wikiName>United States</wikiName>
<offset>338</offset>
<length>4</length>
</annotation>
<annotation>
<mention>Miriam Vogt</mention>
<wikiName>Miriam Vogt</wikiName>
<offset>356</offset>
<length>11</length>
</annotation>
<annotation>
<mention>Germany</mention>
<wikiName>Germany</wikiName>
<offset>369</offset>
<length>7</length>
</annotation>
<annotation>
<mention>Stefanie Schuster</mention>
<wikiName></wikiName>
<offset>390</offset>
<length>17</length>
</annotation>
<annotation>
<mention>Austria</mention>
<wikiName>Austria</wikiName>
<offset>409</offset>
<length>7</length>
</annotation>
<annotation>
<mention>Ingeborg Helen Marken</mention>
<wikiName></wikiName>
<offset>430</offset>
<length>21</length>
</annotation>
<annotation>
<mention>Norway</mention>
<wikiName>Norway</wikiName>
<offset>453</offset>
<length>6</length>
</annotation>
<annotation>
<mention>Florence Masnada</mention>
<wikiName>Florence Masnada</wikiName>
<offset>473</offset>
<length>16</length>
</annotation>
<annotation>
<mention>France</mention>
<wikiName>France</wikiName>
<offset>491</offset>
<length>6</length>
</annotation>
<annotation>
<mention>Regina Haeusl</mention>
<wikiName></wikiName>
<offset>512</offset>
<length>13</length>
</annotation>
<annotation>
<mention>Germany</mention>
<wikiName>Germany</wikiName>
<offset>527</offset>
<length>7</length>
</annotation>
<annotation>
<mention>Heidi Zurbriggen</mention>
<wikiName>Heidi Zurbriggen</wikiName>
<offset>549</offset>
<length>16</length>
</annotation>
<annotation>
<mention>Switzerland</mention>
<wikiName>Switzerland</wikiName>
<offset>567</offset>
<length>11</length>
</annotation>
<annotation>
<mention>Warwara Zelenskaja</mention>
<wikiName></wikiName>
<offset>593</offset>
<length>18</length>
</annotation>
<annotation>
<mention>Russia</mention>
<wikiName>Russia</wikiName>
<offset>613</offset>
<length>6</length>
</annotation>
<annotation>
<mention>Barbara Merlin</mention>
<wikiName></wikiName>
<offset>634</offset>
<length>14</length>
</annotation>
<annotation>
<mention>Italy</mention>
<wikiName>Italy</wikiName>
<offset>650</offset>
<length>5</length>
</annotation>
<annotation>
<mention>Hilde Gerg</mention>
<wikiName>Hilde Gerg</wikiName>
<offset>670</offset>
<length>10</length>
</annotation>
<annotation>
<mention>Germany</mention>
<wikiName>Germany</wikiName>
<offset>682</offset>
<length>7</length>
</annotation>
<annotation>
<mention>Martina Ertl</mention>
<wikiName>Martina Ertl-Renz</wikiName>
<offset>704</offset>
<length>12</length>
</annotation>
<annotation>
<mention>Germany</mention>
<wikiName>Germany</wikiName>
<offset>718</offset>
<length>7</length>
</annotation>
<annotation>
<mention>Pernilla Wiberg</mention>
<wikiName>Pernilla Wiberg</wikiName>
<offset>740</offset>
<length>15</length>
</annotation>
<annotation>
<mention>Sweden</mention>
<wikiName>Sweden</wikiName>
<offset>757</offset>
<length>6</length>
</annotation>
<annotation>
<mention>Svetlana Gladishiva</mention>
<wikiName></wikiName>
<offset>778</offset>
<length>19</length>
</annotation>
<annotation>
<mention>Russia</mention>
<wikiName>Russia</wikiName>
<offset>799</offset>
<length>6</length>
</annotation>
<annotation>
<mention>Anita Wachter</mention>
<wikiName>Anita Wachter</wikiName>
<offset>820</offset>
<length>13</length>
</annotation>
<annotation>
<mention>Austria</mention>
<wikiName>Austria</wikiName>
<offset>835</offset>
<length>7</length>
</annotation>
<annotation>
<mention>Spela Bracun</mention>
<wikiName></wikiName>
<offset>857</offset>
<length>12</length>
</annotation>
<annotation>
<mention>Slovenia</mention>
<wikiName>Slovenia</wikiName>
<offset>871</offset>
<length>8</length>
</annotation>
<annotation>
<mention>Regine Cavagnoud</mention>
<wikiName>Régine Cavagnoud</wikiName>
<offset>894</offset>
<length>16</length>
</annotation>
<annotation>
<mention>France</mention>
<wikiName>France</wikiName>
<offset>912</offset>
<length>6</length>
</annotation>
<annotation>
<mention>Kate Pace Lindsay</mention>
<wikiName>Kate Pace</wikiName>
<offset>933</offset>
<length>17</length>
</annotation>
<annotation>
<mention>Canada</mention>
<wikiName>Canada</wikiName>
<offset>952</offset>
<length>6</length>
</annotation>
<annotation>
<mention>Bibiana Perez</mention>
<wikiName></wikiName>
<offset>973</offset>
<length>13</length>
</annotation>
<annotation>
<mention>Italy</mention>
<wikiName>Italy</wikiName>
<offset>988</offset>
<length>5</length>
</annotation>
<annotation>
<mention>Hilary Lindh</mention>
<wikiName>Hilary Lindh</wikiName>
<offset>1008</offset>
<length>12</length>
</annotation>
<annotation>
<mention>United States</mention>
<wikiName>United States</wikiName>
<offset>1022</offset>
<length>13</length>
</annotation>
<annotation>
<mention>Catherine Borghi</mention>
<wikiName></wikiName>
<offset>1050</offset>
<length>16</length>
</annotation>
<annotation>
<mention>Switzerland</mention>
<wikiName>Switzerland</wikiName>
<offset>1068</offset>
<length>11</length>
</annotation>
<annotation>
<mention>Carole Montillet</mention>
<wikiName>Carole Montillet</wikiName>
<offset>1094</offset>
<length>16</length>
</annotation>
<annotation>
<mention>France</mention>
<wikiName>France</wikiName>
<offset>1112</offset>
<length>6</length>
</annotation>
<annotation>
<mention>Brigitte Obermoser</mention>
<wikiName></wikiName>
<offset>1133</offset>
<length>18</length>
</annotation>
<annotation>
<mention>Austria</mention>
<wikiName>Austria</wikiName>
<offset>1153</offset>
<length>7</length>
</annotation>
<annotation>
<mention>Sybille Brauner</mention>
<wikiName></wikiName>
<offset>1175</offset>
<length>15</length>
</annotation>
<annotation>
<mention>Grete Stroem</mention>
<wikiName></wikiName>
<offset>1213</offset>
<length>12</length>
</annotation>
<annotation>
<mention>Norway</mention>
<wikiName>Norway</wikiName>
<offset>1227</offset>
<length>6</length>
</annotation>
<annotation>
<mention>Patrizia Bassis</mention>
<wikiName></wikiName>
<offset>1248</offset>
<length>15</length>
</annotation>
<annotation>
<mention>Italy</mention>
<wikiName>Italy</wikiName>
<offset>1265</offset>
<length>5</length>
</annotation>
<annotation>
<mention>Alessandra Merlin</mention>
<wikiName></wikiName>
<offset>1285</offset>
<length>17</length>
</annotation>
<annotation>
<mention>Italy</mention>
<wikiName>Italy</wikiName>
<offset>1304</offset>
<length>5</length>
</annotation>
</document>
<document docName="241548newsML.txt">
<annotation>
<mention>SKIING-WORLD CUP</mention>
<wikiName></wikiName>
<offset>7</offset>
<length>16</length>
</annotation>
<annotation>
<mention>OESTERSUND</mention>
<wikiName>Östersund</wikiName>
<offset>43</offset>
<length>10</length>
</annotation>
<annotation>
<mention>Sweden</mention>
<wikiName>Sweden</wikiName>
<offset>55</offset>
<length>6</length>
</annotation>
<annotation>
<mention>World Cup</mention>
<wikiName>Biathlon World Cup</wikiName>
<offset>97</offset>
<length>9</length>
</annotation>
<annotation>
<mention>Vadim Sashurin</mention>
<wikiName>Vadim Sashurin</wikiName>
<offset>141</offset>
<length>14</length>
</annotation>
<annotation>
<mention>Belarus</mention>
<wikiName>Belarus</wikiName>
<offset>157</offset>
<length>7</length>
</annotation>
<annotation>
<mention>Frode Andresen</mention>
<wikiName>Frode Andresen</wikiName>
<offset>215</offset>
<length>14</length>
</annotation>
<annotation>
<mention>Norway</mention>
<wikiName>Norway</wikiName>
<offset>231</offset>
<length>6</length>
</annotation>
<annotation>
<mention>Ole Einar Bjorndalen</mention>
<wikiName>Ole Einar Bjørndalen</wikiName>
<offset>255</offset>
<length>20</length>
</annotation>
<annotation>
<mention>Norway</mention>
<wikiName>Norway</wikiName>
<offset>277</offset>
<length>6</length>
</annotation>
<annotation>
<mention>Sven Fischer</mention>
<wikiName>Sven Fischer</wikiName>
<offset>301</offset>
<length>12</length>
</annotation>
<annotation>
<mention>Germany</mention>
<wikiName>Germany</wikiName>
<offset>315</offset>
<length>7</length>
</annotation>
<annotation>
<mention>Ricco Gross</mention>
<wikiName>Ricco Groß</wikiName>
<offset>340</offset>
<length>11</length>
</annotation>
<annotation>
<mention>Germany</mention>
<wikiName>Germany</wikiName>
<offset>353</offset>
<length>7</length>
</annotation>
<annotation>
<mention>World Cup</mention>
<wikiName>Biathlon World Cup</wikiName>
<offset>375</offset>
<length>9</length>
</annotation>
<annotation>
<mention>Fischer</mention>
<wikiName>Sven Fischer</wikiName>
<offset>399</offset>
<length>7</length>
</annotation>
<annotation>
<mention>Germany</mention>
<wikiName>Germany</wikiName>
<offset>408</offset>
<length>7</length>
</annotation>
<annotation>
<mention>Pavel Muslimov</mention>
<wikiName>Pavel Muslimov</wikiName>
<offset>431</offset>
<length>14</length>
</annotation>
<annotation>
<mention>Russia</mention>
<wikiName>Russia</wikiName>
<offset>447</offset>
<length>6</length>
</annotation>
<annotation>
<mention>Sashurin</mention>
<wikiName>Vadim Sashurin</wikiName>
<offset>462</offset>
<length>8</length>
</annotation>
<annotation>
<mention>Olga Melnik</mention>
<wikiName>Olga Melnik</wikiName>
<offset>496</offset>
<length>11</length>
</annotation>
<annotation>
<mention>Russia</mention>
<wikiName>Russia</wikiName>
<offset>509</offset>
<length>6</length>
</annotation>
<annotation>
<mention>Svetlana Paramygina</mention>
<wikiName>Svetlana Paramygina</wikiName>
<offset>533</offset>
<length>19</length>
</annotation>
<annotation>
<mention>Belorus</mention>
<wikiName>Belarus</wikiName>
<offset>554</offset>
<length>7</length>
</annotation>
<annotation>
<mention>Gunn Margit Andreassen</mention>
<wikiName>Gunn Margit Andreassen</wikiName>
<offset>579</offset>
<length>22</length>
</annotation>
<annotation>
<mention>Norway</mention>
<wikiName>Norway</wikiName>
<offset>603</offset>
<length>6</length>
</annotation>
<annotation>
<mention>Simone Greiner-Petter-Memm</mention>
<wikiName>Simone Greiner-Petter-Memm</wikiName>
<offset>627</offset>
<length>26</length>
</annotation>
<annotation>
<mention>Germany</mention>
<wikiName>Germany</wikiName>
<offset>655</offset>
<length>7</length>
</annotation>
<annotation>
<mention>Petra Behle</mention>
<wikiName>Petra Behle</wikiName>
<offset>680</offset>
<length>11</length>
</annotation>
<annotation>
<mention>Germany</mention>
<wikiName>Germany</wikiName>
<offset>693</offset>
<length>7</length>
</annotation>
<annotation>
<mention>World Cup</mention>
<wikiName>Biathlon World Cup</wikiName>
<offset>715</offset>
<length>9</length>
</annotation>
<annotation>
<mention>Behle</mention>
<wikiName>Petra Behle</wikiName>
<offset>739</offset>
<length>5</length>
</annotation>
<annotation>
<mention>Paramygina</mention>
<wikiName>Svetlana Paramygina</wikiName>
<offset>752</offset>
<length>10</length>
</annotation>
<annotation>
<mention>Greiner-Petter-Memm</mention>
<wikiName>Simone Greiner-Petter-Memm</wikiName>
<offset>770</offset>
<length>19</length>
</annotation>
</document>
<document docName="241550newsML.txt">
<annotation>
<mention>WORLD CUP</mention>
<wikiName></wikiName>
<offset>27</offset>
<length>9</length>
</annotation>
<annotation>
<mention>VAIL</mention>
<wikiName>Vail, Colorado</wikiName>
<offset>48</offset>
<length>4</length>
</annotation>
<annotation>
<mention>Colorado</mention>
<wikiName>Colorado</wikiName>
<offset>54</offset>
<length>8</length>
</annotation>
<annotation>
<mention>Renate Goetschl</mention>
<wikiName>Renate Götschl</wikiName>
<offset>75</offset>
<length>15</length>
</annotation>
<annotation>
<mention>Austria</mention>
<wikiName>Austria</wikiName>
<offset>94</offset>
<length>7</length>
</annotation>
<annotation>
<mention>World Cup</mention>
<wikiName>FIS Alpine Ski World Cup</wikiName>
<offset>118</offset>
<length>9</length>
</annotation>
<annotation>
<mention>Katja Seizinger</mention>
<wikiName>Katja Seizinger</wikiName>
<offset>190</offset>
<length>15</length>
</annotation>
<annotation>
<mention>Germany</mention>
<wikiName>Germany</wikiName>
<offset>209</offset>
<length>7</length>
</annotation>
<annotation>
<mention>Islode Kostner</mention>
<wikiName></wikiName>
<offset>237</offset>
<length>14</length>
</annotation>
<annotation>
<mention>Italy</mention>
<wikiName>Italy</wikiName>
<offset>255</offset>
<length>5</length>
</annotation>
</document>
<document docName="241551newsML.txt">
<annotation>
<mention>BOBSLEIGH-SHIMER</mention>
<wikiName></wikiName>
<offset>0</offset>
<length>16</length>
</annotation>
<annotation>
<mention>USA III</mention>
<wikiName></wikiName>
<offset>24</offset>
<length>7</length>
</annotation>
<annotation>
<mention>IGLS</mention>
<wikiName></wikiName>
<offset>50</offset>
<length>4</length>
</annotation>
<annotation>
<mention>Austria</mention>
<wikiName>Austria</wikiName>
<offset>56</offset>
<length>7</length>
</annotation>
<annotation>
<mention>Brian Shimer</mention>
<wikiName>Brian Shimer</wikiName>
<offset>76</offset>
<length>12</length>
</annotation>
<annotation>
<mention>USA III</mention>
<wikiName></wikiName>
<offset>97</offset>
<length>7</length>
</annotation>
<annotation>
<mention>World Cup</mention>
<wikiName></wikiName>
<offset>132</offset>
<length>9</length>
</annotation>
<annotation>
<mention>Shimer</mention>
<wikiName>Brian Shimer</wikiName>
<offset>212</offset>
<length>6</length>
</annotation>
<annotation>
<mention>Randy Jones</mention>
<wikiName>Randy Jones (bobsleigh)</wikiName>
<offset>232</offset>
<length>11</length>
</annotation>
<annotation>
<mention>Olympic</mention>
<wikiName>1976 Winter Olympics</wikiName>
<offset>295</offset>
<length>7</length>
</annotation>
<annotation>
<mention>Guenther Huber</mention>
<wikiName>Günther Huber</wikiName>
<offset>380</offset>
<length>14</length>
</annotation>
<annotation>
<mention>Antonio Tartaglia</mention>
<wikiName>Antonio Tartaglia</wikiName>
<offset>408</offset>
<length>17</length>
</annotation>
<annotation>
<mention>Italy</mention>
<wikiName>Italy</wikiName>
<offset>433</offset>
<length>5</length>
</annotation>
<annotation>
<mention>Americans</mention>
<wikiName>United States</wikiName>
<offset>502</offset>
<length>9</length>
</annotation>
<annotation>
<mention>Canada I</mention>
<wikiName></wikiName>
<offset>514</offset>
<length>8</length>
</annotation>
<annotation>
<mention>Pierre Lueders</mention>
<wikiName>Pierre Lueders</wikiName>
<offset>539</offset>
<length>14</length>
</annotation>
<annotation>
<mention>Dave MacEachern</mention>
<wikiName>David MacEachern</wikiName>
<offset>567</offset>
<length>15</length>
</annotation>
<annotation>
<mention>World cup</mention>
<wikiName></wikiName>
<offset>604</offset>
<length>9</length>
</annotation>
<annotation>
<mention>Italians</mention>
<wikiName>Italy</wikiName>
<offset>681</offset>
<length>8</length>
</annotation>
<annotation>
<mention>Canadians</mention>
<wikiName>Canada</wikiName>
<offset>696</offset>
<length>9</length>
</annotation>
<annotation>
<mention>Altenberg</mention>
<wikiName>Altenberg, Saxony</wikiName>
<offset>744</offset>
<length>9</length>
</annotation>
<annotation>
<mention>Germany</mention>
<wikiName>Germany</wikiName>
<offset>755</offset>
<length>7</length>
</annotation>
<annotation>
<mention>La Plagne</mention>
<wikiName>La Plagne</wikiName>
<offset>768</offset>
<length>9</length>
</annotation>
<annotation>
<mention>France</mention>
<wikiName>France</wikiName>
<offset>779</offset>
<length>6</length>
</annotation>
<annotation>
<mention>World Cup</mention>
<wikiName></wikiName>
<offset>815</offset>
<length>9</length>
</annotation>
<annotation>
<mention>USA I</mention>
<wikiName></wikiName>
<offset>871</offset>
<length>5</length>
</annotation>
<annotation>
<mention>Jim Herberich</mention>
<wikiName></wikiName>
<offset>879</offset>
<length>13</length>
</annotation>
<annotation>
<mention>Garrett Hines</mention>
<wikiName>Garrett Hines</wikiName>
<offset>906</offset>
<length>13</length>
</annotation>
</document>
<document docName="241552newsML.txt">
<annotation>
<mention>SKIING-CHINESE</mention>
<wikiName></wikiName>
<offset>0</offset>
<length>14</length>
</annotation>
<annotation>
<mention>TIGNES</mention>
<wikiName>Tignes</wikiName>
<offset>55</offset>
<length>6</length>
</annotation>
<annotation>
<mention>France</mention>
<wikiName>France</wikiName>
<offset>63</offset>
<length>6</length>
</annotation>
<annotation>
<mention>China</mention>
<wikiName>China</wikiName>
<offset>82</offset>
<length>5</length>
</annotation>
<annotation>
<mention>French</mention>
<wikiName>France</wikiName>
<offset>180</offset>
<length>6</length>
</annotation>
<annotation>
<mention>Tignes</mention>
<wikiName>Tignes</wikiName>
<offset>197</offset>
<length>6</length>
</annotation>
<annotation>
<mention>Chinese</mention>
<wikiName>China</wikiName>
<offset>228</offset>
<length>7</length>
</annotation>
<annotation>
<mention>Cuo Dan</mention>
<wikiName></wikiName>
<offset>334</offset>
<length>7</length>
</annotation>
<annotation>
<mention>Xu Nannan</mention>
<wikiName>Xu Nannan</wikiName>
<offset>378</offset>
<length>9</length>
</annotation>
<annotation>
<mention>France</mention>
<wikiName>France</wikiName>
<offset>416</offset>
<length>6</length>
</annotation>
<annotation>
<mention>Canada</mention>
<wikiName>Canada</wikiName>
<offset>427</offset>
<length>6</length>
</annotation>
<annotation>
<mention>Alexis Blanc</mention>
<wikiName></wikiName>
<offset>458</offset>
<length>12</length>
</annotation>
<annotation>
<mention>Sebastien Foucras</mention>
<wikiName>Sébastien Foucras</wikiName>
<offset>475</offset>
<length>17</length>
</annotation>
<annotation>
<mention>France</mention>
<wikiName>France</wikiName>
<offset>498</offset>
<length>6</length>
</annotation>
<annotation>
<mention>Blanc</mention>
<wikiName></wikiName>
<offset>571</offset>
<length>5</length>
</annotation>
<annotation>
<mention>World Cup</mention>
<wikiName>FIS Freestyle Skiing World Cup</wikiName>
<offset>606</offset>
<length>9</length>
</annotation>
<annotation>
<mention>Foucras</mention>
<wikiName></wikiName>
<offset>684</offset>
<length>7</length>
</annotation>
<annotation>
<mention>World Cup</mention>
<wikiName>FIS Freestyle Skiing World Cup</wikiName>
<offset>705</offset>
<length>9</length>
</annotation>
<annotation>
<mention>Canada</mention>
<wikiName>Canada</wikiName>
<offset>772</offset>
<length>6</length>
</annotation>
<annotation>
<mention>Jeff Bean</mention>
<wikiName>Jeff Bean</wikiName>
<offset>781</offset>
<length>9</length>
</annotation>
<annotation>
<mention>World Cup</mention>
<wikiName>FIS Freestyle Skiing World Cup</wikiName>
<offset>838</offset>
<length>9</length>
</annotation>
<annotation>
<mention>Veronica Brenner</mention>
<wikiName>Veronica Brenner</wikiName>
<offset>932</offset>
<length>16</length>
</annotation>
<annotation>
<mention>Canada</mention>
<wikiName>Canada</wikiName>
<offset>952</offset>
<length>6</length>
</annotation>
<annotation>
<mention>Tignes</mention>
<wikiName>Tignes</wikiName>
<offset>1002</offset>
<length>6</length>
</annotation>
<annotation>
<mention>French</mention>
<wikiName>France</wikiName>
<offset>1053</offset>
<length>6</length>
</annotation>
<annotation>
<mention>Swiss</mention>
<wikiName>Switzerland</wikiName>
<offset>1132</offset>
<length>5</length>
</annotation>
<annotation>
<mention>Karin Kuster</mention>
<wikiName></wikiName>
<offset>1190</offset>
<length>12</length>
</annotation>
<annotation>
<mention>Evelyne Leu</mention>
<wikiName>Evelyne Leu</wikiName>
<offset>1247</offset>
<length>11</length>
</annotation>
</document>
<document docName="241553newsML.txt">
<annotation>
<mention>BOBSLEIGH-WORLD CUP</mention>
<wikiName></wikiName>
<offset>0</offset>
<length>19</length>
</annotation>
<annotation>
<mention>IGLS</mention>
<wikiName></wikiName>
<offset>38</offset>
<length>4</length>
</annotation>
<annotation>
<mention>Austria</mention>
<wikiName>Austria</wikiName>
<offset>44</offset>
<length>7</length>
</annotation>
<annotation>
<mention>World Cup</mention>
<wikiName></wikiName>
<offset>77</offset>
<length>9</length>
</annotation>
<annotation>
<mention>United States III</mention>
<wikiName></wikiName>
<offset>128</offset>
<length>17</length>
</annotation>
<annotation>
<mention>Brian Shimer</mention>
<wikiName>Brian Shimer</wikiName>
<offset>147</offset>
<length>12</length>
</annotation>
<annotation>
<mention>Randy Jones</mention>
<wikiName>Randy Jones (bobsleigh)</wikiName>
<offset>161</offset>
<length>11</length>
</annotation>
<annotation>
<mention>Italy I</mention>
<wikiName></wikiName>
<offset>218</offset>
<length>7</length>
</annotation>
<annotation>
<mention>Guenther Huber</mention>
<wikiName>Günther Huber</wikiName>
<offset>227</offset>
<length>14</length>
</annotation>
<annotation>
<mention>Antonio Tartaglia</mention>
<wikiName>Antonio Tartaglia</wikiName>
<offset>243</offset>
<length>17</length>
</annotation>
<annotation>
<mention>Canada I</mention>
<wikiName></wikiName>
<offset>289</offset>
<length>8</length>
</annotation>
<annotation>
<mention>Pierre Lueders</mention>
<wikiName>Pierre Lueders</wikiName>
<offset>299</offset>
<length>14</length>
</annotation>
<annotation>
<mention>Dave MacEachern</mention>
<wikiName>David MacEachern</wikiName>
<offset>315</offset>
<length>15</length>
</annotation>
<annotation>
<mention>German I</mention>
<wikiName></wikiName>
<offset>359</offset>
<length>8</length>
</annotation>
<annotation>
<mention>Sepp Dostthaler</mention>
<wikiName>Sepp Dostthaler</wikiName>
<offset>369</offset>
<length>15</length>
</annotation>
<annotation>
<mention>Thomas Lebsa</mention>
<wikiName></wikiName>
<offset>386</offset>
<length>12</length>
</annotation>
<annotation>
<mention>Switzerland I</mention>
<wikiName></wikiName>
<offset>427</offset>
<length>13</length>
</annotation>
<annotation>
<mention>Reto Goetschi</mention>
<wikiName>Reto Götschi</wikiName>
<offset>442</offset>
<length>13</length>
</annotation>
<annotation>
<mention>Guido Acklin</mention>
<wikiName>Guido Acklin</wikiName>
<offset>457</offset>
<length>12</length>
</annotation>
<annotation>
<mention>Germany III</mention>
<wikiName></wikiName>
<offset>498</offset>
<length>11</length>
</annotation>
<annotation>
<mention>Dirk Wiese</mention>
<wikiName>Dirk Wiese</wikiName>
<offset>511</offset>
<length>10</length>
</annotation>
<annotation>
<mention>Jakobs Marco</mention>
<wikiName></wikiName>
<offset>523</offset>
<length>12</length>
</annotation>
<annotation>
<mention>Czech Republic I</mention>
<wikiName></wikiName>
<offset>563</offset>
<length>16</length>
</annotation>
<annotation>
<mention>Jiri Dzmura</mention>
<wikiName>Jiří Džmura</wikiName>
<offset>581</offset>
<length>11</length>
</annotation>
<annotation>
<mention>Pavel Polomsky</mention>
<wikiName>Pavel Polomský</wikiName>
<offset>594</offset>
<length>14</length>
</annotation>
<annotation>
<mention>Austria I</mention>
<wikiName></wikiName>
<offset>637</offset>
<length>9</length>
</annotation>
<annotation>
<mention>Hubert Schoesser</mention>
<wikiName>Hubert Schösser</wikiName>
<offset>648</offset>
<length>16</length>
</annotation>
<annotation>
<mention>Erwin Arnold</mention>
<wikiName></wikiName>
<offset>666</offset>
<length>12</length>
</annotation>
<annotation>
<mention>Britain I</mention>
<wikiName></wikiName>
<offset>707</offset>
<length>9</length>
</annotation>
<annotation>
<mention>Sean Olsson</mention>
<wikiName>Sean Olsson</wikiName>
<offset>718</offset>
<length>11</length>
</annotation>
<annotation>
<mention>Dean Ward</mention>
<wikiName>Dean Ward</wikiName>
<offset>731</offset>
<length>9</length>
</annotation>
<annotation>
<mention>United States I</mention>
<wikiName></wikiName>
<offset>777</offset>
<length>15</length>
</annotation>
<annotation>
<mention>Jim Herberich</mention>
<wikiName></wikiName>
<offset>794</offset>
<length>13</length>
</annotation>
<annotation>
<mention>Garrett
Hines</mention>
<wikiName>Garrett Hines</wikiName>
<offset>809</offset>
<length>14</length>
</annotation>
<annotation>
<mention>Austria III</mention>
<wikiName></wikiName>
<offset>851</offset>
<length>11</length>
</annotation>
<annotation>
<mention>Hannes Conti</mention>
<wikiName></wikiName>
<offset>865</offset>
<length>12</length>
</annotation>
<annotation>
<mention>Georg Kuttner</mention>
<wikiName></wikiName>
<offset>879</offset>
<length>13</length>
</annotation>
</document>
<document docName="241554newsML.txt">
<annotation>
<mention>WOOLMER</mention>
<wikiName>Bob Woolmer</wikiName>
<offset>8</offset>
<length>7</length>
</annotation>
<annotation>
<mention>KANPUR</mention>
<wikiName>Kanpur</wikiName>
<offset>44</offset>
<length>6</length>
</annotation>
<annotation>
<mention>KANPUR</mention>
<wikiName>Kanpur</wikiName>
<offset>53</offset>
<length>6</length>
</annotation>
<annotation>
<mention>India</mention>
<wikiName>India</wikiName>
<offset>61</offset>
<length>5</length>
</annotation>
<annotation>
<mention>South Africa</mention>
<wikiName>South Africa national cricket team</wikiName>
<offset>79</offset>
<length>12</length>
</annotation>
<annotation>
<mention>Kanpur</mention>
<wikiName>Kanpur</wikiName>
<offset>102</offset>
<length>6</length>
</annotation>
<annotation>
<mention>India</mention>
<wikiName>India national cricket team</wikiName>
<offset>136</offset>
<length>5</length>
</annotation>
<annotation>
<mention>England</mention>
<wikiName>England cricket team</wikiName>
<offset>159</offset>
<length>7</length>
</annotation>
<annotation>
<mention>Bob Woolmer</mention>
<wikiName>Bob Woolmer</wikiName>
<offset>182</offset>
<length>11</length>
</annotation>
<annotation>
<mention>Woolmer</mention>
<wikiName>Bob Woolmer</wikiName>
<offset>249</offset>
<length>7</length>
</annotation>
<annotation>
<mention>Kanpur</mention>
<wikiName>Kanpur</wikiName>
<offset>290</offset>
<length>6</length>
</annotation>
<annotation>
<mention>India</mention>
<wikiName>India</wikiName>
<offset>435</offset>
<length>5</length>
</annotation>
<annotation>
<mention>Woolmer</mention>
<wikiName>Bob Woolmer</wikiName>
<offset>478</offset>
<length>7</length>
</annotation>
<annotation>
<mention>South African</mention>
<wikiName>South Africa national cricket team</wikiName>
<offset>495</offset>
<length>13</length>
</annotation>
<annotation>
<mention>Woolmer</mention>
<wikiName>Bob Woolmer</wikiName>
<offset>535</offset>
<length>7</length>
</annotation>
<annotation>
<mention>England</mention>
<wikiName>England cricket team</wikiName>
<offset>568</offset>
<length>7</length>
</annotation>
<annotation>
<mention>India</mention>
<wikiName>India</wikiName>
<offset>630</offset>
<length>5</length>
</annotation>
<annotation>
<mention>Tony Greig</mention>
<wikiName>Tony Greig</wikiName>
<offset>655</offset>
<length>10</length>
</annotation>
<annotation>
<mention>England</mention>
<wikiName>England cricket team</wikiName>
<offset>668</offset>
<length>7</length>
</annotation>
<annotation>
<mention>Clarence Woolmer</mention>
<wikiName>Clarence Woolmer</wikiName>
<offset>705</offset>
<length>16</length>
</annotation>
<annotation>
<mention>United Province</mention>
<wikiName>Uttar Pradesh</wikiName>
<offset>734</offset>
<length>15</length>
</annotation>
<annotation>
<mention>Uttar Pradesh</mention>
<wikiName>Uttar Pradesh</wikiName>
<offset>763</offset>
<length>13</length>
</annotation>
<annotation>
<mention>India</mention>
<wikiName>India</wikiName>
<offset>781</offset>
<length>5</length>
</annotation>
<annotation>
<mention>Ranji Trophy</mention>
<wikiName>Ranji Trophy</wikiName>
<offset>789</offset>
<length>12</length>
</annotation>
<annotation>
<mention>Woolmer</mention>
<wikiName>Clarence Woolmer</wikiName>
<offset>875</offset>
<length>7</length>
</annotation>
<annotation>
<mention>Cape Town</mention>
<wikiName>Cape Town</wikiName>
<offset>912</offset>
<length>9</length>
</annotation>
<annotation>
<mention>Woolmer</mention>
<wikiName>Clarence Woolmer</wikiName>
<offset>924</offset>
<length>7</length>
</annotation>
<annotation>
<mention>Kanpur</mention>
<wikiName>Kanpur</wikiName>
<offset>946</offset>
<length>6</length>
</annotation>
<annotation>
<mention>Calcutta</mention>
<wikiName>Kolkata</wikiName>
<offset>1108</offset>
<length>8</length>
</annotation>
<annotation>
<mention>Woolmer</mention>
<wikiName>Clarence Woolmer</wikiName>
<offset>1323</offset>
<length>7</length>
</annotation>
<annotation>
<mention>India-South Africa</mention>
<wikiName></wikiName>
<offset>1401</offset>
<length>18</length>
</annotation>
</document>
<document docName="241555newsML.txt">
<annotation>
<mention>SKIING-WORLD CUP</mention>
<wikiName></wikiName>
<offset>10</offset>
<length>16</length>
</annotation>
<annotation>
<mention>TIGNES</mention>
<wikiName>Tignes</wikiName>
<offset>45</offset>
<length>6</length>
</annotation>
<annotation>
<mention>France</mention>
<wikiName>France</wikiName>
<offset>53</offset>
<length>6</length>
</annotation>
<annotation>
<mention>World Cup</mention>
<wikiName>FIS Freestyle Skiing World Cup</wikiName>
<offset>87</offset>
<length>9</length>
</annotation>
<annotation>
<mention>Alexis Blanc</mention>
<wikiName></wikiName>
<offset>159</offset>
<length>12</length>
</annotation>
<annotation>
<mention>France</mention>
<wikiName>France</wikiName>
<offset>173</offset>
<length>6</length>
</annotation>
<annotation>
<mention>Sebastien Foucras</mention>
<wikiName>Sébastien Foucras</wikiName>
<offset>203</offset>
<length>17</length>
</annotation>
<annotation>
<mention>France</mention>
<wikiName>France</wikiName>
<offset>222</offset>
<length>6</length>
</annotation>
<annotation>
<mention>Jeff Bean</mention>
<wikiName>Jeff Bean</wikiName>
<offset>245</offset>
<length>9</length>
</annotation>
<annotation>
<mention>Canada</mention>
<wikiName>Canada</wikiName>
<offset>256</offset>
<length>6</length>
</annotation>
<annotation>
<mention>Eric Bergoust</mention>
<wikiName>Eric Bergoust</wikiName>
<offset>277</offset>
<length>13</length>
</annotation>
<annotation>
<mention>U.S</mention>
<wikiName>United States</wikiName>
<offset>292</offset>
<length>3</length>
</annotation>
<annotation>
<mention>Christian Rijavec</mention>
<wikiName></wikiName>
<offset>314</offset>
<length>17</length>
</annotation>
<annotation>
<mention>Austria</mention>
<wikiName>Austria</wikiName>
<offset>333</offset>
<length>7</length>
</annotation>
<annotation>
<mention>Alexandre Mikhailov</mention>
<wikiName></wikiName>
<offset>356</offset>
<length>19</length>
</annotation>
<annotation>
<mention>Russia</mention>
<wikiName>Russia</wikiName>
<offset>377</offset>
<length>6</length>
</annotation>
<annotation>
<mention>Ales Valenta</mention>
<wikiName>Aleš Valenta</wikiName>
<offset>398</offset>
<length>12</length>
</annotation>
<annotation>
<mention>Czech Republic</mention>
<wikiName>Czech Republic</wikiName>
<offset>412</offset>
<length>14</length>
</annotation>
<annotation>
<mention>Andy Capicik</mention>
<wikiName></wikiName>
<offset>440</offset>
<length>12</length>
</annotation>
<annotation>
<mention>Canada</mention>
<wikiName>Canada</wikiName>
<offset>454</offset>
<length>6</length>
</annotation>
<annotation>
<mention>Trace Worthington</mention>
<wikiName></wikiName>
<offset>477</offset>
<length>17</length>
</annotation>
<annotation>
<mention>U.S.</mention>
<wikiName>United States</wikiName>
<offset>496</offset>
<length>4</length>
</annotation>
<annotation>
<mention>Dmitri Dashinski</mention>
<wikiName>Dmitri Dashinski</wikiName>
<offset>515</offset>
<length>16</length>
</annotation>
<annotation>
<mention>Belarus</mention>
<wikiName>Belarus</wikiName>
<offset>532</offset>
<length>7</length>
</annotation>
<annotation>
<mention>Veronica Brenner</mention>
<wikiName>Veronica Brenner</wikiName>
<offset>564</offset>
<length>16</length>
</annotation>
<annotation>
<mention>Canada</mention>
<wikiName>Canada</wikiName>
<offset>582</offset>
<length>6</length>
</annotation>
<annotation>
<mention>Karin Kuster</mention>
<wikiName></wikiName>
<offset>606</offset>
<length>12</length>
</annotation>
<annotation>
<mention>Switzerland</mention>
<wikiName>Switzerland</wikiName>
<offset>620</offset>
<length>11</length>
</annotation>
<annotation>
<mention>Evelyne Leu</mention>
<wikiName>Evelyne Leu</wikiName>
<offset>648</offset>
<length>11</length>
</annotation>
<annotation>
<mention>Switzerland</mention>
<wikiName>Switzerland</wikiName>
<offset>661</offset>
<length>11</length>
</annotation>
<annotation>
<mention>Caroline Olivier</mention>
<wikiName></wikiName>
<offset>690</offset>
<length>16</length>
</annotation>
<annotation>
<mention>Canada</mention>
<wikiName>Canada</wikiName>
<offset>708</offset>
<length>6</length>
</annotation>
<annotation>
<mention>Jacqui Cooper</mention>
<wikiName>Jacqui Cooper</wikiName>
<offset>732</offset>
<length>13</length>
</annotation>
<annotation>
<mention>Australia</mention>
<wikiName>Australia</wikiName>
<offset>747</offset>
<length>9</length>
</annotation>
<annotation>
<mention>Marie Lindgren</mention>
<wikiName>Marie Lindgren</wikiName>
<offset>774</offset>
<length>14</length>
</annotation>
<annotation>
<mention>Sweden</mention>
<wikiName>Sweden</wikiName>
<offset>790</offset>
<length>6</length>
</annotation>
<annotation>
<mention>Dan Cuo</mention>
<wikiName></wikiName>
<offset>811</offset>
<length>7</length>
</annotation>
<annotation>
<mention>China</mention>
<wikiName>China</wikiName>
<offset>820</offset>
<length>5</length>
</annotation>
<annotation>
<mention>Kristie Marshall</mention>
<wikiName></wikiName>
<offset>843</offset>
<length>16</length>
</annotation>
<annotation>
<mention>Australia</mention>
<wikiName>Australia</wikiName>
<offset>861</offset>
<length>9</length>
</annotation>
<annotation>
<mention>Xu Nannan</mention>
<wikiName>Xu Nannan</wikiName>
<offset>885</offset>
<length>9</length>
</annotation>
<annotation>
<mention>China</mention>
<wikiName>China</wikiName>
<offset>896</offset>
<length>5</length>
</annotation>
<annotation>
<mention>Hilde Synnove Lid</mention>
<wikiName>Hilde Synnøve Lid</wikiName>
<offset>918</offset>
<length>17</length>
</annotation>
<annotation>
<mention>Norway</mention>
<wikiName>Norway</wikiName>
<offset>937</offset>
<length>6</length>
</annotation>
</document>
<document docName="241556newsML.txt">
<annotation>
<mention>WORLD CUP</mention>
<wikiName></wikiName>
<offset>20</offset>
<length>9</length>
</annotation>
<annotation>
<mention>KUUSAMO</mention>
<wikiName>Kuusamo</wikiName>
<offset>50</offset>
<length>7</length>
</annotation>
<annotation>
<mention>Finland</mention>
<wikiName>Finland</wikiName>
<offset>59</offset>
<length>7</length>
</annotation>
<annotation>
<mention>World Cup</mention>
<wikiName>FIS Ski Jumping World Cup</wikiName>
<offset>101</offset>
<length>9</length>
</annotation>
<annotation>
<mention>Takanobu Okabe</mention>
<wikiName>Takanobu Okabe</wikiName>
<offset>169</offset>
<length>14</length>
</annotation>
<annotation>
<mention>Japan</mention>
<wikiName>Japan</wikiName>
<offset>185</offset>
<length>5</length>
</annotation>
<annotation>
<mention>Kazuyoshi Funaki</mention>
<wikiName>Kazuyoshi Funaki</wikiName>
<offset>249</offset>
<length>16</length>
</annotation>
<annotation>
<mention>Japan</mention>
<wikiName>Japan</wikiName>
<offset>267</offset>
<length>5</length>
</annotation>
<annotation>
<mention>Andreas Goldberger</mention>
<wikiName>Andreas Goldberger</wikiName>
<offset>300</offset>
<length>18</length>
</annotation>
<annotation>
<mention>Austria</mention>
<wikiName>Austria</wikiName>
<offset>320</offset>
<length>7</length>
</annotation>
<annotation>
<mention>Dieter Thoma</mention>
<wikiName>Dieter Thoma</wikiName>
<offset>354</offset>
<length>12</length>
</annotation>
<annotation>
<mention>Germany</mention>
<wikiName>Germany</wikiName>
<offset>368</offset>
<length>7</length>
</annotation>
<annotation>
<mention>Ari-Pekka Nikkola</mention>
<wikiName>Ari-Pekka Nikkola</wikiName>
<offset>403</offset>
<length>17</length>
</annotation>
<annotation>
<mention>Finland</mention>
<wikiName>Finland</wikiName>
<offset>422</offset>
<length>7</length>
</annotation>
<annotation>
<mention>Reinhard Schwarzenberger</mention>
<wikiName>Reinhard Schwarzenberger</wikiName>
<offset>457</offset>
<length>24</length>
</annotation>
<annotation>
<mention>Austria</mention>
<wikiName>Austria</wikiName>
<offset>483</offset>
<length>7</length>
</annotation>
<annotation>
<mention>Noriaki Kasai</mention>
<wikiName>Noriaki Kasai</wikiName>
<offset>518</offset>
<length>13</length>
</annotation>
<annotation>
<mention>Japan</mention>
<wikiName>Japan</wikiName>
<offset>533</offset>
<length>5</length>
</annotation>
<annotation>
<mention>Hiroya Saitoh</mention>
<wikiName></wikiName>
<offset>567</offset>
<length>13</length>
</annotation>
<annotation>
<mention>Japan</mention>
<wikiName>Japan</wikiName>
<offset>582</offset>
<length>5</length>
</annotation>
<annotation>
<mention>Jani Soininen</mention>
<wikiName>Jani Soininen</wikiName>
<offset>618</offset>
<length>13</length>
</annotation>
<annotation>
<mention>Finland</mention>
<wikiName>Finland</wikiName>
<offset>633</offset>
<length>7</length>
</annotation>
<annotation>
<mention>Kristian Brenden</mention>
<wikiName>Kristian Brenden</wikiName>
<offset>667</offset>
<length>16</length>
</annotation>
<annotation>
<mention>Norway</mention>
<wikiName>Norway</wikiName>
<offset>685</offset>
<length>6</length>
</annotation>
<annotation>
<mention>World Cup</mention>
<wikiName>FIS Ski Jumping World Cup</wikiName>
<offset>726</offset>
<length>9</length>
</annotation>
<annotation>
<mention>Thoma</mention>
<wikiName>Dieter Thoma</wikiName>
<offset>773</offset>
<length>5</length>
</annotation>
<annotation>
<mention>Brenden</mention>
<wikiName>Kristian Brenden</wikiName>
<offset>800</offset>
<length>7</length>
</annotation>
<annotation>
<mention>Goldberger</mention>
<wikiName>Andreas Goldberger</wikiName>
<offset>825</offset>
<length>10</length>
</annotation>
<annotation>
<mention>Okabe</mention>
<wikiName>Takanobu Okabe</wikiName>
<offset>850</offset>
<length>5</length>
</annotation>
<annotation>
<mention>Funaki</mention>
<wikiName>Kazuyoshi Funaki</wikiName>
<offset>870</offset>
<length>6</length>
</annotation>
<annotation>
<mention>Saitoh</mention>
<wikiName></wikiName>
<offset>890</offset>
<length>6</length>
</annotation>
<annotation>
<mention>Espen Bredesen</mention>
<wikiName>Espen Bredesen</wikiName>
<offset>910</offset>
<length>14</length>
</annotation>
<annotation>
<mention>Norway</mention>
<wikiName>Norway</wikiName>
<offset>926</offset>
<length>6</length>
</annotation>
<annotation>
<mention>Nikkola</mention>
<wikiName>Ari-Pekka Nikkola</wikiName>
<offset>945</offset>
<length>7</length>
</annotation>
<annotation>
<mention>Soininen</mention>
<wikiName>Jani Soininen</wikiName>
<offset>970</offset>
<length>8</length>
</annotation>
<annotation>
<mention>Primoz Peterka</mention>
<wikiName>Primož Peterka</wikiName>
<offset>994</offset>
<length>14</length>
</annotation>
<annotation>
<mention>Slovakia</mention>
<wikiName>Slovakia</wikiName>
<offset>1010</offset>
<length>8</length>
</annotation>
</document>
<document docName="241559newsML.txt">
<annotation>
<mention>WORLD GRAND PRIX</mention>
<wikiName>World Badminton Grand Prix Finals</wikiName>
<offset>10</offset>
<length>16</length>
</annotation>
<annotation>
<mention>TEMBAU DENPASAR</mention>
<wikiName></wikiName>
<offset>47</offset>
<length>15</length>
</annotation>
<annotation>
<mention>Bali</mention>
<wikiName>Bali</wikiName>
<offset>64</offset>
<length>4</length>
</annotation>
<annotation>
<mention>World Grand Prix</mention>
<wikiName>World Badminton Grand Prix Finals</wikiName>
<offset>111</offset>
<length>16</length>
</annotation>
<annotation>
<mention>Fung Permadi</mention>
<wikiName>Fung Permadi</wikiName>
<offset>164</offset>
<length>12</length>
</annotation>
<annotation>
<mention>Taiwan</mention>
<wikiName>Taiwan</wikiName>
<offset>178</offset>
<length>6</length>
</annotation>
<annotation>
<mention>Indra Wijaya</mention>
<wikiName></wikiName>
<offset>191</offset>
<length>12</length>
</annotation>
<annotation>
<mention>Indonesia</mention>
<wikiName>Indonesia</wikiName>
<offset>205</offset>
<length>9</length>
</annotation>
<annotation>
<mention>Sun Jun</mention>
<wikiName>Sun Jun (badminton)</wikiName>
<offset>227</offset>
<length>7</length>
</annotation>
<annotation>
<mention>China</mention>
<wikiName>China</wikiName>
<offset>236</offset>
<length>5</length>
</annotation>
<annotation>
<mention>Allan Budi Kusuma</mention>
<wikiName>Alan Budikusuma</wikiName>
<offset>248</offset>
<length>17</length>
</annotation>
<annotation>
<mention>Indonesia</mention>
<wikiName>Indonesia</wikiName>
<offset>267</offset>
<length>9</length>
</annotation>
<annotation>
<mention>Susi Susanti</mention>
<wikiName>Susi Susanti</wikiName>
<offset>307</offset>
<length>12</length>
</annotation>
<annotation>
<mention>Indonesia</mention>
<wikiName>Indonesia</wikiName>
<offset>321</offset>
<length>9</length>
</annotation>
<annotation>
<mention>Camilla Martin</mention>
<wikiName>Camilla Martin</wikiName>
<offset>337</offset>
<length>14</length>
</annotation>
<annotation>
<mention>Denmark</mention>
<wikiName>Denmark</wikiName>
<offset>353</offset>
<length>7</length>
</annotation>
<annotation>
<mention>Ye Zhaoying</mention>
<wikiName>Ye Zhaoying</wikiName>
<offset>374</offset>
<length>11</length>
</annotation>
<annotation>
<mention>China</mention>
<wikiName>China</wikiName>
<offset>387</offset>
<length>5</length>
</annotation>
<annotation>
<mention>Gong Zhichao</mention>
<wikiName>Gong Zhichao</wikiName>
<offset>399</offset>
<length>12</length>
</annotation>
<annotation>
<mention>China</mention>
<wikiName>China</wikiName>
<offset>413</offset>
<length>5</length>
</annotation>
</document>
<document docName="241560newsML.txt">
<annotation>
<mention>WORLD CUP</mention>
<wikiName></wikiName>
<offset>25</offset>
<length>9</length>
</annotation>
<annotation>
<mention>CHONJU</mention>
<wikiName></wikiName>
<offset>57</offset>
<length>6</length>
</annotation>
<annotation>
<mention>South Korea</mention>
<wikiName>South Korea</wikiName>
<offset>65</offset>
<length>11</length>
</annotation>
<annotation>
<mention>World Cup</mention>
<wikiName>ISU Speed Skating World Cup</wikiName>
<offset>121</offset>
<length>9</length>
</annotation>
<annotation>
<mention>Horii Manabu</mention>
<wikiName></wikiName>
<offset>203</offset>
<length>12</length>
</annotation>
<annotation>
<mention>Japan</mention>
<wikiName>Japan</wikiName>
<offset>217</offset>
<length>5</length>
</annotation>
<annotation>
<mention>Jaegal Sung-Yeol</mention>
<wikiName></wikiName>
<offset>242</offset>
<length>16</length>
</annotation>
<annotation>
<mention>South Korea</mention>
<wikiName>South Korea</wikiName>
<offset>260</offset>
<length>11</length>
</annotation>
<annotation>
<mention>Grunde Njos</mention>
<wikiName></wikiName>
<offset>283</offset>
<length>11</length>
</annotation>
<annotation>
<mention>Norway</mention>
<wikiName>Norway</wikiName>
<offset>296</offset>
<length>6</length>
</annotation>
<annotation>
<mention>Shimizu Hiroyasu</mention>
<wikiName></wikiName>
<offset>314</offset>
<length>16</length>
</annotation>
<annotation>
<mention>Japan</mention>
<wikiName>Japan</wikiName>
<offset>332</offset>
<length>5</length>
</annotation>
<annotation>
<mention>Sergey Klevchenya</mention>
<wikiName>Sergey Klevchenya</wikiName>
<offset>349</offset>
<length>17</length>
</annotation>
<annotation>
<mention>Russia</mention>
<wikiName>Russia</wikiName>
<offset>368</offset>
<length>6</length>
</annotation>
<annotation>
<mention>Yamakage Hiroaki</mention>
<wikiName></wikiName>
<offset>386</offset>
<length>16</length>
</annotation>
<annotation>
<mention>Japan</mention>
<wikiName>Japan</wikiName>
<offset>404</offset>
<length>5</length>
</annotation>
<annotation>
<mention>Casey Fitzrandolph</mention>
<wikiName>Casey FitzRandolph</wikiName>
<offset>421</offset>
<length>18</length>
</annotation>
<annotation>
<mention>US</mention>
<wikiName></wikiName>
<offset>441</offset>
<length>2</length>
</annotation>
<annotation>
<mention>Sylvain Bouchard</mention>
<wikiName>Sylvain Bouchard</wikiName>
<offset>455</offset>
<length>16</length>
</annotation>
<annotation>
<mention>Canada</mention>
<wikiName>Canada</wikiName>
<offset>473</offset>
<length>6</length>
</annotation>
<annotation>
<mention>Kim Yoon-man</mention>
<wikiName>Kim Yoon-man</wikiName>
<offset>491</offset>
<length>12</length>
</annotation>
<annotation>
<mention>South Korea</mention>
<wikiName>South Korea</wikiName>
<offset>505</offset>
<length>11</length>
</annotation>
<annotation>
<mention>Inoue Junichi</mention>
<wikiName></wikiName>
<offset>529</offset>
<length>13</length>
</annotation>
<annotation>
<mention>Japan</mention>
<wikiName>Japan</wikiName>
<offset>544</offset>
<length>5</length>
</annotation>
<annotation>
<mention>Xuc Rulhong</mention>
<wikiName></wikiName>
<offset>594</offset>
<length>11</length>
</annotation>
<annotation>
<mention>China</mention>
<wikiName>China</wikiName>
<offset>607</offset>
<length>5</length>
</annotation>
<annotation>
<mention>Svetlana Jhurova</mention>
<wikiName></wikiName>
<offset>624</offset>
<length>16</length>
</annotation>
<annotation>
<mention>Russia</mention>
<wikiName>Russia</wikiName>
<offset>642</offset>
<length>6</length>
</annotation>
<annotation>
<mention>Franziska Schenk</mention>
<wikiName>Franziska Schenk</wikiName>
<offset>660</offset>
<length>16</length>
</annotation>
<annotation>
<mention>Germany</mention>
<wikiName>Germany</wikiName>
<offset>678</offset>
<length>7</length>
</annotation>
<annotation>
<mention>Okazaki Tomomi</mention>
<wikiName></wikiName>
<offset>697</offset>
<length>14</length>
</annotation>
<annotation>
<mention>Japan</mention>
<wikiName>Japan</wikiName>
<offset>713</offset>
<length>5</length>
</annotation>
<annotation>
<mention>Shimazaki Kyoko</mention>
<wikiName></wikiName>
<offset>730</offset>
<length>15</length>
</annotation>
<annotation>
<mention>Japan</mention>
<wikiName>Japan</wikiName>
<offset>747</offset>
<length>5</length>
</annotation>
<annotation>
<mention>Marianne Timmer</mention>
<wikiName>Marianne Timmer</wikiName>
<offset>764</offset>
<length>15</length>
</annotation>
<annotation>
<mention>Netherlands</mention>
<wikiName>Netherlands</wikiName>
<offset>781</offset>
<length>11</length>
</annotation>
<annotation>
<mention>Jin Hua</mention>
<wikiName></wikiName>
<offset>804</offset>
<length>7</length>
</annotation>
<annotation>
<mention>China</mention>
<wikiName>China</wikiName>
<offset>813</offset>
<length>5</length>
</annotation>
<annotation>
<mention>Alena Koroleva</mention>
<wikiName></wikiName>
<offset>830</offset>
<length>14</length>
</annotation>
<annotation>
<mention>Russia</mention>
<wikiName>Russia</wikiName>
<offset>846</offset>
<length>6</length>
</annotation>
<annotation>
<mention>Chris Witty</mention>
<wikiName>Chris Witty</wikiName>
<offset>864</offset>
<length>11</length>
</annotation>
<annotation>
<mention>US</mention>
<wikiName></wikiName>
<offset>877</offset>
<length>2</length>
</annotation>
<annotation>
<mention>Anke Baler</mention>
<wikiName></wikiName>
<offset>892</offset>
<length>10</length>
</annotation>
<annotation>
<mention>Germany</mention>
<wikiName>Germany</wikiName>
<offset>904</offset>
<length>7</length>
</annotation>
<annotation>
<mention>Sylvain Bouchard</mention>
<wikiName>Sylvain Bouchard</wikiName>
<offset>962</offset>
<length>16</length>
</annotation>
<annotation>
<mention>Canada</mention>
<wikiName>Canada</wikiName>
<offset>980</offset>
<length>6</length>
</annotation>
<annotation>
<mention>Sergey Klevchenya</mention>
<wikiName>Sergey Klevchenya</wikiName>
<offset>1022</offset>
<length>17</length>
</annotation>
<annotation>
<mention>Russia</mention>
<wikiName>Russia</wikiName>
<offset>1041</offset>
<length>6</length>
</annotation>
<annotation>
<mention>Jan Bos</mention>
<wikiName>Jan Bos</wikiName>
<offset>1067</offset>
<length>7</length>
</annotation>
<annotation>
<mention>Netherlands</mention>
<wikiName>Netherlands</wikiName>
<offset>1076</offset>
<length>11</length>
</annotation>
<annotation>
<mention>Grunde Njos</mention>
<wikiName></wikiName>
<offset>1107</offset>
<length>11</length>
</annotation>
<annotation>
<mention>Norway</mention>
<wikiName>Norway</wikiName>
<offset>1120</offset>
<length>6</length>
</annotation>
<annotation>
<mention>Lee Kyou-hyuk</mention>
<wikiName></wikiName>
<offset>1147</offset>
<length>13</length>
</annotation>
<annotation>
<mention>South Korea</mention>
<wikiName>South Korea</wikiName>
<offset>1162</offset>
<length>11</length>
</annotation>
<annotation>
<mention>Inoue Junichi</mention>
<wikiName></wikiName>
<offset>1192</offset>
<length>13</length>
</annotation>
<annotation>
<mention>Japan</mention>
<wikiName>Japan</wikiName>
<offset>1207</offset>
<length>5</length>
</annotation>
<annotation>
<mention>Gerard Van Velde</mention>
<wikiName>Gerard van Velde</wikiName>
<offset>1232</offset>
<length>16</length>
</annotation>
<annotation>
<mention>Netherlands</mention>
<wikiName>Netherlands</wikiName>
<offset>1250</offset>
<length>11</length>
</annotation>
<annotation>
<mention>Kim Yoon-man</mention>
<wikiName>Kim Yoon-man</wikiName>
<offset>1282</offset>
<length>12</length>
</annotation>
<annotation>
<mention>South Korea</mention>
<wikiName>South Korea</wikiName>
<offset>1296</offset>
<length>11</length>
</annotation>
<annotation>
<mention>Jeremy Wotherspoon</mention>
<wikiName>Jeremy Wotherspoon</wikiName>
<offset>1327</offset>
<length>18</length>
</annotation>
<annotation>
<mention>Canada</mention>
<wikiName>Canada</wikiName>
<offset>1347</offset>
<length>6</length>
</annotation>
<annotation>
<mention>Miyabe Yasunori</mention>
<wikiName></wikiName>
<offset>1373</offset>
<length>15</length>
</annotation>
<annotation>
<mention>Japan</mention>
<wikiName>Japan</wikiName>
<offset>1390</offset>
<length>5</length>
</annotation>
<annotation>
<mention>Franziska Schenk</mention>
<wikiName>Franziska Schenk</wikiName>
<offset>1451</offset>
<length>16</length>
</annotation>
<annotation>
<mention>Germany</mention>
<wikiName>Germany</wikiName>
<offset>1469</offset>
<length>7</length>
</annotation>
<annotation>
<mention>Kusunose Shiho</mention>
<wikiName></wikiName>
<offset>1496</offset>
<length>14</length>
</annotation>
<annotation>
<mention>Japan</mention>
<wikiName>Japan</wikiName>
<offset>1512</offset>
<length>5</length>
</annotation>
<annotation>
<mention>Marianne Timmer</mention>
<wikiName>Marianne Timmer</wikiName>
<offset>1536</offset>
<length>15</length>
</annotation>
<annotation>
<mention>Netherlands</mention>
<wikiName>Netherlands</wikiName>
<offset>1553</offset>
<length>11</length>
</annotation>
<annotation>
<mention>Anka Baier</mention>
<wikiName></wikiName>
<offset>1581</offset>
<length>10</length>
</annotation>
<annotation>
<mention>Germany</mention>
<wikiName>Germany</wikiName>
<offset>1593</offset>
<length>7</length>
</annotation>
<annotation>
<mention>Becky Sundstrom</mention>
<wikiName></wikiName>
<offset>1621</offset>
<length>15</length>
</annotation>
<annotation>
<mention>U.S.</mention>
<wikiName>United States</wikiName>
<offset>1638</offset>
<length>4</length>
</annotation>
<annotation>
<mention>Shimazaki Kyoko</mention>
<wikiName></wikiName>
<offset>1661</offset>
<length>15</length>
</annotation>
<annotation>
<mention>Japan</mention>
<wikiName>Japan</wikiName>
<offset>1678</offset>
<length>5</length>
</annotation>
<annotation>
<mention>Oksana Ravllova</mention>
<wikiName></wikiName>
<offset>1701</offset>
<length>15</length>
</annotation>
<annotation>
<mention>Russia</mention>
<wikiName>Russia</wikiName>
<offset>1718</offset>
<length>6</length>
</annotation>
<annotation>
<mention>Sammiya Eriko</mention>
<wikiName></wikiName>
<offset>1741</offset>
<length>13</length>
</annotation>
<annotation>
<mention>Japan</mention>
<wikiName>Japan</wikiName>
<offset>1756</offset>
<length>5</length>
</annotation>
<annotation>
<mention>Chris Witty</mention>
<wikiName>Chris Witty</wikiName>
<offset>1781</offset>
<length>11</length>
</annotation>
<annotation>
<mention>U.S.</mention>
<wikiName>United States</wikiName>
<offset>1794</offset>
<length>4</length>
</annotation>
<annotation>
<mention>Xue Rulhong</mention>
<wikiName></wikiName>
<offset>1817</offset>
<length>11</length>
</annotation>
<annotation>
<mention>China</mention>
<wikiName>China</wikiName>
<offset>1830</offset>
<length>5</length>
</annotation>
</document>
<document docName="241562newsML.txt">
<annotation>
<mention>WORLD CUP</mention>
<wikiName></wikiName>
<offset>40</offset>
<length>9</length>
</annotation>
<annotation>
<mention>WHISTLER</mention>
<wikiName>Whistler, British Columbia</wikiName>
<offset>60</offset>
<length>8</length>
</annotation>
<annotation>
<mention>British Columbia</mention>
<wikiName>British Columbia</wikiName>
<offset>70</offset>
<length>16</length>
</annotation>
<annotation>
<mention>World Cup</mention>
<wikiName>FIS Alpine Ski World Cup</wikiName>
<offset>99</offset>
<length>9</length>
</annotation>
<annotation>
<mention>Whistler Mountain</mention>
<wikiName>Whistler Mountain</wikiName>
<offset>369</offset>
<length>17</length>
</annotation>
<annotation>
<mention>World Cup</mention>
<wikiName>FIS Alpine Ski World Cup</wikiName>
<offset>410</offset>
<length>9</length>
</annotation>
<annotation>
<mention>World Cup</mention>
<wikiName>FIS Alpine Ski World Cup</wikiName>
<offset>507</offset>
<length>9</length>
</annotation>
<annotation>
<mention>Bernd Zobel</mention>
<wikiName></wikiName>
<offset>738</offset>
<length>11</length>
</annotation>
<annotation>
<mention>Canadian</mention>
<wikiName></wikiName>
<offset>755</offset>
<length>8</length>
</annotation>
</document>
<document docName="241566newsML.txt">
<annotation>
<mention>SCOTTISH PREMIER DIVISION</mention>
<wikiName>Scottish Premier League</wikiName>
<offset>15</offset>
<length>25</length>
</annotation>
<annotation>
<mention>GLASGOW</mention>
<wikiName>Glasgow</wikiName>
<offset>51</offset>
<length>7</length>
</annotation>
<annotation>
<mention>Scottish premier</mention>
<wikiName></wikiName>
<offset>99</offset>
<length>16</length>
</annotation>
<annotation>
<mention>Billy Dodds</mention>
<wikiName>Billy Dodds</wikiName>
<offset>157</offset>
<length>11</length>
</annotation>
<annotation>
<mention>Aberdeen</mention>
<wikiName>Aberdeen F.C.</wikiName>
<offset>170</offset>
<length>8</length>
</annotation>
<annotation>
<mention>Pierre Van Hooydonk</mention>
<wikiName>Pierre van Hooijdonk</wikiName>
<offset>181</offset>
<length>19</length>
</annotation>
<annotation>
<mention>Celtic</mention>
<wikiName>Celtic F.C.</wikiName>
<offset>202</offset>
<length>6</length>
</annotation>
<annotation>
<mention>Paul Gascoigne</mention>
<wikiName>Paul Gascoigne</wikiName>
<offset>215</offset>
<length>14</length>
</annotation>
<annotation>
<mention>Rangers</mention>
<wikiName>Rangers F.C.</wikiName>
<offset>231</offset>
<length>7</length>
</annotation>
<annotation>
<mention>Paul Wright</mention>
<wikiName>Paul Wright (footballer)</wikiName>
<offset>245</offset>
<length>11</length>
</annotation>
<annotation>
<mention>Kilmarnock</mention>
<wikiName>Kilmarnock F.C.</wikiName>
<offset>258</offset>
<length>10</length>
</annotation>
<annotation>
<mention>Ally McCoist</mention>
<wikiName>Ally McCoist</wikiName>
<offset>271</offset>
<length>12</length>
</annotation>
<annotation>
<mention>Rangers</mention>
<wikiName>Rangers F.C.</wikiName>
<offset>285</offset>
<length>7</length>
</annotation>
<annotation>
<mention>Andreas Thom</mention>
<wikiName>Andreas Thom</wikiName>
<offset>299</offset>
<length>12</length>
</annotation>
<annotation>
<mention>Celtic</mention>
<wikiName>Celtic F.C.</wikiName>
<offset>313</offset>
<length>6</length>
</annotation>
<annotation>
<mention>Dean Windass</mention>
<wikiName>Dean Windass</wikiName>
<offset>322</offset>
<length>12</length>
</annotation>
<annotation>
<mention>Aberdeen</mention>
<wikiName>Aberdeen F.C.</wikiName>
<offset>336</offset>
<length>8</length>
</annotation>
<annotation>
<mention>Brian Laudrup</mention>
<wikiName>Brian Laudrup</wikiName>
<offset>348</offset>
<length>13</length>
</annotation>
<annotation>
<mention>Rangers</mention>
<wikiName>Rangers F.C.</wikiName>
<offset>363</offset>
<length>7</length>
</annotation>
<annotation>
<mention>Darren Jackson</mention>
<wikiName>Darren Jackson</wikiName>
<offset>373</offset>
<length>14</length>
</annotation>
<annotation>
<mention>Hibernian</mention>
<wikiName>Hibernian F.C.</wikiName>
<offset>390</offset>
<length>9</length>
</annotation>
<annotation>
<mention>Peter van Vossen</mention>
<wikiName>Peter van Vossen</wikiName>
<offset>406</offset>
<length>16</length>
</annotation>
<annotation>
<mention>Rangers</mention>
<wikiName>Rangers F.C.</wikiName>
<offset>424</offset>
<length>7</length>
</annotation>
<annotation>
<mention>Gerry Britton</mention>
<wikiName>Gerry Britton</wikiName>
<offset>434</offset>
<length>13</length>
</annotation>
<annotation>
<mention>Dunfermline</mention>
<wikiName>Dunfermline Athletic F.C.</wikiName>
<offset>450</offset>
<length>11</length>
</annotation>
<annotation>
<mention>Colin Cameron</mention>
<wikiName>Colin Cameron (footballer)</wikiName>
<offset>464</offset>
<length>13</length>
</annotation>
<annotation>
<mention>Hearts</mention>
<wikiName>Heart of Midlothian F.C.</wikiName>
<offset>479</offset>
<length>6</length>
</annotation>
<annotation>
<mention>Robert
Winters</mention>
<wikiName>Robbie Winters</wikiName>
<offset>488</offset>
<length>15</length>
</annotation>
<annotation>
<mention>Dundee United</mention>
<wikiName>Dundee United F.C.</wikiName>
<offset>505</offset>
<length>13</length>
</annotation>
<annotation>
<mention>Paolo Di Canio</mention>
<wikiName>Paolo Di Canio</wikiName>
<offset>521</offset>
<length>14</length>
</annotation>
<annotation>
<mention>Celtic</mention>
<wikiName>Celtic F.C.</wikiName>
<offset>537</offset>
<length>6</length>
</annotation>
</document>
<document docName="241567newsML.txt">
<annotation>
<mention>ENGLISH</mention>
<wikiName>England</wikiName>
<offset>15</offset>
<length>7</length>
</annotation>
<annotation>
<mention>LONDON</mention>
<wikiName>London</wikiName>
<offset>37</offset>
<length>6</length>
</annotation>
<annotation>
<mention>English</mention>
<wikiName>England</wikiName>
<offset>83</offset>
<length>7</length>
</annotation>
<annotation>
<mention>Ian Wright</mention>
<wikiName>Ian Wright</wikiName>
<offset>139</offset>
<length>10</length>
</annotation>
<annotation>
<mention>Arsenal</mention>
<wikiName>Arsenal F.C.</wikiName>
<offset>151</offset>
<length>7</length>
</annotation>
<annotation>
<mention>Fabrizio Ravanelli</mention>
<wikiName>Fabrizio Ravanelli</wikiName>
<offset>165</offset>
<length>18</length>
</annotation>
<annotation>
<mention>Middlesbrough</mention>
<wikiName>Middlesbrough F.C.</wikiName>
<offset>185</offset>
<length>13</length>
</annotation>
<annotation>
<mention>Alan Shearer</mention>
<wikiName>Alan Shearer</wikiName>
<offset>201</offset>
<length>12</length>
</annotation>
<annotation>
<mention>Newcastle</mention>
<wikiName>Newcastle United F.C.</wikiName>
<offset>216</offset>
<length>9</length>
</annotation>
<annotation>
<mention>Matthew Le Tissier</mention>
<wikiName>Matthew Le Tissier</wikiName>
<offset>232</offset>
<length>18</length>
</annotation>
<annotation>
<mention>Southampton</mention>
<wikiName>Southampton F.C.</wikiName>
<offset>252</offset>
<length>11</length>
</annotation>
<annotation>
<mention>Dwight Yorke</mention>
<wikiName>Dwight Yorke</wikiName>
<offset>266</offset>
<length>12</length>
</annotation>
<annotation>
<mention>Aston
Villa</mention>
<wikiName>Aston Villa F.C.</wikiName>
<offset>280</offset>
<length>12</length>
</annotation>
<annotation>
<mention>Les Ferdinand</mention>
<wikiName>Les Ferdinand</wikiName>
<offset>295</offset>
<length>13</length>
</annotation>
<annotation>
<mention>Newcastle</mention>
<wikiName>Newcastle United F.C.</wikiName>
<offset>310</offset>
<length>9</length>
</annotation>
<annotation>
<mention>Efan Ekoku</mention>
<wikiName>Efan Ekoku</wikiName>
<offset>322</offset>
<length>10</length>
</annotation>
<annotation>
<mention>Wimbledon</mention>
<wikiName>Wimbledon F.C.</wikiName>
<offset>334</offset>
<length>9</length>
</annotation>
<annotation>
<mention>Gianluca Vialli</mention>
<wikiName>Gianluca Vialli</wikiName>
<offset>347</offset>
<length>15</length>
</annotation>
<annotation>
<mention>Chelsea</mention>
<wikiName>Chelsea F.C.</wikiName>
<offset>364</offset>
<length>7</length>
</annotation>
<annotation>
<mention>Robbie Earle</mention>
<wikiName>Robbie Earle</wikiName>
<offset>378</offset>
<length>12</length>
</annotation>
<annotation>
<mention>Wimbledon</mention>
<wikiName>Wimbledon F.C.</wikiName>
<offset>392</offset>
<length>9</length>
</annotation>
<annotation>
<mention>Les Ferdinand</mention>
<wikiName>Les Ferdinand</wikiName>
<offset>404</offset>
<length>13</length>
</annotation>
<annotation>
<mention>Newcastle</mention>
<wikiName>Newcastle United F.C.</wikiName>
<offset>419</offset>
<length>9</length>
</annotation>
<annotation>
<mention>Marcus Gayle</mention>
<wikiName>Marcus Gayle</wikiName>
<offset>435</offset>
<length>12</length>
</annotation>
<annotation>
<mention>Wimbledon</mention>
<wikiName>Wimbledon F.C.</wikiName>
<offset>449</offset>
<length>9</length>
</annotation>
<annotation>
<mention>Gary Speed</mention>
<wikiName>Gary Speed</wikiName>
<offset>461</offset>
<length>10</length>
</annotation>
<annotation>
<mention>Everton</mention>
<wikiName>Everton F.C.</wikiName>
<offset>473</offset>
<length>7</length>
</annotation>
<annotation>
<mention>Chris
Sutton</mention>
<wikiName>Chris Sutton</wikiName>
<offset>483</offset>
<length>13</length>
</annotation>
<annotation>
<mention>Blackburn</mention>
<wikiName>Blackburn Rovers F.C.</wikiName>
<offset>498</offset>
<length>9</length>
</annotation>
<annotation>
<mention>Robbie Fowler</mention>
<wikiName>Robbie Fowler</wikiName>
<offset>514</offset>
<length>13</length>
</annotation>
<annotation>
<mention>Liverpool</mention>
<wikiName>Liverpool F.C.</wikiName>
<offset>529</offset>
<length>9</length>
</annotation>
<annotation>
<mention>Steve McManaman</mention>
<wikiName>Steve McManaman</wikiName>
<offset>541</offset>
<length>15</length>
</annotation>
<annotation>
<mention>Liverpool</mention>
<wikiName>Liverpool F.C.</wikiName>
<offset>558</offset>
<length>9</length>
</annotation>
<annotation>
<mention>Peter Beardsley</mention>
<wikiName>Peter Beardsley</wikiName>
<offset>574</offset>
<length>15</length>
</annotation>
<annotation>
<mention>Newcastle</mention>
<wikiName>Newcastle United F.C.</wikiName>
<offset>591</offset>
<length>9</length>
</annotation>
</document>
<document docName="241568newsML.txt">
<annotation>
<mention>NORTHERN IRELAND</mention>
<wikiName>Northern Ireland</wikiName>
<offset>7</offset>
<length>16</length>
</annotation>
<annotation>
<mention>LONDON</mention>
<wikiName>London</wikiName>
<offset>61</offset>
<length>6</length>
</annotation>
<annotation>
<mention>Northern Ireland</mention>
<wikiName>Northern Ireland</wikiName>
<offset>91</offset>
<length>16</length>
</annotation>
<annotation>
<mention>Ards</mention>
<wikiName>Ards F.C.</wikiName>
<offset>149</offset>
<length>4</length>
</annotation>
<annotation>
<mention>Crusaders</mention>
<wikiName>Crusaders F.C.</wikiName>
<offset>162</offset>
<length>9</length>
</annotation>
<annotation>
<mention>Cliftonville</mention>
<wikiName>Cliftonville F.C.</wikiName>
<offset>180</offset>
<length>12</length>
</annotation>
<annotation>
<mention>Portadown</mention>
<wikiName>Portadown F.C.</wikiName>
<offset>198</offset>
<length>9</length>
</annotation>
<annotation>
<mention>Glenavon</mention>
<wikiName>Glenavon F.C.</wikiName>
<offset>216</offset>
<length>8</length>
</annotation>
<annotation>
<mention>Linfield</mention>
<wikiName>Linfield F.C.</wikiName>
<offset>229</offset>
<length>8</length>
</annotation>
<annotation>
<mention>Glentoran</mention>
<wikiName>Glentoran F.C.</wikiName>
<offset>247</offset>
<length>9</length>
</annotation>
<annotation>
<mention>Coleraine</mention>
<wikiName>Coleraine F.C.</wikiName>
<offset>260</offset>
<length>9</length>
</annotation>
<annotation>
<mention>Coleraine</mention>
<wikiName>Coleraine F.C.</wikiName>
<offset>364</offset>
<length>9</length>
</annotation>
<annotation>
<mention>Linfield</mention>
<wikiName>Linfield F.C.</wikiName>
<offset>408</offset>
<length>8</length>
</annotation>
<annotation>
<mention>Crusaders</mention>
<wikiName>Crusaders F.C.</wikiName>
<offset>452</offset>
<length>9</length>
</annotation>
<annotation>
<mention>Glenavon</mention>
<wikiName>Glenavon F.C.</wikiName>
<offset>496</offset>
<length>8</length>
</annotation>
<annotation>
<mention>Glentoran</mention>
<wikiName>Glentoran F.C.</wikiName>
<offset>540</offset>
<length>9</length>
</annotation>
<annotation>
<mention>Portadown</mention>
<wikiName>Portadown F.C.</wikiName>
<offset>584</offset>
<length>9</length>
</annotation>
<annotation>
<mention>Ards</mention>
<wikiName>Ards F.C.</wikiName>
<offset>628</offset>
<length>4</length>
</annotation>
<annotation>
<mention>Cliftonville</mention>
<wikiName>Cliftonville F.C.</wikiName>
<offset>667</offset>
<length>12</length>
</annotation>
</document>
<document docName="241570newsML.txt">
<annotation>
<mention>RUGBY UNION</mention>
<wikiName>Rugby union</wikiName>
<offset>0</offset>
<length>11</length>
</annotation>
<annotation>
<mention>LONDON</mention>
<wikiName>London</wikiName>
<offset>30</offset>
<length>6</length>
</annotation>
<annotation>
<mention>British</mention>
<wikiName>United Kingdom</wikiName>
<offset>60</offset>
<length>7</length>
</annotation>
<annotation>
<mention>Pilkington Cup</mention>
<wikiName>Anglo-Welsh Cup</wikiName>
<offset>103</offset>
<length>14</length>
</annotation>
<annotation>
<mention>Reading</mention>
<wikiName>Reading R.F.C.</wikiName>
<offset>133</offset>
<length>7</length>
</annotation>
<annotation>
<mention>Widnes</mention>
<wikiName>Widnes Vikings</wikiName>
<offset>148</offset>
<length>6</length>
</annotation>
<annotation>
<mention>English</mention>
<wikiName>England</wikiName>
<offset>163</offset>
<length>7</length>
</annotation>
<annotation>
<mention>Bath</mention>
<wikiName>Bath Rugby</wikiName>
<offset>186</offset>
<length>4</length>
</annotation>
<annotation>
<mention>Harlequins</mention>
<wikiName>Harlequin F.C.</wikiName>
<offset>201</offset>
<length>10</length>
</annotation>
<annotation>
<mention>Gloucester</mention>
<wikiName>Gloucester Rugby</wikiName>
<offset>217</offset>
<length>10</length>
</annotation>
<annotation>
<mention>London Irish</mention>
<wikiName>London Irish</wikiName>
<offset>237</offset>
<length>12</length>
</annotation>
<annotation>
<mention>Orrell</mention>
<wikiName>Orrell R.U.F.C.</wikiName>
<offset>258</offset>
<length>6</length>
</annotation>
<annotation>
<mention>West Hartlepool</mention>
<wikiName>West Hartlepool R.F.C.</wikiName>
<offset>273</offset>
<length>15</length>
</annotation>
<annotation>
<mention>Wasps</mention>
<wikiName>London Wasps</wikiName>
<offset>294</offset>
<length>5</length>
</annotation>
<annotation>
<mention>Bristol</mention>
<wikiName>Bristol Rugby</wikiName>
<offset>309</offset>
<length>7</length>
</annotation>
<annotation>
<mention>Welsh</mention>
<wikiName>Wales</wikiName>
<offset>324</offset>
<length>5</length>
</annotation>
<annotation>
<mention>Caerphilly</mention>
<wikiName>Caerphilly RFC</wikiName>
<offset>345</offset>
<length>10</length>
</annotation>
<annotation>
<mention>Cardiff</mention>
<wikiName>Cardiff RFC</wikiName>
<offset>365</offset>
<length>7</length>
</annotation>
<annotation>
<mention>Llanelli</mention>
<wikiName>Llanelli RFC</wikiName>
<offset>381</offset>
<length>8</length>
</annotation>
<annotation>
<mention>Newbridge</mention>
<wikiName>Newbridge RFC</wikiName>
<offset>401</offset>
<length>9</length>
</annotation>
<annotation>
<mention>Newport</mention>
<wikiName>Newport Gwent Dragons</wikiName>
<offset>417</offset>
<length>7</length>
</annotation>
<annotation>
<mention>Dunvant</mention>
<wikiName>Dunvant RFC</wikiName>
<offset>432</offset>
<length>7</length>
</annotation>
<annotation>
<mention>Pontypridd</mention>
<wikiName>Pontypridd RFC</wikiName>
<offset>448</offset>
<length>10</length>
</annotation>
<annotation>
<mention>Bridgend</mention>
<wikiName>Bridgend Ravens</wikiName>
<offset>468</offset>
<length>8</length>
</annotation>
<annotation>
<mention>Swansea</mention>
<wikiName>Swansea RFC</wikiName>
<offset>484</offset>
<length>7</length>
</annotation>
<annotation>
<mention>Neath</mention>
<wikiName>Neath RFC</wikiName>
<offset>499</offset>
<length>5</length>
</annotation>
<annotation>
<mention>Treorchy</mention>
<wikiName>Treorchy RFC</wikiName>
<offset>515</offset>
<length>8</length>
</annotation>
<annotation>
<mention>Ebbw Vale</mention>
<wikiName>Ebbw Vale RFC</wikiName>
<offset>535</offset>
<length>9</length>
</annotation>
<annotation>
<mention>Scottish</mention>
<wikiName>Scotland</wikiName>
<offset>550</offset>
<length>8</length>
</annotation>
<annotation>
<mention>Boroughmuir</mention>
<wikiName>Boroughmuir RFC</wikiName>
<offset>574</offset>
<length>11</length>
</annotation>
<annotation>
<mention>Watsonians</mention>
<wikiName>Watsonians RFC</wikiName>
<offset>594</offset>
<length>10</length>
</annotation>
</document>
<document docName="241571newsML.txt">
<annotation>
<mention>SCOTTISH</mention>
<wikiName>Scotland</wikiName>
<offset>7</offset>
<length>8</length>
</annotation>
<annotation>
<mention>GLASGOW</mention>
<wikiName>Glasgow</wikiName>
<offset>45</offset>
<length>7</length>
</annotation>
<annotation>
<mention>Scottish</mention>
<wikiName>Scotland</wikiName>
<offset>78</offset>
<length>8</length>
</annotation>
<annotation>
<mention>Dunfermline</mention>
<wikiName>Dunfermline Athletic F.C.</wikiName>
<offset>133</offset>
<length>11</length>
</annotation>
<annotation>
<mention>Millar</mention>
<wikiName></wikiName>
<offset>148</offset>
<length>6</length>
</annotation>
<annotation>
<mention>Aberdeen</mention>
<wikiName>Aberdeen F.C.</wikiName>
<offset>171</offset>
<length>8</length>
</annotation>
<annotation>
<mention>Miller</mention>
<wikiName>Joe Miller (footballer)</wikiName>
<offset>183</offset>
<length>6</length>
</annotation>
<annotation>
<mention>Rowson</mention>
<wikiName>David Rowson</wikiName>
<offset>194</offset>
<length>6</length>
</annotation>
<annotation>
<mention>Hearts</mention>
<wikiName>Heart of Midlothian F.C.</wikiName>
<offset>251</offset>
<length>6</length>
</annotation>
<annotation>
<mention>Raith</mention>
<wikiName>Raith Rovers F.C.</wikiName>
<offset>260</offset>
<length>5</length>
</annotation>
<annotation>
<mention>Kilmarnock</mention>
<wikiName>Kilmarnock F.C.</wikiName>
<offset>277</offset>
<length>10</length>
</annotation>
<annotation>
<mention>Dundee United</mention>
<wikiName>Dundee United F.C.</wikiName>
<offset>290</offset>
<length>13</length>
</annotation>
<annotation>
<mention>Olafsson</mention>
<wikiName></wikiName>
<offset>307</offset>
<length>8</length>
</annotation>
<annotation>
<mention>Motherwell</mention>
<wikiName>Motherwell F.C.</wikiName>
<offset>339</offset>
<length>10</length>
</annotation>
<annotation>
<mention>Davies</mention>
<wikiName>Billy Davies</wikiName>
<offset>353</offset>
<length>6</length>
</annotation>
<annotation>
<mention>Ross</mention>
<wikiName></wikiName>
<offset>364</offset>
<length>4</length>
</annotation>
<annotation>
<mention>Celtic</mention>
<wikiName>Celtic F.C.</wikiName>
<offset>373</offset>
<length>6</length>
</annotation>
<annotation>
<mention>Hay</mention>
<wikiName>Chris Hay</wikiName>
<offset>383</offset>
<length>3</length>
</annotation>
<annotation>
<mention>Rangers</mention>
<wikiName>Rangers F.C.</wikiName>
<offset>405</offset>
<length>7</length>
</annotation>
<annotation>
<mention>Ferguson</mention>
<wikiName>Ian Ferguson (footballer born 1967)</wikiName>
<offset>416</offset>
<length>8</length>
</annotation>
<annotation>
<mention>McCoist</mention>
<wikiName>Ally McCoist</wikiName>
<offset>429</offset>
<length>7</length>
</annotation>
<annotation>
<mention>Laudrup</mention>
<wikiName>Brian Laudrup</wikiName>
<offset>444</offset>
<length>7</length>
</annotation>
<annotation>
<mention>Hibernian</mention>
<wikiName>Hibernian F.C.</wikiName>
<offset>457</offset>
<length>9</length>
</annotation>
<annotation>
<mention>Wright</mention>
<wikiName>Keith Wright (footballer)</wikiName>
<offset>470</offset>
<length>6</length>
</annotation>
<annotation>
<mention>Jackson</mention>
<wikiName>Darren Jackson</wikiName>
<offset>481</offset>
<length>7</length>
</annotation>
<annotation>
<mention>McGinlay</mention>
<wikiName>Pat McGinlay</wikiName>
<offset>493</offset>
<length>8</length>
</annotation>
</document>
<document docName="241572newsML.txt">
<annotation>
<mention>RUGBY UNION</mention>
<wikiName>Rugby union</wikiName>
<offset>0</offset>
<length>11</length>
</annotation>
<annotation>
<mention>CAMPESE</mention>
<wikiName>David Campese</wikiName>
<offset>21</offset>
<length>7</length>
</annotation>
<annotation>
<mention>LONDON</mention>
<wikiName>London</wikiName>
<offset>49</offset>
<length>6</length>
</annotation>
<annotation>
<mention>David Campese</mention>
<wikiName>David Campese</wikiName>
<offset>68</offset>
<length>13</length>
</annotation>
<annotation>
<mention>England</mention>
<wikiName>United Kingdom</wikiName>
<offset>125</offset>
<length>7</length>
</annotation>
<annotation>
<mention>Australia</mention>
<wikiName>Australia</wikiName>
<offset>212</offset>
<length>9</length>
</annotation>
<annotation>
<mention>Wallaby</mention>
<wikiName>Australia national rugby union team</wikiName>
<offset>274</offset>
<length>7</length>
</annotation>
<annotation>
<mention>London</mention>
<wikiName>London</wikiName>
<offset>352</offset>
<length>6</length>
</annotation>
<annotation>
<mention>Saracens</mention>
<wikiName>Saracens F.C.</wikiName>
<offset>364</offset>
<length>8</length>
</annotation>
<annotation>
<mention>Francois Pienaar</mention>
<wikiName>Francois Pienaar</wikiName>
<offset>401</offset>
<length>16</length>
</annotation>
<annotation>
<mention>Michael Lynagh</mention>
<wikiName>Michael Lynagh</wikiName>
<offset>419</offset>
<length>14</length>
</annotation>
<annotation>
<mention>Philippe Sella</mention>
<wikiName>Philippe Sella</wikiName>
<offset>438</offset>
<length>14</length>
</annotation>
<annotation>
<mention>Campese</mention>
<wikiName>David Campese</wikiName>
<offset>565</offset>
<length>7</length>
</annotation>
<annotation>
<mention>New South Wales</mention>
<wikiName>New South Wales rugby league team</wikiName>
<offset>684</offset>
<length>15</length>
</annotation>
<annotation>
<mention>Wallaby</mention>
<wikiName>Australia national rugby union team</wikiName>
<offset>736</offset>
<length>7</length>
</annotation>
<annotation>
<mention>Nick Farr-Jones</mention>
<wikiName>Nick Farr-Jones</wikiName>
<offset>752</offset>
<length>15</length>
</annotation>
<annotation>
<mention>Campese</mention>
<wikiName>David Campese</wikiName>
<offset>777</offset>
<length>7</length>
</annotation>
<annotation>
<mention>England</mention>
<wikiName>United Kingdom</wikiName>
<offset>807</offset>
<length>7</length>
</annotation>
<annotation>
<mention>England</mention>
<wikiName>United Kingdom</wikiName>
<offset>853</offset>
<length>7</length>
</annotation>
<annotation>
<mention>David Campese</mention>
<wikiName>David Campese</wikiName>
<offset>888</offset>
<length>13</length>
</annotation>
</document>
<document docName="241573newsML.txt">
<annotation>
<mention>ENGLISH</mention>
<wikiName>England</wikiName>
<offset>7</offset>
<length>7</length>
</annotation>
<annotation>
<mention>LONDON</mention>
<wikiName>London</wikiName>
<offset>42</offset>
<length>6</length>
</annotation>
<annotation>
<mention>English</mention>
<wikiName>England</wikiName>
<offset>74</offset>
<length>7</length>
</annotation>
<annotation>
<mention>Arsenal</mention>
<wikiName>Arsenal F.C.</wikiName>
<offset>121</offset>
<length>7</length>
</annotation>
<annotation>
<mention>Adams</mention>
<wikiName>Tony Adams (footballer)</wikiName>
<offset>132</offset>
<length>5</length>
</annotation>
<annotation>
<mention>Vieira</mention>
<wikiName>Patrick Vieira</wikiName>
<offset>142</offset>
<length>6</length>
</annotation>
<annotation>
<mention>Derby</mention>
<wikiName>Derby County F.C.</wikiName>
<offset>153</offset>
<length>5</length>
</annotation>
<annotation>
<mention>Sturridge</mention>
<wikiName>Dean Sturridge</wikiName>
<offset>162</offset>
<length>9</length>
</annotation>
<annotation>
<mention>Powell</mention>
<wikiName>Chris Powell</wikiName>
<offset>176</offset>
<length>6</length>
</annotation>
<annotation>
<mention>Chelsea</mention>
<wikiName>Chelsea F.C.</wikiName>
<offset>223</offset>
<length>7</length>
</annotation>
<annotation>
<mention>Zola</mention>
<wikiName>Gianfranco Zola</wikiName>
<offset>234</offset>
<length>4</length>
</annotation>
<annotation>
<mention>Vialli</mention>
<wikiName>Gianluca Vialli</wikiName>
<offset>243</offset>
<length>6</length>
</annotation>
<annotation>
<mention>Everton</mention>
<wikiName>Everton F.C.</wikiName>
<offset>254</offset>
<length>7</length>
</annotation>
<annotation>
<mention>Branch</mention>
<wikiName>Michael Branch</wikiName>
<offset>265</offset>
<length>6</length>
</annotation>
<annotation>
<mention>Kanchelskis</mention>
<wikiName>Andrei Kanchelskis</wikiName>
<offset>277</offset>
<length>11</length>
</annotation>
<annotation>
<mention>Coventry</mention>
<wikiName>Coventry City F.C.</wikiName>
<offset>307</offset>
<length>8</length>
</annotation>
<annotation>
<mention>Whelan</mention>
<wikiName>Noel Whelan</wikiName>
<offset>319</offset>
<length>6</length>
</annotation>
<annotation>
<mention>Tottenham</mention>
<wikiName>Tottenham Hotspur F.C.</wikiName>
<offset>330</offset>
<length>9</length>
</annotation>
<annotation>
<mention>Sheringham</mention>
<wikiName>Teddy Sheringham</wikiName>
<offset>343</offset>
<length>10</length>
</annotation>
<annotation>
<mention>Sinton</mention>
<wikiName>Andy Sinton</wikiName>
<offset>358</offset>
<length>6</length>
</annotation>
<annotation>
<mention>Leicester</mention>
<wikiName>Leicester City F.C.</wikiName>
<offset>385</offset>
<length>9</length>
</annotation>
<annotation>
<mention>Marshall</mention>
<wikiName></wikiName>
<offset>398</offset>
<length>8</length>
</annotation>
<annotation>
<mention>Blackburn</mention>
<wikiName>Blackburn Rovers F.C.</wikiName>
<offset>411</offset>
<length>9</length>
</annotation>
<annotation>
<mention>Sutton</mention>
<wikiName>Chris Sutton</wikiName>
<offset>424</offset>
<length>6</length>
</annotation>
<annotation>
<mention>Liverpool</mention>
<wikiName>Liverpool F.C.</wikiName>
<offset>452</offset>
<length>9</length>
</annotation>
<annotation>
<mention>Sheffield Wednesday</mention>
<wikiName>Sheffield Wednesday F.C.</wikiName>
<offset>464</offset>
<length>19</length>
</annotation>
<annotation>
<mention>Whittingham</mention>
<wikiName>Guy Whittingham</wikiName>
<offset>487</offset>
<length>11</length>
</annotation>
<annotation>
<mention>Middlesbrough</mention>
<wikiName>Middlesbrough F.C.</wikiName>
<offset>520</offset>
<length>13</length>
</annotation>
<annotation>
<mention>Leeds</mention>
<wikiName>Leeds United A.F.C.</wikiName>
<offset>536</offset>
<length>5</length>
</annotation>
<annotation>
<mention>Southampton</mention>
<wikiName>Southampton F.C.</wikiName>
<offset>553</offset>
<length>11</length>
</annotation>
<annotation>
<mention>Aston Villa</mention>
<wikiName>Aston Villa F.C.</wikiName>
<offset>567</offset>
<length>11</length>
</annotation>
<annotation>
<mention>Townsend</mention>
<wikiName>Andy Townsend</wikiName>
<offset>582</offset>
<length>8</length>
</annotation>
<annotation>
<mention>Sunderland</mention>
<wikiName>Sunderland A.F.C.</wikiName>
<offset>610</offset>
<length>10</length>
</annotation>
<annotation>
<mention>Melville</mention>
<wikiName>Andy Melville</wikiName>
<offset>624</offset>
<length>8</length>
</annotation>
<annotation>
<mention>Wimbledon</mention>
<wikiName>Wimbledon F.C.</wikiName>
<offset>637</offset>
<length>9</length>
</annotation>
<annotation>
<mention>Ekoku</mention>
<wikiName>Efan Ekoku</wikiName>
<offset>650</offset>
<length>5</length>
</annotation>
<annotation>
<mention>Holdsworth</mention>
<wikiName>Dean Holdsworth</wikiName>
<offset>663</offset>
<length>10</length>
</annotation>
</document>
<document docName="241574newsML.txt">
<annotation>
<mention>SCOTTISH</mention>
<wikiName>Scotland</wikiName>
<offset>7</offset>
<length>8</length>
</annotation>
<annotation>
<mention>GLASGOW</mention>
<wikiName>Glasgow</wikiName>
<offset>35</offset>
<length>7</length>
</annotation>
<annotation>
<mention>Scottish</mention>
<wikiName>Scotland</wikiName>
<offset>55</offset>
<length>8</length>
</annotation>
<annotation>
<mention>Rangers</mention>
<wikiName>Rangers F.C.</wikiName>
<offset>202</offset>
<length>7</length>
</annotation>
<annotation>
<mention>Celtic</mention>
<wikiName>Celtic F.C.</wikiName>
<offset>240</offset>
<length>6</length>
</annotation>
<annotation>
<mention>Aberdeen</mention>
<wikiName>Aberdeen F.C.</wikiName>
<offset>278</offset>
<length>8</length>
</annotation>
<annotation>
<mention>Hearts</mention>
<wikiName>Heart of Midlothian F.C.</wikiName>
<offset>316</offset>
<length>6</length>
</annotation>
<annotation>
<mention>Hibernian</mention>
<wikiName>Hibernian F.C.</wikiName>
<offset>354</offset>
<length>9</length>
</annotation>
<annotation>
<mention>Dundee United</mention>
<wikiName>Dundee United F.C.</wikiName>
<offset>392</offset>
<length>13</length>
</annotation>
<annotation>
<mention>Motherwell</mention>
<wikiName>Motherwell F.C.</wikiName>
<offset>435</offset>
<length>10</length>
</annotation>
<annotation>
<mention>Dunfermline</mention>
<wikiName>Dunfermline Athletic F.C.</wikiName>
<offset>473</offset>
<length>11</length>
</annotation>
<annotation>
<mention>Raith</mention>
<wikiName>Raith Rovers F.C.</wikiName>
<offset>511</offset>
<length>5</length>
</annotation>
<annotation>
<mention>Kilmarnock</mention>
<wikiName>Kilmarnock F.C.</wikiName>
<offset>544</offset>
<length>10</length>
</annotation>
<annotation>
<mention>St Johnstone</mention>
<wikiName>St. Johnstone F.C.</wikiName>
<offset>596</offset>
<length>12</length>
</annotation>
<annotation>
<mention>Falkirk</mention>
<wikiName>Falkirk F.C.</wikiName>
<offset>639</offset>
<length>7</length>
</annotation>
<annotation>
<mention>Airdrieonians</mention>
<wikiName>Airdrieonians F.C.</wikiName>
<offset>677</offset>
<length>13</length>
</annotation>
<annotation>
<mention>Dundee</mention>
<wikiName>Dundee United F.C.</wikiName>
<offset>720</offset>
<length>6</length>
</annotation>
<annotation>
<mention>Partick</mention>
<wikiName>Partick Thistle F.C.</wikiName>
<offset>758</offset>
<length>7</length>
</annotation>
<annotation>
<mention>St Mirren</mention>
<wikiName>St. Mirren F.C.</wikiName>
<offset>796</offset>
<length>9</length>
</annotation>
<annotation>
<mention>Greenock Morton</mention>
<wikiName>Greenock Morton F.C.</wikiName>
<offset>834</offset>
<length>15</length>
</annotation>
<annotation>
<mention>Clydebank</mention>
<wikiName>Clydebank F.C.</wikiName>
<offset>877</offset>
<length>9</length>
</annotation>
<annotation>
<mention>Stirling</mention>
<wikiName>Stirling Albion F.C.</wikiName>
<offset>915</offset>
<length>8</length>
</annotation>
<annotation>
<mention>East Fife</mention>
<wikiName>East Fife F.C.</wikiName>
<offset>953</offset>
<length>9</length>
</annotation>
<annotation>
<mention>Ayr</mention>
<wikiName>Ayr United F.C.</wikiName>
<offset>1005</offset>
<length>3</length>
</annotation>
<annotation>
<mention>Livingston</mention>
<wikiName>Livingston F.C.</wikiName>
<offset>1038</offset>
<length>10</length>
</annotation>
<annotation>
<mention>Hamilton</mention>
<wikiName>Hamilton Academical F.C.</wikiName>
<offset>1076</offset>
<length>8</length>
</annotation>
<annotation>
<mention>Clyde</mention>
<wikiName>Clyde F.C.</wikiName>
<offset>1114</offset>
<length>5</length>
</annotation>
<annotation>
<mention>Queen of South</mention>
<wikiName></wikiName>
<offset>1147</offset>
<length>14</length>
</annotation>
<annotation>
<mention>Stenhousemuir</mention>
<wikiName>Stenhousemuir F.C.</wikiName>
<offset>1190</offset>
<length>13</length>
</annotation>
<annotation>
<mention>Stranraer</mention>
<wikiName>Stranraer F.C.</wikiName>
<offset>1233</offset>
<length>9</length>
</annotation>
<annotation>
<mention>Dumbarton</mention>
<wikiName>Dumbarton F.C.</wikiName>
<offset>1271</offset>
<length>9</length>
</annotation>
<annotation>
<mention>Brechin</mention>
<wikiName>Brechin City F.C.</wikiName>
<offset>1309</offset>
<length>7</length>
</annotation>
<annotation>
<mention>Berwick</mention>
<wikiName>Berwick Rangers F.C.</wikiName>
<offset>1347</offset>
<length>7</length>
</annotation>
<annotation>
<mention>Montrose</mention>
<wikiName>Montrose F.C.</wikiName>
<offset>1401</offset>
<length>8</length>
</annotation>
<annotation>
<mention>Inverness Thistle</mention>
<wikiName>Inverness Thistle F.C.</wikiName>
<offset>1439</offset>
<length>17</length>
</annotation>
<annotation>
<mention>Ross County</mention>
<wikiName>Ross County F.C.</wikiName>
<offset>1482</offset>
<length>11</length>
</annotation>
<annotation>
<mention>Alloa</mention>
<wikiName>Alloa Athletic F.C.</wikiName>
<offset>1520</offset>
<length>5</length>
</annotation>
<annotation>
<mention>Cowdenbeath</mention>
<wikiName>Cowdenbeath F.C.</wikiName>
<offset>1553</offset>
<length>11</length>
</annotation>
<annotation>
<mention>Albion</mention>
<wikiName>West Bromwich Albion F.C.</wikiName>
<offset>1591</offset>
<length>6</length>
</annotation>
<annotation>
<mention>Forfar</mention>
<wikiName>Forfar Athletic F.C.</wikiName>
<offset>1629</offset>
<length>6</length>
</annotation>
<annotation>
<mention>Queen's Park</mention>
<wikiName></wikiName>
<offset>1667</offset>
<length>12</length>
</annotation>
<annotation>
<mention>Arbroath</mention>
<wikiName>Arbroath F.C.</wikiName>
<offset>1710</offset>
<length>8</length>
</annotation>
<annotation>
<mention>East Stirling</mention>
<wikiName>East Stirlingshire F.C.</wikiName>
<offset>1748</offset>
<length>13</length>
</annotation>
</document>
<document docName="241575newsML.txt">
<annotation>
<mention>ENGLISH</mention>
<wikiName>England</wikiName>
<offset>7</offset>
<length>7</length>
</annotation>
<annotation>
<mention>LONDON</mention>
<wikiName>London</wikiName>
<offset>34</offset>
<length>6</length>
</annotation>
<annotation>
<mention>English</mention>
<wikiName>England</wikiName>
<offset>66</offset>
<length>7</length>
</annotation>
<annotation>
<mention>Premier league</mention>
<wikiName>Premier League</wikiName>
<offset>190</offset>
<length>14</length>
</annotation>
<annotation>
<mention>Arsenal</mention>
<wikiName>Arsenal F.C.</wikiName>
<offset>207</offset>
<length>7</length>
</annotation>
<annotation>
<mention>Wimbledon</mention>
<wikiName>Wimbledon F.C.</wikiName>
<offset>245</offset>
<length>9</length>
</annotation>
<annotation>
<mention>Liverpool</mention>
<wikiName>Liverpool F.C.</wikiName>
<offset>283</offset>
<length>9</length>
</annotation>
<annotation>
<mention>Aston Villa</mention>
<wikiName>Aston Villa F.C.</wikiName>
<offset>321</offset>
<length>11</length>
</annotation>
<annotation>
<mention>Newcastle</mention>
<wikiName>Newcastle United F.C.</wikiName>
<offset>359</offset>
<length>9</length>
</annotation>
<annotation>
<mention>Manchester United</mention>
<wikiName>Manchester United F.C.</wikiName>
<offset>397</offset>
<length>17</length>
</annotation>
<annotation>
<mention>Chelsea</mention>
<wikiName>Chelsea F.C.</wikiName>
<offset>440</offset>
<length>7</length>
</annotation>
<annotation>
<mention>Everton</mention>
<wikiName>Everton F.C.</wikiName>
<offset>478</offset>
<length>7</length>
</annotation>
<annotation>
<mention>Sheffield Wednesday</mention>
<wikiName>Sheffield Wednesday F.C.</wikiName>
<offset>516</offset>
<length>19</length>
</annotation>
<annotation>
<mention>Tottenham</mention>
<wikiName>Tottenham Hotspur F.C.</wikiName>
<offset>564</offset>
<length>9</length>
</annotation>
<annotation>
<mention>Derby</mention>
<wikiName>Derby County F.C.</wikiName>
<offset>602</offset>
<length>5</length>
</annotation>
<annotation>
<mention>Leicester</mention>
<wikiName>Leicester City F.C.</wikiName>
<offset>635</offset>
<length>9</length>
</annotation>
<annotation>
<mention>Leeds</mention>
<wikiName>Leeds United A.F.C.</wikiName>
<offset>673</offset>
<length>5</length>
</annotation>
<annotation>
<mention>Sunderland</mention>
<wikiName>Sunderland A.F.C.</wikiName>
<offset>706</offset>
<length>10</length>
</annotation>
<annotation>
<mention>West Ham</mention>
<wikiName>West Ham United F.C.</wikiName>
<offset>744</offset>
<length>8</length>
</annotation>
<annotation>
<mention>Middlesbrough</mention>
<wikiName>Middlesbrough F.C.</wikiName>
<offset>782</offset>
<length>13</length>
</annotation>
<annotation>
<mention>Blackburn</mention>
<wikiName>Blackburn Rovers F.C.</wikiName>
<offset>825</offset>
<length>9</length>
</annotation>
<annotation>
<mention>Southampton</mention>
<wikiName>Southampton F.C.</wikiName>
<offset>863</offset>
<length>11</length>
</annotation>
<annotation>
<mention>Coventry</mention>
<wikiName>Coventry City F.C.</wikiName>
<offset>901</offset>
<length>8</length>
</annotation>
<annotation>
<mention>Nottingham Forest</mention>
<wikiName>Nottingham Forest F.C.</wikiName>
<offset>939</offset>
<length>17</length>
</annotation>
<annotation>
<mention>Bolton</mention>
<wikiName>Bolton Wanderers F.C.</wikiName>
<offset>996</offset>
<length>6</length>
</annotation>
<annotation>
<mention>Sheffield United</mention>
<wikiName>Sheffield United F.C.</wikiName>
<offset>1033</offset>
<length>16</length>
</annotation>
<annotation>
<mention>Barnsley</mention>
<wikiName>Burnley F.C.</wikiName>
<offset>1075</offset>
<length>8</length>
</annotation>
<annotation>
<mention>Crystal Palace</mention>
<wikiName>Crystal Palace F.C.</wikiName>
<offset>1112</offset>
<length>14</length>
</annotation>
<annotation>
<mention>Wolverhampton</mention>
<wikiName>Wolverhampton Wanderers F.C.</wikiName>
<offset>1154</offset>
<length>13</length>
</annotation>
<annotation>
<mention>Tranmere</mention>
<wikiName>Tranmere Rovers F.C.</wikiName>
<offset>1196</offset>
<length>8</length>
</annotation>
<annotation>
<mention>Norwich</mention>
<wikiName>Norwich City F.C.</wikiName>
<offset>1233</offset>
<length>7</length>
</annotation>
<annotation>
<mention>Birmingham</mention>
<wikiName>Birmingham City F.C.</wikiName>
<offset>1270</offset>
<length>10</length>
</annotation>
<annotation>
<mention>Oxford</mention>
<wikiName>Oxford United F.C.</wikiName>
<offset>1307</offset>
<length>6</length>
</annotation>
<annotation>
<mention>Stoke</mention>
<wikiName>Stoke City F.C.</wikiName>
<offset>1344</offset>
<length>5</length>
</annotation>
<annotation>
<mention>Swindon</mention>
<wikiName>Swindon Town F.C.</wikiName>
<offset>1376</offset>
<length>7</length>
</annotation>
<annotation>
<mention>Charlton</mention>
<wikiName>Charlton Athletic F.C.</wikiName>
<offset>1413</offset>
<length>8</length>
</annotation>
<annotation>
<mention>Huddersfield</mention>
<wikiName>Huddersfield Town F.C.</wikiName>
<offset>1450</offset>
<length>12</length>
</annotation>
<annotation>
<mention>Queens Park Rangers</mention>
<wikiName>Queens Park Rangers F.C.</wikiName>
<offset>1492</offset>
<length>19</length>
</annotation>
<annotation>
<mention>Port Vale</mention>
<wikiName>Port Vale F.C.</wikiName>
<offset>1539</offset>
<length>9</length>
</annotation>
<annotation>
<mention>Ipswich</mention>
<wikiName>Ipswich Town F.C.</wikiName>
<offset>1576</offset>
<length>7</length>
</annotation>
<annotation>
<mention>Manchester City</mention>
<wikiName>Manchester City F.C.</wikiName>
<offset>1613</offset>
<length>15</length>
</annotation>
<annotation>
<mention>Portsmouth</mention>
<wikiName>Portsmouth F.C.</wikiName>
<offset>1655</offset>
<length>10</length>
</annotation>
<annotation>
<mention>Reading</mention>
<wikiName>Reading F.C.</wikiName>
<offset>1692</offset>
<length>7</length>
</annotation>
<annotation>
<mention>West Bromwich</mention>
<wikiName>West Bromwich Albion F.C.</wikiName>
<offset>1729</offset>
<length>13</length>
</annotation>
<annotation>
<mention>Southend</mention>
<wikiName>Southend United F.C.</wikiName>
<offset>1771</offset>
<length>8</length>
</annotation>
<annotation>
<mention>Grimsby</mention>
<wikiName>Grimsby Town F.C.</wikiName>
<offset>1808</offset>
<length>7</length>
</annotation>
<annotation>
<mention>Bradford</mention>
<wikiName>Bradford City A.F.C.</wikiName>
<offset>1845</offset>
<length>8</length>
</annotation>
<annotation>
<mention>Oldham</mention>
<wikiName>Oldham Athletic A.F.C.</wikiName>
<offset>1882</offset>
<length>6</length>
</annotation>
<annotation>
<mention>Brentford</mention>
<wikiName>Brentford F.C.</wikiName>
<offset>1933</offset>
<length>9</length>
</annotation>
<annotation>
<mention>Millwall</mention>
<wikiName>Millwall F.C.</wikiName>
<offset>1970</offset>
<length>8</length>
</annotation>
<annotation>
<mention>Bury</mention>
<wikiName>Bury F.C.</wikiName>
<offset>2007</offset>
<length>4</length>
</annotation>
<annotation>
<mention>Luton</mention>
<wikiName>Luton Town F.C.</wikiName>
<offset>2039</offset>
<length>5</length>
</annotation>
<annotation>
<mention>Burnley</mention>
<wikiName>Burnley F.C.</wikiName>
<offset>2071</offset>
<length>7</length>
</annotation>
<annotation>
<mention>Chesterfield</mention>
<wikiName>Chesterfield F.C.</wikiName>
<offset>2108</offset>
<length>12</length>
</annotation>
<annotation>
<mention>Stockport</mention>
<wikiName>Stockport County F.C.</wikiName>
<offset>2150</offset>
<length>9</length>
</annotation>
<annotation>
<mention>Watford</mention>
<wikiName>Watford F.C.</wikiName>
<offset>2187</offset>
<length>7</length>
</annotation>
<annotation>
<mention>Wrexham</mention>
<wikiName>Wrexham F.C.</wikiName>
<offset>2224</offset>
<length>7</length>
</annotation>
<annotation>
<mention>Crewe</mention>
<wikiName>Crewe Alexandra F.C.</wikiName>
<offset>2261</offset>
<length>5</length>
</annotation>
<annotation>
<mention>Bristol City</mention>
<wikiName>Bristol City F.C.</wikiName>
<offset>2293</offset>
<length>12</length>
</annotation>
<annotation>
<mention>Bristol Rovers</mention>
<wikiName>Bristol Rovers F.C.</wikiName>
<offset>2335</offset>
<length>14</length>
</annotation>
<annotation>
<mention>Shrewsbury</mention>
<wikiName>Shrewsbury Town F.C.</wikiName>
<offset>2377</offset>
<length>10</length>
</annotation>
<annotation>
<mention>York</mention>
<wikiName>York City F.C.</wikiName>
<offset>2414</offset>
<length>4</length>
</annotation>
<annotation>
<mention>Blackpool</mention>
<wikiName>Blackpool F.C.</wikiName>
<offset>2446</offset>
<length>9</length>
</annotation>
<annotation>
<mention>Walsall</mention>
<wikiName>Walsall F.C.</wikiName>
<offset>2483</offset>
<length>7</length>
</annotation>
<annotation>
<mention>Gillingham</mention>
<wikiName>Gillingham F.C.</wikiName>
<offset>2520</offset>
<length>10</length>
</annotation>
<annotation>
<mention>Preston</mention>
<wikiName>Preston North End F.C.</wikiName>
<offset>2557</offset>
<length>7</length>
</annotation>
<annotation>
<mention>Bournemouth</mention>
<wikiName>A.F.C. Bournemouth</wikiName>
<offset>2594</offset>
<length>11</length>
</annotation>
<annotation>
<mention>Plymouth</mention>
<wikiName>Plymouth Argyle F.C.</wikiName>
<offset>2631</offset>
<length>8</length>
</annotation>
<annotation>
<mention>Peterborough</mention>
<wikiName>Peterborough United F.C.</wikiName>
<offset>2668</offset>
<length>12</length>
</annotation>
<annotation>
<mention>Notts County</mention>
<wikiName>Notts County F.C.</wikiName>
<offset>2710</offset>
<length>12</length>
</annotation>
<annotation>
<mention>Wycombe</mention>
<wikiName>Wycombe Wanderers F.C.</wikiName>
<offset>2752</offset>
<length>7</length>
</annotation>
<annotation>
<mention>Rotherham</mention>
<wikiName>Rotherham United F.C.</wikiName>
<offset>2789</offset>
<length>9</length>
</annotation>
<annotation>
<mention>Fulham</mention>
<wikiName>Fulham F.C.</wikiName>
<offset>2842</offset>
<length>6</length>
</annotation>
<annotation>
<mention>Cambridge</mention>
<wikiName>Cambridge United F.C.</wikiName>
<offset>2879</offset>
<length>9</length>
</annotation>
<annotation>
<mention>Wigan</mention>
<wikiName>Wigan Athletic F.C.</wikiName>
<offset>2916</offset>
<length>5</length>
</annotation>
<annotation>
<mention>Carlisle</mention>
<wikiName>Carlisle United F.C.</wikiName>
<offset>2948</offset>
<length>8</length>
</annotation>
<annotation>
<mention>Cardiff</mention>
<wikiName>Cardiff City F.C.</wikiName>
<offset>2985</offset>
<length>7</length>
</annotation>
<annotation>
<mention>Swansea</mention>
<wikiName>Swansea City A.F.C.</wikiName>
<offset>3022</offset>
<length>7</length>
</annotation>
<annotation>
<mention>Barnet</mention>
<wikiName>Barnet F.C.</wikiName>
<offset>3059</offset>
<length>6</length>
</annotation>
<annotation>
<mention>Colchester</mention>
<wikiName>Colchester United F.C.</wikiName>
<offset>3096</offset>
<length>10</length>
</annotation>
<annotation>
<mention>Scunthorpe</mention>
<wikiName>Scunthorpe United F.C.</wikiName>
<offset>3133</offset>
<length>10</length>
</annotation>
<annotation>
<mention>Northampton</mention>
<wikiName>Northampton Town F.C.</wikiName>
<offset>3170</offset>
<length>11</length>
</annotation>
<annotation>
<mention>Scarborough</mention>
<wikiName>Scarborough F.C.</wikiName>
<offset>3207</offset>
<length>11</length>
</annotation>
<annotation>
<mention>Lincoln</mention>
<wikiName>Lincoln City F.C.</wikiName>
<offset>3244</offset>
<length>7</length>
</annotation>
<annotation>
<mention>Chester</mention>
<wikiName>Chester City F.C.</wikiName>
<offset>3281</offset>
<length>7</length>
</annotation>
<annotation>
<mention>Hull</mention>
<wikiName>Hull City A.F.C.</wikiName>
<offset>3318</offset>
<length>4</length>
</annotation>
<annotation>
<mention>Torquay</mention>
<wikiName>Torquay United F.C.</wikiName>
<offset>3350</offset>
<length>7</length>
</annotation>
<annotation>
<mention>Rochdale</mention>
<wikiName>Rochdale A.F.C.</wikiName>
<offset>3387</offset>
<length>8</length>
</annotation>
<annotation>
<mention>Exeter</mention>
<wikiName>Exeter City F.C.</wikiName>
<offset>3424</offset>
<length>6</length>
</annotation>
<annotation>
<mention>Doncaster</mention>
<wikiName>Doncaster Rovers F.C.</wikiName>
<offset>3461</offset>
<length>9</length>
</annotation>
<annotation>
<mention>Mansfield</mention>
<wikiName>Mansfield Town F.C.</wikiName>
<offset>3498</offset>
<length>9</length>
</annotation>
<annotation>
<mention>Leyton Orient</mention>
<wikiName>Leyton Orient F.C.</wikiName>
<offset>3535</offset>
<length>13</length>
</annotation>
<annotation>
<mention>Hereford</mention>
<wikiName>Hereford United F.C.</wikiName>
<offset>3577</offset>
<length>8</length>
</annotation>
<annotation>
<mention>Darlington</mention>
<wikiName>Darlington F.C.</wikiName>
<offset>3614</offset>
<length>10</length>
</annotation>
<annotation>
<mention>Hartlepool</mention>
<wikiName>Hartlepool United F.C.</wikiName>
<offset>3651</offset>
<length>10</length>
</annotation>
<annotation>
<mention>Brighton</mention>
<wikiName>Brighton & Hove Albion F.C.</wikiName>
<offset>3688</offset>
<length>8</length>
</annotation>
</document>
<document docName="241576newsML.txt">
<annotation>
<mention>VIEIRA</mention>
<wikiName>Patrick Vieira</wikiName>
<offset>7</offset>
<length>6</length>
</annotation>
<annotation>
<mention>ARSENAL</mention>
<wikiName>Arsenal F.C.</wikiName>
<offset>20</offset>
<length>7</length>
</annotation>
<annotation>
<mention>LONDON</mention>
<wikiName>London</wikiName>
<offset>57</offset>
<length>6</length>
</annotation>
<annotation>
<mention>Frenchman</mention>
<wikiName>France</wikiName>
<offset>76</offset>
<length>9</length>
</annotation>
<annotation>
<mention>Patrick Vieira</mention>
<wikiName>Patrick Vieira</wikiName>
<offset>86</offset>
<length>14</length>
</annotation>
<annotation>
<mention>English</mention>
<wikiName>England</wikiName>
<offset>154</offset>
<length>7</length>
</annotation>
<annotation>
<mention>Arsenal</mention>
<wikiName>Arsenal F.C.</wikiName>
<offset>185</offset>
<length>7</length>
</annotation>
<annotation>
<mention>Derby</mention>
<wikiName>Derby County F.C.</wikiName>
<offset>204</offset>
<length>5</length>
</annotation>
<annotation>
<mention>London</mention>
<wikiName>London</wikiName>
<offset>228</offset>
<length>6</length>
</annotation>
<annotation>
<mention>Dean Sturridge</mention>
<wikiName>Dean Sturridge</wikiName>
<offset>290</offset>
<length>14</length>
</annotation>
<annotation>
<mention>Darryl Powell</mention>
<wikiName>Darryl Powell</wikiName>
<offset>309</offset>
<length>13</length>
</annotation>
<annotation>
<mention>Arsenal</mention>
<wikiName>Arsenal F.C.</wikiName>
<offset>369</offset>
<length>7</length>
</annotation>
<annotation>
<mention>Tony Adams</mention>
<wikiName>Tony Adams (footballer)</wikiName>
<offset>420</offset>
<length>10</length>
</annotation>
<annotation>
<mention>Liverpool</mention>
<wikiName>Liverpool F.C.</wikiName>
<offset>459</offset>
<length>9</length>
</annotation>
<annotation>
<mention>Guy Whittingham</mention>
<wikiName>Guy Whittingham</wikiName>
<offset>543</offset>
<length>15</length>
</annotation>
<annotation>
<mention>Sheffield Wednesday</mention>
<wikiName>Sheffield Wednesday F.C.</wikiName>
<offset>568</offset>
<length>19</length>
</annotation>
<annotation>
<mention>Wimbledon</mention>
<wikiName>Wimbledon F.C.</wikiName>
<offset>590</offset>
<length>9</length>
</annotation>
<annotation>
<mention>Liverpool</mention>
<wikiName>Liverpool F.C.</wikiName>
<offset>618</offset>
<length>9</length>
</annotation>
<annotation>
<mention>Sunderland</mention>
<wikiName>Sunderland A.F.C.</wikiName>
<offset>664</offset>
<length>10</length>
</annotation>
<annotation>
<mention>Efan Ekoku</mention>
<wikiName>Efan Ekoku</wikiName>
<offset>748</offset>
<length>10</length>
</annotation>
<annotation>
<mention>Dean Holdsworth</mention>
<wikiName>Dean Holdsworth</wikiName>
<offset>813</offset>
<length>15</length>
</annotation>
<annotation>
<mention>Wimbledon</mention>
<wikiName>Wimbledon F.C.</wikiName>
<offset>849</offset>
<length>9</length>
</annotation>
<annotation>
<mention>Arsenal</mention>
<wikiName>Arsenal F.C.</wikiName>
<offset>881</offset>
<length>7</length>
</annotation>
</document>
<document docName="241577newsML.txt">
<annotation>
<mention>SCOTTISH</mention>
<wikiName>Scotland</wikiName>
<offset>7</offset>
<length>8</length>
</annotation>
<annotation>
<mention>GLASGOW</mention>
<wikiName>Glasgow</wikiName>
<offset>41</offset>
<length>7</length>
</annotation>
<annotation>
<mention>Scottish</mention>
<wikiName>Scotland</wikiName>
<offset>72</offset>
<length>8</length>
</annotation>
<annotation>
<mention>Dunfermline</mention>
<wikiName>Dunfermline Athletic F.C.</wikiName>
<offset>145</offset>
<length>11</length>
</annotation>
<annotation>
<mention>Aberdeen</mention>
<wikiName>Aberdeen F.C.</wikiName>
<offset>165</offset>
<length>8</length>
</annotation>
<annotation>
<mention>Hearts</mention>
<wikiName>Heart of Midlothian F.C.</wikiName>
<offset>180</offset>
<length>6</length>
</annotation>
<annotation>
<mention>Raith</mention>
<wikiName>Raith Rovers F.C.</wikiName>
<offset>195</offset>
<length>5</length>
</annotation>
<annotation>
<mention>Kilmarnock</mention>
<wikiName>Kilmarnock F.C.</wikiName>
<offset>210</offset>
<length>10</length>
</annotation>
<annotation>
<mention>Dundee United</mention>
<wikiName>Dundee United F.C.</wikiName>
<offset>225</offset>
<length>13</length>
</annotation>
<annotation>
<mention>Motherwell</mention>
<wikiName>Motherwell F.C.</wikiName>
<offset>245</offset>
<length>10</length>
</annotation>
<annotation>
<mention>Celtic</mention>
<wikiName>Celtic F.C.</wikiName>
<offset>260</offset>
<length>6</length>
</annotation>
<annotation>
<mention>Rangers</mention>
<wikiName>Rangers F.C.</wikiName>
<offset>275</offset>
<length>7</length>
</annotation>
<annotation>
<mention>Hibernian</mention>
<wikiName>Hibernian F.C.</wikiName>
<offset>290</offset>
<length>9</length>
</annotation>
<annotation>
<mention>Dundee</mention>
<wikiName>Dundee United F.C.</wikiName>
<offset>319</offset>
<length>6</length>
</annotation>
<annotation>
<mention>Falkirk</mention>
<wikiName>Falkirk F.C.</wikiName>
<offset>334</offset>
<length>7</length>
</annotation>
<annotation>
<mention>Greenock Morton</mention>
<wikiName>Greenock Morton F.C.</wikiName>
<offset>349</offset>
<length>15</length>
</annotation>
<annotation>
<mention>St Johnstone</mention>
<wikiName>St. Johnstone F.C.</wikiName>
<offset>369</offset>
<length>12</length>
</annotation>
<annotation>
<mention>Airdrieonians</mention>
<wikiName>Airdrieonians F.C.</wikiName>
<offset>399</offset>
<length>13</length>
</annotation>
<annotation>
<mention>Clydebank</mention>
<wikiName>Clydebank F.C.</wikiName>
<offset>415</offset>
<length>9</length>
</annotation>
<annotation>
<mention>East
Fife</mention>
<wikiName>East Fife F.C.</wikiName>
<offset>441</offset>
<length>10</length>
</annotation>
<annotation>
<mention>Partick</mention>
<wikiName>Partick Thistle F.C.</wikiName>
<offset>454</offset>
<length>7</length>
</annotation>
<annotation>
<mention>Stirling</mention>
<wikiName>Stirling Albion F.C.</wikiName>
<offset>463</offset>
<length>8</length>
</annotation>
<annotation>
<mention>St Mirren</mention>
<wikiName>St. Mirren F.C.</wikiName>
<offset>474</offset>
<length>9</length>
</annotation>
<annotation>
<mention>Livingston</mention>
<wikiName>Livingston F.C.</wikiName>
<offset>513</offset>
<length>10</length>
</annotation>
<annotation>
<mention>Stenhousemuir</mention>
<wikiName>Stenhousemuir F.C.</wikiName>
<offset>528</offset>
<length>13</length>
</annotation>
<annotation>
<mention>Stranraer</mention>
<wikiName>Stranraer F.C.</wikiName>
<offset>548</offset>
<length>9</length>
</annotation>
<annotation>
<mention>Brechin</mention>
<wikiName>Brechin City F.C.</wikiName>
<offset>563</offset>
<length>7</length>
</annotation>
<annotation>
<mention>Ross County</mention>
<wikiName>Ross County F.C.</wikiName>
<offset>593</offset>
<length>11</length>
</annotation>
<annotation>
<mention>Montrose</mention>
<wikiName>Montrose F.C.</wikiName>
<offset>608</offset>
<length>8</length>
</annotation>
<annotation>
<mention>Forfar</mention>
<wikiName>Forfar Athletic F.C.</wikiName>
<offset>634</offset>
<length>6</length>
</annotation>
<annotation>
<mention>Alloa</mention>
<wikiName>Alloa Athletic F.C.</wikiName>
<offset>643</offset>
<length>5</length>
</annotation>
<annotation>
<mention>Inverness Thistle</mention>
<wikiName>Inverness Thistle F.C.</wikiName>
<offset>650</offset>
<length>17</length>
</annotation>
<annotation>
<mention>Queen's Park</mention>
<wikiName></wikiName>
<offset>670</offset>
<length>12</length>
</annotation>
<annotation>
<mention>Scottish Cup</mention>
<wikiName>Scottish Cup</wikiName>
<offset>684</offset>
<length>12</length>
</annotation>
<annotation>
<mention>Alloa</mention>
<wikiName>Alloa Athletic F.C.</wikiName>
<offset>711</offset>
<length>5</length>
</annotation>
<annotation>
<mention>Hawick</mention>
<wikiName>Hawick RFC</wikiName>
<offset>726</offset>
<length>6</length>
</annotation>
<annotation>
<mention>Elgin City</mention>
<wikiName>Elgin City F.C.</wikiName>
<offset>741</offset>
<length>10</length>
</annotation>
<annotation>
<mention>Whitehill</mention>
<wikiName>Whitehill Welfare F.C.</wikiName>
<offset>756</offset>
<length>9</length>
</annotation>
<annotation>
<mention>Albion</mention>
<wikiName>West Bromwich Albion F.C.</wikiName>
<offset>781</offset>
<length>6</length>
</annotation>
<annotation>
<mention>Forfar</mention>
<wikiName>Forfar Athletic F.C.</wikiName>
<offset>790</offset>
<length>6</length>
</annotation>
<annotation>
<mention>Huntly</mention>
<wikiName>Huntly F.C.</wikiName>
<offset>798</offset>
<length>6</length>
</annotation>
<annotation>
<mention>Clyde</mention>
<wikiName>Clyde F.C.</wikiName>
<offset>807</offset>
<length>5</length>
</annotation>
</document>
<document docName="241579newsML.txt">
<annotation>
<mention>ENGLISH</mention>
<wikiName>England</wikiName>
<offset>7</offset>
<length>7</length>
</annotation>
<annotation>
<mention>LONDON</mention>
<wikiName>London</wikiName>
<offset>40</offset>
<length>6</length>
</annotation>
<annotation>
<mention>English</mention>
<wikiName>United Kingdom</wikiName>
<offset>70</offset>
<length>7</length>
</annotation>
<annotation>
<mention>Premier league</mention>
<wikiName>Premier League</wikiName>
<offset>116</offset>
<length>14</length>
</annotation>
<annotation>
<mention>Arsenal</mention>
<wikiName>Arsenal F.C.</wikiName>
<offset>133</offset>
<length>7</length>
</annotation>
<annotation>
<mention>Derby</mention>
<wikiName>Derby County F.C.</wikiName>
<offset>148</offset>
<length>5</length>
</annotation>
<annotation>
<mention>Chelsea</mention>
<wikiName>Chelsea F.C.</wikiName>
<offset>162</offset>
<length>7</length>
</annotation>
<annotation>
<mention>Everton</mention>
<wikiName>Everton F.C.</wikiName>
<offset>177</offset>
<length>7</length>
</annotation>
<annotation>
<mention>Coventry</mention>
<wikiName>Coventry City F.C.</wikiName>
<offset>191</offset>
<length>8</length>
</annotation>
<annotation>
<mention>Tottenham</mention>
<wikiName>Tottenham Hotspur F.C.</wikiName>
<offset>206</offset>
<length>9</length>
</annotation>
<annotation>
<mention>Leicester</mention>
<wikiName>Leicester City F.C.</wikiName>
<offset>225</offset>
<length>9</length>
</annotation>
<annotation>
<mention>Blackburn</mention>
<wikiName>Blackburn Rovers F.C.</wikiName>
<offset>240</offset>
<length>9</length>
</annotation>
<annotation>
<mention>Liverpool</mention>
<wikiName>Liverpool F.C.</wikiName>
<offset>259</offset>
<length>9</length>
</annotation>
<annotation>
<mention>Sheffield Wednesday</mention>
<wikiName>Sheffield Wednesday F.C.</wikiName>
<offset>274</offset>
<length>19</length>
</annotation>
<annotation>
<mention>Middlesbrough</mention>
<wikiName>Middlesbrough F.C.</wikiName>
<offset>298</offset>
<length>13</length>
</annotation>
<annotation>
<mention>Leeds</mention>
<wikiName>Leeds United A.F.C.</wikiName>
<offset>318</offset>
<length>5</length>
</annotation>
<annotation>
<mention>Southampton</mention>
<wikiName>Southampton F.C.</wikiName>
<offset>332</offset>
<length>11</length>
</annotation>
<annotation>
<mention>Aston Villa</mention>
<wikiName>Aston Villa F.C.</wikiName>
<offset>352</offset>
<length>11</length>
</annotation>
<annotation>
<mention>Sunderland</mention>
<wikiName>Sunderland A.F.C.</wikiName>
<offset>371</offset>
<length>10</length>
</annotation>
<annotation>
<mention>Wimbledon</mention>
<wikiName>Wimbledon F.C.</wikiName>
<offset>386</offset>
<length>9</length>
</annotation>
<annotation>
<mention>Barnsley</mention>
<wikiName>Barnsley F.C.</wikiName>
<offset>419</offset>
<length>8</length>
</annotation>
<annotation>
<mention>Southend</mention>
<wikiName>Southend United F.C.</wikiName>
<offset>434</offset>
<length>8</length>
</annotation>
<annotation>
<mention>Birmingham</mention>
<wikiName>Birmingham City F.C.</wikiName>
<offset>448</offset>
<length>10</length>
</annotation>
<annotation>
<mention>Grimsby</mention>
<wikiName>Grimsby Town F.C.</wikiName>
<offset>463</offset>
<length>7</length>
</annotation>
<annotation>
<mention>Charlton</mention>
<wikiName>Charlton Athletic F.C.</wikiName>
<offset>477</offset>
<length>8</length>
</annotation>
<annotation>
<mention>Swindon</mention>
<wikiName>Swindon Town F.C.</wikiName>
<offset>492</offset>
<length>7</length>
</annotation>
<annotation>
<mention>Crystal Palace</mention>
<wikiName>Crystal Palace F.C.</wikiName>
<offset>506</offset>
<length>14</length>
</annotation>
<annotation>
<mention>Oxford</mention>
<wikiName>Oxford United F.C.</wikiName>
<offset>526</offset>
<length>6</length>
</annotation>
<annotation>
<mention>Huddersfield</mention>
<wikiName>Huddersfield Town F.C.</wikiName>
<offset>540</offset>
<length>12</length>
</annotation>
<annotation>
<mention>Norwich</mention>
<wikiName>Norwich City F.C.</wikiName>
<offset>560</offset>
<length>7</length>
</annotation>
<annotation>
<mention>Ipswich</mention>
<wikiName>Ipswich Town F.C.</wikiName>
<offset>574</offset>
<length>7</length>
</annotation>
<annotation>
<mention>Wolverhampton</mention>
<wikiName>Wolverhampton Wanderers F.C.</wikiName>
<offset>589</offset>
<length>13</length>
</annotation>
<annotation>
<mention>Manchester City</mention>
<wikiName>Manchester City F.C.</wikiName>
<offset>608</offset>
<length>15</length>
</annotation>
<annotation>
<mention>Bradford</mention>
<wikiName>Bradford City A.F.C.</wikiName>
<offset>628</offset>
<length>8</length>
</annotation>
<annotation>
<mention>Oldham</mention>
<wikiName>Oldham Athletic A.F.C.</wikiName>
<offset>642</offset>
<length>6</length>
</annotation>
<annotation>
<mention>Queens Park Rangers</mention>
<wikiName>Queens Park Rangers F.C.</wikiName>
<offset>657</offset>
<length>19</length>
</annotation>
<annotation>
<mention>Reading</mention>
<wikiName>Reading F.C.</wikiName>
<offset>681</offset>
<length>7</length>
</annotation>
<annotation>
<mention>Port Vale</mention>
<wikiName>Port Vale F.C.</wikiName>
<offset>696</offset>
<length>9</length>
</annotation>
<annotation>
<mention>Sheffield United</mention>
<wikiName>Sheffield United F.C.</wikiName>
<offset>715</offset>
<length>16</length>
</annotation>
<annotation>
<mention>Portsmouth</mention>
<wikiName>Portsmouth F.C.</wikiName>
<offset>735</offset>
<length>10</length>
</annotation>
<annotation>
<mention>Stoke</mention>
<wikiName>Stoke City F.C.</wikiName>
<offset>754</offset>
<length>5</length>
</annotation>
<annotation>
<mention>Tranmere</mention>
<wikiName>Tranmere Rovers F.C.</wikiName>
<offset>764</offset>
<length>8</length>
</annotation>
<annotation>
<mention>West Bromwich</mention>
<wikiName>West Bromwich Albion F.C.</wikiName>
<offset>793</offset>
<length>13</length>
</annotation>
<annotation>
<mention>Bolton</mention>
<wikiName>Bolton Wanderers F.C.</wikiName>
<offset>809</offset>
<length>6</length>
</annotation>
<annotation>
<mention>F.A. Challenge Cup</mention>
<wikiName>FA Cup</wikiName>
<offset>817</offset>
<length>18</length>
</annotation>
<annotation>
<mention>Barnet</mention>
<wikiName>Barnet F.C.</wikiName>
<offset>851</offset>
<length>6</length>
</annotation>
<annotation>
<mention>Wycombe</mention>
<wikiName>Wycombe Wanderers F.C.</wikiName>
<offset>862</offset>
<length>7</length>
</annotation>
<annotation>
<mention>Blackpool</mention>
<wikiName>Blackpool F.C.</wikiName>
<offset>875</offset>
<length>9</length>
</annotation>
<annotation>
<mention>Hednesford</mention>
<wikiName>Hednesford Town F.C.</wikiName>
<offset>891</offset>
<length>10</length>
</annotation>
<annotation>
<mention>Bristol City</mention>
<wikiName>Bristol City F.C.</wikiName>
<offset>909</offset>
<length>12</length>
</annotation>
<annotation>
<mention>St Albans</mention>
<wikiName>St Albans City F.C.</wikiName>
<offset>925</offset>
<length>9</length>
</annotation>
<annotation>
<mention>Cambridge United</mention>
<wikiName>Cambridge United F.C.</wikiName>
<offset>943</offset>
<length>16</length>
</annotation>
<annotation>
<mention>Woking</mention>
<wikiName>Woking F.C.</wikiName>
<offset>964</offset>
<length>6</length>
</annotation>
<annotation>
<mention>Carlisle</mention>
<wikiName>Carlisle United F.C.</wikiName>
<offset>977</offset>
<length>8</length>
</annotation>
<annotation>
<mention>Darlington</mention>
<wikiName>Darlington F.C.</wikiName>
<offset>993</offset>
<length>10</length>
</annotation>
<annotation>
<mention>Chester</mention>
<wikiName>Chester City F.C.</wikiName>
<offset>1011</offset>
<length>7</length>
</annotation>
<annotation>
<mention>Boston</mention>
<wikiName>Boston United F.C.</wikiName>
<offset>1027</offset>
<length>6</length>
</annotation>
<annotation>
<mention>Chesterfield</mention>
<wikiName>Chesterfield F.C.</wikiName>
<offset>1040</offset>
<length>12</length>
</annotation>
<annotation>
<mention>Scarborough</mention>
<wikiName>Scarborough F.C.</wikiName>
<offset>1056</offset>
<length>11</length>
</annotation>
<annotation>
<mention>Enfield</mention>
<wikiName>Enfield Town F.C.</wikiName>
<offset>1074</offset>
<length>7</length>
</annotation>
<annotation>
<mention>Peterborough</mention>
<wikiName>Peterborough United F.C.</wikiName>
<offset>1090</offset>
<length>12</length>
</annotation>
<annotation>
<mention>Hull</mention>
<wikiName>Hull City A.F.C.</wikiName>
<offset>1108</offset>
<length>4</length>
</annotation>
<annotation>
<mention>Crewe</mention>
<wikiName>Crewe Alexandra F.C.</wikiName>
<offset>1119</offset>
<length>5</length>
</annotation>
<annotation>
<mention>Leyton Orient</mention>
<wikiName>Leyton Orient F.C.</wikiName>
<offset>1132</offset>
<length>13</length>
</annotation>
<annotation>
<mention>Stevenage</mention>
<wikiName>Stevenage F.C.</wikiName>
<offset>1153</offset>
<length>9</length>
</annotation>
<annotation>
<mention>Luton</mention>
<wikiName>Luton Town F.C.</wikiName>
<offset>1171</offset>
<length>5</length>
</annotation>
<annotation>
<mention>Boreham Wood</mention>
<wikiName>Boreham Wood F.C.</wikiName>
<offset>1182</offset>
<length>12</length>
</annotation>
<annotation>
<mention>Mansfield</mention>
<wikiName>Mansfield Town F.C.</wikiName>
<offset>1200</offset>
<length>9</length>
</annotation>
<annotation>
<mention>Stockport</mention>
<wikiName>Stockport County F.C.</wikiName>
<offset>1216</offset>
<length>9</length>
</annotation>
<annotation>
<mention>Notts County</mention>
<wikiName>Notts County F.C.</wikiName>
<offset>1234</offset>
<length>12</length>
</annotation>
<annotation>
<mention>Rochdale</mention>
<wikiName>Rochdale A.F.C.</wikiName>
<offset>1250</offset>
<length>8</length>
</annotation>
<annotation>
<mention>Preston</mention>
<wikiName>Preston North End F.C.</wikiName>
<offset>1268</offset>
<length>7</length>
</annotation>
<annotation>
<mention>York</mention>
<wikiName>York City F.C.</wikiName>
<offset>1284</offset>
<length>4</length>
</annotation>
<annotation>
<mention>Sudbury Town</mention>
<wikiName>Sudbury Town F.C.</wikiName>
<offset>1297</offset>
<length>12</length>
</annotation>
<annotation>
<mention>Brentford</mention>
<wikiName>Brentford F.C.</wikiName>
<offset>1313</offset>
<length>9</length>
</annotation>
<annotation>
<mention>Walsall</mention>
<wikiName>Walsall F.C.</wikiName>
<offset>1331</offset>
<length>7</length>
</annotation>
<annotation>
<mention>Burnley</mention>
<wikiName>Burnley F.C.</wikiName>
<offset>1347</offset>
<length>7</length>
</annotation>
<annotation>
<mention>Watford</mention>
<wikiName>Watford F.C.</wikiName>
<offset>1360</offset>
<length>7</length>
</annotation>
<annotation>
<mention>Ashford Town</mention>
<wikiName>Ashford United F.C.</wikiName>
<offset>1376</offset>
<length>12</length>
</annotation>
<annotation>
<mention>Wrexham</mention>
<wikiName>Wrexham F.C.</wikiName>
<offset>1394</offset>
<length>7</length>
</annotation>
<annotation>
<mention>Scunthorpe</mention>
<wikiName>Scunthorpe United F.C.</wikiName>
<offset>1410</offset>
<length>10</length>
</annotation>
<annotation>
<mention>Cardiff</mention>
<wikiName>Cardiff City F.C.</wikiName>
<offset>1428</offset>
<length>7</length>
</annotation>
<annotation>
<mention>Gillingham</mention>
<wikiName>Gillingham F.C.</wikiName>
<offset>1444</offset>
<length>10</length>
</annotation>
</document>
<document docName="241580newsML.txt">
<annotation>
<mention>RUGBY UNION</mention>
<wikiName>Rugby union</wikiName>
<offset>0</offset>
<length>11</length>
</annotation>
<annotation>
<mention>CAMPESE</mention>
<wikiName>David Campese</wikiName>
<offset>12</offset>
<length>7</length>
</annotation>
<annotation>
<mention>WALLABY</mention>
<wikiName></wikiName>
<offset>42</offset>
<length>7</length>
</annotation>
<annotation>
<mention>LONDON</mention>
<wikiName>London</wikiName>
<offset>57</offset>
<length>6</length>
</annotation>
<annotation>
<mention>Australia</mention>
<wikiName>Australia national rugby union team</wikiName>
<offset>76</offset>
<length>9</length>
</annotation>
<annotation>
<mention>David Campese</mention>
<wikiName>David Campese</wikiName>
<offset>103</offset>
<length>13</length>
</annotation>
<annotation>
<mention>Barbarians</mention>
<wikiName>Barbarian F.C.</wikiName>
<offset>160</offset>
<length>10</length>
</annotation>
<annotation>
<mention>European</mention>
<wikiName>Europe</wikiName>
<offset>205</offset>
<length>8</length>
</annotation>
<annotation>
<mention>Twickenham</mention>
<wikiName>Twickenham Stadium</wikiName>
<offset>222</offset>
<length>10</length>
</annotation>
<annotation>
<mention>Wallabies</mention>
<wikiName>Australia national rugby union team</wikiName>
<offset>251</offset>
<length>9</length>
</annotation>
<annotation>
<mention>Campese</mention>
<wikiName>David Campese</wikiName>
<offset>284</offset>
<length>7</length>
</annotation>
<annotation>
<mention>Wallaby</mention>
<wikiName>Australia national rugby union team</wikiName>
<offset>411</offset>
<length>7</length>
</annotation>
<annotation>
<mention>Barbarians</mention>
<wikiName>Barbarian F.C.</wikiName>
<offset>472</offset>
<length>10</length>
</annotation>
<annotation>
<mention>Wallaby</mention>
<wikiName>Australia national rugby union team</wikiName>
<offset>597</offset>
<length>7</length>
</annotation>
<annotation>
<mention>Matthew Burke</mention>
<wikiName>Matt Burke</wikiName>
<offset>755</offset>
<length>13</length>
</annotation>
</document>
<document docName="241581newsML.txt">
<annotation>
<mention>RUGBY UNION</mention>
<wikiName>Rugby union</wikiName>
<offset>0</offset>
<length>11</length>
</annotation>
<annotation>
<mention>AUSTRALIA</mention>
<wikiName>Australia national rugby union team</wikiName>
<offset>12</offset>
<length>9</length>
</annotation>
<annotation>
<mention>BARBARIANS</mention>
<wikiName>New Zealand Barbarians</wikiName>
<offset>27</offset>
<length>10</length>
</annotation>
<annotation>
<mention>LONDON</mention>
<wikiName>London</wikiName>
<offset>46</offset>
<length>6</length>
</annotation>
<annotation>
<mention>Australia</mention>
<wikiName>Australia national rugby union team</wikiName>
<offset>65</offset>
<length>9</length>
</annotation>
<annotation>
<mention>Barbarians</mention>
<wikiName>Barbarian F.C.</wikiName>
<offset>84</offset>
<length>10</length>
</annotation>
<annotation>
<mention>European</mention>
<wikiName>Europe</wikiName>
<offset>145</offset>
<length>8</length>
</annotation>
<annotation>
<mention>Australia</mention>
<wikiName>Australia national rugby union team</wikiName>
<offset>183</offset>
<length>9</length>
</annotation>
<annotation>
<mention>Matthew Burke</mention>
<wikiName>Matt Burke</wikiName>
<offset>202</offset>
<length>13</length>
</annotation>
<annotation>
<mention>Joe Roff</mention>
<wikiName>Joe Roff</wikiName>
<offset>221</offset>
<length>8</length>
</annotation>
<annotation>
<mention>David Campese</mention>
<wikiName>David Campese</wikiName>
<offset>231</offset>
<length>13</length>
</annotation>
<annotation>
<mention>Tim Horan</mention>
<wikiName>Tim Horan</wikiName>
<offset>246</offset>
<length>9</length>
</annotation>
<annotation>
<mention>Burke</mention>
<wikiName>Matt Burke</wikiName>
<offset>268</offset>
<length>5</length>
</annotation>
<annotation>
<mention>Burke</mention>
<wikiName>Matt Burke</wikiName>
<offset>292</offset>
<length>5</length>
</annotation>
<annotation>
<mention>Barbarians</mention>
<wikiName>Barbarian F.C.</wikiName>
<offset>304</offset>
<length>10</length>
</annotation>
<annotation>
<mention>Alan Bateman</mention>
<wikiName></wikiName>
<offset>324</offset>
<length>12</length>
</annotation>
<annotation>
<mention>Scott Quinnell</mention>
<wikiName>Scott Quinnell</wikiName>
<offset>338</offset>
<length>14</length>
</annotation>
<annotation>
<mention>Rob Andrew</mention>
<wikiName>Rob Andrew</wikiName>
<offset>366</offset>
<length>10</length>
</annotation>
</document>
<document docName="241584newsML.txt">
<annotation>
<mention>ZIMBABWE OPEN</mention>
<wikiName>Zimbabwe Open</wikiName>
<offset>5</offset>
<length>13</length>
</annotation>
<annotation>
<mention>HARARE</mention>
<wikiName>Harare</wikiName>
<offset>40</offset>
<length>6</length>
</annotation>
<annotation>
<mention>Zimbabwe Open</mention>
<wikiName>Zimbabwe Open</wikiName>
<offset>94</offset>
<length>13</length>
</annotation>
<annotation>
<mention>South African</mention>
<wikiName>South Africa</wikiName>
<offset>121</offset>
<length>13</length>
</annotation>
<annotation>
<mention>Mark McNulty</mention>
<wikiName>Mark McNulty</wikiName>
<offset>156</offset>
<length>12</length>
</annotation>
<annotation>
<mention>Zimbabwe</mention>
<wikiName>Zimbabwe</wikiName>
<offset>170</offset>
<length>8</length>
</annotation>
<annotation>
<mention>Des Terblanche</mention>
<wikiName>Des Terblanche</wikiName>
<offset>194</offset>
<length>14</length>
</annotation>
<annotation>
<mention>Nick Price</mention>
<wikiName>Nick Price</wikiName>
<offset>223</offset>
<length>10</length>
</annotation>
<annotation>
<mention>Zimbabwe</mention>
<wikiName>Zimbabwe</wikiName>
<offset>235</offset>
<length>8</length>
</annotation>
<annotation>
<mention>Clinton Whitelaw</mention>
<wikiName>Clinton Whitelaw</wikiName>
<offset>259</offset>
<length>16</length>
</annotation>
<annotation>
<mention>Mark Cayeux</mention>
<wikiName></wikiName>
<offset>286</offset>
<length>11</length>
</annotation>
<annotation>
<mention>Zimbabwe</mention>
<wikiName>Zimbabwe</wikiName>
<offset>299</offset>
<length>8</length>
</annotation>
<annotation>
<mention>Justin Hobday</mention>
<wikiName>Justin Hobday</wikiName>
<offset>320</offset>
<length>13</length>
</annotation>
<annotation>
<mention>Steve van Vuuren</mention>
<wikiName>Steve van Vuuren</wikiName>
<offset>348</offset>
<length>16</length>
</annotation>
<annotation>
<mention>Brett Liddle</mention>
<wikiName>Brett Liddle</wikiName>
<offset>379</offset>
<length>12</length>
</annotation>
<annotation>
<mention>Hugh Baiocchi</mention>
<wikiName>Hugh Baiocchi</wikiName>
<offset>406</offset>
<length>13</length>
</annotation>
<annotation>
<mention>Greg Reid</mention>
<wikiName></wikiName>
<offset>430</offset>
<length>9</length>
</annotation>
<annotation>
<mention>Mark
Murless</mention>
<wikiName></wikiName>
<offset>450</offset>
<length>13</length>
</annotation>
<annotation>
<mention>Trevor Dodds</mention>
<wikiName>Trevor Dodds</wikiName>
<offset>478</offset>
<length>12</length>
</annotation>
<annotation>
<mention>Namibia</mention>
<wikiName>Namibia</wikiName>
<offset>492</offset>
<length>7</length>
</annotation>
<annotation>
<mention>Schalk van der
Merwe</mention>
<wikiName></wikiName>
<offset>511</offset>
<length>21</length>
</annotation>
<annotation>
<mention>Namibia</mention>
<wikiName>Namibia</wikiName>
<offset>534</offset>
<length>7</length>
</annotation>
<annotation>
<mention>Hennie Swart</mention>
<wikiName></wikiName>
<offset>553</offset>
<length>12</length>
</annotation>
<annotation>
<mention>Andrew Pitts</mention>
<wikiName></wikiName>
<offset>577</offset>
<length>12</length>
</annotation>
<annotation>
<mention>U.S.</mention>
<wikiName>United States</wikiName>
<offset>591</offset>
<length>4</length>
</annotation>
<annotation>
<mention>Sean Farrell</mention>
<wikiName></wikiName>
<offset>611</offset>
<length>12</length>
</annotation>
<annotation>
<mention>Zimbabwe</mention>
<wikiName>Zimbabwe</wikiName>
<offset>625</offset>
<length>8</length>
</annotation>
<annotation>
<mention>Glen Cayeux</mention>
<wikiName></wikiName>
<offset>645</offset>
<length>11</length>
</annotation>
<annotation>
<mention>Zimbabwe</mention>
<wikiName>Zimbabwe</wikiName>
<offset>659</offset>
<length>8</length>
</annotation>
<annotation>
<mention>Nic Henning</mention>
<wikiName></wikiName>
<offset>679</offset>
<length>11</length>
</annotation>
<annotation>
<mention>Dion
Fourie</mention>
<wikiName></wikiName>
<offset>701</offset>
<length>12</length>
</annotation>
<annotation>
<mention>Steven Waltman</mention>
<wikiName></wikiName>
<offset>728</offset>
<length>14</length>
</annotation>
<annotation>
<mention>Bradford Vaughan</mention>
<wikiName>Bradford Vaughan</wikiName>
<offset>753</offset>
<length>16</length>
</annotation>
<annotation>
<mention>Andrew Park</mention>
<wikiName></wikiName>
<offset>781</offset>
<length>11</length>
</annotation>
<annotation>
<mention>Desvonde Botes</mention>
<wikiName>Desvonde Botes</wikiName>
<offset>803</offset>
<length>14</length>
</annotation>
</document>
<document docName="241587newsML.txt">
<annotation>
<mention>ALBANIA</mention>
<wikiName>Albania national football team</wikiName>
<offset>18</offset>
<length>7</length>
</annotation>
<annotation>
<mention>N.IRELAND</mention>
<wikiName>Northern Ireland national football team</wikiName>
<offset>46</offset>
<length>9</length>
</annotation>
<annotation>
<mention>TIRANA</mention>
<wikiName>Tirana</wikiName>
<offset>58</offset>
<length>6</length>
</annotation>
<annotation>
<mention>Albanian</mention>
<wikiName>Albania national football team</wikiName>
<offset>77</offset>
<length>8</length>
</annotation>
<annotation>
<mention>Astrit Hafizi</mention>
<wikiName></wikiName>
<offset>92</offset>
<length>13</length>
</annotation>
<annotation>
<mention>FIFA</mention>
<wikiName>FIFA</wikiName>
<offset>196</offset>
<length>4</length>
</annotation>
<annotation>
<mention>Saturday'sWorld Cup</mention>
<wikiName></wikiName>
<offset>233</offset>
<length>19</length>
</annotation>
<annotation>
<mention>Northern Ireland</mention>
<wikiName>Northern Ireland national football team</wikiName>
<offset>282</offset>
<length>16</length>
</annotation>
<annotation>
<mention>Albania</mention>
<wikiName>Albania</wikiName>
<offset>342</offset>
<length>7</length>
</annotation>
<annotation>
<mention>Balkan</mention>
<wikiName>Balkans</wikiName>
<offset>373</offset>
<length>6</length>
</annotation>
<annotation>
<mention>FIFA</mention>
<wikiName>FIFA</wikiName>
<offset>450</offset>
<length>4</length>
</annotation>
<annotation>
<mention>Albania</mention>
<wikiName>Albania</wikiName>
<offset>466</offset>
<length>7</length>
</annotation>
<annotation>
<mention>Albanian Football Association</mention>
<wikiName>Albanian Football Association</wikiName>
<offset>543</offset>
<length>29</length>
</annotation>
<annotation>
<mention>Eduard Dervishi</mention>
<wikiName></wikiName>
<offset>591</offset>
<length>15</length>
</annotation>
<annotation>
<mention>Belfast</mention>
<wikiName>Belfast</wikiName>
<offset>686</offset>
<length>7</length>
</annotation>
<annotation>
<mention>Hafizi</mention>
<wikiName></wikiName>
<offset>701</offset>
<length>6</length>
</annotation>
<annotation>
<mention>Northern Ireland</mention>
<wikiName>Northern Ireland national football team</wikiName>
<offset>806</offset>
<length>16</length>
</annotation>
<annotation>
<mention>Artur Lekbello</mention>
<wikiName>Artur Lekbello</wikiName>
<offset>863</offset>
<length>14</length>
</annotation>
<annotation>
<mention>Hafizi</mention>
<wikiName></wikiName>
<offset>912</offset>
<length>6</length>
</annotation>
<annotation>
<mention>Belfast</mention>
<wikiName>Belfast</wikiName>
<offset>953</offset>
<length>7</length>
</annotation>
<annotation>
<mention>Blendi Nallbani</mention>
<wikiName>Blendi Nallbani</wikiName>
<offset>991</offset>
<length>15</length>
</annotation>
<annotation>
<mention>Armir Grima</mention>
<wikiName></wikiName>
<offset>1008</offset>
<length>11</length>
</annotation>
<annotation>
<mention>Rudi Vata</mention>
<wikiName>Rudi Vata</wikiName>
<offset>1033</offset>
<length>9</length>
</annotation>
<annotation>
<mention>Saimir Malko</mention>
<wikiName></wikiName>
<offset>1044</offset>
<length>12</length>
</annotation>
<annotation>
<mention>Arjan Xhumba</mention>
<wikiName>Arjan Xhumba</wikiName>
<offset>1058</offset>
<length>12</length>
</annotation>
<annotation>
<mention>Ilir Shulku</mention>
<wikiName>Ilir Shulku</wikiName>
<offset>1072</offset>
<length>11</length>
</annotation>
<annotation>
<mention>Afrim Tole</mention>
<wikiName></wikiName>
<offset>1085</offset>
<length>10</length>
</annotation>
<annotation>
<mention>Nevil Dede</mention>
<wikiName>Nevil Dede</wikiName>
<offset>1097</offset>
<length>10</length>
</annotation>
<annotation>
<mention>Arjan Bellai</mention>
<wikiName></wikiName>
<offset>1109</offset>
<length>12</length>
</annotation>
<annotation>
<mention>Bledar Kola</mention>
<wikiName>Bledar Kola</wikiName>
<offset>1137</offset>
<length>11</length>
</annotation>
<annotation>
<mention>Altin Haxhi</mention>
<wikiName>Altin Haxhi</wikiName>
<offset>1150</offset>
<length>11</length>
</annotation>
<annotation>
<mention>Sokol Prenga</mention>
<wikiName></wikiName>
<offset>1163</offset>
<length>12</length>
</annotation>
<annotation>
<mention>Ervin Fakaj</mention>
<wikiName>Ervin Fakaj</wikiName>
<offset>1177</offset>
<length>11</length>
</annotation>
<annotation>
<mention>Altin Rraklli</mention>
<wikiName>Altin Rraklli</wikiName>
<offset>1201</offset>
<length>13</length>
</annotation>
<annotation>
<mention>Viktor Paco</mention>
<wikiName>Viktor Paço</wikiName>
<offset>1216</offset>
<length>11</length>
</annotation>
<annotation>
<mention>Fatmir Vata</mention>
<wikiName>Fatmir Vata</wikiName>
<offset>1229</offset>
<length>11</length>
</annotation>
<annotation>
<mention>Erjon Bogdani</mention>
<wikiName>Erjon Bogdani</wikiName>
<offset>1242</offset>
<length>13</length>
</annotation>
</document>
<document docName="241588newsML.txt">
<annotation>
<mention>JONES</mention>
<wikiName></wikiName>
<offset>8</offset>
<length>5</length>
</annotation>
<annotation>
<mention>VICTORIA</mention>
<wikiName>Victoria cricket team</wikiName>
<offset>30</offset>
<length>8</length>
</annotation>
<annotation>
<mention>HOBART</mention>
<wikiName>Hobart</wikiName>
<offset>52</offset>
<length>6</length>
</annotation>
<annotation>
<mention>Australia</mention>
<wikiName>Australia</wikiName>
<offset>60</offset>
<length>9</length>
</annotation>
<annotation>
<mention>Australia</mention>
<wikiName>Australia</wikiName>
<offset>89</offset>
<length>9</length>
</annotation>
<annotation>
<mention>Dean Jones</mention>
<wikiName>Dean Jones (cricketer)</wikiName>
<offset>112</offset>
<length>10</length>
</annotation>
<annotation>
<mention>Victoria</mention>
<wikiName>Victoria cricket team</wikiName>
<offset>151</offset>
<length>8</length>
</annotation>
<annotation>
<mention>Sheffield Shield</mention>
<wikiName>Sheffield Shield</wikiName>
<offset>181</offset>
<length>16</length>
</annotation>
<annotation>
<mention>Tasmania</mention>
<wikiName>Tasmania cricket team</wikiName>
<offset>212</offset>
<length>8</length>
</annotation>
<annotation>
<mention>Victoria</mention>
<wikiName>Victoria cricket team</wikiName>
<offset>301</offset>
<length>8</length>
</annotation>
<annotation>
<mention>Hobart</mention>
<wikiName>Hobart</wikiName>
<offset>392</offset>
<length>6</length>
</annotation>
<annotation>
<mention>Bellerive Oval</mention>
<wikiName>Bellerive Oval</wikiName>
<offset>401</offset>
<length>14</length>
</annotation>
<annotation>
<mention>Jones</mention>
<wikiName></wikiName>
<offset>418</offset>
<length>5</length>
</annotation>
<annotation>
<mention>Tasmanian</mention>
<wikiName>Tasmania cricket team</wikiName>
<offset>493</offset>
<length>9</length>
</annotation>
<annotation>
<mention>David Boon</mention>
<wikiName>David Boon</wikiName>
<offset>508</offset>
<length>10</length>
</annotation>
<annotation>
<mention>Shaun Young</mention>
<wikiName>Shaun Young</wikiName>
<offset>520</offset>
<length>11</length>
</annotation>
<annotation>
<mention>Michael DiVenuto</mention>
<wikiName>Michael Di Venuto</wikiName>
<offset>536</offset>
<length>16</length>
</annotation>
<annotation>
<mention>Jones</mention>
<wikiName></wikiName>
<offset>555</offset>
<length>5</length>
</annotation>
<annotation>
<mention>Australia</mention>
<wikiName>Australia national cricket team</wikiName>
<offset>619</offset>
<length>9</length>
</annotation>
<annotation>
<mention>Shane Warne</mention>
<wikiName>Shane Warne</wikiName>
<offset>646</offset>
<length>11</length>
</annotation>
<annotation>
<mention>Laurie Harper</mention>
<wikiName>Laurie Harper</wikiName>
<offset>712</offset>
<length>13</length>
</annotation>
<annotation>
<mention>Harper</mention>
<wikiName>Laurie Harper</wikiName>
<offset>728</offset>
<length>6</length>
</annotation>
<annotation>
<mention>Australia</mention>
<wikiName>Australia national cricket team</wikiName>
<offset>854</offset>
<length>9</length>
</annotation>
<annotation>
<mention>David Boon</mention>
<wikiName>David Boon</wikiName>
<offset>877</offset>
<length>10</length>
</annotation>
<annotation>
<mention>Shaun Young</mention>
<wikiName>Shaun Young</wikiName>
<offset>915</offset>
<length>11</length>
</annotation>
<annotation>
<mention>Pace</mention>
<wikiName></wikiName>
<offset>983</offset>
<length>4</length>
</annotation>
<annotation>
<mention>Ian Harvey</mention>
<wikiName>Ian Harvey</wikiName>
<offset>995</offset>
<length>10</length>
</annotation>
<annotation>
<mention>Victoria</mention>
<wikiName>Victoria cricket team</wikiName>
<offset>1031</offset>
<length>8</length>
</annotation>
</document>
<document docName="241589newsML.txt">
<annotation>
<mention>SHEFFIELD SHIELD</mention>
<wikiName>Sheffield Shield</wikiName>
<offset>8</offset>
<length>16</length>
</annotation>
<annotation>
<mention>HOBART</mention>
<wikiName>Hobart</wikiName>
<offset>33</offset>
<length>6</length>
</annotation>
<annotation>
<mention>Australia</mention>
<wikiName>Australia</wikiName>
<offset>41</offset>
<length>9</length>
</annotation>
<annotation>
<mention>Sheffield Shield</mention>
<wikiName>Sheffield Shield</wikiName>
<offset>117</offset>
<length>16</length>
</annotation>
<annotation>
<mention>Tasmania</mention>
<wikiName>Tasmania cricket team</wikiName>
<offset>156</offset>
<length>8</length>
</annotation>
<annotation>
<mention>Victoria</mention>
<wikiName>Victoria cricket team</wikiName>
<offset>169</offset>
<length>8</length>
</annotation>
<annotation>
<mention>Bellerive Oval</mention>
<wikiName>Bellerive Oval</wikiName>
<offset>181</offset>
<length>14</length>
</annotation>
<annotation>
<mention>Tasmania</mention>
<wikiName>Tasmania cricket team</wikiName>
<offset>210</offset>
<length>8</length>
</annotation>
<annotation>
<mention>Michael DiVenuto</mention>
<wikiName>Michael Di Venuto</wikiName>
<offset>243</offset>
<length>16</length>
</annotation>
<annotation>
<mention>David Boon</mention>
<wikiName>David Boon</wikiName>
<offset>265</offset>
<length>10</length>
</annotation>
<annotation>
<mention>Shaun Young</mention>
<wikiName>Shaun Young</wikiName>
<offset>281</offset>
<length>11</length>
</annotation>
<annotation>
<mention>Victoria</mention>
<wikiName>Victoria cricket team</wikiName>
<offset>299</offset>
<length>8</length>
</annotation>
<annotation>
<mention>Dean Jones</mention>
<wikiName>Dean Jones (cricketer)</wikiName>
<offset>323</offset>
<length>10</length>
</annotation>
</document>
<document docName="241592newsML.txt">
<annotation>
<mention>SOUTH KOREA</mention>
<wikiName>South Korea</wikiName>
<offset>7</offset>
<length>11</length>
</annotation>
<annotation>
<mention>ABU DHABI</mention>
<wikiName>Abu Dhabi</wikiName>
<offset>55</offset>
<length>9</length>
</annotation>
<annotation>
<mention>South Korea</mention>
<wikiName>South Korea national football team</wikiName>
<offset>77</offset>
<length>11</length>
</annotation>
<annotation>
<mention>Asian Cup</mention>
<wikiName>AFC Asian Cup</wikiName>
<offset>118</offset>
<length>9</length>
</annotation>
<annotation>
<mention>Indonesia</mention>
<wikiName>Indonesia national football team</wikiName>
<offset>167</offset>
<length>9</length>
</annotation>
<annotation>
<mention>South Korea</mention>
<wikiName>South Korea national football team</wikiName>
<offset>254</offset>
<length>11</length>
</annotation>
<annotation>
<mention>Indonesia</mention>
<wikiName>Indonesia national football team</wikiName>
<offset>274</offset>
<length>9</length>
</annotation>
<annotation>
<mention>Asian Cup</mention>
<wikiName>AFC Asian Cup</wikiName>
<offset>298</offset>
<length>9</length>
</annotation>
<annotation>
<mention>Kim Do Hoon</mention>
<wikiName></wikiName>
<offset>385</offset>
<length>11</length>
</annotation>
<annotation>
<mention>South Korea</mention>
<wikiName>South Korea national football team</wikiName>
<offset>420</offset>
<length>11</length>
</annotation>
<annotation>
<mention>Hwang Sun Hong</mention>
<wikiName>Hwang Sun-Hong</wikiName>
<offset>570</offset>
<length>14</length>
</annotation>
<annotation>
<mention>Koreans</mention>
<wikiName>South Korea</wikiName>
<offset>657</offset>
<length>7</length>
</annotation>
<annotation>
<mention>Ko Jeong Woon</mention>
<wikiName></wikiName>
<offset>844</offset>
<length>13</length>
</annotation>
<annotation>
<mention>Koreans</mention>
<wikiName>South Korea</wikiName>
<offset>911</offset>
<length>7</length>
</annotation>
<annotation>
<mention>Indonesians</mention>
<wikiName></wikiName>
<offset>956</offset>
<length>11</length>
</annotation>
<annotation>
<mention>Ronny Wabia</mention>
<wikiName></wikiName>
<offset>997</offset>
<length>11</length>
</annotation>
<annotation>
<mention>Indonesia</mention>
<wikiName>Indonesia national football team</wikiName>
<offset>1020</offset>
<length>9</length>
</annotation>
<annotation>
<mention>Korean</mention>
<wikiName>South Korea</wikiName>
<offset>1083</offset>
<length>6</length>
</annotation>
<annotation>
<mention>Kim Byung</mention>
<wikiName></wikiName>
<offset>1101</offset>
<length>9</length>
</annotation>
<annotation>
<mention>Indonesia</mention>
<wikiName>Indonesia national football team</wikiName>
<offset>1179</offset>
<length>9</length>
</annotation>
<annotation>
<mention>Widodo Putra</mention>
<wikiName></wikiName>
<offset>1191</offset>
<length>12</length>
</annotation>
<annotation>
<mention>Kuwait</mention>
<wikiName>Kuwait national football team</wikiName>
<offset>1243</offset>
<length>6</length>
</annotation>
<annotation>
<mention>Korean</mention>
<wikiName>South Korea</wikiName>
<offset>1306</offset>
<length>6</length>
</annotation>
<annotation>
<mention>Indonesian</mention>
<wikiName>Indonesia</wikiName>
<offset>1358</offset>
<length>10</length>
</annotation>
<annotation>
<mention>Hendro Kartiko</mention>
<wikiName>Hendro Kartiko</wikiName>
<offset>1376</offset>
<length>14</length>
</annotation>
<annotation>
<mention>Koreans</mention>
<wikiName>South Korea</wikiName>
<offset>1438</offset>
<length>7</length>
</annotation>
<annotation>
<mention>Indonesia</mention>
<wikiName>Indonesia national football team</wikiName>
<offset>1478</offset>
<length>9</length>
</annotation>
<annotation>
<mention>Hendro Kartiko</mention>
<wikiName>Hendro Kartiko</wikiName>
<offset>1492</offset>
<length>14</length>
</annotation>
<annotation>
<mention>Agung Setyabudi</mention>
<wikiName>Agung Setyabudi</wikiName>
<offset>1510</offset>
<length>15</length>
</annotation>
<annotation>
<mention>Suwandi Siswoyo</mention>
<wikiName></wikiName>
<offset>1529</offset>
<length>15</length>
</annotation>
<annotation>
<mention>Yeyen Tumera</mention>
<wikiName></wikiName>
<offset>1548</offset>
<length>12</length>
</annotation>
<annotation>
<mention>Aples Tecuari</mention>
<wikiName></wikiName>
<offset>1564</offset>
<length>13</length>
</annotation>
<annotation>
<mention>Sudiriman</mention>
<wikiName></wikiName>
<offset>1581</offset>
<length>9</length>
</annotation>
<annotation>
<mention>Widodo Gahyo Purta</mention>
<wikiName></wikiName>
<offset>1594</offset>
<length>18</length>
</annotation>
<annotation>
<mention>Ronny Wabia</mention>
<wikiName></wikiName>
<offset>1616</offset>
<length>11</length>
</annotation>
<annotation>
<mention>Bima Sakti</mention>
<wikiName>Bima Sakti</wikiName>
<offset>1632</offset>
<length>10</length>
</annotation>
<annotation>
<mention>Chris Yarangga</mention>
<wikiName></wikiName>
<offset>1647</offset>
<length>14</length>
</annotation>
<annotation>
<mention>Francis Wewengken</mention>
<wikiName></wikiName>
<offset>1666</offset>
<length>17</length>
</annotation>
<annotation>
<mention>Marzuki Badriawan</mention>
<wikiName></wikiName>
<offset>1692</offset>
<length>17</length>
</annotation>
<annotation>
<mention>South Korea</mention>
<wikiName>South Korea national football team</wikiName>
<offset>1712</offset>
<length>11</length>
</annotation>
<annotation>
<mention>Kim Byung Ji</mention>
<wikiName></wikiName>
<offset>1727</offset>
<length>12</length>
</annotation>
<annotation>
<mention>Kim Pan Keun</mention>
<wikiName></wikiName>
<offset>1743</offset>
<length>12</length>
</annotation>
<annotation>
<mention>Huh Ki Tae</mention>
<wikiName></wikiName>
<offset>1759</offset>
<length>10</length>
</annotation>
<annotation>
<mention>Roh Sang Rae</mention>
<wikiName></wikiName>
<offset>1773</offset>
<length>12</length>
</annotation>
<annotation>
<mention>Sin Tae Yong</mention>
<wikiName></wikiName>
<offset>1789</offset>
<length>12</length>
</annotation>
<annotation>
<mention>Kim Do Hoon</mention>
<wikiName></wikiName>
<offset>1809</offset>
<length>11</length>
</annotation>
<annotation>
<mention>Ko Jeong Woon</mention>
<wikiName></wikiName>
<offset>1825</offset>
<length>13</length>
</annotation>
<annotation>
<mention>Ha Seok Ju</mention>
<wikiName></wikiName>
<offset>1843</offset>
<length>10</length>
</annotation>
<annotation>
<mention>Hwang Sun Hong</mention>
<wikiName>Hwang Sun-Hong</wikiName>
<offset>1858</offset>
<length>14</length>
</annotation>
<annotation>
<mention>Lee Young Jin</mention>
<wikiName></wikiName>
<offset>1877</offset>
<length>13</length>
</annotation>
<annotation>
<mention>Yoo Sang Chul</mention>
<wikiName></wikiName>
<offset>1895</offset>
<length>13</length>
</annotation>
<annotation>
<mention>Kim Joo Sung</mention>
<wikiName></wikiName>
<offset>1913</offset>
<length>12</length>
</annotation>
</document>
<document docName="241593newsML.txt">
<annotation>
<mention>ISRAELI</mention>
<wikiName>Israel</wikiName>
<offset>7</offset>
<length>7</length>
</annotation>
<annotation>
<mention>JERUSALEM</mention>
<wikiName>Jerusalem</wikiName>
<offset>50</offset>
<length>9</length>
</annotation>
<annotation>
<mention>Zafririm Holon</mention>
<wikiName>Hapoel Tzafririm Holon F.C.</wikiName>
<offset>141</offset>
<length>14</length>
</annotation>
<annotation>
<mention>Hapoel Petah Tikva</mention>
<wikiName>Hapoel Petah Tikva F.C.</wikiName>
<offset>164</offset>
<length>18</length>
</annotation>
<annotation>
<mention>Maccabi Haifa</mention>
<wikiName>Maccabi Haifa F.C.</wikiName>
<offset>190</offset>
<length>13</length>
</annotation>
<annotation>
<mention>Hapoel Taibe</mention>
<wikiName>Hapoel Tayibe F.C.</wikiName>
<offset>213</offset>
<length>12</length>
</annotation>
<annotation>
<mention>Hapoel Kfar Sava</mention>
<wikiName></wikiName>
<offset>234</offset>
<length>16</length>
</annotation>
<annotation>
<mention>Bnei Yehuda</mention>
<wikiName>Bnei Yehuda Tel Aviv F.C.</wikiName>
<offset>257</offset>
<length>11</length>
</annotation>
<annotation>
<mention>Hapoel Tel Aviv</mention>
<wikiName>Hapoel Tel Aviv F.C.</wikiName>
<offset>278</offset>
<length>15</length>
</annotation>
<annotation>
<mention>Betar Jerusalem</mention>
<wikiName>Beitar Jerusalem F.C.</wikiName>
<offset>301</offset>
<length>15</length>
</annotation>
<annotation>
<mention>Hapoel Jerusalem</mention>
<wikiName>Hapoel Jerusalem F.C.</wikiName>
<offset>322</offset>
<length>16</length>
</annotation>
<annotation>
<mention>Maccabi Tel Aviv</mention>
<wikiName>Maccabi Tel Aviv F.C.</wikiName>
<offset>345</offset>
<length>16</length>
</annotation>
<annotation>
<mention>Ironi Rishon Lezion</mention>
<wikiName></wikiName>
<offset>366</offset>
<length>19</length>
</annotation>
<annotation>
<mention>Maccabi Herzliya</mention>
<wikiName>Maccabi Herzliya F.C.</wikiName>
<offset>394</offset>
<length>16</length>
</annotation>
<annotation>
<mention>Hapoel Beit She'an</mention>
<wikiName></wikiName>
<offset>415</offset>
<length>18</length>
</annotation>
<annotation>
<mention>Hapoel Beersheba</mention>
<wikiName>Hapoel Be'er Sheva F.C.</wikiName>
<offset>443</offset>
<length>16</length>
</annotation>
<annotation>
<mention>Maccabi Petah Tikva</mention>
<wikiName>Maccabi Petah Tikva F.C.</wikiName>
<offset>464</offset>
<length>19</length>
</annotation>
<annotation>
<mention>Hapoel Haifa</mention>
<wikiName>Hapoel Haifa F.C.</wikiName>
<offset>492</offset>
<length>12</length>
</annotation>
<annotation>
<mention>Betar Jerusalem</mention>
<wikiName>Beitar Jerusalem F.C.</wikiName>
<offset>596</offset>
<length>15</length>
</annotation>
<annotation>
<mention>Hapoel Petah Tikva</mention>
<wikiName>Hapoel Petah Tikva F.C.</wikiName>
<offset>648</offset>
<length>18</length>
</annotation>
<annotation>
<mention>Hapoel Beersheba</mention>
<wikiName>Hapoel Be'er Sheva F.C.</wikiName>
<offset>705</offset>
<length>16</length>
</annotation>
<annotation>
<mention>Maccabi Tel Aviv</mention>
<wikiName>Maccabi Tel Aviv F.C.</wikiName>
<offset>762</offset>
<length>17</length>
</annotation>
<annotation>
<mention>Maccabi Petah Tikva</mention>
<wikiName>Maccabi Petah Tikva F.C.</wikiName>
<offset>819</offset>
<length>19</length>
</annotation>
<annotation>
<mention>Bnei Yehuda</mention>
<wikiName>Bnei Yehuda Tel Aviv F.C.</wikiName>
<offset>876</offset>
<length>11</length>
</annotation>
<annotation>
<mention>Hapoel Haifa</mention>
<wikiName>Hapoel Haifa F.C.</wikiName>
<offset>928</offset>
<length>12</length>
</annotation>
<annotation>
<mention>Maccabi Haifa</mention>
<wikiName>Maccabi Haifa F.C.</wikiName>
<offset>980</offset>
<length>13</length>
</annotation>
<annotation>
<mention>Hapoel Kfar Sava</mention>
<wikiName></wikiName>
<offset>1032</offset>
<length>16</length>
</annotation>
<annotation>
<mention>Hapoel Jerusalem</mention>
<wikiName>Hapoel Jerusalem F.C.</wikiName>
<offset>1089</offset>
<length>16</length>
</annotation>
<annotation>
<mention>Ironi Rishon</mention>
<wikiName></wikiName>
<offset>1146</offset>
<length>12</length>
</annotation>
<annotation>
<mention>Zafririm Holon</mention>
<wikiName>Hapoel Tzafririm Holon F.C.</wikiName>
<offset>1203</offset>
<length>14</length>
</annotation>
<annotation>
<mention>Maccabi Herzliya</mention>
<wikiName>Maccabi Herzliya F.C.</wikiName>
<offset>1255</offset>
<length>16</length>
</annotation>
<annotation>
<mention>Hapoel Taiba</mention>
<wikiName></wikiName>
<offset>1312</offset>
<length>12</length>
</annotation>
<annotation>
<mention>Hapoel Beit She'an</mention>
<wikiName></wikiName>
<offset>1364</offset>
<length>18</length>
</annotation>
<annotation>
<mention>Hapoel Tel Aviv</mention>
<wikiName>Hapoel Tel Aviv F.C.</wikiName>
<offset>1416</offset>
<length>15</length>
</annotation>
</document>
<document docName="241595newsML.txt">
<annotation>
<mention>ASIAN CUP</mention>
<wikiName>AFC Asian Cup</wikiName>
<offset>7</offset>
<length>9</length>
</annotation>
<annotation>
<mention>ABU DHABI</mention>
<wikiName>Abu Dhabi</wikiName>
<offset>27</offset>
<length>9</length>
</annotation>
<annotation>
<mention>Asian Cup</mention>
<wikiName>AFC Asian Cup</wikiName>
<offset>60</offset>
<length>9</length>
</annotation>
<annotation>
<mention>United Arab Emirates</mention>
<wikiName>United Arab Emirates national football team</wikiName>
<offset>100</offset>
<length>20</length>
</annotation>
<annotation>
<mention>Kuwait</mention>
<wikiName>Kuwait national football team</wikiName>
<offset>123</offset>
<length>6</length>
</annotation>
<annotation>
<mention>UAE</mention>
<wikiName>United Arab Emirates national football team</wikiName>
<offset>158</offset>
<length>3</length>
</annotation>
<annotation>
<mention>Hassan Ahmed</mention>
<wikiName></wikiName>
<offset>164</offset>
<length>12</length>
</annotation>
<annotation>
<mention>Adnan Al Talyani</mention>
<wikiName>Adnan Al Talyani</wikiName>
<offset>181</offset>
<length>16</length>
</annotation>
<annotation>
<mention>Bakhit Saad</mention>
<wikiName></wikiName>
<offset>202</offset>
<length>11</length>
</annotation>
<annotation>
<mention>Kuwait</mention>
<wikiName>Kuwait national football team</wikiName>
<offset>218</offset>
<length>6</length>
</annotation>
<annotation>
<mention>Jassem Al-Huwaidi</mention>
<wikiName></wikiName>
<offset>227</offset>
<length>17</length>
</annotation>
<annotation>
<mention>South Korea</mention>
<wikiName>South Korea national football team</wikiName>
<offset>274</offset>
<length>11</length>
</annotation>
<annotation>
<mention>Indonesia</mention>
<wikiName>Indonesia national football team</wikiName>
<offset>288</offset>
<length>9</length>
</annotation>
<annotation>
<mention>South Korea</mention>
<wikiName>South Korea national football team</wikiName>
<offset>317</offset>
<length>11</length>
</annotation>
<annotation>
<mention>Kim Do Hoon</mention>
<wikiName></wikiName>
<offset>331</offset>
<length>11</length>
</annotation>
<annotation>
<mention>Hwang Sun Hong</mention>
<wikiName>Hwang Sun-Hong</wikiName>
<offset>346</offset>
<length>14</length>
</annotation>
<annotation>
<mention>Koo
Jeon Woon</mention>
<wikiName></wikiName>
<offset>371</offset>
<length>14</length>
</annotation>
<annotation>
<mention>Indonesia</mention>
<wikiName>Indonesia national football team</wikiName>
<offset>390</offset>
<length>9</length>
</annotation>
<annotation>
<mention>Ronny Wabia</mention>
<wikiName></wikiName>
<offset>402</offset>
<length>11</length>
</annotation>
<annotation>
<mention>Widodo Putra</mention>
<wikiName></wikiName>
<offset>418</offset>
<length>12</length>
</annotation>
<annotation>
<mention>South Korea</mention>
<wikiName>South Korea national football team</wikiName>
<offset>546</offset>
<length>11</length>
</annotation>
<annotation>
<mention>UAE</mention>
<wikiName>United Arab Emirates national football team</wikiName>
<offset>586</offset>
<length>3</length>
</annotation>
<annotation>
<mention>Kuwait</mention>
<wikiName>Kuwait national football team</wikiName>
<offset>621</offset>
<length>6</length>
</annotation>
<annotation>
<mention>Indonesia</mention>
<wikiName>Indonesia national football team</wikiName>
<offset>656</offset>
<length>9</length>
</annotation>
</document>
<document docName="241599newsML.txt">
<annotation>
<mention>NBA</mention>
<wikiName>National Basketball Association</wikiName>
<offset>0</offset>
<length>3</length>
</annotation>
<annotation>
<mention>NEW YORK</mention>
<wikiName>New York City</wikiName>
<offset>48</offset>
<length>8</length>
</annotation>
<annotation>
<mention>National
Basketball Association</mention>
<wikiName>National Basketball Association</wikiName>
<offset>82</offset>
<length>32</length>
</annotation>
<annotation>
<mention>ATLANTIC</mention>
<wikiName>Atlantic Division (NBA)</wikiName>
<offset>232</offset>
<length>8</length>
</annotation>
<annotation>
<mention>MIAMI</mention>
<wikiName>Miami Heat</wikiName>
<offset>274</offset>
<length>5</length>
</annotation>
<annotation>
<mention>NEW YORK</mention>
<wikiName>New York Knicks</wikiName>
<offset>306</offset>
<length>8</length>
</annotation>
<annotation>
<mention>ORLANDO</mention>
<wikiName>Orlando Magic</wikiName>
<offset>338</offset>
<length>7</length>
</annotation>
<annotation>
<mention>WASHINGTON</mention>
<wikiName>Washington Wizards</wikiName>
<offset>370</offset>
<length>10</length>
</annotation>
<annotation>
<mention>PHILADELPHIA</mention>
<wikiName>Philadelphia 76ers</wikiName>
<offset>406</offset>
<length>12</length>
</annotation>
<annotation>
<mention>NEW JERSEY</mention>
<wikiName>Brooklyn Nets</wikiName>
<offset>443</offset>
<length>10</length>
</annotation>
<annotation>
<mention>BOSTON</mention>
<wikiName>Boston Celtics</wikiName>
<offset>479</offset>
<length>6</length>
</annotation>
<annotation>
<mention>CENTRAL DIVISION</mention>
<wikiName>Central Division (NBA)</wikiName>
<offset>513</offset>
<length>16</length>
</annotation>
<annotation>
<mention>CHICAGO</mention>
<wikiName>Chicago Bulls</wikiName>
<offset>554</offset>
<length>7</length>
</annotation>
<annotation>
<mention>DETROIT</mention>
<wikiName>Detroit Pistons</wikiName>
<offset>586</offset>
<length>7</length>
</annotation>
<annotation>
<mention>CLEVELAND</mention>
<wikiName>Cleveland Cavaliers</wikiName>
<offset>622</offset>
<length>9</length>
</annotation>
<annotation>
<mention>ATLANTA</mention>
<wikiName>Atlanta Hawks</wikiName>
<offset>658</offset>
<length>7</length>
</annotation>
<annotation>
<mention>MILWAUKEE</mention>
<wikiName>Milwaukee Bucks</wikiName>
<offset>690</offset>
<length>9</length>
</annotation>
<annotation>
<mention>INDIANA</mention>
<wikiName>Indiana Pacers</wikiName>
<offset>722</offset>
<length>7</length>
</annotation>
<annotation>
<mention>CHARLOTTE</mention>
<wikiName>New Orleans Pelicans</wikiName>
<offset>754</offset>
<length>9</length>
</annotation>
<annotation>
<mention>TORONTO</mention>
<wikiName>Toronto Raptors</wikiName>
<offset>790</offset>
<length>7</length>
</annotation>
<annotation>
<mention>HOUSTON</mention>
<wikiName>Houston Rockets</wikiName>
<offset>892</offset>
<length>7</length>
</annotation>
<annotation>
<mention>UTAH</mention>
<wikiName>Utah Jazz</wikiName>
<offset>924</offset>
<length>4</length>
</annotation>
<annotation>
<mention>MINNESOTA</mention>
<wikiName>Minnesota Timberwolves</wikiName>
<offset>955</offset>
<length>9</length>
</annotation>
<annotation>
<mention>DALLAS</mention>
<wikiName>Dallas Mavericks</wikiName>
<offset>987</offset>
<length>6</length>
</annotation>
<annotation>
<mention>DENVER</mention>
<wikiName>Denver Nuggets</wikiName>
<offset>1023</offset>
<length>6</length>
</annotation>
<annotation>
<mention>SAN ANTONIO</mention>
<wikiName>San Antonio Spurs</wikiName>
<offset>1059</offset>
<length>11</length>
</annotation>
<annotation>
<mention>VANCOUVER</mention>
<wikiName>Memphis Grizzlies</wikiName>
<offset>1095</offset>
<length>9</length>
</annotation>
<annotation>
<mention>PACIFIC</mention>
<wikiName>Pacific Division (NBA)</wikiName>
<offset>1133</offset>
<length>7</length>
</annotation>
<annotation>
<mention>SEATTLE</mention>
<wikiName>Seattle SuperSonics</wikiName>
<offset>1174</offset>
<length>7</length>
</annotation>
<annotation>
<mention>LA LAKERS</mention>
<wikiName>Los Angeles Lakers</wikiName>
<offset>1206</offset>
<length>9</length>
</annotation>
<annotation>
<mention>PORTLAND</mention>
<wikiName>Portland Trail Blazers</wikiName>
<offset>1242</offset>
<length>8</length>
</annotation>
<annotation>
<mention>LA CLIPPERS</mention>
<wikiName>Los Angeles Clippers</wikiName>
<offset>1274</offset>
<length>11</length>
</annotation>
<annotation>
<mention>GOLDEN STATE</mention>
<wikiName>Golden State Warriors</wikiName>
<offset>1306</offset>
<length>12</length>
</annotation>
<annotation>
<mention>SACRAMENTO</mention>
<wikiName>San Antonio Spurs</wikiName>
<offset>1347</offset>
<length>10</length>
</annotation>
<annotation>
<mention>PHOENIX</mention>
<wikiName>Phoenix Suns</wikiName>
<offset>1383</offset>
<length>7</length>
</annotation>
<annotation>
<mention>TORONTO</mention>
<wikiName>Toronto Raptors</wikiName>
<offset>1449</offset>
<length>7</length>
</annotation>
<annotation>
<mention>ATLANTA</mention>
<wikiName>Atlanta Hawks</wikiName>
<offset>1460</offset>
<length>7</length>
</annotation>
<annotation>
<mention>LA CLIPPERS</mention>
<wikiName>Los Angeles Clippers</wikiName>
<offset>1471</offset>
<length>11</length>
</annotation>
<annotation>
<mention>NEW YORK</mention>
<wikiName>New York Knicks</wikiName>
<offset>1486</offset>
<length>8</length>
</annotation>
<annotation>
<mention>MILWAUKEE</mention>
<wikiName>Milwaukee Bucks</wikiName>
<offset>1496</offset>
<length>9</length>
</annotation>
<annotation>
<mention>WASHINGTON</mention>
<wikiName>Washington Wizards</wikiName>
<offset>1509</offset>
<length>10</length>
</annotation>
<annotation>
<mention>DETROIT</mention>
<wikiName>Detroit Pistons</wikiName>
<offset>1521</offset>
<length>7</length>
</annotation>
<annotation>
<mention>NEW JERSEY</mention>
<wikiName>Brooklyn Nets</wikiName>
<offset>1532</offset>
<length>10</length>
</annotation>
<annotation>
<mention>MIAMI</mention>
<wikiName>Miami Heat</wikiName>
<offset>1547</offset>
<length>5</length>
</annotation>
<annotation>
<mention>CHICAGO</mention>
<wikiName>Chicago Bulls</wikiName>
<offset>1556</offset>
<length>7</length>
</annotation>
<annotation>
<mention>VANCOUVER</mention>
<wikiName>Memphis Grizzlies</wikiName>
<offset>1568</offset>
<length>9</length>
</annotation>
<annotation>
<mention>DALLAS</mention>
<wikiName>Dallas Mavericks</wikiName>
<offset>1581</offset>
<length>6</length>
</annotation>
<annotation>
<mention>PHILADELPHIA</mention>
<wikiName>Philadelphia 76ers</wikiName>
<offset>1593</offset>
<length>12</length>
</annotation>
<annotation>
<mention>HOUSTON</mention>
<wikiName>Houston Rockets</wikiName>
<offset>1609</offset>
<length>7</length>
</annotation>
<annotation>
<mention>UTAH</mention>
<wikiName>Utah Jazz</wikiName>
<offset>1619</offset>
<length>4</length>
</annotation>
<annotation>
<mention>DENVER</mention>
<wikiName>Denver Nuggets</wikiName>
<offset>1627</offset>
<length>6</length>
</annotation>
<annotation>
<mention>CHARLOTTE</mention>
<wikiName>New Orleans Pelicans</wikiName>
<offset>1639</offset>
<length>9</length>
</annotation>
<annotation>
<mention>SEATTLE</mention>
<wikiName>Seattle SuperSonics</wikiName>
<offset>1652</offset>
<length>7</length>
</annotation>
</document>
<document docName="241600newsML.txt">
<annotation>
<mention>NBA</mention>
<wikiName>National Basketball Association</wikiName>
<offset>0</offset>
<length>3</length>
</annotation>
<annotation>
<mention>NEW YORK</mention>
<wikiName>New York City</wikiName>
<offset>36</offset>
<length>8</length>
</annotation>
<annotation>
<mention>National Basketball
Association</mention>
<wikiName>National Basketball Association</wikiName>
<offset>68</offset>
<length>32</length>
</annotation>
<annotation>
<mention>New Jersey</mention>
<wikiName>Brooklyn Nets</wikiName>
<offset>140</offset>
<length>10</length>
</annotation>
<annotation>
<mention>BOSTON</mention>
<wikiName>Boston Celtics</wikiName>
<offset>157</offset>
<length>6</length>
</annotation>
<annotation>
<mention>DETROIT</mention>
<wikiName>Detroit Pistons</wikiName>
<offset>177</offset>
<length>7</length>
</annotation>
<annotation>
<mention>Cleveland</mention>
<wikiName>Cleveland Indians</wikiName>
<offset>194</offset>
<length>9</length>
</annotation>
<annotation>
<mention>New York</mention>
<wikiName>New York Knicks</wikiName>
<offset>209</offset>
<length>8</length>
</annotation>
<annotation>
<mention>MIAMI</mention>
<wikiName>Miami Heat</wikiName>
<offset>226</offset>
<length>5</length>
</annotation>
<annotation>
<mention>Phoenix</mention>
<wikiName>Phoenix Suns</wikiName>
<offset>241</offset>
<length>7</length>
</annotation>
<annotation>
<mention>SACRAMENTO</mention>
<wikiName>Sacramento Kings</wikiName>
<offset>258</offset>
<length>10</length>
</annotation>
<annotation>
<mention>Vancouver</mention>
<wikiName></wikiName>
<offset>278</offset>
<length>9</length>
</annotation>
<annotation>
<mention>SAN ANTONIO</mention>
<wikiName>San Antonio Spurs</wikiName>
<offset>295</offset>
<length>11</length>
</annotation>
<annotation>
<mention>UTAH</mention>
<wikiName>Utah Jazz</wikiName>
<offset>315</offset>
<length>4</length>
</annotation>
<annotation>
<mention>Minnesota</mention>
<wikiName>Minnesota Timberwolves</wikiName>
<offset>327</offset>
<length>9</length>
</annotation>
<annotation>
<mention>PORTLAND</mention>
<wikiName>Portland Trail Blazers</wikiName>
<offset>342</offset>
<length>8</length>
</annotation>
<annotation>
<mention>Charlotte</mention>
<wikiName>Charlotte Bobcats</wikiName>
<offset>359</offset>
<length>9</length>
</annotation>
<annotation>
<mention>Indiana</mention>
<wikiName>Indiana Pacers</wikiName>
<offset>374</offset>
<length>7</length>
</annotation>
<annotation>
<mention>GOLDEN STATE</mention>
<wikiName>Golden State Warriors</wikiName>
<offset>391</offset>
<length>12</length>
</annotation>
<annotation>
<mention>LA LAKERS</mention>
<wikiName>Los Angeles Lakers</wikiName>
<offset>411</offset>
<length>9</length>
</annotation>
<annotation>
<mention>Orlando</mention>
<wikiName>Orlando Magic</wikiName>
<offset>428</offset>
<length>7</length>
</annotation>
</document>
<document docName="241601newsML.txt">
<annotation>
<mention>NHL</mention>
<wikiName>National Hockey League</wikiName>
<offset>0</offset>
<length>3</length>
</annotation>
<annotation>
<mention>NEW YORK</mention>
<wikiName>New York City</wikiName>
<offset>48</offset>
<length>8</length>
</annotation>
<annotation>
<mention>National Hockey
League</mention>
<wikiName>National Hockey League</wikiName>
<offset>82</offset>
<length>23</length>
</annotation>
<annotation>
<mention>HARTFORD</mention>
<wikiName>Hartford Wolf Pack</wikiName>
<offset>293</offset>
<length>8</length>
</annotation>
<annotation>
<mention>BUFFALO</mention>
<wikiName>Buffalo Sabres</wikiName>
<offset>330</offset>
<length>7</length>
</annotation>
<annotation>
<mention>MONTREAL</mention>
<wikiName>Montreal Canadiens</wikiName>
<offset>367</offset>
<length>8</length>
</annotation>
<annotation>
<mention>BOSTON</mention>
<wikiName>Boston Bruins</wikiName>
<offset>404</offset>
<length>6</length>
</annotation>
<annotation>
<mention>PITTSBURGH</mention>
<wikiName>Pittsburgh Penguins</wikiName>
<offset>441</offset>
<length>10</length>
</annotation>
<annotation>
<mention>OTTAWA</mention>
<wikiName>Ottawa Senators</wikiName>
<offset>483</offset>
<length>6</length>
</annotation>
<annotation>
<mention>ATLANTIC</mention>
<wikiName>Atlantic Division (NHL)</wikiName>
<offset>523</offset>
<length>8</length>
</annotation>
<annotation>
<mention>FLORIDA</mention>
<wikiName>Florida Panthers</wikiName>
<offset>576</offset>
<length>7</length>
</annotation>
<annotation>
<mention>PHILADELPHIA</mention>
<wikiName>Philadelphia Flyers</wikiName>
<offset>613</offset>
<length>12</length>
</annotation>
<annotation>
<mention>NEW JERSEY</mention>
<wikiName>New Jersey Devils</wikiName>
<offset>655</offset>
<length>10</length>
</annotation>
<annotation>
<mention>WASHINGTON</mention>
<wikiName>Washington Capitals</wikiName>
<offset>697</offset>
<length>10</length>
</annotation>
<annotation>
<mention>NY RANGERS</mention>
<wikiName>New York Rangers</wikiName>
<offset>739</offset>
<length>10</length>
</annotation>
<annotation>
<mention>NY ISLANDERS</mention>
<wikiName>New York Islanders</wikiName>
<offset>781</offset>
<length>12</length>
</annotation>
<annotation>
<mention>TAMPA BAY</mention>
<wikiName>Tampa Bay Lightning</wikiName>
<offset>823</offset>
<length>9</length>
</annotation>
<annotation>
<mention>DETROIT</mention>
<wikiName>Detroit Red Wings</wikiName>
<offset>939</offset>
<length>7</length>
</annotation>
<annotation>
<mention>DALLAS</mention>
<wikiName>Dallas Stars</wikiName>
<offset>976</offset>
<length>6</length>
</annotation>
<annotation>
<mention>ST LOUIS</mention>
<wikiName>St. Louis Blues</wikiName>
<offset>1013</offset>
<length>8</length>
</annotation>
<annotation>
<mention>CHICAGO</mention>
<wikiName>Chicago Blackhawks</wikiName>
<offset>1050</offset>
<length>7</length>
</annotation>
<annotation>
<mention>TORONTO</mention>
<wikiName>Toronto Maple Leafs</wikiName>
<offset>1087</offset>
<length>7</length>
</annotation>
<annotation>
<mention>PHOENIX</mention>
<wikiName>Phoenix Coyotes</wikiName>
<offset>1124</offset>
<length>7</length>
</annotation>
<annotation>
<mention>PACIFIC</mention>
<wikiName>Pacific Division (NHL)</wikiName>
<offset>1164</offset>
<length>7</length>
</annotation>
<annotation>
<mention>COLORADO</mention>
<wikiName>Colorado Avalanche</wikiName>
<offset>1216</offset>
<length>8</length>
</annotation>
<annotation>
<mention>VANCOUVER</mention>
<wikiName>Vancouver Canucks</wikiName>
<offset>1253</offset>
<length>9</length>
</annotation>
<annotation>
<mention>EDMONTON</mention>
<wikiName>Edmonton Oilers</wikiName>
<offset>1295</offset>
<length>8</length>
</annotation>
<annotation>
<mention>LOS ANGELES</mention>
<wikiName>Los Angeles Kings</wikiName>
<offset>1332</offset>
<length>11</length>
</annotation>
<annotation>
<mention>SAN JOSE</mention>
<wikiName>San Jose Sharks</wikiName>
<offset>1374</offset>
<length>8</length>
</annotation>
<annotation>
<mention>ANAHEIM</mention>
<wikiName>Anaheim Ducks</wikiName>
<offset>1411</offset>
<length>7</length>
</annotation>
<annotation>
<mention>CALGARY</mention>
<wikiName>Calgary Flames</wikiName>
<offset>1448</offset>
<length>7</length>
</annotation>
<annotation>
<mention>PHOENIX</mention>
<wikiName>Phoenix Coyotes</wikiName>
<offset>1515</offset>
<length>7</length>
</annotation>
<annotation>
<mention>NEW JERSEY</mention>
<wikiName>New Jersey Devils</wikiName>
<offset>1526</offset>
<length>10</length>
</annotation>
<annotation>
<mention>CALGARY</mention>
<wikiName>Calgary Flames</wikiName>
<offset>1539</offset>
<length>7</length>
</annotation>
<annotation>
<mention>BOSTON</mention>
<wikiName>Boston Bruins</wikiName>
<offset>1550</offset>
<length>6</length>
</annotation>
<annotation>
<mention>BUFFALO</mention>
<wikiName>Buffalo Sabres</wikiName>
<offset>1562</offset>
<length>7</length>
</annotation>
<annotation>
<mention>HARTFORD</mention>
<wikiName>Hartford Whalers</wikiName>
<offset>1573</offset>
<length>8</length>
</annotation>
<annotation>
<mention>WASHINGTON</mention>
<wikiName>Washington Capitals</wikiName>
<offset>1585</offset>
<length>10</length>
</annotation>
<annotation>
<mention>NY ISLANDERS</mention>
<wikiName>New York Islanders</wikiName>
<offset>1599</offset>
<length>12</length>
</annotation>
<annotation>
<mention>CHICAGO</mention>
<wikiName>Chicago Blackhawks</wikiName>
<offset>1615</offset>
<length>7</length>
</annotation>
<annotation>
<mention>MONTREAL</mention>
<wikiName>Montreal Canadiens</wikiName>
<offset>1626</offset>
<length>8</length>
</annotation>
<annotation>
<mention>NY RANGERS</mention>
<wikiName>New York Rangers</wikiName>
<offset>1640</offset>
<length>10</length>
</annotation>
<annotation>
<mention>TORONTO</mention>
<wikiName>Toronto Maple Leafs</wikiName>
<offset>1654</offset>
<length>7</length>
</annotation>
<annotation>
<mention>ANAHEIM</mention>
<wikiName>Anaheim Ducks</wikiName>
<offset>1665</offset>
<length>7</length>
</annotation>
<annotation>
<mention>PITTSBURGH</mention>
<wikiName>Pittsburgh Penguins</wikiName>
<offset>1676</offset>
<length>10</length>
</annotation>
<annotation>
<mention>COLORADO</mention>
<wikiName>Colorado Avalanche</wikiName>
<offset>1690</offset>
<length>8</length>
</annotation>
<annotation>
<mention>LOS ANGELES</mention>
<wikiName>Los Angeles Kings</wikiName>
<offset>1702</offset>
<length>11</length>
</annotation>
<annotation>
<mention>TAMPA BAY</mention>
<wikiName>Tampa Bay Lightning</wikiName>
<offset>1720</offset>
<length>9</length>
</annotation>
<annotation>
<mention>SAN JOSE</mention>
<wikiName>San Jose Sharks</wikiName>
<offset>1733</offset>
<length>8</length>
</annotation>
<annotation>
<mention>OTTAWA</mention>
<wikiName>Ottawa Senators</wikiName>
<offset>1745</offset>
<length>6</length>
</annotation>
<annotation>
<mention>VANCOUVER</mention>
<wikiName>Vancouver Canucks</wikiName>
<offset>1755</offset>
<length>9</length>
</annotation>
</document>
<document docName="241602newsML.txt">
<annotation>
<mention>NHL</mention>
<wikiName>National Hockey League</wikiName>
<offset>0</offset>
<length>3</length>
</annotation>
<annotation>
<mention>NEW YORK</mention>
<wikiName>New York City</wikiName>
<offset>34</offset>
<length>8</length>
</annotation>
<annotation>
<mention>National Hockey
League</mention>
<wikiName>National Hockey League</wikiName>
<offset>66</offset>
<length>23</length>
</annotation>
<annotation>
<mention>NY RANGERS</mention>
<wikiName>New York Rangers</wikiName>
<offset>129</offset>
<length>10</length>
</annotation>
<annotation>
<mention>Toronto</mention>
<wikiName>Toronto Maple Leafs</wikiName>
<offset>147</offset>
<length>7</length>
</annotation>
<annotation>
<mention>BUFFALO</mention>
<wikiName>Buffalo Sabres</wikiName>
<offset>161</offset>
<length>7</length>
</annotation>
<annotation>
<mention>Anaheim</mention>
<wikiName>Anaheim Ducks</wikiName>
<offset>179</offset>
<length>7</length>
</annotation>
<annotation>
<mention>Pittsburgh</mention>
<wikiName>Pittsburgh Penguins</wikiName>
<offset>198</offset>
<length>10</length>
</annotation>
<annotation>
<mention>WASHINGTON</mention>
<wikiName>Washington Capitals</wikiName>
<offset>216</offset>
<length>10</length>
</annotation>
<annotation>
<mention>Montreal</mention>
<wikiName>Montreal Canadiens</wikiName>
<offset>235</offset>
<length>8</length>
</annotation>
<annotation>
<mention>CHICAGO</mention>
<wikiName>Chicago Blackhawks</wikiName>
<offset>253</offset>
<length>7</length>
</annotation>
<annotation>
<mention>Philadelphia</mention>
<wikiName>Philadelphia Flyers</wikiName>
<offset>267</offset>
<length>12</length>
</annotation>
<annotation>
<mention>DALLAS</mention>
<wikiName>Dallas Stars</wikiName>
<offset>285</offset>
<length>6</length>
</annotation>
<annotation>
<mention>St Louis</mention>
<wikiName>St. Louis Blues</wikiName>
<offset>299</offset>
<length>8</length>
</annotation>
<annotation>
<mention>COLORADO</mention>
<wikiName>Colorado Avalanche</wikiName>
<offset>317</offset>
<length>8</length>
</annotation>
<annotation>
<mention>EDMONTON</mention>
<wikiName>Edmonton Oilers</wikiName>
<offset>331</offset>
<length>8</length>
</annotation>
<annotation>
<mention>Ottawa</mention>
<wikiName>Ottawa Senators</wikiName>
<offset>349</offset>
<length>6</length>
</annotation>
</document>
<document docName="241604newsML.txt">
<annotation>
<mention>NHL</mention>
<wikiName>National Hockey League</wikiName>
<offset>0</offset>
<length>3</length>
</annotation>
<annotation>
<mention>CANUCKS</mention>
<wikiName>Vancouver Canucks</wikiName>
<offset>15</offset>
<length>7</length>
</annotation>
<annotation>
<mention>BURE</mention>
<wikiName>Pavel Bure</wikiName>
<offset>26</offset>
<length>4</length>
</annotation>
<annotation>
<mention>NEW YORK</mention>
<wikiName>New York City</wikiName>
<offset>56</offset>
<length>8</length>
</annotation>
<annotation>
<mention>Vancouver Canucks</mention>
<wikiName>Vancouver Canucks</wikiName>
<offset>77</offset>
<length>17</length>
</annotation>
<annotation>
<mention>Pavel Bure</mention>
<wikiName>Pavel Bure</wikiName>
<offset>111</offset>
<length>10</length>
</annotation>
<annotation>
<mention>National Hockey League</mention>
<wikiName>National Hockey League</wikiName>
<offset>156</offset>
<length>22</length>
</annotation>
<annotation>
<mention>Buffalo Sabres</mention>
<wikiName>Buffalo Sabres</wikiName>
<offset>218</offset>
<length>14</length>
</annotation>
<annotation>
<mention>Garry Galley</mention>
<wikiName>Garry Galley</wikiName>
<offset>244</offset>
<length>12</length>
</annotation>
<annotation>
<mention>Bure</mention>
<wikiName>Pavel Bure</wikiName>
<offset>272</offset>
<length>4</length>
</annotation>
<annotation>
<mention>Vancouver</mention>
<wikiName>Vancouver Canucks</wikiName>
<offset>397</offset>
<length>9</length>
</annotation>
<annotation>
<mention>Galley</mention>
<wikiName>Garry Galley</wikiName>
<offset>428</offset>
<length>6</length>
</annotation>
<annotation>
<mention>Buffalo</mention>
<wikiName>Buffalo Sabres</wikiName>
<offset>438</offset>
<length>7</length>
</annotation>
<annotation>
<mention>Galley</mention>
<wikiName>Garry Galley</wikiName>
<offset>452</offset>
<length>6</length>
</annotation>
<annotation>
<mention>Bure</mention>
<wikiName>Pavel Bure</wikiName>
<offset>518</offset>
<length>4</length>
</annotation>
<annotation>
<mention>Galley</mention>
<wikiName>Garry Galley</wikiName>
<offset>569</offset>
<length>6</length>
</annotation>
<annotation>
<mention>NHL</mention>
<wikiName>National Hockey League</wikiName>
<offset>637</offset>
<length>3</length>
</annotation>
<annotation>
<mention>Brian Burke</mention>
<wikiName>Brian Burke (ice hockey)</wikiName>
<offset>658</offset>
<length>11</length>
</annotation>
<annotation>
<mention>Bure</mention>
<wikiName>Pavel Bure</wikiName>
<offset>751</offset>
<length>4</length>
</annotation>
<annotation>
<mention>Burke</mention>
<wikiName></wikiName>
<offset>901</offset>
<length>5</length>
</annotation>
<annotation>
<mention>Bure</mention>
<wikiName>Pavel Bure</wikiName>
<offset>914</offset>
<length>4</length>
</annotation>
<annotation>
<mention>Ottawa</mention>
<wikiName>Ottawa Senators</wikiName>
<offset>1026</offset>
<length>6</length>
</annotation>
</document>
<document docName="241605newsML.txt">
<annotation>
<mention>SCHULZ</mention>
<wikiName>Axel Schulz</wikiName>
<offset>7</offset>
<length>6</length>
</annotation>
<annotation>
<mention>RIBALTA</mention>
<wikiName></wikiName>
<offset>22</offset>
<length>7</length>
</annotation>
<annotation>
<mention>IBF</mention>
<wikiName></wikiName>
<offset>33</offset>
<length>3</length>
</annotation>
<annotation>
<mention>VIENNA</mention>
<wikiName>Vienna</wikiName>
<offset>57</offset>
<length>6</length>
</annotation>
<annotation>
<mention>German</mention>
<wikiName>Germany</wikiName>
<offset>76</offset>
<length>6</length>
</annotation>
<annotation>
<mention>Axel Schulz</mention>
<wikiName>Axel Schulz</wikiName>
<offset>83</offset>
<length>11</length>
</annotation>
<annotation>
<mention>Cuba</mention>
<wikiName>Cuba</wikiName>
<offset>106</offset>
<length>4</length>
</annotation>
<annotation>
<mention>Jose Ribalta</mention>
<wikiName></wikiName>
<offset>113</offset>
<length>12</length>
</annotation>
<annotation>
<mention>International Boxing Federation</mention>
<wikiName></wikiName>
<offset>135</offset>
<length>31</length>
</annotation>
</document>
<document docName="241607newsML.txt">
<annotation>
<mention>SPANISH</mention>
<wikiName>Spain</wikiName>
<offset>7</offset>
<length>7</length>
</annotation>
<annotation>
<mention>MADRID</mention>
<wikiName>Madrid</wikiName>
<offset>40</offset>
<length>6</length>
</annotation>
<annotation>
<mention>Spanish</mention>
<wikiName>Spain</wikiName>
<offset>81</offset>
<length>7</length>
</annotation>
<annotation>
<mention>Real Madrid</mention>
<wikiName>Real Madrid C.F.</wikiName>
<offset>112</offset>
<length>11</length>
</annotation>
<annotation>
<mention>Davor Suker</mention>
<wikiName>Davor Šuker</wikiName>
<offset>127</offset>
<length>11</length>
</annotation>
<annotation>
<mention>Predrag Mijatovic</mention>
<wikiName>Predrag Mijatović</wikiName>
<offset>143</offset>
<length>17</length>
</annotation>
<annotation>
<mention>Barcelona</mention>
<wikiName>FC Barcelona</wikiName>
<offset>165</offset>
<length>9</length>
</annotation>
</document>
<document docName="241608newsML.txt">
<annotation>
<mention>BALKAN</mention>
<wikiName></wikiName>
<offset>7</offset>
<length>6</length>
</annotation>
<annotation>
<mention>REAL</mention>
<wikiName>Real Madrid C.F.</wikiName>
<offset>49</offset>
<length>4</length>
</annotation>
<annotation>
<mention>MADRID</mention>
<wikiName>Madrid</wikiName>
<offset>56</offset>
<length>6</length>
</annotation>
<annotation>
<mention>Real Madrid</mention>
<wikiName>Real Madrid C.F.</wikiName>
<offset>75</offset>
<length>11</length>
</annotation>
<annotation>
<mention>Balkan</mention>
<wikiName>Balkans</wikiName>
<offset>89</offset>
<length>6</length>
</annotation>
<annotation>
<mention>Davor Suker</mention>
<wikiName>Davor Šuker</wikiName>
<offset>112</offset>
<length>11</length>
</annotation>
<annotation>
<mention>Predrag Mijatovic</mention>
<wikiName>Predrag Mijatović</wikiName>
<offset>128</offset>
<length>17</length>
</annotation>
<annotation>
<mention>Barcelona</mention>
<wikiName>FC Barcelona</wikiName>
<offset>180</offset>
<length>9</length>
</annotation>
<annotation>
<mention>Spain</mention>
<wikiName>Spain</wikiName>
<offset>193</offset>
<length>5</length>
</annotation>
<annotation>
<mention>Real</mention>
<wikiName>Real Madrid C.F.</wikiName>
<offset>247</offset>
<length>4</length>
</annotation>
<annotation>
<mention>Barcelona</mention>
<wikiName>FC Barcelona</wikiName>
<offset>295</offset>
<length>9</length>
</annotation>
<annotation>
<mention>Real</mention>
<wikiName>Real Madrid C.F.</wikiName>
<offset>370</offset>
<length>4</length>
</annotation>
<annotation>
<mention>Barcelona</mention>
<wikiName>FC Barcelona</wikiName>
<offset>459</offset>
<length>9</length>
</annotation>
<annotation>
<mention>Croatian</mention>
<wikiName>Croatia</wikiName>
<offset>481</offset>
<length>8</length>
</annotation>
<annotation>
<mention>Suker</mention>
<wikiName>Davor Šuker</wikiName>
<offset>504</offset>
<length>5</length>
</annotation>
<annotation>
<mention>Montenegrin</mention>
<wikiName>Montenegro</wikiName>
<offset>548</offset>
<length>11</length>
</annotation>
<annotation>
<mention>Mijatovic</mention>
<wikiName>Predrag Mijatović</wikiName>
<offset>568</offset>
<length>9</length>
</annotation>
<annotation>
<mention>Clarence Seedorf</mention>
<wikiName>Clarence Seedorf</wikiName>
<offset>609</offset>
<length>16</length>
</annotation>
<annotation>
<mention>Barcelona</mention>
<wikiName>FC Barcelona</wikiName>
<offset>649</offset>
<length>9</length>
</annotation>
<annotation>
<mention>Brazilian</mention>
<wikiName>Brazil</wikiName>
<offset>750</offset>
<length>9</length>
</annotation>
<annotation>
<mention>Ronaldo</mention>
<wikiName>Ronaldo</wikiName>
<offset>768</offset>
<length>7</length>
</annotation>
</document>
<document docName="241609newsML.txt">
<annotation>
<mention>PSV</mention>
<wikiName>PSV Eindhoven</wikiName>
<offset>7</offset>
<length>3</length>
</annotation>
<annotation>
<mention>VOLENDAM</mention>
<wikiName>FC Volendam</wikiName>
<offset>15</offset>
<length>8</length>
</annotation>
<annotation>
<mention>AMSTERDAM</mention>
<wikiName>Amsterdam</wikiName>
<offset>34</offset>
<length>9</length>
</annotation>
<annotation>
<mention>Brazilian</mention>
<wikiName>Brazil</wikiName>
<offset>56</offset>
<length>9</length>
</annotation>
<annotation>
<mention>Marcelo</mention>
<wikiName>Marcelo Silva Ramos</wikiName>
<offset>74</offset>
<length>7</length>
</annotation>
<annotation>
<mention>Yugoslav</mention>
<wikiName>Yugoslavia</wikiName>
<offset>86</offset>
<length>8</length>
</annotation>
<annotation>
<mention>Zeljko Petrovic</mention>
<wikiName>Željko Petrović</wikiName>
<offset>106</offset>
<length>15</length>
</annotation>
<annotation>
<mention>Dutch</mention>
<wikiName>Netherlands</wikiName>
<offset>143</offset>
<length>5</length>
</annotation>
<annotation>
<mention>PSV Eindhoven</mention>
<wikiName>PSV Eindhoven</wikiName>
<offset>172</offset>
<length>13</length>
</annotation>
<annotation>
<mention>Volendam</mention>
<wikiName>FC Volendam</wikiName>
<offset>211</offset>
<length>8</length>
</annotation>
<annotation>
<mention>Brazilian</mention>
<wikiName>Brazil</wikiName>
<offset>260</offset>
<length>9</length>
</annotation>
<annotation>
<mention>Vampeta</mention>
<wikiName>Vampeta</wikiName>
<offset>279</offset>
<length>7</length>
</annotation>
<annotation>
<mention>Belgian</mention>
<wikiName>Belgium</wikiName>
<offset>291</offset>
<length>7</length>
</annotation>
<annotation>
<mention>Luc Nilis</mention>
<wikiName>Luc Nilis</wikiName>
<offset>307</offset>
<length>9</length>
</annotation>
<annotation>
<mention>PSV</mention>
<wikiName>PSV Eindhoven</wikiName>
<offset>343</offset>
<length>3</length>
</annotation>
<annotation>
<mention>Volendam</mention>
<wikiName>FC Volendam</wikiName>
<offset>402</offset>
<length>8</length>
</annotation>
<annotation>
<mention>Feyenoord</mention>
<wikiName>Feyenoord</wikiName>
<offset>479</offset>
<length>9</length>
</annotation>
<annotation>
<mention>Ajax Amsterdam</mention>
<wikiName>AFC Ajax</wikiName>
<offset>555</offset>
<length>14</length>
</annotation>
<annotation>
<mention>PSV</mention>
<wikiName>PSV Eindhoven</wikiName>
<offset>610</offset>
<length>3</length>
</annotation>
<annotation>
<mention>Ajax</mention>
<wikiName>AFC Ajax</wikiName>
<offset>621</offset>
<length>4</length>
</annotation>
<annotation>
<mention>AZ Alkmaar</mention>
<wikiName>AZ (football club)</wikiName>
<offset>631</offset>
<length>10</length>
</annotation>
<annotation>
<mention>Feyenoord</mention>
<wikiName>Feyenoord</wikiName>
<offset>661</offset>
<length>9</length>
</annotation>
<annotation>
<mention>UEFA Cup</mention>
<wikiName>1996–97 UEFA Cup</wikiName>
<offset>692</offset>
<length>8</length>
</annotation>
<annotation>
<mention>Tenerife</mention>
<wikiName>CD Tenerife</wikiName>
<offset>734</offset>
<length>8</length>
</annotation>
<annotation>
<mention>De Graafschap Doetinchem</mention>
<wikiName>De Graafschap</wikiName>
<offset>765</offset>
<length>24</length>
</annotation>
<annotation>
<mention>Doetinchem</mention>
<wikiName></wikiName>
<offset>796</offset>
<length>10</length>
</annotation>
<annotation>
<mention>The Super Peasants</mention>
<wikiName></wikiName>
<offset>821</offset>
<length>18</length>
</annotation>
</document>
<document docName="241610newsML.txt">
<annotation>
<mention>SPANISH</mention>
<wikiName>Spain</wikiName>
<offset>7</offset>
<length>7</length>
</annotation>
<annotation>
<mention>MADRID</mention>
<wikiName>Madrid</wikiName>
<offset>49</offset>
<length>6</length>
</annotation>
<annotation>
<mention>Spanish</mention>
<wikiName>Spain</wikiName>
<offset>94</offset>
<length>7</length>
</annotation>
<annotation>
<mention>Real Madrid</mention>
<wikiName>Real Madrid C.F.</wikiName>
<offset>130</offset>
<length>11</length>
</annotation>
<annotation>
<mention>Barcelona</mention>
<wikiName>FC Barcelona</wikiName>
<offset>150</offset>
<length>9</length>
</annotation>
<annotation>
<mention>Real Madrid</mention>
<wikiName>Real Madrid C.F.</wikiName>
<offset>254</offset>
<length>11</length>
</annotation>
<annotation>
<mention>Barcelona</mention>
<wikiName>FC Barcelona</wikiName>
<offset>303</offset>
<length>9</length>
</annotation>
<annotation>
<mention>Deportivo Coruna</mention>
<wikiName></wikiName>
<offset>352</offset>
<length>16</length>
</annotation>
<annotation>
<mention>Real Betis</mention>
<wikiName>Real Betis</wikiName>
<offset>406</offset>
<length>10</length>
</annotation>
<annotation>
<mention>Atletico Madrid</mention>
<wikiName>Atlético Madrid</wikiName>
<offset>455</offset>
<length>15</length>
</annotation>
<annotation>
<mention>Athletic Bilbao</mention>
<wikiName>Athletic Bilbao</wikiName>
<offset>509</offset>
<length>15</length>
</annotation>
<annotation>
<mention>Real Sociedad</mention>
<wikiName>Real Sociedad</wikiName>
<offset>563</offset>
<length>13</length>
</annotation>
<annotation>
<mention>Valladolid</mention>
<wikiName>Real Valladolid</wikiName>
<offset>612</offset>
<length>10</length>
</annotation>
<annotation>
<mention>Racing Santander</mention>
<wikiName>Racing de Santander</wikiName>
<offset>661</offset>
<length>16</length>
</annotation>
<annotation>
<mention>Rayo Vallecano</mention>
<wikiName>Rayo Vallecano</wikiName>
<offset>715</offset>
<length>14</length>
</annotation>
<annotation>
<mention>Valencia</mention>
<wikiName>Valencia CF</wikiName>
<offset>764</offset>
<length>8</length>
</annotation>
<annotation>
<mention>Celta Vigo</mention>
<wikiName>Celta de Vigo</wikiName>
<offset>808</offset>
<length>10</length>
</annotation>
<annotation>
<mention>Tenerife</mention>
<wikiName>CD Tenerife</wikiName>
<offset>857</offset>
<length>8</length>
</annotation>
<annotation>
<mention>Espanyol</mention>
<wikiName>RCD Espanyol</wikiName>
<offset>901</offset>
<length>8</length>
</annotation>
<annotation>
<mention>Oviedo</mention>
<wikiName>Real Oviedo</wikiName>
<offset>945</offset>
<length>6</length>
</annotation>
<annotation>
<mention>Sporting</mention>
<wikiName>Sporting de Gijón</wikiName>
<offset>989</offset>
<length>8</length>
</annotation>
<annotation>
<mention>Logrones</mention>
<wikiName></wikiName>
<offset>1038</offset>
<length>8</length>
</annotation>
<annotation>
<mention>Zaragoza</mention>
<wikiName>Real Zaragoza</wikiName>
<offset>1082</offset>
<length>8</length>
</annotation>
<annotation>
<mention>Sevilla</mention>
<wikiName>Sevilla FC</wikiName>
<offset>1126</offset>
<length>7</length>
</annotation>
<annotation>
<mention>Compostela</mention>
<wikiName>SD Compostela</wikiName>
<offset>1170</offset>
<length>10</length>
</annotation>
<annotation>
<mention>Hercules</mention>
<wikiName>Hércules CF</wikiName>
<offset>1219</offset>
<length>8</length>
</annotation>
<annotation>
<mention>Extremadura</mention>
<wikiName>CF Extremadura</wikiName>
<offset>1263</offset>
<length>11</length>
</annotation>
</document>
<document docName="241611newsML.txt">
<annotation>
<mention>ENGLISHMAN</mention>
<wikiName>England</wikiName>
<offset>7</offset>
<length>10</length>
</annotation>
<annotation>
<mention>CHARLTON</mention>
<wikiName>Jack Charlton</wikiName>
<offset>18</offset>
<length>8</length>
</annotation>
<annotation>
<mention>IRISHMAN</mention>
<wikiName>Republic of Ireland</wikiName>
<offset>47</offset>
<length>8</length>
</annotation>
<annotation>
<mention>DUBLIN</mention>
<wikiName>Dublin</wikiName>
<offset>58</offset>
<length>6</length>
</annotation>
<annotation>
<mention>Jack Charlton</mention>
<wikiName>Jack Charlton</wikiName>
<offset>77</offset>
<length>13</length>
</annotation>
<annotation>
<mention>Ireland</mention>
<wikiName>Republic of Ireland</wikiName>
<offset>125</offset>
<length>7</length>
</annotation>
<annotation>
<mention>Englishman</mention>
<wikiName>English people</wikiName>
<offset>167</offset>
<length>10</length>
</annotation>
<annotation>
<mention>Charlton</mention>
<wikiName>Jack Charlton</wikiName>
<offset>221</offset>
<length>8</length>
</annotation>
<annotation>
<mention>Peggy</mention>
<wikiName></wikiName>
<offset>249</offset>
<length>5</length>
</annotation>
<annotation>
<mention>Ireland</mention>
<wikiName>Republic of Ireland</wikiName>
<offset>275</offset>
<length>7</length>
</annotation>
<annotation>
<mention>Irish</mention>
<wikiName>Republic of Ireland</wikiName>
<offset>311</offset>
<length>5</length>
</annotation>
<annotation>
<mention>Dick Spring</mention>
<wikiName>Dick Spring</wikiName>
<offset>354</offset>
<length>11</length>
</annotation>
<annotation>
<mention>Charlton</mention>
<wikiName>Jack Charlton</wikiName>
<offset>418</offset>
<length>8</length>
</annotation>
<annotation>
<mention>Republic of Ireland</mention>
<wikiName>Republic of Ireland national football team</wikiName>
<offset>513</offset>
<length>19</length>
</annotation>
<annotation>
<mention>Ireland</mention>
<wikiName>Republic of Ireland</wikiName>
<offset>643</offset>
<length>7</length>
</annotation>
<annotation>
<mention>Charlton</mention>
<wikiName>Jack Charlton</wikiName>
<offset>702</offset>
<length>8</length>
</annotation>
<annotation>
<mention>Charlton</mention>
<wikiName>Jack Charlton</wikiName>
<offset>848</offset>
<length>8</length>
</annotation>
<annotation>
<mention>Ireland</mention>
<wikiName>Republic of Ireland national football team</wikiName>
<offset>865</offset>
<length>7</length>
</annotation>
<annotation>
<mention>Ireland</mention>
<wikiName>Republic of Ireland national football team</wikiName>
<offset>997</offset>
<length>7</length>
</annotation>
<annotation>
<mention>World Cup</mention>
<wikiName>FIFA World Cup</wikiName>
<offset>1023</offset>
<length>9</length>
</annotation>
<annotation>
<mention>European</mention>
<wikiName>Europe</wikiName>
<offset>1068</offset>
<length>8</length>
</annotation>
<annotation>
<mention>Germany</mention>
<wikiName>Germany</wikiName>
<offset>1100</offset>
<length>7</length>
</annotation>
<annotation>
<mention>Irish</mention>
<wikiName>Republic of Ireland national football team</wikiName>
<offset>1119</offset>
<length>5</length>
</annotation>
<annotation>
<mention>England</mention>
<wikiName>England national football team</wikiName>
<offset>1145</offset>
<length>7</length>
</annotation>
<annotation>
<mention>Leeds United</mention>
<wikiName>Leeds United A.F.C.</wikiName>
<offset>1206</offset>
<length>12</length>
</annotation>
<annotation>
<mention>England</mention>
<wikiName>England national football team</wikiName>
<offset>1245</offset>
<length>7</length>
</annotation>
<annotation>
<mention>1966 World Cup</mention>
<wikiName>1966 FIFA World Cup</wikiName>
<offset>1334</offset>
<length>14</length>
</annotation>
<annotation>
<mention>Bobby</mention>
<wikiName>Bobby Charlton</wikiName>
<offset>1388</offset>
<length>5</length>
</annotation>
</document>
</aida.entityAnnotation>
|
{
"content_hash": "34350a47d0b93be503a1243775247424",
"timestamp": "",
"source": "github",
"line_count": 34225,
"max_line_length": 75,
"avg_line_length": 24.29744338933528,
"alnum_prop": 0.6680223189590899,
"repo_name": "kermitt2/nerd",
"id": "d46f8f121572cf6346687876955a301f762b1031",
"size": "831732",
"binary": false,
"copies": "1",
"ref": "refs/heads/master",
"path": "data/corpus/corpus-long/aida-testb/aida-testb.xml",
"mode": "33188",
"license": "apache-2.0",
"language": [
{
"name": "CSS",
"bytes": "91806"
},
{
"name": "CoffeeScript",
"bytes": "6412"
},
{
"name": "HTML",
"bytes": "115601"
},
{
"name": "Java",
"bytes": "1364235"
},
{
"name": "JavaScript",
"bytes": "1363320"
}
],
"symlink_target": ""
}
|
/**
* @license AngularJS v1.1.5
* (c) 2010-2012 Google, Inc. http://angularjs.org
* License: MIT
*/
(function(window, document, undefined) {
'use strict';
////////////////////////////////////
/**
* @ngdoc function
* @name angular.lowercase
* @function
*
* @description Converts the specified string to lowercase.
* @param {string} string String to be converted to lowercase.
* @returns {string} Lowercased string.
*/
var lowercase = function(string){return isString(string) ? string.toLowerCase() : string;};
/**
* @ngdoc function
* @name angular.uppercase
* @function
*
* @description Converts the specified string to uppercase.
* @param {string} string String to be converted to uppercase.
* @returns {string} Uppercased string.
*/
var uppercase = function(string){return isString(string) ? string.toUpperCase() : string;};
var manualLowercase = function(s) {
return isString(s)
? s.replace(/[A-Z]/g, function(ch) {return String.fromCharCode(ch.charCodeAt(0) | 32);})
: s;
};
var manualUppercase = function(s) {
return isString(s)
? s.replace(/[a-z]/g, function(ch) {return String.fromCharCode(ch.charCodeAt(0) & ~32);})
: s;
};
// String#toLowerCase and String#toUpperCase don't produce correct results in browsers with Turkish
// locale, for this reason we need to detect this case and redefine lowercase/uppercase methods
// with correct but slower alternatives.
if ('i' !== 'I'.toLowerCase()) {
lowercase = manualLowercase;
uppercase = manualUppercase;
}
var /** holds major version number for IE or NaN for real browsers */
msie = int((/msie (\d+)/.exec(lowercase(navigator.userAgent)) || [])[1]),
jqLite, // delay binding since jQuery could be loaded after us.
jQuery, // delay binding
slice = [].slice,
push = [].push,
toString = Object.prototype.toString,
_angular = window.angular,
/** @name angular */
angular = window.angular || (window.angular = {}),
angularModule,
nodeName_,
uid = ['0', '0', '0'];
/**
* @ngdoc function
* @name angular.noConflict
* @function
*
* @description
* Restores the previous global value of angular and returns the current instance. Other libraries may already use the
* angular namespace. Or a previous version of angular is already loaded on the page. In these cases you may want to
* restore the previous namespace and keep a reference to angular.
*
* @return {Object} The current angular namespace
*/
function noConflict() {
var a = window.angular;
window.angular = _angular;
return a;
}
/**
* @private
* @param {*} obj
* @return {boolean} Returns true if `obj` is an array or array-like object (NodeList, Arguments, ...)
*/
function isArrayLike(obj) {
if (!obj || (typeof obj.length !== 'number')) return false;
// We have on object which has length property. Should we treat it as array?
if (typeof obj.hasOwnProperty != 'function' &&
typeof obj.constructor != 'function') {
// This is here for IE8: it is a bogus object treat it as array;
return true;
} else {
return obj instanceof JQLite || // JQLite
(jQuery && obj instanceof jQuery) || // jQuery
toString.call(obj) !== '[object Object]' || // some browser native object
typeof obj.callee === 'function'; // arguments (on IE8 looks like regular obj)
}
}
/**
* @ngdoc function
* @name angular.forEach
* @function
*
* @description
* Invokes the `iterator` function once for each item in `obj` collection, which can be either an
* object or an array. The `iterator` function is invoked with `iterator(value, key)`, where `value`
* is the value of an object property or an array element and `key` is the object property key or
* array element index. Specifying a `context` for the function is optional.
*
* Note: this function was previously known as `angular.foreach`.
*
<pre>
var values = {name: 'misko', gender: 'male'};
var log = [];
angular.forEach(values, function(value, key){
this.push(key + ': ' + value);
}, log);
expect(log).toEqual(['name: misko', 'gender:male']);
</pre>
*
* @param {Object|Array} obj Object to iterate over.
* @param {Function} iterator Iterator function.
* @param {Object=} context Object to become context (`this`) for the iterator function.
* @returns {Object|Array} Reference to `obj`.
*/
function forEach(obj, iterator, context) {
var key;
if (obj) {
if (isFunction(obj)){
for (key in obj) {
if (key != 'prototype' && key != 'length' && key != 'name' && obj.hasOwnProperty(key)) {
iterator.call(context, obj[key], key);
}
}
} else if (obj.forEach && obj.forEach !== forEach) {
obj.forEach(iterator, context);
} else if (isArrayLike(obj)) {
for (key = 0; key < obj.length; key++)
iterator.call(context, obj[key], key);
} else {
for (key in obj) {
if (obj.hasOwnProperty(key)) {
iterator.call(context, obj[key], key);
}
}
}
}
return obj;
}
function sortedKeys(obj) {
var keys = [];
for (var key in obj) {
if (obj.hasOwnProperty(key)) {
keys.push(key);
}
}
return keys.sort();
}
function forEachSorted(obj, iterator, context) {
var keys = sortedKeys(obj);
for ( var i = 0; i < keys.length; i++) {
iterator.call(context, obj[keys[i]], keys[i]);
}
return keys;
}
/**
* when using forEach the params are value, key, but it is often useful to have key, value.
* @param {function(string, *)} iteratorFn
* @returns {function(*, string)}
*/
function reverseParams(iteratorFn) {
return function(value, key) { iteratorFn(key, value) };
}
/**
* A consistent way of creating unique IDs in angular. The ID is a sequence of alpha numeric
* characters such as '012ABC'. The reason why we are not using simply a number counter is that
* the number string gets longer over time, and it can also overflow, where as the nextId
* will grow much slower, it is a string, and it will never overflow.
*
* @returns an unique alpha-numeric string
*/
function nextUid() {
var index = uid.length;
var digit;
while(index) {
index--;
digit = uid[index].charCodeAt(0);
if (digit == 57 /*'9'*/) {
uid[index] = 'A';
return uid.join('');
}
if (digit == 90 /*'Z'*/) {
uid[index] = '0';
} else {
uid[index] = String.fromCharCode(digit + 1);
return uid.join('');
}
}
uid.unshift('0');
return uid.join('');
}
/**
* Set or clear the hashkey for an object.
* @param obj object
* @param h the hashkey (!truthy to delete the hashkey)
*/
function setHashKey(obj, h) {
if (h) {
obj.$$hashKey = h;
}
else {
delete obj.$$hashKey;
}
}
/**
* @ngdoc function
* @name angular.extend
* @function
*
* @description
* Extends the destination object `dst` by copying all of the properties from the `src` object(s)
* to `dst`. You can specify multiple `src` objects.
*
* @param {Object} dst Destination object.
* @param {...Object} src Source object(s).
* @returns {Object} Reference to `dst`.
*/
function extend(dst) {
var h = dst.$$hashKey;
forEach(arguments, function(obj){
if (obj !== dst) {
forEach(obj, function(value, key){
dst[key] = value;
});
}
});
setHashKey(dst,h);
return dst;
}
function int(str) {
return parseInt(str, 10);
}
function inherit(parent, extra) {
return extend(new (extend(function() {}, {prototype:parent}))(), extra);
}
var START_SPACE = /^\s*/;
var END_SPACE = /\s*$/;
function stripWhitespace(str) {
return isString(str) ? str.replace(START_SPACE, '').replace(END_SPACE, '') : str;
}
/**
* @ngdoc function
* @name angular.noop
* @function
*
* @description
* A function that performs no operations. This function can be useful when writing code in the
* functional style.
<pre>
function foo(callback) {
var result = calculateResult();
(callback || angular.noop)(result);
}
</pre>
*/
function noop() {}
noop.$inject = [];
/**
* @ngdoc function
* @name angular.identity
* @function
*
* @description
* A function that returns its first argument. This function is useful when writing code in the
* functional style.
*
<pre>
function transformer(transformationFn, value) {
return (transformationFn || identity)(value);
};
</pre>
*/
function identity($) {return $;}
identity.$inject = [];
function valueFn(value) {return function() {return value;};}
/**
* @ngdoc function
* @name angular.isUndefined
* @function
*
* @description
* Determines if a reference is undefined.
*
* @param {*} value Reference to check.
* @returns {boolean} True if `value` is undefined.
*/
function isUndefined(value){return typeof value == 'undefined';}
/**
* @ngdoc function
* @name angular.isDefined
* @function
*
* @description
* Determines if a reference is defined.
*
* @param {*} value Reference to check.
* @returns {boolean} True if `value` is defined.
*/
function isDefined(value){return typeof value != 'undefined';}
/**
* @ngdoc function
* @name angular.isObject
* @function
*
* @description
* Determines if a reference is an `Object`. Unlike `typeof` in JavaScript, `null`s are not
* considered to be objects.
*
* @param {*} value Reference to check.
* @returns {boolean} True if `value` is an `Object` but not `null`.
*/
function isObject(value){return value != null && typeof value == 'object';}
/**
* @ngdoc function
* @name angular.isString
* @function
*
* @description
* Determines if a reference is a `String`.
*
* @param {*} value Reference to check.
* @returns {boolean} True if `value` is a `String`.
*/
function isString(value){return typeof value == 'string';}
/**
* @ngdoc function
* @name angular.isNumber
* @function
*
* @description
* Determines if a reference is a `Number`.
*
* @param {*} value Reference to check.
* @returns {boolean} True if `value` is a `Number`.
*/
function isNumber(value){return typeof value == 'number';}
/**
* @ngdoc function
* @name angular.isDate
* @function
*
* @description
* Determines if a value is a date.
*
* @param {*} value Reference to check.
* @returns {boolean} True if `value` is a `Date`.
*/
function isDate(value){
return toString.apply(value) == '[object Date]';
}
/**
* @ngdoc function
* @name angular.isArray
* @function
*
* @description
* Determines if a reference is an `Array`.
*
* @param {*} value Reference to check.
* @returns {boolean} True if `value` is an `Array`.
*/
function isArray(value) {
return toString.apply(value) == '[object Array]';
}
/**
* @ngdoc function
* @name angular.isFunction
* @function
*
* @description
* Determines if a reference is a `Function`.
*
* @param {*} value Reference to check.
* @returns {boolean} True if `value` is a `Function`.
*/
function isFunction(value){return typeof value == 'function';}
/**
* Checks if `obj` is a window object.
*
* @private
* @param {*} obj Object to check
* @returns {boolean} True if `obj` is a window obj.
*/
function isWindow(obj) {
return obj && obj.document && obj.location && obj.alert && obj.setInterval;
}
function isScope(obj) {
return obj && obj.$evalAsync && obj.$watch;
}
function isFile(obj) {
return toString.apply(obj) === '[object File]';
}
function isBoolean(value) {
return typeof value == 'boolean';
}
function trim(value) {
return isString(value) ? value.replace(/^\s*/, '').replace(/\s*$/, '') : value;
}
/**
* @ngdoc function
* @name angular.isElement
* @function
*
* @description
* Determines if a reference is a DOM element (or wrapped jQuery element).
*
* @param {*} value Reference to check.
* @returns {boolean} True if `value` is a DOM element (or wrapped jQuery element).
*/
function isElement(node) {
return node &&
(node.nodeName // we are a direct element
|| (node.bind && node.find)); // we have a bind and find method part of jQuery API
}
/**
* @param str 'key1,key2,...'
* @returns {object} in the form of {key1:true, key2:true, ...}
*/
function makeMap(str){
var obj = {}, items = str.split(","), i;
for ( i = 0; i < items.length; i++ )
obj[ items[i] ] = true;
return obj;
}
if (msie < 9) {
nodeName_ = function(element) {
element = element.nodeName ? element : element[0];
return (element.scopeName && element.scopeName != 'HTML')
? uppercase(element.scopeName + ':' + element.nodeName) : element.nodeName;
};
} else {
nodeName_ = function(element) {
return element.nodeName ? element.nodeName : element[0].nodeName;
};
}
function map(obj, iterator, context) {
var results = [];
forEach(obj, function(value, index, list) {
results.push(iterator.call(context, value, index, list));
});
return results;
}
/**
* @description
* Determines the number of elements in an array, the number of properties an object has, or
* the length of a string.
*
* Note: This function is used to augment the Object type in Angular expressions. See
* {@link angular.Object} for more information about Angular arrays.
*
* @param {Object|Array|string} obj Object, array, or string to inspect.
* @param {boolean} [ownPropsOnly=false] Count only "own" properties in an object
* @returns {number} The size of `obj` or `0` if `obj` is neither an object nor an array.
*/
function size(obj, ownPropsOnly) {
var size = 0, key;
if (isArray(obj) || isString(obj)) {
return obj.length;
} else if (isObject(obj)){
for (key in obj)
if (!ownPropsOnly || obj.hasOwnProperty(key))
size++;
}
return size;
}
function includes(array, obj) {
return indexOf(array, obj) != -1;
}
function indexOf(array, obj) {
if (array.indexOf) return array.indexOf(obj);
for ( var i = 0; i < array.length; i++) {
if (obj === array[i]) return i;
}
return -1;
}
function arrayRemove(array, value) {
var index = indexOf(array, value);
if (index >=0)
array.splice(index, 1);
return value;
}
function isLeafNode (node) {
if (node) {
switch (node.nodeName) {
case "OPTION":
case "PRE":
case "TITLE":
return true;
}
}
return false;
}
/**
* @ngdoc function
* @name angular.copy
* @function
*
* @description
* Creates a deep copy of `source`, which should be an object or an array.
*
* * If no destination is supplied, a copy of the object or array is created.
* * If a destination is provided, all of its elements (for array) or properties (for objects)
* are deleted and then all elements/properties from the source are copied to it.
* * If `source` is not an object or array, `source` is returned.
*
* Note: this function is used to augment the Object type in Angular expressions. See
* {@link ng.$filter} for more information about Angular arrays.
*
* @param {*} source The source that will be used to make a copy.
* Can be any type, including primitives, `null`, and `undefined`.
* @param {(Object|Array)=} destination Destination into which the source is copied. If
* provided, must be of the same type as `source`.
* @returns {*} The copy or updated `destination`, if `destination` was specified.
*/
function copy(source, destination){
if (isWindow(source) || isScope(source)) throw Error("Can't copy Window or Scope");
if (!destination) {
destination = source;
if (source) {
if (isArray(source)) {
destination = copy(source, []);
} else if (isDate(source)) {
destination = new Date(source.getTime());
} else if (isObject(source)) {
destination = copy(source, {});
}
}
} else {
if (source === destination) throw Error("Can't copy equivalent objects or arrays");
if (isArray(source)) {
destination.length = 0;
for ( var i = 0; i < source.length; i++) {
destination.push(copy(source[i]));
}
} else {
var h = destination.$$hashKey;
forEach(destination, function(value, key){
delete destination[key];
});
for ( var key in source) {
destination[key] = copy(source[key]);
}
setHashKey(destination,h);
}
}
return destination;
}
/**
* Create a shallow copy of an object
*/
function shallowCopy(src, dst) {
dst = dst || {};
for(var key in src) {
if (src.hasOwnProperty(key) && key.substr(0, 2) !== '$$') {
dst[key] = src[key];
}
}
return dst;
}
/**
* @ngdoc function
* @name angular.equals
* @function
*
* @description
* Determines if two objects or two values are equivalent. Supports value types, arrays and
* objects.
*
* Two objects or values are considered equivalent if at least one of the following is true:
*
* * Both objects or values pass `===` comparison.
* * Both objects or values are of the same type and all of their properties pass `===` comparison.
* * Both values are NaN. (In JavasScript, NaN == NaN => false. But we consider two NaN as equal)
*
* During a property comparison, properties of `function` type and properties with names
* that begin with `$` are ignored.
*
* Scope and DOMWindow objects are being compared only by identify (`===`).
*
* @param {*} o1 Object or value to compare.
* @param {*} o2 Object or value to compare.
* @returns {boolean} True if arguments are equal.
*/
function equals(o1, o2) {
if (o1 === o2) return true;
if (o1 === null || o2 === null) return false;
if (o1 !== o1 && o2 !== o2) return true; // NaN === NaN
var t1 = typeof o1, t2 = typeof o2, length, key, keySet;
if (t1 == t2) {
if (t1 == 'object') {
if (isArray(o1)) {
if ((length = o1.length) == o2.length) {
for(key=0; key<length; key++) {
if (!equals(o1[key], o2[key])) return false;
}
return true;
}
} else if (isDate(o1)) {
return isDate(o2) && o1.getTime() == o2.getTime();
} else {
if (isScope(o1) || isScope(o2) || isWindow(o1) || isWindow(o2)) return false;
keySet = {};
for(key in o1) {
if (key.charAt(0) === '$' || isFunction(o1[key])) continue;
if (!equals(o1[key], o2[key])) return false;
keySet[key] = true;
}
for(key in o2) {
if (!keySet[key] &&
key.charAt(0) !== '$' &&
o2[key] !== undefined &&
!isFunction(o2[key])) return false;
}
return true;
}
}
}
return false;
}
function concat(array1, array2, index) {
return array1.concat(slice.call(array2, index));
}
function sliceArgs(args, startIndex) {
return slice.call(args, startIndex || 0);
}
/**
* @ngdoc function
* @name angular.bind
* @function
*
* @description
* Returns a function which calls function `fn` bound to `self` (`self` becomes the `this` for
* `fn`). You can supply optional `args` that are prebound to the function. This feature is also
* known as [function currying](http://en.wikipedia.org/wiki/Currying).
*
* @param {Object} self Context which `fn` should be evaluated in.
* @param {function()} fn Function to be bound.
* @param {...*} args Optional arguments to be prebound to the `fn` function call.
* @returns {function()} Function that wraps the `fn` with all the specified bindings.
*/
function bind(self, fn) {
var curryArgs = arguments.length > 2 ? sliceArgs(arguments, 2) : [];
if (isFunction(fn) && !(fn instanceof RegExp)) {
return curryArgs.length
? function() {
return arguments.length
? fn.apply(self, curryArgs.concat(slice.call(arguments, 0)))
: fn.apply(self, curryArgs);
}
: function() {
return arguments.length
? fn.apply(self, arguments)
: fn.call(self);
};
} else {
// in IE, native methods are not functions so they cannot be bound (note: they don't need to be)
return fn;
}
}
function toJsonReplacer(key, value) {
var val = value;
if (/^\$+/.test(key)) {
val = undefined;
} else if (isWindow(value)) {
val = '$WINDOW';
} else if (value && document === value) {
val = '$DOCUMENT';
} else if (isScope(value)) {
val = '$SCOPE';
}
return val;
}
/**
* @ngdoc function
* @name angular.toJson
* @function
*
* @description
* Serializes input into a JSON-formatted string.
*
* @param {Object|Array|Date|string|number} obj Input to be serialized into JSON.
* @param {boolean=} pretty If set to true, the JSON output will contain newlines and whitespace.
* @returns {string} Jsonified string representing `obj`.
*/
function toJson(obj, pretty) {
return JSON.stringify(obj, toJsonReplacer, pretty ? ' ' : null);
}
/**
* @ngdoc function
* @name angular.fromJson
* @function
*
* @description
* Deserializes a JSON string.
*
* @param {string} json JSON string to deserialize.
* @returns {Object|Array|Date|string|number} Deserialized thingy.
*/
function fromJson(json) {
return isString(json)
? JSON.parse(json)
: json;
}
function toBoolean(value) {
if (value && value.length !== 0) {
var v = lowercase("" + value);
value = !(v == 'f' || v == '0' || v == 'false' || v == 'no' || v == 'n' || v == '[]');
} else {
value = false;
}
return value;
}
/**
* @returns {string} Returns the string representation of the element.
*/
function startingTag(element) {
element = jqLite(element).clone();
try {
// turns out IE does not let you set .html() on elements which
// are not allowed to have children. So we just ignore it.
element.html('');
} catch(e) {}
// As Per DOM Standards
var TEXT_NODE = 3;
var elemHtml = jqLite('<div>').append(element).html();
try {
return element[0].nodeType === TEXT_NODE ? lowercase(elemHtml) :
elemHtml.
match(/^(<[^>]+>)/)[1].
replace(/^<([\w\-]+)/, function(match, nodeName) { return '<' + lowercase(nodeName); });
} catch(e) {
return lowercase(elemHtml);
}
}
/////////////////////////////////////////////////
/**
* Parses an escaped url query string into key-value pairs.
* @returns Object.<(string|boolean)>
*/
function parseKeyValue(/**string*/keyValue) {
var obj = {}, key_value, key;
forEach((keyValue || "").split('&'), function(keyValue){
if (keyValue) {
key_value = keyValue.split('=');
key = decodeURIComponent(key_value[0]);
obj[key] = isDefined(key_value[1]) ? decodeURIComponent(key_value[1]) : true;
}
});
return obj;
}
function toKeyValue(obj) {
var parts = [];
forEach(obj, function(value, key) {
parts.push(encodeUriQuery(key, true) + (value === true ? '' : '=' + encodeUriQuery(value, true)));
});
return parts.length ? parts.join('&') : '';
}
/**
* We need our custom method because encodeURIComponent is too aggressive and doesn't follow
* http://www.ietf.org/rfc/rfc3986.txt with regards to the character set (pchar) allowed in path
* segments:
* segment = *pchar
* pchar = unreserved / pct-encoded / sub-delims / ":" / "@"
* pct-encoded = "%" HEXDIG HEXDIG
* unreserved = ALPHA / DIGIT / "-" / "." / "_" / "~"
* sub-delims = "!" / "$" / "&" / "'" / "(" / ")"
* / "*" / "+" / "," / ";" / "="
*/
function encodeUriSegment(val) {
return encodeUriQuery(val, true).
replace(/%26/gi, '&').
replace(/%3D/gi, '=').
replace(/%2B/gi, '+');
}
/**
* This method is intended for encoding *key* or *value* parts of query component. We need a custom
* method because encodeURIComponent is too aggressive and encodes stuff that doesn't have to be
* encoded per http://tools.ietf.org/html/rfc3986:
* query = *( pchar / "/" / "?" )
* pchar = unreserved / pct-encoded / sub-delims / ":" / "@"
* unreserved = ALPHA / DIGIT / "-" / "." / "_" / "~"
* pct-encoded = "%" HEXDIG HEXDIG
* sub-delims = "!" / "$" / "&" / "'" / "(" / ")"
* / "*" / "+" / "," / ";" / "="
*/
function encodeUriQuery(val, pctEncodeSpaces) {
return encodeURIComponent(val).
replace(/%40/gi, '@').
replace(/%3A/gi, ':').
replace(/%24/g, '$').
replace(/%2C/gi, ',').
replace(/%20/g, (pctEncodeSpaces ? '%20' : '+'));
}
/**
* @ngdoc directive
* @name ng.directive:ngApp
*
* @element ANY
* @param {angular.Module} ngApp an optional application
* {@link angular.module module} name to load.
*
* @description
*
* Use this directive to auto-bootstrap an application. Only
* one directive can be used per HTML document. The directive
* designates the root of the application and is typically placed
* at the root of the page.
*
* In the example below if the `ngApp` directive would not be placed
* on the `html` element then the document would not be compiled
* and the `{{ 1+2 }}` would not be resolved to `3`.
*
* `ngApp` is the easiest way to bootstrap an application.
*
<doc:example>
<doc:source>
I can add: 1 + 2 = {{ 1+2 }}
</doc:source>
</doc:example>
*
*/
function angularInit(element, bootstrap) {
var elements = [element],
appElement,
module,
names = ['ng:app', 'ng-app', 'x-ng-app', 'data-ng-app'],
NG_APP_CLASS_REGEXP = /\sng[:\-]app(:\s*([\w\d_]+);?)?\s/;
function append(element) {
element && elements.push(element);
}
forEach(names, function(name) {
names[name] = true;
append(document.getElementById(name));
name = name.replace(':', '\\:');
if (element.querySelectorAll) {
forEach(element.querySelectorAll('.' + name), append);
forEach(element.querySelectorAll('.' + name + '\\:'), append);
forEach(element.querySelectorAll('[' + name + ']'), append);
}
});
forEach(elements, function(element) {
if (!appElement) {
var className = ' ' + element.className + ' ';
var match = NG_APP_CLASS_REGEXP.exec(className);
if (match) {
appElement = element;
module = (match[2] || '').replace(/\s+/g, ',');
} else {
forEach(element.attributes, function(attr) {
if (!appElement && names[attr.name]) {
appElement = element;
module = attr.value;
}
});
}
}
});
if (appElement) {
bootstrap(appElement, module ? [module] : []);
}
}
/**
* @ngdoc function
* @name angular.bootstrap
* @description
* Use this function to manually start up angular application.
*
* See: {@link guide/bootstrap Bootstrap}
*
* @param {Element} element DOM element which is the root of angular application.
* @param {Array<String|Function>=} modules an array of module declarations. See: {@link angular.module modules}
* @returns {AUTO.$injector} Returns the newly created injector for this app.
*/
function bootstrap(element, modules) {
var resumeBootstrapInternal = function() {
element = jqLite(element);
modules = modules || [];
modules.unshift(['$provide', function($provide) {
$provide.value('$rootElement', element);
}]);
modules.unshift('ng');
var injector = createInjector(modules);
injector.invoke(['$rootScope', '$rootElement', '$compile', '$injector', '$animator',
function(scope, element, compile, injector, animator) {
scope.$apply(function() {
element.data('$injector', injector);
compile(element)(scope);
});
animator.enabled(true);
}]
);
return injector;
};
var NG_DEFER_BOOTSTRAP = /^NG_DEFER_BOOTSTRAP!/;
if (window && !NG_DEFER_BOOTSTRAP.test(window.name)) {
return resumeBootstrapInternal();
}
window.name = window.name.replace(NG_DEFER_BOOTSTRAP, '');
angular.resumeBootstrap = function(extraModules) {
forEach(extraModules, function(module) {
modules.push(module);
});
resumeBootstrapInternal();
};
}
var SNAKE_CASE_REGEXP = /[A-Z]/g;
function snake_case(name, separator){
separator = separator || '_';
return name.replace(SNAKE_CASE_REGEXP, function(letter, pos) {
return (pos ? separator : '') + letter.toLowerCase();
});
}
function bindJQuery() {
// bind to jQuery if present;
jQuery = window.jQuery;
// reset to jQuery or default to us.
if (jQuery) {
jqLite = jQuery;
extend(jQuery.fn, {
scope: JQLitePrototype.scope,
controller: JQLitePrototype.controller,
injector: JQLitePrototype.injector,
inheritedData: JQLitePrototype.inheritedData
});
JQLitePatchJQueryRemove('remove', true);
JQLitePatchJQueryRemove('empty');
JQLitePatchJQueryRemove('html');
} else {
jqLite = JQLite;
}
angular.element = jqLite;
}
/**
* throw error if the argument is falsy.
*/
function assertArg(arg, name, reason) {
if (!arg) {
throw new Error("Argument '" + (name || '?') + "' is " + (reason || "required"));
}
return arg;
}
function assertArgFn(arg, name, acceptArrayAnnotation) {
if (acceptArrayAnnotation && isArray(arg)) {
arg = arg[arg.length - 1];
}
assertArg(isFunction(arg), name, 'not a function, got ' +
(arg && typeof arg == 'object' ? arg.constructor.name || 'Object' : typeof arg));
return arg;
}
/**
* @ngdoc interface
* @name angular.Module
* @description
*
* Interface for configuring angular {@link angular.module modules}.
*/
function setupModuleLoader(window) {
function ensure(obj, name, factory) {
return obj[name] || (obj[name] = factory());
}
return ensure(ensure(window, 'angular', Object), 'module', function() {
/** @type {Object.<string, angular.Module>} */
var modules = {};
/**
* @ngdoc function
* @name angular.module
* @description
*
* The `angular.module` is a global place for creating and registering Angular modules. All
* modules (angular core or 3rd party) that should be available to an application must be
* registered using this mechanism.
*
*
* # Module
*
* A module is a collocation of services, directives, filters, and configuration information. Module
* is used to configure the {@link AUTO.$injector $injector}.
*
* <pre>
* // Create a new module
* var myModule = angular.module('myModule', []);
*
* // register a new service
* myModule.value('appName', 'MyCoolApp');
*
* // configure existing services inside initialization blocks.
* myModule.config(function($locationProvider) {
* // Configure existing providers
* $locationProvider.hashPrefix('!');
* });
* </pre>
*
* Then you can create an injector and load your modules like this:
*
* <pre>
* var injector = angular.injector(['ng', 'MyModule'])
* </pre>
*
* However it's more likely that you'll just use
* {@link ng.directive:ngApp ngApp} or
* {@link angular.bootstrap} to simplify this process for you.
*
* @param {!string} name The name of the module to create or retrieve.
* @param {Array.<string>=} requires If specified then new module is being created. If unspecified then the
* the module is being retrieved for further configuration.
* @param {Function} configFn Optional configuration function for the module. Same as
* {@link angular.Module#config Module#config()}.
* @returns {module} new module with the {@link angular.Module} api.
*/
return function module(name, requires, configFn) {
if (requires && modules.hasOwnProperty(name)) {
modules[name] = null;
}
return ensure(modules, name, function() {
if (!requires) {
throw Error('No module: ' + name);
}
/** @type {!Array.<Array.<*>>} */
var invokeQueue = [];
/** @type {!Array.<Function>} */
var runBlocks = [];
var config = invokeLater('$injector', 'invoke');
/** @type {angular.Module} */
var moduleInstance = {
// Private state
_invokeQueue: invokeQueue,
_runBlocks: runBlocks,
/**
* @ngdoc property
* @name angular.Module#requires
* @propertyOf angular.Module
* @returns {Array.<string>} List of module names which must be loaded before this module.
* @description
* Holds the list of modules which the injector will load before the current module is loaded.
*/
requires: requires,
/**
* @ngdoc property
* @name angular.Module#name
* @propertyOf angular.Module
* @returns {string} Name of the module.
* @description
*/
name: name,
/**
* @ngdoc method
* @name angular.Module#provider
* @methodOf angular.Module
* @param {string} name service name
* @param {Function} providerType Construction function for creating new instance of the service.
* @description
* See {@link AUTO.$provide#provider $provide.provider()}.
*/
provider: invokeLater('$provide', 'provider'),
/**
* @ngdoc method
* @name angular.Module#factory
* @methodOf angular.Module
* @param {string} name service name
* @param {Function} providerFunction Function for creating new instance of the service.
* @description
* See {@link AUTO.$provide#factory $provide.factory()}.
*/
factory: invokeLater('$provide', 'factory'),
/**
* @ngdoc method
* @name angular.Module#service
* @methodOf angular.Module
* @param {string} name service name
* @param {Function} constructor A constructor function that will be instantiated.
* @description
* See {@link AUTO.$provide#service $provide.service()}.
*/
service: invokeLater('$provide', 'service'),
/**
* @ngdoc method
* @name angular.Module#value
* @methodOf angular.Module
* @param {string} name service name
* @param {*} object Service instance object.
* @description
* See {@link AUTO.$provide#value $provide.value()}.
*/
value: invokeLater('$provide', 'value'),
/**
* @ngdoc method
* @name angular.Module#constant
* @methodOf angular.Module
* @param {string} name constant name
* @param {*} object Constant value.
* @description
* Because the constant are fixed, they get applied before other provide methods.
* See {@link AUTO.$provide#constant $provide.constant()}.
*/
constant: invokeLater('$provide', 'constant', 'unshift'),
/**
* @ngdoc method
* @name angular.Module#animation
* @methodOf angular.Module
* @param {string} name animation name
* @param {Function} animationFactory Factory function for creating new instance of an animation.
* @description
*
* Defines an animation hook that can be later used with {@link ng.directive:ngAnimate ngAnimate}
* alongside {@link ng.directive:ngAnimate#Description common ng directives} as well as custom directives.
* <pre>
* module.animation('animation-name', function($inject1, $inject2) {
* return {
* //this gets called in preparation to setup an animation
* setup : function(element) { ... },
*
* //this gets called once the animation is run
* start : function(element, done, memo) { ... }
* }
* })
* </pre>
*
* See {@link ng.$animationProvider#register $animationProvider.register()} and
* {@link ng.directive:ngAnimate ngAnimate} for more information.
*/
animation: invokeLater('$animationProvider', 'register'),
/**
* @ngdoc method
* @name angular.Module#filter
* @methodOf angular.Module
* @param {string} name Filter name.
* @param {Function} filterFactory Factory function for creating new instance of filter.
* @description
* See {@link ng.$filterProvider#register $filterProvider.register()}.
*/
filter: invokeLater('$filterProvider', 'register'),
/**
* @ngdoc method
* @name angular.Module#controller
* @methodOf angular.Module
* @param {string} name Controller name.
* @param {Function} constructor Controller constructor function.
* @description
* See {@link ng.$controllerProvider#register $controllerProvider.register()}.
*/
controller: invokeLater('$controllerProvider', 'register'),
/**
* @ngdoc method
* @name angular.Module#directive
* @methodOf angular.Module
* @param {string} name directive name
* @param {Function} directiveFactory Factory function for creating new instance of
* directives.
* @description
* See {@link ng.$compileProvider#directive $compileProvider.directive()}.
*/
directive: invokeLater('$compileProvider', 'directive'),
/**
* @ngdoc method
* @name angular.Module#config
* @methodOf angular.Module
* @param {Function} configFn Execute this function on module load. Useful for service
* configuration.
* @description
* Use this method to register work which needs to be performed on module loading.
*/
config: config,
/**
* @ngdoc method
* @name angular.Module#run
* @methodOf angular.Module
* @param {Function} initializationFn Execute this function after injector creation.
* Useful for application initialization.
* @description
* Use this method to register work which should be performed when the injector is done
* loading all modules.
*/
run: function(block) {
runBlocks.push(block);
return this;
}
};
if (configFn) {
config(configFn);
}
return moduleInstance;
/**
* @param {string} provider
* @param {string} method
* @param {String=} insertMethod
* @returns {angular.Module}
*/
function invokeLater(provider, method, insertMethod) {
return function() {
invokeQueue[insertMethod || 'push']([provider, method, arguments]);
return moduleInstance;
}
}
});
};
});
}
/**
* @ngdoc property
* @name angular.version
* @description
* An object that contains information about the current AngularJS version. This object has the
* following properties:
*
* - `full` – `{string}` – Full version string, such as "0.9.18".
* - `major` – `{number}` – Major version number, such as "0".
* - `minor` – `{number}` – Minor version number, such as "9".
* - `dot` – `{number}` – Dot version number, such as "18".
* - `codeName` – `{string}` – Code name of the release, such as "jiggling-armfat".
*/
var version = {
full: '1.1.5', // all of these placeholder strings will be replaced by grunt's
major: 1, // package task
minor: 1,
dot: 5,
codeName: 'triangle-squarification'
};
function publishExternalAPI(angular){
extend(angular, {
'bootstrap': bootstrap,
'copy': copy,
'extend': extend,
'equals': equals,
'element': jqLite,
'forEach': forEach,
'injector': createInjector,
'noop':noop,
'bind':bind,
'toJson': toJson,
'fromJson': fromJson,
'identity':identity,
'isUndefined': isUndefined,
'isDefined': isDefined,
'isString': isString,
'isFunction': isFunction,
'isObject': isObject,
'isNumber': isNumber,
'isElement': isElement,
'isArray': isArray,
'version': version,
'isDate': isDate,
'lowercase': lowercase,
'uppercase': uppercase,
'callbacks': {counter: 0},
'noConflict': noConflict
});
angularModule = setupModuleLoader(window);
try {
angularModule('ngLocale');
} catch (e) {
angularModule('ngLocale', []).provider('$locale', $LocaleProvider);
}
angularModule('ng', ['ngLocale'], ['$provide',
function ngModule($provide) {
$provide.provider('$compile', $CompileProvider).
directive({
a: htmlAnchorDirective,
input: inputDirective,
textarea: inputDirective,
form: formDirective,
script: scriptDirective,
select: selectDirective,
style: styleDirective,
option: optionDirective,
ngBind: ngBindDirective,
ngBindHtmlUnsafe: ngBindHtmlUnsafeDirective,
ngBindTemplate: ngBindTemplateDirective,
ngClass: ngClassDirective,
ngClassEven: ngClassEvenDirective,
ngClassOdd: ngClassOddDirective,
ngCsp: ngCspDirective,
ngCloak: ngCloakDirective,
ngController: ngControllerDirective,
ngForm: ngFormDirective,
ngHide: ngHideDirective,
ngIf: ngIfDirective,
ngInclude: ngIncludeDirective,
ngInit: ngInitDirective,
ngNonBindable: ngNonBindableDirective,
ngPluralize: ngPluralizeDirective,
ngRepeat: ngRepeatDirective,
ngShow: ngShowDirective,
ngSubmit: ngSubmitDirective,
ngStyle: ngStyleDirective,
ngSwitch: ngSwitchDirective,
ngSwitchWhen: ngSwitchWhenDirective,
ngSwitchDefault: ngSwitchDefaultDirective,
ngOptions: ngOptionsDirective,
ngView: ngViewDirective,
ngTransclude: ngTranscludeDirective,
ngModel: ngModelDirective,
ngList: ngListDirective,
ngChange: ngChangeDirective,
required: requiredDirective,
ngRequired: requiredDirective,
ngValue: ngValueDirective
}).
directive(ngAttributeAliasDirectives).
directive(ngEventDirectives);
$provide.provider({
$anchorScroll: $AnchorScrollProvider,
$animation: $AnimationProvider,
$animator: $AnimatorProvider,
$browser: $BrowserProvider,
$cacheFactory: $CacheFactoryProvider,
$controller: $ControllerProvider,
$document: $DocumentProvider,
$exceptionHandler: $ExceptionHandlerProvider,
$filter: $FilterProvider,
$interpolate: $InterpolateProvider,
$http: $HttpProvider,
$httpBackend: $HttpBackendProvider,
$location: $LocationProvider,
$log: $LogProvider,
$parse: $ParseProvider,
$route: $RouteProvider,
$routeParams: $RouteParamsProvider,
$rootScope: $RootScopeProvider,
$q: $QProvider,
$sniffer: $SnifferProvider,
$templateCache: $TemplateCacheProvider,
$timeout: $TimeoutProvider,
$window: $WindowProvider
});
}
]);
}
//////////////////////////////////
//JQLite
//////////////////////////////////
/**
* @ngdoc function
* @name angular.element
* @function
*
* @description
* Wraps a raw DOM element or HTML string as a [jQuery](http://jquery.com) element.
* `angular.element` can be either an alias for [jQuery](http://api.jquery.com/jQuery/) function, if
* jQuery is available, or a function that wraps the element or string in Angular's jQuery lite
* implementation (commonly referred to as jqLite).
*
* Real jQuery always takes precedence over jqLite, provided it was loaded before `DOMContentLoaded`
* event fired.
*
* jqLite is a tiny, API-compatible subset of jQuery that allows
* Angular to manipulate the DOM. jqLite implements only the most commonly needed functionality
* within a very small footprint, so only a subset of the jQuery API - methods, arguments and
* invocation styles - are supported.
*
* Note: All element references in Angular are always wrapped with jQuery or jqLite; they are never
* raw DOM references.
*
* ## Angular's jQuery lite provides the following methods:
*
* - [addClass()](http://api.jquery.com/addClass/)
* - [after()](http://api.jquery.com/after/)
* - [append()](http://api.jquery.com/append/)
* - [attr()](http://api.jquery.com/attr/)
* - [bind()](http://api.jquery.com/bind/) - Does not support namespaces
* - [children()](http://api.jquery.com/children/) - Does not support selectors
* - [clone()](http://api.jquery.com/clone/)
* - [contents()](http://api.jquery.com/contents/)
* - [css()](http://api.jquery.com/css/)
* - [data()](http://api.jquery.com/data/)
* - [eq()](http://api.jquery.com/eq/)
* - [find()](http://api.jquery.com/find/) - Limited to lookups by tag name
* - [hasClass()](http://api.jquery.com/hasClass/)
* - [html()](http://api.jquery.com/html/)
* - [next()](http://api.jquery.com/next/) - Does not support selectors
* - [parent()](http://api.jquery.com/parent/) - Does not support selectors
* - [prepend()](http://api.jquery.com/prepend/)
* - [prop()](http://api.jquery.com/prop/)
* - [ready()](http://api.jquery.com/ready/)
* - [remove()](http://api.jquery.com/remove/)
* - [removeAttr()](http://api.jquery.com/removeAttr/)
* - [removeClass()](http://api.jquery.com/removeClass/)
* - [removeData()](http://api.jquery.com/removeData/)
* - [replaceWith()](http://api.jquery.com/replaceWith/)
* - [text()](http://api.jquery.com/text/)
* - [toggleClass()](http://api.jquery.com/toggleClass/)
* - [triggerHandler()](http://api.jquery.com/triggerHandler/) - Passes a dummy event object to handlers.
* - [unbind()](http://api.jquery.com/unbind/) - Does not support namespaces
* - [val()](http://api.jquery.com/val/)
* - [wrap()](http://api.jquery.com/wrap/)
*
* ## In addition to the above, Angular provides additional methods to both jQuery and jQuery lite:
*
* - `controller(name)` - retrieves the controller of the current element or its parent. By default
* retrieves controller associated with the `ngController` directive. If `name` is provided as
* camelCase directive name, then the controller for this directive will be retrieved (e.g.
* `'ngModel'`).
* - `injector()` - retrieves the injector of the current element or its parent.
* - `scope()` - retrieves the {@link api/ng.$rootScope.Scope scope} of the current
* element or its parent.
* - `inheritedData()` - same as `data()`, but walks up the DOM until a value is found or the top
* parent element is reached.
*
* @param {string|DOMElement} element HTML string or DOMElement to be wrapped into jQuery.
* @returns {Object} jQuery object.
*/
var jqCache = JQLite.cache = {},
jqName = JQLite.expando = 'ng-' + new Date().getTime(),
jqId = 1,
addEventListenerFn = (window.document.addEventListener
? function(element, type, fn) {element.addEventListener(type, fn, false);}
: function(element, type, fn) {element.attachEvent('on' + type, fn);}),
removeEventListenerFn = (window.document.removeEventListener
? function(element, type, fn) {element.removeEventListener(type, fn, false); }
: function(element, type, fn) {element.detachEvent('on' + type, fn); });
function jqNextId() { return ++jqId; }
var SPECIAL_CHARS_REGEXP = /([\:\-\_]+(.))/g;
var MOZ_HACK_REGEXP = /^moz([A-Z])/;
/**
* Converts snake_case to camelCase.
* Also there is special case for Moz prefix starting with upper case letter.
* @param name Name to normalize
*/
function camelCase(name) {
return name.
replace(SPECIAL_CHARS_REGEXP, function(_, separator, letter, offset) {
return offset ? letter.toUpperCase() : letter;
}).
replace(MOZ_HACK_REGEXP, 'Moz$1');
}
/////////////////////////////////////////////
// jQuery mutation patch
//
// In conjunction with bindJQuery intercepts all jQuery's DOM destruction apis and fires a
// $destroy event on all DOM nodes being removed.
//
/////////////////////////////////////////////
function JQLitePatchJQueryRemove(name, dispatchThis) {
var originalJqFn = jQuery.fn[name];
originalJqFn = originalJqFn.$original || originalJqFn;
removePatch.$original = originalJqFn;
jQuery.fn[name] = removePatch;
function removePatch() {
var list = [this],
fireEvent = dispatchThis,
set, setIndex, setLength,
element, childIndex, childLength, children,
fns, events;
while(list.length) {
set = list.shift();
for(setIndex = 0, setLength = set.length; setIndex < setLength; setIndex++) {
element = jqLite(set[setIndex]);
if (fireEvent) {
element.triggerHandler('$destroy');
} else {
fireEvent = !fireEvent;
}
for(childIndex = 0, childLength = (children = element.children()).length;
childIndex < childLength;
childIndex++) {
list.push(jQuery(children[childIndex]));
}
}
}
return originalJqFn.apply(this, arguments);
}
}
/////////////////////////////////////////////
function JQLite(element) {
if (element instanceof JQLite) {
return element;
}
if (!(this instanceof JQLite)) {
if (isString(element) && element.charAt(0) != '<') {
throw Error('selectors not implemented');
}
return new JQLite(element);
}
if (isString(element)) {
var div = document.createElement('div');
// Read about the NoScope elements here:
// http://msdn.microsoft.com/en-us/library/ms533897(VS.85).aspx
div.innerHTML = '<div> </div>' + element; // IE insanity to make NoScope elements work!
div.removeChild(div.firstChild); // remove the superfluous div
JQLiteAddNodes(this, div.childNodes);
this.remove(); // detach the elements from the temporary DOM div.
} else {
JQLiteAddNodes(this, element);
}
}
function JQLiteClone(element) {
return element.cloneNode(true);
}
function JQLiteDealoc(element){
JQLiteRemoveData(element);
for ( var i = 0, children = element.childNodes || []; i < children.length; i++) {
JQLiteDealoc(children[i]);
}
}
function JQLiteUnbind(element, type, fn) {
var events = JQLiteExpandoStore(element, 'events'),
handle = JQLiteExpandoStore(element, 'handle');
if (!handle) return; //no listeners registered
if (isUndefined(type)) {
forEach(events, function(eventHandler, type) {
removeEventListenerFn(element, type, eventHandler);
delete events[type];
});
} else {
if (isUndefined(fn)) {
removeEventListenerFn(element, type, events[type]);
delete events[type];
} else {
arrayRemove(events[type], fn);
}
}
}
function JQLiteRemoveData(element) {
var expandoId = element[jqName],
expandoStore = jqCache[expandoId];
if (expandoStore) {
if (expandoStore.handle) {
expandoStore.events.$destroy && expandoStore.handle({}, '$destroy');
JQLiteUnbind(element);
}
delete jqCache[expandoId];
element[jqName] = undefined; // ie does not allow deletion of attributes on elements.
}
}
function JQLiteExpandoStore(element, key, value) {
var expandoId = element[jqName],
expandoStore = jqCache[expandoId || -1];
if (isDefined(value)) {
if (!expandoStore) {
element[jqName] = expandoId = jqNextId();
expandoStore = jqCache[expandoId] = {};
}
expandoStore[key] = value;
} else {
return expandoStore && expandoStore[key];
}
}
function JQLiteData(element, key, value) {
var data = JQLiteExpandoStore(element, 'data'),
isSetter = isDefined(value),
keyDefined = !isSetter && isDefined(key),
isSimpleGetter = keyDefined && !isObject(key);
if (!data && !isSimpleGetter) {
JQLiteExpandoStore(element, 'data', data = {});
}
if (isSetter) {
data[key] = value;
} else {
if (keyDefined) {
if (isSimpleGetter) {
// don't create data in this case.
return data && data[key];
} else {
extend(data, key);
}
} else {
return data;
}
}
}
function JQLiteHasClass(element, selector) {
return ((" " + element.className + " ").replace(/[\n\t]/g, " ").
indexOf( " " + selector + " " ) > -1);
}
function JQLiteRemoveClass(element, cssClasses) {
if (cssClasses) {
forEach(cssClasses.split(' '), function(cssClass) {
element.className = trim(
(" " + element.className + " ")
.replace(/[\n\t]/g, " ")
.replace(" " + trim(cssClass) + " ", " ")
);
});
}
}
function JQLiteAddClass(element, cssClasses) {
if (cssClasses) {
forEach(cssClasses.split(' '), function(cssClass) {
if (!JQLiteHasClass(element, cssClass)) {
element.className = trim(element.className + ' ' + trim(cssClass));
}
});
}
}
function JQLiteAddNodes(root, elements) {
if (elements) {
elements = (!elements.nodeName && isDefined(elements.length) && !isWindow(elements))
? elements
: [ elements ];
for(var i=0; i < elements.length; i++) {
root.push(elements[i]);
}
}
}
function JQLiteController(element, name) {
return JQLiteInheritedData(element, '$' + (name || 'ngController' ) + 'Controller');
}
function JQLiteInheritedData(element, name, value) {
element = jqLite(element);
// if element is the document object work with the html element instead
// this makes $(document).scope() possible
if(element[0].nodeType == 9) {
element = element.find('html');
}
while (element.length) {
if (value = element.data(name)) return value;
element = element.parent();
}
}
//////////////////////////////////////////
// Functions which are declared directly.
//////////////////////////////////////////
var JQLitePrototype = JQLite.prototype = {
ready: function(fn) {
var fired = false;
function trigger() {
if (fired) return;
fired = true;
fn();
}
// check if document already is loaded
if (document.readyState === 'complete'){
setTimeout(trigger);
} else {
this.bind('DOMContentLoaded', trigger); // works for modern browsers and IE9
// we can not use jqLite since we are not done loading and jQuery could be loaded later.
JQLite(window).bind('load', trigger); // fallback to window.onload for others
}
},
toString: function() {
var value = [];
forEach(this, function(e){ value.push('' + e);});
return '[' + value.join(', ') + ']';
},
eq: function(index) {
return (index >= 0) ? jqLite(this[index]) : jqLite(this[this.length + index]);
},
length: 0,
push: push,
sort: [].sort,
splice: [].splice
};
//////////////////////////////////////////
// Functions iterating getter/setters.
// these functions return self on setter and
// value on get.
//////////////////////////////////////////
var BOOLEAN_ATTR = {};
forEach('multiple,selected,checked,disabled,readOnly,required,open'.split(','), function(value) {
BOOLEAN_ATTR[lowercase(value)] = value;
});
var BOOLEAN_ELEMENTS = {};
forEach('input,select,option,textarea,button,form,details'.split(','), function(value) {
BOOLEAN_ELEMENTS[uppercase(value)] = true;
});
function getBooleanAttrName(element, name) {
// check dom last since we will most likely fail on name
var booleanAttr = BOOLEAN_ATTR[name.toLowerCase()];
// booleanAttr is here twice to minimize DOM access
return booleanAttr && BOOLEAN_ELEMENTS[element.nodeName] && booleanAttr;
}
forEach({
data: JQLiteData,
inheritedData: JQLiteInheritedData,
scope: function(element) {
return JQLiteInheritedData(element, '$scope');
},
controller: JQLiteController ,
injector: function(element) {
return JQLiteInheritedData(element, '$injector');
},
removeAttr: function(element,name) {
element.removeAttribute(name);
},
hasClass: JQLiteHasClass,
css: function(element, name, value) {
name = camelCase(name);
if (isDefined(value)) {
element.style[name] = value;
} else {
var val;
if (msie <= 8) {
// this is some IE specific weirdness that jQuery 1.6.4 does not sure why
val = element.currentStyle && element.currentStyle[name];
if (val === '') val = 'auto';
}
val = val || element.style[name];
if (msie <= 8) {
// jquery weirdness :-/
val = (val === '') ? undefined : val;
}
return val;
}
},
attr: function(element, name, value){
var lowercasedName = lowercase(name);
if (BOOLEAN_ATTR[lowercasedName]) {
if (isDefined(value)) {
if (!!value) {
element[name] = true;
element.setAttribute(name, lowercasedName);
} else {
element[name] = false;
element.removeAttribute(lowercasedName);
}
} else {
return (element[name] ||
(element.attributes.getNamedItem(name)|| noop).specified)
? lowercasedName
: undefined;
}
} else if (isDefined(value)) {
element.setAttribute(name, value);
} else if (element.getAttribute) {
// the extra argument "2" is to get the right thing for a.href in IE, see jQuery code
// some elements (e.g. Document) don't have get attribute, so return undefined
var ret = element.getAttribute(name, 2);
// normalize non-existing attributes to undefined (as jQuery)
return ret === null ? undefined : ret;
}
},
prop: function(element, name, value) {
if (isDefined(value)) {
element[name] = value;
} else {
return element[name];
}
},
text: extend((msie < 9)
? function(element, value) {
if (element.nodeType == 1 /** Element */) {
if (isUndefined(value))
return element.innerText;
element.innerText = value;
} else {
if (isUndefined(value))
return element.nodeValue;
element.nodeValue = value;
}
}
: function(element, value) {
if (isUndefined(value)) {
return element.textContent;
}
element.textContent = value;
}, {$dv:''}),
val: function(element, value) {
if (isUndefined(value)) {
return element.value;
}
element.value = value;
},
html: function(element, value) {
if (isUndefined(value)) {
return element.innerHTML;
}
for (var i = 0, childNodes = element.childNodes; i < childNodes.length; i++) {
JQLiteDealoc(childNodes[i]);
}
element.innerHTML = value;
}
}, function(fn, name){
/**
* Properties: writes return selection, reads return first value
*/
JQLite.prototype[name] = function(arg1, arg2) {
var i, key;
// JQLiteHasClass has only two arguments, but is a getter-only fn, so we need to special-case it
// in a way that survives minification.
if (((fn.length == 2 && (fn !== JQLiteHasClass && fn !== JQLiteController)) ? arg1 : arg2) === undefined) {
if (isObject(arg1)) {
// we are a write, but the object properties are the key/values
for(i=0; i < this.length; i++) {
if (fn === JQLiteData) {
// data() takes the whole object in jQuery
fn(this[i], arg1);
} else {
for (key in arg1) {
fn(this[i], key, arg1[key]);
}
}
}
// return self for chaining
return this;
} else {
// we are a read, so read the first child.
if (this.length)
return fn(this[0], arg1, arg2);
}
} else {
// we are a write, so apply to all children
for(i=0; i < this.length; i++) {
fn(this[i], arg1, arg2);
}
// return self for chaining
return this;
}
return fn.$dv;
};
});
function createEventHandler(element, events) {
var eventHandler = function (event, type) {
if (!event.preventDefault) {
event.preventDefault = function() {
event.returnValue = false; //ie
};
}
if (!event.stopPropagation) {
event.stopPropagation = function() {
event.cancelBubble = true; //ie
};
}
if (!event.target) {
event.target = event.srcElement || document;
}
if (isUndefined(event.defaultPrevented)) {
var prevent = event.preventDefault;
event.preventDefault = function() {
event.defaultPrevented = true;
prevent.call(event);
};
event.defaultPrevented = false;
}
event.isDefaultPrevented = function() {
return event.defaultPrevented || event.returnValue == false;
};
forEach(events[type || event.type], function(fn) {
fn.call(element, event);
});
// Remove monkey-patched methods (IE),
// as they would cause memory leaks in IE8.
if (msie <= 8) {
// IE7/8 does not allow to delete property on native object
event.preventDefault = null;
event.stopPropagation = null;
event.isDefaultPrevented = null;
} else {
// It shouldn't affect normal browsers (native methods are defined on prototype).
delete event.preventDefault;
delete event.stopPropagation;
delete event.isDefaultPrevented;
}
};
eventHandler.elem = element;
return eventHandler;
}
//////////////////////////////////////////
// Functions iterating traversal.
// These functions chain results into a single
// selector.
//////////////////////////////////////////
forEach({
removeData: JQLiteRemoveData,
dealoc: JQLiteDealoc,
bind: function bindFn(element, type, fn){
var events = JQLiteExpandoStore(element, 'events'),
handle = JQLiteExpandoStore(element, 'handle');
if (!events) JQLiteExpandoStore(element, 'events', events = {});
if (!handle) JQLiteExpandoStore(element, 'handle', handle = createEventHandler(element, events));
forEach(type.split(' '), function(type){
var eventFns = events[type];
if (!eventFns) {
if (type == 'mouseenter' || type == 'mouseleave') {
var contains = document.body.contains || document.body.compareDocumentPosition ?
function( a, b ) {
var adown = a.nodeType === 9 ? a.documentElement : a,
bup = b && b.parentNode;
return a === bup || !!( bup && bup.nodeType === 1 && (
adown.contains ?
adown.contains( bup ) :
a.compareDocumentPosition && a.compareDocumentPosition( bup ) & 16
));
} :
function( a, b ) {
if ( b ) {
while ( (b = b.parentNode) ) {
if ( b === a ) {
return true;
}
}
}
return false;
};
events[type] = [];
// Refer to jQuery's implementation of mouseenter & mouseleave
// Read about mouseenter and mouseleave:
// http://www.quirksmode.org/js/events_mouse.html#link8
var eventmap = { mouseleave : "mouseout", mouseenter : "mouseover"}
bindFn(element, eventmap[type], function(event) {
var ret, target = this, related = event.relatedTarget;
// For mousenter/leave call the handler if related is outside the target.
// NB: No relatedTarget if the mouse left/entered the browser window
if ( !related || (related !== target && !contains(target, related)) ){
handle(event, type);
}
});
} else {
addEventListenerFn(element, type, handle);
events[type] = [];
}
eventFns = events[type]
}
eventFns.push(fn);
});
},
unbind: JQLiteUnbind,
replaceWith: function(element, replaceNode) {
var index, parent = element.parentNode;
JQLiteDealoc(element);
forEach(new JQLite(replaceNode), function(node){
if (index) {
parent.insertBefore(node, index.nextSibling);
} else {
parent.replaceChild(node, element);
}
index = node;
});
},
children: function(element) {
var children = [];
forEach(element.childNodes, function(element){
if (element.nodeType === 1)
children.push(element);
});
return children;
},
contents: function(element) {
return element.childNodes || [];
},
append: function(element, node) {
forEach(new JQLite(node), function(child){
if (element.nodeType === 1 || element.nodeType === 11) {
element.appendChild(child);
}
});
},
prepend: function(element, node) {
if (element.nodeType === 1) {
var index = element.firstChild;
forEach(new JQLite(node), function(child){
if (index) {
element.insertBefore(child, index);
} else {
element.appendChild(child);
index = child;
}
});
}
},
wrap: function(element, wrapNode) {
wrapNode = jqLite(wrapNode)[0];
var parent = element.parentNode;
if (parent) {
parent.replaceChild(wrapNode, element);
}
wrapNode.appendChild(element);
},
remove: function(element) {
JQLiteDealoc(element);
var parent = element.parentNode;
if (parent) parent.removeChild(element);
},
after: function(element, newElement) {
var index = element, parent = element.parentNode;
forEach(new JQLite(newElement), function(node){
parent.insertBefore(node, index.nextSibling);
index = node;
});
},
addClass: JQLiteAddClass,
removeClass: JQLiteRemoveClass,
toggleClass: function(element, selector, condition) {
if (isUndefined(condition)) {
condition = !JQLiteHasClass(element, selector);
}
(condition ? JQLiteAddClass : JQLiteRemoveClass)(element, selector);
},
parent: function(element) {
var parent = element.parentNode;
return parent && parent.nodeType !== 11 ? parent : null;
},
next: function(element) {
if (element.nextElementSibling) {
return element.nextElementSibling;
}
// IE8 doesn't have nextElementSibling
var elm = element.nextSibling;
while (elm != null && elm.nodeType !== 1) {
elm = elm.nextSibling;
}
return elm;
},
find: function(element, selector) {
return element.getElementsByTagName(selector);
},
clone: JQLiteClone,
triggerHandler: function(element, eventName) {
var eventFns = (JQLiteExpandoStore(element, 'events') || {})[eventName];
var event;
forEach(eventFns, function(fn) {
fn.call(element, {preventDefault: noop});
});
}
}, function(fn, name){
/**
* chaining functions
*/
JQLite.prototype[name] = function(arg1, arg2) {
var value;
for(var i=0; i < this.length; i++) {
if (value == undefined) {
value = fn(this[i], arg1, arg2);
if (value !== undefined) {
// any function which returns a value needs to be wrapped
value = jqLite(value);
}
} else {
JQLiteAddNodes(value, fn(this[i], arg1, arg2));
}
}
return value == undefined ? this : value;
};
});
/**
* Computes a hash of an 'obj'.
* Hash of a:
* string is string
* number is number as string
* object is either result of calling $$hashKey function on the object or uniquely generated id,
* that is also assigned to the $$hashKey property of the object.
*
* @param obj
* @returns {string} hash string such that the same input will have the same hash string.
* The resulting string key is in 'type:hashKey' format.
*/
function hashKey(obj) {
var objType = typeof obj,
key;
if (objType == 'object' && obj !== null) {
if (typeof (key = obj.$$hashKey) == 'function') {
// must invoke on object to keep the right this
key = obj.$$hashKey();
} else if (key === undefined) {
key = obj.$$hashKey = nextUid();
}
} else {
key = obj;
}
return objType + ':' + key;
}
/**
* HashMap which can use objects as keys
*/
function HashMap(array){
forEach(array, this.put, this);
}
HashMap.prototype = {
/**
* Store key value pair
* @param key key to store can be any type
* @param value value to store can be any type
*/
put: function(key, value) {
this[hashKey(key)] = value;
},
/**
* @param key
* @returns the value for the key
*/
get: function(key) {
return this[hashKey(key)];
},
/**
* Remove the key/value pair
* @param key
*/
remove: function(key) {
var value = this[key = hashKey(key)];
delete this[key];
return value;
}
};
/**
* @ngdoc function
* @name angular.injector
* @function
*
* @description
* Creates an injector function that can be used for retrieving services as well as for
* dependency injection (see {@link guide/di dependency injection}).
*
* @param {Array.<string|Function>} modules A list of module functions or their aliases. See
* {@link angular.module}. The `ng` module must be explicitly added.
* @returns {function()} Injector function. See {@link AUTO.$injector $injector}.
*
* @example
* Typical usage
* <pre>
* // create an injector
* var $injector = angular.injector(['ng']);
*
* // use the injector to kick off your application
* // use the type inference to auto inject arguments, or use implicit injection
* $injector.invoke(function($rootScope, $compile, $document){
* $compile($document)($rootScope);
* $rootScope.$digest();
* });
* </pre>
*/
/**
* @ngdoc overview
* @name AUTO
* @description
*
* Implicit module which gets automatically added to each {@link AUTO.$injector $injector}.
*/
var FN_ARGS = /^function\s*[^\(]*\(\s*([^\)]*)\)/m;
var FN_ARG_SPLIT = /,/;
var FN_ARG = /^\s*(_?)(\S+?)\1\s*$/;
var STRIP_COMMENTS = /((\/\/.*$)|(\/\*[\s\S]*?\*\/))/mg;
function annotate(fn) {
var $inject,
fnText,
argDecl,
last;
if (typeof fn == 'function') {
if (!($inject = fn.$inject)) {
$inject = [];
fnText = fn.toString().replace(STRIP_COMMENTS, '');
argDecl = fnText.match(FN_ARGS);
forEach(argDecl[1].split(FN_ARG_SPLIT), function(arg){
arg.replace(FN_ARG, function(all, underscore, name){
$inject.push(name);
});
});
fn.$inject = $inject;
}
} else if (isArray(fn)) {
last = fn.length - 1;
assertArgFn(fn[last], 'fn');
$inject = fn.slice(0, last);
} else {
assertArgFn(fn, 'fn', true);
}
return $inject;
}
///////////////////////////////////////
/**
* @ngdoc object
* @name AUTO.$injector
* @function
*
* @description
*
* `$injector` is used to retrieve object instances as defined by
* {@link AUTO.$provide provider}, instantiate types, invoke methods,
* and load modules.
*
* The following always holds true:
*
* <pre>
* var $injector = angular.injector();
* expect($injector.get('$injector')).toBe($injector);
* expect($injector.invoke(function($injector){
* return $injector;
* }).toBe($injector);
* </pre>
*
* # Injection Function Annotation
*
* JavaScript does not have annotations, and annotations are needed for dependency injection. The
* following are all valid ways of annotating function with injection arguments and are equivalent.
*
* <pre>
* // inferred (only works if code not minified/obfuscated)
* $injector.invoke(function(serviceA){});
*
* // annotated
* function explicit(serviceA) {};
* explicit.$inject = ['serviceA'];
* $injector.invoke(explicit);
*
* // inline
* $injector.invoke(['serviceA', function(serviceA){}]);
* </pre>
*
* ## Inference
*
* In JavaScript calling `toString()` on a function returns the function definition. The definition can then be
* parsed and the function arguments can be extracted. *NOTE:* This does not work with minification, and obfuscation
* tools since these tools change the argument names.
*
* ## `$inject` Annotation
* By adding a `$inject` property onto a function the injection parameters can be specified.
*
* ## Inline
* As an array of injection names, where the last item in the array is the function to call.
*/
/**
* @ngdoc method
* @name AUTO.$injector#get
* @methodOf AUTO.$injector
*
* @description
* Return an instance of the service.
*
* @param {string} name The name of the instance to retrieve.
* @return {*} The instance.
*/
/**
* @ngdoc method
* @name AUTO.$injector#invoke
* @methodOf AUTO.$injector
*
* @description
* Invoke the method and supply the method arguments from the `$injector`.
*
* @param {!function} fn The function to invoke. The function arguments come form the function annotation.
* @param {Object=} self The `this` for the invoked method.
* @param {Object=} locals Optional object. If preset then any argument names are read from this object first, before
* the `$injector` is consulted.
* @returns {*} the value returned by the invoked `fn` function.
*/
/**
* @ngdoc method
* @name AUTO.$injector#has
* @methodOf AUTO.$injector
*
* @description
* Allows the user to query if the particular service exist.
*
* @param {string} Name of the service to query.
* @returns {boolean} returns true if injector has given service.
*/
/**
* @ngdoc method
* @name AUTO.$injector#instantiate
* @methodOf AUTO.$injector
* @description
* Create a new instance of JS type. The method takes a constructor function invokes the new operator and supplies
* all of the arguments to the constructor function as specified by the constructor annotation.
*
* @param {function} Type Annotated constructor function.
* @param {Object=} locals Optional object. If preset then any argument names are read from this object first, before
* the `$injector` is consulted.
* @returns {Object} new instance of `Type`.
*/
/**
* @ngdoc method
* @name AUTO.$injector#annotate
* @methodOf AUTO.$injector
*
* @description
* Returns an array of service names which the function is requesting for injection. This API is used by the injector
* to determine which services need to be injected into the function when the function is invoked. There are three
* ways in which the function can be annotated with the needed dependencies.
*
* # Argument names
*
* The simplest form is to extract the dependencies from the arguments of the function. This is done by converting
* the function into a string using `toString()` method and extracting the argument names.
* <pre>
* // Given
* function MyController($scope, $route) {
* // ...
* }
*
* // Then
* expect(injector.annotate(MyController)).toEqual(['$scope', '$route']);
* </pre>
*
* This method does not work with code minfication / obfuscation. For this reason the following annotation strategies
* are supported.
*
* # The `$inject` property
*
* If a function has an `$inject` property and its value is an array of strings, then the strings represent names of
* services to be injected into the function.
* <pre>
* // Given
* var MyController = function(obfuscatedScope, obfuscatedRoute) {
* // ...
* }
* // Define function dependencies
* MyController.$inject = ['$scope', '$route'];
*
* // Then
* expect(injector.annotate(MyController)).toEqual(['$scope', '$route']);
* </pre>
*
* # The array notation
*
* It is often desirable to inline Injected functions and that's when setting the `$inject` property is very
* inconvenient. In these situations using the array notation to specify the dependencies in a way that survives
* minification is a better choice:
*
* <pre>
* // We wish to write this (not minification / obfuscation safe)
* injector.invoke(function($compile, $rootScope) {
* // ...
* });
*
* // We are forced to write break inlining
* var tmpFn = function(obfuscatedCompile, obfuscatedRootScope) {
* // ...
* };
* tmpFn.$inject = ['$compile', '$rootScope'];
* injector.invoke(tmpFn);
*
* // To better support inline function the inline annotation is supported
* injector.invoke(['$compile', '$rootScope', function(obfCompile, obfRootScope) {
* // ...
* }]);
*
* // Therefore
* expect(injector.annotate(
* ['$compile', '$rootScope', function(obfus_$compile, obfus_$rootScope) {}])
* ).toEqual(['$compile', '$rootScope']);
* </pre>
*
* @param {function|Array.<string|Function>} fn Function for which dependent service names need to be retrieved as described
* above.
*
* @returns {Array.<string>} The names of the services which the function requires.
*/
/**
* @ngdoc object
* @name AUTO.$provide
*
* @description
*
* Use `$provide` to register new providers with the `$injector`. The providers are the factories for the instance.
* The providers share the same name as the instance they create with `Provider` suffixed to them.
*
* A provider is an object with a `$get()` method. The injector calls the `$get` method to create a new instance of
* a service. The Provider can have additional methods which would allow for configuration of the provider.
*
* <pre>
* function GreetProvider() {
* var salutation = 'Hello';
*
* this.salutation = function(text) {
* salutation = text;
* };
*
* this.$get = function() {
* return function (name) {
* return salutation + ' ' + name + '!';
* };
* };
* }
*
* describe('Greeter', function(){
*
* beforeEach(module(function($provide) {
* $provide.provider('greet', GreetProvider);
* }));
*
* it('should greet', inject(function(greet) {
* expect(greet('angular')).toEqual('Hello angular!');
* }));
*
* it('should allow configuration of salutation', function() {
* module(function(greetProvider) {
* greetProvider.salutation('Ahoj');
* });
* inject(function(greet) {
* expect(greet('angular')).toEqual('Ahoj angular!');
* });
* });
* </pre>
*/
/**
* @ngdoc method
* @name AUTO.$provide#provider
* @methodOf AUTO.$provide
* @description
*
* Register a provider for a service. The providers can be retrieved and can have additional configuration methods.
*
* @param {string} name The name of the instance. NOTE: the provider will be available under `name + 'Provider'` key.
* @param {(Object|function())} provider If the provider is:
*
* - `Object`: then it should have a `$get` method. The `$get` method will be invoked using
* {@link AUTO.$injector#invoke $injector.invoke()} when an instance needs to be created.
* - `Constructor`: a new instance of the provider will be created using
* {@link AUTO.$injector#instantiate $injector.instantiate()}, then treated as `object`.
*
* @returns {Object} registered provider instance
*/
/**
* @ngdoc method
* @name AUTO.$provide#factory
* @methodOf AUTO.$provide
* @description
*
* A short hand for configuring services if only `$get` method is required.
*
* @param {string} name The name of the instance.
* @param {function()} $getFn The $getFn for the instance creation. Internally this is a short hand for
* `$provide.provider(name, {$get: $getFn})`.
* @returns {Object} registered provider instance
*/
/**
* @ngdoc method
* @name AUTO.$provide#service
* @methodOf AUTO.$provide
* @description
*
* A short hand for registering service of given class.
*
* @param {string} name The name of the instance.
* @param {Function} constructor A class (constructor function) that will be instantiated.
* @returns {Object} registered provider instance
*/
/**
* @ngdoc method
* @name AUTO.$provide#value
* @methodOf AUTO.$provide
* @description
*
* A short hand for configuring services if the `$get` method is a constant.
*
* @param {string} name The name of the instance.
* @param {*} value The value.
* @returns {Object} registered provider instance
*/
/**
* @ngdoc method
* @name AUTO.$provide#constant
* @methodOf AUTO.$provide
* @description
*
* A constant value, but unlike {@link AUTO.$provide#value value} it can be injected
* into configuration function (other modules) and it is not interceptable by
* {@link AUTO.$provide#decorator decorator}.
*
* @param {string} name The name of the constant.
* @param {*} value The constant value.
* @returns {Object} registered instance
*/
/**
* @ngdoc method
* @name AUTO.$provide#decorator
* @methodOf AUTO.$provide
* @description
*
* Decoration of service, allows the decorator to intercept the service instance creation. The
* returned instance may be the original instance, or a new instance which delegates to the
* original instance.
*
* @param {string} name The name of the service to decorate.
* @param {function()} decorator This function will be invoked when the service needs to be
* instantiated. The function is called using the {@link AUTO.$injector#invoke
* injector.invoke} method and is therefore fully injectable. Local injection arguments:
*
* * `$delegate` - The original service instance, which can be monkey patched, configured,
* decorated or delegated to.
*/
function createInjector(modulesToLoad) {
var INSTANTIATING = {},
providerSuffix = 'Provider',
path = [],
loadedModules = new HashMap(),
providerCache = {
$provide: {
provider: supportObject(provider),
factory: supportObject(factory),
service: supportObject(service),
value: supportObject(value),
constant: supportObject(constant),
decorator: decorator
}
},
providerInjector = (providerCache.$injector =
createInternalInjector(providerCache, function() {
throw Error("Unknown provider: " + path.join(' <- '));
})),
instanceCache = {},
instanceInjector = (instanceCache.$injector =
createInternalInjector(instanceCache, function(servicename) {
var provider = providerInjector.get(servicename + providerSuffix);
return instanceInjector.invoke(provider.$get, provider);
}));
forEach(loadModules(modulesToLoad), function(fn) { instanceInjector.invoke(fn || noop); });
return instanceInjector;
////////////////////////////////////
// $provider
////////////////////////////////////
function supportObject(delegate) {
return function(key, value) {
if (isObject(key)) {
forEach(key, reverseParams(delegate));
} else {
return delegate(key, value);
}
}
}
function provider(name, provider_) {
if (isFunction(provider_) || isArray(provider_)) {
provider_ = providerInjector.instantiate(provider_);
}
if (!provider_.$get) {
throw Error('Provider ' + name + ' must define $get factory method.');
}
return providerCache[name + providerSuffix] = provider_;
}
function factory(name, factoryFn) { return provider(name, { $get: factoryFn }); }
function service(name, constructor) {
return factory(name, ['$injector', function($injector) {
return $injector.instantiate(constructor);
}]);
}
function value(name, value) { return factory(name, valueFn(value)); }
function constant(name, value) {
providerCache[name] = value;
instanceCache[name] = value;
}
function decorator(serviceName, decorFn) {
var origProvider = providerInjector.get(serviceName + providerSuffix),
orig$get = origProvider.$get;
origProvider.$get = function() {
var origInstance = instanceInjector.invoke(orig$get, origProvider);
return instanceInjector.invoke(decorFn, null, {$delegate: origInstance});
};
}
////////////////////////////////////
// Module Loading
////////////////////////////////////
function loadModules(modulesToLoad){
var runBlocks = [];
forEach(modulesToLoad, function(module) {
if (loadedModules.get(module)) return;
loadedModules.put(module, true);
if (isString(module)) {
var moduleFn = angularModule(module);
runBlocks = runBlocks.concat(loadModules(moduleFn.requires)).concat(moduleFn._runBlocks);
try {
for(var invokeQueue = moduleFn._invokeQueue, i = 0, ii = invokeQueue.length; i < ii; i++) {
var invokeArgs = invokeQueue[i],
provider = providerInjector.get(invokeArgs[0]);
provider[invokeArgs[1]].apply(provider, invokeArgs[2]);
}
} catch (e) {
if (e.message) e.message += ' from ' + module;
throw e;
}
} else if (isFunction(module)) {
try {
runBlocks.push(providerInjector.invoke(module));
} catch (e) {
if (e.message) e.message += ' from ' + module;
throw e;
}
} else if (isArray(module)) {
try {
runBlocks.push(providerInjector.invoke(module));
} catch (e) {
if (e.message) e.message += ' from ' + String(module[module.length - 1]);
throw e;
}
} else {
assertArgFn(module, 'module');
}
});
return runBlocks;
}
////////////////////////////////////
// internal Injector
////////////////////////////////////
function createInternalInjector(cache, factory) {
function getService(serviceName) {
if (typeof serviceName !== 'string') {
throw Error('Service name expected');
}
if (cache.hasOwnProperty(serviceName)) {
if (cache[serviceName] === INSTANTIATING) {
throw Error('Circular dependency: ' + path.join(' <- '));
}
return cache[serviceName];
} else {
try {
path.unshift(serviceName);
cache[serviceName] = INSTANTIATING;
return cache[serviceName] = factory(serviceName);
} finally {
path.shift();
}
}
}
function invoke(fn, self, locals){
var args = [],
$inject = annotate(fn),
length, i,
key;
for(i = 0, length = $inject.length; i < length; i++) {
key = $inject[i];
args.push(
locals && locals.hasOwnProperty(key)
? locals[key]
: getService(key)
);
}
if (!fn.$inject) {
// this means that we must be an array.
fn = fn[length];
}
// Performance optimization: http://jsperf.com/apply-vs-call-vs-invoke
switch (self ? -1 : args.length) {
case 0: return fn();
case 1: return fn(args[0]);
case 2: return fn(args[0], args[1]);
case 3: return fn(args[0], args[1], args[2]);
case 4: return fn(args[0], args[1], args[2], args[3]);
case 5: return fn(args[0], args[1], args[2], args[3], args[4]);
case 6: return fn(args[0], args[1], args[2], args[3], args[4], args[5]);
case 7: return fn(args[0], args[1], args[2], args[3], args[4], args[5], args[6]);
case 8: return fn(args[0], args[1], args[2], args[3], args[4], args[5], args[6], args[7]);
case 9: return fn(args[0], args[1], args[2], args[3], args[4], args[5], args[6], args[7], args[8]);
case 10: return fn(args[0], args[1], args[2], args[3], args[4], args[5], args[6], args[7], args[8], args[9]);
default: return fn.apply(self, args);
}
}
function instantiate(Type, locals) {
var Constructor = function() {},
instance, returnedValue;
// Check if Type is annotated and use just the given function at n-1 as parameter
// e.g. someModule.factory('greeter', ['$window', function(renamed$window) {}]);
Constructor.prototype = (isArray(Type) ? Type[Type.length - 1] : Type).prototype;
instance = new Constructor();
returnedValue = invoke(Type, instance, locals);
return isObject(returnedValue) ? returnedValue : instance;
}
return {
invoke: invoke,
instantiate: instantiate,
get: getService,
annotate: annotate,
has: function(name) {
return providerCache.hasOwnProperty(name + providerSuffix) || cache.hasOwnProperty(name);
}
};
}
}
/**
* @ngdoc function
* @name ng.$anchorScroll
* @requires $window
* @requires $location
* @requires $rootScope
*
* @description
* When called, it checks current value of `$location.hash()` and scroll to related element,
* according to rules specified in
* {@link http://dev.w3.org/html5/spec/Overview.html#the-indicated-part-of-the-document Html5 spec}.
*
* It also watches the `$location.hash()` and scroll whenever it changes to match any anchor.
* This can be disabled by calling `$anchorScrollProvider.disableAutoScrolling()`.
*/
function $AnchorScrollProvider() {
var autoScrollingEnabled = true;
this.disableAutoScrolling = function() {
autoScrollingEnabled = false;
};
this.$get = ['$window', '$location', '$rootScope', function($window, $location, $rootScope) {
var document = $window.document;
// helper function to get first anchor from a NodeList
// can't use filter.filter, as it accepts only instances of Array
// and IE can't convert NodeList to an array using [].slice
// TODO(vojta): use filter if we change it to accept lists as well
function getFirstAnchor(list) {
var result = null;
forEach(list, function(element) {
if (!result && lowercase(element.nodeName) === 'a') result = element;
});
return result;
}
function scroll() {
var hash = $location.hash(), elm;
// empty hash, scroll to the top of the page
if (!hash) $window.scrollTo(0, 0);
// element with given id
else if ((elm = document.getElementById(hash))) elm.scrollIntoView();
// first anchor with given name :-D
else if ((elm = getFirstAnchor(document.getElementsByName(hash)))) elm.scrollIntoView();
// no element and hash == 'top', scroll to the top of the page
else if (hash === 'top') $window.scrollTo(0, 0);
}
// does not scroll when user clicks on anchor link that is currently on
// (no url change, no $location.hash() change), browser native does scroll
if (autoScrollingEnabled) {
$rootScope.$watch(function autoScrollWatch() {return $location.hash();},
function autoScrollWatchAction() {
$rootScope.$evalAsync(scroll);
});
}
return scroll;
}];
}
/**
* @ngdoc object
* @name ng.$animationProvider
* @description
*
* The $AnimationProvider provider allows developers to register and access custom JavaScript animations directly inside
* of a module.
*
*/
$AnimationProvider.$inject = ['$provide'];
function $AnimationProvider($provide) {
var suffix = 'Animation';
/**
* @ngdoc function
* @name ng.$animation#register
* @methodOf ng.$animationProvider
*
* @description
* Registers a new injectable animation factory function. The factory function produces the animation object which
* has these two properties:
*
* * `setup`: `function(Element):*` A function which receives the starting state of the element. The purpose
* of this function is to get the element ready for animation. Optionally the function returns an memento which
* is passed to the `start` function.
* * `start`: `function(Element, doneFunction, *)` The element to animate, the `doneFunction` to be called on
* element animation completion, and an optional memento from the `setup` function.
*
* @param {string} name The name of the animation.
* @param {function} factory The factory function that will be executed to return the animation object.
*
*/
this.register = function(name, factory) {
$provide.factory(camelCase(name) + suffix, factory);
};
this.$get = ['$injector', function($injector) {
/**
* @ngdoc function
* @name ng.$animation
* @function
*
* @description
* The $animation service is used to retrieve any defined animation functions. When executed, the $animation service
* will return a object that contains the setup and start functions that were defined for the animation.
*
* @param {String} name Name of the animation function to retrieve. Animation functions are registered and stored
* inside of the AngularJS DI so a call to $animate('custom') is the same as injecting `customAnimation`
* via dependency injection.
* @return {Object} the animation object which contains the `setup` and `start` functions that perform the animation.
*/
return function $animation(name) {
if (name) {
var animationName = camelCase(name) + suffix;
if ($injector.has(animationName)) {
return $injector.get(animationName);
}
}
};
}];
}
// NOTE: this is a pseudo directive.
/**
* @ngdoc directive
* @name ng.directive:ngAnimate
*
* @description
* The `ngAnimate` directive works as an attribute that is attached alongside pre-existing directives.
* It effects how the directive will perform DOM manipulation. This allows for complex animations to take place
* without burdening the directive which uses the animation with animation details. The built in directives
* `ngRepeat`, `ngInclude`, `ngSwitch`, `ngShow`, `ngHide` and `ngView` already accept `ngAnimate` directive.
* Custom directives can take advantage of animation through {@link ng.$animator $animator service}.
*
* Below is a more detailed breakdown of the supported callback events provided by pre-exisitng ng directives:
*
* | Directive | Supported Animations |
* |========================================================== |====================================================|
* | {@link ng.directive:ngRepeat#animations ngRepeat} | enter, leave and move |
* | {@link ng.directive:ngView#animations ngView} | enter and leave |
* | {@link ng.directive:ngInclude#animations ngInclude} | enter and leave |
* | {@link ng.directive:ngSwitch#animations ngSwitch} | enter and leave |
* | {@link ng.directive:ngIf#animations ngIf} | enter and leave |
* | {@link ng.directive:ngShow#animations ngShow & ngHide} | show and hide |
*
* You can find out more information about animations upon visiting each directive page.
*
* Below is an example of a directive that makes use of the ngAnimate attribute:
*
* <pre>
* <!-- you can also use data-ng-animate, ng:animate or x-ng-animate as well -->
* <ANY ng-directive ng-animate="{event1: 'animation-name', event2: 'animation-name-2'}"></ANY>
*
* <!-- you can also use a short hand -->
* <ANY ng-directive ng-animate=" 'animation' "></ANY>
* <!-- which expands to -->
* <ANY ng-directive ng-animate="{ enter: 'animation-enter', leave: 'animation-leave', ...}"></ANY>
*
* <!-- keep in mind that ng-animate can take expressions -->
* <ANY ng-directive ng-animate=" computeCurrentAnimation() "></ANY>
* </pre>
*
* The `event1` and `event2` attributes refer to the animation events specific to the directive that has been assigned.
*
* Keep in mind that if an animation is running, no child element of such animation can also be animated.
*
* <h2>CSS-defined Animations</h2>
* By default, ngAnimate attaches two CSS classes per animation event to the DOM element to achieve the animation.
* It is up to you, the developer, to ensure that the animations take place using cross-browser CSS3 transitions as
* well as CSS animations.
*
* The following code below demonstrates how to perform animations using **CSS transitions** with ngAnimate:
*
* <pre>
* <style type="text/css">
* /*
* The animate-enter CSS class is the event name that you
* have provided within the ngAnimate attribute.
* */
* .animate-enter {
* -webkit-transition: 1s linear all; /* Safari/Chrome */
* -moz-transition: 1s linear all; /* Firefox */
* -o-transition: 1s linear all; /* Opera */
* transition: 1s linear all; /* IE10+ and Future Browsers */
*
* /* The animation preparation code */
* opacity: 0;
* }
*
* /*
* Keep in mind that you want to combine both CSS
* classes together to avoid any CSS-specificity
* conflicts
* */
* .animate-enter.animate-enter-active {
* /* The animation code itself */
* opacity: 1;
* }
* </style>
*
* <div ng-directive ng-animate="{enter: 'animate-enter'}"></div>
* </pre>
*
* The following code below demonstrates how to perform animations using **CSS animations** with ngAnimate:
*
* <pre>
* <style type="text/css">
* .animate-enter {
* -webkit-animation: enter_sequence 1s linear; /* Safari/Chrome */
* -moz-animation: enter_sequence 1s linear; /* Firefox */
* -o-animation: enter_sequence 1s linear; /* Opera */
* animation: enter_sequence 1s linear; /* IE10+ and Future Browsers */
* }
* @-webkit-keyframes enter_sequence {
* from { opacity:0; }
* to { opacity:1; }
* }
* @-moz-keyframes enter_sequence {
* from { opacity:0; }
* to { opacity:1; }
* }
* @-o-keyframes enter_sequence {
* from { opacity:0; }
* to { opacity:1; }
* }
* @keyframes enter_sequence {
* from { opacity:0; }
* to { opacity:1; }
* }
* </style>
*
* <div ng-directive ng-animate="{enter: 'animate-enter'}"></div>
* </pre>
*
* ngAnimate will first examine any CSS animation code and then fallback to using CSS transitions.
*
* Upon DOM mutation, the event class is added first, then the browser is allowed to reflow the content and then,
* the active class is added to trigger the animation. The ngAnimate directive will automatically extract the duration
* of the animation to determine when the animation ends. Once the animation is over then both CSS classes will be
* removed from the DOM. If a browser does not support CSS transitions or CSS animations then the animation will start and end
* immediately resulting in a DOM element that is at it's final state. This final state is when the DOM element
* has no CSS transition/animation classes surrounding it.
*
* <h2>JavaScript-defined Animations</h2>
* In the event that you do not want to use CSS3 transitions or CSS3 animations or if you wish to offer animations to browsers that do not
* yet support them, then you can make use of JavaScript animations defined inside of your AngularJS module.
*
* <pre>
* var ngModule = angular.module('YourApp', []);
* ngModule.animation('animate-enter', function() {
* return {
* setup : function(element) {
* //prepare the element for animation
* element.css({ 'opacity': 0 });
* var memo = "..."; //this value is passed to the start function
* return memo;
* },
* start : function(element, done, memo) {
* //start the animation
* element.animate({
* 'opacity' : 1
* }, function() {
* //call when the animation is complete
* done()
* });
* }
* }
* });
* </pre>
*
* As you can see, the JavaScript code follows a similar template to the CSS3 animations. Once defined, the animation
* can be used in the same way with the ngAnimate attribute. Keep in mind that, when using JavaScript-enabled
* animations, ngAnimate will also add in the same CSS classes that CSS-enabled animations do (even if you're not using
* CSS animations) to animated the element, but it will not attempt to find any CSS3 transition or animation duration/delay values.
* It will instead close off the animation once the provided done function is executed. So it's important that you
* make sure your animations remember to fire off the done function once the animations are complete.
*
* @param {expression} ngAnimate Used to configure the DOM manipulation animations.
*
*/
var $AnimatorProvider = function() {
var NG_ANIMATE_CONTROLLER = '$ngAnimateController';
var rootAnimateController = {running:true};
this.$get = ['$animation', '$window', '$sniffer', '$rootElement', '$rootScope',
function($animation, $window, $sniffer, $rootElement, $rootScope) {
$rootElement.data(NG_ANIMATE_CONTROLLER, rootAnimateController);
/**
* @ngdoc function
* @name ng.$animator
* @function
*
* @description
* The $animator.create service provides the DOM manipulation API which is decorated with animations.
*
* @param {Scope} scope the scope for the ng-animate.
* @param {Attributes} attr the attributes object which contains the ngAnimate key / value pair. (The attributes are
* passed into the linking function of the directive using the `$animator`.)
* @return {object} the animator object which contains the enter, leave, move, show, hide and animate methods.
*/
var AnimatorService = function(scope, attrs) {
var animator = {};
/**
* @ngdoc function
* @name ng.animator#enter
* @methodOf ng.$animator
* @function
*
* @description
* Injects the element object into the DOM (inside of the parent element) and then runs the enter animation.
*
* @param {jQuery/jqLite element} element the element that will be the focus of the enter animation
* @param {jQuery/jqLite element} parent the parent element of the element that will be the focus of the enter animation
* @param {jQuery/jqLite element} after the sibling element (which is the previous element) of the element that will be the focus of the enter animation
*/
animator.enter = animateActionFactory('enter', insert, noop);
/**
* @ngdoc function
* @name ng.animator#leave
* @methodOf ng.$animator
* @function
*
* @description
* Runs the leave animation operation and, upon completion, removes the element from the DOM.
*
* @param {jQuery/jqLite element} element the element that will be the focus of the leave animation
* @param {jQuery/jqLite element} parent the parent element of the element that will be the focus of the leave animation
*/
animator.leave = animateActionFactory('leave', noop, remove);
/**
* @ngdoc function
* @name ng.animator#move
* @methodOf ng.$animator
* @function
*
* @description
* Fires the move DOM operation. Just before the animation starts, the animator will either append it into the parent container or
* add the element directly after the after element if present. Then the move animation will be run.
*
* @param {jQuery/jqLite element} element the element that will be the focus of the move animation
* @param {jQuery/jqLite element} parent the parent element of the element that will be the focus of the move animation
* @param {jQuery/jqLite element} after the sibling element (which is the previous element) of the element that will be the focus of the move animation
*/
animator.move = animateActionFactory('move', move, noop);
/**
* @ngdoc function
* @name ng.animator#show
* @methodOf ng.$animator
* @function
*
* @description
* Reveals the element by setting the CSS property `display` to `block` and then starts the show animation directly after.
*
* @param {jQuery/jqLite element} element the element that will be rendered visible or hidden
*/
animator.show = animateActionFactory('show', show, noop);
/**
* @ngdoc function
* @name ng.animator#hide
* @methodOf ng.$animator
*
* @description
* Starts the hide animation first and sets the CSS `display` property to `none` upon completion.
*
* @param {jQuery/jqLite element} element the element that will be rendered visible or hidden
*/
animator.hide = animateActionFactory('hide', noop, hide);
/**
* @ngdoc function
* @name ng.animator#animate
* @methodOf ng.$animator
*
* @description
* Triggers a custom animation event to be executed on the given element
*
* @param {jQuery/jqLite element} element that will be animated
*/
animator.animate = function(event, element) {
animateActionFactory(event, noop, noop)(element);
}
return animator;
function animateActionFactory(type, beforeFn, afterFn) {
return function(element, parent, after) {
var ngAnimateValue = scope.$eval(attrs.ngAnimate);
var className = ngAnimateValue
? isObject(ngAnimateValue) ? ngAnimateValue[type] : ngAnimateValue + '-' + type
: '';
var animationPolyfill = $animation(className);
var polyfillSetup = animationPolyfill && animationPolyfill.setup;
var polyfillStart = animationPolyfill && animationPolyfill.start;
var polyfillCancel = animationPolyfill && animationPolyfill.cancel;
if (!className) {
beforeFn(element, parent, after);
afterFn(element, parent, after);
} else {
var activeClassName = className + '-active';
if (!parent) {
parent = after ? after.parent() : element.parent();
}
if ((!$sniffer.transitions && !polyfillSetup && !polyfillStart) ||
(parent.inheritedData(NG_ANIMATE_CONTROLLER) || noop).running) {
beforeFn(element, parent, after);
afterFn(element, parent, after);
return;
}
var animationData = element.data(NG_ANIMATE_CONTROLLER) || {};
if(animationData.running) {
(polyfillCancel || noop)(element);
animationData.done();
}
element.data(NG_ANIMATE_CONTROLLER, {running:true, done:done});
element.addClass(className);
beforeFn(element, parent, after);
if (element.length == 0) return done();
var memento = (polyfillSetup || noop)(element);
// $window.setTimeout(beginAnimation, 0); this was causing the element not to animate
// keep at 1 for animation dom rerender
$window.setTimeout(beginAnimation, 1);
}
function parseMaxTime(str) {
var total = 0, values = isString(str) ? str.split(/\s*,\s*/) : [];
forEach(values, function(value) {
total = Math.max(parseFloat(value) || 0, total);
});
return total;
}
function beginAnimation() {
element.addClass(activeClassName);
if (polyfillStart) {
polyfillStart(element, done, memento);
} else if (isFunction($window.getComputedStyle)) {
//one day all browsers will have these properties
var w3cAnimationProp = 'animation';
var w3cTransitionProp = 'transition';
//but some still use vendor-prefixed styles
var vendorAnimationProp = $sniffer.vendorPrefix + 'Animation';
var vendorTransitionProp = $sniffer.vendorPrefix + 'Transition';
var durationKey = 'Duration',
delayKey = 'Delay',
animationIterationCountKey = 'IterationCount',
duration = 0;
//we want all the styles defined before and after
var ELEMENT_NODE = 1;
forEach(element, function(element) {
if (element.nodeType == ELEMENT_NODE) {
var w3cProp = w3cTransitionProp,
vendorProp = vendorTransitionProp,
iterations = 1,
elementStyles = $window.getComputedStyle(element) || {};
//use CSS Animations over CSS Transitions
if(parseFloat(elementStyles[w3cAnimationProp + durationKey]) > 0 ||
parseFloat(elementStyles[vendorAnimationProp + durationKey]) > 0) {
w3cProp = w3cAnimationProp;
vendorProp = vendorAnimationProp;
iterations = Math.max(parseInt(elementStyles[w3cProp + animationIterationCountKey]) || 0,
parseInt(elementStyles[vendorProp + animationIterationCountKey]) || 0,
iterations);
}
var parsedDelay = Math.max(parseMaxTime(elementStyles[w3cProp + delayKey]),
parseMaxTime(elementStyles[vendorProp + delayKey]));
var parsedDuration = Math.max(parseMaxTime(elementStyles[w3cProp + durationKey]),
parseMaxTime(elementStyles[vendorProp + durationKey]));
duration = Math.max(parsedDelay + (iterations * parsedDuration), duration);
}
});
$window.setTimeout(done, duration * 1000);
} else {
done();
}
}
function done() {
if(!done.run) {
done.run = true;
afterFn(element, parent, after);
element.removeClass(className);
element.removeClass(activeClassName);
element.removeData(NG_ANIMATE_CONTROLLER);
}
}
};
}
function show(element) {
element.css('display', '');
}
function hide(element) {
element.css('display', 'none');
}
function insert(element, parent, after) {
if (after) {
after.after(element);
} else {
parent.append(element);
}
}
function remove(element) {
element.remove();
}
function move(element, parent, after) {
// Do not remove element before insert. Removing will cause data associated with the
// element to be dropped. Insert will implicitly do the remove.
insert(element, parent, after);
}
};
/**
* @ngdoc function
* @name ng.animator#enabled
* @methodOf ng.$animator
* @function
*
* @param {Boolean=} If provided then set the animation on or off.
* @return {Boolean} Current animation state.
*
* @description
* Globally enables/disables animations.
*
*/
AnimatorService.enabled = function(value) {
if (arguments.length) {
rootAnimateController.running = !value;
}
return !rootAnimateController.running;
};
return AnimatorService;
}];
};
/**
* ! This is a private undocumented service !
*
* @name ng.$browser
* @requires $log
* @description
* This object has two goals:
*
* - hide all the global state in the browser caused by the window object
* - abstract away all the browser specific features and inconsistencies
*
* For tests we provide {@link ngMock.$browser mock implementation} of the `$browser`
* service, which can be used for convenient testing of the application without the interaction with
* the real browser apis.
*/
/**
* @param {object} window The global window object.
* @param {object} document jQuery wrapped document.
* @param {function()} XHR XMLHttpRequest constructor.
* @param {object} $log console.log or an object with the same interface.
* @param {object} $sniffer $sniffer service
*/
function Browser(window, document, $log, $sniffer) {
var self = this,
rawDocument = document[0],
location = window.location,
history = window.history,
setTimeout = window.setTimeout,
clearTimeout = window.clearTimeout,
pendingDeferIds = {};
self.isMock = false;
var outstandingRequestCount = 0;
var outstandingRequestCallbacks = [];
// TODO(vojta): remove this temporary api
self.$$completeOutstandingRequest = completeOutstandingRequest;
self.$$incOutstandingRequestCount = function() { outstandingRequestCount++; };
/**
* Executes the `fn` function(supports currying) and decrements the `outstandingRequestCallbacks`
* counter. If the counter reaches 0, all the `outstandingRequestCallbacks` are executed.
*/
function completeOutstandingRequest(fn) {
try {
fn.apply(null, sliceArgs(arguments, 1));
} finally {
outstandingRequestCount--;
if (outstandingRequestCount === 0) {
while(outstandingRequestCallbacks.length) {
try {
outstandingRequestCallbacks.pop()();
} catch (e) {
$log.error(e);
}
}
}
}
}
/**
* @private
* Note: this method is used only by scenario runner
* TODO(vojta): prefix this method with $$ ?
* @param {function()} callback Function that will be called when no outstanding request
*/
self.notifyWhenNoOutstandingRequests = function(callback) {
// force browser to execute all pollFns - this is needed so that cookies and other pollers fire
// at some deterministic time in respect to the test runner's actions. Leaving things up to the
// regular poller would result in flaky tests.
forEach(pollFns, function(pollFn){ pollFn(); });
if (outstandingRequestCount === 0) {
callback();
} else {
outstandingRequestCallbacks.push(callback);
}
};
//////////////////////////////////////////////////////////////
// Poll Watcher API
//////////////////////////////////////////////////////////////
var pollFns = [],
pollTimeout;
/**
* @name ng.$browser#addPollFn
* @methodOf ng.$browser
*
* @param {function()} fn Poll function to add
*
* @description
* Adds a function to the list of functions that poller periodically executes,
* and starts polling if not started yet.
*
* @returns {function()} the added function
*/
self.addPollFn = function(fn) {
if (isUndefined(pollTimeout)) startPoller(100, setTimeout);
pollFns.push(fn);
return fn;
};
/**
* @param {number} interval How often should browser call poll functions (ms)
* @param {function()} setTimeout Reference to a real or fake `setTimeout` function.
*
* @description
* Configures the poller to run in the specified intervals, using the specified
* setTimeout fn and kicks it off.
*/
function startPoller(interval, setTimeout) {
(function check() {
forEach(pollFns, function(pollFn){ pollFn(); });
pollTimeout = setTimeout(check, interval);
})();
}
//////////////////////////////////////////////////////////////
// URL API
//////////////////////////////////////////////////////////////
var lastBrowserUrl = location.href,
baseElement = document.find('base');
/**
* @name ng.$browser#url
* @methodOf ng.$browser
*
* @description
* GETTER:
* Without any argument, this method just returns current value of location.href.
*
* SETTER:
* With at least one argument, this method sets url to new value.
* If html5 history api supported, pushState/replaceState is used, otherwise
* location.href/location.replace is used.
* Returns its own instance to allow chaining
*
* NOTE: this api is intended for use only by the $location service. Please use the
* {@link ng.$location $location service} to change url.
*
* @param {string} url New url (when used as setter)
* @param {boolean=} replace Should new url replace current history record ?
*/
self.url = function(url, replace) {
// setter
if (url) {
if (lastBrowserUrl == url) return;
lastBrowserUrl = url;
if ($sniffer.history) {
if (replace) history.replaceState(null, '', url);
else {
history.pushState(null, '', url);
// Crazy Opera Bug: http://my.opera.com/community/forums/topic.dml?id=1185462
baseElement.attr('href', baseElement.attr('href'));
}
} else {
if (replace) location.replace(url);
else location.href = url;
}
return self;
// getter
} else {
// the replacement is a workaround for https://bugzilla.mozilla.org/show_bug.cgi?id=407172
return location.href.replace(/%27/g,"'");
}
};
var urlChangeListeners = [],
urlChangeInit = false;
function fireUrlChange() {
if (lastBrowserUrl == self.url()) return;
lastBrowserUrl = self.url();
forEach(urlChangeListeners, function(listener) {
listener(self.url());
});
}
/**
* @name ng.$browser#onUrlChange
* @methodOf ng.$browser
* @TODO(vojta): refactor to use node's syntax for events
*
* @description
* Register callback function that will be called, when url changes.
*
* It's only called when the url is changed by outside of angular:
* - user types different url into address bar
* - user clicks on history (forward/back) button
* - user clicks on a link
*
* It's not called when url is changed by $browser.url() method
*
* The listener gets called with new url as parameter.
*
* NOTE: this api is intended for use only by the $location service. Please use the
* {@link ng.$location $location service} to monitor url changes in angular apps.
*
* @param {function(string)} listener Listener function to be called when url changes.
* @return {function(string)} Returns the registered listener fn - handy if the fn is anonymous.
*/
self.onUrlChange = function(callback) {
if (!urlChangeInit) {
// We listen on both (hashchange/popstate) when available, as some browsers (e.g. Opera)
// don't fire popstate when user change the address bar and don't fire hashchange when url
// changed by push/replaceState
// html5 history api - popstate event
if ($sniffer.history) jqLite(window).bind('popstate', fireUrlChange);
// hashchange event
if ($sniffer.hashchange) jqLite(window).bind('hashchange', fireUrlChange);
// polling
else self.addPollFn(fireUrlChange);
urlChangeInit = true;
}
urlChangeListeners.push(callback);
return callback;
};
//////////////////////////////////////////////////////////////
// Misc API
//////////////////////////////////////////////////////////////
/**
* Returns current <base href>
* (always relative - without domain)
*
* @returns {string=}
*/
self.baseHref = function() {
var href = baseElement.attr('href');
return href ? href.replace(/^https?\:\/\/[^\/]*/, '') : '';
};
//////////////////////////////////////////////////////////////
// Cookies API
//////////////////////////////////////////////////////////////
var lastCookies = {};
var lastCookieString = '';
var cookiePath = self.baseHref();
/**
* @name ng.$browser#cookies
* @methodOf ng.$browser
*
* @param {string=} name Cookie name
* @param {string=} value Cookie value
*
* @description
* The cookies method provides a 'private' low level access to browser cookies.
* It is not meant to be used directly, use the $cookie service instead.
*
* The return values vary depending on the arguments that the method was called with as follows:
* <ul>
* <li>cookies() -> hash of all cookies, this is NOT a copy of the internal state, so do not modify it</li>
* <li>cookies(name, value) -> set name to value, if value is undefined delete the cookie</li>
* <li>cookies(name) -> the same as (name, undefined) == DELETES (no one calls it right now that way)</li>
* </ul>
*
* @returns {Object} Hash of all cookies (if called without any parameter)
*/
self.cookies = function(name, value) {
var cookieLength, cookieArray, cookie, i, index;
if (name) {
if (value === undefined) {
rawDocument.cookie = escape(name) + "=;path=" + cookiePath + ";expires=Thu, 01 Jan 1970 00:00:00 GMT";
} else {
if (isString(value)) {
cookieLength = (rawDocument.cookie = escape(name) + '=' + escape(value) + ';path=' + cookiePath).length + 1;
// per http://www.ietf.org/rfc/rfc2109.txt browser must allow at minimum:
// - 300 cookies
// - 20 cookies per unique domain
// - 4096 bytes per cookie
if (cookieLength > 4096) {
$log.warn("Cookie '"+ name +"' possibly not set or overflowed because it was too large ("+
cookieLength + " > 4096 bytes)!");
}
}
}
} else {
if (rawDocument.cookie !== lastCookieString) {
lastCookieString = rawDocument.cookie;
cookieArray = lastCookieString.split("; ");
lastCookies = {};
for (i = 0; i < cookieArray.length; i++) {
cookie = cookieArray[i];
index = cookie.indexOf('=');
if (index > 0) { //ignore nameless cookies
var name = unescape(cookie.substring(0, index));
// the first value that is seen for a cookie is the most
// specific one. values for the same cookie name that
// follow are for less specific paths.
if (lastCookies[name] === undefined) {
lastCookies[name] = unescape(cookie.substring(index + 1));
}
}
}
}
return lastCookies;
}
};
/**
* @name ng.$browser#defer
* @methodOf ng.$browser
* @param {function()} fn A function, who's execution should be defered.
* @param {number=} [delay=0] of milliseconds to defer the function execution.
* @returns {*} DeferId that can be used to cancel the task via `$browser.defer.cancel()`.
*
* @description
* Executes a fn asynchronously via `setTimeout(fn, delay)`.
*
* Unlike when calling `setTimeout` directly, in test this function is mocked and instead of using
* `setTimeout` in tests, the fns are queued in an array, which can be programmatically flushed
* via `$browser.defer.flush()`.
*
*/
self.defer = function(fn, delay) {
var timeoutId;
outstandingRequestCount++;
timeoutId = setTimeout(function() {
delete pendingDeferIds[timeoutId];
completeOutstandingRequest(fn);
}, delay || 0);
pendingDeferIds[timeoutId] = true;
return timeoutId;
};
/**
* @name ng.$browser#defer.cancel
* @methodOf ng.$browser.defer
*
* @description
* Cancels a defered task identified with `deferId`.
*
* @param {*} deferId Token returned by the `$browser.defer` function.
* @returns {boolean} Returns `true` if the task hasn't executed yet and was successfully canceled.
*/
self.defer.cancel = function(deferId) {
if (pendingDeferIds[deferId]) {
delete pendingDeferIds[deferId];
clearTimeout(deferId);
completeOutstandingRequest(noop);
return true;
}
return false;
};
}
function $BrowserProvider(){
this.$get = ['$window', '$log', '$sniffer', '$document',
function( $window, $log, $sniffer, $document){
return new Browser($window, $document, $log, $sniffer);
}];
}
/**
* @ngdoc object
* @name ng.$cacheFactory
*
* @description
* Factory that constructs cache objects.
*
*
* @param {string} cacheId Name or id of the newly created cache.
* @param {object=} options Options object that specifies the cache behavior. Properties:
*
* - `{number=}` `capacity` — turns the cache into LRU cache.
*
* @returns {object} Newly created cache object with the following set of methods:
*
* - `{object}` `info()` — Returns id, size, and options of cache.
* - `{{*}}` `put({string} key, {*} value)` — Puts a new key-value pair into the cache and returns it.
* - `{{*}}` `get({string} key)` — Returns cached value for `key` or undefined for cache miss.
* - `{void}` `remove({string} key)` — Removes a key-value pair from the cache.
* - `{void}` `removeAll()` — Removes all cached values.
* - `{void}` `destroy()` — Removes references to this cache from $cacheFactory.
*
*/
function $CacheFactoryProvider() {
this.$get = function() {
var caches = {};
function cacheFactory(cacheId, options) {
if (cacheId in caches) {
throw Error('cacheId ' + cacheId + ' taken');
}
var size = 0,
stats = extend({}, options, {id: cacheId}),
data = {},
capacity = (options && options.capacity) || Number.MAX_VALUE,
lruHash = {},
freshEnd = null,
staleEnd = null;
return caches[cacheId] = {
put: function(key, value) {
var lruEntry = lruHash[key] || (lruHash[key] = {key: key});
refresh(lruEntry);
if (isUndefined(value)) return;
if (!(key in data)) size++;
data[key] = value;
if (size > capacity) {
this.remove(staleEnd.key);
}
return value;
},
get: function(key) {
var lruEntry = lruHash[key];
if (!lruEntry) return;
refresh(lruEntry);
return data[key];
},
remove: function(key) {
var lruEntry = lruHash[key];
if (!lruEntry) return;
if (lruEntry == freshEnd) freshEnd = lruEntry.p;
if (lruEntry == staleEnd) staleEnd = lruEntry.n;
link(lruEntry.n,lruEntry.p);
delete lruHash[key];
delete data[key];
size--;
},
removeAll: function() {
data = {};
size = 0;
lruHash = {};
freshEnd = staleEnd = null;
},
destroy: function() {
data = null;
stats = null;
lruHash = null;
delete caches[cacheId];
},
info: function() {
return extend({}, stats, {size: size});
}
};
/**
* makes the `entry` the freshEnd of the LRU linked list
*/
function refresh(entry) {
if (entry != freshEnd) {
if (!staleEnd) {
staleEnd = entry;
} else if (staleEnd == entry) {
staleEnd = entry.n;
}
link(entry.n, entry.p);
link(entry, freshEnd);
freshEnd = entry;
freshEnd.n = null;
}
}
/**
* bidirectionally links two entries of the LRU linked list
*/
function link(nextEntry, prevEntry) {
if (nextEntry != prevEntry) {
if (nextEntry) nextEntry.p = prevEntry; //p stands for previous, 'prev' didn't minify
if (prevEntry) prevEntry.n = nextEntry; //n stands for next, 'next' didn't minify
}
}
}
cacheFactory.info = function() {
var info = {};
forEach(caches, function(cache, cacheId) {
info[cacheId] = cache.info();
});
return info;
};
cacheFactory.get = function(cacheId) {
return caches[cacheId];
};
return cacheFactory;
};
}
/**
* @ngdoc object
* @name ng.$templateCache
*
* @description
* Cache used for storing html templates.
*
* See {@link ng.$cacheFactory $cacheFactory}.
*
*/
function $TemplateCacheProvider() {
this.$get = ['$cacheFactory', function($cacheFactory) {
return $cacheFactory('templates');
}];
}
/* ! VARIABLE/FUNCTION NAMING CONVENTIONS THAT APPLY TO THIS FILE!
*
* DOM-related variables:
*
* - "node" - DOM Node
* - "element" - DOM Element or Node
* - "$node" or "$element" - jqLite-wrapped node or element
*
*
* Compiler related stuff:
*
* - "linkFn" - linking fn of a single directive
* - "nodeLinkFn" - function that aggregates all linking fns for a particular node
* - "childLinkFn" - function that aggregates all linking fns for child nodes of a particular node
* - "compositeLinkFn" - function that aggregates all linking fns for a compilation root (nodeList)
*/
var NON_ASSIGNABLE_MODEL_EXPRESSION = 'Non-assignable model expression: ';
/**
* @ngdoc function
* @name ng.$compile
* @function
*
* @description
* Compiles a piece of HTML string or DOM into a template and produces a template function, which
* can then be used to link {@link ng.$rootScope.Scope scope} and the template together.
*
* The compilation is a process of walking the DOM tree and trying to match DOM elements to
* {@link ng.$compileProvider#directive directives}. For each match it
* executes corresponding template function and collects the
* instance functions into a single template function which is then returned.
*
* The template function can then be used once to produce the view or as it is the case with
* {@link ng.directive:ngRepeat repeater} many-times, in which
* case each call results in a view that is a DOM clone of the original template.
*
<doc:example module="compile">
<doc:source>
<script>
// declare a new module, and inject the $compileProvider
angular.module('compile', [], function($compileProvider) {
// configure new 'compile' directive by passing a directive
// factory function. The factory function injects the '$compile'
$compileProvider.directive('compile', function($compile) {
// directive factory creates a link function
return function(scope, element, attrs) {
scope.$watch(
function(scope) {
// watch the 'compile' expression for changes
return scope.$eval(attrs.compile);
},
function(value) {
// when the 'compile' expression changes
// assign it into the current DOM
element.html(value);
// compile the new DOM and link it to the current
// scope.
// NOTE: we only compile .childNodes so that
// we don't get into infinite loop compiling ourselves
$compile(element.contents())(scope);
}
);
};
})
});
function Ctrl($scope) {
$scope.name = 'Angular';
$scope.html = 'Hello {{name}}';
}
</script>
<div ng-controller="Ctrl">
<input ng-model="name"> <br>
<textarea ng-model="html"></textarea> <br>
<div compile="html"></div>
</div>
</doc:source>
<doc:scenario>
it('should auto compile', function() {
expect(element('div[compile]').text()).toBe('Hello Angular');
input('html').enter('{{name}}!');
expect(element('div[compile]').text()).toBe('Angular!');
});
</doc:scenario>
</doc:example>
*
*
* @param {string|DOMElement} element Element or HTML string to compile into a template function.
* @param {function(angular.Scope[, cloneAttachFn]} transclude function available to directives.
* @param {number} maxPriority only apply directives lower then given priority (Only effects the
* root element(s), not their children)
* @returns {function(scope[, cloneAttachFn])} a link function which is used to bind template
* (a DOM element/tree) to a scope. Where:
*
* * `scope` - A {@link ng.$rootScope.Scope Scope} to bind to.
* * `cloneAttachFn` - If `cloneAttachFn` is provided, then the link function will clone the
* `template` and call the `cloneAttachFn` function allowing the caller to attach the
* cloned elements to the DOM document at the appropriate place. The `cloneAttachFn` is
* called as: <br> `cloneAttachFn(clonedElement, scope)` where:
*
* * `clonedElement` - is a clone of the original `element` passed into the compiler.
* * `scope` - is the current scope with which the linking function is working with.
*
* Calling the linking function returns the element of the template. It is either the original element
* passed in, or the clone of the element if the `cloneAttachFn` is provided.
*
* After linking the view is not updated until after a call to $digest which typically is done by
* Angular automatically.
*
* If you need access to the bound view, there are two ways to do it:
*
* - If you are not asking the linking function to clone the template, create the DOM element(s)
* before you send them to the compiler and keep this reference around.
* <pre>
* var element = $compile('<p>{{total}}</p>')(scope);
* </pre>
*
* - if on the other hand, you need the element to be cloned, the view reference from the original
* example would not point to the clone, but rather to the original template that was cloned. In
* this case, you can access the clone via the cloneAttachFn:
* <pre>
* var templateHTML = angular.element('<p>{{total}}</p>'),
* scope = ....;
*
* var clonedElement = $compile(templateHTML)(scope, function(clonedElement, scope) {
* //attach the clone to DOM document at the right place
* });
*
* //now we have reference to the cloned DOM via `clone`
* </pre>
*
*
* For information on how the compiler works, see the
* {@link guide/compiler Angular HTML Compiler} section of the Developer Guide.
*/
/**
* @ngdoc service
* @name ng.$compileProvider
* @function
*
* @description
*/
$CompileProvider.$inject = ['$provide'];
function $CompileProvider($provide) {
var hasDirectives = {},
Suffix = 'Directive',
COMMENT_DIRECTIVE_REGEXP = /^\s*directive\:\s*([\d\w\-_]+)\s+(.*)$/,
CLASS_DIRECTIVE_REGEXP = /(([\d\w\-_]+)(?:\:([^;]+))?;?)/,
MULTI_ROOT_TEMPLATE_ERROR = 'Template must have exactly one root element. was: ',
urlSanitizationWhitelist = /^\s*(https?|ftp|mailto|file):/;
/**
* @ngdoc function
* @name ng.$compileProvider#directive
* @methodOf ng.$compileProvider
* @function
*
* @description
* Register a new directives with the compiler.
*
* @param {string} name Name of the directive in camel-case. (ie <code>ngBind</code> which will match as
* <code>ng-bind</code>).
* @param {function} directiveFactory An injectable directive factory function. See {@link guide/directive} for more
* info.
* @returns {ng.$compileProvider} Self for chaining.
*/
this.directive = function registerDirective(name, directiveFactory) {
if (isString(name)) {
assertArg(directiveFactory, 'directive');
if (!hasDirectives.hasOwnProperty(name)) {
hasDirectives[name] = [];
$provide.factory(name + Suffix, ['$injector', '$exceptionHandler',
function($injector, $exceptionHandler) {
var directives = [];
forEach(hasDirectives[name], function(directiveFactory) {
try {
var directive = $injector.invoke(directiveFactory);
if (isFunction(directive)) {
directive = { compile: valueFn(directive) };
} else if (!directive.compile && directive.link) {
directive.compile = valueFn(directive.link);
}
directive.priority = directive.priority || 0;
directive.name = directive.name || name;
directive.require = directive.require || (directive.controller && directive.name);
directive.restrict = directive.restrict || 'A';
directives.push(directive);
} catch (e) {
$exceptionHandler(e);
}
});
return directives;
}]);
}
hasDirectives[name].push(directiveFactory);
} else {
forEach(name, reverseParams(registerDirective));
}
return this;
};
/**
* @ngdoc function
* @name ng.$compileProvider#urlSanitizationWhitelist
* @methodOf ng.$compileProvider
* @function
*
* @description
* Retrieves or overrides the default regular expression that is used for whitelisting of safe
* urls during a[href] sanitization.
*
* The sanitization is a security measure aimed at prevent XSS attacks via html links.
*
* Any url about to be assigned to a[href] via data-binding is first normalized and turned into an
* absolute url. Afterwards the url is matched against the `urlSanitizationWhitelist` regular
* expression. If a match is found the original url is written into the dom. Otherwise the
* absolute url is prefixed with `'unsafe:'` string and only then it is written into the DOM.
*
* @param {RegExp=} regexp New regexp to whitelist urls with.
* @returns {RegExp|ng.$compileProvider} Current RegExp if called without value or self for
* chaining otherwise.
*/
this.urlSanitizationWhitelist = function(regexp) {
if (isDefined(regexp)) {
urlSanitizationWhitelist = regexp;
return this;
}
return urlSanitizationWhitelist;
};
this.$get = [
'$injector', '$interpolate', '$exceptionHandler', '$http', '$templateCache', '$parse',
'$controller', '$rootScope', '$document',
function($injector, $interpolate, $exceptionHandler, $http, $templateCache, $parse,
$controller, $rootScope, $document) {
var Attributes = function(element, attr) {
this.$$element = element;
this.$attr = attr || {};
};
Attributes.prototype = {
$normalize: directiveNormalize,
/**
* Set a normalized attribute on the element in a way such that all directives
* can share the attribute. This function properly handles boolean attributes.
* @param {string} key Normalized key. (ie ngAttribute)
* @param {string|boolean} value The value to set. If `null` attribute will be deleted.
* @param {boolean=} writeAttr If false, does not write the value to DOM element attribute.
* Defaults to true.
* @param {string=} attrName Optional none normalized name. Defaults to key.
*/
$set: function(key, value, writeAttr, attrName) {
var booleanKey = getBooleanAttrName(this.$$element[0], key),
$$observers = this.$$observers,
normalizedVal;
if (booleanKey) {
this.$$element.prop(key, value);
attrName = booleanKey;
}
this[key] = value;
// translate normalized key to actual key
if (attrName) {
this.$attr[key] = attrName;
} else {
attrName = this.$attr[key];
if (!attrName) {
this.$attr[key] = attrName = snake_case(key, '-');
}
}
// sanitize a[href] values
if (nodeName_(this.$$element[0]) === 'A' && key === 'href') {
urlSanitizationNode.setAttribute('href', value);
// href property always returns normalized absolute url, so we can match against that
normalizedVal = urlSanitizationNode.href;
if (!normalizedVal.match(urlSanitizationWhitelist)) {
this[key] = value = 'unsafe:' + normalizedVal;
}
}
if (writeAttr !== false) {
if (value === null || value === undefined) {
this.$$element.removeAttr(attrName);
} else {
this.$$element.attr(attrName, value);
}
}
// fire observers
$$observers && forEach($$observers[key], function(fn) {
try {
fn(value);
} catch (e) {
$exceptionHandler(e);
}
});
},
/**
* Observe an interpolated attribute.
* The observer will never be called, if given attribute is not interpolated.
*
* @param {string} key Normalized key. (ie ngAttribute) .
* @param {function(*)} fn Function that will be called whenever the attribute value changes.
* @returns {function(*)} the `fn` Function passed in.
*/
$observe: function(key, fn) {
var attrs = this,
$$observers = (attrs.$$observers || (attrs.$$observers = {})),
listeners = ($$observers[key] || ($$observers[key] = []));
listeners.push(fn);
$rootScope.$evalAsync(function() {
if (!listeners.$$inter) {
// no one registered attribute interpolation function, so lets call it manually
fn(attrs[key]);
}
});
return fn;
}
};
var urlSanitizationNode = $document[0].createElement('a'),
startSymbol = $interpolate.startSymbol(),
endSymbol = $interpolate.endSymbol(),
denormalizeTemplate = (startSymbol == '{{' || endSymbol == '}}')
? identity
: function denormalizeTemplate(template) {
return template.replace(/\{\{/g, startSymbol).replace(/}}/g, endSymbol);
},
NG_ATTR_BINDING = /^ngAttr[A-Z]/;
return compile;
//================================
function compile($compileNodes, transcludeFn, maxPriority) {
if (!($compileNodes instanceof jqLite)) {
// jquery always rewraps, whereas we need to preserve the original selector so that we can modify it.
$compileNodes = jqLite($compileNodes);
}
// We can not compile top level text elements since text nodes can be merged and we will
// not be able to attach scope data to them, so we will wrap them in <span>
forEach($compileNodes, function(node, index){
if (node.nodeType == 3 /* text node */ && node.nodeValue.match(/\S+/) /* non-empty */ ) {
$compileNodes[index] = jqLite(node).wrap('<span></span>').parent()[0];
}
});
var compositeLinkFn = compileNodes($compileNodes, transcludeFn, $compileNodes, maxPriority);
return function publicLinkFn(scope, cloneConnectFn){
assertArg(scope, 'scope');
// important!!: we must call our jqLite.clone() since the jQuery one is trying to be smart
// and sometimes changes the structure of the DOM.
var $linkNode = cloneConnectFn
? JQLitePrototype.clone.call($compileNodes) // IMPORTANT!!!
: $compileNodes;
// Attach scope only to non-text nodes.
for(var i = 0, ii = $linkNode.length; i<ii; i++) {
var node = $linkNode[i];
if (node.nodeType == 1 /* element */ || node.nodeType == 9 /* document */) {
$linkNode.eq(i).data('$scope', scope);
}
}
safeAddClass($linkNode, 'ng-scope');
if (cloneConnectFn) cloneConnectFn($linkNode, scope);
if (compositeLinkFn) compositeLinkFn(scope, $linkNode, $linkNode);
return $linkNode;
};
}
function wrongMode(localName, mode) {
throw Error("Unsupported '" + mode + "' for '" + localName + "'.");
}
function safeAddClass($element, className) {
try {
$element.addClass(className);
} catch(e) {
// ignore, since it means that we are trying to set class on
// SVG element, where class name is read-only.
}
}
/**
* Compile function matches each node in nodeList against the directives. Once all directives
* for a particular node are collected their compile functions are executed. The compile
* functions return values - the linking functions - are combined into a composite linking
* function, which is the a linking function for the node.
*
* @param {NodeList} nodeList an array of nodes or NodeList to compile
* @param {function(angular.Scope[, cloneAttachFn]} transcludeFn A linking function, where the
* scope argument is auto-generated to the new child of the transcluded parent scope.
* @param {DOMElement=} $rootElement If the nodeList is the root of the compilation tree then the
* rootElement must be set the jqLite collection of the compile root. This is
* needed so that the jqLite collection items can be replaced with widgets.
* @param {number=} max directive priority
* @returns {?function} A composite linking function of all of the matched directives or null.
*/
function compileNodes(nodeList, transcludeFn, $rootElement, maxPriority) {
var linkFns = [],
nodeLinkFn, childLinkFn, directives, attrs, linkFnFound;
for(var i = 0; i < nodeList.length; i++) {
attrs = new Attributes();
// we must always refer to nodeList[i] since the nodes can be replaced underneath us.
directives = collectDirectives(nodeList[i], [], attrs, maxPriority);
nodeLinkFn = (directives.length)
? applyDirectivesToNode(directives, nodeList[i], attrs, transcludeFn, $rootElement)
: null;
childLinkFn = (nodeLinkFn && nodeLinkFn.terminal || !nodeList[i].childNodes || !nodeList[i].childNodes.length)
? null
: compileNodes(nodeList[i].childNodes,
nodeLinkFn ? nodeLinkFn.transclude : transcludeFn);
linkFns.push(nodeLinkFn);
linkFns.push(childLinkFn);
linkFnFound = (linkFnFound || nodeLinkFn || childLinkFn);
}
// return a linking function if we have found anything, null otherwise
return linkFnFound ? compositeLinkFn : null;
function compositeLinkFn(scope, nodeList, $rootElement, boundTranscludeFn) {
var nodeLinkFn, childLinkFn, node, childScope, childTranscludeFn, i, ii, n;
// copy nodeList so that linking doesn't break due to live list updates.
var stableNodeList = [];
for (i = 0, ii = nodeList.length; i < ii; i++) {
stableNodeList.push(nodeList[i]);
}
for(i = 0, n = 0, ii = linkFns.length; i < ii; n++) {
node = stableNodeList[n];
nodeLinkFn = linkFns[i++];
childLinkFn = linkFns[i++];
if (nodeLinkFn) {
if (nodeLinkFn.scope) {
childScope = scope.$new(isObject(nodeLinkFn.scope));
jqLite(node).data('$scope', childScope);
} else {
childScope = scope;
}
childTranscludeFn = nodeLinkFn.transclude;
if (childTranscludeFn || (!boundTranscludeFn && transcludeFn)) {
nodeLinkFn(childLinkFn, childScope, node, $rootElement,
(function(transcludeFn) {
return function(cloneFn) {
var transcludeScope = scope.$new();
transcludeScope.$$transcluded = true;
return transcludeFn(transcludeScope, cloneFn).
bind('$destroy', bind(transcludeScope, transcludeScope.$destroy));
};
})(childTranscludeFn || transcludeFn)
);
} else {
nodeLinkFn(childLinkFn, childScope, node, undefined, boundTranscludeFn);
}
} else if (childLinkFn) {
childLinkFn(scope, node.childNodes, undefined, boundTranscludeFn);
}
}
}
}
/**
* Looks for directives on the given node and adds them to the directive collection which is
* sorted.
*
* @param node Node to search.
* @param directives An array to which the directives are added to. This array is sorted before
* the function returns.
* @param attrs The shared attrs object which is used to populate the normalized attributes.
* @param {number=} maxPriority Max directive priority.
*/
function collectDirectives(node, directives, attrs, maxPriority) {
var nodeType = node.nodeType,
attrsMap = attrs.$attr,
match,
className;
switch(nodeType) {
case 1: /* Element */
// use the node name: <directive>
addDirective(directives,
directiveNormalize(nodeName_(node).toLowerCase()), 'E', maxPriority);
// iterate over the attributes
for (var attr, name, nName, ngAttrName, value, nAttrs = node.attributes,
j = 0, jj = nAttrs && nAttrs.length; j < jj; j++) {
attr = nAttrs[j];
if (attr.specified) {
name = attr.name;
// support ngAttr attribute binding
ngAttrName = directiveNormalize(name);
if (NG_ATTR_BINDING.test(ngAttrName)) {
name = ngAttrName.substr(6).toLowerCase();
}
nName = directiveNormalize(name.toLowerCase());
attrsMap[nName] = name;
attrs[nName] = value = trim((msie && name == 'href')
? decodeURIComponent(node.getAttribute(name, 2))
: attr.value);
if (getBooleanAttrName(node, nName)) {
attrs[nName] = true; // presence means true
}
addAttrInterpolateDirective(node, directives, value, nName);
addDirective(directives, nName, 'A', maxPriority);
}
}
// use class as directive
className = node.className;
if (isString(className) && className !== '') {
while (match = CLASS_DIRECTIVE_REGEXP.exec(className)) {
nName = directiveNormalize(match[2]);
if (addDirective(directives, nName, 'C', maxPriority)) {
attrs[nName] = trim(match[3]);
}
className = className.substr(match.index + match[0].length);
}
}
break;
case 3: /* Text Node */
addTextInterpolateDirective(directives, node.nodeValue);
break;
case 8: /* Comment */
try {
match = COMMENT_DIRECTIVE_REGEXP.exec(node.nodeValue);
if (match) {
nName = directiveNormalize(match[1]);
if (addDirective(directives, nName, 'M', maxPriority)) {
attrs[nName] = trim(match[2]);
}
}
} catch (e) {
// turns out that under some circumstances IE9 throws errors when one attempts to read comment's node value.
// Just ignore it and continue. (Can't seem to reproduce in test case.)
}
break;
}
directives.sort(byPriority);
return directives;
}
/**
* Once the directives have been collected, their compile functions are executed. This method
* is responsible for inlining directive templates as well as terminating the application
* of the directives if the terminal directive has been reached.
*
* @param {Array} directives Array of collected directives to execute their compile function.
* this needs to be pre-sorted by priority order.
* @param {Node} compileNode The raw DOM node to apply the compile functions to
* @param {Object} templateAttrs The shared attribute function
* @param {function(angular.Scope[, cloneAttachFn]} transcludeFn A linking function, where the
* scope argument is auto-generated to the new child of the transcluded parent scope.
* @param {JQLite} jqCollection If we are working on the root of the compile tree then this
* argument has the root jqLite array so that we can replace nodes on it.
* @returns linkFn
*/
function applyDirectivesToNode(directives, compileNode, templateAttrs, transcludeFn, jqCollection) {
var terminalPriority = -Number.MAX_VALUE,
preLinkFns = [],
postLinkFns = [],
newScopeDirective = null,
newIsolateScopeDirective = null,
templateDirective = null,
$compileNode = templateAttrs.$$element = jqLite(compileNode),
directive,
directiveName,
$template,
transcludeDirective,
childTranscludeFn = transcludeFn,
controllerDirectives,
linkFn,
directiveValue;
// executes all directives on the current element
for(var i = 0, ii = directives.length; i < ii; i++) {
directive = directives[i];
$template = undefined;
if (terminalPriority > directive.priority) {
break; // prevent further processing of directives
}
if (directiveValue = directive.scope) {
assertNoDuplicate('isolated scope', newIsolateScopeDirective, directive, $compileNode);
if (isObject(directiveValue)) {
safeAddClass($compileNode, 'ng-isolate-scope');
newIsolateScopeDirective = directive;
}
safeAddClass($compileNode, 'ng-scope');
newScopeDirective = newScopeDirective || directive;
}
directiveName = directive.name;
if (directiveValue = directive.controller) {
controllerDirectives = controllerDirectives || {};
assertNoDuplicate("'" + directiveName + "' controller",
controllerDirectives[directiveName], directive, $compileNode);
controllerDirectives[directiveName] = directive;
}
if (directiveValue = directive.transclude) {
assertNoDuplicate('transclusion', transcludeDirective, directive, $compileNode);
transcludeDirective = directive;
terminalPriority = directive.priority;
if (directiveValue == 'element') {
$template = jqLite(compileNode);
$compileNode = templateAttrs.$$element =
jqLite(document.createComment(' ' + directiveName + ': ' + templateAttrs[directiveName] + ' '));
compileNode = $compileNode[0];
replaceWith(jqCollection, jqLite($template[0]), compileNode);
childTranscludeFn = compile($template, transcludeFn, terminalPriority);
} else {
$template = jqLite(JQLiteClone(compileNode)).contents();
$compileNode.html(''); // clear contents
childTranscludeFn = compile($template, transcludeFn);
}
}
if (directive.template) {
assertNoDuplicate('template', templateDirective, directive, $compileNode);
templateDirective = directive;
directiveValue = (isFunction(directive.template))
? directive.template($compileNode, templateAttrs)
: directive.template;
directiveValue = denormalizeTemplate(directiveValue);
if (directive.replace) {
$template = jqLite('<div>' +
trim(directiveValue) +
'</div>').contents();
compileNode = $template[0];
if ($template.length != 1 || compileNode.nodeType !== 1) {
throw new Error(MULTI_ROOT_TEMPLATE_ERROR + directiveValue);
}
replaceWith(jqCollection, $compileNode, compileNode);
var newTemplateAttrs = {$attr: {}};
// combine directives from the original node and from the template:
// - take the array of directives for this element
// - split it into two parts, those that were already applied and those that weren't
// - collect directives from the template, add them to the second group and sort them
// - append the second group with new directives to the first group
directives = directives.concat(
collectDirectives(
compileNode,
directives.splice(i + 1, directives.length - (i + 1)),
newTemplateAttrs
)
);
mergeTemplateAttributes(templateAttrs, newTemplateAttrs);
ii = directives.length;
} else {
$compileNode.html(directiveValue);
}
}
if (directive.templateUrl) {
assertNoDuplicate('template', templateDirective, directive, $compileNode);
templateDirective = directive;
nodeLinkFn = compileTemplateUrl(directives.splice(i, directives.length - i),
nodeLinkFn, $compileNode, templateAttrs, jqCollection, directive.replace,
childTranscludeFn);
ii = directives.length;
} else if (directive.compile) {
try {
linkFn = directive.compile($compileNode, templateAttrs, childTranscludeFn);
if (isFunction(linkFn)) {
addLinkFns(null, linkFn);
} else if (linkFn) {
addLinkFns(linkFn.pre, linkFn.post);
}
} catch (e) {
$exceptionHandler(e, startingTag($compileNode));
}
}
if (directive.terminal) {
nodeLinkFn.terminal = true;
terminalPriority = Math.max(terminalPriority, directive.priority);
}
}
nodeLinkFn.scope = newScopeDirective && newScopeDirective.scope;
nodeLinkFn.transclude = transcludeDirective && childTranscludeFn;
// might be normal or delayed nodeLinkFn depending on if templateUrl is present
return nodeLinkFn;
////////////////////
function addLinkFns(pre, post) {
if (pre) {
pre.require = directive.require;
preLinkFns.push(pre);
}
if (post) {
post.require = directive.require;
postLinkFns.push(post);
}
}
function getControllers(require, $element) {
var value, retrievalMethod = 'data', optional = false;
if (isString(require)) {
while((value = require.charAt(0)) == '^' || value == '?') {
require = require.substr(1);
if (value == '^') {
retrievalMethod = 'inheritedData';
}
optional = optional || value == '?';
}
value = $element[retrievalMethod]('$' + require + 'Controller');
if (!value && !optional) {
throw Error("No controller: " + require);
}
return value;
} else if (isArray(require)) {
value = [];
forEach(require, function(require) {
value.push(getControllers(require, $element));
});
}
return value;
}
function nodeLinkFn(childLinkFn, scope, linkNode, $rootElement, boundTranscludeFn) {
var attrs, $element, i, ii, linkFn, controller;
if (compileNode === linkNode) {
attrs = templateAttrs;
} else {
attrs = shallowCopy(templateAttrs, new Attributes(jqLite(linkNode), templateAttrs.$attr));
}
$element = attrs.$$element;
if (newIsolateScopeDirective) {
var LOCAL_REGEXP = /^\s*([@=&])(\??)\s*(\w*)\s*$/;
var parentScope = scope.$parent || scope;
forEach(newIsolateScopeDirective.scope, function(definiton, scopeName) {
var match = definiton.match(LOCAL_REGEXP) || [],
attrName = match[3] || scopeName,
optional = (match[2] == '?'),
mode = match[1], // @, =, or &
lastValue,
parentGet, parentSet;
scope.$$isolateBindings[scopeName] = mode + attrName;
switch (mode) {
case '@': {
attrs.$observe(attrName, function(value) {
scope[scopeName] = value;
});
attrs.$$observers[attrName].$$scope = parentScope;
if( attrs[attrName] ) {
// If the attribute has been provided then we trigger an interpolation to ensure the value is there for use in the link fn
scope[scopeName] = $interpolate(attrs[attrName])(parentScope);
}
break;
}
case '=': {
if (optional && !attrs[attrName]) {
return;
}
parentGet = $parse(attrs[attrName]);
parentSet = parentGet.assign || function() {
// reset the change, or we will throw this exception on every $digest
lastValue = scope[scopeName] = parentGet(parentScope);
throw Error(NON_ASSIGNABLE_MODEL_EXPRESSION + attrs[attrName] +
' (directive: ' + newIsolateScopeDirective.name + ')');
};
lastValue = scope[scopeName] = parentGet(parentScope);
scope.$watch(function parentValueWatch() {
var parentValue = parentGet(parentScope);
if (parentValue !== scope[scopeName]) {
// we are out of sync and need to copy
if (parentValue !== lastValue) {
// parent changed and it has precedence
lastValue = scope[scopeName] = parentValue;
} else {
// if the parent can be assigned then do so
parentSet(parentScope, parentValue = lastValue = scope[scopeName]);
}
}
return parentValue;
});
break;
}
case '&': {
parentGet = $parse(attrs[attrName]);
scope[scopeName] = function(locals) {
return parentGet(parentScope, locals);
};
break;
}
default: {
throw Error('Invalid isolate scope definition for directive ' +
newIsolateScopeDirective.name + ': ' + definiton);
}
}
});
}
if (controllerDirectives) {
forEach(controllerDirectives, function(directive) {
var locals = {
$scope: scope,
$element: $element,
$attrs: attrs,
$transclude: boundTranscludeFn
};
controller = directive.controller;
if (controller == '@') {
controller = attrs[directive.name];
}
$element.data(
'$' + directive.name + 'Controller',
$controller(controller, locals));
});
}
// PRELINKING
for(i = 0, ii = preLinkFns.length; i < ii; i++) {
try {
linkFn = preLinkFns[i];
linkFn(scope, $element, attrs,
linkFn.require && getControllers(linkFn.require, $element));
} catch (e) {
$exceptionHandler(e, startingTag($element));
}
}
// RECURSION
childLinkFn && childLinkFn(scope, linkNode.childNodes, undefined, boundTranscludeFn);
// POSTLINKING
for(i = 0, ii = postLinkFns.length; i < ii; i++) {
try {
linkFn = postLinkFns[i];
linkFn(scope, $element, attrs,
linkFn.require && getControllers(linkFn.require, $element));
} catch (e) {
$exceptionHandler(e, startingTag($element));
}
}
}
}
/**
* looks up the directive and decorates it with exception handling and proper parameters. We
* call this the boundDirective.
*
* @param {string} name name of the directive to look up.
* @param {string} location The directive must be found in specific format.
* String containing any of theses characters:
*
* * `E`: element name
* * `A': attribute
* * `C`: class
* * `M`: comment
* @returns true if directive was added.
*/
function addDirective(tDirectives, name, location, maxPriority) {
var match = false;
if (hasDirectives.hasOwnProperty(name)) {
for(var directive, directives = $injector.get(name + Suffix),
i = 0, ii = directives.length; i<ii; i++) {
try {
directive = directives[i];
if ( (maxPriority === undefined || maxPriority > directive.priority) &&
directive.restrict.indexOf(location) != -1) {
tDirectives.push(directive);
match = true;
}
} catch(e) { $exceptionHandler(e); }
}
}
return match;
}
/**
* When the element is replaced with HTML template then the new attributes
* on the template need to be merged with the existing attributes in the DOM.
* The desired effect is to have both of the attributes present.
*
* @param {object} dst destination attributes (original DOM)
* @param {object} src source attributes (from the directive template)
*/
function mergeTemplateAttributes(dst, src) {
var srcAttr = src.$attr,
dstAttr = dst.$attr,
$element = dst.$$element;
// reapply the old attributes to the new element
forEach(dst, function(value, key) {
if (key.charAt(0) != '$') {
if (src[key]) {
value += (key === 'style' ? ';' : ' ') + src[key];
}
dst.$set(key, value, true, srcAttr[key]);
}
});
// copy the new attributes on the old attrs object
forEach(src, function(value, key) {
if (key == 'class') {
safeAddClass($element, value);
dst['class'] = (dst['class'] ? dst['class'] + ' ' : '') + value;
} else if (key == 'style') {
$element.attr('style', $element.attr('style') + ';' + value);
} else if (key.charAt(0) != '$' && !dst.hasOwnProperty(key)) {
dst[key] = value;
dstAttr[key] = srcAttr[key];
}
});
}
function compileTemplateUrl(directives, beforeTemplateNodeLinkFn, $compileNode, tAttrs,
$rootElement, replace, childTranscludeFn) {
var linkQueue = [],
afterTemplateNodeLinkFn,
afterTemplateChildLinkFn,
beforeTemplateCompileNode = $compileNode[0],
origAsyncDirective = directives.shift(),
// The fact that we have to copy and patch the directive seems wrong!
derivedSyncDirective = extend({}, origAsyncDirective, {
controller: null, templateUrl: null, transclude: null, scope: null
}),
templateUrl = (isFunction(origAsyncDirective.templateUrl))
? origAsyncDirective.templateUrl($compileNode, tAttrs)
: origAsyncDirective.templateUrl;
$compileNode.html('');
$http.get(templateUrl, {cache: $templateCache}).
success(function(content) {
var compileNode, tempTemplateAttrs, $template;
content = denormalizeTemplate(content);
if (replace) {
$template = jqLite('<div>' + trim(content) + '</div>').contents();
compileNode = $template[0];
if ($template.length != 1 || compileNode.nodeType !== 1) {
throw new Error(MULTI_ROOT_TEMPLATE_ERROR + content);
}
tempTemplateAttrs = {$attr: {}};
replaceWith($rootElement, $compileNode, compileNode);
collectDirectives(compileNode, directives, tempTemplateAttrs);
mergeTemplateAttributes(tAttrs, tempTemplateAttrs);
} else {
compileNode = beforeTemplateCompileNode;
$compileNode.html(content);
}
directives.unshift(derivedSyncDirective);
afterTemplateNodeLinkFn = applyDirectivesToNode(directives, compileNode, tAttrs, childTranscludeFn);
afterTemplateChildLinkFn = compileNodes($compileNode[0].childNodes, childTranscludeFn);
while(linkQueue.length) {
var scope = linkQueue.shift(),
beforeTemplateLinkNode = linkQueue.shift(),
linkRootElement = linkQueue.shift(),
controller = linkQueue.shift(),
linkNode = compileNode;
if (beforeTemplateLinkNode !== beforeTemplateCompileNode) {
// it was cloned therefore we have to clone as well.
linkNode = JQLiteClone(compileNode);
replaceWith(linkRootElement, jqLite(beforeTemplateLinkNode), linkNode);
}
afterTemplateNodeLinkFn(function() {
beforeTemplateNodeLinkFn(afterTemplateChildLinkFn, scope, linkNode, $rootElement, controller);
}, scope, linkNode, $rootElement, controller);
}
linkQueue = null;
}).
error(function(response, code, headers, config) {
throw Error('Failed to load template: ' + config.url);
});
return function delayedNodeLinkFn(ignoreChildLinkFn, scope, node, rootElement, controller) {
if (linkQueue) {
linkQueue.push(scope);
linkQueue.push(node);
linkQueue.push(rootElement);
linkQueue.push(controller);
} else {
afterTemplateNodeLinkFn(function() {
beforeTemplateNodeLinkFn(afterTemplateChildLinkFn, scope, node, rootElement, controller);
}, scope, node, rootElement, controller);
}
};
}
/**
* Sorting function for bound directives.
*/
function byPriority(a, b) {
return b.priority - a.priority;
}
function assertNoDuplicate(what, previousDirective, directive, element) {
if (previousDirective) {
throw Error('Multiple directives [' + previousDirective.name + ', ' +
directive.name + '] asking for ' + what + ' on: ' + startingTag(element));
}
}
function addTextInterpolateDirective(directives, text) {
var interpolateFn = $interpolate(text, true);
if (interpolateFn) {
directives.push({
priority: 0,
compile: valueFn(function textInterpolateLinkFn(scope, node) {
var parent = node.parent(),
bindings = parent.data('$binding') || [];
bindings.push(interpolateFn);
safeAddClass(parent.data('$binding', bindings), 'ng-binding');
scope.$watch(interpolateFn, function interpolateFnWatchAction(value) {
node[0].nodeValue = value;
});
})
});
}
}
function addAttrInterpolateDirective(node, directives, value, name) {
var interpolateFn = $interpolate(value, true);
// no interpolation found -> ignore
if (!interpolateFn) return;
directives.push({
priority: 100,
compile: valueFn(function attrInterpolateLinkFn(scope, element, attr) {
var $$observers = (attr.$$observers || (attr.$$observers = {}));
// we need to interpolate again, in case the attribute value has been updated
// (e.g. by another directive's compile function)
interpolateFn = $interpolate(attr[name], true);
// if attribute was updated so that there is no interpolation going on we don't want to
// register any observers
if (!interpolateFn) return;
attr[name] = interpolateFn(scope);
($$observers[name] || ($$observers[name] = [])).$$inter = true;
(attr.$$observers && attr.$$observers[name].$$scope || scope).
$watch(interpolateFn, function interpolateFnWatchAction(value) {
attr.$set(name, value);
});
})
});
}
/**
* This is a special jqLite.replaceWith, which can replace items which
* have no parents, provided that the containing jqLite collection is provided.
*
* @param {JqLite=} $rootElement The root of the compile tree. Used so that we can replace nodes
* in the root of the tree.
* @param {JqLite} $element The jqLite element which we are going to replace. We keep the shell,
* but replace its DOM node reference.
* @param {Node} newNode The new DOM node.
*/
function replaceWith($rootElement, $element, newNode) {
var oldNode = $element[0],
parent = oldNode.parentNode,
i, ii;
if ($rootElement) {
for(i = 0, ii = $rootElement.length; i < ii; i++) {
if ($rootElement[i] == oldNode) {
$rootElement[i] = newNode;
break;
}
}
}
if (parent) {
parent.replaceChild(newNode, oldNode);
}
newNode[jqLite.expando] = oldNode[jqLite.expando];
$element[0] = newNode;
}
}];
}
var PREFIX_REGEXP = /^(x[\:\-_]|data[\:\-_])/i;
/**
* Converts all accepted directives format into proper directive name.
* All of these will become 'myDirective':
* my:DiRective
* my-directive
* x-my-directive
* data-my:directive
*
* Also there is special case for Moz prefix starting with upper case letter.
* @param name Name to normalize
*/
function directiveNormalize(name) {
return camelCase(name.replace(PREFIX_REGEXP, ''));
}
/**
* @ngdoc object
* @name ng.$compile.directive.Attributes
* @description
*
* A shared object between directive compile / linking functions which contains normalized DOM element
* attributes. The the values reflect current binding state `{{ }}`. The normalization is needed
* since all of these are treated as equivalent in Angular:
*
* <span ng:bind="a" ng-bind="a" data-ng-bind="a" x-ng-bind="a">
*/
/**
* @ngdoc property
* @name ng.$compile.directive.Attributes#$attr
* @propertyOf ng.$compile.directive.Attributes
* @returns {object} A map of DOM element attribute names to the normalized name. This is
* needed to do reverse lookup from normalized name back to actual name.
*/
/**
* @ngdoc function
* @name ng.$compile.directive.Attributes#$set
* @methodOf ng.$compile.directive.Attributes
* @function
*
* @description
* Set DOM element attribute value.
*
*
* @param {string} name Normalized element attribute name of the property to modify. The name is
* revers translated using the {@link ng.$compile.directive.Attributes#$attr $attr}
* property to the original name.
* @param {string} value Value to set the attribute to. The value can be an interpolated string.
*/
/**
* Closure compiler type information
*/
function nodesetLinkingFn(
/* angular.Scope */ scope,
/* NodeList */ nodeList,
/* Element */ rootElement,
/* function(Function) */ boundTranscludeFn
){}
function directiveLinkingFn(
/* nodesetLinkingFn */ nodesetLinkingFn,
/* angular.Scope */ scope,
/* Node */ node,
/* Element */ rootElement,
/* function(Function) */ boundTranscludeFn
){}
/**
* @ngdoc object
* @name ng.$controllerProvider
* @description
* The {@link ng.$controller $controller service} is used by Angular to create new
* controllers.
*
* This provider allows controller registration via the
* {@link ng.$controllerProvider#register register} method.
*/
function $ControllerProvider() {
var controllers = {},
CNTRL_REG = /^(\S+)(\s+as\s+(\w+))?$/;
/**
* @ngdoc function
* @name ng.$controllerProvider#register
* @methodOf ng.$controllerProvider
* @param {string} name Controller name
* @param {Function|Array} constructor Controller constructor fn (optionally decorated with DI
* annotations in the array notation).
*/
this.register = function(name, constructor) {
if (isObject(name)) {
extend(controllers, name)
} else {
controllers[name] = constructor;
}
};
this.$get = ['$injector', '$window', function($injector, $window) {
/**
* @ngdoc function
* @name ng.$controller
* @requires $injector
*
* @param {Function|string} constructor If called with a function then it's considered to be the
* controller constructor function. Otherwise it's considered to be a string which is used
* to retrieve the controller constructor using the following steps:
*
* * check if a controller with given name is registered via `$controllerProvider`
* * check if evaluating the string on the current scope returns a constructor
* * check `window[constructor]` on the global `window` object
*
* @param {Object} locals Injection locals for Controller.
* @return {Object} Instance of given controller.
*
* @description
* `$controller` service is responsible for instantiating controllers.
*
* It's just a simple call to {@link AUTO.$injector $injector}, but extracted into
* a service, so that one can override this service with {@link https://gist.github.com/1649788
* BC version}.
*/
return function(expression, locals) {
var instance, match, constructor, identifier;
if(isString(expression)) {
match = expression.match(CNTRL_REG),
constructor = match[1],
identifier = match[3];
expression = controllers.hasOwnProperty(constructor)
? controllers[constructor]
: getter(locals.$scope, constructor, true) || getter($window, constructor, true);
assertArgFn(expression, constructor, true);
}
instance = $injector.instantiate(expression, locals);
if (identifier) {
if (typeof locals.$scope !== 'object') {
throw new Error('Can not export controller as "' + identifier + '". ' +
'No scope object provided!');
}
locals.$scope[identifier] = instance;
}
return instance;
};
}];
}
/**
* @ngdoc object
* @name ng.$document
* @requires $window
*
* @description
* A {@link angular.element jQuery (lite)}-wrapped reference to the browser's `window.document`
* element.
*/
function $DocumentProvider(){
this.$get = ['$window', function(window){
return jqLite(window.document);
}];
}
/**
* @ngdoc function
* @name ng.$exceptionHandler
* @requires $log
*
* @description
* Any uncaught exception in angular expressions is delegated to this service.
* The default implementation simply delegates to `$log.error` which logs it into
* the browser console.
*
* In unit tests, if `angular-mocks.js` is loaded, this service is overridden by
* {@link ngMock.$exceptionHandler mock $exceptionHandler} which aids in testing.
*
* @param {Error} exception Exception associated with the error.
* @param {string=} cause optional information about the context in which
* the error was thrown.
*
*/
function $ExceptionHandlerProvider() {
this.$get = ['$log', function($log) {
return function(exception, cause) {
$log.error.apply($log, arguments);
};
}];
}
/**
* @ngdoc object
* @name ng.$interpolateProvider
* @function
*
* @description
*
* Used for configuring the interpolation markup. Defaults to `{{` and `}}`.
*/
function $InterpolateProvider() {
var startSymbol = '{{';
var endSymbol = '}}';
/**
* @ngdoc method
* @name ng.$interpolateProvider#startSymbol
* @methodOf ng.$interpolateProvider
* @description
* Symbol to denote start of expression in the interpolated string. Defaults to `{{`.
*
* @param {string=} value new value to set the starting symbol to.
* @returns {string|self} Returns the symbol when used as getter and self if used as setter.
*/
this.startSymbol = function(value){
if (value) {
startSymbol = value;
return this;
} else {
return startSymbol;
}
};
/**
* @ngdoc method
* @name ng.$interpolateProvider#endSymbol
* @methodOf ng.$interpolateProvider
* @description
* Symbol to denote the end of expression in the interpolated string. Defaults to `}}`.
*
* @param {string=} value new value to set the ending symbol to.
* @returns {string|self} Returns the symbol when used as getter and self if used as setter.
*/
this.endSymbol = function(value){
if (value) {
endSymbol = value;
return this;
} else {
return endSymbol;
}
};
this.$get = ['$parse', '$exceptionHandler', function($parse, $exceptionHandler) {
var startSymbolLength = startSymbol.length,
endSymbolLength = endSymbol.length;
/**
* @ngdoc function
* @name ng.$interpolate
* @function
*
* @requires $parse
*
* @description
*
* Compiles a string with markup into an interpolation function. This service is used by the
* HTML {@link ng.$compile $compile} service for data binding. See
* {@link ng.$interpolateProvider $interpolateProvider} for configuring the
* interpolation markup.
*
*
<pre>
var $interpolate = ...; // injected
var exp = $interpolate('Hello {{name}}!');
expect(exp({name:'Angular'}).toEqual('Hello Angular!');
</pre>
*
*
* @param {string} text The text with markup to interpolate.
* @param {boolean=} mustHaveExpression if set to true then the interpolation string must have
* embedded expression in order to return an interpolation function. Strings with no
* embedded expression will return null for the interpolation function.
* @returns {function(context)} an interpolation function which is used to compute the interpolated
* string. The function has these parameters:
*
* * `context`: an object against which any expressions embedded in the strings are evaluated
* against.
*
*/
function $interpolate(text, mustHaveExpression) {
var startIndex,
endIndex,
index = 0,
parts = [],
length = text.length,
hasInterpolation = false,
fn,
exp,
concat = [];
while(index < length) {
if ( ((startIndex = text.indexOf(startSymbol, index)) != -1) &&
((endIndex = text.indexOf(endSymbol, startIndex + startSymbolLength)) != -1) ) {
(index != startIndex) && parts.push(text.substring(index, startIndex));
parts.push(fn = $parse(exp = text.substring(startIndex + startSymbolLength, endIndex)));
fn.exp = exp;
index = endIndex + endSymbolLength;
hasInterpolation = true;
} else {
// we did not find anything, so we have to add the remainder to the parts array
(index != length) && parts.push(text.substring(index));
index = length;
}
}
if (!(length = parts.length)) {
// we added, nothing, must have been an empty string.
parts.push('');
length = 1;
}
if (!mustHaveExpression || hasInterpolation) {
concat.length = length;
fn = function(context) {
try {
for(var i = 0, ii = length, part; i<ii; i++) {
if (typeof (part = parts[i]) == 'function') {
part = part(context);
if (part == null || part == undefined) {
part = '';
} else if (typeof part != 'string') {
part = toJson(part);
}
}
concat[i] = part;
}
return concat.join('');
}
catch(err) {
var newErr = new Error('Error while interpolating: ' + text + '\n' + err.toString());
$exceptionHandler(newErr);
}
};
fn.exp = text;
fn.parts = parts;
return fn;
}
}
/**
* @ngdoc method
* @name ng.$interpolate#startSymbol
* @methodOf ng.$interpolate
* @description
* Symbol to denote the start of expression in the interpolated string. Defaults to `{{`.
*
* Use {@link ng.$interpolateProvider#startSymbol $interpolateProvider#startSymbol} to change
* the symbol.
*
* @returns {string} start symbol.
*/
$interpolate.startSymbol = function() {
return startSymbol;
}
/**
* @ngdoc method
* @name ng.$interpolate#endSymbol
* @methodOf ng.$interpolate
* @description
* Symbol to denote the end of expression in the interpolated string. Defaults to `}}`.
*
* Use {@link ng.$interpolateProvider#endSymbol $interpolateProvider#endSymbol} to change
* the symbol.
*
* @returns {string} start symbol.
*/
$interpolate.endSymbol = function() {
return endSymbol;
}
return $interpolate;
}];
}
var SERVER_MATCH = /^([^:]+):\/\/(\w+:{0,1}\w*@)?(\{?[\w\.-]*\}?)(:([0-9]+))?(\/[^\?#]*)?(\?([^#]*))?(#(.*))?$/,
PATH_MATCH = /^([^\?#]*)(\?([^#]*))?(#(.*))?$/,
DEFAULT_PORTS = {'http': 80, 'https': 443, 'ftp': 21};
/**
* Encode path using encodeUriSegment, ignoring forward slashes
*
* @param {string} path Path to encode
* @returns {string}
*/
function encodePath(path) {
var segments = path.split('/'),
i = segments.length;
while (i--) {
segments[i] = encodeUriSegment(segments[i]);
}
return segments.join('/');
}
function matchUrl(url, obj) {
var match = SERVER_MATCH.exec(url);
obj.$$protocol = match[1];
obj.$$host = match[3];
obj.$$port = int(match[5]) || DEFAULT_PORTS[match[1]] || null;
}
function matchAppUrl(url, obj) {
var match = PATH_MATCH.exec(url);
obj.$$path = decodeURIComponent(match[1]);
obj.$$search = parseKeyValue(match[3]);
obj.$$hash = decodeURIComponent(match[5] || '');
// make sure path starts with '/';
if (obj.$$path && obj.$$path.charAt(0) != '/') obj.$$path = '/' + obj.$$path;
}
function composeProtocolHostPort(protocol, host, port) {
return protocol + '://' + host + (port == DEFAULT_PORTS[protocol] ? '' : ':' + port);
}
/**
*
* @param {string} begin
* @param {string} whole
* @param {string} otherwise
* @returns {string} returns text from whole after begin or otherwise if it does not begin with expected string.
*/
function beginsWith(begin, whole, otherwise) {
return whole.indexOf(begin) == 0 ? whole.substr(begin.length) : otherwise;
}
function stripHash(url) {
var index = url.indexOf('#');
return index == -1 ? url : url.substr(0, index);
}
function stripFile(url) {
return url.substr(0, stripHash(url).lastIndexOf('/') + 1);
}
/* return the server only */
function serverBase(url) {
return url.substring(0, url.indexOf('/', url.indexOf('//') + 2));
}
/**
* LocationHtml5Url represents an url
* This object is exposed as $location service when HTML5 mode is enabled and supported
*
* @constructor
* @param {string} appBase application base URL
* @param {string} basePrefix url path prefix
*/
function LocationHtml5Url(appBase, basePrefix) {
basePrefix = basePrefix || '';
var appBaseNoFile = stripFile(appBase);
/**
* Parse given html5 (regular) url string into properties
* @param {string} newAbsoluteUrl HTML5 url
* @private
*/
this.$$parse = function(url) {
var parsed = {}
matchUrl(url, parsed);
var pathUrl = beginsWith(appBaseNoFile, url);
if (!isString(pathUrl)) {
throw Error('Invalid url "' + url + '", missing path prefix "' + appBaseNoFile + '".');
}
matchAppUrl(pathUrl, parsed);
extend(this, parsed);
if (!this.$$path) {
this.$$path = '/';
}
this.$$compose();
};
/**
* Compose url and update `absUrl` property
* @private
*/
this.$$compose = function() {
var search = toKeyValue(this.$$search),
hash = this.$$hash ? '#' + encodeUriSegment(this.$$hash) : '';
this.$$url = encodePath(this.$$path) + (search ? '?' + search : '') + hash;
this.$$absUrl = appBaseNoFile + this.$$url.substr(1); // first char is always '/'
};
this.$$rewrite = function(url) {
var appUrl, prevAppUrl;
if ( (appUrl = beginsWith(appBase, url)) !== undefined ) {
prevAppUrl = appUrl;
if ( (appUrl = beginsWith(basePrefix, appUrl)) !== undefined ) {
return appBaseNoFile + (beginsWith('/', appUrl) || appUrl);
} else {
return appBase + prevAppUrl;
}
} else if ( (appUrl = beginsWith(appBaseNoFile, url)) !== undefined ) {
return appBaseNoFile + appUrl;
} else if (appBaseNoFile == url + '/') {
return appBaseNoFile;
}
}
}
/**
* LocationHashbangUrl represents url
* This object is exposed as $location service when html5 history api is disabled or not supported
*
* @constructor
* @param {string} appBase application base URL
* @param {string} hashPrefix hashbang prefix
*/
function LocationHashbangUrl(appBase, hashPrefix) {
var appBaseNoFile = stripFile(appBase);
/**
* Parse given hashbang url into properties
* @param {string} url Hashbang url
* @private
*/
this.$$parse = function(url) {
matchUrl(url, this);
var withoutBaseUrl = beginsWith(appBase, url) || beginsWith(appBaseNoFile, url);
if (!isString(withoutBaseUrl)) {
throw new Error('Invalid url "' + url + '", does not start with "' + appBase + '".');
}
var withoutHashUrl = withoutBaseUrl.charAt(0) == '#' ? beginsWith(hashPrefix, withoutBaseUrl) : withoutBaseUrl;
if (!isString(withoutHashUrl)) {
throw new Error('Invalid url "' + url + '", missing hash prefix "' + hashPrefix + '".');
}
matchAppUrl(withoutHashUrl, this);
this.$$compose();
};
/**
* Compose hashbang url and update `absUrl` property
* @private
*/
this.$$compose = function() {
var search = toKeyValue(this.$$search),
hash = this.$$hash ? '#' + encodeUriSegment(this.$$hash) : '';
this.$$url = encodePath(this.$$path) + (search ? '?' + search : '') + hash;
this.$$absUrl = appBase + (this.$$url ? hashPrefix + this.$$url : '');
};
this.$$rewrite = function(url) {
if(stripHash(appBase) == stripHash(url)) {
return url;
}
}
}
/**
* LocationHashbangUrl represents url
* This object is exposed as $location service when html5 history api is enabled but the browser
* does not support it.
*
* @constructor
* @param {string} appBase application base URL
* @param {string} hashPrefix hashbang prefix
*/
function LocationHashbangInHtml5Url(appBase, hashPrefix) {
LocationHashbangUrl.apply(this, arguments);
var appBaseNoFile = stripFile(appBase);
this.$$rewrite = function(url) {
var appUrl;
if ( appBase == stripHash(url) ) {
return url;
} else if ( (appUrl = beginsWith(appBaseNoFile, url)) ) {
return appBase + hashPrefix + appUrl;
} else if ( appBaseNoFile === url + '/') {
return appBaseNoFile;
}
}
}
LocationHashbangInHtml5Url.prototype =
LocationHashbangUrl.prototype =
LocationHtml5Url.prototype = {
/**
* Has any change been replacing ?
* @private
*/
$$replace: false,
/**
* @ngdoc method
* @name ng.$location#absUrl
* @methodOf ng.$location
*
* @description
* This method is getter only.
*
* Return full url representation with all segments encoded according to rules specified in
* {@link http://www.ietf.org/rfc/rfc3986.txt RFC 3986}.
*
* @return {string} full url
*/
absUrl: locationGetter('$$absUrl'),
/**
* @ngdoc method
* @name ng.$location#url
* @methodOf ng.$location
*
* @description
* This method is getter / setter.
*
* Return url (e.g. `/path?a=b#hash`) when called without any parameter.
*
* Change path, search and hash, when called with parameter and return `$location`.
*
* @param {string=} url New url without base prefix (e.g. `/path?a=b#hash`)
* @return {string} url
*/
url: function(url, replace) {
if (isUndefined(url))
return this.$$url;
var match = PATH_MATCH.exec(url);
if (match[1]) this.path(decodeURIComponent(match[1]));
if (match[2] || match[1]) this.search(match[3] || '');
this.hash(match[5] || '', replace);
return this;
},
/**
* @ngdoc method
* @name ng.$location#protocol
* @methodOf ng.$location
*
* @description
* This method is getter only.
*
* Return protocol of current url.
*
* @return {string} protocol of current url
*/
protocol: locationGetter('$$protocol'),
/**
* @ngdoc method
* @name ng.$location#host
* @methodOf ng.$location
*
* @description
* This method is getter only.
*
* Return host of current url.
*
* @return {string} host of current url.
*/
host: locationGetter('$$host'),
/**
* @ngdoc method
* @name ng.$location#port
* @methodOf ng.$location
*
* @description
* This method is getter only.
*
* Return port of current url.
*
* @return {Number} port
*/
port: locationGetter('$$port'),
/**
* @ngdoc method
* @name ng.$location#path
* @methodOf ng.$location
*
* @description
* This method is getter / setter.
*
* Return path of current url when called without any parameter.
*
* Change path when called with parameter and return `$location`.
*
* Note: Path should always begin with forward slash (/), this method will add the forward slash
* if it is missing.
*
* @param {string=} path New path
* @return {string} path
*/
path: locationGetterSetter('$$path', function(path) {
return path.charAt(0) == '/' ? path : '/' + path;
}),
/**
* @ngdoc method
* @name ng.$location#search
* @methodOf ng.$location
*
* @description
* This method is getter / setter.
*
* Return search part (as object) of current url when called without any parameter.
*
* Change search part when called with parameter and return `$location`.
*
* @param {string|object<string,string>=} search New search params - string or hash object
* @param {string=} paramValue If `search` is a string, then `paramValue` will override only a
* single search parameter. If the value is `null`, the parameter will be deleted.
*
* @return {string} search
*/
search: function(search, paramValue) {
if (isUndefined(search))
return this.$$search;
if (isDefined(paramValue)) {
if (paramValue === null) {
delete this.$$search[search];
} else {
this.$$search[search] = paramValue;
}
} else {
this.$$search = isString(search) ? parseKeyValue(search) : search;
}
this.$$compose();
return this;
},
/**
* @ngdoc method
* @name ng.$location#hash
* @methodOf ng.$location
*
* @description
* This method is getter / setter.
*
* Return hash fragment when called without any parameter.
*
* Change hash fragment when called with parameter and return `$location`.
*
* @param {string=} hash New hash fragment
* @return {string} hash
*/
hash: locationGetterSetter('$$hash', identity),
/**
* @ngdoc method
* @name ng.$location#replace
* @methodOf ng.$location
*
* @description
* If called, all changes to $location during current `$digest` will be replacing current history
* record, instead of adding new one.
*/
replace: function() {
this.$$replace = true;
return this;
}
};
function locationGetter(property) {
return function() {
return this[property];
};
}
function locationGetterSetter(property, preprocess) {
return function(value) {
if (isUndefined(value))
return this[property];
this[property] = preprocess(value);
this.$$compose();
return this;
};
}
/**
* @ngdoc object
* @name ng.$location
*
* @requires $browser
* @requires $sniffer
* @requires $rootElement
*
* @description
* The $location service parses the URL in the browser address bar (based on the
* {@link https://developer.mozilla.org/en/window.location window.location}) and makes the URL
* available to your application. Changes to the URL in the address bar are reflected into
* $location service and changes to $location are reflected into the browser address bar.
*
* **The $location service:**
*
* - Exposes the current URL in the browser address bar, so you can
* - Watch and observe the URL.
* - Change the URL.
* - Synchronizes the URL with the browser when the user
* - Changes the address bar.
* - Clicks the back or forward button (or clicks a History link).
* - Clicks on a link.
* - Represents the URL object as a set of methods (protocol, host, port, path, search, hash).
*
* For more information see {@link guide/dev_guide.services.$location Developer Guide: Angular
* Services: Using $location}
*/
/**
* @ngdoc object
* @name ng.$locationProvider
* @description
* Use the `$locationProvider` to configure how the application deep linking paths are stored.
*/
function $LocationProvider(){
var hashPrefix = '',
html5Mode = false;
/**
* @ngdoc property
* @name ng.$locationProvider#hashPrefix
* @methodOf ng.$locationProvider
* @description
* @param {string=} prefix Prefix for hash part (containing path and search)
* @returns {*} current value if used as getter or itself (chaining) if used as setter
*/
this.hashPrefix = function(prefix) {
if (isDefined(prefix)) {
hashPrefix = prefix;
return this;
} else {
return hashPrefix;
}
};
/**
* @ngdoc property
* @name ng.$locationProvider#html5Mode
* @methodOf ng.$locationProvider
* @description
* @param {string=} mode Use HTML5 strategy if available.
* @returns {*} current value if used as getter or itself (chaining) if used as setter
*/
this.html5Mode = function(mode) {
if (isDefined(mode)) {
html5Mode = mode;
return this;
} else {
return html5Mode;
}
};
this.$get = ['$rootScope', '$browser', '$sniffer', '$rootElement',
function( $rootScope, $browser, $sniffer, $rootElement) {
var $location,
LocationMode,
baseHref = $browser.baseHref(),
initialUrl = $browser.url(),
appBase;
if (html5Mode) {
appBase = baseHref ? serverBase(initialUrl) + baseHref : initialUrl;
LocationMode = $sniffer.history ? LocationHtml5Url : LocationHashbangInHtml5Url;
} else {
appBase = stripHash(initialUrl);
LocationMode = LocationHashbangUrl;
}
$location = new LocationMode(appBase, '#' + hashPrefix);
$location.$$parse($location.$$rewrite(initialUrl));
$rootElement.bind('click', function(event) {
// TODO(vojta): rewrite link when opening in new tab/window (in legacy browser)
// currently we open nice url link and redirect then
if (event.ctrlKey || event.metaKey || event.which == 2) return;
var elm = jqLite(event.target);
// traverse the DOM up to find first A tag
while (lowercase(elm[0].nodeName) !== 'a') {
// ignore rewriting if no A tag (reached root element, or no parent - removed from document)
if (elm[0] === $rootElement[0] || !(elm = elm.parent())[0]) return;
}
var absHref = elm.prop('href');
var rewrittenUrl = $location.$$rewrite(absHref);
if (absHref && !elm.attr('target') && rewrittenUrl && !event.isDefaultPrevented()) {
event.preventDefault();
if (rewrittenUrl != $browser.url()) {
// update location manually
$location.$$parse(rewrittenUrl);
$rootScope.$apply();
// hack to work around FF6 bug 684208 when scenario runner clicks on links
window.angular['ff-684208-preventDefault'] = true;
}
}
});
// rewrite hashbang url <> html5 url
if ($location.absUrl() != initialUrl) {
$browser.url($location.absUrl(), true);
}
// update $location when $browser url changes
$browser.onUrlChange(function(newUrl) {
if ($location.absUrl() != newUrl) {
if ($rootScope.$broadcast('$locationChangeStart', newUrl, $location.absUrl()).defaultPrevented) {
$browser.url($location.absUrl());
return;
}
$rootScope.$evalAsync(function() {
var oldUrl = $location.absUrl();
$location.$$parse(newUrl);
afterLocationChange(oldUrl);
});
if (!$rootScope.$$phase) $rootScope.$digest();
}
});
// update browser
var changeCounter = 0;
$rootScope.$watch(function $locationWatch() {
var oldUrl = $browser.url();
var currentReplace = $location.$$replace;
if (!changeCounter || oldUrl != $location.absUrl()) {
changeCounter++;
$rootScope.$evalAsync(function() {
if ($rootScope.$broadcast('$locationChangeStart', $location.absUrl(), oldUrl).
defaultPrevented) {
$location.$$parse(oldUrl);
} else {
$browser.url($location.absUrl(), currentReplace);
afterLocationChange(oldUrl);
}
});
}
$location.$$replace = false;
return changeCounter;
});
return $location;
function afterLocationChange(oldUrl) {
$rootScope.$broadcast('$locationChangeSuccess', $location.absUrl(), oldUrl);
}
}];
}
/**
* @ngdoc object
* @name ng.$log
* @requires $window
*
* @description
* Simple service for logging. Default implementation writes the message
* into the browser's console (if present).
*
* The main purpose of this service is to simplify debugging and troubleshooting.
*
* @example
<example>
<file name="script.js">
function LogCtrl($scope, $log) {
$scope.$log = $log;
$scope.message = 'Hello World!';
}
</file>
<file name="index.html">
<div ng-controller="LogCtrl">
<p>Reload this page with open console, enter text and hit the log button...</p>
Message:
<input type="text" ng-model="message"/>
<button ng-click="$log.log(message)">log</button>
<button ng-click="$log.warn(message)">warn</button>
<button ng-click="$log.info(message)">info</button>
<button ng-click="$log.error(message)">error</button>
</div>
</file>
</example>
*/
/**
* @ngdoc object
* @name ng.$logProvider
* @description
* Use the `$logProvider` to configure how the application logs messages
*/
function $LogProvider(){
var debug = true,
self = this;
/**
* @ngdoc property
* @name ng.$logProvider#debugEnabled
* @methodOf ng.$logProvider
* @description
* @param {string=} flag enable or disable debug level messages
* @returns {*} current value if used as getter or itself (chaining) if used as setter
*/
this.debugEnabled = function(flag) {
if (isDefined(flag)) {
debug = flag;
return this;
} else {
return debug;
}
};
this.$get = ['$window', function($window){
return {
/**
* @ngdoc method
* @name ng.$log#log
* @methodOf ng.$log
*
* @description
* Write a log message
*/
log: consoleLog('log'),
/**
* @ngdoc method
* @name ng.$log#warn
* @methodOf ng.$log
*
* @description
* Write a warning message
*/
warn: consoleLog('warn'),
/**
* @ngdoc method
* @name ng.$log#info
* @methodOf ng.$log
*
* @description
* Write an information message
*/
info: consoleLog('info'),
/**
* @ngdoc method
* @name ng.$log#error
* @methodOf ng.$log
*
* @description
* Write an error message
*/
error: consoleLog('error'),
/**
* @ngdoc method
* @name ng.$log#debug
* @methodOf ng.$log
*
* @description
* Write a debug message
*/
debug: (function () {
var fn = consoleLog('debug');
return function() {
if (debug) {
fn.apply(self, arguments);
}
}
}())
};
function formatError(arg) {
if (arg instanceof Error) {
if (arg.stack) {
arg = (arg.message && arg.stack.indexOf(arg.message) === -1)
? 'Error: ' + arg.message + '\n' + arg.stack
: arg.stack;
} else if (arg.sourceURL) {
arg = arg.message + '\n' + arg.sourceURL + ':' + arg.line;
}
}
return arg;
}
function consoleLog(type) {
var console = $window.console || {},
logFn = console[type] || console.log || noop;
if (logFn.apply) {
return function() {
var args = [];
forEach(arguments, function(arg) {
args.push(formatError(arg));
});
return logFn.apply(console, args);
};
}
// we are IE which either doesn't have window.console => this is noop and we do nothing,
// or we are IE where console.log doesn't have apply so we log at least first 2 args
return function(arg1, arg2) {
logFn(arg1, arg2);
}
}
}];
}
var OPERATORS = {
'null':function(){return null;},
'true':function(){return true;},
'false':function(){return false;},
undefined:noop,
'+':function(self, locals, a,b){
a=a(self, locals); b=b(self, locals);
if (isDefined(a)) {
if (isDefined(b)) {
return a + b;
}
return a;
}
return isDefined(b)?b:undefined;},
'-':function(self, locals, a,b){a=a(self, locals); b=b(self, locals); return (isDefined(a)?a:0)-(isDefined(b)?b:0);},
'*':function(self, locals, a,b){return a(self, locals)*b(self, locals);},
'/':function(self, locals, a,b){return a(self, locals)/b(self, locals);},
'%':function(self, locals, a,b){return a(self, locals)%b(self, locals);},
'^':function(self, locals, a,b){return a(self, locals)^b(self, locals);},
'=':noop,
'===':function(self, locals, a, b){return a(self, locals)===b(self, locals);},
'!==':function(self, locals, a, b){return a(self, locals)!==b(self, locals);},
'==':function(self, locals, a,b){return a(self, locals)==b(self, locals);},
'!=':function(self, locals, a,b){return a(self, locals)!=b(self, locals);},
'<':function(self, locals, a,b){return a(self, locals)<b(self, locals);},
'>':function(self, locals, a,b){return a(self, locals)>b(self, locals);},
'<=':function(self, locals, a,b){return a(self, locals)<=b(self, locals);},
'>=':function(self, locals, a,b){return a(self, locals)>=b(self, locals);},
'&&':function(self, locals, a,b){return a(self, locals)&&b(self, locals);},
'||':function(self, locals, a,b){return a(self, locals)||b(self, locals);},
'&':function(self, locals, a,b){return a(self, locals)&b(self, locals);},
// '|':function(self, locals, a,b){return a|b;},
'|':function(self, locals, a,b){return b(self, locals)(self, locals, a(self, locals));},
'!':function(self, locals, a){return !a(self, locals);}
};
var ESCAPE = {"n":"\n", "f":"\f", "r":"\r", "t":"\t", "v":"\v", "'":"'", '"':'"'};
function lex(text, csp){
var tokens = [],
token,
index = 0,
json = [],
ch,
lastCh = ':'; // can start regexp
while (index < text.length) {
ch = text.charAt(index);
if (is('"\'')) {
readString(ch);
} else if (isNumber(ch) || is('.') && isNumber(peek())) {
readNumber();
} else if (isIdent(ch)) {
readIdent();
// identifiers can only be if the preceding char was a { or ,
if (was('{,') && json[0]=='{' &&
(token=tokens[tokens.length-1])) {
token.json = token.text.indexOf('.') == -1;
}
} else if (is('(){}[].,;:?')) {
tokens.push({
index:index,
text:ch,
json:(was(':[,') && is('{[')) || is('}]:,')
});
if (is('{[')) json.unshift(ch);
if (is('}]')) json.shift();
index++;
} else if (isWhitespace(ch)) {
index++;
continue;
} else {
var ch2 = ch + peek(),
ch3 = ch2 + peek(2),
fn = OPERATORS[ch],
fn2 = OPERATORS[ch2],
fn3 = OPERATORS[ch3];
if (fn3) {
tokens.push({index:index, text:ch3, fn:fn3});
index += 3;
} else if (fn2) {
tokens.push({index:index, text:ch2, fn:fn2});
index += 2;
} else if (fn) {
tokens.push({index:index, text:ch, fn:fn, json: was('[,:') && is('+-')});
index += 1;
} else {
throwError("Unexpected next character ", index, index+1);
}
}
lastCh = ch;
}
return tokens;
function is(chars) {
return chars.indexOf(ch) != -1;
}
function was(chars) {
return chars.indexOf(lastCh) != -1;
}
function peek(i) {
var num = i || 1;
return index + num < text.length ? text.charAt(index + num) : false;
}
function isNumber(ch) {
return '0' <= ch && ch <= '9';
}
function isWhitespace(ch) {
return ch == ' ' || ch == '\r' || ch == '\t' ||
ch == '\n' || ch == '\v' || ch == '\u00A0'; // IE treats non-breaking space as \u00A0
}
function isIdent(ch) {
return 'a' <= ch && ch <= 'z' ||
'A' <= ch && ch <= 'Z' ||
'_' == ch || ch == '$';
}
function isExpOperator(ch) {
return ch == '-' || ch == '+' || isNumber(ch);
}
function throwError(error, start, end) {
end = end || index;
throw Error("Lexer Error: " + error + " at column" +
(isDefined(start)
? "s " + start + "-" + index + " [" + text.substring(start, end) + "]"
: " " + end) +
" in expression [" + text + "].");
}
function readNumber() {
var number = "";
var start = index;
while (index < text.length) {
var ch = lowercase(text.charAt(index));
if (ch == '.' || isNumber(ch)) {
number += ch;
} else {
var peekCh = peek();
if (ch == 'e' && isExpOperator(peekCh)) {
number += ch;
} else if (isExpOperator(ch) &&
peekCh && isNumber(peekCh) &&
number.charAt(number.length - 1) == 'e') {
number += ch;
} else if (isExpOperator(ch) &&
(!peekCh || !isNumber(peekCh)) &&
number.charAt(number.length - 1) == 'e') {
throwError('Invalid exponent');
} else {
break;
}
}
index++;
}
number = 1 * number;
tokens.push({index:start, text:number, json:true,
fn:function() {return number;}});
}
function readIdent() {
var ident = "",
start = index,
lastDot, peekIndex, methodName, ch;
while (index < text.length) {
ch = text.charAt(index);
if (ch == '.' || isIdent(ch) || isNumber(ch)) {
if (ch == '.') lastDot = index;
ident += ch;
} else {
break;
}
index++;
}
//check if this is not a method invocation and if it is back out to last dot
if (lastDot) {
peekIndex = index;
while(peekIndex < text.length) {
ch = text.charAt(peekIndex);
if (ch == '(') {
methodName = ident.substr(lastDot - start + 1);
ident = ident.substr(0, lastDot - start);
index = peekIndex;
break;
}
if(isWhitespace(ch)) {
peekIndex++;
} else {
break;
}
}
}
var token = {
index:start,
text:ident
};
if (OPERATORS.hasOwnProperty(ident)) {
token.fn = token.json = OPERATORS[ident];
} else {
var getter = getterFn(ident, csp);
token.fn = extend(function(self, locals) {
return (getter(self, locals));
}, {
assign: function(self, value) {
return setter(self, ident, value);
}
});
}
tokens.push(token);
if (methodName) {
tokens.push({
index:lastDot,
text: '.',
json: false
});
tokens.push({
index: lastDot + 1,
text: methodName,
json: false
});
}
}
function readString(quote) {
var start = index;
index++;
var string = "";
var rawString = quote;
var escape = false;
while (index < text.length) {
var ch = text.charAt(index);
rawString += ch;
if (escape) {
if (ch == 'u') {
var hex = text.substring(index + 1, index + 5);
if (!hex.match(/[\da-f]{4}/i))
throwError( "Invalid unicode escape [\\u" + hex + "]");
index += 4;
string += String.fromCharCode(parseInt(hex, 16));
} else {
var rep = ESCAPE[ch];
if (rep) {
string += rep;
} else {
string += ch;
}
}
escape = false;
} else if (ch == '\\') {
escape = true;
} else if (ch == quote) {
index++;
tokens.push({
index:start,
text:rawString,
string:string,
json:true,
fn:function() { return string; }
});
return;
} else {
string += ch;
}
index++;
}
throwError("Unterminated quote", start);
}
}
/////////////////////////////////////////
function parser(text, json, $filter, csp){
var ZERO = valueFn(0),
value,
tokens = lex(text, csp),
assignment = _assignment,
functionCall = _functionCall,
fieldAccess = _fieldAccess,
objectIndex = _objectIndex,
filterChain = _filterChain;
if(json){
// The extra level of aliasing is here, just in case the lexer misses something, so that
// we prevent any accidental execution in JSON.
assignment = logicalOR;
functionCall =
fieldAccess =
objectIndex =
filterChain =
function() { throwError("is not valid json", {text:text, index:0}); };
value = primary();
} else {
value = statements();
}
if (tokens.length !== 0) {
throwError("is an unexpected token", tokens[0]);
}
value.literal = !!value.literal;
value.constant = !!value.constant;
return value;
///////////////////////////////////
function throwError(msg, token) {
throw Error("Syntax Error: Token '" + token.text +
"' " + msg + " at column " +
(token.index + 1) + " of the expression [" +
text + "] starting at [" + text.substring(token.index) + "].");
}
function peekToken() {
if (tokens.length === 0)
throw Error("Unexpected end of expression: " + text);
return tokens[0];
}
function peek(e1, e2, e3, e4) {
if (tokens.length > 0) {
var token = tokens[0];
var t = token.text;
if (t==e1 || t==e2 || t==e3 || t==e4 ||
(!e1 && !e2 && !e3 && !e4)) {
return token;
}
}
return false;
}
function expect(e1, e2, e3, e4){
var token = peek(e1, e2, e3, e4);
if (token) {
if (json && !token.json) {
throwError("is not valid json", token);
}
tokens.shift();
return token;
}
return false;
}
function consume(e1){
if (!expect(e1)) {
throwError("is unexpected, expecting [" + e1 + "]", peek());
}
}
function unaryFn(fn, right) {
return extend(function(self, locals) {
return fn(self, locals, right);
}, {
constant:right.constant
});
}
function ternaryFn(left, middle, right){
return extend(function(self, locals){
return left(self, locals) ? middle(self, locals) : right(self, locals);
}, {
constant: left.constant && middle.constant && right.constant
});
}
function binaryFn(left, fn, right) {
return extend(function(self, locals) {
return fn(self, locals, left, right);
}, {
constant:left.constant && right.constant
});
}
function statements() {
var statements = [];
while(true) {
if (tokens.length > 0 && !peek('}', ')', ';', ']'))
statements.push(filterChain());
if (!expect(';')) {
// optimize for the common case where there is only one statement.
// TODO(size): maybe we should not support multiple statements?
return statements.length == 1
? statements[0]
: function(self, locals){
var value;
for ( var i = 0; i < statements.length; i++) {
var statement = statements[i];
if (statement)
value = statement(self, locals);
}
return value;
};
}
}
}
function _filterChain() {
var left = expression();
var token;
while(true) {
if ((token = expect('|'))) {
left = binaryFn(left, token.fn, filter());
} else {
return left;
}
}
}
function filter() {
var token = expect();
var fn = $filter(token.text);
var argsFn = [];
while(true) {
if ((token = expect(':'))) {
argsFn.push(expression());
} else {
var fnInvoke = function(self, locals, input){
var args = [input];
for ( var i = 0; i < argsFn.length; i++) {
args.push(argsFn[i](self, locals));
}
return fn.apply(self, args);
};
return function() {
return fnInvoke;
};
}
}
}
function expression() {
return assignment();
}
function _assignment() {
var left = ternary();
var right;
var token;
if ((token = expect('='))) {
if (!left.assign) {
throwError("implies assignment but [" +
text.substring(0, token.index) + "] can not be assigned to", token);
}
right = ternary();
return function(scope, locals){
return left.assign(scope, right(scope, locals), locals);
};
} else {
return left;
}
}
function ternary() {
var left = logicalOR();
var middle;
var token;
if((token = expect('?'))){
middle = ternary();
if((token = expect(':'))){
return ternaryFn(left, middle, ternary());
}
else {
throwError('expected :', token);
}
}
else {
return left;
}
}
function logicalOR() {
var left = logicalAND();
var token;
while(true) {
if ((token = expect('||'))) {
left = binaryFn(left, token.fn, logicalAND());
} else {
return left;
}
}
}
function logicalAND() {
var left = equality();
var token;
if ((token = expect('&&'))) {
left = binaryFn(left, token.fn, logicalAND());
}
return left;
}
function equality() {
var left = relational();
var token;
if ((token = expect('==','!=','===','!=='))) {
left = binaryFn(left, token.fn, equality());
}
return left;
}
function relational() {
var left = additive();
var token;
if ((token = expect('<', '>', '<=', '>='))) {
left = binaryFn(left, token.fn, relational());
}
return left;
}
function additive() {
var left = multiplicative();
var token;
while ((token = expect('+','-'))) {
left = binaryFn(left, token.fn, multiplicative());
}
return left;
}
function multiplicative() {
var left = unary();
var token;
while ((token = expect('*','/','%'))) {
left = binaryFn(left, token.fn, unary());
}
return left;
}
function unary() {
var token;
if (expect('+')) {
return primary();
} else if ((token = expect('-'))) {
return binaryFn(ZERO, token.fn, unary());
} else if ((token = expect('!'))) {
return unaryFn(token.fn, unary());
} else {
return primary();
}
}
function primary() {
var primary;
if (expect('(')) {
primary = filterChain();
consume(')');
} else if (expect('[')) {
primary = arrayDeclaration();
} else if (expect('{')) {
primary = object();
} else {
var token = expect();
primary = token.fn;
if (!primary) {
throwError("not a primary expression", token);
}
if (token.json) {
primary.constant = primary.literal = true;
}
}
var next, context;
while ((next = expect('(', '[', '.'))) {
if (next.text === '(') {
primary = functionCall(primary, context);
context = null;
} else if (next.text === '[') {
context = primary;
primary = objectIndex(primary);
} else if (next.text === '.') {
context = primary;
primary = fieldAccess(primary);
} else {
throwError("IMPOSSIBLE");
}
}
return primary;
}
function _fieldAccess(object) {
var field = expect().text;
var getter = getterFn(field, csp);
return extend(
function(scope, locals, self) {
return getter(self || object(scope, locals), locals);
},
{
assign:function(scope, value, locals) {
return setter(object(scope, locals), field, value);
}
}
);
}
function _objectIndex(obj) {
var indexFn = expression();
consume(']');
return extend(
function(self, locals){
var o = obj(self, locals),
i = indexFn(self, locals),
v, p;
if (!o) return undefined;
v = o[i];
if (v && v.then) {
p = v;
if (!('$$v' in v)) {
p.$$v = undefined;
p.then(function(val) { p.$$v = val; });
}
v = v.$$v;
}
return v;
}, {
assign:function(self, value, locals){
return obj(self, locals)[indexFn(self, locals)] = value;
}
});
}
function _functionCall(fn, contextGetter) {
var argsFn = [];
if (peekToken().text != ')') {
do {
argsFn.push(expression());
} while (expect(','));
}
consume(')');
return function(scope, locals){
var args = [],
context = contextGetter ? contextGetter(scope, locals) : scope;
for ( var i = 0; i < argsFn.length; i++) {
args.push(argsFn[i](scope, locals));
}
var fnPtr = fn(scope, locals, context) || noop;
// IE stupidity!
return fnPtr.apply
? fnPtr.apply(context, args)
: fnPtr(args[0], args[1], args[2], args[3], args[4]);
};
}
// This is used with json array declaration
function arrayDeclaration () {
var elementFns = [];
var allConstant = true;
if (peekToken().text != ']') {
do {
var elementFn = expression();
elementFns.push(elementFn);
if (!elementFn.constant) {
allConstant = false;
}
} while (expect(','));
}
consume(']');
return extend(function(self, locals){
var array = [];
for ( var i = 0; i < elementFns.length; i++) {
array.push(elementFns[i](self, locals));
}
return array;
}, {
literal:true,
constant:allConstant
});
}
function object () {
var keyValues = [];
var allConstant = true;
if (peekToken().text != '}') {
do {
var token = expect(),
key = token.string || token.text;
consume(":");
var value = expression();
keyValues.push({key:key, value:value});
if (!value.constant) {
allConstant = false;
}
} while (expect(','));
}
consume('}');
return extend(function(self, locals){
var object = {};
for ( var i = 0; i < keyValues.length; i++) {
var keyValue = keyValues[i];
object[keyValue.key] = keyValue.value(self, locals);
}
return object;
}, {
literal:true,
constant:allConstant
});
}
}
//////////////////////////////////////////////////
// Parser helper functions
//////////////////////////////////////////////////
function setter(obj, path, setValue) {
var element = path.split('.');
for (var i = 0; element.length > 1; i++) {
var key = element.shift();
var propertyObj = obj[key];
if (!propertyObj) {
propertyObj = {};
obj[key] = propertyObj;
}
obj = propertyObj;
}
obj[element.shift()] = setValue;
return setValue;
}
/**
* Return the value accessible from the object by path. Any undefined traversals are ignored
* @param {Object} obj starting object
* @param {string} path path to traverse
* @param {boolean=true} bindFnToScope
* @returns value as accessible by path
*/
//TODO(misko): this function needs to be removed
function getter(obj, path, bindFnToScope) {
if (!path) return obj;
var keys = path.split('.');
var key;
var lastInstance = obj;
var len = keys.length;
for (var i = 0; i < len; i++) {
key = keys[i];
if (obj) {
obj = (lastInstance = obj)[key];
}
}
if (!bindFnToScope && isFunction(obj)) {
return bind(lastInstance, obj);
}
return obj;
}
var getterFnCache = {};
/**
* Implementation of the "Black Hole" variant from:
* - http://jsperf.com/angularjs-parse-getter/4
* - http://jsperf.com/path-evaluation-simplified/7
*/
function cspSafeGetterFn(key0, key1, key2, key3, key4) {
return function(scope, locals) {
var pathVal = (locals && locals.hasOwnProperty(key0)) ? locals : scope,
promise;
if (pathVal === null || pathVal === undefined) return pathVal;
pathVal = pathVal[key0];
if (pathVal && pathVal.then) {
if (!("$$v" in pathVal)) {
promise = pathVal;
promise.$$v = undefined;
promise.then(function(val) { promise.$$v = val; });
}
pathVal = pathVal.$$v;
}
if (!key1 || pathVal === null || pathVal === undefined) return pathVal;
pathVal = pathVal[key1];
if (pathVal && pathVal.then) {
if (!("$$v" in pathVal)) {
promise = pathVal;
promise.$$v = undefined;
promise.then(function(val) { promise.$$v = val; });
}
pathVal = pathVal.$$v;
}
if (!key2 || pathVal === null || pathVal === undefined) return pathVal;
pathVal = pathVal[key2];
if (pathVal && pathVal.then) {
if (!("$$v" in pathVal)) {
promise = pathVal;
promise.$$v = undefined;
promise.then(function(val) { promise.$$v = val; });
}
pathVal = pathVal.$$v;
}
if (!key3 || pathVal === null || pathVal === undefined) return pathVal;
pathVal = pathVal[key3];
if (pathVal && pathVal.then) {
if (!("$$v" in pathVal)) {
promise = pathVal;
promise.$$v = undefined;
promise.then(function(val) { promise.$$v = val; });
}
pathVal = pathVal.$$v;
}
if (!key4 || pathVal === null || pathVal === undefined) return pathVal;
pathVal = pathVal[key4];
if (pathVal && pathVal.then) {
if (!("$$v" in pathVal)) {
promise = pathVal;
promise.$$v = undefined;
promise.then(function(val) { promise.$$v = val; });
}
pathVal = pathVal.$$v;
}
return pathVal;
};
}
function getterFn(path, csp) {
if (getterFnCache.hasOwnProperty(path)) {
return getterFnCache[path];
}
var pathKeys = path.split('.'),
pathKeysLength = pathKeys.length,
fn;
if (csp) {
fn = (pathKeysLength < 6)
? cspSafeGetterFn(pathKeys[0], pathKeys[1], pathKeys[2], pathKeys[3], pathKeys[4])
: function(scope, locals) {
var i = 0, val;
do {
val = cspSafeGetterFn(
pathKeys[i++], pathKeys[i++], pathKeys[i++], pathKeys[i++], pathKeys[i++]
)(scope, locals);
locals = undefined; // clear after first iteration
scope = val;
} while (i < pathKeysLength);
return val;
}
} else {
var code = 'var l, fn, p;\n';
forEach(pathKeys, function(key, index) {
code += 'if(s === null || s === undefined) return s;\n' +
'l=s;\n' +
's='+ (index
// we simply dereference 's' on any .dot notation
? 's'
// but if we are first then we check locals first, and if so read it first
: '((k&&k.hasOwnProperty("' + key + '"))?k:s)') + '["' + key + '"]' + ';\n' +
'if (s && s.then) {\n' +
' if (!("$$v" in s)) {\n' +
' p=s;\n' +
' p.$$v = undefined;\n' +
' p.then(function(v) {p.$$v=v;});\n' +
'}\n' +
' s=s.$$v\n' +
'}\n';
});
code += 'return s;';
fn = Function('s', 'k', code); // s=scope, k=locals
fn.toString = function() { return code; };
}
return getterFnCache[path] = fn;
}
///////////////////////////////////
/**
* @ngdoc function
* @name ng.$parse
* @function
*
* @description
*
* Converts Angular {@link guide/expression expression} into a function.
*
* <pre>
* var getter = $parse('user.name');
* var setter = getter.assign;
* var context = {user:{name:'angular'}};
* var locals = {user:{name:'local'}};
*
* expect(getter(context)).toEqual('angular');
* setter(context, 'newValue');
* expect(context.user.name).toEqual('newValue');
* expect(getter(context, locals)).toEqual('local');
* </pre>
*
*
* @param {string} expression String expression to compile.
* @returns {function(context, locals)} a function which represents the compiled expression:
*
* * `context` – `{object}` – an object against which any expressions embedded in the strings
* are evaluated against (typically a scope object).
* * `locals` – `{object=}` – local variables context object, useful for overriding values in
* `context`.
*
* The returned function also has the following properties:
* * `literal` – `{boolean}` – whether the expression's top-level node is a JavaScript
* literal.
* * `constant` – `{boolean}` – whether the expression is made entirely of JavaScript
* constant literals.
* * `assign` – `{?function(context, value)}` – if the expression is assignable, this will be
* set to a function to change its value on the given context.
*
*/
function $ParseProvider() {
var cache = {};
this.$get = ['$filter', '$sniffer', function($filter, $sniffer) {
return function(exp) {
switch(typeof exp) {
case 'string':
return cache.hasOwnProperty(exp)
? cache[exp]
: cache[exp] = parser(exp, false, $filter, $sniffer.csp);
case 'function':
return exp;
default:
return noop;
}
};
}];
}
/**
* @ngdoc service
* @name ng.$q
* @requires $rootScope
*
* @description
* A promise/deferred implementation inspired by [Kris Kowal's Q](https://github.com/kriskowal/q).
*
* [The CommonJS Promise proposal](http://wiki.commonjs.org/wiki/Promises) describes a promise as an
* interface for interacting with an object that represents the result of an action that is
* performed asynchronously, and may or may not be finished at any given point in time.
*
* From the perspective of dealing with error handling, deferred and promise APIs are to
* asynchronous programming what `try`, `catch` and `throw` keywords are to synchronous programming.
*
* <pre>
* // for the purpose of this example let's assume that variables `$q` and `scope` are
* // available in the current lexical scope (they could have been injected or passed in).
*
* function asyncGreet(name) {
* var deferred = $q.defer();
*
* setTimeout(function() {
* // since this fn executes async in a future turn of the event loop, we need to wrap
* // our code into an $apply call so that the model changes are properly observed.
* scope.$apply(function() {
* if (okToGreet(name)) {
* deferred.resolve('Hello, ' + name + '!');
* } else {
* deferred.reject('Greeting ' + name + ' is not allowed.');
* }
* });
* }, 1000);
*
* return deferred.promise;
* }
*
* var promise = asyncGreet('Robin Hood');
* promise.then(function(greeting) {
* alert('Success: ' + greeting);
* }, function(reason) {
* alert('Failed: ' + reason);
* });
* </pre>
*
* At first it might not be obvious why this extra complexity is worth the trouble. The payoff
* comes in the way of
* [guarantees that promise and deferred APIs make](https://github.com/kriskowal/uncommonjs/blob/master/promises/specification.md).
*
* Additionally the promise api allows for composition that is very hard to do with the
* traditional callback ([CPS](http://en.wikipedia.org/wiki/Continuation-passing_style)) approach.
* For more on this please see the [Q documentation](https://github.com/kriskowal/q) especially the
* section on serial or parallel joining of promises.
*
*
* # The Deferred API
*
* A new instance of deferred is constructed by calling `$q.defer()`.
*
* The purpose of the deferred object is to expose the associated Promise instance as well as APIs
* that can be used for signaling the successful or unsuccessful completion of the task.
*
* **Methods**
*
* - `resolve(value)` – resolves the derived promise with the `value`. If the value is a rejection
* constructed via `$q.reject`, the promise will be rejected instead.
* - `reject(reason)` – rejects the derived promise with the `reason`. This is equivalent to
* resolving it with a rejection constructed via `$q.reject`.
*
* **Properties**
*
* - promise – `{Promise}` – promise object associated with this deferred.
*
*
* # The Promise API
*
* A new promise instance is created when a deferred instance is created and can be retrieved by
* calling `deferred.promise`.
*
* The purpose of the promise object is to allow for interested parties to get access to the result
* of the deferred task when it completes.
*
* **Methods**
*
* - `then(successCallback, errorCallback)` – regardless of when the promise was or will be resolved
* or rejected calls one of the success or error callbacks asynchronously as soon as the result
* is available. The callbacks are called with a single argument the result or rejection reason.
*
* This method *returns a new promise* which is resolved or rejected via the return value of the
* `successCallback` or `errorCallback`.
*
* - `always(callback)` – allows you to observe either the fulfillment or rejection of a promise,
* but to do so without modifying the final value. This is useful to release resources or do some
* clean-up that needs to be done whether the promise was rejected or resolved. See the [full
* specification](https://github.com/kriskowal/q/wiki/API-Reference#promisefinallycallback) for
* more information.
*
* # Chaining promises
*
* Because calling `then` api of a promise returns a new derived promise, it is easily possible
* to create a chain of promises:
*
* <pre>
* promiseB = promiseA.then(function(result) {
* return result + 1;
* });
*
* // promiseB will be resolved immediately after promiseA is resolved and its value will be
* // the result of promiseA incremented by 1
* </pre>
*
* It is possible to create chains of any length and since a promise can be resolved with another
* promise (which will defer its resolution further), it is possible to pause/defer resolution of
* the promises at any point in the chain. This makes it possible to implement powerful apis like
* $http's response interceptors.
*
*
* # Differences between Kris Kowal's Q and $q
*
* There are three main differences:
*
* - $q is integrated with the {@link ng.$rootScope.Scope} Scope model observation
* mechanism in angular, which means faster propagation of resolution or rejection into your
* models and avoiding unnecessary browser repaints, which would result in flickering UI.
* - $q promises are recognized by the templating engine in angular, which means that in templates
* you can treat promises attached to a scope as if they were the resulting values.
* - Q has many more features than $q, but that comes at a cost of bytes. $q is tiny, but contains
* all the important functionality needed for common async tasks.
*
* # Testing
*
* <pre>
* it('should simulate promise', inject(function($q, $rootScope) {
* var deferred = $q.defer();
* var promise = deferred.promise;
* var resolvedValue;
*
* promise.then(function(value) { resolvedValue = value; });
* expect(resolvedValue).toBeUndefined();
*
* // Simulate resolving of promise
* deferred.resolve(123);
* // Note that the 'then' function does not get called synchronously.
* // This is because we want the promise API to always be async, whether or not
* // it got called synchronously or asynchronously.
* expect(resolvedValue).toBeUndefined();
*
* // Propagate promise resolution to 'then' functions using $apply().
* $rootScope.$apply();
* expect(resolvedValue).toEqual(123);
* });
* </pre>
*/
function $QProvider() {
this.$get = ['$rootScope', '$exceptionHandler', function($rootScope, $exceptionHandler) {
return qFactory(function(callback) {
$rootScope.$evalAsync(callback);
}, $exceptionHandler);
}];
}
/**
* Constructs a promise manager.
*
* @param {function(function)} nextTick Function for executing functions in the next turn.
* @param {function(...*)} exceptionHandler Function into which unexpected exceptions are passed for
* debugging purposes.
* @returns {object} Promise manager.
*/
function qFactory(nextTick, exceptionHandler) {
/**
* @ngdoc
* @name ng.$q#defer
* @methodOf ng.$q
* @description
* Creates a `Deferred` object which represents a task which will finish in the future.
*
* @returns {Deferred} Returns a new instance of deferred.
*/
var defer = function() {
var pending = [],
value, deferred;
deferred = {
resolve: function(val) {
if (pending) {
var callbacks = pending;
pending = undefined;
value = ref(val);
if (callbacks.length) {
nextTick(function() {
var callback;
for (var i = 0, ii = callbacks.length; i < ii; i++) {
callback = callbacks[i];
value.then(callback[0], callback[1]);
}
});
}
}
},
reject: function(reason) {
deferred.resolve(reject(reason));
},
promise: {
then: function(callback, errback) {
var result = defer();
var wrappedCallback = function(value) {
try {
result.resolve((callback || defaultCallback)(value));
} catch(e) {
exceptionHandler(e);
result.reject(e);
}
};
var wrappedErrback = function(reason) {
try {
result.resolve((errback || defaultErrback)(reason));
} catch(e) {
exceptionHandler(e);
result.reject(e);
}
};
if (pending) {
pending.push([wrappedCallback, wrappedErrback]);
} else {
value.then(wrappedCallback, wrappedErrback);
}
return result.promise;
},
always: function(callback) {
function makePromise(value, resolved) {
var result = defer();
if (resolved) {
result.resolve(value);
} else {
result.reject(value);
}
return result.promise;
}
function handleCallback(value, isResolved) {
var callbackOutput = null;
try {
callbackOutput = (callback ||defaultCallback)();
} catch(e) {
return makePromise(e, false);
}
if (callbackOutput && callbackOutput.then) {
return callbackOutput.then(function() {
return makePromise(value, isResolved);
}, function(error) {
return makePromise(error, false);
});
} else {
return makePromise(value, isResolved);
}
}
return this.then(function(value) {
return handleCallback(value, true);
}, function(error) {
return handleCallback(error, false);
});
}
}
};
return deferred;
};
var ref = function(value) {
if (value && value.then) return value;
return {
then: function(callback) {
var result = defer();
nextTick(function() {
result.resolve(callback(value));
});
return result.promise;
}
};
};
/**
* @ngdoc
* @name ng.$q#reject
* @methodOf ng.$q
* @description
* Creates a promise that is resolved as rejected with the specified `reason`. This api should be
* used to forward rejection in a chain of promises. If you are dealing with the last promise in
* a promise chain, you don't need to worry about it.
*
* When comparing deferreds/promises to the familiar behavior of try/catch/throw, think of
* `reject` as the `throw` keyword in JavaScript. This also means that if you "catch" an error via
* a promise error callback and you want to forward the error to the promise derived from the
* current promise, you have to "rethrow" the error by returning a rejection constructed via
* `reject`.
*
* <pre>
* promiseB = promiseA.then(function(result) {
* // success: do something and resolve promiseB
* // with the old or a new result
* return result;
* }, function(reason) {
* // error: handle the error if possible and
* // resolve promiseB with newPromiseOrValue,
* // otherwise forward the rejection to promiseB
* if (canHandle(reason)) {
* // handle the error and recover
* return newPromiseOrValue;
* }
* return $q.reject(reason);
* });
* </pre>
*
* @param {*} reason Constant, message, exception or an object representing the rejection reason.
* @returns {Promise} Returns a promise that was already resolved as rejected with the `reason`.
*/
var reject = function(reason) {
return {
then: function(callback, errback) {
var result = defer();
nextTick(function() {
result.resolve((errback || defaultErrback)(reason));
});
return result.promise;
}
};
};
/**
* @ngdoc
* @name ng.$q#when
* @methodOf ng.$q
* @description
* Wraps an object that might be a value or a (3rd party) then-able promise into a $q promise.
* This is useful when you are dealing with an object that might or might not be a promise, or if
* the promise comes from a source that can't be trusted.
*
* @param {*} value Value or a promise
* @returns {Promise} Returns a promise of the passed value or promise
*/
var when = function(value, callback, errback) {
var result = defer(),
done;
var wrappedCallback = function(value) {
try {
return (callback || defaultCallback)(value);
} catch (e) {
exceptionHandler(e);
return reject(e);
}
};
var wrappedErrback = function(reason) {
try {
return (errback || defaultErrback)(reason);
} catch (e) {
exceptionHandler(e);
return reject(e);
}
};
nextTick(function() {
ref(value).then(function(value) {
if (done) return;
done = true;
result.resolve(ref(value).then(wrappedCallback, wrappedErrback));
}, function(reason) {
if (done) return;
done = true;
result.resolve(wrappedErrback(reason));
});
});
return result.promise;
};
function defaultCallback(value) {
return value;
}
function defaultErrback(reason) {
return reject(reason);
}
/**
* @ngdoc
* @name ng.$q#all
* @methodOf ng.$q
* @description
* Combines multiple promises into a single promise that is resolved when all of the input
* promises are resolved.
*
* @param {Array.<Promise>|Object.<Promise>} promises An array or hash of promises.
* @returns {Promise} Returns a single promise that will be resolved with an array/hash of values,
* each value corresponding to the promise at the same index/key in the `promises` array/hash. If any of
* the promises is resolved with a rejection, this resulting promise will be resolved with the
* same rejection.
*/
function all(promises) {
var deferred = defer(),
counter = 0,
results = isArray(promises) ? [] : {};
forEach(promises, function(promise, key) {
counter++;
ref(promise).then(function(value) {
if (results.hasOwnProperty(key)) return;
results[key] = value;
if (!(--counter)) deferred.resolve(results);
}, function(reason) {
if (results.hasOwnProperty(key)) return;
deferred.reject(reason);
});
});
if (counter === 0) {
deferred.resolve(results);
}
return deferred.promise;
}
return {
defer: defer,
reject: reject,
when: when,
all: all
};
}
/**
* @ngdoc object
* @name ng.$routeProvider
* @function
*
* @description
*
* Used for configuring routes. See {@link ng.$route $route} for an example.
*/
function $RouteProvider(){
var routes = {};
/**
* @ngdoc method
* @name ng.$routeProvider#when
* @methodOf ng.$routeProvider
*
* @param {string} path Route path (matched against `$location.path`). If `$location.path`
* contains redundant trailing slash or is missing one, the route will still match and the
* `$location.path` will be updated to add or drop the trailing slash to exactly match the
* route definition.
*
* * `path` can contain named groups starting with a colon (`:name`). All characters up
* to the next slash are matched and stored in `$routeParams` under the given `name`
* when the route matches.
* * `path` can contain named groups starting with a star (`*name`). All characters are
* eagerly stored in `$routeParams` under the given `name` when the route matches.
*
* For example, routes like `/color/:color/largecode/*largecode/edit` will match
* `/color/brown/largecode/code/with/slashs/edit` and extract:
*
* * `color: brown`
* * `largecode: code/with/slashs`.
*
*
* @param {Object} route Mapping information to be assigned to `$route.current` on route
* match.
*
* Object properties:
*
* - `controller` – `{(string|function()=}` – Controller fn that should be associated with newly
* created scope or the name of a {@link angular.Module#controller registered controller}
* if passed as a string.
* - `controllerAs` – `{string=}` – A controller alias name. If present the controller will be
* published to scope under the `controllerAs` name.
* - `template` – `{string=|function()=}` – html template as a string or function that returns
* an html template as a string which should be used by {@link ng.directive:ngView ngView} or
* {@link ng.directive:ngInclude ngInclude} directives.
* This property takes precedence over `templateUrl`.
*
* If `template` is a function, it will be called with the following parameters:
*
* - `{Array.<Object>}` - route parameters extracted from the current
* `$location.path()` by applying the current route
*
* - `templateUrl` – `{string=|function()=}` – path or function that returns a path to an html
* template that should be used by {@link ng.directive:ngView ngView}.
*
* If `templateUrl` is a function, it will be called with the following parameters:
*
* - `{Array.<Object>}` - route parameters extracted from the current
* `$location.path()` by applying the current route
*
* - `resolve` - `{Object.<string, function>=}` - An optional map of dependencies which should
* be injected into the controller. If any of these dependencies are promises, they will be
* resolved and converted to a value before the controller is instantiated and the
* `$routeChangeSuccess` event is fired. The map object is:
*
* - `key` – `{string}`: a name of a dependency to be injected into the controller.
* - `factory` - `{string|function}`: If `string` then it is an alias for a service.
* Otherwise if function, then it is {@link api/AUTO.$injector#invoke injected}
* and the return value is treated as the dependency. If the result is a promise, it is resolved
* before its value is injected into the controller.
*
* - `redirectTo` – {(string|function())=} – value to update
* {@link ng.$location $location} path with and trigger route redirection.
*
* If `redirectTo` is a function, it will be called with the following parameters:
*
* - `{Object.<string>}` - route parameters extracted from the current
* `$location.path()` by applying the current route templateUrl.
* - `{string}` - current `$location.path()`
* - `{Object}` - current `$location.search()`
*
* The custom `redirectTo` function is expected to return a string which will be used
* to update `$location.path()` and `$location.search()`.
*
* - `[reloadOnSearch=true]` - {boolean=} - reload route when only $location.search()
* changes.
*
* If the option is set to `false` and url in the browser changes, then
* `$routeUpdate` event is broadcasted on the root scope.
*
* - `[caseInsensitiveMatch=false]` - {boolean=} - match routes without being case sensitive
*
* If the option is set to `true`, then the particular route can be matched without being
* case sensitive
*
* @returns {Object} self
*
* @description
* Adds a new route definition to the `$route` service.
*/
this.when = function(path, route) {
routes[path] = extend({reloadOnSearch: true, caseInsensitiveMatch: false}, route);
// create redirection for trailing slashes
if (path) {
var redirectPath = (path[path.length-1] == '/')
? path.substr(0, path.length-1)
: path +'/';
routes[redirectPath] = {redirectTo: path};
}
return this;
};
/**
* @ngdoc method
* @name ng.$routeProvider#otherwise
* @methodOf ng.$routeProvider
*
* @description
* Sets route definition that will be used on route change when no other route definition
* is matched.
*
* @param {Object} params Mapping information to be assigned to `$route.current`.
* @returns {Object} self
*/
this.otherwise = function(params) {
this.when(null, params);
return this;
};
this.$get = ['$rootScope', '$location', '$routeParams', '$q', '$injector', '$http', '$templateCache',
function( $rootScope, $location, $routeParams, $q, $injector, $http, $templateCache) {
/**
* @ngdoc object
* @name ng.$route
* @requires $location
* @requires $routeParams
*
* @property {Object} current Reference to the current route definition.
* The route definition contains:
*
* - `controller`: The controller constructor as define in route definition.
* - `locals`: A map of locals which is used by {@link ng.$controller $controller} service for
* controller instantiation. The `locals` contain
* the resolved values of the `resolve` map. Additionally the `locals` also contain:
*
* - `$scope` - The current route scope.
* - `$template` - The current route template HTML.
*
* @property {Array.<Object>} routes Array of all configured routes.
*
* @description
* Is used for deep-linking URLs to controllers and views (HTML partials).
* It watches `$location.url()` and tries to map the path to an existing route definition.
*
* You can define routes through {@link ng.$routeProvider $routeProvider}'s API.
*
* The `$route` service is typically used in conjunction with {@link ng.directive:ngView ngView}
* directive and the {@link ng.$routeParams $routeParams} service.
*
* @example
This example shows how changing the URL hash causes the `$route` to match a route against the
URL, and the `ngView` pulls in the partial.
Note that this example is using {@link ng.directive:script inlined templates}
to get it working on jsfiddle as well.
<example module="ngView">
<file name="index.html">
<div ng-controller="MainCntl">
Choose:
<a href="Book/Moby">Moby</a> |
<a href="Book/Moby/ch/1">Moby: Ch1</a> |
<a href="Book/Gatsby">Gatsby</a> |
<a href="Book/Gatsby/ch/4?key=value">Gatsby: Ch4</a> |
<a href="Book/Scarlet">Scarlet Letter</a><br/>
<div ng-view></div>
<hr />
<pre>$location.path() = {{$location.path()}}</pre>
<pre>$route.current.templateUrl = {{$route.current.templateUrl}}</pre>
<pre>$route.current.params = {{$route.current.params}}</pre>
<pre>$route.current.scope.name = {{$route.current.scope.name}}</pre>
<pre>$routeParams = {{$routeParams}}</pre>
</div>
</file>
<file name="book.html">
controller: {{name}}<br />
Book Id: {{params.bookId}}<br />
</file>
<file name="chapter.html">
controller: {{name}}<br />
Book Id: {{params.bookId}}<br />
Chapter Id: {{params.chapterId}}
</file>
<file name="script.js">
angular.module('ngView', [], function($routeProvider, $locationProvider) {
$routeProvider.when('/Book/:bookId', {
templateUrl: 'book.html',
controller: BookCntl,
resolve: {
// I will cause a 1 second delay
delay: function($q, $timeout) {
var delay = $q.defer();
$timeout(delay.resolve, 1000);
return delay.promise;
}
}
});
$routeProvider.when('/Book/:bookId/ch/:chapterId', {
templateUrl: 'chapter.html',
controller: ChapterCntl
});
// configure html5 to get links working on jsfiddle
$locationProvider.html5Mode(true);
});
function MainCntl($scope, $route, $routeParams, $location) {
$scope.$route = $route;
$scope.$location = $location;
$scope.$routeParams = $routeParams;
}
function BookCntl($scope, $routeParams) {
$scope.name = "BookCntl";
$scope.params = $routeParams;
}
function ChapterCntl($scope, $routeParams) {
$scope.name = "ChapterCntl";
$scope.params = $routeParams;
}
</file>
<file name="scenario.js">
it('should load and compile correct template', function() {
element('a:contains("Moby: Ch1")').click();
var content = element('.doc-example-live [ng-view]').text();
expect(content).toMatch(/controller\: ChapterCntl/);
expect(content).toMatch(/Book Id\: Moby/);
expect(content).toMatch(/Chapter Id\: 1/);
element('a:contains("Scarlet")').click();
sleep(2); // promises are not part of scenario waiting
content = element('.doc-example-live [ng-view]').text();
expect(content).toMatch(/controller\: BookCntl/);
expect(content).toMatch(/Book Id\: Scarlet/);
});
</file>
</example>
*/
/**
* @ngdoc event
* @name ng.$route#$routeChangeStart
* @eventOf ng.$route
* @eventType broadcast on root scope
* @description
* Broadcasted before a route change. At this point the route services starts
* resolving all of the dependencies needed for the route change to occurs.
* Typically this involves fetching the view template as well as any dependencies
* defined in `resolve` route property. Once all of the dependencies are resolved
* `$routeChangeSuccess` is fired.
*
* @param {Route} next Future route information.
* @param {Route} current Current route information.
*/
/**
* @ngdoc event
* @name ng.$route#$routeChangeSuccess
* @eventOf ng.$route
* @eventType broadcast on root scope
* @description
* Broadcasted after a route dependencies are resolved.
* {@link ng.directive:ngView ngView} listens for the directive
* to instantiate the controller and render the view.
*
* @param {Object} angularEvent Synthetic event object.
* @param {Route} current Current route information.
* @param {Route|Undefined} previous Previous route information, or undefined if current is first route entered.
*/
/**
* @ngdoc event
* @name ng.$route#$routeChangeError
* @eventOf ng.$route
* @eventType broadcast on root scope
* @description
* Broadcasted if any of the resolve promises are rejected.
*
* @param {Route} current Current route information.
* @param {Route} previous Previous route information.
* @param {Route} rejection Rejection of the promise. Usually the error of the failed promise.
*/
/**
* @ngdoc event
* @name ng.$route#$routeUpdate
* @eventOf ng.$route
* @eventType broadcast on root scope
* @description
*
* The `reloadOnSearch` property has been set to false, and we are reusing the same
* instance of the Controller.
*/
var forceReload = false,
$route = {
routes: routes,
/**
* @ngdoc method
* @name ng.$route#reload
* @methodOf ng.$route
*
* @description
* Causes `$route` service to reload the current route even if
* {@link ng.$location $location} hasn't changed.
*
* As a result of that, {@link ng.directive:ngView ngView}
* creates new scope, reinstantiates the controller.
*/
reload: function() {
forceReload = true;
$rootScope.$evalAsync(updateRoute);
}
};
$rootScope.$on('$locationChangeSuccess', updateRoute);
return $route;
/////////////////////////////////////////////////////
/**
* @param on {string} current url
* @param when {string} route when template to match the url against
* @param whenProperties {Object} properties to define when's matching behavior
* @return {?Object}
*/
function switchRouteMatcher(on, when, whenProperties) {
// TODO(i): this code is convoluted and inefficient, we should construct the route matching
// regex only once and then reuse it
// Escape regexp special characters.
when = '^' + when.replace(/[-\/\\^$:*+?.()|[\]{}]/g, "\\$&") + '$';
var regex = '',
params = [],
dst = {};
var re = /\\([:*])(\w+)/g,
paramMatch,
lastMatchedIndex = 0;
while ((paramMatch = re.exec(when)) !== null) {
// Find each :param in `when` and replace it with a capturing group.
// Append all other sections of when unchanged.
regex += when.slice(lastMatchedIndex, paramMatch.index);
switch(paramMatch[1]) {
case ':':
regex += '([^\\/]*)';
break;
case '*':
regex += '(.*)';
break;
}
params.push(paramMatch[2]);
lastMatchedIndex = re.lastIndex;
}
// Append trailing path part.
regex += when.substr(lastMatchedIndex);
var match = on.match(new RegExp(regex, whenProperties.caseInsensitiveMatch ? 'i' : ''));
if (match) {
forEach(params, function(name, index) {
dst[name] = match[index + 1];
});
}
return match ? dst : null;
}
function updateRoute() {
var next = parseRoute(),
last = $route.current;
if (next && last && next.$$route === last.$$route
&& equals(next.pathParams, last.pathParams) && !next.reloadOnSearch && !forceReload) {
last.params = next.params;
copy(last.params, $routeParams);
$rootScope.$broadcast('$routeUpdate', last);
} else if (next || last) {
forceReload = false;
$rootScope.$broadcast('$routeChangeStart', next, last);
$route.current = next;
if (next) {
if (next.redirectTo) {
if (isString(next.redirectTo)) {
$location.path(interpolate(next.redirectTo, next.params)).search(next.params)
.replace();
} else {
$location.url(next.redirectTo(next.pathParams, $location.path(), $location.search()))
.replace();
}
}
}
$q.when(next).
then(function() {
if (next) {
var locals = extend({}, next.resolve),
template;
forEach(locals, function(value, key) {
locals[key] = isString(value) ? $injector.get(value) : $injector.invoke(value);
});
if (isDefined(template = next.template)) {
if (isFunction(template)) {
template = template(next.params);
}
} else if (isDefined(template = next.templateUrl)) {
if (isFunction(template)) {
template = template(next.params);
}
if (isDefined(template)) {
next.loadedTemplateUrl = template;
template = $http.get(template, {cache: $templateCache}).
then(function(response) { return response.data; });
}
}
if (isDefined(template)) {
locals['$template'] = template;
}
return $q.all(locals);
}
}).
// after route change
then(function(locals) {
if (next == $route.current) {
if (next) {
next.locals = locals;
copy(next.params, $routeParams);
}
$rootScope.$broadcast('$routeChangeSuccess', next, last);
}
}, function(error) {
if (next == $route.current) {
$rootScope.$broadcast('$routeChangeError', next, last, error);
}
});
}
}
/**
* @returns the current active route, by matching it against the URL
*/
function parseRoute() {
// Match a route
var params, match;
forEach(routes, function(route, path) {
if (!match && (params = switchRouteMatcher($location.path(), path, route))) {
match = inherit(route, {
params: extend({}, $location.search(), params),
pathParams: params});
match.$$route = route;
}
});
// No route matched; fallback to "otherwise" route
return match || routes[null] && inherit(routes[null], {params: {}, pathParams:{}});
}
/**
* @returns interpolation of the redirect path with the parameters
*/
function interpolate(string, params) {
var result = [];
forEach((string||'').split(':'), function(segment, i) {
if (i == 0) {
result.push(segment);
} else {
var segmentMatch = segment.match(/(\w+)(.*)/);
var key = segmentMatch[1];
result.push(params[key]);
result.push(segmentMatch[2] || '');
delete params[key];
}
});
return result.join('');
}
}];
}
/**
* @ngdoc object
* @name ng.$routeParams
* @requires $route
*
* @description
* Current set of route parameters. The route parameters are a combination of the
* {@link ng.$location $location} `search()`, and `path()`. The `path` parameters
* are extracted when the {@link ng.$route $route} path is matched.
*
* In case of parameter name collision, `path` params take precedence over `search` params.
*
* The service guarantees that the identity of the `$routeParams` object will remain unchanged
* (but its properties will likely change) even when a route change occurs.
*
* @example
* <pre>
* // Given:
* // URL: http://server.com/index.html#/Chapter/1/Section/2?search=moby
* // Route: /Chapter/:chapterId/Section/:sectionId
* //
* // Then
* $routeParams ==> {chapterId:1, sectionId:2, search:'moby'}
* </pre>
*/
function $RouteParamsProvider() {
this.$get = valueFn({});
}
/**
* DESIGN NOTES
*
* The design decisions behind the scope are heavily favored for speed and memory consumption.
*
* The typical use of scope is to watch the expressions, which most of the time return the same
* value as last time so we optimize the operation.
*
* Closures construction is expensive in terms of speed as well as memory:
* - No closures, instead use prototypical inheritance for API
* - Internal state needs to be stored on scope directly, which means that private state is
* exposed as $$____ properties
*
* Loop operations are optimized by using while(count--) { ... }
* - this means that in order to keep the same order of execution as addition we have to add
* items to the array at the beginning (shift) instead of at the end (push)
*
* Child scopes are created and removed often
* - Using an array would be slow since inserts in middle are expensive so we use linked list
*
* There are few watches then a lot of observers. This is why you don't want the observer to be
* implemented in the same way as watch. Watch requires return of initialization function which
* are expensive to construct.
*/
/**
* @ngdoc object
* @name ng.$rootScopeProvider
* @description
*
* Provider for the $rootScope service.
*/
/**
* @ngdoc function
* @name ng.$rootScopeProvider#digestTtl
* @methodOf ng.$rootScopeProvider
* @description
*
* Sets the number of digest iterations the scope should attempt to execute before giving up and
* assuming that the model is unstable.
*
* The current default is 10 iterations.
*
* @param {number} limit The number of digest iterations.
*/
/**
* @ngdoc object
* @name ng.$rootScope
* @description
*
* Every application has a single root {@link ng.$rootScope.Scope scope}.
* All other scopes are child scopes of the root scope. Scopes provide mechanism for watching the model and provide
* event processing life-cycle. See {@link guide/scope developer guide on scopes}.
*/
function $RootScopeProvider(){
var TTL = 10;
this.digestTtl = function(value) {
if (arguments.length) {
TTL = value;
}
return TTL;
};
this.$get = ['$injector', '$exceptionHandler', '$parse',
function( $injector, $exceptionHandler, $parse) {
/**
* @ngdoc function
* @name ng.$rootScope.Scope
*
* @description
* A root scope can be retrieved using the {@link ng.$rootScope $rootScope} key from the
* {@link AUTO.$injector $injector}. Child scopes are created using the
* {@link ng.$rootScope.Scope#$new $new()} method. (Most scopes are created automatically when
* compiled HTML template is executed.)
*
* Here is a simple scope snippet to show how you can interact with the scope.
* <pre>
* <file src="./test/ng/rootScopeSpec.js" tag="docs1" />
* </pre>
*
* # Inheritance
* A scope can inherit from a parent scope, as in this example:
* <pre>
var parent = $rootScope;
var child = parent.$new();
parent.salutation = "Hello";
child.name = "World";
expect(child.salutation).toEqual('Hello');
child.salutation = "Welcome";
expect(child.salutation).toEqual('Welcome');
expect(parent.salutation).toEqual('Hello');
* </pre>
*
*
* @param {Object.<string, function()>=} providers Map of service factory which need to be provided
* for the current scope. Defaults to {@link ng}.
* @param {Object.<string, *>=} instanceCache Provides pre-instantiated services which should
* append/override services provided by `providers`. This is handy when unit-testing and having
* the need to override a default service.
* @returns {Object} Newly created scope.
*
*/
function Scope() {
this.$id = nextUid();
this.$$phase = this.$parent = this.$$watchers =
this.$$nextSibling = this.$$prevSibling =
this.$$childHead = this.$$childTail = null;
this['this'] = this.$root = this;
this.$$destroyed = false;
this.$$asyncQueue = [];
this.$$listeners = {};
this.$$isolateBindings = {};
}
/**
* @ngdoc property
* @name ng.$rootScope.Scope#$id
* @propertyOf ng.$rootScope.Scope
* @returns {number} Unique scope ID (monotonically increasing alphanumeric sequence) useful for
* debugging.
*/
Scope.prototype = {
/**
* @ngdoc function
* @name ng.$rootScope.Scope#$new
* @methodOf ng.$rootScope.Scope
* @function
*
* @description
* Creates a new child {@link ng.$rootScope.Scope scope}.
*
* The parent scope will propagate the {@link ng.$rootScope.Scope#$digest $digest()} and
* {@link ng.$rootScope.Scope#$digest $digest()} events. The scope can be removed from the scope
* hierarchy using {@link ng.$rootScope.Scope#$destroy $destroy()}.
*
* {@link ng.$rootScope.Scope#$destroy $destroy()} must be called on a scope when it is desired for
* the scope and its child scopes to be permanently detached from the parent and thus stop
* participating in model change detection and listener notification by invoking.
*
* @param {boolean} isolate if true then the scope does not prototypically inherit from the
* parent scope. The scope is isolated, as it can not see parent scope properties.
* When creating widgets it is useful for the widget to not accidentally read parent
* state.
*
* @returns {Object} The newly created child scope.
*
*/
$new: function(isolate) {
var Child,
child;
if (isFunction(isolate)) {
// TODO: remove at some point
throw Error('API-CHANGE: Use $controller to instantiate controllers.');
}
if (isolate) {
child = new Scope();
child.$root = this.$root;
} else {
Child = function() {}; // should be anonymous; This is so that when the minifier munges
// the name it does not become random set of chars. These will then show up as class
// name in the debugger.
Child.prototype = this;
child = new Child();
child.$id = nextUid();
}
child['this'] = child;
child.$$listeners = {};
child.$parent = this;
child.$$watchers = child.$$nextSibling = child.$$childHead = child.$$childTail = null;
child.$$prevSibling = this.$$childTail;
if (this.$$childHead) {
this.$$childTail.$$nextSibling = child;
this.$$childTail = child;
} else {
this.$$childHead = this.$$childTail = child;
}
return child;
},
/**
* @ngdoc function
* @name ng.$rootScope.Scope#$watch
* @methodOf ng.$rootScope.Scope
* @function
*
* @description
* Registers a `listener` callback to be executed whenever the `watchExpression` changes.
*
* - The `watchExpression` is called on every call to {@link ng.$rootScope.Scope#$digest $digest()} and
* should return the value which will be watched. (Since {@link ng.$rootScope.Scope#$digest $digest()}
* reruns when it detects changes the `watchExpression` can execute multiple times per
* {@link ng.$rootScope.Scope#$digest $digest()} and should be idempotent.)
* - The `listener` is called only when the value from the current `watchExpression` and the
* previous call to `watchExpression` are not equal (with the exception of the initial run,
* see below). The inequality is determined according to
* {@link angular.equals} function. To save the value of the object for later comparison, the
* {@link angular.copy} function is used. It also means that watching complex options will
* have adverse memory and performance implications.
* - The watch `listener` may change the model, which may trigger other `listener`s to fire. This
* is achieved by rerunning the watchers until no changes are detected. The rerun iteration
* limit is 10 to prevent an infinite loop deadlock.
*
*
* If you want to be notified whenever {@link ng.$rootScope.Scope#$digest $digest} is called,
* you can register a `watchExpression` function with no `listener`. (Since `watchExpression`
* can execute multiple times per {@link ng.$rootScope.Scope#$digest $digest} cycle when a change is
* detected, be prepared for multiple calls to your listener.)
*
* After a watcher is registered with the scope, the `listener` fn is called asynchronously
* (via {@link ng.$rootScope.Scope#$evalAsync $evalAsync}) to initialize the
* watcher. In rare cases, this is undesirable because the listener is called when the result
* of `watchExpression` didn't change. To detect this scenario within the `listener` fn, you
* can compare the `newVal` and `oldVal`. If these two values are identical (`===`) then the
* listener was called due to initialization.
*
*
* # Example
* <pre>
// let's assume that scope was dependency injected as the $rootScope
var scope = $rootScope;
scope.name = 'misko';
scope.counter = 0;
expect(scope.counter).toEqual(0);
scope.$watch('name', function(newValue, oldValue) { scope.counter = scope.counter + 1; });
expect(scope.counter).toEqual(0);
scope.$digest();
// no variable change
expect(scope.counter).toEqual(0);
scope.name = 'adam';
scope.$digest();
expect(scope.counter).toEqual(1);
* </pre>
*
*
*
* @param {(function()|string)} watchExpression Expression that is evaluated on each
* {@link ng.$rootScope.Scope#$digest $digest} cycle. A change in the return value triggers a
* call to the `listener`.
*
* - `string`: Evaluated as {@link guide/expression expression}
* - `function(scope)`: called with current `scope` as a parameter.
* @param {(function()|string)=} listener Callback called whenever the return value of
* the `watchExpression` changes.
*
* - `string`: Evaluated as {@link guide/expression expression}
* - `function(newValue, oldValue, scope)`: called with current and previous values as parameters.
*
* @param {boolean=} objectEquality Compare object for equality rather than for reference.
* @returns {function()} Returns a deregistration function for this listener.
*/
$watch: function(watchExp, listener, objectEquality) {
var scope = this,
get = compileToFn(watchExp, 'watch'),
array = scope.$$watchers,
watcher = {
fn: listener,
last: initWatchVal,
get: get,
exp: watchExp,
eq: !!objectEquality
};
// in the case user pass string, we need to compile it, do we really need this ?
if (!isFunction(listener)) {
var listenFn = compileToFn(listener || noop, 'listener');
watcher.fn = function(newVal, oldVal, scope) {listenFn(scope);};
}
if (typeof watchExp == 'string' && get.constant) {
var originalFn = watcher.fn;
watcher.fn = function(newVal, oldVal, scope) {
originalFn.call(this, newVal, oldVal, scope);
arrayRemove(array, watcher);
};
}
if (!array) {
array = scope.$$watchers = [];
}
// we use unshift since we use a while loop in $digest for speed.
// the while loop reads in reverse order.
array.unshift(watcher);
return function() {
arrayRemove(array, watcher);
};
},
/**
* @ngdoc function
* @name ng.$rootScope.Scope#$watchCollection
* @methodOf ng.$rootScope.Scope
* @function
*
* @description
* Shallow watches the properties of an object and fires whenever any of the properties change
* (for arrays this implies watching the array items, for object maps this implies watching the properties).
* If a change is detected the `listener` callback is fired.
*
* - The `obj` collection is observed via standard $watch operation and is examined on every call to $digest() to
* see if any items have been added, removed, or moved.
* - The `listener` is called whenever anything within the `obj` has changed. Examples include adding new items
* into the object or array, removing and moving items around.
*
*
* # Example
* <pre>
$scope.names = ['igor', 'matias', 'misko', 'james'];
$scope.dataCount = 4;
$scope.$watchCollection('names', function(newNames, oldNames) {
$scope.dataCount = newNames.length;
});
expect($scope.dataCount).toEqual(4);
$scope.$digest();
//still at 4 ... no changes
expect($scope.dataCount).toEqual(4);
$scope.names.pop();
$scope.$digest();
//now there's been a change
expect($scope.dataCount).toEqual(3);
* </pre>
*
*
* @param {string|Function(scope)} obj Evaluated as {@link guide/expression expression}. The expression value
* should evaluate to an object or an array which is observed on each
* {@link ng.$rootScope.Scope#$digest $digest} cycle. Any shallow change within the collection will trigger
* a call to the `listener`.
*
* @param {function(newCollection, oldCollection, scope)} listener a callback function that is fired with both
* the `newCollection` and `oldCollection` as parameters.
* The `newCollection` object is the newly modified data obtained from the `obj` expression and the
* `oldCollection` object is a copy of the former collection data.
* The `scope` refers to the current scope.
*
* @returns {function()} Returns a de-registration function for this listener. When the de-registration function is executed
* then the internal watch operation is terminated.
*/
$watchCollection: function(obj, listener) {
var self = this;
var oldValue;
var newValue;
var changeDetected = 0;
var objGetter = $parse(obj);
var internalArray = [];
var internalObject = {};
var oldLength = 0;
function $watchCollectionWatch() {
newValue = objGetter(self);
var newLength, key;
if (!isObject(newValue)) {
if (oldValue !== newValue) {
oldValue = newValue;
changeDetected++;
}
} else if (isArrayLike(newValue)) {
if (oldValue !== internalArray) {
// we are transitioning from something which was not an array into array.
oldValue = internalArray;
oldLength = oldValue.length = 0;
changeDetected++;
}
newLength = newValue.length;
if (oldLength !== newLength) {
// if lengths do not match we need to trigger change notification
changeDetected++;
oldValue.length = oldLength = newLength;
}
// copy the items to oldValue and look for changes.
for (var i = 0; i < newLength; i++) {
if (oldValue[i] !== newValue[i]) {
changeDetected++;
oldValue[i] = newValue[i];
}
}
} else {
if (oldValue !== internalObject) {
// we are transitioning from something which was not an object into object.
oldValue = internalObject = {};
oldLength = 0;
changeDetected++;
}
// copy the items to oldValue and look for changes.
newLength = 0;
for (key in newValue) {
if (newValue.hasOwnProperty(key)) {
newLength++;
if (oldValue.hasOwnProperty(key)) {
if (oldValue[key] !== newValue[key]) {
changeDetected++;
oldValue[key] = newValue[key];
}
} else {
oldLength++;
oldValue[key] = newValue[key];
changeDetected++;
}
}
}
if (oldLength > newLength) {
// we used to have more keys, need to find them and destroy them.
changeDetected++;
for(key in oldValue) {
if (oldValue.hasOwnProperty(key) && !newValue.hasOwnProperty(key)) {
oldLength--;
delete oldValue[key];
}
}
}
}
return changeDetected;
}
function $watchCollectionAction() {
listener(newValue, oldValue, self);
}
return this.$watch($watchCollectionWatch, $watchCollectionAction);
},
/**
* @ngdoc function
* @name ng.$rootScope.Scope#$digest
* @methodOf ng.$rootScope.Scope
* @function
*
* @description
* Processes all of the {@link ng.$rootScope.Scope#$watch watchers} of the current scope and its children.
* Because a {@link ng.$rootScope.Scope#$watch watcher}'s listener can change the model, the
* `$digest()` keeps calling the {@link ng.$rootScope.Scope#$watch watchers} until no more listeners are
* firing. This means that it is possible to get into an infinite loop. This function will throw
* `'Maximum iteration limit exceeded.'` if the number of iterations exceeds 10.
*
* Usually you don't call `$digest()` directly in
* {@link ng.directive:ngController controllers} or in
* {@link ng.$compileProvider#directive directives}.
* Instead a call to {@link ng.$rootScope.Scope#$apply $apply()} (typically from within a
* {@link ng.$compileProvider#directive directives}) will force a `$digest()`.
*
* If you want to be notified whenever `$digest()` is called,
* you can register a `watchExpression` function with {@link ng.$rootScope.Scope#$watch $watch()}
* with no `listener`.
*
* You may have a need to call `$digest()` from within unit-tests, to simulate the scope
* life-cycle.
*
* # Example
* <pre>
var scope = ...;
scope.name = 'misko';
scope.counter = 0;
expect(scope.counter).toEqual(0);
scope.$watch('name', function(newValue, oldValue) {
scope.counter = scope.counter + 1;
});
expect(scope.counter).toEqual(0);
scope.$digest();
// no variable change
expect(scope.counter).toEqual(0);
scope.name = 'adam';
scope.$digest();
expect(scope.counter).toEqual(1);
* </pre>
*
*/
$digest: function() {
var watch, value, last,
watchers,
asyncQueue = this.$$asyncQueue,
length,
dirty, ttl = TTL,
next, current, target = this,
watchLog = [],
logIdx, logMsg;
beginPhase('$digest');
do { // "while dirty" loop
dirty = false;
current = target;
while(asyncQueue.length) {
try {
current.$eval(asyncQueue.shift());
} catch (e) {
$exceptionHandler(e);
}
}
do { // "traverse the scopes" loop
if ((watchers = current.$$watchers)) {
// process our watches
length = watchers.length;
while (length--) {
try {
watch = watchers[length];
// Most common watches are on primitives, in which case we can short
// circuit it with === operator, only when === fails do we use .equals
if ((value = watch.get(current)) !== (last = watch.last) &&
!(watch.eq
? equals(value, last)
: (typeof value == 'number' && typeof last == 'number'
&& isNaN(value) && isNaN(last)))) {
dirty = true;
watch.last = watch.eq ? copy(value) : value;
watch.fn(value, ((last === initWatchVal) ? value : last), current);
if (ttl < 5) {
logIdx = 4 - ttl;
if (!watchLog[logIdx]) watchLog[logIdx] = [];
logMsg = (isFunction(watch.exp))
? 'fn: ' + (watch.exp.name || watch.exp.toString())
: watch.exp;
logMsg += '; newVal: ' + toJson(value) + '; oldVal: ' + toJson(last);
watchLog[logIdx].push(logMsg);
}
}
} catch (e) {
$exceptionHandler(e);
}
}
}
// Insanity Warning: scope depth-first traversal
// yes, this code is a bit crazy, but it works and we have tests to prove it!
// this piece should be kept in sync with the traversal in $broadcast
if (!(next = (current.$$childHead || (current !== target && current.$$nextSibling)))) {
while(current !== target && !(next = current.$$nextSibling)) {
current = current.$parent;
}
}
} while ((current = next));
if(dirty && !(ttl--)) {
clearPhase();
throw Error(TTL + ' $digest() iterations reached. Aborting!\n' +
'Watchers fired in the last 5 iterations: ' + toJson(watchLog));
}
} while (dirty || asyncQueue.length);
clearPhase();
},
/**
* @ngdoc event
* @name ng.$rootScope.Scope#$destroy
* @eventOf ng.$rootScope.Scope
* @eventType broadcast on scope being destroyed
*
* @description
* Broadcasted when a scope and its children are being destroyed.
*/
/**
* @ngdoc function
* @name ng.$rootScope.Scope#$destroy
* @methodOf ng.$rootScope.Scope
* @function
*
* @description
* Removes the current scope (and all of its children) from the parent scope. Removal implies
* that calls to {@link ng.$rootScope.Scope#$digest $digest()} will no longer
* propagate to the current scope and its children. Removal also implies that the current
* scope is eligible for garbage collection.
*
* The `$destroy()` is usually used by directives such as
* {@link ng.directive:ngRepeat ngRepeat} for managing the
* unrolling of the loop.
*
* Just before a scope is destroyed a `$destroy` event is broadcasted on this scope.
* Application code can register a `$destroy` event handler that will give it chance to
* perform any necessary cleanup.
*/
$destroy: function() {
// we can't destroy the root scope or a scope that has been already destroyed
if ($rootScope == this || this.$$destroyed) return;
var parent = this.$parent;
this.$broadcast('$destroy');
this.$$destroyed = true;
if (parent.$$childHead == this) parent.$$childHead = this.$$nextSibling;
if (parent.$$childTail == this) parent.$$childTail = this.$$prevSibling;
if (this.$$prevSibling) this.$$prevSibling.$$nextSibling = this.$$nextSibling;
if (this.$$nextSibling) this.$$nextSibling.$$prevSibling = this.$$prevSibling;
// This is bogus code that works around Chrome's GC leak
// see: https://github.com/angular/angular.js/issues/1313#issuecomment-10378451
this.$parent = this.$$nextSibling = this.$$prevSibling = this.$$childHead =
this.$$childTail = null;
},
/**
* @ngdoc function
* @name ng.$rootScope.Scope#$eval
* @methodOf ng.$rootScope.Scope
* @function
*
* @description
* Executes the `expression` on the current scope returning the result. Any exceptions in the
* expression are propagated (uncaught). This is useful when evaluating Angular expressions.
*
* # Example
* <pre>
var scope = ng.$rootScope.Scope();
scope.a = 1;
scope.b = 2;
expect(scope.$eval('a+b')).toEqual(3);
expect(scope.$eval(function(scope){ return scope.a + scope.b; })).toEqual(3);
* </pre>
*
* @param {(string|function())=} expression An angular expression to be executed.
*
* - `string`: execute using the rules as defined in {@link guide/expression expression}.
* - `function(scope)`: execute the function with the current `scope` parameter.
*
* @returns {*} The result of evaluating the expression.
*/
$eval: function(expr, locals) {
return $parse(expr)(this, locals);
},
/**
* @ngdoc function
* @name ng.$rootScope.Scope#$evalAsync
* @methodOf ng.$rootScope.Scope
* @function
*
* @description
* Executes the expression on the current scope at a later point in time.
*
* The `$evalAsync` makes no guarantees as to when the `expression` will be executed, only that:
*
* - it will execute in the current script execution context (before any DOM rendering).
* - at least one {@link ng.$rootScope.Scope#$digest $digest cycle} will be performed after
* `expression` execution.
*
* Any exceptions from the execution of the expression are forwarded to the
* {@link ng.$exceptionHandler $exceptionHandler} service.
*
* @param {(string|function())=} expression An angular expression to be executed.
*
* - `string`: execute using the rules as defined in {@link guide/expression expression}.
* - `function(scope)`: execute the function with the current `scope` parameter.
*
*/
$evalAsync: function(expr) {
this.$$asyncQueue.push(expr);
},
/**
* @ngdoc function
* @name ng.$rootScope.Scope#$apply
* @methodOf ng.$rootScope.Scope
* @function
*
* @description
* `$apply()` is used to execute an expression in angular from outside of the angular framework.
* (For example from browser DOM events, setTimeout, XHR or third party libraries).
* Because we are calling into the angular framework we need to perform proper scope life-cycle
* of {@link ng.$exceptionHandler exception handling},
* {@link ng.$rootScope.Scope#$digest executing watches}.
*
* ## Life cycle
*
* # Pseudo-Code of `$apply()`
* <pre>
function $apply(expr) {
try {
return $eval(expr);
} catch (e) {
$exceptionHandler(e);
} finally {
$root.$digest();
}
}
* </pre>
*
*
* Scope's `$apply()` method transitions through the following stages:
*
* 1. The {@link guide/expression expression} is executed using the
* {@link ng.$rootScope.Scope#$eval $eval()} method.
* 2. Any exceptions from the execution of the expression are forwarded to the
* {@link ng.$exceptionHandler $exceptionHandler} service.
* 3. The {@link ng.$rootScope.Scope#$watch watch} listeners are fired immediately after the expression
* was executed using the {@link ng.$rootScope.Scope#$digest $digest()} method.
*
*
* @param {(string|function())=} exp An angular expression to be executed.
*
* - `string`: execute using the rules as defined in {@link guide/expression expression}.
* - `function(scope)`: execute the function with current `scope` parameter.
*
* @returns {*} The result of evaluating the expression.
*/
$apply: function(expr) {
try {
beginPhase('$apply');
return this.$eval(expr);
} catch (e) {
$exceptionHandler(e);
} finally {
clearPhase();
try {
$rootScope.$digest();
} catch (e) {
$exceptionHandler(e);
throw e;
}
}
},
/**
* @ngdoc function
* @name ng.$rootScope.Scope#$on
* @methodOf ng.$rootScope.Scope
* @function
*
* @description
* Listens on events of a given type. See {@link ng.$rootScope.Scope#$emit $emit} for discussion of
* event life cycle.
*
* The event listener function format is: `function(event, args...)`. The `event` object
* passed into the listener has the following attributes:
*
* - `targetScope` - `{Scope}`: the scope on which the event was `$emit`-ed or `$broadcast`-ed.
* - `currentScope` - `{Scope}`: the current scope which is handling the event.
* - `name` - `{string}`: Name of the event.
* - `stopPropagation` - `{function=}`: calling `stopPropagation` function will cancel further event
* propagation (available only for events that were `$emit`-ed).
* - `preventDefault` - `{function}`: calling `preventDefault` sets `defaultPrevented` flag to true.
* - `defaultPrevented` - `{boolean}`: true if `preventDefault` was called.
*
* @param {string} name Event name to listen on.
* @param {function(event, args...)} listener Function to call when the event is emitted.
* @returns {function()} Returns a deregistration function for this listener.
*/
$on: function(name, listener) {
var namedListeners = this.$$listeners[name];
if (!namedListeners) {
this.$$listeners[name] = namedListeners = [];
}
namedListeners.push(listener);
return function() {
namedListeners[indexOf(namedListeners, listener)] = null;
};
},
/**
* @ngdoc function
* @name ng.$rootScope.Scope#$emit
* @methodOf ng.$rootScope.Scope
* @function
*
* @description
* Dispatches an event `name` upwards through the scope hierarchy notifying the
* registered {@link ng.$rootScope.Scope#$on} listeners.
*
* The event life cycle starts at the scope on which `$emit` was called. All
* {@link ng.$rootScope.Scope#$on listeners} listening for `name` event on this scope get notified.
* Afterwards, the event traverses upwards toward the root scope and calls all registered
* listeners along the way. The event will stop propagating if one of the listeners cancels it.
*
* Any exception emitted from the {@link ng.$rootScope.Scope#$on listeners} will be passed
* onto the {@link ng.$exceptionHandler $exceptionHandler} service.
*
* @param {string} name Event name to emit.
* @param {...*} args Optional set of arguments which will be passed onto the event listeners.
* @return {Object} Event object, see {@link ng.$rootScope.Scope#$on}
*/
$emit: function(name, args) {
var empty = [],
namedListeners,
scope = this,
stopPropagation = false,
event = {
name: name,
targetScope: scope,
stopPropagation: function() {stopPropagation = true;},
preventDefault: function() {
event.defaultPrevented = true;
},
defaultPrevented: false
},
listenerArgs = concat([event], arguments, 1),
i, length;
do {
namedListeners = scope.$$listeners[name] || empty;
event.currentScope = scope;
for (i=0, length=namedListeners.length; i<length; i++) {
// if listeners were deregistered, defragment the array
if (!namedListeners[i]) {
namedListeners.splice(i, 1);
i--;
length--;
continue;
}
try {
namedListeners[i].apply(null, listenerArgs);
if (stopPropagation) return event;
} catch (e) {
$exceptionHandler(e);
}
}
//traverse upwards
scope = scope.$parent;
} while (scope);
return event;
},
/**
* @ngdoc function
* @name ng.$rootScope.Scope#$broadcast
* @methodOf ng.$rootScope.Scope
* @function
*
* @description
* Dispatches an event `name` downwards to all child scopes (and their children) notifying the
* registered {@link ng.$rootScope.Scope#$on} listeners.
*
* The event life cycle starts at the scope on which `$broadcast` was called. All
* {@link ng.$rootScope.Scope#$on listeners} listening for `name` event on this scope get notified.
* Afterwards, the event propagates to all direct and indirect scopes of the current scope and
* calls all registered listeners along the way. The event cannot be canceled.
*
* Any exception emitted from the {@link ng.$rootScope.Scope#$on listeners} will be passed
* onto the {@link ng.$exceptionHandler $exceptionHandler} service.
*
* @param {string} name Event name to broadcast.
* @param {...*} args Optional set of arguments which will be passed onto the event listeners.
* @return {Object} Event object, see {@link ng.$rootScope.Scope#$on}
*/
$broadcast: function(name, args) {
var target = this,
current = target,
next = target,
event = {
name: name,
targetScope: target,
preventDefault: function() {
event.defaultPrevented = true;
},
defaultPrevented: false
},
listenerArgs = concat([event], arguments, 1),
listeners, i, length;
//down while you can, then up and next sibling or up and next sibling until back at root
do {
current = next;
event.currentScope = current;
listeners = current.$$listeners[name] || [];
for (i=0, length = listeners.length; i<length; i++) {
// if listeners were deregistered, defragment the array
if (!listeners[i]) {
listeners.splice(i, 1);
i--;
length--;
continue;
}
try {
listeners[i].apply(null, listenerArgs);
} catch(e) {
$exceptionHandler(e);
}
}
// Insanity Warning: scope depth-first traversal
// yes, this code is a bit crazy, but it works and we have tests to prove it!
// this piece should be kept in sync with the traversal in $digest
if (!(next = (current.$$childHead || (current !== target && current.$$nextSibling)))) {
while(current !== target && !(next = current.$$nextSibling)) {
current = current.$parent;
}
}
} while ((current = next));
return event;
}
};
var $rootScope = new Scope();
return $rootScope;
function beginPhase(phase) {
if ($rootScope.$$phase) {
throw Error($rootScope.$$phase + ' already in progress');
}
$rootScope.$$phase = phase;
}
function clearPhase() {
$rootScope.$$phase = null;
}
function compileToFn(exp, name) {
var fn = $parse(exp);
assertArgFn(fn, name);
return fn;
}
/**
* function used as an initial value for watchers.
* because it's unique we can easily tell it apart from other values
*/
function initWatchVal() {}
}];
}
/**
* !!! This is an undocumented "private" service !!!
*
* @name ng.$sniffer
* @requires $window
* @requires $document
*
* @property {boolean} history Does the browser support html5 history api ?
* @property {boolean} hashchange Does the browser support hashchange event ?
* @property {boolean} transitions Does the browser support CSS transition events ?
* @property {boolean} animations Does the browser support CSS animation events ?
*
* @description
* This is very simple implementation of testing browser's features.
*/
function $SnifferProvider() {
this.$get = ['$window', '$document', function($window, $document) {
var eventSupport = {},
android = int((/android (\d+)/.exec(lowercase(($window.navigator || {}).userAgent)) || [])[1]),
document = $document[0] || {},
vendorPrefix,
vendorRegex = /^(Moz|webkit|O|ms)(?=[A-Z])/,
bodyStyle = document.body && document.body.style,
transitions = false,
animations = false,
match;
if (bodyStyle) {
for(var prop in bodyStyle) {
if(match = vendorRegex.exec(prop)) {
vendorPrefix = match[0];
vendorPrefix = vendorPrefix.substr(0, 1).toUpperCase() + vendorPrefix.substr(1);
break;
}
}
transitions = !!(('transition' in bodyStyle) || (vendorPrefix + 'Transition' in bodyStyle));
animations = !!(('animation' in bodyStyle) || (vendorPrefix + 'Animation' in bodyStyle));
}
return {
// Android has history.pushState, but it does not update location correctly
// so let's not use the history API at all.
// http://code.google.com/p/android/issues/detail?id=17471
// https://github.com/angular/angular.js/issues/904
history: !!($window.history && $window.history.pushState && !(android < 4)),
hashchange: 'onhashchange' in $window &&
// IE8 compatible mode lies
(!document.documentMode || document.documentMode > 7),
hasEvent: function(event) {
// IE9 implements 'input' event it's so fubared that we rather pretend that it doesn't have
// it. In particular the event is not fired when backspace or delete key are pressed or
// when cut operation is performed.
if (event == 'input' && msie == 9) return false;
if (isUndefined(eventSupport[event])) {
var divElm = document.createElement('div');
eventSupport[event] = 'on' + event in divElm;
}
return eventSupport[event];
},
csp: document.securityPolicy ? document.securityPolicy.isActive : false,
vendorPrefix: vendorPrefix,
transitions : transitions,
animations : animations
};
}];
}
/**
* @ngdoc object
* @name ng.$window
*
* @description
* A reference to the browser's `window` object. While `window`
* is globally available in JavaScript, it causes testability problems, because
* it is a global variable. In angular we always refer to it through the
* `$window` service, so it may be overridden, removed or mocked for testing.
*
* All expressions are evaluated with respect to current scope so they don't
* suffer from window globality.
*
* @example
<doc:example>
<doc:source>
<script>
function Ctrl($scope, $window) {
$scope.$window = $window;
$scope.greeting = 'Hello, World!';
}
</script>
<div ng-controller="Ctrl">
<input type="text" ng-model="greeting" />
<button ng-click="$window.alert(greeting)">ALERT</button>
</div>
</doc:source>
<doc:scenario>
it('should display the greeting in the input box', function() {
input('greeting').enter('Hello, E2E Tests');
// If we click the button it will block the test runner
// element(':button').click();
});
</doc:scenario>
</doc:example>
*/
function $WindowProvider(){
this.$get = valueFn(window);
}
/**
* Parse headers into key value object
*
* @param {string} headers Raw headers as a string
* @returns {Object} Parsed headers as key value object
*/
function parseHeaders(headers) {
var parsed = {}, key, val, i;
if (!headers) return parsed;
forEach(headers.split('\n'), function(line) {
i = line.indexOf(':');
key = lowercase(trim(line.substr(0, i)));
val = trim(line.substr(i + 1));
if (key) {
if (parsed[key]) {
parsed[key] += ', ' + val;
} else {
parsed[key] = val;
}
}
});
return parsed;
}
var IS_SAME_DOMAIN_URL_MATCH = /^(([^:]+):)?\/\/(\w+:{0,1}\w*@)?([\w\.-]*)?(:([0-9]+))?(.*)$/;
/**
* Parse a request and location URL and determine whether this is a same-domain request.
*
* @param {string} requestUrl The url of the request.
* @param {string} locationUrl The current browser location url.
* @returns {boolean} Whether the request is for the same domain.
*/
function isSameDomain(requestUrl, locationUrl) {
var match = IS_SAME_DOMAIN_URL_MATCH.exec(requestUrl);
// if requestUrl is relative, the regex does not match.
if (match == null) return true;
var domain1 = {
protocol: match[2],
host: match[4],
port: int(match[6]) || DEFAULT_PORTS[match[2]] || null,
// IE8 sets unmatched groups to '' instead of undefined.
relativeProtocol: match[2] === undefined || match[2] === ''
};
match = SERVER_MATCH.exec(locationUrl);
var domain2 = {
protocol: match[1],
host: match[3],
port: int(match[5]) || DEFAULT_PORTS[match[1]] || null
};
return (domain1.protocol == domain2.protocol || domain1.relativeProtocol) &&
domain1.host == domain2.host &&
(domain1.port == domain2.port || (domain1.relativeProtocol &&
domain2.port == DEFAULT_PORTS[domain2.protocol]));
}
/**
* Returns a function that provides access to parsed headers.
*
* Headers are lazy parsed when first requested.
* @see parseHeaders
*
* @param {(string|Object)} headers Headers to provide access to.
* @returns {function(string=)} Returns a getter function which if called with:
*
* - if called with single an argument returns a single header value or null
* - if called with no arguments returns an object containing all headers.
*/
function headersGetter(headers) {
var headersObj = isObject(headers) ? headers : undefined;
return function(name) {
if (!headersObj) headersObj = parseHeaders(headers);
if (name) {
return headersObj[lowercase(name)] || null;
}
return headersObj;
};
}
/**
* Chain all given functions
*
* This function is used for both request and response transforming
*
* @param {*} data Data to transform.
* @param {function(string=)} headers Http headers getter fn.
* @param {(function|Array.<function>)} fns Function or an array of functions.
* @returns {*} Transformed data.
*/
function transformData(data, headers, fns) {
if (isFunction(fns))
return fns(data, headers);
forEach(fns, function(fn) {
data = fn(data, headers);
});
return data;
}
function isSuccess(status) {
return 200 <= status && status < 300;
}
function $HttpProvider() {
var JSON_START = /^\s*(\[|\{[^\{])/,
JSON_END = /[\}\]]\s*$/,
PROTECTION_PREFIX = /^\)\]\}',?\n/,
CONTENT_TYPE_APPLICATION_JSON = {'Content-Type': 'application/json;charset=utf-8'};
var defaults = this.defaults = {
// transform incoming response data
transformResponse: [function(data) {
if (isString(data)) {
// strip json vulnerability protection prefix
data = data.replace(PROTECTION_PREFIX, '');
if (JSON_START.test(data) && JSON_END.test(data))
data = fromJson(data, true);
}
return data;
}],
// transform outgoing request data
transformRequest: [function(d) {
return isObject(d) && !isFile(d) ? toJson(d) : d;
}],
// default headers
headers: {
common: {
'Accept': 'application/json, text/plain, */*'
},
post: CONTENT_TYPE_APPLICATION_JSON,
put: CONTENT_TYPE_APPLICATION_JSON,
patch: CONTENT_TYPE_APPLICATION_JSON
},
xsrfCookieName: 'XSRF-TOKEN',
xsrfHeaderName: 'X-XSRF-TOKEN'
};
/**
* Are order by request. I.E. they are applied in the same order as
* array on request, but revers order on response.
*/
var interceptorFactories = this.interceptors = [];
/**
* For historical reasons, response interceptors ordered by the order in which
* they are applied to response. (This is in revers to interceptorFactories)
*/
var responseInterceptorFactories = this.responseInterceptors = [];
this.$get = ['$httpBackend', '$browser', '$cacheFactory', '$rootScope', '$q', '$injector',
function($httpBackend, $browser, $cacheFactory, $rootScope, $q, $injector) {
var defaultCache = $cacheFactory('$http');
/**
* Interceptors stored in reverse order. Inner interceptors before outer interceptors.
* The reversal is needed so that we can build up the interception chain around the
* server request.
*/
var reversedInterceptors = [];
forEach(interceptorFactories, function(interceptorFactory) {
reversedInterceptors.unshift(isString(interceptorFactory)
? $injector.get(interceptorFactory) : $injector.invoke(interceptorFactory));
});
forEach(responseInterceptorFactories, function(interceptorFactory, index) {
var responseFn = isString(interceptorFactory)
? $injector.get(interceptorFactory)
: $injector.invoke(interceptorFactory);
/**
* Response interceptors go before "around" interceptors (no real reason, just
* had to pick one.) But they are already revesed, so we can't use unshift, hence
* the splice.
*/
reversedInterceptors.splice(index, 0, {
response: function(response) {
return responseFn($q.when(response));
},
responseError: function(response) {
return responseFn($q.reject(response));
}
});
});
/**
* @ngdoc function
* @name ng.$http
* @requires $httpBackend
* @requires $browser
* @requires $cacheFactory
* @requires $rootScope
* @requires $q
* @requires $injector
*
* @description
* The `$http` service is a core Angular service that facilitates communication with the remote
* HTTP servers via the browser's {@link https://developer.mozilla.org/en/xmlhttprequest
* XMLHttpRequest} object or via {@link http://en.wikipedia.org/wiki/JSONP JSONP}.
*
* For unit testing applications that use `$http` service, see
* {@link ngMock.$httpBackend $httpBackend mock}.
*
* For a higher level of abstraction, please check out the {@link ngResource.$resource
* $resource} service.
*
* The $http API is based on the {@link ng.$q deferred/promise APIs} exposed by
* the $q service. While for simple usage patterns this doesn't matter much, for advanced usage
* it is important to familiarize yourself with these APIs and the guarantees they provide.
*
*
* # General usage
* The `$http` service is a function which takes a single argument — a configuration object —
* that is used to generate an HTTP request and returns a {@link ng.$q promise}
* with two $http specific methods: `success` and `error`.
*
* <pre>
* $http({method: 'GET', url: '/someUrl'}).
* success(function(data, status, headers, config) {
* // this callback will be called asynchronously
* // when the response is available
* }).
* error(function(data, status, headers, config) {
* // called asynchronously if an error occurs
* // or server returns response with an error status.
* });
* </pre>
*
* Since the returned value of calling the $http function is a `promise`, you can also use
* the `then` method to register callbacks, and these callbacks will receive a single argument –
* an object representing the response. See the API signature and type info below for more
* details.
*
* A response status code between 200 and 299 is considered a success status and
* will result in the success callback being called. Note that if the response is a redirect,
* XMLHttpRequest will transparently follow it, meaning that the error callback will not be
* called for such responses.
*
* # Shortcut methods
*
* Since all invocations of the $http service require passing in an HTTP method and URL, and
* POST/PUT requests require request data to be provided as well, shortcut methods
* were created:
*
* <pre>
* $http.get('/someUrl').success(successCallback);
* $http.post('/someUrl', data).success(successCallback);
* </pre>
*
* Complete list of shortcut methods:
*
* - {@link ng.$http#get $http.get}
* - {@link ng.$http#head $http.head}
* - {@link ng.$http#post $http.post}
* - {@link ng.$http#put $http.put}
* - {@link ng.$http#delete $http.delete}
* - {@link ng.$http#jsonp $http.jsonp}
*
*
* # Setting HTTP Headers
*
* The $http service will automatically add certain HTTP headers to all requests. These defaults
* can be fully configured by accessing the `$httpProvider.defaults.headers` configuration
* object, which currently contains this default configuration:
*
* - `$httpProvider.defaults.headers.common` (headers that are common for all requests):
* - `Accept: application/json, text/plain, * / *`
* - `$httpProvider.defaults.headers.post`: (header defaults for POST requests)
* - `Content-Type: application/json`
* - `$httpProvider.defaults.headers.put` (header defaults for PUT requests)
* - `Content-Type: application/json`
*
* To add or overwrite these defaults, simply add or remove a property from these configuration
* objects. To add headers for an HTTP method other than POST or PUT, simply add a new object
* with the lowercased HTTP method name as the key, e.g.
* `$httpProvider.defaults.headers.get['My-Header']='value'`.
*
* Additionally, the defaults can be set at runtime via the `$http.defaults` object in the same
* fashion.
*
*
* # Transforming Requests and Responses
*
* Both requests and responses can be transformed using transform functions. By default, Angular
* applies these transformations:
*
* Request transformations:
*
* - If the `data` property of the request configuration object contains an object, serialize it into
* JSON format.
*
* Response transformations:
*
* - If XSRF prefix is detected, strip it (see Security Considerations section below).
* - If JSON response is detected, deserialize it using a JSON parser.
*
* To globally augment or override the default transforms, modify the `$httpProvider.defaults.transformRequest` and
* `$httpProvider.defaults.transformResponse` properties. These properties are by default an
* array of transform functions, which allows you to `push` or `unshift` a new transformation function into the
* transformation chain. You can also decide to completely override any default transformations by assigning your
* transformation functions to these properties directly without the array wrapper.
*
* Similarly, to locally override the request/response transforms, augment the `transformRequest` and/or
* `transformResponse` properties of the configuration object passed into `$http`.
*
*
* # Caching
*
* To enable caching, set the configuration property `cache` to `true`. When the cache is
* enabled, `$http` stores the response from the server in local cache. Next time the
* response is served from the cache without sending a request to the server.
*
* Note that even if the response is served from cache, delivery of the data is asynchronous in
* the same way that real requests are.
*
* If there are multiple GET requests for the same URL that should be cached using the same
* cache, but the cache is not populated yet, only one request to the server will be made and
* the remaining requests will be fulfilled using the response from the first request.
*
* A custom default cache built with $cacheFactory can be provided in $http.defaults.cache.
* To skip it, set configuration property `cache` to `false`.
*
*
* # Interceptors
*
* Before you start creating interceptors, be sure to understand the
* {@link ng.$q $q and deferred/promise APIs}.
*
* For purposes of global error handling, authentication, or any kind of synchronous or
* asynchronous pre-processing of request or postprocessing of responses, it is desirable to be
* able to intercept requests before they are handed to the server and
* responses before they are handed over to the application code that
* initiated these requests. The interceptors leverage the {@link ng.$q
* promise APIs} to fulfill this need for both synchronous and asynchronous pre-processing.
*
* The interceptors are service factories that are registered with the `$httpProvider` by
* adding them to the `$httpProvider.interceptors` array. The factory is called and
* injected with dependencies (if specified) and returns the interceptor.
*
* There are two kinds of interceptors (and two kinds of rejection interceptors):
*
* * `request`: interceptors get called with http `config` object. The function is free to modify
* the `config` or create a new one. The function needs to return the `config` directly or as a
* promise.
* * `requestError`: interceptor gets called when a previous interceptor threw an error or resolved
* with a rejection.
* * `response`: interceptors get called with http `response` object. The function is free to modify
* the `response` or create a new one. The function needs to return the `response` directly or as a
* promise.
* * `responseError`: interceptor gets called when a previous interceptor threw an error or resolved
* with a rejection.
*
*
* <pre>
* // register the interceptor as a service
* $provide.factory('myHttpInterceptor', function($q, dependency1, dependency2) {
* return {
* // optional method
* 'request': function(config) {
* // do something on success
* return config || $q.when(config);
* },
*
* // optional method
* 'requestError': function(rejection) {
* // do something on error
* if (canRecover(rejection)) {
* return responseOrNewPromise
* }
* return $q.reject(rejection);
* },
*
*
*
* // optional method
* 'response': function(response) {
* // do something on success
* return response || $q.when(response);
* },
*
* // optional method
* 'responseError': function(rejection) {
* // do something on error
* if (canRecover(rejection)) {
* return responseOrNewPromise
* }
* return $q.reject(rejection);
* };
* }
* });
*
* $httpProvider.interceptors.push('myHttpInterceptor');
*
*
* // register the interceptor via an anonymous factory
* $httpProvider.interceptors.push(function($q, dependency1, dependency2) {
* return {
* 'request': function(config) {
* // same as above
* },
* 'response': function(response) {
* // same as above
* }
* });
* </pre>
*
* # Response interceptors (DEPRECATED)
*
* Before you start creating interceptors, be sure to understand the
* {@link ng.$q $q and deferred/promise APIs}.
*
* For purposes of global error handling, authentication or any kind of synchronous or
* asynchronous preprocessing of received responses, it is desirable to be able to intercept
* responses for http requests before they are handed over to the application code that
* initiated these requests. The response interceptors leverage the {@link ng.$q
* promise apis} to fulfil this need for both synchronous and asynchronous preprocessing.
*
* The interceptors are service factories that are registered with the $httpProvider by
* adding them to the `$httpProvider.responseInterceptors` array. The factory is called and
* injected with dependencies (if specified) and returns the interceptor — a function that
* takes a {@link ng.$q promise} and returns the original or a new promise.
*
* <pre>
* // register the interceptor as a service
* $provide.factory('myHttpInterceptor', function($q, dependency1, dependency2) {
* return function(promise) {
* return promise.then(function(response) {
* // do something on success
* }, function(response) {
* // do something on error
* if (canRecover(response)) {
* return responseOrNewPromise
* }
* return $q.reject(response);
* });
* }
* });
*
* $httpProvider.responseInterceptors.push('myHttpInterceptor');
*
*
* // register the interceptor via an anonymous factory
* $httpProvider.responseInterceptors.push(function($q, dependency1, dependency2) {
* return function(promise) {
* // same as above
* }
* });
* </pre>
*
*
* # Security Considerations
*
* When designing web applications, consider security threats from:
*
* - {@link http://haacked.com/archive/2008/11/20/anatomy-of-a-subtle-json-vulnerability.aspx
* JSON vulnerability}
* - {@link http://en.wikipedia.org/wiki/Cross-site_request_forgery XSRF}
*
* Both server and the client must cooperate in order to eliminate these threats. Angular comes
* pre-configured with strategies that address these issues, but for this to work backend server
* cooperation is required.
*
* ## JSON Vulnerability Protection
*
* A {@link http://haacked.com/archive/2008/11/20/anatomy-of-a-subtle-json-vulnerability.aspx
* JSON vulnerability} allows third party website to turn your JSON resource URL into
* {@link http://en.wikipedia.org/wiki/JSONP JSONP} request under some conditions. To
* counter this your server can prefix all JSON requests with following string `")]}',\n"`.
* Angular will automatically strip the prefix before processing it as JSON.
*
* For example if your server needs to return:
* <pre>
* ['one','two']
* </pre>
*
* which is vulnerable to attack, your server can return:
* <pre>
* )]}',
* ['one','two']
* </pre>
*
* Angular will strip the prefix, before processing the JSON.
*
*
* ## Cross Site Request Forgery (XSRF) Protection
*
* {@link http://en.wikipedia.org/wiki/Cross-site_request_forgery XSRF} is a technique by which
* an unauthorized site can gain your user's private data. Angular provides a mechanism
* to counter XSRF. When performing XHR requests, the $http service reads a token from a cookie
* (by default, `XSRF-TOKEN`) and sets it as an HTTP header (`X-XSRF-TOKEN`). Since only
* JavaScript that runs on your domain could read the cookie, your server can be assured that
* the XHR came from JavaScript running on your domain. The header will not be set for
* cross-domain requests.
*
* To take advantage of this, your server needs to set a token in a JavaScript readable session
* cookie called `XSRF-TOKEN` on the first HTTP GET request. On subsequent XHR requests the
* server can verify that the cookie matches `X-XSRF-TOKEN` HTTP header, and therefore be sure
* that only JavaScript running on your domain could have sent the request. The token must be
* unique for each user and must be verifiable by the server (to prevent the JavaScript from making
* up its own tokens). We recommend that the token is a digest of your site's authentication
* cookie with a {@link https://en.wikipedia.org/wiki/Salt_(cryptography) salt} for added security.
*
* The name of the headers can be specified using the xsrfHeaderName and xsrfCookieName
* properties of either $httpProvider.defaults, or the per-request config object.
*
*
* @param {object} config Object describing the request to be made and how it should be
* processed. The object has following properties:
*
* - **method** – `{string}` – HTTP method (e.g. 'GET', 'POST', etc)
* - **url** – `{string}` – Absolute or relative URL of the resource that is being requested.
* - **params** – `{Object.<string|Object>}` – Map of strings or objects which will be turned to
* `?key1=value1&key2=value2` after the url. If the value is not a string, it will be JSONified.
* - **data** – `{string|Object}` – Data to be sent as the request message data.
* - **headers** – `{Object}` – Map of strings representing HTTP headers to send to the server.
* - **xsrfHeaderName** – `{string}` – Name of HTTP header to populate with the XSRF token.
* - **xsrfCookieName** – `{string}` – Name of cookie containing the XSRF token.
* - **transformRequest** – `{function(data, headersGetter)|Array.<function(data, headersGetter)>}` –
* transform function or an array of such functions. The transform function takes the http
* request body and headers and returns its transformed (typically serialized) version.
* - **transformResponse** – `{function(data, headersGetter)|Array.<function(data, headersGetter)>}` –
* transform function or an array of such functions. The transform function takes the http
* response body and headers and returns its transformed (typically deserialized) version.
* - **cache** – `{boolean|Cache}` – If true, a default $http cache will be used to cache the
* GET request, otherwise if a cache instance built with
* {@link ng.$cacheFactory $cacheFactory}, this cache will be used for
* caching.
* - **timeout** – `{number|Promise}` – timeout in milliseconds, or {@link ng.$q promise}
* that should abort the request when resolved.
* - **withCredentials** - `{boolean}` - whether to to set the `withCredentials` flag on the
* XHR object. See {@link https://developer.mozilla.org/en/http_access_control#section_5
* requests with credentials} for more information.
* - **responseType** - `{string}` - see {@link
* https://developer.mozilla.org/en-US/docs/DOM/XMLHttpRequest#responseType requestType}.
*
* @returns {HttpPromise} Returns a {@link ng.$q promise} object with the
* standard `then` method and two http specific methods: `success` and `error`. The `then`
* method takes two arguments a success and an error callback which will be called with a
* response object. The `success` and `error` methods take a single argument - a function that
* will be called when the request succeeds or fails respectively. The arguments passed into
* these functions are destructured representation of the response object passed into the
* `then` method. The response object has these properties:
*
* - **data** – `{string|Object}` – The response body transformed with the transform functions.
* - **status** – `{number}` – HTTP status code of the response.
* - **headers** – `{function([headerName])}` – Header getter function.
* - **config** – `{Object}` – The configuration object that was used to generate the request.
*
* @property {Array.<Object>} pendingRequests Array of config objects for currently pending
* requests. This is primarily meant to be used for debugging purposes.
*
*
* @example
<example>
<file name="index.html">
<div ng-controller="FetchCtrl">
<select ng-model="method">
<option>GET</option>
<option>JSONP</option>
</select>
<input type="text" ng-model="url" size="80"/>
<button ng-click="fetch()">fetch</button><br>
<button ng-click="updateModel('GET', 'http-hello.html')">Sample GET</button>
<button ng-click="updateModel('JSONP', 'http://angularjs.org/greet.php?callback=JSON_CALLBACK&name=Super%20Hero')">Sample JSONP</button>
<button ng-click="updateModel('JSONP', 'http://angularjs.org/doesntexist&callback=JSON_CALLBACK')">Invalid JSONP</button>
<pre>http status code: {{status}}</pre>
<pre>http response data: {{data}}</pre>
</div>
</file>
<file name="script.js">
function FetchCtrl($scope, $http, $templateCache) {
$scope.method = 'GET';
$scope.url = 'http-hello.html';
$scope.fetch = function() {
$scope.code = null;
$scope.response = null;
$http({method: $scope.method, url: $scope.url, cache: $templateCache}).
success(function(data, status) {
$scope.status = status;
$scope.data = data;
}).
error(function(data, status) {
$scope.data = data || "Request failed";
$scope.status = status;
});
};
$scope.updateModel = function(method, url) {
$scope.method = method;
$scope.url = url;
};
}
</file>
<file name="http-hello.html">
Hello, $http!
</file>
<file name="scenario.js">
it('should make an xhr GET request', function() {
element(':button:contains("Sample GET")').click();
element(':button:contains("fetch")').click();
expect(binding('status')).toBe('200');
expect(binding('data')).toMatch(/Hello, \$http!/);
});
it('should make a JSONP request to angularjs.org', function() {
element(':button:contains("Sample JSONP")').click();
element(':button:contains("fetch")').click();
expect(binding('status')).toBe('200');
expect(binding('data')).toMatch(/Super Hero!/);
});
it('should make JSONP request to invalid URL and invoke the error handler',
function() {
element(':button:contains("Invalid JSONP")').click();
element(':button:contains("fetch")').click();
expect(binding('status')).toBe('0');
expect(binding('data')).toBe('Request failed');
});
</file>
</example>
*/
function $http(requestConfig) {
var config = {
transformRequest: defaults.transformRequest,
transformResponse: defaults.transformResponse
};
var headers = {};
extend(config, requestConfig);
config.headers = headers;
config.method = uppercase(config.method);
extend(headers,
defaults.headers.common,
defaults.headers[lowercase(config.method)],
requestConfig.headers);
var xsrfValue = isSameDomain(config.url, $browser.url())
? $browser.cookies()[config.xsrfCookieName || defaults.xsrfCookieName]
: undefined;
if (xsrfValue) {
headers[(config.xsrfHeaderName || defaults.xsrfHeaderName)] = xsrfValue;
}
var serverRequest = function(config) {
var reqData = transformData(config.data, headersGetter(headers), config.transformRequest);
// strip content-type if data is undefined
if (isUndefined(config.data)) {
delete headers['Content-Type'];
}
if (isUndefined(config.withCredentials) && !isUndefined(defaults.withCredentials)) {
config.withCredentials = defaults.withCredentials;
}
// send request
return sendReq(config, reqData, headers).then(transformResponse, transformResponse);
};
var chain = [serverRequest, undefined];
var promise = $q.when(config);
// apply interceptors
forEach(reversedInterceptors, function(interceptor) {
if (interceptor.request || interceptor.requestError) {
chain.unshift(interceptor.request, interceptor.requestError);
}
if (interceptor.response || interceptor.responseError) {
chain.push(interceptor.response, interceptor.responseError);
}
});
while(chain.length) {
var thenFn = chain.shift();
var rejectFn = chain.shift();
promise = promise.then(thenFn, rejectFn);
}
promise.success = function(fn) {
promise.then(function(response) {
fn(response.data, response.status, response.headers, config);
});
return promise;
};
promise.error = function(fn) {
promise.then(null, function(response) {
fn(response.data, response.status, response.headers, config);
});
return promise;
};
return promise;
function transformResponse(response) {
// make a copy since the response must be cacheable
var resp = extend({}, response, {
data: transformData(response.data, response.headers, config.transformResponse)
});
return (isSuccess(response.status))
? resp
: $q.reject(resp);
}
}
$http.pendingRequests = [];
/**
* @ngdoc method
* @name ng.$http#get
* @methodOf ng.$http
*
* @description
* Shortcut method to perform `GET` request.
*
* @param {string} url Relative or absolute URL specifying the destination of the request
* @param {Object=} config Optional configuration object
* @returns {HttpPromise} Future object
*/
/**
* @ngdoc method
* @name ng.$http#delete
* @methodOf ng.$http
*
* @description
* Shortcut method to perform `DELETE` request.
*
* @param {string} url Relative or absolute URL specifying the destination of the request
* @param {Object=} config Optional configuration object
* @returns {HttpPromise} Future object
*/
/**
* @ngdoc method
* @name ng.$http#head
* @methodOf ng.$http
*
* @description
* Shortcut method to perform `HEAD` request.
*
* @param {string} url Relative or absolute URL specifying the destination of the request
* @param {Object=} config Optional configuration object
* @returns {HttpPromise} Future object
*/
/**
* @ngdoc method
* @name ng.$http#jsonp
* @methodOf ng.$http
*
* @description
* Shortcut method to perform `JSONP` request.
*
* @param {string} url Relative or absolute URL specifying the destination of the request.
* Should contain `JSON_CALLBACK` string.
* @param {Object=} config Optional configuration object
* @returns {HttpPromise} Future object
*/
createShortMethods('get', 'delete', 'head', 'jsonp');
/**
* @ngdoc method
* @name ng.$http#post
* @methodOf ng.$http
*
* @description
* Shortcut method to perform `POST` request.
*
* @param {string} url Relative or absolute URL specifying the destination of the request
* @param {*} data Request content
* @param {Object=} config Optional configuration object
* @returns {HttpPromise} Future object
*/
/**
* @ngdoc method
* @name ng.$http#put
* @methodOf ng.$http
*
* @description
* Shortcut method to perform `PUT` request.
*
* @param {string} url Relative or absolute URL specifying the destination of the request
* @param {*} data Request content
* @param {Object=} config Optional configuration object
* @returns {HttpPromise} Future object
*/
createShortMethodsWithData('post', 'put');
/**
* @ngdoc property
* @name ng.$http#defaults
* @propertyOf ng.$http
*
* @description
* Runtime equivalent of the `$httpProvider.defaults` property. Allows configuration of
* default headers, withCredentials as well as request and response transformations.
*
* See "Setting HTTP Headers" and "Transforming Requests and Responses" sections above.
*/
$http.defaults = defaults;
return $http;
function createShortMethods(names) {
forEach(arguments, function(name) {
$http[name] = function(url, config) {
return $http(extend(config || {}, {
method: name,
url: url
}));
};
});
}
function createShortMethodsWithData(name) {
forEach(arguments, function(name) {
$http[name] = function(url, data, config) {
return $http(extend(config || {}, {
method: name,
url: url,
data: data
}));
};
});
}
/**
* Makes the request.
*
* !!! ACCESSES CLOSURE VARS:
* $httpBackend, defaults, $log, $rootScope, defaultCache, $http.pendingRequests
*/
function sendReq(config, reqData, reqHeaders) {
var deferred = $q.defer(),
promise = deferred.promise,
cache,
cachedResp,
url = buildUrl(config.url, config.params);
$http.pendingRequests.push(config);
promise.then(removePendingReq, removePendingReq);
if ((config.cache || defaults.cache) && config.cache !== false && config.method == 'GET') {
cache = isObject(config.cache) ? config.cache
: isObject(defaults.cache) ? defaults.cache
: defaultCache;
}
if (cache) {
cachedResp = cache.get(url);
if (cachedResp) {
if (cachedResp.then) {
// cached request has already been sent, but there is no response yet
cachedResp.then(removePendingReq, removePendingReq);
return cachedResp;
} else {
// serving from cache
if (isArray(cachedResp)) {
resolvePromise(cachedResp[1], cachedResp[0], copy(cachedResp[2]));
} else {
resolvePromise(cachedResp, 200, {});
}
}
} else {
// put the promise for the non-transformed response into cache as a placeholder
cache.put(url, promise);
}
}
// if we won't have the response in cache, send the request to the backend
if (!cachedResp) {
$httpBackend(config.method, url, reqData, done, reqHeaders, config.timeout,
config.withCredentials, config.responseType);
}
return promise;
/**
* Callback registered to $httpBackend():
* - caches the response if desired
* - resolves the raw $http promise
* - calls $apply
*/
function done(status, response, headersString) {
if (cache) {
if (isSuccess(status)) {
cache.put(url, [status, response, parseHeaders(headersString)]);
} else {
// remove promise from the cache
cache.remove(url);
}
}
resolvePromise(response, status, headersString);
if (!$rootScope.$$phase) $rootScope.$apply();
}
/**
* Resolves the raw $http promise.
*/
function resolvePromise(response, status, headers) {
// normalize internal statuses to 0
status = Math.max(status, 0);
(isSuccess(status) ? deferred.resolve : deferred.reject)({
data: response,
status: status,
headers: headersGetter(headers),
config: config
});
}
function removePendingReq() {
var idx = indexOf($http.pendingRequests, config);
if (idx !== -1) $http.pendingRequests.splice(idx, 1);
}
}
function buildUrl(url, params) {
if (!params) return url;
var parts = [];
forEachSorted(params, function(value, key) {
if (value == null || value == undefined) return;
if (!isArray(value)) value = [value];
forEach(value, function(v) {
if (isObject(v)) {
v = toJson(v);
}
parts.push(encodeUriQuery(key) + '=' +
encodeUriQuery(v));
});
});
return url + ((url.indexOf('?') == -1) ? '?' : '&') + parts.join('&');
}
}];
}
var XHR = window.XMLHttpRequest || function() {
try { return new ActiveXObject("Msxml2.XMLHTTP.6.0"); } catch (e1) {}
try { return new ActiveXObject("Msxml2.XMLHTTP.3.0"); } catch (e2) {}
try { return new ActiveXObject("Msxml2.XMLHTTP"); } catch (e3) {}
throw new Error("This browser does not support XMLHttpRequest.");
};
/**
* @ngdoc object
* @name ng.$httpBackend
* @requires $browser
* @requires $window
* @requires $document
*
* @description
* HTTP backend used by the {@link ng.$http service} that delegates to
* XMLHttpRequest object or JSONP and deals with browser incompatibilities.
*
* You should never need to use this service directly, instead use the higher-level abstractions:
* {@link ng.$http $http} or {@link ngResource.$resource $resource}.
*
* During testing this implementation is swapped with {@link ngMock.$httpBackend mock
* $httpBackend} which can be trained with responses.
*/
function $HttpBackendProvider() {
this.$get = ['$browser', '$window', '$document', function($browser, $window, $document) {
return createHttpBackend($browser, XHR, $browser.defer, $window.angular.callbacks,
$document[0], $window.location.protocol.replace(':', ''));
}];
}
function createHttpBackend($browser, XHR, $browserDefer, callbacks, rawDocument, locationProtocol) {
// TODO(vojta): fix the signature
return function(method, url, post, callback, headers, timeout, withCredentials, responseType) {
var status;
$browser.$$incOutstandingRequestCount();
url = url || $browser.url();
if (lowercase(method) == 'jsonp') {
var callbackId = '_' + (callbacks.counter++).toString(36);
callbacks[callbackId] = function(data) {
callbacks[callbackId].data = data;
};
var jsonpDone = jsonpReq(url.replace('JSON_CALLBACK', 'angular.callbacks.' + callbackId),
function() {
if (callbacks[callbackId].data) {
completeRequest(callback, 200, callbacks[callbackId].data);
} else {
completeRequest(callback, status || -2);
}
delete callbacks[callbackId];
});
} else {
var xhr = new XHR();
xhr.open(method, url, true);
forEach(headers, function(value, key) {
if (value) xhr.setRequestHeader(key, value);
});
// In IE6 and 7, this might be called synchronously when xhr.send below is called and the
// response is in the cache. the promise api will ensure that to the app code the api is
// always async
xhr.onreadystatechange = function() {
if (xhr.readyState == 4) {
var responseHeaders = xhr.getAllResponseHeaders();
// TODO(vojta): remove once Firefox 21 gets released.
// begin: workaround to overcome Firefox CORS http response headers bug
// https://bugzilla.mozilla.org/show_bug.cgi?id=608735
// Firefox already patched in nightly. Should land in Firefox 21.
// CORS "simple response headers" http://www.w3.org/TR/cors/
var value,
simpleHeaders = ["Cache-Control", "Content-Language", "Content-Type",
"Expires", "Last-Modified", "Pragma"];
if (!responseHeaders) {
responseHeaders = "";
forEach(simpleHeaders, function (header) {
var value = xhr.getResponseHeader(header);
if (value) {
responseHeaders += header + ": " + value + "\n";
}
});
}
// end of the workaround.
// responseText is the old-school way of retrieving response (supported by IE8 & 9)
// response and responseType properties were introduced in XHR Level2 spec (supported by IE10)
completeRequest(callback,
status || xhr.status,
(xhr.responseType ? xhr.response : xhr.responseText),
responseHeaders);
}
};
if (withCredentials) {
xhr.withCredentials = true;
}
if (responseType) {
xhr.responseType = responseType;
}
xhr.send(post || '');
}
if (timeout > 0) {
var timeoutId = $browserDefer(timeoutRequest, timeout);
} else if (timeout && timeout.then) {
timeout.then(timeoutRequest);
}
function timeoutRequest() {
status = -1;
jsonpDone && jsonpDone();
xhr && xhr.abort();
}
function completeRequest(callback, status, response, headersString) {
// URL_MATCH is defined in src/service/location.js
var protocol = (url.match(SERVER_MATCH) || ['', locationProtocol])[1];
// cancel timeout and subsequent timeout promise resolution
timeoutId && $browserDefer.cancel(timeoutId);
jsonpDone = xhr = null;
// fix status code for file protocol (it's always 0)
status = (protocol == 'file') ? (response ? 200 : 404) : status;
// normalize IE bug (http://bugs.jquery.com/ticket/1450)
status = status == 1223 ? 204 : status;
callback(status, response, headersString);
$browser.$$completeOutstandingRequest(noop);
}
};
function jsonpReq(url, done) {
// we can't use jQuery/jqLite here because jQuery does crazy shit with script elements, e.g.:
// - fetches local scripts via XHR and evals them
// - adds and immediately removes script elements from the document
var script = rawDocument.createElement('script'),
doneWrapper = function() {
rawDocument.body.removeChild(script);
if (done) done();
};
script.type = 'text/javascript';
script.src = url;
if (msie) {
script.onreadystatechange = function() {
if (/loaded|complete/.test(script.readyState)) doneWrapper();
};
} else {
script.onload = script.onerror = doneWrapper;
}
rawDocument.body.appendChild(script);
return doneWrapper;
}
}
/**
* @ngdoc object
* @name ng.$locale
*
* @description
* $locale service provides localization rules for various Angular components. As of right now the
* only public api is:
*
* * `id` – `{string}` – locale id formatted as `languageId-countryId` (e.g. `en-us`)
*/
function $LocaleProvider(){
this.$get = function() {
return {
id: 'en-us',
NUMBER_FORMATS: {
DECIMAL_SEP: '.',
GROUP_SEP: ',',
PATTERNS: [
{ // Decimal Pattern
minInt: 1,
minFrac: 0,
maxFrac: 3,
posPre: '',
posSuf: '',
negPre: '-',
negSuf: '',
gSize: 3,
lgSize: 3
},{ //Currency Pattern
minInt: 1,
minFrac: 2,
maxFrac: 2,
posPre: '\u00A4',
posSuf: '',
negPre: '(\u00A4',
negSuf: ')',
gSize: 3,
lgSize: 3
}
],
CURRENCY_SYM: '$'
},
DATETIME_FORMATS: {
MONTH: 'January,February,March,April,May,June,July,August,September,October,November,December'
.split(','),
SHORTMONTH: 'Jan,Feb,Mar,Apr,May,Jun,Jul,Aug,Sep,Oct,Nov,Dec'.split(','),
DAY: 'Sunday,Monday,Tuesday,Wednesday,Thursday,Friday,Saturday'.split(','),
SHORTDAY: 'Sun,Mon,Tue,Wed,Thu,Fri,Sat'.split(','),
AMPMS: ['AM','PM'],
medium: 'MMM d, y h:mm:ss a',
short: 'M/d/yy h:mm a',
fullDate: 'EEEE, MMMM d, y',
longDate: 'MMMM d, y',
mediumDate: 'MMM d, y',
shortDate: 'M/d/yy',
mediumTime: 'h:mm:ss a',
shortTime: 'h:mm a'
},
pluralCat: function(num) {
if (num === 1) {
return 'one';
}
return 'other';
}
};
};
}
function $TimeoutProvider() {
this.$get = ['$rootScope', '$browser', '$q', '$exceptionHandler',
function($rootScope, $browser, $q, $exceptionHandler) {
var deferreds = {};
/**
* @ngdoc function
* @name ng.$timeout
* @requires $browser
*
* @description
* Angular's wrapper for `window.setTimeout`. The `fn` function is wrapped into a try/catch
* block and delegates any exceptions to
* {@link ng.$exceptionHandler $exceptionHandler} service.
*
* The return value of registering a timeout function is a promise, which will be resolved when
* the timeout is reached and the timeout function is executed.
*
* To cancel a timeout request, call `$timeout.cancel(promise)`.
*
* In tests you can use {@link ngMock.$timeout `$timeout.flush()`} to
* synchronously flush the queue of deferred functions.
*
* @param {function()} fn A function, whose execution should be delayed.
* @param {number=} [delay=0] Delay in milliseconds.
* @param {boolean=} [invokeApply=true] If set to `false` skips model dirty checking, otherwise
* will invoke `fn` within the {@link ng.$rootScope.Scope#$apply $apply} block.
* @returns {Promise} Promise that will be resolved when the timeout is reached. The value this
* promise will be resolved with is the return value of the `fn` function.
*/
function timeout(fn, delay, invokeApply) {
var deferred = $q.defer(),
promise = deferred.promise,
skipApply = (isDefined(invokeApply) && !invokeApply),
timeoutId, cleanup;
timeoutId = $browser.defer(function() {
try {
deferred.resolve(fn());
} catch(e) {
deferred.reject(e);
$exceptionHandler(e);
}
if (!skipApply) $rootScope.$apply();
}, delay);
cleanup = function() {
delete deferreds[promise.$$timeoutId];
};
promise.$$timeoutId = timeoutId;
deferreds[timeoutId] = deferred;
promise.then(cleanup, cleanup);
return promise;
}
/**
* @ngdoc function
* @name ng.$timeout#cancel
* @methodOf ng.$timeout
*
* @description
* Cancels a task associated with the `promise`. As a result of this, the promise will be
* resolved with a rejection.
*
* @param {Promise=} promise Promise returned by the `$timeout` function.
* @returns {boolean} Returns `true` if the task hasn't executed yet and was successfully
* canceled.
*/
timeout.cancel = function(promise) {
if (promise && promise.$$timeoutId in deferreds) {
deferreds[promise.$$timeoutId].reject('canceled');
return $browser.defer.cancel(promise.$$timeoutId);
}
return false;
};
return timeout;
}];
}
/**
* @ngdoc object
* @name ng.$filterProvider
* @description
*
* Filters are just functions which transform input to an output. However filters need to be Dependency Injected. To
* achieve this a filter definition consists of a factory function which is annotated with dependencies and is
* responsible for creating a filter function.
*
* <pre>
* // Filter registration
* function MyModule($provide, $filterProvider) {
* // create a service to demonstrate injection (not always needed)
* $provide.value('greet', function(name){
* return 'Hello ' + name + '!';
* });
*
* // register a filter factory which uses the
* // greet service to demonstrate DI.
* $filterProvider.register('greet', function(greet){
* // return the filter function which uses the greet service
* // to generate salutation
* return function(text) {
* // filters need to be forgiving so check input validity
* return text && greet(text) || text;
* };
* });
* }
* </pre>
*
* The filter function is registered with the `$injector` under the filter name suffixe with `Filter`.
* <pre>
* it('should be the same instance', inject(
* function($filterProvider) {
* $filterProvider.register('reverse', function(){
* return ...;
* });
* },
* function($filter, reverseFilter) {
* expect($filter('reverse')).toBe(reverseFilter);
* });
* </pre>
*
*
* For more information about how angular filters work, and how to create your own filters, see
* {@link guide/dev_guide.templates.filters Understanding Angular Filters} in the angular Developer
* Guide.
*/
/**
* @ngdoc method
* @name ng.$filterProvider#register
* @methodOf ng.$filterProvider
* @description
* Register filter factory function.
*
* @param {String} name Name of the filter.
* @param {function} fn The filter factory function which is injectable.
*/
/**
* @ngdoc function
* @name ng.$filter
* @function
* @description
* Filters are used for formatting data displayed to the user.
*
* The general syntax in templates is as follows:
*
* {{ expression [| filter_name[:parameter_value] ... ] }}
*
* @param {String} name Name of the filter function to retrieve
* @return {Function} the filter function
*/
$FilterProvider.$inject = ['$provide'];
function $FilterProvider($provide) {
var suffix = 'Filter';
function register(name, factory) {
return $provide.factory(name + suffix, factory);
}
this.register = register;
this.$get = ['$injector', function($injector) {
return function(name) {
return $injector.get(name + suffix);
}
}];
////////////////////////////////////////
register('currency', currencyFilter);
register('date', dateFilter);
register('filter', filterFilter);
register('json', jsonFilter);
register('limitTo', limitToFilter);
register('lowercase', lowercaseFilter);
register('number', numberFilter);
register('orderBy', orderByFilter);
register('uppercase', uppercaseFilter);
}
/**
* @ngdoc filter
* @name ng.filter:filter
* @function
*
* @description
* Selects a subset of items from `array` and returns it as a new array.
*
* Note: This function is used to augment the `Array` type in Angular expressions. See
* {@link ng.$filter} for more information about Angular arrays.
*
* @param {Array} array The source array.
* @param {string|Object|function()} expression The predicate to be used for selecting items from
* `array`.
*
* Can be one of:
*
* - `string`: Predicate that results in a substring match using the value of `expression`
* string. All strings or objects with string properties in `array` that contain this string
* will be returned. The predicate can be negated by prefixing the string with `!`.
*
* - `Object`: A pattern object can be used to filter specific properties on objects contained
* by `array`. For example `{name:"M", phone:"1"}` predicate will return an array of items
* which have property `name` containing "M" and property `phone` containing "1". A special
* property name `$` can be used (as in `{$:"text"}`) to accept a match against any
* property of the object. That's equivalent to the simple substring match with a `string`
* as described above.
*
* - `function`: A predicate function can be used to write arbitrary filters. The function is
* called for each element of `array`. The final result is an array of those elements that
* the predicate returned true for.
*
* @param {function(expected, actual)|true|undefined} comparator Comparator which is used in
* determining if the expected value (from the filter expression) and actual value (from
* the object in the array) should be considered a match.
*
* Can be one of:
*
* - `function(expected, actual)`:
* The function will be given the object value and the predicate value to compare and
* should return true if the item should be included in filtered result.
*
* - `true`: A shorthand for `function(expected, actual) { return angular.equals(expected, actual)}`.
* this is essentially strict comparison of expected and actual.
*
* - `false|undefined`: A short hand for a function which will look for a substring match in case
* insensitive way.
*
* @example
<doc:example>
<doc:source>
<div ng-init="friends = [{name:'John', phone:'555-1276'},
{name:'Mary', phone:'800-BIG-MARY'},
{name:'Mike', phone:'555-4321'},
{name:'Adam', phone:'555-5678'},
{name:'Julie', phone:'555-8765'},
{name:'Juliette', phone:'555-5678'}]"></div>
Search: <input ng-model="searchText">
<table id="searchTextResults">
<tr><th>Name</th><th>Phone</th></tr>
<tr ng-repeat="friend in friends | filter:searchText">
<td>{{friend.name}}</td>
<td>{{friend.phone}}</td>
</tr>
</table>
<hr>
Any: <input ng-model="search.$"> <br>
Name only <input ng-model="search.name"><br>
Phone only <input ng-model="search.phone"><br>
Equality <input type="checkbox" ng-model="strict"><br>
<table id="searchObjResults">
<tr><th>Name</th><th>Phone</th></tr>
<tr ng-repeat="friend in friends | filter:search:strict">
<td>{{friend.name}}</td>
<td>{{friend.phone}}</td>
</tr>
</table>
</doc:source>
<doc:scenario>
it('should search across all fields when filtering with a string', function() {
input('searchText').enter('m');
expect(repeater('#searchTextResults tr', 'friend in friends').column('friend.name')).
toEqual(['Mary', 'Mike', 'Adam']);
input('searchText').enter('76');
expect(repeater('#searchTextResults tr', 'friend in friends').column('friend.name')).
toEqual(['John', 'Julie']);
});
it('should search in specific fields when filtering with a predicate object', function() {
input('search.$').enter('i');
expect(repeater('#searchObjResults tr', 'friend in friends').column('friend.name')).
toEqual(['Mary', 'Mike', 'Julie', 'Juliette']);
});
it('should use a equal comparison when comparator is true', function() {
input('search.name').enter('Julie');
input('strict').check();
expect(repeater('#searchObjResults tr', 'friend in friends').column('friend.name')).
toEqual(['Julie']);
});
</doc:scenario>
</doc:example>
*/
function filterFilter() {
return function(array, expression, comperator) {
if (!isArray(array)) return array;
var predicates = [];
predicates.check = function(value) {
for (var j = 0; j < predicates.length; j++) {
if(!predicates[j](value)) {
return false;
}
}
return true;
};
switch(typeof comperator) {
case "function":
break;
case "boolean":
if(comperator == true) {
comperator = function(obj, text) {
return angular.equals(obj, text);
}
break;
}
default:
comperator = function(obj, text) {
text = (''+text).toLowerCase();
return (''+obj).toLowerCase().indexOf(text) > -1
};
}
var search = function(obj, text){
if (typeof text == 'string' && text.charAt(0) === '!') {
return !search(obj, text.substr(1));
}
switch (typeof obj) {
case "boolean":
case "number":
case "string":
return comperator(obj, text);
case "object":
switch (typeof text) {
case "object":
return comperator(obj, text);
break;
default:
for ( var objKey in obj) {
if (objKey.charAt(0) !== '$' && search(obj[objKey], text)) {
return true;
}
}
break;
}
return false;
case "array":
for ( var i = 0; i < obj.length; i++) {
if (search(obj[i], text)) {
return true;
}
}
return false;
default:
return false;
}
};
switch (typeof expression) {
case "boolean":
case "number":
case "string":
expression = {$:expression};
case "object":
for (var key in expression) {
if (key == '$') {
(function() {
if (!expression[key]) return;
var path = key
predicates.push(function(value) {
return search(value, expression[path]);
});
})();
} else {
(function() {
if (!expression[key]) return;
var path = key;
predicates.push(function(value) {
return search(getter(value,path), expression[path]);
});
})();
}
}
break;
case 'function':
predicates.push(expression);
break;
default:
return array;
}
var filtered = [];
for ( var j = 0; j < array.length; j++) {
var value = array[j];
if (predicates.check(value)) {
filtered.push(value);
}
}
return filtered;
}
}
/**
* @ngdoc filter
* @name ng.filter:currency
* @function
*
* @description
* Formats a number as a currency (ie $1,234.56). When no currency symbol is provided, default
* symbol for current locale is used.
*
* @param {number} amount Input to filter.
* @param {string=} symbol Currency symbol or identifier to be displayed.
* @returns {string} Formatted number.
*
*
* @example
<doc:example>
<doc:source>
<script>
function Ctrl($scope) {
$scope.amount = 1234.56;
}
</script>
<div ng-controller="Ctrl">
<input type="number" ng-model="amount"> <br>
default currency symbol ($): {{amount | currency}}<br>
custom currency identifier (USD$): {{amount | currency:"USD$"}}
</div>
</doc:source>
<doc:scenario>
it('should init with 1234.56', function() {
expect(binding('amount | currency')).toBe('$1,234.56');
expect(binding('amount | currency:"USD$"')).toBe('USD$1,234.56');
});
it('should update', function() {
input('amount').enter('-1234');
expect(binding('amount | currency')).toBe('($1,234.00)');
expect(binding('amount | currency:"USD$"')).toBe('(USD$1,234.00)');
});
</doc:scenario>
</doc:example>
*/
currencyFilter.$inject = ['$locale'];
function currencyFilter($locale) {
var formats = $locale.NUMBER_FORMATS;
return function(amount, currencySymbol){
if (isUndefined(currencySymbol)) currencySymbol = formats.CURRENCY_SYM;
return formatNumber(amount, formats.PATTERNS[1], formats.GROUP_SEP, formats.DECIMAL_SEP, 2).
replace(/\u00A4/g, currencySymbol);
};
}
/**
* @ngdoc filter
* @name ng.filter:number
* @function
*
* @description
* Formats a number as text.
*
* If the input is not a number an empty string is returned.
*
* @param {number|string} number Number to format.
* @param {(number|string)=} [fractionSize=2] Number of decimal places to round the number to.
* @returns {string} Number rounded to decimalPlaces and places a “,” after each third digit.
*
* @example
<doc:example>
<doc:source>
<script>
function Ctrl($scope) {
$scope.val = 1234.56789;
}
</script>
<div ng-controller="Ctrl">
Enter number: <input ng-model='val'><br>
Default formatting: {{val | number}}<br>
No fractions: {{val | number:0}}<br>
Negative number: {{-val | number:4}}
</div>
</doc:source>
<doc:scenario>
it('should format numbers', function() {
expect(binding('val | number')).toBe('1,234.568');
expect(binding('val | number:0')).toBe('1,235');
expect(binding('-val | number:4')).toBe('-1,234.5679');
});
it('should update', function() {
input('val').enter('3374.333');
expect(binding('val | number')).toBe('3,374.333');
expect(binding('val | number:0')).toBe('3,374');
expect(binding('-val | number:4')).toBe('-3,374.3330');
});
</doc:scenario>
</doc:example>
*/
numberFilter.$inject = ['$locale'];
function numberFilter($locale) {
var formats = $locale.NUMBER_FORMATS;
return function(number, fractionSize) {
return formatNumber(number, formats.PATTERNS[0], formats.GROUP_SEP, formats.DECIMAL_SEP,
fractionSize);
};
}
var DECIMAL_SEP = '.';
function formatNumber(number, pattern, groupSep, decimalSep, fractionSize) {
if (isNaN(number) || !isFinite(number)) return '';
var isNegative = number < 0;
number = Math.abs(number);
var numStr = number + '',
formatedText = '',
parts = [];
var hasExponent = false;
if (numStr.indexOf('e') !== -1) {
var match = numStr.match(/([\d\.]+)e(-?)(\d+)/);
if (match && match[2] == '-' && match[3] > fractionSize + 1) {
numStr = '0';
} else {
formatedText = numStr;
hasExponent = true;
}
}
if (!hasExponent) {
var fractionLen = (numStr.split(DECIMAL_SEP)[1] || '').length;
// determine fractionSize if it is not specified
if (isUndefined(fractionSize)) {
fractionSize = Math.min(Math.max(pattern.minFrac, fractionLen), pattern.maxFrac);
}
var pow = Math.pow(10, fractionSize);
number = Math.round(number * pow) / pow;
var fraction = ('' + number).split(DECIMAL_SEP);
var whole = fraction[0];
fraction = fraction[1] || '';
var pos = 0,
lgroup = pattern.lgSize,
group = pattern.gSize;
if (whole.length >= (lgroup + group)) {
pos = whole.length - lgroup;
for (var i = 0; i < pos; i++) {
if ((pos - i)%group === 0 && i !== 0) {
formatedText += groupSep;
}
formatedText += whole.charAt(i);
}
}
for (i = pos; i < whole.length; i++) {
if ((whole.length - i)%lgroup === 0 && i !== 0) {
formatedText += groupSep;
}
formatedText += whole.charAt(i);
}
// format fraction part.
while(fraction.length < fractionSize) {
fraction += '0';
}
if (fractionSize && fractionSize !== "0") formatedText += decimalSep + fraction.substr(0, fractionSize);
}
parts.push(isNegative ? pattern.negPre : pattern.posPre);
parts.push(formatedText);
parts.push(isNegative ? pattern.negSuf : pattern.posSuf);
return parts.join('');
}
function padNumber(num, digits, trim) {
var neg = '';
if (num < 0) {
neg = '-';
num = -num;
}
num = '' + num;
while(num.length < digits) num = '0' + num;
if (trim)
num = num.substr(num.length - digits);
return neg + num;
}
function dateGetter(name, size, offset, trim) {
offset = offset || 0;
return function(date) {
var value = date['get' + name]();
if (offset > 0 || value > -offset)
value += offset;
if (value === 0 && offset == -12 ) value = 12;
return padNumber(value, size, trim);
};
}
function dateStrGetter(name, shortForm) {
return function(date, formats) {
var value = date['get' + name]();
var get = uppercase(shortForm ? ('SHORT' + name) : name);
return formats[get][value];
};
}
function timeZoneGetter(date) {
var zone = -1 * date.getTimezoneOffset();
var paddedZone = (zone >= 0) ? "+" : "";
paddedZone += padNumber(Math[zone > 0 ? 'floor' : 'ceil'](zone / 60), 2) +
padNumber(Math.abs(zone % 60), 2);
return paddedZone;
}
function ampmGetter(date, formats) {
return date.getHours() < 12 ? formats.AMPMS[0] : formats.AMPMS[1];
}
var DATE_FORMATS = {
yyyy: dateGetter('FullYear', 4),
yy: dateGetter('FullYear', 2, 0, true),
y: dateGetter('FullYear', 1),
MMMM: dateStrGetter('Month'),
MMM: dateStrGetter('Month', true),
MM: dateGetter('Month', 2, 1),
M: dateGetter('Month', 1, 1),
dd: dateGetter('Date', 2),
d: dateGetter('Date', 1),
HH: dateGetter('Hours', 2),
H: dateGetter('Hours', 1),
hh: dateGetter('Hours', 2, -12),
h: dateGetter('Hours', 1, -12),
mm: dateGetter('Minutes', 2),
m: dateGetter('Minutes', 1),
ss: dateGetter('Seconds', 2),
s: dateGetter('Seconds', 1),
// while ISO 8601 requires fractions to be prefixed with `.` or `,`
// we can be just safely rely on using `sss` since we currently don't support single or two digit fractions
sss: dateGetter('Milliseconds', 3),
EEEE: dateStrGetter('Day'),
EEE: dateStrGetter('Day', true),
a: ampmGetter,
Z: timeZoneGetter
};
var DATE_FORMATS_SPLIT = /((?:[^yMdHhmsaZE']+)|(?:'(?:[^']|'')*')|(?:E+|y+|M+|d+|H+|h+|m+|s+|a|Z))(.*)/,
NUMBER_STRING = /^\d+$/;
/**
* @ngdoc filter
* @name ng.filter:date
* @function
*
* @description
* Formats `date` to a string based on the requested `format`.
*
* `format` string can be composed of the following elements:
*
* * `'yyyy'`: 4 digit representation of year (e.g. AD 1 => 0001, AD 2010 => 2010)
* * `'yy'`: 2 digit representation of year, padded (00-99). (e.g. AD 2001 => 01, AD 2010 => 10)
* * `'y'`: 1 digit representation of year, e.g. (AD 1 => 1, AD 199 => 199)
* * `'MMMM'`: Month in year (January-December)
* * `'MMM'`: Month in year (Jan-Dec)
* * `'MM'`: Month in year, padded (01-12)
* * `'M'`: Month in year (1-12)
* * `'dd'`: Day in month, padded (01-31)
* * `'d'`: Day in month (1-31)
* * `'EEEE'`: Day in Week,(Sunday-Saturday)
* * `'EEE'`: Day in Week, (Sun-Sat)
* * `'HH'`: Hour in day, padded (00-23)
* * `'H'`: Hour in day (0-23)
* * `'hh'`: Hour in am/pm, padded (01-12)
* * `'h'`: Hour in am/pm, (1-12)
* * `'mm'`: Minute in hour, padded (00-59)
* * `'m'`: Minute in hour (0-59)
* * `'ss'`: Second in minute, padded (00-59)
* * `'s'`: Second in minute (0-59)
* * `'.sss' or ',sss'`: Millisecond in second, padded (000-999)
* * `'a'`: am/pm marker
* * `'Z'`: 4 digit (+sign) representation of the timezone offset (-1200-+1200)
*
* `format` string can also be one of the following predefined
* {@link guide/i18n localizable formats}:
*
* * `'medium'`: equivalent to `'MMM d, y h:mm:ss a'` for en_US locale
* (e.g. Sep 3, 2010 12:05:08 pm)
* * `'short'`: equivalent to `'M/d/yy h:mm a'` for en_US locale (e.g. 9/3/10 12:05 pm)
* * `'fullDate'`: equivalent to `'EEEE, MMMM d,y'` for en_US locale
* (e.g. Friday, September 3, 2010)
* * `'longDate'`: equivalent to `'MMMM d, y'` for en_US locale (e.g. September 3, 2010
* * `'mediumDate'`: equivalent to `'MMM d, y'` for en_US locale (e.g. Sep 3, 2010)
* * `'shortDate'`: equivalent to `'M/d/yy'` for en_US locale (e.g. 9/3/10)
* * `'mediumTime'`: equivalent to `'h:mm:ss a'` for en_US locale (e.g. 12:05:08 pm)
* * `'shortTime'`: equivalent to `'h:mm a'` for en_US locale (e.g. 12:05 pm)
*
* `format` string can contain literal values. These need to be quoted with single quotes (e.g.
* `"h 'in the morning'"`). In order to output single quote, use two single quotes in a sequence
* (e.g. `"h o''clock"`).
*
* @param {(Date|number|string)} date Date to format either as Date object, milliseconds (string or
* number) or various ISO 8601 datetime string formats (e.g. yyyy-MM-ddTHH:mm:ss.SSSZ and its
* shorter versions like yyyy-MM-ddTHH:mmZ, yyyy-MM-dd or yyyyMMddTHHmmssZ). If no timezone is
* specified in the string input, the time is considered to be in the local timezone.
* @param {string=} format Formatting rules (see Description). If not specified,
* `mediumDate` is used.
* @returns {string} Formatted string or the input if input is not recognized as date/millis.
*
* @example
<doc:example>
<doc:source>
<span ng-non-bindable>{{1288323623006 | date:'medium'}}</span>:
{{1288323623006 | date:'medium'}}<br>
<span ng-non-bindable>{{1288323623006 | date:'yyyy-MM-dd HH:mm:ss Z'}}</span>:
{{1288323623006 | date:'yyyy-MM-dd HH:mm:ss Z'}}<br>
<span ng-non-bindable>{{1288323623006 | date:'MM/dd/yyyy @ h:mma'}}</span>:
{{'1288323623006' | date:'MM/dd/yyyy @ h:mma'}}<br>
</doc:source>
<doc:scenario>
it('should format date', function() {
expect(binding("1288323623006 | date:'medium'")).
toMatch(/Oct 2\d, 2010 \d{1,2}:\d{2}:\d{2} (AM|PM)/);
expect(binding("1288323623006 | date:'yyyy-MM-dd HH:mm:ss Z'")).
toMatch(/2010\-10\-2\d \d{2}:\d{2}:\d{2} (\-|\+)?\d{4}/);
expect(binding("'1288323623006' | date:'MM/dd/yyyy @ h:mma'")).
toMatch(/10\/2\d\/2010 @ \d{1,2}:\d{2}(AM|PM)/);
});
</doc:scenario>
</doc:example>
*/
dateFilter.$inject = ['$locale'];
function dateFilter($locale) {
var R_ISO8601_STR = /^(\d{4})-?(\d\d)-?(\d\d)(?:T(\d\d)(?::?(\d\d)(?::?(\d\d)(?:\.(\d+))?)?)?(Z|([+-])(\d\d):?(\d\d))?)?$/;
// 1 2 3 4 5 6 7 8 9 10 11
function jsonStringToDate(string) {
var match;
if (match = string.match(R_ISO8601_STR)) {
var date = new Date(0),
tzHour = 0,
tzMin = 0,
dateSetter = match[8] ? date.setUTCFullYear : date.setFullYear,
timeSetter = match[8] ? date.setUTCHours : date.setHours;
if (match[9]) {
tzHour = int(match[9] + match[10]);
tzMin = int(match[9] + match[11]);
}
dateSetter.call(date, int(match[1]), int(match[2]) - 1, int(match[3]));
var h = int(match[4]||0) - tzHour;
var m = int(match[5]||0) - tzMin
var s = int(match[6]||0);
var ms = Math.round(parseFloat('0.' + (match[7]||0)) * 1000);
timeSetter.call(date, h, m, s, ms);
return date;
}
return string;
}
return function(date, format) {
var text = '',
parts = [],
fn, match;
format = format || 'mediumDate';
format = $locale.DATETIME_FORMATS[format] || format;
if (isString(date)) {
if (NUMBER_STRING.test(date)) {
date = int(date);
} else {
date = jsonStringToDate(date);
}
}
if (isNumber(date)) {
date = new Date(date);
}
if (!isDate(date)) {
return date;
}
while(format) {
match = DATE_FORMATS_SPLIT.exec(format);
if (match) {
parts = concat(parts, match, 1);
format = parts.pop();
} else {
parts.push(format);
format = null;
}
}
forEach(parts, function(value){
fn = DATE_FORMATS[value];
text += fn ? fn(date, $locale.DATETIME_FORMATS)
: value.replace(/(^'|'$)/g, '').replace(/''/g, "'");
});
return text;
};
}
/**
* @ngdoc filter
* @name ng.filter:json
* @function
*
* @description
* Allows you to convert a JavaScript object into JSON string.
*
* This filter is mostly useful for debugging. When using the double curly {{value}} notation
* the binding is automatically converted to JSON.
*
* @param {*} object Any JavaScript object (including arrays and primitive types) to filter.
* @returns {string} JSON string.
*
*
* @example:
<doc:example>
<doc:source>
<pre>{{ {'name':'value'} | json }}</pre>
</doc:source>
<doc:scenario>
it('should jsonify filtered objects', function() {
expect(binding("{'name':'value'}")).toMatch(/\{\n "name": ?"value"\n}/);
});
</doc:scenario>
</doc:example>
*
*/
function jsonFilter() {
return function(object) {
return toJson(object, true);
};
}
/**
* @ngdoc filter
* @name ng.filter:lowercase
* @function
* @description
* Converts string to lowercase.
* @see angular.lowercase
*/
var lowercaseFilter = valueFn(lowercase);
/**
* @ngdoc filter
* @name ng.filter:uppercase
* @function
* @description
* Converts string to uppercase.
* @see angular.uppercase
*/
var uppercaseFilter = valueFn(uppercase);
/**
* @ngdoc function
* @name ng.filter:limitTo
* @function
*
* @description
* Creates a new array or string containing only a specified number of elements. The elements
* are taken from either the beginning or the end of the source array or string, as specified by
* the value and sign (positive or negative) of `limit`.
*
* Note: This function is used to augment the `Array` type in Angular expressions. See
* {@link ng.$filter} for more information about Angular arrays.
*
* @param {Array|string} input Source array or string to be limited.
* @param {string|number} limit The length of the returned array or string. If the `limit` number
* is positive, `limit` number of items from the beginning of the source array/string are copied.
* If the number is negative, `limit` number of items from the end of the source array/string
* are copied. The `limit` will be trimmed if it exceeds `array.length`
* @returns {Array|string} A new sub-array or substring of length `limit` or less if input array
* had less than `limit` elements.
*
* @example
<doc:example>
<doc:source>
<script>
function Ctrl($scope) {
$scope.numbers = [1,2,3,4,5,6,7,8,9];
$scope.letters = "abcdefghi";
$scope.numLimit = 3;
$scope.letterLimit = 3;
}
</script>
<div ng-controller="Ctrl">
Limit {{numbers}} to: <input type="integer" ng-model="numLimit">
<p>Output numbers: {{ numbers | limitTo:numLimit }}</p>
Limit {{letters}} to: <input type="integer" ng-model="letterLimit">
<p>Output letters: {{ letters | limitTo:letterLimit }}</p>
</div>
</doc:source>
<doc:scenario>
it('should limit the number array to first three items', function() {
expect(element('.doc-example-live input[ng-model=numLimit]').val()).toBe('3');
expect(element('.doc-example-live input[ng-model=letterLimit]').val()).toBe('3');
expect(binding('numbers | limitTo:numLimit')).toEqual('[1,2,3]');
expect(binding('letters | limitTo:letterLimit')).toEqual('abc');
});
it('should update the output when -3 is entered', function() {
input('numLimit').enter(-3);
input('letterLimit').enter(-3);
expect(binding('numbers | limitTo:numLimit')).toEqual('[7,8,9]');
expect(binding('letters | limitTo:letterLimit')).toEqual('ghi');
});
it('should not exceed the maximum size of input array', function() {
input('numLimit').enter(100);
input('letterLimit').enter(100);
expect(binding('numbers | limitTo:numLimit')).toEqual('[1,2,3,4,5,6,7,8,9]');
expect(binding('letters | limitTo:letterLimit')).toEqual('abcdefghi');
});
</doc:scenario>
</doc:example>
*/
function limitToFilter(){
return function(input, limit) {
if (!isArray(input) && !isString(input)) return input;
limit = int(limit);
if (isString(input)) {
//NaN check on limit
if (limit) {
return limit >= 0 ? input.slice(0, limit) : input.slice(limit, input.length);
} else {
return "";
}
}
var out = [],
i, n;
// if abs(limit) exceeds maximum length, trim it
if (limit > input.length)
limit = input.length;
else if (limit < -input.length)
limit = -input.length;
if (limit > 0) {
i = 0;
n = limit;
} else {
i = input.length + limit;
n = input.length;
}
for (; i<n; i++) {
out.push(input[i]);
}
return out;
}
}
/**
* @ngdoc function
* @name ng.filter:orderBy
* @function
*
* @description
* Orders a specified `array` by the `expression` predicate.
*
* Note: this function is used to augment the `Array` type in Angular expressions. See
* {@link ng.$filter} for more information about Angular arrays.
*
* @param {Array} array The array to sort.
* @param {function(*)|string|Array.<(function(*)|string)>} expression A predicate to be
* used by the comparator to determine the order of elements.
*
* Can be one of:
*
* - `function`: Getter function. The result of this function will be sorted using the
* `<`, `=`, `>` operator.
* - `string`: An Angular expression which evaluates to an object to order by, such as 'name'
* to sort by a property called 'name'. Optionally prefixed with `+` or `-` to control
* ascending or descending sort order (for example, +name or -name).
* - `Array`: An array of function or string predicates. The first predicate in the array
* is used for sorting, but when two items are equivalent, the next predicate is used.
*
* @param {boolean=} reverse Reverse the order the array.
* @returns {Array} Sorted copy of the source array.
*
* @example
<doc:example>
<doc:source>
<script>
function Ctrl($scope) {
$scope.friends =
[{name:'John', phone:'555-1212', age:10},
{name:'Mary', phone:'555-9876', age:19},
{name:'Mike', phone:'555-4321', age:21},
{name:'Adam', phone:'555-5678', age:35},
{name:'Julie', phone:'555-8765', age:29}]
$scope.predicate = '-age';
}
</script>
<div ng-controller="Ctrl">
<pre>Sorting predicate = {{predicate}}; reverse = {{reverse}}</pre>
<hr/>
[ <a href="" ng-click="predicate=''">unsorted</a> ]
<table class="friend">
<tr>
<th><a href="" ng-click="predicate = 'name'; reverse=false">Name</a>
(<a href ng-click="predicate = '-name'; reverse=false">^</a>)</th>
<th><a href="" ng-click="predicate = 'phone'; reverse=!reverse">Phone Number</a></th>
<th><a href="" ng-click="predicate = 'age'; reverse=!reverse">Age</a></th>
</tr>
<tr ng-repeat="friend in friends | orderBy:predicate:reverse">
<td>{{friend.name}}</td>
<td>{{friend.phone}}</td>
<td>{{friend.age}}</td>
</tr>
</table>
</div>
</doc:source>
<doc:scenario>
it('should be reverse ordered by aged', function() {
expect(binding('predicate')).toBe('-age');
expect(repeater('table.friend', 'friend in friends').column('friend.age')).
toEqual(['35', '29', '21', '19', '10']);
expect(repeater('table.friend', 'friend in friends').column('friend.name')).
toEqual(['Adam', 'Julie', 'Mike', 'Mary', 'John']);
});
it('should reorder the table when user selects different predicate', function() {
element('.doc-example-live a:contains("Name")').click();
expect(repeater('table.friend', 'friend in friends').column('friend.name')).
toEqual(['Adam', 'John', 'Julie', 'Mary', 'Mike']);
expect(repeater('table.friend', 'friend in friends').column('friend.age')).
toEqual(['35', '10', '29', '19', '21']);
element('.doc-example-live a:contains("Phone")').click();
expect(repeater('table.friend', 'friend in friends').column('friend.phone')).
toEqual(['555-9876', '555-8765', '555-5678', '555-4321', '555-1212']);
expect(repeater('table.friend', 'friend in friends').column('friend.name')).
toEqual(['Mary', 'Julie', 'Adam', 'Mike', 'John']);
});
</doc:scenario>
</doc:example>
*/
orderByFilter.$inject = ['$parse'];
function orderByFilter($parse){
return function(array, sortPredicate, reverseOrder) {
if (!isArray(array)) return array;
if (!sortPredicate) return array;
sortPredicate = isArray(sortPredicate) ? sortPredicate: [sortPredicate];
sortPredicate = map(sortPredicate, function(predicate){
var descending = false, get = predicate || identity;
if (isString(predicate)) {
if ((predicate.charAt(0) == '+' || predicate.charAt(0) == '-')) {
descending = predicate.charAt(0) == '-';
predicate = predicate.substring(1);
}
get = $parse(predicate);
}
return reverseComparator(function(a,b){
return compare(get(a),get(b));
}, descending);
});
var arrayCopy = [];
for ( var i = 0; i < array.length; i++) { arrayCopy.push(array[i]); }
return arrayCopy.sort(reverseComparator(comparator, reverseOrder));
function comparator(o1, o2){
for ( var i = 0; i < sortPredicate.length; i++) {
var comp = sortPredicate[i](o1, o2);
if (comp !== 0) return comp;
}
return 0;
}
function reverseComparator(comp, descending) {
return toBoolean(descending)
? function(a,b){return comp(b,a);}
: comp;
}
function compare(v1, v2){
var t1 = typeof v1;
var t2 = typeof v2;
if (t1 == t2) {
if (t1 == "string") v1 = v1.toLowerCase();
if (t1 == "string") v2 = v2.toLowerCase();
if (v1 === v2) return 0;
return v1 < v2 ? -1 : 1;
} else {
return t1 < t2 ? -1 : 1;
}
}
}
}
function ngDirective(directive) {
if (isFunction(directive)) {
directive = {
link: directive
}
}
directive.restrict = directive.restrict || 'AC';
return valueFn(directive);
}
/**
* @ngdoc directive
* @name ng.directive:a
* @restrict E
*
* @description
* Modifies the default behavior of html A tag, so that the default action is prevented when href
* attribute is empty.
*
* The reasoning for this change is to allow easy creation of action links with `ngClick` directive
* without changing the location or causing page reloads, e.g.:
* `<a href="" ng-click="model.$save()">Save</a>`
*/
var htmlAnchorDirective = valueFn({
restrict: 'E',
compile: function(element, attr) {
if (msie <= 8) {
// turn <a href ng-click="..">link</a> into a stylable link in IE
// but only if it doesn't have name attribute, in which case it's an anchor
if (!attr.href && !attr.name) {
attr.$set('href', '');
}
// add a comment node to anchors to workaround IE bug that causes element content to be reset
// to new attribute content if attribute is updated with value containing @ and element also
// contains value with @
// see issue #1949
element.append(document.createComment('IE fix'));
}
return function(scope, element) {
element.bind('click', function(event){
// if we have no href url, then don't navigate anywhere.
if (!element.attr('href')) {
event.preventDefault();
}
});
}
}
});
/**
* @ngdoc directive
* @name ng.directive:ngHref
* @restrict A
*
* @description
* Using Angular markup like {{hash}} in an href attribute makes
* the page open to a wrong URL, if the user clicks that link before
* angular has a chance to replace the {{hash}} with actual URL, the
* link will be broken and will most likely return a 404 error.
* The `ngHref` directive solves this problem.
*
* The buggy way to write it:
* <pre>
* <a href="http://www.gravatar.com/avatar/{{hash}}"/>
* </pre>
*
* The correct way to write it:
* <pre>
* <a ng-href="http://www.gravatar.com/avatar/{{hash}}"/>
* </pre>
*
* @element A
* @param {template} ngHref any string which can contain `{{}}` markup.
*
* @example
* This example uses `link` variable inside `href` attribute:
<doc:example>
<doc:source>
<input ng-model="value" /><br />
<a id="link-1" href ng-click="value = 1">link 1</a> (link, don't reload)<br />
<a id="link-2" href="" ng-click="value = 2">link 2</a> (link, don't reload)<br />
<a id="link-3" ng-href="/{{'123'}}">link 3</a> (link, reload!)<br />
<a id="link-4" href="" name="xx" ng-click="value = 4">anchor</a> (link, don't reload)<br />
<a id="link-5" name="xxx" ng-click="value = 5">anchor</a> (no link)<br />
<a id="link-6" ng-href="{{value}}">link</a> (link, change location)
</doc:source>
<doc:scenario>
it('should execute ng-click but not reload when href without value', function() {
element('#link-1').click();
expect(input('value').val()).toEqual('1');
expect(element('#link-1').attr('href')).toBe("");
});
it('should execute ng-click but not reload when href empty string', function() {
element('#link-2').click();
expect(input('value').val()).toEqual('2');
expect(element('#link-2').attr('href')).toBe("");
});
it('should execute ng-click and change url when ng-href specified', function() {
expect(element('#link-3').attr('href')).toBe("/123");
element('#link-3').click();
expect(browser().window().path()).toEqual('/123');
});
it('should execute ng-click but not reload when href empty string and name specified', function() {
element('#link-4').click();
expect(input('value').val()).toEqual('4');
expect(element('#link-4').attr('href')).toBe('');
});
it('should execute ng-click but not reload when no href but name specified', function() {
element('#link-5').click();
expect(input('value').val()).toEqual('5');
expect(element('#link-5').attr('href')).toBe(undefined);
});
it('should only change url when only ng-href', function() {
input('value').enter('6');
expect(element('#link-6').attr('href')).toBe('6');
element('#link-6').click();
expect(browser().location().url()).toEqual('/6');
});
</doc:scenario>
</doc:example>
*/
/**
* @ngdoc directive
* @name ng.directive:ngSrc
* @restrict A
*
* @description
* Using Angular markup like `{{hash}}` in a `src` attribute doesn't
* work right: The browser will fetch from the URL with the literal
* text `{{hash}}` until Angular replaces the expression inside
* `{{hash}}`. The `ngSrc` directive solves this problem.
*
* The buggy way to write it:
* <pre>
* <img src="http://www.gravatar.com/avatar/{{hash}}"/>
* </pre>
*
* The correct way to write it:
* <pre>
* <img ng-src="http://www.gravatar.com/avatar/{{hash}}"/>
* </pre>
*
* @element IMG
* @param {template} ngSrc any string which can contain `{{}}` markup.
*/
/**
* @ngdoc directive
* @name ng.directive:ngSrcset
* @restrict A
*
* @description
* Using Angular markup like `{{hash}}` in a `srcset` attribute doesn't
* work right: The browser will fetch from the URL with the literal
* text `{{hash}}` until Angular replaces the expression inside
* `{{hash}}`. The `ngSrcset` directive solves this problem.
*
* The buggy way to write it:
* <pre>
* <img srcset="http://www.gravatar.com/avatar/{{hash}} 2x"/>
* </pre>
*
* The correct way to write it:
* <pre>
* <img ng-srcset="http://www.gravatar.com/avatar/{{hash}} 2x"/>
* </pre>
*
* @element IMG
* @param {template} ngSrcset any string which can contain `{{}}` markup.
*/
/**
* @ngdoc directive
* @name ng.directive:ngDisabled
* @restrict A
*
* @description
*
* The following markup will make the button enabled on Chrome/Firefox but not on IE8 and older IEs:
* <pre>
* <div ng-init="scope = { isDisabled: false }">
* <button disabled="{{scope.isDisabled}}">Disabled</button>
* </div>
* </pre>
*
* The HTML specs do not require browsers to preserve the special attributes such as disabled.
* (The presence of them means true and absence means false)
* This prevents the angular compiler from correctly retrieving the binding expression.
* To solve this problem, we introduce the `ngDisabled` directive.
*
* @example
<doc:example>
<doc:source>
Click me to toggle: <input type="checkbox" ng-model="checked"><br/>
<button ng-model="button" ng-disabled="checked">Button</button>
</doc:source>
<doc:scenario>
it('should toggle button', function() {
expect(element('.doc-example-live :button').prop('disabled')).toBeFalsy();
input('checked').check();
expect(element('.doc-example-live :button').prop('disabled')).toBeTruthy();
});
</doc:scenario>
</doc:example>
*
* @element INPUT
* @param {expression} ngDisabled Angular expression that will be evaluated.
*/
/**
* @ngdoc directive
* @name ng.directive:ngChecked
* @restrict A
*
* @description
* The HTML specs do not require browsers to preserve the special attributes such as checked.
* (The presence of them means true and absence means false)
* This prevents the angular compiler from correctly retrieving the binding expression.
* To solve this problem, we introduce the `ngChecked` directive.
* @example
<doc:example>
<doc:source>
Check me to check both: <input type="checkbox" ng-model="master"><br/>
<input id="checkSlave" type="checkbox" ng-checked="master">
</doc:source>
<doc:scenario>
it('should check both checkBoxes', function() {
expect(element('.doc-example-live #checkSlave').prop('checked')).toBeFalsy();
input('master').check();
expect(element('.doc-example-live #checkSlave').prop('checked')).toBeTruthy();
});
</doc:scenario>
</doc:example>
*
* @element INPUT
* @param {expression} ngChecked Angular expression that will be evaluated.
*/
/**
* @ngdoc directive
* @name ng.directive:ngMultiple
* @restrict A
*
* @description
* The HTML specs do not require browsers to preserve the special attributes such as multiple.
* (The presence of them means true and absence means false)
* This prevents the angular compiler from correctly retrieving the binding expression.
* To solve this problem, we introduce the `ngMultiple` directive.
*
* @example
<doc:example>
<doc:source>
Check me check multiple: <input type="checkbox" ng-model="checked"><br/>
<select id="select" ng-multiple="checked">
<option>Misko</option>
<option>Igor</option>
<option>Vojta</option>
<option>Di</option>
</select>
</doc:source>
<doc:scenario>
it('should toggle multiple', function() {
expect(element('.doc-example-live #select').prop('multiple')).toBeFalsy();
input('checked').check();
expect(element('.doc-example-live #select').prop('multiple')).toBeTruthy();
});
</doc:scenario>
</doc:example>
*
* @element SELECT
* @param {expression} ngMultiple Angular expression that will be evaluated.
*/
/**
* @ngdoc directive
* @name ng.directive:ngReadonly
* @restrict A
*
* @description
* The HTML specs do not require browsers to preserve the special attributes such as readonly.
* (The presence of them means true and absence means false)
* This prevents the angular compiler from correctly retrieving the binding expression.
* To solve this problem, we introduce the `ngReadonly` directive.
* @example
<doc:example>
<doc:source>
Check me to make text readonly: <input type="checkbox" ng-model="checked"><br/>
<input type="text" ng-readonly="checked" value="I'm Angular"/>
</doc:source>
<doc:scenario>
it('should toggle readonly attr', function() {
expect(element('.doc-example-live :text').prop('readonly')).toBeFalsy();
input('checked').check();
expect(element('.doc-example-live :text').prop('readonly')).toBeTruthy();
});
</doc:scenario>
</doc:example>
*
* @element INPUT
* @param {string} expression Angular expression that will be evaluated.
*/
/**
* @ngdoc directive
* @name ng.directive:ngSelected
* @restrict A
*
* @description
* The HTML specs do not require browsers to preserve the special attributes such as selected.
* (The presence of them means true and absence means false)
* This prevents the angular compiler from correctly retrieving the binding expression.
* To solve this problem, we introduced the `ngSelected` directive.
* @example
<doc:example>
<doc:source>
Check me to select: <input type="checkbox" ng-model="selected"><br/>
<select>
<option>Hello!</option>
<option id="greet" ng-selected="selected">Greetings!</option>
</select>
</doc:source>
<doc:scenario>
it('should select Greetings!', function() {
expect(element('.doc-example-live #greet').prop('selected')).toBeFalsy();
input('selected').check();
expect(element('.doc-example-live #greet').prop('selected')).toBeTruthy();
});
</doc:scenario>
</doc:example>
*
* @element OPTION
* @param {string} expression Angular expression that will be evaluated.
*/
/**
* @ngdoc directive
* @name ng.directive:ngOpen
* @restrict A
*
* @description
* The HTML specs do not require browsers to preserve the special attributes such as open.
* (The presence of them means true and absence means false)
* This prevents the angular compiler from correctly retrieving the binding expression.
* To solve this problem, we introduce the `ngOpen` directive.
*
* @example
<doc:example>
<doc:source>
Check me check multiple: <input type="checkbox" ng-model="open"><br/>
<details id="details" ng-open="open">
<summary>Show/Hide me</summary>
</details>
</doc:source>
<doc:scenario>
it('should toggle open', function() {
expect(element('#details').prop('open')).toBeFalsy();
input('open').check();
expect(element('#details').prop('open')).toBeTruthy();
});
</doc:scenario>
</doc:example>
*
* @element DETAILS
* @param {string} expression Angular expression that will be evaluated.
*/
var ngAttributeAliasDirectives = {};
// boolean attrs are evaluated
forEach(BOOLEAN_ATTR, function(propName, attrName) {
var normalized = directiveNormalize('ng-' + attrName);
ngAttributeAliasDirectives[normalized] = function() {
return {
priority: 100,
compile: function() {
return function(scope, element, attr) {
scope.$watch(attr[normalized], function ngBooleanAttrWatchAction(value) {
attr.$set(attrName, !!value);
});
};
}
};
};
});
// ng-src, ng-srcset, ng-href are interpolated
forEach(['src', 'srcset', 'href'], function(attrName) {
var normalized = directiveNormalize('ng-' + attrName);
ngAttributeAliasDirectives[normalized] = function() {
return {
priority: 99, // it needs to run after the attributes are interpolated
link: function(scope, element, attr) {
attr.$observe(normalized, function(value) {
if (!value)
return;
attr.$set(attrName, value);
// on IE, if "ng:src" directive declaration is used and "src" attribute doesn't exist
// then calling element.setAttribute('src', 'foo') doesn't do anything, so we need
// to set the property as well to achieve the desired effect.
// we use attr[attrName] value since $set can sanitize the url.
if (msie) element.prop(attrName, attr[attrName]);
});
}
};
};
});
var nullFormCtrl = {
$addControl: noop,
$removeControl: noop,
$setValidity: noop,
$setDirty: noop,
$setPristine: noop
};
/**
* @ngdoc object
* @name ng.directive:form.FormController
*
* @property {boolean} $pristine True if user has not interacted with the form yet.
* @property {boolean} $dirty True if user has already interacted with the form.
* @property {boolean} $valid True if all of the containing forms and controls are valid.
* @property {boolean} $invalid True if at least one containing control or form is invalid.
*
* @property {Object} $error Is an object hash, containing references to all invalid controls or
* forms, where:
*
* - keys are validation tokens (error names) — such as `required`, `url` or `email`),
* - values are arrays of controls or forms that are invalid with given error.
*
* @description
* `FormController` keeps track of all its controls and nested forms as well as state of them,
* such as being valid/invalid or dirty/pristine.
*
* Each {@link ng.directive:form form} directive creates an instance
* of `FormController`.
*
*/
//asks for $scope to fool the BC controller module
FormController.$inject = ['$element', '$attrs', '$scope'];
function FormController(element, attrs) {
var form = this,
parentForm = element.parent().controller('form') || nullFormCtrl,
invalidCount = 0, // used to easily determine if we are valid
errors = form.$error = {},
controls = [];
// init state
form.$name = attrs.name;
form.$dirty = false;
form.$pristine = true;
form.$valid = true;
form.$invalid = false;
parentForm.$addControl(form);
// Setup initial state of the control
element.addClass(PRISTINE_CLASS);
toggleValidCss(true);
// convenience method for easy toggling of classes
function toggleValidCss(isValid, validationErrorKey) {
validationErrorKey = validationErrorKey ? '-' + snake_case(validationErrorKey, '-') : '';
element.
removeClass((isValid ? INVALID_CLASS : VALID_CLASS) + validationErrorKey).
addClass((isValid ? VALID_CLASS : INVALID_CLASS) + validationErrorKey);
}
form.$addControl = function(control) {
controls.push(control);
if (control.$name && !form.hasOwnProperty(control.$name)) {
form[control.$name] = control;
}
};
form.$removeControl = function(control) {
if (control.$name && form[control.$name] === control) {
delete form[control.$name];
}
forEach(errors, function(queue, validationToken) {
form.$setValidity(validationToken, true, control);
});
arrayRemove(controls, control);
};
form.$setValidity = function(validationToken, isValid, control) {
var queue = errors[validationToken];
if (isValid) {
if (queue) {
arrayRemove(queue, control);
if (!queue.length) {
invalidCount--;
if (!invalidCount) {
toggleValidCss(isValid);
form.$valid = true;
form.$invalid = false;
}
errors[validationToken] = false;
toggleValidCss(true, validationToken);
parentForm.$setValidity(validationToken, true, form);
}
}
} else {
if (!invalidCount) {
toggleValidCss(isValid);
}
if (queue) {
if (includes(queue, control)) return;
} else {
errors[validationToken] = queue = [];
invalidCount++;
toggleValidCss(false, validationToken);
parentForm.$setValidity(validationToken, false, form);
}
queue.push(control);
form.$valid = false;
form.$invalid = true;
}
};
form.$setDirty = function() {
element.removeClass(PRISTINE_CLASS).addClass(DIRTY_CLASS);
form.$dirty = true;
form.$pristine = false;
parentForm.$setDirty();
};
/**
* @ngdoc function
* @name ng.directive:form.FormController#$setPristine
* @methodOf ng.directive:form.FormController
*
* @description
* Sets the form to its pristine state.
*
* This method can be called to remove the 'ng-dirty' class and set the form to its pristine
* state (ng-pristine class). This method will also propagate to all the controls contained
* in this form.
*
* Setting a form back to a pristine state is often useful when we want to 'reuse' a form after
* saving or resetting it.
*/
form.$setPristine = function () {
element.removeClass(DIRTY_CLASS).addClass(PRISTINE_CLASS);
form.$dirty = false;
form.$pristine = true;
forEach(controls, function(control) {
control.$setPristine();
});
};
}
/**
* @ngdoc directive
* @name ng.directive:ngForm
* @restrict EAC
*
* @description
* Nestable alias of {@link ng.directive:form `form`} directive. HTML
* does not allow nesting of form elements. It is useful to nest forms, for example if the validity of a
* sub-group of controls needs to be determined.
*
* @param {string=} name|ngForm Name of the form. If specified, the form controller will be published into
* related scope, under this name.
*
*/
/**
* @ngdoc directive
* @name ng.directive:form
* @restrict E
*
* @description
* Directive that instantiates
* {@link ng.directive:form.FormController FormController}.
*
* If `name` attribute is specified, the form controller is published onto the current scope under
* this name.
*
* # Alias: {@link ng.directive:ngForm `ngForm`}
*
* In angular forms can be nested. This means that the outer form is valid when all of the child
* forms are valid as well. However browsers do not allow nesting of `<form>` elements, for this
* reason angular provides {@link ng.directive:ngForm `ngForm`} alias
* which behaves identical to `<form>` but allows form nesting.
*
*
* # CSS classes
* - `ng-valid` Is set if the form is valid.
* - `ng-invalid` Is set if the form is invalid.
* - `ng-pristine` Is set if the form is pristine.
* - `ng-dirty` Is set if the form is dirty.
*
*
* # Submitting a form and preventing default action
*
* Since the role of forms in client-side Angular applications is different than in classical
* roundtrip apps, it is desirable for the browser not to translate the form submission into a full
* page reload that sends the data to the server. Instead some javascript logic should be triggered
* to handle the form submission in application specific way.
*
* For this reason, Angular prevents the default action (form submission to the server) unless the
* `<form>` element has an `action` attribute specified.
*
* You can use one of the following two ways to specify what javascript method should be called when
* a form is submitted:
*
* - {@link ng.directive:ngSubmit ngSubmit} directive on the form element
* - {@link ng.directive:ngClick ngClick} directive on the first
* button or input field of type submit (input[type=submit])
*
* To prevent double execution of the handler, use only one of ngSubmit or ngClick directives. This
* is because of the following form submission rules coming from the html spec:
*
* - If a form has only one input field then hitting enter in this field triggers form submit
* (`ngSubmit`)
* - if a form has has 2+ input fields and no buttons or input[type=submit] then hitting enter
* doesn't trigger submit
* - if a form has one or more input fields and one or more buttons or input[type=submit] then
* hitting enter in any of the input fields will trigger the click handler on the *first* button or
* input[type=submit] (`ngClick`) *and* a submit handler on the enclosing form (`ngSubmit`)
*
* @param {string=} name Name of the form. If specified, the form controller will be published into
* related scope, under this name.
*
* @example
<doc:example>
<doc:source>
<script>
function Ctrl($scope) {
$scope.userType = 'guest';
}
</script>
<form name="myForm" ng-controller="Ctrl">
userType: <input name="input" ng-model="userType" required>
<span class="error" ng-show="myForm.input.$error.required">Required!</span><br>
<tt>userType = {{userType}}</tt><br>
<tt>myForm.input.$valid = {{myForm.input.$valid}}</tt><br>
<tt>myForm.input.$error = {{myForm.input.$error}}</tt><br>
<tt>myForm.$valid = {{myForm.$valid}}</tt><br>
<tt>myForm.$error.required = {{!!myForm.$error.required}}</tt><br>
</form>
</doc:source>
<doc:scenario>
it('should initialize to model', function() {
expect(binding('userType')).toEqual('guest');
expect(binding('myForm.input.$valid')).toEqual('true');
});
it('should be invalid if empty', function() {
input('userType').enter('');
expect(binding('userType')).toEqual('');
expect(binding('myForm.input.$valid')).toEqual('false');
});
</doc:scenario>
</doc:example>
*/
var formDirectiveFactory = function(isNgForm) {
return ['$timeout', function($timeout) {
var formDirective = {
name: 'form',
restrict: 'E',
controller: FormController,
compile: function() {
return {
pre: function(scope, formElement, attr, controller) {
if (!attr.action) {
// we can't use jq events because if a form is destroyed during submission the default
// action is not prevented. see #1238
//
// IE 9 is not affected because it doesn't fire a submit event and try to do a full
// page reload if the form was destroyed by submission of the form via a click handler
// on a button in the form. Looks like an IE9 specific bug.
var preventDefaultListener = function(event) {
event.preventDefault
? event.preventDefault()
: event.returnValue = false; // IE
};
addEventListenerFn(formElement[0], 'submit', preventDefaultListener);
// unregister the preventDefault listener so that we don't not leak memory but in a
// way that will achieve the prevention of the default action.
formElement.bind('$destroy', function() {
$timeout(function() {
removeEventListenerFn(formElement[0], 'submit', preventDefaultListener);
}, 0, false);
});
}
var parentFormCtrl = formElement.parent().controller('form'),
alias = attr.name || attr.ngForm;
if (alias) {
scope[alias] = controller;
}
if (parentFormCtrl) {
formElement.bind('$destroy', function() {
parentFormCtrl.$removeControl(controller);
if (alias) {
scope[alias] = undefined;
}
extend(controller, nullFormCtrl); //stop propagating child destruction handlers upwards
});
}
}
};
}
};
return isNgForm ? extend(copy(formDirective), {restrict: 'EAC'}) : formDirective;
}];
};
var formDirective = formDirectiveFactory();
var ngFormDirective = formDirectiveFactory(true);
var URL_REGEXP = /^(ftp|http|https):\/\/(\w+:{0,1}\w*@)?(\S+)(:[0-9]+)?(\/|\/([\w#!:.?+=&%@!\-\/]))?$/;
var EMAIL_REGEXP = /^[A-Za-z0-9._%+-]+@[A-Za-z0-9.-]+\.[A-Za-z]{2,4}$/;
var NUMBER_REGEXP = /^\s*(\-|\+)?(\d+|(\d*(\.\d*)))\s*$/;
var inputType = {
/**
* @ngdoc inputType
* @name ng.directive:input.text
*
* @description
* Standard HTML text input with angular data binding.
*
* @param {string} ngModel Assignable angular expression to data-bind to.
* @param {string=} name Property name of the form under which the control is published.
* @param {string=} required Adds `required` validation error key if the value is not entered.
* @param {string=} ngRequired Adds `required` attribute and `required` validation constraint to
* the element when the ngRequired expression evaluates to true. Use `ngRequired` instead of
* `required` when you want to data-bind to the `required` attribute.
* @param {number=} ngMinlength Sets `minlength` validation error key if the value is shorter than
* minlength.
* @param {number=} ngMaxlength Sets `maxlength` validation error key if the value is longer than
* maxlength.
* @param {string=} ngPattern Sets `pattern` validation error key if the value does not match the
* RegExp pattern expression. Expected value is `/regexp/` for inline patterns or `regexp` for
* patterns defined as scope expressions.
* @param {string=} ngChange Angular expression to be executed when input changes due to user
* interaction with the input element.
* @param {boolean=} [ngTrim=true] If set to false Angular will not automatically trimming the
* input.
*
* @example
<doc:example>
<doc:source>
<script>
function Ctrl($scope) {
$scope.text = 'guest';
$scope.word = /^\s*\w*\s*$/;
}
</script>
<form name="myForm" ng-controller="Ctrl">
Single word: <input type="text" name="input" ng-model="text"
ng-pattern="word" required ng-trim="false">
<span class="error" ng-show="myForm.input.$error.required">
Required!</span>
<span class="error" ng-show="myForm.input.$error.pattern">
Single word only!</span>
<tt>text = {{text}}</tt><br/>
<tt>myForm.input.$valid = {{myForm.input.$valid}}</tt><br/>
<tt>myForm.input.$error = {{myForm.input.$error}}</tt><br/>
<tt>myForm.$valid = {{myForm.$valid}}</tt><br/>
<tt>myForm.$error.required = {{!!myForm.$error.required}}</tt><br/>
</form>
</doc:source>
<doc:scenario>
it('should initialize to model', function() {
expect(binding('text')).toEqual('guest');
expect(binding('myForm.input.$valid')).toEqual('true');
});
it('should be invalid if empty', function() {
input('text').enter('');
expect(binding('text')).toEqual('');
expect(binding('myForm.input.$valid')).toEqual('false');
});
it('should be invalid if multi word', function() {
input('text').enter('hello world');
expect(binding('myForm.input.$valid')).toEqual('false');
});
it('should not be trimmed', function() {
input('text').enter('untrimmed ');
expect(binding('text')).toEqual('untrimmed ');
expect(binding('myForm.input.$valid')).toEqual('true');
});
</doc:scenario>
</doc:example>
*/
'text': textInputType,
/**
* @ngdoc inputType
* @name ng.directive:input.number
*
* @description
* Text input with number validation and transformation. Sets the `number` validation
* error if not a valid number.
*
* @param {string} ngModel Assignable angular expression to data-bind to.
* @param {string=} name Property name of the form under which the control is published.
* @param {string=} min Sets the `min` validation error key if the value entered is less than `min`.
* @param {string=} max Sets the `max` validation error key if the value entered is greater than `max`.
* @param {string=} required Sets `required` validation error key if the value is not entered.
* @param {string=} ngRequired Adds `required` attribute and `required` validation constraint to
* the element when the ngRequired expression evaluates to true. Use `ngRequired` instead of
* `required` when you want to data-bind to the `required` attribute.
* @param {number=} ngMinlength Sets `minlength` validation error key if the value is shorter than
* minlength.
* @param {number=} ngMaxlength Sets `maxlength` validation error key if the value is longer than
* maxlength.
* @param {string=} ngPattern Sets `pattern` validation error key if the value does not match the
* RegExp pattern expression. Expected value is `/regexp/` for inline patterns or `regexp` for
* patterns defined as scope expressions.
* @param {string=} ngChange Angular expression to be executed when input changes due to user
* interaction with the input element.
*
* @example
<doc:example>
<doc:source>
<script>
function Ctrl($scope) {
$scope.value = 12;
}
</script>
<form name="myForm" ng-controller="Ctrl">
Number: <input type="number" name="input" ng-model="value"
min="0" max="99" required>
<span class="error" ng-show="myForm.list.$error.required">
Required!</span>
<span class="error" ng-show="myForm.list.$error.number">
Not valid number!</span>
<tt>value = {{value}}</tt><br/>
<tt>myForm.input.$valid = {{myForm.input.$valid}}</tt><br/>
<tt>myForm.input.$error = {{myForm.input.$error}}</tt><br/>
<tt>myForm.$valid = {{myForm.$valid}}</tt><br/>
<tt>myForm.$error.required = {{!!myForm.$error.required}}</tt><br/>
</form>
</doc:source>
<doc:scenario>
it('should initialize to model', function() {
expect(binding('value')).toEqual('12');
expect(binding('myForm.input.$valid')).toEqual('true');
});
it('should be invalid if empty', function() {
input('value').enter('');
expect(binding('value')).toEqual('');
expect(binding('myForm.input.$valid')).toEqual('false');
});
it('should be invalid if over max', function() {
input('value').enter('123');
expect(binding('value')).toEqual('');
expect(binding('myForm.input.$valid')).toEqual('false');
});
</doc:scenario>
</doc:example>
*/
'number': numberInputType,
/**
* @ngdoc inputType
* @name ng.directive:input.url
*
* @description
* Text input with URL validation. Sets the `url` validation error key if the content is not a
* valid URL.
*
* @param {string} ngModel Assignable angular expression to data-bind to.
* @param {string=} name Property name of the form under which the control is published.
* @param {string=} required Sets `required` validation error key if the value is not entered.
* @param {string=} ngRequired Adds `required` attribute and `required` validation constraint to
* the element when the ngRequired expression evaluates to true. Use `ngRequired` instead of
* `required` when you want to data-bind to the `required` attribute.
* @param {number=} ngMinlength Sets `minlength` validation error key if the value is shorter than
* minlength.
* @param {number=} ngMaxlength Sets `maxlength` validation error key if the value is longer than
* maxlength.
* @param {string=} ngPattern Sets `pattern` validation error key if the value does not match the
* RegExp pattern expression. Expected value is `/regexp/` for inline patterns or `regexp` for
* patterns defined as scope expressions.
* @param {string=} ngChange Angular expression to be executed when input changes due to user
* interaction with the input element.
*
* @example
<doc:example>
<doc:source>
<script>
function Ctrl($scope) {
$scope.text = 'http://google.com';
}
</script>
<form name="myForm" ng-controller="Ctrl">
URL: <input type="url" name="input" ng-model="text" required>
<span class="error" ng-show="myForm.input.$error.required">
Required!</span>
<span class="error" ng-show="myForm.input.$error.url">
Not valid url!</span>
<tt>text = {{text}}</tt><br/>
<tt>myForm.input.$valid = {{myForm.input.$valid}}</tt><br/>
<tt>myForm.input.$error = {{myForm.input.$error}}</tt><br/>
<tt>myForm.$valid = {{myForm.$valid}}</tt><br/>
<tt>myForm.$error.required = {{!!myForm.$error.required}}</tt><br/>
<tt>myForm.$error.url = {{!!myForm.$error.url}}</tt><br/>
</form>
</doc:source>
<doc:scenario>
it('should initialize to model', function() {
expect(binding('text')).toEqual('http://google.com');
expect(binding('myForm.input.$valid')).toEqual('true');
});
it('should be invalid if empty', function() {
input('text').enter('');
expect(binding('text')).toEqual('');
expect(binding('myForm.input.$valid')).toEqual('false');
});
it('should be invalid if not url', function() {
input('text').enter('xxx');
expect(binding('myForm.input.$valid')).toEqual('false');
});
</doc:scenario>
</doc:example>
*/
'url': urlInputType,
/**
* @ngdoc inputType
* @name ng.directive:input.email
*
* @description
* Text input with email validation. Sets the `email` validation error key if not a valid email
* address.
*
* @param {string} ngModel Assignable angular expression to data-bind to.
* @param {string=} name Property name of the form under which the control is published.
* @param {string=} required Sets `required` validation error key if the value is not entered.
* @param {string=} ngRequired Adds `required` attribute and `required` validation constraint to
* the element when the ngRequired expression evaluates to true. Use `ngRequired` instead of
* `required` when you want to data-bind to the `required` attribute.
* @param {number=} ngMinlength Sets `minlength` validation error key if the value is shorter than
* minlength.
* @param {number=} ngMaxlength Sets `maxlength` validation error key if the value is longer than
* maxlength.
* @param {string=} ngPattern Sets `pattern` validation error key if the value does not match the
* RegExp pattern expression. Expected value is `/regexp/` for inline patterns or `regexp` for
* patterns defined as scope expressions.
*
* @example
<doc:example>
<doc:source>
<script>
function Ctrl($scope) {
$scope.text = 'me@example.com';
}
</script>
<form name="myForm" ng-controller="Ctrl">
Email: <input type="email" name="input" ng-model="text" required>
<span class="error" ng-show="myForm.input.$error.required">
Required!</span>
<span class="error" ng-show="myForm.input.$error.email">
Not valid email!</span>
<tt>text = {{text}}</tt><br/>
<tt>myForm.input.$valid = {{myForm.input.$valid}}</tt><br/>
<tt>myForm.input.$error = {{myForm.input.$error}}</tt><br/>
<tt>myForm.$valid = {{myForm.$valid}}</tt><br/>
<tt>myForm.$error.required = {{!!myForm.$error.required}}</tt><br/>
<tt>myForm.$error.email = {{!!myForm.$error.email}}</tt><br/>
</form>
</doc:source>
<doc:scenario>
it('should initialize to model', function() {
expect(binding('text')).toEqual('me@example.com');
expect(binding('myForm.input.$valid')).toEqual('true');
});
it('should be invalid if empty', function() {
input('text').enter('');
expect(binding('text')).toEqual('');
expect(binding('myForm.input.$valid')).toEqual('false');
});
it('should be invalid if not email', function() {
input('text').enter('xxx');
expect(binding('myForm.input.$valid')).toEqual('false');
});
</doc:scenario>
</doc:example>
*/
'email': emailInputType,
/**
* @ngdoc inputType
* @name ng.directive:input.radio
*
* @description
* HTML radio button.
*
* @param {string} ngModel Assignable angular expression to data-bind to.
* @param {string} value The value to which the expression should be set when selected.
* @param {string=} name Property name of the form under which the control is published.
* @param {string=} ngChange Angular expression to be executed when input changes due to user
* interaction with the input element.
*
* @example
<doc:example>
<doc:source>
<script>
function Ctrl($scope) {
$scope.color = 'blue';
}
</script>
<form name="myForm" ng-controller="Ctrl">
<input type="radio" ng-model="color" value="red"> Red <br/>
<input type="radio" ng-model="color" value="green"> Green <br/>
<input type="radio" ng-model="color" value="blue"> Blue <br/>
<tt>color = {{color}}</tt><br/>
</form>
</doc:source>
<doc:scenario>
it('should change state', function() {
expect(binding('color')).toEqual('blue');
input('color').select('red');
expect(binding('color')).toEqual('red');
});
</doc:scenario>
</doc:example>
*/
'radio': radioInputType,
/**
* @ngdoc inputType
* @name ng.directive:input.checkbox
*
* @description
* HTML checkbox.
*
* @param {string} ngModel Assignable angular expression to data-bind to.
* @param {string=} name Property name of the form under which the control is published.
* @param {string=} ngTrueValue The value to which the expression should be set when selected.
* @param {string=} ngFalseValue The value to which the expression should be set when not selected.
* @param {string=} ngChange Angular expression to be executed when input changes due to user
* interaction with the input element.
*
* @example
<doc:example>
<doc:source>
<script>
function Ctrl($scope) {
$scope.value1 = true;
$scope.value2 = 'YES'
}
</script>
<form name="myForm" ng-controller="Ctrl">
Value1: <input type="checkbox" ng-model="value1"> <br/>
Value2: <input type="checkbox" ng-model="value2"
ng-true-value="YES" ng-false-value="NO"> <br/>
<tt>value1 = {{value1}}</tt><br/>
<tt>value2 = {{value2}}</tt><br/>
</form>
</doc:source>
<doc:scenario>
it('should change state', function() {
expect(binding('value1')).toEqual('true');
expect(binding('value2')).toEqual('YES');
input('value1').check();
input('value2').check();
expect(binding('value1')).toEqual('false');
expect(binding('value2')).toEqual('NO');
});
</doc:scenario>
</doc:example>
*/
'checkbox': checkboxInputType,
'hidden': noop,
'button': noop,
'submit': noop,
'reset': noop
};
function isEmpty(value) {
return isUndefined(value) || value === '' || value === null || value !== value;
}
function textInputType(scope, element, attr, ctrl, $sniffer, $browser) {
var listener = function() {
var value = element.val();
// By default we will trim the value
// If the attribute ng-trim exists we will avoid trimming
// e.g. <input ng-model="foo" ng-trim="false">
if (toBoolean(attr.ngTrim || 'T')) {
value = trim(value);
}
if (ctrl.$viewValue !== value) {
scope.$apply(function() {
ctrl.$setViewValue(value);
});
}
};
// if the browser does support "input" event, we are fine - except on IE9 which doesn't fire the
// input event on backspace, delete or cut
if ($sniffer.hasEvent('input')) {
element.bind('input', listener);
} else {
var timeout;
var deferListener = function() {
if (!timeout) {
timeout = $browser.defer(function() {
listener();
timeout = null;
});
}
};
element.bind('keydown', function(event) {
var key = event.keyCode;
// ignore
// command modifiers arrows
if (key === 91 || (15 < key && key < 19) || (37 <= key && key <= 40)) return;
deferListener();
});
// if user paste into input using mouse, we need "change" event to catch it
element.bind('change', listener);
// if user modifies input value using context menu in IE, we need "paste" and "cut" events to catch it
if ($sniffer.hasEvent('paste')) {
element.bind('paste cut', deferListener);
}
}
ctrl.$render = function() {
element.val(isEmpty(ctrl.$viewValue) ? '' : ctrl.$viewValue);
};
// pattern validator
var pattern = attr.ngPattern,
patternValidator,
match;
var validate = function(regexp, value) {
if (isEmpty(value) || regexp.test(value)) {
ctrl.$setValidity('pattern', true);
return value;
} else {
ctrl.$setValidity('pattern', false);
return undefined;
}
};
if (pattern) {
match = pattern.match(/^\/(.*)\/([gim]*)$/);
if (match) {
pattern = new RegExp(match[1], match[2]);
patternValidator = function(value) {
return validate(pattern, value)
};
} else {
patternValidator = function(value) {
var patternObj = scope.$eval(pattern);
if (!patternObj || !patternObj.test) {
throw new Error('Expected ' + pattern + ' to be a RegExp but was ' + patternObj);
}
return validate(patternObj, value);
};
}
ctrl.$formatters.push(patternValidator);
ctrl.$parsers.push(patternValidator);
}
// min length validator
if (attr.ngMinlength) {
var minlength = int(attr.ngMinlength);
var minLengthValidator = function(value) {
if (!isEmpty(value) && value.length < minlength) {
ctrl.$setValidity('minlength', false);
return undefined;
} else {
ctrl.$setValidity('minlength', true);
return value;
}
};
ctrl.$parsers.push(minLengthValidator);
ctrl.$formatters.push(minLengthValidator);
}
// max length validator
if (attr.ngMaxlength) {
var maxlength = int(attr.ngMaxlength);
var maxLengthValidator = function(value) {
if (!isEmpty(value) && value.length > maxlength) {
ctrl.$setValidity('maxlength', false);
return undefined;
} else {
ctrl.$setValidity('maxlength', true);
return value;
}
};
ctrl.$parsers.push(maxLengthValidator);
ctrl.$formatters.push(maxLengthValidator);
}
}
function numberInputType(scope, element, attr, ctrl, $sniffer, $browser) {
textInputType(scope, element, attr, ctrl, $sniffer, $browser);
ctrl.$parsers.push(function(value) {
var empty = isEmpty(value);
if (empty || NUMBER_REGEXP.test(value)) {
ctrl.$setValidity('number', true);
return value === '' ? null : (empty ? value : parseFloat(value));
} else {
ctrl.$setValidity('number', false);
return undefined;
}
});
ctrl.$formatters.push(function(value) {
return isEmpty(value) ? '' : '' + value;
});
if (attr.min) {
var min = parseFloat(attr.min);
var minValidator = function(value) {
if (!isEmpty(value) && value < min) {
ctrl.$setValidity('min', false);
return undefined;
} else {
ctrl.$setValidity('min', true);
return value;
}
};
ctrl.$parsers.push(minValidator);
ctrl.$formatters.push(minValidator);
}
if (attr.max) {
var max = parseFloat(attr.max);
var maxValidator = function(value) {
if (!isEmpty(value) && value > max) {
ctrl.$setValidity('max', false);
return undefined;
} else {
ctrl.$setValidity('max', true);
return value;
}
};
ctrl.$parsers.push(maxValidator);
ctrl.$formatters.push(maxValidator);
}
ctrl.$formatters.push(function(value) {
if (isEmpty(value) || isNumber(value)) {
ctrl.$setValidity('number', true);
return value;
} else {
ctrl.$setValidity('number', false);
return undefined;
}
});
}
function urlInputType(scope, element, attr, ctrl, $sniffer, $browser) {
textInputType(scope, element, attr, ctrl, $sniffer, $browser);
var urlValidator = function(value) {
if (isEmpty(value) || URL_REGEXP.test(value)) {
ctrl.$setValidity('url', true);
return value;
} else {
ctrl.$setValidity('url', false);
return undefined;
}
};
ctrl.$formatters.push(urlValidator);
ctrl.$parsers.push(urlValidator);
}
function emailInputType(scope, element, attr, ctrl, $sniffer, $browser) {
textInputType(scope, element, attr, ctrl, $sniffer, $browser);
var emailValidator = function(value) {
if (isEmpty(value) || EMAIL_REGEXP.test(value)) {
ctrl.$setValidity('email', true);
return value;
} else {
ctrl.$setValidity('email', false);
return undefined;
}
};
ctrl.$formatters.push(emailValidator);
ctrl.$parsers.push(emailValidator);
}
function radioInputType(scope, element, attr, ctrl) {
// make the name unique, if not defined
if (isUndefined(attr.name)) {
element.attr('name', nextUid());
}
element.bind('click', function() {
if (element[0].checked) {
scope.$apply(function() {
ctrl.$setViewValue(attr.value);
});
}
});
ctrl.$render = function() {
var value = attr.value;
element[0].checked = (value == ctrl.$viewValue);
};
attr.$observe('value', ctrl.$render);
}
function checkboxInputType(scope, element, attr, ctrl) {
var trueValue = attr.ngTrueValue,
falseValue = attr.ngFalseValue;
if (!isString(trueValue)) trueValue = true;
if (!isString(falseValue)) falseValue = false;
element.bind('click', function() {
scope.$apply(function() {
ctrl.$setViewValue(element[0].checked);
});
});
ctrl.$render = function() {
element[0].checked = ctrl.$viewValue;
};
ctrl.$formatters.push(function(value) {
return value === trueValue;
});
ctrl.$parsers.push(function(value) {
return value ? trueValue : falseValue;
});
}
/**
* @ngdoc directive
* @name ng.directive:textarea
* @restrict E
*
* @description
* HTML textarea element control with angular data-binding. The data-binding and validation
* properties of this element are exactly the same as those of the
* {@link ng.directive:input input element}.
*
* @param {string} ngModel Assignable angular expression to data-bind to.
* @param {string=} name Property name of the form under which the control is published.
* @param {string=} required Sets `required` validation error key if the value is not entered.
* @param {string=} ngRequired Adds `required` attribute and `required` validation constraint to
* the element when the ngRequired expression evaluates to true. Use `ngRequired` instead of
* `required` when you want to data-bind to the `required` attribute.
* @param {number=} ngMinlength Sets `minlength` validation error key if the value is shorter than
* minlength.
* @param {number=} ngMaxlength Sets `maxlength` validation error key if the value is longer than
* maxlength.
* @param {string=} ngPattern Sets `pattern` validation error key if the value does not match the
* RegExp pattern expression. Expected value is `/regexp/` for inline patterns or `regexp` for
* patterns defined as scope expressions.
* @param {string=} ngChange Angular expression to be executed when input changes due to user
* interaction with the input element.
*/
/**
* @ngdoc directive
* @name ng.directive:input
* @restrict E
*
* @description
* HTML input element control with angular data-binding. Input control follows HTML5 input types
* and polyfills the HTML5 validation behavior for older browsers.
*
* @param {string} ngModel Assignable angular expression to data-bind to.
* @param {string=} name Property name of the form under which the control is published.
* @param {string=} required Sets `required` validation error key if the value is not entered.
* @param {boolean=} ngRequired Sets `required` attribute if set to true
* @param {number=} ngMinlength Sets `minlength` validation error key if the value is shorter than
* minlength.
* @param {number=} ngMaxlength Sets `maxlength` validation error key if the value is longer than
* maxlength.
* @param {string=} ngPattern Sets `pattern` validation error key if the value does not match the
* RegExp pattern expression. Expected value is `/regexp/` for inline patterns or `regexp` for
* patterns defined as scope expressions.
* @param {string=} ngChange Angular expression to be executed when input changes due to user
* interaction with the input element.
*
* @example
<doc:example>
<doc:source>
<script>
function Ctrl($scope) {
$scope.user = {name: 'guest', last: 'visitor'};
}
</script>
<div ng-controller="Ctrl">
<form name="myForm">
User name: <input type="text" name="userName" ng-model="user.name" required>
<span class="error" ng-show="myForm.userName.$error.required">
Required!</span><br>
Last name: <input type="text" name="lastName" ng-model="user.last"
ng-minlength="3" ng-maxlength="10">
<span class="error" ng-show="myForm.lastName.$error.minlength">
Too short!</span>
<span class="error" ng-show="myForm.lastName.$error.maxlength">
Too long!</span><br>
</form>
<hr>
<tt>user = {{user}}</tt><br/>
<tt>myForm.userName.$valid = {{myForm.userName.$valid}}</tt><br>
<tt>myForm.userName.$error = {{myForm.userName.$error}}</tt><br>
<tt>myForm.lastName.$valid = {{myForm.lastName.$valid}}</tt><br>
<tt>myForm.lastName.$error = {{myForm.lastName.$error}}</tt><br>
<tt>myForm.$valid = {{myForm.$valid}}</tt><br>
<tt>myForm.$error.required = {{!!myForm.$error.required}}</tt><br>
<tt>myForm.$error.minlength = {{!!myForm.$error.minlength}}</tt><br>
<tt>myForm.$error.maxlength = {{!!myForm.$error.maxlength}}</tt><br>
</div>
</doc:source>
<doc:scenario>
it('should initialize to model', function() {
expect(binding('user')).toEqual('{"name":"guest","last":"visitor"}');
expect(binding('myForm.userName.$valid')).toEqual('true');
expect(binding('myForm.$valid')).toEqual('true');
});
it('should be invalid if empty when required', function() {
input('user.name').enter('');
expect(binding('user')).toEqual('{"last":"visitor"}');
expect(binding('myForm.userName.$valid')).toEqual('false');
expect(binding('myForm.$valid')).toEqual('false');
});
it('should be valid if empty when min length is set', function() {
input('user.last').enter('');
expect(binding('user')).toEqual('{"name":"guest","last":""}');
expect(binding('myForm.lastName.$valid')).toEqual('true');
expect(binding('myForm.$valid')).toEqual('true');
});
it('should be invalid if less than required min length', function() {
input('user.last').enter('xx');
expect(binding('user')).toEqual('{"name":"guest"}');
expect(binding('myForm.lastName.$valid')).toEqual('false');
expect(binding('myForm.lastName.$error')).toMatch(/minlength/);
expect(binding('myForm.$valid')).toEqual('false');
});
it('should be invalid if longer than max length', function() {
input('user.last').enter('some ridiculously long name');
expect(binding('user'))
.toEqual('{"name":"guest"}');
expect(binding('myForm.lastName.$valid')).toEqual('false');
expect(binding('myForm.lastName.$error')).toMatch(/maxlength/);
expect(binding('myForm.$valid')).toEqual('false');
});
</doc:scenario>
</doc:example>
*/
var inputDirective = ['$browser', '$sniffer', function($browser, $sniffer) {
return {
restrict: 'E',
require: '?ngModel',
link: function(scope, element, attr, ctrl) {
if (ctrl) {
(inputType[lowercase(attr.type)] || inputType.text)(scope, element, attr, ctrl, $sniffer,
$browser);
}
}
};
}];
var VALID_CLASS = 'ng-valid',
INVALID_CLASS = 'ng-invalid',
PRISTINE_CLASS = 'ng-pristine',
DIRTY_CLASS = 'ng-dirty';
/**
* @ngdoc object
* @name ng.directive:ngModel.NgModelController
*
* @property {string} $viewValue Actual string value in the view.
* @property {*} $modelValue The value in the model, that the control is bound to.
* @property {Array.<Function>} $parsers Whenever the control reads value from the DOM, it executes
* all of these functions to sanitize / convert the value as well as validate.
*
* @property {Array.<Function>} $formatters Whenever the model value changes, it executes all of
* these functions to convert the value as well as validate.
*
* @property {Object} $error An object hash with all errors as keys.
*
* @property {boolean} $pristine True if user has not interacted with the control yet.
* @property {boolean} $dirty True if user has already interacted with the control.
* @property {boolean} $valid True if there is no error.
* @property {boolean} $invalid True if at least one error on the control.
*
* @description
*
* `NgModelController` provides API for the `ng-model` directive. The controller contains
* services for data-binding, validation, CSS update, value formatting and parsing. It
* specifically does not contain any logic which deals with DOM rendering or listening to
* DOM events. The `NgModelController` is meant to be extended by other directives where, the
* directive provides DOM manipulation and the `NgModelController` provides the data-binding.
*
* This example shows how to use `NgModelController` with a custom control to achieve
* data-binding. Notice how different directives (`contenteditable`, `ng-model`, and `required`)
* collaborate together to achieve the desired result.
*
* <example module="customControl">
<file name="style.css">
[contenteditable] {
border: 1px solid black;
background-color: white;
min-height: 20px;
}
.ng-invalid {
border: 1px solid red;
}
</file>
<file name="script.js">
angular.module('customControl', []).
directive('contenteditable', function() {
return {
restrict: 'A', // only activate on element attribute
require: '?ngModel', // get a hold of NgModelController
link: function(scope, element, attrs, ngModel) {
if(!ngModel) return; // do nothing if no ng-model
// Specify how UI should be updated
ngModel.$render = function() {
element.html(ngModel.$viewValue || '');
};
// Listen for change events to enable binding
element.bind('blur keyup change', function() {
scope.$apply(read);
});
read(); // initialize
// Write data to the model
function read() {
ngModel.$setViewValue(element.html());
}
}
};
});
</file>
<file name="index.html">
<form name="myForm">
<div contenteditable
name="myWidget" ng-model="userContent"
required>Change me!</div>
<span ng-show="myForm.myWidget.$error.required">Required!</span>
<hr>
<textarea ng-model="userContent"></textarea>
</form>
</file>
<file name="scenario.js">
it('should data-bind and become invalid', function() {
var contentEditable = element('[contenteditable]');
expect(contentEditable.text()).toEqual('Change me!');
input('userContent').enter('');
expect(contentEditable.text()).toEqual('');
expect(contentEditable.prop('className')).toMatch(/ng-invalid-required/);
});
</file>
* </example>
*
*/
var NgModelController = ['$scope', '$exceptionHandler', '$attrs', '$element', '$parse',
function($scope, $exceptionHandler, $attr, $element, $parse) {
this.$viewValue = Number.NaN;
this.$modelValue = Number.NaN;
this.$parsers = [];
this.$formatters = [];
this.$viewChangeListeners = [];
this.$pristine = true;
this.$dirty = false;
this.$valid = true;
this.$invalid = false;
this.$name = $attr.name;
var ngModelGet = $parse($attr.ngModel),
ngModelSet = ngModelGet.assign;
if (!ngModelSet) {
throw Error(NON_ASSIGNABLE_MODEL_EXPRESSION + $attr.ngModel +
' (' + startingTag($element) + ')');
}
/**
* @ngdoc function
* @name ng.directive:ngModel.NgModelController#$render
* @methodOf ng.directive:ngModel.NgModelController
*
* @description
* Called when the view needs to be updated. It is expected that the user of the ng-model
* directive will implement this method.
*/
this.$render = noop;
var parentForm = $element.inheritedData('$formController') || nullFormCtrl,
invalidCount = 0, // used to easily determine if we are valid
$error = this.$error = {}; // keep invalid keys here
// Setup initial state of the control
$element.addClass(PRISTINE_CLASS);
toggleValidCss(true);
// convenience method for easy toggling of classes
function toggleValidCss(isValid, validationErrorKey) {
validationErrorKey = validationErrorKey ? '-' + snake_case(validationErrorKey, '-') : '';
$element.
removeClass((isValid ? INVALID_CLASS : VALID_CLASS) + validationErrorKey).
addClass((isValid ? VALID_CLASS : INVALID_CLASS) + validationErrorKey);
}
/**
* @ngdoc function
* @name ng.directive:ngModel.NgModelController#$setValidity
* @methodOf ng.directive:ngModel.NgModelController
*
* @description
* Change the validity state, and notifies the form when the control changes validity. (i.e. it
* does not notify form if given validator is already marked as invalid).
*
* This method should be called by validators - i.e. the parser or formatter functions.
*
* @param {string} validationErrorKey Name of the validator. the `validationErrorKey` will assign
* to `$error[validationErrorKey]=isValid` so that it is available for data-binding.
* The `validationErrorKey` should be in camelCase and will get converted into dash-case
* for class name. Example: `myError` will result in `ng-valid-my-error` and `ng-invalid-my-error`
* class and can be bound to as `{{someForm.someControl.$error.myError}}` .
* @param {boolean} isValid Whether the current state is valid (true) or invalid (false).
*/
this.$setValidity = function(validationErrorKey, isValid) {
if ($error[validationErrorKey] === !isValid) return;
if (isValid) {
if ($error[validationErrorKey]) invalidCount--;
if (!invalidCount) {
toggleValidCss(true);
this.$valid = true;
this.$invalid = false;
}
} else {
toggleValidCss(false);
this.$invalid = true;
this.$valid = false;
invalidCount++;
}
$error[validationErrorKey] = !isValid;
toggleValidCss(isValid, validationErrorKey);
parentForm.$setValidity(validationErrorKey, isValid, this);
};
/**
* @ngdoc function
* @name ng.directive:ngModel.NgModelController#$setPristine
* @methodOf ng.directive:ngModel.NgModelController
*
* @description
* Sets the control to its pristine state.
*
* This method can be called to remove the 'ng-dirty' class and set the control to its pristine
* state (ng-pristine class).
*/
this.$setPristine = function () {
this.$dirty = false;
this.$pristine = true;
$element.removeClass(DIRTY_CLASS).addClass(PRISTINE_CLASS);
};
/**
* @ngdoc function
* @name ng.directive:ngModel.NgModelController#$setViewValue
* @methodOf ng.directive:ngModel.NgModelController
*
* @description
* Read a value from view.
*
* This method should be called from within a DOM event handler.
* For example {@link ng.directive:input input} or
* {@link ng.directive:select select} directives call it.
*
* It internally calls all `parsers` and if resulted value is valid, updates the model and
* calls all registered change listeners.
*
* @param {string} value Value from the view.
*/
this.$setViewValue = function(value) {
this.$viewValue = value;
// change to dirty
if (this.$pristine) {
this.$dirty = true;
this.$pristine = false;
$element.removeClass(PRISTINE_CLASS).addClass(DIRTY_CLASS);
parentForm.$setDirty();
}
forEach(this.$parsers, function(fn) {
value = fn(value);
});
if (this.$modelValue !== value) {
this.$modelValue = value;
ngModelSet($scope, value);
forEach(this.$viewChangeListeners, function(listener) {
try {
listener();
} catch(e) {
$exceptionHandler(e);
}
})
}
};
// model -> value
var ctrl = this;
$scope.$watch(function ngModelWatch() {
var value = ngModelGet($scope);
// if scope model value and ngModel value are out of sync
if (ctrl.$modelValue !== value) {
var formatters = ctrl.$formatters,
idx = formatters.length;
ctrl.$modelValue = value;
while(idx--) {
value = formatters[idx](value);
}
if (ctrl.$viewValue !== value) {
ctrl.$viewValue = value;
ctrl.$render();
}
}
});
}];
/**
* @ngdoc directive
* @name ng.directive:ngModel
*
* @element input
*
* @description
* Is directive that tells Angular to do two-way data binding. It works together with `input`,
* `select`, `textarea`. You can easily write your own directives to use `ngModel` as well.
*
* `ngModel` is responsible for:
*
* - binding the view into the model, which other directives such as `input`, `textarea` or `select`
* require,
* - providing validation behavior (i.e. required, number, email, url),
* - keeping state of the control (valid/invalid, dirty/pristine, validation errors),
* - setting related css class onto the element (`ng-valid`, `ng-invalid`, `ng-dirty`, `ng-pristine`),
* - register the control with parent {@link ng.directive:form form}.
*
* For basic examples, how to use `ngModel`, see:
*
* - {@link ng.directive:input input}
* - {@link ng.directive:input.text text}
* - {@link ng.directive:input.checkbox checkbox}
* - {@link ng.directive:input.radio radio}
* - {@link ng.directive:input.number number}
* - {@link ng.directive:input.email email}
* - {@link ng.directive:input.url url}
* - {@link ng.directive:select select}
* - {@link ng.directive:textarea textarea}
*
*/
var ngModelDirective = function() {
return {
require: ['ngModel', '^?form'],
controller: NgModelController,
link: function(scope, element, attr, ctrls) {
// notify others, especially parent forms
var modelCtrl = ctrls[0],
formCtrl = ctrls[1] || nullFormCtrl;
formCtrl.$addControl(modelCtrl);
element.bind('$destroy', function() {
formCtrl.$removeControl(modelCtrl);
});
}
};
};
/**
* @ngdoc directive
* @name ng.directive:ngChange
* @restrict E
*
* @description
* Evaluate given expression when user changes the input.
* The expression is not evaluated when the value change is coming from the model.
*
* Note, this directive requires `ngModel` to be present.
*
* @element input
*
* @example
* <doc:example>
* <doc:source>
* <script>
* function Controller($scope) {
* $scope.counter = 0;
* $scope.change = function() {
* $scope.counter++;
* };
* }
* </script>
* <div ng-controller="Controller">
* <input type="checkbox" ng-model="confirmed" ng-change="change()" id="ng-change-example1" />
* <input type="checkbox" ng-model="confirmed" id="ng-change-example2" />
* <label for="ng-change-example2">Confirmed</label><br />
* debug = {{confirmed}}<br />
* counter = {{counter}}
* </div>
* </doc:source>
* <doc:scenario>
* it('should evaluate the expression if changing from view', function() {
* expect(binding('counter')).toEqual('0');
* element('#ng-change-example1').click();
* expect(binding('counter')).toEqual('1');
* expect(binding('confirmed')).toEqual('true');
* });
*
* it('should not evaluate the expression if changing from model', function() {
* element('#ng-change-example2').click();
* expect(binding('counter')).toEqual('0');
* expect(binding('confirmed')).toEqual('true');
* });
* </doc:scenario>
* </doc:example>
*/
var ngChangeDirective = valueFn({
require: 'ngModel',
link: function(scope, element, attr, ctrl) {
ctrl.$viewChangeListeners.push(function() {
scope.$eval(attr.ngChange);
});
}
});
var requiredDirective = function() {
return {
require: '?ngModel',
link: function(scope, elm, attr, ctrl) {
if (!ctrl) return;
attr.required = true; // force truthy in case we are on non input element
var validator = function(value) {
if (attr.required && (isEmpty(value) || value === false)) {
ctrl.$setValidity('required', false);
return;
} else {
ctrl.$setValidity('required', true);
return value;
}
};
ctrl.$formatters.push(validator);
ctrl.$parsers.unshift(validator);
attr.$observe('required', function() {
validator(ctrl.$viewValue);
});
}
};
};
/**
* @ngdoc directive
* @name ng.directive:ngList
*
* @description
* Text input that converts between comma-separated string into an array of strings.
*
* @element input
* @param {string=} ngList optional delimiter that should be used to split the value. If
* specified in form `/something/` then the value will be converted into a regular expression.
*
* @example
<doc:example>
<doc:source>
<script>
function Ctrl($scope) {
$scope.names = ['igor', 'misko', 'vojta'];
}
</script>
<form name="myForm" ng-controller="Ctrl">
List: <input name="namesInput" ng-model="names" ng-list required>
<span class="error" ng-show="myForm.list.$error.required">
Required!</span>
<tt>names = {{names}}</tt><br/>
<tt>myForm.namesInput.$valid = {{myForm.namesInput.$valid}}</tt><br/>
<tt>myForm.namesInput.$error = {{myForm.namesInput.$error}}</tt><br/>
<tt>myForm.$valid = {{myForm.$valid}}</tt><br/>
<tt>myForm.$error.required = {{!!myForm.$error.required}}</tt><br/>
</form>
</doc:source>
<doc:scenario>
it('should initialize to model', function() {
expect(binding('names')).toEqual('["igor","misko","vojta"]');
expect(binding('myForm.namesInput.$valid')).toEqual('true');
});
it('should be invalid if empty', function() {
input('names').enter('');
expect(binding('names')).toEqual('[]');
expect(binding('myForm.namesInput.$valid')).toEqual('false');
});
</doc:scenario>
</doc:example>
*/
var ngListDirective = function() {
return {
require: 'ngModel',
link: function(scope, element, attr, ctrl) {
var match = /\/(.*)\//.exec(attr.ngList),
separator = match && new RegExp(match[1]) || attr.ngList || ',';
var parse = function(viewValue) {
var list = [];
if (viewValue) {
forEach(viewValue.split(separator), function(value) {
if (value) list.push(trim(value));
});
}
return list;
};
ctrl.$parsers.push(parse);
ctrl.$formatters.push(function(value) {
if (isArray(value)) {
return value.join(', ');
}
return undefined;
});
}
};
};
var CONSTANT_VALUE_REGEXP = /^(true|false|\d+)$/;
var ngValueDirective = function() {
return {
priority: 100,
compile: function(tpl, tplAttr) {
if (CONSTANT_VALUE_REGEXP.test(tplAttr.ngValue)) {
return function(scope, elm, attr) {
attr.$set('value', scope.$eval(attr.ngValue));
};
} else {
return function(scope, elm, attr) {
scope.$watch(attr.ngValue, function valueWatchAction(value) {
attr.$set('value', value, false);
});
};
}
}
};
};
/**
* @ngdoc directive
* @name ng.directive:ngBind
*
* @description
* The `ngBind` attribute tells Angular to replace the text content of the specified HTML element
* with the value of a given expression, and to update the text content when the value of that
* expression changes.
*
* Typically, you don't use `ngBind` directly, but instead you use the double curly markup like
* `{{ expression }}` which is similar but less verbose.
*
* One scenario in which the use of `ngBind` is preferred over `{{ expression }}` binding is when
* it's desirable to put bindings into template that is momentarily displayed by the browser in its
* raw state before Angular compiles it. Since `ngBind` is an element attribute, it makes the
* bindings invisible to the user while the page is loading.
*
* An alternative solution to this problem would be using the
* {@link ng.directive:ngCloak ngCloak} directive.
*
*
* @element ANY
* @param {expression} ngBind {@link guide/expression Expression} to evaluate.
*
* @example
* Enter a name in the Live Preview text box; the greeting below the text box changes instantly.
<doc:example>
<doc:source>
<script>
function Ctrl($scope) {
$scope.name = 'Whirled';
}
</script>
<div ng-controller="Ctrl">
Enter name: <input type="text" ng-model="name"><br>
Hello <span ng-bind="name"></span>!
</div>
</doc:source>
<doc:scenario>
it('should check ng-bind', function() {
expect(using('.doc-example-live').binding('name')).toBe('Whirled');
using('.doc-example-live').input('name').enter('world');
expect(using('.doc-example-live').binding('name')).toBe('world');
});
</doc:scenario>
</doc:example>
*/
var ngBindDirective = ngDirective(function(scope, element, attr) {
element.addClass('ng-binding').data('$binding', attr.ngBind);
scope.$watch(attr.ngBind, function ngBindWatchAction(value) {
element.text(value == undefined ? '' : value);
});
});
/**
* @ngdoc directive
* @name ng.directive:ngBindTemplate
*
* @description
* The `ngBindTemplate` directive specifies that the element
* text should be replaced with the template in ngBindTemplate.
* Unlike ngBind the ngBindTemplate can contain multiple `{{` `}}`
* expressions. (This is required since some HTML elements
* can not have SPAN elements such as TITLE, or OPTION to name a few.)
*
* @element ANY
* @param {string} ngBindTemplate template of form
* <tt>{{</tt> <tt>expression</tt> <tt>}}</tt> to eval.
*
* @example
* Try it here: enter text in text box and watch the greeting change.
<doc:example>
<doc:source>
<script>
function Ctrl($scope) {
$scope.salutation = 'Hello';
$scope.name = 'World';
}
</script>
<div ng-controller="Ctrl">
Salutation: <input type="text" ng-model="salutation"><br>
Name: <input type="text" ng-model="name"><br>
<pre ng-bind-template="{{salutation}} {{name}}!"></pre>
</div>
</doc:source>
<doc:scenario>
it('should check ng-bind', function() {
expect(using('.doc-example-live').binding('salutation')).
toBe('Hello');
expect(using('.doc-example-live').binding('name')).
toBe('World');
using('.doc-example-live').input('salutation').enter('Greetings');
using('.doc-example-live').input('name').enter('user');
expect(using('.doc-example-live').binding('salutation')).
toBe('Greetings');
expect(using('.doc-example-live').binding('name')).
toBe('user');
});
</doc:scenario>
</doc:example>
*/
var ngBindTemplateDirective = ['$interpolate', function($interpolate) {
return function(scope, element, attr) {
// TODO: move this to scenario runner
var interpolateFn = $interpolate(element.attr(attr.$attr.ngBindTemplate));
element.addClass('ng-binding').data('$binding', interpolateFn);
attr.$observe('ngBindTemplate', function(value) {
element.text(value);
});
}
}];
/**
* @ngdoc directive
* @name ng.directive:ngBindHtmlUnsafe
*
* @description
* Creates a binding that will innerHTML the result of evaluating the `expression` into the current
* element. *The innerHTML-ed content will not be sanitized!* You should use this directive only if
* {@link ngSanitize.directive:ngBindHtml ngBindHtml} directive is too
* restrictive and when you absolutely trust the source of the content you are binding to.
*
* See {@link ngSanitize.$sanitize $sanitize} docs for examples.
*
* @element ANY
* @param {expression} ngBindHtmlUnsafe {@link guide/expression Expression} to evaluate.
*/
var ngBindHtmlUnsafeDirective = [function() {
return function(scope, element, attr) {
element.addClass('ng-binding').data('$binding', attr.ngBindHtmlUnsafe);
scope.$watch(attr.ngBindHtmlUnsafe, function ngBindHtmlUnsafeWatchAction(value) {
element.html(value || '');
});
};
}];
function classDirective(name, selector) {
name = 'ngClass' + name;
return ngDirective(function(scope, element, attr) {
var oldVal = undefined;
scope.$watch(attr[name], ngClassWatchAction, true);
attr.$observe('class', function(value) {
var ngClass = scope.$eval(attr[name]);
ngClassWatchAction(ngClass, ngClass);
});
if (name !== 'ngClass') {
scope.$watch('$index', function($index, old$index) {
var mod = $index & 1;
if (mod !== old$index & 1) {
if (mod === selector) {
addClass(scope.$eval(attr[name]));
} else {
removeClass(scope.$eval(attr[name]));
}
}
});
}
function ngClassWatchAction(newVal) {
if (selector === true || scope.$index % 2 === selector) {
if (oldVal && !equals(newVal,oldVal)) {
removeClass(oldVal);
}
addClass(newVal);
}
oldVal = copy(newVal);
}
function removeClass(classVal) {
if (isObject(classVal) && !isArray(classVal)) {
classVal = map(classVal, function(v, k) { if (v) return k });
}
element.removeClass(isArray(classVal) ? classVal.join(' ') : classVal);
}
function addClass(classVal) {
if (isObject(classVal) && !isArray(classVal)) {
classVal = map(classVal, function(v, k) { if (v) return k });
}
if (classVal) {
element.addClass(isArray(classVal) ? classVal.join(' ') : classVal);
}
}
});
}
/**
* @ngdoc directive
* @name ng.directive:ngClass
*
* @description
* The `ngClass` allows you to set CSS class on HTML element dynamically by databinding an
* expression that represents all classes to be added.
*
* The directive won't add duplicate classes if a particular class was already set.
*
* When the expression changes, the previously added classes are removed and only then the
* new classes are added.
*
* @element ANY
* @param {expression} ngClass {@link guide/expression Expression} to eval. The result
* of the evaluation can be a string representing space delimited class
* names, an array, or a map of class names to boolean values.
*
* @example
<example>
<file name="index.html">
<input type="button" value="set" ng-click="myVar='my-class'">
<input type="button" value="clear" ng-click="myVar=''">
<br>
<span ng-class="myVar">Sample Text</span>
</file>
<file name="style.css">
.my-class {
color: red;
}
</file>
<file name="scenario.js">
it('should check ng-class', function() {
expect(element('.doc-example-live span').prop('className')).not().
toMatch(/my-class/);
using('.doc-example-live').element(':button:first').click();
expect(element('.doc-example-live span').prop('className')).
toMatch(/my-class/);
using('.doc-example-live').element(':button:last').click();
expect(element('.doc-example-live span').prop('className')).not().
toMatch(/my-class/);
});
</file>
</example>
*/
var ngClassDirective = classDirective('', true);
/**
* @ngdoc directive
* @name ng.directive:ngClassOdd
*
* @description
* The `ngClassOdd` and `ngClassEven` directives work exactly as
* {@link ng.directive:ngClass ngClass}, except it works in
* conjunction with `ngRepeat` and takes affect only on odd (even) rows.
*
* This directive can be applied only within a scope of an
* {@link ng.directive:ngRepeat ngRepeat}.
*
* @element ANY
* @param {expression} ngClassOdd {@link guide/expression Expression} to eval. The result
* of the evaluation can be a string representing space delimited class names or an array.
*
* @example
<example>
<file name="index.html">
<ol ng-init="names=['John', 'Mary', 'Cate', 'Suz']">
<li ng-repeat="name in names">
<span ng-class-odd="'odd'" ng-class-even="'even'">
{{name}}
</span>
</li>
</ol>
</file>
<file name="style.css">
.odd {
color: red;
}
.even {
color: blue;
}
</file>
<file name="scenario.js">
it('should check ng-class-odd and ng-class-even', function() {
expect(element('.doc-example-live li:first span').prop('className')).
toMatch(/odd/);
expect(element('.doc-example-live li:last span').prop('className')).
toMatch(/even/);
});
</file>
</example>
*/
var ngClassOddDirective = classDirective('Odd', 0);
/**
* @ngdoc directive
* @name ng.directive:ngClassEven
*
* @description
* The `ngClassOdd` and `ngClassEven` directives work exactly as
* {@link ng.directive:ngClass ngClass}, except it works in
* conjunction with `ngRepeat` and takes affect only on odd (even) rows.
*
* This directive can be applied only within a scope of an
* {@link ng.directive:ngRepeat ngRepeat}.
*
* @element ANY
* @param {expression} ngClassEven {@link guide/expression Expression} to eval. The
* result of the evaluation can be a string representing space delimited class names or an array.
*
* @example
<example>
<file name="index.html">
<ol ng-init="names=['John', 'Mary', 'Cate', 'Suz']">
<li ng-repeat="name in names">
<span ng-class-odd="'odd'" ng-class-even="'even'">
{{name}}
</span>
</li>
</ol>
</file>
<file name="style.css">
.odd {
color: red;
}
.even {
color: blue;
}
</file>
<file name="scenario.js">
it('should check ng-class-odd and ng-class-even', function() {
expect(element('.doc-example-live li:first span').prop('className')).
toMatch(/odd/);
expect(element('.doc-example-live li:last span').prop('className')).
toMatch(/even/);
});
</file>
</example>
*/
var ngClassEvenDirective = classDirective('Even', 1);
/**
* @ngdoc directive
* @name ng.directive:ngCloak
*
* @description
* The `ngCloak` directive is used to prevent the Angular html template from being briefly
* displayed by the browser in its raw (uncompiled) form while your application is loading. Use this
* directive to avoid the undesirable flicker effect caused by the html template display.
*
* The directive can be applied to the `<body>` element, but typically a fine-grained application is
* preferred in order to benefit from progressive rendering of the browser view.
*
* `ngCloak` works in cooperation with a css rule that is embedded within `angular.js` and
* `angular.min.js` files. Following is the css rule:
*
* <pre>
* [ng\:cloak], [ng-cloak], [data-ng-cloak], [x-ng-cloak], .ng-cloak, .x-ng-cloak {
* display: none;
* }
* </pre>
*
* When this css rule is loaded by the browser, all html elements (including their children) that
* are tagged with the `ng-cloak` directive are hidden. When Angular comes across this directive
* during the compilation of the template it deletes the `ngCloak` element attribute, which
* makes the compiled element visible.
*
* For the best result, `angular.js` script must be loaded in the head section of the html file;
* alternatively, the css rule (above) must be included in the external stylesheet of the
* application.
*
* Legacy browsers, like IE7, do not provide attribute selector support (added in CSS 2.1) so they
* cannot match the `[ng\:cloak]` selector. To work around this limitation, you must add the css
* class `ngCloak` in addition to `ngCloak` directive as shown in the example below.
*
* @element ANY
*
* @example
<doc:example>
<doc:source>
<div id="template1" ng-cloak>{{ 'hello' }}</div>
<div id="template2" ng-cloak class="ng-cloak">{{ 'hello IE7' }}</div>
</doc:source>
<doc:scenario>
it('should remove the template directive and css class', function() {
expect(element('.doc-example-live #template1').attr('ng-cloak')).
not().toBeDefined();
expect(element('.doc-example-live #template2').attr('ng-cloak')).
not().toBeDefined();
});
</doc:scenario>
</doc:example>
*
*/
var ngCloakDirective = ngDirective({
compile: function(element, attr) {
attr.$set('ngCloak', undefined);
element.removeClass('ng-cloak');
}
});
/**
* @ngdoc directive
* @name ng.directive:ngController
*
* @description
* The `ngController` directive assigns behavior to a scope. This is a key aspect of how angular
* supports the principles behind the Model-View-Controller design pattern.
*
* MVC components in angular:
*
* * Model — The Model is data in scope properties; scopes are attached to the DOM.
* * View — The template (HTML with data bindings) is rendered into the View.
* * Controller — The `ngController` directive specifies a Controller class; the class has
* methods that typically express the business logic behind the application.
*
* Note that an alternative way to define controllers is via the {@link ng.$route $route} service.
*
* @element ANY
* @scope
* @param {expression} ngController Name of a globally accessible constructor function or an
* {@link guide/expression expression} that on the current scope evaluates to a
* constructor function. The controller instance can further be published into the scope
* by adding `as localName` the controller name attribute.
*
* @example
* Here is a simple form for editing user contact information. Adding, removing, clearing, and
* greeting are methods declared on the controller (see source tab). These methods can
* easily be called from the angular markup. Notice that the scope becomes the `this` for the
* controller's instance. This allows for easy access to the view data from the controller. Also
* notice that any changes to the data are automatically reflected in the View without the need
* for a manual update. The example is included in two different declaration styles based on
* your style preferences.
<doc:example>
<doc:source>
<script>
function SettingsController() {
this.name = "John Smith";
this.contacts = [
{type: 'phone', value: '408 555 1212'},
{type: 'email', value: 'john.smith@example.org'} ];
};
SettingsController.prototype.greet = function() {
alert(this.name);
};
SettingsController.prototype.addContact = function() {
this.contacts.push({type: 'email', value: 'yourname@example.org'});
};
SettingsController.prototype.removeContact = function(contactToRemove) {
var index = this.contacts.indexOf(contactToRemove);
this.contacts.splice(index, 1);
};
SettingsController.prototype.clearContact = function(contact) {
contact.type = 'phone';
contact.value = '';
};
</script>
<div ng-controller="SettingsController as settings">
Name: <input type="text" ng-model="settings.name"/>
[ <a href="" ng-click="settings.greet()">greet</a> ]<br/>
Contact:
<ul>
<li ng-repeat="contact in settings.contacts">
<select ng-model="contact.type">
<option>phone</option>
<option>email</option>
</select>
<input type="text" ng-model="contact.value"/>
[ <a href="" ng-click="settings.clearContact(contact)">clear</a>
| <a href="" ng-click="settings.removeContact(contact)">X</a> ]
</li>
<li>[ <a href="" ng-click="settings.addContact()">add</a> ]</li>
</ul>
</div>
</doc:source>
<doc:scenario>
it('should check controller', function() {
expect(element('.doc-example-live div>:input').val()).toBe('John Smith');
expect(element('.doc-example-live li:nth-child(1) input').val())
.toBe('408 555 1212');
expect(element('.doc-example-live li:nth-child(2) input').val())
.toBe('john.smith@example.org');
element('.doc-example-live li:first a:contains("clear")').click();
expect(element('.doc-example-live li:first input').val()).toBe('');
element('.doc-example-live li:last a:contains("add")').click();
expect(element('.doc-example-live li:nth-child(3) input').val())
.toBe('yourname@example.org');
});
</doc:scenario>
</doc:example>
<doc:example>
<doc:source>
<script>
function SettingsController($scope) {
$scope.name = "John Smith";
$scope.contacts = [
{type:'phone', value:'408 555 1212'},
{type:'email', value:'john.smith@example.org'} ];
$scope.greet = function() {
alert(this.name);
};
$scope.addContact = function() {
this.contacts.push({type:'email', value:'yourname@example.org'});
};
$scope.removeContact = function(contactToRemove) {
var index = this.contacts.indexOf(contactToRemove);
this.contacts.splice(index, 1);
};
$scope.clearContact = function(contact) {
contact.type = 'phone';
contact.value = '';
};
}
</script>
<div ng-controller="SettingsController">
Name: <input type="text" ng-model="name"/>
[ <a href="" ng-click="greet()">greet</a> ]<br/>
Contact:
<ul>
<li ng-repeat="contact in contacts">
<select ng-model="contact.type">
<option>phone</option>
<option>email</option>
</select>
<input type="text" ng-model="contact.value"/>
[ <a href="" ng-click="clearContact(contact)">clear</a>
| <a href="" ng-click="removeContact(contact)">X</a> ]
</li>
<li>[ <a href="" ng-click="addContact()">add</a> ]</li>
</ul>
</div>
</doc:source>
<doc:scenario>
it('should check controller', function() {
expect(element('.doc-example-live div>:input').val()).toBe('John Smith');
expect(element('.doc-example-live li:nth-child(1) input').val())
.toBe('408 555 1212');
expect(element('.doc-example-live li:nth-child(2) input').val())
.toBe('john.smith@example.org');
element('.doc-example-live li:first a:contains("clear")').click();
expect(element('.doc-example-live li:first input').val()).toBe('');
element('.doc-example-live li:last a:contains("add")').click();
expect(element('.doc-example-live li:nth-child(3) input').val())
.toBe('yourname@example.org');
});
</doc:scenario>
</doc:example>
*/
var ngControllerDirective = [function() {
return {
scope: true,
controller: '@'
};
}];
/**
* @ngdoc directive
* @name ng.directive:ngCsp
* @priority 1000
*
* @element html
* @description
* Enables [CSP (Content Security Policy)](https://developer.mozilla.org/en/Security/CSP) support.
*
* This is necessary when developing things like Google Chrome Extensions.
*
* CSP forbids apps to use `eval` or `Function(string)` generated functions (among other things).
* For us to be compatible, we just need to implement the "getterFn" in $parse without violating
* any of these restrictions.
*
* AngularJS uses `Function(string)` generated functions as a speed optimization. By applying `ngCsp`
* it is be possible to opt into the CSP compatible mode. When this mode is on AngularJS will
* evaluate all expressions up to 30% slower than in non-CSP mode, but no security violations will
* be raised.
*
* In order to use this feature put `ngCsp` directive on the root element of the application.
*
* @example
* This example shows how to apply the `ngCsp` directive to the `html` tag.
<pre>
<!doctype html>
<html ng-app ng-csp>
...
...
</html>
</pre>
*/
var ngCspDirective = ['$sniffer', function($sniffer) {
return {
priority: 1000,
compile: function() {
$sniffer.csp = true;
}
};
}];
/**
* @ngdoc directive
* @name ng.directive:ngClick
*
* @description
* The ngClick allows you to specify custom behavior when
* element is clicked.
*
* @element ANY
* @param {expression} ngClick {@link guide/expression Expression} to evaluate upon
* click. (Event object is available as `$event`)
*
* @example
<doc:example>
<doc:source>
<button ng-click="count = count + 1" ng-init="count=0">
Increment
</button>
count: {{count}}
</doc:source>
<doc:scenario>
it('should check ng-click', function() {
expect(binding('count')).toBe('0');
element('.doc-example-live :button').click();
expect(binding('count')).toBe('1');
});
</doc:scenario>
</doc:example>
*/
/*
* A directive that allows creation of custom onclick handlers that are defined as angular
* expressions and are compiled and executed within the current scope.
*
* Events that are handled via these handler are always configured not to propagate further.
*/
var ngEventDirectives = {};
forEach(
'click dblclick mousedown mouseup mouseover mouseout mousemove mouseenter mouseleave keydown keyup keypress'.split(' '),
function(name) {
var directiveName = directiveNormalize('ng-' + name);
ngEventDirectives[directiveName] = ['$parse', function($parse) {
return function(scope, element, attr) {
var fn = $parse(attr[directiveName]);
element.bind(lowercase(name), function(event) {
scope.$apply(function() {
fn(scope, {$event:event});
});
});
};
}];
}
);
/**
* @ngdoc directive
* @name ng.directive:ngDblclick
*
* @description
* The `ngDblclick` directive allows you to specify custom behavior on dblclick event.
*
* @element ANY
* @param {expression} ngDblclick {@link guide/expression Expression} to evaluate upon
* dblclick. (Event object is available as `$event`)
*
* @example
* See {@link ng.directive:ngClick ngClick}
*/
/**
* @ngdoc directive
* @name ng.directive:ngMousedown
*
* @description
* The ngMousedown directive allows you to specify custom behavior on mousedown event.
*
* @element ANY
* @param {expression} ngMousedown {@link guide/expression Expression} to evaluate upon
* mousedown. (Event object is available as `$event`)
*
* @example
* See {@link ng.directive:ngClick ngClick}
*/
/**
* @ngdoc directive
* @name ng.directive:ngMouseup
*
* @description
* Specify custom behavior on mouseup event.
*
* @element ANY
* @param {expression} ngMouseup {@link guide/expression Expression} to evaluate upon
* mouseup. (Event object is available as `$event`)
*
* @example
* See {@link ng.directive:ngClick ngClick}
*/
/**
* @ngdoc directive
* @name ng.directive:ngMouseover
*
* @description
* Specify custom behavior on mouseover event.
*
* @element ANY
* @param {expression} ngMouseover {@link guide/expression Expression} to evaluate upon
* mouseover. (Event object is available as `$event`)
*
* @example
* See {@link ng.directive:ngClick ngClick}
*/
/**
* @ngdoc directive
* @name ng.directive:ngMouseenter
*
* @description
* Specify custom behavior on mouseenter event.
*
* @element ANY
* @param {expression} ngMouseenter {@link guide/expression Expression} to evaluate upon
* mouseenter. (Event object is available as `$event`)
*
* @example
* See {@link ng.directive:ngClick ngClick}
*/
/**
* @ngdoc directive
* @name ng.directive:ngMouseleave
*
* @description
* Specify custom behavior on mouseleave event.
*
* @element ANY
* @param {expression} ngMouseleave {@link guide/expression Expression} to evaluate upon
* mouseleave. (Event object is available as `$event`)
*
* @example
* See {@link ng.directive:ngClick ngClick}
*/
/**
* @ngdoc directive
* @name ng.directive:ngMousemove
*
* @description
* Specify custom behavior on mousemove event.
*
* @element ANY
* @param {expression} ngMousemove {@link guide/expression Expression} to evaluate upon
* mousemove. (Event object is available as `$event`)
*
* @example
* See {@link ng.directive:ngClick ngClick}
*/
/**
* @ngdoc directive
* @name ng.directive:ngKeydown
*
* @description
* Specify custom behavior on keydown event.
*
* @element ANY
* @param {expression} ngKeydown {@link guide/expression Expression} to evaluate upon
* keydown. (Event object is available as `$event` and can be interrogated for keyCode, altKey, etc.)
*
* @example
* See {@link ng.directive:ngClick ngClick}
*/
/**
* @ngdoc directive
* @name ng.directive:ngKeyup
*
* @description
* Specify custom behavior on keyup event.
*
* @element ANY
* @param {expression} ngKeyup {@link guide/expression Expression} to evaluate upon
* keyup. (Event object is available as `$event` and can be interrogated for keyCode, altKey, etc.)
*
* @example
* See {@link ng.directive:ngClick ngClick}
*/
/**
* @ngdoc directive
* @name ng.directive:ngKeypress
*
* @description
* Specify custom behavior on keypress event.
*
* @element ANY
* @param {expression} ngKeypress {@link guide/expression Expression} to evaluate upon
* keypress. (Event object is available as `$event` and can be interrogated for keyCode, altKey, etc.)
*
* @example
* See {@link ng.directive:ngClick ngClick}
*/
/**
* @ngdoc directive
* @name ng.directive:ngSubmit
*
* @description
* Enables binding angular expressions to onsubmit events.
*
* Additionally it prevents the default action (which for form means sending the request to the
* server and reloading the current page).
*
* @element form
* @param {expression} ngSubmit {@link guide/expression Expression} to eval.
*
* @example
<doc:example>
<doc:source>
<script>
function Ctrl($scope) {
$scope.list = [];
$scope.text = 'hello';
$scope.submit = function() {
if (this.text) {
this.list.push(this.text);
this.text = '';
}
};
}
</script>
<form ng-submit="submit()" ng-controller="Ctrl">
Enter text and hit enter:
<input type="text" ng-model="text" name="text" />
<input type="submit" id="submit" value="Submit" />
<pre>list={{list}}</pre>
</form>
</doc:source>
<doc:scenario>
it('should check ng-submit', function() {
expect(binding('list')).toBe('[]');
element('.doc-example-live #submit').click();
expect(binding('list')).toBe('["hello"]');
expect(input('text').val()).toBe('');
});
it('should ignore empty strings', function() {
expect(binding('list')).toBe('[]');
element('.doc-example-live #submit').click();
element('.doc-example-live #submit').click();
expect(binding('list')).toBe('["hello"]');
});
</doc:scenario>
</doc:example>
*/
var ngSubmitDirective = ngDirective(function(scope, element, attrs) {
element.bind('submit', function() {
scope.$apply(attrs.ngSubmit);
});
});
/**
* @ngdoc directive
* @name ng.directive:ngIf
* @restrict A
*
* @description
* The `ngIf` directive removes and recreates a portion of the DOM tree (HTML)
* conditionally based on **"falsy"** and **"truthy"** values, respectively, evaluated within
* an {expression}. In other words, if the expression assigned to **ngIf evaluates to a false
* value** then **the element is removed from the DOM** and **if true** then **a clone of the
* element is reinserted into the DOM**.
*
* `ngIf` differs from `ngShow` and `ngHide` in that `ngIf` completely removes and recreates the
* element in the DOM rather than changing its visibility via the `display` css property. A common
* case when this difference is significant is when using css selectors that rely on an element's
* position within the DOM (HTML), such as the `:first-child` or `:last-child` pseudo-classes.
*
* Note that **when an element is removed using ngIf its scope is destroyed** and **a new scope
* is created when the element is restored**. The scope created within `ngIf` inherits from
* its parent scope using
* {@link https://github.com/angular/angular.js/wiki/The-Nuances-of-Scope-Prototypal-Inheritance prototypal inheritance}.
* An important implication of this is if `ngModel` is used within `ngIf` to bind to
* a javascript primitive defined in the parent scope. In this case any modifications made to the
* variable within the child scope will override (hide) the value in the parent scope.
*
* Also, `ngIf` recreates elements using their compiled state. An example scenario of this behavior
* is if an element's class attribute is directly modified after it's compiled, using something like
* jQuery's `.addClass()` method, and the element is later removed. When `ngIf` recreates the element
* the added class will be lost because the original compiled state is used to regenerate the element.
*
* Additionally, you can provide animations via the ngAnimate attribute to animate the **enter**
* and **leave** effects.
*
* @animations
* enter - happens just after the ngIf contents change and a new DOM element is created and injected into the ngIf container
* leave - happens just before the ngIf contents are removed from the DOM
*
* @element ANY
* @scope
* @param {expression} ngIf If the {@link guide/expression expression} is falsy then
* the element is removed from the DOM tree (HTML).
*
* @example
<example animations="true">
<file name="index.html">
Click me: <input type="checkbox" ng-model="checked" ng-init="checked=true" /><br/>
Show when checked:
<span ng-if="checked" ng-animate="'example'">
I'm removed when the checkbox is unchecked.
</span>
</file>
<file name="animations.css">
.example-leave, .example-enter {
-webkit-transition:all cubic-bezier(0.250, 0.460, 0.450, 0.940) 0.5s;
-moz-transition:all cubic-bezier(0.250, 0.460, 0.450, 0.940) 0.5s;
-ms-transition:all cubic-bezier(0.250, 0.460, 0.450, 0.940) 0.5s;
-o-transition:all cubic-bezier(0.250, 0.460, 0.450, 0.940) 0.5s;
transition:all cubic-bezier(0.250, 0.460, 0.450, 0.940) 0.5s;
}
.example-enter {
opacity:0;
}
.example-enter.example-enter-active {
opacity:1;
}
.example-leave {
opacity:1;
}
.example-leave.example-leave-active {
opacity:0;
}
</file>
</example>
*/
var ngIfDirective = ['$animator', function($animator) {
return {
transclude: 'element',
priority: 1000,
terminal: true,
restrict: 'A',
compile: function (element, attr, transclude) {
return function ($scope, $element, $attr) {
var animate = $animator($scope, $attr);
var childElement, childScope;
$scope.$watch($attr.ngIf, function ngIfWatchAction(value) {
if (childElement) {
animate.leave(childElement);
childElement = undefined;
}
if (childScope) {
childScope.$destroy();
childScope = undefined;
}
if (toBoolean(value)) {
childScope = $scope.$new();
transclude(childScope, function (clone) {
childElement = clone;
animate.enter(clone, $element.parent(), $element);
});
}
});
}
}
}
}];
/**
* @ngdoc directive
* @name ng.directive:ngInclude
* @restrict ECA
*
* @description
* Fetches, compiles and includes an external HTML fragment.
*
* Keep in mind that Same Origin Policy applies to included resources
* (e.g. ngInclude won't work for cross-domain requests on all browsers and for
* file:// access on some browsers).
*
* Additionally, you can also provide animations via the ngAnimate attribute to animate the **enter**
* and **leave** effects.
*
* @animations
* enter - happens just after the ngInclude contents change and a new DOM element is created and injected into the ngInclude container
* leave - happens just after the ngInclude contents change and just before the former contents are removed from the DOM
*
* @scope
*
* @param {string} ngInclude|src angular expression evaluating to URL. If the source is a string constant,
* make sure you wrap it in quotes, e.g. `src="'myPartialTemplate.html'"`.
* @param {string=} onload Expression to evaluate when a new partial is loaded.
*
* @param {string=} autoscroll Whether `ngInclude` should call {@link ng.$anchorScroll
* $anchorScroll} to scroll the viewport after the content is loaded.
*
* - If the attribute is not set, disable scrolling.
* - If the attribute is set without value, enable scrolling.
* - Otherwise enable scrolling only if the expression evaluates to truthy value.
*
* @example
<example animations="true">
<file name="index.html">
<div ng-controller="Ctrl">
<select ng-model="template" ng-options="t.name for t in templates">
<option value="">(blank)</option>
</select>
url of the template: <tt>{{template.url}}</tt>
<hr/>
<div class="example-animate-container"
ng-include="template.url"
ng-animate="{enter: 'example-enter', leave: 'example-leave'}"></div>
</div>
</file>
<file name="script.js">
function Ctrl($scope) {
$scope.templates =
[ { name: 'template1.html', url: 'template1.html'}
, { name: 'template2.html', url: 'template2.html'} ];
$scope.template = $scope.templates[0];
}
</file>
<file name="template1.html">
<div>Content of template1.html</div>
</file>
<file name="template2.html">
<div>Content of template2.html</div>
</file>
<file name="animations.css">
.example-leave,
.example-enter {
-webkit-transition:all cubic-bezier(0.250, 0.460, 0.450, 0.940) 0.5s;
-moz-transition:all cubic-bezier(0.250, 0.460, 0.450, 0.940) 0.5s;
-ms-transition:all cubic-bezier(0.250, 0.460, 0.450, 0.940) 0.5s;
-o-transition:all cubic-bezier(0.250, 0.460, 0.450, 0.940) 0.5s;
transition:all cubic-bezier(0.250, 0.460, 0.450, 0.940) 0.5s;
position:absolute;
top:0;
left:0;
right:0;
bottom:0;
}
.example-animate-container > * {
display:block;
padding:10px;
}
.example-enter {
top:-50px;
}
.example-enter.example-enter-active {
top:0;
}
.example-leave {
top:0;
}
.example-leave.example-leave-active {
top:50px;
}
</file>
<file name="scenario.js">
it('should load template1.html', function() {
expect(element('.doc-example-live [ng-include]').text()).
toMatch(/Content of template1.html/);
});
it('should load template2.html', function() {
select('template').option('1');
expect(element('.doc-example-live [ng-include]').text()).
toMatch(/Content of template2.html/);
});
it('should change to blank', function() {
select('template').option('');
expect(element('.doc-example-live [ng-include]').text()).toEqual('');
});
</file>
</example>
*/
/**
* @ngdoc event
* @name ng.directive:ngInclude#$includeContentRequested
* @eventOf ng.directive:ngInclude
* @eventType emit on the scope ngInclude was declared in
* @description
* Emitted every time the ngInclude content is requested.
*/
/**
* @ngdoc event
* @name ng.directive:ngInclude#$includeContentLoaded
* @eventOf ng.directive:ngInclude
* @eventType emit on the current ngInclude scope
* @description
* Emitted every time the ngInclude content is reloaded.
*/
var ngIncludeDirective = ['$http', '$templateCache', '$anchorScroll', '$compile', '$animator',
function($http, $templateCache, $anchorScroll, $compile, $animator) {
return {
restrict: 'ECA',
terminal: true,
compile: function(element, attr) {
var srcExp = attr.ngInclude || attr.src,
onloadExp = attr.onload || '',
autoScrollExp = attr.autoscroll;
return function(scope, element, attr) {
var animate = $animator(scope, attr);
var changeCounter = 0,
childScope;
var clearContent = function() {
if (childScope) {
childScope.$destroy();
childScope = null;
}
animate.leave(element.contents(), element);
};
scope.$watch(srcExp, function ngIncludeWatchAction(src) {
var thisChangeId = ++changeCounter;
if (src) {
$http.get(src, {cache: $templateCache}).success(function(response) {
if (thisChangeId !== changeCounter) return;
if (childScope) childScope.$destroy();
childScope = scope.$new();
animate.leave(element.contents(), element);
var contents = jqLite('<div/>').html(response).contents();
animate.enter(contents, element);
$compile(contents)(childScope);
if (isDefined(autoScrollExp) && (!autoScrollExp || scope.$eval(autoScrollExp))) {
$anchorScroll();
}
childScope.$emit('$includeContentLoaded');
scope.$eval(onloadExp);
}).error(function() {
if (thisChangeId === changeCounter) clearContent();
});
scope.$emit('$includeContentRequested');
} else {
clearContent();
}
});
};
}
};
}];
/**
* @ngdoc directive
* @name ng.directive:ngInit
*
* @description
* The `ngInit` directive specifies initialization tasks to be executed
* before the template enters execution mode during bootstrap.
*
* @element ANY
* @param {expression} ngInit {@link guide/expression Expression} to eval.
*
* @example
<doc:example>
<doc:source>
<div ng-init="greeting='Hello'; person='World'">
{{greeting}} {{person}}!
</div>
</doc:source>
<doc:scenario>
it('should check greeting', function() {
expect(binding('greeting')).toBe('Hello');
expect(binding('person')).toBe('World');
});
</doc:scenario>
</doc:example>
*/
var ngInitDirective = ngDirective({
compile: function() {
return {
pre: function(scope, element, attrs) {
scope.$eval(attrs.ngInit);
}
}
}
});
/**
* @ngdoc directive
* @name ng.directive:ngNonBindable
* @priority 1000
*
* @description
* Sometimes it is necessary to write code which looks like bindings but which should be left alone
* by angular. Use `ngNonBindable` to make angular ignore a chunk of HTML.
*
* @element ANY
*
* @example
* In this example there are two location where a simple binding (`{{}}`) is present, but the one
* wrapped in `ngNonBindable` is left alone.
*
* @example
<doc:example>
<doc:source>
<div>Normal: {{1 + 2}}</div>
<div ng-non-bindable>Ignored: {{1 + 2}}</div>
</doc:source>
<doc:scenario>
it('should check ng-non-bindable', function() {
expect(using('.doc-example-live').binding('1 + 2')).toBe('3');
expect(using('.doc-example-live').element('div:last').text()).
toMatch(/1 \+ 2/);
});
</doc:scenario>
</doc:example>
*/
var ngNonBindableDirective = ngDirective({ terminal: true, priority: 1000 });
/**
* @ngdoc directive
* @name ng.directive:ngPluralize
* @restrict EA
*
* @description
* # Overview
* `ngPluralize` is a directive that displays messages according to en-US localization rules.
* These rules are bundled with angular.js and the rules can be overridden
* (see {@link guide/i18n Angular i18n} dev guide). You configure ngPluralize directive
* by specifying the mappings between
* {@link http://unicode.org/repos/cldr-tmp/trunk/diff/supplemental/language_plural_rules.html
* plural categories} and the strings to be displayed.
*
* # Plural categories and explicit number rules
* There are two
* {@link http://unicode.org/repos/cldr-tmp/trunk/diff/supplemental/language_plural_rules.html
* plural categories} in Angular's default en-US locale: "one" and "other".
*
* While a plural category may match many numbers (for example, in en-US locale, "other" can match
* any number that is not 1), an explicit number rule can only match one number. For example, the
* explicit number rule for "3" matches the number 3. You will see the use of plural categories
* and explicit number rules throughout later parts of this documentation.
*
* # Configuring ngPluralize
* You configure ngPluralize by providing 2 attributes: `count` and `when`.
* You can also provide an optional attribute, `offset`.
*
* The value of the `count` attribute can be either a string or an {@link guide/expression
* Angular expression}; these are evaluated on the current scope for its bound value.
*
* The `when` attribute specifies the mappings between plural categories and the actual
* string to be displayed. The value of the attribute should be a JSON object so that Angular
* can interpret it correctly.
*
* The following example shows how to configure ngPluralize:
*
* <pre>
* <ng-pluralize count="personCount"
when="{'0': 'Nobody is viewing.',
* 'one': '1 person is viewing.',
* 'other': '{} people are viewing.'}">
* </ng-pluralize>
*</pre>
*
* In the example, `"0: Nobody is viewing."` is an explicit number rule. If you did not
* specify this rule, 0 would be matched to the "other" category and "0 people are viewing"
* would be shown instead of "Nobody is viewing". You can specify an explicit number rule for
* other numbers, for example 12, so that instead of showing "12 people are viewing", you can
* show "a dozen people are viewing".
*
* You can use a set of closed braces(`{}`) as a placeholder for the number that you want substituted
* into pluralized strings. In the previous example, Angular will replace `{}` with
* <span ng-non-bindable>`{{personCount}}`</span>. The closed braces `{}` is a placeholder
* for <span ng-non-bindable>{{numberExpression}}</span>.
*
* # Configuring ngPluralize with offset
* The `offset` attribute allows further customization of pluralized text, which can result in
* a better user experience. For example, instead of the message "4 people are viewing this document",
* you might display "John, Kate and 2 others are viewing this document".
* The offset attribute allows you to offset a number by any desired value.
* Let's take a look at an example:
*
* <pre>
* <ng-pluralize count="personCount" offset=2
* when="{'0': 'Nobody is viewing.',
* '1': '{{person1}} is viewing.',
* '2': '{{person1}} and {{person2}} are viewing.',
* 'one': '{{person1}}, {{person2}} and one other person are viewing.',
* 'other': '{{person1}}, {{person2}} and {} other people are viewing.'}">
* </ng-pluralize>
* </pre>
*
* Notice that we are still using two plural categories(one, other), but we added
* three explicit number rules 0, 1 and 2.
* When one person, perhaps John, views the document, "John is viewing" will be shown.
* When three people view the document, no explicit number rule is found, so
* an offset of 2 is taken off 3, and Angular uses 1 to decide the plural category.
* In this case, plural category 'one' is matched and "John, Marry and one other person are viewing"
* is shown.
*
* Note that when you specify offsets, you must provide explicit number rules for
* numbers from 0 up to and including the offset. If you use an offset of 3, for example,
* you must provide explicit number rules for 0, 1, 2 and 3. You must also provide plural strings for
* plural categories "one" and "other".
*
* @param {string|expression} count The variable to be bounded to.
* @param {string} when The mapping between plural category to its corresponding strings.
* @param {number=} offset Offset to deduct from the total number.
*
* @example
<doc:example>
<doc:source>
<script>
function Ctrl($scope) {
$scope.person1 = 'Igor';
$scope.person2 = 'Misko';
$scope.personCount = 1;
}
</script>
<div ng-controller="Ctrl">
Person 1:<input type="text" ng-model="person1" value="Igor" /><br/>
Person 2:<input type="text" ng-model="person2" value="Misko" /><br/>
Number of People:<input type="text" ng-model="personCount" value="1" /><br/>
<!--- Example with simple pluralization rules for en locale --->
Without Offset:
<ng-pluralize count="personCount"
when="{'0': 'Nobody is viewing.',
'one': '1 person is viewing.',
'other': '{} people are viewing.'}">
</ng-pluralize><br>
<!--- Example with offset --->
With Offset(2):
<ng-pluralize count="personCount" offset=2
when="{'0': 'Nobody is viewing.',
'1': '{{person1}} is viewing.',
'2': '{{person1}} and {{person2}} are viewing.',
'one': '{{person1}}, {{person2}} and one other person are viewing.',
'other': '{{person1}}, {{person2}} and {} other people are viewing.'}">
</ng-pluralize>
</div>
</doc:source>
<doc:scenario>
it('should show correct pluralized string', function() {
expect(element('.doc-example-live ng-pluralize:first').text()).
toBe('1 person is viewing.');
expect(element('.doc-example-live ng-pluralize:last').text()).
toBe('Igor is viewing.');
using('.doc-example-live').input('personCount').enter('0');
expect(element('.doc-example-live ng-pluralize:first').text()).
toBe('Nobody is viewing.');
expect(element('.doc-example-live ng-pluralize:last').text()).
toBe('Nobody is viewing.');
using('.doc-example-live').input('personCount').enter('2');
expect(element('.doc-example-live ng-pluralize:first').text()).
toBe('2 people are viewing.');
expect(element('.doc-example-live ng-pluralize:last').text()).
toBe('Igor and Misko are viewing.');
using('.doc-example-live').input('personCount').enter('3');
expect(element('.doc-example-live ng-pluralize:first').text()).
toBe('3 people are viewing.');
expect(element('.doc-example-live ng-pluralize:last').text()).
toBe('Igor, Misko and one other person are viewing.');
using('.doc-example-live').input('personCount').enter('4');
expect(element('.doc-example-live ng-pluralize:first').text()).
toBe('4 people are viewing.');
expect(element('.doc-example-live ng-pluralize:last').text()).
toBe('Igor, Misko and 2 other people are viewing.');
});
it('should show data-binded names', function() {
using('.doc-example-live').input('personCount').enter('4');
expect(element('.doc-example-live ng-pluralize:last').text()).
toBe('Igor, Misko and 2 other people are viewing.');
using('.doc-example-live').input('person1').enter('Di');
using('.doc-example-live').input('person2').enter('Vojta');
expect(element('.doc-example-live ng-pluralize:last').text()).
toBe('Di, Vojta and 2 other people are viewing.');
});
</doc:scenario>
</doc:example>
*/
var ngPluralizeDirective = ['$locale', '$interpolate', function($locale, $interpolate) {
var BRACE = /{}/g;
return {
restrict: 'EA',
link: function(scope, element, attr) {
var numberExp = attr.count,
whenExp = element.attr(attr.$attr.when), // this is because we have {{}} in attrs
offset = attr.offset || 0,
whens = scope.$eval(whenExp),
whensExpFns = {},
startSymbol = $interpolate.startSymbol(),
endSymbol = $interpolate.endSymbol();
forEach(whens, function(expression, key) {
whensExpFns[key] =
$interpolate(expression.replace(BRACE, startSymbol + numberExp + '-' +
offset + endSymbol));
});
scope.$watch(function ngPluralizeWatch() {
var value = parseFloat(scope.$eval(numberExp));
if (!isNaN(value)) {
//if explicit number rule such as 1, 2, 3... is defined, just use it. Otherwise,
//check it against pluralization rules in $locale service
if (!(value in whens)) value = $locale.pluralCat(value - offset);
return whensExpFns[value](scope, element, true);
} else {
return '';
}
}, function ngPluralizeWatchAction(newVal) {
element.text(newVal);
});
}
};
}];
/**
* @ngdoc directive
* @name ng.directive:ngRepeat
*
* @description
* The `ngRepeat` directive instantiates a template once per item from a collection. Each template
* instance gets its own scope, where the given loop variable is set to the current collection item,
* and `$index` is set to the item index or key.
*
* Special properties are exposed on the local scope of each template instance, including:
*
* * `$index` – `{number}` – iterator offset of the repeated element (0..length-1)
* * `$first` – `{boolean}` – true if the repeated element is first in the iterator.
* * `$middle` – `{boolean}` – true if the repeated element is between the first and last in the iterator.
* * `$last` – `{boolean}` – true if the repeated element is last in the iterator.
*
* Additionally, you can also provide animations via the ngAnimate attribute to animate the **enter**,
* **leave** and **move** effects.
*
* @animations
* enter - when a new item is added to the list or when an item is revealed after a filter
* leave - when an item is removed from the list or when an item is filtered out
* move - when an adjacent item is filtered out causing a reorder or when the item contents are reordered
*
* @element ANY
* @scope
* @priority 1000
* @param {repeat_expression} ngRepeat The expression indicating how to enumerate a collection. These
* formats are currently supported:
*
* * `variable in expression` – where variable is the user defined loop variable and `expression`
* is a scope expression giving the collection to enumerate.
*
* For example: `track in cd.tracks`.
*
* * `(key, value) in expression` – where `key` and `value` can be any user defined identifiers,
* and `expression` is the scope expression giving the collection to enumerate.
*
* For example: `(name, age) in {'adam':10, 'amalie':12}`.
*
* * `variable in expression track by tracking_expression` – You can also provide an optional tracking function
* which can be used to associate the objects in the collection with the DOM elements. If no tractking function
* is specified the ng-repeat associates elements by identity in the collection. It is an error to have
* more then one tractking function to resolve to the same key. (This would mean that two distinct objects are
* mapped to the same DOM element, which is not possible.)
*
* For example: `item in items` is equivalent to `item in items track by $id(item)'. This implies that the DOM elements
* will be associated by item identity in the array.
*
* For example: `item in items track by $id(item)`. A built in `$id()` function can be used to assign a unique
* `$$hashKey` property to each item in the array. This property is then used as a key to associated DOM elements
* with the corresponding item in the array by identity. Moving the same object in array would move the DOM
* element in the same way ian the DOM.
*
* For example: `item in items track by item.id` Is a typical pattern when the items come from the database. In this
* case the object identity does not matter. Two objects are considered equivalent as long as their `id`
* property is same.
*
* @example
* This example initializes the scope to a list of names and
* then uses `ngRepeat` to display every person:
<example animations="true">
<file name="index.html">
<div ng-init="friends = [
{name:'John', age:25, gender:'boy'},
{name:'Jessie', age:30, gender:'girl'},
{name:'Johanna', age:28, gender:'girl'},
{name:'Joy', age:15, gender:'girl'},
{name:'Mary', age:28, gender:'girl'},
{name:'Peter', age:95, gender:'boy'},
{name:'Sebastian', age:50, gender:'boy'},
{name:'Erika', age:27, gender:'girl'},
{name:'Patrick', age:40, gender:'boy'},
{name:'Samantha', age:60, gender:'girl'}
]">
I have {{friends.length}} friends. They are:
<input type="search" ng-model="q" placeholder="filter friends..." />
<ul>
<li ng-repeat="friend in friends | filter:q"
ng-animate="{enter: 'example-repeat-enter',
leave: 'example-repeat-leave',
move: 'example-repeat-move'}">
[{{$index + 1}}] {{friend.name}} who is {{friend.age}} years old.
</li>
</ul>
</div>
</file>
<file name="animations.css">
.example-repeat-enter,
.example-repeat-leave,
.example-repeat-move {
-webkit-transition:all linear 0.5s;
-moz-transition:all linear 0.5s;
-ms-transition:all linear 0.5s;
-o-transition:all linear 0.5s;
transition:all linear 0.5s;
}
.example-repeat-enter {
line-height:0;
opacity:0;
}
.example-repeat-enter.example-repeat-enter-active {
line-height:20px;
opacity:1;
}
.example-repeat-leave {
opacity:1;
line-height:20px;
}
.example-repeat-leave.example-repeat-leave-active {
opacity:0;
line-height:0;
}
.example-repeat-move { }
.example-repeat-move.example-repeat-move-active { }
</file>
<file name="scenario.js">
it('should render initial data set', function() {
var r = using('.doc-example-live').repeater('ul li');
expect(r.count()).toBe(10);
expect(r.row(0)).toEqual(["1","John","25"]);
expect(r.row(1)).toEqual(["2","Jessie","30"]);
expect(r.row(9)).toEqual(["10","Samantha","60"]);
expect(binding('friends.length')).toBe("10");
});
it('should update repeater when filter predicate changes', function() {
var r = using('.doc-example-live').repeater('ul li');
expect(r.count()).toBe(10);
input('q').enter('ma');
expect(r.count()).toBe(2);
expect(r.row(0)).toEqual(["1","Mary","28"]);
expect(r.row(1)).toEqual(["2","Samantha","60"]);
});
</file>
</example>
*/
var ngRepeatDirective = ['$parse', '$animator', function($parse, $animator) {
var NG_REMOVED = '$$NG_REMOVED';
return {
transclude: 'element',
priority: 1000,
terminal: true,
compile: function(element, attr, linker) {
return function($scope, $element, $attr){
var animate = $animator($scope, $attr);
var expression = $attr.ngRepeat;
var match = expression.match(/^\s*(.+)\s+in\s+(.*?)\s*(\s+track\s+by\s+(.+)\s*)?$/),
trackByExp, trackByExpGetter, trackByIdFn, lhs, rhs, valueIdentifier, keyIdentifier,
hashFnLocals = {$id: hashKey};
if (!match) {
throw Error("Expected ngRepeat in form of '_item_ in _collection_[ track by _id_]' but got '" +
expression + "'.");
}
lhs = match[1];
rhs = match[2];
trackByExp = match[4];
if (trackByExp) {
trackByExpGetter = $parse(trackByExp);
trackByIdFn = function(key, value, index) {
// assign key, value, and $index to the locals so that they can be used in hash functions
if (keyIdentifier) hashFnLocals[keyIdentifier] = key;
hashFnLocals[valueIdentifier] = value;
hashFnLocals.$index = index;
return trackByExpGetter($scope, hashFnLocals);
};
} else {
trackByIdFn = function(key, value) {
return hashKey(value);
}
}
match = lhs.match(/^(?:([\$\w]+)|\(([\$\w]+)\s*,\s*([\$\w]+)\))$/);
if (!match) {
throw Error("'item' in 'item in collection' should be identifier or (key, value) but got '" +
lhs + "'.");
}
valueIdentifier = match[3] || match[1];
keyIdentifier = match[2];
// Store a list of elements from previous run. This is a hash where key is the item from the
// iterator, and the value is objects with following properties.
// - scope: bound scope
// - element: previous element.
// - index: position
var lastBlockMap = {};
//watch props
$scope.$watchCollection(rhs, function ngRepeatAction(collection){
var index, length,
cursor = $element, // current position of the node
nextCursor,
// Same as lastBlockMap but it has the current state. It will become the
// lastBlockMap on the next iteration.
nextBlockMap = {},
arrayLength,
childScope,
key, value, // key/value of iteration
trackById,
collectionKeys,
block, // last object information {scope, element, id}
nextBlockOrder = [];
if (isArrayLike(collection)) {
collectionKeys = collection;
} else {
// if object, extract keys, sort them and use to determine order of iteration over obj props
collectionKeys = [];
for (key in collection) {
if (collection.hasOwnProperty(key) && key.charAt(0) != '$') {
collectionKeys.push(key);
}
}
collectionKeys.sort();
}
arrayLength = collectionKeys.length;
// locate existing items
length = nextBlockOrder.length = collectionKeys.length;
for(index = 0; index < length; index++) {
key = (collection === collectionKeys) ? index : collectionKeys[index];
value = collection[key];
trackById = trackByIdFn(key, value, index);
if(lastBlockMap.hasOwnProperty(trackById)) {
block = lastBlockMap[trackById]
delete lastBlockMap[trackById];
nextBlockMap[trackById] = block;
nextBlockOrder[index] = block;
} else if (nextBlockMap.hasOwnProperty(trackById)) {
// restore lastBlockMap
forEach(nextBlockOrder, function(block) {
if (block && block.element) lastBlockMap[block.id] = block;
});
// This is a duplicate and we need to throw an error
throw new Error('Duplicates in a repeater are not allowed. Repeater: ' + expression +
' key: ' + trackById);
} else {
// new never before seen block
nextBlockOrder[index] = { id: trackById };
nextBlockMap[trackById] = false;
}
}
// remove existing items
for (key in lastBlockMap) {
if (lastBlockMap.hasOwnProperty(key)) {
block = lastBlockMap[key];
animate.leave(block.element);
block.element[0][NG_REMOVED] = true;
block.scope.$destroy();
}
}
// we are not using forEach for perf reasons (trying to avoid #call)
for (index = 0, length = collectionKeys.length; index < length; index++) {
key = (collection === collectionKeys) ? index : collectionKeys[index];
value = collection[key];
block = nextBlockOrder[index];
if (block.element) {
// if we have already seen this object, then we need to reuse the
// associated scope/element
childScope = block.scope;
nextCursor = cursor[0];
do {
nextCursor = nextCursor.nextSibling;
} while(nextCursor && nextCursor[NG_REMOVED]);
if (block.element[0] == nextCursor) {
// do nothing
cursor = block.element;
} else {
// existing item which got moved
animate.move(block.element, null, cursor);
cursor = block.element;
}
} else {
// new item which we don't know about
childScope = $scope.$new();
}
childScope[valueIdentifier] = value;
if (keyIdentifier) childScope[keyIdentifier] = key;
childScope.$index = index;
childScope.$first = (index === 0);
childScope.$last = (index === (arrayLength - 1));
childScope.$middle = !(childScope.$first || childScope.$last);
if (!block.element) {
linker(childScope, function(clone) {
animate.enter(clone, null, cursor);
cursor = clone;
block.scope = childScope;
block.element = clone;
nextBlockMap[block.id] = block;
});
}
}
lastBlockMap = nextBlockMap;
});
};
}
};
}];
/**
* @ngdoc directive
* @name ng.directive:ngShow
*
* @description
* The `ngShow` and `ngHide` directives show or hide a portion of the DOM tree (HTML)
* conditionally based on **"truthy"** values evaluated within an {expression}. In other
* words, if the expression assigned to **ngShow evaluates to a true value** then **the element is set to visible**
* (via `display:block` in css) and **if false** then **the element is set to hidden** (so display:none).
* With ngHide this is the reverse whereas true values cause the element itself to become
* hidden.
*
* Additionally, you can also provide animations via the ngAnimate attribute to animate the **show**
* and **hide** effects.
*
* @animations
* show - happens after the ngShow expression evaluates to a truthy value and the contents are set to visible
* hide - happens before the ngShow expression evaluates to a non truthy value and just before the contents are set to hidden
*
* @element ANY
* @param {expression} ngShow If the {@link guide/expression expression} is truthy
* then the element is shown or hidden respectively.
*
* @example
<example animations="true">
<file name="index.html">
Click me: <input type="checkbox" ng-model="checked"><br/>
<div>
Show:
<span class="check-element"
ng-show="checked"
ng-animate="{show: 'example-show', hide: 'example-hide'}">
<span class="icon-thumbs-up"></span> I show up when your checkbox is checked.
</span>
</div>
<div>
Hide:
<span class="check-element"
ng-hide="checked"
ng-animate="{show: 'example-show', hide: 'example-hide'}">
<span class="icon-thumbs-down"></span> I hide when your checkbox is checked.
</span>
</div>
</file>
<file name="animations.css">
.example-show, .example-hide {
-webkit-transition:all linear 0.5s;
-moz-transition:all linear 0.5s;
-ms-transition:all linear 0.5s;
-o-transition:all linear 0.5s;
transition:all linear 0.5s;
}
.example-show {
line-height:0;
opacity:0;
padding:0 10px;
}
.example-show-active.example-show-active {
line-height:20px;
opacity:1;
padding:10px;
border:1px solid black;
background:white;
}
.example-hide {
line-height:20px;
opacity:1;
padding:10px;
border:1px solid black;
background:white;
}
.example-hide-active.example-hide-active {
line-height:0;
opacity:0;
padding:0 10px;
}
.check-element {
padding:10px;
border:1px solid black;
background:white;
}
</file>
<file name="scenario.js">
it('should check ng-show / ng-hide', function() {
expect(element('.doc-example-live span:first:hidden').count()).toEqual(1);
expect(element('.doc-example-live span:last:visible').count()).toEqual(1);
input('checked').check();
expect(element('.doc-example-live span:first:visible').count()).toEqual(1);
expect(element('.doc-example-live span:last:hidden').count()).toEqual(1);
});
</file>
</example>
*/
//TODO(misko): refactor to remove element from the DOM
var ngShowDirective = ['$animator', function($animator) {
return function(scope, element, attr) {
var animate = $animator(scope, attr);
scope.$watch(attr.ngShow, function ngShowWatchAction(value){
animate[toBoolean(value) ? 'show' : 'hide'](element);
});
};
}];
/**
* @ngdoc directive
* @name ng.directive:ngHide
*
* @description
* The `ngShow` and `ngHide` directives show or hide a portion of the DOM tree (HTML)
* conditionally based on **"truthy"** values evaluated within an {expression}. In other
* words, if the expression assigned to **ngShow evaluates to a true value** then **the element is set to visible**
* (via `display:block` in css) and **if false** then **the element is set to hidden** (so display:none).
* With ngHide this is the reverse whereas true values cause the element itself to become
* hidden.
*
* Additionally, you can also provide animations via the ngAnimate attribute to animate the **show**
* and **hide** effects.
*
* @animations
* show - happens after the ngHide expression evaluates to a non truthy value and the contents are set to visible
* hide - happens after the ngHide expression evaluates to a truthy value and just before the contents are set to hidden
*
* @element ANY
* @param {expression} ngHide If the {@link guide/expression expression} is truthy then
* the element is shown or hidden respectively.
*
* @example
<example animations="true">
<file name="index.html">
Click me: <input type="checkbox" ng-model="checked"><br/>
<div>
Show:
<span class="check-element"
ng-show="checked"
ng-animate="{show: 'example-show', hide: 'example-hide'}">
<span class="icon-thumbs-up"></span> I show up when your checkbox is checked.
</span>
</div>
<div>
Hide:
<span class="check-element"
ng-hide="checked"
ng-animate="{show: 'example-show', hide: 'example-hide'}">
<span class="icon-thumbs-down"></span> I hide when your checkbox is checked.
</span>
</div>
</file>
<file name="animations.css">
.example-show, .example-hide {
-webkit-transition:all linear 0.5s;
-moz-transition:all linear 0.5s;
-ms-transition:all linear 0.5s;
-o-transition:all linear 0.5s;
transition:all linear 0.5s;
}
.example-show {
line-height:0;
opacity:0;
padding:0 10px;
}
.example-show.example-show-active {
line-height:20px;
opacity:1;
padding:10px;
border:1px solid black;
background:white;
}
.example-hide {
line-height:20px;
opacity:1;
padding:10px;
border:1px solid black;
background:white;
}
.example-hide.example-hide-active {
line-height:0;
opacity:0;
padding:0 10px;
}
.check-element {
padding:10px;
border:1px solid black;
background:white;
}
</file>
<file name="scenario.js">
it('should check ng-show / ng-hide', function() {
expect(element('.doc-example-live .check-element:first:hidden').count()).toEqual(1);
expect(element('.doc-example-live .check-element:last:visible').count()).toEqual(1);
input('checked').check();
expect(element('.doc-example-live .check-element:first:visible').count()).toEqual(1);
expect(element('.doc-example-live .check-element:last:hidden').count()).toEqual(1);
});
</file>
</example>
*/
//TODO(misko): refactor to remove element from the DOM
var ngHideDirective = ['$animator', function($animator) {
return function(scope, element, attr) {
var animate = $animator(scope, attr);
scope.$watch(attr.ngHide, function ngHideWatchAction(value){
animate[toBoolean(value) ? 'hide' : 'show'](element);
});
};
}];
/**
* @ngdoc directive
* @name ng.directive:ngStyle
*
* @description
* The `ngStyle` directive allows you to set CSS style on an HTML element conditionally.
*
* @element ANY
* @param {expression} ngStyle {@link guide/expression Expression} which evals to an
* object whose keys are CSS style names and values are corresponding values for those CSS
* keys.
*
* @example
<example>
<file name="index.html">
<input type="button" value="set" ng-click="myStyle={color:'red'}">
<input type="button" value="clear" ng-click="myStyle={}">
<br/>
<span ng-style="myStyle">Sample Text</span>
<pre>myStyle={{myStyle}}</pre>
</file>
<file name="style.css">
span {
color: black;
}
</file>
<file name="scenario.js">
it('should check ng-style', function() {
expect(element('.doc-example-live span').css('color')).toBe('rgb(0, 0, 0)');
element('.doc-example-live :button[value=set]').click();
expect(element('.doc-example-live span').css('color')).toBe('rgb(255, 0, 0)');
element('.doc-example-live :button[value=clear]').click();
expect(element('.doc-example-live span').css('color')).toBe('rgb(0, 0, 0)');
});
</file>
</example>
*/
var ngStyleDirective = ngDirective(function(scope, element, attr) {
scope.$watch(attr.ngStyle, function ngStyleWatchAction(newStyles, oldStyles) {
if (oldStyles && (newStyles !== oldStyles)) {
forEach(oldStyles, function(val, style) { element.css(style, '');});
}
if (newStyles) element.css(newStyles);
}, true);
});
/**
* @ngdoc directive
* @name ng.directive:ngSwitch
* @restrict EA
*
* @description
* The ngSwitch directive is used to conditionally swap DOM structure on your template based on a scope expression.
* Elements within ngSwitch but without ngSwitchWhen or ngSwitchDefault directives will be preserved at the location
* as specified in the template.
*
* The directive itself works similar to ngInclude, however, instead of downloading template code (or loading it
* from the template cache), ngSwitch simply choses one of the nested elements and makes it visible based on which element
* matches the value obtained from the evaluated expression. In other words, you define a container element
* (where you place the directive), place an expression on the **on="..." attribute**
* (or the **ng-switch="..." attribute**), define any inner elements inside of the directive and place
* a when attribute per element. The when attribute is used to inform ngSwitch which element to display when the on
* expression is evaluated. If a matching expression is not found via a when attribute then an element with the default
* attribute is displayed.
*
* Additionally, you can also provide animations via the ngAnimate attribute to animate the **enter**
* and **leave** effects.
*
* @animations
* enter - happens after the ngSwtich contents change and the matched child element is placed inside the container
* leave - happens just after the ngSwitch contents change and just before the former contents are removed from the DOM
*
* @usage
* <ANY ng-switch="expression">
* <ANY ng-switch-when="matchValue1">...</ANY>
* <ANY ng-switch-when="matchValue2">...</ANY>
* <ANY ng-switch-default>...</ANY>
* </ANY>
*
* @scope
* @param {*} ngSwitch|on expression to match against <tt>ng-switch-when</tt>.
* @paramDescription
* On child elements add:
*
* * `ngSwitchWhen`: the case statement to match against. If match then this
* case will be displayed. If the same match appears multiple times, all the
* elements will be displayed.
* * `ngSwitchDefault`: the default case when no other case match. If there
* are multiple default cases, all of them will be displayed when no other
* case match.
*
*
* @example
<example animations="true">
<file name="index.html">
<div ng-controller="Ctrl">
<select ng-model="selection" ng-options="item for item in items">
</select>
<tt>selection={{selection}}</tt>
<hr/>
<div
class="example-animate-container"
ng-switch on="selection"
ng-animate="{enter: 'example-enter', leave: 'example-leave'}">
<div ng-switch-when="settings">Settings Div</div>
<div ng-switch-when="home">Home Span</div>
<div ng-switch-default>default</div>
</div>
</div>
</file>
<file name="script.js">
function Ctrl($scope) {
$scope.items = ['settings', 'home', 'other'];
$scope.selection = $scope.items[0];
}
</file>
<file name="animations.css">
.example-leave, .example-enter {
-webkit-transition:all cubic-bezier(0.250, 0.460, 0.450, 0.940) 0.5s;
-moz-transition:all cubic-bezier(0.250, 0.460, 0.450, 0.940) 0.5s;
-ms-transition:all cubic-bezier(0.250, 0.460, 0.450, 0.940) 0.5s;
-o-transition:all cubic-bezier(0.250, 0.460, 0.450, 0.940) 0.5s;
transition:all cubic-bezier(0.250, 0.460, 0.450, 0.940) 0.5s;
position:absolute;
top:0;
left:0;
right:0;
bottom:0;
}
.example-animate-container > * {
display:block;
padding:10px;
}
.example-enter {
top:-50px;
}
.example-enter.example-enter-active {
top:0;
}
.example-leave {
top:0;
}
.example-leave.example-leave-active {
top:50px;
}
</file>
<file name="scenario.js">
it('should start in settings', function() {
expect(element('.doc-example-live [ng-switch]').text()).toMatch(/Settings Div/);
});
it('should change to home', function() {
select('selection').option('home');
expect(element('.doc-example-live [ng-switch]').text()).toMatch(/Home Span/);
});
it('should select default', function() {
select('selection').option('other');
expect(element('.doc-example-live [ng-switch]').text()).toMatch(/default/);
});
</file>
</example>
*/
var ngSwitchDirective = ['$animator', function($animator) {
return {
restrict: 'EA',
require: 'ngSwitch',
// asks for $scope to fool the BC controller module
controller: ['$scope', function ngSwitchController() {
this.cases = {};
}],
link: function(scope, element, attr, ngSwitchController) {
var animate = $animator(scope, attr);
var watchExpr = attr.ngSwitch || attr.on,
selectedTranscludes,
selectedElements,
selectedScopes = [];
scope.$watch(watchExpr, function ngSwitchWatchAction(value) {
for (var i= 0, ii=selectedScopes.length; i<ii; i++) {
selectedScopes[i].$destroy();
animate.leave(selectedElements[i]);
}
selectedElements = [];
selectedScopes = [];
if ((selectedTranscludes = ngSwitchController.cases['!' + value] || ngSwitchController.cases['?'])) {
scope.$eval(attr.change);
forEach(selectedTranscludes, function(selectedTransclude) {
var selectedScope = scope.$new();
selectedScopes.push(selectedScope);
selectedTransclude.transclude(selectedScope, function(caseElement) {
var anchor = selectedTransclude.element;
selectedElements.push(caseElement);
animate.enter(caseElement, anchor.parent(), anchor);
});
});
}
});
}
}
}];
var ngSwitchWhenDirective = ngDirective({
transclude: 'element',
priority: 500,
require: '^ngSwitch',
compile: function(element, attrs, transclude) {
return function(scope, element, attr, ctrl) {
ctrl.cases['!' + attrs.ngSwitchWhen] = (ctrl.cases['!' + attrs.ngSwitchWhen] || []);
ctrl.cases['!' + attrs.ngSwitchWhen].push({ transclude: transclude, element: element });
};
}
});
var ngSwitchDefaultDirective = ngDirective({
transclude: 'element',
priority: 500,
require: '^ngSwitch',
compile: function(element, attrs, transclude) {
return function(scope, element, attr, ctrl) {
ctrl.cases['?'] = (ctrl.cases['?'] || []);
ctrl.cases['?'].push({ transclude: transclude, element: element });
};
}
});
/**
* @ngdoc directive
* @name ng.directive:ngTransclude
*
* @description
* Insert the transcluded DOM here.
*
* @element ANY
*
* @example
<doc:example module="transclude">
<doc:source>
<script>
function Ctrl($scope) {
$scope.title = 'Lorem Ipsum';
$scope.text = 'Neque porro quisquam est qui dolorem ipsum quia dolor...';
}
angular.module('transclude', [])
.directive('pane', function(){
return {
restrict: 'E',
transclude: true,
scope: 'isolate',
locals: { title:'bind' },
template: '<div style="border: 1px solid black;">' +
'<div style="background-color: gray">{{title}}</div>' +
'<div ng-transclude></div>' +
'</div>'
};
});
</script>
<div ng-controller="Ctrl">
<input ng-model="title"><br>
<textarea ng-model="text"></textarea> <br/>
<pane title="{{title}}">{{text}}</pane>
</div>
</doc:source>
<doc:scenario>
it('should have transcluded', function() {
input('title').enter('TITLE');
input('text').enter('TEXT');
expect(binding('title')).toEqual('TITLE');
expect(binding('text')).toEqual('TEXT');
});
</doc:scenario>
</doc:example>
*
*/
var ngTranscludeDirective = ngDirective({
controller: ['$transclude', '$element', function($transclude, $element) {
$transclude(function(clone) {
$element.append(clone);
});
}]
});
/**
* @ngdoc directive
* @name ng.directive:ngView
* @restrict ECA
*
* @description
* # Overview
* `ngView` is a directive that complements the {@link ng.$route $route} service by
* including the rendered template of the current route into the main layout (`index.html`) file.
* Every time the current route changes, the included view changes with it according to the
* configuration of the `$route` service.
*
* Additionally, you can also provide animations via the ngAnimate attribute to animate the **enter**
* and **leave** effects.
*
* @animations
* enter - happens just after the ngView contents are changed (when the new view DOM element is inserted into the DOM)
* leave - happens just after the current ngView contents change and just before the former contents are removed from the DOM
*
* @scope
* @example
<example module="ngView" animations="true">
<file name="index.html">
<div ng-controller="MainCntl as main">
Choose:
<a href="Book/Moby">Moby</a> |
<a href="Book/Moby/ch/1">Moby: Ch1</a> |
<a href="Book/Gatsby">Gatsby</a> |
<a href="Book/Gatsby/ch/4?key=value">Gatsby: Ch4</a> |
<a href="Book/Scarlet">Scarlet Letter</a><br/>
<div
ng-view
class="example-animate-container"
ng-animate="{enter: 'example-enter', leave: 'example-leave'}"></div>
<hr />
<pre>$location.path() = {{main.$location.path()}}</pre>
<pre>$route.current.templateUrl = {{main.$route.current.templateUrl}}</pre>
<pre>$route.current.params = {{main.$route.current.params}}</pre>
<pre>$route.current.scope.name = {{main.$route.current.scope.name}}</pre>
<pre>$routeParams = {{main.$routeParams}}</pre>
</div>
</file>
<file name="book.html">
<div>
controller: {{book.name}}<br />
Book Id: {{book.params.bookId}}<br />
</div>
</file>
<file name="chapter.html">
<div>
controller: {{chapter.name}}<br />
Book Id: {{chapter.params.bookId}}<br />
Chapter Id: {{chapter.params.chapterId}}
</div>
</file>
<file name="animations.css">
.example-leave, .example-enter {
-webkit-transition:all cubic-bezier(0.250, 0.460, 0.450, 0.940) 1.5s;
-moz-transition:all cubic-bezier(0.250, 0.460, 0.450, 0.940) 1.5s;
-ms-transition:all cubic-bezier(0.250, 0.460, 0.450, 0.940) 1.5s;
-o-transition:all cubic-bezier(0.250, 0.460, 0.450, 0.940) 1.5s;
transition:all cubic-bezier(0.250, 0.460, 0.450, 0.940) 1.5s;
}
.example-animate-container {
position:relative;
height:100px;
}
.example-animate-container > * {
display:block;
width:100%;
border-left:1px solid black;
position:absolute;
top:0;
left:0;
right:0;
bottom:0;
padding:10px;
}
.example-enter {
left:100%;
}
.example-enter.example-enter-active {
left:0;
}
.example-leave { }
.example-leave.example-leave-active {
left:-100%;
}
</file>
<file name="script.js">
angular.module('ngView', [], function($routeProvider, $locationProvider) {
$routeProvider.when('/Book/:bookId', {
templateUrl: 'book.html',
controller: BookCntl,
controllerAs: 'book'
});
$routeProvider.when('/Book/:bookId/ch/:chapterId', {
templateUrl: 'chapter.html',
controller: ChapterCntl,
controllerAs: 'chapter'
});
// configure html5 to get links working on jsfiddle
$locationProvider.html5Mode(true);
});
function MainCntl($route, $routeParams, $location) {
this.$route = $route;
this.$location = $location;
this.$routeParams = $routeParams;
}
function BookCntl($routeParams) {
this.name = "BookCntl";
this.params = $routeParams;
}
function ChapterCntl($routeParams) {
this.name = "ChapterCntl";
this.params = $routeParams;
}
</file>
<file name="scenario.js">
it('should load and compile correct template', function() {
element('a:contains("Moby: Ch1")').click();
var content = element('.doc-example-live [ng-view]').text();
expect(content).toMatch(/controller\: ChapterCntl/);
expect(content).toMatch(/Book Id\: Moby/);
expect(content).toMatch(/Chapter Id\: 1/);
element('a:contains("Scarlet")').click();
content = element('.doc-example-live [ng-view]').text();
expect(content).toMatch(/controller\: BookCntl/);
expect(content).toMatch(/Book Id\: Scarlet/);
});
</file>
</example>
*/
/**
* @ngdoc event
* @name ng.directive:ngView#$viewContentLoaded
* @eventOf ng.directive:ngView
* @eventType emit on the current ngView scope
* @description
* Emitted every time the ngView content is reloaded.
*/
var ngViewDirective = ['$http', '$templateCache', '$route', '$anchorScroll', '$compile',
'$controller', '$animator',
function($http, $templateCache, $route, $anchorScroll, $compile,
$controller, $animator) {
return {
restrict: 'ECA',
terminal: true,
link: function(scope, element, attr) {
var lastScope,
onloadExp = attr.onload || '',
animate = $animator(scope, attr);
scope.$on('$routeChangeSuccess', update);
update();
function destroyLastScope() {
if (lastScope) {
lastScope.$destroy();
lastScope = null;
}
}
function clearContent() {
animate.leave(element.contents(), element);
destroyLastScope();
}
function update() {
var locals = $route.current && $route.current.locals,
template = locals && locals.$template;
if (template) {
clearContent();
var enterElements = jqLite('<div></div>').html(template).contents();
animate.enter(enterElements, element);
var link = $compile(enterElements),
current = $route.current,
controller;
lastScope = current.scope = scope.$new();
if (current.controller) {
locals.$scope = lastScope;
controller = $controller(current.controller, locals);
if (current.controllerAs) {
lastScope[current.controllerAs] = controller;
}
element.children().data('$ngControllerController', controller);
}
link(lastScope);
lastScope.$emit('$viewContentLoaded');
lastScope.$eval(onloadExp);
// $anchorScroll might listen on event...
$anchorScroll();
} else {
clearContent();
}
}
}
};
}];
/**
* @ngdoc directive
* @name ng.directive:script
*
* @description
* Load content of a script tag, with type `text/ng-template`, into `$templateCache`, so that the
* template can be used by `ngInclude`, `ngView` or directive templates.
*
* @restrict E
* @param {'text/ng-template'} type must be set to `'text/ng-template'`
*
* @example
<doc:example>
<doc:source>
<script type="text/ng-template" id="/tpl.html">
Content of the template.
</script>
<a ng-click="currentTpl='/tpl.html'" id="tpl-link">Load inlined template</a>
<div id="tpl-content" ng-include src="currentTpl"></div>
</doc:source>
<doc:scenario>
it('should load template defined inside script tag', function() {
element('#tpl-link').click();
expect(element('#tpl-content').text()).toMatch(/Content of the template/);
});
</doc:scenario>
</doc:example>
*/
var scriptDirective = ['$templateCache', function($templateCache) {
return {
restrict: 'E',
terminal: true,
compile: function(element, attr) {
if (attr.type == 'text/ng-template') {
var templateUrl = attr.id,
// IE is not consistent, in scripts we have to read .text but in other nodes we have to read .textContent
text = element[0].text;
$templateCache.put(templateUrl, text);
}
}
};
}];
/**
* @ngdoc directive
* @name ng.directive:select
* @restrict E
*
* @description
* HTML `SELECT` element with angular data-binding.
*
* # `ngOptions`
*
* Optionally `ngOptions` attribute can be used to dynamically generate a list of `<option>`
* elements for a `<select>` element using an array or an object obtained by evaluating the
* `ngOptions` expression.
*˝˝
* When an item in the select menu is select, the value of array element or object property
* represented by the selected option will be bound to the model identified by the `ngModel`
* directive of the parent select element.
*
* Optionally, a single hard-coded `<option>` element, with the value set to an empty string, can
* be nested into the `<select>` element. This element will then represent `null` or "not selected"
* option. See example below for demonstration.
*
* Note: `ngOptions` provides iterator facility for `<option>` element which should be used instead
* of {@link ng.directive:ngRepeat ngRepeat} when you want the
* `select` model to be bound to a non-string value. This is because an option element can currently
* be bound to string values only.
*
* @param {string} ngModel Assignable angular expression to data-bind to.
* @param {string=} name Property name of the form under which the control is published.
* @param {string=} required The control is considered valid only if value is entered.
* @param {string=} ngRequired Adds `required` attribute and `required` validation constraint to
* the element when the ngRequired expression evaluates to true. Use `ngRequired` instead of
* `required` when you want to data-bind to the `required` attribute.
* @param {comprehension_expression=} ngOptions in one of the following forms:
*
* * for array data sources:
* * `label` **`for`** `value` **`in`** `array`
* * `select` **`as`** `label` **`for`** `value` **`in`** `array`
* * `label` **`group by`** `group` **`for`** `value` **`in`** `array`
* * `select` **`as`** `label` **`group by`** `group` **`for`** `value` **`in`** `array` **`track by`** `trackexpr`
* * for object data sources:
* * `label` **`for (`**`key` **`,`** `value`**`) in`** `object`
* * `select` **`as`** `label` **`for (`**`key` **`,`** `value`**`) in`** `object`
* * `label` **`group by`** `group` **`for (`**`key`**`,`** `value`**`) in`** `object`
* * `select` **`as`** `label` **`group by`** `group`
* **`for` `(`**`key`**`,`** `value`**`) in`** `object`
*
* Where:
*
* * `array` / `object`: an expression which evaluates to an array / object to iterate over.
* * `value`: local variable which will refer to each item in the `array` or each property value
* of `object` during iteration.
* * `key`: local variable which will refer to a property name in `object` during iteration.
* * `label`: The result of this expression will be the label for `<option>` element. The
* `expression` will most likely refer to the `value` variable (e.g. `value.propertyName`).
* * `select`: The result of this expression will be bound to the model of the parent `<select>`
* element. If not specified, `select` expression will default to `value`.
* * `group`: The result of this expression will be used to group options using the `<optgroup>`
* DOM element.
* * `trackexpr`: Used when working with an array of objects. The result of this expression will be
* used to identify the objects in the array. The `trackexpr` will most likely refer to the
* `value` variable (e.g. `value.propertyName`).
*
* @example
<doc:example>
<doc:source>
<script>
function MyCntrl($scope) {
$scope.colors = [
{name:'black', shade:'dark'},
{name:'white', shade:'light'},
{name:'red', shade:'dark'},
{name:'blue', shade:'dark'},
{name:'yellow', shade:'light'}
];
$scope.color = $scope.colors[2]; // red
}
</script>
<div ng-controller="MyCntrl">
<ul>
<li ng-repeat="color in colors">
Name: <input ng-model="color.name">
[<a href ng-click="colors.splice($index, 1)">X</a>]
</li>
<li>
[<a href ng-click="colors.push({})">add</a>]
</li>
</ul>
<hr/>
Color (null not allowed):
<select ng-model="color" ng-options="c.name for c in colors"></select><br>
Color (null allowed):
<span class="nullable">
<select ng-model="color" ng-options="c.name for c in colors">
<option value="">-- chose color --</option>
</select>
</span><br/>
Color grouped by shade:
<select ng-model="color" ng-options="c.name group by c.shade for c in colors">
</select><br/>
Select <a href ng-click="color={name:'not in list'}">bogus</a>.<br>
<hr/>
Currently selected: {{ {selected_color:color} }}
<div style="border:solid 1px black; height:20px"
ng-style="{'background-color':color.name}">
</div>
</div>
</doc:source>
<doc:scenario>
it('should check ng-options', function() {
expect(binding('{selected_color:color}')).toMatch('red');
select('color').option('0');
expect(binding('{selected_color:color}')).toMatch('black');
using('.nullable').select('color').option('');
expect(binding('{selected_color:color}')).toMatch('null');
});
</doc:scenario>
</doc:example>
*/
var ngOptionsDirective = valueFn({ terminal: true });
var selectDirective = ['$compile', '$parse', function($compile, $parse) {
//0000111110000000000022220000000000000000000000333300000000000000444444444444444440000000005555555555555555500000006666666666666666600000000000000007777000000000000000000088888
var NG_OPTIONS_REGEXP = /^\s*(.*?)(?:\s+as\s+(.*?))?(?:\s+group\s+by\s+(.*))?\s+for\s+(?:([\$\w][\$\w\d]*)|(?:\(\s*([\$\w][\$\w\d]*)\s*,\s*([\$\w][\$\w\d]*)\s*\)))\s+in\s+(.*?)(?:\s+track\s+by\s+(.*?))?$/,
nullModelCtrl = {$setViewValue: noop};
return {
restrict: 'E',
require: ['select', '?ngModel'],
controller: ['$element', '$scope', '$attrs', function($element, $scope, $attrs) {
var self = this,
optionsMap = {},
ngModelCtrl = nullModelCtrl,
nullOption,
unknownOption;
self.databound = $attrs.ngModel;
self.init = function(ngModelCtrl_, nullOption_, unknownOption_) {
ngModelCtrl = ngModelCtrl_;
nullOption = nullOption_;
unknownOption = unknownOption_;
}
self.addOption = function(value) {
optionsMap[value] = true;
if (ngModelCtrl.$viewValue == value) {
$element.val(value);
if (unknownOption.parent()) unknownOption.remove();
}
};
self.removeOption = function(value) {
if (this.hasOption(value)) {
delete optionsMap[value];
if (ngModelCtrl.$viewValue == value) {
this.renderUnknownOption(value);
}
}
};
self.renderUnknownOption = function(val) {
var unknownVal = '? ' + hashKey(val) + ' ?';
unknownOption.val(unknownVal);
$element.prepend(unknownOption);
$element.val(unknownVal);
unknownOption.prop('selected', true); // needed for IE
}
self.hasOption = function(value) {
return optionsMap.hasOwnProperty(value);
}
$scope.$on('$destroy', function() {
// disable unknown option so that we don't do work when the whole select is being destroyed
self.renderUnknownOption = noop;
});
}],
link: function(scope, element, attr, ctrls) {
// if ngModel is not defined, we don't need to do anything
if (!ctrls[1]) return;
var selectCtrl = ctrls[0],
ngModelCtrl = ctrls[1],
multiple = attr.multiple,
optionsExp = attr.ngOptions,
nullOption = false, // if false, user will not be able to select it (used by ngOptions)
emptyOption,
// we can't just jqLite('<option>') since jqLite is not smart enough
// to create it in <select> and IE barfs otherwise.
optionTemplate = jqLite(document.createElement('option')),
optGroupTemplate =jqLite(document.createElement('optgroup')),
unknownOption = optionTemplate.clone();
// find "null" option
for(var i = 0, children = element.children(), ii = children.length; i < ii; i++) {
if (children[i].value == '') {
emptyOption = nullOption = children.eq(i);
break;
}
}
selectCtrl.init(ngModelCtrl, nullOption, unknownOption);
// required validator
if (multiple && (attr.required || attr.ngRequired)) {
var requiredValidator = function(value) {
ngModelCtrl.$setValidity('required', !attr.required || (value && value.length));
return value;
};
ngModelCtrl.$parsers.push(requiredValidator);
ngModelCtrl.$formatters.unshift(requiredValidator);
attr.$observe('required', function() {
requiredValidator(ngModelCtrl.$viewValue);
});
}
if (optionsExp) Options(scope, element, ngModelCtrl);
else if (multiple) Multiple(scope, element, ngModelCtrl);
else Single(scope, element, ngModelCtrl, selectCtrl);
////////////////////////////
function Single(scope, selectElement, ngModelCtrl, selectCtrl) {
ngModelCtrl.$render = function() {
var viewValue = ngModelCtrl.$viewValue;
if (selectCtrl.hasOption(viewValue)) {
if (unknownOption.parent()) unknownOption.remove();
selectElement.val(viewValue);
if (viewValue === '') emptyOption.prop('selected', true); // to make IE9 happy
} else {
if (isUndefined(viewValue) && emptyOption) {
selectElement.val('');
} else {
selectCtrl.renderUnknownOption(viewValue);
}
}
};
selectElement.bind('change', function() {
scope.$apply(function() {
if (unknownOption.parent()) unknownOption.remove();
ngModelCtrl.$setViewValue(selectElement.val());
});
});
}
function Multiple(scope, selectElement, ctrl) {
var lastView;
ctrl.$render = function() {
var items = new HashMap(ctrl.$viewValue);
forEach(selectElement.find('option'), function(option) {
option.selected = isDefined(items.get(option.value));
});
};
// we have to do it on each watch since ngModel watches reference, but
// we need to work of an array, so we need to see if anything was inserted/removed
scope.$watch(function selectMultipleWatch() {
if (!equals(lastView, ctrl.$viewValue)) {
lastView = copy(ctrl.$viewValue);
ctrl.$render();
}
});
selectElement.bind('change', function() {
scope.$apply(function() {
var array = [];
forEach(selectElement.find('option'), function(option) {
if (option.selected) {
array.push(option.value);
}
});
ctrl.$setViewValue(array);
});
});
}
function Options(scope, selectElement, ctrl) {
var match;
if (! (match = optionsExp.match(NG_OPTIONS_REGEXP))) {
throw Error(
"Expected ngOptions in form of '_select_ (as _label_)? for (_key_,)?_value_ in _collection_ (track by _expr_)?'" +
" but got '" + optionsExp + "'.");
}
var displayFn = $parse(match[2] || match[1]),
valueName = match[4] || match[6],
keyName = match[5],
groupByFn = $parse(match[3] || ''),
valueFn = $parse(match[2] ? match[1] : valueName),
valuesFn = $parse(match[7]),
track = match[8],
trackFn = track ? $parse(match[8]) : null,
// This is an array of array of existing option groups in DOM. We try to reuse these if possible
// optionGroupsCache[0] is the options with no option group
// optionGroupsCache[?][0] is the parent: either the SELECT or OPTGROUP element
optionGroupsCache = [[{element: selectElement, label:''}]];
if (nullOption) {
// compile the element since there might be bindings in it
$compile(nullOption)(scope);
// remove the class, which is added automatically because we recompile the element and it
// becomes the compilation root
nullOption.removeClass('ng-scope');
// we need to remove it before calling selectElement.html('') because otherwise IE will
// remove the label from the element. wtf?
nullOption.remove();
}
// clear contents, we'll add what's needed based on the model
selectElement.html('');
selectElement.bind('change', function() {
scope.$apply(function() {
var optionGroup,
collection = valuesFn(scope) || [],
locals = {},
key, value, optionElement, index, groupIndex, length, groupLength;
if (multiple) {
value = [];
for (groupIndex = 0, groupLength = optionGroupsCache.length;
groupIndex < groupLength;
groupIndex++) {
// list of options for that group. (first item has the parent)
optionGroup = optionGroupsCache[groupIndex];
for(index = 1, length = optionGroup.length; index < length; index++) {
if ((optionElement = optionGroup[index].element)[0].selected) {
key = optionElement.val();
if (keyName) locals[keyName] = key;
if (trackFn) {
for (var trackIndex = 0; trackIndex < collection.length; trackIndex++) {
locals[valueName] = collection[trackIndex];
if (trackFn(scope, locals) == key) break;
}
} else {
locals[valueName] = collection[key];
}
value.push(valueFn(scope, locals));
}
}
}
} else {
key = selectElement.val();
if (key == '?') {
value = undefined;
} else if (key == ''){
value = null;
} else {
if (trackFn) {
for (var trackIndex = 0; trackIndex < collection.length; trackIndex++) {
locals[valueName] = collection[trackIndex];
if (trackFn(scope, locals) == key) {
value = valueFn(scope, locals);
break;
}
}
} else {
locals[valueName] = collection[key];
if (keyName) locals[keyName] = key;
value = valueFn(scope, locals);
}
}
}
ctrl.$setViewValue(value);
});
});
ctrl.$render = render;
// TODO(vojta): can't we optimize this ?
scope.$watch(render);
function render() {
var optionGroups = {'':[]}, // Temporary location for the option groups before we render them
optionGroupNames = [''],
optionGroupName,
optionGroup,
option,
existingParent, existingOptions, existingOption,
modelValue = ctrl.$modelValue,
values = valuesFn(scope) || [],
keys = keyName ? sortedKeys(values) : values,
groupLength, length,
groupIndex, index,
locals = {},
selected,
selectedSet = false, // nothing is selected yet
lastElement,
element,
label;
if (multiple) {
if (trackFn && isArray(modelValue)) {
selectedSet = new HashMap([]);
for (var trackIndex = 0; trackIndex < modelValue.length; trackIndex++) {
locals[valueName] = modelValue[trackIndex];
selectedSet.put(trackFn(scope, locals), modelValue[trackIndex]);
}
} else {
selectedSet = new HashMap(modelValue);
}
}
// We now build up the list of options we need (we merge later)
for (index = 0; length = keys.length, index < length; index++) {
locals[valueName] = values[keyName ? locals[keyName]=keys[index]:index];
optionGroupName = groupByFn(scope, locals) || '';
if (!(optionGroup = optionGroups[optionGroupName])) {
optionGroup = optionGroups[optionGroupName] = [];
optionGroupNames.push(optionGroupName);
}
if (multiple) {
selected = selectedSet.remove(trackFn ? trackFn(scope, locals) : valueFn(scope, locals)) != undefined;
} else {
if (trackFn) {
var modelCast = {};
modelCast[valueName] = modelValue;
selected = trackFn(scope, modelCast) === trackFn(scope, locals);
} else {
selected = modelValue === valueFn(scope, locals);
}
selectedSet = selectedSet || selected; // see if at least one item is selected
}
label = displayFn(scope, locals); // what will be seen by the user
label = label === undefined ? '' : label; // doing displayFn(scope, locals) || '' overwrites zero values
optionGroup.push({
id: trackFn ? trackFn(scope, locals) : (keyName ? keys[index] : index), // either the index into array or key from object
label: label,
selected: selected // determine if we should be selected
});
}
if (!multiple) {
if (nullOption || modelValue === null) {
// insert null option if we have a placeholder, or the model is null
optionGroups[''].unshift({id:'', label:'', selected:!selectedSet});
} else if (!selectedSet) {
// option could not be found, we have to insert the undefined item
optionGroups[''].unshift({id:'?', label:'', selected:true});
}
}
// Now we need to update the list of DOM nodes to match the optionGroups we computed above
for (groupIndex = 0, groupLength = optionGroupNames.length;
groupIndex < groupLength;
groupIndex++) {
// current option group name or '' if no group
optionGroupName = optionGroupNames[groupIndex];
// list of options for that group. (first item has the parent)
optionGroup = optionGroups[optionGroupName];
if (optionGroupsCache.length <= groupIndex) {
// we need to grow the optionGroups
existingParent = {
element: optGroupTemplate.clone().attr('label', optionGroupName),
label: optionGroup.label
};
existingOptions = [existingParent];
optionGroupsCache.push(existingOptions);
selectElement.append(existingParent.element);
} else {
existingOptions = optionGroupsCache[groupIndex];
existingParent = existingOptions[0]; // either SELECT (no group) or OPTGROUP element
// update the OPTGROUP label if not the same.
if (existingParent.label != optionGroupName) {
existingParent.element.attr('label', existingParent.label = optionGroupName);
}
}
lastElement = null; // start at the beginning
for(index = 0, length = optionGroup.length; index < length; index++) {
option = optionGroup[index];
if ((existingOption = existingOptions[index+1])) {
// reuse elements
lastElement = existingOption.element;
if (existingOption.label !== option.label) {
lastElement.text(existingOption.label = option.label);
}
if (existingOption.id !== option.id) {
lastElement.val(existingOption.id = option.id);
}
// lastElement.prop('selected') provided by jQuery has side-effects
if (lastElement[0].selected !== option.selected) {
lastElement.prop('selected', (existingOption.selected = option.selected));
}
} else {
// grow elements
// if it's a null option
if (option.id === '' && nullOption) {
// put back the pre-compiled element
element = nullOption;
} else {
// jQuery(v1.4.2) Bug: We should be able to chain the method calls, but
// in this version of jQuery on some browser the .text() returns a string
// rather then the element.
(element = optionTemplate.clone())
.val(option.id)
.attr('selected', option.selected)
.text(option.label);
}
existingOptions.push(existingOption = {
element: element,
label: option.label,
id: option.id,
selected: option.selected
});
if (lastElement) {
lastElement.after(element);
} else {
existingParent.element.append(element);
}
lastElement = element;
}
}
// remove any excessive OPTIONs in a group
index++; // increment since the existingOptions[0] is parent element not OPTION
while(existingOptions.length > index) {
existingOptions.pop().element.remove();
}
}
// remove any excessive OPTGROUPs from select
while(optionGroupsCache.length > groupIndex) {
optionGroupsCache.pop()[0].element.remove();
}
}
}
}
}
}];
var optionDirective = ['$interpolate', function($interpolate) {
var nullSelectCtrl = {
addOption: noop,
removeOption: noop
};
return {
restrict: 'E',
priority: 100,
compile: function(element, attr) {
if (isUndefined(attr.value)) {
var interpolateFn = $interpolate(element.text(), true);
if (!interpolateFn) {
attr.$set('value', element.text());
}
}
return function (scope, element, attr) {
var selectCtrlName = '$selectController',
parent = element.parent(),
selectCtrl = parent.data(selectCtrlName) ||
parent.parent().data(selectCtrlName); // in case we are in optgroup
if (selectCtrl && selectCtrl.databound) {
// For some reason Opera defaults to true and if not overridden this messes up the repeater.
// We don't want the view to drive the initialization of the model anyway.
element.prop('selected', false);
} else {
selectCtrl = nullSelectCtrl;
}
if (interpolateFn) {
scope.$watch(interpolateFn, function interpolateWatchAction(newVal, oldVal) {
attr.$set('value', newVal);
if (newVal !== oldVal) selectCtrl.removeOption(oldVal);
selectCtrl.addOption(newVal);
});
} else {
selectCtrl.addOption(attr.value);
}
element.bind('$destroy', function() {
selectCtrl.removeOption(attr.value);
});
};
}
}
}];
var styleDirective = valueFn({
restrict: 'E',
terminal: true
});
//try to bind to jquery now so that one can write angular.element().read()
//but we will rebind on bootstrap again.
bindJQuery();
publishExternalAPI(angular);
jqLite(document).ready(function() {
angularInit(document, bootstrap);
});
;define("angular/angularjs/1.1.5/angular-debug",[],function(){return angular;});})(window, document);
angular.element(document).find('head').append('<style type="text/css">@charset "UTF-8";[ng\\:cloak],[ng-cloak],[data-ng-cloak],[x-ng-cloak],.ng-cloak,.x-ng-cloak{display:none;}ng\\:form{display:block;}</style>');
|
{
"content_hash": "a095307cbbf26ec020b75d685a21cef0",
"timestamp": "",
"source": "github",
"line_count": 16876,
"max_line_length": 212,
"avg_line_length": 33.98601564351742,
"alnum_prop": 0.5936678359962898,
"repo_name": "Treefunder/peatio.next",
"id": "d261c0e1101ea37a0920901327d04ec15612604c",
"size": "573744",
"binary": false,
"copies": "2",
"ref": "refs/heads/master",
"path": "public/assets/sea-modules/angular/angularjs/1.1.5/angular-debug.js",
"mode": "33188",
"license": "mit",
"language": [
{
"name": "CSS",
"bytes": "217236"
},
{
"name": "JavaScript",
"bytes": "1955315"
},
{
"name": "Makefile",
"bytes": "2037"
}
],
"symlink_target": ""
}
|
namespace views {
class Label;
class Widget;
} // namespace views
namespace ui {
namespace ime {
class UI_CHROMEOS_EXPORT ModeIndicatorView : public views::BubbleDelegateView {
public:
ModeIndicatorView(gfx::NativeView parent,
const gfx::Rect& cursor_bounds,
const base::string16& label);
~ModeIndicatorView() override;
// Show the mode indicator then hide with fading animation.
void ShowAndFadeOut();
// views::BubbleDelegateView override:
gfx::Size GetPreferredSize() const override;
protected:
// views::BubbleDelegateView override:
const char* GetClassName() const override;
void Init() override;
// views::WidgetDelegateView overrides:
views::NonClientFrameView* CreateNonClientFrameView(
views::Widget* widget) override;
private:
gfx::Rect cursor_bounds_;
views::Label* label_view_;
base::OneShotTimer timer_;
DISALLOW_COPY_AND_ASSIGN(ModeIndicatorView);
};
} // namespace ime
} // namespace ui
#endif // UI_CHROMEOS_IME_MODE_INDICATOR_VIEW_H_
|
{
"content_hash": "4d1dc0679d1a2747cc03683b5fa8fb64",
"timestamp": "",
"source": "github",
"line_count": 42,
"max_line_length": 79,
"avg_line_length": 24.857142857142858,
"alnum_prop": 0.7097701149425287,
"repo_name": "Workday/OpenFrame",
"id": "d9c824bf58e93715d046edbd3bf12d53e8b4bccd",
"size": "1534",
"binary": false,
"copies": "2",
"ref": "refs/heads/master",
"path": "ui/chromeos/ime/mode_indicator_view.h",
"mode": "33188",
"license": "bsd-3-clause",
"language": [],
"symlink_target": ""
}
|
package ca.openlanguage.pdftoaudiobook.ui;
import java.io.FileDescriptor;
import java.io.FileNotFoundException;
import java.util.Locale;
import java.util.StringTokenizer;
import ca.openlanguage.pdftoaudiobook.R;
import ca.openlanguage.pdftoaudiobook.provider.AudioBookLibraryDatabase.AudiobookColumns;
import ca.openlanguage.pdftoaudiobook.provider.ChunkDatabase.ChunkColumns;
import android.app.Activity;
import android.content.ComponentName;
import android.content.ContentResolver;
import android.content.ContentValues;
import android.content.Intent;
import android.content.res.Resources;
import android.database.Cursor;
import android.net.Uri;
import android.os.Bundle;
import android.speech.tts.TextToSpeech;
import android.util.Log;
import android.view.Menu;
import android.view.MenuInflater;
import android.view.MenuItem;
import android.view.View;
import android.widget.EditText;
import android.widget.Toast;
public class ChunksEditDetailActivity extends Activity implements TextToSpeech.OnInitListener{
private static final String TAG = "ChunkEditor";
/** Talk to the user */
private TextToSpeech mTts;
/**
* Standard projection for the interesting columns of a normal Chunk.
*
* Originally just title and content, no extra meta data or details
*/
private static final String[] PROJECTION = new String[] {
ChunkColumns._ID, // 0
ChunkColumns.TASKNOTES, // 1
ChunkColumns.TITLE, // 2
ChunkColumns.AUTHOR, //3
ChunkColumns.CITATION, //4
ChunkColumns.CLASSIFICATION, //5
ChunkColumns.CHUNKS, //6
ChunkColumns.LAST_LISTENED_TIME, //7
ChunkColumns.FILENAME, //8
ChunkColumns.FULL_FILEPATH_AND_FILENAME, //9
ChunkColumns.PUBLICATION_DATE, //10
ChunkColumns.THUMBNAIL, //11
ChunkColumns.STARRED, //12
};
/**
* The index of the columns in teh PROJECTION (above) and will be used to
* pull the right strings out of the right positions in the cursor
*/
private static final int COLUMN_INDEX_TASKNOTES = 1;
private static final int COLUMN_INDEX_TITLE = 2;
private static final int COLUMN_INDEX_AUTHOR = 3;
private static final int COLUMN_INDEX_CITATION = 4;
private static final int COLUMN_INDEX_CLASSIFICATION = 5;
private static final int COLUMN_INDEX_CHUNKS = 6;
private static final int COLUMN_INDEX_LAST_LISTENED_TIME = 7;
private static final int COLUMN_INDEX_FILENAME = 8;
private static final int COLUMN_INDEX_FULL_FILEPATH_AND_FILENAME = 9;
private static final int COLUMN_INDEX_PUBLICATION_DATE = 10;
private static final int COLUMN_INDEX_THUMBNAIL = 11;
private static final int COLUMN_INDEX_STARRED = 12;
//not needed
//private static final int COLUMN_INDEX_TASKNOTES = 13;
//private static final int COLUMN_INDEX_CREATED_DATE = 14;
//private static final int COLUMN_INDEX_MODIFIED_DATE = 15;
/*
* These are the constants which are put into a state bundle to identify the string contents
* which are preserved eg, origTitle is th key for the the value "THeory of pumpkins"
*/
private static final String ORIGINAL_TASKNOTE = "origContent";
private static final String ORIGINAL_TITLE = "origTitle";
private static final String ORIGINAL_AUTHOR = "origAuthor";
private static final String ORIGINAL_CITATION = "origCitation";
private static final String ORIGINAL_CLASSIFICATION = "origClassification";
private static final String ORIGINAL_PUBDATE = "origPubDate";
private static final String ORIGINAL_LASTLISTENEDTIME = "origLastListenedTime";
private static final String ORIGINAL_CHUNKS = "origChunks";
private static final String ORIGINAL_FILENAME = "origFilename";
private static final String ORIGINAL_FULLFILEPATHANDNAME = "origFullPathAndFilename";
private static final String ORIGINAL_THUMBNAIL = "origThumbnail";
private static final String ORIGINAL_STARRED = "origStarred";
// The different distinct states the activity can be run in.
private static final int STATE_EDIT = 0;
private static final int STATE_INSERT = 1;
private int mState;
private Uri mUri;
private Cursor mCursor;
private EditText mTaskNotesEditText;//the mTaskNotesEditText field
private EditText mTitleEditText;
private EditText mAuthorEditText;
private EditText mCitationEditText;
private EditText mClassificationEditText;
private EditText mPubDateEditText;
private EditText mLastListenedTimeEditText;//note used
private EditText mChunksEditText;
private EditText mFileNameEditText;
private EditText mFullFilePathAndFileNameEditText;
private EditText mThumbnailEditText;//probably won't be displayed
private EditText mStarredEditText;//should be checkbox
//a holder for the original text (prior to user edits) for the main content of the mOriginalTaskNotes,
//make more Strings like this one for the other columns
private String mOriginalTaskNotes;
private String mOriginalTitle;
private String mOriginalAuthor;
private String mOriginalCitation;
private String mOriginalClassification;
private String mOriginalPubDate;
private String mOriginalLastListenedTime;
private String mOriginalChunks;
private String mOriginalFileName;
private String mOriginalFullFilePathAndFileName;
private String mOriginalThumbnail;
private String mOriginalStarred;
private String fullPathAndFileName;
private String fileName;
private Boolean mRegisterPDF;
//implement on Init for the text to speech
public void onInit(int status) {
if (status == TextToSpeech.SUCCESS) {
// Set preferred language to US english.
// Note that a language may not be available, and the result will
// indicate this.
int result = mTts.setLanguage(Locale.US);
// Try this someday for some interesting results.
// int result mTts.setLanguage(Locale.FRANCE);
if (result == TextToSpeech.LANG_MISSING_DATA
|| result == TextToSpeech.LANG_NOT_SUPPORTED) {
// Language data is missing or the language is not supported.
Log.e(TAG, "Language is not available.");
} else {
// mSpeakButton.setEnabled(true);
// mPauseButton.setEnabled(true);
// Greet the user.
// sayHello();
}
} else {
// Initialization failed.
Log.e(TAG, "Could not initialize TextToSpeech.");
}
}
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
mTts = new TextToSpeech(this, this);
final Intent intent = getIntent();
// Do some setup based on the action being performed.
String action = intent.getAction();
Uri dataUri = intent.getData();
Uri dataUriToTriggerNewChunk = AudiobookColumns.CONTENT_URI;
mRegisterPDF = false;
Toast tellUser = Toast.makeText(this,
"The data in the uri is: "+dataUri.toString(), Toast.LENGTH_LONG);
//tellUser.show();
if( dataUri.toString().startsWith(dataUriToTriggerNewChunk.toString()) ){
//register a pdf
mRegisterPDF = true;
action=Intent.ACTION_INSERT;
}
if (Intent.ACTION_EDIT.equals(action)) {
// Requested to edit: set that state, and the data being edited.
mState = STATE_EDIT;
mUri = intent.getData();
} else if (Intent.ACTION_INSERT.equals(action)) {
// Requested to insert: set that state, and create a new entry
// in the container.
mState = STATE_INSERT;
//this is run when add chunk is called, prior to an data being entered.
if(mRegisterPDF ==true){
getPDFFileNameAndPath();
//resent the intent data to an appropriate thing for a new note.
//mUri = getContentResolver().insert(dataUriForANewChunk, null);
intent.setData(dataUriToTriggerNewChunk);
}
mUri = getContentResolver().insert(intent.getData(), null);
// If we were unable to create a new chunk, then just finish
// this activity. A RESULT_CANCELED will be sent back to the
// original activity if they requested a result.
if (mUri == null) {
Log.e(TAG, "Failed to insert new chunk into " + getIntent().getData());
finish();
return;
}
// The new entry was created, so assume all will end well and
// set the result to be returned.
//The result can then be filled in by the application into a full chunk
setResult(RESULT_OK, (new Intent()).setAction(mUri.toString()));
} else {
// Whoops, unknown action! Bail.
Log.e(TAG, "Unknown action, exiting");
finish();
return;
}
// Set the layout for this activity. You can find it in res/layout/audiobook_editor.xml
setContentView(R.layout.activity_chunks_editdetail);
//chunkt view for our chunk, identified by its ID in the XML file.
mTaskNotesEditText = (EditText) findViewById(R.id.tasknotes);
mTitleEditText = (EditText) findViewById(R.id.ChunkTitle);
mAuthorEditText = (EditText) findViewById(R.id.ChunkCorrections);
mCitationEditText = (EditText) findViewById(R.id.ChunkHistory);
mClassificationEditText = (EditText) findViewById(R.id.ChunkListenedToDate);
mPubDateEditText = (EditText) findViewById(R.id.ChunkGeneratedDate);
//mLastListenedTimeEditText;
mChunksEditText = (EditText) findViewById(R.id.ChunkText);
mFileNameEditText = (EditText) findViewById(R.id.audiobookFileName);
mFullFilePathAndFileNameEditText = (EditText) findViewById(R.id.ChunkFullFilePathandFileName);
//mThumbnailEditText;
//mStarredEditText;
/*
* Get the chunk details using the id which is in mUri
*
* get the columns listed in PROJECTION, they need to match the order
* given in COLUMN_INDEX
*/
mCursor = managedQuery(mUri, PROJECTION, null, null, null);
/**
* If its a new document created based on context clicking ona pdf, then populate teh
* fields using the pdf document's info
*/
if(mRegisterPDF==true){
fillDocumentDetailsIntoForm();
saveChunk();
}
// If an instance of this activity had previously stopped, we can still
// get the original text it started with before the user pushed back or te activity was paused. i
// ie can still discard/cancel edits that the user doesnt think were made.
/*
* asks the savedInstantState for the key at the entry of the constant defined
* in ORIGINAL_*****columname*** ?
*/
if (savedInstanceState != null) {
mOriginalTaskNotes = savedInstanceState.getString(ORIGINAL_TASKNOTE);
mOriginalTitle = savedInstanceState.getString(ORIGINAL_TITLE);
mOriginalAuthor = savedInstanceState.getString(ORIGINAL_AUTHOR);
mOriginalCitation = savedInstanceState.getString(ORIGINAL_CITATION);
mOriginalClassification = savedInstanceState.getString(ORIGINAL_CLASSIFICATION);
mOriginalPubDate = savedInstanceState.getString(ORIGINAL_PUBDATE);
mOriginalLastListenedTime = savedInstanceState.getString(ORIGINAL_LASTLISTENEDTIME);
mOriginalChunks = savedInstanceState.getString(ORIGINAL_CHUNKS);
mOriginalFileName = savedInstanceState.getString(ORIGINAL_FILENAME);
mOriginalFullFilePathAndFileName = savedInstanceState.getString(ORIGINAL_FULLFILEPATHANDNAME);
mOriginalThumbnail = savedInstanceState.getString(ORIGINAL_THUMBNAIL);
mOriginalStarred = savedInstanceState.getString(ORIGINAL_STARRED);
}
}
/**
* this method is called very often, each time the details are displayed.
*
* It first calls the super's onResume (from activity)
*
* Then it provides a user friendly title change
*
* Then it preserves the all edit text fields in case the user cancels their edits
*
*
* @see android.app.Activity#onResume()
*/
@Override
protected void onResume() {
super.onResume();
/*
* Expect the mCursor to contain one row with the chunk details
*
* Frequent:
*/
if (mCursor != null) {
// Requery in case something changed while paused (such as the title)
mCursor.requery();
// Make sure we are at the one and only row in the cursor.
mCursor.moveToFirst();
/*
* Modify our activity's title depending on the mode we are running in.
* STATE_EDIT: "Editing The theory of pumpkins"
* STATE_INSERT: "Creating a new Chunk"
*/
if (mState == STATE_EDIT) {
String title = mCursor.getString(COLUMN_INDEX_TITLE);
Resources res = getResources();
setTitle("Editing "+title);//title of activity
} else if (mState == STATE_INSERT) {
setTitle("In the Insert state"); //title of activity
}
// This is a little tricky: we may be resumed after previously being
// paused/stopped. We want to put the new text in the text view,
// but leave the user where they were (retain the cursor position
// etc). This version of setText does that for us.
/*
* The resume function redisplays the edit details after the app has been
* paused, so if the user wants to cancel their edits the original content
* should be saved here first.
*
* This gets the string for each column, sets the TextKeepState on each edittext
* and also puts the text into a member variable of the object called mOriginalTaskNotes
*
* Should only do this if previous OriginalContent doesnt exist, so and an if...
*
*/
String tasknotes = mCursor.getString(COLUMN_INDEX_TASKNOTES);
mTaskNotesEditText.setTextKeepState(tasknotes);
mOriginalTaskNotes = tasknotes;
String title = mCursor.getString(COLUMN_INDEX_TITLE);
mTitleEditText.setTextKeepState(title);
mOriginalTitle = title;
String author = mCursor.getString(COLUMN_INDEX_AUTHOR);
mAuthorEditText.setTextKeepState(author);
mOriginalAuthor = author;
String citations = mCursor.getString(COLUMN_INDEX_CITATION);
mCitationEditText.setTextKeepState(citations);
mOriginalCitation = citations;
String classifications = mCursor.getString(COLUMN_INDEX_CLASSIFICATION);
mClassificationEditText.setTextKeepState(classifications);
mOriginalClassification = classifications;
String pubdate = mCursor.getString(COLUMN_INDEX_PUBLICATION_DATE);
mPubDateEditText.setTextKeepState(pubdate);
mOriginalPubDate = pubdate;
String lastlistenedtime = mCursor.getString(COLUMN_INDEX_LAST_LISTENED_TIME);
//mLastListenedTimeEditText.setTextKeepState(lastlistenedtime);
mOriginalLastListenedTime = lastlistenedtime;
String chunks = mCursor.getString(COLUMN_INDEX_CHUNKS);
mChunksEditText.setTextKeepState(chunks);
mOriginalChunks = chunks;
String filename = mCursor.getString(COLUMN_INDEX_FILENAME);
mFileNameEditText.setTextKeepState(filename);
mOriginalFileName = filename;
String fullpathandfilename = mCursor.getString(COLUMN_INDEX_FULL_FILEPATH_AND_FILENAME);
mFullFilePathAndFileNameEditText.setTextKeepState(fullpathandfilename);
mOriginalFullFilePathAndFileName = fullpathandfilename;
String thumbnail = mCursor.getString(COLUMN_INDEX_THUMBNAIL);
//mThumbnail.setTextKeepState(fullpathandfilename);
mOriginalThumbnail = thumbnail;
String starred = mCursor.getString(COLUMN_INDEX_STARRED);
//mStarred.setTextKeepState(fullpathandfilename);
mOriginalStarred = starred;
} else {
/*
* if there is no content in the row supplied by mUri's id
*
* Rare:
*/
setTitle(getText(R.string.error_title));
mTaskNotesEditText.setText(getText(R.string.error_message));
}
}
@Override
protected void onSaveInstanceState(Bundle outState) {
// Save away the original text, so we still have it if the activity
// needs to be killed while paused.
outState.putString(ORIGINAL_TASKNOTE, mOriginalTaskNotes);
outState.putString(ORIGINAL_TITLE, mOriginalTitle);
outState.putString(ORIGINAL_AUTHOR, mOriginalAuthor);
outState.putString(ORIGINAL_CITATION, mOriginalCitation);
outState.putString(ORIGINAL_CLASSIFICATION, mOriginalClassification);
outState.putString(ORIGINAL_PUBDATE, mOriginalPubDate);
outState.putString(ORIGINAL_LASTLISTENEDTIME, mOriginalLastListenedTime);
outState.putString(ORIGINAL_CHUNKS, mOriginalChunks);
outState.putString(ORIGINAL_FILENAME, mOriginalFileName);
outState.putString(ORIGINAL_FULLFILEPATHANDNAME, mOriginalFullFilePathAndFileName);
outState.putString(ORIGINAL_THUMBNAIL, mOriginalThumbnail);
outState.putString(ORIGINAL_STARRED, mOriginalStarred);
}
@Override
protected void onPause() {
super.onPause();
// The user is going somewhere, so make sure changes are saved
saveChunk();
}
@Override
public boolean onCreateOptionsMenu(Menu menu) {
// Inflate menu from XML resource
MenuInflater inflater = getMenuInflater();
inflater.inflate(R.menu.editor_options_menu, menu);
// Append to the
// menu items for any other activities that can do stuff with it
// as well. This does a query on the system for any activities that
// implement the ALTERNATIVE_ACTION for our data, adding a menu item
// for each one that is found.
Intent intent = new Intent(null, getIntent().getData());
intent.addCategory(Intent.CATEGORY_ALTERNATIVE);
menu.addIntentOptions(Menu.CATEGORY_ALTERNATIVE, 0, 0,
new ComponentName(this, DocumentsEditDetailActivity.class), null, intent, 0, null);
return super.onCreateOptionsMenu(menu);
}
@Override
public boolean onPrepareOptionsMenu(Menu menu) {
if (mState == STATE_EDIT) {
menu.setGroupVisible(R.id.menu_group_edit, true);
menu.setGroupVisible(R.id.menu_group_insert, false);
// Check if chunk details have changed and enable/disable the revert option
//TODO change the logic to make revert act like an undo action on one field.
String savedTasknotes = mCursor.getString(COLUMN_INDEX_TASKNOTES);
String currentTasknotes = mTaskNotesEditText.getText().toString();
if (savedTasknotes.equals(currentTasknotes)) {
menu.findItem(R.id.menu_revert).setEnabled(false);
} else {
menu.findItem(R.id.menu_revert).setEnabled(true);
}
} else {
menu.setGroupVisible(R.id.menu_group_edit, false);
menu.setGroupVisible(R.id.menu_group_insert, true);
}
return super.onPrepareOptionsMenu(menu);
}
@Override
public boolean onOptionsItemSelected(MenuItem item) {
// Handle all of the possible menu actions.
switch (item.getItemId()) {
case R.id.menu_save:
saveChunk();
finish();
break;
case R.id.menu_delete:
deleteChunk();
finish();
break;
case R.id.menu_revert:
case R.id.menu_discard:
cancelChunk();
break;
}
return super.onOptionsItemSelected(item);
}
/*
* handles the save button as defined in its properties
* android:onClick="onSaveClick"
*
* the save button is pretty unneseary but the users like it.
*/
public void onSaveClick(View v) {
saveChunk();//saveContent();
}
/*
* handles the discard button as defined in its properties
* android:onClick="onDiscardClick"
*/
public void onDiscardClick(View v) {
//cancel chunk undo's the user edits
cancelChunk();
}
public void onPlayClick(View v) {
String sample = mChunksEditText.getText().toString();
if (sample.length()>351){
sample = sample.substring(0,350);
}
mTts.speak(sample,
TextToSpeech.QUEUE_ADD,
null);
}
private final void saveChunk() {
// Make sure their current
// changes are safely saved away in the provider. We don't need
// to do this if only editing. TODO what does that mean ?this is where i put the save logic,maybe by default it saves the right way..
if (mCursor != null) {
ContentValues values = new ContentValues();
// Bump the modification time to now.
values.put(ChunkColumns.MODIFIED_DATE, System.currentTimeMillis());
/*
* Write the contents of the edit texts back into the provider.
*/
//TOD put the other edit fields here
values.put(ChunkColumns.TASKNOTES, mTaskNotesEditText.getText().toString());
values.put(ChunkColumns.TITLE, mTitleEditText.getText().toString());
//put all the fields (except the metadata fields) into the values to update row in the database
values.put(ChunkColumns.AUTHOR, mAuthorEditText.getText().toString());
values.put(ChunkColumns.CITATION, mCitationEditText.getText().toString());
values.put(ChunkColumns.CLASSIFICATION, mClassificationEditText.getText().toString());
values.put(ChunkColumns.PUBLICATION_DATE, mPubDateEditText.getText().toString());
//values.put(ChunkColumns.LAST_LISTENED_TIME, mLastListenedTimeEditText.getText().toString());
values.put(ChunkColumns.CHUNKS, mChunksEditText.getText().toString());
values.put(ChunkColumns.FILENAME, mFileNameEditText.getText().toString());
values.put(ChunkColumns.FULL_FILEPATH_AND_FILENAME, mFullFilePathAndFileNameEditText.getText().toString());
//values.put(ChunkColumns.THUMBNAIL, mThumbnailEditText.getText().toString());
//values.put(ChunkColumns.STARRED, mStarredEditText.getText().toString());
//what about the create tiem etc?, how does this relate to the index of the column?
// Commit all of our changes to persistent storage. When the update completes
// the content provider will notify the cursor of the change, which will
// cause the UI to be updated.
/*
* the question is, what about the columns that are missing?
*/
try {
getContentResolver().update(mUri, values, null, null);
} catch (NullPointerException e) {
Log.e(TAG, e.getMessage());
}
}
}
/**
* Take care of canceling work on a chunk. Deletes the chunk if we
* had created it, otherwise reverts to the original text.
*/
private final void cancelChunk() {
if (mCursor != null) {
if (mState == STATE_EDIT) {
// Put the original chunk text back into the database
mCursor.close();
mCursor = null;
ContentValues values = new ContentValues();
/*
* put other content columns here too
*/
values.put(ChunkColumns.TASKNOTES, mOriginalTaskNotes);
values.put(ChunkColumns.TITLE, mOriginalTitle);
values.put(ChunkColumns.AUTHOR, mOriginalAuthor);
values.put(ChunkColumns.CLASSIFICATION, mOriginalClassification);
values.put(ChunkColumns.CITATION, mOriginalCitation);
values.put(ChunkColumns.CHUNKS, mOriginalChunks);
values.put(ChunkColumns.LAST_LISTENED_TIME, mOriginalLastListenedTime);
values.put(ChunkColumns.FILENAME, mOriginalFileName);
values.put(ChunkColumns.FULL_FILEPATH_AND_FILENAME, mOriginalFullFilePathAndFileName);
values.put(ChunkColumns.PUBLICATION_DATE, mOriginalPubDate);
values.put(ChunkColumns.THUMBNAIL, mOriginalThumbnail);
values.put(ChunkColumns.STARRED, mOriginalStarred);
/*
* this originally contianed only the text, not the title (nor the metadata)
* what happens with the columns that are not modified? how does the contentresolver
* know which values in teh original PROJECTION were not modified?
*
* the documenation says that teh values are a bundle maping from column names, to new values.
* essentially resulting in an update command per each pair in the values bundle,
* so its not one big update command. it seems like one command because it matches the id in the URI so effectively
* only one row should get changed.
*
* This makes it robust to errors where a column is forgotten in the update, it simply wont get updated
* but it wont cause teh application to crash
*/
getContentResolver().update(mUri, values, null, null);
} else if (mState == STATE_INSERT) {
// We inserted an empty chunk, make sure to delete it
deleteChunk();
}
}
setResult(RESULT_CANCELED);
finish();
}
/**
* Take care of deleting a chunk. Simply deletes the entry.
*/
private final void deleteChunk() {
if (mCursor != null) {
mCursor.close();
mCursor = null;
getContentResolver().delete(mUri, null, null);
mTaskNotesEditText.setText("");
}
}
/**
* Return file name and path.
* @return string
*/
private void getPDFFileNameAndPath() {
final Intent intent = getIntent();
Uri uri = intent.getData();
fullPathAndFileName = uri.getPath().toString();
int lastPosition = uri.getPathSegments().size() - 1 ;
fileName = uri.getPathSegments().get(lastPosition);
if (uri.getScheme().equals("file")) {
return ;//fullPathAndFileName;
//return new PDF(new File(fullPathAndFileName));
} else if (uri.getScheme().equals("content")) {
ContentResolver cr = this.getContentResolver();
FileDescriptor fileDescriptor;
try {
fileDescriptor = cr.openFileDescriptor(uri, "r").getFileDescriptor();
} catch (FileNotFoundException e) {
throw new RuntimeException(e); // TODO: handle errors
}
fileName = "Unknown - 2010 - Unknown.pdf";
fullPathAndFileName = "Unknown - 2010 - Unknown.pdf";//fileDescriptor.toString();
return ;//fileDescriptor.toString();
//return new PDF(fileDescriptor);
} else {
throw new RuntimeException("don't know how to get filename from " + uri);
}
}
private void fillDocumentDetailsIntoForm(){
//divide filename on hyphens -, replace underscores with spaces
StringTokenizer fileNameSections = new StringTokenizer(fileName.replaceAll("_", " "), "-");
//assume the filename is in format author - date - title, if not longer than 3 tokens, put
//later use metadata and the actual text to extract information
String author="";
String date ="";
String title ="";
if(fileNameSections.countTokens()>2){
author = fileNameSections.nextToken().replaceAll(",", " and");
date = fileNameSections.nextToken();
title = fileNameSections.nextToken().replace(".pdf", "");
}else{
title=fileName.replaceAll("_"," ").replace(".pdf","");
}
String citations = ""+author+" "+date;
mFullFilePathAndFileNameEditText.setText(fullPathAndFileName);
mFileNameEditText.setText(fileName);
mTitleEditText.setText(title);
mAuthorEditText.setText(author);
mPubDateEditText.setText(date);
mCitationEditText.setText(citations);
Toast tellUserInfoSource = Toast.makeText(this,
"Document info was auto-filled based on the file name. \n\n You can make any corrections needed.", Toast.LENGTH_LONG);
tellUserInfoSource.show();
}
}
|
{
"content_hash": "db52d3b51e1aaa0bb5291b53f82f3475",
"timestamp": "",
"source": "github",
"line_count": 713,
"max_line_length": 141,
"avg_line_length": 41.669004207573636,
"alnum_prop": 0.6385392123864019,
"repo_name": "cesine/PDFtoAudioBook",
"id": "65ece1c6d1a16dd0400cf597120aca6928a0d6b0",
"size": "30296",
"binary": false,
"copies": "2",
"ref": "refs/heads/master",
"path": "src/ca/openlanguage/pdftoaudiobook/ui/ChunksEditDetailActivity.java",
"mode": "33188",
"license": "apache-2.0",
"language": [
{
"name": "Java",
"bytes": "150321"
}
],
"symlink_target": ""
}
|
class Solution(object):
def twoSum(self, numbers, target):
n = len(numbers)
def binarySearch(left, right, value):
while left <= right:
mid = left + (right - left) / 2
if numbers[mid] == value:
return mid
elif numbers[mid] < value:
left = mid + 1
else:
right = mid - 1
return -1
for index1, value in enumerate(numbers):
if target - value >= value:
index2 = binarySearch(index1 + 1, n - 1, target - value)
if index2 != -1:
return (index1 + 1, index2 + 1)
|
{
"content_hash": "477913cdf365a29913402afcdd425f98",
"timestamp": "",
"source": "github",
"line_count": 20,
"max_line_length": 72,
"avg_line_length": 35.15,
"alnum_prop": 0.4352773826458037,
"repo_name": "luosch/leetcode",
"id": "351207731d0f18a6506c4d00df682d6ca13c82e2",
"size": "703",
"binary": false,
"copies": "1",
"ref": "refs/heads/master",
"path": "python/Two Sum II - Input array is sorted.py",
"mode": "33188",
"license": "mit",
"language": [
{
"name": "C++",
"bytes": "37027"
},
{
"name": "Python",
"bytes": "175260"
},
{
"name": "Shell",
"bytes": "801"
},
{
"name": "Swift",
"bytes": "121"
}
],
"symlink_target": ""
}
|
<?php
namespace RbacUserDoctrineOrm\Mapper;
use Doctrine\ORM\EntityManager;
use RbacUserDoctrineOrm\Options\RoleMapperOptions;
class Role {
/**
* @var EntityManager
*/
protected $em;
/**
* @var RoleMapperOptions
*/
protected $options;
public function __construct(EntityManager $em, RoleMapperOptions $options)
{
$this->em = $em;
$this->options = $options;
}
public function findAll()
{
$er = $this->em->getRepository($this->options->getEntityClass());
return $er->findAll();
}
}
|
{
"content_hash": "cbcfd85ef2792da6fdb1bf84d3162590",
"timestamp": "",
"source": "github",
"line_count": 35,
"max_line_length": 78,
"avg_line_length": 16.742857142857144,
"alnum_prop": 0.6006825938566553,
"repo_name": "dartalla/Dartalla",
"id": "c18226d8724321c297b393315dc996ebb2ea665f",
"size": "881",
"binary": false,
"copies": "1",
"ref": "refs/heads/master",
"path": "vendor/RbacUserDoctrineOrm/src/RbacUserDoctrineOrm/Mapper/Role.php",
"mode": "33188",
"license": "bsd-3-clause",
"language": [
{
"name": "CSS",
"bytes": "111032"
},
{
"name": "JavaScript",
"bytes": "38091"
},
{
"name": "PHP",
"bytes": "1163935"
}
],
"symlink_target": ""
}
|
// For an introduction to the Search Contract template, see the following documentation:
// http://go.microsoft.com/fwlink/?LinkId=232512
// TODO: Add the following script tag to the start page's head to
// subscribe to search contract events.
//
// <script src="/pages/searchResults/searchResults.js"></script>
//
// TODO: Edit the manifest to enable use as a search target. The package
// manifest could not be automatically updated. Open the package manifest file
// and ensure that support for activation of searching is enabled.
(function () {
"use strict";
WinJS.Binding.optimizeBindingReferences = true;
var appModel = Windows.ApplicationModel;
var appViewState = Windows.UI.ViewManagement.ApplicationViewState;
var nav = WinJS.Navigation;
var ui = WinJS.UI;
var utils = WinJS.Utilities;
var searchPageURI = "/pages/searchResults/searchResults.html";
appModel.Search.SearchPane.getForCurrentView().showOnKeyboardInput = true;
ui.Pages.define(searchPageURI, {
// This function is called whenever a user navigates to this page. It
// populates the page elements with the app's data.
ready: function (element, options) {
WinJS.Binding.processAll(element, ViewModels.Search);
ViewModels.Search.submitSearchText(options.queryText);
},
});
WinJS.Application.addEventListener("activated", function (args) {
if (args.detail.kind === appModel.Activation.ActivationKind.search) {
args.setPromise(ui.processAll().then(function () {
if (!nav.location) {
nav.history.current = { location: Application.navigator.home, initialState: {} };
}
return nav.navigate(searchPageURI, { queryText: args.detail.queryText });
}));
}
});
appModel.Search.SearchPane.getForCurrentView().onquerysubmitted = function (args) { nav.navigate(searchPageURI, args); };
})();
|
{
"content_hash": "c680677f1498e2933096be111961ef4c",
"timestamp": "",
"source": "github",
"line_count": 49,
"max_line_length": 125,
"avg_line_length": 40.42857142857143,
"alnum_prop": 0.6769308430085815,
"repo_name": "IcefyreTeam/TVProgram",
"id": "75581ade1db24b650de65cd63bbd437662d17e6c",
"size": "1983",
"binary": false,
"copies": "2",
"ref": "refs/heads/master",
"path": "BulgarianTvGuide/pages/searchResults/searchResults.js",
"mode": "33188",
"license": "mit",
"language": [
{
"name": "CSS",
"bytes": "12986"
},
{
"name": "JavaScript",
"bytes": "49253"
}
],
"symlink_target": ""
}
|
import { Injectable } from "@angular/core";
let localStorage = require("nativescript-localstorage");
export class BackendService {
static apiUrl = "https://api.everlive.com/v1/GWfRtXi1Lwt4jcqK/";
// static apiUrl = "http://10.0.2.2:5000/";
// static apiUrl: string = "http://api-web-woolnet.azurewebsites.net/";
static tokenKey: string = "token";
static get token(): string {
return localStorage.getItem(this.tokenKey);
}
static set token(theToken: string) {
localStorage.setItem(this.tokenKey, theToken);
}
static remove() {
localStorage.removeItem(this.tokenKey);
}
}
|
{
"content_hash": "4e8529cf87711957af8ec0201fc25755",
"timestamp": "",
"source": "github",
"line_count": 24,
"max_line_length": 75,
"avg_line_length": 26.708333333333332,
"alnum_prop": 0.6583463338533542,
"repo_name": "AmilaRukshan/Nativescript-Ng2-Jwt-Login",
"id": "e2fe7395c3b1b42a9d9aa335e523ad2c116e5d6c",
"size": "641",
"binary": false,
"copies": "1",
"ref": "refs/heads/master",
"path": "app/modules/shared/backend.service.ts",
"mode": "33188",
"license": "apache-2.0",
"language": [
{
"name": "CSS",
"bytes": "54"
},
{
"name": "HTML",
"bytes": "1177"
},
{
"name": "TypeScript",
"bytes": "12893"
}
],
"symlink_target": ""
}
|
package com.google.litecoin.core;
import java.util.List;
/**
* Default no-op implementation of {@link BlockChainListener}.
*/
public class AbstractBlockChainListener implements BlockChainListener {
public void notifyNewBestBlock(StoredBlock block) throws VerificationException {
}
public void reorganize(StoredBlock splitPoint, List<StoredBlock> oldBlocks, List<StoredBlock> newBlocks) throws VerificationException {
}
public boolean isTransactionRelevant(Transaction tx) throws ScriptException {
return false;
}
public void receiveFromBlock(Transaction tx, StoredBlock block, BlockChain.NewBlockType blockType) throws VerificationException {
}
public void notifyTransactionIsInBlock(Sha256Hash txHash, StoredBlock block, BlockChain.NewBlockType blockType) throws VerificationException {
}
}
|
{
"content_hash": "c526e6a2987f5fdf6baae1df786fb487",
"timestamp": "",
"source": "github",
"line_count": 26,
"max_line_length": 146,
"avg_line_length": 32.69230769230769,
"alnum_prop": 0.7823529411764706,
"repo_name": "Qw0kka/creditsj",
"id": "cb2750ed4f56ebc7d38978a906c046a21ff5735e",
"size": "1444",
"binary": false,
"copies": "3",
"ref": "refs/heads/master",
"path": "core/src/main/java/com/google/litecoin/core/AbstractBlockChainListener.java",
"mode": "33188",
"license": "apache-2.0",
"language": [
{
"name": "Java",
"bytes": "3799871"
}
],
"symlink_target": ""
}
|
const getBaseType = require('./_getBaseType')
/**
*
* @param {Object} obj
*/
const isFunction = value =>
getBaseType('Function')(value)
module.exports = isFunction
|
{
"content_hash": "87d785aaa00f52ce6d4eff579f7ae90d",
"timestamp": "",
"source": "github",
"line_count": 9,
"max_line_length": 45,
"avg_line_length": 19.22222222222222,
"alnum_prop": 0.6647398843930635,
"repo_name": "bobojiayou/fpb",
"id": "ab097afdbf2f99c4b332086c026b7d16b1375743",
"size": "173",
"binary": false,
"copies": "1",
"ref": "refs/heads/master",
"path": "src/isFunction.js",
"mode": "33188",
"license": "mit",
"language": [
{
"name": "JavaScript",
"bytes": "52880"
}
],
"symlink_target": ""
}
|
using Yggdrasil.Logging.Targets;
namespace Yggdrasil.Logging
{
/// <summary>
/// Logs messages to command line and file.
/// </summary>
public static class Log
{
private static Logger _logger = Logger.Get();
static Log()
{
_logger.AddTarget(new ConsoleTarget());
_logger.AddTarget(new FileTarget("logs"));
}
/// <summary>
/// Logs an info message.
/// </summary>
/// <param name="value"></param>
public static void Info(string value) { _logger.Info(value); }
/// <summary>
/// Logs an info message.
/// </summary>
/// <param name="format"></param>
/// <param name="args"></param>
public static void Info(string format, params object[] args) { _logger.Info(format, args); }
/// <summary>
/// Logs an info message.
/// </summary>
/// <param name="obj"></param>
public static void Info(object obj) { _logger.Info(obj); }
/// <summary>
/// Logs a warning message.
/// </summary>
/// <param name="value"></param>
public static void Warning(string value) { _logger.Warning(value); }
/// <summary>
/// Logs a warning message.
/// </summary>
/// <param name="format"></param>
/// <param name="args"></param>
public static void Warning(string format, params object[] args) { _logger.Warning(format, args); }
/// <summary>
/// Logs a warning message.
/// </summary>
/// <param name="obj"></param>
public static void Warning(object obj) { _logger.Warning(obj); }
/// <summary>
/// Logs an error message.
/// </summary>
/// <param name="value"></param>
public static void Error(string value) { _logger.Error(value); }
/// <summary>
/// Logs an error message.
/// </summary>
/// <param name="format"></param>
/// <param name="args"></param>
public static void Error(string format, params object[] args) { _logger.Error(format, args); }
/// <summary>
/// Logs an error message.
/// </summary>
/// <param name="obj"></param>
public static void Error(object obj) { _logger.Error(obj); }
/// <summary>
/// Logs a debug message.
/// </summary>
/// <param name="value"></param>
public static void Debug(string value) { _logger.Debug(value); }
/// <summary>
/// Logs a debug message.
/// </summary>
/// <param name="format"></param>
/// <param name="args"></param>
public static void Debug(string format, params object[] args) { _logger.Debug(format, args); }
/// <summary>
/// Logs a debug message.
/// </summary>
/// <param name="obj"></param>
public static void Debug(object obj) { _logger.Debug(obj); }
/// <summary>
/// Logs a status message.
/// </summary>
/// <param name="value"></param>
public static void Status(string value) { _logger.Status(value); }
/// <summary>
/// Logs a status message.
/// </summary>
/// <param name="format"></param>
/// <param name="args"></param>
public static void Status(string format, params object[] args) { _logger.Status(format, args); }
/// <summary>
/// Logs a status message.
/// </summary>
/// <param name="obj"></param>
public static void Status(object obj) { _logger.Status(obj); }
/// <summary>
/// Sets levels that should not be logged.
/// </summary>
/// <param name="levels"></param>
public static void SetFilter(LogLevel levels)
{
var targets = _logger.GetTargets();
foreach (var target in targets)
target.Filter = levels;
}
}
}
|
{
"content_hash": "418397ccd6041036630af735abfb72cb",
"timestamp": "",
"source": "github",
"line_count": 125,
"max_line_length": 100,
"avg_line_length": 27.104,
"alnum_prop": 0.6100944510035419,
"repo_name": "aura-project/Yggdrasil",
"id": "99b6d0e7de1e6bcebe6b222b74bb01aed5c0a1c8",
"size": "3390",
"binary": false,
"copies": "1",
"ref": "refs/heads/master",
"path": "Yggdrasil/Logging/Log.cs",
"mode": "33188",
"license": "mit",
"language": [
{
"name": "C#",
"bytes": "405719"
}
],
"symlink_target": ""
}
|
All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
## [0.4.0] - 2021-05-26
### Changed
Switched to use MiniScaffold. Built against .NET 5.0.
## [0.3.0] - 2019-10-03
* Update to .NET Core 3
## [0.2.0] - 2018-05-22
* Update to .NET Core
* Update tests to use Expecto
## [0.1.2] - 2016-10-28
* Updated framework version
* Minor test updates
* Documentation updates
* Added fsi signature
## [0.1.1] - 2016-10-24
* Supports LANGID and ISO-639-1 mappings
[Unreleased]: https://github.com/enovales/LANGIDMappings/compare/v0.4.0...HEAD
[0.4.0]: https://github.com/enovales/LANGIDMappings/compare/v0.3.0...v0.4.0
|
{
"content_hash": "4a5a9774c31b8156f9198f3a4999a28b",
"timestamp": "",
"source": "github",
"line_count": 32,
"max_line_length": 87,
"avg_line_length": 25.09375,
"alnum_prop": 0.701120797011208,
"repo_name": "enovales/LANGIDMappings",
"id": "39179b2b0eea0251589c120ec2535478dc0d8cb0",
"size": "816",
"binary": false,
"copies": "1",
"ref": "refs/heads/master",
"path": "CHANGELOG.md",
"mode": "33188",
"license": "mit",
"language": [
{
"name": "Batchfile",
"bytes": "602"
},
{
"name": "Dockerfile",
"bytes": "292"
},
{
"name": "F#",
"bytes": "102842"
},
{
"name": "HTML",
"bytes": "2721"
},
{
"name": "Shell",
"bytes": "628"
}
],
"symlink_target": ""
}
|
//------------------------------------------------------------------------------
// <auto-generated>
// This code was generated by a tool.
// Runtime Version:4.0.30319.42000
//
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated.
// </auto-generated>
//------------------------------------------------------------------------------
namespace Microsoft.WindowsAzure.MobileServices.SQLiteStore.Test {
[global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.VisualStudio.Editors.SettingsDesigner.SettingsSingleFileGenerator", "15.0.1.0")]
internal sealed partial class Settings : global::System.Configuration.ApplicationSettingsBase {
private static Settings defaultInstance = ((Settings)(global::System.Configuration.ApplicationSettingsBase.Synchronized(new Settings())));
public static Settings Default {
get {
return defaultInstance;
}
}
[global::System.Configuration.UserScopedSettingAttribute()]
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.Configuration.DefaultSettingValueAttribute("")]
public string MobileServiceRuntimeUrl {
get {
return ((string)(this["MobileServiceRuntimeUrl"]));
}
set {
this["MobileServiceRuntimeUrl"] = value;
}
}
[global::System.Configuration.UserScopedSettingAttribute()]
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.Configuration.DefaultSettingValueAttribute("")]
public string MobileServiceRuntimeKey {
get {
return ((string)(this["MobileServiceRuntimeKey"]));
}
set {
this["MobileServiceRuntimeKey"] = value;
}
}
[global::System.Configuration.UserScopedSettingAttribute()]
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.Configuration.DefaultSettingValueAttribute("")]
public string MobileServiceTags {
get {
return ((string)(this["MobileServiceTags"]));
}
set {
this["MobileServiceTags"] = value;
}
}
}
}
|
{
"content_hash": "6d1760f73e755e3d240cd8ba7647f742",
"timestamp": "",
"source": "github",
"line_count": 62,
"max_line_length": 151,
"avg_line_length": 39.87096774193548,
"alnum_prop": 0.5792880258899676,
"repo_name": "MatkovIvan/azure-mobile-apps-net-client",
"id": "981a3960cd6c9b337d6fb3790cf7912e40c2d667",
"size": "2474",
"binary": false,
"copies": "2",
"ref": "refs/heads/master",
"path": "unittest/Microsoft.WindowsAzure.MobileServices.SQLiteStore.Net45.Test/Settings.Designer.cs",
"mode": "33188",
"license": "apache-2.0",
"language": [
{
"name": "C#",
"bytes": "2961619"
},
{
"name": "JavaScript",
"bytes": "1841"
},
{
"name": "Shell",
"bytes": "3983"
}
],
"symlink_target": ""
}
|
package org.apache.shardingsphere.elasticjob.error.handler.general;
import org.apache.shardingsphere.elasticjob.error.handler.JobErrorHandler;
import java.util.Properties;
/**
* Job error handler for ignore exception.
*/
public final class IgnoreJobErrorHandler implements JobErrorHandler {
@Override
public void init(final Properties props) {
}
@Override
public void handleException(final String jobName, final Throwable cause) {
}
@Override
public String getType() {
return "IGNORE";
}
}
|
{
"content_hash": "046f7e532f0483b2d32441b08e60da2d",
"timestamp": "",
"source": "github",
"line_count": 26,
"max_line_length": 78,
"avg_line_length": 21.384615384615383,
"alnum_prop": 0.710431654676259,
"repo_name": "elasticjob/elastic-job",
"id": "d6d9521087240f438366a495f0670b87d4487f04",
"size": "1359",
"binary": false,
"copies": "3",
"ref": "refs/heads/master",
"path": "elasticjob-ecosystem/elasticjob-error-handler/elasticjob-error-handler-type/elasticjob-error-handler-general/src/main/java/org/apache/shardingsphere/elasticjob/error/handler/general/IgnoreJobErrorHandler.java",
"mode": "33188",
"license": "apache-2.0",
"language": [
{
"name": "Batchfile",
"bytes": "553"
},
{
"name": "CSS",
"bytes": "102201"
},
{
"name": "HTML",
"bytes": "189227"
},
{
"name": "Java",
"bytes": "1743175"
},
{
"name": "JavaScript",
"bytes": "704805"
},
{
"name": "Shell",
"bytes": "1889"
}
],
"symlink_target": ""
}
|
/* eslint-disable jest/no-disabled-tests */
import { render, screen } from '@testing-library/react'
import * as React from 'react'
import Subscribe from '../subscribe'
test.skip('subscribe renders first name and email', () => {
render(<Subscribe />)
expect(screen.getByLabelText(/first name/i)).toBeDefined()
expect(screen.getByLabelText(/email/i)).toBeDefined()
})
|
{
"content_hash": "865c93045802c67fc255f232e901a02d",
"timestamp": "",
"source": "github",
"line_count": 11,
"max_line_length": 60,
"avg_line_length": 34,
"alnum_prop": 0.7192513368983957,
"repo_name": "Oluwasetemi/Oluwasetemi.github.io",
"id": "1035aaaa1b1a1923967c15d242e99f56aacd0474",
"size": "374",
"binary": false,
"copies": "1",
"ref": "refs/heads/main",
"path": "src/components/forms/__tests__/subscribe.js",
"mode": "33188",
"license": "mit",
"language": [
{
"name": "CSS",
"bytes": "3344"
},
{
"name": "JavaScript",
"bytes": "16133"
}
],
"symlink_target": ""
}
|
simpleOSM is a tool that downloads and renders a map from OpenStreetMaps. It can accept either a bounding box of latitudes and longitudes, or a plain-english search query.
**Usage**
*Search*
To render a map of an area without coordinates, like a city, landmark, or college campus, use the "search" function:
python osm_render_tool.py search "Pittsburgh"

python osm_render_tool.py search "Times Square"

python osm_render_tool.py search "Harvard"

The search funtion can handle most well known places and landmarks and can deal with misspellings.
*Coordinate Render*
To render a map constrained by maximum and minimum latitudes and longitudes, use the "coords" function:
python osm_render_tool.py coords "40.440322, 40.446322, -79.948583, -79.938583"

**Technical Requirements**
- mapnik
- PIL
|
{
"content_hash": "27a1f8384af80a5ca649efc15e16756b",
"timestamp": "",
"source": "github",
"line_count": 33,
"max_line_length": 171,
"avg_line_length": 29.181818181818183,
"alnum_prop": 0.7611630321910696,
"repo_name": "benkroop/simpleOSM",
"id": "56afd5436893d281bd1d712e76a46956e8afc4e0",
"size": "976",
"binary": false,
"copies": "1",
"ref": "refs/heads/master",
"path": "README.md",
"mode": "33188",
"license": "mit",
"language": [
{
"name": "Python",
"bytes": "3963"
}
],
"symlink_target": ""
}
|
from itertools import izip
from django.db.backends.util import truncate_name, typecast_timestamp
from django.db.models.sql import compiler
from django.db.models.sql.constants import TABLE_NAME, MULTI
from django.db.models.sql.query import get_proxied_model
SQLCompiler = compiler.SQLCompiler
class GeoSQLCompiler(compiler.SQLCompiler):
def get_columns(self, with_aliases=False):
"""
Return the list of columns to use in the select statement. If no
columns have been specified, returns all columns relating to fields in
the model.
If 'with_aliases' is true, any column names that are duplicated
(without the table names) are given unique aliases. This is needed in
some cases to avoid ambiguitity with nested queries.
This routine is overridden from Query to handle customized selection of
geometry columns.
"""
qn = self.quote_name_unless_alias
qn2 = self.connection.ops.quote_name
result = ['(%s) AS %s' % (self.get_extra_select_format(alias) % col[0], qn2(alias))
for alias, col in self.query.extra_select.iteritems()]
aliases = set(self.query.extra_select.keys())
if with_aliases:
col_aliases = aliases.copy()
else:
col_aliases = set()
if self.query.select:
only_load = self.deferred_to_columns()
# This loop customized for GeoQuery.
for col, field in izip(self.query.select, self.query.select_fields):
if isinstance(col, (list, tuple)):
alias, column = col
table = self.query.alias_map[alias][TABLE_NAME]
if table in only_load and col not in only_load[table]:
continue
r = self.get_field_select(field, alias, column)
if with_aliases:
if col[1] in col_aliases:
c_alias = 'Col%d' % len(col_aliases)
result.append('%s AS %s' % (r, c_alias))
aliases.add(c_alias)
col_aliases.add(c_alias)
else:
result.append('%s AS %s' % (r, qn2(col[1])))
aliases.add(r)
col_aliases.add(col[1])
else:
result.append(r)
aliases.add(r)
col_aliases.add(col[1])
else:
result.append(col.as_sql(qn, self.connection))
if hasattr(col, 'alias'):
aliases.add(col.alias)
col_aliases.add(col.alias)
elif self.query.default_cols:
cols, new_aliases = self.get_default_columns(with_aliases,
col_aliases)
result.extend(cols)
aliases.update(new_aliases)
max_name_length = self.connection.ops.max_name_length()
result.extend([
'%s%s' % (
self.get_extra_select_format(alias) % aggregate.as_sql(qn, self.connection),
alias is not None
and ' AS %s' % qn(truncate_name(alias, max_name_length))
or ''
)
for alias, aggregate in self.query.aggregate_select.items()
])
# This loop customized for GeoQuery.
for (table, col), field in izip(self.query.related_select_cols, self.query.related_select_fields):
r = self.get_field_select(field, table, col)
if with_aliases and col in col_aliases:
c_alias = 'Col%d' % len(col_aliases)
result.append('%s AS %s' % (r, c_alias))
aliases.add(c_alias)
col_aliases.add(c_alias)
else:
result.append(r)
aliases.add(r)
col_aliases.add(col)
self._select_aliases = aliases
return result
def get_default_columns(self, with_aliases=False, col_aliases=None,
start_alias=None, opts=None, as_pairs=False, local_only=False):
"""
Computes the default columns for selecting every field in the base
model. Will sometimes be called to pull in related models (e.g. via
select_related), in which case "opts" and "start_alias" will be given
to provide a starting point for the traversal.
Returns a list of strings, quoted appropriately for use in SQL
directly, as well as a set of aliases used in the select statement (if
'as_pairs' is True, returns a list of (alias, col_name) pairs instead
of strings as the first component and None as the second component).
This routine is overridden from Query to handle customized selection of
geometry columns.
"""
result = []
if opts is None:
opts = self.query.model._meta
aliases = set()
only_load = self.deferred_to_columns()
# Skip all proxy to the root proxied model
proxied_model = get_proxied_model(opts)
if start_alias:
seen = {None: start_alias}
for field, model in opts.get_fields_with_model():
if local_only and model is not None:
continue
if start_alias:
try:
alias = seen[model]
except KeyError:
if model is proxied_model:
alias = start_alias
else:
link_field = opts.get_ancestor_link(model)
alias = self.query.join((start_alias, model._meta.db_table,
link_field.column, model._meta.pk.column))
seen[model] = alias
else:
# If we're starting from the base model of the queryset, the
# aliases will have already been set up in pre_sql_setup(), so
# we can save time here.
alias = self.query.included_inherited_models[model]
table = self.query.alias_map[alias][TABLE_NAME]
if table in only_load and field.column not in only_load[table]:
continue
if as_pairs:
result.append((alias, field.column))
aliases.add(alias)
continue
# This part of the function is customized for GeoQuery. We
# see if there was any custom selection specified in the
# dictionary, and set up the selection format appropriately.
field_sel = self.get_field_select(field, alias)
if with_aliases and field.column in col_aliases:
c_alias = 'Col%d' % len(col_aliases)
result.append('%s AS %s' % (field_sel, c_alias))
col_aliases.add(c_alias)
aliases.add(c_alias)
else:
r = field_sel
result.append(r)
aliases.add(r)
if with_aliases:
col_aliases.add(field.column)
return result, aliases
def resolve_columns(self, row, fields=()):
"""
This routine is necessary so that distances and geometries returned
from extra selection SQL get resolved appropriately into Python
objects.
"""
values = []
aliases = self.query.extra_select.keys()
# Have to set a starting row number offset that is used for
# determining the correct starting row index -- needed for
# doing pagination with Oracle.
rn_offset = 0
if self.connection.ops.oracle:
if self.query.high_mark is not None or self.query.low_mark: rn_offset = 1
index_start = rn_offset + len(aliases)
# Converting any extra selection values (e.g., geometries and
# distance objects added by GeoQuerySet methods).
values = [self.query.convert_values(v,
self.query.extra_select_fields.get(a, None),
self.connection)
for v, a in izip(row[rn_offset:index_start], aliases)]
if self.connection.ops.oracle or getattr(self.query, 'geo_values', False):
# We resolve the rest of the columns if we're on Oracle or if
# the `geo_values` attribute is defined.
for value, field in map(None, row[index_start:], fields):
values.append(self.query.convert_values(value, field, self.connection))
else:
values.extend(row[index_start:])
return tuple(values)
#### Routines unique to GeoQuery ####
def get_extra_select_format(self, alias):
sel_fmt = '%s'
if hasattr(self.query, 'custom_select') and alias in self.query.custom_select:
sel_fmt = sel_fmt % self.query.custom_select[alias]
return sel_fmt
def get_field_select(self, field, alias=None, column=None):
"""
Returns the SELECT SQL string for the given field. Figures out
if any custom selection SQL is needed for the column The `alias`
keyword may be used to manually specify the database table where
the column exists, if not in the model associated with this
`GeoQuery`. Similarly, `column` may be used to specify the exact
column name, rather than using the `column` attribute on `field`.
"""
sel_fmt = self.get_select_format(field)
if field in self.query.custom_select:
field_sel = sel_fmt % self.query.custom_select[field]
else:
field_sel = sel_fmt % self._field_column(field, alias, column)
return field_sel
def get_select_format(self, fld):
"""
Returns the selection format string, depending on the requirements
of the spatial backend. For example, Oracle and MySQL require custom
selection formats in order to retrieve geometries in OGC WKT. For all
other fields a simple '%s' format string is returned.
"""
if self.connection.ops.select and hasattr(fld, 'geom_type'):
# This allows operations to be done on fields in the SELECT,
# overriding their values -- used by the Oracle and MySQL
# spatial backends to get database values as WKT, and by the
# `transform` method.
sel_fmt = self.connection.ops.select
# Because WKT doesn't contain spatial reference information,
# the SRID is prefixed to the returned WKT to ensure that the
# transformed geometries have an SRID different than that of the
# field -- this is only used by `transform` for Oracle and
# SpatiaLite backends.
if self.query.transformed_srid and ( self.connection.ops.oracle or
self.connection.ops.spatialite ):
sel_fmt = "'SRID=%d;'||%s" % (self.query.transformed_srid, sel_fmt)
else:
sel_fmt = '%s'
return sel_fmt
# Private API utilities, subject to change.
def _field_column(self, field, table_alias=None, column=None):
"""
Helper function that returns the database column for the given field.
The table and column are returned (quoted) in the proper format, e.g.,
`"geoapp_city"."point"`. If `table_alias` is not specified, the
database table associated with the model of this `GeoQuery` will be
used. If `column` is specified, it will be used instead of the value
in `field.column`.
"""
if table_alias is None: table_alias = self.query.model._meta.db_table
return "%s.%s" % (self.quote_name_unless_alias(table_alias),
self.connection.ops.quote_name(column or field.column))
class SQLInsertCompiler(compiler.SQLInsertCompiler, GeoSQLCompiler):
pass
class SQLDeleteCompiler(compiler.SQLDeleteCompiler, GeoSQLCompiler):
pass
class SQLUpdateCompiler(compiler.SQLUpdateCompiler, GeoSQLCompiler):
pass
class SQLAggregateCompiler(compiler.SQLAggregateCompiler, GeoSQLCompiler):
pass
class SQLDateCompiler(compiler.SQLDateCompiler, GeoSQLCompiler):
"""
This is overridden for GeoDjango to properly cast date columns, since
`GeoQuery.resolve_columns` is used for spatial values.
See #14648, #16757.
"""
def results_iter(self):
if self.connection.ops.oracle:
from django.db.models.fields import DateTimeField
fields = [DateTimeField()]
else:
needs_string_cast = self.connection.features.needs_datetime_string_cast
offset = len(self.query.extra_select)
for rows in self.execute_sql(MULTI):
for row in rows:
date = row[offset]
if self.connection.ops.oracle:
date = self.resolve_columns(row, fields)[offset]
elif needs_string_cast:
date = typecast_timestamp(str(date))
yield date
|
{
"content_hash": "401a826073ac11f226c4c1fb04b9f20b",
"timestamp": "",
"source": "github",
"line_count": 294,
"max_line_length": 106,
"avg_line_length": 44.9421768707483,
"alnum_prop": 0.5757965639900099,
"repo_name": "mixman/djangodev",
"id": "9a4ea6a942d2a2c122633b6564e8e7224e393246",
"size": "13213",
"binary": false,
"copies": "1",
"ref": "refs/heads/master",
"path": "django/contrib/gis/db/models/sql/compiler.py",
"mode": "33188",
"license": "bsd-3-clause",
"language": [
{
"name": "JavaScript",
"bytes": "88362"
},
{
"name": "Python",
"bytes": "7834206"
},
{
"name": "Shell",
"bytes": "9076"
}
],
"symlink_target": ""
}
|
#include "ThresholdFunction.hpp"
#include <cmath>
#include <vector>
using namespace gdx;
ThresholdFunction::ptr ThresholdFunction::calculate (std::vector< float >& spectralFlux) {
ThresholdFunction::ptr thresholds(new std::vector< float > (spectralFlux.size()));
for (int i = 0; i < spectralFlux.size(); i++) {
float sum = 0;
int start = std::max(0, i - historySize / 2);
int size = spectralFlux.size();
int end = std::min( size - 1, i + historySize / 2);
for (int j = start; j <= end; j++)
sum += spectralFlux.at(j);
sum /= (end - start);
sum *= multiplier;
thresholds->push_back(sum);
}
return thresholds;
}
|
{
"content_hash": "1f2e536c164ca8b4a4bf88181f7cd3ec",
"timestamp": "",
"source": "github",
"line_count": 27,
"max_line_length": 90,
"avg_line_length": 26.296296296296298,
"alnum_prop": 0.5859154929577465,
"repo_name": "aevum/libgdx-cpp",
"id": "0e60897e46ae18767a97dd86c26045b5061eff30",
"size": "1457",
"binary": false,
"copies": "1",
"ref": "refs/heads/master",
"path": "src/gdx-cpp/audio/analysis/ThresholdFunction.cpp",
"mode": "33188",
"license": "apache-2.0",
"language": [
{
"name": "C",
"bytes": "347540"
},
{
"name": "C++",
"bytes": "4310072"
},
{
"name": "CMake",
"bytes": "262803"
},
{
"name": "Java",
"bytes": "311043"
},
{
"name": "Makefile",
"bytes": "4402"
},
{
"name": "Objective-C",
"bytes": "5998"
},
{
"name": "Objective-C++",
"bytes": "49376"
},
{
"name": "Python",
"bytes": "5004"
},
{
"name": "Ragel in Ruby Host",
"bytes": "12427"
}
],
"symlink_target": ""
}
|
package NCE::Component::System;
use warnings;
use strict;
use Moose;
extends 'NCE::Component';
with 'NCE::Log';
use Moose::Util::TypeConstraints;
has 'Hostname' => (
is => 'rw',
isa => 'Str',
predicate => 'has_Hostname',
traits => [ qw( Meta Help ) ],
help => 'System hostname',
friendly => 'Hostname',
);
has 'Timezone' => (
is => 'rw',
isa => 'Str',
predicate => 'has_Timezone',
traits => [ qw( Meta Help ) ],
help => 'System timezone',
friendly => 'Timezone',
);
no Moose;
__PACKAGE__->meta->make_immutable;
|
{
"content_hash": "d025242f7a4f8e6f129472a307ac6316",
"timestamp": "",
"source": "github",
"line_count": 30,
"max_line_length": 35,
"avg_line_length": 19.466666666666665,
"alnum_prop": 0.5513698630136986,
"repo_name": "diddi-/nce",
"id": "6af71d0545675ecbd9a8f6424b172defdd07d19b",
"size": "584",
"binary": false,
"copies": "1",
"ref": "refs/heads/master",
"path": "lib/NCE/Component/System.pm",
"mode": "33188",
"license": "mit",
"language": [
{
"name": "Assembly",
"bytes": "263"
},
{
"name": "Perl",
"bytes": "33963"
},
{
"name": "Perl6",
"bytes": "647"
}
],
"symlink_target": ""
}
|
* initial release
|
{
"content_hash": "bb414c91243ed6e6832ebe232cd18897",
"timestamp": "",
"source": "github",
"line_count": 1,
"max_line_length": 17,
"avg_line_length": 18,
"alnum_prop": 0.7777777777777778,
"repo_name": "JasonYCHuang/e_invoice",
"id": "b6cf6c684ddc203bec354c81f348e5972d46f9d0",
"size": "29",
"binary": false,
"copies": "1",
"ref": "refs/heads/master",
"path": "CHANGELOG.md",
"mode": "33188",
"license": "mit",
"language": [
{
"name": "Ruby",
"bytes": "9270"
},
{
"name": "Shell",
"bytes": "115"
}
],
"symlink_target": ""
}
|
OpenDKIM Cookbook
=================
[](http://www.rubydoc.info/github/zuazo/opendkim-cookbook)
[](https://github.com/zuazo/opendkim-cookbook)
[](#license-and-author)
[](https://supermarket.chef.io/cookbooks/opendkim)
[](https://gemnasium.com/zuazo/opendkim-cookbook)
[](https://codeclimate.com/github/zuazo/opendkim-cookbook)
[](https://travis-ci.org/zuazo/opendkim-cookbook)
[](https://coveralls.io/r/zuazo/opendkim-cookbook?branch=master)
[](http://inch-ci.org/github/zuazo/opendkim-cookbook)
Installs and configures [OpenDKIM](http://www.opendkim.org/): Open source implementation of the DKIM (Domain Keys Identified Mail) sender authentication system.
Requirements
============
## Supported Platforms
This cookbook has been tested on the following platforms:
* Amazon Linux
* CentOS
* Debian
* Fedora
* FreeBSD
* Oracle Linux
* RedHat
* Scientific Linux
* Ubuntu
Please, [let us know](https://github.com/zuazo/opendkim-cookbook/issues/new?title=I%20have%20used%20it%20successfully%20on%20...) if you use it successfully on any other platform.
## Required Cookbooks
* [yum-epel](https://supermarket.chef.io/cookbooks/yum-epel)
## Required Applications
* Chef `12` or higher.
* Ruby `2.2` or higher.
Attributes
==========
| Attribute | Default | Description |
|----------------------------|:------------:|------------------------------|
| `node['opendkim']['conf']` | *calculated* | OpenDKIM configuration hash. |
## Platform Support Related Attributes
Some cookbook attributes are used internally to support the different platforms. Surely you want to change them if you want to support new platforms or want to improve the support of some platforms already supported.
| Attribute | Default | Description |
|-------------------------------------------|:---------------------:|-----------------------------------|
| `node['opendkim']['conf_file']` | *calculated* | OpenDKIM Configuration file path.
| `node['opendkim']['service']['name']` | *calculated* | OpenDKIM system service name.
| `node['opendkim']['service']['supports']` | *calculated* | OpenDKIM service supported actions.
| `node['opendkim']['packages']['tools']` | *calculated* | OpenDKIM tools package name as array (currently unused).
| `node['opendkim']['packages']['service']` | `%w(opendkim)` | OpenDKIM daemon package name as array.
| `node['opendkim']['run_dir']` | `'/var/run/opendkim'` | OpenDKIM run directory used for the pidfile and as home for the system user.
| `node['opendkim']['user']` | `'opendkim'` | OpenDKIM system user name.
| `node['opendkim']['group']` | `'opendkim'` | OpenDKIM system group.
Recipes
=======
## opendkim::default
Installs and configures OpenDKIM.
Usage Examples
==============
## Including in a Cookbook Recipe
You can simply include it in a recipe:
```ruby
include_recipe 'opendkim'
```
Don't forget to include the `opendkim` cookbook as a dependency in the metadata.
```ruby
# metadata.rb
# [...]
depends 'opendkim'
```
## Including in the Run List
Another alternative is to include the default recipe in your *Run List*:
```json
{
"name": "mail.onddo.com",
"[...]": "[...]",
"run_list": [
"recipe[opendkim]"
]
}
```
## Reading the Key from a Chef Vault Bag
This is a complete example that reads the DKIM key from a chef vault bag using the [`chef-vault`](https://supermarket.chef.io/cookbooks/chef-vault) cookbook. The *txt* field is completely optional.
For more information about this configuration options, see [opendkim.conf(5)](http://www.opendkim.org/opendkim.conf.5.html) and [opendkim(8)](http://www.opendkim.org/opendkim.8.html).
```ruby
domain = 'example.com'
selector = '20150522'
key_name = "#{selector}._domainkey.#{domain} "\
directory '/etc/opendkim' do
mode '00755'
end
# Configure and Create OpenDKIM Tables
# Defines a table that will be queried to convert key names to sets of data of
# the form (signing domain, signing selector, private key). The private key can
# either contain a PEM-formatted private key, a base64-encoded DER format
# private key, or a path to a file containing one of those.
node.default['opendkim']['conf']['KeyTable'] = 'refile:/etc/opendkim/KeyTable'
file '/etc/opendkim/KeyTable' do
mode '00644'
content(
"#{key_name} "\
"#{domain}:#{selector}:/etc/opendkim/keys/#{domain}/#{selector}.private\n"
)
end
# Defines a dataset that will be queried for the message sender's address
# to determine which private key(s) (if any) should be used to sign the
# message. The sender is determined from the value of the sender
# header fields as described with SenderHeaders above. The key for this
# lookup should be an address or address pattern that matches senders;
# see the opendkim.conf(5) man page for more information. The value
# of the lookup should return the name of a key found in the KeyTable
# that should be used to sign the message. If MultipleSignatures
# is set, all possible lookup keys will be attempted which may result
# in multiple signatures being applied.
node.default['opendkim']['conf']['SigningTable'] =
'refile:/etc/opendkim/SigningTable'
file '/etc/opendkim/SigningTable' do
mode '00644'
content "*@#{domain} #{key_name}\n"
end
# Install OpenDKIM
include_recipe 'opendkim'
# Read DKIM keys from chef-vault
# node#save avoids chef-vault chicken & egg problem (a bit tricky)
node.save unless Chef::Config[:solo]
include_recipe 'chef-vault'
key = chef_vault_item('dkim_keys', domain)
# Create the credential files
directory "/etc/opendkim/keys/#{domain}" do
owner node['opendkim']['user']
group node['opendkim']['group']
recursive true
end
file "/etc/opendkim/keys/#{domain}/#{selector}.private" do
owner node['opendkim']['user']
group node['opendkim']['group']
mode '00640'
sensitive true if Chef::Resource.method_defined?(:sensitive)
content key['private']
end
# The txt is optional
file "/etc/opendkim/keys/#{domain}/#{selector}.txt" do
owner node['opendkim']['user']
group node['opendkim']['group']
mode '00644'
content key['txt']
only_if { key['txt'].is_a?(String) }
end
```
The vault bag content example:
```json
{
"id": "example.com",
"private": "-----BEGIN RSA PRIVATE KEY-----\n [...] \n-----END RSA PRIVATE KEY-----\n",
"txt": "v=DKIM1; k=rsa; p=MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKB [...]"
}
```
The knife command to create the vault bag item:
$ knife vault create dkim_keys example.com [...]
See the [Chef-Vault documentation](https://github.com/Nordstrom/chef-vault/blob/master/README.md) to learn how to create chef-vault bags.
## Integrate OpenDKIM with Postfix
We are using the [`postfix-full`](https://supermarket.chef.io/cookbooks/postfix-full) cookbook in this example:
```ruby
opendkim_port = 8891
# Configure Postfix
node.default['postfix']['main']['milter_protocol'] = 2
node.default['postfix']['main']['milter_default_action'] = 'accept'
node.default['postfix']['main']['smtpd_milters'] =
"inet:localhost:#{opendkim_port}"
node.default['postfix']['main']['non_smtpd_milters'] =
"inet:localhost:#{opendkim_port}"
# [...]
include_recipe 'postfix-full'
# Configure OpenDKIM
node.default['opendkim']['conf']['Mode'] = 'sv'
node.default['opendkim']['conf']['Socket'] = "inet:#{opendkim_port}@localhost"
# [...]
include_recipe 'opendkim'
```
## DNS Resource Record TXT Example
This a DNS TXT record example based on the examples above:
```
20150512._domainkey.example.com. 21599 IN TXT "v=DKIM1; k=rsa; p=MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKB [...]"
```
Deploy with Docker
==================
You can use the *Dockerfile* included in the [cookbook source code](https://github.com/zuazo/opendkim-cookbook) to run the cookbook inside a container:
$ docker build -t chef-opendkim .
$ docker run -d -p 8891:8891 chef-opendkim
The sample *Dockerfile*:
```Dockerfile
FROM zuazo/chef-local:debian-7
COPY . /tmp/opendkim
RUN berks vendor -b /tmp/opendkim/Berksfile $COOKBOOK_PATH
RUN chef-client -r "recipe[apt],recipe[opendkim]"
EXPOSE 8891
CMD ["/usr/sbin/opendkim", "-f", "-x", "/etc/opendkim.conf", "-u", "opendkim", "-P", "/var/run/opendkim/opendkim.pid"]
```
See the [chef-local container documentation](https://registry.hub.docker.com/u/zuazo/chef-local/) for more examples.
## Testing Your Email DKIM Configuration
You can send an empty email to [check-auth@verifier.port25.com](mailto:check-auth@verifier.port25.com) to check that everything works correctly.
Testing
=======
See [TESTING.md](https://github.com/zuazo/opendkim-cookbook/blob/master/TESTING.md).
Contributing
============
Please do not hesitate to [open an issue](https://github.com/zuazo/opendkim-cookbook/issues/new) with any questions or problems.
See [CONTRIBUTING.md](https://github.com/zuazo/opendkim-cookbook/blob/master/CONTRIBUTING.md).
TODO
====
See [TODO.md](https://github.com/zuazo/opendkim-cookbook/blob/master/TODO.md).
License and Author
=====================
| | |
|:---------------------|:-----------------------------------------|
| **Author:** | [Raul Rodriguez](https://github.com/raulr) (<raul@onddo.com>)
| **Author:** | [Xabier de Zuazo](https://github.com/zuazo) (<xabier@zuazo.org>)
| **Contributor:** | [Michael Burns](https://github.com/mburns)
| **Copyright:** | Copyright (c) 2015, Xabier de Zuazo
| **Copyright:** | Copyright (c) 2015, Onddo Labs, SL.
| **License:** | Apache License, Version 2.0
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
|
{
"content_hash": "8932cd98103cb56d0e6ac0ea7f253f44",
"timestamp": "",
"source": "github",
"line_count": 311,
"max_line_length": 216,
"avg_line_length": 35.47266881028939,
"alnum_prop": 0.6770304568527918,
"repo_name": "onddo/opendkim-cookbook",
"id": "8891d156a324d54e88abeb14955eaf628228ab91",
"size": "11032",
"binary": false,
"copies": "2",
"ref": "refs/heads/master",
"path": "README.md",
"mode": "33188",
"license": "apache-2.0",
"language": [
{
"name": "HTML",
"bytes": "436"
},
{
"name": "Ruby",
"bytes": "46460"
}
],
"symlink_target": ""
}
|
using System;
namespace Enigma.Serialization
{
[Flags]
public enum LevelType
{
Value = 1,
Single = 2,
Root = 4,
Collection = 8,
CollectionItem = 16,
Dictionary = 32,
DictionaryKey = 64,
DictionaryValue = 128,
CollectionInCollection = Collection | CollectionItem,
DictionaryInCollection = Dictionary | CollectionItem,
DictionaryInDictionaryKey = Dictionary | DictionaryKey,
DictionaryInDictionaryValue = Dictionary | DictionaryValue,
CollectionInDictionaryKey = Collection | DictionaryKey,
CollectionInDictionaryValue = Collection | DictionaryValue
}
public static class LevelTypeExtensions
{
public static bool IsCollection(this LevelType type)
{
return (type & LevelType.Collection) == LevelType.Collection;
}
public static bool IsDictionary(this LevelType type)
{
return (type & LevelType.Dictionary) == LevelType.Dictionary;
}
}
}
|
{
"content_hash": "0335fd619193b8fbe2ff19494dc7f86c",
"timestamp": "",
"source": "github",
"line_count": 39,
"max_line_length": 73,
"avg_line_length": 26.94871794871795,
"alnum_prop": 0.6346336822074216,
"repo_name": "jaygumji/EnigmaDb",
"id": "191bcba07981bc60c4829f07276a9a61ca31b6e9",
"size": "1051",
"binary": false,
"copies": "1",
"ref": "refs/heads/master",
"path": "Enigma/Serialization/LevelType.cs",
"mode": "33188",
"license": "apache-2.0",
"language": [
{
"name": "C#",
"bytes": "752774"
}
],
"symlink_target": ""
}
|
#import "ijkplayer_ios.h"
#import "ijksdl/ios/ijksdl_ios.h"
#include <stdio.h>
#include <assert.h>
#include "ijkplayer/ff_fferror.h"
#include "ijkplayer/ff_ffplay.h"
#include "ijkplayer/ijkplayer_internal.h"
IjkMediaPlayer *ijkmp_ios_create(int (*msg_loop)(void*), int custom_max_buffer_size)
{
IjkMediaPlayer *mp = ijkmp_create(msg_loop);
if (!mp)
goto fail;
mp->ffplayer->vout = SDL_VoutIos_CreateForGLES2();
if (!mp->ffplayer->vout)
goto fail;
mp->ffplayer->aout = SDL_AoutIos_CreateForAudioUnit();
if (!mp->ffplayer->vout)
goto fail;
mp->ffplayer->max_buffer_size = custom_max_buffer_size; //by xd.5
return mp;
fail:
ijkmp_dec_ref_p(&mp);
return NULL;
}
void ijkmp_ios_set_glview_l(IjkMediaPlayer *mp, IJKSDLGLView *glView)
{
assert(mp);
assert(mp->ffplayer);
assert(mp->ffplayer->vout);
SDL_VoutIos_SetGLView(mp->ffplayer->vout, glView);
}
void ijkmp_ios_set_glview(IjkMediaPlayer *mp, IJKSDLGLView *glView)
{
assert(mp);
MPTRACE("ijkmp_ios_set_view(glView=%p)\n", (void*)glView);
pthread_mutex_lock(&mp->mutex);
ijkmp_ios_set_glview_l(mp, glView);
pthread_mutex_unlock(&mp->mutex);
MPTRACE("ijkmp_ios_set_view(glView=%p)=void\n", (void*)glView);
}
|
{
"content_hash": "e7642c37d4fb7ab7c338f9f54216c0b3",
"timestamp": "",
"source": "github",
"line_count": 52,
"max_line_length": 84,
"avg_line_length": 24.53846153846154,
"alnum_prop": 0.6559561128526645,
"repo_name": "xpemail/ijkplayer",
"id": "66a9cab0b527ed403c8247be3c6342cadf36d6eb",
"size": "2128",
"binary": false,
"copies": "1",
"ref": "refs/heads/master",
"path": "ijkplayer/ios/IJKMediaPlayer/IJKMediaPlayer/ijkmedia/ijkplayer/ios/ijkplayer_ios.m",
"mode": "33188",
"license": "mit",
"language": [
{
"name": "C",
"bytes": "234690"
},
{
"name": "C++",
"bytes": "10034"
},
{
"name": "Forth",
"bytes": "2164"
},
{
"name": "Objective-C",
"bytes": "135314"
},
{
"name": "Ruby",
"bytes": "4227"
}
],
"symlink_target": ""
}
|
'-------------------------------------------------------------------------------------------'
' Inicio del codigo
'-------------------------------------------------------------------------------------------'
'-------------------------------------------------------------------------------------------'
' Inicio de clase "rTotales_Sexo"
'-------------------------------------------------------------------------------------------'
Partial Class rTotales_Sexo
Inherits vis2formularios.frmReporte
Dim loObjetoReporte As CrystalDecisions.CrystalReports.Engine.ReportDocument
Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load
Try
Dim lcParametro0Desde As String = goServicios.mObtenerCampoFormatoSQL(cusAplicacion.goReportes.paParametrosIniciales(0))
Dim lcParametro0Hasta As String = goServicios.mObtenerCampoFormatoSQL(cusAplicacion.goReportes.paParametrosFinales(0))
Dim lcParametro1Desde As String = goServicios.mObtenerCampoFormatoSQL(cusAplicacion.goReportes.paParametrosIniciales(1), goServicios.enuOpcionesRedondeo.KN_FechaInicioDelDia)
Dim lcParametro1Hasta As String = goServicios.mObtenerCampoFormatoSQL(cusAplicacion.goReportes.paParametrosFinales(1), goServicios.enuOpcionesRedondeo.KN_FechaFinDelDia)
Dim lcParametro2Desde As String = goServicios.mObtenerListaFormatoSQL(cusAplicacion.goReportes.paParametrosIniciales(2))
'Dim lcParametro2Hasta As String = goServicios.mObtenerCampoFormatoSQL(cusAplicacion.goReportes.paParametrosFinales(2))
Dim lcParametro3Desde As String = goServicios.mObtenerCampoFormatoSQL(cusAplicacion.goReportes.paParametrosIniciales(3))
Dim lcParametro3Hasta As String = goServicios.mObtenerCampoFormatoSQL(cusAplicacion.goReportes.paParametrosFinales(3))
Dim lcParametro4Desde As String = goServicios.mObtenerCampoFormatoSQL(cusAplicacion.goReportes.paParametrosIniciales(4))
Dim lcParametro4Hasta As String = goServicios.mObtenerCampoFormatoSQL(cusAplicacion.goReportes.paParametrosFinales(4))
Dim lcParametro5Desde As String = goServicios.mObtenerCampoFormatoSQL(cusAplicacion.goReportes.paParametrosIniciales(5))
Dim lcParametro5Hasta As String = goServicios.mObtenerCampoFormatoSQL(cusAplicacion.goReportes.paParametrosFinales(5))
Dim lcParametro6Desde As String = goServicios.mObtenerCampoFormatoSQL(cusAplicacion.goReportes.paParametrosIniciales(6))
Dim lcParametro6Hasta As String = goServicios.mObtenerCampoFormatoSQL(cusAplicacion.goReportes.paParametrosFinales(6))
Dim lcParametro7Desde As String = goServicios.mObtenerCampoFormatoSQL(cusAplicacion.goReportes.paParametrosIniciales(7))
Dim lcParametro7Hasta As String = goServicios.mObtenerCampoFormatoSQL(cusAplicacion.goReportes.paParametrosFinales(7))
Dim lcParametro8Desde As String = goServicios.mObtenerListaFormatoSQL(cusAplicacion.goReportes.paParametrosIniciales(8))
Dim lcOrdenamiento As String = cusAplicacion.goReportes.pcOrden
Dim loComandoSeleccionar As New StringBuilder()
loComandoSeleccionar.AppendLine("")
loComandoSeleccionar.AppendLine("SELECT (CASE Trabajadores.sexo WHEN 'F' THEN 'FEMENINO' ELSE 'MASCULINO' END) SEXO,")
loComandoSeleccionar.AppendLine(" SUM(CASE Conceptos_Nomina.tipo")
loComandoSeleccionar.AppendLine(" WHEN 'Asignacion'")
loComandoSeleccionar.AppendLine(" THEN Renglones_Recibos.mon_net")
loComandoSeleccionar.AppendLine(" ELSE 0")
loComandoSeleccionar.AppendLine(" END) AS Asignacion,")
loComandoSeleccionar.AppendLine(" SUM(CASE Conceptos_Nomina.tipo")
loComandoSeleccionar.AppendLine(" WHEN 'Deduccion'")
loComandoSeleccionar.AppendLine(" THEN Renglones_Recibos.mon_net")
loComandoSeleccionar.AppendLine(" ELSE 0")
loComandoSeleccionar.AppendLine(" END) AS Deduccion,")
loComandoSeleccionar.AppendLine(" SUM(CASE Conceptos_Nomina.tipo")
loComandoSeleccionar.AppendLine(" WHEN 'Retencion'")
loComandoSeleccionar.AppendLine(" THEN Renglones_Recibos.mon_net")
loComandoSeleccionar.AppendLine(" ELSE 0")
loComandoSeleccionar.AppendLine(" END) AS Retencion,")
loComandoSeleccionar.AppendLine(" -SUM(CASE Conceptos_Nomina.tipo ")
loComandoSeleccionar.AppendLine(" WHEN 'Deduccion' ")
loComandoSeleccionar.AppendLine(" THEN Renglones_Recibos.mon_net ")
loComandoSeleccionar.AppendLine(" ELSE 0 ")
loComandoSeleccionar.AppendLine(" END) - ")
loComandoSeleccionar.AppendLine(" SUM(CASE Conceptos_Nomina.tipo ")
loComandoSeleccionar.AppendLine(" WHEN 'Retencion' ")
loComandoSeleccionar.AppendLine(" THEN Renglones_Recibos.mon_net ")
loComandoSeleccionar.AppendLine(" ELSE 0 ")
loComandoSeleccionar.AppendLine(" END) AS Deduc_ret, ")
loComandoSeleccionar.AppendLine(" (CASE WHEN SUM(CASE Conceptos_Nomina.tipo ")
loComandoSeleccionar.AppendLine(" WHEN 'Otro' ")
loComandoSeleccionar.AppendLine(" THEN Renglones_Recibos.mon_net ")
loComandoSeleccionar.AppendLine(" ELSE 0 ")
loComandoSeleccionar.AppendLine(" END) <= 0 ")
loComandoSeleccionar.AppendLine(" THEN SUM(CASE Conceptos_Nomina.tipo ")
loComandoSeleccionar.AppendLine(" WHEN 'Asignacion' ")
loComandoSeleccionar.AppendLine(" THEN Renglones_Recibos.mon_net ")
loComandoSeleccionar.AppendLine(" ELSE 0 ")
loComandoSeleccionar.AppendLine(" END) - ")
loComandoSeleccionar.AppendLine(" SUM(CASE Conceptos_Nomina.tipo ")
loComandoSeleccionar.AppendLine(" WHEN 'Deduccion' ")
loComandoSeleccionar.AppendLine(" THEN Renglones_Recibos.mon_net ")
loComandoSeleccionar.AppendLine(" ELSE 0 ")
loComandoSeleccionar.AppendLine(" END) - ")
loComandoSeleccionar.AppendLine(" SUM(CASE Conceptos_Nomina.tipo ")
loComandoSeleccionar.AppendLine(" WHEN 'Retencion' ")
loComandoSeleccionar.AppendLine(" THEN Renglones_Recibos.mon_net ")
loComandoSeleccionar.AppendLine(" ELSE 0 ")
loComandoSeleccionar.AppendLine(" END) ")
loComandoSeleccionar.AppendLine(" ELSE SUM(CASE Conceptos_Nomina.tipo ")
loComandoSeleccionar.AppendLine(" WHEN 'Otro' ")
loComandoSeleccionar.AppendLine(" THEN Renglones_Recibos.mon_net ")
loComandoSeleccionar.AppendLine(" ELSE 0 ")
loComandoSeleccionar.AppendLine(" END) ")
loComandoSeleccionar.AppendLine(" END)*100/ ")
loComandoSeleccionar.AppendLine(" SUM((CASE WHEN SUM(CASE Conceptos_Nomina.tipo ")
loComandoSeleccionar.AppendLine(" WHEN 'Otro' ")
loComandoSeleccionar.AppendLine(" THEN Renglones_Recibos.mon_net ")
loComandoSeleccionar.AppendLine(" ELSE 0 ")
loComandoSeleccionar.AppendLine(" END) <= 0 ")
loComandoSeleccionar.AppendLine(" THEN SUM(CASE Conceptos_Nomina.tipo ")
loComandoSeleccionar.AppendLine(" WHEN 'Asignacion' ")
loComandoSeleccionar.AppendLine(" THEN Renglones_Recibos.mon_net ")
loComandoSeleccionar.AppendLine(" ELSE 0 ")
loComandoSeleccionar.AppendLine(" END) - ")
loComandoSeleccionar.AppendLine(" SUM(CASE Conceptos_Nomina.tipo ")
loComandoSeleccionar.AppendLine(" WHEN 'Deduccion' ")
loComandoSeleccionar.AppendLine(" THEN Renglones_Recibos.mon_net ")
loComandoSeleccionar.AppendLine(" ELSE 0 ")
loComandoSeleccionar.AppendLine(" END) - ")
loComandoSeleccionar.AppendLine(" SUM(CASE Conceptos_Nomina.tipo ")
loComandoSeleccionar.AppendLine(" WHEN 'Retencion' ")
loComandoSeleccionar.AppendLine(" THEN Renglones_Recibos.mon_net ")
loComandoSeleccionar.AppendLine(" ELSE 0 ")
loComandoSeleccionar.AppendLine(" END) ")
loComandoSeleccionar.AppendLine(" ELSE SUM(CASE Conceptos_Nomina.tipo ")
loComandoSeleccionar.AppendLine(" WHEN 'Otro' ")
loComandoSeleccionar.AppendLine(" THEN Renglones_Recibos.mon_net ")
loComandoSeleccionar.AppendLine(" ELSE 0 ")
loComandoSeleccionar.AppendLine(" END) ")
loComandoSeleccionar.AppendLine(" END)) OVER() por_neto, ")
loComandoSeleccionar.AppendLine(" (CASE WHEN SUM(CASE Conceptos_Nomina.tipo ")
loComandoSeleccionar.AppendLine(" WHEN 'Otro' ")
loComandoSeleccionar.AppendLine(" THEN Renglones_Recibos.mon_net ")
loComandoSeleccionar.AppendLine(" ELSE 0 ")
loComandoSeleccionar.AppendLine(" END) <= 0 ")
loComandoSeleccionar.AppendLine(" THEN SUM(CASE Conceptos_Nomina.tipo ")
loComandoSeleccionar.AppendLine(" WHEN 'Asignacion' ")
loComandoSeleccionar.AppendLine(" THEN Renglones_Recibos.mon_net ")
loComandoSeleccionar.AppendLine(" ELSE 0 ")
loComandoSeleccionar.AppendLine(" END) - ")
loComandoSeleccionar.AppendLine(" SUM(CASE Conceptos_Nomina.tipo ")
loComandoSeleccionar.AppendLine(" WHEN 'Deduccion' ")
loComandoSeleccionar.AppendLine(" THEN Renglones_Recibos.mon_net ")
loComandoSeleccionar.AppendLine(" ELSE 0 ")
loComandoSeleccionar.AppendLine(" END) - ")
loComandoSeleccionar.AppendLine(" SUM(CASE Conceptos_Nomina.tipo ")
loComandoSeleccionar.AppendLine(" WHEN 'Retencion' ")
loComandoSeleccionar.AppendLine(" THEN Renglones_Recibos.mon_net ")
loComandoSeleccionar.AppendLine(" ELSE 0 ")
loComandoSeleccionar.AppendLine(" END) ")
loComandoSeleccionar.AppendLine(" ELSE SUM(CASE Conceptos_Nomina.tipo ")
loComandoSeleccionar.AppendLine(" WHEN 'Otro' ")
loComandoSeleccionar.AppendLine(" THEN Renglones_Recibos.mon_net ")
loComandoSeleccionar.AppendLine(" ELSE 0 ")
loComandoSeleccionar.AppendLine(" END) ")
loComandoSeleccionar.AppendLine(" END) AS Total_neto, ")
loComandoSeleccionar.AppendLine(" COUNT(DISTINCT Trabajadores.cod_tra) AS num_tra,")
loComandoSeleccionar.AppendLine(" CAST(COUNT(DISTINCT Trabajadores.cod_tra)AS DECIMAL(28,10))*100/SUM(COUNT(DISTINCT Trabajadores.cod_tra)) OVER() por_tra ")
loComandoSeleccionar.AppendLine("FROM Renglones_Recibos")
loComandoSeleccionar.AppendLine(" JOIN Recibos ")
loComandoSeleccionar.AppendLine(" ON Recibos.Documento = Renglones_Recibos.Documento")
loComandoSeleccionar.AppendLine(" JOIN Conceptos_Nomina ")
loComandoSeleccionar.AppendLine(" ON Conceptos_Nomina.cod_con = Renglones_Recibos.cod_con ")
'loComandoSeleccionar.AppendLine(" AND Conceptos_Nomina.Tipo <> 'Otro' ")
loComandoSeleccionar.AppendLine(" JOIN Trabajadores ")
loComandoSeleccionar.AppendLine(" ON Trabajadores.cod_tra = Recibos.cod_tra ")
loComandoSeleccionar.AppendLine(" JOIN Departamentos_Nomina ")
loComandoSeleccionar.AppendLine(" ON Departamentos_Nomina.Cod_Dep = Trabajadores.Cod_Dep ")
loComandoSeleccionar.AppendLine("WHERE Conceptos_Nomina.Cod_Con BETWEEN " & lcParametro0Desde & " AND " & lcParametro0Hasta)
loComandoSeleccionar.AppendLine(" AND Recibos.Fecha BETWEEN " & lcParametro1Desde & " AND " & lcParametro1Hasta)
loComandoSeleccionar.AppendLine(" AND Conceptos_Nomina.Tipo IN (" & lcParametro2Desde & ")")
loComandoSeleccionar.AppendLine(" AND Recibos.Cod_Con BETWEEN " & lcParametro3Desde & " AND " & lcParametro3Hasta)
loComandoSeleccionar.AppendLine(" AND Departamentos_Nomina.Cod_Dep BETWEEN " & lcParametro4Desde & " AND " & lcParametro4Hasta)
loComandoSeleccionar.AppendLine(" AND Trabajadores.Cod_Suc BETWEEN " & lcParametro5Desde & " AND " & lcParametro5Hasta)
loComandoSeleccionar.AppendLine(" AND Trabajadores.Cod_Tra BETWEEN " & lcParametro6Desde & " AND " & lcParametro6Hasta)
loComandoSeleccionar.AppendLine(" AND Conceptos_Nomina.Tipo BETWEEN " & lcParametro7Desde & " AND " & lcParametro7Hasta)
loComandoSeleccionar.AppendLine(" AND Recibos.Status IN (" & lcParametro8Desde & ")")
loComandoSeleccionar.AppendLine("GROUP BY Trabajadores.sexo")
loComandoSeleccionar.AppendLine("ORDER BY " & lcOrdenamiento)
loComandoSeleccionar.AppendLine("")
loComandoSeleccionar.AppendLine("")
Dim loServicios As New cusDatos.goDatos
'Me.mEscribirConsulta(loComandoSeleccionar.ToString())
Dim laDatosReporte As DataSet = loServicios.mObtenerTodosSinEsquema(loComandoSeleccionar.ToString(), "curReportes")
loObjetoReporte = cusAplicacion.goReportes.mCargarReporte("rTotales_Sexo", laDatosReporte)
Me.mTraducirReporte(loObjetoReporte)
Me.mFormatearCamposReporte(loObjetoReporte)
Me.crvrTotales_Sexo.ReportSource = loObjetoReporte
Catch loExcepcion As Exception
Me.WbcAdministradorMensajeModal.mMostrarMensajeModal("Error", _
"No se pudo Completar el Proceso: " & loExcepcion.Message, _
vis3Controles.wbcAdministradorMensajeModal.enumTipoMensaje.KN_Error, _
"auto", _
"auto")
End Try
End Sub
Protected Sub Page_Unload(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Unload
Try
loObjetoReporte.Close()
Catch loExcepcion As Exception
End Try
End Sub
End Class
'-------------------------------------------------------------------------------------------'
' Fin del codigo '
'-------------------------------------------------------------------------------------------'
' EAG: 07/09/15: Codigo inicial '
'-------------------------------------------------------------------------------------------'
|
{
"content_hash": "92078fb511ef8772313263d760f3a896",
"timestamp": "",
"source": "github",
"line_count": 214,
"max_line_length": 186,
"avg_line_length": 73.67757009345794,
"alnum_prop": 0.6042366968985856,
"repo_name": "kodeitsolutions/ef-reports",
"id": "b8a1bf43065ce5f9a1bcc394f0fe0114b4159262",
"size": "15769",
"binary": false,
"copies": "1",
"ref": "refs/heads/master",
"path": "Reportes - Nomina/rTotales_Sexo.aspx.vb",
"mode": "33188",
"license": "mit",
"language": [
{
"name": "ASP",
"bytes": "6246816"
},
{
"name": "Visual Basic",
"bytes": "25803337"
}
],
"symlink_target": ""
}
|
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<title>Aqua_Weather_Station: Libraries/FixedQueueArray/ Directory Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
<tbody>
<tr style="height: 56px;">
<td style="padding-left: 0.5em;">
<div id="projectname">Aqua_Weather_Station
 <span id="projectnumber">1</span>
</div>
</td>
</tr>
</tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.1.2 -->
<div id="navrow1" class="tabs">
<ul class="tablist">
<li><a href="index.html"><span>Main Page</span></a></li>
<li><a href="annotated.html"><span>Classes</span></a></li>
<li><a href="files.html"><span>Files</span></a></li>
</ul>
</div>
<div id="nav-path" class="navpath">
<ul>
<li class="navelem"><a class="el" href="dir_6d2d5b60bd20db849a9486835a2715aa.html">Libraries</a></li><li class="navelem"><a class="el" href="dir_43f3596cb17ff58ea4752897a8bb28f6.html">FixedQueueArray</a></li> </ul>
</div>
</div><!-- top -->
<div class="header">
<div class="headertitle">
<div class="title">FixedQueueArray Directory Reference</div> </div>
</div><!--header-->
<div class="contents">
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2><a name="files"></a>
Files</h2></td></tr>
<tr class="memitem:FixedQueueArray_8h"><td class="memItemLeft" align="right" valign="top">file  </td><td class="memItemRight" valign="bottom"><a class="el" href="FixedQueueArray_8h.html">FixedQueueArray.h</a> <a href="FixedQueueArray_8h_source.html">[code]</a></td></tr>
</table>
</div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated on Tue Jun 17 2014 13:45:58 for Aqua_Weather_Station by  <a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.1.2
</small></address>
</body>
</html>
|
{
"content_hash": "83aee90acc761a94d52740acb11e43c9",
"timestamp": "",
"source": "github",
"line_count": 59,
"max_line_length": 275,
"avg_line_length": 41.898305084745765,
"alnum_prop": 0.6638349514563107,
"repo_name": "lighthill/Aqua_weather_station",
"id": "2ea503015f7b706daf2afd1feb5394fce0a6307f",
"size": "2472",
"binary": false,
"copies": "1",
"ref": "refs/heads/master",
"path": "Documentation/html/dir_43f3596cb17ff58ea4752897a8bb28f6.html",
"mode": "33188",
"license": "mit",
"language": [
{
"name": "Arduino",
"bytes": "3339"
},
{
"name": "C",
"bytes": "3309"
},
{
"name": "C++",
"bytes": "32341"
}
],
"symlink_target": ""
}
|
require 'spec_helper'
describe 'Log entries', type: :feature do
stub_authorization!
let!(:payment) { create(:payment) }
context 'with a successful log entry' do
before do
response = ActiveMerchant::Billing::Response.new(
true,
'Transaction successful',
transid: 'ABCD1234'
)
payment.log_entries.create(
source: payment.source,
details: response.to_yaml
)
end
it 'shows a successful attempt' do
visit spree.admin_order_payments_path(payment.order)
find("#payment_#{payment.id} a").click
click_link 'Logs'
within('#listing_log_entries') do
expect(page).to have_content('Transaction successful')
end
end
end
context 'with a failed log entry' do
before do
response = ActiveMerchant::Billing::Response.new(
false,
'Transaction failed',
transid: 'ABCD1234'
)
payment.log_entries.create(
source: payment.source,
details: response.to_yaml
)
end
it 'shows a failed attempt' do
visit spree.admin_order_payments_path(payment.order)
find("#payment_#{payment.id} a").click
click_link 'Logs'
within('#listing_log_entries') do
expect(page).to have_content('Transaction failed')
end
end
end
end
|
{
"content_hash": "9a8c4da21764e2fa2bcb46772e5eb71a",
"timestamp": "",
"source": "github",
"line_count": 55,
"max_line_length": 62,
"avg_line_length": 24.272727272727273,
"alnum_prop": 0.6172284644194757,
"repo_name": "vinayvinsol/spree",
"id": "a5fff01830c591eb6b5470d85b1ae359fef5413f",
"size": "1335",
"binary": false,
"copies": "7",
"ref": "refs/heads/master",
"path": "backend/spec/features/admin/orders/log_entries_spec.rb",
"mode": "33188",
"license": "bsd-3-clause",
"language": [
{
"name": "CSS",
"bytes": "136168"
},
{
"name": "CoffeeScript",
"bytes": "34742"
},
{
"name": "HTML",
"bytes": "489982"
},
{
"name": "JavaScript",
"bytes": "59946"
},
{
"name": "Ruby",
"bytes": "2279370"
},
{
"name": "Shell",
"bytes": "2193"
}
],
"symlink_target": ""
}
|
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using Microsoft.AspNetCore.Mvc;
using Microsoft.AspNetCore.Mvc.RazorPages;
using Microsoft.Extensions.Logging;
namespace GitHubWebHookExample.Pages
{
public class PrivacyModel : PageModel
{
private readonly ILogger<PrivacyModel> _logger;
public PrivacyModel(ILogger<PrivacyModel> logger)
{
_logger = logger;
}
public void OnGet()
{
}
}
}
|
{
"content_hash": "4abe40f62d22acc02f24cf0878f3b863",
"timestamp": "",
"source": "github",
"line_count": 24,
"max_line_length": 57,
"avg_line_length": 21.625,
"alnum_prop": 0.6763005780346821,
"repo_name": "jaredpar/random",
"id": "3e96eb82cd0cd9c4c7c302ca22902fc80c3ae6b0",
"size": "521",
"binary": false,
"copies": "1",
"ref": "refs/heads/master",
"path": "dotnet/GitHubWebHookExample/GitHubWebHookExample/Pages/Privacy.cshtml.cs",
"mode": "33188",
"license": "apache-2.0",
"language": [
{
"name": "ASP.NET",
"bytes": "100"
},
{
"name": "C#",
"bytes": "180238"
},
{
"name": "CSS",
"bytes": "5897"
},
{
"name": "Go",
"bytes": "7849"
},
{
"name": "HTML",
"bytes": "26598"
},
{
"name": "JavaScript",
"bytes": "12574"
},
{
"name": "PowerShell",
"bytes": "6923"
},
{
"name": "TSQL",
"bytes": "243"
}
],
"symlink_target": ""
}
|
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>functions-in-zfc: Not compatible 👼</title>
<link rel="shortcut icon" type="image/png" href="../../../../../favicon.png" />
<link href="../../../../../bootstrap.min.css" rel="stylesheet">
<link href="../../../../../bootstrap-custom.css" rel="stylesheet">
<link href="//maxcdn.bootstrapcdn.com/font-awesome/4.2.0/css/font-awesome.min.css" rel="stylesheet">
<script src="../../../../../moment.min.js"></script>
<!-- HTML5 Shim and Respond.js IE8 support of HTML5 elements and media queries -->
<!-- WARNING: Respond.js doesn't work if you view the page via file:// -->
<!--[if lt IE 9]>
<script src="https://oss.maxcdn.com/html5shiv/3.7.2/html5shiv.min.js"></script>
<script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script>
<![endif]-->
</head>
<body>
<div class="container">
<div class="navbar navbar-default" role="navigation">
<div class="container-fluid">
<div class="navbar-header">
<a class="navbar-brand" href="../../../../.."><i class="fa fa-lg fa-flag-checkered"></i> Coq bench</a>
</div>
<div id="navbar" class="collapse navbar-collapse">
<ul class="nav navbar-nav">
<li><a href="../..">clean / released</a></li>
<li class="active"><a href="">8.7.2 / functions-in-zfc - 8.5.0</a></li>
</ul>
</div>
</div>
</div>
<div class="article">
<div class="row">
<div class="col-md-12">
<a href="../..">« Up</a>
<h1>
functions-in-zfc
<small>
8.5.0
<span class="label label-info">Not compatible 👼</span>
</small>
</h1>
<p>📅 <em><script>document.write(moment("2022-09-11 13:59:18 +0000", "YYYY-MM-DD HH:mm:ss Z").fromNow());</script> (2022-09-11 13:59:18 UTC)</em><p>
<h2>Context</h2>
<pre># Packages matching: installed
# Name # Installed # Synopsis
base-bigarray base
base-threads base
base-unix base
camlp5 7.14 Preprocessor-pretty-printer of OCaml
conf-findutils 1 Virtual package relying on findutils
conf-perl 2 Virtual package relying on perl
coq 8.7.2 Formal proof management system
num 1.4 The legacy Num library for arbitrary-precision integer and rational arithmetic
ocaml 4.09.1 The OCaml compiler (virtual package)
ocaml-base-compiler 4.09.1 Official release 4.09.1
ocaml-config 1 OCaml Switch Configuration
ocamlfind 1.9.5 A library manager for OCaml
# opam file:
opam-version: "2.0"
maintainer: "matej.kosik@inria.fr"
homepage: "https://github.com/coq-contribs/functions-in-zfc"
license: "LGPL 2"
build: [make "-j%{jobs}%"]
install: [make "install"]
remove: ["rm" "-R" "%{lib}%/coq/user-contrib/FunctionsInZFC"]
depends: [
"ocaml"
"coq" {>= "8.5" & < "8.6~"}
]
tags: [
"keyword:set theory"
"keyword:Zermelo-Fraenkel"
"keyword:functions"
"category:Mathematics/Logic/Set theory"
"date:2001-04"
]
authors: [ "Carlos Simpson <carlos@math.unice.fr>" ]
bug-reports: "https://github.com/coq-contribs/functions-in-zfc/issues"
dev-repo: "git+https://github.com/coq-contribs/functions-in-zfc.git"
synopsis: "Functions in classical ZFC"
description: """
This mostly repeats Guillaume Alexandre's contribution `zf',
but in classical logic and with a different proof style. We start with a
simple axiomatization of some flavor of ZFC (for example Werner's
implementation of ZFC should provide a model).
We develop some very basic things like pairs, functions, and a little
bit about natural numbers, following the standard classical path."""
flags: light-uninstall
url {
src:
"https://github.com/coq-contribs/functions-in-zfc/archive/v8.5.0.tar.gz"
checksum: "md5=2d73c5caf8dab43c0fc2e65cf22ea421"
}
</pre>
<h2>Lint</h2>
<dl class="dl-horizontal">
<dt>Command</dt>
<dd><code>true</code></dd>
<dt>Return code</dt>
<dd>0</dd>
</dl>
<h2>Dry install 🏜️</h2>
<p>Dry install with the current Coq version:</p>
<dl class="dl-horizontal">
<dt>Command</dt>
<dd><code>opam install -y --show-action coq-functions-in-zfc.8.5.0 coq.8.7.2</code></dd>
<dt>Return code</dt>
<dd>5120</dd>
<dt>Output</dt>
<dd><pre>[NOTE] Package coq is already installed (current version is 8.7.2).
The following dependencies couldn't be met:
- coq-functions-in-zfc -> coq < 8.6~ -> ocaml < 4.06.0
base of this switch (use `--unlock-base' to force)
No solution found, exiting
</pre></dd>
</dl>
<p>Dry install without Coq/switch base, to test if the problem was incompatibility with the current Coq/OCaml version:</p>
<dl class="dl-horizontal">
<dt>Command</dt>
<dd><code>opam remove -y coq; opam install -y --show-action --unlock-base coq-functions-in-zfc.8.5.0</code></dd>
<dt>Return code</dt>
<dd>0</dd>
</dl>
<h2>Install dependencies</h2>
<dl class="dl-horizontal">
<dt>Command</dt>
<dd><code>true</code></dd>
<dt>Return code</dt>
<dd>0</dd>
<dt>Duration</dt>
<dd>0 s</dd>
</dl>
<h2>Install 🚀</h2>
<dl class="dl-horizontal">
<dt>Command</dt>
<dd><code>true</code></dd>
<dt>Return code</dt>
<dd>0</dd>
<dt>Duration</dt>
<dd>0 s</dd>
</dl>
<h2>Installation size</h2>
<p>No files were installed.</p>
<h2>Uninstall 🧹</h2>
<dl class="dl-horizontal">
<dt>Command</dt>
<dd><code>true</code></dd>
<dt>Return code</dt>
<dd>0</dd>
<dt>Missing removes</dt>
<dd>
none
</dd>
<dt>Wrong removes</dt>
<dd>
none
</dd>
</dl>
</div>
</div>
</div>
<hr/>
<div class="footer">
<p class="text-center">
Sources are on <a href="https://github.com/coq-bench">GitHub</a> © Guillaume Claret 🐣
</p>
</div>
</div>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js"></script>
<script src="../../../../../bootstrap.min.js"></script>
</body>
</html>
|
{
"content_hash": "e7f0a1de7cb11997034951b5e30092cb",
"timestamp": "",
"source": "github",
"line_count": 175,
"max_line_length": 159,
"avg_line_length": 41.44,
"alnum_prop": 0.551296194153337,
"repo_name": "coq-bench/coq-bench.github.io",
"id": "dc8a74817789c811e2d9d0036ffac9624724af95",
"size": "7277",
"binary": false,
"copies": "1",
"ref": "refs/heads/master",
"path": "clean/Linux-x86_64-4.09.1-2.0.6/released/8.7.2/functions-in-zfc/8.5.0.html",
"mode": "33188",
"license": "mit",
"language": [],
"symlink_target": ""
}
|
<?php
use Bouda\Php7Backport\PatchFactory;
class PatchFactoryTest extends PHPUnit_Framework_TestCase
{
private $factory;
public function setUp()
{
$tokens = $this->getMockBuilder('Bouda\Php7Backport\Tokens')
->disableOriginalConstructor()->getMock();
$this->factory = new PatchFactory($tokens);
}
public function testCreateDefaultPatch()
{
$node = $this->getMockBuilder('PhpParser\Node')->getMock();
$patch = $this->factory->create($node);
$this->assertInstanceOf('Bouda\Php7Backport\Patch\DefaultPatch', $patch);
}
public function testCreateFunctionHeaderPatch()
{
$node = $this->getMockBuilder('PhpParser\Node\Stmt\Function_')
->disableOriginalConstructor()->getMock();
$patch = $this->factory->create($node);
$this->assertInstanceOf('Bouda\Php7Backport\Patch\FunctionHeaderPatch', $patch);
}
public function testCreateMethodHeaderPatch()
{
$node = $this->getMockBuilder('PhpParser\Node\Stmt\ClassMethod')
->disableOriginalConstructor()->getMock();
$patch = $this->factory->create($node);
$this->assertInstanceOf('Bouda\Php7Backport\Patch\FunctionHeaderPatch', $patch);
}
}
|
{
"content_hash": "df00618f82a6b7e03a853d4a5af8bbf2",
"timestamp": "",
"source": "github",
"line_count": 49,
"max_line_length": 88,
"avg_line_length": 26.387755102040817,
"alnum_prop": 0.6388244392884764,
"repo_name": "ondrejbouda/php7backport",
"id": "eef2341b41883d99faf2b901d7abc083dbf3a3a4",
"size": "1293",
"binary": false,
"copies": "1",
"ref": "refs/heads/master",
"path": "tests/unit/Bouda/Php7Backporter/PatchFactoryTest.php",
"mode": "33188",
"license": "mit",
"language": [
{
"name": "Batchfile",
"bytes": "39"
},
{
"name": "PHP",
"bytes": "43960"
}
],
"symlink_target": ""
}
|
<mbean name="dcm4chee.archive:service=dfcmd">
<attribute name="DFCommand"/>
<attribute name="DFCommandOption"/>
<attribute name="State"/>
</mbean>
|
{
"content_hash": "e6381a32167c96de28c6f82b98618f3f",
"timestamp": "",
"source": "github",
"line_count": 5,
"max_line_length": 45,
"avg_line_length": 29.4,
"alnum_prop": 0.7414965986394558,
"repo_name": "medicayun/medicayundicom",
"id": "cc1cdb5aea9729167fc7061cde638bc1edc539e5",
"size": "147",
"binary": false,
"copies": "2",
"ref": "refs/heads/master",
"path": "dcm4jboss-all/trunk/dcm4jboss-build/target/conf/dcm4chee-auditlog/dfcmd-xmbean.xml",
"mode": "33188",
"license": "apache-2.0",
"language": [],
"symlink_target": ""
}
|
browserify v2 plugin for coffee-script
mix and match `.coffee` and `.js` files in the same project
**important: when using require('path/to/file.coffee') remember to use .coffee extension**
[](http://travis-ci.org/substack/coffeeify)
# example
given some files written in a mix of `js` and `coffee`:
foo.coffee:
``` coffee
console.log(require './bar.js')
```
bar.js:
``` js
module.exports = require('./baz.coffee')(5)
```
baz.coffee:
``` js
module.exports = (n) -> n * 111
```
install coffeeify into your app:
```
$ npm install coffeeify
```
when you compile your app, just pass `-t coffeeify` to browserify:
```
$ browserify -t coffeeify foo.coffee > bundle.js
$ node bundle.js
555
```
# install
With [npm](https://npmjs.org) do:
```
npm install coffeeify
```
# license
MIT
# maintainers wanted
I am not a coffee-script user so if you use this plugin regularly and want to
take it over I will gladly add you as a maintainer on npm.
|
{
"content_hash": "c7126bb40e5ab43f0384e2833cae602b",
"timestamp": "",
"source": "github",
"line_count": 60,
"max_line_length": 111,
"avg_line_length": 17.05,
"alnum_prop": 0.6940371456500489,
"repo_name": "substack/coffeeify",
"id": "bc768f9f1cd6cba750bce98eef312a46cf8ed7a6",
"size": "1207",
"binary": false,
"copies": "1",
"ref": "refs/heads/master",
"path": "readme.markdown",
"mode": "33188",
"license": "mit",
"language": [
{
"name": "CoffeeScript",
"bytes": "185"
},
{
"name": "JavaScript",
"bytes": "2727"
}
],
"symlink_target": ""
}
|
module TumblrUploadr
VERSION = '0.1.1'
LOG = 'tumblr_log'
PAUSE = 1
PRODUCT = 'tumblr_uploadr'
PRODUCT_DESCRIPTION = 'batch uploading to tumblr (drafts)'
PRODUCT_URL = 'https://github.com/dkhamsing/tumblr_uploadr'
end
|
{
"content_hash": "ad33a4b47d5f1c30c1ba142d53e64e7b",
"timestamp": "",
"source": "github",
"line_count": 10,
"max_line_length": 61,
"avg_line_length": 23.2,
"alnum_prop": 0.6982758620689655,
"repo_name": "dkhamsing/tumblr_uploadr",
"id": "327821badbe73fe0740952dbe92f83bbd7dfa64a",
"size": "251",
"binary": false,
"copies": "1",
"ref": "refs/heads/wip",
"path": "lib/tumblr_uploadr/constants.rb",
"mode": "33188",
"license": "mit",
"language": [
{
"name": "Ruby",
"bytes": "3392"
}
],
"symlink_target": ""
}
|
"""
Agregates small, atomic shifts as longer shifts, based on the allowed shift lengths.
This function outputs a list of tuples, containing the following information about each shift:
* the beginning of the shift (DateTime)
* the duration of the shift (Hour)
* the number of teams required for the shift (Int)
"""
function shiftsAgregation(shiftsOpenRaw::Array{Bool, 1}, timing::Timing, shifts::Shifts, solver::MathProgBase.AbstractMathProgSolver)
# First extract long worked periods, not yet dealing with maximum shift duration.
shiftsOpenLong = Tuple{DateTime, Hour, Int}[]
start = timeBeginning(timing) # Beginning of the current shift.
duration = 1 # Number of "unit" shifts (from shiftsOpenRaw) within the current longer shift.
for i in 1:length(shiftsOpenRaw)
if shiftsOpenRaw[i] && i > 1
# This shift is worked: either a shift starts or continues.
if ! shiftsOpenRaw[i - 1] # Start.
start = timeBeginning(timing) + (i - 1) * shiftDurationsStep(shifts)
else # Continuation.
duration += 1
end
elseif ! shiftsOpenRaw[i] && i > 1 && shiftsOpenRaw[i - 1]
# This shift is not worked, but the previous was: this is the end of a shift.
push!(shiftsOpenLong, (start, duration * shiftDurationsStep(shifts), 1))
duration = 1
end
end
# Then, split the too long shifts into more acceptable shifts.
shiftsOpen = Tuple{DateTime, Hour, Int}[]
maximumShiftDuration = maximumShiftDurations(shifts)
for sol in shiftsOpenLong
if sol[2] <= maximumShiftDurations(shifts) # Shift short enough: accept it as such!
push!(shiftsOpen, sol)
else # Too long: cut it into pieces.
# Have pieces that are as alike to each other as possible, but not too many pieces either.
# Could probably write an algorithm for this, but let's use an optimisation solver (ensured to be available).
# After all, MIP is a figth-generation programming language!
maxNShifts = ceil(Int, sol[2].value / minimumShiftDurations(shifts).value)
minNShifts = ceil(Int, sol[2].value / maximumShiftDurations(shifts).value)
m = Model(solver=solver)
@variable(m, n[1:nShiftDurations(shifts)] >= 0, Int)
@variable(m, nUsed[1:nShiftDurations(shifts)], Bin) # Avoid solutions like 8+4, prefer 6+6.
@variable(m, slackPlus[1:nShiftDurations(shifts)] >= 0)
@variable(m, slackMinus[1:nShiftDurations(shifts)] >= 0)
@constraint(m, dot(n, map(d -> d.value, shiftDurations(shifts))) == sol[2].value)
@constraint(m, sum(n) <= maxNShifts)
@constraint(m, c[i=1:nShiftDurations(shifts)], n[i] * shiftDurations(shifts)[i].value + slackPlus[i] - slackMinus[i] == sol[2].value / minNShifts)
@constraint(m, d[i=1:nShiftDurations(shifts)], n[i] <= maxNShifts * nUsed[i])
@objective(m, Min, sum(slackPlus) + sum(slackMinus) + 10 * sum(n) + 10 * sum(nUsed))
solve(m)
start = sol[1]
ns = round.(Int, getvalue(n))
for i in 1:nShiftDurations(shifts)
for repetition in 1:ns[i]
push!(shiftsOpen, (start, shiftDurations(shifts)[i], 1))
start += shiftDurations(shifts)[i]
end
end
end
end
return shiftsOpen
end
|
{
"content_hash": "51a814241c06e10d95787aaef587e622",
"timestamp": "",
"source": "github",
"line_count": 70,
"max_line_length": 153,
"avg_line_length": 46.1,
"alnum_prop": 0.6736907344282616,
"repo_name": "dourouc05/IndustrialProcessFlexibilisation.jl",
"id": "f27d764ee4d4ded8e530324a6b252b30098dd97b",
"size": "3227",
"binary": false,
"copies": "1",
"ref": "refs/heads/master",
"path": "src/utils/shifts.jl",
"mode": "33188",
"license": "mit",
"language": [
{
"name": "Julia",
"bytes": "374111"
}
],
"symlink_target": ""
}
|
module Admin::ModuleHelper
end
|
{
"content_hash": "a2365c1dcc4cba38208afe594fc4eb74",
"timestamp": "",
"source": "github",
"line_count": 2,
"max_line_length": 26,
"avg_line_length": 15.5,
"alnum_prop": 0.8387096774193549,
"repo_name": "agileblaze/RFP",
"id": "212ba3163865d59aae75fc54bbf0a96e5dcfe6ba",
"size": "31",
"binary": false,
"copies": "1",
"ref": "refs/heads/master",
"path": "app/helpers/admin/module_helper.rb",
"mode": "33188",
"license": "mit",
"language": [
{
"name": "ASP",
"bytes": "64000"
},
{
"name": "ColdFusion",
"bytes": "169639"
},
{
"name": "JavaScript",
"bytes": "2145502"
},
{
"name": "PHP",
"bytes": "67590"
},
{
"name": "Perl",
"bytes": "38659"
},
{
"name": "Python",
"bytes": "47611"
},
{
"name": "Ruby",
"bytes": "174303"
},
{
"name": "Shell",
"bytes": "1704"
}
],
"symlink_target": ""
}
|
package hudson;
import hudson.console.ConsoleAnnotationDescriptor;
import hudson.console.ConsoleAnnotatorFactory;
import hudson.model.AbstractProject;
import hudson.model.Action;
import hudson.model.Describable;
import hudson.model.Descriptor;
import hudson.model.DescriptorVisibilityFilter;
import hudson.model.Hudson;
import hudson.model.Item;
import hudson.model.ItemGroup;
import hudson.model.Items;
import hudson.model.Job;
import hudson.model.JobPropertyDescriptor;
import hudson.model.ModelObject;
import hudson.model.Node;
import hudson.model.PageDecorator;
import hudson.model.ParameterDefinition;
import hudson.model.ParameterDefinition.ParameterDescriptor;
import hudson.model.Project;
import hudson.model.Run;
import hudson.model.TopLevelItem;
import hudson.model.View;
import hudson.model.JDK;
import hudson.search.SearchableModelObject;
import hudson.security.AccessControlled;
import hudson.security.AuthorizationStrategy;
import hudson.security.Permission;
import hudson.security.SecurityRealm;
import hudson.security.csrf.CrumbIssuer;
import hudson.slaves.Cloud;
import hudson.slaves.ComputerLauncher;
import hudson.slaves.NodeProperty;
import hudson.slaves.NodePropertyDescriptor;
import hudson.slaves.RetentionStrategy;
import hudson.tasks.BuildStepDescriptor;
import hudson.tasks.BuildWrapper;
import hudson.tasks.BuildWrappers;
import hudson.tasks.Builder;
import hudson.tasks.Publisher;
import hudson.util.Area;
import hudson.util.Iterators;
import hudson.scm.SCM;
import hudson.scm.SCMDescriptor;
import hudson.util.Secret;
import hudson.views.MyViewsTabBar;
import hudson.views.ViewsTabBar;
import org.acegisecurity.providers.anonymous.AnonymousAuthenticationToken;
import org.apache.commons.jelly.JellyContext;
import org.apache.commons.jelly.JellyTagException;
import org.apache.commons.jelly.Script;
import org.apache.commons.jelly.XMLOutput;
import org.apache.commons.jexl.parser.ASTSizeFunction;
import org.apache.commons.jexl.util.Introspector;
import org.jvnet.animal_sniffer.IgnoreJRERequirement;
import org.jvnet.tiger_types.Types;
import org.kohsuke.stapler.Ancestor;
import org.kohsuke.stapler.Stapler;
import org.kohsuke.stapler.StaplerRequest;
import org.kohsuke.stapler.StaplerResponse;
import javax.servlet.ServletException;
import javax.servlet.http.Cookie;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.io.File;
import java.io.IOException;
import java.io.PrintWriter;
import java.io.StringWriter;
import java.io.UnsupportedEncodingException;
import java.lang.management.LockInfo;
import java.lang.management.ManagementFactory;
import java.lang.management.MonitorInfo;
import java.lang.management.ThreadInfo;
import java.lang.management.ThreadMXBean;
import java.lang.reflect.Type;
import java.lang.reflect.ParameterizedType;
import java.net.MalformedURLException;
import java.net.URL;
import java.net.URLDecoder;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Calendar;
import java.util.Collection;
import java.util.Collections;
import java.util.Comparator;
import java.util.ConcurrentModificationException;
import java.util.Enumeration;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import java.util.SortedMap;
import java.util.TreeMap;
import java.util.Date;
import java.util.logging.LogManager;
import java.util.logging.LogRecord;
import java.util.logging.SimpleFormatter;
import java.util.regex.Pattern;
/**
* Utility functions used in views.
*
* <p>
* An instance of this class is created for each request and made accessible
* from view pages via the variable 'h' (h stands for Hudson.)
*
* @author Kohsuke Kawaguchi
*/
public class Functions {
private static volatile int globalIota = 0;
private int iota;
public Functions() {
iota = globalIota;
// concurrent requests can use the same ID --- we are just trying to
// prevent the same user from seeing the same ID repeatedly.
globalIota+=1000;
}
/**
* Generates an unique ID.
*/
public String generateId() {
return "id"+iota++;
}
public static boolean isModel(Object o) {
return o instanceof ModelObject;
}
public static String xsDate(Calendar cal) {
return Util.XS_DATETIME_FORMATTER.format(cal.getTime());
}
public static String rfc822Date(Calendar cal) {
return Util.RFC822_DATETIME_FORMATTER.format(cal.getTime());
}
/**
* Given {@code c=MyList (extends ArrayList<Foo>), base=List}, compute the parameterization of 'base'
* that's assignable from 'c' (in this case {@code List<Foo>}), and return its n-th type parameter
* (n=0 would return {@code Foo}).
*
* <p>
* This method is useful for doing type arithmetic.
*
* @throws AssertionError
* if c' is not parameterized.
*/
public static <B> Class getTypeParameter(Class<? extends B> c, Class<B> base, int n) {
Type parameterization = Types.getBaseClass(c,base);
if (parameterization instanceof ParameterizedType) {
ParameterizedType pt = (ParameterizedType) parameterization;
return Types.erasure(Types.getTypeArgument(pt,n));
} else {
throw new AssertionError(c+" doesn't properly parameterize "+base);
}
}
public JDK.DescriptorImpl getJDKDescriptor() {
return Hudson.getInstance().getDescriptorByType(JDK.DescriptorImpl.class);
}
/**
* Prints the integer as a string that represents difference,
* like "-5", "+/-0", "+3".
*/
public static String getDiffString(int i) {
if(i==0) return "\u00B10"; // +/-0
String s = Integer.toString(i);
if(i>0) return "+"+s;
else return s;
}
/**
* {@link #getDiffString(int)} that doesn't show anything for +/-0
*/
public static String getDiffString2(int i) {
if(i==0) return "";
String s = Integer.toString(i);
if(i>0) return "+"+s;
else return s;
}
/**
* {@link #getDiffString2(int)} that puts the result into prefix and suffix
* if there's something to print
*/
public static String getDiffString2(String prefix, int i, String suffix) {
if(i==0) return "";
String s = Integer.toString(i);
if(i>0) return prefix+"+"+s+suffix;
else return prefix+s+suffix;
}
/**
* Adds the proper suffix.
*/
public static String addSuffix(int n, String singular, String plural) {
StringBuilder buf = new StringBuilder();
buf.append(n).append(' ');
if(n==1)
buf.append(singular);
else
buf.append(plural);
return buf.toString();
}
public static RunUrl decompose(StaplerRequest req) {
List<Ancestor> ancestors = req.getAncestors();
// find the first and last Run instances
Ancestor f=null,l=null;
for (Ancestor anc : ancestors) {
if(anc.getObject() instanceof Run) {
if(f==null) f=anc;
l=anc;
}
}
if(l==null) return null; // there was no Run object
String head = f.getPrev().getUrl()+'/';
String base = l.getUrl();
String reqUri = req.getOriginalRequestURI();
// Find "rest" or URI by removing N path components.
// Not using reqUri.substring(f.getUrl().length()) to avoid mismatches due to
// url-encoding or extra slashes. Former may occur in Tomcat (despite the spec saying
// this string is not decoded, Tomcat apparently decodes this string. You see ' '
// instead of '%20', which is what the browser has sent), latter may occur in some
// proxy or URL-rewriting setups where extra slashes are inadvertently added.
String furl = f.getUrl();
int slashCount = 0;
// Count components in ancestor URL
for (int i = furl.indexOf('/'); i >= 0; i = furl.indexOf('/', i + 1)) slashCount++;
// Remove that many from request URL, ignoring extra slashes
String rest = reqUri.replaceFirst("(?:/+[^/]*){" + slashCount + "}", "");
return new RunUrl( (Run) f.getObject(), head, base, rest);
}
/**
* If we know the user's screen resolution, return it. Otherwise null.
* @since 1.213
*/
public static Area getScreenResolution() {
Cookie res = Functions.getCookie(Stapler.getCurrentRequest(),"screenResolution");
if(res!=null)
return Area.parse(res.getValue());
return null;
}
/**
* URL decomposed for easier computation of relevant URLs.
*
* <p>
* The decomposed URL will be of the form:
* <pre>
* aaaaaa/524/bbbbb/cccc
* -head-| N |---rest---
* ----- base -----|
* </pre>
*
* <p>
* The head portion is the part of the URL from the {@link Hudson}
* object to the first {@link Run} subtype. When "next/prev build"
* is chosen, this part remains intact.
*
* <p>
* The <tt>524</tt> is the path from {@link Job} to {@link Run}.
*
* <p>
* The <tt>bbb</tt> portion is the path after that till the last
* {@link Run} subtype. The <tt>ccc</tt> portion is the part
* after that.
*/
public static final class RunUrl {
private final String head, base, rest;
private final Run run;
public RunUrl(Run run, String head, String base, String rest) {
this.run = run;
this.head = head;
this.base = base;
this.rest = rest;
}
public String getBaseUrl() {
return base;
}
/**
* Returns the same page in the next build.
*/
public String getNextBuildUrl() {
return getUrl(run.getNextBuild());
}
/**
* Returns the same page in the previous build.
*/
public String getPreviousBuildUrl() {
return getUrl(run.getPreviousBuild());
}
private String getUrl(Run n) {
if(n ==null)
return null;
else {
return head+n.getNumber()+rest;
}
}
}
public static Node.Mode[] getNodeModes() {
return Node.Mode.values();
}
public static String getProjectListString(List<Project> projects) {
return Items.toNameList(projects);
}
/**
* @deprecated as of 1.294
* JEXL now supports the real ternary operator "x?y:z", so this work around
* is no longer necessary.
*/
public static Object ifThenElse(boolean cond, Object thenValue, Object elseValue) {
return cond ? thenValue : elseValue;
}
public static String appendIfNotNull(String text, String suffix, String nullText) {
return text == null ? nullText : text + suffix;
}
public static Map getSystemProperties() {
return new TreeMap<Object,Object>(System.getProperties());
}
public static Map getEnvVars() {
return new TreeMap<String,String>(EnvVars.masterEnvVars);
}
public static boolean isWindows() {
return File.pathSeparatorChar==';';
}
public static List<LogRecord> getLogRecords() {
return Hudson.logRecords;
}
public static String printLogRecord(LogRecord r) {
return formatter.format(r);
}
public static Cookie getCookie(HttpServletRequest req,String name) {
Cookie[] cookies = req.getCookies();
if(cookies!=null) {
for (Cookie cookie : cookies) {
if(cookie.getName().equals(name)) {
return cookie;
}
}
}
return null;
}
public static String getCookie(HttpServletRequest req,String name, String defaultValue) {
Cookie c = getCookie(req, name);
if(c==null || c.getValue()==null) return defaultValue;
return c.getValue();
}
/**
* Gets the suffix to use for YUI JavaScript.
*/
public static String getYuiSuffix() {
return DEBUG_YUI ? "debug" : "min";
}
/**
* Set to true if you need to use the debug version of YUI.
*/
public static boolean DEBUG_YUI = Boolean.getBoolean("debug.YUI");
/**
* Creates a sub map by using the given range (both ends inclusive).
*/
public static <V> SortedMap<Integer,V> filter(SortedMap<Integer,V> map, String from, String to) {
if(from==null && to==null) return map;
if(to==null)
return map.headMap(Integer.parseInt(from)-1);
if(from==null)
return map.tailMap(Integer.parseInt(to));
return map.subMap(Integer.parseInt(to),Integer.parseInt(from)-1);
}
private static final SimpleFormatter formatter = new SimpleFormatter();
/**
* Used by <tt>layout.jelly</tt> to control the auto refresh behavior.
*
* @param noAutoRefresh
* On certain pages, like a page with forms, will have annoying interference
* with auto refresh. On those pages, disable auto-refresh.
*/
public static void configureAutoRefresh(HttpServletRequest request, HttpServletResponse response, boolean noAutoRefresh) {
if(noAutoRefresh)
return;
String param = request.getParameter("auto_refresh");
boolean refresh = isAutoRefresh(request);
if (param != null) {
refresh = Boolean.parseBoolean(param);
Cookie c = new Cookie("hudson_auto_refresh", Boolean.toString(refresh));
// Need to set path or it will not stick from e.g. a project page to the dashboard.
// Using request.getContextPath() might work but it seems simpler to just use the hudson_ prefix
// to avoid conflicts with any other web apps that might be on the same machine.
c.setPath("/");
c.setMaxAge(60*60*24*30); // persist it roughly for a month
response.addCookie(c);
}
if (refresh) {
response.addHeader("Refresh", System.getProperty("hudson.Functions.autoRefreshSeconds", "10"));
}
}
public static boolean isAutoRefresh(HttpServletRequest request) {
String param = request.getParameter("auto_refresh");
if (param != null) {
return Boolean.parseBoolean(param);
}
Cookie[] cookies = request.getCookies();
if(cookies==null)
return false; // when API design messes it up, we all suffer
for (Cookie c : cookies) {
if (c.getName().equals("hudson_auto_refresh")) {
return Boolean.parseBoolean(c.getValue());
}
}
return false;
}
/**
* Finds the given object in the ancestor list and returns its URL.
* This is used to determine the "current" URL assigned to the given object,
* so that one can compute relative URLs from it.
*/
public static String getNearestAncestorUrl(StaplerRequest req,Object it) {
List list = req.getAncestors();
for( int i=list.size()-1; i>=0; i-- ) {
Ancestor anc = (Ancestor) list.get(i);
if(anc.getObject()==it)
return anc.getUrl();
}
return null;
}
/**
* Finds the inner-most {@link SearchableModelObject} in scope.
*/
public static String getSearchURL() {
List list = Stapler.getCurrentRequest().getAncestors();
for( int i=list.size()-1; i>=0; i-- ) {
Ancestor anc = (Ancestor) list.get(i);
if(anc.getObject() instanceof SearchableModelObject)
return anc.getUrl()+"/search/";
}
return null;
}
public static String appendSpaceIfNotNull(String n) {
if(n==null) return null;
else return n+' ';
}
/**
* One nbsp per 10 pixels in given size, which may be a plain number or "NxN"
* (like an iconSize). Useful in a sortable table heading.
*/
public static String nbspIndent(String size) {
int i = size.indexOf('x');
i = Integer.parseInt(i > 0 ? size.substring(0, i) : size) / 10;
StringBuilder buf = new StringBuilder(30);
for (int j = 0; j < i; j++)
buf.append(" ");
return buf.toString();
}
public static String getWin32ErrorMessage(IOException e) {
return Util.getWin32ErrorMessage(e);
}
public static boolean isMultiline(String s) {
if(s==null) return false;
return s.indexOf('\r')>=0 || s.indexOf('\n')>=0;
}
public static String encode(String s) {
return Util.encode(s);
}
public static String escape(String s) {
return Util.escape(s);
}
public static String xmlEscape(String s) {
return Util.xmlEscape(s);
}
public static void checkPermission(Permission permission) throws IOException, ServletException {
checkPermission(Hudson.getInstance(),permission);
}
public static void checkPermission(AccessControlled object, Permission permission) throws IOException, ServletException {
if (permission != null) {
object.checkPermission(permission);
}
}
/**
* This version is so that the 'checkPermission' on <tt>layout.jelly</tt>
* degrades gracefully if "it" is not an {@link AccessControlled} object.
* Otherwise it will perform no check and that problem is hard to notice.
*/
public static void checkPermission(Object object, Permission permission) throws IOException, ServletException {
if (permission == null)
return;
if (object instanceof AccessControlled)
checkPermission((AccessControlled) object,permission);
else {
List<Ancestor> ancs = Stapler.getCurrentRequest().getAncestors();
for(Ancestor anc : Iterators.reverse(ancs)) {
Object o = anc.getObject();
if (o instanceof AccessControlled) {
checkPermission((AccessControlled) o,permission);
return;
}
}
checkPermission(Hudson.getInstance(),permission);
}
}
/**
* Returns true if the current user has the given permission.
*
* @param permission
* If null, returns true. This defaulting is convenient in making the use of this method terse.
*/
public static boolean hasPermission(Permission permission) throws IOException, ServletException {
return hasPermission(Hudson.getInstance(),permission);
}
/**
* This version is so that the 'hasPermission' can degrade gracefully
* if "it" is not an {@link AccessControlled} object.
*/
public static boolean hasPermission(Object object, Permission permission) throws IOException, ServletException {
if (permission == null)
return true;
if (object instanceof AccessControlled)
return ((AccessControlled)object).hasPermission(permission);
else {
List<Ancestor> ancs = Stapler.getCurrentRequest().getAncestors();
for(Ancestor anc : Iterators.reverse(ancs)) {
Object o = anc.getObject();
if (o instanceof AccessControlled) {
return ((AccessControlled)o).hasPermission(permission);
}
}
return Hudson.getInstance().hasPermission(permission);
}
}
public static void adminCheck(StaplerRequest req, StaplerResponse rsp, Object required, Permission permission) throws IOException, ServletException {
// this is legacy --- all views should be eventually converted to
// the permission based model.
if(required!=null && !Hudson.adminCheck(req,rsp)) {
// check failed. commit the FORBIDDEN response, then abort.
rsp.setStatus(HttpServletResponse.SC_FORBIDDEN);
rsp.getOutputStream().close();
throw new ServletException("Unauthorized access");
}
// make sure the user owns the necessary permission to access this page.
if(permission!=null)
checkPermission(permission);
}
/**
* Infers the hudson installation URL from the given request.
*/
public static String inferHudsonURL(StaplerRequest req) {
String rootUrl = Hudson.getInstance().getRootUrl();
if(rootUrl !=null)
// prefer the one explicitly configured, to work with load-balancer, frontend, etc.
return rootUrl;
StringBuilder buf = new StringBuilder();
buf.append(req.getScheme()).append("://");
buf.append(req.getServerName());
if(req.getLocalPort()!=80)
buf.append(':').append(req.getLocalPort());
buf.append(req.getContextPath()).append('/');
return buf.toString();
}
public static List<JobPropertyDescriptor> getJobPropertyDescriptors(Class<? extends Job> clazz) {
return JobPropertyDescriptor.getPropertyDescriptors(clazz);
}
public static List<Descriptor<BuildWrapper>> getBuildWrapperDescriptors(AbstractProject<?,?> project) {
return BuildWrappers.getFor(project);
}
public static List<Descriptor<SecurityRealm>> getSecurityRealmDescriptors() {
return SecurityRealm.all();
}
public static List<Descriptor<AuthorizationStrategy>> getAuthorizationStrategyDescriptors() {
return AuthorizationStrategy.all();
}
public static List<Descriptor<Builder>> getBuilderDescriptors(AbstractProject<?,?> project) {
return BuildStepDescriptor.filter(Builder.all(), project.getClass());
}
public static List<Descriptor<Publisher>> getPublisherDescriptors(AbstractProject<?,?> project) {
return BuildStepDescriptor.filter(Publisher.all(), project.getClass());
}
public static List<SCMDescriptor<?>> getSCMDescriptors(AbstractProject<?,?> project) {
return SCM._for(project);
}
public static List<Descriptor<ComputerLauncher>> getComputerLauncherDescriptors() {
return Hudson.getInstance().<ComputerLauncher,Descriptor<ComputerLauncher>>getDescriptorList(ComputerLauncher.class);
}
public static List<Descriptor<RetentionStrategy<?>>> getRetentionStrategyDescriptors() {
return RetentionStrategy.all();
}
public static List<ParameterDescriptor> getParameterDescriptors() {
return ParameterDefinition.all();
}
public static List<Descriptor<ViewsTabBar>> getViewsTabBarDescriptors() {
return ViewsTabBar.all();
}
public static List<Descriptor<MyViewsTabBar>> getMyViewsTabBarDescriptors() {
return MyViewsTabBar.all();
}
public static List<NodePropertyDescriptor> getNodePropertyDescriptors(Class<? extends Node> clazz) {
List<NodePropertyDescriptor> result = new ArrayList<NodePropertyDescriptor>();
Collection<NodePropertyDescriptor> list = (Collection) Hudson.getInstance().getDescriptorList(NodeProperty.class);
for (NodePropertyDescriptor npd : list) {
if (npd.isApplicable(clazz)) {
result.add(npd);
}
}
return result;
}
/**
* Gets all the descriptors sorted by their inheritance tree of {@link Describable}
* so that descriptors of similar types come nearby.
*/
public static Collection<Descriptor> getSortedDescriptorsForGlobalConfig() {
Map<String,Descriptor> r = new TreeMap<String, Descriptor>();
for (Descriptor<?> d : Hudson.getInstance().getExtensionList(Descriptor.class)) {
if (d.getGlobalConfigPage()==null) continue;
r.put(buildSuperclassHierarchy(d.clazz, new StringBuilder()).toString(),d);
}
return r.values();
}
private static StringBuilder buildSuperclassHierarchy(Class c, StringBuilder buf) {
Class sc = c.getSuperclass();
if (sc!=null) buildSuperclassHierarchy(sc,buf).append(':');
return buf.append(c.getName());
}
/**
* Computes the path to the icon of the given action
* from the context path.
*/
public static String getIconFilePath(Action a) {
String name = a.getIconFileName();
if(name.startsWith("/"))
return name.substring(1);
else
return "images/24x24/"+name;
}
/**
* Works like JSTL build-in size(x) function,
* but handle null gracefully.
*/
public static int size2(Object o) throws Exception {
if(o==null) return 0;
return ASTSizeFunction.sizeOf(o,Introspector.getUberspect());
}
/**
* Computes the relative path from the current page to the given item.
*/
public static String getRelativeLinkTo(Item p) {
Map<Object,String> ancestors = new HashMap<Object,String>();
View view=null;
StaplerRequest request = Stapler.getCurrentRequest();
for( Ancestor a : request.getAncestors() ) {
ancestors.put(a.getObject(),a.getRelativePath());
if(a.getObject() instanceof View)
view = (View) a.getObject();
}
String path = ancestors.get(p);
if(path!=null) return path;
Item i=p;
String url = "";
while(true) {
ItemGroup ig = i.getParent();
url = i.getShortUrl()+url;
if(ig==Hudson.getInstance()) {
assert i instanceof TopLevelItem;
if(view!=null && view.contains((TopLevelItem)i)) {
// if p and the current page belongs to the same view, then return a relative path
return ancestors.get(view)+'/'+url;
} else {
// otherwise return a path from the root Hudson
return request.getContextPath()+'/'+p.getUrl();
}
}
path = ancestors.get(ig);
if(path!=null) return path+'/'+url;
assert ig instanceof Item; // if not, ig must have been the Hudson instance
i = (Item) ig;
}
}
public static Map<Thread,StackTraceElement[]> dumpAllThreads() {
Map<Thread,StackTraceElement[]> sorted = new TreeMap<Thread,StackTraceElement[]>(new ThreadSorter());
sorted.putAll(Thread.getAllStackTraces());
return sorted;
}
@IgnoreJRERequirement
public static ThreadInfo[] getThreadInfos() {
ThreadMXBean mbean = ManagementFactory.getThreadMXBean();
return mbean.dumpAllThreads(mbean.isObjectMonitorUsageSupported(),mbean.isSynchronizerUsageSupported());
}
public static ThreadGroupMap sortThreadsAndGetGroupMap(ThreadInfo[] list) {
ThreadGroupMap sorter = new ThreadGroupMap();
Arrays.sort(list, sorter);
return sorter;
}
// Common code for sorting Threads/ThreadInfos by ThreadGroup
private static class ThreadSorterBase {
protected Map<Long,String> map = new HashMap<Long,String>();
private ThreadSorterBase() {
ThreadGroup tg = Thread.currentThread().getThreadGroup();
while (tg.getParent() != null) tg = tg.getParent();
Thread[] threads = new Thread[tg.activeCount()*2];
int threadsLen = tg.enumerate(threads, true);
for (int i = 0; i < threadsLen; i++)
map.put(threads[i].getId(), threads[i].getThreadGroup().getName());
}
protected int compare(long idA, long idB) {
String tga = map.get(idA), tgb = map.get(idB);
int result = (tga!=null?-1:0) + (tgb!=null?1:0); // Will be non-zero if only one is null
if (result==0 && tga!=null)
result = tga.compareToIgnoreCase(tgb);
return result;
}
}
public static class ThreadGroupMap extends ThreadSorterBase implements Comparator<ThreadInfo> {
/**
* @return ThreadGroup name or null if unknown
*/
public String getThreadGroup(ThreadInfo ti) {
return map.get(ti.getThreadId());
}
public int compare(ThreadInfo a, ThreadInfo b) {
int result = compare(a.getThreadId(), b.getThreadId());
if (result == 0)
result = a.getThreadName().compareToIgnoreCase(b.getThreadName());
return result;
}
}
private static class ThreadSorter extends ThreadSorterBase implements Comparator<Thread> {
public int compare(Thread a, Thread b) {
int result = compare(a.getId(), b.getId());
if (result == 0)
result = a.getName().compareToIgnoreCase(b.getName());
return result;
}
}
/**
* Are we running on JRE6 or above?
*/
@IgnoreJRERequirement
public static boolean isMustangOrAbove() {
try {
System.console();
return true;
} catch(LinkageError e) {
return false;
}
}
// ThreadInfo.toString() truncates the stack trace by first 8, so needed my own version
@IgnoreJRERequirement
public static String dumpThreadInfo(ThreadInfo ti, ThreadGroupMap map) {
String grp = map.getThreadGroup(ti);
StringBuilder sb = new StringBuilder("\"" + ti.getThreadName() + "\"" +
" Id=" + ti.getThreadId() + " Group=" +
(grp != null ? grp : "?") + " " +
ti.getThreadState());
if (ti.getLockName() != null) {
sb.append(" on " + ti.getLockName());
}
if (ti.getLockOwnerName() != null) {
sb.append(" owned by \"" + ti.getLockOwnerName() +
"\" Id=" + ti.getLockOwnerId());
}
if (ti.isSuspended()) {
sb.append(" (suspended)");
}
if (ti.isInNative()) {
sb.append(" (in native)");
}
sb.append('\n');
StackTraceElement[] stackTrace = ti.getStackTrace();
for (int i=0; i < stackTrace.length; i++) {
StackTraceElement ste = stackTrace[i];
sb.append("\tat " + ste.toString());
sb.append('\n');
if (i == 0 && ti.getLockInfo() != null) {
Thread.State ts = ti.getThreadState();
switch (ts) {
case BLOCKED:
sb.append("\t- blocked on " + ti.getLockInfo());
sb.append('\n');
break;
case WAITING:
sb.append("\t- waiting on " + ti.getLockInfo());
sb.append('\n');
break;
case TIMED_WAITING:
sb.append("\t- waiting on " + ti.getLockInfo());
sb.append('\n');
break;
default:
}
}
for (MonitorInfo mi : ti.getLockedMonitors()) {
if (mi.getLockedStackDepth() == i) {
sb.append("\t- locked " + mi);
sb.append('\n');
}
}
}
LockInfo[] locks = ti.getLockedSynchronizers();
if (locks.length > 0) {
sb.append("\n\tNumber of locked synchronizers = " + locks.length);
sb.append('\n');
for (LockInfo li : locks) {
sb.append("\t- " + li);
sb.append('\n');
}
}
sb.append('\n');
return sb.toString();
}
public static <T> Collection<T> emptyList() {
return Collections.emptyList();
}
public static String jsStringEscape(String s) {
StringBuilder buf = new StringBuilder();
for( int i=0; i<s.length(); i++ ) {
char ch = s.charAt(i);
switch(ch) {
case '\'':
buf.append("\\'");
break;
case '\\':
buf.append("\\\\");
break;
case '"':
buf.append("\\\"");
break;
default:
buf.append(ch);
}
}
return buf.toString();
}
/**
* Converts "abc" to "Abc".
*/
public static String capitalize(String s) {
if(s==null || s.length()==0) return s;
return Character.toUpperCase(s.charAt(0))+s.substring(1);
}
public static String getVersion() {
return Hudson.VERSION;
}
/**
* Resoruce path prefix.
*/
public static String getResourcePath() {
return Hudson.RESOURCE_PATH;
}
public static String getViewResource(Object it, String path) {
Class clazz = it.getClass();
if(it instanceof Class)
clazz = (Class)it;
if(it instanceof Descriptor)
clazz = ((Descriptor)it).clazz;
StringBuilder buf = new StringBuilder(Stapler.getCurrentRequest().getContextPath());
buf.append(Hudson.VIEW_RESOURCE_PATH).append('/');
buf.append(clazz.getName().replace('.','/').replace('$','/'));
buf.append('/').append(path);
return buf.toString();
}
public static boolean hasView(Object it, String path) throws IOException {
if(it==null) return false;
return Stapler.getCurrentRequest().getView(it,path)!=null;
}
/**
* Can be used to check a checkbox by default.
* Used from views like {@code h.defaultToTrue(scm.useUpdate)}.
* The expression will evaluate to true if scm is null.
*/
public static boolean defaultToTrue(Boolean b) {
if(b==null) return true;
return b;
}
/**
* If the value exists, return that value. Otherwise return the default value.
* <p>
* Starting 1.294, JEXL supports the elvis operator "x?:y" that supercedes this.
*
* @since 1.150
*/
public static <T> T defaulted(T value, T defaultValue) {
return value!=null ? value : defaultValue;
}
public static String printThrowable(Throwable t) {
StringWriter sw = new StringWriter();
t.printStackTrace(new PrintWriter(sw));
return sw.toString();
}
/**
* Counts the number of rows needed for textarea to fit the content.
* Minimum 5 rows.
*/
public static int determineRows(String s) {
if(s==null) return 5;
return Math.max(5,LINE_END.split(s).length);
}
/**
* Converts the Hudson build status to CruiseControl build status,
* which is either Success, Failure, Exception, or Unknown.
*/
public static String toCCStatus(Item i) {
if (i instanceof Job) {
Job j = (Job) i;
switch (j.getIconColor().noAnime()) {
case ABORTED:
case RED:
case YELLOW:
return "Failure";
case BLUE:
return "Success";
case DISABLED:
case GREY:
return "Unknown";
}
}
return "Unknown";
}
private static final Pattern LINE_END = Pattern.compile("\r?\n");
/**
* Checks if the current user is anonymous.
*/
public static boolean isAnonymous() {
return Hudson.getAuthentication() instanceof AnonymousAuthenticationToken;
}
/**
* When called from within JEXL expression evaluation,
* this method returns the current {@link JellyContext} used
* to evaluate the script.
*
* @since 1.164
*/
public static JellyContext getCurrentJellyContext() {
JellyContext context = ExpressionFactory2.CURRENT_CONTEXT.get();
assert context!=null;
return context;
}
/**
* Evaluate a Jelly script and return output as a String.
*
* @since 1.267
*/
public static String runScript(Script script) throws JellyTagException {
StringWriter out = new StringWriter();
script.run(getCurrentJellyContext(), XMLOutput.createXMLOutput(out));
return out.toString();
}
/**
* Returns a sub-list if the given list is bigger than the specified 'maxSize'
*/
public static <T> List<T> subList(List<T> base, int maxSize) {
if(maxSize<base.size())
return base.subList(0,maxSize);
else
return base;
}
/**
* Computes the hyperlink to actions, to handle the situation when the {@link Action#getUrlName()}
* returns absolute URL.
*/
public static String getActionUrl(String itUrl,Action action) {
String urlName = action.getUrlName();
if(urlName==null) return null; // to avoid NPE and fail to render the whole page
if(SCHEME.matcher(urlName).matches())
return urlName; // absolute URL
if(urlName.startsWith("/"))
return Stapler.getCurrentRequest().getContextPath()+urlName;
else
// relative URL name
return Stapler.getCurrentRequest().getContextPath()+'/'+itUrl+urlName;
}
/**
* Escapes the character unsafe for e-mail address.
* See http://en.wikipedia.org/wiki/E-mail_address for the details,
* but here the vocabulary is even more restricted.
*/
public static String toEmailSafeString(String projectName) {
// TODO: escape non-ASCII characters
StringBuilder buf = new StringBuilder(projectName.length());
for( int i=0; i<projectName.length(); i++ ) {
char ch = projectName.charAt(i);
if(('a'<=ch && ch<='z')
|| ('z'<=ch && ch<='Z')
|| ('0'<=ch && ch<='9')
|| "-_.".indexOf(ch)>=0)
buf.append(ch);
else
buf.append('_'); // escape
}
return projectName;
}
public String getSystemProperty(String key) {
return System.getProperty(key);
}
/**
* Obtains the host name of the Hudson server that clients can use to talk back to.
* <p>
* This is primarily used in <tt>slave-agent.jnlp.jelly</tt> to specify the destination
* that the slaves talk to.
*/
public String getServerName() {
// Try to infer this from the configured root URL.
// This makes it work correctly when Hudson runs behind a reverse proxy.
String url = Hudson.getInstance().getRootUrl();
try {
if(url!=null) {
String host = new URL(url).getHost();
if(host!=null)
return host;
}
} catch (MalformedURLException e) {
// fall back to HTTP request
}
return Stapler.getCurrentRequest().getServerName();
}
/**
* Determines the form validation check URL. See textbox.jelly
*/
public String getCheckUrl(String userDefined, Object descriptor, String field) {
if(userDefined!=null || field==null) return userDefined;
if (descriptor instanceof Descriptor) {
Descriptor d = (Descriptor) descriptor;
return d.getCheckUrl(field);
}
return null;
}
/**
* If the given href link is matching the current page, return true.
*
* Used in <tt>task.jelly</tt> to decide if the page should be highlighted.
*/
public boolean hyperlinkMatchesCurrentPage(String href) throws UnsupportedEncodingException {
String url = Stapler.getCurrentRequest().getRequestURL().toString();
if (href == null || href.length() <= 1) return ".".equals(href) && url.endsWith("/");
url = URLDecoder.decode(url,"UTF-8");
href = URLDecoder.decode(href,"UTF-8");
if (url.endsWith("/")) url = url.substring(0, url.length() - 1);
if (href.endsWith("/")) href = href.substring(0, href.length() - 1);
return url.endsWith(href);
}
public <T> List<T> singletonList(T t) {
return Collections.singletonList(t);
}
/**
* Gets all the {@link PageDecorator}s.
*/
public static List<PageDecorator> getPageDecorators() {
// this method may be called to render start up errors, at which point Hudson doesn't exist yet. see HUDSON-3608
if(Hudson.getInstance()==null) return Collections.emptyList();
return PageDecorator.all();
}
public static List<Descriptor<Cloud>> getCloudDescriptors() {
return Cloud.all();
}
/**
* Prepend a prefix only when there's the specified body.
*/
public String prepend(String prefix, String body) {
if(body!=null && body.length()>0)
return prefix+body;
return body;
}
public static List<Descriptor<CrumbIssuer>> getCrumbIssuerDescriptors() {
return CrumbIssuer.all();
}
public static String getCrumb(StaplerRequest req) {
Hudson h = Hudson.getInstance();
CrumbIssuer issuer = h != null ? h.getCrumbIssuer() : null;
return issuer != null ? issuer.getCrumb(req) : "";
}
public static String getCrumbRequestField() {
Hudson h = Hudson.getInstance();
CrumbIssuer issuer = h != null ? h.getCrumbIssuer() : null;
return issuer != null ? issuer.getDescriptor().getCrumbRequestField() : "";
}
public static Date getCurrentTime() {
return new Date();
}
/**
* Generate a series of <script> tags to include <tt>script.js</tt>
* from {@link ConsoleAnnotatorFactory}s and {@link ConsoleAnnotationDescriptor}s.
*/
public static String generateConsoleAnnotationScriptAndStylesheet() {
String cp = Stapler.getCurrentRequest().getContextPath();
StringBuilder buf = new StringBuilder();
for (ConsoleAnnotatorFactory f : ConsoleAnnotatorFactory.all()) {
String path = cp + "/extensionList/" + ConsoleAnnotatorFactory.class.getName() + "/" + f.getClass().getName();
if (f.hasScript())
buf.append("<script src='"+path+"/script.js'></script>");
if (f.hasStylesheet())
buf.append("<link rel='stylesheet' type='text/css' href='"+path+"/style.css' />");
}
for (ConsoleAnnotationDescriptor d : ConsoleAnnotationDescriptor.all()) {
String path = cp+"/descriptor/"+d.clazz.getName();
if (d.hasScript())
buf.append("<script src='"+path+"/script.js'></script>");
if (d.hasStylesheet())
buf.append("<link rel='stylesheet' type='text/css' href='"+path+"/style.css' />");
}
return buf.toString();
}
/**
* Work around for bug 6935026.
*/
public List<String> getLoggerNames() {
while (true) {
try {
List<String> r = new ArrayList<String>();
Enumeration<String> e = LogManager.getLogManager().getLoggerNames();
while (e.hasMoreElements())
r.add(e.nextElement());
return r;
} catch (ConcurrentModificationException e) {
// retry
}
}
}
/**
* Used by <f:password/> so that we send an encrypted value to the client.
*/
public String getPasswordValue(Object o) {
if (o==null) return null;
if (o instanceof Secret) return ((Secret)o).getEncryptedValue();
return o.toString();
}
public List filterDescriptors(Object context, Iterable descriptors) {
return DescriptorVisibilityFilter.apply(context,descriptors);
}
private static final Pattern SCHEME = Pattern.compile("[a-z]+://.+");
/**
* Returns true if we are running unit tests.
*/
public static boolean getIsUnitTest() {
return Main.isUnitTest;
}
/**
* Returns {@code true} if the {@link Run#ARTIFACTS} permission is enabled,
* {@code false} otherwise.
*
* <p>When the {@link Run#ARTIFACTS} permission is not turned on using the
* {@code hudson.security.ArtifactsPermission}, this permission must not be
* considered to be set to {@code false} for every user. It must rather be
* like if the permission doesn't exist at all (which means that every user
* has to have an access to the artifacts but the permission can't be
* configured in the security screen). Got it?</p>
*/
public static boolean isArtifactsPermissionEnabled() {
return Boolean.getBoolean("hudson.security.ArtifactsPermission");
}
}
|
{
"content_hash": "eeb560f886bcb8933a2f91d138331f4c",
"timestamp": "",
"source": "github",
"line_count": 1283,
"max_line_length": 153,
"avg_line_length": 34.87217459080281,
"alnum_prop": 0.6050602355781051,
"repo_name": "stefanbrausch/hudson-main",
"id": "5a32244e9b813c71534444dcd20f087fe7d40cc9",
"size": "45995",
"binary": false,
"copies": "2",
"ref": "refs/heads/master",
"path": "core/src/main/java/hudson/Functions.java",
"mode": "33188",
"license": "mit",
"language": [
{
"name": "C",
"bytes": "2091"
},
{
"name": "Groovy",
"bytes": "47333"
},
{
"name": "Java",
"bytes": "5916646"
},
{
"name": "JavaScript",
"bytes": "105871"
},
{
"name": "Perl",
"bytes": "13335"
},
{
"name": "Python",
"bytes": "2161"
},
{
"name": "Ruby",
"bytes": "4152"
},
{
"name": "Shell",
"bytes": "15507"
}
],
"symlink_target": ""
}
|
void Test_Compatibility_AMService(struct am_device *apple, SDMMD_AMDeviceRef sdm);
void Test_Functionality_AMService(struct am_device *apple, SDMMD_AMDeviceRef sdm);
SDM_MD_TestResponse SDM_MD_Test_AMDeviceStartService(struct am_device *apple, SDMMD_AMDeviceRef sdm, char *type);
SDM_MD_TestResponse SDM_MD_Test_AMDeviceSecureStartService(struct am_device *apple, SDMMD_AMDeviceRef sdm, char *type);
SDM_MD_TestResponse SDM_MD_Test_AMDeviceLookupApplications(struct am_device *apple, SDMMD_AMDeviceRef sdm, char *type);
#endif
|
{
"content_hash": "8cb0e07b956fac2e7e4211abbe68a72a",
"timestamp": "",
"source": "github",
"line_count": 8,
"max_line_length": 119,
"avg_line_length": 66.125,
"alnum_prop": 0.8109640831758034,
"repo_name": "king3g/SDMMobileDevice-master",
"id": "712b3d37ae77923ccd78637605c44a0210a6a5a0",
"size": "776",
"binary": false,
"copies": "1",
"ref": "refs/heads/master",
"path": "SDM_MD_Tests/SDM_MD_Tests/test_AMService.h",
"mode": "33188",
"license": "bsd-3-clause",
"language": [
{
"name": "C",
"bytes": "543985"
},
{
"name": "C++",
"bytes": "41555"
},
{
"name": "Objective-C",
"bytes": "77435"
}
],
"symlink_target": ""
}
|
/**
* System configuration for Angular samples
* Adjust as necessary for your application needs.
*/
(function (global) {
System.config({
paths: {
// paths serve as alias
'npm:': 'node_modules/'
},
// map tells the System loader where to look for things
map: {
// our app is within the app folder
app: 'app',
// angular bundles
'@angular/core': 'npm:@angular/core/bundles/core.umd.js',
'@angular/common': 'npm:@angular/common/bundles/common.umd.js',
'@angular/compiler': 'npm:@angular/compiler/bundles/compiler.umd.js',
'@angular/platform-browser': 'npm:@angular/platform-browser/bundles/platform-browser.umd.js',
'@angular/platform-browser-dynamic': 'npm:@angular/platform-browser-dynamic/bundles/platform-browser-dynamic.umd.js',
'@angular/http': 'npm:@angular/http/bundles/http.umd.js',
'@angular/router': 'npm:@angular/router/bundles/router.umd.js',
'@angular/forms': 'npm:@angular/forms/bundles/forms.umd.js',
'@angular/upgrade': 'npm:@angular/upgrade/bundles/upgrade.umd.js',
// other libraries
'rxjs': 'npm:rxjs',
'angular-in-memory-web-api': 'npm:angular-in-memory-web-api/bundles/in-memory-web-api.umd.js',
'angular2-toaster': 'npm:angular2-toaster/bundles/angular2-toaster.umd.js',
'angular2-recaptcha': 'node_modules/angular2-recaptcha'
},
// packages tells the System loader how to load when no filename and/or no extension
packages: {
app: {
main: './main.js',
defaultExtension: 'js'
},
rxjs: {
defaultExtension: 'js'
}
,
'angular2-recaptcha': {defaultExtension: 'js', main: 'index'}
}
});
})(this);
|
{
"content_hash": "a6a2deadee58c856c812f147f57cad0c",
"timestamp": "",
"source": "github",
"line_count": 47,
"max_line_length": 129,
"avg_line_length": 42.234042553191486,
"alnum_prop": 0.5536523929471032,
"repo_name": "GipsyDevs/ttl3",
"id": "c09e3cdba9c759de2404c8d1a212ac9888dd812e",
"size": "1985",
"binary": false,
"copies": "1",
"ref": "refs/heads/master",
"path": "systemjs.config.js",
"mode": "33188",
"license": "mit",
"language": [
{
"name": "CSS",
"bytes": "688374"
},
{
"name": "HTML",
"bytes": "59066"
},
{
"name": "JavaScript",
"bytes": "26660"
},
{
"name": "TypeScript",
"bytes": "24367"
}
],
"symlink_target": ""
}
|
<component name="libraryTable">
<library name="ShareSDK-Facebook-2.6.2">
<CLASSES>
<root url="jar://$PROJECT_DIR$/translation/libs/ShareSDK-Facebook-2.6.2.jar!/" />
</CLASSES>
<JAVADOC />
<SOURCES />
</library>
</component>
|
{
"content_hash": "7ee81e43499e9ebf6ce50c2516e8f09c",
"timestamp": "",
"source": "github",
"line_count": 9,
"max_line_length": 87,
"avg_line_length": 27.666666666666668,
"alnum_prop": 0.6265060240963856,
"repo_name": "Chenantao/Translation",
"id": "48f82b4c5d77bafdef16a9df1e2746c75bbc305e",
"size": "249",
"binary": false,
"copies": "1",
"ref": "refs/heads/master",
"path": ".idea/libraries/ShareSDK_Facebook_2_6_2.xml",
"mode": "33188",
"license": "apache-2.0",
"language": [
{
"name": "C",
"bytes": "1"
},
{
"name": "C++",
"bytes": "1"
},
{
"name": "Java",
"bytes": "928402"
},
{
"name": "JavaScript",
"bytes": "373480"
}
],
"symlink_target": ""
}
|
class TestJob < ActiveRecord::Base
# The smaller this number is, the less new runs will be needed to "balance"
# the avg_worker_command_run_seconds.
NUMBER_OF_SIGNIFICANT_RUNS = 3
# For redis_live_update_resource_key
include Models::RedisLiveUpdates
belongs_to :test_run, inverse_of: :test_jobs
validates :test_run, presence: true
before_validation :set_completed_at
# avg_worker_command_run_seconds is the cost prediction for the next runs
# old_avg_worker_command_run_seconds is the cost prediction on which we based
# the "chunking" for this run
before_validation :set_old_avg_worker_command_run_seconds,
if: ->{ new_record? }
before_validation :set_avg_worker_command_run_seconds,
if: ->{ worker_command_run_seconds_changed? }
after_commit :update_test_run_status,
if: -> { previous_changes.has_key?('status') || previous_changes.has_key?('created_at') },
on: [:create, :update]
scope :queued, -> { where(status: TestStatus::QUEUED) }
scope :running, -> { where(status: TestStatus::RUNNING) }
scope :passed, -> { where(status: TestStatus::PASSED) }
scope :failed, -> { where(status: TestStatus::FAILED) }
scope :error, -> { where(status: TestStatus::ERROR) }
scope :cancelled, -> { where(status: TestStatus::CANCELLED) }
def worker_uuid_short
worker_uuid.to_s[0..7]
end
# Converts seconds since epoch to datetime
# The UTC timestamp recorded when Katana sent this job to the worker,
# expressed in seconds since epoch.
def sent_at_seconds_since_epoch=(val)
self.sent_at= Time.at(val.to_i).utc
end
def status
TestStatus.new(read_attribute(:status))
end
# Returns the total time it took for a TestJob to run, from a user's
# perspective. Therefore, we consider as total running time for a job the
# duration between the point the job 'left' the server and the point that its
# result was reported back, minus the time spent in the worker queue (as this
# is considered 'waiting' time).
#
# @return [Integer]
def total_running_time
if reported_at && sent_at && worker_in_queue_seconds
(reported_at - sent_at) - worker_in_queue_seconds
end
end
def serialized_job
ActiveModel::SerializableResource.new(
self, serializer: InternalTestJobsSerializer).serializable_hash
end
def retry!
self.result = ''
self.status = TestStatus::QUEUED
self.test_errors = 0
self.failures = 0
self.count = 0
self.assertions = 0
self.skips = 0
self.worker_uuid = nil
self.rerun = true
save!
end
# test_run.most_relevant_run => matching command job
# NOTE: Memoizes value (even when value is nil)
def most_relevant_job
if @most_relevant_job || @most_relevant_job_already_searched
return @most_relevant_job
end
@most_relevant_job_already_searched = true
unless (test_run && (most_relevant_run = test_run.most_relevant_run))
return nil
end
@most_relevant_job =
most_relevant_run.test_jobs.detect{|j| j.command == command}
end
# We store the cost prediction for this test job on
# old_avg_worker_command_run_seconds column on new records.
def set_old_avg_worker_command_run_seconds
if old_avg_worker_command_run_seconds.nil? && most_relevant_job &&
most_relevant_job.avg_worker_command_run_seconds.present?
self.old_avg_worker_command_run_seconds =
most_relevant_job.avg_worker_command_run_seconds
end
end
private
def set_completed_at
if completed_at.nil? && sent_at && worker_in_queue_seconds && worker_command_run_seconds
self.completed_at=
sent_at + (worker_in_queue_seconds + worker_command_run_seconds).round.seconds
end
end
# We store the cost prediction for the next runs on
# avg_worker_command_run_seconds column when the worker_command_run_seconds
# column is set. This is the old_avg_worker_command_run_seconds updated with
# the actual cost of this job.
def set_avg_worker_command_run_seconds
cost_prediction =
if avg_worker_command_run_seconds.present?
avg_worker_command_run_seconds # use the existing if already set
elsif old_avg_worker_command_run_seconds.present?
old_avg_worker_command_run_seconds # use the old cost prediction if already set
elsif most_relevant_job && most_relevant_job.avg_worker_command_run_seconds.present?
# find the old prediction if not already set.
# This should not happen since the set_old_avg_worker_command_run_seconds
# hook is run first
most_relevant_job.avg_worker_command_run_seconds
end
self.avg_worker_command_run_seconds =
# update the prediction when the actual cost is available
if cost_prediction.present? && worker_command_run_seconds.present?
((cost_prediction * NUMBER_OF_SIGNIFICANT_RUNS) +
worker_command_run_seconds) / (NUMBER_OF_SIGNIFICANT_RUNS + 1).to_d
elsif cost_prediction.present?
cost_prediction # use the old prediction if worker_command_run_seconds is set to nil
elsif worker_command_run_seconds.present?
worker_command_run_seconds # use the actual cost if no prediction exists
end
end
def update_test_run_status
test_run.update_status && test_run.save!
Broadcaster.publish(test_run.redis_live_update_resource_key,
{ test_job: serialized_job,
event: 'TestJobUpdate' })
Broadcaster.publish(test_run.redis_live_update_resource_key,
{ test_run: test_run.serialized_run,
event: 'TestRunUpdate' })
true # don't break callback chain
end
end
|
{
"content_hash": "2d414fbf3a0bc2329563ea7a76d348b7",
"timestamp": "",
"source": "github",
"line_count": 153,
"max_line_length": 94,
"avg_line_length": 36.59477124183007,
"alnum_prop": 0.6945883193427398,
"repo_name": "testributor/katana",
"id": "dcb6da8265a7ee696d87fd95b3b7ea55339e9c2f",
"size": "6148",
"binary": false,
"copies": "1",
"ref": "refs/heads/master",
"path": "app/models/test_job.rb",
"mode": "33188",
"license": "mit",
"language": [
{
"name": "CSS",
"bytes": "16085"
},
{
"name": "CoffeeScript",
"bytes": "9325"
},
{
"name": "HTML",
"bytes": "106114"
},
{
"name": "JavaScript",
"bytes": "25987"
},
{
"name": "Ruby",
"bytes": "516348"
},
{
"name": "Shell",
"bytes": "1264"
}
],
"symlink_target": ""
}
|
package biz.paluch.logging.jboss.extension;
/**
* @author <a href="mailto:mpaluch@paluch.biz">Mark Paluch</a>
* @since 29.07.14 21:05
*/
public interface ModelConstants {
/**
* The name of our subsystem within the model.
*/
public static final String SUBSYSTEM_NAME = "logstash-gelf-subsystem";
public static final String DATENPUMPE = "datenpumpe";
public static final String SENDER = "sender";
public static final String HOST = "host";
public static final String PORT = "port";
public static final String JNDI_NAME = "jndi-name";
}
|
{
"content_hash": "78467a70883dc2455b91f261d796e6a7",
"timestamp": "",
"source": "github",
"line_count": 19,
"max_line_length": 74,
"avg_line_length": 30.36842105263158,
"alnum_prop": 0.6863084922010398,
"repo_name": "mp911de/logstash-gelf-subsystem",
"id": "12201fc173abe0fd3db86370ebe879d6892aa5d2",
"size": "577",
"binary": false,
"copies": "1",
"ref": "refs/heads/main",
"path": "src/main/java/biz/paluch/logging/jboss/extension/ModelConstants.java",
"mode": "33188",
"license": "mit",
"language": [
{
"name": "Java",
"bytes": "46932"
}
],
"symlink_target": ""
}
|
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>qarith-stern-brocot: Not compatible 👼</title>
<link rel="shortcut icon" type="image/png" href="../../../../../favicon.png" />
<link href="../../../../../bootstrap.min.css" rel="stylesheet">
<link href="../../../../../bootstrap-custom.css" rel="stylesheet">
<link href="//maxcdn.bootstrapcdn.com/font-awesome/4.2.0/css/font-awesome.min.css" rel="stylesheet">
<script src="../../../../../moment.min.js"></script>
<!-- HTML5 Shim and Respond.js IE8 support of HTML5 elements and media queries -->
<!-- WARNING: Respond.js doesn't work if you view the page via file:// -->
<!--[if lt IE 9]>
<script src="https://oss.maxcdn.com/html5shiv/3.7.2/html5shiv.min.js"></script>
<script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script>
<![endif]-->
</head>
<body>
<div class="container">
<div class="navbar navbar-default" role="navigation">
<div class="container-fluid">
<div class="navbar-header">
<a class="navbar-brand" href="../../../../.."><i class="fa fa-lg fa-flag-checkered"></i> Coq bench</a>
</div>
<div id="navbar" class="collapse navbar-collapse">
<ul class="nav navbar-nav">
<li><a href="../..">clean / released</a></li>
<li class="active"><a href="">8.5.0~camlp4 / qarith-stern-brocot - 8.8.0</a></li>
</ul>
</div>
</div>
</div>
<div class="article">
<div class="row">
<div class="col-md-12">
<a href="../..">« Up</a>
<h1>
qarith-stern-brocot
<small>
8.8.0
<span class="label label-info">Not compatible 👼</span>
</small>
</h1>
<p>📅 <em><script>document.write(moment("2022-10-15 10:36:52 +0000", "YYYY-MM-DD HH:mm:ss Z").fromNow());</script> (2022-10-15 10:36:52 UTC)</em><p>
<h2>Context</h2>
<pre># Packages matching: installed
# Name # Installed # Synopsis
base-bigarray base
base-num base Num library distributed with the OCaml compiler
base-threads base
base-unix base
camlp4 4.03+1 Camlp4 is a system for writing extensible parsers for programming languages
conf-findutils 1 Virtual package relying on findutils
conf-which 1 Virtual package relying on which
coq 8.5.0~camlp4 Formal proof management system
num 0 The Num library for arbitrary-precision integer and rational arithmetic
ocaml 4.03.0 The OCaml compiler (virtual package)
ocaml-base-compiler 4.03.0 Official 4.03.0 release
ocaml-config 1 OCaml Switch Configuration
ocamlbuild 0.14.2 OCamlbuild is a build system with builtin rules to easily build most OCaml projects
# opam file:
opam-version: "2.0"
maintainer: "Hugo.Herbelin@inria.fr"
homepage: "https://github.com/coq-community/qarith-stern-brocot"
license: "LGPL 2.1"
build: [make "-j%{jobs}%"]
install: [make "install"]
remove: ["rm" "-R" "%{lib}%/coq/user-contrib/QArithSternBrocot"]
depends: [
"ocaml"
"coq" {>= "8.8" & < "8.9~"}
]
tags: [ "keyword: rational numbers" "keyword: arithmetic" "keyword: field tactic" "keyword: binary lists" "keyword: Stern-Brocot" "category: Mathematics/Arithmetic and Number Theory/Rational numbers" "category: Miscellaneous/Extracted Programs/Arithmetic" "date: 2003" ]
authors: [ "Milad Niqui" "Yves Bertot" ]
bug-reports: "https://github.com/coq-community/qarith-stern-brocot/issues"
dev-repo: "git+https://github.com/coq-community/qarith-stern-brocot.git"
synopsis: "Binary Rational Numbers"
description:
"Developement of rational numbers as finite binary lists and defining field operations on them in two different ways: strict and lazy."
flags: light-uninstall
url {
src:
"https://github.com/coq-community/qarith-stern-brocot/archive/v8.8.0.tar.gz"
checksum: "md5=31f8296c4a2b43b3b58702ead06fa822"
}
</pre>
<h2>Lint</h2>
<dl class="dl-horizontal">
<dt>Command</dt>
<dd><code>true</code></dd>
<dt>Return code</dt>
<dd>0</dd>
</dl>
<h2>Dry install 🏜️</h2>
<p>Dry install with the current Coq version:</p>
<dl class="dl-horizontal">
<dt>Command</dt>
<dd><code>opam install -y --show-action coq-qarith-stern-brocot.8.8.0 coq.8.5.0~camlp4</code></dd>
<dt>Return code</dt>
<dd>5120</dd>
<dt>Output</dt>
<dd><pre>[NOTE] Package coq is already installed (current version is 8.5.0~camlp4).
The following dependencies couldn't be met:
- coq-qarith-stern-brocot -> coq >= 8.8 -> ocaml >= 4.05.0
base of this switch (use `--unlock-base' to force)
Your request can't be satisfied:
- No available version of coq satisfies the constraints
No solution found, exiting
</pre></dd>
</dl>
<p>Dry install without Coq/switch base, to test if the problem was incompatibility with the current Coq/OCaml version:</p>
<dl class="dl-horizontal">
<dt>Command</dt>
<dd><code>opam remove -y coq; opam install -y --show-action --unlock-base coq-qarith-stern-brocot.8.8.0</code></dd>
<dt>Return code</dt>
<dd>0</dd>
</dl>
<h2>Install dependencies</h2>
<dl class="dl-horizontal">
<dt>Command</dt>
<dd><code>true</code></dd>
<dt>Return code</dt>
<dd>0</dd>
<dt>Duration</dt>
<dd>0 s</dd>
</dl>
<h2>Install 🚀</h2>
<dl class="dl-horizontal">
<dt>Command</dt>
<dd><code>true</code></dd>
<dt>Return code</dt>
<dd>0</dd>
<dt>Duration</dt>
<dd>0 s</dd>
</dl>
<h2>Installation size</h2>
<p>No files were installed.</p>
<h2>Uninstall 🧹</h2>
<dl class="dl-horizontal">
<dt>Command</dt>
<dd><code>true</code></dd>
<dt>Return code</dt>
<dd>0</dd>
<dt>Missing removes</dt>
<dd>
none
</dd>
<dt>Wrong removes</dt>
<dd>
none
</dd>
</dl>
</div>
</div>
</div>
<hr/>
<div class="footer">
<p class="text-center">
Sources are on <a href="https://github.com/coq-bench">GitHub</a> © Guillaume Claret 🐣
</p>
</div>
</div>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js"></script>
<script src="../../../../../bootstrap.min.js"></script>
</body>
</html>
|
{
"content_hash": "ff817e1dfcc5ab120c716e4da28aa283",
"timestamp": "",
"source": "github",
"line_count": 167,
"max_line_length": 350,
"avg_line_length": 44.62874251497006,
"alnum_prop": 0.5596404132564068,
"repo_name": "coq-bench/coq-bench.github.io",
"id": "9c2a23c99cf4e58ec0a4703ea34c0f110d400235",
"size": "7478",
"binary": false,
"copies": "1",
"ref": "refs/heads/master",
"path": "clean/Linux-x86_64-4.03.0-2.0.5/released/8.5.0~camlp4/qarith-stern-brocot/8.8.0.html",
"mode": "33188",
"license": "mit",
"language": [],
"symlink_target": ""
}
|
package org.skfiy.typhon;
import com.alibaba.fastjson.JSON;
import java.util.HashMap;
import java.util.Map;
/**
*
* @author Kevin Zou <kevinz@skfiy.org>
*/
public class Test {
public static void main(String[] args) {
Map<Integer, Integer> map = new HashMap<>();
map.put(1, 2);
map.put(3, 4);
System.out.println(JSON.toJSONString(map));
}
}
|
{
"content_hash": "dc3861c40346e6c7a00690c9345701d2",
"timestamp": "",
"source": "github",
"line_count": 21,
"max_line_length": 52,
"avg_line_length": 18.857142857142858,
"alnum_prop": 0.6085858585858586,
"repo_name": "weghst/typhon",
"id": "eb7f2471539739ecded703373bb7e0fbe8d0e4b3",
"size": "1007",
"binary": false,
"copies": "1",
"ref": "refs/heads/master",
"path": "typhon-kernel/src/main/java/org/skfiy/typhon/Test.java",
"mode": "33188",
"license": "apache-2.0",
"language": [
{
"name": "Batchfile",
"bytes": "22913"
},
{
"name": "Java",
"bytes": "2965160"
},
{
"name": "JavaScript",
"bytes": "62045"
},
{
"name": "Shell",
"bytes": "23312"
}
],
"symlink_target": ""
}
|
var Mustache = require('mustache');
function StringTemplate() {
this.functions = {};
this.setFunction('reldate', function(text) {
var
now = new Date(),
ref = Date.parse(text),
day = 60*60*24*1000,
diff, days;
if (isNaN(ref)) {
return '<invalid date: "' + text + '">';
}
diff = now - ref;
days = parseInt(diff / day, 10);
switch (days) {
case 0: return 'today';
case 1: return 'yesterday';
case -1: return 'tomorrow';
default: return (days > 0) ? (days + ' days ago') : ('in ' + (-days) + ' days');
}
});
}
StringTemplate.prototype = {
setFunction: function(sectionName, callback) {
this.functions[sectionName] = function() { return callback; };
return this;
},
unsetFunction: function(sectionName) {
if (sectionName in this.functions) {
delete this.functions[sectionName];
}
return this;
},
render: function(string, view, functions) {
var viewData = {}, key;
// nothing defined => use preconfigured functions
if (typeof functions === 'undefined' || functions === true) {
viewData = this.functions;
}
// custom list of functions given => completely override preconfigured functions
else if (typeof functions === 'object') {
for (key in functions) {
if (functions.hasOwnProperty(key)) {
this.viewData[key] = function() { return functions[key]; };
}
}
}
// the view overrides any functions
for (key in view) {
if (view.hasOwnProperty(key)) {
this.viewData[key] = view[key];
}
}
return Mustache.render(string, viewData);
}
};
module.exports = StringTemplate;
|
{
"content_hash": "e7c96253d759dbe6a96d1aa8d2daf9e5",
"timestamp": "",
"source": "github",
"line_count": 74,
"max_line_length": 83,
"avg_line_length": 21.5,
"alnum_prop": 0.627906976744186,
"repo_name": "sgt-kabukiman/kabukibot-legacy",
"id": "abd063266c9de762d0b0c1c8ad0e4a39acb2d0a7",
"size": "1867",
"binary": false,
"copies": "1",
"ref": "refs/heads/master",
"path": "lib/StringTemplate.js",
"mode": "33188",
"license": "mit",
"language": [
{
"name": "JavaScript",
"bytes": "227630"
}
],
"symlink_target": ""
}
|
"""Tests for `tf.data.experimental.dense_to_sparse_batch()."""
from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
import numpy as np
from tensorflow.python.data.experimental.ops import batching
from tensorflow.python.data.kernel_tests import test_base
from tensorflow.python.data.ops import dataset_ops
from tensorflow.python.framework import dtypes
from tensorflow.python.framework import errors
from tensorflow.python.framework import test_util
from tensorflow.python.ops import array_ops
from tensorflow.python.platform import test
class DenseToSparseBatchTest(test_base.DatasetTestBase):
@test_util.run_deprecated_v1
def testDenseToSparseBatchDataset(self):
components = np.random.randint(12, size=(100,)).astype(np.int32)
iterator = dataset_ops.make_initializable_iterator(
dataset_ops.Dataset.from_tensor_slices(components)
.map(lambda x: array_ops.fill([x], x)).apply(
batching.dense_to_sparse_batch(4, [12])))
init_op = iterator.initializer
get_next = iterator.get_next()
with self.cached_session() as sess:
self.evaluate(init_op)
for start in range(0, len(components), 4):
results = self.evaluate(get_next)
self.assertAllEqual([[i, j]
for i, c in enumerate(components[start:start + 4])
for j in range(c)], results.indices)
self.assertAllEqual(
[c for c in components[start:start + 4] for _ in range(c)],
results.values)
self.assertAllEqual([min(4,
len(components) - start), 12],
results.dense_shape)
with self.assertRaises(errors.OutOfRangeError):
self.evaluate(get_next)
@test_util.run_deprecated_v1
def testDenseToSparseBatchDatasetWithUnknownShape(self):
components = np.random.randint(5, size=(40,)).astype(np.int32)
iterator = dataset_ops.make_initializable_iterator(
dataset_ops.Dataset.from_tensor_slices(components)
.map(lambda x: array_ops.fill([x, x], x)).apply(
batching.dense_to_sparse_batch(4, [5, None])))
init_op = iterator.initializer
get_next = iterator.get_next()
with self.cached_session() as sess:
self.evaluate(init_op)
for start in range(0, len(components), 4):
results = self.evaluate(get_next)
self.assertAllEqual([[i, j, z]
for i, c in enumerate(components[start:start + 4])
for j in range(c)
for z in range(c)], results.indices)
self.assertAllEqual([
c
for c in components[start:start + 4] for _ in range(c)
for _ in range(c)
], results.values)
self.assertAllEqual([
min(4,
len(components) - start), 5,
np.max(components[start:start + 4])
], results.dense_shape)
with self.assertRaises(errors.OutOfRangeError):
self.evaluate(get_next)
@test_util.run_deprecated_v1
def testDenseToSparseBatchDatasetWithInvalidShape(self):
input_tensor = array_ops.constant([[1]])
with self.assertRaisesRegexp(ValueError, "Dimension -2 must be >= 0"):
dataset_ops.make_initializable_iterator(
dataset_ops.Dataset.from_tensors(input_tensor).apply(
batching.dense_to_sparse_batch(4, [-2])))
@test_util.run_deprecated_v1
def testDenseToSparseBatchDatasetShapeErrors(self):
input_tensor = array_ops.placeholder(dtypes.int32)
iterator = dataset_ops.make_initializable_iterator(
dataset_ops.Dataset.from_tensors(input_tensor).apply(
batching.dense_to_sparse_batch(4, [12])))
init_op = iterator.initializer
get_next = iterator.get_next()
with self.cached_session() as sess:
# Initialize with an input tensor of incompatible rank.
sess.run(init_op, feed_dict={input_tensor: [[1]]})
with self.assertRaisesRegexp(errors.InvalidArgumentError,
"incompatible with the row shape"):
self.evaluate(get_next)
# Initialize with an input tensor that is larger than `row_shape`.
sess.run(init_op, feed_dict={input_tensor: range(13)})
with self.assertRaisesRegexp(errors.DataLossError,
"larger than the row shape"):
self.evaluate(get_next)
if __name__ == "__main__":
test.main()
|
{
"content_hash": "bbf690410040b5c6147b1022e78e7175",
"timestamp": "",
"source": "github",
"line_count": 113,
"max_line_length": 79,
"avg_line_length": 39.84070796460177,
"alnum_prop": 0.6390493114171479,
"repo_name": "asimshankar/tensorflow",
"id": "22e057a2848fd154de0ad356f2238fb2028cd647",
"size": "5191",
"binary": false,
"copies": "1",
"ref": "refs/heads/master",
"path": "tensorflow/python/data/experimental/kernel_tests/dense_to_sparse_batch_test.py",
"mode": "33188",
"license": "apache-2.0",
"language": [
{
"name": "Assembly",
"bytes": "4882"
},
{
"name": "Batchfile",
"bytes": "10132"
},
{
"name": "C",
"bytes": "490070"
},
{
"name": "C#",
"bytes": "8446"
},
{
"name": "C++",
"bytes": "52677142"
},
{
"name": "CMake",
"bytes": "207176"
},
{
"name": "Dockerfile",
"bytes": "39454"
},
{
"name": "Go",
"bytes": "1290930"
},
{
"name": "HTML",
"bytes": "4680032"
},
{
"name": "Java",
"bytes": "890529"
},
{
"name": "Jupyter Notebook",
"bytes": "2618412"
},
{
"name": "LLVM",
"bytes": "6536"
},
{
"name": "Makefile",
"bytes": "68402"
},
{
"name": "Objective-C",
"bytes": "16140"
},
{
"name": "Objective-C++",
"bytes": "102518"
},
{
"name": "PHP",
"bytes": "5172"
},
{
"name": "Pascal",
"bytes": "221"
},
{
"name": "Perl",
"bytes": "7536"
},
{
"name": "PureBasic",
"bytes": "25356"
},
{
"name": "Python",
"bytes": "43038983"
},
{
"name": "RobotFramework",
"bytes": "891"
},
{
"name": "Ruby",
"bytes": "838"
},
{
"name": "Shell",
"bytes": "497659"
},
{
"name": "Smarty",
"bytes": "6976"
}
],
"symlink_target": ""
}
|
<!DOCTYPE html>
<html>
<head>
<meta name="description" content="Udacity Responsive Images course project" />
<meta name="author" content="//samdutton.com">
<meta name="viewport" content="width=device-width, minimum-scale=1.0, initial-scale=1.0, user-scalable=yes">
<meta charset="utf-8">
<meta itemprop="name" content="Udacity Responsive Images course project">
<meta itemprop="image" content="images/icon.png">
<meta name="mobile-web-app-capable" content="yes">
<meta id="theme-color" name="theme-color" content="#307699">
<base target="_blank">
<title>My responsive blog: picture story</title>
<link rel="icon" sizes="192x192" href="/images/icon.png">
<link rel="stylesheet" href="css/main.css" />
<link rel="stylesheet" href="http://weloveiconfonts.com/api/?family=zocial" />
<!-- loads the Udacity Feedback extension -->
<meta name="udacity-grader" content="http://udacity.github.io/responsive-images/project/project-grader.json" unit-tests="http://udacity.github.io/responsive-images/project/project-grader.js">
</head>
<body>
<header>
<a href="//github.com/udacity/responsive-images/" title="Home page for course examples">
<svg id="logo" xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24">
<title>Responsive logo</title>
<path d="M20 8.69V4h-4.69L12 .69 8.69 4H4v4.69L.69 12 4 15.31V20h4.69L12 23.31 15.31 20H20v-4.69L23.31 12 20 8.69zM12 18c-3.31 0-6-2.69-6-6s2.69-6 6-6 6 2.69 6 6-2.69 6-6 6zm0-10c-2.21 0-4 1.79-4 4s1.79 4 4 4 4-1.79 4-4-1.79-4-4-4z"></path>
</svg>
</a>
</header>
<h1>My responsive blog</h1>
<article>
<img src="images/still_life-1600_large_2x.jpg" alt="">
<h2>My story</h2>
<p>I love cheese, especially manchego swiss. ☺ Fromage queso jarlsberg cheesy feet emmental cottage cheese camembert de normandie bocconcini. Cottage cheese everyone loves cauliflower cheese rubber cheese squirty cheese halloumi cow fondue. Bocconcini cheese and biscuits everyone loves fondue red leicester st. agur blue cheese rubber cheese ricotta. Cheesy grin mozzarella.</p>
<figure>
<img src="images/horses-1600_large_2x.jpg" alt="">
<figcaption>Horses in Hawaii</figcaption>
</figure>
<p>Bocconcini swiss cut the cheese. Manchego boursin smelly cheese cheesy grin squirty cheese mozzarella cheddar hard cheese. Manchego roquefort camembert de normandie cheese slices mascarpone cow cheesy feet airedale. Port-salut jarlsberg gouda port-salut port-salut cheese on toast.</p>
<p>Manchego cheese strings hard cheese. Say cheese swiss cheese strings squirty cheese mozzarella feta the big cheese halloumi. Cheddar cheese and biscuits cut the cheese queso hard cheese red leicester parmesan st. agur blue cheese. Smelly cheese caerphilly hard cheese cream cheese cream cheese the big cheese feta squirty cheese. Babybel fromage edam lancashire.</p>
<figure>
<img src="images/volt-1600_large_2x.jpg" alt="">
<figcaption>Sign in an old Berlin power station</figcaption>
</figure>
<p>Edam parmesan smelly cheese. Dolcelatte say cheese cheesy feet lancashire cow boursin stinking bishop brie. Stilton cheese strings say cheese pecorino cheeseburger fromage frais cauliflower cheese manchego. St. agur blue cheese ricotta stinking bishop queso camembert de normandie manchego cheese triangles fondue. Gouda.</p>
<figure>
<img src="images/cockatoos-1600_large_2x.jpg" alt="">
<figcaption>Cockatoos</figcaption>
</figure>
<p>Vegan Carles church-key 8-bit, tilde swag hoodie heirloom cray 3 wolf moon. 90's stumptown ugh cred hella. Seitan listicle polaroid, meditation mixtape paleo typewriter pop-up migas kogi chia chillwave mlkshk. Hoodie artisan kitsch tote bag banjo. Cred banh mi Brooklyn, vegan Pinterest polaroid crucifix. Fap Bushwick shabby chic meggings, fanny pack stumptown Schlitz taxidermy pork belly. YOLO blog PBR&B literally, lo-fi Austin ugh hashtag retro cornhole deep v fanny pack fingerstache.</p>
<p>Rubber cheese lancashire stinking bishop. Paneer bocconcini bocconcini melted cheese brie blue castello mascarpone when the cheese comes out everybody's happy. Mozzarella st. agur blue cheese hard cheese smelly cheese gouda ricotta hard cheese cheese and wine. Fromage frais pecorino airedale caerphilly danish fontina everyone loves.</p>
<p>Cheddar the big cheese fromage frais. Stinking bishop dolcelatte cow pecorino who moved my cheese bavarian bergkase cheese slices who moved my cheese. Cheeseburger roquefort cheese and biscuits queso queso smelly cheese roquefort red leicester. Fromage squirty cheese macaroni cheese melted cheese stilton roquefort cheese and biscuits.</p>
<p>St. agur blue cheese cheese and wine say cheese. Goat cottage cheese brie cheese triangles say cheese when the cheese comes out everybody's happy stinking bishop dolcelatte. Parmesan say cheese cream cheese goat cauliflower cheese st. agur blue cheese cheese slices hard cheese. Cheese triangles.</p>
<figure>
<img src="images/postcard-1600_large_2x.jpg" alt="">
<figcaption>French postcard from 25 November 1914</figcaption>
</figure>
<p>Pecorino pepper jack cheesy feet. Smelly cheese cauliflower cheese fromage halloumi cream cheese who moved my cheese fromage fondue. Feta danish fontina cheesy grin mozzarella fromage cheesy grin airedale paneer. Cheddar halloumi cheese and biscuits jarlsberg cheese and biscuits cheese and biscuits squirty cheese.</p>
<figure>
<img src="images/grasshopper-1600_large_2x.jpg" alt="">
<figcaption>Grasshopper on an Akubra hat</figcaption>
</figure>
<p>Babybel cream cheese cheese on toast. Brie fromage swiss cheese and biscuits hard cheese babybel bocconcini brie. Cheesy grin swiss cheese strings paneer lancashire cauliflower cheese cheese on toast caerphilly. Queso queso cheese and wine taleggio mascarpone cheeseburger.</p>
<figure>
<img src="images/sfo-1600_large_2x.jpg" alt="">
<figcaption>Near SFO</figcaption>
</figure>
<p>Say cheese swiss cheesy grin. Cheese on toast queso bocconcini cheeseburger fondue manchego smelly cheese port-salut. Cream cheese cheese and wine airedale cheeseburger chalk and cheese cauliflower cheese fondue smelly cheese. Queso manchego.</p>
<figure>
<img src="images/rosella-1600_large_2x.jpg" alt="">
<figcaption>Australian rosella</figcaption>
</figure>
<p>Paneer st. agur blue cheese bocconcini. The big cheese chalk and cheese cheese and biscuits cream cheese cheese triangles mascarpone everyone loves rubber cheese. Stinking bishop manchego the big cheese lancashire hard cheese the big cheese danish fontina squirty cheese. Cheesy feet croque monsieur boursin squirty cheese cheddar boursin boursin pepper jack. Squirty cheese halloumi camembert de normandie macaroni cheese.</p>
</article>
<footer>
<div id="social">
<a href="https://twitter.com/home?status=https://github.com/udacity/responsive-images" class="zocial-twitter">Twitter</a>
<a href="https://www.facebook.com/sharer/sharer.php?u=https://github.com/udacity/responsive-images" class="zocial-facebook">Facebook</a>
<a href="https://plus.google.com/share?url=https://github.com/udacity/responsive-images" class="zocial-googleplus">Google+</a>
<a href="http://digg.com/submit?phase=2&url=https%3A%2F%2Fgithub.com%2Fudacity%2Fresponsive-images&title=Udacity%20nano%20course%3A%20Responsive%20Images&bodytext=Responsive%20images%20for%20your%20sites%20and%20web%20apps&topic=tech_news" class="zocial-digg">Digg</a>
</div>
<a href="//github.com/udacity/responsive-images/tree/master/project/final" title="View source for this page on GitHub" id="viewSource">View source on GitHub</a>
</footer>
</body>
</html>
|
{
"content_hash": "0303d413f913171563e0f7e9ef405a4b",
"timestamp": "",
"source": "github",
"line_count": 124,
"max_line_length": 505,
"avg_line_length": 63.37096774193548,
"alnum_prop": 0.7485365232883685,
"repo_name": "udacity/responsive-images",
"id": "c351e3ea9c1c3b57ea79c984392c4271fa7ecf9c",
"size": "7860",
"binary": false,
"copies": "1",
"ref": "refs/heads/gh-pages",
"path": "project/lesson4/start/index.html",
"mode": "33188",
"license": "mit",
"language": [
{
"name": "CSS",
"bytes": "17651"
},
{
"name": "HTML",
"bytes": "46303"
},
{
"name": "JavaScript",
"bytes": "8515"
},
{
"name": "Python",
"bytes": "10560"
},
{
"name": "Shell",
"bytes": "1395"
}
],
"symlink_target": ""
}
|
class AddFacilityOrder < ActiveRecord::Migration[4.2]
def self.up
change_table :orders do |t|
t.references :facility
end
add_foreign_key :orders, :facilities
end
def self.down
remove_foreign_key :orders, :facilities
change_table :orders do |t|
t.remove :facility_id
end
end
end
|
{
"content_hash": "841b938f2cd26213c1000df6a4f302f1",
"timestamp": "",
"source": "github",
"line_count": 17,
"max_line_length": 53,
"avg_line_length": 19.11764705882353,
"alnum_prop": 0.6646153846153846,
"repo_name": "tablexi/nucore-open",
"id": "be642dab6756416246fb888cce99f36162657813",
"size": "356",
"binary": false,
"copies": "1",
"ref": "refs/heads/master",
"path": "db/migrate/20100430184238_add_facility_order.rb",
"mode": "33188",
"license": "mit",
"language": [
{
"name": "CSS",
"bytes": "674"
},
{
"name": "CoffeeScript",
"bytes": "64006"
},
{
"name": "Dockerfile",
"bytes": "1234"
},
{
"name": "HTML",
"bytes": "13675"
},
{
"name": "Haml",
"bytes": "328929"
},
{
"name": "JavaScript",
"bytes": "70594"
},
{
"name": "Ruby",
"bytes": "2793374"
},
{
"name": "SCSS",
"bytes": "30141"
},
{
"name": "Shell",
"bytes": "2316"
}
],
"symlink_target": ""
}
|
package org.ferris.tweial.console.email;
import javax.inject.Inject;
import org.ferris.tweial.console.configuration.ConfigurationDirectory;
import org.ferris.tweial.console.io.AbstractPropertiesFile;
/**
* This is a hard coded {@link AbstractPropertiesFile} object to "{@link ConfigurationDirectory}/email.properties"
*
* @author Michael Remijan mjremijan@yahoo.com @mjremijan
*/
public class EmailPropertiesFile extends AbstractPropertiesFile {
private static final long serialVersionUID = 12947850247524578L;
/**
* To file "{@link ConfigurationDirectory}/email.properties"
*
* @param confdir An {@link ConfigurationDirectory} representing the conf directory.
*/
@Inject
public EmailPropertiesFile(ConfigurationDirectory confdir) {
super(confdir, "email.properties");
}
}
|
{
"content_hash": "52e3fda3220cf6d9a531948a0bb7ea27",
"timestamp": "",
"source": "github",
"line_count": 25,
"max_line_length": 114,
"avg_line_length": 34.16,
"alnum_prop": 0.7330210772833724,
"repo_name": "mjremijan/ferris-tweial",
"id": "500e97c08531e69ea71faffb78a68c26773b6f1a",
"size": "854",
"binary": false,
"copies": "1",
"ref": "refs/heads/master",
"path": "src/main/java/org/ferris/tweial/console/email/EmailPropertiesFile.java",
"mode": "33188",
"license": "apache-2.0",
"language": [
{
"name": "Batchfile",
"bytes": "2277"
},
{
"name": "C",
"bytes": "125225"
},
{
"name": "C++",
"bytes": "74698"
},
{
"name": "CSS",
"bytes": "1174"
},
{
"name": "HTML",
"bytes": "141674"
},
{
"name": "Java",
"bytes": "922164"
},
{
"name": "JavaScript",
"bytes": "72323"
},
{
"name": "Roff",
"bytes": "2779967"
},
{
"name": "Shell",
"bytes": "5061"
}
],
"symlink_target": ""
}
|
ALAssetsLibrary-CustomPhotoAlbum (v1.3.0)
=========================================
A nice ALAssetsLibrary category for saving images into custom photo album by @MarinTodorov.
# Usage
// |image|: The target image to be saved
// |albumName|: Custom album name
// |completion|: Block to be executed when succeed to write the image data
// to the assets library (camera roll)
// |failure|: Block to be executed when failed to add the asset to the
// custom photo album
- (void)saveImage:(UIImage *)image
toAlbum:(NSString *)albumName
completion:(ALAssetsLibraryWriteImageCompletionBlock)completion
failure:(ALAssetsLibraryAccessFailureBlock)failure;
And for video:
// |videoUrl|: The target video to be saved
// |albumName|: Custom album name
// |completion|: Block to be executed when succeed to write the image data
// to the assets library (camera roll)
// |failure|: Block to be executed when failed to add the asset to the
// custom photo album
- (void)saveVideo:(NSURL *)videoUrl
toAlbum:(NSString *)albumName
completion:(ALAssetsLibraryWriteImageCompletionBlock)completion
failure:(ALAssetsLibraryAccessFailureBlock)failure;
Write the image data with meta data to the assets library (camera roll).
// |imageData|: The image data to be saved
// |albumName|: Custom album name
// |metadata|: Meta data for image
// |completion|: Block to be executed when succeed to write the image data
// |failure|: block to be executed when failed to add the asset to the custom photo album
- (void)saveImageData:(NSData *)imageData
toAlbum:(NSString *)albumName
metadata:(NSDictionary *)metadata
completion:(ALAssetsLibraryWriteImageCompletionBlock)completion
failure:(ALAssetsLibraryAccessFailureBlock)failure;
# Dependence
1. AssetsLibrary.framework
2. MobileCoreServices.framework
3. Photos.framework (for iOS 8+ projects)
# REFERENCE
- [ALAssetsLibrary Class Reference][1]
- [iOS5: Saving photos in custom photo album][2]
# Contributors
[@MarinTodorov](http://www.touch-code-magazine.com/about/)
[@Kjuly](https://github.com/Kjuly)
[@coryjthompson](https://github.com/coryjthompson)
[@speedyapocalypse](https://github.com/speedyapocalypse)
[@blazingpair](https://github.com/blazingpair) ([@paulz](https://github.com/paulz))
[@ajcollins](https://github.com/ajcollins)
[@wka](https://github.com/wka)
[@NSFish](https://github.com/NSFish)
[@michaelcameron](https://github.com/michaelcameron)
[1]: http://developer.apple.com/library/ios/#documentation/AssetsLibrary/Reference/ALAssetsLibrary_Class/Reference/Reference.html#//apple_ref/occ/instm/ALAssetsLibrary/addAssetsGroupAlbumWithName:resultBlock:failureBlock:
[2]: http://www.touch-code-magazine.com/ios5-saving-photos-in-custom-photo-album-category-for-download/
|
{
"content_hash": "b36333f028b57fd3810e5f3309f5d4fc",
"timestamp": "",
"source": "github",
"line_count": 72,
"max_line_length": 221,
"avg_line_length": 42.458333333333336,
"alnum_prop": 0.6830225711481845,
"repo_name": "y3774513/Repository",
"id": "fcbb6a4e51d2e24a58a895b188bdebfce9c79315",
"size": "3057",
"binary": false,
"copies": "1",
"ref": "refs/heads/master",
"path": "README.md",
"mode": "33188",
"license": "mit",
"language": [
{
"name": "C",
"bytes": "1366"
},
{
"name": "C++",
"bytes": "108154"
},
{
"name": "HTML",
"bytes": "3383"
},
{
"name": "Objective-C",
"bytes": "2492910"
},
{
"name": "Ruby",
"bytes": "7076"
}
],
"symlink_target": ""
}
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.