text:
accelerometerOptions
====================

Este argumento es opcional y sirve para personalizar la obtención del acelerómetro.

Opciones
--------

- __frequency:__ Cada cuantos milisegundos obtener la aceleración (`Acceleration`). _(Number)_ (Por defecto: 10000)

redpajama_set_name: RedPajamaGithub


text:
Added labels {{ labeled_data_count }}

    {#

        Progress

            <div class="progress-bar" role="progressbar" aria-valuenow="60" aria-valuemin="0" aria-valuemax="100" style="width: {{ progress*100|round }}%; {% if progress < 0.02 %}color: black;{% endif %}">
              {{ (progress*100)|round(2) }}%

    #}

      Free text
      {# Label	 #}
      {# Probability	 #}

    {% for data, events in event_log %}

        {{ data.free_text }}

            {% if problem.classification_type == 'multi-class' %}

                  {% set true_labels = data.matching_label_events(true) %}
                  {% for event in true_labels %}
                    ✓ {{ event.label.label }}
                  {% else %}
                    No categories
                  {% endfor %}

                  {% for probability in data.probabilities %}
                    {{ probability.label.label}}: {% if probability.probability is none %}n/a{% else %}{{ (probability.probability*100)|round(2) }} %{% endif %}
                  {% endfor %}

                    <button class="btn btn-default btn-small dropdown-toggle" type="button" id="dropdownMenu1" data-toggle="dropdown" aria-haspopup="true" aria-expanded="true">
                      Undo

                    </button>

                      {% for label in data.problem.labels|sort(attribute='order_index') %}

<form action="{{ url_for('multi_class_delete_label_event', problem_id=problem.id, data_id=data.id) }}" method="POST">
                        <input type="hidden" name="label_id" value="{{ label.id }}" />
                        <button type="submit">{{ label.label }}</button></form>

                      {% endfor %}

<form action="{{ url_for('multi_class_delete_label_event', problem_id=problem.id, data_id=data.id) }}" method="POST">
                      <input type="hidden" name="label_id" value="" />
                      <button type="submit">No category</button></form>

            {% else %}
              {% for event in events|sort(attribute='label.order_index') %}

                    {% if event.label_matches == True %}
                      ✓ {{ event.label.label }}
                    {% elif event.label_matches == False %}
                      × {{ event.label.label }}
                    {% else %}
                      ? {{ event.label.label }}
                    {% endif %}

                      {% for probability in event.data.probabilities %}
                        {% if probability.label == event.label %}
                          {% if probability.probability is none %}n/a{% else %}{{ (probability.probability*100)|round(2) }} %{% endif %}
                        {% endif %}
                      {% endfor %}

                      <button class="btn btn-default btn-small dropdown-toggle" type="button" id="dropdownMenu1" data-toggle="dropdown" aria-haspopup="true" aria-expanded="true">
                        Undo

                      </button>

<form action="{{ url_for('delete_label_event', id=event.id, problem_id=problem.id) }}" method="POST">
                          <input type="hidden" name="value" value="true" />
                          <button type="submit">Mark as true</button></form>

<form action="{{ url_for('delete_label_event', id=event.id, problem_id=problem.id) }}" method="POST">
                          <input type="hidden" name="value" value="false" />
                          <button type="submit">Mark as false</button>
                        </form>

<form action="{{ url_for('delete_label_event', id=event.id, problem_id=problem.id) }}" method="POST">
                          <input type="hidden" name="value" value="skip" />
                          <button type="submit">Mark as skip</button>
                        </form>

<form action="{{ url_for('delete_label_event', id=event.id, problem_id=problem.id) }}" method="POST">
                          <button type="submit">Remove label</button>
                        </form>

              {% endfor %}
            {% endif %}

    {% endfor %}


text:
package myTodoList.edit;

import java.awt.*;
import java.awt.Point;

import javax.swing.JColorChooser;
import javax.swing.JDialog;
import javax.swing.event.ChangeEvent;
import javax.swing.event.ChangeListener;

/**
 * Ñ¡ÔñÑÕÉ«µÄ¶Ô»°¿ò
 * @author Frank
 */
public class BackColor extends JDialog {
	private static final long serialVersionUID = 1L;
	// backColor´æ·ÅÐÂÑÕÉ«
	private Color backColor = myTodoList.bin.CalendarEntry.DEFAULT_BACKGROUND_COLOR; // ĬÈÏÑÕÉ«
	public boolean change = false;

	private JColorChooser colorChooser; // JColorChooserµÄʵÀý

	/**
	 * ĬÈϹ¹Ô캯Êý
	 */
	public BackColor() {
		setTitle("Ñ¡ÔñÑÕÉ«");
		setModalityType(ModalityType.APPLICATION_MODAL); // ÔËÐÐģʽ£¬¸¸´°¿Ú²»Äܵã»÷

		colorChooser = new JColorChooser();
		change = false;
		colorChooser.getSelectionModel().addChangeListener(new ChangeListener() { // ÐÞ¸ÄÑÕÉ«¼àÌý
					@Override
					public void stateChanged(ChangeEvent e) { //Ñ¡ÔñÁËÑÕÉ«£¬´¢´æÐÂÑÕÉ«
						backColor = colorChooser.getColor();
						change = true;
					}
				});

		colorChooser.setBounds(0, 0, 694, 450); // ÉèÖôóС

		add(colorChooser); // Ôö¼ÓÑ¡ÔñµÄÑÕÉ«

		setLayout(null);
		Point location = new Point(150, 150);  // ÉèÖóöÏÖµÄλÖÃ
		setLocation(location);
		setResizable(false);  // ²»Äܸıä´óС
		//setSize(700, 500);
		getContentPane().setPreferredSize(new Dimension(700, 500));
		pack();
	}

	/**
	 * »ñµÃ±³¾°ÑÕÉ«
	 * @return backColor
	 */
	public Color getBackColor() {
		return backColor;
	}

	/**
	 * ÉèÖñ³¾°ÑÕÉ«
	 * @param backColor ÒªÉèÖõÄÑÕÉ«
	 */
	public void setBackColor(Color backColor) {
		this.backColor = backColor;
	}

	public static void main(String args[]) {
		BackColor test = new BackColor();
		test.show();
	}
}


text:
//
// Copyright 2011-2012 Jeff Verkoeyen
//
// 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.
//

#import <Foundation/Foundation.h>
#import <UIKit/UIKit.h>

#import "NIInMemoryCache.h"
#import "NimbusCore.h"

@protocol NINetworkImageViewDelegate;
@protocol ASICacheDelegate;

// See the diskCacheLifetime property for more documentation related to this enumeration.
typedef enum {
  /**
   * Store images on disk in the session disk cache. Images stored with this lifetime will
   * be removed when the app starts again or when the session cache is explicitly cleared.
   */
  NINetworkImageViewDiskCacheLifetimeSession,

  /**
   * Store images on disk in the permanent disk cache. Images stored with this lifetime will
   * only be removed when the permanent cache is explicitly cleared.
   */
  NINetworkImageViewDiskCacheLifetimePermanent,
} NINetworkImageViewDiskCacheLifetime;

typedef enum {
  NINetworkImageViewScaleToFitLeavesExcessAndScaleToFillCropsExcess = 0x00,
  NINetworkImageViewScaleToFitCropsExcess    = 0x01,
  NINetworkImageViewScaleToFillLeavesExcess  = 0x02,
} NINetworkImageViewScaleOptions;

/**
 * A protocol defining the set of characteristics for an operation to be used with
 * NINetworkImageView.
 */
@protocol NINetworkImageOperation <NSObject>
@required
@property (readonly, copy) NSString* niCacheIdentifier;
@property (readwrite, assign) CGRect niImageCropRect;
@property (readwrite, assign) CGSize imageDisplaySize;
@property (readwrite, assign) NINetworkImageViewScaleOptions scaleOptions;
@property (readwrite, assign) CGInterpolationQuality interpolationQuality;
@property (readwrite, assign) UIViewContentMode niImageContentMode;
@property (readwrite, NI_STRONG) UIImage* imageCroppedAndSizedForDisplay;
@end

/**
 * A network-enabled image view that consumes minimal amounts of memory.
 *
 * Intelligently crops and resizes images for optimal memory use and uses threads to avoid
 * processing images on the UI thread.
 *
 *      @ingroup NimbusNetworkImage
 */
@interface NINetworkImageView : UIImageView <NIOperationDelegate>

#pragma mark Creating a Network Image View

- (id)initWithImage:(UIImage *)image;

#pragma mark Configurable Presentation Properties

@property (nonatomic, readwrite, NI_STRONG) UIImage* initialImage;     // Default: nil
@property (nonatomic, readwrite, assign) BOOL sizeForDisplay;       // Default: YES
@property (nonatomic, readwrite, assign) NINetworkImageViewScaleOptions scaleOptions; // Default: NINetworkImageViewScaleToFitLeavesExcessAndScaleToFillCropsExcess
@property (nonatomic, readwrite, assign) CGInterpolationQuality interpolationQuality; // Default: kCGInterpolationDefault

#pragma mark Configurable Properties

@property (nonatomic, readwrite, NI_STRONG) NIImageMemoryCache* imageMemoryCache;    // Default: [Nimbus imageMemoryCache]
@property (nonatomic, readwrite, NI_STRONG) NSOperationQueue* networkOperationQueue; // Default: [Nimbus networkOperationQueue]

@property (nonatomic, readwrite, assign) NSTimeInterval maxAge;     // Default: 0

#pragma mark Requesting a Network Image

- (void)setPathToNetworkImage:(NSString *)pathToNetworkImage;
- (void)setPathToNetworkImage:(NSString *)pathToNetworkImage forDisplaySize:(CGSize)displaySize;
- (void)setPathToNetworkImage:(NSString *)pathToNetworkImage forDisplaySize:(CGSize)displaySize contentMode:(UIViewContentMode)contentMode;
- (void)setPathToNetworkImage:(NSString *)pathToNetworkImage forDisplaySize:(CGSize)displaySize contentMode:(UIViewContentMode)contentMode cropRect:(CGRect)cropRect;
- (void)setPathToNetworkImage:(NSString *)pathToNetworkImage cropRect:(CGRect)cropRect;
- (void)setPathToNetworkImage:(NSString *)pathToNetworkImage contentMode:(UIViewContentMode)contentMode;

- (void)setNetworkImageOperation:(NIOperation<NINetworkImageOperation> *)operation forDisplaySize:(CGSize)displaySize contentMode:(UIViewContentMode)contentMode cropRect:(CGRect)cropRect;

#pragma mark State

@property (nonatomic, readonly, assign, getter=isLoading) BOOL loading;

#pragma mark Reusable View

- (void)prepareForReuse;

#pragma mark Delegation

@property (nonatomic, readwrite, NI_WEAK) id<NINetworkImageViewDelegate> delegate;

#pragma mark Subclassing

- (void)networkImageViewDidStartLoading;
- (void)networkImageViewDidLoadImage:(UIImage *)image;
- (void)networkImageViewDidFailWithError:(NSError *)error;

@end

/**
 * The image view delegate used to inform of state changes.
 *
 *      @ingroup NimbusNetworkImage
 */
@protocol NINetworkImageViewDelegate <NSObject>
@optional

/**
 * The image has begun an asynchronous download of the image.
 */
- (void)networkImageViewDidStartLoad:(NINetworkImageView *)imageView;

/**
 * The image has completed an asynchronous download of the image.
 */
- (void)networkImageView:(NINetworkImageView *)imageView didLoadImage:(UIImage *)image;

/**
 * The asynchronous download failed.
 */
- (void)networkImageView:(NINetworkImageView *)imageView didFailWithError:(NSError *)error;

/**
 * The progress of the download.
 */
- (void)networkImageView:(NINetworkImageView *)imageView readBytes:(long long)readBytes totalBytes:(long long)totalBytes;

@end

/**
 * Flags for modifying the way cropping is handled when scaling images to fit or fill.
 *
 *      @enum NINetworkImageViewScaleOptions
 *      @ingroup NimbusNetworkImage
 *
 * By default the network image view will behave in the following way for these content modes:
 *
 * - UIViewContentModeScaleAspectFit: Leaves unfilled space as transparent.
 * - UIViewContentModeScaleAspectFill: Crops any excess pixels.
 *
 * The resulting image size will exactly match the display size.
 *
 * You can modify this behavior using the following two flags which should be set using
 * binary operators.
 *
 * @htmlonly
 *

 *   NINetworkImageViewScaleToFitCropsRemainder
 *   The final image size will be shrunk to fit the image such that there is no transparency.
 *
 *   NINetworkImageViewScaleToFillLeavesRemainder
 *   The final image size will be grown to include the excess pixels.
 *

 * @endhtmlonly
 *
 *
Examples

 *
 * The following examples use this image:
 *
 * @image html clouds500x375.jpeg "Dimensions: 500x375"
 *
 *
 *
Default settings with UIViewContentModeScaleAspectFit

 *
 *
Result image (display size 100x100)

 *
 * @image html clouds100x100-fit.png "Fit image with default settings leaves transparent pixels. Size: 100x100."
 *
 *
Example code

 *
 * @code
 *  imageView.scaleOptions = NINetworkImageViewScaleToFitLeavesExcessAndScaleToFillCropsExcess;
 *
 *  [imageView setPathToNetworkImage: @"http://farm2.static.flickr.com/1165/644335254_4b8a712be5.jpg"
 *                    forDisplaySize: CGSizeMake(100, 100)
 *                       contentMode: UIViewContentModeScaleAspectFit];
 *
 *       source image size: 500x375  [aspect ratio: 1.3333]
 *            display size: 100x100  [aspect ratio: 1]
 *       result image size: 100x100  [aspect ratio: 1] (transparency on the left and right edges)
 *          image blt size: 100x75   [aspect ratio: 1.3333]
 * @endcode
 *
 *
 *
Default settings with UIViewContentModeScaleAspectFill

 *
 *
Result image (display size 100x100)

 *
 * @image html clouds100x100-fill.png "Fill image with default settings chops excess pixels. Size: 100x100."
 *
 *
Example code

 *
 * @code
 *  [imageView setPathToNetworkImage: @"http://farm2.static.flickr.com/1165/644335254_4b8a712be5.jpg"
 *                    forDisplaySize: CGSizeMake(100, 100)
 *                       contentMode: UIViewContentModeScaleAspectFill];
 *
 *       source image size: 500x375  [aspect ratio: 1.3333]
 *            display size: 100x100  [aspect ratio: 1]
 *       result image size: 100x100  [aspect ratio: 1]
 *          image blt size: 133x100  [aspect ratio: 1.3333]
 * @endcode
 *
 *
 *
NINetworkImageViewScaleToFitCropsExcess with UIViewContentModeScaleAspectFit

 *
 *
Result image (display size 100x100)

 *
 * @image html clouds100x100-fit-cropped.png "Fit image with NINetworkImageViewScaleToFitCropsExcess crops the transparency. Size: 100x75."
 *
 *
Example code

 *
 * @code
 *  // Turn on NINetworkImageViewScaleToFitCropsExcess
 *  imageView.scaleOptions |= NINetworkImageViewScaleToFitCropsExcess;
 *
 *  [imageView setPathToNetworkImage: @"http://farm2.static.flickr.com/1165/644335254_4b8a712be5.jpg"
 *                    forDisplaySize: CGSizeMake(100, 100)
 *                       contentMode: UIViewContentModeScaleAspectFill];
 *
 *       source image size: 500x375  [aspect ratio: 1.3333]
 *            display size: 100x100  [aspect ratio: 1]
 *       result image size: 100x75   [aspect ratio: 1.3333]
 *          image blt size: 100x75   [aspect ratio: 1.3333]
 * @endcode
 *
 *
 *
NINetworkImageViewScaleToFillLeavesExcess with UIViewContentModeScaleAspectFill

 *
 *
Result image (display size 100x100)

 *
 * @image html clouds100x100-fill-excess.png "Fill image with NINetworkImageViewScaleToFillLeavesExcess leaves the excess. Size: 133x100."
 *
 *
Example code

 *
 * @code
 *  // Turn on NINetworkImageViewScaleToFillLeavesExcess
 *  imageView.scaleOptions |= NINetworkImageViewScaleToFillLeavesExcess;
 *
 *  [imageView setPathToNetworkImage: @"http://farm2.static.flickr.com/1165/644335254_4b8a712be5.jpg"
 *                    forDisplaySize: CGSizeMake(100, 100)
 *                       contentMode: UIViewContentModeScaleAspectFill];
 *
 *       source image size: 500x375  [aspect ratio: 1.3333]
 *            display size: 100x100  [aspect ratio: 1]
 *       result image size: 133x100  [aspect ratio: 1.3333]
 *          image blt size: 133x100  [aspect ratio: 1.3333]
 * @endcode
 */

/**
 * @class NINetworkImageView
 *
 *
 *
Examples

 *
 *
Two basic methods for setting the display size of the network image

 *
 * @code
 *  UIImage* image; // some previously loaded image.
 *  NINetworkImageView* imageView = [[[NINetworkImageView alloc] initWithImage:image] autorelease];
 *
 *  // Method #1: Use the image's frame to determine the display size for the network image.
 *  imageView.frame = CGRectMake(0, 0, 100, 100);
 *  [imageView setPathToNetworkImage:@"http://farm2.static.flickr.com/1165/644335254_4b8a712be5.jpg"];
 *
 *  // Method #2: use the method setPathToNetworkImage:forDisplaySize:
 *  [imageView setPathToNetworkImage: @"http://farm2.static.flickr.com/1165/644335254_4b8a712be5.jpg"
 *                    forDisplaySize: CGSizeMake(100, 100)];
 * @endcode
 *
 * Code Breakdown
 *
 * @code
 *  NINetworkImageView* imageView = [[[NINetworkImageView alloc] initWithImage:image] autorelease];
 * @endcode
 *
 * Initializes the network image view with a preloaded image, usually a "default" image
 * to be displayed until the network image downloads.
 *
 * @code
 *  imageView.frame = CGRectMake(0, 0, 100, 100);
 *  [imageView setPathToNetworkImage:@"http://farm2.static.flickr.com/1165/644335254_4b8a712be5.jpg"];
 * @endcode
 *
 * We must take care to set the frame before requesting the network image, otherwise the
 * image's display size will be 0,0 and the network image won't be cropped or sized to fit.
 *
 * @code
 *  [imageView setPathToNetworkImage: @"http://farm2.static.flickr.com/1165/644335254_4b8a712be5.jpg"
 *                    forDisplaySize: CGSizeMake(100, 100)];
 * @endcode
 *
 * If you don't want to modify the frame of the image, you can alternatively specify
 * the display size as a parameter to the setPathToNetworkImage: method.
 *
 *
 *
Use a different contentMode for the network image.

 *
 * @code
 *  UIImage* image; // some previously loaded image.
 *  NINetworkImageView* imageView = [[[NINetworkImageView alloc] initWithImage:image] autorelease];
 *
 *  imageView.frame = CGRectMake(0, 0, 100, 100);
 *  imageView.contentMode = UIViewContentModeCenter; // Centers the image in the frame.
 *  [imageView setPathToNetworkImage: @"http://farm2.static.flickr.com/1165/644335254_4b8a712be5.jpg"
 *                       contentMode: UIViewContentModeScaleAspectFill];
 * @endcode
 *
 * Code Breakdown
 *
 * @code
 *  [imageView setPathToNetworkImage: @"http://farm2.static.flickr.com/1165/644335254_4b8a712be5.jpg"
 *                       contentMode: UIViewContentModeScaleAspectFill];
 * @endcode
 *
 * This means: after the image is downloaded, crop and resize the image with an aspect
 * fill content mode.
 * The image returned from the thread will be cropped and sized to fit the imageView perfectly
 * at the given 100x100 dimensions.
 * Because imageView has a contentMode of UIViewContentModeCenter, if we were to make the
 * image view larger the downloaded image would stay in the center of the image view and
 * leave empty space on all sides.
 */

/** @name Creating a Network Image View */

/**
 * Designated initializer.
 *
 *      @param image  This will be the initialImage.
 *      @fn NINetworkImageView::initWithImage:
 */

/**
 * @name Configurable Presentation Properties
 */

/**
 * The image being displayed while the network image is being fetched.
 *
 * This is the same image passed into initWithImage: immediately after initialization. This
 * is used when preparing this view for reuse. Changing the initial image after creating
 * the object will only display the new image if the currently displayed image is
 * is the initial image or nil.
 *
 * The initial image is drawn only using the view's contentMode. Cropping and resizing are only
 * performed on the image fetched from the network.
 *
 *      @fn NINetworkImageView::initialImage
 */

/**
 * A flag for enabling the resizing of images for display.
 *
 * When enabled, the downloaded image will be resized to fit the dimensions of the image view
 * using the image view's content mode.
 *
 * When disabled, the full image is drawn as-is. This is generally much less efficient when
 * working with large photos and will also increase the memory footprint.
 *
 * If your images are pre-cropped and sized then this isn't necessary, but the network image
 * loader is smart enough to realize this so it's in your best interest to leave this on.
 *
 * By default this is YES.
 *
 *      @fn NINetworkImageView::sizeForDisplay
 */

/**
 * Options for modifying the way images are cropped when scaling.
 *
 * By default this is NINetworkImageViewScaleToFitLeavesExcessAndScaleToFillCropsExcess.
 *
 *      @see NINetworkImageViewScaleOptions
 *      @fn NINetworkImageView::scaleOptions
 */

/**
 * The interpolation quality to use when resizing the image.
 *
 * The default value is kCGInterpolationDefault.
 *
 *      @fn NINetworkImageView::interpolationQuality
 */

/** @name Configurable Properties */

/**
 * The image memory cache used by this image view to store the image in memory.
 *
 * It may be useful to specify your own image memory cache if you have a unique memory requirement
 * and do not want the image being placed in the global memory cache, potentially pushing out
 * other images.
 *
 * By default this is [Nimbus imageMemoryCache].
 *
 *      @attention Setting this to nil will disable the memory cache. This will force the
 *                 image view to load the image from the disk cache or network, depending on
 *                 what is available.
 *
 *      @remark If you replace Nimbus' global image memory cache with a new image cache after
 *              creating this image view, this image view will still use the old image cache.
 *
 *      @see Nimbus::globalImageMemoryCache
 *      @see Nimbus::setGlobalImageMemoryCache:
 *      @fn NINetworkImageView::imageMemoryCache
 */

/**
 * The image disk cache used by this image view to store the image on disk.
 *
 * After the image has finished downloading we store it in a disk cache to avoid hitting the
 * network again if we want to load the image later on.
 *
 * By default this is [ASIDownloadCache sharedCache].
 *
 *      @attention Setting this to nil will disable the disk cache. Images downloaded from the
 *                 network will be stored in the memory cache, if available.
 *
 *      @fn NINetworkImageView::imageMemoryCache
 */

/**
 * The network operation queue used by this image view to load the image from network and disk.
 *
 * By default this is [Nimbus networkOperationQueue].
 *
 *      @attention This property must be non-nil. If you attempt to set it to nil, a debug
 *                 assertion will fire and Nimbus' global network operation queue will be set.
 *
 *      @see Nimbus::globalNetworkOperationQueue
 *      @see Nimbus::setGlobalNetworkOperationQueue:
 *
 *      @fn NINetworkImageView::networkOperationQueue
 */

/**
 * The maximum amount of time that an image will stay in memory after the request completes.
 *
 * If this value is non-zero then the respone header's expiration date information will be
 * ignored in favor of using this value.
 *
 * If this value is zero then the response header's max-age value will be used if it exists,
 * otherwise it will use the Expires value if it exists.
 *
 * A negative value will cause this image to NOT be stored in the memory cache.
 *
 * By default this is 0.
 *
 *      @fn NINetworkImageView::maxAge
 */

/**
 * The lifetime for an image stored in the disk cache.
 *
 * You can choose to keep the image around forever (until explicitly deleted) or for the life
 * of an applicaton's session (when the app starts the next time the cache will be cleared).
 *
 * Example: Clearing the session cache.
 * @code
 *  [imageDiskCache clearCachedResponsesForStoragePolicy:ASICacheForSessionDurationCacheStoragePolicy];
 * @endcode
 *
 * Example: Clearing the permanent cache.
 * @code
 *  [imageDiskCache clearCachedResponsesForStoragePolicy:ASICachePermanentlyCacheStoragePolicy];
 * @endcode
 *
 * By default this is NINetworkImageViewDiskCacheLifetimePermanent.
 *
 *      @fn NINetworkImageView::diskCacheLifetime
 */

/**
 * The last path assigned to the image view.
 *
 * This property may be used to avoid setting the network path repeatedly and clobbering
 * previous requests.
 *
 *      @note It is debatable whether this has any practical use and is being considered
 *            for removal.
 *
 *      @fn NINetworkImageView::lastPathToNetworkImage
 */

/** @name State */

/**
 * Whether there is an active request for this image view.
 *
 * If there is currently an image being fetched then this will be YES.
 *
 *      @fn NINetworkImageView::isLoading
 */

/** @name Delegation */

/**
 * Delegate for state change notifications.
 *
 *      @fn NINetworkImageView::delegate
 */

/** @name Reusable View */

/**
 * Kill any network requests and replace the displayed image with the initial image.
 *
 * Prepares this view for reuse by cancelling any existing requests and displaying the
 * initial image again.
 *
 *      @fn NINetworkImageView::prepareForReuse
 */

/**
 * @name Requesting a Network Image
 */

/**
 * Load an image from the network using the current frame as the display size.
 *
 * Loads the image from the memory cache if possible, otherwise fires off a network request
 * with this object's network image information.
 *
 * Uses self.contentMode to crop and resize the image.
 *
 * The image's current frame will be used as the display size for the image.
 *
 *      @param pathToNetworkImage  The network path to the image to be displayed.
 *      @fn NINetworkImageView::setPathToNetworkImage:
 */

/**
 * Load an image from the network with a specific display size.
 *
 * Loads the image from the memory cache if possible, otherwise fires off a network request
 * with this object's network image information.
 *
 * Uses self.contentMode to crop and resize the image.
 *
 *      @param pathToNetworkImage  The network path to the image to be displayed.
 *      @param displaySize         Used instead of the image's frame to determine the display size.
 *      @fn NINetworkImageView::setPathToNetworkImage:forDisplaySize:
 */

/**
 * Load an image from the network with a specific display size.
 *
 * Loads the image from the memory cache if possible, otherwise fires off a network request
 * with this object's network image information.
 *
 *      @param pathToNetworkImage  The network path to the image to be displayed.
 *      @param displaySize         Used instead of the image's frame to determine the display size.
 *      @param contentMode         The content mode used to crop and resize the image.
 *      @fn NINetworkImageView::setPathToNetworkImage:forDisplaySize:contentMode:
 */

/**
 * Load an image from the network with a crop rect and the current frame as the display size.
 *
 * Loads the image from the memory cache if possible, otherwise fires off a network request
 * with this object's network image information.
 *
 * Uses self.contentMode to crop and resize the image.
 *
 * The image's current frame will be used as the display size for the image.
 *
 *      @param pathToNetworkImage  The network path to the image to be displayed.
 *      @param cropRect            x/y, width/height are in percent coordinates.
 *                                 Valid range is [0..1] for all values.
 *      @fn NINetworkImageView::setPathToNetworkImage:cropRect:
 */

/**
 * Load an image from the network with a specific display size.
 *
 * Loads the image from the memory cache if possible, otherwise fires off a network request
 * with this object's network image information.
 *
 * The image's current frame will be used as the display size for the image.
 *
 *      @param pathToNetworkImage  The network path to the image to be displayed.
 *      @param contentMode         The content mode used to crop and resize the image.
 *      @fn NINetworkImageView::setPathToNetworkImage:contentMode:
 */

/**
 * Load an image from the network with a specific display size and crop rect.
 *
 * Loads the image from the memory cache if possible, otherwise fires off a network request
 * with this object's network image information.
 *
 *      @param pathToNetworkImage  The network path to the image to be displayed.
 *      @param cropRect            x/y, width/height are in percent coordinates.
 *                                 Valid range is [0..1] for all values.
 *      @param displaySize         Used instead of the image's frame to determine the display size.
 *      @param contentMode         The content mode used to crop and resize the image.
 *      @fn NINetworkImageView::setPathToNetworkImage:forDisplaySize:contentMode:cropRect:
 */

/**
 * @name Subclassing
 *
 * The following methods are provided to aid in subclassing and are not meant to be
 * used externally.
 */

/**
 * A network request has begun.
 *
 *      @fn NINetworkImageView::networkImageViewDidStartLoading
 */

/**
 * The image has been loaded, either from the network or in-memory.
 *
 *      @fn NINetworkImageView::networkImageViewDidLoadImage:
 */

/**
 * A network request failed to load.
 *
 *      @fn NINetworkImageView::networkImageViewDidFailWithError:
 */


text:
<?xml version="1.0" encoding="UTF-8"?>

<rootTag>
  <Award>
    <AwardTitle>EAPSI: Collaborative Research for Development of MEAM Potentials for Nanostructured Metal Alloys</AwardTitle>
    <AwardEffectiveDate>06/01/2008</AwardEffectiveDate>
    <AwardExpirationDate>05/31/2009</AwardExpirationDate>
    <AwardAmount>5637</AwardAmount>
    <AwardInstrument>
      <Value>Fellowship</Value>
    </AwardInstrument>
    <Organization>
      01090000
      <Directorate>
        <LongName>Office Of The Director</LongName>
      </Directorate>
      <Division>
        <LongName>Office Of Internatl Science &Engineering</LongName>
      </Division>
    </Organization>
    <ProgramOfficer>
      <SignBlockName>Anne L. Emig</SignBlockName>
    </ProgramOfficer>
    <AbstractNarration>2008 EAPSI Fellowship<br/>This award supports a U.S. graduate student to conduct an individual research project at one of seven locations in East Asia and the Pacific region (Australia, China, Japan, Korea, New Zealand, Singapore, Taiwan). The research project will provide the student with a first-hand mentored research experience, an introduction to science and science policy infrastructure, and an orientation to the culture and language of the location. The primary goals of the East Asia Summer Institute program are to expose students to science and engineering in the context of a research laboratory, and to initiate early-career professional relationships that will foster research collaborations with foreign counterparts in the future.</AbstractNarration>
    <MinAmdLetterDate>05/12/2008</MinAmdLetterDate>
    <MaxAmdLetterDate>05/12/2008</MaxAmdLetterDate>
    <ARRAAmount/>
    <AwardID>0813130</AwardID>
    <Investigator>
      <FirstName>John</FirstName>
      <LastName>Stephens</LastName>
      <EmailAddress/>
      <StartDate>05/12/2008</StartDate>
      <EndDate/>
      <RoleCode>Principal Investigator</RoleCode>
    </Investigator>
    <Institution>
      <Name>Stephens John A</Name>
      <CityName>Austin</CityName>
      <ZipCode>787597318</ZipCode>
      <PhoneNumber/>
      <StreetAddress/>
      <CountryName>United States</CountryName>
      <StateName>Texas</StateName>
      <StateCode>TX</StateCode>
    </Institution>
    <FoaInformation>
      0000099
      <Name>Other Applications NEC</Name>
    </FoaInformation>
  </Award>
</rootTag>


text:
<?php

namespace Zimbra\Mail\Struct;

use Zimbra\Enum\Importance;

/**
 * ImportanceTest struct class
 *
 * @package    Zimbra
 * @subpackage Mail
 * @category   Struct
 * @author     Nguyen Van Nguyen - nguyennv1981@gmail.com
 * @copyright  Copyright © 2013 by Nguyen Van Nguyen.
 */
class ImportanceTest extends FilterTest
{
    /**
     * Constructor method for ImportanceTest
     * @param int $index Index - specifies a guaranteed order for the test elements
     * @param string $imp Importance
     * @param bool $negative Specifies a "not" condition for the test
     * @return self
     */
    public function __construct(
        $index, Importance $imp, $negative = null
    )
    {
        parent::__construct($index, $negative);
        $this->property('imp', $imp);
    }

    /**
     * Gets or sets imp
     *
     * @param  Importance $imp
     * @return Importance|self
     */
    public function imp(Importance $imp = null)
    {
        if(null === $imp)
        {
            return $this->property('imp');
        }
        return $this->property('imp', $imp);
    }

    /**
     * Returns the array representation of this class
     *
     * @return array
     */
    public function toArray($name = 'importanceTest')
    {
        return parent::toArray($name);
    }

    /**
     * Method returning the xml representative this class
     *
     * @return SimpleXML
     */
    public function toXml($name = 'importanceTest')
    {
        return parent::toXml($name);
    }
}


text:
<form class="navbar-form navbar-right" action="/welcome/logout" method="post">

        <input type="hidden" name="currenturl" value="{current_url}">

    <button type="submit" class="btn btn-default">Sign Out</button>
</form>


text:
'use strict';

Object.defineProperty(exports, '__esModule', {
  value: true
});
var Apiize = require('./apiize');

exports['default'] = Apiize;
module.exports = exports['default'];


text:
This is a Puppet module for mcollective_client

Made by Hailu Ju, mail:<linuxcpp.org@gmail.com>

Official site: http://www.juhailu.com

Official git repository: http://github.com/bloodhero/puppet-mcollective_client

Released under the terms of Apache 2 License.

This module requires functions provided by the puppetlabs/stdlib version >= 3.2.1

See mainifests/init.pp for details.


text:
(function()
{
    'use strict';

    angular
        .module('lumx.switch')
        .directive('lxSwitch', lxSwitch)
        .directive('lxSwitchLabel', lxSwitchLabel)
        .directive('lxSwitchHelp', lxSwitchHelp);

    function lxSwitch()
    {
        return {
            restrict: 'E',
            templateUrl: 'switch.html',
            scope:
            {
                ngModel: '=',
                name: '@?',
                ngTrueValue: '@?',
                ngFalseValue: '@?',
                ngChange: '&?',
                ngDisabled: '=?',
                lxColor: '@?'
            },
            controller: LxSwitchController,
            controllerAs: 'lxSwitch',
            bindToController: true,
            transclude: true,
            replace: true
        };
    }

    LxSwitchController.$inject = ['$scope', '$timeout', 'LxUtils'];

    function LxSwitchController($scope, $timeout, LxUtils)
    {
        var lxSwitch = this;
        var switchId;
        var switchHasChildren;
        var timer;

        lxSwitch.getSwitchId = getSwitchId;
        lxSwitch.getSwitchHasChildren = getSwitchHasChildren;
        lxSwitch.setSwitchId = setSwitchId;
        lxSwitch.setSwitchHasChildren = setSwitchHasChildren;
        lxSwitch.triggerNgChange = triggerNgChange;

        $scope.$on('$destroy', function()
        {
            $timeout.cancel(timer);
        });

        init();

        ////////////

        function getSwitchId()
        {
            return switchId;
        }

        function getSwitchHasChildren()
        {
            return switchHasChildren;
        }

        function init()
        {
            setSwitchId(LxUtils.generateUUID());
            setSwitchHasChildren(false);

            lxSwitch.ngTrueValue = angular.isUndefined(lxSwitch.ngTrueValue) ? true : lxSwitch.ngTrueValue;
            lxSwitch.ngFalseValue = angular.isUndefined(lxSwitch.ngFalseValue) ? false : lxSwitch.ngFalseValue;
            lxSwitch.lxColor = angular.isUndefined(lxSwitch.lxColor) ? 'accent' : lxSwitch.lxColor;
        }

        function setSwitchId(_switchId)
        {
            switchId = _switchId;
        }

        function setSwitchHasChildren(_switchHasChildren)
        {
            switchHasChildren = _switchHasChildren;
        }

        function triggerNgChange()
        {
            timer = $timeout(lxSwitch.ngChange);
        }
    }

    function lxSwitchLabel()
    {
        return {
            restrict: 'AE',
            require: ['^lxSwitch', '^lxSwitchLabel'],
            templateUrl: 'switch-label.html',
            link: link,
            controller: LxSwitchLabelController,
            controllerAs: 'lxSwitchLabel',
            bindToController: true,
            transclude: true,
            replace: true
        };

        function link(scope, element, attrs, ctrls)
        {
            ctrls[0].setSwitchHasChildren(true);
            ctrls[1].setSwitchId(ctrls[0].getSwitchId());
        }
    }

    function LxSwitchLabelController()
    {
        var lxSwitchLabel = this;
        var switchId;

        lxSwitchLabel.getSwitchId = getSwitchId;
        lxSwitchLabel.setSwitchId = setSwitchId;

        ////////////

        function getSwitchId()
        {
            return switchId;
        }

        function setSwitchId(_switchId)
        {
            switchId = _switchId;
        }
    }

    function lxSwitchHelp()
    {
        return {
            restrict: 'AE',
            require: '^lxSwitch',
            templateUrl: 'switch-help.html',
            transclude: true,
            replace: true
        };
    }
})();


text:
const debug = require('ghost-ignition').debug('api:v2:utils:serializers:output:integrations');

module.exports = {
    browse({data, meta}, apiConfig, frame) {
        debug('browse');

        frame.response = {
            integrations: data.map(model => model.toJSON(frame.options)),
            meta
        };
    },
    read(model, apiConfig, frame) {
        debug('read');

        frame.response = {
            integrations: [model.toJSON(frame.options)]
        };
    },
    add(model, apiConfig, frame) {
        debug('add');

        frame.response = {
            integrations: [model.toJSON(frame.options)]
        };
    },
    edit(model, apiConfig, frame) {
        debug('edit');

        frame.response = {
            integrations: [model.toJSON(frame.options)]
        };
    }
};