text:
const CGFloat ANAdvancedNavigationControllerDefaultLeftViewControllerWidth  = 291.0f;
const CGFloat ANAdvancedNavigationControllerDefaultViewControllerWidth      = 475.0f;
const CGFloat ANAdvancedNavigationControllerDefaultLeftPanningOffset        = 75.0f;

const CGFloat ANAdvancedNavigationControllerDefaultAnimationDuration        = 0.35f;
const CGFloat ANAdvancedNavigationControllerDefaultDraggingDistance         = 473.0f;

@implementation ANAdvancedNavigationController

@synthesize backgroundView=_backgroundView;
@synthesize leftViewController=_leftViewController, viewControllers=_viewControllers, removeRectangleIndicatorView=_removeRectangleIndicatorView;
@synthesize delegate=_delegate;
@synthesize draggingStartDate=_draggingStartDate;

#pragma mark - setters and getters

- (void)setLeftViewController:(UIViewController *)leftViewController {
    if (_leftViewController != leftViewController) {
        [self _setLeftViewController:leftViewController];
    }
}

- (void)setBackgroundView:(UIView *)backgroundView {
    if (backgroundView != _backgroundView) {
        [_backgroundView removeFromSuperview];
        _backgroundView = backgroundView;
        [self updateBackgroundView];
    }
}

- (NSArray *)rightViewControllers {
    return [_viewControllers copy];
}

- (BOOL)automaticallyForwardAppearanceAndRotationMethodsToChildViewControllers {
    return NO;
}

- (NSUInteger)indexOfFrontViewController {
    return _indexOfFrontViewController;
}

- (void)setIndexOfFrontViewController:(NSUInteger)indexOfFrontViewController {
    [self _setIndexOfFrontViewController:indexOfFrontViewController];
}

#pragma mark - initialization

- (id)init {
    if ((self = [super init])) {
        if (UI_USER_INTERFACE_IDIOM() != UIUserInterfaceIdiomPad) {
            [NSException raise:NSInternalInconsistencyException format:@"ANAdvancedNavigationController is only supposed to work on iPad"];
        }
        self.viewControllers = [NSMutableArray array];
    }
    return self;
}

- (id)initWithLeftViewController:(UIViewController *)leftViewController {
    if ((self = [self init])) {
        self.leftViewController = leftViewController;
    }
    return self;
}

- (id)initWithLeftViewController:(UIViewController *)leftViewController rightViewControllers:(NSArray *)rightViewControllers {
    if (self = [self initWithLeftViewController:leftViewController]) {
        [rightViewControllers enumerateObjectsUsingBlock:^(__strong id obj, NSUInteger idx, BOOL *stop) {
            [self _insertRightViewControllerInDataModel:obj];
        }];
    }
    return self;
}

#pragma mark - Pushing and Poping

- (void)popViewController:(UIViewController *)viewController animated:(BOOL)animated {
    if (![self.viewControllers containsObject:viewController]) {
        NSLog(@"viewController (%@) is not part of the viewController Hierarchy", viewController);
        return;
    }

    NSInteger index = [self.viewControllers indexOfObject:viewController]-1;

    if (index >= 0) {
        viewController = [self.viewControllers objectAtIndex:index];
        [self _popViewControllersToViewController:viewController animated:animated];
    }
}

- (void)popViewControllersToViewController:(UIViewController *)viewController animated:(BOOL)animated {
    [self _popViewControllersToViewController:viewController animated:animated];
}

- (void)pushViewController:(UIViewController *)viewController afterViewController:(UIViewController *)afterViewController animated:(BOOL)animated {
    [self _pushViewController:viewController afterViewController:afterViewController animated:animated];
}

#pragma mark - View lifecycle

- (void)loadView {
    [super loadView];

    CGFloat removeHeight = 75.0f;
    self.removeRectangleIndicatorView = [[ANRemoveRectangleIndicatorView alloc] initWithFrame:CGRectMake(ANAdvancedNavigationControllerDefaultLeftViewControllerWidth + 5.0f, CGRectGetHeight(self.view.bounds)/2.0f-removeHeight, 175.0f, removeHeight*2.0f)];
    self.removeRectangleIndicatorView.autoresizingMask = UIViewAutoresizingFlexibleTopMargin | UIViewAutoresizingFlexibleBottomMargin;
    [self.view insertSubview:self.removeRectangleIndicatorView atIndex:0];
}

- (void)viewDidLoad {
    [super viewDidLoad];

    self.view.backgroundColor = [UIColor darkGrayColor];
    [self updateBackgroundView];
    [self _insertLeftViewControllerView];
    [self _prepareViewForPanning];
    [self _insertRightViewControllerViews];
}

- (void)viewDidUnload {
    [super viewDidUnload];
    _removeRectangleIndicatorView = nil;
    _draggingStartDate = nil;
}

- (void)viewWillDisappear:(BOOL)animated
{
    [super viewWillDisappear:animated];

    for (UIViewController *viewController in self.childViewControllers) {
        [viewController viewWillDisappear:animated];
    }
}

- (void)viewDidDisappear:(BOOL)animated
{
    [super viewDidDisappear:animated];

    for (UIViewController *viewController in self.childViewControllers) {
        [viewController viewDidDisappear:animated];
    }
}

- (void)viewWillAppear:(BOOL)animated
{
    [super viewWillAppear:animated];

    static BOOL isFirstViewWillAppear = YES;

    // we dont need to inform childViewControllers in our first viewWillAppear because this is handled in viewDidLoad.
    if (!isFirstViewWillAppear) {
        for (UIViewController *viewController in self.childViewControllers) {
            [viewController viewWillAppear:animated];
        }
    }

    isFirstViewWillAppear = NO;
}

- (void)viewDidAppear:(BOOL)animated
{
    [super viewDidAppear:animated];

    static BOOL isFirstViewDidAppear = YES;

    // we dont need to inform childViewControllers in our first viewDidAppear because this is handled in viewDidLoad.
    if (!isFirstViewDidAppear) {
        for (UIViewController *viewController in self.childViewControllers) {
            [viewController viewDidAppear:animated];
        }
    }

    isFirstViewDidAppear = NO;
}

#pragma mark - rotation

