text:
package stroom.pipeline.reader;

import stroom.test.common.util.ZipResource;
import stroom.test.common.util.test.StroomUnitTest;

import org.junit.jupiter.api.AfterAll;
import org.junit.jupiter.api.BeforeAll;
import org.junit.jupiter.api.Disabled;
import org.junit.jupiter.api.Test;

import java.io.IOException;
import java.io.InputStreamReader;
import java.io.LineNumberReader;
import java.nio.charset.StandardCharsets;
import java.util.zip.ZipInputStream;

import static org.assertj.core.api.Assertions.assertThat;

// TODO : Add test data
@Disabled
class TestBOMRemovalInputStream extends StroomUnitTest {

    private static ZipResource bomBlank = new ZipResource("stroom/resource/server/BOM_BLANK");
    private static ZipResource bomContent = new ZipResource("stroom/resource/server/BOM_CONTENT");

    @BeforeAll
    static void before() throws IOException {
        bomBlank.before();
        bomContent.before();
    }

    @AfterAll
    static void after() {
        bomBlank.after();
        bomContent.after();
    }

    @Test
    void testBlank() throws IOException {
        final LineNumberReader lineNumberReader = getLineNumberReader(bomBlank);
        assertThat(lineNumberReader.readLine()).isNull();
        lineNumberReader.close();
    }

    @Test
    void testContent() throws IOException {
        final LineNumberReader lineNumberReader = getLineNumberReader(bomContent);
        assertThat(lineNumberReader.readLine()).isNotNull();
        lineNumberReader.close();
    }

    private LineNumberReader getLineNumberReader(final ZipResource zipResource) throws IOException {
        final ZipInputStream zipInputStream = zipResource.getZipInputStream();
        zipInputStream.getNextEntry();

        return new LineNumberReader(new InputStreamReader(
                new BOMRemovalInputStream(zipInputStream, StandardCharsets.UTF_8.toString()), StandardCharsets.UTF_8));
    }
}


text:
import os
import yaml

from cekit.descriptor import Descriptor

volume_schema = [yaml.safe_load("""
map:
  name: {type: str}
  path: {type: str, required: True}""")]

class Volume(Descriptor):
    """Object representing Volume.
    If 'name' is not present its generated as basename of 'path'

    Args:
      descriptor - yaml file containing volume object
    """
    def __init__(self, descriptor):
        self.schemas = volume_schema
        super(Volume, self).__init__(descriptor)
        if 'name' not in self._descriptor:
            self._descriptor['name'] = os.path.basename(self._descriptor['path'])

redpajama_set_name: RedPajamaGithub


text: class Alert{static alert(){}}export default Alert;


text:
require File.expand_path(File.dirname(__FILE__) + '/../spec_helper')

describe School do

  before do
    @school=Factory(:school)
  end

  describe 'quicklist_items' do
    it 'should return the school  and district quicklist items' do
      id1= Factory(:intervention_definition)
      id2= Factory(:intervention_definition)
      district=@school.district
      district.quicklist_interventions << id1
      @school.quicklist_interventions << id2
      @school.quicklist.should == [id1, id2]

    end

  end

   describe 'grades_by_user' do
     it 'should return all grades in school when user has access to
     all students in the school' do
       user=mock_user
       @school.enrollments= [2,1,3,4].collect{|i| Factory(:enrollment,:grade=>i,:school=>@school)}
       user.should_receive('all_students_in_school?').with(@school).and_return(true)
       @school.grades_by_user(user).should == ['1','2','3','4']

    end

    it 'should not prepend * if there is only one' do
      @school.enrollments.create!(:grade=>'only',:student_id=>-1)
      user=mock_user
      user.stub!( :all_students_in_school? =>  true)
      @school.grades_by_user(user).should == ['only']

    end

    it 'should return subset of grades in the school where there is at least one student that the user has access to' do
      e=[2,1,4,3].collect{|i| Factory(:enrollment,:grade=>i, :school=>@school)}

      @school.enrollments=e
      user=mock_user
      g1 = Factory(:group, :students => [e[2].student], :school => @school)

      user.stub!( :all_students_in_school? =>  false, :group_ids => [g1.id])
      user.stub_association!(:special_user_groups, :grades_for_school=> ['2'])
      @school.grades_by_user(user).should == ['2','4']

    end

  end

   describe 'to_s' do
     it 'should return name' do
       School.new(:name=>"Test School").to_s.should == "Test School"
     end
   end

   describe 'enrollment_years' do
     it 'should return all when empty' do
       School.new.enrollment_years.should == []
     end

    it 'should return the years' do
      sch=Factory(:school)
      sch.enrollments.create!(:grade=>2)
      sch.enrollments.create!(:grade=>2,:end_year => 2009)
      sch.enrollments.create!(:grade=>2,:end_year => 2009)
      sch.enrollments.create!(:grade=>2,:end_year => 2008)
      sch.enrollments.create!(:grade=>2,:end_year => 2009)
      sch.enrollments.create!(:grade=>2,:end_year => 2010)
      sch.enrollments.create!(:grade=>2,:end_year => 2007)
      sch.enrollment_years.should == ['','2007','2008','2009','2010']
    end
   end

   describe 'setting user_school_assignments' do
     before :each do
       @sch=Factory(:school)
       @e1=@sch.user_school_assignments.create!(:user_id=>'1',:admin=>false)
       @e2=@sch.user_school_assignments.create!(:user_id=>'2',:admin=>true)
     end

     it 'should not change existing ones with an empty hash' do
       @sch.update_attribute('user_school_assignments_attributes',{})
       @sch.user_school_assignments.should =~ [@e1, @e2]
     end

     it 'should remove when destroyed' do
       @sch.update_attribute('user_school_assignments_attributes',[{:_destroy => '1', :id => @e1.id}, {:_destroy => '1', :id => @e2.id}])
       @sch.user_school_assignments.should be_empty
     end

     it 'should change existing ones when there are none' do
       @sch.update_attributes('user_school_assignments_attributes'=>[{:id =>@e1.id.to_s,:user_id=>'3'}])
       @e1.reload.user_id.should == 3
       @sch.user_school_assignments.should ==[@e1, @e2]
     end

     it 'should not validate when changing existing to match' do
       @sch.update_attributes('user_school_assignments_attributes'=>[{:id => @e1.id.to_s, :user_id=>'2',:admin=>true},{:id =>  @e2.id.to_s,:user_id=>'2'}])
       @sch.should_not be_valid
       @sch.user_school_assignments.first.errors_on(:admin).should_not be_nil
       @sch.user_school_assignments.first.errors_on(:user_id).should_not be_nil
       @sch.user_school_assignments.last.errors_on(:admin).should_not be_nil
       @sch.user_school_assignments.last.errors_on(:user_id).should_not be_nil
     end

     it 'should add new user_school_assignment' do
       @sch.update_attributes('user_school_assignments_attributes'=>[{:user_id=>1, :admin=>true}]).should be_true
       @sch.user_school_assignments.find_by_user_id_and_admin(1,true).should_not be_nil
       @sch.user_school_assignments[0..1].should == [@e1,@e2]
     end

     it 'should not new user_school_assignment that matches existing ' do
       @sch.update_attributes('user_school_assignments_attributes'=>[{:user_id=>'1', :admin=>false}]).should be_false
       @sch.should_not be_valid
     end

     it 'should not new user_school_assignment that matches changed existing ' do
       @sch.update_attributes({'user_school_assignments_attributes'=>[{:user_id=>1, :admin=>true},
                              {:id => @e1.id.to_s,:admin=>true}]}
                             ).should be_false
       @sch.should_not be_valid
     end

     it 'should not new user_school_assignment that matches itself' do
       @sch.update_attributes('user_school_assignments_attributes'=>
                              [{:user_id=>'3', :admin=>false},{:user_id=>'3', :admin=>false}]).should be_false
       @sch.should_not be_valid
     end

   end

end


text:
'use strict';

var emojies_defs      = require('./lib/data/full.json');
var emojies_shortcuts = require('./lib/data/shortcuts');
var emoji_html        = require('./lib/render');
var emoji_replace     = require('./lib/replace');
var normalize_opts    = require('./lib/normalize_opts');

module.exports = function emoji_plugin(md, options) {
  var defaults = {
    defs: emojies_defs,
    shortcuts: emojies_shortcuts,
    enabled: []
  };

  var opts = normalize_opts(md.utils.assign({}, defaults, options || {}));

  md.renderer.rules.emoji = emoji_html;

  md.core.ruler.push('emoji', emoji_replace(md, opts.defs, opts.shortcuts, opts.scanRE, opts.replaceRE));
};


text:
package gueei.binding.bindingProviders;

import gueei.binding.ViewAttribute;
import gueei.binding.viewAttributes.adapterView.listView.ItemSourceViewAttribute;
import gueei.binding.viewAttributes.adapterView.listView.CheckedItemPositionsViewAttribute;
import gueei.binding.viewAttributes.adapterView.listView.CheckedItemPositionViewAttribute;
import gueei.binding.viewAttributes.adapterView.listView.FilterConstraintViewAttribute;
import gueei.binding.viewAttributes.adapterView.listView.FilterViewAttribute;
import android.view.View;
import android.widget.ListView;

public class ListViewProvider extends BindingProvider {

	@SuppressWarnings({ "unchecked" })
	@Override
	public <Tv extends View> ViewAttribute<Tv, ?> createAttributeForView(
			View view, String attributeId) {
		if (!(view instanceof ListView))
			return null;
		try {
			if (attributeId.equals("checkedItemPosition")) {
				return (ViewAttribute<Tv, ?>) new CheckedItemPositionViewAttribute((ListView)view);
			}else if (attributeId.equals("checkedItemPositions")) {
				return (ViewAttribute<Tv, ?>) new CheckedItemPositionsViewAttribute((ListView)view);
			}else if (attributeId.equals("filter")) {
				return (ViewAttribute<Tv, ?>) new FilterViewAttribute((ListView)view);
			}else if (attributeId.equals("filterConstraint")) {
				return (ViewAttribute<Tv, ?>) new FilterConstraintViewAttribute((ListView)view);
			}if (attributeId.equals("itemSource"))
				return (ViewAttribute<Tv, ?>) new ItemSourceViewAttribute((ListView)view, "itemSource");
		} catch (Exception e) {
			// Actually it should never reach this statement
		}
		return null;
	}
}


text:
package org.orekit.files.ccsds;

import java.util.AbstractList;
import java.util.ArrayList;
import java.util.Collection;
import java.util.Collections;
import java.util.LinkedHashSet;
import java.util.List;
import java.util.ListIterator;
import java.util.Set;

import org.apache.commons.math3.geometry.euclidean.threed.Vector3D;
import org.apache.commons.math3.linear.RealMatrix;
import org.apache.commons.math3.util.Pair;
import org.orekit.errors.OrekitException;
import org.orekit.errors.OrekitMessages;
import org.orekit.files.general.OrbitFile;
import org.orekit.files.general.SatelliteInformation;
import org.orekit.files.general.SatelliteTimeCoordinate;
import org.orekit.frames.Frame;
import org.orekit.frames.LOFType;
import org.orekit.orbits.CartesianOrbit;
import org.orekit.time.AbsoluteDate;

/** This class stocks all the information of the OEM File parsed by OEMParser. It
 * contains the header and a list of Ephemerides Blocks each containing
 * metadata, a list of ephemerides data lines and optional covariance matrices
 * (and their metadata).
 * @author sports
 * @since 6.1
 */
public class OEMFile extends ODMFile {

    /** List of ephemeris blocks. */
    private List<EphemeridesBlock> ephemeridesBlocks;

    /** OEMFile constructor. */
    public OEMFile() {
        ephemeridesBlocks = new ArrayList<EphemeridesBlock>();
    }

    /** Add a block to the list of ephemeris blocks. */
    void addEphemeridesBlock() {
        ephemeridesBlocks.add(new EphemeridesBlock());
    }

    /**Get the list of ephemerides blocks as an unmodifiable list.
     * @return the list of ephemerides blocks
     */
    public List<EphemeridesBlock> getEphemeridesBlocks() {
        return Collections.unmodifiableList(ephemeridesBlocks);
    }

