text:
/*
 * EVE Swagger Interface
 * An OpenAPI for EVE Online
 *
 *
 *
 * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
 * https://openapi-generator.tech
 * Do not edit the class manually.
 */

package net.troja.eve.esi.model;

import com.google.gson.TypeAdapter;
import com.google.gson.annotations.JsonAdapter;
import com.google.gson.annotations.SerializedName;
import com.google.gson.stream.JsonReader;
import com.google.gson.stream.JsonWriter;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.io.IOException;
import org.junit.Assert;
import org.junit.Ignore;
import org.junit.Test;

/**
 * Model tests for RequiredItem
 */
public class RequiredItemTest {
    private final RequiredItem model = new RequiredItem();

    /**
     * Model tests for RequiredItem
     */
    @Test
    public void testRequiredItem() {
        // TODO: test RequiredItem
    }

    /**
     * Test the property 'quantity'
     */
    @Test
    public void quantityTest() {
        // TODO: test quantity
    }

    /**
     * Test the property 'typeId'
     */
    @Test
    public void typeIdTest() {
        // TODO: test typeId
    }

}


text:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">

<TITLE>
Uses of Interface toxi.geom.Intersector3D
</TITLE>

<META NAME="date" CONTENT="2011-01-03">

<LINK REL ="stylesheet" TYPE="text/css" HREF="../../../stylesheet.css" TITLE="Style">

      Overview
      Package
      Class
    Use
      Tree
      Deprecated
      Index
      Help

 PREV
 NEXT

  FRAMES
 NO FRAMES

  All Classes

Uses of Interface
toxi.geom.Intersector3D

Packages that use Intersector3D

toxi.geom

toxi.geom.mesh

Uses of Intersector3D in toxi.geom

Subinterfaces of Intersector3D in toxi.geom

 interface
Reflector3D

          Generic interface for ray reflection with 3D geometry

Classes in toxi.geom that implement Intersector3D

 class
Ray3DIntersector

 class
SphereIntersectorReflector

 class
TriangleIntersector

Uses of Intersector3D in toxi.geom.mesh

Classes in toxi.geom.mesh that implement Intersector3D

 class
TriangleMesh

          An extensible class to dynamically build, manipulate & export triangle
 meshes.

 class
WETriangleMesh

          A class to dynamically build, manipulate & export triangle meshes.

      Overview
      Package
      Class
    Use
      Tree
      Deprecated
      Index
      Help

 PREV
 NEXT

  FRAMES
 NO FRAMES

  All Classes

redpajama_set_name: RedPajamaGithub


text:
ACCEPTED

#### According to
Index Fungorum

#### Published in
Bihangtill K. Svenska Vetensk. -Akad. Handl. , Afd. 3 25(no. 6): 5 (1899)

#### Original name
Coprolepa antarctica Speg.

### Remarks
null


text:
module ApiExampleGroup
  def self.included(base)
    base.metadata[:type] = :api
  end
end

RSpec.configure do |config|
  config.include ApiExampleGroup, :type => :api, example_group: {
    file_path: /spec\/features\/api\//
  }

  config.before :type => :api do
    header 'Accept', 'application/json'
  end
end


text:
<?php

namespace Google\Service\ManagedServiceforMicrosoftActiveDirectoryConsumerAPI;

class ListDomainsResponse extends \Google\Collection
{
  protected $collection_key = 'unreachable';
  protected $domainsType = Domain::class;
  protected $domainsDataType = 'array';
  /**
   * @var string
   */
  public $nextPageToken;
  /**
   * @var string[]
   */
  public $unreachable;

  /**
   * @param Domain[]
   */
  public function setDomains($domains)
  {
    $this->domains = $domains;
  }
  /**
   * @return Domain[]
   */
  public function getDomains()
  {
    return $this->domains;
  }
  /**
   * @param string
   */
  public function setNextPageToken($nextPageToken)
  {
    $this->nextPageToken = $nextPageToken;
  }
  /**
   * @return string
   */
  public function getNextPageToken()
  {
    return $this->nextPageToken;
  }
  /**
   * @param string[]
   */
  public function setUnreachable($unreachable)
  {
    $this->unreachable = $unreachable;
  }
  /**
   * @return string[]
   */
  public function getUnreachable()
  {
    return $this->unreachable;
  }
}

// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ListDomainsResponse::class, 'Google_Service_ManagedServiceforMicrosoftActiveDirectoryConsumerAPI_ListDomainsResponse');


text:
package com.netflix.conductor.core.execution;
/**
 *
 */

import java.util.Map;

import com.netflix.conductor.core.config.Configuration;

/**
 * @author Viren
 *
 */
public class TestConfiguration implements Configuration {

	@Override
	public int getSweepFrequency() {
		return 1;
	}

	@Override
	public boolean disableSweep() {
		return false;
	}

	@Override
	public String getServerId() {
		return "server_id";
	}

	@Override
	public String getEnvironment() {
		return "test";
	}

