text:
// c++ standard headers
#include <cstdlib>
#include <cstdio>
#include <iostream>
#include <fstream>
#include <iomanip>

// eigen matrix library headers
#include "Eigen/Core"

// matlab headers
#include "mex.h"
#include "matrix.h"

// darwin library headers
#include "drwnBase.h"
#include "drwnIO.h"
#include "drwnVision.h"

// project headers
#include "drwnMatlabUtils.h"

using namespace std;
using namespace Eigen;

// main -----------------------------------------------------------------------

void usage()
{
    mexPrintf(DRWN_USAGE_HEADER);
    mexPrintf("\n");
    mexPrintf("USAGE: graph = mexLoadPatchMatchGraph(filebase, [options]);\n");
    mexPrintf("  filebase :: base filename for the PatchMatchGraph\n");
    mexPrintf("OPTIONS:\n");
    drwnMatlabUtils::printStandardOptions();
    mexPrintf("\n");
}

void mexFunction(int nlhs, mxArray *plhs[], int nrhs, const mxArray *prhs[])
{
    // set drwnLogger callbacks
    drwnMatlabUtils::setupLoggerCallbacks();

    // check function arguments
    if ((nrhs != 1) && (nrhs != 2)) {
        usage();
        mexErrMsgTxt("incorrect number of input arguments");
    }

    // parse options
    map<string, string> options;
    drwnMatlabUtils::initializeStandardOptions(options);
    if (nrhs == 2) {
        drwnMatlabUtils::parseOptions(prhs[nrhs - 1], options);
    }
    drwnMatlabUtils::processStandardOptions(options);
    drwnCodeProfiler::tic(drwnCodeProfiler::getHandle("mex"));

    char *filebase = mxArrayToString(prhs[0]);

    // load PatchMatchGraph
    drwnPatchMatchGraph graph;
    DRWN_LOG_MESSAGE("Loading PatchMatchGraph from " << filebase << "...");
    graph.read(filebase);
    DRWN_LOG_MESSAGE("...graph has " << graph.size() << " images");

    mxFree(filebase);

    // convert to Matlab data structure
    if (nlhs == 1) {
        const char *fnames[] = {"dir", "ext", "patchWidth", "patchHeight", "imageNames", "imageSizes", "matches"};
        plhs[0] = mxCreateStructMatrix(1, 1, 7, fnames);

        // meta-data
        mxSetFieldByNumber(plhs[0], 0, 0, mxCreateString(graph.imageDirectory.c_str()));
        mxSetFieldByNumber(plhs[0], 0, 1, mxCreateString(graph.imageExtension.c_str()));
        mxSetFieldByNumber(plhs[0], 0, 2, mxCreateDoubleScalar((double)graph.patchWidth()));
        mxSetFieldByNumber(plhs[0], 0, 3, mxCreateDoubleScalar((double)graph.patchHeight()));

        // image names
        mxArray *imageNames = mxCreateCellMatrix(graph.size(), 1);
        for (unsigned i = 0; i < graph.size(); i++) {
            mxSetCell(imageNames, i, mxCreateString(graph[i].name().c_str()));
        }
        mxSetFieldByNumber(plhs[0], 0, 4, imageNames);

        // image sizes
        mxArray *imageSizes = mxCreateDoubleMatrix(graph.size(), 2, mxREAL);
        double *px = mxGetPr(imageSizes);
        for (unsigned i = 0; i < graph.size(); i++) {
            px[i] = (double)graph[i][0].width();
            px[i + graph.size()] = (double)graph[i][0].height();
        }
        mxSetFieldByNumber(plhs[0], 0, 5, imageSizes);

        // matches
        size_t numMatches = 0;
        for (unsigned i = 0; i < graph.size(); i++) {
            for (unsigned j = 0; j < graph[i].levels(); j++) {
                for (unsigned k = 0; k < graph[i][j].size(); k++) {
                    numMatches += graph[i][j][k].size();
                }
            }
        }

        mxArray *matches = mxCreateDoubleMatrix(numMatches, 11, mxREAL);
        px = mxGetPr(matches);
        for (unsigned i = 0; i < graph.size(); i++) {
            for (unsigned j = 0; j < graph[i].levels(); j++) {
                for (unsigned k = 0; k < graph[i][j].size(); k++) {
                    const drwnPatchMatchEdgeList& e = graph[i][j][k];
                    for (drwnPatchMatchEdgeList::const_iterator it = e.begin(); it != e.end(); ++it) {
                        px[0] = (double)(i + 1); // src_img

                        cv::Point tl = graph[i][j].index2pixel(k);
                        cv::Point br = cv::Point(graph.patchWidth(), graph.patchHeight());
                        tl = graph[i].mapPixel(tl, j, 0);
                        br = graph[i].mapPixel(br, j, 0);
                        px[1 * numMatches] = (double)tl.x + 1; // src_patch
                        px[2 * numMatches] = (double)tl.y + 1;
                        px[3 * numMatches] = (double)br.x;
                        px[4 * numMatches] = (double)br.y;

                        px[5 * numMatches] = (double)(it->targetNode.imgIndx + 1); // dst_img

                        tl = cv::Point(it->targetNode.xPosition, it->targetNode.yPosition);
                        br = cv::Point(graph.patchWidth(), graph.patchHeight());
                        tl = graph[it->targetNode.imgIndx].mapPixel(tl, it->targetNode.imgScale, 0);
                        br = graph[it->targetNode.imgIndx].mapPixel(br, it->targetNode.imgScale, 0);
                        px[6 * numMatches] = (double)tl.x + 1; // dst_patch
                        px[7 * numMatches] = (double)tl.y + 1;
                        px[8 * numMatches] = (double)br.x;
                        px[9 * numMatches] = (double)br.y;

                        px[10 * numMatches] = (double)it->matchScore; // score

                        px++;
                    }
                }
            }
        }

        // src_img, src_patch (4), dst_img, dst_patch (4), score
        mxSetFieldByNumber(plhs[0], 0, 6, matches);
    }

    // print profile information
    drwnCodeProfiler::toc(drwnCodeProfiler::getHandle("mex"));
    drwnCodeProfiler::print();
}


text:
//
// Copyright 2022 Google LLC
//
// Licensed to the Apache Software Foundation (ASF) under one
// or more contributor license agreements.  See the NOTICE file
// distributed with this work for additional information
// regarding copyright ownership.  The ASF licenses this file
// to you under the Apache License, Version 2.0 (the
// "License"); you may not use this file except in compliance
// with the License.  You may obtain a copy of the License at
//
//   http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing,
// software distributed under the License is distributed on an
// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
// KIND, either express or implied.  See the License for the
// specific language governing permissions and limitations
// under the License.
//

using Google.Solutions.LicenseTracker.Data.Locator;
using Google.Solutions.LicenseTracker.Data.Logs;

namespace Google.Solutions.LicenseTracker.Data.Events
{
    public abstract class InstanceEventBase : EventBase
    {
        public InstanceLocator? InstanceReference
        {
            get
            {
                //
                // Resource name has the format
                // projects/<project-number-or-id>/zones/<zone>/instances/<name>
                // for instance-related events.
                //
                var resourceName = base.LogRecord.ProtoPayload?.ResourceName;
                if (string.IsNullOrEmpty(resourceName))
                {
                    return null;
                }

                var parts = resourceName.Split('/');
                if (parts.Length != 6)
                {
                    throw new ArgumentException(
                        "Enountered unexpected resource name format: " +
                        base.LogRecord.ProtoPayload?.ResourceName);
                }

                return new InstanceLocator(
                    base.LogRecord.ProjectId,
                    parts[3],
                    parts[5]);
            }
        }

        public virtual ulong InstanceId
            => string.IsNullOrEmpty(base.LogRecord.Resource?.Labels?["instance_id"])
                ? 0
                : ulong.Parse(base.LogRecord.Resource.Labels["instance_id"]);

        protected InstanceEventBase(LogRecord logRecord)
            : base(logRecord)
        {
        }
    }
}

redpajama_set_name: RedPajamaGithub


text:
using System;

namespace ProSecuritiesTrading.MOEX.FIX.Base.Converter
{
    public class ConverterBase
    {
        public static readonly byte[] NumeralsStringASCIIBytes;

        static ConverterBase()
        {
            NumeralsStringASCIIBytes = new byte[10];
            NumeralsStringASCIIBytes[0] = 48;
            NumeralsStringASCIIBytes[1] = 49;
            NumeralsStringASCIIBytes[2] = 50;
            NumeralsStringASCIIBytes[3] = 51;
            NumeralsStringASCIIBytes[4] = 52;
            NumeralsStringASCIIBytes[5] = 53;
            NumeralsStringASCIIBytes[6] = 54;
            NumeralsStringASCIIBytes[7] = 55;
            NumeralsStringASCIIBytes[8] = 56;
            NumeralsStringASCIIBytes[9] = 57;
        }
    }
}


text:
<?xml version="1.0" encoding="utf-8"?>
<com.stylingandroid.presenter.engine.presentation.ConstraintSlideLayout xmlns:android="http://schemas.android.com/apk/res/android"
  xmlns:app="http://schemas.android.com/apk/res-auto"
  android:id="@id/slide"
  android:layout_width="match_parent"
  android:layout_height="match_parent"
  app:notes="@string/vectors2_note_inline"
  app:nextInAnimation="@anim/fadein"
  app:nextOutAnimation="@anim/fadeout">

  <com.stylingandroid.presenter.engine.presentation.HighlightedTextView
    android:id="@+id/code1"
    style="@style/Widget.TextView.Small.Code"
    android:layout_width="wrap_content"
    android:layout_height="wrap_content"
    android:text="@string/vectors2_icl_complete1"
    android:layout_marginTop="48dp"
    app:layout_constraintBottom_toBottomOf="parent"
    app:layout_constraintEnd_toEndOf="parent"
    app:layout_constraintStart_toStartOf="parent"
    app:layout_constraintTop_toTopOf="parent" />

  <com.stylingandroid.presenter.engine.presentation.HighlightedTextView
    style="@style/Widget.TextView.Small.Code"
    android:layout_width="wrap_content"
    android:layout_height="wrap_content"
    android:text="@string/vectors2_icl_complete1"
    app:layout_constraintBottom_toBottomOf="@id/code1"
    app:layout_constraintEnd_toEndOf="@id/code1"
    app:layout_constraintStart_toStartOf="@id/code1"
    app:layout_constraintTop_toTopOf="@id/code1"
    app:pattern="(xmlns:aapt.*?>)"
    app:highlightTextAppearance="@style/Widget.TextView.Small.Code.Highlight"
    app:hideAnimation="@anim/fadeout"
    app:hidePhase="2"
    app:showAnimation="@anim/fadein"
    app:showPhase="1" />

  <com.stylingandroid.presenter.engine.presentation.HighlightedTextView
    style="@style/Widget.TextView.Small.Code"
    android:layout_width="wrap_content"
    android:layout_height="wrap_content"
    android:text="@string/vectors2_icl_complete1"
    app:layout_constraintBottom_toBottomOf="@id/code1"
    app:layout_constraintEnd_toEndOf="@id/code1"
    app:layout_constraintStart_toStartOf="@id/code1"
    app:layout_constraintTop_toTopOf="@id/code1"
    app:pattern="(.?.?aapt:attr.*?>)"
    app:highlightTextAppearance="@style/Widget.TextView.Small.Code.Highlight"
    app:hideAnimation="@anim/fadeout"
    app:hidePhase="3"
    app:showAnimation="@anim/fadein"
    app:showPhase="2" />

  <com.stylingandroid.presenter.engine.presentation.HighlightedTextView
    style="@style/Widget.TextView.Small.Code"
    android:layout_width="wrap_content"
    android:layout_height="wrap_content"
    android:text="@string/vectors2_icl_complete1"
    app:layout_constraintBottom_toBottomOf="@id/code1"
    app:layout_constraintEnd_toEndOf="@id/code1"
    app:layout_constraintStart_toStartOf="@id/code1"
    app:layout_constraintTop_toTopOf="@id/code1"
    app:pattern="(.?vector\n.*?vector>)"
    app:highlightTextAppearance="@style/Widget.TextView.Small.Code.Highlight"
    app:showAnimation="@anim/fadein"
    app:showPhase="3" />

</com.stylingandroid.presenter.engine.presentation.ConstraintSlideLayout>


text:
@protocol IAudioPlayerDelegate <NSObject>

@optional
- (void)onAudioEnd;
- (void)onAudioUpdate:(CDStruct_1b6d18a9)arg1 total:(CDStruct_1b6d18a9)arg2;
- (void)onAudioPause;
- (void)onAudioPlay;
@end


text:
/**
 * Originally written by: hudbrog (hudbrog@gmail.com)
 * Angularized by: Mike Meding (mike@mikemeding.com)
 */

var testApp = angular.module('WebSlicer');

