text:
define([
    'angular',
    'app',
    'common',
], function (angular, app) {

    'use strict';
    return app.config([
        '$routeProvider',
        '$locationProvider',
        'staticUrl',

    function ($routeProvider, $locationProvider, staticUrl) {

        // --------------------------------------------------------------------
        // Configure app routing
        // --------------------------------------------------------------------
        // Set up HTML5 location API mode
        // --------------------------------------------------------------------
        $locationProvider.html5Mode(true).hashPrefix('!');

        // Routes
        // --------------------------------------------------------------------
        $routeProvider.

            // Index
            when('/', {
                templateUrl: staticUrl.concat('partials/app/home.html'),
                controller: 'Home'
            }).

            // About
            when('/about', {
                templateUrl: staticUrl.concat('partials/app/about.html'),
                controller: 'About'
            }).

            // Forum
            when('/forum/latest', {
                templateUrl: staticUrl.concat(
                    'partials/app/forum/item_list.html'),
                controller: 'ItemList'
            }).

            when('/forum/categories', {
                templateUrl: staticUrl.concat(
                    'partials/app/forum/category_list.html'),
                controller: 'CategoryList'
            }).

            when('/forum/t/:itemSlug', {
                templateUrl: staticUrl.concat('partials/app/forum/item_detail.html'),
                controller: 'ItemDetail'
            }).

            when('/forum/category/:categorySlug', {
                templateUrl: staticUrl.concat('partials/app/forum/item_list.html'),
                controller: 'ItemList'
            }).

            when('/forum/search', {
                templateUrl: staticUrl.concat('partials/app/forum/item_list.html'),
                controller: 'ItemList'
            }).

            when('/forum/create', {
                templateUrl: staticUrl.concat('partials/app/forum/item_create.html'),
                controller: 'ItemCreate'
            }).

            // Bands
            when('/bands/all', {
                templateUrl: staticUrl.concat('partials/app/bands/band_list.html'),
                controller: 'BandList'
            }).

            when('/bands/genres', {
                templateUrl: staticUrl.concat('partials/app/bands/genre_list.html'),
                controller: 'GenreList'
            }).

            when('/bands/b/:bandId', {
                templateUrl: staticUrl.concat('partials/app/bands/band_detail.html'),
                controller: 'BandDetail'
            }).

            when('/bands/genre/:genreSlug', {
                templateUrl: staticUrl.concat('partials/app/bands/band_list.html'),
                controller: 'BandList'
            }).

            when('/bands/create', {
                templateUrl: staticUrl.concat('partials/app/bands/band_create.html'),
                controller: 'BandCreate'
            }).

            // BOTB
            when('/botb/all', {
                templateUrl: staticUrl.concat('partials/app/botb/botb_list.html'),
            }).

            // Services
            when('/services/rehearsal', {
                templateUrl: staticUrl.concat('partials/app/services/rehearsal.html'),
                controller: 'Rehearsal'
            }).

            when('/services/gear', {
                templateUrl: staticUrl.concat('partials/app/services/gear_hire.html'),
                controller: 'GearHire'
            }).

            // Members
            when('/user/:userId', {
                templateUrl: staticUrl.concat(
                    'partials/app/members/user_detail.html'),
                controller: 'UserDetail',
            }).

            when('/verify', {
                templateUrl: staticUrl.concat(
                    'partials/app/members/verify.html'),
                controller: 'Verify',
            }).

            when('/settings', {
                templateUrl: staticUrl.concat(
                    'partials/app/members/settings.html'),
                controller: 'Settings',
            }).

            when('/admin/credentials', {
                templateUrl: staticUrl.concat(
                    'partials/app/members/credentials.html'),
                controller: 'Credentials',
            }).

            // Misc
            when('/webmaster', {
                templateUrl: staticUrl.concat(
                    'partials/app/webmaster_contact.html')
            }).

            // Auth
            when('/login', {
                templateUrl: staticUrl.concat(
                    'partials/app/members/login.html'),
                controller: 'Login'
            }).

            when('/register', {
                templateUrl: staticUrl.concat(
                    'partials/app/members/register.html'),
                controller: 'Register'
            }).

            // Errors
            when('/403', {
                templateUrl: staticUrl.concat('partials/app/errors/403.html')
            }).

            when('/404', {
                templateUrl: staticUrl.concat('partials/app/errors/404.html')
            }).

            // Redirect anything else to 404.
            otherwise({
                redirectTo: '/404'
            });
    }]);
});


text:
import { Folder } from '@proton/shared/lib/interfaces/Folder';

import useFolderColor from './useFolderColor';
import { useMailSettings } from './useMailSettings';

jest.mock('./useMailSettings', () => ({
    useMailSettings: jest.fn(() => [{ EnableFolderColor: 1, InheritParentFolderColor: 1 }, false]),
}));