	@Override
	public String getStack() {
		return "junit";
	}

	@Override
	public String getAppId() {
		return "workflow";
	}

	@Override
	public String getProperty(String string, String def) {
		return "dummy";
	}

	@Override
	public String getAvailabilityZone() {
		return "us-east-1a";
	}

	@Override
	public int getIntProperty(String string, int def) {
		return 100;
	}

	@Override
	public String getRegion() {
		return "us-east-1";
	}

	@Override
	public Map<String, Object> getAll() {
		return null;
	}
}


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

namespace PingDevelopment.ExcelML.Configuration
{
    public class StringDataElement : BaseFormatElement
    {
    }
}


text:
<!DOCTYPE html>

    <meta charset="utf-8" />
    <title>Cloo Demo</title>
    <meta name="format-detection" content="telephone=no" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta name="apple-mobile-web-app-capable" content="yes" />

    <link rel="stylesheet" href="assets/css/app.css" type="text/css" />


text:
// Copyright (c) 2009-2010 Satoshi Nakamoto
// Copyright (c) 2009-2015 The Bitcoin Core developers
// Copyright (c) 2014-2017 The Dash Core developers
// Copyright (c) 2017-2020 The Neutron Developers
//
// Distributed under the MIT software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.

#ifndef NEUTRON_VALIDATION_H
#define NEUTRON_VALIDATION_H

#include <stdint.h>
#include <string>

static const int MAX_INACTIVITY_IBD = 60 * 5; /* 5 minutes */
static const int64_t DEFAULT_MAX_TIP_AGE = 60 * 60 * 2;
extern int64_t nMaxTipAge;
class CBlockIndex;

FILE* OpenBlockFile(unsigned int nFile, unsigned int nBlockPos, const char* pszMode="rb");
FILE* AppendBlockFile(unsigned int& nFileRet);
void DelatchIsInitialBlockDownload();
bool IsInitialBlockDownload();

/* Verification progress as a fraction between 0.00 and 1.00 */
double GuessVerificationProgress(CBlockIndex* pindex);

#endif // NEUTRON_VALIDATION_H


text:
// (C) Copyright 1996,1998 by Autodesk, Inc.
//
// Permission to use, copy, modify, and distribute this software in
// object code form for any purpose and without fee is hereby granted,
// provided that the above copyright notice appears in all copies and
// that both that copyright notice and the limited warranty and
// restricted rights notice below appear in all supporting
// documentation.
//
// AUTODESK PROVIDES THIS PROGRAM "AS IS" AND WITH ALL FAULTS.
// AUTODESK SPECIFICALLY DISCLAIMS ANY IMPLIED WARRANTY OF
// MERCHANTABILITY OR FITNESS FOR A PARTICULAR USE.  AUTODESK, INC.
// DOES NOT WARRANT THAT THE OPERATION OF THE PROGRAM WILL BE
// UNINTERRUPTED OR ERROR FREE.
//
// Use, duplication, or disclosure by the U.S. Government is subject to
// restrictions set forth in FAR 52.227-19 (Commercial Computer
// Software - Restricted Rights) and DFAR 252.227-7013(c)(1)(ii)
// (Rights in Technical Data and Computer Software), as applicable.
//
//  main.cpp

#include "acdb.h"             // acdb definitions
#include "adslib.h"           // ads defs
#include "dbents.h"           // "old" entities
#include "aced.h"             // aced stuff
#include "dbdict.h"           // dictionaries
#include "dbsymtb.h"          // symboltables
#include "acgi.h"             // graphical definitions
#include "main.h"             // this project
#include "edreact.h"          // the dynamiclinkerreactor
#include "MkrEnti.h"          // new entity AsdkMkrEntity
#include "MKROBJE.h"          // new entity AsdkMkrObject
#include "rxregsvc.h"         // unlock application
#include "dbapserv.h"
#include "arxutils.h"

// function prototypes
//
static void initApp   ();
static void unloadApp ();
extern "C" AcRx::AppRetCode acrxEntryPoint(AcRx::AppMsgCode msg, void* ptr);

