text:
package controllers;

import org.mongodb.morphia.Datastore;
import com.mongodb.DBCollection;
import com.mongodb.DBCursor;
import com.mongodb.DBObject;
import org.osgl._;
import org.osgl.storage.ISObject;
import org.osgl.storage.KeyGenerator;
import org.osgl.util.S;
import org.osgl.util.Str;
import play.Logger;
import play.cache.Cache;
import play.modules.morphia.Blob;
import play.modules.morphia.BlobStorageService;
import play.modules.morphia.MorphiaPlugin;
import play.mvc.Controller;

import java.util.concurrent.atomic.AtomicInteger;

/**
 * A generic blob viewer
 */
public class BlobController extends Controller {
    public static void view(String key) {
        notFoundIfNull(key);
        Blob blob;
        if (key.endsWith(Blob.TMP_ID_SUFFIX)) {
            blob = Cache.get(key, Blob.class);
            notFoundIfNull(blob);
        } else {
            if (!key.contains("-")) {
                ISObject sobj = Cache.get(key, ISObject.class);
                notFoundIfNull(sobj);
                response.setContentTypeIfNotSet(sobj.getAttribute(ISObject.ATTR_CONTENT_TYPE));
                renderBinary(sobj.asInputStream());
            }
            Str s = S.str(key);
            String ssKey = s.afterLast("-").val();
            BlobStorageService bss = BlobStorageService.getService(ssKey);
            String objKey = s.beforeFirst("-").val();
            ISObject sobj = bss.get(objKey);
            if (null == objKey) {
                sobj = Cache.get(key, ISObject.class);
            }
            notFoundIfNull(sobj);
            blob = new Blob(sobj, bss);
        }
        if (!blob.exists()) {
            notFound();
        }
        response.setContentTypeIfNotSet(blob.type());
        renderBinary(blob.get());
    }

    public static void migrated() {
        render();
    }

    private static boolean migrating = false;
    private static boolean migrated = false;
    public static void migrate() {
        if (migrated) {
            migrated();
        }
        if (migrating) {
            render();
        }
        migrating = true;
        new play.jobs.Job(){
            @Override
            public void doJob() throws Exception {
                Datastore ds = MorphiaPlugin.ds();
                DBCollection col = ds.getDB().getCollection("uploads.files");
                DBCursor cur = col.find();
                int len = (int)col.count();
                int i = 1;
                final AtomicInteger errs = new AtomicInteger(0);
                BlobStorageService ss = MorphiaPlugin.bss(KeyGenerator.BY_DATE, MorphiaPlugin.defaultStorage);
                while (cur.hasNext()) {
                    DBObject obj = cur.next();
                    String s = (String)obj.get("name");
                    if (null == s) {
                        continue;
                    }
                    Logger.info("migrating %s of %s: %s...", i++, len, s);
                    final String key = s;
                    ss.migrate(key, new _.F1<Throwable, Void>() {
                        @Override
                        public Void apply(Throwable o) {
                            errs.incrementAndGet();
                            Logger.error(o, "error migrating blob: %s", key);
                            return null;
                        }
                    });
                }
                migrating = false;
                migrated = true;
            }
        }.now();
        render();
    }
}


text:
import { DragAndDropByAction } from '../../../../entities/actions/web/drag-and-drop-by-action';

import { Component, Input } from '@angular/core';

@Component({
  selector: 'drag-and-drop-by-action-form',
  templateUrl: './drag-and-drop-by-action-form.component.html'
})
export class DragAndDropByActionFormComponent {

  @Input() action: DragAndDropByAction;
}

redpajama_set_name: RedPajamaGithub


text:
@interface BASRootViewController : UIViewController

@end


text:
<Type Name="URLResponseInfo" FullName="PepperSharp.URLResponseInfo">
  <TypeSignature Language="C#" Value="public class URLResponseInfo : PepperSharp.Resource" />
  <TypeSignature Language="ILAsm" Value=".class public auto ansi beforefieldinit URLResponseInfo extends PepperSharp.Resource" />
  <AssemblyInfo>
    <AssemblyName>Xamarin.PepperSharp</AssemblyName>
    <AssemblyVersion>1.0.0.0</AssemblyVersion>
  </AssemblyInfo>
  <Base>
    <BaseTypeName>PepperSharp.Resource</BaseTypeName>
  </Base>
  <Interfaces />
  <Docs>
    To be added.
    <remarks>To be added.</remarks>
  </Docs>
  <Members>
    <Member MemberName="GetBodyAsFileRef">
      <MemberSignature Language="C#" Value="public PepperSharp.FileRef GetBodyAsFileRef { get; }" />
      <MemberSignature Language="ILAsm" Value=".property instance class PepperSharp.FileRef GetBodyAsFileRef" />
      <MemberType>Property</MemberType>
      <AssemblyInfo>
        <AssemblyVersion>1.0.0.0</AssemblyVersion>
      </AssemblyInfo>
      <ReturnValue>
        <ReturnType>PepperSharp.FileRef</ReturnType>
      </ReturnValue>
      <Docs>

             Gets a FileRef pointing to the file containing the response body.  This
             is only valid if URLRequestProperty.StreamToFile was set
             on the URLRequestInfo used to produce this response.  This
             file remains valid until the URLLoader associated with this
             URLResponseInfo is closed or destroyed.

        <value>To be added.</value>
        <remarks>To be added.</remarks>
      </Docs>
    </Member>
    <Member MemberName="GetProperty">
      <MemberSignature Language="C#" Value="public object GetProperty (PepperSharp.URLResponseProperty property);" />
      <MemberSignature Language="ILAsm" Value=".method public hidebysig instance object GetProperty(valuetype PepperSharp.URLResponseProperty property) cil managed" />
      <MemberType>Method</MemberType>
      <AssemblyInfo>
        <AssemblyVersion>1.0.0.0</AssemblyVersion>
      </AssemblyInfo>
      <ReturnValue>
        <ReturnType>System.Object</ReturnType>
      </ReturnValue>
      <Parameters>
        <Parameter Name="property" Type="PepperSharp.URLResponseProperty" />
      </Parameters>
      <Docs>
        <param name="property">A URLResponseProperty identifying the
             type of property in the response.</param>

             This function gets a response property.

        <returns>An object representing the property being asked for</returns>
        <remarks>To be added.</remarks>
      </Docs>
    </Member>
    <Member MemberName="Headers">
      <MemberSignature Language="C#" Value="public string Headers { get; }" />
      <MemberSignature Language="ILAsm" Value=".property instance string Headers" />
      <MemberType>Property</MemberType>
      <AssemblyInfo>
        <AssemblyVersion>1.0.0.0</AssemblyVersion>
      </AssemblyInfo>
      <ReturnValue>
        <ReturnType>System.String</ReturnType>
      </ReturnValue>
      <Docs>

             This corresponds to a string, a \n-delimited list of
             header field/value pairs of the form "field: value", returned by the
             server.Refer to the

             HTTP Header Field Definitions documentation for further information.

        <value>To be added.</value>
        <remarks>To be added.</remarks>
      </Docs>
    </Member>
    <Member MemberName="RedirectMethod">
      <MemberSignature Language="C#" Value="public string RedirectMethod { get; }" />
      <MemberSignature Language="ILAsm" Value=".property instance string RedirectMethod" />
      <MemberType>Property</MemberType>
      <AssemblyInfo>
        <AssemblyVersion>1.0.0.0</AssemblyVersion>
      </AssemblyInfo>
      <ReturnValue>
        <ReturnType>System.String</ReturnType>
      </ReturnValue>
      <Docs>

             This corresponds to a string; the HTTP method to be
             used in a new request if this is a redirect response, an empty string
             otherwise.Refer to the

             HTTP Status Codes - Redirection documentation for further information.

        <value>To be added.</value>
        <remarks>To be added.</remarks>
      </Docs>
    </Member>
    <Member MemberName="RedirectUrl">
      <MemberSignature Language="C#" Value="public string RedirectUrl { get; }" />
      <MemberSignature Language="ILAsm" Value=".property instance string RedirectUrl" />
      <MemberType>Property</MemberType>
      <AssemblyInfo>
        <AssemblyVersion>1.0.0.0</AssemblyVersion>
      </AssemblyInfo>
      <ReturnValue>
        <ReturnType>System.String</ReturnType>
      </ReturnValue>
      <Docs>

             This corresponds to a string; the absolute URL returned
             in the response header's 'Location' field if this is a redirect response,
             an empty string otherwise. Refer to the

             HTTP Status Codes - Redirection documentation for further information.

        <value>To be added.</value>
        <remarks>To be added.</remarks>
      </Docs>
    </Member>
    <Member MemberName="StatusCode">
      <MemberSignature Language="C#" Value="public int StatusCode { get; }" />
      <MemberSignature Language="ILAsm" Value=".property instance int32 StatusCode" />
      <MemberType>Property</MemberType>
      <AssemblyInfo>
        <AssemblyVersion>1.0.0.0</AssemblyVersion>
      </AssemblyInfo>
      <ReturnValue>
        <ReturnType>System.Int32</ReturnType>
      </ReturnValue>
      <Docs>

             This corresponds to an int; the status code from the
             response, e.g., 200 if the request was successful.Refer to the

             HTTP Status Code and Reason Phrase documentation for further
             information.

        <value>To be added.</value>
        <remarks>To be added.</remarks>
      </Docs>
    </Member>
    <Member MemberName="StatusLine">
      <MemberSignature Language="C#" Value="public string StatusLine { get; }" />
      <MemberSignature Language="ILAsm" Value=".property instance string StatusLine" />
      <MemberType>Property</MemberType>
      <AssemblyInfo>
        <AssemblyVersion>1.0.0.0</AssemblyVersion>
      </AssemblyInfo>
      <ReturnValue>
        <ReturnType>System.String</ReturnType>
      </ReturnValue>
      <Docs>

             This corresponds to a string; the status line
             from the response.Refer to the

             HTTP Response Status Line documentation for further information.

        <value>To be added.</value>
        <remarks>To be added.</remarks>
      </Docs>
    </Member>
    <Member MemberName="ToString">
      <MemberSignature Language="C#" Value="public override string ToString ();" />
      <MemberSignature Language="ILAsm" Value=".method public hidebysig virtual instance string ToString() cil managed" />
      <MemberType>Method</MemberType>
      <AssemblyInfo>
        <AssemblyVersion>1.0.0.0</AssemblyVersion>
      </AssemblyInfo>
      <ReturnValue>
        <ReturnType>System.String</ReturnType>
      </ReturnValue>
      <Parameters />
      <Docs>
        To be added.
        <returns>To be added.</returns>
        <remarks>To be added.</remarks>
      </Docs>
    </Member>
    <Member MemberName="Url">
      <MemberSignature Language="C#" Value="public string Url { get; }" />
      <MemberSignature Language="ILAsm" Value=".property instance string Url" />
      <MemberType>Property</MemberType>
      <AssemblyInfo>
        <AssemblyVersion>1.0.0.0</AssemblyVersion>
      </AssemblyInfo>
      <ReturnValue>
        <ReturnType>System.String</ReturnType>
      </ReturnValue>
      <Docs>

             This corresponds to a string; an absolute URL formed by
             resolving the relative request URL with the absolute document URL.Refer
             to the

             HTTP Request URI and

             HTML Resolving Relative URIs documentation for further information.

        <value>To be added.</value>
        <remarks>To be added.</remarks>
      </Docs>
    </Member>
  </Members>