- (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation {
    // Return YES for supported orientations
    for (UIViewController *viewController in self.childViewControllers) {
        if (![viewController shouldAutorotateToInterfaceOrientation:interfaceOrientation]) {
            return NO;
        }
    }
	return YES;
}

- (void)willAnimateRotationToInterfaceOrientation:(UIInterfaceOrientation)toInterfaceOrientation duration:(NSTimeInterval)duration {
    [super willAnimateRotationToInterfaceOrientation:toInterfaceOrientation duration:duration];

    [self _willAnimateRotationToInterfaceOrientation:toInterfaceOrientation duration:duration];
}

- (void)willRotateToInterfaceOrientation:(UIInterfaceOrientation)toInterfaceOrientation duration:(NSTimeInterval)duration {
    [super willRotateToInterfaceOrientation:toInterfaceOrientation duration:duration];

    for (UIViewController *viewController in self.childViewControllers) {
        [viewController willRotateToInterfaceOrientation:toInterfaceOrientation duration:duration];
    }
}

- (void)didRotateFromInterfaceOrientation:(UIInterfaceOrientation)fromInterfaceOrientation {
    for (UIViewController *viewController in self.childViewControllers) {
        [viewController didRotateFromInterfaceOrientation:fromInterfaceOrientation];
    }
}

#pragma mark - private implementation

- (void)updateBackgroundView {
    if (self.isViewLoaded) {
        _backgroundView.frame = self.view.bounds;
        _backgroundView.autoresizingMask = UIViewAutoresizingFlexibleWidth | UIViewAutoresizingFlexibleHeight;
        [self.view insertSubview:_backgroundView atIndex:0];
    }
}

@end

@implementation UIViewController (ANAdvancedNavigationController)

- (ANAdvancedNavigationController *)advancedNavigationController {
    UIViewController *viewController = self.parentViewController;
    while (viewController != nil) {
        if ([viewController isKindOfClass:[ANAdvancedNavigationController class] ]) {
            return (ANAdvancedNavigationController *)viewController;
        } else {
            viewController = viewController.parentViewController;
        }
    }
    return nil;
}

@end


text:
sammy.get(/^#\/(~java-properties)$/, function(context) {
	var content_element = $('#content');

	content_element.html('

');

	$.ajax({
		url : app.config.solr_path + '/admin/info/properties?wt=json',
		dataType : 'json',
		context : $('#java-properties', content_element),
		beforeSend : function(xhr, settings) {
			this.html('
Loading ...
');
		},
		success : function(response, text_status, xhr) {
			var system_properties = response['system.properties'];
			var properties_data = {};
			var properties_content = [];
			var properties_order = [];

			var workaround = xhr.responseText.match(/"(line\.separator)"\s*:\s*"(.+?)"/);
			if (workaround && workaround[2]) {
				system_properties[workaround[1]] = workaround[2];
			}

			for ( var key in system_properties) {
				var displayed_key = key.replace(/\./g, '.');
				var displayed_value = [ system_properties[key] ];
				var item_class = 'clearfix';

				if (-1 !== key.indexOf('.path') || -1 !== key.indexOf('.dirs')) {
					displayed_value = system_properties[key].split(system_properties['path.separator']);
					if (1 < displayed_value.length) {
						item_class += ' multi';
					}
				}

				var item_content = '

' + "\n" + '
' + displayed_key.esc() + '
' + "\n";

				for ( var i in displayed_value) {
					item_content += '
' + displayed_value[i].esc() + '
' + "\n";
				}

				item_content += '

';

				properties_data[key] = item_content;
				properties_order.push(key);
			}

			properties_order.sort();
			for ( var i in properties_order) {
				properties_content.push(properties_data[properties_order[i]]);
			}

			this.html('
' + properties_content.join("\n") + '
');

			$('li:odd', this).addClass('odd');

			$('.multi dd:odd', this).addClass('odd');
		},
		error : function(xhr, text_status, error_thrown) {},
		complete : function(xhr, text_status) {}
	});
});

redpajama_set_name: RedPajamaGithub


text:
/* @flow */

import isValid from './isValid'

export default {
  isValid,
}


text:
from django.contrib import admin

from .forms import LiveSettingsForm
from .models import LiveSetting

class LiveSettingsAdmin(admin.ModelAdmin):
    list_display = ('key', 'key_type', 'value')
    form = LiveSettingsForm

admin.site.register(LiveSetting, LiveSettingsAdmin)


text:
package org.apache.kylin.source.hive;

import org.apache.kylin.engine.mr.IMRInput;
import org.apache.kylin.metadata.model.TableDesc;
import org.apache.kylin.source.ISource;
import org.apache.kylin.source.ReadableTable;

//used by reflection
public class HiveSource implements ISource {

    @SuppressWarnings("unchecked")
    @Override
    public <I> I adaptToBuildEngine(Class<I> engineInterface) {
        if (engineInterface == IMRInput.class) {
            return (I) new HiveMRInput();
        } else {
            throw new RuntimeException("Cannot adapt to " + engineInterface);
        }
    }

    @Override
    public ReadableTable createReadableTable(TableDesc tableDesc) {
        return new HiveTable(tableDesc);
    }

}


text:
import { push } from 'react-router-redux'

import { SET_REPORT_TYPE } from '../action_types.js'
import { nearMiss, positiveIntervention } from '../../constants.js'

export const selectNearMiss = () => (dispatch, getState) => {
  const site = getState().report.get('site')
  dispatch({
    type: SET_REPORT_TYPE,
    reportType: nearMiss
  })
  dispatch(push(`/report/${site}/near-miss`))
}

export const selectPositiveIntervention = () => (dispatch, getState) => {
  const site = getState().report.get('site')
  dispatch({
    type: SET_REPORT_TYPE,
    reportType: positiveIntervention
  })
  dispatch(push(`/report/${site}/positive-intervention`))
}

export const redirectUser = () => dispatch => {
  dispatch(push('/site'))
}


text:
using UnityEngine;
using System.Collections;
using System.Linq;
using System.IO;
using System.Collections.Generic;
using ME;
using UnityEditor.UI.Windows.Plugins.Flow;
using UnityEngine.UI.Windows.Plugins.Heatmap.Core;
using UnityEngine.UI.Windows.Plugins.Flow;

namespace UnityEditor.UI.Windows.Plugins.Heatmap {

	public class Heatmap : FlowAddon {

		private static HeatmapSettings settings;

		private Editor editor;
		private Texture noDataTexture;

		public override string GetName() {

			return "Heatmap (pre-alpha)";

		}

		public override void OnFlowSettingsGUI() {

			if (Heatmap.settings == null) {

				Heatmap.settings = this.GetSettingsFile();
				//if (Heatmap.settings == null) Heatmap.settings = ME.EditorUtilities.GetAssetsOfType<HeatmapSettings>(useCache: false).FirstOrDefault();

			}

			if (this.noDataTexture == null) this.noDataTexture = Resources.Load("UI.Windows/Heatmap/NoData") as Texture;

			var settings = Heatmap.settings;
			if (settings == null) {

				EditorGUILayout.HelpBox(string.Format(FlowAddon.MODULE_HAS_ERRORS, "Settings file not found (HeatmapSettings)."), MessageType.Error);

			} else {

				GUILayout.Label(FlowAddon.MODULE_INSTALLED, EditorStyles.centeredGreyMiniLabel);

				if (this.editor == null) this.editor = Editor.CreateEditor(settings);
				if (this.editor != null) {

					this.editor.OnInspectorGUI();

				}

			}

		}

		public override void OnFlowWindowLayoutGUI(Rect rect, UnityEngine.UI.Windows.Plugins.Flow.FlowWindow window) {

			if (Heatmap.settings == null) Heatmap.settings = this.GetSettingsFile();

			var settings = Heatmap.settings;
			if (settings != null) {

				if (settings.show == true) {

					var data = settings.data.Get(window);
					data.UpdateMap();

					if (data != null && data.texture != null && data.status == HeatmapSettings.WindowsData.Window.Status.Loaded) {

						GUI.DrawTexture(rect, data.texture, ScaleMode.StretchToFill, alphaBlend: true);

					} else {

						if (this.noDataTexture != null) GUI.DrawTexture(rect, this.noDataTexture, ScaleMode.StretchToFill, alphaBlend: true);

					}

				}

			}

		}

		public override GenericMenu GetSettingsMenu(GenericMenu menu) {

			if (menu == null) menu = new GenericMenu();
			menu.AddItem(new GUIContent("Reinstall"), false, () => { this.Reinstall(); });

			return menu;

		}

		private HeatmapSettings GetSettingsFile() {

			var data = FlowSystem.GetData();
			if (data == null) return null;

			var dataPath = AssetDatabase.GetAssetPath(data);
			var directory = Path.GetDirectoryName(dataPath);
			var projectName = data.name;
			var modulesPath = Path.Combine(directory, projectName + ".Modules");

			var settings = ME.EditorUtilities.GetAssetsOfType<HeatmapSettings>(modulesPath, useCache: true);

			if (settings != null && settings.Length > 0) {

				return settings[0];

			}

			return null;

		}

		public override bool InstallationNeeded() {

			//var moduleName = "Heatmap";

			/*var data = FlowSystem.GetData();
			if (data == null) return false;

			// Check directories
			var dataPath = AssetDatabase.GetAssetPath(data);
			var directory = Path.GetDirectoryName(dataPath);
			var projectName = data.name;

			var modulesPath = Path.Combine(directory, projectName + ".Modules");

			var settings = ME.EditorUtilities.GetAssetsOfType<HeatmapSettings>(modulesPath, useCache: false).FirstOrDefault();

			return settings == null;*/

			return this.GetSettingsFile() == null;

		}

		public override void Install() {

			this.Install_INTERNAL();

		}

		public override void Reinstall() {

			this.Install_INTERNAL();

		}

		private bool Install_INTERNAL() {

			var moduleName = "Heatmap";
			var settings = new[] {
				new { type = typeof(HeatmapSettings), name = "HeatmapSettings", directory = "" }
			};

			var data = FlowSystem.GetData();
			if (data == null) return false;

			// Check directories
			var dataPath = AssetDatabase.GetAssetPath(data);
			var directory = Path.GetDirectoryName(dataPath);
			var projectName = data.name;

			var modulesPath = Path.Combine(directory, projectName + ".Modules");
			var modulePath = Path.Combine(modulesPath, moduleName);

			if (Directory.Exists(modulesPath) == false) Directory.CreateDirectory(modulesPath);
			if (Directory.Exists(modulePath) == false) Directory.CreateDirectory(modulePath);

			foreach (var file in settings) {

				var path = Path.Combine(modulePath, file.directory);
				if (Directory.Exists(path) == false) Directory.CreateDirectory(path);

				if (File.Exists(path + "/" + file.name + ".asset") == false) {

					var instance = ME.EditorUtilities.CreateAsset(file.type, path, file.name) as HeatmapSettings;

					if (instance != null) EditorUtility.SetDirty(instance);

				}

			}

			AssetDatabase.Refresh();

			return false;

		}

	}

}


text:
package com.nuclearthinking.game.model.skills;

import com.nuclearthinking.game.model.StatsSet;
import com.nuclearthinking.game.model.interfaces.IIdentifiable;

import java.util.logging.Logger;

/**
 * Created by kuksin-mv on 24.12.2015.
 */
public class Skill implements IIdentifiable {
    private static final Logger LOG = Logger.getLogger(Skill.class.getName());

    private final int _id;
    private final int _level;
    private final String _name;

    public Skill(StatsSet set) {
        _id = set.getInt("skill_id");
        _level = set.getInt("level");
        _name = set.getString("name", "");
    }

    @Override
    public int getId() {
        return _id;
    }

    public int getLevel() {
        return _level;
    }

    public String getName() {
        return _name;
    }

    @Override
    public String toString() {
        return "Skill " + _name + "(" + _id + "," + _level + ")";
    }
}


text:
<?php

/* SMAdminBundle:Products:index.html.twig */
class __TwigTemplate_8196cb12ef0c3001473fb60202d07618 extends Twig_Template
{
    public function __construct(Twig_Environment $env)
    {
        parent::__construct($env);

        $this->parent = $this->env->loadTemplate("SMAdminBundle::admin.html.twig");

        $this->blocks = array(
            'body' => array($this, 'block_body'),
        );
    }

    protected function doGetParent(array $context)
    {
        return "SMAdminBundle::admin.html.twig";
    }

    protected function doDisplay(array $context, array $blocks = array())
    {
        $this->parent->display($context, array_merge($this->blocks, $blocks));
    }

    // line 2
    public function block_body($context, array $blocks = array())
    {
        // line 3
        echo "

";
        // line 29
        echo twig_escape_filter($this->env, $this->env->getExtension('translator')->trans("Product List", array(), "SMAdminBundle"), "html", null, true);
        echo "

    env, $this->env->getExtension('routing')->getPath("admin_products_new"), "html", null, true);
        echo "\" class=\"btn btn-primary\">";
        echo twig_escape_filter($this->env, $this->env->getExtension('translator')->trans("Create a new entry", array(), "SMAdminBundle"), "html", null, true);
        echo "
    env, $this->env->getExtension('routing')->getPath("admin_products_delete_all"), "html", null, true);
        echo "\">";
        echo twig_escape_filter($this->env, $this->env->getExtension('translator')->trans("Delete all", array(), "SMAdminBundle"), "html", null, true);
        echo "

            ";
        // line 37
        $context['_parent'] = (array) $context;
        $context['_seq'] = twig_ensure_traversable($this->getContext($context, "langList"));
        foreach ($context['_seq'] as $context["_key"] => $context["opt"]) {
            // line 38
            echo "                ";
            if (($this->getContext($context, "lang") == $this->getAttribute($this->getContext($context, "opt"), "id"))) {
                // line 39
                echo "                ";
                echo twig_escape_filter($this->env, $this->getAttribute($this->getContext($context, "opt"), "name"), "html", null, true);
                echo "
                ";
            }
            // line 41
            echo "            ";
        }
        $_parent = $context['_parent'];
        unset($context['_seq'], $context['_iterated'], $context['_key'], $context['opt'], $context['_parent'], $context['loop']);
        $context = array_intersect_key($context, $_parent) + $_parent;
        // line 42
        echo "

            ";
        // line 44
        $context['_parent'] = (array) $context;
        $context['_seq'] = twig_ensure_traversable($this->getContext($context, "langList"));
        foreach ($context['_seq'] as $context["_key"] => $context["opt"]) {
            // line 45
            echo "
env, $this->env->getExtension('routing')->getPath("admin_products", array("page" => 1, "lang" => $this->getAttribute($this->getContext($context, "opt"), "id"))), "html", null, true);
            echo "\">";
            echo twig_escape_filter($this->env, $this->getAttribute($this->getContext($context, "opt"), "name"), "html", null, true);
            echo "

            ";
        }
        $_parent = $context['_parent'];
        unset($context['_seq'], $context['_iterated'], $context['_key'], $context['opt'], $context['_parent'], $context['loop']);
        $context = array_intersect_key($context, $_parent) + $_parent;
        // line 47
        echo "

        <form class=\"well form-search\" method=\"POST\" action=\"";
        // line 51
        echo twig_escape_filter($this->env, $this->env->getExtension('routing')->getPath("admin_products"), "html", null, true);
        echo "\" style=\"margin-bottom: 10px;\">
            ";
        // line 52
        echo twig_escape_filter($this->env, $this->env->getExtension('translator')->trans("Name", array(), "SMAdminBundle"), "html", null, true);
        echo " : <input type=\"text\" name=\"name\" id=\"name\" value=\"";
        echo twig_escape_filter($this->env, $this->getContext($context, "name"), "html", null, true);
        echo "\">
            ";
        // line 53
        echo twig_escape_filter($this->env, $this->env->getExtension('translator')->trans("Branch", array(), "SMAdminBundle"), "html", null, true);
        echo " : <select name=\"branch\" id=\"branch\">
                        <option value=\"\">-- ";
        // line 54
        echo twig_escape_filter($this->env, $this->env->getExtension('translator')->trans("Select", array(), "SMAdminBundle"), "html", null, true);
        echo " -- </option>
                        ";
        // line 55
        $context['_parent'] = (array) $context;
        $context['_seq'] = twig_ensure_traversable($this->getContext($context, "optBranchs"));
        foreach ($context['_seq'] as $context["_key"] => $context["obj"]) {
            // line 56
            echo "                            ";
            if ((!(null === $this->getAttribute($this->getContext($context, "obj"), "getCurrentLanguage")))) {
                // line 57
                echo "                                <option value=\"";
                echo twig_escape_filter($this->env, $this->getAttribute($this->getContext($context, "obj"), "id"), "html", null, true);
                echo "\" ";
                if (($this->getAttribute($this->getContext($context, "obj"), "id") == $this->getContext($context, "branchId"))) {
                    echo " selected=\"selected\"";
                }
                echo ">
                                    ";
                // line 58
                echo twig_escape_filter($this->env, twig_truncate_filter($this->env, $this->getAttribute($this->getAttribute($this->getContext($context, "obj"), "getCurrentLanguage"), "getTreeName"), 50), "html", null, true);
                echo "
                                </option>
                            ";
            }
            // line 61
            echo "                        ";
        }
        $_parent = $context['_parent'];
        unset($context['_seq'], $context['_iterated'], $context['_key'], $context['obj'], $context['_parent'], $context['loop']);
        $context = array_intersect_key($context, $_parent) + $_parent;
        // line 62
        echo "                    </select>
            <input type=\"hidden\" name=\"language\" value=\"";
        // line 63
        echo twig_escape_filter($this->env, $this->getContext($context, "lang"), "html", null, true);
        echo "\"/>
            <button type=\"submit\" class=\"btn\" style=\"width: 100px;\">";
        // line 64
        echo twig_escape_filter($this->env, $this->env->getExtension('translator')->trans("Search", array(), "SMAdminBundle"), "html", null, true);
        echo "</button>
            <button type=\"submit\" class=\"btn\" style=\"width: 100px;\" id=\"btnReset\">";
        // line 65
        echo twig_escape_filter($this->env, $this->env->getExtension('translator')->trans("Reset", array(), "SMAdminBundle"), "html", null, true);
        echo "</button>
        </form>

<form method=\"post\" name=\"frmList\" id=\"frmList\" action=\"#\">

                <input type=\"checkbox\" name=\"checkAll\" id=\"checkAll\"/>
                ";
        // line 75
        echo twig_escape_filter($this->env, $this->env->getExtension('translator')->trans("Id", array(), "SMAdminBundle"), "html", null, true);
        echo "
                ";
        // line 76
        echo twig_escape_filter($this->env, $this->env->getExtension('translator')->trans("Name", array(), "SMAdminBundle"), "html", null, true);
        echo "
                ";
        // line 77
        echo twig_escape_filter($this->env, $this->env->getExtension('translator')->trans("Created Time", array(), "SMAdminBundle"), "html", null, true);
        echo "
                ";
        // line 78
        echo twig_escape_filter($this->env, $this->env->getExtension('translator')->trans("Status", array(), "SMAdminBundle"), "html", null, true);
        echo "
                ";
        // line 79
        echo twig_escape_filter($this->env, $this->env->getExtension('translator')->trans("Action", array(), "SMAdminBundle"), "html", null, true);
        echo "

        ";
        // line 83
        $context['_parent'] = (array) $context;
        $context['_seq'] = twig_ensure_traversable($this->getContext($context, "entities"));
        foreach ($context['_seq'] as $context["_key"] => $context["entity"]) {
            // line 84
            echo "

                <input type=\"checkbox\" value=\"";
            // line 85
            echo twig_escape_filter($this->env, $this->getAttribute($this->getContext($context, "entity"), "id"), "html", null, true);
            echo "\" name=\"checklist[]\" class=\"chkItem\"/>
                ";
            // line 86
            echo twig_escape_filter($this->env, $this->getAttribute($this->getAttribute($this->getContext($context, "entity"), "product"), "id"), "html", null, true);
            echo "

                    ";
            // line 88
            if ((!(null === $this->getAttribute($this->getContext($context, "entity"), "name")))) {
                // line 89
                echo "                        ";
                echo twig_escape_filter($this->env, twig_truncate_filter($this->env, $this->getAttribute($this->getContext($context, "entity"), "name"), 50), "html", null, true);
                echo "
                    ";
            } else {
                // line 91
                echo "                        ";
                echo twig_escape_filter($this->env, $this->env->getExtension('translator')->trans("Not set value in this language", array(), "SMAdminBundle"), "html", null, true);
                echo "
                    ";
            }
            // line 93
            echo "
                ";
            // line 94
            if ($this->getAttribute($this->getAttribute($this->getContext($context, "entity"), "product"), "createdAt")) {
                echo twig_escape_filter($this->env, twig_date_format_filter($this->env, $this->getAttribute($this->getAttribute($this->getContext($context, "entity"), "product"), "createdAt"), "Y-m-d H:i:s"), "html", null, true);
            }
            echo "

                    ";
            // line 96
            if (($this->getAttribute($this->getAttribute($this->getContext($context, "entity"), "product"), "status") == 1)) {
                // line 97
                echo "                        <input type=\"checkbox\" checked=\"checked\" class=\"defaultCheckBox\" disabled=\"true\"/>
                    ";
            } else {
                // line 99
                echo "                        <input type=\"checkbox\" class=\"defaultCheckBox\" disabled=\"true\"/>
                    ";
            }
            // line 101
            echo "

                    env, $this->env->getExtension('routing')->getPath("admin_products_edit", array("id" => $this->getAttribute($this->getAttribute($this->getContext($context, "entity"), "product"), "id"))), "html", null, true);
            echo "\">";
            echo twig_escape_filter($this->env, $this->env->getExtension('translator')->trans("Edit", array(), "SMAdminBundle"), "html", null, true);
            echo "
                    ";
            // line 104
            if ((!(null === $this->getAttribute($this->getContext($context, "entity"), "language")))) {
                // line 105
                echo "                          |
                        env, $this->env->getExtension('routing')->getPath("admin_products_delete", array("id" => $this->getAttribute($this->getContext($context, "entity"), "id"))), "html", null, true);
                echo "\" class=\"delete\">";
                echo twig_escape_filter($this->env, $this->env->getExtension('translator')->trans("Delete", array(), "SMAdminBundle"), "html", null, true);
                echo "
                    ";
            }
            // line 108
            echo "

        ";
        }
        $_parent = $context['_parent'];
        unset($context['_seq'], $context['_iterated'], $context['_key'], $context['entity'], $context['_parent'], $context['loop']);
        $context = array_intersect_key($context, $_parent) + $_parent;
        // line 112
        echo "

