text:
define("dojox/geo/openlayers/Layer", [
	"dojo/_base/declare",
	"dojo/_base/lang",
	"dojo/_base/array",
	"dojo/_base/sniff",
	"./Feature"
], function(declare, lang, array, sniff, Feature){

		return declare("dojox.geo.openlayers.Layer", null, {
			// summary:
			//		Base layer class for dojox.geo.openlayers.Map specific layers extending OpenLayers.Layer class.
			//		This layer class accepts Features which encapsulates graphic objects to be added to the map.
			//		This layer class encapsulates an OpenLayers.Layer.
			//		This class provides Feature management such as add, remove and feature access.
			constructor: function(name, options){
				// summary:
				//		Constructs a new Layer.
				// name: String
				//		The name of the layer.
				// options: Object
				//		Options passed to the underlying OpenLayers.Layer object.

				var ol = options ? options.olLayer : null;

				if(!ol){
					ol = lang.delegate(new OpenLayers.Layer(name, options));
				}

				this.olLayer = ol;
				this._features = null;
				this.olLayer.events.register("moveend", this, lang.hitch(this, this.moveTo));
			},

			renderFeature: function(/* Feature */f){
				// summary:
				//		Called when rendering a feature is necessary.
				// f: Feature
				//		The feature to draw.
				f.render();
			},

			getDojoMap: function(){
				return this.dojoMap;
			},

			addFeature: function(f){
				// summary:
				//		Add a feature or an array of features to the layer.
				// f: Feature|Feature[]
				//		The Feature or array of features to add.
				if(lang.isArray(f)){
					array.forEach(f, function(item){
						this.addFeature(item);
					}, this);
					return;
				}
				if(this._features == null){
					this._features = [];
				}
				this._features.push(f);
				f._setLayer(this);
			},

			removeFeature: function(f){
				// summary:
				//		Removes a feature or an array of features from the layer.
				// f: Feature|Feature[]
				//		The Feature or array of features to remove.
				var ft = this._features;
				if(ft == null){
					return;
				}
				if(f instanceof Array){
					f = f.slice(0);
					array.forEach(f, function(item){
						this.removeFeature(item);
					}, this);
					return;
				}
				var i = array.indexOf(ft, f);
				if(i != -1){
					ft.splice(i, 1);
				}
				f._setLayer(null);
				f.remove();
			},

			removeFeatureAt: function(index){
				// summary:
				//		Remove the feature at the specified index.
				// index: int
				//		The index of the feature to remove.
				var ft = this._features;
				var f = ft[index];
				if(!f){
					return;
				}
				ft.splice(index, 1);
				f._setLayer(null);
				f.remove();
			},

			getFeatures: function(){
				// summary:
				//		Returns the feature hold by this layer.
				// returns:
				//		The untouched array of features hold by this layer.
				return this._features; // Feature[]
			},

			getFeatureAt: function(i){
				// summary:
				//		Returns the i-th feature of this layer.
				// i: Number
				//		The index of the feature to return.
				// returns:
				//		The i-th feature of this layer.
				if(this._features == null){
					return undefined;
				}
				return this._features[i]; // Feature
			},

			getFeatureCount: function(){
				// summary:
				//		Returns the number of the features contained by this layer.
				// returns:
				//		The number of the features contained by this layer.
				if(this._features == null){
					return 0;
				}
				return this._features.length; // Number
			},

			clear: function(){
				// summary:
				//		Removes all the features from this layer.
				var fa = this.getFeatures();
				this.removeFeature(fa);
			},

			moveTo: function(event){
				// summary:
				//		Called when the layer is panned or zoomed.
				// event: MouseEvent
				//		The event
				if(event.zoomChanged){
					if(this._features == null){
						return;
					}
					array.forEach(this._features, function(f){
						this.renderFeature(f);
					}, this);
				}
			},

			redraw: function(){
				// summary:
				//		Redraws this layer
				if(sniff.isIE){
					setTimeout(lang.hitch(this, function(){
						this.olLayer.redraw();
					}, 0));
				}else{
					this.olLayer.redraw();
				}
			},

			added: function(){
				// summary:
				//		Called when the layer is added to the map
			}

		});
	});


text:
function tableOpenRow(role, classname) {
    return '
';
}

function tableCloseRow() {
    return '
';
}

function tableAddData(mode, value) {
    if (!value) {
        value = '';
    }

    if (mode === 1) {
        return '' + value + '	';
    }
    if (mode === 2) {
        return '' + value + '	';
    }
    else {
        return '' + value + '	';
    }
}

function tableAddHead(width, name) {
    name = getTranslation(name);

    var resultHead = '';
    resultHead += name;
    resultHead += '	';

    return resultHead;
}

redpajama_set_name: RedPajamaGithub


text:
package org.elasticsearch.client.ml.inference.trainedmodel;

import org.elasticsearch.common.ParseField;
import org.elasticsearch.common.xcontent.ConstructingObjectParser;
import org.elasticsearch.common.xcontent.ToXContent;
import org.elasticsearch.common.xcontent.XContentBuilder;
import org.elasticsearch.common.xcontent.XContentParser;

import java.io.IOException;
import java.util.Objects;

import static org.elasticsearch.common.xcontent.ConstructingObjectParser.optionalConstructorArg;

public class RegressionConfig implements InferenceConfig {

    public static final ParseField NAME = new ParseField("regression");
    public static final ParseField RESULTS_FIELD = new ParseField("results_field");
    public static final ParseField NUM_TOP_FEATURE_IMPORTANCE_VALUES = new ParseField("num_top_feature_importance_values");

    private static final ConstructingObjectParser<RegressionConfig, Void> PARSER =
            new ConstructingObjectParser<>(NAME.getPreferredName(),
                true,
                args -> new RegressionConfig((String) args[0], (Integer)args[1]));

    static {
        PARSER.declareString(optionalConstructorArg(), RESULTS_FIELD);
        PARSER.declareInt(optionalConstructorArg(), NUM_TOP_FEATURE_IMPORTANCE_VALUES);
    }

    public static RegressionConfig fromXContent(XContentParser parser) {
        return PARSER.apply(parser, null);
    }

    private final String resultsField;
    private final Integer numTopFeatureImportanceValues;

    public RegressionConfig() {
        this(null, null);
    }

    public RegressionConfig(String resultsField, Integer numTopFeatureImportanceValues) {
        this.resultsField = resultsField;
        this.numTopFeatureImportanceValues = numTopFeatureImportanceValues;
    }

    public Integer getNumTopFeatureImportanceValues() {
        return numTopFeatureImportanceValues;
    }

    public String getResultsField() {
        return resultsField;
    }

    @Override
    public String getName() {
        return NAME.getPreferredName();
    }

    @Override
    public XContentBuilder toXContent(XContentBuilder builder, ToXContent.Params params) throws IOException {
        builder.startObject();
        if (resultsField != null) {
            builder.field(RESULTS_FIELD.getPreferredName(), resultsField);
        }
        if (numTopFeatureImportanceValues != null) {
            builder.field(NUM_TOP_FEATURE_IMPORTANCE_VALUES.getPreferredName(), numTopFeatureImportanceValues);
        }
        builder.endObject();
        return builder;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        RegressionConfig that = (RegressionConfig)o;
        return Objects.equals(this.resultsField, that.resultsField)
            && Objects.equals(this.numTopFeatureImportanceValues, that.numTopFeatureImportanceValues);
    }

    @Override
    public int hashCode() {
        return Objects.hash(resultsField, numTopFeatureImportanceValues);
    }

}


text:
<jh-screen-share-sub-button
  source="'screen'"
  icon="'blackboard'"
  label="'Share a window/desktop'"></jh-screen-share-sub-button>


text:
<!DOCTYPE html>

    <meta charset="UTF-8">
    <title>Minesweeper</title>

Minesweeper

      <button onclick="start_new_game();">New Game</button>

      <svg id="minefield" width="1000" height="1000" style="border:solid black 1px" viewbox="0 0 1000 1000">
        <defs id="minefield-tiles" />

      </svg>


text:
% target loine

% Copyright (C) 1993-2014, by Peter I. Corke
%
% This file is part of The Robotics Toolbox for MATLAB (RTB).
%
% RTB is free software: you can redistribute it and/or modify
% it under the terms of the GNU Lesser General Public License as published by
% the Free Software Foundation, either version 3 of the License, or
% (at your option) any later version.
%
% RTB 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
% GNU Lesser General Public License for more details.
%
% You should have received a copy of the GNU Leser General Public License
% along with RTB.  If not, see <http://www.gnu.org/licenses/>.
%
% http://www.petercorke.com
L = [1 -2 4];
clf
axis([0 10 0 10]);
hold on
xyzlabel
x = [0 10];
y = -(L(1)*x+L(3))/L(2);
plot(x, y, 'k--');
grid on

xc = 5; yc = 5;
N = 4;
radius = 3;

for i=1:N
    th = (i-1)*2*pi/N;
    x0 = [xc+radius*cos(th) yc+radius*sin(th) th+pi/2];

    plot_vehicle(x0, 'r');
    r = sim('sl_driveline');
    y = r.find('yout');
    plot(y(:,1), y(:,2));
end


text:
layout: post
title:  "Fotky z Effectu podruhé"
date:   2006-05-18 20:45:39
categories: hudba
---

