text:
'use strict';

const path = require('path'),
      should = require('should'),
      sinon = require('sinon');

const agentFactory = require('./agent'),
      dbHandle = require(path.resolve('./test/handle-database'));

let dbData;

describe('Location of people, tags, ideas, projects, ...', function () {
  let agent,
      sandbox;

  beforeEach(function () {
    sandbox = sinon.sandbox.create();

    sandbox.useFakeTimers({
      toFake: ['Date']
    });

    // a default non-logged agent
    agent = agentFactory();
  });

  afterEach(function () {
    sandbox.restore();
  });

  describe('PATCH location of a user', function () {

    let loggedUser, otherUser;

    beforeEach(async function () {
      const data = {
        users: 2, // how many users to make
        verifiedUsers: [0] // which users to make verified
      };
      // create data in database
      dbData = await dbHandle.fill(data);

      [loggedUser, otherUser] = dbData.users;
    });

    afterEach(async function () {
      await dbHandle.clear();
    });

    it('ask for update every 3 months');

    context('logged in as me', function () {

      beforeEach(() => {
        agent = agentFactory.logged(loggedUser);
      });

      context('valid location', function () {

        it('save/update her location (latitude, longitude)', async function () {

          const res = await agent
            .patch(`/users/${loggedUser.username}`)
            .send({
              data: {
                type: 'users',
                id: loggedUser.username,
                attributes: {
                  location: [13, 47.21]
                }
              }
            })
            .expect('Content-Type', /^application\/vnd\.api\+json/)
            .expect(200);

          should(res.body).have.property('data');
          const dt = res.body.data;
          should(dt).have.property('id', loggedUser.username);
          should(dt.attributes).have.property('preciseLocation', [13, 47.21]);
        });

        it('randomize the location (latitude, longitude)', async function () {

          const res = await agent
            .patch(`/users/${loggedUser.username}`)
            .send({
              data: {
                type: 'users',
                id: loggedUser.username,
                attributes: {
                  location: [13, 47.21]
                }
              }
            })
            .expect('Content-Type', /^application\/vnd\.api\+json/)
            .expect(200);

          should(res.body).have.property('data');
          const dt = res.body.data;
          should(dt).have.property('id', loggedUser.username);
          should(dt.attributes).have.property('location').not.eql([13, 47.21]);
        });

        it('keep information about the last update time of the location', async function () {
          // try with a different time
          sandbox.clock.tick(10);

          const res = await agent
            .patch(`/users/${loggedUser.username}`)
            .send({
              data: {
                type: 'users',
                id: loggedUser.username,
                attributes: {
                  location: [13, 47.21]
                }
              }
            })
            .expect('Content-Type', /^application\/vnd\.api\+json/)
            .expect(200);

          should(res.body).have.property('data');
          const dt = res.body.data;
          should(dt).have.property('id', loggedUser.username);
          should(dt.attributes).have.property('locationUpdated').eql(Date.now());
        });
      });

      context('invalid location', function () {
        it('[missing coordinates] error 400', async function () {

          await agent
            .patch(`/users/${loggedUser.username}`)
            .send({
              data: {
                type: 'users',
                id: loggedUser.username,
                attributes: {
                  location: [0]
                }
              }
            })
            .expect('Content-Type', /^application\/vnd\.api\+json/)
            .expect(400);
        });

        it('[bad data] error 400', async function () {

          await agent
            .patch(`/users/${loggedUser.username}`)
            .send({
              data: {
                type: 'users',
                id: loggedUser.username,
                attributes: {
                  location: 'asdf'
                }
              }
            })
            .expect('Content-Type', /^application\/vnd\.api\+json/)
            .expect(400);
        });

        it('[coordinates out of range] error 400', async function () {

          // check wrong latitude
          await agent
            .patch(`/users/${loggedUser.username}`)
            .send({
              data: {
                type: 'users',
                id: loggedUser.username,
                attributes: {
                  location: [-90.1, 0]
                }
              }
            })
            .expect('Content-Type', /^application\/vnd\.api\+json/)
            .expect(400);

          // check wrong longitude
          await agent
            .patch(`/users/${loggedUser.username}`)
            .send({
              data: {
                type: 'users',
                id: loggedUser.username,
                attributes: {
                  location: [0, 180.1]
                }
              }
            })
            .expect('Content-Type', /^application\/vnd\.api\+json/)
            .expect(400);
        });
      });

      context('empty location', function () {
        it('remove the location from the user\'s profile', async function () {

          sandbox.clock.tick(1000);
          // set a location
          const set = await agent
            .patch(`/users/${loggedUser.username}`)
            .send({
              data: {
                type: 'users',
                id: loggedUser.username,
                attributes: {
                  location: [45, 45]
                }
              }
            })
            .expect('Content-Type', /^application\/vnd\.api\+json/)
            .expect(200);

          should(set.body.data.attributes).have.property('preciseLocation').deepEqual([45, 45]);
          should(set.body.data.attributes).have.property('locationUpdated').eql(Date.now());

          // wait a second
          sandbox.clock.tick(1000);

          const res = await agent
            .patch(`/users/${loggedUser.username}`)
            .send({
              data: {
                type: 'users',
                id: loggedUser.username,
                attributes: {
                  location: null
                }
              }
            })
            .expect('Content-Type', /^application\/vnd\.api\+json/)
            .expect(200);

          should(res.body).have.property('data');
          const dt = res.body.data;
          should(dt).have.property('id', loggedUser.username);
          should(dt.attributes).have.property('location').eql(null);
          should(dt.attributes).have.property('preciseLocation').eql(null);
          should(dt.attributes).have.property('locationUpdated').eql(Date.now());
        });
      });
    });

    context('logged in as other user', function () {
      it('error 403', async function () {
        await agent
          .patch(`/users/${loggedUser.username}`)
          .send({
            data: {
              type: 'users',
              id: loggedUser.username,
              attributes: {
                location: [13, 47.21]
              }
            }
          })
          .auth(otherUser.username, otherUser.password)
          .expect('Content-Type', /^application\/vnd\.api\+json/)
          .expect(403);
      });
    });
  });

  describe('GET location of /users/:username', function () {
    it('the randomized location should be shown');
    it('non-randomized location shown only to self');
    it('deleted location shouldn\'t be shown');
  });

  describe('GET people within a rectangle', function () {

    let loggedUser;

    beforeEach(async function () {
      const data = {
        users: 10, // how many users to make
        verifiedUsers: [0, 1, 2, 3, 4, 5, 6, 7, 8, 9], // which users to make verified
        userLocations: {
          0: [0, 5],
          1: [1, 7],
          2: [-1, 10],
          3: [-1.0003, 15],
          4: [4.993, 4.99999],
          5: [-4.999, 15.01], // until here they should pass the 1st test
          6: [0, 0],
          7: [0, 15.2],
          8: [-5.2, 10],
          9: [5.2, 0],
        }
      };
      // create data in database
      dbData = await dbHandle.fill(data);

      [loggedUser] = dbData.users;
    });

    afterEach(async function () {
      await dbHandle.clear();
    });

    context('logged', function () {
      beforeEach(() => {
        agent = agentFactory.logged(loggedUser);
      });

      it('show people inside a specified rectangle and don\'t show people outside', async function () {
        const res = await agent
          .get('/users?filter[location]=-5.1,4.9,5.1,15.1')
          .expect('Content-Type', /^application\/vnd\.api\+json/)
          .expect(200);

        should(res).have.propertyByPath('body', 'data').length(6);
        should(res.body.data[0]).have.property('id').not.eql('undefined');
        should(res.body.data[0]).have.property('attributes').match({
          familyName: '',
          givenName: '',
          description: '',
          location: /.*/,
          username: /.*/
        });
      });

      it('limit the size of the rectangle');

      it('don\'t leak the preciseLocation', async function () {
        const res = await agent
          .get('/users?filter[location]=-5.1,4.9,5.1,15.1')
          .expect('Content-Type', /^application\/vnd\.api\+json/)
          .expect(200);

        should(res).have.propertyByPath('body', 'data').length(6);

        should(res.body.data[0]).not.have.propertyByPath('attributes', 'preciseLocation');
      });

      context('invalid location', function () {
        it('[wrong corners] error with 400', async function () {
          await agent
            .get('/users?filter[location]=-5.1,15.1,5.1,4.9')
            .expect('Content-Type', /^application\/vnd\.api\+json/)
            .expect(400);
        });

        it('[wrong amount of coordinates] error with 400', async function () {
          await agent
            .get('/users?filter[location]=-5,5,5,15,0')
            .expect('Content-Type', /^application\/vnd\.api\+json/)
            .expect(400);
        });

        it('[out of range] error with 400', async () => {
          await agent
            .get('/users?filter[location]=-91,5,-80,15')
            .expect('Content-Type', /^application\/vnd\.api\+json/)
            .expect(400);
        });
      });

    });

    context('not logged in', function () {
      it('error with 403', async function () {
        await agent
          .get('/users?filter[location]=-1,-1,1,1')
          .expect('Content-Type', /^application\/vnd\.api\+json/)
          .expect(403);
      });
    });

  });

  describe('GET people within a rectangle filtered by tags', function () {
    it('show people within a rectangle with a given tag');
  });

  describe('location of projects', function () {
    it('project can be geolocated');
  });

  describe('location of challenges, ideas', function () {
    it('show where are the people connected to the idea');
  });
});


