text:
var BrowserWindow = require('browser-window')
var globalShortcut = require('global-shortcut')
var app = require('app')

var path = require('path')

var notifier = require('node-notifier')

require('crash-reporter').start()
var mainWindow = null

function PlayPause() {

  var button
  if((button = $('.pause-btn')).is(':visible')) {
    button.click()
  } else {
   $('.play-btn').click()
  }
}

function Next() {
  $('.mini-controls .next-btn').click()
}
function Prev() { $('.mini-controls .previous-btn').click() }

function ExecFunction(fn) {
  if (typeof fn === 'function') {
    return function() {
      console.log('hello')
      setTimeout(function () {
        notifier.notify({
          message: mainWindow.getTitle(),
          title: 'plex',
        })
      }, 100)
      mainWindow.webContents.executeJavaScript('(' + fn.toString() + ')()')
    }
  }
}

app.on('window-all-closed', function () {
  app.quit()
})

app.on('ready', function () {

  mainWindow = new BrowserWindow({
    width: 1200,
    height: 800,
    icon: path.join(__dirname, "/icon.png"),
    "node-integration": false
  })
  mainWindow.openDevTools()

  mainWindow.loadUrl('http://192.168.1.170:32400/web')
  mainWindow.webContents.on('did-finish-load', function () {
    var self = this
      self.executeJavaScript('(' + function () {
        var chk = setInterval(function () {
          var el
          if ((el = $('#plex > div.side-bar.dark-scrollbar > div.dashboard-servers-container > ul > li > ul > li:contains("Music") > a span')).is(':visible')) {
            el[0].click()
            clearInterval(chk)
          }
        }, 100)
      } + ')()')
  })

  globalShortcut.register('MediaPlayPause', ExecFunction(PlayPause))
  globalShortcut.register('MediaNextTrack', ExecFunction(Next))
  globalShortcut.register('MediaPreviousTrack', ExecFunction(Prev))

  mainWindow.on('closed', function () {
    mainWindow = null
  })
})


text:
#ifndef UTIL_H
#define UTIL_H
#include<stdio.h>
#include<stdlib.h>
#include<string.h>
#include<math.h>
#include<time.h>
int read_euc2d_file( char *filename, int **coords, int *dimension );
//__device__ int euclid_edgelen( int i, int j, int *coords );

int tour_len( int *tour, int *coords, int N, int before, int after );
int tour_len(int **tour, int *coords, int N);
int next_tour (int** array, int N, int fixed_idx, int skip);
float get_ticks();
void swap( int **array, int i, int j, int N);
void reverse( int **array, int from, int N );
int next_tour_M (int** array, int* coords, int N, int *record);
int tour_len_M (int *tour, int *coords, int N , int part, int before, int after, int record);
void m_reverse(int **array, int from, int to);
__device__ void swap_S(int array[], int i, int j, int N);
__device__ int tour_len_simple_S(int *tour, int *coords, int N, int record);
#endif

redpajama_set_name: RedPajamaGithub


text:
/**
 *
 */
package fish.dreaming.oj.utils;

/**
 * @author tao
 *
 */
public class BinarySearch {
	public static int binarySearch(int srcArray[], int key) {
		int mid = srcArray.length / 2;
		if (key == srcArray[mid]) {
			return mid;
		}

		int start = 0;
		int end = srcArray.length - 1;
		while (start <= end) {
			mid = (end - start) / 2 + start;
			if (key < srcArray[mid]) {
				end = mid - 1;
			} else if (key > srcArray[mid]) {
				start = mid + 1;
			} else {
				return mid;
			}
		}
		return -1;
	}

	public static int binarySearchBiggerReverse(int srcArray[], int key,
			int startOffset, int endOffset) {
		int mid;
		while (startOffset < endOffset) {
			mid = endOffset - (endOffset - startOffset) / 2;
			if (key < srcArray[mid]) {
				startOffset = mid;
			} else if (key >= srcArray[mid]) {
				endOffset = mid - 1;
			}
		}
		if (startOffset == endOffset && srcArray[startOffset] > key) {
			return startOffset;
		} else {
			return -1;
		}
	}
}


text:
using UnityEngine;
using System.Collections;

public class Wall : MonoBehaviour {

	public GameObject player;
	private bool isSet = false;
	public bool isFixed = false;

	public void FitBetween(Vector3 A, Vector3 B) {
		this.transform.position = (A + B) / 2;
		Vector3 scale = this.transform.localScale;
		scale.z = Vector3.Distance(A, B);
		this.transform.localScale = scale;
	}
}


text:
package net.docusign.api_3_0;

import java.util.ArrayList;
import java.util.List;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlType;

/**
 *
Java class for AccountSettingsList complex type.
 *
 *
The following schema fragment specifies the expected content contained within this class.
 *
 *

 * <complexType name="AccountSettingsList">
 *   <complexContent>
 *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
 *       <sequence>
 *         <element name="AccountSetting" type="{http://www.docusign.net/API/3.0}AccountSetting" maxOccurs="unbounded" minOccurs="0"/>
 *       </sequence>
 *     </restriction>
 *   </complexContent>
 * </complexType>
 *

 *
 *
 */
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "AccountSettingsList", propOrder = {
    "accountSetting"
})
public class AccountSettingsList {

    @XmlElement(name = "AccountSetting")
    protected List<AccountSetting> accountSetting;

    /**
     * Gets the value of the accountSetting property.
     *
     *

     * This accessor method returns a reference to the live list,
     * not a snapshot. Therefore any modification you make to the
     * returned list will be present inside the JAXB object.
     * This is why there is not a set method for the accountSetting property.
     *
     *

     * For example, to add a new item, do as follows:
     *

     *    getAccountSetting().add(newItem);
     *

     *
     *
     *

     * Objects of the following type(s) are allowed in the list
     * {@link AccountSetting }
     *
     *
     */
    public List<AccountSetting> getAccountSetting() {
        if (accountSetting == null) {
            accountSetting = new ArrayList<AccountSetting>();
        }
        return this.accountSetting;
    }

}


text:
#include <linux/cpu_pm.h>
#include <linux/kernel.h>
#include <linux/init.h>
#include <linux/sched.h>
#include <linux/signal.h>
#include <linux/hardirq.h>

#include <asm/fpsimd.h>
#include <asm/cputype.h>

#define FPEXC_IOF	(1 << 0)
#define FPEXC_DZF	(1 << 1)
#define FPEXC_OFF	(1 << 2)
#define FPEXC_UFF	(1 << 3)
#define FPEXC_IXF	(1 << 4)
#define FPEXC_IDF	(1 << 7)

/*
 * Trapped FP/ASIMD access.
 */
void do_fpsimd_acc(unsigned int esr, struct pt_regs *regs)
{
	/* TODO: implement lazy context saving/restoring */
	WARN_ON(1);
}

/*
 * Raise a SIGFPE for the current process.
 */
void do_fpsimd_exc(unsigned int esr, struct pt_regs *regs)
{
	siginfo_t info;
	unsigned int si_code = 0;

	if (esr & FPEXC_IOF)
		si_code = FPE_FLTINV;
	else if (esr & FPEXC_DZF)
		si_code = FPE_FLTDIV;
	else if (esr & FPEXC_OFF)
		si_code = FPE_FLTOVF;
	else if (esr & FPEXC_UFF)
		si_code = FPE_FLTUND;
	else if (esr & FPEXC_IXF)
		si_code = FPE_FLTRES;

	memset(&info, 0, sizeof(info));
	info.si_signo = SIGFPE;
	info.si_code = si_code;
	info.si_addr = (void __user *)instruction_pointer(regs);

	send_sig_info(SIGFPE, &info, current);
}

void fpsimd_thread_switch(struct task_struct *next)
{
	/* check if not kernel threads */
	if (current->mm)
		fpsimd_save_state(&current->thread.fpsimd_state);
	if (next->mm)
		fpsimd_load_state(&next->thread.fpsimd_state);
}

void fpsimd_flush_thread(void)
{
	preempt_disable();
	memset(&current->thread.fpsimd_state, 0, sizeof(struct fpsimd_state));
	fpsimd_load_state(&current->thread.fpsimd_state);
	preempt_enable();
}

#ifdef CONFIG_KERNEL_MODE_NEON
static DEFINE_PER_CPU(struct fpsimd_partial_state, hardirq_fpsimdstate);
static DEFINE_PER_CPU(struct fpsimd_partial_state, softirq_fpsimdstate);
/*
 * Kernel-side NEON support functions
 */
void kernel_neon_begin_partial(u32 num_regs)
{
	if (in_interrupt()) {
		struct fpsimd_partial_state *s = this_cpu_ptr(
			in_irq() ? &hardirq_fpsimdstate : &softirq_fpsimdstate);
		BUG_ON(num_regs > 32);
		fpsimd_save_partial_state(s, roundup(num_regs, 2));
	} else {
	/*
	  * Save the userland FPSIMD state if we have one and if we
	  * haven't done so already. Clear fpsimd_last_state to indicate
	  * that there is no longer userland FPSIMD state in the
	  * registers.
	*/
	preempt_disable();

	if (current->mm)
		fpsimd_save_state(&current->thread.fpsimd_state);
	}
}
EXPORT_SYMBOL(kernel_neon_begin_partial);

void kernel_neon_end(void)
{
	if (in_interrupt()) {
		struct fpsimd_partial_state *s = this_cpu_ptr(
			in_irq() ? &hardirq_fpsimdstate : &softirq_fpsimdstate);
		fpsimd_load_partial_state(s);
	} else {
		if (current->mm)
			fpsimd_load_state(&current->thread.fpsimd_state);
		preempt_enable();
	}
}
EXPORT_SYMBOL(kernel_neon_end);

#endif /* CONFIG_KERNEL_MODE_NEON */

#ifdef CONFIG_CPU_PM
static int fpsimd_cpu_pm_notifier(struct notifier_block *self,
				  unsigned long cmd, void *v)
{
	switch (cmd) {
	case CPU_PM_ENTER:
		if (current->mm)
			fpsimd_save_state(&current->thread.fpsimd_state);
		break;
	case CPU_PM_EXIT:
		if (current->mm)
			fpsimd_load_state(&current->thread.fpsimd_state);
		break;
	case CPU_PM_ENTER_FAILED:
	default:
		return NOTIFY_DONE;
	}
	return NOTIFY_OK;
}

static struct notifier_block fpsimd_cpu_pm_notifier_block = {
	.notifier_call = fpsimd_cpu_pm_notifier,
};

static void fpsimd_pm_init(void)
{
	cpu_pm_register_notifier(&fpsimd_cpu_pm_notifier_block);
}

#else
static inline void fpsimd_pm_init(void) { }
#endif /* CONFIG_CPU_PM */

/*
 * FP/SIMD support code initialisation.
 */
static int __init fpsimd_init(void)
{
	u64 pfr = read_cpuid(ID_AA64PFR0_EL1);

	if (pfr & (0xf << 16)) {
		pr_notice("Floating-point is not implemented\n");
		return 0;
	}
	elf_hwcap |= HWCAP_FP;

	if (pfr & (0xf << 20))
		pr_notice("Advanced SIMD is not implemented\n");
	else
		elf_hwcap |= HWCAP_ASIMD;

	fpsimd_pm_init();

	return 0;
}
late_initcall(fpsimd_init);


text: console.log("Users");


text:
<?php
/**
 * Override me for global changes to all slot behavior
 * @package    apostrophePlugin
 * @subpackage    action
 * @author     P'unk Avenue <apostrophe@punkave.com>
 */
class aSlotComponents extends BaseaSlotComponents
{
}


text:
@interface DCInfoViewController ()<UITableViewDataSource, UITableViewDelegate>

@property(nonatomic, weak) IBOutlet UITableView* tableView;
@property(nonatomic, strong) NSArray* items;
@property(nonatomic) __block DCMainProxyState previousState;

@end

@implementation DCInfoViewController

#pragma mark - View lifecycle

- (void)viewDidLoad {
  [super viewDidLoad];

  [[DCMainProxy sharedProxy]
      setDataReadyCallback:^(DCMainProxyState mainProxyState) {
        dispatch_async(dispatch_get_main_queue(), ^{
          NSLog(@"Data ready callback %d", mainProxyState);
          if (!self.previousState) {
            [self reloadData];
            self.previousState = mainProxyState;
          }

          if (mainProxyState == DCMainProxyStateDataUpdated) {
            [self reloadData];
          }

        });
      }];
}
- (void)reloadData {
  DCInfo* info =
      [[[DCMainProxy sharedProxy] getAllInstancesOfClass:[DCInfo class]
                                             inMainQueue:YES] lastObject];

  NSSortDescriptor* orderDescriptor =
      [[NSSortDescriptor alloc] initWithKey:@"order" ascending:YES];
  NSSortDescriptor* iDDescriptor =
      [[NSSortDescriptor alloc] initWithKey:@"infoId" ascending:YES];

  self.items = [[info.infoCategory allObjects]
      sortedArrayUsingDescriptors:@[ orderDescriptor, iDDescriptor ]];

  [self.tableView reloadData];
}

- (void)viewWillAppear:(BOOL)animated {
  [super viewWillAppear:animated];

  [self arrangeNavigationBar];
}

- (void)arrangeNavigationBar {
  self.navigationController.navigationBar.tintColor =
      [DCAppConfiguration navigationBarColor];
  ;
  self.navigationItem.title = nil;

  [self.navigationController.navigationBar
      setBackgroundImage:[UIImage imageWithColor:[UIColor clearColor]]
           forBarMetrics:UIBarMetricsDefault];
  self.navigationController.navigationBar.shadowImage = [UIImage new];
  self.navigationController.navigationBar.translucent = YES;
  self.navigationController.navigationBar.backgroundColor =
      [UIColor clearColor];
}

#pragma mark - UITableView delegate and source

- (NSInteger)tableView:(UITableView*)tableView
 numberOfRowsInSection:(NSInteger)section {
  return self.items.count;
}