</form>

";
        // line 117
        if (($this->getContext($context, "lastPage") > 1)) {
            // line 118
            echo "

env, $this->env->getExtension('routing')->getPath("admin_products", array("page" => 1, "lang" => $this->getContext($context, "lang"))), "html", null, true);
            echo "\">

env, $this->env->getExtension('routing')->getPath("admin_products", array("page" => $this->getContext($context, "previousPage"), "lang" => $this->getContext($context, "lang"))), "html", null, true);
            echo "\">

    ";
            // line 122
            $context['_parent'] = (array) $context;
            $context['_seq'] = twig_ensure_traversable(range(1, $this->getContext($context, "lastPage")));
            foreach ($context['_seq'] as $context["_key"] => $context["page"]) {
                // line 123
                echo "      ";
                if (($this->getContext($context, "page") == $this->getContext($context, "currentPage"))) {
                    // line 124
                    echo "
env, $this->env->getExtension('routing')->getPath("admin_products", array("page" => $this->getContext($context, "page"), "lang" => $this->getContext($context, "lang"))), "html", null, true);
                    echo "\">";
                    echo twig_escape_filter($this->env, $this->getContext($context, "page"), "html", null, true);
                    echo "

      ";
                } else {
                    // line 126
                    echo "
env, $this->env->getExtension('routing')->getPath("admin_products", array("page" => $this->getContext($context, "page"), "lang" => $this->getContext($context, "lang"))), "html", null, true);
                    echo "\">";
                    echo twig_escape_filter($this->env, $this->getContext($context, "page"), "html", null, true);
                    echo "

      ";
                }
                // line 128
                echo "    ";
            }
            $_parent = $context['_parent'];
            unset($context['_seq'], $context['_iterated'], $context['_key'], $context['page'], $context['_parent'], $context['loop']);
            $context = array_intersect_key($context, $_parent) + $_parent;
            // line 129
            echo "