text:
package com.tirthal.learning.libfeatures.java.util.function.functions;

import java.util.Objects;
import java.util.function.BinaryOperator;

// java.util.function.BinaryOperator operates upon two operands of the same type, producing a result of the same type as the operands
// This is a specialization of BiFunction for the case where the operands and the result are all of the same type

/**
* Sample code to demo syntax of BinaryOperator functional interface usage in Java 8
*
* @see https://docs.oracle.com/javase/8/docs/api/java/util/function/BinaryOperator.html
* @author tirthalp
*
*/
public class Ex_BinaryOperatorDemo {

	// The input parameters and result are of the same type Integer
	private static BinaryOperator<Integer> F_ADD = (a, b) -> a + b;
	private static BinaryOperator<Integer> F_SUBSTRACT = (a, b) -> a - b;
	private static BinaryOperator<Integer> F_MULTIPLY = (a, b) -> a * b;
	private static BinaryOperator<Integer> F_DEVIDE = (a, b) -> a / b;

	private static Integer calculate(Integer n1, Integer n2, BinaryOperator<Integer> f) {

		Objects.requireNonNull(n1, "Oops, null parameter is not allowed");
		Objects.requireNonNull(n2, "Oops, null parameter is not allowed");
		Objects.requireNonNull(f, "Oops, null parameter is not allowed");

		return f.apply(n1, n2);	// invoke BinaryOperator function
	}

	public static void main(String[] args) {
		try {
			System.out.printf("%d + %d = %d \n", 15, 3, calculate(15, 3, Ex_BinaryOperatorDemo.F_ADD));
			System.out.printf("%d - %d = %d \n", 15, 3, calculate(15, 3, Ex_BinaryOperatorDemo.F_SUBSTRACT));
			System.out.printf("%d * %d = %d \n", 15, 3, calculate(15, 3, Ex_BinaryOperatorDemo.F_MULTIPLY));
			System.out.printf("%d / %d = %d \n", 15, 3, calculate(15, 3, Ex_BinaryOperatorDemo.F_DEVIDE));

			calculate(null, null, null);
		} catch (NullPointerException e) {
			System.out.print("Oops, null arguments are not allowed");
		}
	}
}

redpajama_set_name: RedPajamaGithub


text:
/**
 * Created by DELL on 2017/5/25.
 *   Base 基类组件,所有的都继承此组件,代替继承Component
 */

import React ,{Component} from 'react';
import {StackNavigator,TabNavigator,TabBarBottom,TabBarTop} from 'react-navigation';

import HomePage from '../pages/Home/HomePage.js';
import MinePage from '../pages/Home/MinePage';
import LifePage from '../pages/Home/LifePage';
import MapPage from '../pages/Home/MapPage';
import TabBarItem from './TabBarItem';

import Setting from '../pages/mine/Setting';
import User from '../pages/mine/User';
import Address from '../pages/mine/Address';
import Feedback from '../pages/mine/Feedback';
import GoodsDetailPage from '../pages/goods/GoodsDetailPage';
import GoodsOrderPage from '../pages/goods/GoodsOrderPage';
import ButlerFoundHouse from '../pages/webView/ButlerFoundHouse';
import LifeServer from '../pages/webView/lifeServer/LifeServer';
import LifeServerSecondList from '../pages/webView/lifeServer/LifeServerSecondList';
import PayPage from '../pages/pay/PayPage';
import OrderDetailPage from '../pages/order/OrderDetailPage';
import OrderManager from '../pages/order/OrderManager';
import OrderListPage from '../pages/order/OrderListPage';
import OrderListUnPayPage from '../pages/order/OrderListUnPayPage';
import Login from '../pages/login/Login';
import FindArticalPage from '../pages/webView/FindArticalPage';

//底部的tab 显示 整出来的
export const Tab = TabNavigator(
    {
        // tab 切换的页面
        HomePage:{
            screen:HomePage,
            navigationOptions:({navigation}) => ({
                tabBarLabel:'首页',
                //title:"首页title",//跟页面之间的设置是相似的
                header:null,
                tabBarIcon:({focused,tintColor}) => (
                    <TabBarItem
                        tintColor={tintColor}
                        focused={focused}
                        normalImage={require('../imgs/ic_tab_strip_icon_category.png')}
                        selectedImage={require('../imgs/ic_tab_strip_icon_category_selected.png')}
                    />
                )
            }),
        },

        MapPage:{
            screen:MapPage,
            navigationOptions:({navigation}) => ({
                tabBarLabel:'百度地图',
                title:'地图title',
                header:null,
                tabBarIcon:({focused,tintColor}) => (
                    <TabBarItem
                        tintColor={tintColor}
                        focused={focused}
                        normalImage={require('../imgs/ic_tab_strip_icon_profile.png')}
                        selectedImage={require('../imgs/ic_tab_strip_icon_profile_selected.png')}
                    />
                )
            }),
        },
        LifePage:{
            screen:LifePage,
            navigationOptions:({navigation}) => ({
                tabBarLabel:'生活',
                title:'生活title',
                header:null,
                tabBarIcon:({focused,tintColor}) => (
                    <TabBarItem
                        tintColor={tintColor}
                        focused={focused}
                        normalImage={require('../imgs/ic_tab_strip_icon_follow.png')}
                        selectedImage={require('../imgs/ic_tab_strip_icon_follow_selected.png')}
                    />
                )
            }),
        },

        MinePage:{
            screen:MinePage,
            navigationOptions:({navigation}) => ({
                tabBarLabel:'我的',
                title:'个人中心',
                //header:null,
                // title:标题,如果设置了这个导航栏和标签栏的title就会变成一样的,不推荐使用
                // header:可以设置一些导航的属性,如果隐藏顶部导航栏只要将这个属性设置为null
                // headerTitle:设置导航栏标题,推荐
                // headerBackTitle:设置跳转页面左侧返回箭头后面的文字,默认是上一个页面的标题。可以自定义,也可以设置为null
                // headerTruncatedBackTitle:设置当上个页面标题不符合返回箭头后的文字时,默认改成"返回"
                // headerRight:设置导航条右侧。可以是按钮或者其他视图控件
                // headerLeft:设置导航条左侧。可以是按钮或者其他视图控件
                // headerStyle:设置导航条的样式。背景色,宽高等
                // headerTitleStyle:设置导航栏文字样式
                // headerBackTitleStyle:设置导航栏'返回'文字样式
                // headerTintColor:设置导航栏颜色
                // headerPressColorAndroid:安卓独有的设置颜色纹理,需要安卓版本大于5.0
                // gesturesEnabled:是否支持滑动返回手势,iOS默认支持,安卓默认关闭

                tabBarIcon:({focused,tintColor}) => (
                    <TabBarItem
                        tintColor={tintColor}
                        focused={focused}
                        normalImage={require('../imgs/ic_tab_strip_icon_feed.png')}
                        selectedImage={require('../imgs/ic_tab_strip_icon_feed_selected.png')}
                    />
                )
            }),
        },
    },

    {
        animationEnabled: false, // 切换页面时不显示动画
        tabBarComponent:TabBarBottom,
        tabBarPosition:'bottom',//显示在底端,android 默认是显示在页面顶端的
        swipeEnabled:false,// 禁止左右滑动
        backBehavior: 'none', // 按 back 键是否跳转到第一个 Tab, none 为不跳转
        lazy:true,
        tabBarOptions:{
            activeTintColor:'#06c1ae',// 文字和图片选中颜色
            inactiveTintColor:'#979797', // 文字和图片默认颜色
            showIcon: true, // android 默认不显示 icon, 需要设置为 true 才会显示
            indicatorStyle: {height: 0}, // android 中TabBar下面会显示一条线,高度设为 0 后就不显示线了
            style:{
                backgroundColor:'#ffffff',// TabBar 背景色
            },
            labelStyle: {
                fontSize: 15, // 文字大小
            },
        }

    }

);

/*------------------订单tab 切换------------*/

export const Tab_Order = TabNavigator(
    {
        // tab 切换的页面
        OrderListPage:{
            screen:OrderListPage,
            navigationOptions:({navigation}) => ({
                tabBarLabel:'全部',
                title:"订单管理",//跟页面之间的设置是相似的

            }),
        },

        OrderListUnPayPage:{
            screen:OrderListUnPayPage,
            navigationOptions:({navigation}) => ({
                tabBarLabel:'待支付',
                title:"订单管理",//跟页面之间的设置是相似的
            }),
        },

    },

    {
        animationEnabled: false, // 切换页面时不显示动画
        tabBarComponent:TabBarTop,
        tabBarPosition:'top',//显示在底端,android 默认是显示在页面顶端的
        swipeEnabled:true,// 禁止左右滑动
        backBehavior: 'none', // 按 back 键是否跳转到第一个 Tab, none 为不跳转
        lazy:true,
        tabBarOptions:{
            activeTintColor:'#EE7316',// 文字和图片选中颜色
            inactiveTintColor:'#212121', // 文字和图片默认颜色
            showIcon: false, // android 默认不显示 icon, 需要设置为 true 才会显示
            indicatorStyle: {height: 1}, // android 中TabBar下面会显示一条线,高度设为 0 后就不显示线了
            style:{
                backgroundColor:'#ffffff',// TabBar 背景色
            },
            labelStyle: {
                fontSize: 18, // 文字大小
            },
        }

    }

);
//
// export const Navigator_Order = StackNavigator(
//
//     {
//         Tab:{screen:Tab_Order},
//     },
//
//     {
//         navigationOptions:{
//             headerBackTitle:null,
//             headerTintColor:'#333333',
//             showIcon:true,
//             swipeEnabled:false,
//             animationEnabled:false,
//         },
//
//         mode:'card',
//     });
//
//
//