- (UITableViewCell*)tableView:(UITableView*)tableView
        cellForRowAtIndexPath:(NSIndexPath*)indexPath {
  DCInfoMenuCell* cell =
      [tableView dequeueReusableCellWithIdentifier:infoMenuItemCellId];

  cell.titleLabel.text = [(DCInfoCategory*)self.items[indexPath.row] name];
  BOOL isLastCell = (indexPath.row == self.items.count - 1);
  cell.separator.hidden = isLastCell;

  return cell;
}

- (void)tableView:(UITableView*)tableView
    didSelectRowAtIndexPath:(NSIndexPath*)indexPath {
  [tableView deselectRowAtIndexPath:indexPath animated:YES];

  DCAboutViewController* controller = [self.storyboard
      instantiateViewControllerWithIdentifier:@"AboutViewController"];
  [controller setData:self.items[indexPath.row]];

  DCLimitedNavigationController* navContainer =
      [[DCLimitedNavigationController alloc]
          initWithRootViewController:controller
                          completion:^{
                            [self setNeedsStatusBarAppearanceUpdate];
                          }];

  [self.navigationController presentViewController:navContainer
                                          animated:YES
                                        completion:nil];
}

@end


text:
import { Selector, isString } from '@mdui/shared/helpers.js';
import $ from '../$.js';
import { contains } from '../functions/contains.js';
import { JQ } from '../shared/core.js';
import './find.js';
import './map.js';

declare module '../shared/core.js' {
  interface JQ {
    /**
     * 保留含有指定子元素的元素,去掉不含有指定子元素的元素
     * @param selector CSS 选择器或 DOM 元素
     * @example
```js
// 给含有 ul 的 li 加上背景色
$('li').has('ul').css('background-color', 'red');
```
     */
    has(selector: Selector | Element): this;
  }
}

$.fn.has = function (this: JQ, selector: Selector | Element): JQ {
  const $targets = isString(selector) ? this.find(selector) : $(selector);
  const { length } = $targets;

  return this.map(function () {
    for (let i = 0; i < length; i += 1) {
      if (contains(this, $targets[i])) {
        return this;
      }
    }

    return;
  });
};


text:
module Mutant
  class Mutator
    class Node
      # Mutator for rescue nodes
      class Rescue < Generic

        handle :rescue

      end # Rescue
    end # Node
  end # Mutator
end # Mutant


text:
import requests
from bs4 import BeautifulSoup
import processor
from datetime import datetime

def parse( url ):

	r = requests.get( url )
	if r.status_code == 404:
		return processor.create_dictionary('', url, r.status_code, [u''], [u''], u'', u'', u'', u'', [u''], [u''])

	r.encoding = 'UTF-8'
	soup = BeautifulSoup( r.text, "html.parser" )

	article = soup.find( class_ = 'region-content-inner' )
	if article == None:
		return processor.create_dictionary('', url, r.status_code, [u''], [u''], u'', u'', u'', u'', [u''], [u''])

	processor.decompose_all( article.find_all( 'script' ) )
	processor.decompose_all( article.find_all( 'noscript' ) )
	processor.decompose( article.find( id = 'comments' ) )
	processor.decompose( article.find( class_ = 'contributor' ) )
	processor.decompose( article.find( class_ = 'field-name-field-author-image' ) )

	categories = processor.collect_categories( article.find_all( class_ = 'field-name-field-category' ) )
	datetime_list = processor.collect_datetime_objects( article.find_all( class_ = 'date-display-single' ), 'content' )
	author = processor.collect_text( article.find( class_ = 'author-name' ) )
	title = processor.collect_text( article.find( id = 'page-title' ) )
	text = processor.collect_text( article.find( class_ = 'field-name-body' ) )
	images = processor.collect_images( article.find_all( 'img' ), 'src', '' )
	captions = processor.collect_image_captions( article.find_all( class_ = 'field-name-field-image-description' ) )

	return processor.create_dictionary('Uusi Suomi', url, r.status_code, categories, datetime_list, author, title, u'', text, images, captions)

if __name__ == '__main__':
	parse("http://www.uusisuomi.fi/kotimaa/79148-ex-ministeri-kummastelee-jotkut-pitavat-lahes-rikollisena", file('uusisuomi.txt', 'w'))


text:
static NSString *const kCGGoogleDirectionsResponseAttributeStatus = @"status";
static NSString *const kCGGoogleDirectionsResponseAttributeRoutes = @"routes";
static NSString *const kCGGoogleDirectionsResponseAttributeErrorMessage = @"error_message";

@implementation OCDirectionsResponse

+ (instancetype)responseFromDictionary:(NSDictionary *)dictionary {
    OCDirectionsResponse *response = [[OCDirectionsResponse alloc] initWithDictionary:dictionary];
    return response;
}

- (OCDirectionsRoute *)route {
    return self.routes.firstObject;
}

#pragma mark - Private init

- (instancetype)initWithDictionary:(NSDictionary *)dictionary {
    self = [super init];
    if (self) {
        _dictionary = dictionary;

        [self loadStatus];
        [self loadRoutes];
        [self loadErrorMessage];
    }
    return self;
}

#pragma mark - Private methods

+ (NSDictionary *)statusDictionary {
    static NSDictionary *dictionary;

    if (dictionary == nil) {
        dictionary = @{
                @"OK" : @(OCDirectionsResponseStatusOK),
                @"NOT_FOUND" : @(OCDirectionsResponseStatusNotFound),
                @"ZERO_RESULTS" : @(OCDirectionsResponseStatusZeroResults),
                @"MAX_WAYPOINTS_EXCEEDED" : @(OCDirectionsResponseStatusMaxWaypointsExceeded),
                @"INVALID_REQUEST" : @(OCDirectionsResponseStatusInvalidRequest),
                @"OVER_QUERY_LIMIT" : @(OCDirectionsResponseStatusOverQueryLimit),
                @"REQUEST_DENIED" : @(OCDirectionsResponseStatusRequestDenied),
                @"UNKNOWN_ERROR" : @(OCDirectionsResponseStatusUnknownError)
        };
    }
    return dictionary;
}

#pragma mark - Load attributes from dictionary

- (void)loadStatus {
    NSString *statusString = [_dictionary objectForKey:kCGGoogleDirectionsResponseAttributeStatus];

    NSNumber *statusNumber = [[OCDirectionsResponse statusDictionary] objectForKey:statusString];

    _status = [statusNumber unsignedIntegerValue];
}

- (void)loadRoutes {
    NSArray *routesArray = [_dictionary objectForKey:kCGGoogleDirectionsResponseAttributeRoutes];

    NSMutableArray *routes = [[NSMutableArray alloc] initWithCapacity:routesArray.count];
    for (NSDictionary *routeDictionary in routesArray) {
        OCDirectionsRoute *route = [OCDirectionsRoute routeFromDictionary:routeDictionary];
        [routes addObject:route];
    }

    _routes = routes;
}

- (void)loadErrorMessage {
    NSString *errorMessage = [_dictionary objectForKey:kCGGoogleDirectionsResponseAttributeErrorMessage];

    _errorMessage = errorMessage;
}

@end


text:
@interface Settings : NSObject

+ (instancetype)settings;
@property CBUUID *serviceUUID;
@property CBUUID *TXCharacteristicUUID;
@property CBUUID *RXCharacteristicUUID;
@property NSTimeInterval connectionTimeout;
@property NSTimeInterval commandTimeout;
@property NSInteger maxPacketSize;

@end


text:
'''

@author: rtermondt
'''
from django.template import RequestContext
from django.contrib.auth.decorators import login_required
from django.shortcuts import render_to_response
from django.core.paginator import Paginator, EmptyPage, PageNotAnInteger
from manager.models import Initiative
from manager.constants import RECORDS_PER_PAGE
from manager.dao import news_dao

@login_required()
def news(request):
    system_message = None
    init_service = news_dao.initiative_service_needed()[0:10]
    init_service_offer = news_dao.initiative_service_contibutions()[0:10]
    milestone_targets = news_dao.milestone_targets()[0:10]
    milestone_complete = news_dao.milestone_completed()[0:10]
    initiatives = initiatives_sponsor()[0:10]

    return render_to_response('news.html', {
                              'system_message': system_message,
                              'init_service': init_service,
                              'init_service_offer': init_service_offer,
                              'milestone_targets': milestone_targets,
                              'initiatives': initiatives,
                              'milestone_complete': milestone_complete,
                              }, RequestContext(request))

def milesstone_targets(request):
    milestone_targets_list = news_dao.milestone_targets()
    paginator = Paginator(milestone_targets_list, RECORDS_PER_PAGE)
    page = request.GET.get('page')
    try:
        milestone_targets = paginator.page(page)
    except PageNotAnInteger:
        milestone_targets = paginator.page(1)
    except EmptyPage:
        milestone_targets = paginator.page(paginator.num_pages)
    return render_to_response('news.html', {
                              'system_message': None,
                              'milestone_targets': milestone_targets,
                              }, RequestContext(request))

def milesstone_completed(request):
    milestone_complete_list = news_dao.milestone_completed()
    paginator = Paginator(milestone_complete_list, RECORDS_PER_PAGE)
    page = request.GET.get('page')
    try:
        milestone_complete = paginator.page(page)
    except PageNotAnInteger:
        milestone_complete = paginator.page(1)
    except EmptyPage:
        milestone_complete = paginator.page(paginator.num_pages)
    return render_to_response('news.html', {
                              'system_message': None,
                              'milestone_complete': milestone_complete,
                              }, RequestContext(request))

def initiative_started(request):
    initiatives_list = initiatives_sponsor()
    paginator = Paginator(initiatives_list, RECORDS_PER_PAGE)
    page = request.GET.get('page')
    try:
        initiatives = paginator.page(page)
    except PageNotAnInteger:
        initiatives = paginator.page(1)
    except EmptyPage:
        initiatives = paginator.page(paginator.num_pages)

    return render_to_response('news.html', {
                              'system_message': None,
                              'initiatives': initiatives,
                              }, RequestContext(request))

def services_requested(request):
    init_service_list = news_dao.initiative_service_needed()
    paginator = Paginator(init_service_list, RECORDS_PER_PAGE)
    page = request.GET.get('page')
    try:
        init_service = paginator.page(page)
    except PageNotAnInteger:
        init_service = paginator.page(1)
    except EmptyPage:
        init_service = paginator.page(paginator.num_pages)
    return render_to_response('news.html', {
                              'system_message': None,
                              'init_service': init_service,
                              }, RequestContext(request))

def services_contributed(request):
    init_service_offer_list = news_dao.initiative_service_contibutions()
    paginator = Paginator(init_service_offer_list, RECORDS_PER_PAGE)
    page = request.GET.get('page')
    try:
        init_service_offer = paginator.page(page)
    except PageNotAnInteger:
        init_service_offer = paginator.page(1)
    except EmptyPage:
        init_service_offer = paginator.page(paginator.num_pages)
    return render_to_response('news.html', {
                              'system_message': None,
                              'init_service_offer': init_service_offer,
                              }, RequestContext(request))

def initiatives_sponsor():
    return Initiative.objects.filter(is_public=True).values(
        'short_desc',
        'create_date',
        'uuid',
        'profile__first_name',
        'profile__last_name'
    ).order_by('-create_date')


text:
class CreateCreatives < ActiveRecord::Migration
  def change
    create_table :creatives do |t|
      t.string :name
      t.boolean :active, :default => true
      t.timestamps
    end
  end
end


text:
//
//  Master.h
//  dvm-dos-tem
//
//  Created by Tobey Carman on 9/25/13.
//  2013 Spatial Ecology Lab.
//

#ifndef _MASTER_
#define _MASTER_

#include <iostream>
#include <vector>
#include <netcdfcpp.h>

#include "../data/RestartData.h"

class Master {
public:

  Master();
  Master(int, int);

  void dispense_cohorts_to_slaves(const std::vector<int>& cohort_list);
  void get_restartdata_and_progress_from_slaves(int total_num_cohorts);

  //void listen_for_progress_update();

  //RestartData * listen_for_restart_data();

private:
  int rank;
  int processors;

  NcFile setup_restartnc_file(int num_records);
  void write_cohort_record_to_restartnc_file(const NcFile &rfile, const RestartData rd, int record);

  //bool compare_cohortids_asc(const RestartData lhs, const RestartData rhs);
  //bool compare_cohortids_dec(const RestartData lhs, const RestartData rhs);

};

#endif /* _MASTER_) */


text:
<!DOCTYPE HTML>

<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
<title>Simple Youtube To MP3 Converter - YouTubeInMP3.com</title>
<meta name="description" content="Convert any YouTube video to MP3 format with our fast, simple and highly customizable online YouTube to MP3 converter."/>
<meta name="keywords" content="convert, youtube, mp3, online"/>
<meta name="author" content="YouTube In MP3"/>
<meta name="distribution" content="global"/>
<meta name="language" content="en"/>
<meta name="google" content="notranslate"/>
<meta name="robots" content="index, follow"/>
<link rel="stylesheet" type="text/css" href="/css/style.css?v=1.4.4.5">
<link href='//fonts.googleapis.com/css?family=Open+Sans:400,400italic,600%7CRoboto' rel='stylesheet' type='text/css'>
<link rel="stylesheet" href="//cdnjs.cloudflare.com/ajax/libs/font-awesome/4.4.0/css/font-awesome.min.css">

<meta property="og:title" content="Simple Youtube To MP3 Converter"/>
<meta property="og:image" content="/images/icon-512.png"/>
<meta property="og:description" content="Convert any YouTube video to MP3 format with..."/>
<meta property="og:site_name" content="YouTubeInMP3.com"/>
<meta property="og:url" content="https://www.youtubeinmp3.com/"/>

<link rel="shortcut icon" type="image/x-icon" href="/favicon.ico"/>

<link rel="icon" type="image/png" href="/images/icon-16.png" sizes="16x16"/>
<link rel="icon" type="image/png" href="/images/icon-32.png" sizes="32x32"/>
<link rel="icon" type="image/png" href="/images/icon-64.png" sizes="64x64"/>
<link rel="icon" type="image/png" href="/images/icon-96.png" sizes="96x96"/>
<link rel="icon" type="image/png" href="/images/icon-128.png" sizes="128x128"/>

