text:
<?php

namespace backend\models;

use Yii;
use yii\base\Model;
use yii\data\ActiveDataProvider;
use common\models\Category;

/**
 * CategorySearch represents the model behind the search form about `common\models\Category`.
 */
class CategorySearch extends Category
{
    public $defaultSearch = [];

    /**
     * @inheritdoc
     */
    public function rules()
    {
        return [
            [['id', 'created_at', 'updated_at'], 'integer'],
            [['title', 'slug'], 'safe'],
            [['status'], 'integer'],
        ];
    }

    /**
     * @inheritdoc
     */
    public function scenarios()
    {
        // bypass scenarios() implementation in the parent class
        return Model::scenarios();
    }

    /**
     * Creates data provider instance with search query applied
     *
     * @param array $params
     *
     * @return ActiveDataProvider
     */
    public function search($params)
    {
        $query = Category::find();

        // add conditions that should always apply here

        $dataProvider = new ActiveDataProvider([
            'query' => $query,
        ]);

        $this->load($params);

        if (!$this->validate()) {
            // uncomment the following line if you do not want to return any records when validation fails
            // $query->where('0=1');
            return $dataProvider;
        }

        // grid filtering conditions
        $where = [
            'id' => $this->id,
            'status' => $this->status,
            'created_at' => $this->created_at,
            'updated_at' => $this->updated_at,
        ];

        foreach($this->defaultSearch as $key => $value) {
            $where[$key] = $value;
        }

        $query->andFilterWhere($where);

        $query->andFilterWhere(['like', 'title', $this->title])
            ->andFilterWhere(['like', 'slug', $this->slug])
            ->orderBy(['self_rank' => SORT_ASC]);

        return $dataProvider;
    }
}


text:
import sys

from setuptools import setup, find_packages

requires = ['itsdangerous', 'misaka>=1.0,<2.0', 'html5lib==0.9999999']

if (3, 0) <= sys.version_info < (3, 3):
    raise SystemExit("Python 3.0, 3.1 and 3.2 are not supported")

setup(
    name='isso',
    version='0.10.5.dev0',
    author='Martin Zimmermann',
    author_email='info@posativ.org',
    packages=find_packages(),
    include_package_data=True,
    zip_safe=False,
    url='https://github.com/posativ/isso/',
    license='MIT',
    description='lightweight Disqus alternative',
    classifiers=[
        "Development Status :: 4 - Beta",
        "Topic :: Internet",
        "Topic :: Internet :: WWW/HTTP :: HTTP Servers",
        "Topic :: Internet :: WWW/HTTP :: WSGI :: Application",
        "License :: OSI Approved :: MIT License",
        "Programming Language :: Python :: 2.6",
        "Programming Language :: Python :: 2.7",
        "Programming Language :: Python :: 3.3",
        "Programming Language :: Python :: 3.4"
    ],
    install_requires=requires,
    extras_require={
        ':python_version=="2.6"': ['argparse', 'ordereddict'],
        ':python_version=="2.6" or python_version=="2.7"': ['ipaddr>=2.1', 'configparser', 'werkzeug>=0.8'],
        ':python_version!="2.6" and python_version!="2.7"': ['werkzeug>=0.9']
    },
    entry_points={
        'console_scripts':
            ['isso = isso:main'],
    }
)

redpajama_set_name: RedPajamaGithub


text:
export interface PropDescriptor {
    configurable?: boolean;
    enumerable?: boolean;
    value?: any;
    writable?: boolean;
    get? (): any;
    set? (v: any): void;
}

export interface PropDescriptorMap {
    [s: string]: PropDescriptor;
}