env, $this->env->getExtension('routing')->getPath("admin_products", array("page" => $this->getContext($context, "nextPage"), "lang" => $this->getContext($context, "lang"))), "html", null, true);
            echo "\">

env, $this->env->getExtension('routing')->getPath("admin_products", array("page" => $this->getContext($context, "lastPage"), "lang" => $this->getContext($context, "lang"))), "html", null, true);
            echo "\">

";
        }
        // line 134
        echo "
";
    }

    public function getTemplateName()
    {
        return "SMAdminBundle:Products:index.html.twig";
    }

    public function isTraitable()
    {
        return false;
    }

    public function getDebugInfo()
    {
        return array (  359 => 134,  352 => 130,  347 => 129,  341 => 128,  333 => 126,  325 => 124,  322 => 123,  318 => 122,  314 => 121,  310 => 120,  306 => 118,  304 => 117,  298 => 112,  289 => 108,  282 => 106,  279 => 105,  277 => 104,  271 => 103,  267 => 101,  263 => 99,  259 => 97,  257 => 96,  250 => 94,  247 => 93,  241 => 91,  235 => 89,  233 => 88,  228 => 86,  224 => 85,  221 => 84,  217 => 83,  210 => 79,  206 => 78,  202 => 77,  198 => 76,  194 => 75,  181 => 65,  177 => 64,  173 => 63,  170 => 62,  164 => 61,  158 => 58,  149 => 57,  146 => 56,  142 => 55,  138 => 54,  134 => 53,  128 => 52,  124 => 51,  118 => 47,  107 => 45,  103 => 44,  99 => 42,  93 => 41,  87 => 39,  84 => 38,  80 => 37,  71 => 33,  65 => 32,  59 => 29,  31 => 3,  28 => 2,);
    }
}


