text:
define([
    'underscore',
    'contrail-view',
    'core-basedir/js/models/LineBarWithFocusChartModel',
    'contrail-list-model',
    'nv.d3',
    'chart-utils',
    'core-constants'
], function (_, ContrailView, LineBarWithFocusChartModel, ContrailListModel, nv, chUtils, cowc) {
    var LineBarWithFocusChartView = ContrailView.extend({
        settingsChanged: function(newSettings) {
            var self = this,
                vc = self.attributes.viewConfig;
            if(vc.hasOwnProperty("chartOptions")) {
                vc.chartOptions["resetColor"] = true;
                for(var key in newSettings) {
                    if(key in vc.chartOptions) {
                        vc.chartOptions[key] = newSettings[key];
                    }
                }
                if(typeof vc.chartOptions["colors"] != 'function') {
                    vc.chartOptions["colors"] = cowc.FIVE_NODE_COLOR;
                }
            }
            self.renderChart($(self.$el), vc, self.model);
        },
        render: function () {
            var viewConfig = this.attributes.viewConfig,
                ajaxConfig = viewConfig['ajaxConfig'],
                self = this, deferredObj = $.Deferred(),
                selector = $(self.$el),
                modelMap = contrail.handleIfNull(self.modelMap, {});
            //settings
            cowu.updateSettingsWithCookie(viewConfig);

            if (contrail.checkIfExist(viewConfig.modelKey) && contrail.checkIfExist(modelMap[viewConfig.modelKey])) {
                self.model = modelMap[viewConfig.modelKey]
            }

            if (self.model === null && viewConfig['modelConfig'] != null) {
                self.model = new ContrailListModel(viewConfig['modelConfig']);
            }

            self.renderChart(selector, viewConfig, self.model);

            if (self.model !== null) {
                if (self.model.loadedFromCache || !(self.model.isRequestInProgress())) {
                    self.updateChart(selector, viewConfig, self.model);
                }

                self.model.onAllRequestsComplete.subscribe(function () {
                    self.updateChart(selector, viewConfig, self.model);
                });

                if (viewConfig.loadChartInChunks) {
                    self.model.onDataUpdate.subscribe(function () {
                        self.updateChart(selector, viewConfig, self.model);
                    });
                }
                var prevDimensions = chUtils.getDimensionsObj(self.$el);
                self.resizeFunction = _.debounce(function (e) {
                    if(!chUtils.isReRenderRequired({
                        prevDimensions:prevDimensions,
                        elem:self.$el})) {
                        return;
                    }
                    prevDimensions = chUtils.getDimensionsObj(self.$el);
                     self.renderChart($(self.$el), viewConfig, self.model);
                 },cowc.THROTTLE_RESIZE_EVENT_TIME);

                $(self.$el).parents('.custom-grid-stack-item').on('resize',self.resizeFunction);

            }
        },

        renderChart: function (selector, viewConfig, chartDataModel) {
            var self = this,
                data = chartDataModel.getItems(),
                chartTemplate = contrail.getTemplate4Id(cowc.TMPL_CHART),
                widgetConfig = contrail.checkIfExist(viewConfig.widgetConfig) ? viewConfig.widgetConfig : null,
                chartViewConfig, chartOptions, chartViewModel;

            if (contrail.checkIfFunction(viewConfig['parseFn'])) {
                data = viewConfig['parseFn'](data, viewConfig['chartOptions']);
            }
            if ($(selector).parents('.custom-grid-stack-item').length != 0) {
                viewConfig['chartOptions']['height'] = $(selector).parents('.custom-grid-stack-item').height() - 20;
            }
            chartViewConfig = self.getChartViewConfig(data, viewConfig.chartOptions);
            chartOptions = chartViewConfig['chartOptions'];
            //viewConfig.chartOptions = chartOptions;
            chartViewModel = new LineBarWithFocusChartModel(chartOptions);
            chartViewModel.chartOptions = chartOptions;

            self.chartViewModel = chartViewModel;

            if ($(selector).find("svg") != null) {
                $(selector).empty();
            }

            $(selector).append(chartTemplate(chartOptions));

            //Store the chart object as a data attribute so that the chart can be updated dynamically
            $(selector).data('chart', chartViewModel);

            if (chartOptions['showLegend'] && chartOptions['legendView'] != null) {
                self.legendView = new chartOptions['legendView']({
                    el: $(selector),
                    viewConfig: getLegendViewConfig(chartOptions, data)
                });
                self.legendView.render();
            }

            nv.addGraph(function () {
                self.resizeFn = _.debounce(function () {
                    chUtils.updateChartOnResize($(self.$el), self.chartViewModel);
                }, 500);
                nv.utils.windowResize(self.resizeFn);

                chartViewModel.dispatch.on('stateChange', function (e) {
                    nv.log('New State:', JSON.stringify(e));
                });

                //Bind the refresh to updateChart() so it can be updated later. Eg: tabs onActivate
                $(selector).find('svg').bind("refresh", function () {
                    self.updateChart(selector, viewConfig, chartDataModel);
                });

                if (($(selector).is(':visible'))) {
                    setData2Chart(self, chartViewConfig, chartDataModel, chartViewModel);
                }
                updateDataStatusMessage(self, chartViewConfig, chartDataModel);
                return chartViewModel;
            });

            if (widgetConfig !== null) {
                this.renderView4Config(selector.find('.chart-container'), chartDataModel, widgetConfig, null, null, null);
            }
        },

        renderMessage: function(message, selector, chartOptions) {
            var self = this,
                message = contrail.handleIfNull(message, ""),
                selector = contrail.handleIfNull(selector, $(self.$el)),
                chartOptions = contrail.handleIfNull(chartOptions, self.chartViewModel.chartOptions),
                container = d3.select($(selector).find("svg")[0]),
                requestStateText = container.selectAll('.nv-requestState').data([message]),
                textPositionX = $(selector).width() / 2,
                textPositionY = chartOptions.margin.top + $(selector).find('.nv-focus').heightSVG() / 2 + 10;

            requestStateText
                .enter().append('text')
                .attr('class', 'nvd3 nv-requestState')
                .attr('dy', '-.7em')
                .style('text-anchor', 'middle');

            requestStateText
                .attr('x', textPositionX)
                .attr('y', textPositionY)
                .text(function(t){ return t; });
        },

        removeMessage: function(selector) {
            var self = this,
                selector = contrail.handleIfNull(selector, $(self.$el));

            $(selector).find('.nv-requestState').remove();
        },

        resize: function () {
            var self = this;
            _.isFunction(self.resizeFn) && self.resizeFn();
        },

        getChartViewConfig: function(chartData, chartOptions) {
            var chartViewConfig = {};

            var chartOptions = $.extend(true, {}, covdc.lineBarWithFocusChartConfig, chartOptions);

            chartOptions['forceY1'] = getForceY1Axis(chartData, chartOptions['forceY1']);
            chartOptions['forceY2'] = getForceY2Axis(chartData, chartOptions['forceY2']);
            if (chartData.length > 0 && chartOptions['focusEnable']) {
                var values = chartData[0].values,
                    brushExtent = null,
                    start, end;

                if (values.length >= 25) {
                    start = values[values.length - 25];
                    end = values[values.length - 1];
                    chartOptions['brushExtent'] = [chUtils.getViewFinderPoint(start.x), chUtils.getViewFinderPoint(end.x)];
                }
            }

            chartViewConfig['chartData'] = chartData;
            chartViewConfig['chartOptions'] = chartOptions;

            return chartViewConfig;
        },

        updateChart: function(selector, viewConfig, dataModel) {
            var self = this,
                chartDataModel = dataModel ? dataModel : self.model(),
                data = chartDataModel.getItems();

            if (_.isFunction(viewConfig.parseFn)) {
                data = viewConfig['parseFn'](data, viewConfig.chartOptions);
            }
            //Todo remove the dependency to calculate the chartData and chartOptions via below function.
            var chartViewConfig = self.getChartViewConfig(data, viewConfig.chartOptions);
            //If legendView exist, update with new config built from new data.
            if (self.legendView) self.legendView.update(getLegendViewConfig(chartViewConfig.chartOptions, data));

            setData2Chart(self, chartViewConfig, chartDataModel, self.chartViewModel);
            updateDataStatusMessage(self, chartViewConfig, chartDataModel);
        }
    });

    function setData2Chart(self, chartViewConfig, chartDataModel, chartViewModel) {
        var chartDataObj = {
                data: chartViewConfig.chartData,
                requestState: getDataRequestState(chartViewConfig, chartDataModel)
            },
            chartOptions = chartViewConfig['chartOptions'];
        d3.select($(self.$el)[0]).select('svg').datum(chartDataObj).call(chartViewModel);
    }

    function getDataRequestState(chartViewConfig, chartDataModel) {
        var chartData = chartViewConfig.chartData,
            checkEmptyDataCB = function (data) {
                return (!data || data.length === 0 || !data.filter(function (d) { return d.values.length; }).length);
            };
        return cowu.getRequestState4Model(chartDataModel, chartData, checkEmptyDataCB);
    }

    function updateDataStatusMessage(self, chartViewConfig, dataModel) {
        var chartDataModel = dataModel || self.model(),
            chartOptions = chartViewConfig.chartOptions,
            chartDataRequestState = getDataRequestState(chartViewConfig, chartDataModel);
        if (chartOptions.defaultDataStatusMessage) {
            var messageHandler = chartOptions.statusMessageHandler;
            self.renderMessage(messageHandler(chartDataRequestState));
        } else {
            self.removeMessage();
        }
    }

    function getForceY1Axis(chartData, defaultForceY1) {
        var dataBars = chartData.filter(function (d) {
                return !d.disabled && d.bar
            }),
            dataAllBars = [], forceY1;

        for (var j = 0; j < dataBars.length; j++) {
            dataAllBars = dataAllBars.concat(dataBars[j]['values']);
        }

        forceY1 = cowu.getForceAxis4Chart(dataAllBars, "y", defaultForceY1);
        return forceY1;
    };

    function getForceY2Axis(chartData, defaultForceY2) {
        var dataLines = chartData.filter(function (d) {
                return !d.bar
            }),
            dataAllLines = [], forceY2;

        for (var i = 0; i < dataLines.length; i++) {
            dataAllLines = dataAllLines.concat(dataLines[i]['values']);
        }

        forceY2 = cowu.getForceAxis4Chart(dataAllLines, "y", defaultForceY2);
        return forceY2;
    };

    function formatLegendData(data) {
        var barData = [], lineData = [];
        _.each(data, function(obj) {
            if (obj['bar']) {
                barData.push({
                    name: obj['key'],
                    color: obj['color']
                })
            } else {
                lineData.push({
                    name: obj['key'],
                    color: obj['color']
                })
            }
        });
        return {bar: barData, line: lineData};
    };

    function getLegendViewConfig(chartOptions, data) {
        return {
            showLegend: chartOptions['showLegend'],
            legendData: [{
                label: getValueByJsonPath(chartOptions, 'title'),
                legend: formatLegendData(data).bar
            }, {
                legend: formatLegendData(data).line
            }]
        };
    }

    return LineBarWithFocusChartView;
});


