text:
#include "config.h"

#include <sys/wait.h>
#include <signal.h>

#include "E.h"
#include "session.h"

static void
SignalHandler(int sig)
{
   static int          loop_count = 0;
   int                 status;

   Mode.wm.in_signal_handler = 1;

   if (EDebug(EDBUG_TYPE_SESSION))
      Eprintf("%s: signal=%d\n", __func__, sig);

   switch (sig)
     {
     case SIGHUP:
	SessionExit(EEXIT_RESTART, NULL);
	break;

     default:
     case SIGINT:
     case SIGQUIT:
     case SIGABRT:
     case SIGTERM:
	SessionExit(EEXIT_EXIT, NULL);
	break;

     case SIGPIPE:
     case SIGALRM:
     case SIGUSR1:
     case SIGUSR2:
	break;

     case SIGILL:
	Alert(_("Enlightenment performed an Illegal Instruction.\n" "\n"
		"This most likely is due to you having installed an run a\n"
		"binary of Enlightenment that was compiled for a make or model\n"
		"of CPU not 100%% identical or compatible with yours. Please\n"
		"either obtain the correct package for your system, or\n"
		"re-compile Enlightenment and possibly any support libraries\n"
		"that you got in binary format to run Enlightenment.\n"));
	goto do_abort;

     case SIGFPE:
	Alert(_("Enlightenment caused a Floating Point Exception.\n" "\n"
		"This means that Enlightenment or support library routines it calls\n"
		"have performed an illegal mathematical operation (most likely\n"
		"dividing a number by zero). This is most likely a bug. It is\n"
		"recommended to restart now. If you wish to help fix this please\n"
		"compile Enlightenment with debugging symbols in and run\n"
		"Enlightenment under gdb so you can backtrace for where it died and\n"
		"send in a useful bug report with backtrace information and variable\n"
		"dumps etc.\n"));
	goto do_abort;

     case SIGSEGV:
	Alert(_("Enlightenment caused Segment Violation (Segfault)\n" "\n"
		"This means that Enlightenment or support library routines it calls\n"
		"have accessed areas of your system's memory that they are not\n"
		"allowed access to. This is most likely a bug. It is recommended to\n"
		"restart now. If you wish to help fix this please compile\n"
		"Enlightenment with debugging symbols in and run Enlightenment\n"
		"under gdb so you can backtrace for where it died and send in a\n"
		"useful bug report with backtrace information and variable\n"
		"dumps etc.\n"));
	goto do_abort;

     case SIGBUS:
	Alert(_("Enlightenment caused Bus Error.\n" "\n"
		"It is suggested you check your hardware and OS installation.\n"
		"It is highly unusual to cause Bus Errors on operational\n"
		"hardware.\n"));
	goto do_abort;

      do_abort:
	if (loop_count > 0)
	   abort();
	loop_count++;
#if 0				/* Avoid X-ops? */
	disp = NULL;
#endif
	Mode.wm.exit_now = 1;
	SessionExit(EEXIT_ERROR, NULL);
	abort();
	break;

     case SIGCHLD:
	while (waitpid(-1, &status, WNOHANG) > 0)
	   ;
	break;
     }

   Mode.wm.in_signal_handler = 0;
}

static void
doSignalsSetup(int setup)
{
   static const int    signals[] = {
      SIGHUP, SIGINT, SIGQUIT, SIGILL, SIGABRT, SIGFPE, SIGSEGV, SIGPIPE,
      SIGALRM, SIGTERM, SIGUSR1, SIGUSR2, SIGCHLD, SIGBUS
   };
   unsigned int        i, sig;
   struct sigaction    sa;

   /*
    * We may be here after a fork/exec within in a signal handler.
    * Therefore, lets just clear the blocked signals.
    */
   sigemptyset(&sa.sa_mask);
   sigprocmask(SIG_SETMASK, &sa.sa_mask, (sigset_t *) NULL);

   for (i = 0; i < sizeof(signals) / sizeof(int); i++)
     {
	sig = signals[i];
	if (Mode.wm.coredump &&
	    (sig == SIGILL || sig == SIGFPE || sig == SIGSEGV || sig == SIGBUS))
	   continue;

	if (setup)
	  {
	     sa.sa_handler = SignalHandler;
	     sa.sa_flags = (sig == SIGCHLD) ? SA_RESTART : 0;
	  }
	else
	  {
	     sa.sa_handler = SIG_DFL;
	     sa.sa_flags = 0;
	  }
	sigemptyset(&sa.sa_mask);
	sigaction(sig, &sa, (struct sigaction *)0);
     }
}

void
SignalsSetup(void)
{
   /* This function will set up all the signal handlers for E */
   doSignalsSetup(1);
}

void
SignalsRestore(void)
{
   /* This function will restore all the signal handlers for E */
   doSignalsSetup(0);
}


text:
"""Support for Renault sensors."""
from __future__ import annotations

from dataclasses import dataclass
from typing import Callable, cast

from renault_api.kamereon.models import KamereonVehicleBatteryStatusData

from homeassistant.components.select import SelectEntity, SelectEntityDescription
from homeassistant.config_entries import ConfigEntry
from homeassistant.core import HomeAssistant
from homeassistant.helpers.entity_platform import AddEntitiesCallback
from homeassistant.helpers.typing import StateType

from .const import DEVICE_CLASS_CHARGE_MODE, DOMAIN
from .renault_entities import RenaultDataEntity, RenaultEntityDescription
from .renault_hub import RenaultHub

@dataclass
class RenaultSelectRequiredKeysMixin:
    """Mixin for required keys."""

    data_key: str
    icon_lambda: Callable[[RenaultSelectEntity], str]
    options: list[str]

@dataclass
class RenaultSelectEntityDescription(
    SelectEntityDescription, RenaultEntityDescription, RenaultSelectRequiredKeysMixin
):
    """Class describing Renault select entities."""

async def async_setup_entry(
    hass: HomeAssistant,
    config_entry: ConfigEntry,
    async_add_entities: AddEntitiesCallback,
) -> None:
    """Set up the Renault entities from config entry."""
    proxy: RenaultHub = hass.data[DOMAIN][config_entry.entry_id]
    entities: list[RenaultSelectEntity] = [
        RenaultSelectEntity(vehicle, description)
        for vehicle in proxy.vehicles.values()
        for description in SENSOR_TYPES
        if description.coordinator in vehicle.coordinators
    ]
    async_add_entities(entities)

class RenaultSelectEntity(
    RenaultDataEntity[KamereonVehicleBatteryStatusData], SelectEntity
):
    """Mixin for sensor specific attributes."""

    entity_description: RenaultSelectEntityDescription

    @property
    def current_option(self) -> str | None:
        """Return the selected entity option to represent the entity state."""
        return cast(str, self.data)

    @property
    def data(self) -> StateType:
        """Return the state of this entity."""
        return self._get_data_attr(self.entity_description.data_key)

    @property
    def icon(self) -> str | None:
        """Icon handling."""
        return self.entity_description.icon_lambda(self)

    @property
    def options(self) -> list[str]:
        """Return a set of selectable options."""
        return self.entity_description.options

    async def async_select_option(self, option: str) -> None:
        """Change the selected option."""
        await self.vehicle.vehicle.set_charge_mode(option)

def _get_charge_mode_icon(entity: RenaultSelectEntity) -> str:
    """Return the icon of this entity."""
    if entity.data == "schedule_mode":
        return "mdi:calendar-clock"
    return "mdi:calendar-remove"

SENSOR_TYPES: tuple[RenaultSelectEntityDescription, ...] = (
    RenaultSelectEntityDescription(
        key="charge_mode",
        coordinator="charge_mode",
        data_key="chargeMode",
        device_class=DEVICE_CLASS_CHARGE_MODE,
        icon_lambda=_get_charge_mode_icon,
        name="Charge Mode",
        options=["always", "always_charging", "schedule_mode"],
    ),
)

redpajama_set_name: RedPajamaGithub


text:
[destiny-tooltip] {
  display: none;
  position: absolute;
  top: 0;
  transition: all 0.1s ease-in-out;
  z-index: 999;
  width: 350px;
  background: rgba(30,36,43, 0.95);
}
.bucketItem:hover [destiny-tooltip] {
  display: block;
  opacity: .99;
}
.bucketsLeft [destiny-tooltip] {
  left: 100px;
}
.bucketsRight [destiny-tooltip] {
  right: 100px;
}
.destinyTooltip {
  position: absolute;
  width: 350px;
  background: rgba(30,36,43, 0.95);
  text-align: left;
  color: #fff;
}

.destinyTooltip .itemHeader,
.destinyTooltip .itemBody {
  padding: 10px;
}
.destinyTooltip .itemHeader {
  background: rgba(245,245,245,0.9);
  color: #333;
}
.tierTypeExotic .destinyTooltip .itemHeader, .destinyTooltip[data-tiertype="Exotic"] .itemHeader {
  background: rgba(206,174,50,0.9);
  color: #f5f5f5;
}
.tierTypeLegendary .destinyTooltip .itemHeader, .destinyTooltip[data-tiertype="Legendary"] .itemHeader, .tierTypeSuperior .destinyTooltip .itemHeader, .destinyTooltip[data-tiertype="Superior"] .itemHeader {
  background: rgba(78,50,99,0.9);
  color: #f5f5f5;
}
.tierTypeRare .destinyTooltip .itemHeader, .destinyTooltip[data-tiertype="Rare"] .itemHeader {
    background: rgba(85,127,158,0.9);
    color: #f5f5f5;
}
.destinyTooltip[data-tiertype="Uncommon"] .itemHeader {
    background: rgba(47,107,60,0.9);
    color: #f5f5f5;
}
.destinyTooltip .itemName {
  text-transform: uppercase;
  font-size: 22px;
  font-weight: normal;
}

.destinyTooltip .itemHeader .itemSubtitle,
.destinyTooltip .itemHeader .tierTypeName {
  position: relative;
  font-size: 17px;
  line-height: 20px;
  font-weight: normal;
  opacity: 0.5;
}

.destinyTooltip .itemHeader .tierTypeName {
  position: absolute;
  right: 0;
  bottom: 0;
}

.itemStats .primaryStat {
  position: relative;
  display: inline-block;
  vertical-align: middle;
  width: 170px;
}
.itemDescription {
  font-style: italic;
}
.itemStats .valueNumber:after {
  background: url("https://bungie.net/img/theme/destiny/icons/icons_gearCompare.png") no-repeat scroll -100px -100px;
  content: "";
  background-size: 100% auto;
  display: inline-block;
  height: 10px;
  margin-left: 10px;
  width: 10px;
}


text:
import argparse
import cv2
import numpy as np
import os
import random
import shutil

import openface
import openface.helper
from openface.data import iterImgs

fileDir = os.path.dirname(os.path.realpath(__file__))
modelDir = os.path.join(fileDir, '..', 'models')
dlibModelDir = os.path.join(modelDir, 'dlib')
openfaceModelDir = os.path.join(modelDir, 'openface')

def write(vals, fName):
    if os.path.isfile(fName):
        print("{} exists. Backing up.".format(fName))
        os.rename(fName, "{}.bak".format(fName))
    with open(fName, 'w') as f:
        for p in vals:
            f.write(",".join(str(x) for x in p))
            f.write("\n")