<link rel="apple-touch-icon-precomposed" sizes="152x152" href="/images/icon-152-solid.png"/>

<meta name="application-name" content="YouTubeInMP3"/>
<meta name="msapplication-tooltip" content="Convert any YouTube video to MP3 format with..."/>
<meta name="msapplication-TileColor" content="#273b7a"/>
<meta name="msapplication-TileImage" content="/images/icon-144.png"/>
<meta name="msapplication-square70x70logo" content="/images/icon-70.png"/>
<meta name="msapplication-square150x150logo" content="/images/icon-150.png"/>
<meta name="msapplication-square310x310logo" content="/images/icon-310.png"/>
<meta name="msapplication-wide310x150logo" content="/images/icon-310-150.png"/>
<link rel='alternate' hreflang='de' href='/de/'/>
<link rel='alternate' hreflang='fr' href='/fr/'/>
<link rel='alternate' hreflang='es' href='/es/'/>
<link rel='alternate' hreflang='id' href='/id/'/>
<link rel='alternate' hreflang='it' href='/it/'/>
<link rel='alternate' hreflang='pt' href='/pt/'/>
<link rel='alternate' hreflang='ar' href='/ar/'/>
<link rel='alternate' hreflang='tr' href='/tr/'/>
<link rel='alternate' hreflang='ru' href='/ru/'/>
<link rel='alternate' hreflang='sv' href='/sv/'/>
<link rel='alternate' hreflang='ja' href='/ja/'/>
<link rel='alternate' hreflang='fa' href='/fa/'/>
<link rel='alternate' hreflang='fi' href='/fi/'/>
<link rel='alternate' hreflang='sr' href='/sr/'/>
<link rel='alternate' hreflang='el' href='/el/'/>
<link rel='alternate' hreflang='nl' href='/nl/'/>
<link rel='alternate' hreflang='ko' href='/ko/'/>
<link rel='alternate' hreflang='pl' href='/pl/'/>
<link rel='alternate' hreflang='tl' href='/tl/'/>
<link rel='alternate' hreflang='hi' href='/hi/'/>
<link rel='alternate' hreflang='no' href='/no/'/>
<link rel='alternate' hreflang='da' href='/da/'/>
<link rel='alternate' hreflang='vi' href='/vi/'/>
<link rel='alternate' hreflang='iw' href='/iw/'/>
<link rel="stylesheet" property="stylesheet" href="//cdnjs.cloudflare.com/ajax/libs/tooltipster/3.3.0/css/tooltipster.min.css"/>

<meta name="viewport" content="width=device-width, initial-scale=1"/>

 YouTubeInMP3.com

 Menu

API

Blog

FAQ

Terms of Service

Privacy Policy

 API

English

English

Español

Português

Deutsch

Français

Italiano

Bahasa Indonesia

Svenska

العربية

Türkçe

Русский

日本語

فارسی

Suomalainen

Српски

ελληνικά

Nederlands

한국어

עִברִית

Polskie

Pilipino

हिंदी

Norsk

Dansk

Tiếng Việt

 Addon

A quick way to download MP3s from YouTube

<form id="form" action="/en/download/" method="GET">
<input autofocus="autofocus" id="video" type="search" name="video" placeholder="YouTube Link Or Video Title"/>

<button id="searchButton" type="submit">
 Download MP3
</button>
</form>

Videos are converted in the highest quality available.

YouTube to MP3 converter

 Download and convert videos to MP3 format with the option to edit them.

 MP3s will always be provided in the highest quality available (based on the maximum audio quality of the video, usually 256 kbps).

 An ID3 tag is automatically added to all MP3 files, this will allow your audio player to provide more details about the MP3.

 If you don't have a video link handy, search for a video by typing the video title directly in the search box.

 You don't need to install any software therefore this converter is compatible with any device that can use a browser.

 With our service you will rarely have to wait more than 10 seconds to download an MP3.

 You will never be required to register or install software to download an MP3.

Want to forbid downloading a file? Contact us.

By downloading content from this site, you agree with the Terms of Service.


text:
export ICINGAWEB_PASSWORD=${ICINGAWEB_PASSWORD:-$(pwgen -s 12 1)}
export IDO_PASSWORD=${IDO_PASSWORD:-$(pwgen -s 12 1)}
export NAGIOSQL_PASSWORD=${NAGIOSQL_PASSWORD:-$(pwgen -s 12 1)}

echo "*******************"
echo "* STARTING ICINGA *"
echo "*******************"

if [ -f /opt/pre_startup.sh ]; then
    chmod u+x /opt/pre_startup.sh
    echo "Found pre_startup.sh, executing it"
    /opt/pre_startup.sh
fi

chown -R mysql:mysql /var/lib/mysql

echo "Starting mysql"
/bin/sh -c "/usr/bin/mysqld_safe > /dev/null 2>&1 &"

sleep 15

echo "Setting icinga_web password to ${ICINGAWEB_PASSWORD}"
mysql -e "ALTER USER 'icinga_web'@'localhost' IDENTIFIED BY '${ICINGAWEB_PASSWORD}'; FLUSH PRIVILEGES;"
sed -i -e "s/dbc_dbpass='.*'/dbc_dbpass='${ICINGAWEB_PASSWORD}'/" /etc/dbconfig-common/icinga-web.conf
sed -i -e "s/mysql:\/\/icinga_web:.*@localhost/mysql:\/\/icinga_web:${ICINGAWEB_PASSWORD}@localhost/" /etc/icinga-web/conf.d/database-web.xml
echo "Clearing icinga-web cache"
/usr/lib/icinga-web/bin/clearcache.sh

echo "Setting icinga-idoutils password to ${IDO_PASSWORD}"
mysql -e "ALTER USER 'icinga-idoutils'@'localhost' IDENTIFIED BY '${IDO_PASSWORD}'; FLUSH PRIVILEGES;"
sed -i -e "s/dbc_dbpass='.*'/dbc_dbpass='${IDO_PASSWORD}'/" /etc/dbconfig-common/icinga-idoutils.conf
sed -i -e "s/mysql:\/\/icinga-idoutils:.*@localhost/mysql:\/\/icinga-idoutils:${IDO_PASSWORD}@localhost/" /etc/icinga-web/conf.d/database-ido.xml
sed -i -e "s/db_pass=.*/db_pass=${IDO_PASSWORD}/" /etc/icinga/ido2db.cfg

echo "Setting nagiosql_user password to ${NAGIOSQL_PASSWORD}"
mysql -e "ALTER USER 'nagiosql_user'@'localhost' IDENTIFIED BY '${NAGIOSQL_PASSWORD}'; FLUSH PRIVILEGES;"
sed -i -e "s/password *= .*/password     = ${NAGIOSQL_PASSWORD}/" /var/www/html/nagiosql32/config/settings.php

echo "Starting cron"
cron

echo "Starting apache"
apache2ctl start

echo "Starting ido2db"
/bin/sh -c "/usr/sbin/ido2db -c /etc/icinga/ido2db.cfg"

echo "Starting icinga"
/usr/sbin/icinga -d /etc/icinga/icinga.cfg
sleep 5

chown -R nagios:nagios /var/lib/pnp4nagios/perfdata

if [ -f /opt/post_startup.sh ]; then
    chmod u+x /opt/post_startup.sh
    echo "Found post_startup.sh, executing it"
    /opt/post_startup.sh
fi

tail -f /var/log/icinga/icinga.log

killall icinga


text:
package org.apache.wicket.util.io;

import java.io.IOException;
import java.io.NotSerializableException;
import java.io.ObjectInputStream;
import java.io.ObjectOutputStream;
import java.io.ObjectStreamClass;
import java.io.Serializable;
import java.lang.reflect.Array;
import java.lang.reflect.Constructor;
import java.lang.reflect.Field;
import java.lang.reflect.InvocationTargetException;
import java.lang.reflect.Method;
import java.lang.reflect.Modifier;
import java.lang.reflect.Proxy;
import java.security.AccessController;
import java.util.List;
import java.util.Map;

import org.apache.wicket.util.lang.Generics;

import sun.misc.Unsafe;
import sun.reflect.ReflectionFactory;

/**
 * TODO DOC ME!
 *
 * NOTE: this class uses Sun-specific features: we use {@link Unsafe} because we need to set the
 * final fields, and we use {@link ReflectionFactory} to be able to find constructors appropriate
 * for serialization.
 *
 * @author jcompagner
 */
public final class ClassStreamHandler
{
	private static Unsafe unsafe;

	static
	{
		try
		{
			Class<?>[] classes = ObjectStreamClass.class.getDeclaredClasses();
			for (int i = 0; i < classes.length; i++)
			{
				if (classes[i].getName().equals("java.io.ObjectStreamClass$FieldReflector"))
				{
					Field unsafeField = classes[i].getDeclaredField("unsafe");
					unsafeField.setAccessible(true);

					unsafe = (Unsafe)unsafeField.get(null);
					break;
				}
			}
		}
		catch (Throwable e)
		{
			// e.printStackTrace()
		}
	}

	@SuppressWarnings("unchecked")
	private static final ReflectionFactory reflFactory = (ReflectionFactory)AccessController.doPrivileged(new ReflectionFactory.GetReflectionFactoryAction());

	private static Map<Object, ClassStreamHandler> handlesClasses = Generics.newHashMap();

	private static short classCounter = 0;

	/**
	 *
	 */
	public static final byte HANDLE = 1;

	/**
	 *
	 */
	public static final byte NULL = 0;

	/**
	 *
	 */
	public static final byte CLASS_DEF = 2;

	/**
	 *
	 */
	public static final byte ARRAY = 3;

	/**
	 *
	 */
	public static final byte PRIMITIVE_ARRAY = 4;

	/**
	 *
	 */
	public static final int CLASS = 5;

	static ClassStreamHandler lookup(Class<?> cls) throws NotSerializableException
	{
		ClassStreamHandler classHandler = handlesClasses.get(cls.getName());
		if (classHandler == null)
		{
			classHandler = new ClassStreamHandler(cls);
			handlesClasses.put(cls.getName(), classHandler);
			handlesClasses.put(new Short(classHandler.getClassId()), classHandler);
		}
		return classHandler;
	}

	static ClassStreamHandler lookup(short s)
	{
		ClassStreamHandler classHandler = handlesClasses.get(new Short(s));
		if (classHandler == null)
		{
			throw new RuntimeException("class not found for: " + s);
		}
		return classHandler;
	}

	/**
	 *
	 */
	private final Class<?> clz;
	private final List<FieldAndIndex> fields;
	private final short classId;

	private final Constructor<?> cons;

	private final Method writeReplaceMethod;
	private final Method readResolveMethod;

	private final List<Method> writeObjectMethods;

	private final List<Method> readObjectMethods;

	private final PrimitiveArray primitiveArray;

	/**
	 * Construct.
	 *
	 * @param cls
	 *            TODO
	 * @throws WicketSerializeableException
	 */
	private ClassStreamHandler(Class<?> cls) throws WicketSerializeableException
	{
		classId = classCounter++;
		clz = cls;
		if (cls.isPrimitive())
		{
			fields = null;
			cons = null;
			writeObjectMethods = null;
			readObjectMethods = null;

			writeReplaceMethod = null;
			readResolveMethod = null;

			if (clz == boolean.class)
			{
				primitiveArray = new BooleanPrimitiveArray();
			}
			else if (clz == byte.class)
			{
				primitiveArray = new BytePrimitiveArray();
			}
			else if (clz == short.class)
			{
				primitiveArray = new ShortPrimitiveArray();
			}
			else if (clz == char.class)
			{
				primitiveArray = new CharPrimitiveArray();
			}
			else if (clz == int.class)
			{
				primitiveArray = new IntPrimitiveArray();
			}
			else if (clz == long.class)
			{
				primitiveArray = new LongPrimitiveArray();
			}
			else if (clz == float.class)
			{
				primitiveArray = new FloatPrimitiveArray();
			}
			else if (clz == double.class)
			{
				primitiveArray = new DoublePrimitiveArray();
			}
			else
			{
				throw new RuntimeException("Unsupported primitive " + cls);
			}
		}
		else if (cls.isInterface())
		{
			fields = null;
			cons = null;
			writeObjectMethods = null;
			readObjectMethods = null;
			writeReplaceMethod = null;
			readResolveMethod = null;
			primitiveArray = null;
		}
		else if (Proxy.isProxyClass(clz))
		{
			fields = null;
			cons = null;
			writeObjectMethods = null;
			writeReplaceMethod = null;
			readResolveMethod = null;
			readObjectMethods = null;
			primitiveArray = null;
		}
		else
		{
			fields = Generics.newArrayList();
			primitiveArray = null;
			writeObjectMethods = Generics.newArrayList(2);
			readObjectMethods = Generics.newArrayList(2);
			writeReplaceMethod = getInheritableMethod(clz, "writeReplace", null, Object.class);

			readResolveMethod = getInheritableMethod(clz, "readResolve", null, Object.class);
			if (readResolveMethod == null)
			{
				cons = getSerializableConstructor(clz);
				if (cons == null)
				{
					throw new WicketSerializeableException(
						"No Serializable constructor found for " + cls);
				}
			}
			else
			{
				cons = getSerializableConstructor(clz);
			}

			Class<?> parent = cls;
			while (parent != Object.class)
			{
				Method method = getPrivateMethod(parent, "writeObject",
					new Class[] { ObjectOutputStream.class }, Void.TYPE);
				if (method != null)
				{
					writeObjectMethods.add(method);
				}
				method = getPrivateMethod(parent, "readObject",
					new Class[] { ObjectInputStream.class }, Void.TYPE);
				if (method != null)
				{
					readObjectMethods.add(method);
				}

				parent = parent.getSuperclass();
			}
			fillFields(cls);
		}
	}