text:
var expect = require('chai').expect;

var components = require("server-components");
var componentsStatic = require("../src/index.js");

describe("Server Component Static urls", () => {
    it("set an initial base content path when first used", () => {
        expect(componentsStatic.baseUrl).to.equal("/components");
    });

    it("lets components look up their own content URL", () => {
        var content = componentsStatic.forComponent("my-component");
        var url = content.getUrl("style.css");

        expect(url).to.equal("/components/my-component/style.css");
    });

    it("allows changes to the component URL base", () => {
        componentsStatic.baseUrl = "/custom-path";
        var content = componentsStatic.forComponent("my-component");
        var url = content.getUrl("style.css");

        expect(url).to.equal("/custom-path/my-component/style.css");
    });

    it("correctly uses remote base component URLs", () => {
        componentsStatic.baseUrl = "http://my-cdn.example.com/components/";
        var content = componentsStatic.forComponent("my-component");
        var url = content.getUrl("script.js");

        expect(url).to.equal("http://my-cdn.example.com/components/my-component/script.js");
    });
});

redpajama_set_name: RedPajamaGithub


text:
import * as React from 'react';
import { IGlobalContext, ISnackbarContext } from '../types/Providers';

export const GlobalContext = React.createContext<IGlobalContext>({
    alerts: null,
    applicationTitle: '',
    changePasswordForm: null,
    changePasswordTitle: '',
    errorsPasswordForm: null,
    recaptcha: null,
    showPasswordMeter: false,
    useEmail: false,
    validationRegex: null,
    usePasswordGeneration: false,
});

export const SnackbarContext = React.createContext<ISnackbarContext>({
    sendMessage: null,
});


text:
// Generated by CoffeeScript 1.3.3

(function() {
  var Selector, Sheet, extend, is_object,
    __hasProp = {}.hasOwnProperty;

  extend = function(extendedVar, object) {
    var key, value;
    for (key in object) {
      if (!__hasProp.call(object, key)) continue;
      value = object[key];
      extendedVar[key] = value;
    }
  };

  is_object = function(object) {
    return '[object Object]' === Object.prototype.toString.call(object);
  };

  Selector = (function() {

    function Selector(name, sheet) {
      this.name = name;
      this.sheet = sheet;
      this.props = {};
      this.node = document.createTextNode('');
    }

    Selector.prototype.getName = function() {
      return this.name;
    };

    Selector.prototype.properties = function(properties) {
      extend(this.props, properties);
      this.refresh();
      return this;
    };

    Selector.prototype.refresh = function() {
      var name, parts, value, _ref;
      parts = [];
      _ref = this.props;
      for (name in _ref) {
        if (!__hasProp.call(_ref, name)) continue;
        value = _ref[name];
        parts.push("" + name + ":" + value);
      }
      this.node.nodeValue = "" + this.name + " { " + (parts.join(';')) + "; }";
    };

    Selector.prototype.getNode = function() {
      return this.node;
    };

    Selector.prototype.selector = function(name, properties) {
      return this.sheet.selector(name, properties);
    };

    Selector.prototype.remove = function() {
      return this.sheet.remove(this);
    };

    return Selector;

  })();

  Sheet = (function() {

    function Sheet() {
      this.node = document.createElement('style');
      this.node.type = 'text/css';
      this.selectors = {};
      document.head.appendChild(this.node);
    }

    Sheet.prototype.selector = function(name, properties) {
      var selector;
      if (!this.selectors[name]) {
        selector = this.selectors[name] = new Selector(name, this);
        this.node.appendChild(selector.getNode());
      } else {
        selector = this.selectors[name];
      }
      if (properties) {
        selector.properties(properties);
        return this;
      }
      return selector;
    };

    Sheet.prototype.remove = function(selector) {
      if (!selector) {
        this.node.parentNode.removeChild(this.node);
        delete this.properties;
        return null;
      }
      if (typeof selector === 'string' && this.selectors[selector]) {
        this.node.removeChild(this.selectors[selector].getNode());
        delete this.selectors[selector];
      }
      if (is_object(selector)) {
        this.node.removeChild(selector.getNode());
        delete this.selectors[selector.getName()];
      }
      return this;
    };

    return Sheet;

  })();

  this.cssjs = {
    newSheet: function() {
      return new Sheet();
    }
  };

}).call(this);


text:
package org.apache.rahas.impl;

import org.apache.axiom.om.OMElement;
import org.apache.axiom.om.OMNode;
import org.apache.axiom.om.impl.dom.jaxp.DocumentBuilderFactoryImpl;
import org.apache.axiom.soap.SOAPEnvelope;
import org.apache.axis2.context.MessageContext;
import org.apache.axis2.description.Parameter;
import org.apache.rahas.*;
import org.apache.ws.security.components.crypto.Crypto;
import org.apache.ws.security.components.crypto.CryptoFactory;
import org.apache.ws.security.util.XmlSchemaDateFormat;
import org.apache.xml.security.signature.XMLSignature;
import org.opensaml.SAMLAssertion;
import org.opensaml.SAMLException;
import org.w3c.dom.Element;
import org.w3c.dom.Node;

import java.security.cert.X509Certificate;
import java.text.DateFormat;
import java.util.Arrays;
import java.util.Date;

public class SAMLTokenRenewer implements TokenRenewer {

    private String configParamName;

    private OMElement configElement;

    private String configFile;

    public SOAPEnvelope renew(RahasData data) throws TrustException {

        // retrieve the message context
        MessageContext inMsgCtx = data.getInMessageContext();
        // retrieve the list of tokens from the message context
        TokenStorage tkStorage = TrustUtil.getTokenStore(inMsgCtx);
        SAMLTokenIssuerConfig config = setConfig(inMsgCtx);

        try {
            // Set the DOM impl to DOOM
            DocumentBuilderFactoryImpl.setDOOMRequired(true);
            // Create envelope
            SOAPEnvelope env = TrustUtil.createSOAPEnvelope(inMsgCtx
                    .getEnvelope().getNamespace().getNamespaceURI());
            // Create RSTR element, with respective version. Here the env is passing from the reference
            OMElement rstrElem = buildResponse(inMsgCtx, data, env, RahasConstants.TOK_TYPE_SAML_10);
            int wstVersion = data.getVersion();
            // Creation and expiration times
            Date creationTime = new Date();
            Date expirationTime = new Date();
            expirationTime.setTime(creationTime.getTime() + config.ttl);
            // Use GMT time in milliseconds
            DateFormat zulu = new XmlSchemaDateFormat();
            // Add the Lifetime element
            TrustUtil.createLifetimeElement(wstVersion, rstrElem, zulu
                    .format(creationTime), zulu.format(expirationTime));
            // Obtain the token and create the samlAssertion
            Token tk = tkStorage.getToken(data.getTokenId());
            OMElement assertionOMElement = tk.getToken();
            SAMLAssertion samlAssertion = null;

            try {
                samlAssertion = new SAMLAssertion((Element) assertionOMElement);
                samlAssertion.unsign();
                samlAssertion.setNotBefore(creationTime);
                samlAssertion.setNotOnOrAfter(expirationTime);
                Crypto crypto = getCrypto(inMsgCtx, config);
                // sign the assertion()
                samlAssertion = signAssertion(crypto,samlAssertion,config);
                // Create the RequestedSecurityToken element and add the SAML token
                // to it
                OMElement reqSecTokenElem = TrustUtil
                        .createRequestedSecurityTokenElement(wstVersion, rstrElem);
                Node tempNode = samlAssertion.toDOM();
                reqSecTokenElem.addChild((OMNode) ((Element) rstrElem)
                        .getOwnerDocument().importNode(tempNode, true));
            } catch (SAMLException e) {
                throw new TrustException("Cannot Create SAML Assertion",e);
            } catch (Exception e) {
                throw new TrustException("Cannot Create SAML Assertion",e);
            }
            return env;
        } finally {
            DocumentBuilderFactoryImpl.setDOOMRequired(false);
        }
    }

    /**
     * sign the SAML 1.1 assertion.
     * @param crypto
     * @param samlAssertion
     * @param config
     * @return
     * @throws Exception
     */
    protected SAMLAssertion signAssertion(Crypto crypto, SAMLAssertion samlAssertion, SAMLTokenIssuerConfig config ) throws Exception {
        X509Certificate[] issuerCerts = crypto
                .getCertificates(config.issuerKeyAlias);
        String sigAlgo = XMLSignature.ALGO_ID_SIGNATURE_RSA;
        String pubKeyAlgo = issuerCerts[0].getPublicKey().getAlgorithm();
        if (pubKeyAlgo.equalsIgnoreCase("DSA")) {
            sigAlgo = XMLSignature.ALGO_ID_SIGNATURE_DSA;
        }
        java.security.Key issuerPK = crypto.getPrivateKey(
                config.issuerKeyAlias, config.issuerKeyPassword);
        samlAssertion.sign(sigAlgo, issuerPK, Arrays.asList(issuerCerts));
        return samlAssertion;
    }

    /**
     * create the crypto from configuration. Used in SAML2tokenRenewer as well
     * @param inMsgCtx
     * @param config
     * @return
     */
    protected Crypto getCrypto(MessageContext inMsgCtx, SAMLTokenIssuerConfig config){
        Crypto crypto;
        if (config.cryptoElement != null) {
            // crypto props defined as elements
            crypto = CryptoFactory.getInstance(TrustUtil
                    .toProperties(config.cryptoElement), inMsgCtx
                    .getAxisService().getClassLoader());
        } else {
            // crypto props defined in a properties file
            crypto = CryptoFactory.getInstance(config.cryptoPropertiesFile,
                    inMsgCtx.getAxisService().getClassLoader());
        }
        return crypto;
    }