def computeMeanMain(args):
    align = openface.AlignDlib(args.dlibFacePredictor)

    imgs = list(iterImgs(args.inputDir))
    if args.numImages > 0:
        imgs = random.sample(imgs, args.numImages)

    facePoints = []
    for img in imgs:
        rgb = img.getRGB()
        bb = align.getLargestFaceBoundingBox(rgb)
        alignedPoints = align.align(rgb, bb)
        if alignedPoints:
            facePoints.append(alignedPoints)

    facePointsNp = np.array(facePoints)
    mean = np.mean(facePointsNp, axis=0)
    std = np.std(facePointsNp, axis=0)

    write(mean, "{}/mean.csv".format(args.modelDir))
    write(std, "{}/std.csv".format(args.modelDir))

    # Only import in this mode.
    import matplotlib as mpl
    mpl.use('Agg')
    import matplotlib.pyplot as plt

    fig, ax = plt.subplots()
    ax.scatter(mean[:, 0], -mean[:, 1], color='k')
    ax.axis('equal')
    for i, p in enumerate(mean):
        ax.annotate(str(i), (p[0] + 0.005, -p[1] + 0.005), fontsize=8)
    plt.savefig("{}/mean.png".format(args.modelDir))

def alignMain(args):
    openface.helper.mkdirP(args.outputDir)

    imgs = list(iterImgs(args.inputDir))

    # Shuffle so multiple versions can be run at once.
    random.shuffle(imgs)

    landmarkMap = {
        'outerEyesAndNose': openface.AlignDlib.OUTER_EYES_AND_NOSE,
        'innerEyesAndBottomLip': openface.AlignDlib.INNER_EYES_AND_BOTTOM_LIP
    }
    if args.landmarks not in landmarkMap:
        raise Exception("Landmarks unrecognized: {}".format(args.landmarks))

    landmarkIndices = landmarkMap[args.landmarks]

    align = openface.AlignDlib(args.dlibFacePredictor)

    nFallbacks = 0
    for imgObject in imgs:
        print("=== {} ===".format(imgObject.path))
        outDir = os.path.join(args.outputDir, imgObject.cls)
        openface.helper.mkdirP(outDir)
        outputPrefix = os.path.join(outDir, imgObject.name)
        imgName = outputPrefix + ".png"

        if os.path.isfile(imgName):
            if args.verbose:
                print("  + Already found, skipping.")
        else:
            rgb = imgObject.getRGB()
            if rgb is None:
                if args.verbose:
                    print("  + Unable to load.")
                outRgb = None
            else:
                outRgb = align.align(args.size, rgb,
                                     landmarkIndices=landmarkIndices,
                                     skipMulti=args.skipMulti)
                if outRgb is None and args.verbose:
                    print("  + Unable to align.")

            if args.fallbackLfw and outRgb is None:
                nFallbacks += 1
                deepFunneled = "{}/{}.jpg".format(os.path.join(args.fallbackLfw,
                                                               imgObject.cls),
                                                  imgObject.name)
                shutil.copy(deepFunneled, "{}/{}.jpg".format(os.path.join(args.outputDir,
                                                                          imgObject.cls),
                                                             imgObject.name))

            if outRgb is not None:
                if args.verbose:
                    print("  + Writing aligned file to disk.")
                outBgr = cv2.cvtColor(outRgb, cv2.COLOR_RGB2BGR)
                cv2.imwrite(imgName, outBgr)

    if args.fallbackLfw:
        print('nFallbacks:', nFallbacks)

if __name__ == '__main__':
    parser = argparse.ArgumentParser()

    parser.add_argument('inputDir', type=str, help="Input image directory.")
    parser.add_argument('--dlibFacePredictor', type=str, help="Path to dlib's face predictor.",
                        default=os.path.join(dlibModelDir, "shape_predictor_68_face_landmarks.dat"))

    subparsers = parser.add_subparsers(dest='mode', help="Mode")
    computeMeanParser = subparsers.add_parser(
        'computeMean', help='Compute the image mean of a directory of images.')
    computeMeanParser.add_argument('--numImages', type=int, help="The number of images. '0' for all images.",
                                   default=0)  # <= 0 ===> all imgs
    alignmentParser = subparsers.add_parser(
        'align', help='Align a directory of images.')
    alignmentParser.add_argument('landmarks', type=str,
                                 choices=['outerEyesAndNose',
                                          'innerEyesAndBottomLip',
                                          'eyes_1'],
                                 help='The landmarks to align to.')
    alignmentParser.add_argument(
        'outputDir', type=str, help="Output directory of aligned images.")
    alignmentParser.add_argument('--size', type=int, help="Default image size.",
                                 default=96)
    alignmentParser.add_argument('--fallbackLfw', type=str,
                                 help="If alignment doesn't work, fallback to copying the deep funneled version from this directory..")
    alignmentParser.add_argument(
        '--skipMulti', action='store_true', help="Skip images with more than one face.")
    alignmentParser.add_argument('--verbose', action='store_true')

    args = parser.parse_args()

    if args.mode == 'computeMean':
        computeMeanMain(args)
    else:
        alignMain(args)


text:
"use strict";

let browserSync          = require("browser-sync").create();
let webpack              = require('webpack');
let webpackDevMiddleware = require('webpack-dev-middleware');
let stripAnsi            = require('strip-ansi');

let webpackConfig = require("./webpack.config.js");
let bundler       = webpack(webpackConfig);

browserSync.init({
    server: { baseDir: "app" },
    open: false,
    logFileChanges: false,
    middleware: [
        webpackDevMiddleware(bundler, {
            publicPath: webpackConfig.output.publicPath,
            stats     : { colors: true }
        })
    ],
    plugins: ["bs-fullscreen-message"],
    files: [
        'app/css/*.css',
        'app/*.html'
    ]
});

bundler.plugin("done", stats => {
    if (stats.hasErrors() || stats.hasWarnings()) {
        browserSync.sockets.emit("fullscreen:message", {
            title  : "Webpack Error:",
            body   : stripAnsi(stats.toString()),
            timeout: 100000
        });
        return;
    }
    browserSync.reload();
});


text:
a simple hierarchical tagging system

## API

