text:
/* ----------------------------------------------------------------------------
 * This file was automatically generated by SWIG (http://www.swig.org).
 * Version 2.0.11
 *
 * This file is not intended to be easily readable and contains a number of
 * coding conventions designed to improve portability and efficiency. Do not make
 * changes to this file unless you know what you are doing--modify the SWIG
 * interface file instead.
 * ----------------------------------------------------------------------------- */

#define SWIGJAVA

#ifdef __cplusplus
/* SwigValueWrapper is described in swig.swg */
template<typename T> class SwigValueWrapper {
  struct SwigMovePointer {
    T *ptr;
    SwigMovePointer(T *p) : ptr(p) { }
    ~SwigMovePointer() { delete ptr; }
    SwigMovePointer& operator=(SwigMovePointer& rhs) { T* oldptr = ptr; ptr = 0; delete oldptr; ptr = rhs.ptr; rhs.ptr = 0; return *this; }
  } pointer;
  SwigValueWrapper& operator=(const SwigValueWrapper<T>& rhs);
  SwigValueWrapper(const SwigValueWrapper<T>& rhs);
public:
  SwigValueWrapper() : pointer(0) { }
  SwigValueWrapper& operator=(const T& t) { SwigMovePointer tmp(new T(t)); pointer = tmp; return *this; }
  operator T&() const { return *pointer.ptr; }
  T *operator&() { return pointer.ptr; }
};

template <typename T> T SwigValueInit() {
  return T();
}
#endif

/* -----------------------------------------------------------------------------
 *  This section contains generic SWIG labels for method/variable
 *  declarations/attributes, and other compiler dependent labels.
 * ----------------------------------------------------------------------------- */

/* template workaround for compilers that cannot correctly implement the C++ standard */
#ifndef SWIGTEMPLATEDISAMBIGUATOR
# if defined(__SUNPRO_CC) && (__SUNPRO_CC <= 0x560)
#  define SWIGTEMPLATEDISAMBIGUATOR template
# elif defined(__HP_aCC)
/* Needed even with `aCC -AA' when `aCC -V' reports HP ANSI C++ B3910B A.03.55 */
/* If we find a maximum version that requires this, the test would be __HP_aCC <= 35500 for A.03.55 */
#  define SWIGTEMPLATEDISAMBIGUATOR template
# else
#  define SWIGTEMPLATEDISAMBIGUATOR
# endif
#endif

/* inline attribute */
#ifndef SWIGINLINE
# if defined(__cplusplus) || (defined(__GNUC__) && !defined(__STRICT_ANSI__))
#   define SWIGINLINE inline
# else
#   define SWIGINLINE
# endif
#endif

/* attribute recognised by some compilers to avoid 'unused' warnings */
#ifndef SWIGUNUSED
# if defined(__GNUC__)
#   if !(defined(__cplusplus)) || (__GNUC__ > 3 || (__GNUC__ == 3 && __GNUC_MINOR__ >= 4))
#     define SWIGUNUSED __attribute__ ((__unused__))
#   else
#     define SWIGUNUSED
#   endif
# elif defined(__ICC)
#   define SWIGUNUSED __attribute__ ((__unused__))
# else
#   define SWIGUNUSED
# endif
#endif

#ifndef SWIG_MSC_UNSUPPRESS_4505
# if defined(_MSC_VER)
#   pragma warning(disable : 4505) /* unreferenced local function has been removed */
# endif
#endif

#ifndef SWIGUNUSEDPARM
# ifdef __cplusplus
#   define SWIGUNUSEDPARM(p)
# else
#   define SWIGUNUSEDPARM(p) p SWIGUNUSED
# endif
#endif

/* internal SWIG method */
#ifndef SWIGINTERN
# define SWIGINTERN static SWIGUNUSED
#endif

/* internal inline SWIG method */
#ifndef SWIGINTERNINLINE
# define SWIGINTERNINLINE SWIGINTERN SWIGINLINE
#endif

/* exporting methods */
#if (__GNUC__ >= 4) || (__GNUC__ == 3 && __GNUC_MINOR__ >= 4)
#  ifndef GCC_HASCLASSVISIBILITY
#    define GCC_HASCLASSVISIBILITY
#  endif
#endif

#ifndef SWIGEXPORT
# if defined(_WIN32) || defined(__WIN32__) || defined(__CYGWIN__)
#   if defined(STATIC_LINKED)
#     define SWIGEXPORT
#   else
#     define SWIGEXPORT __declspec(dllexport)
#   endif
# else
#   if defined(__GNUC__) && defined(GCC_HASCLASSVISIBILITY)
#     define SWIGEXPORT __attribute__ ((visibility("default")))
#   else
#     define SWIGEXPORT
#   endif
# endif
#endif

/* calling conventions for Windows */
#ifndef SWIGSTDCALL
# if defined(_WIN32) || defined(__WIN32__) || defined(__CYGWIN__)
#   define SWIGSTDCALL __stdcall
# else
#   define SWIGSTDCALL
# endif
#endif

/* Deal with Microsoft's attempt at deprecating C standard runtime functions */
#if !defined(SWIG_NO_CRT_SECURE_NO_DEPRECATE) && defined(_MSC_VER) && !defined(_CRT_SECURE_NO_DEPRECATE)
# define _CRT_SECURE_NO_DEPRECATE
#endif

/* Deal with Microsoft's attempt at deprecating methods in the standard C++ library */
#if !defined(SWIG_NO_SCL_SECURE_NO_DEPRECATE) && defined(_MSC_VER) && !defined(_SCL_SECURE_NO_DEPRECATE)
# define _SCL_SECURE_NO_DEPRECATE
#endif

/* Fix for jlong on some versions of gcc on Windows */
#if defined(__GNUC__) && !defined(__INTEL_COMPILER)
  typedef long long __int64;
#endif

/* Fix for jlong on 64-bit x86 Solaris */
#if defined(__x86_64)
# ifdef _LP64
#   undef _LP64
# endif
#endif

#include <jni.h>
#include <stdlib.h>
#include <string.h>

/* Support for throwing Java exceptions */
typedef enum {
  SWIG_JavaOutOfMemoryError = 1,
  SWIG_JavaIOException,
  SWIG_JavaRuntimeException,
  SWIG_JavaIndexOutOfBoundsException,
  SWIG_JavaArithmeticException,
  SWIG_JavaIllegalArgumentException,
  SWIG_JavaNullPointerException,
  SWIG_JavaDirectorPureVirtual,
  SWIG_JavaUnknownError
} SWIG_JavaExceptionCodes;

typedef struct {
  SWIG_JavaExceptionCodes code;
  const char *java_exception;
} SWIG_JavaExceptions_t;

static void SWIGUNUSED SWIG_JavaThrowException(JNIEnv *jenv, SWIG_JavaExceptionCodes code, const char *msg) {
  jclass excep;
  static const SWIG_JavaExceptions_t java_exceptions[] = {
    { SWIG_JavaOutOfMemoryError, "java/lang/OutOfMemoryError" },
    { SWIG_JavaIOException, "java/io/IOException" },
    { SWIG_JavaRuntimeException, "java/lang/RuntimeException" },
    { SWIG_JavaIndexOutOfBoundsException, "java/lang/IndexOutOfBoundsException" },
    { SWIG_JavaArithmeticException, "java/lang/ArithmeticException" },
    { SWIG_JavaIllegalArgumentException, "java/lang/IllegalArgumentException" },
    { SWIG_JavaNullPointerException, "java/lang/NullPointerException" },
    { SWIG_JavaDirectorPureVirtual, "java/lang/RuntimeException" },
    { SWIG_JavaUnknownError,  "java/lang/UnknownError" },
    { (SWIG_JavaExceptionCodes)0,  "java/lang/UnknownError" }
  };
  const SWIG_JavaExceptions_t *except_ptr = java_exceptions;

  while (except_ptr->code != code && except_ptr->code)
    except_ptr++;

  jenv->ExceptionClear();
  excep = jenv->FindClass(except_ptr->java_exception);
  if (excep)
    jenv->ThrowNew(excep, msg);
}

/* Contract support */

#define SWIG_contract_assert(nullreturn, expr, msg) if (!(expr)) {SWIG_JavaThrowException(jenv, SWIG_JavaIllegalArgumentException, msg); return nullreturn; } else

#include "android_jni.h"

#ifdef __cplusplus
extern "C" {
#endif

SWIGEXPORT void JNICALL Java_net_mkonrad_cvaccar_cv_1accarJNI_cv_1accar_1init(JNIEnv *jenv, jclass jcls, jint jarg1, jlong jarg2) {
  int arg1 ;
  long long arg2 ;

  (void)jenv;
  (void)jcls;
  arg1 = (int)jarg1;
  arg2 = (long long)jarg2;
  cv_accar_init(arg1,arg2);
}

SWIGEXPORT void JNICALL Java_net_mkonrad_cvaccar_cv_1accarJNI_cv_1accar_1set_1dbg_1input_1frame(JNIEnv *jenv, jclass jcls, jlong jarg1) {
  long long arg1 ;

  (void)jenv;
  (void)jcls;
  arg1 = (long long)jarg1;
  cv_accar_set_dbg_input_frame(arg1);
}

SWIGEXPORT void JNICALL Java_net_mkonrad_cvaccar_cv_1accarJNI_cv_1accar_1set_1dbg_1output_1mode(JNIEnv *jenv, jclass jcls, jint jarg1) {
  int arg1 ;

  (void)jenv;
  (void)jcls;
  arg1 = (int)jarg1;
  cv_accar_set_dbg_output_mode(arg1);
}

SWIGEXPORT void JNICALL Java_net_mkonrad_cvaccar_cv_1accarJNI_cv_1accar_1set_1dbg_1marker_1shader(JNIEnv *jenv, jclass jcls, jstring jarg1, jstring jarg2) {
  char *arg1 = (char *) 0 ;
  char *arg2 = (char *) 0 ;

  (void)jenv;
  (void)jcls;
  arg1 = 0;
  if (jarg1) {
    arg1 = (char *)jenv->GetStringUTFChars(jarg1, 0);
    if (!arg1) return ;
  }
  arg2 = 0;
  if (jarg2) {
    arg2 = (char *)jenv->GetStringUTFChars(jarg2, 0);
    if (!arg2) return ;
  }
  cv_accar_set_dbg_marker_shader(arg1,arg2);
  if (arg1) jenv->ReleaseStringUTFChars(jarg1, (const char *)arg1);
  if (arg2) jenv->ReleaseStringUTFChars(jarg2, (const char *)arg2);
}

SWIGEXPORT void JNICALL Java_net_mkonrad_cvaccar_cv_1accarJNI_cv_1accar_1set_1output_1display_1shader(JNIEnv *jenv, jclass jcls, jstring jarg1, jstring jarg2) {
  char *arg1 = (char *) 0 ;
  char *arg2 = (char *) 0 ;

  (void)jenv;
  (void)jcls;
  arg1 = 0;
  if (jarg1) {
    arg1 = (char *)jenv->GetStringUTFChars(jarg1, 0);
    if (!arg1) return ;
  }
  arg2 = 0;
  if (jarg2) {
    arg2 = (char *)jenv->GetStringUTFChars(jarg2, 0);
    if (!arg2) return ;
  }
  cv_accar_set_output_display_shader(arg1,arg2);
  if (arg1) jenv->ReleaseStringUTFChars(jarg1, (const char *)arg1);
  if (arg2) jenv->ReleaseStringUTFChars(jarg2, (const char *)arg2);
}

SWIGEXPORT void JNICALL Java_net_mkonrad_cvaccar_cv_1accarJNI_cv_1accar_1add_1shader_1to_1pipeline(JNIEnv *jenv, jclass jcls, jstring jarg1, jstring jarg2) {
  char *arg1 = (char *) 0 ;
  char *arg2 = (char *) 0 ;

  (void)jenv;
  (void)jcls;
  arg1 = 0;
  if (jarg1) {
    arg1 = (char *)jenv->GetStringUTFChars(jarg1, 0);
    if (!arg1) return ;
  }
  arg2 = 0;
  if (jarg2) {
    arg2 = (char *)jenv->GetStringUTFChars(jarg2, 0);
    if (!arg2) return ;
  }
  cv_accar_add_shader_to_pipeline(arg1,arg2);
  if (arg1) jenv->ReleaseStringUTFChars(jarg1, (const char *)arg1);
  if (arg2) jenv->ReleaseStringUTFChars(jarg2, (const char *)arg2);
}

SWIGEXPORT void JNICALL Java_net_mkonrad_cvaccar_cv_1accarJNI_cv_1accar_1start(JNIEnv *jenv, jclass jcls) {
  (void)jenv;
  (void)jcls;
  cv_accar_start();
}

SWIGEXPORT void JNICALL Java_net_mkonrad_cvaccar_cv_1accarJNI_cv_1accar_1stop(JNIEnv *jenv, jclass jcls) {
  (void)jenv;
  (void)jcls;
  cv_accar_stop();
}

SWIGEXPORT void JNICALL Java_net_mkonrad_cvaccar_cv_1accarJNI_cv_1accar_1pause(JNIEnv *jenv, jclass jcls) {
  (void)jenv;
  (void)jcls;
  cv_accar_pause();
}

SWIGEXPORT void JNICALL Java_net_mkonrad_cvaccar_cv_1accarJNI_cv_1accar_1resume(JNIEnv *jenv, jclass jcls) {
  (void)jenv;
  (void)jcls;
  cv_accar_resume();
}

SWIGEXPORT void JNICALL Java_net_mkonrad_cvaccar_cv_1accarJNI_cv_1accar_1view_1create(JNIEnv *jenv, jclass jcls) {
  (void)jenv;
  (void)jcls;
  cv_accar_view_create();
}

SWIGEXPORT void JNICALL Java_net_mkonrad_cvaccar_cv_1accarJNI_cv_1accar_1view_1resize(JNIEnv *jenv, jclass jcls, jint jarg1, jint jarg2) {
  int arg1 ;
  int arg2 ;

  (void)jenv;
  (void)jcls;
  arg1 = (int)jarg1;
  arg2 = (int)jarg2;
  cv_accar_view_resize(arg1,arg2);
}

SWIGEXPORT void JNICALL Java_net_mkonrad_cvaccar_cv_1accarJNI_cv_1accar_1view_1draw(JNIEnv *jenv, jclass jcls) {
  (void)jenv;
  (void)jcls;
  cv_accar_view_draw();
}

SWIGEXPORT void JNICALL Java_net_mkonrad_cvaccar_cv_1accarJNI_cv_1accar_1get_1detected_1markers(JNIEnv *jenv, jclass jcls) {
  (void)jenv;
  (void)jcls;
  cv_accar_get_detected_markers();
}

SWIGEXPORT void JNICALL Java_net_mkonrad_cvaccar_cv_1accarJNI_cv_1accar_1cleanup(JNIEnv *jenv, jclass jcls) {
  (void)jenv;
  (void)jcls;
  cv_accar_cleanup();
}

#ifdef __cplusplus
}
#endif


