text:
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
    android:layout_width="match_parent"
    android:layout_height="wrap_content"
    android:background="@color/white"
    android:orientation="vertical">

    <ScrollView
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:background="@color/white">

        <LinearLayout
            android:id="@+id/ll_main"
            android:layout_width="match_parent"
            android:layout_height="wrap_content"
            android:orientation="vertical"
            android:paddingBottom="50dp">

            <com.kzmen.sczxjf.view.MyListView
                android:id="@+id/lv_play_list"
                android:layout_width="match_parent"
                android:layout_height="wrap_content"
                android:divider="@color/transparent"
                android:dividerHeight="0dp" />

            <LinearLayout
                android:id="@+id/ll_xiaojiang"
                android:layout_width="match_parent"
                android:layout_height="wrap_content"
                android:orientation="vertical">

                <TextView
                    android:paddingLeft="@dimen/margin_top10"
                    android:id="@+id/tv_xiaoj"
                    android:layout_width="wrap_content"
                    android:layout_height="wrap_content"
                    android:text="小讲圈"
                    android:textStyle="bold" />

                <com.kzmen.sczxjf.view.MyListView
                    android:id="@+id/lv_xiaojiang_list"
                    android:layout_width="match_parent"
                    android:layout_height="wrap_content"
                    android:divider="@color/transparent"
                    android:dividerHeight="0dp" />
            </LinearLayout>

        </LinearLayout>
    </ScrollView>

    <TextView
        android:background="@color/white"
        android:layout_alignParentBottom="true"
        android:id="@+id/tv_cancle"
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:layout_marginTop="@dimen/margin_top30"
        android:gravity="center"
        android:paddingBottom="10dp"
        android:paddingTop="10dp"
        android:text="取消"
        android:textSize="16sp" />
</RelativeLayout>


text:
GOExtendedUIColor
=================

Extended functionalities of UIColor

Apple has wonderfully implemented all the necessary functionalities in its SDK. Even though as a developer we can ever find some more shortcuts and some extra functionality for our day-to-day programming life.

The UIColor category "UIColor+GOExtension.h" is one of the extensions (written by me) which can save hours of programming and give a way to think in a new direction.

which are...

1. Creating a UIColor object from RGB color values (0 - 255) instead of percentage.

    ```Objective-C
    + (UIColor *)RGBColorWithRed:(NSUInteger)red green:(NSUInteger)green blue:(NSUInteger)blue alpha:(CGFloat)alpha;
    + (UIColor *)RGBColorWithRed:(NSUInteger)red green:(NSUInteger)green blue:(NSUInteger)blue;
    ```
2. UIColor object from hex color string. E.g.  @"#F0F8FF" or @"F0F8FF"

    ```Objective-C
    + (UIColor *)colorWithHexString:(NSString *)hexColorString alpha:(CGFloat)alpha;
    + (UIColor *)colorWithHexString:(NSString *)hexColorString;
    ```
3. Getting RGB values and alpha from UIColor.

    ```Objective-C
    - (CGFloat)redValue;
    - (NSUInteger)RGBRedValue;

    - (CGFloat)greenValue;
    - (NSUInteger)RGBGreenValue;

    - (CGFloat)blueValue;
    - (NSUInteger)RGBBlueValue;

    - (CGFloat)alphaValue;
    ```
