text:
import numpy as np
import matplotlib.pyplot as plt
import problem.deflect

# Load the plasma coordinates.
X = np.loadtxt('x.dat', delimiter=',')
Y = np.loadtxt('y.dat', delimiter=',')

# Checkpoint interval.
interval = 1000

# Plasma parameters.
ri = 1.3 # Distance from proton source to plasma.
li = 0.2 # Distance across plasma.
rs = 20 # Distance from plasma to screen.
v = 5.24e9 # Velocity of protons.

# Plot all of the solve steps for this problem, saving them as
# images/magBpath######.png.
for i in range(400):
    phix = np.loadtxt('solve/phix'+str(interval*i)+'.txt', delimiter=',')
    phiy = np.loadtxt('solve/phiy'+str(interval*i)+'.txt', delimiter=',')
    phin = np.loadtxt('solve/phin'+str(interval*i)+'.txt', delimiter=',')
    wBx, wBy = problem.deflect.reconstruct(ri, li, rs, v, X, Y, phix, phiy)
    Bxpath, Bypath = problem.deflect.magpath(wBx, wBy)

    fig, ax = plt.subplots()

    ticks = np.linspace(0,16000,12)
    magB = np.sqrt(Bxpath**2 + Bypath**2)
    cs = ax.pcolorfast(X[:,0], Y[0,:], magB, vmin=0, vmax=16000)
    ax.set_xlabel('x (cm)')
    ax.set_ylabel('y (cm)')
    cb = plt.colorbar(cs, ax=ax,ticks=ticks)

    ax.set_title('Calculated Magnitude Path-Int Magnetic Field (G*cm) Step: '
                 '{}'.format(interval*i))

    fig.savefig('images/magBpath'+str(interval*i).zfill(6)+'.png')
    print('Step: {}'.format(i))

redpajama_set_name: RedPajamaGithub


text:
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.

using System.Threading;
using Microsoft.CodeAnalysis.CSharp.Extensions;
using Microsoft.CodeAnalysis.CSharp.Extensions.ContextQuery;
using Microsoft.CodeAnalysis.CSharp.Syntax;
using Microsoft.CodeAnalysis.Shared.Extensions;

namespace Microsoft.CodeAnalysis.CSharp.Completion.KeywordRecommenders
{
    internal class GlobalKeywordRecommender : AbstractSyntacticSingleKeywordRecommender
    {
        public GlobalKeywordRecommender()
            : base(SyntaxKind.GlobalKeyword)
        {
        }

        protected override bool IsValidContext(int position, CSharpSyntaxContext context, CancellationToken cancellationToken)
        {
            var syntaxTree = context.SyntaxTree;

            if (syntaxTree.IsMemberDeclarationContext(position, context.LeftToken))
            {
                var token = context.TargetToken;

                if (token.GetAncestor<EnumDeclarationSyntax>() == null)
                {
                    return true;
                }
            }

            return
                context.IsTypeContext ||
                UsingKeywordRecommender.IsUsingDirectiveContext(context, forGlobalKeyword: true, cancellationToken) ||
                context.IsAnyExpressionContext ||
                syntaxTree.IsAfterKeyword(position, SyntaxKind.ConstKeyword, cancellationToken) ||
                syntaxTree.IsAfterKeyword(position, SyntaxKind.RefKeyword, cancellationToken) ||
                syntaxTree.IsAfterKeyword(position, SyntaxKind.ReadOnlyKeyword, cancellationToken) ||
                syntaxTree.IsUsingAliasContext(position, cancellationToken);
        }
    }
}


text:
package org.apache.maven.lifecycle;

import java.util.Set;

import org.apache.maven.model.Model;
import org.apache.maven.model.Plugin;

/**
 * @since 3.0
 * @author Kristian Rosenvold
 */
public interface LifeCyclePluginAnalyzer
{

    /**
     * @deprecated As of Maven 3.6.0, replaced by method {@link #getLifecycleModel(org.apache.maven.model.Model)}.
     */
    @Deprecated
    Set<Plugin> getPluginsBoundByDefaultToAllLifecycles( String packaging )
        throws LifecycleMappingNotFoundException;

    /**
     * Gets the lifecycle {@code Model} for a given {@code Model}.
     * <p>
     * The lifecycle model for a given model is the list of default build plugins plus lifecycle plugin execution
     * management.
     * </p>
     *
     * @param model The {@code Model} to get the lifecycle {@code Model} for.
     *
     * @return The lifecycle {@code Model} for {@code model}.
     *
     * @throws NullPointerException if {@code model} is {@code null}.
     * @throws LifecycleMappingNotFoundException if {@code model} declares an unsupported packaging.
     *
     * @since 3.6.0
     */
    Model getLifecycleModel( Model model )
        throws LifecycleMappingNotFoundException;

}


text:
ACCEPTED

#### According to
Index Fungorum

#### Published in
Anal. Mus. nac. Hist. nat. B. Aires 8(1): 81 (1902)

#### Original name
Peckia mate Speg.

### Remarks
null


text:
class AppDelegate
    attr_accessor :window
    attr_accessor :connected_state
    def applicationDidFinishLaunching(a_notification)
        # Insert code here to initialize your application
    end

    def forward(sender)
    end

    def reverse(sender)
    end

    def forward_left(sender)
    end

    def forward_right(sender)
    end

    def reverse_left(sender)
    end

    def reverse_right(sender)
    end
end


text:
<?php

namespace Assetic\Extension\Twig;

class AsseticFilterNode extends \Twig_Node_Expression_Function
{
    protected function compileCallable(\Twig_Compiler $compiler)
    {
        $compiler->raw(sprintf('$this->env->getExtension(\'assetic\')->getFilterInvoker(\'%s\')->invoke', $this->getAttribute('name')));

        $this->compileArguments($compiler);
    }
}


text:
package de.uka.ipd.idaho.goldenGate.util;

import java.awt.Color;
import java.awt.Dimension;
import java.awt.FlowLayout;
import java.awt.GridLayout;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;

import javax.swing.BorderFactory;
import javax.swing.JButton;
import javax.swing.JDialog;
import javax.swing.JFrame;
import javax.swing.JPanel;

/**
 * dialog for editing the font style, size, and color of some text component
 *
 * @author sautter
 */
public class FontEditorDialog extends JDialog {

	private FontEditorPanel font;

	private boolean committed = false;

	public FontEditorDialog(JDialog owner, String textFontName, int textFontSize, Color textFontColor) {
		super(owner, "Edit Fonts", true);
		this.init(textFontName, textFontSize, textFontColor);
	}

	public FontEditorDialog(JFrame owner, String textFontName, int textFontSize, Color textFontColor) {
		super(owner, "Edit Fonts", true);
		this.init(textFontName, textFontSize, textFontColor);
	}

	private void init(String textFontName, int textFontSize, Color textFontColor) {

		//	initialize main buttons
		JButton commitButton = new JButton("OK");
		commitButton.setBorder(BorderFactory.createRaisedBevelBorder());
		commitButton.setPreferredSize(new Dimension(100, 25));
		commitButton.addActionListener(new ActionListener() {
			public void actionPerformed(ActionEvent e) {
				committed = true;
				dispose();
			}
		});

		JButton abortButton = new JButton("Cancel");
		abortButton.setBorder(BorderFactory.createRaisedBevelBorder());
		abortButton.setPreferredSize(new Dimension(100, 25));
		abortButton.addActionListener(new ActionListener() {
			public void actionPerformed(ActionEvent e) {
				dispose();
			}
		});

		JPanel mainButtonPanel = new JPanel();
		mainButtonPanel.setLayout(new FlowLayout());
		mainButtonPanel.add(commitButton);
		mainButtonPanel.add(abortButton);

		//	initialize editors
		this.font = new FontEditorPanel("Editor Font", textFontName, textFontSize, textFontColor);

		//	put the whole stuff together
		this.getContentPane().setLayout(new GridLayout(0, 1));
		this.getContentPane().add(this.font);
		this.getContentPane().add(mainButtonPanel);

		this.setResizable(false);
		this.setSize(new Dimension(500, 120));
	}

	/**	@return	true if and only if the dialog was committed
	 */
	public boolean isCommitted() {
		return this.committed;
	}

	/**	@return	the FopntEditorPanel holding the font data
	 */
	public FontEditorPanel getFontEditor() {
		return this.font;
	}
}


text:
using System.Reflection;
using System.Runtime.InteropServices;

[assembly: AssemblyTitle("System.Data.SQLite.Tests")]
[assembly: AssemblyDescription("")]
[assembly: AssemblyCompany("Logos Bible Software")]
[assembly: AssemblyProduct("System.Data.SQLite")]
[assembly: AssemblyCopyright("Copyright 2014 Logos Bible Software")]
[assembly: AssemblyTrademark("")]
[assembly: AssemblyCulture("")]
[assembly: ComVisible(false)]


text:
#include "tango-gl/conversions.h"
#include "tango-gl/camera.h"

#include "rgb-depth-sync/depth_image.h"

namespace {
const std::string kPointCloudVertexShader =
    "precision mediump float;\n"
    "\n"
    "attribute vec4 vertex;\n"
    "\n"
    "uniform mat4 mvp;\n"
    "uniform float maxdepth;\n"
    "uniform float pointsize;\n"
    "\n"
    "varying vec4 v_color;\n"
    "\n"
    "void main() {\n"
    "  gl_PointSize = pointsize;\n"
    "  gl_Position = mvp*vertex;\n"
    "  float depth = clamp(vertex.z / maxdepth, 0.0, 1.0);\n"
    "  v_color = vec4(depth, depth, depth, 1.0);\n"
    "}\n";
const std::string kPointCloudFragmentShader =
    "precision mediump float;\n"
    "\n"
    "varying vec4 v_color;\n"
    "void main() {\n"
    "  gl_FragColor = v_color;\n"
    "}\n";
}  // namespace

namespace rgb_depth_sync {

DepthImage::DepthImage()
    : texture_id_(0),
      cpu_texture_id_(0),
      gpu_texture_id_(0),
      depth_map_buffer_(0),
      grayscale_display_buffer_(0),
      texture_render_program_(0),
      fbo_handle_(0),
      vertex_buffer_handle_(0),
      vertices_handle_(0),
      mvp_handle_(0) {}

DepthImage::~DepthImage() {}

void DepthImage::InitializeGL() {
  texture_id_ = 0;
  cpu_texture_id_ = 0;
  gpu_texture_id_ = 0;

  texture_render_program_ = 0;
  fbo_handle_ = 0;
  vertex_buffer_handle_ = 0;
  vertices_handle_ = 0;
  mvp_handle_ = 0;
}

bool DepthImage::CreateOrBindGPUTexture() {
  if (gpu_texture_id_) {
    glBindFramebuffer(GL_FRAMEBUFFER, fbo_handle_);
    return false;
  } else {
    glGenTextures(1, &gpu_texture_id_);
    texture_render_program_ = tango_gl::util::CreateProgram(
        kPointCloudVertexShader.c_str(), kPointCloudFragmentShader.c_str());

    mvp_handle_ = glGetUniformLocation(texture_render_program_, "mvp");

    glUseProgram(texture_render_program_);
    // Assume these are constant for the life the program
    GLuint max_depth_handle =
        glGetUniformLocation(texture_render_program_, "maxdepth");
    GLuint point_size_handle =
        glGetUniformLocation(texture_render_program_, "pointsize");
    glUniform1f(max_depth_handle,
                static_cast<float>(kMaxDepthDistance) / kMeterToMillimeter);
    glUniform1f(point_size_handle, 2 * kWindowSize + 1);

    vertices_handle_ = glGetAttribLocation(texture_render_program_, "vertex");

    glGenBuffers(1, &vertex_buffer_handle_);

    glActiveTexture(GL_TEXTURE0);
    glBindTexture(GL_TEXTURE_2D, gpu_texture_id_);
    glTexImage2D(GL_TEXTURE_2D, 0, GL_RGBA, rgb_camera_intrinsics_.width,
                 rgb_camera_intrinsics_.height, 0, GL_RGBA, GL_UNSIGNED_BYTE,
                 nullptr);
    glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MIN_FILTER, GL_NEAREST);
    glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MAG_FILTER, GL_NEAREST);
    glBindTexture(GL_TEXTURE_2D, 0);

    glGenFramebuffers(1, &fbo_handle_);
    glBindFramebuffer(GL_FRAMEBUFFER, fbo_handle_);
    glFramebufferTexture2D(GL_FRAMEBUFFER, GL_COLOR_ATTACHMENT0,
                           GL_TEXTURE_2D,
                           gpu_texture_id_, 0);

    return true;
  }
}

