text:
ACCEPTED

#### According to
World Register of Marine Species

#### Published in
Bol Inst Oceanogr Venez Univ Oriente 26 (1-2): 13.

#### Original name
null

### Remarks
null

redpajama_set_name: RedPajamaGithub


text:
//
//  DVStream.h
//
// Copyright (C) 2015 Orange
//
// 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.
//
//  Created by Marc Capdevielle on 03/04/2015.
//
//

#import <Foundation/Foundation.h>
#import "DVResource.h"
#import "DVLocation.h"
#import "DVValue.h"

/**
 * A stream contains a set of values and defines a unit, a location and some metadata.
 */
@interface DVStream : DVResource

/** The name of the stream. Max length: 32 */
@property (nonatomic, strong) NSString * name;

/** The description of the stream. Max length: 256 */
@property (nonatomic, strong) NSString * adescription;

/** Pairs of NSString to store metadata related to the stream */
@property (nonatomic, strong) NSDictionary * metadata;

/** The last value added to the stream */
@property (nonatomic, readonly) id lastValue;

/* The unit name of the values of the stream */
@property (nonatomic, strong) NSString * unitName;

/** The unit symbol of the values of the stream */
@property (nonatomic, strong) NSString * unitSymbol;

/** Location of the stream */
@property (nonatomic, strong) DVLocation * location;

/**
 * New DVStream for a prototype. Must be saved with saveWithCompletionHandler:.
 *
 * @param name THe name for the stream. Must be unique to the prototype. Max length: 32.
 * @param prototypeID The DVPrototype to associate the stream to.
 * @param client DVClient used for saving/deleting the stream.
 * @return a DVStream that can be saved with saveWithCompletionHandler:.
 */
- (DVStream *)initWithName:(NSString *)name prototypeID:(NSString *)prototypeID client:(DVClient *)client;

/**
 * New DVStream for a datasource. Must be saved with saveWithCompletionHandler:.
 *
 * @param name THe name for the stream. Must be unique to the datasouce. Max length: 32.
 * @param datasourceID The DVPrototype to associate the stream to.
 * @param client DVClient used for saving/deleting the stream.
 * @return a DVStream that can be saved with saveWithCompletionHandler:.
 */
- (DVStream *)initWithName:(NSString *)name datasourceID:(NSString *)datasourceID  client:(DVClient *)client;

/**
 * Create or update the DVStream.
 *
 * @param completionHandler The handler will pass an NSError if any, or a DVStream on success.
 */
- (void)saveWithCompletionHandler:(void (^)(DVStream * stream, NSError * error))completionHandler;

/**
 * Add values to the DVStream.
 *
 * @param values Values can be either some DVValue or any kind of JSON Object values.
 * @param completionHandler The handler will pass an error if any, or nil on success.
 */
- (void)appendValues:(NSArray *)values completionHandler:(void (^)(NSError * error))completionHandler;

/**
 * Retreive some values from the stream.
 *
 * @param params Optional request parameters (see request parameters section).
 * @param completionHandler The handler will pass an error if any, or a list of DVValue on success.
 */
- (void)valuesWithParams:(NSDictionary *)params completionHandler:(void (^)(NSArray * values, NSError * error))completionHandler;

/**
 * Retreive a value from the stream by its unique ID.
 *
 * @param ID Identifier of the value resource.
 * @param completionHandler The handler will pass an error if any, or a list of DVValue on success.
 */
- (void)valueWithID:(NSString *)ID completionHandler:(void (^)(DVValue * value, NSError * error))completionHandler;

/**
 * Remove all values of the stream
 *
 * @param completionHandler The handler will pass an error if any, or nil on success.
 */
- (void)removeAllValuesWithCompletionHandler:(void (^)(NSError * error))completionHandler;

@end


text:
package org.osc.core.broker.service.tasks.conformance.securitygroupinterface;

import java.util.ArrayList;
import java.util.HashSet;
import java.util.List;
import java.util.Set;

import org.mockito.Mockito;
import org.osc.core.broker.job.Task;
import org.osc.core.broker.job.TaskGraph;
import org.osc.core.broker.job.lock.LockObjectReference;
import org.osc.core.broker.job.lock.LockRequest.LockType;
import org.osc.core.broker.model.entities.appliance.DistributedAppliance;
import org.osc.core.broker.model.entities.appliance.VirtualSystem;
import org.osc.core.broker.model.entities.management.ApplianceManagerConnector;
import org.osc.core.broker.model.entities.management.Policy;
import org.osc.core.broker.model.entities.virtualization.SecurityGroupInterface;
import org.osc.core.broker.model.entities.virtualization.VirtualizationConnector;
import org.osc.core.broker.model.plugin.manager.ManagerPolicyElementImpl;
import org.osc.core.broker.service.tasks.conformance.UnlockObjectTask;
import org.osc.core.common.job.TaskGuard;
import org.osc.sdk.manager.element.ManagerPolicyElement;
import org.osc.sdk.manager.element.ManagerSecurityGroupInterfaceElement;

public class MgrSecurityGroupInterfaceCheckMetaTaskTestData {

    public static List<VirtualSystem> TEST_VIRTUAL_SYSTEMS = new ArrayList<>();
    public static List<DistributedAppliance> TEST_DISTRIBUTED_APPLIANCE = new ArrayList<>();

    public static VirtualizationConnector CREATE_VC = createVC("vcName");

    //MGR SGI's
    public static ManagerSecurityGroupInterfaceElement MGR_SGI = createManagerSecurityGroupInterface("MGR_SGI_ID", "MGR_SGI_NAME", "POLICY_ID", "TAG");
    public static ManagerSecurityGroupInterfaceElement MGR_SGI_AND_SGI_WITH_SAME_NAME = createManagerSecurityGroupInterface("MGR_SGI_ID", "MATCHING_NAME", "POLICY_ID_1", "TAG_1");
    public static ManagerSecurityGroupInterfaceElement MGR_SGI_TO_BE_DELETED = createManagerSecurityGroupInterface("MGR_SGI_ID", "MGR_SGI_NAME", null, null);

    //SGI's
    public static SecurityGroupInterface SGI_NOT_MARK_FOR_DELETION_WITH_ID_VS_SGI = createSgi("SGI_ID", "SGI_NAME", false, "POLICY_ID", "TAG");
    public static SecurityGroupInterface SGI_NOT_MARK_FOR_DELETION_WITH_DIFFERENT_POLICY_ID_AND_TAG_VS_SGI = createSgi("MGR_SGI_ID", "MATCHING_NAME", false, "POLICY_ID", "TAG");
    public static SecurityGroupInterface SGI_MARK_FOR_DELETION_VS_SGI = createSgi(null, "MATCHING_NAME", true, null, null);

    public static SecurityGroupInterface SGI_NOT_MARK_FOR_DELETION_WITH_ID_DA_SGI = createSgi("SGI_ID", "SGI_NAME", false, "POLICY_ID", "TAG");
    public static SecurityGroupInterface SGI_NOT_MARK_FOR_DELETION_WITH_DIFFERENT_POLICY_ID_AND_TAG_DA_SGI = createSgi("MGR_SGI_ID", "MATCHING_NAME", false, "POLICY_ID", "TAG");
    public static SecurityGroupInterface SGI_MARK_FOR_DELETION_DA_SGI = createSgi(null, "MATCHING_NAME", true, null, null);

    //List of MGR SGI's
    public static List<ManagerSecurityGroupInterfaceElement> MGR_SGI_AND_MGR_SGI_TO_BE_DELETED_LIST = createManagerSecurityGroupInterfaceList(MGR_SGI, MGR_SGI_TO_BE_DELETED);
    public static List<ManagerSecurityGroupInterfaceElement> MGR_SGI_AND_MGR_SGI_AND_SGI_WITH_SAME_NAME_LIST = createManagerSecurityGroupInterfaceList(MGR_SGI_TO_BE_DELETED, MGR_SGI_AND_SGI_WITH_SAME_NAME);

    //VS's
    private static VirtualSystem VS_1 = createBaseVS(101L, "vsName", CREATE_VC, createMC(101L, "MC_01"));
    public static VirtualSystem VS_WITH_SGI_AND_NO_MANAGER_SGI_VS = createVSWithSgi(VS_1,SGI_NOT_MARK_FOR_DELETION_WITH_ID_VS_SGI);

    private static VirtualSystem VS_2 = createBaseVS(102L, "vsName", CREATE_VC, createMC(102L, "MC_02"));
    public static VirtualSystem VS_WITH_MANAGER_SGI_VS = createVSWithSgi(VS_2, SGI_NOT_MARK_FOR_DELETION_WITH_DIFFERENT_POLICY_ID_AND_TAG_VS_SGI);

    private static VirtualSystem VS_3 = createBaseVS(103L, "vsName", CREATE_VC, createMC(103L, "MC_03"));
    public static VirtualSystem VS_WITH_MANAGER_SGI_TO_BE_DELETED_VS = createVSWithSgi(VS_3, SGI_MARK_FOR_DELETION_VS_SGI);

    //VS with multiple SGI's
    private static VirtualSystem VS_4 = createBaseVS(104L, "vsName", CREATE_VC, createMC(104L, "MC_04"));
    public static VirtualSystem VS_WITH_SGI_NOT_MARK_FOR_DELETION_WITH_ID_VS_SGI_AND_SGI_MARK_FOR_DELETION_VS_SGI = createVSWithSgi(VS_4, SGI_NOT_MARK_FOR_DELETION_WITH_ID_VS_SGI, SGI_MARK_FOR_DELETION_VS_SGI);

    //DA's
    private static DistributedAppliance DA_1 = createBaseDA(1L, 105L, "vsName", CREATE_VC, createMC(5L, "MC_5"));
    public static DistributedAppliance DA_WITH_SGI_AND_NO_MANAGER_SGI_DA = createDAWithSgi(DA_1, SGI_NOT_MARK_FOR_DELETION_WITH_ID_DA_SGI);

    private static DistributedAppliance DA_2 = createBaseDA(2L, 106L, "vsName", CREATE_VC, createMC(6L, "MC_6"));
    public static DistributedAppliance DA_WITH_MANAGER_SGI_DA = createDAWithSgi(DA_2, SGI_NOT_MARK_FOR_DELETION_WITH_DIFFERENT_POLICY_ID_AND_TAG_DA_SGI);

    private static DistributedAppliance DA_3 = createBaseDA(3L, 107L, "vsName", CREATE_VC, createMC(7L, "MC_7"));
    public static DistributedAppliance DA_WITH_MANAGER_SGI_TO_BE_DELETED_DA = createDAWithSgi(DA_3, SGI_MARK_FOR_DELETION_DA_SGI);

    private static VirtualizationConnector createVC(String vcName) {
        VirtualizationConnector vc = new VirtualizationConnector();
        vc.setName(vcName);
        return vc;
    }

    private static ApplianceManagerConnector createMC(Long mcId, String mcName) {
        ApplianceManagerConnector mc = new ApplianceManagerConnector();
        mc.setId(mcId);
        mc.setName(mcName);
        return mc;
    }

    private static ManagerSecurityGroupInterfaceElement createManagerSecurityGroupInterface(String id, String name,
            String policyId, String tag) {
        ManagerSecurityGroupInterfaceElement managerSecurityGroupInterface = Mockito
                .mock(ManagerSecurityGroupInterfaceElement.class);
        Mockito.doReturn(name).when(managerSecurityGroupInterface).getName();
        Mockito.doReturn(id).when(managerSecurityGroupInterface).getSecurityGroupInterfaceId();
        Set<ManagerPolicyElement> managerPolicyElements = new HashSet<>();
        managerPolicyElements.add(new ManagerPolicyElementImpl(policyId, null, null));
        Mockito.doReturn(managerPolicyElements).when(managerSecurityGroupInterface).getManagerPolicyElements();
        Mockito.doReturn(tag).when(managerSecurityGroupInterface).getTag();
        return managerSecurityGroupInterface;
    }