jest.mock('./useCategories', () => ({
    useFolders: () => [
        [
            { ID: 'A', Color: 'red' },
            { ID: 'B', Color: 'blue', ParentID: 'A' },
            { ID: 'C', Color: 'green', ParentID: 'B' },
        ],
        false,
    ],
}));

describe('useFolderColor hook', () => {
    it('should not return color if EnableFolderColor is disabled', () => {
        (useMailSettings as jest.Mock).mockReturnValueOnce([
            { EnableFolderColor: 0, InheritParentFolderColor: 1 },
            false,
        ]);
        const folder = { ID: 'C', Color: 'green' } as Folder;
        const color = useFolderColor(folder);
        expect(color).toBe(undefined);
    });

    it('should return current color if InheritParentFolderColor is disabled', () => {
        (useMailSettings as jest.Mock).mockReturnValueOnce([
            { EnableFolderColor: 1, InheritParentFolderColor: 0 },
            false,
        ]);
        const folder = { ID: 'C', Color: 'green', ParentID: 'B' } as Folder;
        const color = useFolderColor(folder);
        expect(color).toBe('green');
    });

    it('should return current folder color since it is a root', () => {
        const folder = { ID: 'C', Color: 'green' } as Folder;
        const color = useFolderColor(folder);
        expect(color).toBe('green');
    });

    it('should search for root folder color', () => {
        const folder = { ID: 'C', Color: 'green', ParentID: 'B' } as Folder;
        const color = useFolderColor(folder);
        expect(color).toBe('red');
    });
});

redpajama_set_name: RedPajamaGithub


text:
Language
========

Symbols
-------
* **t** - True
* **nil** - False
* **pi** - 3.14159
* **e** - 2.7182
* **step-offset** - User settable to a number, or a function with no arguments that returns a number. This number is added to the *part_step* parameter of the **part()** function. The default value is 0.
* **time-index** - 0..N, for creating animations.

Functions
---------

.. automodule:: opensdraw.lcad_language.coreFunctions
   :members: Append, Aref, Block, Concatenate, Cond, Copy, Def, For, If, Import, Lambda, Len, List, Print, PyImport, Set, While

Part Functions
--------------

.. automodule:: opensdraw.lcad_language.partFunctions
   :members: Comment, Group, Header, Line, OptionalLine, Part, Quadrilateral, Triangle

Comparison Functions
--------------------

.. automodule:: opensdraw.lcad_language.comparisonFunctions
   :members: Equal, Ne, Gt, Ge, Lt, Le

Logical Functions
-----------------

.. automodule:: opensdraw.lcad_language.logicFunctions
   :members: And, Or, Not

Type Functions
--------------

.. automodule:: opensdraw.lcad_language.typeFunctions
   :members: IsBoolean, IsMatrix, IsNumber, IsString, IsVector

Geometry Functions
------------------

.. automodule:: opensdraw.lcad_language.geometryFunctions
   :members: CrossProduct, DotProduct, Matrix, Mirror, Rotate, Scale, Transform, Translate, Vector

Math Functions
--------------

.. automodule:: opensdraw.lcad_language.mathFunctions
   :members: Absolute, Plus, Minus, Multiply, Divide, Modulo

All the functions in the python math library are also available:

Usage::

  (cos x)
  (sin x)
  (degrees (atan2 2 3))
  ...

Random Number Functions
-----------------------

.. automodule:: opensdraw.lcad_language.randomNumberFunctions
   :members: RandSeed, RandChoice, RandGauss, RandInteger, RandUniform


text:
package com.gechen.keepwalking.kw.activity;

import android.os.Bundle;
import android.support.v4.app.Fragment;
import android.support.v4.app.FragmentManager;
import android.support.v4.app.FragmentPagerAdapter;
import android.support.v4.view.ViewPager;
import android.support.v4.widget.DrawerLayout;
import android.support.v7.app.ActionBarDrawerToggle;
import android.support.v7.widget.Toolbar;
import android.view.Menu;
import android.view.View;
import android.view.ViewConfiguration;
import android.view.Window;
import android.widget.ListView;

import com.kw_support.thirdlib.http.Response;
import com.kw_support.thirdlib.http.VolleyError;
import com.gechen.keepwalking.R;
import com.gechen.keepwalking.kw.KwApplication;
import com.gechen.keepwalking.kw.frament.TabFragment;
import com.gechen.keepwalking.kw.manager.ApiRequest;
import com.gechen.keepwalking.kw.manager.DummyObject;
import com.kw_support.thirdlib.http.request.GsonGetRequest;
import com.kw_support.base.BaseImmerseStatusActivity;
import com.kw_support.view.ChangeColorIconWithText;
import com.kw_support.view.DrawerArrowDrawable;