#### [properties](#tag-properties)

  - [id](#tag-properties-id)

  - [name](#tag-properties-name)

  - [parentID](#tag-properties-parentID)

#### [methods](#tag-methods)

  - [create](#tag-methods-create) (options, callback)

  - [get](#tag-methods-get) (id, callback)

  - [find](#tag-methods-find) (options, callback)

  - [all](#tag-methods-all) (callback)

  - [update](#tag-methods-update) (options, callback)

  - [updateOrCreate](#tag-methods-updateOrCreate) (options, callback)

  - [destroy](#tag-methods-destroy) (id, callback)

  - [createTag](#tag-methods-createTag) (options)

  - [getTag](#tag-methods-getTag) (options)

## properties
a simple hierarchical tagging system

- **id**

  - **type** : any

- **name**

  - **type** : string

  - **description** : the name of the tag

  - **required** : true

- **parentID**

  - **type** : string

  - **description** : the parent ID of the tag

  - **key** : tag

  - **default** :

## methods

### tag.create(options, callback)

create a new tag

- **options**

  - **type** : object

  - **properties**

    - **id**

      - **type** : any

    - **name**

      - **type** : string

      - **description** : the name of the tag

      - **required** : true

    - **parentID**

      - **type** : string

      - **description** : the parent ID of the tag

      - **key** : tag

      - **default** :

- **callback**

  - **type** : function

### tag.get(id, callback)

get tag by id

- **id**

  - **type** : any

  - **description** : the id of the object

  - **required** : true

- **callback**

  - **type** : function

### tag.find(options, callback)

search for instances of tag

- **options**

  - **type** : object

  - **properties**

    - **id**

      - **type** : any

      - **default** :

      - **required** : false

    - **name**

      - **type** : any

      - **description** : the name of the tag

      - **required** : false

      - **default** :

    - **parentID**

      - **type** : any

      - **description** : the parent ID of the tag

      - **key** : tag

      - **default** :

      - **required** : false

- **callback**

  - **type** : function

### tag.all(callback)

gets all instances of tag

- **callback**

  - **type** : function

### tag.update(options, callback)

updates a tag by id

- **options**

  - **type** : object

  - **properties**

    - **id**

      - **type** : any

    - **name**

      - **type** : string

      - **description** : the name of the tag

      - **required** : true

    - **parentID**

      - **type** : string

      - **description** : the parent ID of the tag

      - **key** : tag

      - **default** :

- **callback**

  - **type** : function

### tag.updateOrCreate(options, callback)

updates a tag by id, and creates if necessary

- **options**

  - **type** : object

  - **properties**

    - **id**

      - **type** : any

    - **name**

      - **type** : string

      - **description** : the name of the tag

      - **required** : true

    - **parentID**

      - **type** : string

      - **description** : the parent ID of the tag

      - **key** : tag

      - **default** :

- **callback**

  - **type** : function

### tag.destroy(id, callback)

destroys a tag by id

- **id**

  - **type** : string

  - **description** : the id of the object

  - **required** : true

- **callback**

  - **type** : function

### tag.createTag(options)

- **options**

  - **type** : object

  - **properties**

    - **name**

      - **type** : string

      - **description** : the name of the tag

      - **required** : true

    - **parentID**

      - **type** : string

      - **description** : the parent ID of the tag

      - **key** : tag

      - **default** :

### tag.getTag(options)

- **options**

  - **type** : object

  - **properties**

    - **id**

      - **type** : string

      - **description** : the name of the tag

      - **required** : true

*README auto-generated with [docs](https://github.com/bigcompany/resources/tree/master/docs)*


text:
#pragma once
//------------------------------------------------------------------------------
/**
    @class Oryol::Gamepad
    @ingroup Input
    @brief access to gamepad state
*/
#include "Core/Assertion.h"
#include "glm/vec2.hpp"

namespace Oryol {

class Gamepad {
public:
    /// constructor
    Gamepad();

    /// gamepad buttons, triggers, sticks
    enum Element {
        A = 0,
        B,
        X,
        Y,

        Start,
        Back,

        RightBumper,
        LeftBumper,

        DPadLeft,
        DPadRight,
        DPadUp,
        DPadDown,

        LeftTrigger,
        RightTrigger,
        LeftStick,
        RightStick,

        NumElements,
        InvalidElement = 0,
    };

    /// gamepad is valid/attached?
    bool Attached;
    /// test if button is currently pressed
    bool ButtonPressed(Element btn) const;
    /// test if button was pressed-down this frame
    bool ButtonDown(Element btn) const;
    /// test if button was released this frame
    bool ButtonUp(Element btn) const;
    /// get trigger position (0.0 .. 1.0)
    float32 TriggerValue(Element trigger) const;
    /// get stick position (-1.0 .. +1.0)
    const glm::vec2& StickPos(Element stick) const;

    /// FIXME??? called when button is pressed-down
    void onButtonDown(Element btn);
    /// FIXME??? called when button is released
    void onButtonUp(Element btn);
    /// update trigger value
    void onTriggerValue(Element trigger, float32 val);
    /// update stick position
    void onStickPos(Element stick, const glm::vec2& pos);
    /// reset the gamepad state
    void reset();

private:
    uint32 down;
    uint32 up;
    uint32 pressed;
    glm::vec2 values[NumElements];
};

//------------------------------------------------------------------------------
inline bool
Gamepad::ButtonPressed(Element btn) const {
    o_assert_range_dbg(btn, NumElements);
    return 0 != (this->pressed & (1<<btn));
}

//------------------------------------------------------------------------------
inline bool
Gamepad::ButtonDown(Element btn) const {
    o_assert_range_dbg(btn, NumElements);
    return 0 != (this->down & (1<<btn));
}

//------------------------------------------------------------------------------
inline bool
Gamepad::ButtonUp(Element btn) const {
    o_assert_range_dbg(btn, NumElements);
    return 0 != (this->up & (1<<btn));
}

//------------------------------------------------------------------------------
inline float
Gamepad::TriggerValue(Element trigger) const {
    o_assert_range_dbg(trigger, NumElements);
    return this->values[trigger].x;
}

//------------------------------------------------------------------------------
inline const glm::vec2&
Gamepad::StickPos(Element stick) const {
    o_assert_range_dbg(stick, NumElements);
    return this->values[stick];
}

} // namespace Oryol


text:
namespace OpenPackageCreator
{
    partial class Form1
    {
        /// <summary>
        /// Required designer variable.
        /// </summary>
        private System.ComponentModel.IContainer components = null;

        /// <summary>
        /// Clean up any resources being used.
        /// </summary>
        /// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param>
        protected override void Dispose(bool disposing)
        {
            if (disposing && (components != null))
            {
                components.Dispose();
            }
            base.Dispose(disposing);
        }

        #region Windows Form Designer generated code

        /// <summary>
        /// Required method for Designer support - do not modify
        /// the contents of this method with the code editor.
        /// </summary>
        private void InitializeComponent()
        {
            System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(Form1));
            this.groupBoxConfig = new System.Windows.Forms.GroupBox();
            this.checkBoxJoystickMode = new System.Windows.Forms.CheckBox();
            this.infoLaunchWithFile = new System.Windows.Forms.PictureBox();
            this.infoTerminal = new System.Windows.Forms.PictureBox();
            this.infoJoystickMode = new System.Windows.Forms.PictureBox();
            this.infoManual = new System.Windows.Forms.PictureBox();
            this.buttonManual = new System.Windows.Forms.Button();
            this.textBoxManual = new System.Windows.Forms.TextBox();
            this.checkBoxTerminal = new System.Windows.Forms.CheckBox();
            this.labelManual = new System.Windows.Forms.Label();
            this.infoMimeTypes = new System.Windows.Forms.PictureBox();
            this.infoIcon = new System.Windows.Forms.PictureBox();
            this.infoExeA320 = new System.Windows.Forms.PictureBox();
            this.infoExeGcw = new System.Windows.Forms.PictureBox();
            this.infoCategories = new System.Windows.Forms.PictureBox();
            this.infoComment = new System.Windows.Forms.PictureBox();
            this.infoName = new System.Windows.Forms.PictureBox();
            this.checkBoxLaunchWithFile = new System.Windows.Forms.CheckBox();
            this.textBoxCurPath = new System.Windows.Forms.TextBox();
            this.buttonMimeTypes = new System.Windows.Forms.Button();
            this.buttonIcon = new System.Windows.Forms.Button();
            this.buttonCategories = new System.Windows.Forms.Button();
            this.buttonExeA320 = new System.Windows.Forms.Button();
            this.buttonExe = new System.Windows.Forms.Button();
            this.textBoxMimeTypes = new System.Windows.Forms.TextBox();
            this.textBoxIcon = new System.Windows.Forms.TextBox();
            this.textBoxExeA320 = new System.Windows.Forms.TextBox();
            this.textBoxExe = new System.Windows.Forms.TextBox();
            this.textBoxCategories = new System.Windows.Forms.TextBox();
            this.textBoxComment = new System.Windows.Forms.TextBox();
            this.textBoxName = new System.Windows.Forms.TextBox();
            this.labelMimeTypes = new System.Windows.Forms.Label();
            this.labelIcon = new System.Windows.Forms.Label();
            this.labelExeA320 = new System.Windows.Forms.Label();
            this.labelExe = new System.Windows.Forms.Label();
            this.labelCategories = new System.Windows.Forms.Label();
            this.labelComment = new System.Windows.Forms.Label();
            this.labelPath = new System.Windows.Forms.Label();
            this.labelName = new System.Windows.Forms.Label();
            this.groupBox1 = new System.Windows.Forms.GroupBox();
            this.labelDragndrop = new System.Windows.Forms.Label();
            this.buttonOpen = new System.Windows.Forms.Button();
            this.label2 = new System.Windows.Forms.Label();
            this.folderBrowserDialog = new System.Windows.Forms.FolderBrowserDialog();
            this.buttonPack = new System.Windows.Forms.Button();
            this.buttonReset = new System.Windows.Forms.Button();
            this.saveFileDialogOpk = new System.Windows.Forms.SaveFileDialog();
            this.openFileDialog = new System.Windows.Forms.OpenFileDialog();
            this.menuStrip1 = new System.Windows.Forms.MenuStrip();
            this.fileToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
            this.openToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
            this.exitToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
            this.helpToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
            this.helpToolStripMenuItem1 = new System.Windows.Forms.ToolStripMenuItem();
            this.webSiteToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
            this.aboutToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
            this.checkBoxGSensor = new System.Windows.Forms.CheckBox();
            this.checkBoxHardwareScaling = new System.Windows.Forms.CheckBox();
            this.infoGSensor = new System.Windows.Forms.PictureBox();
            this.infoHardwareScaling = new System.Windows.Forms.PictureBox();
            this.groupBoxConfig.SuspendLayout();
            ((System.ComponentModel.ISupportInitialize)(this.infoLaunchWithFile)).BeginInit();
            ((System.ComponentModel.ISupportInitialize)(this.infoTerminal)).BeginInit();
            ((System.ComponentModel.ISupportInitialize)(this.infoJoystickMode)).BeginInit();
            ((System.ComponentModel.ISupportInitialize)(this.infoManual)).BeginInit();
            ((System.ComponentModel.ISupportInitialize)(this.infoMimeTypes)).BeginInit();
            ((System.ComponentModel.ISupportInitialize)(this.infoIcon)).BeginInit();
            ((System.ComponentModel.ISupportInitialize)(this.infoExeA320)).BeginInit();
            ((System.ComponentModel.ISupportInitialize)(this.infoExeGcw)).BeginInit();
            ((System.ComponentModel.ISupportInitialize)(this.infoCategories)).BeginInit();
            ((System.ComponentModel.ISupportInitialize)(this.infoComment)).BeginInit();
            ((System.ComponentModel.ISupportInitialize)(this.infoName)).BeginInit();
            this.groupBox1.SuspendLayout();
            this.menuStrip1.SuspendLayout();
            ((System.ComponentModel.ISupportInitialize)(this.infoGSensor)).BeginInit();
            ((System.ComponentModel.ISupportInitialize)(this.infoHardwareScaling)).BeginInit();
            this.SuspendLayout();
            //
            // groupBoxConfig
            //
            this.groupBoxConfig.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
            | System.Windows.Forms.AnchorStyles.Right)));
            this.groupBoxConfig.Controls.Add(this.infoHardwareScaling);
            this.groupBoxConfig.Controls.Add(this.infoGSensor);
            this.groupBoxConfig.Controls.Add(this.checkBoxHardwareScaling);
            this.groupBoxConfig.Controls.Add(this.checkBoxGSensor);
            this.groupBoxConfig.Controls.Add(this.checkBoxJoystickMode);
            this.groupBoxConfig.Controls.Add(this.infoLaunchWithFile);
            this.groupBoxConfig.Controls.Add(this.infoTerminal);
            this.groupBoxConfig.Controls.Add(this.infoJoystickMode);
            this.groupBoxConfig.Controls.Add(this.infoManual);
            this.groupBoxConfig.Controls.Add(this.buttonManual);
            this.groupBoxConfig.Controls.Add(this.textBoxManual);
            this.groupBoxConfig.Controls.Add(this.checkBoxTerminal);
            this.groupBoxConfig.Controls.Add(this.labelManual);
            this.groupBoxConfig.Controls.Add(this.infoMimeTypes);
            this.groupBoxConfig.Controls.Add(this.infoIcon);
            this.groupBoxConfig.Controls.Add(this.infoExeA320);
            this.groupBoxConfig.Controls.Add(this.infoExeGcw);
            this.groupBoxConfig.Controls.Add(this.infoCategories);
            this.groupBoxConfig.Controls.Add(this.infoComment);
            this.groupBoxConfig.Controls.Add(this.infoName);
            this.groupBoxConfig.Controls.Add(this.checkBoxLaunchWithFile);
            this.groupBoxConfig.Controls.Add(this.textBoxCurPath);
            this.groupBoxConfig.Controls.Add(this.buttonMimeTypes);
            this.groupBoxConfig.Controls.Add(this.buttonIcon);
            this.groupBoxConfig.Controls.Add(this.buttonCategories);
            this.groupBoxConfig.Controls.Add(this.buttonExeA320);
            this.groupBoxConfig.Controls.Add(this.buttonExe);
            this.groupBoxConfig.Controls.Add(this.textBoxMimeTypes);
            this.groupBoxConfig.Controls.Add(this.textBoxIcon);
            this.groupBoxConfig.Controls.Add(this.textBoxExeA320);
            this.groupBoxConfig.Controls.Add(this.textBoxExe);
            this.groupBoxConfig.Controls.Add(this.textBoxCategories);
            this.groupBoxConfig.Controls.Add(this.textBoxComment);
            this.groupBoxConfig.Controls.Add(this.textBoxName);
            this.groupBoxConfig.Controls.Add(this.labelMimeTypes);
            this.groupBoxConfig.Controls.Add(this.labelIcon);
            this.groupBoxConfig.Controls.Add(this.labelExeA320);
            this.groupBoxConfig.Controls.Add(this.labelExe);
            this.groupBoxConfig.Controls.Add(this.labelCategories);
            this.groupBoxConfig.Controls.Add(this.labelComment);
            this.groupBoxConfig.Controls.Add(this.labelPath);
            this.groupBoxConfig.Controls.Add(this.labelName);
            this.groupBoxConfig.Location = new System.Drawing.Point(12, 126);
            this.groupBoxConfig.Name = "groupBoxConfig";
            this.groupBoxConfig.Size = new System.Drawing.Size(300, 388);
            this.groupBoxConfig.TabIndex = 2;
            this.groupBoxConfig.TabStop = false;
            this.groupBoxConfig.Text = "Configure";
            //
            // checkBoxJoystickMode
            //
            this.checkBoxJoystickMode.AutoSize = true;
            this.checkBoxJoystickMode.Location = new System.Drawing.Point(9, 312);
            this.checkBoxJoystickMode.Name = "checkBoxJoystickMode";
            this.checkBoxJoystickMode.Size = new System.Drawing.Size(116, 17);
            this.checkBoxJoystickMode.TabIndex = 30;
            this.checkBoxJoystickMode.Text = "Use Joystick Mode";
            this.checkBoxJoystickMode.UseVisualStyleBackColor = true;
            //
            // infoLaunchWithFile
            //
            this.infoLaunchWithFile.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
            this.infoLaunchWithFile.Image = global::OpenPackageCreator.Properties.Resources.info;
            this.infoLaunchWithFile.Location = new System.Drawing.Point(276, 212);
            this.infoLaunchWithFile.Name = "infoLaunchWithFile";
            this.infoLaunchWithFile.Size = new System.Drawing.Size(16, 16);
            this.infoLaunchWithFile.TabIndex = 29;
            this.infoLaunchWithFile.TabStop = false;
            //
            // infoTerminal
            //
            this.infoTerminal.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
            this.infoTerminal.Image = global::OpenPackageCreator.Properties.Resources.info;
            this.infoTerminal.Location = new System.Drawing.Point(276, 264);
            this.infoTerminal.Name = "infoTerminal";
            this.infoTerminal.Size = new System.Drawing.Size(16, 16);
            this.infoTerminal.TabIndex = 28;
            this.infoTerminal.TabStop = false;
            //
            // infoJoystickMode
            //
            this.infoJoystickMode.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
            this.infoJoystickMode.Image = global::OpenPackageCreator.Properties.Resources.info;
            this.infoJoystickMode.Location = new System.Drawing.Point(276, 312);
            this.infoJoystickMode.Name = "infoJoystickMode";
            this.infoJoystickMode.Size = new System.Drawing.Size(16, 16);
            this.infoJoystickMode.TabIndex = 27;
            this.infoJoystickMode.TabStop = false;
            //
            // infoManual
            //
            this.infoManual.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
            this.infoManual.Image = global::OpenPackageCreator.Properties.Resources.info;
            this.infoManual.Location = new System.Drawing.Point(276, 287);
            this.infoManual.Name = "infoManual";
            this.infoManual.Size = new System.Drawing.Size(16, 16);
            this.infoManual.TabIndex = 27;
            this.infoManual.TabStop = false;
            //
            // buttonManual
            //
            this.buttonManual.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
            this.buttonManual.Location = new System.Drawing.Point(245, 283);
            this.buttonManual.Name = "buttonManual";
            this.buttonManual.Size = new System.Drawing.Size(25, 23);
            this.buttonManual.TabIndex = 26;
            this.buttonManual.Text = "...";
            this.buttonManual.UseVisualStyleBackColor = true;
            this.buttonManual.Click += new System.EventHandler(this.buttonForPath_Click);
            //
            // textBoxManual
            //
            this.textBoxManual.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
            | System.Windows.Forms.AnchorStyles.Right)));
            this.textBoxManual.Location = new System.Drawing.Point(106, 285);
            this.textBoxManual.Name = "textBoxManual";
            this.textBoxManual.Size = new System.Drawing.Size(141, 20);
            this.textBoxManual.TabIndex = 25;
            //
            // checkBoxTerminal
            //
            this.checkBoxTerminal.AutoSize = true;
            this.checkBoxTerminal.Location = new System.Drawing.Point(9, 265);
            this.checkBoxTerminal.Name = "checkBoxTerminal";
            this.checkBoxTerminal.Size = new System.Drawing.Size(66, 17);
            this.checkBoxTerminal.TabIndex = 24;
            this.checkBoxTerminal.Text = "Terminal";
            this.checkBoxTerminal.UseVisualStyleBackColor = true;
            //
            // labelManual
            //
            this.labelManual.AutoSize = true;
            this.labelManual.Location = new System.Drawing.Point(6, 288);
            this.labelManual.Name = "labelManual";
            this.labelManual.Size = new System.Drawing.Size(42, 13);
            this.labelManual.TabIndex = 23;
            this.labelManual.Text = "Manual";
            //
            // infoMimeTypes
            //
            this.infoMimeTypes.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
            this.infoMimeTypes.Image = global::OpenPackageCreator.Properties.Resources.info;
            this.infoMimeTypes.Location = new System.Drawing.Point(276, 238);
            this.infoMimeTypes.Name = "infoMimeTypes";
            this.infoMimeTypes.Size = new System.Drawing.Size(16, 16);
            this.infoMimeTypes.TabIndex = 22;
            this.infoMimeTypes.TabStop = false;
            //
            // infoIcon
            //
            this.infoIcon.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
            this.infoIcon.Image = global::OpenPackageCreator.Properties.Resources.info;
            this.infoIcon.Location = new System.Drawing.Point(276, 185);
            this.infoIcon.Name = "infoIcon";
            this.infoIcon.Size = new System.Drawing.Size(16, 16);
            this.infoIcon.TabIndex = 21;
            this.infoIcon.TabStop = false;
            //
            // infoExeA320
            //
            this.infoExeA320.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
            this.infoExeA320.Image = global::OpenPackageCreator.Properties.Resources.info;
            this.infoExeA320.Location = new System.Drawing.Point(276, 158);
            this.infoExeA320.Name = "infoExeA320";
            this.infoExeA320.Size = new System.Drawing.Size(16, 16);
            this.infoExeA320.TabIndex = 20;
            this.infoExeA320.TabStop = false;
            //
            // infoExeGcw
            //
            this.infoExeGcw.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
            this.infoExeGcw.Image = global::OpenPackageCreator.Properties.Resources.info;
            this.infoExeGcw.Location = new System.Drawing.Point(276, 133);
            this.infoExeGcw.Name = "infoExeGcw";
            this.infoExeGcw.Size = new System.Drawing.Size(16, 16);
            this.infoExeGcw.TabIndex = 19;
            this.infoExeGcw.TabStop = false;
            //
            // infoCategories
            //
            this.infoCategories.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
            this.infoCategories.Image = global::OpenPackageCreator.Properties.Resources.info;
            this.infoCategories.Location = new System.Drawing.Point(276, 107);
            this.infoCategories.Name = "infoCategories";
            this.infoCategories.Size = new System.Drawing.Size(16, 16);
            this.infoCategories.TabIndex = 18;
            this.infoCategories.TabStop = false;
            //
            // infoComment
            //
            this.infoComment.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
            this.infoComment.Image = global::OpenPackageCreator.Properties.Resources.info;
            this.infoComment.Location = new System.Drawing.Point(276, 81);
            this.infoComment.Name = "infoComment";
            this.infoComment.Size = new System.Drawing.Size(16, 16);
            this.infoComment.TabIndex = 17;
            this.infoComment.TabStop = false;
            //
            // infoName
            //
            this.infoName.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
            this.infoName.Image = global::OpenPackageCreator.Properties.Resources.info;
            this.infoName.Location = new System.Drawing.Point(276, 55);
            this.infoName.Name = "infoName";
            this.infoName.Size = new System.Drawing.Size(16, 16);
            this.infoName.TabIndex = 16;
            this.infoName.TabStop = false;
            //
            // checkBoxLaunchWithFile
            //
            this.checkBoxLaunchWithFile.AutoSize = true;
            this.checkBoxLaunchWithFile.Location = new System.Drawing.Point(9, 213);
            this.checkBoxLaunchWithFile.Name = "checkBoxLaunchWithFile";
            this.checkBoxLaunchWithFile.Size = new System.Drawing.Size(172, 17);
            this.checkBoxLaunchWithFile.TabIndex = 13;
            this.checkBoxLaunchWithFile.Text = "Launch Executable With A File";
            this.checkBoxLaunchWithFile.UseVisualStyleBackColor = true;
            this.checkBoxLaunchWithFile.CheckedChanged += new System.EventHandler(this.checkBoxLaunchWithFile_CheckedChanged);
            //
            // textBoxCurPath
            //
            this.textBoxCurPath.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
            | System.Windows.Forms.AnchorStyles.Right)));
            this.textBoxCurPath.Location = new System.Drawing.Point(106, 26);
            this.textBoxCurPath.Name = "textBoxCurPath";
            this.textBoxCurPath.ReadOnly = true;
            this.textBoxCurPath.Size = new System.Drawing.Size(164, 20);
            this.textBoxCurPath.TabIndex = 2;
            this.textBoxCurPath.Text = "No Path Loaded";
            //
            // buttonMimeTypes
            //
            this.buttonMimeTypes.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
            this.buttonMimeTypes.Location = new System.Drawing.Point(245, 234);
            this.buttonMimeTypes.Name = "buttonMimeTypes";
            this.buttonMimeTypes.Size = new System.Drawing.Size(25, 23);
            this.buttonMimeTypes.TabIndex = 15;
            this.buttonMimeTypes.Text = "...";
            this.buttonMimeTypes.UseVisualStyleBackColor = true;
            this.buttonMimeTypes.Click += new System.EventHandler(this.buttonMimeTypes_Click);
            //
            // buttonIcon
            //
            this.buttonIcon.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
            this.buttonIcon.Location = new System.Drawing.Point(245, 181);
            this.buttonIcon.Name = "buttonIcon";
            this.buttonIcon.Size = new System.Drawing.Size(25, 23);
            this.buttonIcon.TabIndex = 12;
            this.buttonIcon.Text = "...";
            this.buttonIcon.UseVisualStyleBackColor = true;
            this.buttonIcon.Click += new System.EventHandler(this.buttonForPath_Click);
            //
            // buttonCategories
            //
            this.buttonCategories.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
            this.buttonCategories.Location = new System.Drawing.Point(245, 103);
            this.buttonCategories.Name = "buttonCategories";
            this.buttonCategories.Size = new System.Drawing.Size(25, 23);
            this.buttonCategories.TabIndex = 6;
            this.buttonCategories.Text = "...";
            this.buttonCategories.UseVisualStyleBackColor = true;
            this.buttonCategories.Click += new System.EventHandler(this.buttonCategories_Click);
            //
            // buttonExeA320
            //
            this.buttonExeA320.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
            this.buttonExeA320.Location = new System.Drawing.Point(245, 154);
            this.buttonExeA320.Name = "buttonExeA320";
            this.buttonExeA320.Size = new System.Drawing.Size(25, 23);
            this.buttonExeA320.TabIndex = 10;
            this.buttonExeA320.Text = "...";
            this.buttonExeA320.UseVisualStyleBackColor = true;
            this.buttonExeA320.Click += new System.EventHandler(this.buttonForPath_Click);
            //
            // buttonExe
            //
            this.buttonExe.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
            this.buttonExe.Location = new System.Drawing.Point(245, 129);
            this.buttonExe.Name = "buttonExe";
            this.buttonExe.Size = new System.Drawing.Size(25, 23);
            this.buttonExe.TabIndex = 8;
            this.buttonExe.Text = "...";
            this.buttonExe.UseVisualStyleBackColor = true;
            this.buttonExe.Click += new System.EventHandler(this.buttonForPath_Click);
            //
            // textBoxMimeTypes
            //
            this.textBoxMimeTypes.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
            | System.Windows.Forms.AnchorStyles.Right)));
            this.textBoxMimeTypes.Location = new System.Drawing.Point(106, 236);
            this.textBoxMimeTypes.Name = "textBoxMimeTypes";
            this.textBoxMimeTypes.Size = new System.Drawing.Size(141, 20);
            this.textBoxMimeTypes.TabIndex = 14;
            //
            // textBoxIcon
            //
            this.textBoxIcon.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
            | System.Windows.Forms.AnchorStyles.Right)));
            this.textBoxIcon.Location = new System.Drawing.Point(106, 183);
            this.textBoxIcon.Name = "textBoxIcon";
            this.textBoxIcon.Size = new System.Drawing.Size(141, 20);
            this.textBoxIcon.TabIndex = 11;
            //
            // textBoxExeA320
            //
            this.textBoxExeA320.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
            | System.Windows.Forms.AnchorStyles.Right)));
            this.textBoxExeA320.Location = new System.Drawing.Point(106, 155);
            this.textBoxExeA320.Name = "textBoxExeA320";
            this.textBoxExeA320.Size = new System.Drawing.Size(141, 20);
            this.textBoxExeA320.TabIndex = 9;
            //
            // textBoxExe
            //
            this.textBoxExe.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
            | System.Windows.Forms.AnchorStyles.Right)));
            this.textBoxExe.Location = new System.Drawing.Point(106, 131);
            this.textBoxExe.Name = "textBoxExe";
            this.textBoxExe.Size = new System.Drawing.Size(141, 20);
            this.textBoxExe.TabIndex = 7;
            //
            // textBoxCategories
            //
            this.textBoxCategories.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
            | System.Windows.Forms.AnchorStyles.Right)));
            this.textBoxCategories.Location = new System.Drawing.Point(106, 105);
            this.textBoxCategories.Name = "textBoxCategories";
            this.textBoxCategories.Size = new System.Drawing.Size(141, 20);
            this.textBoxCategories.TabIndex = 5;
            //
            // textBoxComment
            //
            this.textBoxComment.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
            | System.Windows.Forms.AnchorStyles.Right)));
            this.textBoxComment.Location = new System.Drawing.Point(106, 79);
            this.textBoxComment.Name = "textBoxComment";
            this.textBoxComment.Size = new System.Drawing.Size(164, 20);
            this.textBoxComment.TabIndex = 4;
            //
            // textBoxName
            //
            this.textBoxName.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
            | System.Windows.Forms.AnchorStyles.Right)));
            this.textBoxName.Location = new System.Drawing.Point(106, 53);
            this.textBoxName.Name = "textBoxName";
            this.textBoxName.Size = new System.Drawing.Size(164, 20);
            this.textBoxName.TabIndex = 3;
            //
            // labelMimeTypes
            //
            this.labelMimeTypes.AutoSize = true;
            this.labelMimeTypes.Location = new System.Drawing.Point(6, 239);
            this.labelMimeTypes.Name = "labelMimeTypes";
            this.labelMimeTypes.Size = new System.Drawing.Size(61, 13);
            this.labelMimeTypes.TabIndex = 1;
            this.labelMimeTypes.Text = "MimeTypes";
            //
            // labelIcon
            //
            this.labelIcon.AutoSize = true;
            this.labelIcon.Location = new System.Drawing.Point(6, 186);
            this.labelIcon.Name = "labelIcon";
            this.labelIcon.Size = new System.Drawing.Size(28, 13);
            this.labelIcon.TabIndex = 1;
            this.labelIcon.Text = "Icon";
            //
            // labelExeA320
            //
            this.labelExeA320.AutoSize = true;
            this.labelExeA320.Location = new System.Drawing.Point(6, 158);
            this.labelExeA320.Name = "labelExeA320";
            this.labelExeA320.Size = new System.Drawing.Size(94, 13);
            this.labelExeA320.TabIndex = 1;
            this.labelExeA320.Text = "Executable (A320)";
            //
            // labelExe
            //
            this.labelExe.AutoSize = true;
            this.labelExe.Location = new System.Drawing.Point(6, 134);
            this.labelExe.Name = "labelExe";
            this.labelExe.Size = new System.Drawing.Size(95, 13);
            this.labelExe.TabIndex = 1;
            this.labelExe.Text = "Executable (GCW)";
            //
            // labelCategories
            //
            this.labelCategories.AutoSize = true;
            this.labelCategories.Location = new System.Drawing.Point(6, 108);
            this.labelCategories.Name = "labelCategories";
            this.labelCategories.Size = new System.Drawing.Size(57, 13);
            this.labelCategories.TabIndex = 1;
            this.labelCategories.Text = "Categories";
            //
            // labelComment
            //
            this.labelComment.AutoSize = true;
            this.labelComment.Location = new System.Drawing.Point(6, 82);
            this.labelComment.Name = "labelComment";
            this.labelComment.Size = new System.Drawing.Size(51, 13);
            this.labelComment.TabIndex = 1;
            this.labelComment.Text = "Comment";
            //
            // labelPath
            //
            this.labelPath.AutoSize = true;
            this.labelPath.Location = new System.Drawing.Point(6, 29);
            this.labelPath.Name = "labelPath";
            this.labelPath.Size = new System.Drawing.Size(29, 13);
            this.labelPath.TabIndex = 0;
            this.labelPath.Text = "Path";
            //
            // labelName
            //
            this.labelName.AutoSize = true;
            this.labelName.Location = new System.Drawing.Point(6, 56);
            this.labelName.Name = "labelName";
            this.labelName.Size = new System.Drawing.Size(35, 13);
            this.labelName.TabIndex = 0;
            this.labelName.Text = "Name";
            //
            // groupBox1
            //
            this.groupBox1.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
            | System.Windows.Forms.AnchorStyles.Right)));
            this.groupBox1.Controls.Add(this.labelDragndrop);
            this.groupBox1.Controls.Add(this.buttonOpen);
            this.groupBox1.Controls.Add(this.label2);
            this.groupBox1.Location = new System.Drawing.Point(12, 36);
            this.groupBox1.Name = "groupBox1";
            this.groupBox1.Size = new System.Drawing.Size(300, 83);
            this.groupBox1.TabIndex = 1;
            this.groupBox1.TabStop = false;
            this.groupBox1.Text = "Select Directory";
            //
            // labelDragndrop
            //
            this.labelDragndrop.AutoSize = true;
            this.labelDragndrop.Location = new System.Drawing.Point(91, 51);
            this.labelDragndrop.Name = "labelDragndrop";
            this.labelDragndrop.Size = new System.Drawing.Size(136, 13);
            this.labelDragndrop.TabIndex = 2;
            this.labelDragndrop.Text = "or drag\'n\' drop a folder here";
            //
            // buttonOpen
            //
            this.buttonOpen.Location = new System.Drawing.Point(6, 46);
            this.buttonOpen.Name = "buttonOpen";
            this.buttonOpen.Size = new System.Drawing.Size(75, 23);
            this.buttonOpen.TabIndex = 1;
            this.buttonOpen.Text = "Open";
            this.buttonOpen.UseVisualStyleBackColor = true;
            this.buttonOpen.Click += new System.EventHandler(this.buttonOpen_Click);
            //
            // label2
            //
            this.label2.AutoSize = true;
            this.label2.Location = new System.Drawing.Point(3, 21);
            this.label2.Name = "label2";
            this.label2.Size = new System.Drawing.Size(220, 13);
            this.label2.TabIndex = 0;
            this.label2.Text = "Select the directory where the app is located.";
            //
            // buttonPack
            //
            this.buttonPack.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)));
            this.buttonPack.Location = new System.Drawing.Point(77, 528);
            this.buttonPack.Name = "buttonPack";
            this.buttonPack.Size = new System.Drawing.Size(75, 23);
            this.buttonPack.TabIndex = 16;
            this.buttonPack.Text = "Pack";
            this.buttonPack.UseVisualStyleBackColor = true;
            this.buttonPack.Click += new System.EventHandler(this.buttonPack_Click);
            //
            // buttonReset
            //
            this.buttonReset.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)));
            this.buttonReset.Location = new System.Drawing.Point(158, 528);
            this.buttonReset.Name = "buttonReset";
            this.buttonReset.Size = new System.Drawing.Size(75, 23);
            this.buttonReset.TabIndex = 17;
            this.buttonReset.Text = "Reset";
            this.buttonReset.UseVisualStyleBackColor = true;
            this.buttonReset.Click += new System.EventHandler(this.buttonReset_Click);
            //
            // saveFileDialogOpk
            //
            this.saveFileDialogOpk.DefaultExt = "opk";
            this.saveFileDialogOpk.Filter = "OD Package Files|*.opk";
            //
            // openFileDialog
            //
            this.openFileDialog.Filter = "All files|*.*";
            //
            // menuStrip1
            //
            this.menuStrip1.Items.AddRange(new System.Windows.Forms.ToolStripItem[] {
            this.fileToolStripMenuItem,
            this.helpToolStripMenuItem});
            this.menuStrip1.Location = new System.Drawing.Point(0, 0);
            this.menuStrip1.Name = "menuStrip1";
            this.menuStrip1.Size = new System.Drawing.Size(324, 24);
            this.menuStrip1.TabIndex = 18;
            this.menuStrip1.Text = "menuStrip1";
            //
            // fileToolStripMenuItem
            //
            this.fileToolStripMenuItem.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] {
            this.openToolStripMenuItem,
            this.exitToolStripMenuItem});
            this.fileToolStripMenuItem.Name = "fileToolStripMenuItem";
            this.fileToolStripMenuItem.Size = new System.Drawing.Size(37, 20);
            this.fileToolStripMenuItem.Text = "File";
            //
            // openToolStripMenuItem
            //
            this.openToolStripMenuItem.Name = "openToolStripMenuItem";
            this.openToolStripMenuItem.Size = new System.Drawing.Size(103, 22);
            this.openToolStripMenuItem.Text = "Open";
            this.openToolStripMenuItem.Click += new System.EventHandler(this.openToolStripMenuItem_Click);
            //
            // exitToolStripMenuItem
            //
            this.exitToolStripMenuItem.Name = "exitToolStripMenuItem";
            this.exitToolStripMenuItem.Size = new System.Drawing.Size(103, 22);
            this.exitToolStripMenuItem.Text = "Exit";
            this.exitToolStripMenuItem.Click += new System.EventHandler(this.exitToolStripMenuItem_Click);
            //
            // helpToolStripMenuItem
            //
            this.helpToolStripMenuItem.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] {
            this.helpToolStripMenuItem1,
            this.webSiteToolStripMenuItem,
            this.aboutToolStripMenuItem});
            this.helpToolStripMenuItem.Name = "helpToolStripMenuItem";
            this.helpToolStripMenuItem.Size = new System.Drawing.Size(44, 20);
            this.helpToolStripMenuItem.Text = "Help";
            //
            // helpToolStripMenuItem1
            //
            this.helpToolStripMenuItem1.Name = "helpToolStripMenuItem1";
            this.helpToolStripMenuItem1.Size = new System.Drawing.Size(120, 22);
            this.helpToolStripMenuItem1.Text = "Help";
            this.helpToolStripMenuItem1.Click += new System.EventHandler(this.helpToolStripMenuItem1_Click);
            //
            // webSiteToolStripMenuItem
            //
            this.webSiteToolStripMenuItem.Name = "webSiteToolStripMenuItem";
            this.webSiteToolStripMenuItem.Size = new System.Drawing.Size(120, 22);
            this.webSiteToolStripMenuItem.Text = "Web Site";
            this.webSiteToolStripMenuItem.Click += new System.EventHandler(this.webSiteToolStripMenuItem_Click);
            //
            // aboutToolStripMenuItem
            //
            this.aboutToolStripMenuItem.Name = "aboutToolStripMenuItem";
            this.aboutToolStripMenuItem.Size = new System.Drawing.Size(120, 22);
            this.aboutToolStripMenuItem.Text = "About";
            this.aboutToolStripMenuItem.Click += new System.EventHandler(this.aboutToolStripMenuItem_Click);
            //
            // checkBoxGSensor
            //
            this.checkBoxGSensor.AutoSize = true;
            this.checkBoxGSensor.Location = new System.Drawing.Point(9, 335);
            this.checkBoxGSensor.Name = "checkBoxGSensor";
            this.checkBoxGSensor.Size = new System.Drawing.Size(89, 17);
            this.checkBoxGSensor.TabIndex = 31;
            this.checkBoxGSensor.Text = "Use GSensor";
            this.checkBoxGSensor.UseVisualStyleBackColor = true;
            //
            // checkBoxHardwareScaling
            //
            this.checkBoxHardwareScaling.AutoSize = true;
            this.checkBoxHardwareScaling.Location = new System.Drawing.Point(9, 358);
            this.checkBoxHardwareScaling.Name = "checkBoxHardwareScaling";
            this.checkBoxHardwareScaling.Size = new System.Drawing.Size(146, 17);
            this.checkBoxHardwareScaling.TabIndex = 32;
            this.checkBoxHardwareScaling.Text = "Enable Hardware Scaling";
            this.checkBoxHardwareScaling.UseVisualStyleBackColor = true;
            //
            // infoGSensor
            //
            this.infoGSensor.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
            this.infoGSensor.Image = global::OpenPackageCreator.Properties.Resources.info;
            this.infoGSensor.Location = new System.Drawing.Point(276, 335);
            this.infoGSensor.Name = "infoGSensor";
            this.infoGSensor.Size = new System.Drawing.Size(16, 16);
            this.infoGSensor.TabIndex = 33;
            this.infoGSensor.TabStop = false;
            //
            // infoHardwareScaling
            //
            this.infoHardwareScaling.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
            this.infoHardwareScaling.Image = global::OpenPackageCreator.Properties.Resources.info;
            this.infoHardwareScaling.Location = new System.Drawing.Point(276, 358);
            this.infoHardwareScaling.Name = "infoHardwareScaling";
            this.infoHardwareScaling.Size = new System.Drawing.Size(16, 16);
            this.infoHardwareScaling.TabIndex = 34;
            this.infoHardwareScaling.TabStop = false;
            //
            // Form1
            //
            this.AllowDrop = true;
            this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
            this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
            this.ClientSize = new System.Drawing.Size(324, 567);
            this.Controls.Add(this.buttonReset);
            this.Controls.Add(this.buttonPack);
            this.Controls.Add(this.groupBoxConfig);
            this.Controls.Add(this.groupBox1);
            this.Controls.Add(this.menuStrip1);
            this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon")));
            this.MainMenuStrip = this.menuStrip1;
            this.Name = "Form1";
            this.Text = "Open Package Creator";
            this.DragDrop += new System.Windows.Forms.DragEventHandler(this.Form1_DragDrop);
            this.DragEnter += new System.Windows.Forms.DragEventHandler(this.Form1_DragEnter);
            this.groupBoxConfig.ResumeLayout(false);
            this.groupBoxConfig.PerformLayout();
            ((System.ComponentModel.ISupportInitialize)(this.infoLaunchWithFile)).EndInit();
            ((System.ComponentModel.ISupportInitialize)(this.infoTerminal)).EndInit();
            ((System.ComponentModel.ISupportInitialize)(this.infoJoystickMode)).EndInit();
            ((System.ComponentModel.ISupportInitialize)(this.infoManual)).EndInit();
            ((System.ComponentModel.ISupportInitialize)(this.infoMimeTypes)).EndInit();
            ((System.ComponentModel.ISupportInitialize)(this.infoIcon)).EndInit();
            ((System.ComponentModel.ISupportInitialize)(this.infoExeA320)).EndInit();
            ((System.ComponentModel.ISupportInitialize)(this.infoExeGcw)).EndInit();
            ((System.ComponentModel.ISupportInitialize)(this.infoCategories)).EndInit();
            ((System.ComponentModel.ISupportInitialize)(this.infoComment)).EndInit();
            ((System.ComponentModel.ISupportInitialize)(this.infoName)).EndInit();
            this.groupBox1.ResumeLayout(false);
            this.groupBox1.PerformLayout();
            this.menuStrip1.ResumeLayout(false);
            this.menuStrip1.PerformLayout();
            ((System.ComponentModel.ISupportInitialize)(this.infoGSensor)).EndInit();
            ((System.ComponentModel.ISupportInitialize)(this.infoHardwareScaling)).EndInit();
            this.ResumeLayout(false);
            this.PerformLayout();

        }

        #endregion

        private System.Windows.Forms.GroupBox groupBoxConfig;
        private System.Windows.Forms.Button buttonIcon;
        private System.Windows.Forms.Button buttonExe;
        private System.Windows.Forms.TextBox textBoxIcon;
        private System.Windows.Forms.TextBox textBoxExe;
        private System.Windows.Forms.TextBox textBoxComment;
        private System.Windows.Forms.TextBox textBoxName;
        private System.Windows.Forms.Label labelIcon;
        private System.Windows.Forms.Label labelExe;
        private System.Windows.Forms.Label labelComment;
        private System.Windows.Forms.Label labelName;
        private System.Windows.Forms.GroupBox groupBox1;
        private System.Windows.Forms.Label labelDragndrop;
        private System.Windows.Forms.Button buttonOpen;
        private System.Windows.Forms.Label label2;
        private System.Windows.Forms.FolderBrowserDialog folderBrowserDialog;
        private System.Windows.Forms.Label labelPath;
        private System.Windows.Forms.TextBox textBoxCurPath;
        private System.Windows.Forms.Button buttonPack;
        private System.Windows.Forms.Button buttonReset;
        private System.Windows.Forms.SaveFileDialog saveFileDialogOpk;
        private System.Windows.Forms.CheckBox checkBoxLaunchWithFile;
        private System.Windows.Forms.TextBox textBoxCategories;
        private System.Windows.Forms.Label labelCategories;
        private System.Windows.Forms.Button buttonCategories;
        private System.Windows.Forms.Button buttonMimeTypes;
        private System.Windows.Forms.TextBox textBoxMimeTypes;
        private System.Windows.Forms.Label labelMimeTypes;
        private System.Windows.Forms.OpenFileDialog openFileDialog;
        private System.Windows.Forms.Button buttonExeA320;
        private System.Windows.Forms.TextBox textBoxExeA320;
        private System.Windows.Forms.Label labelExeA320;
        private System.Windows.Forms.MenuStrip menuStrip1;
        private System.Windows.Forms.ToolStripMenuItem fileToolStripMenuItem;
        private System.Windows.Forms.ToolStripMenuItem helpToolStripMenuItem;
        private System.Windows.Forms.ToolStripMenuItem openToolStripMenuItem;
        private System.Windows.Forms.ToolStripMenuItem exitToolStripMenuItem;
        private System.Windows.Forms.ToolStripMenuItem helpToolStripMenuItem1;
        private System.Windows.Forms.ToolStripMenuItem aboutToolStripMenuItem;
        private System.Windows.Forms.PictureBox infoName;
        private System.Windows.Forms.PictureBox infoMimeTypes;
        private System.Windows.Forms.PictureBox infoIcon;
        private System.Windows.Forms.PictureBox infoExeA320;
        private System.Windows.Forms.PictureBox infoExeGcw;
        private System.Windows.Forms.PictureBox infoCategories;
        private System.Windows.Forms.PictureBox infoComment;
        private System.Windows.Forms.PictureBox infoLaunchWithFile;
        private System.Windows.Forms.PictureBox infoTerminal;
        private System.Windows.Forms.PictureBox infoManual;
        private System.Windows.Forms.Button buttonManual;
        private System.Windows.Forms.TextBox textBoxManual;
        private System.Windows.Forms.CheckBox checkBoxTerminal;
        private System.Windows.Forms.Label labelManual;
        private System.Windows.Forms.ToolStripMenuItem webSiteToolStripMenuItem;
        private System.Windows.Forms.CheckBox checkBoxJoystickMode;
        private System.Windows.Forms.PictureBox infoJoystickMode;
        private System.Windows.Forms.PictureBox infoHardwareScaling;
        private System.Windows.Forms.PictureBox infoGSensor;
        private System.Windows.Forms.CheckBox checkBoxHardwareScaling;
        private System.Windows.Forms.CheckBox checkBoxGSensor;
    }
}