</Type>


text:
import Ember from 'ember'
const {merge, run} = Ember

import Application from '../../app'
import config from '../../config/environment'

export default function startApp (attrs) {
  let attributes = merge({}, config.APP)
  attributes = merge(attributes, attrs) // use defaults, but you can override;

  return run(() => {
    let application = Application.create(attributes)
    application.setupForTesting()
    application.injectTestHelpers()
    return application
  })
}


text:
package jjtraveler;

import jjtraveler.Not;
import jjtraveler.VisitFailure;
import jjtraveler.Visitable;
import jjtraveler.Visitor;

/*
 * Simple visitor recognizing two nodes given at creation time.
 * Can be used to test generic visitors requiring a recognizing
 * argument.
 */

public class SucceedAtNodes implements jjtraveler.Visitor {
    Visitor success;
    public SucceedAtNodes(Visitable n1, Visitable n2) {
	success = new Not( new FailAtNodes(n1, n2) );
    }

    public SucceedAtNodes(Visitable n) {
	success = new Not( new FailAtNodes(n) );
    }

    public Visitable visit(Visitable x) throws VisitFailure {
	return success.visit(x);
    }
}


text:
/*
 Author: Jafar Akhondali
 Release year: 2016
 Title:	Light-Zoom JQuery plugin that use pure css to zoom on images, this enables you to zoom without loading bigger image and zoom even on gif images !
 https://github.com/JafarAkhondali/lightzoom
 */