    /** Check that, according to the CCSDS standard, every OEMBlock has the same time system.
     *  @exception OrekitException if some blocks do not have the same time system
     */
    void checkTimeSystems() throws OrekitException {
        final OrbitFile.TimeSystem timeSystem = getEphemeridesBlocks().get(0).getMetaData().getTimeSystem();
        for (final EphemeridesBlock block : ephemeridesBlocks) {
            if (!timeSystem.equals(block.getMetaData().getTimeSystem())) {
                throw new OrekitException(OrekitMessages.CCSDS_OEM_INCONSISTENT_TIME_SYSTEMS,
                                          timeSystem, block.getMetaData().getTimeSystem());
            }
        }
    }

    /** {@inheritDoc}
     *

     * We return here only the coordinate systems of the first ephemerides block.
     *

     */
    @Override
    public String getCoordinateSystem() {
        return ephemeridesBlocks.get(0).getMetaData().getFrame().toString();
    }

    /** {@inheritDoc} */
    @Override
    public OrbitFile.TimeSystem getTimeSystem() {
        return ephemeridesBlocks.get(0).getMetaData().getTimeSystem();
    }

    /** {@inheritDoc}
     *

     * We return here only the start time of the first ephemerides block.
     *

     */
    @Override
    public AbsoluteDate getEpoch() {
        return ephemeridesBlocks.get(0).getStartTime();
    }

    /** {@inheritDoc} */
    @Override
    public Collection<SatelliteInformation> getSatellites() {
        final Set<String> availableSatellites = getAvailableSatelliteIds();
        final List<SatelliteInformation> satellites =
                new ArrayList<SatelliteInformation>(availableSatellites.size());
        for (String satId : availableSatellites) {
            satellites.add(new SatelliteInformation(satId));
        }
        return satellites;
    }

    /** {@inheritDoc} */
    @Override
    public int getSatelliteCount() {
        return getAvailableSatelliteIds().size();
    }

    /** {@inheritDoc} */
    @Override
    public SatelliteInformation getSatellite(final String satId) {
        final Set<String> availableSatellites = getAvailableSatelliteIds();
        if (availableSatellites.contains(satId)) {
            return new SatelliteInformation(satId);
        } else {
            return null;
        }
    }

    /** {@inheritDoc} */
    @Override
    public List<SatelliteTimeCoordinate> getSatelliteCoordinates(final String satId) {
        // first we collect all available EphemeridesBlocks for this satellite
        // and return a list view of the actual EphemeridesBlocks transforming the
        // EphemeridesDataLines into SatelliteTimeCoordinates in a lazy manner.
        final List<Pair<Integer, Integer>> ephemeridesBlockMapping = new ArrayList<Pair<Integer, Integer>>();
        final ListIterator<EphemeridesBlock> it = ephemeridesBlocks.listIterator();
        int totalDataLines = 0;
        while (it.hasNext()) {
            final int index = it.nextIndex();
            final EphemeridesBlock block = it.next();

            if (block.getMetaData().getObjectID().equals(satId)) {
                final int dataLines = block.getEphemeridesDataLines().size();
                totalDataLines += dataLines;
                ephemeridesBlockMapping.add(new Pair<Integer, Integer>(index, dataLines));
            }
        }

        // the total number of coordinates for this satellite
        final int totalNumberOfCoordinates = totalDataLines;

        return new AbstractList<SatelliteTimeCoordinate>() {

            @Override
            public SatelliteTimeCoordinate get(final int index) {
                if (index < 0 || index >= size()) {
                    throw new IndexOutOfBoundsException();
                }

                // find the corresponding ephemerides block and data line
                int ephemeridesBlockIndex = -1;
                int dataLineIndex = index;
                for (Pair<Integer, Integer> pair : ephemeridesBlockMapping) {
                    if (dataLineIndex < pair.getValue()) {
                        ephemeridesBlockIndex = pair.getKey();
                        break;
                    } else {
                        dataLineIndex -= pair.getValue();
                    }
                }

                if (ephemeridesBlockIndex == -1 || dataLineIndex == -1) {
                    throw new IndexOutOfBoundsException();
                }

                final EphemeridesDataLine dataLine =
                        ephemeridesBlocks.get(ephemeridesBlockIndex).getEphemeridesDataLines().get(dataLineIndex);
                final CartesianOrbit orbit = dataLine.getOrbit();
                return new SatelliteTimeCoordinate(orbit.getDate(), orbit.getPVCoordinates());
            }

            @Override
            public int size() {
                return totalNumberOfCoordinates;
            }

        };
    }

    /** Returns a set of all available satellite Ids in this OEMFile.
     * @return a set of all available satellite Ids
     */
    private Set<String> getAvailableSatelliteIds() {
        final Set<String> availableSatellites = new LinkedHashSet<String>();
        for (EphemeridesBlock block : ephemeridesBlocks) {
            availableSatellites.add(block.getMetaData().getObjectID());
        }
        return availableSatellites;
    }

    /** The Ephemerides Blocks class contain metadata, the list of ephemerides data
     * lines and optional covariance matrices (and their metadata). The reason
     * for which the ephemerides have been separated into blocks is that the
     * ephemerides of two different blocks are not suited for interpolation.
     * @author sports
     */
    public class EphemeridesBlock {

        /** Meta-data for the block. */
        private ODMMetaData metaData;

        /** Start of total time span covered by ephemerides data and covariance
         * data. */
        private AbsoluteDate startTime;

        /** End of total time span covered by ephemerides data and covariance
         * data. */
        private AbsoluteDate stopTime;

        /** Start of useable time span covered by ephemerides data, it may be
         * necessary to allow for proper interpolation. */
        private AbsoluteDate useableStartTime;

        /** End of useable time span covered by ephemerides data, it may be
         * necessary to allow for proper interpolation. */
        private AbsoluteDate useableStopTime;

        /** The interpolation method to be used. */
        private String interpolationMethod;

        /** The interpolation degree. */
        private int interpolationDegree;

        /** List of ephemerides data lines. */
        private List<EphemeridesDataLine> ephemeridesDataLines;

        /** List of covariance matrices. */
        private List<CovarianceMatrix> covarianceMatrices;

        /** Tests whether the reference frame has an epoch associated to it. */
        private boolean hasRefFrameEpoch;

        /** Ephemerides Data Lines comments. The list contains a string for each
         * line of comment. */
        private List<String> ephemeridesDataLinesComment;

        /** EphemeridesBlock constructor. */
        public EphemeridesBlock() {
            metaData = new ODMMetaData(OEMFile.this);
            ephemeridesDataLines = new ArrayList<EphemeridesDataLine>();
            covarianceMatrices = new ArrayList<CovarianceMatrix>();
        }

        /** Get the list of Ephemerides data lines.
         * @return the list of Ephemerides data lines
         */
        public List<EphemeridesDataLine> getEphemeridesDataLines() {
            return ephemeridesDataLines;
        }

        /** Get the list of Covariance Matrices.
         * @return the list of Covariance Matrices
         */
        public List<CovarianceMatrix> getCovarianceMatrices() {
            return covarianceMatrices;
        }

        /** Get the meta-data for the block.
         * @return meta-data for the block
         */
        public ODMMetaData getMetaData() {
            return metaData;
        }

        /** Get start of total time span covered by ephemerides data and
         * covariance data.
         * @return the start time
         */
        public AbsoluteDate getStartTime() {
            return startTime;
        }

        /** Set start of total time span covered by ephemerides data and
         * covariance data.
         * @param startTime the time to be set
         */
        void setStartTime(final AbsoluteDate startTime) {
            this.startTime = startTime;
        }

        /** Get end of total time span covered by ephemerides data and covariance
         * data.
         * @return the stop time
         */
        public AbsoluteDate getStopTime() {
            return stopTime;
        }

        /** Set end of total time span covered by ephemerides data and covariance
         * data.
         * @param stopTime the time to be set
         */
        void setStopTime(final AbsoluteDate stopTime) {
            this.stopTime = stopTime;
        }

        /** Get start of useable time span covered by ephemerides data, it may be
         * necessary to allow for proper interpolation.
         * @return the useable start time
         */
        public AbsoluteDate getUseableStartTime() {
            return useableStartTime;
        }

        /** Set start of useable time span covered by ephemerides data, it may be
         * necessary to allow for proper interpolation.
         * @param useableStartTime the time to be set
         */
        void setUseableStartTime(final AbsoluteDate useableStartTime) {
            this.useableStartTime = useableStartTime;
        }

        /** Get end of useable time span covered by ephemerides data, it may be
         * necessary to allow for proper interpolation.
         * @return the useable stop time
         */
        public AbsoluteDate getUseableStopTime() {
            return useableStopTime;
        }

        /** Set end of useable time span covered by ephemerides data, it may be
         * necessary to allow for proper interpolation.
         * @param useableStopTime the time to be set
         */
        void setUseableStopTime(final AbsoluteDate useableStopTime) {
            this.useableStopTime = useableStopTime;
        }

        /** Get the interpolation method to be used.
         * @return the interpolation method
         */
        public String getInterpolationMethod() {
            return interpolationMethod;
        }

        /** Set the interpolation method to be used.
         * @param interpolationMethod the interpolation method to be set
         */
        void setInterpolationMethod(final String interpolationMethod) {
            this.interpolationMethod = interpolationMethod;
        }

        /** Get the interpolation degree.
         * @return the interpolation degree
         */
        public int getInterpolationDegree() {
            return interpolationDegree;
        }

        /** Set the interpolation degree.
         * @param interpolationDegree the interpolation degree to be set
         */
        void setInterpolationDegree(final int interpolationDegree) {
            this.interpolationDegree = interpolationDegree;
        }

        /** Get boolean testing whether the reference frame has an epoch associated to it.
         * @return true if the reference frame has an epoch associated to it
         *         false otherwise
         */
        public boolean getHasRefFrameEpoch() {
            return hasRefFrameEpoch;
        }

        /** Set boolean testing whether the reference frame has an epoch associated to it.
         * @param hasRefFrameEpoch the boolean to be set.
         */
        void setHasRefFrameEpoch(final boolean hasRefFrameEpoch) {
            this.hasRefFrameEpoch = hasRefFrameEpoch;
        }

        /** Get the ephemerides data lines comment.
         * @return the comment
         */
        public List<String> getEphemeridesDataLinesComment() {
            return ephemeridesDataLinesComment;
        }

        /** Set the ephemerides data lines comment.
         * @param ephemeridesDataLinesComment the comment to be set
         */
        void setEphemeridesDataLinesComment(final List<String> ephemeridesDataLinesComment) {
            this.ephemeridesDataLinesComment = new ArrayList<String>(ephemeridesDataLinesComment);
        }
    }

    /** The EphemeridesDataLine class represents the content of an OEM ephemerides
     * data line and consists of a cartesian orbit and an optional acceleration
     * vector.
     * @author sports
     */
    public static class EphemeridesDataLine {

        /** The cartesian orbit relative to the ephemeris. */
        private CartesianOrbit orbit;

        /** The acceleration vector. */
        private Vector3D acceleration;

        /** The EphemeridesDataLine constructor.
         * @param orbit the orbit corresponding to the ephemeris
         * @param acceleration the acceleration vector
         */
        EphemeridesDataLine(final CartesianOrbit orbit, final Vector3D acceleration) {
            this.acceleration = acceleration;
            this.orbit = orbit;
        }

        /** Get the ephemerides data line orbit.
         * @return the orbit
         */
        public CartesianOrbit getOrbit() {
            return orbit;
        }

        /** Get the ephemerides data line acceleration vector.
         * @return the acceleration vector
         */
        public Vector3D getAcceleration() {
            return acceleration;
        }

    }

    /** The CovarianceMatrix class represents a covariance matrix and its
     * metadata: epoch and frame.
     * @author sports
     */
    public static class CovarianceMatrix {

        /** Covariance matrix. */
        private RealMatrix matrix;

        /** Epoch relative to the covariance matrix. */
        private AbsoluteDate epoch;

        /** Coordinate system for covariance matrix, for Local Orbital Frames. */
        private LOFType lofType;

        /** Coordinate system for covariance matrix, for absolute frames.
         * If not given it is set equal to refFrame. */
        private Frame frame;

        /** Covariance Matrix constructor.
         * @param epoch the epoch
         * @param lofType coordinate system for covariance matrix, for Local Orbital Frames
         * @param frame coordinate system for covariance matrix, for absolute frames
         * @param lastMatrix the covariance matrix
         */
        CovarianceMatrix(final AbsoluteDate epoch,
                         final LOFType lofType, final Frame frame,
                         final RealMatrix lastMatrix) {
            this.matrix  = lastMatrix;
            this.epoch   = epoch;
            this.lofType = lofType;
            this.frame   = frame;
        }