text:
#import <ChatKit/CKEntity.h>

@interface CKEntity (CKEntity_Display)
- (id)personViewControllerWithDelegate:(id)arg1;
@end

redpajama_set_name: RedPajamaGithub


text:
import Config from 'webpack-chain';

import { default as angular } from '../../src/configuration/angular';
import { init } from '../../src';

jest.mock(
	'@ngtools/webpack',
	() => {
		// in tests we mock both plugins so they both show up in the snapshot
		// allowing us to verify the passed configuration is correct.
		class AngularCompilerPlugin {}

		class AngularWebpackPlugin {}

		return {
			AngularCompilerPlugin,
			AngularWebpackPlugin,
		};
	},
	{ virtual: true }
);

describe('angular configuration', () => {
	const platforms = ['ios', 'android'];
	let fsExistsSyncSpy: jest.SpiedFunction<any>;
	let polyfillsPath: string | boolean = false;

	beforeAll(() => {
		const fs = require('fs');
		const original = fs.existsSync;
		fsExistsSyncSpy = jest.spyOn(fs, 'existsSync');

		fsExistsSyncSpy.mockImplementation((path) => {
			if (path === '__jest__/tsconfig.json') {
				return true;
			}

			if (polyfillsPath && path === polyfillsPath) {
				return true;
			}

			return original.call(fs, path);
		});
	});

	afterAll(() => {
		fsExistsSyncSpy.mockRestore();
	});

	for (let platform of platforms) {
		it(`for ${platform}`, () => {
			init({
				[platform]: true,
			});
			expect(angular(new Config()).toString()).toMatchSnapshot();
		});

		it(`loads polyfills.${platform}.ts into the bundle entry if it exists `, () => {
			polyfillsPath = `__jest__/src/polyfills.${platform}.ts`;

			init({
				[platform]: true,
			});
			expect(angular(new Config()).entry('bundle').values()).toMatchSnapshot();

			polyfillsPath = false;
		});
	}

	it(`loads polyfills.ts into the bundle entry if it exists `, () => {
		polyfillsPath = `__jest__/src/polyfills.ts`;

		init({
			ios: true,
		});
		expect(angular(new Config()).entry('bundle').values()).toMatchSnapshot();

		polyfillsPath = false;
	});
});


text:
package com.examw.collector.controllers.update;

import java.util.ArrayList;
import java.util.List;

import javax.annotation.Resource;

import org.apache.log4j.Logger;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.ResponseBody;

import com.examw.aware.IUserAware;
import com.examw.collector.controllers.edu24.CatalogController;
import com.examw.collector.model.PackInfo;
import com.examw.collector.service.IPackService;
import com.examw.collector.service.IPackageUpdateService;
import com.examw.model.DataGrid;
import com.examw.model.Json;

/**
 * 套餐数据更新控制器
 * @author fengwei.
 * @since 2014年7月8日 上午11:43:46.
 */
@Controller
@RequestMapping("/admin/update/pack")
public class PackageUpdateController implements IUserAware{
	private static Logger logger  = Logger.getLogger(CatalogController.class);
	@Resource
	private IPackageUpdateService packageUpdateService;
	@Resource
	private IPackService packService;
	private String account;

	@RequestMapping(value={"","/list"}, method = RequestMethod.GET)
	public String list(Model model){
		return "update/pack_list_2";
	}
	@RequestMapping(value="/datagrid", method = RequestMethod.POST)
	@ResponseBody
	public DataGrid<PackInfo> datagrid(String action,PackInfo info){
		if(action == null || !action.equals("1"))
		{
			DataGrid<PackInfo> data = new DataGrid<PackInfo>();
			data.setRows(new ArrayList<PackInfo>());
			return data;
		}
		return this.packService.dataGridUpdate(info,account);
	}

	@RequestMapping(value="/update", method = RequestMethod.POST)
	@ResponseBody
	public Json update(@RequestBody List<PackInfo> packs){
		Json result = new Json();
		try {
			result.setData(this.packageUpdateService.update(packs,account));
			result.setSuccess(true);
		} catch (Exception e) {
			result.setSuccess(false);
			result.setMsg(e.getMessage());
			logger.error("更新考试类型数据发生异常", e);
		}
		return result;
	}
	/**
	 * 一键直接更新
	 * @return
	 */
	@RequestMapping(value="/onekeyupdate", method = RequestMethod.POST)
	@ResponseBody
	public DataGrid<PackInfo> oneKeyUpdate(){
		return this.packageUpdateService.dataGridUpdate(account);
	}
	@Override
	public void setUserId(String userId) {
	}
	@Override
	public void setUserName(String userName) {
	}
	@Override
	public void setUserNickName(String userNickName) {
		this.account = userNickName;
	}
}


text:
import { NgModule }           from '@angular/core'
import { SharedModule }       from '@app/shared/shared.module'
import { DiscoverComponent } from './discovering.component'

// Availability
import { InputAvailabilityComponent } from './input-availability/input-availability.component'
import { InputTimeComponent } from './input-availability/input-time/input-time.component'

import { DiscoveringRoutingModule } from './discovering-routing.module'
@NgModule({
  imports:      [ SharedModule, DiscoveringRoutingModule ],
  declarations: [
    DiscoverComponent,
    InputAvailabilityComponent, InputTimeComponent
  ],
  providers:    []
})
export class DiscoveringModule { }


text:
<?php

namespace Magento\SalesRule\Api;

/**
 * Coupon CRUD interface
 *
 * @api
 */
interface CouponRepositoryInterface
{
    /**
     * Save coupon.
     *
     * @param \Magento\SalesRule\Api\Data\CouponInterface $coupon
     * @return \Magento\SalesRule\Api\Data\CouponInterface
     * @throws \Magento\Framework\Exception\InputException If there is a problem with the input
     * @throws \Magento\Framework\Exception\NoSuchEntityException If a coupon ID is sent but the coupon does not exist
     * @throws \Magento\Framework\Exception\LocalizedException
     */
    public function save(\Magento\SalesRule\Api\Data\CouponInterface $coupon);

    /**
     * Get coupon by coupon id.
     *
     * @param int $couponId
     * @return \Magento\SalesRule\Api\Data\CouponInterface
     * @throws \Magento\Framework\Exception\NoSuchEntityException If $couponId is not found
     * @throws \Magento\Framework\Exception\LocalizedException
     */
    public function getById($couponId);

    /**
     * Retrieve coupon.
     *
     * @param \Magento\Framework\Api\SearchCriteriaInterface $searchCriteria
     * @return \Magento\SalesRule\Api\Data\CouponSearchResultInterface
     * @throws \Magento\Framework\Exception\LocalizedException
     */
    public function getList(\Magento\Framework\Api\SearchCriteriaInterface $searchCriteria);

    /**
     * Delete coupon by coupon id.
     *
     * @param int $couponId
     * @return bool true on success
     * @throws \Magento\Framework\Exception\NoSuchEntityException
     * @throws \Magento\Framework\Exception\LocalizedException
     */
    public function deleteById($couponId);
}


text:
declare module "zmq" {
  import {EventEmitter} from 'events';

  export type types =
    "pub"
  | "xpub"
  | "sub"
  | "xsub"
  | "req"
  | "xreq"
  | "rep"
  | "xrep"
  | "push"
  | "pull"
  | "dealer"
  | "router"
  | "pair"
  | "stream";

  export interface Socket extends EventEmitter {
    bindSync(address: string): Socket;
    send(data: any, flag?: number): void;
    connect(address: string, callback?: Function): Socket;
    close(): Socket;
    subscribe(channel: string): void;
  }

  export function socket(type_: types): Socket;
}


text:
var mod = require("../index.js")
, fs = require('fs')
, testFiles = [
	'./test/testdir/test1',
	'./test/testdir/test2',
	'./test/testdir/test3',
	'./test/testdir/testdir2/test4',
	'./test/testdir/test5',
	'./test/testdir/testdir2/test6'
]
, notDone
;

fs.appendFileSync(testFiles[0],'a');
fs.appendFileSync(testFiles[1],'b');
fs.appendFileSync(testFiles[2],'c');
fs.appendFileSync(testFiles[3],'d');

var watcher = mod.startTailing('./test/testdir/',"*");

describe('Basic tests', function() {

	it('should detect four changes',function(done) {
		console.log("Starting test 1");
		notDone = 4;
		setTimeout(function() {
			if(!notDone) throw "too slow";
		}, 2000);

		watcher.on('line', function(line) {
			console.log('saw a line: ' + line);
			notDone--;
			if (!notDone) {
				watcher.removeAllListeners();
				console.log("listeners removed");
				done();
			}
		});

		// Wait a moment to make sure watcher is fully initialized
		setTimeout(function() {
			fs.appendFile(testFiles[0],'a');
			fs.appendFile(testFiles[1],'b');
			fs.appendFile(testFiles[2],'c');
			fs.appendFile(testFiles[3],'d');
		}, 100);
	});

	it('should detect a change in a new file',function(done) {
		console.log("Starting test 2");
		notDone = 2;
		setTimeout(function() {
			if(!notDone) throw "too slow";
		}, 2000);

		watcher.on('line', function(line) {
			console.log('saw a line: ' + line);
			notDone--;
			if (!notDone) {
				watcher.removeAllListeners();
				console.log("listeners removed");
				done();
			}
		});

		// Wait a moment to let things settle...
		setTimeout(function() {
			fs.appendFile(testFiles[4],'xyz');
			fs.appendFile(testFiles[5],'xyz');
		}, 100);
	});
});

after(function() {
	for (var i = 0; i < testFiles.length; i++) {
		fs.unlink(testFiles[i]);
	}
});


text:
/*! normalize.css v1.1.2 | MIT License | git.io/normalize */

/* ==========================================================================
   HTML5 display definitions
   ========================================================================== */

/**
 * Correct `block` display not defined in IE 6/7/8/9 and Firefox 3.
 */

article,
aside,
details,
figcaption,
figure,
footer,
header,
hgroup,
main,
nav,
section,
summary {
    display: block;
}

/**
 * Correct `inline-block` display not defined in IE 6/7/8/9 and Firefox 3.
 */

audio,
canvas,
video {
    display: inline-block;
    *display: inline;
    *zoom: 1;
}

/**
 * Prevent modern browsers from displaying `audio` without controls.
 * Remove excess height in iOS 5 devices.
 */

audio:not([controls]) {
    display: none;
    height: 0;
}

/**
 * Address styling not present in IE 7/8/9, Firefox 3, and Safari 4.
 * Known issue: no IE 6 support.
 */

[hidden] {
    display: none;
}

/* ==========================================================================
   Base
   ========================================================================== */