    /**
     * set the configuration for SAML 1.1 and 2.0 renewing
     * @param inMsgCtx
     * @return
     * @throws TrustException
     */
    protected SAMLTokenIssuerConfig setConfig(MessageContext inMsgCtx) throws TrustException {
        SAMLTokenIssuerConfig config = null;
        if (this.configElement != null) {
            config = new SAMLTokenIssuerConfig(configElement
                    .getFirstChildWithName(SAMLTokenIssuerConfig.SAML_ISSUER_CONFIG));
        }
        // Look for the file
        if (config == null && this.configFile != null) {
            config = new SAMLTokenIssuerConfig(this.configFile);
        }
        // Look for the param
        if (config == null && this.configParamName != null) {
            Parameter param = inMsgCtx.getParameter(this.configParamName);
            if (param != null && param.getParameterElement() != null) {
                config = new SAMLTokenIssuerConfig(param
                        .getParameterElement().getFirstChildWithName(
                                SAMLTokenIssuerConfig.SAML_ISSUER_CONFIG));
            } else {
                throw new TrustException("expectedParameterMissing",
                        new String[] { this.configParamName });
            }
        }
        if (config == null) {
            throw new TrustException("configurationIsNull");
        }
        if(config.isTokenStoreDisabled()){
            throw new TrustException("errorTokenStoreDisabled");
        }
        //initialize and set token persister and config in configuration context.
        if (TokenIssuerUtil.isPersisterConfigured(config)) {
            TokenIssuerUtil.manageTokenPersistenceSettings(config, inMsgCtx);
        }
        return config;
    }

    /**
     * create the RSTR element with the token type
     * @param inMsgCtx
     * @param data
     * @param env
     * @param tokenType
     * @return
     * @throws TrustException
     */
    protected OMElement buildResponse(MessageContext inMsgCtx, RahasData data, SOAPEnvelope env, String tokenType) throws TrustException {
        // Create RSTR element, with respective version
        OMElement rstrElem;
        int wstVersion = data.getVersion();
        if (RahasConstants.VERSION_05_02 == wstVersion) {
            rstrElem = TrustUtil.createRequestSecurityTokenResponseElement(
                    wstVersion, env.getBody());
        } else {
            OMElement rstrcElem = TrustUtil
                    .createRequestSecurityTokenResponseCollectionElement(
                            wstVersion, env.getBody());
            rstrElem = TrustUtil.createRequestSecurityTokenResponseElement(
                    wstVersion, rstrcElem);
        }
        // Create TokenType element
        TrustUtil.createTokenTypeElement(wstVersion, rstrElem).setText(
                tokenType);
        return rstrElem;
    }

    /**
     * {@inheritDoc}
     */
    public void setConfigurationFile(String configFile) {
        this.configFile = configFile;
    }

    /**
     * {@inheritDoc}
     */
    public void setConfigurationElement(OMElement configElement) {
        this.configElement = configElement;
    }

    /**
     * {@inheritDoc}
     */
    public void setConfigurationParamName(String configParamName) {
        this.configParamName = configParamName;
    }

}


text:
cd weboob
source env/bin/activate
args=`while read x ; do echo $x ; done`
python py/operations.py << EOF
    $args
EOF


text:
import json

class JSONSerializer(object):
    """Serializer to be used in session storage."""

    def dumps(self, obj):
        return json.dumps(obj, separators=(',', ':')).encode('latin-1')

    def loads(self, data):
        return json.loads(data.decode('latin-1'))


text:
from google.protobuf import descriptor
from google.protobuf import message
from google.protobuf import reflection
from google.protobuf import service
from google.protobuf import service_reflection
from google.protobuf import descriptor_pb2
_HEADLOCATIONS = descriptor.EnumDescriptor(
  name='HeadLocations',
  full_name='HeadLocations',
  filename='HeadLocations',
  values=[
    descriptor.EnumValueDescriptor(
      name='NZ', index=0, number=1,
      options=None,
      type=None),
    descriptor.EnumValueDescriptor(
      name='FP1', index=1, number=2,
      options=None,
      type=None),
    descriptor.EnumValueDescriptor(
      name='FPZ', index=2, number=3,
      options=None,
      type=None),
    descriptor.EnumValueDescriptor(
      name='FP2', index=3, number=4,
      options=None,
      type=None),
    descriptor.EnumValueDescriptor(
      name='AF7', index=4, number=5,
      options=None,
      type=None),
    descriptor.EnumValueDescriptor(
      name='AF3', index=5, number=6,
      options=None,
      type=None),
    descriptor.EnumValueDescriptor(
      name='AFZ', index=6, number=7,
      options=None,
      type=None),
    descriptor.EnumValueDescriptor(
      name='AF4', index=7, number=8,
      options=None,
      type=None),
    descriptor.EnumValueDescriptor(
      name='AF8', index=8, number=9,
      options=None,
      type=None),
    descriptor.EnumValueDescriptor(
      name='F9', index=9, number=10,
      options=None,
      type=None),
    descriptor.EnumValueDescriptor(
      name='F7', index=10, number=11,
      options=None,
      type=None),
    descriptor.EnumValueDescriptor(
      name='F5', index=11, number=12,
      options=None,
      type=None),
    descriptor.EnumValueDescriptor(
      name='F3', index=12, number=13,
      options=None,
      type=None),
    descriptor.EnumValueDescriptor(
      name='F1', index=13, number=14,
      options=None,
      type=None),
    descriptor.EnumValueDescriptor(
      name='FZ', index=14, number=15,
      options=None,
      type=None),
    descriptor.EnumValueDescriptor(
      name='F2', index=15, number=16,
      options=None,
      type=None),
    descriptor.EnumValueDescriptor(
      name='F4', index=16, number=17,
      options=None,
      type=None),
    descriptor.EnumValueDescriptor(
      name='F6', index=17, number=18,
      options=None,
      type=None),
    descriptor.EnumValueDescriptor(
      name='F8', index=18, number=19,
      options=None,
      type=None),
    descriptor.EnumValueDescriptor(
      name='F10', index=19, number=20,
      options=None,
      type=None),
    descriptor.EnumValueDescriptor(
      name='FT9', index=20, number=21,
      options=None,
      type=None),
    descriptor.EnumValueDescriptor(
      name='FT7', index=21, number=22,
      options=None,
      type=None),
    descriptor.EnumValueDescriptor(
      name='FC5', index=22, number=23,
      options=None,
      type=None),
    descriptor.EnumValueDescriptor(
      name='FC3', index=23, number=24,
      options=None,
      type=None),
    descriptor.EnumValueDescriptor(
      name='FC1', index=24, number=25,
      options=None,
      type=None),
    descriptor.EnumValueDescriptor(
      name='FCZ', index=25, number=26,
      options=None,
      type=None),
    descriptor.EnumValueDescriptor(
      name='FC2', index=26, number=27,
      options=None,
      type=None),
    descriptor.EnumValueDescriptor(
      name='FC4', index=27, number=28,
      options=None,
      type=None),
    descriptor.EnumValueDescriptor(
      name='FC6', index=28, number=29,
      options=None,
      type=None),
    descriptor.EnumValueDescriptor(
      name='FT8', index=29, number=30,
      options=None,
      type=None),
    descriptor.EnumValueDescriptor(
      name='FT10', index=30, number=31,
      options=None,
      type=None),
    descriptor.EnumValueDescriptor(
      name='A1', index=31, number=32,
      options=None,
      type=None),
    descriptor.EnumValueDescriptor(
      name='T9', index=32, number=33,
      options=None,
      type=None),
    descriptor.EnumValueDescriptor(
      name='T7', index=33, number=34,
      options=None,
      type=None),
    descriptor.EnumValueDescriptor(
      name='C5', index=34, number=35,
      options=None,
      type=None),
    descriptor.EnumValueDescriptor(
      name='C3', index=35, number=36,
      options=None,
      type=None),
    descriptor.EnumValueDescriptor(
      name='C1', index=36, number=37,
      options=None,
      type=None),
    descriptor.EnumValueDescriptor(
      name='CZ', index=37, number=38,
      options=None,
      type=None),
    descriptor.EnumValueDescriptor(
      name='C2', index=38, number=39,
      options=None,
      type=None),
    descriptor.EnumValueDescriptor(
      name='C4', index=39, number=40,
      options=None,
      type=None),
    descriptor.EnumValueDescriptor(
      name='C6', index=40, number=41,
      options=None,
      type=None),
    descriptor.EnumValueDescriptor(
      name='T8', index=41, number=42,
      options=None,
      type=None),
    descriptor.EnumValueDescriptor(
      name='T10', index=42, number=43,
      options=None,
      type=None),
    descriptor.EnumValueDescriptor(
      name='A2', index=43, number=44,
      options=None,
      type=None),
    descriptor.EnumValueDescriptor(
      name='TP9', index=44, number=45,
      options=None,
      type=None),
    descriptor.EnumValueDescriptor(
      name='TP7', index=45, number=46,
      options=None,
      type=None),
    descriptor.EnumValueDescriptor(
      name='CP5', index=46, number=47,
      options=None,
      type=None),
    descriptor.EnumValueDescriptor(
      name='CP3', index=47, number=48,
      options=None,
      type=None),
    descriptor.EnumValueDescriptor(
      name='CP1', index=48, number=49,
      options=None,
      type=None),
    descriptor.EnumValueDescriptor(
      name='CPZ', index=49, number=50,
      options=None,
      type=None),
    descriptor.EnumValueDescriptor(
      name='CP2', index=50, number=51,
      options=None,
      type=None),
    descriptor.EnumValueDescriptor(
      name='CP4', index=51, number=52,
      options=None,
      type=None),
    descriptor.EnumValueDescriptor(
      name='CP6', index=52, number=53,
      options=None,
      type=None),
    descriptor.EnumValueDescriptor(
      name='TP8', index=53, number=54,
      options=None,
      type=None),
    descriptor.EnumValueDescriptor(
      name='TP10', index=54, number=55,
      options=None,
      type=None),
    descriptor.EnumValueDescriptor(
      name='P9', index=55, number=56,
      options=None,
      type=None),
    descriptor.EnumValueDescriptor(
      name='P7', index=56, number=57,
      options=None,
      type=None),
    descriptor.EnumValueDescriptor(
      name='P5', index=57, number=58,
      options=None,
      type=None),
    descriptor.EnumValueDescriptor(
      name='P3', index=58, number=59,
      options=None,
      type=None),
    descriptor.EnumValueDescriptor(
      name='P1', index=59, number=60,
      options=None,
      type=None),
    descriptor.EnumValueDescriptor(
      name='PZ', index=60, number=61,
      options=None,
      type=None),
    descriptor.EnumValueDescriptor(
      name='P2', index=61, number=62,
      options=None,
      type=None),
    descriptor.EnumValueDescriptor(
      name='P4', index=62, number=63,
      options=None,
      type=None),
    descriptor.EnumValueDescriptor(
      name='P6', index=63, number=64,
      options=None,
      type=None),
    descriptor.EnumValueDescriptor(
      name='P8', index=64, number=65,
      options=None,
      type=None),
    descriptor.EnumValueDescriptor(
      name='P10', index=65, number=66,
      options=None,
      type=None),
    descriptor.EnumValueDescriptor(
      name='PO7', index=66, number=67,
      options=None,
      type=None),
    descriptor.EnumValueDescriptor(
      name='PO3', index=67, number=68,
      options=None,
      type=None),
    descriptor.EnumValueDescriptor(
      name='POZ', index=68, number=69,
      options=None,
      type=None),
    descriptor.EnumValueDescriptor(
      name='PO4', index=69, number=70,
      options=None,
      type=None),
    descriptor.EnumValueDescriptor(
      name='PO8', index=70, number=71,
      options=None,
      type=None),
    descriptor.EnumValueDescriptor(
      name='O1', index=71, number=72,
      options=None,
      type=None),
    descriptor.EnumValueDescriptor(
      name='OZ', index=72, number=73,
      options=None,
      type=None),
    descriptor.EnumValueDescriptor(
      name='O2', index=73, number=74,
      options=None,
      type=None),
    descriptor.EnumValueDescriptor(
      name='IZ', index=74, number=75,
      options=None,
      type=None),
    descriptor.EnumValueDescriptor(
      name='AUX1', index=75, number=76,
      options=None,
      type=None),
    descriptor.EnumValueDescriptor(
      name='AUX2', index=76, number=77,
      options=None,
      type=None),
    descriptor.EnumValueDescriptor(
      name='AUX3', index=77, number=78,
      options=None,
      type=None),
    descriptor.EnumValueDescriptor(
      name='AUX4', index=78, number=79,
      options=None,
      type=None),
    descriptor.EnumValueDescriptor(
      name='MUSE_LEFT_AUX', index=79, number=80,
      options=None,
      type=None),
    descriptor.EnumValueDescriptor(
      name='MUSE_RIGHT_AUX', index=80, number=81,
      options=None,
      type=None),
  ],
  options=None,
)

