text:
package org.quantintel.ql.instruments.options.nvpd

/**
 *
 * An Asian option (also known as an 'average option') is a special type of option contract. For Asian
 * options the payoff is determined by the average underlying price over some pre-set period of time.
 * This is different from the case of the usual European option and American option, where the payoff
 * of the option contract depends on the price of the underlying instrument at time of exercise;  Asian
 * options are thus one of the basic forms of exotic options.
 * - Source: Wikipedia 2014
 *
 *
 * @author Paul Bernard
 */
class AsianOption {

}

redpajama_set_name: RedPajamaGithub


text:
package gov.nih.nci.ccts.grid.studyconsumer.common;

import javax.xml.namespace.QName;

/**
 * This class is autogenerated, DO NOT EDIT
 *
 * @created by Introduce Toolkit version 1.4
 */
public interface StudyConsumerConstantsBase {
	public static final String SERVICE_NS = "http://studyconsumer.grid.ccts.nci.nih.gov/StudyConsumer";
	public static final QName RESOURCE_KEY = new QName(SERVICE_NS, "StudyConsumerKey");
	public static final QName RESOURCE_PROPERTY_SET = new QName(SERVICE_NS, "StudyConsumerResourceProperties");

}


text:
//
// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, vhudson-jaxb-ri-2.1-2
// See http://java.sun.com/xml/jaxb
// Any modifications to this file will be lost upon recompilation of the source schema.
// Generated on: 2014.06.08 at 09:21:50 PM CEST
//

package tilufwlow.webservices.accountservice;

import javax.xml.bind.annotation.XmlRegistry;

/**
 * This object contains factory methods for each
 * Java content interface and Java element interface
 * generated in the tilufwlow.webservices.accountservice package.
 *
An ObjectFactory allows you to programatically
 * construct new instances of the Java representation
 * for XML content. The Java representation of XML
 * content can consist of schema derived interfaces
 * and classes representing the binding of schema
 * type definitions, element declarations and model
 * groups.  Factory methods for each of these are
 * provided in this class.
 *
 */
@XmlRegistry
public class ObjectFactory {

    /**
     * Create a new ObjectFactory that can be used to create new instances of schema derived classes for package: tilufwlow.webservices.accountservice
     *
     */
    public ObjectFactory() {
    }

    /**
     * Create an instance of {@link AccountDetailsResponse }
     *
     */
    public AccountDetailsResponse createAccountDetailsResponse() {
        return new AccountDetailsResponse();
    }

    /**
     * Create an instance of {@link AccountDetailsRequest }
     *
     */
    public AccountDetailsRequest createAccountDetailsRequest() {
        return new AccountDetailsRequest();
    }

}


text:
<?php
# Generated by the protocol buffer compiler.  DO NOT EDIT!
# source: google/dataflow/v1beta3/streaming.proto

namespace Google\Cloud\Dataflow\V1beta3;

use Google\Protobuf\Internal\GPBType;
use Google\Protobuf\Internal\RepeatedField;
use Google\Protobuf\Internal\GPBUtil;

/**
 * Identifies the location of a custom souce.
 *
 * Generated from protobuf message google.dataflow.v1beta3.CustomSourceLocation
 */
class CustomSourceLocation extends \Google\Protobuf\Internal\Message
{
    /**
     * Whether this source is stateful.
     *
     * Generated from protobuf field bool stateful = 1;
     */
    private $stateful = false;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type bool $stateful
     *           Whether this source is stateful.
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Google\Dataflow\V1Beta3\Streaming::initOnce();
        parent::__construct($data);
    }

    /**
     * Whether this source is stateful.
     *
     * Generated from protobuf field bool stateful = 1;
     * @return bool
     */
    public function getStateful()
    {
        return $this->stateful;
    }

    /**
     * Whether this source is stateful.
     *
     * Generated from protobuf field bool stateful = 1;
     * @param bool $var
     * @return $this
     */
    public function setStateful($var)
    {
        GPBUtil::checkBool($var);
        $this->stateful = $var;

        return $this;
    }

}


text:
function marginal = marginal_nodes(engine, nodes, t, fam)
% MARGINAL_NODES Compute the marginal on the specified query nodes (bk)
%
%   marginal = marginal_nodes(engine, i, t)
% returns Pr(X(i,t) | Y(1:T)), where X(i,t) is the i'th node in the t'th slice.
% If enter_evidence used filtering instead of smoothing, this will return  Pr(X(i,t) | Y(1:t)).
%
%   marginal = marginal_nodes(engine, query, t)
% returns Pr(X(query(1),t), ... X(query(end),t) | Y(1:T)),
% where X(q,t) is the q'th node in the t'th slice. If q > ss (slice size), this is equal
% to X(q mod ss, t+1). That is, 't' specifies the time slice of the earliest node.
% 'query' cannot span more than 2 time slices.
% Example:
% Consider a DBN with 2 nodes per slice.
% Then t=2, nodes=[1 3] refers to node 1 in slice 2 and node 1 in slice 3.

if nargin < 3, t = 1; end
if nargin < 4, fam = 0; else fam = 1; end

% clpot{t} contains slice t-1 and t
% Example
% clpot #: 1    2    3
% slices:  1  1,2  2,3
% For filtering, we must take care not to take future evidence into account.
% For smoothing, clpot{1} does not exist.

bnet = bnet_from_engine(engine);
ss = length(bnet.intra);

nodes2 = nodes;
if ~engine.filter
  if t < engine.T
    slice = t+1;
  else % earliest t is T, so all nodes fit in one slice
    slice = engine.T;
    nodes2 = nodes + ss;
  end
else
  if t == 1
   slice = 1;
  else
    if all(nodes<=ss)
      slice = t;
      nodes2 = nodes + ss;
    elseif t == engine.T
      slice = t;
    else
      slice = t + 1;
    end
  end
end

if engine.filter & t==1
  c = clq_containing_nodes(engine.sub_engine1, nodes2, fam);
else
  c = clq_containing_nodes(engine.sub_engine, nodes2, fam);
end
assert(c >= 1);
bigpot = engine.clpot{c, slice};

pot = marginalize_pot(bigpot, nodes2);
marginal = pot_to_marginal(pot);

% we convert the domain to the unrolled numbering system
% so that update_ess extracts the right evidence.
marginal.domain = nodes+(t-1)*ss;