/**
 * 1. Correct text resizing oddly in IE 6/7 when body `font-size` is set using
 *    `em` units.
 * 2. Prevent iOS text size adjust after orientation change, without disabling
 *    user zoom.
 */

html {
    font-size: 100%; /* 1 */
    -ms-text-size-adjust: 100%; /* 2 */
    -webkit-text-size-adjust: 100%; /* 2 */
}

/**
 * Address `font-family` inconsistency between `textarea` and other form
 * elements.
 */

html,
button,
input,
select,
textarea {
    font-family: sans-serif;
}

/**
 * Address margins handled incorrectly in IE 6/7.
 */

body {
    margin: 0;
}

/* ==========================================================================
   Links
   ========================================================================== */

/**
 * Address `outline` inconsistency between Chrome and other browsers.
 */

a:focus {
    outline: thin dotted;
}

/**
 * Improve readability when focused and also mouse hovered in all browsers.
 */

a:active,
a:hover {
    outline: 0;
}

/* ==========================================================================
   Typography
   ========================================================================== */

/**
 * Address font sizes and margins set differently in IE 6/7.
 * Address font sizes within `section` and `article` in Firefox 4+, Safari 5,
 * and Chrome.
 */

h1 {
    font-size: 2em;
    margin: 0.67em 0;
}

h2 {
    font-size: 1.5em;
    margin: 0.83em 0;
}

h3 {
    font-size: 1.17em;
    margin: 1em 0;
}

h4 {
    font-size: 1em;
    margin: 1.33em 0;
}

h5 {
    font-size: 0.83em;
    margin: 1.67em 0;
}

h6 {
    font-size: 0.67em;
    margin: 2.33em 0;
}

/**
 * Address styling not present in IE 7/8/9, Safari 5, and Chrome.
 */

abbr[title] {
    border-bottom: 1px dotted;
}

/**
 * Address style set to `bolder` in Firefox 3+, Safari 4/5, and Chrome.
 */

b,
strong {
    font-weight: bold;
}

blockquote {
    margin: 1em 40px;
}

/**
 * Address styling not present in Safari 5 and Chrome.
 */

dfn {
    font-style: italic;
}

/**
 * Address differences between Firefox and other browsers.
 * Known issue: no IE 6/7 normalization.
 */

hr {
    -moz-box-sizing: content-box;
    box-sizing: content-box;
    height: 0;
}

/**
 * Address styling not present in IE 6/7/8/9.
 */

mark {
    background: #ff0;
    color: #000;
}

/**
 * Address margins set differently in IE 6/7.
 */

p,
pre {
    margin: 1em 0;
}

/**
 * Correct font family set oddly in IE 6, Safari 4/5, and Chrome.
 */

code,
kbd,
pre,
samp {
    font-family: monospace, serif;
    _font-family: 'courier new', monospace;
    font-size: 1em;
}

/**
 * Improve readability of pre-formatted text in all browsers.
 */

pre {
    white-space: pre;
    white-space: pre-wrap;
    word-wrap: break-word;
}

/**
 * Address CSS quotes not supported in IE 6/7.
 */

q {
    quotes: none;
}

/**
 * Address `quotes` property not supported in Safari 4.
 */

q:before,
q:after {
    content: '';
    content: none;
}

/**
 * Address inconsistent and variable font size in all browsers.
 */

small {
    font-size: 80%;
}

/**
 * Prevent `sub` and `sup` affecting `line-height` in all browsers.
 */

sub,
sup {
    font-size: 75%;
    line-height: 0;
    position: relative;
    vertical-align: baseline;
}

sup {
    top: -0.5em;
}

sub {
    bottom: -0.25em;
}

/* ==========================================================================
   Lists
   ========================================================================== */

/**
 * Address margins set differently in IE 6/7.
 */

dl,
menu,
ol,
ul {
    margin: 1em 0;
}

dd {
    margin: 0 0 0 40px;
}

/**
 * Address paddings set differently in IE 6/7.
 */

menu,
ol,
ul {
    padding: 0 0 0 40px;
}

/**
 * Correct list images handled incorrectly in IE 7.
 */

nav ul,
nav ol {
    list-style: none;
    list-style-image: none;
}

/* ==========================================================================
   Embedded content
   ========================================================================== */

/**
 * 1. Remove border when inside `a` element in IE 6/7/8/9 and Firefox 3.
 * 2. Improve image quality when scaled in IE 7.
 */

img {
    border: 0; /* 1 */
    -ms-interpolation-mode: bicubic; /* 2 */
}

/**
 * Correct overflow displayed oddly in IE 9.
 */

svg:not(:root) {
    overflow: hidden;
}

/* ==========================================================================
   Figures
   ========================================================================== */

/**
 * Address margin not present in IE 6/7/8/9, Safari 5, and Opera 11.
 */

figure {
    margin: 0;
}

/* ==========================================================================
   Forms
   ========================================================================== */

/**
 * Correct margin displayed oddly in IE 6/7.
 */

form {
    margin: 0;
}

/**
 * Define consistent border, margin, and padding.
 */

fieldset {
    border: 1px solid #c0c0c0;
    margin: 0 2px;
    padding: 0.35em 0.625em 0.75em;
}

/**
 * 1. Correct color not being inherited in IE 6/7/8/9.
 * 2. Correct text not wrapping in Firefox 3.
 * 3. Correct alignment displayed oddly in IE 6/7.
 */

legend {
    border: 0; /* 1 */
    padding: 0;
    white-space: normal; /* 2 */
    *margin-left: -7px; /* 3 */
}

/**
 * 1. Correct font size not being inherited in all browsers.
 * 2. Address margins set differently in IE 6/7, Firefox 3+, Safari 5,
 *    and Chrome.
 * 3. Improve appearance and consistency in all browsers.
 */

button,
input,
select,
textarea {
    font-size: 100%; /* 1 */
    margin: 0; /* 2 */
    vertical-align: baseline; /* 3 */
    *vertical-align: middle; /* 3 */
}

/**
 * Address Firefox 3+ setting `line-height` on `input` using `!important` in
 * the UA stylesheet.
 */

button,
input {
    line-height: normal;
}

/**
 * Address inconsistent `text-transform` inheritance for `button` and `select`.
 * All other form control elements do not inherit `text-transform` values.
 * Correct `button` style inheritance in Chrome, Safari 5+, and IE 6+.
 * Correct `select` style inheritance in Firefox 4+ and Opera.
 */

button,
select {
    text-transform: none;
}

/**
 * 1. Avoid the WebKit bug in Android 4.0.* where (2) destroys native `audio`
 *    and `video` controls.
 * 2. Correct inability to style clickable `input` types in iOS.
 * 3. Improve usability and consistency of cursor style between image-type
 *    `input` and others.
 * 4. Remove inner spacing in IE 7 without affecting normal text inputs.
 *    Known issue: inner spacing remains in IE 6.
 */

button,
html input[type="button"], /* 1 */
input[type="reset"],
input[type="submit"] {
    -webkit-appearance: button; /* 2 */
    cursor: pointer; /* 3 */
    *overflow: visible;  /* 4 */
}

/**
 * Re-set default cursor for disabled elements.
 */

button[disabled],
html input[disabled] {
    cursor: default;
}

/**
 * 1. Address box sizing set to content-box in IE 8/9.
 * 2. Remove excess padding in IE 8/9.
 * 3. Remove excess padding in IE 7.
 *    Known issue: excess padding remains in IE 6.
 */

input[type="checkbox"],
input[type="radio"] {
    box-sizing: border-box; /* 1 */
    padding: 0; /* 2 */
    *height: 13px; /* 3 */
    *width: 13px; /* 3 */
}

/**
 * 1. Address `appearance` set to `searchfield` in Safari 5 and Chrome.
 * 2. Address `box-sizing` set to `border-box` in Safari 5 and Chrome
 *    (include `-moz` to future-proof).
 */

input[type="search"] {
    -webkit-appearance: textfield; /* 1 */
    -moz-box-sizing: content-box;
    -webkit-box-sizing: content-box; /* 2 */
    box-sizing: content-box;
}

/**
 * Remove inner padding and search cancel button in Safari 5 and Chrome
 * on OS X.
 */

input[type="search"]::-webkit-search-cancel-button,
input[type="search"]::-webkit-search-decoration {
    -webkit-appearance: none;
}

/**
 * Remove inner padding and border in Firefox 3+.
 */

button::-moz-focus-inner,
input::-moz-focus-inner {
    border: 0;
    padding: 0;
}

/**
 * 1. Remove default vertical scrollbar in IE 6/7/8/9.
 * 2. Improve readability and alignment in all browsers.
 */

textarea {
    overflow: auto; /* 1 */
    vertical-align: top; /* 2 */
}

/* ==========================================================================
   Tables
   ========================================================================== */

/**
 * Remove most spacing between table cells.
 */

table {
    border-collapse: collapse;
    border-spacing: 0;
}

/* ==========================================================================
   Base styles: opinionated defaults
   ========================================================================== */

html,
button,
input,
select,
textarea {
	color: #222;
}

body {
	font-size: 1em;
	line-height: 1.4;
}

/*
 * Remove text-shadow in selection highlight: h5bp.com/i
 * These selection rule sets have to be separate.
 * Customize the background color to match your design.
 */

::-moz-selection {
	background: #b3d4fc;
	text-shadow: none;
}

::selection {
	background: #b3d4fc;
	text-shadow: none;
}

/*
 * A better looking default horizontal rule
 */

hr {
	display: block;
	height: 1px;
	border: 0;
	border-top: 1px solid #ccc;
	margin: 1em 0;
	padding: 0;
}

/*
 * Remove the gap between images and the bottom of their containers: h5bp.com/i/440
 */

img {
	vertical-align: middle;
}

/*
 * Remove default fieldset styles.
 */

fieldset {
	border: 0;
	margin: 0;
	padding: 0;
}

/*
 * Allow only vertical resizing of textareas.
 */

textarea {
	resize: vertical;
}

/* ==========================================================================
   Chrome Frame prompt
   ========================================================================== */

.chromeframe {
	margin: 0.2em 0;
	background: #ccc;
	color: #000;
	padding: 0.2em 0;
}

/* ==========================================================================
   Parallax Scroll
   ========================================================================== */
body, html {
	height: 100%;
	min-height: 100%;
	background-color: #000000;
}
.no-js {
	padding-top: 106px;
}
h1 {
	height: 100%;
	/* The html and body elements cannot have any padding or margin. */
	margin: 0;
	font-family: 'Open Sans', sans-serif;
	margin-bottom: 3px;
}
h2 {
	font-family: 'Open Sans', sans-serif;
	font-weight: normal;
	margin-top: 0;
}
.loading {
	background: url('../img/ico_loading.gif') no-repeat center center;
}
section {
	/*min-width: 960px;*/
	opacity: 0;
}
.loaded section,
.no-js section {
	opacity: 1;
	-webkit-transition: opacity 300ms ease-out;
	-moz-transition: opacity 300ms ease-out;
	transition: opacity 300ms ease-out;
}
main {
	overflow-x: hidden;
}

.bcg {
	background-position: center center;
	background-repeat: no-repeat;
	background-attachment: fixed;
	background-size: cover;
	height: 100%;
	width: 100%;
}

/* Welcome */
#welcome-1 .bcg {background-image:url('../img/welcome-1.jpg')}
#welcome-2 .bcg {background-image:url('../img/welcome-2.jpg')}

/* Knitz */
#knitz-title .bcg {background: none; background-color: #010101; height: 160px; text-align: center}
#knitz-1 .bcg {background-image:url('../img/knitz-1.jpg')}
#knitz-2 .bcg {background-image:url('../img/knitz-2.jpg')}

/* Plaques */
#plaques-title .bcg {background: none; background-color: #010101; height: 160px; text-align: center}
#plaques-1 .bcg {background-image:url('../img/plaques-1.jpg')}
#plaques-2 .bcg {background-image:url('../img/plaques-2.jpg')}

/* Rattan Title */
#rattan-title .bcg {background: none; background-color: #010101; height: 160px; text-align: center}
#rattan-1 .bcg {background-image:url('../img/rattan-1.jpg')}

/* Box Frams Title */
#box-frames-title .bcg {background: none; background-color: #010101; height: 160px; text-align: center}
#box-frames-1 .bcg {background-image:url('../img/box-frames-1.jpg')}

/* Christmas Title */
#xmas-title .bcg {background: none; background-color: #010101; height: 160px; text-align: center}
#xmas-1 .bcg {background-image:url('../img/xmas-1.jpg')}
#xmas-2 .bcg {background-image:url('../img/xmas-2.jpg')}

/* Find Us */
#find-us-1 .bcg {background-image:url('../img/find-us-1.jpg')}
#find-us-1 img {
	margin: 2%;
}
#find-us-1 .nav-active {
	border: 0;
}