text:
package com.google.cloud.talent.v4beta1.stub;

import static com.google.cloud.talent.v4beta1.ProfileServiceClient.ListProfilesPagedResponse;
import static com.google.cloud.talent.v4beta1.ProfileServiceClient.SearchProfilesPagedResponse;

import com.google.api.core.BetaApi;
import com.google.api.gax.core.BackgroundResource;
import com.google.api.gax.rpc.UnaryCallable;
import com.google.cloud.talent.v4beta1.CreateProfileRequest;
import com.google.cloud.talent.v4beta1.DeleteProfileRequest;
import com.google.cloud.talent.v4beta1.GetProfileRequest;
import com.google.cloud.talent.v4beta1.ListProfilesRequest;
import com.google.cloud.talent.v4beta1.ListProfilesResponse;
import com.google.cloud.talent.v4beta1.Profile;
import com.google.cloud.talent.v4beta1.SearchProfilesRequest;
import com.google.cloud.talent.v4beta1.SearchProfilesResponse;
import com.google.cloud.talent.v4beta1.UpdateProfileRequest;
import com.google.protobuf.Empty;
import javax.annotation.Generated;

// AUTO-GENERATED DOCUMENTATION AND CLASS
/**
 * Base stub class for Cloud Talent Solution API.
 *
 * <p>This class is for advanced usage and reflects the underlying API directly.
 */
