text:
<ion-view>
    <ion-nav-title><mm-format-text watch="true">{{ title }}</mm-format-text></ion-nav-title>
    <ion-nav-buttons side="secondary">
        <mm-context-menu>
            <mm-context-menu-item priority="900" ng-if="moduleUrl" href="moduleUrl" content="'mm.core.openinbrowser' | translate" icon-action="'ion-share'"></mm-context-menu-item>
            <mm-context-menu-item priority="800" ng-if="description" content="'mm.core.moduleintro' | translate" action="expandDescription()" icon-action="'ion-arrow-right-c'"></mm-context-menu-item>
            <mm-context-menu-item priority="700" ng-if="choiceLoaded && !hasOffline && isOnline" content="'mm.core.refresh' | translate" action="refreshChoice(false)" icon-action="refreshIcon" close-on-click="false" close-when-done="true"></mm-context-menu-item>
            <mm-context-menu-item priority="600" ng-if="choiceLoaded && hasOffline && isOnline" content="'mm.settings.synchronizenow' | translate" action="refreshChoice(true)" icon-action="syncIcon" close-on-click="false" close-when-done="true"></mm-context-menu-item>
            <mm-context-menu-item priority="500" ng-if="prefetchStatusIcon" content="timemodified" icon-action="prefetchStatusIcon" action="prefetch()" close-on-click="false"></mm-context-menu-item>
            <mm-context-menu-item priority="400" ng-if="size" content="size" icon-description="'ion-cube'" icon-action="'ion-trash-a'" action="removeFiles()"></mm-context-menu-item>
        </mm-context-menu>
    </ion-nav-buttons>
    <ion-content mm-state-class>
        <ion-refresher pulling-text="{{ 'mm.core.pulltorefresh' | translate }}" ng-if="choiceLoaded" on-refresh="refreshChoice(false)"></ion-refresher>
        <mm-loading hide-until="choiceLoaded">
            <mm-course-mod-description description="description" watch="true" component="{{component}}" component-id="{{componentId}}"></mm-course-mod-description>

 now">

{{ 'mma.mod_choice.previewonly' | translate:{$a: choice.openTimeReadable} }}

{{ 'mma.mod_choice.notopenyet' | translate:{$a: choice.openTimeReadable} }}

            <section class="card padding" ng-if="choice.timeclose != 0 && choice.timeclose <= now">

{{ 'mma.mod_choice.yourselection' | translate }} <mm-format-text watch="true">{{options[0].text}}</mm-format-text>

{{ 'mma.mod_choice.expired' | translate:{$a: choice.closeTimeReadable} }}

                 {{ 'mm.core.hasdatatosync' | translate:{$a: moduleName} }}

                    <ion-checkbox ng-repeat="option in options" class="item-text-wrap item-checkbox-right" ng-model="option.checked" ng-disabled="option.disabled || !canEdit">

<mm-format-text watch="true">{{option.text}}</mm-format-text> = option.maxanswers">{{ 'mma.mod_choice.full' | translate }}

                    </ion-checkbox>

                    <ion-radio ng-repeat="option in options" ng-model="selectedOption.id" ng-value="option.id" ng-disabled="option.disabled || !canEdit">

<mm-format-text watch="true">{{option.text}}</mm-format-text> = option.maxanswers">{{ 'mma.mod_choice.full' | translate }}

                    </ion-radio>

                    <button class="button button-block" ng-click="save()" ng-disabled="(!choice.allowmultiple && selectedOption.id == -1) || (choice.allowmultiple && (options | filter:{checked: true}).length == 0)">{{ 'mma.mod_choice.savemychoice' | translate }}</button>

                    <button class="button button-block" ng-click="delete()">{{ 'mma.mod_choice.removemychoice' | translate }}</button>

{{ 'mma.mod_choice.responses' | translate }}

                     {{ 'mma.mod_choice.resultsnotsynced' | translate }}

                             {{ 'mma.mod_choice.resultsnotsynced' | translate }}

                            <canvas class="chart chart-pie" chart-data="data" chart-labels="labels"></canvas>

<mm-format-text watch="true">{{ result.text }}</mm-format-text>

{{ 'mma.mod_choice.numberofuser' | translate }}: {{ result.numberofuser }} ({{ 'mm.core.percentagenumber' | translate: {$a: result.percentageamount} }})

{{user.fullname}}

{{ 'mma.mod_choice.noresultsviewable' | translate }}

        </mm-loading>
    </ion-content>
</ion-view>


text:
package com.collective.celos.ci.testing.fixtures.compare;

import com.collective.celos.ci.mode.test.TestRun;

/**
 * Created by akonopko on 10/10/14.
 */
public interface FixtureComparer {

    public FixObjectCompareResult check(TestRun testRun) throws Exception;

}

redpajama_set_name: RedPajamaGithub


text:
using MySql.Data.MySqlClient;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Ztop.Todo.Common;
using Ztop.Todo.Model;

namespace Ztop.Todo.Manager
{
    public class NotificationManager : ManagerBase
    {

        public int HasAllRead(int userId)
        {
            var count = 0;
            var connectionString = System.Configuration.ConfigurationManager.ConnectionStrings["DbConnection"].ConnectionString;
            using (MySqlConnection connection=new MySqlConnection(connectionString))
            {
                var sqlText = string.Format("UPDATE notification SET HasRead=1 where ReceiverID = {0} AND HasRead = 0", userId);
                connection.Open();
                using(MySqlCommand command=new MySqlCommand(sqlText, connection))
                {
                    count = command.ExecuteNonQuery();
                }
                connection.Close();
            }
            return count;
        }
        public Notification GetNewest(int userId)
        {
            using (var db = GetDbContext())
            {
                var model = db.Notifications.Where(e => e.ReceiverID == userId && !e.HasRead).OrderByDescending(e => e.ID).FirstOrDefault();
                if (model != null)
                {
                    switch (model.InfoType)
                    {
                        case InfoType.Task:
                            {
                                var userTask = Core.TaskManager.GetUserTask(model.InfoID);
                                var sender = Core.UserManager.GetUser(model.SenderID);
                                model.Description = sender.DisplayName + " 下达了 " + userTask.Task.Title;
                                model.Path = "/Task/Detail/?id=" + userTask.ID;
                            }
                            break;
                        case InfoType.Comment:
                            {
                                var userTask = Core.TaskManager.GetUserTask(model.InfoID);
                                var sender = Core.UserManager.GetUser(model.SenderID);
                                model.Description = sender.DisplayName + " 评论了 " + userTask.Task.Title;
                                model.Path = "/Task/Detail/?id=" + userTask.ID + "#comment-" + model.ID;
                            }
                            break;
                        case InfoType.Sheet:
                            {
                                var sheet = Core.SheetManager.GetModel(model.InfoID);
                                var sender = Core.UserManager.GetUser(model.SenderID);
                                model.Description = sender.DisplayName + "提交了报销";
                                model.Path = "/Report/Detail/?id=" + sheet.ID+"&&infoType="+InfoType.Sheet;
                            }
                            break;
                        case InfoType.Verify:
                            {
                                var verify = Core.VerifyManager.Get(model.InfoID);
                                var sheet = Core.SheetManager.GetModel(verify.SID);
                                var sender = Core.UserManager.GetUser(model.SenderID);
                                model.Description = sender.DisplayName + (verify.Position==Position.Check?"审核通过了":"审核退回") + sheet.PrintNumber;
                                model.Path = "/Report/Detail/?id=" + sheet.ID+"&&infoType="+InfoType.Verify+"&&verifyid="+verify.ID;
                            }
                            break;
                        case InfoType.Invoice:
                            {
                                var invoice = Core.InvoiceManager.Get(model.InfoID);
                                var contract = Core.ContractManager.Get(invoice.CID);
                                var sender = Core.UserManager.GetUser(model.SenderID);
                                model.Description = string.Format("{0}申请给{1}开具{2}的发票", sender.DisplayName, invoice.OtherSideCompany, invoice.Content);
                                model.Path = "/Finance/InvoiceDetail?id=" + invoice.ID;
                            }
                            break;
                        case InfoType.ProjectRegister:
                            {
                                var project = Core.ProjectManager.Get(model.InfoID);
                                var sender = Core.UserManager.GetUser(model.SenderID);
                                model.Description = string.Format("{0}录入项目:{1},请为该项目登记", sender.DisplayName, project.Name);
                                model.Path = "/Project/Home/Detail?id=" + project.ID;
                            }
                            break;
                    }
                }
                return model;
            }
        }

        private void AddNotification(Notification model)
        {
            using (var db = GetDbContext())
            {
                db.Notifications.Add(model);
                db.SaveChanges();
            }
        }

        private void AddCommentNotification(Comment comment)
        {
            var userTask = Core.TaskManager.GetUserTask(comment.UserTaskID);
            var userIDs = Core.TaskManager.GetUserTasks(userTask.TaskID).Where(e => e.UserID != comment.UserID).Select(e => e.UserID).ToList();
            if (!userIDs.Contains(userTask.Task.CreatorID))
            {
                userIDs.Add(userTask.Task.CreatorID);
            }
            foreach(var userid in userIDs)
            {
                AddNotification(new Notification
                {
                    InfoID = userTask.ID,
                    InfoType = InfoType.Comment,
                    ReceiverID = userid,
                    SenderID = comment.UserID
                });
            }
        }

        private void AddTaskNotification(Model.Task task)
        {
            var userTasks = Core.TaskManager.GetUserTasks(task.ID, false);
            foreach (var ut in userTasks)
            {
                AddNotification(new Notification
                {
                    InfoID = ut.ID,
                    InfoType = InfoType.Task,
                    ReceiverID = ut.UserID,
                    SenderID = task.CreatorID
                });
            }
        }
        private void AddSheetNotification(Model.Sheet sheet)
        {
            var receiver = Core.UserManager.UserGet(sheet.Controler);
            var sender = Core.UserManager.UserGet(sheet.Name);
            AddNotification(new Notification
            {
                InfoID = sheet.ID,
                InfoType = InfoType.Sheet,
                ReceiverID = receiver.ID,
                SenderID = sender.ID
            });
        }