void
mkraddobjects()
{
    AcGePoint3d pt;
    if (RTNORM != acedGetPoint( NULL, "\nEnter position:", asDblArray (pt) ))
        return;

    AsdkMkrEntity* pEnt = new AsdkMkrEntity;
    if (NULL == pEnt)
        return;

    pEnt->setPos( pt );
    if (!append( pEnt )) {
        delete pEnt;
        return;
    }

    AcDbObjectId objId;
    AsdkMkrObject *pObj = new AsdkMkrObject;
    if (NULL == pObj) {
        pEnt->erase();
        pEnt->close();
        return;
    }

#ifdef DIRECT
    acdbHostApplicationServices()->workingDatabase()
        ->addAcDbObject( objId, pObj );
    pObj->close();
#else
#ifdef NOD
    AcDbDictionary* pMyDict = getDict( /*NOXLATE*/"ASDK_MYDICT", AcDb::kForWrite );
    if (NULL != pMyDict)
        pMyDict->setMergeStyle(AcDb::kDrcMangleName);
#else
    AcDbDictionary* pMyDict = getExtDict( pEnt, /*NOXLATE*/"ASDK_MYDICT", AcDb::kForWrite );
#endif  // NOD
    if (NULL == pMyDict) {
        delete pObj;
        pEnt->erase();
        pEnt->close();
        return;
    }

    Acad::ErrorStatus es;
    if (pMyDict->has( /*NOXLATE*/"MYENTRY" ))
        es = pMyDict->setAt( "*", pObj, objId );
    else
        es = pMyDict->setAt( /*NOXLATE*/"MYENTRY", pObj, objId );
    pMyDict->close();
    if (Acad::eOk == es)
        pObj->close();
    else {
        delete pObj;
        pEnt->erase();
        pEnt->close();
        return;
    }

#endif  // DIRECT
    pEnt->setId( objId );
    pEnt->close();

    acutPrintf( "\nEv'rything OK\n" );
}

static void
initApp(void)
{
    // register your own entities
    //
    AsdkMkrEntity::rxInit();
    AsdkMkrObject::rxInit();
    acrxBuildClassHierarchy();

    // register your autocad commands
    //
    acedRegCmds->addCommand( /*NOXLATE*/"ASDK_MKR", /*NOXLATE*/"ASDK_ADDOBJECTS", "ADDOBJECTS",
        ACRX_CMD_TRANSPARENT | ACRX_CMD_USEPICKSET, mkraddobjects );
}

static void
unloadApp(void)
{
    // unregister your own entities
    //
    deleteAcRxClass(AsdkMkrEntity::desc());
    deleteAcRxClass(AsdkMkrObject::desc());

    // unregister your autocad commands
    //
    acedRegCmds->removeGroup(/*NOXLATE*/"ASDK_MKR");
    erase_EditorReactor();
}

// acrxEntryPoint(internal)
// This function is the entry point for your application.
//
AcRx::AppRetCode
acrxEntryPoint(AcRx::AppMsgCode msg, void* ptr)
{
    switch (msg) {
    case AcRx::kInitAppMsg:
        acrxUnlockApplication(ptr);
        acrxRegisterAppMDIAware(ptr);
        initApp();
        break;
    case AcRx::kUnloadAppMsg:
        unloadApp();
        break;
    case AcRx::kLoadDwgMsg:
        create_EditorReactor();
#ifdef DIRECT
        acutPrintf( "\nHardOwnership & addAcDbObject\n" );
#else
#ifdef XLATE
        acutPrintf( "\nDeepCloneXlation activated.\n" );
#else
        acutPrintf( "\nDeepCloneXlation de-activated.\n" );
#endif  // XLATE
#ifdef NOD
        acutPrintf( "Custom object will be stored in the"
            " NamedObjectsDictionary.\n" );
#else
        acutPrintf( "Custom object will be stored in the"
            " Extension Dictionary.\n" );
#endif  // NOD
#ifdef HARDPOINTER
        acutPrintf( "Entity keeps HardPointerId of custom object.\n" );
#else
        acutPrintf( "Entity keeps SoftPointerId of custom object.\n" );
#endif  // HARDPOINTER
#endif  // DIRECT
        acutPrintf( "Start with 'addobjects'.\n" );
    }
    return AcRx::kRetOK;
}


text:
import { useQuery } from 'react-query'

import PatientRepository from '../../shared/db/PatientRepository'
import Lab from '../../shared/model/Lab'

async function fetchPatientLabs(_: string, patientId: string): Promise<Lab[]> {
  const fetchedLabs = await PatientRepository.getLabs(patientId)
  return fetchedLabs || []
}

export default function usePatientLabs(patientId: string) {
  return useQuery(['labs', patientId], fetchPatientLabs)
}


text:
<?php

namespace Sale\Model\Dao;

/**
 * Description of CustomerDao
 *
 * @author Pedro
 */
use Account\Model\Entity\Address;
use Sale\Model\Entity\Customer;
use Zend\Db\TableGateway\TableGateway;

class CustomerDao {

    protected $tableGateway;

    public function __construct(TableGateway $tableGateway) {
        $this->tableGateway = $tableGateway;
    }

    public function deleteChild($id) {
        $id = (int) $id;
        $result = $this->tableGateway->delete(array('customer_has_child_id' => $id));
//        $table = $this->getTable('pr_branch_contact');
//        $table->delete(array('branch_id' => $id));

        return $result;
    }

    public function getAll() {
        $query = $this->tableGateway->getSql()->select();

        $query->order("customer_id DESC");
        //echo $query->getSqlString();die;

        $resultSet = $this->tableGateway->selectWith($query);
        //var_dump($resultSet);die;

        return $resultSet;
    }

    public function getLatest() {
        $query = $this->tableGateway->getSql()->select();

        $query->order("customer_id DESC");
        //echo $query->getSqlString();die;
        $query->limit(10);

        $resultSet = $this->tableGateway->selectWith($query);
        //var_dump($resultSet);die;

        return $resultSet;
    }