testApp.factory('gcodeFactory', function () {
    // ***** PRIVATE ******
    var gcode, lines;
    var z_heights = {};
    var model = [];
    var max = {x: undefined, y: undefined, z: undefined};
    var min = {x: undefined, y: undefined, z: undefined};
    var modelSize = {x: undefined, y: undefined, z: undefined};
    var filamentByLayer = {};
    var filamentByExtruder = {};
    var printTimeByLayer;
    var totalFilament = 0;
    var printTime = 0;
    var totalWeight = 0;
    var layerHeight = 0;
    var layerCnt = 0;
    var layerTotal = 0;
    var speeds = {};
    var slicer = 'unknown';
    var speedsByLayer = {};
    var volSpeeds = {};
    var volSpeedsByLayer = {};
    var extrusionSpeeds = {};
    var extrusionSpeedsByLayer = {};
    var gCodeOptions = {
        sortLayers: false,
        purgeEmptyLayers: true,
        analyzeModel: false,
        filamentType: "ABS",
        filamentDia: 1.75,
        nozzleDia: 0.4
    };

    var prepareGCode = function () {
        if (!lines)return;
        gcode = [];
        var i;
        for (i = 0; i < lines.length; i++) {
            if (lines[i].match(/^(G0|G1|G90|G91|G92|M82|M83|G28)/i))gcode.push(lines[i]);
        }
        lines = [];
//        console.log("GCode prepared");
    };

    var sortLayers = function () {
        var sortedZ = [];
        var tmpModel = [];
//        var cnt = 0;
//        console.log(z_heights);
        for (var layer in z_heights) {
            sortedZ[z_heights[layer]] = layer;
//            cnt++;
        }
//        console.log("cnt is " + cnt);
        sortedZ.sort(function (a, b) {
            return a - b;
        });
//        console.log(sortedZ);
//        console.log(model.length);
        for (var i = 0; i < sortedZ.length; i++) {
//            console.log("i is " + i +" and sortedZ[i] is " + sortedZ[i] + "and z_heights[] is " + z_heights[sortedZ[i]] );
            if (typeof(z_heights[sortedZ[i]]) === 'undefined')continue;
            tmpModel[i] = model[z_heights[sortedZ[i]]];
        }
        model = tmpModel;
//        console.log(model.length);
        delete tmpModel;
    };

    var purgeLayers = function () {
        var purge = true;
        if (!model) {
            console.log("Something terribly wrong just happened.");
            return;
        }
        for (var i = 0; i < model.length; i++) {
            purge = true;
            if (typeof(model[i]) === 'undefined')purge = true;
            else {
                for (var j = 0; j < model[i].length; j++) {
                    if (model[i][j].extrude)purge = false;
                }
            }
            if (purge) {
                model.splice(i, 1);
                i--;
            }
        }
    };

    var getParamsFromKISSlicer = function (gcode) {
        var nozzle = gcode.match(/extrusion_width_mm\s*=\s*(\d*\.\d+)/m);
        if (nozzle) {
            gCodeOptions['nozzleDia'] = nozzle[1];
        }
        var filament = gcode.match(/fiber_dia_mm\s*=\s*(\d*\.\d+)/m);
        if (filament) {
            gCodeOptions['filamentDia'] = filament[1];
        }
    }

    var getParamsFromSlic3r = function (gcode) {
        var nozzle = gcode.match(/nozzle_diameter\s*=\s*(\d*\.\d+)/m);
        if (nozzle) {
            gCodeOptions['nozzleDia'] = nozzle[1];
        }
        var filament = gcode.match(/filament_diameter\s*=\s*(\d*\.\d+)/m);
        if (filament) {
            gCodeOptions['filamentDia'] = filament[1];
        }
    }

    var getParamsFromSkeinforge = function (gcode) {

        var nozzle = gcode.match(/nozzle_diameter\s*=\s*(\d*\.\d+)/m);
        if (nozzle) {
            gCodeOptions['nozzleDia'] = nozzle[1];
        }
        var filament = gcode.match(/Filament_Diameter_(mm)\s*:\s*(\d*\.\d+)/m);
        if (filament) {
            gCodeOptions['filamentDia'] = filament[1];
        }
    }

    var getParamsFromMiracleGrue = function (gcode) {

    }

    var getParamsFromCura = function (gcode) {
//        console.log("cura");
        var profileString = gcode.match(/CURA_PROFILE_STRING:((?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=|[A-Za-z0-9+/]{4}))/m);
        if (profileString) {
            var raw = window.atob(profileString[1]);
            var array = new Uint8Array(new ArrayBuffer(raw.length));

            for (i = 0; i < raw.length; i++) {
                array[i] = raw.charCodeAt(i);
            }
            var data = new Zlib.inflate(array.subarray(2, array.byteLength - 4));
            var msg;
            for (i = 0; i < data.length; i += 1) {
                msg += String.fromCharCode(data[i]);
            }
            var nozzle = msg.match(/nozzle_size\s*=\s*(\d*\.\d+)/m);
            if (nozzle) {
                gCodeOptions['nozzleDia'] = nozzle[1];
            }
            var filament = msg.match(/filament_diameter\s*=\s*(\d*\.\d+)/m);
            if (filament) {
                gCodeOptions['filamentDia'] = filament[1];
            }

        }
    }

    var detectSlicer = function (gcode) {

        if (gcode.match(/Slic3r/)) {
            slicer = 'Slic3r';
            getParamsFromSlic3r(gcode);
        } else if (gcode.match(/KISSlicer/)) {
            slicer = 'KISSlicer';
            getParamsFromKISSlicer(gcode);
        } else if (gcode.match(/skeinforge/)) {
            slicer = 'skeinforge';
            getParamsFromSkeinforge(gcode);
        } else if (gcode.match(/CURA_PROFILE_STRING/)) {
            slicer = 'cura';
            getParamsFromCura(gcode);
        } else if (gcode.match(/Miracle/)) {
            slicer = 'makerbot';
            getParamsFromMiracleGrue(gcode);
        }

    }

// ***** PUBLIC *******
    return {

//        loadFile: function (reader) {
////            console.log("loadFile");
//            model = [];
//            z_heights = [];
//            detectSlicer(reader.target.result);
//            lines = reader.target.result.split(/\n/);
//            reader.target.result = null;
////            prepareGCode();
//
//            GCODE.ui.worker.postMessage({
//                    "cmd": "parseGCode",
//                    "msg": {
//                        gcode: lines,
//                        options: {
//                            firstReport: 5
//                        }
//                    }
//                }
//            );
//            delete lines;
//        },
        loadString: function (gcode) {
            model = [];
            z_heights = [];
            detectSlicer(gcode);
        },
        setModel: function (newModel) {
            model = newModel;
        },
        getModel: function () {
            return model;
        },
        setOption: function (options) {
            for (var opt in options) {
                gCodeOptions[opt] = options[opt];
            }
        },
        processLayerFromWorker: function (msg) {
//            var cmds = msg.cmds;
//            var layerNum = msg.layerNum;
//            var zHeightObject = msg.zHeightObject;
//            var isEmpty = msg.isEmpty;
//            console.log(zHeightObject);
            model[msg.layerNum] = msg.cmds;
            z_heights[msg.zHeightObject.zValue] = msg.zHeightObject.layer;
//            GCODE.renderer.doRender(model, msg.layerNum);
        },
        processMultiLayerFromWorker: function (msg) {
            for (var i = 0; i < msg.layerNum.length; i++) {
                model[msg.layerNum[i]] = msg.model[msg.layerNum[i]];
                z_heights[msg.zHeightObject.zValue[i]] = msg.layerNum[i];
            }
//            console.log(model);
        },
        processAnalyzeModelDone: function (msg) {
            min = msg.min;
            max = msg.max;
            modelSize = msg.modelSize;
            totalFilament = msg.totalFilament;
            filamentByLayer = msg.filamentByLayer;
            filamentByExtruder = msg.filamentByExtruder;
            speeds = msg.speeds;
            speedsByLayer = msg.speedsByLayer;
            printTime = msg.printTime;
            printTimeByLayer = msg.printTimeByLayer;
            layerHeight = msg.layerHeight;
            layerCnt = msg.layerCnt;
            layerTotal = msg.layerTotal;
            volSpeeds = msg.volSpeeds;
            volSpeedsByLayer = msg.volSpeedsByLayer;
            extrusionSpeeds = msg.extrusionSpeeds;
            extrusionSpeedsByLayer = msg.extrusionSpeedsByLayer;

            var density = 1;
            if (gCodeOptions['filamentType'] === 'ABS') {
                density = 1.04;
            } else if (gCodeOptions['filamentType'] === 'PLA') {
                density = 1.24;
            }
            totalWeight = density * 3.141 * gCodeOptions['filamentDia'] / 10 * gCodeOptions['filamentDia'] / 10 / 4 * totalFilament / 10;

            gCodeOptions['wh'] = parseFloat(gCodeOptions['nozzleDia']) / parseFloat(layerHeight);
            if (slicer === 'Slic3r' || slicer === 'cura') {
                // slic3r stores actual nozzle diameter, but extrusion is usually slightly thicker, here we compensate for that
                // kissslicer stores actual extrusion width - so no need for that.
                gCodeOptions['wh'] = gCodeOptions['wh'] * 1.1;
            }
        },
        getLayerFilament: function (z) {
            return filamentByLayer[z];
        },
        getLayerSpeeds: function (z) {
            return speedsByLayer[z] ? speedsByLayer[z] : {};
        },
        getModelInfo: function () {
            return {
                min: min,
                max: max,
                modelSize: modelSize,
                totalFilament: totalFilament,
                filamentByExtruder: filamentByExtruder,
                speeds: speeds,
                speedsByLayer: speedsByLayer,
                printTime: printTime,
                printTimeByLayer: printTimeByLayer,
                totalWeight: totalWeight,
                layerHeight: layerHeight,
                layerCnt: layerCnt,
                layerTotal: layerTotal,
                volSpeeds: volSpeeds,
                volSpeedsByLayer: volSpeedsByLayer,
                extrusionSpeeds: extrusionSpeeds,
                extrusionSpeedsByLayer: extrusionSpeedsByLayer
            };
        },
        getGCodeLines: function (layer, fromSegments, toSegments) {
            var i = 0;
            var result = {first: model[layer][fromSegments].gcodeLine, last: model[layer][toSegments].gcodeLine};
            return result;
        },
        getOptions: function () {
            return gCodeOptions;
        }
    }
});


text:
/*
 * OU ICE Documentation
 * Special styles for presenting OU ICE's documentation and code examples.
 */

/*
 * Scaffolding
 *
 * Update the basics of our documents to prep for docs content.
 */

body.ouice {
  position: relative; /* For scrollspy */
}

/* Keep code small in tables on account of limited space */
.ouice .table code {
  font-size: 13px;
  font-weight: normal;
}

/* Inline code within headings retain the heading's background-color */
.ouice h2 code,
.ouice h3 code,
.ouice h4 code {
  background-color: inherit;
}

/* Outline button for use within the docs */
.ouice .btn-outline {
  color: #036;
  background-color: transparent;
  border-color: #036;
}
.ouice .btn-outline:hover,
.ouice .btn-outline:focus,
.ouice .btn-outline:active {
  color: #fff;
  background-color: #036;
  border-color: #036;
}

/* Inverted outline button (white on dark) */
.ouice .btn-outline-inverse {
  color: #fff;
  background-color: transparent;
  border-color: #cdbfe3;
}
.ouice .btn-outline-inverse:hover,
.ouice .btn-outline-inverse:focus,
.ouice .btn-outline-inverse:active {
  color: #036;
  text-shadow: none;
  background-color: #fff;
  border-color: #fff;
}

/*
 * Fancy skip link
 *
 * Make it look a bit less "bare bones"
 * Also includes focus suppression for the Chrome tabindex="-1" workaround
 */

#skippy {
  display: block;
  padding: 1em;
  color: #fff;
  background-color: #6f5499;
  outline: 0;
}

#skippy .skiplink-text {
  padding: .5em;
  outline: 1px dotted;
}

#content:focus {
  outline: none;
}

/*
 * Footer
 *
 * Separated section of content at the bottom of all pages, save the homepage.
 */

.ouice .bs-docs-footer {
  padding-top: 50px;
  padding-bottom: 50px;
  margin-top: 100px;
  color: #99979c;
  text-align: center;
  background-color: #2a2730;
}
.ouice .bs-docs-footer a {
  color: #fff;
}
.ouice .bs-docs-footer-links {
  padding-left: 0;
  margin-bottom: 20px;
}
.ouice .bs-docs-footer-links li {
  display: inline-block;
}
.ouice .bs-docs-footer-links li + li {
  margin-left: 15px;
}

@media (min-width: 768px) {
  .ouice .bs-docs-footer {
    text-align: left;
  }
  .ouice .bs-docs-footer p {
    margin-bottom: 0;
  }
}

/*
 * Homepage
 *
 * Tweaks to the custom homepage and the masthead (main jumbotron).
 */