text:
export const showMenu = async (reply) => {
  try {
    await reply({
      attachment: {
        type: 'template',
        payload: {
          template_type: 'generic',
          image_aspect_ratio: 'square',
          elements: [{
            title: 'Expenses menu',
            image_url: `${process.env.API_URL}/public/expenses.png`,
            subtitle: 'See how much money you\'ve spent until now',
            buttons: [{
              type: 'postback',
              title: 'Open',
              payload: 'SHOW_EXPENSES_MENU',
            }]
          }, {
            title: 'Incomes menu',
            image_url: `${process.env.API_URL}/public/incomes.png`,
            subtitle: 'See the positive income for your budget',
            buttons: [{
              type: 'postback',
              title: 'Open',
              payload: 'SHOW_INCOMES_MENU',
            }]
          }, {
            title: 'Threshold menu',
            image_url: `${process.env.API_URL}/public/threshold.png`,
            subtitle: 'See what is going on with your prediction',
            buttons: [{
              type: 'postback',
              title: 'Open',
              payload: 'SHOW_THRESHOLD_MENU',
            }]
          }, {
            title: 'Salary',
            image_url: `${process.env.API_URL}/public/salary.png`,
            subtitle: 'See you current salary',
            buttons: [{
              type: 'postback',
              title: 'Show',
              payload: 'SHOW_SALARY'
            }]
          }, {
            title: 'Account logout',
            image_url: `${process.env.API_URL}/public/logout.png`,
            subtitle: 'Logout from EBudgie\'s account',
            buttons: [{
              type: 'account_unlink'
            }]
          }]
        }
      }
    });
  } catch (e) {
    console.log('Error during showing menu', e);
    await reply({
      text: 'Something went wrong. Please try again.'
    });
  }
};

export const showExpensesMenu = async (reply) => {
  try {
    await reply({
      attachment: {
        type: 'template',
        payload: {
          template_type: 'generic',
          image_aspect_ratio: 'square',
          elements: [{
            title: 'Monthly expenses amount',
            image_url: `${process.env.API_URL}/public/expenses.png`,
            subtitle: 'See total expenses for the current month',
            buttons: [{
              type: 'postback',
              title: 'Show',
              payload: 'SHOW_MONTHLY_EXPENSES_AMOUNT',
            }]
          }, {
            title: 'All expenses amount',
            image_url: `${process.env.API_URL}/public/all-expenses.png`,
            subtitle: 'See total expenses for all time',
            buttons: [{
              type: 'postback',
              title: 'Show',
              payload: 'SHOW_ALL_EXPENSES_AMOUNT',
            }]
          }, {
            title: 'Monthly expenses',
            image_url: `${process.env.API_URL}/public/monthly-expenses-list.png`,
            subtitle: 'See each expense for the month',
            buttons: [{
              type: 'postback',
              title: 'Show',
              payload: 'SHOW_MONTHLY_EXPENSES',
            }]
          }, {
            title: 'All expenses',
            image_url: `${process.env.API_URL}/public/all-expenses-list.png`,
            subtitle: 'See each expense for all time',
            buttons: [{
              type: 'postback',
              title: 'Show',
              payload: 'SHOW_ALL_EXPENSES',
            }]
          }]
        }
      }
    });
  } catch (e) {
    console.log('Error during showing expenses menu', e);
    await reply({
      text: 'Something went wrong. Please try again.'
    });
  }
};

export const showIncomesMenu = async (reply) => {
  try {
    await reply({
      attachment: {
        type: 'template',
        payload: {
          template_type: 'generic',
          image_aspect_ratio: 'square',
          elements: [{
            title: 'Monthly incomes amount',
            image_url: `${process.env.API_URL}/public/incomes.png`,
            subtitle: 'See total incomes for the current month',
            buttons: [{
              type: 'postback',
              title: 'Show',
              payload: 'SHOW_MONTHLY_INCOMES_AMOUNT',
            }]
          }, {
            title: 'All incomes amount',
            image_url: `${process.env.API_URL}/public/all-incomes.png`,
            subtitle: 'See total incomes for all time',
            buttons: [{
              type: 'postback',
              title: 'Show',
              payload: 'SHOW_ALL_INCOMES_AMOUNT',
            }]
          }, {
            title: 'Monthly incomes',
            image_url: `${process.env.API_URL}/public/monthly-incomes-list.png`,
            subtitle: 'See each incomes for the month',
            buttons: [{
              type: 'postback',
              title: 'Show',
              payload: 'SHOW_MONTHLY_INCOMES',
            }]
          }, {
            title: 'All incomes',
            image_url: `${process.env.API_URL}/public/all-incomes-list.png`,
            subtitle: 'See each incomes for all time',
            buttons: [{
              type: 'postback',
              title: 'Show',
              payload: 'SHOW_ALL_INCOMES',
            }]
          }]
        }
      }
    });
  } catch (e) {
    console.log('Error during showing incomes menu', e);
    await reply({
      text: 'Something went wrong. Please try again.'
    });
  }
};