        /** Get the covariance matrix.
         * @return the covariance matrix
         */
        public RealMatrix getMatrix() {
            return matrix;
        }

        /** Get the epoch relative to the covariance matrix.
         * @return the epoch
         */
        public AbsoluteDate getEpoch() {
            return epoch;
        }

        /** Get coordinate system for covariance matrix, for Local Orbital Frames.
         *

         * The value returned is null if the covariance matrix is given in an
         * absolute frame rather than a Local Orbital Frame. In this case, the
         * method {@link #getFrame()} must be used instead.
         *

         * @return the coordinate system for covariance matrix, or null if the
         * covariance matrix is given in an absolute frame rather than a Local
         * Orbital Frame
         */
        public LOFType getLofType() {
            return lofType;
        }

        /** Get coordinate system for covariance matrix, for absolute frames.
         *

         * The value returned is null if the covariance matrix is given in a
         * Local Orbital Frame rather than an absolute frame. In this case, the
         * method {@link #getLofType()} must be used instead.
         *

         * @return the coordinate system for covariance matrix
         */
        public Frame getFrame() {
            return frame;
        }

    }

}


text:
Scripts for different technologies for automating testing/Continuous Delivery on OpenStack

Here are some example scripts you can use to provision openstack machines (IaaS.. should work on Amazon EC2 also) to be able to run Fabric8.

* [Ansible](ansible): use SSH to configure and manage fabric8 on a set of existing VMS (sets up required tools, firewalls, deploys fabric8, etc)
* [OpenStack JClouds](openstack-jclouds): use the jclouds project to spin up VMs and deploy fabric8


text:
import { Component, OnInit } from '@angular/core';
import { PortfolioService } from '../../services/portfolio.service';

@Component({
  selector: 'app-projects-list',
  templateUrl: './projects-list.component.html',
  styleUrls: ['./projects-list.component.scss']
})
export class ProjectsListComponent implements OnInit {

  projects:Array<any>= [];

  constructor(public service:PortfolioService) { }

  ngOnInit(): void {
    this.projects  = this.service.getPortfolios();
  }

}


text:
package com.zmj.qvod.view.fragment;

import android.os.Bundle;
import android.support.v4.app.Fragment;
import android.view.ViewGroup;

import com.jude.beam.bijection.RequiresPresenter;
import com.jude.beam.expansion.list.BeamListFragment;
import com.jude.beam.expansion.list.ListConfig;
import com.jude.easyrecyclerview.adapter.BaseViewHolder;
import com.zmj.qvod.adapter.viewholder.VideoListViewHolder;
import com.zmj.qvod.config.Constant;
import com.zmj.qvod.module.bean.VideoType;
import com.zmj.qvod.presenter.VideoListPresenter;

/**
 * Created by matt on 2017/3/20.
 */

@RequiresPresenter(VideoListPresenter.class)
public class VideoListFragment extends BeamListFragment<VideoListPresenter, VideoType> {

    @Override
    public ListConfig getConfig() {
        return Constant.getLoadMoreConfig();
    }

    public static Fragment newInstance(String tab) {
        VideoListFragment fragment = new VideoListFragment();
        Bundle bundle = new Bundle();
        bundle.putString("tab", tab);
        fragment.setArguments(bundle);
        return fragment;
    }

    @Override
    public BaseViewHolder<VideoType> getViewHolder(ViewGroup parent, int viewType) {
        return new VideoListViewHolder(parent);
    }

}


text:
#ifndef _PHP_NANO_PRIVATE_H_
# define _PHP_NANO_PRIVATE_H_

/*
#include <nanomsg/nn.h>
#include <nanomsg/pubsub.h>
*/
#include <nn.h>
#include <pubsub.h>

#include "main/php_network.h"
#include "Zend/zend_exceptions.h"
#include "ext/standard/info.h"

/*
  Definition for the main class (holds constants)
*/
typedef struct {
    zend_object zo;
} php_nano_object;

/*
  Definition for the socket object
*/
typedef struct {
    zend_object zo;
    int s;
    HashTable eid;
} php_nano_socket_object;

#if ZEND_MODULE_API_NO > 20060613

#define PHP_NANO_ERROR_HANDLING_INIT() zend_error_handling error_handling;

#define PHP_NANO_ERROR_HANDLING_THROW() zend_replace_error_handling(EH_THROW, php_nano_exception_sc_entry, &error_handling TSRMLS_CC);

#define PHP_NANO_ERROR_HANDLING_RESTORE() zend_restore_error_handling(&error_handling TSRMLS_CC);

#else

#define PHP_NANO_ERROR_HANDLING_INIT()

#define PHP_NANO_ERROR_HANDLING_THROW() php_set_error_handling(EH_THROW, php_nano_exception_sc_entry TSRMLS_CC);

#define PHP_NANO_ERROR_HANDLING_RESTORE() php_set_error_handling(EH_NORMAL, NULL TSRMLS_CC);

#endif

#if PHP_MAJOR_VERSION >= 7
static inline php_nano_socket_object *php_nano_fetch_object(zend_object *obj) {
	return (php_nano_socket_object *)((char*)(obj) - XtOffsetOf(php_nano_socket_object, zo));
}

#define Z_NANO_P(zv) php_nano_fetch_object(Z_OBJ_P((zv)))

#endif

#endif /* _PHP_NANO_PRIVATE_H_ */


text:
<!--
  ~ Copyright 2019 Kantega AS
  ~
  ~ 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.
  -->

<rule>
    <method>GET</method>
    <path>/dummies/userprofiles/JANE</path>
    <content-type>application/json</content-type>
    <response-code>200</response-code>
</rule>


text:
"use strict";

var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault").default;

var _interopRequireWildcard = require("@babel/runtime/helpers/interopRequireWildcard").default;

Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.Group = void 0;

var _jsxRuntime = require("../../lib/jsxRuntime");

var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));

var _objectWithoutProperties2 = _interopRequireDefault(require("@babel/runtime/helpers/objectWithoutProperties"));

var React = _interopRequireWildcard(require("react"));

var _platform = require("../../lib/platform");

var _classNames = require("../../lib/classNames");

var _usePlatform = require("../../hooks/usePlatform");

var _Spacing = require("../Spacing/Spacing");

var _Separator = require("../Separator/Separator");

var _utils = require("../../lib/utils");

var _Caption = require("../Typography/Caption/Caption");

var _warnOnce = require("../../lib/warnOnce");

var _withAdaptivity = require("../../hoc/withAdaptivity");

var _ModalRootContext = require("../ModalRoot/ModalRootContext");

var _excluded = ["header", "description", "children", "separator", "getRootRef", "mode", "padding", "sizeX", "tabIndex"];
var warn = (0, _warnOnce.warnOnce)("TabsItem");

var GroupComponent = function GroupComponent(_ref) {
  var header = _ref.header,
      description = _ref.description,
      children = _ref.children,
      _ref$separator = _ref.separator,
      separator = _ref$separator === void 0 ? "auto" : _ref$separator,
      getRootRef = _ref.getRootRef,
      mode = _ref.mode,
      _ref$padding = _ref.padding,
      padding = _ref$padding === void 0 ? "m" : _ref$padding,
      sizeX = _ref.sizeX,
      tabIndexProp = _ref.tabIndex,
      restProps = (0, _objectWithoutProperties2.default)(_ref, _excluded);

  var _React$useContext = React.useContext(_ModalRootContext.ModalRootContext),
      isInsideModal = _React$useContext.isInsideModal;

  var platform = (0, _usePlatform.usePlatform)();
  var computedMode = mode;

  if (!mode) {
    computedMode = sizeX === _withAdaptivity.SizeType.COMPACT || isInsideModal ? "plain" : "card";
  }

  var isTabPanel = restProps.role === "tabpanel";

  if (process.env.NODE_ENV === "development" && isTabPanel && (!restProps["aria-controls"] || !restProps["id"])) {
    warn('При использовании роли "tabpanel" необходимо задать значение свойств "aria-controls" и "id"');
  }

  var tabIndex = isTabPanel && tabIndexProp === undefined ? 0 : tabIndexProp;
  var separatorElement = null;

  if (separator !== "hide") {
    var separatorClassName = (0, _classNames.classNames)("Group__separator", separator === "show" && "Group__separator--force");
    separatorElement = computedMode === "card" ? (0, _jsxRuntime.createScopedElement)(_Spacing.Spacing, {
      vkuiClass: separatorClassName,
      size: 16
    }) : (0, _jsxRuntime.createScopedElement)(_Separator.Separator, {
      vkuiClass: separatorClassName
    });
  }

  return (0, _jsxRuntime.createScopedElement)("section", (0, _extends2.default)({}, restProps, {
    tabIndex: tabIndex,
    ref: getRootRef,
    vkuiClass: (0, _classNames.classNames)("Group", platform === _platform.IOS && "Group--ios", // TODO v5.0.0 Новая адаптивность
    "Group--sizeX-".concat(sizeX), "Group--".concat(computedMode), "Group--padding-".concat(padding))
  }), (0, _jsxRuntime.createScopedElement)("div", {
    vkuiClass: "Group__inner"
  }, header, children, (0, _utils.hasReactNode)(description) && (0, _jsxRuntime.createScopedElement)(_Caption.Caption, {
    vkuiClass: "Group__description"
  }, description)), separatorElement);
};
/**
 * @see https://vkcom.github.io/VKUI/#/Group
 */

var Group = (0, _withAdaptivity.withAdaptivity)(GroupComponent, {
  sizeX: true
});
exports.Group = Group;
Group.displayName = "Group";
//# sourceMappingURL=Group.js.map


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

<TITLE>
Overview List
</TITLE>

<META NAME="date" CONTENT="2008-12-19">

<LINK REL ="stylesheet" TYPE="text/css" HREF="stylesheet.css" TITLE="Style">

All Classes

Packages

gameframework.base

gameframework.game

pacman

pacman.entity

pacman.rule


text:
<BODY>
This package performs contact handling, and is essentially internal to JBox2d.  The only reason you would ever need to dip into the package is to add additional shapes or object types to JBox2d.
</BODY>


text:
from .external import WeatherStation

class Scrubber:

    def __init__(self):
        self.weather_station = WeatherStation()

    def go_for_launch(self):
        return True


text:
//
// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.2.4-2
// See http://java.sun.com/xml/jaxb
// Any modifications to this file will be lost upon recompilation of the source schema.
// Generated on: 2014.09.30 at 06:15:10 PM PDT
//

package org.hl7.knowledgeartifact.r1;

import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlType;

/**
 * The Round operator returns the nearest integer to its argument. The semantics of round are defined as a traditional round, meaning that a decimal value of 0.5 or higher will round to 1.
 *
 * If the argument is null, the result is null.
 *
 * Precision determines the decimal place at which the rounding will occur. If precision is not specified or null, 0 is assumed.
 *
 *
Java class for Round complex type.
 *
 *
The following schema fragment specifies the expected content contained within this class.
 *
 *

 * <complexType name="Round">
 *   <complexContent>
 *     <extension base="{urn:hl7-org:knowledgeartifact:r1}Expression">
 *       <sequence>
 *         <element name="operand" type="{urn:hl7-org:knowledgeartifact:r1}Expression"/>
 *         <element name="precision" type="{urn:hl7-org:knowledgeartifact:r1}Expression" minOccurs="0"/>
 *       </sequence>
 *     </extension>
 *   </complexContent>
 * </complexType>
 *

 *
 *
 */
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "Round", propOrder = {
    "operand",
    "precision"
})
public class Round
    extends Expression
{

    @XmlElement(required = true)
    protected Expression operand;
    protected Expression precision;

    /**
     * Gets the value of the operand property.
     *
     * @return
     *     possible object is
     *     {@link Expression }
     *
     */
    public Expression getOperand() {
        return operand;
    }

    /**
     * Sets the value of the operand property.
     *
     * @param value
     *     allowed object is
     *     {@link Expression }
     *
     */
    public void setOperand(Expression value) {
        this.operand = value;
    }

    /**
     * Gets the value of the precision property.
     *
     * @return
     *     possible object is
     *     {@link Expression }
     *
     */
    public Expression getPrecision() {
        return precision;
    }

    /**
     * Sets the value of the precision property.
     *
     * @param value
     *     allowed object is
     *     {@link Expression }
     *
     */
    public void setPrecision(Expression value) {
        this.precision = value;
    }

}


text:
package com.rultor.agents.github.qtn;