_EEGUNITS = descriptor.EnumDescriptor(
  name='EEGUnits',
  full_name='EEGUnits',
  filename='EEGUnits',
  values=[
    descriptor.EnumValueDescriptor(
      name='EEG_MICROVOLTS', index=0, number=1,
      options=None,
      type=None),
    descriptor.EnumValueDescriptor(
      name='EEG_MUSE1_RAW', index=1, number=2,
      options=None,
      type=None),
  ],
  options=None,
)

_ACCELEROMETERUNITS = descriptor.EnumDescriptor(
  name='AccelerometerUnits',
  full_name='AccelerometerUnits',
  filename='AccelerometerUnits',
  values=[
    descriptor.EnumValueDescriptor(
      name='ACC_GFORCE', index=0, number=1,
      options=None,
      type=None),
    descriptor.EnumValueDescriptor(
      name='ACC_MUSE1_RAW', index=1, number=2,
      options=None,
      type=None),
  ],
  options=None,
)

NZ = 1
FP1 = 2
FPZ = 3
FP2 = 4
AF7 = 5
AF3 = 6
AFZ = 7
AF4 = 8
AF8 = 9
F9 = 10
F7 = 11
F5 = 12
F3 = 13
F1 = 14
FZ = 15
F2 = 16
F4 = 17
F6 = 18
F8 = 19
F10 = 20
FT9 = 21
FT7 = 22
FC5 = 23
FC3 = 24
FC1 = 25
FCZ = 26
FC2 = 27
FC4 = 28
FC6 = 29
FT8 = 30
FT10 = 31
A1 = 32
T9 = 33
T7 = 34
C5 = 35
C3 = 36
C1 = 37
CZ = 38
C2 = 39
C4 = 40
C6 = 41
T8 = 42
T10 = 43
A2 = 44
TP9 = 45
TP7 = 46
CP5 = 47
CP3 = 48
CP1 = 49
CPZ = 50
CP2 = 51
CP4 = 52
CP6 = 53
TP8 = 54
TP10 = 55
P9 = 56
P7 = 57
P5 = 58
P3 = 59
P1 = 60
PZ = 61
P2 = 62
P4 = 63
P6 = 64
P8 = 65
P10 = 66
PO7 = 67
PO3 = 68
POZ = 69
PO4 = 70
PO8 = 71
O1 = 72
OZ = 73
O2 = 74
IZ = 75
AUX1 = 76
AUX2 = 77
AUX3 = 78
AUX4 = 79
MUSE_LEFT_AUX = 80
MUSE_RIGHT_AUX = 81
EEG_MICROVOLTS = 1
EEG_MUSE1_RAW = 2
ACC_GFORCE = 1
ACC_MUSE1_RAW = 2

_MUSEDATA_DATATYPE = descriptor.EnumDescriptor(
  name='Datatype',
  full_name='MuseData.Datatype',
  filename='Datatype',
  values=[
    descriptor.EnumValueDescriptor(
      name='EEG', index=0, number=0,
      options=None,
      type=None),
    descriptor.EnumValueDescriptor(
      name='QUANT', index=1, number=1,
      options=None,
      type=None),
    descriptor.EnumValueDescriptor(
      name='ACCEL', index=2, number=2,
      options=None,
      type=None),
    descriptor.EnumValueDescriptor(
      name='BATTERY', index=3, number=3,
      options=None,
      type=None),
    descriptor.EnumValueDescriptor(
      name='VERSION', index=4, number=4,
      options=None,
      type=None),
    descriptor.EnumValueDescriptor(
      name='CONFIG', index=5, number=5,
      options=None,
      type=None),
    descriptor.EnumValueDescriptor(
      name='ANNOTATION', index=6, number=6,
      options=None,
      type=None),
    descriptor.EnumValueDescriptor(
      name='HISTOGRAM', index=7, number=7,
      options=None,
      type=None),
    descriptor.EnumValueDescriptor(
      name='ALGVALUE', index=8, number=8,
      options=None,
      type=None),
    descriptor.EnumValueDescriptor(
      name='DSP', index=9, number=9,
      options=None,
      type=None),
    descriptor.EnumValueDescriptor(
      name='COMPUTING_DEVICE', index=10, number=10,
      options=None,
      type=None),
    descriptor.EnumValueDescriptor(
      name='EEG_DROPPED', index=11, number=11,
      options=None,
      type=None),
    descriptor.EnumValueDescriptor(
      name='ACC_DROPPED', index=12, number=12,
      options=None,
      type=None),
    descriptor.EnumValueDescriptor(
      name='CALM_APP', index=13, number=13,
      options=None,
      type=None),
    descriptor.EnumValueDescriptor(
      name='CALM_ALG', index=14, number=14,
      options=None,
      type=None),
  ],
  options=None,
)

_ANNOTATION_FORMAT = descriptor.EnumDescriptor(
  name='Format',
  full_name='Annotation.Format',
  filename='Format',
  values=[
    descriptor.EnumValueDescriptor(
      name='PLAIN_STRING', index=0, number=0,
      options=None,
      type=None),
    descriptor.EnumValueDescriptor(
      name='JSON', index=1, number=1,
      options=None,
      type=None),
    descriptor.EnumValueDescriptor(
      name='OSC', index=2, number=2,
      options=None,
      type=None),
  ],
  options=None,
)

_MUSEDATACOLLECTION = descriptor.Descriptor(
  name='MuseDataCollection',
  full_name='MuseDataCollection',
  filename='Muse_v2.proto',
  containing_type=None,
  fields=[
    descriptor.FieldDescriptor(
      name='collection', full_name='MuseDataCollection.collection', index=0,
      number=1, type=11, cpp_type=10, label=3,
      default_value=[],
      message_type=None, enum_type=None, containing_type=None,
      is_extension=False, extension_scope=None,
      options=None),
  ],
  extensions=[
  ],
  nested_types=[],  # TODO(robinson): Implement.
  enum_types=[
  ],
  options=None)

_MUSEDATA = descriptor.Descriptor(
  name='MuseData',
  full_name='MuseData',
  filename='Muse_v2.proto',
  containing_type=None,
  fields=[
    descriptor.FieldDescriptor(
      name='timestamp', full_name='MuseData.timestamp', index=0,
      number=1, type=1, cpp_type=5, label=2,
      default_value=0,
      message_type=None, enum_type=None, containing_type=None,
      is_extension=False, extension_scope=None,
      options=None),
    descriptor.FieldDescriptor(
      name='datatype', full_name='MuseData.datatype', index=1,
      number=2, type=14, cpp_type=8, label=2,
      default_value=0,
      message_type=None, enum_type=None, containing_type=None,
      is_extension=False, extension_scope=None,
      options=None),
    descriptor.FieldDescriptor(
      name='config_id', full_name='MuseData.config_id', index=2,
      number=3, type=4, cpp_type=4, label=1,
      default_value=0,
      message_type=None, enum_type=None, containing_type=None,
      is_extension=False, extension_scope=None,
      options=None),
  ],
  extensions=[
  ],
  nested_types=[],  # TODO(robinson): Implement.
  enum_types=[
    _MUSEDATA_DATATYPE,
  ],
  options=None)

_EEG = descriptor.Descriptor(
  name='EEG',
  full_name='EEG',
  filename='Muse_v2.proto',
  containing_type=None,
  fields=[
    descriptor.FieldDescriptor(
      name='values', full_name='EEG.values', index=0,
      number=2, type=2, cpp_type=6, label=3,
      default_value=[],
      message_type=None, enum_type=None, containing_type=None,
      is_extension=False, extension_scope=None,
      options=None),
    descriptor.FieldDescriptor(
      name='drl', full_name='EEG.drl', index=1,
      number=5, type=2, cpp_type=6, label=1,
      default_value=0,
      message_type=None, enum_type=None, containing_type=None,
      is_extension=False, extension_scope=None,
      options=None),
    descriptor.FieldDescriptor(
      name='ref', full_name='EEG.ref', index=2,
      number=6, type=2, cpp_type=6, label=1,
      default_value=0,
      message_type=None, enum_type=None, containing_type=None,
      is_extension=False, extension_scope=None,
      options=None),
  ],
  extensions=[
    descriptor.FieldDescriptor(
      name='museData', full_name='EEG.museData', index=0,
      number=8, type=11, cpp_type=10, label=2,
      default_value=None,
      message_type=None, enum_type=None, containing_type=None,
      is_extension=True, extension_scope=None,
      options=None),
  ],
  nested_types=[],  # TODO(robinson): Implement.
  enum_types=[
  ],
  options=None)