import java.lang.reflect.Field;
import java.lang.reflect.Method;
import java.util.ArrayList;
import java.util.List;

/**
 * Created by G-chen on 2015-6-28.
 */
public class KwMainActivity extends BaseImmerseStatusActivity implements ViewPager.OnPageChangeListener {
    private ViewPager mContent;
    private Toolbar mToolBar;
    private DrawerLayout mDrawerLayout;
    private DrawerArrowDrawable mDrawerArrow;
    private ActionBarDrawerToggle mActionBarToggle;
    private ListView mDrawerContent;

    private List<Fragment> mTabs = new ArrayList<Fragment>();

    private String[] mTitles = new String[]{
            "FirstFragment", "SecondFragment", "ThirdFragment", "ForthFragment"
    };

    @Override
    public void setContentView(int layoutResID) {
        super.setContentView(layoutResID);
    }

    private List<ChangeColorIconWithText> mIndicators = new ArrayList<ChangeColorIconWithText>();

    private ContentFragmentAdapter mFragmentAdapter;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_wei_xin_main);

        setOverFlowButtonAlways();

        initView();
        initDatas();
        initEvent();
    }

    private void initEvent() {
        mContent.setOnPageChangeListener(this);
    }

    private void initDatas() {
        for (String title : mTitles) {
            TabFragment tabFragment = new TabFragment();
            Bundle bundle = new Bundle();
            bundle.putString(TabFragment.ARGUMENTS, title);
            tabFragment.setArguments(bundle);
            mTabs.add(tabFragment);
        }

        mFragmentAdapter = new ContentFragmentAdapter(getSupportFragmentManager());
        mContent.setAdapter(mFragmentAdapter);

        // 测试 volley + okhttp网络请求
        final GsonGetRequest<DummyObject> gsonGetRequest = ApiRequest.getDummyObject
                (new Response.Listener<DummyObject>() {
                     @Override
                     public void onResponse(DummyObject dummyObject) {
                        DummyObject md = dummyObject;
                     }
                 }
                        ,
                        new Response.ErrorListener() {
                            @Override
                            public void onErrorResponse(VolleyError error) {
                                VolleyError e = error;
                            }
                        }
                );

        KwApplication.addRequest(gsonGetRequest, "gechen");
    }

    private void initView() {
        mDrawerArrow = new DrawerArrowDrawable(this) {
            @Override
            public boolean isLayoutRtl() {
                return false;
            }
        };
        mToolBar = (Toolbar) findViewById(R.id.tool_bar);
        mToolBar.setTitle(R.string.app_name);
        mToolBar.setLogo(android.R.color.transparent);
        mDrawerLayout = (DrawerLayout) findViewById(R.id.drawer_layout);
        mDrawerContent = (ListView) findViewById(R.id.drawer_content);

        mActionBarToggle = new ActionBarDrawerToggle(this, mDrawerLayout, mToolBar,
                R.string.drawer_open, R.string.drawer_close);
        mActionBarToggle.syncState();
        mDrawerLayout.setDrawerListener(mActionBarToggle);

        mContent = (ViewPager) findViewById(R.id.vp_content);

        ChangeColorIconWithText indicatorOne = (ChangeColorIconWithText) findViewById(R.id.cciw_indicator_one);
        ChangeColorIconWithText indicatorTwo = (ChangeColorIconWithText) findViewById(R.id.cciw_indicator_two);
        ChangeColorIconWithText indicatorThree = (ChangeColorIconWithText) findViewById(R.id.cciw_indicator_three);
        ChangeColorIconWithText indicatorFour = (ChangeColorIconWithText) findViewById(R.id.cciw_indicator_four);

        mIndicators.add(indicatorOne);
        mIndicators.add(indicatorTwo);
        mIndicators.add(indicatorThree);
        mIndicators.add(indicatorFour);

        indicatorOne.setOnClickListener(this);
        indicatorTwo.setOnClickListener(this);
        indicatorThree.setOnClickListener(this);
        indicatorFour.setOnClickListener(this);

        indicatorOne.setIconAlpha(1.0f);
    }

    @Override
    public boolean onCreateOptionsMenu(Menu menu) {
        getMenuInflater().inflate(R.menu.menu_wei_xin_main, menu);
        return super.onCreateOptionsMenu(menu);
    }

    private void setOverFlowButtonAlways() {
        ViewConfiguration config = ViewConfiguration.get(this);

        try {
            Field menuKey = ViewConfiguration.class.getDeclaredField("sHasPermanentMenuKey");
            menuKey.setAccessible(true);
            menuKey.setBoolean(config, false);

        } catch (Exception e) {
            e.printStackTrace();
        }
    }

    @Override
    public boolean onMenuOpened(int featureId, Menu menu) {
        if (featureId == Window.FEATURE_ACTION_BAR && menu != null) {
            if (menu.getClass().getSimpleName().equals("MenuBuilder")) {
                try {
                    Method m = menu.getClass().getDeclaredMethod("setOptionalIconsVisible", Boolean.TYPE);
                    m.setAccessible(true);
                    m.invoke(menu, true);
                } catch (Exception e) {
                    e.printStackTrace();
                }
            }
        }
        return super.onMenuOpened(featureId, menu);
    }

    @Override
    public void onPageScrolled(int position, float positionOffset, int positionOffsetPixels) {
        if (positionOffset > 0) {
            ChangeColorIconWithText left = mIndicators.get(position);
            ChangeColorIconWithText right = mIndicators.get(position + 1);

            left.setIconAlpha(1 - positionOffset);
            right.setIconAlpha(positionOffset);
        }
    }

    @Override
    public void onPageSelected(int position) {

    }

    @Override
    public void onPageScrollStateChanged(int state) {

    }

    private class ContentFragmentAdapter extends FragmentPagerAdapter {

        public ContentFragmentAdapter(FragmentManager fm) {
            super(fm);
        }

        @Override
        public Fragment getItem(int position) {
            return mTabs == null ? null : mTabs.get(position);
        }

        @Override
        public int getCount() {
            return mTabs.size();
        }

    }

    @Override
    public void onClick(View view) {
        indicatorOnClick(view);
    }

    private void indicatorOnClick(View view) {
        resetOthersIndicator();

        switch (view.getId()) {
            case R.id.cciw_indicator_one:
                mIndicators.get(0).setIconAlpha(1.0f);
                mContent.setCurrentItem(0, false);
                break;
            case R.id.cciw_indicator_two:
                mIndicators.get(1).setIconAlpha(1.0f);
                mContent.setCurrentItem(1, false);
                break;
            case R.id.cciw_indicator_three:
                mIndicators.get(2).setIconAlpha(1.0f);
                mContent.setCurrentItem(2, false);
                break;
            case R.id.cciw_indicator_four:
                mIndicators.get(3).setIconAlpha(1.0f);
                mContent.setCurrentItem(3, false);
                break;
        }
    }

    private void resetOthersIndicator() {
        for (int i = 0; i < mIndicators.size(); i++) {
            mIndicators.get(i).setIconAlpha(0);
        }
    }
}