    private static List<ManagerSecurityGroupInterfaceElement> createManagerSecurityGroupInterfaceList(
            ManagerSecurityGroupInterfaceElement... elements) {
        List<ManagerSecurityGroupInterfaceElement> mgrSgiElem = new ArrayList<>();
        for (ManagerSecurityGroupInterfaceElement iter : elements) {
            mgrSgiElem.add(iter);
        }
        return mgrSgiElem;
    }

    private static SecurityGroupInterface createSgi(String sgiId, String sgiName, boolean isMarkedForDeletion,
            String tag, String policyId) {
        SecurityGroupInterface sgi = Mockito.mock(SecurityGroupInterface.class);
        Mockito.when(sgi.getMgrSecurityGroupInterfaceId()).thenReturn(sgiId);
        Mockito.when(sgi.getName()).thenReturn(sgiName);
        Mockito.when(sgi.getMarkedForDeletion()).thenReturn(isMarkedForDeletion);
        Mockito.when(sgi.getTag()).thenReturn(tag);
        Policy policy = Mockito.mock(Policy.class);
        Set<Policy> policySet = new HashSet<>();
        policySet.add(policy);
        Mockito.when(sgi.getMgrPolicies()).thenReturn(policySet);
        Mockito.when(policy.getMgrPolicyId()).thenReturn(policyId);

        return sgi;

    }

    private static VirtualSystem createBaseVS(Long vsId, String vsName, VirtualizationConnector vc,
            ApplianceManagerConnector mc) {
        VirtualSystem vs = Mockito.mock(VirtualSystem.class);
        Mockito.when(vs.getId()).thenReturn(vsId);
        Mockito.when(vs.getName()).thenReturn(vsName);
        Mockito.when(vs.getVirtualizationConnector()).thenReturn(vc);
        DistributedAppliance da = Mockito.mock(DistributedAppliance.class);
        Mockito.when(vs.getDistributedAppliance()).thenReturn(da);
        Mockito.when(da.getApplianceManagerConnector()).thenReturn(mc);

        return vs;
    }

    private static VirtualSystem createVSWithSgi(VirtualSystem vs, SecurityGroupInterface... interfaces) {
        Set<SecurityGroupInterface> set = new HashSet<>();
        for (SecurityGroupInterface sgi : interfaces) {
            set.add(sgi);
            Mockito.when(sgi.getVirtualSystem()).thenReturn(vs);
        }
        Mockito.when(vs.getSecurityGroupInterfaces()).thenReturn(set);

        TEST_VIRTUAL_SYSTEMS.add(vs);
        return vs;
    }

    private static DistributedAppliance createBaseDA(Long daId, Long vsId, String vsName, VirtualizationConnector vc,
            ApplianceManagerConnector mc) {
        VirtualSystem vs = Mockito.mock(VirtualSystem.class);
        Mockito.when(vs.getId()).thenReturn(vsId);
        Mockito.when(vs.getName()).thenReturn(vsName);
        Mockito.when(vs.getVirtualizationConnector()).thenReturn(vc);
        Set<VirtualSystem> vsSet = new HashSet<>();
        vsSet.add(vs);
        DistributedAppliance da = Mockito.mock(DistributedAppliance.class);
        Mockito.when(da.getVirtualSystems()).thenReturn(vsSet);
        Mockito.when(da.getId()).thenReturn(daId);
        Mockito.when(vs.getDistributedAppliance()).thenReturn(da);
        Mockito.when(da.getApplianceManagerConnector()).thenReturn(mc);

        return da;
    }

    private static DistributedAppliance createDAWithSgi(DistributedAppliance da, SecurityGroupInterface... interfaces) {
        Set<SecurityGroupInterface> set = new HashSet<>();
        for (VirtualSystem vs : da.getVirtualSystems()) {
            for (SecurityGroupInterface sgi : interfaces) {
                set.add(sgi);
                Mockito.when(sgi.getVirtualSystem()).thenReturn(vs);
            }
            Mockito.when(vs.getSecurityGroupInterfaces()).thenReturn(set);
        }

        TEST_DISTRIBUTED_APPLIANCE.add(da);
        return da;
    }

    private static Task createNewUnlockObjectTask(VirtualSystem vs) {
        return new UnlockObjectTask(
                new LockObjectReference(vs.getDistributedAppliance().getApplianceManagerConnector()),
                LockType.WRITE_LOCK);
    }

    public static TaskGraph createAndDeleteStaleMgrSecurityGroupInterfaceGraph(VirtualSystem vs,
            SecurityGroupInterface sgi, ManagerSecurityGroupInterfaceElement mgrSgi) {
        TaskGraph expectedGraph = new TaskGraph();

        TaskGraph tg = new TaskGraph();
        tg.appendTask(new CreateMgrSecurityGroupInterfaceTask().create(sgi));
        tg.appendTask(new DeleteMgrSecurityGroupInterfaceTask().create(vs, mgrSgi));

        expectedGraph.addTaskGraph(tg);
        expectedGraph.appendTask(createNewUnlockObjectTask(vs), TaskGuard.ALL_PREDECESSORS_COMPLETED);
        return expectedGraph;
    }

    public static TaskGraph updateMgrSecurityGroupInterfaceGraph(VirtualSystem vs, SecurityGroupInterface sgi) {
        TaskGraph expectedGraph = new TaskGraph();

        TaskGraph tg = new TaskGraph();
        tg.appendTask(new UpdateMgrSecurityGroupInterfaceTask().create(sgi));

        expectedGraph.addTaskGraph(tg);
        expectedGraph.appendTask(createNewUnlockObjectTask(vs), TaskGuard.ALL_PREDECESSORS_COMPLETED);
        return expectedGraph;
    }

    public static TaskGraph deleteMgrSecurityGroupGraph(VirtualSystem vs, ManagerSecurityGroupInterfaceElement mgrSgi) {
        TaskGraph expectedGraph = new TaskGraph();

        TaskGraph tg = new TaskGraph();
        tg.appendTask(new DeleteMgrSecurityGroupInterfaceTask().create(vs, mgrSgi));

        expectedGraph.addTaskGraph(tg);
        expectedGraph.appendTask(createNewUnlockObjectTask(vs), TaskGuard.ALL_PREDECESSORS_COMPLETED);
        return expectedGraph;
    }

    public static TaskGraph vsWithMultipleSgiGraph(VirtualSystem vs, SecurityGroupInterface sgi) {
        TaskGraph expectedGraph = new TaskGraph();

        TaskGraph tg = new TaskGraph();
        tg.appendTask(new CreateMgrSecurityGroupInterfaceTask().create(sgi));
        tg.appendTask(new DeleteMgrSecurityGroupInterfaceTask().create(vs, MGR_SGI));
        tg.appendTask(new DeleteMgrSecurityGroupInterfaceTask().create(vs, MGR_SGI_TO_BE_DELETED));

        expectedGraph.addTaskGraph(tg);
        expectedGraph.appendTask(createNewUnlockObjectTask(vs), TaskGuard.ALL_PREDECESSORS_COMPLETED);
        return expectedGraph;
    }

}


text:
module NestedSubjectHierarchicalGeographics
  extend ActiveSupport::Concern

  module ClassMethods
    def build_permitted_params
      permitted = super
      permitted << { subject_hierarchical_geographics_attributes: permitted_subject_hierarchical_geographics_params }
      permitted
    end

    def permitted_subject_hierarchical_geographics_params
      [:continent, :country, :province, :region, :state, :territory, :county, :city, :city_section, :island, :area, :extraterrestrial_area, :id]
    end

  end

  def subject_hierarchical_geographics_attributes= attributes
    model.subject_hierarchical_geographics_attributes= attributes
  end

end


text:
package com.calebscode.game.combat;

/**
 * Represents a team with additional contextual battle
 * information.
 */
public  class TeamBattleInfo {

	private Team team;
	private CombatUnitBattleInfo[] battleInfo;

	public TeamBattleInfo(Team team) {
		this.team = team;
		battleInfo = new CombatUnitBattleInfo[5];

		// Set the current battle stats of each unit to their default stats.
		for(int i = 0; i < 5; ++i) {
			if(team.getUnit(i) == null) continue;
			battleInfo[i] = new CombatUnitBattleInfo(team.getUnit(i), team.getUnit(i).getModifiedUnitStats());
		}
	}

	public CombatUnit getUnit(int index) {
		return team.getUnit(index);
	}

	public CombatUnit setUnit(int index, CombatUnit u) {
		return team.setUnit(index, u);
	}

	public CombatUnitBattleInfo getBattleInfo(int index) {
		return battleInfo[index];
	}

	public void setBattleInfo(CombatUnitBattleInfo info, int index) {
		battleInfo[index] = info;
	}

}


text:
#pragma once

#include "antlr4-common.h"

namespace antlr4 {
namespace misc {

  // Helpers to convert certain unsigned symbols (e.g. Token::EOF) to their original numeric value (e.g. -1)
  // and vice versa. This is needed mostly for intervals to keep their original order and for toString()
  // methods to print the original numeric value (e.g. for tests).
  size_t numericToSymbol(ssize_t v);
  ssize_t symbolToNumeric(size_t v);

  /// An immutable inclusive interval a..b
  class ANTLR4CPP_PUBLIC Interval {
  public:
    static const Interval INVALID;

    // Must stay signed to guarantee the correct sort order.
    ssize_t a;
    ssize_t b;

    Interval();
    explicit Interval(size_t a_, size_t b_); // For unsigned -> signed mappings.
    Interval(ssize_t a_, ssize_t b_);
    virtual ~Interval() {};

    /// return number of elements between a and b inclusively. x..x is length 1.
    ///  if b < a, then length is 0.  9..10 has length 2.
    virtual size_t length() const;

    bool operator == (const Interval &other) const;

    virtual size_t hashCode() const;

    /// <summary>
    /// Does this start completely before other? Disjoint </summary>
    virtual bool startsBeforeDisjoint(const Interval &other) const;

    /// <summary>
    /// Does this start at or before other? Nondisjoint </summary>
    virtual bool startsBeforeNonDisjoint(const Interval &other) const;

    /// <summary>
    /// Does this.a start after other.b? May or may not be disjoint </summary>
    virtual bool startsAfter(const Interval &other) const;

    /// <summary>
    /// Does this start completely after other? Disjoint </summary>
    virtual bool startsAfterDisjoint(const Interval &other) const;

    /// <summary>
    /// Does this start after other? NonDisjoint </summary>
    virtual bool startsAfterNonDisjoint(const Interval &other) const;

    /// <summary>
    /// Are both ranges disjoint? I.e., no overlap? </summary>
    virtual bool disjoint(const Interval &other) const;

    /// <summary>
    /// Are two intervals adjacent such as 0..41 and 42..42? </summary>
    virtual bool adjacent(const Interval &other) const;

    virtual bool properlyContains(const Interval &other) const;

    /// <summary>
    /// Return the interval computed from combining this and other </summary>
    virtual Interval Union(const Interval &other) const;

    /// <summary>
    /// Return the interval in common between this and o </summary>
    virtual Interval intersection(const Interval &other) const;

    virtual std::string toString() const;

  private:
  };

} // namespace atn
} // namespace antlr4


text:
namespace Esri
{
namespace ArcGISRuntime
{
class Map;
class MapQuickView;
class Graphic;
class GraphicsOverlay;
}
}

#include <QQuickItem>
#include "Polygon.h"
#include "Polyline.h"

class CutGeometry : public QQuickItem
{
  Q_OBJECT

public:
  explicit CutGeometry(QQuickItem* parent = nullptr);
  ~CutGeometry() override = default;

  void componentComplete() override;
  static void init();
  Q_INVOKABLE void cutPolygon();

private:
  Esri::ArcGISRuntime::Map* m_map = nullptr;
  Esri::ArcGISRuntime::MapQuickView* m_mapView = nullptr;
  Esri::ArcGISRuntime::Graphic* m_lakeSuperiorGraphic = nullptr;
  Esri::ArcGISRuntime::Graphic* m_borderGraphic = nullptr;
  Esri::ArcGISRuntime::GraphicsOverlay* m_overlay = nullptr;

private:
  void createGraphics();
  Esri::ArcGISRuntime::Polygon createLakeSuperiorPolygon();
  Esri::ArcGISRuntime::Polyline createBorderPolyline();
};