_MUSEQUANTIZATION = descriptor.Descriptor(
  name='MuseQuantization',
  full_name='MuseQuantization',
  filename='Muse_v2.proto',
  containing_type=None,
  fields=[
    descriptor.FieldDescriptor(
      name='values', full_name='MuseQuantization.values', index=0,
      number=1, type=13, cpp_type=3, label=3,
      default_value=[],
      message_type=None, enum_type=None, containing_type=None,
      is_extension=False, extension_scope=None,
      options=None),
  ],
  extensions=[
    descriptor.FieldDescriptor(
      name='museData', full_name='MuseQuantization.museData', index=0,
      number=9, type=11, cpp_type=10, label=2,
      default_value=None,
      message_type=None, enum_type=None, containing_type=None,
      is_extension=True, extension_scope=None,
      options=None),
  ],
  nested_types=[],  # TODO(robinson): Implement.
  enum_types=[
  ],
  options=None)

_ACCELEROMETER = descriptor.Descriptor(
  name='Accelerometer',
  full_name='Accelerometer',
  filename='Muse_v2.proto',
  containing_type=None,
  fields=[
    descriptor.FieldDescriptor(
      name='acc1', full_name='Accelerometer.acc1', index=0,
      number=1, type=2, cpp_type=6, label=1,
      default_value=0,
      message_type=None, enum_type=None, containing_type=None,
      is_extension=False, extension_scope=None,
      options=None),
    descriptor.FieldDescriptor(
      name='acc2', full_name='Accelerometer.acc2', index=1,
      number=2, type=2, cpp_type=6, label=1,
      default_value=0,
      message_type=None, enum_type=None, containing_type=None,
      is_extension=False, extension_scope=None,
      options=None),
    descriptor.FieldDescriptor(
      name='acc3', full_name='Accelerometer.acc3', index=2,
      number=3, type=2, cpp_type=6, label=1,
      default_value=0,
      message_type=None, enum_type=None, containing_type=None,
      is_extension=False, extension_scope=None,
      options=None),
  ],
  extensions=[
    descriptor.FieldDescriptor(
      name='museData', full_name='Accelerometer.museData', index=0,
      number=10, type=11, cpp_type=10, label=2,
      default_value=None,
      message_type=None, enum_type=None, containing_type=None,
      is_extension=True, extension_scope=None,
      options=None),
  ],
  nested_types=[],  # TODO(robinson): Implement.
  enum_types=[
  ],
  options=None)

_ANNOTATION = descriptor.Descriptor(
  name='Annotation',
  full_name='Annotation',
  filename='Muse_v2.proto',
  containing_type=None,
  fields=[
    descriptor.FieldDescriptor(
      name='event_data', full_name='Annotation.event_data', index=0,
      number=1, type=9, cpp_type=9, label=1,
      default_value=unicode("", "utf-8"),
      message_type=None, enum_type=None, containing_type=None,
      is_extension=False, extension_scope=None,
      options=None),
    descriptor.FieldDescriptor(
      name='event_data_format', full_name='Annotation.event_data_format', index=1,
      number=2, type=14, cpp_type=8, label=1,
      default_value=0,
      message_type=None, enum_type=None, containing_type=None,
      is_extension=False, extension_scope=None,
      options=None),
    descriptor.FieldDescriptor(
      name='event_type', full_name='Annotation.event_type', index=2,
      number=3, type=9, cpp_type=9, label=1,
      default_value=unicode("", "utf-8"),
      message_type=None, enum_type=None, containing_type=None,
      is_extension=False, extension_scope=None,
      options=None),
    descriptor.FieldDescriptor(
      name='event_id', full_name='Annotation.event_id', index=3,
      number=4, type=9, cpp_type=9, label=1,
      default_value=unicode("", "utf-8"),
      message_type=None, enum_type=None, containing_type=None,
      is_extension=False, extension_scope=None,
      options=None),
    descriptor.FieldDescriptor(
      name='parent_id', full_name='Annotation.parent_id', index=4,
      number=5, type=9, cpp_type=9, label=1,
      default_value=unicode("", "utf-8"),
      message_type=None, enum_type=None, containing_type=None,
      is_extension=False, extension_scope=None,
      options=None),
  ],
  extensions=[
    descriptor.FieldDescriptor(
      name='museData', full_name='Annotation.museData', index=0,
      number=100, type=11, cpp_type=10, label=2,
      default_value=None,
      message_type=None, enum_type=None, containing_type=None,
      is_extension=True, extension_scope=None,
      options=None),
  ],
  nested_types=[],  # TODO(robinson): Implement.
  enum_types=[
    _ANNOTATION_FORMAT,
  ],
  options=None)

_BATTERY = descriptor.Descriptor(
  name='Battery',
  full_name='Battery',
  filename='Muse_v2.proto',
  containing_type=None,
  fields=[
    descriptor.FieldDescriptor(
      name='percent_remaining', full_name='Battery.percent_remaining', index=0,
      number=1, type=13, cpp_type=3, label=1,
      default_value=0,
      message_type=None, enum_type=None, containing_type=None,
      is_extension=False, extension_scope=None,
      options=None),
    descriptor.FieldDescriptor(
      name='battery_fuel_gauge_millivolts', full_name='Battery.battery_fuel_gauge_millivolts', index=1,
      number=2, type=13, cpp_type=3, label=1,
      default_value=0,
      message_type=None, enum_type=None, containing_type=None,
      is_extension=False, extension_scope=None,
      options=None),
    descriptor.FieldDescriptor(
      name='battery_adc_millivolts', full_name='Battery.battery_adc_millivolts', index=2,
      number=3, type=13, cpp_type=3, label=1,
      default_value=0,
      message_type=None, enum_type=None, containing_type=None,
      is_extension=False, extension_scope=None,
      options=None),
    descriptor.FieldDescriptor(
      name='temperature_celsius', full_name='Battery.temperature_celsius', index=3,
      number=4, type=17, cpp_type=1, label=1,
      default_value=0,
      message_type=None, enum_type=None, containing_type=None,
      is_extension=False, extension_scope=None,
      options=None),
  ],
  extensions=[
    descriptor.FieldDescriptor(
      name='museData', full_name='Battery.museData', index=0,
      number=101, type=11, cpp_type=10, label=2,
      default_value=None,
      message_type=None, enum_type=None, containing_type=None,
      is_extension=True, extension_scope=None,
      options=None),
  ],
  nested_types=[],  # TODO(robinson): Implement.
  enum_types=[
  ],
  options=None)

_MUSEVERSION = descriptor.Descriptor(
  name='MuseVersion',
  full_name='MuseVersion',
  filename='Muse_v2.proto',
  containing_type=None,
  fields=[
    descriptor.FieldDescriptor(
      name='hardware_version', full_name='MuseVersion.hardware_version', index=0,
      number=1, type=9, cpp_type=9, label=1,
      default_value=unicode("", "utf-8"),
      message_type=None, enum_type=None, containing_type=None,
      is_extension=False, extension_scope=None,
      options=None),
    descriptor.FieldDescriptor(
      name='firmware_headset_version', full_name='MuseVersion.firmware_headset_version', index=1,
      number=2, type=9, cpp_type=9, label=1,
      default_value=unicode("", "utf-8"),
      message_type=None, enum_type=None, containing_type=None,
      is_extension=False, extension_scope=None,
      options=None),
    descriptor.FieldDescriptor(
      name='firmware_type', full_name='MuseVersion.firmware_type', index=2,
      number=3, type=9, cpp_type=9, label=1,
      default_value=unicode("", "utf-8"),
      message_type=None, enum_type=None, containing_type=None,
      is_extension=False, extension_scope=None,
      options=None),
    descriptor.FieldDescriptor(
      name='firmware_bootloader_version', full_name='MuseVersion.firmware_bootloader_version', index=3,
      number=4, type=9, cpp_type=9, label=1,
      default_value=unicode("", "utf-8"),
      message_type=None, enum_type=None, containing_type=None,
      is_extension=False, extension_scope=None,
      options=None),
    descriptor.FieldDescriptor(
      name='build_number', full_name='MuseVersion.build_number', index=4,
      number=5, type=9, cpp_type=9, label=1,
      default_value=unicode("", "utf-8"),
      message_type=None, enum_type=None, containing_type=None,
      is_extension=False, extension_scope=None,
      options=None),
    descriptor.FieldDescriptor(
      name='protocol_version', full_name='MuseVersion.protocol_version', index=5,
      number=6, type=9, cpp_type=9, label=1,
      default_value=unicode("", "utf-8"),
      message_type=None, enum_type=None, containing_type=None,
      is_extension=False, extension_scope=None,
      options=None),
  ],
  extensions=[
    descriptor.FieldDescriptor(
      name='museData', full_name='MuseVersion.museData', index=0,
      number=102, type=11, cpp_type=10, label=2,
      default_value=None,
      message_type=None, enum_type=None, containing_type=None,
      is_extension=True, extension_scope=None,
      options=None),
  ],
  nested_types=[],  # TODO(robinson): Implement.
  enum_types=[
  ],
  options=None)