text:
<?php

/**
 * testPlugin configuration.
 *
 * @package     testPlugin
 * @subpackage  config
 * @author      Your name here
 * @version     SVN: $Id: PluginConfiguration.class.php 12675 2008-11-06 08:07:42Z Kris.Wallsmith $
 */
class sfFeed2PluginConfiguration extends sfPluginConfiguration
{
  /**
   * @see sfPluginConfiguration
   */
  public function initialize()
  {
  }
}


text:
using System;
using System.IO;
using AlchemyAPI;

public class TestApp
{
	static public void Main ()
	{
		// Create an AlchemyAPI object.
		AlchemyAPI.AlchemyAPI alchemyObj = new AlchemyAPI.AlchemyAPI();

		// Load an API key from disk.
		alchemyObj.LoadAPIKey("api_key.txt");

		AlchemyAPI_ImageParams prms = new AlchemyAPI_ImageParams();
		prms.ImageMode = PageImageMode.AlwaysInfer;

		string xml = alchemyObj.URLGetImage("http://www.theguardian.com/world/2013/dec/01/ukraine-largest-street-protests-orange-revolution", prms);

		Console.WriteLine(xml);
	}
}


text:
This is not ready yet.

# Installation

    gem 'moron_text'

# Moron\_Text

## Example: Menu