        private void AddVerifyNotification(Model.Verify verify)
        {
            var sender = Core.UserManager.UserGet(verify.Name);
            var sheet = Core.SheetManager.GetModel(verify.SID);
            var receiver = Core.UserManager.UserGet(sheet.Controler);
            AddNotification(new Notification()
            {
                InfoID = verify.ID,
                InfoType = InfoType.Verify,
                ReceiverID = receiver.ID,
                SenderID = sender.ID
            });
        }

        private void AddInvoiceNotification(Invoice invoice)
        {
            var sender = Core.UserManager.UserGet(invoice.Applicant);
            var recevier = Core.UserManager.UserGet(System.Configuration.ConfigurationManager.AppSettings["FINANCE"]);
            AddNotification(new Notification()
            {
                InfoID = invoice.ID,
                InfoType = InfoType.Invoice,
                ReceiverID = recevier.ID,
                SenderID = sender.ID
            });
        }
        private void AddProjectNotification(Project project)
        {
            var charge = project.Charge;
            if (charge != null)
            {
                var sender = charge.User;
                if (sender != null)
                {
                    var recevier = Core.UserManager.UserGet(ProjectHelper.Register);
                    AddNotification(new Notification()
                    {
                        InfoID = project.ID,
                        InfoType = InfoType.ProjectRegister,
                        ReceiverID = recevier.ID,
                        SenderID = sender.ID
                    });
                }
            }
        }

        public void Add(object info)
        {
            var name = info.GetType().Name;
            var index = name.IndexOf("_");
            if (index > 0)
            {
                name = name.Substring(0, index);
            }
            var infoType = (InfoType)Enum.Parse(typeof(InfoType), name);

            switch (infoType)
            {
                case InfoType.Comment:
                    AddCommentNotification((Comment)info);
                    break;
                case InfoType.Task:
                    AddTaskNotification((Model.Task)info);
                    break;
                case InfoType.Sheet:
                    AddSheetNotification((Sheet)info);
                    break;
                case InfoType.Verify:
                    AddVerifyNotification((Verify)info);
                    break;
                case InfoType.Invoice:
                    AddInvoiceNotification((Invoice)info);
                    break;
                case InfoType.ProjectRegister:
                    AddProjectNotification((Project)info);
                    break;
            }
        }

        public void FlagRead(int infoId, int receiverID)
        {
            FlagReadBase(infoId, receiverID, InfoType.Comment);
            FlagReadBase(infoId, receiverID, InfoType.Task);
            //using (var db = GetDbContext())
            //{
            //    var entitys = db.Notifications.Where(e => e.InfoID == infoId&&e.ReceiverID==receiverID&&!e.HasRead);
            //    foreach(var entity in entitys)
            //    {
            //        entity.HasRead = true;
            //    }

            //    db.SaveChanges();
            //}
        }

        private void FlagReadBase(int infoId,int receiverID,InfoType infoType)
        {
            using (var db = GetDbContext())
            {
                var entrys = db.Notifications.Where(e => e.InfoID == infoId && e.ReceiverID == receiverID && e.InfoType == infoType && !e.HasRead);
                foreach (var entry in entrys)
                {
                    entry.HasRead = true;
                }
                db.SaveChanges();
            }
        }

        public void FlagSheetRead(int infoId,int receiverID)
        {
            FlagReadBase(infoId, receiverID, InfoType.Sheet);
        }
        /// <summary>
        ///
        /// </summary>
        /// <param name="infoId"></param>
        /// <param name="receiverID"></param>
        public void FlagVerifyRead(int infoId,int receiverID)
        {
            FlagReadBase(infoId, receiverID, InfoType.Verify);
        }

        /// <summary>
        /// 作用:将某一张发票信息的提示 设置为已读
        /// 作者:汪建龙
        /// 编写时间:2016年11月20日14:07:56
        /// </summary>
        /// <param name="infoId">发票ID</param>
        public void FlagInvoiceRead(int infoId)
        {
            var receiver = Core.UserManager.UserGet(System.Configuration.ConfigurationManager.AppSettings["FINANCE"]);
            if (receiver != null)
            {
                FlagReadBase(infoId, receiver.ID, InfoType.Invoice);
            }
        }

        public void FlagRead(int notid)
        {
            if (notid == 0) return;
            using (var db = GetDbContext())
            {
                var entry = db.Notifications.Find(notid);
                if (entry != null)
                {
                    entry.HasRead = true;
                }
                db.SaveChanges();
            }
        }

    }
}


text:
<?xml version="1.0" encoding="UTF-8"?>
<configuration status="OFF">
    <!-- 日志级别  ALL > TRACE > DEBUG > INFO > WARN > ERROR > FATAL > OFF -->
    <properties>
        <property name="info_file">/data/server/logs/client/info.log</property>
        <property name="warn_file">/data/server/logs/client/warn.log</property>
        <property name="error_file">/data/server/logs/client/error.log</property>
        <property name="log_pattern">%d{yyyy-MM-dd HH:mm:ss z} %-5level [%t] %l - %msg%xEx%n</property>
        <property name="error_file_gz">/data/server/logs/client/error-%d{yyyy-MM-dd}-%i.log.gz</property>
        <property name="warn_file_gz">/data/server/logs/client/warn-%d{yyyy-MM-dd}-%i.log.gz</property>
        <property name="info_file_gz">/data/server/logs/client/info-%d{yyyy-MM-dd}-%i.log.gz</property>
        <property name="every_file_size">10MB</property><!-- 日志切割的最小单位 -->
        <Property name="baseDir">/data/server/logs</Property>
    </properties>
    <appenders>
        <Console name="Console" target="SYSTEM_OUT">
            <ThresholdFilter level="DEBUG" onMatch="ACCEPT" onMismatch="DENY"/>
            <PatternLayout charset="UTF-8" pattern="${log_pattern}"/>
        </Console>

        <!-- 只输出ERROR -->
        <RollingFile name="ErrorRollingFile" fileName="${error_file}" filePattern="${error_file_gz}">
            <PatternLayout charset="UTF-8" pattern="${log_pattern}"/>
            <SizeBasedTriggeringPolicy size="${every_file_size}"/>
            <Filters>
                <ThresholdFilter level="error" onMatch="ACCEPT" onMismatch="DENY"/>
            </Filters>
            <!--自动删除超过90天的日志压缩文件-->
            <DefaultRolloverStrategy>
                <Delete basePath="${baseDir}" maxDepth="2">
                    <IfFileName glob="*/*.log"/>
                    <IfLastModified age="10d"/>
                </Delete>
            </DefaultRolloverStrategy>
        </RollingFile>

        <!--只输出warn-->
        <RollingFile name="WarnRollingFile" fileName="${warn_file}" filePattern="${warn_file_gz}">
            <PatternLayout charset="UTF-8" pattern="${log_pattern}"/>
            <SizeBasedTriggeringPolicy size="${every_file_size}"/>
            <Filters>
                <!--首先要过滤不符合的日志级别,把不需要的首先DENY掉,然后再ACCEPT需要的日志级别,这个次序不能搞颠倒。-->
                <ThresholdFilter level="error" onMatch="DENY" onMismatch="NEUTRAL"/>
                <ThresholdFilter level="warn" onMatch="ACCEPT" onMismatch="DENY"/>
            </Filters>
        </RollingFile>

        <!-- 只输出INFO -->
        <RollingFile name="InfoRollingFile" fileName="${info_file}" filePattern="${info_file_gz}">
            <PatternLayout charset="UTF-8" pattern="${log_pattern}"/>
            <SizeBasedTriggeringPolicy size="${every_file_size}"/>
            <Filters>
                <ThresholdFilter level="warn" onMatch="DENY" onMismatch="NEUTRAL"/>
                <ThresholdFilter level="info" onMatch="ACCEPT" onMismatch="DENY"/>
            </Filters>
        </RollingFile>

    </appenders>
    <loggers>
        <!--过滤掉spring和mybatis的一些无用的DEBUG信息 -->
        <logger name="org.springframework" level="INFO"></logger>
        <logger name="org.mybatis" level="INFO"></logger>

        <root level="INFO">
            <Appender-ref ref="Console"/>
            <Appender-ref ref="ErrorRollingFile"/>
            <Appender-ref ref="WarnRollingFile"/>
            <Appender-ref ref="InfoRollingFile"/>
        </root>
    </loggers>
</configuration>


text:
from django.db import migrations

class Migration(migrations.Migration):

    dependencies = [
        ('conservation', '0009_auto_20190125_1105'),
    ]

    operations = [
        migrations.RenameModel(
            old_name='ManagementAction',
            new_name='ConservationAction',
        ),
        migrations.RenameModel(
            old_name='ManagementActionCategory',
            new_name='ConservationActionCategory',
        ),
        migrations.AlterModelOptions(
            name='conservationactioncategory',
            options={'ordering': ['code'], 'verbose_name': 'Conservation Action Category',
                     'verbose_name_plural': 'Conservation Action Categories'},
        ),
    ]


text:
<?php include('inc/header.php') ?>

<?php include('inc/top_bar.php') ?>

        <?php $this->load->view('inc/leftbar'); ?>

Date: <?php echo date("Y/m/d") ?>

                                            <address>

                                                Eye with us Opticals

                                                91B, Galle Road,