_MUSECONFIG = descriptor.Descriptor(
  name='MuseConfig',
  full_name='MuseConfig',
  filename='Muse_v2.proto',
  containing_type=None,
  fields=[
    descriptor.FieldDescriptor(
      name='mac_addr', full_name='MuseConfig.mac_addr', index=0,
      number=1, type=9, cpp_type=9, label=1,
      default_value=unicode("", "utf-8"),
      message_type=None, enum_type=None, containing_type=None,
      is_extension=False, extension_scope=None,
      options=None),
    descriptor.FieldDescriptor(
      name='serial_number', full_name='MuseConfig.serial_number', index=1,
      number=2, type=9, cpp_type=9, label=1,
      default_value=unicode("", "utf-8"),
      message_type=None, enum_type=None, containing_type=None,
      is_extension=False, extension_scope=None,
      options=None),
    descriptor.FieldDescriptor(
      name='preset', full_name='MuseConfig.preset', index=2,
      number=3, type=9, cpp_type=9, label=1,
      default_value=unicode("", "utf-8"),
      message_type=None, enum_type=None, containing_type=None,
      is_extension=False, extension_scope=None,
      options=None),
    descriptor.FieldDescriptor(
      name='compression_enabled', full_name='MuseConfig.compression_enabled', index=3,
      number=100, type=8, cpp_type=7, label=1,
      default_value=False,
      message_type=None, enum_type=None, containing_type=None,
      is_extension=False, extension_scope=None,
      options=None),
    descriptor.FieldDescriptor(
      name='filters_enabled', full_name='MuseConfig.filters_enabled', index=4,
      number=201, type=8, cpp_type=7, label=1,
      default_value=False,
      message_type=None, enum_type=None, containing_type=None,
      is_extension=False, extension_scope=None,
      options=None),
    descriptor.FieldDescriptor(
      name='notch_frequency_hz', full_name='MuseConfig.notch_frequency_hz', index=5,
      number=202, type=13, cpp_type=3, label=1,
      default_value=0,
      message_type=None, enum_type=None, containing_type=None,
      is_extension=False, extension_scope=None,
      options=None),
    descriptor.FieldDescriptor(
      name='eeg_sample_frequency_hz', full_name='MuseConfig.eeg_sample_frequency_hz', index=6,
      number=203, type=13, cpp_type=3, label=1,
      default_value=0,
      message_type=None, enum_type=None, containing_type=None,
      is_extension=False, extension_scope=None,
      options=None),
    descriptor.FieldDescriptor(
      name='eeg_output_frequency_hz', full_name='MuseConfig.eeg_output_frequency_hz', index=7,
      number=204, type=13, cpp_type=3, label=1,
      default_value=0,
      message_type=None, enum_type=None, containing_type=None,
      is_extension=False, extension_scope=None,
      options=None),
    descriptor.FieldDescriptor(
      name='eeg_samples_bitwidth', full_name='MuseConfig.eeg_samples_bitwidth', index=8,
      number=205, type=13, cpp_type=3, label=1,
      default_value=0,
      message_type=None, enum_type=None, containing_type=None,
      is_extension=False, extension_scope=None,
      options=None),
    descriptor.FieldDescriptor(
      name='eeg_channel_count', full_name='MuseConfig.eeg_channel_count', index=9,
      number=206, type=13, cpp_type=3, label=1,
      default_value=0,
      message_type=None, enum_type=None, containing_type=None,
      is_extension=False, extension_scope=None,
      options=None),
    descriptor.FieldDescriptor(
      name='eeg_channel_layout', full_name='MuseConfig.eeg_channel_layout', index=10,
      number=207, type=9, cpp_type=9, label=1,
      default_value=unicode("", "utf-8"),
      message_type=None, enum_type=None, containing_type=None,
      is_extension=False, extension_scope=None,
      options=None),
    descriptor.FieldDescriptor(
      name='eeg_downsample', full_name='MuseConfig.eeg_downsample', index=11,
      number=208, type=13, cpp_type=3, label=1,
      default_value=0,
      message_type=None, enum_type=None, containing_type=None,
      is_extension=False, extension_scope=None,
      options=None),
    descriptor.FieldDescriptor(
      name='eeg_units', full_name='MuseConfig.eeg_units', index=12,
      number=209, type=14, cpp_type=8, label=1,
      default_value=1,
      message_type=None, enum_type=None, containing_type=None,
      is_extension=False, extension_scope=None,
      options=None),
    descriptor.FieldDescriptor(
      name='eeg_locations', full_name='MuseConfig.eeg_locations', index=13,
      number=210, type=14, cpp_type=8, label=3,
      default_value=[],
      message_type=None, enum_type=None, containing_type=None,
      is_extension=False, extension_scope=None,
      options=None),
    descriptor.FieldDescriptor(
      name='eeg_conversion_factor', full_name='MuseConfig.eeg_conversion_factor', index=14,
      number=211, type=2, cpp_type=6, label=1,
      default_value=0,
      message_type=None, enum_type=None, containing_type=None,
      is_extension=False, extension_scope=None,
      options=None),
    descriptor.FieldDescriptor(
      name='afe_gain', full_name='MuseConfig.afe_gain', index=15,
      number=212, type=2, cpp_type=6, label=1,
      default_value=0,
      message_type=None, enum_type=None, containing_type=None,
      is_extension=False, extension_scope=None,
      options=None),
    descriptor.FieldDescriptor(
      name='drlref_data_enabled', full_name='MuseConfig.drlref_data_enabled', index=16,
      number=300, type=8, cpp_type=7, label=1,
      default_value=False,
      message_type=None, enum_type=None, containing_type=None,
      is_extension=False, extension_scope=None,
      options=None),
    descriptor.FieldDescriptor(
      name='drlref_conversion_factor', full_name='MuseConfig.drlref_conversion_factor', index=17,
      number=301, type=2, cpp_type=6, label=1,
      default_value=0,
      message_type=None, enum_type=None, containing_type=None,
      is_extension=False, extension_scope=None,
      options=None),
    descriptor.FieldDescriptor(
      name='drlref_sample_frequency_hz', full_name='MuseConfig.drlref_sample_frequency_hz', index=18,
      number=302, type=13, cpp_type=3, label=1,
      default_value=0,
      message_type=None, enum_type=None, containing_type=None,
      is_extension=False, extension_scope=None,
      options=None),
    descriptor.FieldDescriptor(
      name='acc_data_enabled', full_name='MuseConfig.acc_data_enabled', index=19,
      number=400, type=8, cpp_type=7, label=1,
      default_value=False,
      message_type=None, enum_type=None, containing_type=None,
      is_extension=False, extension_scope=None,
      options=None),
    descriptor.FieldDescriptor(
      name='acc_units', full_name='MuseConfig.acc_units', index=20,
      number=401, type=14, cpp_type=8, label=1,
      default_value=1,
      message_type=None, enum_type=None, containing_type=None,
      is_extension=False, extension_scope=None,
      options=None),
    descriptor.FieldDescriptor(
      name='acc_conversion_factor', full_name='MuseConfig.acc_conversion_factor', index=21,
      number=402, type=2, cpp_type=6, label=1,
      default_value=0,
      message_type=None, enum_type=None, containing_type=None,
      is_extension=False, extension_scope=None,
      options=None),
    descriptor.FieldDescriptor(
      name='acc_sample_frequency_hz', full_name='MuseConfig.acc_sample_frequency_hz', index=22,
      number=403, type=13, cpp_type=3, label=1,
      default_value=0,
      message_type=None, enum_type=None, containing_type=None,
      is_extension=False, extension_scope=None,
      options=None),
    descriptor.FieldDescriptor(
      name='battery_data_enabled', full_name='MuseConfig.battery_data_enabled', index=23,
      number=500, type=8, cpp_type=7, label=1,
      default_value=False,
      message_type=None, enum_type=None, containing_type=None,
      is_extension=False, extension_scope=None,
      options=None),
    descriptor.FieldDescriptor(
      name='battery_percent_remaining', full_name='MuseConfig.battery_percent_remaining', index=24,
      number=501, type=13, cpp_type=3, label=1,
      default_value=0,
      message_type=None, enum_type=None, containing_type=None,
      is_extension=False, extension_scope=None,
      options=None),
    descriptor.FieldDescriptor(
      name='battery_millivolts', full_name='MuseConfig.battery_millivolts', index=25,
      number=502, type=13, cpp_type=3, label=1,
      default_value=0,
      message_type=None, enum_type=None, containing_type=None,
      is_extension=False, extension_scope=None,
      options=None),
    descriptor.FieldDescriptor(
      name='error_data_enabled', full_name='MuseConfig.error_data_enabled', index=26,
      number=600, type=8, cpp_type=7, label=1,
      default_value=False,
      message_type=None, enum_type=None, containing_type=None,
      is_extension=False, extension_scope=None,
      options=None),
  ],
  extensions=[
    descriptor.FieldDescriptor(
      name='museData', full_name='MuseConfig.museData', index=0,
      number=103, type=11, cpp_type=10, label=2,
      default_value=None,
      message_type=None, enum_type=None, containing_type=None,
      is_extension=True, extension_scope=None,
      options=None),
  ],
  nested_types=[],  # TODO(robinson): Implement.
  enum_types=[
  ],
  options=None)

_EEG_DROPPEDSAMPLES = descriptor.Descriptor(
  name='EEG_DroppedSamples',
  full_name='EEG_DroppedSamples',
  filename='Muse_v2.proto',
  containing_type=None,
  fields=[
    descriptor.FieldDescriptor(
      name='num', full_name='EEG_DroppedSamples.num', index=0,
      number=1, type=13, cpp_type=3, label=1,
      default_value=0,
      message_type=None, enum_type=None, containing_type=None,
      is_extension=False, extension_scope=None,
      options=None),
  ],
  extensions=[
    descriptor.FieldDescriptor(
      name='museData', full_name='EEG_DroppedSamples.museData', index=0,
      number=202, type=11, cpp_type=10, label=2,
      default_value=None,
      message_type=None, enum_type=None, containing_type=None,
      is_extension=True, extension_scope=None,
      options=None),
  ],
  nested_types=[],  # TODO(robinson): Implement.
  enum_types=[
  ],
  options=None)

_ACC_DROPPEDSAMPLES = descriptor.Descriptor(
  name='ACC_DroppedSamples',
  full_name='ACC_DroppedSamples',
  filename='Muse_v2.proto',
  containing_type=None,
  fields=[
    descriptor.FieldDescriptor(
      name='num', full_name='ACC_DroppedSamples.num', index=0,
      number=1, type=13, cpp_type=3, label=1,
      default_value=0,
      message_type=None, enum_type=None, containing_type=None,
      is_extension=False, extension_scope=None,
      options=None),
  ],
  extensions=[
    descriptor.FieldDescriptor(
      name='museData', full_name='ACC_DroppedSamples.museData', index=0,
      number=203, type=11, cpp_type=10, label=2,
      default_value=None,
      message_type=None, enum_type=None, containing_type=None,
      is_extension=True, extension_scope=None,
      options=None),
  ],
  nested_types=[],  # TODO(robinson): Implement.
  enum_types=[
  ],
  options=None)