.hsContainer {
	display: table;
	table-layout: fixed;
	width: 100%;
	height: 100%;
	overflow: hidden;
	position: relative;
}
.hsContent {
	max-width: 450px;
	margin: -150px auto 0 auto;
	display: table-cell;
	vertical-align: middle;
	color: #ebebeb;
	text-align: center;
}
.hsContent h2,
.copy h2 {
	color: #ffffff;
	font-size: 45px;
	line-height: 48px;
	margin-bottom: 12px;
}
.hsContent p {
	max-width: 400px;
	margin: 0 auto;
	color: white;
}
.hsContent a {
	color: #b2b2b2;
	text-decoration: underline;
}
.bgBlack {
	background-color: rgba(0,0,0,0.75);
	padding: 3px 10px;
}

#welcome-2 strong {

	font-size: 20px;
}

#welcome-1 h2, #find-us-1 h2 {
	font-family: 'Great Vibes', 'Open Sans', sans-serif;
	font-size: 60px;
	line-height: 70px;
	font-weight: bold;
	color: #011B3B;
}

/* ==========================================================================
   Helper classes
   ========================================================================== */

/*
 * Image replacement
 */

.ir {
	background-color: transparent;
	border: 0;
	overflow: hidden;
	/* IE 6/7 fallback */
	*text-indent: -9999px;
}

.ir:before {
	content: "";
	display: block;
	width: 0;
	height: 150%;
}

/*
 * Hide from both screenreaders and browsers: h5bp.com/u
 */

.hidden {
	display: none !important;
	visibility: hidden;
}

/*
 * Hide only visually, but have it available for screenreaders: h5bp.com/v
 */

.visuallyhidden {
	border: 0;
	clip: rect(0 0 0 0);
	height: 1px;
	margin: -1px;
	overflow: hidden;
	padding: 0;
	position: absolute;
	width: 1px;
}

/*
 * Extends the .visuallyhidden class to allow the element to be focusable
 * when navigated to via the keyboard: h5bp.com/p
 */

.visuallyhidden.focusable:active,
.visuallyhidden.focusable:focus {
	clip: auto;
	height: auto;
	margin: 0;
	overflow: visible;
	position: static;
	width: auto;
}

/*
 * Hide visually and from screenreaders, but maintain layout
 */

.invisible {
	visibility: hidden;
}

/*
 * Clearfix: contain floats
 *
 * For modern browsers
 * 1. The space content is one way to avoid an Opera bug when the
 *    `contenteditable` attribute is included anywhere else in the document.
 *    Otherwise it causes space to appear at the top and bottom of elements
 *    that receive the `clearfix` class.
 * 2. The use of `table` rather than `block` is only necessary if using
 *    `:before` to contain the top-margins of child elements.
 */

.clearfix:before,
.clearfix:after {
	content: " "; /* 1 */
	display: table; /* 2 */
}

.clearfix:after {
	clear: both;
}

/*
 * For IE 6/7 only
 * Include this rule to trigger hasLayout and contain floats.
 */

.clearfix {
	*zoom: 1;
}

@media (max-width: 800px) {
	.cd-nav-trigger {
		visibility: visible;
	}
	.nav {
		/* Translate -150% to move off screen */
		-webkit-transform: translateX(150%);
			-ms-transform: translateX(150%);
				transform: translateX(150%);

		/* Animations */
		-webkit-transition: all 150ms ease-in-out;
		   -moz-transition: all 150ms ease-in-out;
				transition: all 150ms ease-in-out;
	}

}

@media (min-width: 800px) {
	.cd-nav-trigger {
		visibility: hidden;
		-webkit-transform: scale(0);
		-moz-transform: scale(0);
		-ms-transform: scale(0);
		-o-transform: scale(0);
		transform: scale(0);
		-webkit-transition: -webkit-transform 0.3s, visibility 0s 0.3s;
		-moz-transition: -moz-transform 0.3s, visibility 0s 0.3s;
		transition: transform 0.3s, visibility 0s 0.3s;
	}
	.nav {
		/* Translate -100% to move off screen */
		-webkit-transform: translateX(0%);
			-ms-transform: translateX(0%);
				transform: translateX(0%);

		/* Animations */
		-webkit-transition: all 500ms ease-in-out;
		   -moz-transition: all 500ms ease-in-out;
				transition: all 500ms ease-in-out;
	}
	#cd-main-nav {
		display: none;
	}
}
/* Banner */
.banner {
    background: rgba(0,0,0,0.2);
    height: 50px;
    width: 100%;
    color: #fff;
    display: none;
    z-index: 999999;
}
.banner a {
    color: #fff;
    opacity: 1;
    text-decoration: none;
}
.banner a:hover {
    color: black;
    opacity: .9;
    border-bottom: white 2px solid;
}

/* Logo */
.logo {
    float: left;
    font-size: 20px;
    line-height: 50px;
    color: white;
    white-space: nowrap;
}

/* Nav */
.nav-container {
    width: 90%;
    max-width: 800px;
    margin: auto;
}
.nav {
    height: 30px;
    margin: 5px 0 0;
    float: right;
    padding-left: 0;

  /* Force Hardware Acceleration in WebKit */
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
}
.nav li {
    display: inline-block;
}
.nav-active {
    color: black;
    border-bottom: white 2px solid;
}

/* Nav item */
.nav-item {
    display: inline-block;
    padding: .5em;
    text-decoration: none;
}
.nav-knitz {
    background-color: #74A6CF;
}
.nav-plaques {
    background-color: #86BF53;
}
.nav-rattan {
    background-color: #836953;
}
.nav-bows {
    background-color: #FFB347;
}
.nav-box-frames {
    background-color: #966FD6;
}
.nav-xmas {
    background-color: #C23B22;
}

/* Headhesive styles */
.banner--clone {

    /* Required styles */
    position: fixed;
    top: 0;
    left: 0;
    display: block;

    /* Translate -100% to move off screen */
    -webkit-transform: translateY(-100%);
        -ms-transform: translateY(-100%);
            transform: translateY(-100%);

    /* Animations */
    -webkit-transition: all 300ms ease-in-out;
       -moz-transition: all 300ms ease-in-out;
            transition: all 300ms ease-in-out;

}
.banner--stick {

    /* Translate back to 0%; */
    -webkit-transform: translateY(0%);
        -ms-transform: translateY(0%);
            transform: translateY(0%);
}

.banner--unstick { }

/* Mobile Navi */
    #cd-nav ul {
      /* mobile first */
      position: fixed;
      width: 150px;
      right: 5%;
      bottom: 4px;
      border-radius: 0.25em;
      box-shadow: none;
      visibility: hidden;
      padding-left: 0;
      background-color: rgba(0,0,0,0);
      /* remove overflow:hidden if you want to create a drop-down menu - but then remember to fix/eliminate the list items animation */
      overflow: hidden;
      z-index: 1;
      /* Force Hardware Acceleration in WebKit */
      -webkit-backface-visibility: hidden;
      backface-visibility: hidden;
      -webkit-transform: scale(0);
      -moz-transform: scale(0);
      -ms-transform: scale(0);
      -o-transform: scale(0);
      transform: scale(0);
      -webkit-transform-origin: 100% 100%;
      -moz-transform-origin: 100% 100%;
      -ms-transform-origin: 100% 100%;
      -o-transform-origin: 100% 100%;
      transform-origin: 100% 100%;
      -webkit-transition: -webkit-transform 0.3s, visibility 0s 0.3s;
      -moz-transition: -moz-transform 0.3s, visibility 0s 0.3s;
      transition: transform 0.3s, visibility 0s 0.3s;
    }
    #cd-nav ul li {
      /* Force Hardware Acceleration in WebKit */
      -webkit-backface-visibility: hidden;
      backface-visibility: hidden;
      list-style-type: none;
    }

    #cd-nav .nav-item {
        width: 100%;
        border-bottom: none;
    }

    #cd-main-nav a {
        color: #FEFEFA;
    }

    #cd-main-nav a:hover {
        color: black;
        opacity: .9;
        border-left: 5px solid #FEFEFA;
    }

    #cd-nav .nav-knitz {
        border-left: 5px solid #74A6CF;
    }
    #cd-nav .nav-plaques {
        border-left: 5px solid #86BF53;
    }
    #cd-nav .nav-rattan {
        border-left: 5px solid #836953;
    }
    #cd-nav .nav-bows {
        border-left: 5px solid #FFB347;
    }
    #cd-nav .nav-box-frames {
        border-left: 5px solid #966FD6;
    }
    #cd-nav .nav-xmas {
        border-left: 5px solid #C23B22;
    }

    #cd-nav .nav-active {
        border-left: 5px solid #FEFEFA;
    }

.cd-nav-trigger {
  position: fixed;
  bottom: 20px;
  right: 5%;
  width: 44px;
  height: 44px;
  background: white;
  border-radius: 0.25em;
  box-shadow: 0 0 10px rgba(232, 74, 100, 0.4);
  overflow: hidden;
  text-indent: 100%;
  white-space: nowrap;
  z-index: 2;
  cursor: pointer;
}

.cd-nav-trigger span {
  /* the span element is used to create the menu icon */
  position: absolute;
  display: block;
  width: 20px;
  height: 2px;
  background: #e84a64;
  top: 50%;
  margin-top: -1px;
  left: 50%;
  margin-left: -10px;
  -webkit-transition: background 0.3s;
  -moz-transition: background 0.3s;
  transition: background 0.3s;
}
.cd-nav-trigger span::before, .cd-nav-trigger span::after {
  content: '';
  position: absolute;
  left: 0;
  background: inherit;
  width: 100%;
  height: 100%;
  /* Force Hardware Acceleration in WebKit */
  -webkit-transform: translateZ(0);
  -moz-transform: translateZ(0);
  -ms-transform: translateZ(0);
  -o-transform: translateZ(0);
  transform: translateZ(0);
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  -webkit-transition: -webkit-transform 0.3s, background 0s;
  -moz-transition: -moz-transform 0.3s, background 0s;
  transition: transform 0.3s, background 0s;
}
.cd-nav-trigger span::before {
  top: -6px;
  -webkit-transform: rotate(0);
  -moz-transform: rotate(0);
  -ms-transform: rotate(0);
  -o-transform: rotate(0);
  transform: rotate(0);
}
.cd-nav-trigger span::after {
  bottom: -6px;
  -webkit-transform: rotate(0);
  -moz-transform: rotate(0);
  -ms-transform: rotate(0);
  -o-transform: rotate(0);
  transform: rotate(0);
}
.cd-nav-trigger.menu-is-open {
  box-shadow: none;
}
.cd-nav-trigger.menu-is-open span {
  background: rgba(232, 74, 100, 0);
}
.cd-nav-trigger.menu-is-open span::before, .cd-nav-trigger.menu-is-open span::after {
  background: #e84a64;
}
.cd-nav-trigger.menu-is-open span::before {
  top: 0;
  -webkit-transform: rotate(135deg);
  -moz-transform: rotate(135deg);
  -ms-transform: rotate(135deg);
  -o-transform: rotate(135deg);
  transform: rotate(135deg);
}
.cd-nav-trigger.menu-is-open span::after {
  bottom: 0;
  -webkit-transform: rotate(225deg);
  -moz-transform: rotate(225deg);
  -ms-transform: rotate(225deg);
  -o-transform: rotate(225deg);
  transform: rotate(225deg);
}
#cd-nav ul.is-visible {
  visibility: visible;
  -webkit-transform: scale(1);
  -moz-transform: scale(1);
  -ms-transform: scale(1);
  -o-transform: scale(1);
  transform: scale(1);
  -webkit-transition: -webkit-transform 0.3s, visibility 0s 0s;
  -moz-transition: -moz-transform 0.3s, visibility 0s 0s;
  transition: transform 0.3s, visibility 0s 0s;
}

#cd-nav ul.is-visible li:nth-child(1) {
  /* list items animation */
  -webkit-animation: cd-slide-in 0.3s;
  -moz-animation: cd-slide-in 0.3s;
  animation: cd-slide-in 0.3s;
}
#cd-nav ul.is-visible li:nth-child(2) {
  -webkit-animation: cd-slide-in 0.4s;
  -moz-animation: cd-slide-in 0.4s;
  animation: cd-slide-in 0.4s;
}
#cd-nav ul.is-visible li:nth-child(3) {
  -webkit-animation: cd-slide-in 0.5s;
  -moz-animation: cd-slide-in 0.5s;
  animation: cd-slide-in 0.5s;
}
#cd-nav ul.is-visible li:nth-child(4) {
  -webkit-animation: cd-slide-in 0.6s;
  -moz-animation: cd-slide-in 0.6s;
  animation: cd-slide-in 0.6s;
}
#cd-nav ul.is-visible li:nth-child(5) {
  -webkit-animation: cd-slide-in 0.7s;
  -moz-animation: cd-slide-in 0.7s;
  animation: cd-slide-in 0.7s;
}
#cd-nav ul.is-visible li:nth-child(6) {
  -webkit-animation: cd-slide-in 0.8s;
  -moz-animation: cd-slide-in 0.8s;
  animation: cd-slide-in 0.8s;
}