// 也可做跳转 使用
export const Navigator = StackNavigator(

    {
        Tab:{screen:Tab},
        Setting: {screen: Setting,navigationOptions:{title:'设置'}},//跳转的页面---》 类名
        User: {screen: User},
        Address: {screen: Address},
        Feedback: {screen: Feedback},
        GoodsDetailPage: {screen: GoodsDetailPage},
        GoodsOrderPage: {screen: GoodsOrderPage},
        PayPage: {screen: PayPage},
        OrderDetailPage: {screen: OrderDetailPage},
        ButlerFoundHouse: {screen: ButlerFoundHouse},
        LifeServer:{screen:LifeServer},
        LifeServerSecondList:{screen:LifeServerSecondList},
        Login:{screen:Login},
        OrderManager:{screen:OrderManager},
        FindArticalPage:{screen:FindArticalPage},
        Tab_Order:{screen:Tab_Order},

        // OrderListPage:{screen:OrderListPage},
        // OrderListUnPayPage:{screen:OrderListUnPayPage},

    },

    {
        navigationOptions:{
            headerBackTitle:null,
            headerTintColor:'#333333',
            showIcon:true,
            swipeEnabled:false,
            animationEnabled:false,
        },

        mode:'card',
    });


text:
require 'spec_helper'

describe Gitlab::Metrics::Subscribers::ActiveRecord do
  let(:transaction) { Gitlab::Metrics::Transaction.new }
  let(:subscriber)  { described_class.new }

  let(:event) do
    double(:event, duration: 0.2,
                   payload:  { sql: 'SELECT * FROM users WHERE id = 10' })
  end

  describe '#sql' do
    describe 'without a current transaction' do
      it 'simply returns' do
        expect_any_instance_of(Gitlab::Metrics::Transaction).
          to_not receive(:increment)

        subscriber.sql(event)
      end
    end

    describe 'with a current transaction' do
      it 'increments the :sql_duration value' do
        expect(subscriber).to receive(:current_transaction).
          at_least(:once).
          and_return(transaction)

        expect(transaction).to receive(:increment).
          with(:sql_duration, 0.2)

        expect(transaction).to receive(:increment).
          with(:sql_count, 1)

        subscriber.sql(event)
      end
    end
  end
end


text:
using Microsoft.Xaml.Interactivity;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Template10.Interfaces.Validation;
using Windows.UI.Xaml;
using Windows.UI.Xaml.Controls;
using Windows.UI.Xaml.Markup;

namespace Template10.Validation.Behaviors
{
    [TypeConstraint(typeof(Control))]
    public class ValidationBehavior : DependencyObject, IBehavior
    {
        public DependencyObject AssociatedObject { get; private set; }
        Control Control => AssociatedObject as Control;

        public void Attach(DependencyObject associatedObject)
        {
            AssociatedObject = associatedObject;
            Control.DataContextChanged += Control_DataContextChanged;
            if (Control.DataContext != null)
            {
                Setup();
            }
        }

        public void Detach() => TearDown();

        private void Control_DataContextChanged(FrameworkElement sender, DataContextChangedEventArgs args) => Setup();

        private void Setup()
        {
            TearDown();
            GetProperty().PropertyChanged += Property_PropertyChanged;
            ExecuteActions();
        }

        private void TearDown()
        {
            GetProperty(false).PropertyChanged -= Property_PropertyChanged;
            Control.DataContextChanged -= Control_DataContextChanged;
        }

        private void Property_PropertyChanged(object sender, System.ComponentModel.PropertyChangedEventArgs e)
        {
            ExecuteActions();
        }

        private void ExecuteActions()
        {
            if (GetProperty().IsValid)
            {
                Interaction.ExecuteActions(AssociatedObject, WhenValidActions, null);
            }
            else
            {
                Interaction.ExecuteActions(AssociatedObject, WhenInvalidActions, null);
            }
        }

        IProperty _property;
        IProperty GetProperty(bool throwException = true)
        {
            if (_property != null)
                return _property;
            var context = (AssociatedObject as Control)?.DataContext;
            if (context == null)
                if (throwException) throw new NullReferenceException("AssociatedObject is not valid");
                else return null;
            if (string.IsNullOrEmpty(PropertyName))
                if (throwException) throw new NullReferenceException("PropertyName is not set");
                else return null;
            var model = context as IValidatableModel;
            if (model == null)
                if (throwException) throw new NullReferenceException("DataContext is not IModel");
                else return null;
            if (!model.Properties.ContainsKey(PropertyName))
                if (throwException) throw new KeyNotFoundException("PropertyName is not found");
                else return null;
            try
            {
                return _property = model.Properties[PropertyName];
            }
            catch
            {
                if (throwException) throw;
                else return null;
            }
        }

        public string PropertyName
        {
            get { return (string)GetValue(PropertyNameProperty); }
            set { SetValue(PropertyNameProperty, value); }
        }
        public static readonly DependencyProperty PropertyNameProperty =
            DependencyProperty.Register(nameof(PropertyName), typeof(string),
                typeof(ValidationBehavior), new PropertyMetadata(string.Empty, PropertyNameChanged));
        private static void PropertyNameChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)
        {
            if (!Windows.ApplicationModel.DesignMode.DesignModeEnabled)
            {
                if (!string.IsNullOrEmpty(e.OldValue?.ToString() ?? string.Empty))
                {
                    throw new InvalidOperationException("PropertyName cannot be changed once set.");
                }
            }
        }

        public ActionCollection WhenValidActions
        {
            get
            {
                var actions = GetValue(WhenValidActionsProperty) as ActionCollection;
                if (actions == null)
                {
                    SetValue(WhenValidActionsProperty, actions = new ActionCollection());
                }
                return actions;
            }
        }
        public static readonly DependencyProperty WhenValidActionsProperty =
            DependencyProperty.Register(nameof(WhenValidActions), typeof(ActionCollection),
                typeof(ValidationBehavior), new PropertyMetadata(null));

        public ActionCollection WhenInvalidActions
        {
            get
            {
                var actions = GetValue(WhenInvalidActionsProperty) as ActionCollection;
                if (actions == null)
                {
                    SetValue(WhenInvalidActionsProperty, actions = new ActionCollection());
                }
                return actions;
            }
        }
        public static readonly DependencyProperty WhenInvalidActionsProperty =
            DependencyProperty.Register(nameof(WhenInvalidActions), typeof(ActionCollection),
                typeof(ValidationBehavior), new PropertyMetadata(null));
    }
}


text:
package org.elasticsearch.index.translog;

import org.elasticsearch.common.io.stream.StreamInput;
import org.elasticsearch.common.io.stream.StreamOutput;
import org.elasticsearch.common.io.stream.Streamable;
import org.elasticsearch.common.xcontent.ToXContent;
import org.elasticsearch.common.xcontent.XContentBuilder;
import org.elasticsearch.common.xcontent.XContentBuilderString;

import java.io.IOException;

/**
 *
 */
public class TranslogStats implements ToXContent, Streamable {

    private long translogSizeInBytes = 0;
    private int estimatedNumberOfOperations = 0;

    public TranslogStats() {}

    public TranslogStats(int estimatedNumberOfOperations, long translogSizeInBytes) {
        this.estimatedNumberOfOperations = estimatedNumberOfOperations;
        this.translogSizeInBytes = translogSizeInBytes;
    }

    public void add(TranslogStats translogStats) {
        if (translogStats == null) {
            return;
        }

        this.estimatedNumberOfOperations += translogStats.estimatedNumberOfOperations;
        this.translogSizeInBytes =+ translogStats.translogSizeInBytes;
    }

    @Override
    public XContentBuilder toXContent(XContentBuilder builder, Params params) throws IOException {
        builder.startObject(Fields.TRANSLOG);
        builder.field(Fields.OPERATIONS, estimatedNumberOfOperations);
        builder.byteSizeField(Fields.SIZE_IN_BYTES, Fields.SIZE, translogSizeInBytes);
        builder.endObject();
        return builder;
    }

    static final class Fields {
        static final XContentBuilderString TRANSLOG = new XContentBuilderString("translog");
        static final XContentBuilderString OPERATIONS = new XContentBuilderString("operations");
        static final XContentBuilderString SIZE = new XContentBuilderString("size");
        static final XContentBuilderString SIZE_IN_BYTES = new XContentBuilderString("size_in_bytes");
    }

    @Override
    public void readFrom(StreamInput in) throws IOException {
        estimatedNumberOfOperations = in.readVInt();
    }

    @Override
    public void writeTo(StreamOutput out) throws IOException {
        out.writeVInt(estimatedNumberOfOperations);
    }
}


