text:
(function($) {

var abs = Math.abs,
    max = Math.max,
    min = Math.min,
    round = Math.round;

function div() {
    return $('<div/>');
}

$.imgAreaSelect = function (img, options) {
    var

        $img = $(img),

        imgLoaded,

        $box = div(),
        $area = div(),
        $border = div().add(div()).add(div()).add(div()),
        $outer = div().add(div()).add(div()).add(div()),
        $handles = $([]),

        $areaOpera,

        left, top,

        imgOfs,

        imgWidth, imgHeight,

        $parent,

        parOfs,

        zIndex = 0,

        position = 'absolute',

        startX, startY,

        scaleX, scaleY,

        resizeMargin = 10,

        resize,

        aspectRatio,

        shown,

        x1, y1, x2, y2,

        selection = { x1: 0, y1: 0, x2: 0, y2: 0, width: 0, height: 0 },

        $p, d, i, o, w, h, adjusted;

    function viewX(x) {
        return x + imgOfs.left - parOfs.left;
    }

    function viewY(y) {
        return y + imgOfs.top - parOfs.top;
    }

    function selX(x) {
        return x - imgOfs.left + parOfs.left;
    }

    function selY(y) {
        return y - imgOfs.top + parOfs.top;
    }

    function evX(event) {
        return event.pageX - parOfs.left;
    }

    function evY(event) {
        return event.pageY - parOfs.top;
    }

    function getSelection(noScale) {
        var sx = noScale || scaleX, sy = noScale || scaleY;

        return { x1: round(selection.x1 * sx),
            y1: round(selection.y1 * sy),
            x2: round(selection.x2 * sx),
            y2: round(selection.y2 * sy),
            width: round(selection.x2 * sx) - round(selection.x1 * sx),
            height: round(selection.y2 * sy) - round(selection.y1 * sy) };
    }

    function setSelection(x1, y1, x2, y2, noScale) {
        var sx = noScale || scaleX, sy = noScale || scaleY;

        selection = {
            x1: round(x1 / sx),
            y1: round(y1 / sy),
            x2: round(x2 / sx),
            y2: round(y2 / sy)
        };

        selection.width = (x2 = viewX(selection.x2)) - (x1 = viewX(selection.x1));
        selection.height = (y2 = viewX(selection.y2)) - (y1 = viewX(selection.y1));
    }

    function adjust() {
        if (!$img.width())
            return;

        imgOfs = { left: round($img.offset().left), top: round($img.offset().top) };

        imgWidth = $img.width();
        imgHeight = $img.height();

        if ($().jquery == '1.3.2' && $.browser.safari && position == 'fixed') {
            imgOfs.top += max(document.documentElement.scrollTop, $('body').scrollTop());

            imgOfs.left += max(document.documentElement.scrollLeft, $('body').scrollLeft());
        }

        parOfs = $.inArray($parent.css('position'), ['absolute', 'relative']) + 1 ?
            { left: round($parent.offset().left) - $parent.scrollLeft(),
                top: round($parent.offset().top) - $parent.scrollTop() } :
            position == 'fixed' ?
                { left: $(document).scrollLeft(), top: $(document).scrollTop() } :
                { left: 0, top: 0 };

        left = viewX(0);
        top = viewY(0);
    }

    function update(resetKeyPress) {
        if (!shown) return;

        $box.css({ left: viewX(selection.x1), top: viewY(selection.y1) })
            .add($area).width(w = selection.width).height(h = selection.height);

        $area.add($border).add($handles).css({ left: 0, top: 0 });

        $border
            .width(max(w - $border.outerWidth() + $border.innerWidth(), 0))
            .height(max(h - $border.outerHeight() + $border.innerHeight(), 0));

        $($outer[0]).css({ left: left, top: top,
            width: selection.x1, height: imgHeight });
        $($outer[1]).css({ left: left + selection.x1, top: top,
            width: w, height: selection.y1 });
        $($outer[2]).css({ left: left + selection.x2, top: top,
            width: imgWidth - selection.x2, height: imgHeight });
        $($outer[3]).css({ left: left + selection.x1, top: top + selection.y2,
            width: w, height: imgHeight - selection.y2 });

        w -= $handles.outerWidth();
        h -= $handles.outerHeight();

        switch ($handles.length) {
        case 8:
            $($handles[4]).css({ left: w / 2 });
            $($handles[5]).css({ left: w, top: h / 2 });
            $($handles[6]).css({ left: w / 2, top: h });
            $($handles[7]).css({ top: h / 2 });
        case 4:
            $handles.slice(1,3).css({ left: w });
            $handles.slice(2,4).css({ top: h });
        }

        if (resetKeyPress !== false) {
            if ($.imgAreaSelect.keyPress != docKeyPress)
                $(document).unbind($.imgAreaSelect.keyPress,
                    $.imgAreaSelect.onKeyPress);

            if (options.keys)
                $(document)[$.imgAreaSelect.keyPress](
                    $.imgAreaSelect.onKeyPress = docKeyPress);
        }

        if ($.browser.msie && $border.outerWidth() - $border.innerWidth() == 2) {
            $border.css('margin', 0);
            setTimeout(function () { $border.css('margin', 'auto'); }, 0);
        }
    }

    function doUpdate(resetKeyPress) {
        adjust();
        update(resetKeyPress);
        x1 = viewX(selection.x1); y1 = viewY(selection.y1);
        x2 = viewX(selection.x2); y2 = viewY(selection.y2);
    }

    function hide($elem, fn) {
        options.fadeSpeed ? $elem.fadeOut(options.fadeSpeed, fn) : $elem.hide();

    }

    function areaMouseMove(event) {
        var x = selX(evX(event)) - selection.x1,
            y = selY(evY(event)) - selection.y1;

        if (!adjusted) {
            adjust();
            adjusted = true;

            $box.one('mouseout', function () { adjusted = false; });
        }

        resize = '';

        if (options.resizable) {
            if (y <= resizeMargin)
                resize = 'n';
            else if (y >= selection.height - resizeMargin)
                resize = 's';
            if (x <= resizeMargin)
                resize += 'w';
            else if (x >= selection.width - resizeMargin)
                resize += 'e';
        }

        $box.css('cursor', resize ? resize + '-resize' :
            options.movable ? 'move' : '');
        if ($areaOpera)
            $areaOpera.toggle();
    }

    function docMouseUp(event) {
        $('body').css('cursor', '');

        if (options.autoHide || selection.width * selection.height == 0)
            hide($box.add($outer), function () { $(this).hide(); });

        options.onSelectEnd(img, getSelection());

        $(document).unbind('mousemove', selectingMouseMove);
        $box.mousemove(areaMouseMove);
    }

    function areaMouseDown(event) {
        if (event.which != 1) return false;

        adjust();

        if (resize) {
            $('body').css('cursor', resize + '-resize');

            x1 = viewX(selection[/w/.test(resize) ? 'x2' : 'x1']);
            y1 = viewY(selection[/n/.test(resize) ? 'y2' : 'y1']);

            $(document).mousemove(selectingMouseMove)
                .one('mouseup', docMouseUp);
            $box.unbind('mousemove', areaMouseMove);
        }
        else if (options.movable) {
            startX = left + selection.x1 - evX(event);
            startY = top + selection.y1 - evY(event);

            $box.unbind('mousemove', areaMouseMove);

            $(document).mousemove(movingMouseMove)
                .one('mouseup', function () {
                    options.onSelectEnd(img, getSelection());

                    $(document).unbind('mousemove', movingMouseMove);
                    $box.mousemove(areaMouseMove);
                });
        }
        else
            $img.mousedown(event);

        return false;
    }

    function aspectRatioXY() {
        x2 = max(left, min(left + imgWidth,
            x1 + abs(y2 - y1) * aspectRatio * (x2 > x1 || -1)));

        y2 = round(max(top, min(top + imgHeight,
            y1 + abs(x2 - x1) / aspectRatio * (y2 > y1 || -1))));
        x2 = round(x2);
    }

    function aspectRatioYX() {
        y2 = max(top, min(top + imgHeight,
            y1 + abs(x2 - x1) / aspectRatio * (y2 > y1 || -1)));
        x2 = round(max(left, min(left + imgWidth,
            x1 + abs(y2 - y1) * aspectRatio * (x2 > x1 || -1))));
        y2 = round(y2);
    }

    function doResize() {
        if (abs(x2 - x1) < options.minWidth) {
            x2 = x1 - options.minWidth * (x2 < x1 || -1);

            if (x2 < left)
                x1 = left + options.minWidth;
            else if (x2 > left + imgWidth)
                x1 = left + imgWidth - options.minWidth;
        }

        if (abs(y2 - y1) < options.minHeight) {
            y2 = y1 - options.minHeight * (y2 < y1 || -1);

            if (y2 < top)
                y1 = top + options.minHeight;
            else if (y2 > top + imgHeight)
                y1 = top + imgHeight - options.minHeight;
        }

        x2 = max(left, min(x2, left + imgWidth));
        y2 = max(top, min(y2, top + imgHeight));

        if (aspectRatio)
            if (abs(x2 - x1) / aspectRatio > abs(y2 - y1))
                aspectRatioYX();
            else
                aspectRatioXY();

        if (abs(x2 - x1) > options.maxWidth) {
            x2 = x1 - options.maxWidth * (x2 < x1 || -1);
            if (aspectRatio) aspectRatioYX();
        }

        if (abs(y2 - y1) > options.maxHeight) {
            y2 = y1 - options.maxHeight * (y2 < y1 || -1);
            if (aspectRatio) aspectRatioXY();
        }

        selection = { x1: selX(min(x1, x2)), x2: selX(max(x1, x2)),
            y1: selY(min(y1, y2)), y2: selY(max(y1, y2)),
            width: abs(x2 - x1), height: abs(y2 - y1) };

        update();

        options.onSelectChange(img, getSelection());
    }

    function selectingMouseMove(event) {
        x2 = resize == '' || /w|e/.test(resize) || aspectRatio ? evX(event) : viewX(selection.x2);
        y2 = resize == '' || /n|s/.test(resize) || aspectRatio ? evY(event) : viewY(selection.y2);

        doResize();

        return false;

    }

    function doMove(newX1, newY1) {
        x2 = (x1 = newX1) + selection.width;
        y2 = (y1 = newY1) + selection.height;

        selection = $.extend(selection, { x1: selX(x1), y1: selY(y1),
            x2: selX(x2), y2: selY(y2) });

        update();

        options.onSelectChange(img, getSelection());
    }

    function movingMouseMove(event) {
        x1 = max(left, min(startX + evX(event), left + imgWidth - selection.width));
        y1 = max(top, min(startY + evY(event), top + imgHeight - selection.height));

        doMove(x1, y1);

        event.preventDefault();

        return false;
    }

    function startSelection() {
        adjust();

        x2 = x1;
        y2 = y1;

        doResize();

        resize = '';

        if ($outer.is(':not(:visible)'))
            $box.add($outer).hide().fadeIn(options.fadeSpeed||0);

        shown = true;

        $(document).unbind('mouseup', cancelSelection)
            .mousemove(selectingMouseMove).one('mouseup', docMouseUp);
        $box.unbind('mousemove', areaMouseMove);

        options.onSelectStart(img, getSelection());
    }

    function cancelSelection() {
        $(document).unbind('mousemove', startSelection);
        hide($box.add($outer));

        selection = { x1: selX(x1), y1: selY(y1), x2: selX(x1), y2: selY(y1),
                width: 0, height: 0 };

        options.onSelectChange(img, getSelection());
        options.onSelectEnd(img, getSelection());
    }

    function imgMouseDown(event) {
        if (event.which != 1 || $outer.is(':animated')) return false;

        adjust();
        startX = x1 = evX(event);
        startY = y1 = evY(event);

        $(document).one('mousemove', startSelection)
            .one('mouseup', cancelSelection);

        return false;
    }

    function parentScroll() {
        doUpdate(false);
    }

    function imgLoad() {
        imgLoaded = true;

        setOptions(options = $.extend({
            classPrefix: 'imgareaselect',
            movable: true,
            resizable: true,
            parent: 'body',
            onInit: function () {},
            onSelectStart: function () {},
            onSelectChange: function () {},
            onSelectEnd: function () {}
        }, options));

        $box.add($outer).css({ visibility: '' });

        if (options.show) {
            shown = true;
            adjust();
            update();
            $box.add($outer).hide().fadeIn(options.fadeSpeed||0);
        }

        setTimeout(function () { options.onInit(img, getSelection()); }, 0);
    }

    var docKeyPress = function(event) {
        var k = options.keys, d, t, key = event.keyCode || event.which;

        d = !isNaN(k.alt) && (event.altKey || event.originalEvent.altKey) ? k.alt :
            !isNaN(k.ctrl) && event.ctrlKey ? k.ctrl :
            !isNaN(k.shift) && event.shiftKey ? k.shift :
            !isNaN(k.arrows) ? k.arrows : 10;

        if (k.arrows == 'resize' || (k.shift == 'resize' && event.shiftKey) ||
            (k.ctrl == 'resize' && event.ctrlKey) ||
            (k.alt == 'resize' && (event.altKey || event.originalEvent.altKey)))
        {
            switch (key) {
            case 37:
                d = -d;
            case 39:
                t = max(x1, x2);
                x1 = min(x1, x2);
                x2 = max(t + d, x1);
                if (aspectRatio) aspectRatioYX();
                break;
            case 38:
                d = -d;
            case 40:
                t = max(y1, y2);
                y1 = min(y1, y2);
                y2 = max(t + d, y1);
                if (aspectRatio) aspectRatioXY();
                break;
            default:
                return;
            }

            doResize();
        }
        else {
            x1 = min(x1, x2);
            y1 = min(y1, y2);

            switch (key) {
            case 37:
                doMove(max(x1 - d, left), y1);
                break;
            case 38:
                doMove(x1, max(y1 - d, top));
                break;
            case 39:
                doMove(x1 + min(d, imgWidth - selX(x2)), y1);
                break;
            case 40:
                doMove(x1, y1 + min(d, imgHeight - selY(y2)));
                break;
            default:
                return;
            }
        }

        return false;
    };

    function styleOptions($elem, props) {
        for (option in props)
            if (options[option] !== undefined)
                $elem.css(props[option], options[option]);
    }

    function setOptions(newOptions) {
        if (newOptions.parent)
            ($parent = $(newOptions.parent)).append($box.add($outer));

        options = $.extend(options, newOptions);

        adjust();

        if (newOptions.handles != null) {
            $handles.remove();
            $handles = $([]);

            i = newOptions.handles ? newOptions.handles == 'corners' ? 4 : 8 : 0;

            while (i--)
                $handles = $handles.add(div());

            $handles.addClass(options.classPrefix + '-handle').css({
                position: 'absolute',
                fontSize: 0,
                zIndex: zIndex + 1 || 1
            });

            if (!parseInt($handles.css('width')))
                $handles.width(5).height(5);

            if (o = options.borderWidth)
                $handles.css({ borderWidth: o, borderStyle: 'solid' });

            styleOptions($handles, { borderColor1: 'border-color',
                borderColor2: 'background-color',
                borderOpacity: 'opacity' });
        }

        scaleX = options.imageWidth / imgWidth || 1;
        scaleY = options.imageHeight / imgHeight || 1;

        if (newOptions.x1 != null) {
            setSelection(newOptions.x1, newOptions.y1, newOptions.x2,
                    newOptions.y2);
            newOptions.show = !newOptions.hide;
        }

        if (newOptions.keys)
            options.keys = $.extend({ shift: 1, ctrl: 'resize' },
                newOptions.keys);

        $outer.addClass(options.classPrefix + '-outer');
        $area.addClass(options.classPrefix + '-selection');
        for (i = 0; i++ < 4;)
            $($border[i-1]).addClass(options.classPrefix + '-border' + i);

        styleOptions($area, { selectionColor: 'background-color',
            selectionOpacity: 'opacity' });
        styleOptions($border, { borderOpacity: 'opacity',
            borderWidth: 'border-width' });
        styleOptions($outer, { outerColor: 'background-color',
            outerOpacity: 'opacity' });
        if (o = options.borderColor1)
            $($border[0]).css({ borderStyle: 'solid', borderColor: o });
        if (o = options.borderColor2)
            $($border[1]).css({ borderStyle: 'dashed', borderColor: o });

        $box.append($area.add($border).add($handles).add($areaOpera));

        if ($.browser.msie) {
            if (o = $outer.css('filter').match(/opacity=([0-9]+)/))
                $outer.css('opacity', o[1]/100);
            if (o = $border.css('filter').match(/opacity=([0-9]+)/))
                $border.css('opacity', o[1]/100);
        }

        if (newOptions.hide)
            hide($box.add($outer));
        else if (newOptions.show && imgLoaded) {
            shown = true;
            $box.add($outer).fadeIn(options.fadeSpeed||0);
            doUpdate();
        }

        aspectRatio = (d = (options.aspectRatio || '').split(/:/))[0] / d[1];

        if (options.disable || options.enable === false) {
            $box.unbind('mousemove', areaMouseMove).unbind('mousedown', areaMouseDown);
            $img.add($outer).unbind('mousedown', imgMouseDown);
            $(window).unbind('resize', parentScroll);
            $img.add($img.parents()).unbind('scroll', parentScroll);
        }
        else if (options.enable || options.disable === false) {
            if (options.resizable || options.movable)
                $box.mousemove(areaMouseMove).mousedown(areaMouseDown);

            if (!options.persistent)
                $img.add($outer).mousedown(imgMouseDown);
            $(window).resize(parentScroll);
            $img.add($img.parents()).scroll(parentScroll);
        }

        options.enable = options.disable = undefined;
    }

    this.getOptions = function () { return options; };

    this.setOptions = setOptions;

    this.getSelection = getSelection;

    this.setSelection = setSelection;

    this.update = doUpdate;

    $p = $img;

    while ($p.length && !$p.is('body')) {
        if (!isNaN($p.css('z-index')) && $p.css('z-index') > zIndex)
            zIndex = $p.css('z-index');
        if ($p.css('position') == 'fixed')
            position = 'fixed';

        $p = $p.parent();
    }

    if (!isNaN(options.zIndex))
        zIndex = options.zIndex;

    if ($.browser.msie)
        $img.attr('unselectable', 'on');

    $.imgAreaSelect.keyPress = $.browser.msie ||
        $.browser.safari ? 'keydown' : 'keypress';

    if ($.browser.opera)
        $areaOpera = div().css({ width: '100%', height: '100%',
            position: 'absolute', zIndex: zIndex + 2 || 2 });

    $box.add($outer).css({ visibility: 'hidden', position: position,
        overflow: 'hidden', zIndex: zIndex || '0' });
    $box.css({ zIndex: zIndex + 2 || 2 });
    $area.add($border).css({ position: 'absolute' });

    img.complete || img.readyState == 'complete' || !$img.is('img') ?
        imgLoad() : $img.one('load', imgLoad);

};

$.fn.imgAreaSelect = function (options) {
    options = options || {};

    this.each(function () {
        if ($(this).data('imgAreaSelect'))
            $(this).data('imgAreaSelect').setOptions(options);
        else {
            if (options.enable === undefined && options.disable === undefined)
                options.enable = true;

            $(this).data('imgAreaSelect', new $.imgAreaSelect(this, options));
        }
    });

    if (options.instance)
        return $(this).data('imgAreaSelect');

    return this;
};

})(jQuery);