@-webkit-keyframes cd-slide-in {
  0% {
    -webkit-transform: translateX(100px);
  }

  100% {
    -webkit-transform: translateY(0);
  }
}
@-moz-keyframes cd-slide-in {
  0% {
    -moz-transform: translateX(100px);
  }

  100% {
    -moz-transform: translateY(0);
  }
}
@keyframes cd-slide-in {
  0% {
    -webkit-transform: translateX(100px);
    -moz-transform: translateX(100px);
    -ms-transform: translateX(100px);
    -o-transform: translateX(100px);
    transform: translateX(100px);
  }

  100% {
    -webkit-transform: translateY(0);
    -moz-transform: translateY(0);
    -ms-transform: translateY(0);
    -o-transform: translateY(0);
    transform: translateY(0);
  }
}


text:
pidof () { ps aux | grep $1 | grep -v grep | awk '{print $2}';echo; }

# get folder where this file is in
dirname=`dirname $0`
tmp="${dirname#?}"

if [ "${dirname%$tmp}" != "/" ]; then
	dirname=$PWD/$dirname
fi

### include stuff that has been generated by setup
# system specific stuff (folder...)
. $dirname/../archive/system/smafed.conf

DESC="Spectralmind's Smafe system"
NAME1=smafewrapd
NAME2=smafedistd

# binary
DAEMON1=$DAEMONPATH/bin/bin-internal/$NAME1
# for --startas
DAEMON1_START=$DAEMONPATH/bin/$NAME1.sh

# binary
DAEMON2=$DAEMONPATH/bin/bin-internal/$NAME2
# for --startas
DAEMON2_START=$DAEMONPATH/bin/$NAME2.sh

#smafewrapd
do_start1()
{
  testwrapDaemonrunning=$(ps aux |grep smafewrapd  |grep -v grep  |  wc -l)
  # contains number of lines with that id.
  if [ $testwrapDaemonrunning -eq 0 ]; then
	echo "WARNING: Daemon seems not be running"
	echo "INFO: starting smafewrapd ..."
	# ./smafewrapd.sh --dbconf=smafedbconn-localhost-testsmintapi-smafeadmin.opt --id=testsmintapiwrap
	$DAEMON1_START $DAEMON1_ARGS
  fi

  wrapdpid=$(pidof $DAEMON1)
  if [ -z $wrapdpid ]; then
        echo "ERROR: smafewrapd Daemon could not be started !!!"
  else
        echo "smafewrapd Daemon seems to be running with PID: $wrapdpid"
  fi

}

#smafedistd
do_start2()
{
  testdistdDaemonrunning=$(ps aux |grep smafedistd  |grep -v grep  |  wc -l)
  # contains number of lines with that id.
  if [ $testdistdDaemonrunning -eq 0 ]; then
	echo "WARNING: smafedistd Daemon seems not be running."
	echo "INFO: starting smafedistd ..."
	#./smafedistd.sh --jobs --dbconf=smafedbconn-localhost-testsmintapi-smafeadmin.opt --id=testsmintapidist
	$DAEMON2_START $DAEMON2_ARGS
  fi

  distdpid=$(pidof $DAEMON2)
  if [ -z $distdpid ]; then
	echo "ERROR: smafedistd Daemon could not be started !!!"
  else
	echo "smafedistd Daemon seems to be running with PID: $distdpid"
  fi

}