text:
//
//  UILabel+Expand.h
//  qsd
//
//  Created by chenliliang on 16/2/25.
//  Copyright © 2016年 chenliliang. All rights reserved.
//

#import <UIKit/UIKit.h>

@interface UILabel (Expand)

/** 富文本 字体*/
- (void)setText:(NSString *)text withFont:(CGFloat)font;
/** 富文本 颜色*/
- (void)setText:(NSString *)text withColor:(UIColor *)color;
/** 富文本 行间距*/
- (void)setText:(NSString *)text withLineSpacing:(CGFloat)lineSpacing;
/** 富文本*/
- (void)getAttString:(NSString *)day font:(CGFloat)font;

- (void)getAttString:(NSString *)day color:(NSString *)color;

- (void)setText:(NSString*)text lineSpacing:(CGFloat)lineSpacing;
@end


text:
import json
from django.http import HttpResponse
from haystack.query import SearchQuerySet

def autocomplete(request):
    results = SearchQuerySet().autocomplete(name_auto=request.GET.get('term', ''))[:10]
    return_results = []
    for result in results:
        return_results.append({'label': result.name_auto, 'id': result.pk})

    return HttpResponse(json.dumps(return_results), content_type='application/json')


text:
package org.zstack.core.cloudbus;

/**
 */
public class BusQueue {
    private final String name;
    private final String bindingKey;
    private final BusExchange busExchange;

    public BusQueue(String name, String bindingKey, BusExchange busExchange) {
        this.name = name;
        this.bindingKey = bindingKey;
        this.busExchange = busExchange;
    }

    public BusQueue(String name, BusExchange busExchange) {
        this.name = name;
        this.bindingKey = name;
        this.busExchange = busExchange;
    }

    public String getName() {
        return name;
    }

    public String getBindingKey() {
        return bindingKey;
    }

    public BusExchange getBusExchange() {
        return busExchange;
    }
}


text:
<?php

namespace DCarbone\PHPFHIRGenerated\STU3\PHPFHIRTests\FHIRElement;

use PHPUnit\Framework\TestCase;
use DCarbone\PHPFHIRGenerated\STU3\FHIRElement\FHIRCarePlanIntent;

/**
 * Class FHIRCarePlanIntentTest
 * @package \DCarbone\PHPFHIRGenerated\STU3\PHPFHIRTests\FHIRElement
 */
class FHIRCarePlanIntentTest extends TestCase
{
    public function testCanConstructTypeNoArgs()
    {
        $type = new FHIRCarePlanIntent();
        $this->assertInstanceOf('\DCarbone\PHPFHIRGenerated\STU3\FHIRElement\FHIRCarePlanIntent', $type);
    }
}


text:
-- phpMyAdmin SQL Dump
-- version 3.4.11.1deb2+deb7u1
-- http://www.phpmyadmin.net
--
-- Värd: blu-ray.student.bth.se
-- Skapad: 25 jan 2015 kl 11:46
-- Serverversion: 5.5.40
-- PHP-version: 5.5.20-1~dotdeb.1

SET SQL_MODE="NO_AUTO_VALUE_ON_ZERO";
SET time_zone = "+00:00";

/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */;
/*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */;
/*!40101 SET NAMES utf8 */;

--
-- Databas: `sege14`
--

-- --------------------------------------------------------

--
-- Tabellstruktur `Content`
--

CREATE TABLE IF NOT EXISTS `Content` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `slug` char(80) DEFAULT NULL,
  `url` char(80) DEFAULT NULL,
  `type` char(80) DEFAULT NULL,
  `title` varchar(80) DEFAULT NULL,
  `data` text,
  `filter` char(80) DEFAULT NULL,
  `published` datetime DEFAULT NULL,
  `created` datetime DEFAULT NULL,
  `updated` datetime DEFAULT NULL,
  `deleted` datetime DEFAULT NULL,
  PRIMARY KEY (`id`),
  UNIQUE KEY `slug` (`slug`),
  UNIQUE KEY `url` (`url`)
) ENGINE=InnoDB  DEFAULT CHARSET=utf8 AUTO_INCREMENT=15 ;

--
-- Dumpning av Data i tabell `Content`
--

INSERT INTO `Content` (`id`, `slug`, `url`, `type`, `title`, `data`, `filter`, `published`, `created`, `updated`, `deleted`) VALUES
(2, 'om', 'om', 'page', 'Om Film & CO', 'Hej jag heter Sebastian Gerdin och jag har skapat Film & CO.\r\n\r\nHär på Film & CO gör vi allt för att du ska få en sån bra filmkväll som möjligt. Därför väljer vi att sälja allt ifrån filmer,godis,läsk till pizza och annan hämtmat!\r\n\r\nVårt motto lyder "Allt du behöver för fredagsmys!" och detta försöker vi eftersträva varje gång vi köper in nya prylar till affären.\r\n\r\nFilm & CO startades 2014 och har idag 4 olika affärer runt om i landet. Den första affären öppnade i Visby och där var trycket stort så vi öppnade även 3 affärer på fastlandet i de större städerna, Stockholm,Göteborg och Malmö.\r\n\r\nVi hoppas på att forsätta kunna erbjuda den högkvalitets service som vi erbjuder här på Film & CO. Har ni några förslag eller funderingar så tveka inte att höra av er till oss, klagomål får ni dock hålla till er själva.\r\n', 'markdown', '2014-10-27 12:47:17', '2014-10-27 12:47:17', '2014-11-05 18:10:18', NULL),
(3, 'blogpost-1', NULL, 'post', 'Välkommen till Film & CO', 'Vi är stolta att presentera Film & CO!\r\nHär kan du hitta den nyaste filmen och det godaste snacksen till det bästa priset!!\r\nVi har allt du behöver för fredagsmys!\r\n', 'markdown', '2014-10-27 12:47:17', '2014-10-27 12:47:17', '2014-11-04 20:07:03', NULL),
(9, 'nyhet1', NULL, 'post', '50% PÅ ALLT I AFFÄREN!', 'Vi har nu 50% nedsatt pris på allt i affären, missa inte denna chans att se alla filmer du någonsin velat se!', 'markdown', '0000-00-00 00:00:00', '2014-11-03 13:36:55', '2014-11-06 13:45:18', NULL),
(10, 'nyhet2', NULL, 'post', 'Kodare sökes', 'Vi söker nu en kodare för att bygga ut vår hemsida. \r\nVi letar efter någon som kan PHP och MYSQL!', 'markdown', '0000-00-00 00:00:00', '2014-11-03 13:37:03', '2014-11-06 13:45:32', NULL),
(11, 'nyhet3', NULL, 'Post', 'Ny design!', 'Vi kan äntligen släppa Film & CO v2.\r\nVi hoppas att ni uppskattar den nya designen och vi har gjort allt för att det ska vara så lätt som möjligt att se vad vi erbjuder!', 'markdown', '0000-00-00 00:00:00', '2014-11-03 13:37:07', '2014-11-04 20:04:42', NULL),
(12, 'nyhet4', NULL, 'Post', 'Prissänkning på allt!', 'Vi sänker nu priserna på allt i affären, INGET ÖVER 100 kr!!', 'markdown', '0000-00-00 00:00:00', '2014-11-03 13:37:12', '2014-11-04 20:05:34', NULL),
(13, 'nyhet5', NULL, 'Post', 'Ny logga!', 'Vi har äntligen haft tid att skaffa vår egen logga hoppas den inte gör så era ögon blöder!', 'markdown', '0000-00-00 00:00:00', '2014-11-03 13:37:16', '2014-11-04 20:06:07', NULL),
(14, 'test', NULL, 'post', 'TEST', 'HEJ', 'bbcode', '0000-00-00 00:00:00', '2014-11-14 14:10:36', '2014-11-14 14:18:57', '2014-11-14 14:11:20');

-- --------------------------------------------------------

--
-- Tabellstruktur `csgo_question`
--

CREATE TABLE IF NOT EXISTS `csgo_question` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `userId` int(11) NOT NULL,
  `type` varchar(80) NOT NULL,
  `belongTo` int(11) DEFAULT NULL,
  `commentTo` int(11) DEFAULT NULL,
  `title` varchar(300) DEFAULT NULL,
  `content` text,
  `accepted` tinyint(1) DEFAULT NULL,
  `posted` datetime DEFAULT NULL,
  `modified` datetime DEFAULT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB  DEFAULT CHARSET=latin1 AUTO_INCREMENT=16 ;

--
-- Dumpning av Data i tabell `csgo_question`
--