#endif // CUTGEOMETRY_H


text:
@interface XCSCore : NSObject
{
}

@end


text:
//
//  EventsTableViewController.h
//  IgniteTools
//
//  Created by Joseph Flasher on 6/3/11.
//  Copyright 2011 Ars Sollertia. All rights reserved.
//

#import <UIKit/UIKit.h>
#import <CoreData/CoreData.h>
#import "EventCell.h"

/**
 *	UITableViewController that shows all the Event entries.
 */
@interface EventsTableViewController : UITableViewController <NSFetchedResultsControllerDelegate> {
	NSFetchedResultsController *fetchedResultsController;
	NSManagedObjectContext *managedObjectContext;
	IBOutlet EventCell *eventCell;
}

/**
 *	NSFetchedResultsController that contains all the events.
 */
@property (nonatomic, retain) NSFetchedResultsController *fetchedResultsController;

/**
 *	The NSManagedObjectContext for the session.
 */
@property (nonatomic, retain) NSManagedObjectContext *managedObjectContext;

/**
 *	The Event cell.
 */
@property (nonatomic, retain) IBOutlet EventCell *eventCell;

@end


text:
<?php
namespace Esprit\TaxiDriverBundle\Controller;
use Symfony\Bundle\FrameworkBundle\Controller\Controller;

class CalendrierController extends Controller {

     public function calendrierAction()
    {
        return $this->render('EspritTaxiDriverBundle:Administrateur:calendar.html.twig');
    }
}


text:
<?php

namespace C33s\SimpleContentBundle\Form\Type\ContentType;

use Admingenerated\C33sSimpleContentBundle\Form\BaseContentTypeType\EditType as BaseEditType;

/**
 * EditType
 */
class EditType extends BaseEditType
{

}


text:
import os, sys, time, logging, getpass, pymysql, warnings
import argparse as ap
from datetime import datetime as dt
from datetime import timedelta
from astropy.time import Time
from astropy.io import fits
from astropy.coordinates import SkyCoord, EarthLocation, AltAz
import astropy.units as u
import numpy as np
from create_movie import create_movie

# whoami?
me=getpass.getuser()

# connect to database
if me == "James":
    db=pymysql.connect(host='localhost',db='ngts_prep')
    logfile="/Users/James/Desktop/www_cron/ngminisurvey.log"
    w_dir="/Users/James/Desktop/www_cron/minisurvey"
    astrom_loc="/usr/local/bin/"
elif me=="ops":
    db=pymysql.connect(host='ds',db='ngts_ops')
    logfile="/usr/local/cron/logs/ngminisurvey.log"
    w_dir="/ngts/staging/archive/minisurvey"
    astrom_loc="/usr/local/astrometry.net/bin/"
else:
    print "WHOAMI!?"
    sys.exit(1)

# logging set up
logging.basicConfig(filename=logfile,level=logging.DEBUG, format='%(levelname)10s - %(message)s')

# ignore warnings from astropy
warnings.filterwarnings('ignore')

# function to parse the command line
def argParse():
    parser=ap.ArgumentParser()
    parser.add_argument('--debug',help='run in debugging mode',action='store_true')
    return parser.parse_args()

args=argParse()

# read in astrometry.net log files
def getAstromFromFile(astromfile):
    f = open(astromfile, "r").readlines()
    ra=None
    dec=None
    for i in f:
        if i.startswith("Field center: (RA H:M:S"):
            tmp = i.split('=')
            ra,dec = tmp[1].split(',')
            ra = ra.strip()
            ra = ra.replace('(','')
            dec = dec.strip()
            dec = dec.replace(').','')
            break
    return ra, dec

# do the astrometry with astrometry.net
def astrometry(image,scale_l,scale_h,ra=None,dec=None,radius=5.0,cpulimit=90):
    astromfile="astrometry_%s.log" % (image)
    if os.path.exists(astromfile) == False:
        if ra and dec:
            command = "%s/solve-field %s --ra %s -- dec %s --radius %s --scale-low %s --scale-high %s --cpulimit %s --no-plots --overwrite" % (astrom_loc,image, ra, dec, radius, scale_l, scale_h, cpulimit)
        else:
            command = "%s/solve-field %s --scale-low %s --scale-high %s --cpulimit %s --no-plots --overwrite" % (astrom_loc,image, scale_l, scale_h, cpulimit)

        command = "%s > %s" % (command,astromfile)
        os.system(command)

    ra,dec=getAstromFromFile(astromfile)
    return ra,dec

# function to check the astrometry and update the database
# and/or return fields to the pile for another attempt
def checkAstrometry():
    qry="SELECT action_id,image_id,camera_id FROM mini_survey WHERE done=1 AND astrometry=0"
    logging.info('%s %s' % (dt.utcnow().isoformat(),qry))
    cur=db.cursor()
    cur.execute(qry)

    action_id_a,image_id_a,camera_id_a=[],[],[]
    for row in cur:
        action_id_a.append(row[0])
        image_id_a.append(row[1])
        camera_id_a.append(row[2])
        das=os.popen('ngwhereis %s' % (row[2])).readlines()[0].split()[0]

        if os.path.exists('%s/IMAGE%s.fits' % (w_dir,row[1])) == False and os.path.exists('%s/IMAGE%s.fits.bz2' % (w_dir,row[1])) == False:
            cp_comm='cp /ngts/%s/action%s_observeField/IMAGE%s* %s/' % (das,row[0],row[1],w_dir)
            os.system(cp_comm)
            logging.info('%s %s' % (dt.utcnow().isoformat(),cp_comm))
        else:
            logging.info('%s IMAGE%s.fits(.bz2) exisits in %s' % (dt.utcnow().isoformat(),row[1],w_dir))

    here=os.getcwd()
    os.chdir(w_dir)
    logging.info('%s Moving to %s' % (dt.utcnow().isoformat(),w_dir))
    if os.path.exists('junk')==False:
        os.mkdir('junk')

    fails=[]
    for i in image_id_a:
        # unzip if compressed
        zipfile='IMAGE%s.fits.bz2' % (i)
        if os.path.exists(zipfile):
            logging.info('%s UNZIPPING %s' % (dt.utcnow().isoformat(),zipfile))
            os.system('bunzip2 %s' % (zipfile))

        # get the commanded position
        imfile='IMAGE%s.fits' % (i)
        hdr=fits.open(imfile)[0].header
        rin=hdr['CMD_RA']
        din=hdr['CMD_DEC']
        c=SkyCoord(ra=rin,dec=din,unit=(u.deg,u.deg),frame='icrs')

        # do astrometry for actual positon
        ra_a,dec_a=astrometry(imfile,2.83,2.93,cpulimit=2)

        # check output
        if ra_a == None or dec_a == None:
            logging.error('%s COULD NOT DO ASTROMETRY FOR %s' % (dt.utcnow().isoformat(),imfile))
            qry="UPDATE mini_survey SET done=0, fails=COALESCE(fails,0)+1, zp_method='INTERP' WHERE image_id='%s'" % (i)
            logging.info("%s REMOVING %s FROM %s " % (dt.utcnow().isoformat(),imfile,w_dir))
            os.system('mv *%s* junk/' % (i))
            fails.append(imfile)
        else:
            a=SkyCoord(ra=ra_a, dec=dec_a, unit=(u.hourangle, u.deg), frame='icrs')
            sep_ang=c.separation(a).arcmin
            if sep_ang>10:
                logging.error("%s IMAGE IS OFF BY >10 ARCMIN (%.2f), REPEAT FIELD" % (dt.utcnow().isoformat(),sep_ang))
                qry="UPDATE mini_survey SET done=0, fails=COALESCE(fails,0)+1 WHERE image_id='%s'" % (i)
                logging.info("%s REMOVING %s FROM %s " % (dt.utcnow().isoformat(),imfile,w_dir))
                os.system('mv *%s* junk/' % (i))
            else:
                logging.info("%s IMAGE%s.fits solved with error of %.2f arcmin" % (dt.utcnow().isoformat(),i,sep_ang))
                qry="UPDATE mini_survey SET astrometry=2, zp_method='APASS' WHERE image_id='%s'" % (i)

        if not args.debug:
            cur.execute(qry)
            db.commit()
    print "Fails:"
    print fails
    os.chdir(here)
    logging.info('%s Returning to %s' % (dt.utcnow().isoformat(),here))
    cur.close()
    return fails

def makePNGs():
    here=os.getcwd()
    os.chdir(w_dir)
    logging.info('%s Moving to %s' % (dt.utcnow().isoformat(),w_dir))

    qry="SELECT action_id,image_id,camera_id FROM mini_survey WHERE done=1 AND astrometry>0 AND png=0"
    logging.info('%s %s' % (dt.utcnow().isoformat(),qry))
    cur=db.cursor()
    cur2=db.cursor()
    cur.execute(qry)

    action_id_a,image_id_a,camera_id_a=[],[],[]
    for row in cur:
        action_id_a.append(row[0])
        image_id_a.append(row[1])
        camera_id_a.append(row[2])
        das=os.popen('ngwhereis %s' % (row[2])).readlines()[0].split()[0]
        imfile="IMAGE%s.fits" % (row[1])
        if not args.debug:
            create_movie([imfile],images_directory="%s/pngs" % (w_dir),no_time_series=True,include_increment=False,clobber_images_directory=False,resize_factor=4,multiprocess=False)
            logging.info("%s Making PNG of %s" % (dt.utcnow().isoformat(),imfile))

        qry2="UPDATE mini_survey SET png=1,fails=0 WHERE image_id=%d" % (row[1])
        logging.info("%s %s" % (dt.utcnow().isoformat(),qry2))
        if not args.debug:
            cur2.execute(qry2)
            db.commit()

    os.chdir(here)
    logging.info('%s Returning to %s' % (dt.utcnow().isoformat(),here))
    cur.close()

if __name__=="__main__":
    fails=checkAstrometry()
    makePNGs()
    db.close()


text:
import argparse
import os
import odlclient as odl
from odlclient.error import NotFound

def main():
    parser = argparse.ArgumentParser()
    parser.add_argument('--filename', type=str,
                        help="The file to upload",
                        required=True)
    parser.add_argument('--app', type=str,
                        help="The application name e.g com.mango.hm",
                        required=True)

    args = parser.parse_args()

    upload(args.filename, args.app)

def upload(filename, app):

    controller = os.getenv("SDNCTL")
    user = os.getenv("SDNUSER")
    password = os.getenv("SDNPASS")
    auth = odl.XAuthToken(user=user, password=password, server=controller)
    api = odl.Api(controller=controller, auth=auth)

    running = is_running(api, app)

    if running:
        api.manage_app(app, "stop")
        api.uninstall_app(app)

    api.upload_app(filename)
    api.manage_app(app, "install")
    api.manage_app(app, "start")

def is_running(api, app):
    try:
        api.get_app_info(app)
    except NotFound:
        return False
    return True

if __name__ == "__main__":
    main()


text:
Rails.application.routes.draw do
  resources :replicants, only: :index
  root to: 'replicants#index'
end


text:
<?php

namespace G4\Log\Data;

use G4\Log\Error\ErrorData;

class Error extends LoggerAbstract
{

    /**
     * @var ErrorData
     */
    private $errorData;