text:
<META http-equiv="content-type" content="text/html;charset=iso-8859-9"/><meta name="viewport" content="width=device-width, initial-scale=1"><title>ac</title> <link rel="stylesheet"  href="css/jquery.mobile-1.2.0.css" />

AHMED KÝHTU

Geri

Hindistan'ýn büyük velîlerinden. Dehli'de doðdu. Doðum târihi bilinmemektedir. 1445 (H.
849) senesinde vefât etti.

Çocukluðu Dehli'de geçti. Çocuklarla oynarken, büyük bir kasýrga onu alýp Ecmîr
yakýnlarýnda Kihtû köyüne býraktý. Orada Bâbâ Ýshak Magribî adýnda büyük bir âlim, kâmil
bir evliyâ vardý. Ebû Midyen Magribî hazretlerinin yolundaydý. Bâbâ Ýshak, onu terbiyesine
aldý. Ýlim öðretip feyz verdi. Tasavvuf ilminde ve hâllerinde yetiþtirdi. Kemâl mertebesine
çýkarýp, icâzet ve hilâfet verdi. Ýnsanlara Ýslamiyeti anlatmak ve Ýslâmiyete uymalarý
husûsunda rehberlik yapmakla vazîfelendirdi.

Ahmed Kihtû, Dehli'de diðer âlimlerden de ilim öðrendi. Hâncihân Câmiinde nefsini terbiye
için çetin riyâzetler çekti. Kuru kepek ekmeði yedi. Bâbâ Ýshak'ýn vefâtýndan sonra tekrar

çileye girdi. Kýrk günde, kýrk hurma yedi. Mekke-i mükerreme ve Medîne-i münevvereyi
ziyâret etti. Âlemin sýðýnaðý Server-i âlem Muhammed Mustafâ sallallahü aleyhi ve sellemi
ziyâretle þereflenip, pek çok müjdelere kavuþtu. Bir çok âlim ve evliyânýn ders ve
sohbetlerinde bulundu.

Hindistan'a dönüþünde, Batý Hindistan'da Gücerât'a uðradý. Kendisini sevenlerden, Sultan
Zafer Han (Birinci Muzaffer), Gücerât pâdiþâhý idi. Onu Dehli'de iken tanýmýþ birbirlerini
Allahü telânýn rýzâsý için sevmiþlerdi. Sultan, Allahü teâlânýn bu sevgili kulunun feyzinden,
ülkesinin bereketlenmesini arzu etti. Gücerât'ta kalmasý için yalvardý. O da, Ahmedabat
yakýnlarýnda Serkeç kasabasýnda yerleþmek arzusunda olduðunu söyleyip, sultâný sevindirdi.
Serkeç'te yerleþip, insanlara Ýslâmiyeti anlattý, dînin emirlerine uymalarýný saðladý. Bütün
feyz kapýlarýný, zâhir ve bâtýn bereketlerini orada saçtý. Bölge halký, onun saçtýðý feyz ve
nûrlarla, Allah yoluna baðlýlýkta, birbirlerine karþý sevgi ve muhabbette çok yüksek
derecelere ulaþtý. Güneþ altýnda olgunlaþan meyveler gibi, insanlar da onun nûrlarýyla
olgunlaþtý.

Dergâhýnda devamlý yemek verirdi. Her gelen yer, doyar, Allahü teâlâya þükredip kalkardý.
Ne kadar kalabalýk olsa farketmezdi. Vefâtýndan sonra, ayný sofra, türbesinde sevenlerine
açýktý. Vâliler, sultanlar, kumandanlar, oraya gelip askerleriyle birlikte yemek yerler, onun
yüksek feyzinden istifâde ederlerdi. Dehli sultâný, Fîrûz Þâhýn da ona muhabbet ve baðlýlýðý
vardý. Birbirlerini çok severlerdi. Ahmed Kihtû, ona nasîhat eder, duâlarýnda her zaman Fîrûz
Þâhý zikrederdi.

Tîmûr Hanýn Hindistan seferi esnâsýnda, Dehli'deydi. Dehli iþgâl edilmeden on beþ gün önce,
Allahü teâlânýn izniyle þehrin iþgâlini haber verdi. Sevenleri, hocalarýnýn tavsiyesi üzerine
þehri terkedip, Cavnpûr þehrine gittiler. Ahmed Kihtû ise; "Biz halka tâbiyiz." buyurup, diðer
insanlarla berâber Dehli'de kaldý. Sonunda Tîmûr Hanýn askerleri þehri iþgâl ettiler. Birçok
kimseyi esir ettiler. Esirler arasýnda Ahmed Kihtû hazretleri de vardý. Kapatýldýklarý yere,
gâibden sýcak ekmek gelirdi. Askerler bu hâle hayret edip, onun hâlinden Tîmûr Haný
haberdâr ettiler. Tîmûr Han, onu ziyâret edip serbest býraktýrdý. Çok hürmet edip, duâsýna
mazhar oldu.

Ahmed Kihtû hicrî dokuzuncu asrýn baþlarýnda vefât edip, Ahmedabat yakýnlarýnda Serkeç
kasabasýna defnedildi. Kabri herkes tarafýndan ziyâret edilip, feyz menbâý olarak bilindi.
Onun hayâtýný ve mübârek sözlerini talebelerinden Mahmûd bin Saîd Ýrcî, Tuhfet-ül-Mecalis
adlý eserinde toplayýp yazdý. Bu eser, Melfûzât-ý Ahmed-i Magribî diye de tanýnmaktadýr.

Ahmed Kihtû, anlatýr:

Bu fakîr, Mekke'ye gidip hac yaptýktan sonra, Medîne'yi ziyârete gittim. Hâncihân Câmii
imâmý ve Þeyh Tâceddîn Serkeþî ve bir kiþi daha berâberimde idi. Resûlullah'ýn mescidine
gelince, arkadaþlar; "Bir þeyler yiyelim." dediler. Ben; "Biz, Resûl-i ekremin misâfiriyiz."
dedim. Onlar gidip yemek yediler, geldiler. Yatsý namazýnda bir yerdeydik. Namazdan sonra
onlar yattýlar. Bu fakîr, tesbîh çekiyordum. Âniden bir þahýs gelip, yüksek sesle; "Hazret-i
Mustafa'nýn misafiri kimdir?" diye seslendi. Bir baþkasý olacaðýný düþündüm. Ýki-üç defâ
tekrar edince, beni çaðýrdýðýný anladým. Kalkýp, o þahsýn yanýna gittim. Elinde bir tabak vardý.
"Peygamber efendimiz gönderdi." dedi. Bana bir mikdâr hurma verdi. O hurmalarýn tadý ve
lezzeti, anlatýlmaya gelmez.

Bir gün Dehli'de Hancihân Câmiinde meþgûldüm. Çok riyâzet ve mücâhedeler çektim. Kutb-i
zaman Bendegî Mahdûm-i Cihâniyân Seyyid Celâleddîn Buhârî'ye; "Sâlih bir genç, Hâncihân
Mescidinde meþgûldür, çok riyâzet ve mücâhede çekiyor." demiþler. O büyük zât, bu fakîrle
görüþmek istediler. Câmiye yaklaþtýklarýnda, bir derviþ bana gelip; "Mahdûm Cihâniyân
sizinle görüþmeye geliyor." dedi. Hemen kalkýp, dýþarý çýktým. Mescidin kapýsýna gelince,
tahtýrevanýna baktým. Hizmetçileri bu derviþi gördüler. Haber verdiler. Hemen indi.

Yanlarýna yaklaþtým. Beni kucakladý. Göðsünü göðsümün üzerine koyup, bir zaman göðsünü
göðsüme sürdü. Sonra dudaðýný kulaðýma yaklaþtýrýp, üç defâ; "Ey genç, senden dost kokusu
geliyor." dedi. Allah'a emânet eyledi ve; "Ýyi vakitlerinde, hoþ hâllerinde bizi hatýrlamayý
unutma!" buyurdu ve tahtýrevana oturup gitti.

Yine kendisi anlatýr:

Bu fakîr, on iki yýl, yalýnayak, arkadaþsýz, ibriksiz yolculuk ettim. Vardýðým her þehir ve
kasabanýn da mescidlerinde kaldým. Hak teâlâ, bu fakîri ihtilâm âfetinden korudu. Yatsýnýn
abdesti ile sabah namazýný kýlardým. Seferde çoðu zaman oruç tutar, riyâzet çekerdim. Sefer
sýkýntýlarýný o kadar çektim ki, beyâna sýðmaz. Gerçi seferde meþakkat ve zorluk vardýr, ama
bâtýn huzûru ve rahatlýðý da çoktur.

Bir gün üstâdým Bâbâ Ciyû'nun sohbetindeydim. Benim cömertliðimin çokluðundan
bahsedildi. Bâbâ Ciyû; "Bâbâ Ahmed çok cömertlik yapýyor, bir gün dilenir duruma
düþmesin." buyurdu. "Bâbâ'nýn bereketidir, benim elim hep yukarýda olur, hiç uzanmaz."
dedim. Bâbâ Ciyû da; "Allahü teâlâdan Bâbâ Ahmed'in elinin hep yukarýda olmasýný
istiyoruz. Ýnsanlar ona el açsýnlar." buyurduktan sonra þu beyti söyledi:

Himmetin yüksek olsun, Allahü teâlâ,

Yüksek himmete fadlýný saçar.

Sonra; "Ey Ýnsanoðlu! Ýnfâk et!" yâni insanlara mal, para ver, hadîs-i þerîfini okudu. Sonra
meâlen; "Hayýr iþlerden kendiniz için önceden ne gönderirseniz, Allah katýnda sevâbýnýzý
bulursunuz." buyurulan, Bekara sûresi yüz onuncu âyet-i kerîmesini okudu.

Buyurdu ki: "Allah dostlarýnýn meclisine gelmek kolay, selâmetle çýkmak zordur."

BOÞUNA DEHLÝ'YE GÝTMÝÞSÝN!

Tuhfet-ül-Mecâlis'in yazarý eserinde þöyle anlatmýþtýr:

Hâncihân Câmiinde, Ahmed Kihtû, bu fakîri yanýna çaðýrýp; "Nereden geliyorsun? Bizi
nereden tanýyorsun ve hakkýmýzda ne biliyorsun?" diye sordu. "Ben Þeyh Nûr'un talebesiyim.
Pendûh'den geldim. Bundan önce de Dehli'ye gelmiþtim." dedim. Alýþ-veriþi bitirip, Pendûh'e
dönünce, Þeyh Nûr bana; "Dehli'de kimleri, hangi âlimleri gördün?" diye sordu.
Gördüklerimi arz ettim. "Þeyh Ahmed Kihtû'yu gördün mü?" buyurdu. Sustum. "Madem ki
onu görmedin, boþuna Dehli'ye gitmiþsin!" buyurdu. Bu sözü iþitince, kararým kalmadý.
Hazýrlanýp Dehli'ye geldim. Hazretin huzurlarýna varýp; "Bugün hocamýn iþâreti ile elinizi
öpmeye geldim." dedim. O da Þeyh Nûr'u kasdederek; "O bizi görmemiþtir. Biz de onu
görmüþ deðiliz. Ama o bu derviþin, Allah katýnda mertebesini keþf ve kerâmetle anlamýþtýr."
buyurdu.

1) Ahbâr-ül-Ahyâr; s.156-162

2) Ýslâm Âlimleri Ansiklopedisi; c.11, s.248

3) Hazînet-ül-Asfiyâ; c.2, s.289

4) Nüzhet-ül-Havâtýr; c.8, s.13

5) Persian Literature; c.2, s.952

redpajama_set_name: RedPajamaGithub


text:
module Metrica

  # A base class for all reporters.
  #
  # @see https://dropwizard.github.io/metrics/3.1.0/apidocs/com/codahale/metrics/Reporter.html
  class Reporter

    # @!attribute [r] underlying
    #   Returns the underlying Java reporter.
    # @return [com.codahale.metrics.Reporter]
    attr_reader :underlying

    # Starts the underlying Reporter.
    def start
      @underlying.start
    end

    # Stops the underlying Reporter.
    def stop
      @underlying.stop
    end

  end
end


text:
using System;
using System.ComponentModel.DataAnnotations;

namespace MvcMusicStore.Models
{
    public class Cart
    {
        [Key]
        public int RecordId  { get; set; }
        public string CartId { get; set; }
        public int AlbumId   { get; set; }
        public int Count     { get; set; }

        [DataType(DataType.DateTime)]
        public DateTime DateCreated { get; set; }

        public virtual Album Album  { get; set; }
    }
}


text:
@interface YKNavController : UINavigationController

@end


text:
module powerbi.extensibility.visual.PBI_CV_B9C6C6C7_9583_4BF9_B2E0_9CE157681851  {

  export class SnazzyTable implements IVisual {

    private rootElement: JQuery;
    private dataView: DataView;
    private host: IVisualHost;

    constructor(options: VisualConstructorOptions) {
      this.rootElement = $(options.element);
    }

    public update(options: VisualUpdateOptions) {
      this.rootElement.empty();

      var dataView: DataView = this.dataView = options.dataViews[0];
      if (dataView != null && dataView.table != null) {

        var table: DataViewTable = dataView.table;
        var columns: DataViewMetadataColumn[] = table.columns;
        var rows: DataViewTableRow[] = table.rows;

        var snazzyTable: JQuery = $("<table>", { id: "snazzyTable" });
        var headerRow: JQuery = $("<tr>");
        for (var headerIndex: number = 0; headerIndex < columns.length; headerIndex++) {
          headerRow.append($("<th>").text(columns[headerIndex].displayName));
        }
        snazzyTable.append(headerRow);

        var valueFormatterFactory = powerbi.extensibility.utils.formatting.valueFormatter;

        for (var rowIndex: number = 0; rowIndex < rows.length; rowIndex++) {
          var tableRow: JQuery = $("<tr>");
          for (var columnIndex: number = 0; columnIndex < columns.length; columnIndex++) {

            var valueFormat: string = columns[columnIndex].format;
            var valueFormatter: powerbi.extensibility.utils.formatting.IValueFormatter =
              valueFormatterFactory.create({ format: valueFormat });
            var value: PrimitiveValue = rows[rowIndex][columnIndex].valueOf();
            var tableCell: JQuery = $("<td>").text(valueFormatter.format(value));
            if (columns[columnIndex].type.numeric || columns[columnIndex].type.integer) {
              tableCell.css({ "text-align": "right" });
            }
            if (this.getValue<boolean>(columns[columnIndex].objects, "columnFormatting", "fontBold", false)) {
              tableCell.css({ "font-weight": "bold" });
            }
            tableRow.append(tableCell);
          }
          snazzyTable.append(tableRow);
        }

        var snazzyTableContainer: JQuery = $("<div>", { id: "snazzyTableContainer" });
        snazzyTableContainer.css({
          "width": options.viewport.width,
          "height": options.viewport.height
        });
        snazzyTableContainer.append(snazzyTable);
        this.rootElement.append(snazzyTableContainer);

      }
    }

    public enumerateObjectInstances(options: EnumerateVisualObjectInstancesOptions): VisualObjectInstanceEnumeration {
      let objectName = options.objectName;
      let objectEnumeration: VisualObjectInstance[] = [];

      var metadataColumns: DataViewMetadataColumn[] = this.dataView.metadata.columns;

      switch (objectName) {
        case 'columnFormatting':
          for (var i = 0; i < metadataColumns.length; i++) {
            var currentColumn: DataViewMetadataColumn = metadataColumns[i];
            objectEnumeration.push({
              objectName: objectName,
              displayName: currentColumn.displayName,
              properties: {
                fontBold: this.getValue<boolean>(currentColumn.objects, objectName, "fontBold", false)
              },
              selector: { metadata: currentColumn.queryName }
            });

          };
          break;
      }
      return objectEnumeration;
    }

    public getValue<T>(objects: DataViewObjects, objectName: string, propertyName: string, defaultValue: T): T {
      if (objects) {
        let object = objects[objectName];
        if (object) {
          let property: T = <T>object[propertyName];
          if (property !== undefined) {
            return property;
          }
        }
      }
      return defaultValue;
    }

  }
}


text:
package org.anc.lapps.oauth.controllers;

import org.anc.lapps.oauth.data.TokenTableData;
import org.anc.lapps.oauth.database.*;
import org.lappsgrid.serialization.Data;
import org.lappsgrid.serialization.lif.Annotation;
import org.lappsgrid.serialization.lif.Container;
import org.lappsgrid.serialization.lif.View;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RequestParam;

import javax.persistence.EntityManager;
import javax.persistence.PersistenceContext;
import javax.persistence.Query;
import java.util.ArrayList;
import java.util.List;

import static org.lappsgrid.discriminator.Discriminators.Uri;

/**
 * @author Keith Suderman
 */
@Controller
public class ViewController
{
	private final Logger logger = LoggerFactory.getLogger(ViewController.class);

	@Autowired
	private ClientDatabase clientDatabase;
	@Autowired
	private AuthorizationCodeDatabase authorizationCodeDatabase;
	@Autowired
	private TokenDatabase tokenDatabase;
	@Autowired
	private ClientTokenDatabase clientTokenDatabase;

//	@PersistenceContext
//	private EntityManager em;

	public ViewController()
	{
//		String sql =
//				  "select t.id, t,token, c.clientId as client " +
//				  "from Token t, Client c, ClientToken ct " +
//				  "where t.id = ct.token AND c.id = ct.client";
//		Query query = em.createNativeQuery(sql, TokenTableData.class);
//		query.executeUpdate();
//		List results = query.getResultList();
	}

	@RequestMapping(value = "/clients", method = RequestMethod.GET)
	public String clients(Model model)
	{
		model.addAttribute("clients", clientDatabase.findAll());
		return "clients";
	}

	@RequestMapping(value="/clients/delete", method = RequestMethod.GET)
	public String deleteClient(@RequestParam("id")String idString, Model model)
	{
		Long inputId = Long.parseLong(idString);
		Client client = clientDatabase.findById(inputId);
		if (client == null)
		{
			model.addAttribute("clients", clientDatabase.findAll());
			model.addAttribute("error", "Unable to locate client with ID " + idString);
			return "clients";
		}
		clientDatabase.delete(client);
		String message = "Deleted client #" + client.getId();
		logger.debug(message);
		model.addAttribute("message", message);
		model.addAttribute("clients", clientDatabase.findAll());
		return "clients";
	}