bool DepthImage::CreateOrBindCPUTexture() {
  if (cpu_texture_id_) {
    glActiveTexture(GL_TEXTURE0);
    glBindTexture(GL_TEXTURE_2D, cpu_texture_id_);
    return false;
  } else {
    glGenTextures(1, &cpu_texture_id_);
    glActiveTexture(GL_TEXTURE0);
    glBindTexture(GL_TEXTURE_2D, cpu_texture_id_);
    glTexImage2D(GL_TEXTURE_2D, 0,  // mip-map level
                 GL_LUMINANCE, rgb_camera_intrinsics_.width,
                 rgb_camera_intrinsics_.height, 0,  // border
                 GL_LUMINANCE, GL_UNSIGNED_BYTE, nullptr);
    glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MIN_FILTER, GL_NEAREST);
    glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MAG_FILTER, GL_NEAREST);
    return true;
  }
}

void DepthImage::RenderDepthToTexture(
    glm::mat4& color_t1_T_depth_t0,
    const std::vector<float>& render_point_cloud_buffer, bool new_points) {
  new_points = this->CreateOrBindGPUTexture() || new_points;

  glViewport(0, 0, rgb_camera_intrinsics_.width, rgb_camera_intrinsics_.height);
  glClearColor(0.0f, 0.0f, 0.0f, 0.0f);
  glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT);

  // Special program needed to color by z-distance
  glUseProgram(texture_render_program_);

  glDisable(GL_BLEND);
  glEnable(GL_DEPTH_TEST);

  glBindBuffer(GL_ARRAY_BUFFER, vertex_buffer_handle_);
  if(new_points) {
    glBufferData(GL_ARRAY_BUFFER, sizeof(GLfloat) * render_point_cloud_buffer.size(),
                 render_point_cloud_buffer.data(), GL_STATIC_DRAW);
  }
  tango_gl::util::CheckGlError("DepthImage Buffer");

  // Skip negation of Y-axis as is normally done in opengl_T_color
  // since we are rendering to a texture that we want to match the Y-axis
  // of the color image.
  const glm::mat4 opengl_T_color(1.0f, 0.0f, 0.0f, 0.0f,
                                 0.0f, 1.0f, 0.0f, 0.0f,
                                 0.0f, 0.0f, -1.0f, 0.0f,
                                 0.0f, 0.0f, 0.0f, 1.0f);

  glm::mat4 mvp_mat = projection_matrix_ar_ * opengl_T_color * color_t1_T_depth_t0;

  glUniformMatrix4fv(mvp_handle_, 1, GL_FALSE, glm::value_ptr(mvp_mat));

  glEnableVertexAttribArray(vertices_handle_);
  glVertexAttribPointer(vertices_handle_, 3, GL_FLOAT, GL_FALSE, 0,  nullptr);

  glDrawArrays(GL_POINTS, 0, render_point_cloud_buffer.size() / 3);
  glDisableVertexAttribArray(vertices_handle_);

  tango_gl::util::CheckGlError("DepthImage Draw");

  glBindBuffer(GL_ARRAY_BUFFER, 0);
  glBindFramebuffer(GL_FRAMEBUFFER, 0);
  glUseProgram(0);

  tango_gl::util::CheckGlError("DepthImage RenderTexture");

  texture_id_ = gpu_texture_id_;
}

// Update function will be called in application's main render loop. This funct-
// ion takes care of projecting raw depth points on the image plane, and render
// the depth image into a texture.
// This function also takes care of swapping the Render buffer and shared buffer
// if there is new point cloud data available.
// color_t1_T__depth_t0: 't1' represents the color camera frame's timestamp,
// 't0'
// represents
// the depth camera timestamp. The transformation is the depth camera's frame on
// timestamp t0 with respect the rgb camera's frame on timestamp t1.
void DepthImage::UpdateAndUpsampleDepth(
    glm::mat4& color_t1_T_depth_t0,
    const std::vector<float>& render_point_cloud_buffer) {
  int depth_image_width = rgb_camera_intrinsics_.width;
  int depth_image_height = rgb_camera_intrinsics_.height;
  int depth_image_size = depth_image_width * depth_image_height;

  depth_map_buffer_.resize(depth_image_size);
  grayscale_display_buffer_.resize(depth_image_size);
  std::fill(depth_map_buffer_.begin(), depth_map_buffer_.end(), 0);
  std::fill(grayscale_display_buffer_.begin(), grayscale_display_buffer_.end(),
            0);

  int point_cloud_size = render_point_cloud_buffer.size();
  for (int i = 0; i < point_cloud_size; i += 3) {
    float x = render_point_cloud_buffer[i];
    float y = render_point_cloud_buffer[i + 1];
    float z = render_point_cloud_buffer[i + 2];

    // depth_t0_point is the point in depth camera frame on timestamp t0.
    // (depth image timestamp).
    glm::vec4 depth_t0_point = glm::vec4(x, y, z, 1.0);

    // color_t1_point is the point in camera frame on timestamp t1.
    // (color image timestamp).
    glm::vec4 color_t1_point = color_t1_T_depth_t0 * depth_t0_point;

    int pixel_x, pixel_y;
    // get the coordinate on image plane.
    pixel_x = static_cast<int>((rgb_camera_intrinsics_.fx) *
                                   (color_t1_point.x / color_t1_point.z) +
                               rgb_camera_intrinsics_.cx);

    pixel_y = static_cast<int>((rgb_camera_intrinsics_.fy) *
                                   (color_t1_point.y / color_t1_point.z) +
                               rgb_camera_intrinsics_.cy);

    // Color value is the GL_LUMINANCE value used for displaying the depth
    // image.
    // We can query for depth value in mm from grayscale image buffer by
    // getting a `pixel_value` at (pixel_x,pixel_y) and calculating
    // pixel_value * (kMaxDepthDistance / USHRT_MAX)
    float depth_value = color_t1_point.z;
    uint8_t grayscale_value =
        (color_t1_point.z * kMeterToMillimeter) * UCHAR_MAX / kMaxDepthDistance;

    UpSampleDepthAroundPoint(grayscale_value, depth_value, pixel_x, pixel_y,
                             &grayscale_display_buffer_, &depth_map_buffer_);
  }

  this->CreateOrBindCPUTexture();
  glTexSubImage2D(GL_TEXTURE_2D, 0, 0, 0, depth_image_width, depth_image_height,
                  GL_LUMINANCE, GL_UNSIGNED_BYTE,
                  grayscale_display_buffer_.data());
  tango_gl::util::CheckGlError("DepthImage glTexSubImage2D");
  glBindTexture(GL_TEXTURE_2D, 0);

  texture_id_ = cpu_texture_id_;
}

void DepthImage::SetCameraIntrinsics(TangoCameraIntrinsics intrinsics) {
  rgb_camera_intrinsics_ = intrinsics;
  const float kNearClip = 0.1;
  const float kFarClip = 10.0;
  projection_matrix_ar_ = tango_gl::Camera::ProjectionMatrixForCameraIntrinsics(
      intrinsics.width, intrinsics.height, intrinsics.fx, intrinsics.fy,
      intrinsics.cx, intrinsics.cy, kNearClip, kFarClip);
}

void DepthImage::UpSampleDepthAroundPoint(
    uint8_t grayscale_value, float depth_value, int pixel_x, int pixel_y,
    std::vector<uint8_t>* grayscale_buffer,
    std::vector<float>* depth_map_buffer) {

  int image_width = rgb_camera_intrinsics_.width;
  int image_height = rgb_camera_intrinsics_.height;
  int image_size = image_height * image_width;
  // Set the neighbour pixels to same color.
  for (int a = -kWindowSize; a <= kWindowSize; ++a) {
    for (int b = -kWindowSize; b <= kWindowSize; ++b) {
      if (pixel_x > image_width || pixel_y > image_height || pixel_x < 0 ||
          pixel_y < 0) {
        continue;
      }
      int pixel_num = (pixel_x + a) + (pixel_y + b) * image_width;

      if (pixel_num > 0 && pixel_num < image_size) {
        (*grayscale_buffer)[pixel_num] = grayscale_value;
        (*depth_map_buffer)[pixel_num] = depth_value;
      }
    }
  }
}

}  // namespace rgb_depth_sync


text:
package selectorPackage;

/**
 *
 * Created by said on 25.05.2015.
 */
public interface ISelector {
    IRegion getRegion();
}


text:
import React from 'react';
import { connect } from 'react-redux';
import { pushState, replaceState } from 'redux-router';

export default (ComposedComponent) => {
    @connect(state => state.login)
    class AuthenticatedComponent extends React.Component {
        componentDidMount() {
            this.nav()
        }
        componentDidUpdate() {
            this.nav()
        }
        nav() {
            if(!this.props.loggedIn){
                this.props.dispatch(pushState(null, '/login'));
            }
        }
        render() {
          return ( <ComposedComponent {...this.props }/>);
        }

    }
    return AuthenticatedComponent;
}