    public function getById($id, $columns = null) {

        $id = (int) $id;
        $sql = $this->tableGateway->getSql();

        $query = $sql->select()
                ->where(array('pr_customer.customer_id' => $id));

        if ($columns) {
            $query->columns($columns);
        }

        $resultSet = $this->tableGateway->selectWith($query);
        $row = $resultSet->current();
        return $row;
    }

    public function getChild($id, $columns = null) {

        $id = (int) $id;
        $sql = $this->tableGateway->getSql();

        $query = $sql->select()
                ->join(array('cc' => 'pr_customer_has_pr_child'), 'pr_customer.customer_id = cc.customer_id')
                ->join(array('c' => 'pr_child'), 'cc.child_id = c.child_id')
                ->where(array('pr_customer.customer_id' => $id));

//        echo $query->getSqlString();die;

        $resultSet = $this->tableGateway->selectWith($query);

        return $resultSet;
    }

    public function getInfoCustomer($customer_id, $register_complete, $columns = null) {

        $query = $this->tableGateway->getSql()->select();
        if ($columns) {
            $query->columns($columns);
        }
        if ($register_complete == 1) {
            $query->join(array('a' => 'pr_address'), 'pr_customer.address_default = a.address_id', array('address_id',
                'firstname_address' => 'firstname',
                'lastname_address' => 'lastname',
                'company',
                'telephone',
                'address_1',
                'postcode',
                'state_id',
                'municipality_id',
                'city_id')
            );
        }
        $query->where(array(
            'pr_customer.customer_id' => $customer_id,
        ));

        //echo $query->getSqlString();die;
        $result = $this->tableGateway->selectWith($query);

        //print_r($result); die;

        return $result->current();
    }

    public function savedCustomer(Customer $customer) {

        $idData = $customer->customer_id;
        $id = (int) $idData;

        $dataCustomer = $customer->getArrayCopy();
//        array_filter($customer);die;
//        var_dump($dataCustomer);die;
        if ($id == 0) {
//            print_r($dataCustomer);die;
            return $this->tableGateway->insert($dataCustomer);
        } else {
            // print_r($this->getById($id));die;
            if ($this->getById($id)) {
//                print_r($dataCustomer);die;
                $dataCustomerUpdate = array_filter($dataCustomer);
                return $this->tableGateway->update($dataCustomerUpdate, array('customer_id' => $id));
            } else {
                throw new \Exception('Id no encontrado');
            }
        }
    }

    public function saveChild($child, $customer_id, $customerchildEntity) {
//        var_dump($customerchildEntity);die;

        $dataChild = $child->getArrayCopy();
        $dataCustomerHasChild = $customerchildEntity->getArrayCopy();
//        var_dump($dataChild);die;
//        array_filter($customer);die;
//        var_dump($dataCustomer);die;
//            print_r($dataCustomer);die;
        $contador = 0;
        foreach ($dataChild['name'] as $optionValues) {
            $insertOptions = array(
                'name' => $dataChild['name'][$contador],
                'last_name' => $dataChild['last_name'][$contador],
            );
            $contador++;
//            print_r($insertOptions);die;
            $insert = $this->tableGateway->insert($insertOptions);
        }
//        var_dump($insert);die;
        $child_id = $this->tableGateway->getLastInsertValue();
//        var_dump($child_id);die;
        $tableChA = $this->getTable('pr_customer_has_pr_child');
        $dataCustomerHasChild['customer_id'] = $customer_id;
        $dataCustomerHasChild['child_id'] = $child_id;
//        var_dump($dataCustomerHasChild);die;
        $insert = $tableChA->insert($dataCustomerHasChild);
        return $insert;
    }

    public function saveInfoCustomer(Customer $customer, Address $address) {
        $idData = $customer->customer_id;
        $id = (int) $idData;

        //print_r($customer);die;
        $address->address_id = $customer->address_default;
        //print_r($address);
        $saveAdress = $this->saveAddress($address);
        //print_r($saveAdress);die;
        $customer->address_default = $saveAdress;
        //print_r($customer);die;
        $saveCustomer = $this->savedCustomer($customer);

        if ($saveCustomer && $saveAdress) {

            $tableChA = $this->getTable('pr_customer_has_address');

            $row = $tableChA->select(array(
                'customer_id' => $id,
                'address_id' => $saveAdress
            ));

            if ($row->count() == 0) {
                $insert = $tableChA->insert(array(
                    'customer_id' => $id,
                    'address_id' => $saveAdress
                ));

                return $insert;
            }

            return $row;
        } else {

            return false;
        }
    }

    public function saveAddress(Address $address) {
        $table = $this->getTable('pr_address');

        $idData = $address->address_id;
        $id = (int) $idData;

        $data = $address->getArrayCopy();

        if ($id == 0) {
            //print_r($dataBranch);die;

            $insert = $table->insert($data);

            return $table->getLastInsertValue();
        } else {
            //print_r($dataCustomer);die;
            $dataAddressUpdate = array_filter($data);
            //print_r($dataAddressUpdate);die;
            $table->update($dataAddressUpdate, array('address_id' => $id));
            return $id;
        }
    }