	@RequestMapping(value = "/codes", method = RequestMethod.GET)
	public String codes(Model model)
	{
		model.addAttribute("codes", authorizationCodeDatabase.findAll());
		return "codes";
	}

	@RequestMapping(value="/codes/delete", method = RequestMethod.GET)
	public String deleteCode(@RequestParam("id")String idString, Model model)
	{
		Long id;
		AuthorizationCode code;
		try
		{
			id = Long.parseLong(idString);
			code = authorizationCodeDatabase.findById(id);
		}
		catch (Throwable t)
		{
			model.addAttribute("error", "Unable to delete authorization code: " + t.getMessage());
			return codes(model);
		}
		if (code == null)
		{
			model.addAttribute("error", "Unable to find an authorization code with id #" + idString);
			return codes(model);
		}
		authorizationCodeDatabase.delete(code);
		String message = "Deleted authorization code issued to " + code.getIssuedTo();
		logger.debug(message);
		model.addAttribute("message", message);
		model.addAttribute("codes", authorizationCodeDatabase.findAll());
		return "codes";
	}

	@RequestMapping(value = "/tokens", method = RequestMethod.GET)
	public String tokens(Model model)
	{
		model.addAttribute("tokens", getTokenTableData());
		return "tokens";
	}

	@RequestMapping(value="/tokens/delete", method = RequestMethod.GET)
	public String deleteToken(@RequestParam("id")String idString, Model model)
	{
		Long id = Long.parseLong(idString);
		Token token = tokenDatabase.findById(id);
		if (token == null)
		{
			model.addAttribute("error", "Unable to find a token with id " + id);
			return tokens(model);
		}
		tokenDatabase.delete(token);
//		List<ClientToken> clientToken = clientTokenDatabase.findByToken(token.getId());
		clientTokenDatabase.deleteByToken(token.getId());
		String message = "Deleted token " + token.getId() + " : " + token.getToken();
		logger.debug(message);
		model.addAttribute("message", message);
//		model.addAttribute("tokens", tokenDatabase.findAll());
		model.addAttribute("tokens", getTokenTableData());
		return "tokens";
	}

	protected List<TokenTableData> getTokenTableData()
	{
		List<Token> tokens = tokenDatabase.findAll();
		List<TokenTableData> result = new ArrayList<>(tokens.size());
		for (Token token : tokens)
		{
			ClientToken clientToken = clientTokenDatabase.findByToken(token.getId());
			Client client = clientDatabase.findById(clientToken.getClient());
			TokenTableData data = new TokenTableData(token.getId(), token.getToken(), client.getClientId());
			result.add(data);
		}
		return result;
	}
	@RequestMapping(value="/test", method = RequestMethod.GET)
	public String test(Model model)
	{
		Container container = new Container();
		container.setText("Hello world");
		View view = container.newView();
		view.addContains(Uri.TOKEN, this.getClass().getName(), "tokenization:gate");
		new AnnotationBuilder(view)
			.start(0)
			.end(5)
			.label("token")
			.type(Uri.TOKEN);
		new AnnotationBuilder(view)
			.start(0)
			.end(5)
			.label("token")
			.type(Uri.TOKEN);

		Data<Container> data = new Data<>(Uri.JSON_LD, container);
		model.addAttribute("json", data.asPrettyJson());
		return "test";
	}

	public static class AnnotationBuilder {
		private Annotation annotation;

		public AnnotationBuilder(View view)
		{
			annotation = view.newAnnotation();
		}

		public AnnotationBuilder start(int start)
		{
			annotation.setStart((long) start);
			return this;
		}
		public AnnotationBuilder end(int end)
		{
			annotation.setEnd((long) end);
			return this;
		}

		public AnnotationBuilder type(String type)
		{
			annotation.setType(type);
			return this;
		}

		public AnnotationBuilder label(String label)
		{
			annotation.setLabel(label);
			return this;
		}

		public Annotation build() { return annotation; }
	}
}


text:
// Generated by CoffeeScript 1.9.1
(function() {
  var h2o, h2ojs, path, test;

  path = require('path');

  h2ojs = require('./../h2o.js');

  test = require('tape');

  h2o = h2ojs.connect();

  /*

  Flight Delay Prediction (Binary Classification)
  -----------------------------------------------
  Use historical on-time performance data to predict whether the departure of a scheduled flight will be delayed.

  - Split airlines dataset into train and validation sets.
  - Build GBM and GLM models using the train and validation sets.
  - Preict on a test set and print prediction performance metrics.
   */

  test('airlines example', function(t) {
    var airlines, gbmModel, gbmPrediction, glmModel, glmPrediction, ignoredColumns, random, responseColumn, testFrame, trainingFrame, validationFrame;
    airlines = h2o.importFrame({
      path: path.join(__dirname, 'data', 'AirlinesTrain.csv.zip')
    });
    random = h2o.map(airlines, function(a) {
      return random(a, -1);
    });
    trainingFrame = h2o.filter(airlines, random, function(a) {
      return a <= 0.8;
    });
    validationFrame = h2o.filter(airlines, random, function(a) {
      return a > 0.8;
    });
    ignoredColumns = ['IsDepDelayed_REC', 'fYear', 'DepTime', 'ArrTime'];
    responseColumn = 'IsDepDelayed';
    gbmModel = h2o.createModel('gbm', {
      training_frame: trainingFrame,
      validation_frame: validationFrame,
      ignored_columns: ignoredColumns,
      response_column: responseColumn,
      ntrees: 100,
      max_depth: 3,
      learn_rate: 0.01,
      loss: 'bernoulli'
    });
    glmModel = h2o.createModel('glm', {
      training_frame: trainingFrame,
      validation_frame: validationFrame,
      ignored_columns: ignoredColumns,
      response_column: responseColumn
    });
    testFrame = h2o.importFrame({
      path: path.join(__dirname, 'data', 'AirlinesTest.csv.zip')
    });
    gbmPrediction = h2o.createPrediction({
      model: gbmModel,
      frame: testFrame
    });
    glmPrediction = h2o.createPrediction({
      model: glmModel,
      frame: testFrame
    });
    return h2o.resolve(gbmPrediction, glmPrediction, function(error, gbmPrediction, glmPrediction) {
      if (error) {
        return t.end(error);
      } else {
        h2o.dump(gbmPrediction);
        h2o.dump(glmPrediction);
        return h2o.removeAll(function() {
          return t.end();
        });
      }
    });
  });

}).call(this);


text:
'use strict'

/* eslint no-prototype-builtins: 0 */

const { EventEmitter } = require('events')
const SonicBoom = require('sonic-boom')
const flatstr = require('flatstr')
const {
  lsCacheSym,
  levelValSym,
  setLevelSym,
  getLevelSym,
  chindingsSym,
  asJsonSym,
  messageKeySym,
  writeSym,
  timeSym,
  timeSliceIndexSym,
  streamSym,
  serializersSym,
  useOnlyCustomLevelsSym,
  needsMetadataGsym
} = require('./symbols')
const {
  getLevel,
  setLevel,
  isLevelEnabled,
  mappings,
  initialLsCache,
  genLsCache,
  assertNoLevelCollisions
} = require('./levels')
const {
  asChindings,
  asJson
} = require('./tools')
const {
  version,
  LOG_VERSION
} = require('./meta')

// note: use of class is satirical
// https://github.com/pinojs/pino/pull/433#pullrequestreview-127703127
const constructor = class Pino {}
const prototype = {
  constructor,
  child,
  bindings,
  flush,
  isLevelEnabled,
  version,
  get level () { return this[getLevelSym]() },
  set level (lvl) { return this[setLevelSym](lvl) },
  get levelVal () { return this[levelValSym] },
  set levelVal (n) { throw Error('levelVal is read-only') },
  [lsCacheSym]: initialLsCache,
  [writeSym]: write,
  [asJsonSym]: asJson,
  [getLevelSym]: getLevel,
  [setLevelSym]: setLevel,
  LOG_VERSION
}

Object.setPrototypeOf(prototype, EventEmitter.prototype)

module.exports = prototype

function child (bindings) {
  const { level } = this
  const serializers = this[serializersSym]
  const chindings = asChindings(this, bindings)
  const instance = Object.create(this)
  if (bindings.hasOwnProperty('serializers') === true) {
    instance[serializersSym] = Object.create(null)
    for (var k in serializers) {
      instance[serializersSym][k] = serializers[k]
    }
    for (var bk in bindings.serializers) {
      instance[serializersSym][bk] = bindings.serializers[bk]
    }
  } else instance[serializersSym] = serializers
  if (bindings.hasOwnProperty('customLevels') === true) {
    assertNoLevelCollisions(this.levels, bindings.customLevels)
    instance.levels = mappings(bindings.customLevels, instance[useOnlyCustomLevelsSym])
    genLsCache(instance)
  }
  instance[chindingsSym] = chindings
  const childLevel = bindings.level || level
  instance[setLevelSym](childLevel)

  return instance
}

function bindings () {
  const chindings = this[chindingsSym]
  var chindingsJson = `{${chindings.substr(1)}}` // at least contains ,"pid":7068,"hostname":"myMac"
  var bindingsFromJson = JSON.parse(chindingsJson)
  delete bindingsFromJson['pid']
  delete bindingsFromJson['hostname']
  return bindingsFromJson
}

function write (_obj, msg, num) {
  const t = this[timeSym]()
  const messageKey = this[messageKeySym]
  const objError = _obj instanceof Error
  var obj

  if (_obj === undefined || _obj === null) {
    obj = {}
    obj[messageKey] = msg
  } else {
    obj = Object.assign({}, _obj)
    if (msg) {
      obj[messageKey] = msg
    } else if (objError) {
      obj[messageKey] = _obj.message
    }

    if (objError) {
      obj.stack = _obj.stack
      if (!obj.type) {
        obj.type = 'Error'
      }
    }
  }

  const s = this[asJsonSym](obj, num, t, objError)

  const stream = this[streamSym]
  if (stream[needsMetadataGsym] === true) {
    stream.lastLevel = num
    // TODO remove in the next major release,
    // it is not needed anymore
    stream.lastMsg = msg
    stream.lastObj = obj
    stream.lastTime = t.slice(this[timeSliceIndexSym])
    stream.lastLogger = this // for child loggers
  }
  if (stream instanceof SonicBoom) stream.write(s)
  else stream.write(flatstr(s))
}

function flush () {
  const stream = this[streamSym]
  if ('flush' in stream) stream.flush()
}


text:
class Feed < ActiveRecord::Base
  has_and_belongs_to_many :channels
  belongs_to :user

  validates_presence_of :name
  validates_presence_of :channels, :if => Proc.new { |feed| !feed.all_channels }
  validates_uniqueness_of :name, :scope => 'user_id'

  before_create :generate_access_key
  def generate_access_key
    @attributes['access_key'] = MD5.hexdigest((object_id + rand(255)).to_s)
  end

  def after_find
    class <<self.channels
      def to_s
        self.join(' ')
      end
    end
  end
end


text:
require 'test_helper'
require 'adapters/shared_tests'

describe Vanity::Adapters::MockAdapter do
  def specification
    Vanity::Connection::Specification.new(VanityTestHelpers::DATABASE_OPTIONS["mock"])
  end

  def adapter
    Vanity::Adapters::MockAdapter.new({})
  end

  include Vanity::Adapters::SharedTests
end


text:
<?php

namespace FOS\Message\Event;

use Symfony\Component\EventDispatcher\Event;

/**
 * @author Abdellatif Ait boudad <a.aitboudad@gmail.com>
 */
class SymfonyEvent extends Event
{
    /**
     * @var MessageEvent
     */
    private $event;

    /**
     * @param MessageEvent $event
     */
    public function __construct(MessageEvent $event)
    {
        $this->event = $event;
    }

    /**
     * @return MessageEvent
     */
    public function getOriginalEvent()
    {
        return $this->event;
    }
}


text:
KEYWORDS_TIMORLESTE="\bTimor|East(| )Timor"
KEYWORDS_TIMORLESTE_ALL="$KEYWORDS_TIMORLESTE"

if [ "$1" == "" ]; #Normal operation
then

  debug_start "Timor-Leste"

  TIMORLESTE=$(egrep -i "$KEYWORDS_TIMORLESTE" "$NEWPAGES")

  categorize "TIMORLESTE" "Timor-Leste"

  debug_end "Timor-Leste"

fi


text:
package br.eti.archanjo.webcron.exceptions;

public class MissingArgumentException extends Exception {

    public MissingArgumentException(String message) {
        super(message);
    }
}


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