4. Finally, creating UIColor from color name, 127 colors, which are defined in [X11](http://en.wikipedia.org/wiki/X11_color_names) and [W3C](http://www.w3.org/TR/SVG/types.html#ColorKeywords).

    ```Objective-C
    //  A

    + (UIColor *)aliceBlueColor;
    + (UIColor *)antiqueWhiteColor;
    + (UIColor *)aquaColor;
    + (UIColor *)aquamarineColor;
    + (UIColor *)azureColor;

    //  B

    + (UIColor *)beigeColor;
    + (UIColor *)bisqueColor;
    //+ (UIColor *)blackColor;
    + (UIColor *)blanchedAlmondColor;
    //+ (UIColor *)blueColor;
    + (UIColor *)blueVioletColor;
    //+ (UIColor *)brownColor;
    + (UIColor *)burlyWoodColor;

    //  C

    + (UIColor *)cadetBlueColor;
    + (UIColor *)chartreuseColor;
    + (UIColor *)chocolateColor;
    + (UIColor *)coralColor;
    + (UIColor *)cornflowerBlueColor;
    + (UIColor *)cornsilkColor;
    + (UIColor *)crimsonColor;
    //+ (UIColor *)cyanColor;

    //  D

    + (UIColor *)darkBlueColor;
    + (UIColor *)darkCyanColor;
    + (UIColor *)darkGoldenRodColor;
    //+ (UIColor *)darkGrayColor;
    + (UIColor *)darkGreenColor;
    + (UIColor *)darkKhakiColor;
    + (UIColor *)darkMagentaColor;
    + (UIColor *)darkOliveGreenColor;
    + (UIColor *)darkOrangeColor;
    + (UIColor *)darkOrchidColor;
    + (UIColor *)darkRedColor;
    + (UIColor *)darkSalmonColor;
    + (UIColor *)darkSeaGreenColor;
    + (UIColor *)darkSlateBlueColor;
    + (UIColor *)darkSlateGrayColor;
    + (UIColor *)darkTurquoiseColor;
    + (UIColor *)darkVioletColor;
    + (UIColor *)deepPinkColor;
    + (UIColor *)deepSkyBlueColor;
    + (UIColor *)dimGrayColor;
    + (UIColor *)dodgerBlueColor;

    //  F

    + (UIColor *)fireBrickColor;
    + (UIColor *)floralWhiteColor;
    + (UIColor *)forestGreenColor;
    + (UIColor *)fuchsiaColor;

    //  G

    + (UIColor *)gainsboroColor;
    + (UIColor *)ghostWhiteColor;
    + (UIColor *)goldColor;
    + (UIColor *)goldenRodColor;
    //+ (UIColor *)grayColor;
    + (UIColor *)greenGOColor;
    + (UIColor *)greenYellowColor;

    //  H

    + (UIColor *)honeyDewColor;
    + (UIColor *)hotPinkColor;

    //  I

    + (UIColor *)indianRedColor;
    + (UIColor *)indigoColor;
    + (UIColor *)ivoryColor;

    //  K

    + (UIColor *)khakiColor;

    //  L

    + (UIColor *)lavenderColor;
    + (UIColor *)lavenderBlushColor;
    + (UIColor *)lawnGreenColor;
    + (UIColor *)lemonChiffonColor;
    + (UIColor *)lightBlueColor;
    + (UIColor *)lightCoralColor;
    + (UIColor *)lightCyanColor;
    + (UIColor *)lightGoldenRodYellowColor;
    //+ (UIColor *)lightGrayColor;
    + (UIColor *)lightGreenColor;
    + (UIColor *)lightPinkColor;
    + (UIColor *)lightSalmonColor;
    + (UIColor *)lightSeaGreenColor;
    + (UIColor *)lightSkyBlueColor;
    + (UIColor *)lightSlateGrayColor;
    + (UIColor *)lightSteelBlueColor;
    + (UIColor *)lightYellowColor;
    + (UIColor *)limeColor;
    + (UIColor *)limeGreenColor;
    + (UIColor *)linenColor;

    //  M

    //+ (UIColor *)magentaColor;
    + (UIColor *)maroonColor;
    + (UIColor *)mediumAquaMarineColor;
    + (UIColor *)mediumBlueColor;
    + (UIColor *)mediumOrchidColor;
    + (UIColor *)mediumPurpleColor;
    + (UIColor *)mediumSeaGreenColor;
    + (UIColor *)mediumSlateBlueColor;
    + (UIColor *)mediumSpringGreenColor;
    + (UIColor *)mediumTurquoiseColor;
    + (UIColor *)mediumVioletRedColor;
    + (UIColor *)midnightBlueColor;
    + (UIColor *)mintCreamColor;
    + (UIColor *)mistyRoseColor;
    + (UIColor *)moccasinColor;

    //  N

    + (UIColor *)navajoWhiteColor;
    + (UIColor *)navyColor;

    //  O

    + (UIColor *)oldLaceColor;
    + (UIColor *)oliveColor;
    + (UIColor *)oliveDrabColor;
    //+ (UIColor *)orangeColor;
    + (UIColor *)orangeRedColor;
    + (UIColor *)orchidColor;

    //  P

    + (UIColor *)paleGoldenRodColor;
    + (UIColor *)paleGreenColor;
    + (UIColor *)paleTurquoiseColor;
    + (UIColor *)paleVioletRedColor;
    + (UIColor *)papayaWhipColor;
    + (UIColor *)peachPuffColor;
    + (UIColor *)peruColor;
    + (UIColor *)pinkColor;
    + (UIColor *)plumColor;
    + (UIColor *)powderBlueColor;
    //+ (UIColor *)purpleColor;

    //  R

    //+ (UIColor *)redColor;
    + (UIColor *)rosyBrownColor;
    + (UIColor *)royalBlueColor;

    //  S

    + (UIColor *)saddleBrownColor;
    + (UIColor *)salmonColor;
    + (UIColor *)sandyBrownColor;
    + (UIColor *)seaGreenColor;
    + (UIColor *)seaShellColor;
    + (UIColor *)siennaColor;
    + (UIColor *)silverColor;
    + (UIColor *)skyBlueColor;
    + (UIColor *)slateBluColor;
    + (UIColor *)slateGrayColor;
    + (UIColor *)snowColor;
    + (UIColor *)springGreenColor;
    + (UIColor *)steelBlueColor;

    //  T

    + (UIColor *)tanColor;
    + (UIColor *)tealColor;
    + (UIColor *)thistleColor;
    + (UIColor *)tomatoColor;
    + (UIColor *)turquoiseColor;

    //  V

    + (UIColor *)violetColor;

    //  W

    + (UIColor *)wheatColor;

    //+ (UIColor *)whiteColor;

    + (UIColor *)whiteSmokeColor;

    //  Y

    //+ (UIColor *)yellowColor;
    + (UIColor *)yellowGreenColor;
    ```

redpajama_set_name: RedPajamaGithub


text:
package com.mailrest.maildal.util;

import org.junit.Assert;
import org.junit.Test;

public class DomainIdTest {

	@Test
	public void testLowerCase() {

		String actual = DomainId.INSTANCE.fromDomainIdn("mailrest.com");

		Assert.assertEquals("mailrest.com", actual);

	}

	@Test
	public void testUpperCase() {

		String actual = DomainId.INSTANCE.fromDomainIdn("mailresT.com");

		Assert.assertEquals("mailrest.com", actual);

	}

	@Test
	public void testIDN() {

		String actual = DomainId.INSTANCE.fromDomainIdn("мейлрест.рф");

		Assert.assertEquals("xn--e1aalic1aii.xn--p1ai", actual);

	}

}


text:
package org.ambraproject.rhino.service.taxonomy.impl;

import org.ambraproject.rhino.model.Article;
import org.ambraproject.rhino.model.ArticleCategoryAssignment;
import org.ambraproject.rhino.model.ArticleCategoryAssignmentFlag;
import org.ambraproject.rhino.model.ArticleRevision;
import org.ambraproject.rhino.model.Category;
import org.ambraproject.rhino.service.impl.AmbraService;
import org.ambraproject.rhino.service.taxonomy.TaxonomyClassificationService;
import org.ambraproject.rhino.service.taxonomy.TaxonomyService;
import org.ambraproject.rhino.service.taxonomy.WeightedTerm;
import org.hibernate.Query;
import org.springframework.beans.factory.annotation.Autowired;
import org.w3c.dom.Document;

import java.io.IOException;
import java.time.LocalDate;
import java.util.Collection;
import java.util.List;
import java.util.Optional;

public class TaxonomyServiceImpl extends AmbraService implements TaxonomyService {

  @Autowired
  private TaxonomyClassificationService taxonomyClassificationService;

  @Override
  public List<WeightedTerm> classifyArticle(Article article, Document articleXml) {
    return taxonomyClassificationService.classifyArticle(article, articleXml);
  }

  @Override
  public List<String> getRawTerms(Document articleXml, Article article, boolean isTextRequired) throws IOException {
    return taxonomyClassificationService.getRawTerms(articleXml, article, isTextRequired);
  }

  @Override
  public void populateCategories(ArticleRevision revision) {
    taxonomyClassificationService.populateCategories(revision);
  }

  @Override
  public Collection<ArticleCategoryAssignment> getAssignmentsForArticle(Article article) {
    return taxonomyClassificationService.getAssignmentsForArticle(article);
  }

  @Override
  public Collection<Category> getArticleCategoriesWithTerm(Article article, String term) {
    return taxonomyClassificationService.getArticleCategoriesWithTerm(article, term);
  }

  private List<ArticleCategoryAssignmentFlag> getArticleCategoryAssignmentFlags(Article article, Category category, Optional<Long> userProfileId) {
    return hibernateTemplate.execute(session -> {
      Query query = userProfileId
          .map(userProfileIdValue -> session.createQuery("" +
              "FROM ArticleCategoryAssignmentFlag " +
              "WHERE article = :article AND category = :category AND userProfileId = :userProfileId")
              .setParameter("userProfileId", userProfileIdValue))
          .orElseGet(() -> session.createQuery("" +
              "FROM ArticleCategoryAssignmentFlag " +
              "WHERE article = :article AND category = :category AND userProfileId IS NULL"));
      query.setParameter("article", article);
      query.setParameter("category", category);
      return (List<ArticleCategoryAssignmentFlag>) query.list();
    });
  }

  @Override
  public void flagArticleCategory(Article article, Category category, Optional<Long> userProfileId) throws IOException {
    if (userProfileId.isPresent()) {
      List<ArticleCategoryAssignmentFlag> flags = getArticleCategoryAssignmentFlags(article, category, userProfileId);
      if (!flags.isEmpty()) {
        // The system already has a flag for this assignment from this user. No need to create a redundant one.
        return;
      }
    }

    ArticleCategoryAssignmentFlag flag = new ArticleCategoryAssignmentFlag();
    flag.setArticle(article);
    flag.setCategory(category);
    flag.setUserProfileId(userProfileId.orElse(null));
    hibernateTemplate.save(flag);
  }

  @Override
  public void deflagArticleCategory(Article article, Category category, Optional<Long> userProfileId) throws IOException {
    List<ArticleCategoryAssignmentFlag> flags = getArticleCategoryAssignmentFlags(article, category, userProfileId);
    //we expect an empty list here if no flags have been added for this category/user. In this case, do nothing.
    // TODO: only allow removal of flags if there is a currently existing flag for that category
    if (!flags.isEmpty()) {
      if (userProfileId.isPresent()) {
        // An individual user deflagged the category. Under normal circumstances, they should have only one flag.
        // In case there are multiple flags for the same user, delete all of them.
        hibernateTemplate.deleteAll(flags);
      } else {
        // An anonymous user deflagged the category, in the same session in which they flagged it.
        // Delete a single anonymous flag, chosen arbitrarily, assuming that this will balance out the flag they created.
        // There is a small security vulnerability here: a user could submit many bogus "deflag" requests
        // and delete everyone else's anonymous flags.
        hibernateTemplate.delete(flags.get(0));
      }
    }
  }

  @Override
  public List<ArticleCategoryAssignmentFlag> getFlagsCreatedOn(LocalDate fromDate, LocalDate toDate) {
    return hibernateTemplate.execute(session -> {
      Query query = session.createQuery("FROM ArticleCategoryAssignmentFlag " +
          "WHERE created >= :fromDate AND created < :toDate");
      query.setParameter("fromDate", java.sql.Date.valueOf(fromDate));
      query.setParameter("toDate", java.sql.Date.valueOf(toDate.plusDays(1)));
      return (List<ArticleCategoryAssignmentFlag>) query.list();
    });
  }
}


text:
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
  <component name="ChangeListManager">
    <list default="true" id="e84574b9-79bc-42aa-aaff-e4aea3c2c436" name="Default" comment="" />
    <ignored path="PHPCMS.iws" />
    <ignored path=".idea/workspace.xml" />
    <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="DaemonCodeAnalyzer">
    <disable_hints />
  </component>
  <component name="ExecutionTargetManager" SELECTED_TARGET="default_target" />
  <component name="FavoritesManager">
    <favorites_list name="PHPCMS" />
  </component>
  <component name="FileEditorManager">
    <leaf>
      <file leaf-file-name="common.css" pinned="false" current-in-tab="false">
        <entry file="file://$PROJECT_DIR$/Public/Static/common.css">
          <provider selected="true" editor-type-id="text-editor">
            <state vertical-scroll-proportion="0.0" vertical-offset="19" max-vertical-offset="988">
              <caret line="1" column="29" selection-start-line="1" selection-start-column="29" selection-end-line="1" selection-end-column="29" />
              <folding />
            </state>
          </provider>
        </entry>
      </file>
      <file leaf-file-name="db.php" pinned="false" current-in-tab="false">
        <entry file="file://$PROJECT_DIR$/Application/Common/Conf/db.php">
          <provider selected="true" editor-type-id="text-editor">
            <state vertical-scroll-proportion="-4.75" vertical-offset="0" max-vertical-offset="703">
              <caret line="7" column="24" selection-start-line="7" selection-start-column="20" selection-end-line="7" selection-end-column="24" />
              <folding />
            </state>
          </provider>
        </entry>
      </file>
      <file leaf-file-name="DatabaseController.class.php" pinned="false" current-in-tab="false">
        <entry file="file://$PROJECT_DIR$/Application/Admin/Controller/DatabaseController.class.php">
          <provider selected="true" editor-type-id="text-editor">
            <state vertical-scroll-proportion="-15.607142" vertical-offset="608" max-vertical-offset="5263">
              <caret line="61" column="0" selection-start-line="61" selection-start-column="0" selection-end-line="61" selection-end-column="0" />
              <folding />
            </state>
          </provider>
        </entry>
      </file>
      <file leaf-file-name="zh-cn.php" pinned="false" current-in-tab="false">
        <entry file="file://$PROJECT_DIR$/Application/Admin/lang/zh-cn.php">
          <provider selected="true" editor-type-id="text-editor">
            <state vertical-scroll-proportion="0.0" vertical-offset="513" max-vertical-offset="1235">
              <caret line="36" column="0" selection-start-line="36" selection-start-column="0" selection-end-line="36" selection-end-column="0" />
              <folding />
            </state>
          </provider>
        </entry>
      </file>
      <file leaf-file-name="database.php" pinned="false" current-in-tab="false">
        <entry file="file://$PROJECT_DIR$/Application/Admin/lang/zh-cn/database.php">
          <provider selected="true" editor-type-id="text-editor">
            <state vertical-scroll-proportion="-4.071429" vertical-offset="0" max-vertical-offset="646">
              <caret line="6" column="3" selection-start-line="6" selection-start-column="3" selection-end-line="6" selection-end-column="3" />
              <folding>
                <element signature="e#6#82#0#PHP" expanded="true" />
              </folding>
            </state>
          </provider>
        </entry>
      </file>
      <file leaf-file-name="index.html" pinned="false" current-in-tab="true">
        <entry file="file://$PROJECT_DIR$/Application/Admin/View/Database/index.html">
          <provider selected="true" editor-type-id="text-editor">
            <state vertical-scroll-proportion="3.7663717" vertical-offset="0" max-vertical-offset="4750">
              <caret line="112" column="18" selection-start-line="112" selection-start-column="18" selection-end-line="112" selection-end-column="18" />
              <folding>
                <element signature="n#style#0;n#th#0;n#tr#0;n#thead#0;n#table#0;n#div#0;n#div#3;n#div#0;n#div#0;n#div#0;n#!!top" expanded="true" />
                <element signature="n#style#0;n#th#1;n#tr#0;n#thead#0;n#table#0;n#div#0;n#div#3;n#div#0;n#div#0;n#div#0;n#!!top" expanded="true" />
                <element signature="n#style#0;n#th#2;n#tr#0;n#thead#0;n#table#0;n#div#0;n#div#3;n#div#0;n#div#0;n#div#0;n#!!top" expanded="true" />
                <element signature="n#style#0;n#th#3;n#tr#0;n#thead#0;n#table#0;n#div#0;n#div#3;n#div#0;n#div#0;n#div#0;n#!!top" expanded="true" />
                <element signature="n#style#0;n#th#4;n#tr#0;n#thead#0;n#table#0;n#div#0;n#div#3;n#div#0;n#div#0;n#div#0;n#!!top" expanded="true" />
                <element signature="n#style#0;n#th#5;n#tr#0;n#thead#0;n#table#0;n#div#0;n#div#3;n#div#0;n#div#0;n#div#0;n#!!top" expanded="true" />
                <element signature="n#style#0;n#th#6;n#tr#0;n#thead#0;n#table#0;n#div#0;n#div#3;n#div#0;n#div#0;n#div#0;n#!!top" expanded="true" />
                <element signature="n#style#0;n#th#7;n#tr#0;n#thead#0;n#table#0;n#div#0;n#div#3;n#div#0;n#div#0;n#div#0;n#!!top" expanded="true" />
              </folding>
            </state>
          </provider>
        </entry>
      </file>
    </leaf>
  </component>
  <component name="IdeDocumentHistory">
    <option name="CHANGED_PATHS">
      <list>
        <option value="$PROJECT_DIR$/Application/Common/Conf/tags.php" />
        <option value="$PROJECT_DIR$/Public/Admin/media/js/login.js" />
        <option value="$PROJECT_DIR$/Application/Admin/lang/zh-tw/index.php" />
        <option value="$PROJECT_DIR$/Public/Admin/media/js/app.js" />
        <option value="$PROJECT_DIR$/Public/js/jquery.han2pin.js" />
        <option value="$PROJECT_DIR$/Public/Admin/media/js/form-validation.js" />
        <option value="$PROJECT_DIR$/Application/Admin/View/Index/index.html" />
        <option value="$PROJECT_DIR$/Application/Admin/Controller/IndexController.class.php" />
        <option value="$PROJECT_DIR$/Public/Admin/media/js/jquery.dataTables.js" />
        <option value="$PROJECT_DIR$/Public/Admin/media/js/table-managed.js" />
        <option value="$PROJECT_DIR$/Application/Admin/Conf/config.php" />
        <option value="$PROJECT_DIR$/ThinkPHP/Library/Think/Upload.class.php" />
        <option value="$PROJECT_DIR$/Application/Admin/Controller/LoginController.class.php" />
        <option value="$PROJECT_DIR$/Application/Admin/Controller/PublicController.class.php" />
        <option value="$PROJECT_DIR$/Application/Admin/View/Login/index.html" />
        <option value="$PROJECT_DIR$/Application/Admin/Controller/ControlController.class.php" />
        <option value="$PROJECT_DIR$/Application/Admin/Controller/ColumnController.class.php" />
        <option value="$PROJECT_DIR$/Application/Admin/View/Common/header.html" />
        <option value="$PROJECT_DIR$/Application/Admin/lang/zh-cn/zh-cn.php" />
        <option value="$PROJECT_DIR$/Application/Admin/View/Control/edit.html" />
        <option value="$PROJECT_DIR$/Application/Admin/lang/zh-cn/control.php" />
        <option value="$PROJECT_DIR$/.settings/org.eclipse.php.core.prefs" />
        <option value="$PROJECT_DIR$/index.php" />
        <option value="$PROJECT_DIR$/Application/Admin/View/Column/index.html" />
        <option value="$PROJECT_DIR$/Application/Admin/lang/zh-cn/column.php" />
        <option value="$PROJECT_DIR$/Application/Admin/lang/zh-cn.php" />
        <option value="$PROJECT_DIR$/Application/Admin/View/Column/edit.html" />
        <option value="$PROJECT_DIR$/Application/Admin/View/Column/add.html" />
        <option value="$PROJECT_DIR$/Application/Admin/View/Control/add.html" />
        <option value="$PROJECT_DIR$/Application/Admin/View/Control/index.html" />
        <option value="$PROJECT_DIR$/Application/Common/Common/Function.php" />
        <option value="$PROJECT_DIR$/Application/Common/Conf/config.php" />
        <option value="$PROJECT_DIR$/Application/Common/Conf/admin.php" />
        <option value="$PROJECT_DIR$/Application/Admin/View/Config/user.html" />
        <option value="$PROJECT_DIR$/Application/Admin/View/Config/article.html" />
        <option value="$PROJECT_DIR$/Application/Admin/View/Config/basic.html" />
        <option value="$PROJECT_DIR$/Application/Admin/lang/zh-cn/config.php" />
        <option value="$PROJECT_DIR$/Application/Admin/Controller/ConfigController.class.php" />
        <option value="$PROJECT_DIR$/Application/Admin/View/Config/system.html" />
        <option value="$PROJECT_DIR$/Application/Admin/Controller/Database.php" />
        <option value="$PROJECT_DIR$/Application/Common/Conf/db.php" />
        <option value="$PROJECT_DIR$/Application/Admin/View/Database/import.html" />
        <option value="$PROJECT_DIR$/Application/Admin/View/Database/export.html" />
        <option value="$PROJECT_DIR$/Application/Admin/Controller/BaseController.class.php" />
        <option value="$PROJECT_DIR$/Application/Admin/View/Common/footer.html" />
        <option value="$PROJECT_DIR$/Application/Admin/View/Common/nav.html" />
        <option value="$PROJECT_DIR$/Public/Static/common.css" />
        <option value="$PROJECT_DIR$/Application/Admin/lang/zh-cn/database.php" />
        <option value="$PROJECT_DIR$/Application/Admin/Controller/DatabaseController.class.php" />
        <option value="$PROJECT_DIR$/Application/Admin/View/Database/index.html" />
        <option value="$PROJECT_DIR$/ThinkPHP/Library/COM/Page.class.php" />
      </list>
    </option>
  </component>
  <component name="JsGulpfileManager">
    <detection-done>true</detection-done>
  </component>
  <component name="PhpWorkspaceProjectConfiguration" backward_compatibility_performed="true" />
  <component name="ProjectFrameBounds">
    <option name="x" value="-8" />
    <option name="y" value="-8" />
    <option name="width" value="1382" />
    <option name="height" value="744" />
  </component>
  <component name="ProjectLevelVcsManager" settingsEditedManually="false">
    <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="ProjectPane">
        <subPane>
          <PATH>
            <PATH_ELEMENT>
              <option name="myItemId" value="PHPCMS" />
              <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.ProjectViewProjectNode" />
            </PATH_ELEMENT>
          </PATH>
          <PATH>
            <PATH_ELEMENT>
              <option name="myItemId" value="PHPCMS" />
              <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.ProjectViewProjectNode" />
            </PATH_ELEMENT>
            <PATH_ELEMENT>
              <option name="myItemId" value="phpcms" />
              <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
            </PATH_ELEMENT>
          </PATH>
          <PATH>
            <PATH_ELEMENT>
              <option name="myItemId" value="PHPCMS" />
              <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.ProjectViewProjectNode" />
            </PATH_ELEMENT>
            <PATH_ELEMENT>
              <option name="myItemId" value="phpcms" />
              <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
            </PATH_ELEMENT>
            <PATH_ELEMENT>
              <option name="myItemId" value="Application" />
              <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
            </PATH_ELEMENT>
          </PATH>
        </subPane>
      </pane>
      <pane id="Scope" />
    </panes>
  </component>
  <component name="PropertiesComponent">
    <property name="last_opened_file_path" value="$PROJECT_DIR$" />
    <property name="WebServerToolWindowFactoryState" value="false" />
    <property name="DefaultHtmlFileTemplate" value="Html5" />
    <property name="options.lastSelected" value="preferences.lookFeel" />
    <property name="options.splitter.main.proportions" value="0.3" />
    <property name="options.splitter.details.proportions" value="0.2" />
    <property name="FullScreen" value="false" />
  </component>
  <component name="RecentsManager">
    <key name="CopyFile.RECENT_KEYS">
      <recent name="G:\phpStudy\www\phpcms\Application\Admin\View\Database" />
      <recent name="D:\wamp\www\phpcms\Application\Admin\Controller" />
      <recent name="D:\wamp\www\PHPCMS\Application\Admin\Controller" />
    </key>
    <key name="MoveFile.RECENT_KEYS">
      <recent name="G:\phpStudy\www\phpcms\Application\Admin\lang" />
      <recent name="D:\wamp\www\phpcms\Public\Admin\scripts" />
    </key>
  </component>
  <component name="RunManager">
    <configuration default="true" type="PHPUnitRunConfigurationType" factoryName="PHPUnit">
      <TestRunner />
      <method />
    </configuration>
    <configuration default="true" type="PhpLocalRunConfigurationType" factoryName="PHP Console">
      <method />
    </configuration>
    <configuration default="true" type="JavascriptDebugType" factoryName="JavaScript Debug">
      <method />
    </configuration>
    <configuration default="true" type="PhpBehatConfigurationType" factoryName="Behat">
      <BehatRunner />
      <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="true" type="PhpUnitRemoteRunConfigurationType" factoryName="PHPUnit on Server">
      <method />
    </configuration>
    <list size="0" />
  </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="e84574b9-79bc-42aa-aaff-e4aea3c2c436" name="Default" comment="" />
      <created>1432267205909</created>
      <option name="number" value="Default" />
      <updated>1432267205909</updated>
    </task>
    <servers />
  </component>
  <component name="ToolWindowManager">
    <frame x="-8" y="-8" width="1382" height="744" extended-state="0" />
    <editor active="true" />
    <layout>
      <window_info id="Changes" 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="Terminal" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.33" sideWeight="0.5" order="11" 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="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="Application Servers" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.33" sideWeight="0.5" order="10" 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.18448023" sideWeight="0.5" order="0" side_tool="false" content_ui="combo" />
      <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="Event Log" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.32913387" sideWeight="0.5" order="8" side_tool="true" 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="9" 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="Find" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.32913387" 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="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="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="Run" active="false" anchor="bottom" 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="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="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" />
    </layout>
  </component>
  <component name="Vcs.Log.UiProperties">
    <option name="RECENTLY_FILTERED_USER_GROUPS">
      <collection />
    </option>
    <option name="RECENTLY_FILTERED_BRANCH_GROUPS">
      <collection />
    </option>
  </component>
  <component name="VcsContentAnnotationSettings">
    <option name="myLimit" value="2678400000" />
  </component>
  <component name="VcsManagerConfiguration">
    <option name="myTodoPanelSettings">
      <TodoPanelSettings />
    </option>
  </component>
  <component name="XDebuggerManager">
    <breakpoint-manager>
      <option name="time" value="2" />
    </breakpoint-manager>
    <watches-manager />
  </component>
  <component name="editorHistoryManager">
    <entry file="file://$PROJECT_DIR$/Application/Admin/lang/zh-cn.php">
      <provider selected="true" editor-type-id="text-editor">
        <state vertical-scroll-proportion="0.0" vertical-offset="513" max-vertical-offset="1235">
          <caret line="36" column="0" selection-start-line="36" selection-start-column="0" selection-end-line="36" selection-end-column="0" />
          <folding />
        </state>
      </provider>
    </entry>
    <entry file="file://$PROJECT_DIR$/Application/Admin/lang/zh-cn/database.php">
      <provider selected="true" editor-type-id="text-editor">
        <state vertical-scroll-proportion="0.0" vertical-offset="11" max-vertical-offset="646">
          <caret line="22" column="21" selection-start-line="22" selection-start-column="5" selection-end-line="22" selection-end-column="21" />
          <folding>
            <element signature="e#6#82#0#PHP" expanded="true" />
          </folding>
        </state>
      </provider>
    </entry>
    <entry file="file://$PROJECT_DIR$/Application/Admin/View/Database/index.html">
      <provider selected="true" editor-type-id="text-editor">
        <state vertical-scroll-proportion="0.0" vertical-offset="1848" max-vertical-offset="4750">
          <caret line="182" column="15" selection-start-line="182" selection-start-column="15" selection-end-line="182" selection-end-column="15" />
          <folding>
            <element signature="n#style#0;n#th#0;n#tr#0;n#thead#0;n#table#0;n#div#0;n#div#3;n#div#0;n#div#0;n#div#0;n#!!top" expanded="true" />
            <element signature="n#style#0;n#th#1;n#tr#0;n#thead#0;n#table#0;n#div#0;n#div#3;n#div#0;n#div#0;n#div#0;n#!!top" expanded="true" />
            <element signature="n#style#0;n#th#2;n#tr#0;n#thead#0;n#table#0;n#div#0;n#div#3;n#div#0;n#div#0;n#div#0;n#!!top" expanded="true" />
            <element signature="n#style#0;n#th#3;n#tr#0;n#thead#0;n#table#0;n#div#0;n#div#3;n#div#0;n#div#0;n#div#0;n#!!top" expanded="true" />
            <element signature="n#style#0;n#th#4;n#tr#0;n#thead#0;n#table#0;n#div#0;n#div#3;n#div#0;n#div#0;n#div#0;n#!!top" expanded="true" />
            <element signature="n#style#0;n#th#5;n#tr#0;n#thead#0;n#table#0;n#div#0;n#div#3;n#div#0;n#div#0;n#div#0;n#!!top" expanded="true" />
            <element signature="n#style#0;n#th#6;n#tr#0;n#thead#0;n#table#0;n#div#0;n#div#3;n#div#0;n#div#0;n#div#0;n#!!top" expanded="true" />
            <element signature="n#style#0;n#th#7;n#tr#0;n#thead#0;n#table#0;n#div#0;n#div#3;n#div#0;n#div#0;n#div#0;n#!!top" expanded="true" />
          </folding>
        </state>
      </provider>
    </entry>
    <entry file="file://$PROJECT_DIR$/Public/Static/common.css">
      <provider selected="true" editor-type-id="text-editor">
        <state vertical-scroll-proportion="0.0" vertical-offset="19" max-vertical-offset="988">
          <caret line="1" column="29" selection-start-line="1" selection-start-column="29" selection-end-line="1" selection-end-column="29" />
          <folding />
        </state>
      </provider>
    </entry>
    <entry file="file://$PROJECT_DIR$/Application/Common/Conf/db.php">
      <provider selected="true" editor-type-id="text-editor">
        <state vertical-scroll-proportion="0.0" vertical-offset="228" max-vertical-offset="703">
          <caret line="12" column="4" selection-start-line="12" selection-start-column="4" selection-end-line="12" selection-end-column="4" />
          <folding />
        </state>
      </provider>
    </entry>
    <entry file="file://$PROJECT_DIR$/Application/Admin/Controller/DatabaseController.class.php">
      <provider selected="true" editor-type-id="text-editor">
        <state vertical-scroll-proportion="0.0" vertical-offset="0" max-vertical-offset="6688">
          <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$/Application/Admin/lang/zh-cn.php">
      <provider selected="true" editor-type-id="text-editor">
        <state vertical-scroll-proportion="0.0" vertical-offset="513" max-vertical-offset="1235">
          <caret line="36" column="0" selection-start-line="36" selection-start-column="0" selection-end-line="36" selection-end-column="0" />
          <folding />
        </state>
      </provider>
    </entry>
    <entry file="file://$PROJECT_DIR$/Application/Admin/lang/zh-cn/database.php">
      <provider selected="true" editor-type-id="text-editor">
        <state vertical-scroll-proportion="0.0" vertical-offset="11" max-vertical-offset="646">
          <caret line="22" column="21" selection-start-line="22" selection-start-column="5" selection-end-line="22" selection-end-column="21" />
          <folding>
            <element signature="e#6#82#0#PHP" expanded="true" />
          </folding>
        </state>
      </provider>
    </entry>
    <entry file="file://$PROJECT_DIR$/Application/Admin/View/Database/index.html">
      <provider selected="true" editor-type-id="text-editor">
        <state vertical-scroll-proportion="0.0" vertical-offset="2874" max-vertical-offset="4750">
          <caret line="162" column="27" selection-start-line="162" selection-start-column="27" selection-end-line="162" selection-end-column="27" />
          <folding>
            <element signature="n#style#0;n#th#0;n#tr#0;n#thead#0;n#table#0;n#div#0;n#div#3;n#div#0;n#div#0;n#div#0;n#!!top" expanded="true" />
            <element signature="n#style#0;n#th#1;n#tr#0;n#thead#0;n#table#0;n#div#0;n#div#3;n#div#0;n#div#0;n#div#0;n#!!top" expanded="true" />
            <element signature="n#style#0;n#th#2;n#tr#0;n#thead#0;n#table#0;n#div#0;n#div#3;n#div#0;n#div#0;n#div#0;n#!!top" expanded="true" />
            <element signature="n#style#0;n#th#3;n#tr#0;n#thead#0;n#table#0;n#div#0;n#div#3;n#div#0;n#div#0;n#div#0;n#!!top" expanded="true" />
            <element signature="n#style#0;n#th#4;n#tr#0;n#thead#0;n#table#0;n#div#0;n#div#3;n#div#0;n#div#0;n#div#0;n#!!top" expanded="true" />
            <element signature="n#style#0;n#th#5;n#tr#0;n#thead#0;n#table#0;n#div#0;n#div#3;n#div#0;n#div#0;n#div#0;n#!!top" expanded="true" />
            <element signature="n#style#0;n#th#6;n#tr#0;n#thead#0;n#table#0;n#div#0;n#div#3;n#div#0;n#div#0;n#div#0;n#!!top" expanded="true" />
            <element signature="n#style#0;n#th#7;n#tr#0;n#thead#0;n#table#0;n#div#0;n#div#3;n#div#0;n#div#0;n#div#0;n#!!top" expanded="true" />
          </folding>
        </state>
      </provider>
    </entry>
    <entry file="file://$PROJECT_DIR$/Public/Static/common.css">
      <provider selected="true" editor-type-id="text-editor">
        <state vertical-scroll-proportion="0.0" vertical-offset="19" max-vertical-offset="988">
          <caret line="1" column="29" selection-start-line="1" selection-start-column="29" selection-end-line="1" selection-end-column="29" />
          <folding />
        </state>
      </provider>
    </entry>
    <entry file="file://$PROJECT_DIR$/Application/Common/Conf/db.php">
      <provider selected="true" editor-type-id="text-editor">
        <state vertical-scroll-proportion="0.0" vertical-offset="228" max-vertical-offset="703">
          <caret line="12" column="4" selection-start-line="12" selection-start-column="4" selection-end-line="12" selection-end-column="4" />
          <folding />
        </state>
      </provider>
    </entry>
    <entry file="file://$PROJECT_DIR$/Application/Admin/Controller/DatabaseController.class.php">
      <provider selected="true" editor-type-id="text-editor">
        <state vertical-scroll-proportion="0.0" vertical-offset="0" max-vertical-offset="6688">
          <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$/Application/Admin/lang/zh-cn.php">
      <provider selected="true" editor-type-id="text-editor">
        <state vertical-scroll-proportion="0.0" vertical-offset="513" max-vertical-offset="1235">
          <caret line="45" column="9" selection-start-line="45" selection-start-column="5" selection-end-line="45" selection-end-column="9" />
          <folding />
        </state>
      </provider>
    </entry>
    <entry file="file://$PROJECT_DIR$/Application/Admin/lang/zh-cn/database.php">
      <provider selected="true" editor-type-id="text-editor">
        <state vertical-scroll-proportion="0.0" vertical-offset="11" max-vertical-offset="646">
          <caret line="22" column="21" selection-start-line="22" selection-start-column="5" selection-end-line="22" selection-end-column="21" />
          <folding>
            <element signature="e#6#82#0#PHP" expanded="true" />
          </folding>
        </state>
      </provider>
    </entry>
    <entry file="file://$PROJECT_DIR$/Application/Admin/View/Database/index.html">
      <provider selected="true" editor-type-id="text-editor">
        <state vertical-scroll-proportion="0.0" vertical-offset="3216" max-vertical-offset="4750">
          <caret line="191" column="52" selection-start-line="191" selection-start-column="52" selection-end-line="191" selection-end-column="52" />
          <folding>
            <element signature="n#style#0;n#th#0;n#tr#0;n#thead#0;n#table#0;n#div#0;n#div#3;n#div#0;n#div#0;n#div#0;n#!!top" expanded="true" />
            <element signature="n#style#0;n#th#1;n#tr#0;n#thead#0;n#table#0;n#div#0;n#div#3;n#div#0;n#div#0;n#div#0;n#!!top" expanded="true" />
            <element signature="n#style#0;n#th#2;n#tr#0;n#thead#0;n#table#0;n#div#0;n#div#3;n#div#0;n#div#0;n#div#0;n#!!top" expanded="true" />
            <element signature="n#style#0;n#th#3;n#tr#0;n#thead#0;n#table#0;n#div#0;n#div#3;n#div#0;n#div#0;n#div#0;n#!!top" expanded="true" />
            <element signature="n#style#0;n#th#4;n#tr#0;n#thead#0;n#table#0;n#div#0;n#div#3;n#div#0;n#div#0;n#div#0;n#!!top" expanded="true" />
            <element signature="n#style#0;n#th#5;n#tr#0;n#thead#0;n#table#0;n#div#0;n#div#3;n#div#0;n#div#0;n#div#0;n#!!top" expanded="true" />
            <element signature="n#style#0;n#th#6;n#tr#0;n#thead#0;n#table#0;n#div#0;n#div#3;n#div#0;n#div#0;n#div#0;n#!!top" expanded="true" />
            <element signature="n#style#0;n#th#7;n#tr#0;n#thead#0;n#table#0;n#div#0;n#div#3;n#div#0;n#div#0;n#div#0;n#!!top" expanded="true" />
          </folding>
        </state>
      </provider>
    </entry>
    <entry file="file://$PROJECT_DIR$/Application/Common/Conf/db.php">
      <provider selected="true" editor-type-id="text-editor">
        <state vertical-scroll-proportion="0.0" vertical-offset="228" max-vertical-offset="703">
          <caret line="12" column="4" selection-start-line="12" selection-start-column="4" selection-end-line="12" selection-end-column="4" />
          <folding />
        </state>
      </provider>
    </entry>
    <entry file="file://$PROJECT_DIR$/Application/Admin/Controller/DatabaseController.class.php">
      <provider selected="true" editor-type-id="text-editor">
        <state vertical-scroll-proportion="0.0" vertical-offset="1406" max-vertical-offset="5377">
          <caret line="111" column="28" selection-start-line="111" selection-start-column="28" selection-end-line="111" selection-end-column="28" />
          <folding />
        </state>
      </provider>
    </entry>
    <entry file="file://$PROJECT_DIR$/Application/Admin/lang/zh-cn/database.php">
      <provider selected="true" editor-type-id="text-editor">
        <state vertical-scroll-proportion="0.0" vertical-offset="228" max-vertical-offset="532">
          <caret line="12" column="18" selection-start-line="12" selection-start-column="11" selection-end-line="12" selection-end-column="18" />
          <folding>
            <element signature="e#6#82#0#PHP" expanded="true" />
          </folding>
        </state>
      </provider>
    </entry>
    <entry file="file://$PROJECT_DIR$/Application/Admin/View/Database/index.html">
      <provider selected="true" editor-type-id="text-editor">
        <state vertical-scroll-proportion="0.0" vertical-offset="0" max-vertical-offset="4218">
          <caret line="0" column="0" selection-start-line="0" selection-start-column="0" selection-end-line="0" selection-end-column="0" />
          <folding>
            <element signature="n#style#0;n#th#0;n#tr#0;n#thead#0;n#table#0;n#div#0;n#div#3;n#div#0;n#div#0;n#div#0;n#!!top" expanded="true" />
            <element signature="n#style#0;n#th#1;n#tr#0;n#thead#0;n#table#0;n#div#0;n#div#3;n#div#0;n#div#0;n#div#0;n#!!top" expanded="true" />
            <element signature="n#style#0;n#th#2;n#tr#0;n#thead#0;n#table#0;n#div#0;n#div#3;n#div#0;n#div#0;n#div#0;n#!!top" expanded="true" />
            <element signature="n#style#0;n#th#3;n#tr#0;n#thead#0;n#table#0;n#div#0;n#div#3;n#div#0;n#div#0;n#div#0;n#!!top" expanded="true" />
            <element signature="n#style#0;n#th#4;n#tr#0;n#thead#0;n#table#0;n#div#0;n#div#3;n#div#0;n#div#0;n#div#0;n#!!top" expanded="true" />
            <element signature="n#style#0;n#th#5;n#tr#0;n#thead#0;n#table#0;n#div#0;n#div#3;n#div#0;n#div#0;n#div#0;n#!!top" expanded="true" />
            <element signature="n#style#0;n#th#6;n#tr#0;n#thead#0;n#table#0;n#div#0;n#div#3;n#div#0;n#div#0;n#div#0;n#!!top" expanded="true" />
            <element signature="n#style#0;n#th#7;n#tr#0;n#thead#0;n#table#0;n#div#0;n#div#3;n#div#0;n#div#0;n#div#0;n#!!top" expanded="true" />
          </folding>
        </state>
      </provider>
    </entry>
    <entry file="file://$PROJECT_DIR$/Public/Static/common.css">
      <provider selected="true" editor-type-id="text-editor">
        <state vertical-scroll-proportion="0.0" vertical-offset="722" max-vertical-offset="969">
          <caret line="38" column="0" selection-start-line="38" selection-start-column="0" selection-end-line="38" selection-end-column="0" />
          <folding />
        </state>
      </provider>
    </entry>
    <entry file="file://$PROJECT_DIR$/Application/Common/Conf/db.php">
      <provider selected="true" editor-type-id="text-editor">
        <state vertical-scroll-proportion="0.0" vertical-offset="228" max-vertical-offset="703">
          <caret line="12" column="4" selection-start-line="12" selection-start-column="4" selection-end-line="12" selection-end-column="4" />
          <folding />
        </state>
      </provider>
    </entry>
    <entry file="file://$PROJECT_DIR$/Application/Admin/Controller/DatabaseController.class.php">
      <provider selected="true" editor-type-id="text-editor">
        <state vertical-scroll-proportion="0.0" vertical-offset="0" max-vertical-offset="5643">
          <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$/Application/Admin/View/Database/export.html">
      <provider selected="true" editor-type-id="text-editor">
        <state vertical-scroll-proportion="0.0" vertical-offset="4590" max-vertical-offset="5244">
          <caret line="270" column="31" selection-start-line="270" selection-start-column="31" selection-end-line="270" selection-end-column="31" />
        </state>
      </provider>
    </entry>
    <entry file="file://$PROJECT_DIR$/Application/Admin/View/Database/index.html">
      <provider selected="true" editor-type-id="text-editor">
        <state vertical-scroll-proportion="0.0" vertical-offset="57" max-vertical-offset="5244">
          <caret line="0" column="0" selection-start-line="0" selection-start-column="0" selection-end-line="0" selection-end-column="0" />
          <folding>
            <element signature="n#style#0;n#th#0;n#tr#0;n#thead#0;n#table#0;n#div#0;n#div#3;n#div#0;n#div#0;n#div#0;n#!!top" expanded="true" />
            <element signature="n#style#0;n#th#1;n#tr#0;n#thead#0;n#table#0;n#div#0;n#div#3;n#div#0;n#div#0;n#div#0;n#!!top" expanded="true" />
            <element signature="n#style#0;n#th#2;n#tr#0;n#thead#0;n#table#0;n#div#0;n#div#3;n#div#0;n#div#0;n#div#0;n#!!top" expanded="true" />
            <element signature="n#style#0;n#th#3;n#tr#0;n#thead#0;n#table#0;n#div#0;n#div#3;n#div#0;n#div#0;n#div#0;n#!!top" expanded="true" />
            <element signature="n#style#0;n#th#4;n#tr#0;n#thead#0;n#table#0;n#div#0;n#div#3;n#div#0;n#div#0;n#div#0;n#!!top" expanded="true" />
            <element signature="n#style#0;n#th#5;n#tr#0;n#thead#0;n#table#0;n#div#0;n#div#3;n#div#0;n#div#0;n#div#0;n#!!top" expanded="true" />
            <element signature="n#style#0;n#th#6;n#tr#0;n#thead#0;n#table#0;n#div#0;n#div#3;n#div#0;n#div#0;n#div#0;n#!!top" expanded="true" />
            <element signature="n#style#0;n#th#7;n#tr#0;n#thead#0;n#table#0;n#div#0;n#div#3;n#div#0;n#div#0;n#div#0;n#!!top" expanded="true" />
          </folding>
        </state>
      </provider>
    </entry>
    <entry file="file://$PROJECT_DIR$/Application/Admin/View/Database/import.html">
      <provider selected="true" editor-type-id="text-editor">
        <state vertical-scroll-proportion="0.0" vertical-offset="171" max-vertical-offset="285">
          <caret line="9" column="7" selection-start-line="9" selection-start-column="7" selection-end-line="9" selection-end-column="7" />
        </state>
      </provider>
    </entry>
    <entry file="file://$PROJECT_DIR$/Application/Common/Conf/admin.php">
      <provider selected="true" editor-type-id="text-editor">
        <state vertical-scroll-proportion="0.0" vertical-offset="0" max-vertical-offset="114">
          <caret line="0" column="164" selection-start-line="0" selection-start-column="153" selection-end-line="0" selection-end-column="164" />
        </state>
      </provider>
    </entry>
    <entry file="jar://$APPLICATION_HOME_DIR$/lib/phpstorm.jar!/resources/html5-schema/html5/web-forms.rnc">
      <provider selected="true" editor-type-id="text-editor">
        <state vertical-scroll-proportion="0.33297062" vertical-offset="511" max-vertical-offset="11590">
          <caret line="43" column="18" selection-start-line="43" selection-start-column="18" selection-end-line="43" selection-end-column="18" />
        </state>
      </provider>
    </entry>
    <entry file="jar://$APPLICATION_HOME_DIR$/plugins/php/lib/php.jar!/com/jetbrains/php/lang/psi/stubs/data/_superglobals.php">
      <provider selected="true" editor-type-id="text-editor">
        <state vertical-scroll-proportion="0.7110727" vertical-offset="1812" max-vertical-offset="4408">
          <caret line="117" column="3" selection-start-line="117" selection-start-column="1" selection-end-line="117" selection-end-column="3" />
        </state>
      </provider>
    </entry>
    <entry file="jar://$APPLICATION_HOME_DIR$/plugins/php/lib/php.jar!/com/jetbrains/php/lang/psi/stubs/data/SPL_c1.php">
      <provider selected="true" editor-type-id="text-editor">
        <state vertical-scroll-proportion="0.0460177" vertical-offset="8068" max-vertical-offset="43111">
          <caret line="426" column="15" selection-start-line="426" selection-start-column="15" selection-end-line="426" selection-end-column="15" />
        </state>
      </provider>
    </entry>
    <entry file="file://$PROJECT_DIR$/Application/Common/Conf/admin.php">
      <provider selected="true" editor-type-id="text-editor">
        <state vertical-scroll-proportion="-0.0" vertical-offset="0" max-vertical-offset="114">
          <caret line="0" column="164" selection-start-line="0" selection-start-column="153" selection-end-line="0" selection-end-column="164" />
        </state>
      </provider>
    </entry>
    <entry file="file://$PROJECT_DIR$/Application/Admin/View/Database/export.html">
      <provider selected="true" editor-type-id="text-editor">
        <state vertical-scroll-proportion="0.9557522" vertical-offset="4590" max-vertical-offset="5244">
          <caret line="270" column="31" selection-start-line="270" selection-start-column="31" selection-end-line="270" selection-end-column="31" />
        </state>
      </provider>
    </entry>
    <entry file="file://$PROJECT_DIR$/Application/Admin/View/Column/index.html">
      <provider selected="true" editor-type-id="text-editor">
        <state vertical-scroll-proportion="0.6053097" vertical-offset="0" max-vertical-offset="5244">
          <caret line="18" column="50" selection-start-line="18" selection-start-column="50" selection-end-line="18" selection-end-column="50" />
        </state>
      </provider>
    </entry>
    <entry file="file://$PROJECT_DIR$/Application/Admin/View/Control/index.html">
      <provider selected="true" editor-type-id="text-editor">
        <state vertical-scroll-proportion="0.47079647" vertical-offset="0" max-vertical-offset="5263">
          <caret line="14" column="35" selection-start-line="0" selection-start-column="0" selection-end-line="271" selection-end-column="31" />
        </state>
      </provider>
    </entry>
    <entry file="file://$PROJECT_DIR$/Application/Admin/Controller/ColumnController.class.php">
      <provider selected="true" editor-type-id="text-editor">
        <state vertical-scroll-proportion="0.0" vertical-offset="0" max-vertical-offset="1976">
          <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$/Application/Admin/View/Common/header.html">
      <provider selected="true" editor-type-id="text-editor">
        <state vertical-scroll-proportion="0.0" vertical-offset="0" max-vertical-offset="4370">
          <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$/Application/Admin/View/Common/footer.html">
      <provider selected="true" editor-type-id="text-editor">
        <state vertical-scroll-proportion="-6.714286" vertical-offset="515" max-vertical-offset="2109">
          <caret line="37" column="33" selection-start-line="37" selection-start-column="33" selection-end-line="37" selection-end-column="33" />
        </state>
      </provider>
    </entry>
    <entry file="file://$PROJECT_DIR$/Application/Admin/Controller/BaseController.class.php">
      <provider selected="true" editor-type-id="text-editor">
        <state vertical-scroll-proportion="0.7061947" vertical-offset="627" max-vertical-offset="15219">
          <caret line="54" column="7" selection-start-line="54" selection-start-column="7" selection-end-line="54" selection-end-column="7" />
        </state>
      </provider>
    </entry>
    <entry file="file://$PROJECT_DIR$/Application/Admin/View/Database/import.html">
      <provider selected="true" editor-type-id="text-editor">
        <state vertical-scroll-proportion="-6.107143" vertical-offset="0" max-vertical-offset="285">
          <caret line="9" column="7" selection-start-line="9" selection-start-column="7" selection-end-line="9" selection-end-column="7" />
        </state>
      </provider>
    </entry>
    <entry file="file://$PROJECT_DIR$/Application/Admin/View/Common/nav.html">
      <provider selected="true" editor-type-id="text-editor">
        <state vertical-scroll-proportion="0.34256056" vertical-offset="144" max-vertical-offset="2090">
          <caret line="18" column="13" selection-start-line="18" selection-start-column="13" selection-end-line="18" selection-end-column="13" />
        </state>
      </provider>
    </entry>
    <entry file="file://$PROJECT_DIR$/Public/Static/common.css">
      <provider selected="true" editor-type-id="text-editor">
        <state vertical-scroll-proportion="0.0" vertical-offset="0" max-vertical-offset="988">
          <caret line="1" column="29" selection-start-line="1" selection-start-column="29" selection-end-line="1" selection-end-column="29" />
          <folding />
        </state>
      </provider>
    </entry>
    <entry file="file://$PROJECT_DIR$/Application/Admin/lang/zh-cn.php">
      <provider selected="true" editor-type-id="text-editor">
        <state vertical-scroll-proportion="0.0" vertical-offset="513" max-vertical-offset="1235">
          <caret line="36" column="0" selection-start-line="36" selection-start-column="0" selection-end-line="36" selection-end-column="0" />
          <folding />
        </state>
      </provider>
    </entry>
    <entry file="file://$PROJECT_DIR$/ThinkPHP/Library/COM/Upload/Driver/Ftp.class.php">
      <provider selected="true" editor-type-id="text-editor">
        <state vertical-scroll-proportion="-1.150519" vertical-offset="2223" max-vertical-offset="3078">
          <caret line="90" column="35" selection-start-line="90" selection-start-column="35" selection-end-line="90" selection-end-column="35" />
        </state>
      </provider>
    </entry>
    <entry file="file://$PROJECT_DIR$/ThinkPHP/Library/COM/Upload/Driver/Upyun.class.php">
      <provider selected="true" editor-type-id="text-editor">
        <state vertical-scroll-proportion="-10.857142" vertical-offset="114" max-vertical-offset="4123">
          <caret line="30" column="32" selection-start-line="30" selection-start-column="28" selection-end-line="30" selection-end-column="32" />
        </state>
      </provider>
    </entry>
    <entry file="file://$PROJECT_DIR$/ThinkPHP/Library/COM/Upload/Driver/Sae.class.php">
      <provider selected="true" editor-type-id="text-editor">
        <state vertical-scroll-proportion="-1.7283736" vertical-offset="1322" max-vertical-offset="1900">
          <caret line="25" column="28" selection-start-line="25" selection-start-column="28" selection-end-line="25" selection-end-column="28" />
        </state>
      </provider>
    </entry>
    <entry file="file://$PROJECT_DIR$/ThinkPHP/Library/COM/Upload/Driver/Local.class.php">
      <provider selected="true" editor-type-id="text-editor">
        <state vertical-scroll-proportion="-1.8269897" vertical-offset="1607" max-vertical-offset="2185">
          <caret line="37" column="25" selection-start-line="37" selection-start-column="25" selection-end-line="37" selection-end-column="25" />
        </state>
      </provider>
    </entry>
    <entry file="file://$PROJECT_DIR$/ThinkPHP/Library/COM/Page.class.php">
      <provider selected="true" editor-type-id="text-editor">
        <state vertical-scroll-proportion="2.6764705" vertical-offset="11" max-vertical-offset="2698">
          <caret line="90" column="22" selection-start-line="90" selection-start-column="22" selection-end-line="90" selection-end-column="22" />
        </state>
      </provider>
    </entry>
    <entry file="file://$PROJECT_DIR$/ThinkPHP/Library/COM/Database.class.php">
      <provider selected="true" editor-type-id="text-editor">
        <state vertical-scroll-proportion="1.9065744" vertical-offset="0" max-vertical-offset="3971">
          <caret line="66" column="21" selection-start-line="66" selection-start-column="21" selection-end-line="66" selection-end-column="21" />
          <folding>
            <marker date="1381889536270" expanded="true" signature="-1:-1" placeholder="DROP TABLE I..." />
            <marker date="1381889536270" expanded="true" signature="-1:-1" placeholder="SELECT COUNT..." />
            <marker date="1381889536270" expanded="true" signature="-1:-1" placeholder="SELECT * FRO..." />
            <marker date="1381889536270" expanded="true" signature="-1:-1" placeholder="INSERT INTO ..." />
          </folding>
        </state>
      </provider>
    </entry>
    <entry file="file://$PROJECT_DIR$/Application/Admin/Controller/DatabaseController.class.php">
      <provider selected="true" editor-type-id="text-editor">
        <state vertical-scroll-proportion="-15.607142" vertical-offset="608" max-vertical-offset="5263">
          <caret line="61" column="0" selection-start-line="61" selection-start-column="0" selection-end-line="61" selection-end-column="0" />
          <folding />
        </state>
      </provider>
    </entry>
    <entry file="file://$PROJECT_DIR$/Application/Common/Conf/db.php">
      <provider selected="true" editor-type-id="text-editor">
        <state vertical-scroll-proportion="-4.75" vertical-offset="0" max-vertical-offset="703">
          <caret line="7" column="24" selection-start-line="7" selection-start-column="20" selection-end-line="7" selection-end-column="24" />
          <folding />
        </state>
      </provider>
    </entry>
    <entry file="file://$PROJECT_DIR$/Application/Admin/lang/zh-cn/database.php">
      <provider selected="true" editor-type-id="text-editor">
        <state vertical-scroll-proportion="-4.071429" vertical-offset="0" max-vertical-offset="646">
          <caret line="6" column="3" selection-start-line="6" selection-start-column="3" selection-end-line="6" selection-end-column="3" />
          <folding>
            <element signature="e#6#82#0#PHP" expanded="true" />
          </folding>
        </state>
      </provider>
    </entry>
    <entry file="file://$PROJECT_DIR$/Application/Admin/View/Database/index.html">
      <provider selected="true" editor-type-id="text-editor">
        <state vertical-scroll-proportion="3.7663717" vertical-offset="0" max-vertical-offset="4750">
          <caret line="112" column="18" selection-start-line="112" selection-start-column="18" selection-end-line="112" selection-end-column="18" />
          <folding>
            <element signature="n#style#0;n#th#0;n#tr#0;n#thead#0;n#table#0;n#div#0;n#div#3;n#div#0;n#div#0;n#div#0;n#!!top" expanded="true" />
            <element signature="n#style#0;n#th#1;n#tr#0;n#thead#0;n#table#0;n#div#0;n#div#3;n#div#0;n#div#0;n#div#0;n#!!top" expanded="true" />
            <element signature="n#style#0;n#th#2;n#tr#0;n#thead#0;n#table#0;n#div#0;n#div#3;n#div#0;n#div#0;n#div#0;n#!!top" expanded="true" />
            <element signature="n#style#0;n#th#3;n#tr#0;n#thead#0;n#table#0;n#div#0;n#div#3;n#div#0;n#div#0;n#div#0;n#!!top" expanded="true" />
            <element signature="n#style#0;n#th#4;n#tr#0;n#thead#0;n#table#0;n#div#0;n#div#3;n#div#0;n#div#0;n#div#0;n#!!top" expanded="true" />
            <element signature="n#style#0;n#th#5;n#tr#0;n#thead#0;n#table#0;n#div#0;n#div#3;n#div#0;n#div#0;n#div#0;n#!!top" expanded="true" />
            <element signature="n#style#0;n#th#6;n#tr#0;n#thead#0;n#table#0;n#div#0;n#div#3;n#div#0;n#div#0;n#div#0;n#!!top" expanded="true" />
            <element signature="n#style#0;n#th#7;n#tr#0;n#thead#0;n#table#0;n#div#0;n#div#3;n#div#0;n#div#0;n#div#0;n#!!top" expanded="true" />
          </folding>
        </state>
      </provider>
    </entry>
  </component>
</project>


text:
<template>

No speaking recorded yet!

            Task ${audio.task.number}

${audio.task.question}

                Answered by:
                  ${audio.postedBy.name}
                  Anonymous

            Give feedback

      <md-pagination md-on-page-changed.delegate="onPageChanged($event)" md-pages.bind="totalPages" md-active-page.bind="activePage"></md-pagination>

</template>


text:
using Newtonsoft.Json.Linq;

namespace Kraken.WebSockets.Messages
{
    /// <summary>
    /// Ticker information includes best ask and best bid prices, 24hr volume, last trade price, volume weighted average price,
    /// etc for a given currency pair. A ticker message is published every time a trade or a group of trade happens.
    /// </summary>
    public sealed class TickerMessage
    {
        /// <summary>
        /// Gets the channel identifier.
        /// </summary>
        /// <value>
        /// The channel identifier.
        /// </value>
        public int ChannelId { get; private set; }

        /// <summary>
        /// Gets the pair.
        /// </summary>
        /// <value>
        /// The pair.
        /// </value>
        public string Pair { get; private set; }

        /// <summary>
        /// Gets the ask.
        /// </summary>
        /// <value>
        /// The ask.
        /// </value>
        public BestPriceVolume Ask { get; private set; }

        /// <summary>
        /// Gets the bid.
        /// </summary>
        /// <value>
        /// The bid.
        /// </value>
        public BestPriceVolume Bid { get; private set; }

        /// <summary>
        /// Gets the close.
        /// </summary>
        /// <value>
        /// The close.
        /// </value>
        public ClosePriceVolume Close { get; private set; }

        /// <summary>
        /// Gets the volume.
        /// </summary>
        /// <value>
        /// The volume.
        /// </value>
        public TodayAnd24HourValue<decimal> Volume { get; private set; }

        /// <summary>
        /// Gets the volume weighted average price.
        /// </summary>
        /// <value>
        /// The volume weighted average price.
        /// </value>
        public TodayAnd24HourValue<decimal> VolumeWeightedAveragePrice { get; private set; }

        /// <summary>
        /// Gets the number of trades
        /// </summary>
        public TodayAnd24HourValue<int> Trades { get; private set; }

        /// <summary>
        /// Gets the low price.
        /// </summary>
        /// <value>
        /// The low price.
        /// </value>
        public TodayAnd24HourValue<decimal> LowPrice { get; private set; }

        /// <summary>
        /// Gets the high price.
        /// </summary>
        /// <value>
        /// The high price.
        /// </value>
        public TodayAnd24HourValue<decimal> HighPrice { get; private set; }

        /// <summary>
        /// Gets the open price.
        /// </summary>
        /// <value>
        /// The open price.
        /// </value>
        public TodayAnd24HourValue<decimal> OpenPrice { get; private set; }

        /// <summary>
        /// Creates a new <see cref="TickerMessage"/> insdtance from string.
        /// </summary>
        /// <param name="tickerRawMessage">The ticker raw message.</param>
        /// <param name="subscription">The subscription.</param>
        /// <returns></returns>
        public static TickerMessage CreateFromString(string tickerRawMessage, SubscriptionStatus subscription)
        {
            var tokenArray = KrakenDataMessageHelper.EnsureRawMessage(tickerRawMessage);
            var channelId = (int)tokenArray.First;
            var message = tokenArray[1];

            var tickerMessage = new TickerMessage()
            {
                ChannelId = channelId,
                Pair = subscription.Pair,
                Ask = BestPriceVolume.CreateFromJArray(message["a"] as JArray),
                Bid = BestPriceVolume.CreateFromJArray(message["b"] as JArray),
                Close = ClosePriceVolume.CreateFromJArray(message["c"] as JArray),
                Volume = TodayAnd24HourValue<decimal>.CreateFromJArray(message["v"] as JArray),
                VolumeWeightedAveragePrice = TodayAnd24HourValue<decimal>.CreateFromJArray(message["p"] as JArray),
                Trades = TodayAnd24HourValue<int>.CreateFromJArray(message["t"] as JArray),
                LowPrice = TodayAnd24HourValue<decimal>.CreateFromJArray(message["l"] as JArray),
                HighPrice = TodayAnd24HourValue<decimal>.CreateFromJArray(message["h"]as JArray),
                OpenPrice = TodayAnd24HourValue<decimal>.CreateFromJArray(message["o"] as JArray)
            };

            return tickerMessage;
        }
    }
}


text:
import flask

import config
import model
import util
import auth

from main import app

twitter_config = dict(
    base_url='https://api.twitter.com/1.1/',
    request_token_url='https://api.twitter.com/oauth/request_token',
    access_token_url='https://api.twitter.com/oauth/access_token',
    authorize_url='https://api.twitter.com/oauth/authorize',
    consumer_key=config.CONFIG_DB.twitter_consumer_key,
    consumer_secret=config.CONFIG_DB.twitter_consumer_secret,
  )

twitter = auth.create_oauth_app(twitter_config, 'twitter')

@app.route('/_s/callback/twitter/oauth-authorized/')
def twitter_authorized():
  response = twitter.authorized_response()
  if response is None:
    flask.flash('You denied the request to sign in.')
    return flask.redirect(util.get_next_url())

  flask.session['oauth_token'] = (
      response['oauth_token'],
      response['oauth_token_secret'],
    )
  user_db = retrieve_user_from_twitter(response)
  return auth.signin_user_db(user_db)

@twitter.tokengetter
def get_twitter_token():
  return flask.session.get('oauth_token')

@app.route('/signin/twitter/')
def signin_twitter():
  try:
    return auth.signin_oauth(twitter)
  except:
    flask.flash(
        'Something went wrong with Twitter sign in. Please try again.',
        category='danger',
      )
    return flask.redirect(flask.url_for('signin', next=util.get_next_url()))

def retrieve_user_from_twitter(response):
  auth_id = 'twitter_%s' % response['user_id']
  user_db = model.User.get_by('auth_ids', auth_id)
  return user_db or auth.create_user_db(
      auth_id=auth_id,
      name=response['screen_name'],
      username=response['screen_name'],
    )


text:
package com.wecan.xhin.studio.net;

import android.content.Context;

import com.bumptech.glide.Glide;
import com.bumptech.glide.GlideBuilder;
import com.bumptech.glide.integration.okhttp.OkHttpUrlLoader;
import com.bumptech.glide.load.model.GlideUrl;
import com.bumptech.glide.module.GlideModule;
import com.wecan.xhin.studio.App;

import java.io.InputStream;

public class OkHttpGlideModule implements GlideModule {

    @Override
    public void applyOptions(Context context, GlideBuilder builder) {
    }

    @Override
    public void registerComponents(Context context, Glide glide) {
        glide.register(GlideUrl.class, InputStream.class,
                new OkHttpUrlLoader.Factory(App.from(context).getHttpClient()));
    }

}


text:
package com.skype;

public interface ChatListener {
	public void userAdded(User user);
	public void userLeft(User user);
}


text:
package the.bhushan.service.user;

import javax.xml.bind.annotation.XmlEnum;
import javax.xml.bind.annotation.XmlEnumValue;
import javax.xml.bind.annotation.XmlType;

/**
 *
Java class for right.
 *
 *
The following schema fragment specifies the expected content contained within this class.
 *

 *

 * <simpleType name="right">
 *   <restriction base="{http://www.w3.org/2001/XMLSchema}string">
 *     <enumeration value="Admin"/>
 *     <enumeration value="Room"/>
 *     <enumeration value="Dashboard"/>
 *     <enumeration value="Login"/>
 *     <enumeration value="Soap"/>
 *   </restriction>
 * </simpleType>
 *

 *
 */
@XmlType(name = "right", namespace = "org.apache.openmeetings.user.user.right")
@XmlEnum
public enum Right {

    @XmlEnumValue("Admin")
    ADMIN("Admin"),
    @XmlEnumValue("Room")
    ROOM("Room"),
    @XmlEnumValue("Dashboard")
    DASHBOARD("Dashboard"),
    @XmlEnumValue("Login")
    LOGIN("Login"),
    @XmlEnumValue("Soap")
    SOAP("Soap");
    private final String value;

    Right(String v) {
        value = v;
    }

    public String value() {
        return value;
    }

    public static Right fromValue(String v) {
        for (Right c: Right.values()) {
            if (c.value.equals(v)) {
                return c;
            }
        }
        throw new IllegalArgumentException(v);
    }

}


text:
using OrchardCore.Modules.Manifest;

[assembly: Module(
    Name = "Orchard Demo",
    Author = ManifestConstants.OrchardCoreTeam,
    Website = ManifestConstants.OrchardCoreWebsite,
    Version = ManifestConstants.OrchardCoreVersion,
    Description = "Test",
    Category = "Samples",
    Dependencies = new []{ "OrchardCore.Users", "OrchardCore.Contents" }
)]


text:
package output

import java.time.LocalDate

// (todo: harit) Add Notes
object Html {
  def get(weeklyReport: WeeklyReport): String = {
    val firstDateOfWeek: LocalDate = weeklyReport.tasksByDay.keys.head
    val page =

Weekly Report for [{firstDateOfWeek} - {firstDateOfWeek.plusWeeks(1).minusDays(1)}]

Total Tasks: {weeklyReport.totalTaskCount}

Completed Tasks: {weeklyReport.completedTaskCount}

In-Complete Tasks: {weeklyReport.inCompletedTaskCount}

          {
            for (entry <- weeklyReport.tasksByDay) yield

{entry._1}

                {
                  for(task <- entry._2) yield

[{if(task.completed) "Completed" else "InComplete"}] {task.name}

                }

          }

    page.toString
  }
}


text:
package test.gov.nih.nci.system.dao.orm.translator;

import java.util.ArrayList;
import java.util.HashSet;
import java.util.List;
import java.util.Set;

import gov.nih.nci.cacoresdk.domain.inheritance.childwithassociation.Credit;
import gov.nih.nci.cacoresdk.domain.other.datatype.DsetAdDataType;
import gov.nih.nci.cacoresdk.domain.other.datatype.EnDataType;
import gov.nih.nci.iso21090.Ad;
import gov.nih.nci.iso21090.Adxp;
import gov.nih.nci.iso21090.AdxpAl;
import gov.nih.nci.iso21090.DSet;
import gov.nih.nci.iso21090.En;
import gov.nih.nci.iso21090.EntityNamePartType;
import gov.nih.nci.iso21090.Enxp;
import gov.nih.nci.iso21090.Ii;
import gov.nih.nci.system.applicationservice.ApplicationException;
import gov.nih.nci.system.applicationservice.ApplicationService;
import gov.nih.nci.system.client.ApplicationServiceProvider;
import gov.nih.nci.system.dao.orm.HibernateConfigurationHolder;
import gov.nih.nci.system.dao.orm.translator.NestedCriteria2HQL;
import gov.nih.nci.system.query.hibernate.HQLCriteria;
import gov.nih.nci.system.query.nestedcriteria.NestedCriteria;

import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

import junit.framework.TestCase;

public class NestedCriteria2HQLTest extends TestCase {
	static String paths[] = {"application-config.xml"};
	private static ApplicationContext ctx = new ClassPathXmlApplicationContext(
			paths);;
	protected HibernateConfigurationHolder configurationHolder;
	private ApplicationService appService;

	@Override
	protected void setUp() throws Exception {
		super.setUp();
		appService = ApplicationServiceProvider.getApplicationService();
		configurationHolder = (HibernateConfigurationHolder) ctx
				.getBean("HibernateConfigHolder");
	}

	public void testExampleIDQuery() throws Exception {
		NestedCriteria criteria = new NestedCriteria();
		criteria.setSourceObjectName("gov.nih.nci.cacoresdk.domain.inheritance.childwithassociation.Credit");
		criteria.setTargetObjectName("gov.nih.nci.cacoresdk.domain.inheritance.childwithassociation.Bank");
		criteria.setRoleName("issuingBank");
		Credit credit = new Credit();
		Ii ii = new Ii();
		ii.setExtension("3");
		credit.setId(ii);
		List<Credit> sourceObjectList = new ArrayList<Credit>();
		sourceObjectList.add(credit);
		criteria.setSourceObjectList(sourceObjectList);

		NestedCriteria2HQL criteria2hql = new NestedCriteria2HQL(criteria,
				configurationHolder.getConfiguration(), true);
		HQLCriteria hqlCriteria = criteria2hql.translate();
		String expectedHQL = "select bank_1 from gov.nih.nci.cacoresdk.domain.inheritance.childwithassociation.Bank as bank_1 where bank_1.id in (select bank_1.id from gov.nih.nci.cacoresdk.domain.inheritance.childwithassociation.Bank bank_1, gov.nih.nci.cacoresdk.domain.inheritance.childwithassociation.Credit credit_1 where credit_1.issuingBank.id=bank_1.id and credit_1.id=? )";
		assertEquals(expectedHQL, hqlCriteria.getHqlString());
	}

	public void testISOComplexDsetAdDataSetType() throws Exception {
		NestedCriteria criteria = new NestedCriteria();
		criteria.setSourceObjectName("gov.nih.nci.cacoresdk.domain.other.datatype.DsetAdDataType");
		criteria.setTargetObjectName("gov.nih.nci.cacoresdk.domain.other.datatype.DsetAdDataType");

		DsetAdDataType dsetAdDataType = getDsetAdDataType();
		List<DsetAdDataType> sourceObjectList = new ArrayList<DsetAdDataType>();
		sourceObjectList.add(dsetAdDataType);
		criteria.setSourceObjectList(sourceObjectList);

		NestedCriteria2HQL criteria2hql = new NestedCriteria2HQL(criteria,
				configurationHolder.getConfiguration(), true);
		HQLCriteria hqlCriteria = criteria2hql.translate();
		String expectedHQL = "select dsetAdDataType_1 from gov.nih.nci.cacoresdk.domain.other.datatype.DsetAdDataType as dsetAdDataType_1 where dsetAdDataType_1.id in (select dsetAdDataType_1.id from gov.nih.nci.cacoresdk.domain.other.datatype.DsetAdDataType dsetAdDataType_1 inner join dsetAdDataType_1.value1.item as ad_0 where lower(ad_0.part_0.value )=?  )) )";
		assertEquals(expectedHQL, hqlCriteria.getHqlString());
	}

	public void testISOComplexDsetAdDataSetType2() throws Exception {
		NestedCriteria criteria = new NestedCriteria();
		criteria.setSourceObjectName("gov.nih.nci.cacoresdk.domain.other.datatype.DsetAdDataType");
		criteria.setTargetObjectName("gov.nih.nci.cacoresdk.domain.other.datatype.DsetAdDataType");

		DsetAdDataType dsetAdDataType = getDsetAdDataType();
		DsetAdDataType dsetAdDataType2 = getDsetAdDataType();

		List<DsetAdDataType> sourceObjectList = new ArrayList<DsetAdDataType>();
		sourceObjectList.add(dsetAdDataType);
		sourceObjectList.add(dsetAdDataType2);
		criteria.setSourceObjectList(sourceObjectList);

		NestedCriteria2HQL criteria2hql = new NestedCriteria2HQL(criteria,
				configurationHolder.getConfiguration(), true);
		HQLCriteria hqlCriteria = criteria2hql.translate();
		String expectedHQL = "select dsetAdDataType_1 from gov.nih.nci.cacoresdk.domain.other.datatype.DsetAdDataType as dsetAdDataType_1 where dsetAdDataType_1.id in (select dsetAdDataType_1.id from gov.nih.nci.cacoresdk.domain.other.datatype.DsetAdDataType dsetAdDataType_1 where dsetAdDataType_1 in (select dsetAdDataType_1 from gov.nih.nci.cacoresdk.domain.other.datatype.DsetAdDataType dsetAdDataType_1 inner join dsetAdDataType_1.value1.item as ad_0 where lower(ad_0.part_0.value )=?  ))  ) or dsetAdDataType_1 in (select dsetAdDataType_1 from gov.nih.nci.cacoresdk.domain.other.datatype.DsetAdDataType dsetAdDataType_1 inner join dsetAdDataType_1.value1.item as ad_1 where lower(ad_1.part_0.value )=?  ))  ))";
		assertEquals(expectedHQL, hqlCriteria.getHqlString());
	}

	public void testEnDataTypeValue1() throws Exception {
		NestedCriteria criteria = new NestedCriteria();
		criteria.setSourceObjectName("gov.nih.nci.cacoresdk.domain.other.datatype.EnDataType");
		criteria.setTargetObjectName("gov.nih.nci.cacoresdk.domain.other.datatype.EnDataType");
		EnDataType enDataType = new EnDataType();
		enDataType.setValue1(getEn());
		List<EnDataType> sourceObjectList = new ArrayList<EnDataType>();
		sourceObjectList.add(enDataType);
		criteria.setSourceObjectList(sourceObjectList);
		NestedCriteria2HQL criteria2hql = new NestedCriteria2HQL(criteria,
				configurationHolder.getConfiguration(), true);
		HQLCriteria hqlCriteria = criteria2hql.translate();
		String expectedHQL = "select enDataType_1 from gov.nih.nci.cacoresdk.domain.other.datatype.EnDataType as enDataType_1 where enDataType_1.id in (select enDataType_1.id from gov.nih.nci.cacoresdk.domain.other.datatype.EnDataType enDataType_1 where lower(enDataType_1.value1.part_0.value )=? )";
		assertEquals(expectedHQL, hqlCriteria.getHqlString());
	}

	public void testEnDataTypeValue2AndValue1() throws Exception {
		NestedCriteria criteria = new NestedCriteria();
		criteria.setSourceObjectName("gov.nih.nci.cacoresdk.domain.other.datatype.EnDataType");
		criteria.setTargetObjectName("gov.nih.nci.cacoresdk.domain.other.datatype.EnDataType");
		EnDataType enDataType = new EnDataType();
		enDataType.setValue1(getEn());
		enDataType.setValue2(getEn());
		List<EnDataType> sourceObjectList = new ArrayList<EnDataType>();
		sourceObjectList.add(enDataType);
		criteria.setSourceObjectList(sourceObjectList);
		NestedCriteria2HQL criteria2hql = new NestedCriteria2HQL(criteria,
				configurationHolder.getConfiguration(), true);
		HQLCriteria hqlCriteria = criteria2hql.translate();
		String expectedHQL = "select enDataType_1 from gov.nih.nci.cacoresdk.domain.other.datatype.EnDataType as enDataType_1 where enDataType_1.id in (select enDataType_1.id from gov.nih.nci.cacoresdk.domain.other.datatype.EnDataType enDataType_1 where lower(enDataType_1.value1.part_0.value )=?  and lower(enDataType_1.value2.part_0.value )=? )";
		assertEquals(expectedHQL, hqlCriteria.getHqlString());
	}

	public void testEnDataTypeValue2AndValue1Exception() throws Exception {
		NestedCriteria criteria = new NestedCriteria();
		criteria.setSourceObjectName("gov.nih.nci.cacoresdk.domain.other.datatype.EnDataType");
		criteria.setTargetObjectName("gov.nih.nci.cacoresdk.domain.other.datatype.EnDataType");
		EnDataType enDataType = new EnDataType();
		En en = getEn();
		en.getPart().iterator().next().setType(EntityNamePartType.GIV);
		enDataType.setValue1(en);
		enDataType.setValue2(getEn());
		List<EnDataType> sourceObjectList = new ArrayList<EnDataType>();
		sourceObjectList.add(enDataType);
		criteria.setSourceObjectList(sourceObjectList);
		NestedCriteria2HQL criteria2hql = new NestedCriteria2HQL(criteria,
				configurationHolder.getConfiguration(), true);
		try {
			criteria2hql.translate();
			fail("Must throw an Exception");
		} catch (Exception ex) {
			assertEquals(
					"No matching found for the input 'type' with the mapped-constant specified in EA-Model",
					ex.getMessage());
		}
	}

	public void testEnDataTypeValue4() throws Exception {
		NestedCriteria criteria = new NestedCriteria();
		criteria.setSourceObjectName("gov.nih.nci.cacoresdk.domain.other.datatype.EnDataType");
		criteria.setTargetObjectName("gov.nih.nci.cacoresdk.domain.other.datatype.EnDataType");
		EnDataType enDataType = new EnDataType();
		enDataType.setValue4(getEn());
		List<EnDataType> sourceObjectList = new ArrayList<EnDataType>();
		sourceObjectList.add(enDataType);
		criteria.setSourceObjectList(sourceObjectList);
		NestedCriteria2HQL criteria2hql = new NestedCriteria2HQL(criteria,
				configurationHolder.getConfiguration(), true);
		HQLCriteria hqlCriteria = criteria2hql.translate();
		String expectedHQL = "select enDataType_1 from gov.nih.nci.cacoresdk.domain.other.datatype.EnDataType as enDataType_1 where enDataType_1.id in (select enDataType_1.id from gov.nih.nci.cacoresdk.domain.other.datatype.EnDataType enDataType_1 where lower(enDataType_1.value4.part_0.value )=? )";
		assertEquals(expectedHQL, hqlCriteria.getHqlString());
	}

	private En getEn() {
		En en=new En();
		Enxp partInstance=new Enxp();
		partInstance.setType(EntityNamePartType.FAM);
		partInstance.setValue("ENXP Code System");
		en.addPart(partInstance);
		return en;
	}

	private DsetAdDataType getDsetAdDataType() {
		DsetAdDataType dsetAdDataType = new DsetAdDataType();
		DSet<Ad> dSet = new DSet<Ad>();
		Ad ad = new Ad();
		Set<Ad> sets = new HashSet<Ad>();
		List<Adxp> adxps = new ArrayList<Adxp>();
		AdxpAl adxp = new AdxpAl();
		adxp.setValue("value");
		adxps.add(adxp);
		ad.setPart(adxps);
		sets.add(ad);
		dSet.setItem(sets);
		dsetAdDataType.setValue1(dSet);
		return dsetAdDataType;
	}

	public void testQueryWithDistinct() throws ApplicationException
	{
		HQLCriteria criteria = new HQLCriteria("select distinct(id) from gov.nih.nci.cacoresdk.domain.other.datatype.BlDataType");
		Collection<BlDataType> result = appService.query(criteria, "gov.nih.nci.cacoresdk.domain.other.datatype.BlDataType");
		assert(result.size() > 0 );
	}

	public void testCountWithDistinct() throws ApplicationException
	{
		String sql = "select distinct (id) from gov.nih.nci.cacoresdk.domain.other.datatype.BlDataType";
		HQLCriteria criteria = new HQLCriteria(NestedCriteria2HQL.getCountQuery(sql));
		Collection<BlDataType> result = appService.query(criteria, "gov.nih.nci.cacoresdk.domain.other.datatype.BlDataType");
		assert(result.size() > 0 );
	}

	public void testCountWithDistinct2() throws ApplicationException
	{
		String sql = "select distinct id) from gov.nih.nci.cacoresdk.domain.other.datatype.BlDataType";
		HQLCriteria criteria = new HQLCriteria(NestedCriteria2HQL.getCountQuery(sql));
		Collection<BlDataType> result = appService.query(criteria, "gov.nih.nci.cacoresdk.domain.other.datatype.BlDataType");
		assert(result.size() > 0 );
	}

	public void testCountWithDistinct3() throws ApplicationException
	{
		String sql = "select distinct (id from gov.nih.nci.cacoresdk.domain.other.datatype.BlDataType";
		HQLCriteria criteria = new HQLCriteria(NestedCriteria2HQL.getCountQuery(sql));
		Collection<BlDataType> result = appService.query(criteria, "gov.nih.nci.cacoresdk.domain.other.datatype.BlDataType");
		assert(result.size() > 0 );
	}

	public void testCountWithDistinct4() throws ApplicationException
	{
		String sql = "select distinct(id) from gov.nih.nci.cacoresdk.domain.other.datatype.BlDataType";
		HQLCriteria criteria = new HQLCriteria(NestedCriteria2HQL.getCountQuery(sql));
			Collection<BlDataType> result = appService.query(criteria, "gov.nih.nci.cacoresdk.domain.other.datatype.BlDataType");
			assert(result.size() > 0 );
	}

	public void testFailCountWithDistinctBraces()
	{
		HQLCriteria criteria = new HQLCriteria("select count(distinct (id)) from gov.nih.nci.cacoresdk.domain.other.datatype.BlDataType");
		try {
			Collection<BlDataType> result = appService.query(criteria, "gov.nih.nci.cacoresdk.domain.other.datatype.BlDataType");
			assert(1>10);
		} catch (ApplicationException e) {
			assert(1==1);
			// TODO Auto-generated catch block
			//e.printStackTrace();
		}

	}

}


text:
<?php namespace DOMWorks;

use DOMDocument;
use DOMXPath;
use Zend\Dom\Query;
use DOMWorks\NodeList;
use DOMWorks\Element;
use Zend\Stdlib\ErrorHandler;

class Selector extends Query
{
    protected $document;
    protected $context;

    public function __construct(DOMDocument $document, NodeList $context = null)
    {
        $this->document = $document;
        $this->context = $context;
    }

    public function queryXpath($xquery, $query = null)
    {
        $nodeList = $this->getNodeList($this->document, $xquery);
        return $nodeList;
    }

    /**
     * Prepare node list
     *
     * @param  DOMDocument $document
     * @param  string|array $xpathQuery
     * @return array
     */
    protected function getNodeList($document, $xpathQuery)
    {
        $xpath = new DOMXPath($document);
        foreach ($this->xpathNamespaces as $prefix => $namespaceUri) {
            $xpath->registerNamespace($prefix, $namespaceUri);
        }
        if ($this->xpathPhpFunctions) {
            $xpath->registerNamespace("php", "http://php.net/xpath");
            ($this->xpathPhpFunctions === true) ?
                $xpath->registerPHPFunctions()
                : $xpath->registerPHPFunctions($this->xpathPhpFunctions);
        }
        $xpathQuery = (string) $xpathQuery;

        ErrorHandler::start();

        $elements = new NodeList($document);

        if (count($this->context) === 0)
        {
            //var_dump($xpathQuery);
            $elements->add($xpath->query($xpathQuery));
        }
        else
        {
            foreach ($this->context as $context)
            {
                //var_dump('.' . $xpathQuery);
                $elements->add($xpath->query('.' . $xpathQuery, $context->element));
            }
        }

        $error = ErrorHandler::stop();

        if ($error)
        {
            throw $error;
        }

        return $elements;
    }
}


text:
Read all posts like this:

  {% for category in page.categories %}
    {% assign sorted_posts = (site.categories[category] | sort: 'date') %}
    {% for post in sorted_posts %}

        {{ post.title }}

    {% endfor %}
  {% endfor %}


text:
@interface SonosDiscovery : NSObject <GCDAsyncUdpSocketDelegate>

+ (void)discoverControllers:(void(^)(NSArray *controllers, NSError *error))completion;

@end