	/**
	 * @return stream class
	 */
	public Class<?> getStreamClass()
	{
		return clz;
	}

	/**
	 * @return class id
	 */
	public short getClassId()
	{
		return classId;
	}

	/**
	 * @return new instance of class
	 * @throws InvocationTargetException
	 * @throws IllegalAccessException
	 * @throws InstantiationException
	 * @throws IllegalArgumentException
	 */
	public Object createObject() throws IllegalArgumentException, InstantiationException,
		IllegalAccessException, InvocationTargetException
	{
		return cons.newInstance((Object[])null);
	}

	/**
	 * @param cls
	 */
	private void fillFields(Class<?> cls)
	{
		if (cls == null)
		{
			return;
		}
		Field[] fields = cls.getDeclaredFields();
		for (int i = 0; i < fields.length; i++)
		{
			Field field = fields[i];
			field.setAccessible(true);
			if (!Modifier.isStatic(field.getModifiers()) &&
				!Modifier.isTransient(field.getModifiers()))
			{
				FieldAndIndex fai = null;
				Class<?> clz = field.getType();
				unsafe.objectFieldOffset(field);
				if (clz == boolean.class)
				{
					fai = new BooleanFieldAndIndex(field);
				}
				else if (clz == byte.class)
				{
					fai = new ByteFieldAndIndex(field);
				}
				else if (clz == short.class)
				{
					fai = new ShortFieldAndIndex(field);
				}
				else if (clz == char.class)
				{
					fai = new CharFieldAndIndex(field);
				}
				else if (clz == int.class)
				{
					fai = new IntFieldAndIndex(field);
				}
				else if (clz == long.class)
				{
					fai = new LongFieldAndIndex(field);
				}
				else if (clz == float.class)
				{
					fai = new FloatFieldAndIndex(field);
				}
				else if (clz == double.class)
				{
					fai = new DoubleFieldAndIndex(field);
				}
				else
				{
					fai = new ObjectFieldAndIndex(field);
				}
				this.fields.add(fai);
			}
		}
		cls = cls.getSuperclass();
		if (cls != Object.class)
		{
			fillFields(cls);
		}
		return;
	}

	/**
	 * @param woos
	 * @param obj
	 * @throws WicketSerializeableException
	 */
	public void writeFields(WicketObjectOutputStream woos, Object obj)
		throws WicketSerializeableException
	{
		FieldAndIndex fai = null;
		try
		{
			for (int i = 0; fields != null && i < fields.size(); i++)
			{
				fai = fields.get(i);
				fai.writeField(obj, woos);
			}
		}
		catch (WicketSerializeableException wse)
		{
			wse.addTrace(fai.field.getName());
			throw wse;
		}
		catch (Exception ex)
		{
			String field = fai == null || fai.field == null ? "" : fai.field.getName();
			String msg = "Error writing field: " + field + " for object class: " + obj.getClass();
			throw new WicketSerializeableException(msg, ex);
		}

	}

	/**
	 * @param wois
	 * @param object
	 * @throws WicketSerializeableException
	 */
	public void readFields(WicketObjectInputStream wois, Object object)
		throws WicketSerializeableException
	{
		FieldAndIndex fai = null;
		try
		{
			for (int i = 0; i < fields.size(); i++)
			{
				fai = fields.get(i);
				fai.readField(object, wois);
			}
		}
		catch (WicketSerializeableException wse)
		{
			wse.addTrace(fai.field.getName());
			throw wse;
		}
		catch (Exception ex)
		{
			throw new WicketSerializeableException("Error reading field: " + fai.field.getName() +
				" for object class: " + object.getClass(), ex);
		}
	}

	/**
	 * @param obj
	 * @param wois
	 * @throws IOException
	 */
	public void writeArray(Object obj, WicketObjectOutputStream wois) throws IOException
	{
		primitiveArray.writeArray(obj, wois);
	}

	/**
	 * @param wois
	 * @return array
	 * @throws IOException
	 */
	public Object readArray(WicketObjectInputStream wois) throws IOException
	{
		return primitiveArray.readArray(wois);
	}

	/**
	 * @param woos
	 * @param obj
	 * @return true if method was invoked, false otherwise
	 * @throws InvocationTargetException
	 * @throws IllegalAccessException
	 * @throws IllegalArgumentException
	 */
	public boolean invokeWriteMethod(WicketObjectOutputStream woos, Object obj)
	{
		if ((writeObjectMethods != null) && writeObjectMethods.size() > 0)
		{
			for (int i = writeObjectMethods.size(); --i >= 0;)
			{
				Method method = writeObjectMethods.get(i);

				try
				{
					method.invoke(obj, new Object[] { woos });
				}
				catch (IllegalArgumentException ex)
				{
					throw new RuntimeException(ex);
				}
				catch (IllegalAccessException ex)
				{
					throw new RuntimeException(ex);
				}
				catch (InvocationTargetException ex)
				{
					throw new RuntimeException(ex);
				}
			}
			return true;
		}
		return false;
	}

	/**
	 * @param wois
	 * @param obj
	 * @return if read method was invoked
	 */
	public boolean invokeReadMethod(WicketObjectInputStream wois, Object obj)
	{
		if ((readObjectMethods != null) && readObjectMethods.size() > 0)
		{
			for (int i = readObjectMethods.size(); --i >= 0;)
			{
				Method method = readObjectMethods.get(i);
				try
				{
					method.invoke(obj, new Object[] { wois });
				}
				catch (IllegalArgumentException ex)
				{
					throw new RuntimeException(ex);
				}
				catch (IllegalAccessException ex)
				{
					throw new RuntimeException(ex);
				}
				catch (InvocationTargetException ex)
				{
					throw new RuntimeException(ex);
				}
			}
			return true;
		}
		return false;
	}

	@SuppressWarnings( { "unchecked" })
	private static <T> Constructor<? super T> getSerializableConstructor(Class<T> cl)
	{
		Class<? super T> initCl = cl;
		while (Serializable.class.isAssignableFrom(initCl))
		{
			if ((initCl = initCl.getSuperclass()) == null)
			{
				return null;
			}
		}
		try
		{
			Constructor<? super T> cons = initCl.getDeclaredConstructor((Class[])null);
			int mods = cons.getModifiers();
			if ((mods & Modifier.PRIVATE) != 0 ||
				((mods & (Modifier.PUBLIC | Modifier.PROTECTED)) == 0 && !packageEquals(cl, initCl)))
			{
				return null;
			}
			cons = reflFactory.newConstructorForSerialization(cl, cons);
			cons.setAccessible(true);
			return cons;
		}
		catch (NoSuchMethodException ex)
		{
			return null;
		}
	}

	/**
	 * Returns non-static private method with given signature defined by given class, or null if
	 * none found. Access checks are disabled on the returned method (if any).
	 *
	 * @param cl
	 * @param name
	 * @param argTypes
	 * @param returnType
	 * @return private method or null if none
	 */
	private static Method getPrivateMethod(Class<?> cl, String name, Class<?>[] argTypes,
		Class<?> returnType)
	{
		try
		{
			Method meth = cl.getDeclaredMethod(name, argTypes);
			meth.setAccessible(true);
			int mods = meth.getModifiers();
			return ((meth.getReturnType() == returnType) && ((mods & Modifier.STATIC) == 0) && ((mods & Modifier.PRIVATE) != 0))
				? meth : null;
		}
		catch (NoSuchMethodException ex)
		{
			return null;
		}
	}

	/**
	 * Returns non-static, non-abstract method with given signature provided it is defined by or
	 * accessible (via inheritance) by the given class, or null if no match found. Access checks are
	 * disabled on the returned method (if any).
	 *
	 * @param cl
	 * @param name
	 * @param argTypes
	 * @param returnType
	 * @return inheritable method or null if none
	 */
	private static Method getInheritableMethod(Class<?> cl, String name, Class<?>[] argTypes,
		Class<?> returnType)
	{
		Method meth = null;
		Class<?> defCl = cl;
		while (defCl != null)
		{
			try
			{
				meth = defCl.getDeclaredMethod(name, argTypes);
				break;
			}
			catch (NoSuchMethodException ex)
			{
				defCl = defCl.getSuperclass();
			}
		}

		if ((meth == null) || (meth.getReturnType() != returnType))
		{
			return null;
		}
		meth.setAccessible(true);
		int mods = meth.getModifiers();
		if ((mods & (Modifier.STATIC | Modifier.ABSTRACT)) != 0)
		{
			return null;
		}
		else if ((mods & (Modifier.PUBLIC | Modifier.PROTECTED)) != 0)
		{
			return meth;
		}
		else if ((mods & Modifier.PRIVATE) != 0)
		{
			return (cl == defCl) ? meth : null;
		}
		else
		{
			return packageEquals(cl, defCl) ? meth : null;
		}
	}

	private static boolean packageEquals(Class<?> cl1, Class<?> cl2)
	{
		return (cl1.getClassLoader() == cl2.getClassLoader() && getPackageName(cl1).equals(
			getPackageName(cl2)));
	}

	/**
	 * Returns package name of given class.
	 *
	 * @param cl
	 * @return package name
	 */
	private static String getPackageName(Class<?> cl)
	{
		String s = cl.getName();
		int i = s.lastIndexOf('[');
		if (i >= 0)
		{
			s = s.substring(i + 2);
		}
		i = s.lastIndexOf('.');
		return (i >= 0) ? s.substring(0, i) : "";
	}

	private abstract class FieldAndIndex
	{
		final Field field;
		final long index;

		FieldAndIndex(Field field)
		{
			this.field = field;
			index = unsafe.objectFieldOffset(field);
		}

		public abstract void writeField(Object object, WicketObjectOutputStream dos)
			throws IOException;

		public abstract void readField(Object object, WicketObjectInputStream dos)
			throws IOException, ClassNotFoundException;
	}

	private final class BooleanFieldAndIndex extends FieldAndIndex
	{
		BooleanFieldAndIndex(Field field)
		{
			super(field);
		}

		/**
		 * @throws IOException
		 * @see org.apache.wicket.util.io.ClassStreamHandler.FieldAndIndex#writeField(Object,
		 *      WicketObjectOutputStream)
		 */
		@Override
		public void writeField(Object object, WicketObjectOutputStream dos) throws IOException
		{
			dos.writeBoolean(unsafe.getBoolean(object, index));
		}

		/**
		 * @see org.apache.wicket.util.io.ClassStreamHandler.FieldAndIndex#readField(Object,
		 *      WicketObjectInputStream)
		 */
		@Override
		public void readField(Object object, WicketObjectInputStream dos) throws IOException
		{
			unsafe.putBoolean(object, index, dos.readBoolean());
		}
	}

	private final class ByteFieldAndIndex extends FieldAndIndex
	{
		ByteFieldAndIndex(Field field)
		{
			super(field);
		}

		/**
		 * @throws IOException
		 * @see org.apache.wicket.util.io.ClassStreamHandler.FieldAndIndex#writeField(Object,
		 *      WicketObjectOutputStream)
		 */
		@Override
		public void writeField(Object object, WicketObjectOutputStream dos) throws IOException
		{
			dos.writeByte(unsafe.getByte(object, index));
		}

		/**
		 * @see org.apache.wicket.util.io.ClassStreamHandler.FieldAndIndex#readField(Object,
		 *      WicketObjectInputStream)
		 */
		@Override
		public void readField(Object object, WicketObjectInputStream dos) throws IOException
		{
			unsafe.putByte(object, index, dos.readByte());
		}
	}

	private final class ShortFieldAndIndex extends FieldAndIndex
	{
		ShortFieldAndIndex(Field field)
		{
			super(field);
		}

		/**
		 * @throws IOException
		 * @see org.apache.wicket.util.io.ClassStreamHandler.FieldAndIndex#writeField(Object,
		 *      WicketObjectOutputStream)
		 */
		@Override
		public void writeField(Object object, WicketObjectOutputStream dos) throws IOException
		{
			dos.writeShort(unsafe.getShort(object, index));
		}

		/**
		 * @see org.apache.wicket.util.io.ClassStreamHandler.FieldAndIndex#readField(Object,
		 *      WicketObjectInputStream)
		 */
		@Override
		public void readField(Object object, WicketObjectInputStream dos) throws IOException
		{
			unsafe.putShort(object, index, dos.readShort());
		}
	}

	private final class CharFieldAndIndex extends FieldAndIndex
	{
		CharFieldAndIndex(Field field)
		{
			super(field);
		}

		/**
		 * @throws IOException
		 * @see org.apache.wicket.util.io.ClassStreamHandler.FieldAndIndex#writeField(Object,
		 *      WicketObjectOutputStream)
		 */
		@Override
		public void writeField(Object object, WicketObjectOutputStream dos) throws IOException
		{
			dos.writeChar(unsafe.getChar(object, index));
		}

		/**
		 * @see org.apache.wicket.util.io.ClassStreamHandler.FieldAndIndex#readField(java.lang.Object,
		 *      WicketObjectInputStream)
		 */
		@Override
		public void readField(Object object, WicketObjectInputStream dos) throws IOException
		{
			unsafe.putChar(object, index, dos.readChar());
		}
	}

	private final class IntFieldAndIndex extends FieldAndIndex
	{
		IntFieldAndIndex(Field field)
		{
			super(field);
		}

		/**
		 * @throws IOException
		 * @see org.apache.wicket.util.io.ClassStreamHandler.FieldAndIndex#writeField(Object,
		 *      WicketObjectOutputStream)
		 */
		@Override
		public void writeField(Object object, WicketObjectOutputStream dos) throws IOException
		{
			dos.writeInt(unsafe.getInt(object, index));
		}

		/**
		 * @see org.apache.wicket.util.io.ClassStreamHandler.FieldAndIndex#readField(java.lang.Object,
		 *      WicketObjectInputStream)
		 */
		@Override
		public void readField(Object object, WicketObjectInputStream dos) throws IOException
		{
			unsafe.putInt(object, index, dos.readInt());
		}
	}