@Generated("by gapic-generator")
@BetaApi("A restructuring of stub classes is planned, so this may break in the future")
public abstract class ProfileServiceStub implements BackgroundResource {

  public UnaryCallable<ListProfilesRequest, ListProfilesPagedResponse> listProfilesPagedCallable() {
    throw new UnsupportedOperationException("Not implemented: listProfilesPagedCallable()");
  }

  public UnaryCallable<ListProfilesRequest, ListProfilesResponse> listProfilesCallable() {
    throw new UnsupportedOperationException("Not implemented: listProfilesCallable()");
  }

  public UnaryCallable<CreateProfileRequest, Profile> createProfileCallable() {
    throw new UnsupportedOperationException("Not implemented: createProfileCallable()");
  }

  public UnaryCallable<GetProfileRequest, Profile> getProfileCallable() {
    throw new UnsupportedOperationException("Not implemented: getProfileCallable()");
  }

  public UnaryCallable<UpdateProfileRequest, Profile> updateProfileCallable() {
    throw new UnsupportedOperationException("Not implemented: updateProfileCallable()");
  }

  public UnaryCallable<DeleteProfileRequest, Empty> deleteProfileCallable() {
    throw new UnsupportedOperationException("Not implemented: deleteProfileCallable()");
  }

  public UnaryCallable<SearchProfilesRequest, SearchProfilesPagedResponse>
      searchProfilesPagedCallable() {
    throw new UnsupportedOperationException("Not implemented: searchProfilesPagedCallable()");
  }

  public UnaryCallable<SearchProfilesRequest, SearchProfilesResponse> searchProfilesCallable() {
    throw new UnsupportedOperationException("Not implemented: searchProfilesCallable()");
  }

  @Override
  public abstract void close();
}


text:
import {
  includes,
  toArray
} from '../utils';

var types = {
  boolean: {},
  number: {},
  string: {},
  any: {},
  array: {},
  object: {},
  enum: function() {
    var valid = toArray(arguments);
    return {
      validate: function(value) { return includes(valid, value); }
    };
  }
};
export default types;


text:
namespace VulkanCookbook {

  struct ImageDescriptorInfo {
    VkDescriptorSet                     TargetDescriptorSet;
    uint32_t                            TargetDescriptorBinding;
    uint32_t                            TargetArrayElement;
    VkDescriptorType                    TargetDescriptorType;
    std::vector<VkDescriptorImageInfo>  ImageInfos;
  };

  struct BufferDescriptorInfo {
    VkDescriptorSet                     TargetDescriptorSet;
    uint32_t                            TargetDescriptorBinding;
    uint32_t                            TargetArrayElement;
    VkDescriptorType                    TargetDescriptorType;
    std::vector<VkDescriptorBufferInfo> BufferInfos;
  };

  struct TexelBufferDescriptorInfo {
    VkDescriptorSet                     TargetDescriptorSet;
    uint32_t                            TargetDescriptorBinding;
    uint32_t                            TargetArrayElement;
    VkDescriptorType                    TargetDescriptorType;
    std::vector<VkBufferView>           TexelBufferViews;
  };

  struct CopyDescriptorInfo {
    VkDescriptorSet     TargetDescriptorSet;
    uint32_t            TargetDescriptorBinding;
    uint32_t            TargetArrayElement;
    VkDescriptorSet     SourceDescriptorSet;
    uint32_t            SourceDescriptorBinding;
    uint32_t            SourceArrayElement;
    uint32_t            DescriptorCount;
  };

  void UpdateDescriptorSets( VkDevice                                       logical_device,
                             std::vector<ImageDescriptorInfo> const       & image_descriptor_infos,
                             std::vector<BufferDescriptorInfo> const      & buffer_descriptor_infos,
                             std::vector<TexelBufferDescriptorInfo> const & texel_buffer_descriptor_infos,
                             std::vector<CopyDescriptorInfo> const        & copy_descriptor_infos );

} // namespace VulkanCookbook

#endif // UPDATING_DESCRIPTOR_SETS


text:
<!DOCTYPE html>

<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta name="viewport" content="initial-scale=1.0, maximum-scale=1.0, user-scalable=no, width=device-width">
<meta name="generator" content="joDoc">
<title>Apache Cordova API Documentation</title>
<link rel="stylesheet" type="text/css" href="index.css">
<link rel="stylesheet" type="text/css" href="mobile.css" media="only screen and (max-device-width: 1024px)">
<link rel="stylesheet" type="text/css" href="prettify/prettify.css">

Apache Cordova Documentation

                <select><optgroup label="English" value="en">
