text:
#ifndef FloatPolygon_h
#define FloatPolygon_h

#include "platform/PODIntervalTree.h"
#include "platform/geometry/FloatPoint.h"
#include "platform/geometry/FloatRect.h"
#include "platform/graphics/GraphicsTypes.h"
#include "wtf/Allocator.h"
#include "wtf/OwnPtr.h"
#include "wtf/PassOwnPtr.h"
#include "wtf/Vector.h"

namespace blink {

class FloatPolygonEdge;

// This class is used by PODIntervalTree for debugging.
#ifndef NDEBUG
template <class> struct ValueToString;
#endif

class PLATFORM_EXPORT FloatPolygon {
    USING_FAST_MALLOC(FloatPolygon);
    WTF_MAKE_NONCOPYABLE(FloatPolygon);
public:
    FloatPolygon(PassOwnPtr<Vector<FloatPoint>> vertices, WindRule fillRule);

    const FloatPoint& vertexAt(unsigned index) const { return (*m_vertices)[index]; }
    unsigned numberOfVertices() const { return m_vertices->size(); }

    WindRule fillRule() const { return m_fillRule; }

    const FloatPolygonEdge& edgeAt(unsigned index) const { return m_edges[index]; }
    unsigned numberOfEdges() const { return m_edges.size(); }

    FloatRect boundingBox() const { return m_boundingBox; }
    bool overlappingEdges(float minY, float maxY, Vector<const FloatPolygonEdge*>& result) const;
    bool contains(const FloatPoint&) const;
    bool isEmpty() const { return m_empty; }

private:
    typedef PODInterval<float, FloatPolygonEdge*> EdgeInterval;
    typedef PODIntervalTree<float, FloatPolygonEdge*> EdgeIntervalTree;

    bool containsNonZero(const FloatPoint&) const;
    bool containsEvenOdd(const FloatPoint&) const;

    OwnPtr<Vector<FloatPoint>> m_vertices;
    WindRule m_fillRule;
    FloatRect m_boundingBox;
    bool m_empty;
    Vector<FloatPolygonEdge> m_edges;
    EdgeIntervalTree m_edgeTree; // Each EdgeIntervalTree node stores minY, maxY, and a ("UserData") pointer to a FloatPolygonEdge.

};

class PLATFORM_EXPORT VertexPair {
public:
    virtual ~VertexPair() { }

    virtual const FloatPoint& vertex1() const = 0;
    virtual const FloatPoint& vertex2() const = 0;

    float minX() const { return std::min(vertex1().x(), vertex2().x()); }
    float minY() const { return std::min(vertex1().y(), vertex2().y()); }
    float maxX() const { return std::max(vertex1().x(), vertex2().x()); }
    float maxY() const { return std::max(vertex1().y(), vertex2().y()); }

    bool intersection(const VertexPair&, FloatPoint&) const;
};

class PLATFORM_EXPORT FloatPolygonEdge final : public VertexPair {
    DISALLOW_NEW_EXCEPT_PLACEMENT_NEW();
    friend class FloatPolygon;
public:
    const FloatPoint& vertex1() const override
    {
        ASSERT(m_polygon);
        return m_polygon->vertexAt(m_vertexIndex1);
    }

    const FloatPoint& vertex2() const override
    {
        ASSERT(m_polygon);
        return m_polygon->vertexAt(m_vertexIndex2);
    }

    const FloatPolygonEdge& previousEdge() const
    {
        ASSERT(m_polygon && m_polygon->numberOfEdges() > 1);
        return m_polygon->edgeAt((m_edgeIndex + m_polygon->numberOfEdges() - 1) % m_polygon->numberOfEdges());
    }

    const FloatPolygonEdge& nextEdge() const
    {
        ASSERT(m_polygon && m_polygon->numberOfEdges() > 1);
        return m_polygon->edgeAt((m_edgeIndex + 1) % m_polygon->numberOfEdges());
    }

    const FloatPolygon* polygon() const { return m_polygon; }
    unsigned vertexIndex1() const { return m_vertexIndex1; }
    unsigned vertexIndex2() const { return m_vertexIndex2; }
    unsigned edgeIndex() const { return m_edgeIndex; }

private:
    // Edge vertex index1 is less than index2, except the last edge, where index2 is 0. When a polygon edge
    // is defined by 3 or more colinear vertices, index2 can be the the index of the last colinear vertex.
    unsigned m_vertexIndex1;
    unsigned m_vertexIndex2;
    unsigned m_edgeIndex;
    const FloatPolygon* m_polygon;
};

// These structures are used by PODIntervalTree for debugging.
#ifndef NDEBUG
template <> struct ValueToString<float> {
    STATIC_ONLY(ValueToString);
    static String toString(const float value) { return String::number(value); }
};

template<> struct ValueToString<FloatPolygonEdge*> {
    STATIC_ONLY(ValueToString);
    static String toString(const FloatPolygonEdge* edge) { return String::format("%p (%f,%f %f,%f)", edge, edge->vertex1().x(), edge->vertex1().y(), edge->vertex2().x(), edge->vertex2().y()); }
};
#endif

} // namespace blink

#endif // FloatPolygon_h


text:
'use strict';

var db = require('../../database');

module.exports = {
	name: 'Set default allowed file extensions',
	timestamp: Date.UTC(2017, 3, 14),
	method: function (callback) {
		db.getObjectField('config', 'allowedFileExtensions', function (err, value) {
			if (err || value) {
				return callback(err);
			}
			db.setObjectField('config', 'allowedFileExtensions', 'png,jpg,bmp', callback);
		});
	},
};

redpajama_set_name: RedPajamaGithub


text:
Have trouble finding files because of inconsistent naming?

Use the file rename utility to implement and maintain consistent file naming within a folder and all its child folders.

## Getting Started

### Prerequisites