	private final class LongFieldAndIndex extends FieldAndIndex
	{
		LongFieldAndIndex(Field field)
		{
			super(field);
		}

		/**
		 * @throws IOException
		 * @see org.apache.wicket.util.io.ClassStreamHandler.FieldAndIndex#writeField(Object,
		 *      WicketObjectOutputStream)
		 */
		@Override
		public void writeField(Object object, WicketObjectOutputStream dos) throws IOException
		{
			dos.writeLong(unsafe.getLong(object, index));
		}

		/**
		 * @see org.apache.wicket.util.io.ClassStreamHandler.FieldAndIndex#readField(java.lang.Object,
		 *      WicketObjectInputStream)
		 */
		@Override
		public void readField(Object object, WicketObjectInputStream dos) throws IOException
		{
			unsafe.putLong(object, index, dos.readLong());
		}
	}

	private final class FloatFieldAndIndex extends FieldAndIndex
	{
		FloatFieldAndIndex(Field field)
		{
			super(field);
		}

		/**
		 * @throws IOException
		 * @see org.apache.wicket.util.io.ClassStreamHandler.FieldAndIndex#writeField(Object,
		 *      WicketObjectOutputStream)
		 */
		@Override
		public void writeField(Object object, WicketObjectOutputStream dos) throws IOException
		{
			dos.writeFloat(unsafe.getFloat(object, index));
		}

		/**
		 * @see org.apache.wicket.util.io.ClassStreamHandler.FieldAndIndex#readField(java.lang.Object,
		 *      WicketObjectInputStream)
		 */
		@Override
		public void readField(Object object, WicketObjectInputStream dos) throws IOException
		{
			unsafe.putFloat(object, index, dos.readFloat());
		}
	}

	private final class DoubleFieldAndIndex extends FieldAndIndex
	{
		DoubleFieldAndIndex(Field field)
		{
			super(field);
		}

		/**
		 * @throws IOException
		 * @see org.apache.wicket.util.io.ClassStreamHandler.FieldAndIndex#writeField(Object,
		 *      WicketObjectOutputStream)
		 */
		@Override
		public void writeField(Object object, WicketObjectOutputStream dos) throws IOException
		{
			dos.writeDouble(unsafe.getDouble(object, index));
		}

		/**
		 * @see org.apache.wicket.util.io.ClassStreamHandler.FieldAndIndex#readField(java.lang.Object,
		 *      WicketObjectInputStream)
		 */
		@Override
		public void readField(Object object, WicketObjectInputStream dos) throws IOException
		{
			unsafe.putDouble(object, index, dos.readDouble());
		}
	}

	private final class ObjectFieldAndIndex extends FieldAndIndex
	{
		ObjectFieldAndIndex(Field field)
		{
			super(field);
		}

		/**
		 * @throws IOException
		 * @see org.apache.wicket.util.io.ClassStreamHandler.FieldAndIndex#writeField(Object,
		 *      WicketObjectOutputStream)
		 */
		@Override
		public void writeField(Object object, WicketObjectOutputStream dos) throws IOException
		{
			dos.writeObject(unsafe.getObject(object, index));
		}

		/**
		 * @throws ClassNotFoundException
		 * @see org.apache.wicket.util.io.ClassStreamHandler.FieldAndIndex#readField(java.lang.Object,
		 *      WicketObjectInputStream)
		 */
		@Override
		public void readField(Object object, WicketObjectInputStream dos) throws IOException,
			ClassNotFoundException
		{
			unsafe.putObject(object, index, dos.readObject());
		}
	}

	private abstract class PrimitiveArray
	{
		public abstract void writeArray(Object object, WicketObjectOutputStream dos)
			throws IOException;

		public abstract Object readArray(WicketObjectInputStream dos) throws IOException;
	}

	private final class BooleanPrimitiveArray extends PrimitiveArray
	{
		/**
		 * @throws IOException
		 * @see org.apache.wicket.util.io.ClassStreamHandler.PrimitiveArray#writeArray(Object,
		 *      WicketObjectOutputStream)
		 */
		@Override
		public void writeArray(Object object, WicketObjectOutputStream dos) throws IOException
		{
			int length = Array.getLength(object);
			dos.writeInt(length);
			for (int i = 0; i < length; i++)
			{
				dos.writeBoolean(Array.getBoolean(object, i));
			}
		}

		/**
		 * @see org.apache.wicket.util.io.ClassStreamHandler.PrimitiveArray#readArray(WicketObjectInputStream)
		 */
		@Override
		public Object readArray(WicketObjectInputStream dos) throws IOException
		{
			int length = dos.readInt();
			Object array = Array.newInstance(getStreamClass(), length);
			for (int i = 0; i < length; i++)
			{
				Array.setBoolean(array, i, dos.readBoolean());
			}
			return array;
		}
	}

	private final class BytePrimitiveArray extends PrimitiveArray
	{
		/**
		 * @throws IOException
		 * @see org.apache.wicket.util.io.ClassStreamHandler.PrimitiveArray#writeArray(Object,
		 *      WicketObjectOutputStream)
		 */
		@Override
		public void writeArray(Object object, WicketObjectOutputStream dos) throws IOException
		{
			int length = Array.getLength(object);
			dos.writeInt(length);
			for (int i = 0; i < length; i++)
			{
				dos.writeByte(Array.getByte(object, i));
			}
		}

		/**
		 * @see org.apache.wicket.util.io.ClassStreamHandler.PrimitiveArray#readArray(WicketObjectInputStream)
		 */
		@Override
		public Object readArray(WicketObjectInputStream dos) throws IOException
		{
			int length = dos.readInt();
			Object array = Array.newInstance(getStreamClass(), length);
			for (int i = 0; i < length; i++)
			{
				Array.setByte(array, i, dos.readByte());
			}
			return array;
		}
	}

	private final class ShortPrimitiveArray extends PrimitiveArray
	{
		/**
		 * @throws IOException
		 * @see org.apache.wicket.util.io.ClassStreamHandler.PrimitiveArray#writeArray(Object,
		 *      WicketObjectOutputStream)
		 */
		@Override
		public void writeArray(Object object, WicketObjectOutputStream dos) throws IOException
		{
			int length = Array.getLength(object);
			dos.writeInt(length);
			for (int i = 0; i < length; i++)
			{
				dos.writeShort(Array.getShort(object, i));
			}
		}

		/**
		 * @see org.apache.wicket.util.io.ClassStreamHandler.PrimitiveArray#readArray(WicketObjectInputStream)
		 */
		@Override
		public Object readArray(WicketObjectInputStream dos) throws IOException
		{
			int length = dos.readInt();
			Object array = Array.newInstance(getStreamClass(), length);
			for (int i = 0; i < length; i++)
			{
				Array.setShort(array, i, dos.readShort());
			}
			return array;
		}
	}

	private final class CharPrimitiveArray extends PrimitiveArray
	{

		/**
		 * @throws IOException
		 * @see org.apache.wicket.util.io.ClassStreamHandler.PrimitiveArray#writeArray(Object,
		 *      WicketObjectOutputStream)
		 */
		@Override
		public void writeArray(Object object, WicketObjectOutputStream dos) throws IOException
		{
			int length = Array.getLength(object);
			dos.writeInt(length);
			for (int i = 0; i < length; i++)
			{
				dos.writeChar(Array.getChar(object, i));
			}
		}

		/**
		 * @see org.apache.wicket.util.io.ClassStreamHandler.PrimitiveArray#readArray(WicketObjectInputStream)
		 */
		@Override
		public Object readArray(WicketObjectInputStream dos) throws IOException
		{
			int length = dos.readInt();
			Object array = Array.newInstance(getStreamClass(), length);
			for (int i = 0; i < length; i++)
			{
				Array.setChar(array, i, dos.readChar());
			}
			return array;
		}
	}

	private final class IntPrimitiveArray extends PrimitiveArray
	{
		/**
		 * @throws IOException
		 * @see org.apache.wicket.util.io.ClassStreamHandler.PrimitiveArray#writeArray(Object,
		 *      WicketObjectOutputStream)
		 */
		@Override
		public void writeArray(Object object, WicketObjectOutputStream dos) throws IOException
		{
			int length = Array.getLength(object);
			dos.writeInt(length);
			for (int i = 0; i < length; i++)
			{
				dos.writeInt(Array.getInt(object, i));
			}
		}

		/**
		 * @see org.apache.wicket.util.io.ClassStreamHandler.PrimitiveArray#readArray(WicketObjectInputStream)
		 */
		@Override
		public Object readArray(WicketObjectInputStream dos) throws IOException
		{
			int length = dos.readInt();
			Object array = Array.newInstance(getStreamClass(), length);
			for (int i = 0; i < length; i++)
			{
				Array.setInt(array, i, dos.readInt());
			}
			return array;
		}
	}

	private final class LongPrimitiveArray extends PrimitiveArray
	{
		/**
		 * @throws IOException
		 * @see org.apache.wicket.util.io.ClassStreamHandler.PrimitiveArray#writeArray(Object,
		 *      WicketObjectOutputStream)
		 */
		@Override
		public void writeArray(Object object, WicketObjectOutputStream dos) throws IOException
		{
			int length = Array.getLength(object);
			dos.writeInt(length);
			for (int i = 0; i < length; i++)
			{
				dos.writeLong(Array.getLong(object, i));
			}
		}

		/**
		 * @see org.apache.wicket.util.io.ClassStreamHandler.PrimitiveArray#readArray(WicketObjectInputStream)
		 */
		@Override
		public Object readArray(WicketObjectInputStream dos) throws IOException
		{
			int length = dos.readInt();
			Object array = Array.newInstance(getStreamClass(), length);
			for (int i = 0; i < length; i++)
			{
				Array.setLong(array, i, dos.readLong());
			}
			return array;
		}
	}

	private final class FloatPrimitiveArray extends PrimitiveArray
	{
		/**
		 * @throws IOException
		 * @see org.apache.wicket.util.io.ClassStreamHandler.PrimitiveArray#writeArray(Object,
		 *      WicketObjectOutputStream)
		 */
		@Override
		public void writeArray(Object object, WicketObjectOutputStream dos) throws IOException
		{
			int length = Array.getLength(object);
			dos.writeInt(length);
			for (int i = 0; i < length; i++)
			{
				dos.writeFloat(Array.getFloat(object, i));
			}
		}

		/**
		 * @see org.apache.wicket.util.io.ClassStreamHandler.PrimitiveArray#readArray(WicketObjectInputStream)
		 */
		@Override
		public Object readArray(WicketObjectInputStream dos) throws IOException
		{
			int length = dos.readInt();
			Object array = Array.newInstance(getStreamClass(), length);
			for (int i = 0; i < length; i++)
			{
				Array.setFloat(array, i, dos.readFloat());
			}
			return array;
		}
	}

	private final class DoublePrimitiveArray extends PrimitiveArray
	{
		/**
		 * @throws IOException
		 * @see org.apache.wicket.util.io.ClassStreamHandler.PrimitiveArray#writeArray(Object,
		 *      WicketObjectOutputStream)
		 */
		@Override
		public void writeArray(Object object, WicketObjectOutputStream dos) throws IOException
		{
			int length = Array.getLength(object);
			dos.writeInt(length);
			for (int i = 0; i < length; i++)
			{
				dos.writeDouble(Array.getDouble(object, i));
			}
		}

		/**
		 * @see org.apache.wicket.util.io.ClassStreamHandler.PrimitiveArray#readArray(WicketObjectInputStream)
		 */
		@Override
		public Object readArray(WicketObjectInputStream dos) throws IOException
		{
			int length = dos.readInt();
			Object array = Array.newInstance(getStreamClass(), length);
			for (int i = 0; i < length; i++)
			{
				Array.setDouble(array, i, dos.readDouble());
			}
			return array;
		}
	}

	/**
	 * @param o
	 * @return replacement object
	 * @throws NotSerializableException
	 */
	public Object writeReplace(Object o) throws NotSerializableException
	{
		if (writeReplaceMethod != null)
		{
			try
			{
				return writeReplaceMethod.invoke(o, (Object[])null);
			}
			catch (Exception ex)
			{
				throw new NotSerializableException(ex.getMessage());
			}
		}
		return null;
	}

	/**
	 * @param o
	 * @return resolved object
	 * @throws NotSerializableException
	 */
	public Object readResolve(Object o) throws NotSerializableException
	{
		if (readResolveMethod != null)
		{
			try
			{
				return readResolveMethod.invoke(o, (Object[])null);
			}
			catch (Exception ex)
			{
				throw new NotSerializableException(ex.getMessage());
			}
		}
		return o;
	}
}


text:
tinyMCEPopup.requireLangPack();