<option value="edge">edge</option>
<option value="2.9.0rc1">2.9.0rc1</option>
<option value="2.9.0">2.9.0</option>
<option value="2.8.0">2.8.0</option>
<option value="2.7.0rc1">2.7.0rc1</option>
<option value="2.7.0">2.7.0</option>
<option value="2.6.0rc1">2.6.0rc1</option>
<option value="2.6.0">2.6.0</option>
<option value="2.5.0rc1">2.5.0rc1</option>
<option value="2.5.0">2.5.0</option>
<option value="2.4.0rc1">2.4.0rc1</option>
<option value="2.4.0">2.4.0</option>
<option value="2.3.0rc2">2.3.0rc2</option>
<option value="2.3.0rc1">2.3.0rc1</option>
<option value="2.3.0">2.3.0</option>
<option value="2.2.0rc2">2.2.0rc2</option>
<option value="2.2.0rc1">2.2.0rc1</option>
<option value="2.2.0">2.2.0</option>
<option value="2.1.0rc2">2.1.0rc2</option>
<option value="2.1.0rc1">2.1.0rc1</option>
<option value="2.1.0">2.1.0</option>
<option value="2.0.0rc1">2.0.0rc1</option>
<option value="2.0.0">2.0.0</option>
<option value="1.9.0rc1">1.9.0rc1</option>
<option value="1.9.0">1.9.0</option>
<option value="1.8.1">1.8.1</option>
<option value="1.8.0rc1">1.8.0rc1</option>
<option value="1.8.0">1.8.0</option>
<option value="1.7.0rc1">1.7.0rc1</option>
<option value="1.7.0">1.7.0</option>
<option value="1.6.1">1.6.1</option>
<option value="1.6.0rc1">1.6.0rc1</option>
<option value="1.6.0">1.6.0</option>
<option value="1.5.0rc1">1.5.0rc1</option>
<option selected value="1.5.0">1.5.0</option>
</optgroup>
<optgroup label="Japanese" value="jp">
<option value="2.2.0">2.2.0</option>
<option value="2.1.0">2.1.0</option>
<option value="2.0.0">2.0.0</option>
<option value="1.9.0">1.9.0</option>
<option value="1.8.1">1.8.1</option>
<option value="1.7.0">1.7.0</option>
</optgroup>
<optgroup label="Korean" value="kr"><option value="2.0.0">2.0.0</option></optgroup></select>

Device

            <select><option value="Device">Device</option>
<option value="Device_properties">      - Properties</option>
<option value="Device_variable_scope">      - Variable Scope</option>
<option value="device.name">device.name</option>
<option value="device.name_description">      - Description</option>
<option value="device.name_supported_platforms">      - Supported Platforms</option>
<option value="device.name_quick_example">      - Quick Example</option>
<option value="device.name_full_example">      - Full Example</option>
<option value="device.name_android_quirks">      - Android Quirks</option>
<option value="device.name_iphone_quirks">      - iPhone Quirks</option>
<option value="device.phonegap">device.phonegap</option>
<option value="device.phonegap_description">      - Description</option>
<option value="device.phonegap_supported_platforms">      - Supported Platforms</option>
<option value="device.phonegap_quick_example">      - Quick Example</option>
<option value="device.phonegap_full_example">      - Full Example</option>
<option value="device.platform">device.platform</option>
<option value="device.platform_supported_platforms">      - Supported Platforms</option>
<option value="device.platform_quick_example">      - Quick Example</option>
<option value="device.platform_full_example">      - Full Example</option>
<option value="device.platform_iphone_quirks">      - iPhone Quirks</option>
<option value="device.platform_blackberry_quirks">      - BlackBerry Quirks</option>
<option value="device.uuid">device.uuid</option>
<option value="device.uuid_description">      - Description</option>
<option value="device.uuid_supported_platforms">      - Supported Platforms</option>
<option value="device.uuid_quick_example">      - Quick Example</option>
<option value="device.uuid_full_example">      - Full Example</option>
<option value="device.version">device.version</option>
<option value="device.version_supported_platforms">      - Supported Platforms</option>
<option value="device.version_quick_example">      - Quick Example</option>
<option value="device.version_full_example">      - Full Example</option></select>

API Reference

Accelerometer

Camera

Capture

Compass

Connection

Contacts

Device

Events

File

Geolocation

Media

Notification

Storage

Guides

Getting Started Guides

Keyword Index

Device

The device object describes the device's hardware and software.

Properties

device.name

device.phonegap

device.platform

device.uuid

device.version

Variable Scope

Since device is assigned to the window object, it is implicitly in the global scope.

// These reference the same `device`
//
var phoneName = window.device.name;
var phoneName = device.name;

device.name

Get the device's model name.

var string = device.name;

Description

device.name returns the name of the device's model or product. This value is set by the device manufacturer and may be different across versions of the same product.

Supported Platforms

Android

BlackBerry

BlackBerry WebWorks (OS 5.0 and higher)

iPhone

Windows Phone 7 ( Mango )

Quick Example

// Android:    Nexus One       returns "Passion" (Nexus One code name)
//             Motorola Droid  returns "voles"
// BlackBerry: Bold 8900       returns "8900"
// iPhone:     All devices     returns a name set by iTunes e.g. "Joe's iPhone"
//
var name = device.name;

Full Example

<!DOCTYPE html>
<html>
  <head>
    <title>Device Properties Example</title>

    <script type="text/javascript" charset="utf-8" src="cordova-1.5.0.js"></script>
    <script type="text/javascript" charset="utf-8">

    // Wait for PhoneGap to load
    //
    document.addEventListener("deviceready", onDeviceReady, false);

    // PhoneGap is ready
    //
    function onDeviceReady() {
        var element = document.getElementById('deviceProperties');

        element.innerHTML = 'Device Name: '     + device.name     + '<br />' +
                            'Device PhoneGap: ' + device.phonegap + '<br />' +
                            'Device Platform: ' + device.platform + '<br />' +
                            'Device UUID: '     + device.uuid     + '<br />' +
                            'Device Version: '  + device.version  + '<br />';
    }

    </script>
  </head>
  <body>
    <p id="deviceProperties">Loading device properties...</p>
  </body>
</html>

Android Quirks

Gets the product name instead of the model name.

The product name is often the code name given during production.

e.g. Nexus One returns "Passion", Motorola Droid returns "voles"

iPhone Quirks

Gets the device's custom name instead of the device model name.

The custom name is set by the owner in iTunes.

e.g. "Joe's iPhone"