```ruby
  moron = Moron_Text.new(<<-EOF)
    CORRECT /*
    This is the right answer.
    WRONG /*
    This is the 1st wrong answer.
    WRONG /*
    This is the 2nd wrong answer.
    WRONG /*
    This is the 3rd wrong answer.
    ON /* CORRECT
    You chose wisely.
  EOF

  moron.run do | name, line, text |
    case name
    when 'CORRECT'
    when 'WRONG'
    when 'ON'
    when :text
    else
      text.next
    end
  end
```


text:
package cn.droidlover.xdroid.net.converter;

import java.lang.annotation.Annotation;
import java.lang.reflect.Type;

import okhttp3.ResponseBody;
import retrofit2.Converter;
import retrofit2.Retrofit;

/**
 * Created by shihao on 2017/8/5.
 */

public class StringConverterFactory extends Converter.Factory {

    public static final StringConverterFactory INSTANCE = new StringConverterFactory();

    public static StringConverterFactory create() {
        return INSTANCE;
    }

    // 我们只关实现从ResponseBody 到 String 的转换,所以其它方法可不覆盖
    @Override
    public Converter<ResponseBody, ?> responseBodyConverter(Type type, Annotation[] annotations, Retrofit retrofit) {
        if (type == String.class) {
            return StringConverter.INSTANCE;
        }
        //其它类型我们不处理,返回null就行
        return null;
    }

}