    public function getTable($table) {
        $adapter = $this->tableGateway->getAdapter();
        $table = new TableGateway($table, $adapter);

        return $table;
    }

}


text:
/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package com.icode.util;

import static java.awt.Toolkit.getDefaultToolkit;

import java.awt.Component;
import java.awt.Container;
import java.awt.Dimension;
import java.awt.Point;
import java.awt.Rectangle;
import java.io.File;
import java.io.IOException;
import java.net.URL;
import java.security.MessageDigest;
import java.security.NoSuchAlgorithmException;
import java.util.ArrayList;
import java.util.Enumeration;
import java.util.List;
import java.util.Random;
import java.util.logging.Level;
import java.util.logging.Logger;

import javax.swing.JComponent;
import javax.swing.JPanel;

import org.apache.commons.lang.StringUtils;

/**
 *
 * @author Nes
 * @param <E>
 */
public class Commons<E> implements Cloneable {

	private static java.text.DecimalFormat DCFormat = new java.text.DecimalFormat(
			"KES #0,000.00");
	private static java.text.DecimalFormat smallDCFormat = new java.text.DecimalFormat(
			"KES #00.00");
	public static final String ULTIMATE_PASSWORD_ALGO = "SHA-1";

	/**
	 *
	 * @param curr
	 * @return
	 */
	public static String getCurrency(Double curr) {
		return curr < 1000.00 ? smallDCFormat.format(curr) : DCFormat
				.format(curr);
	}

	/**
	 *
	 * @param str
	 * @return
	 */
	/**
	 *
	 * @param curr
	 * @return
	 */
	public static String getCurrency(Float curr) {
		return getCurrency(Math.ceil(curr));
	}

	private static final String Alphaumerals = "ABCDEFGHIJKLMNOPQRQSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890";
	private static final Random random = new Random();

	/**
	 *
	 * @param Password
	 * @return
	 */
	public static String generatePassword(String Password) {
		String Algo = ULTIMATE_PASSWORD_ALGO;
		String Salt = getSalt().substring(0, 5);
		String Hash = generateFullHash(Algo, Salt, Password);
		return String.format("%s$%s$%s", Algo, Salt, Hash);
	}

	/**
	 *
	 * @param Algorithm
	 * @param salt
	 * @param rawPassword
	 * @return
	 */
	public static String generateFullHash(String Algorithm, String salt,
			String rawPassword) {
		String saltedPassword = salt + rawPassword;
		return generateHash(saltedPassword, Algorithm);
	}

	public static boolean compare_passwords(String hashedPassword,
			String password2) {
		// remember to use the same SALT value use used while storing password
		// for the first time.
		String[] passArgs = hashedPassword.split("\\$");
		String hashedPassword2 = Commons.generateFullHash(passArgs[0],
				passArgs[1], password2);
		return hashedPassword2.equals(passArgs[2]);
	}

	public static boolean isValidPassword(String password) {
		if (password == null) {
			return false;
		}
		if (password.isEmpty()) {
			return false;
		}

		String[] passArr = password.split("\\$");
		if (passArr.length == 3) {
			return password.startsWith(ULTIMATE_PASSWORD_ALGO)
					& StringUtils.isAlphanumeric(passArr[1])
					& StringUtils.isAlphanumeric(passArr[2]);
		}
		return false;
	}

	/**
	 *
	 * @return
	 */
	public static String getSalt() {
		return generateFullHash("SHA-1", getRandomIntString(),
				getRandomIntString());
	}

	/**
	 *
	 * @param input
	 * @return
	 */
	public static String generateHash(String input) {
		return generateHash(input, "SHA-1");
	}

	public static int getRandomInt(int i) {
		return random.nextInt(i);
	}

	/**
	 *
	 * @return
	 */
	public static int getRandomInt() {
		return random.nextInt();
	}

	/**
	 *
	 * @return
	 */
	public static String getRandomIntString() {
		return Integer.toString(random.nextInt());
	}

	/**
	 *
	 * @return
	 */
	public static String getRandomString() {
		return getRandomString(5);
	}

	/**
	 *
	 * @param StrLength
	 * @return
	 */
	public static String getRandomString(int StrLength) {
		String str = "";
		for (int i = 0; i <= StrLength; i++) {
			str += Alphaumerals
					.charAt(random.nextInt(Alphaumerals.length() - 1));
		}
		return str;
	}

	/**
	 *
	 * @param <T>
	 * @param packageName
	 * @return
	 * @throws IOException
	 * @throws ClassNotFoundException
	 */
	public synchronized static <T> List<Class<T>> getClasses(String packageName)
			throws IOException, ClassNotFoundException {
		return getClasses(packageName, false);
	}