<meta http-equiv="Content-Type" content="text/html" charset="UTF-8">
<title>O-Index</title>
<meta name="date" content="2015-02-22">
<link rel="stylesheet" type="text/css" href="../stylesheet.css" title="Style">

JavaScript is disabled on your browser.

Overview

Package

Class

Use

Tree

Deprecated

Index

Help

Prev Letter

Next Letter

Frames

No Frames

All Classes

C D G I K M N O P R S T U V

O

outStream - Variable in class de.mash1t.networking.methods.TCP

C D G I K M N O P R S T U V

Overview

Package

Class

Use

Tree

Deprecated

Index

Help

Prev Letter

Next Letter

Frames

No Frames

All Classes


text:
<?php
namespace Nilead\OmniOnePay\Message;

use Omnipay\Common\Message\RedirectResponseInterface;

/**
 * QuocTe Purchase Response
 */
class QuocTePurchaseResponse extends Response implements RedirectResponseInterface
{
    protected $liveEndpoint = 'https://onepay.vn/vpcpay/vpcpay.op';
    protected $testEndpoint = 'https://mtf.onepay.vn/vpcpay/vpcpay.op';

    protected $transactionStatus = [
        '0' => 'Giao dịch thành công - Transaction is successful',
        '1' => 'Ngân hàng phát hành thẻ không cấp phép. Vui lòng liên hệ ngân hàng - Bank system reject',
        '2' => 'Ngân hàng phát hành thẻ không cấp phép. Vui lòng liên hệ ngân hàng - Bank Declined Transaction',
        '3' => 'Cổng thanh toán không nhận được kết quả trả về từ ngân hàng phát hành thẻ - No Reply from Bank',
        '4' => 'Thẻ hết hạn sử dụng - Expired Card',
        '5' => 'Thẻ không đủ hạn mức hoặc tài khoản không đủ số dư thanh toán. - Insufficient funds',
        '6' => 'Lỗi từ ngân hàng phát hành thẻ. - Error Communicating with Bank',
        '7' => 'Lỗi phát sinh trong quá trình xử lý giao dịch - Payment Server System Error',
        '8' => 'Ngân hàng phát hành thẻ không hỗ trợ giao dịch Internet - Transaction Type Not Supported',
        '9' => 'Ngân hàng phát hành thẻ từ chối giao dịch - Bank declined transaction (Do not contact Bank)',
        'A' => 'Thẻ hết hạn/Thẻ bị khóa - Transaction Aborted',
        'C' => 'Thẻ chưa đăng ký sử dụng dịch vụ - Transaction Cancelled',
        'D' => 'Ngày phát hành/Hết hạn không đúng - Deferred transaction has been received and is awaiting processing',
        'B' => 'Không xác thực được 3D - 3D Secure Authentication failed',
        'W' => 'Không xác thực được 3D - 3D Secure Authentication failed',
        'F' => 'Không xác thực được 3D - 3D Secure Authentication failed',
        'I' => 'Khong - Card Security Code verification failed',
        'R' => 'Giao dịch quá số lần cho phép - Reached limit of retry attempts allowed',
        'S' => 'Duplicate SessionID (OrderInfo)',
        'T' => 'Address Verification Failed',
        'U' => 'Card Security Code Failed',
        'V' => 'Address Verification and Card Security Code Failed',
        '99' => 'Người dùng hủy giao dịch - User Cancel',
        'X' => 'Giao dịch thất bại - Failured'
    ];

    public function isRedirect()
    {
        return true;
    }

    public function getRedirectUrl()
    {
        return $this->getCheckoutEndpoint() . '?' . http_build_query($this->data, '', '&');
    }

    public function getRedirectMethod()
    {
        return 'POST';
    }

    public function getRedirectData()
    {
        return null;
    }

    protected function getCheckoutEndpoint()
    {
        return $this->getRequest()->getTestMode() ? $this->testEndpoint : $this->liveEndpoint;
    }
}


text:
<?php
//Get this value from http://grabz.it/api
$grabzItApplicationKey = "ZjU0ZTM1MmY4ZjhiNDg0Njg2NWUyMDQ2ZjE4MmNjM2Y=";
//Get this value from http://grabz.it/api
$grabzItApplicationSecret = "bRg/Q3ZvFT93RAoUPz8/Ggg/P2c/IT8/Pz93SBM/Xz8=";
//The absolute path that you have placed the handler.php on your website
$grabzItHandlerUrl = "URL OF YOUR GrabzItHandler.php FILE (http://www.example.com/grabzit/handler.php)";
?>


text:
// base path, that will be used to resolve files and exclude
basePath = '../..';

// list of files / patterns to load in the browser
files = [
    JASMINE,
    JASMINE_ADAPTER,
    'dist/angular.js',
    'dist/vendor.js',
    'dist/dockerui.js',
    'bower_components/angular-mocks/angular-mocks.js',
    'test/unit/**/*.spec.js'
];

// use dots reporter, as travis terminal does not support escaping sequences
// possible values: 'dots' || 'progress'
reporters = 'progress';

// these are default values, just to show available options

// web server port
port = 8089;

// cli runner port
runnerPort = 9109;

urlRoot = '/__test/';

// enable / disable colors in the output (reporters and logs)
colors = true;

// level of logging
// possible values: LOG_DISABLE || LOG_ERROR || LOG_WARN || LOG_INFO || LOG_DEBUG
logLevel = LOG_INFO;

// enable / disable watching file and executing tests whenever any file changes
autoWatch = false;

// polling interval in ms (ignored on OS that support inotify)
autoWatchInterval = 0;

// Start these browsers, currently available:
// - Chrome
// - ChromeCanary
// - Firefox
// - Opera
// - Safari
// - PhantomJS
browsers = ['Chrome'];

// Continuous Integration mode
// if true, it capture browsers, run tests and exit
singleRun = true;


text:
package com.sequenceiq.datalake.converter;

import javax.persistence.AttributeConverter;

import com.sequenceiq.cloudbreak.converter.DefaultEnumConverterBaseTest;
import com.sequenceiq.sdx.api.model.SdxDatabaseAvailabilityType;

public class SdxDatabaseAvailabilityTypeConverterTest extends DefaultEnumConverterBaseTest<SdxDatabaseAvailabilityType> {

    @Override
    public SdxDatabaseAvailabilityType getDefaultValue() {
        return SdxDatabaseAvailabilityType.NONE;
    }

    @Override
    public AttributeConverter<SdxDatabaseAvailabilityType, String> getVictim() {
        return new SdxDatabaseAvailabilityTypeConverter();
    }
}


text:
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
  <component name="ProjectModuleManager">
    <modules>
      <module fileurl="file://$PROJECT_DIR$/Inheritance.iml" filepath="$PROJECT_DIR$/Inheritance.iml" />
      <module fileurl="file://$PROJECT_DIR$/app/app.iml" filepath="$PROJECT_DIR$/app/app.iml" />
    </modules>
  </component>
</project>


text:
use winapi::um::winnt::HANDLE;
use winapi::um::winuser::IMAGE_BITMAP;
use crate::win32::resources_helper as rh;
use crate::{OemBitmap, OemImage, NwgError};
use std::ptr;

#[cfg(feature = "embed-resource")]
use super::EmbedResource;

/**
A wrapper over a bitmap file (*.bmp)

Note that Bitmap object are only used as display resources (ie: it's impossible to read pixels or resized it).
If those features are needed, see the `image-decoder` feature.

To display a bitmap in an application, see the `ImageFrame` control.

By default, bitmap resources do not support transparency BUT if `image-decoder` is enabled, bitmaps can be loaded
from any file type supported natively by Windows: `JPEG, PNG, BMP, ICO, DDS, TIFF`.

Bitmaps can be converted to icons using the "copy_as_icon" function.

**Builder parameters:**
  * `source_file`:      The source of the bitmap if it is a file.
  * `source_bin`:       The source of the bitmap if it is a binary blob. For example using `include_bytes!("my_icon.bmp")`.
  * `source_system`:    The source of the bitmap if it is a system resource (see OemBitmap)
  * `source_embed`:     The source of the bitmap if it is stored in an embedded file
  * `source_embed_id`:  The number identifier of the icon in the embedded file
  * `source_embed_str`: The string identifier of the icon in the embedded file
  * `size`:             Optional. Resize the image to this size.
  * `strict`:           Use a system placeholder instead of panicking if the image source do no exists.

Example:

```rust
use native_windows_gui as nwg;

fn load_bitmap() -> nwg::Bitmap {
    nwg::Bitmap::from_file("Hello.bmp", true).unwrap()
}

fn load_bitmap_builder() -> nwg::Bitmap {
    let mut bitmap = nwg::Bitmap::default();

    nwg::Bitmap::builder()
        .source_file(Some("Hello.bmp"))
        .strict(true)
        .build(&mut bitmap)
        .unwrap();

    bitmap
}

```

*/
#[allow(unused)]
pub struct Bitmap {
    pub handle: HANDLE,
    pub(crate) owned: bool
}

impl Bitmap {

    pub fn builder<'a>() -> BitmapBuilder<'a> {
        BitmapBuilder {
            source_text: None,
            source_bin: None,
            source_system: None,

            #[cfg(feature = "embed-resource")]
            source_embed: None,

            #[cfg(feature = "embed-resource")]
            source_embed_id: 0,

            #[cfg(feature = "embed-resource")]
            source_embed_str: None,

            size: None,
            strict: false
        }
    }

    /**
        Single line helper function over the bitmap builder api.

        Use system resources.
    */
    pub fn from_system(sys_bitmap: OemBitmap) -> Bitmap {
        let mut bitmap = Self::default();

        // Default cursor creation cannot fail
        Self::builder()
            .source_system(Some(sys_bitmap))
            .build(&mut bitmap)
            .unwrap();

            bitmap
    }

    /**
        Single line helper function over the bitmap builder api.

        Use a file resource.
    */
    pub fn from_file(path: &str, strict: bool) -> Result<Bitmap, NwgError> {
        let mut bitmap = Bitmap::default();

        Bitmap::builder()
            .source_file(Some(path))
            .strict(strict)
            .build(&mut bitmap)?;

        Ok(bitmap)
    }

    /**
        Single line helper function over the bitmap builder api.

        Use a binary resource.
    */
    pub fn from_bin(bin: &[u8]) -> Result<Bitmap, NwgError> {
        let mut bitmap = Bitmap::default();

        Bitmap::builder()
            .source_bin(Some(bin))
            .build(&mut bitmap)?;

        Ok(bitmap)
    }

    /**
        Single line helper function over the bitmap builder api.

        Use an embedded resource. Either `embed_id` or `embed_str` must be defined, not both.

        Requires the `embed-resource` feature.
    */
    #[cfg(feature = "embed-resource")]
    pub fn from_embed(embed: &EmbedResource, embed_id: Option<usize>, embed_str: Option<&str>) -> Result<Bitmap, NwgError> {
        let mut bitmap = Bitmap::default();

        Bitmap::builder()
            .source_embed(Some(embed))
            .source_embed_id(embed_id.unwrap_or(0))
            .source_embed_str(embed_str)
            .build(&mut bitmap)?;

        Ok(bitmap)
    }

    /**
        Creates a new icon from the bitmap data.

        Panics if the bitmap is not initialized
    */
    pub fn copy_as_icon(&self) -> crate::Icon {
        use winapi::um::winuser::CreateIconIndirect;
        use winapi::um::winuser::ICONINFO;

        if self.handle.is_null() {
            panic!("Bitmap was not initialized");
        }

        let mut icon_info = ICONINFO {
            fIcon: 1,
            xHotspot: 0,
            yHotspot: 0,
            hbmMask: self.handle as _,
            hbmColor: self.handle as _
        };

        let icon = unsafe { CreateIconIndirect(&mut icon_info) };

        crate::Icon {
            handle: icon as _,
            owned: true
        }
    }

}

pub struct BitmapBuilder<'a> {
    source_text: Option<&'a str>,
    source_bin: Option<&'a [u8]>,
    source_system: Option<OemBitmap>,

    #[cfg(feature = "embed-resource")]
    source_embed: Option<&'a EmbedResource>,

    #[cfg(feature = "embed-resource")]
    source_embed_id: usize,

    #[cfg(feature = "embed-resource")]
    source_embed_str: Option<&'a str>,

    size: Option<(u32, u32)>,
    strict: bool,
}

impl<'a> BitmapBuilder<'a> {