text:
namespace IO {
	void Logger::SetOutput(const std::string& filename) {
		m_filename = filename;
		m_wroteBOM = false;
		AttemptInitialize();
	}

	void Logger::Write(const std::string& message) {
		// TODO: Work better with the << operator. Currently a single message can get split into multiple rows.
		m_dbgCached += message;
		boost::replace_all(m_dbgCached, "\r\n", "\n");
		std::vector<std::string> lines;
		boost::split(lines, m_dbgCached, boost::is_any_of("\n"));
		if (lines.empty() == false) {
			m_dbgCached = lines.back();
			lines.pop_back();
			for (auto l : lines) {
				auto u8str = "Pictus: " + l + "\r\n";
#ifdef _WIN32
				OutputDebugStringW(UTF8ToWString(u8str.c_str()).c_str());
#endif
			}
		}

		AttemptInitialize();
		IO::FileWriter f;
		if (!f.Open(m_filename.c_str(), true)) {
			return;  // Prefer losing logging messages than raising an error.
		}
		f.Write(message.c_str(), 1, message.length());
	}

	void Logger::AttemptInitialize() {
		if (m_filename.empty()) {
			return;
		}

		if (m_wroteBOM) {
			return;
		}

		IO::FileWriter f;
		if (f.Open(m_filename.c_str()) == false) {
			return;
		}

		const unsigned char bof[3] = {0xef, 0xbb, 0xbf};
		f.Write(bof, 1, 3);
		m_wroteBOM = true;
	}

	Logger::~Logger() {
#ifdef _WIN32
		if (!m_dbgCached.empty())
		{
			OutputDebugStringW(UTF8ToWString(("Pictus: " + m_dbgCached).c_str()).c_str());
		}
#endif
	}

	std::string Internal::Cleanup(const std::string& input) {
		std::string output(input);

		size_t pos = 0;
		while((pos = output.find("\n", pos)) != std::string::npos) {
			output.insert(pos, "\r");
			pos += 2;
		}
		return output;
	}
}

IO::Logger Log;


text:
RGE_Glyph = RGE_Item:New()

function RGE_Glyph:IsValid()
	return (self.bag > -1 and
			self.slot > -1 and
			not RGE.IsEmpty(self.link) and
			not RGE.IsEmpty(self.name)) and
			(self.type == ITEMTYPE_GLYPH_ARMOR or
	   		 self.type == ITEMTYPE_GLYPH_JEWELRY or
	   		 self.type == ITEMTYPE_GLYPH_WEAPON)
end