import com.jcabi.aspects.Immutable;
import com.jcabi.github.Comment;
import com.jcabi.log.Logger;
import com.jcabi.manifests.Manifests;
import com.rultor.agents.github.Answer;
import com.rultor.agents.github.Question;
import com.rultor.agents.github.Req;
import java.io.IOException;
import java.net.URI;
import java.util.ResourceBundle;
import lombok.EqualsAndHashCode;
import lombok.ToString;

/**
 * Show my current version.
 *
 * @author Yegor Bugayenko (yegor@teamed.io)
 * @version $Id$
 * @since 1.3.1
 */
@Immutable
@ToString
@EqualsAndHashCode
public final class QnVersion implements Question {

    /**
     * Message bundle.
     */
    private static final ResourceBundle PHRASES =
        ResourceBundle.getBundle("phrases");

    @Override
    public Req understand(final Comment.Smart comment,
        final URI home) throws IOException {
        new Answer(comment).post(
            true,
            String.format(
                QnVersion.PHRASES.getString("QnVersion.intro"),
                Manifests.read("Rultor-Version"),
                Manifests.read("Rultor-Revision")
            )
        );
        Logger.info(this, "version request in #%d", comment.issue().number());
        return Req.DONE;
    }

}


text:
// Copyright 2013 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#include "chrome/browser/ui/views/location_bar/bubble_icon_view.h"

#include "chrome/browser/command_updater.h"
#include "ui/accessibility/ax_view_state.h"
#include "ui/base/material_design/material_design_controller.h"
#include "ui/events/event.h"
#include "ui/gfx/color_palette.h"
#include "ui/gfx/color_utils.h"
#include "ui/gfx/paint_vector_icon.h"
#include "ui/native_theme/native_theme.h"
#include "ui/views/animation/ink_drop_highlight.h"
#include "ui/views/bubble/bubble_dialog_delegate.h"

BubbleIconView::BubbleIconView(CommandUpdater* command_updater, int command_id)
    : image_(new views::ImageView()),
      command_updater_(command_updater),
      command_id_(command_id),
      active_(false),
      suppress_mouse_released_action_(false) {
  AddChildView(image_);
  image_->set_interactive(false);
  image_->EnableCanvasFlippingForRTLUI(true);
  if (ui::MaterialDesignController::IsModeMaterial()) {
    SetInkDropMode(InkDropMode::ON);
    SetFocusBehavior(FocusBehavior::ACCESSIBLE_ONLY);
  } else {
    image_->SetFocusBehavior(FocusBehavior::ACCESSIBLE_ONLY);
  }
}

BubbleIconView::~BubbleIconView() {}

bool BubbleIconView::IsBubbleShowing() const {
  // If the bubble is being destroyed, it's considered showing though it may be
  // already invisible currently.
  return GetBubble() != nullptr;
}

void BubbleIconView::SetImage(const gfx::ImageSkia* image_skia) {
  image_->SetImage(image_skia);
}

const gfx::ImageSkia& BubbleIconView::GetImage() const {
  return image_->GetImage();
}

void BubbleIconView::SetTooltipText(const base::string16& tooltip) {
  image_->SetTooltipText(tooltip);
}

void BubbleIconView::GetAccessibleState(ui::AXViewState* state) {
  image_->GetAccessibleState(state);
  state->role = ui::AX_ROLE_BUTTON;
}

bool BubbleIconView::GetTooltipText(const gfx::Point& p,
                                    base::string16* tooltip) const {
  return !IsBubbleShowing() && image_->GetTooltipText(p, tooltip);
}

gfx::Size BubbleIconView::GetPreferredSize() const {
  return image_->GetPreferredSize();
}

void BubbleIconView::Layout() {
  View::Layout();
  image_->SetBoundsRect(GetLocalBounds());
}

bool BubbleIconView::OnMousePressed(const ui::MouseEvent& event) {
  // If the bubble is showing then don't reshow it when the mouse is released.
  suppress_mouse_released_action_ = IsBubbleShowing();
  if (!suppress_mouse_released_action_ && event.IsOnlyLeftMouseButton())
    AnimateInkDrop(views::InkDropState::ACTION_PENDING, &event);

  // We want to show the bubble on mouse release; that is the standard behavior
  // for buttons.
  return true;
}

void BubbleIconView::OnMouseReleased(const ui::MouseEvent& event) {
  // If this is the second click on this view then the bubble was showing on the
  // mouse pressed event and is hidden now. Prevent the bubble from reshowing by
  // doing nothing here.
  if (suppress_mouse_released_action_) {
    suppress_mouse_released_action_ = false;
    OnPressed(false);
    return;
  }
  if (!event.IsLeftMouseButton())
    return;

  const bool activated = HitTestPoint(event.location());
  AnimateInkDrop(
      activated ? views::InkDropState::ACTIVATED : views::InkDropState::HIDDEN,
      &event);
  if (activated)
    ExecuteCommand(EXECUTE_SOURCE_MOUSE);
  OnPressed(activated);
}

bool BubbleIconView::OnKeyPressed(const ui::KeyEvent& event) {
  if (event.key_code() != ui::VKEY_RETURN && event.key_code() != ui::VKEY_SPACE)
    return false;

  AnimateInkDrop(views::InkDropState::ACTIVATED, nullptr /* &event */);
  // As with CustomButton, return activates on key down and space activates on
  // key up.
  if (event.key_code() == ui::VKEY_RETURN)
    ExecuteCommand(EXECUTE_SOURCE_KEYBOARD);
  return true;
}

bool BubbleIconView::OnKeyReleased(const ui::KeyEvent& event) {
  if (event.key_code() != ui::VKEY_SPACE)
    return false;

  ExecuteCommand(EXECUTE_SOURCE_KEYBOARD);
  return true;
}

void BubbleIconView::ViewHierarchyChanged(
    const ViewHierarchyChangedDetails& details) {
  View::ViewHierarchyChanged(details);
  if (details.is_add && GetNativeTheme())
    UpdateIcon();
}

void BubbleIconView::OnNativeThemeChanged(const ui::NativeTheme* theme) {
  UpdateIcon();
}

void BubbleIconView::AddInkDropLayer(ui::Layer* ink_drop_layer) {
  image_->SetPaintToLayer(true);
  image_->layer()->SetFillsBoundsOpaquely(false);
  views::InkDropHostView::AddInkDropLayer(ink_drop_layer);
}

void BubbleIconView::RemoveInkDropLayer(ui::Layer* ink_drop_layer) {
  views::InkDropHostView::RemoveInkDropLayer(ink_drop_layer);
  image_->SetPaintToLayer(false);
}

SkColor BubbleIconView::GetInkDropBaseColor() const {
  return color_utils::DeriveDefaultIconColor(GetNativeTheme()->GetSystemColor(
      ui::NativeTheme::kColorId_TextfieldDefaultColor));
}

bool BubbleIconView::ShouldShowInkDropForFocus() const {
  return true;
}

void BubbleIconView::OnGestureEvent(ui::GestureEvent* event) {
  if (event->type() == ui::ET_GESTURE_TAP) {
    AnimateInkDrop(views::InkDropState::ACTIVATED, event);
    ExecuteCommand(EXECUTE_SOURCE_GESTURE);
    event->SetHandled();
  }
}

void BubbleIconView::OnWidgetDestroying(views::Widget* widget) {
  widget->RemoveObserver(this);
}

void BubbleIconView::OnWidgetVisibilityChanged(views::Widget* widget,
                                               bool visible) {
  // |widget| is a bubble that has just got shown / hidden.
  if (!visible)
    AnimateInkDrop(views::InkDropState::DEACTIVATED, nullptr /* event */);
}

void BubbleIconView::ExecuteCommand(ExecuteSource source) {
  OnExecuting(source);
  if (command_updater_)
    command_updater_->ExecuteCommand(command_id_);
}

gfx::VectorIconId BubbleIconView::GetVectorIcon() const {
  return gfx::VectorIconId::VECTOR_ICON_NONE;
}

bool BubbleIconView::SetRasterIcon() {
  return false;
}

void BubbleIconView::OnBoundsChanged(const gfx::Rect& previous_bounds) {
  views::BubbleDialogDelegateView* bubble = GetBubble();
  if (bubble)
    bubble->OnAnchorBoundsChanged();
}

void BubbleIconView::UpdateIcon() {
  if (SetRasterIcon())
    return;

  const int icon_size =
      ui::MaterialDesignController::IsModeMaterial() ? 16 : 18;
  const ui::NativeTheme* theme = GetNativeTheme();
  SkColor icon_color =
      active_
          ? theme->GetSystemColor(ui::NativeTheme::kColorId_CallToActionColor)
          : GetInkDropBaseColor();
  image_->SetImage(
      gfx::CreateVectorIcon(GetVectorIcon(), icon_size, icon_color));
}

void BubbleIconView::SetActiveInternal(bool active) {
  if (active_ == active)
    return;
  active_ = active;
  UpdateIcon();
}


text:
from lixian_commands.util import *
from lixian_cli_parser import *
from lixian_config import get_config
import lixian_help
import lixian_query

@command_line_parser(help=lixian_help.add)
@with_parser(parse_login)
@with_parser(parse_colors)
@with_parser(parse_logging)
@with_parser(parse_size)
@command_line_value('input', alias='i')
@command_line_option('torrent', alias='bt')
def add_task(args):
	assert len(args) or args.input
	client = create_client(args)
	tasks = lixian_query.find_tasks_to_download(client, args)
	print 'All tasks added. Checking status...'
	columns = ['id', 'status', 'name']
	if get_config('n'):
		columns.insert(0, 'n')
	if args.size:
		columns.append('size')
	output_tasks(tasks, columns, args)


text:
<?php

namespace s9e\TextFormatter\Configurator\TemplateChecks;

class RestrictFlashNetworking extends AbstractFlashRestriction
{
	/**
	* @var string Default AllowNetworking setting
	* @link http://help.adobe.com/en_US/ActionScript/3.0_ProgrammingAS3/WS1EFE2EDA-026D-4d14-864E-79DFD56F87C6.html
	*/
	public $defaultSetting = 'all';

	/**
	* {@inheritdoc}
	*/
	protected $settingName = 'allowNetworking';

	/**
	* @var array Valid AllowNetworking values
	*/
	protected $settings = [
		'all'      => 3,
		'internal' => 2,
		'none'     => 1
	];
}


text:
if [ ! -d vendor/bootstrap.sass ] || [ ! -d vendor/font-awesome-sass ]; then
	echo "You need the bootstrap sass and font-awesome sass projects in the vendor directory!"
	exit 1
fi

scss -t compressed -Igitlist/static/scss -Ivendor/bootstrap.sass/assets/stylesheets -Ivendor/font-awesome-sass/assets/stylesheets gitlist/static/scss/style.scss > gitlist/static/css/style.css
scss -t compressed -Igitlist/static/scss -Ivendor/bootstrap.sass/assets/stylesheets -Ivendor/font-awesome-sass/assets/stylesheets gitlist/static/scss/fontawesome.scss > gitlist/static/css/fontawesome.css
cp vendor/bootstrap.sass/assets/javascripts/bootstrap.min.js gitlist/static/js/bootstrap.js