INSERT INTO `csgo_question` (`id`, `userId`, `type`, `belongTo`, `commentTo`, `title`, `content`, `accepted`, `posted`, `modified`) VALUES
(12, 1, 'q', 12, NULL, 'Test Title', '
This is a test question.
\n', NULL, '2015-01-23 17:07:23', NULL),
(13, 1, 'c', 12, 12, NULL, 'Test comment', NULL, '2015-01-23 17:07:37', NULL),
(14, 3, 'q', 14, NULL, 'another test question', '
this is just another test.
\n', NULL, '2015-01-24 16:06:01', NULL),
(15, 1, 'a', 14, NULL, NULL, 'test answer!', NULL, '2015-01-24 16:06:26', NULL);

-- --------------------------------------------------------

--
-- Tabellstruktur `csgo_tag`
--

CREATE TABLE IF NOT EXISTS `csgo_tag` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `userId` int(11) NOT NULL,
  `postId` int(11) NOT NULL,
  `tag` varchar(80) DEFAULT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB  DEFAULT CHARSET=latin1 AUTO_INCREMENT=22 ;

--
-- Dumpning av Data i tabell `csgo_tag`
--

INSERT INTO `csgo_tag` (`id`, `userId`, `postId`, `tag`) VALUES
(15, 1, 12, 'test'),
(16, 1, 12, 'tag'),
(17, 1, 12, 'csgo'),
(18, 1, 12, ''),
(19, 3, 14, 'test'),
(20, 3, 14, 'question'),
(21, 3, 14, 'csgo');

-- --------------------------------------------------------

--
-- Tabellstruktur `csgo_user`
--

CREATE TABLE IF NOT EXISTS `csgo_user` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `username` varchar(20) NOT NULL,
  `email` varchar(80) DEFAULT NULL,
  `password` varchar(255) DEFAULT NULL,
  `registered` datetime DEFAULT NULL,
  PRIMARY KEY (`id`),
  UNIQUE KEY `username` (`username`)
) ENGINE=InnoDB  DEFAULT CHARSET=latin1 AUTO_INCREMENT=4 ;

--
-- Dumpning av Data i tabell `csgo_user`
--

INSERT INTO `csgo_user` (`id`, `username`, `email`, `password`, `registered`) VALUES
(1, 'Sebastian', 'sebastian.gerdin@gmail.com', 'cc03e747a6afbbcbf8be7668acfebee5', '2015-01-18 14:54:40'),
(2, 'test123', 'test@test.com', 'cc03e747a6afbbcbf8be7668acfebee5', '2015-01-22 22:49:41'),
(3, 'test1234', 'test@test.com', '16d7a4fca7442dda3ad93c9a726597e4', '2015-01-23 17:08:13');

-- --------------------------------------------------------

--
-- Tabellstruktur `genre`
--

CREATE TABLE IF NOT EXISTS `genre` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `name` char(20) NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB  DEFAULT CHARSET=utf8 AUTO_INCREMENT=13 ;

--
-- Dumpning av Data i tabell `genre`
--

INSERT INTO `genre` (`id`, `name`) VALUES
(1, 'comedy'),
(2, 'romance'),
(3, 'college'),
(4, 'crime'),
(5, 'drama'),
(6, 'thriller'),
(7, 'animation'),
(8, 'adventure'),
(9, 'family'),
(11, 'action'),
(12, 'horror');

-- --------------------------------------------------------

--
-- Tabellstruktur `kmom04_comment`
--

CREATE TABLE IF NOT EXISTS `kmom04_comment` (
  `id` int(200) NOT NULL AUTO_INCREMENT,
  `page` varchar(200) NOT NULL,
  `content` varchar(200) NOT NULL,
  `name` varchar(200) NOT NULL,
  `web` varchar(200) NOT NULL,
  `mail` varchar(200) NOT NULL,
  `timestamp` varchar(200) NOT NULL,
  `ip` varchar(200) NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB  DEFAULT CHARSET=latin1 AUTO_INCREMENT=15 ;

--
-- Dumpning av Data i tabell `kmom04_comment`
--

INSERT INTO `kmom04_comment` (`id`, `page`, `content`, `name`, `web`, `mail`, `timestamp`, `ip`) VALUES
(13, '', 'Test', 'random', 'test.com', 'test@gmail.com', '1418201178', '194.47.129.126'),
(14, '', 'asd', 'asd', 'asd', 'asd@kamsdl.se', '1419261720', '194.47.129.126');

-- --------------------------------------------------------

--
-- Tabellstruktur `kmom04_user`
--

CREATE TABLE IF NOT EXISTS `kmom04_user` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `acronym` varchar(20) NOT NULL,
  `email` varchar(80) DEFAULT NULL,
  `name` varchar(80) DEFAULT NULL,
  `password` varchar(255) DEFAULT NULL,
  `created` datetime DEFAULT NULL,
  `updated` datetime DEFAULT NULL,
  `deleted` datetime DEFAULT NULL,
  `active` datetime DEFAULT NULL,
  PRIMARY KEY (`id`),
  UNIQUE KEY `acronym` (`acronym`)
) ENGINE=InnoDB  DEFAULT CHARSET=latin1 AUTO_INCREMENT=4 ;

--
-- Dumpning av Data i tabell `kmom04_user`
--

INSERT INTO `kmom04_user` (`id`, `acronym`, `email`, `name`, `password`, `created`, `updated`, `deleted`, `active`) VALUES
(1, 'sebastian', 'sebastian.gerdin@gmail.com', 'Sebastian Gerdin', '$2y$10$LBe5E/s0rlqk5Cm1XFCigeMdQPdq2sJv03MkL5J8ruR4r.oz3/EDe', '2014-12-03 11:06:44', NULL, NULL, '2014-12-22 16:24:14'),
(3, 'foiki', 'me@jonatankarlsson.se', 'Jonatan', '$2y$10$dn1NSzfez6/A/mcb5.GzceVrYoasyDsufta7JbAGDaszOsejBzJSW', '2014-12-22 16:23:54', '2014-12-22 16:23:59', NULL, '2014-12-22 16:24:11');

-- --------------------------------------------------------

--
-- Tabellstruktur `Movie`
--

CREATE TABLE IF NOT EXISTS `Movie` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `title` varchar(100) NOT NULL,
  `director` varchar(100) DEFAULT NULL,
  `length` int(11) DEFAULT NULL,
  `year` int(11) NOT NULL DEFAULT '1900',
  `plot` text,
  `image` varchar(100) DEFAULT NULL,
  `pris` int(2) DEFAULT NULL,
  `slug` char(80) NOT NULL,
  `url` char(80) NOT NULL,
  `updated` datetime DEFAULT NULL,
  `type` char(5) NOT NULL DEFAULT 'movie',
  PRIMARY KEY (`id`)
) ENGINE=InnoDB  DEFAULT CHARSET=utf8 AUTO_INCREMENT=35 ;

--
-- Dumpning av Data i tabell `Movie`
--

INSERT INTO `Movie` (`id`, `title`, `director`, `length`, `year`, `plot`, `image`, `pris`, `slug`, `url`, `updated`, `type`) VALUES
(1, 'Pulp fiction', 'Admin', 154, 1994, 'Jules Winnfield and Vincent Vega are two hitmen who are out to retrieve a suitcase stolen from their employer, mob boss Marsellus Wallace. Wallace has also asked Vincent to take his wife Mia out a few days later when Wallace himself will be out of town. Butch Coolidge is an aging boxer who is paid by Wallace to lose his next fight. The lives of these seemingly unrelated people are woven together comprising of a series of funny, bizarre and uncalled-for incidents. ', 'img/movie/pulp-fiction.jpg', 35, 'movie1', '', '2014-11-14 14:15:16', 'movie'),
(25, 'Tron', 'Joseph Kosinski', 125, 2010, 'Sam Flynn, the tech-savvy 27-year-old son of Kevin Flynn, looks into his father''s disappearance and finds himself pulled into the same world of fierce programs and gladiatorial games where his father has been living for 20 years. Along with Kevin''s loyal confidant Quorra, father and son embark on a life-and-death journey across a visually-stunning cyber universe that has become far more advanced and exceedingly dangerous. Meanwhile, the malevolent program CLU, who dominates the digital world, plans to invade the real world and will stop at nothing to prevent their escape.', 'img/movie/tron_legacy.jpg', 55, '', '', '2014-11-05 17:52:48', 'movie'),
(26, 'Cloverfield', 'Matt Reeves', 85, 2008, 'Cloverfield follows five New Yorkers from the perspective of a hand-held video camera. The movie is exactly the length of a DV Tape and a sub-plot is established by showing bits and pieces of video previously recorded on the tape that is being recorded over. The movie starts as a monster of unknown origin destroys a building. As they go to investigate, parts of the building and the head of the Statue of Liberty come raining down. The movie follows their adventure trying to escape and save a friend, a love interest of the main character.', 'img/movie/cloverfield.jpg', 67, '', '', '2014-11-05 17:53:35', 'movie'),
(27, 'Interstellar', 'Christopher Nolan', 169, 2014, 'In the near future Earth has been devastated by drought and famine, causing a scarcity in food and extreme changes in climate. When humanity is facing extinction, a mysterious rip in the space-time continuum is discovered, giving mankind the opportunity to widen their lifespan. A group of explorers must travel beyond our solar system in search of a planet that can sustain life. The crew of the Endurance are required to think bigger and go further than any human in history as they embark on an interstellar voyage, into the unknown. However, through the wormhole, one hour is the equivalent of seven years back on Earth, so the mission won''t work if the people on Earth are dead by the time they pull it off. And Coop, the pilot of the Endurance, must decide between seeing his children again and the future of the human race. ', 'img/movie/interstellar.jpg', 80, '', '', NULL, 'movie'),
(28, 'Fury', 'David Ayer', 134, 2014, 'April, 1945. As the Allies make their final push in the European Theatre, a battle-hardened army sergeant named Wardaddy (Brad Pitt) commands a Sherman tank and her five-man crew on a deadly mission behind enemy lines. Outnumbered and outgunned, Wardaddy and his men face overwhelming odds in their heroic attempts to strike at the heart of Nazi Germany.', 'img/movie/fury.jpg', 55, '', '', NULL, 'movie'),
(29, 'Intouchables', 'Olivier Nakache, Eric Toledano', 112, 2011, 'In Paris, the aristocratic and intellectual Philippe is a quadriplegic millionaire who is interviewing candidates for the position of his carer, with his red-haired secretary Magalie. Out of the blue, the rude African Driss cuts the line of candidates and brings a document from the Social Security and asks Phillipe to sign it to prove that he is seeking a job position so he can receive his unemployment benefit. Philippe challenges Driss, offering him a trial period of one month to gain experience helping him. Then Driss can decide whether he would like to stay with him or not. Driss accepts the challenge and moves to the mansion, changing the boring life of Phillipe and his employees. ', 'img/movie/intouchables.jpg', 55, '', '', '2014-11-05 17:54:10', 'movie'),
(30, 'The Imitation Game', 'Morten Tyldum', 114, 2014, 'Based on the real life story of legendary cryptanalyst Alan Turing, the film portrays the nail-biting race against time by Turing and his brilliant team of code-breakers at Britain''s top-secret Government Code and Cypher School at Bletchley Park, during the darkest days of World War II.', 'img/movie/imitation_game.jpg', 45, '', '', '2014-11-06 14:30:38', 'movie'),
(31, 'The Dark Knight', 'Christopher Nolan', 152, 2008, 'Batman raises the stakes in his war on crime. With the help of Lieutenant Jim Gordon and District Attorney Harvey Dent, Batman sets out to dismantle the remaining criminal organizations that plague the city streets. The partnership proves to be effective, but they soon find themselves prey to a reign of chaos unleashed by a rising criminal mastermind known to the terrified citizens of Gotham as The Joker.', 'img/movie/dark_knight.jpg', 60, '', '', NULL, 'movie'),
(32, 'Dark Knight Rises', 'Christopher Nolan', 165, 2012, 'Despite his tarnished reputation after the events of The Dark Knight, in which he took the rap for Dent''s crimes, Batman feels compelled to intervene to assist the city and its police force which is struggling to cope with Bane''s plans to destroy the city.', 'img/movie/dark_knight_rises.jpg', 60, '', '', NULL, 'movie'),
(33, 'Guardians of the Galaxy', 'James Gunn', 121, 2014, 'After stealing a mysterious orb in the far reaches of outer space, Peter Quill from Earth, is now the main target of a manhunt led by the villain known as Ronan the Accuser. To help fight Ronan and his team and save the galaxy from his power, Quill creates a team of space heroes known as the "Guardians of the Galaxy" to save the world.', 'img/movie/guardians.jpg', 50, '', '', NULL, 'movie'),
(34, 'Mamma', NULL, NULL, 1900, NULL, NULL, NULL, '', '', '2014-12-28 21:15:41', 'movie');