Henamulla,
Panadura.

                                                 +94 778 280 494
                                            </address>

                                            <img src="<?php echo base_url(); ?>images/logo.png" width="250px" height="150px">

                <?= form_open(); ?>
                <?php  foreach ($data["fetch_data"]->result() as $row) {    ?>

                                    <fieldset class="form-group">
                                        Customer Name
                                        <input type="text" class="form-control" name="cname"
                                               placeholder="Customer Name" data-parsley-id="34" readonly
                                               value="<?php echo $row->cname; ?>">

                                    </fieldset>

                                    <fieldset class="form-group">
                                        Reference Number
                                        <input type="text" class="form-control" name="rnum"
                                               placeholder="Reference Number" data-parsley-id="56"
                                               readonly
                                               value="<?php echo $row->rnum; ?>">

                                    </fieldset>

                                    <fieldset class="form-group">
                                        Registered Date
                                        <?php echo $row->date; ?>

                                    </fieldset>

                                    <fieldset class="form-group">
                                        Address
                                        <input type="text" class="form-control" name="address"
                                               placeholder="Address" data-parsley-id="34"
                                               readonly
                                               value="<?php echo $row->address; ?>">
                                    </fieldset>

                                    <fieldset class="form-group">
                                        Age
                                        <input type="text" class="form-control" name="age"
                                               placeholder="Age" data-parsley-maxlength="2"
                                               data-parsley-type="number" data-parsley-id="34"
                                               readonly
                                               value="<?php echo $row->age; ?>">
                                    </fieldset>

                                    <fieldset class="form-group">
                                        Mobile Number
                                        <input type="text" class="form-control" name="mobile"
                                               placeholder="Mobile Number" data-parsley-minlength="10"
                                               data-parsley-type="number" data-parsley-id="34"
                                               readonly
                                               value="<?php echo $row->mobile; ?>">
                                    </fieldset>

                                    <fieldset class="form-group">
                                        Remarks/Symptams
                                        <input type="text" class="form-control" name="remark"
                                               placeholder="Remarks/Symptams" data-parsley-id="34"
                                               readonly
                                               value="<?php echo $row->remark; ?>">
                                    </fieldset>

                                    <fieldset class="form-group">
                                        Physical Condition/History
                                        <input type="text" class="form-control" name="history"
                                               placeholder="Physical Condition/History" data-parsley-id="34"
                                               readonly
                                               value="<?php echo $row->history; ?>">
                                    </fieldset>

                                    <fieldset class="form-group">

Refraction

                                    </fieldset>

                                    <fieldset class="form-group">
                                        U.V.A. (R)
                                        <input type="text" class="form-control" name="uva1"
                                               placeholder="U.V.A." data-parsley-id="34"
                                               readonly
                                               value="<?php echo $row->uva1; ?>">

                                    </fieldset>

                                    <fieldset class="form-group">
                                        P.H. (R)
                                        <input type="text" class="form-control" name="ph1"
                                               placeholder="P.H." data-parsley-id="34"
                                               readonly
                                               value="<?php echo $row->ph1; ?>">

                                    </fieldset>

                                    <fieldset class="form-group">
                                        U.V.A. (L)
                                        <input type="text" class="form-control" name="uva2"
                                               placeholder="U.V.A." data-parsley-id="34"
                                               readonly
                                               value="<?php echo $row->uva2; ?>">

                                    </fieldset>

                                    <fieldset class="form-group">
                                        P.H. (L)
                                        <input type="text" class="form-control" name="ph2"
                                               placeholder="P.H." data-parsley-id="34"
                                               readonly
                                               value="<?php echo $row->ph2; ?>">

                                    </fieldset>

                                    <fieldset class="form-group">
                                        6M
                                        <input type="text" class="form-control" name="m6m1"
                                               placeholder="6M" data-parsley-id="34"
                                               readonly
                                               value="<?php echo $row->m6m1; ?>">

                                    </fieldset>

                                    <fieldset class="form-group">
                                        6M
                                        <input type="text" class="form-control" name="m6m2"
                                               placeholder="6M" data-parsley-id="34"
                                               readonly
                                               value="<?php echo $row->m6m2; ?>">

                                    </fieldset>

                                    <fieldset class="form-group">
                                        N.P.C.
                                        <input type="text" class="form-control" name="npc"
                                               placeholder="N.P.C." data-parsley-id="34"
                                               readonly
                                               value="<?php echo $row->npc; ?>">

                                    </fieldset>

                                    <fieldset class="form-group">
                                        Version
                                        <input type="text" class="form-control" name="version"
                                               placeholder="Version" data-parsley-id="34"
                                               readonly
                                               value="<?php echo $row->version; ?>">

                                    </fieldset>

                                    <fieldset class="form-group">
                                        ć-HbRx
                                        <input type="text" class="form-control" name="hbrx1"
                                               placeholder="ć-HbRx" data-parsley-id="34"
                                               readonly
                                               value="<?php echo $row->hbrx1; ?>">

                                    </fieldset>

                                    <fieldset class="form-group">
                                        R

                                        <input type="text" class="form-control" name="hbrx2"
                                               placeholder="" data-parsley-id="34"
                                               readonly
                                               value="<?php echo $row->hbrx2; ?>">

                                    </fieldset>

                                    <fieldset class="form-group">
                                        L
                                        <input type="text" class="form-control" name="hbrx3"
                                               placeholder="" data-parsley-id="34"
                                               readonly
                                               value="<?php echo $row->hbrx3; ?>">

                                    </fieldset>

                            <fieldset class="form-group">

THE PRESCRIPTION

                            </fieldset>

                            <fieldset class="form-group">
                                R
                                <input type="text" class="form-control" name="READONLY"
                                       placeholder="" data-parsley-id="34" readonly
                                       value="DIST">
                            </fieldset>

                            <fieldset class="form-group">

                                <input type="text" class="form-control" required="" name="r1"
                                       placeholder="" data-parsley-id="56"
                                       readonly
                                       value="<?php echo $row->r1; ?>">

                            </fieldset>

                            <fieldset class="form-group">
                                Sph:
                                <input type="text" class="form-control" required="" name="sph1"
                                       placeholder="" data-parsley-id="34"
                                       readonly
                                       value="<?php echo $row->sph1; ?>">

                            </fieldset>

                            <fieldset class="form-group">
                                Cyl:
                                <input type="text" class="form-control" name="cyl1"
                                       placeholder="" data-parsley-id="34"
                                       readonly
                                       value="<?php echo $row->cyl1; ?>">

                            </fieldset>

                            <fieldset class="form-group">
                                Axis:
                                <input type="text" class="form-control" name="axis1"
                                       placeholder="" data-parsley-id="34"
                                       readonly
                                       value="<?php echo $row->axis1; ?>">

                            </fieldset>

                            <fieldset class="form-group">
                                Sph:
                                <input type="text" class="form-control" required="" name="sph2"
                                       placeholder="" data-parsley-id="34"
                                       readonly
                                       value="<?php echo $row->sph2; ?>">

                            </fieldset>

                            <fieldset class="form-group">
                                Cyl:
                                <input type="text" class="form-control" name="cyl2"
                                       placeholder="" data-parsley-id="34"
                                       readonly
                                       value="<?php echo $row->cyl2; ?>">

                            </fieldset>

                            <fieldset class="form-group">
                                Axis:
                                <input type="text" class="form-control" name="axis2"
                                       placeholder="" data-parsley-id="34"
                                       readonly
                                       value="<?php echo $row->axis2; ?>">

                            </fieldset>

                            <fieldset class="form-group">
                                L
                                <input type="text" class="form-control" required="" name="l1"
                                       placeholder="" data-parsley-id="34"
                                       readonly
                                       value="<?php echo $row->l1; ?>">

                            </fieldset>

                            <fieldset class="form-group">

                                <input type="text" class="form-control" name="READONLY"
                                       placeholder="" data-parsley-id="34" readonly
                                       value="NEAR">
                            </fieldset>

                            <fieldset class="form-group">

                                <input type="text" class="form-control" required="" name="r2"
                                       placeholder="" data-parsley-id="34"
                                       readonly
                                       value="<?php echo $row->r2; ?>">

                            </fieldset>

                            <fieldset class="form-group">

                                <input type="text" class="form-control" required="" name="sph3"
                                       placeholder="" data-parsley-id="34"
                                       readonly
                                       value="<?php echo $row->sph3; ?>">

                            </fieldset>

                            <fieldset class="form-group">

                                <input type="text" class="form-control" name="cyl3"
                                       placeholder="" data-parsley-id="34"
                                       readonly
                                       value="<?php echo $row->cyl3; ?>">

                            </fieldset>

                            <fieldset class="form-group">

                                <input type="text" class="form-control" name="axis3"
                                       placeholder="" data-parsley-id="34"
                                       readonly
                                       value="<?php echo $row->axis3; ?>">

                            </fieldset>

                            <fieldset class="form-group">

                                <input type="text" class="form-control" required="" name="sph4"
                                       placeholder="" data-parsley-id="34"
                                       readonly
                                       value="<?php echo $row->sph4; ?>">

                            </fieldset>

                            <fieldset class="form-group">

                                <input type="text" class="form-control" name="cyl4"
                                       placeholder="" data-parsley-id="34"
                                       readonly
                                       value="<?php echo $row->cyl4; ?>">

                            </fieldset>

                            <fieldset class="form-group">

                                <input type="text" class="form-control" name="axis4"
                                       placeholder="" data-parsley-id="34"
                                       readonly
                                       value="<?php echo $row->axis4; ?>">

                            </fieldset>

                            <fieldset class="form-group">

                                <input type="text" class="form-control" required="" name="l2"
                                       placeholder="" data-parsley-id="34"
                                       readonly
                                       value="<?php echo $row->l2; ?>">

                            </fieldset>

                            Ophthalmoscope/Opthalmoscope

                    <fieldset class="form-group">

                        <input type="text" class="form-control" name="READONLY"
                               placeholder="" data-parsley-id="34" readonly
                               value="Cornea">
                    </fieldset>

                    <fieldset class="form-group">

                        <input type="text" class="form-control" name="cornea1"
                               placeholder="" data-parsley-id="34"
                               readonly
                               value="<?php echo $row->cornea1; ?>">

                    </fieldset>

                    <fieldset class="form-group">

                        <input type="text" class="form-control" name="cornea2"
                               placeholder="" data-parsley-id="34"
                               readonly
                               value="<?php echo $row->cornea2; ?>">
                    </fieldset>

                    <fieldset class="form-group">

                        <input type="text" class="form-control" name="READONLY"
                               placeholder="" data-parsley-id="34" readonly
                               value="Iris">
                    </fieldset>

                    <fieldset class="form-group">

                        <input type="text" class="form-control" name="iris1"
                               placeholder="" data-parsley-id="34"
                               readonly
                               value="<?php echo $row->iris1; ?>">

                    </fieldset>

                    <fieldset class="form-group">

                        <input type="text" class="form-control" name="iris2"
                               placeholder="" data-parsley-id="34"
                               readonly
                               value="<?php echo $row->iris2; ?>">

                    </fieldset>

                    <fieldset class="form-group">

                        <input type="text" class="form-control" name="READONLY"
                               placeholder="" data-parsley-id="34" readonly
                               value="Media">
                    </fieldset>

                    <fieldset class="form-group">

                        <input type="text" class="form-control" name="media1"
                               placeholder="" data-parsley-id="34"
                               readonly
                               value="<?php echo $row->media1; ?>">

                    </fieldset>

                    <fieldset class="form-group">

                        <input type="text" class="form-control" name="media2"
                               placeholder="" data-parsley-id="34"
                               readonly
                               value="<?php echo $row->media2; ?>">

                    </fieldset>

                    <fieldset class="form-group">

                        <input type="text" class="form-control" name="READONLY"
                               placeholder="" data-parsley-id="34" readonly
                               value="Fundus">
                    </fieldset>

                    <fieldset class="form-group">
                        <textarea class="form-control" id="description" name="fundus1"
                                  rows="3" readonly
                        ><?php echo $row->fundus1; ?></textarea>
                    </fieldset>

                    <fieldset class="form-group">
                        <textarea class="form-control" id="description" name="fundus2"
                                  rows="3" readonly
                        ><?php echo $row->fundus2; ?></textarea>
                    </fieldset>

                    <fieldset class="form-group">

                        <input type="text" class="form-control" name="READONLY"
                               placeholder="" data-parsley-id="34" readonly
                               value="A/C">
                    </fieldset>

                    <fieldset class="form-group">

                        <input type="text" class="form-control" name="ac1"
                               placeholder="" data-parsley-id="34"
                               readonly
                               value="<?php echo $row->ac1; ?>">

                    </fieldset>

                    <fieldset class="form-group">

                        <input type="text" class="form-control" name="ac2"
                               placeholder="" data-parsley-id="34"
                               readonly
                               value="<?php echo $row->ac2; ?>">

                    </fieldset>

                    <fieldset class="form-group">

                        <input type="text" class="form-control" name="READONLY"
                               placeholder="" data-parsley-id="34" readonly
                               value="P/C">
                    </fieldset>

                    <fieldset class="form-group">

                        <input type="text" class="form-control" name="pc1"
                               placeholder="" data-parsley-id="34"
                               readonly
                               value="<?php echo $row->pc1; ?>">

                    </fieldset>

                    <fieldset class="form-group">

                        <input type="text" class="form-control" name="pc2"
                               placeholder="" data-parsley-id="34"
                               readonly
                               value="<?php echo $row->pc2; ?>">

                    </fieldset>

                    <fieldset class="form-group">

                        <input type="text" class="form-control" name="READONLY"
                               placeholder="" data-parsley-id="34" readonly
                               value="I.O.P.">
                    </fieldset>

                    <fieldset class="form-group">

                        <input type="text" class="form-control" name="iop1"
                               placeholder="" data-parsley-id="34"
                               readonly
                               value="<?php echo $row->iop1; ?>">

                    </fieldset>

                    <fieldset class="form-group">

                        <input type="text" class="form-control" name="iop2"
                               placeholder="" data-parsley-id="34"
                               readonly
                               value="<?php echo $row->iop2; ?>">

                    </fieldset>

                    Diagnosis/Remarks

                    <fieldset class="form-group">
                        <textarea class="form-control" id="description"
                                  name="diagnosis"
                                  rows="3" readonly><?php echo $row->diagnosis; ?></textarea>
                    </fieldset>

                    <fieldset class="form-group">
                        Lense Model
                        <input type="text" class="form-control" required="" name="lense"
                               placeholder="" data-parsley-id="34"
                               readonly
                               value="<?php echo $row->lense; ?>">

                    </fieldset>

                    <fieldset class="form-group">
                        Total Amount
                        <input type="text" class="form-control" required="" name="total"
                               placeholder="" data-parsley-id="34"
                               readonly
                               value="<?php echo $row->total; ?>">

                    </fieldset>

                    <a href="<?= base_url() . 'Vcustomer/cprint/' . $row->cid ?>">
                        <button type="button"
                                class="btn btn-dark-outline waves-effect waves-light" style="float: right">
                            Print
                        </button>

                    <button type="button" class="btn btn-purple-outline waves-effect waves-light" style="float: right" onclick="window.location='<?php echo site_url("Vcustomer/view");?>'">

                                                   Back</button>
                    <?php echo form_close(); ?>
                    <?php } ?>