var SyntaxHLDialog = {
  init : function() {
    // get arguments passed from plugin to window.
    var editor_content = tinyMCEPopup.getWindowArg('editor_content');
    var editor_options = tinyMCEPopup.getWindowArg('editor_options');

    // check to see if any content was passed to window
    if(editor_content != undefined) {
      // select form and place snippet code into editor window
      var f = document.forms[0];
      tinyMCEPopup.editor.dom.setHTML(f.syntaxhl_code, editor_content);

      // check for each option and update form elements accordingly
      if(editor_options['brush']) {
        for(var i = 0; i < f.syntaxhl_language.options.length; i++) {
          if(f.syntaxhl_language.options[i].value == editor_options['brush']) {
            f.syntaxhl_language.selectedIndex = i;
            break;
          }
        }
      }
      if(editor_options['fontsize']) {
        f.syntaxhl_fontsize.value = editor_options['fontsize'];
      }
      if(editor_options['first-line']) {
        f.syntaxhl_firstline.value = editor_options['first-line'];
      }
      if(editor_options['highlight']) {
        f.syntaxhl_highlight.value = editor_options['highlight'].replace(/[\[\]']+/g,'');
      }
      if (editor_options['linenums'] && editor_options['linenums'] == 'true') {
          f.syntaxhl_linenums.checked = 'true';
      }
      if(editor_options['toolbar'] && editor_options['toolbar'] == 'false') {
        f.syntaxhl_hide_toolbar.checked = 'true';
      }
    }
  },

  insert : function() {
    var f = document.forms[0], textarea_output, options = '', replace_element;

    //If no code just return.
    if(f.syntaxhl_code.value == '') {
      tinyMCEPopup.close();
      return false;
    }

    // get replacement argument to determine return type
    replace_element = tinyMCEPopup.getWindowArg('replace_content');

    if(f.syntaxhl_fontsize.value != '') {
      var fontsize=parseInt(f.syntaxhl_fontsize.value);
      options += 'fontsize: ' + fontsize + '; ';
    }
    if(f.syntaxhl_firstline.value != '') {
      var linenumber = parseInt(f.syntaxhl_firstline.value);
      options += 'first-line: ' + linenumber + '; ';
    }
    if(f.syntaxhl_highlight.value != '') {
      options += 'highlight: [' + f.syntaxhl_highlight.value + ']; ';
    }

    textarea_output = '
';
    textarea_output +=  tinyMCEPopup.editor.dom.encode(f.syntaxhl_code.value);
    textarea_output += '
 '; /* note space at the end, had a bug it was inserting twice? */

    // check for replace_element option value and return output accordingly
    if(replace_element == false) {
      tinyMCEPopup.editor.execCommand('mceInsertContent', false, textarea_output);
    } else {
      tinyMCEPopup.editor.execCommand('mceReplaceContent', false, textarea_output);
    }
    tinyMCEPopup.close();
  }
};

tinyMCEPopup.onInit.add(SyntaxHLDialog.init, SyntaxHLDialog);


text:
SHELL = /bin/sh

srcdir = ../../../../newlib/libc
top_srcdir = ../../../../newlib/libc
VPATH = ../../../../newlib/libc
prefix = /Users/Hippo/sunflower-simulator/tools/superH
exec_prefix = ${prefix}

bindir = ${exec_prefix}/bin
sbindir = ${exec_prefix}/sbin
libexecdir = ${exec_prefix}/libexec
datadir = ${prefix}/share
sysconfdir = ${prefix}/etc
sharedstatedir = ${prefix}/com
localstatedir = ${prefix}/var
libdir = ${exec_prefix}/lib
infodir = ${prefix}/info
mandir = ${prefix}/man
includedir = ${prefix}/include
oldincludedir = /usr/include

DESTDIR =

pkgdatadir = $(datadir)/newlib
pkglibdir = $(libdir)/newlib
pkgincludedir = $(includedir)/newlib

top_builddir = .

ACLOCAL = aclocal
AUTOCONF = /Users/Hippo/sunflower-simulator/tools/source/newlib-1.9.0/missing autoconf
AUTOMAKE = automake
AUTOHEADER = /Users/Hippo/sunflower-simulator/tools/source/newlib-1.9.0/missing autoheader

INSTALL = /usr/bin/install -c
INSTALL_PROGRAM = ${INSTALL} $(AM_INSTALL_PROGRAM_FLAGS)
INSTALL_DATA = ${INSTALL} -m 644
INSTALL_SCRIPT = ${INSTALL_PROGRAM}
transform = s,x,x,

NORMAL_INSTALL = :
PRE_INSTALL = :
POST_INSTALL = :
NORMAL_UNINSTALL = :
PRE_UNINSTALL = :
POST_UNINSTALL = :
host_alias = sh-coff
host_triplet = sh-unknown-coff
AR = sh-coff-ar
AS = sh-coff-as
CC = sh-coff-gcc -B/Users/Hippo/sunflower-simulator/tools/source/newlib-1.9.0/objdir/sh-coff/newlib/ -isystem /Users/Hippo/sunflower-simulator/tools/source/newlib-1.9.0/objdir/sh-coff/newlib/targ-include -isystem /Users/Hippo/sunflower-simulator/tools/source/newlib-1.9.0/newlib/libc/include
CPP = @CPP@
CRT0 = crt0.o
EXEEXT =
LIBC_MACHINE_LIB = machine/lib.a
LIBC_POSIX_LIB =
LIBC_SIGNAL_DEF = signal/stmp-def
LIBC_SIGNAL_LIB = signal/lib.a
LIBC_SYSCALL_LIB = syscalls/lib.a
LIBC_SYS_LIB = sys/lib.a
LIBC_UNIX_LIB =
MAINT = #
MAKEINFO = makeinfo
NEWLIB_CFLAGS =  -O2 -I$(top_builddir)/../targ-include -I$(top_builddir)/../../../../newlib/libc/../libc/include -fno-builtin
PACKAGE = newlib
RANLIB = sh-coff-ranlib
VERSION = 1.9.0
machine_dir = sh
newlib_basedir = ../../../../newlib/libc/..
sys_dir = sh

AUTOMAKE_OPTIONS = cygnus

#POSIX_SUBDIR = \
#posix

SIGNAL_SUBDIR = \
signal

SYSCALLS_SUBDIR = \
syscalls

#UNIX_SUBDIR = \
#unix

# The order of SUBDIRS is important for the integrated documentation.
# Do not change the order without considering the doc impact.
SUBDIRS = stdlib ctype stdio string $(SIGNAL_SUBDIR) time locale sys reent \
	errno misc machine $(UNIX_SUBDIR) $(POSIX_SUBDIR) $(SYSCALLS_SUBDIR) .

noinst_LIBRARIES = libc.a
noinst_DATA = $(CRT0)

SUBLIBS = \
	stdlib/lib.a \
	ctype/lib.a \
	stdio/lib.a \
	string/lib.a \
	$(LIBC_SIGNAL_LIB) \
	time/lib.a \
	locale/lib.a \
	$(LIBC_SYS_LIB) \
	reent/lib.a \
	errno/lib.a \
	misc/lib.a \
	$(LIBC_MACHINE_LIB) \
	$(LIBC_UNIX_LIB) \
	$(LIBC_POSIX_LIB) \
	$(LIBC_SYSCALL_LIB)

info_TEXINFOS = libc.texinfo

# This is a list of the stmp-def files in each subdirectory which
# builds .def files.  We don't list subdirectories which don't build
# .def files; if the list of subdirectories changes, we must change
# this as well.
SUBDEFS = \
	stdlib/stmp-def \
	ctype/stmp-def \
	stdio/stmp-def \
	string/stmp-def \
	$(LIBC_SIGNAL_DEF) \
	time/stmp-def \
	locale/stmp-def \
	reent/stmp-def \
	misc/stmp-def

CLEANFILES = crt0.o \
	sigset.texi stmp-sigset tmp.texi targetdep.tex stmp-targetdep

ACLOCAL_AMFLAGS = -I ..
CONFIG_STATUS_DEPENDENCIES = $(newlib_basedir)/configure.host
ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
mkinstalldirs = $(SHELL) $(top_srcdir)/../../mkinstalldirs
CONFIG_CLEAN_FILES =
LIBRARIES =  $(noinst_LIBRARIES)

DEFS =  -DPACKAGE=\"newlib\" -DVERSION=\"1.9.0\"  -I. -I$(srcdir)
CPPFLAGS =
LDFLAGS =
LIBS =
libc_a_LIBADD =
libc_a_SOURCES = libc.a.c
libc_a_OBJECTS =  libc.a.o
CFLAGS = -Os
COMPILE = $(CC) $(DEFS) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
CCLD = $(CC)
LINK = $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(LDFLAGS) -o $@
TEXI2DVI = `if test -f $(top_srcdir)/../texinfo/util/texi2dvi; then echo $(top_srcdir)/../texinfo/util/texi2dvi; else echo texi2dvi; fi`
TEXINFO_TEX = $(top_srcdir)/../texinfo/texinfo.tex
INFO_DEPS = libc.info
DVIS = libc.dvi
TEXINFOS = libc.texinfo
DATA =  $(noinst_DATA)

DIST_COMMON =  Makefile.am Makefile.in aclocal.m4 configure configure.in

DISTFILES = $(DIST_COMMON) $(SOURCES) $(HEADERS) $(TEXINFOS) $(EXTRA_DIST)

TAR = tar
GZIP_ENV = --best
DIST_SUBDIRS =  stdlib ctype stdio string signal time locale sys reent \
errno misc machine unix posix syscalls .
SOURCES = libc.a.c
OBJECTS = libc.a.o

all: all-redirect
.SUFFIXES:
.SUFFIXES: .S .c .dvi .info .o .ps .s .texi .texinfo .txi
$(srcdir)/Makefile.in: # Makefile.am $(top_srcdir)/configure.in $(ACLOCAL_M4)
	cd $(top_srcdir) && $(AUTOMAKE) --cygnus Makefile

Makefile: $(srcdir)/Makefile.in  $(top_builddir)/config.status
	cd $(top_builddir) \
	  && CONFIG_FILES=$@ CONFIG_HEADERS= $(SHELL) ./config.status

$(ACLOCAL_M4): # configure.in  ../acinclude.m4 \
		../aclocal.m4
	cd $(srcdir) && $(ACLOCAL) $(ACLOCAL_AMFLAGS)

config.status: $(srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
	$(SHELL) ./config.status --recheck
$(srcdir)/configure: #$(srcdir)/configure.in $(ACLOCAL_M4) $(CONFIGURE_DEPENDENCIES)
	cd $(srcdir) && $(AUTOCONF)

mostlyclean-noinstLIBRARIES:

clean-noinstLIBRARIES:
	-test -z "$(noinst_LIBRARIES)" || rm -f $(noinst_LIBRARIES)

distclean-noinstLIBRARIES:

maintainer-clean-noinstLIBRARIES:

.c.o:
	$(COMPILE) -c $<

.s.o:
	$(COMPILE) -c $<

.S.o:
	$(COMPILE) -c $<

mostlyclean-compile:
	-rm -f *.o core *.core

clean-compile:

distclean-compile:
	-rm -f *.tab.c

maintainer-clean-compile:

libc.info: libc.texinfo
libc.dvi: libc.texinfo

DVIPS = dvips

.texi.info:
	@rm -f $@ $@-[0-9] $@-[0-9][0-9]
	$(MAKEINFO) -I $(srcdir) $<

.texi.dvi:
	TEXINPUTS=$(top_srcdir)/../texinfo/texinfo.tex:$$TEXINPUTS \
	  MAKEINFO='$(MAKEINFO) -I $(srcdir)' $(TEXI2DVI) $<

.texi:
	@rm -f $@ $@-[0-9] $@-[0-9][0-9]
	$(MAKEINFO) -I $(srcdir) $<

.texinfo.info:
	@rm -f $@ $@-[0-9] $@-[0-9][0-9]
	$(MAKEINFO) -I $(srcdir) $<

.texinfo:
	@rm -f $@ $@-[0-9] $@-[0-9][0-9]
	$(MAKEINFO) -I $(srcdir) $<

.texinfo.dvi:
	TEXINPUTS=$(top_srcdir)/../texinfo/texinfo.tex:$$TEXINPUTS \
	  MAKEINFO='$(MAKEINFO) -I $(srcdir)' $(TEXI2DVI) $<

.txi.info:
	@rm -f $@ $@-[0-9] $@-[0-9][0-9]
	$(MAKEINFO) -I $(srcdir) $<

.txi.dvi:
	TEXINPUTS=$(top_srcdir)/../texinfo/texinfo.tex:$$TEXINPUTS \
	  MAKEINFO='$(MAKEINFO) -I $(srcdir)' $(TEXI2DVI) $<

.txi:
	@rm -f $@ $@-[0-9] $@-[0-9][0-9]
	$(MAKEINFO) -I $(srcdir) $<
.dvi.ps:
	$(DVIPS) $< -o $@

install-info-am: $(INFO_DEPS)
	@$(NORMAL_INSTALL)
	$(mkinstalldirs) $(DESTDIR)$(infodir)
	@list='$(INFO_DEPS)'; \
	for file in $$list; do \
	  if test -f $$file; then d=.; else d=$(srcdir); fi; \
	  for ifile in `cd $$d && echo $$file $$file-[0-9] $$file-[0-9][0-9]`; do \
	    if test -f $$d/$$ifile; then \
	      echo " $(INSTALL_DATA) $$d/$$ifile $(DESTDIR)$(infodir)/$$ifile"; \
	      $(INSTALL_DATA) $$d/$$ifile $(DESTDIR)$(infodir)/$$ifile; \
	    else : ; fi; \
	  done; \
	done
	@$(POST_INSTALL)
	@if $(SHELL) -c 'install-info --version | sed 1q | fgrep -s -v -i debian' >/dev/null 2>&1; then \
	  list='$(INFO_DEPS)'; \
	  for file in $$list; do \
	    echo " install-info --info-dir=$(DESTDIR)$(infodir) $(DESTDIR)$(infodir)/$$file";\
	    install-info --info-dir=$(DESTDIR)$(infodir) $(DESTDIR)$(infodir)/$$file || :;\
	  done; \
	else : ; fi

uninstall-info:
	$(PRE_UNINSTALL)
	@if $(SHELL) -c 'install-info --version | sed 1q | fgrep -s -v -i debian' >/dev/null 2>&1; then \
	  ii=yes; \
	else ii=; fi; \
	list='$(INFO_DEPS)'; \
	for file in $$list; do \
	  test -z "$ii" \
	    || install-info --info-dir=$(DESTDIR)$(infodir) --remove $$file; \
	done
	@$(NORMAL_UNINSTALL)
	list='$(INFO_DEPS)'; \
	for file in $$list; do \
	  (cd $(DESTDIR)$(infodir) && rm -f $$file $$file-[0-9] $$file-[0-9][0-9]); \
	done

dist-info: $(INFO_DEPS)
	list='$(INFO_DEPS)'; \
	for base in $$list; do \
	  if test -f $$base; then d=.; else d=$(srcdir); fi; \
	  for file in `cd $$d && eval echo $$base*`; do \
	    test -f $(distdir)/$$file \
	    || ln $$d/$$file $(distdir)/$$file 2> /dev/null \
	    || cp -p $$d/$$file $(distdir)/$$file; \
	  done; \
	done

mostlyclean-aminfo:
	-rm -f libc.aux libc.cp libc.cps libc.dvi libc.fn libc.fns libc.ky \
	  libc.kys libc.ps libc.log libc.pg libc.toc libc.tp libc.tps \
	  libc.vr libc.vrs libc.op libc.tr libc.cv libc.cn

clean-aminfo:

distclean-aminfo:

maintainer-clean-aminfo:
	for i in $(INFO_DEPS); do \
	  rm -f $$i; \
	  if test "`echo $$i-[0-9]*`" != "$$i-[0-9]*"; then \
	    rm -f $$i-[0-9]*; \
	  fi; \
	done
clean-info: mostlyclean-aminfo

# This directory's subdirectories are mostly independent; you can cd
# into them and run `make' without going through this Makefile.
# To change the values of `make' variables: instead of editing Makefiles,
# (1) if the variable is set in `config.status', edit `config.status'
#     (which will cause the Makefiles to be regenerated when you run `make');
# (2) otherwise, pass the desired values on the `make' command line.

all-recursive install-data-recursive install-exec-recursive \
installdirs-recursive install-recursive uninstall-recursive install-info-recursive \
check-recursive installcheck-recursive info-recursive dvi-recursive:
	@set fnord $(MAKEFLAGS); amf=$$2; \
	dot_seen=no; \
	target=`echo $@ | sed s/-recursive//`; \
	list='$(SUBDIRS)'; for subdir in $$list; do \
	  echo "Making $$target in $$subdir"; \
	  if test "$$subdir" = "."; then \
	    dot_seen=yes; \
	    local_target="$$target-am"; \
	  else \
	    local_target="$$target"; \
	  fi; \
	  (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \
	   || case "$$amf" in *=*) exit 1;; *k*) fail=yes;; *) exit 1;; esac; \
	done; \
	if test "$$dot_seen" = "no"; then \
	  $(MAKE) $(AM_MAKEFLAGS) "$$target-am" || exit 1; \
	fi; test -z "$$fail"

mostlyclean-recursive clean-recursive distclean-recursive \
maintainer-clean-recursive:
	@set fnord $(MAKEFLAGS); amf=$$2; \
	dot_seen=no; \
	rev=''; list='$(SUBDIRS)'; for subdir in $$list; do \
	  rev="$$subdir $$rev"; \
	  test "$$subdir" = "." && dot_seen=yes; \
	done; \
	test "$$dot_seen" = "no" && rev=". $$rev"; \
	target=`echo $@ | sed s/-recursive//`; \
	for subdir in $$rev; do \
	  echo "Making $$target in $$subdir"; \
	  if test "$$subdir" = "."; then \
	    local_target="$$target-am"; \
	  else \
	    local_target="$$target"; \
	  fi; \
	  (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \
	   || case "$$amf" in *=*) exit 1;; *k*) fail=yes;; *) exit 1;; esac; \
	done && test -z "$$fail"