function RGE_Glyph:HandleTooltip() -- Add Tooltip lines for Glyph tooltip
	RGE.AddTTLine("")
	RGE.AddTTLine(RGE.COLORS.BLUE..RGE.LONGNAME:upper(), "ZoFontWinH2")
	ZO_Tooltip_AddDivider(PopupTooltip)
	if (RGE.getSavedSetting("display_name")) then
		local formattedLink = self.formattedLink or self:FormatLink()
		RGE.AddTTLine(formattedLink, "ZoFontWinH3")
	end
	RGE.AddTTLine("")
	local typeStr = self:GetTypeStr()
	if (RGE.getSavedSetting("display_equipped")) then
		self:HandleTooltipFor("equipped "..typeStr, BAG_WORN)
		RGE.AddTTLine("")
	end
	if (RGE.getSavedSetting("display_inventory")) then
		RGE.AddTTLine("")
		self:HandleTooltipFor(typeStr.." in inventory", BAG_BACKPACK)
	end
end

function RGE_Glyph:CanEnchant(enchantable)
	return CanItemTakeEnchantment(enchantable.bag, enchantable.slot, self.bag, self.slot)
end

function RGE_Glyph:GetTypeStr()
	if self.type == ITEMTYPE_GLYPH_ARMOR then
		return "armor"
	elseif self.type == ITEMTYPE_GLYPH_JEWELRY then
		return "jewelry"
	elseif self.type == ITEMTYPE_GLYPH_WEAPON then
		return "weapons"
	end
end

function RGE_Glyph:HandleTooltipFor(typeStr, bag)
	RGE.AddTTLine(typeStr:upper(), "ZoFontWinH4")
	local count = 0
	local bagSlots = GetBagSize(bag)
	for i = 0, bagSlots+1 do
		local enchantee = RGE_Enchantable:New(bag, i)
		if (enchantee:IsValid() and self:CanEnchant(enchantee)) then
			count = count + 1
			enchantee:ToTooltipLines()
		end
	end
	if count == 0 then
		RGE.AddTTLine("No "..typeStr.." are enchantable")
	end
end

function RGE_Glyph:ToTooltipLines(count)
	local line = self.formattedLink or self:FormatLink()
	if (count and count > 1) then
		line = line.." (x"..count..")"
	end
	RGE.AddTTLine(line)
	if (RGE.getSavedSetting("display_description")) then
		RGE.AddTTLine("("..self.enchantDescription:sub(0, -2)..")", "ZoFontGameSmall")
	end
end


text:
package org.apache.log4j.filter;

import org.apache.log4j.Level;
import org.apache.log4j.helpers.OptionConverter;
import org.apache.log4j.spi.Filter;
import org.apache.log4j.spi.LoggingEvent;

/**
   This is a very simple filter based on level matching.

The filter admits two options LevelToMatch and
   AcceptOnMatch. If there is an exact match between the value
   of the LevelToMatch option and the level of the {@link
   org.apache.log4j.spi.LoggingEvent}, then the {@link #decide} method returns {@link
   org.apache.log4j.spi.Filter#ACCEPT} in case the AcceptOnMatch option value is set
   to true, if it is false then {@link
   org.apache.log4j.spi.Filter#DENY} is returned. If there is no match, {@link
   org.apache.log4j.spi.Filter#NEUTRAL} is returned.

   @author Ceki Gülcü

   @since 1.2 */
public class LevelMatchFilter extends Filter {
  /**
     Do we return ACCEPT when a match occurs. Default is
     true.  */
  boolean acceptOnMatch = true;

  /**
   */
  Level levelToMatch;

  public void setLevelToMatch(String level) {
    levelToMatch = OptionConverter.toLevel(level, null);
  }

  public String getLevelToMatch() {
    return (levelToMatch == null) ? null : levelToMatch.toString();
  }

  public void setAcceptOnMatch(boolean acceptOnMatch) {
    this.acceptOnMatch = acceptOnMatch;
  }

  public boolean getAcceptOnMatch() {
    return acceptOnMatch;
  }

  /**
     Return the decision of this filter.

     Returns {@link Filter#NEUTRAL} if the LevelToMatch option
     is not set or if there is not match.  Otherwise, if there is a
     match, then the returned decision is {@link Filter#ACCEPT} if the
     AcceptOnMatch property is set to true. The
     returned decision is {@link Filter#DENY} if the
     AcceptOnMatch property is set to false.

  */
  public int decide(LoggingEvent event) {
    if (this.levelToMatch == null) {
      return Filter.NEUTRAL;
    }

    boolean matchOccured = false;

    if (this.levelToMatch.equals(event.getLevel())) {
      matchOccured = true;
    }

    if (matchOccured) {
      if (this.acceptOnMatch) {
        return Filter.ACCEPT;
      } else {
        return Filter.DENY;
      }
    } else {
      return Filter.NEUTRAL;
    }
  }
}


text:
package com.planet_ink.coffee_mud.WebMacros;

import com.planet_ink.coffee_web.interfaces.*;
import com.planet_ink.coffee_mud.core.interfaces.*;
import com.planet_ink.coffee_mud.core.*;
import com.planet_ink.coffee_mud.core.collections.*;
import com.planet_ink.coffee_mud.Abilities.interfaces.*;
import com.planet_ink.coffee_mud.Areas.interfaces.*;
import com.planet_ink.coffee_mud.Behaviors.interfaces.*;
import com.planet_ink.coffee_mud.CharClasses.interfaces.*;
import com.planet_ink.coffee_mud.Libraries.interfaces.*;
import com.planet_ink.coffee_mud.Common.interfaces.*;
import com.planet_ink.coffee_mud.Exits.interfaces.*;
import com.planet_ink.coffee_mud.Items.interfaces.*;
import com.planet_ink.coffee_mud.Locales.interfaces.*;
import com.planet_ink.coffee_mud.MOBS.interfaces.*;
import com.planet_ink.coffee_mud.Races.interfaces.*;

import java.util.*;

import com.planet_ink.coffee_mud.core.exceptions.HTTPServerException;

public class RebuildReferenceDocs extends StdWebMacro
{
	@Override public String name() { return "RebuildReferenceDocs"; }

	@Override public boolean isAWebPath(){return true;}
	@Override public boolean isAdminMacro() { return true;}

	@Override
	public String runMacro(HTTPRequest httpReq, String parm) throws HTTPServerException
	{
		final MOB M = Authenticate.getAuthenticatedMob(httpReq);
		if(M==null)
			return "[Unauthorized]";
		if(!CMSecurity.isASysOp(M))
			return "[Unallowed]";
		final CMFile sourcesF = new CMFile("/web/admin/work",M,CMFile.FLAG_LOGERRORS);
		if((!sourcesF.canRead())||(!sourcesF.isDirectory())||(sourcesF.list().length==0))
			return "[Unsourced]";
		final CMFile[] sourceFiles = sourcesF.listFiles();
		final long[] processStartTime=new long[]{System.currentTimeMillis()};
		final String[] lastFoundMacro=new String[]{""};
		for (final CMFile sf : sourceFiles)
		{
			if(sf.getName().endsWith(".cmvp"))
			{
				final int sfLen=sf.getName().length();
				final CMFile df=new CMFile("/guides/refs/"+sf.getName().substring(0,sfLen-5)+".html",M);
				if(!df.canWrite())
					return "[Unwrittable: "+df.getName()+"]";
				final byte[] savable = CMLib.webMacroFilter().virtualPageFilter(httpReq, httpReq.getRequestObjects(), processStartTime, lastFoundMacro, new StringBuffer(new String(sf.raw()))).toString().getBytes();
				for(int b=0;b<savable.length-5;b++)
					if((savable[b]=='.') &&(savable[b+1]=='c') &&(savable[b+2]=='m') &&(savable[b+3]=='v') &&(savable[b+4]=='p'))
					{ savable[b+1]='h'; savable[b+2]='t'; savable[b+3]='m'; savable[b+4]='l'; b+=4;}
				df.saveRaw(savable);
			}
		}
		return "[Done!]";
	}
}


text:
package io.proleap.cobol.preprocessor.sub.document;

import io.proleap.cobol.preprocessor.CobolPreprocessor.CobolDialect;
import io.proleap.cobol.preprocessor.CobolPreprocessor.CobolSourceFormatEnum;

public interface CobolDocumentParser {

	String processLines(String code, CobolSourceFormatEnum format, CobolDialect dialect);
}


text:
require ("mcp3021")

gpio0, gpio2 = 3, 4

mcp3021.setup(gpio2,gpio0,i2c.SLOW) -- use GPIO2 as SDA, use GPIO0 as SCL

-- Continously execute the function code every 1000 milli seconds (1 second)
tmr.alarm(0,1000,1,function()

    local digitalValue = mcp3021.read(3) -- read from MCP3021A3,
                                         -- to read from another e.g. MCP3021A5, use 5 instead of 3

    -- convert to voltage value based on VDD = 3.3V
    local voltageValue = digitalValue*3.3/1024

    -- check if there were any errors while reading before printing
    if(digitalValue~=nil) then
        print("Digital Value: " .. digitalValue)
        print("Voltage Value: " .. voltageValue)
    else
        if(digitalValue == mcp3021.ERROR_NAK) then
            print("ERROR: Received NAK from address")
        else -- mcp3021.ERROR_MSB
            print("ERROR: Invalid MSB")
        end
    end
end)


text:
import filesize from 'rollup-plugin-filesize';
import {terser} from 'rollup-plugin-terser';
import commonjs from 'rollup-plugin-commonjs';
import resolve from 'rollup-plugin-node-resolve';

export default {
  input: 'index.js',
  output: [
    {
      file: 'dist/vega-embed.bundled.min.js',
      name: 'VegaElements',
      exports: 'named',
      format: 'umd',
      sourcemap: true,
      globals: {
        vega: 'vega',
        'vega-lib': 'vega',
        'vega-lite': 'vl'
      }
    }
  ],
  plugins: [
    commonjs(),
    resolve({
      module: true,
      browser: true,
      preferBuiltins: false
    }),
    terser({
      warnings: true,
      mangle: {module: true}
    }),
    filesize({
      showBrotliSize: true
    })
  ],
  external: ['vega', 'vega-lib', 'vega-lite'],
  onwarn(warning) {
    if (warning.code !== 'CIRCULAR_DEPENDENCY') {
      console.error(`(!) ${warning.message}`);
    }
  }
};


text:
@interface ViewController () <JAWVCAuthenticatingWebViewControllerDelegate, UIAlertViewDelegate>

@property (nonatomic) JAWVCAuthenticatingWebViewController *authenticatingWebViewController;
@property (nonatomic) UIAlertView *authAlertView;

@end

@implementation ViewController

- (void)viewDidLoad {
    [super viewDidLoad];

    UIButton *startButton = [UIButton buttonWithType:UIButtonTypeRoundedRect];
    startButton.frame = self.view.bounds;
    [startButton setTitle:@"Start"
                 forState:UIControlStateNormal];
    [startButton addTarget:self
                    action:@selector(startButtonTouchUpInside)
          forControlEvents:UIControlEventTouchUpInside];

    [self.view addSubview:startButton];
}

#pragma mark - JAWVCAuthenticatingWebViewControllerDelegate

- (BOOL)jawvc_authenticatingWebViewController:(nonnull JAWVCAuthenticatingWebViewController *)authenticatingWebViewController
        canAuthenticateAgainstProtectionSpace:(nonnull NSURLProtectionSpace *)protectionSpace {
    BOOL canAuthenticate = [protectionSpace.authenticationMethod isEqualToString:NSURLAuthenticationMethodHTTPBasic];
    return canAuthenticate;
}