/* Share masthead with page headers */
.ouice .bs-docs-masthead,
.ouice .bs-docs-header {
  position: relative;
  padding: 30px 0;
  color: #ddd;
  text-align: center;
  text-shadow: 0 1px 0 rgba(0,0,0,.1);
  background-color: #6f5499;
  background-image: -webkit-gradient(linear, left top, left bottom, from(#036), to(#003));
  background-image: -webkit-linear-gradient(top, #036 0%, #003 100%);
  background-image:      -o-linear-gradient(top, #036 0%, #003 100%);
  background-image:         linear-gradient(to bottom, #036 0%, #003 100%);
  filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#036', endColorstr='#000033', GradientType=0);
  background-repeat: repeat-x;
}

/* Masthead (headings and download button) */
.ouice .bs-docs-masthead .bs-docs-booticon {
  margin: 0 auto 30px;
}
.ouice .bs-docs-masthead h1 {
  font-weight: 300;
  line-height: 1;
  color: #fff;
}
.ouice .bs-docs-masthead .lead {
  margin: 0 auto 20px;
  font-size: 20px;
  color: #fff;
}
.ouice .bs-docs-masthead .version {
  margin-top: -15px;
  margin-bottom: 30px;
  color: #999;
}
.ouice .bs-docs-masthead .btn {
  width: 100%;
  padding: 15px 30px;
  margin-top: 20px;
  font-size: 20px;
  border-color: #fff;
  border-style: solid;
  border-width: 1px;
}

@media (min-width: 480px) {
  .ouice .bs-docs-masthead .btn {
    width: auto;
  }
}

@media (min-width: 768px) {
  .ouice .bs-docs-masthead {
    padding: 80px 0;
  }
  .ouice .bs-docs-masthead h1 {
    font-size: 60px;
  }
  .ouice .bs-docs-masthead .lead {
    font-size: 24px;
  }
}

@media (min-width: 992px) {
  .ouice .bs-docs-masthead .lead {
    width: 80%;
    font-size: 30px;
  }
}

/*
 * Page headers
 *
 * Jumbotron-esque headers at the top of every page that's not the homepage.
 */

/* Page headers */

.ouice .site-header img {
  margin: 20px 0;
}

.ouice .bs-docs-header h1 {
  margin-top: 0;
  color: #fff;
}
.ouice .bs-docs-header p {
  margin-bottom: 0;
  font-weight: 300;
  line-height: 1.4;
}
.ouice .bs-docs-header .container {
  position: relative;
}

@media (min-width: 768px) {
  .ouice .bs-docs-header {
    text-align: left;
  }
  .ouice .bs-docs-header h1 {
    font-size: 60px;
    line-height: 1;
  }
}

@media (min-width: 992px) {
  .ouice .bs-docs-header h1,
  .ouice .bs-docs-header p {
    margin-right: 380px;
  }
}

/*
 * Homepage featurettes
 *
 * Reasons to use OU ICE, entries from the Expo, and more.
 */

.ouice .bs-docs-featurette {
  padding-top: 40px;
  padding-bottom: 40px;
  font-size: 16px;
  line-height: 1.5;
  color: #555;
  text-align: center;
  background-color: #fff;
  border-bottom: 1px solid #e5e5e5;
}
.ouice .bs-docs-featurette + .ouice .bs-docs-footer {
  margin-top: 0;
  border-top: 0;
}

.ouice .bs-docs-featurette-title {
  margin-bottom: 5px;
  font-size: 30px;
  font-weight: normal;
  color: #333;
}
.ouice .half-rule {
  width: 100px;
  margin: 40px auto;
}
.ouice .bs-docs-featurette h3 {
  margin-bottom: 5px;
  font-weight: normal;
  color: #333;
}
.ouice .bs-docs-featurette .btn {
  border-style: solid;
  border-width: 1px;
}
.ouice .bs-docs-featurette-img {
  display: block;
  margin-bottom: 20px;
  color: #333;
}
.ouice .bs-docs-featurette-img:hover {
  color: #337ab7;
  text-decoration: none;
}
.ouice .bs-docs-featurette-img img {
  display: block;
  margin-bottom: 15px;
}

@media (min-width: 480px) {
  .ouice .bs-docs-featurette .img-responsive {
    margin-top: 30px;
  }
}
@media (min-width: 768px) {
  .ouice .bs-docs-featurette {
    padding-top: 100px;
    padding-bottom: 100px;
  }
  .ouice .bs-docs-featurette-title {
    font-size: 40px;
  }
  .ouice .bs-docs-featurette .lead {
    max-width: 80%;
    margin-right: auto;
    margin-left: auto;
  }
  .ouice .bs-docs-featurette .img-responsive {
    margin-top: 0;
  }
}

/*
 * Featured sites
 *
 * Homepage thumbnails from the Expo.
 */

.ouice .bs-docs-featured-sites {
  margin-right: -1px;
  margin-left: -1px;
}
.ouice .bs-docs-featured-sites .col-xs-6 {
  padding: 1px;
}
.ouice .bs-docs-featured-sites .img-responsive {
  margin-top: 0;
}

@media (min-width: 768px) {
  .ouice .bs-docs-featured-sites .col-sm-3:first-child img {
    border-top-left-radius: 4px;
    border-bottom-left-radius: 4px;
  }
  .ouice .bs-docs-featured-sites .col-sm-3:last-child img {
    border-top-right-radius: 4px;
    border-bottom-right-radius: 4px;
  }
}

/*
 * Examples
 *
 * Linked docs examples.
 */

.ouice .bs-examples .thumbnail {
  margin-bottom: 10px;
}
.ouice .bs-examples h4 {
  margin-bottom: 5px;
}
.ouice .bs-examples p {
  margin-bottom: 20px;
}

@media (max-width: 480px) {
  .ouice .bs-examples {
    margin-right: -10px;
    margin-left: -10px;
  }
  .ouice .bs-examples > [class^="col-"] {
    padding-right: 10px;
    padding-left: 10px;
  }
}

/*
 * Side navigation
 *
 * Scrollspy and affixed enhanced navigation to highlight sections and secondary
 * sections of docs content.
 */

/* By default it's not affixed in mobile views, so undo that */
.ouice .bs-docs-sidebar.affix {
  position: static;
}
@media (min-width: 768px) {
  .ouice .bs-docs-sidebar {
    padding-left: 20px;
  }
}

/* First level of nav */
.ouice .bs-docs-sidenav {
  margin-top: 20px;
  margin-bottom: 20px;
}

/* All levels of nav */
.ouice .bs-docs-sidebar .nav > li > a {
  display: block;
  padding: 4px 20px;
  font-size: 13px;
  font-weight: 500;
  color: #767676;
}
.ouice .bs-docs-sidebar .nav > li > a:hover,
.ouice .bs-docs-sidebar .nav > li > a:focus {
  padding-left: 19px;
  color: #036;
  text-decoration: none;
  background-color: transparent;
  border-left: 1px solid #036;
}
.ouice .bs-docs-sidebar .nav > .active > a,
.ouice .bs-docs-sidebar .nav > .active:hover > a,
.ouice .bs-docs-sidebar .nav > .active:focus > a {
  padding-left: 18px;
  font-weight: bold;
  color: #036;
  background-color: transparent;
  border-left: 2px solid #036;
}

/* Nav: second level (shown on .active) */
.ouice .bs-docs-sidebar .nav .nav {
  display: none; /* Hide by default, but at >768px, show it */
  padding-bottom: 10px;
}
.ouice .bs-docs-sidebar .nav .nav > li > a {
  padding-top: 1px;
  padding-bottom: 1px;
  padding-left: 30px;
  font-size: 12px;
  font-weight: normal;
}
.ouice .bs-docs-sidebar .nav .nav > li > a:hover,
.ouice .bs-docs-sidebar .nav .nav > li > a:focus {
  padding-left: 29px;
}
.ouice .bs-docs-sidebar .nav .nav > .active > a,
.ouice .bs-docs-sidebar .nav .nav > .active:hover > a,
.ouice .bs-docs-sidebar .nav .nav > .active:focus > a {
  padding-left: 28px;
  font-weight: 500;
}

/* Back to top (hidden on mobile) */
.ouice .back-to-top,
.ouice .bs-docs-theme-toggle {
  display: none;
  padding: 4px 10px;
  margin-top: 10px;
  margin-left: 10px;
  font-size: 12px;
  font-weight: 500;
  color: #999;
}
.ouice .back-to-top:hover,
.ouice .bs-docs-theme-toggle:hover {
  color: #036;
  text-decoration: none;
}
.ouice .bs-docs-theme-toggle {
  margin-top: 0;
}

@media (min-width: 768px) {
  .ouice .back-to-top,
  .ouice .bs-docs-theme-toggle {
    display: block;
  }
}

/* Show and affix the side nav when space allows it */
@media (min-width: 992px) {
  .ouice .bs-docs-sidebar .nav > .active > ul {
    display: block;
  }
  /* Widen the fixed sidebar */
  .ouice .bs-docs-sidebar.affix,
  .ouice .bs-docs-sidebar.affix-bottom {
    width: 213px;
  }
  .ouice .bs-docs-sidebar.affix {
    position: fixed; /* Undo the static from mobile first approach */
    top: 20px;
  }
  .ouice .bs-docs-sidebar.affix-bottom {
    position: absolute; /* Undo the static from mobile first approach */
  }
  .ouice .bs-docs-sidebar.affix-bottom .bs-docs-sidenav,
  .ouice .bs-docs-sidebar.affix .bs-docs-sidenav {
    margin-top: 0;
    margin-bottom: 0;
  }
}
@media (min-width: 1200px) {
  /* Widen the fixed sidebar again */
  .ouice .bs-docs-sidebar.affix-bottom,
  .ouice .bs-docs-sidebar.affix {
    width: 263px;
  }
}

/*
 * Docs sections
 *
 * Content blocks for each component or feature.
 */

/* Space things out */
.ouice .bs-docs-section {
  margin-bottom: 60px;
}
.ouice .bs-docs-section:last-child {
  margin-bottom: 0;
}

.ouice h1[id] {
  padding-top: 20px;
  margin-top: 0;
}

/*
 * Callouts
 *
 * Not quite alerts, but custom and helpful notes for folks reading the docs.
 * Requires a base and modifier class.
 */

/* Common styles for all types */
.ouice .bs-callout {
  padding: 20px;
  margin: 20px 0;
  border: 1px solid #eee;
  border-left-width: 5px;
  border-radius: 3px;
}
.ouice .bs-callout h4 {
  margin-top: 0;
  margin-bottom: 5px;
}
.ouice .bs-callout p:last-child {
  margin-bottom: 0;
}
.ouice .bs-callout code {
  border-radius: 3px;
}

/* Tighten up space between multiple callouts */
.ouice .bs-callout + .ouice .bs-callout {
  margin-top: -5px;
}

/* Variations */
.ouice .bs-callout-danger {
  border-left-color: #ce4844;
}
.ouice .bs-callout-danger h4 {
  color: #ce4844;
}
.ouice .bs-callout-warning {
  border-left-color: #aa6708;
}
.ouice .bs-callout-warning h4 {
  color: #aa6708;
}
.ouice .bs-callout-info {
  border-left-color: #1b809e;
}
.ouice .bs-callout-info h4 {
  color: #1b809e;
}

/*
 * Color swatches
 *
 * Color swatches and associated values for our grayscale and brand colors.
 */

.ouice .color-swatches {
  margin: 0 -5px;
  overflow: hidden; /* clearfix */
}
.ouice .color-swatch {
  float: left;
  width: 60px;
  height: 60px;
  margin: 5px;
  border-radius: 3px;
}

@media (min-width: 768px) {
  .ouice .color-swatch {
    width: 100px;
    height: 100px;
  }
}

/* Framework colors */
.ouice .color-swatches .gray-darker {
  background-color: #222;
}
.ouice .color-swatches .gray-dark {
  background-color: #333;
}
.ouice .color-swatches .gray {
  background-color: #555;
}
.ouice .color-swatches .gray-light {
  background-color: #999;
}
.ouice .color-swatches .gray-lighter {
  background-color: #eee;
}
.ouice .color-swatches .brand-primary {
  background-color: #337ab7;
}
.ouice .color-swatches .brand-success {
  background-color: #5cb85c;
}
.ouice .color-swatches .brand-warning {
  background-color: #f0ad4e;
}
.ouice .color-swatches .brand-danger {
  background-color: #d9534f;
}
.ouice .color-swatches .brand-info {
  background-color: #5bc0de;
}

/* Docs colors */
.ouice .color-swatches .bs-purple {
  background-color: #036;
}
.ouice .color-swatches .bs-purple-light {
  background-color: #c7bfd3;
}
.ouice .color-swatches .bs-purple-lighter {
  background-color: #e5e1ea;
}
.ouice .color-swatches .bs-gray {
  background-color: #f9f9f9;
}

/*
 * Team members
 *
 * Avatars, names, and usernames for core team.
 */

.ouice .bs-team .team-member {
  line-height: 32px;
  color: #555;
}
.ouice .bs-team .team-member:hover {
  color: #333;
  text-decoration: none;
}
.ouice .bs-team .github-btn {
  float: right;
  width: 180px;
  height: 20px;
  margin-top: 6px;
  border: none;
}
.ouice .bs-team img {
  float: left;
  width: 32px;
  margin-right: 10px;
  border-radius: 4px;
}

/*
 * Wall of Browser Bugs
 *
 * Better display for the responsive table on the Wall of Browser Bugs.
 */

.ouice .bs-docs-browser-bugs td p {
  margin-bottom: 0;
}

.ouice .bs-docs-browser-bugs th:first-child {
  width: 18%;
}

/*
 * Grid examples
 *
 * Highlight the grid columns within the docs so folks can see their padding,
 * alignment, sizing, etc.
 */

.ouice .show-grid {
  margin-bottom: 15px;
}
.ouice .show-grid [class^="col-"],
.ouice .show-grid > div > p,
.ouice .show-grid > li > p {
  padding-top: 10px;
  padding-bottom: 10px;
  background-color: #eee;
  background-color: rgba(86,61,124,.15);
  border: 1px solid #ddd;
  border: 1px solid rgba(86,61,124,.2);
}

.ouice .show-grid > div > p,
.ouice .show-grid > li > p {
  padding-top: 0;
  padding-bottom: 0;
  text-align: center;
}

/*
 * Examples
 *
 * Isolated sections of example content for each component or feature. Usually
 * followed by a code snippet.
 */

.ouice .bs-example {
  position: relative;
  padding: 45px 15px 15px;
  margin: 0 -15px 15px;
  border-color: #e5e5e5 #eee #eee;
  border-style: solid;
  border-width: 1px 0;
  -webkit-box-shadow: inset 0 3px 6px rgba(0,0,0,.05);
          box-shadow: inset 0 3px 6px rgba(0,0,0,.05);
}
/* Echo out a label for the example */
.ouice .bs-example:after {
  position: absolute;
  top: 15px;
  left: 15px;
  font-size: 12px;
  font-weight: bold;
  color: #959595;
  text-transform: uppercase;
  letter-spacing: 1px;
  content: "Example";
}

.ouice .bs-example.bs-example-dark {
  background-color: #333;
}

.ouice .bs-example-padded-bottom {
  padding-bottom: 24px;
}

/* Tweak display of the code snippets when following an example */
.ouice .bs-example + .ouice .highlight,
.ouice .bs-example + .ouice .zero-clipboard + .ouice .highlight {
  margin: -15px -15px 15px;
  border-width: 0 0 1px;
  border-radius: 0;
}

/* Make the examples and snippets not full-width */
@media (min-width: 768px) {
  .ouice .bs-example {
    margin-right: 0;
    margin-left: 0;
    background-color: #fff;
    border-color: #ddd;
    border-width: 1px;
    border-radius: 4px 4px 0 0;
    -webkit-box-shadow: none;
            box-shadow: none;
  }
  .ouice .bs-example + .ouice .highlight,
  .ouice .bs-example + .ouice .zero-clipboard + .ouice .highlight {
    margin-top: -16px;
    margin-right: 0;
    margin-left: 0;
    border-width: 1px;
    border-bottom-right-radius: 4px;
    border-bottom-left-radius: 4px;
  }
  .ouice .bs-example-standalone {
    border-radius: 4px;
  }
}

/* Undo width of container */
.ouice .bs-example .container {
  width: auto;
}

/* Tweak content of examples for optimum awesome */
.ouice .bs-example > p:last-child,
.ouice .bs-example > ul:last-child,
.ouice .bs-example > ol:last-child,
.ouice .bs-example > blockquote:last-child,
.ouice .bs-example > .form-control:last-child,
.ouice .bs-example > .table:last-child,
.ouice .bs-example > .navbar:last-child,
.ouice .bs-example > .jumbotron:last-child,
.ouice .bs-example > .alert:last-child,
.ouice .bs-example > .panel:last-child,
.ouice .bs-example > .list-group:last-child,
.ouice .bs-example > .well:last-child,
.ouice .bs-example > .progress:last-child,
.ouice .bs-example > .table-responsive:last-child > .table {
  margin-bottom: 0;
}
.ouice .bs-example > p > .close {
  float: none;
}

/* Typography */
.ouice .bs-example-type .table .type-info {
  color: #767676;
  vertical-align: middle;
}
.ouice .bs-example-type .table td {
  padding: 15px 0;
  border-color: #eee;
}
.ouice .bs-example-type .table tr:first-child td {
  border-top: 0;
}
.ouice .bs-example-type h1,
.ouice .bs-example-type h2,
.ouice .bs-example-type h3,
.ouice .bs-example-type h4,
.ouice .bs-example-type h5,
.ouice .bs-example-type h6 {
  margin: 0;
}

/* Contextual background colors */
.ouice .bs-example-bg-classes p {
  padding: 15px;
}

/* Images */
.ouice .bs-example > .img-circle,
.ouice .bs-example > .img-rounded,
.ouice .bs-example > .img-thumbnail {
  margin: 5px;
}

/* Tables */
.ouice .bs-example > .table-responsive > .table {
  background-color: #fff;
}

/* Buttons */
.ouice .bs-example > .btn,
.ouice .bs-example > .btn-group {
  margin-top: 5px;
  margin-bottom: 5px;
}
.ouice .bs-example > .btn-toolbar + .btn-toolbar {
  margin-top: 10px;
}

/* Forms */
.ouice .bs-example-control-sizing select,
.ouice .bs-example-control-sizing input[type="text"] + input[type="text"] {
  margin-top: 10px;
}
.ouice .bs-example-form .input-group {
  margin-bottom: 10px;
}
.ouice .bs-example > textarea.form-control {
  resize: vertical;
}

/* List groups */
.ouice .bs-example > .list-group {
  max-width: 400px;
}

/* Navbars */
.ouice .bs-example .navbar:last-child {
  margin-bottom: 0;
}
.ouice .bs-navbar-top-example,
.ouice .bs-navbar-bottom-example {
  z-index: 1;
  padding: 0;
  overflow: hidden; /* cut the drop shadows off */
}
.ouice .bs-navbar-top-example .navbar-header,
.ouice .bs-navbar-bottom-example .navbar-header {
  margin-left: 0;
}
.ouice .bs-navbar-top-example .navbar-fixed-top,
.ouice .bs-navbar-bottom-example .navbar-fixed-bottom {
  position: relative;
  margin-right: 0;
  margin-left: 0;
}
.ouice .bs-navbar-top-example {
  padding-bottom: 45px;
}
.ouice .bs-navbar-top-example:after {
  top: auto;
  bottom: 15px;
}
.ouice .bs-navbar-top-example .navbar-fixed-top {
  top: -1px;
}
.ouice .bs-navbar-bottom-example {
  padding-top: 45px;
}
.ouice .bs-navbar-bottom-example .navbar-fixed-bottom {
  bottom: -1px;
}
.ouice .bs-navbar-bottom-example .navbar {
  margin-bottom: 0;
}
@media (min-width: 768px) {
  .ouice .bs-navbar-top-example .navbar-fixed-top,
  .ouice .bs-navbar-bottom-example .navbar-fixed-bottom {
    position: absolute;
  }
}

/* Pagination */
.ouice .bs-example .pagination {
  margin-top: 10px;
  margin-bottom: 10px;
}

/* Pager */
.ouice .bs-example > .pager {
  margin-top: 0;
}

/* Example modals */
.ouice .bs-example-modal {
  background-color: #f5f5f5;
}
.ouice .bs-example-modal .modal {
  position: relative;
  top: auto;
  right: auto;
  bottom: auto;
  left: auto;
  z-index: 1;
  display: block;
}
.ouice .bs-example-modal .modal-dialog {
  left: auto;
  margin-right: auto;
  margin-left: auto;
}

/* Example dropdowns */
.ouice .bs-example > .dropdown > .dropdown-toggle {
  float: left;
}
.ouice .bs-example > .dropdown > .dropdown-menu {
  position: static;
  display: block;
  margin-bottom: 5px;
  clear: left;
}

/* Example tabbable tabs */
.ouice .bs-example-tabs .nav-tabs {
  margin-bottom: 15px;
}

/* Tooltips */
.ouice .bs-example-tooltips {
  text-align: center;
}
.ouice .bs-example-tooltips > .btn {
  margin-top: 5px;
  margin-bottom: 5px;
}
.ouice .bs-example-tooltip .tooltip {
  position: relative;
  display: inline-block;
  margin: 10px 20px;
  opacity: 1;
}

/* Popovers */
.ouice .bs-example-popover {
  padding-bottom: 24px;
  background-color: #f9f9f9;
}
.ouice .bs-example-popover .popover {
  position: relative;
  display: block;
  float: left;
  width: 260px;
  margin: 20px;
}

/* Scrollspy demo on fixed height div */
.ouice .scrollspy-example {
  position: relative;
  height: 200px;
  margin-top: 10px;
  overflow: auto;
}

.ouice .bs-example > .nav-pills-stacked-example {
  max-width: 300px;
}

/* Simple collapse example */
#collapseExample .well {
  margin-bottom: 0;
}

/* Don't wrap event names in Events tables in JS plugin docs */
.ouice .bs-events-table > thead > tr > th:first-child,
.ouice .bs-events-table > tbody > tr > td:first-child {
  white-space: nowrap;
}

.ouice .bs-events-table > thead > tr > th:first-child {
  width: 150px;
}

.ouice .js-options-table > thead > tr > th:nth-child(1),
.ouice .js-options-table > thead > tr > th:nth-child(2) {
  width: 100px;
}

.ouice .js-options-table > thead > tr > th:nth-child(3) {
  width: 50px;
}

/*
 * Code snippets
 *
 * Generated via Pygments and Jekyll, these are snippets of HTML, CSS, and JS.
 */

.ouice .highlight {
  padding: 9px 14px;
  margin-bottom: 14px;
  background-color: #f7f7f9;
  border: 1px solid #e1e1e8;
  border-radius: 4px;
}
.ouice .highlight pre {
  padding: 0;
  margin-top: 0;
  margin-bottom: 0;
  word-break: normal;
  white-space: nowrap;
  background-color: transparent;
  border: 0;
}
.ouice .highlight pre code {
  font-size: inherit;
  color: #333; /* Effectively the base text color */
}
.ouice .highlight pre code:first-child {
  display: inline-block;
  padding-right: 45px;
}

/*
 * Responsive tests
 *
 * Generate a set of tests to show the responsive utilities in action.
 */

/* Responsive (scrollable) doc tables */
.ouice .table-responsive .highlight pre {
  white-space: normal;
}

/* Utility classes table  */
.ouice .bs-table th small,
.ouice .responsive-utilities th small {
  display: block;
  font-weight: normal;
  color: #999;
}
.ouice .responsive-utilities tbody th {
  font-weight: normal;
}
.ouice .responsive-utilities td {
  text-align: center;
}
.ouice .responsive-utilities td.is-visible {
  color: #468847;
  background-color: #dff0d8 !important;
}
.ouice .responsive-utilities td.is-hidden {
  color: #ccc;
  background-color: #f9f9f9 !important;
}

/* Responsive tests */
.ouice .responsive-utilities-test {
  margin-top: 5px;
}
.ouice .responsive-utilities-test .col-xs-6 {
  margin-bottom: 10px;
}
.ouice .responsive-utilities-test span {
  display: block;
  padding: 15px 10px;
  font-size: 14px;
  font-weight: bold;
  line-height: 1.1;
  text-align: center;
  border-radius: 4px;
}
.ouice .visible-on .col-xs-6 .hidden-xs,
.ouice .visible-on .col-xs-6 .hidden-sm,
.ouice .visible-on .col-xs-6 .hidden-md,
.ouice .visible-on .col-xs-6 .hidden-lg,
.ouice .hidden-on .col-xs-6 .hidden-xs,
.ouice .hidden-on .col-xs-6 .hidden-sm,
.ouice .hidden-on .col-xs-6 .hidden-md,
.ouice .hidden-on .col-xs-6 .hidden-lg {
  color: #999;
  border: 1px solid #ddd;
}
.ouice .visible-on .col-xs-6 .visible-xs-block,
.ouice .visible-on .col-xs-6 .visible-sm-block,
.ouice .visible-on .col-xs-6 .visible-md-block,
.ouice .visible-on .col-xs-6 .visible-lg-block,
.ouice .hidden-on .col-xs-6 .visible-xs-block,
.ouice .hidden-on .col-xs-6 .visible-sm-block,
.ouice .hidden-on .col-xs-6 .visible-md-block,
.ouice .hidden-on .col-xs-6 .visible-lg-block {
  color: #468847;
  background-color: #dff0d8;
  border: 1px solid #d6e9c6;
}

/*
 * Glyphicons
 *
 * Special styles for displaying the icons and their classes in the docs.
 */

.ouice .bs-glyphicons {
  margin: 0 -10px 20px;
  overflow: hidden;
}
.ouice .bs-glyphicons-list {
  padding-left: 0;
  list-style: none;
}
.ouice .bs-glyphicons li {
  float: left;
  width: 25%;
  height: 115px;
  padding: 10px;
  font-size: 10px;
  line-height: 1.4;
  text-align: center;
  background-color: #f9f9f9;
  border: 1px solid #fff;
}
.ouice .bs-glyphicons .glyphicon {
  margin-top: 5px;
  margin-bottom: 10px;
  font-size: 24px;
}
.ouice .bs-glyphicons .glyphicon-class {
  display: block;
  text-align: center;
  word-wrap: break-word; /* Help out IE10+ with class names */
}
.ouice .bs-glyphicons li:hover {
  color: #fff;
  background-color: #036;
}

@media (min-width: 768px) {
  .ouice .bs-glyphicons {
    margin-right: 0;
    margin-left: 0;
  }
  .ouice .bs-glyphicons li {
    width: 12.5%;
    font-size: 12px;
  }
}

/*
 * Customizer
 *
 * Since this is so form control heavy, we have quite a few styles to customize
 * the display of inputs, headings, and more. Also included are all the download
 * buttons and actions.
 */

.ouice .bs-customizer .toggle {
  float: right;
  margin-top: 25px;
}

/* Headings and form contrls */
.ouice .bs-customizer label {
  margin-top: 10px;
  font-weight: 500;
  color: #555;
}
.ouice .bs-customizer h2 {
  padding-top: 30px;
  margin-top: 0;
  margin-bottom: 5px;
}
.ouice .bs-customizer h3 {
  margin-bottom: 0;
}
.ouice .bs-customizer h4 {
  margin-top: 15px;
  margin-bottom: 0;
}
.ouice .bs-customizer .bs-callout h4 {
  margin-top: 0; /* lame, but due to specificity we have to duplicate */
  margin-bottom: 5px;
}
.ouice .bs-customizer input[type="text"] {
  font-family: Menlo, Monaco, Consolas, "Courier New", monospace;
  background-color: #fafafa;
}
.ouice .bs-customizer .help-block {
  margin-bottom: 5px;
  font-size: 12px;
}

/* For the variables, use regular weight */
#less-section label {
  font-weight: normal;
}

/* Downloads */
.ouice .bs-customize-download .btn-outline {
  padding: 20px;
}

/* Error handling */
.ouice .bs-customizer-alert {
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  z-index: 1030;
  padding: 15px 0;
  color: #fff;
  background-color: #d9534f;
  border-bottom: 1px solid #b94441;
  -webkit-box-shadow: inset 0 1px 0 rgba(255,255,255,.25);
          box-shadow: inset 0 1px 0 rgba(255,255,255,.25);
}
.ouice .bs-customizer-alert .close {
  margin-top: -4px;
  font-size: 24px;
}
.ouice .bs-customizer-alert p {
  margin-bottom: 0;
}
.ouice .bs-customizer-alert .glyphicon {
  margin-right: 5px;
}
.ouice .bs-customizer-alert pre {
  margin: 10px 0 0;
  color: #fff;
  background-color: #a83c3a;
  border-color: #973634;
  -webkit-box-shadow: inset 0 2px 4px rgba(0,0,0,.05), 0 1px 0 rgba(255,255,255,.1);
          box-shadow: inset 0 2px 4px rgba(0,0,0,.05), 0 1px 0 rgba(255,255,255,.1);
}

.ouice .bs-dropzone {
  position: relative;
  padding: 20px;
  margin-bottom: 20px;
  color: #777;
  text-align: center;
  border: 2px dashed #eee;
  border-radius: 4px;
}
.ouice .bs-dropzone .import-header {
  margin-bottom: 5px;
}
.ouice .bs-dropzone .glyphicon-download-alt {
  font-size: 40px;
}
.ouice .bs-dropzone hr {
  width: 100px;
}
.ouice .bs-dropzone .lead {
  margin-bottom: 10px;
  font-weight: normal;
  color: #333;
}
/*.bs-dropzone*/ #import-manual-trigger {
  cursor: pointer;
}
.ouice .bs-dropzone p:last-child {
  margin-bottom: 0;
}

/*
 * Brand guidelines
 *
 * Extra styles for displaying wordmarks, logos, etc.
 */

/* Logo series wrapper */
.ouice .bs-brand-logos {
  display: table;
  width: 100%;
  margin-bottom: 15px;
  overflow: hidden;
  color: #036;
  background-color: #f9f9f9;
  border-radius: 4px;
}

/* Individual items */
.ouice .bs-brand-item {
  padding: 60px 0;
  text-align: center;
}
.ouice .bs-brand-item + .ouice .bs-brand-item {
  border-top: 1px solid #fff;
}
.ouice .bs-brand-logos .inverse {
  color: #fff;
  background-color: #036;
}

/* Heading content within */
.ouice .bs-brand-item h1,
.ouice .bs-brand-item h3 {
  margin-top: 0;
  margin-bottom: 0;
}
.ouice .bs-brand-item .bs-docs-booticon {
  margin-right: auto;
  margin-left: auto;
}

/* Make the icons stand out on what is/isn't okay */
.ouice .bs-brand-item .glyphicon {
  width: 30px;
  height: 30px;
  margin: 10px auto -10px;
  line-height: 30px;
  color: #fff;
  border-radius: 50%;
}
.ouice .bs-brand-item .glyphicon-ok {
  background-color: #5cb85c;
}
.ouice .bs-brand-item .glyphicon-remove {
  background-color: #d9534f;
}

@media (min-width: 768px) {
  .ouice .bs-brand-item {
    display: table-cell;
    width: 1%;
  }
  .ouice .bs-brand-item + .ouice .bs-brand-item {
    border-top: 0;
    border-left: 1px solid #fff;
  }
  .ouice .bs-brand-item h1 {
    font-size: 60px;
  }
}

/*
 * ZeroClipboard styles
 */

.zero-clipboard {
  position: relative;
  display: none;
}
.btn-clipboard {
  position: absolute;
  top: 0;
  right: 0;
  z-index: 10;
  display: block;
  padding: 5px 8px;
  font-size: 12px;
  color: #767676;
  cursor: pointer;
  background-color: #fff;
  border: 1px solid #e1e1e8;
  border-radius: 0 4px 0 4px;
}
.btn-clipboard-hover {
  color: #fff;
  background-color: #036;
  border-color: #036;
}

@media (min-width: 768px) {
  .zero-clipboard {
    display: block;
  }
  .bs-example + .zero-clipboard .btn-clipboard {
    top: -16px;
    border-top-right-radius: 0;
  }
}

/*
 * AnchorJS Styles
 */
.anchorjs-link {
  color: inherit;
}

@media (max-width: 480px) {
  .anchorjs-link {
    display: none;
  }
}

*:hover > .anchorjs-link {
  opacity: .75;
  -webkit-transition: color .16s linear;
       -o-transition: color .16s linear;
          transition: color .16s linear;
}

*:hover > .anchorjs-link:hover,
.anchorjs-link:focus {
  text-decoration: none;
  opacity: 1;
}

/*
 * Miscellaneous
 *
 * Odds and ends for optimum docs display.
 */

/* Pseudo :focus state for showing how it looks in the docs */
#focusedInput {
  border-color: rgb(204,204,204); /* Restate unfocused value to make CSSLint happy that there's a pre-CSS3 fallback*/
  border-color: rgba(82,168,236,.8);
  outline: 0;
  outline: thin dotted \9; /* IE6-9 */
  -webkit-box-shadow: 0 0 8px rgba(82,168,236,.6);
          box-shadow: 0 0 8px rgba(82,168,236,.6);
}

/* Nullify ill-advised printing of hrefs; see #18711 */
@media print {
  a[href]:after {
    content: "" !important;
  }
}


text:
/**
 */
package subkdm.kdmObjects.impl;

import java.util.Collection;

import org.eclipse.emf.common.notify.Notification;
import org.eclipse.emf.common.notify.NotificationChain;

import org.eclipse.emf.common.util.EList;

import org.eclipse.emf.ecore.EClass;
import org.eclipse.emf.ecore.InternalEObject;

import org.eclipse.emf.ecore.impl.ENotificationImpl;

import org.eclipse.emf.ecore.util.EObjectContainmentEList;
import org.eclipse.emf.ecore.util.InternalEList;

import subkdm.kdmObjects.AbstractCodeElement;
import subkdm.kdmObjects.ControlElement;
import subkdm.kdmObjects.DataType;
import subkdm.kdmObjects.KdmObjectsPackage;

/**
 *
 * An implementation of the model object 'Control Element'.
 *
 *

 * The following features are implemented:
 *

 *
{@link subkdm.kdmObjects.impl.ControlElementImpl#getCodeElement Code Element}

 *
{@link subkdm.kdmObjects.impl.ControlElementImpl#getType Type}

 *

 *

 *
 * @generated
 */
public class ControlElementImpl extends ComputationalObjectImpl implements ControlElement {
	/**
	 * The cached value of the '{@link #getCodeElement() Code Element}' containment reference list.
	 *
	 *
	 * @see #getCodeElement()
	 * @generated
	 * @ordered
	 */
	protected EList<AbstractCodeElement> codeElement;

	/**
	 * The cached value of the '{@link #getType() Type}' reference.
	 *
	 *
	 * @see #getType()
	 * @generated
	 * @ordered
	 */
	protected DataType type;

	/**
	 *
	 *
	 * @generated
	 */
	protected ControlElementImpl() {
		super();
	}

	/**
	 *
	 *
	 * @generated
	 */
	@Override
	protected EClass eStaticClass() {
		return KdmObjectsPackage.Literals.CONTROL_ELEMENT;
	}

	/**
	 *
	 *
	 * @generated
	 */
	public EList<AbstractCodeElement> getCodeElement() {
		if (codeElement == null) {
			codeElement = new EObjectContainmentEList<AbstractCodeElement>(AbstractCodeElement.class, this, KdmObjectsPackage.CONTROL_ELEMENT__CODE_ELEMENT);
		}
		return codeElement;
	}

	/**
	 *
	 *
	 * @generated
	 */
	public DataType getType() {
		if (type != null && type.eIsProxy()) {
			InternalEObject oldType = (InternalEObject)type;
			type = (DataType)eResolveProxy(oldType);
			if (type != oldType) {
				if (eNotificationRequired())
					eNotify(new ENotificationImpl(this, Notification.RESOLVE, KdmObjectsPackage.CONTROL_ELEMENT__TYPE, oldType, type));
			}
		}
		return type;
	}

	/**
	 *
	 *
	 * @generated
	 */
	public DataType basicGetType() {
		return type;
	}

	/**
	 *
	 *
	 * @generated
	 */
	public void setType(DataType newType) {
		DataType oldType = type;
		type = newType;
		if (eNotificationRequired())
			eNotify(new ENotificationImpl(this, Notification.SET, KdmObjectsPackage.CONTROL_ELEMENT__TYPE, oldType, type));
	}

	/**
	 *
	 *
	 * @generated
	 */
	@Override
	public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) {
		switch (featureID) {
			case KdmObjectsPackage.CONTROL_ELEMENT__CODE_ELEMENT:
				return ((InternalEList<?>)getCodeElement()).basicRemove(otherEnd, msgs);
		}
		return super.eInverseRemove(otherEnd, featureID, msgs);
	}

	/**
	 *
	 *
	 * @generated
	 */
	@Override
	public Object eGet(int featureID, boolean resolve, boolean coreType) {
		switch (featureID) {
			case KdmObjectsPackage.CONTROL_ELEMENT__CODE_ELEMENT:
				return getCodeElement();
			case KdmObjectsPackage.CONTROL_ELEMENT__TYPE:
				if (resolve) return getType();
				return basicGetType();
		}
		return super.eGet(featureID, resolve, coreType);
	}

	/**
	 *
	 *
	 * @generated
	 */
	@SuppressWarnings("unchecked")
	@Override
	public void eSet(int featureID, Object newValue) {
		switch (featureID) {
			case KdmObjectsPackage.CONTROL_ELEMENT__CODE_ELEMENT:
				getCodeElement().clear();
				getCodeElement().addAll((Collection<? extends AbstractCodeElement>)newValue);
				return;
			case KdmObjectsPackage.CONTROL_ELEMENT__TYPE:
				setType((DataType)newValue);
				return;
		}
		super.eSet(featureID, newValue);
	}

	/**
	 *
	 *
	 * @generated
	 */
	@Override
	public void eUnset(int featureID) {
		switch (featureID) {
			case KdmObjectsPackage.CONTROL_ELEMENT__CODE_ELEMENT:
				getCodeElement().clear();
				return;
			case KdmObjectsPackage.CONTROL_ELEMENT__TYPE:
				setType((DataType)null);
				return;
		}
		super.eUnset(featureID);
	}

	/**
	 *
	 *
	 * @generated
	 */
	@Override
	public boolean eIsSet(int featureID) {
		switch (featureID) {
			case KdmObjectsPackage.CONTROL_ELEMENT__CODE_ELEMENT:
				return codeElement != null && !codeElement.isEmpty();
			case KdmObjectsPackage.CONTROL_ELEMENT__TYPE:
				return type != null;
		}
		return super.eIsSet(featureID);
	}

} //ControlElementImpl