<?php include('inc/footer.php') ?>


text:
package com.spacetimecat.build.math.extended;

public final class NegativeInfinity<A> extends Extended<A>
{
    @Override
    public boolean isNegativeInfinity ()
    {
        return true;
    }

    @Override
    public String toString ()
    {
        return "-Inf";
    }
}


text:
package me.magicall.coll.wrap;

import me.magicall.coll.sorted.Sorted;
import me.magicall.coll.unmodifiable.UnmodifiableListTemplate;
import me.magicall.mark.Unmodifiable;
import me.magicall.mark.Wrapper;

import java.io.Serializable;
import java.util.Collection;
import java.util.Iterator;
import java.util.List;
import java.util.ListIterator;

public class UnmodifiableWrapList<E> extends UnmodifiableListTemplate<E>//
		implements List<E>, Wrapper<List<E>>, Serializable, Unmodifiable, Sorted {

	private static final long serialVersionUID = -4222922423845326955L;

	private final List<E> list;

	public UnmodifiableWrapList(final List<E> list) {
		super();
		this.list = list;
	}

	@Override
	protected E get0(final int index) {
		return list.get(index);
	}

	@Override
	public int size() {
		return list.size();
	}

	@Override
	protected Iterator<E> iterator0() {
		return list.iterator();
	}

	@Override
	protected ListIterator<E> listIterator0(final int index) {
		return list.listIterator(index);
	}

	@Override
	public boolean contains(final Object o) {
		return list.contains(o);
	}

	@Override
	public boolean containsAll(final Collection<?> c) {
		return list.containsAll(c);
	}

	@Override
	public boolean equals(final Object o) {
		return list.equals(o);
	}

	@Override
	public int hashCode() {
		return list.hashCode();
	}

	@Override
	public int indexOf(final Object o) {
		return list.indexOf(o);
	}

	@Override
	public boolean isEmpty() {
		return list.isEmpty();
	}

	@Override
	public int lastIndexOf(final Object o) {
		return list.lastIndexOf(o);
	}

	@Override
	protected List<E> subList0(final int fromIndex, final int toIndex) {
		return list.subList(fromIndex, toIndex);
	}

	@Override
	public Object[] toArray() {
		return list.toArray();
	}

	@Override
	public <T> T[] toArray(final T[] a) {
		return list.toArray(a);
	}

	@Override
	public String toString() {
		return list.toString();
	}

	@Override
	public List<E> unwrap() {
		return this;
	}
}


text:
using System;
#if(MF)
using Microsoft.SPOT;
#endif

namespace MFToolkit.Net.XBee
{
    /// <summary>
    /// EventArgs class that contains the XBee response frame.
    /// </summary>
    public class FrameReceivedEventArgs : EventArgs
    {
        private XBeeResponse _response;

        #region Public Properties

        /// <summary>
        /// The XBee response.
        /// </summary>
        public XBeeResponse Response
        {
            get { return _response; }
            internal set { _response = value; }
        }

        #endregion

        public FrameReceivedEventArgs(XBeeResponse response)
        {
            Response = response;
        }
    }

    public delegate void FrameReceivedEventHandler(object sender, FrameReceivedEventArgs e);
}


text:
package org.pitest.dependency;

import static org.junit.Assert.assertEquals;

import java.io.IOException;
import java.util.Arrays;
import java.util.Collection;
import java.util.HashSet;
import java.util.List;
import java.util.Set;

import org.junit.Test;
import org.pitest.classpath.ClassPathByteArraySource;
import org.pitest.functional.predicate.Predicate;
import org.pitest.functional.predicate.True;

public class DependencyExtractorTest {

  private DependencyExtractor testee;

  public static class Foo {
    public void one() {
      new Bar();
    }

    public void two() {
      new Car();
    }
  }

  public static class Bar {
    Far f = new Far();
  }

  public static class Car {

  }

  public static class Far {
    VeryFar f = new VeryFar();
  }

  public static class VeryFar {

  }

  public static class CyclicFoo {
    CyclicBar b = new CyclicBar();
  }

  public static class CyclicBar {
    CyclicFoo f = new CyclicFoo();
  }