-- --------------------------------------------------------

--
-- Tabellstruktur `Movie2Genre`
--

CREATE TABLE IF NOT EXISTS `Movie2Genre` (
  `idMovie` int(11) NOT NULL,
  `idGenre` int(11) NOT NULL,
  PRIMARY KEY (`idMovie`,`idGenre`),
  KEY `idGenre` (`idGenre`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Dumpning av Data i tabell `Movie2Genre`
--

INSERT INTO `Movie2Genre` (`idMovie`, `idGenre`) VALUES
(1, 1),
(29, 1),
(1, 2),
(1, 3),
(1, 4),
(1, 5),
(28, 5),
(30, 5),
(1, 6),
(30, 6),
(25, 8),
(27, 8),
(31, 8),
(32, 8),
(33, 8),
(1, 9),
(29, 9),
(25, 11),
(26, 11),
(28, 11),
(31, 11),
(32, 11),
(33, 11),
(26, 12);

-- --------------------------------------------------------

--
-- Tabellstruktur `User`
--

CREATE TABLE IF NOT EXISTS `User` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `acronym` char(12) NOT NULL,
  `name` varchar(80) DEFAULT NULL,
  `password` char(32) DEFAULT NULL,
  `salt` int(11) NOT NULL,
  PRIMARY KEY (`id`),
  UNIQUE KEY `acronym` (`acronym`)
) ENGINE=InnoDB  DEFAULT CHARSET=utf8 AUTO_INCREMENT=3 ;

--
-- Dumpning av Data i tabell `User`
--

INSERT INTO `User` (`id`, `acronym`, `name`, `password`, `salt`) VALUES
(1, 'doe', 'John/Jane Doe', '0bec47d8cbec2a6b5696c22fb45daf84', 1413713617),
(2, 'admin', 'Administrator', '88f3032c278b4e82e842cb97d400834e', 1413713617);

/*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */;
/*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */;
/*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;


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

<TITLE>
IFlowCacheService.FCQueryEvType
</TITLE>

<META NAME="date" CONTENT="2013-08-27">

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

      Overview
      Package
    Class
      Use
      Tree
      Deprecated
      Index
      Help

 PREV CLASS
 NEXT CLASS

  FRAMES
 NO FRAMES

  All Classes

  SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD

DETAIL: ENUM CONSTANTS | FIELD | METHOD

net.floodlightcontroller.flowcache

Enum IFlowCacheService.FCQueryEvType

java.lang.Object
  java.lang.Enum<IFlowCacheService.FCQueryEvType>
      net.floodlightcontroller.flowcache.IFlowCacheService.FCQueryEvType

All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<IFlowCacheService.FCQueryEvType>

Enclosing interface:
IFlowCacheService

public static enum IFlowCacheService.FCQueryEvType
extends java.lang.Enum<IFlowCacheService.FCQueryEvType>

The flow cache query event type indicating the event that triggered the
 query. The callerOpaqueObj can be keyed based on this event type

Enum Constant Summary

ACL_ADDED

          An ACL was added

ACL_CONFIG_CHANGED

          ACL configuration was changed

ACL_DELETED

          An ACL was deleted

ACL_RULE_ADDED

          An ACL rule was added

ACL_RULE_DELETED

          An ACL rule was deleted

APP_ADDED

          A new App was added.

APP_CONFIG_CHANGED

          Some App configuration was changed

APP_DELETED

          An App was deleted.

APP_INTERFACE_RULE_CHANGED

          Interface rule of an app was modified

DEVICE_MOVED

          device had moved to a different port in the network

DEVICE_PROPERTY_CHANGED

          device's property had changed, such as tag assignment

GET

          The GET query.

LINK_DOWN

          Link down

PERIODIC_SCAN

          Periodic scan of switch flow table

Method Summary

static IFlowCacheService.FCQueryEvType
valueOf(java.lang.String name)

          Returns the enum constant of this type with the specified name.

static IFlowCacheService.FCQueryEvType[]
values()

          Returns an array containing the constants of this enum type, in
the order they are declared.

Methods inherited from class java.lang.Enum

clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf

Methods inherited from class java.lang.Object

getClass, notify, notifyAll, wait, wait, wait

Enum Constant Detail

GET

public static final IFlowCacheService.FCQueryEvType GET

The GET query. Flows need not be reconciled for this query type

APP_ADDED

public static final IFlowCacheService.FCQueryEvType APP_ADDED

A new App was added.

APP_DELETED

public static final IFlowCacheService.FCQueryEvType APP_DELETED

An App was deleted.

APP_INTERFACE_RULE_CHANGED

public static final IFlowCacheService.FCQueryEvType APP_INTERFACE_RULE_CHANGED

Interface rule of an app was modified

APP_CONFIG_CHANGED

public static final IFlowCacheService.FCQueryEvType APP_CONFIG_CHANGED

Some App configuration was changed

ACL_ADDED

public static final IFlowCacheService.FCQueryEvType ACL_ADDED

An ACL was added

ACL_DELETED

public static final IFlowCacheService.FCQueryEvType ACL_DELETED

An ACL was deleted

ACL_RULE_ADDED

public static final IFlowCacheService.FCQueryEvType ACL_RULE_ADDED

An ACL rule was added

ACL_RULE_DELETED

public static final IFlowCacheService.FCQueryEvType ACL_RULE_DELETED

An ACL rule was deleted

ACL_CONFIG_CHANGED

public static final IFlowCacheService.FCQueryEvType ACL_CONFIG_CHANGED

ACL configuration was changed

DEVICE_MOVED

public static final IFlowCacheService.FCQueryEvType DEVICE_MOVED

device had moved to a different port in the network

DEVICE_PROPERTY_CHANGED

public static final IFlowCacheService.FCQueryEvType DEVICE_PROPERTY_CHANGED

device's property had changed, such as tag assignment

LINK_DOWN

public static final IFlowCacheService.FCQueryEvType LINK_DOWN

Link down

PERIODIC_SCAN

public static final IFlowCacheService.FCQueryEvType PERIODIC_SCAN

Periodic scan of switch flow table

Method Detail

values

public static IFlowCacheService.FCQueryEvType[] values()

Returns an array containing the constants of this enum type, in
the order they are declared.  This method may be used to iterate
over the constants as follows:

for (IFlowCacheService.FCQueryEvType c : IFlowCacheService.FCQueryEvType.values())
    System.out.println(c);

Returns:
an array containing the constants of this enum type, in
the order they are declared

valueOf

public static IFlowCacheService.FCQueryEvType valueOf(java.lang.String name)

Returns the enum constant of this type with the specified name.
The string must match exactly an identifier used to declare an
enum constant in this type.  (Extraneous whitespace characters are
not permitted.)

Parameters:
name - the name of the enum constant to be returned.

Returns:
the enum constant with the specified name

Throws:

java.lang.IllegalArgumentException - if this enum type has no constant
with the specified name

java.lang.NullPointerException - if the argument is null

      Overview
      Package
    Class
      Use
      Tree
      Deprecated
      Index
      Help

 PREV CLASS
 NEXT CLASS

  FRAMES
 NO FRAMES

  All Classes

  SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD

DETAIL: ENUM CONSTANTS | FIELD | METHOD


text:
/* -*- mode: c++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */

/*
 Copyright (C) 2001, 2002, 2003 Sadruddin Rejeb

 This file is part of QuantLib, a free-software/open-source library
 for financial quantitative analysts and developers - http://quantlib.org/

 QuantLib is free software: you can redistribute it and/or modify it
 under the terms of the QuantLib license.  You should have received a
 copy of the license along with this program; if not, please email
 <quantlib-dev@lists.sf.net>. The license is also available online at
 <http://quantlib.org/license.shtml>.

 This program is distributed in the hope that it will be useful, but WITHOUT
 ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
 FOR A PARTICULAR PURPOSE.  See the license for more details.
*/

#include <ql/pricingengines/capfloor/analyticcapfloorengine.hpp>

namespace QuantLib {

    AnalyticCapFloorEngine::AnalyticCapFloorEngine(
                              const boost::shared_ptr<AffineModel>& model,
                              const Handle<YieldTermStructure>& termStructure)
    : GenericModelEngine<AffineModel,
                         CapFloor::arguments,
                         CapFloor::results >(model),
      termStructure_(termStructure) {
        registerWith(termStructure_);
    }

    void AnalyticCapFloorEngine::calculate() const {
        QL_REQUIRE(!model_.empty(), "null model");

        Date referenceDate;
        DayCounter dayCounter;

        boost::shared_ptr<TermStructureConsistentModel> tsmodel =
            boost::dynamic_pointer_cast<TermStructureConsistentModel>(*model_);
        if (tsmodel) {
            referenceDate = tsmodel->termStructure()->referenceDate();
            dayCounter = tsmodel->termStructure()->dayCounter();
        } else {
            referenceDate = termStructure_->referenceDate();
            dayCounter = termStructure_->dayCounter();
        }

        Real value = 0.0;
        CapFloor::Type type = arguments_.type;
        Size nPeriods = arguments_.endDates.size();

        bool includeRefDatePayments =
            Settings::instance().includeReferenceDateEvents();
        if (referenceDate == Settings::instance().evaluationDate()) {
            boost::optional<bool> includeTodaysPayments =
                Settings::instance().includeTodaysCashFlows();
            if (includeTodaysPayments)
                includeRefDatePayments = *includeTodaysPayments;
        }

        for (Size i=0; i<nPeriods; i++) {

            Time fixingTime =
                dayCounter.yearFraction(referenceDate,
                                        arguments_.fixingDates[i]);
            Time paymentTime =
                dayCounter.yearFraction(referenceDate,
                                        arguments_.endDates[i]);

            bool not_expired =
                includeRefDatePayments ? paymentTime >= 0.0 : paymentTime > 0.0;

            if (not_expired) {
                Time tenor = arguments_.accrualTimes[i];
                Rate fixing = arguments_.forwards[i];
                if (fixingTime <= 0.0) {
                    if (type == CapFloor::Cap || type == CapFloor::Collar) {
                        DiscountFactor discount = model_->discount(paymentTime);
                        Rate strike = arguments_.capRates[i];
                        value += discount * arguments_.nominals[i] * tenor
                               * arguments_.gearings[i]
                               * std::max(0.0, fixing - strike);
                    }
                    if (type == CapFloor::Floor || type == CapFloor::Collar) {
                        DiscountFactor discount = model_->discount(paymentTime);
                        Rate strike = arguments_.floorRates[i];
                        Real mult = (type == CapFloor::Floor) ? 1.0 : -1.0;
                        value += discount * arguments_.nominals[i] * tenor
                               * mult * arguments_.gearings[i]
                               * std::max(0.0, strike - fixing);
                    }
                } else {
                    Time maturity =
                        dayCounter.yearFraction(referenceDate,
                                                arguments_.startDates[i]);
                    if (type == CapFloor::Cap || type == CapFloor::Collar) {
                        Real temp = 1.0+arguments_.capRates[i]*tenor;
                        value += arguments_.nominals[i] *
                            arguments_.gearings[i] * temp *
                            model_->discountBondOption(Option::Put, 1.0/temp,
                                                       maturity, paymentTime);
                    }
                    if (type == CapFloor::Floor || type == CapFloor::Collar) {
                        Real temp = 1.0+arguments_.floorRates[i]*tenor;
                        Real mult = (type == CapFloor::Floor) ? 1.0 : -1.0;
                        value += arguments_.nominals[i] *
                            arguments_.gearings[i] * temp * mult *
                            model_->discountBondOption(Option::Call, 1.0/temp,
                                                       maturity, paymentTime);
                    }
                }
            }
        }

        results_.value = value;
    }

}


text:
<?php

namespace Ipalaus\File\Storage;

use Illuminate\Contracts\Filesystem\FileNotFoundException as IlluminateFileNotFoundException;
use Illuminate\Filesystem\Filesystem;
use Ipalaus\File\Contracts\FileNotFoundException;
use Ipalaus\File\Contracts\InvalidFileHandleException;
use Ipalaus\File\Contracts\Storage;

class Local extends Engine implements Storage
{
    public $engineName = 'local';
    public $engineFormat = 'raw';

    /**
     * Filesystem implementation.
     *
     * @var \Illuminate\Filesystem\Filesystem
     */
    protected $filesystem;

    /**
     * The path where files should be stored.
     *
     * @var string
     */
    protected $path;

    /**
     * Create a new local storage instance.
     *
     * @param \Illuminate\Filesystem\Filesystem $filesystem
     * @param string                            $path
     */
    public function __construct(Filesystem $filesystem, $path)
    {
        $this->filesystem = $filesystem;
        $this->path = $path;
    }

    /**
     * {@inheritDoc}
     */
    public function write($data, array $options)
    {
        $name = $this->generateName();

        $parent = $this->path . '/' . dirname($name);

        // Make sure the parent directory exists and create it is missing
        if ( ! $this->filesystem->isDirectory($parent)) {
            $this->filesystem->makeDirectory($parent, 0755, true);
        }

        // Write the file to the disk
        $this->filesystem->put("{$this->path}/{$name}", $data);

        return $name;
    }

    /**
     * {@inheritDoc}
     */
    public function read($handle)
    {
        $path = $this->getLocalPath($handle);

        try {
            return $this->filesystem->get($path);
        } catch (IlluminateFileNotFoundException $e) {
            throw new FileNotFoundException;
        }
    }

    /**
     * Generate a random, unique file path like "ab/29/1f918a9ac39201ff". We
     * put a couple of subdirectories up front to avoid a situation where we
     * have one directory with a zillion files in it, since this is generally
     * bad news.
     *
     * @return string
     */
    protected function generateName()
    {
        do {
            $name = md5(mt_rand());
            $name = preg_replace('/^(..)(..)(.*)$/', '\\1/\\2/\\3', $name);

            if ( ! $this->filesystem->exists("{$this->path}/{$name}")) {
                return $name;
            }
        } while (true);
    }

    /**
     * Convert a handle to an absolute path in the local disk.
     *
     * @param string $handle
     *
     * @return string
     * @throws \Ipalaus\File\Contracts\InvalidFileHandleException
     */
    protected function getLocalPath($handle)
    {
        if ( ! preg_match('@^[a-f0-9]{2}/[a-f0-9]{2}/[a-f0-9]{28}\z@', $handle)) {
            throw new InvalidFileHandleException("Local disk filesystem handle '{$handle}' is malformed!");
        }

        return "{$this->path}/{$handle}";
    }
}


text:
I'm one of you guys now
=======================
[![I'm one of you guys now](http://ludumdare.com/compo/wp-content/compo2/542293/90061-shot0-1461028108.png)](http://the.codeartistic.ninja/did/oneofyouguys/).

Compile and run
---------------
Download and install [node.js](https://nodejs.org/en/).

Open terminal and type

    $ cd path/to/oneofyouguys/
    $ npm install
    $ npm start

Open your browser to http://localhost:8000/


text:
#include <sys/cdefs.h>
__FBSDID("$FreeBSD$");

#include <sys/param.h>
#include <sys/systm.h>
#include <sys/bus.h>
#include <sys/kernel.h>
#include <sys/module.h>

#include <dev/ofw/ofw_bus.h>

#include <machine/bus.h>
#include <sys/rman.h>
#include <machine/resource.h>
#include <machine/ver.h>

#include <dev/uart/uart.h>
#include <dev/uart/uart_bus.h>
#include <dev/uart/uart_cpu.h>

static int uart_ebus_probe(device_t dev);

static device_method_t uart_ebus_methods[] = {
	/* Device interface */
	DEVMETHOD(device_probe,		uart_ebus_probe),
	DEVMETHOD(device_attach,	uart_bus_attach),
	DEVMETHOD(device_detach,	uart_bus_detach),
	{ 0, 0 }
};

static driver_t uart_ebus_driver = {
	uart_driver_name,
	uart_ebus_methods,
	sizeof(struct uart_softc),
};

static int
uart_ebus_probe(device_t dev)
{
	const char *nm, *cmpt;
	struct uart_softc *sc;
	struct uart_devinfo dummy;

	sc = device_get_softc(dev);
	sc->sc_class = NULL;

	nm = ofw_bus_get_name(dev);
	cmpt = ofw_bus_get_compat(dev);
	if (cmpt == NULL)
		cmpt = "";
	if (!strcmp(nm, "lom-console") || !strcmp(nm, "su") ||
	    !strcmp(nm, "su_pnp") || !strcmp(cmpt, "rsc-console") ||
	    !strcmp(cmpt, "rsc-control") || !strcmp(cmpt, "su") ||
	    !strcmp(cmpt, "su16550") || !strcmp(cmpt, "su16552")) {
		/*
		 * On AXi and AXmp boards the NS16550 (used to connect
		 * keyboard/mouse) share their IRQ lines with the i8042.
		 * Any IRQ activity (typically during attach) of the
		 * NS16550 used to connect the keyboard when actually the
		 * PS/2 keyboard is selected in OFW causes interaction
		 * with the OBP i8042 driver resulting in a hang and vice
		 * versa. As RS232 keyboards and mice obviously aren't
		 * meant to be used in parallel with PS/2 ones on these
		 * boards don't attach to the NS16550 in case the RS232
		 * keyboard isn't selected in order to prevent such hangs.
		 */
		if ((!strcmp(sparc64_model, "SUNW,UltraAX-MP") ||
		    !strcmp(sparc64_model, "SUNW,UltraSPARC-IIi-Engine")) &&
		    uart_cpu_getdev(UART_DEV_KEYBOARD, &dummy)) {
				device_disable(dev);
				return (ENXIO);
		}
		sc->sc_class = &uart_ns8250_class;
		return (uart_bus_probe(dev, 0, 0, 0, 0));
	}

	return (ENXIO);
}

DRIVER_MODULE(uart, ebus, uart_ebus_driver, uart_devclass, 0, 0);


text:
import React from 'react';
import {app} from '../components/app';

export default app(props => (

BogApp.dk / BibData.dk / BiblioteksApp.dk

      This is an open source literature/library app under development.

      See
      {' '}

        github:solsort/bogapp

      {' '}
      for details.

      State of the project: currently rewriting the previous version:
      {' '}
      MoBibl
      {' '}
      as JavaScript app using Material Design. Not any functionality / anything to see here yet...

));


text:
package compiler.data.abstree.visitor;

import compiler.data.abstree.*;

/**
 * A visitor that visits every node.
 *
 * @author sliva
 *
 * @param <Result> The result the visitor produces.
 * @param <Arg>    The argument the visitor carries around.
 */
public class AbsFullVisitor<Result, Arg> implements AbsVisitor<Result, Arg> {

	@Override
	public Result visit(AbsArgs args, Arg visArg) {
		for (AbsExpr arg : args.args())
			arg.accept(this, visArg);
		return null;
	}

	@Override
	public Result visit(AbsArrExpr arrExpr, Arg visArg) {
		arrExpr.array.accept(this, visArg);
		arrExpr.index.accept(this, visArg);
		return null;
	}

	@Override
	public Result visit(AbsArrType arrType, Arg visArg) {
		arrType.len.accept(this, visArg);
		arrType.elemType.accept(this, visArg);
		return null;
	}

	@Override
	public Result visit(AbsAssignStmt assignStmt, Arg visArg) {
		assignStmt.dst.accept(this, visArg);
		assignStmt.src.accept(this, visArg);
		return null;
	}

	@Override
	public Result visit(AbsAtomExpr atomExpr, Arg visArg) {
		return null;
	}

	@Override
	public Result visit(AbsAtomType atomType, Arg visArg) {
		return null;
	}

	@Override
	public Result visit(AbsBinExpr binExpr, Arg visArg) {
		binExpr.fstExpr.accept(this, visArg);
		binExpr.sndExpr.accept(this, visArg);
		return null;
	}

	@Override
	public Result visit(AbsBlockExpr blockExpr, Arg visArg) {
		blockExpr.decls.accept(this, visArg);
		blockExpr.stmts.accept(this, visArg);
		blockExpr.expr.accept(this, visArg);
		return null;
	}

	@Override
	public Result visit(AbsCastExpr castExpr, Arg visArg) {
		castExpr.type.accept(this, visArg);
		castExpr.expr.accept(this, visArg);
		return null;
	}

	@Override
	public Result visit(AbsCompDecl compDecl, Arg visArg) {
		compDecl.type.accept(this, visArg);
		return null;
	}

	@Override
	public Result visit(AbsCompDecls compDecls, Arg visArg) {
		for (AbsCompDecl compDecl : compDecls.compDecls())
			compDecl.accept(this, visArg);
		return null;
	}

	@Override
	public Result visit(AbsDecls decls, Arg visArg) {
		for (AbsDecl decl : decls.decls())
			decl.accept(this, visArg);
		return null;
	}

	@Override
	public Result visit(AbsDelExpr delExpr, Arg visArg) {
		delExpr.expr.accept(this, visArg);
		return null;
	}

	@Override
	public Result visit(AbsExprStmt exprStmt, Arg visArg) {
		exprStmt.expr.accept(this, visArg);
		return null;
	}

	@Override
	public Result visit(AbsFunDecl funDecl, Arg visArg) {
		funDecl.parDecls.accept(this, visArg);
		funDecl.type.accept(this, visArg);
		return null;
	}

	@Override
	public Result visit(AbsFunDef funDef, Arg visArg) {
		funDef.parDecls.accept(this, visArg);
		funDef.type.accept(this, visArg);
		funDef.value.accept(this, visArg);
		return null;
	}

	@Override
	public Result visit(AbsFunName funName, Arg visArg) {
		funName.args.accept(this, visArg);
		return null;
	}

	@Override
	public Result visit(AbsIfStmt ifStmt, Arg visArg) {
		ifStmt.cond.accept(this, visArg);
		ifStmt.thenStmts.accept(this, visArg);
		ifStmt.elseStmts.accept(this, visArg);
		return null;
	}

	@Override
	public Result visit(AbsNewExpr newExpr, Arg visArg) {
		newExpr.type.accept(this, visArg);
		return null;
	}

	@Override
	public Result visit(AbsParDecl parDecl, Arg visArg) {
		parDecl.type.accept(this, visArg);
		return null;
	}

	@Override
	public Result visit(AbsParDecls parDecls, Arg visArg) {
		for (AbsParDecl parDecl : parDecls.parDecls())
			parDecl.accept(this, visArg);
		return null;
	}

	@Override
	public Result visit(AbsPtrType ptrType, Arg visArg) {
		ptrType.ptdType.accept(this, visArg);
		return null;
	}

	@Override
	public Result visit(AbsRecExpr recExpr, Arg visArg) {
		recExpr.record.accept(this, visArg);
		recExpr.comp.accept(this, visArg);
		return null;
	}

	@Override
	public Result visit(AbsRecType recType, Arg visArg) {
		recType.compDecls.accept(this, visArg);
		return null;
	}

	@Override
	public Result visit(AbsSource source, Arg visArg) {
		source.decls.accept(this, visArg);
		return null;
	}

	@Override
	public Result visit(AbsStmts stmts, Arg visArg) {
		for (AbsStmt stmt : stmts.stmts())
			stmt.accept(this, visArg);
		return null;
	}

	@Override
	public Result visit(AbsTypDecl typDecl, Arg visArg) {
		typDecl.type.accept(this, visArg);
		return null;
	}

	@Override
	public Result visit(AbsTypName typName, Arg visArg) {
		return null;
	}

	@Override
	public Result visit(AbsUnExpr unExpr, Arg visArg) {
		unExpr.subExpr.accept(this, visArg);
		return null;
	}

	@Override
	public Result visit(AbsVarDecl varDecl, Arg visArg) {
		varDecl.type.accept(this, visArg);
		return null;
	}

	@Override
	public Result visit(AbsVarName varName, Arg visArg) {
		return null;
	}

	@Override
	public Result visit(AbsWhileStmt whileStmt, Arg visArg) {
		whileStmt.cond.accept(this, visArg);
		whileStmt.stmts.accept(this, visArg);
		return null;
	}

}


text:
package com.sequenceiq.freeipa.api.v1.freeipa.stack.model.common.security;

import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import com.fasterxml.jackson.annotation.JsonInclude;

import io.swagger.annotations.ApiModel;

@ApiModel("StackAuthenticationV1Request")
@JsonIgnoreProperties(ignoreUnknown = true)
@JsonInclude(JsonInclude.Include.NON_NULL)
public class StackAuthenticationRequest extends StackAuthenticationBase {
}