text:
using System;

namespace HomesideHeroes.Models.Utils
{
    public static class DateTimeOfYearExtensions
    {
        public static DateTime FirstDayOfYear(this DateTime value)
        {
            return new DateTime(value.Year, 1, 1);
        }

        public static DateTime LastDayOfYear(this DateTime value)
        {
            var temp = new DateTime(value.Year, 12, 1);
            return new DateTime(value.Year, 12, temp.DaysInMonth());
        }
    }
}


text:
Yamlious is a Python module that allows you to declare
[voluptous](https://github.com/alecthomas/voluptuous) schemas in YAML format.

This module is at a very early stage, only tested according to our use-cases.

## Installation

```shell
$ pip install yamlious
```

## Usage

```python
import voluptuous
import yamlious

# build voluptuous schema
with open('my-schema.yaml') as istr:
  _schema, options = yamlious.from_yaml(istr)
  schema = voluptuous.schema(_schema, **options)
# check your data
schema({
  'firstname': 'John',
  'lastname': 'Doe',
})
```

## Syntax

a yamlious schema is a `dict` of 2 keys:

* `content`: a mandatory `dict` describing the first argument given to the `voluptuous.Schema` function.
* `options`: an optional `dict` passed as `**kwargs` to the `voluptuous.Schema` function.

### Show me an example

The following examples are extracted from the voluptuous documentation.

#### Twitter user search API schema
```python
>>> from voluptuous import Schema
>>> schema = Schema({
...   'q': str,
...   'per_page': int,
...   'page': int,
... })
```

Yamlious can create the very same schema with the following YAML input:

```yaml
content:
    q: str
    per_page: str
    page: int
```

### Twitter user search API schema with semantic

```python
>>> from voluptuous import Required, All, Length, Range
>>> schema = Schema({
...   Required('q'): All(str, Length(min=1)),
...   Required('per_page', default=5): All(int, Range(min=1, max=20)),
...   'page': All(int, Range(min=0)),
... })
```

the corresponding Yamlious file is:
```yaml
content:
    q:
        key: Required
        All:
            - str
            - Length:
                min: 1
    per_page:
        key:
            Required:
                default: 5
        All:
          - int
          - Range:
              min: 1
              max: 20
    page:
        All:
            - int
            - Range:
                min: 0
```

Regarding the `q` key description:

* `key` specifies the *key* part of `Required('q'): All(str, Length(min=1)),`
* There is no need to repeat `q` to `Required` argument, because inside `key`, there is no need to do it.
* The key function can be passed as `string` if there is no extra argument to pass, like `q` for instance.
* There are possible variants:

    ```yaml
    # key function is a dict without argument
    q:
        key:
          Required:
    ```

    ```yaml
    # provides all arguments to function, even the key:
    q:
        key:
            Required:
                - q
    ```

## Tests

You can use `tox` to run the test-suite on every supported platform:

```shell
# Install and load virtualenv
$ pip install virtualenv
$ virtualenv .env
$ .env/bin/activate
# Install tox
$ pip install tox
# Run the test suites
$ tox
```

## Issues

Pull-requests are welcome. You can also submit your issues to the
[issues tracker](https://github.com/cogniteev/yamlious/issues)

## License

`yamlious` is licensed under the Apache License, Version 2.0.
See [LICENSE](LICENSE) file for full license text.


text:
**A03_file_rdr_en.xml**

This Channel reads CSV files from the inbox folder, maps it's contents to variables and the
Destination Connector just logs the variables out.

This is the basic example of a file-based outbox. An app that can't send messages, writes files out,
those files are read by Mirth, processed, and data can be mapped to a XML or JSON message and sent
to a destination or stored in a database.

The outbox folder contains a couple of sample CSV files. After processed, those files will have
a .done extension. If you want to execute the Channel again just remove the .done

## (español)

**A03_bandeja_de_entrada_file.xml**

Este canal lee archivos CSV desde la carpeta inbox, extrae sus datos a variables y muestra los
valores de las variables en el conector destino.

Este es un ejemplo simple de inbox con archivos. Luego de que el archivo es procesado, sus datos
podrían usarse para generar mensajes XML o JSON y enviarlos a un destino, o para escribir en una
base de datos.

La carpeta inbox contiene algunos archivos de ejemplo con resultados de laboratorio en formado CSV.
Al ser procesados, el canal agregará la extensión .done. Para volver a ejecutar el canal, solo
remueve la extensión .done de los archivos.


text:
// Copyright (c) 2015 fjz13. All rights reserved.
// Use of this source code is governed by a MIT-style
// license that can be found in the LICENSE file.
#include "MedusaCorePreCompiled.h"
#ifdef MEDUSA_POSIX_THREADING
#include "Core/Threading/ThreadPoolTimer.h"
#include "Core/Threading/ThreadPool.h"
#include "Core/Threading/Thread.h"
#include "Core/Math/Random/Random.h"

MEDUSA_BEGIN;

ThreadPoolTimer::ThreadPoolTimer(ThreadPool* pool, const StringRef& name, const ShareCommand& command, uint delay /*= 0*/, uint repeatCount /*= 0*/, uint repeatInterval /*= 0*/, uint repeatIntervalRange/*=0*/)
	:mPool(pool), mName(name), mCommand(command), mDelay(delay), mRepeatCount(repeatCount), mRepeatInterval(repeatInterval), mRepeatIntervalRange(repeatIntervalRange)
{
	mIsSubmitted = false;
	mIsCancelled = false;
}

ThreadPoolTimer::~ThreadPoolTimer(void)
{

}

bool ThreadPoolTimer::OnExecute()
{
	if (mIsCancelled)
	{
		mCompleteEvent.Set();
		return false;
	}

	mWatch.Shot();
	if (mDelay > 0)
	{
		uint elapsed = (uint)mWatch.ElapsedMilliseconds();
		if (elapsed < mDelay)
		{
			Thread::Sleep(mDelay - elapsed);
		}
	}
	mWatch.Step();
	Random random;
	do
	{
		//check to avoid execute
		if (mIsCancelled)
		{
			mCompleteEvent.Set();
			return false;
		}

		if (mCommand != nullptr)
		{
			mCommand->Execute();
		}

		//double check to avoid sleep
		if (mIsCancelled)
		{
			mCompleteEvent.Set();
			return false;
		}

		if (mRepeatCount != uint(-1))
		{
			BREAK_IF_ZERO(mRepeatCount);
			--mRepeatCount;
			BREAK_IF_ZERO(mRepeatCount);
		}

		//wait repeat interval
		uint interval = mRepeatInterval;
		if (mRepeatIntervalRange!=0)
		{
			interval += random.Next(-(int)mRepeatIntervalRange, (int)mRepeatIntervalRange);
		}

		if (interval>0)
		{
			Thread::Sleep(interval);
		}
	} while (true);

	mCompleteEvent.Set();
	return true;
}
void ThreadPoolTimer::Sumbit()
{
	mWatch.Start();
	mPool->Enqueue(this);
	mIsSubmitted = true;
}

void ThreadPoolTimer::Cancel()
{
	mIsCancelled = true;
}

void ThreadPoolTimer::Wait(bool cancelPending /*= false*/)
{
	if (cancelPending)
	{
		//find current pending work in thread pool
		mPool->CancelPendingCommands(this);
	}
	mCompleteEvent.Wait();
}

bool ThreadPoolTimer::IsSubmitted() const
{
	return mIsSubmitted;
}

MEDUSA_END;

#endif


text:
#!/usr/bin/env node

'use strict';

const evalInAE = require('./lib/MudBrickLayer/node/evalInAE');
const AECompToKeyframesAnimation = require('./lib/keyframes/AECompToKeyframesAnimation');
const fs = require('fs');

function main() {
  function get_selectedComp_jsx(send) {
    Property.prototype.ao_keyframeTweens = undefined; // disable slow tween rendering
    app.project.activeItem && send(app.project.activeItem.toJSON());
  }

  evalInAE(get_selectedComp_jsx)
    .on('data', (layer) => {
      const kfDoc = AECompToKeyframesAnimation(layer);
      fs.writeFileSync(layer.name + '.kf.json',
                       JSON.stringify(kfDoc, null, 2));
    })
    .on('error', (error) => console.error(error))
    .on('end', () => {});
}

module.exports = main;

if (module.id == '.') {
  main();
}


text:
namespace PSher.Common.Constants
{
    public class ValidationConstants
    {
        public const int MinAlbumName = 3;
        public const int MaxAlbumName = 64;
        public const int MinGalleryName = 3;
        public const int MaxGalleryName = 64;
        public const int MinCommentText = 5;
        public const int MaxCommentText = 256;
        public const int MinImageTitle = 2;
        public const int MaxImageTitle = 128;
        public const int MaxImageDescription = 128;
        public const int MaxImageUrlLength = 2048;
        public const int MinImageInfoFileExtension = 1;
        public const int MaxImageInfoFileExtension = 6;
        public const int MaxImageInfoOriginalName = 248;
        public const int MinMarkValue = 1;
        public const int MaxMarkValue = 5;
        public const int MinTagName = 3;
        public const int MaxTagName = 64;
        public const int MinUserRealName = 2;
        public const int MaxUserRealName = 32;
    }
}


text:
<?php

namespace Oro\Bundle\EntityBundle\ORM\TriggerDriver;

class PdoMysql extends AbstractDriver
{
    /**
     * {@inheritdoc}
     */
    public function getName()
    {
        return self::DRIVER_MYSQL;
    }

    /**
     * {@inheritdoc}
     */
    protected function getSqlDisable()
    {
        return 'SET FOREIGN_KEY_CHECKS = 0';
    }

    /**
     * {@inheritdoc}
     */
    protected function getSqlEnable()
    {
        return 'SET FOREIGN_KEY_CHECKS = 1';
    }
}


text:
mapboxgl.accessToken = 'pk.eyJ1Ijoia3lvMTE2IiwiYSI6IkN5QVlHVjAifQ.jxSEL4lJ0RbCSXmBg4cDZw';

var map = new mapboxgl.Map({
    container: 'map',
    style: 'mapbox://styles/mapbox/dark-v9',
    center: [31.4606, 20.7927],
    zoom: 0.5
});

// shared doms
var slider = document.getElementById('slider');
var filterGroup = document.getElementById('legend-group');
var template = document.querySelector('#legend');
var label = template.content.querySelector('label');
var input = template.content.querySelector('input');
var span = template.content.querySelector('span');
var bar = template.content.querySelector('.bar');

var color;

// render map
map.on('load', function () {
    // color generator
    color = new Color();
    // Here we're using d3 to help us make the ajax request but you can use
    // Any request method (library or otherwise) you wish.
    d3.json('./assets/data/test4.geojson', function (err, data) {
        if (err) throw err;
        // Create a month property value based on time
        // used to filter against.
        //                data.features = data.features.map(function (d) {
        //                    d.properties.year = new Date(d.properties.time).getFullYear();
        //                    return d;
        //                });

        map.addSource('places', {
            'type': 'geojson',
            'data': data
        });

        data.features.forEach(function (feature) {
            var symbol = feature.properties['type'];
            console.log(symbol);
            var circleLayerId = symbol + '-circles',
                labelLayerId = symbol + '-labels';

            // Add a layer for this symbol type if it hasn't been added already.
            if (!map.getLayer(circleLayerId)) {
                // console.log(symbol);
                renderLayer(symbol);
                addControl(symbol);

                // map.addLayer({
                //     "id": circleLayerId,
                //     "type": "symbol",
                //     "source": "places",
                //     "layout": {
                //         "icon-image": symbol + "-15",
                //         "icon-allow-overlap": true
                //     },
                //     "filter": ["==", "type", symbol]
                // });
            }
        });

        componentHandler.upgradeDom();

    });
});

function renderLayer(symbol) {
    var colors = color.next();

    var circleLayerId = symbol + '-circles',
        labelLayerId = symbol + '-labels';
    map.addLayer({
        'id': circleLayerId,
        'type': 'circle',
        'source': 'places',
        'paint': {
            'circle-color': {
                property: 'mag',
                stops: [
                    [10, colors.light],
                    [50, colors.dark]
                ]
            },
            'circle-opacity': 0.75,
            'circle-radius': {
                property: 'mag',
                stops: [
                    [10, 20],
                    [50, 40]
                ]
            }
        },
        "filter": ["all", ["==", "type", symbol]]
    });

    map.addLayer({
        'id': labelLayerId,
        'type': 'symbol',
        'source': 'places',
        'layout': {
            'text-field': '{mag}',
            'text-font': ['Open Sans Bold', 'Arial Unicode MS Bold'],
            'text-size': 12
        },
        'paint': {
            'text-color': 'rgba(0,0,0,0.5)'
        },
        "filter": ["all", ["==", "type", symbol]]
    });

    // Set filter to first month of the year
    // 0 = January
    filterBy(72, symbol);
}

function addControl(symbol) {
    var colors = color.getColors();
    bar.style = "background: linear-gradient(to right, " + colors.light + ", " + colors.dark + ");";

    var circleLayerId = symbol + '-circles',
        labelLayerId = symbol + '-labels';
    slider.addEventListener('input', function (e) {
        var month = parseInt(e.target.value, 10);
        //                console.log(month);
        filterBy(month, symbol);
    });

    // Add checkbox and label elements for the layer.
    label.for = input.id = symbol;
    span.textContent = symbol;
    filterGroup.appendChild(document.importNode(template.content, true));

    // When the checkbox changes, update the visibility of the layer.
    document.getElementById(symbol).addEventListener('change', function (e) {
        console.log('change');
        map.setLayoutProperty(circleLayerId, 'visibility',
            e.target.checked ? 'visible' : 'none');
        map.setLayoutProperty(labelLayerId, 'visibility',
            e.target.checked ? 'visible' : 'none');
    });
}

function filterBy(yearmonth, symbol) {
    year = parseInt(yearmonth / 12);
    month = (yearmonth % 12) + 1;
    var yearfilter = ['==', 'year-month', parseInt(year + 2000) + "-" + parseInt(month)];
    var filters = map.getFilter(symbol + '-circles');
    filters[2] = yearfilter;
    map.setFilter(symbol + '-circles', filters);
    map.setFilter(symbol + '-labels', filters);

    // Set the label to the month
    document.getElementById('year').textContent = parseInt(year + 2000) + "-" + parseInt(month);
}


text:
using System;
using System.Text;
using System.Data;
using System.Data.SqlClient;
using System.Data.Common;
using System.Collections;
using System.Collections.Generic;
using System.ComponentModel;
using System.Configuration;
using System.Xml;
using System.Xml.Serialization;
using SubSonic;
using SubSonic.Utilities;
namespace DalSic
{
	/// <summary>
	/// Strongly-typed collection for the PnDistrito class.
	/// </summary>
    [Serializable]
	public partial class PnDistritoCollection : ActiveList<PnDistrito, PnDistritoCollection>
	{
		public PnDistritoCollection() {}

        /// <summary>
		/// Filters an existing collection based on the set criteria. This is an in-memory filter
		/// Thanks to developingchris for this!
        /// </summary>
        /// <returns>PnDistritoCollection</returns>
		public PnDistritoCollection Filter()
        {
            for (int i = this.Count - 1; i > -1; i--)
            {
                PnDistrito o = this[i];
                foreach (SubSonic.Where w in this.wheres)
                {
                    bool remove = false;
                    System.Reflection.PropertyInfo pi = o.GetType().GetProperty(w.ColumnName);
                    if (pi.CanRead)
                    {
                        object val = pi.GetValue(o, null);
                        switch (w.Comparison)
                        {
                            case SubSonic.Comparison.Equals:
                                if (!val.Equals(w.ParameterValue))
                                {
                                    remove = true;
                                }
                                break;
                        }
                    }
                    if (remove)
                    {
                        this.Remove(o);
                        break;
                    }
                }
            }
            return this;
        }

	}
	/// <summary>
	/// This is an ActiveRecord class which wraps the PN_distrito table.
	/// </summary>
	[Serializable]
	public partial class PnDistrito : ActiveRecord<PnDistrito>, IActiveRecord
	{
		#region .ctors and Default Settings

		public PnDistrito()
		{
		  SetSQLProps();
		  InitSetDefaults();
		  MarkNew();
		}

		private void InitSetDefaults() { SetDefaults(); }

		public PnDistrito(bool useDatabaseDefaults)
		{
			SetSQLProps();
			if(useDatabaseDefaults)
				ForceDefaults();
			MarkNew();
		}

		public PnDistrito(object keyID)
		{
			SetSQLProps();
			InitSetDefaults();
			LoadByKey(keyID);
		}

		public PnDistrito(string columnName, object columnValue)
		{
			SetSQLProps();
			InitSetDefaults();
			LoadByParam(columnName,columnValue);
		}

		protected static void SetSQLProps() { GetTableSchema(); }

		#endregion

		#region Schema and Query Accessor
		public static Query CreateQuery() { return new Query(Schema); }
		public static TableSchema.Table Schema
		{
			get
			{
				if (BaseSchema == null)
					SetSQLProps();
				return BaseSchema;
			}
		}

		private static void GetTableSchema()
		{
			if(!IsSchemaInitialized)
			{
				//Schema declaration
				TableSchema.Table schema = new TableSchema.Table("PN_distrito", TableType.Table, DataService.GetInstance("sicProvider"));
				schema.Columns = new TableSchema.TableColumnCollection();
				schema.SchemaName = @"dbo";
				//columns

				TableSchema.TableColumn colvarIdDistrito = new TableSchema.TableColumn(schema);
				colvarIdDistrito.ColumnName = "id_distrito";
				colvarIdDistrito.DataType = DbType.Int32;
				colvarIdDistrito.MaxLength = 0;
				colvarIdDistrito.AutoIncrement = true;
				colvarIdDistrito.IsNullable = false;
				colvarIdDistrito.IsPrimaryKey = true;
				colvarIdDistrito.IsForeignKey = false;
				colvarIdDistrito.IsReadOnly = false;
				colvarIdDistrito.DefaultSetting = @"";
				colvarIdDistrito.ForeignKeyTableName = "";
				schema.Columns.Add(colvarIdDistrito);

				TableSchema.TableColumn colvarNombre = new TableSchema.TableColumn(schema);
				colvarNombre.ColumnName = "nombre";
				colvarNombre.DataType = DbType.AnsiString;
				colvarNombre.MaxLength = -1;
				colvarNombre.AutoIncrement = false;
				colvarNombre.IsNullable = true;
				colvarNombre.IsPrimaryKey = false;
				colvarNombre.IsForeignKey = false;
				colvarNombre.IsReadOnly = false;
				colvarNombre.DefaultSetting = @"";
				colvarNombre.ForeignKeyTableName = "";
				schema.Columns.Add(colvarNombre);

				TableSchema.TableColumn colvarObservaciones = new TableSchema.TableColumn(schema);
				colvarObservaciones.ColumnName = "observaciones";
				colvarObservaciones.DataType = DbType.AnsiString;
				colvarObservaciones.MaxLength = -1;
				colvarObservaciones.AutoIncrement = false;
				colvarObservaciones.IsNullable = true;
				colvarObservaciones.IsPrimaryKey = false;
				colvarObservaciones.IsForeignKey = false;
				colvarObservaciones.IsReadOnly = false;
				colvarObservaciones.DefaultSetting = @"";
				colvarObservaciones.ForeignKeyTableName = "";
				schema.Columns.Add(colvarObservaciones);

				BaseSchema = schema;
				//add this schema to the provider
				//so we can query it later
				DataService.Providers["sicProvider"].AddSchema("PN_distrito",schema);
			}
		}
		#endregion

		#region Props

		[XmlAttribute("IdDistrito")]
		[Bindable(true)]
		public int IdDistrito
		{
			get { return GetColumnValue<int>(Columns.IdDistrito); }
			set { SetColumnValue(Columns.IdDistrito, value); }
		}

		[XmlAttribute("Nombre")]
		[Bindable(true)]
		public string Nombre
		{
			get { return GetColumnValue<string>(Columns.Nombre); }
			set { SetColumnValue(Columns.Nombre, value); }
		}

		[XmlAttribute("Observaciones")]
		[Bindable(true)]
		public string Observaciones
		{
			get { return GetColumnValue<string>(Columns.Observaciones); }
			set { SetColumnValue(Columns.Observaciones, value); }
		}

		#endregion

		//no foreign key tables defined (0)

		//no ManyToMany tables defined (0)

		#region ObjectDataSource support

		/// <summary>
		/// Inserts a record, can be used with the Object Data Source
		/// </summary>
		public static void Insert(string varNombre,string varObservaciones)
		{
			PnDistrito item = new PnDistrito();

			item.Nombre = varNombre;

			item.Observaciones = varObservaciones;

			if (System.Web.HttpContext.Current != null)
				item.Save(System.Web.HttpContext.Current.User.Identity.Name);
			else
				item.Save(System.Threading.Thread.CurrentPrincipal.Identity.Name);
		}

		/// <summary>
		/// Updates a record, can be used with the Object Data Source
		/// </summary>
		public static void Update(int varIdDistrito,string varNombre,string varObservaciones)
		{
			PnDistrito item = new PnDistrito();

				item.IdDistrito = varIdDistrito;

				item.Nombre = varNombre;

				item.Observaciones = varObservaciones;

			item.IsNew = false;
			if (System.Web.HttpContext.Current != null)
				item.Save(System.Web.HttpContext.Current.User.Identity.Name);
			else
				item.Save(System.Threading.Thread.CurrentPrincipal.Identity.Name);
		}
		#endregion

        #region Typed Columns

        public static TableSchema.TableColumn IdDistritoColumn
        {
            get { return Schema.Columns[0]; }
        }

        public static TableSchema.TableColumn NombreColumn
        {
            get { return Schema.Columns[1]; }
        }

        public static TableSchema.TableColumn ObservacionesColumn
        {
            get { return Schema.Columns[2]; }
        }

        #endregion
		#region Columns Struct
		public struct Columns
		{
			 public static string IdDistrito = @"id_distrito";
			 public static string Nombre = @"nombre";
			 public static string Observaciones = @"observaciones";

		}
		#endregion

		#region Update PK Collections

        #endregion

        #region Deep Save

        #endregion
	}
}


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

namespace Skeddly.Constants
{
	public static class ResourceIdentificationMethods
	{
		public const string All = "all";
		public const string ByResourceId = "by-resource-id";
		public const string ByResourceTag = "by-resource-tag";
	}
}


text:
#ifndef CURVETEXT_HELPER_H
#define CURVETEXT_HELPER_H

void curveTextMulti();
void curvetextEdit(AcDbObjectIdArray& curvesArray);
void setStart();
void setStart(AcDbObjectId id);
void setEnd();
void setEnd(AcDbObjectId id);
void reverse();
void reverse(AcDbObjectIdArray& idArray);
void ShowCurve();
void HideCurve();
void ShowCurve(bool show);
void ShowCurve(bool show, AcDbObjectIdArray& curvesArray);
void ShowText();
void HideText();
void ShowText(bool show);
void ShowText(bool show, AcDbObjectIdArray& curvesArray);
void fit();
void DoNotFit();
void setFit(bool fit);
void setFit(bool fit, AcDbObjectIdArray& curvesArray);
void RepeatText();
void DoNotRepeatText();
void repeatText(bool repeat);
void repeatText(bool repeat, AcDbObjectIdArray& curvesArray);

#endif


text:
package smile.plot;

/**
 * Project 2D logical coordinates to Java2D coordinates.
 *
 * @author Haifeng Li
 */
class Projection2D extends Projection {

    /**
     * Constructor.
     */
    public Projection2D(PlotCanvas canvas) {
        super(canvas);
    }

    @Override
    double[] baseCoordsScreenProjectionRatio(double[] xy) {
        double[] ratio = new double[2];
        ratio[0] = (xy[0] - canvas.base.lowerBound[0]) / (canvas.base.upperBound[0] - canvas.base.lowerBound[0]);
        ratio[1] = (xy[1] - canvas.base.lowerBound[1]) / (canvas.base.upperBound[1] - canvas.base.lowerBound[1]);
        return ratio;
    }

    /**
     * Project the screen coordinate back to the logical coordinates.
     * @param x the x of Java2D coordinate in the canvas.
     * @param y the y of Java2D coordinate in the canvas
     */
    public double[] inverseProjection(int x, int y) {
        double[] sc = new double[2];

        double ratio = (canvas.base.upperBound[0] - canvas.base.lowerBound[0]) / (canvas.getWidth() * (1 - 2 * canvas.margin));
        sc[0] = canvas.base.lowerBound[0] + ratio * (x - canvas.getWidth() * canvas.margin);

        ratio = (canvas.base.upperBound[1] - canvas.base.lowerBound[1]) / (canvas.getHeight() * (1 - 2 * canvas.margin));
        sc[1] = canvas.base.lowerBound[1] + ratio * (canvas.getHeight() * (1 - canvas.margin) - y);

        return sc;
    }
}


text:
SYNONYM

#### According to
Index Fungorum

#### Published in
in Bailey, Bot. Bull. Dept. Agric. , Queensland 7: 29 (1891)

#### Original name
Calicium stenosporum F. Wilson

### Remarks
null


text:
from django import forms

class AssetsForm(forms.Form):

    lat = forms.FloatField()
    lon = forms.FloatField()
    begin = forms.DateField(required=False)
    end = forms.DateField(required=False)

class ImageryForm(forms.Form):

    lat = forms.FloatField()
    lon = forms.FloatField()
    date = forms.DateField(required=False)
    cloud_score = forms.BooleanField(required=False)


text:
<?xml version="1.0"?>
<?xml-stylesheet type="text/xsl" href="configuration.xsl"?>
<!--

-->

<configuration>
   <property>
    <name>use_ldap</name>
    <value>false</value>
    <description>LDAP is available</description>
  </property>
  <property>
    <name>ldap_company</name>
    <value>"KEEDIO"</value>
    <description>LDAP Company</description>
  </property>
  <property>
    <name>base_dn</name>
    <value>"DC=KEEDIO,DC=ORG"</value>
    <description>Kerberos domain</description>
  </property>
  <property>
    <name>ldap_url</name>
    <value>master.ambari.keedio.org</value>
    <description>LDAP Url</description>
  </property>
  <property>
    <name>ipa_cert</name>
    <value>/etc/ipa/ca.crt</value>
    <description>Path ton the IPA certificate</description>
  </property>
   <property>
    <name>use_start_tls</name>
    <value>true</value>
    <description>Use TLS</description>
  </property>
  <property>
    <name>use_bind</name>
    <value>true</value>
    <description>Require authetnication for bind</description>
  </property>
  <property>
    <name>ldap_bind_dn</name>
    <value>"uid=admin,cn=users=,cn=accounts,dc=keedio,dc=org"</value>
    <description>bind dn</description>
  </property>
  <property>
    <name>ldap_bind_password</name>
    <value>"adminadmin"</value>
    <description>LDAP password for user Bind</description>
  </property>
  <property>
    <name>ldap_username_pattern</name>
    <value>"uid=<username>,cn=users,cn=accounts,dc=keedio,dc=org"</value>
    <description>Pattern for searching for usernames</description>
  </property>
  <property>
    <name>create_users_on_login</name>
    <value>false</value>
    <description>Create the users on login</description>
  </property>
 <!--[[users]-->
  <property>
    <name>user_filter</name>
    <value>"objectclass=person"</value>
    <description>Base filter for searching for users</description>
  </property>
  <property>
    <name>user_name_attr</name>
    <value>uid</value>
    <description>User name attribute</description>
  </property>
 <!--#[[groups]]-->
  <property>
    <name>group_filter</name>
    <value>"objectclass=*"</value>
    <description>Base filter for searching for groups</description>
  </property>
  <property>
    <name>group_name_attr</name>
    <value>cn</value>
    <description>The group name attribute in the LDAP schema</description>
  </property>
  <property>
    <name>group_member_attr</name>
    <value>members</value>
    <description>The attribute of the group object which identifies the members of the group</description>
  </property>

</configuration>


text:
namespace chromeos {

ConsolidatedConsentScreenView::ScreenConfig::ScreenConfig() = default;

ConsolidatedConsentScreenView::ScreenConfig::~ScreenConfig() = default;

ConsolidatedConsentScreenHandler::ConsolidatedConsentScreenHandler()
    : BaseScreenHandler(kScreenId) {}

ConsolidatedConsentScreenHandler::~ConsolidatedConsentScreenHandler() = default;

void ConsolidatedConsentScreenHandler::DeclareLocalizedValues(
    ::login::LocalizedValuesBuilder* builder) {
  builder->Add("consolidatedConsentHeader", IDS_CONSOLIDATED_CONSENT_HEADER);
  builder->Add("consolidatedConsentHeaderChild",
               IDS_CONSOLIDATED_CONSENT_HEADER_CHILD);
  builder->Add("consolidatedConsentHeaderManaged",
               IDS_CONSOLIDATED_CONSENT_HEADER_MANAGED);
  builder->Add("consolidatedConsentSubheader",
               IDS_CONSOLIDATED_CONSENT_SUBHEADER);
  builder->Add("consolidatedConsentSubheaderArcDisabled",
               IDS_CONSOLIDATED_CONSENT_SUBHEADER_ARC_DISABLED);
  builder->Add("consolidatedConsentTermsDescriptionTitle",
               IDS_CONSOLIDATED_CONSENT_TERMS_TITLE);
  builder->Add("consolidatedConsentTermsDescription",
               IDS_CONSOLIDATED_CONSENT_TERMS);
  builder->Add("consolidatedConsentTermsDescriptionArcDisabled",
               IDS_CONSOLIDATED_CONSENT_TERMS_ARC_DISABLED);
  builder->Add("consolidatedConsentUsageOptInTitle",
               IDS_CONSOLIDATED_CONSENT_USAGE_OPT_IN_TITLE);
  builder->Add("consolidatedConsentUsageOptIn",
               IDS_CONSOLIDATED_CONSENT_USAGE_OPT_IN_OWNER);
  builder->Add("consolidatedConsentUsageOptInChild",
               IDS_CONSOLIDATED_CONSENT_USAGE_OPT_IN_CHILD_OWNER);
  builder->Add("consolidatedConsentUsageOptInArcDisabled",
               IDS_CONSOLIDATED_CONSENT_USAGE_OPT_IN_ARC_DISABLED_OWNER);
  builder->Add("consolidatedConsentUsageOptInLearnMoreLink",
               IDS_CONSOLIDATED_CONSENT_USAGE_OPT_IN_LEARN_MORE_LINK);
  builder->Add("consolidatedConsentBackupOptInTitle",
               IDS_CONSOLIDATED_CONSENT_BACKUP_OPT_IN_TITLE);
  builder->Add("consolidatedConsentBackupOptIn",
               IDS_CONSOLIDATED_CONSENT_BACKUP_OPT_IN);
  builder->Add("consolidatedConsentBackupOptInChild",
               IDS_CONSOLIDATED_CONSENT_BACKUP_OPT_IN_CHILD);
  builder->Add("consolidatedConsenttBackupOptInLearnMoreLink",
               IDS_CONSOLIDATED_CONSENT_BACKUP_OPT_IN_LEARN_MORE_LINK);
  builder->Add("consolidatedConsentLocationOptInTitle",
               IDS_CONSOLIDATED_CONSENT_LOCATION_OPT_IN_TITLE);
  builder->Add("consolidatedConsentLocationOptIn",
               IDS_CONSOLIDATED_CONSENT_LOCATION_OPT_IN);
  builder->Add("consolidatedConsentLocationOptInChild",
               IDS_CONSOLIDATED_CONSENT_LOCATION_OPT_IN_CHILD);
  builder->Add("consolidatedConsenttLocationOptInLearnMoreLink",
               IDS_CONSOLIDATED_CONSENT_LOCATION_OPT_IN_LEARN_MORE_LINK);
  builder->Add("consolidatedConsentFooter", IDS_CONSOLIDATED_CONSENT_FOOTER);
  builder->Add("consolidatedConsentFooterChild",
               IDS_CONSOLIDATED_CONSENT_FOOTER_CHILD);
  builder->Add("consolidatedConsentUsageOptInLearnMore",
               IDS_CONSOLIDATED_CONSENT_USAGE_OPT_IN_LEARN_MORE_OWNER);
  builder->Add("consolidatedConsentUsageOptInLearnMoreChild",
               IDS_CONSOLIDATED_CONSENT_USAGE_OPT_IN_LEARN_MORE_CHILD_OWNER);
  builder->Add(
      "consolidatedConsentUsageOptInLearnMoreArcDisabled",
      IDS_CONSOLIDATED_CONSENT_USAGE_OPT_IN_LEARN_MORE_ARC_DISABLED_OWNER);
  builder->Add(
      "consolidatedConsentUsageOptInLearnMoreArcDisabledChild",
      IDS_CONSOLIDATED_CONSENT_USAGE_OPT_IN_LEARN_MORE_ARC_DISABLED_CHILD_OWNER);
  builder->Add("consolidatedConsentBackupOptInLearnMore",
               IDS_CONSOLIDATED_CONSENT_BACKUP_OPT_IN_LEARN_MORE);
  builder->Add("consolidatedConsentBackupOptInLearnMoreChild",
               IDS_CONSOLIDATED_CONSENT_BACKUP_OPT_IN_LEARN_MORE_CHILD);
  builder->Add("consolidatedConsentLocationOptInLearnMore",
               IDS_CONSOLIDATED_CONSENT_LOCATION_OPT_IN_LEARN_MORE);
  builder->Add("consolidatedConsentLocationOptInLearnMoreChild",
               IDS_CONSOLIDATED_CONSENT_LOCATION_OPT_IN_LEARN_MORE_CHILD);
  builder->Add("consolidatedConsentFooterLearnMore",
               IDS_CONSOLIDATED_CONSENT_FOOTER_LEARN_MORE);
  builder->Add("consolidatedConsentLearnMore",
               IDS_CONSOLIDATED_CONSENT_LEARN_MORE);
  builder->Add("consolidatedConsentAcceptAndContinue",
               IDS_CONSOLIDATED_CONSENT_ACCEPT_AND_CONTINUE);
  builder->Add("consolidatedConsentLoading", IDS_CONSOLIDATED_CONSENT_LOADING);
  builder->Add("consolidatedConsentErrorTitle",
               IDS_OOBE_GENERIC_FATAL_ERROR_TITLE);
  builder->Add("consolidatedConsentErrorMessage",
               IDS_CONSOLIDATED_CONSENT_TERMS_LOAD_ERROR);
  builder->Add("consolidatedConsentRetry", IDS_CONSOLIDATED_CONSENT_RETRY);
  builder->Add("consolidatedConsentOK", IDS_CONSOLIDATED_CONSENT_OK);
  builder->Add("consolidatedConsentGoogleEulaTitle",
               IDS_CONSOLIDATED_CONSENT_GOOGLE_EULA_TITLE);
  builder->Add("consolidatedConsentCrosEulaTitle",
               IDS_CONSOLIDATED_CONSENT_CROS_EULA_TITLE);
  builder->Add("consolidatedConsentArcTermsTitle",
               IDS_CONSOLIDATED_CONSENT_ARC_TITLE);
  builder->Add("consolidatedConsentPrivacyTitle",
               IDS_CONSOLIDATED_CONSENT_PRIVACY_POLICY_TITLE);

  if (base::CommandLine::ForCurrentProcess()->HasSwitch(
          switches::kArcTosHostForTests)) {
    builder->Add("consolidatedConsentArcTosHostNameForTesting",
                 base::CommandLine::ForCurrentProcess()->GetSwitchValueASCII(
                     switches::kArcTosHostForTests));
  }
}

void ConsolidatedConsentScreenHandler::Show(base::Value::Dict data) {
  ShowInWebUI(std::move(data));
}

void ConsolidatedConsentScreenHandler::SetUsageMode(bool enabled,
                                                    bool managed) {
  CallExternalAPI("setUsageMode", enabled, managed);
}

void ConsolidatedConsentScreenHandler::SetBackupMode(bool enabled,
                                                     bool managed) {
  CallExternalAPI("setBackupMode", enabled, managed);
}

void ConsolidatedConsentScreenHandler::SetLocationMode(bool enabled,
                                                       bool managed) {
  CallExternalAPI("setLocationMode", enabled, managed);
}

void ConsolidatedConsentScreenHandler::SetUsageOptinOptinHidden(bool hidden) {
  CallExternalAPI("setUsageOptinHidden", hidden);
}
}  // namespace chromeos


text:
<?php
// +-----------------------------------------------------------------------------------
// | TangFrameWork 致力于WEB快速解决方案
// +-----------------------------------------------------------------------------------
// | Copyright (c) 2012-2014 http://www.tangframework.com All rights reserved.
// +-----------------------------------------------------------------------------------
// | Licensed ( http://www.apache.org/licenses/LICENSE-2.0 )
// +-----------------------------------------------------------------------------------
// | HomePage ( http://www.tangframework.com/ )
// +-----------------------------------------------------------------------------------
// | Author: wujibing<283109896@qq.com>
// +-----------------------------------------------------------------------------------
// | Version: 1.0
// +-----------------------------------------------------------------------------------
namespace Tang\Database\NoSql;
use Tang\Database\NoSql\Drivers\Memcached as MemcachedDriver;

/**
 * Class Memcached
 * @package Tang\Database\NoSql
 */
class Memcached extends Base
{
	/**
	 * @param string $name
	 * @return MemcachedDriver
	 */
	public static function get($name='')
	{
		return parent::get($name);
	}
	public static function getType()
	{
		return 'memcached';
	}
	public static function createInstance()
	{
		return new MemcachedDriver();
	}
}


text:
package org.orekit.attitudes;

import java.io.Serializable;

import org.orekit.errors.OrekitException;
import org.orekit.frames.Frame;
import org.orekit.time.AbsoluteDate;
import org.orekit.utils.PVCoordinatesProvider;

/** This interface represents an attitude provider model set.
 *
An attitude provider provides a way to compute an {@link Attitude Attitude}
 * from an date and position-velocity local provider.

 * @author Véronique Pommier-Maurussane
 */
public interface AttitudeProvider extends Serializable {

    /** Compute the attitude corresponding to an orbital state.
     * @param pvProv local position-velocity provider around current date
     * @param date current date
     * @param frame reference frame from which attitude is computed
     * @return attitude attitude on the specified date and position-velocity state
     * @throws OrekitException if attitude cannot be computed
     */
    Attitude getAttitude(PVCoordinatesProvider pvProv, AbsoluteDate date, Frame frame)
        throws OrekitException;

}


text:
require('copy-paste').global();
var chalk = require('chalk');
var generatePassword = require('password-generator');

copy(generatePassword(19, false));
console.log("\r\n" + chalk.bgGreen(paste()) + " has been copied to your clipboard." + "\r\n");


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

    <Button
        android:id="@+id/bt"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:layout_alignParentTop="true"
        android:layout_alignParentRight="true"
        android:text="跳过"
        android:background="@null"/>

    <LinearLayout

        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:background="@drawable/login_background">
        <Button
            android:id="@+id/btn1"
            android:layout_width="wrap_content"
            android:layout_height="50dp"
            android:layout_weight="1"
            android:text="注册"
            android:background="@null"
            android:layout_marginTop="120dp"
            android:textSize="18sp"
            />
        <Button
            android:layout_toRightOf="@id/btn1"
            android:layout_width="wrap_content"
            android:layout_height="50dp"
            android:layout_weight="1"
            android:text="登录"
            android:background="@null"
            android:layout_marginTop="120dp"
            android:textSize="18sp"/>
    </LinearLayout>

</RelativeLayout>


text:
/** @constructor */
ScalaJS.c.scala_collection_convert_Wrappers$SetWrapper = (function() {
  ScalaJS.c.java_util_AbstractSet.call(this);
  this.scala$collection$convert$Wrappers$SetWrapper$$underlying$f = null;
  this.$$outer$f = null
});
ScalaJS.c.scala_collection_convert_Wrappers$SetWrapper.prototype = new ScalaJS.inheritable.java_util_AbstractSet();
ScalaJS.c.scala_collection_convert_Wrappers$SetWrapper.prototype.constructor = ScalaJS.c.scala_collection_convert_Wrappers$SetWrapper;
ScalaJS.c.scala_collection_convert_Wrappers$SetWrapper.prototype.size__I = (function() {
  return this.scala$collection$convert$Wrappers$SetWrapper$$underlying$f.size__I()
});
ScalaJS.c.scala_collection_convert_Wrappers$SetWrapper.prototype.iterator__Ljava_util_Iterator = (function() {
  return new ScalaJS.c.scala_collection_convert_Wrappers$SetWrapper$$anon$4().init___Lscala_collection_convert_Wrappers$SetWrapper(this)
});
ScalaJS.c.scala_collection_convert_Wrappers$SetWrapper.prototype.scala$collection$convert$Wrappers$SetWrapper$$$outer__Lscala_collection_convert_Wrappers = (function() {
  return this.$$outer$f
});
ScalaJS.c.scala_collection_convert_Wrappers$SetWrapper.prototype.init___Lscala_collection_convert_Wrappers__Lscala_collection_Set = (function($$outer, underlying) {
  this.scala$collection$convert$Wrappers$SetWrapper$$underlying$f = underlying;
  if (($$outer === null)) {
    throw new ScalaJS.c.java_lang_NullPointerException().init___()
  } else {
    this.$$outer$f = $$outer
  };
  ScalaJS.c.java_util_AbstractSet.prototype.init___.call(this);
  return this
});
ScalaJS.c.scala_collection_convert_Wrappers$SetWrapper.prototype.scala$collection$convert$Wrappers$SetWrapper$$$outer__ = (function() {
  return this.scala$collection$convert$Wrappers$SetWrapper$$$outer__Lscala_collection_convert_Wrappers()
});
/** @constructor */
ScalaJS.inheritable.scala_collection_convert_Wrappers$SetWrapper = (function() {
  /*<skip>*/
});
ScalaJS.inheritable.scala_collection_convert_Wrappers$SetWrapper.prototype = ScalaJS.c.scala_collection_convert_Wrappers$SetWrapper.prototype;
ScalaJS.is.scala_collection_convert_Wrappers$SetWrapper = (function(obj) {
  return (!(!((obj && obj.$classData) && obj.$classData.ancestors.scala_collection_convert_Wrappers$SetWrapper)))
});
ScalaJS.as.scala_collection_convert_Wrappers$SetWrapper = (function(obj) {
  if ((ScalaJS.is.scala_collection_convert_Wrappers$SetWrapper(obj) || (obj === null))) {
    return obj
  } else {
    ScalaJS.throwClassCastException(obj, "scala.collection.convert.Wrappers$SetWrapper")
  }
});
ScalaJS.isArrayOf.scala_collection_convert_Wrappers$SetWrapper = (function(obj, depth) {
  return (!(!(((obj && obj.$classData) && (obj.$classData.arrayDepth === depth)) && obj.$classData.arrayBase.ancestors.scala_collection_convert_Wrappers$SetWrapper)))
});
ScalaJS.asArrayOf.scala_collection_convert_Wrappers$SetWrapper = (function(obj, depth) {
  if ((ScalaJS.isArrayOf.scala_collection_convert_Wrappers$SetWrapper(obj, depth) || (obj === null))) {
    return obj
  } else {
    ScalaJS.throwArrayCastException(obj, "Lscala.collection.convert.Wrappers$SetWrapper;", depth)
  }
});
ScalaJS.data.scala_collection_convert_Wrappers$SetWrapper = new ScalaJS.ClassTypeData({
  scala_collection_convert_Wrappers$SetWrapper: 0
}, false, "scala.collection.convert.Wrappers$SetWrapper", ScalaJS.data.java_util_AbstractSet, {
  scala_collection_convert_Wrappers$SetWrapper: 1,
  java_util_AbstractSet: 1,
  java_util_Set: 1,
  java_util_AbstractCollection: 1,
  java_util_Collection: 1,
  java_lang_Iterable: 1,
  java_lang_Object: 1
});
ScalaJS.c.scala_collection_convert_Wrappers$SetWrapper.prototype.$classData = ScalaJS.data.scala_collection_convert_Wrappers$SetWrapper;
//@ sourceMappingURL=Wrappers$SetWrapper.js.map