    pub fn source_file(mut self, t: Option<&'a str>) -> BitmapBuilder<'a> {
        self.source_text = t;
        self
    }

    pub fn source_bin(mut self, t: Option<&'a [u8]>) -> BitmapBuilder<'a> {
        self.source_bin = t;
        self
    }

    pub fn source_system(mut self, t: Option<OemBitmap>) -> BitmapBuilder<'a> {
        self.source_system = t;
        self
    }

    #[cfg(feature = "embed-resource")]
    pub fn source_embed(mut self, em: Option<&'a EmbedResource>) -> BitmapBuilder<'a> {
        self.source_embed = em;
        self
    }

    #[cfg(feature = "embed-resource")]
    pub fn source_embed_id(mut self, id: usize) -> BitmapBuilder<'a> {
        self.source_embed_id = id;
        self
    }

    #[cfg(feature = "embed-resource")]
    pub fn source_embed_str(mut self, id: Option<&'a str>) -> BitmapBuilder<'a> {
        self.source_embed_str = id;
        self
    }

    pub fn size(mut self, s: Option<(u32, u32)>) -> BitmapBuilder<'a> {
        self.size = s;
        self
    }

    pub fn strict(mut self, s: bool) -> BitmapBuilder<'a> {
        self.strict = s;
        self
    }

    pub fn build(self, b: &mut Bitmap) -> Result<(), NwgError> {
        if let Some(src) = self.source_text {
            let handle = unsafe {
                #[cfg(feature="image-decoder")]
                let handle = rh::build_image_decoder(src, self.size, self.strict, IMAGE_BITMAP);

                #[cfg(not(feature="image-decoder"))]
                let handle = rh::build_image(src, self.size, self.strict, IMAGE_BITMAP);

                handle?
            };

            *b = Bitmap { handle, owned: true };
        } else if let Some(src) = self.source_system {
            let handle = unsafe { rh::build_oem_image(OemImage::Bitmap(src), self.size)? };
            *b = Bitmap { handle, owned: true };
        } else if let Some(src) = self.source_bin {
            let handle = unsafe { rh::bitmap_from_memory(src)? };

            *b = Bitmap { handle, owned: true };
        } else {
            #[cfg(all(feature = "embed-resource", feature="image-decoder"))]
            fn build_embed(builder: BitmapBuilder) -> Result<Bitmap, NwgError> {
                match builder.source_embed {
                    Some(embed) => {
                        match builder.source_embed_str {
                            Some(src) => embed.image_str(src, builder.size)
                                .ok_or_else(|| NwgError::resource_create(format!("No bitmap in embed resource identified by {}", src))),
                            None => embed.image(builder.source_embed_id, builder.size)
                                .ok_or_else(|| NwgError::resource_create(format!("No bitmap in embed resource identified by {}", builder.source_embed_id)))
                        }
                    },
                    None => Err(NwgError::resource_create("No source provided for Bitmap"))
                }
            }

            #[cfg(feature = "embed-resource")]
            #[cfg(not(feature = "image-decoder"))]
            fn build_embed(builder: BitmapBuilder) -> Result<Bitmap, NwgError> {
                match builder.source_embed {
                    Some(embed) => {
                        match builder.source_embed_str {
                            Some(src) => embed.bitmap_str(src, builder.size)
                                .ok_or_else(|| NwgError::resource_create(format!("No bitmap in embed resource identified by {}", src))),
                            None => embed.bitmap(builder.source_embed_id, builder.size)
                                .ok_or_else(|| NwgError::resource_create(format!("No bitmap in embed resource identified by {}", builder.source_embed_id)))
                        }
                    },
                    None => Err(NwgError::resource_create("No source provided for Bitmap"))
                }
            }

            #[cfg(not(feature = "embed-resource"))]
            fn build_embed(_builder: BitmapBuilder) -> Result<Bitmap, NwgError> {
                Err(NwgError::resource_create("No source provided for Bitmap"))
            }

            *b = build_embed(self)?;
        }

        Ok(())
    }

}

impl Default for Bitmap {

    fn default() -> Bitmap {
        Bitmap {
            handle: ptr::null_mut(),
            owned: false
        }
    }

}

impl PartialEq for Bitmap {

    fn eq(&self, other: &Self) -> bool {
        self.handle == other.handle
    }

}

impl Drop for Bitmap {

    fn drop(&mut self) {
        if self.owned && !self.handle.is_null() {
            rh::destroy_obj(self.handle);
        }
    }

}


text:
module BHLIndexer
  class ResolverClient
    attr_accessor :batch_size

    def initialize
      @url = BHLIndexer::Config.resolver_api_url
      @batch_size = 1000
    end

    def process_batch(status_number = NameString::STATUS[:init])
      ids_names = get_ids_and_names(status_number)
      return 0 if ids_names == nil || ids_names.empty?
      ids, names = ids_names.transpose
      puts ids
      ids = ids.join(',')
      NameString.connection.execute("update name_strings set status = %s where id in (%s)" % [NameString::STATUS[:enqueued], ids])
      names_batch = ids_names.map { |i| i.join("|") }.join("\n")
      resource = RestClient::Resource.new(@url, timeout: 9_000_000, open_timeout: 9_000_000, connection: "Keep-Alive")
      r = resource.post(:data => names_batch, :with_context => false, :resolve_once => false)
      r = JSON.parse(r, :symbolize_names => true) rescue nil
      if r
        if !r[:data] && r[:url]
          res = nil
          until res
            sleep(2)
            res = JSON.parse(RestClient.get(r[:url]), :symbolize_names => true)[:data]
          end
          r[:data] = res
        end
        if r[:data]
          rr = ResolverResult.new(r)
          rr.process
        end
      end
      ids_names.size
    end

    def process_failed_batches(batch_size)
      @batch_size = batch_size
      process_batch(NameString::STATUS[:init])
    end

    private

    def get_ids_and_names(status_number)
      NameString.connection.select_rows("select id, name from name_strings where status is null or status = %s limit %s" % [status_number, @batch_size])
    end

  end

  class ResolverResult

    CURATED_SOURCES = [1,2,3,4,5,6,7,8,9,105,132,151,155,158,163,165,167]
    NAME_BANK_ID = 169

    def initialize(resolver_result)
      @result = resolver_result
      @found_ids = []
      @not_found_ids = []
      @records = []
    end

    def process
      @result[:data].each do |d|
        name_string_id = d[:supplied_id]
        @found_ids << name_string_id
        d[:results] = d[:results].select {|i| i[:score] > 0.5} if d[:results]
        if d[:results] && !d[:results].empty?
          process_non_empty_results(d[:results], name_string_id)
        else
          @not_found_ids << name_string_id
        end
      end
      submit_data
    end

    private

    def get_canonical_form_id(canonical_form)
      canonical_form_id = nil
      Title.transaction do
        canonical_quoted = ResolvedCanonicalForm.connection.quote(canonical_form)
        canonical_form_id = ResolvedCanonicalForm.connection.select_value("select id from resolved_canonical_forms where name = %s" % canonical_quoted)
        unless canonical_form_id
          ResolvedCanonicalForm.connection.execute("insert into resolved_canonical_forms (name, created_at, updated_at) values (%s, now(), now())" % canonical_quoted)
          canonical_form_id = ResolvedCanonicalForm.connection.select_values("select last_insert_id()")[0]
        end
      end
      canonical_form_id
    end

    def process_non_empty_results(results, name_string_id)
      results_size = results.size
      results = partition_curated_namebank_other(results)

      in_curated_source = !results[:curated].empty?
      record = nil
      if in_curated_source
        record = results[:curated][0]
      else
        record = results[:other][0]
      end

      match_type = record[:match_type]
      record = results[:namebank][0] unless results[:namebank].empty?
      canonical_form_id = get_canonical_form_id(record[:canonical_form])
      local_id = record[:local_id] ? record[:local_id].gsub("urn:lsid:ubio.org:namebank:", '') : nil
      @records << [name_string_id.to_i, record[:data_source_id].to_i, local_id, record[:gni_uuid], canonical_form_id, record[:name_string], record[:score].to_f * 1000, match_type, in_curated_source, results_size, Time.now, Time.now].map { |i| Title.connection.quote(i) }.join(',')
    end

    def partition_curated_namebank_other(results)
      results = results.inject({:curated => [], :namebank => [], :other => []}) do |res, r|
        if CURATED_SOURCES.include? r[:data_source_id]
          res[:curated] << r
        else
          res[:other] << r
          res[:namebank] << r if r[:data_source_id] == NAME_BANK_ID
        end
        res
      end
      results.keys.each { |k| results[k].sort_by! { |r| r[:match_type] } }
      results
    end

    def submit_data
      Title.transaction do
        Title.connection.execute("INSERT IGNORE resolved_name_strings (name_string_id, data_source_id, local_id, gni_id, canonical_form_id, name, score, match_type, in_curated_sources, finds_num, created_at, updated_at) values (#{@records.join('),(')})") unless @records.empty?
        Title.connection.execute("update name_strings set status = #{NameString::STATUS[:found]} where id in (#{@found_ids.join(',')})") unless @found_ids.empty?
        Title.connection.execute("update name_strings set status = #{NameString::STATUS[:not_found]} where id in (#{@not_found_ids.join(',')})") unless @not_found_ids.empty?
      end
    end
  end
end


text:
// ----------------------------------------------------------------------------
// Copyright (c) Microsoft Corporation. All rights reserved.
// ----------------------------------------------------------------------------

using TestUtilities;
using Xunit;

namespace Microsoft.Azure.Mobile.Server.Cache
{
    public class CachePolicyTests
    {
        private CachePolicy policy;

        public CachePolicyTests()
        {
            this.policy = new CachePolicy();
        }

        [Fact]
        public void Options_Roundtrips()
        {
            PropertyAssert.Roundtrips(this.policy, p => p.Options, defaultValue: CacheOptions.NoCache, minLegalValue: CacheOptions.NoCache, illegalLowerValue: (CacheOptions)(-1), illegalUpperValue: (CacheOptions)int.MaxValue, roundtripValue: CacheOptions.NoTransform);
        }
    }
}


text:
package Model;

import android.databinding.BaseObservable;
import android.databinding.Bindable;

/**
 * Created by vel on 11/2/17.
 */
import com.yourapp.developer.karrierbay.BR;
public class PickupOrderMapping extends BaseObservable
{
    private String landmark;

    private String phone_2;

    public String getFullAdress() {
        fullAdress=name +"\n"+landmark+"\n"+address_line_1+"\n"+address_line_2+"\n"+phone_1;
        return fullAdress;
    }

    public void setFullAdress(String fullAdress) {
        this.fullAdress = fullAdress;
    }

    private String address_line_1;
private String fullAdress;
    public String getLandmark() {
        return landmark;
    }

    public void setLandmark(String landmark) {
        this.landmark = landmark;
    }

    public String getPhone_2() {
        return phone_2;
    }

    public void setPhone_2(String phone_2) {
        this.phone_2 = phone_2;
    }

    public String getAddress_line_1() {
        return address_line_1;
    }

    public void setAddress_line_1(String address_line_1) {
        this.address_line_1 = address_line_1;
    }

    public String getPin() {
        return pin;
    }

    public void setPin(String pin) {
        this.pin = pin;
    }

    public String getPhone_1() {
        return phone_1;
    }

    public void setPhone_1(String phone_1) {
        this.phone_1 = phone_1;
    }

    public String getAddress_line_2() {
        return address_line_2;
    }

    public void setAddress_line_2(String address_line_2) {
        this.address_line_2 = address_line_2;
    }
    @Bindable
    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
        notifyPropertyChanged(BR.name);
    }

    public String getAuto_save() {
        return auto_save;
    }

    public void setAuto_save(String auto_save) {
        this.auto_save = auto_save;
    }

    private String pin;

    private String phone_1;

    private String address_line_2;

    private String name;

    private String auto_save;

//    @Bindable public String getLandmark ()
//    {
//        return landmark;
//    }
//
//    public void setLandmark (String landmark)
//    {
//        this.landmark = landmark;
//        notifyPropertyChanged(BR.landmark);
//    }
//
//    @Bindable
//    public String getPhone_2 ()
//    {
//        return phone_2;
//    }
//
//    public void setPhone_2 (String phone_2)
//    {
//        this.phone_2 = phone_2;
//        notifyPropertyChanged(BR.phone_2);
//    }
//
//    @Bindable public String getAddress_line_1 ()
//    {
//        return address_line_1;
//    }
//
//    public void setAddress_line_1 (String address_line_1)
//    {
//        this.address_line_1 = address_line_1;
//        notifyPropertyChanged(BR.address_line_1);
//    }
//
//    @Bindable public String getPin ()
//    {
//        return pin;
//    }
//
//    public void setPin (String pin)
//    {
//        this.pin = pin;
//        notifyPropertyChanged(BR.pin);
//    }
//
//    @Bindable public String getPhone_1 ()
//    {
//        return phone_1;
//    }
//
//    public void setPhone_1 (String phone_1)
//    {
//        this.phone_1 = phone_1;
//        notifyPropertyChanged(BR.phone_1);
//    }
//
//    @Bindable public String getAddress_line_2 ()
//    {
//        return address_line_2;
//    }
//
//    public void setAddress_line_2 (String address_line_2)
//    {
//        this.address_line_2 = address_line_2;
//        notifyPropertyChanged(BR.address_line_2);
//    }
//
//    @Bindable public String getName ()
//    {
//        return name;
//    }
//
//    public void setName (String name)
//    {
//        this.name = name;
//        notifyPropertyChanged(BR.name);
//    }
//
//    @Bindable public String getAuto_save ()
//    {
//        return auto_save;
//    }
//
//    public void setAuto_save (String auto_save)
//    {
//        this.auto_save = auto_save;
//        notifyPropertyChanged(BR.auto_save);
//    }

}