    /**
     * @return array
     */
    public function getRawData()
    {
        return array_merge([
            'id'        => \md5(\uniqid(microtime(), true)),
            'timestamp' => $this->getJsTimestamp(),
            'datetime'  => \date('Y-m-d H:i:s'),

            'code'      => $this->errorData->getCode(),
            'type'      => $this->errorData->getName(),
            'message'   => $this->errorData->getMessage(),
            'file'      => $this->errorData->getFile(),
            'line'      => $this->errorData->getLine(),
            'trace'     => \json_encode($this->errorData->getTrace()),
            'context'   => \json_encode($this->errorData->getContext()),

            'hostname'  => \gethostname(),
            'pid'       => \getmypid(),
            'ip'        => isset($_SERVER['REMOTE_ADDR']) ? $_SERVER['REMOTE_ADDR']: 'cli',
            'client_ip' => $this->getClientIp(),
            'app_name'  => $this->getAppName(),
            'headers'   => \json_encode($this->getXNDParameters()),
            'uuid'      => $this->getUuid(),
            'php_version' => str_replace(PHP_EXTRA_VERSION, '', PHP_VERSION),
        ], $this->getAdditionLogInformation());
    }

    /**
     * @param ErrorData $errorData
     * @return $this
     */
    public function setErrorData(ErrorData $errorData)
    {
        $this->errorData = $errorData;
        return $this;
    }
}


text:
            TabView
            TabView is a tabbed panel component featuring client side tabs, dynamic content loading with ajax and content transition effects.

Default

Tab 1

Tab 2

Tab 3

                    The story begins as Don Vito Corleone, the head of a New York Mafia family, oversees his daughter's wedding. His beloved son Michael has just come home from the war, but does not intend to become part of his father's business. T hrough Michael's life the nature of the family business becomes clear. The business of the family is just like the head of the family, kind and benevolent to those who give respect, but given to ruthless violence whenever anything stands against the good of the family.

                    Francis Ford Coppola's legendary continuation and sequel to his landmark 1972 film, The_Godfather, parallels the young Vito Corleone's rise with his son Michael's spiritual fall, deepening The_Godfather's depiction of the dark side of the American dream. In the early 1900s, the child Vito flees his Sicilian village for America after the local Mafia kills his family. Vito struggles to make a living, legally or illegally, for his wife and growing brood in Little Italy, killing the local Black Hand Fanucci after he demands his customary cut of the tyro's business. With Fanucci gone, Vito's communal stature grows.

                    After a break of more than 15 years, director Francis Ford Coppola and writer Mario Puzo returned to the well for this third and final story of the fictional Corleone crime family. Two decades have passed, and crime kingpin Michael Corleone, now divorced from his wife Kay has nearly succeeded in keeping his promise that his family would one day be completely legitimate.

Ajax Content Loading

Tab 1

Tab 2

Tab 3

Dynamic Content for Tab 1

Effect

Tab 1

Tab 2

Tab 3

                    The story begins as Don Vito Corleone, the head of a New York Mafia family, oversees his daughter's wedding. His beloved son Michael has just come home from the war, but does not intend to become part of his father's business. T hrough Michael's life the nature of the family business becomes clear. The business of the family is just like the head of the family, kind and benevolent to those who give respect, but given to ruthless violence whenever anything stands against the good of the family.

                    Francis Ford Coppola's legendary continuation and sequel to his landmark 1972 film, The_Godfather, parallels the young Vito Corleone's rise with his son Michael's spiritual fall, deepening The_Godfather's depiction of the dark side of the American dream. In the early 1900s, the child Vito flees his Sicilian village for America after the local Mafia kills his family. Vito struggles to make a living, legally or illegally, for his wife and growing brood in Little Italy, killing the local Black Hand Fanucci after he demands his customary cut of the tyro's business. With Fanucci gone, Vito's communal stature grows.

                    After a break of more than 15 years, director Francis Ford Coppola and writer Mario Puzo returned to the well for this third and final story of the fictional Corleone crime family. Two decades have passed, and crime kingpin Michael Corleone, now divorced from his wife Kay has nearly succeeded in keeping his promise that his family would one day be completely legitimate.

Closable

Tab 1

Tab 2

Tab 3

                    The story begins as Don Vito Corleone, the head of a New York Mafia family, oversees his daughter's wedding. His beloved son Michael has just come home from the war, but does not intend to become part of his father's business. T hrough Michael's life the nature of the family business becomes clear. The business of the family is just like the head of the family, kind and benevolent to those who give respect, but given to ruthless violence whenever anything stands against the good of the family.

                    Francis Ford Coppola's legendary continuation and sequel to his landmark 1972 film, The_Godfather, parallels the young Vito Corleone's rise with his son Michael's spiritual fall, deepening The_Godfather's depiction of the dark side of the American dream. In the early 1900s, the child Vito flees his Sicilian village for America after the local Mafia kills his family. Vito struggles to make a living, legally or illegally, for his wife and growing brood in Little Italy, killing the local Black Hand Fanucci after he demands his customary cut of the tyro's business. With Fanucci gone, Vito's communal stature grows.

                    After a break of more than 15 years, director Francis Ford Coppola and writer Mario Puzo returned to the well for this third and final story of the fictional Corleone crime family. Two decades have passed, and crime kingpin Michael Corleone, now divorced from his wife Kay has nearly succeeded in keeping his promise that his family would one day be completely legitimate.

Orientations

Tab 1

Tab 2

Tab 3

                    The story begins as Don Vito Corleone, the head of a New York Mafia family, oversees his daughter's wedding. His beloved son Michael has just come home from the war, but does not intend to become part of his father's business. T hrough Michael's life the nature of the family business becomes clear. The business of the family is just like the head of the family, kind and benevolent to those who give respect, but given to ruthless violence whenever anything stands against the good of the family.

                    Francis Ford Coppola's legendary continuation and sequel to his landmark 1972 film, The_Godfather, parallels the young Vito Corleone's rise with his son Michael's spiritual fall, deepening The_Godfather's depiction of the dark side of the American dream. In the early 1900s, the child Vito flees his Sicilian village for America after the local Mafia kills his family. Vito struggles to make a living, legally or illegally, for his wife and growing brood in Little Italy, killing the local Black Hand Fanucci after he demands his customary cut of the tyro's business. With Fanucci gone, Vito's communal stature grows.

                    After a break of more than 15 years, director Francis Ford Coppola and writer Mario Puzo returned to the well for this third and final story of the fictional Corleone crime family. Two decades have passed, and crime kingpin Michael Corleone, now divorced from his wife Kay has nearly succeeded in keeping his promise that his family would one day be completely legitimate.

PrimeElement

                The story begins as Don Vito Corleone, the head of a New York Mafia family, oversees his daughter's wedding. His beloved son Michael has just come home from the war, but does not intend to become part of his father's business. T hrough Michael's life the nature of the family business becomes clear. The business of the family is just like the head of the family, kind and benevolent to those who give respect, but given to ruthless violence whenever anything stands against the good of the family.

                Francis Ford Coppola's legendary continuation and sequel to his landmark 1972 film, The_Godfather, parallels the young Vito Corleone's rise with his son Michael's spiritual fall, deepening The_Godfather's depiction of the dark side of the American dream. In the early 1900s, the child Vito flees his Sicilian village for America after the local Mafia kills his family. Vito struggles to make a living, legally or illegally, for his wife and growing brood in Little Italy, killing the local Black Hand Fanucci after he demands his customary cut of the tyro's business. With Fanucci gone, Vito's communal stature grows.

                After a break of more than 15 years, director Francis Ford Coppola and writer Mario Puzo returned to the well for this third and final story of the fictional Corleone crime family. Two decades have passed, and crime kingpin Michael Corleone, now divorced from his wife Kay has nearly succeeded in keeping his promise that his family would one day be completely legitimate.

Overview

Options

Events

Methods

Source

PrimeElement

$('#default').puitabview();

<div id="default">
    <ul>
        <li><a href="#tab1">Tab 1</a></li>
        <li><a href="#tab2">Tab 2</a></li>
        <li><a href="#tab3">Tab 3</a></li>
    </ul>
    <div>
        <div id="tab1">
            content 1
        </div>
        <div id="tab2">
            content 2
        </div>
        <div id="tab3">
            content 3
        </div>
    </div>
</div>

                                    Name
                                    Type
                                    Default
                                    Description

                                            activeIndex
                                            Integer
                                            0
                                            Index of the active tab.

                                            orientation
                                            String
                                            top
                                            Orientation of tab headers.

                                    Name
                                    Parameters
                                    Description

                                            change
                                            ui.index: index of selected tab.
                                            Fired when an inactive tab is selected.

                                            close
                                            ui.index: index of selected tab.
                                            Fired when a tab is closed.

Example

$('#default').puitabview({
    change: function(event, ui) {
        //...
    }
});

                                    Name
                                    Parameters
                                    Description

                                            select
                                            index: Index of the tab to select.
                                            Activates the tab with given index.

                                            remove
                                            index: Index of the tab to remove.
                                            Removes the tab with given index.

                                            getLength
                                            -
                                            Returns length of tabs.

                                            getActiveIndex
                                            -
                                            Returns index of selected tab.

                                            disable
                                            index: Index of the tab to disable.
                                            Disable selected tab.

                                            enable
                                            index: Index of the tab to enable.
                                            Enable selected tab.

                                            option
                                            name: Name of the option
                                            Returns the value of the option.

                                            option
                                            name: Name of the option, value: Value of the option
                                            Set the value of the option.

Example

$('#default').puitabview('remove', 1);

$(function() {
    $('#default').puitabview();

    $('#dynamic').puitabview({
        change: function(event, ui) {

            $.ajax({
                type: "GET",
                url: './tabcontent',
                data: {tabindex: ui.index},
                dataType: "html",
                context: this,
                success: function(data) {
                    $(this).children('div.ui-tabview-panels').children().eq(ui.index).html(data);
                }
            });
        }
    });

    $('#effect').puitabview({
        effect: {
            name: 'fade'
            ,duration: 'normal'
        }
    });

    $('#closable').puitabview();

    $('#left').puitabview({
        orientation: 'left'
    });
});

<div id="default">
    <ul>
        <li><a href="#tab1">Tab 1</a></li>
        <li><a href="#tab2">Tab 2</a></li>
        <li><a href="#tab3">Tab 3</a></li>
    </ul>
    <div>
        <div id="tab1">
            The story begins as Don Vito Corleone, the head of a New York Mafia family, oversees his daughter's wedding. His beloved son Michael has just come home from the war, but does not intend to become part of his father's business. T hrough Michael's life the nature of the family business becomes clear. The business of the family is just like the head of the family, kind and benevolent to those who give respect, but given to ruthless violence whenever anything stands against the good of the family.
        </div>
        <div id="tab2">
            Francis Ford Coppola's legendary continuation and sequel to his landmark 1972 film, The_Godfather, parallels the young Vito Corleone's rise with his son Michael's spiritual fall, deepening The_Godfather's depiction of the dark side of the American dream. In the early 1900s, the child Vito flees his Sicilian village for America after the local Mafia kills his family. Vito struggles to make a living, legally or illegally, for his wife and growing brood in Little Italy, killing the local Black Hand Fanucci after he demands his customary cut of the tyro's business. With Fanucci gone, Vito's communal stature grows.
        </div>
        <div id="tab3">
            After a break of more than 15 years, director Francis Ford Coppola and writer Mario Puzo returned to the well for this third and final story of the fictional Corleone crime family. Two decades have passed, and crime kingpin Michael Corleone, now divorced from his wife Kay has nearly succeeded in keeping his promise that his family would one day be completely legitimate.
        </div>
    </div>
</div>

<div id="dynamic">
    <ul>
        <li><a href="#tab1">Tab 1</a></li>
        <li><a href="#tab2">Tab 2</a></li>
        <li><a href="#tab3">Tab 3</a></li>
    </ul>
    <div>
        <div id="tab1">
            <p>Dynamic Content for Tab 1</p>
        </div>
        <div id="tab2">
        </div>
        <div id="tab3">
        </div>
    </div>
</div>