text:
Grove - Digital Compass
-------------------------------------------------------------
![image](http://www.seeedstudio.com/depot/images/product/axis%20compass.jpg)

3-Axis Compass module, a member of grove family uses I²C based Honeywell HMC5883L digital compass. This ASIC is equipped with high resolution HMC118X magneto-resistive sensors and a 12-bit ADC. It provides compass heading accuracy up to 1° to 2°. Signal conditioning like amplification, automatic degaussing strap drivers and offset cancellation are inbuilt. This grove module also includes a MIC5205-3.3 for power supply requirement. Hence user can connect any 3.3V to 6V DC power supply.

**Features -**

* Grove compatible interface
* 3-Axis Magneto-resistive type sensors
* I²C serial interface
* 2.0cm x 2.0cm Grove module
* 1° to 2° Degree heading accuracy
* Up to 116 Hz Maximum output rate
* Built-In self test

**Applications Ideas -**

* Low cost compassing
* Magnetometry
* Pedestrian navigation
* Hobby auto navigation
* Compassing support for mobile devices and portable computers (i.e connected via Blue-tooth or UART)

-----
**Note:**

This is a Suli-Compatible Library, You Should Download Suli for your platform, please refer to [https://github.com/Seeed-Studio/Suli](https://github.com/Seeed-Studio/Suli "Suli")

If you can't find Suli for your platform, please contract us, If you can port it yourself and pull request to us, We'll be appreciated.

***For Arduino:***

Just like you use the other Library, What's different is you should download Suli for Arduino First, remember that just put Suli for Arduino to your Arduino libraries folder.

***For non-Arduino Platform:***

For a non-Arduino platform, what you need is xxx.h and xxx.cpp(you can change it to xxx.c while your compiler can't support c++), the other files like xxx_Arduino.h and examples is for Arduino, you can just delete them.

----
This software is written by Loovee for seeed studio

and is licensed under [The MIT License](http://opensource.org/licenses/mit-license.php). Check License.txt for more information.

Contributing to this software is warmly welcomed. You can do this basically by

[forking](https://help.github.com/articles/fork-a-repo), committing modifications and then [pulling requests](https://help.github.com/articles/using-pull-requests) (follow the links above

for operating guide). Adding change log and your contact into file header is encouraged.

Thanks for your contribution.

Seeed Studio is an open hardware facilitation company based in Shenzhen, China.

Benefiting from local manufacture power and convenient global logistic system,

we integrate resources to serve new era of innovation. Seeed also works with

global distributors and partners to push open hardware movement.

[1]:http://www.seeedstudio.com/wiki/LED_Bar

[![Analytics](https://ga-beacon.appspot.com/UA-46589105-3/I2C_ADC)](https://github.com/igrigorik/ga-beacon)


text:
"use strict";

const $           = wfl.jquery;
const HtmlElement = require('./HtmlElement');
const CssClass    = require('../CssClasses');

class PreviewWindow extends HtmlElement {
  constructor() {
    super();

    this._previewImage = undefined;

    this.imageContainer = $('<div>');
    this.imageContainer.addClass(CssClass.IMAGE_CONTAINER);

    this.element = $('<div>');
    this.element.addClass(CssClass.PREVIEW_WINDOW);
    this.element.addClass(CssClass.ARROW_LEFT);
    this.element.append(this.imageContainer);
  }

  empty() {
    this.element.empty();
    this.imageContainer.empty();
  }

  setImage(img) {
    this.empty();

    this._previewImage = img;

    if (img) {
      this.imageContainer.append(this._previewImage);
      this.element.append(this.imageContainer);
    }
  }

  setImageSource(imgSrc) {
    this.empty();

    if (imgSrc) {
      this._previewImage = new Image();
      this._previewImage.onload = (e) => this._onImageLoadSuccess(e);
      this._previewImage.src = imgSrc;
    } else {
      this._previewImage = undefined;
    }
  }

  _onImageLoadSuccess(e) {
    this.empty();

    this.imageContainer.append(this._previewImage);
    this.element.append(this.imageContainer);
  }
}

module.exports = PreviewWindow;


text:
/// Copyright (c) 2012 Ecma International.  All rights reserved.
/// Ecma International makes this code available under the terms and conditions set
/// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
/// "Use Terms").   Any redistribution of this code must retain the above
/// copyright and this notice and otherwise comply with the Use Terms.
/**
 * @path ch15/15.2/15.2.3/15.2.3.7/15.2.3.7-5-b-147.js
 * @description Object.defineProperties - 'writable' property of 'descObj' is own accessor property that overrides an inherited accessor property (8.10.5 step 6.a)
 */

function testcase() {
        var obj = {};

        var proto = {};

        Object.defineProperty(proto, "writable", {
            get: function () {
                return true;
            }
        });

        var Con = function () { };
        Con.prototype = proto;

        var descObj = new Con();

        Object.defineProperty(descObj, "writable", {
            get: function () {
                return false;
            }
        });

        Object.defineProperties(obj, {
            property: descObj
        });

        obj.property = "isWritable";

        return obj.hasOwnProperty("property") && typeof (obj.property) === "undefined";
    }
runTestCase(testcase);


text:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"  "http://www.w3.org/TR/html4/loose.dtd">
<html>
<body>
	<script src="../../../src/core.js"></script>
	<script src="../../../src/callbacks.js"></script>
	<script src="../../../src/deferred.js"></script>
	<script src="../../../src/support.js"></script>
	<script src="../../../src/data.js"></script>
	<script src="../../../src/queue.js"></script>
	<script src="../../../src/attributes.js"></script>
	<script src="../../../src/event.js"></script>
	<script src="../../../src/sizzle/sizzle.js"></script>
	<script src="../../../src/sizzle-jquery.js"></script>
	<script src="../../../src/traversing.js"></script>
	<script src="../../../src/manipulation.js"></script>
	<script src="../../../src/css.js"></script>
	<script src="../../../src/ajax.js"></script>
	<script src="../../../src/ajax/jsonp.js"></script>
	<script src="../../../src/ajax/script.js"></script>
	<script src="../../../src/ajax/xhr.js"></script>
	<script src="../../../src/effects.js"></script>
	<script src="../../../src/offset.js"></script>
	<script src="../../../src/dimensions.js"></script>
	<script>
	window.parent.supportCallback( document.compatMode, jQuery.support.boxModel );
	</script>
</body>
</html>


text:
import datetime
from south.db import db
from south.v2 import SchemaMigration
from django.db import models

class Migration(SchemaMigration):

    def forwards(self, orm):
        # Adding model 'Text'
        db.create_table('cmsplugin_text', (
            ('cmsplugin_ptr', self.gf('django.db.models.fields.related.OneToOneField')(to=orm['cms.CMSPlugin'], unique=True, primary_key=True)),
            ('body', self.gf('django.db.models.fields.TextField')()),
        ))
        db.send_create_signal('djangocms_text_tinymce', ['Text'])

    def backwards(self, orm):
        # Deleting model 'Text'
        db.delete_table('cmsplugin_text')

    models = {
        'cms.cmsplugin': {
            'Meta': {'object_name': 'CMSPlugin'},
            'changed_date': ('django.db.models.fields.DateTimeField', [], {'auto_now': 'True', 'blank': 'True'}),
            'creation_date': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime(2012, 12, 11, 0, 0)'}),
            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
            'language': ('django.db.models.fields.CharField', [], {'max_length': '15', 'db_index': 'True'}),
            'level': ('django.db.models.fields.PositiveIntegerField', [], {'db_index': 'True'}),
            'lft': ('django.db.models.fields.PositiveIntegerField', [], {'db_index': 'True'}),
            'parent': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['cms.CMSPlugin']", 'null': 'True', 'blank': 'True'}),
            'placeholder': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['cms.Placeholder']", 'null': 'True'}),
            'plugin_type': ('django.db.models.fields.CharField', [], {'max_length': '50', 'db_index': 'True'}),
            'position': ('django.db.models.fields.PositiveSmallIntegerField', [], {'null': 'True', 'blank': 'True'}),
            'rght': ('django.db.models.fields.PositiveIntegerField', [], {'db_index': 'True'}),
            'tree_id': ('django.db.models.fields.PositiveIntegerField', [], {'db_index': 'True'})
        },
        'cms.placeholder': {
            'Meta': {'object_name': 'Placeholder'},
            'default_width': ('django.db.models.fields.PositiveSmallIntegerField', [], {'null': 'True'}),
            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
            'slot': ('django.db.models.fields.CharField', [], {'max_length': '50', 'db_index': 'True'})
        },
        'djangocms_text_tinymce.text': {
            'Meta': {'object_name': 'Text', 'db_table': "'cmsplugin_text'", '_ormbases': ['cms.CMSPlugin']},
            'body': ('django.db.models.fields.TextField', [], {}),
            'cmsplugin_ptr': ('django.db.models.fields.related.OneToOneField', [], {'to': "orm['cms.CMSPlugin']", 'unique': 'True', 'primary_key': 'True'})
        }
    }

    complete_apps = ['djangocms_text_tinymce']


text:
#include "ssr_plugin.hpp"

#include <boost/dll/alias.hpp>

#include "ssr_stage.hpp"

RENDER_PIPELINE_PLUGIN_CREATOR(rpplugins::SSRPlugin)

namespace rpplugins {

SSRPlugin::RequrieType SSRPlugin::require_plugins_;

// ************************************************************************************************

SSRPlugin::SSRPlugin(rpcore::RenderPipeline& pipeline): rpcore::BasePlugin(pipeline, RPPLUGINS_ID_STRING)
{
}

SSRPlugin::RequrieType& SSRPlugin::get_required_plugins() const
{
    return require_plugins_;
}

void SSRPlugin::on_stage_setup()
{
    auto ssr_stage = std::make_unique<SSRStage>(pipeline_);

    if (is_plugin_enabled("color_correction"))
        ssr_stage->get_global_required_pipes().push_back("FuturePipe::Exposure");

    add_stage(std::move(ssr_stage));
}

}


text:
#ifndef H_SYSDEP
#define H_SYSDEP

#define __CD__BEGIN namespace COLDET {
#define __CD__END }

 ///////////////////////////////////////////////////
 // g++ compiler on most systems
 ///////////////////////////////////////////////////
#ifdef GCC

unsigned get_tick_count();

///////////////////////////////////////////////////
// Windows compilers
///////////////////////////////////////////////////
#elif defined(WIN32)

#define WIN32_LEAN_AND_MEAN
#include "windows.h"

#ifdef _WDLL

#ifndef EXPORT
#ifdef COLDET_EXPORTS
#define EXPORT __declspec(dllexport)
#else
#define EXPORT __declspec(dllimport)
#endif
#endif

#else

#ifndef EXPORT
#define EXPORT
#endif

#endif

inline unsigned get_tick_count() { return GetTickCount(); }

///////////////////////////////////////////////////
// MacOS 9.0f.4/MacOS X.  CodeWarrior Pro 6
// Thanks to Marco Tenuti for this addition
///////////////////////////////////////////////////
#elif defined(macintosh)
typedef unsigned long DWORD;
#include "Events.h"
#define get_tick_count() ::TickCount()

#elif defined(CUSTOM)
//typedef unsigned DWORD;
float get_tick_count();
#else

#error No system specified (WIN32 GCC macintosh)

#endif

#ifndef EXPORT
#define EXPORT
#endif

#endif // H_SYSDEP


text:
import re

from deoplete.filter.base import Base

class Filter(Base):

    def __init__(self, vim):
        super().__init__(vim)

        self.name = 'converter_emoji'
        self.description = 'convert candidates to unicodes'
        self._cache = {}

    def filter(self, context):
        def convert(x):
            word = x['kind'].strip()
            kind = x['word'].strip()
            return { 'word': word, 'kind': kind }

        return list(map(convert, context['candidates']))


text:
using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.IO;
using System.Linq;
using System.Reflection;
using System.Text;
using System.Windows.Forms;
using System.Xml.Linq;
using XmlConcatenator.Properties;

namespace XmlConcatenator
{
  public partial class FormMain : Form
  {
    public FormMain()
    {
      InitializeComponent();
    }

    readonly Dictionary<string, string> _languageDicoEn = new Dictionary<string, string>();
    readonly Dictionary<string, string> _languageDicoFr = new Dictionary<string, string>();
    private string _currentLanguage = "english";

    private void QuitToolStripMenuItem_Click(object sender, EventArgs e)
    {
      SaveWindowValue();
      Application.Exit();
    }

    private void AboutToolStripMenuItem_Click(object sender, EventArgs e)
    {
      AboutBoxApplication aboutBoxApplication = new AboutBoxApplication();
      aboutBoxApplication.ShowDialog();
    }

    private void DisplayTitle()
    {
      Assembly assembly = Assembly.GetExecutingAssembly();
      FileVersionInfo fvi = FileVersionInfo.GetVersionInfo(assembly.Location);
      Text += string.Format(" V{0}.{1}.{2}.{3}", fvi.FileMajorPart, fvi.FileMinorPart, fvi.FileBuildPart, fvi.FilePrivatePart);
    }

    private void FormMain_Load(object sender, EventArgs e)
    {
      LoadSettingsAtStartup();
    }

    private void LoadSettingsAtStartup()
    {
      DisplayTitle();
      GetWindowValue();
      LoadLanguages();
      SetLanguage(Settings.Default.LastLanguageUsed);
    }

    private void LoadLanguages()
    {
      if (!File.Exists(Settings.Default.LanguageFileName))
      {
        CreateLanguageFile();
      }

      // read the translation file and feed the language
      XDocument xDoc = XDocument.Load(Settings.Default.LanguageFileName);
      var result = from node in xDoc.Descendants("term")
                   where node.HasElements
                   let xElementName = node.Element("name")
                   where xElementName != null
                   let xElementEnglish = node.Element("englishValue")
                   where xElementEnglish != null
                   let xElementFrench = node.Element("frenchValue")
                   where xElementFrench != null
                   select new
                   {
                     name = xElementName.Value,
                     englishValue = xElementEnglish.Value,
                     frenchValue = xElementFrench.Value
                   };
      foreach (var i in result)
      {
        _languageDicoEn.Add(i.name, i.englishValue);
        _languageDicoFr.Add(i.name, i.frenchValue);
      }
    }

    private static void CreateLanguageFile()
    {
      List<string> minimumVersion = new List<string>
      {
        "<?xml version=\"1.0\" encoding=\"utf-8\" ?>",
        "<terms>",
         "<term>",
        "<name>MenuFile</name>",
        "<englishValue>File</englishValue>",
        "<frenchValue>Fichier</frenchValue>",
        "</term>",
        "<term>",
        "<name>MenuFileNew</name>",
        "<englishValue>New</englishValue>",
        "<frenchValue>Nouveau</frenchValue>",
        "</term>",
        "<term>",
        "<name>MenuFileOpen</name>",
        "<englishValue>Open</englishValue>",
        "<frenchValue>Ouvrir</frenchValue>",
        "</term>",
        "<term>",
        "<name>MenuFileSave</name>",
        "<englishValue>Save</englishValue>",
        "<frenchValue>Enregistrer</frenchValue>",
        "</term>",
        "<term>",
        "<name>MenuFileSaveAs</name>",
        "<englishValue>Save as ...</englishValue>",
        "<frenchValue>Enregistrer sous ...</frenchValue>",
        "</term>",
        "<term>",
        "<name>MenuFilePrint</name>",
        "<englishValue>Print ...</englishValue>",
        "<frenchValue>Imprimer ...</frenchValue>",
        "</term>",
        "<term>",
          "<name>MenufilePageSetup</name>",
          "<englishValue>Page setup</englishValue>",
          "<frenchValue>Aperçu avant impression</frenchValue>",
        "</term>",
        "<term>",
          "<name>MenufileQuit</name>",
          "<englishValue>Quit</englishValue>",
          "<frenchValue>Quitter</frenchValue>",
        "</term>",
        "<term>",
          "<name>MenuEdit</name>",
          "<englishValue>Edit</englishValue>",
          "<frenchValue>Edition</frenchValue>",
        "</term>",
        "<term>",
          "<name>MenuEditCancel</name>",
          "<englishValue>Cancel</englishValue>",
          "<frenchValue>Annuler</frenchValue>",
        "</term>",
        "<term>",
          "<name>MenuEditRedo</name>",
          "<englishValue>Redo</englishValue>",
          "<frenchValue>Rétablir</frenchValue>",
        "</term>",
        "<term>",
          "<name>MenuEditCut</name>",
          "<englishValue>Cut</englishValue>",
          "<frenchValue>Couper</frenchValue>",
        "</term>",
        "<term>",
          "<name>MenuEditCopy</name>",
          "<englishValue>Copy</englishValue>",
          "<frenchValue>Copier</frenchValue>",
        "</term>",
        "<term>",
          "<name>MenuEditPaste</name>",
          "<englishValue>Paste</englishValue>",
          "<frenchValue>Coller</frenchValue>",
        "</term>",
        "<term>",
          "<name>MenuEditSelectAll</name>",
          "<englishValue>Select All</englishValue>",
          "<frenchValue>Sélectionner tout</frenchValue>",
        "</term>",
        "<term>",
          "<name>MenuTools</name>",
          "<englishValue>Tools</englishValue>",
          "<frenchValue>Outils</frenchValue>",
        "</term>",
        "<term>",
          "<name>MenuToolsCustomize</name>",
          "<englishValue>Customize ...</englishValue>",
          "<frenchValue>Personaliser ...</frenchValue>",
        "</term>",
        "<term>",
          "<name>MenuToolsOptions</name>",
          "<englishValue>Options</englishValue>",
          "<frenchValue>Options</frenchValue>",
        "</term>",
        "<term>",
          "<name>MenuLanguage</name>",
          "<englishValue>Language</englishValue>",
          "<frenchValue>Langage</frenchValue>",
        "</term>",
        "<term>",
          "<name>MenuLanguageEnglish</name>",
          "<englishValue>English</englishValue>",
          "<frenchValue>Anglais</frenchValue>",
        "</term>",
        "<term>",
          "<name>MenuLanguageFrench</name>",
          "<englishValue>French</englishValue>",
          "<frenchValue>Français</frenchValue>",
        "</term>",
        "<term>",
          "<name>MenuHelp</name>",
          "<englishValue>Help</englishValue>",
          "<frenchValue>Aide</frenchValue>",
        "</term>",
        "<term>",
          "<name>MenuHelpSummary</name>",
          "<englishValue>Summary</englishValue>",
          "<frenchValue>Sommaire</frenchValue>",
        "</term>",
        "<term>",
          "<name>MenuHelpIndex</name>",
          "<englishValue>Index</englishValue>",
          "<frenchValue>Index</frenchValue>",
        "</term>",
        "<term>",
          "<name>MenuHelpSearch</name>",
          "<englishValue>Search</englishValue>",
          "<frenchValue>Rechercher</frenchValue>",
        "</term>",
        "<term>",
          "<name>MenuHelpAbout</name>",
          "<englishValue>About</englishValue>",
          "<frenchValue>A propos de ...</frenchValue>",
        "</term>",
        "</terms>"
      };
      StreamWriter sw = new StreamWriter(Settings.Default.LanguageFileName);
      foreach (string item in minimumVersion)
      {
        sw.WriteLine(item);
      }

      sw.Close();
    }

    private void GetWindowValue()
    {
      Width = Settings.Default.WindowWidth;
      Height = Settings.Default.WindowHeight;
      Top = Settings.Default.WindowTop < 0 ? 0 : Settings.Default.WindowTop;
      Left = Settings.Default.WindowLeft < 0 ? 0 : Settings.Default.WindowLeft;
      SetDisplayOption(Settings.Default.DisplayToolStripMenuItem);
      textBoxFileName.Text = Settings.Default.textBoxFileName;
      textBoxDirectoryName.Text = Settings.Default.textBoxDirectoryName;
      textBoxLastFileProcessed.Text = Settings.Default.textBoxLastFileProcessed;
    }

    private void SaveWindowValue()
    {
      Settings.Default.WindowHeight = Height;
      Settings.Default.WindowWidth = Width;
      Settings.Default.WindowLeft = Left;
      Settings.Default.WindowTop = Top;
      Settings.Default.LastLanguageUsed = frenchToolStripMenuItem.Checked ? "French" : "English";
      Settings.Default.DisplayToolStripMenuItem = GetDisplayOption();
      Settings.Default.textBoxFileName = textBoxFileName.Text;
      Settings.Default.textBoxDirectoryName = textBoxDirectoryName.Text;
      Settings.Default.textBoxLastFileProcessed = textBoxLastFileProcessed.Text;
      Settings.Default.Save();
    }

    private string GetDisplayOption()
    {
      if (SmallToolStripMenuItem.Checked)
      {
        return "Small";
      }

      if (MediumToolStripMenuItem.Checked)
      {
        return "Medium";
      }

      return LargeToolStripMenuItem.Checked ? "Large" : string.Empty;

      // incase of any other size options:
      //if (LargeToolStripMenuItem.Checked)
      //{
      //  return "Large";
      //}

      //return string.Empty;
    }

    private void SetDisplayOption(string option)
    {
      UncheckAllOptions();
      switch (option.ToLower())
      {
        case "small":
          SmallToolStripMenuItem.Checked = true;
          break;
        case "medium":
          MediumToolStripMenuItem.Checked = true;
          break;
        case "large":
          LargeToolStripMenuItem.Checked = true;
          break;
        default:
          SmallToolStripMenuItem.Checked = true;
          break;
      }
    }

    private void UncheckAllOptions()
    {
      SmallToolStripMenuItem.Checked = false;
      MediumToolStripMenuItem.Checked = false;
      LargeToolStripMenuItem.Checked = false;
    }

    private void FormMainFormClosing(object sender, FormClosingEventArgs e)
    {
      SaveWindowValue();
    }

    private void frenchToolStripMenuItem_Click(object sender, EventArgs e)
    {
      _currentLanguage = Language.French.ToString();
      SetLanguage(Language.French.ToString());
      AdjustAllControls();
    }

    private void englishToolStripMenuItem_Click(object sender, EventArgs e)
    {
      _currentLanguage = Language.English.ToString();
      SetLanguage(Language.English.ToString());
      AdjustAllControls();
    }

    private void SetLanguage(string myLanguage)
    {
      switch (myLanguage)
      {
        case "English":
          frenchToolStripMenuItem.Checked = false;
          englishToolStripMenuItem.Checked = true;
          fileToolStripMenuItem.Text = _languageDicoEn["MenuFile"];
          newToolStripMenuItem.Text = _languageDicoEn["MenuFileNew"];
          openToolStripMenuItem.Text = _languageDicoEn["MenuFileOpen"];
          saveToolStripMenuItem.Text = _languageDicoEn["MenuFileSave"];
          saveasToolStripMenuItem.Text = _languageDicoEn["MenuFileSaveAs"];
          printPreviewToolStripMenuItem.Text = _languageDicoEn["MenuFilePrint"];
          printPreviewToolStripMenuItem.Text = _languageDicoEn["MenufilePageSetup"];
          quitToolStripMenuItem.Text = _languageDicoEn["MenufileQuit"];
          editToolStripMenuItem.Text = _languageDicoEn["MenuEdit"];
          cancelToolStripMenuItem.Text = _languageDicoEn["MenuEditCancel"];
          redoToolStripMenuItem.Text = _languageDicoEn["MenuEditRedo"];
          cutToolStripMenuItem.Text = _languageDicoEn["MenuEditCut"];
          copyToolStripMenuItem.Text = _languageDicoEn["MenuEditCopy"];
          pasteToolStripMenuItem.Text = _languageDicoEn["MenuEditPaste"];
          selectAllToolStripMenuItem.Text = _languageDicoEn["MenuEditSelectAll"];
          toolsToolStripMenuItem.Text = _languageDicoEn["MenuTools"];
          personalizeToolStripMenuItem.Text = _languageDicoEn["MenuToolsCustomize"];
          optionsToolStripMenuItem.Text = _languageDicoEn["MenuToolsOptions"];
          languagetoolStripMenuItem.Text = _languageDicoEn["MenuLanguage"];
          englishToolStripMenuItem.Text = _languageDicoEn["MenuLanguageEnglish"];
          frenchToolStripMenuItem.Text = _languageDicoEn["MenuLanguageFrench"];
          helpToolStripMenuItem.Text = _languageDicoEn["MenuHelp"];
          summaryToolStripMenuItem.Text = _languageDicoEn["MenuHelpSummary"];
          indexToolStripMenuItem.Text = _languageDicoEn["MenuHelpIndex"];
          searchToolStripMenuItem.Text = _languageDicoEn["MenuHelpSearch"];
          aboutToolStripMenuItem.Text = _languageDicoEn["MenuHelpAbout"];
          DisplayToolStripMenuItem.Text = _languageDicoEn["Display"];
          SmallToolStripMenuItem.Text = _languageDicoEn["Small"];
          MediumToolStripMenuItem.Text = _languageDicoEn["Medium"];
          LargeToolStripMenuItem.Text = _languageDicoEn["Large"];
          buttonSearch.Text = _languageDicoEn["Search"];
          labelDirectory.Text = _languageDicoEn["Directory"];
          labelFileName.Text = _languageDicoEn["File"];
          labelLastFileProcessed.Text = _languageDicoEn["Last file processed"];

          _currentLanguage = "English";
          break;
        case "French":
          frenchToolStripMenuItem.Checked = true;
          englishToolStripMenuItem.Checked = false;
          fileToolStripMenuItem.Text = _languageDicoFr["MenuFile"];
          newToolStripMenuItem.Text = _languageDicoFr["MenuFileNew"];
          openToolStripMenuItem.Text = _languageDicoFr["MenuFileOpen"];
          saveToolStripMenuItem.Text = _languageDicoFr["MenuFileSave"];
          saveasToolStripMenuItem.Text = _languageDicoFr["MenuFileSaveAs"];
          printPreviewToolStripMenuItem.Text = _languageDicoFr["MenuFilePrint"];
          printPreviewToolStripMenuItem.Text = _languageDicoFr["MenufilePageSetup"];
          quitToolStripMenuItem.Text = _languageDicoFr["MenufileQuit"];
          editToolStripMenuItem.Text = _languageDicoFr["MenuEdit"];
          cancelToolStripMenuItem.Text = _languageDicoFr["MenuEditCancel"];
          redoToolStripMenuItem.Text = _languageDicoFr["MenuEditRedo"];
          cutToolStripMenuItem.Text = _languageDicoFr["MenuEditCut"];
          copyToolStripMenuItem.Text = _languageDicoFr["MenuEditCopy"];
          pasteToolStripMenuItem.Text = _languageDicoFr["MenuEditPaste"];
          selectAllToolStripMenuItem.Text = _languageDicoFr["MenuEditSelectAll"];
          toolsToolStripMenuItem.Text = _languageDicoFr["MenuTools"];
          personalizeToolStripMenuItem.Text = _languageDicoFr["MenuToolsCustomize"];
          optionsToolStripMenuItem.Text = _languageDicoFr["MenuToolsOptions"];
          languagetoolStripMenuItem.Text = _languageDicoFr["MenuLanguage"];
          englishToolStripMenuItem.Text = _languageDicoFr["MenuLanguageEnglish"];
          frenchToolStripMenuItem.Text = _languageDicoFr["MenuLanguageFrench"];
          helpToolStripMenuItem.Text = _languageDicoFr["MenuHelp"];
          summaryToolStripMenuItem.Text = _languageDicoFr["MenuHelpSummary"];
          indexToolStripMenuItem.Text = _languageDicoFr["MenuHelpIndex"];
          searchToolStripMenuItem.Text = _languageDicoFr["MenuHelpSearch"];
          aboutToolStripMenuItem.Text = _languageDicoFr["MenuHelpAbout"];
          DisplayToolStripMenuItem.Text = _languageDicoFr["Display"];
          SmallToolStripMenuItem.Text = _languageDicoFr["Small"];
          MediumToolStripMenuItem.Text = _languageDicoFr["Medium"];
          LargeToolStripMenuItem.Text = _languageDicoFr["Large"];
          buttonSearch.Text = _languageDicoFr["Search"];
          labelDirectory.Text = _languageDicoFr["Directory"];
          labelFileName.Text = _languageDicoFr["File"];
          labelLastFileProcessed.Text = _languageDicoFr["Last file processed"];

          _currentLanguage = "French";
          break;
        default:
          SetLanguage("English");
          break;
      }
    }

    private void cutToolStripMenuItem_Click(object sender, EventArgs e)
    {
      Control focusedControl = FindFocusedControl(new List<Control>
      {
        textBoxDirectoryName, textBoxFileName, textBoxResult, textBoxLastFileProcessed
      });
      var tb = focusedControl as TextBox;
      if (tb != null)
      {
        CutToClipboard(tb);
      }
    }

    private void copyToolStripMenuItem_Click(object sender, EventArgs e)
    {
      Control focusedControl = FindFocusedControl(new List<Control>
      {
        textBoxDirectoryName, textBoxFileName, textBoxResult, textBoxLastFileProcessed
      });
      var tb = focusedControl as TextBox;
      if (tb != null)
      {
        CopyToClipboard(tb);
      }
    }

    private void pasteToolStripMenuItem_Click(object sender, EventArgs e)
    {
      Control focusedControl = FindFocusedControl(new List<Control>
      {
        textBoxDirectoryName, textBoxFileName, textBoxResult, textBoxLastFileProcessed
      });
      var tb = focusedControl as TextBox;
      if (tb != null)
      {
        PasteFromClipboard(tb);
      }
    }

    private void selectAllToolStripMenuItem_Click(object sender, EventArgs e)
    {
      Control focusedControl = FindFocusedControl(new List<Control>
      {
        textBoxDirectoryName, textBoxFileName, textBoxResult, textBoxLastFileProcessed
      });
      TextBox control = focusedControl as TextBox;
      control?.SelectAll();
    }

    private void CutToClipboard(TextBoxBase tb, string errorMessage = "nothing")
    {
      if (tb != ActiveControl) return;
      if (tb.Text == string.Empty)
      {
        DisplayMessage(Translate("ThereIs") + Punctuation.OneSpace +
          Translate(errorMessage) + Punctuation.OneSpace +
          Translate("ToCut") + Punctuation.OneSpace, Translate(errorMessage),
          MessageBoxButtons.OK);
        return;
      }

      if (tb.SelectedText == string.Empty)
      {
        DisplayMessage(Translate("NoTextHasBeenSelected"),
          Translate(errorMessage), MessageBoxButtons.OK);
        return;
      }

      Clipboard.SetText(tb.SelectedText);
      tb.SelectedText = string.Empty;
    }

    private void CopyToClipboard(TextBoxBase tb, string message = "nothing")
    {
      if (tb != ActiveControl) return;
      if (tb.Text == string.Empty)
      {
        DisplayMessage(Translate("ThereIsNothingToCopy") + Punctuation.OneSpace,
          Translate(message), MessageBoxButtons.OK);
        return;
      }

      if (tb.SelectedText == string.Empty)
      {
        DisplayMessage(Translate("NoTextHasBeenSelected"),
          Translate(message), MessageBoxButtons.OK);
        return;
      }

      Clipboard.SetText(tb.SelectedText);
    }

    private void PasteFromClipboard(TextBoxBase tb)
    {
      if (tb != ActiveControl) return;
      var selectionIndex = tb.SelectionStart;
      tb.SelectedText = Clipboard.GetText();
      tb.SelectionStart = selectionIndex + Clipboard.GetText().Length;
    }

    private void DisplayMessage(string message, string title, MessageBoxButtons buttons)
    {
      MessageBox.Show(this, message, title, buttons);
    }

    private string Translate(string index)
    {
      string result = string.Empty;
      switch (_currentLanguage.ToLower())
      {
        case "english":
          result = _languageDicoEn.ContainsKey(index) ? _languageDicoEn[index] :
           "the term: \"" + index + "\" has not been translated yet.\nPlease tell the developer to translate this term";
          break;
        case "french":
          result = _languageDicoFr.ContainsKey(index) ? _languageDicoFr[index] :
            "the term: \"" + index + "\" has not been translated yet.\nPlease tell the developer to translate this term";
          break;
      }

      return result;
    }

    private static Control FindFocusedControl(Control container)
    {
      foreach (Control childControl in container.Controls.Cast<Control>().Where(childControl => childControl.Focused))
      {
        return childControl;
      }

      return (from Control childControl in container.Controls
              select FindFocusedControl(childControl)).FirstOrDefault(maybeFocusedControl => maybeFocusedControl != null);
    }

    private static Control FindFocusedControl(IEnumerable<Control> container)
    {
      return container.FirstOrDefault(control => control.Focused);
    }

    private static Control FindFocusedControl(List<Control> container)
    {
      return container.FirstOrDefault(control => control.Focused);
    }

    private static Control FindFocusedControl(params Control[] container)
    {
      return container.FirstOrDefault(control => control.Focused);
    }

    private static string ChooseDirectory()
    {
      string result = string.Empty;
      FolderBrowserDialog fbd = new FolderBrowserDialog();
      if (fbd.ShowDialog() == DialogResult.OK)
      {
        result = fbd.SelectedPath;
      }

      return result;
    }

    private void SmallToolStripMenuItem_Click(object sender, EventArgs e)
    {
      UncheckAllOptions();
      SmallToolStripMenuItem.Checked = true;
      AdjustAllControls();
    }

    private void MediumToolStripMenuItem_Click(object sender, EventArgs e)
    {
      UncheckAllOptions();
      MediumToolStripMenuItem.Checked = true;
      AdjustAllControls();
    }

    private void LargeToolStripMenuItem_Click(object sender, EventArgs e)
    {
      UncheckAllOptions();
      LargeToolStripMenuItem.Checked = true;
      AdjustAllControls();
    }

    private static void AdjustControls(params Control[] listOfControls)
    {
      if (listOfControls.Length == 0)
      {
        return;
      }

      int position = listOfControls[0].Width + 33; // 33 is the initial padding
      bool isFirstControl = true;
      foreach (Control control in listOfControls)
      {
        if (isFirstControl)
        {
          isFirstControl = false;
        }
        else
        {
          control.Left = position + 15;
          position += control.Width;
        }
      }
    }

    private void AdjustAllControls()
    {
      AdjustControls(labelDirectory, textBoxDirectoryName, buttonPeekDirectory);
      AdjustControls(labelFileName, textBoxFileName, buttonPeekFileName);
      AdjustControls(labelLastFileProcessed, textBoxLastFileProcessed);
    }

    private void newToolStripMenuItem_Click(object sender, EventArgs e)
    {
      textBoxResult.Text = string.Empty;
    }

    private void buttonPeekDirectory_Click(object sender, EventArgs e)
    {
      if (folderBrowserDialog1.ShowDialog() == DialogResult.OK)
      {
        textBoxDirectoryName.Text = folderBrowserDialog1.SelectedPath;
      }
    }

    private void buttonPeekFileName_Click(object sender, EventArgs e)
    {
      openFileDialog1.Multiselect = false;
      openFileDialog1.Filter = Translate("Xml Files") + CreateFilterString("xml");
      openFileDialog1.FilterIndex = 1;
      openFileDialog1.FileName = string.Empty;
      if (openFileDialog1.ShowDialog() == DialogResult.OK)
      {
        textBoxFileName.Text = openFileDialog1.SafeFileName;
      }
    }

    private static string CreateFilterString(string extension)
    {
      var result = new StringBuilder();
      result.Append(Punctuation.OneSpace);
      result.Append(Punctuation.OpenParenthesis);
      result.Append(Punctuation.Multiply);
      result.Append(Punctuation.Period);
      result.Append(extension);
      result.Append(Punctuation.CloseParenthesis);
      result.Append(Punctuation.Pipe);
      result.Append(Punctuation.Multiply);
      result.Append(Punctuation.Period);
      result.Append(extension);
      return result.ToString();
    }

    private void buttonSearch_Click(object sender, EventArgs e)
    {
      if (textBoxDirectoryName.Text == string.Empty)
      {
        DisplayMessage(Translate("The start directory cannot be empty"),
          Translate("Empty Directory"), MessageBoxButtons.OK);
        return;
      }

      if (!Directory.Exists(textBoxDirectoryName.Text))
      {
        DisplayMessage(Translate("The directory doesn't exist"),
          Translate("Not a Directory"), MessageBoxButtons.OK);
        return;
      }

      if (textBoxFileName.Text == string.Empty)
      {
        DisplayMessage(Translate("The xml file name cannot be empty"),
          Translate("Empty File Name"), MessageBoxButtons.OK);
        return;
      }

      textBoxResult.Text = string.Empty;
      progressBarMain.Visible = true;
      progressBarMain.Minimum = 0;
      progressBarMain.Value = progressBarMain.Minimum;
      progressBarMain.Maximum =
        Directory.EnumerateFiles(textBoxDirectoryName.Text, "*.xml", SearchOption.AllDirectories).Count();
      int counter = 0;
      var listOfTranslatedTermsInFile = new List<Tuple<string, string, string>>();
      foreach (var file in Directory.EnumerateFiles(textBoxDirectoryName.Text, "*.xml", SearchOption.AllDirectories))
      {
        progressBarMain.Value = ++counter;
        Application.DoEvents();
        if (string.Equals(Path.GetFileName(file), textBoxFileName.Text, StringComparison.CurrentCultureIgnoreCase))
        {
          textBoxLastFileProcessed.Text = file;
          XDocument xDoc = XDocument.Load(file);
          var result = from node in xDoc.Descendants("term")
                       where node.HasElements
                       let xElementName = node.Element("name")
                       where xElementName != null
                       let xElementEnglish = node.Element("englishValue")
                       where xElementEnglish != null
                       let xElementFrench = node.Element("frenchValue")
                       where xElementFrench != null
                       select new
                       {
                         name = xElementName.Value,
                         englishValue = xElementEnglish.Value,
                         frenchValue = xElementFrench.Value
                       };
          foreach (var word in result)
          {
            if (!listOfTranslatedTermsInFile.Contains(new Tuple<string, string, string>(
              word.name, word.englishValue, word.frenchValue)))
            {
              listOfTranslatedTermsInFile.Add(new Tuple<string, string, string>(word.name,
              word.englishValue, word.frenchValue));
            }
          }
        }
      }

      textBoxResult.Text = "<?xml version=\"1.0\" encoding=\"utf - 8\" ?>" + Punctuation.CrLf;
      textBoxResult.Text += "<terms>" + Punctuation.CrLf;
      foreach (Tuple<string, string, string> sentenceTuple in listOfTranslatedTermsInFile)
      {
        textBoxResult.Text += CreateTranslateTerm(sentenceTuple);
      }

      progressBarMain.Value = progressBarMain.Minimum;
      progressBarMain.Visible = false;
      textBoxResult.Text += "</terms>" + Punctuation.CrLf;
      DisplayMessage(Translate("The search is over"), Translate("Search over"), MessageBoxButtons.OK);
    }

    private static string CreateTranslateTerm(Tuple<string, string, string> word)
    {
      var result = new StringBuilder();
      result.Append("<term>");
      result.Append(Punctuation.CrLf);
      result.Append("<name>");
      result.Append(word.Item1);
      result.Append("</name>");
      result.Append(Punctuation.CrLf);
      result.Append("<englishValue>");
      result.Append(word.Item2);
      result.Append("</englishValue>");
      result.Append(Punctuation.CrLf);
      result.Append("<frenchValue>");
      result.Append(word.Item3);
      result.Append("</frenchValue>");
      result.Append(Punctuation.CrLf);
      result.Append("</term>");
      result.Append(Punctuation.CrLf);
      return result.ToString();
    }

    private void saveasToolStripMenuItem_Click(object sender, EventArgs e)
    {
      if (textBoxResult.Text != string.Empty)
      {
        saveFileDialog1.OverwritePrompt = true;
        saveFileDialog1.Filter = Translate("Xml Files") + CreateFilterString("xml");
        if (saveFileDialog1.ShowDialog() == DialogResult.OK)
        {
          var sw = new StreamWriter(saveFileDialog1.FileName);
          sw.Write(textBoxResult.Text);
          sw.Close();
        }
      }
    }

    private void saveToolStripMenuItem_Click(object sender, EventArgs e)
    {
      saveasToolStripMenuItem_Click(sender, e);
    }
  }
}


text:
package binarypkg

import "strings"

// ToUpperCase returns the string changed with upper case.
func ToUpperCase(s string) string {
	return strings.ToUpper(s)
}

// ToLowerCase returns the string changed with lower case.
func ToLowerCase(s string) string {
	return strings.ToLower(s)
}


text:
var mongoose = require('mongoose'),
    ObjectId = mongoose.Schema.Types.ObjectId

var modelSchema = new mongoose.Schema({
    name: {
        type: String,
        required: true
    }
})

modelSchema.methods = {}
modelSchema.statics = {
    getByName: function(name, isLean, next) {
        this.findOne({
            name: name
        })
            .lean(isLean)
            .exec(next)
    }
}

module.exports = mongoose.model('Model', modelSchema)


text:
class StressReporter::Checker

  # This limit can be passed in as a command line arg
  #
  # Defaults to 1.0
  LIMIT = ARGV.empty? ? 1.0 : ARGV[0].to_f

  # starts at 0.0
  @@load_average = 0.0

  # Returns true if limit exceeded. Sets @@load_average
  def self.go?
    @@load_average = Sys::CPU.load_avg[0].to_f
    @@load_average > LIMIT
  end

  # Returns last checked load average
  # @return [Float]
  def self.load_average
    @@load_average
  end

end


text:
package org.eclipse.jnosql.diana.query.method;

import jakarta.nosql.query.ArrayQueryValue;
import jakarta.nosql.query.QueryValue;

import java.util.Arrays;

final class MethodArrayValue implements ArrayQueryValue {

    private final QueryValue<?>[] values;

    private MethodArrayValue(QueryValue<?>[] values) {
        this.values = values;
    }

    @Override
    public QueryValue<?>[] get() {
        return values;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) {
            return true;
        }
        if (!(o instanceof MethodArrayValue)) {
            return false;
        }
        MethodArrayValue that = (MethodArrayValue) o;
        return Arrays.equals(values, that.values);
    }

    @Override
    public int hashCode() {
        return Arrays.hashCode(values);
    }

    @Override
    public String toString() {
        return Arrays.toString(values);
    }

    static ArrayQueryValue of(String name) {
        return new MethodArrayValue(new QueryValue[] {new MethodParamQueryValue(name),
                new MethodParamQueryValue(name)});
    }
}


text:
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
         xmlns="http://maven.apache.org/POM/4.0.0"
         xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
    <modelVersion>4.0.0</modelVersion>
    <repositories>
        <repository>
            <id>central</id>
            <name>Central Repository</name>
            <url>http://repo.maven.apache.org/maven2</url>
            <layout>default</layout>
            <snapshots>
                <enabled>false</enabled>
            </snapshots>
        </repository>
    </repositories>

    <groupId>party.shaytang</groupId>
    <artifactId>search</artifactId>
    <version>1.0-SNAPSHOT</version>
    <build>
        <plugins>
            <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-compiler-plugin</artifactId>
                <configuration>
                    <source>1.8</source>
                    <target>1.8</target>
                </configuration>
            </plugin>
        </plugins>
    </build>

    <dependencies>
        <!-- https://mvnrepository.com/artifact/org.springframework/spring-core -->
        <dependency>
            <groupId>org.springframework</groupId>
            <artifactId>spring-core</artifactId>
            <version>5.0.0.RELEASE</version>
        </dependency>

        <!-- https://mvnrepository.com/artifact/org.springframework/spring-context -->
        <dependency>
            <groupId>org.springframework</groupId>
            <artifactId>spring-context</artifactId>
            <version>5.0.0.RELEASE</version>
        </dependency>

        <!-- https://mvnrepository.com/artifact/org.springframework/spring-webmvc -->
        <dependency>
            <groupId>org.springframework</groupId>
            <artifactId>spring-webmvc</artifactId>
            <version>5.0.0.RELEASE</version>
        </dependency>

        <!-- https://mvnrepository.com/artifact/org.eclipse.jetty/jetty-server -->
        <dependency>
            <groupId>org.eclipse.jetty</groupId>
            <artifactId>jetty-server</artifactId>
            <version>9.4.7.v20170914</version>
        </dependency>

        <!-- https://mvnrepository.com/artifact/org.eclipse.jetty/jetty-servlet -->
        <dependency>
            <groupId>org.eclipse.jetty</groupId>
            <artifactId>jetty-servlet</artifactId>
            <version>9.4.7.v20170914</version>
        </dependency>

        <!-- https://mvnrepository.com/artifact/org.springframework.data/spring-data-elasticsearch -->
        <dependency>
            <groupId>org.springframework.data</groupId>
            <artifactId>spring-data-elasticsearch</artifactId>
            <version>3.0.0.RELEASE</version>
        </dependency>

        <!-- https://mvnrepository.com/artifact/org.slf4j/slf4j-simple -->
        <dependency>
            <groupId>org.slf4j</groupId>
            <artifactId>slf4j-simple</artifactId>
            <version>1.7.24</version>
        </dependency>

        <!-- https://mvnrepository.com/artifact/com.querydsl/querydsl-core -->
        <dependency>
            <groupId>com.querydsl</groupId>
            <artifactId>querydsl-core</artifactId>
            <version>4.1.4</version>
        </dependency>
    </dependencies>
</project>


text:
var module = angular.module('Brewery', []);

module.controller('BreweryCtrl', ['$scope', 'BreweryService', function ($scope, BreweryService) {
  $scope.beers = BreweryService.getBeers();
  $scope.selectBeer = function (beer) {
    BreweryService.getOnePinte(beer);
  };
}]);

module.filter('NoteFilter', function () {
  return function (value) {
    return value > 3 ? 'glyphicon glyphicon-heart' : '';
  };
})

module.factory('BreweryService', function () {
  return {
    getOnePinte: function (beer) {
      alert('The pint ' + beer.name + ' is almost ready !');
    },

    getBeers: function () {
      return [
        {image: 'heineken.jpg', name:'Heinekken', note: 0, description:'Heineken International est un groupe brassicole d'origine néerlandaise fondé en 1873 par Gerard Adriaan Heineken. C'est en 2011 le 3e brasseur au niveau mondial3, avec une part de marché en volume de 8,8 %, derrière Anheuser-Busch InBev (18,3 %) et SABMiller (9,8 %)4.'},
        {image: 'leffe.png', name:'Leffe', note: 2.5, description:'La Leffe (ou Abbaye de Leffe) est une bière belge d\'Abbaye reconnue.'},
        {image: 'chouffe.jpg', name:'Chouffe', note: 4, description:'La Chouffe est une bière blonde belge. Elle est produite par la brasserie d\'Achouffe, dans le village du même nom, en province de Luxembourg. Elle fait partie des « blondes des Ardennes ».'},
        {image: 'jonquille.jpg', name:'Cuvée des Jonquilles', note: 4.5, description:'La Brasserie Au Baron, propriété de la famille Bailleux est située à Gussignies dans le département du Nord.'},
        {image: 'moinette.jpg', name:'Moinette', note: 4, description:'La Brasserie Dupont est une entreprise belge établie à Tourpes dans la commune de Leuze-en-Hainaut, au centre du Hainaut occidental.'},
        {image: 'saint-feuillien.jpg', name:'Saint Feuillien', note: 4, description:'La St Feuillien est une bière belge d\'Abbaye reconnue produite au Rœulx (province de Hainaut) dans la brasserie St-Feuillien appelée aussi brasserie Friart.'}
      ];
    }
  }
});


text:
package main

import (
	"net/http"
	"net/mail"
)

const (
	minPasswordLength = 3
)

type validationErrors []string

type Validation struct {
	ln *Language
}

func NewValidation(ln *Language) *Validation {
	return &Validation{ln}
}

func validEmail(email string) (string, error) {
	addr, err := mail.ParseAddress(email)
	if err != nil {
		return "", err
	}
	return addr.Address, nil
}

func (v *Validation) validateUserRegister(r *http.Request) (string, string, validationErrors) {
	password := r.FormValue("password")
	errors := validationErrors{}
	email, err := validEmail(r.FormValue("email"))
	if err != nil {
		errors = append(errors, v.ln.Lang("Please enter valid email address"))
	}
	if password != r.FormValue("password_confirm") {
		errors = append(errors, v.ln.Lang("Passwords don't match"))
	}
	if len(password) < minPasswordLength {
		errors = append(errors, v.ln.Lang("Passwords is too short"))
	}
	return email, password, errors
}

func (v *Validation) validateUserLogin(r *http.Request) (string, string, validationErrors) {
	password := r.FormValue("password")
	errors := validationErrors{}
	email, err := validEmail(r.FormValue("email"))
	if err != nil {
		errors = append(errors, v.ln.Lang("Please enter valid email address"))
	}
	if password == "" {
		errors = append(errors, v.ln.Lang("Please enter password"))
	}
	return email, password, errors
}


text:
<template name="snippets">

    {{#masonryContainer id='MasonryContainer' columWidth=25 gutter=4 transitionDuration='0.1s'}}
    {{#each snippets}}
    {{> snippet}}
    {{/each}}
    {{/masonryContainer}}

</template>

<template name="snippet">
 {{#masonryElement 'MasonryContainer'}}

{{text}}

   {{desc}}

  {{#if isLink}}

  Link

  {{/if}}

  {{/masonryElement}}
</template>


text:
using System;
using System.Collections.Generic;

namespace Azure.AI.MetricsAdvisor.Models
{
    /// <summary> The EmailHookInfo. </summary>
    public partial class EmailNotificationHook : NotificationHook
    {
    }
}


text:
<?php

include_once 'ManipulationWebSite.php';
include_once '../SimpleHTMLDOM/simple_html_dom.php';

use SiteManipulation\ManipulationWebSite as ManipulationWebSite;
/**
 * Generated by PHPUnit_SkeletonGenerator 1.2.1 on 2013-09-23 at 11:45:12.
 */
class ManipulationWebSiteTest extends \PHPUnit_Framework_TestCase
{
    /**
     * @var ManipulationWebSite
     */
    protected $object;

    /**
     * Sets up the fixture, for example, opens a network connection.
     * This method is called before a test is executed.
     */
    protected function setUp()
    {
        $this->object = new ManipulationWebSite('http://www.google.com');
        $this->assertInstanceOf('simple_html_dom',$this->object->objHtml,'Instancia de PHP Simple HTML Parser inexistente.');
    }

    /**
     * @covers SiteManipulation\Library\ManipulationWebSite::getUrl
     */
    public function testGetUrl()
    {
        $this->assertNotNull('urlToRetrieve');
    }

    /**
     * @covers SiteManipulation\Library\ManipulationWebSite::setUrl
     */
    public function testSetUrl()
    {
        $this->object->setUrl('http://www.google.com');
        $this->assertStringStartsWith('http://',$this->object->getUrl(),'A URL precisa ter o formato http://www.example.com ou iniciado por ftp');
    }

    /**
     * @covers SiteManipulation\Library\ManipulationWebSite::getProxyAddress
     */
    public function testExistsProxyAddress()
    {
        $this->assertObjectHasAttribute('proxyAddress',$this->object,'Atributo proxyAddress precisa existir na classe.');
    }

    /**
     * @covers SiteManipulation\Library\ManipulationWebSite::setProxyPort
     */
    public function testSetProxyPort()
    {
        $this->object->setProxyPort(00);
        $this->assertInternalType('int',$this->object->getProxyPort(),'Valor numerico deve ser inserido para a porta do Proxy.');
    }

    /**
     * @covers SiteManipulation\Library\ManipulationWebSite::connect
     */
    public function testConnect()
    {
        $this->assertNotNull($this->object->getUrl(),'URL para conexao nao pode ser nulo');

    }

}


text:
package org.apache.cassandra.transport.messages;

import java.util.UUID;

import com.google.common.collect.ImmutableMap;
import io.netty.buffer.ByteBuf;

import org.apache.cassandra.service.ClientState;
import org.apache.cassandra.service.QueryState;
import org.apache.cassandra.tracing.Tracing;
import org.apache.cassandra.transport.*;
import org.apache.cassandra.utils.JVMStabilityInspector;
import org.apache.cassandra.utils.UUIDGen;

public class PrepareMessage extends Message.Request
{
    public static final Message.Codec<PrepareMessage> codec = new Message.Codec<PrepareMessage>()
    {
        public PrepareMessage decode(ByteBuf body, ProtocolVersion version)
        {
            String query = CBUtil.readLongString(body);
            return new PrepareMessage(query);
        }

        public void encode(PrepareMessage msg, ByteBuf dest, ProtocolVersion version)
        {
            CBUtil.writeLongString(msg.query, dest);
        }

        public int encodedSize(PrepareMessage msg, ProtocolVersion version)
        {
            return CBUtil.sizeOfLongString(msg.query);
        }
    };

    private final String query;

    public PrepareMessage(String query)
    {
        super(Message.Type.PREPARE);
        this.query = query;
    }

    public Message.Response execute(QueryState state, long queryStartNanoTime)
    {
        try
        {
            UUID tracingId = null;
            if (isTracingRequested())
            {
                tracingId = UUIDGen.getTimeUUID();
                state.prepareTracingSession(tracingId);
            }

            if (state.traceNextQuery())
            {
                state.createTracingSession();
                Tracing.instance.begin("Preparing CQL3 query", state.getClientAddress(), ImmutableMap.of("query", query));
            }

            Message.Response response = ClientState.getCQLQueryHandler().prepare(query, state, getCustomPayload());

            if (tracingId != null)
                response.setTracingId(tracingId);

            return response;
        }
        catch (Exception e)
        {
            JVMStabilityInspector.inspectThrowable(e);
            return ErrorMessage.fromException(e);
        }
        finally
        {
            Tracing.instance.stopSession();
        }
    }

    @Override
    public String toString()
    {
        return "PREPARE " + query;
    }
}


text:
Les statuts de l'ASTRE

      Association Sexologique de Travail, de Réflexion, et d'Enseignement

      ARTICLE PREMIER - NOM

	  Il est fondé entre les adhérents aux présents statuts une association régie par la loi du 1er juillet 1901 et le décret du 16 août 1901, ayant pour titre : .A.S.T.R.E.

      ARTICLE 2 - OBJET

	  Cette association a pour objet la recherche, l'étude et la réflexion transdisciplinaires, et la transmission des savoirs dans le champ des sexualités humaines et dans une approche globale de la santé sexuelle.

      ARTICLE 3 - SIÈGE SOCIAL

	  Le siège social est fixé à COURBEVOIE -92400 – 21, rue Sainte Geneviève
	  Il pourra être transféré par simple décision du Conseil d'Administration, soumise à la ratification de la prochaine Assemblée Générale.

      ARTICLE 4 - COMPOSITION

      L'association se compose de:

Membres actifs ou adhérents, personnes physiques prenant une part significative au fonctionnement de l'association. La qualité de membre actif confère un droit de vote et d'éligibilité lors de l'Assemblée Générale.

Membres associés, personnes physiques souhaitant bénéficier des services de l'association et dont la candidature en tant que membre actif n'a pas encore été agréée par le Conseil d'Administration. Les membres associés peuvent assister à l'Assemblée Générale et émettre un avis consultatif sur les questions portées à l'ordre du jour, mais n'ont ni droit de vote ni capacité d'éligibilité.

Membres bienfaiteurs, personnes physiques ou morales souhaitant soutenir l'association, sans droit de vote ni capacité d'éligibilité.

Membres d'honneur, titre décerné par le Conseil d'Administration à un nombre restreint de personnes physiques en raison de leurs compétences ou des services rendus dans le champ de la sexualité humaine et de la santé sexuelle.

      ARTICLE 5 - ADMISSION

      Pour faire partie de l'association, il faut :

Adhérer aux présents statuts ;

Etre titulaire du diplôme universitaire d'études biologiques, psychologiques et sociales de la sexualité humaine ou du diplôme interuniversitaire de sexologie délivré au terme du cursus par les facultés habilitées
	  ou être professionnel œuvrant dans le champ de la sexualité humaine et de la santé sexuelle

Etre agréé par le Conseil d'Administration de l'association qui statue, lors de chacune de ses réunions, sur les demandes d'admission présentées

Payer la cotisation prévue

      ARTICLE 6 - MEMBRES – COTISATIONS

Les membres actifs  et les membres associés prennent l'engagement de verser annuellement à titre de cotisation une somme fixée chaque année par l'Assemblée Générale

Les membres bienfaiteurs versent un droit d'entrée et une cotisation annuelle fixés chaque année par l'Assemblée Générale

Les membres d'honneur sont dispensés de cotisations

      ARTICLE 7. - RADIATIONS

      La qualité de membre se perd par :

La démission;

Le décès;

La radiation prononcée par le Conseil d'Administration pour non-paiement de la cotisation ou pour motif grave, l'intéressé ayant été invité à fournir des explications devant le Conseil d'Administration ou par écrit.

      ARTICLE 8. - AFFILIATION

	  Elle peut par ailleurs adhérer à d'autres associations, unions ou regroupements par décision du Conseil d'Administration, validée par l'Assemblée Générale.

      ARTICLE 9. – RESSOURCES

      Les ressources de l'association comprennent :

Le montant des cotisations et des droits d'entrée;

Les subventions de l'UE, de l'Etat, des départements et des communes

Les dons manuels et toutes les ressources autorisées par les lois et règlements en vigueur.

      Une comptabilité de toutes les opérations est tenue par exercices annuels.

      ARTICLE 10. – ORGANES DE DECISION

	  Le fonctionnement de l'association est défini par l'Assemblée Générale et mis en œuvre par le Conseil d'Administration.

      ARTICLE 11 - ASSEMBLEE GENERALE

L'Assemblée Générale est composée de l'ensemble des adhérents à jour de leur cotisation.

Elle est souveraine, détermine les orientations et décide de toute question non déléguée au Conseil d'Administration.

L'Assemblée Générale est convoquée par le Conseil d'Administration par courrier postal ou électronique adressé quinze jours au moins avant la date fixée et mentionnant l'ordre du jour.

L'Assemblée Générale est présidée par le Président du Conseil d'Administration, à défaut par un Vice-Président ou un autre membre du Bureau désigné par ce dernier.

      ARTICLE 12 - ASSEMBLEE GENERALE ORDINAIRE

	  Chaque année, l'Assemblée Générale est réunie en Assemblée Générale Ordinaire.

Le Président, assisté des membres du Conseil, préside l'Assemblée, présente le rapport d'activité et rend compte des orientations pour la période à venir.

Le trésorier rend compte de sa gestion et soumet les comptes annuels (bilan, compte de résultat et annexe) à l'approbation de l'assemblée.

L'Assemblée Générale fixe le montant des cotisations annuelles et du droit d'entrée à verser par les différentes catégories de membres.

Ne peuvent être abordés que les points inscrits à l'ordre du jour.

Les décisions sont prises à la majorité des voix des membres présents ou représentés.
      Si besoin, il est procédé, après épuisement de l'ordre du jour, au renouvellement des membres sortants du conseil.

	  L'Assemblée Générale Ordinaire peut valablement délibérer lorsque plus de la moitié des adhérents est présente ou représentée par un autre adhérent muni d'un pouvoir écrit.
	  A défaut de quorum, l'Assemblée Générale est à nouveau convoquée dans les quarante-cinq jours et peut alors délibérer quel que soit le nombre d'adhérents présents ou représentés.
	  Les décisions des Assemblées Générales s'imposent à tous les membres, y compris absents ou représentés.

      ARTICLE 13 - ASSEMBLEE GENERALE EXTRAORDINAIRE

L'Assemblée Générale peut être réunie en Assemblée Générale Extraordinaire par décision du Conseil d'Administration pour délibérer sur un ordre du jour particulier.

Une Assemblée Générale extraordinaire doit obligatoirement être convoquée pour les cas évoqués dans les statuts aux articles 17 et 18, et lorsque au moins un quart des adhérents le demande.

Les modalités de convocation sont les mêmes que pour l'Assemblée Générale Ordinaire.

Les délibérations sont prises aux deux tiers des membres présents ou représentés.

      ARTICLE 14 - CONSEIL D'ADMINISTRATION

	Le fonctionnement courant de l'association est assuré par le Conseil d'Administration, dans le respect des statuts et des orientations de l'Assemblée Générale.
	Il compte un minimum de cinq membres, élus pour trois ans par l'Assemblée Générale et rééligibles.
	Il se réunit de manière physique ou virtuelle au moins trois fois dans l'année, sur convocation du Président, ou sur la demande du tiers de ses membres.
	Les décisions sont prises à la majorité simple des membres présents; en cas de partage des voix, celle du Président est prépondérante.
	En cas de vacance ou de nécessité, le Conseil d'Administration pourvoit provisoirement au remplacement de ses membres. Il est procédé à leur remplacement définitif par la prochaine Assemblée Générale. Les pouvoirs des membres ainsi élus prennent fin à l'expiration du mandat des membres remplacés.
	Tout membre du Conseil d'Administration qui sans excuse n'aura pas assisté à trois réunions consécutives, sera considéré comme démissionnaire.

      ARTICLE 15 – LE BUREAU

	  Le Conseil d'Administration élit parmi ses membres, à bulletin secret si un des membres le demande, un Bureau composé de :

1) Un-e- Président-e

2) Un-e- Secrétaire

3) Un-e- Trésorier-e

	  et s'il y a lieu, un-e- ou plusieurs Vice-président-e-s, un-e- Secrétaire adjoint-e, et un-e- Trésorier-e- adjoint-e.

	  Les fonctions de Président et de Trésorier ne sont pas cumulables.

	  Le Président représente l'Association dans tous les actes de la vie civile et est investi de tous pouvoirs à cet effet.
	  Il préside les Assemblées, et a notamment qualité pour ester en justice avec autorisation du Conseil d'Administration.
	  En cas d'indisponibilité, le Président est remplacé par un Vice-président.

	  Le secrétaire est chargé de la correspondance, des formalités administratives, de la rédaction des comptes rendus, et de la tenue des archives.

	  Le Trésorier est responsable de la gestion financière et comptable. Il organise le recouvrement des cotisations et autres ressources,procède aux paiements autorisés par le conseil d'Administration qu'il tient régulièrement informé, et rend compte à l'Assemblée Générale.

	  A la majorité des deux tiers le Conseil d'Administration peut mettre fin à l'une ou l'autre des fonctions précitées.

      ARTICLE - 16 - REGLEMENT INTERIEUR

Un règlement intérieur peut être établi par le Conseil d'Administration, qui le fait alors approuver par la plus prochaine Assemblée Générale.

Ce règlement éventuel est destiné à fixer les divers points non prévus par les présents statuts, notamment ceux qui ont trait à l'administration interne de l'association.

      ARTICLE - 17 – MODIFICATION DES STATUTS

Les statuts ne peuvent être modifiés que par une Assemblée Générale Extraordinaire statuant à la majorité des deux tiers présents ou représentés.

      ARTICLE - 18 – DISSOLUTION

L'association est créée pour une durée indéterminée.

L'Assemblée Générale appelée à sa dissolution devra être convoquée spécialement à cet effet, la dissolution ne pouvant être décidée qu'à la majorité des deux tiers des membres présents ou représentés.

L'Assemblée Générale qui prononce la dissolution en fixe les modalités, l'actif ne pouvant jamais être réparti entre les adhérents.

  Maria GAULARD                               Joelle GUILBAUD
  Trésorière                                             Secrétaire


text:
<?php

namespace backend\controllers;

use Yii;
use backend\models\Cotizacion;
use backend\models\CotizacionProducto;
use backend\models\CotizacionServicio;
use backend\models\CotizacionSearch;
use yii\web\Controller;
use yii\web\NotFoundHttpException;
use yii\filters\VerbFilter;
use kartik\mpdf\Pdf;

/**
 * CotizacionController implements the CRUD actions for Cotizacion model.
 */
class CotizacionController extends Controller
{
    /**
     * @inheritdoc
     */
    public function behaviors()
    {
        return [
            'verbs' => [
                'class' => VerbFilter::className(),
                'actions' => [
                    'delete' => ['POST'],
                ],
            ],
        ];
    }

    /**
     * Lists all Cotizacion models.
     * @return mixed
     */
    public function actionIndex()
    {
        $searchModel = new CotizacionSearch();
        $dataProvider = $searchModel->search(Yii::$app->request->queryParams);

        return $this->render('index', [
            'searchModel' => $searchModel,
            'dataProvider' => $dataProvider,
        ]);
    }

    /**
     * Displays a single Cotizacion model.
     * @param integer $id
     * @return mixed
     */
    public function actionView($id)
    {
		$pros = CotizacionProducto::find()->where(['id_cotizacion' => $id])->all();
		$servi = CotizacionServicio::find()->where(['id_cotizacion' => $id])->all();
        return $this->render('view', [
            'model' => $this->findModel($id),
			'pros' => $pros,
			'servi' => $servi,
        ]);
    }

    /**
     * Creates a new Cotizacion model.
     * If creation is successful, the browser will be redirected to the 'view' page.
     * @return mixed
     */
    public function actionCreate()
    {
        $model = new Cotizacion();

        if ($model->load(Yii::$app->request->post())) {

			if($model->save()){

					$pros=$model->productos;
					//guarda productos
					foreach( $pros as $n => $id){
							$model2 = new CotizacionProducto();
							$model2->id_cotizacion = $model->id_cotizacion;
							$model2->id_producto=$id;
							$model2->save();
					}

					$servi=$model->servicios;
					//guarda servicios
					foreach($servi as $n => $id){
							$model2 = new CotizacionServicio();
							$model2->id_cotizacion = $model->id_cotizacion;
							$model2->id_servicio=$id;
							$model2->save();
					}
					return $this->redirect(['view', 'id' => $model->id_cotizacion, 'pros'=>$pros, 'servi'=>$servi]);
			}else
			echo("Error al guardar el pack");
        } else {
			date_default_timezone_set('America/Santiago');
			$model->fecha = date('Y/m/d h:i:s');
            return $this->render('create', [
                'model' => $model,
				'pros'=>'',
				'servi'=>''
            ]);
        }
    }

    /**
     * Updates an existing Cotizacion model.
     * If update is successful, the browser will be redirected to the 'view' page.
     * @param integer $id
     * @return mixed
     */
    public function actionUpdate($id)
    {
        $model = $this->findModel($id);

        if ($model->load(Yii::$app->request->post()) && $model->save()) {
            return $this->redirect(['view', 'id' => $model->id_cotizacion]);
        } else {

			$datosp= array();
			$pr = CotizacionProducto::find()->where(['id_cotizacion' => $id])->all();
			foreach($pr as $indice => $producto){
				array_push($datosp, $producto->id_producto);
			}

			$datoss= array();
			$sr = CotizacionServicio::find()->where(['id_cotizacion' => $id])->all();
			foreach($sr as $indice => $servicio){
				array_push($datoss, $servicio->id_servicio);
			}
			$model->productos = $datosp;
			$model->servicios = $datoss;
			return $this->render('update', [
                'model' => $model,
            ]);
        }
    }

    /**
     * Deletes an existing Cotizacion model.
     * If deletion is successful, the browser will be redirected to the 'index' page.
     * @param integer $id
     * @return mixed
     */
    public function actionDelete($id)
    {
        $this->findModel($id)->delete();

        return $this->redirect(['index']);
    }

    /**
     * Finds the Cotizacion model based on its primary key value.
     * If the model is not found, a 404 HTTP exception will be thrown.
     * @param integer $id
     * @return Cotizacion the loaded model
     * @throws NotFoundHttpException if the model cannot be found
     */
    protected function findModel($id)
    {
        if (($model = Cotizacion::findOne($id)) !== null) {
            return $model;
        } else {
            throw new NotFoundHttpException('The requested page does not exist.');
        }
    }

	public function actionPdf($id_cotizacion) {

        $pdf = new Pdf([

        'content' => $this->renderPartial('formatoCotizacion', ['id' => $id_cotizacion]),
		//'content' =>'
Hallo World
',

    ]);
    return $pdf->render();
    }

}


text:
package org.drools.core.reteoo;

import java.io.Externalizable;
import java.io.IOException;
import java.io.ObjectInput;
import java.io.ObjectOutput;

import org.drools.core.RuleBaseConfiguration;
import org.drools.core.common.InternalFactHandle;
import org.drools.core.common.Memory;
import org.drools.core.common.MemoryFactory;
import org.drools.core.common.ReteEvaluator;
import org.drools.core.common.UpdateContext;
import org.drools.core.reteoo.builder.BuildContext;
import org.drools.core.spi.PropagationContext;
import org.drools.core.util.AbstractBaseLinkedListNode;

/**
 * Node which allows to follow different paths in the Rete-OO network,
 * based on the result of a boolean Test.
 */
public class ConditionalBranchNode extends LeftTupleSource implements LeftTupleSinkNode, MemoryFactory<ConditionalBranchNode.ConditionalBranchMemory>  {

    protected ConditionalBranchEvaluator branchEvaluator;

    protected boolean tupleMemoryEnabled;

    private LeftTupleSinkNode previousTupleSinkNode;
    private LeftTupleSinkNode nextTupleSinkNode;

    public ConditionalBranchNode() { }

    public ConditionalBranchNode(int id,
                                 LeftTupleSource tupleSource,
                                 ConditionalBranchEvaluator branchEvaluator,
                                 BuildContext context) {
        super(id, context);
        setLeftTupleSource( tupleSource );
        this.setObjectCount(leftInput.getObjectCount()); // 'conditional branch' does not node increase the object count
        this.tupleMemoryEnabled = context.isTupleMemoryEnabled();
        this.branchEvaluator = branchEvaluator;

        initMasks(context, tupleSource);

        hashcode = calculateHashCode();
    }

    public ConditionalBranchEvaluator getBranchEvaluator() {
        return branchEvaluator;
    }

    public void doAttach( BuildContext context ) {
        super.doAttach(context);
        getLeftTupleSource().addTupleSink(this, context);
    }

    public void networkUpdated(UpdateContext updateContext) {
        getLeftTupleSource().networkUpdated(updateContext);
    }

    /**
     * Produce a debug string.
     *
     * @return The debug string.
     */
    public String toString() {
        return "[ConditionalBranchNode: cond=" + this.branchEvaluator + "]";
    }

    private int calculateHashCode() {
        return getLeftTupleSource().hashCode() ^ this.branchEvaluator.hashCode();
    }

    @Override
    public boolean equals(Object object) {
        if (this == object) {
            return true;
        }

        if ( object == null || !(object instanceof ConditionalBranchNode) || this.hashCode() != object.hashCode() ) {
            return false;
        }

        ConditionalBranchNode other = (ConditionalBranchNode)object;
        return getLeftTupleSource().getId() == other.getLeftTupleSource().getId() &&
                this.branchEvaluator.equals( other.branchEvaluator );
    }

    public ConditionalBranchMemory createMemory(final RuleBaseConfiguration config, ReteEvaluator reteEvaluator) {
        return new ConditionalBranchMemory( branchEvaluator.createContext() );
    }

    @Override
    public LeftTuple createPeer(LeftTuple original) {
        EvalNodeLeftTuple peer = new EvalNodeLeftTuple();
        peer.initPeer( (BaseLeftTuple) original, this );
        original.setPeer( peer );
        return peer;
    }

    public boolean isLeftTupleMemoryEnabled() {
        return tupleMemoryEnabled;
    }

    public void setLeftTupleMemoryEnabled(boolean tupleMemoryEnabled) {
        this.tupleMemoryEnabled = tupleMemoryEnabled;
    }

    /**
     * Returns the next node
     * @return
     *      The next TupleSinkNode
     */
    public LeftTupleSinkNode getNextLeftTupleSinkNode() {
        return this.nextTupleSinkNode;
    }

    /**
     * Sets the next node
     * @param next
     *      The next TupleSinkNode
     */
    public void setNextLeftTupleSinkNode(final LeftTupleSinkNode next) {
        this.nextTupleSinkNode = next;
    }

    /**
     * Returns the previous node
     * @return
     *      The previous TupleSinkNode
     */
    public LeftTupleSinkNode getPreviousLeftTupleSinkNode() {
        return this.previousTupleSinkNode;
    }

    /**
     * Sets the previous node
     * @param previous
     *      The previous TupleSinkNode
     */
    public void setPreviousLeftTupleSinkNode(final LeftTupleSinkNode previous) {
        this.previousTupleSinkNode = previous;
    }

    public short getType() {
        return NodeTypeEnums.ConditionalBranchNode;
    }

    public LeftTuple createLeftTuple(InternalFactHandle factHandle,
                                     boolean leftTupleMemoryEnabled) {
        return new EvalNodeLeftTuple(factHandle, this, leftTupleMemoryEnabled );
    }

    public LeftTuple createLeftTuple(final InternalFactHandle factHandle,
                                     final LeftTuple leftTuple,
                                     final Sink sink) {
        return new EvalNodeLeftTuple(factHandle,leftTuple, sink );
    }

    public LeftTuple createLeftTuple(LeftTuple leftTuple,
                                     Sink sink,
                                     PropagationContext pctx, boolean leftTupleMemoryEnabled) {
        return new EvalNodeLeftTuple(leftTuple,sink, pctx, leftTupleMemoryEnabled );
    }

    public LeftTuple createLeftTuple(LeftTuple leftTuple,
                                     RightTuple rightTuple,
                                     Sink sink) {
        return new EvalNodeLeftTuple(leftTuple, rightTuple, sink );
    }

    public LeftTuple createLeftTuple(LeftTuple leftTuple,
                                     RightTuple rightTuple,
                                     LeftTuple currentLeftChild,
                                     LeftTuple currentRightChild,
                                     Sink sink,
                                     boolean leftTupleMemoryEnabled) {
        return new EvalNodeLeftTuple(leftTuple, rightTuple, currentLeftChild, currentRightChild, sink, leftTupleMemoryEnabled );
    }

    public static class ConditionalBranchMemory extends AbstractBaseLinkedListNode<Memory>
            implements
            Externalizable,
            Memory {

        private static final long serialVersionUID = 510l;

        public Object             context;

        private SegmentMemory     segmentMemory;

        public ConditionalBranchMemory() {

        }

        public ConditionalBranchMemory(final Object context) {
            this.context = context;
        }

        public void readExternal(ObjectInput in) throws IOException,
                ClassNotFoundException {
            context = in.readObject();
        }

        public void writeExternal(ObjectOutput out) throws IOException {
            out.writeObject( context );
        }

        public short getNodeType() {
            return NodeTypeEnums.ConditionalBranchNode;
        }

        public void setSegmentMemory(SegmentMemory segmentMemory) {
            this.segmentMemory = segmentMemory;
        }

        public SegmentMemory getSegmentMemory() {
            return segmentMemory;
        }

        public void reset() { }
    }

    @Override
    public ObjectTypeNode getObjectTypeNode() {
        return getLeftTupleSource().getObjectTypeNode();
    }

    protected boolean doRemove(final RuleRemovalContext context,
                               final ReteooBuilder builder) {
        if ( !this.isInUse() ) {
            getLeftTupleSource().removeTupleSink( this );
            return true;
        } else {
            throw new RuntimeException("ConditionalBranchNode cannot be shared");
        }
    }

    @Override
    protected void initDeclaredMask(BuildContext context, LeftTupleSource leftInput) {
        // See LeftTupleSource.initDeclaredMask() should result for the ConditionalBranch to result in ALLSET:
        // at the moment if pattern is null (e.g. for eval node) we cannot calculate the mask, so we leave it to 0
        //
        // In other words, a conditional branch is analogous to an eval() call - mask ALL SET

        // To achieve the result, we highjack the call:
        super.initDeclaredMask(null, null);
    }

}


text:
//-----------------------------------------------------------------------
// <copyright file="IBlockchainParser.cs">
// Copyright © Ladislau Molnar. All rights reserved.
// </copyright>
//-----------------------------------------------------------------------

namespace BitcoinBlockchain.Parser
{
    using System;
    using System.Collections.Generic;
    using BitcoinBlockchain.Data;

    /// <summary>
    /// The interface that defines the methods necessary to parse a Bitcoin blockchain.
    /// </summary>
    public interface IBlockchainParser
    {
        /// <summary>
        /// Parses the Bitcoin blockchain and returns a <see cref="IEnumerable<Block>"/>.
        /// Each element contains information about one Bitcoin block.
        /// </summary>
        /// <returns>
        /// A <see cref="IEnumerable<Block>"/>.
        /// Each element contains information about one Bitcoin block.
        /// </returns>
        IEnumerable<Block> ParseBlockchain();

        /// <summary>
        /// Sets the value that will be used to check against the BlockId of each block.
        /// If this method is not called then the default value of 0xD9B4BEF9 will be used.
        /// </summary>
        /// <param name="blockId">The value that will be used to check against the BlockId of each block.</param>
        void SetBlockId(UInt32 blockId);
    }
}


text:
/*
 * all stuff related to the design of the navigation
 * this doesn't include the positioning of the nav-section block itself
 *************************************/

/* menu */
#nav-section ul {
   padding-left: 5px;
   margin : 5px 0px 5px 5px;
}

#nav-section a {
   color: #000;
   text-decoration: none;
}

#nav-section a:visited,
#nav-section a:hover {
   text-decoration: underline;
}

#nav-section li  {
   list-style: none;
   line-height: 1.2em;
   font-size: 0.95em;
}

#nav-section li li {
   list-style: url(images/blue-bullet.gif);
/*
   padding-left: 10px;
  background: url(images/blue-bullet.gif) no-repeat left 0.3em;
*/
}

/* titles of the first levels */
#nav-section li.pagegroup span,
#nav-section li.pagegroupselected span  {
   display: block;
   width: 100%;
   border-bottom: 1px solid #ccc;
   font-weight: bold;
   color: #66c;
   font-variant: small-caps;
}

/* lower levels are reversed */
#nav-section li.pagegroup li span,
#nav-section li.pagegroupselected li span {
   display: inline;
   width: auto;
   border: 0;
}

.menupagetitle {
    color: #66c;
    display: inline;
    font-weight: bold;
}


text:
An elegant open source, mobile-first theme for [Jekyll](https://github.com/mojombo/jekyll). It includes lightweight styles and placeholder content to get you up and running with a simple blog in no time.

![Hyde screenshot](https://f.cloud.github.com/assets/98681/1330948/de10196c-353f-11e3-86d0-8e967dd95722.png)

Open sourced under the [MIT license](LICENSE.md).

<3