Několik fotek z druhého koncertu v polovině dubna v havlíčkobrodském [klubu Effect](http://www.effectmusic.cz).

{% include googlePhotosFotogallery.html galleryId='QXvxax6E7nLJG2e17' %}


text:
from __future__ import absolute_import

import os

from zeeko._build_helpers import get_utils_extension_args, get_zmq_extension_args, _generate_cython_extensions, pxd, get_package_data
from astropy_helpers import setup_helpers

utilities = [pxd("..utils.rc"),
             pxd("..utils.msg"),
             pxd("..utils.pthread"),
             pxd("..utils.lock"),
             pxd("..utils.condition"),
             pxd("..utils.clock")]

base = [ pxd("..cyloop.throttle"), pxd("..cyloop.statemachine"), pxd(".snail"), pxd(".base")]

dependencies = {
    'base'    : utilities + [ pxd("..cyloop.throttle") ],
    'snail'   : utilities + [ pxd("..cyloop.throttle"), pxd("..cyloop.statemachine") ],
    'client'  : utilities + base + [ pxd("..messages.receiver") ],
    'server'  : utilities + base + [ pxd("..messages.publisher") ],
}

def get_extensions(**kwargs):
    """Get the Cython extensions"""
    extension_args = setup_helpers.DistutilsExtensionArgs()
    extension_args.update(get_utils_extension_args())
    extension_args.update(get_zmq_extension_args())
    extension_args['include_dirs'].append('numpy')

    package_name = __name__.split(".")[:-1]
    extensions = [e for e in _generate_cython_extensions(extension_args, os.path.dirname(__file__), package_name)]
    for extension in extensions:
        name = extension.name.split(".")[-1]
        if name in dependencies:
            extension.depends.extend(dependencies[name])
    return extensions


text:
.. -*- coding: utf-8 -*-
.. https://docs.docker.com/registry/introduction/
.. doc version: 1.9
.. check date: 2016/01/08

.. Understanding the Registry

.. _understanding-the-registry:

========================================
Docker レジストリ の理解
========================================

.. sidebar:: 目次

   .. contents::
       :depth: 3
       :local:

.. A registry is a storage and content delivery system, holding named Docker images, available in different tagged versions.

レジストリ(registry)とは、ストレージとコンテント配送システムであり、Docker イメージの名前を異なったタグを付けられたバージョンで保持します。

..    Example: the image distribution/registry, with tags 2.0 and 2.1.

.. note::

   イメージ ``distribution/registry`` には ``2.0`` と ``2.1`` のタグがあります。

.. Users interact with a registry by using docker push and pull commands.

ユーザは docker push と pull コマンドを使い、レジストリを通信できます。

..    Example: docker pull registry-1.docker.io/distribution/registry:2.1.

.. note::

   例: ``docker pull registry-1.docker.io/distribution/registry:2.1.``

.. Storage itself is delegated to drivers. The default storage driver is the local posix filesystem, which is suitable for development or small deployments. Additional cloud-based storage drivers like S3, Microsoft Azure, Ceph Rados, OpenStack Swift and Aliyun OSS are also supported. People looking into using other storage backends may do so by writing their own driver implementing the Storage API.

ストレージは自身のドライバに依存します。デフォルトのストレージ・ドライバはローカル posix ファイルシステムであり、開発や小さな環境で扱い易いです。S3、Microsoft Azure、Ceph Rados、OpenStack Swift、Aliyun OSS のようなクラウド・ベースのストレージをサポートしています。他のストレージ用のバックエンドを探しているのであれば、自分自身でドライバを実装するための :doc:`ストレージ API <storagedrivers>` をご覧ください。

.. Since securing access to your hosted images is paramount, the Registry natively supports TLS and basic authentication.

保管されているイメージに対するアクセスのセキュリティを最高にするため、レジストリは TLS と基本認証をネイティブにサポートしています。

.. The Registry GitHub repository includes additional information about advanced authentication and authorization methods. Only very large or public deployments are expected to extend the Registry in this way.

レジストリの GitHub リポジトリには、高度な認証や認証手法に関する情報があります。そこでの手法を使えば、とても大きな、あるいはパブリックへのデプロイといった拡張が期待できるでしょう。

.. Finally, the Registry ships with a robust notification system, calling webhooks in response to activity, and both extensive logging and reporting, mostly useful for large installations that want to collect metrics.

あとは、レジストリには堅牢な :doc:`notifications` 通知システムを提供しており、何らかの動作に対応してウェブフックの呼び出しや、ログ記録やレポートの拡張、大規模な環境からのメトリックを収集を簡単にします。

.. Understanding image naming

.. _understanding-image-naming:

イメージの名前付けを理解
==============================

.. Image names as used in typical docker commands reflect their origin:

典型的な docker コマンドで用いられるイメージ名には、起点(origin)を反映します。

..    docker pull ubuntu instructs docker to pull an image named ubuntu from the official Docker Hub. This is simply a shortcut for the longer docker pull docker.io/library/ubuntu command
..    docker pull myregistrydomain:port/foo/bar instructs docker to contact the registry located at myregistrydomain:port to find the image foo/bar

* ``docker pull ubuntu`` 命令は、公式の Docker Hub から ``ubuntu`` という名称のイメージを取得します。これは、長い ``docker pull docker.io/library/ubuntu`` コマンドを短くしたものです。
* ``docker pull myregistrydomain:port/foo/bar`` は、docker に対して ``myregistrydomain:port`` にあるレジストリで ``foo/bar`` というイメージを探すための命令です。

.. You can find out more about the various Docker commands dealing with images in the official Docker engine documentation.

Docker がイメージをやりとりするコマンドの詳細については、 :doc:`公式の Docker engine ドキュメント </reference/commandline/cli>` をご覧ください。

.. Use cases

.. _registry-use-cases:

使用例
==========

.. Running your own Registry is a great solution to integrate with and complement your CI/CD system. In a typical workflow, a commit to your source revision control system would trigger a build on your CI system, which would then push a new image to your Registry if the build is successful. A notification from the Registry would then trigger a deployment on a staging environment, or notify other systems that a new image is available.

自分自身のレジストリを CI/CD システムと統合・補完することは良い使い方です。典型的なワークフローは、ソースのリビジョン管理システムにコミットすると、それをトリガとして CI システムで構築を開始し、構築が成功するとレジストリに対して新しいイメージを送信します。レジストリからの通知によって、ステージング環境へのデプロイや、他のシステムに対して新しいイメージが利用できるようになったと伝えることも可能です。

.. It's also an essential component if you want to quickly deploy a new image over a large cluster of machines.

あるいは、新しいイメージを大規模なクラスタ上のマシンに迅速に展開するだけのコンポーネントとしても使えます。

.. Finally, it's the best way to distribute images inside an isolated network.

他には、隔離されたネットワークにおいて、イメージを配布するのにも良い方法でしょう。

.. Requirements

.. _registry-requirements:

動作条件
==========

.. You absolutely need to be familiar with Docker, specifically with regard to pushing and pulling images. You must understand the difference between the daemon and the cli, and at least grasp basic concepts about networking.

Docker に完全に慣れ親しんでいる必要があります。特にイメージの送信と取得に関してです。そして、デーモンと CLI の違いについての理解も必要ですし、少なくとも基本的なネットワーク機能については掴んでおく必要があります。

.. Also, while just starting a registry is fairly easy, operating it in a production environment requires operational skills, just like any other service. You are expected to be familiar with systems availability and scalability, logging and log processing, systems monitoring, and security 101. Strong understanding of http and overall network communications, plus familiarity with golang are certainly useful as well for advanced operations or hacking.

また、リポジトリの作成をかなり簡単に行えるようにしていますが、プロダクション環境においては他のサービスと同じように運用スキルが必要です。システムの可用性、スケーラビリティ、ログ記録とログ設定、システム群のモニタリング、セキュリティなどにも慣れている必要があります。高度な運用やハッキングには、http に対する高い理解と、ネットワーク通信全般の理解に加え、Go 言語に慣れているのが望ましいでしょう。

.. Next

次へ
==========

.. Dive into deploying your registry

:doc:`レジストリのデプロイ <deploying>` に進みましょう。


text:
/*
  https://developer.mozilla.org/en-US/docs/Web/CSS/height
*/

export default {
  inherit: { display: 'inherit' },
  initial: { display: 'initial' },
  unset: { display: 'unset' },
  borderBox: { display: 'border-box' },
  contentBox: { display: 'content-box' },
  auto: { display: 'auto' },
  fill: { display: 'fill' },
  maxContent: { display: 'max-content' },
  minContent: { display: 'min-content' },
  available: { display: 'available' },
  fitContent: { display: 'fit-content' },
};


text:
import rdflib
from unittest import TestCase
from ldtools.utils import urlparse

class TestUrlparse(TestCase):
    def test_hash1(self):
        uri = "http://www.cwi.nl:80/%7Eguido/Python.html"
        o = urlparse.urlparse(uri)
        self.assert_(not o.fragment)

    def test_hash2(self):
        uri = "http://www.cwi.nl:80/%7Eguido/Python.html#fragm"
        o = urlparse.urlparse(uri)
        self.assertEqual(o.fragment, "fragm")

    def test_hash3(self):
        uri = "http://www.cwi.nl:80/%7Eguido/Python.html#bla"
        r = urlparse.urlsplit(uri)
        self.assertEqual(
            r.geturl(), "http://www.cwi.nl:80/%7Eguido/Python.html#bla")

class TestRdflibLiterals(TestCase):
    def test_1(self):
        self.assertNotEquals(rdflib.Literal('TimBL'), rdflib.Literal('timbl'))
        self.assertNotIn(rdflib.Literal('TimBL'),
                         set([rdflib.Literal('timbl')]))
        self.assertIn(rdflib.Literal('timbl'), set([rdflib.Literal('timbl')]))


text:
const { mount } = require("enzyme");
const fbpGraph = require("fbp-graph");
const TheGraph = require("../index.js");

const parseFBP = fbpString =>
  new Promise((resolve, reject) =>
    fbpGraph.graph.loadFBP(
      fbpString,
      (err, graph) =>
        err instanceof fbpGraph.Graph
          ? resolve(err)
          : err ? reject(err) : resolve(graph)
    )
  );

const dummyComponent = {
  inports: [
    {
      name: "in",
      type: "all"
    }
  ],
  outports: [
    {
      name: "out",
      type: "all"
    }
  ]
};

const name = "'42' -> CONFIG foo(Foo) OUT -> IN bar(Bar)";
const library = { Foo: dummyComponent, Bar: dummyComponent };

const simulate = (
  node,
  type,
  data = {},
  opts = { bubbles: true, cancelable: true }
) => node.dispatchEvent(Object.assign(new Event(type, opts), data));

describe("Editor navigation", () => {
  let mounted, svg, raf;

  beforeEach(async () => {
    const graph = await parseFBP(name);
    raf = window.requestAnimationFrame = jest.fn();
    mounted = mount(TheGraph.App({ graph, library }));
    svg = mounted.getDOMNode().getElementsByClassName("app-svg")[0];
  });

  afterEach(() => mounted.unmount());

  describe("dragging on background", () => {
    it("should pan graph view", () => {
      const deltaX = 100;
      const deltaY = 200;
      expect(mounted.state("x")).toBe(0);
      expect(mounted.state("y")).toBe(0);
      simulate(svg, "panstart");
      simulate(svg, "panmove", { gesture: { deltaX, deltaY } });
      simulate(svg, "panend");
      expect(mounted.state("x")).toBe(deltaX);
      expect(mounted.state("y")).toBe(deltaY);
    });
  });

  describe("mouse scrolling up", () => {
    it("should zoom in", () => {
      const deltaY = -100;
      expect(mounted.state("scale")).toBe(1);
      svg.onwheel = null;
      simulate(svg, "wheel", { deltaY });
      expect(raf).toHaveBeenCalledTimes(1);
      raf.mock.calls[0][0]();
      expect(mounted.state("scale")).toBe(1.2);
    });
  });

  describe("mouse scrolling down", () => {
    it("should zoom out", () => {
      const deltaY = 100;
      expect(mounted.state("scale")).toBe(1);
      svg.onwheel = null;
      simulate(svg, "wheel", { deltaY });
      expect(raf).toHaveBeenCalledTimes(1);
      raf.mock.calls[0][0]();
      expect(mounted.state("scale")).toBe(0.8);
    });
  });

  describe("multitouch pinch", () => {
    it("should zoom in/out", () => {
      expect(mounted.state("scale")).toBe(1);
      const touches = [
        { target: svg, identifier: "0", clientX: 0, clientY: 0 },
        { target: svg, identifier: "1", clientX: 100, clientY: 100 }
      ];
      simulate(svg, "touchstart", { touches, changedTouches: touches });
      touches[1].clientX = 50;
      simulate(svg, "touchmove", { touches, changedTouches: [touches[1]] });
      simulate(svg, "touchend", { touches, changedTouches: touches });
      expect(mounted.state("scale")).toBe(0.7905694150420948);
      simulate(svg, "touchstart", { touches, changedTouches: touches });
      touches[1].clientX = 100;
      simulate(svg, "touchmove", { touches, changedTouches: [touches[1]] });
      simulate(svg, "touchend", { touches, changedTouches: touches });
      expect(mounted.state("scale")).toBe(1);
    });
  });

  describe("hovering an node", () => {
    it("should highlight node");
  });
  describe("hovering an edge", () => {
    it("should highlight edge");
  });
  describe("hovering exported port", () => {
    it("should highlight exported port");
  });
  describe("hovering node group", () => {
    it("should highlight the group");
  });
});

describe("Editor", () => {
  let mounted, svg, raf, selectedNodes, selectedEdges;

  beforeEach(async () => {
    selectedNodes = {};
    selectedEdges = {};
    const graph = await parseFBP(name);
    raf = window.requestAnimationFrame = jest.fn();
    mounted = mount(
      TheGraph.App({
        graph,
        library,
        onNodeSelection: (id, node, toggle) => {
          if (toggle) return (selectedNodes[id] = !selectedNodes[id]);
          selectedNodes = selectedNodes[id] ? {} : { [id]: true };
        }
      })
    );
    svg = mounted.getDOMNode().getElementsByClassName("app-svg")[0];
  });

  afterEach(() => mounted.unmount());

  describe("dragging on node", () => {
    it("should move the node", () => {
      const deltaX = 100;
      const deltaY = 200;
      expect(mounted.props().graph.nodes[0].metadata.x).toBe(0);
      expect(mounted.props().graph.nodes[0].metadata.y).toBe(0);
      const [node] = mounted.getDOMNode().getElementsByClassName("node");
      simulate(node, "panstart");
      simulate(node, "panmove", { gesture: { deltaX, deltaY } });
      simulate(node, "panend");
      raf.mock.calls.forEach(([c]) => c());
      expect(mounted.props().graph.nodes[0].metadata.x).toBe(108);
      expect(mounted.props().graph.nodes[0].metadata.y).toBe(216);
    });
  });

  describe("dragging on exported port", () => {
    it("should move the port");
  });

  describe("dragging from node port", () => {
    it("should start making edge", () => {
      const deltaX = 100;
      const deltaY = 200;
      expect(svg.getElementsByClassName("edge")).toHaveLength(1);
      const [port] = svg.getElementsByClassName("port");
      simulate(port, "panstart");
      simulate(port, "panmove", { gesture: { deltaX, deltaY } });
      raf.mock.calls.forEach(([c]) => c());
      expect(svg.getElementsByClassName("edge")).toHaveLength(2);
    });
  });

  describe("dropping started edge on port", () => {
    it("should connect the edge", () => {
      const deltaX = 100;
      const deltaY = 200;
      const nodes = [...svg.getElementsByClassName("node")];
      const [p1, p2] = nodes.map(
        (n, i) =>
          n
            .getElementsByClassName(i ? "outports" : "inports")[0]
            .getElementsByClassName("port")[0]
      );
      simulate(p1, "panstart");
      simulate(p1, "panmove", { gesture: { deltaX, deltaY } });
      simulate(p1, "panend");
      simulate(p2, "tap");
      raf.mock.calls.forEach(([c]) => c());
      expect(mounted.props().graph.edges).toHaveLength(2);
    });
  });

  describe("dropping started edge outside", () => {
    it("should not connect the edge", () => {
      const deltaX = 100;
      const deltaY = 200;
      const [p1] = svg
        .getElementsByClassName("node")[0]
        .getElementsByClassName("inports")[0]
        .getElementsByClassName("port");
      simulate(p1, "panstart");
      simulate(p1, "panmove", { gesture: { deltaX, deltaY } });
      simulate(p1, "panend");
      simulate(svg, "click");
      raf.mock.calls.forEach(([c]) => c());
      expect(mounted.props().graph.edges).toHaveLength(1);
    });
  });

  describe("clicking exported port", () => {
    it("does nothing");
  });

  describe("clicking unselected node", () => {
    it("should add node to selection", () => {
      expect(selectedNodes).toEqual({});
      simulate(svg.getElementsByClassName("node")[0], "tap");
      raf.mock.calls.forEach(([c]) => c());
      expect(selectedNodes).toEqual({ foo: true });
    });
  });

  describe("clicking selected node", () => {
    it("should remove node from selection", () => {
      selectedNodes = { foo: true };
      simulate(svg.getElementsByClassName("node")[0], "tap");
      raf.mock.calls.forEach(([c]) => c());
      expect(selectedNodes).toEqual({});
    });
  });

  describe("clicking unselected edge", () => {
    it("should add edge to selection");
  });
  describe("clicking selected edge", () => {
    it("should remove edge from selection");
  });
  describe("selected nodes", () => {
    it("are visualized with a bounding box");
    describe("when dragging the box", () => {
      it("moves all nodes in selection");
    });
  });
  describe("node groups", () => {
    it("are visualized with a bounding box");
    it("shows group name");
    it("shows group description");
    describe("when dragging on label", () => {
      it("moves all nodes in group");
    });
    describe("when dragging on bounding box", () => {
      it("does nothing");
    });
  });
  describe("right-click node", () => {
    it("should open menu for node");
  });
  describe("right-click node port", () => {
    it("should open menu for port");
  });
  describe("right-click edge", () => {
    it("should open menu for edge");
  });
  describe("right-click exported port", () => {
    it("should open menu for exported port");
  });
  describe("right-click node group", () => {
    it("should open menu for group");
  });
  describe("right-click background", () => {
    it("should open menu for editor");
  });
  describe("long-press", () => {
    it("should work same as right-click");
  });
});

describe("Editor menus", () => {
  describe("node menu", () => {
    it("shows node name");
    it("shows component icon");
    it("should have delete action");
    it("should have copy action");
    it("should show in and outports");
    describe("clicking port", () => {
      it("should start edge");
    });
  });
  describe("node port menu", () => {
    it("should have export action");
  });
  describe("edge menu", () => {
    it("shows edge name");
    it("should have delete action");
  });
  describe("exported port menu", () => {
    it("should have delete action");
  });
  describe("node selection menu", () => {
    it("should have group action");
    it("should have copy action");
  });
  describe("editor menu", () => {
    it("should have paste action");
  });
});


text:
module.exports = {
  "tags": [
    {
      "type": "example",
      "string": "// Insert a Document without Specifying an _id Field\ndb.products.insert( { item: \"card\", qty: 15 } )\n\n// Insert a Document Specifying an _id Field\ndb.products.insert( { _id: 10, item: \"box\", qty: 20 } )\n\n// Insert Multiple Documents\ndb.products.insert([\n  { _id: 11, item: \"pencil\", qty: 50, type: \"no.2\" },\n  { item: \"pen\", qty: 20 },\n  { item: \"eraser\", qty: 25 }\n])\n\n// Perform an Unordered Insert\ndb.products.insert([\n  { _id: 20, item: \"lamp\", qty: 50, type: \"desk\" },\n  { _id: 21, item: \"lamp\", qty: 20, type: \"floor\" },\n  { _id: 22, item: \"bulk\", qty: 100 }\n], { ordered: false })\n\n// Override Default Write Concern\ndb.products.insert(\n  { item: \"envelopes\", qty : 100, type: \"Clasp\" },\n  { writeConcern: { w: \"majority\", wtimeout: 5000 } }\n)"
    },
    {
      "type": "ctx",
      "string": "{ \"type\": \"property\", \"name\": \"insert\", \"value\": \"(document, options) => {\", \"string\": \"insert\"}"
    },
    {
      "type": "method",
      "string": "insert"
    },
    {
      "type": "deprecated",
      "string": ""
    },
    {
      "type": "param",
      "string": "{object|array} document A document or array of documents to insert into the collection.",
      "name": "document",
      "description": "A document or array of documents to insert into the collection.",
      "types": [
        "object",
        "array"
      ],
      "typesDescription": "object|array",
      "optional": false,
      "nullable": false,
      "nonNullable": false,
      "variable": false
    },
    {
      "type": "param",
      "string": "{object} [options] Additional options to pad to the command executor.",
      "name": "[options]",
      "description": "Additional options to pad to the command executor.",
      "types": [
        "object"
      ],
      "typesDescription": "object",
      "optional": true,
      "nullable": false,
      "nonNullable": false,
      "variable": false
    },
    {
      "type": "param",
      "string": "{object} [options.writeConcern] The level of :doc:`write concern </reference/write-concern>` for the removal operation. The ``writeConcern`` document takes the same fields as the `getLastError` command.",
      "name": "[options.writeConcern]",
      "description": "The level of :doc:`write concern </reference/write-concern>` for the removal operation. The ``writeConcern`` document takes the same fields as the `getLastError` command.",
      "types": [
        "object"
      ],
      "typesDescription": "object",
      "optional": true,
      "nullable": false,
      "nonNullable": false,
      "variable": false
    },
    {
      "type": "param",
      "string": "{object} [options.ordered=true] A boolean specifying whether the mongod instance should perform an ordered or unordered insert. Defaults to true.",
      "name": "[options.ordered=true]",
      "description": "A boolean specifying whether the mongod instance should perform an ordered or unordered insert. Defaults to true.",
      "types": [
        "object"
      ],
      "typesDescription": "object",
      "optional": true,
      "nullable": false,
      "nonNullable": false,
      "variable": false
    },
    {
      "type": "return",
      "string": "{Promise}",
      "types": [
        "Promise"
      ],
      "typesDescription": "Promise",
      "optional": false,
      "nullable": false,
      "nonNullable": false,
      "variable": false,
      "description": ""
    }
  ],
  "description": {
    "full": "Inserts a document or documents into a collection.",
    "summary": "Inserts a document or documents into a collection.",
    "body": ""
  },
  "isPrivate": false,
  "isConstructor": false,
  "isClass": false,
  "isEvent": false,
  "ignore": false,
  "line": 997,
  "codeStart": 1035,
  "ctx": {
    "type": "property",
    "name": "insert",
    "value": "(document, options) => {",
    "string": "insert"
  }
}


text:
# Exponential Random Numbers

> [Exponentially][exponential] distributed pseudorandom numbers.

## Usage

```javascript
var exponential = require( '@stdlib/random/base/exponential' );
```

#### exponential( lambda )

Returns a pseudorandom number drawn from an [exponential][exponential] distribution with rate parameter `lambda`.

```javascript
var r = exponential( 7.9 );
// returns <number>
```

If `lambda <= 0` or `lambda` is `NaN`, the function returns `NaN`.

```javascript
var r = exponential( -2.0 );
// returns NaN

r = exponential( NaN );
// returns NaN
```

#### exponential.factory( \[lambda, ]\[options] )

Returns a pseudorandom number generator (PRNG) for generating pseudorandom numbers drawn from an [exponential][exponential] distribution.

```javascript
var rand = exponential.factory();

var r = rand( 5.0 );
// returns <number>
```

If provided `lambda`, the returned generator returns random variates from the specified distribution.

```javascript
var rand = exponential.factory( 10.0 );

var r = rand();
// returns <number>

r = rand();
// returns <number>
```

If not provided `lambda`, the returned generator requires that `lambda` be provided at each invocation.

```javascript
var rand = exponential.factory();

var r = rand( 4.0 );
// returns <number>

r = rand( 3.14 );
// returns <number>
```

The function accepts the following `options`:

-   **prng**: pseudorandom number generator for generating uniformly distributed pseudorandom numbers on the interval `[0,1)`. If provided, the function **ignores** both the `state` and `seed` options. In order to seed the returned pseudorandom number generator, one must seed the provided `prng` (assuming the provided `prng` is seedable).
-   **seed**: pseudorandom number generator seed.
-   **state**: a [`Uint32Array`][@stdlib/array/uint32] containing pseudorandom number generator state. If provided, the function ignores the `seed` option.
-   **copy**: `boolean` indicating whether to copy a provided pseudorandom number generator state. Setting this option to `false` allows sharing state between two or more pseudorandom number generators. Setting this option to `true` ensures that a returned generator has exclusive control over its internal state. Default: `true`.

To use a custom PRNG as the underlying source of uniformly distributed pseudorandom numbers, set the `prng` option.

```javascript
var minstd = require( '@stdlib/random/base/minstd' );

var rand = exponential.factory({
    'prng': minstd.normalized
});

var r = rand( 3.0 );
// returns <number>
```

To seed a pseudorandom number generator, set the `seed` option.

```javascript
var rand1 = exponential.factory({
    'seed': 12345
});

var r1 = rand1( 3.0 );
// returns <number>

var rand2 = exponential.factory( 3.0, {
    'seed': 12345
});

var r2 = rand2();
// returns <number>

var bool = ( r1 === r2 );
// returns true
```

To return a generator having a specific initial state, set the generator `state` option.

```javascript
var rand;
var bool;
var r;
var i;

// Generate pseudorandom numbers, thus progressing the generator state:
for ( i = 0; i < 1000; i++ ) {
    r = exponential( 3.0 );
}

// Create a new PRNG initialized to the current state of `exponential`:
rand = exponential.factory({
    'state': exponential.state
});

// Test that the generated pseudorandom numbers are the same:
bool = ( rand( 3.0 ) === exponential( 3.0 ) );
// returns true
```

#### exponential.NAME

The generator name.

```javascript
var str = exponential.NAME;
// returns 'exponential'
```

#### exponential.PRNG

The underlying pseudorandom number generator.

```javascript
var prng = exponential.PRNG;
// returns <Function>
```

#### exponential.seed

The value used to seed `exponential()`.

```javascript
var rand;
var r;
var i;

// Generate pseudorandom values...
for ( i = 0; i < 100; i++ ) {
    r = exponential( 2.0 );
}

// Generate the same pseudorandom values...
rand = exponential.factory( 2.0, {
    'seed': exponential.seed
});
for ( i = 0; i < 100; i++ ) {
    r = rand();
}
```

If provided a PRNG for uniformly distributed numbers, this value is `null`.

```javascript
var rand = exponential.factory({
    'prng': Math.random
});

var seed = rand.seed;
// returns null
```

#### exponential.seedLength

Length of generator seed.

```javascript
var len = exponential.seedLength;
// returns <number>
```

If provided a PRNG for uniformly distributed numbers, this value is `null`.

```javascript
var rand = exponential.factory({
    'prng': Math.random
});

var len = rand.seedLength;
// returns null
```

#### exponential.state

Writable property for getting and setting the generator state.

```javascript
var r = exponential( 7.9 );
// returns <number>

r = exponential( 7.9 );
// returns <number>

// ...

// Get a copy of the current state:
var state = exponential.state;
// returns <Uint32Array>

r = exponential( 7.9 );
// returns <number>

r = exponential( 7.9 );
// returns <number>

// Reset the state:
exponential.state = state;

// Replay the last two pseudorandom numbers:
r = exponential( 7.9 );
// returns <number>

r = exponential( 7.9 );
// returns <number>

// ...
```

If provided a PRNG for uniformly distributed numbers, this value is `null`.

```javascript
var rand = exponential.factory({
    'prng': Math.random
});

var state = rand.state;
// returns null
```

#### exponential.stateLength

Length of generator state.

```javascript
var len = exponential.stateLength;
// returns <number>
```

If provided a PRNG for uniformly distributed numbers, this value is `null`.

```javascript
var rand = exponential.factory({
    'prng': Math.random
});

var len = rand.stateLength;
// returns null
```

#### exponential.byteLength

Size (in bytes) of generator state.

```javascript
var sz = exponential.byteLength;
// returns <number>
```

If provided a PRNG for uniformly distributed numbers, this value is `null`.

```javascript
var rand = exponential.factory({
    'prng': Math.random
});

var sz = rand.byteLength;
// returns null
```

#### exponential.toJSON()

Serializes the pseudorandom number generator as a JSON object.

```javascript
var o = exponential.toJSON();
// returns { 'type': 'PRNG', 'name': '...', 'state': {...}, 'params': [] }
```

If provided a PRNG for uniformly distributed numbers, this method returns `null`.

```javascript
var rand = exponential.factory({
    'prng': Math.random
});

var o = rand.toJSON();
// returns null
```

## Notes

-   If PRNG state is "shared" (meaning a state array was provided during PRNG creation and **not** copied) and one sets the generator state to a state array having a different length, the PRNG does **not** update the existing shared state and, instead, points to the newly provided state array. In order to synchronize PRNG output according to the new shared state array, the state array for **each** relevant PRNG must be **explicitly** set.
-   If PRNG state is "shared" and one sets the generator state to a state array of the same length, the PRNG state is updated (along with the state of all other PRNGs sharing the PRNG's state array).

## Examples

```javascript
var exponential = require( '@stdlib/random/base/exponential' );

var seed;
var rand;
var i;

// Generate pseudorandom numbers...
for ( i = 0; i < 100; i++ ) {
    console.log( exponential( 0.5 ) );
}

// Create a new pseudorandom number generator...
seed = 1234;
rand = exponential.factory( 0.8, {
    'seed': seed
});
for ( i = 0; i < 100; i++ ) {
    console.log( rand() );
}

// Create another pseudorandom number generator using a previous seed...
rand = exponential.factory( 0.5, {
    'seed': exponential.seed
});
for ( i = 0; i < 100; i++ ) {
    console.log( rand() );
}
```

[exponential]: https://en.wikipedia.org/wiki/Exponential_distribution

[@stdlib/array/uint32]: https://github.com/stdlib-js/stdlib/tree/develop/lib/node_modules/%40stdlib/array/uint32


text:
var Sequelize = require('sequelize');
var scrypt = require('scrypt');

// configure scrypt
var scryptParameters = scrypt.params(0.1);
scrypt.hash.config.keyEncoding = "ascii";
scrypt.verify.config.keyEncoding = "ascii";
scrypt.hash.config.outputEncoding = "base64";
scrypt.verify.config.hashEncoding = "base64";

module.exports = function(db){
  return db.define('User', {
    id: {
      type: Sequelize.UUID,
      primaryKey: true,
      defaultValue: Sequelize.UUIDV4
    },
    createdAt: {
      type: Sequelize.DATE
    },
    updatedAt: {
      type: Sequelize.DATE
    },
    email: {
      type: Sequelize.STRING,
      unique: true,
      allowNull: true,
      validate: {
        isEmail: true
      }
    },
    name: {
      type: Sequelize.STRING,
      unique: true,
      allowNull: false
    },
    phone: {
      type: Sequelize.STRING,
      unique: true,
      allowNull: false
    },
    lat: {
      type: Sequelize.FLOAT,
      unique: false,
      allowNull: true
    },
    lon: {
      type: Sequelize.FLOAT,
      unique: false,
      allowNull: true
    }
  },
  {
    paranoid: true,
    freezeTableName: true,
    instanceMethods: {
      getReturnable: function() {
        var self = this;

        var ret = {
          id: self.id,
          name: self.name,
          phone: self.PhoneNumber
        };

        return ret;
      }
    }
  });
};


text:
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
          package="com.example.horizon.myapplication">

    <application
        android:allowBackup="true"
        android:icon="@mipmap/ic_launcher"
        android:label="@string/app_name"
        android:supportsRtl="true"
        android:theme="@style/AppTheme">
        <activity android:name=".MainActivity">
            <intent-filter>
                <action android:name="android.intent.action.MAIN"/>

                <category android:name="android.intent.category.LAUNCHER"/>
            </intent-filter>
        </activity>
        <activity android:name=".ViewPagerAndPagerAdapter"
            android:label="ViewPager"/>

        <activity android:name=".FragmentAndFragmentManager"
            android:label="Fragment"/>
        <activity android:name=".ViewPagerAndFragment"
            android:label="ViewPager+Fragment"/>
    </application>

</manifest>


text:
// Copyright (c) 2017 Sergey Zhigunov.
// Licensed under the MIT License. See LICENSE file in the project root for full license information.

using System;
using System.Data.Entity.Infrastructure;
using System.Globalization;
using System.Linq;
using System.Threading;
using Hangfire.Annotations;
using Hangfire.Storage;

namespace Hangfire.EntityFramework
{
    internal class EntityFrameworkJobQueue : IPersistentJobQueue
    {
        private static object ThisLock { get; } = new object();

        internal static AutoResetEvent NewItemInQueueEvent { get; } = new AutoResetEvent(true);

        public EntityFrameworkJobStorage Storage { get; }

        public EntityFrameworkJobQueue([NotNull] EntityFrameworkJobStorage storage)
        {
            if (storage == null)
                throw new ArgumentNullException(nameof(storage));

            Storage = storage;
        }

        [NotNull]
        public IFetchedJob Dequeue(string[] queues, CancellationToken cancellationToken)
        {
            if (queues == null)
                throw new ArgumentNullException(nameof(queues));

            if (queues.Length == 0)
                throw new ArgumentException(ErrorStrings.QueuesCannotBeEmpty, nameof(queues));

            queues = queues.Select(x => x.ToUpperInvariant()).ToArray();

            do
            {
                cancellationToken.ThrowIfCancellationRequested();

                lock (ThisLock)
                    using (var context = Storage.CreateContext())
                    {
                        var queueItem = (
                            from item in context.JobQueues.
                            WhereContains(x => x.Queue, queues)
                            where item.ServerHostId == null
                            orderby item.Id ascending
                            select item).
                            FirstOrDefault();

                        if (queueItem != null)
                        {
                            queueItem.ServerHostId = EntityFrameworkJobStorage.ServerHostId;
                            try
                            {
                                context.SaveChanges();
                                return new EntityFrameworkFetchedJob(queueItem.Id, queueItem.JobId, Storage, queueItem.Queue);
                            }
                            catch (DbUpdateConcurrencyException)
                            {
                                continue;
                            }
                        }
                    }

                cancellationToken.ThrowIfCancellationRequested();
                WaitHandle.WaitAny(new[] { cancellationToken.WaitHandle, NewItemInQueueEvent }, Storage.Options.QueuePollInterval);
            } while (true);
        }

        public void Enqueue(string queue, string jobId)
        {
            if (queue == null)
                throw new ArgumentNullException(nameof(queue));

            if (jobId == null)
                throw new ArgumentNullException(nameof(jobId));

            var id = long.Parse(jobId, CultureInfo.InvariantCulture);
            queue = queue.ToUpperInvariant();

            Storage.UseContext(context =>
            {
                context.JobQueues.Add(new HangfireJobQueue
                {
                    JobId = id,
                    Queue = queue,
                });
                context.SaveChanges();
            });
        }
    }
}


text:
using System;
using System.Collections.Generic;
using System.Linq;
using System.Net;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Navigation;
using Microsoft.Phone.Controls;
using Microsoft.Phone.Shell;

using Xamarin.Forms;
using GalaSoft.MvvmLight.Ioc;
using HeritageProperties.PCL;

namespace HeritageProperties.WinPhone
{
    public partial class MainPage : PhoneApplicationPage
    {
        public MainPage()
        {
            InitializeComponent();

            // register the gps location service
            SimpleIoc.Default.Register<IGpsService, LocationService>();
            Xamarin.FormsMaps.Init();
            Forms.Init();
            Content = HeritageProperties.App.GetMainPage().ConvertPageToUIElement(this);
        }
    }
}


text:
ACCEPTED

#### According to
Index Fungorum

#### Published in
null

#### Original name
Lecanora symmicta f. biatorina Eitner

### Remarks
null


text:
layout: post
title: Vilão e mocinho no inverno
date: 2011-05-20 09:55
author: diego
comments: true
tags: [Corrida de Rua, corrida de rua, inverno, treinos]
---

**por Miguel Sarkis**

Se há algum assunto que deveria ser eternamente tratado na vida de um praticante de atividades físicas, caminhada ou corrida, esse deve, sem dúvida, ser o de como se exercitar no início, meio e fim do inverno.

Existe coisa mais desmotivadora do que sair de uma sequência infernal de calor, festas e feriados e logo ingressar num frio acompanhado de garoa e, de quando em quando, uma tempestade? Não, não há temperatura mais desmotivadora (a menos que você esteja numa estação de esqui, em cidades frias por sua natureza) e a ela darei o nome de vilã, por enquanto.

<!--more-->

{% include image_full.html imageurl="/images/2011/05/inverno.jpg" imageurllarge="/images/2011/05/inverno.jpg" title="Correr no inverno" caption="Correr no inverno" %}

Ao mocinho da questão, momentaneamente, chamaremos de casa, bar, café, restaurante e demais locais aconchegantes nos quais se produzem verdadeiros escudos e antídotos para vencermos os vilões, tal qual o inverno.

Mas, pensando bem, será que a ordem está correta? Será que há mesmo um vilão e um mocinho nessa história?

Vamos discutir o assunto e tentar amadurecer o que seria uma resposta e uma solução para um problema. Soluções são testadas há muito tempo na vida das sociedades e nem sempre são tão abrangentes, servindo igualmente a todos, sem discriminação.

É verdade que algumas pessoas encaram bem o inverno e se aventuram em verdadeiros treinamentos de alto rendimento, porém, a maioria das pessoas não topa o inverno. Podemos observar alguns suicídios em países como a Inglaterra, onde os dias não se cansam de nascer cinza, então, fica muito difícil encontrar fãs para o período de inverno.

*Comer ou Correr, eis a questão*

É muito fácil engordarmos no inverno e não é por uma matemática muito complexa não, mas sim, por uma simples questão de adição. De gordura, é claro.

Correr ou andar num dia que já começa com garoa fina, aquela que nos lava a cara, em meio ao tormento de trânsito intenso e "chiliquento", decorrente de um emaranhado de automóveis, utilizados por pessoas que tentam chegar aos seus trabalhos, no mínimo com os pés secos, e você se sente o único ou um dos poucos que se dirige ao parque, a praia ou a sala de ginástica para realizar o seu matinal esforço em busca de uma sensação de bem estar. Mas, como fica o seu bem estar, quando o momento é de desprazer e você ainda sonha com o seu cantinho aconchegante e ainda morno; sua cama?

Falo de corpo e alma, por experiência própria, assunto que aprendi a suportar e tolerar e, muitas vezes, desejar sentir-me correndo em situações difíceis, pelo simples fato de ter desenvolvido outro tipo de prazer, como o de sentir-me em meio a temperaturas mais baixas ou em chuvas, e depois, já num banho quentinho, me sentir recompensado pelo esforço realizado.

É importante para os caminhantes e corredores observarem o que é bom e o que é ruim, principalmente para ter a percepção de quanto esforço precisam para realizar tais esforços, e se a temperatura mais baixa deve causar algum tipo de prejuízo ao organismo.

Achamos que ficaremos resfriados, com dores e demais mal estar causados pelas baixas temperaturas, mas se alguns ajustes forem aplicados a nossa nova rotina podemos obter ótimas experiências, principalmente por que o parque, a sala de ginástica ou a praia ficarão livres de tantas pessoas, como é comum nas épocas mais quentes.

A temperatura baixa e a chuva fina não deveriam ser tratadas como vilãs, até mesmo por que elas diminuem a sobrecarga física, desde que ajustados os tipos de roupas e os alimentos, além de permitirem a continuidade do controle de treinamento e gastos energéticos.

*Comemos demais e não gastamos a contento*

Para comer muito não é preciso esforço, senão o de mastigar. Exercitar-se sim. Então, o vilão seria a comida? Certamente que não, nos sentimos mais esfomeados no inverno, além do estado de ansiedade, por não termos vencido o mal estar de não termos ido treinar, que deixa-nos para baixo e sem motivação, ao sermos vencidos pelo obstáculo da temperatura.

Então, comer neste período só é inconveniente por associar a quantidade alimentar a alta quantidade calórica dos alimentos de inverno, e a falta de uma sequência de treinos que desbancam, pelo menos, 600 a 1200 calorias dia.

Ai não há milagres e a conta é fácil, como já tratamos aqui. Somam-se 1000 calorias não eliminadas durante a prática diária de sua caminhada ou corrida e as 1000 calorias que serão adquiridas em uma refeição "desprogramada" de inverno. Então, com o acréscimo de mil, a mil por dia, que não foram gastas, engordamos e não treinamos.

Quando você voltar aos treinos, logo depois do inverno, terá o preço deste descuido no seu abdômen e nos seus movimentos, agora atrapalhados pelo peso excessivo e o estado ofegante aumentado.

Então temos um grande trabalho pelos próximos meses. Não existe milagre e serão meses de frio e chuviscos, bem característicos desta época, que deverão ser encarados pelo bom humor, pela saída estratégica da cama, além do autocontrole para se alimentar de nutrientes necessários e não os sentimentalmente requeridos pelo nosso emocional.

Treinamentos e bom humor se equilibram e permitem a derrubada dos vilões do período frio, o menos esperado do ano, a não ser pelos vendedores de alimentos, vinhos, chocolates e setores de veraneio em geral.

Cuide-se para não se tornar o vilão da história, Corra contra o tempo mesmo.

**Fonte**: [Ativo.com](http://www.ativo.com/Esportes/Pages/VilaoeMocinhodoInverno.aspx)


text:
package org.esmerilprogramming.overtown.server.handlers.exception;

/**
 * Created by efraimgentil<efraimgentil@gmail.com> on 29/01/15.
 */
public class NotAPathAnnotationException extends Throwable {
}


text:
namespace Google.Cloud.VMMigration.V1.Snippets
{
    // [START vmmigration_v1_generated_VmMigration_GetCutoverJob_async]
    using Google.Cloud.VMMigration.V1;
    using System.Threading.Tasks;

    public sealed partial class GeneratedVmMigrationClientSnippets
    {
        /// <summary>Snippet for GetCutoverJobAsync</summary>
        /// <remarks>
        /// This snippet has been automatically generated and should be regarded as a code template only.
        /// It will require modifications to work:
        /// - It may require correct/in-range values for request initialization.
        /// - It may require specifying regional endpoints when creating the service client as shown in
        ///   https://cloud.google.com/dotnet/docs/reference/help/client-configuration#endpoint.
        /// </remarks>
        public async Task GetCutoverJobRequestObjectAsync()
        {
            // Create client
            VmMigrationClient vmMigrationClient = await VmMigrationClient.CreateAsync();
            // Initialize request argument(s)
            GetCutoverJobRequest request = new GetCutoverJobRequest
            {
                CutoverJobName = CutoverJobName.FromProjectLocationSourceMigratingVmCutoverJob("[PROJECT]", "[LOCATION]", "[SOURCE]", "[MIGRATING_VM]", "[CUTOVER_JOB]"),
            };
            // Make the request
            CutoverJob response = await vmMigrationClient.GetCutoverJobAsync(request);
        }
    }
    // [END vmmigration_v1_generated_VmMigration_GetCutoverJob_async]
}


text:
<TITLE>Netica(TM) API Programmer's Reference Manual; API Funtion: ReorderNodesets_bn</TITLE>
<LINK REL="stylesheet" TYPE="text/css" HREF="../css/rightFrame.css" TITLE="Style">
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">
<META NAME="COPYRIGHT" CONTENT="© 2012 Norsys Software Corp.">

  NORSYS SOFTWARE © 2012
      NETICA API
  C &nbsp VERSION &nbsp 5.04&nbsp

 void ReorderNodesets_bn (	 net_bn*  net,   const char*  nodeset_order,   void*  vis )

This rearranges the priority order of the node-sets of net.

Any node-sets contained in the comma-separated string nodeset_order will become the highest priority, with the nodes earlier in that list being higher priority.  The priority of nodes not mentioned in nodeset_order will not be modified.

The purpose of the node-set priority order is just to determine which node-set to use for coloring a node in Netica Application.

Pass NULL for vis; it is only for future expansion.

Version:
Versions 3.22 and later have this function.<passageIndent2/>

See also:

AddNodeToNodeset_bn	    	To create node-sets

SetNodesetColor_bn	    	How the node-set is displayed in Netica Application

GetAllNodesets_bn	    	Returns string listing all node-sets defined


text:
<?php

return [

    /*
    * Edit this file in order to configure your theme's
    * classes autoloading. Classes are loaded using PSR-4.
    *
    * The key is the namespace and key's value contains one or more paths to your classes.
    */
    'Theme\\Controllers\\' => resources_path('controllers'),
    'Theme\\Controllers\\Traits\\' => resources_path('controllers/traits'),
    'Theme\\Providers\\' => resources_path('providers'),
    'Theme\\PostTypes\\' => resources_path('postTypes'),
    'Theme\\Shortcodes\\' => resources_path('shortcodes'),
    'Theme\\Taxonomies\\' => resources_path('taxonomies'),
    'Theme\\Tests\\' => resources_path('tests'),
    'Theme\\Widgets\\' => resources_path('widgets')

];


text:
'use strict';

var test = require('tape');

test('a slow passing test', t => {
  setTimeout(() => {
    t.pass('a slow passing assertion');
    t.end();
  }, 500);
});

/**
 * Mock coverage object
 */
global.__coverage__ = require('./big-coverage.json');


text:
package org.aexlib.gae.datastore;

public interface EntityChildBase<PARENT_ENTITY extends EntityBase<PARENT_ENTITY>> {
    public PARENT_ENTITY getParent();
}


text:
<?xml version="1.0" encoding="utf-8"?>
<!-- Copyright (C) 2009 The Android Open Source Project

     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.
-->
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
    android:layout_width="match_parent"
    android:layout_height="match_parent"
    android:gravity="center_vertical"
  >
  <TextView android:id="@+id/title_left_text"
      android:layout_alignParentLeft="true"
      android:ellipsize="end"
      android:singleLine="true"
      style="?android:attr/windowTitleStyle"
      android:layout_width="wrap_content"
      android:layout_height="match_parent"
      android:layout_weight="1"
    />
    <TextView android:id="@+id/title_right_text"
        android:layout_alignParentRight="true"
        android:ellipsize="end"
        android:singleLine="true"
        android:layout_width="wrap_content"
        android:layout_height="match_parent"
        android:textColor="#fff"
        android:layout_weight="1"
    />
</RelativeLayout>


text:
if test $(basename $PWD)="test"; then
    rm -rf repo
fi


text:
require_relative '../../spec_helper'
require_relative 'proxy_test_class'

describe Gamera::GeneralProxy do
  let(:kptc) { KidOfProxyTestClass.new }

  it 'is off by default' do
    expect(kptc.singleton_methods).not_to include(:my_own_public_idaho)
  end

  it 'can be turned on and off' do
    expect(kptc.singleton_methods).not_to include(:my_own_public_idaho)
    expect(kptc.my_own_public_idaho).to eq 'IDAHO'
    kptc.start_proxying(->(*args) { 'OMAHA & ' + super(*args) })
    expect(kptc.singleton_methods).to include(:my_own_public_idaho)
    expect(kptc.my_own_public_idaho).to eq 'OMAHA & IDAHO'
    kptc.stop_proxying
    expect(kptc.my_own_public_idaho).to eq 'IDAHO'
  end

  it "actually proxies the class's methods'" do
    kptc.start_proxying(->(*_args) { return 'consider yourself proxied!'; super })
    expect(kptc.my_own_public_idaho).to eq 'consider yourself proxied!'
  end

  it 'only proxies including class by default' do
    kptc.start_proxying(->(*args) { 'OMAHA & ' + super(*args) })
    expect(kptc.singleton_methods).to include(:my_own_public_idaho)
    expect(kptc.singleton_methods).not_to include(:foo)
    expect(kptc.singleton_methods).not_to include(:bar)
    kptc.stop_proxying
  end

  it 'can proxy up the class hierarchy' do
    kptc.start_proxying(->(*args) { 'OMAHA & ' + super(*args) }, ProxyTestClass)
    expect(kptc.singleton_methods).to include(:my_own_public_idaho)
    expect(kptc.singleton_methods).to include(:foo)
    expect(kptc.singleton_methods).to include(:bar)
    kptc.stop_proxying
  end
end


text:
.class Lcom/android/server/AlarmManagerService$ResultReceiver;
.super Ljava/lang/Object;
.source "AlarmManagerService.java"

# interfaces
.implements Landroid/app/PendingIntent$OnFinished;

# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
    value = Lcom/android/server/AlarmManagerService;
.end annotation

.annotation system Ldalvik/annotation/InnerClass;
    accessFlags = 0x0
    name = "ResultReceiver"
.end annotation

# instance fields
.field final synthetic this$0:Lcom/android/server/AlarmManagerService;

# direct methods
.method constructor <init>(Lcom/android/server/AlarmManagerService;)V
    .locals 0

    .prologue
    .line 2655
    iput-object p1, p0, Lcom/android/server/AlarmManagerService$ResultReceiver;->this$0:Lcom/android/server/AlarmManagerService;

    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    return-void
.end method

# virtual methods
.method public onSendFinished(Landroid/app/PendingIntent;Landroid/content/Intent;ILjava/lang/String;Landroid/os/Bundle;)V
    .locals 16
    .param p1, "pi"    # Landroid/app/PendingIntent;
    .param p2, "intent"    # Landroid/content/Intent;
    .param p3, "resultCode"    # I
    .param p4, "resultData"    # Ljava/lang/String;
    .param p5, "resultExtras"    # Landroid/os/Bundle;

    .prologue
    .line 2658
    const-string v2, "AlarmManager"

    const-string v3, "onSendFinished begin"

    invoke-static {v2, v3}, Landroid/util/Slog;->d(Ljava/lang/String;Ljava/lang/String;)I

    .line 2659
    move-object/from16 v0, p0

    iget-object v2, v0, Lcom/android/server/AlarmManagerService$ResultReceiver;->this$0:Lcom/android/server/AlarmManagerService;

    iget-object v13, v2, Lcom/android/server/AlarmManagerService;->mLock:Ljava/lang/Object;

    monitor-enter v13

    .line 2660
    const/4 v12, 0x0

    .line 2661
    .local v12, "inflight":Lcom/android/server/AlarmManagerService$InFlight;
    const/4 v10, 0x0

    .local v10, "i":I
    :goto_0
    :try_start_0
    move-object/from16 v0, p0

    iget-object v2, v0, Lcom/android/server/AlarmManagerService$ResultReceiver;->this$0:Lcom/android/server/AlarmManagerService;

    iget-object v2, v2, Lcom/android/server/AlarmManagerService;->mInFlight:Ljava/util/ArrayList;

    invoke-virtual {v2}, Ljava/util/ArrayList;->size()I

    move-result v2

    if-ge v10, v2, :cond_0

    .line 2662
    move-object/from16 v0, p0

    iget-object v2, v0, Lcom/android/server/AlarmManagerService$ResultReceiver;->this$0:Lcom/android/server/AlarmManagerService;

    iget-object v2, v2, Lcom/android/server/AlarmManagerService;->mInFlight:Ljava/util/ArrayList;

    invoke-virtual {v2, v10}, Ljava/util/ArrayList;->get(I)Ljava/lang/Object;

    move-result-object v2

    check-cast v2, Lcom/android/server/AlarmManagerService$InFlight;

    iget-object v2, v2, Lcom/android/server/AlarmManagerService$InFlight;->mPendingIntent:Landroid/app/PendingIntent;

    move-object/from16 v0, p1

    if-ne v2, v0, :cond_3

    .line 2663
    move-object/from16 v0, p0

    iget-object v2, v0, Lcom/android/server/AlarmManagerService$ResultReceiver;->this$0:Lcom/android/server/AlarmManagerService;

    iget-object v2, v2, Lcom/android/server/AlarmManagerService;->mInFlight:Ljava/util/ArrayList;

    invoke-virtual {v2, v10}, Ljava/util/ArrayList;->remove(I)Ljava/lang/Object;

    move-result-object v2

    move-object v0, v2

    check-cast v0, Lcom/android/server/AlarmManagerService$InFlight;

    move-object v12, v0

    .line 2667
    :cond_0
    if-eqz v12, :cond_4

    .line 2668
    invoke-static {}, Landroid/os/SystemClock;->elapsedRealtime()J

    move-result-wide v14

    .line 2669
    .local v14, "nowELAPSED":J
    iget-object v8, v12, Lcom/android/server/AlarmManagerService$InFlight;->mBroadcastStats:Lcom/android/server/AlarmManagerService$BroadcastStats;

    .line 2670
    .local v8, "bs":Lcom/android/server/AlarmManagerService$BroadcastStats;
    iget v2, v8, Lcom/android/server/AlarmManagerService$BroadcastStats;->nesting:I

    add-int/lit8 v2, v2, -0x1

    iput v2, v8, Lcom/android/server/AlarmManagerService$BroadcastStats;->nesting:I

    .line 2671
    iget v2, v8, Lcom/android/server/AlarmManagerService$BroadcastStats;->nesting:I

    if-gtz v2, :cond_1

    .line 2672
    const/4 v2, 0x0

    iput v2, v8, Lcom/android/server/AlarmManagerService$BroadcastStats;->nesting:I

    .line 2673
    iget-wide v2, v8, Lcom/android/server/AlarmManagerService$BroadcastStats;->aggregateTime:J

    iget-wide v4, v8, Lcom/android/server/AlarmManagerService$BroadcastStats;->startTime:J

    sub-long v4, v14, v4

    add-long/2addr v2, v4

    iput-wide v2, v8, Lcom/android/server/AlarmManagerService$BroadcastStats;->aggregateTime:J

    .line 2675
    :cond_1
    iget-object v9, v12, Lcom/android/server/AlarmManagerService$InFlight;->mFilterStats:Lcom/android/server/AlarmManagerService$FilterStats;

    .line 2676
    .local v9, "fs":Lcom/android/server/AlarmManagerService$FilterStats;
    iget v2, v9, Lcom/android/server/AlarmManagerService$FilterStats;->nesting:I

    add-int/lit8 v2, v2, -0x1

    iput v2, v9, Lcom/android/server/AlarmManagerService$FilterStats;->nesting:I

    .line 2677
    iget v2, v9, Lcom/android/server/AlarmManagerService$FilterStats;->nesting:I

    if-gtz v2, :cond_2

    .line 2678
    const/4 v2, 0x0

    iput v2, v9, Lcom/android/server/AlarmManagerService$FilterStats;->nesting:I

    .line 2679
    iget-wide v2, v9, Lcom/android/server/AlarmManagerService$FilterStats;->aggregateTime:J

    iget-wide v4, v9, Lcom/android/server/AlarmManagerService$FilterStats;->startTime:J

    sub-long v4, v14, v4

    add-long/2addr v2, v4

    iput-wide v2, v9, Lcom/android/server/AlarmManagerService$FilterStats;->aggregateTime:J

    .line 2684
    .end local v8    # "bs":Lcom/android/server/AlarmManagerService$BroadcastStats;
    .end local v9    # "fs":Lcom/android/server/AlarmManagerService$FilterStats;
    .end local v14    # "nowELAPSED":J
    :cond_2
    :goto_1
    move-object/from16 v0, p0

    iget-object v2, v0, Lcom/android/server/AlarmManagerService$ResultReceiver;->this$0:Lcom/android/server/AlarmManagerService;

    iget v3, v2, Lcom/android/server/AlarmManagerService;->mBroadcastRefCount:I

    add-int/lit8 v3, v3, -0x1

    iput v3, v2, Lcom/android/server/AlarmManagerService;->mBroadcastRefCount:I

    .line 2685
    move-object/from16 v0, p0

    iget-object v2, v0, Lcom/android/server/AlarmManagerService$ResultReceiver;->this$0:Lcom/android/server/AlarmManagerService;

    iget v2, v2, Lcom/android/server/AlarmManagerService;->mBroadcastRefCount:I

    if-nez v2, :cond_7

    .line 2686
    move-object/from16 v0, p0

    iget-object v2, v0, Lcom/android/server/AlarmManagerService$ResultReceiver;->this$0:Lcom/android/server/AlarmManagerService;

    iget-object v2, v2, Lcom/android/server/AlarmManagerService;->mWakeLock:Landroid/os/PowerManager$WakeLock;

    invoke-virtual {v2}, Landroid/os/PowerManager$WakeLock;->release()V

    .line 2687
    move-object/from16 v0, p0

    iget-object v2, v0, Lcom/android/server/AlarmManagerService$ResultReceiver;->this$0:Lcom/android/server/AlarmManagerService;

    iget-object v2, v2, Lcom/android/server/AlarmManagerService;->mInFlight:Ljava/util/ArrayList;

    invoke-virtual {v2}, Ljava/util/ArrayList;->size()I

    move-result v2

    if-lez v2, :cond_6

    .line 2688
    move-object/from16 v0, p0

    iget-object v2, v0, Lcom/android/server/AlarmManagerService$ResultReceiver;->this$0:Lcom/android/server/AlarmManagerService;

    iget-object v2, v2, Lcom/android/server/AlarmManagerService;->mLog:Lcom/android/internal/util/LocalLog;

    new-instance v3, Ljava/lang/StringBuilder;

    invoke-direct {v3}, Ljava/lang/StringBuilder;-><init>()V

    const-string v4, "Finished all broadcasts with "

    invoke-virtual {v3, v4}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v3

    move-object/from16 v0, p0

    iget-object v4, v0, Lcom/android/server/AlarmManagerService$ResultReceiver;->this$0:Lcom/android/server/AlarmManagerService;

    iget-object v4, v4, Lcom/android/server/AlarmManagerService;->mInFlight:Ljava/util/ArrayList;

    invoke-virtual {v4}, Ljava/util/ArrayList;->size()I

    move-result v4

    invoke-virtual {v3, v4}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;

    move-result-object v3

    const-string v4, " remaining inflights"

    invoke-virtual {v3, v4}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v3

    invoke-virtual {v3}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v3

    invoke-virtual {v2, v3}, Lcom/android/internal/util/LocalLog;->w(Ljava/lang/String;)V

    .line 2690
    const/4 v10, 0x0

    :goto_2
    move-object/from16 v0, p0

    iget-object v2, v0, Lcom/android/server/AlarmManagerService$ResultReceiver;->this$0:Lcom/android/server/AlarmManagerService;

    iget-object v2, v2, Lcom/android/server/AlarmManagerService;->mInFlight:Ljava/util/ArrayList;

    invoke-virtual {v2}, Ljava/util/ArrayList;->size()I

    move-result v2

    if-ge v10, v2, :cond_5

    .line 2691
    move-object/from16 v0, p0

    iget-object v2, v0, Lcom/android/server/AlarmManagerService$ResultReceiver;->this$0:Lcom/android/server/AlarmManagerService;

    iget-object v2, v2, Lcom/android/server/AlarmManagerService;->mLog:Lcom/android/internal/util/LocalLog;

    new-instance v3, Ljava/lang/StringBuilder;

    invoke-direct {v3}, Ljava/lang/StringBuilder;-><init>()V

    const-string v4, "  Remaining #"

    invoke-virtual {v3, v4}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v3

    invoke-virtual {v3, v10}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;

    move-result-object v3

    const-string v4, ": "

    invoke-virtual {v3, v4}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v3

    move-object/from16 v0, p0

    iget-object v4, v0, Lcom/android/server/AlarmManagerService$ResultReceiver;->this$0:Lcom/android/server/AlarmManagerService;

    iget-object v4, v4, Lcom/android/server/AlarmManagerService;->mInFlight:Ljava/util/ArrayList;

    invoke-virtual {v4, v10}, Ljava/util/ArrayList;->get(I)Ljava/lang/Object;

    move-result-object v4

    invoke-virtual {v3, v4}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder;

    move-result-object v3

    invoke-virtual {v3}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v3

    invoke-virtual {v2, v3}, Lcom/android/internal/util/LocalLog;->w(Ljava/lang/String;)V

    .line 2690
    add-int/lit8 v10, v10, 0x1

    goto :goto_2

    .line 2661
    :cond_3
    add-int/lit8 v10, v10, 0x1

    goto/16 :goto_0

    .line 2682
    :cond_4
    move-object/from16 v0, p0

    iget-object v2, v0, Lcom/android/server/AlarmManagerService$ResultReceiver;->this$0:Lcom/android/server/AlarmManagerService;

    iget-object v2, v2, Lcom/android/server/AlarmManagerService;->mLog:Lcom/android/internal/util/LocalLog;

    new-instance v3, Ljava/lang/StringBuilder;

    invoke-direct {v3}, Ljava/lang/StringBuilder;-><init>()V

    const-string v4, "No in-flight alarm for "

    invoke-virtual {v3, v4}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v3

    move-object/from16 v0, p1

    invoke-virtual {v3, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder;

    move-result-object v3

    const-string v4, " "

    invoke-virtual {v3, v4}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v3

    move-object/from16 v0, p2

    invoke-virtual {v3, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder;

    move-result-object v3

    invoke-virtual {v3}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v3

    invoke-virtual {v2, v3}, Lcom/android/internal/util/LocalLog;->w(Ljava/lang/String;)V

    goto/16 :goto_1

    .line 2707
    :catchall_0
    move-exception v2

    monitor-exit v13
    :try_end_0
    .catchall {:try_start_0 .. :try_end_0} :catchall_0

    throw v2

    .line 2693
    :cond_5
    :try_start_1
    move-object/from16 v0, p0

    iget-object v2, v0, Lcom/android/server/AlarmManagerService$ResultReceiver;->this$0:Lcom/android/server/AlarmManagerService;

    iget-object v2, v2, Lcom/android/server/AlarmManagerService;->mInFlight:Ljava/util/ArrayList;

    invoke-virtual {v2}, Ljava/util/ArrayList;->clear()V

    .line 2707
    :cond_6
    :goto_3
    monitor-exit v13

    .line 2708
    return-void

    .line 2697
    :cond_7
    move-object/from16 v0, p0

    iget-object v2, v0, Lcom/android/server/AlarmManagerService$ResultReceiver;->this$0:Lcom/android/server/AlarmManagerService;

    iget-object v2, v2, Lcom/android/server/AlarmManagerService;->mInFlight:Ljava/util/ArrayList;

    invoke-virtual {v2}, Ljava/util/ArrayList;->size()I

    move-result v2

    if-lez v2, :cond_8

    .line 2698
    move-object/from16 v0, p0

    iget-object v2, v0, Lcom/android/server/AlarmManagerService$ResultReceiver;->this$0:Lcom/android/server/AlarmManagerService;

    iget-object v2, v2, Lcom/android/server/AlarmManagerService;->mInFlight:Ljava/util/ArrayList;

    const/4 v3, 0x0

    invoke-virtual {v2, v3}, Ljava/util/ArrayList;->get(I)Ljava/lang/Object;

    move-result-object v11

    check-cast v11, Lcom/android/server/AlarmManagerService$InFlight;

    .line 2699
    .local v11, "inFlight":Lcom/android/server/AlarmManagerService$InFlight;
    move-object/from16 v0, p0

    iget-object v2, v0, Lcom/android/server/AlarmManagerService$ResultReceiver;->this$0:Lcom/android/server/AlarmManagerService;

    iget-object v3, v11, Lcom/android/server/AlarmManagerService$InFlight;->mPendingIntent:Landroid/app/PendingIntent;

    iget-object v4, v11, Lcom/android/server/AlarmManagerService$InFlight;->mWorkSource:Landroid/os/WorkSource;

    iget v5, v11, Lcom/android/server/AlarmManagerService$InFlight;->mAlarmType:I

    iget-object v6, v11, Lcom/android/server/AlarmManagerService$InFlight;->mTag:Ljava/lang/String;

    const/4 v7, 0x0

    invoke-virtual/range {v2 .. v7}, Lcom/android/server/AlarmManagerService;->setWakelockWorkSource(Landroid/app/PendingIntent;Landroid/os/WorkSource;ILjava/lang/String;Z)V

    goto :goto_3

    .line 2703
    .end local v11    # "inFlight":Lcom/android/server/AlarmManagerService$InFlight;
    :cond_8
    move-object/from16 v0, p0

    iget-object v2, v0, Lcom/android/server/AlarmManagerService$ResultReceiver;->this$0:Lcom/android/server/AlarmManagerService;

    iget-object v2, v2, Lcom/android/server/AlarmManagerService;->mLog:Lcom/android/internal/util/LocalLog;

    const-string v3, "Alarm wakelock still held but sent queue empty"

    invoke-virtual {v2, v3}, Lcom/android/internal/util/LocalLog;->w(Ljava/lang/String;)V

    .line 2704
    move-object/from16 v0, p0

    iget-object v2, v0, Lcom/android/server/AlarmManagerService$ResultReceiver;->this$0:Lcom/android/server/AlarmManagerService;

    iget-object v2, v2, Lcom/android/server/AlarmManagerService;->mWakeLock:Landroid/os/PowerManager$WakeLock;

    const/4 v3, 0x0

    invoke-virtual {v2, v3}, Landroid/os/PowerManager$WakeLock;->setWorkSource(Landroid/os/WorkSource;)V
    :try_end_1
    .catchall {:try_start_1 .. :try_end_1} :catchall_0

    goto :goto_3
.end method


text:
@interface forgivePasswordViewController : UIViewController

@end


text:
Title: Update to Word Root Searches
Date: 2015-01-25 14:30
Category:

In my last post, I covered the techniques I was using to deal with
failed lookups - removing suffixes and looking for root words.

My initial list of suffixes was modest:

* ```-ed```
* ```-ing```
* ```-ly```
* ```-es```
* ```-ies```

But even this got complicated, as I was checking for suffixes
preceding consonants and vowels, and still led to a lot of misses.

I expanded this, after watching the script roll through a whole
block of text and taking note of similarities in words that were
not being found in the Online Etymology Dictionary. These included words like:

* genealogical (root: genealogy)
* observing (root: observe)
* shuffling (root: shuffle)

and so on. From each cluster of words I derived the missing suffix checks
that I needed to add to my code. The (significantly expanded) list is as follows:

* ```-ed```
* ```-ing```
* ```-ly```
* ```-es```
* ```-ies```
* ```-er```
* ```-XXed```
* ```-en```
* ```-s```
* ```-est```
* ```-ied```
* ```-ail```
* ```-ation```
* ```-ian```
* ```-ist```
* ```-sim```
* ```-ual```
* ```-iness```
* ```-liness```

Seeing this horrible nest of if/elseif/else statements gave me
a renewed sense of appreciation for the complexity of English.
Seeing how many "special case" suffixes led to words falling through the
cracks of the case statement, in spite of its complexity, led me to
realize just how complicated the language mechanism in our brains can be.

To add to the complication, I had to add checks for the length of
the word, to make sure that the word was longer than the suffix!
(checking for a five-letter suffix on a four-letter word would
raise exceptions...)

Here is the full suffix check as it currently stands:

    :::python

    def get_root_word(self,the_word):

        print ""
        print "Looking for roots of %s..."%(the_word)

        # pick out synonyms from the synset that are basically the same word (share first 3 letters)
        # (and also strip them of part of speech,
        #  n., v., and so on...)
        #
        # synsets look like:
        # swing.n.04
        #
        # so use .split('.')[0] (first token before .)
        #
        try:
            full_synset = Word(the_word).synsets
            full_synset_strings = [syn.name().split('.')[0] for syn in full_synset]
        except:
            full_synset_strings = []

        # only keep the suggested synset
        # if the first three letters of the synset
        # match the first three letters of the original word
        # (synset returns lots of diff words...)
        synset = []
        for sss in zip(full_synset_strings):
            if sss[:3] == the_word[:3]:
                synset.append(sss)

        # first try removing any common suffixes
        if len(the_word)>4:

            # -ed
            if the_word[-2:]=='ed':

                # -XXed to -X
                # wrapped to wrap, begged to beg
                if the_word[-4]==the_word[-3]:
                    synset.insert(0,the_word[:-3])

                # -ied
                # occupied to occupy
                elif the_word[-3]=='ied':
                    synset.insert(0,the_word[-3]+"y")

                else:

                    # -ed to -
                    # consonant, more likely, so prepend
                    synset.insert(0,the_word[:-2])

                    # -ed to -e
                    # tired to tire
                    synset.append(the_word[:-1])

            # -en
            if the_word[-2:]=='en':
                # -en to -
                # quicken to quick
                synset.insert(0,the_word[:-2])

                # -en to -e
                # shaven to shave
                synset.append(the_word[:-1])

            if the_word[-2:]=='er':
                # -er to -
                # thicker to thick
                synset.insert(0,the_word[:-2])

                # -er to -e
                # shaver to shave
                synset.append(the_word[:-1])

            # -est
            if the_word[-3:]=='est':
                # -est to -
                # brightest to bright
                synset.insert(0,the_word[:-3])

                # -est to -e
                # widest to wide
                synset.append(the_word[:-2])

            # -ing
            if the_word[-3:]=='ing':
                # -ing to -
                synset.insert(0,the_word[:-3])
                # -gging to -g
                # -nning to -n
                synset.append(the_word[:-4])
                # -ing to -e
                synset.append(the_word[:-3]+"e")

            # -ly
            if the_word[-2:]=='ly':
                # -ly to -
                synset.insert(0,the_word[:-2])

        # end if len>4

        # -s/-es
        if the_word[-1:]=='s':

            # -liness
            if len(the_word)>6:
                if the_word[-6:]=='liness':
                    # -liness to -
                    # friendliness to friend
                    synset.insert(0,the_word[:-6])

                # -iness
                elif the_word[-5:]=='iness':
                    # -iness to -y
                    # happiness to happy
                    synset.insert(0,the_word[:-5]+"y")

            # -ies
            # -es
            if the_word[-2:]=='es':
                if the_word[-3:]=='ies':
                    # -ies to -y
                    synset.insert(0,the_word[:-3]+"y")
                else:
                    # -es to -
                    synset.insert(0,the_word[:-2])
                    # -es to -e
                    synset.append(the_word[:-1])

            # -s to -
            else:
                synset.insert(0,the_word[:-1])

        if len(the_word)>5:
            if the_word[-5:]=='ation':
                # -ation to -ate
                # accumulation to accumulate
                synset.insert(0,the_word[:-5]+"ate")

        if synset<>[]:
            print "  Trying these: %s"%( ", ".join(synset) )

        return synset


text:
/*Write a function that reverses
the digits of given decimal number.*/

function reverseNumber(number){
	var isNegative = number < 0,
		number = number.toString().replace('-', '').split(''),
		reversed = [];

		if (isNegative) {
			reversed.push('-');
		}

		Array.prototype.push.apply(reversed, number.reverse());

	return +(reversed.join(''));
}

console.log(reverseNumber(12547));


text:
package com.leeo.quartz;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.stereotype.Component;

@Component
public class SendTask {

    private static Logger logger = LoggerFactory.getLogger(SendTask.class);

    public void execute() {
//        for(int i=0;i<65;i++){
//            System.out.println("---:"+i);
//            try {
//                Thread.sleep(1000);
//            } catch (InterruptedException e) {
//                e.printStackTrace();
//            }
//        }
        logger.info("执行'{}'定时任务.-----" + System.currentTimeMillis(), "SendTask");
    }

}