_COMPUTINGDEVICE = descriptor.Descriptor(
  name='ComputingDevice',
  full_name='ComputingDevice',
  filename='Muse_v2.proto',
  containing_type=None,
  fields=[
    descriptor.FieldDescriptor(
      name='os_type', full_name='ComputingDevice.os_type', index=0,
      number=1, type=9, cpp_type=9, label=1,
      default_value=unicode("", "utf-8"),
      message_type=None, enum_type=None, containing_type=None,
      is_extension=False, extension_scope=None,
      options=None),
    descriptor.FieldDescriptor(
      name='os_version', full_name='ComputingDevice.os_version', index=1,
      number=2, type=9, cpp_type=9, label=1,
      default_value=unicode("", "utf-8"),
      message_type=None, enum_type=None, containing_type=None,
      is_extension=False, extension_scope=None,
      options=None),
    descriptor.FieldDescriptor(
      name='hardware_model_name', full_name='ComputingDevice.hardware_model_name', index=2,
      number=3, type=9, cpp_type=9, label=1,
      default_value=unicode("", "utf-8"),
      message_type=None, enum_type=None, containing_type=None,
      is_extension=False, extension_scope=None,
      options=None),
    descriptor.FieldDescriptor(
      name='hardware_model_id', full_name='ComputingDevice.hardware_model_id', index=3,
      number=4, type=9, cpp_type=9, label=1,
      default_value=unicode("", "utf-8"),
      message_type=None, enum_type=None, containing_type=None,
      is_extension=False, extension_scope=None,
      options=None),
    descriptor.FieldDescriptor(
      name='processor_name', full_name='ComputingDevice.processor_name', index=4,
      number=5, type=9, cpp_type=9, label=1,
      default_value=unicode("", "utf-8"),
      message_type=None, enum_type=None, containing_type=None,
      is_extension=False, extension_scope=None,
      options=None),
    descriptor.FieldDescriptor(
      name='processor_speed', full_name='ComputingDevice.processor_speed', index=5,
      number=6, type=9, cpp_type=9, label=1,
      default_value=unicode("", "utf-8"),
      message_type=None, enum_type=None, containing_type=None,
      is_extension=False, extension_scope=None,
      options=None),
    descriptor.FieldDescriptor(
      name='number_of_processors', full_name='ComputingDevice.number_of_processors', index=6,
      number=7, type=13, cpp_type=3, label=1,
      default_value=0,
      message_type=None, enum_type=None, containing_type=None,
      is_extension=False, extension_scope=None,
      options=None),
    descriptor.FieldDescriptor(
      name='memory_size', full_name='ComputingDevice.memory_size', index=7,
      number=8, type=9, cpp_type=9, label=1,
      default_value=unicode("", "utf-8"),
      message_type=None, enum_type=None, containing_type=None,
      is_extension=False, extension_scope=None,
      options=None),
    descriptor.FieldDescriptor(
      name='bluetooth_version', full_name='ComputingDevice.bluetooth_version', index=8,
      number=9, type=9, cpp_type=9, label=1,
      default_value=unicode("", "utf-8"),
      message_type=None, enum_type=None, containing_type=None,
      is_extension=False, extension_scope=None,
      options=None),
    descriptor.FieldDescriptor(
      name='time_zone', full_name='ComputingDevice.time_zone', index=9,
      number=10, type=9, cpp_type=9, label=1,
      default_value=unicode("", "utf-8"),
      message_type=None, enum_type=None, containing_type=None,
      is_extension=False, extension_scope=None,
      options=None),
    descriptor.FieldDescriptor(
      name='time_zone_offset_seconds', full_name='ComputingDevice.time_zone_offset_seconds', index=10,
      number=11, type=17, cpp_type=1, label=1,
      default_value=0,
      message_type=None, enum_type=None, containing_type=None,
      is_extension=False, extension_scope=None,
      options=None),
  ],
  extensions=[
    descriptor.FieldDescriptor(
      name='museData', full_name='ComputingDevice.museData', index=0,
      number=201, type=11, cpp_type=10, label=2,
      default_value=None,
      message_type=None, enum_type=None, containing_type=None,
      is_extension=True, extension_scope=None,
      options=None),
  ],
  nested_types=[],  # TODO(robinson): Implement.
  enum_types=[
  ],
  options=None)

_DSP = descriptor.Descriptor(
  name='DSP',
  full_name='DSP',
  filename='Muse_v2.proto',
  containing_type=None,
  fields=[
    descriptor.FieldDescriptor(
      name='type', full_name='DSP.type', index=0,
      number=1, type=9, cpp_type=9, label=1,
      default_value=unicode("", "utf-8"),
      message_type=None, enum_type=None, containing_type=None,
      is_extension=False, extension_scope=None,
      options=None),
    descriptor.FieldDescriptor(
      name='float_array', full_name='DSP.float_array', index=1,
      number=2, type=2, cpp_type=6, label=3,
      default_value=[],
      message_type=None, enum_type=None, containing_type=None,
      is_extension=False, extension_scope=None,
      options=None),
    descriptor.FieldDescriptor(
      name='int_array', full_name='DSP.int_array', index=2,
      number=3, type=13, cpp_type=3, label=3,
      default_value=[],
      message_type=None, enum_type=None, containing_type=None,
      is_extension=False, extension_scope=None,
      options=None),
    descriptor.FieldDescriptor(
      name='version', full_name='DSP.version', index=3,
      number=4, type=9, cpp_type=9, label=1,
      default_value=unicode("", "utf-8"),
      message_type=None, enum_type=None, containing_type=None,
      is_extension=False, extension_scope=None,
      options=None),
  ],
  extensions=[
    descriptor.FieldDescriptor(
      name='museData', full_name='DSP.museData', index=0,
      number=200, type=11, cpp_type=10, label=2,
      default_value=None,
      message_type=None, enum_type=None, containing_type=None,
      is_extension=True, extension_scope=None,
      options=None),
  ],
  nested_types=[],  # TODO(robinson): Implement.
  enum_types=[
  ],
  options=None)

_MUSEDATACOLLECTION.fields_by_name['collection'].message_type = _MUSEDATA
_MUSEDATA.fields_by_name['datatype'].enum_type = _MUSEDATA_DATATYPE
_ANNOTATION.fields_by_name['event_data_format'].enum_type = _ANNOTATION_FORMAT
_MUSECONFIG.fields_by_name['eeg_units'].enum_type = _EEGUNITS
_MUSECONFIG.fields_by_name['eeg_locations'].enum_type = _HEADLOCATIONS
_MUSECONFIG.fields_by_name['acc_units'].enum_type = _ACCELEROMETERUNITS

class MuseDataCollection(message.Message):
  __metaclass__ = reflection.GeneratedProtocolMessageType
  DESCRIPTOR = _MUSEDATACOLLECTION

class MuseData(message.Message):
  __metaclass__ = reflection.GeneratedProtocolMessageType
  DESCRIPTOR = _MUSEDATA

class EEG(message.Message):
  __metaclass__ = reflection.GeneratedProtocolMessageType
  DESCRIPTOR = _EEG

class MuseQuantization(message.Message):
  __metaclass__ = reflection.GeneratedProtocolMessageType
  DESCRIPTOR = _MUSEQUANTIZATION

class Accelerometer(message.Message):
  __metaclass__ = reflection.GeneratedProtocolMessageType
  DESCRIPTOR = _ACCELEROMETER

class Annotation(message.Message):
  __metaclass__ = reflection.GeneratedProtocolMessageType
  DESCRIPTOR = _ANNOTATION

class Battery(message.Message):
  __metaclass__ = reflection.GeneratedProtocolMessageType
  DESCRIPTOR = _BATTERY

class MuseVersion(message.Message):
  __metaclass__ = reflection.GeneratedProtocolMessageType
  DESCRIPTOR = _MUSEVERSION

class MuseConfig(message.Message):
  __metaclass__ = reflection.GeneratedProtocolMessageType
  DESCRIPTOR = _MUSECONFIG

class EEG_DroppedSamples(message.Message):
  __metaclass__ = reflection.GeneratedProtocolMessageType
  DESCRIPTOR = _EEG_DROPPEDSAMPLES

class ACC_DroppedSamples(message.Message):
  __metaclass__ = reflection.GeneratedProtocolMessageType
  DESCRIPTOR = _ACC_DROPPEDSAMPLES

class ComputingDevice(message.Message):
  __metaclass__ = reflection.GeneratedProtocolMessageType
  DESCRIPTOR = _COMPUTINGDEVICE

class DSP(message.Message):
  __metaclass__ = reflection.GeneratedProtocolMessageType
  DESCRIPTOR = _DSP

_EEG.extensions_by_name['museData'].message_type = _EEG
MuseData.RegisterExtension(_EEG.extensions_by_name['museData'])
_MUSEQUANTIZATION.extensions_by_name['museData'].message_type = _MUSEQUANTIZATION
MuseData.RegisterExtension(_MUSEQUANTIZATION.extensions_by_name['museData'])
_ACCELEROMETER.extensions_by_name['museData'].message_type = _ACCELEROMETER
MuseData.RegisterExtension(_ACCELEROMETER.extensions_by_name['museData'])
_ANNOTATION.extensions_by_name['museData'].message_type = _ANNOTATION
MuseData.RegisterExtension(_ANNOTATION.extensions_by_name['museData'])
_BATTERY.extensions_by_name['museData'].message_type = _BATTERY
MuseData.RegisterExtension(_BATTERY.extensions_by_name['museData'])
_MUSEVERSION.extensions_by_name['museData'].message_type = _MUSEVERSION
MuseData.RegisterExtension(_MUSEVERSION.extensions_by_name['museData'])
_MUSECONFIG.extensions_by_name['museData'].message_type = _MUSECONFIG
MuseData.RegisterExtension(_MUSECONFIG.extensions_by_name['museData'])
_EEG_DROPPEDSAMPLES.extensions_by_name['museData'].message_type = _EEG_DROPPEDSAMPLES
MuseData.RegisterExtension(_EEG_DROPPEDSAMPLES.extensions_by_name['museData'])
_ACC_DROPPEDSAMPLES.extensions_by_name['museData'].message_type = _EEG_DROPPEDSAMPLES
MuseData.RegisterExtension(_ACC_DROPPEDSAMPLES.extensions_by_name['museData'])
_COMPUTINGDEVICE.extensions_by_name['museData'].message_type = _COMPUTINGDEVICE
MuseData.RegisterExtension(_COMPUTINGDEVICE.extensions_by_name['museData'])
_DSP.extensions_by_name['museData'].message_type = _DSP
MuseData.RegisterExtension(_DSP.extensions_by_name['museData'])