tags-recursive:
	list='$(SUBDIRS)'; for subdir in $$list; do \
	  test "$$subdir" = . || (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) tags); \
	done

tags: TAGS

ID: $(HEADERS) $(SOURCES) $(LISP)
	list='$(SOURCES) $(HEADERS)'; \
	unique=`for i in $$list; do echo $$i; done | \
	  awk '    { files[$$0] = 1; } \
	       END { for (i in files) print i; }'`; \
	here=`pwd` && cd $(srcdir) \
	  && mkid -f$$here/ID $$unique $(LISP)

TAGS: tags-recursive $(HEADERS) $(SOURCES)  $(TAGS_DEPENDENCIES) $(LISP)
	tags=; \
	here=`pwd`; \
	list='$(SUBDIRS)'; for subdir in $$list; do \
   if test "$$subdir" = .; then :; else \
	    test -f $$subdir/TAGS && tags="$$tags -i $$here/$$subdir/TAGS"; \
   fi; \
	done; \
	list='$(SOURCES) $(HEADERS)'; \
	unique=`for i in $$list; do echo $$i; done | \
	  awk '    { files[$$0] = 1; } \
	       END { for (i in files) print i; }'`; \
	test -z "$(ETAGS_ARGS)$$unique$(LISP)$$tags" \
	  || (cd $(srcdir) && etags $(ETAGS_ARGS) $$tags  $$unique $(LISP) -o $$here/TAGS)

mostlyclean-tags:

clean-tags:

distclean-tags:
	-rm -f TAGS ID

maintainer-clean-tags:

distdir = $(PACKAGE)-$(VERSION)
top_distdir = $(distdir)

# This target untars the dist file and tries a VPATH configuration.  Then
# it guarantees that the distribution is self-contained by making another
# tarfile.
distcheck: dist
	-rm -rf $(distdir)
	GZIP=$(GZIP_ENV) $(TAR) zxf $(distdir).tar.gz
	mkdir $(distdir)/=build
	mkdir $(distdir)/=inst
	dc_install_base=`cd $(distdir)/=inst && pwd`; \
	cd $(distdir)/=build \
	  && ../configure --srcdir=.. --prefix=$$dc_install_base \
	  && $(MAKE) $(AM_MAKEFLAGS) \
	  && $(MAKE) $(AM_MAKEFLAGS) dvi \
	  && $(MAKE) $(AM_MAKEFLAGS) check \
	  && $(MAKE) $(AM_MAKEFLAGS) install \
	  && $(MAKE) $(AM_MAKEFLAGS) installcheck \
	  && $(MAKE) $(AM_MAKEFLAGS) dist
	-rm -rf $(distdir)
	@banner="$(distdir).tar.gz is ready for distribution"; \
	dashes=`echo "$$banner" | sed s/./=/g`; \
	echo "$$dashes"; \
	echo "$$banner"; \
	echo "$$dashes"
dist: distdir
	-chmod -R a+r $(distdir)
	GZIP=$(GZIP_ENV) $(TAR) chozf $(distdir).tar.gz $(distdir)
	-rm -rf $(distdir)
dist-all: distdir
	-chmod -R a+r $(distdir)
	GZIP=$(GZIP_ENV) $(TAR) chozf $(distdir).tar.gz $(distdir)
	-rm -rf $(distdir)
distdir: $(DISTFILES)
	-rm -rf $(distdir)
	mkdir $(distdir)
	-chmod 777 $(distdir)
	@for file in $(DISTFILES); do \
	  if test -f $$file; then d=.; else d=$(srcdir); fi; \
	  if test -d $$d/$$file; then \
	    cp -pr $$/$$file $(distdir)/$$file; \
	  else \
	    test -f $(distdir)/$$file \
	    || ln $$d/$$file $(distdir)/$$file 2> /dev/null \
	    || cp -p $$d/$$file $(distdir)/$$file || :; \
	  fi; \
	done
	for subdir in $(DIST_SUBDIRS); do \
	  if test "$$subdir" = .; then :; else \
	    test -d $(distdir)/$$subdir \
	    || mkdir $(distdir)/$$subdir \
	    || exit 1; \
	    chmod 777 $(distdir)/$$subdir; \
	    (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) top_distdir=../$(distdir) distdir=../$(distdir)/$$subdir distdir) \
	      || exit 1; \
	  fi; \
	done
	$(MAKE) $(AM_MAKEFLAGS) top_distdir="$(top_distdir)" distdir="$(distdir)" dist-info
info-am: $(INFO_DEPS)
info: info-recursive
dvi-am: $(DVIS)
dvi: dvi-recursive
check-am:
check: check-recursive
installcheck-am:
installcheck: installcheck-recursive
install-info-am:
install-info: install-info-recursive
install-exec-am:
install-exec: install-exec-recursive

install-data-am:
install-data: install-data-recursive

install-am: all-am
	@$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
install: install-recursive
uninstall-am:
uninstall: uninstall-recursive
all-am: Makefile $(LIBRARIES) $(DATA)
all-redirect: all-recursive
install-strip:
	$(MAKE) $(AM_MAKEFLAGS) AM_INSTALL_PROGRAM_FLAGS=-s install
installdirs: installdirs-recursive
installdirs-am:

mostlyclean-generic:

clean-generic:
	-test -z "$(CLEANFILES)" || rm -f $(CLEANFILES)

distclean-generic:
	-rm -f Makefile $(CONFIG_CLEAN_FILES)
	-rm -f config.cache config.log stamp-h stamp-h[0-9]*

maintainer-clean-generic:
mostlyclean-am:  mostlyclean-noinstLIBRARIES mostlyclean-compile \
		mostlyclean-aminfo mostlyclean-tags mostlyclean-generic

mostlyclean: mostlyclean-recursive

clean-am:  clean-noinstLIBRARIES clean-compile clean-aminfo clean-tags \
		clean-generic mostlyclean-am

clean: clean-recursive

distclean-am:  distclean-noinstLIBRARIES distclean-compile \
		distclean-aminfo distclean-tags distclean-generic \
		clean-am

distclean: distclean-recursive
	-rm -f config.status

maintainer-clean-am:  maintainer-clean-noinstLIBRARIES \
		maintainer-clean-compile maintainer-clean-aminfo \
		maintainer-clean-tags maintainer-clean-generic \
		distclean-am
	@echo "This command is intended for maintainers to use;"
	@echo "it deletes files that may require special tools to rebuild."

maintainer-clean: maintainer-clean-recursive
	-rm -f config.status

.PHONY: mostlyclean-noinstLIBRARIES distclean-noinstLIBRARIES \
clean-noinstLIBRARIES maintainer-clean-noinstLIBRARIES \
mostlyclean-compile distclean-compile clean-compile \
maintainer-clean-compile install-info-am uninstall-info \
mostlyclean-aminfo distclean-aminfo clean-aminfo \
maintainer-clean-aminfo install-data-recursive uninstall-data-recursive \
install-exec-recursive uninstall-exec-recursive installdirs-recursive \
uninstalldirs-recursive all-recursive check-recursive \
installcheck-recursive info-recursive dvi-recursive \
mostlyclean-recursive distclean-recursive clean-recursive \
maintainer-clean-recursive tags tags-recursive mostlyclean-tags \
distclean-tags clean-tags maintainer-clean-tags distdir info-am info \
dvi-am dvi check check-am installcheck-am installcheck install-info-am \
install-info install-exec-am install-exec install-data-am install-data \
install-am install uninstall-am uninstall all-redirect all-am all \
installdirs-am installdirs mostlyclean-generic distclean-generic \
clean-generic maintainer-clean-generic clean mostlyclean distclean \
maintainer-clean

libc.a: $(SUBLIBS)
	rm -f $@
	rm -rf tmp
	mkdir tmp
	cd tmp; \
	 for i in $(SUBLIBS); do \
	   $(AR) x ../$$i; \
	 done; \
	$(AR) $(AR_FLAGS) ../$@ *.o
	$(RANLIB) $@
	rm -rf tmp

$(SUBLIBS): ; @true

crt0.o: sys/crt0.o
	rm -f $@
	ln sys/crt0.o $@ >/dev/null 2>/dev/null || cp sys/crt0.o $@

sys/crt0.o: ; @true

libc.info: sigset.texi targetdep.tex $(SUBDEFS)

stmp-sigset: config.status
	if test -n "$(LIBC_SIGNAL_LIB)"; then \
	  echo "@set SIGNALS" >tmp.texi; \
	else \
	  echo "@clear SIGNALS" >tmp.texi; \
	fi
	$(SHELL) $(newlib_basedir)/../move-if-change tmp.texi sigset.texi
	touch $@

sigset.texi: stmp-sigset ; @true

stmp-targetdep: force
	rm -f tmp.texi
	targetdoc=`pwd`/tmp.texi; \
	for d in $(SUBDIRS); do \
	  if test "$$d" != "."; then \
	    (cd $$d && $(MAKE) TARGETDOC=$${targetdoc} doc) || exit 1; \
	  fi; \
	done
	cat $(srcdir)/sys.tex >>tmp.texi
	$(SHELL) $(newlib_basedir)/../move-if-change tmp.texi targetdep.tex
	touch $@

targetdep.tex: stmp-targetdep ; @true

$(SUBDEFS): stmp-targetdep ; @true

.PHONY: force
force:

# Tell versions [3.59,3.63) of GNU make to not export all variables.
# Otherwise a system limit (for SysV at least) may be exceeded.
.NOEXPORT:


text:
        <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
        <title>W29478_text</title>
        <link rel="stylesheet" type="text/css" href="style.css" />

                «

    <p class="styleSans24.0000<enum PANGO_WEIGHT_NORMAL of type PangoWeight><enum PANGO_STYLE_NORMAL of type PangoStyle>">

    <p class="styleSans22.0000<enum PANGO_WEIGHT_NORMAL of type PangoWeight><enum PANGO_STYLE_NORMAL of type PangoStyle>">Continental
RESOURCES

    <p class="styleSans15.0000<enum PANGO_WEIGHT_NORMAL of type PangoWeight><enum PANGO_STYLE_NORMAL of type PangoStyle>">Continental Resources
Dunn County, North Dakota (NAD 83) Kukla 6-16H1

    <p class="styleSans8.0000<enum PANGO_WEIGHT_NORMAL of type PangoWeight><enum PANGO_STYLE_NORMAL of type PangoStyle>">Wellbore #1

    <p class="styleSans11.0000<enum PANGO_WEIGHT_NORMAL of type PangoWeight><enum PANGO_STYLE_NORMAL of type PangoStyle>">Plan: Design #2

    <p class="styleSans19.0000<enum PANGO_WEIGHT_NORMAL of type PangoWeight><enum PANGO_STYLE_NORMAL of type PangoStyle>">Standard Planning Report
02 September, 2014

    <p class="styleSans24.0000<enum PANGO_WEIGHT_NORMAL of type PangoWeight><enum PANGO_STYLE_NORMAL of type PangoStyle>">#5 Energy Ser vices®
WWW.MSENERGYSERVICES.COM


text:
import io
import os
import re
import sys

from setuptools import setup, find_packages

PATH_BASE = os.path.dirname(__file__)