<div id="effect">
    <ul>
        <li><a href="#tab1">Tab 1</a></li>
        <li><a href="#tab2">Tab 2</a></li>
        <li><a href="#tab3">Tab 3</a></li>
    </ul>
    <div>
        <div id="tab1">
            The story begins as Don Vito Corleone, the head of a New York Mafia family, oversees his daughter's wedding. His beloved son Michael has just come home from the war, but does not intend to become part of his father's business. T hrough Michael's life the nature of the family business becomes clear. The business of the family is just like the head of the family, kind and benevolent to those who give respect, but given to ruthless violence whenever anything stands against the good of the family.
        </div>
        <div id="tab2">
            Francis Ford Coppola's legendary continuation and sequel to his landmark 1972 film, The_Godfather, parallels the young Vito Corleone's rise with his son Michael's spiritual fall, deepening The_Godfather's depiction of the dark side of the American dream. In the early 1900s, the child Vito flees his Sicilian village for America after the local Mafia kills his family. Vito struggles to make a living, legally or illegally, for his wife and growing brood in Little Italy, killing the local Black Hand Fanucci after he demands his customary cut of the tyro's business. With Fanucci gone, Vito's communal stature grows.
        </div>
        <div id="tab3">
            After a break of more than 15 years, director Francis Ford Coppola and writer Mario Puzo returned to the well for this third and final story of the fictional Corleone crime family. Two decades have passed, and crime kingpin Michael Corleone, now divorced from his wife Kay has nearly succeeded in keeping his promise that his family would one day be completely legitimate.
        </div>
    </div>
</div>

<div id="closable">
    <ul>
        <li><a href="#tab1">Tab 1</a><span class="fa fa-close"></span></li>
        <li><a href="#tab2">Tab 2</a><span class="fa fa-close"></span></li>
        <li><a href="#tab3">Tab 3</a><span class="fa fa-close"></span></li>
    </ul>
    <div>
        <div id="tab1">
            The story begins as Don Vito Corleone, the head of a New York Mafia family, oversees his daughter's wedding. His beloved son Michael has just come home from the war, but does not intend to become part of his father's business. T hrough Michael's life the nature of the family business becomes clear. The business of the family is just like the head of the family, kind and benevolent to those who give respect, but given to ruthless violence whenever anything stands against the good of the family.
        </div>
        <div id="tab2">
            Francis Ford Coppola's legendary continuation and sequel to his landmark 1972 film, The_Godfather, parallels the young Vito Corleone's rise with his son Michael's spiritual fall, deepening The_Godfather's depiction of the dark side of the American dream. In the early 1900s, the child Vito flees his Sicilian village for America after the local Mafia kills his family. Vito struggles to make a living, legally or illegally, for his wife and growing brood in Little Italy, killing the local Black Hand Fanucci after he demands his customary cut of the tyro's business. With Fanucci gone, Vito's communal stature grows.
        </div>
        <div id="tab3">
            After a break of more than 15 years, director Francis Ford Coppola and writer Mario Puzo returned to the well for this third and final story of the fictional Corleone crime family. Two decades have passed, and crime kingpin Michael Corleone, now divorced from his wife Kay has nearly succeeded in keeping his promise that his family would one day be completely legitimate.
        </div>
    </div>
</div>

<div id="left" style="width:600px;">
    <ul>
        <li><a href="#tab1">Tab 1</a></li>
        <li><a href="#tab2">Tab 2</a></li>
        <li><a href="#tab3">Tab 3</a></li>
    </ul>
    <div>
        <div id="tab1">
            The story begins as Don Vito Corleone, the head of a New York Mafia family, oversees his daughter's wedding. His beloved son Michael has just come home from the war, but does not intend to become part of his father's business. T hrough Michael's life the nature of the family business becomes clear. The business of the family is just like the head of the family, kind and benevolent to those who give respect, but given to ruthless violence whenever anything stands against the good of the family.
        </div>
        <div id="tab2">
            Francis Ford Coppola's legendary continuation and sequel to his landmark 1972 film, The_Godfather, parallels the young Vito Corleone's rise with his son Michael's spiritual fall, deepening The_Godfather's depiction of the dark side of the American dream. In the early 1900s, the child Vito flees his Sicilian village for America after the local Mafia kills his family. Vito struggles to make a living, legally or illegally, for his wife and growing brood in Little Italy, killing the local Black Hand Fanucci after he demands his customary cut of the tyro's business. With Fanucci gone, Vito's communal stature grows.
        </div>
        <div id="tab3">
            After a break of more than 15 years, director Francis Ford Coppola and writer Mario Puzo returned to the well for this third and final story of the fictional Corleone crime family. Two decades have passed, and crime kingpin Michael Corleone, now divorced from his wife Kay has nearly succeeded in keeping his promise that his family would one day be completely legitimate.
        </div>
    </div>
</div>

<h3>PrimeElement</h3>
<p-tabview activeindex="1">
    <p-tab title="Godfather I">
        The story begins as Don Vito Corleone, the head of a New York Mafia family, oversees his daughter's wedding. His beloved son Michael has just come home from the war, but does not intend to become part of his father's business. T hrough Michael's life the nature of the family business becomes clear. The business of the family is just like the head of the family, kind and benevolent to those who give respect, but given to ruthless violence whenever anything stands against the good of the family.
    </p-tab>
    <p-tab title="Godfather II">
        Francis Ford Coppola's legendary continuation and sequel to his landmark 1972 film, The_Godfather, parallels the young Vito Corleone's rise with his son Michael's spiritual fall, deepening The_Godfather's depiction of the dark side of the American dream. In the early 1900s, the child Vito flees his Sicilian village for America after the local Mafia kills his family. Vito struggles to make a living, legally or illegally, for his wife and growing brood in Little Italy, killing the local Black Hand Fanucci after he demands his customary cut of the tyro's business. With Fanucci gone, Vito's communal stature grows.
    </p-tab>
    <p-tab title="Godfather III">
        After a break of more than 15 years, director Francis Ford Coppola and writer Mario Puzo returned to the well for this third and final story of the fictional Corleone crime family. Two decades have passed, and crime kingpin Michael Corleone, now divorced from his wife Kay has nearly succeeded in keeping his promise that his family would one day be completely legitimate.
    </p-tab>
</p-tabview>

Usage

                                Tabview element consists of one or more p-tab elements. Header of the tab is defined using title attribute of tab.

<p-tabview>
    <p-tab title="Title for tab 1">
        Tab Content 1
    </p-tab>
    <p-tab title="Title for tab 2">
        Tab Content 2
    </p-tab>
</p-tabview>

Attributes

                                            Name
                                            Type
                                            Default
                                            Description

                                            id
                                            string
                                            null
                                            Identifier of the element.

                                            activeindex
                                            Integer
                                            0
                                            Index of the active tab.

                                            orientation
                                            String
                                            top
                                            Orientation of tab headers.

                                            onchange
                                            function
                                            null
                                            Name of the function to invoke on tab change.

Methods

                                            Name
                                            Parameters
                                            Description

                                            select
                                            index: Index of the tab to select.
                                            Activates the tab with given index.

                                            remove
                                            index: Index of the tab to remove.
                                            Removes the tab with given index.

                                            getActiveIndex
                                            -
                                            Returns index of selected tab.

                                            disable
                                            index: Index of the tab to disable.
                                            Disable selected tab.

                                            enable
                                            index: Index of the tab to enable.
                                            Enable selected tab.


text:
layout: page
permalink: /all-base-R/apply/
---

## __apply__

#### _Apply Functions Over Array Margins_

### Usage

### Arguments

### Notes


text:
/*!
 * Start Bootstrap - SB Admin 2 Bootstrap Admin Theme (http://startbootstrap.com)
 * Code licensed under the Apache License v2.0.
 * For details, see http://www.apache.org/licenses/LICENSE-2.0.
 */

body {
    background-color: #f8f8f8;
}

#wrapper {
    width: 100%;
}

#page-wrapper {
    padding: 0 15px;
    min-height: 568px;
    background-color: #fff;
}

@media(min-width:768px) {
    #page-wrapper {
        position: inherit;
        margin: 0 0 0 250px;
        padding: 0 30px;
        border-left: 1px solid #e7e7e7;
    }
}

.navbar-top-links {
    margin-right: 0;
}

.navbar-top-links li {
    display: inline-block;
}

.navbar-top-links li:last-child {
    margin-right: 15px;
}

.navbar-top-links li a {
    padding: 15px;
    min-height: 50px;
}

.navbar-top-links .dropdown-menu li {
    display: block;
}

.navbar-top-links .dropdown-menu li:last-child {
    margin-right: 0;
}

.navbar-top-links .dropdown-menu li a {
    padding: 3px 20px;
    min-height: 0;
}

.navbar-top-links .dropdown-menu li a div {
    white-space: normal;
}

.navbar-top-links .dropdown-messages,
.navbar-top-links .dropdown-tasks,
.navbar-top-links .dropdown-alerts {
    width: 310px;
    min-width: 0;
}

.navbar-top-links .dropdown-messages {
    margin-left: 5px;
}

.navbar-top-links .dropdown-tasks {
    margin-left: -59px;
}

.navbar-top-links .dropdown-alerts {
    margin-left: -123px;
}

.navbar-top-links .dropdown-user {
    right: 0;
    left: auto;
}

.sidebar .sidebar-nav.navbar-collapse {
    padding-right: 0;
    padding-left: 0;
}

.sidebar .sidebar-search {
    padding: 15px;
}

.sidebar ul li {
    border-bottom: 1px solid #e7e7e7;
}

.sidebar ul li a.active {
    background-color: #eee;
}

.sidebar .arrow {
    float: right;
}

.sidebar .fa.arrow:before {
    content: "\f104";
}

.sidebar .active>a>.fa.arrow:before {
    content: "\f107";
}

.sidebar .nav-second-level li,
.sidebar .nav-third-level li {
    border-bottom: 0!important;
}

.sidebar .nav-second-level li a {
    padding-left: 37px;
}

.sidebar .nav-third-level li a {
    padding-left: 52px;
}

@media(min-width:768px) {
    .sidebar {
        z-index: 1;
        position: absolute;
        width: 250px;
        margin-top: 51px;
    }

    .navbar-top-links .dropdown-messages,
    .navbar-top-links .dropdown-tasks,
    .navbar-top-links .dropdown-alerts {
        margin-left: auto;
    }
}

.btn-outline {
    color: inherit;
    background-color: transparent;
    transition: all .5s;
}

.btn-primary.btn-outline {
    color: #428bca;
}

.btn-success.btn-outline {
    color: #5cb85c;
}

.btn-info.btn-outline {
    color: #5bc0de;
}

.btn-warning.btn-outline {
    color: #f0ad4e;
}

.btn-danger.btn-outline {
    color: #d9534f;
}

.btn-primary.btn-outline:hover,
.btn-success.btn-outline:hover,
.btn-info.btn-outline:hover,
.btn-warning.btn-outline:hover,
.btn-danger.btn-outline:hover {
    color: #fff;
}

.chat {
    margin: 0;
    padding: 0;
    list-style: none;
}

.chat li {
    margin-bottom: 10px;
    padding-bottom: 5px;
    border-bottom: 1px dotted #999;
}

.chat li.left .chat-body {
    margin-left: 60px;
}

.chat li.right .chat-body {
    margin-right: 60px;
}

.chat li .chat-body p {
    margin: 0;
}

.panel .slidedown .glyphicon,
.chat .glyphicon {
    margin-right: 5px;
}

.chat-panel .panel-body {
    height: 350px;
    overflow-y: scroll;
}

.login-panel {
    margin-top: 25%;
}

.flot-chart {
    display: block;
    height: 400px;
}

.flot-chart-content {
    width: 100%;
    height: 100%;
}

.dataTables_wrapper {
    position: relative;
    clear: both;
}

table.dataTable thead .sorting,
table.dataTable thead .sorting_asc,
table.dataTable thead .sorting_desc,
table.dataTable thead .sorting_asc_disabled,
table.dataTable thead .sorting_desc_disabled {
    background: 0 0;
}

table.dataTable thead .sorting_asc:after {
    content: "\f0de";
    float: right;
    font-family: fontawesome;
}

table.dataTable thead .sorting_desc:after {
    content: "\f0dd";
    float: right;
    font-family: fontawesome;
}