text:
require 'octokit'

module PrLog
  # Adapter for Github Api
  class GithubRepository
    def initialize(name, access_token)
      @name = name
      @client = Octokit::Client.new(access_token: access_token)
    end

    def pull_requests_with_milestone(milestone)
      fail_if_empty(get_issues(milestone_query(milestone)))
    end

    private

    def milestone_query(milestone)
      "repo:#{@name} type:pr is:merged milestone:#{milestone}"
    end

    def fail_if_empty(result)
      return result if result.any?

      raise(NoPullRequestsForMilestone,
            'No pull requests for milestone')
    end

    def get_issues(query)
      @client.search_issues(query, per_page: 1000)['items'].map(&:to_hash)
    rescue Octokit::UnprocessableEntity
      raise(GithubRepositoryNotFound, 'Github repository not found')
    end
  end
end


text:
using Azure.Core;
using Azure.ResourceManager.DataProtectionBackup.Models;
using Azure.ResourceManager.Models;

namespace Azure.ResourceManager.DataProtectionBackup
{
    /// <summary> A class representing the DataProtectionBackupPolicy data model. </summary>
    public partial class DataProtectionBackupPolicyData : ResourceData
    {
        /// <summary> Initializes a new instance of DataProtectionBackupPolicyData. </summary>
        public DataProtectionBackupPolicyData()
        {
        }

        /// <summary> Initializes a new instance of DataProtectionBackupPolicyData. </summary>
        /// <param name="id"> The id. </param>
        /// <param name="name"> The name. </param>
        /// <param name="resourceType"> The resourceType. </param>
        /// <param name="systemData"> The systemData. </param>
        /// <param name="properties">
        /// BaseBackupPolicyResource properties
        /// Please note <see cref="DataProtectionBackupPolicyPropertiesBase"/> is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes.
        /// The available derived classes include <see cref="RuleBasedBackupPolicy"/>.
        /// </param>
        internal DataProtectionBackupPolicyData(ResourceIdentifier id, string name, ResourceType resourceType, SystemData systemData, DataProtectionBackupPolicyPropertiesBase properties) : base(id, name, resourceType, systemData)
        {
            Properties = properties;
        }

        /// <summary>
        /// BaseBackupPolicyResource properties
        /// Please note <see cref="DataProtectionBackupPolicyPropertiesBase"/> is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes.
        /// The available derived classes include <see cref="RuleBasedBackupPolicy"/>.
        /// </summary>
        public DataProtectionBackupPolicyPropertiesBase Properties { get; set; }
    }
}