	/**
	 *
	 * @param <T>
	 * @param packageName
	 * @param checkSubpackages
	 * @return
	 * @throws IOException
	 * @throws ClassNotFoundException
	 */
	public static synchronized <T> List<Class<T>> getClasses(
			String packageName, boolean checkSubpackages) throws IOException,
			ClassNotFoundException {
		ClassLoader classLoader = Thread.currentThread()
				.getContextClassLoader();
		assert classLoader != null;
		String path = packageName.replace('.', '/');
		Enumeration<URL> resources = classLoader.getResources(path);
		List<File> dirs = new ArrayList<File>(5);
		while (resources.hasMoreElements()) {
			URL resource = resources.nextElement();
			dirs.add(new File(resource.getFile()));
		}
		ArrayList<Class<T>> classes = new ArrayList<Class<T>>(5);
		for (File directory : dirs) {
			List<Class<T>> findClasses = findClasses(directory, packageName,
					checkSubpackages);
			classes.addAll(findClasses);
		}
		return classes;
	}

	@SuppressWarnings("unchecked")
	private static synchronized <T> List<Class<T>> findClasses(File directory,
			String packageName, boolean checkSubpackages)
			throws ClassNotFoundException {
		List<Class<T>> classes = new ArrayList<Class<T>>(10);
		if (!directory.exists()) {
			return classes;
		}

		File[] files = directory.listFiles();
		for (File file : files) {
			if (file.isDirectory() && checkSubpackages) {
				assert !file.getName().contains(".");
				List<Class<T>> findClasses = findClasses(file, packageName
						+ "." + file.getName(), checkSubpackages);
				classes.addAll(findClasses);
			} else if (file.getName().endsWith(".class")) {
				classes.add((Class<T>) Class.forName(packageName
						+ "."
						+ file.getName().substring(0,
								file.getName().length() - 6)));
			}
		}
		return classes;
	}

	public static String packageNameConc(Class<?> clazz, String subPackage) {
		if (clazz == null) {
			return "";
		}
		return clazz.getPackage().getName()
				+ (subPackage.startsWith(".") ? subPackage : "." + subPackage);
	}

	/**
	 *
	 * @param outer
	 * @param inner
	 * @return
	 */
	public static Rectangle setToCentralPosition(Rectangle outer,
			Rectangle inner) {
		if (outer == null | inner == null) {
			return new Rectangle();
		}
		if (outer.equals(inner)) {
			return inner;
		}

		inner.x = (int) (outer.x + ((outer.width * .5F) - (inner.width * .5F)));
		inner.y = (int) (outer.y + ((outer.height * .5F) - (inner.height * .5F)));
		return inner;
	}

	/**
	 *
	 * @param outer
	 * @param inner
	 * @return
	 */
	public static Rectangle setToCentralPosition(Dimension outer,
			Dimension inner) {
		return setToCentralPosition(new Rectangle(outer), new Rectangle(inner));
	}

	private static Rectangle rectScreenSize = new Rectangle(0, 0,
			getDefaultToolkit().getScreenSize().width, getDefaultToolkit()
					.getScreenSize().height);

	public static Rectangle setToCentralPositionOnScreen(Rectangle inner) {
		return setToCentralPosition(rectScreenSize, inner);
	}

	public static Point setToCentralPositionOnScreen(Point p) {
		return setToCentralPositionOnRectangle(rectScreenSize, p);
	}

	public static Point setToCentralPositionOnRectangle(Rectangle r, Point p) {
		Rectangle inner = setToCentralPosition(r, new Rectangle(p));
		p.x = inner.x;
		p.y = inner.y;
		return p;
	}

	/**
	 *
	 * @param input
	 * @param Algorithm
	 * @return
	 */
	public static String generateHash(String input, String Algorithm) {
		try {
			StringBuilder hash = new StringBuilder(10);
			MessageDigest sha = MessageDigest.getInstance(Algorithm);
			byte[] hashedBytes = sha.digest(input.getBytes());
			char[] digits = { '0', '1', '2', '3', '4', '5', '6', '7', '8', '9',
					'a', 'b', 'c', 'd', 'e', 'f' };
			for (int idx = 0; idx < hashedBytes.length; ++idx) {
				byte b = hashedBytes[idx];
				hash.append(digits[(b & 0xf0) >> 4]);
				hash.append(digits[b & 0x0f]);
			}
			return hash.toString();
		} catch (NoSuchAlgorithmException ex) {
			Logger.getLogger(Commons.class.getName()).log(Level.SEVERE, null,
					ex);
		}
		return null;
	}