device.phonegap

Get the version of phonegap running on the device.

var string = device.phonegap;

Description

device.phonegap returns the version of phonegap running on the device.

Supported Platforms

Android

BlackBerry

BlackBerry WebWorks (OS 5.0 and higher)

iPhone

Windows Phone 7 ( Mango )

Quick Example

var name = device.phonegap;

Full Example

<!DOCTYPE html>
<html>
  <head>
    <title>Device Properties Example</title>

    <script type="text/javascript" charset="utf-8" src="cordova-1.5.0.js"></script>
    <script type="text/javascript" charset="utf-8">

    // Wait for PhoneGap to load
    //
    document.addEventListener("deviceready", onDeviceReady, false);

    // PhoneGap is ready
    //
    function onDeviceReady() {
        var element = document.getElementById('deviceProperties');

        element.innerHTML = 'Device Name: '     + device.name     + '<br />' +
                            'Device PhoneGap: ' + device.phonegap + '<br />' +
                            'Device Platform: ' + device.platform + '<br />' +
                            'Device UUID: '     + device.uuid     + '<br />' +
                            'Device Version: '  + device.version  + '<br />';
    }

    </script>
  </head>
  <body>
    <p id="deviceProperties">Loading device properties...</p>
  </body>
</html>

device.platform

Get the device's operating system name.

var string = device.platform;

Supported Platforms

Android

BlackBerry

BlackBerry WebWorks (OS 5.0 and higher)

iPhone

Windows Phone 7 ( Mango )

Quick Example

// Depending on the device, a few examples are:
//   - "Android"
//   - "BlackBerry"
//   - "iPhone"
//   - "webOS"
//   - "WinCE"
var devicePlatform = device.platform;

Full Example

<!DOCTYPE html>
<html>
  <head>
    <title>Device Properties Example</title>

    <script type="text/javascript" charset="utf-8" src="cordova-1.5.0.js"></script>
    <script type="text/javascript" charset="utf-8">

    // Wait for PhoneGap to load
    //
    document.addEventListener("deviceready", onDeviceReady, false);

    // PhoneGap is ready
    //
    function onDeviceReady() {
        var element = document.getElementById('deviceProperties');

        element.innerHTML = 'Device Name: '     + device.name     + '<br />' +
                            'Device PhoneGap: ' + device.phonegap + '<br />' +
                            'Device Platform: ' + device.platform + '<br />' +
                            'Device UUID: '     + device.uuid     + '<br />' +
                            'Device Version: '  + device.version  + '<br />';
    }

    </script>
  </head>
  <body>
    <p id="deviceProperties">Loading device properties...</p>
  </body>
</html>

iPhone Quirks

All devices return iPhone as the platform. This is inaccurate because Apple has rebranded the iPhone operating system as iOS.

BlackBerry Quirks

Devices may return the device platform version instead of the platform name.  For example, the Storm2 9550 would return '2.13.0.95' or similar.

device.uuid

Get the device's Universally Unique Identifier (UUID).

var string = device.uuid;

Description

The details of how a UUID is generated are determined by the device manufacturer and specific to the device's platform or model.

Supported Platforms

Android

BlackBerry

BlackBerry WebWorks (OS 5.0 and higher)

iPhone

Windows Phone 7 ( Mango )

Quick Example

// Android: Returns a random 64-bit integer (as a string, again!)
//          The integer is generated on the device's first boot
//
// BlackBerry: Returns the PIN number of the device
//             This is a nine-digit unique integer (as a string, though!)
//
// iPhone: (Paraphrased from the UIDevice Class documentation)
//         Returns a string of hash values created from multiple hardware identifies.
//         It is guaranteed to be unique for every device and cannot be tied
//         to the user account.
// Windows Phone 7 : Returns a hash of device+current user,
// if the user is not defined, a guid is generated and will persist until the app is uninstalled
//
var deviceID = device.uuid;

Full Example

<!DOCTYPE html>
<html>
  <head>
    <title>Device Properties Example</title>

    <script type="text/javascript" charset="utf-8" src="cordova-1.5.0.js"></script>
    <script type="text/javascript" charset="utf-8">

    // Wait for PhoneGap to load
    //
    document.addEventListener("deviceready", onDeviceReady, false);

    // PhoneGap is ready
    //
    function onDeviceReady() {
        var element = document.getElementById('deviceProperties');

        element.innerHTML = 'Device Name: '     + device.name     + '<br />' +
                            'Device PhoneGap: ' + device.phonegap + '<br />' +
                            'Device Platform: ' + device.platform + '<br />' +
                            'Device UUID: '     + device.uuid     + '<br />' +
                            'Device Version: '  + device.version  + '<br />';
    }

    </script>
  </head>
  <body>
    <p id="deviceProperties">Loading device properties...</p>
  </body>
</html>

device.version

Get the operating system version.

var string = device.version;

Supported Platforms

Android 2.1+

BlackBerry

BlackBerry WebWorks (OS 5.0 and higher)

iPhone

Windows Phone 7 ( Mango )

Quick Example

// Android:    Froyo OS would return "2.2"
//             Eclair OS would return "2.1", "2.0.1", or "2.0"
//             Version can also return update level "2.1-update1"
//
// BlackBerry: Bold 9000 using OS 4.6 would return "4.6.0.282"
//
// iPhone:     iOS 3.2 returns "3.2"
//
// Windows Phone 7: returns current OS version number, ex. on Mango returns 7.10.7720
var deviceVersion = device.version;

Full Example

<!DOCTYPE html>
<html>
  <head>
    <title>Device Properties Example</title>

    <script type="text/javascript" charset="utf-8" src="cordova-1.5.0.js"></script>
    <script type="text/javascript" charset="utf-8">

    // Wait for PhoneGap to load
    //
    document.addEventListener("deviceready", onDeviceReady, false);

    // PhoneGap is ready
    //
    function onDeviceReady() {
        var element = document.getElementById('deviceProperties');

        element.innerHTML = 'Device Name: '     + device.name     + '<br />' +
                            'Device PhoneGap: ' + device.phonegap + '<br />' +
                            'Device Platform: ' + device.platform + '<br />' +
                            'Device UUID: '     + device.uuid     + '<br />' +
                            'Device Version: '  + device.version  + '<br />';
    }

    </script>
  </head>
  <body>
    <p id="deviceProperties">Loading device properties...</p>
  </body>
</html>


text:
module RBMusic
  VERSION = "0.0.6" unless defined? RBMusic::VERSION
end