This project is dependent on the [Google Apps Script](https://developers.google.com/apps-script/) environment.

### Installing

Upload the script with [clasp](https://developers.google.com/apps-script/guides/clasp#upload)

```
Configure your desired folder id and prefix
```
```
Run the  script once from the script editor to authorize it (from the Code file, Run -> Run Functions -> main)
```
```
Set a daily trigger for main to maintain consistent naming for ever more  (Edit -> Current Project's Triggers).
```

## Running the tests

```
Run the main() function from the Editor to test it.
```

## Built With

[Google Apps Script](https://developers.google.com/apps-script/)

## License

This project is licensed under the Apache License - see the [LICENSE.gs](LICENSE.gs) file for details


text:
import Ember from 'ember';
import DS from 'ember-data';
import SettingsSaveMixin from 'ghost/mixins/settings-save';
import ValidationEngine from 'ghost/mixins/validation-engine';
import DateFormatter from '../utils/date-formatting';
import {request as ajax} from 'ic-ajax';

const REQUIRED_FILES = ['city', 'country', 'arrival', 'coords'];

export const LocationItem = Ember.Object.extend(ValidationEngine, {
    city: '',
    country: '',
    departure: '',
    arrival: '',
    coords: '',

    last: false,

    validationType: 'navItem',

    isComplete: Ember.computed('city', 'country', 'arrival', 'coords', function () {
       return REQUIRED_FILES.every(function(field){
            return !!this.get(field);
        }, this);
    }),

    init: function () {
        this._super(...arguments);
        this.set('errors', DS.Errors.create());
        this.set('hasValidated', Ember.A());
    }
});

export default Ember.Controller.extend(SettingsSaveMixin, {
    config: Ember.inject.service(),
    notifications: Ember.inject.service(),

    locations: Ember.computed('model.locations', function () {
        var list = this.get('model.locations').sort(function(a, b) {
            return a.arrival - b.arrival
        }).map(function (data, index) {
            return LocationItem.create(data);
        });

        list.push(LocationItem.create({last: true}));
        return list//.reverse();
    }),

    updateLastNavItem: Ember.observer('locations.[]', function () {
        var navItems = this.get('locations');

        navItems.forEach(function (item, index, items) {
            if (index === (items.length - 1)) {
                item.set('last', true);
            } else {
                item.set('last', false);
            }
        });
    }),

    save: function () {
        var navSetting,
            locations = this.get('locations'),
            notifications = this.get('notifications'),
            self = this;

        return new Promise(function(resolve, reject){
            var data = self.get('locations').map(function (item) {
                if (item.get('last') && !item.get('isComplete')) {
                    return null;
                }

                return item.getProperties(
                    'city',
                    'country',
                    'arrival',
                    'departure',
                    'coords',
                    'id',
                    'location_id'
                );
            });

            resolve(data.compact());
        }).then(function (data) {
            return ajax({
                url: '_api/log',
                type: 'PATCH',
                dataType: 'json',
                data: {
                    locations: data
                }
            });
        })/*.then(function(){
            //self.set('model.locations', data);

            // trigger change event because even if the final JSON is unchanged
            // we need to have navigationItems recomputed.
            // self.get('model').notifyPropertyChange('locations');

            /*return self.get('model').save().catch(function (err) {
                notifications.showErrors(err);
            });
        })*/.catch(function (err) {
            console.log(err);
            notifications.showErrors(err);
            // TODO: noop - needed to satisfy spinner button
        });
    },

    actions: {
        addItem: function () {
            var navItems = this.get('locations'),
                lastItem = navItems.get('lastObject');

            if (lastItem && lastItem.get('isComplete')) {
                navItems.addObject(LocationItem.create({last: true})); // Adds new blank navItem
            }
        },

        deleteItem: function (item) {
            if (!item) {
                return;
            }

            var navItems = this.get('locations');

            navItems.removeObject(item);
        }
    }
});


text:
A single page Shopping Cart web applications with many necessary features of an ecommerce application.

### Latest developments are shifted to codecanyon

# Requirements
Install the following 2 softwares

1.    Node http://nodejs.org/ (Server)
2.    MongoDB https://www.mongodb.org/ (Database)

# Install
Run the following commands and the application will start automatically

1.    npm install yo -g (Install yeoman for scaffolding web application)
2.    npm install grunt-cli -g (This creates and runs javascript repetative tasks )
3.    npm install bower -g ( A frontend package manager for web applications)
4.    npm install (Install all nodejs dependencies, also automatically installs bower components)
5.    grunt serve

# Features
### Store Front features
*  Single page web app (SPA) created using AngularJS, NodeJS, Express, MongoDB (MEAN)
*  Fastest shop experience
*  Fast Product Search, Filter with AJAX
*  Price slider and multiple brand selector
*  Faster Add to Cart and Product Details
*  Checkout with Paypal Integration
*  Minimal User Registration process
*  Order history and Password Management
*  Facility for Multi level Category
*  Mobile optimized with Bootstrap
*  Instant updates for any changes made across all clients with SocketIO implementation
*  Loads more products on scroll (No paging required)

### Store Back Office
*  Products, Categories, Brand, Order Management from admin panel with easy directives
*  Manage Order and Change Status from admin panel
*  Facility for Multiple product variants (size, color, price, image)
*  User roles - Administrator, User, Guest
*  SEO friendly URLs for each page
*  Secure and quality code - Takes care all single page web app standards

### Future Plan
* Plan to add OAUTH login with facebook, gmail, twitter


text:
package Tool;

import android.app.Activity;
import android.util.Log;

import com.example.admin.erp.MainActivity;
import com.google.gson.Gson;
import org.json.JSONArray;
import org.json.JSONException;
import org.json.JSONObject;

import java.util.ArrayList;
import java.util.Collections;

import Tool.statistics.AchacheConstant;
import Tool.statistics.Statics;
import broadcast.BroadCastTool;
import broadcast.TYPE;
import model.javabean.AccountReason;
import model.javabean.AccountType;
import model.javabean.Customer;
import model.javabean.CustomerBillingStatistics;
import model.javabean.ExpressNumberManagement;
import model.javabean.ExpressPerson;
import model.javabean.ExpressPersonStatistic;
import model.javabean.ExpressPersonStatisticsXiangqing;
import model.javabean.ExpressPieceCountMonth;
import model.javabean.TimeBillingStatistics;
import model.javabean.TimeExpressStatistics;
import model.javabean.XiangxiBillingStatistics;
import ui.activity.AddExpressBillingManagerActivity;
import ui.activity.BillingStatisticsActivity;
import ui.activity.ExpressBillingManagementActivity;
import ui.activity.ExpressNumberManagerActivity;
import ui.activity.ExpressStatisticsActivity;
import ui.activity.LogisticsReportActivity;
import ui.fragement.ExpressPiecesDetailsChartsFragementActivity;

/**
 * Created by admin on 2017/2/21.
 */

public class JsonResolve {
    final static int[] sizeTable = {9, 99, 999, 9999, 99999, 999999, 9999999,
            99999999, 999999999, Integer.MAX_VALUE};
    static ACache aCache;
    public static void jsonAccountReasonSearch(String json, Activity activity) {//详细
        try {
            aCache = ACache.get(activity);
            //解析前先清空
            JSONArray jsonArray = new JSONArray(json);
            JSONObject jsonObject = jsonArray.getJSONObject(0);
            JSONArray jsonArray1 = jsonObject.getJSONArray("data");
            //Statics.accountReasonList.clear();
            ArrayList<AccountReason> arrayList = new ArrayList<>();
            for (int i = 0; i < jsonArray1.length(); i++) {
                JSONObject jsonObject1 = jsonArray1.getJSONObject(i);
                String id = jsonObject1.getString("id");
                String name = jsonObject1.getString("name");
                AccountReason accountReason = new AccountReason(id, name);
                arrayList.add(accountReason);
                accountReason = null;
                Log.v("test2", "name:" + name);
                Log.v("test2", "------------");
            }
            aCache.put(AchacheConstant.ACCOUNT_REASON_LIST,arrayList,1 * ACache.TIME_DAY);//存储到缓存
            //刷新
            Statics.data_list.clear();
            for (int i = 0; i < arrayList.size(); i++) {
                Statics.data_list.add(arrayList.get(i).getName());
                Log.v("test2", "data_list1:" + arrayList.get(i).getName());

            }
            if(Statics.ActivityType!=null&&!Statics.ActivityType.equals("")){
                if(Statics.ActivityType.equals("addExpress")){//更新add添加页面
                    BroadCastTool.sendMyBroadcast(TYPE.NORMAL,activity,"addReasonSpinner");
                    AddExpressBillingManagerActivity.AdapterRefresh("reasonSpinner");
                    Statics.ActivityType = "";
                    Log.d("aleand","发送广播");

                }else if(Statics.ActivityType.equals("ExpressBillingManagementActivity")){//更新search显示检索页面
                    BroadCastTool.sendMyBroadcast(TYPE.NORMAL,activity,"SearchReasonSpinner");
                    ExpressBillingManagementActivity.AdapterRefresh("reasonSpinner");
                    Log.d("aleand","发送广播");
                    Statics.ActivityType = "";
                }else if(Statics.ActivityType.equals("LogisticsReportActivity")){
                    Log.d("kl3kl","二级联动");
                    for (int i = 0; i < arrayList.size(); i++) {
                        Statics.data_list.add(arrayList.get(i).getName());
                        Log.v("ki9", "sssss:" + arrayList.get(i).getName());
                    }
                    BroadCastTool.sendMyBroadcast(TYPE.NORMAL,activity,"SearchReasonSpinner1");
                    LogisticsReportActivity.AdapterRefresh("reasonSpinner");
                    Log.d("aleand","发送广播");
                    Statics.ActivityType = "";
                }
            }

        } catch (JSONException e) {
            // TODO Auto-generated catch block
            e.printStackTrace();
        }

    }

    public static void jsonAccountTypeSearch(String json,Activity Activity) {//快递类型 圆通韵达
        ArrayList<AccountType> accountTypeList;
        try {
            //解析前先清空
            JSONArray jsonArray = new JSONArray(json);
            JSONObject jsonObject = jsonArray.getJSONObject(0);
            JSONArray jsonArray1 = jsonObject.getJSONArray("data");
            //Statics.accountTypeList.clear();
            accountTypeList = new ArrayList<>();
            for (int i = 0; i < jsonArray1.length(); i++) {
                JSONObject jsonObject1 = jsonArray1.getJSONObject(i);
                String id = jsonObject1.getString("id");
                String name = jsonObject1.getString("name");
                AccountType accountType = new AccountType(id, name);
                accountTypeList.add(accountType);
                accountType = null;
            }
            //保存到缓存当中
            aCache = ACache.get(Activity);
            aCache.put(AchacheConstant.ACCOUNT_TYPE_LIST,accountTypeList,1 * ACache.TIME_DAY);
        } catch (JSONException e) {
            // TODO Auto-generated catch block
            e.printStackTrace();
        }

    }

    public static void jsonCustomerAllSearch(String json,Activity activity) {//快递类型 圆通韵达
        try {
            aCache = ACache.get(activity);
            //解析前先清空
            JSONArray jsonArray = new JSONArray(json);
            JSONObject jsonObject = jsonArray.getJSONObject(0);
            JSONArray jsonArray1 = jsonObject.getJSONArray("data");
            ArrayList<Customer> tempList = new ArrayList<>();
            aCache.remove(AchacheConstant.CUSTOMER_LIST);
            //Statics.customerList.clear();
            for (int i = 0; i < jsonArray1.length(); i++) {
                JSONObject jsonObject1 = jsonArray1.getJSONObject(i);
                String id = jsonObject1.getString("id");
                String name = jsonObject1.getString("name");
                Customer customer = new Customer(id, name);
                tempList.add(customer);
                //Statics.customerList.add(customer);
                customer = null;
            }
            aCache.put(AchacheConstant.CUSTOMER_LIST,tempList,1 * ACache.TIME_DAY);
        } catch (JSONException e) {
            // TODO Auto-generated catch block
            e.printStackTrace();
        }

    }

    //json解析 账单统计
    public static void jsonSearchTime(String json, Activity activity,String activityType) {
        Log.d("JsonResolve", json + "sss");
        try {
            //解析前先清空
            JSONArray jsonArray = new JSONArray(json);
            JSONObject jsonObject = jsonArray.getJSONObject(0);
            JSONArray jsonArray1 = jsonObject.getJSONArray("data");
            Statics.timeBillingStatisticsList.clear();
            for (int i = 0; i < jsonArray1.length(); i++) {
                JSONObject jsonObject1 = jsonArray1.getJSONObject(i);
                String income = jsonObject1.getString("jz1");
                String imbanlance = jsonObject1.getString("ce");
                String outcome = jsonObject1.getString("cz1");
                //String type = jsonObject1.getString("type");
                String year = jsonObject1.getString("ye");
                String month = jsonObject1.getString("mon");
                TimeBillingStatistics timeBillingStatistics = new TimeBillingStatistics(month, income, outcome, imbanlance);
                Statics.timeBillingStatisticsList.add(timeBillingStatistics);
                timeBillingStatistics = null;
            }
            //刷新异步刷新
            //BillingStatisticsActivity billingStatisticsActivity = new BillingStatisticsActivity();
            if(activityType.equals("LogisticsReportActivity")){
                Log.d("JsonResolve", "LogisticsReportActivity");
                LogisticsReportActivity.AdapterRefresh("timeAdapter");
            }else{
                BillingStatisticsActivity.AdapterRefresh("timeAdapter");
                Log.d("JsonResolve", "BillingStatisticsActivity");
            }
            //BillingStatisticsActivity.timeAdapter.notifyDataSetChanged();

        } catch (JSONException e) {
            // TODO Auto-generated catch block
            e.printStackTrace();
            //没有数据时处理
            Statics.timeBillingStatisticsList.clear();
            if(activityType.equals("LogisticsReportActivity")){
                Log.d("JsonResolve", "LogisticsReportActivity");
                LogisticsReportActivity.AdapterRefresh("timeAdapter");
            }else{
                BillingStatisticsActivity.AdapterRefresh("timeAdapter");
                Log.d("JsonResolve", "BillingStatisticsActivity");
            }
        }
    }

    public static void jsonExpressSearchYear(String json) {
        try {
            //解析前先清空
            JSONArray jsonArray = new JSONArray(json);
            JSONObject jsonObject = jsonArray.getJSONObject(0);
            JSONArray jsonArray1 = jsonObject.getJSONArray("data");
            Statics.expressYear.clear();

            for (int i = 0; i < jsonArray1.length(); i++) {
                Statics.expressYear.add(jsonArray1.get(i).toString());
                Log.d("tes99","oni:::"+jsonArray1.get(i).toString());
                Log.d("tes99","Constants:::"+Statics.expressYear.get(i));
            }
        } catch (JSONException e) {
            // TODO Auto-generated catch block
            e.printStackTrace();
        }
    }

    public static void jsonBillingSearchYear(String json) {
        try {
            //解析前先清空
            JSONArray jsonArray = new JSONArray(json);
            JSONObject jsonObject = jsonArray.getJSONObject(0);
            JSONArray jsonArray1 = jsonObject.getJSONArray("data");
            Statics.billingYear.clear();

            for (int i = 0; i < jsonArray1.length(); i++) {
                Statics.billingYear.add(jsonArray1.get(i).toString());
                Log.d("tes99","oni:::"+jsonArray1.get(i).toString());
                Log.d("tes99","Constants:::"+Statics.billingYear.get(i));
            }
        } catch (JSONException e) {
            // TODO Auto-generated catch block
            e.printStackTrace();
        }
    }

    public static boolean jsonSearchPieceCountMonth(String json) {
        ExpressPiecesDetailsChartsFragementActivity epdcfAction =new ExpressPiecesDetailsChartsFragementActivity();
        try {
            //解析前先清空
            JSONArray jsonArray = new JSONArray(json);
            JSONObject jsonObject = jsonArray.getJSONObject(0);
            JSONArray jsonArray1 = jsonObject.getJSONArray("data");
            Statics.expressPieceCountMonthsList.clear();
            for (int i=0;i<jsonArray1.length();i++){
                JSONObject jsonObject2 =jsonArray1.getJSONObject(i);
                String month = jsonObject2.getString("month");
                String sum =  jsonObject2.getString("sum");
                String day =  jsonObject2.getString("day");
                ExpressPieceCountMonth expressPieceCountMonth =new ExpressPieceCountMonth(month,sum,day);
                Statics.expressPieceCountMonthsList.add(expressPieceCountMonth);
                Log.v("sum",sum);
            }
        } catch (JSONException e) {
            // TODO Auto-generated catch block
            e.printStackTrace();
        }

        return true;
    }

    public static boolean jsonSearchPersonMonthPiece(String json) {
        ExpressPiecesDetailsChartsFragementActivity epdcfAction =new ExpressPiecesDetailsChartsFragementActivity();
        try {
            //解析前先清空
            JSONArray jsonArray = new JSONArray(json);
            JSONObject jsonObject = jsonArray.getJSONObject(0);
            JSONArray jsonArray1 = jsonObject.getJSONArray("data");
            Statics.epmsXList=new String[jsonArray1.length()];
            Log.d("adad",jsonArray1.get(0).toString());
            for (int i=0;i<jsonArray1.length();i++){
                Statics.epmsXList[i]=jsonArray1.get(i).toString();
                Log.d("yui",Statics.epmsXList[i]);
            }

        } catch (JSONException e) {
            // TODO Auto-generated catch block
            e.printStackTrace();
        }

        return true;
    }

    public static void jsonSearchCustomer(String json, Activity activity) {
        try {
            //解析前先清空
            JSONArray jsonArray = new JSONArray(json);
            JSONObject jsonObject = jsonArray.getJSONObject(0);
            String result = jsonObject.getString("message");
            if ("失败!".equals(result)) {//没有数据时的处理
                Statics.customerBillingStatisticsArrayList.clear();
                //BillingStatisticsActivity billingStatisticsActivity = new BillingStatisticsActivity();
                BillingStatisticsActivity.AdapterRefresh("customerAdapter");
                return;
            }
            JSONArray jsonArray1 = jsonObject.getJSONArray("data");
            Statics.customerBillingStatisticsArrayList.clear();
            for (int i = 0; i < jsonArray1.length(); i++) {
                JSONObject jsonObject1 = jsonArray1.getJSONObject(i);
                String income = jsonObject1.getString("jz1");
                String imbanlance = jsonObject1.getString("ce");
                String outcome = jsonObject1.getString("cz1");
                //String type = jsonObject1.getString("type");
                String month = jsonObject1.getString("mon");
                String customer = jsonObject1.getString("name");
                String id = jsonObject1.getString("id");
                CustomerBillingStatistics customerBillingStatistics = new CustomerBillingStatistics(id, month, customer, income, outcome, imbanlance);
                Statics.customerBillingStatisticsArrayList.add(customerBillingStatistics);
                customerBillingStatistics = null;
            }
            //刷新异步刷新
            //BillingStatisticsActivity billingStatisticsActivity = new BillingStatisticsActivity();
            if("LogisticsReportActivity".equals(Statics.ActivityType)){
                Log.d("klkl","进入"+json);
                LogisticsReportActivity.AdapterRefresh("customerAdapter");
                Statics.ActivityType = "";
            }else {
                Log.d("klkl","进入x"+json);
                BillingStatisticsActivity.AdapterRefresh("customerAdapter");
            }

        } catch (JSONException e) {
            // TODO Auto-generated catch block
            e.printStackTrace();
        }
    }

    public static void jsonSearchXiangxi(String json, Activity activity) {
        Log.d("JsonResolve", "详细" + json);
            Statics.xiangxiBillingStatisticsArrayList.clear();
            XiangxiBillingStatistics[] as = new Gson().fromJson(json, XiangxiBillingStatistics[].class);
            Collections.addAll(Statics.xiangxiBillingStatisticsArrayList,as);//转化arrayList

            if("LogisticsReportActivity".equals(Statics.ActivityType)){
                LogisticsReportActivity.AdapterRefresh("xiangxiAdapter");
                Statics.ActivityType = "";
            }else{
                BillingStatisticsActivity.AdapterRefresh("xiangxiAdapter");
            }

        /*} catch (JSONException e) {
            // TODO Auto-generated catch block
            e.printStackTrace();
        }*/
    }

    //业务员揽件量
    public static void jsonExpressionSearchCount(String json, Activity activity, String rows) {
        ExpressNumberManagerActivity expressNumberManagerActivity = new ExpressNumberManagerActivity();
        try {
            //解析前先清空
            JSONArray jsonArray = new JSONArray(json);
            JSONObject jsonObject = jsonArray.getJSONObject(0);
            JSONArray jsonArray1 = jsonObject.getJSONArray("data");
            JSONObject jsonObject1 = jsonArray1.getJSONObject(0);
            String total = jsonObject1.get("total").toString();
            Statics.page = (Integer.parseInt(total) + Integer.parseInt(rows) - 1) / Integer.parseInt(rows);
            JSONArray jsonArray2 = jsonObject1.getJSONArray("rows");
            Log.d("JsonResolve", "详细信息:" + json);
            //Statics.enmList.clear();
            ArrayList<ExpressNumberManagement> temps =new ArrayList<>();
            for (int k = 0; k < jsonArray2.length(); k++) {
                JSONObject jsonObject2 = jsonArray2.getJSONObject(k);
                String id = jsonObject2.getString("id");
                String type = jsonObject2.getString("type");
                Log.d("JsonResolve", "json:::" + k + "oop" + type);
                String expresscount = jsonObject2.getString("numeric");//在刷新时返回的json数据没有这个字段
                String expressName = jsonObject2.getString("nameId");//name
                String remark = jsonObject2.getString("description");
                JSONObject jsonObject3 = jsonArray2.getJSONObject(k);
                JSONObject jsonObject4 = jsonObject3.getJSONObject("billingTime");
                String billingtime = jsonObject4.getString("time");
                String month = jsonObject4.getString("month");
                String day = jsonObject4.getString("date");
                String year = jsonObject4.getString("year");
                Log.d("test4", "billingTime" + billingtime);
                Log.d("test45", "ddd" + billingtime);
                //----------------------------------------------------------------------------------
                year = ToolUtils.timeDateFormat(year);
                StringBuffer sb = new StringBuffer();
                int temp = Integer.parseInt(month);

                sb.append(year).append("-").append(++temp).append("-").append(day);

                ExpressNumberManagement expressNumberManagement = new ExpressNumberManagement(id, expressName, type, expresscount, sb.toString(), remark);
                //Statics.enmList.add(expressNumberManagement);
                temps.add(expressNumberManagement);
                expressNumberManagement = null;
            }
            //temps = Statics.enmList;
            if(Statics.isPageUpload){//如果是翻页动作,则不清除以前的数据
                /*Log.d("ExpressBillingManagemen", "翻页,数"+Statics.expressManagementList.get(0).getData().get(0).getRows().size());
                Log.d("ExpressBillingManagemen", "翻页,数1:"+temp.get(0).getData().get(0).getRows().size());
                Statics.expressManagementList.get(0).getData().get(0).getRows().addAll(fc[0].getData().get(0).getRows());
                Log.d("ExpressBillingManagemen", "翻页,数"+Statics.expressManagementList.get(0).getData().get(0).getRows().size());*/
                Statics.enmList.addAll(temps);
                temps.clear();

            }else {
                Statics.enmList.clear();
                Statics.enmList = temps;

            }
            Statics.isPageUpload = false;
            //刷新
            expressNumberManagerActivity.AdapterRefresh("accountManagementAdapter");

        }
        catch (JSONException e) {
            e.printStackTrace();
            Log.d("JsonResolve", "没有返回numeric这个字段");
        }

    }

    public static void jsonExpressPersonAllSearch(String json) {//获取快递员姓名
        try {
            //解析前先清空
            JSONArray jsonArray = new JSONArray(json);
            JSONObject jsonObject = jsonArray.getJSONObject(0);
            JSONArray jsonArray1 = jsonObject.getJSONArray("data");
            Statics.expressPersonsList.clear();
            for (int i = 0; i < jsonArray1.length(); i++) {
                JSONObject jsonObject1 = jsonArray1.getJSONObject(i);
                String id = jsonObject1.getString("id");
                String name = jsonObject1.getString("name");
                ExpressPerson expressPerson = new ExpressPerson(id, name);
                Statics.expressPersonsList.add(expressPerson);
                expressPerson = null;
            }

        } catch (JSONException e) {
            // TODO Auto-generated catch block
            e.printStackTrace();
        }

    }

    //json解析 快递月份统计
    public static void jsonExpressSearchTime(String json, Activity activity) {
        try {
            //解析前先清空
            JSONArray jsonArray = new JSONArray(json);
            JSONObject jsonObject = jsonArray.getJSONObject(0);
            JSONArray jsonArray1 = jsonObject.getJSONArray("data");
            Statics.expressTimeList.clear();
            for (int i = 0; i < jsonArray1.length(); i++) {
                JSONObject jsonObject1 = jsonArray1.getJSONObject(i);
                String month = jsonObject1.getString("month");
                String year = jsonObject1.getString("year");
                String sum = jsonObject1.getString("sum");
                TimeExpressStatistics timeBillingStatistics = new TimeExpressStatistics(month, year, sum);
                Statics.expressTimeList.add(timeBillingStatistics);
                timeBillingStatistics = null;
            }
            //刷新异步刷新

            //ExpressStatisticsActivity expressStatisticsActivity = new ExpressStatisticsActivity();
            ExpressStatisticsActivity.AdapterRefresh("timeAdapter");

        } catch (JSONException e) {
            // TODO Auto-generated catch block
            e.printStackTrace();
        }
    }

    public static void jsonSearchExpressPerson(String json, Activity activity) {//快递员统计解析
        try {
            //解析前先清空
            JSONArray jsonArray = new JSONArray(json);
            JSONObject jsonObject = jsonArray.getJSONObject(0);
            String result = jsonObject.getString("message");
            if ("失败!".equals(result)) {//没有数据时的处理
                Statics.expressPersonStatisticList.clear();
                //ExpressStatisticsActivity expressStatisticsActivity = new ExpressStatisticsActivity();
                ExpressStatisticsActivity.AdapterRefresh("expressPersonAdapter");
                return;
            }
            JSONArray jsonArray1 = jsonObject.getJSONArray("data");
            Statics.expressPersonStatisticList.clear();
            for (int i = 0; i < jsonArray1.length(); i++) {
                JSONObject jsonObject1 = jsonArray1.getJSONObject(i);
                String month = jsonObject1.getString("month");
                String name = jsonObject1.getString("name");
                String sum = jsonObject1.getString("sum");
                String name_id = jsonObject1.getString("name_id");
                ExpressPersonStatistic expressPersonStatistic = new ExpressPersonStatistic(name_id ,month, name, sum);
                Statics.expressPersonStatisticList.add(expressPersonStatistic);
                expressPersonStatistic = null;
            }
            //刷新异步刷新
            //ExpressStatisticsActivity expressStatisticsActivity = new ExpressStatisticsActivity();
            ExpressStatisticsActivity.AdapterRefresh("expressPersonAdapter");
        } catch (JSONException e) {
            // TODO Auto-generated catch block
            e.printStackTrace();
        }
    }

    public static void jsonSearchExpressPersonStatisticXiangxi(String json) {//快递员统计详情
        try {
            //解析前先清空
            JSONArray jsonArray = new JSONArray(json);
            JSONObject jsonObject = jsonArray.getJSONObject(0);
            JSONArray jsonArray1 = jsonObject.getJSONArray("data");

            Statics.epsXList.clear();
            Log.d("tasts","------------------------------");
            for (int i = 0; i < jsonArray1.length(); i++) {
                JSONObject jsonObject1 = jsonArray1.getJSONObject(i);
                String name = jsonObject1.getString("name");
                String numeric = jsonObject1.getString("numeric");
                String description = jsonObject1.getString("description");
                Log.d("tasts","POO+"+description);
                String id = jsonObject1.getString("id");
                String type = jsonObject1.getString("type");
                String type1 = jsonObject1.getString("type1");
                String name_id = jsonObject1.getString("name_id");
                Log.d("tasts","POO+"+name_id+"ssd"+type);
                JSONObject jsonObject2 = jsonObject1.getJSONObject("date");
                String year = jsonObject2.getString("year");
                String month = jsonObject2.getString("month");
                String day = jsonObject2.getString("date");
                String time = jsonObject2.getString("time");
                Log.d("longfei",year+"year"+month+"month"+day+"day");

                //----------------------------------------------------------------------------------
                year = ToolUtils.timeDateFormat(year);
                StringBuffer sb=new StringBuffer();
                int temp = Integer.parseInt(month);

                sb.append(year).append("-").append(++temp).append("-").append(day);

                ExpressPersonStatisticsXiangqing epsXiangqing = new ExpressPersonStatisticsXiangqing(
                       sb.toString(),name, numeric, description, id, type,type1,name_id);
                Statics.epsXList.add(epsXiangqing);
                epsXiangqing = null;
            }
            //刷新异步刷新
                //ExpressStatisticsActivity expressStatisticsActivity = new ExpressStatisticsActivity();
                ExpressStatisticsActivity.AdapterRefresh("xiangxiAdapter");
        } catch (JSONException e) {
            // TODO Auto-generated catch block
            e.printStackTrace();
        }
    }

}


text:
PP2_Demo
========

this repo is designed for the 2014/2015 Protein Prediction 2 course for TU-München

this code is from the tutorial showed by Corey,
http://spareinformatics.blogspot.de/2014/02/converting-genbank-files-to-json-in.html


text:
$CommandName = $MyInvocation.MyCommand.Name.Replace(".Tests.ps1", "")
Write-Host -Object "Running $PSCommandPath" -ForegroundColor Cyan
. "$PSScriptRoot\constants.ps1"

Describe "$CommandName Unit Tests" -Tag 'UnitTests' {
    Context "Validate parameters" {
        [object[]]$params = (Get-Command $CommandName).Parameters.Keys | Where-Object { $_ -notin ('whatif', 'confirm') }
        [object[]]$knownParameters = 'ComputerName', 'Credential', 'EnableException', 'ProcessId'
        $knownParameters += [System.Management.Automation.PSCmdlet]::CommonParameters
        It "Should only contain our specific parameters" {
            (@(Compare-Object -ReferenceObject ($knownParameters | Where-Object { $_ }) -DifferenceObject $params).Count ) | Should Be 0
        }
    }
}

Describe "$CommandName Integration Tests" -Tags "IntegrationTests" {
    Context "Can stop an external process" {
        BeforeAll {
            $null = Invoke-DbaQuery -SqlInstance $script:instance1 -Query "
            -- To allow advanced options to be changed.
            EXECUTE sp_configure 'show advanced options', 1;
            GO
            -- To update the currently configured value for advanced options.
            RECONFIGURE;
            GO
            -- To enable the feature.
            EXECUTE sp_configure 'xp_cmdshell', 1;
            GO
            -- To update the currently configured value for this feature.
            RECONFIGURE;
            GO"

            $query = @"
            xp_cmdshell 'powershell -command ""sleep 20""'
"@
            Start-Process -FilePath sqlcmd -ArgumentList "-S $script:instance1 -Q `"$query`"" -NoNewWindow -RedirectStandardOutput null
        }

        It "returns results" {
            $results = Get-DbaExternalProcess -ComputerName localhost | Select-Object -First 1 | Stop-DbaExternalProcess -Confirm:$false
            $results.ComputerName | Should -Be "localhost"
            $results.Name | Should -Be "cmd.exe"
            $results.ProcessId | Should -Not -Be $null
            $results.Status | Should -Be "Stopped"
        }
    }
}


text:
namespace Neutronium.Core.Infra
{
    public struct MayBe<T>
    {
        public bool Success { get; }
        public object TentativeValue { get; }
        public T Value { get; }

        public MayBe(object tentativeValue)
        {
            TentativeValue = tentativeValue;
            Success = (TentativeValue is T) || (typeof(T).IsClass && TentativeValue == null);
            Value = Success ? (T) TentativeValue : default(T);
        }

        public MayBe(T value)
        {
            TentativeValue = value;
            Success = true;
            Value = value;
        }
    }
}


text:
using System;
using Windows.Devices.Geolocation;
using Windows.UI.Xaml.Data;
using AugmentedSzczecin.Models;

namespace AugmentedSzczecin.Converters
{
    public class PoiToGeopointConverter : IValueConverter
    {
        public object Convert(object value, Type targetType, object parameter, string language)
        {
            PointOfInterest poi = (PointOfInterest)value;
            if (poi.Location != null)
            {
                if (poi.Location.Latitude > -90 && poi.Location.Latitude < 90 && poi.Location.Longitude > -180 && poi.Location.Longitude < 180)
                {
                    return new Geopoint(new BasicGeoposition() { Latitude = poi.Location.Latitude, Longitude = poi.Location.Longitude });
                }
            }
            return null;
        }

        public object ConvertBack(object value, Type targetType, object parameter, string language)
        {
            throw new NotImplementedException();
        }
    }
}


text:
//base_env.c
#include <stdio.h>
#include <stdlib.h>
#include "lisp_interpreter.h"
#include "lisp_value.h"
#include "lisp_env.h"
#include "base_env.h"

//BUILTIN FUNCTIONS: + - * / magnitude quotient modulo remainder = eqv? < > integer? string? char?
//list? bool? quote car cdr cons if display exit define lambda set? let let* letrec unquote
//quasiquote unquote-splicing

Env *baseEnv;
LispVal BASE_nil;

char initBaseEnv(){
	BASE_nil = BASE_NIL;
	Attribute baseAttrs[] = {
		{"nil", BASE_nil},
		/*
		{"min", BASE_min},
		{"max", BASE_max},
		{"magnitude", BASE_magnitude},
		{"remainder", BASE_remainder},
		{">=", BASE_gte},
		{"<=", BASE_lte},
		{"zero?", BASE_zero},
		{"positive?", BASE_positive},
		{"negative?", BASE_negative},
		{"list", BASE_list},
		{"length", BASE_length},
		{"append", BASE_append},
		{"reverse", BASE_reverse},
		{"null?", BASE_null},
		{"apply", BASE_apply},
		{"map", BASE_map},
		{"do", BASE_do},
		{"cond", BASE_cond},
		{"case", BASE_case},
		{"begin", BASE_begin},
		*/
		{NULL, BASE_NYI},
	};
	baseEnv = createEnvFrom(baseAttrs);
	return 1;
}


text:
package Jetstorm.Enterprise.Entities.Pokemon;

public class Nidorino extends Pokemon {

	public Nidorino(int startingLevel) {

		species = "NIDORINO";
		nickname = "NIDORINO";
		typeOne = 3; // poison
		typeTwo = 18;
		pkmNumber = 33;
		abilityOne = 1; // poison point or rivalry
		hiddenAbility = 1; // hustle
		friendship = 70;
		bodyStyle = 8; // four legs body head
		pokemonColor = 7; // purple
		eggGroup = 1; // monster
		secondEggGroup = 5; // field
		height = 0.9; // meters standard
		weight = 19.5; // kg standard
		hatchTime = 5355; // Lowest
		levelStyle = "Medium Slow";
		baseExpYield = 128;
		EVYield[0] = 0;
		EVYield[1] = 2;
		EVYield[2] = 0;
		EVYield[3] = 0;
		EVYield[4] = 0;
		EVYield[5] = 0;
		genderRatio = 1;
		catchRate = 120;
		baseHealth = 61;
		baseAttack = 72;
		baseDefense = 57;
		baseSpAttack = 55;
		baseSpDefense = 55;
		baseSpeed = 65;
		super.init(startingLevel);

	}

}


text:
import {auth} from 'config'

export default /*@ngInject*/ ($rootScope, $scope, $state) => {

    $scope.login = () => auth.keycloak.login();
    $scope.logout = () => auth.keycloak.logout({redirectUri: $state.href('layout.home', {}, {absolute: true})});

};


text:
tiConf2014
==========

tiConf 2014 Titanium Mobile App


text:
package fr.pizzeria.admin.web.ouiche;

import java.io.IOException;
import java.util.List;

import javax.inject.Inject;
import javax.servlet.RequestDispatcher;
import javax.servlet.ServletException;
import javax.servlet.annotation.WebServlet;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import fr.pizzeria.admin.metier.IngredientService;
import fr.pizzeria.admin.metier.OuicheService;
import fr.pizzeria.model.Pizza;

/**
 * Contrôleur de la page Liste des pizzas.
 */
@WebServlet("/ouiches/liste")
public class ListerRecenteOuicheController extends HttpServlet {

	private static final String VUE_LISTER_OUICHES = "/WEB-INF/views/ouiches/listerOuiches.jsp";

	@Inject
	private OuicheService ouicheService;

	@Inject
	private IngredientService ingredientService;

	@Override
	protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {
	    req.setAttribute("listePizzas", this.ouicheService.findNewestPizzaByName());
		RequestDispatcher dispatcher = this.getServletContext().getRequestDispatcher(VUE_LISTER_OUICHES);
		dispatcher.forward(req, resp);
	}

	@Override
	protected void doPost(HttpServletRequest request, HttpServletResponse response)
					throws ServletException, IOException {

		Integer id = Integer.valueOf(request.getParameter("id"));

		Pizza editerPizza = this.ouicheService.findById(id);

		editerPizza.setArchive(!editerPizza.getArchive());

		this.ouicheService.update(id, editerPizza);

		response.sendRedirect(request.getContextPath() + "/ouiches/liste");

	}

}


text:
package xyz.praveen.privateblog;

public class Interface {
	/**
	 * To change the current fragment
	 *
	 * @author praveen
	 */
	public interface FragmentChanger {
		/**
		 * Move to URL change fragment
		 */
		public void changeUrl();

		/**
		 * Move to posting fragment
		 */
		public void startPost();
	}

}


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

    <TextView
        android:id="@+id/zen_menu_item"
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:paddingLeft="?android:attr/expandableListPreferredItemPaddingLeft"
        android:paddingBottom="5dp"
        android:paddingTop="5dp"
        android:textColor="#000000"
        android:textSize="16sp" />
    <View
        android:layout_width="match_parent"
        android:layout_height="1dp"
        android:background="@drawable/zen_border_color" />

</LinearLayout>


text:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">

<TITLE>
IRemoteProvider
</TITLE>

<LINK REL ="stylesheet" TYPE="text/css" HREF="../../../stylesheet.css" TITLE="Style">

      Overview
      Package
    Class
      Tree
      Deprecated
      Index
      Help

 PREV CLASS
 NEXT CLASS

  FRAMES
 NO FRAMES

  All Classes

  SUMMARY: NESTED | FIELD | CONSTR | METHOD

DETAIL: FIELD | CONSTR | METHOD

org.thormor.provider

Interface IRemoteProvider

All Known Implementing Classes:
CGoogleSitesProvider

public interface IRemoteProvider

Implement this interface to let thormor access your cloud storage.

Nested Class Summary

static class
IRemoteProvider.DownloadStatus

Method Summary

 void
delete(java.net.URL url,
       IProgressMonitor mon)

          Delete a previously uploaded URL.

 IRemoteProvider.DownloadStatus
download(CDownloadInfo info,
         IProgressMonitor mon)

          Download a remote file, updating the monitor as the download
 proceeds.

 void
postUnlockHook(CVault vault)

          The vault calls this method every time it is unlocked.

 java.net.URL
upload(CUploadInfo info,
       IProgressMonitor mon)

          Upload a file to cloud storage, and update the monitor as the
 upload proceeds.

Method Detail

upload

java.net.URL upload(CUploadInfo info,
                    IProgressMonitor mon)
                    throws java.io.IOException

Upload a file to cloud storage, and update the monitor as the
 upload proceeds.

Parameters:
info - data about file to be uploaded, and a URL to upload
 or to update.
mon - if not null, update with upload progress.

Returns:
URL to the final location of content.

Throws:

java.io.IOException

delete

void delete(java.net.URL url,
            IProgressMonitor mon)
            throws java.io.IOException

Delete a previously uploaded URL. The URL passed in is one
 that was previously returned via the upload() method.

Parameters:
url - is a previously uploaded URL
mon - if not not null, update with delete progress

Throws:

java.io.IOException
See Also:
upload(CUploadInfo, IProgressMonitor)

download

IRemoteProvider.DownloadStatus download(CDownloadInfo info,
                                        IProgressMonitor mon)
                                        throws java.io.IOException

Download a remote file, updating the monitor as the download
 proceeds. You can update the last_modified and etag value in
 the info parameter if necessary, for use in subsequent
 requests.

Parameters:
info - data about file to be downloaded
mon - if not null, update with upload progress.

Throws:

java.io.IOException

postUnlockHook

void postUnlockHook(CVault vault)
                    throws java.io.IOException

The vault calls this method every time it is unlocked. This is an
 opportunity to save or read secured access tokens and so on.

Throws:

java.io.IOException

      Overview
      Package
    Class
      Tree
      Deprecated
      Index
      Help

 PREV CLASS
 NEXT CLASS

  FRAMES
 NO FRAMES

  All Classes

  SUMMARY: NESTED | FIELD | CONSTR | METHOD

DETAIL: FIELD | CONSTR | METHOD


text:
<doc xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://xsdtesting particlesHa006.xsd" xmlns="http://xsdtesting">
	<e3/>
</doc>


text:
//
//  NSDate+Extension.m
//  iOS-Categories (https://github.com/shaojiankui/iOS-Categories)
//
//  Created by Jakey on 15/4/25.
//  Copyright (c) 2015年 www.skyfox.org. All rights reserved.
//  https://github.com/632840804/HYBNSDateExtension

#import "NSDate+Extension.h"

@implementation NSDate (Extension)

- (NSUInteger)day {
    return [NSDate day:self];
}

- (NSUInteger)month {
    return [NSDate month:self];
}

- (NSUInteger)year {
    return [NSDate year:self];
}

- (NSUInteger)hour {
    return [NSDate hour:self];
}

- (NSUInteger)minute {
    return [NSDate minute:self];
}

- (NSUInteger)second {
    return [NSDate second:self];
}

+ (NSUInteger)day:(NSDate *)date {
    NSCalendar *calendar = [NSCalendar currentCalendar];

#if __IPHONE_OS_VERSION_MIN_REQUIRED >= __IPHONE_8_0
    // NSDayCalendarUnit
    NSDateComponents *dayComponents = [calendar components:(NSCalendarUnitDay) fromDate:date];
#else
    NSDateComponents *dayComponents = [calendar components:(NSDayCalendarUnit) fromDate:date];
#endif

    return [dayComponents day];
}

+ (NSUInteger)month:(NSDate *)date {
    NSCalendar *calendar = [NSCalendar currentCalendar];

#if __IPHONE_OS_VERSION_MIN_REQUIRED >= __IPHONE_8_0
    // NSDayCalendarUnit
    NSDateComponents *dayComponents = [calendar components:(NSCalendarUnitMonth) fromDate:date];
#else
    NSDateComponents *dayComponents = [calendar components:(NSMonthCalendarUnit) fromDate:date];
#endif

    return [dayComponents month];
}

+ (NSUInteger)year:(NSDate *)date {
    NSCalendar *calendar = [NSCalendar currentCalendar];

#if __IPHONE_OS_VERSION_MIN_REQUIRED >= __IPHONE_8_0
    // NSDayCalendarUnit
    NSDateComponents *dayComponents = [calendar components:(NSCalendarUnitYear) fromDate:date];
#else
    NSDateComponents *dayComponents = [calendar components:(NSYearCalendarUnit) fromDate:date];
#endif

    return [dayComponents year];
}

+ (NSUInteger)hour:(NSDate *)date {
    NSCalendar *calendar = [NSCalendar currentCalendar];

#if __IPHONE_OS_VERSION_MIN_REQUIRED >= __IPHONE_8_0
    // NSDayCalendarUnit
    NSDateComponents *dayComponents = [calendar components:(NSCalendarUnitHour) fromDate:date];
#else
    NSDateComponents *dayComponents = [calendar components:(NSHourCalendarUnit) fromDate:date];
#endif

    return [dayComponents hour];
}

+ (NSUInteger)minute:(NSDate *)date {
    NSCalendar *calendar = [NSCalendar currentCalendar];

#if __IPHONE_OS_VERSION_MIN_REQUIRED >= __IPHONE_8_0
    // NSDayCalendarUnit
    NSDateComponents *dayComponents = [calendar components:(NSCalendarUnitMinute) fromDate:date];
#else
    NSDateComponents *dayComponents = [calendar components:(NSMinuteCalendarUnit) fromDate:date];
#endif

    return [dayComponents minute];
}

+ (NSUInteger)second:(NSDate *)date {
    NSCalendar *calendar = [NSCalendar currentCalendar];

#if __IPHONE_OS_VERSION_MIN_REQUIRED >= __IPHONE_8_0
    // NSDayCalendarUnit
    NSDateComponents *dayComponents = [calendar components:(NSCalendarUnitSecond) fromDate:date];
#else
    NSDateComponents *dayComponents = [calendar components:(NSSecondCalendarUnit) fromDate:date];
#endif

    return [dayComponents second];
}

- (BOOL)isLeapYear {
    return [NSDate isLeapYear:self];
}

+ (BOOL)isLeapYear:(NSDate *)date {
    NSUInteger year = [date year];
    if ((year % 4  == 0 && year % 100 != 0) || year % 400 == 0) {
        return YES;
    }
    return NO;
}

- (NSString *)formatYMD {
    return [NSString stringWithFormat:@"%lu年%02lu月%02lu日", (unsigned long)[self year],(unsigned long)[self month], (unsigned long)[self day]];
}

- (NSString *)formatYMDWith:(NSString *)c
{
    return [NSString stringWithFormat:@"%lu%@%02lu%@%02lu", (unsigned long)[self year], c, (unsigned long)[self month], c, (unsigned long)[self day]];
}

- (NSString *)formatHM {
    return [NSString stringWithFormat:@"%02lu:%02lu", (unsigned long)[self hour], (unsigned long)[self minute]];
}

- (NSInteger)weekday {
    return [NSDate weekday:self];
}

+ (NSInteger)weekday:(NSDate *)date {
    NSCalendar *gregorian = [[NSCalendar alloc]
                             initWithCalendarIdentifier:NSCalendarIdentifierGregorian];
    NSDateComponents *comps = [gregorian components:(NSCalendarUnitDay | NSCalendarUnitMonth | NSCalendarUnitYear | NSCalendarUnitWeekday) fromDate:date];
    NSInteger weekday = [comps weekday];

    return weekday;
}

- (NSString *)dayFromWeekday {
    return [NSDate dayFromWeekday:self];
}

+ (NSString *)dayFromWeekday:(NSDate *)date {
    switch([date weekday]) {
        case 1:
            return @"星期天";
            break;
        case 2:
            return @"星期一";
            break;
        case 3:
            return @"星期二";
            break;
        case 4:
            return @"星期三";
            break;
        case 5:
            return @"星期四";
            break;
        case 6:
            return @"星期五";
            break;
        case 7:
            return @"星期六";
            break;
        default:
            break;
    }
    return @"";
}

- (NSDate *)dateByAddingDays:(NSUInteger)days {
    NSDateComponents *c = [[NSDateComponents alloc] init];
    c.day = days;
    return [[NSCalendar currentCalendar] dateByAddingComponents:c toDate:self options:0];
}

/**
 *  Get the month as a localized string from the given month number
 *
 *  @param month The month to be converted in string
 *  [1 - January]
 *  [2 - February]
 *  [3 - March]
 *  [4 - April]
 *  [5 - May]
 *  [6 - June]
 *  [7 - July]
 *  [8 - August]
 *  [9 - September]
 *  [10 - October]
 *  [11 - November]
 *  [12 - December]
 *
 *  @return Return the given month as a localized string
 */
+ (NSString *)monthWithMonthNumber:(NSInteger)month {
    switch(month) {
        case 1:
            return @"January";
            break;
        case 2:
            return @"February";
            break;
        case 3:
            return @"March";
            break;
        case 4:
            return @"April";
            break;
        case 5:
            return @"May";
            break;
        case 6:
            return @"June";
            break;
        case 7:
            return @"July";
            break;
        case 8:
            return @"August";
            break;
        case 9:
            return @"September";
            break;
        case 10:
            return @"October";
            break;
        case 11:
            return @"November";
            break;
        case 12:
            return @"December";
            break;
        default:
            break;
    }
    return @"";
}

+ (NSString *)stringWithDate:(NSDate *)date format:(NSString *)format {
    return [date stringWithFormat:format];
}

- (NSString *)stringWithFormat:(NSString *)format {
    NSDateFormatter *outputFormatter = [[NSDateFormatter alloc] init];
    [outputFormatter setDateFormat:format];

    NSString *retStr = [outputFormatter stringFromDate:self];

    return retStr;
}

+ (NSDate *)dateWithString:(NSString *)string format:(NSString *)format {
    NSDateFormatter *inputFormatter = [[NSDateFormatter alloc] init];
    [inputFormatter setDateFormat:format];

    NSDate *date = [inputFormatter dateFromString:string];

    return date;
}

- (NSUInteger)daysInMonth:(NSUInteger)month {
    return [NSDate daysInMonth:self month:month];
}

+ (NSUInteger)daysInMonth:(NSDate *)date month:(NSUInteger)month {
    switch (month) {
        case 1: case 3: case 5: case 7: case 8: case 10: case 12:
            return 31;
        case 2:
            return [date isLeapYear] ? 29 : 28;
    }
    return 30;
}

- (NSUInteger)daysInMonth {
    return [NSDate daysInMonth:self];
}

+ (NSUInteger)daysInMonth:(NSDate *)date {
    return [self daysInMonth:date month:[date month]];
}

- (NSString *)timeInfo {
    return [NSDate timeInfoWithDate:self];
}

+ (NSString *)timeInfoWithDate:(NSDate *)date {
    return [self timeInfoWithDateString:[self stringWithDate:date format:@"yyyy-MM-dd HH:mm:ss"]];
}

+ (NSString *)timeInfoWithDateString:(NSString *)dateString {
    NSDate *date = [self dateWithString:dateString format:@"yyyy-MM-dd HH:mm:ss"];

    NSDate *curDate = [NSDate date];
    NSTimeInterval time = -[date timeIntervalSinceDate:curDate];

    int month = (int)([curDate month] - [date month]);
    int year = (int)([curDate year] - [date year]);
    int day = (int)([curDate day] - [date day]);

    NSTimeInterval retTime = 1.0;
    if (time < 3600) { // 小于一小时
        retTime = time / 60;
        retTime = retTime <= 0.0 ? 1.0 : retTime;
        return [NSString stringWithFormat:@"%.0f分钟前", retTime];
    } else if (time < 3600 * 24) { // 小于一天,也就是今天
        retTime = time / 3600;
        retTime = retTime <= 0.0 ? 1.0 : retTime;
        return [NSString stringWithFormat:@"%.0f小时前", retTime];
    } else if (time < 3600 * 24 * 2) {
        return @"昨天";
    }
    // 第一个条件是同年,且相隔时间在一个月内
    // 第二个条件是隔年,对于隔年,只能是去年12月与今年1月这种情况
    else if ((abs(year) == 0 && abs(month) <= 1)
             || (abs(year) == 1 && [curDate month] == 1 && [date month] == 12)) {
        int retDay = 0;
        if (year == 0) { // 同年
            if (month == 0) { // 同月
                retDay = day;
            }
        }

        if (retDay <= 0) {
            // 获取发布日期中,该月有多少天
            int totalDays = (int)[self daysInMonth:date month:[date month]];

            // 当前天数 + (发布日期月中的总天数-发布日期月中发布日,即等于距离今天的天数)
            retDay = (int)[curDate day] + (totalDays - (int)[date day]);
        }

        return [NSString stringWithFormat:@"%d天前", (abs)(retDay)];
    } else  {
        if (abs(year) <= 1) {
            if (year == 0) { // 同年
                return [NSString stringWithFormat:@"%d个月前", abs(month)];
            }

            // 隔年
            int month = (int)[curDate month];
            int preMonth = (int)[date month];
            if (month == 12 && preMonth == 12) {// 隔年,但同月,就作为满一年来计算
                return @"1年前";
            }
            return [NSString stringWithFormat:@"%d个月前", (abs)(12 - preMonth + month)];
        }

        return [NSString stringWithFormat:@"%d年前", abs(year)];
    }

    return @"1小时前";
}
@end


text:
<?xml version="1.0" encoding="UTF-8"?>
<Tokens version="1.0">
	<File path="Classes/AWSCognitoIdentityProviderGetUserAttributeVerificationCodeResponse.html">

		<Token>
			<TokenIdentifier>//apple_ref/occ/cl/AWSCognitoIdentityProviderGetUserAttributeVerificationCodeResponse</TokenIdentifier>
			<Abstract type="html"></Abstract>
			<DeclaredIn>AWSCognitoIdentityProviderModel.h</DeclaredIn>

			<NodeRef refid="206"/>
		</Token>

		<Token>
			<TokenIdentifier>//apple_ref/occ/instm/AWSCognitoIdentityProviderGetUserAttributeVerificationCodeResponse/setCodeDeliveryDetails:</TokenIdentifier>
			<Abstract type="html"></Abstract>
			<DeclaredIn>AWSCognitoIdentityProviderModel.h</DeclaredIn>

			<Declaration>@property (nonatomic, strong) AWSCognitoIdentityProviderCodeDeliveryDetailsType *codeDeliveryDetails</Declaration>

			<Anchor>//api/name/codeDeliveryDetails</Anchor>
            <NodeRef refid="206"/>
		</Token>

		<Token>
			<TokenIdentifier>//apple_ref/occ/instm/AWSCognitoIdentityProviderGetUserAttributeVerificationCodeResponse/codeDeliveryDetails</TokenIdentifier>
			<Abstract type="html"></Abstract>
			<DeclaredIn>AWSCognitoIdentityProviderModel.h</DeclaredIn>

			<Declaration>@property (nonatomic, strong) AWSCognitoIdentityProviderCodeDeliveryDetailsType *codeDeliveryDetails</Declaration>

			<Anchor>//api/name/codeDeliveryDetails</Anchor>
            <NodeRef refid="206"/>
		</Token>

		<Token>
			<TokenIdentifier>//apple_ref/occ/instp/AWSCognitoIdentityProviderGetUserAttributeVerificationCodeResponse/codeDeliveryDetails</TokenIdentifier>
			<Abstract type="html"></Abstract>
			<DeclaredIn>AWSCognitoIdentityProviderModel.h</DeclaredIn>

			<Declaration>@property (nonatomic, strong) AWSCognitoIdentityProviderCodeDeliveryDetailsType *codeDeliveryDetails</Declaration>

			<Anchor>//api/name/codeDeliveryDetails</Anchor>
            <NodeRef refid="206"/>
		</Token>

	</File>
</Tokens>


text:
/*
 * Some various functions for dealing with time and sleeping.
 *
 * These are meant to be as portable as possible, though "struct timespec" must be defined.
 * _GNU_SOURCE should be defined before the first inclusion of time.h.
 * The timespec struct used to be used in the interface, but this forced users to define _GNU_SOURCE even when they
 * didn't otherwise need it, so we'll just use 64 bit types for better portability in the interface.
 *
 * Many thanks to online sources, like:
 *   http://stackoverflow.com/questions/5167269/clock-gettime-alternative-in-mac-os-x
 *   https://janus.conf.meetecho.com/docs/mach__gettime_8h_source.html
 *   http://nadeausoftware.com/articles/2012/04/c_c_tip_how_measure_elapsed_real_time_benchmarking
 *   http://stackoverflow.com/questions/5404277/porting-clock-gettime-to-windows
 *   http://stackoverflow.com/questions/5801813/c-usleep-is-obsolete-workarounds-for-windows-mingw
 *
 * @author Connor Imes
 * @date 2017-02-01
 */
#define _GNU_SOURCE
#include <errno.h>
#include <inttypes.h>
#include <stdlib.h>
#include <time.h>
#include "ptime.h"

/* begin platform-specific headers and definitions */
#if defined(__MACH__)

#include <mach/clock.h>
#include <mach/mach.h>

#elif defined(_WIN32)

#include <Windows.h>

#else

static const clockid_t PTIME_CLOCKID_T_MONOTONIC =
#if defined(CLOCK_MONOTONIC_PRECISE)
  // BSD
  CLOCK_MONOTONIC_PRECISE
// #elif defined(CLOCK_MONOTONIC_RAW)
//   // Linux
//   CLOCK_MONOTONIC_RAW
#elif defined(CLOCK_HIGHRES)
  // Solaris
  CLOCK_HIGHRES;
#elif defined(CLOCK_MONOTONIC)
  // AIX, BSD, Linux, POSIX, Solaris
  CLOCK_MONOTONIC
#else
  // AIX, BSD, HP-UX, Linux, POSIX
  CLOCK_REALTIME
#endif
;

#endif
/* end platform-specific headers and definitions */

#define ONE_THOUSAND 1000
#define ONE_MILLION  1000000
#define ONE_BILLION  1000000000

static uint64_t ptime_timespec_to_ns(struct timespec* ts) {
  // must cast as a simple literal can overflow!
  return ts->tv_sec * (uint64_t) ONE_BILLION + ts->tv_nsec;
}

static void ptime_ns_to_timespec(uint64_t ns, struct timespec* ts) {
  ts->tv_sec = ns / (time_t) ONE_BILLION;
  ts->tv_nsec = ns % (long) ONE_BILLION;
}

#if defined(__MACH__) || defined(_WIN32)
static void ptime_us_to_timespec(uint64_t us, struct timespec* ts) {
  ts->tv_sec = us / (time_t) ONE_MILLION;
  ts->tv_nsec = (us % (long) ONE_MILLION) * (long) ONE_THOUSAND;
}
#endif

#if defined(__MACH__)
static int clock_gettime_mach(clock_id_t clk_id, struct timespec* ts) {
  clock_serv_t cclock;
  mach_timespec_t mts;
  int ret;
  host_get_clock_service(mach_host_self(), clk_id, &cclock);
  ret = clock_get_time(cclock, &mts);
  mach_port_deallocate(mach_task_self(), cclock);
  if (!ret) {
    ts->tv_sec = mts.tv_sec;
    ts->tv_nsec = mts.tv_nsec;
  }
  return ret;
}
#endif // __MACH__

#if defined(_WIN32)
static LARGE_INTEGER getFILETIMEoffset(void) {
  SYSTEMTIME s;
  FILETIME f;
  LARGE_INTEGER t;
  s.wYear = 1970;
  s.wMonth = 1;
  s.wDay = 1;
  s.wHour = 0;
  s.wMinute = 0;
  s.wSecond = 0;
  s.wMilliseconds = 0;
  SystemTimeToFileTime(&s, &f);
  t.QuadPart = f.dwHighDateTime;
  t.QuadPart <<= 32;
  t.QuadPart |= f.dwLowDateTime;
  return t;
}

static int clock_gettime_realtime_win32(struct timespec* ts) {
  static LONG g_first_time = 1;
  static LARGE_INTEGER offset;
  static double frequencyToNanoseconds;
  FILETIME f;
  LARGE_INTEGER t;
  double nanoseconds;
  // TODO: thread-safe initializer
  if (g_first_time) {
    offset = getFILETIMEoffset();
    frequencyToNanoseconds = 0.010;
    g_first_time = 0;
  }
  GetSystemTimeAsFileTime(&f);
  t.QuadPart = f.dwHighDateTime;
  t.QuadPart <<= 32;
  t.QuadPart |= f.dwLowDateTime;
  t.QuadPart -= offset.QuadPart;
  nanoseconds = (double) t.QuadPart / frequencyToNanoseconds;
  t.QuadPart = nanoseconds;
  ts->tv_sec = t.QuadPart / ONE_BILLION;
  ts->tv_nsec = t.QuadPart % ONE_BILLION;
  return 0;
}

static int clock_gettime_monotonic_win32(struct timespec* ts) {
  static LONG g_first_time = 1;
  static LARGE_INTEGER g_counts_per_sec;
  LARGE_INTEGER count;
  // TODO: thread-safe initializer
  if (g_first_time) {
    if (QueryPerformanceFrequency(&g_counts_per_sec) == 0) {
      g_counts_per_sec.QuadPart = 0;
    }
    g_first_time = 0;
  }
  if (g_counts_per_sec.QuadPart <= 0 || QueryPerformanceCounter(&count) == 0) {
    return -1;
  }
  ts->tv_sec = count.QuadPart / g_counts_per_sec.QuadPart;
  ts->tv_nsec = ((count.QuadPart % g_counts_per_sec.QuadPart) * 1E9) / g_counts_per_sec.QuadPart;
  return 0;
}

static int nanosleep_win32(struct timespec* ts, struct timespec* rem) {
  (void) rem;
  uint64_t ns = ptime_timespec_to_ns(ts);
  HANDLE timer;
  LARGE_INTEGER li;
  // negative value indicates relative time
  // rounds up to the next 100th nanosecond if needed
  li.QuadPart = -((ns / 100) + (ns % 100 > 0 ? 1 : 0));
  if ((timer = CreateWaitableTimer(NULL, TRUE, NULL)) == NULL) {
    return -1;
  }
  if (!SetWaitableTimer(timer, &li, 0, NULL, NULL, 0)) {
    CloseHandle(timer);
    return -1;
  }
  WaitForSingleObject(timer, INFINITE);
  CloseHandle(timer);
  return 0;
}
#endif // _WIN32

static int ptime_clock_gettime(ptime_clock_id clk_id, struct timespec* ts) {
  switch(clk_id) {
#if defined(__MACH__)
    case PTIME_REALTIME:
      return clock_gettime_mach(CALENDAR_CLOCK, ts);
    case PTIME_MONOTONIC:
      return clock_gettime_mach(SYSTEM_CLOCK, ts);
#elif defined(_WIN32)
    case PTIME_REALTIME:
      return clock_gettime_realtime_win32(ts);
    case PTIME_MONOTONIC:
      return clock_gettime_monotonic_win32(ts);
#else
    case PTIME_REALTIME:
      return clock_gettime(CLOCK_REALTIME, ts);
    case PTIME_MONOTONIC:
      return clock_gettime(PTIME_CLOCKID_T_MONOTONIC, ts);
#endif
    default:
      break;
  }
  errno = EINVAL;
  return -1;
}

uint64_t ptime_gettime_ns(ptime_clock_id clk_id) {
  struct timespec ts;
  if (ptime_clock_gettime(clk_id, &ts)) {
    return 0;
  }
  return ptime_timespec_to_ns(&ts);
}

uint64_t ptime_gettime_us(ptime_clock_id clk_id) {
  return ptime_gettime_ns(clk_id) / (uint64_t) ONE_THOUSAND;
}

uint64_t ptime_gettime_elapsed_ns(ptime_clock_id clk_id, uint64_t* since) {
  uint64_t now;
  uint64_t elapsed;
  if (!(now = ptime_gettime_ns(PTIME_MONOTONIC))) {
    return 0;
  }
  if (*since > now) {
    errno = EINVAL;
    return 0;
  }
  elapsed = now - *since;
  *since = now;
  return elapsed;
}

uint64_t ptime_gettime_elapsed_us(ptime_clock_id clk_id, uint64_t* since) {
  return ptime_gettime_elapsed_ns(clk_id, since) / (uint64_t) ONE_THOUSAND;
}

static int ptime_nanosleep(struct timespec* ts, struct timespec* rem) {
#if defined(__MACH__)
  return nanosleep(ts, rem);
#elif defined(_WIN32)
  return nanosleep_win32(ts, rem);
#else
  errno = clock_nanosleep(PTIME_CLOCKID_T_MONOTONIC, 0, ts, rem);
  return errno ? -1 : 0;
#endif
}

uint64_t ptime_sleep_ns(uint64_t ns) {
  struct timespec ts;
  struct timespec rem;
  ptime_ns_to_timespec(ns, &ts);
  return ptime_nanosleep(&ts, &rem) ? ptime_timespec_to_ns(&rem) : 0;
}

uint64_t ptime_sleep_us(uint64_t us) {
  return ptime_sleep_ns(us * (uint64_t) ONE_THOUSAND) / (uint64_t) ONE_THOUSAND;
}

int ptime_sleep_us_no_interrupt(uint64_t us, volatile const int* ignore_interrupt) {
  int ret;
  struct timespec ts;
#if defined(__MACH__) || defined(_WIN32)
  struct timespec rem;
  ptime_us_to_timespec(us, &rem);
  do {
    ts.tv_sec = rem.tv_sec;
    ts.tv_nsec = rem.tv_nsec;
    // try to sleep for the requested period of time
    errno = 0;
    ret = ptime_nanosleep(&ts, &rem);
  } while (ret != 0 && errno == EINTR && (ignore_interrupt == NULL ? 1 : *ignore_interrupt));
#else
  // keep sleeping until a time in the future (now + requested time interval)
  if (clock_gettime(PTIME_CLOCKID_T_MONOTONIC, &ts)) {
    return -1;
  }
  ts.tv_sec += us / (time_t) ONE_MILLION;
  ts.tv_nsec += (us % (long) ONE_MILLION) * (long) ONE_THOUSAND;
  if (ts.tv_nsec >= (long) ONE_BILLION) {
    ts.tv_nsec -= (long) ONE_BILLION;
    ts.tv_sec++;
  }
  do {
    ret = clock_nanosleep(PTIME_CLOCKID_T_MONOTONIC, TIMER_ABSTIME, &ts, NULL);
  }
  while (ret == EINTR && (ignore_interrupt == NULL ? 1 : *ignore_interrupt));
#endif
  return ret ? -1 : 0;
}


text:
<!--
__COPYRIGHT__

This file is processed by the bin/SConsDoc.py module.
See its __doc__ string for a discussion of the format.
-->
<tool name="icc">
<summary>
Sets construction variables for the
<application>icc</application> compiler on OS/2 systems.
</summary>
<sets>
CC
CCCOM
CXXCOM
CPPDEFPREFIX
CPPDEFSUFFIX
INCPREFIX
INCSUFFIX
CFILESUFFIX
CXXFILESUFFIX
</sets>
<uses>
CFLAGS
CCFLAGS
CPPFLAGS
_CPPDEFFLAGS
_CPPINCFLAGS
</uses>
</tool>


text:
package com.brandon3055.townbuilder.network;

import com.brandon3055.brandonscore.network.MessageHandlerWrapper;
import com.brandon3055.townbuilder.TownBuilder;
import com.brandon3055.townbuilder.schematics.commands.CommandCreate;
import io.netty.buffer.ByteBuf;
import net.minecraftforge.fml.common.network.ByteBufUtils;
import net.minecraftforge.fml.common.network.simpleimpl.IMessage;
import net.minecraftforge.fml.common.network.simpleimpl.MessageContext;

/**
 * Created by Brandon on 26/02/2015.
 */
public class PacketSchematicClient implements IMessage {

    public String fileName;

    public PacketSchematicClient() {
    }

    public PacketSchematicClient(String fileName) {
        this.fileName = fileName;
    }

    @Override
    public void fromBytes(ByteBuf buf) {
        fileName = ByteBufUtils.readUTF8String(buf);
    }

    @Override
    public void toBytes(ByteBuf buf) {
        ByteBufUtils.writeUTF8String(buf, fileName);
    }

    public static class Handler extends MessageHandlerWrapper<PacketSchematicClient, IMessage> {
        @Override
        public IMessage handleMessage(PacketSchematicClient message, MessageContext ctx) {
            CommandCreate.instance.handleCommand(TownBuilder.proxy.getClientPlayer(), new String[]{"create", message.fileName});
            return null;
        }
    }
}


text:
<?xml version="1.0" encoding="UTF-8"?>
<billStatus>
  <bill>
    <committeeReports />
    <billType>HR</billType>
    <updateDate>2017-09-14T12:45:08Z</updateDate>
    <recordedVotes />
    <latestAction>
      <actionDate>2017-02-06</actionDate>
      <text>Referred to the Subcommittee on Health.</text>
      <links />
    </latestAction>
    <calendarNumbers />
    <committees>
      <billCommittees>
        <item>
          <type>Standing</type>
          <chamber>House</chamber>
          <name>Ways and Means Committee</name>
          <subcommittees>
            <item>
              <name>Health Subcommittee</name>
              <activities>
                <item>
                  <name>Referred to</name>
                  <date>2017-02-06T22:05:56Z</date>
                </item>
              </activities>
              <systemCode>hswm02</systemCode>
            </item>
          </subcommittees>
          <activities>
            <item>
              <name>Referred to</name>
              <date>2017-01-24T15:07:45Z</date>
            </item>
          </activities>
          <systemCode>hswm00</systemCode>
        </item>
        <item>
          <type>Standing</type>
          <chamber>House</chamber>
          <name>Energy and Commerce Committee</name>
          <subcommittees />
          <activities>
            <item>
              <name>Referred to</name>
              <date>2017-01-24T15:07:40Z</date>
            </item>
          </activities>
          <systemCode>hsif00</systemCode>
        </item>
      </billCommittees>
    </committees>
    <summaries>
      <billSummaries>
        <item>
          <updateDate>2017-01-24T05:00:00Z</updateDate>
          <versionCode>00</versionCode>
          <name>Introduced in House</name>
          <lastSummaryUpdateDate>2017-09-14T12:33:39Z</lastSummaryUpdateDate>
          <text><![CDATA[
Patient Fairness and Relief Act of 2017

This bill permits a health insurer that had in effect certain health insurance coverage in the individual market from January 1, 2013, through January 1, 2017, to continue to offer the coverage in the individual market outside of health insurance exchanges. This applies to coverage under the transitional policy of the Center for Consumer Information and Insurance Oversight of the Centers for Medicare and Medicaid Services. (Coverage under that policy does not need to comply with certain Patient Protection and Affordable Care Act requirements, including guaranteed renewability and coverage for preexisting conditions.)

 This coverage is treated as a grandfathered health plan and thus fulfills an individual's requirement to maintain minimum essential coverage.
]]></text>
          <actionDate>2017-01-24</actionDate>
          <actionDesc>Introduced in House</actionDesc>
        </item>
      </billSummaries>
    </summaries>
    <version>1.0.0</version>
    <introducedDate>2017-01-24</introducedDate>
    <notes />
    <amendments />
    <relatedBills />
    <constitutionalAuthorityStatementText><![CDATA[
From the Congressional Record Online through the Government Publishing Office [www.gpo.gov]By Mr. HARPER:H.R. 633.Congress has the power to enact this legislation pursuantto the following:The Congress enacts this bill pursuant to Clause 1 ofSection 8 of Article I of the United States Constitution.[Page H687]
]]></constitutionalAuthorityStatementText>
    <billNumber>633</billNumber>
    <actions>
      <item>
        <actionDate>2017-02-06</actionDate>
        <committee>
          <name>Health Subcommittee</name>
          <systemCode>hswm02</systemCode>
        </committee>
        <links />
        <sourceSystem>
          1
          <name>House committee actions</name>
        </sourceSystem>
        <text>Referred to the Subcommittee on Health.</text>
        <type>Committee</type>
      </item>
      <item>
        <text>Referred to House Ways and Means</text>
        <type>IntroReferral</type>
        <actionDate>2017-01-24</actionDate>
        <committee>
          <name>Ways and Means Committee</name>
          <systemCode>hswm00</systemCode>
        </committee>
        <links />
        <sourceSystem>
          2
          <name>House floor actions</name>
        </sourceSystem>
        <actionCode>H11100</actionCode>
      </item>
      <item>
        <text>Referred to House Energy and Commerce</text>
        <type>IntroReferral</type>
        <actionDate>2017-01-24</actionDate>
        <committee>
          <name>Energy and Commerce Committee</name>
          <systemCode>hsif00</systemCode>
        </committee>
        <links />
        <sourceSystem>
          2
          <name>House floor actions</name>
        </sourceSystem>
        <actionCode>H11100</actionCode>
      </item>
      <item>
        <text>Referred to the Committee on Energy and Commerce, and in addition to the Committee on Ways and Means, for a period to be subsequently determined by the Speaker, in each case for consideration of such provisions as fall within the jurisdiction of the committee concerned.</text>
        <type>IntroReferral</type>
        <actionDate>2017-01-24</actionDate>
        <committee />
        <links />
        <sourceSystem>
          9
          <name>Library of Congress</name>
        </sourceSystem>
        <actionCode>H11100-A</actionCode>
      </item>
      <item>
        <text>Introduced in House</text>
        <type>IntroReferral</type>
        <actionDate>2017-01-24</actionDate>
        <committee />
        <links />
        <sourceSystem>
          9
          <name>Library of Congress</name>
        </sourceSystem>
        <actionCode>Intro-H</actionCode>
      </item>
      <item>
        <text>Introduced in House</text>
        <type>IntroReferral</type>
        <actionDate>2017-01-24</actionDate>
        <committee />
        <links />
        <sourceSystem>
          9
          <name>Library of Congress</name>
        </sourceSystem>
        <actionCode>1000</actionCode>
      </item>
      <actionByCounts>
        <houseOfRepresentatives>6</houseOfRepresentatives>
      </actionByCounts>
      <actionTypeCounts>
        <billReferralsAggregate>1</billReferralsAggregate>
        <billReferrals>2</billReferrals>
        <introducedInTheHouse>1</introducedInTheHouse>
        <introducedInHouse>1</introducedInHouse>
        <placeholderTextForH>1</placeholderTextForH>
      </actionTypeCounts>
    </actions>
    <createDate>2017-01-25T04:45:55Z</createDate>
    <laws />
    <policyArea>
      <name>Health</name>
    </policyArea>
    <title>Patient Fairness and Relief Act of 2017</title>
    <originChamber>House</originChamber>
    <titles>
      <item>
        <chamberName />
        <parentTitleType />
        <titleType>(Extracted from GPO) Short Titles as Introduced</titleType>
        <chamberCode />
        <title>Patient Fairness and Relief Act of 2017</title>
      </item>
      <item>
        <chamberName />
        <parentTitleType />
        <titleType>Short Titles as Introduced</titleType>
        <chamberCode />
        <title>Patient Fairness and Relief Act of 2017</title>
      </item>
      <item>
        <chamberName />
        <parentTitleType />
        <titleType>Official Title as Introduced</titleType>
        <chamberCode />
        <title>To authorize health insurance issuers to continue to offer for sale health insurance coverage offered in the individual market before the enactment of the Patient Protection and Affordable Care Act in satisfaction of the minimum essential health insurance coverage requirement, and for other purposes.</title>
      </item>
      <item>
        <chamberName />
        <parentTitleType />
        <titleType>Display Title</titleType>
        <chamberCode />
        <title>Patient Fairness and Relief Act of 2017</title>
      </item>
    </titles>
    <cboCostEstimates />
    <subjects>
      <billSubjects>
        <policyArea>
          <name>Health</name>
        </policyArea>
        <legislativeSubjects>
          <item>
            <name>Employee benefits and pensions</name>
          </item>
          <item>
            <name>Health care costs and insurance</name>
          </item>
          <item>
            <name>Health care coverage and access</name>
          </item>
        </legislativeSubjects>
      </billSubjects>
    </subjects>
    <cosponsors>
      <item>
        <sponsorshipWithdrawnDate />
        <fullName>Rep. Rokita, Todd [R-IN-4]</fullName>
        <isOriginalCosponsor>False</isOriginalCosponsor>
        <bioguideId>R000592</bioguideId>
        <middleName />
        <sponsorshipDate>2017-04-25</sponsorshipDate>
        <state>IN</state>
        <district>4</district>
        <identifiers>
          <lisID>2017</lisID>
          <bioguideId>R000592</bioguideId>
          <gpoId>7943</gpoId>
        </identifiers>
        <lastName>Rokita</lastName>
        <firstName>Todd</firstName>
        <party>R</party>
      </item>
    </cosponsors>
    <congress>115</congress>
    <sponsors>
      <item>
        <fullName>Rep. Harper, Gregg [R-MS-3]</fullName>
        <byRequestType />
        <identifiers>
          <lisID>1933</lisID>
          <bioguideId>H001045</bioguideId>
          <gpoId>8021</gpoId>
        </identifiers>
        <state>MS</state>
        <firstName>Gregg</firstName>
        <bioguideId>H001045</bioguideId>
        <middleName />
        <lastName>Harper</lastName>
        <district>3</district>
        <party>R</party>
      </item>
    </sponsors>
  </bill>
  <dublinCore xmlns:dc="http://purl.org/dc/elements/1.1/">
    <dc:format>text/xml</dc:format>
    <dc:language>EN</dc:language>
    <dc:rights>Pursuant to Title 17 Section 105 of the United States Code, this file is not subject to copyright protection and is in the public domain.</dc:rights>
    <dc:contributor>Congressional Research Service, Library of Congress</dc:contributor>
    <dc:description>This file contains bill summaries and statuses for federal legislation. A bill summary describes the most significant provisions of a piece of legislation and details the effects the legislative text may have on current law and federal programs. Bill summaries are authored by the Congressional Research Service (CRS) of the Library of Congress. As stated in Public Law 91-510 (2 USC 166 (d)(6)), one of the duties of CRS is "to prepare summaries and digests of bills and resolutions of a public general nature introduced in the Senate or House of Representatives". For more information, refer to the User Guide that accompanies this file.</dc:description>
  </dublinCore>
</billStatus>


text:
require 'rspec'
require 'mkv/chapters/xml/version'


text:
var isArray = require('./isArray');

module.exports = function (item) {
  return (typeof item === 'object' && !isArray(item) && item !== null);
};


text:
package org.easycassandra;

import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;

/**
 * The field with this annotation is used to ordering in clusters. The field need to be part of primary key and not part
 * of partition key.
 *
 * @author Gustavo Leitão
 */
@Target(ElementType.FIELD)
@Retention(RetentionPolicy.RUNTIME)
public @interface ClusteringOrder {

    Order order() default Order.ASC;

}


text:
using namespace cv;

struct Rho_The
{
	float rho;
	float the;
};
class Find_Four_Line

{

public:
	Rho_The  line[4];
	Rho_The  templeline;
	int acculatenumber[4];

private:
	  double  MinValue;
	  double  MaxValue;
    cv::Point   MinLocation;
    cv::Point   MaxLocation;

public:
	void Create_RhoThe_Space(CvSeq* &contours,Mat& binary,CvMemStorage *&storage);

private:

    void Set_value_Round_To_Zero(Mat& rhotheplace,  cv::Point MaxLocation);
};