- (nullable JAWVCDidCancelAuthenticationChallengeHandler)jawvc_authenticatingWebViewController:(nonnull JAWVCAuthenticatingWebViewController *)authenticatingWebViewController
                                                             didReceiveAuthenticationChallenge:(nonnull NSURLAuthenticationChallenge *)challenge {
    self.authAlertView = [[UIAlertView alloc] initWithTitle:@"JAWVCDemo HTTP BASIC Login"
                                                    message:@"Enter 'foo' for the username and 'bar' for the password"
                                                   delegate:self
                                          cancelButtonTitle:@"Cancel"
                                          otherButtonTitles:
                          @"OK",
                          nil];
    self.authAlertView.alertViewStyle = UIAlertViewStyleLoginAndPasswordInput;
    // Bug in UIAlertView:
    // if the keyboard is aleady showing, presenting a LoginAndPasswordInput UIAlertView
    // will crash with an InternalInconsistencyException:
    // 'The layout constraints still need update after sending -updateConstraints to <_UIKeyboardLayoutAlignmentView: 0x7f924428a4a0; frame = (0 0; 0 0); userInteractionEnabled = NO; layer = <CALayer: 0x7f92442ae310>>. _UIKeyboardLayoutAlignmentView or one of its superclasses may have overridden -updateConstraints without calling super. Or, something may have dirtied layout constraints in the middle of updating them.  Both are programming errors.'
    // The workaround is to set the UIAlertView's login UITextField to first responder.
    // http://stackoverflow.com/a/30265898/9636
    [[self.authAlertView textFieldAtIndex:0] becomeFirstResponder];
    [self.authAlertView show];

    return ^(JAWVCAuthenticatingWebViewController *authenticatingWebViewController, NSURLAuthenticationChallenge *challenge) {
        [self.authAlertView dismissWithClickedButtonIndex:self.authAlertView.cancelButtonIndex
                                                 animated:YES];
        self.authAlertView = nil;

        [[[UIAlertView alloc] initWithTitle:@"JAWVCDemo"
                                    message:@"The URL Loading System cancelled authentication"
                                   delegate:nil
                          cancelButtonTitle:@"OK"
                          otherButtonTitles:nil] show];
    };
}

- (BOOL)jawvc_authenticatingWebViewController:(nonnull JAWVCAuthenticatingWebViewController *)authenticatingWebViewController
                   shouldStartLoadWithRequest:(nonnull NSURLRequest *)URLRequest
                               navigationType:(UIWebViewNavigationType)navigationType {
    // this is the default behavior.
    // I'm only overriding this method to call out its existence on the JAWVCAuthenticatingWebViewControllerDelegate.
    // You might return something other than YES if you don't want to follow redirects or something.
    return YES;
}

- (void)jawvc_authenticatingWebViewControllerDidStartLoad:(nonnull JAWVCAuthenticatingWebViewController *)authenticatingWebViewController {
    NSLog(@"started: %@",
          authenticatingWebViewController.URLRequest);
}

- (void)jawvc_authenticatingWebViewControllerDidFinishLoad:(nonnull JAWVCAuthenticatingWebViewController *)authenticatingWebViewController {
    NSLog(@"finished: %@",
          authenticatingWebViewController.URLRequest);
}

- (void)jawvc_authenticatingWebViewController:(nonnull JAWVCAuthenticatingWebViewController *)authenticatingWebViewController
                         didFailLoadWithError:(nonnull NSError *)error {
    NSLog(@"error: %@ %@",
          [error localizedDescription],
          [error userInfo]);
    [[[UIAlertView alloc] initWithTitle:@"JAWVCDemo Error"
                                message:error.localizedDescription
                               delegate:nil
                      cancelButtonTitle:@"OK"
                      otherButtonTitles:nil] show];
}

- (void)jawvc_authenticatingWebViewController:(nonnull JAWVCAuthenticatingWebViewController *)authenticatingWebViewController
                                   logMessage:(nonnull NSString *)message {
    NSLog(@"authenticatingWebViewController logMessage: %@",
          message);
}

#pragma mark - UIAlertViewDelegate

- (void)alertView:(UIAlertView *)alertView clickedButtonAtIndex:(NSInteger)buttonIndex {
    if (buttonIndex == self.authAlertView.cancelButtonIndex) {
        [self cancelChallengeAfterAlertViewDismissal];
    } else if (buttonIndex == self.authAlertView.firstOtherButtonIndex) {
        [self useAuthAlertViewUsernamePasswordForChallenge];
    }
}

- (void)alertViewCancel:(UIAlertView *)alertView {
    [self cancelChallengeAfterAlertViewDismissal];
}

#pragma mark - IBActions

- (void)startButtonTouchUpInside {
    self.authenticatingWebViewController = [JAWVCAuthenticatingWebViewController new];
    self.authenticatingWebViewController.delegate = self;
    self.authenticatingWebViewController.modalPresentationStyle = UIModalPresentationOverCurrentContext;
    self.authenticatingWebViewController.navigationItem.leftBarButtonItem = [[UIBarButtonItem alloc] initWithBarButtonSystemItem:UIBarButtonSystemItemRefresh
                                                                                target:self
                                                                                action:@selector(authenticatingWebViewControllerRefreshBarButtonItemTouchUpInside)];
    self.authenticatingWebViewController.navigationItem.rightBarButtonItem = [[UIBarButtonItem alloc] initWithBarButtonSystemItem:UIBarButtonSystemItemDone
                                                                                target:self
                                                                                action:@selector(authenticatingWebViewControllerDoneBarButtonItemTouchUpInside)];

    [self presentViewController:[[UINavigationController alloc] initWithRootViewController:self.authenticatingWebViewController]
                       animated:YES
                     completion:^{
                         [self.authenticatingWebViewController loadRequest:[NSURLRequest requestWithURL:[NSURL URLWithString:@"http://httpbin.org/basic-auth/foo/bar"]]];
                     }];
}

- (void)authenticatingWebViewControllerRefreshBarButtonItemTouchUpInside {
    [self.authenticatingWebViewController loadRequest:[NSURLRequest requestWithURL:[NSURL URLWithString:@"http://httpbin.org/basic-auth/foo/bar"]]];
}

- (void)authenticatingWebViewControllerDoneBarButtonItemTouchUpInside {
    self.authenticatingWebViewController.delegate = nil;
    self.authenticatingWebViewController = nil;
    [self dismissViewControllerAnimated:YES
                             completion:NULL];
}

#pragma mark - Private API

- (void)cancelChallengeAfterAlertViewDismissal {
    [self.authenticatingWebViewController cancelPendingAuthenticationChallenge];
    self.authAlertView = nil;
}

- (void)useAuthAlertViewUsernamePasswordForChallenge {
    NSString *username = [self.authAlertView textFieldAtIndex:0].text;
    NSString *password = [self.authAlertView textFieldAtIndex:1].text;
    self.authAlertView = nil;
    NSURLCredential *credential = [NSURLCredential credentialWithUser:username
                                                             password:password
                                                          persistence:NSURLCredentialPersistenceNone];
    [self.authenticatingWebViewController resolvePendingAuthenticationChallengeWithCredential:credential];
}

@end


text: Unsorted notes.


text:
author: Mara Mendes
date: 2015-08-14 12:00
image:
  src: /files/blog/2015/07/digiwhist.jpg
  title: Jobs bei OKFDE
layout: post
tags:
- H2020
- Jobs
title: Front-end Developer (w/m) für DIGIWHIST gesucht
type: post
---

###  Front-end Developer (w/m) für DIGIWHIST - ein H2020 EU-Forschungsprojekt "The Digital Whistleblower. Fiscal Transparency, Risk Assessment and Impact of Good Governance Policies Assessed" (DIGIWHIST).

* Part-Time (50%) limited term: 50% FTE, project ends February 2018
* Salary: depending on experience, we use the Berlin public servant salary bands
* Start: Ideally October 2015
* Application deadline: **Deadline extended until 15 September 2015**

The Open Knowledge Foundation Germany is one of the leading NGOs in the field of Open Knowledge, Open Data and Transparency in Germany. We support the Open Data community in Germany,  run innovative projects such as OffenerHaushalt, CodeforGermany and Jugend hackt, and provide expertise to users and providers of open data, in the government, civil society, and media. We are now hiring for one of the H2020 EU projects: DIGIWHIST.

The goal of DIGIWHIST is to make information about purchases of goods and services by government (public procurement) more transparent and efficient. The project aims to make it easy to browse information regarding such transactions, and to analyze it for signs of corruption. This forms part of OKF Germany's focus on the development and deployment of transparency tools. (More information here).

Tasks

* Development of a set of front-end, public facing and data-driven tools for the search, visualization and analysis of public procurement data.
* Translation of end-user requirements into a technical architecture for the project's front-end components.
* Assisting with user requirement collection and usability testing

What we offer

* Room to help shape a dynamic and visible NGO
* A young and motivated team that is looking forward to working with you
* An exciting work environment in Berlin with flexible working hours and a nice office atmosphere
* Being part of the international OKF network
* Possibility for personal development and conference attendance

What we expect

Experience in front-end development, prefererably using Python and JavaScript (including modern frameworks, such as Flask, Django, React, Angular)

Understanding of information design, data visualization and a track record of producing software with great UX.

Some experience working with different database types (eg. PostgreSQL, MongoDB, Neo4J).

Interest in open source software development, ideally with an active GitHub profile.

Work in our Berlin office and with our team

Ability to work independently and in a structured way

Ability to prioritise and work towards deadlines

Good German and English language skills (both written and oral)

Identification with our organisation's goals

Please note that we can only consider applications from either EU citizens or those with a valid German work permit.
To apply, send your application (CV, GitHub or similar profile and cover letter) by **15 September 2015** to digiwhist@okfn.de

Please feel free to get in touch with Mara Mendes (mara.mendes@okfn.de) should you have any further questions.


text:
package org.apache.camel.component.restlet;

import org.apache.camel.builder.RouteBuilder;
import org.apache.camel.model.rest.RestBindingMode;
import org.junit.Test;

/**
 * @version
 */
public class RestRestletComponentConfigurationTest extends RestletTestSupport {

    @Test
    public void testRestletPojoInOut() throws Exception {
        String body = "{\"id\": 123, \"name\": \"Donald Duck\"}";
        String out = template.requestBody("http://localhost:" + portNum + "/users/lives", body, String.class);

        assertNotNull(out);
        assertEquals("{\"iso\":\"EN\",\"country\":\"England\"}", out);

        // verify rest configuration was propagated to restlet component
        RestletComponent component = context.getComponent("restlet", RestletComponent.class);
        assertEquals(false, component.getControllerDaemon());
        assertEquals((Integer) 3, component.getMaxThreads());
    }

    @Override
    protected RouteBuilder createRouteBuilder() throws Exception {
        return new RouteBuilder() {
            @Override
            public void configure() throws Exception {
                // configure to use restlet on localhost with the given port
                // and enable auto binding mode
                restConfiguration()
                        .component("restlet")
                        .host("localhost").port(portNum)
                        .bindingMode(RestBindingMode.auto)
                        .componentProperty("controllerDaemon", "false")
                        .componentProperty("maxThreads", "3");

                // use the rest DSL to define the rest services
                rest("/users/")
                    .post("lives").type(UserPojo.class).outType(CountryPojo.class)
                        .route()
                        .bean(new UserService(), "livesWhere");
            }
        };
    }

}


text: console.log('Cassandra started');


text:
<script type="text/javascript">
var gp_config = <?php echo json_encode(array(
    'home_url' => $view->router->generate('homepage')
)); ?>;
$('document').ready(function(){
    $(".button, input:submit").button();
});

</script>