$.fn.lightzoom = function(options) {

    var settings = $.extend({
        zoomPower   : 3,
        glassSize   : 175,
    }, options);

    var halfSize= settings.glassSize /2;
    var quarterSize = settings.glassSize/4;

    var zoomPower = settings.zoomPower;

    $("body").append('

');
    $('html > head').append($(''));

    var faker;
    var obj=this;

    $("#glass").mousemove(function(event) {
        var obj=this.targ;
        event.target=obj;
        faker(event,obj);
    });

    this.mousemove(function(event) {
        faker(event,this);
    });
    faker=function(event,obj) {
        //console.log(obj);
        document.getElementById('glass').targ=obj;
        var mx = event.pageX;
        var my = event.pageY;
        var w  = obj.offsetWidth;
        var h  = obj.offsetHeight;
        var objOffset  = $(obj).offset();
        var ol = objOffset.left;
        var ot = objOffset.top;
        if(mx > ol &&  mx < ol + w  && ot < my  &&  ot+h > my ) {
            offsetXfixer = ((mx-ol - w/2)/(w/2))*quarterSize;
            offsetYfixer = ((my-ot - h/2)/(h/2))*quarterSize;
            var cx = (((mx - ol + offsetXfixer ) / w)) * 100;
            var cy = (((my - ot + offsetYfixer ) / h)) * 100;
            my -= halfSize;
            mx -= halfSize;
            $("#glass").css({
                "top": (my),
                "left": (mx),
                "background-image" : " url('" + obj.src + "')",
                "background-size" : (w * zoomPower) + "px " + (h * zoomPower) + "px",
                "background-position": cx + "% " + cy + "%",
                "display" : "inline-block"
            });
            $("body").css("cursor","none");
        }else {
            $("#glass").css("display", "none");
            $("body").css("cursor","default");
        }
    };
    return this;
};


text:
<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/xsl" href="ivy-report.xsl"?>
<ivy-report version="1.0">
	<info
		organisation="nlptools"
		module="nlptools_2.11"
		revision="1.0"
		conf="optional"
		confs="compile, runtime, test, provided, optional, compile-internal, runtime-internal, test-internal, plugin, sources, docs, pom, scala-tool"
		date="20150817214758"/>
	<dependencies>
	</dependencies>
</ivy-report>


text:
local Utils = require('utils')

local function log(level, fmt, ...)
  -- choose color
  -- FIXME: inhibit unless in TTY
  local color = 'white'
  if     level == 'info' then color = 'Bblack'
  elseif level == 'debug' then color = 'yellow'
  elseif level == 'error' then color = 'red'
  end
  -- check if we want `print` or `p`, or `debug`
  -- `fmt` contains '%'?
  if fmt:find('%%') then
    -- use string.format
    print(Utils.colorize(color, fmt:format(...)))
  elseif level == 'debug' then
    print(Utils.colorize(color, fmt))
    debug(...)
  else
    print(Utils.colorize(color, fmt))
    p(...)
  end
end

local function info(fmt, ...)
  log('info', fmt, ...)
end

local function debug(fmt, ...)
  if process.env.DEBUG == '1' then
    log('debug', fmt, ...)
  end
end

-- module
return {
  log = log,
  info = info,
  debug = debug,
}


text:
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace DScript.Context.Arguments
{
    public interface IArgument
    {
        void BeginExecution(IExecutionContext ctx);

        void EndExecution(IExecutionContext ctx);

        void PreExecute(IExecutionContext ctx);

        IValue GetRawValue();

        IValue GetValue();
    }
}


text:
package com.lskycity.timer.record;

import android.provider.BaseColumns;

/**
 * Created by liuzhaofeng on 2016/1/29.
 */
public class RecordEntry implements BaseColumns{
    private static final String LONG_TYPE = " LONG";
    private static final String COMMA_SEP = ",";

    public static final String TABLE_NAME = "timer_record";
    public static final String COLUMN_NAME_TOTAL = "total";
    public static final String COLUMN_NAME_NORMAL = "normal";
    public static final String COLUMN_NAME_REMINDER = "reminder";
    public static final String COLUMN_NAME_WARING = "waring";

    /*package*/ static final String SQL_CREATE_ENTRIES =
            "CREATE TABLE " + TABLE_NAME + " (" +
                    _ID + " INTEGER PRIMARY KEY," +
                    COLUMN_NAME_TOTAL + LONG_TYPE + COMMA_SEP +
                    COLUMN_NAME_NORMAL + LONG_TYPE + COMMA_SEP +
                    COLUMN_NAME_REMINDER + LONG_TYPE + COMMA_SEP +
                    COLUMN_NAME_WARING + LONG_TYPE +
                    " )";
    /*package*/ static final String SQL_DELETE_ENTRIES =
            "DROP TABLE IF EXISTS " + TABLE_NAME;
}


text:
import { darkWhite, lightBlack, grey1, grey3, grey5, red500 } from '../../styles/modules/variables';
import { muiText } from '../../styles/modules/muiTypography';

const titleText = muiText('title');
const body1Text = muiText('body1');
const captionText = muiText('caption');

export default {
  engineOutputExport: {
    height: '100%',
  },
  engineOutputExportHeader: {
    height: 110,
    backgroundColor: '#1f2532',
    color: darkWhite,
    '& $title': {
      ...titleText,
      padding: '20px 0 0 20px',
    },
    '& $subtitle': {
      ...body1Text,
      padding: '5px 20px 0',
    },
    '& $closeButton': {
      marginTop: 5,
      marginRight: 10,
      float: 'right',
    },
  },
  engineOutputExportContent: {
    padding: '25px 100px',
    overflowY: 'auto',
  },
  engineOutputExportActions: {
    padding: '0 100px',
    '& $actionButton': {
      margin: '20px 0',
    },
  },
  formatSelection: {
    marginBottom: 20,
  },
  exportFormatTitle: {
    ...titleText,
    marginBottom: '15px !important',
  },
  exportFormatSubHeader: {
    ...captionText,
    color: lightBlack,
  },
  expandIcon: {
    marginRight: '10px !important',
  },
  engineListItem: {
    backgroundColor: grey1,
    '& $engineLogo': {
      marginLeft: 30,
      width: 24,
      height: 24,
      backgroundColor: grey3,
      marginTop: 16
    },
    '& $defaultEngineIcon': {
      marginLeft: 30,
    },
    '& $engineNameText': {
      ...body1Text,
      alignItems: 'center',
      marginTop: 16,
      '& $allEnginesText': {
        display: 'flex',
        alignItems: 'center',
        '& $allEnginesInfoIcon': {
          fontSize: '16px !important',
          marginLeft: 5,
          color: grey5,
        },
      },
    },
    '& $customizeOutputBox': {
      ...body1Text,
      width: '100%',
      marginLeft: '30px',
      marginRight: 5,
      display: 'flex',
      alignItems: 'center',
      backgroundColor: 'rgba(33, 150, 243, 0.1)',
      padding: '15px 5px 15px 15px',
      '& $customizeSettingsIcon': {
        color: grey5,
        marginRight: 5,
        flex: 'none',
      },
      '& $customizeSettingsText': {
        flex: 'auto',
      },
      '& $customizeButton': {
        flex: 'none',
      },
    },
  },
  engineConfigInput: {
    width: '65%',
    marginRight: 5,
  },
  formControl: {
    minWidth: '60% !important',
    top: 0,
  },
  selectStyles: {
    width: '100% !important',
  },
  exportFormatSelected: {
    backgroundColor: 'transparent !important',
  },
  subtitleConfigInfo: {
    ...captionText,
  },
  subtitleConfigField: {
    marginTop: 25,
    '& $subtitleFieldLabel': {
      ...captionText,
      color: lightBlack,
    },
    '& $subtitleFieldInput': {
      ...body1Text,
      paddingBottom: 4,
      height: '1.1875em',
    },
    '& $subtitleFieldLabelShrink': {
      transform: 'translate(0, 1.5px)',
      transformOrigin: 'top left',
    },
  },
  errorSnackBar: {
    backgroundColor: `${red500} !important`,
  },
  loadingConfigsContainer: {
    height: 60,
    display: 'flex',
    alignItems: 'center',
    justifyContent: 'center',
  },
  engineNameListText: {
    marginTop: 20,
    padding: '0 10px'
  },
  title: {},
  subtitle: {},
  closeButton: {},
  actionButton: {},
  engineLogo: {},
  defaultEngineIcon: {},
  engineNameText: {},
  allEnginesText: {},
  allEnginesInfoIcon: {},
  customizeOutputBox: {},
  customizeSettingsIcon: {},
  customizeSettingsText: {},
  customizeButton: {},
  subtitleFieldLabel: {},
  subtitleFieldInput: {},
  subtitleFieldLabelShrink: {}
}


text:
package io.github.mzmine.modules.visualization.scatterplot.scatterplotchart;

import io.github.mzmine.datamodel.features.FeatureList;
import io.github.mzmine.datamodel.features.FeatureListRow;
import io.github.mzmine.util.FeatureUtils;
import java.awt.BasicStroke;
import java.awt.Color;
import java.awt.event.ActionEvent;
import java.util.Collections;
import java.util.HashMap;
import java.util.Map;
import org.jfree.chart.ChartFactory;
import org.jfree.chart.JFreeChart;
import org.jfree.chart.axis.LogAxis;
import org.jfree.chart.event.ChartProgressEvent;
import org.jfree.chart.plot.DatasetRenderingOrder;
import org.jfree.chart.plot.PlotOrientation;
import org.jfree.chart.plot.SeriesRenderingOrder;
import org.jfree.chart.plot.XYPlot;
import org.jfree.chart.ui.RectangleInsets;
import com.google.common.collect.Range;
import io.github.mzmine.datamodel.features.Feature;
import io.github.mzmine.datamodel.FeatureIdentity;
import io.github.mzmine.datamodel.RawDataFile;
import io.github.mzmine.gui.chartbasics.gui.javafx.EChartViewer;
import io.github.mzmine.gui.chartbasics.listener.ZoomHistory;
import io.github.mzmine.main.MZmineCore;
import io.github.mzmine.modules.visualization.chromatogram.ChromatogramVisualizerModule;
import io.github.mzmine.modules.visualization.chromatogram.TICPlotType;
import io.github.mzmine.modules.visualization.scatterplot.ScatterPlotAxisSelection;
import io.github.mzmine.modules.visualization.scatterplot.ScatterPlotTopPanel;
import io.github.mzmine.modules.visualization.scatterplot.ScatterPlotTab;
import io.github.mzmine.parameters.parametertypes.selectors.ScanSelection;
import io.github.mzmine.util.SearchDefinition;
import io.github.mzmine.util.components.ComponentToolTipManager;
import javafx.scene.control.ContextMenu;

public class ScatterPlotChart extends EChartViewer {

  // grid color
  private static final Color gridColor = Color.lightGray;

  // crosshair (selection) color
  private static final Color crossHairColor = Color.gray;

  // crosshair stroke
  private static final BasicStroke crossHairStroke =
      new BasicStroke(1, BasicStroke.CAP_BUTT, BasicStroke.JOIN_BEVEL, 1.0f, new float[] {5, 3}, 0);

  private JFreeChart chart;
  private XYPlot plot;

  // Renderers
  private ScatterPlotRenderer mainRenderer;
  private DiagonalLineRenderer diagonalLineRenderer;

  // Data sets
  private ScatterPlotDataSet mainDataSet;
  private DiagonalLineDataset diagonalLineDataset;

  private ScatterPlotTopPanel topPanel;
  private ComponentToolTipManager ttm;

  private ScatterPlotTab tab;
  private FeatureList featureList;
  private ScatterPlotAxisSelection axisX, axisY;
  private int fold;

  public ScatterPlotChart(ScatterPlotTab tab, ScatterPlotTopPanel topPanel,
      FeatureList featureList) {

    super(null);

    this.tab = tab;
    this.featureList = featureList;
    this.topPanel = topPanel;

    // initialize the chart by default time series chart from factory
    chart = ChartFactory.createXYLineChart("", // title
        "", // x-axis label
        "", // y-axis label
        null, // data set
        PlotOrientation.VERTICAL, // orientation
        false, // create legend
        false, // generate tooltips
        false // generate URLs
    );

    chart.setBackgroundPaint(Color.white);
    setChart(chart);

    // disable maximum size (we don't want scaling)
    // setMaximumDrawWidth(Integer.MAX_VALUE);
    // setMaximumDrawHeight(Integer.MAX_VALUE);

    // set the plot properties
    plot = chart.getXYPlot();
    plot.setBackgroundPaint(Color.white);
    plot.setAxisOffset(new RectangleInsets(5.0, 5.0, 5.0, 5.0));
    plot.setDatasetRenderingOrder(DatasetRenderingOrder.FORWARD);
    plot.setSeriesRenderingOrder(SeriesRenderingOrder.FORWARD);
    plot.setDomainGridlinePaint(gridColor);
    plot.setRangeGridlinePaint(gridColor);

    // Set the domain log axis
    LogAxis logAxisDomain = new LogAxis();
    logAxisDomain.setMinorTickCount(1);
    logAxisDomain.setNumberFormatOverride(MZmineCore.getConfiguration().getIntensityFormat());
    logAxisDomain.setAutoRange(true);
    plot.setDomainAxis(logAxisDomain);

    // Set the range log axis
    LogAxis logAxisRange = new LogAxis();
    logAxisRange.setMinorTickCount(1);
    logAxisRange.setNumberFormatOverride(MZmineCore.getConfiguration().getIntensityFormat());
    logAxisRange.setAutoRange(true);
    plot.setRangeAxis(logAxisRange);

    // Set crosshair properties
    plot.setDomainCrosshairVisible(true);
    plot.setRangeCrosshairVisible(true);
    plot.setDomainCrosshairPaint(crossHairColor);
    plot.setRangeCrosshairPaint(crossHairColor);
    plot.setDomainCrosshairStroke(crossHairStroke);
    plot.setRangeCrosshairStroke(crossHairStroke);

    // Create data sets;
    mainDataSet = new ScatterPlotDataSet(featureList);
    plot.setDataset(0, mainDataSet);
    diagonalLineDataset = new DiagonalLineDataset();
    plot.setDataset(1, diagonalLineDataset);

    // Create renderers
    mainRenderer = new ScatterPlotRenderer();
    plot.setRenderer(0, mainRenderer);
    diagonalLineRenderer = new DiagonalLineRenderer();
    plot.setRenderer(1, diagonalLineRenderer);

    // Set tooltip properties
    // ttm = new ComponentToolTipManager();
    // ttm.registerComponent(this);
    // setDismissDelay(Integer.MAX_VALUE);
    // setInitialDelay(0);

    // add items to popup menu TODO: add other Show... items
    ContextMenu popupMenu = getContextMenu();
    // popupMenu.addSeparator();
    // GUIUtils.addMenuItem(popupMenu, "Show Chromatogram", this, "TIC");

    // reset zoom history
    ZoomHistory history = getZoomHistory();
    if (history != null)
      history.clear();
  }

  /*
   *
   * @Override public JComponent getCustomToolTipComponent(MouseEvent event) {
   *
   * String index = this.getToolTipText(event); if (index == null) { return null; } String
   * indexSplit[] = index.split(":");
   *
   * int series = Integer.parseInt(indexSplit[0]); int item = Integer.parseInt(indexSplit[1]);
   *
   * PeakListRow row = mainDataSet.getRow(series, item);
   *
   * PeakSummaryComponent newSummary = new PeakSummaryComponent(row, peakList.getRawDataFiles(),
   * true, true, true, true, false, ComponentToolTipManager.bg);
   *
   * double xValue = mainDataSet.getXValue(series, item); double yValue =
   * mainDataSet.getYValue(series, item); newSummary.setRatio(xValue, yValue);
   *
   * return newSummary;
   *
   *
   * }
   */

  /**
   * @see org.jfree.chart.event.ChartProgressListener#chartProgress(org.jfree.chart.event.ChartProgressEvent)
   */
  // @Override
  public void chartProgress(ChartProgressEvent event) {

    // Whenever chart is repainted (e.g. after crosshair position changed),
    // we update the selected item name
    if (event.getType() == ChartProgressEvent.DRAWING_FINISHED) {
      double valueX = plot.getDomainCrosshairValue();
      double valueY = plot.getRangeCrosshairValue();
      FeatureListRow selectedRow = mainDataSet.getRow(valueX, valueY);
      topPanel.updateItemNameText(selectedRow);
    }
  }

  public XYPlot getPlot() {
    return plot;
  }

  public void actionPerformed(ActionEvent event) {

    String command = event.getActionCommand();

    if (command.equals("TIC")) {

      double valueX = plot.getDomainCrosshairValue();
      double valueY = plot.getRangeCrosshairValue();
      FeatureListRow selectedRow = mainDataSet.getRow(valueX, valueY);

      if (selectedRow == null) {
        MZmineCore.getDesktop().displayErrorMessage("No feature is selected");
        return;
      }

      Feature[] peaks = selectedRow.getFeatures().toArray(new Feature[0]);
      Range<Float> rtRange = featureList.getRowsRTRange();
      Range<Double> mzRange = FeatureUtils.findMZRange(peaks);

      // Label best peak with preferred identity.
      final Feature bestPeak = selectedRow.getBestFeature();
      final FeatureIdentity featureIdentity = selectedRow.getPreferredFeatureIdentity();
      final Map<Feature, String> labelMap = new HashMap<Feature, String>(1);
      if (bestPeak != null && featureIdentity != null) {

        labelMap.put(bestPeak, featureIdentity.getName());
      }

      ScanSelection scanSelection = new ScanSelection(rtRange, 1);

      ChromatogramVisualizerModule.showNewTICVisualizerWindow(
          featureList.getRawDataFiles().toArray(RawDataFile[]::new),
          Collections.singletonList(bestPeak), labelMap, scanSelection, TICPlotType.BASEPEAK,
          mzRange);
    }

  }

  public void setDisplayedAxes(ScatterPlotAxisSelection axisX, ScatterPlotAxisSelection axisY,
      int fold) {

    // Save values
    this.axisX = axisX;
    this.axisY = axisY;
    this.fold = fold;

    // Update axes
    plot.getDomainAxis().setLabel(axisX.toString());
    plot.getRangeAxis().setLabel(axisY.toString());

    // Update data sets
    mainDataSet.setDisplayedAxes(axisX, axisY);
    diagonalLineDataset.updateDiagonalData(mainDataSet, fold);

    topPanel.updateNumOfItemsText(featureList, mainDataSet, axisX, axisY, fold);
  }

  public void setItemLabels(boolean enabled) {
    mainRenderer.setSeriesItemLabelsVisible(1, enabled);
  }

  public void updateSearchDefinition(SearchDefinition newSearch) {
    mainDataSet.updateSearchDefinition(newSearch);
    topPanel.updateNumOfItemsText(featureList, mainDataSet, axisX, axisY, fold);
  }

}


text:
//  -*- C++ -*-

/*
 * Copyright (C) 1990,91   Silicon Graphics, Inc.
 *
 _______________________________________________________________________
 ______________  S I L I C O N   G R A P H I C S   I N C .  ____________
 |
 |   $Revision: 1.1.1.1 $
 |
 |   Description:
 |	Definition of the SoEngineOutputData class, which is used by
 |	engines to store information about their outputs.  Based on
 |	SoFieldData.
 |
 |   Author(s)		: Paul S. Strauss, Nick Thompson, Gavin Bell
 |
 ______________  S I L I C O N   G R A P H I C S   I N C .  ____________
 _______________________________________________________________________
 */

// C-api: end

#ifndef  _SO_OUTPUT_DATA_
#define  _SO_OUTPUT_DATA_

#include <Inventor/misc/SoBasic.h>
#include <Inventor/SbPList.h>
#include <Inventor/SbString.h>
#include <Inventor/SoType.h>

class SoEngine;
class SoFieldContainer;
class SoInput;
class SoOutput;
class SoEngineOutput;

//////////////////////////////////////////////////////////////////////////////
//
//  Class: SoEngineOutputData
//
//  The SoEngineOutputData class holds data about engine outputs: the
//  number of outputs the engine has, the names of the outputs.
//
//  All engines of a given class share the same output data. Therefore,
//  to get information about a particular output in a particular engine
//  instance, it is necessary to pass that instance to the appropriate
//  method.
//
//////////////////////////////////////////////////////////////////////////////

SoINTERNAL class INVENTOR_API SoEngineOutputData {
  public:
    // Default constructor
    SoEngineOutputData() { }

    SoEngineOutputData(const SoEngineOutputData *);

    // Constructor that takes number of fields as a hint
    SoEngineOutputData(int numOutputs) : outputs(numOutputs)
	{ }

    // Destructor
    ~SoEngineOutputData();

    // Adds an output to current data, given name of output,
    // a pointer to field within the engine, and the type of output.
    void		addOutput(const SoEngine *defEngine,
				  const char *outputName,
				  const SoEngineOutput *output,
				  SoType type);

    // Returns number of outputs
    int			getNumOutputs() const	{ return outputs.getLength(); }

    // Returns name of output with given index
    const SbName &	getOutputName(int index) const;

    // Returns pointer to output with given index within given object instance
    SoEngineOutput *	getOutput(const SoEngine *engine,
				  int index) const;

    // Returns index of output, given the output and the engine it
    // is in.
    int			getIndex(const SoEngine *engine,
				 const SoEngineOutput *output) const;

    // Returns type of output with given index
    const SoType &	getType(int index) const;

    // Methods to read and write the output descriptions
    SbBool		readDescriptions(SoInput *in,
					 SoEngine *engine) const;
    void		writeDescriptions(SoOutput *out,
					 SoEngine *engine) const;
  private:
    SbPList		outputs;	// List of outputs (SoOutputEntry)
};

#endif /* _SO_OUTPUT_DATA_ */


text:
// ****************************************************************************
// <copyright file="SaveAppointmentService.cs" company="Pedro Lamas">
// Copyright © Pedro Lamas 2012
// </copyright>
// ****************************************************************************
// <author>Pedro Lamas</author>
// <email>pedrolamas@gmail.com</email>
// <date>05-12-2012</date>
// <project>Cimbalino.Phone.Toolkit</project>
// <web>http://www.pedrolamas.com</web>
// <license>
// See license.txt in this solution or http://www.pedrolamas.com/license_MIT.txt
// </license>
// ****************************************************************************

#if WP8
using Microsoft.Phone.Tasks;
#else
using System;
#endif

namespace Cimbalino.Phone.Toolkit.Services
{
    /// <summary>
    /// Represents an implementation of the <see cref="ISaveAppointmentService"/>.
    /// </summary>
    public class SaveAppointmentService : ISaveAppointmentService
    {
        /// <summary>
        /// Shows the calendar application with a new appointment displayed, using the <see cref="SaveAppointmentServiceParams"/> instance.
        /// </summary>
        /// <param name="saveAppointmentServiceParams">The <see cref="SaveAppointmentServiceParams"/> instance.</param>
        public void Show(SaveAppointmentServiceParams saveAppointmentServiceParams)
        {
#if WP8
            var saveAppointmentTask = new SaveAppointmentTask()
            {
                Subject = saveAppointmentServiceParams.Subject,
                Details = saveAppointmentServiceParams.Details,
                StartTime = saveAppointmentServiceParams.StartTime,
                EndTime = saveAppointmentServiceParams.EndTime,
            };

            if (saveAppointmentServiceParams.AppointmentStatus.HasValue)
            {
                saveAppointmentTask.AppointmentStatus = saveAppointmentServiceParams.AppointmentStatus.Value;
            }

            if (saveAppointmentServiceParams.IsAllDayEvent.HasValue)
            {
                saveAppointmentTask.IsAllDayEvent = saveAppointmentServiceParams.IsAllDayEvent.Value;
            }

            saveAppointmentTask.Show();
#else
            throw new NotSupportedException("This service is not supported in Windows Phone 7.x");
#endif
        }
    }
}


text:
class TeamsController < ApplicationController
  before_filter :intercept_html_requests
  layout false
  respond_to :json
  before_action :set_team, only: [:show, :edit, :update, :destroy]

  # GET /teams
  # GET /teams.json
  def index
    @teams = Team.all
    render_with_protection @teams
  end

  # GET /teams/1
  # GET /teams/1.json
  def show
    render_with_protection @team
  end

  # GET /teams/new
  def new
    @team = Team.new
  end

  # GET /teams/1/edit
  def edit
  end

  # POST /teams
  # POST /teams.json
  def create
    @team = Team.new(team_params)

    if @team.save
      render_with_protection @team, { status: :created }
    else
      render_with_protection @team.errors, { status: :unprocessable_entity }
    end
  end

  # PATCH/PUT /teams/1
  # PATCH/PUT /teams/1.json
  def update

    if @team.update(team_params)
      render_with_protection @team
    else
      render_with_protection @team.errors, { status: :unprocessable_entity }
    end
  end

  # DELETE /teams/1
  # DELETE /teams/1.json
  def destroy
    @team.destroy
    head :no_content
  end

  private
    # Use callbacks to share common setup or constraints between actions.
    def set_team
      @team = Team.find(params[:id])
    end

    # Never trust parameters from the scary internet, only allow the white list through.
    def team_params
      params.require(:team).permit(:club_id, :name, :captain, :date_created)
    end
end


text:
// Copyright (c) Costin Morariu. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for full license information.

using Windows.UI.Xaml.Controls;

namespace Wontstop.Ui.Uwp.Views
{
    public sealed partial class FeedsPage : Page
    {
        public FeedsPage()
        {
            InitializeComponent();
        }
    }
}


text:
using System;

using Windows.UI.Xaml;
using Windows.UI.Xaml.Controls;

namespace ModelGraph.Helpers
{
    public class NavHelper
    {
        public static Type GetNavigateTo(NavigationViewItem item)
        {
            return (Type)item.GetValue(NavigateToProperty);
        }

        public static void SetNavigateTo(NavigationViewItem item, Type value)
        {
            item.SetValue(NavigateToProperty, value);
        }

        public static readonly DependencyProperty NavigateToProperty =
            DependencyProperty.RegisterAttached("NavigateTo", typeof(Type), typeof(NavHelper), new PropertyMetadata(null));
    }
}


text:
namespace content {

void SetContentCommandLineFlags(int max_render_process_count,
                                const std::string& plugin_descriptor) {
  // May be called multiple times, to cover all possible program entry points.
  static bool already_initialized = false;
  if (already_initialized)
    return;
  already_initialized = true;

  CommandLine* parsed_command_line = CommandLine::ForCurrentProcess();

  if (parsed_command_line->HasSwitch(switches::kRendererProcessLimit)) {
    std::string limit = parsed_command_line->GetSwitchValueASCII(
        switches::kRendererProcessLimit);
    int value;
    if (base::StringToInt(limit, &value))
      max_render_process_count = value;
  }

  if (max_render_process_count <= 0) {
    // Need to ensure the command line flag is consistent as a lot of chrome
    // internal code checks this directly, but it wouldn't normally get set when
    // we are implementing an embedded WebView.
    parsed_command_line->AppendSwitch(switches::kSingleProcess);
  } else {
    max_render_process_count =
        std::min(max_render_process_count,
                 static_cast<int>(content::kMaxRendererProcessCount));
    content::RenderProcessHost::SetMaxRendererProcessCount(
        max_render_process_count);
  }

  parsed_command_line->AppendSwitch(switches::kForceCompositingMode);
  parsed_command_line->AppendSwitch(switches::kAllowWebUICompositing);
  parsed_command_line->AppendSwitch(switches::kEnableThreadedCompositing);
  parsed_command_line->AppendSwitch(
      switches::kEnableCompositingForFixedPosition);
  parsed_command_line->AppendSwitch(switches::kEnableAcceleratedOverflowScroll);
  parsed_command_line->AppendSwitch(
      switches::kEnableAcceleratedScrollableFrames);
  parsed_command_line->AppendSwitch(
      switches::kEnableCompositedScrollingForFrames);
  parsed_command_line->AppendSwitch(switches::kEnableBeginFrameScheduling);

  parsed_command_line->AppendSwitch(switches::kEnableGestureTapHighlight);
  parsed_command_line->AppendSwitch(switches::kEnablePinch);
  parsed_command_line->AppendSwitch(switches::kEnableOverscrollNotifications);

  // Run the GPU service as a thread in the browser instead of as a
  // standalone process.
  parsed_command_line->AppendSwitch(switches::kInProcessGPU);
  parsed_command_line->AppendSwitch(switches::kDisableGpuShaderDiskCache);

  // Always use fixed layout and viewport tag.
  parsed_command_line->AppendSwitch(switches::kEnableFixedLayout);
  parsed_command_line->AppendSwitch(switches::kEnableViewport);

  // Disable anti-aliasing.
  parsed_command_line->AppendSwitch(
      cc::switches::kDisableCompositedAntialiasing);

  if (!plugin_descriptor.empty()) {
    parsed_command_line->AppendSwitchNative(
      switches::kRegisterPepperPlugins, plugin_descriptor);
  }
}

}  // namespace content


text:
import interactionEvent from 'portia-web/utils/interaction-event';

module('interactionEvent');

// Replace this with your real tests.
test('it works', function() {
  var evt = document.createEvent('Event');
  evt.initEvent('TestEvent', true, true);
  document.documentElement.dispatchEvent(evt);
  var result = interactionEvent(evt);
  ok(result);
});


text:
<TITLE>Startup</TITLE>

7.5. Startup

Up:  MPI Environmental Management
Next:  Profiling Interface
Previous:  Timers and synchronization

One goal of  MPI is to achieve  source code portability.  By this we mean
that a program written using  MPI and complying with the relevant language
standards is portable as written, and must not require any source code changes
when moved from one system to another.  This explicitly does  not say
anything about how an  MPI program is started or launched from the command
line, nor what the user must do to set up the environment in which an  MPI
program will run.  However, an implementation may require some setup to be
performed before other  MPI routines may be called.  To provide for this,  MPI
includes an initialization routine  MPI_INIT.

     MPI_INIT()

 <tt> int MPI_Init(int *argc, char ***argv)
</tt>

 <tt> MPI_INIT(IERROR)
 INTEGER IERROR
</tt>

This routine must be called before any other  MPI routine.  It must be called
at most once; subsequent calls are erroneous (see  MPI_INITIALIZED).

All  MPI programs must contain a call to  MPI_INIT; this routine must be
called before any other  MPI routine (apart from <tt>MPI_INITIALIZED</tt>) is
called.
The version for ANSI C accepts the  argc and  argv that are
provided by the arguments to <tt>main</tt>:

<tt>int main(argc, argv)
int argc;
char **argv;
{
    MPI_Init(&argc, &argv);

/* parse arguments */
    /* main program    */

MPI_Finalize();     /* see below */
}
</tt>

The Fortran version takes only  IERROR.

An MPI implementation is free to require that the arguments in the C binding
must be the arguments to <tt>main</tt>.

[] Rationale.

The command line arguements are provided  to  MPI_Init to allow
an MPI implementation to use them in initializing the MPI environment.  They
are passed by reference to allow an MPI implementation to  provide them
in environments where the command-line arguments are not provided to <tt>main</tt>.
 ( End of rationale.)

     MPI_FINALIZE()

 <tt> int MPI_Finalize(void)
</tt>

 <tt> MPI_FINALIZE(IERROR)
 INTEGER IERROR
</tt>

This routines cleans up all  MPI state.  Once this routine is called, no  MPI
routine (even  MPI_INIT) may be called.
The user must ensure that all pending communications
involving a process completes before the process calls  MPI_FINALIZE.

     MPI_INITIALIZED( flag )

[  OUT   flag] Flag is true if  MPI_INIT has been called and false
otherwise.

 <tt> int MPI_Initialized(int *flag)
</tt>

 <tt> MPI_INITIALIZED(FLAG, IERROR)
 LOGICAL FLAG
INTEGER IERROR
</tt>

This routine may be used to determine whether  MPI_INIT has been
called.  It is the  only routine that may be called before
 MPI_INIT is called.

     MPI_ABORT( comm, errorcode )

[  IN   comm] communicator of tasks to abort

[  IN   errorcode] error code to return to invoking environment

 <tt> int MPI_Abort(MPI_Comm comm, int errorcode)
</tt>

 <tt> MPI_ABORT(COMM, ERRORCODE, IERROR)
 INTEGER COMM, ERRORCODE, IERROR
</tt>

This routine makes a ``best attempt'' to abort all tasks in the group
of  comm.
This function does not require that the invoking environment take any action
with the error code.  However, a Unix or POSIX environment should handle this
as a <tt>return errorcode</tt> from the main program or an
<tt>abort(errorcode)</tt>.

 MPI implementations are required to define the behavior of
 MPI_ABORT at least for
a <tt>comm</tt> of  MPI_COMM_WORLD.   MPI implementations may ignore the
<tt>comm</tt> argument and act as if the <tt>comm</tt> was
 MPI_COMM_WORLD.

[] Rationale.

The communicator argument is provided to allow for future extensions of MPI to
environments with, for example, dynamic process management.  In particular, it
allows but does not require an MPI implementation to abort a subset of
 MPI_COMM_WORLD.
 ( End of rationale.)

Up:  MPI Environmental Management
Next:  Profiling Interface
Previous:  Timers and synchronization

Return to MPI 1.1 Standard Index

Return to MPI-2 Standard Index

Return to MPI Forum Home Page

MPI-1.1 of June 12, 1995

HTML Generated on August 6, 1997


text:
package com.intellij.openapi.vcs.readOnlyHandler;

import com.intellij.openapi.project.Project;
import com.intellij.openapi.vcs.AbstractVcs;
import com.intellij.openapi.vcs.FilePathImpl;
import com.intellij.openapi.vcs.ProjectLevelVcsManager;
import com.intellij.openapi.vfs.VirtualFile;
import org.jetbrains.annotations.Nullable;

/**
 * @author yole
 */
public class VcsHandleTypeFactory implements HandleTypeFactory {
  private final Project myProject;

  public VcsHandleTypeFactory(final Project project) {
    myProject = project;
  }

  @Nullable
  public HandleType createHandleType(final VirtualFile file) {
    AbstractVcs vcs = ProjectLevelVcsManager.getInstance(myProject).getVcsFor(file);
    if (vcs != null) {
      boolean fileExistsInVcs = vcs.fileExistsInVcs(new FilePathImpl(file));
      if (fileExistsInVcs && vcs.getEditFileProvider() != null) {
        return new VcsHandleType(vcs);
      }
    }
    return null;
  }
}


text:
@interface XMPPSoftwareVersion : XMPPModule

@property (copy,readonly) NSString *name;
@property (copy,readonly) NSString *version;
@property (copy,readonly) NSString *os;

- (id)initWithDispatchQueue:(dispatch_queue_t)queue;

- (id)initWithName:(NSString *)name
           version:(NSString *)version
                os:(NSString *)os
     dispatchQueue:(dispatch_queue_t)queue;

@end


text:
<?php

namespace Users\UserManageBundle\Entity;

use Doctrine\ORM\Mapping as ORM;
use Doctrine\ORM\Mapping\PrePersist;
use Doctrine\ORM\Event\PreUpdateEventArgs;
use Symfony\Component\Validator\Constraints as Assert;
use Users\UsermanageBundle\Entity\state;
use Symfony\Component\HttpFoundation\File\UploadedFile;
use Symfony\Component\Filesystem\Filesystem;
use Symfony\Component\Filesystem\Exception\IOExceptionInterface;
use Doctrine\Common\Collections\ArrayCollection;
/**
 * account
 *
 * @ORM\Table()
 * @ORM\Entity(repositoryClass="Users\UserManageBundle\Entity\accountRepository")
 */
class account
{
    /**
     * @var integer
     *
     * @ORM\Column(name="id", type="integer")
     * @ORM\Id
     * @ORM\GeneratedValue(strategy="AUTO")
     */
    private $id;

    /**
     * @var string
     *
     * @ORM\Column(name="name", type="string", length=255)
     */
    private $name;

    /**
     * @var string
     *
     * @ORM\Column(name="address", type="string", length=255)
     */
    private $address;

    /**
     * @var string
     *
     * @ORM\Column(name="address2", type="string", length=255, nullable =true )
     */
    private $address2;

    /**
     * @var string
     *
     * @ORM\Column(name="city", type="string", length=100)
     */
    private $city;

	 /**
     * @ORM\ManyToOne(targetEntity="state", inversedBy="Account")
     * @ORM\JoinColumn(name="state_id", referencedColumnName="id" )
     */
     protected $state_entity;

    /**
     * @var integer
     * @ORM\ManyToOne(targetEntity="state", inversedBy="Account")
     * @ORM\JoinColumn(name="state_id", referencedColumnName="id")
     * @ORM\Column(name="state_id", type="integer")
     */
    private $stateId;

    /**
     * @var string
     *
     * @ORM\Column(name="zip_code", type="string", length=10)
     */
    private $zipCode;

    /**
     * @var string
     *
     * @ORM\Column(name="primary_phone", type="string", length=20)
     */
    private $primaryPhone;

    /**
     * @var string
     *
     * @ORM\Column(name="secondary_phone", type="string", length=20, nullable = true)
     */
    private $secondaryPhone;

    /**
     * @var integer
     *
     * @ORM\Column(name="status", type="smallint")
     */
    private $status;

    /**
     * @var \DateTime
     *
     * @ORM\Column(name="created_date", type="datetime")
     */
    private $createdDate;

    /**
     * @var \DateTime
     *
     * @ORM\Column(name="modified_date", type="datetime", nullable = true)
     */
    private $modifiedDate;

    /**
     * @var string
     *
     * @ORM\Column(name="email", type="string", length=200)
     */
    private $email;

    /**
     * @var integer
     *
     * @ORM\Column(name="state_format", type="smallint" , nullable = true)
     */
    private $stateFormat;

    /**
     * @var integer
     *
     * @ORM\Column(name="kr_was_clients", type="smallint", nullable = true)
     */
    private $krWasClients;

    /**
     * @var integer
     *
     * @ORM\Column(name="reseller_id", type="smallint", options={"default" = 0} )
     */
    private $resellerId;

     /**
     * @var string
     *
     * @ORM\Column(name="account_setting", type="text", nullable = true)
     */
    private $accountSetting;

    /**
     * @var integer
     *
     * @ORM\Column(name="account_logo", type="string", length = 255, nullable = true)
     */
    private $logo;

	/**
    * @Assert\File(maxSize="6000000000")
    */
    private $file;

	 /**
     * @var integer
     *
     * @ORM\Column(name="theme_setting", type="text" , nullable = true)
     */
    private $themeSetting;

    /**
     * Get id
     *
     * @return integer
     */
    public function getId()
    {
        return $this->id;
    }

    /**
     * Set name
     *
     * @param string $name
     * @return account
     */
    public function setName($name)
    {
        $this->name = $name;

        return $this;
    }

    /**
     * Get name
     *
     * @return string
     */
    public function getName()
    {
        return $this->name;
    }

    /**
     * Set address
     *
     * @param string $address
     * @return account
     */
    public function setAddress($address)
    {
        $this->address = $address;

        return $this;
    }

    /**
     * Get address
     *
     * @return string
     */
    public function getAddress()
    {
        return $this->address;
    }

    /**
     * Set address2
     *
     * @param string $address2
     * @return account
     */
    public function setAddress2($address2)
    {
        $this->address2 = $address2;

        return $this;
    }

    /**
     * Get address2
     *
     * @return string
     */
    public function getAddress2()
    {
        return $this->address2;
    }

    /**
     * Set city
     *
     * @param string $city
     * @return account
     */
    public function setCity($city)
    {
        $this->city = $city;

        return $this;
    }

    /**
     * Get city
     *
     * @return string
     */
    public function getCity()
    {
        return $this->city;
    }

    /**
     * Set stateId
     *
     * @param integer $stateId
     * @return account
     */
    public function setStateId($stateId)
    {
        $this->stateId = $stateId;

        return $this;
    }

    /**
     * Get stateId
     *
     * @return integer
     */
    public function getStateId()
    {
        return $this->stateId;
    }

    /**
     * Set zipCode
     *
     * @param string $zipCode
     * @return account
     */
    public function setZipCode($zipCode)
    {
        $this->zipCode = $zipCode;

        return $this;
    }

    /**
     * Get zipCode
     *
     * @return string
     */
    public function getZipCode()
    {
        return $this->zipCode;
    }

    /**
     * Set primaryPhone
     *
     * @param string $primaryPhone
     * @return account
     */
    public function setPrimaryPhone($primaryPhone)
    {
        $this->primaryPhone = $primaryPhone;

        return $this;
    }

    /**
     * Get primaryPhone
     *
     * @return string
     */
    public function getPrimaryPhone()
    {
        return $this->primaryPhone;
    }

    /**
     * Set secondaryPhone
     *
     * @param string $secondaryPhone
     * @return account
     */
    public function setSecondaryPhone($secondaryPhone)
    {
        $this->secondaryPhone = $secondaryPhone;

        return $this;
    }

    /**
     * Get secondaryPhone
     *
     * @return string
     */
    public function getSecondaryPhone()
    {
        return $this->secondaryPhone;
    }

    /**
     * Set status
     *
     * @param integer $status
     * @return account
     */
    public function setStatus($status)
    {
        $this->status = $status;

        return $this;
    }

    /**
     * Get status
     *
     * @return integer
     */
    public function getStatus()
    {
        return $this->status;
    }

    /**
     * Set createdDate
     *
     * @param \DateTime $createdDate
     * @return account
     */
    public function setCreatedDate($createdDate)
    {
        $this->createdDate = $createdDate;

        return $this;
    }

    /**
     * Get createdDate
     *
     * @return \DateTime
     */
    public function getCreatedDate()
    {
        return $this->createdDate;
    }

    /**
     * Set modifiedDate
     *
     * @param \DateTime $modifiedDate
     * @return account
     */
    public function setModifiedDate($modifiedDate)
    {
        $this->modifiedDate = $modifiedDate;

        return $this;
    }

    /**
     * Get modifiedDate
     *
     * @return \DateTime
     */
    public function getModifiedDate()
    {
        return $this->modifiedDate;
    }

    /**
     * Set email
     *
     * @param string $email
     * @return account
     */
    public function setEmail($email)
    {
        $this->email = $email;

        return $this;
    }

    /**
     * Get email
     *
     * @return string
     */
    public function getEmail()
    {
        return $this->email;
    }

    /**
     * Set stateFormat
     *
     * @param integer $stateFormat
     * @return account
     */
    public function setStateFormat($stateFormat)
    {
        $this->stateFormat = $stateFormat;

        return $this;
    }

    /**
     * Get stateFormat
     *
     * @return integer
     */
    public function getStateFormat()
    {
        return $this->stateFormat;
    }

    /**
     * Set krWasClients
     *
     * @param integer $krWasClients
     * @return account
     */
    public function setKrWasClients($krWasClients)
    {
        $this->krWasClients = $krWasClients;

        return $this;
    }

    /**
     * Get krWasClients
     *
     * @return integer
     */
    public function getKrWasClients()
    {
        return $this->krWasClients;
    }

    /**
     * Set resellerId
     *
     * @param integer $resellerId
     * @return account
     */
    public function setResellerId($resellerId)
    {
        $this->resellerId = $resellerId;

        return $this;
    }

    /**
     * Get resellerId
     *
     * @return integer
     */
    public function getResellerId()
    {
        return $this->resellerId;
    }

    /**
     * Set state_entity
     *
     * @param \Users\UserManageBundle\Entity\state $stateEntity
     * @return account
     */
    public function setStateEntity(\Users\UserManageBundle\Entity\state $stateEntity = null)
    {
        $this->state_entity = $stateEntity;

        return $this;
    }

    /**
     * Get state_entity
     *
     * @return \Users\UserManageBundle\Entity\state
     */
    public function getStateEntity()
    {
        return $this->state_entity;
    }

    /**
     * Set logo
     *
     * @param string $logo
     * @return account
     */
    public function setLogo($logo)
    {
        $this->logo = $logo;

        return $this;
    }

    /**
     * Get logo
     *
     * @return string
     */
    public function getLogo()
    {
        return $this->logo;
    }

	 /**
     * Sets file.
     *
     * @param UploadedFile $file
     */
    public function setFile(UploadedFile $file = null)
    {

        $this->file = $file;
        return $this;
    }

    /**
     * Get file.
     *
     * @return UploadedFile
     */
    public function getFile()
    {

       return $this->file;
    }

	public function getUploadRootDir($id, $usertype)
    {
        // the absolute directory path where uploaded
        // documents should be saved
        return __DIR__.'/../../../../web/'.$this->getUploadDir($id, $usertype);
    }

    public function getUploadDir($id, $usertype)
    {
	     $folder = $usertype == 1 ? 'resellers' : 'agents' ;
        // when displaying uploaded in the view.
        return 'bundles/UsersUserManage/images/'.$folder.'/'.$id;
    }

	 public function upload($file, $id, $usertype)
    {
        $file_system = new Filesystem();
		try{
		   $folder = $usertype == 1 ? 'resellers' : 'agents' ;
		   $directory =  __DIR__.'/../../../../web/bundles/UsersUserManage/images/'.$folder ;
		   if( !file_exists($directory) && !is_dir($directory) ) {
		      $file_system->mkdir(  $directory );
		   }
        $file_system->mkdir( $this->getUploadRootDir($id,  $usertype) );
		}catch(\Exception $e) {
		   $logger = $this->get( 'logger' );
           $logger->error( $e->getMessage() );
		}
        // compute a random name and try to guess the extension (more secure)
      /*  $extension = $file->guessExtension();
        if (!$extension) {
            // extension cannot be guessed
            $extension = 'bin';
        }*/
        // move takes the target directory and then the
        // target filename to move to

        $file->move(
               $this->getUploadRootDir($id,  $usertype),
               $file->getClientOriginalName()
        );

        // clean up the file property as you won't need it anymore
        $this->file = null;
    }

    /**
     * Set themeSetting
     *
     * @param string $themeSetting
     * @return account
     */
    public function setThemeSetting($themeSetting)
    {
        $this->themeSetting = $themeSetting;

        return $this;
    }

    /**
     * Get themeSetting
     *
     * @return string
     */
    public function getThemeSetting()
    {
        return $this->themeSetting;
    }

    /**
     * Set accountSetting
     *
     * @param string $accountSetting
     * @return account
     */
    public function setAccountSetting($accountSetting)
    {
        $this->accountSetting = $accountSetting;

        return $this;
    }

    /**
     * Get accountSetting
     *
     * @return string
     */
    public function getAccountSetting()
    {
        return $this->accountSetting;
    }
}


text:
<?php

App::import('Core', 'Folder');

/**
 * Short description for class.
 *
 * @package       cake
 * @subpackage    cake.cake.tests.lib
 */
class CodeCoverageManager {

/**
 * Is this an app test case?
 *
 * @var string
 */
	var $appTest = false;

/**
 * Is this an app test case?
 *
 * @var string
 */
	var $pluginTest = false;

/**
 * Is this a grouptest?
 *
 * @var string
 * @access public
 */
	var $groupTest = false;

/**
 * The test case file to analyze
 *
 * @var string
 */
	var $testCaseFile = '';

/**
 * The currently used CakeTestReporter
 *
 * @var string
 */
	var $reporter = '';

/**
 * undocumented variable
 *
 * @var string
 */
	var $numDiffContextLines = 7;

/**
 * Returns a singleton instance
 *
 * @return object
 * @access public
 */
	function &getInstance() {
		static $instance = array();
		if (!$instance) {
			$instance[0] =& new CodeCoverageManager();
		}
		return $instance[0];
	}

/**
 * Initializes a new Coverage Analyzation for a given test case file
 *
 * @param string $testCaseFile The test case file being covered.
 * @param object $reporter Instance of the reporter running.
 * @return void
 * @static
 */
	function init($testCaseFile, &$reporter) {
		$manager =& CodeCoverageManager::getInstance();
		$manager->reporter =& $reporter;
		$testCaseFile = str_replace(DS . DS, DS, $testCaseFile);
		$thisFile = str_replace('.php', '.test.php', basename(__FILE__));

		if (strpos($testCaseFile, $thisFile) !== false) {
			trigger_error(__('Xdebug supports no parallel coverage analysis - so this is not possible.', true), E_USER_ERROR);
		}
		$manager->setParams($reporter);
		$manager->testCaseFile = $testCaseFile;
	}

/**
 * Start/resume Code coverage collection.
 *
 * @return void
 * @static
 */
	function start() {
		xdebug_start_code_coverage(XDEBUG_CC_UNUSED | XDEBUG_CC_DEAD_CODE);
	}

/**
 * Stops/pauses code coverage collection. Does not clean the
 * code coverage memory. Use clean() to clear code coverage memory
 *
 * @return void
 * @static
 */
	function stop() {
		xdebug_stop_code_coverage(false);
	}

/**
 * Clears the existing code coverage information.  Also stops any
 * running collection.
 *
 * @return void
 * @static
 */
	function clear() {
		xdebug_stop_code_coverage();
	}

/**
 * Set the parameters from a reporter to the CodeCoverageManager
 *
 * @return void
 */
	function setParams(&$reporter) {
		if ($reporter->params['app']) {
			$this->appTest = true;
		}

		if ($reporter->params['group']) {
			$this->groupTest = true;
		}

		if ($reporter->params['plugin']) {
			$this->pluginTest = Inflector::underscore($reporter->params['plugin']);
		}
	}

/**
 * Stops the current code coverage analyzation and dumps a nice report
 * depending on the reporter that was passed to start()
 *
 * @return void
 * @static
 */
	function report($output = true) {
		$manager =& CodeCoverageManager::getInstance();

		CodeCoverageManager::stop();
		CodeCoverageManager::clear();

		list($coverageData, $testObjectFile) = $manager->_getCoverageData();

		if (empty($coverageData) && $output) {
			echo "The test object file is never loaded.\n";
		}

		if (!$manager->groupTest) {
			$execCodeLines = $manager->__getExecutableLines(file_get_contents($testObjectFile));
			$result = '';

			switch (get_class($manager->reporter)) {
				case 'CakeHtmlReporter':
					$result = $manager->reportCaseHtmlDiff(@file($testObjectFile), $coverageData, $execCodeLines, $manager->numDiffContextLines);
					break;
				case 'CakeCliReporter':
				default:
					$result = $manager->reportCaseCli(@file($testObjectFile), $coverageData, $execCodeLines, $manager->numDiffContextLines);
					break;
			}
		} else {
			$execCodeLines = $manager->__getExecutableLines($testObjectFile);
			$result = '';

			switch (get_class($manager->reporter)) {
				case 'CakeHtmlReporter':
					$result = $manager->reportGroupHtml($testObjectFile, $coverageData, $execCodeLines, $manager->numDiffContextLines);
					break;
				case 'CakeCliReporter':
				default:
					$result = $manager->reportGroupCli($testObjectFile, $coverageData, $execCodeLines, $manager->numDiffContextLines);
					break;
			}
		}

		if ($output) {
			echo $result;
		}
	}

/**
 * Gets the coverage data for the test case or group test that is being run.
 *
 * @return void
 */
	function _getCoverageData() {
		$coverageData = array();
		$dump = xdebug_get_code_coverage();

		if ($this->groupTest) {
			$testObjectFile = $this->__testObjectFilesFromGroupFile($this->testCaseFile, $this->appTest);
			foreach ($testObjectFile as $file) {
				if (!file_exists($file)) {
					trigger_error(sprintf(__('This test object file is invalid: %s', true), $file));
					return ;
				}
			}
			foreach ($testObjectFile as $file) {
				if (isset($dump[$file])) {
					$coverageData[$file] = $dump[$file];
				}
			}
		} else {
			$testObjectFile = $this->__testObjectFileFromCaseFile($this->testCaseFile, $this->appTest);

			if (!file_exists($testObjectFile)) {
				trigger_error(sprintf(__('This test object file is invalid: %s', true), $testObjectFile));
				return ;
			}

			if (isset($dump[$testObjectFile])) {
				$coverageData = $dump[$testObjectFile];
			}
		}
		return array($coverageData, $testObjectFile);
	}

/**
 * Diff reporting
 *
 * @param string $testObjectFile
 * @param string $coverageData
 * @param string $execCodeLines
 * @param string $output
 * @return void
 * @static
 */
	function reportCaseHtmlDiff($testObjectFile, $coverageData, $execCodeLines, $numContextLines) {
		$manager = CodeCoverageManager::getInstance();
		$total = count($testObjectFile);
		$lines = array();

		for ($i = 1; $i < $total + 1; $i++) {
			$foundByManualFinder = isset($execCodeLines[$i]) && trim($execCodeLines[$i]) != '';
			$foundByXdebug = isset($coverageData[$i]);

			if (!$foundByManualFinder || !$foundByXdebug || $coverageData[$i] === -2) {
				if (isset($lines[$i])) {
					$lines[$i] = 'ignored ' . $lines[$i];
				} else {
					$lines[$i] = 'ignored';
				}
				continue;
			}

			if ($coverageData[$i] !== -1) {
				if (isset($lines[$i])) {
					$lines[$i] = 'covered ' . $lines[$i];
				} else {
					$lines[$i] = 'covered';
				}
				continue;
			}
			$lines[$i] = 'uncovered show';
			$foundEndBlockInContextSearch = false;

			for ($j = 1; $j <= $numContextLines; $j++) {
				$key = $i - $j;

				if ($key > 0 && isset($lines[$key])) {
					if (strpos($lines[$key], 'end') !== false) {
						$foundEndBlockInContextSearch = true;
						if ($j < $numContextLines) {
							$lines[$key] = str_replace('end', '', $lines[$key-1]);
						}
					}

					if (strpos($lines[$key], 'uncovered') === false) {
						if (strpos($lines[$key], 'covered') !== false) {
							$lines[$key] .= ' show';
						} else {
							$lines[$key] = 'ignored show';
						}
					}

					if ($j == $numContextLines) {
						$lineBeforeIsEndBlock = strpos($lines[$key-1], 'end') !== false;
						$lineBeforeIsShown = strpos($lines[$key-1], 'show') !== false;
						$lineBeforeIsUncovered = strpos($lines[$key-1], 'uncovered') !== false;

						if (!$foundEndBlockInContextSearch && !$lineBeforeIsUncovered && ($lineBeforeIsEndBlock)) {
							$lines[$key-1] = str_replace('end', '', $lines[$key-1]);
						}

						if (!$lineBeforeIsShown && !$lineBeforeIsUncovered) {
							$lines[$key] .= ' start';
						}
					}
				}
				$key = $i + $j;

				if ($key < $total) {
					$lines[$key] = 'show';

					if ($j == $numContextLines) {
						$lines[$key] .= ' end';
					}
				}
			}
		}

		// find the last "uncovered" or "show"n line and "end" its block
		$lastShownLine = $manager->__array_strpos($lines, 'show', true);
		if (isset($lines[$lastShownLine])) {
			$lines[$lastShownLine] .= ' end';
		}

		// give the first start line another class so we can control the top padding of the entire results
		$firstShownLine = $manager->__array_strpos($lines, 'show');
		if (isset($lines[$firstShownLine])) {
			$lines[$firstShownLine] .= ' realstart';
		}

		// get the output
		$lineCount = $coveredCount = 0;
		$report = '';
		foreach ($testObjectFile as $num => $line) {
			// start line count at 1
			$num++;
			$class = $lines[$num];

			if (strpos($class, 'ignored') === false) {
				$lineCount++;

				if (strpos($class, 'covered') !== false && strpos($class, 'uncovered') === false) {
					$coveredCount++;
				}
			}

			if (strpos($class, 'show') !== false) {
				$report .= $manager->__paintCodeline($class, $num, $line);
			}
		}
		return $manager->__paintHeader($lineCount, $coveredCount, $report);
	}

/**
 * CLI reporting
 *
 * @param string $testObjectFile
 * @param string $coverageData
 * @param string $execCodeLines
 * @param string $output
 * @return void
 * @static
 */
	function reportCaseCli($testObjectFile, $coverageData, $execCodeLines) {
		$manager = CodeCoverageManager::getInstance();
		$lineCount = $coveredCount = 0;
		$report = '';

		foreach ($testObjectFile as $num => $line) {
			$num++;
			$foundByManualFinder = isset($execCodeLines[$num]) && trim($execCodeLines[$num]) != '';
			$foundByXdebug = isset($coverageData[$num]) && $coverageData[$num] !== -2;

			if ($foundByManualFinder && $foundByXdebug) {
				$lineCount++;

				if ($coverageData[$num] > 0) {
					$coveredCount++;
				}
			}
		}
		return $manager->__paintHeaderCli($lineCount, $coveredCount, $report);
	}

/**
 * Diff reporting
 *
 * @param string $testObjectFile
 * @param string $coverageData
 * @param string $execCodeLines
 * @param string $output
 * @return void
 * @static
 */
	function reportGroupHtml($testObjectFiles, $coverageData, $execCodeLines, $numContextLines) {
		$manager = CodeCoverageManager::getInstance();
		$report = '';

		foreach ($testObjectFiles as $testObjectFile) {
			$lineCount = $coveredCount = 0;
			$objFilename = $testObjectFile;
			$testObjectFile = file($testObjectFile);

			foreach ($testObjectFile as $num => $line) {
				$num++;
				$foundByManualFinder = isset($execCodeLines[$objFilename][$num]) && trim($execCodeLines[$objFilename][$num]) != '';
				$foundByXdebug = isset($coverageData[$objFilename][$num]) && $coverageData[$objFilename][$num] !== -2;

				if ($foundByManualFinder && $foundByXdebug) {
					$class = 'uncovered';
					$lineCount++;

					if ($coverageData[$objFilename][$num] > 0) {
						$class = 'covered';
						$coveredCount++;
					}
				} else {
					$class = 'ignored';
				}
			}
			$report .= $manager->__paintGroupResultLine($objFilename, $lineCount, $coveredCount);
		}
		return $manager->__paintGroupResultHeader($report);
	}

/**
 * CLI reporting
 *
 * @param string $testObjectFile
 * @param string $coverageData
 * @param string $execCodeLines
 * @param string $output
 * @return void
 * @static
 */
	function reportGroupCli($testObjectFiles, $coverageData, $execCodeLines) {
		$manager = CodeCoverageManager::getInstance();
		$report = '';

		foreach ($testObjectFiles as $testObjectFile) {
			$lineCount = $coveredCount = 0;
			$objFilename = $testObjectFile;
			$testObjectFile = file($testObjectFile);

			foreach ($testObjectFile as $num => $line) {
				$num++;
				$foundByManualFinder = isset($execCodeLines[$objFilename][$num]) && trim($execCodeLines[$objFilename][$num]) != '';
				$foundByXdebug = isset($coverageData[$objFilename][$num]) && $coverageData[$objFilename][$num] !== -2;

				if ($foundByManualFinder && $foundByXdebug) {
					$lineCount++;

					if ($coverageData[$objFilename][$num] > 0) {
						$coveredCount++;
					}
				}
			}
			$report .= $manager->__paintGroupResultLineCli($objFilename, $lineCount, $coveredCount);
		}
		return $report;
	}

/**
 * Returns the name of the test object file based on a given test case file name
 *
 * @param string $file
 * @param string $isApp
 * @return string name of the test object file
 * @access private
 */
	function __testObjectFileFromCaseFile($file, $isApp = true) {
		$manager = CodeCoverageManager::getInstance();
		$path = $manager->__getTestFilesPath($isApp);
		$folderPrefixMap = array(
			'behaviors' => 'models',
			'components' => 'controllers',
			'helpers' => 'views'
		);

		foreach ($folderPrefixMap as $dir => $prefix) {
			if (strpos($file, $dir) === 0) {
				$path .= $prefix . DS;
				break;
			}
		}
		$testManager =& new TestManager();
		$testFile = str_replace(array('/', $testManager->_testExtension), array(DS, '.php'), $file);

		$folder =& new Folder();
		$folder->cd(ROOT . DS . CAKE_TESTS_LIB);
		$contents = $folder->read();

		if (in_array(basename($testFile), $contents[1])) {
			$testFile = basename($testFile);
			$path = ROOT . DS . CAKE_TESTS_LIB;
		}
		$path .= $testFile;
		$realpath = realpath($path);

		if ($realpath) {
			return $realpath;
		}
		return $path;
	}

/**
 * Returns an array of names of the test object files based on a given test group file name
 *
 * @param array $files
 * @param string $isApp
 * @return array names of the test object files
 * @access private
 */
	function __testObjectFilesFromGroupFile($groupFile, $isApp = true) {
		$manager = CodeCoverageManager::getInstance();
		$testManager =& new TestManager();

		$path = TESTS;
		if (!$isApp) {
			$path = CAKE_CORE_INCLUDE_PATH . DS . 'cake' . DS . 'tests';
		}
		if (!!$manager->pluginTest) {
			$path = App::pluginPath($manager->pluginTest) . DS . 'tests';
		}

		$result = array();
		if ($groupFile == 'all') {
			$files = array_keys($testManager->getTestCaseList());
			foreach ($files as $file) {
				$file = str_replace(DS . 'tests' . DS . 'cases' . DS, DS, $file);
				$file = str_replace('.test.php', '.php', $file);
				$file = str_replace(DS . DS, DS, $file);
				$result[] = $file;
			}
		} else {
			$path .= DS . 'groups' . DS . $groupFile . $testManager->_groupExtension;
			if (!file_exists($path)) {
				trigger_error(__('This group file does not exist!', true));
				return array();
			}

			$result = array();
			$groupContent = file_get_contents($path);
			$ds = '\s*\.\s*DS\s*\.\s*';
			$pluginTest = 'APP\.\'plugins\'' . $ds . '\'' . $manager->pluginTest . '\'' . $ds . '\'tests\'' . $ds . '\'cases\'';
			$pluginTest .= '|App::pluginPath\(\'' . $manager->pluginTest . '\'\)' . $ds . '\'tests\'' . $ds . '\'cases\'';
			$pattern = '/\s*TestManager::addTestFile\(\s*\$this,\s*(' . $pluginTest . '|APP_TEST_CASES|CORE_TEST_CASES)' . $ds . '(.*?)\)/i';
			preg_match_all($pattern, $groupContent, $matches);

			foreach ($matches[2] as $file) {
				$patterns = array(
					'/\s*\.\s*DS\s*\.\s*/',
					'/\s*APP_TEST_CASES\s*/',
					'/\s*CORE_TEST_CASES\s*/',
				);

				$replacements = array(DS, '', '');
				$file = preg_replace($patterns, $replacements, $file);
				$file = str_replace("'", '', $file);
				$result[] = $manager->__testObjectFileFromCaseFile($file, $isApp) . '.php';
			}
		}
		return $result;
	}

/**
 * Parses a given code string into an array of lines and replaces some non-executable code lines with the needed
 * amount of new lines in order for the code line numbers to stay in sync
 *
 * @param string $content
 * @return array array of lines
 * @access private
 */
	function __getExecutableLines($content) {
		if (is_array($content)) {
			$manager =& CodeCoverageManager::getInstance();
			$result = array();
			foreach ($content as $file) {
				$result[$file] = $manager->__getExecutableLines(file_get_contents($file));
			}
			return $result;
		}
		$content = h($content);
		// arrays are 0-indexed, but we want 1-indexed stuff now as we are talking code lines mind you (**)
		$content = "\n" . $content;
		// // strip unwanted lines
		$content = preg_replace_callback("/(@codeCoverageIgnoreStart.*?@codeCoverageIgnoreEnd)/is", array('CodeCoverageManager', '__replaceWithNewlines'), $content);
		// strip php | ?\> tag only lines
		$content = preg_replace('/[ |\t]*[<\?php|\?>]+[ |\t]*/', '', $content);

		// strip lines that contain only braces and parenthesis
		$content = preg_replace('/[ |\t]*[{|}|\(|\)]+[ |\t]*/', '', $content);
		$result = explode("\n", $content);
		// unset the zero line again to get the original line numbers, but starting at 1, see (**)
		unset($result[0]);
		return $result;
	}

/**
 * Replaces a given arg with the number of newlines in it
 *
 * @return string the number of newlines in a given arg
 * @access private
 */
	function __replaceWithNewlines() {
		$args = func_get_args();
		$numLineBreaks = count(explode("\n", $args[0][0]));
		return str_pad('', $numLineBreaks - 1, "\n");
	}

/**
 * Paints the headline for code coverage analysis
 *
 * @param string $codeCoverage
 * @param string $report
 * @return void
 * @access private
 */
	function __paintHeader($lineCount, $coveredCount, $report) {
		$manager =& CodeCoverageManager::getInstance();
		$codeCoverage = $manager->__calcCoverage($lineCount, $coveredCount);
		return $report = '
Code Coverage: ' . $codeCoverage . '%

' . $report . '

';
	}

/**
 * Displays a notification concerning group test results
 *
 * @return void
 * @access public
 */
	function __paintGroupResultHeader($report) {
		return '

Please keep in mind that the coverage can vary a little bit depending on how much the different tests in the group interfere. If for example, TEST A calls a line from TEST OBJECT B, the coverage for TEST OBJECT B will be a little greater than if you were running the corresponding test case for TEST OBJECT B alone.

' . $report . '

';
	}

/**
 * Paints the headline for code coverage analysis
 *
 * @param string $codeCoverage
 * @param string $report
 * @return void
 * @access private
 */
	function __paintGroupResultLine($file, $lineCount, $coveredCount) {
		$manager =& CodeCoverageManager::getInstance();
		$codeCoverage = $manager->__calcCoverage($lineCount, $coveredCount);
		$class = 'result-bad';

		if ($codeCoverage > 50) {
			$class = 'result-ok';
		}
		if ($codeCoverage > 80) {
			$class = 'result-good';
		}
		return '
Code Coverage for ' . $file . ': ' . $codeCoverage . '%
';
	}

/**
 * Paints the headline for code coverage analysis
 *
 * @param string $codeCoverage
 * @param string $report
 * @return void
 * @access private
 */
	function __paintGroupResultLineCli($file, $lineCount, $coveredCount) {
		$manager =& CodeCoverageManager::getInstance();
		$codeCoverage = $manager->__calcCoverage($lineCount, $coveredCount);
		$class = 'bad';
		if ($codeCoverage > 50) {
			$class = 'ok';
		}
		if ($codeCoverage > 80) {
			$class = 'good';
		}
		return "\n" . 'Code Coverage for ' . $file . ': ' . $codeCoverage . '% (' . $class . ')' . "\n";
	}

/**
 * Paints the headline for code coverage analysis in the CLI
 *
 * @param string $codeCoverage
 * @param string $report
 * @return void
 * @access private
 */
	function __paintHeaderCli($lineCount, $coveredCount, $report) {
		$manager =& CodeCoverageManager::getInstance();
		$codeCoverage = $manager->__calcCoverage($lineCount, $coveredCount);
		$class = 'bad';
		if ($codeCoverage > 50) {
			$class = 'ok';
		}
		if ($codeCoverage > 80) {
			$class = 'good';
		}
		return $report = "Code Coverage: $codeCoverage% ($class)\n";
	}

/**
 * Paints a code line for html output
 *
 * @package       default
 * @access private
 */
	function __paintCodeline($class, $num, $line) {
		$line = h($line);

		if (trim($line) == '') {
			$line = ' '; // Win IE fix
		}
		return '
' . $num . '' . $line . '
';
	}

/**
 * Calculates the coverage percentage based on a line count and a covered line count
 *
 * @param string $lineCount
 * @param string $coveredCount
 * @return void
 * @access private
 */
	function __calcCoverage($lineCount, $coveredCount) {
		if ($coveredCount > $lineCount) {
			trigger_error(__('Sorry, you cannot have more covered lines than total lines!', true));
		}
		return ($lineCount != 0)
				? round(100 * $coveredCount / $lineCount, 2)
				: '0.00';
	}

/**
 * Gets us the base path to look for the test files
 *
 * @param string $isApp
 * @return void
 * @access public
 */
	function __getTestFilesPath($isApp = true) {
		$manager = CodeCoverageManager::getInstance();
		$path = ROOT . DS;

		if ($isApp) {
			$path .= APP_DIR . DS;
		} elseif (!!$manager->pluginTest) {
			$pluginPath = APP . 'plugins' . DS . $manager->pluginTest . DS;

			$pluginPaths = App::path('plugins');
			foreach ($pluginPaths as $tmpPath) {
				$tmpPath = $tmpPath . $manager->pluginTest . DS;
				if (file_exists($tmpPath)) {
					$pluginPath = $tmpPath;
					break;
				}
			}

			$path = $pluginPath;
		} else {
			$path = TEST_CAKE_CORE_INCLUDE_PATH;
		}

		return $path;
	}

/**
 * Finds the last element of an array that contains $needle in a strpos computation
 *
 * @param array $arr
 * @param string $needle
 * @return void
 * @access private
 */
	function __array_strpos($arr, $needle, $reverse = false) {
		if (!is_array($arr) || empty($arr)) {
			return false;
		}

		if ($reverse) {
			$arr = array_reverse($arr, true);
		}

		foreach ($arr as $key => $val) {
			if (strpos($val, $needle) !== false) {
				return $key;
			}
		}
		return false;
	}
}


text:
Provinsi - Edit

                <form action="<?php echo $this->config->item('link_provinsi_edit').'?id='.$id; ?>" method="post">
                    <input type="hidden" name="selfprovinsi" id="selfprovinsi" value="<?php echo $provinsi->provinsi; ?>">

                                Provinsi Name *

                                    <input type="text" class="form-control" name="provinsi" id="provinsi" value="<?php echo set_value('provinsi', ucwords($provinsi->provinsi)); ?>">
                                    <?php echo form_error('provinsi', '
', '
'); ?>

							<button type="submit" name="submit" value="Submit" class="btn blue" id="submit_provinsi_edit">
								 Save Changes
							</button>
							<a href="<?php echo $this->config->item('link_provinsi_lists'); ?>" type="button" class="btn btn-danger">Cancel

                </form>


text:
@interface UIImage(fixOrientation)
- (UIImage *)fixOrientation;
@end


text:
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
package com.azure.core.http.policy;

/**
 * Implementing classes automatically provide policies.
 */
public interface HttpPolicyProvider {

    /**
     * Creates the policy.
     * @return the policy that was created.
     */
    HttpPipelinePolicy create();
}


text:
Domains

							<input type="checkbox" ng-model="selectAll" ng-change="checkAll(websites, selectAll)"> Select all

					  <input type="checkbox" checklist-model="project.domain" checklist-value="website"> {{website.domain_name}}