text:
// Copyright 2015-2016, Google, Inc.
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
//    http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.

/* jshint camelcase:false */
'use strict';

var async = require('async');

// [START write]
// [START setup]
// You must set the GOOGLE_APPLICATION_CREDENTIALS and GCLOUD_PROJECT
// environment variables to run this sample
var projectId = process.env.GCLOUD_PROJECT;

// Initialize gcloud
var gcloud = require('gcloud')({
  projectId: projectId
});

// Get a reference to the logging component
var logging = gcloud.logging();
// [END setup]

/**
 * @param {string} logName Name of the log to write to.
 * @param {Function} callback Callback function.
 */
function writeExample(logName, callback) {
  // Get a reference to an existing log
  var log = logging.log(logName);

  // Modify this resource type to match a resource in your project
  // See https://cloud.google.com/logging/docs/api/ref_v2beta1/rest \
  //       /v2beta1/monitoredResourceDescriptors/list
  var resource = {
    type: 'gae_app',
    // This example targets a "App Engine" resource in the default module with
    // a version_id of "express"
    labels: {
      module_id: 'default',
      version_id: 'express'
    }
  };

  // Create a log entry attached to the specified resource
  var entry = log.entry(resource, {
    foo: 'bar'
  });

  // Create a second log entry attached to the specified resource
  var secondEntry = log.entry(resource, {
    beep: 'boop'
  });

  // Save the two log entries. You can log multiple entries one at a a time, but
  // it is best to write multiple entires together in a batch.
  log.write([
    entry,
    secondEntry
  ], function (err, apiResponse) {
    if (err) {
      return callback(err);
    }

    console.log('Wrote to ' + logName);
    callback(null, apiResponse);
  });
}
// [END write]

// [START deleteLog]
/**
 * @param {string} logName Name of the log to delete.
 * @param {Function} callback Callback function.
 */
function deleteLogExample(logName, callback) {
  // Get a reference to an existing log
  var log = logging.log(logName);

  // Delete the log
  log.delete(function (err, apiResponse) {
    if (err) {
      return callback(err);
    }

    console.log('Deleted ' + logName);
    callback(null, apiResponse);
  });
}
// [END deleteLog]

// Run the examples
exports.main = function (cb) {
  async.series([
    function (cb) {
      writeExample('myLog', cb);
    },
    function (cb) {
      deleteLogExample('myLog', cb);
    }
  ], cb || console.log);
};

if (module === require.main) {
  exports.main();
}


text:
package storageclass

import (
	"fmt"

	"k8s.io/apimachinery/pkg/fields"
	"k8s.io/apimachinery/pkg/labels"
	"k8s.io/apimachinery/pkg/runtime"
	"k8s.io/apimachinery/pkg/util/validation/field"
	genericapirequest "k8s.io/apiserver/pkg/endpoints/request"
	"k8s.io/apiserver/pkg/storage/names"
	"k8s.io/kubernetes/pkg/api"
	"k8s.io/kubernetes/pkg/apis/storage"
	"k8s.io/kubernetes/pkg/apis/storage/validation"
	"k8s.io/kubernetes/pkg/genericapiserver/registry/generic"
	apistorage "k8s.io/kubernetes/pkg/storage"
)

// storageClassStrategy implements behavior for StorageClass objects
type storageClassStrategy struct {
	runtime.ObjectTyper
	names.NameGenerator
}

// Strategy is the default logic that applies when creating and updating
// StorageClass objects via the REST API.
var Strategy = storageClassStrategy{api.Scheme, names.SimpleNameGenerator}

func (storageClassStrategy) NamespaceScoped() bool {
	return false
}

// ResetBeforeCreate clears the Status field which is not allowed to be set by end users on creation.
func (storageClassStrategy) PrepareForCreate(ctx genericapirequest.Context, obj runtime.Object) {
	_ = obj.(*storage.StorageClass)
}

func (storageClassStrategy) Validate(ctx genericapirequest.Context, obj runtime.Object) field.ErrorList {
	storageClass := obj.(*storage.StorageClass)
	return validation.ValidateStorageClass(storageClass)
}

// Canonicalize normalizes the object after validation.
func (storageClassStrategy) Canonicalize(obj runtime.Object) {
}

func (storageClassStrategy) AllowCreateOnUpdate() bool {
	return false
}

// PrepareForUpdate sets the Status fields which is not allowed to be set by an end user updating a PV
func (storageClassStrategy) PrepareForUpdate(ctx genericapirequest.Context, obj, old runtime.Object) {
	_ = obj.(*storage.StorageClass)
	_ = old.(*storage.StorageClass)
}