text:
Jekyll-Apple-Help is a [Jekyll] template and [Xcode] build system that makes it easy to author and build [Mac OS X Help Books](https://developer.apple.com/library/mac/documentation/Carbon/Conceptual/ProvidingUserAssitAppleHelp/user_help_intro/user_assistance_intro.html). Add Help to your Mac app, and start authoring in Markdown within minutes. The resulting Help has the same look & feel as Apple's Yosemite apps.

Try out the [Demo Site](http://habilis.net/jah/English.lproj/).

![Jekyll Apple Help Screenshot](jekyll-apple-help.png)

### Background

When recently helping develop a Mac App ([Xynk]), I wanted to make some how-to documentation available through Apple's help system. Should be some simple HTML, right? Well, as [Apple Help veterans](http://alastairs-place.net/blog/2015/01/14/apple-help-in-2015/) know, the help developer documentation is byzantine and the tools are idiosyncratic. How to simplify help for the indie developer?

Fundimentally, Mac OS X's Apple Help Books are static web sites and [Jekyll] is an excellent static site generator, so the two fit naturally. In particular, Jekyll's recently added [Collections](http://jekyllrb.com/docs/collections/) feature is perfect for wrangling help topics. Add some layouts, plugins, and build-glue and you get Jekyll-Apple-Help.

## Features

- Use Markdown to write help topics
- Xcode integration
- Automatic and flexible navigation menu
- Automatic help index generation
- Styled like Yosemite's help
- Supports Multi-lingual help

## Requirements

- [Xcode]
- [Jekyll] - both standard install and [RVM](https://rvm.io) supported

Optional: [fswatch](http://brewformulas.org/Fswatch) for auto-refresh via jekyll-server.command

## Setup

The JekyllHelp template is designed for easy installation into a typical Xcode project. By default, the template's Info.plist expects the project and app to have the same name (e.g. MyApp.xcodeproj builds MyApp.app).

In the following, substitute your app/company for "MyApp"/"com.mycompany".

### Create MyAppHelp Bundle Target

0. Select _File > New > Target..._
0. Select Bundle template from _OS X > Frameworks & Libraries_
0. Enter the settings:
    - Product Name: MyAppHelp
    - Bundle Extension: help
0. Replace Xcode-generate MyAppHelp folder with JekyllHelp (renamed to MyAppHelp)
0. Update Bundles identifier to `com.mycompany.*`
0. Add a Run-Script Build-Phase with the script:

   ```
   /usr/bin/make -C "$(dirname "$PRODUCT_SETTINGS_PATH")"
   ```

Now the MyAppHelp target should build, creating the product `MyAppHelp.help`

### Integrate Help into MyApp Target

0. Add target MyAppHelp to MyApp's target dependencies (_Build Phases > Target Dependencies_)
0. Add product MyAppHelp.help to app target (via File Inspector)
0. Add to MyApp target Info properties:
	- Help Book Identifier: `com.mycompany.$(PROJECT_NAME:rfc1034identifier).help`
	- Help Book directory name: `$(PROJECT_NAME)Help.help`

Finished. Now run your app and use the Help menu to open/search help.

## Authoring

Basic authoring only involves the following files in the bundle:

- JekyllHelp
  - book-icon.png
  - _English.lproj
    - index.md
    - topic-1.md
    - topic-2.md

### Book Icon

The Help-Book icon file `book-icon.png` is displayed on the help title page and in topic page headers. Typically it is just a copy of the app icon. It should be large (~512px) to accomidate retina displays.

### Title Page (Access Page)

🚧

### Sorting Groups and Topics
Sort topics by including a line like this in the front matter of your topic page: `order: 3`. Number each one as you would like it to appear within its group.

To order groups, open the index.md file and add your group names to the `group_order` hash in this format:
`group_order: {"Group Name": 1, "Another Group": 2}`

### Help Topics

Each help topic is a single Markdown file in a language collection folder (e.g. [`_English.lproj`](JekyllHelp/_English.lproj)). The only required Front Matter variable is a title. A 'hello world' topic:

```
---
title: Hello World
---
Welcome to JekyllHelp.
```
Help Topic Variables:

- title
- description
- keywords
- order
- robots

A more typical Front Matter example with variables for description, keywords and ordering:

```
---
title: Keyboard Shortcuts
description: Quickly accomplish many tasks using keyboard and other shortcuts.
keywords: keypress, accelerators, cheat codes
order: .INF
---
...topic content...
```
### Localization

A new language is added by creating a new langauge collection folder (e.g. `_Japanese.lproj`). Language collections must be registered in [`_config.yml`](JekyllHelp/_config.yml). Some common language are registered in the default configuration (EJD-FIGS).

JekyllHelp's [`Makefile`](JekyllHelp/Makefile) will generate a help index for every *.lproj in the help bundle.

## Apps that use Jekyll-Apple-Help

[CleanMyMac 3](http://macpaw.com/cleanmymac)

[Flinto For Mac](https://www.flinto.com/mac)

[iTubePlayer](http://www.alphasoftware.co/#!itubeplayer/c363)

[Xynk]

[Jekyll]: http://jekyllrb.com
[Xcode]: https://developer.apple.com/xcode/
[Xynk]: http://xynkapp.com/


text:
package com.example.graphictest;

import android.graphics.Canvas;
import android.util.Log;
import android.view.SurfaceHolder;

public class LeafThread extends Thread {

	private static final String TAG = LeafThread.class.getSimpleName();

	// Surface holder that can access the physical surface
	private SurfaceHolder surfaceHolder;
	// The actual view that handles inputs
	// and draws to the surface
	private CanvasTest gamePanel;

	// flag to hold game state
	private boolean running;
	public void setRunning(boolean running) {
		this.running = running;
	}

	public LeafThread(SurfaceHolder surfaceHolder, CanvasTest gamePanel) {
		super();
		this.surfaceHolder = surfaceHolder;
		this.gamePanel = gamePanel;
	}

	@Override
	public void run() {
		Canvas canvas;
		Log.d(TAG, "Starting game loop");
		while (running) {
			canvas = null;
			// try locking the canvas for exclusive pixel editing
			// in the surface
			try {
				canvas = this.surfaceHolder.lockCanvas();
				synchronized (surfaceHolder) {
					// update game state
					// render state to the screen
					// draws the canvas on the panel
					this.gamePanel.onDraw(canvas);
				}
			} finally {
				// in case of an exception the surface is not left in
				// an inconsistent state
				if (canvas != null) {
					surfaceHolder.unlockCanvasAndPost(canvas);
				}
			}	// end finally
		}
	}

}


text:
layout: example.html
title: OGC Map Tiles (Geographic)
shortdesc: Rendering map tiles from an OGC API – Tiles service.
docs: >
  The OGC API – Tiles specification describes how a service can provide map tiles.  Because the specification
  has not yet been finalized, the OGCMapTile source is not yet part of the stable API.
tags: "ogc"
experimental: true
---


text:
/* $Id: mem.h $ */
/** @file
 * IPRT - Memory Management.
 */

/*
 * Copyright (C) 2010-2015 Oracle Corporation
 *
 * This file is part of VirtualBox Open Source Edition (OSE), as
 * available from http://www.virtualbox.org. This file is free software;
 * you can redistribute it and/or modify it under the terms of the GNU
 * General Public License (GPL) as published by the Free Software
 * Foundation, in version 2 as it comes in the "COPYING" file of the
 * VirtualBox OSE distribution. VirtualBox OSE is distributed in the
 * hope that it will be useful, but WITHOUT ANY WARRANTY of any kind.
 *
 * The contents of this file may alternatively be used under the terms
 * of the Common Development and Distribution License Version 1.0
 * (CDDL) only, as it comes in the "COPYING.CDDL" file of the
 * VirtualBox OSE distribution, in which case the provisions of the
 * CDDL are applicable instead of those of the GPL.
 *
 * You may elect to license modified versions of this file under the
 * terms and conditions of either the GPL or the CDDL or both.
 */

#ifndef ___internal_mem_h
#define ___internal_mem_h

#include <iprt/cdefs.h>

RT_C_DECLS_BEGIN

/**
 * Special allocation method that does not have any IPRT dependencies.
 *
 * This is suitable for allocating memory for IPRT heaps, pools, caches, memory
 * trackers, semaphores and similar that end up in bootstrap depencency hell
 * otherwise.
 *
 * @returns Pointer to the allocated memory, NULL on failure.  Must be freed by
 *          calling rtMemBaseFree().
 * @param   cb          The number of bytes to allocate.
 */
DECLHIDDEN(void *)  rtMemBaseAlloc(size_t cb);

/**
 * Frees memory allocated by rtInitAlloc().
 *
 * @param   pv          What rtInitAlloc() returned.
 */
DECLHIDDEN(void)    rtMemBaseFree(void *pv);

RT_C_DECLS_END

#endif


text:
Reports lambdas which body is an expression, e.g. n -> n + 1

The quick fix converts lambda's expression body to a code block, like the following:

n -> {
  return n + 1;
}


text:
cask 'razer-synapse' do
  version '1.53'
  sha256 '161af2595e69462095be676850b2b0ff60c304d3604c0b96cf76f969023a9660'

  url "http://dl.razerzone.com/drivers/Synapse2/mac/Razer_Synapse_Mac_Driver_v#{version}.dmg"
  name 'Razer Synapse'
  homepage 'https://www.razerzone.com/synapse/'
  license :gratis

  depends_on macos: '>= :lion'

  pkg 'Razer Synapse.pkg'

  uninstall script:    '/Applications/Utilities/Uninstall Razer Synapse.app/Contents/MacOS/Uninstall Razer Synapse',
            pkgutil:   'com.razerzone.*',
            quit:      [
                         'com.razerzone.RzUpdater',
                         'com.razerzone.rzdeviceengine',
                       ],
            launchctl: [
                         'com.razer.rzupdater',
                         'com.razerzone.rzdeviceengine',
                       ]

  zap delete: [
                '~/Library/Preferenecs/com.razer.*',
                '~/Library/Preferenecs/com.razerzone.*',
              ]

  caveats do
    reboot
  end
end


text:
<?php

/**
 * TOP API: taobao.wlb.orderschedulerule.delete request
 *
 * @author auto create
 * @since  1.0, 2013-09-13 16:51:03
 */
class Taobao_Request_WlbOrderscheduleruleDeleteRequest {
	/**
	 * 订单调度规则ID
	 **/
	private $id;

	/**
	 * 商品userNick
	 **/
	private $userNick;

	private $apiParas = array();

	public function setId($id) {
		$this->id = $id;
		$this->apiParas["id"] = $id;
	}

	public function getId() {
		return $this->id;
	}

	public function setUserNick($userNick) {
		$this->userNick = $userNick;
		$this->apiParas["user_nick"] = $userNick;
	}

	public function getUserNick() {
		return $this->userNick;
	}

	public function getApiMethodName() {
		return "taobao.wlb.orderschedulerule.delete";
	}

	public function getApiParas() {
		return $this->apiParas;
	}

	public function check() {

		Taobao_RequestCheckUtil::checkNotNull($this->id, "id");
		Taobao_RequestCheckUtil::checkNotNull($this->userNick, "userNick");
		Taobao_RequestCheckUtil::checkMaxLength($this->userNick, 64, "userNick");
	}

	public function putOtherTextParam($key, $value) {
		$this->apiParas[$key] = $value;
		$this->$key = $value;
	}
}


text:
package net.runelite.client.plugins.motherlode;

import java.time.Duration;
import java.time.Instant;

public class MotherlodeSession
{
	private static final Duration HOUR = Duration.ofHours(1);

	private int perHour;

	private Instant lastPayDirtMined;
	private int totalMined;

	private Instant recentPayDirtMined;
	private int recentMined;

	public void incrementPayDirtMined()
	{
		Instant now = Instant.now();

		lastPayDirtMined = now;
		++totalMined;

		if (recentMined == 0)
		{
			recentPayDirtMined = now;
		}
		++recentMined;

		Duration timeSinceStart = Duration.between(recentPayDirtMined, now);
		if (!timeSinceStart.isZero())
		{
			perHour = (int) ((double) recentMined * (double) HOUR.toMillis() / (double) timeSinceStart.toMillis());
		}
	}

	public void resetRecent()
	{
		recentPayDirtMined = null;
		recentMined = 0;
	}

	public int getPerHour()
	{
		return perHour;
	}

	public Instant getLastPayDirtMined()
	{
		return lastPayDirtMined;
	}

	public int getTotalMined()
	{
		return totalMined;
	}

	public Instant getRecentPayDirtMined()
	{
		return recentPayDirtMined;
	}

	public int getRecentMined()
	{
		return recentMined;
	}
}


text:
import numpy as np
import tarfile
import os
import fnmatch
import matplotlib.pyplot as plt
from scipy.linalg import svd

def unpickle(f):
    import cPickle
    fo = open(f, 'rb')
    d = cPickle.load(fo)
    fo.close()
    return d

try:
    import urllib
    urllib.urlretrieve('http://google.com')
except AttributeError:
    import urllib.request as urllib
url = 'http://www.cs.toronto.edu/~kriz/cifar-10-python.tar.gz'
data_file = '../cifar-10-python.tar.gz'
if not os.path.exists(data_file):
    print("Downloading cifar10")
    urllib.urlretrieve(url, data_file)
    tar = tarfile.open(data_file)
    os.chdir('..')
    tar.extractall()
    tar.close()
    print("Download complete")

data_dir = '../cifar-10-batches-py/'
train_files = []
for filepath in fnmatch.filter(os.listdir(data_dir), 'data*'):
    train_files.append(os.path.join(data_dir, filepath))

name2label = {k:v for v,k in enumerate(
    unpickle(os.path.join(data_dir, 'batches.meta'))['label_names'])}
label2name = {v:k for k,v in name2label.items()}

train_files = sorted(train_files, key=lambda x: x.split("_")[-1])
train_x = []
train_y = []
rgb2gray = np.array([.299, .587, .144])[:, None]
for f in train_files:
    d = unpickle(f)
    t = d['data'].reshape(d['data'].shape[0], 3, 32 * 32)
    t = t.transpose(0, 2, 1)
    train_x.append(np.dot(t, rgb2gray).squeeze().astype('float32'))
    train_y.append(d['labels'])

train_x = np.array(train_x)
train_x = train_x.reshape(50000, 32, 32)
random_state = np.random.RandomState(1999)
image_idx = random_state.randint(0, 50000, 1000)
left_idx = random_state.randint(0, 32 - 10, 1000)
upper_idx = random_state.randint(0, 32 - 10, 1000)
# Have to iterate to avoid invalid slice
train_x = train_x[image_idx]
train_patches = []
for n, i in enumerate(train_x):
    train_patches.append(i[left_idx[n]:left_idx[n] + 10,
                           upper_idx[n]:upper_idx[n] + 10])
train_x = np.array(train_patches).reshape(len(train_patches), -1)
train_x -= train_x.mean(axis=1, keepdims=True)
train_x /= train_x.std(axis=1, keepdims=True)
U, S, V = svd(train_x)

f1, pcaxarr = plt.subplots(10, 10)
plt.suptitle("Gray patch PCA basis functions")
f2, zcaxarr = plt.subplots(10, 10)
plt.suptitle("Gray patch ZCA basis functions")
for n, b in enumerate(V):
    pcaxarr.flat[n].imshow(b.reshape((10, 10)), cmap="gray")
    pcaxarr.flat[n].axis('off')

Z = np.dot(V.T * np.sqrt(1.0 / ( S ** 2 / len(train_x) + .1)), V)
for n, b in enumerate(Z):
    zcaxarr.flat[n].imshow(b.reshape((10, 10)), cmap="gray")
    zcaxarr.flat[n].axis('off')

plt.show()


text:
package org.activiti.runtime.api.event.impl;

import org.activiti.api.runtime.event.impl.RuntimeEventImpl;
import org.activiti.api.task.model.Task;
import org.activiti.api.task.runtime.events.TaskActivatedEvent;

import static org.activiti.api.task.model.events.TaskRuntimeEvent.TaskEvents;

public class TaskActivatedImpl extends RuntimeEventImpl<Task, TaskEvents> implements TaskActivatedEvent {

    public TaskActivatedImpl() {
    }

    public TaskActivatedImpl(Task entity) {
        super(entity);
    }

    @Override
    public TaskEvents getEventType() {
        return TaskEvents.TASK_ACTIVATED;
    }
}


text:
26 Aug 2013

The resume in the resume book should target the employers that visit the program. You can create other resumes for applying to jobs that aren't associated with companies visiting the program.

- **05 Sep 2013**: Resume Draft Complete
- **12 Sep 2013**: Peer review complete
- **26 Sep 2013**: Small Group Reviews (with April) complete
- **27 Sep 2013**: Final resumes submitted to Moodle
- **27 Oct 2013**: Resumes returned with comments
- **November**: One-on-one consultation
- **28 Nov 2013**: Last day of submission

**R.E.A.D**

- **R**elevant: Use keywords and content relevant for the job
- **E**rror-free
- **A**rticulate
- **D**esigned Well

Keywords unlock interest. Consider what the audience wants:
- skills and experiences
- terminology
- tools and experience

Go to the MSA Career Placement Page. Review the job postings and descriptions.

Identify your own keyword skills. Make sure you identify job-related skills and transferable skills (soft skills: leadership, communication, teamwork, etc.).

#### Transferable Skills

| Category      | Skills |
| ------------- | ------ |
| Communication | etc... |

The overlap of the skills that a company want and the skills that you have are the relevant skills.

What is most important is to think about the job that you want in the future, and then emphasize the skills in your work history that are relevant to that job.

#### Relevant Content Categories

- Contact Information: Current mailing address, phone number, email, url (optional). Only list one address and phone number.
- Professional Summary: Synopsis using keywords, snapshot to peak interest, tells what you can do, four to ten lines. Think of this as an abstract to a journal article. Any significant achievements that back up the info in the summary can be included.
- Education and Practicum
- Work Experience
- Skills
- Other Categories

**Professional Summary Formula**

1. Describe yourself (modifiers and noun + statement of skills)
2. State your objective (optional - can be general)
3. Add your accomplishments, experiences, abilities
4. Use keywords

```
Results-oriented analyst with 5+ years project management experience.
Seeking to use strong quantitative and communication skills in a
position within the telecommunications industry.

Key accomplishments and abilities include:

Effectively presenting complex concepts to technical
and non-technical audiences.
```

Summary resources:
http://www.quintcareers.com/Quintessential_Careers_Press/Words_Hired_By/Chapter3/page50.html

#### Education and Practicum

Organize these in reverse chronological order:

- Schools with locations
- Degrees
- Major and minor
- Year
- Honors
- Practicum

#### Work Experience

- Job Title / Company
- Location
- Range of dates
- Skills
- Accomplishments

Focus on skills and accomplishments -- include duties secondarily.

#### Skills

- Show your knowledge of programs
- Include certifications

Organize by skill types

#### Other Categories

- Leadership
- Research
- Publications
- Presentations
- Awards / honors
- Affiliations
- Status
- Volunteer
- Security Clearance

Do not include high school.

Eliminate "Responsible for..."

Refer to the active verbs list at:
http://www.quintcareers.com/action_skills.html

Specifics make an impact. Use vivid words.

Quantify and focus on results and accomplishments.

Accomplishments demonstrate results

What did you:

- increase
- reduce
- improve
- create
- solve

What is the "so what" message for all of those?

Have a look at the Accomplishment Worksheet here:

http://www.quintcareers.com/accomplishments_worksheet.html

#### Designed Well

Take advantage of white space and graphic cues.

Attend to:

- Margins
- Length
- Type size
- Typeface
- Type style

### Summary Sample

You can use keywords or bullets with category headers.

Potentialyl mention the willingness to relocate/travel.

### Work Experience

Make sure that you quantify everything that you can. The number of people on teams you led, the size of projects, etc.

https://github.com/deepakgeorge/Soft_Skills


text:
const fs = require('fs');
const GENERATED_CODE_PATH = './generated';

var removeDirectory = function(path) {
  if (fs.existsSync(path)) {
    fs.readdirSync(path).forEach(function(file, index) {
      var curPath = path + "/" + file;
      if (fs.lstatSync(curPath).isDirectory()) {
        removeDirectory(curPath);
      } else {
        fs.unlinkSync(curPath);
      }
    });
    fs.rmdirSync(path);
  }
}

exports.removeDirectory = removeDirectory;
exports.GENERATED_CODE_PATH = GENERATED_CODE_PATH;


text:
     Dremora Awesome WM theme 2.0
     github.com/lcpz

--]]

local gears = require("gears")
local lain  = require("lain")
local awful = require("awful")
local wibox = require("wibox")
local dpi   = require("beautiful.xresources").apply_dpi

local os = os
local my_table = awful.util.table or gears.table -- 4.{0,1} compatibility

local theme                                     = {}
theme.dir                                       = os.getenv("HOME") .. "/.config/awesome/themes/dremora"
theme.wallpaper                                 = theme.dir .. "/wall.png"
theme.font                                      = "Terminus 10.5"
theme.taglist_font                              = "Icons 10"
theme.fg_normal                                 = "#747474"
theme.fg_focus                                  = "#DDDCFF"
theme.bg_normal                                 = "#121212"
theme.bg_focus                                  = "#121212"
theme.fg_urgent                                 = "#CC9393"
theme.bg_urgent                                 = "#2A1F1E"
theme.border_width                              = dpi(0)
theme.border_normal                             = "#121212"
theme.border_focus                              = "#292929"
theme.titlebar_bg_focus                         = "#292929"
theme.taglist_fg_focus                          = "#dddcff"
theme.taglist_bg_focus                          = "#121212"
theme.menu_height                               = dpi(16)
theme.menu_width                                = dpi(130)
theme.menu_submenu_icon                         = theme.dir .. "/icons/submenu.png"
theme.awesome_icon                              = theme.dir .."/icons/awesome.png"
theme.taglist_squares_sel                       = theme.dir .. "/icons/square_sel.png"
theme.taglist_squares_unsel                     = theme.dir .. "/icons/square_unsel.png"
theme.layout_tile                               = theme.dir .. "/icons/tile.png"
theme.layout_tileleft                           = theme.dir .. "/icons/tileleft.png"
theme.layout_tilebottom                         = theme.dir .. "/icons/tilebottom.png"
theme.layout_tiletop                            = theme.dir .. "/icons/tiletop.png"
theme.layout_fairv                              = theme.dir .. "/icons/fairv.png"
theme.layout_fairh                              = theme.dir .. "/icons/fairh.png"
theme.layout_spiral                             = theme.dir .. "/icons/spiral.png"
theme.layout_dwindle                            = theme.dir .. "/icons/dwindle.png"
theme.layout_max                                = theme.dir .. "/icons/max.png"
theme.layout_fullscreen                         = theme.dir .. "/icons/fullscreen.png"
theme.layout_magnifier                          = theme.dir .. "/icons/magnifier.png"
theme.layout_floating                           = theme.dir .. "/icons/floating.png"
theme.tasklist_plain_task_name                  = true
theme.tasklist_disable_icon                     = true
theme.useless_gap                               = dpi(10)
theme.titlebar_close_button_focus               = theme.dir .. "/icons/titlebar/close_focus.png"
theme.titlebar_close_button_normal              = theme.dir .. "/icons/titlebar/close_normal.png"
theme.titlebar_ontop_button_focus_active        = theme.dir .. "/icons/titlebar/ontop_focus_active.png"
theme.titlebar_ontop_button_normal_active       = theme.dir .. "/icons/titlebar/ontop_normal_active.png"
theme.titlebar_ontop_button_focus_inactive      = theme.dir .. "/icons/titlebar/ontop_focus_inactive.png"
theme.titlebar_ontop_button_normal_inactive     = theme.dir .. "/icons/titlebar/ontop_normal_inactive.png"
theme.titlebar_sticky_button_focus_active       = theme.dir .. "/icons/titlebar/sticky_focus_active.png"
theme.titlebar_sticky_button_normal_active      = theme.dir .. "/icons/titlebar/sticky_normal_active.png"
theme.titlebar_sticky_button_focus_inactive     = theme.dir .. "/icons/titlebar/sticky_focus_inactive.png"
theme.titlebar_sticky_button_normal_inactive    = theme.dir .. "/icons/titlebar/sticky_normal_inactive.png"
theme.titlebar_floating_button_focus_active     = theme.dir .. "/icons/titlebar/floating_focus_active.png"
theme.titlebar_floating_button_normal_active    = theme.dir .. "/icons/titlebar/floating_normal_active.png"
theme.titlebar_floating_button_focus_inactive   = theme.dir .. "/icons/titlebar/floating_focus_inactive.png"
theme.titlebar_floating_button_normal_inactive  = theme.dir .. "/icons/titlebar/floating_normal_inactive.png"
theme.titlebar_maximized_button_focus_active    = theme.dir .. "/icons/titlebar/maximized_focus_active.png"
theme.titlebar_maximized_button_normal_active   = theme.dir .. "/icons/titlebar/maximized_normal_active.png"
theme.titlebar_maximized_button_focus_inactive  = theme.dir .. "/icons/titlebar/maximized_focus_inactive.png"
theme.titlebar_maximized_button_normal_inactive = theme.dir .. "/icons/titlebar/maximized_normal_inactive.png"

awful.util.tagnames   = { "ƀ", "Ƅ", "Ɗ", "ƈ", "ƙ" }

local markup     = lain.util.markup
local separators = lain.util.separators
local white      = theme.fg_focus
local gray       = "#858585"

-- Textclock
local mytextclock = wibox.widget.textclock(markup(gray, " %a")
.. markup(white, " %d ") .. markup(gray, "%b ") ..  markup(white, "%H:%M "))
mytextclock.font = theme.font

-- Calendar
theme.cal = lain.widget.cal({
    attach_to = { mytextclock },
    notification_preset = {
        font = "Terminus 11",
        fg   = white,
        bg   = theme.bg_normal
}})

-- Mail IMAP check
--[[ commented because it needs to be set before use
theme.mail = lain.widget.imap({
    timeout  = 180,
    server   = "server",
    mail     = "mail",
    password = "keyring get mail",
    notification_preset = { fg = white }
    settings = function()
        mail  = ""
        count = ""

        if mailcount > 0 then
            mail = "Mail "
            count = mailcount .. " "
        end

        widget:set_markup(markup.font(theme.font, markup(gray, mail) .. markup(white, count)))
    end
})
--]]

-- MPD
theme.mpd = lain.widget.mpd({
    settings = function()
        mpd_notification_preset.fg = white
        artist = mpd_now.artist .. " "
        title  = mpd_now.title  .. " "

        if mpd_now.state == "pause" then
            artist = "mpd "
            title  = "paused "
        elseif mpd_now.state == "stop" then
            artist = ""
            title  = ""
        end

        widget:set_markup(markup.font(theme.font, markup(gray, artist) .. markup(white, title)))
    end
})

-- /home fs
--[[ commented because it needs Gio/Glib >= 2.54
theme.fs = lain.widget.fs({
    notification_preset = { fg = white, bg = theme.bg_normal, font = "Terminus 10.5" },
    settings  = function()
        fs_header = ""
        fs_p      = ""

        if fs_now["/home"].percentage >= 90 then
            fs_header = " Hdd "
            fs_p      = fs_now["/home"].percentage
        end

        widget:set_markup(markup.font(theme.font, markup(gray, fs_header) .. markup(white, fs_p)))
    end
})
--]]

-- Battery
local bat = lain.widget.bat({
    settings = function()
        bat_header = " Bat "
        bat_p      = bat_now.perc .. " "
        widget:set_markup(markup.font(theme.font, markup(gray, bat_header) .. markup(white, bat_p)))
    end
})

-- ALSA volume
theme.volume = lain.widget.alsa({
    --togglechannel = "IEC958,3",
    settings = function()
        header = " Vol "
        vlevel  = volume_now.level

        if volume_now.status == "off" then
            vlevel = vlevel .. "M "
        else
            vlevel = vlevel .. " "
        end

        widget:set_markup(markup.font(theme.font, markup(gray, header) .. markup(white, vlevel)))
    end
})

-- Weather
theme.weather = lain.widget.weather({
    city_id = 2643743, -- placeholder (London)
    notification_preset = { fg = white }
})

-- Separators
local first     = wibox.widget.textbox('<span font="Terminus 4"> </span>')
local arrl_pre  = separators.arrow_right("alpha", "#1A1A1A")
local arrl_post = separators.arrow_right("#1A1A1A", "alpha")

function theme.at_screen_connect(s)
    -- Quake application
    s.quake = lain.util.quake({ app = awful.util.terminal })

    -- If wallpaper is a function, call it with the screen
    local wallpaper = theme.wallpaper
    if type(wallpaper) == "function" then
        wallpaper = wallpaper(s)
    end
    gears.wallpaper.maximized(wallpaper, s, true)

    -- Tags
    awful.tag(awful.util.tagnames, s, awful.layout.layouts)

    -- Create a promptbox for each screen
    s.mypromptbox = awful.widget.prompt()
    -- Create an imagebox widget which will contains an icon indicating which layout we're using.
    -- We need one layoutbox per screen.
    s.mylayoutbox = awful.widget.layoutbox(s)
    s.mylayoutbox:buttons(my_table.join(
                           awful.button({}, 1, function () awful.layout.inc( 1) end),
                           awful.button({}, 2, function () awful.layout.set( awful.layout.layouts[1] ) end),
                           awful.button({}, 3, function () awful.layout.inc(-1) end),
                           awful.button({}, 4, function () awful.layout.inc( 1) end),
                           awful.button({}, 5, function () awful.layout.inc(-1) end)))
    -- Create a taglist widget
    s.mytaglist = awful.widget.taglist(s, awful.widget.taglist.filter.all, awful.util.taglist_buttons)

    -- Create a tasklist widget
    s.mytasklist = awful.widget.tasklist(s, awful.widget.tasklist.filter.currenttags, awful.util.tasklist_buttons)

    -- Create the wibox
    s.mywibox = awful.wibar({ position = "top", screen = s, height = dpi(18), bg = theme.bg_normal, fg = theme.fg_normal })

    -- Add widgets to the wibox
    s.mywibox:setup {
        layout = wibox.layout.align.horizontal,
        { -- Left widgets
            layout = wibox.layout.fixed.horizontal,
            first,
            s.mytaglist,
            arrl_pre,
            s.mylayoutbox,
            arrl_post,
            s.mypromptbox,
            first,
        },
        s.mytasklist, -- Middle widget
        { -- Right widgets
            layout = wibox.layout.fixed.horizontal,
            wibox.widget.systray(),
            first,
            theme.mpd.widget,
            --theme.mail.widget,
            --theme.fs.widget,
            bat.widget,
            theme.volume.widget,
            mytextclock,
        },
    }
end

return theme


text:
ACCEPTED

#### According to
Index Fungorum

#### Published in
Sydowia 12(1-6): 120 (1959)

#### Original name
Marasmius haematocephalus var. pseudotageticolor Singer

### Remarks
null


text:
$(document).on("ready", function(){

	$("#cuentas_configuracion").show();
	$("#planesdisponibles").hide();
	$("#ayuda_config").hide();
	$("#contra_config").hide();
	$("#usuarios_config").hide();
	$("#ayuda_config").hide();
	$("#btn_freshcount").click(actualizadatoscuenta);
	$("body").ready(loaddata);
	$("#btn_changepw").click(changepw);

	$("#panelcontrol_menu").attr("class","active panelcontrol_menu");
	usersaccount();

});

function despliegamenu(evt){

	 	switch(evt){
			case "cuenta":
				$("#cuentas_configuracion").show();
				$("#planesdisponibles").hide();
				$("#usuarios_config").hide();
				$("#ayuda_config").hide();
				$("#contra_config").hide();

				break;
			case "password":

				$("#cuentas_configuracion").hide();
				$("#usuarios_config").hide();
				$("#planesdisponibles").hide();
				$("#ayuda_config").hide();
				$("#contra_config").show();

				break;

			case "pagos":

				$("#cuentas_configuracion").hide();
				$("#usuarios_config").hide();
				$("#planesdisponibles").show();
				$("#ayuda_config").hide();
				$("#contra_config").hide();

				break;
			case "ayuda":
				$("#cuentas_configuracion").hide();
				$("#usuarios_config").hide();
				$("#planesdisponibles").hide();
				$("#ayuda_config").show();
				$("#contra_config").hide();

				break;

			case "usuarios":
				$("#cuentas_configuracion").hide();
				$("#usuarios_config").show();
				$("#planesdisponibles").hide();
				$("#ayuda_config").hide();
				$("#contra_config").hide();
				break;

			default:

			break;

		}

}

function loaddata(){

	url = $(".now").val()+"index.php/api/panelcontrolrest/listdataaccoun/format/json";

	$.post( url ).done(function(data){

		nombre = data[0].nombre;
		compañianombre  = data[0].compañianombre;
		mailcompañia   =  data[0].mailcompañia;
		numerocompañia  = data[0].numerocompañia;
		urlcompañia  =  data[0].urlcompañia;

		$("#nombre_cuenta").val(nombre);
		$("#company_cuenta").val(compañianombre);
		$("#email_cuenta").val(mailcompañia);
		$("#numerotelefonico_cuenta").val(numerocompañia);
		$("#urlcompañia_cuenta").val(urlcompañia);

	}).fail(function(){
		alert("error");
	});

}

function actualizadatoscuenta(){

	url = $(".now").val()+"index.php/api/panelcontrolrest/updatedataaccount/format/json";
	$.post( url  , $("#form_compani").serialize() ).done(function(data){

		if (data == 1) {

			$("#repoupdate").html("Datos registrados, reinicie sesión para ver los cambios");
			loaddata();
		}else{
			$("#repoupdate").html("Falla en el registro");
			loaddata();
		}

	}).fail(function(){
		alert("error");
	});

}

function usersaccount(){

	url = $(".now").val()+"index.php/api/panelcontrolrest/usersaccount/format/json";
	$.get(url).done(function(data){

		l ="

"+
				"
"+
					"#	"+
					"Nombre	"+
					"Correo electrónico    	"+
					"Fecha de Registro        	"+
					"Perfil	"+
					"Descripción del perfil     	"+
				"

";

			for (var i = 0; i < data.length; i++) {

				l+="
"+data[i].idusuario+"	 "+data[i].username +"	 "+data[i].correoelectronico+"	";
				l+=""+data[i].fecharegistro+"	 "+data[i].nombre+"	"+data[i].descripcion+"
";
			}
			l+="
";

		$("#table_users").html(l);

	}).fail(function(){
		alert("Error db reportar al administrador");
	});

}

function changepw(){

	oldpassword   = $("#oldpassword").val();
	newpassword =  $("#newpassword").val();
	passwordconfirm = $("#passwordconfirm").val();

	oldpasswordpost = ""+CryptoJS.SHA1(oldpassword);
	newpasswordpost  =  ""+CryptoJS.SHA1(newpassword);
	passwordconfirmpost  =  ""+CryptoJS.SHA1(passwordconfirm);

	url = $(".now").val()+"index.php/api/panelcontrolrest/validachange/format/json";

	$.post(url , {
		"oldpasswordpost" : oldpasswordpost,
		"newpasswordpost" : newpasswordpost,
		"passwordconfirmpost": passwordconfirmpost

	}).done(function(data){

		if (data == true) {

			$("#oldpassword").val("");
			$("#newpassword").val("");
			$("#passwordconfirm").val("");
			$("#reporte_change").html("Password modificada.!");

		}else{

			$("#reporte_change").html("Verifique sus datos.!");

		}

	}).fail(function(){
		alert("error");

	});

}


text:
require 'helper'
require 'faraday_middleware/response/mashify'

describe FaradayMiddleware::Mashify do
  context "during configuration" do
    it "allows for a custom Mash class to be set" do
      expect(described_class).to respond_to(:mash_class)
      expect(described_class).to respond_to(:mash_class=)
    end
  end

  context "when used" do
    before(:each) { described_class.mash_class = ::Hashie::Mash }
    let(:mashify) { described_class.new }

    it "creates a Hashie::Mash from the body" do
      env = { :body => { "name" => "Erik Michaels-Ober", "username" => "sferik" } }
      me  = mashify.on_complete(env)
      expect(me.class).to eq(Hashie::Mash)
    end

    it "handles strings" do
      env = { :body => "Most amazing string EVER" }
      me  = mashify.on_complete(env)
      expect(me).to eq("Most amazing string EVER")
    end

    it "handles arrays" do
      env = { :body => [123, 456] }
      values = mashify.on_complete(env)
      expect(values.first).to eq(123)
      expect(values.last).to eq(456)
    end

    it "handles arrays of hashes" do
      env = { :body => [{ "username" => "sferik" }, { "username" => "pengwynn" }] }
      us  = mashify.on_complete(env)
      expect(us.first.username).to eq('sferik')
      expect(us.last.username).to eq('pengwynn')
    end

    it "handles nested arrays of hashes" do
      env = { :body => [[{ "username" => "sferik" }, { "username" => "pengwynn" }]] }
      us  = mashify.on_complete(env)
      expect(us.first.first.username).to eq('sferik')
      expect(us.first.last.username).to eq('pengwynn')
    end

    it "handles mixed arrays" do
      env = { :body => [123, { "username" => "sferik" }, 456] }
      values = mashify.on_complete(env)
      expect(values.first).to eq(123)
      expect(values.last).to eq(456)
      expect(values[1].username).to eq('sferik')
    end

    it "allows for use of custom Mash subclasses at the class level" do
      class MyMash < ::Hashie::Mash; end
      described_class.mash_class = MyMash

      env = { :body => { "name" => "Erik Michaels-Ober", "username" => "sferik" } }
      me  = mashify.on_complete(env)

      expect(me.class).to eq(MyMash)
    end

    it "allows for use of custom Mash subclasses at the instance level" do
      class MyMash < ::Hashie::Mash; end
      mashify = described_class.new(nil, :mash_class => MyMash)

      env = { :body => { "name" => "Erik Michaels-Ober", "username" => "sferik" } }
      me  = mashify.on_complete(env)

      expect(me.class).to eq(MyMash)
    end
  end

  context "integration test" do
    let(:stubs) { Faraday::Adapter::Test::Stubs.new }
    let(:connection) do
      Faraday::Connection.new do |builder|
        builder.adapter :test, stubs
        builder.use described_class
      end
    end

    # although it is not good practice to pass a hash as the body, if we add ParseJson
    # to the middleware stack we end up testing two middlewares instead of one
    it "creates a Hash from the body" do
      stubs.get('/hash') {
        data = { 'name' => 'Erik Michaels-Ober', 'username' => 'sferik' }
        [200, {'content-type' => 'application/json; charset=utf-8'}, data]
      }
      me = connection.get('/hash').body
      expect(me.name).to eq('Erik Michaels-Ober')
      expect(me.username).to eq('sferik')
    end
  end
end


text:
using EdiEngine.Common.Enums;
using EdiEngine.Common.Definitions;
using EdiEngine.Standards.X12_004010.Segments;

namespace EdiEngine.Standards.X12_004010.Maps
{
	public class M_846 : MapLoop
	{
		public M_846() : base(null)
		{
			Content.AddRange(new MapBaseEntity[] {
				new BIA() { ReqDes = RequirementDesignator.Mandatory, MaxOccurs = 1 },
				new CUR() { ReqDes = RequirementDesignator.Optional, MaxOccurs = 1 },
				new DTM() { ReqDes = RequirementDesignator.Optional, MaxOccurs = 10 },
				new REF() { ReqDes = RequirementDesignator.Optional, MaxOccurs = 12 },
				new PER() { ReqDes = RequirementDesignator.Optional, MaxOccurs = 3 },
				new MEA() { ReqDes = RequirementDesignator.Optional, MaxOccurs = 20 },
				new L_N1(this) { ReqDes = RequirementDesignator.Optional, MaxOccurs = 5 },
				new L_LM(this) { ReqDes = RequirementDesignator.Optional, MaxOccurs = 10 },
				new L_LIN(this) { ReqDes = RequirementDesignator.Mandatory, MaxOccurs = 10000 },
				new CTT() { ReqDes = RequirementDesignator.Optional, MaxOccurs = 1 },
			});
		}

		//1000
		public class L_N1 : MapLoop
		{
			public L_N1(MapLoop parentLoop) : base(parentLoop)
			{
				Content.AddRange(new MapBaseEntity[] {
					new N1() { ReqDes = RequirementDesignator.Mandatory, MaxOccurs = 1 },
					new N2() { ReqDes = RequirementDesignator.Optional, MaxOccurs = 2 },
					new N3() { ReqDes = RequirementDesignator.Optional, MaxOccurs = 2 },
					new N4() { ReqDes = RequirementDesignator.Optional, MaxOccurs = 1 },
					new REF() { ReqDes = RequirementDesignator.Optional, MaxOccurs = 12 },
					new PER() { ReqDes = RequirementDesignator.Optional, MaxOccurs = 3 },
				});
			}
		}

		//2000
		public class L_LM : MapLoop
		{
			public L_LM(MapLoop parentLoop) : base(parentLoop)
			{
				Content.AddRange(new MapBaseEntity[] {
					new LM() { ReqDes = RequirementDesignator.Mandatory, MaxOccurs = 1 },
					new LQ() { ReqDes = RequirementDesignator.Optional, MaxOccurs = 100 },
				});
			}
		}

		//3000
		public class L_LIN : MapLoop
		{
			public L_LIN(MapLoop parentLoop) : base(parentLoop)
			{
				Content.AddRange(new MapBaseEntity[] {
					new LIN() { ReqDes = RequirementDesignator.Mandatory, MaxOccurs = 1 },
					new PID() { ReqDes = RequirementDesignator.Optional, MaxOccurs = 200 },
					new MEA() { ReqDes = RequirementDesignator.Optional, MaxOccurs = 40 },
					new PKG() { ReqDes = RequirementDesignator.Optional, MaxOccurs = 25 },
					new DTM() { ReqDes = RequirementDesignator.Optional, MaxOccurs = 10 },
					new CTP() { ReqDes = RequirementDesignator.Optional, MaxOccurs = 25 },
					new CUR() { ReqDes = RequirementDesignator.Optional, MaxOccurs = 1 },
					new SAC() { ReqDes = RequirementDesignator.Optional, MaxOccurs = 25 },
					new REF() { ReqDes = RequirementDesignator.Optional, MaxOccurs = 999999 },
					new PER() { ReqDes = RequirementDesignator.Optional, MaxOccurs = 3 },
					new SDQ() { ReqDes = RequirementDesignator.Optional, MaxOccurs = 500 },
					new MAN() { ReqDes = RequirementDesignator.Optional, MaxOccurs = 1 },
					new UIT() { ReqDes = RequirementDesignator.Optional, MaxOccurs = 5 },
					new CS() { ReqDes = RequirementDesignator.Optional, MaxOccurs = 1 },
					new DD() { ReqDes = RequirementDesignator.Optional, MaxOccurs = 999999 },
					new G53() { ReqDes = RequirementDesignator.Optional, MaxOccurs = 1 },
					new PCT() { ReqDes = RequirementDesignator.Optional, MaxOccurs = 999999 },
					new LDT() { ReqDes = RequirementDesignator.Optional, MaxOccurs = 12 },
					new L_LM_1(this) { ReqDes = RequirementDesignator.Optional, MaxOccurs = 10 },
					new L_SLN(this) { ReqDes = RequirementDesignator.Optional, MaxOccurs = 1000 },
					new L_QTY(this) { ReqDes = RequirementDesignator.Optional, MaxOccurs = 99 },
					new L_N1_1(this) { ReqDes = RequirementDesignator.Optional, MaxOccurs = 200 },
				});
			}
		}

		//3100
		public class L_LM_1 : MapLoop
		{
			public L_LM_1(MapLoop parentLoop) : base(parentLoop)
			{
				Content.AddRange(new MapBaseEntity[] {
					new LM() { ReqDes = RequirementDesignator.Mandatory, MaxOccurs = 1 },
					new LQ() { ReqDes = RequirementDesignator.Optional, MaxOccurs = 100 },
				});
			}
		}

		//3200
		public class L_SLN : MapLoop
		{
			public L_SLN(MapLoop parentLoop) : base(parentLoop)
			{
				Content.AddRange(new MapBaseEntity[] {
					new SLN() { ReqDes = RequirementDesignator.Mandatory, MaxOccurs = 1 },
					new PID() { ReqDes = RequirementDesignator.Optional, MaxOccurs = 200 },
					new MEA() { ReqDes = RequirementDesignator.Optional, MaxOccurs = 40 },
					new PKG() { ReqDes = RequirementDesignator.Optional, MaxOccurs = 25 },
					new L_MAN(this) { ReqDes = RequirementDesignator.Optional, MaxOccurs = 100 },
				});
			}
		}

		//3210
		public class L_MAN : MapLoop
		{
			public L_MAN(MapLoop parentLoop) : base(parentLoop)
			{
				Content.AddRange(new MapBaseEntity[] {
					new MAN() { ReqDes = RequirementDesignator.Mandatory, MaxOccurs = 1 },
					new MEA() { ReqDes = RequirementDesignator.Optional, MaxOccurs = 40 },
				});
			}
		}

		//3300
		public class L_QTY : MapLoop
		{
			public L_QTY(MapLoop parentLoop) : base(parentLoop)
			{
				Content.AddRange(new MapBaseEntity[] {
					new QTY() { ReqDes = RequirementDesignator.Mandatory, MaxOccurs = 1 },
					new UIT() { ReqDes = RequirementDesignator.Optional, MaxOccurs = 12 },
					new MEA() { ReqDes = RequirementDesignator.Optional, MaxOccurs = 25 },
					new LDT() { ReqDes = RequirementDesignator.Optional, MaxOccurs = 12 },
					new DTM() { ReqDes = RequirementDesignator.Optional, MaxOccurs = 10 },
					new L_SCH(this) { ReqDes = RequirementDesignator.Optional, MaxOccurs = 25 },
					new L_LM_2(this) { ReqDes = RequirementDesignator.Optional, MaxOccurs = 999999 },
					new LS() { ReqDes = RequirementDesignator.Optional, MaxOccurs = 1 },
					new L_REF(this) { ReqDes = RequirementDesignator.Optional, MaxOccurs = 999999 },
					new LE() { ReqDes = RequirementDesignator.Optional, MaxOccurs = 1 },
				});
			}
		}

		//3310
		public class L_SCH : MapLoop
		{
			public L_SCH(MapLoop parentLoop) : base(parentLoop)
			{
				Content.AddRange(new MapBaseEntity[] {
					new SCH() { ReqDes = RequirementDesignator.Mandatory, MaxOccurs = 1 },
					new MEA() { ReqDes = RequirementDesignator.Optional, MaxOccurs = 25 },
				});
			}
		}

		//3320
		public class L_LM_2 : MapLoop
		{
			public L_LM_2(MapLoop parentLoop) : base(parentLoop)
			{
				Content.AddRange(new MapBaseEntity[] {
					new LM() { ReqDes = RequirementDesignator.Mandatory, MaxOccurs = 1 },
					new LQ() { ReqDes = RequirementDesignator.Optional, MaxOccurs = 100 },
				});
			}
		}

		//3330
		public class L_REF : MapLoop
		{
			public L_REF(MapLoop parentLoop) : base(parentLoop)
			{
				Content.AddRange(new MapBaseEntity[] {
					new REF() { ReqDes = RequirementDesignator.Mandatory, MaxOccurs = 1 },
					new DTM() { ReqDes = RequirementDesignator.Optional, MaxOccurs = 999999 },
					new N1() { ReqDes = RequirementDesignator.Optional, MaxOccurs = 1 },
					new L_LM_3(this) { ReqDes = RequirementDesignator.Optional, MaxOccurs = 10 },
				});
			}
		}

		//3331
		public class L_LM_3 : MapLoop
		{
			public L_LM_3(MapLoop parentLoop) : base(parentLoop)
			{
				Content.AddRange(new MapBaseEntity[] {
					new LM() { ReqDes = RequirementDesignator.Mandatory, MaxOccurs = 1 },
					new LQ() { ReqDes = RequirementDesignator.Optional, MaxOccurs = 100 },
				});
			}
		}

		//3400
		public class L_N1_1 : MapLoop
		{
			public L_N1_1(MapLoop parentLoop) : base(parentLoop)
			{
				Content.AddRange(new MapBaseEntity[] {
					new N1() { ReqDes = RequirementDesignator.Mandatory, MaxOccurs = 1 },
					new N2() { ReqDes = RequirementDesignator.Optional, MaxOccurs = 2 },
					new N3() { ReqDes = RequirementDesignator.Optional, MaxOccurs = 2 },
					new N4() { ReqDes = RequirementDesignator.Optional, MaxOccurs = 1 },
					new REF() { ReqDes = RequirementDesignator.Optional, MaxOccurs = 12 },
					new PER() { ReqDes = RequirementDesignator.Optional, MaxOccurs = 3 },
				});
			}
		}

	}
 }


text:
#ifndef TALK_BASE_FAKENETWORK_H_
#define TALK_BASE_FAKENETWORK_H_

#include <string>
#include <vector>

#include "talk/base/network.h"
#include "talk/base/messagehandler.h"
#include "talk/base/socketaddress.h"
#include "talk/base/stringencode.h"
#include "talk/base/thread.h"

namespace talk_base {

// Fake network manager that allows us to manually specify the IPs to use.
class FakeNetworkManager : public NetworkManagerBase,
                           public MessageHandler {
 public:
  FakeNetworkManager()
      : thread_(Thread::Current()),
        next_index_(0),
        started_(false),
        sent_first_update_(false) {
  }

  void AddInterface(const SocketAddress& iface) {
    // ensure a unique name for the interface
    SocketAddress address("test" + talk_base::ToString(next_index_++), 0);
    address.SetResolvedIP(iface.ipaddr());
    ifaces_.push_back(address);
    DoUpdateNetworks();
  }

  void RemoveInterface(const SocketAddress& iface) {
    for (std::vector<SocketAddress>::iterator it = ifaces_.begin();
         it != ifaces_.end(); ++it) {
      if (it->EqualIPs(iface)) {
        ifaces_.erase(it);
        break;
      }
    }
    DoUpdateNetworks();
  }

  virtual void StartUpdating() {
    if (started_) {
      if (sent_first_update_)
        SignalNetworksChanged();
      return;
    }

    started_ = true;
    sent_first_update_ = false;
    thread_->Post(this);
  }

  virtual void StopUpdating() {
    started_ = false;
  }

  // MessageHandler interface.
  virtual void OnMessage(Message* msg) {
    DoUpdateNetworks();
  }

 private:
  void DoUpdateNetworks() {
    if (!started_)
      return;
    std::vector<Network*> networks;
    for (std::vector<SocketAddress>::iterator it = ifaces_.begin();
         it != ifaces_.end(); ++it) {
      networks.push_back(new Network(it->hostname(), it->hostname(),
                                     it->ipaddr()));
    }
    MergeNetworkList(networks);
    sent_first_update_ = true;
  }

  Thread* thread_;
  std::vector<SocketAddress> ifaces_;
  int next_index_;
  bool started_;
  bool sent_first_update_;
};

}  // namespace talk_base

#endif  // TALK_BASE_FAKENETWORK_H_


text:
/******************************************************************************/
#ifdef JEMALLOC_H_TYPES

/* Maximum bitmap bit count is 2^LG_BITMAP_MAXBITS. */
#define	LG_BITMAP_MAXBITS	LG_RUN_MAXREGS
#define	BITMAP_MAXBITS		(ZU(1) << LG_BITMAP_MAXBITS)

typedef struct bitmap_level_s bitmap_level_t;
typedef struct bitmap_info_s bitmap_info_t;
typedef unsigned long bitmap_t;
#define	LG_SIZEOF_BITMAP	LG_SIZEOF_LONG

/* Number of bits per group. */
#define	LG_BITMAP_GROUP_NBITS		(LG_SIZEOF_BITMAP + 3)
#define	BITMAP_GROUP_NBITS		(ZU(1) << LG_BITMAP_GROUP_NBITS)
#define	BITMAP_GROUP_NBITS_MASK		(BITMAP_GROUP_NBITS-1)

/*
 * Do some analysis on how big the bitmap is before we use a tree.  For a brute
 * force linear search, if we would have to call ffsl more than 2^3 times, use a
 * tree instead.
 */
#if LG_BITMAP_MAXBITS - LG_BITMAP_GROUP_NBITS > 3
#  define USE_TREE
#endif

/* Number of groups required to store a given number of bits. */
#define	BITMAP_BITS2GROUPS(nbits)					\
    ((nbits + BITMAP_GROUP_NBITS_MASK) >> LG_BITMAP_GROUP_NBITS)

/*
 * Number of groups required at a particular level for a given number of bits.
 */
#define	BITMAP_GROUPS_L0(nbits)						\
    BITMAP_BITS2GROUPS(nbits)
#define	BITMAP_GROUPS_L1(nbits)						\
    BITMAP_BITS2GROUPS(BITMAP_BITS2GROUPS(nbits))
#define	BITMAP_GROUPS_L2(nbits)						\
    BITMAP_BITS2GROUPS(BITMAP_BITS2GROUPS(BITMAP_BITS2GROUPS((nbits))))
#define	BITMAP_GROUPS_L3(nbits)						\
    BITMAP_BITS2GROUPS(BITMAP_BITS2GROUPS(BITMAP_BITS2GROUPS(		\
	BITMAP_BITS2GROUPS((nbits)))))

/*
 * Assuming the number of levels, number of groups required for a given number
 * of bits.
 */
#define	BITMAP_GROUPS_1_LEVEL(nbits)					\
    BITMAP_GROUPS_L0(nbits)
#define	BITMAP_GROUPS_2_LEVEL(nbits)					\
    (BITMAP_GROUPS_1_LEVEL(nbits) + BITMAP_GROUPS_L1(nbits))
#define	BITMAP_GROUPS_3_LEVEL(nbits)					\
    (BITMAP_GROUPS_2_LEVEL(nbits) + BITMAP_GROUPS_L2(nbits))
#define	BITMAP_GROUPS_4_LEVEL(nbits)					\
    (BITMAP_GROUPS_3_LEVEL(nbits) + BITMAP_GROUPS_L3(nbits))

/*
 * Maximum number of groups required to support LG_BITMAP_MAXBITS.
 */
#ifdef USE_TREE

#if LG_BITMAP_MAXBITS <= LG_BITMAP_GROUP_NBITS
#  define BITMAP_GROUPS_MAX	BITMAP_GROUPS_1_LEVEL(BITMAP_MAXBITS)
#elif LG_BITMAP_MAXBITS <= LG_BITMAP_GROUP_NBITS * 2
#  define BITMAP_GROUPS_MAX	BITMAP_GROUPS_2_LEVEL(BITMAP_MAXBITS)
#elif LG_BITMAP_MAXBITS <= LG_BITMAP_GROUP_NBITS * 3
#  define BITMAP_GROUPS_MAX	BITMAP_GROUPS_3_LEVEL(BITMAP_MAXBITS)
#elif LG_BITMAP_MAXBITS <= LG_BITMAP_GROUP_NBITS * 4
#  define BITMAP_GROUPS_MAX	BITMAP_GROUPS_4_LEVEL(BITMAP_MAXBITS)
#else
#  error "Unsupported bitmap size"
#endif

/* Maximum number of levels possible. */
#define	BITMAP_MAX_LEVELS						\
    (LG_BITMAP_MAXBITS / LG_SIZEOF_BITMAP)				\
    + !!(LG_BITMAP_MAXBITS % LG_SIZEOF_BITMAP)

#else /* USE_TREE */

#define	BITMAP_GROUPS_MAX BITMAP_BITS2GROUPS(BITMAP_MAXBITS)

#endif /* USE_TREE */

#endif /* JEMALLOC_H_TYPES */
/******************************************************************************/
#ifdef JEMALLOC_H_STRUCTS

struct bitmap_level_s {
	/* Offset of this level's groups within the array of groups. */
	size_t group_offset;
};

struct bitmap_info_s {
	/* Logical number of bits in bitmap (stored at bottom level). */
	size_t nbits;

#ifdef USE_TREE
	/* Number of levels necessary for nbits. */
	unsigned nlevels;

	/*
	 * Only the first (nlevels+1) elements are used, and levels are ordered
	 * bottom to top (e.g. the bottom level is stored in levels[0]).
	 */
	bitmap_level_t levels[BITMAP_MAX_LEVELS+1];
#else /* USE_TREE */
	/* Number of groups necessary for nbits. */
	size_t ngroups;
#endif /* USE_TREE */
};

#endif /* JEMALLOC_H_STRUCTS */
/******************************************************************************/
#ifdef JEMALLOC_H_EXTERNS

void	bitmap_info_init(bitmap_info_t *binfo, size_t nbits);
void	bitmap_init(bitmap_t *bitmap, const bitmap_info_t *binfo);
size_t	bitmap_size(const bitmap_info_t *binfo);

#endif /* JEMALLOC_H_EXTERNS */
/******************************************************************************/
#ifdef JEMALLOC_H_INLINES

#ifndef JEMALLOC_ENABLE_INLINE
bool	bitmap_full(bitmap_t *bitmap, const bitmap_info_t *binfo);
bool	bitmap_get(bitmap_t *bitmap, const bitmap_info_t *binfo, size_t bit);
void	bitmap_set(bitmap_t *bitmap, const bitmap_info_t *binfo, size_t bit);
size_t	bitmap_sfu(bitmap_t *bitmap, const bitmap_info_t *binfo);
void	bitmap_unset(bitmap_t *bitmap, const bitmap_info_t *binfo, size_t bit);
#endif

#if (defined(JEMALLOC_ENABLE_INLINE) || defined(JEMALLOC_BITMAP_C_))
JEMALLOC_INLINE bool
bitmap_full(bitmap_t *bitmap, const bitmap_info_t *binfo)
{
#ifdef USE_TREE
	size_t rgoff = binfo->levels[binfo->nlevels].group_offset - 1;
	bitmap_t rg = bitmap[rgoff];
	/* The bitmap is full iff the root group is 0. */
	return (rg == 0);
#else
	size_t i;

	for (i = 0; i < binfo->ngroups; i++) {
		if (bitmap[i] != 0)
			return (false);
	}
	return (true);
#endif
}

JEMALLOC_INLINE bool
bitmap_get(bitmap_t *bitmap, const bitmap_info_t *binfo, size_t bit)
{
	size_t goff;
	bitmap_t g;

	assert(bit < binfo->nbits);
	goff = bit >> LG_BITMAP_GROUP_NBITS;
	g = bitmap[goff];
	return (!(g & (ZU(1) << (bit & BITMAP_GROUP_NBITS_MASK))));
}

JEMALLOC_INLINE void
bitmap_set(bitmap_t *bitmap, const bitmap_info_t *binfo, size_t bit)
{
	size_t goff;
	bitmap_t *gp;
	bitmap_t g;

	assert(bit < binfo->nbits);
	assert(!bitmap_get(bitmap, binfo, bit));
	goff = bit >> LG_BITMAP_GROUP_NBITS;
	gp = &bitmap[goff];
	g = *gp;
	assert(g & (ZU(1) << (bit & BITMAP_GROUP_NBITS_MASK)));
	g ^= ZU(1) << (bit & BITMAP_GROUP_NBITS_MASK);
	*gp = g;
	assert(bitmap_get(bitmap, binfo, bit));
#ifdef USE_TREE
	/* Propagate group state transitions up the tree. */
	if (g == 0) {
		unsigned i;
		for (i = 1; i < binfo->nlevels; i++) {
			bit = goff;
			goff = bit >> LG_BITMAP_GROUP_NBITS;
			gp = &bitmap[binfo->levels[i].group_offset + goff];
			g = *gp;
			assert(g & (ZU(1) << (bit & BITMAP_GROUP_NBITS_MASK)));
			g ^= ZU(1) << (bit & BITMAP_GROUP_NBITS_MASK);
			*gp = g;
			if (g != 0)
				break;
		}
	}
#endif
}

/* sfu: set first unset. */
JEMALLOC_INLINE size_t
bitmap_sfu(bitmap_t *bitmap, const bitmap_info_t *binfo)
{
	size_t bit;
	bitmap_t g;
	unsigned i;

	assert(!bitmap_full(bitmap, binfo));

#ifdef USE_TREE
	i = binfo->nlevels - 1;
	g = bitmap[binfo->levels[i].group_offset];
	bit = ffs_lu(g) - 1;
	while (i > 0) {
		i--;
		g = bitmap[binfo->levels[i].group_offset + bit];
		bit = (bit << LG_BITMAP_GROUP_NBITS) + (ffs_lu(g) - 1);
	}
#else
	i = 0;
	g = bitmap[0];
	while ((bit = ffs_lu(g)) == 0) {
		i++;
		g = bitmap[i];
	}
	bit = (bit - 1) + (i << LG_BITMAP_GROUP_NBITS);
#endif
	bitmap_set(bitmap, binfo, bit);
	return (bit);
}

JEMALLOC_INLINE void
bitmap_unset(bitmap_t *bitmap, const bitmap_info_t *binfo, size_t bit)
{
	size_t goff;
	bitmap_t *gp;
	bitmap_t g;
	UNUSED bool propagate;

	assert(bit < binfo->nbits);
	assert(bitmap_get(bitmap, binfo, bit));
	goff = bit >> LG_BITMAP_GROUP_NBITS;
	gp = &bitmap[goff];
	g = *gp;
	propagate = (g == 0);
	assert((g & (ZU(1) << (bit & BITMAP_GROUP_NBITS_MASK))) == 0);
	g ^= ZU(1) << (bit & BITMAP_GROUP_NBITS_MASK);
	*gp = g;
	assert(!bitmap_get(bitmap, binfo, bit));
#ifdef USE_TREE
	/* Propagate group state transitions up the tree. */
	if (propagate) {
		unsigned i;
		for (i = 1; i < binfo->nlevels; i++) {
			bit = goff;
			goff = bit >> LG_BITMAP_GROUP_NBITS;
			gp = &bitmap[binfo->levels[i].group_offset + goff];
			g = *gp;
			propagate = (g == 0);
			assert((g & (ZU(1) << (bit & BITMAP_GROUP_NBITS_MASK)))
			    == 0);
			g ^= ZU(1) << (bit & BITMAP_GROUP_NBITS_MASK);
			*gp = g;
			if (!propagate)
				break;
		}
	}
#endif /* USE_TREE */
}

#endif

#endif /* JEMALLOC_H_INLINES */
/******************************************************************************/


text:
<!doctype html>
<html ⚡>
<head>
  <meta charset="utf-8">
  <title>We can render an ad</title>
  <link rel="canonical" href="doubleclick.html" >
  <meta name="viewport" content="width=device-width,minimum-scale=1,initial-scale=1">
  <style amp-boilerplate>body{-webkit-animation:-amp-start 8s steps(1,end) 0s 1 normal both;-moz-animation:-amp-start 8s steps(1,end) 0s 1 normal both;-ms-animation:-amp-start 8s steps(1,end) 0s 1 normal both;animation:-amp-start 8s steps(1,end) 0s 1 normal both}@-webkit-keyframes -amp-start{from{visibility:hidden}to{visibility:visible}}@-moz-keyframes -amp-start{from{visibility:hidden}to{visibility:visible}}@-ms-keyframes -amp-start{from{visibility:hidden}to{visibility:visible}}@-o-keyframes -amp-start{from{visibility:hidden}to{visibility:visible}}@keyframes -amp-start{from{visibility:hidden}to{visibility:visible}}</style><noscript><style amp-boilerplate>body{-webkit-animation:none;-moz-animation:none;-ms-animation:none;animation:none}</style></noscript>
  <script async src="/base/dist/amp.js"></script>
  <!-- use custom url to force same origin -->
  <meta name="amp-3p-iframe-src" content="http://localhost:9876/base/dist.3p/current/frame.max.html">
</head>
<body>
  <amp-ad width=320 height=50
      type="doubleclick"
      data-slot="/4119129/mobile_ad_banner"
      json='{"targeting":{"sport":["rugby","cricket"]},"categoryExclusion":"health","tagForChildDirectedTreatment":false}'
      >
  </amp-ad>
</body>
</html>


text:
require_relative "app_loader"

# If we are inside a Rails application this method performs an exec and thus
# the rest of this script is not run.
Rails::AppLoader.exec_app

require_relative "ruby_version_check"
Signal.trap("INT") { puts; exit(1) }

require_relative "command"

if ARGV.first == "plugin"
  ARGV.shift
  Rails::Command.invoke :plugin, ARGV
else
  Rails::Command.invoke :application, ARGV
end


text:
from django.db import models
from jsonfield import JSONField

class MockupConfig(models.Model):
    HTTP_METHOD = (
        ('GET', 'GET'),
        ('POST', 'POST'),
        ('PUT', 'PUT'),
        ('PATH', 'PATH'),
        ('DELETE', 'DELET'),
    )

    name = models.CharField(max_length=1024, blank=False, null=False, verbose_name=u"nombre")
    url = models.CharField(max_length=1024, verbose_name=u"url", blank=False, null=False)
    method = models.CharField(max_length=1024, choices=HTTP_METHOD, null=False, blank=False, verbose_name=u"metodo http")
    url_param = JSONField(null=True, blank=True, verbose_name=u"parámetros por url")
    get_param = JSONField(null=True, blank=True, verbose_name=u"parámetros get")
    post_body_param = JSONField(null=True, blank=True, verbose_name=u"parámetros post")
    content = JSONField(null=True, blank=True, verbose_name=u"contenido")

    def __str__(self):
        return self.name


text:
Une fois votre galerie créée vous pouvez configurer pour vos visiteur

L'affichage par défaut tel que désiré dans  menu Administation » Configuration » Options onglet Paramètres invité

Le thème par défaut dans Administation » Configuration » Thèmes

La langue par défaut dans Administation » Configuration » Langues

 Par défaut, chaque nouvel utilisateur héritera de ces propriétés dès son enregistrement.

Pour toute question, la communauté francophone Piwigo est à l'écoute sur le forum.


text:
package org.codehaus.httpcache4j;

/**
 * Represents a Username and password challenge.
 *
 * @author Erlend Hamnaberg
 * @author last modified by $Author: $
 * @version $Id: $
 */
public class UsernamePasswordChallenge implements Challenge {
    private String identifier;
    private char[] password;

    public UsernamePasswordChallenge(String identifier, char[] password) {
        this.identifier = identifier;
        this.password = password != null ? password.clone() : null;
    }

    public UsernamePasswordChallenge(String identifier, String password) {
        this.identifier = identifier;
        this.password = password != null ? password.toCharArray() : null;
    }

    public String getIdentifier() {
        return identifier;
    }

    public char[] getPassword() {
        return password != null ? password.clone() : null;
    }

    @Override
    public String toString() {
        return String.format("Authenticating as %s ", identifier);
    }
}


text:
module Authentication
  # Signs in as the given +user+ using #sign_in!, then clicks the My Account
  # link.  Expects all of the user's addresses to be listed.
  def visit_account(user)
    sign_in! user
    click_link Spree.t(:my_account)
    expect_frontend_addresses(user)
  end

  # Visits the Spree root path, clicks the Login link, and signs in as the
  # given +user+.
  def sign_in!(user)
    visit spree.root_path
    click_link Spree.t(:login)
    fill_in Spree.t(:email), :with => user.email
    fill_in Spree.t(:password), :with => "secret"
    click_button Spree.t(:login)
  end

  def sign_in_to_cart!(user)
    visit spree.login_path
    fill_in "Email", :with => user.email
    fill_in "Password", :with => "secret"
    click_button "Login"
    restart_checkout
  end

  def restart_checkout
    visit spree.cart_path
    click_button 'Checkout'
  end
end

RSpec.configure do |c|
  c.include Authentication, :type => :feature
end


text:
GamingLayer::GamingLayer()
{
    _player = nullptr;
}

GamingLayer::~GamingLayer()
{

}

bool GamingLayer::init()
{
    if ( !Layer::init() )
    {
        return false;
    }
    prepare();
    return true;
}

void GamingLayer::prepare()
{
    GameLogic::getInstance()->gLayer = this;

// preset layer status
    this->setContentSize(Director::getInstance()->getVisibleSize());
    this->setAnchorPoint(Point::ZERO);
    m_WinSize = this->getContentSize();
    GameLogic::getInstance()->winSize = m_WinSize;
    GameLogic::setGameRect(Rect(0, 0, m_WinSize.width, m_WinSize.height));

    // touch listener
    auto listener = EventListenerTouchOneByOne::create();
    listener->onTouchBegan = CC_CALLBACK_2(GamingLayer::onTouchBegan, this);
    listener->onTouchMoved = CC_CALLBACK_2(GamingLayer::onTouchMoved, this);
    listener->onTouchEnded = CC_CALLBACK_2(GamingLayer::onTouchEnded, this);

    // set priority
    _eventDispatcher->addEventListenerWithSceneGraphPriority(listener, this);

// let the game go
    this->scheduleUpdate();

    // to show the time flow
    auto lbTime = Label::createWithSystemFont("test", "Helvetica-Bold", 22);
    this->addChild(lbTime);
    lbTime->setTag(9);
    lbTime->setPosition(m_WinSize.width - 60, m_WinSize.height - 30);

    // background
    auto sprBg1 = Sprite::create("texture/background.png");
    sprBg1->setAnchorPoint(Point::ZERO);
    sprBg1->setPosition(Point::ZERO);
    sprBg1->setScale(2);
    sprBg1->setTag(7);
    this->addChild(sprBg1);

    auto sprBg2 = Sprite::create("texture/background.png");
    sprBg2->setAnchorPoint(Point::ZERO);
    sprBg2->setPosition(0, m_WinSize.height);
    sprBg2->setScale(2);
    sprBg2->setTag(8);
    this->addChild(sprBg2);

    GameLogic::getInstance()->resetPlay();
}

// show the palyer
void GamingLayer::setPlayerType(PlayerType type)
{
    if (type == PLAYER_DAOSHI) {
        _player = Player::create();
        this->addChild(_player, ZORDER_PLAYER);
        _player->setPlayerInfo(PLAYER_DAOSHI, 10);
        _player->setPosition(m_WinSize.width / 2, - _player->getContentSize().height / 2);
        _player->runAction(Sequence::create(EaseExponentialOut::create(MoveTo::create(0.6f, Vec2(m_WinSize.width / 2, m_WinSize.height / 5))), NULL));
        _player->setContainerSize(this->getContentSize());

        GameLogic::getInstance()->gPlayer = _player;
    }
}

void GamingLayer::showLogo(int stageID)
{
    if (stageID == 1) {
        Sprite* sprLogo = Sprite::create("texture/stage1/logo_stage1.png");
        this->addChild(sprLogo, 999, 999);
        Size contentSize = this->getContentSize();
        sprLogo->setPosition(contentSize.width/2, contentSize.height/2);

//        auto fileUtiles = FileUtils::getInstance();
//        auto fragmentFullPath = fileUtiles->fullPathForFilename("example_Blur.fsh");
//        auto fragSource = fileUtiles->getStringFromFile(fragmentFullPath);
//        auto glprogram = GLProgram::createWithByteArrays(ccPositionTextureColor_noMVP_vert, fragSource.c_str());
//        GLProgramState* _glprogramstate = GLProgramState::getOrCreateWithGLProgram(glprogram);
//        _glprogramstate->retain();
//        _glprogramstate->setUniformVec2("resolution", sprLogo->getTexture()->getContentSizeInPixels());
//        _glprogramstate->setUniformFloat("blurRadius", 5.0f);
//        _glprogramstate->setUniformFloat("sampleNum", 5.0f);
//        sprLogo->setGLProgram(glprogram);

        sprLogo->setOpacity(0);
        sprLogo->runAction(Sequence::create(FadeIn::create(1),
                                            DelayTime::create(1),
                                            FadeOut::create(1),
                                            CallFunc::create([=](){sprLogo->removeFromParent();}),
                                            NULL));
    }
}

void GamingLayer::update(float dt)
{
    // show the label of time
    auto lbtime = (Label*)getChildByTag(9);
    lbtime->setString(StringUtils::format("%.2f", GameLogic::getInstance()->gamePlayTime));

    // background move
    Sprite* bg1 = (Sprite*)getChildByTag(7);
    Sprite* bg2 = (Sprite*)getChildByTag(8);
    GameLogic::getInstance()->autoMove(bg1, bg2, -100*dt);

    // create enemy by time
    GameLogic::getInstance()->createEnemy(dt);
}

bool GamingLayer::onTouchBegan(Touch* touch, Event  *event)
{
    if (!_player) return false;
    _player->shoot(true);
    return true;
}

void GamingLayer::onTouchMoved(cocos2d::Touch *touch, cocos2d::Event *event)
{
    if (!_player) return;

    _player->move(touch);
}

void GamingLayer::onTouchEnded(Touch* touch, Event  *event)
{
    if (!_player) return;
    _player->shoot(false);
    _player->idle();
}


text:
package sorcer.core.monitoring;

import net.jini.core.event.EventRegistration;
import net.jini.core.event.RemoteEvent;
import net.jini.core.event.RemoteEventListener;
import net.jini.core.event.UnknownEventException;
import net.jini.core.lease.UnknownLeaseException;
import net.jini.export.Exporter;
import net.jini.jeri.BasicILFactory;
import net.jini.jeri.BasicJeriExporter;
import net.jini.jeri.tcp.TcpServerEndpoint;
import org.junit.BeforeClass;
import org.junit.Test;
import org.rioproject.cybernode.StaticCybernode;
import org.rioproject.deploy.ServiceBeanInstantiationException;

import java.rmi.RemoteException;
import java.rmi.server.ExportException;
import java.util.ArrayList;
import java.util.LinkedList;
import java.util.List;
import java.util.Map;
import java.util.concurrent.TimeUnit;

import static org.junit.Assert.assertNotNull;
import static org.junit.Assert.assertTrue;

/**
 * @author Dennis Reedy
 */
public class MonitorImplTest {
    private static MonitorImpl monitor;

    @BeforeClass
    public static void create() throws ServiceBeanInstantiationException {
        StaticCybernode cybernode = new StaticCybernode();
        monitor = (MonitorImpl) cybernode.activate(MonitorImpl.class.getName());
    }

    @Test
    public void testInjection() throws ServiceBeanInstantiationException {
        assertNotNull(monitor);
        assertNotNull(monitor.getProxy());
        assertNotNull(monitor.getConfig());
    }

    @Test
    public void testRegistration() throws MonitorException, ExportException {
        MonitorRegistration registration = monitor.register("spacely-sprockets",
                                                            System.getProperty("user.name"),
                                                            TimeUnit.MINUTES.toMillis(5));
        assertNotNull(registration.getMonitor());
        assertNotNull(registration);
        MonitorListener monitorListener = new MonitorListener();
        EventRegistration eventRegistration = monitor.register(new MonitorEventFilter(System.getProperty("user.name")),
                                                               monitorListener.getRemoteEventListener(),
                                                               TimeUnit.MINUTES.toMillis(5));
        assertNotNull(eventRegistration);
        monitor.update(registration, Monitor.Status.SUBMITTED, null);
        monitor.update(registration, Monitor.Status.COMPLETED, null);

        registration = monitor.register("spacely-sprockets",
                                        System.getProperty("user.name"),
                                        TimeUnit.MINUTES.toMillis(5));
        monitor.update(registration, Monitor.Status.SUBMITTED, null);
        monitor.update(registration, Monitor.Status.FAILED, null);
        assertTrue(monitorListener.states.size()==4);

        Map<String, List<String>> info = monitor.getRegisteredIdentifiers();
        for(Map.Entry<String, List<String>> entry : info.entrySet()) {
            System.out.println(entry.getKey());
            for(String i : entry.getValue())
                System.out.println("\t"+i);
        }
    }

    @Test(expected=MonitorException.class)
    public void testRegistrationSendFailure() throws MonitorException, RemoteException, UnknownLeaseException {
        MonitorRegistration registration = monitor.register("spacely-sprockets",
                                                            System.getProperty("user.name"),
                                                            TimeUnit.MINUTES.toMillis(5));
        assertNotNull(registration.getMonitor());
        assertNotNull(registration);
        MonitorListener monitorListener = new MonitorListener();
        EventRegistration eventRegistration = monitor.register(new MonitorEventFilter(),
                                                               monitorListener.getRemoteEventListener(),
                                                               TimeUnit.MINUTES.toMillis(5));
        assertNotNull(eventRegistration);
        monitor.update(registration, Monitor.Status.SUBMITTED, null);
        monitor.update(registration, Monitor.Status.COMPLETED, null);
        registration.getLease().cancel();
        monitor.update(registration, Monitor.Status.SUBMITTED, null);
    }

    @Test
    public void testRegistrationWithNames() throws MonitorException, ExportException {
        MonitorRegistration registration = monitor.register("spacely-sprockets",
                                                            System.getProperty("user.name"),
                                                            TimeUnit.MINUTES.toMillis(5));
        assertNotNull(registration.getMonitor());
        assertNotNull(registration);
        MonitorListener monitorListener = new MonitorListener();
        List<String> names = new ArrayList<>();
        names.add(registration.getIdentifier());
        EventRegistration eventRegistration = monitor.register(new MonitorEventFilter(null, names),
                                                               monitorListener.getRemoteEventListener(),
                                                               TimeUnit.MINUTES.toMillis(5));
        assertNotNull(eventRegistration);
        monitor.update(registration, Monitor.Status.SUBMITTED, null);
        monitor.update(registration, Monitor.Status.COMPLETED, null);

        monitor.update(registration, Monitor.Status.SUBMITTED, null);
        monitor.update(registration, Monitor.Status.FAILED, null);
        assertTrue(monitorListener.states.size()==4);
    }

    @Test
    public void testRegistrationWithBadNames() throws MonitorException, ExportException {
        MonitorRegistration registration = monitor.register("spacely-sprockets",
                                                            System.getProperty("user.name"),
                                                            TimeUnit.MINUTES.toMillis(5));
        assertNotNull(registration.getMonitor());
        assertNotNull(registration);
        MonitorListener monitorListener = new MonitorListener();
        List<String> names = new ArrayList<>();
        names.add(registration.getIdentifier()+"foo");
        EventRegistration eventRegistration = monitor.register(new MonitorEventFilter(System.getProperty("user.name"), names),
                                                               monitorListener.getRemoteEventListener(),
                                                               TimeUnit.MINUTES.toMillis(5));
        assertNotNull(eventRegistration);
        monitor.update(registration, Monitor.Status.SUBMITTED, null);
        monitor.update(registration, Monitor.Status.COMPLETED, null);

        monitor.update(registration, Monitor.Status.SUBMITTED, null);
        monitor.update(registration, Monitor.Status.FAILED, null);
        assertTrue(monitorListener.states.size()==0);
    }

    class MonitorListener implements RemoteEventListener {
        Exporter exporter;
        RemoteEventListener remoteEventListener;
        int notified = 0;
        List<String> states = new LinkedList<>();

        RemoteEventListener getRemoteEventListener() throws ExportException {
            if (remoteEventListener == null) {
                if (exporter == null)
                    exporter = new BasicJeriExporter(TcpServerEndpoint.getInstance(0),
                                                     new BasicILFactory());

                remoteEventListener = (RemoteEventListener) exporter.export(this);
            }
            return remoteEventListener;
        }

        void unexport() {
            if (exporter != null) {
                exporter.unexport(true);
            }
        }

        @Override public void notify(RemoteEvent remoteEvent) throws UnknownEventException, RemoteException {
            MonitorEvent monitorEvent = (MonitorEvent) remoteEvent;
            System.out.println(monitorEvent.getIdentifier() +" " +monitorEvent.getStatus().name());
            notified++;
            states.add(monitorEvent.getStatus().name());
        }
    }
}


text:
'use strict';

exports.__esModule = true;
exports.default = commentParser;
function commentParser(input) {
    var tokens = [];
    var length = input.length;
    var pos = 0;
    var next = undefined;

    while (pos < length) {
        next = input.indexOf('/*', pos);

        if (~next) {
            tokens.push({
                type: 'other',
                value: input.slice(pos, next)
            });
            pos = next;

            next = input.indexOf('*/', pos + 2);
            if (! ~next) {
                throw new Error('postcss-discard-comments: Unclosed */');
            }
            tokens.push({
                type: 'comment',
                value: input.slice(pos + 2, next)
            });
            pos = next + 2;
        } else {
            tokens.push({
                type: 'other',
                value: input.slice(pos)
            });
            pos = length;
        }
    }

    return tokens;
};
module.exports = exports['default'];


text:
<?php

namespace Oro\Bundle\SearchBundle\Tests\Unit\Datagrid\Filter;

use Doctrine\Common\Collections\Expr\Comparison as BaseComparison;
use Oro\Bundle\FilterBundle\Datasource\FilterDatasourceAdapterInterface;
use Oro\Bundle\FilterBundle\Filter\FilterUtility;
use Oro\Bundle\FilterBundle\Form\Type\Filter\NumberFilterType;
use Oro\Bundle\SearchBundle\Datagrid\Filter\Adapter\SearchFilterDatasourceAdapter;
use Oro\Bundle\SearchBundle\Datagrid\Filter\SearchNumberFilter;
use Oro\Bundle\SearchBundle\Query\Criteria\Comparison;
use Symfony\Component\Form\FormFactoryInterface;

class SearchNumberFilterTest extends \PHPUnit_Framework_TestCase
{
    /**
     * @var SearchNumberFilter
     */
    private $filter;

    /**
     * {@inheritdoc}
     */
    protected function setUp()
    {
        /* @var $formFactory FormFactoryInterface|\PHPUnit_Framework_MockObject_MockObject */
        $formFactory = $this->createMock(FormFactoryInterface::class);
        /* @var $filterUtility FilterUtility|\PHPUnit_Framework_MockObject_MockObject */
        $filterUtility = $this->createMock(FilterUtility::class);

        $this->filter = new SearchNumberFilter($formFactory, $filterUtility);
    }

    /**
     * @expectedException \RuntimeException
     * @expectedExceptionMessage Invalid filter datasource adapter provided
     */
    public function testThrowsExceptionForWrongFilterDatasourceAdapter()
    {
        $ds = $this->createMock(FilterDatasourceAdapterInterface::class);
        $this->filter->apply($ds, ['type' => NumberFilterType::TYPE_GREATER_EQUAL, 'value' => 123]);
    }

    /**
     * @param string $filterType
     * @param string $comparisonOperator
     * @dataProvider applyDataProvider
     */
    public function testApply($filterType, $comparisonOperator)
    {
        $fieldName = 'field';
        $fieldValue = 100;

        $ds = $this->getMockBuilder(SearchFilterDatasourceAdapter::class)
            ->disableOriginalConstructor()
            ->getMock();

        $restriction = new BaseComparison("decimal.".$fieldName, $comparisonOperator, $fieldValue);
        $ds->expects($this->once())
            ->method('addRestriction')
            ->with($restriction, FilterUtility::CONDITION_AND);

        $this->filter->init('test', [FilterUtility::DATA_NAME_KEY => $fieldName]);
        $this->assertTrue($this->filter->apply($ds, ['type' => $filterType, 'value' => $fieldValue]));
    }

    /**
     * @return array
     */
    public function applyDataProvider()
    {
        return [
            '>=' => [
                'filterType' => NumberFilterType::TYPE_GREATER_EQUAL,
                'comparisonOperator' => Comparison::GTE,
            ],
            '>' => [
                'filterType' => NumberFilterType::TYPE_GREATER_THAN,
                'comparisonOperator' => Comparison::GT,
            ],
            '=' => [
                'filterType' => NumberFilterType::TYPE_EQUAL,
                'comparisonOperator' => Comparison::EQ,
            ],
            '!=' => [
                'filterType' => NumberFilterType::TYPE_NOT_EQUAL,
                'comparisonOperator' => Comparison::NEQ,
            ],
            '<=' => [
                'filterType' => NumberFilterType::TYPE_LESS_EQUAL,
                'comparisonOperator' => Comparison::LTE,
            ],
            '<' => [
                'filterType' => NumberFilterType::TYPE_LESS_THAN,
                'comparisonOperator' => Comparison::LT,
            ],
        ];
    }

    public function testApplyEmpty()
    {
        $fieldName = 'field';

        $ds = $this->getMockBuilder(SearchFilterDatasourceAdapter::class)
            ->disableOriginalConstructor()
            ->getMock();

        $restriction = new Comparison("decimal.".$fieldName, Comparison::NOT_EXISTS, null);
        $ds->expects($this->once())
            ->method('addRestriction')
            ->with($restriction, FilterUtility::CONDITION_AND);

        $this->filter->init('test', [FilterUtility::DATA_NAME_KEY => $fieldName]);
        $this->assertTrue($this->filter->apply($ds, ['type' => FilterUtility::TYPE_EMPTY, 'value' => null]));
    }

    public function testApplyNotEmpty()
    {
        $fieldName = 'field';

        $ds = $this->getMockBuilder(SearchFilterDatasourceAdapter::class)
            ->disableOriginalConstructor()
            ->getMock();

        $restriction = new Comparison("decimal.".$fieldName, Comparison::EXISTS, null);
        $ds->expects($this->once())
            ->method('addRestriction')
            ->with($restriction, FilterUtility::CONDITION_AND);

        $this->filter->init('test', [FilterUtility::DATA_NAME_KEY => $fieldName]);
        $this->assertTrue($this->filter->apply($ds, ['type' => FilterUtility::TYPE_NOT_EMPTY, 'value' => null]));
    }
}


text:
/*
 * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except
 * in compliance with the License. You may obtain a copy of the License at
 *
 * http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software distributed under the License
 * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express
 * or implied. See the License for the specific language governing permissions and limitations under
 * the License.
 */
/*
 * This code was generated by https://github.com/googleapis/google-api-java-client-services/
 * Modify at your own risk.
 */

package com.google.api.services.games.model;

/**
 * An achievement increment response
 *
 *
 This is the Java data model class that specifies how to parse/serialize into the JSON that is
 * transmitted over HTTP when working with the Google Play Game Services. For a detailed explanation
 * see:
 * https://developers.google.com/api-client-library/java/google-http-java-client/json
 *

 *
 * @author Google, Inc.
 */
@SuppressWarnings("javadoc")
public final class AchievementIncrementResponse extends com.google.api.client.json.GenericJson {

  /**
   * The current steps recorded for this incremental achievement.
   * The value may be {@code null}.
   */
  @com.google.api.client.util.Key
  private java.lang.Integer currentSteps;

  /**
   * Uniquely identifies the type of this resource. Value is always the fixed string
   * `games#achievementIncrementResponse`.
   * The value may be {@code null}.
   */
  @com.google.api.client.util.Key
  private java.lang.String kind;

  /**
   * Whether the current steps for the achievement has reached the number of steps required to
   * unlock.
   * The value may be {@code null}.
   */
  @com.google.api.client.util.Key
  private java.lang.Boolean newlyUnlocked;

  /**
   * The current steps recorded for this incremental achievement.
   * @return value or {@code null} for none
   */
  public java.lang.Integer getCurrentSteps() {
    return currentSteps;
  }

  /**
   * The current steps recorded for this incremental achievement.
   * @param currentSteps currentSteps or {@code null} for none
   */
  public AchievementIncrementResponse setCurrentSteps(java.lang.Integer currentSteps) {
    this.currentSteps = currentSteps;
    return this;
  }

  /**
   * Uniquely identifies the type of this resource. Value is always the fixed string
   * `games#achievementIncrementResponse`.
   * @return value or {@code null} for none
   */
  public java.lang.String getKind() {
    return kind;
  }

  /**
   * Uniquely identifies the type of this resource. Value is always the fixed string
   * `games#achievementIncrementResponse`.
   * @param kind kind or {@code null} for none
   */
  public AchievementIncrementResponse setKind(java.lang.String kind) {
    this.kind = kind;
    return this;
  }

  /**
   * Whether the current steps for the achievement has reached the number of steps required to
   * unlock.
   * @return value or {@code null} for none
   */
  public java.lang.Boolean getNewlyUnlocked() {
    return newlyUnlocked;
  }

  /**
   * Whether the current steps for the achievement has reached the number of steps required to
   * unlock.
   * @param newlyUnlocked newlyUnlocked or {@code null} for none
   */
  public AchievementIncrementResponse setNewlyUnlocked(java.lang.Boolean newlyUnlocked) {
    this.newlyUnlocked = newlyUnlocked;
    return this;
  }

  @Override
  public AchievementIncrementResponse set(String fieldName, Object value) {
    return (AchievementIncrementResponse) super.set(fieldName, value);
  }

  @Override
  public AchievementIncrementResponse clone() {
    return (AchievementIncrementResponse) super.clone();
  }

}


text:
var Reminder = {};

Reminder.remind = function(params) {
    if (!params.app || typeof(params.app) !== 'string') {
        console.log('app is a required parameter, and must be a string!');
    } else if (!localStorage.getItem('reminder_sent')) {
        Pebble.getTimelineToken(function(watchtoken) {
            var request = new XMLHttpRequest();
            request.open('POST', 'https://fletchto99.com/other/pebble/reminder/web/api.php', true);
            request.setRequestHeader("Content-Type", "application/json;charset=UTF-8");
            request.responseType = 'json';
            request.onload = function() {
                if (request.response.status == 0) {
                    console.log('Heart reminder sent!');
                    localStorage.setItem('reminder_sent', true);
                } else if(request.response.status == 1) {
                    console.log('Error setting heart reminder.')
                }
            };
            request.send(JSON.stringify({
                app:params.app,
                usertoken:watchtoken,
                message: params.message || '',
                time: params.time || ''
            }));
        }, function() {
            console.log('Error retrieving timeline token. Ensure timeline is enabled in your settings!')
        });
    } else {
        console.log('Reminder already sent!')
    }
};


text:
package japgolly.univeq

import java.{lang => jl}
import java.{net => jn}
import java.{time => jt}
import java.{util => ju}

// TODO Replace with an erased class once Scala 3 supports it

/**
 * Universal equality.
 */
trait UnivEq[A]:
  inline final def univEq(a: A, b: A): Boolean =
    a.==*(b)(using this)

object UnivEq extends PlatformUnivEq, ScalaUnivEq:

  private val singleton: UnivEq[Any] =
    new UnivEq[Any]{}

  def force[A]: UnivEq[A] =
    singleton.asInstanceOf[UnivEq[A]]

  inline def apply[A](using inline proof: UnivEq[A]): UnivEq[A] =
    proof

  // TODO Rename all UnivEq.{[uU]nivEqXxx => xxx} givens

  // Primitives & core
  inline implicit def univEqNothing: UnivEq[Nothing] = force
  inline implicit def UnivEqBoolean: UnivEq[Boolean] = force
  inline implicit def UnivEqByte   : UnivEq[Byte   ] = force
  inline implicit def UnivEqChar   : UnivEq[Char   ] = force
  inline implicit def UnivEqDouble : UnivEq[Double ] = force
  inline implicit def UnivEqFloat  : UnivEq[Float  ] = force
  inline implicit def UnivEqInt    : UnivEq[Int    ] = force
  inline implicit def UnivEqLong   : UnivEq[Long   ] = force
  inline implicit def UnivEqShort  : UnivEq[Short  ] = force
  inline implicit def UnivEqUnit   : UnivEq[Unit   ] = force
  inline implicit def univEqString : UnivEq[String ] = force

  // Tuples
  inline implicit def univEqEmptyTuple                               : UnivEq[EmptyTuple] = force
  inline implicit def univEqTuple     [H: UnivEq, T <: Tuple: UnivEq]: UnivEq[H *: T    ] = force

  // Java
  inline implicit def univEqClass[A]              : UnivEq[Class[A]      ] = force
  inline implicit def univEqClass_                : UnivEq[Class[_]      ] = force
  inline implicit def univEqJDouble               : UnivEq[jl.Double     ] = force
  inline implicit def univEqJFloat                : UnivEq[jl.Float      ] = force
  inline implicit def univEqJInteger              : UnivEq[jl.Integer    ] = force
  inline implicit def univEqJLong                 : UnivEq[jl.Long       ] = force
  inline implicit def univEqJBoolean              : UnivEq[jl.Boolean    ] = force
  inline implicit def univEqJByte                 : UnivEq[jl.Byte       ] = force
  inline implicit def univEqJShort                : UnivEq[jl.Short      ] = force
  inline implicit def univEqJEnum[A <: jl.Enum[A]]: UnivEq[A             ] = force
  inline implicit def univEqUUID                  : UnivEq[ju.UUID       ] = force
  inline implicit def univEqInetAddress           : UnivEq[jn.InetAddress] = force

  // java.time
  inline implicit def univEqJavaTimeDuration      : UnivEq[jt.Duration      ] = force
  inline implicit def univEqJavaTimeInstant       : UnivEq[jt.Instant       ] = force
  inline implicit def univEqJavaTimeLocalDate     : UnivEq[jt.LocalDate     ] = force
  inline implicit def univEqJavaTimeLocalDateTime : UnivEq[jt.LocalDateTime ] = force
  inline implicit def univEqJavaTimeLocalTime     : UnivEq[jt.LocalTime     ] = force
  inline implicit def univEqJavaTimeMonthDay      : UnivEq[jt.MonthDay      ] = force
  inline implicit def univEqJavaTimeOffsetDateTime: UnivEq[jt.OffsetDateTime] = force
  inline implicit def univEqJavaTimeOffsetTime    : UnivEq[jt.OffsetTime    ] = force
  inline implicit def univEqJavaTimePeriod        : UnivEq[jt.Period        ] = force
  inline implicit def univEqJavaTimeYear          : UnivEq[jt.Year          ] = force
  inline implicit def univEqJavaTimeYearMonth     : UnivEq[jt.YearMonth     ] = force
  inline implicit def univEqJavaTimeZonedDateTime : UnivEq[jt.ZonedDateTime ] = force
  inline implicit def univEqJavaTimeZoneId        : UnivEq[jt.ZoneId        ] = force
  inline implicit def univEqJavaTimeZoneOffset    : UnivEq[jt.ZoneOffset    ] = force

  // ===================================================================================================================
  // Derivation

  inline def derived    [A]: UnivEq[A] = internal.Derivation.derive[A]
  inline def derive     [A]: UnivEq[A] = internal.Derivation.derive[A]
  inline def deriveDebug[A]: UnivEq[A] = internal.Derivation.deriveDebug[A]

  @deprecated("No longer required in Scala 3. Use UnivEq.derived", "1.4.0")
  inline def deriveEmpty[A]: UnivEq[A] = derive[A]

  @deprecated("No longer required in Scala 3. Use UnivEq.derivedDebug", "1.4.0")
  inline def deriveEmptyDebug[A]: UnivEq[A] = deriveDebug[A]

  inline def deriveFix[Fix[_[_]], F[_]]: UnivEq[Fix[F]] =
    def unused = derive[F[Unit]]
    force

  inline def deriveFixDebug[Fix[_[_]], F[_]]: UnivEq[Fix[F]] =
    def unused = deriveDebug[F[Unit]]
    force

  object AutoDerive:
    inline implicit def autoDeriveUnivEq[A <: AnyRef]: UnivEq[A] =
      derived[A]

end UnivEq


text:
(function() {

    'use strict';

    angular.module('Core')
        .provider('translationHelper', translationHelperProvider);

    translationHelperProvider.$inject = [];

    function translationHelperProvider() {
        this.$get = TranslationHelper;

        TranslationHelper.$inject = [];

        function TranslationHelper() {
            var service = {
                getTranslationType: getTranslationType
            };

            /* ======================================== Var ==================================================== */
            var translationObj = {
                en: getEnglishObj()
            }

            /* ======================================== Public Methods ========================================= */
            function getTranslationType(type) {
                if(!(type === undefined || type === null)
                    && (Object.prototype.toString.call(type) === '[object String]')
                    && (type.length > 0)
                    && !(translationObj[type] === undefined || translationObj[type] === null)) {
                    return translationObj[type];
                } else {
                    throw new Error (type + ' is not a valid translation!');
                }
            }

            /* ======================================== Private Methods ======================================== */
            function getEnglishObj() {
                return {
                    // 'SAMPLE': 'Hohoho'
                }
            }

            return service;
        }
    }

})();


text:
Kor Repositories Gson converter extension
===

Basic Gson converter for Kor Repository


text:
<?php

$lan = array(
  'You do not have access to this page' => 'Je hebt geen toegang tot deze pagina',
  'Select Message to view' => 'Selecteer Bericht om te Bekijken',
  'Available Messages' => 'Beschikbare berichten',
  'views' => 'bekeken',
  'rate' => 'tarief',
  'View Details for a Message' => 'Bekijk detail van een Bericht',
  'Subject' => 'Onderwerp',
  'Entered' => 'Gestart',
  'Message Open Statistics' => 'Bericht Open Statistieken',
  'Listing user %d to %d' => 'Lijst van gebruiker(s) %d tot %d',
  'Entries' => 'Inschrijvingen',
  'firstview' => 'eerstebekijking',
  'lastview' => 'laatstebekijking',
  'views' => 'bekijkingen',
  'responsetime' => 'reageertijd',
  'sec' => 'sec',
  'Comparison to other admins' => 'Vergelijking met andere admins',

  # for 2.10.2
'there are currently no messages to view' => 'Er zijn momenteel geen berichten te bekijken',
);

?>