  @Test
  public void shouldFindOnlyImmediateDependenciesWhenDepthIsOne()
      throws Exception {
    constructWithDepthOf(1);
    final Collection<String> actual = this.testee
        .extractCallDependenciesForPackages(Foo.class.getName(),
            True.<String> all());
    final Set<String> expected = asSet(classToJvmName(Bar.class),
        classToJvmName(Car.class));
    assertCollectionEquals(expected, actual);
  }

  @Test
  public void shouldTraverseTwoLevelsOfDependenciesWhenDepthIsTwo()
      throws Exception {
    constructWithDepthOf(2);
    final Collection<String> actual = this.testee
        .extractCallDependenciesForPackages(Foo.class.getName(),
            True.<String> all());
    final Set<String> expected = asSet(classToJvmName(Bar.class),
        classToJvmName(Car.class), classToJvmName(Far.class));
    assertCollectionEquals(expected, actual);
  }

  @Test
  public void shouldTraverseUnboundedWhenDepthIsZero() throws Exception {
    constructWithDepthOf(0);
    final Collection<String> actual = this.testee
        .extractCallDependenciesForPackages(Foo.class.getName(),
            True.<String> all());
    final List<String> expected = Arrays.asList(classToJvmName(Bar.class),
        classToJvmName(Car.class), classToJvmName(Far.class),
        classToJvmName(VeryFar.class));
    assertCollectionEquals(expected, actual);
  }

  @Test
  public void shouldNotPickUpDependenciesFromFilteredMethods() throws Exception {
    constructWithDepthOf(0);
    final Collection<String> actual = this.testee.extractCallDependencies(
        Foo.class.getName(), excludeMethodsCalledOne());
    final Set<String> expected = asSet(classToJvmName(Car.class));
    assertCollectionEquals(expected, actual);
  }

  @Test
  public void shouldFindDependenciesReachedViaClassesNotMatchingFilter()
      throws IOException {
    constructWithDepthOf(5);
    final Collection<String> actual = this.testee
        .extractCallDependenciesForPackages(Foo.class.getName(),
            includeOnlyThingsCalled("VeryFar"), ignoreCoreClasses());
    final Set<String> expected = asSet(classToJvmName(VeryFar.class));
    assertCollectionEquals(expected, actual);
  }

  @Test
  public void shouldHandleCyclicDependencies() throws Exception {
    constructWithDepthOf(0);
    final Collection<String> actual = this.testee
        .extractCallDependenciesForPackages(CyclicFoo.class.getName(),
            True.<String> all());
    final List<String> expected = Arrays
        .asList(classToJvmName(CyclicBar.class));
    assertCollectionEquals(expected, actual);
  }

  private Predicate<DependencyAccess> ignoreCoreClasses() {
    return new Predicate<DependencyAccess>() {

      public Boolean apply(final DependencyAccess a) {
        return !a.getDest().getOwner().startsWith("java");
      }

    };

  }

  private Predicate<String> includeOnlyThingsCalled(final String subString) {
    return new Predicate<String>() {

      public Boolean apply(final String a) {
        return a.contains(subString);
      }

    };
  }

  private void constructWithDepthOf(final int depth) {
    this.testee = new DependencyExtractor(new ClassPathByteArraySource(), depth);

  }

  private Predicate<DependencyAccess> excludeMethodsCalledOne() {
    return new Predicate<DependencyAccess>() {
      public Boolean apply(final DependencyAccess a) {
        return !a.getSource().getName().equals("one");
      }

    };
  }

  private void assertCollectionEquals(final Collection<String> expected,
      final Collection<String> actual) {
    final Set<String> expectedSet = new HashSet<String>();
    expectedSet.addAll(expected);

    final Set<String> actualSet = new HashSet<String>();
    actualSet.addAll(actual);

    assertEquals(expectedSet, actualSet);

  }

  private Set<String> asSet(final String... values) {
    final Set<String> set = new HashSet<String>();
    set.addAll(Arrays.asList(values));
    return set;
  }

  private String classToJvmName(final Class<?> clazz) {

    return clazz.getName().replace(".", "/");

  }
}


text:
package com.github.violetlaw.citegen;

import static org.junit.Assert.assertEquals;

import com.google.common.io.Resources;
import java.io.IOException;
import java.net.URL;
import java.nio.charset.StandardCharsets;
import org.junit.Test;

/**
 * Test that verifies Maven provides files from src/test/resources/
 */
public class ResourcesTest {

  @Test
  public void fetchTestResource() throws IOException {
    URL testUrl = Resources.getResource("test.txt");
    String content = Resources.toString(testUrl, StandardCharsets.UTF_8);
    assertEquals("test", content.trim());
  }
}


text:
package ru.histone.acceptance.tests.general;

import org.junit.runner.RunWith;
import ru.histone.acceptance.support.AcceptanceTest;
import ru.histone.acceptance.support.AcceptanceTestsRunner;

@RunWith(AcceptanceTestsRunner.class)

public class OtherEvaluatorTest extends AcceptanceTest {

    @Override
    public String getFileName() {
        return "/general/other_evaluator.json";
    }
}


text:
<?php
namespace Icecave\Archer\Console\Command\Travis;

use Eloquent\Phony\Phpunit as x;
use Icecave\Archer\Console\Application;
use Icecave\Archer\Coveralls\CoverallsClient;
use Icecave\Archer\FileSystem\FileSystem;
use Icecave\Archer\GitHub\GitHubClient;
use Icecave\Archer\Support\Isolator;
use PHPUnit_Framework_TestCase;
use Symfony\Component\Console\Input\StringInput;

class BuildCommandTest extends PHPUnit_Framework_TestCase
{
    public function setUp()
    {
        $this->githubClient = x\mock('Icecave\Archer\GitHub\GitHubClient');
        $this->coverallsClient = x\mock('Icecave\Archer\Coveralls\CoverallsClient');
        $this->fileSystem = x\mock('Icecave\Archer\FileSystem\FileSystem');
        $this->isolator = x\mock(Isolator::className());

        $this->application = new Application('/path/to/archer');

        $this->subject = new BuildCommand(
            $this->githubClient->mock(),
            $this->coverallsClient->mock(),
            $this->fileSystem->mock(),
            $this->isolator->mock()
        );

        $this->subject->setApplication($this->application);

        $this->input = new StringInput('travis:build /path/to/project');
        $this->output = x\mock('Symfony\Component\Console\Output\OutputInterface');

        $this->githubClient->defaultBranch->returns('master');
        $this->isolator->getenv('TRAVIS_BRANCH')->returns('master');
        $this->isolator->getenv('TRAVIS_BUILD_NUMBER')->returns('543');
        $this->isolator->getenv('TRAVIS_REPO_SLUG')->returns('Vendor/package');
        $this->isolator->getenv('ARCHER_PUBLISH_VERSION')->returns('5.4');
        $this->isolator->getenv('ARCHER_TOKEN')->returns('b1a94b90073382b330f601ef198bb0729b0168aa');
        $this->isolator->is_dir('/path/to/project/src')->returns(true);
        $this->isolator->passthru->setsArgument(1, 0)->returns();
    }

    public function testConstructor()
    {
        $this->assertSame($this->githubClient->mock(), $this->subject->githubClient());
        $this->assertSame($this->coverallsClient->mock(), $this->subject->coverallsClient());
    }

    public function testConstructorDefaults()
    {
        $this->subject = new BuildCommand();

        $this->assertEquals(new GitHubClient(), $this->subject->githubClient());
        $this->assertEquals(new CoverallsClient(), $this->subject->coverallsClient());
    }

    public function testExecute()
    {
        $this->isolator->passthru->setsArgument(1, 123)->returns();

        $this->assertSame(123, $this->subject->run($this->input, $this->output->mock()));
        $this->isolator->passthru->calledWith('/path/to/archer/bin/archer test', 255);
        $this->githubClient->setUserAgent->calledWith('Archer/' . $this->application->getVersion());
    }

    public function testExecuteWithPublishVersionButWrongBranch()
    {
        $this->isolator->getenv('TRAVIS_PHP_VERSION')->returns('5.4');
        $this->isolator->getenv('TRAVIS_BRANCH')->returns('feature/some-thing');
        $this->isolator->passthru->setsArgument(1, 123)->returns();

        $this->assertSame(123, $this->subject->run($this->input, $this->output->mock()));
        $this->isolator->passthru->calledWith('/path/to/archer/bin/archer test', 255);
        x\verify($this->githubClient)
            ->setAuthToken('b1a94b90073382b330f601ef198bb0729b0168aa')
            ->defaultBranch('Vendor', 'package');
    }

    public function testExecuteWithPublishVersionButNoToken()
    {
        $this->isolator->getenv('TRAVIS_PHP_VERSION')->returns('5.4');
        $this->isolator->getenv('ARCHER_TOKEN')->returns(false);
        $this->isolator->passthru->setsArgument(1, 123)->returns();

        $this->assertSame(123, $this->subject->run($this->input, $this->output->mock()));
        $this->isolator->passthru->calledWith('/path/to/archer/bin/archer test', 255);
        $this->githubClient->setAuthToken->never()->called();
    }

    public function testExecuteWithPublishVersionButIsPullRequest()
    {
        $this->isolator->getenv('TRAVIS_PULL_REQUEST')->returns('100');
        $this->isolator->getenv('TRAVIS_PHP_VERSION')->returns('5.4');
        $this->isolator->passthru->setsArgument(1, 123)->returns();

        $this->assertSame(123, $this->subject->run($this->input, $this->output->mock()));
        $this->isolator->passthru->calledWith('/path/to/archer/bin/archer test', 255);
        $this->githubClient->setAuthToken->never()->called();
    }