func (storageClassStrategy) ValidateUpdate(ctx genericapirequest.Context, obj, old runtime.Object) field.ErrorList {
	errorList := validation.ValidateStorageClass(obj.(*storage.StorageClass))
	return append(errorList, validation.ValidateStorageClassUpdate(obj.(*storage.StorageClass), old.(*storage.StorageClass))...)
}

func (storageClassStrategy) AllowUnconditionalUpdate() bool {
	return true
}

// GetAttrs returns labels and fields of a given object for filtering purposes.
func GetAttrs(obj runtime.Object) (labels.Set, fields.Set, error) {
	cls, ok := obj.(*storage.StorageClass)
	if !ok {
		return nil, nil, fmt.Errorf("given object is not of type StorageClass")
	}
	return labels.Set(cls.ObjectMeta.Labels), StorageClassToSelectableFields(cls), nil
}

// MatchStorageClass returns a generic matcher for a given label and field selector.
func MatchStorageClasses(label labels.Selector, field fields.Selector) apistorage.SelectionPredicate {
	return apistorage.SelectionPredicate{
		Label:    label,
		Field:    field,
		GetAttrs: GetAttrs,
	}
}

// StorageClassToSelectableFields returns a label set that represents the object
func StorageClassToSelectableFields(storageClass *storage.StorageClass) fields.Set {
	return generic.ObjectMetaFieldsSet(&storageClass.ObjectMeta, false)
}


text:
function gibbsKernDisplay(kern, spaceNum)

% GIBBSKERNDISPLAY Display parameters of the GIBBS kernel.
% FORMAT
% DESC displays the parameters of the Mark Gibbs's non-stationary
% kernel and the kernel type to the console.
% ARG kern : the kernel to display.
%
% FORMAT does the same as above, but indents the display according
% to the amount specified.
% ARG kern : the kernel to display.
% ARG spacing : how many spaces to indent the display of the kernel by.
%
% SEEALSO : gibbsKernParamInit, modelDisplay, kernDisplay
%
% COPYRIGHT : Neil D. Lawrence, 2006

% GPMAT

if nargin > 1
else
  spaceNum = 0;
end
spacing = repmat(32, 1, spaceNum);
spacing = char(spacing);
fprintf(spacing);
fprintf('GIBBS variance: %2.4f\n', kern.variance)
fprintf(spacing);
fprintf('GIBBS length scale function: \n')
modelDisplay(kern.lengthScaleFunc, length(spacing) + 2);


text:
<!DOCTYPE html>

    <meta charset="utf-8"/>
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no"/>
    <meta http-equiv="X-UA-Compatible" content="IE=edge"/>
    <meta name="theme-color" content="#eeeeee"/>

    <link rel="manifest" href="/manifest.json"/>
    <meta name="apple-mobile-web-app-capable" content="yes"/>
    <meta name="apple-mobile-web-app-status-bar-style" content="black"/>
    <meta name="apple-mobile-web-app-title" content="Wiregoose"/>
    <link rel="apple-touch-icon" href="/assets/img/logo-170-nologo.png"/>
    <meta name="msapplication-TileImage" content="/assets/img/logo-170-nologo.png"/>
    <meta name="msapplication-TileColor" content="#eeeeee"/>

    <title>Wiregoose</title>
    <meta name="description" content="Wiregoose is an online news transmitter"/>
    <meta name="keywords" content="News"/>

    <meta name="application-name" content="Wiregoose"/>
    <meta name="twitter:card" content="summary"/>
    <meta name="twitter:site" content="@wiregoose"/>
    <meta property="og:site_name" content="Wiregoose" />
    <meta property="article:publisher" content="https://www.facebook.com/wiregoose"/>
    <meta name="creator" content="John Apostolidis"/>

    <link rel="icon" type="image/png" href="/assets/img/logo.png"/>

          Wiregoose

            To use wiregoose, please enable JavaScript.


text:
<?php

namespace App\Http\Controllers\Tag;

use App\Http\Controllers\Controller;
use App\Http\Requests\Tag\StoreTagRequest;
use App\Http\Requests\Tag\UpdateTagRequest;
use App\Http\Requests\Tag\DeleteTagRequest;
use App\Http\Requests\Tag\PermanentlyDeleteTagRequest;
use App\Services\Tag\TagService;

/**
 * Class TagController
 * @package App\Http\Controllers\Tag
 */
class TagController extends Controller
{
    /**
     * @var TagService
     **/
    protected $tags;

    public function __construct(TagService $tags)
    {
        $this->tags = $tags;
    }

    public function index()
    {
        $tags = $this->tags->getPaginated(50);

        return compact('tags');
    }

    public function show($id)
    {
        $tag = $this->tags->find($id);

        return compact('tag');
    }

    public function create()
    {
        //
    }

    public function edit($id)
    {
        $tag = $this->tags->find($id);

        return compact('tag');
    }