#smafewrapd
do_stop1()
{
	wrapdpid=$(pidof $DAEMON1)
    if [ ${#wrapdpid} -gt 0 ]; then
            echo "WARNING: stopping smafewrapd"
            while [ ${#wrapdpid} -gt 0 ]; do
                    kill $wrapdpid
                    sleep 1
                    echo "."
                    wrapdpid=$(pidof $DAEMON1)
            done
    fi
}

#smafedistd
do_stop2()
{
	distdpid=$(pidof $DAEMON2)

	if [ ${#distdpid} -gt 0 ]; then
		echo "WARNING: stopping smafedistd"
		while [ ${#distdpid} -gt 0 ]; do
			kill $distdpid
			sleep 1
			echo "."
			distdpid=$(pidof $DAEMON2)
		done
	fi
}

case "$1" in
  start)
	do_start1
	do_start2
	;;

  stop)
	echo "WARNING: stopping Daemons now."
	do_stop1
	do_stop2
	;;

  restart|force-reload)
	#
	# If the "reload" option is implemented then remove the
	# 'force-reload' alias
	#
	echo "WARNING: stopping Daemons now."
	do_stop1
	do_stop2
	do_start1
	do_start2
	;;

  status)
	# find pids
	DAEMON1_PID=$(pidof $DAEMON1)
	DAEMON2_PID=$(pidof $DAEMON2)

	# check if both pids are available:
	if [ -n $DAEMON1_PID -a -n $DAEMON2_PID ]; then

		# echo pids
		echo "Smafe daemons running with PIDS: $DAEMON1_PID (=smafewrapd) and $DAEMON2_PID (=smafedistd)"

		# guess logfile: get most recent logfile in daemon path
		# ls -1t sorts files by modified timestamp and puts one file per line
		LOGFILE1=$(ls -1t $DAEMONPATH/smafewrapd*log 2> /dev/null |head -n 1)
		if [  "$LOGFILE1" != "" ]; then
			echo Assuming active log file: $LOGFILE1
			# start time
			echo -n "Daemon started at: "
			head -n 1 $LOGFILE1 | cut -d " " -f 1-2
			# grep status log entries
			grep "open" $LOGFILE1 |tail -n 6
			# Estimated end time check in last 100 lines and get the last one
			tail -n 100 $LOGFILE1  | grep "Estimated end time" | tail -n 1
			# grep latest status: we assume that in the last 5 lines there are the "sleep" and related lines
			tail -n 5 $LOGFILE1 | grep "Going to sleep"
			tail -n 5 $LOGFILE1 | grep "Will stop daemon after"
		else
        	echo "Warning: No logfile found for smafewrapd"
        fi

		LOGFILE2=$(ls -1t $DAEMONPATH/smafedistd*log 2> /dev/null |head -n 1)
		if [  "$LOGFILE2" != "" ]; then
			echo Assuming active log file: $LOGFILE2
			# start time
			echo -n "Daemon started at: "
			head -n 1 $LOGFILE2 | cut -d " " -f 1-2
			tail -n 100 $LOGFILE2 | grep "open task(s)" | grep -v -- -1 | tail -n 2
			# Last finished job
			tail -n 100 $LOGFILE2  | grep "Finished task: " | tail -n 1
			# grep latest status: we assume that in the last 5 lines there are the "sleep" and related lines
			tail -n 5 $LOGFILE2 | grep "Going to sleep"
			tail -n 5 $LOGFILE2 | grep "Will stop daemon after"
		else
        	echo "Warning: No logfile found for smafedistd"
        fi

	else

		echo One or more smafe daemons NOT running.
		echo PID of smafewrapd: $DAEMON1_PID
		echo PID of smafedistd: $DAEMON2_PID

	fi

	;;

  *)
	#echo "Usage: $SCRIPTNAME {start|stop|restart|reload|force-reload}" >&2
	echo "Usage: $SCRIPTNAME {start|stop|restart|force-reload}" >&2
	exit 3
	;;
esac


text:
ACCEPTED

#### According to
Interim Register of Marine and Nonmarine Genera

#### Published in
Biologie Amérique Australe, Paris 1: 44.

#### Original name
null

### Remarks
null


text:
import numpy as np
from numpy.testing import assert_array_equal, assert_raises
from skimage.data import moon
from skimage.feature import CENSURE

img = moon()

def test_censure_on_rectangular_images():
    """Censure feature detector should work on 2D image of any shape."""
    rect_image = np.random.random((300, 200))
    square_image = np.random.random((200, 200))
    CENSURE().detect((square_image))
    CENSURE().detect((rect_image))

def test_keypoints_censure_color_image_unsupported_error():
    """Censure keypoints can be extracted from gray-scale images only."""
    assert_raises(ValueError, CENSURE().detect, np.zeros((20, 20, 3)))

def test_keypoints_censure_mode_validity_error():
    """Mode argument in keypoints_censure can be either DoB, Octagon or
    STAR."""
    assert_raises(ValueError, CENSURE, mode='dummy')

def test_keypoints_censure_scale_range_error():
    """Difference between the the max_scale and min_scale parameters in
    keypoints_censure should be greater than or equal to two."""
    assert_raises(ValueError, CENSURE, min_scale=1, max_scale=2)

def test_keypoints_censure_moon_image_dob():
    """Verify the actual Censure keypoints and their corresponding scale with
    the expected values for DoB filter."""
    detector = CENSURE()
    detector.detect(img)
    expected_keypoints = np.array([[ 21, 497],
                                   [ 36,  46],
                                   [119, 350],
                                   [185, 177],
                                   [287, 250],
                                   [357, 239],
                                   [463, 116],
                                   [464, 132],
                                   [467, 260]])
    expected_scales = np.array([3, 4, 4, 2, 2, 3, 2, 2, 2])

    assert_array_equal(expected_keypoints, detector.keypoints)
    assert_array_equal(expected_scales, detector.scales)

def test_keypoints_censure_moon_image_octagon():
    """Verify the actual Censure keypoints and their corresponding scale with
    the expected values for Octagon filter."""

    detector = CENSURE(mode='octagon')
    detector.detect(img)
    expected_keypoints = np.array([[ 21, 496],
                                   [ 35,  46],
                                   [287, 250],
                                   [356, 239],
                                   [463, 116]])

    expected_scales = np.array([3, 4, 2, 2, 2])

    assert_array_equal(expected_keypoints, detector.keypoints)
    assert_array_equal(expected_scales, detector.scales)

def test_keypoints_censure_moon_image_star():
    """Verify the actual Censure keypoints and their corresponding scale with
    the expected values for STAR filter."""
    detector = CENSURE(mode='star')
    detector.detect(img)
    expected_keypoints = np.array([[ 21, 497],
                                  [ 36,  46],
                                  [117, 356],
                                  [185, 177],
                                  [260, 227],
                                  [287, 250],
                                  [357, 239],
                                  [451, 281],
                                  [463, 116],
                                  [467, 260]])

    expected_scales = np.array([3, 3, 6, 2, 3, 2, 3, 5, 2, 2])

    assert_array_equal(expected_keypoints, detector.keypoints)
    assert_array_equal(expected_scales, detector.scales)

if __name__ == '__main__':
    from numpy import testing
    testing.run_module_suite()


text:
"""
Test Options
------------

"""
from virtstrap.options import *

def test_initialize_cli_list():
    l = CLIList()
    assert isinstance(l, list)

def test_cli_list_acts_like_list():
    """Ensure that CLIList still acts like a list"""
    l = CLIList([1,2,3,4])
    assert l[0] == 1
    assert l[1:] == [2,3,4]
    l.append(5)
    assert l == [1,2,3,4,5]
    assert l[-1] == 5

def test_cli_list_converts_to_cli_string():
    l1 = CLIList([1,2,3,4])
    assert str(l1) == '1,2,3,4'
    assert unicode(l1) == u'1,2,3,4'

    l2 = CLIList(['a','b','c','d'])
    assert str(l2) == 'a,b,c,d'
    assert unicode(l2) == u'a,b,c,d'

def test_convert_base_options_to_args():
    base_parser = create_base_parser()
    options = base_parser.parse_args(args=[])
    converted = base_options_to_args(options)
    assert converted == ['--config-file=VEfile', '--log=.virtstrap.log',
            '--profiles=development', '--verbosity=2',
            '--virtstrap-dir=.vs.env']

def test_convert_base_options_to_args_with_multiple_profiles():
    """Check that multiple profiles show up correctly"""
    # This is a regression test.
    base_parser = create_base_parser()
    options = base_parser.parse_args(
            args=['--profiles=development,production'])
    converted = base_options_to_args(options)
    assert converted == ['--config-file=VEfile', '--log=.virtstrap.log',
            '--profiles=development,production', '--verbosity=2',
            '--virtstrap-dir=.vs.env']


text:
class FieldsController < ApplicationController

  before_action :find_lab

  def options
    @fields = @lab.fields.includes(:children).where(parent_id: nil).order(:name).collect do |field|
      [field, field.children.sort_by { |field| field.name.downcase }]
    end.flatten
  end

  private

  def find_lab
    @lab = current_user.labs.find_by_slug!(params[:lab_id])
    save_lab_in_cookies(@lab)
  end

end


text:
from __future__ import absolute_import

from django.db.models import Field
from django.utils import six
from django.utils.encoding import smart_text

from .validators import Md5Validator

class Md5SumField(Field):
    default_validators = [Md5Validator()]

    def to_python(self, value):
        if isinstance(value, six.string_types) or value is None:
            return value
        return smart_text(value)

    def get_prep_value(self, value):
        value = super(Md5SumField, self).get_prep_value(value)
        return self.to_python(value)

    def get_internal_type(self):
        return 'TextField'

from south.modelsinspector import add_introspection_rules
add_introspection_rules([], ["^api\.v1\.common\.fields\.Md5SumField"])


text:
import {
  AfterViewInit,
  Component,
  DoCheck,
  EventEmitter,
  Input,
  IterableDiffers,
  KeyValueDiffers,
  OnDestroy,
  OnInit,
  Output
} from '@angular/core';
import { ButtonActions } from '../redux/actions/topologyRenderer.actions';
import { NgRedux } from '@angular-redux/store';
import {AppState} from '../redux/store/app.store';
import {ButtonsStateModel} from '../models/buttonsState.model';

@Component({
  selector: 'app-node',
  templateUrl: './node.component.html',
  styleUrls: ['./node.component.css'],
})
export class NodeComponent implements OnInit, AfterViewInit, DoCheck, OnDestroy {
  public items: string[] = ['Item 1', 'Item 2', 'Item 3'];
  public accordionGroupPanel = 'accordionGroupPanel';
  public customClass = 'customClass';
  connectorEndpointVisible = false;
  startTime;
  endTime;
  longpress = false;
  makeSelectionVisible = false;
  /**
   * local representation of the Redux state of the navbar buttons.
   */
  navbarButtonsState: ButtonsStateModel;
  /**
   * Redux subscriptions
   */
  subscription;
  /**
   * Input/Output variables
   */
  @Input() title: string;
  @Input() left: number;
  @Input() top: number;
  @Output() sendId: EventEmitter<string>;
  @Input() nodeColor: string;
  @Input() nodeImageUrl: string;
  @Output() askForRepaint: EventEmitter<string>;
  @Input() navBarButtonClicked: any;
  @Output() addNodeToDragSelection: EventEmitter<any>;
  @Output() checkIfNodeInSelection: EventEmitter<string>;
  @Input() selectedNodes: any[] = [];
  differSelectedNodes: any;
  differNavBar: any;
  differUnselectedNodes: any;

  public status: any = {
    isFirstOpen: true,
    isOpen: false
  };

  public addItem(): void {
    this.items.push(`Items ${this.items.length + 1}`);
  }

  constructor(differsSelectedNodes: IterableDiffers,
              differsNavBar: KeyValueDiffers,
              differsUnselectedNodes: IterableDiffers,
              private ngRedux: NgRedux<AppState>,
              private actions: ButtonActions) {
    this.sendId = new EventEmitter();
    this.askForRepaint = new EventEmitter();
    this.addNodeToDragSelection = new EventEmitter();
    this.checkIfNodeInSelection = new EventEmitter();
    this.differSelectedNodes = differsSelectedNodes.find([]).create(null);
    this.differNavBar = differsNavBar.find([]).create(null);
    this.differUnselectedNodes = differsUnselectedNodes.find([]).create(null);
    /**
     * Redux subscriptions
     * @type {Subscription}
     */
    this.subscription = ngRedux.select<any>('buttonsState')
      .subscribe(newObject => {
        this.navbarButtonsState = newObject.buttonsState;
        setTimeout(() => this.askForRepaint.emit(), 1);
      });
  }

  ngOnInit() {
  }

  ngAfterViewInit(): void {
    this.sendId.emit(this.title);
  }

  ngDoCheck(): void {
    const selectedNodes = this.differSelectedNodes.diff(this.selectedNodes);
    const navBarButtonClicked = this.differNavBar.diff(this.navBarButtonClicked);

    if (selectedNodes) {
      selectedNodes.forEachAddedItem(r => {
          if (this.title === r.item) {
            this.makeSelectionVisible = true;
          }
        }
      );
      selectedNodes.forEachRemovedItem(r => {
          if (this.title === r.item) {
            this.makeSelectionVisible = false;
          }
        }
      );
    } else if (navBarButtonClicked) {
      // TODO Auf Redux umändern bzw. nicht zwingend notwendig einzelne nodes auszuklappen.
      /*switch (navBarButtonClicked._mapHead.currentValue) {
        case 'targetLocations': {
          this.targetLocationsVisible = !this.targetLocationsVisible;
          break;
        }
        case 'policies': {
          this.policiesVisible = !this.policiesVisible;
          break;
        }
        case 'requirementsCapabilities': {
          this.requirementsCapabilitiesVisible = !this.requirementsCapabilitiesVisible;
          break;
        }
        case 'deploymentArtifacts': {
          this.deploymentArtifactsVisible = !this.deploymentArtifactsVisible;
          break;
        }
        case 'properties': {
          this.propertiesVisible = !this.propertiesVisible;
          break;
        }
        case 'types': {
          this.typesVisible = !this.typesVisible;
          break;
        }
        case 'ids': {
          this.idsVisible = !this.idsVisible;
          break;
        }
      }*/
      setTimeout(() => this.askForRepaint.emit(), 1);
    }
  }

  trackTimeOfMouseDown(): void {
    this.startTime = new Date().getTime();
  }

  trackTimeOfMouseUp(): void {
    this.endTime = new Date().getTime();
    this.testTimeDifference();
  }

  private testTimeDifference(): void {
    if ((this.endTime - this.startTime) < 250) {
      this.longpress = false;
    } else if (this.endTime - this.startTime >= 300) {
      this.longpress = true;
    }
  }

  showConnectorEndpoint($event): void {
    $event.stopPropagation();
    if ($event.ctrlKey) {
      this.addNodeToDragSelection.emit(this.title);
      this.makeSelectionVisible = !this.makeSelectionVisible;
    } else {
      (this.longpress) ? $event.preventDefault() : this.connectorEndpointVisible = !this.connectorEndpointVisible;
      this.checkIfNodeInSelection.emit(this.title);
    }
  }

  ngOnDestroy() {
    this.subscription.unsubscribe();
  }
}


text:
from __future__ import absolute_import
from __future__ import division
import os

import numpy as np
from six.moves import range
from tensorflow.contrib.framework.python.ops import add_arg_scope
import tensorflow as tf
from tensorflow.contrib import layers

def makedirs(filename):
    if not os.path.exists(os.path.dirname(filename)):
        os.makedirs(os.path.dirname(filename))

def save_image_collections(x, filename, shape=(10, 10), scale_each=False,
                           transpose=False):
    """
    :param shape: tuple
        The shape of final big images.
    :param x: numpy array
        Input image collections. (number_of_images, rows, columns, channels) or
        (number_of_images, channels, rows, columns)
    :param scale_each: bool
        If true, rescale intensity for each image.
    :param transpose: bool
        If true, transpose x to (number_of_images, rows, columns, channels),
        i.e., put channels behind.
    :return: `uint8` numpy array
        The output image.
    """
    from skimage import io, img_as_ubyte
    from skimage.exposure import rescale_intensity
    makedirs(filename)
    n = x.shape[0]
    if transpose:
        x = x.transpose(0, 2, 3, 1)
    if scale_each is True:
        for i in range(n):
            x[i] = rescale_intensity(x[i], out_range=(0, 1))
    n_channels = x.shape[3]
    x = img_as_ubyte(x)
    r, c = shape
    if r * c < n:
        print('Shape too small to contain all images')
    h, w = x.shape[1:3]
    ret = np.zeros((h * r, w * c, n_channels), dtype='uint8')
    for i in range(r):
        for j in range(c):
            if i * c + j < n:
                ret[i * h:(i + 1) * h, j * w:(j + 1) * w, :] = x[i * c + j]
    ret = ret.squeeze()
    io.imsave(filename, ret)

def average_rmse_over_batches(rmses, sizes):
    """
    Average rmses over batches (may not be of the same size).

    :param rmses: A list of per-batch rmses.
    :param sizes: A list of batch sizes.
    :return: The average rmse.
    """
    rmses = np.array(rmses)
    sizes = np.array(sizes)
    return np.sqrt(np.sum(rmses ** 2 * sizes) / np.sum(sizes))

@add_arg_scope
def conv2d_transpose(
        inputs,
        out_shape,
        kernel_size=(5, 5),
        stride=(1, 1),
        activation_fn=tf.nn.relu,
        normalizer_fn=None,
        normalizer_params=None,
        weights_initializer=layers.xavier_initializer(),
        scope=None,
        reuse=None):
    batchsize = tf.shape(inputs)[0]
    in_channels = int(inputs.get_shape()[-1])

    output_shape = tf.stack([batchsize, out_shape[0],
                             out_shape[1], out_shape[2]])
    filter_shape = [kernel_size[0], kernel_size[1], out_shape[2], in_channels]

    with tf.variable_scope(scope, 'Conv2d_transpose', [inputs], reuse=reuse):
        w = tf.get_variable('weights', filter_shape,
                            initializer=weights_initializer)

        outputs = tf.nn.conv2d_transpose(
            inputs, w, output_shape=output_shape,
            strides=[1, stride[0], stride[1], 1])
        outputs.set_shape([None] + out_shape)

        if not normalizer_fn:
            biases = tf.get_variable('biases', [out_shape[2]],
                                     initializer=tf.constant_initializer(0.0))
            outputs = tf.nn.bias_add(outputs, biases)

        if normalizer_fn is not None:
            normalizer_params = normalizer_params or {}
            outputs = normalizer_fn(outputs, **normalizer_params)

        if activation_fn is not None:
            outputs = activation_fn(outputs)

    return outputs


text:
/** Automatically generated file. DO NOT MODIFY */
package eu.drseus.cb.android;

public final class BuildConfig {
    public final static boolean DEBUG = true;
}


text:
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

    <meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
    <meta http-equiv="Content-Style-Type" content="text/css" />

    <title>Removing Data Items</title>
    <link rel="StyleSheet" href="css/rembrandt_Manage_Workspace.css" type="text/css" media="all" />
    <link rel="StyleSheet" href="css/webworks.css" type="text/css" media="all" />

      Managing Your Workspace > Managing Lists Overview > Removing Data Items

Removing Data Items

You may delete items from an existing list, then view the new list or save the list on your computer. Follow these steps:

1.

Select the My Workspace tab. On the page, Rembrandt displays the following sub-categories as hyptertext links: Manage Lists, Organize, Import, and Export. By default, the page opens to the Manage Lists subcategory.

2.

At the top of the Manage List page, click on the type of lists you would like to view (PatientDID List, Gene List, Reporter List).

3.

Find the list you want to change, and click on the box next to the list name.

4.

Click  the details icon to display all the items in the selected list.

Click the delete link beside the item you want to delete.The item is removed from the list.Once you remove the items, you can view the new list or export the list to your computer. See Exporting Lists and Queries.


text:
describe('convolutional layer: UpSampling3D', function() {
  const assert = chai.assert
  const styles = testGlobals.styles
  const logTime = testGlobals.logTime
  const stringifyCondensed = testGlobals.stringifyCondensed
  const approxEquals = KerasJS.testUtils.approxEquals
  const layers = KerasJS.layers

  const testParams = [
    { inputShape: [2, 2, 2, 3], attrs: { size: [2, 2, 2], data_format: 'channels_last' } },
    { inputShape: [2, 2, 2, 3], attrs: { size: [2, 2, 2], data_format: 'channels_first' } },
    { inputShape: [2, 1, 3, 2], attrs: { size: [1, 3, 2], data_format: 'channels_last' } },
    { inputShape: [2, 1, 3, 3], attrs: { size: [2, 1, 2], data_format: 'channels_first' } },
    { inputShape: [2, 1, 3, 2], attrs: { size: 2, data_format: 'channels_last' } }
  ]

  before(function() {
    console.log('\n%cconvolutional layer: UpSampling3D', styles.h1)
  })

  /*********************************************************
   * CPU
   *********************************************************/
  describe('CPU', function() {
    before(function() {
      console.log('\n%cCPU', styles.h2)
    })

    testParams.forEach(({ inputShape, attrs }, i) => {
      const key = `convolutional.UpSampling3D.${i}`
      const title = `[${key}] [CPU] size ${attrs.size} upsampling on ${JSON.stringify(
        inputShape
      )} input, data_format='${attrs.data_format}'`

      it(title, function() {
        console.log(`\n%c${title}`, styles.h3)
        let testLayer = new layers.UpSampling3D(attrs)
        let t = new KerasJS.Tensor(TEST_DATA[key].input.data, TEST_DATA[key].input.shape)
        console.log('%cin', styles.h4, stringifyCondensed(t.tensor))
        const startTime = performance.now()
        t = testLayer.call(t)
        const endTime = performance.now()
        console.log('%cout', styles.h4, stringifyCondensed(t.tensor))
        logTime(startTime, endTime)
        const dataExpected = new Float32Array(TEST_DATA[key].expected.data)
        const shapeExpected = TEST_DATA[key].expected.shape
        assert.deepEqual(t.tensor.shape, shapeExpected)
        assert.isTrue(approxEquals(t.tensor, dataExpected))
      })
    })
  })

  /*********************************************************
   * GPU
   *********************************************************/
  describe('GPU', function() {
    before(function() {
      console.log('\n%cGPU', styles.h2)
    })

    testParams.forEach(({ inputShape, attrs }, i) => {
      const key = `convolutional.UpSampling3D.${i}`
      const title = `[${key}] [GPU] size ${attrs.size} upsampling on ${JSON.stringify(
        inputShape
      )} input, data_format='${attrs.data_format}'`

      it(title, function() {
        console.log(`\n%c${title}`, styles.h3)
        let testLayer = new layers.UpSampling3D(Object.assign(attrs, { gpu: true }))
        let t = new KerasJS.Tensor(TEST_DATA[key].input.data, TEST_DATA[key].input.shape)
        console.log('%cin', styles.h4, stringifyCondensed(t.tensor))
        const startTime = performance.now()
        t = testLayer.call(t)
        const endTime = performance.now()
        console.log('%cout', styles.h4, stringifyCondensed(t.tensor))
        logTime(startTime, endTime)
        const dataExpected = new Float32Array(TEST_DATA[key].expected.data)
        const shapeExpected = TEST_DATA[key].expected.shape
        assert.deepEqual(t.tensor.shape, shapeExpected)
        assert.isTrue(approxEquals(t.tensor, dataExpected))
      })
    })
  })
})


text:
/*
 *Creates  matrix-like screen using C++ threads.

 *Reference - http://www.quora.com/What-is-the-best-C++-code-that-you-have-ever-written/answer/Sumit-Sahrawat-1?srid=p2CT&share=1

 *Added my own- Instead of using constant width I used winsize + ioctl to detect terminal width

 *Use "Green on Black" as terminal setting
*/

#include<iostream>
#include<sys/ioctl.h>
#include<chrono>  //time library
#include<string>
#include<thread>
#include<cstdlib>

const int width = 158;      //width of terminal window
const int flipsPerLine = 5; //No. of columns changed per line
const int msSleep = 30;     //Delay between lines in milisecond

int main()
{
    srand(time_t(NULL));    //random seed
    bool switches[width] = {true};
    const std::string randChars = "1234567890/*-+.,./;[]\\=_~`!@#$%^&*()";
    const auto glen = randChars.size();
    struct winsize w;
    ioctl(0, TIOCGWINSZ, &w);
    while(true)
    {
        for(int i = 0; i != w.ws_col; ++i)
        {
            if(switches[i])
                std::cout<<randChars[rand() % glen];
            else
                std::cout<<' ';
        }
        std::cout<<std::endl;
        for(int i = 0; i != flipsPerLine; ++i)
        {
            int x = rand() % w.ws_col;
            switches[x] = !switches[x]; //toggle switch;
            std::this_thread::sleep_for(std::chrono::milliseconds(msSleep));
        }
    }
    return 0;
}


text:
const nameIt = require("name-it")
    , available = require("npm-available-array")
    ;

/**
 * namly
 * Generates a set of names using [`name-it`](https://github.com/IonicaBizau/name-it)
 * and checks if they are available on the NPM registry using
 * [`npm-available-array](http://github.com/IonicaBizau/npm-available-array).
 *
 * @name namly
 * @function
 * @param {String} name A keyword to use for generating names.
 * @param {Function} callback The callback function.
 */
function namly(name, callback) {
    available(
        nameIt(name)._.concat(name)
      , callback
    );
}

module.exports = namly;


text:
package uk.dangrew.nuts.apis.tesco.api.parsing;

import java.util.function.Function;
import java.util.regex.Pattern;

import uk.dangrew.nuts.apis.tesco.model.api.CalculatedNutrientValue;
import uk.dangrew.nuts.apis.tesco.model.api.CalculatedNutrition;

public enum CalculatedNutritionType {

   EnergyInKcal(
            Pattern.compile( ".*kcal.*" ),
            CalculatedNutrition::energyInKcal
   ),
   EnergyInKj(
            Pattern.compile( ".*kj.*" ),
            CalculatedNutrition::energyInKj
   ),
   Fats(
            Pattern.compile( ".*fat.*" ),
            CalculatedNutrition::fat
   ),
   Saturates(
            Pattern.compile( ".*saturate.*" ),
            CalculatedNutrition::saturates
   ),
   Carbohydrate(
            Pattern.compile( ".*carbohydrate.*" ),
            CalculatedNutrition::carbohydrates
   ),
   Sugars(
            Pattern.compile( ".*sugar.*" ),
            CalculatedNutrition::sugars
   ),
   Fibre(
            Pattern.compile( ".*fibre.*" ),
            CalculatedNutrition::fibre
   ),
   Protein(
            Pattern.compile( ".*protein.*" ),
            CalculatedNutrition::protein
   ),
   Salt(
            Pattern.compile( ".*salt.*" ),
            CalculatedNutrition::salt
   ),
   Calcium(
            Pattern.compile( ".*calcium.*" ),
            CalculatedNutrition::calcium
   ),
   Thiamin(
            Pattern.compile( ".*thiamin.*" ),
            CalculatedNutrition::thiamin
   ),
   Riboflavin(
            Pattern.compile( ".*riboflavin.*" ),
            CalculatedNutrition::riboflavin
   ),
   Niacin(
            Pattern.compile( ".*niacin.*" ),
            CalculatedNutrition::niacin
   ),
   FolicAcid(
            Pattern.compile( ".*folic( )*acid.*" ),
            CalculatedNutrition::folicAcid
   ),
   Iron(
            Pattern.compile( ".*iron.*" ),
            CalculatedNutrition::iron
   ),
   Omega3(
            Pattern.compile( ".*omega.*" ),
            CalculatedNutrition::omega3
   );

   private final Pattern pattern;
   private final Function< CalculatedNutrition, CalculatedNutrientValue > valueRetriever;

   private CalculatedNutritionType(
            Pattern pattern,
            Function< CalculatedNutrition, CalculatedNutrientValue > valueRetriever
   ) {
      this.pattern = pattern;
      this.valueRetriever = valueRetriever;
   }//End Constructor

   public boolean matches( String string ) {
      if ( string == null ) {
         return false;
      }
      return pattern.matcher( string.toLowerCase() ).find();
   }//End Method

   public CalculatedNutrientValue redirect( CalculatedNutrition nutrition ) {
      return valueRetriever.apply( nutrition );
   }//End Method

}//End Enum


text:
'use strict';
const benchmark = require('nodemark');

const sync = (fn) => {
	display(benchmark(fn));
};

const async = (fn) => {
	const wrapped = cb => fn().then(() => cb(), cb);
	benchmark(wrapped).then(display);
};

const display = (result) => {
	process.stdout.write(String(result).replace(/ \(.*/, ''));
	process.exit();
};

(async () => {
	process.on('unhandledRejection', (err) => { throw err; });
	const ctx = JSON.parse(process.argv[2]);
	const type = require(`./types/${ctx.type}`);
	const db = await require('./drivers').get(ctx.driver)('../temp/benchmark.db', ctx.pragma);
	if (!type.readonly) {
		for (const table of ctx.tables) await db.exec(`DELETE FROM ${table} WHERE rowid > 1;`);
		await db.exec('VACUUM;');
	}
	const fn = type[ctx.driver](db, ctx);
	if (typeof fn === 'function') setImmediate(sync, fn);
	else setImmediate(async, await fn);
})();


text:
using bstrkr.core;

namespace bstrkr.mvvm.viewmodels
{
    public class AreaViewModel : BusTrackerViewModelBase
    {
        public AreaViewModel(Area area, string name)
        {
            this.Area = area;
            this.Name = name;
        }

        public Area Area { get; private set; }

        public string Name { get; }

        public override string ToString()
        {
            return this.Name;
        }
    }
}


text:
@implementation HMLanCommunicationKeyModel

@synthesize  lanCommunicationKey = _lanCommunicationKey;

+(NSString *)tableName
{
    return @"lanCommunicationKey";
}

+ (NSArray*)columns
{
    return @[
             column("familyId", "text"),
             column("lanCommunicationKey", "text"),
             ];
}

+ (NSString*)constrains
{
    return @"UNIQUE (familyId) ON CONFLICT REPLACE";
}

-(void)setInsertWithDb:(FMDatabase *)db
{
    [self insertModel:db];
}

+ (NSString *)lanCommunicationKeyOfFamilyId:(NSString *)familyId
{
    __block HMLanCommunicationKeyModel *lanCommunicationKeyModel = nil;
    NSString *sql = [NSString stringWithFormat:@"select * from lanCommunicationKey where familyId = '%@'",familyId];
    queryDatabase(sql, ^(FMResultSet *rs) {
        lanCommunicationKeyModel = [HMLanCommunicationKeyModel object:rs];
    });
    return lanCommunicationKeyModel.lanCommunicationKey;
}

-(void)setLanCommunicationKey:(NSString *)lanCommunicationKey {
//    NSData *orignalData = [lanCommunicationKey dataUsingEncoding:NSUTF8StringEncoding];
//    NSData * encryptedData = [orignalData hm_AES128EncryptWithKey:@"Zhijia365 2049abc" iv:nil];
//    NSString * encryptedKey = [[NSString alloc] initWithData:encryptedData encoding:NSUTF8StringEncoding];
//    DLog(@"加密前的局域网密钥: %@ 加密后: %@",lanCommunicationKey,encryptedKey);
    _lanCommunicationKey = lanCommunicationKey;
}

- (NSString *)lanCommunicationKey {
//    NSData *encryptedData = [_lanCommunicationKey dataUsingEncoding:NSUTF8StringEncoding];
//    NSData * decryptData = [encryptedData hm_AES128DecryptWithKey:@"Zhijia365 2049abc" iv:nil];
//    NSString *originalKey = [[NSString alloc] initWithData:decryptData encoding:NSUTF8StringEncoding];
//    DLog(@"解密前局域网通信密钥: %@ 解密后: %@",_lanCommunicationKey,originalKey);
    return _lanCommunicationKey;
}

@end


text:
// Copyright (c) 2011-2019 The Bitcoin Core developers
// Distributed under the MIT software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.

#include <qt/transactionrecord.h>

#include <chain.h>
#include <interfaces/wallet.h>
#include <key_io.h>
#include <wallet/ismine.h>

#include <stdint.h>

#include <QDateTime>

/* Return positive answer if transaction should be shown in list.
 */
bool TransactionRecord::showTransaction()
{
    // There are currently no cases where we hide transactions, but
    // we may want to use this in the future for things like RBF.
    return true;
}

/*
 * Decompose CWallet transaction to model transaction records.
 */
QList<TransactionRecord> TransactionRecord::decomposeTransaction(const interfaces::WalletTx& wtx)
{
    QList<TransactionRecord> parts;
    int64_t nTime = wtx.time;
    CAmount nCredit = wtx.credit;
    CAmount nDebit = wtx.debit;
    CAmount nNet = nCredit - nDebit;
    uint256 hash = wtx.tx->GetHash();
    std::map<std::string, std::string> mapValue = wtx.value_map;

    if (nNet > 0 || wtx.is_coinbase)
    {
        //
        // Credit
        //
        for(unsigned int i = 0; i < wtx.tx->vout.size(); i++)
        {
            const CTxOut& txout = wtx.tx->vout[i];
            isminetype mine = wtx.txout_is_mine[i];
            if(mine)
            {
                TransactionRecord sub(hash, nTime);
                sub.idx = i; // vout index
                sub.credit = txout.nValue;
                sub.involvesWatchAddress = mine & ISMINE_WATCH_ONLY;
                if (wtx.txout_address_is_mine[i])
                {
                    // Received by Bitcoin Address
                    sub.type = TransactionRecord::RecvWithAddress;
                    sub.address = EncodeDestination(wtx.txout_address[i]);
                }
                else
                {
                    // Received by IP connection (deprecated features), or a multisignature or other non-simple transaction
                    sub.type = TransactionRecord::RecvFromOther;
                    sub.address = mapValue["from"];
                }
                if (wtx.is_coinbase)
                {
                    // Generated
                    sub.type = TransactionRecord::Generated;
                }

                parts.append(sub);
            }
        }
    }
    else
    {
        bool involvesWatchAddress = false;
        isminetype fAllFromMe = ISMINE_SPENDABLE;
        for (const isminetype mine : wtx.txin_is_mine)
        {
            if(mine & ISMINE_WATCH_ONLY) involvesWatchAddress = true;
            if(fAllFromMe > mine) fAllFromMe = mine;
        }

        isminetype fAllToMe = ISMINE_SPENDABLE;
        for (const isminetype mine : wtx.txout_is_mine)
        {
            if(mine & ISMINE_WATCH_ONLY) involvesWatchAddress = true;
            if(fAllToMe > mine) fAllToMe = mine;
        }

        if (fAllFromMe && fAllToMe)
        {
            // Payment to self
            std::string address;
            for (auto it = wtx.txout_address.begin(); it != wtx.txout_address.end(); ++it) {
                if (it != wtx.txout_address.begin()) address += ", ";
                address += EncodeDestination(*it);
            }

            CAmount nChange = wtx.change;
            parts.append(TransactionRecord(hash, nTime, TransactionRecord::SendToSelf, address, -(nDebit - nChange), nCredit - nChange));
            parts.last().involvesWatchAddress = involvesWatchAddress;   // maybe pass to TransactionRecord as constructor argument
        }
        else if (fAllFromMe)
        {
            //
            // Debit
            //
            CAmount nTxFee = nDebit - wtx.tx->GetValueOut();

            for (unsigned int nOut = 0; nOut < wtx.tx->vout.size(); nOut++)
            {
                const CTxOut& txout = wtx.tx->vout[nOut];
                TransactionRecord sub(hash, nTime);
                sub.idx = nOut;
                sub.involvesWatchAddress = involvesWatchAddress;

                if(wtx.txout_is_mine[nOut])
                {
                    // Ignore parts sent to self, as this is usually the change
                    // from a transaction sent back to our own address.
                    continue;
                }

                if (!boost::get<CNoDestination>(&wtx.txout_address[nOut]))
                {
                    // Sent to Bitcoin Address
                    sub.type = TransactionRecord::SendToAddress;
                    sub.address = EncodeDestination(wtx.txout_address[nOut]);
                }
                else
                {
                    // Sent to IP, or other non-address transaction like OP_EVAL
                    sub.type = TransactionRecord::SendToOther;
                    sub.address = mapValue["to"];
                }

                CAmount nValue = txout.nValue;
                /* Add fee to first output */
                if (nTxFee > 0)
                {
                    nValue += nTxFee;
                    nTxFee = 0;
                }
                sub.debit = -nValue;

                parts.append(sub);
            }
        }
        else
        {
            //
            // Mixed debit transaction, can't break down payees
            //
            parts.append(TransactionRecord(hash, nTime, TransactionRecord::Other, "", nNet, 0));
            parts.last().involvesWatchAddress = involvesWatchAddress;
        }
    }

    return parts;
}

void TransactionRecord::updateStatus(const interfaces::WalletTxStatus& wtx, const uint256& block_hash, int numBlocks, int64_t block_time)
{
    // Determine transaction status

    // Sort order, unrecorded transactions sort to the top
    status.sortKey = strprintf("%010d-%01d-%010u-%03d",
        wtx.block_height,
        wtx.is_coinbase ? 1 : 0,
        wtx.time_received,
        idx);
    status.countsForBalance = wtx.is_trusted && !(wtx.blocks_to_maturity > 0);
    status.depth = wtx.depth_in_main_chain;
    status.m_cur_block_hash = block_hash;

    const bool up_to_date = ((int64_t)QDateTime::currentMSecsSinceEpoch() / 1000 - block_time < MAX_BLOCK_TIME_GAP);
    if (up_to_date && !wtx.is_final) {
        if (wtx.lock_time < LOCKTIME_THRESHOLD) {
            status.status = TransactionStatus::OpenUntilBlock;
            status.open_for = wtx.lock_time - numBlocks;
        }
        else
        {
            status.status = TransactionStatus::OpenUntilDate;
            status.open_for = wtx.lock_time;
        }
    }
    // For generated transactions, determine maturity
    else if(type == TransactionRecord::Generated)
    {
        if (wtx.blocks_to_maturity > 0)
        {
            status.status = TransactionStatus::Immature;

            if (wtx.is_in_main_chain)
            {
                status.matures_in = wtx.blocks_to_maturity;
            }
            else
            {
                status.status = TransactionStatus::NotAccepted;
            }
        }
        else
        {
            status.status = TransactionStatus::Confirmed;
        }
    }
    else
    {
        if (status.depth < 0)
        {
            status.status = TransactionStatus::Conflicted;
        }
        else if (status.depth == 0)
        {
            status.status = TransactionStatus::Unconfirmed;
            if (wtx.is_abandoned)
                status.status = TransactionStatus::Abandoned;
        }
        else if (status.depth < RecommendedNumConfirmations)
        {
            status.status = TransactionStatus::Confirming;
        }
        else
        {
            status.status = TransactionStatus::Confirmed;
        }
    }
    status.needsUpdate = false;
}

bool TransactionRecord::statusUpdateNeeded(const uint256& block_hash) const
{
    assert(!block_hash.IsNull());
    return status.m_cur_block_hash != block_hash || status.needsUpdate;
}

QString TransactionRecord::getTxHash() const
{
    return QString::fromStdString(hash.ToString());
}

int TransactionRecord::getOutputIndex() const
{
    return idx;
}


text:
package com.onegini.mobile.exampleapp.view.action.passwordauth;

import static android.content.Intent.FLAG_ACTIVITY_NEW_TASK;

import android.content.Context;
import android.content.Intent;
import com.onegini.mobile.exampleapp.view.activity.PasswordAuthenticatorDeregistrationActivity;
import com.onegini.mobile.sdk.android.handlers.action.OneginiCustomAuthDeregistrationAction;
import com.onegini.mobile.sdk.android.handlers.request.callback.OneginiCustomAuthDeregistrationCallback;

public class PasswordCustomAuthDeregistrationAction implements OneginiCustomAuthDeregistrationAction {

  public static OneginiCustomAuthDeregistrationCallback CALLBACK;

  private final Context context;

  public PasswordCustomAuthDeregistrationAction(final Context context) {
    this.context = context;
  }

  @Override
  public void finishDeregistration(final OneginiCustomAuthDeregistrationCallback callback, final String s) {
    CALLBACK = callback;

    final Intent intent = new Intent(context, PasswordAuthenticatorDeregistrationActivity.class);
    intent.addFlags(FLAG_ACTIVITY_NEW_TASK);
    context.startActivity(intent);
  }
}


text:
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
  <component name="GradleSettings">
    <option name="gradleHome" value="$USER_HOME$/Installations/gradle-1.4" />
    <option name="preferLocalInstallationToWrapper" value="true" />
  </component>
</project>


text:
package com.android.nitecafe.whirlpoolnews.controllers;

import com.android.nitecafe.whirlpoolnews.ui.interfaces.INewsFragment;
import com.android.nitecafe.whirlpoolnews.web.interfaces.IWhirlpoolRestService;

import javax.inject.Inject;

public class NewsController {

    private IWhirlpoolRestService whirlpoolRestService;
    private INewsFragment newsFragment;

    @Inject
    public NewsController(IWhirlpoolRestService whirlpoolRestService) {
        this.whirlpoolRestService = whirlpoolRestService;
    }

    public void GetNews() {
        whirlpoolRestService.GetNews()
                .subscribe(newsList -> {
                    if (newsFragment != null) {
                        newsFragment.DisplayNews(newsList.getNEWS());
                        HideAllProgressBar();
                    }
                }, throwable -> {
                    if (newsFragment != null) {
                        newsFragment.DisplayErrorMessage();
                        HideAllProgressBar();
                    }
                });
    }

    private void HideAllProgressBar() {
        newsFragment.HideRefreshLoader();
        newsFragment.HideCenterProgressBar();
    }

    public void Attach(INewsFragment view) {
        newsFragment = view;
    }
}


text:
<Record>
<Term>Acromegaly</Term>
<SemanticType>Disease or Syndrome</SemanticType>
<ParentTerm>Bone Diseases, Endocrine</ParentTerm>
<ParentTerm>Hyperpituitarism</ParentTerm>
<ClassificationPath>Nervous System Diseases/Central Nervous System Diseases/Brain Diseases/Hypothalamic Diseases/Pituitary Diseases/Hyperpituitarism/Acromegaly</ClassificationPath>
<ClassificationPath>Musculoskeletal Diseases/Bone Diseases/Bone Diseases, Endocrine/Acromegaly</ClassificationPath>
<ClassificationPath>Endocrine System Diseases/Pituitary Diseases/Hyperpituitarism/Acromegaly</ClassificationPath>
<BroaderTerm>Central Nervous System Diseases</BroaderTerm>
<BroaderTerm>Bone Diseases, Endocrine</BroaderTerm>
<BroaderTerm>Musculoskeletal Diseases</BroaderTerm>
<BroaderTerm>Acromegaly</BroaderTerm>
<BroaderTerm>Pituitary Diseases</BroaderTerm>
<BroaderTerm>Hypothalamic Diseases</BroaderTerm>
<BroaderTerm>Hyperpituitarism</BroaderTerm>
<BroaderTerm>Brain Diseases</BroaderTerm>
<BroaderTerm>Endocrine System Diseases</BroaderTerm>
<BroaderTerm>Nervous System Diseases</BroaderTerm>
<BroaderTerm>Bone Diseases</BroaderTerm>
<Synonym>Somatotropin Hypersecretion Syndrome (Acromegaly)</Synonym>
<Synonym>Acromegaly</Synonym>
<Synonym>Inappropriate Growth Hormone Secretion Syndrome (Acromegaly)</Synonym>
<Synonym>Inappropriate GH Secretion Syndrome (Acromegaly)</Synonym>
<Synonym>Somatotropin Hypersecretion Syndromes (Acromegaly)</Synonym>
<Description>A condition caused by prolonged exposure to excessive HUMAN GROWTH HORMONE in adults. It is characterized by bony enlargement of the FACE; lower jaw (PROGNATHISM); hands; FEET; HEAD; and THORAX. The most common etiology is a GROWTH HORMONE-SECRETING PITUITARY ADENOMA. (From Joynt, Clinical Neurology, 1992, Ch36, pp79-80)</Description>
<Source>MeSH</Source>
</Record>


text:
import './main.css'
import '../style/style.css'

import React from 'react'
import ReactDOM from 'react-dom'
import App from './App.jsx'

main()

function main() {
  const app = document.getElementsByClassName('demonstration')[0]
  ReactDOM.render(<App />, app)
}


text:
var React = require('react')
var Highcharts = require('highcharts/highmaps')

module.exports = React.createClass({
  // When the DOM is ready, create the chart.
  componentDidMount: function () {
    // Extend Highcharts with modules
    if (this.props.modules) {
      this.props.modules.forEach(function (module) {
        module(Highcharts)
      })
    }
    // Set container which the chart should render to.
    this.chart = new Highcharts[this.props.type || 'Map'](
      this.props.container,
      this.props.options
    )
  },
  // Destroy chart before unmount.
  componentWillUnmount: function () {
    this.chart.destroy()
  },
  // Create the div which the chart will be rendered to.
  render: function () {
    return React.createElement('div', { id: this.props.container })
  }
})


text:
/* eslint-disable no-undef */

Package.describe({
  name: 'mizzao:user-status',
  summary: 'User connection and idle state tracking for Meteor',
  version: '1.0.1',
  git: 'https://github.com/mizzao/meteor-user-status.git'
});

Package.onUse((api) => {
  api.versionsFrom('1.7.0.5');

  api.use('ecmascript');
  api.use('accounts-base');
  api.use('check');
  api.use('mongo');
  api.use('tracker', 'client');
  api.use('mizzao:timesync@0.5.1');

  api.export('MonitorInternals', 'client', {
    testOnly: true
  });
  api.export('StatusInternals', 'server', {
    testOnly: true
  });

  api.mainModule('client/monitor.js', 'client');
  api.mainModule('server/status.js', 'server');

});

Package.onTest((api) => {
  api.use('ecmascript');
  api.use('mizzao:user-status');
  api.use('mizzao:timesync@0.5.1');

  api.use(['accounts-base', 'accounts-password']);

  api.use(['random', 'tracker']);

  api.use('test-helpers');
  api.use('tinytest');

  api.addFiles('tests/insecure_login.js');
  api.addFiles('tests/setup.js');
  // Just some unit tests here. Use the test app otherwise.
  api.addFiles('tests/monitor_tests.js', 'client');
  api.addFiles('tests/status_tests.js', 'server');

  api.addFiles('tests/server_tests.js', 'server');
  api.addFiles('tests/client_tests.js', 'client');
});


text:
package com.android.nitecafe.whirlpoolnews.models;

import javax.annotation.Generated;

@Generated("org.jsonschema2pojo")
public class UserDetailsList {

    private UserDetails USER;

    /**
     * @return The USER
     */
    public UserDetails getUSER() {
        return USER;
    }

    /**
     * @param USER The USER
     */
    public void setUSER(UserDetails USER) {
        this.USER = USER;
    }

}


text:
require "ws_integration/engine"

module WsIntegration
  # Your code goes here...
end