    public function testExecuteWithPublish()
    {
        $expectedWoodhouseCommand  = "/path/to/archer/bin/woodhouse publish 'Vendor/package'";
        $expectedWoodhouseCommand .= ' /path/to/project/artifacts:artifacts';
        $expectedWoodhouseCommand .= ' --message "Publishing artifacts from build 543."';
        $expectedWoodhouseCommand .= ' --auth-token-env ARCHER_TOKEN';
        $expectedWoodhouseCommand .= ' --no-interaction';
        $expectedWoodhouseCommand .= ' --verbose';
        $expectedWoodhouseCommand .= ' --coverage-image artifacts/images/coverage.png';
        $expectedWoodhouseCommand .= ' --coverage-phpunit artifacts/tests/coverage/coverage.txt';
        $expectedWoodhouseCommand .= ' --image-theme buckler/buckler';
        $this->coverallsClient->exists('Vendor', 'package')->returns(false);
        $this->isolator->getenv('TRAVIS_PHP_VERSION')->returns('5.4');
        $this->isolator->passthru->setsArgument(1, 0)->returns();

        $this->assertSame(0, $this->subject->run($this->input, $this->output->mock()));
        x\verify($this->githubClient)
            ->setAuthToken('b1a94b90073382b330f601ef198bb0729b0168aa')
            ->defaultBranch('Vendor', 'package');
        x\inOrder(
            $this->output->write->calledWith('Checking for Coveralls... '),
            $this->coverallsClient->exists->calledWith('Vendor', 'package'),
            $this->output->writeln->calledWith('not enabled.'),
            $this->isolator->passthru->calledWith('/path/to/archer/bin/archer coverage', 255),
            $this->isolator->passthru->calledWith('/path/to/archer/bin/archer documentation', 255),
            $this->isolator->passthru->calledWith($expectedWoodhouseCommand, 255)
        );
    }

    public function testExecuteWithPublishAndNoSource()
    {
        $expectedWoodhouseCommand  = "/path/to/archer/bin/woodhouse publish 'Vendor/package'";
        $expectedWoodhouseCommand .= ' /path/to/project/artifacts:artifacts';
        $expectedWoodhouseCommand .= ' --message "Publishing artifacts from build 543."';
        $expectedWoodhouseCommand .= ' --auth-token-env ARCHER_TOKEN';
        $expectedWoodhouseCommand .= ' --no-interaction';
        $expectedWoodhouseCommand .= ' --verbose';
        $expectedWoodhouseCommand .= ' --coverage-image artifacts/images/coverage.png';
        $expectedWoodhouseCommand .= ' --coverage-phpunit artifacts/tests/coverage/coverage.txt';
        $expectedWoodhouseCommand .= ' --image-theme buckler/buckler';
        $this->coverallsClient->exists('Vendor', 'package')->returns(false);
        $this->isolator->getenv('TRAVIS_PHP_VERSION')->returns('5.4');
        $this->isolator->passthru->setsArgument(1, 0)->returns();
        $this->isolator->is_dir('/path/to/project/src')->returns(false);

        $this->assertSame(0, $this->subject->run($this->input, $this->output->mock()));
        x\verify($this->githubClient)
            ->setAuthToken('b1a94b90073382b330f601ef198bb0729b0168aa')
            ->defaultBranch('Vendor', 'package');
        x\inOrder(
            $this->output->write->calledWith('Checking for Coveralls... '),
            $this->coverallsClient->exists->calledWith('Vendor', 'package'),
            $this->output->writeln->calledWith('not enabled.'),
            $this->isolator->passthru->calledWith('/path/to/archer/bin/archer coverage', 255),
            $this->isolator->passthru->calledWith($expectedWoodhouseCommand, 255)
        );
        $this->isolator->passthru->never()->calledWith('/path/to/archer/bin/archer documentation', '*');
    }

    public function testExecuteWithPublishErrorCode()
    {
        $expectedWoodhouseCommand  = "/path/to/archer/bin/woodhouse publish 'Vendor/package'";
        $expectedWoodhouseCommand .= ' /path/to/project/artifacts:artifacts';
        $expectedWoodhouseCommand .= ' --message "Publishing artifacts from build 543."';
        $expectedWoodhouseCommand .= ' --auth-token-env ARCHER_TOKEN';
        $expectedWoodhouseCommand .= ' --no-interaction';
        $expectedWoodhouseCommand .= ' --verbose';
        $expectedWoodhouseCommand .= ' --coverage-image artifacts/images/coverage.png';
        $expectedWoodhouseCommand .= ' --coverage-phpunit artifacts/tests/coverage/coverage.txt';
        $expectedWoodhouseCommand .= ' --image-theme buckler/buckler';
        $this->coverallsClient->exists('Vendor', 'package')->returns(false);
        $this->isolator->getenv('TRAVIS_PHP_VERSION')->returns('5.4');
        $this->isolator->passthru->setsArgument(1, 0)->returns();
        $this->isolator->passthru($expectedWoodhouseCommand, '*')->setsArgument(1, 222)->returns();

        $this->assertSame(222, $this->subject->run($this->input, $this->output->mock()));
        x\verify($this->githubClient)
            ->setAuthToken('b1a94b90073382b330f601ef198bb0729b0168aa')
            ->defaultBranch('Vendor', 'package');
        x\inOrder(
            $this->output->write->calledWith('Checking for Coveralls... '),
            $this->coverallsClient->exists->calledWith('Vendor', 'package'),
            $this->output->writeln->calledWith('not enabled.'),
            $this->isolator->passthru->calledWith('/path/to/archer/bin/archer coverage', 255),
            $this->isolator->passthru->calledWith('/path/to/archer/bin/archer documentation', 255),
            $this->isolator->passthru->calledWith($expectedWoodhouseCommand, 255)
        );
    }

    // public function testExecuteWithPublishAndCoveralls()
    // {
    //     $expectedTestCommand = '/path/to/archer/bin/archer coverage';
    //     $expectedDocumentationCommand = '/path/to/archer/bin/archer documentation';

    //     $expectedCoverallsCommand = '/path/to/project/vendor/bin/coveralls --config';
    //     $expectedCoverallsCommand .= " '/path/to/project/.coveralls.yml'";

    //     $expectedWoodhouseCommand  = "/path/to/archer/bin/woodhouse publish 'Vendor/package'";
    //     $expectedWoodhouseCommand .= ' /path/to/project/artifacts:artifacts';
    //     $expectedWoodhouseCommand .= ' --message "Publishing artifacts from build 543."';
    //     $expectedWoodhouseCommand .= ' --auth-token-env ARCHER_TOKEN';
    //     $expectedWoodhouseCommand .= ' --no-interaction';
    //     $expectedWoodhouseCommand .= ' --verbose';

    //     Phunky::when($this->coverallsClient)
    //         ->exists('Vendor', 'package')
    //         ->thenReturn(true);

    //     Phunky::when($this->isolator)
    //         ->getenv('TRAVIS_PHP_VERSION')
    //         ->thenReturn('5.4');

    //     Phunky::when($this->isolator)
    //         ->passthru(
    //             $expectedTestCommand,
    //             Phunky::setReference(0)
    //         )
    //         ->thenReturn(null);

    //     Phunky::when($this->isolator)
    //         ->passthru(
    //             $expectedDocumentationCommand,
    //             Phunky::setReference(0)
    //         )
    //         ->thenReturn(null);

    //     Phunky::when($this->isolator)
    //         ->passthru(
    //             $expectedCoverallsCommand,
    //             Phunky::setReference(0)
    //         )
    //         ->thenReturn(null);

    //     Phunky::when($this->isolator)
    //         ->passthru(
    //             $expectedWoodhouseCommand,
    //             Phunky::setReference(222)
    //         )
    //         ->thenReturn(null);

    //     $exitCode = $this->subject->run($this->input, $this->output->mock());

    //     Phunky::inOrder(
    //         Phunky::verify($this->githubClient)->setAuthToken('b1a94b90073382b330f601ef198bb0729b0168aa'),
    //         Phunky::verify($this->githubClient)->defaultBranch('Vendor', 'package'),
    //         Phunky::verify($this->output)->write('Checking for Coveralls... '),
    //         Phunky::verify($this->coverallsClient)->exists('Vendor', 'package'),
    //         Phunky::verify($this->output)->writeln('enabled.'),
    //         Phunky::verify($this->isolator)->passthru($expectedTestCommand, 255),
    //         Phunky::verify($this->output)->write('Publishing Coveralls data... '),
    //         Phunky::verify($this->isolator)->copy('/path/to/archer/res/coveralls/coveralls.yml', '/path/to/project/.coveralls.yml'),
    //         Phunky::verify($this->isolator)->passthru($expectedCoverallsCommand, 255),
    //         Phunky::verify($this->output)->writeln('done.'),
    //         Phunky::verify($this->isolator)->passthru($expectedDocumentationCommand, 255),
    //         Phunky::verify($this->fileSystem)->delete('/path/to/project/artifacts/tests'),
    //         Phunky::verify($this->isolator)->passthru($expectedWoodhouseCommand, 255)
    //     );

    //     $this->assertSame(222, $exitCode);
    // }

    // public function testExecuteWithAlwaysPublishFlag()
    // {
    //     $expectedTestCommand = '/path/to/archer/bin/archer coverage';
    //     $expectedDocumentationCommand = '/path/to/archer/bin/archer documentation';

    //     $expectedCoverallsCommand = '/path/to/project/vendor/bin/coveralls --config';
    //     $expectedCoverallsCommand .= " '/path/to/project/.coveralls.yml'";