text:
<?php
/////////////////////////////////////////////////////////////////////////////////////
// xbtit - Bittorrent tracker/frontend
//
// Copyright (C) 2004 - 2011  Btiteam
//
//    This file is part of xbtit.
//
// Redistribution and use in source and binary forms, with or without modification,
// are permitted provided that the following conditions are met:
//
//   1. Redistributions of source code must retain the above copyright notice,
//      this list of conditions and the following disclaimer.
//   2. Redistributions in binary form must reproduce the above copyright notice,
//      this list of conditions and the following disclaimer in the documentation
//      and/or other materials provided with the distribution.
//   3. The name of the author may not be used to endorse or promote products
//      derived from this software without specific prior written permission.
//
// THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR IMPLIED
// WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
// MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
// IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
// SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED
// TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
// PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
// LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
// NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
// EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
//
////////////////////////////////////////////////////////////////////////////////////

if (!defined("IN_BTIT"))
      die("non direct access!");

require_once(load_language("lang_usercp.php"));
global $CURUSER, $language, $usercptpl;

if (isset($_GET["what"]) && $_GET["what"])
      $what=$_GET["what"];
else $what = "inbox";

if (isset($_GET["action"]) && $_GET["action"])
      $action=$_GET["action"];
else $action = "";

if (isset($_GET["preview"]) && $_GET["preview"])
      $preview=$_GET["preview"];
else $preview = "";

$uid=(isset($_GET["uid"])?intval($_GET["uid"]):1);

if ($CURUSER["uid"]!=$uid || $CURUSER["uid"]==1)
   {
       err_msg($language["ERROR"],$language["ERR_USER_NOT_USER"]);
       stdfoot();
       exit;
   }
else
    {
    $utorrents=max(0,$CURUSER["torrentsperpage"]);
    if (isset($_GET["do"])) $do=$_GET["do"];
      else $do = "";
    if (isset($_GET["action"]))
       $action=$_GET["action"];

$USER_PATH=dirname(__FILE__);

require_once("$USER_PATH/usercp.menu.php");
$menucptpl=new bTemplate();
$menucptpl->set("usercp_menu",$usercp_menu);
$tpl->set("main_left",set_block($language["USER_CP_1"],"center",$menucptpl->fetch(load_template("usercp.menu.tpl"))));

$usercptpl=new bTemplate();
$usercptpl->set("language",$language);

switch ($do)
    {
    case 'pm':
    include("$USER_PATH/usercp.pmbox.php");
    $tpl->set("main_content",set_block($language["MNU_UCP_PM"],"center",$usercptpl->fetch(load_template("usercp.pmbox.tpl"))));
    break;

    case 'user':
    include("$USER_PATH/usercp.profile.php");
    $tpl->set("main_content",set_block($language["ACCOUNT_EDIT"],"center",$usercptpl->fetch(load_template("usercp.profile.tpl"))));
    break;

    case 'pwd':
    include("$USER_PATH/usercp.pass.php");
    $tpl->set("main_content",set_block($language["MNU_UCP_CHANGEPWD"],"center",$usercptpl->fetch(load_template("usercp.pass.tpl"))));
    break;

    case 'pid_c':
    include("$USER_PATH/usercp.pidchange.php");
    $tpl->set("main_content",set_block($language["CHANGE_PID"],"center",$usercptpl->fetch(load_template("usercp.pidchange.tpl"))));
    break;

    default:
    include("$USER_PATH/usercp.main.php");
    $tpl->set("main_content",set_block($language["MNU_UCP_HOME"],"center",$usercptpl->fetch(load_template("usercp.main.tpl"))));
    break;
}

// Reverify Mail Hack by Petr1fied - Start --->
// Update the members e-mail account if the validation link checks out
// ==========================================================================================
    // If both "do=verify" and "action=changemail" are in the url

    if ($do=="verify" && $action=="changemail")
       {
       // Get the other values we need from the url
       $newmail=$_GET["newmail"];
       (isset($_GET["uid"]) && !empty($_GET["uid"]) && is_numeric($_GET["uid"]) && $_GET["uid"]>0) ? $id=max(0,$_GET["uid"]) : $id=0;
       if($id==0)
           stderr($language["ERROR"], $language["BAD_ID"]);
       $random=max(0,$_GET["random"]);
       $idlevel=$CURUSER["id_level"];

       // Get the members random number, current email and temp email from their record
       $getacc=mysql_fetch_assoc(do_sqlquery("SELECT random, email, temp_email".(($GLOBALS["FORUMLINK"]=="smf") ? ", smf_fid" : "")." from {$TABLE_PREFIX}users WHERE id=".$id,true));
       $oldmail=$getacc["email"];
       $dbrandom=$getacc["random"];
       $mailcheck=$getacc["temp_email"];

       // If the random number in the url matches that in the member record
       if ($random==$dbrandom)
       {

           // Verify the email address in the url is the address we sent the mail to
           if ($newmail!=$mailcheck) {
             err_msg($language["ERROR"],$language["NOT_MAIL_IN_URL"]);
             stdfoot();
             exit;
           }

            // Update their tracker member record with the now verified email address
            do_sqlquery("UPDATE {$TABLE_PREFIX}users SET email='".mysql_real_escape_string($newmail)."' WHERE id='".$id."'",true);

            // If using SMF, update their record on that too.
            if($GLOBALS["FORUMLINK"]=="smf")
            {
                $basedir=substr(str_replace("\\", "/", dirname(__FILE__)), 0, strrpos(str_replace("\\", "/", dirname(__FILE__)), '/'));
                $language2=$language;
                require_once($basedir."/smf/Settings.php");
                $language=$language2;
                do_sqlquery("UPDATE {$db_prefix}members SET emailAddress='".mysql_real_escape_string($newmail)."' WHERE ID_MEMBER=".$getacc["smf_fid"],true);
            }

            // Print a message stating that their email has been successfully changed
            success_msg($language["SUCCESS"],$language["REVERIFY_CONGRATS1"]." ".$oldmail." ".$language["REVERIFY_CONGRATS2"]." ".$newmail." ".$language["REVERIFY_CONGRATS3"]."".$language["MNU_INDEX"]."");
            stdfoot(true,false);
            // If the member clicking the link is validating...
            if ($idlevel==2)
            {
                // ...we may as well upgrade their rank to member whilst we're at it.
                do_sqlquery("UPDATE {$TABLE_PREFIX}users SET id_level=3 WHERE id='".$id."'");
                if($GLOBALS["FORUMLINK"]=="smf")
                    do_sqlquery("UPDATE {$db_prefix}members SET ID_GROUP=13 WHERE ID_MEMBER=".$getacc["smf_fid"]);
            }
       }
       // If the random number in the url is incorrect print an error message
       else
         {
         err_msg($language["REVERIFY_FAILURE"]."".$language["MNU_INDEX"]."");
         stdfoot();
         exit;
       }
       // End the block and add a couple of linespaces afterwards.

       }
// <--- Reverify Mail Hack by Petr1fied - End

     }
?>


text:
Taller3
=======

Taller 3 XML conexiones UDP y TCP.


text:
=head1 LICENSE

Copyright [1999-2016] Wellcome Trust Sanger Institute and the EMBL-European Bioinformatics Institute

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

     http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.

=cut

=head1 CONTACT

  Please email comments or questions to the public Ensembl
  developers list at <http://lists.ensembl.org/mailman/listinfo/dev>.
  Questions may also be sent to the Ensembl help desk at
  <http://www.ensembl.org/Help/Contact>.

=cut

=head1 NAME

Bio::FormatTranscriber::Config

=head1 SYNOPSIS

  use Bio::FormatTranscriber::Config qw/parse_config/;

  my $config = parse_config('/my/config/file');

=head1 DESCRIPTION

Parses a config file from a file, in JSON format. Allows parsing of nested
config files where

=head1 DEPENDENCIES
L<JSON> is needed to parse the config files passed in.

=head1 METHODS

=cut

package Bio::FormatTranscriber::Config;

use strict;
use warnings;

use Bio::EnsEMBL::Utils::Exception qw(throw);
use Bio::EnsEMBL::Utils::URI qw(parse_uri);
use Bio::EnsEMBL::Utils::Net qw/do_GET do_FTP/;
use Bio::EnsEMBL::Utils::IO qw/slurp/;

use JSON;
use Hash::Union 'union';

use base qw/Exporter/;
our @EXPORT_OK;
our %EXPORT_TAGS;
@EXPORT_OK = qw/parse_config dump_config/;
%EXPORT_TAGS = ( all => [@EXPORT_OK] );

=head2 parse_config()

  Description: Fetch and parse the config file given via the
               argument.

               Recursively fetch config files as included
               via the "include" tag and array. See Hash::Union
               for special merging rules for items in the hash,
               be default arrays are overridden by config files
               higher up the include tree.

               Also, items from the include tree are added in
               post-order, so include order matters.

  Argv[1]    : string
               uri of the config to initially load

  Returntype : HashRef
  Exceptions : If we're unable to parse a json chunk,
               if a uri scheme type is unsupported

=cut

sub parse_config {
    my ($uri) = @_;

    # Start the recursive calls to build
    # our config based on the uri given and
    # all the includes it may contain
    my $config = _apply_config($uri);

    return $config;
}

=head2 dump_config

    Description: Takes a configuration object and attempts to produce
                 the JSON encoding.

    Argv[1]    : ref
                 configuration structure to encode

    Returntype : string
    Exceptions : If we're unable to encode the object as json

=cut

sub dump_config {
    my ($config) = @_;

    my $json_str;
    eval {
	$json_str = to_json($config, { ascii => 1, pretty => 1 });
    };
    if($@) {
	throw("Unable to encode config: $@");
    }

    return $json_str;
}

=head2 _apply_config()

  Description: Recursively fetch config files as included
               via the "include" tag and array. See Hash::Union
               for special merging rules for items in the hash,
               be default arrays are overridden by config files
               higher up the include tree.

               Also, items from the include tree are added in
               post-order, so include order matters.

  Argv[1]   :  string
               uri of the config to initially load
  Argv[2]   :  HashRef (optional)
               Base config to apply the uri config file to

  Returntype: HashRef
  Exceptions: If we're unable to parse a json chunk,
              if a uri scheme type is unsupported

=cut

sub _apply_config {
    my ($uri, $config) = @_;

    my $config_delta = _fetch_config($uri);
    my $json_delta = {};
    eval {
	$json_delta = from_json($config_delta);
    };
    if($@) {
	# The JSON module can throw some nasty errors
	throw("Unable to decode uri $uri: " . $@);
    }

    # We're going to recurse first so we apply all the
    # leaf nodes as the base, but yes order of includes
    # can influence final outcome of the config, so
    # we shouldn't go too crazy with our nesting
    if($json_delta->{include}) {
	# For each include tag, recurse down and apply it to
	# the base config
	foreach my $inc_uri (@{$json_delta->{include}}) {
	    $config = _apply_config($inc_uri, $config);
	}

	# Since this is a merged config we don't want
	# to keep the include around, should we save
	# this out and reload it later
	delete $json_delta->{include};
    }

    # Only apply the delta if we have a base config,
    # otherwise if we're at the first leaf, the delta
    # is our base
    if($config) {
	# Now we apply the current level config to
	$config = union([ $config, $json_delta ]);
    } else {
	$config = $json_delta;
    }

    return $config;
}

=head2 _fetch_config()

  Description: Fetches a config file based on a given uri,
    we currently support file://, http:// and ftp://

  Returntype: HashRef
  Exceptions: If we're unable to parse a json chunk,
              if a uri scheme type is unsupported

=cut