	/**
	 *
	 * @param value
	 * @param to
	 * @return
	 */
	public synchronized static Object convertPOJO(Object to, Object value) {
		if (to instanceof String) {
			if (value instanceof String) {
				if (Integer.class.getName().equals(to)
						|| int.class.getName().equals(to)) {
					return Integer.parseInt((String) value);
				} else if (Float.class.getName().equals(to)
						|| float.class.getName().equals(to)) {
					return Float.parseFloat((String) value);
				} else if (Double.class.getName().equals(to)
						|| double.class.getName().equals(to)) {
					return Double.parseDouble((String) value);
				} else if (Boolean.class.getName().equals(to)
						|| boolean.class.getName().equals(to)) {
					return Boolean.parseBoolean((String) value);
				} else if (String.class.getName().equals(to)) {
					return value;
				}
			} else {
				return value;
			}
		}
		return null;
	}

	public synchronized static Object convertJPAObject(String value) {
		try {
			return Short.parseShort(value);
		} catch (NumberFormatException ex) {
			try {
				return Integer.parseInt(value);
			} catch (NumberFormatException ex1) {
				try {
					return Long.parseLong(value);
				} catch (NumberFormatException ex2) {
					try {
						return Double.parseDouble(value);
					} catch (NumberFormatException ex3) {
						try {
							return Float.parseFloat(value);
						} catch (NumberFormatException ex4) {
							try {
								if (value.equalsIgnoreCase("true")
										|| value.equalsIgnoreCase("false")) {
									return Boolean.parseBoolean(value);
								}
								throw new Exception();
							} catch (Exception ex5) {
								return String.valueOf(value);
							}
						}
					}
				}
			}
		}
	}

	private static final String osName = System.getProperty("os.name")
			.toLowerCase();
	private static final int WINDOWS_REPAINT_LEVEL = 2;
	private static final int UNIX_REPAINT_LEVEL = 1;

	public static void repaintAncestry(Container container, int x, int y,
			int w, int h) {
		repaintAncestry(container,
				osName.contains("windows") ? WINDOWS_REPAINT_LEVEL
						: UNIX_REPAINT_LEVEL, x, y, w, h);
	}

	private static void repaintAncestry(Container container, int depth, int x,
			int y, int w, int h) {
		if (container == null || depth == 0) {
			return;
		} else {
			try {
				container.repaint(x, y, w, h);
				repaintAncestry(container.getParent(), --depth, x, y, w, h);
			} catch (java.lang.NullPointerException ne) {
				return;
			}
		}
	}

	public static void repaintAncestry(Container container) {
		repaintAncestry(container,
				osName.contains("windows") ? WINDOWS_REPAINT_LEVEL
						: UNIX_REPAINT_LEVEL);
	}

	public static void repaintAncestry(Container container, int depth) {
		if (container == null || depth == 0) {
			return;
		} else {
			try {
				container.repaint();
				repaintAncestry(container.getParent(), --depth);
			} catch (java.lang.NullPointerException ne) {
				return;
			}
		}
	}

	public static void mountComponent(JComponent parent, JComponent child,
			boolean repaint) {
		while (parent.getComponentCount() > 1) {
			parent.remove(1);
		}
		parent.add(child);
		parent.revalidate();
		if (repaint) {
			Commons.repaintAncestry(parent);
		}
	}

	public static void mountComponent(JComponent parent, JComponent child) {
		mountComponent(parent, child, false);
	}

	public static float getRandomFloat() {
		return random.nextFloat();
	}

	public static void setTransparent(Component component) {
		if (component instanceof JPanel) {
			((JPanel) component).setOpaque(false);
		}
		if (component instanceof Container) {
			Container container = (Container) component;
			for (int i = 0, n = container.getComponentCount(); i < n; i++) {
				setTransparent(container.getComponent(i));
			}
		}
	}

	/**
     *
     */
	public static enum DateType {

		/**
         *
         */
		Short,
		/**
         *
         */
		Long
	};

	private static final Logger LOG = Logger.getLogger(Commons.class.getName());
}


text:
var webpack = require('webpack');
var ExtractTextPlugin = require('extract-text-webpack-plugin');

/**
 * This is the Webpack configuration file for production.
 */
module.exports = {
  entry: "./src/main",

  output: {
    path: __dirname + "/build/",
    filename: "app.js"
  },

  plugins: [
    new ExtractTextPlugin('style.css', { allChunks: true }),
    new webpack.DefinePlugin({
      "process.env": {
         NODE_ENV: JSON.stringify("production")
       }
    })
  ],

  module: {
    loaders: [
      { test: /\.jsx?$/, exclude: /node_modules/, loader: "babel-loader" },
      { test: /\.css$/, loader: ExtractTextPlugin.extract('style-loader', 'css-loader?modules&importLoaders=1&localIdentName=[name]__[local]___[hash:base64:5]!postcss-loader') },
      { test: /\.mp4$/, loader: 'url-loader?limit=10000&mimetype=video/mp4' },
      { test: /\.vtt$/, loader: 'url-loader?limit=10000&mimetype=text/vtt' },
      { test: /\.[ot]tf$/, loader: 'url?limit=65000&mimetype=application/octet-stream&name=[name].[ext]' },
    ]
  },

  resolve: {
    extensions: ['', '.js', '.jsx', '.css']
  },

  postcss: [
    require('autoprefixer'),
    require('postcss-nested')
  ]
}