table.dataTable thead .sorting:after {
    content: "\f0dc";
    float: right;
    font-family: fontawesome;
    color: rgba(50,50,50,.5);
}

.btn-circle {
    width: 30px;
    height: 30px;
    padding: 6px 0;
    border-radius: 15px;
    text-align: center;
    font-size: 12px;
    line-height: 1.428571429;
}

.btn-circle.btn-lg {
    width: 50px;
    height: 50px;
    padding: 10px 16px;
    border-radius: 25px;
    font-size: 18px;
    line-height: 1.33;
}

.btn-circle.btn-xl {
    width: 70px;
    height: 70px;
    padding: 10px 16px;
    border-radius: 35px;
    font-size: 24px;
    line-height: 1.33;
}

.show-grid [class^=col-] {
    padding-top: 10px;
    padding-bottom: 10px;
    border: 1px solid #ddd;
    background-color: #eee!important;
}

.show-grid {
    margin: 15px 0;
}

.huge {
    font-size: 40px;
}

.panel-green {
    border-color: #5cb85c;
}

.panel-green .panel-heading {
    border-color: #5cb85c;
    color: #fff;
    background-color: #5cb85c;
}

.panel-green a {
    color: #5cb85c;
}

.panel-green a:hover {
    color: #3d8b3d;
}

.panel-red {
    border-color: #d9534f;
}

.panel-red .panel-heading {
    border-color: #d9534f;
    color: #fff;
    background-color: #d9534f;
}

.panel-red a {
    color: #d9534f;
}

.panel-red a:hover {
    color: #b52b27;
}

.panel-yellow {
    border-color: #f0ad4e;
}

.panel-yellow .panel-heading {
    border-color: #f0ad4e;
    color: #fff;
    background-color: #f0ad4e;
}

.panel-yellow a {
    color: #f0ad4e;
}