export const showThresholdsMenu = async (reply) => {
  try {
    await reply({
      attachment: {
        type: 'template',
        payload: {
          template_type: 'generic',
          image_aspect_ratio: 'square',
          elements: [{
            title: 'Global threshold',
            image_url: `${process.env.API_URL}/public/threshold.png`,
            subtitle: 'See total threshold results',
            buttons: [{
              type: 'postback',
              title: 'Show',
              payload: 'SHOW_GLOBAL_THRESHOLD',
            }]
          }, {
            title: 'Categories threshold',
            image_url: `${process.env.API_URL}/public/threshold-categories.png`,
            subtitle: 'See total incomes for all time',
            buttons: [{
              type: 'postback',
              title: 'Show',
              payload: 'SHOW_CATEGORIES_THRESHOLD',
            }]
          }]
        }
      }
    });
  } catch (e) {
    console.log('Error during showing threshold menu', e);
    await reply({
      text: 'Something went wrong. Please try again.'
    });
  }
};


text:
Mailpile.render = function() {

  // Dynamic CSS Reiszing
  var dynamic_sizing = function() {

    // Is Tablet or Mobile
    if ($('#sidebar').length === 0 || $(window).width() < 1024) {
      var sidebar_width  = 0;
    }
    else {
      var sidebar_width  = 225;
    }

    var content_width  = $(window).width() - sidebar_width;
    var content_height = $(window).height() - 62;
    var content_tools_height    = $('#content-tools').height();
    var new_content_width       = $(window).width() - sidebar_width;
    var new_content_view_height = content_height - content_tools_height;

    $('#content-tools').css('position', 'fixed');
    $('.sub-navigation').width(content_width);
    $('#thread-title').width(content_width);

    // Set Content View
    $('#content, #content-wide').css({'height': content_height});
    $('#content-tools, .sub-navigation, .bulk-actions').width(new_content_width);
    $('#content-view').css({'height': new_content_view_height, 'top': content_tools_height});
  };

  // Resize Elements Start + On Drag
  dynamic_sizing();
  window.onresize = function(event) {
    dynamic_sizing();
  };

  // Show Mailboxes
  if ($('#sidebar-tag-outbox').find('span.sidebar-notification').html() !== undefined) {
    $('#sidebar-tag-outbox').show();
  }

  // Mousetrap Keybindings
  Mousetrap.bind('shift', function() {
    Mailpile.select_between = true;
  }, 'keydown');

  Mousetrap.bind('shift', function() {
    Mailpile.select_between = false;
  }, 'keyup');

	for (item in Mailpile.keybindings) {
	  var keybinding = Mailpile.keybindings[item];
		if (keybinding[0] == "global") {
			Mousetrap.bindGlobal(keybinding[1], keybinding[2]);
		} else {
      Mousetrap.bind(keybinding[1], keybinding[2]);
		}
	}

};

/* Mailpile - UI - Make fingerprints nicer */
Mailpile.nice_fingerprint = function(fingerprint) {
  // FIXME: I'd really love to make these individual pieces color coded
  // Pertaining to the hex value pairings & even perhaps toggle-able icons
  return fingerprint.split(/(....)/).join(' ');
};


text:
            <md-content class="md-padding">
                <md-card>
                    <md-card-title>
                        <md-card-title-text>

You're going to eat at
{{ place_data.name }}

                        </md-card-title-text>
                    </md-card-title>
                    <md-card-content>

Rating:

 {{ place_data.rating }} / 5

Price Level:

{{place_data.price_level}}

Phone number:
 {{ place_data.phone_number }}

Address:

{{ place_data.address }}

{{place_data.open_now}}

                    </md-card-content>

                        <md-button class="md-raised md-primary" aria-label="Skip">Skip this restaurant</md-button>

                </md-card>

            <md-toolbar class="md-accent">

                        <md-icon class="material-icons">cloud</md-icon>

                        Current Weather Conditions

            </md-toolbar>

                Coming back soon...

            <md-content>

            </md-content>

            <md-toolbar class="md-accent">

                        <md-icon class="material-icons">my_location</md-icon>

                        Redefine your loaction

            </md-toolbar>
            <md-content>
                <form name="customSettings">
                    <md-input-container>
                        <md-icon class="material-icons">location_on</md-icon>
                        <input type="text" placeholder="Search City, State, or Zip" ng-model="locationInput">

                    </md-input-container>

                    <md-input-container>
                        <input type="text" value="1" min="1" max="100" ng-model="radius" placeholder="Radius">
                    </md-input-container>

                    <md-button class="md-raised md-primary" ng-click="customLocation()">Dictate</md-button>
                </form>

            </md-content>

something