cp -R vendor/font-awesome-sass/assets/fonts/* gitlist/static/fonts
cp -R vendor/bootstrap.sass/assets/fonts/* gitlist/static/fonts


text:
date: 2017-01-19T13:46:35+02:00
editorversion: 4
menu: "menuconfluenceserverwireframes"
product: "Balsamiq Wireframes for Confluence Server"
title: "Using Images, Assets, and Icons"
weight: 2260
include: images
---


text:
from setuptools import setup

setup(
    name='learning-pexpect',
)


text:
namespace UniLua
{
	internal class LuaDebugLib
	{
		public const string LIB_NAME = "debug";

		public static int OpenLib( ILuaState lua )
		{
			NameFuncPair[] define = new NameFuncPair[]
			{
				new NameFuncPair( "traceback", 	DBG_Traceback	),
				new NameFuncPair( "upvalueid", 	DBG_UpValueId	),
				new NameFuncPair( "getinfo", 	DBG_GetInfo 	),
			};

			lua.L_NewLib( define );
			return 1;
		}

		private static int DBG_Traceback( ILuaState lua )
		{
			return 0;
		}

		private static int DBG_UpValueId( ILuaState lua )
		{
			lua.PushNumber(1);
			return 1;
		}

		private static int DBG_GetInfo( ILuaState lua )
		{
			LuaDebug ar = new LuaDebug();
			int level = lua.L_CheckInteger(1);
			if( lua.GetStack( level, ar ) ) //
			{
				((LuaState)lua).GetInfo( "Sl", ar );

				lua.NewTable();
				lua.PushString("currentline");
				lua.PushNumber(ar.CurrentLine);
				lua.SetTable(-2);
				lua.PushString("source");
				lua.PushString(ar.Source);
				lua.SetTable(-2);
			}
			else
			{
				lua.PushNil();
			}
			return 1;
		}
	}
}


text:
<#
.synopsis
 This script will:
*Find all users who match the attributes in the Inputfile.
*It will then list these users in the output file.
*At this stage the attribute is Department, but this script can easyly be modified to accept the attribute as a input parameter

.Description
Version 1.1.0
Find all users who match the attributes in the Inputfile.
*It will then list these users in the output file.

.Parameter InputFile
Optional the file name and location that stores the attribute to match.

.Outputs
System.io.FileStream Appendes to the log file C:\temp\UserDetails.log.
System.io.FileStream Creates a new file       C:\temp\InputFileNameResults.csv.

.Example
To call this script with an input file  : powershell .\TSEG_UserDetailsFromDept.ps1 -inputfile 'C:\temp\exampledept.csv'
#>
[CmdletBinding (DefaultParameterSetName="Set 2")]
param (
    [Parameter(Mandatory=$false,HelpMessage="File path and name",Parametersetname = "Set 2" )][string] $Inputfile
)
Function CreateFile ($ReqPath, $ReqMode)
{
    <# Create the FileStream and StreamWriter objects, returns Stream Object
    Append will append to an exisitng file or create a new one if it does not exisit
    Create will create a new file or overwrite an existing one
    The file will have todays date appened to it #>

    $date = get-date -Format d
    $date = $date.split("/")
    $date = $date.item(2) + $date.item(1) + $date.item(0)
    $FileParts = $ReqPath.split(".")
    $ReqPath = $FileParts.item(0) + $date +"." + $FileParts.Item(1)

    $mode       = [System.IO.FileMode]::$ReqMode
    $access     = [System.IO.FileAccess]::Write
    $sharing    = [IO.FileShare]::Read
    $FilePath    = [System.IO.Path]::Combine($ReqPath)
    $fs = New-Object IO.FileStream($FilePath, $mode, $access, $sharing)
    Return $fs
}

function WriteData ($LineTxt,$Stream)
{
    #$Date = get-date -Format G
    #$Date = $Date + "    : "
    #$LineTxt = $date + $LineTxt
    $Stream.writeline( $LineTxt )
}
Function CloseGracefully($Stream,$FileSystem)
{
    # Close all file streams, files and sessions. Call this for each FileStream and FileSystem pair.
    # $Line = $Date +  " PSSession and log file closed."
    #WriteLog $Line $stream
    Write-Host $Date  +  " PSSession and log file closed."
    $Stream.Close()
    $FileSystem.Close()
    # Close PS Sessions
    #Get-PSSession | Remove-PSSession
    $error.clear()
    #Exit
}

# Main
 $inputfile = "C:\temp\jimms.csv"
if ($Inputfile.Length -eq 0)
{
    $InputFile = read-host -prompt  "Please enter Filname and path e.g. C:\temp\DepartmentsFoodandBev1.csv"
}
$logPath = "C:\temp\DetailsFromDept.log"
$path = test-path C:\Temp
if ($path -eq $false)
{
    New-Item C:\temp -ItemType Directory
}
$LogFile = CreateFile $LogPath "Create"
$LogStream = New-Object System.io.StreamWriter($LogFile)
try
{
    $Departments = import-csv -Path $Inputfile
}
catch
{
    WriteData "Error with input file, please check path" $LogStream
    CloseGracefully $LogStream $LogFile
    exit
}
$Outpath = $Inputfile.split(".").item(0)
$OutPath = $Outpath + "Result.csv"
$OutputFile = CreateFile  $OutPath "Create"
$OutPutStream = New-Object System.IO.StreamWriter($OutputFile)
$targetAtt = "Department"
$DataLine = "EmployeeNumber,EmailAddress,Department,Enabled"
WriteData $DataLine $OutPutStream
foreach ($Department in $Departments)
{
    try
    {
        $TargetDept = ($Department."$targetAtt").trim()
    }
    Catch
    {
        WriteData "CSV file does not contain department on the first line" $LogStream
        CloseGracefully $OutputStream $OutputFile
        CloseGracefully $LogStream $LogFile
        Exit
    }
    Try
    {
        $TargetUsers = get-aduser -Filter '($targetAtt -eq $TargetDept) -and (EmailAddress -ne "*") -and (Enabled -eq $true)  ' -Properties  EmployeeNumber, department, EmailAddress, enabled
        foreach($TargetUser in $TargetUSers)
        {
            #Get-ADUser $targetuser -Properties emailaddress, department
            $DataLine =  $TargetUser.EmployeeNumber + "," + $TargetUser.emailaddress + "," + $TargetUser.Department + "," + $TargetUser.Enabled
            WriteData $DataLine $OutPutStream
        }
    }
    Catch
    {
        WriteData "No Users could be fond for that department, please check department name" $LogFile
    }
}
CloseGracefully $OutputStream $OutputFile
CloseGracefully $LogStream $LogFile


text:
var env = require('../env');

var name = "graph-to-existing-custom-radiator";
var existingRadiatorName = "existing-test-radiator" + Math.floor((Math.random() * 1000) + 1);

casper.test.begin('User adds graph to existing radiator', function(test) {

  env.init();

  env.clearLocalStorage();

  casper.thenOpen(env.root, function() {
    test.assertExists(env.cpuLink, "common link 'cpu' visible (sanity check)");
  });

  env.waitForAndClick(env.toCustomRadiatorLink, name, env.defaultTimeOut);

  casper.waitUntilVisible(env.customRadiatorDialog.modal, function() {
    this.sendKeys(env.customRadiatorDialog.newNameField, existingRadiatorName);
  }, env.screencapFailure(name), env.defaultTimeOut);

  casper.thenClick(env.customRadiatorDialog.createNewButton, function() {
    test.assertNotVisible(env.customRadiatorDialog.modal, "hides dialog after click");
  });

  casper.waitForPopup(env.root + "/radiator.html#name=" + existingRadiatorName, function() {
    test.assertEquals(this.popups.length, 1, "only one radiator is opened");
  });

  casper.thenClick(env.hostLink, function() {});

  casper.waitForPopup(env.root + "/radiator.html#host=");

  casper.withPopup(env.root + "/radiator.html#host=", function() {
    env.waitForAndClick(env.graph("heap-graph").addToRadiator, name, env.defaultTimeOut);

    casper.waitUntilVisible(env.customRadiatorDialog.modal, function() {
      test.assertExists(env.customRadiatorDialog.existingRadiatorLink(existingRadiatorName),
          "radiator exists in the available radiator list");
    });

    casper.thenClick(env.customRadiatorDialog.existingRadiatorLink(existingRadiatorName), function() {
      test.assertNotVisible(env.customRadiatorDialog.modal, "hides dialog after click");
    });
  });

  casper.waitForPopup(env.root + "/radiator.html#name=" + existingRadiatorName, function() {
    test.assertEquals(this.popups.length, 2, "only one radiator is opened (plus host radiator)");
  });

  //TODO sami-airaksinen 8/28/15 : reload doesn't work properly with popups
  casper.thenOpen(env.root + "/radiator.html#name=" + existingRadiatorName + "&timescale=10800", function() {
    test.assertUrlMatch(env.root + "/radiator.html#name=" + existingRadiatorName + "&timescale=10800",
      "creating new radiator should open new tab");
    test.assertTitleMatch(new RegExp("^Willow - "+ existingRadiatorName));
    test.assertExists('div[data-module=heap-graph]',
      "filesystem graph should be present in the radiator now");
    test.assertExists('div[data-module=horizon-graph] > div[data-metric=cpu]',
      "cpu horizon graph should be present in the radiator now");
    assertGraphOrdering("horizon-graph", "heap-graph");
  });

/*
  Ordering graphs by dragging can't be tested due to limitation in the phatomjs api (1.9).
  see: http://phantomjs.org/api/webpage/method/send-event.html

  casper.then(function() {
    mouse.down(env.graph("horizon-graph").reOrderGraph);
    this.mouse.move(env.graph("heap-graph").reOrderGraph);
  });

  casper.then(function() {
    this.mouse.up(env.graph("heap-graph").reOrderGraph);
  });

  casper.then(function() {
    assertGraphOrdering("heap-graph", "horizon-graph");
  });

  casper.thenOpen(env.root + "/radiator.html#name=" + existingRadiatorName + "&timescale=28800", function() {
    assertGraphOrdering("heap-graph", "horizon-graph");
  });
*/

  casper.thenClick(env.graph("heap-graph").removeFromRadiator, function() {
    test.assertVisible(env.graph("horizon-graph").module, "horizon graph is present");
    test.assertNotVisible(env.graph("heap-graph").module, "heap graph is removed");
  });

  casper.thenOpen(env.root + "/radiator.html#name=" + existingRadiatorName + "&timescale=43200", function() {
    test.assertVisible(env.graph("horizon-graph").module, "horizon graph is present");
    test.assertNotVisible(env.graph("heap-graph").module, "heap graph is not present");
  });

  casper.then(function() {
    env.writeCoverage(this, name);
  });

  casper.run(function() {
    casper.mainPage.close();
    test.done();
  });

  function assertGraphOrdering(graph1, graph2) {
    test.assertVisible(env.graph(graph1).module, "graph " + graph1 + " is present");
    test.assertVisible(env.graph(graph2).module, "graph " + graph2 + " is present");
    test.assertElementCount('div[data-module*=-graph]',2, "only 2 graphs present");
    test.assertEval(function(graph1, graph2) {
      var graphs = document.querySelectorAll('div[data-module$=-graph]');
      return graphs[0].attributes["data-module"].value === graph1 &&
        graphs[1].attributes["data-module"].value === graph2
    }, "ordering should be expected [" + graph1 + ","+ graph2 +"]", [graph1, graph2]);
  }
});


text:
package com.castlemock.service.mock.rest.project;

import com.castlemock.model.core.Service;
import com.castlemock.model.core.ServiceResult;
import com.castlemock.model.core.ServiceTask;
import com.castlemock.model.core.utility.serializer.ExportContainerSerializer;
import com.castlemock.model.mock.rest.RestExportContainer;
import com.castlemock.model.mock.rest.domain.RestApplication;
import com.castlemock.model.mock.rest.domain.RestMethod;
import com.castlemock.model.mock.rest.domain.RestMockResponse;
import com.castlemock.model.mock.rest.domain.RestProject;
import com.castlemock.model.mock.rest.domain.RestResource;
import com.castlemock.service.mock.rest.project.input.ExportRestProjectInput;
import com.castlemock.service.mock.rest.project.output.ExportRestProjectOutput;

import java.util.ArrayList;
import java.util.List;

/**
 * @author Karl Dahlgren
 * @since 1.0
 */
@org.springframework.stereotype.Service
public class ExportRestProjectService extends AbstractRestProjectService implements Service<ExportRestProjectInput, ExportRestProjectOutput> {

    /**
     * The process message is responsible for processing an incoming serviceTask and generate
     * a response based on the incoming serviceTask input
     * @param serviceTask The serviceTask that will be processed by the service
     * @return A result based on the processed incoming serviceTask
     * @see ServiceTask
     * @see ServiceResult
     */
    @Override
    public ServiceResult<ExportRestProjectOutput> process(final ServiceTask<ExportRestProjectInput> serviceTask) {
        final ExportRestProjectInput input = serviceTask.getInput();
        final RestProject project = repository.findOne(input.getRestProjectId());
        final List<RestApplication> applications = this.applicationRepository.findWithProjectId(input.getRestProjectId());
        final List<RestResource> resources = new ArrayList<>();
        final List<RestMethod> methods = new ArrayList<>();
        final List<RestMockResponse> mockResponses = new ArrayList<>();

        for(RestApplication application : applications){
            List<RestResource> tempResources = this.resourceRepository.findWithApplicationId(application.getId());
            resources.addAll(tempResources);

            for(RestResource tempResource : tempResources){
                List<RestMethod> tempMethods = this.methodRepository.findWithResourceId(tempResource.getId());
                methods.addAll(tempMethods);

                for(RestMethod tempMethod : tempMethods){
                    List<RestMockResponse> tempMockResponses = this.mockResponseRepository.findWithMethodId(tempMethod.getId());
                    mockResponses.addAll(tempMockResponses);
                }
            }
        }

        final RestExportContainer exportContainer = new RestExportContainer();
        exportContainer.setProject(project);
        exportContainer.setApplications(applications);
        exportContainer.setResources(resources);
        exportContainer.setMethods(methods);
        exportContainer.setMockResponses(mockResponses);

        final String serialized = ExportContainerSerializer.serialize(exportContainer);
        return createServiceResult(ExportRestProjectOutput.builder()
                .exportedProject(serialized)
                .build());
    }
}