.panel-yellow a:hover {
    color: #df8a13;
}
.navbar-custom {
  background-color: #2496cf;
  border-color: #1f82b3;
  background-image: -webkit-gradient(linear, left 0%, left 100%, from(#47acdf), to(#2496cf));
  background-image: -webkit-linear-gradient(top, #47acdf, 0%, #2496cf, 100%);
  background-image: -moz-linear-gradient(top, #47acdf 0%, #2496cf 100%);
  background-image: linear-gradient(to bottom, #47acdf 0%, #2496cf 100%);
  background-repeat: repeat-x;
  filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ff47acdf', endColorstr='#ff2496cf', GradientType=0);
}
.navbar-custom .navbar-brand {
  color: #ffffff;
}
.navbar-custom .navbar-brand:hover,
.navbar-custom .navbar-brand:focus {
  color: #e6e6e6;
  background-color: transparent;
}
.navbar-custom .navbar-text {
  color: #ffffff;
}
.navbar-custom .navbar-nav > li:last-child > a {
  border-right: 1px solid #1f82b3;
}
.navbar-custom .navbar-nav > li > a {
  color: #ffffff;
  border-left: 1px solid #1f82b3;
}
.navbar-custom .navbar-nav > li > a:hover,
.navbar-custom .navbar-nav > li > a:focus {
  color: #c0c0c0;
  background-color: transparent;
}
.navbar-custom .navbar-nav > .active > a,
.navbar-custom .navbar-nav > .active > a:hover,
.navbar-custom .navbar-nav > .active > a:focus {
  color: #c0c0c0;
  background-color: #1f82b3;
  background-image: -webkit-gradient(linear, left 0%, left 100%, from(#1f82b3), to(#2ba0da));
  background-image: -webkit-linear-gradient(top, #1f82b3, 0%, #2ba0da, 100%);
  background-image: -moz-linear-gradient(top, #1f82b3 0%, #2ba0da 100%);
  background-image: linear-gradient(to bottom, #1f82b3 0%, #2ba0da 100%);
  background-repeat: repeat-x;
  filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ff1f82b3', endColorstr='#ff2ba0da', GradientType=0);
}
.navbar-custom .navbar-nav > .disabled > a,
.navbar-custom .navbar-nav > .disabled > a:hover,
.navbar-custom .navbar-nav > .disabled > a:focus {
  color: #cccccc;
  background-color: transparent;
}
.navbar-custom .navbar-toggle {
  border-color: #dddddd;
}
.navbar-custom .navbar-toggle:hover,
.navbar-custom .navbar-toggle:focus {
  background-color: #dddddd;
}
.navbar-custom .navbar-toggle .icon-bar {
  background-color: #cccccc;
}
.navbar-custom .navbar-collapse,
.navbar-custom .navbar-form {
  border-color: #1f80b1;
}
.navbar-custom .navbar-nav > .dropdown > a:hover .caret,
.navbar-custom .navbar-nav > .dropdown > a:focus .caret {
  border-top-color: #c0c0c0;
  border-bottom-color: #c0c0c0;
}
.navbar-custom .navbar-nav > .open > a,
.navbar-custom .navbar-nav > .open > a:hover,
.navbar-custom .navbar-nav > .open > a:focus {
  background-color: #1f82b3;
  color: #c0c0c0;
}
.navbar-custom .navbar-nav > .open > a .caret,
.navbar-custom .navbar-nav > .open > a:hover .caret,
.navbar-custom .navbar-nav > .open > a:focus .caret {
  border-top-color: #c0c0c0;
  border-bottom-color: #c0c0c0;
}
.navbar-custom .navbar-nav > .dropdown > a .caret {
  border-top-color: #ffffff;
  border-bottom-color: #ffffff;
}
@media (max-width: 767) {
  .navbar-custom .navbar-nav .open .dropdown-menu > li > a {
    color: #ffffff;
  }
  .navbar-custom .navbar-nav .open .dropdown-menu > li > a:hover,
  .navbar-custom .navbar-nav .open .dropdown-menu > li > a:focus {
    color: #c0c0c0;
    background-color: transparent;
  }
  .navbar-custom .navbar-nav .open .dropdown-menu > .active > a,
  .navbar-custom .navbar-nav .open .dropdown-menu > .active > a:hover,
  .navbar-custom .navbar-nav .open .dropdown-menu > .active > a:focus {
    color: #c0c0c0;
    background-color: #1f82b3;
  }
  .navbar-custom .navbar-nav .open .dropdown-menu > .disabled > a,
  .navbar-custom .navbar-nav .open .dropdown-menu > .disabled > a:hover,
  .navbar-custom .navbar-nav .open .dropdown-menu > .disabled > a:focus {
    color: #cccccc;
    background-color: transparent;
  }
}
.navbar-custom .navbar-link {
  color: #ffffff;
}
.navbar-custom .navbar-link:hover {
  color: #c0c0c0;
}
.modal-header, h4, .close {
      background-color: #5cb85c;
      color:white !important;
      text-align: center;
      font-size: 30px;
  }
.modal-footer {
      background-color: #f9f9f9;
  }

.panel-change {
  color:white !important;
font-size: 30px;
}

 #footer {
     position: fixed;
     bottom: 0;
     width: 100%;
     padding: 20px;
        height: 60px;
      }
      #footer {
        background-color: #f5f5f5;
      }

.navbar
{
    font-size: 16px;
 }


text:
/*
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *     http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
package com.facebook.presto.sql.planner.optimizations;

import com.facebook.presto.Session;
import com.facebook.presto.spi.type.Type;
import com.facebook.presto.sql.planner.PlanNodeIdAllocator;
import com.facebook.presto.sql.planner.Symbol;
import com.facebook.presto.sql.planner.SymbolAllocator;
import com.facebook.presto.sql.planner.plan.FilterNode;
import com.facebook.presto.sql.planner.plan.PlanNode;
import com.facebook.presto.sql.planner.plan.SampleNode;
import com.facebook.presto.sql.planner.plan.SimplePlanRewriter;
import com.facebook.presto.sql.tree.ComparisonExpression;
import com.facebook.presto.sql.tree.DoubleLiteral;
import com.facebook.presto.sql.tree.Expression;
import com.facebook.presto.sql.tree.FunctionCall;
import com.facebook.presto.sql.tree.QualifiedName;
import com.google.common.collect.ImmutableList;

import java.util.Map;

import static java.util.Objects.requireNonNull;

public class ImplementSampleAsFilter
        extends PlanOptimizer
{
    @Override
    public PlanNode optimize(PlanNode plan, Session session, Map<Symbol, Type> types, SymbolAllocator symbolAllocator, PlanNodeIdAllocator idAllocator)
    {
        requireNonNull(plan, "plan is null");
        requireNonNull(session, "session is null");
        requireNonNull(types, "types is null");
        requireNonNull(symbolAllocator, "symbolAllocator is null");
        requireNonNull(idAllocator, "idAllocator is null");

        return SimplePlanRewriter.rewriteWith(new Rewriter(), plan, null);
    }

    private static class Rewriter
            extends SimplePlanRewriter<Void>
    {
        @Override
        public PlanNode visitSample(SampleNode node, RewriteContext<Void> context)
        {
            if (node.getSampleType() == SampleNode.Type.BERNOULLI) {
                PlanNode rewrittenSource = context.rewrite(node.getSource());

                ComparisonExpression expression = new ComparisonExpression(
                        ComparisonExpression.Type.LESS_THAN,
                        new FunctionCall(QualifiedName.of("rand"), ImmutableList.<Expression>of()),
                        new DoubleLiteral(Double.toString(node.getSampleRatio())));
                return new FilterNode(node.getId(), rewrittenSource, expression);
            }
            else if (node.getSampleType() == SampleNode.Type.POISSONIZED ||
                    node.getSampleType() == SampleNode.Type.SYSTEM) {
                return context.defaultRewrite(node);
            }
            throw new UnsupportedOperationException("not yet implemented");
        }
    }
}


text:
namespace android.view.animation
{
	[global::MonoJavaBridge.JavaClass(typeof(global::android.view.animation.Animation_))]
	public abstract partial class Animation : java.lang.Object, java.lang.Cloneable
	{
		internal new static global::MonoJavaBridge.JniGlobalHandle staticClass;
		protected Animation(global::MonoJavaBridge.JNIEnv @__env) : base(@__env)
		{
		}
		[global::MonoJavaBridge.JavaInterface(typeof(global::android.view.animation.Animation.AnimationListener_))]
		public partial interface AnimationListener  : global::MonoJavaBridge.IJavaObject
		{
			void onAnimationStart(android.view.animation.Animation arg0);
			void onAnimationEnd(android.view.animation.Animation arg0);
			void onAnimationRepeat(android.view.animation.Animation arg0);
		}

		[global::MonoJavaBridge.JavaProxy(typeof(global::android.view.animation.Animation.AnimationListener))]
		internal sealed partial class AnimationListener_ : java.lang.Object, AnimationListener
		{
			internal new static global::MonoJavaBridge.JniGlobalHandle staticClass;
			internal AnimationListener_(global::MonoJavaBridge.JNIEnv @__env) : base(@__env)
			{
			}
			private static global::MonoJavaBridge.MethodId _m0;
			void android.view.animation.Animation.AnimationListener.onAnimationStart(android.view.animation.Animation arg0)
			{
				global::MonoJavaBridge.JavaBridge.CallVoidMethod(this, global::android.view.animation.Animation.AnimationListener_.staticClass, "onAnimationStart", "(Landroid/view/animation/Animation;)V", ref global::android.view.animation.Animation.AnimationListener_._m0, global::MonoJavaBridge.JavaBridge.ConvertToValue(arg0));
			}
			private static global::MonoJavaBridge.MethodId _m1;
			void android.view.animation.Animation.AnimationListener.onAnimationEnd(android.view.animation.Animation arg0)
			{
				global::MonoJavaBridge.JavaBridge.CallVoidMethod(this, global::android.view.animation.Animation.AnimationListener_.staticClass, "onAnimationEnd", "(Landroid/view/animation/Animation;)V", ref global::android.view.animation.Animation.AnimationListener_._m1, global::MonoJavaBridge.JavaBridge.ConvertToValue(arg0));
			}
			private static global::MonoJavaBridge.MethodId _m2;
			void android.view.animation.Animation.AnimationListener.onAnimationRepeat(android.view.animation.Animation arg0)
			{
				global::MonoJavaBridge.JavaBridge.CallVoidMethod(this, global::android.view.animation.Animation.AnimationListener_.staticClass, "onAnimationRepeat", "(Landroid/view/animation/Animation;)V", ref global::android.view.animation.Animation.AnimationListener_._m2, global::MonoJavaBridge.JavaBridge.ConvertToValue(arg0));
			}
			static AnimationListener_()
			{
				global::MonoJavaBridge.JNIEnv @__env = global::MonoJavaBridge.JNIEnv.ThreadEnv;
				global::android.view.animation.Animation.AnimationListener_.staticClass = @__env.NewGlobalRef(@__env.FindClass("android/view/animation/Animation$AnimationListener"));
			}
		}
		[global::MonoJavaBridge.JavaClass()]
		protected partial class Description : java.lang.Object
		{
			internal new static global::MonoJavaBridge.JniGlobalHandle staticClass;
			protected Description(global::MonoJavaBridge.JNIEnv @__env) : base(@__env)
			{
			}
			private static global::MonoJavaBridge.MethodId _m0;
			protected Description() : base(global::MonoJavaBridge.JNIEnv.ThreadEnv)
			{
				global::MonoJavaBridge.JNIEnv @__env = global::MonoJavaBridge.JNIEnv.ThreadEnv;
				if (global::android.view.animation.Animation.Description._m0.native == global::System.IntPtr.Zero)
					global::android.view.animation.Animation.Description._m0 = @__env.GetMethodIDNoThrow(global::android.view.animation.Animation.Description.staticClass, "<init>", "()V");
				global::MonoJavaBridge.JniLocalHandle handle = @__env.NewObject(android.view.animation.Animation.Description.staticClass, global::android.view.animation.Animation.Description._m0);
				Init(@__env, handle);
			}
			internal static global::MonoJavaBridge.FieldId _type5876;
			public int type
			{
				get
				{
					global::MonoJavaBridge.JNIEnv @__env = global::MonoJavaBridge.JNIEnv.ThreadEnv;
					return @__env.GetIntField(this.JvmHandle, _type5876);
				}
				set
				{
				}
			}
			internal static global::MonoJavaBridge.FieldId _value5877;
			public float value
			{
				get
				{
					global::MonoJavaBridge.JNIEnv @__env = global::MonoJavaBridge.JNIEnv.ThreadEnv;
					return @__env.GetFloatField(this.JvmHandle, _value5877);
				}
				set
				{
				}
			}
			static Description()
			{
				global::MonoJavaBridge.JNIEnv @__env = global::MonoJavaBridge.JNIEnv.ThreadEnv;
				global::android.view.animation.Animation.Description.staticClass = @__env.NewGlobalRef(@__env.FindClass("android/view/animation/Animation$Description"));
				global::android.view.animation.Animation.Description._type5876 = @__env.GetFieldIDNoThrow(global::android.view.animation.Animation.Description.staticClass, "type", "I");
				global::android.view.animation.Animation.Description._value5877 = @__env.GetFieldIDNoThrow(global::android.view.animation.Animation.Description.staticClass, "value", "F");
			}
		}
		private static global::MonoJavaBridge.MethodId _m0;
		protected virtual global::android.view.animation.Animation clone()
		{
			return global::MonoJavaBridge.JavaBridge.CallObjectMethod(this, global::android.view.animation.Animation.staticClass, "clone", "()Landroid/view/animation/Animation;", ref global::android.view.animation.Animation._m0) as android.view.animation.Animation;
		}
		private static global::MonoJavaBridge.MethodId _m1;
		public virtual void start()
		{
			global::MonoJavaBridge.JavaBridge.CallVoidMethod(this, global::android.view.animation.Animation.staticClass, "start", "()V", ref global::android.view.animation.Animation._m1);
		}
		private static global::MonoJavaBridge.MethodId _m2;
		public virtual void reset()
		{
			global::MonoJavaBridge.JavaBridge.CallVoidMethod(this, global::android.view.animation.Animation.staticClass, "reset", "()V", ref global::android.view.animation.Animation._m2);
		}
		private static global::MonoJavaBridge.MethodId _m3;
		public virtual void initialize(int arg0, int arg1, int arg2, int arg3)
		{
			global::MonoJavaBridge.JavaBridge.CallVoidMethod(this, global::android.view.animation.Animation.staticClass, "initialize", "(IIII)V", ref global::android.view.animation.Animation._m3, global::MonoJavaBridge.JavaBridge.ConvertToValue(arg0), global::MonoJavaBridge.JavaBridge.ConvertToValue(arg1), global::MonoJavaBridge.JavaBridge.ConvertToValue(arg2), global::MonoJavaBridge.JavaBridge.ConvertToValue(arg3));
		}
		private static global::MonoJavaBridge.MethodId _m4;
		public virtual void cancel()
		{
			global::MonoJavaBridge.JavaBridge.CallVoidMethod(this, global::android.view.animation.Animation.staticClass, "cancel", "()V", ref global::android.view.animation.Animation._m4);
		}
		private static global::MonoJavaBridge.MethodId _m5;
		protected virtual float resolveSize(int arg0, float arg1, int arg2, int arg3)
		{
			return global::MonoJavaBridge.JavaBridge.CallFloatMethod(this, global::android.view.animation.Animation.staticClass, "resolveSize", "(IFII)F", ref global::android.view.animation.Animation._m5, global::MonoJavaBridge.JavaBridge.ConvertToValue(arg0), global::MonoJavaBridge.JavaBridge.ConvertToValue(arg1), global::MonoJavaBridge.JavaBridge.ConvertToValue(arg2), global::MonoJavaBridge.JavaBridge.ConvertToValue(arg3));
		}
		private static global::MonoJavaBridge.MethodId _m6;
		public virtual int getRepeatCount()
		{
			return global::MonoJavaBridge.JavaBridge.CallIntMethod(this, global::android.view.animation.Animation.staticClass, "getRepeatCount", "()I", ref global::android.view.animation.Animation._m6);
		}
		private static global::MonoJavaBridge.MethodId _m7;
		public virtual void setInterpolator(android.view.animation.Interpolator arg0)
		{
			global::MonoJavaBridge.JavaBridge.CallVoidMethod(this, global::android.view.animation.Animation.staticClass, "setInterpolator", "(Landroid/view/animation/Interpolator;)V", ref global::android.view.animation.Animation._m7, global::MonoJavaBridge.JavaBridge.ConvertToValue(arg0));
		}
		public void setInterpolator(global::android.view.animation.InterpolatorDelegate arg0)
		{
			setInterpolator((global::android.view.animation.InterpolatorDelegateWrapper)arg0);
		}
		private static global::MonoJavaBridge.MethodId _m8;
		public virtual void setInterpolator(android.content.Context arg0, int arg1)
		{
			global::MonoJavaBridge.JavaBridge.CallVoidMethod(this, global::android.view.animation.Animation.staticClass, "setInterpolator", "(Landroid/content/Context;I)V", ref global::android.view.animation.Animation._m8, global::MonoJavaBridge.JavaBridge.ConvertToValue(arg0), global::MonoJavaBridge.JavaBridge.ConvertToValue(arg1));
		}
		private static global::MonoJavaBridge.MethodId _m9;
		public virtual global::android.view.animation.Interpolator getInterpolator()
		{
			return global::MonoJavaBridge.JavaBridge.CallIJavaObjectMethod<android.view.animation.Interpolator>(this, global::android.view.animation.Animation.staticClass, "getInterpolator", "()Landroid/view/animation/Interpolator;", ref global::android.view.animation.Animation._m9) as android.view.animation.Interpolator;
		}
		private static global::MonoJavaBridge.MethodId _m10;
		public virtual bool isInitialized()
		{
			return global::MonoJavaBridge.JavaBridge.CallBooleanMethod(this, global::android.view.animation.Animation.staticClass, "isInitialized", "()Z", ref global::android.view.animation.Animation._m10);
		}
		private static global::MonoJavaBridge.MethodId _m11;
		public virtual void setStartOffset(long arg0)
		{
			global::MonoJavaBridge.JavaBridge.CallVoidMethod(this, global::android.view.animation.Animation.staticClass, "setStartOffset", "(J)V", ref global::android.view.animation.Animation._m11, global::MonoJavaBridge.JavaBridge.ConvertToValue(arg0));
		}
		private static global::MonoJavaBridge.MethodId _m12;
		public virtual void setDuration(long arg0)
		{
			global::MonoJavaBridge.JavaBridge.CallVoidMethod(this, global::android.view.animation.Animation.staticClass, "setDuration", "(J)V", ref global::android.view.animation.Animation._m12, global::MonoJavaBridge.JavaBridge.ConvertToValue(arg0));
		}
		private static global::MonoJavaBridge.MethodId _m13;
		public virtual void restrictDuration(long arg0)
		{
			global::MonoJavaBridge.JavaBridge.CallVoidMethod(this, global::android.view.animation.Animation.staticClass, "restrictDuration", "(J)V", ref global::android.view.animation.Animation._m13, global::MonoJavaBridge.JavaBridge.ConvertToValue(arg0));
		}
		private static global::MonoJavaBridge.MethodId _m14;
		public virtual void scaleCurrentDuration(float arg0)
		{
			global::MonoJavaBridge.JavaBridge.CallVoidMethod(this, global::android.view.animation.Animation.staticClass, "scaleCurrentDuration", "(F)V", ref global::android.view.animation.Animation._m14, global::MonoJavaBridge.JavaBridge.ConvertToValue(arg0));
		}
		private static global::MonoJavaBridge.MethodId _m15;
		public virtual void setStartTime(long arg0)
		{
			global::MonoJavaBridge.JavaBridge.CallVoidMethod(this, global::android.view.animation.Animation.staticClass, "setStartTime", "(J)V", ref global::android.view.animation.Animation._m15, global::MonoJavaBridge.JavaBridge.ConvertToValue(arg0));
		}
		private static global::MonoJavaBridge.MethodId _m16;
		public virtual void startNow()
		{
			global::MonoJavaBridge.JavaBridge.CallVoidMethod(this, global::android.view.animation.Animation.staticClass, "startNow", "()V", ref global::android.view.animation.Animation._m16);
		}
		private static global::MonoJavaBridge.MethodId _m17;
		public virtual void setRepeatMode(int arg0)
		{
			global::MonoJavaBridge.JavaBridge.CallVoidMethod(this, global::android.view.animation.Animation.staticClass, "setRepeatMode", "(I)V", ref global::android.view.animation.Animation._m17, global::MonoJavaBridge.JavaBridge.ConvertToValue(arg0));
		}
		private static global::MonoJavaBridge.MethodId _m18;
		public virtual void setRepeatCount(int arg0)
		{
			global::MonoJavaBridge.JavaBridge.CallVoidMethod(this, global::android.view.animation.Animation.staticClass, "setRepeatCount", "(I)V", ref global::android.view.animation.Animation._m18, global::MonoJavaBridge.JavaBridge.ConvertToValue(arg0));
		}
		private static global::MonoJavaBridge.MethodId _m19;
		public virtual bool isFillEnabled()
		{
			return global::MonoJavaBridge.JavaBridge.CallBooleanMethod(this, global::android.view.animation.Animation.staticClass, "isFillEnabled", "()Z", ref global::android.view.animation.Animation._m19);
		}
		private static global::MonoJavaBridge.MethodId _m20;
		public virtual void setFillEnabled(bool arg0)
		{
			global::MonoJavaBridge.JavaBridge.CallVoidMethod(this, global::android.view.animation.Animation.staticClass, "setFillEnabled", "(Z)V", ref global::android.view.animation.Animation._m20, global::MonoJavaBridge.JavaBridge.ConvertToValue(arg0));
		}
		private static global::MonoJavaBridge.MethodId _m21;
		public virtual void setFillBefore(bool arg0)
		{
			global::MonoJavaBridge.JavaBridge.CallVoidMethod(this, global::android.view.animation.Animation.staticClass, "setFillBefore", "(Z)V", ref global::android.view.animation.Animation._m21, global::MonoJavaBridge.JavaBridge.ConvertToValue(arg0));
		}
		private static global::MonoJavaBridge.MethodId _m22;
		public virtual void setFillAfter(bool arg0)
		{
			global::MonoJavaBridge.JavaBridge.CallVoidMethod(this, global::android.view.animation.Animation.staticClass, "setFillAfter", "(Z)V", ref global::android.view.animation.Animation._m22, global::MonoJavaBridge.JavaBridge.ConvertToValue(arg0));
		}
		private static global::MonoJavaBridge.MethodId _m23;
		public virtual void setZAdjustment(int arg0)
		{
			global::MonoJavaBridge.JavaBridge.CallVoidMethod(this, global::android.view.animation.Animation.staticClass, "setZAdjustment", "(I)V", ref global::android.view.animation.Animation._m23, global::MonoJavaBridge.JavaBridge.ConvertToValue(arg0));
		}
		private static global::MonoJavaBridge.MethodId _m24;
		public virtual void setDetachWallpaper(bool arg0)
		{
			global::MonoJavaBridge.JavaBridge.CallVoidMethod(this, global::android.view.animation.Animation.staticClass, "setDetachWallpaper", "(Z)V", ref global::android.view.animation.Animation._m24, global::MonoJavaBridge.JavaBridge.ConvertToValue(arg0));
		}
		private static global::MonoJavaBridge.MethodId _m25;
		public virtual long getStartTime()
		{
			return global::MonoJavaBridge.JavaBridge.CallLongMethod(this, global::android.view.animation.Animation.staticClass, "getStartTime", "()J", ref global::android.view.animation.Animation._m25);
		}
		private static global::MonoJavaBridge.MethodId _m26;
		public virtual long getDuration()
		{
			return global::MonoJavaBridge.JavaBridge.CallLongMethod(this, global::android.view.animation.Animation.staticClass, "getDuration", "()J", ref global::android.view.animation.Animation._m26);
		}
		private static global::MonoJavaBridge.MethodId _m27;
		public virtual long getStartOffset()
		{
			return global::MonoJavaBridge.JavaBridge.CallLongMethod(this, global::android.view.animation.Animation.staticClass, "getStartOffset", "()J", ref global::android.view.animation.Animation._m27);
		}
		private static global::MonoJavaBridge.MethodId _m28;
		public virtual int getRepeatMode()
		{
			return global::MonoJavaBridge.JavaBridge.CallIntMethod(this, global::android.view.animation.Animation.staticClass, "getRepeatMode", "()I", ref global::android.view.animation.Animation._m28);
		}
		private static global::MonoJavaBridge.MethodId _m29;
		public virtual bool getFillBefore()
		{
			return global::MonoJavaBridge.JavaBridge.CallBooleanMethod(this, global::android.view.animation.Animation.staticClass, "getFillBefore", "()Z", ref global::android.view.animation.Animation._m29);
		}
		private static global::MonoJavaBridge.MethodId _m30;
		public virtual bool getFillAfter()
		{
			return global::MonoJavaBridge.JavaBridge.CallBooleanMethod(this, global::android.view.animation.Animation.staticClass, "getFillAfter", "()Z", ref global::android.view.animation.Animation._m30);
		}
		private static global::MonoJavaBridge.MethodId _m31;
		public virtual int getZAdjustment()
		{
			return global::MonoJavaBridge.JavaBridge.CallIntMethod(this, global::android.view.animation.Animation.staticClass, "getZAdjustment", "()I", ref global::android.view.animation.Animation._m31);
		}
		private static global::MonoJavaBridge.MethodId _m32;
		public virtual bool getDetachWallpaper()
		{
			return global::MonoJavaBridge.JavaBridge.CallBooleanMethod(this, global::android.view.animation.Animation.staticClass, "getDetachWallpaper", "()Z", ref global::android.view.animation.Animation._m32);
		}
		private static global::MonoJavaBridge.MethodId _m33;
		public virtual bool willChangeTransformationMatrix()
		{
			return global::MonoJavaBridge.JavaBridge.CallBooleanMethod(this, global::android.view.animation.Animation.staticClass, "willChangeTransformationMatrix", "()Z", ref global::android.view.animation.Animation._m33);
		}
		private static global::MonoJavaBridge.MethodId _m34;
		public virtual bool willChangeBounds()
		{
			return global::MonoJavaBridge.JavaBridge.CallBooleanMethod(this, global::android.view.animation.Animation.staticClass, "willChangeBounds", "()Z", ref global::android.view.animation.Animation._m34);
		}
		private static global::MonoJavaBridge.MethodId _m35;
		public virtual void setAnimationListener(android.view.animation.Animation.AnimationListener arg0)
		{
			global::MonoJavaBridge.JavaBridge.CallVoidMethod(this, global::android.view.animation.Animation.staticClass, "setAnimationListener", "(Landroid/view/animation/Animation$AnimationListener;)V", ref global::android.view.animation.Animation._m35, global::MonoJavaBridge.JavaBridge.ConvertToValue(arg0));
		}
		private static global::MonoJavaBridge.MethodId _m36;
		protected virtual void ensureInterpolator()
		{
			global::MonoJavaBridge.JavaBridge.CallVoidMethod(this, global::android.view.animation.Animation.staticClass, "ensureInterpolator", "()V", ref global::android.view.animation.Animation._m36);
		}
		private static global::MonoJavaBridge.MethodId _m37;
		public virtual long computeDurationHint()
		{
			return global::MonoJavaBridge.JavaBridge.CallLongMethod(this, global::android.view.animation.Animation.staticClass, "computeDurationHint", "()J", ref global::android.view.animation.Animation._m37);
		}
		private static global::MonoJavaBridge.MethodId _m38;
		public virtual bool getTransformation(long arg0, android.view.animation.Transformation arg1)
		{
			return global::MonoJavaBridge.JavaBridge.CallBooleanMethod(this, global::android.view.animation.Animation.staticClass, "getTransformation", "(JLandroid/view/animation/Transformation;)Z", ref global::android.view.animation.Animation._m38, global::MonoJavaBridge.JavaBridge.ConvertToValue(arg0), global::MonoJavaBridge.JavaBridge.ConvertToValue(arg1));
		}
		private static global::MonoJavaBridge.MethodId _m39;
		public virtual bool hasStarted()
		{
			return global::MonoJavaBridge.JavaBridge.CallBooleanMethod(this, global::android.view.animation.Animation.staticClass, "hasStarted", "()Z", ref global::android.view.animation.Animation._m39);
		}
		private static global::MonoJavaBridge.MethodId _m40;
		public virtual bool hasEnded()
		{
			return global::MonoJavaBridge.JavaBridge.CallBooleanMethod(this, global::android.view.animation.Animation.staticClass, "hasEnded", "()Z", ref global::android.view.animation.Animation._m40);
		}
		private static global::MonoJavaBridge.MethodId _m41;
		protected virtual void applyTransformation(float arg0, android.view.animation.Transformation arg1)
		{
			global::MonoJavaBridge.JavaBridge.CallVoidMethod(this, global::android.view.animation.Animation.staticClass, "applyTransformation", "(FLandroid/view/animation/Transformation;)V", ref global::android.view.animation.Animation._m41, global::MonoJavaBridge.JavaBridge.ConvertToValue(arg0), global::MonoJavaBridge.JavaBridge.ConvertToValue(arg1));
		}
		private static global::MonoJavaBridge.MethodId _m42;
		public Animation(android.content.Context arg0, android.util.AttributeSet arg1) : base(global::MonoJavaBridge.JNIEnv.ThreadEnv)
		{
			global::MonoJavaBridge.JNIEnv @__env = global::MonoJavaBridge.JNIEnv.ThreadEnv;
			if (global::android.view.animation.Animation._m42.native == global::System.IntPtr.Zero)
				global::android.view.animation.Animation._m42 = @__env.GetMethodIDNoThrow(global::android.view.animation.Animation.staticClass, "<init>", "(Landroid/content/Context;Landroid/util/AttributeSet;)V");
			global::MonoJavaBridge.JniLocalHandle handle = @__env.NewObject(android.view.animation.Animation.staticClass, global::android.view.animation.Animation._m42, global::MonoJavaBridge.JavaBridge.ConvertToValue(arg0), global::MonoJavaBridge.JavaBridge.ConvertToValue(arg1));
			Init(@__env, handle);
		}
		private static global::MonoJavaBridge.MethodId _m43;
		public Animation() : base(global::MonoJavaBridge.JNIEnv.ThreadEnv)
		{
			global::MonoJavaBridge.JNIEnv @__env = global::MonoJavaBridge.JNIEnv.ThreadEnv;
			if (global::android.view.animation.Animation._m43.native == global::System.IntPtr.Zero)
				global::android.view.animation.Animation._m43 = @__env.GetMethodIDNoThrow(global::android.view.animation.Animation.staticClass, "<init>", "()V");
			global::MonoJavaBridge.JniLocalHandle handle = @__env.NewObject(android.view.animation.Animation.staticClass, global::android.view.animation.Animation._m43);
			Init(@__env, handle);
		}
		public static int INFINITE
		{
			get
			{
				return -1;
			}
		}
		public static int RESTART
		{
			get
			{
				return 1;
			}
		}
		public static int REVERSE
		{
			get
			{
				return 2;
			}
		}
		public static int START_ON_FIRST_FRAME
		{
			get
			{
				return -1;
			}
		}
		public static int ABSOLUTE
		{
			get
			{
				return 0;
			}
		}
		public static int RELATIVE_TO_SELF
		{
			get
			{
				return 1;
			}
		}
		public static int RELATIVE_TO_PARENT
		{
			get
			{
				return 2;
			}
		}
		public static int ZORDER_NORMAL
		{
			get
			{
				return 0;
			}
		}
		public static int ZORDER_TOP
		{
			get
			{
				return 1;
			}
		}
		public static int ZORDER_BOTTOM
		{
			get
			{
				return -1;
			}
		}
		static Animation()
		{
			global::MonoJavaBridge.JNIEnv @__env = global::MonoJavaBridge.JNIEnv.ThreadEnv;
			global::android.view.animation.Animation.staticClass = @__env.NewGlobalRef(@__env.FindClass("android/view/animation/Animation"));
		}
	}

	[global::MonoJavaBridge.JavaProxy(typeof(global::android.view.animation.Animation))]
	internal sealed partial class Animation_ : android.view.animation.Animation
	{
		internal new static global::MonoJavaBridge.JniGlobalHandle staticClass;
		internal Animation_(global::MonoJavaBridge.JNIEnv @__env) : base(@__env)
		{
		}
		static Animation_()
		{
			global::MonoJavaBridge.JNIEnv @__env = global::MonoJavaBridge.JNIEnv.ThreadEnv;
			global::android.view.animation.Animation_.staticClass = @__env.NewGlobalRef(@__env.FindClass("android/view/animation/Animation"));
		}
	}
}


text:
<?xml version="1.0" encoding="UTF-8"?>
<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
         xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/5.6/phpunit.xsd"
         bootstrap="vendor/autoload.php"
         beStrictAboutChangesToGlobalState="true"
         beStrictAboutOutputDuringTests="true"
         beStrictAboutResourceUsageDuringSmallTests="true"
         beStrictAboutTestsThatDoNotTestAnything="true"
         beStrictAboutCoversAnnotation="true"
         enforceTimeLimit="true"
         verbose="true"
         colors="true">
    <testsuites>
        <testsuite name="Unit tests">
            <directory>tests/Unit</directory>
        </testsuite>
        <testsuite name="Functional tests">
            <directory>tests/Functional</directory>
        </testsuite>
    </testsuites>
    <filter>
        <whitelist processUncoveredFilesFromWhitelist="true">
            <directory suffix=".php">src</directory>
        </whitelist>
    </filter>
</phpunit>