text:
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
                android:layout_width="match_parent"
                android:layout_height="match_parent">

    <include
        android:id="@+id/common_actionbar"
        layout="@layout/include_action_bar"/>

    <RelativeLayout
        android:id="@+id/personal_info"
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:layout_below="@id/common_actionbar"
        android:background="#abc214"
        android:padding="16dp">

        <ImageView
            android:id="@+id/personal_icon"
            android:layout_width="60dp"
            android:layout_height="60dp"
            android:layout_marginRight="4dp"
            android:scaleType="centerInside"/>

        <TextView
            android:id="@+id/personl_name"
            style="@android:style/TextAppearance.Medium"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:layout_alignTop="@id/personal_icon"
            android:layout_margin="4dip"
            android:layout_toRightOf="@id/personal_icon"
            android:text="清风拭泪"
            android:textColor="#FFFFFF"/>

        <TextView
            android:id="@+id/personl_signature"
            style="@android:style/TextAppearance"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:layout_below="@id/personl_name"
            android:layout_margin="4dip"
            android:layout_toRightOf="@id/personal_icon"
            android:text="面朝大海,春暖花开"
            android:textColor="#FFFFFF"/>

        <ImageView
            android:id="@+id/go_settings"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:layout_alignParentRight="true"
            android:layout_alignTop="@id/personl_name"
            android:scaleType="centerInside"
            android:src="@drawable/bg_go_settings"/>
    </RelativeLayout>

    <TextView
        android:id="@+id/personl_title"
        style="@style/TextTheme.tipstheme_second"
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:layout_below="@id/personal_info"
        android:gravity="center"
        android:padding="8dip"
        android:text="发表过的"/>

    <com.diandi.demo.widget.xlist.XListView
        android:id="@+id/pull_refresh_list_personal"
        android:layout_width="fill_parent"
        android:layout_height="fill_parent"
        android:layout_below="@id/personl_title"
        android:layout_marginLeft="8dp"
        android:layout_marginRight="8dp"
        android:cacheColorHint="#00000000"
        android:divider="#19000000"
        android:dividerHeight="4dp"
        android:fadingEdge="none"
        android:fastScrollEnabled="false"
        android:footerDividersEnabled="false"
        android:headerDividersEnabled="false"
        android:smoothScrollbar="true"/>
</RelativeLayout>


text:
<?php if (!defined('BASEPATH')) exit('No direct script access allowed');

class Contact extends CI_Controller {
  function __construct() {
    parent::__construct();
    $this->load->helper('url');
    $this->load->helper('form');

    $this->load->library('form_validation');
    $this->form_validation->set_error_delimiters('
', '
');
  }

  public function index() {
    // Set validation rules for view filters
    $this->form_validation->set_rules('name',
      'Name', 'required|min_length[4]|max_length[80]');

    $this->form_validation->set_rules('email',
      'Email', 'required|valid_email|min_length[5]|max_length[125]');

    $this->form_validation->set_rules('message',
      'Message', 'required|min_length[4]|max_length[1000]');

    if ($this->form_validation->run() == FALSE) {
      $this->load->view('common/header');
      $this->load->view('contact');
      $this->load->view('common/footer');
    } else {
      $this->load->view('common/header');
      $this->load->view('contact_success');
    }
  }
}


text:
package com.doctusoft.jsf.comp.model;

import java.util.List;

import javax.faces.convert.Converter;
import javax.faces.validator.Validator;

import lombok.Getter;
import lombok.Setter;

import com.doctusoft.bean.binding.ValueBinding;
import com.google.common.collect.Lists;

@Getter @Setter
public abstract class JsfInputModel<Value> extends JsfOutputModel<Value> {

	private ValueBinding<Boolean> required;
	private ValueBinding<String> requiredMessage;
	private ValueBinding<Boolean> readonly;
	private boolean immediate = false;
	private List<Validator> validators = Lists.newArrayList();
	private Converter converter;

}


text:
namespace Alachisoft.NCache.Common.Protobuf
{
  [global::System.Serializable, global::ProtoBuf.ProtoContract(Name=@"SubscribeTopicResponse")]
  public partial class SubscribeTopicResponse : global::ProtoBuf.IExtensible
  {
    public SubscribeTopicResponse() {}

    private bool _success = default(bool);
    [global::ProtoBuf.ProtoMember(1, IsRequired = false, Name=@"success", DataFormat = global::ProtoBuf.DataFormat.Default)]
    [global::System.ComponentModel.DefaultValue(default(bool))]
    public bool success
    {
      get { return _success; }
      set { _success = value; }
    }

    private int _commandID = default(int);
    [global::ProtoBuf.ProtoMember(2, IsRequired = false, Name=@"commandID", DataFormat = global::ProtoBuf.DataFormat.TwosComplement)]
    [global::System.ComponentModel.DefaultValue(default(int))]
    public int commandID
    {
      get { return _commandID; }
      set { _commandID = value; }
    }

    private long _requestId = default(long);
    [global::ProtoBuf.ProtoMember(3, IsRequired = false, Name=@"requestId", DataFormat = global::ProtoBuf.DataFormat.TwosComplement)]
    [global::System.ComponentModel.DefaultValue(default(long))]
    public long requestId
    {
      get { return _requestId; }
      set { _requestId = value; }
    }
    private global::ProtoBuf.IExtension extensionObject;
    global::ProtoBuf.IExtension global::ProtoBuf.IExtensible.GetExtensionObject(bool createIfMissing)
      { return global::ProtoBuf.Extensible.GetExtensionObject(ref extensionObject, createIfMissing); }
  }

}


text:
angular.module('tables.controllers', ['ionic'])

.controller('TableMainCtrl', function($scope, $state) {
	//$scope.practice = 0;
	//$scope.test = function() {
	//	console.log($scope.practice);
//	}
})

.controller('TableSelectCtrl', function($scope, $state) {
	$scope.practice = 0;
	console.log($scope.practice);
	$scope.tablePractice = function(value){
		console.log('in tablePractice: ', value);
		var x = ($scope.practice * 10) + value;
		$scope.practice = x;
	};

	$scope.eraseInput = function() {
		console.log('got here');
		$scope.practice = 0;
	}

	$scope.startLearning = function() {
		$state.go('tab.learn', { practice: $scope.practice});
	}

	$scope.startPractice = function() {
		$state.go('tab.practice', { practice: $scope.practice});
	}

})

.controller('TableLearnCtrl', function($scope, $stateParams) {
	$scope.tables = [1, 2, 3, 4, 5, 6, 7, 8, 9, 10];
	$scope.practice = $stateParams.practice;
	$scope.test = function() {
		console.log('in test');
	}
})

.controller('TablePracticeCtrl', function($scope, $stateParams) {
	$scope.practice = $stateParams.practice
	$scope.answer = 0;
	$scope.current = 1;
	$scope.answers = ["?", "?", "?", "?", "?", "?", "?", "?", "?", "?"];
	$scope.myAnswers = [1];

	$scope.eraseAnswer = function() {
		console.log('got here');
		$scope.answer = 0;
	}

	$scope.tableAnswer = function(value){
		var x = ($scope.answer * 10) + value;
		$scope.answer = x;
	};

	$scope.checkAnswer = function(){
		var yourAnswer = "?"
		if ($scope.myAnswers.length * $scope.practice === $scope.answer) {
			console.log($scope.answer, " goed");
			yourAnswer = $scope.answer + " Goed"
		} else {
			yourAnswer = $scope.answer + " Niet goed: " + $scope.myAnswers.length + "X" +  $scope.practice + "=" + $scope.myAnswers.length * $scope.practice;
			console.log($scope.answer, " fout");
		}
		$scope.answers[$scope.myAnswers.length - 1] = yourAnswer;
		console.log($scope.answers[$scope.myAnswers.length - 1]);
		var lnt = $scope.myAnswers.length + 1;
		console.log('lnt', lnt);
		if (lnt < 11) {
			$scope.myAnswers.push(lnt);
			$scope.current = $scope.current + 1;
			console.log('myAnswers ', $scope.myAnswers.length);
			console.log('current ', $scope.current);
		}
		$scope.answer = 0;
	};
});


text:
/**
 * \file cclerrms.c
 * \brief Implements CCL error code to error string map.
 *
 * This source file implements mapping between CCL error code and
 * their string equivalents.
 */
#if HAVE_CONFIG_H
#include <config.h>
#endif

#include <yaz/ccl.h>

static char *err_msg_array[] = {
    "Ok",
    "Search word expected",
    "')' expected",
    "Set name expected",
    "Operator expected",
    "Unbalanced ')'",
    "Unknown qualifier",
    "Qualifiers applied twice",
    "'=' expected",
    "Bad relation",
    "Left truncation not supported",
    "Both left - and right truncation not supported",
    "Right truncation not supported",
    "Embedded truncation not supported",
    "Single character mask not supported"
};

const char *ccl_err_msg(int ccl_errno)
{
    if (ccl_errno >= 0 &&
        ccl_errno < sizeof(err_msg_array)/sizeof(*err_msg_array))
        return err_msg_array[ccl_errno];
    else
        return 0;
}
/*
 * Local variables:
 * c-basic-offset: 4
 * c-file-style: "Stroustrup"
 * indent-tabs-mode: nil
 * End:
 * vim: shiftwidth=4 tabstop=8 expandtab
 */


text:
require "#{File.dirname(__FILE__)}/queue_batch"

class Jober::UniqueQueueBatch < Jober::UniqueQueue
  include Jober::QueueBatchFeature
end


text:
SYNONYM

#### According to
The Catalogue of Life, 3rd January 2011

#### Published in
Proc. Rochester Acad. Sci. 6: 131 (1922)

#### Original name
Clasterosporium larviforme Fairm., 1922

### Remarks
null


text:
"""Kit extensions module."""

from .api import API
from .orm import ORM


text:
namespace osu.Game.Rulesets.Osu.Skinning
{
    public enum OsuSkinConfiguration
    {
        HitCirclePrefix,
        HitCircleOverlap,
        SliderBorderSize,
        SliderPathRadius,
        AllowSliderBallTint,
        CursorExpand,
        CursorRotate
    }
}