text:
Menghidupkan Pabrik Paket Pelayan ini jika mesin setelah dilakukan restart atau
mati. Pabrik Paket Pelayan ini berada di marya. Tanda-tanda jika pabrik paket
pelayan tidak bekerja adalah halaman http://irgsh.blankonlinux.or.id/ akan
selalu berstatus new, untuk itu perlu dibangkitkan pabrik paket pekerja ini.

Caranya :

```
sudo su - irgsh`
cd web-interfaces/task-init/
nohup ./task-init.sh &
```

Demikian


text:
class CreateLocations < ActiveRecord::Migration
  def change
    create_table :locations do |t|
      t.string :city
      t.float :latitude
      t.float :longitude

      t.timestamps
    end
  end
end


text:
<?php

namespace SerendipityHQ\Component\ValueObjects\Uri;

use Laminas\Uri\Exception\InvalidUriPartException;
use Laminas\Uri\Uri;
use SerendipityHQ\Component\ValueObjects\Common\SimpleValueObjectInterface;

/**
 * Defines the minimum requisites of an Uri Value Object.
 *
 * The methods are copied and pasted from\Laminas\Uri\UriInterface as there is a conflict on the toString() method
 * signature.
 *
 * {@inheritdoc}
 */
interface UriInterface extends SimpleValueObjectInterface
{
    /**
     * Check if the URI is valid.
     *
     * Note that a relative URI may still be valid
     *
     * @return bool
     *
     * @see \Laminas\Uri\UriInterface
     */
    public function isValid(): bool;

    /**
     * Check if the URI is a valid relative URI.
     *
     * @return bool
     *
     * @see \Laminas\Uri\UriInterface
     */
    public function isValidRelative(): bool;

    /**
     * Check if the URI is an absolute or relative URI.
     *
     * @return bool
     *
     * @see \Laminas\Uri\UriInterface
     */
    public function isAbsolute(): bool;

    /**
     * Parse a URI string.
     *
     * @param string $uri
     *
     * @return UriInterface
     *
     * @see \Laminas\Uri\UriInterface
     */
    public function parse(string $uri): self;

    /**
     * Normalize the URI.
     *
     * Normalizing a URI includes removing any redundant parent directory or
     * current directory references from the path (e.g. foo/bar/../baz becomes
     * foo/baz), normalizing the scheme case, decoding any over-encoded
     * characters etc.
     *
     * Eventually, two normalized URLs pointing to the same resource should be
     * equal even if they were originally represented by two different strings
     *
     * @return UriInterface
     *
     * @see \Laminas\Uri\UriInterface
     */
    public function normalize(): self;

    /**
     * Convert the link to a relative link by substracting a base URI.
     *
     *  This is the opposite of resolving a relative link - i.e. creating a
     *  relative reference link from an original URI and a base URI.
     *
     *  If the two URIs do not intersect (e.g. the original URI is not in any
     *  way related to the base URI) the URI will not be modified.
     *
     * @param string|Uri|UriInterface $baseUri
     *
     * @return UriInterface
     *
     * @see \Laminas\Uri\UriInterface
     */
    public function makeRelative($baseUri): self;

    /**
     * Get the scheme part of the URI.
     *
     * @return string|null
     *
     * @see \Laminas\Uri\UriInterface
     */
    public function getScheme(): ?string;

    /**
     * Get the User-info (usually user:password) part.
     *
     * @return string|null
     *
     * @see \Laminas\Uri\UriInterface
     */
    public function getUserInfo(): ?string;

    /**
     * Get the URI host.
     *
     * @return string|null
     *
     * @see \Laminas\Uri\UriInterface
     */
    public function getHost(): ?string;

    /**
     * Get the URI port.
     *
     * @return int|null
     *
     * @see \Laminas\Uri\UriInterface
     */
    public function getPort(): ?int;

    /**
     * Get the URI path.
     *
     * @return string|null
     *
     * @see \Laminas\Uri\UriInterface
     */
    public function getPath(): ?string;

    /**
     * Get the URI query.
     *
     * @return string|null
     *
     * @see \Laminas\Uri\UriInterface
     */
    public function getQuery(): ?string;

    /**
     * Return the query string as an associative array of key => value pairs.
     *
     * This is an extension to RFC-3986 but is quite useful when working with
     * most common URI types
     *
     * @return array<string,string>
     *
     * @see \Laminas\Uri\UriInterface
     */
    public function getQueryAsArray(): array;

    /**
     * Get the URI fragment.
     *
     * @return string|null
     *
     * @see \Laminas\Uri\UriInterface
     */
    public function getFragment(): ?string;

    /**
     * Set the URI scheme.
     *
     * If the scheme is not valid according to the generic scheme syntax or
     * is not acceptable by the specific URI class (e.g. 'http' or 'https' are
     * the only acceptable schemes for the\Laminas\Uri\Http class) an exception
     * will be thrown.
     *
     * You can check if a scheme is valid before setting it using the
     * validateScheme() method.
     *
     * @param string|null $scheme
     *
     * @throws InvalidUriPartException
     *
     * @return UriInterface
     *
     * @see \Laminas\Uri\UriInterface
     */
    public function setScheme(?string $scheme): self;

    /**
     * Set the URI User-info part (usually user:password).
     *
     * @param string|null $userInfo
     *
     * @throws InvalidUriPartException If the schema definition
     *                                 does not have this part
     *
     * @return UriInterface
     *
     * @see \Laminas\Uri\UriInterface
     */
    public function setUserInfo(?string $userInfo): self;

    /**
     * Set the URI host.
     *
     * Note that the generic syntax for URIs allows using host names which
     * are not necessarily IPv4 addresses or valid DNS host names. For example,
     * IPv6 addresses are allowed as well, and also an abstract "registered name"
     * which may be any name composed of a valid set of characters, including,
     * for example, tilda (~) and underscore (_) which are not allowed in DNS
     * names.
     *
     * Subclasses of Uri may impose more strict validation of host names - for
     * example the HTTP RFC clearly states that only IPv4 and valid DNS names
     * are allowed in HTTP URIs.
     *
     * @param string|null $host
     *
     * @throws InvalidUriPartException
     *
     * @return UriInterface
     *
     * @see \Laminas\Uri\UriInterface
     */
    public function setHost(?string $host): self;

    /**
     * Set the port part of the URI.
     *
     * @param int|null $port
     *
     * @return UriInterface
     *
     * @see \Laminas\Uri\UriInterface
     */
    public function setPort(?int $port): self;

    /**
     * Set the path.
     *
     * @param string|null $path
     *
     * @return UriInterface
     *
     * @see \Laminas\Uri\UriInterface
     */
    public function setPath(?string $path): self;

    /**
     * Set the query string.
     *
     * If an array is provided, will encode this array of parameters into a
     * query string. Array values will be represented in the query string using
     * PHP's common square bracket notation.
     *
     * @param array<string,string>|string|null $query
     *
     * @return UriInterface
     *
     * @see \Laminas\Uri\UriInterface
     */
    public function setQuery($query): self;

    /**
     * Set the URI fragment part.
     *
     * @param string|null $fragment
     *
     * @throws InvalidUriPartException If the schema definition
     *                                 does not have this part
     *
     * @return UriInterface
     *
     * @see \Laminas\Uri\UriInterface
     */
    public function setFragment(?string $fragment): self;
}


text:
module PulseMeter
  module Sensor
    class Configuration
      include PulseMeter::Mixins::Utils

      def initialize(opts = {})
        @sensors = {}
        opts.each do |name, opts|
          add_sensor(name, opts)
        end
      end

      def add_sensor(name, opts)
        sensor_type = opts.respond_to?(:sensor_type) ? opts.sensor_type : opts[:sensor_type]
        klass_s = sensor_class(sensor_type)
        klass = constantize(klass_s)
        raise ArgumentError, "#{klass_s} is not a valid class for a sensor" unless klass
        args = (opts.respond_to?(:args) ? opts.args : opts[:args]) || {}
        @sensors[name.to_s] = klass.new(name, symbolize_keys(args.to_hash))
      end

      def sensor(name)
        @sensors[name.to_s]
      end

      def method_missing(name, *args)
        name = name.to_s
        if @sensors.has_key?(name)
          @sensors[name].event(*args)
        else
          raise ArgumentError, "Unknown sensor: `#{name}'"
        end
      end

      protected

      def sensor_class(sensor_type)
        entries = sensor_type.to_s.split('/').map do |entry|
          entry.split('_').map(&:capitalize).join
        end
        entries.unshift('PulseMeter::Sensor').join('::')
      end

    end
  end
end


text:
#ifndef IndexedDBClientImpl_h
#define IndexedDBClientImpl_h

#include "modules/indexeddb/IndexedDBClient.h"

namespace blink {

class ExecutionContext;

class IndexedDBClientImpl final : public IndexedDBClient {
public:
    static IndexedDBClient* create();

    bool allowIndexedDB(ExecutionContext*, const String& name) override;

private:
    IndexedDBClientImpl() { }
};

} // namespace blink

#endif // IndexedDBClientImpl_h


text:
module Asposeimagingjava
  module CreateJpegThumbnail
    def initialize()
        data_dir = File.dirname(File.dirname(File.dirname(File.dirname(__FILE__)))) + '/data/'

        # Load an existing image (of type bmp) in an instance of Image class
        image = Rjb::import('com.aspose.imaging.Image').load(data_dir + "test.jpg")

        if image.getExifData() != nil
            # Get the image thumbnail information and save it in an instance of JpegImage
            thumbnail = image.getExifData().get_Thumbnail()

            # Save the thumbnail to disk with a new name
            thumbnail.save(data_dir + "JpegThumbnail.jpeg")

            # Display Status.
            puts "Created thumbnail of JPEG image successfully!"
        end
    end
  end
end


text:
package org.kie.dmn.validation;

import static org.hamcrest.CoreMatchers.is;
import static org.junit.Assert.*;
import static org.kie.dmn.validation.DMNValidator.Validation.VALIDATE_COMPILATION;
import static org.kie.dmn.validation.DMNValidator.Validation.VALIDATE_MODEL;
import static org.kie.dmn.validation.DMNValidator.Validation.VALIDATE_SCHEMA;

import java.io.IOException;
import java.io.Reader;
import java.util.List;
import org.junit.Test;
import org.kie.dmn.api.core.DMNMessage;
import org.kie.dmn.api.core.DMNMessageType;
import org.kie.dmn.model.api.Context;
import org.kie.dmn.model.api.ContextEntry;

public class ValidatorContextTest extends AbstractValidatorTest {

    @Test
    public void testCONTEXT_MISSING_EXPR_ReaderInput() throws IOException {
        try (final Reader reader = getReader("context/CONTEXT_MISSING_EXPR.dmn")) {
            final List<DMNMessage> validate = validator.validate(
                    reader,
                    VALIDATE_SCHEMA, VALIDATE_MODEL, VALIDATE_COMPILATION);
            assertThat(ValidatorUtil.formatMessages(validate), validate.size(), is(2));
            assertTrue(validate.stream().anyMatch(p -> p.getMessageType().equals(DMNMessageType.FAILED_XML_VALIDATION))); // this is schema validation
            assertTrue(validate.stream().anyMatch(p -> p.getMessageType().equals(DMNMessageType.MISSING_EXPRESSION)));
        }
    }

    @Test
    public void testCONTEXT_MISSING_EXPR_FileInput() {
        final List<DMNMessage> validate = validator.validate(
                getFile("context/CONTEXT_MISSING_EXPR.dmn"),
                VALIDATE_SCHEMA, VALIDATE_MODEL, VALIDATE_COMPILATION);
        assertThat(ValidatorUtil.formatMessages(validate), validate.size(), is(2));
        assertTrue(validate.stream().anyMatch(p -> p.getMessageType().equals(DMNMessageType.FAILED_XML_VALIDATION))); // this is schema validation
        assertTrue(validate.stream().anyMatch(p -> p.getMessageType().equals(DMNMessageType.MISSING_EXPRESSION)));
    }