sub _fetch_config {
    my ($uri) = @_;

    # Break the uri down so we can fetch it
    my $parsed_uri = parse_uri($uri);
    my $contents;

    if($parsed_uri->{scheme} eq 'http') {
	$contents = do_GET($uri);
    } elsif($parsed_uri->{scheme} eq 'ftp') {
	$contents = do_FTP($uri);
    } elsif($parsed_uri->{scheme} eq 'file') {
	$contents = slurp($parsed_uri->{path});
    } else {
	throw("Unsupported scheme type: " . $parsed_uri->{scheme});
    }

    # Return the file contents if we successfully retrieved values
    return $contents if defined $contents;

    # We never fall through because all the retrieval methods throw
    # an error if they fail. Throw something here if we ever add a
    # retrieval method that dies silently.
}


text:
package org.springframework.social.connect;

/**
 * A configuration interface used to set values on a {@link Connection} from a specific service provider API instance.
 * {@link #setProviderUserId(String)} maps to {@link ConnectionKey#getProviderUserId()}
 * {@link #setDisplayName(String)} maps to {@link Connection#getDisplayName()}
 * {@link #setProfileUrl(String)} maps to {@link Connection#getProfileUrl()}
 * {@link #setImageUrl(String)} maps to {@link Connection#getImageUrl()}
 * @author Keith Donald
 * @see ApiAdapter#setConnectionValues(Object, ConnectionValues)
 */
public interface ConnectionValues {

	/**
	 * Sets value mapped to {@link ConnectionKey#getProviderUserId()}.
	 */
	public void setProviderUserId(String providerUserId);

	/**
	 * Sets value mapped to {@link Connection#getDisplayName()}.
	 */
	public void setDisplayName(String displayName);

	/**
	 * Sets value mapped to {@link Connection#getProfileUrl()}
	 */
	public void setProfileUrl(String profileUrl);

	/**
	 * Sets value mapped to {@link Connection#getImageUrl()}
	 */
	public void setImageUrl(String imageUrl);

}


text:
package com.google.cloud.tools.managedcloudsdk;

public class ManagedSdkVersionMismatchException extends Exception {
  public ManagedSdkVersionMismatchException(String message) {
    super(message);
  }
}


text:
describe(
  require('../../__fixtures/utils/test_helper')
    .create()
    .testName(__filename, 3),
  function() {
    var path = require('path');
    var sep = require('path').sep;
    var libFolder =
      path.resolve(__dirname, '../../..') +
      sep +
      ['test', '__fixtures', 'test', 'integration', 'exchange'].join(sep) +
      sep;
    var maximumPings = 1000;
    var Mesh = require('../../..');

    this.timeout(120000);

    var config = {
      name: 'testInjectionResponse',
      modules: {
        module1: {
          path: libFolder + '12-module1',
          construct: {
            type: 'sync',
            parameters: [{ value: { maximumPings: maximumPings } }]
          }
        }
      },
      components: {
        component1: {
          moduleName: 'module1'
        }
      }
    };

    var mesh;

    it('starts the mesh, listens for the ping pong completed event, that module1 emits', function(done) {
      mesh = new Mesh();

      mesh.initialize(config, function(err) {
        if (err) {
          //eslint-disable-next-line
          console.log(err.stack);
          done(err);
        } else {
          mesh.exchange.component1.exposedMethod('a message', function() {
            setTimeout(function() {
              done();
            }, 2000);
          });
        }
      });
    });

    after(function(done) {
      mesh.stop({ reconnect: false }, done);
    });
  }
);


text:
<?php
# Generated by the protocol buffer compiler.  DO NOT EDIT!
# source: google/ads/googleads/v11/common/criteria.proto

namespace Google\Ads\GoogleAds\V11\Common;

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

/**
 * Type of a product offer.
 *
 * Generated from protobuf message google.ads.googleads.v11.common.ProductTypeInfo
 */
class ProductTypeInfo extends \Google\Protobuf\Internal\Message
{
    /**
     * Value of the type.
     *
     * Generated from protobuf field optional string value = 3;
     */
    protected $value = null;
    /**
     * Level of the type.
     *
     * Generated from protobuf field .google.ads.googleads.v11.enums.ProductTypeLevelEnum.ProductTypeLevel level = 2;
     */
    protected $level = 0;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type string $value
     *           Value of the type.
     *     @type int $level
     *           Level of the type.
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Google\Ads\GoogleAds\V11\Common\Criteria::initOnce();
        parent::__construct($data);
    }

    /**
     * Value of the type.
     *
     * Generated from protobuf field optional string value = 3;
     * @return string
     */
    public function getValue()
    {
        return isset($this->value) ? $this->value : '';
    }

    public function hasValue()
    {
        return isset($this->value);
    }

    public function clearValue()
    {
        unset($this->value);
    }

    /**
     * Value of the type.
     *
     * Generated from protobuf field optional string value = 3;
     * @param string $var
     * @return $this
     */
    public function setValue($var)
    {
        GPBUtil::checkString($var, True);
        $this->value = $var;

        return $this;
    }

    /**
     * Level of the type.
     *
     * Generated from protobuf field .google.ads.googleads.v11.enums.ProductTypeLevelEnum.ProductTypeLevel level = 2;
     * @return int
     */
    public function getLevel()
    {
        return $this->level;
    }

    /**
     * Level of the type.
     *
     * Generated from protobuf field .google.ads.googleads.v11.enums.ProductTypeLevelEnum.ProductTypeLevel level = 2;
     * @param int $var
     * @return $this
     */
    public function setLevel($var)
    {
        GPBUtil::checkEnum($var, \Google\Ads\GoogleAds\V11\Enums\ProductTypeLevelEnum\ProductTypeLevel::class);
        $this->level = $var;

        return $this;
    }

}


text:
<?php
/**
 * This class provides you with the ability to create new WordPress categories through code.
 *
 * If you have the Need/Desire to define some or all of your WordPress
 * categories in code you can achieve it with this class.
 *
 * @package Skava
 *
 * @author  William Wilkerson <william.wilkerson4@gmail.com>
 *
 * @uses    wp_insert_category
 *
 *
 */
namespace Skava;

class Category
{
    /**
     * Category Name
     *
     * The Human readable name of the category that you wish to create
     * @var string
     */
    private $title;
    /**
     *Post Type.
     *
     * This is the post type of the thing being created in this instance a category.
     * this is not modifiable as the code for other post types may differ
     * from the code necessary to create a category so this is defaulted
     * to category and left there.
     * @var string
     */
    private $type = "category";
    /**
     * Category Description
     *
     * This is the variable that will house the description for the category being created.
     * @var string
     */
    private $desc;
    /**
     * Category Slug
     *
     * The Slug of the Category that you're creating.
     * @var string
     */
    private $slug;
    /**
     *Category Parent
     *
     * If you wish to apply a parent to the categories you are creating then you may do so with this.
     *
     * @var string  the name of the category you wish to have as the parent.
     */
    private $parent = '';

    /**
     * register()
     *
     * This is the factory method that sets up an instance of the class.
     * This need to be called first when attempting to use
     * the class
     *
     * @param none
     *
     * @return self
     */
    public static function register()
    {
        return new self();
    }

    /**
     * setTitle()
     *
     * This is the method that sets the title of the category. If you ultimately do not supply a slug
     * for the category then this method will do so. by replacing spaces with dashes and making all characters lowercase
     *
     * @param title
     *
     * @return Category
     */
    public function setTitle($title)
    {
        $this->title = $title;
        $this->slug = str_replace(" ", "-", strtolower($title));

        return $this;
    }

    /**
     * setDesc()
     *
     * This is the method that allows you to set the description for the category that you're creating.
     *
     * @param desc
     *
     * @return Category
     *
     */
    public function setDesc($desc)
    {
        $this->desc = $desc;

        return $this;
    }

    /**
     * setSlug()
     *
     * This is the method that sets the slug for the category.
     *
     * No matter what you provide to this method it will be sanatized by lowercasing characters and replacing spaces
     * with dashes.
     *
     * @param slug
     *
     * @return Category
     */
    public function setSlug($slug)
    {
        $this->slug = str_replace(" ", "-", strtolower($slug));

        return $this;
    }

    /**
     * setParent()
     *
     * This is the method that allows you to set the parent category for the category being created.
     *
     * @param parent
     *
     * @return Category
     *
     */
    public function setParent($parent)
    {
        $catID = get_cat_ID($parent);
        $this->parent = $catID;

        return $this;

    }

    /**
     * create()
     *
     * This is the method that actually created the category.
     * This must be the last chained method in your implementation
     * and this method must be called in order for categories to be created.
     *
     * @return void
     *
     */
    public function create()
    {
        wp_insert_category(array(
            'cat_name' => $this->title,
            'category_description' => $this->desc,
            'category_nicename' => $this->slug,
            'category_parent' => $this->parent
        ));
    }
}


text:
<?php

/* SonataAdminBundle:CRUD:edit_sonata_type_immutable_array.html.twig */
class __TwigTemplate_4d6bb1f4ae9f8882cd668f4657f62c7993ae496af7ff77437bd76cd26f53971f extends Twig_Template
{
    protected function doGetParent(array $context)
    {
        // line 12
        return $this->env->resolveTemplate((isset($context["base_template"]) ? $context["base_template"] : $this->getContext($context, "base_template")));
    }

    protected function doDisplay(array $context, array $blocks = array())
    {
        $this->getParent($context)->display($context, array_merge($this->blocks, $blocks));
    }

    public function getTemplateName()
    {
        return "SonataAdminBundle:CRUD:edit_sonata_type_immutable_array.html.twig";
    }

    public function isTraitable()
    {
        return false;
    }

    public function getDebugInfo()
    {
        return array (  9 => 12,);
    }
}


text:
#ifndef BOOST_XPRESSIVE_DETAIL_STATIC_PLACEHOLDERS_HPP_EAN_10_04_2005
#define BOOST_XPRESSIVE_DETAIL_STATIC_PLACEHOLDERS_HPP_EAN_10_04_2005

// MS compatible compilers support #pragma once
#if defined(_MSC_VER) && (_MSC_VER >= 1020)
# pragma once
# pragma warning(push)
# pragma warning(disable:4510) // default constructor could not be generated
# pragma warning(disable:4610) // can never be instantiated - user defined constructor required
#endif

#include <string>
#include <boost/shared_ptr.hpp>
#include <boost/xpressive/detail/core/quant_style.hpp>
#include <boost/xpressive/detail/core/regex_impl.hpp>

namespace boost { namespace xpressive { namespace detail
{

///////////////////////////////////////////////////////////////////////////////
// mark_placeholder
//
struct mark_placeholder
{
    BOOST_XPR_QUANT_STYLE(quant_variable_width, unknown_width::value, true)

    int mark_number_;
};

///////////////////////////////////////////////////////////////////////////////
// posix_charset_placeholder
//
struct posix_charset_placeholder
{
    BOOST_XPR_QUANT_STYLE(quant_fixed_width, 1, true)

    char const *name_;
    bool not_;
};

///////////////////////////////////////////////////////////////////////////////
// assert_word_placeholder
//
template<typename Cond>
struct assert_word_placeholder
{
    BOOST_XPR_QUANT_STYLE(quant_none, 0, true)
};

///////////////////////////////////////////////////////////////////////////////
// range_placeholder
//
template<typename Char>
struct range_placeholder
{
    BOOST_XPR_QUANT_STYLE(quant_fixed_width, 1, true)

    Char ch_min_;
    Char ch_max_;
    bool not_;
};

///////////////////////////////////////////////////////////////////////////////
// assert_bol_placeholder
//
struct assert_bol_placeholder
{
    BOOST_XPR_QUANT_STYLE(quant_none, 0, true)
};

///////////////////////////////////////////////////////////////////////////////
// assert_eol_placeholder
//
struct assert_eol_placeholder
{
    BOOST_XPR_QUANT_STYLE(quant_none, 0, true)
};

///////////////////////////////////////////////////////////////////////////////
// logical_newline_placeholder
//
struct logical_newline_placeholder
{
    BOOST_XPR_QUANT_STYLE(quant_variable_width, unknown_width::value, true)
};

///////////////////////////////////////////////////////////////////////////////
// self_placeholder
//
struct self_placeholder
{
    BOOST_XPR_QUANT_STYLE(quant_variable_width, unknown_width::value, false)
};

///////////////////////////////////////////////////////////////////////////////
// attribute_placeholder
//
template<typename Nbr>
struct attribute_placeholder
{
    BOOST_XPR_QUANT_STYLE(quant_variable_width, unknown_width::value, false)

    typedef Nbr nbr_type;
};

}}} // namespace boost::xpressive::detail

#if defined(_MSC_VER) && (_MSC_VER >= 1020)
# pragma warning(pop)
#endif

#endif