    public function store(StoreTagRequest $request)
    {
        if (!$this->tags->create($request->all()))
        {
            return $this->tags->error();
        }

        return $this->tags->success();
    }

    public function update($id, UpdateTagRequest $request)
    {
        if (!$this->tags->update($id, $request->all()))
        {
            return $this->tags->error();
        }

        return $this->tags->success();
    }

    public function destroy($id, DeleteTagRequest $request)
    {
        if (!$this->tags->destroy($id))
        {
            return $this->tags->error();
        }

        return $this->tags->success();
    }

    public function delete($id, PermanentlyDeleteTagRequest $request)
    {
        if (!$this->tags->delete($id))
        {
            return $this->tags->error();
        }

        return $this->tags->success();
    }
}


text:
namespace base {
class FilePath;
}

namespace drive {

// Interface for classes that need to observe events from classes implementing
// DriveFileSystemInterface.
// All events are notified on UI thread.
class FileSystemObserver {
 public:
  // Triggered when a content of a directory has been changed.
  // |directory_path| is a virtual directory path (/drive/...) representing
  // changed directory.
  virtual void OnDirectoryChanged(const base::FilePath& directory_path) {
  }

  // Triggered when the file system is initially loaded.
  virtual void OnInitialLoadFinished() {
  }

  // Triggered when the feed from the server is loaded.
  virtual void OnFeedFromServerLoaded() {
  }

 protected:
  virtual ~FileSystemObserver() {}
};

}  // namespace drive

#endif  // CHROME_BROWSER_CHROMEOS_DRIVE_FILE_SYSTEM_OBSERVER_H_


text:
<!DOCTYPE html>

<meta charset="UTF-8">
<meta name="description" content="Сайт електроних сервісів міста Мелітополь. Кабінет самообслуговування, контаку з адміністрацією та мерією міста">
<meta name=keywords content="SmartCity.Melitopol, SM, SmartCity, Melitopol">
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta http-equiv="X-UA-Compatible" content="IE=edge, chrome=1">
<meta name=author content="Сажнєв Михайло / 100000718680383, Вячеслав Рєдькін / 100012765812627, Станіслав Деріпаско / 100012813070004">
<title >SmartCity.Melitopol. Кабінет електронних сервісів</title>
<link href=/css/fractal.css rel=stylesheet>
<link href=/css/bootstrap.min.css rel=stylesheet>

Вітаємо, увійти в особистий кабінет

<button type=button class=close data-dismiss=modal>×</button>

Увійти в систему

<text style=color:red; id="err"></text>

<form class=form-inline role=form>

 Введіть логін
<input type=email class=form-control id=email placeholder=Логін>

 Введіть пароль
<input type=password class=form-control id=pwd placeholder=Пароль>

Нагадати пароль

<input type=checkbox> Запам'ятати мене

</form>

Реєстрація
<button type=submit class="btn btn-primary" onclick = "login_1();" id = "login_0">Увійти</button>

SmartCity.
Кабінет електронних сервісів

Концепція 1

Проекти 42

Новини 0

Міська влада 1

Допомога

<form class="navbar-form navbar-left pull-right" role=search>

<input type=text class=form-control placeholder="Пошук сервісів">

<button type=submit class="btn btn-default">Пошук</button>
</form>

<button type=button class=close data-dismiss=alert>×</button>
Увага! Сайт знаходиться в розробці, працює в режимі обмеженого доступу.

Вартість ресурсів витрачених навчальними закладами на одну дитину

Адміністрування

<link href=/css/datepicker.css rel=stylesheet>

Оберіть проміжок часу

Оберіть початкову та кінцеву дати

<button type=button class="btn btn-primary pull-right" onclick="get_req_energo5()">Аналізувати</button>

Початкова дата <button type=button class="btn btn-default" id=dp4 data-date-format=yyyy-mm-dd data-date=2016-01-01>Вибрати</button>
Кінцева дата <button type=button class="btn btn-default" id=dp5 data-date-format=yyyy-mm-dd data-date=2016-10-25>Вибрати</button>

2016-01-01
2016-10-25

Структура витрат

Аналіз показників енерговитрат

 Динаміка споживання по закладам

 Витрати ресурсів закладами

 Споживання ресурсів закладами

 Структура витрат

 Вартість ресурсів витрачених навчальними закладами

Наверх

Концепція

Проекти

Новини

Міська влада

Допомога

Підтримка


text:
select
        s.name as site_name,
        p.name as project_name,
        wb.name as workbook_name,
        su.name as user_name,
        c.name as capability_name,
        'Group' as permissioned_via
from next_gen_permissions ngpg
inner join workbooks wb on wb.id = ngpg.authorizable_id and ngpg.authorizable_type = 'Workbook'
inner join group_users gu on gu.group_id = ngpg.grantee_id and ngpg.grantee_type = 'Group'
inner join users u on u.id = gu.user_id
inner join system_users su on su.id = u.system_user_id
inner join projects p on p.id = wb.project_id
inner join sites s on s.id = wb.site_id
inner join capabilities c on c.id = ngpg.capability_id
where ngpg.permission = 1