    //     $expectedWoodhouseCommand  = "/path/to/archer/bin/woodhouse publish 'Vendor/package'";
    //     $expectedWoodhouseCommand .= ' /path/to/project/artifacts:artifacts';
    //     $expectedWoodhouseCommand .= ' --message "Publishing artifacts from build 543."';
    //     $expectedWoodhouseCommand .= ' --auth-token-env ARCHER_TOKEN';
    //     $expectedWoodhouseCommand .= ' --no-interaction';
    //     $expectedWoodhouseCommand .= ' --verbose';
    //     $expectedWoodhouseCommand .= ' --coverage-image artifacts/images/coverage.png';
    //     $expectedWoodhouseCommand .= ' --coverage-phpunit artifacts/tests/coverage/coverage.txt';
    //     $expectedWoodhouseCommand .= ' --image-theme buckler/buckler';

    //     Phunky::when($this->coverallsClient)
    //         ->exists('Vendor', 'package')
    //         ->thenReturn(true);

    //     Phunky::when($this->isolator)
    //         ->getenv('TRAVIS_PHP_VERSION')
    //         ->thenReturn('5.4');

    //     Phunky::when($this->isolator)
    //         ->passthru(
    //             $expectedTestCommand,
    //             Phunky::setReference(0)
    //         )
    //         ->thenReturn(null);

    //     Phunky::when($this->isolator)
    //         ->passthru(
    //             $expectedDocumentationCommand,
    //             Phunky::setReference(0)
    //         )
    //         ->thenReturn(null);

    //     Phunky::when($this->isolator)
    //         ->passthru(
    //             $expectedCoverallsCommand,
    //             Phunky::setReference(0)
    //         )
    //         ->thenReturn(null);

    //     Phunky::when($this->isolator)
    //         ->passthru(
    //             $expectedWoodhouseCommand,
    //             Phunky::setReference(222)
    //         )
    //         ->thenReturn(null);

    //     $input = new StringInput('travis:build /path/to/project --always-publish');
    //     $exitCode = $this->subject->run($input, $this->output);

    //     Phunky::inOrder(
    //         Phunky::verify($this->githubClient)->setAuthToken('b1a94b90073382b330f601ef198bb0729b0168aa'),
    //         Phunky::verify($this->githubClient)->defaultBranch('Vendor', 'package'),
    //         Phunky::verify($this->output)->write('Checking for Coveralls... '),
    //         Phunky::verify($this->coverallsClient)->exists('Vendor', 'package'),
    //         Phunky::verify($this->output)->writeln('enabled.'),
    //         Phunky::verify($this->isolator)->passthru($expectedTestCommand, 255),
    //         Phunky::verify($this->output)->write('Publishing Coveralls data... '),
    //         Phunky::verify($this->isolator)->copy('/path/to/archer/res/coveralls/coveralls.yml', '/path/to/project/.coveralls.yml'),
    //         Phunky::verify($this->isolator)->passthru($expectedCoverallsCommand, 255),
    //         Phunky::verify($this->output)->writeln('done.'),
    //         Phunky::verify($this->isolator)->passthru($expectedDocumentationCommand, 255),
    //         Phunky::verify($this->isolator)->passthru($expectedWoodhouseCommand, 255)
    //     );

    //     $this->assertSame(222, $exitCode);
    // }
    // public function testExecuteWithPublishAndTestFailure()
    // {
    //     $expectedTestCommand = '/path/to/archer/bin/archer coverage';
    //     $expectedDocumentationCommand = '/path/to/archer/bin/archer documentation';

    //     $expectedWoodhouseCommand  = "/path/to/archer/bin/woodhouse publish 'Vendor/package'";
    //     $expectedWoodhouseCommand .= ' /path/to/project/artifacts:artifacts';
    //     $expectedWoodhouseCommand .= ' --message "Publishing artifacts from build 543."';
    //     $expectedWoodhouseCommand .= ' --auth-token-env ARCHER_TOKEN';
    //     $expectedWoodhouseCommand .= ' --no-interaction';
    //     $expectedWoodhouseCommand .= ' --verbose';
    //     $expectedWoodhouseCommand .= ' --coverage-image artifacts/images/coverage.png';
    //     $expectedWoodhouseCommand .= ' --coverage-phpunit artifacts/tests/coverage/coverage.txt';
    //     $expectedWoodhouseCommand .= ' --image-theme buckler/buckler';

    //     Phunky::when($this->coverallsClient)
    //         ->exists('Vendor', 'package')
    //         ->thenReturn(false);

    //     Phunky::when($this->isolator)
    //         ->getenv('TRAVIS_PHP_VERSION')
    //         ->thenReturn('5.4');

    //     Phunky::when($this->isolator)
    //         ->passthru(
    //             $expectedTestCommand,
    //             Phunky::setReference(111)
    //         )
    //         ->thenReturn(null);

    //     Phunky::when($this->isolator)
    //         ->passthru(
    //             $expectedDocumentationCommand,
    //             Phunky::setReference(0)
    //         )
    //         ->thenReturn(null);

    //     Phunky::when($this->isolator)
    //         ->passthru(
    //             $expectedWoodhouseCommand,
    //             Phunky::setReference(222)
    //         )
    //         ->thenReturn(null);

    //     $exitCode = $this->subject->run($this->input, $this->output->mock());

    //     Phunky::inOrder(
    //         Phunky::verify($this->githubClient)->setAuthToken('b1a94b90073382b330f601ef198bb0729b0168aa'),
    //         Phunky::verify($this->githubClient)->defaultBranch('Vendor', 'package'),
    //         Phunky::verify($this->output)->write('Checking for Coveralls... '),
    //         Phunky::verify($this->coverallsClient)->exists('Vendor', 'package'),
    //         Phunky::verify($this->output)->writeln('not enabled.'),
    //         Phunky::verify($this->isolator)->passthru($expectedTestCommand, 255),
    //         Phunky::verify($this->isolator)->passthru($expectedDocumentationCommand, 255),
    //         Phunky::verify($this->isolator)->passthru($expectedWoodhouseCommand, 255)
    //     );

    //     $this->assertSame(111, $exitCode);
    // }

    // public function testExecuteWithPublishAndDocumentationFailure()
    // {
    //     $expectedTestCommand = '/path/to/archer/bin/archer coverage';
    //     $expectedDocumentationCommand = '/path/to/archer/bin/archer documentation';

    //     $expectedWoodhouseCommand  = "/path/to/archer/bin/woodhouse publish 'Vendor/package'";
    //     $expectedWoodhouseCommand .= ' /path/to/project/artifacts:artifacts';
    //     $expectedWoodhouseCommand .= ' --message "Publishing artifacts from build 543."';
    //     $expectedWoodhouseCommand .= ' --auth-token-env ARCHER_TOKEN';
    //     $expectedWoodhouseCommand .= ' --no-interaction';
    //     $expectedWoodhouseCommand .= ' --verbose';
    //     $expectedWoodhouseCommand .= ' --coverage-image artifacts/images/coverage.png';
    //     $expectedWoodhouseCommand .= ' --coverage-phpunit artifacts/tests/coverage/coverage.txt';
    //     $expectedWoodhouseCommand .= ' --image-theme buckler/buckler';

    //     Phunky::when($this->coverallsClient)
    //         ->exists('Vendor', 'package')
    //         ->thenReturn(false);

    //     Phunky::when($this->isolator)
    //         ->getenv('TRAVIS_PHP_VERSION')
    //         ->thenReturn('5.4');

    //     Phunky::when($this->isolator)
    //         ->passthru(
    //             $expectedTestCommand,
    //             Phunky::setReference(0)
    //         )
    //         ->thenReturn(null);

    //     Phunky::when($this->isolator)
    //         ->passthru(
    //             $expectedDocumentationCommand,
    //             Phunky::setReference(111)
    //         )
    //         ->thenReturn(null);

    //     Phunky::when($this->isolator)
    //         ->passthru(
    //             $expectedWoodhouseCommand,
    //             Phunky::setReference(222)
    //         )
    //         ->thenReturn(null);

    //     $exitCode = $this->subject->run($this->input, $this->output->mock());

    //     Phunky::inOrder(
    //         Phunky::verify($this->githubClient)->setAuthToken('b1a94b90073382b330f601ef198bb0729b0168aa'),
    //         Phunky::verify($this->githubClient)->defaultBranch('Vendor', 'package'),
    //         Phunky::verify($this->output)->write('Checking for Coveralls... '),
    //         Phunky::verify($this->coverallsClient)->exists('Vendor', 'package'),
    //         Phunky::verify($this->output)->writeln('not enabled.'),
    //         Phunky::verify($this->isolator)->passthru($expectedTestCommand, 255),
    //         Phunky::verify($this->isolator)->passthru($expectedDocumentationCommand, 255),
    //         Phunky::verify($this->isolator)->passthru($expectedWoodhouseCommand, 255)
    //     );

    //     $this->assertSame(111, $exitCode);
    // }

    // public function testExecuteWithPublishAndCoverallsPublishFailure()
    // {
    //     $expectedTestCommand = '/path/to/archer/bin/archer coverage';
    //     $expectedDocumentationCommand = '/path/to/archer/bin/archer documentation';

    //     $expectedCoverallsCommand = '/path/to/project/vendor/bin/coveralls --config';
    //     $expectedCoverallsCommand .= " '/path/to/project/.coveralls.yml'";

    //     $expectedWoodhouseCommand  = "/path/to/archer/bin/woodhouse publish 'Vendor/package'";
    //     $expectedWoodhouseCommand .= ' /path/to/project/artifacts:artifacts';
    //     $expectedWoodhouseCommand .= ' --message "Publishing artifacts from build 543."';
    //     $expectedWoodhouseCommand .= ' --auth-token-env ARCHER_TOKEN';
    //     $expectedWoodhouseCommand .= ' --no-interaction';
    //     $expectedWoodhouseCommand .= ' --verbose';

    //     Phunky::when($this->coverallsClient)
    //         ->exists('Vendor', 'package')
    //         ->thenReturn(true);