    @Test
    public void testCONTEXT_MISSING_EXPR_DefinitionsInput() {
        final List<DMNMessage> validate = validator.validate(
                getDefinitions("context/CONTEXT_MISSING_EXPR.dmn",
                               "https://github.com/kiegroup/kie-dmn",
                               "CONTEXT_MISSING_EXPR"),
                VALIDATE_MODEL, VALIDATE_COMPILATION);
        assertThat(ValidatorUtil.formatMessages(validate), validate.size(), is(1));
        assertTrue(validate.stream().anyMatch(p -> p.getMessageType().equals(DMNMessageType.MISSING_EXPRESSION)));
    }

    @Test
    public void testCONTEXT_MISSING_ENTRIES_ReaderInput() throws IOException {
        try (final Reader reader = getReader("context/CONTEXT_MISSING_ENTRIES.dmn")) {
            final List<DMNMessage> validate = validator.validate(
                    reader,
                    VALIDATE_SCHEMA, VALIDATE_MODEL, VALIDATE_COMPILATION);
            assertThat(ValidatorUtil.formatMessages(validate), validate.size(), is(1));
            assertTrue(validate.stream().anyMatch(p -> p.getMessageType().equals(DMNMessageType.MISSING_EXPRESSION)));
        }
    }

    @Test
    public void testCONTEXT_MISSING_ENTRIES_FileInput() {
        final List<DMNMessage> validate = validator.validate(
                getFile("context/CONTEXT_MISSING_ENTRIES.dmn"),
                VALIDATE_SCHEMA, VALIDATE_MODEL, VALIDATE_COMPILATION);
        assertThat(ValidatorUtil.formatMessages(validate), validate.size(), is(1));
        assertTrue(validate.stream().anyMatch(p -> p.getMessageType().equals(DMNMessageType.MISSING_EXPRESSION)));
    }

    @Test
    public void testCONTEXT_MISSING_ENTRIES_DefinitionsInput() {
        final List<DMNMessage> validate = validator.validate(
                getDefinitions("context/CONTEXT_MISSING_ENTRIES.dmn",
                               "https://github.com/kiegroup/kie-dmn",
                               "CONTEXT_MISSING_EXPR"),
                VALIDATE_MODEL, VALIDATE_COMPILATION);
        assertThat(ValidatorUtil.formatMessages(validate), validate.size(), is(1));
        assertTrue(validate.stream().anyMatch(p -> p.getMessageType().equals(DMNMessageType.MISSING_EXPRESSION)));
    }

    @Test
    public void testCONTEXT_ENTRY_MISSING_VARIABLE_ReaderInput() throws IOException {
        try (final Reader reader = getReader("context/CONTEXT_ENTRY_MISSING_VARIABLE.dmn")) {
            final List<DMNMessage> validate = validator.validate(
                    reader,
                    VALIDATE_SCHEMA, VALIDATE_MODEL, VALIDATE_COMPILATION);
            assertThat(ValidatorUtil.formatMessages(validate), validate.size(), is(1));
            assertTrue(validate.stream().anyMatch(p -> p.getMessageType().equals(DMNMessageType.MISSING_VARIABLE)));
            // check that it reports and error for the second context entry, but not for the last one
            final ContextEntry ce = (ContextEntry) validate.get(0).getSourceReference();
            assertThat(((Context) ce.getParent()).getContextEntry().indexOf(ce), is(1));
        }
    }

    @Test
    public void testCONTEXT_ENTRY_MISSING_VARIABLE_FileInput() {
        final List<DMNMessage> validate = validator.validate(
                getFile("context/CONTEXT_ENTRY_MISSING_VARIABLE.dmn"),
                VALIDATE_SCHEMA, VALIDATE_MODEL, VALIDATE_COMPILATION);
        assertThat(ValidatorUtil.formatMessages(validate), validate.size(), is(1));
        assertTrue(validate.stream().anyMatch(p -> p.getMessageType().equals(DMNMessageType.MISSING_VARIABLE)));
        // check that it reports and error for the second context entry, but not for the last one
        final ContextEntry ce = (ContextEntry) validate.get(0).getSourceReference();
        assertThat(((Context) ce.getParent()).getContextEntry().indexOf(ce), is(1));
    }

    @Test
    public void testCONTEXT_ENTRY_MISSING_VARIABLE_DefinitionsInput() {
        final List<DMNMessage> validate = validator.validate(
                getDefinitions("context/CONTEXT_ENTRY_MISSING_VARIABLE.dmn",
                               "https://github.com/kiegroup/kie-dmn",
                               "CONTEXT_MISSING_EXPR"),
                VALIDATE_MODEL, VALIDATE_COMPILATION);
        assertThat(ValidatorUtil.formatMessages(validate), validate.size(), is(1));
        assertTrue(validate.stream().anyMatch(p -> p.getMessageType().equals(DMNMessageType.MISSING_VARIABLE)));
        // check that it reports and error for the second context entry, but not for the last one
        final ContextEntry ce = (ContextEntry) validate.get(0).getSourceReference();
        assertThat(((Context) ce.getParent()).getContextEntry().indexOf(ce), is(1));
    }

    @Test
    public void testCONTEXT_DUP_ENTRY_ReaderInput() throws IOException {
        try (final Reader reader = getReader("context/CONTEXT_DUP_ENTRY.dmn")) {
            final List<DMNMessage> validate = validator.validate(
                    reader,
                    VALIDATE_SCHEMA, VALIDATE_MODEL, VALIDATE_COMPILATION);
            assertThat(ValidatorUtil.formatMessages(validate), validate.size(), is(2));
            assertTrue(validate.stream().anyMatch(p -> p.getMessageType().equals(DMNMessageType.DUPLICATE_NAME)));
        }
    }

    @Test
    public void testCONTEXT_DUP_ENTRY_FileInput() {
        final List<DMNMessage> validate = validator.validate(
                getFile("context/CONTEXT_DUP_ENTRY.dmn"),
                VALIDATE_SCHEMA, VALIDATE_MODEL, VALIDATE_COMPILATION);
        assertThat(ValidatorUtil.formatMessages(validate), validate.size(), is(2));
        assertTrue(validate.stream().anyMatch(p -> p.getMessageType().equals(DMNMessageType.DUPLICATE_NAME)));
    }

    @Test
    public void testCONTEXT_DUP_ENTRY_DefinitionsInput() {
        final List<DMNMessage> validate = validator.validate(
                getDefinitions("context/CONTEXT_DUP_ENTRY.dmn",
                               "https://github.com/kiegroup/kie-dmn",
                               "CONTEXT_DUP_ENTRY"),
                VALIDATE_MODEL, VALIDATE_COMPILATION);
        assertThat(ValidatorUtil.formatMessages(validate), validate.size(), is(2));
        assertTrue(validate.stream().anyMatch(p -> p.getMessageType().equals(DMNMessageType.DUPLICATE_NAME)));
    }

    @Test
    public void testCONTEXT_ENTRY_NOTYPEREF_ReaderInput() throws IOException {
        try (final Reader reader = getReader("context/CONTEXT_ENTRY_NOTYPEREF.dmn")) {
            final List<DMNMessage> validate = validator.validate(
                    reader,
                    VALIDATE_SCHEMA, VALIDATE_MODEL, VALIDATE_COMPILATION);
            assertThat(ValidatorUtil.formatMessages(validate), validate.size(), is(2));
            assertTrue(validate.stream().anyMatch(p -> p.getMessageType().equals(DMNMessageType.MISSING_TYPE_REF)));
        }
    }

    @Test
    public void testCONTEXT_ENTRY_NOTYPEREF_FileInput() {
        final List<DMNMessage> validate = validator.validate(
                getFile("context/CONTEXT_ENTRY_NOTYPEREF.dmn"),
                VALIDATE_SCHEMA, VALIDATE_MODEL, VALIDATE_COMPILATION);
        assertThat(ValidatorUtil.formatMessages(validate), validate.size(), is(2));
        assertTrue(validate.stream().anyMatch(p -> p.getMessageType().equals(DMNMessageType.MISSING_TYPE_REF)));
    }

    @Test
    public void testCONTEXT_ENTRY_NOTYPEREF_DefinitionsInput() {
        final List<DMNMessage> validate = validator.validate(
                getDefinitions("context/CONTEXT_ENTRY_NOTYPEREF.dmn",
                               "https://github.com/kiegroup/kie-dmn",
                               "CONTEXT_ENTRY_NOTYPEREF"),
                VALIDATE_MODEL, VALIDATE_COMPILATION);
        assertThat(ValidatorUtil.formatMessages(validate), validate.size(), is(2));
        assertTrue(validate.stream().anyMatch(p -> p.getMessageType().equals(DMNMessageType.MISSING_TYPE_REF)));
    }
}


text:
package localrouter

import "github.com/sacloud/libsacloud/v2/sacloud"

// APIClient builderが利用するAPIクライアント
type APIClient struct {
	LocalRouter sacloud.LocalRouterAPI
}

// NewAPIClient builderが利用するAPIクライアントを返す
func NewAPIClient(caller sacloud.APICaller) *APIClient {
	return &APIClient{
		LocalRouter: sacloud.NewLocalRouterOp(caller),
	}
}


text:
`pip install django-db-cascade`

settings.py:
```
DATABASES = {
    'default': {
        'ENGINE': 'django_db_cascade.backends.postgresql_psycopg2',
        # ... etc ...
    }
}
```

### Usage
```
from django.db import models
from django_db_cascade.fields import ForeignKey, OneToOneField
from django_db_cascade.deletions import DB_CASCADE

class Thing(Common):
    account = ForeignKey('self', DB_CASCADE)
```

### Caveats
- DB_CASCADE only supports Postgres
- DB_CASCADE does not support django on_delete signals
- DB_CASCADE will not cascade delete multiple inherited tables as expected
- DB_CASCADE will not trigger CASCADE on another model. E.g. Model A points to model B, via DB_CASCADE. Model B points to model C, via CASCADE. A will cascade delete B, B will django delete C, but __deleting A will not delete C__!
- DB_CASCADE on a ManyToMany of A <---> B, only A_B set records will be cascade deleted (deleting A will not delete B)

### How it works
1. Minimal subclassing of the django postgresql backend and the django ForeignKey field
3. Added a new possible value for ForeignKey's on_delete kwarg, called DB_CASCADE
4. When you use DB_CASCADE, the migration framework will recognize a change, and write new sql
6. example SQL generated:
    ```
    ALTER TABLE mytable ADD CONSTRAINT myconstraint FOREIGN KEY (mycolumn)
    REFERENCES myothertable myothercolumn ON DELETE CASCADE DEFERRABLE INITIALLY DEFERRED
    ```

### Future proof
If, and when, DB_CASCADE ever gets into django, editing these generated migrations should be very easy.

Generated migrations:
```
migrations.AlterField(
    model_name='modelname',
    name='fieldname',
    field=django_db_cascade.fields.ForeignKey(on_delete=django_db_cascade.deletions.DB_CASCADE)
)
```

Changing them over, if django ever handles DB_CASCADE natively, might look like:
```
migrations.AlterField(
    model_name='modelname',
    name='fieldname',
    field=django.db.models.ForeignKey(on_delete=models.DB_CASCADE)
)
```

### Ticket
The ticker where django has discussed bringing DB_CASCADE to django:
https://code.djangoproject.com/ticket/21961


text:
<?xml version="1.0" encoding="UTF-8"?>
<!--
	Copyright (c) 2007 California Institute of Technology.
	ALL RIGHTS RESERVED. U.S. Government Sponsorship acknowledged.

	$Id$

	Author(s):
	Chris A. Mattmann, John J. Tran, and Heather L. Kincaid Description:
	Product Type policy for eCAS that stores MALDI data provided by Fred
	Hutchinson Cancer Research Center (FHCRC).