union all
select
        s.name as site_name,
        p.name as project_name,
        wb.name as workbook_name,
        su.name as user_name,
        c.name as capability_name,
        'User' as permissioned_via
from next_gen_permissions ngpu
inner join workbooks wb on wb.id = ngpu.authorizable_id and ngpu.authorizable_type = 'Workbook'
inner join users u on u.id = ngpu.grantee_id and ngpu.grantee_type = 'User'
inner join system_users su on su.id = u.system_user_id
inner join projects p on p.id = wb.project_id
inner join sites s on s.id = wb.site_id
inner join capabilities c on c.id = ngpu.capability_id
where ngpu.permission = 3


text:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

    <meta http-equiv="content-type" content="text/html; charset=utf-8"/>
    <title>Statistics of flat in UD_Spanish-PUD</title>
    <link rel="root" href=""/>
    <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/font-awesome/4.4.0/css/font-awesome.min.css">
    <link rel="stylesheet" type="text/css" href="../../css/jquery-ui-redmond.css"/>
    <link rel="stylesheet" type="text/css" href="../../css/style.css"/>
    <link rel="stylesheet" type="text/css" href="../../css/style-vis.css"/>
    <link rel="stylesheet" type="text/css" href="../../css/hint.css"/>

          home

          edit page
          issue tracker

          <gcse:search></gcse:search>

        This page pertains to UD version 2.

            It appears that you have Javascript disabled.
            Please consider enabling Javascript for this page to see the visualizations.

Treebank Statistics: UD_Spanish-PUD: Relations: flat

This relation is universal.
There are 1 language-specific subtypes of flat: <tt>flat:name</tt>.

1 nodes (0%) are attached to their parents as flat.

1 instances of flat (100%) are left-to-right (parent precedes child).
Average distance between parent and child is 1.

The following 1 pairs of parts of speech are connected with flat: <tt>X</tt>-<tt>X</tt> (1; 100% instances).

# visual-style 22	bgColor:blue
# visual-style 22	fgColor:white
# visual-style 21	bgColor:blue
# visual-style 21	fgColor:white
# visual-style 21 22 flat	color:blue
1	Esta	_	DET	DT	Gender=Fem|Number=Sing|PronType=Dem	2	det	_	_
2	redacción	redacción	NOUN	NN	Gender=Fem|Number=Sing	5	nsubj	_	_
3	fue	ser	AUX	VBC	Aspect=Perf|Mood=Ind|Number=Sing|Person=3|Tense=Past|VerbForm=Fin|Voice=Act	5	cop	_	_
4	el	el	DET	DT	Definite=Def|Gender=Masc|Number=Sing|PronType=Art	5	det	_	_
5	acto	acto	NOUN	NN	Gender=Masc|Number=Sing	0	root	_	_
6	fundador	fundador	ADJ	JJ	Gender=Masc|Number=Sing	5	amod	_	_
7	de	de	ADP	IN	_	9	case	_	_
8	la	el	DET	DT	Definite=Def|Gender=Fem|Number=Sing|PronType=Art	9	det	_	_
9	ley	ley	NOUN	NN	Gender=Fem|Number=Sing	5	nmod	_	_
10	romana	_	ADJ	JJ	Gender=Fem|Number=Sing	9	amod	_	SpaceAfter=No|Proper=True
11	,	,	PUNCT	,	_	13	punct	_	_
12	las	el	DET	DT	Definite=Def|Gender=Fem|Number=Plur|PronType=Art	13	det	_	_
13	instituciones	_	NOUN	NN	Gender=Fem|Number=Plur	9	conj	_	_
14	de	de	ADP	IN	_	16	case	_	_
15	la	el	DET	DT	Definite=Def|Gender=Fem|Number=Sing|PronType=Art	16	det	_	_
16	República	república	NOUN	NN	Gender=Fem|Number=Sing	13	nmod	_	Proper=True
17	de	de	ADP	IN	_	18	case	_	Proper=True
18	Roma	Roma	PROPN	NNP	Number=Sing	16	nmod	_	_
19	y	y	CCONJ	CC	_	21	cc	_	_
20	el	el	DET	DT	Definite=Def|Gender=Masc|Number=Sing|PronType=Art	21	det	_	_
21	mos	mos	X	FW	_	9	conj	_	_
22	maiorum	maiorum	X	FW	Foreign=Yes	21	flat	_	SpaceAfter=No
23	.	.	PUNCT	.	_	5	punct	_	_

© 2014–2021
            Universal Dependencies contributors.
            Site powered by Annodoc and brat
.