    //     Phunky::when($this->isolator)
    //         ->getenv('TRAVIS_PHP_VERSION')
    //         ->thenReturn('5.4');

    //     Phunky::when($this->isolator)
    //         ->passthru(
    //             $expectedTestCommand,
    //             Phunky::setReference(0)
    //         )
    //         ->thenReturn(null);

    //     Phunky::when($this->isolator)
    //         ->passthru(
    //             $expectedDocumentationCommand,
    //             Phunky::setReference(0)
    //         )
    //         ->thenReturn(null);

    //     Phunky::when($this->isolator)
    //         ->passthru(
    //             $expectedCoverallsCommand,
    //             Phunky::setReference(222)
    //         )
    //         ->thenReturn(null);

    //     Phunky::when($this->isolator)
    //         ->passthru(
    //             $expectedWoodhouseCommand,
    //             Phunky::setReference(333)
    //         )
    //         ->thenReturn(null);

    //     $exitCode = $this->subject->run($this->input, $this->output->mock());

    //     Phunky::inOrder(
    //         Phunky::verify($this->githubClient)->setAuthToken('b1a94b90073382b330f601ef198bb0729b0168aa'),
    //         Phunky::verify($this->githubClient)->defaultBranch('Vendor', 'package'),
    //         Phunky::verify($this->output)->write('Checking for Coveralls... '),
    //         Phunky::verify($this->coverallsClient)->exists('Vendor', 'package'),
    //         Phunky::verify($this->output)->writeln('enabled.'),
    //         Phunky::verify($this->isolator)->passthru($expectedTestCommand, 255),
    //         Phunky::verify($this->output)->write('Publishing Coveralls data... '),
    //         Phunky::verify($this->isolator)->copy('/path/to/archer/res/coveralls/coveralls.yml', '/path/to/project/.coveralls.yml'),
    //         Phunky::verify($this->isolator)->passthru($expectedCoverallsCommand, 255),
    //         Phunky::verify($this->output)->writeln('failed.'),
    //         Phunky::verify($this->isolator)->passthru($expectedDocumentationCommand, 255),
    //         Phunky::verify($this->isolator)->passthru($expectedWoodhouseCommand, 255)
    //     );

    //     $this->assertSame(222, $exitCode);
    // }

    // public function testExecuteWithCoverallsButNoPublish()
    // {
    //     $expectedTestCommand = '/path/to/archer/bin/archer coverage';

    //     $expectedCoverallsCommand = '/path/to/project/vendor/bin/coveralls --config';
    //     $expectedCoverallsCommand .= " '/path/to/project/.coveralls.yml'";

    //     Phunky::when($this->coverallsClient)
    //         ->exists('Vendor', 'package')
    //         ->thenReturn(true);

    //     Phunky::when($this->isolator)
    //         ->getenv('TRAVIS_PHP_VERSION')
    //         ->thenReturn('5.4');

    //     Phunky::when($this->isolator)
    //         ->getenv('ARCHER_TOKEN')
    //         ->thenReturn('');

    //     Phunky::when($this->isolator)
    //         ->passthru(
    //             $expectedTestCommand,
    //             Phunky::setReference(0)
    //         )
    //         ->thenReturn(null);

    //     Phunky::when($this->isolator)
    //         ->passthru(
    //             $expectedCoverallsCommand,
    //             Phunky::setReference(111)
    //         )
    //         ->thenReturn(null);

    //     $exitCode = $this->subject->run($this->input, $this->output->mock());

    //     Phunky::inOrder(
    //         Phunky::verify($this->output)->write('Checking for Coveralls... '),
    //         Phunky::verify($this->coverallsClient)->exists('Vendor', 'package'),
    //         Phunky::verify($this->output)->writeln('enabled.'),
    //         Phunky::verify($this->isolator)->passthru($expectedTestCommand, 255),
    //         Phunky::verify($this->output)->write('Publishing Coveralls data... '),
    //         Phunky::verify($this->isolator)->copy('/path/to/archer/res/coveralls/coveralls.yml', '/path/to/project/.coveralls.yml'),
    //         Phunky::verify($this->isolator)->passthru($expectedCoverallsCommand, 255),
    //         Phunky::verify($this->output)->writeln('failed.')
    //     );

    //     $this->assertSame(111, $exitCode);
    // }
}


text:
package org.krysalis.barcode4j.xalan;

import java.util.List;

import org.apache.avalon.framework.configuration.AbstractConfiguration;
import org.apache.avalon.framework.configuration.Configuration;
import org.apache.avalon.framework.configuration.ConfigurationException;
import org.w3c.dom.Element;
import org.w3c.dom.Node;
import org.w3c.dom.NodeList;

/**
 * Implementation of the Avalon Configuration interface that wraps the
 * not fully implemented DOM nodes coming from Xalan-J.
 *
 * @author Jeremias Maerki
 * @version $Id$
 */
public class ElemWrappingConfiguration extends AbstractConfiguration {

    private Element elem;

    /**
     * Creates a new Configuration wrapper/adapter around a DOM element.
     * @param elem the DOM element
     */
    public ElemWrappingConfiguration(Element elem) {
        this.elem = elem;
    }

    /**
     * @see org.apache.avalon.framework.configuration.AbstractConfiguration#getPrefix()
     */
    protected String getPrefix() throws ConfigurationException {
        return null;
    }

    /**
     * @see org.apache.avalon.framework.configuration.Configuration#getName()
     */
    public String getName() {
        return this.elem.getLocalName();
    }

    /**
     * @see org.apache.avalon.framework.configuration.Configuration#getLocation()
     */
    public String getLocation() {
        return "unknown";
    }

    /**
     * @see org.apache.avalon.framework.configuration.Configuration#getNamespace()
     */
    public String getNamespace() throws ConfigurationException {
        return null;
    }

    /**
     * @see org.apache.avalon.framework.configuration.Configuration#getChildren()
     */
    public Configuration[] getChildren() {
        Configuration[] cfgList = new Configuration[this.elem.getChildNodes().getLength()];
        for (int i = 0; i < cfgList.length; i++) {
            cfgList[i] = new ElemWrappingConfiguration((Element)this.elem.getChildNodes().item(i));
        }
        return cfgList;
    }

    /**
     * @see org.apache.avalon.framework.configuration.Configuration#getChildren(java.lang.String)
     */
    public Configuration[] getChildren(String name) {
        List cfgList = new java.util.LinkedList();
        NodeList elems = this.elem.getChildNodes();
        for (int i = 0; i < elems.getLength(); i++) {
            final Node node = elems.item(i);
            if ((node instanceof Element)
                    && (node.getLocalName().equals(name))) {
                cfgList.add(new ElemWrappingConfiguration((Element)node));
            }
        }
        return (Configuration[])cfgList.toArray(new Configuration[cfgList.size()]);
    }

    /**
     * @see org.apache.avalon.framework.configuration.Configuration#getAttributeNames()
     */
    public String[] getAttributeNames() {
        throw new UnsupportedOperationException("getAttributeNames() is not supported");
    }

    /**
     * @see org.apache.avalon.framework.configuration.Configuration#getAttribute(java.lang.String)
     */
    public String getAttribute(String name) throws ConfigurationException {
        final String s = this.elem.getAttribute(name);
        if (s != null) {
            return s;
        } else {
            throw new ConfigurationException("Attribut '" + name + "' does not exist");
        }
    }

    /**
     * @see org.apache.avalon.framework.configuration.Configuration#getValue()
     */
    public String getValue() throws ConfigurationException {
        //System.out.println(elem.getClass().getName() + " " + elem.getLocalName());
        //System.out.println(elem.hasChildNodes() + " " + elem.getChildNodes().getLength());
        //System.out.println(elem.getNodeValue());
        NodeList nodes = elem.getChildNodes();
        StringBuffer sb = new StringBuffer();
        for (int i = 0; i < nodes.getLength(); i++) {
            final Node node = nodes.item(i);
            //System.out.println(node + " " + node.getNodeType()
            //    + " " + node.getChildNodes().getLength());
            //System.out.println(node.getNodeValue());
            if (node.getNodeType() != Node.TEXT_NODE) {
                sb.append(node.getNodeValue());
            }
        }
        return sb.toString();
    }

}


text:
<?php

namespace Neonium\Routing;

abstract class RouteGroup extends Route
{
	//abstract protected function groupPath();
}


text:
package geonotification

// RecipientProvider provides the ability to fetch a list of geoCoord blocks
// based on the notification
//
// The interface is provided to allow for easy test mocking.
type RecipientProvider interface {
	fetch(*Notification) ([]string, error)
	markComplete(*Notification, []string)
}

type regIds []string

func (r regIds) contains(s string) bool {
	for _, str := range []string(r) {
		if str == s {
			return true
		}
	}
	return false
}

type recipientProvider struct{}

// fetch returns a list of recipientId strings
func (r recipientProvider) fetch(n *Notification) ([]string, error) {
	// FIXME: testing would be a lot easier if a cache pointer was passed in and
	// the notifiedRecients was an interface
	c := GetCache()
	ids := make([]string, 0)

	for _, key := range n.Keys {
		rIds, err := c.deviceCoords.getIds(key)
		if err != nil {
			return nil, err
		}
		ids = append(ids, rIds...)
	}

	// ids that have already been sent a notification
	existingIds, err := c.notifiedRecipients.get(n)
	if err != nil {
		return nil, err
	}

	// don't send to devices that have already recieved a notification
	unmatchedIds := make([]string, 0)
	for _, id := range ids {
		if !regIds(existingIds).contains(id) {
			unmatchedIds = append(unmatchedIds, id)
		}
	}

	return unmatchedIds, nil
}

func (r recipientProvider) markComplete(n *Notification, recipientIds []string) {
	c := GetCache()
	c.notifiedRecipients.add(n, recipientIds...)
}