text:
Rough notes on steps I take to publish a new version of win32:

1. Run `tool\generate.cmd` to make sure that the machine-generated classes are
   the latest.

2. Run `dart test` to make sure all the automated tests are still working.

   - Optionally, also run it from Windows 7 to make sure nothing downlevel has
     failed.
   - These tests are also run through CI/CD on GitHub.

3. Bump the version in `pubspec.yaml` and update `CHANGELOG.md`.

4. Update `README.md` as appropriate with any changed examples.

5. If ready, run `git tag v1.2.3` (with the appropriate version number) to tag
   the release.

6. Run `git push` and `git push --tags` to push both the release and the tag to
   GitHub.

7. Run `dart pub publish` to push the build live. Watch pub.dev to make sure
   that there's nothing broken.


text:
using System.Reflection;
using System.Runtime.CompilerServices;
using System.Security.Permissions ;
using System.Web.UI ;

[assembly:TagPrefix("FredCK.FCKeditorV2", "FCKeditorV2")]

[assembly:System.CLSCompliant(true)]
[assembly:System.Runtime.InteropServices.ComVisible(false)]

//
// General Information about an assembly is controlled through the following
// set of attributes. Change these attribute values to modify the information
// associated with an assembly.
//
[assembly: AssemblyTitle("FredCK.FCKeditorV2")]
[assembly: AssemblyDescription("FCKeditor ASP.Net Integration")]
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("")]
[assembly: AssemblyProduct("FCKeditor.FCKeditorV2")]
[assembly: AssemblyCopyright("2003-2005 Frederico Caldeira Knabben")]
[assembly: AssemblyTrademark("")]
[assembly: AssemblyCulture("")]

//
// Version information for an assembly consists of the following four values:
//
//      Major Version
//      Minor Version
//      Build Number
//      Revision
//
// You can specify all the values or you can default the Revision and Build Numbers
// by using the '*' as shown below:

[assembly: AssemblyVersion("2.1.*")]

//
// In order to sign your assembly you must specify a key to use. Refer to the
// Microsoft .NET Framework documentation for more information on assembly signing.
//
// Use the attributes below to control which key is used for signing.
//
// Notes:
//   (*) If no key is specified, the assembly is not signed.
//   (*) KeyName refers to a key that has been installed in the Crypto Service
//       Provider (CSP) on your machine. KeyFile refers to a file which contains
//       a key.
//   (*) If the KeyFile and the KeyName values are both specified, the
//       following processing occurs:
//       (1) If the KeyName can be found in the CSP, that key is used.
//       (2) If the KeyName does not exist and the KeyFile does exist, the key
//           in the KeyFile is installed into the CSP and used.
//   (*) In order to create a KeyFile, you can use the sn.exe (Strong Name) utility.
//       When specifying the KeyFile, the location of the KeyFile should be
//       relative to the project output directory which is
//       %Project Directory%\obj\<configuration>. For example, if your KeyFile is
//       located in the project directory, you would specify the AssemblyKeyFile
//       attribute as [assembly: AssemblyKeyFile("..\\..\\mykey.snk")]
//   (*) Delay Signing is an advanced option - see the Microsoft .NET Framework
//       documentation for more information on this.
//
[assembly: AssemblyDelaySign(false)]
[assembly: AssemblyKeyFile(@"..\..\FredCK.FCKeditorV2.snk")]
[assembly: AssemblyKeyName("")]
[assembly: System.Security.AllowPartiallyTrustedCallers]


text:
package org.estatio.fixture.lease;

import org.estatio.dom.lease.Lease;
import org.estatio.fixture.security.tenancy.ApplicationTenancyForGbOxfDefault;

public class LeaseItemAndLeaseTermForTurnoverRentForOxfTopModel001Gb extends LeaseItemAndTermsAbstract {

    public static final String LEASE_REF = LeaseForOxfTopModel001Gb.REF;
    public static final String AT_PATH = ApplicationTenancyForGbOxfDefault.PATH;

    @Override
    protected void execute(final ExecutionContext fixtureResults) {
        createLeaseTermsForOxfTopModel001(fixtureResults);
    }

    private void createLeaseTermsForOxfTopModel001(final ExecutionContext executionContext) {

        // prereqs
        if(isExecutePrereqs()) {
            executionContext.executeChild(this, new LeaseForOxfTopModel001Gb());
        }

        // exec
        final Lease lease = leases.findLeaseByReference(LEASE_REF);

        createLeaseTermForTurnoverRent(
                LEASE_REF,
                AT_PATH,
                lease.getStartDate().withDayOfYear(1).plusYears(1), null,
                "7",
                executionContext);
    }
}


text:
/*
 * Лицензионное соглашение на использование набора средств разработки
 * «SDK Яндекс.Диска» доступно по адресу: http://legal.yandex.ru/sdk_agreement
 *
 */

package com.yandex.disk.client.exceptions;

public class CancelledDownloadException extends WebdavException {
}