text:
Additional functions beyond the [existing ReactJS test utilities](http://facebook.github.io/react/docs/test-utils.html) to make testing quicker and easier. Adds the following functionality:

+ Find a component based on [CSS selector][CssSelectorSupport] instead of just tag name or class. Supports classes, IDs, tag names, pseudo selectors, and attribute selectors.
+ Fully mock child components yet still provide the ability to verify props passed to children
+ Easily render components that rely on [react-router](https://github.com/rackt/react-router)
+ ...plus others

## Setup

```bash
npm install --save-dev expanded-react-test-utils
```

From within your unit test files:
```javascript
var ExpandedReactTestUtils = require('expanded-react-test-utils');
```

## Testing Methods

### mockReactComponent
```javascript
//Mock single component
JasmineSpy mockReactComponent(ReactComponent component, object additionalProps)
//Mock multiple components
JasmineSpy mockReactComponent(object mocks)
```

*Requires global [Jasmine](http://jasmine.github.io/) include for spies*

Fully mocks a component given it's name and replaces it with an empty component of the same name at render time. Also allows you to append any additional props to the component which will overwrite values passed to child. This method is ideally called once before all component unit tests are run.

Once mocked, use the `findRenderedDOMComponentWithSelector` to find instances of the mocked component in the rendered tree. You can then use the results of that function to assert that the props you pass to child components are correct.

##### Example
```javascript
beforeAll(function(){
    //Mock out a the 'Item' React component, and add the provided className to all found instances
    ExpandedReactTestUtils.mockReactComponent('Item');
    //Can also be written as:
    ExpandedReactTestUtils.mockReactComponent({
        Item: {className: 'mocked-item-class'}
    });
});

beforeEach(function(){
    itemList = ReactTestUtils.renderIntoDocument(<ItemList />);
    //All instances of <Item/> within the <ItemList /> component
    //will now be replaced by empty <div> elements, but will continue
    //to keep the same props
});

describe('item tests', function(){
    it('renders correct number of Item components', function(){
        var items = ExpandedReactTestUtils.findRenderedDOMComponentWithSelector(
            itemList,
            'ItemList'
        );
        expect(items.length).toEqual(3);
    });
});

```
***

### getRouterComponent
```javascript
ReactComponent getRouterComponent(Router, ReactComponent component, object props, string path)
```

Similar to the existing `renderIntoDocument` method, but wraps component within a mock `Router` so all router mixins and functionality work properly. Must provide instance of `react-router` Router component to mock.

##### Example
```javascript
beforeEach(function(){
    itemList = ExpandedReactTestUtils.getRouterComponent(ItemList, {count: 3}, 'results');
    //Render the <ItemList/> component into the DOM, but wrap it in a
    //mocked router. The path provided will be the route to be matched.
});
```

***

### renderPartial
```javascript
ReactComponent renderPartial(ReactElement partial)
```

With the changes introduced in React 0.14, you can no longer pass in a ReactElement into TestUtils.renderIntoDocument. Instead a React Component must be passed. This method wraps your ReactElement in a mock component and returns the rendered result.

##### Example
```javascript
it('renders proper markup', function(){
    var result = ExpandedReactTestUtils.renderPartial(<div className="test"></div>);
    expect(ExpandedReactTestUtils.findComponentCountWithClassname(result, 'test')).toBeTrue();
});
```

***

### scryRenderedDOMComponentsWithSelector
``` javascript
array scryRenderedDOMComponentsWithSelector(ReactComponent tree, string selector)
```

Find all instances of components in the provided tree that match the provided CSS selector. Read the [CSS Selector Syntax Support][CssSelectorSupport] page  for details on what types of selectors are supported.

##### Example
```javascript
it('contains proper icon classes', function(){
    //Get the list of all elements matching the selector
    var icons = ExpandedReactTestUtils.scryRenderedDOMComponentsWithSelector(
        itemList,
        'span.user-item'
    );

    expect(icons.length).toEqual(3);
    expect(icons[0].props.title).toEqual('Failed request');
});
```

***

### findRenderedDOMComponentWithSelector
```javascript
ReactComponent findRenderedDOMComponentWithSelector(ReactComponent tree, string selector)
```

Find a single component in the provided tree that matches the provided CSS selector. Will throw an error if zero or more than 1 component is found. Read the [CSS Selector Syntax Support][CssSelectorSupport] page for details on what types of selectors are supported.

##### Example
```javascript
it('contains proper icon classes', function(){
    //Find the correct submit button via selector and simulate a click event
    var submitButton = ExpandedReactTestUtils.findRenderedDOMComponentWithSelector(
        itemList,
        '.submit-button'
    );

    ReactTestUtils.Simulate.click(submitButton);
});
```

***

### findComponentCountWithClassname
```javascript
bool findComponentCountWithClassname(ReactComponent tree, string className, int count=1)
```

Used to ensure that the correct number of elements with the provided class name are present in the provided tree. Provides a quick way to ensure that the right number of elements are present. The count defaults to 1 if not provided.

##### Example
```javascript
it('contains proper icon classes', function(){
    //Ensure that this tree contains 3 elements with fa-user class
    expect(ExpandedReactTestUtils.findComponentCountWithClassname(
        itemList,
        'fa-user',
        3
    )).toEqual(true);
});
```

***

### findComponentCountWithTag
```javascript
bool findComponentCountWithTag(ReactComponent tree, string tagName, int count=1)
```

Used to ensure that the correct number of elements with the provided tag name are present in the provided tree. Provides a quick way to ensure that the right number of elements with a tag are present. The count defaults to 1 if not provided.

#### Example
```javascript
it('contains correct number of span tags', function(){
    //Assert that there are no failure elements in the tree
    expect(ExpandedReactTestUtils.findComponentCountWithTag(
        itemList,
        'span',
        3
    )).toEqual(true);
});
```

### findComponentCountWithSelector
```javascript
bool findComponentCountWithSelector(ReactComponent tree, string selector, int count=1)
```

Used to ensure that the correct number of elements with the provided CSS selector are present in the provided tree. Provides a quick way to ensure that the right number of elements are present. The count defaults to 1 if not provided. Read the [CSS Selector Syntax Support][CssSelectorSupport] page for details on what types of selectors are supported.

##### Example
```javascript
it('contains proper icon classes', function(){
    //Assert that there are no failure elements in the tree
    expect(ExpandedReactTestUtils.findComponentCountWithSelector(
        itemList,
        'span.failure',
        0
    )).toEqual(true);
});
```

## License

MIT

[CssSelectorSupport]: CssSelectorSupport.md


text:
Ionyweb
=======

A CMS based on Django with a powerfull Javascript UI based on a REST API.

More informations
=================

 * The code : https://github.com/ionyse/ionyweb/
 * The documentation : http://ionyweb.readthedocs.org/
 * IRC Chan : Ask #ionyweb@irc.freenode.net

redpajama_set_name: RedPajamaGithub


text:
package ui.components.template;

import javax.swing.*;

/**
 * {@link DataButton} that represents a base class for build a {@link JButton}
 * with a generic setter and getter.
 *
 * @param <TData> The data type for setter and getter.
 */
public class DataButton<TData> extends JButton {
    private TData data;

    public DataButton(TData data) {
        this.data = data;
    }

    public DataButton(TData data, String text) {
        this(data);
        setText(text);
    }

    public TData getData() {
        return data;
    }

    public void setData(TData data) {
        this.data = data;
    }
}


text:
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
  <component name="AndroidConfiguredLogFilters">
    <filters>
      <filter>
        <option name="logLevel" value="verbose" />
        <option name="logMessagePattern" value="" />
        <option name="logTagPattern" value="" />
        <option name="name" value="app: com.gztoucher.sensortest" />
        <option name="packageNamePattern" value="com.gztoucher.sensortest" />
        <option name="pid" value="" />
      </filter>
      <filter>
        <option name="logLevel" value="verbose" />
        <option name="logMessagePattern" value="" />
        <option name="logTagPattern" value="" />
        <option name="name" value="com.gztoucher.FirstRoad" />
        <option name="packageNamePattern" value="com.gztoucher.FirstRoad" />
        <option name="pid" value="" />
      </filter>
    </filters>
  </component>
  <component name="AndroidLayouts">
    <shared>
      <config />
    </shared>
    <layouts>
      <layout url="file://$PROJECT_DIR$/res/layout/activity_main.xml">
        <config>
          <theme>@android:style/Theme.Light.NoTitleBar</theme>
        </config>
      </layout>
    </layouts>
  </component>
  <component name="AndroidLogFilters">
    <option name="TOOL_WINDOW_CONFIGURED_FILTER" value="app: com.gztoucher.sensortest" />
  </component>
  <component name="ChangeListManager">
    <list default="true" id="4c4765ef-8929-4fb0-aab1-95e32cbe74c7" name="Default" comment="">
      <change type="NEW" beforePath="" afterPath="$PROJECT_DIR$/src/com/gztoucher/sensortest/helper/ScreenListener.java" />
      <change type="MODIFICATION" beforePath="$PROJECT_DIR$/src/com/gztoucher/sensortest/activity/MainActivity.java" afterPath="$PROJECT_DIR$/src/com/gztoucher/sensortest/activity/MainActivity.java" />
      <change type="MODIFICATION" beforePath="$PROJECT_DIR$/.idea/workspace.xml" afterPath="$PROJECT_DIR$/.idea/workspace.xml" />
    </list>
    <ignored path="SensorTest.iws" />
    <ignored path=".idea/workspace.xml" />
    <ignored path="$PROJECT_DIR$/bin/classes/" />
    <ignored path=".idea/dataSources.local.xml" />
    <option name="EXCLUDED_CONVERTED_TO_IGNORED" value="true" />
    <option name="TRACKING_ENABLED" value="true" />
    <option name="SHOW_DIALOG" value="false" />
    <option name="HIGHLIGHT_CONFLICTS" value="true" />
    <option name="HIGHLIGHT_NON_ACTIVE_CHANGELIST" value="false" />
    <option name="LAST_RESOLUTION" value="IGNORE" />
  </component>
  <component name="ChangesViewManager" flattened_view="true" show_ignored="false" />
  <component name="CreatePatchCommitExecutor">
    <option name="PATCH_PATH" value="" />
  </component>
  <component name="ExecutionTargetManager" SELECTED_TARGET="default_target" />
  <component name="FavoritesManager">
    <favorites_list name="SensorTest" />
  </component>
  <component name="FileEditorManager">
    <leaf>
      <file leaf-file-name="MainActivity.java" pinned="false" current-in-tab="true">
        <entry file="file://$PROJECT_DIR$/src/com/gztoucher/sensortest/activity/MainActivity.java">
          <provider selected="true" editor-type-id="text-editor">
            <state vertical-scroll-proportion="0.35765123">
              <caret line="103" column="28" selection-start-line="103" selection-start-column="28" selection-end-line="103" selection-end-column="28" />
              <folding>
                <element signature="e#2753#2754#0" expanded="true" />
                <element signature="e#2796#2797#0" expanded="true" />
                <element signature="e#3232#3233#0" expanded="true" />
                <element signature="e#3275#3276#0" expanded="true" />
                <element signature="e#5968#6684#0" expanded="true" />
                <element signature="e#6683#6684#0" expanded="true" />
                <element signature="e#9856#10526#0" expanded="true" />
                <element signature="e#10231#10500#0" expanded="true" />
                <element signature="e#10499#10500#0" expanded="true" />
                <element signature="e#10525#10526#0" expanded="true" />
              </folding>
            </state>
          </provider>
        </entry>
      </file>
    </leaf>
  </component>
  <component name="FileTemplateManagerImpl">
    <option name="RECENT_TEMPLATES">
      <list>
        <option value="Class" />
      </list>
    </option>
  </component>
  <component name="GenerateSignedApkSettings">
    <option name="KEY_STORE_PATH" value="E:\AndroidSDK\publish.jks" />
    <option name="KEY_ALIAS" value="www.gztoucher.com" />
    <option name="REMEMBER_PASSWORDS" value="true" />
  </component>
  <component name="Git.Settings">
    <option name="PREVIOUS_COMMIT_AUTHORS">
      <list>
        <option value="liyujiang" />
      </list>
    </option>
    <option name="RECENT_GIT_ROOT_PATH" value="$PROJECT_DIR$" />
  </component>
  <component name="GradleLocalSettings">
    <option name="externalProjectsViewState">
      <projects_view />
    </option>
  </component>
  <component name="IdeDocumentHistory">
    <option name="CHANGED_PATHS">
      <list>
        <option value="$PROJECT_DIR$/src/com/gztoucher/sensortest/helper/CommonHelper.java" />
        <option value="$PROJECT_DIR$/src/com/gztoucher/sensortest/helper/CommonUtils.java" />
        <option value="$PROJECT_DIR$/src/com/gztoucher/sensortest/activity/BaseActivity.java" />
        <option value="$PROJECT_DIR$/src/com/gztoucher/sensortest/activity/AccelerometerActivity.java" />
        <option value="$PROJECT_DIR$/res/layout/activity_accelerometer.xml" />
        <option value="$PROJECT_DIR$/src/com/gztoucher/sensortest/activity/OrientationActivity.java" />
        <option value="$PROJECT_DIR$/src/com/gztoucher/sensortest/helper/ScreenKeeper.java" />
        <option value="$PROJECT_DIR$/src/com/gztoucher/sensortest/helper/ScreenWakeLocker.java" />
        <option value="$PROJECT_DIR$/AndroidManifest.xml" />
        <option value="$PROJECT_DIR$/src/com/gztoucher/sensortest/helper/RepeatUtils.java" />
        <option value="$PROJECT_DIR$/src/com/gztoucher/sensortest/helper/WakeLocker.java" />
        <option value="$PROJECT_DIR$/res/layout/activity_main.xml" />
        <option value="$PROJECT_DIR$/src/com/gztoucher/sensortest/helper/ShakeHelper.java" />
        <option value="$PROJECT_DIR$/src/com/gztoucher/sensortest/helper/ExcelHelper.java" />
        <option value="$PROJECT_DIR$/src/com/gztoucher/sensortest/bean/SensorBean.java" />
        <option value="$PROJECT_DIR$/src/com/gztoucher/sensortest/activity/WelcomeActivity.java" />
        <option value="$PROJECT_DIR$/src/com/gztoucher/sensortest/helper/SensorHelper.java" />
        <option value="$PROJECT_DIR$/src/com/gztoucher/sensortest/helper/DbHelper.java" />
        <option value="$PROJECT_DIR$/../FirstRoad4Android/FirstRoadLite/src/com/gztoucher/support/util/ScreenListener.java" />
        <option value="$PROJECT_DIR$/src/com/gztoucher/sensortest/helper/ScreenListener.java" />
        <option value="$PROJECT_DIR$/src/com/gztoucher/sensortest/activity/MainActivity.java" />
      </list>
    </option>
  </component>
  <component name="JsBuildToolGruntFileManager" detection-done="true" />
  <component name="JsGulpfileManager">
    <detection-done>true</detection-done>
  </component>
  <component name="MavenImportPreferences">
    <option name="generalSettings">
      <MavenGeneralSettings>
        <option name="mavenHome" value="Bundled (Maven 3)" />
      </MavenGeneralSettings>
    </option>
  </component>
  <component name="NamedScopeManager">
    <order />
  </component>
  <component name="PhpWorkspaceProjectConfiguration" backward_compatibility_performed="true" />
  <component name="ProjectFrameBounds">
    <option name="x" value="-8" />
    <option name="width" value="1924" />
    <option name="height" value="1040" />
  </component>
  <component name="ProjectLevelVcsManager" settingsEditedManually="true">
    <OptionsSetting value="true" id="Add" />
    <OptionsSetting value="true" id="Remove" />
    <OptionsSetting value="true" id="Checkout" />
    <OptionsSetting value="true" id="Update" />
    <OptionsSetting value="true" id="Status" />
    <OptionsSetting value="true" id="Edit" />
    <ConfirmationsSetting value="0" id="Add" />
    <ConfirmationsSetting value="0" id="Remove" />
  </component>
  <component name="ProjectView">
    <navigator currentView="ProjectPane" proportions="" version="1">
      <flattenPackages />
      <showMembers />
      <showModules />
      <showLibraryContents />
      <hideEmptyPackages />
      <abbreviatePackageNames />
      <autoscrollToSource />
      <autoscrollFromSource />
      <sortByType />
    </navigator>
    <panes>
      <pane id="Scope" />
      <pane id="Scratches" />
      <pane id="ProjectPane">
        <subPane>
          <PATH>
            <PATH_ELEMENT>
              <option name="myItemId" value="SensorTest" />
              <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.ProjectViewProjectNode" />
            </PATH_ELEMENT>
          </PATH>
          <PATH>
            <PATH_ELEMENT>
              <option name="myItemId" value="SensorTest" />
              <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.ProjectViewProjectNode" />
            </PATH_ELEMENT>
            <PATH_ELEMENT>
              <option name="myItemId" value="SensorTest" />
              <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
            </PATH_ELEMENT>
          </PATH>
          <PATH>
            <PATH_ELEMENT>
              <option name="myItemId" value="SensorTest" />
              <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.ProjectViewProjectNode" />
            </PATH_ELEMENT>
            <PATH_ELEMENT>
              <option name="myItemId" value="SensorTest" />
              <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
            </PATH_ELEMENT>
            <PATH_ELEMENT>
              <option name="myItemId" value="src" />
              <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
            </PATH_ELEMENT>
            <PATH_ELEMENT>
              <option name="myItemId" value="sensortest" />
              <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
            </PATH_ELEMENT>
            <PATH_ELEMENT>
              <option name="myItemId" value="helper" />
              <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
            </PATH_ELEMENT>
          </PATH>
          <PATH>
            <PATH_ELEMENT>
              <option name="myItemId" value="SensorTest" />
              <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.ProjectViewProjectNode" />
            </PATH_ELEMENT>
            <PATH_ELEMENT>
              <option name="myItemId" value="SensorTest" />
              <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
            </PATH_ELEMENT>
            <PATH_ELEMENT>
              <option name="myItemId" value="src" />
              <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
            </PATH_ELEMENT>
            <PATH_ELEMENT>
              <option name="myItemId" value="sensortest" />
              <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
            </PATH_ELEMENT>
          </PATH>
          <PATH>
            <PATH_ELEMENT>
              <option name="myItemId" value="SensorTest" />
              <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.ProjectViewProjectNode" />
            </PATH_ELEMENT>
            <PATH_ELEMENT>
              <option name="myItemId" value="SensorTest" />
              <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
            </PATH_ELEMENT>
            <PATH_ELEMENT>
              <option name="myItemId" value="src" />
              <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
            </PATH_ELEMENT>
            <PATH_ELEMENT>
              <option name="myItemId" value="sensortest" />
              <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
            </PATH_ELEMENT>
            <PATH_ELEMENT>
              <option name="myItemId" value="activity" />
              <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
            </PATH_ELEMENT>
          </PATH>
        </subPane>
      </pane>
      <pane id="PackagesPane" />
    </panes>
  </component>
  <component name="PropertiesComponent">
    <property name="aspect.path.notification.shown" value="true" />
    <property name="WebServerToolWindowFactoryState" value="false" />
    <property name="last_opened_file_path" value="$PROJECT_DIR$" />
    <property name="project.structure.last.edited" value="Libraries" />
    <property name="project.structure.proportion" value="0.15" />
    <property name="project.structure.side.proportion" value="0.2" />
    <property name="recentsLimit" value="5" />
    <property name="restartRequiresConfirmation" value="true" />
    <property name="settings.editor.selected.configurable" value="fileTemplates" />
    <property name="settings.editor.splitter.proportion" value="0.2" />
    <property name="OverrideImplement.combined" value="true" />
    <property name="OverrideImplement.overriding.sorted" value="false" />
    <property name="extract.method.default.visibility" value="private" />
    <property name="ANDROID_EXTENDED_DEVICE_CHOOSER_SERIALS" value="022BTF9M37077178" />
    <property name="ANDROID_EXTENDED_DEVICE_CHOOSER_AVD" value="1080-API19-arm" />
    <property name="ExportedModule" value="SensorTest" />
    <property name="ExportedApkPath" value="E:\workspace\SensorTest\SensorTest.apk" />
    <property name="AndroidRunProguardForReleaseBuild" value="false" />
  </component>
  <component name="RecentsManager">
    <key name="CopyFile.RECENT_KEYS">
      <recent name="E:\workspace\SensorTest\src\com\gztoucher\sensortest\helper" />
    </key>
    <key name="CopyClassDialog.RECENTS_KEY">
      <recent name="com.gztoucher.sensortest.helper" />
    </key>
  </component>
  <component name="RunManager" selected="Android Application.SensorTest">
    <configuration default="true" type="#org.jetbrains.idea.devkit.run.PluginConfigurationType" factoryName="Plugin">
      <module name="" />
      <option name="VM_PARAMETERS" value="-Xmx512m -Xms256m -XX:MaxPermSize=250m -ea" />
      <option name="PROGRAM_PARAMETERS" />
      <method />
    </configuration>
    <configuration default="true" type="AndroidRunConfigurationType" factoryName="Android Application">
      <module name="" />
      <option name="ACTIVITY_CLASS" value="" />
      <option name="MODE" value="default_activity" />
      <option name="DEPLOY" value="true" />
      <option name="ARTIFACT_NAME" value="" />
      <option name="TARGET_SELECTION_MODE" value="EMULATOR" />
      <option name="USE_LAST_SELECTED_DEVICE" value="false" />
      <option name="PREFERRED_AVD" value="" />
      <option name="USE_COMMAND_LINE" value="true" />
      <option name="COMMAND_LINE" value="" />
      <option name="WIPE_USER_DATA" value="false" />
      <option name="DISABLE_BOOT_ANIMATION" value="false" />
      <option name="NETWORK_SPEED" value="full" />
      <option name="NETWORK_LATENCY" value="none" />
      <option name="CLEAR_LOGCAT" value="false" />
      <option name="SHOW_LOGCAT_AUTOMATICALLY" value="true" />
      <option name="FILTER_LOGCAT_AUTOMATICALLY" value="true" />
      <method />
    </configuration>
    <configuration default="true" type="AndroidTestRunConfigurationType" factoryName="Android Tests">
      <module name="" />
      <option name="TESTING_TYPE" value="0" />
      <option name="INSTRUMENTATION_RUNNER_CLASS" value="" />
      <option name="METHOD_NAME" value="" />
      <option name="CLASS_NAME" value="" />
      <option name="PACKAGE_NAME" value="" />
      <option name="TARGET_SELECTION_MODE" value="EMULATOR" />
      <option name="USE_LAST_SELECTED_DEVICE" value="false" />
      <option name="PREFERRED_AVD" value="" />
      <option name="USE_COMMAND_LINE" value="true" />
      <option name="COMMAND_LINE" value="" />
      <option name="WIPE_USER_DATA" value="false" />
      <option name="DISABLE_BOOT_ANIMATION" value="false" />
      <option name="NETWORK_SPEED" value="full" />
      <option name="NETWORK_LATENCY" value="none" />
      <option name="CLEAR_LOGCAT" value="false" />
      <option name="SHOW_LOGCAT_AUTOMATICALLY" value="true" />
      <option name="FILTER_LOGCAT_AUTOMATICALLY" value="true" />
      <method />
    </configuration>
    <configuration default="true" type="Applet" factoryName="Applet">
      <module />
      <option name="WIDTH" value="400" />
      <option name="HEIGHT" value="300" />
      <option name="POLICY_FILE" value="$APPLICATION_HOME_DIR$/bin/appletviewer.policy" />
      <method />
    </configuration>
    <configuration default="true" type="Application" factoryName="Application">
      <extension name="coverage" enabled="false" merge="false" sample_coverage="true" runner="idea" />
      <option name="MAIN_CLASS_NAME" />
      <option name="VM_PARAMETERS" />
      <option name="PROGRAM_PARAMETERS" />
      <option name="WORKING_DIRECTORY" value="$PROJECT_DIR$" />
      <option name="ALTERNATIVE_JRE_PATH_ENABLED" value="false" />
      <option name="ALTERNATIVE_JRE_PATH" />
      <option name="ENABLE_SWING_INSPECTOR" value="false" />
      <option name="ENV_VARIABLES" />
      <option name="PASS_PARENT_ENVS" value="true" />
      <module name="" />
      <envs />
      <method />
    </configuration>
    <configuration default="true" type="CucumberJavaRunConfigurationType" factoryName="Cucumber java">
      <extension name="coverage" enabled="false" merge="false" sample_coverage="true" runner="idea" />
      <option name="myFilePath" />
      <option name="GLUE" />
      <option name="myNameFilter" />
      <option name="myGeneratedName" />
      <option name="MAIN_CLASS_NAME" />
      <option name="VM_PARAMETERS" />
      <option name="PROGRAM_PARAMETERS" />
      <option name="WORKING_DIRECTORY" />
      <option name="ALTERNATIVE_JRE_PATH_ENABLED" value="false" />
      <option name="ALTERNATIVE_JRE_PATH" />
      <option name="ENABLE_SWING_INSPECTOR" value="false" />
      <option name="ENV_VARIABLES" />
      <option name="PASS_PARENT_ENVS" value="true" />
      <module name="" />
      <envs />
      <method />
    </configuration>
    <configuration default="true" type="FlashRunConfigurationType" factoryName="Flash App">
      <option name="BCName" value="" />
      <option name="IOSSimulatorSdkPath" value="" />
      <option name="adlOptions" value="" />
      <option name="airProgramParameters" value="" />
      <option name="appDescriptorForEmulator" value="Android" />
      <option name="debugTransport" value="USB" />
      <option name="debuggerSdkRaw" value="BC SDK" />
      <option name="emulator" value="NexusOne" />
      <option name="emulatorAdlOptions" value="" />
      <option name="fastPackaging" value="true" />
      <option name="fullScreenHeight" value="0" />
      <option name="fullScreenWidth" value="0" />
      <option name="launchUrl" value="false" />
      <option name="launcherParameters">
        <LauncherParameters>
          <option name="browser" value="a7bb68e0-33c0-4d6f-a81a-aac1fdb870c8" />
          <option name="launcherType" value="OSDefault" />
          <option name="newPlayerInstance" value="false" />
          <option name="playerPath" value="FlashPlayerDebugger.exe" />
        </LauncherParameters>
      </option>
      <option name="mobileRunTarget" value="Emulator" />
      <option name="moduleName" value="" />
      <option name="overriddenMainClass" value="" />
      <option name="overriddenOutputFileName" value="" />
      <option name="overrideMainClass" value="false" />
      <option name="runTrusted" value="true" />
      <option name="screenDpi" value="0" />
      <option name="screenHeight" value="0" />
      <option name="screenWidth" value="0" />
      <option name="url" value="http://" />
      <option name="usbDebugPort" value="7936" />
      <method />
    </configuration>
    <configuration default="true" type="FlexUnitRunConfigurationType" factoryName="FlexUnit" appDescriptorForEmulator="Android" class_name="" emulatorAdlOptions="" method_name="" package_name="" scope="Class">
      <option name="BCName" value="" />
      <option name="launcherParameters">
        <LauncherParameters>
          <option name="browser" value="a7bb68e0-33c0-4d6f-a81a-aac1fdb870c8" />
          <option name="launcherType" value="OSDefault" />
          <option name="newPlayerInstance" value="false" />
          <option name="playerPath" value="FlashPlayerDebugger.exe" />
        </LauncherParameters>
      </option>
      <option name="moduleName" value="" />
      <option name="trusted" value="true" />
      <method />
    </configuration>
    <configuration default="true" type="GradleRunConfiguration" factoryName="Gradle">
      <ExternalSystemSettings>
        <option name="executionName" />
        <option name="externalProjectPath" />
        <option name="externalSystemIdString" value="GRADLE" />
        <option name="scriptParameters" />
        <option name="taskDescriptions">
          <list />
        </option>
        <option name="taskNames">
          <list />
        </option>
        <option name="vmOptions" />
      </ExternalSystemSettings>
      <method />
    </configuration>
    <configuration default="true" type="GrailsRunConfigurationType" factoryName="Grails">
      <module name="" />
      <setting name="vmparams" value="" />
      <setting name="cmdLine" value="run-app" />
      <setting name="depsClasspath" value="false" />
      <setting name="passParentEnv" value="true" />
      <extension name="coverage" enabled="false" merge="false" sample_coverage="true" runner="idea" />
      <setting name="launchBrowser" value="false" />
      <method />
    </configuration>
    <configuration default="true" type="JUnit" factoryName="JUnit">
      <extension name="coverage" enabled="false" merge="false" sample_coverage="true" runner="idea" />
      <module name="" />
      <option name="ALTERNATIVE_JRE_PATH_ENABLED" value="false" />
      <option name="ALTERNATIVE_JRE_PATH" />
      <option name="PACKAGE_NAME" />
      <option name="MAIN_CLASS_NAME" />
      <option name="METHOD_NAME" />
      <option name="TEST_OBJECT" value="class" />
      <option name="VM_PARAMETERS" value="-ea" />
      <option name="PARAMETERS" />
      <option name="WORKING_DIRECTORY" value="$MODULE_DIR$" />
      <option name="ENV_VARIABLES" />
      <option name="PASS_PARENT_ENVS" value="true" />
      <option name="TEST_SEARCH_SCOPE">
        <value defaultName="singleModule" />
      </option>
      <envs />
      <patterns />
      <method />
    </configuration>
    <configuration default="true" type="JarApplication" factoryName="JAR Application">
      <extension name="coverage" enabled="false" merge="false" sample_coverage="true" runner="idea" />
      <envs />
      <method />
    </configuration>
    <configuration default="true" type="JavascriptDebugType" factoryName="JavaScript Debug">
      <method />
    </configuration>
    <configuration default="true" type="Remote" factoryName="Remote">
      <option name="USE_SOCKET_TRANSPORT" value="true" />
      <option name="SERVER_MODE" value="false" />
      <option name="SHMEM_ADDRESS" value="javadebug" />
      <option name="HOST" value="localhost" />
      <option name="PORT" value="5005" />
      <method />
    </configuration>
    <configuration default="true" type="SpringBootApplicationConfigurationType" factoryName="Spring Boot">
      <extension name="coverage" enabled="false" merge="false" sample_coverage="true" runner="idea" />
      <module name="" />
      <envs />
      <method />
    </configuration>
    <configuration default="true" type="TestNG" factoryName="TestNG">
      <extension name="coverage" enabled="false" merge="false" sample_coverage="true" runner="idea" />
      <module name="" />
      <option name="ALTERNATIVE_JRE_PATH_ENABLED" value="false" />
      <option name="ALTERNATIVE_JRE_PATH" />
      <option name="SUITE_NAME" />
      <option name="PACKAGE_NAME" />
      <option name="MAIN_CLASS_NAME" />
      <option name="METHOD_NAME" />
      <option name="GROUP_NAME" />
      <option name="TEST_OBJECT" value="CLASS" />
      <option name="VM_PARAMETERS" value="-ea" />
      <option name="PARAMETERS" />
      <option name="WORKING_DIRECTORY" value="$PROJECT_DIR$" />
      <option name="OUTPUT_DIRECTORY" />
      <option name="ANNOTATION_TYPE" />
      <option name="ENV_VARIABLES" />
      <option name="PASS_PARENT_ENVS" value="true" />
      <option name="TEST_SEARCH_SCOPE">
        <value defaultName="singleModule" />
      </option>
      <option name="USE_DEFAULT_REPORTERS" value="false" />
      <option name="PROPERTIES_FILE" />
      <envs />
      <properties />
      <listeners />
      <method />
    </configuration>
    <configuration default="true" type="js.build_tools.gulp" factoryName="Gulp.js">
      <node-options />
      <gulpfile />
      <tasks />
      <arguments />
      <pass-parent-envs>true</pass-parent-envs>
      <envs />
      <method />
    </configuration>
    <configuration default="false" name="SensorTest" type="AndroidRunConfigurationType" factoryName="Android Application">
      <module name="SensorTest" />
      <option name="ACTIVITY_CLASS" value="" />
      <option name="MODE" value="default_activity" />
      <option name="DEPLOY" value="true" />
      <option name="ARTIFACT_NAME" value="" />
      <option name="TARGET_SELECTION_MODE" value="SHOW_DIALOG" />
      <option name="USE_LAST_SELECTED_DEVICE" value="false" />
      <option name="PREFERRED_AVD" value="" />
      <option name="USE_COMMAND_LINE" value="true" />
      <option name="COMMAND_LINE" value="" />
      <option name="WIPE_USER_DATA" value="false" />
      <option name="DISABLE_BOOT_ANIMATION" value="false" />
      <option name="NETWORK_SPEED" value="full" />
      <option name="NETWORK_LATENCY" value="none" />
      <option name="CLEAR_LOGCAT" value="false" />
      <option name="SHOW_LOGCAT_AUTOMATICALLY" value="true" />
      <option name="FILTER_LOGCAT_AUTOMATICALLY" value="true" />
      <method />
    </configuration>
    <list size="1">
      <item index="0" class="java.lang.String" itemvalue="Android Application.SensorTest" />
    </list>
  </component>
  <component name="ShelveChangesManager" show_recycled="false" />
  <component name="SvnConfiguration">
    <configuration />
  </component>
  <component name="TaskManager">
    <task active="true" id="Default" summary="Default task">
      <changelist id="4c4765ef-8929-4fb0-aab1-95e32cbe74c7" name="Default" comment="" />
      <created>1428031341376</created>
      <option name="number" value="Default" />
      <updated>1428031341376</updated>
      <workItem from="1428031342717" duration="26866000" />
      <workItem from="1428065385094" duration="416000" />
      <workItem from="1428418999601" duration="3058000" />
      <workItem from="1428562460082" duration="1720000" />
      <workItem from="1428564192168" duration="317000" />
      <workItem from="1428921359683" duration="790000" />
    </task>
    <task id="LOCAL-00001" summary="重新整理">
      <created>1428065560234</created>
      <option name="number" value="00001" />
      <option name="project" value="LOCAL" />
      <updated>1428065560234</updated>
    </task>
    <option name="localTasksCounter" value="2" />
    <servers />
  </component>
  <component name="TimeTrackingManager">
    <option name="totallyTimeSpent" value="33167000" />
  </component>
  <component name="ToolWindowManager">
    <frame x="-8" y="0" width="1924" height="1040" extended-state="0" />
    <editor active="true" />
    <layout>
      <window_info id="Palette" active="false" anchor="right" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.33" sideWeight="0.5" order="3" side_tool="false" content_ui="tabs" />
      <window_info id="TODO" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.33" sideWeight="0.5" order="6" side_tool="false" content_ui="tabs" />
      <window_info id="Messages" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.32694477" sideWeight="0.5" order="7" side_tool="false" content_ui="tabs" />
      <window_info id="Build Variants" active="false" anchor="left" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.33" sideWeight="0.5" order="2" side_tool="true" content_ui="tabs" />
      <window_info id="Palette	" active="false" anchor="left" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.33" sideWeight="0.5" order="2" side_tool="false" content_ui="tabs" />
      <window_info id="Event Log" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.33" sideWeight="0.5" order="7" side_tool="true" content_ui="tabs" />
      <window_info id="Application Servers" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.33" sideWeight="0.5" order="7" side_tool="false" content_ui="tabs" />
      <window_info id="Maven Projects" active="false" anchor="right" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.33" sideWeight="0.5" order="3" side_tool="false" content_ui="tabs" />
      <window_info id="Version Control" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.33" sideWeight="0.5" order="7" side_tool="false" content_ui="tabs" />
      <window_info id="Run" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.32807216" sideWeight="0.5" order="2" side_tool="false" content_ui="tabs" />
      <window_info id="Terminal" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.33" sideWeight="0.5" order="7" side_tool="false" content_ui="tabs" />
      <window_info id="Android" active="true" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="true" weight="0.32581738" sideWeight="0.5" order="7" side_tool="false" content_ui="tabs" />
      <window_info id="Designer" active="false" anchor="right" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.33" sideWeight="0.5" order="3" side_tool="false" content_ui="tabs" />
      <window_info id="Project" active="false" anchor="left" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="true" weight="0.15189189" sideWeight="0.5" order="0" side_tool="false" content_ui="combo" />
      <window_info id="Memory Monitor" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.33" sideWeight="0.5" order="7" side_tool="true" content_ui="tabs" />
      <window_info id="Database" active="false" anchor="right" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.33" sideWeight="0.5" order="3" side_tool="false" content_ui="tabs" />
      <window_info id="Structure" active="false" anchor="left" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.25" sideWeight="0.5" order="1" side_tool="false" content_ui="tabs" />
      <window_info id="Ant Build" active="false" anchor="right" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.25" sideWeight="0.5" order="1" side_tool="false" content_ui="tabs" />
      <window_info id="UI Designer" active="false" anchor="left" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.33" sideWeight="0.5" order="2" side_tool="false" content_ui="tabs" />
      <window_info id="Favorites" active="false" anchor="left" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.33" sideWeight="0.5" order="2" side_tool="true" content_ui="tabs" />
      <window_info id="Debug" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.4" sideWeight="0.5" order="3" side_tool="false" content_ui="tabs" />
      <window_info id="Cvs" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.25" sideWeight="0.5" order="4" side_tool="false" content_ui="tabs" />
      <window_info id="Message" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.33" sideWeight="0.5" order="0" side_tool="false" content_ui="tabs" />
      <window_info id="Commander" active="false" anchor="right" auto_hide="false" internal_type="SLIDING" type="SLIDING" visible="false" weight="0.4" sideWeight="0.5" order="0" side_tool="false" content_ui="tabs" />
      <window_info id="Hierarchy" active="false" anchor="right" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.25" sideWeight="0.5" order="2" side_tool="false" content_ui="combo" />
      <window_info id="Inspection" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.4" sideWeight="0.5" order="5" side_tool="false" content_ui="tabs" />
      <window_info id="Preview" active="false" anchor="right" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.33" sideWeight="0.5" order="3" side_tool="false" content_ui="tabs" />
      <window_info id="Find" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.32975295" sideWeight="0.5" order="1" side_tool="false" content_ui="tabs" />
    </layout>
  </component>
  <component name="VcsContentAnnotationSettings">
    <option name="myLimit" value="2678400000" />
  </component>
  <component name="VcsManagerConfiguration">
    <MESSAGE value="重新整理" />
    <option name="LAST_COMMIT_MESSAGE" value="重新整理" />
  </component>
  <component name="XDebuggerManager">
    <breakpoint-manager>
      <option name="time" value="1" />
    </breakpoint-manager>
    <watches-manager />
  </component>
  <component name="antWorkspaceConfiguration">
    <option name="IS_AUTOSCROLL_TO_SOURCE" value="false" />
    <option name="FILTER_TARGETS" value="false" />
  </component>
  <component name="editorHistoryManager">
    <entry file="file://$PROJECT_DIR$/src/com/gztoucher/sensortest/helper/SensorHelper.java">
      <provider selected="true" editor-type-id="text-editor">
        <state vertical-scroll-proportion="0.0">
          <caret line="25" column="0" selection-start-line="25" selection-start-column="0" selection-end-line="25" selection-end-column="0" />
          <folding>
            <element signature="imports" expanded="true" />
          </folding>
        </state>
      </provider>
    </entry>
    <entry file="file://$PROJECT_DIR$/src/com/gztoucher/sensortest/helper/DbHelper.java">
      <provider selected="true" editor-type-id="text-editor">
        <state vertical-scroll-proportion="0.0">
          <caret line="0" column="0" selection-start-line="0" selection-start-column="0" selection-end-line="0" selection-end-column="0" />
          <folding />
        </state>
      </provider>
    </entry>
    <entry file="file://$PROJECT_DIR$/src/com/gztoucher/sensortest/activity/MainActivity.java">
      <provider selected="true" editor-type-id="text-editor">
        <state vertical-scroll-proportion="0.0">
          <caret line="0" column="0" selection-start-line="0" selection-start-column="0" selection-end-line="0" selection-end-column="0" />
          <folding>
            <element signature="e#2753#2754#0" expanded="true" />
            <element signature="e#2796#2797#0" expanded="true" />
            <element signature="e#3232#3233#0" expanded="true" />
            <element signature="e#3275#3276#0" expanded="true" />
            <element signature="e#5968#6684#0" expanded="true" />
            <element signature="e#6683#6684#0" expanded="true" />
            <element signature="e#9856#10526#0" expanded="true" />
            <element signature="e#10231#10500#0" expanded="true" />
            <element signature="e#10499#10500#0" expanded="true" />
            <element signature="e#10525#10526#0" expanded="true" />
          </folding>
        </state>
      </provider>
    </entry>
    <entry file="file://$PROJECT_DIR$/src/com/gztoucher/sensortest/activity/MainActivity.java">
      <provider selected="true" editor-type-id="text-editor">
        <state vertical-scroll-proportion="0.0">
          <caret line="0" column="0" selection-start-line="0" selection-start-column="0" selection-end-line="0" selection-end-column="0" />
          <folding>
            <element signature="e#2753#2754#0" expanded="true" />
            <element signature="e#2796#2797#0" expanded="true" />
            <element signature="e#3232#3233#0" expanded="true" />
            <element signature="e#3275#3276#0" expanded="true" />
            <element signature="e#5968#6684#0" expanded="true" />
            <element signature="e#6683#6684#0" expanded="true" />
            <element signature="e#9856#10526#0" expanded="true" />
            <element signature="e#10231#10500#0" expanded="true" />
            <element signature="e#10499#10500#0" expanded="true" />
            <element signature="e#10525#10526#0" expanded="true" />
          </folding>
        </state>
      </provider>
    </entry>
    <entry file="file://$PROJECT_DIR$/res/layout/activity_main.xml">
      <provider editor-type-id="android-designer">
        <state />
      </provider>
      <provider selected="true" editor-type-id="text-editor">
        <state vertical-scroll-proportion="-5.096774">
          <caret line="117" column="32" selection-start-line="117" selection-start-column="32" selection-end-line="117" selection-end-column="32" />
          <folding />
        </state>
      </provider>
    </entry>
    <entry file="file://$PROJECT_DIR$/src/com/gztoucher/sensortest/helper/ExcelHelper.java">
      <provider selected="true" editor-type-id="text-editor">
        <state vertical-scroll-proportion="0.30442178">
          <caret line="15" column="17" selection-start-line="15" selection-start-column="17" selection-end-line="15" selection-end-column="17" />
          <folding>
            <element signature="imports" expanded="false" />
          </folding>
        </state>
      </provider>
    </entry>
    <entry file="file://$PROJECT_DIR$/src/com/gztoucher/sensortest/helper/RepeatHelper.java">
      <provider selected="true" editor-type-id="text-editor">
        <state vertical-scroll-proportion="0.10204082">
          <caret line="2" column="0" selection-start-line="2" selection-start-column="0" selection-end-line="8" selection-end-column="3" />
        </state>
      </provider>
    </entry>
    <entry file="file://$PROJECT_DIR$/src/com/gztoucher/sensortest/helper/WakeLocker.java">
      <provider selected="true" editor-type-id="text-editor">
        <state vertical-scroll-proportion="0.45918366">
          <caret line="9" column="0" selection-start-line="9" selection-start-column="0" selection-end-line="13" selection-end-column="3" />
          <folding>
            <element signature="imports" expanded="false" />
          </folding>
        </state>
      </provider>
    </entry>
    <entry file="file://$PROJECT_DIR$/src/com/gztoucher/sensortest/bean/SensorBean.java">
      <provider selected="true" editor-type-id="text-editor">
        <state vertical-scroll-proportion="0.40816328">
          <caret line="8" column="3" selection-start-line="8" selection-start-column="3" selection-end-line="8" selection-end-column="3" />
        </state>
      </provider>
    </entry>
    <entry file="file://$PROJECT_DIR$/AndroidManifest.xml">
      <provider selected="true" editor-type-id="text-editor">
        <state vertical-scroll-proportion="0.6122449">
          <caret line="12" column="63" selection-start-line="12" selection-start-column="35" selection-end-line="12" selection-end-column="63" />
          <folding />
        </state>
      </provider>
    </entry>
    <entry file="file://$PROJECT_DIR$/src/com/gztoucher/sensortest/activity/WelcomeActivity.java">
      <provider selected="true" editor-type-id="text-editor">
        <state vertical-scroll-proportion="0.5084746">
          <caret line="10" column="2" selection-start-line="10" selection-start-column="2" selection-end-line="10" selection-end-column="2" />
        </state>
      </provider>
    </entry>
    <entry file="file://$PROJECT_DIR$/.gitignore">
      <provider selected="true" editor-type-id="text-editor">
        <state vertical-scroll-proportion="-0.7522124">
          <caret line="8" column="7" selection-start-line="8" selection-start-column="7" selection-end-line="8" selection-end-column="7" />
        </state>
      </provider>
    </entry>
    <entry file="file://$PROJECT_DIR$/.idea/copyright/profiles_settings.xml">
      <provider selected="true" editor-type-id="text-editor">
        <state vertical-scroll-proportion="0.0">
          <caret line="0" column="0" selection-start-line="0" selection-start-column="0" selection-end-line="0" selection-end-column="0" />
        </state>
      </provider>
    </entry>
    <entry file="file://$PROJECT_DIR$/.idea/.name">
      <provider selected="true" editor-type-id="text-editor">
        <state vertical-scroll-proportion="0.0">
          <caret line="0" column="0" selection-start-line="0" selection-start-column="0" selection-end-line="0" selection-end-column="0" />
        </state>
      </provider>
    </entry>
    <entry file="file://$PROJECT_DIR$/.idea/compiler.xml">
      <provider selected="true" editor-type-id="text-editor">
        <state vertical-scroll-proportion="-0.37755102">
          <caret line="0" column="0" selection-start-line="0" selection-start-column="0" selection-end-line="0" selection-end-column="0" />
        </state>
      </provider>
    </entry>
    <entry file="file://$PROJECT_DIR$/.idea/misc.xml">
      <provider selected="true" editor-type-id="text-editor">
        <state vertical-scroll-proportion="0.0">
          <caret line="0" column="0" selection-start-line="0" selection-start-column="0" selection-end-line="0" selection-end-column="0" />
        </state>
      </provider>
    </entry>
    <entry file="file://$PROJECT_DIR$/.idea/modules.xml">
      <provider selected="true" editor-type-id="text-editor">
        <state vertical-scroll-proportion="0.0">
          <caret line="0" column="0" selection-start-line="0" selection-start-column="0" selection-end-line="0" selection-end-column="0" />
        </state>
      </provider>
    </entry>
    <entry file="file://$PROJECT_DIR$/.idea/uiDesigner.xml">
      <provider selected="true" editor-type-id="text-editor">
        <state vertical-scroll-proportion="-1.3775511">
          <caret line="0" column="0" selection-start-line="0" selection-start-column="0" selection-end-line="0" selection-end-column="0" />
        </state>
      </provider>
    </entry>
    <entry file="file://$PROJECT_DIR$/.idea/vcs.xml">
      <provider selected="true" editor-type-id="text-editor">
        <state vertical-scroll-proportion="0.25510204">
          <caret line="5" column="10" selection-start-line="5" selection-start-column="10" selection-end-line="5" selection-end-column="10" />
        </state>
      </provider>
    </entry>
    <entry file="file://$PROJECT_DIR$/.idea/workspace.xml">
      <provider selected="true" editor-type-id="text-editor">
        <state vertical-scroll-proportion="-7.8061223">
          <caret line="0" column="0" selection-start-line="0" selection-start-column="0" selection-end-line="0" selection-end-column="0" />
        </state>
      </provider>
    </entry>
    <entry file="file://$PROJECT_DIR$/.idea/libraries/libs.xml">
      <provider selected="true" editor-type-id="text-editor">
        <state vertical-scroll-proportion="0.15306123">
          <caret line="3" column="19" selection-start-line="3" selection-start-column="19" selection-end-line="3" selection-end-column="19" />
        </state>
      </provider>
    </entry>
    <entry file="file://$PROJECT_DIR$/LICENSE">
      <provider selected="true" editor-type-id="text-editor">
        <state vertical-scroll-proportion="0.0">
          <caret line="0" column="0" selection-start-line="0" selection-start-column="0" selection-end-line="0" selection-end-column="0" />
        </state>
      </provider>
      <provider editor-type-id="com.intellij.database.editor.CsvTableFileEditorProvider">
        <state />
      </provider>
    </entry>
    <entry file="file://$PROJECT_DIR$/README.md">
      <provider selected="true" editor-type-id="text-editor">
        <state vertical-scroll-proportion="0.0">
          <caret line="0" column="0" selection-start-line="0" selection-start-column="0" selection-end-line="0" selection-end-column="0" />
        </state>
      </provider>
    </entry>
    <entry file="file://$PROJECT_DIR$/project.properties">
      <provider selected="true" editor-type-id="text-editor">
        <state vertical-scroll-proportion="0.80684596">
          <caret line="11" column="0" selection-start-line="11" selection-start-column="0" selection-end-line="11" selection-end-column="0" />
          <folding />
        </state>
      </provider>
    </entry>
    <entry file="file://$PROJECT_DIR$/.project">
      <provider selected="true" editor-type-id="text-editor">
        <state vertical-scroll-proportion="0.0">
          <caret line="0" column="0" selection-start-line="0" selection-start-column="0" selection-end-line="0" selection-end-column="0" />
        </state>
      </provider>
    </entry>
    <entry file="file://$PROJECT_DIR$/SensorTest.iml">
      <provider selected="true" editor-type-id="text-editor">
        <state vertical-scroll-proportion="-1.3202934">
          <caret line="0" column="0" selection-start-line="0" selection-start-column="0" selection-end-line="0" selection-end-column="0" />
        </state>
      </provider>
    </entry>
    <entry file="file://$PROJECT_DIR$/../FirstRoad4Android/FirstRoadLite/src/com/gztoucher/support/util/ScreenListener.java">
      <provider selected="true" editor-type-id="text-editor">
        <state vertical-scroll-proportion="0.2669039">
          <caret line="9" column="70" selection-start-line="9" selection-start-column="70" selection-end-line="9" selection-end-column="70" />
          <folding />
        </state>
      </provider>
    </entry>
    <entry file="file://$PROJECT_DIR$/src/com/gztoucher/sensortest/helper/DbHelper.java">
      <provider selected="true" editor-type-id="text-editor">
        <state vertical-scroll-proportion="0.6049822">
          <caret line="36" column="37" selection-start-line="36" selection-start-column="37" selection-end-line="36" selection-end-column="37" />
          <folding />
        </state>
      </provider>
    </entry>
    <entry file="file://$PROJECT_DIR$/src/com/gztoucher/sensortest/helper/SensorHelper.java">
      <provider selected="true" editor-type-id="text-editor">
        <state vertical-scroll-proportion="1.1209965">
          <caret line="39" column="0" selection-start-line="39" selection-start-column="0" selection-end-line="39" selection-end-column="0" />
          <folding>
            <element signature="imports" expanded="true" />
          </folding>
        </state>
      </provider>
    </entry>
    <entry file="file://$PROJECT_DIR$/../FirstRoad4Android/FirstRoadLite/src/com/gztoucher/FirstRoad/service/SensorService.java">
      <provider selected="true" editor-type-id="text-editor">
        <state vertical-scroll-proportion="0.5871886">
          <caret line="95" column="0" selection-start-line="95" selection-start-column="0" selection-end-line="115" selection-end-column="0" />
          <folding />
        </state>
      </provider>
    </entry>
    <entry file="file://$PROJECT_DIR$/src/com/gztoucher/sensortest/helper/ScreenListener.java">
      <provider selected="true" editor-type-id="text-editor">
        <state vertical-scroll-proportion="0.73309606">
          <caret line="99" column="16" selection-start-line="99" selection-start-column="16" selection-end-line="99" selection-end-column="16" />
          <folding />
        </state>
      </provider>
    </entry>
    <entry file="file://$PROJECT_DIR$/src/com/gztoucher/sensortest/activity/MainActivity.java">
      <provider selected="true" editor-type-id="text-editor">
        <state vertical-scroll-proportion="0.35765123">
          <caret line="103" column="28" selection-start-line="103" selection-start-column="28" selection-end-line="103" selection-end-column="28" />
          <folding>
            <element signature="e#2753#2754#0" expanded="true" />
            <element signature="e#2796#2797#0" expanded="true" />
            <element signature="e#3232#3233#0" expanded="true" />
            <element signature="e#3275#3276#0" expanded="true" />
            <element signature="e#5968#6684#0" expanded="true" />
            <element signature="e#6683#6684#0" expanded="true" />
            <element signature="e#9856#10526#0" expanded="true" />
            <element signature="e#10231#10500#0" expanded="true" />
            <element signature="e#10499#10500#0" expanded="true" />
            <element signature="e#10525#10526#0" expanded="true" />
          </folding>
        </state>
      </provider>
    </entry>
  </component>
  <component name="masterDetails">
    <states>
      <state key="ArtifactsStructureConfigurable.UI">
        <settings>
          <artifact-editor />
          <splitter-proportions>
            <option name="proportions">
              <list>
                <option value="0.2" />
              </list>
            </option>
          </splitter-proportions>
        </settings>
      </state>
      <state key="FacetStructureConfigurable.UI">
        <settings>
          <last-edited>Android</last-edited>
          <splitter-proportions>
            <option name="proportions">
              <list>
                <option value="0.2" />
              </list>
            </option>
          </splitter-proportions>
        </settings>
      </state>
      <state key="GlobalLibrariesConfigurable.UI">
        <settings>
          <splitter-proportions>
            <option name="proportions">
              <list>
                <option value="0.2" />
              </list>
            </option>
          </splitter-proportions>
        </settings>
      </state>
      <state key="JdkListConfigurable.UI">
        <settings>
          <last-edited>Android API 19 Platform</last-edited>
          <splitter-proportions>
            <option name="proportions">
              <list>
                <option value="0.2" />
              </list>
            </option>
          </splitter-proportions>
        </settings>
      </state>
      <state key="ModuleStructureConfigurable.UI">
        <settings>
          <last-edited>SensorTest</last-edited>
          <splitter-proportions>
            <option name="proportions">
              <list>
                <option value="0.2" />
                <option value="0.6" />
              </list>
            </option>
          </splitter-proportions>
        </settings>
      </state>
      <state key="ProjectLibrariesConfigurable.UI">
        <settings>
          <last-edited>libs</last-edited>
          <splitter-proportions>
            <option name="proportions">
              <list>
                <option value="0.2" />
              </list>
            </option>
          </splitter-proportions>
        </settings>
      </state>
    </states>
  </component>
</project>


text:
#pragma once

#pragma warning(push)
#pragma warning(disable : 4200) // MSVC warning about CDynamicStore<T>::Store having a flexible-sized array
                                // Well, it's on C99 (not sure if applied on C++11 by the C99 compatibility rule)
                                // and supported by MSVC, GCC and Clang as extensions for C++

/*
    CDynamicStore
        Dynamic version of CStore<>
        To get the backward compatible interface call GetStore()
        @T is the type of the element to store
*/
template<class T>
class CDynamicStore
{
    public:
        // Backward compatible interface
        struct Store
        {
            size_t m_nCount;
            T      m_Objects[];
        };

        // Constructs the store with a default initial size
        CDynamicStore(uintptr_t default_addr, size_t default_capacity) :
            m_nCapacity(default_capacity), m_Store((Store*)default_addr), m_bOwnsAllocation(false)
        {
            static_assert(sizeof(Store) == 4, "Wrong sizeof");
            //this->MakeSureHasBlocks(default_capacity);
        }

        //
        ~CDynamicStore()
        {
            if(m_bOwnsAllocation)
            {
                for(size_t i = 0; i < m_nCapacity; ++i)
                    m_Store->m_Objects[i].~T();
                operator delete(m_Store);
            }
        }

        // Ensures the store has capacity for another @count objects
        // Returns true if capacity changed
        bool EnsureHasCapacityForAnother(size_t n = 1)
        {
            if(this->m_nCapacity < (m_Store->m_nCount + n))
            {
                this->Grow();
                return true;
            }
            return false;
        }

        // Sets the total capacity for this store not considering the old CStore
        // Necessary to clean up any information about the original CStore because possibily
        // it hasn't initialized yet so we cannot std::move it
        void ForceCapacity(size_t n)
        {
            if(!this->m_bOwnsAllocation)
            {
                this->m_nCapacity = 0;
                this->m_Store     = nullptr;
            }
            this->MakeSureHasBlocks(n);
        }

        // Gets the backward compatible CStore<> interface
        Store* GetStore()
        {
            return this->m_Store;
        }

        size_t GetCapacity()
        {
            return this->m_nCapacity;
        }

        size_t GetUsage()
        {
            return this->m_Store->m_nCount;
        }

        bool IsUsingGameAllocation()
        {
            return !m_bOwnsAllocation;
        }

    private:
        size_t m_nCapacity;     // Current store capacity
        Store* m_Store;         // Store interface
        bool m_bOwnsAllocation; // Is me that owns the m_Store allocation or the game (.data seg)?

        // Make sure has @size capacity
        void MakeSureHasBlocks(size_t size)
        {
            if(this->m_nCapacity < size)
            {
                auto count = m_Store? m_Store->m_nCount : 0;

                // Allocate new memory block and move previous elements into there
                Store* pNewStore = (Store*) operator new(sizeof(Store) + (size * sizeof(T)));

                // Move previous existing objects
                for(size_t i = 0; i < m_nCapacity; ++i)
                {
                    new (&pNewStore->m_Objects[i]) T(std::move(m_Store->m_Objects[i]));
                    if(m_bOwnsAllocation) m_Store->m_Objects[i].~T();
                }

                // Construct newer objects
                for(size_t i = m_nCapacity; i < size; ++i)
                    new (&pNewStore->m_Objects[i]) T();

                // Free previous piece of memory block
                if(m_bOwnsAllocation) operator delete(m_Store);

                // Setup new information
                this->m_Store           = pNewStore;
                this->m_Store->m_nCount = count;
                this->m_nCapacity       = size;
                this->m_bOwnsAllocation = true;
            }
        }

        // Grows the storer, so it can store more objects
        bool Grow()
        {
            try
            {
                MakeSureHasBlocks(m_nCapacity? m_nCapacity * 2 : 16);
                return true;
            }
            catch(const std::bad_alloc&)
            {
                return false;
            }
        }
};

#pragma warning(pop)


text:
alias dcc="docker ps -a --no-trunc | grep 'Exit' | awk '{print \$1}' | xargs -r docker rm"
alias dccc="docker ps -a --no-trunc | grep 'Created' | awk '{print \$1}' | xargs -r docker rm"
alias dci="docker images --no-trunc | grep none | awk '{print \$3}' | xargs -r docker rmi"
alias dsc="docker ps -a --no-trunc | grep -v CONTAINER | awk '{print \$1}' | xargs -r docker stop"
alias di="docker images"
alias dps="docker ps -a"
alias dcp="docker-compose"
function dci_grep() {
    docker images --no-trunc | grep $1 | awk '{print $3}' | xargs -r docker rmi
}
function dcp2() {
    dcp stop && dcc
}
function dcp3() {
    dcp up -d && dcp logs -f
}
function dcp4() {
    dcp stop && dcc && dcp up -d && dcp logs -f
}
function dcp5() {
    dcp stop && dcc && dcp build && dcp up -d && dcp logs -f
}


text:
namespace cobalt {
namespace web {

// The NavigatorUAData object holds the User-Agent Client Hints information.
// https://wicg.github.io/ua-client-hints/#navigatoruadata
class NavigatorUAData : public script::Wrappable {
 public:
  using InterfacePromise = script::Promise<scoped_refptr<script::Wrappable>>;

  NavigatorUAData(const UserAgentPlatformInfo* platform_info,
                  script::ScriptValueFactory* script_value_factory);

  script::Sequence<NavigatorUABrandVersion> brands() const { return brands_; }

  bool mobile() const { return mobile_; }

  std::string platform() const { return platform_; }

  script::Handle<InterfacePromise> GetHighEntropyValues(
      script::Sequence<std::string> hints);

  UALowEntropyJSON ToJSON() { return low_entropy_json_; }

  DEFINE_WRAPPABLE_TYPE(NavigatorUAData);

 private:
  ~NavigatorUAData() override {}

  script::Sequence<NavigatorUABrandVersion> brands_;
  bool mobile_;
  std::string platform_;
  CobaltUADataValues all_high_entropy_values_;
  UALowEntropyJSON low_entropy_json_;
  script::ScriptValueFactory* script_value_factory_;

  DISALLOW_COPY_AND_ASSIGN(NavigatorUAData);
};

}  // namespace web
}  // namespace cobalt

#endif  // COBALT_WEB_NAVIGATOR_UA_DATA_H_


text:
using System;
using System.Reflection;
using Bridge.Test.NUnit;

namespace Bridge.ClientTest.Batch3.BridgeIssues
{
    /// <summary>
    /// This test ensures the basic definition of MethodInfo.MakeGenericMethod
    /// is consistent.
    /// </summary>
    [Category(Constants.MODULE_ISSUES)]
    [TestFixture(TestNameFormat = "#2894 - {0}")]
    public class Bridge2894
    {
        [Reflectable]
        public class Example
        {
            public static string arg;

            public static void Generic<T>(T toDisplay)
            {
                arg = toDisplay.ToString();
            }
        }

        /// <summary>
        /// Tests based in the MSDN documentation for MethodInfo.MakeGenericMethod:
        /// https://docs.microsoft.com/en-us/dotnet/api/system.reflection.methodinfo.makegenericmethod
        /// </summary>
        /// <remarks>
        /// The '.ToString()' tests are commented out until this aspect of the
        /// feature is implemented.
        /// </remarks>
        [Test]
        public static void TestMakeGenericMethod()
        {
            Type tParam;

            Type ex = typeof(Example);
            MethodInfo mi = ex.GetMethod("Generic");
            Assert.NotNull(mi, "MethodInfo is not null.");
            //Assert.AreEqual("Void Generic[T](T)", mi.ToString(), "Generic method being examined is 'Void Generic[T](T)'.");
            Assert.True(mi.IsGenericMethodDefinition, "Is this a generic method definition? true");
            Assert.True(mi.IsGenericMethod, "Is it a generic method? true");
            Assert.True(mi.ContainsGenericParameters, "Does it have unassigned generic parameters? true");

            Type[] typeArguments = mi.GetGenericArguments();
            Assert.AreEqual(1, typeArguments.Length, "List type arguments (1)");

            // Skip these tests if the typeArguments are not 1 (the assertion
            // above should point the test failed anyway)
            if (typeArguments.Length > 0)
            {
                tParam = typeArguments[0];
                Assert.True(tParam.IsGenericParameter, "Is the argument a generic parameter? true");
                //Assert.AreEqual("T", tParam.ToString(), "Parameter is 'T'");
                Assert.AreEqual(0, tParam.GenericParameterPosition, "parameter position 0");
                Assert.True(tParam.DeclaringMethod == mi, "declaring method is correct");
                //Assert.AreEqual("Void Generic[T](T)", tParam.DeclaringMethod, "Generic method being examined is 'Void Generic[T](T)'.");
            }

            MethodInfo miConstructed = mi.MakeGenericMethod(typeof(int));
            Assert.NotNull(miConstructed, "Constructed generic method is not null.");
            //Assert.AreEqual("Void Generic[Int32](Int32)", miConstructed.ToString(), "Constructed generic method is 'Void Generic[Int32](Int32)'");
            Assert.False(miConstructed.IsGenericMethodDefinition, "Is this a generic method definition? False");
            Assert.True(miConstructed.IsGenericMethod, "Is it a generic method? True");
            Assert.False(miConstructed.ContainsGenericParameters, "Does it have unassigned generic parameters? False");

            typeArguments = miConstructed.GetGenericArguments();
            Assert.AreEqual(1, typeArguments.Length, "List type arguments (1)");

            if (typeArguments.Length > 0)
            {
                tParam = typeArguments[0];
                Assert.False(tParam.IsGenericParameter, "Is the argument a generic parameter? false");
                //Assert.AreEqual("System.Int32", tParam.ToString(), "Constructed generic method's parameter is 'System.Int32'");
            }

            Example.arg = null;
            object[] args = { 42 };
            miConstructed.Invoke(null, args);
            // We are mimicking output from the original documentation test code.
            Assert.AreEqual("42", Example.arg, "Here it is: 42");

            Example.arg = null;
            Example.Generic<int>(42);
            Assert.AreEqual("42", Example.arg, "Here it is: 42");

            MethodInfo miDef = miConstructed.GetGenericMethodDefinition();
            Assert.True(miDef == mi, "GetGenericMethodDefinition returns the correct reference.");
        }
    }
}


text:
<?xml version="1.0" encoding="utf-8"?>
<PRONOM-Report xmlns="http://pronom.nationalarchives.gov.uk">
  <report_format_detail>
    <FileFormat>
      <FormatID>1445</FormatID>
      <FormatName>Apple iWork Keynote</FormatName>
      <FormatVersion>09</FormatVersion>
      <FormatAliases>
      </FormatAliases>
      <FormatFamilies>
      </FormatFamilies>
      <FormatTypes>Presentation</FormatTypes>
      <FormatDisclosure>
      </FormatDisclosure>
      <FormatDescription>Keynote is the presentation format of the Apple iWork productivity suite.</FormatDescription>
      <BinaryFileFormat>
      </BinaryFileFormat>
      <ByteOrders>
      </ByteOrders>
      <ReleaseDate>
      </ReleaseDate>
      <WithdrawnDate>
      </WithdrawnDate>
      <ProvenanceSourceID>1</ProvenanceSourceID>
      <ProvenanceName>Digital Preservation Department / The National Archives</ProvenanceName>
      <ProvenanceSourceDate>14 Jul 2014</ProvenanceSourceDate>
      <ProvenanceDescription>This format can be identified via a container signature in DROID version 6 or later. The PRONOM database cannot currently represent container signatures.</ProvenanceDescription>
      <LastUpdatedDate>30 Sep 2020</LastUpdatedDate>
      <FormatNote>
      </FormatNote>
      <FormatRisk>
      </FormatRisk>
      <TechnicalEnvironment>
      </TechnicalEnvironment>
      <FileFormatIdentifier>
        <Identifier>fmt/646</Identifier>
        <IdentifierType>PUID</IdentifierType>
      </FileFormatIdentifier>
      <Developers>
        <DeveloperID>15</DeveloperID>
        <DeveloperName>
        </DeveloperName>
        <OrganisationName>Apple Computer, Inc.</OrganisationName>
        <DeveloperCompoundName>Apple Computer, Inc.</DeveloperCompoundName>
      </Developers>
      <Support>
        <SupportID>15</SupportID>
        <SupportName>
        </SupportName>
        <OrganisationName>Apple Computer, Inc.</OrganisationName>
        <SupportCompoundName>Apple Computer, Inc.</SupportCompoundName>
      </Support>
      <ExternalSignature>
        <ExternalSignatureID>1495</ExternalSignatureID>
        <Signature>key</Signature>
        <SignatureType>File extension</SignatureType>
      </ExternalSignature>
    </FileFormat>
    <SearchCriteria>Criteria</SearchCriteria>
  </report_format_detail>
</PRONOM-Report>


text:
using StormMultiLang.Read;
using StormMultiLang.Write;

namespace StormMultiLang
{
    /// <summary>
    /// Bootstrap the spout or bold stuff
    /// </summary>
    public class StrormConfigurationBuilder
    {
        private readonly IProtocolWriterFormat _writerFormat = new JsonProtocolWriterFormat();
        private readonly IProtocolReaderFormat _readerFormat;
        private readonly IWriteNext _outputToParent;
        private readonly IReadNext _readNext;

        public StrormConfigurationBuilder()
        {
            ICommunication communication = new StdInOutCommunication();
            IOsSpecific osStuff = new WindowsPidStuff();
            _outputToParent = new WriteStringWithEndTerminator(communication);
            _readerFormat = new JsonProtocolReaderFormat(new WritePidFileAndSendIdToParent(_writerFormat, osStuff, _outputToParent));
            _readNext = new ReadUntillEndRecieved(communication);
        }

        public StrormConfiguration HandleTaskIds()
        {
            return new StrormConfiguration(
                new StormReader(_readNext, _readerFormat),_outputToParent,_writerFormat);
        }

        public StrormConfiguration DontBotherWithTaskIds()
        {
            return new StrormConfiguration(
                new StormReaderNotBotheredAboutTaskIds(_readNext, _readerFormat), _outputToParent, _writerFormat);
        }
    }
}


text:
import os
import sys

sys.path.insert(0, os.path.abspath(os.path.join(os.path.dirname(__file__),
                '..', '..')))

# -- General configuration ----------------------------------------------------

# Add any Sphinx extension module names here, as strings. They can be
# extensions coming with Sphinx (named 'sphinx.ext.*') or your custom ones.
extensions = ['sphinx.ext.autodoc', 'oslosphinx']

# autodoc generation is a bit aggressive and a nuisance when doing heavy
# text edit cycles.
# execute "export SPHINX_DEBUG=1" in your terminal to disable

# Add any paths that contain templates here, relative to this directory.
templates_path = ['_templates']

# The suffix of source filenames.
source_suffix = '.rst'

# The master toctree document.
master_doc = 'index'

# General information about the project.
project = 'python-glanceclient'
copyright = u'OpenStack Foundation'

# If true, '()' will be appended to :func: etc. cross-reference text.
add_function_parentheses = True

# If true, the current module name will be prepended to all description
# unit titles (such as .. function::).
add_module_names = True

# The name of the Pygments (syntax highlighting) style to use.
pygments_style = 'sphinx'

# Grouping the document tree for man pages.
# List of tuples 'sourcefile', 'target', u'title', u'Authors name', 'manual'

man_pages = [
    ('man/glance', 'glance', u'Client for OpenStack Images API',
     [u'OpenStack Foundation'], 1),
]
# -- Options for HTML output --------------------------------------------------

# The theme to use for HTML and HTML Help pages.  Major themes that come with
# Sphinx are currently 'default' and 'sphinxdoc'.
#html_theme = 'nature'

# Output file base name for HTML help builder.
htmlhelp_basename = '%sdoc' % project

# Grouping the document tree into LaTeX files. List of tuples
# (source start file, target name, title, author, documentclass
# [howto/manual]).
latex_documents = [
    (
        'index',
        '%s.tex' % project,
        u'%s Documentation' % project,
        u'OpenStack Foundation',
        'manual'
    ),
]


text:
package org.jooby.sample;

public final class UploadDownloadSampleException extends RuntimeException {
  public UploadDownloadSampleException() {
  }

  public UploadDownloadSampleException(String message) {
    super(message);
  }

  public UploadDownloadSampleException(String message, Throwable cause) {
    super(message, cause);
  }

  public UploadDownloadSampleException(Throwable cause) {
    super(cause);
  }

  public UploadDownloadSampleException(String message, Throwable cause, boolean enableSuppression, boolean writableStackTrace) {
    super(message, cause, enableSuppression, writableStackTrace);
  }
}


text:
title: Telerik.Web.UI.PdfViewer.DefaultPageSize
page_title: Telerik.Web.UI.PdfViewer.DefaultPageSize
description: Telerik.Web.UI.PdfViewer.DefaultPageSize
---

# Telerik.Web.UI.PdfViewer.DefaultPageSize

Specifies the default page size if no PDF is displayed in the PdfViewer. The page size will shrink to fit the viewer dimensions.

## Inheritance Hierarchy

* System.Object
* Telerik.Web.StateManager : IMarkableStateManager, IStateManager
* Telerik.Web.UI.PdfViewer.DefaultPageSize : IDefaultCheck

## Properties

###  Height `Double`

###  Width `Double`


text:
using content::WebContents;

namespace {

// Returns the width of the title for the current font, in pixels.
int GetTitleWidth(gfx::Font* font, string16 title) {
  DCHECK(font);
  if (title.empty())
    return 0;

  return font->GetStringWidth(title);
}

}  // namespace

class TabGtk::TabGtkObserverHelper {
 public:
  explicit TabGtkObserverHelper(TabGtk* tab)
      : tab_(tab) {
    MessageLoopForUI::current()->AddObserver(tab_);
  }

  ~TabGtkObserverHelper() {
    MessageLoopForUI::current()->RemoveObserver(tab_);
  }

 private:
  TabGtk* tab_;

  DISALLOW_COPY_AND_ASSIGN(TabGtkObserverHelper);
};

///////////////////////////////////////////////////////////////////////////////
// TabGtk, public:

TabGtk::TabGtk(TabDelegate* delegate)
    : TabRendererGtk(delegate->GetThemeProvider()),
      delegate_(delegate),
      closing_(false),
      dragging_(false),
      last_mouse_down_(NULL),
      drag_widget_(NULL),
      title_width_(0),
      ALLOW_THIS_IN_INITIALIZER_LIST(destroy_factory_(this)),
      ALLOW_THIS_IN_INITIALIZER_LIST(drag_end_factory_(this)) {
  event_box_ = gtk_input_event_box_new();
  g_signal_connect(event_box_, "button-press-event",
                   G_CALLBACK(OnButtonPressEventThunk), this);
  g_signal_connect(event_box_, "button-release-event",
                   G_CALLBACK(OnButtonReleaseEventThunk), this);
  g_signal_connect(event_box_, "enter-notify-event",
                   G_CALLBACK(OnEnterNotifyEventThunk), this);
  g_signal_connect(event_box_, "leave-notify-event",
                   G_CALLBACK(OnLeaveNotifyEventThunk), this);
  gtk_widget_add_events(event_box_,
        GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK |
        GDK_ENTER_NOTIFY_MASK | GDK_LEAVE_NOTIFY_MASK);
  gtk_container_add(GTK_CONTAINER(event_box_), TabRendererGtk::widget());
  gtk_widget_show_all(event_box_);
}

TabGtk::~TabGtk() {
  if (drag_widget_) {
    // Shadow the drag grab so the grab terminates. We could do this using any
    // widget, |drag_widget_| is just convenient.
    gtk_grab_add(drag_widget_);
    gtk_grab_remove(drag_widget_);
    DestroyDragWidget();
  }

  if (menu_controller_.get()) {
    // The menu is showing. Close the menu.
    menu_controller_->Cancel();

    // Invoke this so that we hide the highlight.
    ContextMenuClosed();
  }
}

void TabGtk::Raise() const {
  UNSHIPPED_TRACE_EVENT0("ui::gtk", "TabGtk::Raise");

  GdkWindow* window = gtk_input_event_box_get_window(
      GTK_INPUT_EVENT_BOX(event_box_));
  gdk_window_raise(window);
  TabRendererGtk::Raise();
}

gboolean TabGtk::OnButtonPressEvent(GtkWidget* widget, GdkEventButton* event) {
  // Every button press ensures either a button-release-event or a drag-fail
  // signal for |widget|.
  if (event->button == 1 && event->type == GDK_BUTTON_PRESS) {
    // Store whether or not we were selected just now... we only want to be
    // able to drag foreground tabs, so we don't start dragging the tab if
    // it was in the background.
    if (!IsActive()) {
      if (event->state & GDK_CONTROL_MASK)
        delegate_->ToggleTabSelection(this);
      else if (event->state & GDK_SHIFT_MASK)
        delegate_->ExtendTabSelection(this);
      else
        delegate_->ActivateTab(this);
    }
    // Hook into the message loop to handle dragging.
    observer_.reset(new TabGtkObserverHelper(this));

    // Store the button press event, used to initiate a drag.
    last_mouse_down_ = gdk_event_copy(reinterpret_cast<GdkEvent*>(event));
  } else if (event->button == 3) {
    // Only show the context menu if the left mouse button isn't down (i.e.,
    // the user might want to drag instead).
    if (!last_mouse_down_) {
      menu_controller_.reset(delegate()->GetTabStripMenuControllerForTab(this));
      menu_controller_->RunMenu(gfx::Point(event->x_root, event->y_root),
                                event->time);
    }
  }

  return TRUE;
}

gboolean TabGtk::OnButtonReleaseEvent(GtkWidget* widget,
                                      GdkEventButton* event) {
  if (event->button == 1) {
    if (IsActive() && !(event->state & (GDK_SHIFT_MASK | GDK_CONTROL_MASK))) {
      delegate_->ActivateTab(this);
    }
    observer_.reset();

    if (last_mouse_down_) {
      gdk_event_free(last_mouse_down_);
      last_mouse_down_ = NULL;
    }
  }

  GtkAllocation allocation;
  gtk_widget_get_allocation(widget, &allocation);

  // Middle mouse up means close the tab, but only if the mouse is over it
  // (like a button).
  if (event->button == 2 &&
      event->x >= 0 && event->y >= 0 &&
      event->x < allocation.width &&
      event->y < allocation.height) {
    // If the user is currently holding the left mouse button down but hasn't
    // moved the mouse yet, a drag hasn't started yet.  In that case, clean up
    // some state before closing the tab to avoid a crash.  Once the drag has
    // started, we don't get the middle mouse click here.
    if (last_mouse_down_) {
      DCHECK(!drag_widget_);
      observer_.reset();
      gdk_event_free(last_mouse_down_);
      last_mouse_down_ = NULL;
    }
    delegate_->CloseTab(this);
  }

  return TRUE;
}

gboolean TabGtk::OnDragFailed(GtkWidget* widget, GdkDragContext* context,
                              GtkDragResult result) {
  bool canceled = (result == GTK_DRAG_RESULT_USER_CANCELLED);
  EndDrag(canceled);
  return TRUE;
}

gboolean TabGtk::OnDragButtonReleased(GtkWidget* widget,
                                      GdkEventButton* button) {
  // We always get this event when gtk is releasing the grab and ending the
  // drag.  However, if the user ended the drag with space or enter, we don't
  // get a follow up event to tell us the drag has finished (either a
  // drag-failed or a drag-end).  So we post a task to manually end the drag.
  // If GTK+ does send the drag-failed or drag-end event, we cancel the task.
  MessageLoop::current()->PostTask(
      FROM_HERE,
      base::Bind(&TabGtk::EndDrag, drag_end_factory_.GetWeakPtr(), false));
  return TRUE;
}

void TabGtk::OnDragBegin(GtkWidget* widget, GdkDragContext* context) {
  GdkPixbuf* pixbuf = gdk_pixbuf_new(GDK_COLORSPACE_RGB, TRUE, 8, 1, 1);
  gdk_pixbuf_fill(pixbuf, 0);
  gtk_drag_set_icon_pixbuf(context, pixbuf, 0, 0);
  g_object_unref(pixbuf);
}

///////////////////////////////////////////////////////////////////////////////
// TabGtk, MessageLoop::Observer implementation:

void TabGtk::WillProcessEvent(GdkEvent* event) {
  // Nothing to do.
}

void TabGtk::DidProcessEvent(GdkEvent* event) {
  if (!(event->type == GDK_MOTION_NOTIFY || event->type == GDK_LEAVE_NOTIFY ||
        event->type == GDK_ENTER_NOTIFY)) {
    return;
  }

  if (drag_widget_) {
    delegate_->ContinueDrag(NULL);
    return;
  }

  gint old_x = static_cast<gint>(last_mouse_down_->button.x_root);
  gint old_y = static_cast<gint>(last_mouse_down_->button.y_root);
  gdouble new_x;
  gdouble new_y;
  gdk_event_get_root_coords(event, &new_x, &new_y);

  if (gtk_drag_check_threshold(widget(), old_x, old_y,
      static_cast<gint>(new_x), static_cast<gint>(new_y))) {
    StartDragging(gfx::Point(
        static_cast<int>(last_mouse_down_->button.x),
        static_cast<int>(last_mouse_down_->button.y)));
  }
}

///////////////////////////////////////////////////////////////////////////////
// TabGtk, TabRendererGtk overrides:

bool TabGtk::IsActive() const {
  return delegate_->IsTabActive(this);
}

bool TabGtk::IsSelected() const {
  return delegate_->IsTabSelected(this);
}

bool TabGtk::IsVisible() const {
  return gtk_widget_get_visible(event_box_);
}

void TabGtk::SetVisible(bool visible) const {
  gtk_widget_set_visible(event_box_, visible);
}

void TabGtk::CloseButtonClicked() {
  delegate_->CloseTab(this);
}

void TabGtk::UpdateData(WebContents* contents, bool app, bool loading_only) {
  TabRendererGtk::UpdateData(contents, app, loading_only);
  // Cache the title width so we don't recalculate it every time the tab is
  // resized.
  title_width_ = GetTitleWidth(title_font(), GetTitle());
  UpdateTooltipState();
}

void TabGtk::SetBounds(const gfx::Rect& bounds) {
  TabRendererGtk::SetBounds(bounds);

  if (gtk_input_event_box_get_window(GTK_INPUT_EVENT_BOX(event_box_))) {
    gfx::Path mask;
    TabResources::GetHitTestMask(bounds.width(), bounds.height(), false, &mask);
    ui::ScopedRegion region(mask.CreateNativeRegion());
    gdk_window_input_shape_combine_region(
        gtk_input_event_box_get_window(GTK_INPUT_EVENT_BOX(event_box_)),
        region.Get(),
        0, 0);
  }

  UpdateTooltipState();
}

///////////////////////////////////////////////////////////////////////////////
// TabGtk, private:

void TabGtk::ContextMenuClosed() {
  delegate()->StopAllHighlighting();
  menu_controller_.reset();
}

void TabGtk::UpdateTooltipState() {
  // Only show the tooltip if the title is truncated.
  if (title_width_ > title_bounds().width()) {
    gtk_widget_set_tooltip_text(widget(), UTF16ToUTF8(GetTitle()).c_str());
  } else {
    gtk_widget_set_has_tooltip(widget(), FALSE);
  }
}

void TabGtk::CreateDragWidget() {
  DCHECK(!drag_widget_);
  drag_widget_ = gtk_invisible_new();
  g_signal_connect(drag_widget_, "drag-failed",
                   G_CALLBACK(OnDragFailedThunk), this);
  g_signal_connect(drag_widget_, "button-release-event",
                   G_CALLBACK(OnDragButtonReleasedThunk), this);
  g_signal_connect_after(drag_widget_, "drag-begin",
                         G_CALLBACK(OnDragBeginThunk), this);
}

void TabGtk::DestroyDragWidget() {
  if (drag_widget_) {
    gtk_widget_destroy(drag_widget_);
    drag_widget_ = NULL;
  }
}

void TabGtk::StartDragging(gfx::Point drag_offset) {
  // If the drag is processed after the selection change it's possible
  // that the tab has been deselected, in which case we don't want to drag.
  if (!IsSelected())
    return;

  CreateDragWidget();

  GtkTargetList* list = ui::GetTargetListFromCodeMask(ui::CHROME_TAB);
  gtk_drag_begin(drag_widget_, list, GDK_ACTION_MOVE,
                 1,  // Drags are always initiated by the left button.
                 last_mouse_down_);
  // gtk_drag_begin adds a reference to list, so unref it here.
  gtk_target_list_unref(list);
  delegate_->MaybeStartDrag(this, drag_offset);
}

void TabGtk::EndDrag(bool canceled) {
  // Make sure we only run EndDrag once by canceling any tasks that want
  // to call EndDrag.
  drag_end_factory_.InvalidateWeakPtrs();

  // We must let gtk clean up after we handle the drag operation, otherwise
  // there will be outstanding references to the drag widget when we try to
  // destroy it.
  MessageLoop::current()->PostTask(
      FROM_HERE,
      base::Bind(&TabGtk::DestroyDragWidget, destroy_factory_.GetWeakPtr()));

  if (last_mouse_down_) {
    gdk_event_free(last_mouse_down_);
    last_mouse_down_ = NULL;
  }

  // Notify the drag helper that we're done with any potential drag operations.
  // Clean up the drag helper, which is re-created on the next mouse press.
  delegate_->EndDrag(canceled);

  observer_.reset();
}


text:
package androidx.leanback.leanbackshowcase.app.room.di.presenter;

import dagger.MapKey;
import java.lang.annotation.Documented;
import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;

@Documented
@Target(ElementType.METHOD)
@Retention(RetentionPolicy.RUNTIME)
@MapKey
public @interface PresenterSelectorKey {
  Class<?> value();
}


text:
FROM debian:jessie
MAINTAINER fvi@shimizu shimizu.r.ad@m.titech.ac.jp

#basic settings
ENV LANG ja_JP.UTF-8
ENV LANGUAGE ja
ENV LC_ALL C

RUN awk '$1 ~ "^deb" { $3 = $3 "-backports"; print; exit }' /etc/apt/sources.list > /etc/apt/sources.list.d/backports.list

RUN apt-get update && apt-get install -y build-essential emacs24 vim git sudo wget net-tools expect ssh apache2 apt-utils
#libsqlite3-dev

RUN echo "mysql-server-5.5 mysql-server/root_password password admin" | debconf-set-selections && echo "mysql-server-5.5 mysql-server/root_password_again password admin" | debconf-set-selections && apt-get -y install mysql-server-5.5 && apt-get -y install libmysqlclient-dev

RUN sed -i -e "s/\(\[mysqld\]\)/\1\ncharacter-set-server = utf8/g" /etc/mysql/my.cnf && sed -i -e "s/\(\[client\]\)/\1\ndefault-character-set = utf8/g" /etc/mysql/my.cnf && sed -i -e "s/\(\[mysqldump\]\)/\1\ndefault-character-set = utf8/g" /etc/mysql/my.cnf && sed -i -e "s/\(\[mysql\]\)/\1\ndefault-character-set = utf8/g" /etc/mysql/my.cnf && mysqld_safe &

RUN apt-get -y install python2.7 && apt-get -y install python-dev

#install latest python

#RUN  cd /tmp && wget https://www.python.org/ftp/python/2.7.10/Python-2.7.10.tgz -O Python.tgz && tar -xzf Python.tgz
#RUN  cd /tmp/Python-2.7.10 && ./configure &&  make && make install

#install pip and Django and apache_wsgi_mod
RUN  apt-get install -y python-setuptools python-pip libapache2-mod-wsgi && pip install Django==1.8.5 && pip install mysql-python && a2enmod wsgi

#add sysadmin user
RUN useradd sysadmin
RUN expect -c "spawn passwd sysadmin; expect \"New password:\"; send -- \"admin\n\"; expect \" Retype new password:\"; send -- \"admin\n\"; expect \"passwd: all authentication tokens updated successfully.\";" && usermod -aG www-data sysadmin

#download latest webapp source from git

RUN cd /var/www/ && git clone https://github.com/fvi-att/SecLearnApp.git && chown root:www-data -R * && chmod 755 -R *

#ENV PYTHONPATH /usr/local/lib/python27.zip:/usr/local/lib/python2.7:/usr/local/lib/python2.7/plat-linux2:/usr/local/lib/python2.7/lib-tk:/usr/local/lib/python2.7/lib-old:/usr/local/lib/python2.7/lib-dynload:/usr/local/lib/python2.7/site-packages:/usr/local/lib/python2.7/dist-packages

#COPY 000-default.conf /etc/apache2/sites-enabled/

#initilize db
COPY configs/  /tmp/configs/
#COPY init_db.sh /tmp/
RUN cd /tmp/configs/ && cp 000-default.conf /etc/apache2/sites-enabled/ && cp init_db.sh ~/ && cp create_db.sql ~/
#RUN cd /var/www/SecLearnApp/SecLearnApp/ && ./manage.py migrate

#start service
ENTRYPOINT /etc/init.d/mysql start && /etc/init.d/apache2 start && /etc/init.d/ssh start && /bin/bash


text:
package com.cloud.api.command.user.template;

import com.cloud.api.APICommand;
import com.cloud.api.APICommandGroup;
import com.cloud.api.ApiCommandJobType;
import com.cloud.api.ApiConstants;
import com.cloud.api.BaseListTaggedResourcesCmd;
import com.cloud.api.Parameter;
import com.cloud.api.ResponseObject.ResponseView;
import com.cloud.api.response.ListResponse;
import com.cloud.api.response.TemplateResponse;
import com.cloud.api.response.ZoneResponse;
import com.cloud.context.CallContext;
import com.cloud.legacymodel.storage.VirtualMachineTemplate;
import com.cloud.legacymodel.storage.VirtualMachineTemplate.TemplateFilter;
import com.cloud.legacymodel.user.Account;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

@APICommand(name = "listTemplates", group = APICommandGroup.TemplateService, description = "List all public, private, and privileged templates.", responseObject = TemplateResponse.class, entityType =
        {VirtualMachineTemplate.class}, responseView = ResponseView.Restricted,
        requestHasSensitiveInfo = false, responseHasSensitiveInfo = false)
public class ListTemplatesCmd extends BaseListTaggedResourcesCmd {
    public static final Logger s_logger = LoggerFactory.getLogger(ListTemplatesCmd.class.getName());

    private static final String s_name = "listtemplatesresponse";

    /////////////////////////////////////////////////////
    //////////////// API parameters /////////////////////
    /////////////////////////////////////////////////////

    @Parameter(name = ApiConstants.HYPERVISOR, type = CommandType.STRING, description = "the hypervisor for which to restrict the search")
    private String hypervisor;

    @Parameter(name = ApiConstants.ID, type = CommandType.UUID, entityType = TemplateResponse.class, description = "the template ID")
    private Long id;

    @Parameter(name = ApiConstants.NAME, type = CommandType.STRING, description = "the template name")
    private String templateName;

    @Parameter(name = ApiConstants.TEMPLATE_FILTER,
            type = CommandType.STRING,
            required = true,
            description = "possible values are \"featured\", \"self\", \"selfexecutable\",\"sharedexecutable\",\"executable\", and \"community\". "
                    + "* featured : templates that have been marked as featured and public. "
                    + "* self : templates that have been registered or created by the calling user. "
                    + "* selfexecutable : same as self, but only returns templates that can be used to deploy a new VM. "
                    + "* sharedexecutable : templates ready to be deployed that have been granted to the calling user by another user. "
                    + "* executable : templates that are owned by the calling user, or public templates, that can be used to deploy a VM. "
                    + "* community : templates that have been marked as public but not featured. " + "* all : all templates (only usable by admins).")
    private String templateFilter;

    @Parameter(name = ApiConstants.ZONE_ID, type = CommandType.UUID, entityType = ZoneResponse.class, description = "list templates by zoneId")
    private Long zoneId;

    @Parameter(name = ApiConstants.SHOW_REMOVED, type = CommandType.BOOLEAN, description = "show removed templates as well")
    private Boolean showRemoved;

    /////////////////////////////////////////////////////
    /////////////////// Accessors ///////////////////////
    /////////////////////////////////////////////////////

    public String getHypervisor() {
        return hypervisor;
    }

    public Long getId() {
        return id;
    }

    public String getTemplateName() {
        return templateName;
    }

    public Long getZoneId() {
        return zoneId;
    }

    public Boolean getShowRemoved() {
        return (showRemoved != null ? showRemoved : false);
    }

    public boolean listInReadyState() {

        final Account account = CallContext.current().getCallingAccount();
        // It is account specific if account is admin type and domainId and accountName are not null
        final boolean isAccountSpecific = (account == null || _accountService.isAdmin(account.getId())) && (getAccountName() != null) && (getDomainId() != null);
        // Show only those that are downloaded.
        final TemplateFilter templateFilter = TemplateFilter.valueOf(getTemplateFilter());
        final boolean onlyReady =
                (templateFilter == TemplateFilter.featured) || (templateFilter == TemplateFilter.selfexecutable) || (templateFilter == TemplateFilter.sharedexecutable) ||
                        (templateFilter == TemplateFilter.executable && isAccountSpecific) || (templateFilter == TemplateFilter.community);
        return onlyReady;
    }

    public String getTemplateFilter() {
        return templateFilter;
    }

    /////////////////////////////////////////////////////
    /////////////// API Implementation///////////////////
    /////////////////////////////////////////////////////

    @Override
    public ApiCommandJobType getInstanceType() {
        return ApiCommandJobType.Template;
    }

    @Override
    public void execute() {
        final ListResponse<TemplateResponse> response = _queryService.listTemplates(this);
        response.setResponseName(getCommandName());
        setResponseObject(response);
    }

    @Override
    public String getCommandName() {
        return s_name;
    }
}


text:
require 'twilio-ruby'

# Get your Account SID and Auth Token from twilio.com/console
account_sid = 'ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX'
auth_token = 'your_auth_token'
workspace_sid = 'WSXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX'
worker_sid = 'WKXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX'
reservation_sid = 'WRXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX'

client = Twilio::REST::Client.new(account_sid, auth_token)

reservation = client.taskrouter.v1.workspaces(workspace_sid)
                    .workers(worker_sid).reservations(reservation_sid)

reservation.update(instruction: 'dequeue', dequeue_from: '+18001231234')

puts reservation