def read_file(fpath):
    """Reads a file within package directories."""
    with io.open(os.path.join(PATH_BASE, fpath)) as f:
        return f.read()

def get_version():
    """Returns version number, without module import (which can lead to ImportError
    if some dependencies are unavailable before install."""
    contents = read_file(os.path.join('etc', '__init__.py'))
    version = re.search('VERSION = \(([^)]+)\)', contents)
    version = version.group(1).replace(', ', '.').strip()
    return version

setup(
    name='django-etc',
    version=get_version(),
    url='https://github.com/idlesign/django-etc',

    description='Tiny stuff for Django that won\'t fit into separate apps.',
    long_description=read_file('README.rst'),
    license='BSD 3-Clause License',

    author='Igor `idle sign` Starikov',
    author_email='idlesign@yandex.ru',

    packages=find_packages(),
    include_package_data=True,
    zip_safe=False,

    install_requires=[],
    setup_requires=[] + (['pytest-runner'] if 'test' in sys.argv else []),

    test_suite='tests',
    tests_require=[
        'pytest',
        'pytest-djangoapp>=0.15.1',
    ],

    classifiers=[
        # As in https://pypi.python.org/pypi?:action=list_classifiers
        'Development Status :: 5 - Production/Stable',
        'Environment :: Web Environment',
        'Framework :: Django',
        'Intended Audience :: Developers',
        'Operating System :: OS Independent',
        'Programming Language :: Python',
        'Programming Language :: Python :: 3',
        'Programming Language :: Python :: 3.6',
        'Programming Language :: Python :: 3.7',
        'Programming Language :: Python :: 3.8',
        'Programming Language :: Python :: 3.9',
        'Programming Language :: Python :: 3.10',
        'License :: OSI Approved :: BSD License'
    ],
)


text:
                    房卡数量
                    {$Think.session.Agent_admin.card_amount}

        金牌代理充卡

首页

        <foreach name="breadcrumb" item="item">

<a <if condition="$item.active eq 1">class="active"</if> href="javascript:void(0)" onclick="menuClick('{$item.action}')">{$item.name}

        </foreach>

                    <form class="form-horizontal" onsubmit="return false;">

                            代理用户名

                                <input id="roleid" type="text" class="form-control" value="{$agent.username}" disabled>

                            昵称

                                <input id="nickname" type="text" class="form-control" value="{$agent.name}" disabled>

                            房卡数量

                                <input type="number" min="1" class="form-control" value="{$agent.amount}" id="stock_amount" disabled>

                            数量

                                <input type="number" min="1" class="form-control" id="amount" required>

                                <button id="agent_submit" type="submit" class="btn btn-primary" onclick="agentSave('__MODULE__/user/agents')">充卡</button>
                                <button id="agent_back" type="submit" class="btn btn-warning" onclick="menuClick('__MODULE__/user/agents')">返回</button>

                    </form>

                    <input type="hidden" id="_id" value="{$agent._id}">


text:
Angular Rss Feed Reader

Simple Angular rss app

<form ng-submit="addUrls()">

        Please put your Rss Feed Url to the input field

                <input type="text" ng-model="feedSrc" id="inputHelpBlock" class="form-control"
                       aria-describedby="helpBlock" placeholder="Enter your feed url">

            <button type="submit" class="btn btn-primary btn-lg" ng-click="loadFeed($event);">Load</button>

        e.g. Google Tech News insert: https://news.google.com/news?cf=all&ned=us&hl=en&topic=tc&output=rss.

</form>

 0">

            <input class="form-control" type="text" placeholder="Search" data-ng-model="filterText"/>

         0">{{(feeds | filter:filterText).length}} Items

{{feed.title}}

{{feed.contentSnippet}}

                {{feed.publishedDate}}

Latest 5 Rss Url's

{{$index + 1}} {{
                    url.url }}


text:
var myApp = { };
myApp.root = require('path').dirname(require.main.filename);
myApp.package = require(myApp.root+"/package.json");

// Load global event emitter
var events = require('events');
myApp.emitter = new events.EventEmitter();

require("./modules/utils")(myApp);

// Initialize myApp
myApp.utils.consoleOutput("line");
myApp.utils.consoleOutput(myApp.package.name + " v"+myApp.package.version, "Center", true);
myApp.utils.consoleOutput(myApp.package.author, "Center", true);
if(myApp.package.description !== undefined){
    myApp.utils.consoleOutput(myApp.package.description, "Center", true);
}
myApp.utils.consoleOutput("line");

// Start the initialization process
myApp.utils.consoleOutput("Initializing...");

// Save environment into a structure
myApp.config = process.env;

/***
 *  Initialize direct database access
 ***/
// require("../database/sqlite3")(myApp);
// myApp.database.initialize();

/***
 *  Initialize simple persistent storage
 ***/
// require("./modules/storage/redis")(myApp);
// require("./modules/storage/memory")(myApp);
require("./modules/storage/orchestrate")(myApp);
myApp.storage.initialize();

/***
 *  Initialize the webserver
 ***/
require("./modules/webserver/")(myApp);
myApp.webserver.initialize();

/***
 *  Initialize the socket.io namespaces
 ***/
require("./modules/sockets/messageboard")(myApp);


text:
// -*- C++ -*-
///////////////////////////////////////////////////////////////////////////////
// File: area.h                                                              //
// Description: header file for the computation of jet area                  //
// This file is part of the SISCone project.                                 //
// For more details, see http://projects.hepforge.org/siscone                //
//                                                                           //
// Copyright (c) 2006 Gavin Salam and Gregory Soyez                          //
//                                                                           //
// This program is free software; you can redistribute it and/or modify      //
// it under the terms of the GNU General Public License as published by      //
// the Free Software Foundation; either version 2 of the License, or         //
// (at your option) any later version.                                       //
//                                                                           //
// This program is distributed in the hope that it will be useful,           //
// but WITHOUT ANY WARRANTY; without even the implied warranty of            //
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the             //
// GNU General Public License for more details.                              //
//                                                                           //
// You should have received a copy of the GNU General Public License         //
// along with this program; if not, write to the Free Software               //
// Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA //
//                                                                           //
// $Revision:: 149                                                          $//
// $Date:: 2007-03-15 00:13:58 +0100 (Thu, 15 Mar 2007)                     $//
///////////////////////////////////////////////////////////////////////////////

#ifndef __SISCONE_AREA_H__
#define __SISCONE_AREA_H__

#include "momentum.h"
#include "siscone.h"

namespace siscone{

/**
 * \class Cjet_area
 * real Jet information, including its area(s)
 *
 * This class contains information for one single jet.
 * That is, first, its momentum carrying information
 * about its centre and pT, and second, its particle
 * contents.
 * Compared to the Cjet class, it also includes the
 * passive and active areas of the jet computed using
 * the Carea class.
 */
class Cjet_area : public Cjet{
 public:
  /// default ctor
  Cjet_area();

  /// jet-initialised ctor
  Cjet_area(Cjet &j);

  /// default dtor
  ~Cjet_area();

  // area information
  double passive_area;   ///< passive area
  double active_area;    ///< active area
};

/**
 * \class Carea
 * class for the computation of jet areas.
 *
 * This is the class user should use whenever you want to compute
 * the jet area (passive and active). .
 * It uses the SISCone algorithm to perform the jet analysis.
 */
class Carea : public Csiscone{
 public:
  /// default ctor
  Carea();

  /// default dtor
  ~Carea();

  /**
   * compute the jet areas from a given particle set.
   * The parameters of this method are the ones which control the jet clustering alghorithn.
   * Note that the pt_min is not allowed here soince the jet-area determination involves soft
   * particles/jets and thus is used internally.
   * \param _particles   list of particles
   * \param _radius      cone radius
   * \param _f           shared energy threshold for splitting&merging
   * \param _n_pass_max  maximum number of passes (0=full search, the default)
   * \param _split_merge_scale    the scale choice for the split-merge procedure
   *        NOTE: SM_pt leads to IR unsafety for some events with momentum conservation.
   *              SM_Et is IR safe but not boost invariant and not implemented(!)
   *              SM_mt is IR safe for hadronic events, but not for decays of two
   *                    back-to-back particles of identical mass
   *              SM_pttilde
   *                    is always IR safe, and also boost invariant (default)
   * \param _hard_only  when this is set on, only hard jets are computed
   *                    and not the purely ghosted jets (default: false)
   * \return the number of jets (including pure-ghost ones if they are included)
   */
  int compute_areas(std::vector<Cmomentum> &_particles, double _radius, double _f,
		    int _n_pass_max=0, Esplit_merge_scale _split_merge_scale=SM_pttilde,
		    bool _hard_only=false);

  /**
   * compute the jet active areas from a given particle set.
   * The parameters of this method are the ones which control the jet clustering alghorithn.
   * Note that the pt_min is not allowed here soince the jet-area determination involves soft
   * particles/jets and thus is used internally.
   * See compute_areas for paramters definition.
   * \return the number of jets (including pure-ghost ones if they are included)
   */
  int compute_active_areas(std::vector<Cmomentum> &_particles, double _radius, double _f,
			   int _n_pass_max=0, Esplit_merge_scale _split_merge_scale=SM_pttilde,
			   bool _hard_only=false);

  /**
   * compute the jet passive areas from a given particle set.
   * The parameters of this method are the ones which control the jet clustering alghorithn.
   * Note that the pt_min is not allowed here soince the jet-area determination involves soft
   * particles/jets and thus is used internally.
   * See compute_areas for paramters definition.
   */
  int compute_passive_areas(std::vector<Cmomentum> &_particles, double _radius, double _f,
			    int _n_pass_max=0, Esplit_merge_scale _split_merge_scale=SM_pttilde);

  int grid_size;        ///< size of the grid we add soft particles on (N_soft=(grid_size^2))
  double grid_eta_max;  ///< maximal value of eta we add soft particles on
  double grid_shift;    ///< fractional (random) displacement of the points om the grid

  double pt_soft;       ///< pt of the soft particles added
  double pt_shift;      ///< amplitude of the pt random shift
  double pt_soft_min;   ///< pt_min used in SM to compute passive areas

  /// jets with their areas
  std::vector<Cjet_area> jet_areas;
};

}
#endif


text:
using System;
using System.Threading;
using System.Threading.Tasks;
using Windows.UI.Xaml.Media.Imaging;

#if WINDOWS_UWP

namespace Xamarin.Forms.Platform.UWP
#else

namespace Xamarin.Forms.Platform.WinRT
#endif
{
	public sealed class FileImageSourceHandler : IImageSourceHandler
	{
		public Task<Windows.UI.Xaml.Media.ImageSource> LoadImageAsync(ImageSource imagesoure, CancellationToken cancellationToken = new CancellationToken())
		{
			Windows.UI.Xaml.Media.ImageSource image = null;
			var filesource = imagesoure as FileImageSource;
			if (filesource != null)
			{
				string file = filesource.File;
				image = new BitmapImage(new Uri("ms-appx:///" + file));
			}

			return Task.FromResult(image);
		}
	}
}


text:
{% load i18n admin_static %}
{% if cl.search_fields %}

    <form id="changelist-search" action="" method="get">

            <input type="text" placeholder="{% trans 'search'|capfirst %}..." name="{{ search_var }}" value="{{ cl.query }}" id="searchbar" />

        {% if show_result_count %}
        {% blocktrans count counter=cl.result_count %}{{ counter }} result{% plural %}{{ counter }} results{% endblocktrans %} ({% if cl.show_full_result_count %}{% blocktrans with full_result_count=cl.full_result_count %}{{ full_result_count }} total{% endblocktrans %}{% else %}{% trans "Show all" %}{% endif %})
        {% endif %}
        {% for pair in cl.params.items %}
        {% ifnotequal pair.0 search_var %}
        <input type="hidden" name="{{ pair.0 }}" value="{{ pair.1 }}"/>
        {% endifnotequal %}
        {% endfor %}
    </form>

{% endif %}


text:
{-|
Description : Partitions generator types.
Maintainer  : Andrei Costa <acosta@inf.ufrgs.br>
-}
module Data.TypedGraph.Partition.Types
  ( Node (..)
  , Edge (..)
  , Graph
  , GraphPartition
  ) where

-- | A Node with the needed information for generating equivalence classes
data Node = Node {
    nodeType      :: Int,
    nodeName      :: Int,
    nodeId        :: Int,
    injectiveNode :: Bool, --injective flag
    nodeFromLeft  :: Bool
    }

instance Show Node where
  show (Node nodeType nodeName nodeId injectiveNode nodeFromLeft) =
    show nodeName ++ ":" ++ show nodeType ++ ":" ++
    (if nodeFromLeft then "Left" else "Right") ++ " (id:" ++ show nodeId ++") {"++ show injectiveNode ++"}"

instance Eq Node where
  (Node nodeType1 nodeName1 _ _ fromLeft1) == (Node nodeType2 nodeName2 _ _ fromLeft2) =
    nodeType1 == nodeType2 && nodeName1 == nodeName2 && fromLeft1 == fromLeft2

-- | An Edge with the needed informations for the generating equivalence classes algorithm
data Edge = Edge {
    edgeType      :: Int,
    label         :: Int,
    edgeId        :: Int,
    source        :: Node,
    target        :: Node,
    injectiveEdge :: Bool, --injective flag
    edgeFromLeft  :: Bool
    } deriving (Eq)

instance Show Edge where
  show (Edge edgeType label edgeId (Node _ sourceName _ _ _) (Node _ targetName _ _ _) injectiveEdge edgeFromLeft) =
    show label ++ ":" ++
    show edgeType ++ "(" ++
    show sourceName ++ "->" ++
    show targetName ++ ")" ++
    (if edgeFromLeft then "Left" else "Right") ++
    " (id:" ++ show edgeId ++") {"++ show injectiveEdge ++"}"

-- | Graph data for generating equivalence classes
type Graph = ([Node],[Edge])

-- | An equivalence class of a 'Graph'

-- | TODO: use Data.Set?
type GraphPartition = ([[Node]],[[Edge]])