-->
<cas:producttypes xmlns:cas="http://oodt.jpl.nasa.gov/1.0/cas">
	<type id="urn:edrn:FHCRCMALDIDilutionProcessedData" name="FHCRCMALDIDilutionProcessedData">
		<repository path="file://[EDRN_REPO_HOME]/archive" />
		<versioner class="gov.nasa.jpl.edrn.ecas.versioning.EDRNProductVersioner" />
		<description>These data come from a dilution experiment aimed at
			elucidating which features in MALDI-TOF
			mass spectrometry data are
			informative for quantifying peptide content.
			The details of the
			experiment are
			described in [1]. The primary dataset consists of 250
			spectra collected from 5
			different serum sources (5
			people from a
			health study), each subject to 10 different concentrations of
			a
			peptide mixture that contained
			several known peptides. Each of the 50
			prepared samples were spotted,
			randomly, 5 times each on a single
			plate
			producing a total of 5x10x5 = 250 spectra. An additional 30
			spectra arise
			from: 2 replicate spectra from each
			of the 10
			concentrations of the peptide mixture, plus 2 replicates of
			serum-only spectra from each of the 5
			serum samples.

			NOTE: An error was
			made during the process of randomly spotting samples to
			the plate: one
			of the replicates from
			concentration 6 was spotted on top of a
			serum-only sample. The result is that two
			spectra from this design are
			missing: serum 1, concentration 6, replicate 4 (column number 36 in
			Spectra.txt), and serum 4, concentration 0, replicate 2.
			This left one
			empty spot on the plate (column number 280 in Spectra.txt)
			to which we
			spotted a sample containing only cytochrome
			c. The latter was not used
			in any subsequent analysis in [1], and no
			adjustment was made for
			former in the analysis in
			[1] (column #36 was used as is).
		</description>
        <metExtractors>
      <extractor
        class="org.apache.oodt.cas.filemgr.metadata.extractors.CoreMetExtractor">
        <configuration>
          <!--  you can optionally include the envReplace tag to turn on/off environment var replacement -->
          <property name="nsAware" value="true" />
          <property name="elementNs" value="CAS" />
          <property name="elements"
            value="ProductReceivedTime,ProductName,ProductId" />
        </configuration>
      </extractor>
      <extractor class="org.apache.oodt.cas.filemgr.metadata.extractors.examples.MimeTypeExtractor" />
      <extractor class="org.apache.oodt.cas.filemgr.metadata.extractors.examples.FinalFileLocationExtractor">
        <configuration>
          <!-- this property specifies whether you want the FILE_LOCATION field
               computed by this extractor to replace any other FILE_LOCATION met
               attribute.
           -->
           <property name="replace" value="true"/>
        </configuration>
      </extractor>
        </metExtractors>
	<metadata>
		<keyval>
			<key>DataSetName</key>
			<val>FHCRC MALDI Dilution Processed Data</val>
		</keyval>
		<keyval>
			<key>Date</key>
			<val>2007-08-07T15:46:00.000Z</val>
		</keyval>
		<keyval>
			<key>LeadPI</key>
			<val>Timothy W. Randolph</val>
		</keyval>
		<keyval>
			<key>CollaborativeGroup</key>
			<val>Prostate and Urologic</val>
		</keyval>
		<keyval>
			<key>DataCustodian</key>
			<val>Dale McLerran</val>
		</keyval>
		<keyval>
			<key>DataCustodianPhone</key>
			<val>TBD</val>
		</keyval>
		<keyval>
			<key>DataCustodianEmail</key>
			<val>TBD</val>
		</keyval>
		<keyval>
			<key>MethodDetails</key>
			<val>TBD</val>
		</keyval>
		<keyval>
			<key>AnalyticMethods</key>
			<val>TBD</val>
		</keyval>
		<keyval>
			<key>StudyDesign</key>
			<val>TBD</val>
		</keyval>
		<keyval>
			<key>EligibilityCriteria</key>
			<val>TBD</val>
		</keyval>
		<keyval>
			<key>ResultsAndConclusionSummary</key>
			<val>TBD</val>
		</keyval>
		<keyval>
			<key>ProtocolName</key>
			<val>290</val>
		</keyval>
		<keyval>
			<key>ProtocolId</key>
			<val>290</val>
		</keyval>
		<keyval>
			<key>DatasetId</key>
			<val>urn:edrn:FHCRCMALDIDilutionProcessedData
			</val>
		</keyval>
		<keyval>
			<key>StudyObjective</key>
			<val>This work addresses the problem of extracting signal content
				from protein mass spectrometry data.
				A multiscale decomposition of these spectra is used to focus on local
				scale-based structure by defining
				scale-specific features. Quantification of features is accompanied by an efficient
				method for calculating
				the location of features which avoids estimation of signal-to-noise
				ratios or bandwidths.</val>
		</keyval>
		<keyval>
			<key>PlannedSampleSize</key>
			<val>The EDRN-Prostate-SELDI Investigational Collaboration (EPSIC)
				will implement a process to
				synchronize SELDI output at the seven participating institutions using a single
				source of pooled
				normal sera (QC). The target was to recruit 100 healthy males and 100
				healthy females to donate
				two tubes of blood. Pregnant women and subjects less than 110 pounds
				were excluded from the blood
				collection. An IRB protocol was submitted two months in advance of the project.
				After IRB approval,
				fliers were generated and posted at many locations (e.g., EVMS, hospitals,
				doctor's offices). The
				blood was collected on November 6, 2002 from 7:30 am to 2:00 pm. A total
				of 360 healthy people (154
				male and 206 female) donated two tubes of blood each to make quality
				control (QC) serum.</val>
		</keyval>
		<keyval>
			<key>SiteName</key>
			<val>5</val> <!--  need to change this -->
		</keyval>
		<keyval>
			<key>OrganSite</key>
			<val>Prostate</val>
		</keyval>
    <keyval>
    	<key>PublishState</key>
    	<val>yes</val>
    </keyval>
    <keyval>
       <key>QAState</key>
       <val>Under Review</val>
    </keyval>
    <keyval type="vector">
       <key>AccessGrantedTo</key>
       <val>Prostate and Urologic</val>
       <val>Super User</val>
    </keyval>
		<keyval>
			<key>DataDisclaimer</key>
			<val>Data and information released from the National Cancer
				Institute (NCI) are provided on an "AS IS" basis, without warranty
				of any kind, including without limitation the warranties of
				merchantability, fitness for a particular purpose and
				non-infringement. Availability of this data and information does not
				constitute scientific publication. Data and/or information may
				contain errors or be incomplete.
				NCI and its employees make no representation or warranty, express or
				implied, including without limitation any warranties of
				merchantability or fitness for a particular purpose or warranties as
				to the identity or ownership of data or information, the quality,
				accuracy or completeness of data or information, or that the use of
				such data or information will not infringe any patent, intellectual
				property or proprietary rights of any party.
				NCI shall not be liable for any claim for any loss, harm, illness or
				other damage or injury arising from access to or use of data or
				information, including without limitation any direct, indirect,
				incidental, exemplary, special or consequential damages, even if
				advised of the possibility of such damages.
				In accordance with scientific standards, appropriate acknowledgment of
				NCI should be made in any publications or other disclosures
				concerning data or information made available by NCI.
      	</val>
		</keyval>
	    </metadata>
	 </type>
</cas:producttypes>


text:
package org.rocksdb.util;

public class SizeUnit {
  public static final long KB = 1024L;
  public static final long MB = KB * KB;
  public static final long GB = KB * MB;
  public static final long TB = KB * GB;
  public static final long PB = KB * TB;

  private SizeUnit() {}
}


text:
ACCEPTED

#### According to
Index Fungorum

#### Published in
null

#### Original name
Lepiota pilosiuscula Mont.

### Remarks
null


text:
module SmtRails
  module Generators
    module Helpers

      def asset_path
        "app/assets"
      end

      def js_path
        "#{asset_path}/javascripts"
      end

      def app_path
        "app"
      end

    end
  end
end


text:
require 'spec_helper'
require 'brasilfone_api/phone_parser'

RSpec.describe BrasilfoneAPI::PhoneParser do
  describe '.parse_phone_number' do
    it 'returns a phone number in the correct format' do
      dirty_phone = '0 0(011) 3453-3124!num'
      clean_phone = '1134533124'
      expect(BrasilfoneAPI::PhoneParser.parse_phone_number(dirty_phone))
        .to eql(clean_phone)
    end
  end
end


text:
<?xml version="1.0" encoding="UTF-8"?>
<beans xmlns="http://www.springframework.org/schema/beans"
 xmlns:context="http://www.springframework.org/schema/context"
 xmlns:p="http://www.springframework.org/schema/p"
 xmlns:mvc="http://www.springframework.org/schema/mvc"
 xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
 xsi:schemaLocation="http://www.springframework.org/schema/beans
      http://www.springframework.org/schema/beans/spring-beans-3.0.xsd
      http://www.springframework.org/schema/context
      http://www.springframework.org/schema/context/spring-context.xsd
      http://www.springframework.org/schema/mvc
      http://www.springframework.org/schema/mvc/spring-mvc-3.0.xsd">

     <!-- 注解扫描包 -->
	<context:component-scan base-package="tsj.spring.anthm" />

	<!-- 开启注解 -->
	<bean class="org.springframework.web.servlet.mvc.annotation.AnnotationMethodHandlerAdapter" />
	<bean class="org.springframework.web.servlet.mvc.annotation.DefaultAnnotationHandlerMapping"></bean>

	<!-- 静态资源访问 -->
	 <!-- <mvc:resources location="/img/" mapping="/img/**"/>
	 <mvc:resources location="/js/" mapping="/js/**"/> -->
	<context:component-scan base-package="org.zlex.json.controller" />
    <context:annotation-config />
    <mvc:annotation-driven />
    <mvc:default-servlet-handler />

	<bean id="viewResolver" class="org.springframework.web.servlet.view.InternalResourceViewResolver">
		<property name="prefix" value="/"></property>
		<property name="suffix" value=".jsp"></property>
	</bean>

	<bean id="multipartResolver"
		class="org.springframework.web.multipart.commons.CommonsMultipartResolver"
		p:defaultEncoding="UTF-8" >
		 <!-- set the max upload size1000MB -->
       <property name="maxUploadSize">
            <value>1048576000</value>
        </property>
        <property name="maxInMemorySize">
            <value>4096</value>
        </property>
       <!--  <property name="defaultEncoding">
            <value>utf-8</value>
        </property>   -->
	</bean>
 </beans>


text:
package org.apache.taverna.examples;

import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertNotNull;

import java.io.IOException;
import java.io.InputStream;
import java.util.Arrays;
import java.util.List;

import javax.xml.bind.JAXBException;

import org.apache.taverna.scufl2.api.container.WorkflowBundle;
import org.apache.taverna.scufl2.api.io.ReaderException;
import org.apache.taverna.scufl2.api.io.WorkflowBundleIO;
import org.junit.Test;

public class TestProcessorNames {

	@Test
	public void processorNames() throws JAXBException, IOException, ReaderException {
		InputStream workflow = getClass().getResourceAsStream(
				"/workflows/t2flow/defaultActivitiesTaverna2.2.t2flow");
		assertNotNull(workflow);

		WorkflowBundleIO io = new WorkflowBundleIO();
		WorkflowBundle ro = io.readBundle(workflow,
				"application/vnd.taverna.t2flow+xml");

		List<String> expected = Arrays.asList("Beanshell", "Nested_workflow",
				"Rshell", "Send_an_Email", "SpreadsheetImport",
				"String_constant", "TavernaResearchObject", "biomart",
				"localWorker", "localWorker_bytearray", "mobyObject",
				"mobyService", "run", "run_input", "run_output",
				"setWorkflows", "soaplab", "wsdl_document", "wsdl_rpc",
				"wsdl_secured", "xmlSplitter");
		ProcessorNames processorNames = new ProcessorNames();
		assertEquals(expected, processorNames.showProcessorNames(ro));
	}

	@Test
	public void nestedWorkflow() throws JAXBException, IOException, ReaderException {
		InputStream workflow = getClass().getResourceAsStream(
				"/workflows/t2flow/as.t2flow");
		assertNotNull(workflow);

		WorkflowBundleIO io = new WorkflowBundleIO();
		WorkflowBundle ro = io.readBundle(workflow,
				"application/vnd.taverna.t2flow+xml");
		ProcessorNames processorNames = new ProcessorNames();
		assertEquals(8, processorNames.showProcessorNames(ro).size());
	}

	@Test
	public void nestedWorkflowBundle() throws JAXBException, IOException, ReaderException {
		InputStream workflow = getClass().getResourceAsStream(
				"/workflows/wfbundle/as.wfbundle");
		assertNotNull(workflow);

		WorkflowBundleIO io = new WorkflowBundleIO();
		WorkflowBundle ro = io.readBundle(workflow, null);
		ProcessorNames processorNames = new ProcessorNames();
		assertEquals(8, processorNames.showProcessorNames(ro).size());
	}

}